8 lines
1.2 MiB
8 lines
1.2 MiB
function _defineProperty2(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function _slicedToArray2(t,e){return _arrayWithHoles2(t)||_iterableToArrayLimit2(t,e)||_unsupportedIterableToArray2(t,e)||_nonIterableRest2()}function _nonIterableRest2(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit2(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function _arrayWithHoles2(t){if(Array.isArray(t))return t}function _classCallCheck2(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function _createClass2(t,e,n){if(e)_defineProperties(t.prototype,e);if(n)_defineProperties(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function _get2(){if(typeof Reflect!=="undefined"&&Reflect.get){_get2=Reflect.get}else{_get2=function t(e,n,r){var i=_superPropBase2(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return _get2.apply(this,arguments)}function _superPropBase2(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=_getPrototypeOf2(t);if(t===null)break}return t}function _inherits2(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)_setPrototypeOf2(t,e)}function _createSuper2(i){var a=_isNativeReflectConstruct2();return function t(){var e=_getPrototypeOf2(i),n;if(a){var r=_getPrototypeOf2(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return _possibleConstructorReturn2(this,n)}}function _possibleConstructorReturn2(t,e){if(e&&(_typeof2(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized2(t)}function _assertThisInitialized2(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function _wrapNativeSuper(t){var r=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function t(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf2(this).constructor)}n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf2(n,e)};return _wrapNativeSuper(t)}function _construct(t,e,n){if(_isNativeReflectConstruct2()){_construct=Reflect.construct}else{_construct=function t(e,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(e,i);var o=new a;if(r)_setPrototypeOf2(o,r.prototype);return o}}return _construct.apply(null,arguments)}function _isNativeReflectConstruct2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _setPrototypeOf2(t,e){_setPrototypeOf2=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return _setPrototypeOf2(t,e)}function _getPrototypeOf2(t){_getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf2(t)}function _createForOfIteratorHelper2(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray2(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var i=function t(){};return{s:i,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){n=n.call(e)},n:function t(){var e=n.next();a=e.done;return e},e:function t(e){o=true;s=e},f:function t(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function _unsupportedIterableToArray2(t,e){if(!t)return;if(typeof t==="string")return _arrayLikeToArray2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(t,e)}function _arrayLikeToArray2(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function _typeof2(t){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof2(t)}
|
||
/*
|
||
d3plus v2.0.1
|
||
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
|
||
Copyright (c) 2021 D3plus - https://d3plus.org
|
||
@license MIT
|
||
*/
|
||
(function(t){typeof define==="function"&&define.amd?define(t):t()})(function(){"use strict";function t(t){var e={exports:{}};return t(e,e.exports),e.exports}var Wt=t(function(t){var e=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=e});var r={}.hasOwnProperty;var qt=function t(e,n){return r.call(e,n)};var Kt=function t(e){try{return!!e()}catch(t){return true}};var Yt=!Kt(function(){return Object.defineProperty({},"a",{get:function t(){return 7}}).a!=7});var p=t(function(t){var e=t.exports={version:"2.6.12"};if(typeof __e=="number")__e=e});var Xt=function t(e){return _typeof2(e)==="object"?e!==null:typeof e==="function"};var S=function t(e){if(!Xt(e))throw TypeError(e+" is not an object!");return e};var n=Wt.document;var i=Xt(n)&&Xt(n.createElement);var o=function t(e){return i?n.createElement(e):{}};var a=!Yt&&!Kt(function(){return Object.defineProperty(o("div"),"a",{get:function t(){return 7}}).a!=7});var Zt=function t(e,n){if(!Xt(e))return e;var r,i;if(n&&typeof(r=e.toString)=="function"&&!Xt(i=r.call(e)))return i;if(typeof(r=e.valueOf)=="function"&&!Xt(i=r.call(e)))return i;if(!n&&typeof(r=e.toString)=="function"&&!Xt(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")};var s=Object.defineProperty;var e=Yt?Object.defineProperty:function t(e,n,r){S(e);n=Zt(n,true);S(r);if(a)try{return s(e,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");if("value"in r)e[n]=r.value;return e};var $t={f:e};var Jt=function t(e,n){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}};var Qt=Yt?function(t,e,n){return $t.f(t,e,Jt(1,n))}:function(t,e,n){t[e]=n;return t};var u=0;var l=Math.random();var te=function t(e){return"Symbol(".concat(e===undefined?"":e,")_",(++u+l).toString(36))};var ee=false;var c=t(function(t){var e="__core-js_shared__";var n=Wt[e]||(Wt[e]={});(t.exports=function(t,e){return n[t]||(n[t]=e!==undefined?e:{})})("versions",[]).push({version:p.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})});var f=c("native-function-to-string",Function.toString);var b=t(function(t){var a=te("src");var e="toString";var o=(""+f).split(e);p.inspectSource=function(t){return f.call(t)};(t.exports=function(t,e,n,r){var i=typeof n=="function";if(i)qt(n,"name")||Qt(n,"name",e);if(t[e]===n)return;if(i)qt(n,a)||Qt(n,a,t[e]?""+t[e]:o.join(String(e)));if(t===Wt){t[e]=n}else if(!r){delete t[e];Qt(t,e,n)}else if(t[e]){t[e]=n}else{Qt(t,e,n)}})(Function.prototype,e,function t(){return typeof this=="function"&&this[a]||f.call(this)})});var h=function t(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e};var ne=function t(r,i,e){h(r);if(i===undefined)return r;switch(e){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}};var y="prototype";var d=function t(e,n,r){var i=e&t.F;var a=e&t.G;var o=e&t.S;var s=e&t.P;var u=e&t.B;var l=a?Wt:o?Wt[n]||(Wt[n]={}):(Wt[n]||{})[y];var c=a?p:p[n]||(p[n]={});var f=c[y]||(c[y]={});var h,d,g,v;if(a)r=n;for(h in r){d=!i&&l&&l[h]!==undefined;g=(d?l:r)[h];v=u&&d?ne(g,Wt):s&&typeof g=="function"?ne(Function.call,g):g;if(l)b(l,h,g,e&t.U);if(c[h]!=g)Qt(c,h,v);if(s&&f[h]!=g)f[h]=g}};Wt.core=p;d.F=1;d.G=2;d.S=4;d.P=8;d.B=16;d.W=32;d.U=64;d.R=128;var re=d;var m=t(function(t){var r=te("meta");var n=$t.f;var i=0;var a=Object.isExtensible||function(){return true};var o=!Kt(function(){return a(Object.preventExtensions({}))});var s=function t(e){n(e,r,{value:{i:"O"+ ++i,w:{}}})};var e=function t(e,n){if(!Xt(e))return _typeof2(e)=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!qt(e,r)){if(!a(e))return"F";if(!n)return"E";s(e)}return e[r].i};var u=function t(e,n){if(!qt(e,r)){if(!a(e))return true;if(!n)return false;s(e)}return e[r].w};var l=function t(e){if(o&&c.NEED&&a(e)&&!qt(e,r))s(e);return e};var c=t.exports={KEY:r,NEED:false,fastKey:e,getWeak:u,onFreeze:l}});var ie=t(function(t){var e=c("wks");var n=Wt.Symbol;var r=typeof n=="function";var i=t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:te)("Symbol."+t))};i.store=e});var g=$t.f;var v=ie("toStringTag");var G=function t(e,n,r){if(e&&!qt(e=r?e:e.prototype,v))g(e,v,{configurable:true,value:n})};var _=ie;var w={f:_};var x=$t.f;var k=function t(e){var n=p.Symbol||(p.Symbol=Wt.Symbol||{});if(e.charAt(0)!="_"&&!(e in n))x(n,e,{value:w.f(e)})};var C={}.toString;var E=function t(e){return C.call(e).slice(8,-1)};var A=Object("z").propertyIsEnumerable(0)?Object:function(t){return E(t)=="String"?t.split(""):Object(t)};var M=function t(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e};var R=function t(e){return A(M(e))};var T=Math.ceil;var O=Math.floor;var ae=function t(e){return isNaN(e=+e)?0:(e>0?O:T)(e)};var P=Math.min;var oe=function t(e){return e>0?P(ae(e),9007199254740991):0};var B=Math.max;var D=Math.min;var se=function t(e,n){e=ae(e);return e<0?B(e+n,0):D(e,n)};var ue=function t(s){return function(t,e,n){var r=R(t);var i=oe(r.length);var a=se(n,i);var o;if(s&&e!=e)while(i>a){o=r[a++];if(o!=o)return true}else for(;i>a;a++){if(s||a in r){if(r[a]===e)return s||a||0}}return!s&&-1}};var N=c("keys");var z=function t(e){return N[e]||(N[e]=te(e))};var F=ue(false);var j=z("IE_PROTO");var I=function t(e,n){var r=R(e);var i=0;var a=[];var o;for(o in r){if(o!=j)qt(r,o)&&a.push(o)}while(n.length>i){if(qt(r,o=n[i++])){~F(a,o)||a.push(o)}}return a};var L="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");var H=Object.keys||function t(e){return I(e,L)};var U=Object.getOwnPropertySymbols;var V={f:U};var W={}.propertyIsEnumerable;var q={f:W};var K=function t(e){var n=H(e);var r=V.f;if(r){var i=r(e);var a=q.f;var o=0;var s;while(i.length>o){if(a.call(e,s=i[o++]))n.push(s)}}return n};var Y=Array.isArray||function t(e){return E(e)=="Array"};var le=function t(e){return Object(M(e))};var X=Yt?Object.defineProperties:function t(e,n){S(e);var r=H(n);var i=r.length;var a=0;var o;while(i>a){$t.f(e,o=r[a++],n[o])}return e};var Z=Wt.document;var $=Z&&Z.documentElement;var J=z("IE_PROTO");var Q=function t(){};var tt="prototype";var et=function t(){var e=o("iframe");var n=L.length;var r="<";var i=">";var a;e.style.display="none";$.appendChild(e);e.src="javascript:";a=e.contentWindow.document;a.open();a.write(r+"script"+i+"document.F=Object"+r+"/script"+i);a.close();et=a.F;while(n--){delete et[tt][L[n]]}return et()};var ce=Object.create||function t(e,n){var r;if(e!==null){Q[tt]=S(e);r=new Q;Q[tt]=null;r[J]=e}else r=et();return n===undefined?r:X(r,n)};var nt=L.concat("length","prototype");var rt=Object.getOwnPropertyNames||function t(e){return I(e,nt)};var fe={f:rt};var it=fe.f;var at={}.toString;var ot=(typeof window==="undefined"?"undefined":_typeof2(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var st=function t(e){try{return it(e)}catch(t){return ot.slice()}};var ut=function t(e){return ot&&at.call(e)=="[object Window]"?st(e):it(R(e))};var lt={f:ut};var ct=Object.getOwnPropertyDescriptor;var ft=Yt?ct:function t(e,n){e=R(e);n=Zt(n,true);if(a)try{return ct(e,n)}catch(t){}if(qt(e,n))return Jt(!q.f.call(e,n),e[n])};var he={f:ft};var ht=m.KEY;var dt=he.f;var gt=$t.f;var vt=lt.f;var pt=Wt.Symbol;var yt=Wt.JSON;var mt=yt&&yt.stringify;var _t="prototype";var bt=ie("_hidden");var wt=ie("toPrimitive");var xt={}.propertyIsEnumerable;var kt=c("symbol-registry");var St=c("symbols");var Ct=c("op-symbols");var Et=Object[_t];var At=typeof pt=="function"&&!!V.f;var Mt=Wt.QObject;var Rt=!Mt||!Mt[_t]||!Mt[_t].findChild;var Tt=Yt&&Kt(function(){return ce(gt({},"a",{get:function t(){return gt(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=dt(Et,e);if(r)delete Et[e];gt(t,e,n);if(r&&t!==Et)gt(Et,e,r)}:gt;var Ot=function t(e){var n=St[e]=ce(pt[_t]);n._k=e;return n};var Pt=At&&_typeof2(pt.iterator)=="symbol"?function(t){return _typeof2(t)=="symbol"}:function(t){return t instanceof pt};var Bt=function t(e,n,r){if(e===Et)Bt(Ct,n,r);S(e);n=Zt(n,true);S(r);if(qt(St,n)){if(!r.enumerable){if(!qt(e,bt))gt(e,bt,Jt(1,{}));e[bt][n]=true}else{if(qt(e,bt)&&e[bt][n])e[bt][n]=false;r=ce(r,{enumerable:Jt(0,false)})}return Tt(e,n,r)}return gt(e,n,r)};var Dt=function t(e,n){S(e);var r=K(n=R(n));var i=0;var a=r.length;var o;while(a>i){Bt(e,o=r[i++],n[o])}return e};var Nt=function t(e,n){return n===undefined?ce(e):Dt(ce(e),n)};var zt=function t(e){var n=xt.call(this,e=Zt(e,true));if(this===Et&&qt(St,e)&&!qt(Ct,e))return false;return n||!qt(this,e)||!qt(St,e)||qt(this,bt)&&this[bt][e]?n:true};var Ft=function t(e,n){e=R(e);n=Zt(n,true);if(e===Et&&qt(St,n)&&!qt(Ct,n))return;var r=dt(e,n);if(r&&qt(St,n)&&!(qt(e,bt)&&e[bt][n]))r.enumerable=true;return r};var jt=function t(e){var n=vt(R(e));var r=[];var i=0;var a;while(n.length>i){if(!qt(St,a=n[i++])&&a!=bt&&a!=ht)r.push(a)}return r};var It=function t(e){var n=e===Et;var r=vt(n?Ct:R(e));var i=[];var a=0;var o;while(r.length>a){if(qt(St,o=r[a++])&&(n?qt(Et,o):true))i.push(St[o])}return i};if(!At){pt=function t(){if(this instanceof pt)throw TypeError("Symbol is not a constructor!");var n=te(arguments.length>0?arguments[0]:undefined);var e=function t(e){if(this===Et)t.call(Ct,e);if(qt(this,bt)&&qt(this[bt],n))this[bt][n]=false;Tt(this,n,Jt(1,e))};if(Yt&&Rt)Tt(Et,n,{configurable:true,set:e});return Ot(n)};b(pt[_t],"toString",function t(){return this._k});he.f=Ft;$t.f=Bt;fe.f=lt.f=jt;q.f=zt;V.f=It;if(Yt&&!ee){b(Et,"propertyIsEnumerable",zt,true)}w.f=function(t){return Ot(ie(t))}}re(re.G+re.W+re.F*!At,{Symbol:pt});for(var Lt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ht=0;Lt.length>Ht;){ie(Lt[Ht++])}for(var Ut=H(ie.store),Gt=0;Ut.length>Gt;){k(Ut[Gt++])}re(re.S+re.F*!At,"Symbol",{for:function t(e){return qt(kt,e+="")?kt[e]:kt[e]=pt(e)},keyFor:function t(e){if(!Pt(e))throw TypeError(e+" is not a symbol!");for(var n in kt){if(kt[n]===e)return n}},useSetter:function t(){Rt=true},useSimple:function t(){Rt=false}});re(re.S+re.F*!At,"Object",{create:Nt,defineProperty:Bt,defineProperties:Dt,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:jt,getOwnPropertySymbols:It});var Vt=Kt(function(){V.f(1)});re(re.S+re.F*Vt,"Object",{getOwnPropertySymbols:function t(e){return V.f(le(e))}});yt&&re(re.S+re.F*(!At||Kt(function(){var t=pt();return mt([t])!="[null]"||mt({a:t})!="{}"||mt(Object(t))!="{}"})),"JSON",{stringify:function t(e){var n=[e];var r=1;var i,a;while(arguments.length>r){n.push(arguments[r++])}a=i=n[1];if(!Xt(i)&&e===undefined||Pt(e))return;if(!Y(i))i=function t(e,n){if(typeof a=="function")n=a.call(this,e,n);if(!Pt(n))return n};n[1]=i;return mt.apply(yt,n)}});pt[_t][wt]||Qt(pt[_t],wt,pt[_t].valueOf);G(pt,"Symbol");G(Math,"Math",true);G(Wt.JSON,"JSON",true);re(re.S,"Object",{create:ce});re(re.S+re.F*!Yt,"Object",{defineProperty:$t.f});re(re.S+re.F*!Yt,"Object",{defineProperties:X});var de=function t(e,n){var r=(p.Object||{})[e]||Object[e];var i={};i[e]=n(r);re(re.S+re.F*Kt(function(){r(1)}),"Object",i)};var ge=he.f;de("getOwnPropertyDescriptor",function(){return function t(e,n){return ge(R(e),n)}});var ve=z("IE_PROTO");var pe=Object.prototype;var ye=Object.getPrototypeOf||function(t){t=le(t);if(qt(t,ve))return t[ve];if(typeof t.constructor=="function"&&t instanceof t.constructor){return t.constructor.prototype}return t instanceof Object?pe:null};de("getPrototypeOf",function(){return function t(e){return ye(le(e))}});de("keys",function(){return function t(e){return H(le(e))}});de("getOwnPropertyNames",function(){return lt.f});var me=m.onFreeze;de("freeze",function(n){return function t(e){return n&&Xt(e)?n(me(e)):e}});var _e=m.onFreeze;de("seal",function(n){return function t(e){return n&&Xt(e)?n(_e(e)):e}});var be=m.onFreeze;de("preventExtensions",function(n){return function t(e){return n&&Xt(e)?n(be(e)):e}});de("isFrozen",function(n){return function t(e){return Xt(e)?n?n(e):false:true}});de("isSealed",function(n){return function t(e){return Xt(e)?n?n(e):false:true}});de("isExtensible",function(n){return function t(e){return Xt(e)?n?n(e):true:false}});var we=Object.assign;var xe=!we||Kt(function(){var t={};var e={};var n=Symbol();var r="abcdefghijklmnopqrst";t[n]=7;r.split("").forEach(function(t){e[t]=t});return we({},t)[n]!=7||Object.keys(we({},e)).join("")!=r})?function t(e,n){var r=le(e);var i=arguments.length;var a=1;var o=V.f;var s=q.f;while(i>a){var u=A(arguments[a++]);var l=o?H(u).concat(o(u)):H(u);var c=l.length;var f=0;var h;while(c>f){h=l[f++];if(!Yt||s.call(u,h))r[h]=u[h]}}return r}:we;re(re.S+re.F,"Object",{assign:xe});var ke=Object.is||function t(e,n){return e===n?e!==0||1/e===1/n:e!=e&&n!=n};re(re.S,"Object",{is:ke});var Se=function t(e,n){S(e);if(!Xt(n)&&n!==null)throw TypeError(n+": can't set as prototype!")};var Ce={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,i){try{i=ne(Function.call,he.f(Object.prototype,"__proto__").set,2);i(t,[]);r=!(t instanceof Array)}catch(t){r=true}return function t(e,n){Se(e,n);if(r)e.__proto__=n;else i(e,n);return e}}({},false):undefined),check:Se};re(re.S,"Object",{setPrototypeOf:Ce.set});var Ee=ie("toStringTag");var Ae=E(function(){return arguments}())=="Arguments";var Me=function t(e,n){try{return e[n]}catch(t){}};var Re=function t(e){var n,r,i;return e===undefined?"Undefined":e===null?"Null":typeof(r=Me(n=Object(e),Ee))=="string"?r:Ae?E(n):(i=E(n))=="Object"&&typeof n.callee=="function"?"Arguments":i};var Te={};Te[ie("toStringTag")]="z";if(Te+""!="[object z]"){b(Object.prototype,"toString",function t(){return"[object "+Re(this)+"]"},true)}var Oe=function t(e,n,r){var i=r===undefined;switch(n.length){case 0:return i?e():e.call(r);case 1:return i?e(n[0]):e.call(r,n[0]);case 2:return i?e(n[0],n[1]):e.call(r,n[0],n[1]);case 3:return i?e(n[0],n[1],n[2]):e.call(r,n[0],n[1],n[2]);case 4:return i?e(n[0],n[1],n[2],n[3]):e.call(r,n[0],n[1],n[2],n[3])}return e.apply(r,n)};var Pe=[].slice;var Be={};var De=function t(e,n,r){if(!(n in Be)){for(var i=[],a=0;a<n;a++){i[a]="a["+a+"]"}Be[n]=Function("F,a","return new F("+i.join(",")+")")}return Be[n](e,r)};var Ne=Function.bind||function t(n){var r=h(this);var i=Pe.call(arguments,1);var e=function t(){var e=i.concat(Pe.call(arguments));return this instanceof t?De(r,e.length,e):Oe(r,e,n)};if(Xt(r.prototype))e.prototype=r.prototype;return e};re(re.P,"Function",{bind:Ne});var ze=$t.f;var Fe=Function.prototype;var je=/^\s*function ([^ (]*)/;var Ie="name";Ie in Fe||Yt&&ze(Fe,Ie,{configurable:true,get:function t(){try{return(""+this).match(je)[1]}catch(t){return""}}});var Le=ie("hasInstance");var He=Function.prototype;if(!(Le in He))$t.f(He,Le,{value:function t(e){if(typeof this!="function"||!Xt(e))return false;if(!Xt(this.prototype))return e instanceof this;while(e=ye(e)){if(this.prototype===e)return true}return false}});var Ue="\t\n\v\f\r "+" \u2028\u2029\ufeff";var Ge="["+Ue+"]";var Ve="
";var We=RegExp("^"+Ge+Ge+"*");var qe=RegExp(Ge+Ge+"*$");var Ke=function t(e,n,r){var i={};var a=Kt(function(){return!!Ue[e]()||Ve[e]()!=Ve});var o=i[e]=a?n(Ye):Ue[e];if(r)i[r]=o;re(re.P+re.F*a,"String",i)};var Ye=Ke.trim=function(t,e){t=String(M(t));if(e&1)t=t.replace(We,"");if(e&2)t=t.replace(qe,"");return t};var Xe=Ke;var Ze=Wt.parseInt;var $e=Xe.trim;var Je=/^[-+]?0[xX]/;var Qe=Ze(Ue+"08")!==8||Ze(Ue+"0x16")!==22?function t(e,n){var r=$e(String(e),3);return Ze(r,n>>>0||(Je.test(r)?16:10))}:Ze;re(re.G+re.F*(parseInt!=Qe),{parseInt:Qe});var tn=Wt.parseFloat;var en=Xe.trim;var nn=1/tn(Ue+"-0")!==-Infinity?function t(e){var n=en(String(e),3);var r=tn(n);return r===0&&n.charAt(0)=="-"?-0:r}:tn;re(re.G+re.F*(parseFloat!=nn),{parseFloat:nn});var rn=Ce.set;var an=function t(e,n,r){var i=n.constructor;var a;if(i!==r&&typeof i=="function"&&(a=i.prototype)!==r.prototype&&Xt(a)&&rn){rn(e,a)}return e};var on=fe.f;var sn=he.f;var un=$t.f;var ln=Xe.trim;var cn="Number";var fn=Wt[cn];var hn=fn;var dn=fn.prototype;var gn=E(ce(dn))==cn;var vn="trim"in String.prototype;var pn=function t(e){var n=Zt(e,false);if(typeof n=="string"&&n.length>2){n=vn?n.trim():ln(n,3);var r=n.charCodeAt(0);var i,a,o;if(r===43||r===45){i=n.charCodeAt(2);if(i===88||i===120)return NaN}else if(r===48){switch(n.charCodeAt(1)){case 66:case 98:a=2;o=49;break;case 79:case 111:a=8;o=55;break;default:return+n}for(var s=n.slice(2),u=0,l=s.length,c;u<l;u++){c=s.charCodeAt(u);if(c<48||c>o)return NaN}return parseInt(s,a)}}return+n};if(!fn(" 0o1")||!fn("0b1")||fn("+0x1")){fn=function t(e){var n=arguments.length<1?0:e;var r=this;return r instanceof fn&&(gn?Kt(function(){dn.valueOf.call(r)}):E(r)!=cn)?an(new hn(pn(n)),r,fn):pn(n)};for(var yn=Yt?on(hn):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),mn=0,_n;yn.length>mn;mn++){if(qt(hn,_n=yn[mn])&&!qt(fn,_n)){un(fn,_n,sn(hn,_n))}}fn.prototype=dn;dn.constructor=fn;b(Wt,cn,fn)}var bn=function t(e,n){if(typeof e!="number"&&E(e)!="Number")throw TypeError(n);return+e};var wn=function t(e){var n=String(M(this));var r="";var i=ae(e);if(i<0||i==Infinity)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n)){if(i&1)r+=n}return r};var xn=1..toFixed;var kn=Math.floor;var Sn=[0,0,0,0,0,0];var Cn="Number.toFixed: incorrect invocation!";var En="0";var An=function t(e,n){var r=-1;var i=n;while(++r<6){i+=e*Sn[r];Sn[r]=i%1e7;i=kn(i/1e7)}};var Mn=function t(e){var n=6;var r=0;while(--n>=0){r+=Sn[n];Sn[n]=kn(r/e);r=r%e*1e7}};var Rn=function t(){var e=6;var n="";while(--e>=0){if(n!==""||e===0||Sn[e]!==0){var r=String(Sn[e]);n=n===""?r:n+wn.call(En,7-r.length)+r}}return n};var Tn=function t(e,n,r){return n===0?r:n%2===1?t(e,n-1,r*e):t(e*e,n/2,r)};var On=function t(e){var n=0;var r=e;while(r>=4096){n+=12;r/=4096}while(r>=2){n+=1;r/=2}return n};re(re.P+re.F*(!!xn&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!Kt(function(){xn.call({})})),"Number",{toFixed:function t(e){var n=bn(this,Cn);var r=ae(e);var i="";var a=En;var o,s,u,l;if(r<0||r>20)throw RangeError(Cn);if(n!=n)return"NaN";if(n<=-1e21||n>=1e21)return String(n);if(n<0){i="-";n=-n}if(n>1e-21){o=On(n*Tn(2,69,1))-69;s=o<0?n*Tn(2,-o,1):n/Tn(2,o,1);s*=4503599627370496;o=52-o;if(o>0){An(0,s);u=r;while(u>=7){An(1e7,0);u-=7}An(Tn(10,u,1),0);u=o-1;while(u>=23){Mn(1<<23);u-=23}Mn(1<<u);An(1,1);Mn(2);a=Rn()}else{An(0,s);An(1<<-o,0);a=Rn()+wn.call(En,r)}}if(r>0){l=a.length;a=i+(l<=r?"0."+wn.call(En,r-l)+a:a.slice(0,l-r)+"."+a.slice(l-r))}else{a=i+a}return a}});var Pn=1..toPrecision;re(re.P+re.F*(Kt(function(){return Pn.call(1,undefined)!=="1"})||!Kt(function(){Pn.call({})})),"Number",{toPrecision:function t(e){var n=bn(this,"Number#toPrecision: incorrect invocation!");return e===undefined?Pn.call(n):Pn.call(n,e)}});re(re.S,"Number",{EPSILON:Math.pow(2,-52)});var Bn=Wt.isFinite;re(re.S,"Number",{isFinite:function t(e){return typeof e=="number"&&Bn(e)}});var Dn=Math.floor;var Nn=function t(e){return!Xt(e)&&isFinite(e)&&Dn(e)===e};re(re.S,"Number",{isInteger:Nn});re(re.S,"Number",{isNaN:function t(e){return e!=e}});var zn=Math.abs;re(re.S,"Number",{isSafeInteger:function t(e){return Nn(e)&&zn(e)<=9007199254740991}});re(re.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});re(re.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});re(re.S+re.F*(Number.parseFloat!=nn),"Number",{parseFloat:nn});re(re.S+re.F*(Number.parseInt!=Qe),"Number",{parseInt:Qe});var Fn=Math.log1p||function t(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)};var jn=Math.sqrt;var In=Math.acosh;re(re.S+re.F*!(In&&Math.floor(In(Number.MAX_VALUE))==710&&In(Infinity)==Infinity),"Math",{acosh:function t(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:Fn(e-1+jn(e-1)*jn(e+1))}});var Ln=Math.asinh;function Hn(t){return!isFinite(t=+t)||t==0?t:t<0?-Hn(-t):Math.log(t+Math.sqrt(t*t+1))}re(re.S+re.F*!(Ln&&1/Ln(0)>0),"Math",{asinh:Hn});var Un=Math.atanh;re(re.S+re.F*!(Un&&1/Un(-0)<0),"Math",{atanh:function t(e){return(e=+e)==0?e:Math.log((1+e)/(1-e))/2}});var Gn=Math.sign||function t(e){return(e=+e)==0||e!=e?e:e<0?-1:1};re(re.S,"Math",{cbrt:function t(e){return Gn(e=+e)*Math.pow(Math.abs(e),1/3)}});re(re.S,"Math",{clz32:function t(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}});var Vn=Math.exp;re(re.S,"Math",{cosh:function t(e){return(Vn(e=+e)+Vn(-e))/2}});var Wn=Math.expm1;var qn=!Wn||Wn(10)>22025.465794806718||Wn(10)<22025.465794806718||Wn(-2e-17)!=-2e-17?function t(e){return(e=+e)==0?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:Wn;re(re.S+re.F*(qn!=Math.expm1),"Math",{expm1:qn});var Kn=Math.pow;var Yn=Kn(2,-52);var Xn=Kn(2,-23);var Zn=Kn(2,127)*(2-Xn);var $n=Kn(2,-126);var Jn=function t(e){return e+1/Yn-1/Yn};var Qn=Math.fround||function t(e){var n=Math.abs(e);var r=Gn(e);var i,a;if(n<$n)return r*Jn(n/$n/Xn)*$n*Xn;i=(1+Xn/Yn)*n;a=i-(i-n);if(a>Zn||a!=a)return r*Infinity;return r*a};re(re.S,"Math",{fround:Qn});var tr=Math.abs;re(re.S,"Math",{hypot:function t(e,n){var r=0;var i=0;var a=arguments.length;var o=0;var s,u;while(i<a){s=tr(arguments[i++]);if(o<s){u=o/s;r=r*u*u+1;o=s}else if(s>0){u=s/o;r+=u*u}else r+=s}return o===Infinity?Infinity:o*Math.sqrt(r)}});var er=Math.imul;re(re.S+re.F*Kt(function(){return er(4294967295,5)!=-5||er.length!=2}),"Math",{imul:function t(e,n){var r=65535;var i=+e;var a=+n;var o=r&i;var s=r&a;return 0|o*s+((r&i>>>16)*s+o*(r&a>>>16)<<16>>>0)}});re(re.S,"Math",{log10:function t(e){return Math.log(e)*Math.LOG10E}});re(re.S,"Math",{log1p:Fn});re(re.S,"Math",{log2:function t(e){return Math.log(e)/Math.LN2}});re(re.S,"Math",{sign:Gn});var nr=Math.exp;re(re.S+re.F*Kt(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function t(e){return Math.abs(e=+e)<1?(qn(e)-qn(-e))/2:(nr(e-1)-nr(-e-1))*(Math.E/2)}});var rr=Math.exp;re(re.S,"Math",{tanh:function t(e){var n=qn(e=+e);var r=qn(-e);return n==Infinity?1:r==Infinity?-1:(n-r)/(rr(e)+rr(-e))}});re(re.S,"Math",{trunc:function t(e){return(e>0?Math.floor:Math.ceil)(e)}});var ir=String.fromCharCode;var ar=String.fromCodePoint;re(re.S+re.F*(!!ar&&ar.length!=1),"String",{fromCodePoint:function t(e){var n=[];var r=arguments.length;var i=0;var a;while(r>i){a=+arguments[i++];if(se(a,1114111)!==a)throw RangeError(a+" is not a valid code point");n.push(a<65536?ir(a):ir(((a-=65536)>>10)+55296,a%1024+56320))}return n.join("")}});re(re.S,"String",{raw:function t(e){var n=R(e.raw);var r=oe(n.length);var i=arguments.length;var a=[];var o=0;while(r>o){a.push(String(n[o++]));if(o<i)a.push(String(arguments[o]))}return a.join("")}});Xe("trim",function(e){return function t(){return e(this,3)}});var or=function t(s){return function(t,e){var n=String(M(t));var r=ae(e);var i=n.length;var a,o;if(r<0||r>=i)return s?"":undefined;a=n.charCodeAt(r);return a<55296||a>56319||r+1===i||(o=n.charCodeAt(r+1))<56320||o>57343?s?n.charAt(r):a:s?n.slice(r,r+2):(a-55296<<10)+(o-56320)+65536}};var sr={};var ur={};Qt(ur,ie("iterator"),function(){return this});var lr=function t(e,n,r){e.prototype=ce(ur,{next:Jt(1,r)});G(e,n+" Iterator")};var cr=ie("iterator");var fr=!([].keys&&"next"in[].keys());var hr="@@iterator";var dr="keys";var gr="values";var vr=function t(){return this};var pr=function t(e,n,r,i,a,o,s){lr(r,n,i);var u=function t(e){if(!fr&&e in h)return h[e];switch(e){case dr:return function t(){return new r(this,e)};case gr:return function t(){return new r(this,e)}}return function t(){return new r(this,e)}};var l=n+" Iterator";var c=a==gr;var f=false;var h=e.prototype;var d=h[cr]||h[hr]||a&&h[a];var g=d||u(a);var v=a?!c?g:u("entries"):undefined;var p=n=="Array"?h.entries||d:d;var y,m,_;if(p){_=ye(p.call(new e));if(_!==Object.prototype&&_.next){G(_,l,true);if(typeof _[cr]!="function")Qt(_,cr,vr)}}if(c&&d&&d.name!==gr){f=true;g=function t(){return d.call(this)}}if(fr||f||!h[cr]){Qt(h,cr,g)}sr[n]=g;sr[l]=vr;if(a){y={values:c?g:u(gr),keys:o?g:u(dr),entries:v};if(s)for(m in y){if(!(m in h))b(h,m,y[m])}else re(re.P+re.F*(fr||f),n,y)}return y};var yr=or(true);pr(String,"String",function(t){this._t=String(t);this._i=0},function(){var t=this._t;var e=this._i;var n;if(e>=t.length)return{value:undefined,done:true};n=yr(t,e);this._i+=n.length;return{value:n,done:false}});var mr=or(false);re(re.P,"String",{codePointAt:function t(e){return mr(this,e)}});var _r=ie("match");var br=function t(e){var n;return Xt(e)&&((n=e[_r])!==undefined?!!n:E(e)=="RegExp")};var wr=function t(e,n,r){if(br(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(M(e))};var xr=ie("match");var kr=function t(e){var n=/./;try{"/./"[e](n)}catch(t){try{n[xr]=false;return!"/./"[e](n)}catch(t){}}return true};var Sr="endsWith";var Cr=""[Sr];re(re.P+re.F*kr(Sr),"String",{endsWith:function t(e){var n=wr(this,e,Sr);var r=arguments.length>1?arguments[1]:undefined;var i=oe(n.length);var a=r===undefined?i:Math.min(oe(r),i);var o=String(e);return Cr?Cr.call(n,o,a):n.slice(a-o.length,a)===o}});var Er="includes";re(re.P+re.F*kr(Er),"String",{includes:function t(e){return!!~wr(this,e,Er).indexOf(e,arguments.length>1?arguments[1]:undefined)}});re(re.P,"String",{repeat:wn});var Ar="startsWith";var Mr=""[Ar];re(re.P+re.F*kr(Ar),"String",{startsWith:function t(e){var n=wr(this,e,Ar);var r=oe(Math.min(arguments.length>1?arguments[1]:undefined,n.length));var i=String(e);return Mr?Mr.call(n,i,r):n.slice(r,r+i.length)===i}});var Rr=/"/g;var Tr=function t(e,n,r,i){var a=String(M(e));var o="<"+n;if(r!=="")o+=" "+r+'="'+String(i).replace(Rr,""")+'"';return o+">"+a+"</"+n+">"};var Or=function t(e,n){var r={};r[e]=n(Tr);re(re.P+re.F*Kt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)};Or("anchor",function(n){return function t(e){return n(this,"a","name",e)}});Or("big",function(e){return function t(){return e(this,"big","","")}});Or("blink",function(e){return function t(){return e(this,"blink","","")}});Or("bold",function(e){return function t(){return e(this,"b","","")}});Or("fixed",function(e){return function t(){return e(this,"tt","","")}});Or("fontcolor",function(n){return function t(e){return n(this,"font","color",e)}});Or("fontsize",function(n){return function t(e){return n(this,"font","size",e)}});Or("italics",function(e){return function t(){return e(this,"i","","")}});Or("link",function(n){return function t(e){return n(this,"a","href",e)}});Or("small",function(e){return function t(){return e(this,"small","","")}});Or("strike",function(e){return function t(){return e(this,"strike","","")}});Or("sub",function(e){return function t(){return e(this,"sub","","")}});Or("sup",function(e){return function t(){return e(this,"sup","","")}});re(re.S,"Date",{now:function t(){return(new Date).getTime()}});re(re.P+re.F*Kt(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function t(){return 1}})!==1}),"Date",{toJSON:function t(e){var n=le(this);var r=Zt(n);return typeof r=="number"&&!isFinite(r)?null:n.toISOString()}});var Pr=Date.prototype.getTime;var Br=Date.prototype.toISOString;var Dr=function t(e){return e>9?e:"0"+e};var Nr=Kt(function(){return Br.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!Kt(function(){Br.call(new Date(NaN))})?function t(){if(!isFinite(Pr.call(this)))throw RangeError("Invalid time value");var e=this;var n=e.getUTCFullYear();var r=e.getUTCMilliseconds();var i=n<0?"-":n>9999?"+":"";return i+("00000"+Math.abs(n)).slice(i?-6:-4)+"-"+Dr(e.getUTCMonth()+1)+"-"+Dr(e.getUTCDate())+"T"+Dr(e.getUTCHours())+":"+Dr(e.getUTCMinutes())+":"+Dr(e.getUTCSeconds())+"."+(r>99?r:"0"+Dr(r))+"Z"}:Br;re(re.P+re.F*(Date.prototype.toISOString!==Nr),"Date",{toISOString:Nr});var zr=Date.prototype;var Fr="Invalid Date";var jr="toString";var Ir=zr[jr];var Lr=zr.getTime;if(new Date(NaN)+""!=Fr){b(zr,jr,function t(){var e=Lr.call(this);return e===e?Ir.call(this):Fr})}var Hr="number";var Ur=function t(e){if(e!=="string"&&e!==Hr&&e!=="default")throw TypeError("Incorrect hint");return Zt(S(this),e!=Hr)};var Gr=ie("toPrimitive");var Vr=Date.prototype;if(!(Gr in Vr))Qt(Vr,Gr,Ur);re(re.S,"Array",{isArray:Y});var Wr=function t(e,n,r,i){try{return i?n(S(r)[0],r[1]):n(r)}catch(t){var a=e["return"];if(a!==undefined)S(a.call(e));throw t}};var qr=ie("iterator");var Kr=Array.prototype;var Yr=function t(e){return e!==undefined&&(sr.Array===e||Kr[qr]===e)};var Xr=function t(e,n,r){if(n in e)$t.f(e,n,Jt(0,r));else e[n]=r};var Zr=ie("iterator");var $r=p.getIteratorMethod=function(t){if(t!=undefined)return t[Zr]||t["@@iterator"]||sr[Re(t)]};var Jr=ie("iterator");var Qr=false;try{var ti=[7][Jr]();ti["return"]=function(){Qr=true};Array.from(ti,function(){throw 2})}catch(t){}var ei=function t(e,n){if(!n&&!Qr)return false;var r=false;try{var i=[7];var a=i[Jr]();a.next=function(){return{done:r=true}};i[Jr]=function(){return a};e(i)}catch(t){}return r};re(re.S+re.F*!ei(function(t){Array.from(t)}),"Array",{from:function t(e){var n=le(e);var r=typeof this=="function"?this:Array;var i=arguments.length;var a=i>1?arguments[1]:undefined;var o=a!==undefined;var s=0;var u=$r(n);var l,c,f,h;if(o)a=ne(a,i>2?arguments[2]:undefined,2);if(u!=undefined&&!(r==Array&&Yr(u))){for(h=u.call(n),c=new r;!(f=h.next()).done;s++){Xr(c,s,o?Wr(h,a,[f.value,s],true):f.value)}}else{l=oe(n.length);for(c=new r(l);l>s;s++){Xr(c,s,o?a(n[s],s):n[s])}}c.length=s;return c}});re(re.S+re.F*Kt(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function t(){var e=0;var n=arguments.length;var r=new(typeof this=="function"?this:Array)(n);while(n>e){Xr(r,e,arguments[e++])}r.length=n;return r}});var ni=function t(e,n){return!!e&&Kt(function(){n?e.call(null,function(){},1):e.call(null)})};var ri=[].join;re(re.P+re.F*(A!=Object||!ni(ri)),"Array",{join:function t(e){return ri.call(R(this),e===undefined?",":e)}});var ii=[].slice;re(re.P+re.F*Kt(function(){if($)ii.call($)}),"Array",{slice:function t(e,n){var r=oe(this.length);var i=E(this);n=n===undefined?r:n;if(i=="Array")return ii.call(this,e,n);var a=se(e,r);var o=se(n,r);var s=oe(o-a);var u=new Array(s);var l=0;for(;l<s;l++){u[l]=i=="String"?this.charAt(a+l):this[a+l]}return u}});var ai=[].sort;var oi=[1,2,3];re(re.P+re.F*(Kt(function(){oi.sort(undefined)})||!Kt(function(){oi.sort(null)})||!ni(ai)),"Array",{sort:function t(e){return e===undefined?ai.call(le(this)):ai.call(le(this),h(e))}});var si=ie("species");var ui=function t(e){var n;if(Y(e)){n=e.constructor;if(typeof n=="function"&&(n===Array||Y(n.prototype)))n=undefined;if(Xt(n)){n=n[si];if(n===null)n=undefined}}return n===undefined?Array:n};var li=function t(e,n){return new(ui(e))(n)};var ci=function t(f,e){var h=f==1;var d=f==2;var g=f==3;var v=f==4;var p=f==6;var y=f==5||p;var m=e||li;return function(t,e,n){var r=le(t);var i=A(r);var a=ne(e,n,3);var o=oe(i.length);var s=0;var u=h?m(t,o):d?m(t,0):undefined;var l,c;for(;o>s;s++){if(y||s in i){l=i[s];c=a(l,s,r);if(f){if(h)u[s]=c;else if(c)switch(f){case 3:return true;case 5:return l;case 6:return s;case 2:u.push(l)}else if(v)return false}}}return p?-1:g||v?v:u}};var fi=ci(0);var hi=ni([].forEach,true);re(re.P+re.F*!hi,"Array",{forEach:function t(e){return fi(this,e,arguments[1])}});var di=ci(1);re(re.P+re.F*!ni([].map,true),"Array",{map:function t(e){return di(this,e,arguments[1])}});var gi=ci(2);re(re.P+re.F*!ni([].filter,true),"Array",{filter:function t(e){return gi(this,e,arguments[1])}});var vi=ci(3);re(re.P+re.F*!ni([].some,true),"Array",{some:function t(e){return vi(this,e,arguments[1])}});var pi=ci(4);re(re.P+re.F*!ni([].every,true),"Array",{every:function t(e){return pi(this,e,arguments[1])}});var yi=function t(e,n,r,i,a){h(n);var o=le(e);var s=A(o);var u=oe(o.length);var l=a?u-1:0;var c=a?-1:1;if(r<2)for(;;){if(l in s){i=s[l];l+=c;break}l+=c;if(a?l<0:u<=l){throw TypeError("Reduce of empty array with no initial value")}}for(;a?l>=0:u>l;l+=c){if(l in s){i=n(i,s[l],l,o)}}return i};re(re.P+re.F*!ni([].reduce,true),"Array",{reduce:function t(e){return yi(this,e,arguments.length,arguments[1],false)}});re(re.P+re.F*!ni([].reduceRight,true),"Array",{reduceRight:function t(e){return yi(this,e,arguments.length,arguments[1],true)}});var mi=ue(false);var _i=[].indexOf;var bi=!!_i&&1/[1].indexOf(1,-0)<0;re(re.P+re.F*(bi||!ni(_i)),"Array",{indexOf:function t(e){return bi?_i.apply(this,arguments)||0:mi(this,e,arguments[1])}});var wi=[].lastIndexOf;var xi=!!wi&&1/[1].lastIndexOf(1,-0)<0;re(re.P+re.F*(xi||!ni(wi)),"Array",{lastIndexOf:function t(e){if(xi)return wi.apply(this,arguments)||0;var n=R(this);var r=oe(n.length);var i=r-1;if(arguments.length>1)i=Math.min(i,ae(arguments[1]));if(i<0)i=r+i;for(;i>=0;i--){if(i in n)if(n[i]===e)return i||0}return-1}});var ki=[].copyWithin||function t(e,n){var r=le(this);var i=oe(r.length);var a=se(e,i);var o=se(n,i);var s=arguments.length>2?arguments[2]:undefined;var u=Math.min((s===undefined?i:se(s,i))-o,i-a);var l=1;if(o<a&&a<o+u){l=-1;o+=u-1;a+=u-1}while(u-- >0){if(o in r)r[a]=r[o];else delete r[a];a+=l;o+=l}return r};var Si=ie("unscopables");var Ci=Array.prototype;if(Ci[Si]==undefined)Qt(Ci,Si,{});var Ei=function t(e){Ci[Si][e]=true};re(re.P,"Array",{copyWithin:ki});Ei("copyWithin");var Ai=function t(e){var n=le(this);var r=oe(n.length);var i=arguments.length;var a=se(i>1?arguments[1]:undefined,r);var o=i>2?arguments[2]:undefined;var s=o===undefined?r:se(o,r);while(s>a){n[a++]=e}return n};re(re.P,"Array",{fill:Ai});Ei("fill");var Mi=ci(5);var Ri="find";var Ti=true;if(Ri in[])Array(1)[Ri](function(){Ti=false});re(re.P+re.F*Ti,"Array",{find:function t(e){return Mi(this,e,arguments.length>1?arguments[1]:undefined)}});Ei(Ri);var Oi=ci(6);var Pi="findIndex";var Bi=true;if(Pi in[])Array(1)[Pi](function(){Bi=false});re(re.P+re.F*Bi,"Array",{findIndex:function t(e){return Oi(this,e,arguments.length>1?arguments[1]:undefined)}});Ei(Pi);var Di=ie("species");var Ni=function t(e){var n=Wt[e];if(Yt&&n&&!n[Di])$t.f(n,Di,{configurable:true,get:function t(){return this}})};Ni("Array");var zi=function t(e,n){return{value:n,done:!!e}};var Fi=pr(Array,"Array",function(t,e){this._t=R(t);this._i=0;this._k=e},function(){var t=this._t;var e=this._k;var n=this._i++;if(!t||n>=t.length){this._t=undefined;return zi(1)}if(e=="keys")return zi(0,n);if(e=="values")return zi(0,t[n]);return zi(0,[n,t[n]])},"values");sr.Arguments=sr.Array;Ei("keys");Ei("values");Ei("entries");var ji=function t(){var e=S(this);var n="";if(e.global)n+="g";if(e.ignoreCase)n+="i";if(e.multiline)n+="m";if(e.unicode)n+="u";if(e.sticky)n+="y";return n};var Ii=$t.f;var Li=fe.f;var Hi=Wt.RegExp;var Ui=Hi;var Gi=Hi.prototype;var Vi=/a/g;var Wi=/a/g;var qi=new Hi(Vi)!==Vi;if(Yt&&(!qi||Kt(function(){Wi[ie("match")]=false;return Hi(Vi)!=Vi||Hi(Wi)==Wi||Hi(Vi,"i")!="/a/i"}))){Hi=function t(e,n){var r=this instanceof Hi;var i=br(e);var a=n===undefined;return!r&&i&&e.constructor===Hi&&a?e:an(qi?new Ui(i&&!a?e.source:e,n):Ui((i=e instanceof Hi)?e.source:e,i&&a?ji.call(e):n),r?this:Gi,Hi)};var Ki=function t(n){n in Hi||Ii(Hi,n,{configurable:true,get:function t(){return Ui[n]},set:function t(e){Ui[n]=e}})};for(var Yi=Li(Ui),Xi=0;Yi.length>Xi;){Ki(Yi[Xi++])}Gi.constructor=Hi;Hi.prototype=Gi;b(Wt,"RegExp",Hi)}Ni("RegExp");var Zi=RegExp.prototype.exec;var $i=String.prototype.replace;var Ji=Zi;var Qi="lastIndex";var ta=function(){var t=/a/,e=/b*/g;Zi.call(t,"a");Zi.call(e,"a");return t[Qi]!==0||e[Qi]!==0}();var ea=/()??/.exec("")[1]!==undefined;var na=ta||ea;if(na){Ji=function t(e){var n=this;var r,i,a,o;if(ea){i=new RegExp("^"+n.source+"$(?!\\s)",ji.call(n))}if(ta)r=n[Qi];a=Zi.call(n,e);if(ta&&a){n[Qi]=n.global?a.index+a[0].length:r}if(ea&&a&&a.length>1){$i.call(a[0],i,function(){for(o=1;o<arguments.length-2;o++){if(arguments[o]===undefined)a[o]=undefined}})}return a}}var ra=Ji;re({target:"RegExp",proto:true,forced:ra!==/./.exec},{exec:ra});if(Yt&&/./g.flags!="g")$t.f(RegExp.prototype,"flags",{configurable:true,get:ji});var ia="toString";var aa=/./[ia];var oa=function t(e){b(RegExp.prototype,ia,e,true)};if(Kt(function(){return aa.call({source:"a",flags:"b"})!="/a/b"})){oa(function t(){var e=S(this);return"/".concat(e.source,"/","flags"in e?e.flags:!Yt&&e instanceof RegExp?ji.call(e):undefined)})}else if(aa.name!=ia){oa(function t(){return aa.call(this)})}var sa=or(true);var ua=function t(e,n,r){return n+(r?sa(e,n).length:1)};var la=RegExp.prototype.exec;var ca=function t(e,n){var r=e.exec;if(typeof r==="function"){var i=r.call(e,n);if(_typeof2(i)!=="object"){throw new TypeError("RegExp exec method returned something other than an Object or null")}return i}if(Re(e)!=="RegExp"){throw new TypeError("RegExp#exec called on incompatible receiver")}return la.call(e,n)};var fa=ie("species");var ha=!Kt(function(){var t=/./;t.exec=function(){var t=[];t.groups={a:"7"};return t};return"".replace(t,"$<a>")!=="7"});var da=function(){var t=/(?:)/;var e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length===2&&n[0]==="a"&&n[1]==="b"}();var ga=function t(n,e,r){var i=ie(n);var o=!Kt(function(){var t={};t[i]=function(){return 7};return""[n](t)!=7});var a=o?!Kt(function(){var t=false;var e=/a/;e.exec=function(){t=true;return null};if(n==="split"){e.constructor={};e.constructor[fa]=function(){return e}}e[i]("");return!t}):undefined;if(!o||!a||n==="replace"&&!ha||n==="split"&&!da){var s=/./[i];var u=r(M,i,""[n],function t(e,n,r,i,a){if(n.exec===ra){if(o&&!a){return{done:true,value:s.call(n,r,i)}}return{done:true,value:e.call(r,n,i)}}return{done:false}});var l=u[0];var c=u[1];b(String.prototype,n,l);Qt(RegExp.prototype,i,e==2?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}};ga("match",1,function(i,a,l,c){return[function t(e){var n=i(this);var r=e==undefined?undefined:e[a];return r!==undefined?r.call(e,n):new RegExp(e)[a](String(n))},function(t){var e=c(l,t,this);if(e.done)return e.value;var n=S(t);var r=String(this);if(!n.global)return ca(n,r);var i=n.unicode;n.lastIndex=0;var a=[];var o=0;var s;while((s=ca(n,r))!==null){var u=String(s[0]);a[o]=u;if(u==="")n.lastIndex=ua(r,oe(n.lastIndex),i);o++}return o===0?null:a}]});var va=Math.max;var pa=Math.min;var ya=Math.floor;var ma=/\$([$&`']|\d\d?|<[^>]*>)/g;var _a=/\$([$&`']|\d\d?)/g;var ba=function t(e){return e===undefined?e:String(e)};ga("replace",2,function(a,o,w,x){return[function t(e,n){var r=a(this);var i=e==undefined?undefined:e[o];return i!==undefined?i.call(e,r,n):w.call(String(r),e,n)},function(t,e){var n=x(w,t,this,e);if(n.done)return n.value;var r=S(t);var i=String(this);var a=typeof e==="function";if(!a)e=String(e);var o=r.global;if(o){var s=r.unicode;r.lastIndex=0}var u=[];while(true){var l=ca(r,i);if(l===null)break;u.push(l);if(!o)break;var c=String(l[0]);if(c==="")r.lastIndex=ua(i,oe(r.lastIndex),s)}var f="";var h=0;for(var d=0;d<u.length;d++){l=u[d];var g=String(l[0]);var v=va(pa(ae(l.index),i.length),0);var p=[];for(var y=1;y<l.length;y++){p.push(ba(l[y]))}var m=l.groups;if(a){var _=[g].concat(p,v,i);if(m!==undefined)_.push(m);var b=String(e.apply(undefined,_))}else{b=k(g,i,v,p,m,e)}if(v>=h){f+=i.slice(h,v)+b;h=v+g.length}}return f+i.slice(h)}];function k(a,o,s,u,l,t){var c=s+a.length;var f=u.length;var e=_a;if(l!==undefined){l=le(l);e=ma}return w.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(c);case"<":n=l[e.slice(1,-1)];break;default:var r=+e;if(r===0)return t;if(r>f){var i=ya(r/10);if(i===0)return t;if(i<=f)return u[i-1]===undefined?e.charAt(1):u[i-1]+e.charAt(1);return t}n=u[r-1]}return n===undefined?"":n})}});ga("search",1,function(i,a,o,s){return[function t(e){var n=i(this);var r=e==undefined?undefined:e[a];return r!==undefined?r.call(e,n):new RegExp(e)[a](String(n))},function(t){var e=s(o,t,this);if(e.done)return e.value;var n=S(t);var r=String(this);var i=n.lastIndex;if(!ke(i,0))n.lastIndex=0;var a=ca(n,r);if(!ke(n.lastIndex,i))n.lastIndex=i;return a===null?-1:a.index}]});var wa=ie("species");var xa=function t(e,n){var r=S(e).constructor;var i;return r===undefined||(i=S(r)[wa])==undefined?n:h(i)};var ka=Math.min;var Sa=[].push;var Ca="split";var Ea="length";var Aa="lastIndex";var Ma=4294967295;var Ra=!Kt(function(){RegExp(Ma,"y")});ga("split",2,function(a,o,p,y){var m;if("abbc"[Ca](/(b)*/)[1]=="c"||"test"[Ca](/(?:)/,-1)[Ea]!=4||"ab"[Ca](/(?:ab)*/)[Ea]!=2||"."[Ca](/(.?)(.?)/)[Ea]!=4||"."[Ca](/()()/)[Ea]>1||""[Ca](/.?/)[Ea]){m=function t(e,n){var r=String(this);if(e===undefined&&n===0)return[];if(!br(e))return p.call(r,e,n);var i=[];var a=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":"");var o=0;var s=n===undefined?Ma:n>>>0;var u=new RegExp(e.source,a+"g");var l,c,f;while(l=ra.call(u,r)){c=u[Aa];if(c>o){i.push(r.slice(o,l.index));if(l[Ea]>1&&l.index<r[Ea])Sa.apply(i,l.slice(1));f=l[0][Ea];o=c;if(i[Ea]>=s)break}if(u[Aa]===l.index)u[Aa]++}if(o===r[Ea]){if(f||!u.test(""))i.push("")}else i.push(r.slice(o));return i[Ea]>s?i.slice(0,s):i}}else if("0"[Ca](undefined,0)[Ea]){m=function t(e,n){return e===undefined&&n===0?[]:p.call(this,e,n)}}else{m=p}return[function t(e,n){var r=a(this);var i=e==undefined?undefined:e[o];return i!==undefined?i.call(e,r,n):m.call(String(r),e,n)},function(t,e){var n=y(m,t,this,e,m!==p);if(n.done)return n.value;var r=S(t);var i=String(this);var a=xa(r,RegExp);var o=r.unicode;var s=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Ra?"y":"g");var u=new a(Ra?r:"^(?:"+r.source+")",s);var l=e===undefined?Ma:e>>>0;if(l===0)return[];if(i.length===0)return ca(u,i)===null?[i]:[];var c=0;var f=0;var h=[];while(f<i.length){u.lastIndex=Ra?f:0;var d=ca(u,Ra?i:i.slice(f));var g;if(d===null||(g=ka(oe(u.lastIndex+(Ra?0:f)),i.length))===c){f=ua(i,f,o)}else{h.push(i.slice(c,f));if(h.length===l)return h;for(var v=1;v<=d.length-1;v++){h.push(d[v]);if(h.length===l)return h}f=c=g}}h.push(i.slice(c));return h}]});var Ta=function t(e,n,r,i){if(!(e instanceof n)||i!==undefined&&i in e){throw TypeError(r+": incorrect invocation!")}return e};var Oa=t(function(t){var h={};var d={};var e=t.exports=function(t,e,n,r,i){var a=i?function(){return t}:$r(t);var o=ne(n,r,e?2:1);var s=0;var u,l,c,f;if(typeof a!="function")throw TypeError(t+" is not iterable!");if(Yr(a))for(u=oe(t.length);u>s;s++){f=e?o(S(l=t[s])[0],l[1]):o(t[s]);if(f===h||f===d)return f}else for(c=a.call(t);!(l=c.next()).done;){f=Wr(c,o,l.value,e);if(f===h||f===d)return f}};e.BREAK=h;e.RETURN=d});var Pa=Wt.process;var Ba=Wt.setImmediate;var Da=Wt.clearImmediate;var Na=Wt.MessageChannel;var za=Wt.Dispatch;var Fa=0;var ja={};var Ia="onreadystatechange";var La,Ha,Ua;var Ga=function t(){var e=+this;if(ja.hasOwnProperty(e)){var n=ja[e];delete ja[e];n()}};var Va=function t(e){Ga.call(e.data)};if(!Ba||!Da){Ba=function t(e){var n=[];var r=1;while(arguments.length>r){n.push(arguments[r++])}ja[++Fa]=function(){Oe(typeof e=="function"?e:Function(e),n)};La(Fa);return Fa};Da=function t(e){delete ja[e]};if(E(Pa)=="process"){La=function t(e){Pa.nextTick(ne(Ga,e,1))}}else if(za&&za.now){La=function t(e){za.now(ne(Ga,e,1))}}else if(Na){Ha=new Na;Ua=Ha.port2;Ha.port1.onmessage=Va;La=ne(Ua.postMessage,Ua,1)}else if(Wt.addEventListener&&typeof postMessage=="function"&&!Wt.importScripts){La=function t(e){Wt.postMessage(e+"","*")};Wt.addEventListener("message",Va,false)}else if(Ia in o("script")){La=function t(e){$.appendChild(o("script"))[Ia]=function(){$.removeChild(this);Ga.call(e)}}}else{La=function t(e){setTimeout(ne(Ga,e,1),0)}}}var Wa={set:Ba,clear:Da};var qa=Wa.set;var Ka=Wt.MutationObserver||Wt.WebKitMutationObserver;var Ya=Wt.process;var Xa=Wt.Promise;var Za=E(Ya)=="process";var $a=function t(){var r,i,a;var e=function t(){var e,n;if(Za&&(e=Ya.domain))e.exit();while(r){n=r.fn;r=r.next;try{n()}catch(t){if(r)a();else i=undefined;throw t}}i=undefined;if(e)e.enter()};if(Za){a=function t(){Ya.nextTick(e)}}else if(Ka&&!(Wt.navigator&&Wt.navigator.standalone)){var n=true;var o=document.createTextNode("");new Ka(e).observe(o,{characterData:true});a=function t(){o.data=n=!n}}else if(Xa&&Xa.resolve){var s=Xa.resolve(undefined);a=function t(){s.then(e)}}else{a=function t(){qa.call(Wt,e)}}return function(t){var e={fn:t,next:undefined};if(i)i.next=e;if(!r){r=e;a()}i=e}};function Ja(t){var n,r;this.promise=new t(function(t,e){if(n!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");n=t;r=e});this.resolve=h(n);this.reject=h(r)}var Qa=function t(e){return new Ja(e)};var to={f:Qa};var eo=function t(e){try{return{e:false,v:e()}}catch(t){return{e:true,v:t}}};var no=Wt.navigator;var ro=no&&no.userAgent||"";var io=function t(e,n){S(e);if(Xt(n)&&n.constructor===e)return n;var r=to.f(e);var i=r.resolve;i(n);return r.promise};var ao=function t(e,n,r){for(var i in n){b(e,i,n[i],r)}return e};var oo=Wa.set;var so=$a();var uo="Promise";var lo=Wt.TypeError;var co=Wt.process;var fo=co&&co.versions;var ho=fo&&fo.v8||"";var go=Wt[uo];var vo=Re(co)=="process";var po=function t(){};var yo,mo,_o,bo;var wo=mo=to.f;var xo=!!function(){try{var t=go.resolve(1);var e=(t.constructor={})[ie("species")]=function(t){t(po,po)};return(vo||typeof PromiseRejectionEvent=="function")&&t.then(po)instanceof e&&ho.indexOf("6.6")!==0&&ro.indexOf("Chrome/66")===-1}catch(t){}}();var ko=function t(e){var n;return Xt(e)&&typeof(n=e.then)=="function"?n:false};var So=function t(f,n){if(f._n)return;f._n=true;var r=f._c;so(function(){var l=f._v;var c=f._s==1;var t=0;var e=function t(e){var n=c?e.ok:e.fail;var r=e.resolve;var i=e.reject;var a=e.domain;var o,s,u;try{if(n){if(!c){if(f._h==2)Ao(f);f._h=1}if(n===true)o=l;else{if(a)a.enter();o=n(l);if(a){a.exit();u=true}}if(o===e.promise){i(lo("Promise-chain cycle"))}else if(s=ko(o)){s.call(o,r,i)}else r(o)}else i(l)}catch(t){if(a&&!u)a.exit();i(t)}};while(r.length>t){e(r[t++])}f._c=[];f._n=false;if(n&&!f._h)Co(f)})};var Co=function t(a){oo.call(Wt,function(){var t=a._v;var e=Eo(a);var n,r,i;if(e){n=eo(function(){if(vo){co.emit("unhandledRejection",t,a)}else if(r=Wt.onunhandledrejection){r({promise:a,reason:t})}else if((i=Wt.console)&&i.error){i.error("Unhandled promise rejection",t)}});a._h=vo||Eo(a)?2:1}a._a=undefined;if(e&&n.e)throw n.v})};var Eo=function t(e){return e._h!==1&&(e._a||e._c).length===0};var Ao=function t(e){oo.call(Wt,function(){var t;if(vo){co.emit("rejectionHandled",e)}else if(t=Wt.onrejectionhandled){t({promise:e,reason:e._v})}})};var Mo=function t(e){var n=this;if(n._d)return;n._d=true;n=n._w||n;n._v=e;n._s=2;if(!n._a)n._a=n._c.slice();So(n,true)};var Ro=function t(n){var r=this;var i;if(r._d)return;r._d=true;r=r._w||r;try{if(r===n)throw lo("Promise can't be resolved itself");if(i=ko(n)){so(function(){var e={_w:r,_d:false};try{i.call(n,ne(t,e,1),ne(Mo,e,1))}catch(t){Mo.call(e,t)}})}else{r._v=n;r._s=1;So(r,false)}}catch(t){Mo.call({_w:r,_d:false},t)}};if(!xo){go=function t(e){Ta(this,go,uo,"_h");h(e);yo.call(this);try{e(ne(Ro,this,1),ne(Mo,this,1))}catch(t){Mo.call(this,t)}};yo=function t(e){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};yo.prototype=ao(go.prototype,{then:function t(e,n){var r=wo(xa(this,go));r.ok=typeof e=="function"?e:true;r.fail=typeof n=="function"&&n;r.domain=vo?co.domain:undefined;this._c.push(r);if(this._a)this._a.push(r);if(this._s)So(this,false);return r.promise},catch:function t(e){return this.then(undefined,e)}});_o=function t(){var e=new yo;this.promise=e;this.resolve=ne(Ro,e,1);this.reject=ne(Mo,e,1)};to.f=wo=function t(e){return e===go||e===bo?new _o(e):mo(e)}}re(re.G+re.W+re.F*!xo,{Promise:go});G(go,uo);Ni(uo);bo=p[uo];re(re.S+re.F*!xo,uo,{reject:function t(e){var n=wo(this);var r=n.reject;r(e);return n.promise}});re(re.S+re.F*!xo,uo,{resolve:function t(e){return io(this,e)}});re(re.S+re.F*!(xo&&ei(function(t){go.all(t)["catch"](po)})),uo,{all:function t(e){var o=this;var n=wo(o);var s=n.resolve;var u=n.reject;var r=eo(function(){var r=[];var i=0;var a=1;Oa(e,false,function(t){var e=i++;var n=false;r.push(undefined);a++;o.resolve(t).then(function(t){if(n)return;n=true;r[e]=t;--a||s(r)},u)});--a||s(r)});if(r.e)u(r.v);return n.promise},race:function t(e){var n=this;var r=wo(n);var i=r.reject;var a=eo(function(){Oa(e,false,function(t){n.resolve(t).then(r.resolve,i)})});if(a.e)i(a.v);return r.promise}});var To=function t(e,n){if(!Xt(e)||e._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return e};var Oo=$t.f;var Po=m.fastKey;var Bo=Yt?"_s":"size";var Do=function t(e,n){var r=Po(n);var i;if(r!=="F")return e._i[r];for(i=e._f;i;i=i.n){if(i.k==n)return i}};var No={getConstructor:function t(e,o,n,r){var i=e(function(t,e){Ta(t,i,o,"_i");t._t=o;t._i=ce(null);t._f=undefined;t._l=undefined;t[Bo]=0;if(e!=undefined)Oa(e,n,t[r],t)});ao(i.prototype,{clear:function t(){for(var e=To(this,o),n=e._i,r=e._f;r;r=r.n){r.r=true;if(r.p)r.p=r.p.n=undefined;delete n[r.i]}e._f=e._l=undefined;e[Bo]=0},delete:function t(e){var n=To(this,o);var r=Do(n,e);if(r){var i=r.n;var a=r.p;delete n._i[r.i];r.r=true;if(a)a.n=i;if(i)i.p=a;if(n._f==r)n._f=i;if(n._l==r)n._l=a;n[Bo]--}return!!r},forEach:function t(e){To(this,o);var n=ne(e,arguments.length>1?arguments[1]:undefined,3);var r;while(r=r?r.n:this._f){n(r.v,r.k,this);while(r&&r.r){r=r.p}}},has:function t(e){return!!Do(To(this,o),e)}});if(Yt)Oo(i.prototype,"size",{get:function t(){return To(this,o)[Bo]}});return i},def:function t(e,n,r){var i=Do(e,n);var a,o;if(i){i.v=r}else{e._l=i={i:o=Po(n,true),k:n,v:r,p:a=e._l,n:undefined,r:false};if(!e._f)e._f=i;if(a)a.n=i;e[Bo]++;if(o!=="F")e._i[o]=i}return e},getEntry:Do,setStrong:function t(e,n,r){pr(e,n,function(t,e){this._t=To(t,n);this._k=e;this._l=undefined},function(){var t=this;var e=t._k;var n=t._l;while(n&&n.r){n=n.p}if(!t._t||!(t._l=n=n?n.n:t._t._f)){t._t=undefined;return zi(1)}if(e=="keys")return zi(0,n.k);if(e=="values")return zi(0,n.v);return zi(0,[n.k,n.v])},r?"entries":"values",!r,true);Ni(n)}};var zo=function t(r,e,n,i,a,o){var s=Wt[r];var u=s;var l=a?"set":"add";var c=u&&u.prototype;var f={};var h=function t(e){var r=c[e];b(c,e,e=="delete"?function(t){return o&&!Xt(t)?false:r.call(this,t===0?0:t)}:e=="has"?function t(e){return o&&!Xt(e)?false:r.call(this,e===0?0:e)}:e=="get"?function t(e){return o&&!Xt(e)?undefined:r.call(this,e===0?0:e)}:e=="add"?function t(e){r.call(this,e===0?0:e);return this}:function t(e,n){r.call(this,e===0?0:e,n);return this})};if(typeof u!="function"||!(o||c.forEach&&!Kt(function(){(new u).entries().next()}))){u=i.getConstructor(e,r,a,l);ao(u.prototype,n);m.NEED=true}else{var d=new u;var g=d[l](o?{}:-0,1)!=d;var v=Kt(function(){d.has(1)});var p=ei(function(t){new u(t)});var y=!o&&Kt(function(){var t=new u;var e=5;while(e--){t[l](e,e)}return!t.has(-0)});if(!p){u=e(function(t,e){Ta(t,u,r);var n=an(new s,t,u);if(e!=undefined)Oa(e,a,n[l],n);return n});u.prototype=c;c.constructor=u}if(v||y){h("delete");h("has");a&&h("get")}if(y||g)h(l);if(o&&c.clear)delete c.clear}G(u,r);f[r]=u;re(re.G+re.W+re.F*(u!=s),f);if(!o)i.setStrong(u,r,a);return u};var Fo="Map";var jo=zo(Fo,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{get:function t(e){var n=No.getEntry(To(this,Fo),e);return n&&n.v},set:function t(e,n){return No.def(To(this,Fo),e===0?0:e,n)}},No,true);var Io="Set";var Lo=zo(Io,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function t(e){return No.def(To(this,Io),e=e===0?0:e,e)}},No);var Ho=m.getWeak;var Uo=ci(5);var Go=ci(6);var Vo=0;var Wo=function t(e){return e._l||(e._l=new qo)};var qo=function t(){this.a=[]};var Ko=function t(e,n){return Uo(e.a,function(t){return t[0]===n})};qo.prototype={get:function t(e){var n=Ko(this,e);if(n)return n[1]},has:function t(e){return!!Ko(this,e)},set:function t(e,n){var r=Ko(this,e);if(r)r[1]=n;else this.a.push([e,n])},delete:function t(e){var n=Go(this.a,function(t){return t[0]===e});if(~n)this.a.splice(n,1);return!!~n}};var Yo={getConstructor:function t(e,r,n,i){var a=e(function(t,e){Ta(t,a,r,"_i");t._t=r;t._i=Vo++;t._l=undefined;if(e!=undefined)Oa(e,n,t[i],t)});ao(a.prototype,{delete:function t(e){if(!Xt(e))return false;var n=Ho(e);if(n===true)return Wo(To(this,r))["delete"](e);return n&&qt(n,this._i)&&delete n[this._i]},has:function t(e){if(!Xt(e))return false;var n=Ho(e);if(n===true)return Wo(To(this,r)).has(e);return n&&qt(n,this._i)}});return a},def:function t(e,n,r){var i=Ho(S(n),true);if(i===true)Wo(e).set(n,r);else i[e._i]=r;return e},ufstore:Wo};var Xo=t(function(t){var e=ci(0);var n=To;var r=!Wt.ActiveXObject&&"ActiveXObject"in Wt;var i="WeakMap";var a=m.getWeak;var o=Object.isExtensible;var s=Yo.ufstore;var u;var l=function t(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}};var c={get:function t(e){if(Xt(e)){var n=a(e);if(n===true)return s(To(this,i)).get(e);return n?n[this._i]:undefined}},set:function t(e,n){return Yo.def(To(this,i),e,n)}};var f=t.exports=zo(i,l,c,Yo,true,true);if(n&&r){u=Yo.getConstructor(l,i);xe(u.prototype,c);m.NEED=true;e(["delete","has","get","set"],function(r){var t=f.prototype;var i=t[r];b(t,r,function(t,e){if(Xt(t)&&!o(t)){if(!this._f)this._f=new u;var n=this._f[r](t,e);return r=="set"?this:n}return i.call(this,t,e)})})}});var Zo="WeakSet";zo(Zo,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function t(e){return Yo.def(To(this,Zo),e,true)}},Yo,false,true);var $o=te("typed_array");var Jo=te("view");var Qo=!!(Wt.ArrayBuffer&&Wt.DataView);var ts=Qo;var es=0;var ns=9;var rs;var is="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(es<ns){if(rs=Wt[is[es++]]){Qt(rs.prototype,$o,true);Qt(rs.prototype,Jo,true)}else ts=false}var as={ABV:Qo,CONSTR:ts,TYPED:$o,VIEW:Jo};var os=function t(e){if(e===undefined)return 0;var n=ae(e);var r=oe(n);if(n!==r)throw RangeError("Wrong length!");return r};var ss=t(function(t,e){var n=fe.f;var r=$t.f;var i="ArrayBuffer";var o="DataView";var a="prototype";var s="Wrong length!";var h="Wrong index!";var u=Wt[i];var l=Wt[o];var c=Wt.Math;var d=Wt.RangeError;var g=Wt.Infinity;var f=u;var v=c.abs;var p=c.pow;var y=c.floor;var m=c.log;var _=c.LN2;var b="buffer";var w="byteLength";var x="byteOffset";var k=Yt?"_b":b;var S=Yt?"_l":w;var C=Yt?"_o":x;function E(t,e,n){var r=new Array(n);var i=n*8-e-1;var a=(1<<i)-1;var o=a>>1;var s=e===23?p(2,-24)-p(2,-77):0;var u=0;var l=t<0||t===0&&1/t<0?1:0;var c,f,h;t=v(t);if(t!=t||t===g){f=t!=t?1:0;c=a}else{c=y(m(t)/_);if(t*(h=p(2,-c))<1){c--;h*=2}if(c+o>=1){t+=s/h}else{t+=s*p(2,1-o)}if(t*h>=2){c++;h/=2}if(c+o>=a){f=0;c=a}else if(c+o>=1){f=(t*h-1)*p(2,e);c=c+o}else{f=t*p(2,o-1)*p(2,e);c=0}}for(;e>=8;r[u++]=f&255,f/=256,e-=8){}c=c<<e|f;i+=e;for(;i>0;r[u++]=c&255,c/=256,i-=8){}r[--u]|=l*128;return r}function A(t,e,n){var r=n*8-e-1;var i=(1<<r)-1;var a=i>>1;var o=r-7;var s=n-1;var u=t[s--];var l=u&127;var c;u>>=7;for(;o>0;l=l*256+t[s],s--,o-=8){}c=l&(1<<-o)-1;l>>=-o;o+=e;for(;o>0;c=c*256+t[s],s--,o-=8){}if(l===0){l=1-a}else if(l===i){return c?NaN:u?-g:g}else{c=c+p(2,e);l=l-a}return(u?-1:1)*c*p(2,l-e)}function M(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[t&255]}function T(t){return[t&255,t>>8&255]}function O(t){return[t&255,t>>8&255,t>>16&255,t>>24&255]}function P(t){return E(t,52,8)}function B(t){return E(t,23,4)}function D(t,e,n){r(t[a],e,{get:function t(){return this[n]}})}function N(t,e,n,r){var i=+n;var a=os(i);if(a+e>t[S])throw d(h);var o=t[k]._b;var s=a+t[C];var u=o.slice(s,s+e);return r?u:u.reverse()}function z(t,e,n,r,i,a){var o=+n;var s=os(o);if(s+e>t[S])throw d(h);var u=t[k]._b;var l=s+t[C];var c=r(+i);for(var f=0;f<e;f++){u[l+f]=c[a?f:e-f-1]}}if(!as.ABV){u=function t(e){Ta(this,u,i);var n=os(e);this._b=Ai.call(new Array(n),0);this[S]=n};l=function t(e,n,r){Ta(this,l,o);Ta(e,u,o);var i=e[S];var a=ae(n);if(a<0||a>i)throw d("Wrong offset!");r=r===undefined?i-a:oe(r);if(a+r>i)throw d(s);this[k]=e;this[C]=a;this[S]=r};if(Yt){D(u,w,"_l");D(l,b,"_b");D(l,w,"_l");D(l,x,"_o")}ao(l[a],{getInt8:function t(e){return N(this,1,e)[0]<<24>>24},getUint8:function t(e){return N(this,1,e)[0]},getInt16:function t(e){var n=N(this,2,e,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function t(e){var n=N(this,2,e,arguments[1]);return n[1]<<8|n[0]},getInt32:function t(e){return M(N(this,4,e,arguments[1]))},getUint32:function t(e){return M(N(this,4,e,arguments[1]))>>>0},getFloat32:function t(e){return A(N(this,4,e,arguments[1]),23,4)},getFloat64:function t(e){return A(N(this,8,e,arguments[1]),52,8)},setInt8:function t(e,n){z(this,1,e,R,n)},setUint8:function t(e,n){z(this,1,e,R,n)},setInt16:function t(e,n){z(this,2,e,T,n,arguments[2])},setUint16:function t(e,n){z(this,2,e,T,n,arguments[2])},setInt32:function t(e,n){z(this,4,e,O,n,arguments[2])},setUint32:function t(e,n){z(this,4,e,O,n,arguments[2])},setFloat32:function t(e,n){z(this,4,e,B,n,arguments[2])},setFloat64:function t(e,n){z(this,8,e,P,n,arguments[2])}})}else{if(!Kt(function(){u(1)})||!Kt(function(){new u(-1)})||Kt(function(){new u;new u(1.5);new u(NaN);return u.name!=i})){u=function t(e){Ta(this,u);return new f(os(e))};var F=u[a]=f[a];for(var j=n(f),I=0,L;j.length>I;){if(!((L=j[I++])in u))Qt(u,L,f[L])}F.constructor=u}var H=new l(new u(2));var U=l[a].setInt8;H.setInt8(0,2147483648);H.setInt8(1,2147483649);if(H.getInt8(0)||!H.getInt8(1))ao(l[a],{setInt8:function t(e,n){U.call(this,e,n<<24>>24)},setUint8:function t(e,n){U.call(this,e,n<<24>>24)}},true)}G(u,i);G(l,o);Qt(l[a],as.VIEW,true);e[i]=u;e[o]=l});var us=Wt.ArrayBuffer;var ls=ss.ArrayBuffer;var cs=ss.DataView;var fs=as.ABV&&us.isView;var hs=ls.prototype.slice;var ds=as.VIEW;var gs="ArrayBuffer";re(re.G+re.W+re.F*(us!==ls),{ArrayBuffer:ls});re(re.S+re.F*!as.CONSTR,gs,{isView:function t(e){return fs&&fs(e)||Xt(e)&&ds in e}});re(re.P+re.U+re.F*Kt(function(){return!new ls(2).slice(1,undefined).byteLength}),gs,{slice:function t(e,n){if(hs!==undefined&&n===undefined)return hs.call(S(this),e);var r=S(this).byteLength;var i=se(e,r);var a=se(n===undefined?r:n,r);var o=new(xa(this,ls))(oe(a-i));var s=new cs(this);var u=new cs(o);var l=0;while(i<a){u.setUint8(l++,s.getUint8(i++))}return o}});Ni(gs);re(re.G+re.W+re.F*!as.ABV,{DataView:ss.DataView});var vs=t(function(t){if(Yt){var _=ee;var b=Wt;var w=Kt;var x=re;var k=as;var e=ss;var d=ne;var S=Ta;var r=Jt;var C=Qt;var n=ao;var i=ae;var E=oe;var A=os;var o=se;var a=Zt;var s=qt;var M=Re;var R=Xt;var g=le;var v=Yr;var T=ce;var O=ye;var P=fe.f;var p=$r;var u=te;var l=ie;var c=ci;var f=ue;var h=xa;var y=Fi;var B=sr;var D=ei;var N=Ni;var m=Ai;var z=ki;var F=$t;var j=he;var I=F.f;var L=j.f;var H=b.RangeError;var U=b.TypeError;var G=b.Uint8Array;var V="ArrayBuffer";var W="Shared"+V;var q="BYTES_PER_ELEMENT";var K="prototype";var Y=Array[K];var X=e.ArrayBuffer;var Z=e.DataView;var $=c(0);var J=c(2);var Q=c(3);var tt=c(4);var et=c(5);var nt=c(6);var rt=f(true);var it=f(false);var at=y.values;var ot=y.keys;var st=y.entries;var ut=Y.lastIndexOf;var lt=Y.reduce;var ct=Y.reduceRight;var ft=Y.join;var ht=Y.sort;var dt=Y.slice;var gt=Y.toString;var vt=Y.toLocaleString;var pt=l("iterator");var yt=l("toStringTag");var mt=u("typed_constructor");var _t=u("def_constructor");var bt=k.CONSTR;var wt=k.TYPED;var xt=k.VIEW;var kt="Wrong length!";var St=c(1,function(t,e){return Rt(h(t,t[_t]),e)});var Ct=w(function(){return new G(new Uint16Array([1]).buffer)[0]===1});var Et=!!G&&!!G[K].set&&w(function(){new G(1).set({})});var At=function t(e,n){var r=i(e);if(r<0||r%n)throw H("Wrong offset!");return r};var Mt=function t(e){if(R(e)&&wt in e)return e;throw U(e+" is not a typed array!")};var Rt=function t(e,n){if(!(R(e)&&mt in e)){throw U("It is not a typed array constructor!")}return new e(n)};var Tt=function t(e,n){return Ot(h(e,e[_t]),n)};var Ot=function t(e,n){var r=0;var i=n.length;var a=Rt(e,i);while(i>r){a[r]=n[r++]}return a};var Pt=function t(e,n,r){I(e,n,{get:function t(){return this._d[r]}})};var Bt=function t(e){var n=g(e);var r=arguments.length;var i=r>1?arguments[1]:undefined;var a=i!==undefined;var o=p(n);var s,u,l,c,f,h;if(o!=undefined&&!v(o)){for(h=o.call(n),l=[],s=0;!(f=h.next()).done;s++){l.push(f.value)}n=l}if(a&&r>2)i=d(i,arguments[2],2);for(s=0,u=E(n.length),c=Rt(this,u);u>s;s++){c[s]=a?i(n[s],s):n[s]}return c};var Dt=function t(){var e=0;var n=arguments.length;var r=Rt(this,n);while(n>e){r[e]=arguments[e++]}return r};var Nt=!!G&&w(function(){vt.call(new G(1))});var zt=function t(){return vt.apply(Nt?dt.call(Mt(this)):Mt(this),arguments)};var Ft={copyWithin:function t(e,n){return z.call(Mt(this),e,n,arguments.length>2?arguments[2]:undefined)},every:function t(e){return tt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},fill:function t(e){return m.apply(Mt(this),arguments)},filter:function t(e){return Tt(this,J(Mt(this),e,arguments.length>1?arguments[1]:undefined))},find:function t(e){return et(Mt(this),e,arguments.length>1?arguments[1]:undefined)},findIndex:function t(e){return nt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},forEach:function t(e){$(Mt(this),e,arguments.length>1?arguments[1]:undefined)},indexOf:function t(e){return it(Mt(this),e,arguments.length>1?arguments[1]:undefined)},includes:function t(e){return rt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},join:function t(e){return ft.apply(Mt(this),arguments)},lastIndexOf:function t(e){return ut.apply(Mt(this),arguments)},map:function t(e){return St(Mt(this),e,arguments.length>1?arguments[1]:undefined)},reduce:function t(e){return lt.apply(Mt(this),arguments)},reduceRight:function t(e){return ct.apply(Mt(this),arguments)},reverse:function t(){var e=this;var n=Mt(e).length;var r=Math.floor(n/2);var i=0;var a;while(i<r){a=e[i];e[i++]=e[--n];e[n]=a}return e},some:function t(e){return Q(Mt(this),e,arguments.length>1?arguments[1]:undefined)},sort:function t(e){return ht.call(Mt(this),e)},subarray:function t(e,n){var r=Mt(this);var i=r.length;var a=o(e,i);return new(h(r,r[_t]))(r.buffer,r.byteOffset+a*r.BYTES_PER_ELEMENT,E((n===undefined?i:o(n,i))-a))}};var jt=function t(e,n){return Tt(this,dt.call(Mt(this),e,n))};var It=function t(e){Mt(this);var n=At(arguments[1],1);var r=this.length;var i=g(e);var a=E(i.length);var o=0;if(a+n>r)throw H(kt);while(o<a){this[n+o]=i[o++]}};var Lt={entries:function t(){return st.call(Mt(this))},keys:function t(){return ot.call(Mt(this))},values:function t(){return at.call(Mt(this))}};var Ht=function t(e,n){return R(e)&&e[wt]&&_typeof2(n)!="symbol"&&n in e&&String(+n)==String(n)};var Ut=function t(e,n){return Ht(e,n=a(n,true))?r(2,e[n]):L(e,n)};var Gt=function t(e,n,r){if(Ht(e,n=a(n,true))&&R(r)&&s(r,"value")&&!s(r,"get")&&!s(r,"set")&&!r.configurable&&(!s(r,"writable")||r.writable)&&(!s(r,"enumerable")||r.enumerable)){e[n]=r.value;return e}return I(e,n,r)};if(!bt){j.f=Ut;F.f=Gt}x(x.S+x.F*!bt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Gt});if(w(function(){gt.call({})})){gt=vt=function t(){return ft.call(this)}}var Vt=n({},Ft);n(Vt,Lt);C(Vt,pt,Lt.values);n(Vt,{slice:jt,set:It,constructor:function t(){},toString:gt,toLocaleString:zt});Pt(Vt,"buffer","b");Pt(Vt,"byteOffset","o");Pt(Vt,"byteLength","l");Pt(Vt,"length","e");I(Vt,yt,{get:function t(){return this[wt]}});t.exports=function(t,f,e,a){a=!!a;var h=t+(a?"Clamped":"")+"Array";var i="get"+t;var o="set"+t;var d=b[h];var s=d||{};var n=d&&O(d);var r=!d||!k.ABV;var u={};var l=d&&d[K];var c=function t(e,n){var r=e._d;return r.v[i](n*f+r.o,Ct)};var g=function t(e,n,r){var i=e._d;if(a)r=(r=Math.round(r))<0?0:r>255?255:r&255;i.v[o](n*f+i.o,r,Ct)};var v=function t(e,n){I(e,n,{get:function t(){return c(this,n)},set:function t(e){return g(this,n,e)},enumerable:true})};if(r){d=e(function(t,e,n,r){S(t,d,h,"_d");var i=0;var a=0;var o,s,u,l;if(!R(e)){u=A(e);s=u*f;o=new X(s)}else if(e instanceof X||(l=M(e))==V||l==W){o=e;a=At(n,f);var c=e.byteLength;if(r===undefined){if(c%f)throw H(kt);s=c-a;if(s<0)throw H(kt)}else{s=E(r)*f;if(s+a>c)throw H(kt)}u=s/f}else if(wt in e){return Ot(d,e)}else{return Bt.call(d,e)}C(t,"_d",{b:o,o:a,l:s,e:u,v:new Z(o)});while(i<u){v(t,i++)}});l=d[K]=T(Vt);C(l,"constructor",d)}else if(!w(function(){d(1)})||!w(function(){new d(-1)})||!D(function(t){new d;new d(null);new d(1.5);new d(t)},true)){d=e(function(t,e,n,r){S(t,d,h);var i;if(!R(e))return new s(A(e));if(e instanceof X||(i=M(e))==V||i==W){return r!==undefined?new s(e,At(n,f),r):n!==undefined?new s(e,At(n,f)):new s(e)}if(wt in e)return Ot(d,e);return Bt.call(d,e)});$(n!==Function.prototype?P(s).concat(P(n)):P(s),function(t){if(!(t in d))C(d,t,s[t])});d[K]=l;if(!_)l.constructor=d}var p=l[pt];var y=!!p&&(p.name=="values"||p.name==undefined);var m=Lt.values;C(d,mt,true);C(l,wt,h);C(l,xt,true);C(l,_t,d);if(a?new d(1)[yt]!=h:!(yt in l)){I(l,yt,{get:function t(){return h}})}u[h]=d;x(x.G+x.W+x.F*(d!=s),u);x(x.S,h,{BYTES_PER_ELEMENT:f});x(x.S+x.F*w(function(){s.of.call(d,1)}),h,{from:Bt,of:Dt});if(!(q in l))C(l,q,f);x(x.P,h,Ft);N(h);x(x.P+x.F*Et,h,{set:It});x(x.P+x.F*!y,h,Lt);if(!_&&l.toString!=gt)l.toString=gt;x(x.P+x.F*w(function(){new d(1).slice()}),h,{slice:jt});x(x.P+x.F*(w(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!w(function(){l.toLocaleString.call([1,2])})),h,{toLocaleString:zt});B[h]=y?p:m;if(!_&&!y)C(l,pt,m)}}else t.exports=function(){}});vs("Int8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}},true);vs("Int16",2,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint16",2,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Int32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Float32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Float64",8,function(i){return function t(e,n,r){return i(this,e,n,r)}});var ps=(Wt.Reflect||{}).apply;var ys=Function.apply;re(re.S+re.F*!Kt(function(){ps(function(){})}),"Reflect",{apply:function t(e,n,r){var i=h(e);var a=S(r);return ps?ps(i,n,a):ys.call(i,n,a)}});var ms=(Wt.Reflect||{}).construct;var _s=Kt(function(){function t(){}return!(ms(function(){},[],t)instanceof t)});var bs=!Kt(function(){ms(function(){})});re(re.S+re.F*(_s||bs),"Reflect",{construct:function t(e,n){h(e);S(n);var r=arguments.length<3?e:h(arguments[2]);if(bs&&!_s)return ms(e,n,r);if(e==r){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var i=[null];i.push.apply(i,n);return new(Ne.apply(e,i))}var a=r.prototype;var o=ce(Xt(a)?a:Object.prototype);var s=Function.apply.call(e,o,n);return Xt(s)?s:o}});re(re.S+re.F*Kt(function(){Reflect.defineProperty($t.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function t(e,n,r){S(e);n=Zt(n,true);S(r);try{$t.f(e,n,r);return true}catch(t){return false}}});var ws=he.f;re(re.S,"Reflect",{deleteProperty:function t(e,n){var r=ws(S(e),n);return r&&!r.configurable?false:delete e[n]}});var xs=function t(e){this._t=S(e);this._i=0;var n=this._k=[];var r;for(r in e){n.push(r)}};lr(xs,"Object",function(){var t=this;var e=t._k;var n;do{if(t._i>=e.length)return{value:undefined,done:true}}while(!((n=e[t._i++])in t._t));return{value:n,done:false}});re(re.S,"Reflect",{enumerate:function t(e){return new xs(e)}});function ks(t,e){var n=arguments.length<3?t:arguments[2];var r,i;if(S(t)===n)return t[e];if(r=he.f(t,e))return qt(r,"value")?r.value:r.get!==undefined?r.get.call(n):undefined;if(Xt(i=ye(t)))return ks(i,e,n)}re(re.S,"Reflect",{get:ks});re(re.S,"Reflect",{getOwnPropertyDescriptor:function t(e,n){return he.f(S(e),n)}});re(re.S,"Reflect",{getPrototypeOf:function t(e){return ye(S(e))}});re(re.S,"Reflect",{has:function t(e,n){return n in e}});var Ss=Object.isExtensible;re(re.S,"Reflect",{isExtensible:function t(e){S(e);return Ss?Ss(e):true}});var Cs=Wt.Reflect;var Es=Cs&&Cs.ownKeys||function t(e){var n=fe.f(S(e));var r=V.f;return r?n.concat(r(e)):n};re(re.S,"Reflect",{ownKeys:Es});var As=Object.preventExtensions;re(re.S,"Reflect",{preventExtensions:function t(e){S(e);try{if(As)As(e);return true}catch(t){return false}}});function Ms(t,e,n){var r=arguments.length<4?t:arguments[3];var i=he.f(S(t),e);var a,o;if(!i){if(Xt(o=ye(t))){return Ms(o,e,n,r)}i=Jt(0)}if(qt(i,"value")){if(i.writable===false||!Xt(r))return false;if(a=he.f(r,e)){if(a.get||a.set||a.writable===false)return false;a.value=n;$t.f(r,e,a)}else $t.f(r,e,Jt(0,n));return true}return i.set===undefined?false:(i.set.call(r,n),true)}re(re.S,"Reflect",{set:Ms});if(Ce)re(re.S,"Reflect",{setPrototypeOf:function t(e,n){Ce.check(e,n);try{Ce.set(e,n);return true}catch(t){return false}}});var Rs=ue(true);re(re.P,"Array",{includes:function t(e){return Rs(this,e,arguments.length>1?arguments[1]:undefined)}});Ei("includes");var Ts=ie("isConcatSpreadable");function Os(t,e,n,r,i,a,o,s){var u=i;var l=0;var c=o?ne(o,s,3):false;var f,h;while(l<r){if(l in n){f=c?c(n[l],l,e):n[l];h=false;if(Xt(f)){h=f[Ts];h=h!==undefined?!!h:Y(f)}if(h&&a>0){u=Os(t,e,f,oe(f.length),u,a-1)-1}else{if(u>=9007199254740991)throw TypeError();t[u]=f}u++}l++}return u}var Ps=Os;re(re.P,"Array",{flatMap:function t(e){var n=le(this);var r,i;h(e);r=oe(n.length);i=li(n,0);Ps(i,n,n,r,0,1,e,arguments[1]);return i}});Ei("flatMap");re(re.P,"Array",{flatten:function t(){var e=arguments[0];var n=le(this);var r=oe(n.length);var i=li(n,0);Ps(i,n,n,r,0,e===undefined?1:ae(e));return i}});Ei("flatten");var Bs=or(true);var Ds=Kt(function(){return"𠮷".at(0)!=="𠮷"});re(re.P+re.F*Ds,"String",{at:function t(e){return Bs(this,e)}});var Ns=function t(e,n,r,i){var a=String(M(e));var o=a.length;var s=r===undefined?" ":String(r);var u=oe(n);if(u<=o||s=="")return a;var l=u-o;var c=wn.call(s,Math.ceil(l/s.length));if(c.length>l)c=c.slice(0,l);return i?c+a:a+c};var zs=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ro);re(re.P+re.F*zs,"String",{padStart:function t(e){return Ns(this,e,arguments.length>1?arguments[1]:undefined,true)}});var Fs=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ro);re(re.P+re.F*Fs,"String",{padEnd:function t(e){return Ns(this,e,arguments.length>1?arguments[1]:undefined,false)}});Xe("trimLeft",function(e){return function t(){return e(this,1)}},"trimStart");Xe("trimRight",function(e){return function t(){return e(this,2)}},"trimEnd");var js=RegExp.prototype;var Is=function t(e,n){this._r=e;this._s=n};lr(Is,"RegExp String",function t(){var e=this._r.exec(this._s);return{value:e,done:e===null}});re(re.P,"String",{matchAll:function t(e){M(this);if(!br(e))throw TypeError(e+" is not a regexp!");var n=String(this);var r="flags"in js?String(e.flags):ji.call(e);var i=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);i.lastIndex=oe(e.lastIndex);return new Is(i,n)}});k("asyncIterator");k("observable");re(re.S,"Object",{getOwnPropertyDescriptors:function t(e){var n=R(e);var r=he.f;var i=Es(n);var a={};var o=0;var s,u;while(i.length>o){u=r(n,s=i[o++]);if(u!==undefined)Xr(a,s,u)}return a}});var Ls=q.f;var Hs=function t(s){return function(t){var e=R(t);var n=H(e);var r=n.length;var i=0;var a=[];var o;while(r>i){o=n[i++];if(!Yt||Ls.call(e,o)){a.push(s?[o,e[o]]:e[o])}}return a}};var Us=Hs(false);re(re.S,"Object",{values:function t(e){return Us(e)}});var Gs=Hs(true);re(re.S,"Object",{entries:function t(e){return Gs(e)}});var Vs=!Kt(function(){var t=Math.random();__defineSetter__.call(null,t,function(){});delete Wt[t]});Yt&&re(re.P+Vs,"Object",{__defineGetter__:function t(e,n){$t.f(le(this),e,{get:h(n),enumerable:true,configurable:true})}});Yt&&re(re.P+Vs,"Object",{__defineSetter__:function t(e,n){$t.f(le(this),e,{set:h(n),enumerable:true,configurable:true})}});var Ws=he.f;Yt&&re(re.P+Vs,"Object",{__lookupGetter__:function t(e){var n=le(this);var r=Zt(e,true);var i;do{if(i=Ws(n,r))return i.get}while(n=ye(n))}});var qs=he.f;Yt&&re(re.P+Vs,"Object",{__lookupSetter__:function t(e){var n=le(this);var r=Zt(e,true);var i;do{if(i=qs(n,r))return i.set}while(n=ye(n))}});var Ks=function t(e,n){var r=[];Oa(e,false,r.push,r,n);return r};var Ys=function t(e){return function t(){if(Re(this)!=e)throw TypeError(e+"#toJSON isn't generic");return Ks(this)}};re(re.P+re.R,"Map",{toJSON:Ys("Map")});re(re.P+re.R,"Set",{toJSON:Ys("Set")});var Xs=function t(e){re(re.S,e,{of:function t(){var e=arguments.length;var n=new Array(e);while(e--){n[e]=arguments[e]}return new this(n)}})};Xs("Map");Xs("Set");Xs("WeakMap");Xs("WeakSet");var Zs=function t(e){re(re.S,e,{from:function t(e){var n=arguments[1];var r,i,a,o;h(this);r=n!==undefined;if(r)h(n);if(e==undefined)return new this;i=[];if(r){a=0;o=ne(n,arguments[2],2);Oa(e,false,function(t){i.push(o(t,a++))})}else{Oa(e,false,i.push,i)}return new this(i)}})};Zs("Map");Zs("Set");Zs("WeakMap");Zs("WeakSet");re(re.G,{global:Wt});re(re.S,"System",{global:Wt});re(re.S,"Error",{isError:function t(e){return E(e)==="Error"}});re(re.S,"Math",{clamp:function t(e,n,r){return Math.min(r,Math.max(n,e))}});re(re.S,"Math",{DEG_PER_RAD:Math.PI/180});var $s=180/Math.PI;re(re.S,"Math",{degrees:function t(e){return e*$s}});var Js=Math.scale||function t(e,n,r,i,a){if(arguments.length===0||e!=e||n!=n||r!=r||i!=i||a!=a)return NaN;if(e===Infinity||e===-Infinity)return e;return(e-n)*(a-i)/(r-n)+i};re(re.S,"Math",{fscale:function t(e,n,r,i,a){return Qn(Js(e,n,r,i,a))}});re(re.S,"Math",{iaddh:function t(e,n,r,i){var a=e>>>0;var o=n>>>0;var s=r>>>0;return o+(i>>>0)+((a&s|(a|s)&~(a+s>>>0))>>>31)|0}});re(re.S,"Math",{isubh:function t(e,n,r,i){var a=e>>>0;var o=n>>>0;var s=r>>>0;return o-(i>>>0)-((~a&s|~(a^s)&a-s>>>0)>>>31)|0}});re(re.S,"Math",{imulh:function t(e,n){var r=65535;var i=+e;var a=+n;var o=i&r;var s=a&r;var u=i>>16;var l=a>>16;var c=(u*s>>>0)+(o*s>>>16);return u*l+(c>>16)+((o*l>>>0)+(c&r)>>16)}});re(re.S,"Math",{RAD_PER_DEG:180/Math.PI});var Qs=Math.PI/180;re(re.S,"Math",{radians:function t(e){return e*Qs}});re(re.S,"Math",{scale:Js});re(re.S,"Math",{umulh:function t(e,n){var r=65535;var i=+e;var a=+n;var o=i&r;var s=a&r;var u=i>>>16;var l=a>>>16;var c=(u*s>>>0)+(o*s>>>16);return u*l+(c>>>16)+((o*l>>>0)+(c&r)>>>16)}});re(re.S,"Math",{signbit:function t(e){return(e=+e)!=e?e:e==0?1/e==Infinity:e>0}});re(re.P+re.R,"Promise",{finally:function t(e){var n=xa(this,p.Promise||Wt.Promise);var r=typeof e=="function";return this.then(r?function(t){return io(n,e()).then(function(){return t})}:e,r?function(t){return io(n,e()).then(function(){throw t})}:e)}});re(re.S,"Promise",{try:function t(e){var n=to.f(this);var r=eo(e);(r.e?n.reject:n.resolve)(r.v);return n.promise}});var tu=c("metadata");var eu=tu.store||(tu.store=new Xo);var nu=function t(e,n,r){var i=eu.get(e);if(!i){if(!r)return undefined;eu.set(e,i=new jo)}var a=i.get(n);if(!a){if(!r)return undefined;i.set(n,a=new jo)}return a};var ru=function t(e,n,r){var i=nu(n,r,false);return i===undefined?false:i.has(e)};var iu=function t(e,n,r){var i=nu(n,r,false);return i===undefined?undefined:i.get(e)};var au=function t(e,n,r,i){nu(r,i,true).set(e,n)};var ou=function t(e,n){var r=nu(e,n,false);var i=[];if(r)r.forEach(function(t,e){i.push(e)});return i};var su=function t(e){return e===undefined||_typeof2(e)=="symbol"?e:String(e)};var uu=function t(e){re(re.S,"Reflect",e)};var lu={store:eu,map:nu,has:ru,get:iu,set:au,keys:ou,key:su,exp:uu};var cu=lu.key;var fu=lu.set;lu.exp({defineMetadata:function t(e,n,r,i){fu(e,n,S(r),cu(i))}});var hu=lu.key;var du=lu.map;var gu=lu.store;lu.exp({deleteMetadata:function t(e,n){var r=arguments.length<3?undefined:hu(arguments[2]);var i=du(S(n),r,false);if(i===undefined||!i["delete"](e))return false;if(i.size)return true;var a=gu.get(n);a["delete"](r);return!!a.size||gu["delete"](n)}});var vu=lu.has;var pu=lu.get;var yu=lu.key;var mu=function t(e,n,r){var i=vu(e,n,r);if(i)return pu(e,n,r);var a=ye(n);return a!==null?t(e,a,r):undefined};lu.exp({getMetadata:function t(e,n){return mu(e,S(n),arguments.length<3?undefined:yu(arguments[2]))}});var _u=lu.keys;var bu=lu.key;var wu=function t(e,n){var r=_u(e,n);var i=ye(e);if(i===null)return r;var a=t(i,n);return a.length?r.length?Ks(new Lo(r.concat(a))):a:r};lu.exp({getMetadataKeys:function t(e){return wu(S(e),arguments.length<2?undefined:bu(arguments[1]))}});var xu=lu.get;var ku=lu.key;lu.exp({getOwnMetadata:function t(e,n){return xu(e,S(n),arguments.length<3?undefined:ku(arguments[2]))}});var Su=lu.keys;var Cu=lu.key;lu.exp({getOwnMetadataKeys:function t(e){return Su(S(e),arguments.length<2?undefined:Cu(arguments[1]))}});var Eu=lu.has;var Au=lu.key;var Mu=function t(e,n,r){var i=Eu(e,n,r);if(i)return true;var a=ye(n);return a!==null?t(e,a,r):false};lu.exp({hasMetadata:function t(e,n){return Mu(e,S(n),arguments.length<3?undefined:Au(arguments[2]))}});var Ru=lu.has;var Tu=lu.key;lu.exp({hasOwnMetadata:function t(e,n){return Ru(e,S(n),arguments.length<3?undefined:Tu(arguments[2]))}});var Ou=lu.key;var Pu=lu.set;lu.exp({metadata:function t(r,i){return function t(e,n){Pu(r,i,(n!==undefined?S:h)(e),Ou(n))}}});var Bu=$a();var Du=Wt.process;var Nu=E(Du)=="process";re(re.G,{asap:function t(e){var n=Nu&&Du.domain;Bu(n?n.bind(e):e)}});var zu=$a();var Fu=ie("observable");var ju=Oa.RETURN;var Iu=function t(e){return e==null?undefined:h(e)};var Lu=function t(e){var n=e._c;if(n){e._c=undefined;n()}};var Hu=function t(e){return e._o===undefined};var Uu=function t(e){if(!Hu(e)){e._o=undefined;Lu(e)}};var Gu=function t(e,n){S(e);this._c=undefined;this._o=e;e=new Vu(this);try{var r=n(e);var i=r;if(r!=null){if(typeof r.unsubscribe==="function")r=function t(){i.unsubscribe()};else h(r);this._c=r}}catch(t){e.error(t);return}if(Hu(this))Lu(this)};Gu.prototype=ao({},{unsubscribe:function t(){Uu(this)}});var Vu=function t(e){this._s=e};Vu.prototype=ao({},{next:function t(e){var n=this._s;if(!Hu(n)){var r=n._o;try{var i=Iu(r.next);if(i)return i.call(r,e)}catch(t){try{Uu(n)}finally{throw t}}}},error:function t(e){var n=this._s;if(Hu(n))throw e;var r=n._o;n._o=undefined;try{var i=Iu(r.error);if(!i)throw e;e=i.call(r,e)}catch(t){try{Lu(n)}finally{throw t}}Lu(n);return e},complete:function t(e){var n=this._s;if(!Hu(n)){var r=n._o;n._o=undefined;try{var i=Iu(r.complete);e=i?i.call(r,e):undefined}catch(t){try{Lu(n)}finally{throw t}}Lu(n);return e}}});var Wu=function t(e){Ta(this,Wu,"Observable","_f")._f=h(e)};ao(Wu.prototype,{subscribe:function t(e){return new Gu(e,this._f)},forEach:function t(i){var e=this;return new(p.Promise||Wt.Promise)(function(t,n){h(i);var r=e.subscribe({next:function t(e){try{return i(e)}catch(t){n(t);r.unsubscribe()}},error:n,complete:t})})}});ao(Wu,{from:function t(r){var e=typeof this==="function"?this:Wu;var n=Iu(S(r)[Fu]);if(n){var i=S(n.call(r));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}return new e(function(e){var n=false;zu(function(){if(!n){try{if(Oa(r,false,function(t){e.next(t);if(n)return ju})===ju)return}catch(t){if(n)throw t;e.error(t);return}e.complete()}});return function(){n=true}})},of:function t(){for(var e=0,n=arguments.length,r=new Array(n);e<n;){r[e]=arguments[e++]}return new(typeof this==="function"?this:Wu)(function(e){var n=false;zu(function(){if(!n){for(var t=0;t<r.length;++t){e.next(r[t]);if(n)return}e.complete()}});return function(){n=true}})}});Qt(Wu.prototype,Fu,function(){return this});re(re.G,{Observable:Wu});Ni("Observable");var qu=[].slice;var Ku=/MSIE .\./.test(ro);var Yu=function t(i){return function(t,e){var n=arguments.length>2;var r=n?qu.call(arguments,2):false;return i(n?function(){(typeof t=="function"?t:Function(t)).apply(this,r)}:t,e)}};re(re.G+re.B+re.F*Ku,{setTimeout:Yu(Wt.setTimeout),setInterval:Yu(Wt.setInterval)});re(re.G+re.B,{setImmediate:Wa.set,clearImmediate:Wa.clear});var Xu=ie("iterator");var Zu=ie("toStringTag");var $u=sr.Array;var Ju={CSSRuleList:true,CSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,MimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,TextTrackCueList:false,TextTrackList:false,TouchList:false};for(var Qu=H(Ju),tl=0;tl<Qu.length;tl++){var el=Qu[tl];var nl=Ju[el];var rl=Wt[el];var il=rl&&rl.prototype;var al;if(il){if(!il[Xu])Qt(il,Xu,$u);if(!il[Zu])Qt(il,Zu,el);sr[el]=$u;if(nl)for(al in Fi){if(!il[al])b(il,al,Fi[al],true)}}}t(function(t){var e=function(o){var t=Object.prototype;var c=t.hasOwnProperty;var l;var e=typeof Symbol==="function"?Symbol:{};var i=e.iterator||"@@iterator";var n=e.asyncIterator||"@@asyncIterator";var r=e.toStringTag||"@@toStringTag";function a(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true});return t[e]}try{a({},"")}catch(t){a=function t(e,n,r){return e[n]=r}}function s(t,e,n,r){var i=e&&e.prototype instanceof u?e:u;var a=Object.create(i.prototype);var o=new R(r||[]);a._invoke=C(t,n,o);return a}o.wrap=s;function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}var h="suspendedStart";var d="suspendedYield";var g="executing";var v="completed";var p={};function u(){}function y(){}function m(){}var _={};a(_,i,function(){return this});var b=Object.getPrototypeOf;var w=b&&b(b(T([])));if(w&&w!==t&&c.call(w,i)){_=w}var x=m.prototype=u.prototype=Object.create(_);y.prototype=m;a(x,"constructor",m);a(m,"constructor",y);y.displayName=a(m,r,"GeneratorFunction");function k(t){["next","throw","return"].forEach(function(e){a(t,e,function(t){return this._invoke(e,t)})})}o.isGeneratorFunction=function(t){var e=typeof t==="function"&&t.constructor;return e?e===y||(e.displayName||e.name)==="GeneratorFunction":false};o.mark=function(t){if(Object.setPrototypeOf){Object.setPrototypeOf(t,m)}else{t.__proto__=m;a(t,r,"GeneratorFunction")}t.prototype=Object.create(x);return t};o.awrap=function(t){return{__await:t}};function S(s,u){function l(t,e,n,r){var i=f(s[t],s,e);if(i.type==="throw"){r(i.arg)}else{var a=i.arg;var o=a.value;if(o&&_typeof2(o)==="object"&&c.call(o,"__await")){return u.resolve(o.__await).then(function(t){l("next",t,n,r)},function(t){l("throw",t,n,r)})}return u.resolve(o).then(function(t){a.value=t;n(a)},function(t){return l("throw",t,n,r)})}}var e;function t(n,r){function t(){return new u(function(t,e){l(n,r,t,e)})}return e=e?e.then(t,t):t()}this._invoke=t}k(S.prototype);a(S.prototype,n,function(){return this});o.AsyncIterator=S;o.async=function(t,e,n,r,i){if(i===void 0)i=Promise;var a=new S(s(t,e,n,r),i);return o.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})};function C(o,s,u){var l=h;return function t(e,n){if(l===g){throw new Error("Generator is already running")}if(l===v){if(e==="throw"){throw n}return O()}u.method=e;u.arg=n;while(true){var r=u.delegate;if(r){var i=E(r,u);if(i){if(i===p)continue;return i}}if(u.method==="next"){u.sent=u._sent=u.arg}else if(u.method==="throw"){if(l===h){l=v;throw u.arg}u.dispatchException(u.arg)}else if(u.method==="return"){u.abrupt("return",u.arg)}l=g;var a=f(o,s,u);if(a.type==="normal"){l=u.done?v:d;if(a.arg===p){continue}return{value:a.arg,done:u.done}}else if(a.type==="throw"){l=v;u.method="throw";u.arg=a.arg}}}}function E(t,e){var n=t.iterator[e.method];if(n===l){e.delegate=null;if(e.method==="throw"){if(t.iterator["return"]){e.method="return";e.arg=l;E(t,e);if(e.method==="throw"){return p}}e.method="throw";e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,t.iterator,e.arg);if(r.type==="throw"){e.method="throw";e.arg=r.arg;e.delegate=null;return p}var i=r.arg;if(!i){e.method="throw";e.arg=new TypeError("iterator result is not an object");e.delegate=null;return p}if(i.done){e[t.resultName]=i.value;e.next=t.nextLoc;if(e.method!=="return"){e.method="next";e.arg=l}}else{return i}e.delegate=null;return p}k(x);a(x,r,"Generator");a(x,i,function(){return this});a(x,"toString",function(){return"[object Generator]"});function A(t){var e={tryLoc:t[0]};if(1 in t){e.catchLoc=t[1]}if(2 in t){e.finallyLoc=t[2];e.afterLoc=t[3]}this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal";delete e.arg;t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(A,this);this.reset(true)}o.keys=function(n){var r=[];for(var t in n){r.push(t)}r.reverse();return function t(){while(r.length){var e=r.pop();if(e in n){t.value=e;t.done=false;return t}}t.done=true;return t}};function T(e){if(e){var t=e[i];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var n=-1,r=function t(){while(++n<e.length){if(c.call(e,n)){t.value=e[n];t.done=false;return t}}t.value=l;t.done=true;return t};return r.next=r}}return{next:O}}o.values=T;function O(){return{value:l,done:true}}R.prototype={constructor:R,reset:function t(e){this.prev=0;this.next=0;this.sent=this._sent=l;this.done=false;this.delegate=null;this.method="next";this.arg=l;this.tryEntries.forEach(M);if(!e){for(var n in this){if(n.charAt(0)==="t"&&c.call(this,n)&&!isNaN(+n.slice(1))){this[n]=l}}}},stop:function t(){this.done=true;var e=this.tryEntries[0];var n=e.completion;if(n.type==="throw"){throw n.arg}return this.rval},dispatchException:function t(n){if(this.done){throw n}var r=this;function e(t,e){o.type="throw";o.arg=n;r.next=t;if(e){r.method="next";r.arg=l}return!!e}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];var o=a.completion;if(a.tryLoc==="root"){return e("end")}if(a.tryLoc<=this.prev){var s=c.call(a,"catchLoc");var u=c.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc){return e(a.catchLoc,true)}else if(this.prev<a.finallyLoc){return e(a.finallyLoc)}}else if(s){if(this.prev<a.catchLoc){return e(a.catchLoc,true)}}else if(u){if(this.prev<a.finallyLoc){return e(a.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function t(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&c.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}if(a&&(e==="break"||e==="continue")&&a.tryLoc<=n&&n<=a.finallyLoc){a=null}var o=a?a.completion:{};o.type=e;o.arg=n;if(a){this.method="next";this.next=a.finallyLoc;return p}return this.complete(o)},complete:function t(e,n){if(e.type==="throw"){throw e.arg}if(e.type==="break"||e.type==="continue"){this.next=e.arg}else if(e.type==="return"){this.rval=this.arg=e.arg;this.method="return";this.next="end"}else if(e.type==="normal"&&n){this.next=n}return p},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e){this.complete(r.completion,r.afterLoc);M(r);return p}}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if(i.type==="throw"){var a=i.arg;M(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function t(e,n,r){this.delegate={iterator:T(e),resultName:n,nextLoc:r};if(this.method==="next"){this.arg=l}return p}};return o}(t.exports);try{regeneratorRuntime=e}catch(t){if((typeof globalThis==="undefined"?"undefined":_typeof2(globalThis))==="object"){globalThis.regeneratorRuntime=e}else{Function("r","regeneratorRuntime = r")(e)}}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(t){return}function n(t){switch(t.nodeType){case 1:return i(t);case 3:return e(t);case 8:return r(t)}}function e(t){return t.textContent.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function r(t){return"\x3c!--"+t.nodeValue+"--\x3e"}function i(t){var e="";e+="<"+t.tagName;if(t.hasAttributes()){[].forEach.call(t.attributes,function(t){e+=" "+t.name+'="'+t.value+'"'})}e+=">";if(t.hasChildNodes()){[].forEach.call(t.childNodes,function(t){e+=n(t)})}e+="</"+t.tagName+">";return e}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function t(){var e="";[].forEach.call(this.childNodes,function(t){e+=n(t)});return e},set:function t(e){while(this.firstChild){this.removeChild(this.firstChild)}try{var n=new DOMParser;n.async=false;var r="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+e+"</svg>";var i=n.parseFromString(r,"text/xml").documentElement;[].forEach.call(i.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,true))}.bind(this))}catch(t){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function t(){return this.innerHTML},set:function t(e){this.innerHTML=e}})})()}});(function(t,e){(typeof exports==="undefined"?"undefined":_typeof2(exports))==="object"&&typeof module!=="undefined"?e(exports):typeof define==="function"&&define.amd?define("d3plus",["exports"],e):(t=typeof globalThis!=="undefined"?globalThis:t||self,e(t.d3plus={}))})(this,function(t){var e=regeneratorRuntime.mark(g),l=regeneratorRuntime.mark(Ds),f=regeneratorRuntime.mark(ub),o=regeneratorRuntime.mark(Bb),u=regeneratorRuntime.mark(fW),h=regeneratorRuntime.mark(uZ),s=regeneratorRuntime.mark(MZ);var n="2.0.1";function v(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function c(r){var a=r;var o=r;if(r.length===1){a=function t(e,n){return r(e)-n};o=i(r)}function s(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)<0)n=i+1;else r=i}return n}function t(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)>0)r=i;else n=i+1}return n}function e(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;var i=s(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i}return{left:s,center:e,right:t}}function i(n){return function(t,e){return v(n(t),e)}}function d(t){return t===null?NaN:+t}function g(n,r){var i,a,o,s,u,l,c;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:if(!(r===undefined)){e.next=21;break}i=_createForOfIteratorHelper2(n);e.prev=2;i.s();case 4:if((a=i.n()).done){e.next=11;break}o=a.value;if(!(o!=null&&(o=+o)>=o)){e.next=9;break}e.next=9;return o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13;e.t0=e["catch"](2);i.e(e.t0);case 16:e.prev=16;i.f();return e.finish(16);case 19:e.next=40;break;case 21:s=-1;u=_createForOfIteratorHelper2(n);e.prev=23;u.s();case 25:if((l=u.n()).done){e.next=32;break}c=l.value;if(!((c=r(c,++s,n))!=null&&(c=+c)>=c)){e.next=30;break}e.next=30;return c;case 30:e.next=25;break;case 32:e.next=37;break;case 34:e.prev=34;e.t1=e["catch"](23);u.e(e.t1);case 37:e.prev=37;u.f();return e.finish(37);case 40:case"end":return e.stop()}}},e,null,[[2,13,16,19],[23,34,37,40]])}var r=c(v);var a=r.right;c(d).center;var p=a;function y(t,e){var n;var r;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null){if(n===undefined){if(o>=o)n=r=o}else{if(n>o)n=o;if(r<o)r=o}}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null){if(n===undefined){if(c>=c)n=r=c}else{if(n>c)n=c;if(r<c)r=c}}}}catch(t){u.e(t)}finally{u.f()}}return[n,r]}var _=function(t){"use strict";_inherits2(l,t);var u=_createSuper2(l);function l(){var t;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:x;_classCallCheck2(this,l);t=u.call(this);Object.defineProperties(_assertThisInitialized2(t),{_intern:{value:new Map},_key:{value:n}});var r=_createForOfIteratorHelper2(e),i;try{for(r.s();!(i=r.n()).done;){var a=_slicedToArray2(i.value,2),o=a[0],s=a[1];t.set(o,s)}}catch(t){r.e(t)}finally{r.f()}return t}_createClass2(l,[{key:"get",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"get",this).call(this,m(this,e))}},{key:"has",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"has",this).call(this,m(this,e))}},{key:"set",value:function t(e,n){return _get2(_getPrototypeOf2(l.prototype),"set",this).call(this,b(this,e),n)}},{key:"delete",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"delete",this).call(this,w(this,e))}}]);return l}(_wrapNativeSuper(Map));function m(t,e){var n=t._intern,r=t._key;var i=r(e);return n.has(i)?n.get(i):e}function b(t,e){var n=t._intern,r=t._key;var i=r(e);if(n.has(i))return n.get(i);n.set(i,e);return e}function w(t,e){var n=t._intern,r=t._key;var i=r(e);if(n.has(i)){e=n.get(e);n["delete"](i)}return e}function x(t){return t!==null&&_typeof2(t)==="object"?t.valueOf():t}var k=Math.sqrt(50),S=Math.sqrt(10),C=Math.sqrt(2);function ft(t,e,n){var r,i=-1,a,o,s;e=+e,t=+t,n=+n;if(t===e&&n>0)return[t];if(r=e<t)a=t,t=e,e=a;if((s=E(t,e,n))===0||!isFinite(s))return[];if(s>0){var u=Math.round(t/s),l=Math.round(e/s);if(u*s<t)++u;if(l*s>e)--l;o=new Array(a=l-u+1);while(++i<a){o[i]=(u+i)*s}}else{s=-s;var c=Math.round(t*s),f=Math.round(e*s);if(c/s<t)++c;if(f/s>e)--f;o=new Array(a=f-c+1);while(++i<a){o[i]=(c+i)/s}}if(r)o.reverse();return o}function E(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=k?10:a>=S?5:a>=C?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=S?5:a>=C?2:1)}function A(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;if(a>=k)i*=10;else if(a>=S)i*=5;else if(a>=C)i*=2;return e<t?-i:i}function ht(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n<a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n<l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function dt(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n>a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n>l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function M(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:t.length-1;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:v;while(r>n){if(r-n>600){var a=r-n+1;var o=e-n+1;var s=Math.log(a);var u=.5*Math.exp(2*s/3);var l=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1);var c=Math.max(n,Math.floor(e-o*u/a+l));var f=Math.min(r,Math.floor(e+(a-o)*u/a+l));M(t,e,c,f,i)}var h=t[e];var d=n;var g=r;R(t,n,e);if(i(t[r],h)>0)R(t,n,r);while(d<g){R(t,d,g),++d,--g;while(i(t[d],h)<0){++d}while(i(t[g],h)>0){--g}}if(i(t[n],h)===0)R(t,n,g);else++g,R(t,g,r);if(g<=e)n=g+1;if(e<=g)r=g-1}return t}function R(t,e,n){var r=t[e];t[e]=t[n];t[n]=r}function T(t,e,n){t=Float64Array.from(g(t,n));if(!(r=t.length))return;if((e=+e)<=0||r<2)return dt(t);if(e>=1)return ht(t);var r,i=(r-1)*e,a=Math.floor(i),o=ht(M(t,a).subarray(0,a+1)),s=dt(t.subarray(a+1));return o+(s-o)*(i-a)}function O(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}function gt(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);while(++r<i){a[r]=t+r*n}return a}var P=new Date,B=new Date;function D(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return D(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){P.setTime(+t),B.setTime(+e);a(P),a(B);return Math.floor(n(P,B))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var N=D(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});N.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return N;return D(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var z=N;var F=1e3;var j=6e4;var I=36e5;var L=864e5;var H=6048e5;var U=D(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*F)},function(t,e){return(e-t)/F},function(t){return t.getUTCSeconds()});var G=U;var V=D(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*F)},function(t,e){t.setTime(+t+e*j)},function(t,e){return(e-t)/j},function(t){return t.getMinutes()});var W=V;var q=D(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*F-t.getMinutes()*j)},function(t,e){t.setTime(+t+e*I)},function(t,e){return(e-t)/I},function(t){return t.getHours()});var K=q;var Y=D(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*j)/L},function(t){return t.getDate()-1});var X=Y;function Z(e){return D(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*j)/H})}var J=Z(0);var Q=Z(1);Z(2);Z(3);var tt=Z(4);Z(5);Z(6);var et=D(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var nt=et;var rt=D(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});rt.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:D(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var it=rt;var at=D(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*j)},function(t,e){return(e-t)/j},function(t){return t.getUTCMinutes()});var ot=at;var st=D(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*I)},function(t,e){return(e-t)/I},function(t){return t.getUTCHours()});var ut=st;var lt=D(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/L},function(t){return t.getUTCDate()-1});var ct=lt;function vt(e){return D(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/H})}var pt=vt(0);var yt=vt(1);vt(2);vt(3);var mt=vt(4);vt(5);vt(6);var _t=D(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var bt=_t;var wt=D(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});wt.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:D(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var xt=wt;function kt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);e.setFullYear(t.y);return e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function St(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));e.setUTCFullYear(t.y);return e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function Ct(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Et(t){var r=t.dateTime,i=t.date,a=t.time,e=t.periods,n=t.days,o=t.shortDays,s=t.months,u=t.shortMonths;var l=Bt(e),c=Dt(e),f=Bt(n),h=Dt(n),d=Bt(o),g=Dt(o),v=Bt(s),p=Dt(s),y=Bt(u),m=Dt(u);var _={a:B,A:D,b:N,B:z,c:null,d:ee,e:ee,f:oe,g:ye,G:_e,H:ne,I:re,j:ie,L:ae,m:se,M:ue,p:F,q:j,Q:Ue,s:Ge,S:le,u:ce,U:fe,V:de,w:ge,W:ve,x:null,X:null,y:pe,Y:me,Z:be,"%":He};var b={a:I,A:L,b:H,B:U,c:null,d:we,e:we,f:Ee,g:Fe,G:Ie,H:xe,I:ke,j:Se,L:Ce,m:Ae,M:Me,p:G,q:V,Q:Ue,s:Ge,S:Re,u:Te,U:Oe,V:Be,w:De,W:Ne,x:null,X:null,y:ze,Y:je,Z:Le,"%":He};var w={a:E,A:A,b:M,B:R,c:T,d:Wt,e:Wt,f:$t,g:Ht,G:Lt,H:Kt,I:Kt,j:qt,L:Zt,m:Vt,M:Yt,p:C,q:Gt,Q:Qt,s:te,S:Xt,u:zt,U:Ft,V:jt,w:Nt,W:It,x:O,X:P,y:Ht,Y:Lt,Z:Ut,"%":Jt};_.x=x(i,_);_.X=x(a,_);_.c=x(r,_);b.x=x(i,b);b.X=x(a,b);b.c=x(r,b);function x(u,l){return function(t){var e=[],n=-1,r=0,i=u.length,a,o,s;if(!(t instanceof Date))t=new Date(+t);while(++n<i){if(u.charCodeAt(n)===37){e.push(u.slice(r,n));if((o=At[a=u.charAt(++n)])!=null)a=u.charAt(++n);else o=a==="e"?" ":"0";if(s=l[a])a=s(t,o);e.push(a);r=n+1}}e.push(u.slice(r,n));return e.join("")}}function k(a,o){return function(t){var e=Ct(1900,undefined,1),n=S(e,a,t+="",0),r,i;if(n!=t.length)return null;if("Q"in e)return new Date(e.Q);if("s"in e)return new Date(e.s*1e3+("L"in e?e.L:0));if(o&&!("Z"in e))e.Z=0;if("p"in e)e.H=e.H%12+e.p*12;if(e.m===undefined)e.m="q"in e?e.q:0;if("V"in e){if(e.V<1||e.V>53)return null;if(!("w"in e))e.w=1;if("Z"in e){r=St(Ct(e.y,0,1)),i=r.getUTCDay();r=i>4||i===0?yt.ceil(r):yt(r);r=ct.offset(r,(e.V-1)*7);e.y=r.getUTCFullYear();e.m=r.getUTCMonth();e.d=r.getUTCDate()+(e.w+6)%7}else{r=kt(Ct(e.y,0,1)),i=r.getDay();r=i>4||i===0?Q.ceil(r):Q(r);r=X.offset(r,(e.V-1)*7);e.y=r.getFullYear();e.m=r.getMonth();e.d=r.getDate()+(e.w+6)%7}}else if("W"in e||"U"in e){if(!("w"in e))e.w="u"in e?e.u%7:"W"in e?1:0;i="Z"in e?St(Ct(e.y,0,1)).getUTCDay():kt(Ct(e.y,0,1)).getDay();e.m=0;e.d="W"in e?(e.w+6)%7+e.W*7-(i+5)%7:e.w+e.U*7-(i+6)%7}if("Z"in e){e.H+=e.Z/100|0;e.M+=e.Z%100;return St(e)}return kt(e)}}function S(t,e,n,r){var i=0,a=e.length,o=n.length,s,u;while(i<a){if(r>=o)return-1;s=e.charCodeAt(i++);if(s===37){s=e.charAt(i++);u=w[s in At?e.charAt(i++):s];if(!u||(r=u(t,n,r))<0)return-1}else if(s!=n.charCodeAt(r++)){return-1}}return r}function C(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1}function E(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function M(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1}function R(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1}function T(t,e,n){return S(t,r,e,n)}function O(t,e,n){return S(t,i,e,n)}function P(t,e,n){return S(t,a,e,n)}function B(t){return o[t.getDay()]}function D(t){return n[t.getDay()]}function N(t){return u[t.getMonth()]}function z(t){return s[t.getMonth()]}function F(t){return e[+(t.getHours()>=12)]}function j(t){return 1+~~(t.getMonth()/3)}function I(t){return o[t.getUTCDay()]}function L(t){return n[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function U(t){return s[t.getUTCMonth()]}function G(t){return e[+(t.getUTCHours()>=12)]}function V(t){return 1+~~(t.getUTCMonth()/3)}return{format:function t(e){var n=x(e+="",_);n.toString=function(){return e};return n},parse:function t(e){var n=k(e+="",false);n.toString=function(){return e};return n},utcFormat:function t(e){var n=x(e+="",b);n.toString=function(){return e};return n},utcParse:function t(e){var n=k(e+="",true);n.toString=function(){return e};return n}}}var At={"-":"",_:" ",0:"0"},Mt=/^\s*\d+/,Rt=/^%/,Tt=/[\\^$*+?|[\]().{}]/g;function Ot(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Pt(t){return t.replace(Tt,"\\$&")}function Bt(t){return new RegExp("^(?:"+t.map(Pt).join("|")+")","i")}function Dt(t){return new Map(t.map(function(t,e){return[t.toLowerCase(),e]}))}function Nt(t,e,n){var r=Mt.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zt(t,e,n){var r=Mt.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ft(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function jt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function It(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Lt(t,e,n){var r=Mt.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ht(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ut(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Gt(t,e,n){var r=Mt.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qt(t,e,n){var r=Mt.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Kt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Yt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Xt(t,e,n){var r=Mt.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Zt(t,e,n){var r=Mt.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function $t(t,e,n){var r=Mt.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jt(t,e,n){var r=Rt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Qt(t,e,n){var r=Mt.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function te(t,e,n){var r=Mt.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ee(t,e){return Ot(t.getDate(),e,2)}function ne(t,e){return Ot(t.getHours(),e,2)}function re(t,e){return Ot(t.getHours()%12||12,e,2)}function ie(t,e){return Ot(1+X.count(it(t),t),e,3)}function ae(t,e){return Ot(t.getMilliseconds(),e,3)}function oe(t,e){return ae(t,e)+"000"}function se(t,e){return Ot(t.getMonth()+1,e,2)}function ue(t,e){return Ot(t.getMinutes(),e,2)}function le(t,e){return Ot(t.getSeconds(),e,2)}function ce(t){var e=t.getDay();return e===0?7:e}function fe(t,e){return Ot(J.count(it(t)-1,t),e,2)}function he(t){var e=t.getDay();return e>=4||e===0?tt(t):tt.ceil(t)}function de(t,e){t=he(t);return Ot(tt.count(it(t),t)+(it(t).getDay()===4),e,2)}function ge(t){return t.getDay()}function ve(t,e){return Ot(Q.count(it(t)-1,t),e,2)}function pe(t,e){return Ot(t.getFullYear()%100,e,2)}function ye(t,e){t=he(t);return Ot(t.getFullYear()%100,e,2)}function me(t,e){return Ot(t.getFullYear()%1e4,e,4)}function _e(t,e){var n=t.getDay();t=n>=4||n===0?tt(t):tt.ceil(t);return Ot(t.getFullYear()%1e4,e,4)}function be(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Ot(e/60|0,"0",2)+Ot(e%60,"0",2)}function we(t,e){return Ot(t.getUTCDate(),e,2)}function xe(t,e){return Ot(t.getUTCHours(),e,2)}function ke(t,e){return Ot(t.getUTCHours()%12||12,e,2)}function Se(t,e){return Ot(1+ct.count(xt(t),t),e,3)}function Ce(t,e){return Ot(t.getUTCMilliseconds(),e,3)}function Ee(t,e){return Ce(t,e)+"000"}function Ae(t,e){return Ot(t.getUTCMonth()+1,e,2)}function Me(t,e){return Ot(t.getUTCMinutes(),e,2)}function Re(t,e){return Ot(t.getUTCSeconds(),e,2)}function Te(t){var e=t.getUTCDay();return e===0?7:e}function Oe(t,e){return Ot(pt.count(xt(t)-1,t),e,2)}function Pe(t){var e=t.getUTCDay();return e>=4||e===0?mt(t):mt.ceil(t)}function Be(t,e){t=Pe(t);return Ot(mt.count(xt(t),t)+(xt(t).getUTCDay()===4),e,2)}function De(t){return t.getUTCDay()}function Ne(t,e){return Ot(yt.count(xt(t)-1,t),e,2)}function ze(t,e){return Ot(t.getUTCFullYear()%100,e,2)}function Fe(t,e){t=Pe(t);return Ot(t.getUTCFullYear()%100,e,2)}function je(t,e){return Ot(t.getUTCFullYear()%1e4,e,4)}function Ie(t,e){var n=t.getUTCDay();t=n>=4||n===0?mt(t):mt.ceil(t);return Ot(t.getUTCFullYear()%1e4,e,4)}function Le(){return"+0000"}function He(){return"%"}function Ue(t){return+t}function Ge(t){return Math.floor(+t/1e3)}var Ve;var We;var qe;Ke({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 Ke(t){Ve=Et(t);We=Ve.format;qe=Ve.utcFormat;return Ve}function Ye(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Xe(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var Ze=Symbol("implicit");function $e(){var a=new Map,o=[],r=[],i=Ze;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==Ze)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return $e(o,r).unknown(i)};Ye.apply(s,arguments);return s}function Je(){var t=$e().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=gt(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return Je(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return Ye.apply(r(),arguments)}function Qe(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return Qe(e())};return t}function tn(){return Qe(Je.apply(null,arguments).paddingInner(1))}function en(t,e,n){t.prototype=e.prototype=n;n.constructor=t}function nn(t,e){var n=Object.create(t.prototype);for(var r in e){n[r]=e[r]}return n}function rn(){}var an=.7;var on=1/an;var sn="\\s*([+-]?\\d+)\\s*",un="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",ln="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cn=/^#([0-9a-f]{3,8})$/,fn=new RegExp("^rgb\\("+[sn,sn,sn]+"\\)$"),hn=new RegExp("^rgb\\("+[ln,ln,ln]+"\\)$"),dn=new RegExp("^rgba\\("+[sn,sn,sn,un]+"\\)$"),gn=new RegExp("^rgba\\("+[ln,ln,ln,un]+"\\)$"),vn=new RegExp("^hsl\\("+[un,ln,ln]+"\\)$"),pn=new RegExp("^hsla\\("+[un,ln,ln,un]+"\\)$");var yn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};en(rn,wn,{copy:function t(e){return Object.assign(new this.constructor,this,e)},displayable:function t(){return this.rgb().displayable()},hex:mn,formatHex:mn,formatHsl:_n,formatRgb:bn,toString:bn});function mn(){return this.rgb().formatHex()}function _n(){return On(this).formatHsl()}function bn(){return this.rgb().formatRgb()}function wn(t){var e,n;t=(t+"").trim().toLowerCase();return(e=cn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?xn(e):n===3?new En(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?kn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?kn(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=fn.exec(t))?new En(e[1],e[2],e[3],1):(e=hn.exec(t))?new En(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=dn.exec(t))?kn(e[1],e[2],e[3],e[4]):(e=gn.exec(t))?kn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=vn.exec(t))?Tn(e[1],e[2]/100,e[3]/100,1):(e=pn.exec(t))?Tn(e[1],e[2]/100,e[3]/100,e[4]):yn.hasOwnProperty(t)?xn(yn[t]):t==="transparent"?new En(NaN,NaN,NaN,0):null}function xn(t){return new En(t>>16&255,t>>8&255,t&255,1)}function kn(t,e,n,r){if(r<=0)t=e=n=NaN;return new En(t,e,n,r)}function Sn(t){if(!(t instanceof rn))t=wn(t);if(!t)return new En;t=t.rgb();return new En(t.r,t.g,t.b,t.opacity)}function Cn(t,e,n,r){return arguments.length===1?Sn(t):new En(t,e,n,r==null?1:r)}function En(t,e,n,r){this.r=+t;this.g=+e;this.b=+n;this.opacity=+r}en(En,Cn,nn(rn,{brighter:function t(e){e=e==null?on:Math.pow(on,e);return new En(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function t(e){e=e==null?an:Math.pow(an,e);return new En(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function t(){return this},displayable:function t(){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:An,formatHex:An,formatRgb:Mn,toString:Mn}));function An(){return"#"+Rn(this.r)+Rn(this.g)+Rn(this.b)}function Mn(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"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))+(t===1?")":", "+t+")")}function Rn(t){t=Math.max(0,Math.min(255,Math.round(t)||0));return(t<16?"0":"")+t.toString(16)}function Tn(t,e,n,r){if(r<=0)t=e=n=NaN;else if(n<=0||n>=1)t=e=NaN;else if(e<=0)t=NaN;return new Bn(t,e,n,r)}function On(t){if(t instanceof Bn)return new Bn(t.h,t.s,t.l,t.opacity);if(!(t instanceof rn))t=wn(t);if(!t)return new Bn;if(t instanceof Bn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;if(s){if(e===a)o=(n-r)/s+(n<r)*6;else if(n===a)o=(r-e)/s+2;else o=(e-n)/s+4;s/=u<.5?a+i:2-a-i;o*=60}else{s=u>0&&u<1?0:o}return new Bn(o,s,u,t.opacity)}function Pn(t,e,n,r){return arguments.length===1?On(t):new Bn(t,e,n,r==null?1:r)}function Bn(t,e,n,r){this.h=+t;this.s=+e;this.l=+n;this.opacity=+r}en(Bn,Pn,nn(rn,{brighter:function t(e){e=e==null?on:Math.pow(on,e);return new Bn(this.h,this.s,this.l*e,this.opacity)},darker:function t(e){e=e==null?an:Math.pow(an,e);return new Bn(this.h,this.s,this.l*e,this.opacity)},rgb:function t(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,a=2*r-i;return new En(Dn(e>=240?e-240:e+120,a,i),Dn(e,a,i),Dn(e<120?e+240:e-120,a,i),this.opacity)},displayable:function t(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function t(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Dn(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var Nn=function t(e){return function(){return e}};function zn(e,n){return function(t){return e+t*n}}function Fn(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(t){return Math.pow(e+t*n,r)}}function jn(n){return(n=+n)===1?In:function(t,e){return e-t?Fn(t,e,n):Nn(isNaN(t)?e:t)}}function In(t,e){var n=e-t;return n?zn(t,n):Nn(isNaN(t)?e:t)}var Ln=function t(e){var o=jn(e);function n(e,t){var n=o((e=Cn(e)).r,(t=Cn(t)).r),r=o(e.g,t.g),i=o(e.b,t.b),a=In(e.opacity,t.opacity);return function(t){e.r=n(t);e.g=r(t);e.b=i(t);e.opacity=a(t);return e+""}}n.gamma=t;return n}(1);function Hn(e,n){if(!n)n=[];var r=e?Math.min(n.length,e.length):0,i=n.slice(),a;return function(t){for(a=0;a<r;++a){i[a]=e[a]*(1-t)+n[a]*t}return i}}function Un(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Gn(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o){i[o]=Jn(t[o],e[o])}for(;o<n;++o){a[o]=e[o]}return function(t){for(o=0;o<r;++o){a[o]=i[o](t)}return a}}function Vn(e,n){var r=new Date;return e=+e,n=+n,function(t){return r.setTime(e*(1-t)+n*t),r}}function Wn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function qn(t,e){var n={},r={},i;if(t===null||_typeof2(t)!=="object")t={};if(e===null||_typeof2(e)!=="object")e={};for(i in e){if(i in t){n[i]=Jn(t[i],e[i])}else{r[i]=e[i]}}return function(t){for(i in n){r[i]=n[i](t)}return r}}var Kn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yn=new RegExp(Kn.source,"g");function Xn(t){return function(){return t}}function Zn(e){return function(t){return e(t)+""}}function $n(t,r){var e=Kn.lastIndex=Yn.lastIndex=0,n,i,a,o=-1,s=[],u=[];t=t+"",r=r+"";while((n=Kn.exec(t))&&(i=Yn.exec(r))){if((a=i.index)>e){a=r.slice(e,a);if(s[o])s[o]+=a;else s[++o]=a}if((n=n[0])===(i=i[0])){if(s[o])s[o]+=i;else s[++o]=i}else{s[++o]=null;u.push({i:o,x:Wn(n,i)})}e=Yn.lastIndex}if(e<r.length){a=r.slice(e);if(s[o])s[o]+=a;else s[++o]=a}return s.length<2?u[0]?Zn(u[0].x):Xn(r):(r=u.length,function(t){for(var e=0,n;e<r;++e){s[(n=u[e]).i]=n.x(t)}return s.join("")})}function Jn(t,e){var n=_typeof2(e),r;return e==null||n==="boolean"?Nn(e):(n==="number"?Wn:n==="string"?(r=wn(e))?(e=r,Ln):$n:e instanceof wn?Ln:e instanceof Date?Vn:Un(e)?Hn:Array.isArray(e)?Gn:typeof e.valueOf!=="function"&&typeof e.toString!=="function"||isNaN(e)?qn:Wn)(t,e)}function Qn(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}var tr=180/Math.PI;var er={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function nr(t,e,n,r,i,a){var o,s,u;if(o=Math.sqrt(t*t+e*e))t/=o,e/=o;if(u=t*n+e*r)n-=t*u,r-=e*u;if(s=Math.sqrt(n*n+r*r))n/=s,r/=s,u/=s;if(t*r<e*n)t=-t,e=-e,u=-u,o=-o;return{translateX:i,translateY:a,rotate:Math.atan2(e,t)*tr,skewX:Math.atan(u)*tr,scaleX:o,scaleY:s}}var rr;function ir(t){var e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?er:nr(e.a,e.b,e.c,e.d,e.e,e.f)}function ar(t){if(t==null)return er;if(!rr)rr=document.createElementNS("http://www.w3.org/2000/svg","g");rr.setAttribute("transform",t);if(!(t=rr.transform.baseVal.consolidate()))return er;t=t.matrix;return nr(t.a,t.b,t.c,t.d,t.e,t.f)}function or(n,s,u,i){function l(t){return t.length?t.pop()+" ":""}function r(t,e,n,r,i,a){if(t!==n||e!==r){var o=i.push("translate(",null,s,null,u);a.push({i:o-4,x:Wn(t,n)},{i:o-2,x:Wn(e,r)})}else if(n||r){i.push("translate("+n+s+r+u)}}function o(t,e,n,r){if(t!==e){if(t-e>180)e+=360;else if(e-t>180)t+=360;r.push({i:n.push(l(n)+"rotate(",null,i)-2,x:Wn(t,e)})}else if(e){n.push(l(n)+"rotate("+e+i)}}function c(t,e,n,r){if(t!==e){r.push({i:n.push(l(n)+"skewX(",null,i)-2,x:Wn(t,e)})}else if(e){n.push(l(n)+"skewX("+e+i)}}function f(t,e,n,r,i,a){if(t!==n||e!==r){var o=i.push(l(i)+"scale(",null,",",null,")");a.push({i:o-4,x:Wn(t,n)},{i:o-2,x:Wn(e,r)})}else if(n!==1||r!==1){i.push(l(i)+"scale("+n+","+r+")")}}return function(t,e){var i=[],a=[];t=n(t),e=n(e);r(t.translateX,t.translateY,e.translateX,e.translateY,i,a);o(t.rotate,e.rotate,i,a);c(t.skewX,e.skewX,i,a);f(t.scaleX,t.scaleY,e.scaleX,e.scaleY,i,a);t=e=null;return function(t){var e=-1,n=a.length,r;while(++e<n){i[(r=a[e]).i]=r.x(t)}return i.join("")}}}var sr=or(ir,"px, ","px)","deg)");var ur=or(ar,", ",")",")");var lr=1e-12;function cr(t){return((t=Math.exp(t))+1/t)/2}function fr(t){return((t=Math.exp(t))-1/t)/2}function hr(t){return((t=Math.exp(2*t))-1)/(t+1)}var dr=function i(m,_,b){function t(t,e){var a=t[0],o=t[1],s=t[2],n=e[0],r=e[1],i=e[2],u=n-a,l=r-o,c=u*u+l*l,f,h;if(c<lr){h=Math.log(i/s)/m;f=function t(e){return[a+e*u,o+e*l,s*Math.exp(m*e*h)]}}else{var d=Math.sqrt(c),g=(i*i-s*s+b*c)/(2*s*_*d),v=(i*i-s*s-b*c)/(2*i*_*d),p=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);h=(y-p)/m;f=function t(e){var n=e*h,r=cr(p),i=s/(_*d)*(r*hr(m*n+p)-fr(p));return[a+i*u,o+i*l,s*r/cr(m*n+p)]}}f.duration=h*1e3*m/Math.SQRT2;return f}t.rho=function(t){var e=Math.max(.001,+t),n=e*e,r=n*n;return i(e,n,r)};return t}(Math.SQRT2,2,4);function gr(t,e){if(e===undefined)e=t,t=Jn;var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);while(n<r){a[n]=t(i,i=e[++n])}return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}function vr(t){return function(){return t}}function pr(t){return+t}var yr=[0,1];function mr(t){return t}function _r(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:vr(isNaN(n)?NaN:.5)}function br(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function wr(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=_r(i,r),a=n(o,a);else r=_r(r,i),a=n(a,o);return function(t){return a(r(t))}}function xr(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=_r(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=p(n,t,1,r)-1;return a[e](i[e](t))}}function kr(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Sr(){var e=yr,n=yr,r=Jn,i,a,o,s=mr,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==mr)s=br(e[0],e[t-1]);u=t>2?xr:wr;l=c=null;return h}function h(t){return t==null||isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Wn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,pr),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=Qn,f()};h.clamp=function(t){return arguments.length?(s=t?true:mr,f()):s!==mr};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function Cr(){return Sr()(mr,mr)}function Er(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Ar(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function Mr(t){return t=Ar(Math.abs(t)),t?t[1]:NaN}function Rr(s,u){return function(t,e){var n=t.length,r=[],i=0,a=s[0],o=0;while(n>0&&a>0){if(o+a+1>e)a=Math.max(1,e-o);r.push(t.substring(n-=a,n+a));if((o+=a+1)>e)break;a=s[i=(i+1)%s.length]}return r.reverse().join(u)}}function Tr(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Or=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Pr(t){if(!(e=Or.exec(t)))throw new Error("invalid format: "+t);var e;return new Br({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Pr.prototype=Br.prototype;function Br(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}Br.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Dr(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n){switch(t[n]){case".":r=i=n;break;case"0":if(r===0)r=n;i=n;break;default:if(!+t[n])break t;if(r>0)r=0;break}}return r>0?t.slice(0,r)+t.slice(i+1):t}var Nr;function zr(t,e){var n=Ar(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Nr=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ar(t,Math.max(0,e+a-1))[0]}function Fr(t,e){var n=Ar(t,e);if(!n)return t+"";var r=n[0],i=n[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")}var jr={"%":function t(e,n){return(e*100).toFixed(n)},b:function t(e){return Math.round(e).toString(2)},c:function t(e){return e+""},d:Er,e:function t(e,n){return e.toExponential(n)},f:function t(e,n){return e.toFixed(n)},g:function t(e,n){return e.toPrecision(n)},o:function t(e){return Math.round(e).toString(8)},p:function t(e,n){return Fr(e*100,n)},r:Fr,s:zr,X:function t(e){return Math.round(e).toString(16).toUpperCase()},x:function t(e){return Math.round(e).toString(16)}};function Ir(t){return t}var Lr=Array.prototype.map,Hr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ur(t){var x=t.grouping===undefined||t.thousands===undefined?Ir:Rr(Lr.call(t.grouping,Number),t.thousands+""),r=t.currency===undefined?"":t.currency[0]+"",i=t.currency===undefined?"":t.currency[1]+"",k=t.decimal===undefined?".":t.decimal+"",S=t.numerals===undefined?Ir:Tr(Lr.call(t.numerals,String)),a=t.percent===undefined?"%":t.percent+"",C=t.minus===undefined?"−":t.minus+"",E=t.nan===undefined?"NaN":t.nan+"";function o(t){t=Pr(t);var l=t.fill,c=t.align,f=t.sign,e=t.symbol,h=t.zero,d=t.width,g=t.comma,v=t.precision,p=t.trim,y=t.type;if(y==="n")g=true,y="g";else if(!jr[y])v===undefined&&(v=12),p=true,y="g";if(h||l==="0"&&c==="=")h=true,l="0",c="=";var m=e==="$"?r:e==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_=e==="$"?i:/[%p]/.test(y)?a:"";var b=jr[y],w=/[defgprs%]/.test(y);v=v===undefined?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function n(t){var e=m,n=_,r,i,a;if(y==="c"){n=b(t)+n;t=""}else{t=+t;var o=t<0||1/t<0;t=isNaN(t)?E:b(Math.abs(t),v);if(p)t=Dr(t);if(o&&+t===0&&f!=="+")o=false;e=(o?f==="("?f:C:f==="-"||f==="("?"":f)+e;n=(y==="s"?Hr[8+Nr/3]:"")+n+(o&&f==="("?")":"");if(w){r=-1,i=t.length;while(++r<i){if(a=t.charCodeAt(r),48>a||a>57){n=(a===46?k+t.slice(r+1):t.slice(r))+n;t=t.slice(0,r);break}}}}if(g&&!h)t=x(t,Infinity);var s=e.length+t.length+n.length,u=s<d?new Array(d-s+1).join(l):"";if(g&&h)t=x(u+t,u.length?d-n.length:Infinity),u="";switch(c){case"<":t=e+t+n+u;break;case"=":t=e+u+t+n;break;case"^":t=u.slice(0,s=u.length>>1)+e+t+n+u.slice(s);break;default:t=u+e+t+n;break}return S(t)}n.toString=function(){return t+""};return n}function e(t,e){var n=o((t=Pr(t),t.type="f",t)),r=Math.max(-8,Math.min(8,Math.floor(Mr(e)/3)))*3,i=Math.pow(10,-r),a=Hr[8+r/3];return function(t){return n(i*t)+a}}return{format:o,formatPrefix:e}}var Gr;var Vr;var Wr;qr({thousands:",",grouping:[3],currency:["$",""]});function qr(t){Gr=Ur(t);Vr=Gr.format;Wr=Gr.formatPrefix;return Gr}function Kr(t){return Math.max(0,-Mr(Math.abs(t)))}function Yr(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mr(e)/3)))*3-Mr(Math.abs(t)))}function Xr(t,e){t=Math.abs(t),e=Math.abs(e)-t;return Math.max(0,Mr(e)-Mr(t))+1}function Zr(t,e,n,r){var i=A(t,e,n),a;r=Pr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=Yr(i,o)))r.precision=a;return Wr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=Xr(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=Kr(i)))r.precision=a-(r.type==="%")*2;break}}return Vr(r)}function $r(l){var c=l.domain;l.ticks=function(t){var e=c();return ft(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return Zr(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=E(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function Jr(){var t=Cr();t.copy=function(){return kr(t,Jr())};Ye.apply(t,arguments);return $r(t)}function Qr(e){var n;function r(t){return t==null||isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,pr),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Qr(e).unknown(n)};e=arguments.length?Array.from(e,pr):[0,1];return $r(r)}function ti(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function ei(t){return Math.log(t)}function ni(t){return Math.exp(t)}function ri(t){return-Math.log(-t)}function ii(t){return-Math.exp(-t)}function ai(t){return isFinite(t)?+("1e"+t):t<0?0:t}function oi(e){return e===10?ai:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function si(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function ui(e){return function(t){return-e(-t)}}function li(t){var e=t(ei,ni),h=e.domain,d=10,g,v;function n(){g=si(d),v=oi(d);if(h()[0]<0){g=ui(g),v=ui(v);t(ri,ii)}else{t(ei,ni)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=ft(n,r,c)}else{f=ft(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Vr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h(ti(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function ci(){var t=li(Sr()).domain([1,10]);t.copy=function(){return kr(t,ci()).base(t.base())};Ye.apply(t,arguments);return t}function fi(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hi(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function di(e){var n=1,t=e(fi(n),hi(n));t.constant=function(t){return arguments.length?e(fi(n=+t),hi(n)):n};return $r(t)}function gi(){var t=di(Sr());t.copy=function(){return kr(t,gi()).constant(t.constant())};return Ye.apply(t,arguments)}function vi(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function pi(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function yi(t){return t<0?-t*t:t*t}function mi(t){var e=t(mr,mr),n=1;function r(){return n===1?t(mr,mr):n===.5?t(pi,yi):t(vi(n),vi(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return $r(e)}function _i(){var t=mi(Sr());t.copy=function(){return kr(t,_i()).exponent(t.exponent())};Ye.apply(t,arguments);return t}function bi(){return _i.apply(null,arguments).exponent(.5)}function wi(t){return Math.sign(t)*t*t}function xi(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function ki(){var n=Cr(),e=[0,1],r=false,i;function a(t){var e=xi(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(wi(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,pr)).map(wi)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return ki(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};Ye.apply(a,arguments);return $r(a)}function Si(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=O(i,t/e)}return o}function o(t){return t==null||isNaN(t=+t)?e:n[p(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return Si().domain(i).range(n).unknown(e)};return Ye.apply(o,arguments)}function Ci(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t!=null&&t<=t?o[p(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return Ci().domain([r,i]).range(o).unknown(e)};return Ye.apply($r(s),arguments)}function Ei(){var n=[.5],r=[0,1],e,i=1;function a(t){return t!=null&&t<=t?r[p(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return Ei().domain(n).range(r).unknown(e)};return Ye.apply(a,arguments)}var Ai=new Date,Mi=new Date;function Ri(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return Ri(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){Ai.setTime(+t),Mi.setTime(+e);a(Ai),a(Mi);return Math.floor(n(Ai,Mi))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var Ti=Ri(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});Ti.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return Ti;return Ri(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var Oi=Ti;var Pi=1e3;var Bi=Pi*60;var Di=Bi*60;var Ni=Di*24;var zi=Ni*7;var Fi=Ni*30;var ji=Ni*365;var Ii=Ri(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Pi)},function(t,e){return(e-t)/Pi},function(t){return t.getUTCSeconds()});var Li=Ii;var Hi=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pi)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getMinutes()});var Ui=Hi;var Gi=Ri(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Pi-t.getMinutes()*Bi)},function(t,e){t.setTime(+t+e*Di)},function(t,e){return(e-t)/Di},function(t){return t.getHours()});var Vi=Gi;var Wi=Ri(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Bi)/Ni},function(t){return t.getDate()-1});var qi=Wi;function Ki(e){return Ri(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Bi)/zi})}var Yi=Ki(0);Ki(1);Ki(2);Ki(3);Ki(4);Ki(5);Ki(6);var Xi=Ri(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var Zi=Xi;var $i=Ri(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});$i.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:Ri(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var Ji=$i;var Qi=Ri(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Bi)},function(t,e){return(e-t)/Bi},function(t){return t.getUTCMinutes()});var ta=Qi;var ea=Ri(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Di)},function(t,e){return(e-t)/Di},function(t){return t.getUTCHours()});var na=ea;var ra=Ri(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Ni},function(t){return t.getUTCDate()-1});var ia=ra;function aa(e){return Ri(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/zi})}var oa=aa(0);aa(1);aa(2);aa(3);aa(4);aa(5);aa(6);var sa=Ri(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var ua=sa;var la=Ri(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});la.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:Ri(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var ca=la;function fa(u,t,e,n,r,i){var l=[[Li,1,Pi],[Li,5,5*Pi],[Li,15,15*Pi],[Li,30,30*Pi],[i,1,Bi],[i,5,5*Bi],[i,15,15*Bi],[i,30,30*Bi],[r,1,Di],[r,3,3*Di],[r,6,6*Di],[r,12,12*Di],[n,1,Ni],[n,2,2*Ni],[e,1,zi],[t,1,Fi],[t,3,3*Fi],[u,1,ji]];function a(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0];e=i[1]}var a=n&&typeof n.range==="function"?n:s(t,e,n);var o=a?a.range(t,+e+1):[];return r?o.reverse():o}function s(t,e,n){var r=Math.abs(e-t)/n;var i=c(function(t){var e=_slicedToArray2(t,3),n=e[2];return n}).right(l,r);if(i===l.length)return u.every(A(t/ji,e/ji,n));if(i===0)return Oi.every(Math.max(A(t,e,n),1));var a=_slicedToArray2(l[r/l[i-1][2]<l[i][2]/r?i-1:i],2),o=a[0],s=a[1];return o.every(s)}return[a,s]}var ha=fa(ca,ua,oa,ia,na,ta),da=_slicedToArray2(ha,2),ga=da[0],va=da[1];var pa=fa(Ji,Zi,Yi,qi,Vi,Ui),ya=_slicedToArray2(pa,2),ma=ya[0],_a=ya[1];function ba(t){return new Date(t)}function wa(t){return t instanceof Date?+t:+new Date(+t)}function xa(n,r,e,i,a,o,s,u,l,c){var f=Cr(),h=f.invert,d=f.domain;var g=c(".%L"),v=c(":%S"),p=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),_=c("%b %d"),b=c("%B"),w=c("%Y");function x(t){return(l(t)<t?g:u(t)<t?v:s(t)<t?p:o(t)<t?y:i(t)<t?a(t)<t?m:_:e(t)<t?b:w)(t)}f.invert=function(t){return new Date(h(t))};f.domain=function(t){return arguments.length?d(Array.from(t,wa)):d().map(ba)};f.ticks=function(t){var e=d();return n(e[0],e[e.length-1],t==null?10:t)};f.tickFormat=function(t,e){return e==null?x:c(e)};f.nice=function(t){var e=d();if(!t||typeof t.range!=="function")t=r(e[0],e[e.length-1],t==null?10:t);return t?d(ti(e,t)):f};f.copy=function(){return kr(f,xa(n,r,e,i,a,o,s,u,l,c))};return f}function ka(){return Ye.apply(xa(ma,_a,Ji,Zi,Yi,qi,Vi,Ui,Li,We).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Sa(){return Ye.apply(xa(ga,va,ca,ua,oa,ia,na,ta,Li,qe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ca(){var r=0,i=1,a,o,s,u,l=mr,e=false,n;function c(t){return t==null||isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(Jn);c.rangeRound=t(Qn);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function Ea(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Aa(){var t=$r(Ca()(mr));t.copy=function(){return Ea(t,Aa())};return Xe.apply(t,arguments)}function Ma(){var t=li(Ca()).domain([1,10]);t.copy=function(){return Ea(t,Ma()).base(t.base())};return Xe.apply(t,arguments)}function Ra(){var t=di(Ca());t.copy=function(){return Ea(t,Ra()).constant(t.constant())};return Xe.apply(t,arguments)}function Ta(){var t=mi(Ca());t.copy=function(){return Ea(t,Ta()).exponent(t.exponent())};return Xe.apply(t,arguments)}function Oa(){return Ta.apply(null,arguments).exponent(.5)}function Pa(){var i=[],n=mr;function a(t){if(t!=null&&!isNaN(t=+t))return n((p(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return T(i,e/n)})};a.copy=function(){return Pa(n).domain(i)};return Xe.apply(a,arguments)}function Ba(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=mr,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=gr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(Jn);g.rangeRound=t(Qn);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function Da(){var t=$r(Ba()(mr));t.copy=function(){return Ea(t,Da())};return Xe.apply(t,arguments)}function Na(){var t=li(Ba()).domain([.1,1,10]);t.copy=function(){return Ea(t,Na()).base(t.base())};return Xe.apply(t,arguments)}function za(){var t=di(Ba());t.copy=function(){return Ea(t,za()).constant(t.constant())};return Xe.apply(t,arguments)}function Fa(){var t=mi(Ba());t.copy=function(){return Ea(t,Fa()).exponent(t.exponent())};return Xe.apply(t,arguments)}function ja(){return Fa.apply(null,arguments).exponent(.5)}var Ia=Object.freeze({__proto__:null,scaleBand:Je,scalePoint:tn,scaleIdentity:Qr,scaleLinear:Jr,scaleLog:ci,scaleSymlog:gi,scaleOrdinal:$e,scaleImplicit:Ze,scalePow:_i,scaleSqrt:bi,scaleRadial:ki,scaleQuantile:Si,scaleQuantize:Ci,scaleThreshold:Ei,scaleTime:ka,scaleUtc:Sa,scaleSequential:Aa,scaleSequentialLog:Ma,scaleSequentialPow:Ta,scaleSequentialSqrt:Oa,scaleSequentialSymlog:Ra,scaleSequentialQuantile:Pa,scaleDiverging:Da,scaleDivergingLog:Na,scaleDivergingPow:Fa,scaleDivergingSqrt:ja,scaleDivergingSymlog:za,tickFormat:Zr});var La="http://www.w3.org/1999/xhtml";var Ha={svg:"http://www.w3.org/2000/svg",xhtml:La,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ua(t){var e=t+="",n=e.indexOf(":");if(n>=0&&(e=t.slice(0,n))!=="xmlns")t=t.slice(n+1);return Ha.hasOwnProperty(e)?{space:Ha[e],local:t}:t}function Ga(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===La&&t.documentElement.namespaceURI===La?t.createElement(n):t.createElementNS(e,n)}}function Va(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Wa(t){var e=Ua(t);return(e.local?Va:Ga)(e)}function qa(){}function Ka(t){return t==null?qa:function(){return this.querySelector(t)}}function Ya(t){if(typeof t!=="function")t=Ka(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=new Array(o),u,l,c=0;c<o;++c){if((u=a[c])&&(l=t.call(u,u.__data__,c,a))){if("__data__"in u)l.__data__=u.__data__;s[c]=l}}}return new zs(r,this._parents)}function Xa(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function Za(){return[]}function $a(t){return t==null?Za:function(){return this.querySelectorAll(t)}}function Ja(e){return function(){var t=e.apply(this,arguments);return t==null?[]:Xa(t)}}function Qa(t){if(typeof t==="function")t=Ja(t);else t=$a(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a){for(var o=e[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){r.push(t.call(u,u.__data__,l,o));i.push(u)}}}return new zs(r,i)}function to(t){return function(){return this.matches(t)}}function eo(e){return function(t){return t.matches(e)}}var no=Array.prototype.find;function ro(t){return function(){return no.call(this.children,t)}}function io(){return this.firstElementChild}function ao(t){return this.select(t==null?io:ro(typeof t==="function"?t:eo(t)))}var oo=Array.prototype.filter;function so(){return this.children}function uo(t){return function(){return oo.call(this.children,t)}}function lo(t){return this.selectAll(t==null?so:uo(typeof t==="function"?t:eo(t)))}function co(t){if(typeof t!=="function")t=to(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new zs(r,this._parents)}function fo(t){return new Array(t.length)}function ho(){return new zs(this._enter||this._groups.map(fo),this._parents)}function go(t,e){this.ownerDocument=t.ownerDocument;this.namespaceURI=t.namespaceURI;this._next=null;this._parent=t;this.__data__=e}go.prototype={constructor:go,appendChild:function t(e){return this._parent.insertBefore(e,this._next)},insertBefore:function t(e,n){return this._parent.insertBefore(e,n)},querySelector:function t(e){return this._parent.querySelector(e)},querySelectorAll:function t(e){return this._parent.querySelectorAll(e)}};function vo(t){return function(){return t}}function po(t,e,n,r,i,a){var o=0,s,u=e.length,l=a.length;for(;o<l;++o){if(s=e[o]){s.__data__=a[o];r[o]=s}else{n[o]=new go(t,a[o])}}for(;o<u;++o){if(s=e[o]){i[o]=s}}}function yo(t,e,n,r,i,a,o){var s,u,l=new Map,c=e.length,f=a.length,h=new Array(c),d;for(s=0;s<c;++s){if(u=e[s]){h[s]=d=o.call(u,u.__data__,s,e)+"";if(l.has(d)){i[s]=u}else{l.set(d,u)}}}for(s=0;s<f;++s){d=o.call(t,a[s],s,a)+"";if(u=l.get(d)){r[s]=u;u.__data__=a[s];l["delete"](d)}else{n[s]=new go(t,a[s])}}for(s=0;s<c;++s){if((u=e[s])&&l.get(h[s])===u){i[s]=u}}}function mo(t){return t.__data__}function _o(t,e){if(!arguments.length)return Array.from(this,mo);var n=e?yo:po,r=this._parents,i=this._groups;if(typeof t!=="function")t=vo(t);for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=r[l],f=i[l],h=f.length,d=Xa(t.call(c,c&&c.__data__,l,r)),g=d.length,v=s[l]=new Array(g),p=o[l]=new Array(g),y=u[l]=new Array(h);n(c,f,v,p,y,d,e);for(var m=0,_=0,b,w;m<g;++m){if(b=v[m]){if(m>=_)_=m+1;while(!(w=p[_])&&++_<g){}b._next=w||null}}}o=new zs(o,r);o._enter=s;o._exit=u;return o}function bo(){return new zs(this._exit||this._groups.map(fo),this._parents)}function wo(t,e,n){var r=this.enter(),i=this,a=this.exit();r=typeof t==="function"?t(r):r.append(t+"");if(e!=null)i=e(i);if(n==null)a.remove();else n(a);return r&&i?r.merge(i).order():i}function xo(t){if(!(t instanceof zs))throw new Error("invalid merge");for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<r;++s){o[s]=e[s]}return new zs(o,this._parents)}function ko(){for(var t=this._groups,e=-1,n=t.length;++e<n;){for(var r=t[e],i=r.length-1,a=r[i],o;--i>=0;){if(o=r[i]){if(a&&o.compareDocumentPosition(a)^4)a.parentNode.insertBefore(o,a);a=o}}}return this}function So(n){if(!n)n=Co;function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}for(var e=this._groups,r=e.length,i=new Array(r),a=0;a<r;++a){for(var o=e[a],s=o.length,u=i[a]=new Array(s),l,c=0;c<s;++c){if(l=o[c]){u[c]=l}}u.sort(t)}return new zs(i,this._parents).order()}function Co(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Eo(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function Ao(){return Array.from(this)}function Mo(){for(var t=this._groups,e=0,n=t.length;e<n;++e){for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}}return null}function Ro(){var t=0;var e=_createForOfIteratorHelper2(this),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;++t}}catch(t){e.e(t)}finally{e.f()}return t}function To(){return!this.node()}function Oo(t){for(var e=this._groups,n=0,r=e.length;n<r;++n){for(var i=e[n],a=0,o=i.length,s;a<o;++a){if(s=i[a])t.call(s,s.__data__,a,i)}}return this}function Po(t){return function(){this.removeAttribute(t)}}function Bo(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Do(t,e){return function(){this.setAttribute(t,e)}}function No(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function zo(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttribute(e);else this.setAttribute(e,t)}}function Fo(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttributeNS(e.space,e.local);else this.setAttributeNS(e.space,e.local,t)}}function jo(t,e){var n=Ua(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Bo:Po:typeof e==="function"?n.local?Fo:zo:n.local?No:Do)(n,e))}function Io(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Lo(t){return function(){this.style.removeProperty(t)}}function Ho(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Uo(e,n,r){return function(){var t=n.apply(this,arguments);if(t==null)this.style.removeProperty(e);else this.style.setProperty(e,t,r)}}function Go(t,e,n){return arguments.length>1?this.each((e==null?Lo:typeof e==="function"?Uo:Ho)(t,e,n==null?"":n)):Vo(this.node(),t)}function Vo(t,e){return t.style.getPropertyValue(e)||Io(t).getComputedStyle(t,null).getPropertyValue(e)}function Wo(t){return function(){delete this[t]}}function qo(t,e){return function(){this[t]=e}}function Ko(e,n){return function(){var t=n.apply(this,arguments);if(t==null)delete this[e];else this[e]=t}}function Yo(t,e){return arguments.length>1?this.each((e==null?Wo:typeof e==="function"?Ko:qo)(t,e)):this.node()[t]}function Xo(t){return t.trim().split(/^|\s+/)}function Zo(t){return t.classList||new $o(t)}function $o(t){this._node=t;this._names=Xo(t.getAttribute("class")||"")}$o.prototype={add:function t(e){var n=this._names.indexOf(e);if(n<0){this._names.push(e);this._node.setAttribute("class",this._names.join(" "))}},remove:function t(e){var n=this._names.indexOf(e);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function t(e){return this._names.indexOf(e)>=0}};function Jo(t,e){var n=Zo(t),r=-1,i=e.length;while(++r<i){n.add(e[r])}}function Qo(t,e){var n=Zo(t),r=-1,i=e.length;while(++r<i){n.remove(e[r])}}function ts(t){return function(){Jo(this,t)}}function es(t){return function(){Qo(this,t)}}function ns(t,e){return function(){(e.apply(this,arguments)?Jo:Qo)(this,t)}}function rs(t,e){var n=Xo(t+"");if(arguments.length<2){var r=Zo(this.node()),i=-1,a=n.length;while(++i<a){if(!r.contains(n[i]))return false}return true}return this.each((typeof e==="function"?ns:e?ts:es)(n,e))}function is(){this.textContent=""}function as(t){return function(){this.textContent=t}}function os(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function ss(t){return arguments.length?this.each(t==null?is:(typeof t==="function"?os:as)(t)):this.node().textContent}function us(){this.innerHTML=""}function ls(t){return function(){this.innerHTML=t}}function cs(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function fs(t){return arguments.length?this.each(t==null?us:(typeof t==="function"?cs:ls)(t)):this.node().innerHTML}function hs(){if(this.nextSibling)this.parentNode.appendChild(this)}function ds(){return this.each(hs)}function gs(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vs(){return this.each(gs)}function ps(t){var e=typeof t==="function"?t:Wa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function ys(){return null}function ms(t,e){var n=typeof t==="function"?t:Wa(t),r=e==null?ys:typeof e==="function"?e:Ka(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function _s(){var t=this.parentNode;if(t)t.removeChild(this)}function bs(){return this.each(_s)}function ws(){var t=this.cloneNode(false),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function xs(){var t=this.cloneNode(true),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ks(t){return this.select(t?xs:ws)}function Ss(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Cs(e){return function(t){e.call(this,t,this.__data__)}}function Es(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);return{type:t,name:e}})}function As(a){return function(){var t=this.__on;if(!t)return;for(var e=0,n=-1,r=t.length,i;e<r;++e){if(i=t[e],(!a.type||i.type===a.type)&&i.name===a.name){this.removeEventListener(i.type,i.listener,i.options)}else{t[++n]=i}}if(++n)t.length=n;else delete this.__on}}function Ms(a,o,s){return function(){var t=this.__on,e,n=Cs(o);if(t)for(var r=0,i=t.length;r<i;++r){if((e=t[r]).type===a.type&&e.name===a.name){this.removeEventListener(e.type,e.listener,e.options);this.addEventListener(e.type,e.listener=n,e.options=s);e.value=o;return}}this.addEventListener(a.type,n,s);e={type:a.type,name:a.name,value:o,listener:n,options:s};if(!t)this.__on=[e];else t.push(e)}}function Rs(t,e,n){var r=Es(t+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s)for(var u=0,l=s.length,c;u<l;++u){for(i=0,c=s[u];i<a;++i){if((o=r[i]).type===c.type&&o.name===c.name){return c.value}}}return}s=e?Ms:As;for(i=0;i<a;++i){this.each(s(r[i],e,n))}return this}function Ts(t,e,n){var r=Io(t),i=r.CustomEvent;if(typeof i==="function"){i=new i(e,n)}else{i=r.document.createEvent("Event");if(n)i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail;else i.initEvent(e,false,false)}t.dispatchEvent(i)}function Os(t,e){return function(){return Ts(this,t,e)}}function Ps(t,e){return function(){return Ts(this,t,e.apply(this,arguments))}}function Bs(t,e){return this.each((typeof e==="function"?Ps:Os)(t,e))}function Ds(){var n,r,i,a,o,s,u;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:n=this._groups,r=0,i=n.length;case 1:if(!(r<i)){e.next=13;break}a=n[r],o=0,s=a.length;case 3:if(!(o<s)){e.next=10;break}if(!(u=a[o])){e.next=7;break}e.next=7;return u;case 7:++o;e.next=3;break;case 10:++r;e.next=1;break;case 13:case"end":return e.stop()}}},l,this)}var Ns=[null];function zs(t,e){this._groups=t;this._parents=e}function Fs(){return new zs([[document.documentElement]],Ns)}function js(){return this}zs.prototype=Fs.prototype=_defineProperty2({constructor:zs,select:Ya,selectAll:Qa,selectChild:ao,selectChildren:lo,filter:co,data:_o,enter:ho,exit:bo,join:wo,merge:xo,selection:js,order:ko,sort:So,call:Eo,nodes:Ao,node:Mo,size:Ro,empty:To,each:Oo,attr:jo,style:Go,property:Yo,classed:rs,text:ss,html:fs,raise:ds,lower:vs,append:ps,insert:ms,remove:bs,clone:ks,datum:Ss,on:Rs,dispatch:Bs},Symbol.iterator,Ds);function Is(t){return typeof t==="string"?new zs([[document.querySelector(t)]],[document.documentElement]):new zs([[t]],Ns)}function Ls(t){var e;while(e=t.sourceEvent){t=e}return t}function Hs(t,e){t=Ls(t);if(e===undefined)e=t.currentTarget;if(e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();r.x=t.clientX,r.y=t.clientY;r=r.matrixTransform(e.getScreenCTM().inverse());return[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}function Us(t){return typeof t==="string"?new zs([document.querySelectorAll(t)],[document.documentElement]):new zs([t==null?[]:Xa(t)],Ns)}var Gs={value:function t(){}};function Vs(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ws(n)}function Ws(t){this._=t}function qs(t,r){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);if(t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}Ws.prototype=Vs.prototype={constructor:Ws,on:function t(e,n){var r=this._,i=qs(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){while(++o<s){if((a=(e=i[o]).type)&&(a=Ks(r[a],e.name)))return a}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(a=(e=i[o]).type)r[a]=Ys(r[a],e.name,n);else if(n==null)for(a in r){r[a]=Ys(r[a],e.name,null)}}return this},copy:function t(){var t={},e=this._;for(var n in e){t[n]=e[n].slice()}return new Ws(t)},call:function t(e,n){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,o;i<a;++i){r[i]=arguments[i+2]}if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,a=o.length;i<a;++i){o[i].value.apply(n,r)}},apply:function t(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a){i[a].value.apply(n,r)}}};function Ks(t,e){for(var n=0,r=t.length,i;n<r;++n){if((i=t[n]).name===e){return i.value}}}function Ys(t,e,n){for(var r=0,i=t.length;r<i;++r){if(t[r].name===e){t[r]=Gs,t=t.slice(0,r).concat(t.slice(r+1));break}}if(n!=null)t.push({name:e,value:n});return t}var Xs=0,Zs=0,$s=0,Js=1e3,Qs,tu,eu=0,nu=0,ru=0,iu=(typeof performance==="undefined"?"undefined":_typeof2(performance))==="object"&&performance.now?performance:Date,au=(typeof window==="undefined"?"undefined":_typeof2(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function ou(){return nu||(au(su),nu=iu.now()+ru)}function su(){nu=0}function uu(){this._call=this._time=this._next=null}uu.prototype=lu.prototype={constructor:uu,restart:function t(e,n,r){if(typeof e!=="function")throw new TypeError("callback is not a function");r=(r==null?ou():+r)+(n==null?0:+n);if(!this._next&&tu!==this){if(tu)tu._next=this;else Qs=this;tu=this}this._call=e;this._time=r;gu()},stop:function t(){if(this._call){this._call=null;this._time=Infinity;gu()}}};function lu(t,e,n){var r=new uu;r.restart(t,e,n);return r}function cu(){ou();++Xs;var t=Qs,e;while(t){if((e=nu-t._time)>=0)t._call.call(null,e);t=t._next}--Xs}function fu(){nu=(eu=iu.now())+ru;Xs=Zs=0;try{cu()}finally{Xs=0;du();nu=0}}function hu(){var t=iu.now(),e=t-eu;if(e>Js)ru-=e,eu=t}function du(){var t,e=Qs,n,r=Infinity;while(e){if(e._call){if(r>e._time)r=e._time;t=e,e=e._next}else{n=e._next,e._next=null;e=t?t._next=n:Qs=n}}tu=t;gu(r)}function gu(t){if(Xs)return;if(Zs)Zs=clearTimeout(Zs);var e=t-nu;if(e>24){if(t<Infinity)Zs=setTimeout(fu,t-iu.now()-ru);if($s)$s=clearInterval($s)}else{if(!$s)eu=iu.now(),$s=setInterval(hu,Js);Xs=1,au(fu)}}function vu(e,n,t){var r=new uu;n=n==null?0:+n;r.restart(function(t){r.stop();e(t+n)},n,t);return r}var pu=Vs("start","end","cancel","interrupt");var yu=[];var mu=0;var _u=1;var bu=2;var wu=3;var xu=4;var ku=5;var Su=6;function Cu(t,e,n,r,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Ru(t,n,{name:e,index:r,group:i,on:pu,tween:yu,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:mu})}function Eu(t,e){var n=Mu(t,e);if(n.state>mu)throw new Error("too late; already scheduled");return n}function Au(t,e){var n=Mu(t,e);if(n.state>wu)throw new Error("too late; already running");return n}function Mu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Ru(a,o,s){var u=a.__transition,l;u[o]=s;s.timer=lu(t,0,s.time);function t(t){s.state=_u;s.timer.restart(c,s.delay,s.time);if(s.delay<=t)c(t-s.delay)}function c(t){var e,n,r,i;if(s.state!==_u)return h();for(e in u){i=u[e];if(i.name!==s.name)continue;if(i.state===wu)return vu(c);if(i.state===xu){i.state=Su;i.timer.stop();i.on.call("interrupt",a,a.__data__,i.index,i.group);delete u[e]}else if(+e<o){i.state=Su;i.timer.stop();i.on.call("cancel",a,a.__data__,i.index,i.group);delete u[e]}}vu(function(){if(s.state===wu){s.state=xu;s.timer.restart(f,s.delay,s.time);f(t)}});s.state=bu;s.on.call("start",a,a.__data__,s.index,s.group);if(s.state!==bu)return;s.state=wu;l=new Array(r=s.tween.length);for(e=0,n=-1;e<r;++e){if(i=s.tween[e].value.call(a,a.__data__,s.index,s.group)){l[++n]=i}}l.length=n+1}function f(t){var e=t<s.duration?s.ease.call(null,t/s.duration):(s.timer.restart(h),s.state=ku,1),n=-1,r=l.length;while(++n<r){l[n].call(a,e)}if(s.state===ku){s.on.call("end",a,a.__data__,s.index,s.group);h()}}function h(){s.state=Su;s.timer.stop();delete u[o];for(var t in u){return}delete a.__transition}}function Tu(t,e){var n=t.__transition,r,i,a=true,o;if(!n)return;e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){a=false;continue}i=r.state>bu&&r.state<ku;r.state=Su;r.timer.stop();r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group);delete n[o]}if(a)delete t.__transition}function Ou(t){return this.each(function(){Tu(this,t)})}function Pu(i,a){var o,s;return function(){var t=Au(this,i),e=t.tween;if(e!==o){s=o=e;for(var n=0,r=s.length;n<r;++n){if(s[n].name===a){s=s.slice();s.splice(n,1);break}}}t.tween=s}}function Bu(a,o,s){var u,l;if(typeof s!=="function")throw new Error;return function(){var t=Au(this,a),e=t.tween;if(e!==u){l=(u=e).slice();for(var n={name:o,value:s},r=0,i=l.length;r<i;++r){if(l[r].name===o){l[r]=n;break}}if(r===i)l.push(n)}t.tween=l}}function Du(t,e){var n=this._id;t+="";if(arguments.length<2){var r=Mu(this.node(),n).tween;for(var i=0,a=r.length,o;i<a;++i){if((o=r[i]).name===t){return o.value}}return null}return this.each((e==null?Pu:Bu)(n,t,e))}function Nu(t,e,n){var r=t._id;t.each(function(){var t=Au(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)});return function(t){return Mu(t,r).value[e]}}function zu(t,e){var n;return(typeof e==="number"?Wn:e instanceof wn?Ln:(n=wn(e))?(e=n,Ln):$n)(t,e)}function Fu(t){return function(){this.removeAttribute(t)}}function ju(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Iu(e,n,r){var i,a=r+"",o;return function(){var t=this.getAttribute(e);return t===a?null:t===i?o:o=n(i=t,r)}}function Lu(e,n,r){var i,a=r+"",o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===a?null:t===i?o:o=n(i=t,r)}}function Hu(r,i,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttribute(r);t=this.getAttribute(r);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function Uu(r,i,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttributeNS(r.space,r.local);t=this.getAttributeNS(r.space,r.local);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function Gu(t,e){var n=Ua(t),r=n==="transform"?ur:zu;return this.attrTween(t,typeof e==="function"?(n.local?Uu:Hu)(n,r,Nu(this,"attr."+t,e)):e==null?(n.local?ju:Fu)(n):(n.local?Lu:Iu)(n,r,e))}function Vu(e,n){return function(t){this.setAttribute(e,n.call(this,t))}}function Wu(e,n){return function(t){this.setAttributeNS(e.space,e.local,n.call(this,t))}}function qu(e,n){var r,i;function t(){var t=n.apply(this,arguments);if(t!==i)r=(i=t)&&Wu(e,t);return r}t._value=n;return t}function Ku(e,n){var r,i;function t(){var t=n.apply(this,arguments);if(t!==i)r=(i=t)&&Vu(e,t);return r}t._value=n;return t}function Yu(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!=="function")throw new Error;var r=Ua(t);return this.tween(n,(r.local?qu:Ku)(r,e))}function Xu(t,e){return function(){Eu(this,t).delay=+e.apply(this,arguments)}}function Zu(t,e){return e=+e,function(){Eu(this,t).delay=e}}function $u(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?Xu:Zu)(e,t)):Mu(this.node(),e).delay}function Ju(t,e){return function(){Au(this,t).duration=+e.apply(this,arguments)}}function Qu(t,e){return e=+e,function(){Au(this,t).duration=e}}function tl(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?Ju:Qu)(e,t)):Mu(this.node(),e).duration}function el(t,e){if(typeof e!=="function")throw new Error;return function(){Au(this,t).ease=e}}function nl(t){var e=this._id;return arguments.length?this.each(el(e,t)):Mu(this.node(),e).ease}function rl(e,n){return function(){var t=n.apply(this,arguments);if(typeof t!=="function")throw new Error;Au(this,e).ease=t}}function il(t){if(typeof t!=="function")throw new Error;return this.each(rl(this._id,t))}function al(t){if(typeof t!=="function")t=to(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new Dl(r,this._parents,this._name,this._id)}function ol(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<r;++s){o[s]=e[s]}return new Dl(o,this._parents,this._name,this._id)}function sl(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");if(e>=0)t=t.slice(0,e);return!t||t==="start"})}function ul(n,r,i){var a,o,s=sl(r)?Eu:Au;return function(){var t=s(this,n),e=t.on;if(e!==a)(o=(a=e).copy()).on(r,i);t.on=o}}function ll(t,e){var n=this._id;return arguments.length<2?Mu(this.node(),n).on.on(t):this.each(ul(n,t,e))}function cl(n){return function(){var t=this.parentNode;for(var e in this.__transition){if(+e!==n)return}if(t)t.removeChild(this)}}function fl(){return this.on("end.remove",cl(this._id))}function hl(t){var e=this._name,n=this._id;if(typeof t!=="function")t=Ka(t);for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o){for(var s=r[o],u=s.length,l=a[o]=new Array(u),c,f,h=0;h<u;++h){if((c=s[h])&&(f=t.call(c,c.__data__,h,s))){if("__data__"in c)f.__data__=c.__data__;l[h]=f;Cu(l[h],e,n,h,l,Mu(c,n))}}}return new Dl(a,this._parents,e,n)}function dl(t){var e=this._name,n=this._id;if(typeof t!=="function")t=$a(t);for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s){for(var u=r[s],l=u.length,c,f=0;f<l;++f){if(c=u[f]){for(var h=t.call(c,c.__data__,f,u),d,g=Mu(c,n),v=0,p=h.length;v<p;++v){if(d=h[v]){Cu(d,e,n,v,h,g)}}a.push(h);o.push(c)}}}return new Dl(a,o,e,n)}var gl=Fs.prototype.constructor;function vl(){return new gl(this._groups,this._parents)}function pl(n,r){var i,a,o;return function(){var t=Vo(this,n),e=(this.style.removeProperty(n),Vo(this,n));return t===e?null:t===i&&e===a?o:o=r(i=t,a=e)}}function yl(t){return function(){this.style.removeProperty(t)}}function ml(e,n,r){var i,a=r+"",o;return function(){var t=Vo(this,e);return t===a?null:t===i?o:o=n(i=t,r)}}function _l(r,i,a){var o,s,u;return function(){var t=Vo(this,r),e=a(this),n=e+"";if(e==null)n=e=(this.style.removeProperty(r),Vo(this,r));return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function bl(r,i){var a,o,s,u="style."+i,l="end."+u,c;return function(){var t=Au(this,r),e=t.on,n=t.value[u]==null?c||(c=yl(i)):undefined;if(e!==a||s!==n)(o=(a=e).copy()).on(l,s=n);t.on=o}}function wl(t,e,n){var r=(t+="")==="transform"?sr:zu;return e==null?this.styleTween(t,pl(t,r)).on("end.style."+t,yl(t)):typeof e==="function"?this.styleTween(t,_l(t,r,Nu(this,"style."+t,e))).each(bl(this._id,t)):this.styleTween(t,ml(t,r,e),n).on("end.style."+t,null)}function xl(e,n,r){return function(t){this.style.setProperty(e,n.call(this,t),r)}}function kl(e,n,r){var i,a;function t(){var t=n.apply(this,arguments);if(t!==a)i=(a=t)&&xl(e,t,r);return i}t._value=n;return t}function Sl(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!=="function")throw new Error;return this.tween(r,kl(t,e,n==null?"":n))}function Cl(t){return function(){this.textContent=t}}function El(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function Al(t){return this.tween("text",typeof t==="function"?El(Nu(this,"text",t)):Cl(t==null?"":t+""))}function Ml(e){return function(t){this.textContent=e.call(this,t)}}function Rl(e){var n,r;function t(){var t=e.apply(this,arguments);if(t!==r)n=(r=t)&&Ml(t);return n}t._value=e;return t}function Tl(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!=="function")throw new Error;return this.tween(e,Rl(t))}function Ol(){var t=this._name,e=this._id,n=zl();for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var o=r[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){var c=Mu(u,e);Cu(u,t,n,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}}}return new Dl(r,this._parents,t,n)}function Pl(){var i,a,o=this,s=o._id,u=o.size();return new Promise(function(e,t){var n={value:t},r={value:function t(){if(--u===0)e()}};o.each(function(){var t=Au(this,s),e=t.on;if(e!==i){a=(i=e).copy();a._.cancel.push(n);a._.interrupt.push(n);a._.end.push(r)}t.on=a});if(u===0)e()})}var Bl=0;function Dl(t,e,n,r){this._groups=t;this._parents=e;this._name=n;this._id=r}function Nl(t){return Fs().transition(t)}function zl(){return++Bl}var Fl=Fs.prototype;Dl.prototype=Nl.prototype=_defineProperty2({constructor:Dl,select:hl,selectAll:dl,filter:al,merge:ol,selection:vl,transition:Ol,call:Fl.call,nodes:Fl.nodes,node:Fl.node,size:Fl.size,empty:Fl.empty,each:Fl.each,on:ll,attr:Gu,attrTween:Yu,style:wl,styleTween:Sl,text:Al,textTween:Tl,remove:fl,tween:Du,delay:$u,duration:tl,ease:nl,easeVarying:il,end:Pl},Symbol.iterator,Fl[Symbol.iterator]);function jl(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Il={time:null,delay:0,duration:250,ease:jl};function Ll(t,e){var n;while(!(n=t.__transition)||!(n=n[e])){if(!(t=t.parentNode)){throw new Error("transition ".concat(e," not found"))}}return n}function Hl(t){var e,n;if(t instanceof Dl){e=t._id,t=t._name}else{e=zl(),(n=Il).time=ou(),t=t==null?null:t+""}for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var o=r[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){Cu(u,t,e,l,o,n||Ll(u,e))}}}return new Dl(r,this._parents,t,e)}Fs.prototype.interrupt=Ou;Fs.prototype.transition=Hl;function Ul(e,n){if(n===undefined)return function(t){return t[e]};return function(t){return t[e]===undefined?n:t[e]}}function Gl(t){"@babel/helpers - typeof";return Gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gl(t)}function Vl(t){return t&&Gl(t)==="object"&&(typeof window==="undefined"||t!==window&&t!==window.document&&!(t instanceof Element))&&!Array.isArray(t)?true:false}function Wl(t){if(typeof window==="undefined")return true;else return t!==window&&t!==document}function ql(){var r=arguments;var i=arguments.length<=0?undefined:arguments[0];var t=function t(e){var n=e<0||r.length<=e?undefined:r[e];if(!Vl(n))return"continue";Object.keys(n).forEach(function(t){var e=n[t];if(Vl(e)&&Wl(e)){if(i.hasOwnProperty(t)&&Vl(i[t]))i[t]=ql({},i[t],e);else i[t]=ql({},e)}else if(Array.isArray(e))i[t]=e.slice();else i[t]=e})};for(var e=1;e<arguments.length;e++){var n=t(e);if(n==="continue")continue}return i}function Kl(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.attr(n,e[n])}}var Yl={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var Xl={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var Zl={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var $l={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var Jl={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var Ql={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var tc={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var ec={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var nc={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var rc={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var ic={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var ac={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var oc={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var sc={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var uc={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var lc={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var cc={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var fc={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var hc={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var dc={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var gc={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var vc={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var pc={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var yc={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var mc={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var _c={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var bc={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var wc={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var xc={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var kc={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var Sc={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var Cc={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var Ec={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var Ac={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var Mc={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var Rc={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var Tc={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var Oc={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var Pc={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var Bc={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var Dc={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var Nc={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var zc={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var Fc={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var jc={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var Ic={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var Lc={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var Hc={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var Uc={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var Gc={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var Vc={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var Wc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var qc={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var Kc={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var Yc={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var Xc={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var Zc={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var $c={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var Jc={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var Qc={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var tf={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var ef={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var nf={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var rf={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var af={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var of={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var sf={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var uf={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var lf={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var cf={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var ff={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var hf={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var df={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var gf={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var vf={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var pf={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var yf={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var mf={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var _f={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var bf={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var wf={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var xf={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var kf={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var Sf={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var Cf={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var Ef={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var Af={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var Mf={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var Rf={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var Tf={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var Of={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var Pf={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var Bf={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var Df={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var Nf={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var zf={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var Ff={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var jf={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var If={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var Lf={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var Hf={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var Uf={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var Gf={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var Vf={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Wf={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var qf={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var Kf={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var Yf={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var Xf={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var Zf={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var $f={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var Jf={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var Qf={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var th={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var eh={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var nh={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var rh={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var ih={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var ah={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var oh={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var sh={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var uh={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var lh={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var ch={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var fh={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var hh={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var dh={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var gh={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var vh={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var ph={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var yh={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var mh={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var _h={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var bh={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var wh={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var xh={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var kh={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var Sh={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var Ch={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var Eh={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var Ah={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var Mh={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var Rh={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var Th={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var Oh={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var Ph={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var Bh={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var Dh={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var Nh={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var zh={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var Fh={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var jh={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var Ih={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var Lh={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var Hh={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var Uh={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var Gh={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var Vh={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var Wh={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var qh={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var Kh={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var Yh={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var Xh={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var Zh={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var $h={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var Jh={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var Qh={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var td={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var ed={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var nd={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var rd={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var id={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var ad={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var od={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var sd={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var ud={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var ld={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var cd={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var fd={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var hd={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var dd={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var gd={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var vd={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var pd={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var yd={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var md={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var _d={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var bd={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var wd={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var xd={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var kd={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var Sd={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var Cd={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var Ed={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var Ad={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var Md={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var Rd={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var Td={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var Od={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var Pd={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var Bd={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var Dd={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var Nd={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var zd={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var Fd={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var jd={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var Id={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var Ld={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var Hd={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var Ud={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var Gd={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var Vd={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var Wd={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var qd={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var Kd={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var Yd={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var Xd={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var Zd={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var $d={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var Jd={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var Qd={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var tg={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var eg={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var ng={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var rg={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var ig={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var ag={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var og={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var sg={aa:Yl,"aa-dj":{language:"Afar",location:"Djibouti",id:4096,tag:"aa-DJ",version:"Release 10"},"aa-er":{language:"Afar",location:"Eritrea",id:4096,tag:"aa-ER",version:"Release 10"},"aa-et":{language:"Afar",location:"Ethiopia",id:4096,tag:"aa-ET",version:"Release 10"},af:Xl,"af-na":{language:"Afrikaans",location:"Namibia",id:4096,tag:"af-NA",version:"Release 10"},"af-za":{language:"Afrikaans",location:"South Africa",id:1078,tag:"af-ZA",version:"Release B"},agq:Zl,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:$l,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:Jl,"sq-al":{language:"Albanian",location:"Albania",id:1052,tag:"sq-AL",version:"Release B"},"sq-mk":{language:"Albanian",location:"North Macedonia",id:4096,tag:"sq-MK",version:"Release 10"},gsw:Ql,"gsw-fr":{language:"Alsatian",location:"France",id:1156,tag:"gsw-FR",version:"Release V"},"gsw-li":{language:"Alsatian",location:"Liechtenstein",id:4096,tag:"gsw-LI",version:"Release 10"},"gsw-ch":{language:"Alsatian",location:"Switzerland",id:4096,tag:"gsw-CH",version:"Release 10"},am:tc,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:ec,"ar-dz":{language:"Arabic",location:"Algeria",id:5121,tag:"ar-DZ",version:"Release B"},"ar-bh":{language:"Arabic",location:"Bahrain",id:15361,tag:"ar-BH",version:"Release B"},"ar-td":{language:"Arabic",location:"Chad",id:4096,tag:"ar-TD",version:"Release 10"},"ar-km":{language:"Arabic",location:"Comoros",id:4096,tag:"ar-KM",version:"Release 10"},"ar-dj":{language:"Arabic",location:"Djibouti",id:4096,tag:"ar-DJ",version:"Release 10"},"ar-eg":{language:"Arabic",location:"Egypt",id:3073,tag:"ar-EG",version:"Release B"},"ar-er":{language:"Arabic",location:"Eritrea",id:4096,tag:"ar-ER",version:"Release 10"},"ar-iq":{language:"Arabic",location:"Iraq",id:2049,tag:"ar-IQ",version:"Release B"},"ar-il":{language:"Arabic",location:"Israel",id:4096,tag:"ar-IL",version:"Release 10"},"ar-jo":{language:"Arabic",location:"Jordan",id:11265,tag:"ar-JO",version:"Release B"},"ar-kw":{language:"Arabic",location:"Kuwait",id:13313,tag:"ar-KW",version:"Release B"},"ar-lb":{language:"Arabic",location:"Lebanon",id:12289,tag:"ar-LB",version:"Release B"},"ar-ly":{language:"Arabic",location:"Libya",id:4097,tag:"ar-LY",version:"Release B"},"ar-mr":{language:"Arabic",location:"Mauritania",id:4096,tag:"ar-MR",version:"Release 10"},"ar-ma":{language:"Arabic",location:"Morocco",id:6145,tag:"ar-MA",version:"Release B"},"ar-om":{language:"Arabic",location:"Oman",id:8193,tag:"ar-OM",version:"Release B"},"ar-ps":{language:"Arabic",location:"Palestinian Authority",id:4096,tag:"ar-PS",version:"Release 10"},"ar-qa":{language:"Arabic",location:"Qatar",id:16385,tag:"ar-QA",version:"Release B"},"ar-sa":{language:"Arabic",location:"Saudi Arabia",id:1025,tag:"ar-SA",version:"Release B"},"ar-so":{language:"Arabic",location:"Somalia",id:4096,tag:"ar-SO",version:"Release 10"},"ar-ss":{language:"Arabic",location:"South Sudan",id:4096,tag:"ar-SS",version:"Release 10"},"ar-sd":{language:"Arabic",location:"Sudan",id:4096,tag:"ar-SD",version:"Release 10"},"ar-sy":{language:"Arabic",location:"Syria",id:10241,tag:"ar-SY",version:"Release B"},"ar-tn":{language:"Arabic",location:"Tunisia",id:7169,tag:"ar-TN",version:"Release B"},"ar-ae":{language:"Arabic",location:"U.A.E.",id:14337,tag:"ar-AE",version:"Release B"},"ar-001":{language:"Arabic",location:"World",id:4096,tag:"ar-001",version:"Release 10"},"ar-ye":{language:"Arabic",location:"Yemen",id:9217,tag:"ar-YE",version:"Release B"},hy:nc,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:rc,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:ic,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:ac,"asa-tz":{language:"Asu",location:"Tanzania",id:4096,tag:"asa-TZ",version:"Release 10"},"az-cyrl":{language:"Azerbaijani (Cyrillic)",location:null,id:29740,tag:"az-Cyrl",version:"Windows 7"},"az-cyrl-az":{language:"Azerbaijani (Cyrillic)",location:"Azerbaijan",id:2092,tag:"az-Cyrl-AZ",version:"Release C"},az:oc,"az-latn":{language:"Azerbaijani (Latin)",location:null,id:30764,tag:"az-Latn",version:"Windows 7"},"az-latn-az":{language:"Azerbaijani (Latin)",location:"Azerbaijan",id:1068,tag:"az-Latn-AZ",version:"Release C"},ksf:sc,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:uc,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:lc,"bn-bd":{language:"Bangla",location:"Bangladesh",id:2117,tag:"bn-BD",version:"Release V"},"bn-in":{language:"Bangla",location:"India",id:1093,tag:"bn-IN",version:"Release E1"},bas:cc,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:fc,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:hc,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:dc,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:gc,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:vc,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:pc,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:yc,"brx-in":{language:"Bodo",location:"India",id:4096,tag:"brx-IN",version:"Release 10"},"bs-cyrl":{language:"Bosnian (Cyrillic)",location:null,id:25626,tag:"bs-Cyrl",version:"Windows 7"},"bs-cyrl-ba":{language:"Bosnian (Cyrillic)",location:"Bosnia and Herzegovina",id:8218,tag:"bs-Cyrl-BA",version:"Release E1"},"bs-latn":{language:"Bosnian (Latin)",location:null,id:26650,tag:"bs-Latn",version:"Windows 7"},bs:mc,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:_c,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:bc,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:wc,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:xc,"ca-ad":{language:"Catalan",location:"Andorra",id:4096,tag:"ca-AD",version:"Release 10"},"ca-fr":{language:"Catalan",location:"France",id:4096,tag:"ca-FR",version:"Release 10"},"ca-it":{language:"Catalan",location:"Italy",id:4096,tag:"ca-IT",version:"Release 10"},"ca-es":{language:"Catalan",location:"Spain",id:1027,tag:"ca-ES",version:"Release B"},ceb:kc,"ceb-latn":{language:"Cebuan (Latin)",location:null,id:4096,tag:"ceb-Latn",version:"Release 10.5"},"ceb-latn-ph":{language:"Cebuan (Latin)",location:"Philippines",id:4096,tag:"ceb-Latn-PH",version:"Release 10.5"},"tzm-latn-":{language:"Central Atlas Tamazight (Latin)",location:"Morocco",id:4096,tag:"tzm-Latn-",version:"Release 10"},ku:Sc,"ku-arab":{language:"Central Kurdish",location:null,id:31890,tag:"ku-Arab",version:"Release 8"},"ku-arab-iq":{language:"Central Kurdish",location:"Iraq",id:1170,tag:"ku-Arab-IQ",version:"Release 8"},ccp:Cc,"ccp-cakm":{language:"Chakma",location:"Chakma",id:4096,tag:"ccp-Cakm",version:"Release 10.5"},"ccp-cakm-":{language:"Chakma",location:"India",id:4096,tag:"ccp-Cakm-",version:"Release 10.5"},"cd-ru":{language:"Chechen",location:"Russia",id:4096,tag:"cd-RU",version:"Release 10.1"},chr:Ec,"chr-cher":{language:"Cherokee",location:null,id:31836,tag:"chr-Cher",version:"Release 8"},"chr-cher-us":{language:"Cherokee",location:"United States",id:1116,tag:"chr-Cher-US",version:"Release 8"},cgg:Ac,"cgg-ug":{language:"Chiga",location:"Uganda",id:4096,tag:"cgg-UG",version:"Release 10"},"zh-hans":{language:"Chinese (Simplified)",location:null,id:4,tag:"zh-Hans",version:"Release A"},zh:Mc,"zh-cn":{language:"Chinese (Simplified)",location:"People's Republic of China",id:2052,tag:"zh-CN",version:"Release A"},"zh-sg":{language:"Chinese (Simplified)",location:"Singapore",id:4100,tag:"zh-SG",version:"Release A"},"zh-hant":{language:"Chinese (Traditional)",location:null,id:31748,tag:"zh-Hant",version:"Release A"},"zh-hk":{language:"Chinese (Traditional)",location:"Hong Kong S.A.R.",id:3076,tag:"zh-HK",version:"Release A"},"zh-mo":{language:"Chinese (Traditional)",location:"Macao S.A.R.",id:5124,tag:"zh-MO",version:"Release D"},"zh-tw":{language:"Chinese (Traditional)",location:"Taiwan",id:1028,tag:"zh-TW",version:"Release A"},"cu-ru":{language:"Church Slavic",location:"Russia",id:4096,tag:"cu-RU",version:"Release 10.1"},swc:Rc,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:Tc,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:Oc,"co-fr":{language:"Corsican",location:"France",id:1155,tag:"co-FR",version:"Release V"},"hr,":{language:"Croatian",location:null,id:26,tag:"hr,",version:"Release 7"},"hr-hr":{language:"Croatian",location:"Croatia",id:1050,tag:"hr-HR",version:"Release A"},"hr-ba":{language:"Croatian (Latin)",location:"Bosnia and Herzegovina",id:4122,tag:"hr-BA",version:"Release E1"},cs:Pc,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:Bc,"da-dk":{language:"Danish",location:"Denmark",id:1030,tag:"da-DK",version:"Release A"},"da-gl":{language:"Danish",location:"Greenland",id:4096,tag:"da-GL",version:"Release 10"},prs:Dc,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:Nc,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:zc,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:Fc,"nl-aw":{language:"Dutch",location:"Aruba",id:4096,tag:"nl-AW",version:"Release 10"},"nl-be":{language:"Dutch",location:"Belgium",id:2067,tag:"nl-BE",version:"Release A"},"nl-bq":{language:"Dutch",location:"Bonaire, Sint Eustatius and Saba",id:4096,tag:"nl-BQ",version:"Release 10"},"nl-cw":{language:"Dutch",location:"Curaçao",id:4096,tag:"nl-CW",version:"Release 10"},"nl-nl":{language:"Dutch",location:"Netherlands",id:1043,tag:"nl-NL",version:"Release A"},"nl-sx":{language:"Dutch",location:"Sint Maarten",id:4096,tag:"nl-SX",version:"Release 10"},"nl-sr":{language:"Dutch",location:"Suriname",id:4096,tag:"nl-SR",version:"Release 10"},dz:jc,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:Ic,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:Lc,"en-as":{language:"English",location:"American Samoa",id:4096,tag:"en-AS",version:"Release 10"},"en-ai":{language:"English",location:"Anguilla",id:4096,tag:"en-AI",version:"Release 10"},"en-ag":{language:"English",location:"Antigua and Barbuda",id:4096,tag:"en-AG",version:"Release 10"},"en-au":{language:"English",location:"Australia",id:3081,tag:"en-AU",version:"Release A"},"en-at":{language:"English",location:"Austria",id:4096,tag:"en-AT",version:"Release 10.1"},"en-bs":{language:"English",location:"Bahamas",id:4096,tag:"en-BS",version:"Release 10"},"en-bb":{language:"English",location:"Barbados",id:4096,tag:"en-BB",version:"Release 10"},"en-be":{language:"English",location:"Belgium",id:4096,tag:"en-BE",version:"Release 10"},"en-bz":{language:"English",location:"Belize",id:10249,tag:"en-BZ",version:"Release B"},"en-bm":{language:"English",location:"Bermuda",id:4096,tag:"en-BM",version:"Release 10"},"en-bw":{language:"English",location:"Botswana",id:4096,tag:"en-BW",version:"Release 10"},"en-io":{language:"English",location:"British Indian Ocean Territory",id:4096,tag:"en-IO",version:"Release 10"},"en-vg":{language:"English",location:"British Virgin Islands",id:4096,tag:"en-VG",version:"Release 10"},"en-bi":{language:"English",location:"Burundi",id:4096,tag:"en-BI",version:"Release 10.1"},"en-cm":{language:"English",location:"Cameroon",id:4096,tag:"en-CM",version:"Release 10"},"en-ca":{language:"English",location:"Canada",id:4105,tag:"en-CA",version:"Release A"},"en-029":{language:"English",location:"Caribbean",id:9225,tag:"en-029",version:"Release B"},"en-ky":{language:"English",location:"Cayman Islands",id:4096,tag:"en-KY",version:"Release 10"},"en-cx":{language:"English",location:"Christmas Island",id:4096,tag:"en-CX",version:"Release 10"},"en-cc":{language:"English",location:"Cocos [Keeling] Islands",id:4096,tag:"en-CC",version:"Release 10"},"en-ck":{language:"English",location:"Cook Islands",id:4096,tag:"en-CK",version:"Release 10"},"en-cy":{language:"English",location:"Cyprus",id:4096,tag:"en-CY",version:"Release 10.1"},"en-dk":{language:"English",location:"Denmark",id:4096,tag:"en-DK",version:"Release 10.1"},"en-dm":{language:"English",location:"Dominica",id:4096,tag:"en-DM",version:"Release 10"},"en-er":{language:"English",location:"Eritrea",id:4096,tag:"en-ER",version:"Release 10"},"en-150":{language:"English",location:"Europe",id:4096,tag:"en-150",version:"Release 10"},"en-fk":{language:"English",location:"Falkland Islands",id:4096,tag:"en-FK",version:"Release 10"},"en-fi":{language:"English",location:"Finland",id:4096,tag:"en-FI",version:"Release 10.1"},"en-fj":{language:"English",location:"Fiji",id:4096,tag:"en-FJ",version:"Release 10"},"en-gm":{language:"English",location:"Gambia",id:4096,tag:"en-GM",version:"Release 10"},"en-de":{language:"English",location:"Germany",id:4096,tag:"en-DE",version:"Release 10.1"},"en-gh":{language:"English",location:"Ghana",id:4096,tag:"en-GH",version:"Release 10"},"en-gi":{language:"English",location:"Gibraltar",id:4096,tag:"en-GI",version:"Release 10"},"en-gd":{language:"English",location:"Grenada",id:4096,tag:"en-GD",version:"Release 10"},"en-gu":{language:"English",location:"Guam",id:4096,tag:"en-GU",version:"Release 10"},"en-gg":{language:"English",location:"Guernsey",id:4096,tag:"en-GG",version:"Release 10"},"en-gy":{language:"English",location:"Guyana",id:4096,tag:"en-GY",version:"Release 10"},"en-hk":{language:"English",location:"Hong Kong",id:15369,tag:"en-HK",version:"Release 8.1"},"en-in":{language:"English",location:"India",id:16393,tag:"en-IN",version:"Release V"},"en-ie":{language:"English",location:"Ireland",id:6153,tag:"en-IE",version:"Release A"},"en-im":{language:"English",location:"Isle of Man",id:4096,tag:"en-IM",version:"Release 10"},"en-il":{language:"English",location:"Israel",id:4096,tag:"en-IL",version:"Release 10.1"},"en-jm":{language:"English",location:"Jamaica",id:8201,tag:"en-JM",version:"Release B"},"en-je":{language:"English",location:"Jersey",id:4096,tag:"en-JE",version:"Release 10"},"en-ke":{language:"English",location:"Kenya",id:4096,tag:"en-KE",version:"Release 10"},"en-ki":{language:"English",location:"Kiribati",id:4096,tag:"en-KI",version:"Release 10"},"en-ls":{language:"English",location:"Lesotho",id:4096,tag:"en-LS",version:"Release 10"},"en-lr":{language:"English",location:"Liberia",id:4096,tag:"en-LR",version:"Release 10"},"en-mo":{language:"English",location:"Macao SAR",id:4096,tag:"en-MO",version:"Release 10"},"en-mg":{language:"English",location:"Madagascar",id:4096,tag:"en-MG",version:"Release 10"},"en-mw":{language:"English",location:"Malawi",id:4096,tag:"en-MW",version:"Release 10"},"en-my":{language:"English",location:"Malaysia",id:17417,tag:"en-MY",version:"Release V"},"en-mt":{language:"English",location:"Malta",id:4096,tag:"en-MT",version:"Release 10"},"en-mh":{language:"English",location:"Marshall Islands",id:4096,tag:"en-MH",version:"Release 10"},"en-mu":{language:"English",location:"Mauritius",id:4096,tag:"en-MU",version:"Release 10"},"en-fm":{language:"English",location:"Micronesia",id:4096,tag:"en-FM",version:"Release 10"},"en-ms":{language:"English",location:"Montserrat",id:4096,tag:"en-MS",version:"Release 10"},"en-na":{language:"English",location:"Namibia",id:4096,tag:"en-NA",version:"Release 10"},"en-nr":{language:"English",location:"Nauru",id:4096,tag:"en-NR",version:"Release 10"},"en-nl":{language:"English",location:"Netherlands",id:4096,tag:"en-NL",version:"Release 10.1"},"en-nz":{language:"English",location:"New Zealand",id:5129,tag:"en-NZ",version:"Release A"},"en-ng":{language:"English",location:"Nigeria",id:4096,tag:"en-NG",version:"Release 10"},"en-nu":{language:"English",location:"Niue",id:4096,tag:"en-NU",version:"Release 10"},"en-nf":{language:"English",location:"Norfolk Island",id:4096,tag:"en-NF",version:"Release 10"},"en-mp":{language:"English",location:"Northern Mariana Islands",id:4096,tag:"en-MP",version:"Release 10"},"en-pk":{language:"English",location:"Pakistan",id:4096,tag:"en-PK",version:"Release 10"},"en-pw":{language:"English",location:"Palau",id:4096,tag:"en-PW",version:"Release 10"},"en-pg":{language:"English",location:"Papua New Guinea",id:4096,tag:"en-PG",version:"Release 10"},"en-pn":{language:"English",location:"Pitcairn Islands",id:4096,tag:"en-PN",version:"Release 10"},"en-pr":{language:"English",location:"Puerto Rico",id:4096,tag:"en-PR",version:"Release 10"},"en-ph":{language:"English",location:"Republic of the Philippines",id:13321,tag:"en-PH",version:"Release C"},"en-rw":{language:"English",location:"Rwanda",id:4096,tag:"en-RW",version:"Release 10"},"en-kn":{language:"English",location:"Saint Kitts and Nevis",id:4096,tag:"en-KN",version:"Release 10"},"en-lc":{language:"English",location:"Saint Lucia",id:4096,tag:"en-LC",version:"Release 10"},"en-vc":{language:"English",location:"Saint Vincent and the Grenadines",id:4096,tag:"en-VC",version:"Release 10"},"en-ws":{language:"English",location:"Samoa",id:4096,tag:"en-WS",version:"Release 10"},"en-sc":{language:"English",location:"Seychelles",id:4096,tag:"en-SC",version:"Release 10"},"en-sl":{language:"English",location:"Sierra Leone",id:4096,tag:"en-SL",version:"Release 10"},"en-sg":{language:"English",location:"Singapore",id:18441,tag:"en-SG",version:"Release V"},"en-sx":{language:"English",location:"Sint Maarten",id:4096,tag:"en-SX",version:"Release 10"},"en-si":{language:"English",location:"Slovenia",id:4096,tag:"en-SI",version:"Release 10.1"},"en-sb":{language:"English",location:"Solomon Islands",id:4096,tag:"en-SB",version:"Release 10"},"en-za":{language:"English",location:"South Africa",id:7177,tag:"en-ZA",version:"Release B"},"en-ss":{language:"English",location:"South Sudan",id:4096,tag:"en-SS",version:"Release 10"},"en-sh":{language:"English",location:"St Helena, Ascension, Tristan da Cunha",id:4096,tag:"en-SH",version:"Release 10"},"en-sd":{language:"English",location:"Sudan",id:4096,tag:"en-SD",version:"Release 10"},"en-sz":{language:"English",location:"Swaziland",id:4096,tag:"en-SZ",version:"Release 10"},"en-se":{language:"English",location:"Sweden",id:4096,tag:"en-SE",version:"Release 10.1"},"en-ch":{language:"English",location:"Switzerland",id:4096,tag:"en-CH",version:"Release 10.1"},"en-tz":{language:"English",location:"Tanzania",id:4096,tag:"en-TZ",version:"Release 10"},"en-tk":{language:"English",location:"Tokelau",id:4096,tag:"en-TK",version:"Release 10"},"en-to":{language:"English",location:"Tonga",id:4096,tag:"en-TO",version:"Release 10"},"en-tt":{language:"English",location:"Trinidad and Tobago",id:11273,tag:"en-TT",version:"Release B"},"en-tc":{language:"English",location:"Turks and Caicos Islands",id:4096,tag:"en-TC",version:"Release 10"},"en-tv":{language:"English",location:"Tuvalu",id:4096,tag:"en-TV",version:"Release 10"},"en-ug":{language:"English",location:"Uganda",id:4096,tag:"en-UG",version:"Release 10"},"en-ae":{language:"English",location:"United Arab Emirates",id:19465,tag:"en-AE",version:"Release 10.5"},"en-gb":{language:"English",location:"United Kingdom",id:2057,tag:"en-GB",version:"Release A"},"en-us":{language:"English",location:"United States",id:1033,tag:"en-US",version:"Release A"},"en-um":{language:"English",location:"US Minor Outlying Islands",id:4096,tag:"en-UM",version:"Release 10"},"en-vi":{language:"English",location:"US Virgin Islands",id:4096,tag:"en-VI",version:"Release 10"},"en-vu":{language:"English",location:"Vanuatu",id:4096,tag:"en-VU",version:"Release 10"},"en-001":{language:"English",location:"World",id:4096,tag:"en-001",version:"Release 10"},"en-zm":{language:"English",location:"Zambia",id:4096,tag:"en-ZM",version:"Release 10"},"en-zw":{language:"English",location:"Zimbabwe",id:12297,tag:"en-ZW",version:"Release C"},eo:Hc,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:Uc,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:Gc,"ee-gh":{language:"Ewe",location:"Ghana",id:4096,tag:"ee-GH",version:"Release 10"},"ee-tg":{language:"Ewe",location:"Togo",id:4096,tag:"ee-TG",version:"Release 10"},ewo:Vc,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:Wc,"fo-dk":{language:"Faroese",location:"Denmark",id:4096,tag:"fo-DK",version:"Release 10.1"},"fo-fo":{language:"Faroese",location:"Faroe Islands",id:1080,tag:"fo-FO",version:"Release B"},fil:qc,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:Kc,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:Yc,"fr-dz":{language:"French",location:"Algeria",id:4096,tag:"fr-DZ",version:"Release 10"},"fr-be":{language:"French",location:"Belgium",id:2060,tag:"fr-BE",version:"Release A"},"fr-bj":{language:"French",location:"Benin",id:4096,tag:"fr-BJ",version:"Release 10"},"fr-bf":{language:"French",location:"Burkina Faso",id:4096,tag:"fr-BF",version:"Release 10"},"fr-bi":{language:"French",location:"Burundi",id:4096,tag:"fr-BI",version:"Release 10"},"fr-cm":{language:"French",location:"Cameroon",id:11276,tag:"fr-CM",version:"Release 8.1"},"fr-ca":{language:"French",location:"Canada",id:3084,tag:"fr-CA",version:"Release A"},"fr-cf":{language:"French",location:"Central African Republic",id:4096,tag:"fr-CF",version:"Release10"},"fr-td":{language:"French",location:"Chad",id:4096,tag:"fr-TD",version:"Release 10"},"fr-km":{language:"French",location:"Comoros",id:4096,tag:"fr-KM",version:"Release 10"},"fr-cg":{language:"French",location:"Congo",id:4096,tag:"fr-CG",version:"Release 10"},"fr-cd":{language:"French",location:"Congo, DRC",id:9228,tag:"fr-CD",version:"Release 8.1"},"fr-ci":{language:"French",location:"Côte d'Ivoire",id:12300,tag:"fr-CI",version:"Release 8.1"},"fr-dj":{language:"French",location:"Djibouti",id:4096,tag:"fr-DJ",version:"Release 10"},"fr-gq":{language:"French",location:"Equatorial Guinea",id:4096,tag:"fr-GQ",version:"Release 10"},"fr-fr":{language:"French",location:"France",id:1036,tag:"fr-FR",version:"Release A"},"fr-gf":{language:"French",location:"French Guiana",id:4096,tag:"fr-GF",version:"Release 10"},"fr-pf":{language:"French",location:"French Polynesia",id:4096,tag:"fr-PF",version:"Release 10"},"fr-ga":{language:"French",location:"Gabon",id:4096,tag:"fr-GA",version:"Release 10"},"fr-gp":{language:"French",location:"Guadeloupe",id:4096,tag:"fr-GP",version:"Release 10"},"fr-gn":{language:"French",location:"Guinea",id:4096,tag:"fr-GN",version:"Release 10"},"fr-ht":{language:"French",location:"Haiti",id:15372,tag:"fr-HT",version:"Release 8.1"},"fr-lu":{language:"French",location:"Luxembourg",id:5132,tag:"fr-LU",version:"Release A"},"fr-mg":{language:"French",location:"Madagascar",id:4096,tag:"fr-MG",version:"Release 10"},"fr-ml":{language:"French",location:"Mali",id:13324,tag:"fr-ML",version:"Release 8.1"},"fr-mq":{language:"French",location:"Martinique",id:4096,tag:"fr-MQ",version:"Release 10"},"fr-mr":{language:"French",location:"Mauritania",id:4096,tag:"fr-MR",version:"Release 10"},"fr-mu":{language:"French",location:"Mauritius",id:4096,tag:"fr-MU",version:"Release 10"},"fr-yt":{language:"French",location:"Mayotte",id:4096,tag:"fr-YT",version:"Release 10"},"fr-ma":{language:"French",location:"Morocco",id:14348,tag:"fr-MA",version:"Release 8.1"},"fr-nc":{language:"French",location:"New Caledonia",id:4096,tag:"fr-NC",version:"Release 10"},"fr-ne":{language:"French",location:"Niger",id:4096,tag:"fr-NE",version:"Release 10"},"fr-mc":{language:"French",location:"Principality of Monaco",id:6156,tag:"fr-MC",version:"Release A"},"fr-re":{language:"French",location:"Reunion",id:8204,tag:"fr-RE",version:"Release 8.1"},"fr-rw":{language:"French",location:"Rwanda",id:4096,tag:"fr-RW",version:"Release 10"},"fr-bl":{language:"French",location:"Saint Barthélemy",id:4096,tag:"fr-BL",version:"Release 10"},"fr-mf":{language:"French",location:"Saint Martin",id:4096,tag:"fr-MF",version:"Release 10"},"fr-pm":{language:"French",location:"Saint Pierre and Miquelon",id:4096,tag:"fr-PM",version:"Release 10"},"fr-sn":{language:"French",location:"Senegal",id:10252,tag:"fr-SN",version:"Release 8.1"},"fr-sc":{language:"French",location:"Seychelles",id:4096,tag:"fr-SC",version:"Release 10"},"fr-ch":{language:"French",location:"Switzerland",id:4108,tag:"fr-CH",version:"Release A"},"fr-sy":{language:"French",location:"Syria",id:4096,tag:"fr-SY",version:"Release 10"},"fr-tg":{language:"French",location:"Togo",id:4096,tag:"fr-TG",version:"Release 10"},"fr-tn":{language:"French",location:"Tunisia",id:4096,tag:"fr-TN",version:"Release 10"},"fr-vu":{language:"French",location:"Vanuatu",id:4096,tag:"fr-VU",version:"Release 10"},"fr-wf":{language:"French",location:"Wallis and Futuna",id:4096,tag:"fr-WF",version:"Release 10"},fy:Xc,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:Zc,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:$c,"ff-latn":{language:"Fulah (Latin)",location:null,id:31847,tag:"ff-Latn",version:"Release 8"},"ff-latn-bf":{language:"Fulah (Latin)",location:"Burkina Faso",id:4096,tag:"ff-Latn-BF",version:"Release 10.4"},"ff-cm":{language:"Fulah",location:"Cameroon",id:4096,tag:"ff-CM",version:"Release 10"},"ff-latn-cm":{language:"Fulah (Latin)",location:"Cameroon",id:4096,tag:"ff-Latn-CM",version:"Release 10.4"},"ff-latn-gm":{language:"Fulah (Latin)",location:"Gambia",id:4096,tag:"ff-Latn-GM",version:"Release 10.4"},"ff-latn-gh":{language:"Fulah (Latin)",location:"Ghana",id:4096,tag:"ff-Latn-GH",version:"Release 10.4"},"ff-gn":{language:"Fulah",location:"Guinea",id:4096,tag:"ff-GN",version:"Release 10"},"ff-latn-gn":{language:"Fulah (Latin)",location:"Guinea",id:4096,tag:"ff-Latn-GN",version:"Release 10.4"},"ff-latn-gw":{language:"Fulah (Latin)",location:"Guinea-Bissau",id:4096,tag:"ff-Latn-GW",version:"Release 10.4"},"ff-latn-lr":{language:"Fulah (Latin)",location:"Liberia",id:4096,tag:"ff-Latn-LR",version:"Release 10.4"},"ff-mr":{language:"Fulah",location:"Mauritania",id:4096,tag:"ff-MR",version:"Release 10"},"ff-latn-mr":{language:"Fulah (Latin)",location:"Mauritania",id:4096,tag:"ff-Latn-MR",version:"Release 10.4"},"ff-latn-ne":{language:"Fulah (Latin)",location:"Niger",id:4096,tag:"ff-Latn-NE",version:"Release 10.4"},"ff-ng":{language:"Fulah",location:"Nigeria",id:4096,tag:"ff-NG",version:"Release 10"},"ff-latn-ng":{language:"Fulah (Latin)",location:"Nigeria",id:4096,tag:"ff-Latn-NG",version:"Release 10.4"},"ff-latn-sn":{language:"Fulah",location:"Senegal",id:2151,tag:"ff-Latn-SN",version:"Release 8"},"ff-latn-sl":{language:"Fulah (Latin)",location:"Sierra Leone",id:4096,tag:"ff-Latn-SL",version:"Release 10.4"},gl:Jc,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:Qc,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:tf,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:ef,"de-at":{language:"German",location:"Austria",id:3079,tag:"de-AT",version:"Release A"},"de-be":{language:"German",location:"Belgium",id:4096,tag:"de-BE",version:"Release 10"},"de-de":{language:"German",location:"Germany",id:1031,tag:"de-DE",version:"Release A"},"de-it":{language:"German",location:"Italy",id:4096,tag:"de-IT",version:"Release 10.2"},"de-li":{language:"German",location:"Liechtenstein",id:5127,tag:"de-LI",version:"Release B"},"de-lu":{language:"German",location:"Luxembourg",id:4103,tag:"de-LU",version:"Release B"},"de-ch":{language:"German",location:"Switzerland",id:2055,tag:"de-CH",version:"Release A"},el:nf,"el-cy":{language:"Greek",location:"Cyprus",id:4096,tag:"el-CY",version:"Release 10"},"el-gr":{language:"Greek",location:"Greece",id:1032,tag:"el-GR",version:"Release A"},kl:rf,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:af,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:of,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:sf,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:uf,"ha-latn":{language:"Hausa (Latin)",location:null,id:31848,tag:"ha-Latn",version:"Windows 7"},"ha-latn-gh":{language:"Hausa (Latin)",location:"Ghana",id:4096,tag:"ha-Latn-GH",version:"Release 10"},"ha-latn-ne":{language:"Hausa (Latin)",location:"Niger",id:4096,tag:"ha-Latn-NE",version:"Release 10"},"ha-latn-ng":{language:"Hausa (Latin)",location:"Nigeria",id:1128,tag:"ha-Latn-NG",version:"Release V"},haw:lf,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:cf,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:ff,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:hf,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:df,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:gf,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:vf,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:pf,"ia-fr":{language:"Interlingua",location:"France",id:4096,tag:"ia-FR",version:"Release 10"},"ia-001":{language:"Interlingua",location:"World",id:4096,tag:"ia-001",version:"Release 10"},iu:yf,"iu-latn":{language:"Inuktitut (Latin)",location:null,id:31837,tag:"iu-Latn",version:"Windows 7"},"iu-latn-ca":{language:"Inuktitut (Latin)",location:"Canada",id:2141,tag:"iu-Latn-CA",version:"Release E2"},"iu-cans":{language:"Inuktitut (Syllabics)",location:null,id:30813,tag:"iu-Cans",version:"Windows 7"},"iu-cans-ca":{language:"Inuktitut (Syllabics)",location:"Canada",id:1117,tag:"iu-Cans-CA",version:"Release V"},ga:mf,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:_f,"it-it":{language:"Italian",location:"Italy",id:1040,tag:"it-IT",version:"Release A"},"it-sm":{language:"Italian",location:"San Marino",id:4096,tag:"it-SM",version:"Release 10"},"it-ch":{language:"Italian",location:"Switzerland",id:2064,tag:"it-CH",version:"Release A"},"it-va":{language:"Italian",location:"Vatican City",id:4096,tag:"it-VA",version:"Release 10.3"},ja:bf,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:wf,"jv-latn":{language:"Javanese",location:"Latin",id:4096,tag:"jv-Latn",version:"Release 8.1"},"jv-latn-id":{language:"Javanese",location:"Latin, Indonesia",id:4096,tag:"jv-Latn-ID",version:"Release 8.1"},dyo:xf,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:kf,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:Sf,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:Cf,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:Ef,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:Af,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:Mf,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:Rf,"ks-arab":{language:"Kashmiri",location:"Perso-Arabic",id:1120,tag:"ks-Arab",version:"Release 10"},"ks-arab-in":{language:"Kashmiri",location:"Perso-Arabic",id:4096,tag:"ks-Arab-IN",version:"Release 10"},kk:Tf,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:Of,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:Pf,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:Bf,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:Df,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:Nf,"sw-ke":{language:"Kiswahili",location:"Kenya",id:1089,tag:"sw-KE",version:"Release C"},"sw-tz":{language:"Kiswahili",location:"Tanzania",id:4096,tag:"sw-TZ",version:"Release 10"},"sw-ug":{language:"Kiswahili",location:"Uganda",id:4096,tag:"sw-UG",version:"Release 10"},kok:zf,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:Ff,"ko-kr":{language:"Korean",location:"Korea",id:1042,tag:"ko-KR",version:"Release A"},"ko-kp":{language:"Korean",location:"North Korea",id:4096,tag:"ko-KP",version:"Release 10.1"},khq:jf,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:If,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:Lf,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:Hf,"ky-kg":{language:"Kyrgyz",location:"Kyrgyzstan",id:1088,tag:"ky-KG",version:"Release D"},"ku-arab-ir":{language:"Kurdish",location:"Perso-Arabic, Iran",id:4096,tag:"ku-Arab-IR",version:"Release 10.1"},lkt:Uf,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:Gf,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:Vf,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Wf,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:qf,"ln-ao":{language:"Lingala",location:"Angola",id:4096,tag:"ln-AO",version:"Release 10"},"ln-cf":{language:"Lingala",location:"Central African Republic",id:4096,tag:"ln-CF",version:"Release 10"},"ln-cg":{language:"Lingala",location:"Congo",id:4096,tag:"ln-CG",version:"Release 10"},"ln-cd":{language:"Lingala",location:"Congo DRC",id:4096,tag:"ln-CD",version:"Release 10"},lt:Kf,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:Yf,"nds-de":{language:"Low German",location:"Germany",id:4096,tag:"nds-DE",version:"Release 10.2"},"nds-nl":{language:"Low German",location:"Netherlands",id:4096,tag:"nds-NL",version:"Release 10.2"},dsb:Xf,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:Zf,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:$f,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:Jf,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:Qf,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:th,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:eh,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:nh,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:rh,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:ih,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:ah,"ms-bn":{language:"Malay",location:"Brunei Darussalam",id:2110,tag:"ms-BN",version:"Release C"},"ms-my":{language:"Malay",location:"Malaysia",id:1086,tag:"ms-MY",version:"Release C"},ml:oh,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:sh,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:uh,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:lh,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:ch,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:fh,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:hh,"mas-ke":{language:"Masai",location:"Kenya",id:4096,tag:"mas-KE",version:"Release 10"},"mas-tz":{language:"Masai",location:"Tanzania",id:4096,tag:"mas-TZ",version:"Release 10"},"mzn-ir":{language:"Mazanderani",location:"Iran",id:4096,tag:"mzn-IR",version:"Release 10.1"},mer:dh,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:gh,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:vh,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:ph,"mn-cyrl":{language:"Mongolian (Cyrillic)",location:null,id:30800,tag:"mn-Cyrl",version:"Windows 7"},"mn-mn":{language:"Mongolian (Cyrillic)",location:"Mongolia",id:1104,tag:"mn-MN",version:"Release D"},"mn-mong":{language:"Mongolian (Traditional Mongolian)",location:null,id:31824,tag:"mn-Mong",version:"Windows 7"},"mn-mong-cn":{language:"Mongolian (Traditional Mongolian)",location:"People's Republic of China",id:2128,tag:"mn-Mong-CN",version:"Windows V"},"mn-mong-mn":{language:"Mongolian (Traditional Mongolian)",location:"Mongolia",id:3152,tag:"mn-Mong-MN",version:"Windows 7"},mfe:yh,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:mh,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:_h,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:bh,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:wh,"ne-in":{language:"Nepali",location:"India",id:2145,tag:"ne-IN",version:"Release 8.1"},"ne-np":{language:"Nepali",location:"Nepal",id:1121,tag:"ne-NP",version:"Release E2"},nnh:xh,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:kh,"jgo-cm":{language:"Ngomba",location:"Cameroon",id:4096,tag:"jgo-CM",version:"Release 10"},"lrc-iq":{language:"Northern Luri",location:"Iraq",id:4096,tag:"lrc-IQ",version:"Release 10.1"},"lrc-ir":{language:"Northern Luri",location:"Iran",id:4096,tag:"lrc-IR",version:"Release 10.1"},nd:Sh,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:Ch,nb:Eh,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:Ah,"nn-no":{language:"Norwegian (Nynorsk)",location:"Norway",id:2068,tag:"nn-NO",version:"Release A"},"nb-sj":{language:"Norwegian Bokmål",location:"Svalbard and Jan Mayen",id:4096,tag:"nb-SJ",version:"Release 10"},nus:Mh,"nus-sd":{language:"Nuer",location:"Sudan",id:4096,tag:"nus-SD",version:"Release 10"},"nus-ss":{language:"Nuer",location:"South Sudan",id:4096,tag:"nus-SS",version:"Release 10.1"},nyn:Rh,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:Th,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:Oh,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:Ph,"om-et":{language:"Oromo",location:"Ethiopia",id:1138,tag:"om-ET",version:"Release 8.1"},"om-ke":{language:"Oromo",location:"Kenya",id:4096,tag:"om-KE",version:"Release 10"},os:Bh,"os-ge":{language:"Ossetian",location:"Cyrillic, Georgia",id:4096,tag:"os-GE",version:"Release 10"},"os-ru":{language:"Ossetian",location:"Cyrillic, Russia",id:4096,tag:"os-RU",version:"Release 10"},ps:Dh,"ps-af":{language:"Pashto",location:"Afghanistan",id:1123,tag:"ps-AF",version:"Release E2"},"ps-pk":{language:"Pashto",location:"Pakistan",id:4096,tag:"ps-PK",version:"Release 10.5"},fa:Nh,"fa-af":{language:"Persian",location:"Afghanistan",id:4096,tag:"fa-AF",version:"Release 10"},"fa-ir":{language:"Persian",location:"Iran",id:1065,tag:"fa-IR",version:"Release B"},pl:zh,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:Fh,"pt-ao":{language:"Portuguese",location:"Angola",id:4096,tag:"pt-AO",version:"Release 8.1"},"pt-br":{language:"Portuguese",location:"Brazil",id:1046,tag:"pt-BR",version:"Release A"},"pt-cv":{language:"Portuguese",location:"Cabo Verde",id:4096,tag:"pt-CV",version:"Release 10"},"pt-gq":{language:"Portuguese",location:"Equatorial Guinea",id:4096,tag:"pt-GQ",version:"Release 10.2"},"pt-gw":{language:"Portuguese",location:"Guinea-Bissau",id:4096,tag:"pt-GW",version:"Release 10"},"pt-lu":{language:"Portuguese",location:"Luxembourg",id:4096,tag:"pt-LU",version:"Release 10.2"},"pt-mo":{language:"Portuguese",location:"Macao SAR",id:4096,tag:"pt-MO",version:"Release 10"},"pt-mz":{language:"Portuguese",location:"Mozambique",id:4096,tag:"pt-MZ",version:"Release 10"},"pt-pt":{language:"Portuguese",location:"Portugal",id:2070,tag:"pt-PT",version:"Release A"},"pt-st":{language:"Portuguese",location:"São Tomé and Príncipe",id:4096,tag:"pt-ST",version:"Release 10"},"pt-ch":{language:"Portuguese",location:"Switzerland",id:4096,tag:"pt-CH",version:"Release 10.2"},"pt-tl":{language:"Portuguese",location:"Timor-Leste",id:4096,tag:"pt-TL",version:"Release 10"},"prg-001":{language:"Prussian",location:null,id:4096,tag:"prg-001",version:"Release 10.1"},"qps-ploca":{language:"Pseudo Language",location:"Pseudo locale for east Asian/complex script localization testing",id:1534,tag:"qps-ploca",version:"Release 7"},"qps-ploc":{language:"Pseudo Language",location:"Pseudo locale used for localization testing",id:1281,tag:"qps-ploc",version:"Release 7"},"qps-plocm":{language:"Pseudo Language",location:"Pseudo locale used for localization testing of mirrored locales",id:2559,tag:"qps-plocm",version:"Release 7"},pa:jh,"pa-arab":{language:"Punjabi",location:null,id:31814,tag:"pa-Arab",version:"Release 8"},"pa-in":{language:"Punjabi",location:"India",id:1094,tag:"pa-IN",version:"Release D"},"pa-arab-pk":{language:"Punjabi",location:"Islamic Republic of Pakistan",id:2118,tag:"pa-Arab-PK",version:"Release 8"},quz:Ih,"quz-bo":{language:"Quechua",location:"Bolivia",id:1131,tag:"quz-BO",version:"Release E1"},"quz-ec":{language:"Quechua",location:"Ecuador",id:2155,tag:"quz-EC",version:"Release E1"},"quz-pe":{language:"Quechua",location:"Peru",id:3179,tag:"quz-PE",version:"Release E1"},ksh:Lh,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:Hh,"ro-md":{language:"Romanian",location:"Moldova",id:2072,tag:"ro-MD",version:"Release 8.1"},"ro-ro":{language:"Romanian",location:"Romania",id:1048,tag:"ro-RO",version:"Release A"},rm:Uh,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:Gh,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:Vh,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:Wh,"ru-by":{language:"Russian",location:"Belarus",id:4096,tag:"ru-BY",version:"Release 10"},"ru-kz":{language:"Russian",location:"Kazakhstan",id:4096,tag:"ru-KZ",version:"Release 10"},"ru-kg":{language:"Russian",location:"Kyrgyzstan",id:4096,tag:"ru-KG",version:"Release 10"},"ru-md":{language:"Russian",location:"Moldova",id:2073,tag:"ru-MD",version:"Release 10"},"ru-ru":{language:"Russian",location:"Russia",id:1049,tag:"ru-RU",version:"Release A"},"ru-ua":{language:"Russian",location:"Ukraine",id:4096,tag:"ru-UA",version:"Release 10"},rwk:qh,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:Kh,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:Yh,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:Xh,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:Zh,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:$h,"smj-no":{language:"Sami (Lule)",location:"Norway",id:4155,tag:"smj-NO",version:"Release E1"},"smj-se":{language:"Sami (Lule)",location:"Sweden",id:5179,tag:"smj-SE",version:"Release E1"},se:Jh,"se-fi":{language:"Sami (Northern)",location:"Finland",id:3131,tag:"se-FI",version:"Release E1"},"se-no":{language:"Sami (Northern)",location:"Norway",id:1083,tag:"se-NO",version:"Release E1"},"se-se":{language:"Sami (Northern)",location:"Sweden",id:2107,tag:"se-SE",version:"Release E1"},sms:Qh,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:td,"sma-no":{language:"Sami (Southern)",location:"Norway",id:6203,tag:"sma-NO",version:"Release E1"},"sma-se":{language:"Sami (Southern)",location:"Sweden",id:7227,tag:"sma-SE",version:"Release E1"},sg:ed,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:nd,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:rd,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:id,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:ad,"seh-mz":{language:"Sena",location:"Mozambique",id:4096,tag:"seh-MZ",version:"Release 10"},"sr-cyrl":{language:"Serbian (Cyrillic)",location:null,id:27674,tag:"sr-Cyrl",version:"Windows 7"},"sr-cyrl-ba":{language:"Serbian (Cyrillic)",location:"Bosnia and Herzegovina",id:7194,tag:"sr-Cyrl-BA",version:"Release E1"},"sr-cyrl-me":{language:"Serbian (Cyrillic)",location:"Montenegro",id:12314,tag:"sr-Cyrl-ME",version:"Release 7"},"sr-cyrl-rs":{language:"Serbian (Cyrillic)",location:"Serbia",id:10266,tag:"sr-Cyrl-RS",version:"Release 7"},"sr-cyrl-cs":{language:"Serbian (Cyrillic)",location:"Serbia and Montenegro (Former)",id:3098,tag:"sr-Cyrl-CS",version:"Release B"},"sr-latn":{language:"Serbian (Latin)",location:null,id:28698,tag:"sr-Latn",version:"Windows 7"},sr:od,"sr-latn-ba":{language:"Serbian (Latin)",location:"Bosnia and Herzegovina",id:6170,tag:"sr-Latn-BA",version:"Release E1"},"sr-latn-me":{language:"Serbian (Latin)",location:"Montenegro",id:11290,tag:"sr-Latn-ME",version:"Release 7"},"sr-latn-rs":{language:"Serbian (Latin)",location:"Serbia",id:9242,tag:"sr-Latn-RS",version:"Release 7"},"sr-latn-cs":{language:"Serbian (Latin)",location:"Serbia and Montenegro (Former)",id:2074,tag:"sr-Latn-CS",version:"Release B"},nso:sd,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:ud,"tn-bw":{language:"Setswana",location:"Botswana",id:2098,tag:"tn-BW",version:"Release 8"},"tn-za":{language:"Setswana",location:"South Africa",id:1074,tag:"tn-ZA",version:"Release E1"},ksb:ld,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:cd,"sn-latn":{language:"Shona",location:"Latin",id:4096,tag:"sn-Latn",version:"Release 8.1"},"sn-latn-zw":{language:"Shona",location:"Zimbabwe",id:4096,tag:"sn-Latn-ZW",version:"Release 8.1"},sd:fd,"sd-arab":{language:"Sindhi",location:null,id:31833,tag:"sd-Arab",version:"Release 8"},"sd-arab-pk":{language:"Sindhi",location:"Islamic Republic of Pakistan",id:2137,tag:"sd-Arab-PK",version:"Release 8"},si:hd,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:dd,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:gd,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:vd,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:pd,"so-dj":{language:"Somali",location:"Djibouti",id:4096,tag:"so-DJ",version:"Release 10"},"so-et":{language:"Somali",location:"Ethiopia",id:4096,tag:"so-ET",version:"Release 10"},"so-ke":{language:"Somali",location:"Kenya",id:4096,tag:"so-KE",version:"Release 10"},"so-so":{language:"Somali",location:"Somalia",id:1143,tag:"so-SO",version:"Release 8.1"},st:yd,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:md,"nr-za":{language:"South Ndebele",location:"South Africa",id:4096,tag:"nr-ZA",version:"Release 10"},"st-ls":{language:"Southern Sotho",location:"Lesotho",id:4096,tag:"st-LS",version:"Release 10"},es:_d,"es-ar":{language:"Spanish",location:"Argentina",id:11274,tag:"es-AR",version:"Release B"},"es-bz":{language:"Spanish",location:"Belize",id:4096,tag:"es-BZ",version:"Release 10.3"},"es-ve":{language:"Spanish",location:"Bolivarian Republic of Venezuela",id:8202,tag:"es-VE",version:"Release B"},"es-bo":{language:"Spanish",location:"Bolivia",id:16394,tag:"es-BO",version:"Release B"},"es-br":{language:"Spanish",location:"Brazil",id:4096,tag:"es-BR",version:"Release 10.2"},"es-cl":{language:"Spanish",location:"Chile",id:13322,tag:"es-CL",version:"Release B"},"es-co":{language:"Spanish",location:"Colombia",id:9226,tag:"es-CO",version:"Release B"},"es-cr":{language:"Spanish",location:"Costa Rica",id:5130,tag:"es-CR",version:"Release B"},"es-cu":{language:"Spanish",location:"Cuba",id:23562,tag:"es-CU",version:"Release 10"},"es-do":{language:"Spanish",location:"Dominican Republic",id:7178,tag:"es-DO",version:"Release B"},"es-ec":{language:"Spanish",location:"Ecuador",id:12298,tag:"es-EC",version:"Release B"},"es-sv":{language:"Spanish",location:"El Salvador",id:17418,tag:"es-SV",version:"Release B"},"es-gq":{language:"Spanish",location:"Equatorial Guinea",id:4096,tag:"es-GQ",version:"Release 10"},"es-gt":{language:"Spanish",location:"Guatemala",id:4106,tag:"es-GT",version:"Release B"},"es-hn":{language:"Spanish",location:"Honduras",id:18442,tag:"es-HN",version:"Release B"},"es-419":{language:"Spanish",location:"Latin America",id:22538,tag:"es-419",version:"Release 8.1"},"es-mx":{language:"Spanish",location:"Mexico",id:2058,tag:"es-MX",version:"Release A"},"es-ni":{language:"Spanish",location:"Nicaragua",id:19466,tag:"es-NI",version:"Release B"},"es-pa":{language:"Spanish",location:"Panama",id:6154,tag:"es-PA",version:"Release B"},"es-py":{language:"Spanish",location:"Paraguay",id:15370,tag:"es-PY",version:"Release B"},"es-pe":{language:"Spanish",location:"Peru",id:10250,tag:"es-PE",version:"Release B"},"es-ph":{language:"Spanish",location:"Philippines",id:4096,tag:"es-PH",version:"Release 10"},"es-pr":{language:"Spanish",location:"Puerto Rico",id:20490,tag:"es-PR",version:"Release B"},"es-es_tradnl":{language:"Spanish",location:"Spain",id:1034,tag:"es-ES_tradnl",version:"Release A"},"es-es":{language:"Spanish",location:"Spain",id:3082,tag:"es-ES",version:"Release A"},"es-us":{language:"Spanish",location:"UnitedStates",id:21514,tag:"es-US",version:"Release V"},"es-uy":{language:"Spanish",location:"Uruguay",id:14346,tag:"es-UY",version:"Release B"},zgh:bd,"zgh-tfng-ma":{language:"Standard Moroccan Tamazight",location:"Morocco",id:4096,tag:"zgh-Tfng-MA",version:"Release 8.1"},"zgh-tfng":{language:"Standard Moroccan Tamazight",location:"Tifinagh",id:4096,tag:"zgh-Tfng",version:"Release 8.1"},ss:wd,"ss-za":{language:"Swati",location:"South Africa",id:4096,tag:"ss-ZA",version:"Release 10"},"ss-sz":{language:"Swati",location:"Swaziland",id:4096,tag:"ss-SZ",version:"Release 10"},sv:xd,"sv-ax":{language:"Swedish",location:"Åland Islands",id:4096,tag:"sv-AX",version:"Release 10"},"sv-fi":{language:"Swedish",location:"Finland",id:2077,tag:"sv-FI",version:"Release B"},"sv-se":{language:"Swedish",location:"Sweden",id:1053,tag:"sv-SE",version:"Release A"},syr:kd,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:Sd,"shi-tfng":{language:"Tachelhit",location:"Tifinagh",id:4096,tag:"shi-Tfng",version:"Release 10"},"shi-tfng-ma":{language:"Tachelhit",location:"Tifinagh, Morocco",id:4096,tag:"shi-Tfng-MA",version:"Release 10"},"shi-latn":{language:"Tachelhit (Latin)",location:null,id:4096,tag:"shi-Latn",version:"Release 10"},"shi-latn-ma":{language:"Tachelhit (Latin)",location:"Morocco",id:4096,tag:"shi-Latn-MA",version:"Release 10"},dav:Cd,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:Ed,"tg-cyrl":{language:"Tajik (Cyrillic)",location:null,id:31784,tag:"tg-Cyrl",version:"Windows 7"},"tg-cyrl-tj":{language:"Tajik (Cyrillic)",location:"Tajikistan",id:1064,tag:"tg-Cyrl-TJ",version:"Release V"},tzm:Ad,"tzm-latn":{language:"Tamazight (Latin)",location:null,id:31839,tag:"tzm-Latn",version:"Windows 7"},"tzm-latn-dz":{language:"Tamazight (Latin)",location:"Algeria",id:2143,tag:"tzm-Latn-DZ",version:"Release V"},ta:Md,"ta-in":{language:"Tamil",location:"India",id:1097,tag:"ta-IN",version:"Release C"},"ta-my":{language:"Tamil",location:"Malaysia",id:4096,tag:"ta-MY",version:"Release 10"},"ta-sg":{language:"Tamil",location:"Singapore",id:4096,tag:"ta-SG",version:"Release 10"},"ta-lk":{language:"Tamil",location:"Sri Lanka",id:2121,tag:"ta-LK",version:"Release 8"},twq:Rd,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:Td,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:Od,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:Pd,"teo-ke":{language:"Teso",location:"Kenya",id:4096,tag:"teo-KE",version:"Release 10"},"teo-ug":{language:"Teso",location:"Uganda",id:4096,tag:"teo-UG",version:"Release 10"},th:Bd,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:Dd,"bo-in":{language:"Tibetan",location:"India",id:4096,tag:"bo-IN",version:"Release 10"},"bo-cn":{language:"Tibetan",location:"People's Republic of China",id:1105,tag:"bo-CN",version:"Release V"},tig:Nd,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:zd,"ti-er":{language:"Tigrinya",location:"Eritrea",id:2163,tag:"ti-ER",version:"Release 8"},"ti-et":{language:"Tigrinya",location:"Ethiopia",id:1139,tag:"ti-ET",version:"Release 8"},to:Fd,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:jd,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:Id,"tr-cy":{language:"Turkish",location:"Cyprus",id:4096,tag:"tr-CY",version:"Release 10"},"tr-tr":{language:"Turkish",location:"Turkey",id:1055,tag:"tr-TR",version:"Release A"},tk:Ld,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:Hd,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:Ud,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:Gd,"ur-in":{language:"Urdu",location:"India",id:2080,tag:"ur-IN",version:"Release 8.1"},"ur-pk":{language:"Urdu",location:"Islamic Republic of Pakistan",id:1056,tag:"ur-PK",version:"Release C"},ug:Vd,"ug-cn":{language:"Uyghur",location:"People's Republic of China",id:1152,tag:"ug-CN",version:"Release V"},"uz-arab":{language:"Uzbek",location:"Perso-Arabic",id:4096,tag:"uz-Arab",version:"Release 10"},"uz-arab-af":{language:"Uzbek",location:"Perso-Arabic, Afghanistan",id:4096,tag:"uz-Arab-AF",version:"Release 10"},"uz-cyrl":{language:"Uzbek (Cyrillic)",location:null,id:30787,tag:"uz-Cyrl",version:"Windows 7"},"uz-cyrl-uz":{language:"Uzbek (Cyrillic)",location:"Uzbekistan",id:2115,tag:"uz-Cyrl-UZ",version:"Release C"},uz:Wd,"uz-latn":{language:"Uzbek (Latin)",location:null,id:31811,tag:"uz-Latn",version:"Windows7"},"uz-latn-uz":{language:"Uzbek (Latin)",location:"Uzbekistan",id:1091,tag:"uz-Latn-UZ",version:"Release C"},vai:qd,"vai-vaii":{language:"Vai",location:null,id:4096,tag:"vai-Vaii",version:"Release 10"},"vai-vaii-lr":{language:"Vai",location:"Liberia",id:4096,tag:"vai-Vaii-LR",version:"Release 10"},"vai-latn-lr":{language:"Vai (Latin)",location:"Liberia",id:4096,tag:"vai-Latn-LR",version:"Release 10"},"vai-latn":{language:"Vai (Latin)",location:null,id:4096,tag:"vai-Latn",version:"Release 10"},"ca-es-":{language:"Valencian",location:"Spain",id:2051,tag:"ca-ES-",version:"Release 8"},ve:Kd,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:Yd,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:Xd,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:Zd,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:$d,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:Jd,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:Qd,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:tg,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:eg,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:ng,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:rg,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:ig,"yo-bj":{language:"Yoruba",location:"Benin",id:4096,tag:"yo-BJ",version:"Release 10"},"yo-ng":{language:"Yoruba",location:"Nigeria",id:1130,tag:"yo-NG",version:"Release V"},dje:ag,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:og,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var ug={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var lg={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var cg={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var fg={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var hg={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var dg={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var gg={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var vg={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var pg={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var yg={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var mg={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var _g={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var bg={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var wg={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var xg={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var kg={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Sg={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var Cg={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var Eg={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var Ag={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var Mg={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var Rg={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var Tg={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var Og={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Pg={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Bg={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var Dg={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Ng={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var zg={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var Fg={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var jg={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var Ig={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var Lg={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var Hg={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Ug={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var Gg={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var Vg={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var Wg={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var qg={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var Kg={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var Yg={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Xg={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Zg={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var $g={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var Jg={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var Qg={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var tv={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var ev={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var nv={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var rv={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var iv={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var av={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var ov={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var sv={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var uv={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var lv={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var cv={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var fv={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var hv={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var dv={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var gv={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var vv={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var pv={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var yv={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var mv={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var _v={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var bv={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var wv={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var xv={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var kv={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Sv={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var Cv={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var Ev={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Av={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var Mv={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var Rv={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var Tv={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Ov={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var Pv={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var Bv={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var Dv={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var Nv={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var zv={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var Fv={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var jv={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var Iv={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var Lv={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var Hv={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var Uv={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var Gv={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var Vv={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Wv={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var qv={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Kv={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var Yv={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Xv={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var Zv={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var $v={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var Jv={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Qv={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var tp={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var ep={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var np={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var rp={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var ip={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var ap={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var op={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var sp={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var up={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var lp={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var cp={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var fp={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var hp={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var dp={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var gp={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var vp={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var pp={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var yp={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var mp={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var _p={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var bp={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var wp={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var xp={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var kp={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var Sp={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var Cp={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var Ep={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var Ap={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var Mp={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var Rp={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var Tp={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var Op={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Pp={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var Bp={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var Dp={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var Np={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var zp={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var Fp={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var jp={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var Ip={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var Lp={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var Hp={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var Up={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var Gp={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var Vp={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var Wp={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var qp={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var Kp={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var Yp={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var Xp={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var Zp={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var $p={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var Jp={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var Qp={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var t0={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var e0={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var n0={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var r0={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var i0={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var a0={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var o0={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var s0={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var u0={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var l0={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var c0={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var f0={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var h0={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var d0={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var g0={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var v0={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var p0={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var y0={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var m0={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var _0={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var b0={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var w0={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var x0={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var k0={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var S0={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var C0={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var E0={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var A0={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var M0={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var R0={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var T0={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var O0={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var P0={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var B0={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var D0={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var N0={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var z0={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var F0={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var j0={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var I0={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var L0={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var H0={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var U0={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var G0={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var V0={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var W0={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var q0={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var K0={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var Y0={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var X0={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var Z0={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var $0={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var J0={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var Q0={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var t1={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var e1={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var n1={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var r1={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var i1={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var a1={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var o1={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var s1={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var u1={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var l1={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var c1={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var f1={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var h1={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var d1={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var g1={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var v1={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var p1={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var y1={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var m1={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var _1={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var b1={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var w1={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var x1={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var k1={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var S1={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var C1={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var E1={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var A1={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var M1={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var R1={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var T1={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var O1={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var P1={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var B1={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var D1={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var N1={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var z1={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var F1={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var j1={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var I1={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var L1={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var H1={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var U1={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var G1={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var V1={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var W1={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var q1={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var K1={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var Y1={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var X1={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var Z1={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var $1={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var J1={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var Q1={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var ty={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var ey={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var ny={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var ry={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var iy={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var ay={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var oy={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var sy={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var uy={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var ly={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var cy={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var fy={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var hy={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var dy={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var gy={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var vy={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var py={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var yy={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var my={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var _y={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var by={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var wy={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var xy={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var ky={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var Sy={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var Cy={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var Ey={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var Ay={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var My={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var Ry={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Ty={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Oy={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var Py={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var By={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Dy={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var Ny={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var zy={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var Fy={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var jy={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Iy={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var Ly={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var Hy={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var Uy={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var Gy={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var Vy={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var Wy={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var qy={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var Ky={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var Yy={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Xy={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var Zy={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var $y={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var Jy={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var Qy={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var tm={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var em={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var nm={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var rm={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var im={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var am={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var om={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var sm={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var um={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var lm={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var cm={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var fm={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var hm={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var dm={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var gm={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var vm={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var pm={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var ym={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var mm={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var _m={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var bm={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var wm={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var xm={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var km={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var Sm={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var Cm={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var Em={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var Am={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var Mm={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var Rm={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var Tm={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var Om={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var Pm={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var Bm={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var Dm={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var Nm={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var zm={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var Fm={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var jm={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var Im={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var Lm={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var Hm={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var Um={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var Gm={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var Vm={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var Wm={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var qm={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var Km={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var Ym={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var Xm={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var Zm={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var $m={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var Jm={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var Qm={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var t_={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var e_={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var n_={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var r_={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var i_={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var a_={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var o_={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var s_={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var u_={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var l_={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var c_={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var f_={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var h_={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var d_={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var g_={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var v_={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var p_={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var y_={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var m_={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var __={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var b_={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var w_={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var x_={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var k_={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var S_={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var C_={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var E_={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var A_={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var M_={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var R_={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var T_={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var O_={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var P_={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var B_={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var D_={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var N_={Abkhazian:ug,Achinese:lg,Acoli:cg,Adangme:fg,Adygei:hg,Adyghe:dg,Afar:gg,Afrihili:vg,Afrikaans:pg,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:yg,Akan:mg,Akkadian:_g,Albanian:bg,Alemannic:wg,Aleut:xg,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:kg,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:Sg,Angika:Cg,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:Eg,Aragonese:Ag,Arapaho:Mg,Arawak:Rg,Armenian:Tg,Aromanian:Og,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:Pg,Assamese:Bg,Asturian:Dg,Asturleonese:Ng,"Athapascan languages":{name:"Athapascan languages",names:["Athapascan languages"],"iso639-2":"ath","iso639-1":null},"Australian languages":{name:"Australian languages",names:["Australian languages"],"iso639-2":"aus","iso639-1":null},"Austronesian languages":{name:"Austronesian languages",names:["Austronesian languages"],"iso639-2":"map","iso639-1":null},Avaric:zg,Avestan:Fg,Awadhi:jg,Aymara:Ig,Azerbaijani:Lg,Bable:Hg,Balinese:Ug,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:Gg,Bambara:Vg,"Bamileke languages":{name:"Bamileke languages",names:["Bamileke languages"],"iso639-2":"bai","iso639-1":null},"Banda languages":{name:"Banda languages",names:["Banda languages"],"iso639-2":"bad","iso639-1":null},"Bantu languages":{name:"Bantu languages",names:["Bantu languages"],"iso639-2":"bnt","iso639-1":null},Basa:Wg,Bashkir:qg,Basque:Kg,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:Yg,Beja:Xg,Belarusian:Zg,Bemba:$g,Bengali:Jg,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:Qg,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:tv,Bilin:ev,Bini:nv,Bislama:rv,Blin:iv,Bliss:av,Blissymbolics:ov,Blissymbols:sv,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:uv,Braj:lv,Breton:cv,Buginese:fv,Bulgarian:hv,Buriat:dv,Burmese:gv,Caddo:vv,Castilian:pv,Catalan:yv,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:mv,"Celtic languages":{name:"Celtic languages",names:["Celtic languages"],"iso639-2":"cel","iso639-1":null},"Central American Indian languages":{name:"Central American Indian languages",names:["Central American Indian languages"],"iso639-2":"cai","iso639-1":null},"Central Khmer":{name:"Central Khmer",names:["Central Khmer"],"iso639-2":"khm","iso639-1":"km"},Chagatai:_v,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:bv,Chechen:wv,Cherokee:xv,Chewa:kv,Cheyenne:Sv,Chibcha:Cv,Chichewa:Ev,Chinese:Av,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:Mv,Choctaw:Rv,Chuang:Tv,"Church Slavic":{name:"Church Slavic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Church Slavonic":{name:"Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Chuukese:Ov,Chuvash:Pv,"Classical Nepal Bhasa":{name:"Classical Nepal Bhasa",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Newari":{name:"Classical Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Syriac":{name:"Classical Syriac",names:["Classical Syriac"],"iso639-2":"syc","iso639-1":null},"Cook Islands Maori":{name:"Cook Islands Maori",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null},Coptic:Bv,Cornish:Dv,Corsican:Nv,Cree:zv,Creek:Fv,"Creoles and pidgins":{name:"Creoles and pidgins",names:["Creoles and pidgins"],"iso639-2":"crp","iso639-1":null},"Creoles and pidgins, English based":{name:"Creoles and pidgins, English based",names:["Creoles and pidgins, English based"],"iso639-2":"cpe","iso639-1":null},"Creoles and pidgins, French-based":{name:"Creoles and pidgins, French-based",names:["Creoles and pidgins, French-based"],"iso639-2":"cpf","iso639-1":null},"Creoles and pidgins, Portuguese-based":{name:"Creoles and pidgins, Portuguese-based",names:["Creoles and pidgins, Portuguese-based"],"iso639-2":"cpp","iso639-1":null},"Crimean Tatar":{name:"Crimean Tatar",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},"Crimean Turkish":{name:"Crimean Turkish",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},Croatian:jv,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:Iv,Dakota:Lv,Danish:Hv,Dargwa:Uv,Delaware:Gv,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:Vv,Dimili:Wv,Dimli:qv,Dinka:Kv,Divehi:Yv,Dogri:Xv,Dogrib:Zv,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:$v,Dutch:Jv,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:Qv,Dzongkha:tp,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:ep,Efik:np,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:rp,Elamite:ip,English:ap,"English, Middle (1100-1500)":{name:"English, Middle (1100-1500)",names:["English, Middle (1100-1500)"],"iso639-2":"enm","iso639-1":null},"English, Old (ca.450-1100)":{name:"English, Old (ca.450-1100)",names:["English, Old (ca.450-1100)"],"iso639-2":"ang","iso639-1":null},Erzya:op,Esperanto:sp,Estonian:up,Ewe:lp,Ewondo:cp,Fang:fp,Fanti:hp,Faroese:dp,Fijian:gp,Filipino:vp,Finnish:pp,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:yp,Fon:mp,French:_p,"French, Middle (ca.1400-1600)":{name:"French, Middle (ca.1400-1600)",names:["French, Middle (ca.1400-1600)"],"iso639-2":"frm","iso639-1":null},"French, Old (842-ca.1400)":{name:"French, Old (842-ca.1400)",names:["French, Old (842-ca.1400)"],"iso639-2":"fro","iso639-1":null},Friulian:bp,Fulah:wp,Ga:xp,Gaelic:kp,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:Sp,Ganda:Cp,Gayo:Ep,Gbaya:Ap,Geez:Mp,Georgian:Rp,German:Tp,"German, Low":{name:"German, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"German, Middle High (ca.1050-1500)":{name:"German, Middle High (ca.1050-1500)",names:["German, Middle High (ca.1050-1500)"],"iso639-2":"gmh","iso639-1":null},"German, Old High (ca.750-1050)":{name:"German, Old High (ca.750-1050)",names:["German, Old High (ca.750-1050)"],"iso639-2":"goh","iso639-1":null},"Germanic languages":{name:"Germanic languages",names:["Germanic languages"],"iso639-2":"gem","iso639-1":null},Gikuyu:Op,Gilbertese:Pp,Gondi:Bp,Gorontalo:Dp,Gothic:Np,Grebo:zp,"Greek, Ancient (to 1453)":{name:"Greek, Ancient (to 1453)",names:["Greek, Ancient (to 1453)"],"iso639-2":"grc","iso639-1":null},"Greek, Modern (1453-)":{name:"Greek, Modern (1453-)",names:["Greek, Modern (1453-)"],"iso639-2":"gre/ell","iso639-1":"el"},Greenlandic:Fp,Guarani:jp,Gujarati:Ip,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:Lp,Haitian:Hp,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:Up,Hawaiian:Gp,Hebrew:Vp,Herero:Wp,Hiligaynon:qp,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:Kp,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:Yp,Hmong:Xp,Hungarian:Zp,Hupa:$p,Iban:Jp,Icelandic:Qp,Ido:t0,Igbo:e0,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:n0,"Imperial Aramaic (700-300 BCE)":{name:"Imperial Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},"Inari Sami":{name:"Inari Sami",names:["Inari Sami"],"iso639-2":"smn","iso639-1":null},"Indic languages":{name:"Indic languages",names:["Indic languages"],"iso639-2":"inc","iso639-1":null},"Indo-European languages":{name:"Indo-European languages",names:["Indo-European languages"],"iso639-2":"ine","iso639-1":null},Indonesian:r0,Ingush:i0,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:a0,Inuktitut:o0,Inupiaq:s0,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:u0,"Irish, Middle (900-1200)":{name:"Irish, Middle (900-1200)",names:["Irish, Middle (900-1200)"],"iso639-2":"mga","iso639-1":null},"Irish, Old (to 900)":{name:"Irish, Old (to 900)",names:["Irish, Old (to 900)"],"iso639-2":"sga","iso639-1":null},"Iroquoian languages":{name:"Iroquoian languages",names:["Iroquoian languages"],"iso639-2":"iro","iso639-1":null},Italian:l0,Japanese:c0,Javanese:f0,Jingpho:h0,"Judeo-Arabic":{name:"Judeo-Arabic",names:["Judeo-Arabic"],"iso639-2":"jrb","iso639-1":null},"Judeo-Persian":{name:"Judeo-Persian",names:["Judeo-Persian"],"iso639-2":"jpr","iso639-1":null},Kabardian:d0,Kabyle:g0,Kachin:v0,Kalaallisut:p0,Kalmyk:y0,Kamba:m0,Kannada:_0,Kanuri:b0,Kapampangan:w0,"Kara-Kalpak":{name:"Kara-Kalpak",names:["Kara-Kalpak"],"iso639-2":"kaa","iso639-1":null},"Karachay-Balkar":{name:"Karachay-Balkar",names:["Karachay-Balkar"],"iso639-2":"krc","iso639-1":null},Karelian:x0,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:k0,Kashubian:S0,Kawi:C0,Kazakh:E0,Khasi:A0,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:M0,Kikuyu:R0,Kimbundu:T0,Kinyarwanda:O0,Kirdki:P0,Kirghiz:B0,Kirmanjki:D0,Klingon:N0,Komi:z0,Kongo:F0,Konkani:j0,Korean:I0,Kosraean:L0,Kpelle:H0,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:U0,Kumyk:G0,Kurdish:V0,Kurukh:W0,Kutenai:q0,Kwanyama:K0,Kyrgyz:Y0,Ladino:X0,Lahnda:Z0,Lamba:$0,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:J0,Latin:Q0,Latvian:t1,Leonese:e1,Letzeburgesch:n1,Lezghian:r1,Limburgan:i1,Limburger:a1,Limburgish:o1,Lingala:s1,Lithuanian:u1,Lojban:l1,"Low German":{name:"Low German",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Low Saxon":{name:"Low Saxon",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Lower Sorbian":{name:"Lower Sorbian",names:["Lower Sorbian"],"iso639-2":"dsb","iso639-1":null},Lozi:c1,"Luba-Katanga":{name:"Luba-Katanga",names:["Luba-Katanga"],"iso639-2":"lub","iso639-1":"lu"},"Luba-Lulua":{name:"Luba-Lulua",names:["Luba-Lulua"],"iso639-2":"lua","iso639-1":null},Luiseno:f1,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:h1,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:d1,Luxembourgish:g1,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:v1,Madurese:p1,Magahi:y1,Maithili:m1,Makasar:_1,Malagasy:b1,Malay:w1,Malayalam:x1,Maldivian:k1,Maltese:S1,Manchu:C1,Mandar:E1,Mandingo:A1,Manipuri:M1,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:R1,Maori:T1,Mapuche:O1,Mapudungun:P1,Marathi:B1,Mari:D1,Marshallese:N1,Marwari:z1,Masai:F1,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:j1,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:I1,Minangkabau:L1,Mirandese:H1,Mohawk:U1,Moksha:G1,Moldavian:V1,Moldovan:W1,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:q1,Mongo:K1,Mongolian:Y1,Montenegrin:X1,Mossi:Z1,"Multiple languages":{name:"Multiple languages",names:["Multiple languages"],"iso639-2":"mul","iso639-1":null},"Munda languages":{name:"Munda languages",names:["Munda languages"],"iso639-2":"mun","iso639-1":null},"N'Ko":{name:"N'Ko",names:["N'Ko"],"iso639-2":"nqo","iso639-1":null},"Nahuatl languages":{name:"Nahuatl languages",names:["Nahuatl languages"],"iso639-2":"nah","iso639-1":null},Nauru:$1,Navaho:J1,Navajo:Q1,"Ndebele, North":{name:"Ndebele, North",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Ndebele, South":{name:"Ndebele, South",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},Ndonga:ty,Neapolitan:ey,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:ny,Newari:ry,Nias:iy,"Niger-Kordofanian languages":{name:"Niger-Kordofanian languages",names:["Niger-Kordofanian languages"],"iso639-2":"nic","iso639-1":null},"Nilo-Saharan languages":{name:"Nilo-Saharan languages",names:["Nilo-Saharan languages"],"iso639-2":"ssa","iso639-1":null},Niuean:ay,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:oy,"Norse, Old":{name:"Norse, Old",names:["Norse, Old"],"iso639-2":"non","iso639-1":null},"North American Indian languages":{name:"North American Indian languages",names:["North American Indian languages"],"iso639-2":"nai","iso639-1":null},"North Ndebele":{name:"North Ndebele",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Northern Frisian":{name:"Northern Frisian",names:["Northern Frisian"],"iso639-2":"frr","iso639-1":null},"Northern Sami":{name:"Northern Sami",names:["Northern Sami"],"iso639-2":"sme","iso639-1":"se"},"Northern Sotho":{name:"Northern Sotho",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},Norwegian:sy,"Norwegian Bokmål":{name:"Norwegian Bokmål",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},"Norwegian Nynorsk":{name:"Norwegian Nynorsk",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},"Not applicable":{name:"Not applicable",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},"Nubian languages":{name:"Nubian languages",names:["Nubian languages"],"iso639-2":"nub","iso639-1":null},Nuosu:uy,Nyamwezi:ly,Nyanja:cy,Nyankole:fy,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:hy,Nzima:dy,Occidental:gy,"Occitan (post 1500)":{name:"Occitan (post 1500)",names:["Occitan (post 1500)"],"iso639-2":"oci","iso639-1":"oc"},"Occitan, Old (to 1500)":{name:"Occitan, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},"Official Aramaic (700-300 BCE)":{name:"Official Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},Oirat:vy,Ojibwa:py,"Old Bulgarian":{name:"Old Bulgarian",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Church Slavonic":{name:"Old Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Newari":{name:"Old Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Old Slavonic":{name:"Old Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Oriya:yy,Oromo:my,Osage:_y,Ossetian:by,Ossetic:wy,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:xy,Palauan:ky,Pali:Sy,Pampanga:Cy,Pangasinan:Ey,Panjabi:Ay,Papiamento:My,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:Ry,Pedi:Ty,Persian:Oy,"Persian, Old (ca.600-400 B.C.)":{name:"Persian, Old (ca.600-400 B.C.)",names:["Persian, Old (ca.600-400 B.C.)"],"iso639-2":"peo","iso639-1":null},"Philippine languages":{name:"Philippine languages",names:["Philippine languages"],"iso639-2":"phi","iso639-1":null},Phoenician:Py,Pilipino:By,Pohnpeian:Dy,Polish:Ny,Portuguese:zy,"Prakrit languages":{name:"Prakrit languages",names:["Prakrit languages"],"iso639-2":"pra","iso639-1":null},"Provençal, Old (to 1500)":{name:"Provençal, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},Punjabi:Fy,Pushto:jy,Quechua:Iy,Rajasthani:Ly,Rapanui:Hy,Rarotongan:Uy,"Reserved for local use":{name:"Reserved for local use",names:["Reserved for local use"],"iso639-2":"qaa-qtz","iso639-1":null},"Romance languages":{name:"Romance languages",names:["Romance languages"],"iso639-2":"roa","iso639-1":null},Romanian:Gy,Romansh:Vy,Romany:Wy,Rundi:qy,Russian:Ky,Sakan:Yy,"Salishan languages":{name:"Salishan languages",names:["Salishan languages"],"iso639-2":"sal","iso639-1":null},"Samaritan Aramaic":{name:"Samaritan Aramaic",names:["Samaritan Aramaic"],"iso639-2":"sam","iso639-1":null},"Sami languages":{name:"Sami languages",names:["Sami languages"],"iso639-2":"smi","iso639-1":null},Samoan:Xy,Sandawe:Zy,Sango:$y,Sanskrit:Jy,Santali:Qy,Sardinian:tm,Sasak:em,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:nm,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:rm,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:im,Serbian:am,Serer:om,Shan:sm,Shona:um,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:lm,Sidamo:cm,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:fm,Sindhi:hm,Sinhala:dm,Sinhalese:gm,"Sino-Tibetan languages":{name:"Sino-Tibetan languages",names:["Sino-Tibetan languages"],"iso639-2":"sit","iso639-1":null},"Siouan languages":{name:"Siouan languages",names:["Siouan languages"],"iso639-2":"sio","iso639-1":null},"Skolt Sami":{name:"Skolt Sami",names:["Skolt Sami"],"iso639-2":"sms","iso639-1":null},"Slave (Athapascan)":{name:"Slave (Athapascan)",names:["Slave (Athapascan)"],"iso639-2":"den","iso639-1":null},"Slavic languages":{name:"Slavic languages",names:["Slavic languages"],"iso639-2":"sla","iso639-1":null},Slovak:vm,Slovenian:pm,Sogdian:ym,Somali:mm,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:_m,"Sorbian languages":{name:"Sorbian languages",names:["Sorbian languages"],"iso639-2":"wen","iso639-1":null},"Sotho, Northern":{name:"Sotho, Northern",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},"Sotho, Southern":{name:"Sotho, Southern",names:["Sotho, Southern"],"iso639-2":"sot","iso639-1":"st"},"South American Indian languages":{name:"South American Indian languages",names:["South American Indian languages"],"iso639-2":"sai","iso639-1":null},"South Ndebele":{name:"South Ndebele",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},"Southern Altai":{name:"Southern Altai",names:["Southern Altai"],"iso639-2":"alt","iso639-1":null},"Southern Sami":{name:"Southern Sami",names:["Southern Sami"],"iso639-2":"sma","iso639-1":null},Spanish:bm,"Sranan Tongo":{name:"Sranan Tongo",names:["Sranan Tongo"],"iso639-2":"srn","iso639-1":null},"Standard Moroccan Tamazight":{name:"Standard Moroccan Tamazight",names:["Standard Moroccan Tamazight"],"iso639-2":"zgh","iso639-1":null},Sukuma:wm,Sumerian:xm,Sundanese:km,Susu:Sm,Swahili:Cm,Swati:Em,Swedish:Am,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:Mm,Tagalog:Rm,Tahitian:Tm,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:Om,Tamashek:Pm,Tamil:Bm,Tatar:Dm,Telugu:Nm,Tereno:zm,Tetum:Fm,Thai:jm,Tibetan:Im,Tigre:Lm,Tigrinya:Hm,Timne:Um,Tiv:Gm,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:Vm,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:Wm,"Tonga (Nyasa)":{name:"Tonga (Nyasa)",names:["Tonga (Nyasa)"],"iso639-2":"tog","iso639-1":null},"Tonga (Tonga Islands)":{name:"Tonga (Tonga Islands)",names:["Tonga (Tonga Islands)"],"iso639-2":"ton","iso639-1":"to"},Tsimshian:qm,Tsonga:Km,Tswana:Ym,Tumbuka:Xm,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:Zm,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:$m,Tuvalu:Jm,Tuvinian:Qm,Twi:t_,Udmurt:e_,Ugaritic:n_,Uighur:r_,Ukrainian:i_,Umbundu:a_,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:o_,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:s_,Uyghur:u_,Uzbek:l_,Vai:c_,Valencian:f_,Venda:h_,Vietnamese:d_,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:g_,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:v_,Waray:p_,Washo:y_,Welsh:m_,"Western Frisian":{name:"Western Frisian",names:["Western Frisian"],"iso639-2":"fry","iso639-1":"fy"},"Western Pahari languages":{name:"Western Pahari languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Wolaitta:__,Wolaytta:b_,Wolof:w_,Xhosa:x_,Yakut:k_,Yao:S_,Yapese:C_,Yiddish:E_,Yoruba:A_,"Yupik languages":{name:"Yupik languages",names:["Yupik languages"],"iso639-2":"ypk","iso639-1":null},"Zande languages":{name:"Zande languages",names:["Zande languages"],"iso639-2":"znd","iso639-1":null},Zapotec:M_,Zaza:R_,Zazaki:T_,Zenaga:O_,Zhuang:P_,Zulu:B_,Zuni:D_};function z_(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}var F_=[];var j_=Object.keys(N_);Object.keys(sg).map(function(t){var e=sg[t];var n=j_.find(function(t){return t.toLowerCase()===e.language.toLowerCase()});if(e.location&&n){var r;F_.push((r={},z_(r,"name",e.language),z_(r,"location",e.location),z_(r,"tag",e.tag),z_(r,"lcid",e.id),z_(r,"iso639-2",N_[n]["iso639-2"]),z_(r,"iso639-1",N_[n]["iso639-1"]),r))}});var I_={ar:"ar-SA",ca:"ca-ES",da:"da-DK",en:"en-US",ko:"ko-KR",pa:"pa-IN",pt:"pt-BR",sv:"sv-SE"};function L_(e){if(typeof e!=="string"||e.length===5)return e;if(I_[e])return I_[e];var t=F_.filter(function(t){return t["iso639-1"]===e});if(!t.length)return e;else if(t.length===1)return t[0].tag;else if(t.find(function(t){return t.tag==="".concat(e,"-").concat(e.toUpperCase())}))return"".concat(e,"-").concat(e.toUpperCase());else return t[0].tag}function H_(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function U_(){return"".concat(H_()).concat(H_(),"-").concat(H_(),"-").concat(H_(),"-").concat(H_(),"-").concat(H_()).concat(H_()).concat(H_())}var G_="D3PLUS-COMMON-RESET";var V_={and:"y",Back:"Atrás","Click to Expand":"Clic para Ampliar","Click to Hide":"Clic para Ocultar","Click to Highlight":"Clic para Resaltar","Click to Reset":"Clic para Restablecer",Download:"Descargar","Loading Visualization":"Cargando Visualización","No Data Available":"Datos No Disponibles","Powered by D3plus":"Funciona con D3plus",Share:"Porcentaje","Shift+Click to Hide":"Mayús+Clic para Ocultar",Total:"Total",Values:"Valores"};var W_={and:"e",Back:"Voltar","Click to Expand":"Aperte aqui para Expandir","Click to Hide":"Aperte aqui para Ocultar","Click to Highlight":"Aperte aqui para Destacar","Click to Reset":"Aperte aqui para Resetar",Download:"Baixar","Loading Visualization":"Carregando Visualização","No Data Available":"Dados Não Disponíveis","Powered by D3plus":"Funciona com D3plus",Share:"Porcentagem","Shift+Click to Hide":"Shift+Clique para Ocultar",Total:"Total",Values:"Valores"};var q_={"es-ES":V_,"pt-BR":W_};function K_(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Y_(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function X_(t,e,n){if(e)Y_(t.prototype,e);if(n)Y_(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function Z_(t,e){if(Vl(t)){for(var n in t){if({}.hasOwnProperty.call(t,n)&&!n.startsWith("_")){var r=e&&Vl(e)?e[n]:undefined;if(t[n]===G_){if(r)t[n]=r;else delete t[n]}else if(Vl(t[n])){Z_(t[n],r)}}}}}function $_(t){var e=[];do{e=e.concat(Object.getOwnPropertyNames(t));t=Object.getPrototypeOf(t)}while(t&&t!==Object.prototype);return e.filter(function(t){return t.indexOf("_")!==0&&!["config","constructor","parent","render"].includes(t)})}var J_=function(){function t(){var r=this;K_(this,t);this._locale="en-US";this._on={};this._parent={};this._translate=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:r._locale;var n=q_[e];return n&&n[t]?n[t]:t};this._uuid=U_()}X_(t,[{key:"config",value:function n(t){var r=this;if(!this._configDefault){var n={};$_(this.__proto__).forEach(function(t){var e=r[t]();if(e!==r)n[t]=Vl(e)?ql({},e):e});this._configDefault=n}if(arguments.length){for(var e in t){if({}.hasOwnProperty.call(t,e)&&e in this){var i=t[e];if(i===G_){if(e==="on")this._on=this._configDefault[e];else this[e](this._configDefault[e])}else{Z_(i,this._configDefault[e]);this[e](i)}}}return this}else{var a={};$_(this.__proto__).forEach(function(t){a[t]=r[t]()});return a}}},{key:"locale",value:function t(e){return arguments.length?(this._locale=L_(e),this):this._locale}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"parent",value:function t(e){return arguments.length?(this._parent=e,this):this._parent}},{key:"translate",value:function t(e){return arguments.length?(this._translate=e,this):this._translate}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=ql(this._shapeConfig,e),this):this._shapeConfig}}]);return t}();function Q_(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!t||!(t instanceof Array)||!t.length)return undefined;return t.reduce(function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t})}function tb(t){"@babel/helpers - typeof";return tb="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tb(t)}function eb(){var o=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var a=function t(a){return function(t,e,n,r){var i;while(t.__d3plus__){if(i)t.__d3plusParent__=i;i=t;e=t.i;t=t.data||t.feature}return a.bind(o)(t,e,n||i,r)}};var s=function t(e,n){for(var r in n){if({}.hasOwnProperty.call(n,r)&&!r.includes(".")||r.includes(".".concat(i))){e.on[r]=a(n[r])}}};var u=function e(t){return t.map(function(t){if(t instanceof Array)return e(t);else if(tb(t)==="object")return r({},t);else if(typeof t==="function")return a(t);else return t})};var r=function t(e,n){for(var r in n){if({}.hasOwnProperty.call(n,r)){if(r==="on")s(e,n[r]);else if(typeof n[r]==="function"){e[r]=a(n[r])}else if(n[r]instanceof Array){e[r]=u(n[r])}else if(tb(n[r])==="object"){if(!e[r])e[r]={};e[r].on={};t(e[r],n[r])}else e[r]=n[r]}}};r(n,t);if(this._on)s(n,this._on);if(e&&t[e]){r(n,t[e]);if(t[e].on)s(n,t[e].on)}return n}function nb(e){return function t(){return e}}function rb(t,e){e=Object.assign({},{condition:true,enter:{},exit:{},duration:0,parent:Is("body"),update:{}},e);var n=/\.([^#]+)/g.exec(t),r=/#([^\.]+)/g.exec(t),i=Nl().duration(e.duration),a=/^([^.^#]+)/g.exec(t)[1];var o=e.parent.selectAll(t.includes(":")?t.split(":")[1]:t).data(e.condition?[null]:[]);var s=o.enter().append(a).call(Kl,e.enter);if(r)s.attr("id",r[1]);if(n)s.attr("class",n[1]);o.exit().transition(i).call(Kl,e.exit).remove();var u=s.merge(o);u.transition(i).call(Kl,e.update);return u}function ib(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function ab(r){var a=r;var o=r;if(r.length===1){a=function t(e,n){return r(e)-n};o=ob(r)}function s(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)<0)n=i+1;else r=i}return n}function t(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)>0)r=i;else n=i+1}return n}function e(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;var i=s(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i}return{left:s,center:e,right:t}}function ob(n){return function(t,e){return ib(n(t),e)}}function sb(t){return t===null?NaN:+t}function ub(n,r){var i,a,o,s,u,l,c;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:if(!(r===undefined)){e.next=21;break}i=_createForOfIteratorHelper2(n);e.prev=2;i.s();case 4:if((a=i.n()).done){e.next=11;break}o=a.value;if(!(o!=null&&(o=+o)>=o)){e.next=9;break}e.next=9;return o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13;e.t0=e["catch"](2);i.e(e.t0);case 16:e.prev=16;i.f();return e.finish(16);case 19:e.next=40;break;case 21:s=-1;u=_createForOfIteratorHelper2(n);e.prev=23;u.s();case 25:if((l=u.n()).done){e.next=32;break}c=l.value;if(!((c=r(c,++s,n))!=null&&(c=+c)>=c)){e.next=30;break}e.next=30;return c;case 30:e.next=25;break;case 32:e.next=37;break;case 34:e.prev=34;e.t1=e["catch"](23);u.e(e.t1);case 37:e.prev=37;u.f();return e.finish(37);case 40:case"end":return e.stop()}}},f,null,[[2,13,16,19],[23,34,37,40]])}var lb=ab(ib);var cb=lb.right;ab(sb).center;var fb=cb;function hb(t,e){var n=0;var r;var i=0;var a=0;if(e===undefined){var o=_createForOfIteratorHelper2(t),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;if(u!=null&&(u=+u)>=u){r=u-i;i+=r/++n;a+=r*(u-i)}}}catch(t){o.e(t)}finally{o.f()}}else{var l=-1;var c=_createForOfIteratorHelper2(t),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;if((h=e(h,++l,t))!=null&&(h=+h)>=h){r=h-i;i+=r/++n;a+=r*(h-i)}}}catch(t){c.e(t)}finally{c.f()}}if(n>1)return a/(n-1)}function db(t,e){var n=hb(t,e);return n?Math.sqrt(n):n}function gb(t,e){var n;var r;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null){if(n===undefined){if(o>=o)n=r=o}else{if(n>o)n=o;if(r<o)r=o}}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null){if(n===undefined){if(c>=c)n=r=c}else{if(n>c)n=c;if(r<c)r=c}}}}catch(t){u.e(t)}finally{u.f()}}return[n,r]}var vb=function(){"use strict";function t(){_classCallCheck2(this,t);this._partials=new Float64Array(32);this._n=0}_createClass2(t,[{key:"add",value:function t(e){var n=this._partials;var r=0;for(var i=0;i<this._n&&i<32;i++){var a=n[i],o=e+a,s=Math.abs(e)<Math.abs(a)?e-(o-a):a-(o-e);if(s)n[r++]=s;e=o}n[r]=e;this._n=r+1;return this}},{key:"valueOf",value:function t(){var e=this._partials;var n=this._n,r,i,a,o=0;if(n>0){o=e[--n];while(n>0){r=o;i=e[--n];o=r+i;a=i-(o-r);if(a)break}if(n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)){i=a*2;r=o+i;if(i==r-o)o=r}}return o}}]);return t}();function pb(t){return t}function yb(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return _b(t,pb,pb,n)}function mb(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++){r[i-2]=arguments[i]}return _b(t,pb,e,r)}function _b(t,p,y,m){return function t(e,n){if(n>=m.length)return y(e);var r=new _;var i=m[n++];var a=-1;var o=_createForOfIteratorHelper2(e),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=i(u,++a,e);var c=r.get(l);if(c)c.push(u);else r.set(l,[u])}}catch(t){o.e(t)}finally{o.f()}var f=_createForOfIteratorHelper2(r),h;try{for(f.s();!(h=f.n()).done;){var d=_slicedToArray2(h.value,2),g=d[0],v=d[1];r.set(g,t(v,n))}}catch(t){f.e(t)}finally{f.f()}return p(r)}(t,0)}var bb=Math.sqrt(50),wb=Math.sqrt(10),xb=Math.sqrt(2);function kb(t,e,n){var r,i=-1,a,o,s;e=+e,t=+t,n=+n;if(t===e&&n>0)return[t];if(r=e<t)a=t,t=e,e=a;if((s=Sb(t,e,n))===0||!isFinite(s))return[];if(s>0){t=Math.ceil(t/s);e=Math.floor(e/s);o=new Array(a=Math.ceil(e-t+1));while(++i<a){o[i]=(t+i)*s}}else{s=-s;t=Math.ceil(t*s);e=Math.floor(e*s);o=new Array(a=Math.ceil(e-t+1));while(++i<a){o[i]=(t+i)/s}}if(r)o.reverse();return o}function Sb(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=bb?10:a>=wb?5:a>=xb?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=bb?10:a>=wb?5:a>=xb?2:1)}function Cb(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;if(a>=bb)i*=10;else if(a>=wb)i*=5;else if(a>=xb)i*=2;return e<t?-i:i}function Eb(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n<a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n<l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function Ab(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n>a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n>l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function Mb(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:t.length-1;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:ib;while(r>n){if(r-n>600){var a=r-n+1;var o=e-n+1;var s=Math.log(a);var u=.5*Math.exp(2*s/3);var l=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1);var c=Math.max(n,Math.floor(e-o*u/a+l));var f=Math.min(r,Math.floor(e+(a-o)*u/a+l));Mb(t,e,c,f,i)}var h=t[e];var d=n;var g=r;Rb(t,n,e);if(i(t[r],h)>0)Rb(t,n,r);while(d<g){Rb(t,d,g),++d,--g;while(i(t[d],h)<0){++d}while(i(t[g],h)>0){--g}}if(i(t[n],h)===0)Rb(t,n,g);else++g,Rb(t,g,r);if(g<=e)n=g+1;if(e<=g)r=g-1}return t}function Rb(t,e,n){var r=t[e];t[e]=t[n];t[n]=r}function Tb(t,e,n){t=Float64Array.from(ub(t,n));if(!(r=t.length))return;if((e=+e)<=0||r<2)return Ab(t);if(e>=1)return Eb(t);var r,i=(r-1)*e,a=Math.floor(i),o=Eb(Mb(t,a).subarray(0,a+1)),s=Ab(t.subarray(a+1));return o+(s-o)*(i-a)}function Ob(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:sb;if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}function Pb(t,e){var n=0;var r=0;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null&&(o=+o)>=o){++n,r+=o}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null&&(c=+c)>=c){++n,r+=c}}}catch(t){u.e(t)}finally{u.f()}}if(n)return r/n}function Bb(n){var r,i,a;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:r=_createForOfIteratorHelper2(n);e.prev=1;r.s();case 3:if((i=r.n()).done){e.next=8;break}a=i.value;return e.delegateYield(a,"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10;e.t1=e["catch"](1);r.e(e.t1);case 13:e.prev=13;r.f();return e.finish(13);case 16:case"end":return e.stop()}}},o,null,[[1,10,13,16]])}function Db(t){return Array.from(Bb(t))}function Nb(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);while(++r<i){a[r]=t+r*n}return a}function zb(t,e){var n=0;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a=+a){n+=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if(l=+e(l,++o,t)){n+=l}}}catch(t){s.e(t)}finally{s.f()}}return n}var Fb="$";function jb(){}jb.prototype=Ib.prototype={constructor:jb,has:function t(e){return Fb+e in this},get:function t(e){return this[Fb+e]},set:function t(e,n){this[Fb+e]=n;return this},remove:function t(e){var n=Fb+e;return n in this&&delete this[n]},clear:function t(){for(var e in this){if(e[0]===Fb)delete this[e]}},keys:function t(){var t=[];for(var e in this){if(e[0]===Fb)t.push(e.slice(1))}return t},values:function t(){var t=[];for(var e in this){if(e[0]===Fb)t.push(this[e])}return t},entries:function t(){var t=[];for(var e in this){if(e[0]===Fb)t.push({key:e.slice(1),value:this[e]})}return t},size:function t(){var t=0;for(var e in this){if(e[0]===Fb)++t}return t},empty:function t(){for(var e in this){if(e[0]===Fb)return false}return true},each:function t(e){for(var n in this){if(n[0]===Fb)e(this[n],n.slice(1),this)}}};function Ib(t,e){var n=new jb;if(t instanceof jb)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r=-1,i=t.length,a;if(e==null)while(++r<i){n.set(r,t[r])}else while(++r<i){n.set(e(a=t[r],r,t),a)}}else if(t)for(var o in t){n.set(o,t[o])}return n}function Lb(){var h=[],a=[],d,g,n;function v(t,n,r,i){if(n>=h.length){if(d!=null)t.sort(d);return g!=null?g(t):t}var e=-1,a=t.length,o=h[n++],s,u,l=Ib(),c,f=r();while(++e<a){if(c=l.get(s=o(u=t[e])+"")){c.push(u)}else{l.set(s,[u])}}l.each(function(t,e){i(f,e,v(t,n,r,i))});return f}function o(t,n){if(++n>h.length)return t;var r,i=a[n-1];if(g!=null&&n>=h.length)r=t.entries();else r=[],t.each(function(t,e){r.push({key:e,values:o(t,n)})});return i!=null?r.sort(function(t,e){return i(t.key,e.key)}):r}return n={object:function t(e){return v(e,0,Hb,Ub)},map:function t(e){return v(e,0,Gb,Vb)},entries:function t(e){return o(v(e,0,Gb,Vb),0)},key:function t(e){h.push(e);return n},sortKeys:function t(e){a[h.length-1]=e;return n},sortValues:function t(e){d=e;return n},rollup:function t(e){g=e;return n}}}function Hb(){return{}}function Ub(t,e,n){t[e]=n}function Gb(){return Ib()}function Vb(t,e,n){t.set(e,n)}function Wb(){}var qb=Ib.prototype;Wb.prototype={constructor:Wb,has:qb.has,add:function t(e){e+="";this[Fb+e]=e;return this},remove:qb.remove,clear:qb.clear,values:qb.keys,size:qb.size,empty:qb.empty,each:qb.each};function Kb(t){var e=[];for(var n in t){e.push(n)}return e}function Yb(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(t){return t};var r=t.map(n);return t.filter(function(t,e){return r.indexOf(n(t))===e})}function Xb(i){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=Yb(Db(i.map(function(t){return Kb(t)}))),o={};t.forEach(function(e){var t;if(a[e])t=a[e](i,function(t){return t[e]});else{var n=i.map(function(t){return t[e]});var r=n.map(function(t){return t||t===false?t.constructor:t}).filter(function(t){return t!==void 0});if(!r.length)t=undefined;else if(r.indexOf(Array)>=0){t=Db(n.map(function(t){return t instanceof Array?t:[t]}));t=Yb(t);if(t.length===1)t=t[0]}else if(r.indexOf(String)>=0){t=Yb(n);if(t.length===1)t=t[0]}else if(r.indexOf(Number)>=0)t=zb(n);else if(r.indexOf(Object)>=0){t=Yb(n.filter(function(t){return t}));if(t.length===1)t=t[0];else t=Xb(t)}else{t=Yb(n.filter(function(t){return t!==void 0}));if(t.length===1)t=t[0]}}o[e]=t});return o}function Zb(t){var i;if(typeof t==="number")i=[t];else i=t.split(/\s+/);if(i.length===1)i=[i[0],i[0],i[0],i[0]];else if(i.length===2)i=i.concat(i);else if(i.length===3)i.push(i[1]);return["top","right","bottom","left"].reduce(function(t,e,n){var r=parseFloat(i[n]);t[e]=r||0;return t},{})}function $b(){if("-webkit-transform"in document.body.style)return"-webkit-";else if("-moz-transform"in document.body.style)return"-moz-";else if("-ms-transform"in document.body.style)return"-ms-";else if("-o-transform"in document.body.style)return"-o-";else return""}function Jb(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.style(n,e[n])}}function Qb(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Pn(t);e=Pn(e);var i=Math.abs(e.h*r-t.h*n);if(i>180)i-=360;var a=(Math.min(t.h,e.h)+i/2)%360;var o=t.l+(e.l*r-t.l*n)/2,s=t.s+(e.s*r-t.s*n)/2;if(a<0)a+=360;return Pn("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}function t2(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function e2(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var n2=Symbol("implicit");function r2(){var a=new Map,o=[],r=[],i=n2;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==n2)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return r2(o,r).unknown(i)};t2.apply(s,arguments);return s}function i2(){var t=r2().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=Nb(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return i2(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return t2.apply(r(),arguments)}function a2(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return a2(e())};return t}function o2(){return a2(i2.apply(null,arguments).paddingInner(1))}function s2(t){return function(){return t}}function u2(t){return+t}var l2=[0,1];function c2(t){return t}function f2(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:s2(isNaN(n)?NaN:.5)}function h2(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function d2(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=f2(i,r),a=n(o,a);else r=f2(r,i),a=n(a,o);return function(t){return a(r(t))}}function g2(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=f2(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=fb(n,t,1,r)-1;return a[e](i[e](t))}}function v2(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function p2(){var e=l2,n=l2,r=Jn,i,a,o,s=c2,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==c2)s=h2(e[0],e[t-1]);u=t>2?g2:d2;l=c=null;return h}function h(t){return isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Wn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,u2),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=Qn,f()};h.clamp=function(t){return arguments.length?(s=t?true:c2,f()):s!==c2};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function y2(){return p2()(c2,c2)}function m2(t,e,n,r){var i=Cb(t,e,n),a;r=Pr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=Yr(i,o)))r.precision=a;return Wr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=Xr(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=Kr(i)))r.precision=a-(r.type==="%")*2;break}}return Vr(r)}function _2(l){var c=l.domain;l.ticks=function(t){var e=c();return kb(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return m2(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=Sb(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function b2(){var t=y2();t.copy=function(){return v2(t,b2())};t2.apply(t,arguments);return _2(t)}function w2(e){var n;function r(t){return isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,u2),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return w2(e).unknown(n)};e=arguments.length?Array.from(e,u2):[0,1];return _2(r)}function x2(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function k2(t){return Math.log(t)}function S2(t){return Math.exp(t)}function C2(t){return-Math.log(-t)}function E2(t){return-Math.exp(-t)}function A2(t){return isFinite(t)?+("1e"+t):t<0?0:t}function M2(e){return e===10?A2:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function R2(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function T2(e){return function(t){return-e(-t)}}function O2(t){var e=t(k2,S2),h=e.domain,d=10,g,v;function n(){g=R2(d),v=M2(d);if(h()[0]<0){g=T2(g),v=T2(v);t(C2,E2)}else{t(k2,S2)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=kb(n,r,c)}else{f=kb(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Vr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h(x2(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function P2(){var t=O2(p2()).domain([1,10]);t.copy=function(){return v2(t,P2()).base(t.base())};t2.apply(t,arguments);return t}function B2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function D2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function N2(e){var n=1,t=e(B2(n),D2(n));t.constant=function(t){return arguments.length?e(B2(n=+t),D2(n)):n};return _2(t)}function z2(){var t=N2(p2());t.copy=function(){return v2(t,z2()).constant(t.constant())};return t2.apply(t,arguments)}function F2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function j2(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function I2(t){return t<0?-t*t:t*t}function L2(t){var e=t(c2,c2),n=1;function r(){return n===1?t(c2,c2):n===.5?t(j2,I2):t(F2(n),F2(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return _2(e)}function H2(){var t=L2(p2());t.copy=function(){return v2(t,H2()).exponent(t.exponent())};t2.apply(t,arguments);return t}function U2(){return H2.apply(null,arguments).exponent(.5)}function G2(t){return Math.sign(t)*t*t}function V2(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function W2(){var n=y2(),e=[0,1],r=false,i;function a(t){var e=V2(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(G2(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,u2)).map(G2)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return W2(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};t2.apply(a,arguments);return _2(a)}function q2(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=Ob(i,t/e)}return o}function o(t){return isNaN(t=+t)?e:n[fb(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(ib);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return q2().domain(i).range(n).unknown(e)};return t2.apply(o,arguments)}function K2(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t<=t?o[fb(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return K2().domain([r,i]).range(o).unknown(e)};return t2.apply(_2(s),arguments)}function Y2(){var n=[.5],r=[0,1],e,i=1;function a(t){return t<=t?r[fb(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return Y2().domain(n).range(r).unknown(e)};return t2.apply(a,arguments)}var X2=1e3,Z2=X2*60,$2=Z2*60,J2=$2*24,Q2=J2*7,tw=J2*30,ew=J2*365;function nw(t){return new Date(t)}function rw(t){return t instanceof Date?+t:+new Date(+t)}function iw(o,e,n,r,i,a,s,u,l){var c=y2(),f=c.invert,h=c.domain;var d=l(".%L"),g=l(":%S"),v=l("%I:%M"),p=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y");var w=[[s,1,X2],[s,5,5*X2],[s,15,15*X2],[s,30,30*X2],[a,1,Z2],[a,5,5*Z2],[a,15,15*Z2],[a,30,30*Z2],[i,1,$2],[i,3,3*$2],[i,6,6*$2],[i,12,12*$2],[r,1,J2],[r,2,2*J2],[n,1,Q2],[e,1,tw],[e,3,3*tw],[o,1,ew]];function x(t){return(s(t)<t?d:a(t)<t?g:i(t)<t?v:r(t)<t?p:e(t)<t?n(t)<t?y:m:o(t)<t?_:b)(t)}function k(t,e,n){if(t==null)t=10;if(typeof t==="number"){var r=Math.abs(n-e)/t,i=ab(function(t){return t[2]}).right(w,r),a;if(i===w.length){a=Cb(e/ew,n/ew,t);t=o}else if(i){i=w[r/w[i-1][2]<w[i][2]/r?i-1:i];a=i[1];t=i[0]}else{a=Math.max(Cb(e,n,t),1);t=u}return t.every(a)}return t}c.invert=function(t){return new Date(f(t))};c.domain=function(t){return arguments.length?h(Array.from(t,rw)):h().map(nw)};c.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i=r<n,a;if(i)a=n,n=r,r=a;a=k(t,n,r);a=a?a.range(n,r+1):[];return i?a.reverse():a};c.tickFormat=function(t,e){return e==null?x:l(e)};c.nice=function(t){var e=h();return(t=k(t,e[0],e[e.length-1]))?h(x2(e,t)):c};c.copy=function(){return v2(c,iw(o,e,n,r,i,a,s,u,l))};return c}function aw(){return t2.apply(iw(it,nt,J,X,K,W,G,z,We).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ow(){return t2.apply(iw(xt,bt,pt,ct,ut,ot,G,z,qe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function sw(){var r=0,i=1,a,o,s,u,l=c2,e=false,n;function c(t){return isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(Jn);c.rangeRound=t(Qn);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function uw(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function lw(){var t=_2(sw()(c2));t.copy=function(){return uw(t,lw())};return e2.apply(t,arguments)}function cw(){var t=O2(sw()).domain([1,10]);t.copy=function(){return uw(t,cw()).base(t.base())};return e2.apply(t,arguments)}function fw(){var t=N2(sw());t.copy=function(){return uw(t,fw()).constant(t.constant())};return e2.apply(t,arguments)}function hw(){var t=L2(sw());t.copy=function(){return uw(t,hw()).exponent(t.exponent())};return e2.apply(t,arguments)}function dw(){return hw.apply(null,arguments).exponent(.5)}function gw(){var i=[],n=c2;function a(t){if(!isNaN(t=+t))return n((fb(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(ib);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return Tb(i,e/n)})};a.copy=function(){return gw(n).domain(i)};return e2.apply(a,arguments)}function vw(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=c2,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=gr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(Jn);g.rangeRound=t(Qn);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function pw(){var t=_2(vw()(c2));t.copy=function(){return uw(t,pw())};return e2.apply(t,arguments)}function yw(){var t=O2(vw()).domain([.1,1,10]);t.copy=function(){return uw(t,yw()).base(t.base())};return e2.apply(t,arguments)}function mw(){var t=N2(vw());t.copy=function(){return uw(t,mw()).constant(t.constant())};return e2.apply(t,arguments)}function _w(){var t=L2(vw());t.copy=function(){return uw(t,_w()).exponent(t.exponent())};return e2.apply(t,arguments)}function bw(){return _w.apply(null,arguments).exponent(.5)}var ww=Object.freeze({__proto__:null,scaleBand:i2,scalePoint:o2,scaleIdentity:w2,scaleLinear:b2,scaleLog:P2,scaleSymlog:z2,scaleOrdinal:r2,scaleImplicit:n2,scalePow:H2,scaleSqrt:U2,scaleRadial:W2,scaleQuantile:q2,scaleQuantize:K2,scaleThreshold:Y2,scaleTime:aw,scaleUtc:ow,scaleSequential:lw,scaleSequentialLog:cw,scaleSequentialPow:hw,scaleSequentialSqrt:dw,scaleSequentialSymlog:fw,scaleSequentialQuantile:gw,scaleDiverging:pw,scaleDivergingLog:yw,scaleDivergingPow:_w,scaleDivergingSqrt:bw,scaleDivergingSymlog:mw,tickFormat:m2});var xw={dark:"#555555",light:"#f7f7f7",missing:"#cccccc",off:"#C44536",on:"#6A994E",scale:r2().range(["#4281A4","#F6AE2D","#C44536","#2A9D8F","#6A994E","#CEB54A","#5E548E","#C08497","#99582A","#8C8C99","#1D3557","#D08C60","#6D2E46","#8BB19C","#52796F","#5E60CE","#985277","#5C374C"])};function kw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return t in e?e[t]:t in xw?xw[t]:xw.missing}var Sw=xw;function Cw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(t)>=0)return kw("missing",e);else if(t===true)return kw("on",e);else if(t===false)return kw("off",e);var n=wn(t);if(!n)return kw("scale",e)(t);return t.toString()}function Ew(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t=Cn(t);var n=(t.r*299+t.g*587+t.b*114)/1e3;return n>=128?kw("dark",e):kw("light",e)}function Aw(t){t=Pn(t);if(t.l>.45){if(t.s>.8)t.s=.8;t.l=.45}return t.toString()}function Mw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;t=Pn(t);e*=1-t.l;t.l+=e;t.s-=e;return t.toString()}function Rw(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Pn(t);e=Pn(e);var i=e.h*r-t.h*n;if(Math.abs(i)>180)i-=360;var a=(t.h-i)%360;var o=t.l-(e.l*r-t.l*n)/2,s=t.s-(e.s*r-t.s*n)/2;if(a<0)a+=360;return Pn("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}var Tw={"en-GB":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["£",""]},"en-US":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-CL":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["$",""]},"es-MX":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-ES":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","mm","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["€",""]},"et-EE":{separator:" ",suffixes:["y","z","a","f","p","n","µ","m","","tuhat","miljonit","miljardit","triljonit","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["","eurot"]},"fr-FR":{suffixes:["y","z","a","f","p","n","µ","m","","k","m","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["€",""]}};function Ow(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ow=function t(e){return typeof e}}else{Ow=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Ow(t)}var Pw=function t(e,n){return parseFloat(Math.round(e*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function Bw(t,e,n){var r=0;var i=parseFloat(t.replace("−","-"),10);if(i){if(i<0)i*=-1;r=1+Math.floor(1e-12+Math.log(i)/Math.LN10);r=Math.max(-24,Math.min(24,Math.floor((r-1)/3)*3))}var a=n[8+r/3];return{number:Pw(a.scale(i),e),symbol:a.symbol}}function Dw(t,e){var n=Math.pow(10,Math.abs(8-e)*3);return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function Nw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(t))t*=1;else return"N/A";var r=t<0;var i=t.toString().split(".")[0].replace("-","").length,a=Ow(e)==="object"?e:Tw[e]||Tw["en-US"],o=a.suffixes.map(Dw);var s=a.delimiters.decimal||".",u=a.separator||"",l=a.delimiters.thousands||",";var c=Ur({currency:a.currency||["$",""],decimal:s,grouping:a.grouping||[3],thousands:l});var f;if(n)f=c.format(n)(t);else if(t===0)f="0";else if(i>=3){var h=Bw(c.format(".3r")(t),2,o);var d=parseFloat(h.number).toString().replace(".",s);var g=h.symbol;f="".concat(d).concat(u).concat(g)}else if(i===3)f=c.format(",f")(t);else if(t<1&&t>-1)f=c.format(".2g")(t);else f=c.format(".3g")(t);return"".concat(r&&f.charAt(0)!=="−"?"−":"").concat(f).replace(/\−/g,"-").replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}var zw=function t(e){if(e===".3~a")return Nw;return Vr(e)};var Fw=function t(e){var n=qr(e);n.format=zw;return n};var jw=new Date,Iw=new Date;function Lw(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return Lw(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){jw.setTime(+t),Iw.setTime(+e);a(jw),a(Iw);return Math.floor(n(jw,Iw))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var Hw=1e3;var Uw=Hw*60;var Gw=Uw*60;var Vw=Gw*24;var Ww=Lw(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Hw)},function(t,e){return(e-t)/Hw},function(t){return t.getUTCSeconds()});var qw=Ww;var Kw=Lw(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hw)},function(t,e){t.setTime(+t+e*Uw)},function(t,e){return(e-t)/Uw},function(t){return t.getMinutes()});var Yw=Kw;var Xw=Lw(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Hw-t.getMinutes()*Uw)},function(t,e){t.setTime(+t+e*Gw)},function(t,e){return(e-t)/Gw},function(t){return t.getHours()});var Zw=Xw;var $w=Lw(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Uw)/Vw},function(t){return t.getDate()-1});var Jw=$w;var Qw=Lw(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var t3=Qw;var e3=Lw(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});e3.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:Lw(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var n3=e3;function r3(t,e){var n=We("%-d"),r=We("%I %p"),i=We(".%L"),a=We("%I:%M"),o=We("%b"),s=We("%b %-d"),u=We("%b %-d, %Y"),l=We("%b %Y"),c=We(":%S"),f=We("%Y");var h=e.indexOf(t);var d=e[h+1]||e[h-1];return(qw(t)<t?i:Yw(t)<t?c:Zw(t)<t?a:Jw(t)<t?h===0?u:r:t3(t)<t?h===0?u:i3(t,d,Jw)?s:n:n3(t)<t?h===0?l:i3(t,d,t3)?s:o:i3(t,d,n3)?l:f)(t)}function i3(t,e,n){return e?+n.round(t)===+n.round(t+Math.abs(e-t)):false}function a3(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function o3(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function s3(t,e,n){if(e)o3(t.prototype,e);if(n)o3(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}var u3=function(){function u(){a3(this,u);this._duration=600;this._height=Ul("height");this._id=Ul("id");this._opacity=nb(1);this._pointerEvents=nb("auto");this._select;this._url=Ul("url");this._width=Ul("width");this._x=Ul("x",0);this._y=Ul("y",0)}s3(u,[{key:"render",value:function t(e){var n=this;if(this._select===void 0)this.select(Is("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var r=this._select.selectAll(".d3plus-Image").data(this._data,this._id);var i=r.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",function(t,e){return n._x(t,e)+n._width(t,e)/2}).attr("y",function(t,e){return n._y(t,e)+n._height(t,e)/2});var a=Nl().duration(this._duration),o=this,s=i.merge(r);s.attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(a).attr("opacity",this._opacity).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).each(function(t,e){var n=Is(this),r=o._url(t,e);var i=r.indexOf("http://")===0||r.indexOf("https://")===0;if(!i||r.indexOf(window.location.hostname)===0){var a=new u;a.src=r;a.crossOrigin="Anonymous";a.onload=function(){var t=document.createElement("canvas");t.width=this.width;t.height=this.height;var e=t.getContext("2d");e.drawImage(this,0,0);n.attr("xlink:href",t.toDataURL("image/png"))}}});r.exit().transition(a).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).attr("opacity",0).remove();if(e)setTimeout(e,this._duration+100);return this}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:nb(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:nb(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:nb(e),this):this._pointerEvents}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"url",value:function t(e){return arguments.length?(this._url=e,this):this._url}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:nb(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:nb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:nb(e),this):this._y}}]);return u}();var l3=Math.PI,c3=2*l3,f3=1e-6,h3=c3-f3;function d3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function g3(){return new d3}d3.prototype=g3.prototype={constructor:d3,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,r,i){this._+="Q"+ +e+","+ +n+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(e,n,r,i,a,o){this._+="C"+ +e+","+ +n+","+ +r+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function t(e,n,r,i,a){e=+e,n=+n,r=+r,i=+i,a=+a;var o=this._x1,s=this._y1,u=r-e,l=i-n,c=o-e,f=s-n,h=c*c+f*f;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=e)+","+(this._y1=n)}else if(!(h>f3));else if(!(Math.abs(f*u-l*c)>f3)||!a){this._+="L"+(this._x1=e)+","+(this._y1=n)}else{var d=r-o,g=i-s,v=u*u+l*l,p=d*d+g*g,y=Math.sqrt(v),m=Math.sqrt(h),_=a*Math.tan((l3-Math.acos((v+h-p)/(2*y*m)))/2),b=_/m,w=_/y;if(Math.abs(b-1)>f3){this._+="L"+(e+b*c)+","+(n+b*f)}this._+="A"+a+","+a+",0,0,"+ +(f*d>c*g)+","+(this._x1=e+w*u)+","+(this._y1=n+w*l)}},arc:function t(e,n,r,i,a,o){e=+e,n=+n,r=+r,o=!!o;var s=r*Math.cos(i),u=r*Math.sin(i),l=e+s,c=n+u,f=1^o,h=o?i-a:a-i;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>f3||Math.abs(this._y1-c)>f3){this._+="L"+l+","+c}if(!r)return;if(h<0)h=h%c3+c3;if(h>h3){this._+="A"+r+","+r+",0,1,"+f+","+(e-s)+","+(n-u)+"A"+r+","+r+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c)}else if(h>f3){this._+="A"+r+","+r+",0,"+ +(h>=l3)+","+f+","+(this._x1=e+r*Math.cos(a))+","+(this._y1=n+r*Math.sin(a))}},rect:function t(e,n,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};function v3(e){return function t(){return e}}var p3=Math.abs;var y3=Math.atan2;var m3=Math.cos;var _3=Math.max;var b3=Math.min;var w3=Math.sin;var x3=Math.sqrt;var k3=1e-12;var S3=Math.PI;var C3=S3/2;var E3=2*S3;function A3(t){return t>1?0:t<-1?S3:Math.acos(t)}function M3(t){return t>=1?C3:t<=-1?-C3:Math.asin(t)}function R3(t){return t.innerRadius}function T3(t){return t.outerRadius}function O3(t){return t.startAngle}function P3(t){return t.endAngle}function B3(t){return t&&t.padAngle}function D3(t,e,n,r,i,a,o,s){var u=n-t,l=r-e,c=o-i,f=s-a,h=f*u-c*l;if(h*h<k3)return;h=(c*(e-a)-f*(t-i))/h;return[t+h*u,e+h*l]}function N3(t,e,n,r,i,a,o){var s=t-n,u=e-r,l=(o?a:-a)/x3(s*s+u*u),c=l*u,f=-l*s,h=t+c,d=e+f,g=n+c,v=r+f,p=(h+g)/2,y=(d+v)/2,m=g-h,_=v-d,b=m*m+_*_,w=i-a,x=h*v-g*d,k=(_<0?-1:1)*x3(_3(0,w*w*b-x*x)),S=(x*_-m*k)/b,C=(-x*m-_*k)/b,E=(x*_+m*k)/b,A=(-x*m+_*k)/b,M=S-p,R=C-y,T=E-p,O=A-y;if(M*M+R*R>T*T+O*O)S=E,C=A;return{cx:S,cy:C,x01:-c,y01:-f,x11:S*(i/w-1),y11:C*(i/w-1)}}function z3(){var j=R3,I=T3,L=v3(0),H=null,U=O3,G=P3,V=B3,W=null;function e(){var t,e,n=+j.apply(this,arguments),r=+I.apply(this,arguments),i=U.apply(this,arguments)-C3,a=G.apply(this,arguments)-C3,o=p3(a-i),s=a>i;if(!W)W=t=g3();if(r<n)e=r,r=n,n=e;if(!(r>k3))W.moveTo(0,0);else if(o>E3-k3){W.moveTo(r*m3(i),r*w3(i));W.arc(0,0,r,i,a,!s);if(n>k3){W.moveTo(n*m3(a),n*w3(a));W.arc(0,0,n,a,i,s)}}else{var u=i,l=a,c=i,f=a,h=o,d=o,g=V.apply(this,arguments)/2,v=g>k3&&(H?+H.apply(this,arguments):x3(n*n+r*r)),p=b3(p3(r-n)/2,+L.apply(this,arguments)),y=p,m=p,_,b;if(v>k3){var w=M3(v/n*w3(g)),x=M3(v/r*w3(g));if((h-=w*2)>k3)w*=s?1:-1,c+=w,f-=w;else h=0,c=f=(i+a)/2;if((d-=x*2)>k3)x*=s?1:-1,u+=x,l-=x;else d=0,u=l=(i+a)/2}var k=r*m3(u),S=r*w3(u),C=n*m3(f),E=n*w3(f);if(p>k3){var A=r*m3(l),M=r*w3(l),R=n*m3(c),T=n*w3(c),O;if(o<S3&&(O=D3(k,S,R,T,A,M,C,E))){var P=k-O[0],B=S-O[1],D=A-O[0],N=M-O[1],z=1/w3(A3((P*D+B*N)/(x3(P*P+B*B)*x3(D*D+N*N)))/2),F=x3(O[0]*O[0]+O[1]*O[1]);y=b3(p,(n-F)/(z-1));m=b3(p,(r-F)/(z+1))}}if(!(d>k3))W.moveTo(k,S);else if(m>k3){_=N3(R,T,k,S,r,m,s);b=N3(A,M,C,E,r,m,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(m<p)W.arc(_.cx,_.cy,m,y3(_.y01,_.x01),y3(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,y3(_.y01,_.x01),y3(_.y11,_.x11),!s);W.arc(0,0,r,y3(_.cy+_.y11,_.cx+_.x11),y3(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,m,y3(b.y11,b.x11),y3(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,r,u,l,!s);if(!(n>k3)||!(h>k3))W.lineTo(C,E);else if(y>k3){_=N3(C,E,A,M,n,-y,s);b=N3(k,S,R,T,n,-y,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(y<p)W.arc(_.cx,_.cy,y,y3(_.y01,_.x01),y3(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,y3(_.y01,_.x01),y3(_.y11,_.x11),!s);W.arc(0,0,n,y3(_.cy+_.y11,_.cx+_.x11),y3(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,y,y3(b.y11,b.x11),y3(b.y01,b.x01),!s)}}else W.arc(0,0,n,f,c,s)}W.closePath();if(t)return W=null,t+""||null}e.centroid=function(){var t=(+j.apply(this,arguments)+ +I.apply(this,arguments))/2,e=(+U.apply(this,arguments)+ +G.apply(this,arguments))/2-S3/2;return[m3(e)*t,w3(e)*t]};e.innerRadius=function(t){return arguments.length?(j=typeof t==="function"?t:v3(+t),e):j};e.outerRadius=function(t){return arguments.length?(I=typeof t==="function"?t:v3(+t),e):I};e.cornerRadius=function(t){return arguments.length?(L=typeof t==="function"?t:v3(+t),e):L};e.padRadius=function(t){return arguments.length?(H=t==null?null:typeof t==="function"?t:v3(+t),e):H};e.startAngle=function(t){return arguments.length?(U=typeof t==="function"?t:v3(+t),e):U};e.endAngle=function(t){return arguments.length?(G=typeof t==="function"?t:v3(+t),e):G};e.padAngle=function(t){return arguments.length?(V=typeof t==="function"?t:v3(+t),e):V};e.context=function(t){return arguments.length?(W=t==null?null:t,e):W};return e}var F3=Array.prototype.slice;function j3(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function I3(t){this._context=t}I3.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function L3(t){return new I3(t)}function H3(t){return t[0]}function U3(t){return t[1]}function G3(o,s){var u=v3(true),l=null,c=L3,f=null;o=typeof o==="function"?o:o===undefined?H3:v3(o);s=typeof s==="function"?s:s===undefined?U3:v3(s);function e(t){var e,n=(t=j3(t)).length,r,i=false,a;if(l==null)f=c(a=g3());for(e=0;e<=n;++e){if(!(e<n&&u(r=t[e],e,t))===i){if(i=!i)f.lineStart();else f.lineEnd()}if(i)f.point(+o(r,e,t),+s(r,e,t))}if(a)return f=null,a+""||null}e.x=function(t){return arguments.length?(o=typeof t==="function"?t:v3(+t),e):o};e.y=function(t){return arguments.length?(s=typeof t==="function"?t:v3(+t),e):s};e.defined=function(t){return arguments.length?(u=typeof t==="function"?t:v3(!!t),e):u};e.curve=function(t){return arguments.length?(c=t,l!=null&&(f=c(l)),e):c};e.context=function(t){return arguments.length?(t==null?l=f=null:f=c(l=t),e):l};return e}function V3(c,f,h){var d=null,g=v3(true),v=null,p=L3,y=null;c=typeof c==="function"?c:c===undefined?H3:v3(+c);f=typeof f==="function"?f:f===undefined?v3(0):v3(+f);h=typeof h==="function"?h:h===undefined?U3:v3(+h);function e(t){var e,n,r,i=(t=j3(t)).length,a,o=false,s,u=new Array(i),l=new Array(i);if(v==null)y=p(s=g3());for(e=0;e<=i;++e){if(!(e<i&&g(a=t[e],e,t))===o){if(o=!o){n=e;y.areaStart();y.lineStart()}else{y.lineEnd();y.lineStart();for(r=e-1;r>=n;--r){y.point(u[r],l[r])}y.lineEnd();y.areaEnd()}}if(o){u[e]=+c(a,e,t),l[e]=+f(a,e,t);y.point(d?+d(a,e,t):u[e],h?+h(a,e,t):l[e])}}if(s)return y=null,s+""||null}function t(){return G3().defined(g).curve(p).context(v)}e.x=function(t){return arguments.length?(c=typeof t==="function"?t:v3(+t),d=null,e):c};e.x0=function(t){return arguments.length?(c=typeof t==="function"?t:v3(+t),e):c};e.x1=function(t){return arguments.length?(d=t==null?null:typeof t==="function"?t:v3(+t),e):d};e.y=function(t){return arguments.length?(f=typeof t==="function"?t:v3(+t),h=null,e):f};e.y0=function(t){return arguments.length?(f=typeof t==="function"?t:v3(+t),e):f};e.y1=function(t){return arguments.length?(h=t==null?null:typeof t==="function"?t:v3(+t),e):h};e.lineX0=e.lineY0=function(){return t().x(c).y(f)};e.lineY1=function(){return t().x(c).y(h)};e.lineX1=function(){return t().x(d).y(f)};e.defined=function(t){return arguments.length?(g=typeof t==="function"?t:v3(!!t),e):g};e.curve=function(t){return arguments.length?(p=t,v!=null&&(y=p(v)),e):p};e.context=function(t){return arguments.length?(t==null?v=y=null:y=p(v=t),e):v};return e}function W3(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function q3(t){return t}function K3(){var g=q3,v=W3,p=null,y=v3(0),m=v3(E3),_=v3(0);function e(n){var t,e=(n=j3(n)).length,r,i,a=0,o=new Array(e),s=new Array(e),u=+y.apply(this,arguments),l=Math.min(E3,Math.max(-E3,m.apply(this,arguments)-u)),c,f=Math.min(Math.abs(l)/e,_.apply(this,arguments)),h=f*(l<0?-1:1),d;for(t=0;t<e;++t){if((d=s[o[t]=t]=+g(n[t],t,n))>0){a+=d}}if(v!=null)o.sort(function(t,e){return v(s[t],s[e])});else if(p!=null)o.sort(function(t,e){return p(n[t],n[e])});for(t=0,i=a?(l-e*h)/a:0;t<e;++t,u=c){r=o[t],d=s[r],c=u+(d>0?d*i:0)+h,s[r]={data:n[r],index:t,value:d,startAngle:u,endAngle:c,padAngle:f}}return s}e.value=function(t){return arguments.length?(g=typeof t==="function"?t:v3(+t),e):g};e.sortValues=function(t){return arguments.length?(v=t,p=null,e):v};e.sort=function(t){return arguments.length?(p=t,v=null,e):p};e.startAngle=function(t){return arguments.length?(y=typeof t==="function"?t:v3(+t),e):y};e.endAngle=function(t){return arguments.length?(m=typeof t==="function"?t:v3(+t),e):m};e.padAngle=function(t){return arguments.length?(_=typeof t==="function"?t:v3(+t),e):_};return e}var Y3=Z3(L3);function X3(t){this._curve=t}X3.prototype={areaStart:function t(){this._curve.areaStart()},areaEnd:function t(){this._curve.areaEnd()},lineStart:function t(){this._curve.lineStart()},lineEnd:function t(){this._curve.lineEnd()},point:function t(e,n){this._curve.point(n*Math.sin(e),n*-Math.cos(e))}};function Z3(e){function t(t){return new X3(e(t))}t._curve=e;return t}function $3(t){var e=t.curve;t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;t.curve=function(t){return arguments.length?e(Z3(t)):e()._curve};return t}function J3(){return $3(G3().curve(Y3))}function Q3(){var t=V3().curve(Y3),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;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 $3(n())},delete t.lineX0;t.lineEndAngle=function(){return $3(r())},delete t.lineX1;t.lineInnerRadius=function(){return $3(i())},delete t.lineY0;t.lineOuterRadius=function(){return $3(a())},delete t.lineY1;t.curve=function(t){return arguments.length?e(Z3(t)):e()._curve};return t}function tx(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function ex(t){return t.source}function nx(t){return t.target}function rx(i){var a=ex,o=nx,s=H3,u=U3,l=null;function e(){var t,e=F3.call(arguments),n=a.apply(this,e),r=o.apply(this,e);if(!l)l=t=g3();i(l,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=r,e)),+u.apply(this,e));if(t)return l=null,t+""||null}e.source=function(t){return arguments.length?(a=t,e):a};e.target=function(t){return arguments.length?(o=t,e):o};e.x=function(t){return arguments.length?(s=typeof t==="function"?t:v3(+t),e):s};e.y=function(t){return arguments.length?(u=typeof t==="function"?t:v3(+t),e):u};e.context=function(t){return arguments.length?(l=t==null?null:t,e):l};return e}function ix(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function ax(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function ox(t,e,n,r,i){var a=tx(e,n),o=tx(e,n=(n+i)/2),s=tx(r,n),u=tx(r,i);t.moveTo(a[0],a[1]);t.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function sx(){return rx(ix)}function ux(){return rx(ax)}function lx(){var t=rx(ox);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}var cx={draw:function t(e,n){var r=Math.sqrt(n/S3);e.moveTo(r,0);e.arc(0,0,r,0,E3)}};var fx={draw:function t(e,n){var r=Math.sqrt(n/5)/2;e.moveTo(-3*r,-r);e.lineTo(-r,-r);e.lineTo(-r,-3*r);e.lineTo(r,-3*r);e.lineTo(r,-r);e.lineTo(3*r,-r);e.lineTo(3*r,r);e.lineTo(r,r);e.lineTo(r,3*r);e.lineTo(-r,3*r);e.lineTo(-r,r);e.lineTo(-3*r,r);e.closePath()}};var hx=Math.sqrt(1/3),dx=hx*2;var gx={draw:function t(e,n){var r=Math.sqrt(n/dx),i=r*hx;e.moveTo(0,-r);e.lineTo(i,0);e.lineTo(0,r);e.lineTo(-i,0);e.closePath()}};var vx=.8908130915292852,px=Math.sin(S3/10)/Math.sin(7*S3/10),yx=Math.sin(E3/10)*px,mx=-Math.cos(E3/10)*px;var _x={draw:function t(e,n){var r=Math.sqrt(n*vx),i=yx*r,a=mx*r;e.moveTo(0,-r);e.lineTo(i,a);for(var o=1;o<5;++o){var s=E3*o/5,u=Math.cos(s),l=Math.sin(s);e.lineTo(l*r,-u*r);e.lineTo(u*i-l*a,l*i+u*a)}e.closePath()}};var bx={draw:function t(e,n){var r=Math.sqrt(n),i=-r/2;e.rect(i,i,r,r)}};var wx=Math.sqrt(3);var xx={draw:function t(e,n){var r=-Math.sqrt(n/(wx*3));e.moveTo(0,r*2);e.lineTo(-wx*r,-r);e.lineTo(wx*r,-r);e.closePath()}};var kx=-.5,Sx=Math.sqrt(3)/2,Cx=1/Math.sqrt(12),Ex=(Cx/2+1)*3;var Ax={draw:function t(e,n){var r=Math.sqrt(n/Ex),i=r/2,a=r*Cx,o=i,s=r*Cx+r,u=-o,l=s;e.moveTo(i,a);e.lineTo(o,s);e.lineTo(u,l);e.lineTo(kx*i-Sx*a,Sx*i+kx*a);e.lineTo(kx*o-Sx*s,Sx*o+kx*s);e.lineTo(kx*u-Sx*l,Sx*u+kx*l);e.lineTo(kx*i+Sx*a,kx*a-Sx*i);e.lineTo(kx*o+Sx*s,kx*s-Sx*o);e.lineTo(kx*u+Sx*l,kx*l-Sx*u);e.closePath()}};var Mx=[cx,fx,gx,bx,_x,xx,Ax];function Rx(e,n){var r=null;e=typeof e==="function"?e:v3(e||cx);n=typeof n==="function"?n:v3(n===undefined?64:+n);function i(){var t;if(!r)r=t=g3();e.apply(this,arguments).draw(r,+n.apply(this,arguments));if(t)return r=null,t+""||null}i.type=function(t){return arguments.length?(e=typeof t==="function"?t:v3(t),i):e};i.size=function(t){return arguments.length?(n=typeof t==="function"?t:v3(+t),i):n};i.context=function(t){return arguments.length?(r=t==null?null:t,i):r};return i}function Tx(){}function Ox(t,e,n){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+e)/6,(t._y0+4*t._y1+n)/6)}function Px(t){this._context=t}Px.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 3:Ox(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,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:Ox(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function Bx(t){return new Px(t)}function Dx(t){this._context=t}Dx.prototype={areaStart:Tx,areaEnd:Tx,lineStart:function t(){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 t(){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);break}}},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x2=e,this._y2=n;break;case 1:this._point=2;this._x3=e,this._y3=n;break;case 2:this._point=3;this._x4=e,this._y4=n;this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:Ox(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function Nx(t){return new Dx(t)}function zx(t){this._context=t}zx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:Ox(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function Fx(t){return new zx(t)}var jx=function(){"use strict";function n(t,e){_classCallCheck2(this,n);this._context=t;this._x=e}_createClass2(n,[{key:"areaStart",value:function t(){this._line=0}},{key:"areaEnd",value:function t(){this._line=NaN}},{key:"lineStart",value:function t(){this._point=0}},{key:"lineEnd",value:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}},{key:"point",value:function t(e,n){e=+e,n=+n;switch(this._point){case 0:{this._point=1;if(this._line)this._context.lineTo(e,n);else this._context.moveTo(e,n);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}]);return n}();function Ix(t){return new jx(t,true)}function Lx(t){return new jx(t,false)}function Hx(t,e){this._basis=new Px(t);this._beta=e}Hx.prototype={lineStart:function t(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function t(){var e=this._x,n=this._y,r=e.length-1;if(r>0){var i=e[0],a=n[0],o=e[r]-i,s=n[r]-a,u=-1,l;while(++u<=r){l=u/r;this._basis.point(this._beta*e[u]+(1-this._beta)*(i+l*o),this._beta*n[u]+(1-this._beta)*(a+l*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};var Ux=function e(n){function t(t){return n===1?new Px(t):new Hx(t,n)}t.beta=function(t){return e(+t)};return t}(.85);function Gx(t,e,n){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-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Vx(t,e){this._context=t;this._k=(1-e)/6}Vx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Gx(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;this._x1=e,this._y1=n;break;case 2:this._point=3;default:Gx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Wx=function e(n){function t(t){return new Vx(t,n)}t.tension=function(t){return e(+t)};return t}(0);function qx(t,e){this._context=t;this._k=(1-e)/6}qx.prototype={areaStart:Tx,areaEnd:Tx,lineStart:function t(){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 t(){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);break}}},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:Gx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Kx=function e(n){function t(t){return new qx(t,n)}t.tension=function(t){return e(+t)};return t}(0);function Yx(t,e){this._context=t;this._k=(1-e)/6}Yx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;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:Gx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Xx=function e(n){function t(t){return new Yx(t,n)}t.tension=function(t){return e(+t)};return t}(0);function Zx(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>k3){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u;i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>k3){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/c;o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function $x(t,e){this._context=t;this._alpha=e}$x.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){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 t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Zx(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Jx=function e(n){function t(t){return n?new $x(t,n):new Vx(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function Qx(t,e){this._context=t;this._alpha=e}Qx.prototype={areaStart:Tx,areaEnd:Tx,lineStart:function t(){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 t(){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);break}}},point:function t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:Zx(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var t6=function e(n){function t(t){return n?new Qx(t,n):new qx(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function e6(t,e){this._context=t;this._alpha=e}e6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){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 t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:Zx(this,e,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var n6=function e(n){function t(t){return n?new e6(t,n):new Yx(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function r6(t){this._context=t}r6.prototype={areaStart:Tx,areaEnd:Tx,lineStart:function t(){this._point=0},lineEnd:function t(){if(this._point)this._context.closePath()},point:function t(e,n){e=+e,n=+n;if(this._point)this._context.lineTo(e,n);else this._point=1,this._context.moveTo(e,n)}};function i6(t){return new r6(t)}function a6(t){return t<0?-1:1}function o6(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(a6(a)+a6(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function s6(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function u6(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function l6(t){this._context=t}l6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:u6(this,this._t0,s6(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){var r=NaN;e=+e,n=+n;if(e===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;u6(this,s6(this,r=o6(this,e,n)),r);break;default:u6(this,this._t0,r=o6(this,e,n));break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n;this._t0=r}};function c6(t){this._context=new f6(t)}(c6.prototype=Object.create(l6.prototype)).point=function(t,e){l6.prototype.point.call(this,e,t)};function f6(t){this._context=t}f6.prototype={moveTo:function t(e,n){this._context.moveTo(n,e)},closePath:function t(){this._context.closePath()},lineTo:function t(e,n){this._context.lineTo(n,e)},bezierCurveTo:function t(e,n,r,i,a,o){this._context.bezierCurveTo(n,e,i,r,o,a)}};function h6(t){return new l6(t)}function d6(t){return new c6(t)}function g6(t){this._context=t}g6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=[];this._y=[]},lineEnd:function t(){var e=this._x,n=this._y,r=e.length;if(r){this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]);if(r===2){this._context.lineTo(e[1],n[1])}else{var i=v6(e),a=v6(n);for(var o=0,s=1;s<r;++o,++s){this._context.bezierCurveTo(i[0][o],a[0][o],i[1][o],a[1][o],e[s],n[s])}}}if(this._line||this._line!==0&&r===1)this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};function v6(t){var e,n=t.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);i[0]=0,a[0]=2,o[0]=t[0]+2*t[1];for(e=1;e<n-1;++e){i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1]}i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n];for(e=1;e<n;++e){r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1]}i[n-1]=o[n-1]/a[n-1];for(e=n-2;e>=0;--e){i[e]=(o[e]-i[e+1])/a[e]}a[n-1]=(t[n]+i[n-1])/2;for(e=0;e<n-1;++e){a[e]=2*t[e+1]-i[e+1]}return[i,a]}function p6(t){return new g6(t)}function y6(t,e){this._context=t;this._t=e}y6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=this._y=NaN;this._point=0},lineEnd:function t(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(e,n)}else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y);this._context.lineTo(r,n)}break}}this._x=e,this._y=n}};function m6(t){return new y6(t,.5)}function _6(t){return new y6(t,0)}function b6(t){return new y6(t,1)}function w6(t,e){if(!((o=t.length)>1))return;for(var n=1,r,i,a=t[e[0]],o,s=a.length;n<o;++n){i=a,a=t[e[n]];for(r=0;r<s;++r){a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}}}function x6(t){var e=t.length,n=new Array(e);while(--e>=0){n[e]=e}return n}function k6(t,e){return t[e]}function S6(t){var e=[];e.key=t;return e}function C6(){var l=v3([]),c=x6,f=w6,h=k6;function e(t){var e=Array.from(l.apply(this,arguments),S6),n,r=e.length,i=-1,a;var o=_createForOfIteratorHelper2(t),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;for(n=0,++i;n<r;++n){(e[n][i]=[0,+h(u,e[n].key,i,t)]).data=u}}}catch(t){o.e(t)}finally{o.f()}for(n=0,a=j3(c(e));n<r;++n){e[a[n]].index=n}f(e,a);return e}e.keys=function(t){return arguments.length?(l=typeof t==="function"?t:v3(Array.from(t)),e):l};e.value=function(t){return arguments.length?(h=typeof t==="function"?t:v3(+t),e):h};e.order=function(t){return arguments.length?(c=t==null?x6:typeof t==="function"?t:v3(Array.from(t)),e):c};e.offset=function(t){return arguments.length?(f=t==null?w6:t,e):f};return e}function E6(t,e){if(!((r=t.length)>0))return;for(var n,r,i=0,a=t[0].length,o;i<a;++i){for(o=n=0;n<r;++n){o+=t[n][i][1]||0}if(o)for(n=0;n<r;++n){t[n][i][1]/=o}}w6(t,e)}function A6(t,e){if(!((u=t.length)>0))return;for(var n,r=0,i,a,o,s,u,l=t[e[0]].length;r<l;++r){for(o=s=0,n=0;n<u;++n){if((a=(i=t[e[n]][r])[1]-i[0])>0){i[0]=o,i[1]=o+=a}else if(a<0){i[1]=s,i[0]=s+=a}else{i[0]=0,i[1]=a}}}}function M6(t,e){if(!((i=t.length)>0))return;for(var n=0,r=t[e[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o){s+=t[o][n][1]||0}r[n][1]+=r[n][0]=-s/2}w6(t,e)}function R6(t,e){if(!((o=t.length)>0)||!((a=(i=t[e[0]]).length)>0))return;for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,u=0,l=0;s<o;++s){var c=t[e[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2;for(var g=0;g<s;++g){var v=t[e[g]],p=v[r][1]||0,y=v[r-1][1]||0;d+=p-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n;if(u)n-=l/u}i[r-1][1]+=i[r-1][0]=n;w6(t,e)}function T6(t){var n=t.map(O6);return x6(t).sort(function(t,e){return n[t]-n[e]})}function O6(t){var e=-1,n=0,r=t.length,i,a=-Infinity;while(++e<r){if((i=+t[e][1])>a)a=i,n=e}return n}function P6(t){var n=t.map(B6);return x6(t).sort(function(t,e){return n[t]-n[e]})}function B6(t){var e=0,n=-1,r=t.length,i;while(++n<r){if(i=+t[n][1])e+=i}return e}function D6(t){return P6(t).reverse()}function N6(t){var e=t.length,n,r,i=t.map(B6),a=T6(t),o=0,s=0,u=[],l=[];for(n=0;n<e;++n){r=a[n];if(o<s){o+=i[r];u.push(r)}else{s+=i[r];l.push(r)}}return l.reverse().concat(u)}function z6(t){return x6(t).reverse()}var F6=Object.freeze({__proto__:null,arc:z3,area:V3,line:G3,pie:K3,areaRadial:Q3,radialArea:Q3,lineRadial:J3,radialLine:J3,pointRadial:tx,linkHorizontal:sx,linkVertical:ux,linkRadial:lx,symbol:Rx,symbols:Mx,symbolCircle:cx,symbolCross:fx,symbolDiamond:gx,symbolSquare:bx,symbolStar:_x,symbolTriangle:xx,symbolWye:Ax,curveBasisClosed:Nx,curveBasisOpen:Fx,curveBasis:Bx,curveBumpX:Ix,curveBumpY:Lx,curveBundle:Ux,curveCardinalClosed:Kx,curveCardinalOpen:Xx,curveCardinal:Wx,curveCatmullRomClosed:t6,curveCatmullRomOpen:n6,curveCatmullRom:Jx,curveLinearClosed:i6,curveLinear:L3,curveMonotoneX:h6,curveMonotoneY:d6,curveNatural:p6,curveStep:m6,curveStepAfter:b6,curveStepBefore:_6,stack:C6,stackOffsetExpand:E6,stackOffsetDiverging:A6,stackOffsetNone:w6,stackOffsetSilhouette:M6,stackOffsetWiggle:R6,stackOrderAppearance:T6,stackOrderAscending:P6,stackOrderDescending:D6,stackOrderInsideOut:N6,stackOrderNone:x6,stackOrderReverse:z6});function j6(t){if(t.replace(/\s+/g,"")==="")return t;var e=(new DOMParser).parseFromString(t.replace(/<[^>]+>/g,""),"text/html");return e.documentElement?e.documentElement.textContent:t}function I6(t,e){e=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},e);var n=document.createElement("canvas").getContext("2d");var r=[];r.push(e["font-style"]);r.push(e["font-variant"]);r.push(e["font-weight"]);r.push(typeof e["font-size"]==="string"?e["font-size"]:"".concat(e["font-size"],"px"));r.push(e["font-family"]);n.font=r.join(" ");if(t instanceof Array)return t.map(function(t){return n.measureText(j6(t)).width});return n.measureText(j6(t)).width}function L6(t){return t.toString().replace(/^\s+|\s+$/g,"")}function H6(t){return t.toString().replace(/^\s+/,"")}function U6(t){return t.toString().replace(/\s+$/,"")}var G6="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",V6={},W6=32;var q6,K6,Y6,X6;var Z6=function t(e){if(!q6){q6=I6(G6,{"font-family":"DejaVuSans","font-size":W6});K6=I6(G6,{"font-family":"-apple-system","font-size":W6});Y6=I6(G6,{"font-family":"monospace","font-size":W6});X6=I6(G6,{"font-family":"sans-serif","font-size":W6})}if(!(e instanceof Array))e=e.split(",");e=e.map(function(t){return L6(t)});for(var n=0;n<e.length;n++){var r=e[n];if(V6[r]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(r))return r;else if(V6[r]===false)continue;var i=I6(G6,{"font-family":r,"font-size":W6});V6[r]=i!==Y6;if(V6[r])V6[r]=i!==X6;if(K6&&V6[r])V6[r]=i!==K6;if(q6&&V6[r])V6[r]=i!==q6;if(V6[r])return r}return false};var $6=Z6;var J6=function t(){return Is("html").attr("dir")==="rtl"||Is("body").attr("dir")==="rtl"||Is("html").style("direction")==="rtl"||Is("body").style("direction")==="rtl"};function Q6(t){if(t===void 0)t="undefined";else if(!(typeof t==="string"||t instanceof String))t=JSON.stringify(t);return t}var t9=[[/[\300-\305]/g,"A"],[/[\340-\345]/g,"a"],[/[\306]/g,"AE"],[/[\346]/g,"ae"],[/[\337]/g,"B"],[/[\307]/g,"C"],[/[\347]/g,"c"],[/[\320\336\376]/g,"D"],[/[\360]/g,"d"],[/[\310-\313]/g,"E"],[/[\350-\353]/g,"e"],[/[\314-\317]/g,"I"],[/[\354-\357]/g,"i"],[/[\321]/g,"N"],[/[\361]/g,"n"],[/[\u014c\322-\326\330]/g,"O"],[/[\u014d\362-\366\370]/g,"o"],[/[\u016a\331-\334]/g,"U"],[/[\u016b\371-\374]/g,"u"],[/[\327]/g,"x"],[/[\335]/g,"Y"],[/[\375\377]/g,"y"]];function e9(t){return"".concat(t).replace(/[^A-Za-z0-9\-_]/g,function(t){if(t===" ")return"-";var e=false;for(var n=0;n<t9.length;n++){if(new RegExp(t9[n][0]).test(t)){e=t9[n][1];break}}return e||""})}var n9=["u0903","u093B","u093E","u093F","u0940","u0949","u094A","u094B","u094C","u094E","u094F","u0982","u0983","u09BE","u09BF","u09C0","u09C7","u09C8","u09CB","u09CC","u09D7","u0A03","u0A3E","u0A3F","u0A40","u0A83","u0ABE","u0ABF","u0AC0","u0AC9","u0ACB","u0ACC","u0B02","u0B03","u0B3E","u0B40","u0B47","u0B48","u0B4B","u0B4C","u0B57","u0BBE","u0BBF","u0BC1","u0BC2","u0BC6","u0BC7","u0BC8","u0BCA","u0BCB","u0BCC","u0BD7","u0C01","u0C02","u0C03","u0C41","u0C42","u0C43","u0C44","u0C82","u0C83","u0CBE","u0CC0","u0CC1","u0CC2","u0CC3","u0CC4","u0CC7","u0CC8","u0CCA","u0CCB","u0CD5","u0CD6","u0D02","u0D03","u0D3E","u0D3F","u0D40","u0D46","u0D47","u0D48","u0D4A","u0D4B","u0D4C","u0D57","u0D82","u0D83","u0DCF","u0DD0","u0DD1","u0DD8","u0DD9","u0DDA","u0DDB","u0DDC","u0DDD","u0DDE","u0DDF","u0DF2","u0DF3","u0F3E","u0F3F","u0F7F","u102B","u102C","u1031","u1038","u103B","u103C","u1056","u1057","u1062","u1063","u1064","u1067","u1068","u1069","u106A","u106B","u106C","u106D","u1083","u1084","u1087","u1088","u1089","u108A","u108B","u108C","u108F","u109A","u109B","u109C","u17B6","u17BE","u17BF","u17C0","u17C1","u17C2","u17C3","u17C4","u17C5","u17C7","u17C8","u1923","u1924","u1925","u1926","u1929","u192A","u192B","u1930","u1931","u1933","u1934","u1935","u1936","u1937","u1938","u1A19","u1A1A","u1A55","u1A57","u1A61","u1A63","u1A64","u1A6D","u1A6E","u1A6F","u1A70","u1A71","u1A72","u1B04","u1B35","u1B3B","u1B3D","u1B3E","u1B3F","u1B40","u1B41","u1B43","u1B44","u1B82","u1BA1","u1BA6","u1BA7","u1BAA","u1BE7","u1BEA","u1BEB","u1BEC","u1BEE","u1BF2","u1BF3","u1C24","u1C25","u1C26","u1C27","u1C28","u1C29","u1C2A","u1C2B","u1C34","u1C35","u1CE1","u1CF2","u1CF3","u302E","u302F","uA823","uA824","uA827","uA880","uA881","uA8B4","uA8B5","uA8B6","uA8B7","uA8B8","uA8B9","uA8BA","uA8BB","uA8BC","uA8BD","uA8BE","uA8BF","uA8C0","uA8C1","uA8C2","uA8C3","uA952","uA953","uA983","uA9B4","uA9B5","uA9BA","uA9BB","uA9BD","uA9BE","uA9BF","uA9C0","uAA2F","uAA30","uAA33","uAA34","uAA4D","uAA7B","uAA7D","uAAEB","uAAEE","uAAEF","uAAF5","uABE3","uABE4","uABE6","uABE7","uABE9","uABEA","uABEC"];var r9=["u0300","u0301","u0302","u0303","u0304","u0305","u0306","u0307","u0308","u0309","u030A","u030B","u030C","u030D","u030E","u030F","u0310","u0311","u0312","u0313","u0314","u0315","u0316","u0317","u0318","u0319","u031A","u031B","u031C","u031D","u031E","u031F","u0320","u0321","u0322","u0323","u0324","u0325","u0326","u0327","u0328","u0329","u032A","u032B","u032C","u032D","u032E","u032F","u0330","u0331","u0332","u0333","u0334","u0335","u0336","u0337","u0338","u0339","u033A","u033B","u033C","u033D","u033E","u033F","u0340","u0341","u0342","u0343","u0344","u0345","u0346","u0347","u0348","u0349","u034A","u034B","u034C","u034D","u034E","u034F","u0350","u0351","u0352","u0353","u0354","u0355","u0356","u0357","u0358","u0359","u035A","u035B","u035C","u035D","u035E","u035F","u0360","u0361","u0362","u0363","u0364","u0365","u0366","u0367","u0368","u0369","u036A","u036B","u036C","u036D","u036E","u036F","u0483","u0484","u0485","u0486","u0487","u0591","u0592","u0593","u0594","u0595","u0596","u0597","u0598","u0599","u059A","u059B","u059C","u059D","u059E","u059F","u05A0","u05A1","u05A2","u05A3","u05A4","u05A5","u05A6","u05A7","u05A8","u05A9","u05AA","u05AB","u05AC","u05AD","u05AE","u05AF","u05B0","u05B1","u05B2","u05B3","u05B4","u05B5","u05B6","u05B7","u05B8","u05B9","u05BA","u05BB","u05BC","u05BD","u05BF","u05C1","u05C2","u05C4","u05C5","u05C7","u0610","u0611","u0612","u0613","u0614","u0615","u0616","u0617","u0618","u0619","u061A","u064B","u064C","u064D","u064E","u064F","u0650","u0651","u0652","u0653","u0654","u0655","u0656","u0657","u0658","u0659","u065A","u065B","u065C","u065D","u065E","u065F","u0670","u06D6","u06D7","u06D8","u06D9","u06DA","u06DB","u06DC","u06DF","u06E0","u06E1","u06E2","u06E3","u06E4","u06E7","u06E8","u06EA","u06EB","u06EC","u06ED","u0711","u0730","u0731","u0732","u0733","u0734","u0735","u0736","u0737","u0738","u0739","u073A","u073B","u073C","u073D","u073E","u073F","u0740","u0741","u0742","u0743","u0744","u0745","u0746","u0747","u0748","u0749","u074A","u07A6","u07A7","u07A8","u07A9","u07AA","u07AB","u07AC","u07AD","u07AE","u07AF","u07B0","u07EB","u07EC","u07ED","u07EE","u07EF","u07F0","u07F1","u07F2","u07F3","u0816","u0817","u0818","u0819","u081B","u081C","u081D","u081E","u081F","u0820","u0821","u0822","u0823","u0825","u0826","u0827","u0829","u082A","u082B","u082C","u082D","u0859","u085A","u085B","u08E3","u08E4","u08E5","u08E6","u08E7","u08E8","u08E9","u08EA","u08EB","u08EC","u08ED","u08EE","u08EF","u08F0","u08F1","u08F2","u08F3","u08F4","u08F5","u08F6","u08F7","u08F8","u08F9","u08FA","u08FB","u08FC","u08FD","u08FE","u08FF","u0900","u0901","u0902","u093A","u093C","u0941","u0942","u0943","u0944","u0945","u0946","u0947","u0948","u094D","u0951","u0952","u0953","u0954","u0955","u0956","u0957","u0962","u0963","u0981","u09BC","u09C1","u09C2","u09C3","u09C4","u09CD","u09E2","u09E3","u0A01","u0A02","u0A3C","u0A41","u0A42","u0A47","u0A48","u0A4B","u0A4C","u0A4D","u0A51","u0A70","u0A71","u0A75","u0A81","u0A82","u0ABC","u0AC1","u0AC2","u0AC3","u0AC4","u0AC5","u0AC7","u0AC8","u0ACD","u0AE2","u0AE3","u0B01","u0B3C","u0B3F","u0B41","u0B42","u0B43","u0B44","u0B4D","u0B56","u0B62","u0B63","u0B82","u0BC0","u0BCD","u0C00","u0C3E","u0C3F","u0C40","u0C46","u0C47","u0C48","u0C4A","u0C4B","u0C4C","u0C4D","u0C55","u0C56","u0C62","u0C63","u0C81","u0CBC","u0CBF","u0CC6","u0CCC","u0CCD","u0CE2","u0CE3","u0D01","u0D41","u0D42","u0D43","u0D44","u0D4D","u0D62","u0D63","u0DCA","u0DD2","u0DD3","u0DD4","u0DD6","u0E31","u0E34","u0E35","u0E36","u0E37","u0E38","u0E39","u0E3A","u0E47","u0E48","u0E49","u0E4A","u0E4B","u0E4C","u0E4D","u0E4E","u0EB1","u0EB4","u0EB5","u0EB6","u0EB7","u0EB8","u0EB9","u0EBB","u0EBC","u0EC8","u0EC9","u0ECA","u0ECB","u0ECC","u0ECD","u0F18","u0F19","u0F35","u0F37","u0F39","u0F71","u0F72","u0F73","u0F74","u0F75","u0F76","u0F77","u0F78","u0F79","u0F7A","u0F7B","u0F7C","u0F7D","u0F7E","u0F80","u0F81","u0F82","u0F83","u0F84","u0F86","u0F87","u0F8D","u0F8E","u0F8F","u0F90","u0F91","u0F92","u0F93","u0F94","u0F95","u0F96","u0F97","u0F99","u0F9A","u0F9B","u0F9C","u0F9D","u0F9E","u0F9F","u0FA0","u0FA1","u0FA2","u0FA3","u0FA4","u0FA5","u0FA6","u0FA7","u0FA8","u0FA9","u0FAA","u0FAB","u0FAC","u0FAD","u0FAE","u0FAF","u0FB0","u0FB1","u0FB2","u0FB3","u0FB4","u0FB5","u0FB6","u0FB7","u0FB8","u0FB9","u0FBA","u0FBB","u0FBC","u0FC6","u102D","u102E","u102F","u1030","u1032","u1033","u1034","u1035","u1036","u1037","u1039","u103A","u103D","u103E","u1058","u1059","u105E","u105F","u1060","u1071","u1072","u1073","u1074","u1082","u1085","u1086","u108D","u109D","u135D","u135E","u135F","u1712","u1713","u1714","u1732","u1733","u1734","u1752","u1753","u1772","u1773","u17B4","u17B5","u17B7","u17B8","u17B9","u17BA","u17BB","u17BC","u17BD","u17C6","u17C9","u17CA","u17CB","u17CC","u17CD","u17CE","u17CF","u17D0","u17D1","u17D2","u17D3","u17DD","u180B","u180C","u180D","u18A9","u1920","u1921","u1922","u1927","u1928","u1932","u1939","u193A","u193B","u1A17","u1A18","u1A1B","u1A56","u1A58","u1A59","u1A5A","u1A5B","u1A5C","u1A5D","u1A5E","u1A60","u1A62","u1A65","u1A66","u1A67","u1A68","u1A69","u1A6A","u1A6B","u1A6C","u1A73","u1A74","u1A75","u1A76","u1A77","u1A78","u1A79","u1A7A","u1A7B","u1A7C","u1A7F","u1AB0","u1AB1","u1AB2","u1AB3","u1AB4","u1AB5","u1AB6","u1AB7","u1AB8","u1AB9","u1ABA","u1ABB","u1ABC","u1ABD","u1B00","u1B01","u1B02","u1B03","u1B34","u1B36","u1B37","u1B38","u1B39","u1B3A","u1B3C","u1B42","u1B6B","u1B6C","u1B6D","u1B6E","u1B6F","u1B70","u1B71","u1B72","u1B73","u1B80","u1B81","u1BA2","u1BA3","u1BA4","u1BA5","u1BA8","u1BA9","u1BAB","u1BAC","u1BAD","u1BE6","u1BE8","u1BE9","u1BED","u1BEF","u1BF0","u1BF1","u1C2C","u1C2D","u1C2E","u1C2F","u1C30","u1C31","u1C32","u1C33","u1C36","u1C37","u1CD0","u1CD1","u1CD2","u1CD4","u1CD5","u1CD6","u1CD7","u1CD8","u1CD9","u1CDA","u1CDB","u1CDC","u1CDD","u1CDE","u1CDF","u1CE0","u1CE2","u1CE3","u1CE4","u1CE5","u1CE6","u1CE7","u1CE8","u1CED","u1CF4","u1CF8","u1CF9","u1DC0","u1DC1","u1DC2","u1DC3","u1DC4","u1DC5","u1DC6","u1DC7","u1DC8","u1DC9","u1DCA","u1DCB","u1DCC","u1DCD","u1DCE","u1DCF","u1DD0","u1DD1","u1DD2","u1DD3","u1DD4","u1DD5","u1DD6","u1DD7","u1DD8","u1DD9","u1DDA","u1DDB","u1DDC","u1DDD","u1DDE","u1DDF","u1DE0","u1DE1","u1DE2","u1DE3","u1DE4","u1DE5","u1DE6","u1DE7","u1DE8","u1DE9","u1DEA","u1DEB","u1DEC","u1DED","u1DEE","u1DEF","u1DF0","u1DF1","u1DF2","u1DF3","u1DF4","u1DF5","u1DFC","u1DFD","u1DFE","u1DFF","u20D0","u20D1","u20D2","u20D3","u20D4","u20D5","u20D6","u20D7","u20D8","u20D9","u20DA","u20DB","u20DC","u20E1","u20E5","u20E6","u20E7","u20E8","u20E9","u20EA","u20EB","u20EC","u20ED","u20EE","u20EF","u20F0","u2CEF","u2CF0","u2CF1","u2D7F","u2DE0","u2DE1","u2DE2","u2DE3","u2DE4","u2DE5","u2DE6","u2DE7","u2DE8","u2DE9","u2DEA","u2DEB","u2DEC","u2DED","u2DEE","u2DEF","u2DF0","u2DF1","u2DF2","u2DF3","u2DF4","u2DF5","u2DF6","u2DF7","u2DF8","u2DF9","u2DFA","u2DFB","u2DFC","u2DFD","u2DFE","u2DFF","u302A","u302B","u302C","u302D","u3099","u309A","uA66F","uA674","uA675","uA676","uA677","uA678","uA679","uA67A","uA67B","uA67C","uA67D","uA69E","uA69F","uA6F0","uA6F1","uA802","uA806","uA80B","uA825","uA826","uA8C4","uA8E0","uA8E1","uA8E2","uA8E3","uA8E4","uA8E5","uA8E6","uA8E7","uA8E8","uA8E9","uA8EA","uA8EB","uA8EC","uA8ED","uA8EE","uA8EF","uA8F0","uA8F1","uA926","uA927","uA928","uA929","uA92A","uA92B","uA92C","uA92D","uA947","uA948","uA949","uA94A","uA94B","uA94C","uA94D","uA94E","uA94F","uA950","uA951","uA980","uA981","uA982","uA9B3","uA9B6","uA9B7","uA9B8","uA9B9","uA9BC","uA9E5","uAA29","uAA2A","uAA2B","uAA2C","uAA2D","uAA2E","uAA31","uAA32","uAA35","uAA36","uAA43","uAA4C","uAA7C","uAAB0","uAAB2","uAAB3","uAAB4","uAAB7","uAAB8","uAABE","uAABF","uAAC1","uAAEC","uAAED","uAAF6","uABE5","uABE8","uABED","uFB1E","uFE00","uFE01","uFE02","uFE03","uFE04","uFE05","uFE06","uFE07","uFE08","uFE09","uFE0A","uFE0B","uFE0C","uFE0D","uFE0E","uFE0F","uFE20","uFE21","uFE22","uFE23","uFE24","uFE25","uFE26","uFE27","uFE28","uFE29","uFE2A","uFE2B","uFE2C","uFE2D","uFE2E","uFE2F"];var i9=n9.concat(r9);var a9=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var o9=["'","<","(","{","[","u00AB","u300A","u3008"];var s9=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(a9);var u9="က-ဪဿ-၉ၐ-ၕ";var l9="-ゟ゠-ヿ-+--}⦅-゚㐀-䶿";var c9="㐀-龿";var f9="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var h9=u9+c9+l9+f9;var d9=new RegExp("(\\".concat(a9.join("|\\"),")*[^\\s|\\").concat(a9.join("|\\"),"]*(\\").concat(a9.join("|\\"),")*"),"g");var g9=new RegExp("[".concat(h9,"]"));var v9=new RegExp("(\\".concat(o9.join("|\\"),")*[").concat(h9,"](\\").concat(s9.join("|\\"),"|\\").concat(i9.join("|\\"),")*|[a-z0-9]+"),"gi");function p9(t){if(!g9.test(t))return Q6(t).match(d9).filter(function(t){return t.length});return Db(Q6(t).match(d9).map(function(t){if(g9.test(t))return t.match(v9);return[t]}))}function y9(){var d="sans-serif",g=10,v=400,p=200,y,m=null,_=false,b=p9,w=200;function e(t){t=Q6(t);if(y===void 0)y=Math.ceil(g*1.4);var e=b(t);var n={"font-family":d,"font-size":g,"font-weight":v,"line-height":y};var r=1,i="",a=false,o=0;var s=[],u=I6(e,n),l=I6(" ",n);for(var c=0;c<e.length;c++){var f=e[c];var h=u[e.indexOf(f)];f+=t.slice(i.length+f.length).match("^( |\n)*","g")[0];if(i.slice(-1)==="\n"||o+h>w){if(!c&&!_){a=true;break}if(s.length>=r)s[r-1]=U6(s[r-1]);r++;if(y*r>p||h>w&&!_||m&&r>m){a=true;break}o=0;s.push(f)}else if(!c)s[0]=f;else s[r-1]+=f;i+=f;o+=h;o+=f.match(/[\s]*$/g)[0].length*l}return{lines:s,sentence:t,truncated:a,widths:I6(s,n),words:e}}e.fontFamily=function(t){return arguments.length?(d=t,e):d};e.fontSize=function(t){return arguments.length?(g=t,e):g};e.fontWeight=function(t){return arguments.length?(v=t,e):v};e.height=function(t){return arguments.length?(p=t,e):p};e.lineHeight=function(t){return arguments.length?(y=t,e):y};e.maxLines=function(t){return arguments.length?(m=t,e):m};e.overflow=function(t){return arguments.length?(_=t,e):_};e.split=function(t){return arguments.length?(b=t,e):b};e.width=function(t){return arguments.length?(w=t,e):w};return e}function m9(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){m9=function t(e){return typeof e}}else{m9=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return m9(t)}function _9(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function b9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function w9(t,e,n){if(e)b9(t.prototype,e);if(n)b9(t,n);return t}function x9(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)k9(t,e)}function k9(t,e){k9=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return k9(t,e)}function S9(i){var a=A9();return function t(){var e=M9(i),n;if(a){var r=M9(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return C9(this,n)}}function C9(t,e){if(e&&(m9(e)==="object"||typeof e==="function")){return e}return E9(t)}function E9(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function A9(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function M9(t){M9=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return M9(t)}var R9={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var T9=function(t){x9(r,t);var e=S9(r);function r(){var n;_9(this,r);n=e.call(this);n._ariaHidden=nb("false");n._delay=0;n._duration=0;n._ellipsis=function(t,e){return e?"".concat(t.replace(/\.|,$/g,""),"..."):""};n._fontColor=nb("black");n._fontFamily=nb(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=nb(50);n._fontMin=nb(8);n._fontOpacity=nb(1);n._fontResize=nb(false);n._fontSize=nb(10);n._fontStroke=nb("transparent");n._fontStrokeWidth=nb(0);n._fontWeight=nb(400);n._height=Ul("height",200);n._html=R9;n._id=function(t,e){return t.id||"".concat(e)};n._lineHeight=function(t,e){return n._fontSize(t,e)*1.2};n._maxLines=nb(null);n._on={};n._overflow=nb(false);n._padding=nb(0);n._pointerEvents=nb("auto");n._rotate=nb(0);n._rotateAnchor=function(t){return[t.w/2,t.h/2]};n._split=p9;n._text=Ul("text");n._textAnchor=nb("start");n._verticalAlign=nb("top");n._width=Ul("width",200);n._x=Ul("x",0);n._y=Ul("y",0);return n}w9(r,[{key:"render",value:function t(e){var B=this;if(this._select===void 0)this.select(Is("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var D=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(t,e,n){var r=B._text(e,n);if(r===void 0)return t;r=L6(r);var i=B._fontResize(e,n);var a=B._lineHeight(e,n)/B._fontSize(e,n);var o=i?B._fontMax(e,n):B._fontSize(e,n),s=i?o*a:B._lineHeight(e,n),u=1,l=[],c,f;var h={"font-family":$6(B._fontFamily(e,n)),"font-size":o,"font-weight":B._fontWeight(e,n),"line-height":s};var d=Zb(B._padding(e,n));var g=B._height(e,n)-(d.top+d.bottom),v=B._width(e,n)-(d.left+d.right);var p=y9().fontFamily(h["font-family"]).fontSize(o).fontWeight(h["font-weight"]).lineHeight(s).maxLines(B._maxLines(e,n)).height(g).overflow(B._overflow(e,n)).width(v).split(B._split);var y=B._fontMax(e,n),m=B._fontMin(e,n),_=B._verticalAlign(e,n),b=B._split(r,n);function w(){var t=function t(){if(u<1)l=[D._ellipsis("",u)];else l[u-1]=D._ellipsis(l[u-1],u)};o=Eb([o,m]);o=Ab([o,y]);if(i){s=o*a;p.fontSize(o).lineHeight(s);h["font-size"]=o;h["line-height"]=s}f=p(r);l=f.lines.filter(function(t){return t!==""});u=l.length;if(f.truncated){if(i){o--;if(o<m){o=m;t();return}else w()}else t()}}if(v>m&&(g>s||i&&g>m*a)){if(i){c=I6(b,h);var x=1.165+v/g*.1,k=v*g,S=Eb(c),C=zb(c,function(t){return t*s})*x;if(S>v||C>k){var E=Math.sqrt(k/C),A=v/S;var M=Ab([E,A]);o=Math.floor(o*M)}var R=Math.floor(g*.8);if(o>R)o=R}w()}if(l.length){var T=u*s;var O=B._rotate(e,n);var P=O===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;P-=s*.1;t.push({aH:B._ariaHidden(e,n),data:e,i:n,lines:l,fC:B._fontColor(e,n),fStroke:B._fontStroke(e,n),fSW:B._fontStrokeWidth(e,n),fF:h["font-family"],fO:B._fontOpacity(e,n),fW:h["font-weight"],id:B._id(e,n),tA:B._textAnchor(e,n),vA:B._verticalAlign(e,n),widths:f.widths,fS:o,lH:s,w:v,h:g,r:O,x:B._x(e,n)+d.left,y:B._y(e,n)+P+d.top})}return t},[]),function(t){return B._id(t.data,t.i)});var i=Nl().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(i).attr("opacity",0).style("opacity",0)}function r(t){t.attr("transform",function(t,e){var n=D._rotateAnchor(t,e);return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.r,", ").concat(n[0],", ").concat(n[1],")")})}var a=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(t){return"d3plus-textBox-".concat(e9(t.id))}).call(r).merge(n);var o=J6();a.order().style("pointer-events",function(t){return B._pointerEvents(t.data,t.i)}).each(function(n){function t(t){var a=false;t[D._html?"html":"text"](function(i){var t=U6(i).replace(/&([^\;&]*)/g,function(t,e){return e==="amp"?t:"&".concat(e)}).replace(/<([^A-z^/]+)/g,function(t,e){return"<".concat(e)}).replace(/<$/g,"<").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(t,e,n){return"".concat(e).concat(n).concat(e.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(t,e,n){return"".concat(n.replace("</","<")).concat(e).concat(n)});var e=new RegExp(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g);if(t.match(e)){t=t.replace(e,function(t,e,n){a=D._html[e]?e:false;if(a){var r=D._html[a];if(i.includes("</".concat(a,">")))a=false;return'<tspan style="'.concat(r,'">').concat(n,"</tspan>")}return n})}else if(a.length){t='<tspan style="'.concat(D._html[a],'">').concat(t,"</tspan>")}return t})}function e(t){t.attr("aria-hidden",n.aH).attr("dir",o?"rtl":"ltr").attr("fill",n.fC).attr("stroke",n.fStroke).attr("stroke-width",n.fSW).attr("text-anchor",n.tA).attr("font-family",n.fF).style("font-family",n.fF).attr("font-size","".concat(n.fS,"px")).style("font-size","".concat(n.fS,"px")).attr("font-weight",n.fW).style("font-weight",n.fW).attr("x","".concat(n.tA==="middle"?n.w/2:o?n.tA==="start"?n.w:0:n.tA==="end"?n.w:2*Math.sin(Math.PI*n.r/180),"px")).attr("y",function(t,e){return n.r===0||n.vA==="top"?"".concat((e+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(e-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(e+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var r=Is(this).selectAll("text").data(n.lines);if(D._duration===0){r.call(t).call(e);r.exit().remove();r.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(t).call(e).attr("opacity",n.fO).style("opacity",n.fO)}else{r.call(t).transition(i).call(e);r.exit().transition(i).attr("opacity",0).remove();r.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(t).call(e).merge(r).transition(i).delay(D._delay).call(e).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(i).call(r);var s=Object.keys(this._on),u=s.reduce(function(t,n){t[n]=function(t,e){return B._on[n](t.data,e)};return t},{});for(var l=0;l<s.length;l++){a.on(s[l],u[s[l]])}if(e)setTimeout(e,this._duration+100);return this}},{key:"ariaHidden",value:function t(e){return e!==undefined?(this._ariaHidden=typeof e==="function"?e:nb(e),this):this._ariaHidden}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"delay",value:function t(e){return arguments.length?(this._delay=e,this):this._delay}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"ellipsis",value:function t(e){return arguments.length?(this._ellipsis=typeof e==="function"?e:nb(e),this):this._ellipsis}},{key:"fontColor",value:function t(e){return arguments.length?(this._fontColor=typeof e==="function"?e:nb(e),this):this._fontColor}},{key:"fontFamily",value:function t(e){return arguments.length?(this._fontFamily=typeof e==="function"?e:nb(e),this):this._fontFamily}},{key:"fontMax",value:function t(e){return arguments.length?(this._fontMax=typeof e==="function"?e:nb(e),this):this._fontMax}},{key:"fontMin",value:function t(e){return arguments.length?(this._fontMin=typeof e==="function"?e:nb(e),this):this._fontMin}},{key:"fontOpacity",value:function t(e){return arguments.length?(this._fontOpacity=typeof e==="function"?e:nb(e),this):this._fontOpacity}},{key:"fontResize",value:function t(e){return arguments.length?(this._fontResize=typeof e==="function"?e:nb(e),this):this._fontResize}},{key:"fontSize",value:function t(e){return arguments.length?(this._fontSize=typeof e==="function"?e:nb(e),this):this._fontSize}},{key:"fontStroke",value:function t(e){return arguments.length?(this._fontStroke=typeof e==="function"?e:nb(e),this):this._fontStroke}},{key:"fontStrokeWidth",value:function t(e){return arguments.length?(this._fontStrokeWidth=typeof e==="function"?e:nb(e),this):this._fontStrokeWidth}},{key:"fontWeight",value:function t(e){return arguments.length?(this._fontWeight=typeof e==="function"?e:nb(e),this):this._fontWeight}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:nb(e),this):this._height}},{key:"html",value:function t(e){return arguments.length?(this._html=typeof e==="boolean"?e?R9:false:e,this):this._html}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:nb(e),this):this._id}},{key:"lineHeight",value:function t(e){return arguments.length?(this._lineHeight=typeof e==="function"?e:nb(e),this):this._lineHeight}},{key:"maxLines",value:function t(e){return arguments.length?(this._maxLines=typeof e==="function"?e:nb(e),this):this._maxLines}},{key:"overflow",value:function t(e){return arguments.length?(this._overflow=typeof e==="function"?e:nb(e),this):this._overflow}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:nb(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:nb(e),this):this._pointerEvents}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:nb(e),this):this._rotate}},{key:"rotateAnchor",value:function t(e){return arguments.length?(this._rotateAnchor=typeof e==="function"?e:nb(e),this):this._rotateAnchor}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"split",value:function t(e){return arguments.length?(this._split=e,this):this._split}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:nb(e),this):this._text}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:nb(e),this):this._textAnchor}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:nb(e),this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:nb(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:nb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:nb(e),this):this._y}}]);return r}(J_);var O9=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."];var P9=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];function B9(r){if(r===void 0)return"";var a=O9.map(function(t){return t.toLowerCase()});var o=P9.slice();o=o.concat(o.map(function(t){return"".concat(t,"s")}));var s=o.map(function(t){return t.toLowerCase()});var u=p9(r);return u.map(function(t,e){if(t){var n=t.toLowerCase();var r=s9.includes(n.charAt(n.length-1))?n.slice(0,-1):n;var i=s.indexOf(r);if(i>=0)return o[i];else if(a.includes(r)&&e!==0&&e!==u.length-1)return n;else return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}else return""}).reduce(function(t,e,n){if(n&&r.charAt(t.length)===" ")t+=" ";t+=e;return t},"")}var D9=function t(e,n){var r=n[0]-e[0],i=n[1]-e[1];return r*r+i*i};var N9=function t(e,n){return Math.sqrt(D9(e,n))};function z9(t){"@babel/helpers - typeof";return z9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z9(t)}function F9(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function j9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function I9(t,e,n){if(e)j9(t.prototype,e);if(n)j9(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function L9(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)H9(t,e)}function H9(t,e){H9=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return H9(t,e)}function U9(i){var a=W9();return function t(){var e=q9(i),n;if(a){var r=q9(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return G9(this,n)}}function G9(t,e){if(e&&(z9(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return V9(t)}function V9(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function W9(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function q9(t){q9=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return q9(t)}var K9=function(t){L9(n,t);var e=U9(n);function n(){var i;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";F9(this,n);i=e.call(this);i._activeOpacity=.25;i._activeStyle={stroke:function t(e,n){var r=i._fill(e,n);if(["transparent","none"].includes(r))r=i._stroke(e,n);return wn(r).darker(1)},"stroke-width":function t(e,n){var r=i._strokeWidth(e,n)||1;return r*3}};i._ariaLabel=nb("");i._backgroundImage=nb(false);i._backgroundImageClass=new u3;i._data=[];i._duration=600;i._fill=nb("black");i._fillOpacity=nb(1);i._hoverOpacity=.5;i._hoverStyle={stroke:function t(e,n){var r=i._fill(e,n);if(["transparent","none"].includes(r))r=i._stroke(e,n);return wn(r).darker(.5)},"stroke-width":function t(e,n){var r=i._strokeWidth(e,n)||1;return r*2}};i._id=function(t,e){return t.id!==void 0?t.id:e};i._label=nb(false);i._labelClass=new T9;i._labelConfig={fontColor:function t(e,n){return Ew(i._fill(e,n))},fontSize:12,padding:5};i._name="Shape";i._opacity=nb(1);i._pointerEvents=nb("visiblePainted");i._role=nb("presentation");i._rotate=nb(0);i._rx=nb(0);i._ry=nb(0);i._scale=nb(1);i._shapeRendering=nb("geometricPrecision");i._stroke=function(t,e){return wn(i._fill(t,e)).darker(1)};i._strokeDasharray=nb("0");i._strokeLinecap=nb("butt");i._strokeOpacity=nb(1);i._strokeWidth=nb(0);i._tagName=t;i._textAnchor=nb("start");i._vectorEffect=nb("non-scaling-stroke");i._verticalAlign=nb("top");i._x=Ul("x",0);i._y=Ul("y",0);return i}I9(n,[{key:"_aes",value:function t(){return{}}},{key:"_applyEvents",value:function t(e){var s=this;var u=Object.keys(this._on);var n=function t(o){e.on(u[o],function(t,e,n){if(!s._on[u[o]])return;if(e.i!==void 0)n=e.i;if(e.nested&&e.values){var r=function t(e,n){if(s._discrete==="x")return[s._x(e,n),i[1]];else if(s._discrete==="y")return[i[0],s._y(e,n)];else return[s._x(e,n),s._y(e,n)]};var i=Hs(t,s._select.node()),a=e.values.map(function(t){return N9(i,r(t,n))});n=a.indexOf(Ab(a));e=e.values[n]}s._on[u[o]].bind(s)(e,n,undefined,t)})};for(var r=0;r<u.length;r++){n(r)}}},{key:"_updateStyle",value:function t(e,n){var r=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function i(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],r._data.indexOf(t.values[0])):this(t,e)}var a={};for(var o in n){if({}.hasOwnProperty.call(n,o)){a[o]=i.bind(n[o])}}e.transition().duration(0).call(Kl,a)}},{key:"_applyStyle",value:function t(e){var n=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function r(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],n._data.indexOf(t.values[0])):this(t,e)}e.attr("fill",r.bind(this._fill)).attr("fill-opacity",r.bind(this._fillOpacity)).attr("rx",r.bind(this._rx)).attr("ry",r.bind(this._ry)).attr("stroke",r.bind(this._stroke)).attr("stroke-dasharray",r.bind(this._strokeDasharray)).attr("stroke-linecap",r.bind(this._strokeLinecap)).attr("stroke-opacity",r.bind(this._strokeOpacity)).attr("stroke-width",r.bind(this._strokeWidth)).attr("vector-effect",r.bind(this._vectorEffect))}},{key:"_applyTransform",value:function t(e){var n=this;e.attr("transform",function(t,e){return"\n translate(".concat(t.__d3plusShape__?t.translate?t.translate:"".concat(n._x(t.data,t.i),",").concat(n._y(t.data,t.i)):"".concat(n._x(t,e),",").concat(n._y(t,e)),")\n scale(").concat(t.__d3plusShape__?t.scale||n._scale(t.data,t.i):n._scale(t,e),")\n rotate(").concat(t.__d3plusShape__?t.rotate?t.rotate:n._rotate(t.data||t,t.i):n._rotate(t.data||t,t.i),")")})}},{key:"_nestWrapper",value:function t(n){return function(t,e){return n(t.__d3plusShape__?t.data:t,t.__d3plusShape__?t.i:e)}}},{key:"_renderActive",value:function t(){var i=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Is(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=i._data.indexOf(t);var r=!i._active||typeof i._active!=="function"||!i._active(t,e)?n:i._activeGroup.node();if(r!==this.parentNode){r.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===r)Is(this).call(i._applyStyle.bind(i));else Is(this).call(i._updateStyle.bind(i,Is(this),i._activeStyle))}}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderHover",value:function t(){var i=this;this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text, g.d3plus-").concat(this._name,"-hover")).selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Is(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=i._data.indexOf(t);var r=!i._hover||typeof i._hover!=="function"||!i._hover(t,e)?n:i._hoverGroup.node();if(r!==this.parentNode)r.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===r)Is(this).call(i._applyStyle.bind(i));else Is(this).call(i._updateStyle.bind(i,Is(this),i._hoverStyle))}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderImage",value:function t(){var l=this;var c=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=l._aes(t,e);if(n.r||n.width&&n.height){var r=t;if(t.nested&&t.key&&t.values){r=t.values[0];e=l._data.indexOf(r)}var i=n.r?n.r*2:n.height,a=l._backgroundImage(r,e),o=n.r?n.r*2:n.width;if(a){var s=r.__d3plusShape__?r.translate?r.translate[0]:l._x(r.data,r.i):l._x(r,e),u=r.__d3plusShape__?r.translate?r.translate[1]:l._y(r.data,r.i):l._y(r,e);if(n.x)s+=n.x;if(n.y)u+=n.y;if(r.__d3plusShape__){r=r.data;e=r.i}c.push({__d3plus__:true,data:r,height:i,i:e,id:l._id(r,e),url:a,width:o,x:s+-o/2,y:u+-i/2})}}});this._backgroundImageClass.data(c).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select(rb("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function t(){var h=this;var d=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=t;if(t.nested&&t.key&&t.values){n=t.values[0];e=h._data.indexOf(n)}var r=h._label(n,e);if(h._labelBounds&&r!==false&&r!==undefined&&r!==null){var i=h._labelBounds.bind(h)(n,e,h._aes(t,e));if(i){if(r.constructor!==Array)r=[r];var a=n.__d3plusShape__?n.translate?n.translate[0]:h._x(n.data,n.i):h._x(n,e),o=n.__d3plusShape__?n.translate?n.translate[1]:h._y(n.data,n.i):h._y(n,e);if(n.__d3plusShape__){n=n.data;e=n.i}for(var s=0;s<r.length;s++){var u=i.constructor===Array?i[s]:Object.assign({},i);var l=h._rotate(n,e);var c=n.labelConfig&&n.labelConfig.rotate?n.labelConfig.rotate:i.angle!==undefined?i.angle:0;c+=l;var f=l!==0?[u.x*-1||0,u.y*-1||0]:[u.width/2,u.height/2];d.push({__d3plus__:true,data:n,height:u.height,l:s,id:"".concat(h._id(n,e),"_").concat(s),r:c,rotateAnchor:f,text:r[s],width:u.width,x:a+u.x,y:o+u.y})}}}});this._labelClass.data(d).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate(function(t){return t.__d3plus__?t.r:t.data.r}).rotateAnchor(function(t){return t.__d3plus__?t.rotateAnchor:t.data.rotateAnchor}).select(rb("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(eb.bind(this)(this._labelConfig)).render()}},{key:"render",value:function t(e){var n=this;if(this._select===void 0){this.select(Is("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=Nl(this._uuid).duration(this._duration);var r=this._data,i=this._id;if(this._dataFilter){r=this._dataFilter(r);if(r.key)i=r.key}if(this._sort){r=r.sort(function(t,e){while(t.__d3plusShape__||t.__d3plus__){t=t.data}while(e.__d3plusShape__||e.__d3plus__){e=e.data}return n._sort(t,e)})}Us("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each(function(t){if(t&&t.parentNode)t.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=rb("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var a=this._update=rb("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(r,i);a.order();if(this._duration){a.transition(this._transition).call(this._applyTransform.bind(this))}else{a.call(this._applyTransform.bind(this))}var o=this._enter=a.enter().append(this._tagName).attr("class",function(t,e){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(e9(n._nestWrapper(n._id)(t,e)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(a);var u=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){u=u.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}u.attr("opacity",this._nestWrapper(this._opacity));var l=this._exit=a.exit();if(this._duration)l.transition().delay(this._duration).remove();else l.remove();this._renderImage();this._renderLabels();this._hoverGroup=rb("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=rb("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var c=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?r:[],i);c.order().call(this._applyTransform.bind(this));var f=this._name==="Line";if(f){var h=this._curve.bind(this)(this.config());f&&this._path.curve(F6["curve".concat(h.charAt(0).toUpperCase()).concat(h.slice(1))]).defined(this._defined).x(this._x).y(this._y)}var d=c.enter().append(f?"path":"rect").attr("class",function(t,e){return"d3plus-HitArea d3plus-id-".concat(e9(n._nestWrapper(n._id)(t,e)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var g=this;var v=c.merge(d).each(function(t){var e=g._data.indexOf(t);var n=g._hitArea(t,e,g._aes(t,e));return n&&!(g._name==="Line"&&parseFloat(g._strokeWidth(t,e))>10)?Is(this).call(Kl,n):Is(this).remove()});c.exit().remove();this._applyEvents(this._hitArea?v:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(e)e()},this._duration+100);return this}},{key:"active",value:function t(e){if(!arguments.length||e===undefined)return this._active;this._active=e;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function t(e){return arguments.length?(this._activeOpacity=e,this):this._activeOpacity}},{key:"activeStyle",value:function t(e){return arguments.length?(this._activeStyle=ql({},this._activeStyle,e),this):this._activeStyle}},{key:"ariaLabel",value:function t(e){return e!==undefined?(this._ariaLabel=typeof e==="function"?e:nb(e),this):this._ariaLabel}},{key:"backgroundImage",value:function t(e){return arguments.length?(this._backgroundImage=typeof e==="function"?e:nb(e),this):this._backgroundImage}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"fill",value:function t(e){return arguments.length?(this._fill=typeof e==="function"?e:nb(e),this):this._fill}},{key:"fillOpacity",value:function t(e){return arguments.length?(this._fillOpacity=typeof e==="function"?e:nb(e),this):this._fillOpacity}},{key:"hover",value:function t(e){if(!arguments.length||e===void 0)return this._hover;this._hover=e;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function t(e){return arguments.length?(this._hoverStyle=ql({},this._hoverStyle,e),this):this._hoverStyle}},{key:"hoverOpacity",value:function t(e){return arguments.length?(this._hoverOpacity=e,this):this._hoverOpacity}},{key:"hitArea",value:function t(e){return arguments.length?(this._hitArea=typeof e==="function"?e:nb(e),this):this._hitArea}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:nb(e),this):this._label}},{key:"labelBounds",value:function t(e){return arguments.length?(this._labelBounds=typeof e==="function"?e:nb(e),this):this._labelBounds}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=ql(this._labelConfig,e),this):this._labelConfig}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:nb(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:nb(e),this):this._pointerEvents}},{key:"role",value:function t(e){return e!==undefined?(this._role=typeof e==="function"?e:nb(e),this):this._role}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:nb(e),this):this._rotate}},{key:"rx",value:function t(e){return arguments.length?(this._rx=typeof e==="function"?e:nb(e),this):this._rx}},{key:"ry",value:function t(e){return arguments.length?(this._ry=typeof e==="function"?e:nb(e),this):this._ry}},{key:"scale",value:function t(e){return arguments.length?(this._scale=typeof e==="function"?e:nb(e),this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"shapeRendering",value:function t(e){return arguments.length?(this._shapeRendering=typeof e==="function"?e:nb(e),this):this._shapeRendering}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"stroke",value:function t(e){return arguments.length?(this._stroke=typeof e==="function"?e:nb(e),this):this._stroke}},{key:"strokeDasharray",value:function t(e){return arguments.length?(this._strokeDasharray=typeof e==="function"?e:nb(e),this):this._strokeDasharray}},{key:"strokeLinecap",value:function t(e){return arguments.length?(this._strokeLinecap=typeof e==="function"?e:nb(e),this):this._strokeLinecap}},{key:"strokeOpacity",value:function t(e){return arguments.length?(this._strokeOpacity=typeof e==="function"?e:nb(e),this):this._strokeOpacity}},{key:"strokeWidth",value:function t(e){return arguments.length?(this._strokeWidth=typeof e==="function"?e:nb(e),this):this._strokeWidth}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:nb(e),this):this._textAnchor}},{key:"vectorEffect",value:function t(e){return arguments.length?(this._vectorEffect=typeof e==="function"?e:nb(e),this):this._vectorEffect}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:nb(e),this):this._verticalAlign}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:nb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:nb(e),this):this._y}}]);return n}(J_);function Y9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,r)}return n}function X9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){Y9(Object(n),true).forEach(function(t){Z9(e,t,n[t])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{Y9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}}return e}function Z9(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function $9(){$9=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){t[r]=n[r]}}}return t};return $9.apply(this,arguments)}function J9(t,e){if(!t)return;if(typeof t==="string")return Q9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Q9(t,e)}function Q9(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function tk(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=J9(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var i=function t(){};return{s:i,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function t(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){n=n.call(e)},n:function t(){var e=n.next();a=e.done;return e},e:function t(e){o=true;s=e},f:function t(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function ek(t,e){var i=[];var a=[];function o(t,e){if(t.length===1){i.push(t[0]);a.push(t[0])}else{var n=Array(t.length-1);for(var r=0;r<n.length;r++){if(r===0){i.push(t[0])}if(r===n.length-1){a.push(t[r+1])}n[r]=[(1-e)*t[r][0]+e*t[r+1][0],(1-e)*t[r][1]+e*t[r+1][1]]}o(n,e)}}if(t.length){o(t,e)}return{left:i,right:a.reverse()}}function nk(t){var e={};if(t.length===4){e.x2=t[2][0];e.y2=t[2][1]}if(t.length>=3){e.x1=t[1][0];e.y1=t[1][1]}e.x=t[t.length-1][0];e.y=t[t.length-1][1];if(t.length===4){e.type="C"}else if(t.length===3){e.type="Q"}else{e.type="L"}return e}function rk(t,e){e=e||2;var n=[];var r=t;var i=1/e;for(var a=0;a<e-1;a++){var o=i/(1-i*a);var s=ek(r,o);n.push(s.left);r=s.right}n.push(r);return n}function ik(t,e,n){var r=[[t.x,t.y]];if(e.x1!=null){r.push([e.x1,e.y1])}if(e.x2!=null){r.push([e.x2,e.y2])}r.push([e.x,e.y]);return rk(r,n).map(nk)}var ak=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g;var ok={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(ok).forEach(function(t){ok[t.toLowerCase()]=ok[t]});function sk(t,e){var n=Array(t);for(var r=0;r<t;r++){n[r]=e}return n}function uk(e){return"".concat(e.type).concat(ok[e.type].map(function(t){return e[t]}).join(","))}function lk(r,i){var a={x1:"x",y1:"y",x2:"x",y2:"y"};var o=["xAxisRotation","largeArcFlag","sweepFlag"];if(r.type!==i.type&&i.type.toUpperCase()!=="M"){var s={};Object.keys(i).forEach(function(t){var e=i[t];var n=r[t];if(n===undefined){if(o.includes(t)){n=e}else{if(n===undefined&&a[t]){n=r[a[t]]}if(n===undefined){n=0}}}s[t]=n});s.type=i.type;r=s}return r}function ck(t,e,n){var r=[];if(e.type==="L"||e.type==="Q"||e.type==="C"){r=r.concat(ik(t,e,n))}else{var i=$9({},t);if(i.type==="M"){i.type="L"}r=r.concat(sk(n-1).map(function(){return i}));r.push(e)}return r}function fk(a,t,o){var e=a.length-1;var n=t.length-1;var s=e/n;var r=sk(n).reduce(function(t,e,n){var r=Math.floor(s*n);if(o&&r<a.length-1&&o(a[r],a[r+1])){var i=s*n%1<.5;if(t[r]){if(i){if(r>0){r-=1}else if(r<a.length-1){r+=1}}else if(r<a.length-1){r+=1}else if(r>0){r-=1}}}t[r]=(t[r]||0)+1;return t},[]);var i=r.reduce(function(t,e,n){if(n===a.length-1){var r=sk(e,$9({},a[a.length-1]));if(r[0].type==="M"){r.forEach(function(t){t.type="L"})}return t.concat(r)}return t.concat(ck(a[n],a[n+1],e))},[]);i.unshift(a[0]);return i}function hk(t){var e=(t||"").match(ak)||[];var n=[];var r;var i;for(var a=0;a<e.length;++a){r=ok[e[a]];if(r){i={type:e[a]};for(var o=0;o<r.length;++o){i[r[o]]=+e[a+o+1]}a+=r.length;n.push(i)}}return n}function dk(t,l,e){var c=t==null?[]:t.slice();var f=l==null?[]:l.slice();if(!c.length&&!f.length){return function t(){return[]}}var n=(c.length===0||c[c.length-1].type==="Z")&&(f.length===0||f[f.length-1].type==="Z");if(c.length>0&&c[c.length-1].type==="Z"){c.pop()}if(f.length>0&&f[f.length-1].type==="Z"){f.pop()}if(!c.length){c.push(f[0])}else if(!f.length){f.push(c[0])}var r=Math.abs(f.length-c.length);if(r!==0){if(f.length>c.length){c=fk(c,f,e)}else if(f.length<c.length){f=fk(f,c,e)}}c=c.map(function(t,e){return lk(t,f[e])});var h=c.map(function(t){return X9({},t)});if(n){h.push({type:"Z"});c.push({type:"Z"})}return function t(e){if(e===1){return l==null?[]:l}if(e===0){return c}for(var n=0;n<h.length;++n){var r=c[n];var i=f[n];var a=h[n];var o=tk(ok[a.type]),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;a[u]=(1-e)*r[u]+e*i[u];if(u==="largeArcFlag"||u==="sweepFlag"){a[u]=Math.round(a[u])}}}catch(t){o.e(t)}finally{o.f()}}return h}}function gk(t,s,e){var n=hk(t);var r=hk(s);if(!n.length&&!r.length){return function t(){return""}}var u=dk(n,r,e);return function t(e){if(e===1){return s==null?"":s}var n=u(e);var r="";var i=tk(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;r+=uk(o)}}catch(t){i.e(t)}finally{i.f()}return r}}function vk(t){var e=-1,n=t.length,r,i=t[n-1],a=0;while(++e<n){r=i;i=t[e];a+=r[1]*i[0]-r[0]*i[1]}return a/2}function pk(t){var e=-1,n=t.length,r=0,i=0,a,o=t[n-1],s,u=0;while(++e<n){a=o;o=t[e];u+=s=a[0]*o[1]-o[0]*a[1];r+=(a[0]+o[0])*s;i+=(a[1]+o[1])*s}return u*=3,[r/u,i/u]}function yk(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function mk(t,e){return t[0]-e[0]||t[1]-e[1]}function _k(t){var e=t.length,n=[0,1];var r=2,i;for(i=2;i<e;++i){while(r>1&&yk(t[n[r-2]],t[n[r-1]],t[i])<=0){--r}n[r++]=i}return n.slice(0,r)}function bk(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e){r[e]=[+t[e][0],+t[e][1],e]}r.sort(mk);for(e=0;e<n;++e){i[e]=[r[e][0],-r[e][1]]}var a=_k(r),o=_k(i);var s=o[0]===a[0],u=o[o.length-1]===a[a.length-1],l=[];for(e=a.length-1;e>=0;--e){l.push(t[r[a[e]][2]])}for(e=+s;e<o.length-u;++e){l.push(t[r[o[e]][2]])}return l}function wk(t,e){var n=t.length,r=t[n-1],i=e[0],a=e[1],o=r[0],s=r[1],u,l,c=false;for(var f=0;f<n;++f){r=t[f],u=r[0],l=r[1];if(l>a!==s>a&&i<(o-u)*(a-l)/(s-l)+u)c=!c;o=u,s=l}return c}function xk(t,e,n,r){var i=1e-9;var a=t[0]-e[0],o=n[0]-r[0],s=t[1]-e[1],u=n[1]-r[1];var l=a*u-s*o;if(Math.abs(l)<i)return null;var c=t[0]*e[1]-t[1]*e[0],f=n[0]*r[1]-n[1]*r[0];var h=(c*o-f*a)/l,d=(c*u-f*s)/l;return[h,d]}function kk(t,e){return Mk(t)||Ak(t,e)||Ck(t,e)||Sk()}function Sk(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Ck(t,e){if(!t)return;if(typeof t==="string")return Ek(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ek(t,e)}function Ek(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function Ak(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function Mk(t){if(Array.isArray(t))return t}function Rk(t,e,n){var r=1e-9,i=kk(n,2),a=i[0],o=i[1];return!(a<Math.min(t[0],e[0])-r||a>Math.max(t[0],e[0])+r||o<Math.min(t[1],e[1])-r||o>Math.max(t[1],e[1])+r)}function Tk(t,e,n,r){var i=xk(t,e,n,r);if(!i)return false;return Rk(t,e,i)&&Rk(n,r,i)}function Ok(t,e){var n=-1;var r=t.length;var i=e.length;var a=t[r-1];while(++n<r){var o=a;a=t[n];var s=-1;var u=e[i-1];while(++s<i){var l=u;u=e[s];if(Tk(o,a,l,u))return false}}return wk(e,t[0])}function Pk(t,e){return Fk(t)||zk(t,e)||Dk(t,e)||Bk()}function Bk(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Dk(t,e){if(!t)return;if(typeof t==="string")return Nk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nk(t,e)}function Nk(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function zk(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function Fk(t){if(Array.isArray(t))return t}function jk(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=1e-9;e=[e[0]+r*Math.cos(n),e[1]+r*Math.sin(n)];var i=e,a=Pk(i,2),o=a[0],s=a[1];var u=[o+Math.cos(n),s+Math.sin(n)];var l=0;if(Math.abs(u[0]-o)<r)l=1;var c=-1;var f=t.length;var h=t[f-1];var d=Number.MAX_VALUE;var g=Number.MAX_VALUE;var v=null;var p=null;while(++c<f){var y=h;h=t[c];var m=xk(e,u,y,h);if(m&&Rk(y,h,m)){var _=D9(e,m);if(m[l]<e[l]){if(_<d){d=_;v=m}}else if(m[l]>e[l]){if(_<g){g=_;p=m}}}}return[v,p]}function Ik(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];var r=Math.cos(e),i=Math.sin(e),a=t[0]-n[0],o=t[1]-n[1];return[r*a-i*o+n[0],i*a+r*o+n[1]]}var Lk=function t(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return e.map(function(t){return Ik(t,n,r)})};function Hk(t,e,n){var r=e[0],i=e[1];var a=n[0]-r,o=n[1]-i;if(a!==0||o!==0){var s=((t[0]-r)*a+(t[1]-i)*o)/(a*a+o*o);if(s>1){r=n[0];i=n[1]}else if(s>0){r+=a*s;i+=o*s}}a=t[0]-r;o=t[1]-i;return a*a+o*o}function Uk(t,e){var n,r=t[0];var i=[r];for(var a=1,o=t.length;a<o;a++){n=t[a];if(D9(n,r)>e){i.push(n);r=n}}if(r!==n)i.push(n);return i}function Gk(t,e,n,r,i){var a,o=r;for(var s=e+1;s<n;s++){var u=Hk(t[s],t[e],t[n]);if(u>o){a=s;o=u}}if(o>r){if(a-e>1)Gk(t,e,a,r,i);i.push(t[a]);if(n-a>1)Gk(t,a,n,r,i)}}function Vk(t,e){var n=t.length-1;var r=[t[0]];Gk(t,0,n,e,r);r.push(t[n]);return r}var Wk=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(e.length<=2)return e;var i=n*n;e=r?e:Uk(e,i);e=Vk(e,i);return e};function qk(t,e){return $k(t)||Zk(t,e)||Yk(t,e)||Kk()}function Kk(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Yk(t,e){if(!t)return;if(typeof t==="string")return Xk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xk(t,e)}function Xk(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function Zk(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function $k(t){if(Array.isArray(t))return t}var Jk=.5;var Qk=5;var tS={};function eS(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.length<3){if(e.verbose)console.error("polygon has to have at least 3 points",t);return null}var n=[];e=Object.assign({angle:Nb(-90,90+Qk,Qk),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},e);var r=e.angle instanceof Array?e.angle:typeof e.angle==="number"?[e.angle]:typeof e.angle==="string"&&!isNaN(e.angle)?[Number(e.angle)]:[];var i=e.aspectRatio instanceof Array?e.aspectRatio:typeof e.aspectRatio==="number"?[e.aspectRatio]:typeof e.aspectRatio==="string"&&!isNaN(e.aspectRatio)?[Number(e.aspectRatio)]:[];var a=e.origin&&e.origin instanceof Array?e.origin[0]instanceof Array?e.origin:[e.origin]:[];var o;if(e.cache){o=Db(t).join(",");o+="-".concat(e.minAspectRatio);o+="-".concat(e.maxAspectRatio);o+="-".concat(e.minHeight);o+="-".concat(e.minWidth);o+="-".concat(r.join(","));o+="-".concat(a.join(","));if(tS[o])return tS[o]}var s=Math.abs(vk(t));if(s===0){if(e.verbose)console.error("polygon has 0 area",t);return null}var u=gb(t,function(t){return t[0]}),l=qk(u,2),c=l[0],f=l[1];var h=gb(t,function(t){return t[1]}),d=qk(h,2),g=d[0],v=d[1];var p=Math.min(f-c,v-g)*e.tolerance;if(p>0)t=Wk(t,p);if(e.events)n.push({type:"simplify",poly:t});var y=gb(t,function(t){return t[0]});var m=qk(y,2);c=m[0];f=m[1];var _=gb(t,function(t){return t[1]});var b=qk(_,2);g=b[0];v=b[1];var w=f-c,x=v-g;var k=Math.min(w,x)/50;if(!a.length){var S=pk(t);if(!isFinite(S[0])){if(e.verbose)console.error("cannot find centroid",t);return null}if(wk(t,S))a.push(S);var C=e.nTries;while(C){var E=Math.random()*w+c;var A=Math.random()*x+g;var M=[E,A];if(wk(t,M)){a.push(M)}C--}}if(e.events)n.push({type:"origins",points:a});var R=0;var T=null;for(var O=0;O<r.length;O++){var P=r[O];var B=-P*Math.PI/180;if(e.events)n.push({type:"angle",angle:P});for(var D=0;D<a.length;D++){var N=a[D];var z=jk(t,N,B),F=qk(z,2),j=F[0],I=F[1];var L=jk(t,N,B+Math.PI/2),H=qk(L,2),U=H[0],G=H[1];var V=[];if(j&&I)V.push([(j[0]+I[0])/2,(j[1]+I[1])/2]);if(U&&G)V.push([(U[0]+G[0])/2,(U[1]+G[1])/2]);if(e.events)n.push({type:"modifOrigin",idx:D,p1W:j,p2W:I,p1H:U,p2H:G,modifOrigins:V});for(var W=0;W<V.length;W++){var q=V[W];if(e.events)n.push({type:"origin",cx:q[0],cy:q[1]});var K=jk(t,q,B),Y=qk(K,2),X=Y[0],Z=Y[1];if(X===null||Z===null)continue;var $=Math.min(D9(q,X),D9(q,Z));var J=2*Math.sqrt($);var Q=jk(t,q,B+Math.PI/2),tt=qk(Q,2),et=tt[0],nt=tt[1];if(et===null||nt===null)continue;var rt=Math.min(D9(q,et),D9(q,nt));var it=2*Math.sqrt(rt);if(J*it<R)continue;var at=i;if(!at.length){var ot=Math.max(e.minAspectRatio,e.minWidth/it,R/(it*it));var st=Math.min(e.maxAspectRatio,J/e.minHeight,J*J/R);at=Nb(ot,st+Jk,Jk)}for(var ut=0;ut<at.length;ut++){var lt=at[ut];var ct=Math.max(e.minWidth,Math.sqrt(R*lt));var ft=Math.min(J,it*lt);if(ft*it<R)continue;if(e.events&&ft-ct>=k)n.push({type:"aRatio",aRatio:lt});while(ft-ct>=k){var ht=(ct+ft)/2;var dt=ht/lt;var gt=qk(q,2),vt=gt[0],pt=gt[1];var yt=[[vt-ht/2,pt-dt/2],[vt+ht/2,pt-dt/2],[vt+ht/2,pt+dt/2],[vt-ht/2,pt+dt/2]];yt=Lk(yt,B,q);var mt=Ok(yt,t);if(mt){R=ht*dt;yt.push(yt[0]);T={area:R,cx:vt,cy:pt,width:ht,height:dt,angle:-P,points:yt};ct=ht}else{ft=ht}if(e.events)n.push({type:"rectangle",areaFraction:ht*dt/s,cx:vt,cy:pt,width:ht,height:dt,angle:P,insidePoly:mt})}}}}}if(e.cache){tS[o]=T}return e.events?Object.assign(T||{},{events:n}):T}function nS(t){"@babel/helpers - typeof";return nS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nS(t)}function rS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function iS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function aS(t,e,n){if(e)iS(t.prototype,e);if(n)iS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function oS(){if(typeof Reflect!=="undefined"&&Reflect.get){oS=Reflect.get}else{oS=function t(e,n,r){var i=sS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return oS.apply(this,arguments)}function sS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=gS(t);if(t===null)break}return t}function uS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)lS(t,e)}function lS(t,e){lS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lS(t,e)}function cS(i){var a=dS();return function t(){var e=gS(i),n;if(a){var r=gS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return fS(this,n)}}function fS(t,e){if(e&&(nS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return hS(t)}function hS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function gS(t){gS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gS(t)}var vS=function(t){uS(s,t);var e=cS(s);function s(){var i;rS(this,s);i=e.call(this);i._curve=nb("linear");i._defined=function(){return true};i._labelBounds=function(t,e,n){var r=eS(n.points);if(!r)return null;return{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2-i._x(t,e),y:r.cy-r.height/2-i._y(t,e)}};i._labelConfig=Object.assign(i._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});i._name="Area";i._x=Ul("x");i._x0=Ul("x");i._x1=null;i._y=nb(0);i._y0=nb(0);i._y1=Ul("y");return i}aS(s,[{key:"_aes",value:function t(e){var n=this;var r=e.values.slice().sort(function(t,e){return n._y1?n._x(t)-n._x(e):n._y(t)-n._y(e)});var i=r.map(function(t,e){return[n._x0(t,e),n._y0(t,e)]});var a=r.reverse().map(function(t,e){return n._y1?[n._x(t,e),n._y1(t,e)]:[n._x1(t,e),n._y(t,e)]});var o=i.concat(a);if(i[0][1]>a[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function t(r){var i=this;var e=Lb().key(this._id).entries(r).map(function(t){t.data=Xb(t.values);t.i=r.indexOf(t.values[0]);var e=gb(t.values.map(i._x).concat(t.values.map(i._x0)).concat(i._x1?t.values.map(i._x1):[]));t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=gb(t.values.map(i._y).concat(t.values.map(i._y0)).concat(i._y1?t.values.map(i._y1):[]));t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;oS(gS(s.prototype),"render",this).call(this,e);var r=this._curve.bind(this)(this.config());var i=F6["curve".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))];var a=this._path=V3().defined(this._defined).curve(i).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1);var o=V3().defined(function(t){return t}).curve(i).x(this._x).y(this._y).x0(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).x1(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).y0(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)}).y1(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)});this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return o(t.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(t){return gk(Is(this).attr("d"),a(t.values))});this._update.select("path").transition(this._transition).attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attrTween("d",function(t){return gk(Is(this).attr("d"),a(t.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(t){return gk(Is(this).attr("d"),o(t.values))});return this}},{key:"curve",value:function t(e){return arguments.length?(this._curve=typeof e==="function"?e:nb(e),this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}},{key:"x",value:function t(e){if(!arguments.length)return this._x;this._x=typeof e==="function"?e:nb(e);this._x0=this._x;return this}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:nb(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:nb(e),this):this._x1}},{key:"y",value:function t(e){if(!arguments.length)return this._y;this._y=typeof e==="function"?e:nb(e);this._y0=this._y;return this}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:nb(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:nb(e),this):this._y1}}]);return s}(K9);function pS(t){"@babel/helpers - typeof";return pS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pS(t)}function yS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function mS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function _S(t,e,n){if(e)mS(t.prototype,e);if(n)mS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function bS(){if(typeof Reflect!=="undefined"&&Reflect.get){bS=Reflect.get}else{bS=function t(e,n,r){var i=wS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return bS.apply(this,arguments)}function wS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=MS(t);if(t===null)break}return t}function xS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)kS(t,e)}function kS(t,e){kS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return kS(t,e)}function SS(i){var a=AS();return function t(){var e=MS(i),n;if(a){var r=MS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return CS(this,n)}}function CS(t,e){if(e&&(pS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return ES(t)}function ES(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function AS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function MS(t){MS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return MS(t)}var RS=function(t){xS(a,t);var e=SS(a);function a(){var r;yS(this,a);r=e.call(this,"rect");r._name="Bar";r._height=nb(10);r._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:r._x1!==null?r._getX(t,e):-n.width/2,y:r._x1===null?r._getY(t,e):-n.height/2}};r._width=nb(10);r._x=Ul("x");r._x0=Ul("x");r._x1=null;r._y=nb(0);r._y0=nb(0);r._y1=Ul("y");return r}_S(a,[{key:"render",value:function t(e){var n=this;bS(MS(a.prototype),"render",this).call(this,e);var r=this._enter.attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0}).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){r=r.transition(this._transition);i=i.transition(this._transition);this._exit.transition(this._transition).attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0})}r.call(this._applyPosition.bind(this));i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{height:this._getHeight(e,n),width:this._getWidth(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._getWidth(t,e)}).attr("height",function(t,e){return n._getHeight(t,e)}).attr("x",function(t,e){return n._x1!==null?n._getX(t,e):-n._getWidth(t,e)/2}).attr("y",function(t,e){return n._x1===null?n._getY(t,e):-n._getHeight(t,e)/2})}},{key:"_getHeight",value:function t(e,n){if(this._x1!==null)return this._height(e,n);return Math.abs(this._y1(e,n)-this._y(e,n))}},{key:"_getWidth",value:function t(e,n){if(this._x1===null)return this._width(e,n);return Math.abs(this._x1(e,n)-this._x(e,n))}},{key:"_getX",value:function t(e,n){var r=this._x1===null?this._x(e,n):this._x1(e,n)-this._x(e,n);if(r<0)return r;else return 0}},{key:"_getY",value:function t(e,n){var r=this._x1!==null?this._y(e,n):this._y1(e,n)-this._y(e,n);if(r<0)return r;else return 0}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:nb(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:nb(e),this):this._width}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:nb(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:nb(e),this):this._x1}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:nb(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:nb(e),this):this._y1}}]);return a}(K9);function TS(t){"@babel/helpers - typeof";return TS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},TS(t)}function OS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function PS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function BS(t,e,n){if(e)PS(t.prototype,e);if(n)PS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function DS(){if(typeof Reflect!=="undefined"&&Reflect.get){DS=Reflect.get}else{DS=function t(e,n,r){var i=NS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return DS.apply(this,arguments)}function NS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=US(t);if(t===null)break}return t}function zS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)FS(t,e)}function FS(t,e){FS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return FS(t,e)}function jS(i){var a=HS();return function t(){var e=US(i),n;if(a){var r=US(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return IS(this,n)}}function IS(t,e){if(e&&(TS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return LS(t)}function LS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function HS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function US(t){US=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return US(t)}var GS=function(t){zS(i,t);var e=jS(i);function i(){var t;OS(this,i);t=e.call(this,"circle");t._labelBounds=function(t,e,n){return{width:n.r*1.5,height:n.r*1.5,x:-n.r*.75,y:-n.r*.75}};t._labelConfig=ql(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});t._name="Circle";t._r=Ul("r");return t}BS(i,[{key:"_applyPosition",value:function t(e){var n=this;e.attr("r",function(t,e){return n._r(t,e)}).attr("x",function(t,e){return-n._r(t,e)/2}).attr("y",function(t,e){return-n._r(t,e)/2})}},{key:"render",value:function t(e){DS(US(i.prototype),"render",this).call(this,e);var n=this._enter.call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n.attr("r",0).attr("x",0).attr("y",0).transition(this._transition).call(this._applyPosition.bind(this));r=r.transition(this._transition);this._exit.transition(this._transition).attr("r",0).attr("x",0).attr("y",0)}else{n.call(this._applyPosition.bind(this))}r.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{r:this._r(e,n)}}},{key:"r",value:function t(e){return arguments.length?(this._r=typeof e==="function"?e:nb(e),this):this._r}}]);return i}(K9);function VS(t){"@babel/helpers - typeof";return VS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},VS(t)}function WS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function qS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function KS(t,e,n){if(e)qS(t.prototype,e);if(n)qS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function YS(){if(typeof Reflect!=="undefined"&&Reflect.get){YS=Reflect.get}else{YS=function t(e,n,r){var i=XS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return YS.apply(this,arguments)}function XS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=n4(t);if(t===null)break}return t}function ZS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)$S(t,e)}function $S(t,e){$S=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return $S(t,e)}function JS(i){var a=e4();return function t(){var e=n4(i),n;if(a){var r=n4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return QS(this,n)}}function QS(t,e){if(e&&(VS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return t4(t)}function t4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function e4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function n4(t){n4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return n4(t)}var r4=function(t){ZS(i,t);var e=JS(i);function i(){var t;WS(this,i);t=e.call(this,"rect");t._height=Ul("height");t._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}};t._name="Rect";t._width=Ul("width");return t}KS(i,[{key:"render",value:function t(e){YS(n4(i.prototype),"render",this).call(this,e);var n=this._enter.attr("width",0).attr("height",0).attr("x",0).attr("y",0).call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n=n.transition(this._transition);r=r.transition(this._transition);this._exit.transition(this._transition).attr("width",0).attr("height",0).attr("x",0).attr("y",0)}n.call(this._applyPosition.bind(this));r.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{width:this._width(e,n),height:this._height(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return-n._width(t,e)/2}).attr("y",function(t,e){return-n._height(t,e)/2})}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:nb(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:nb(e),this):this._width}}]);return i}(K9);function i4(t){"@babel/helpers - typeof";return i4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i4(t)}function a4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function o4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function s4(t,e,n){if(e)o4(t.prototype,e);if(n)o4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function u4(){if(typeof Reflect!=="undefined"&&Reflect.get){u4=Reflect.get}else{u4=function t(e,n,r){var i=l4(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return u4.apply(this,arguments)}function l4(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=p4(t);if(t===null)break}return t}function c4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)f4(t,e)}function f4(t,e){f4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return f4(t,e)}function h4(i){var a=v4();return function t(){var e=p4(i),n;if(a){var r=p4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return d4(this,n)}}function d4(t,e){if(e&&(i4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return g4(t)}function g4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function v4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function p4(t){p4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return p4(t)}var y4=function(t){c4(l,t);var e=h4(l);function l(){var n;a4(this,l);n=e.call(this);n._curve=nb("linear");n._defined=function(t){return t};n._fill=nb("none");n._hitArea=nb({d:function t(e){return n._path(e.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=G3();n._stroke=nb("black");n._strokeWidth=nb(1);return n}s4(l,[{key:"_dataFilter",value:function t(r){var i=this;var e=Lb().key(this._id).entries(r).map(function(t){t.data=Xb(t.values);t.i=r.indexOf(t.values[0]);var e=gb(t.values,i._x);t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=gb(t.values,i._y);t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;u4(p4(l.prototype),"render",this).call(this,e);var o=this;function r(t){t.initialLength=this.getTotalLength();var e=o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0])).split(" ").map(Number);if(e.length===1&&e[0]===0)e=[t.initialLength];else if(e.length===1)e.push(e[0]);else if(e.length%2)e=e.concat(e);var n=[];var r=0;while(r<t.initialLength){for(var i=0;i<e.length;i++){var a=e[i];r+=a;n.push(a);if(r>=t.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=t.initialLength-zb(n);if(n.length%2===0)n.push(0);t.initialStrokeArray=n.join(" ")}var i=this._curve.bind(this)(this.config());var a=F6["curve".concat(i.charAt(0).toUpperCase()).concat(i.slice(1))];this._path.curve(a).defined(this._defined).x(this._x).y(this._y);var s=this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return n._path(t.values)}).call(this._applyStyle.bind(this));var u=this._update.select("path").attr("stroke-dasharray",function(t){return o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0]))});if(this._duration){s.each(r).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).attr("stroke-dashoffset",function(t){return t.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);u=u.transition(this._transition).attrTween("d",function(t){return gk(Is(this).attr("d"),o._path(t.values))});this._exit.selectAll("path").each(r).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(t){return-t.initialLength})}else{u=u.attr("d",function(t){return o._path(t.values)})}u.attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function t(e,n){var r=this;return{points:e.values.map(function(t){return[r._x(t,n),r._y(t,n)]})}}},{key:"curve",value:function t(e){return arguments.length?(this._curve=typeof e==="function"?e:nb(e),this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}}]);return l}(K9);function m4(t){"@babel/helpers - typeof";return m4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m4(t)}function _4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function b4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function w4(t,e,n){if(e)b4(t.prototype,e);if(n)b4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function x4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)k4(t,e)}function k4(t,e){k4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return k4(t,e)}function S4(i){var a=A4();return function t(){var e=M4(i),n;if(a){var r=M4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return C4(this,n)}}function C4(t,e){if(e&&(m4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return E4(t)}function E4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function A4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function M4(t){M4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return M4(t)}var R4={Circle:GS,Rect:r4};var T4=function(t){x4(n,t);var e=S4(n);function n(){var t;_4(this,n);t=e.call(this);t._endpoint=Ul("endpoint","Rect");t._endpointConfig={Circle:{r:Ul("r",5)}};t._length=Ul("length",25);t._lineConfig={};t._orient=Ul("orient","top");t._x=Ul("x",0);t._y=Ul("y",0);return t}w4(n,[{key:"render",value:function t(e){var s=this;if(this._select===void 0){this.select(Is("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var u=[];this._data.forEach(function(t,e){var n=s._orient(t,e);var r=s._x(t,e);var i=s._y(t,e);var a=r;if(n==="left")a-=s._length(t,e);else if(n==="right")a+=s._length(t,e);var o=i;if(n==="top")o-=s._length(t,e);else if(n==="bottom")o+=s._length(t,e);u.push({__d3plus__:true,data:t,i:e,id:e,x:r,y:i});u.push({__d3plus__:true,data:t,i:e,id:e,x:a,y:o})});this._line=(new y4).data(u).select(rb("g.d3plus-Whisker",{parent:this._select}).node()).config(eb.bind(this)(this._lineConfig,"shape")).render(e);var n=this._data.map(function(t,e){var n={};n.__d3plus__=true;n.data=t;n.i=e;n.endpoint=s._endpoint(t,e);n.length=s._length(t,e);n.orient=s._orient(t,e);var r=s._x(t,e);if(n.orient==="left")r-=n.length;else if(n.orient==="right")r+=n.length;var i=s._y(t,e);if(n.orient==="top")i-=n.length;else if(n.orient==="bottom")i+=n.length;n.x=r;n.y=i;return n});this._whiskerEndpoint=[];Lb().key(function(t){return t.endpoint}).entries(n).forEach(function(t){var e=t.key;s._whiskerEndpoint.push((new R4[e]).data(t.values).select(rb("g.d3plus-Whisker-Endpoint-".concat(e),{parent:s._select}).node()).config({height:function t(e){return e.orient==="top"||e.orient==="bottom"?5:20},width:function t(e){return e.orient==="top"||e.orient==="bottom"?20:5}}).config(eb.bind(s)(s._endpointConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._line)this._line.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"endpoint",value:function t(e){return arguments.length?(this._endpoint=typeof e==="function"?e:nb(e),this):this._endpoint}},{key:"endpointConfig",value:function t(e){return arguments.length?(this._endpointConfig=ql(this._endpointConfig,e),this):this._endpointConfig}},{key:"hover",value:function t(e){if(this._line)this._line.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"length",value:function t(e){return arguments.length?(this._length=typeof e==="function"?e:nb(e),this):this._length}},{key:"lineConfig",value:function t(e){return arguments.length?(this._lineConfig=ql(this._lineConfig,e),this):this._lineConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:nb(e),this):this._orient}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:nb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:nb(e),this):this._y}}]);return n}(J_);function O4(t){"@babel/helpers - typeof";return O4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O4(t)}function P4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function B4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function D4(t,e,n){if(e)B4(t.prototype,e);if(n)B4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function N4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)z4(t,e)}function z4(t,e){z4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return z4(t,e)}function F4(i){var a=L4();return function t(){var e=H4(i),n;if(a){var r=H4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return j4(this,n)}}function j4(t,e){if(e&&(O4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return I4(t)}function I4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function L4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function H4(t){H4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return H4(t)}var U4={Circle:GS,Rect:r4};var G4=function(t){N4(n,t);var e=F4(n);function n(){var r;P4(this,n);r=e.call(this);r._medianConfig={fill:nb("black")};r._orient=Ul("orient","vertical");r._outlier=Ul("outlier","Circle");r._outlierConfig={Circle:{r:Ul("r",5)},Rect:{height:function t(e,n){return r._orient(e,n)==="vertical"?5:20},width:function t(e,n){return r._orient(e,n)==="vertical"?20:5}}};r._rectConfig={fill:nb("white"),stroke:nb("black"),strokeWidth:nb(1)};r._rectWidth=nb(50);r._whiskerConfig={};r._whiskerMode=["tukey","tukey"];r._x=Ul("x",250);r._y=Ul("y",250);return r}D4(n,[{key:"render",value:function t(){var a=this;if(this._select===void 0){this.select(Is("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var e=Lb().key(function(t,e){return a._orient(t,e)==="vertical"?a._x(t,e):a._y(t,e)}).entries(this._data).map(function(i){i.data=Xb(i.values);i.i=a._data.indexOf(i.values[0]);i.orient=a._orient(i.data,i.i);var t=i.values.map(i.orient==="vertical"?a._y:a._x);t.sort(function(t,e){return t-e});i.first=Tb(t,.25);i.median=Tb(t,.5);i.third=Tb(t,.75);var e=a._whiskerMode;if(e[0]==="tukey"){i.lowerLimit=i.first-(i.third-i.first)*1.5;if(i.lowerLimit<Ab(t))i.lowerLimit=Ab(t)}else if(e[0]==="extent")i.lowerLimit=Ab(t);else if(typeof e[0]==="number")i.lowerLimit=Tb(t,e[0]);if(e[1]==="tukey"){i.upperLimit=i.third+(i.third-i.first)*1.5;if(i.upperLimit>Eb(t))i.upperLimit=Eb(t)}else if(e[1]==="extent")i.upperLimit=Eb(t);else if(typeof e[1]==="number")i.upperLimit=Tb(t,e[1]);var n=i.third-i.first;if(i.orient==="vertical"){i.height=n;i.width=a._rectWidth(i.data,i.i);i.x=a._x(i.data,i.i);i.y=i.first+n/2}else if(i.orient==="horizontal"){i.height=a._rectWidth(i.data,i.i);i.width=n;i.x=i.first+n/2;i.y=a._y(i.data,i.i)}i.values.forEach(function(t,e){var n=i.orient==="vertical"?a._y(t,e):a._x(t,e);if(n<i.lowerLimit||n>i.upperLimit){var r={};r.__d3plus__=true;r.data=t;r.i=e;r.outlier=a._outlier(t,e);if(i.orient==="vertical"){r.x=i.x;r.y=n;o.push(r)}else if(i.orient==="horizontal"){r.y=i.y;r.x=n;o.push(r)}}});i.__d3plus__=true;return i});this._box=(new r4).data(e).x(function(t){return t.x}).y(function(t){return t.y}).select(rb("g.d3plus-Box",{parent:this._select}).node()).config(eb.bind(this)(this._rectConfig,"shape")).render();this._median=(new r4).data(e).x(function(t){return t.orient==="vertical"?t.x:t.median}).y(function(t){return t.orient==="vertical"?t.median:t.y}).height(function(t){return t.orient==="vertical"?1:t.height}).width(function(t){return t.orient==="vertical"?t.width:1}).select(rb("g.d3plus-Box-Median",{parent:this._select}).node()).config(eb.bind(this)(this._medianConfig,"shape")).render();var c=[];e.forEach(function(t,e){var n=t.x;var r=t.y;var i=t.first-t.lowerLimit;var a=t.upperLimit-t.third;if(t.orient==="vertical"){var o=r-t.height/2;var s=r+t.height/2;c.push({__d3plus__:true,data:t,i:e,x:n,y:o,length:i,orient:"top"},{__d3plus__:true,data:t,i:e,x:n,y:s,length:a,orient:"bottom"})}else if(t.orient==="horizontal"){var u=n+t.width/2;var l=n-t.width/2;c.push({__d3plus__:true,data:t,i:e,x:u,y:r,length:a,orient:"right"},{__d3plus__:true,data:t,i:e,x:l,y:r,length:i,orient:"left"})}});this._whisker=(new T4).data(c).select(rb("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(eb.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];Lb().key(function(t){return t.outlier}).entries(o).forEach(function(t){var e=t.key;a._whiskerEndpoint.push((new U4[e]).data(t.values).select(rb("g.d3plus-Box-Outlier-".concat(e),{parent:a._select}).node()).config(eb.bind(a)(a._outlierConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._box)this._box.active(e);if(this._median)this._median.active(e);if(this._whisker)this._whisker.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"hover",value:function t(e){if(this._box)this._box.hover(e);if(this._median)this._median.hover(e);if(this._whisker)this._whisker.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"medianConfig",value:function t(e){return arguments.length?(this._medianConfig=ql(this._medianConfig,e),this):this._medianConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:nb(e),this):this._orient}},{key:"outlier",value:function t(e){return arguments.length?(this._outlier=typeof e==="function"?e:nb(e),this):this._outlier}},{key:"outlierConfig",value:function t(e){return arguments.length?(this._outlierConfig=ql(this._outlierConfig,e),this):this._outlierConfig}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=ql(this._rectConfig,e),this):this._rectConfig}},{key:"rectWidth",value:function t(e){return arguments.length?(this._rectWidth=typeof e==="function"?e:nb(e),this):this._rectWidth}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"whiskerConfig",value:function t(e){return arguments.length?(this._whiskerConfig=ql(this._whiskerConfig,e),this):this._whiskerConfig}},{key:"whiskerMode",value:function t(e){return arguments.length?(this._whiskerMode=e instanceof Array?e:[e,e],this):this._whiskerMode}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:Ul(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:Ul(e),this):this._y}}]);return n}(J_);var V4=Math.PI;var W4=function t(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(e<0)e=V4*2+e;if(r==="square"){var i=45*(V4/180);var a=0,o=0;if(e<V4/2){var s=Math.tan(e);a+=e<i?n:n/s;o+=e<i?s*n:n}else if(e<=V4){var u=Math.tan(V4-e);a-=e<V4-i?n/u:n;o+=e<V4-i?n:u*n}else if(e<i+V4){a-=n;o-=Math.tan(e-V4)*n}else if(e<3*V4/2){a-=n/Math.tan(e-V4);o-=n}else if(e<2*V4-i){a+=n/Math.tan(2*V4-e);o-=n}else{a+=n;o-=Math.tan(2*V4-e)*n}return[a,o]}else if(r==="circle"){return[n*Math.cos(e),n*Math.sin(e)]}else return null};var q4=Math.PI;var K4=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var r=[],i=/([MLA])([^MLAZ]+)/gi;var a=i.exec(e);while(a!==null){if(["M","L"].includes(a[1]))r.push(a[2].split(",").map(Number));else if(a[1]==="A"){var o=a[2].split(",").map(Number);var s=o.slice(o.length-2,o.length),u=r[r.length-1],l=o[0],c=N9(u,s);var f=Math.acos((l*l+l*l-c*c)/(2*l*l));if(o[2])f=q4*2-f;var h=f/(f/(q4*2)*(l*q4*2)/n);var d=Math.atan2(-u[1],-u[0])-q4;var g=h;while(g<f){r.push(W4(o[4]?d+g:d-g,l));g+=h}r.push(s)}a=i.exec(e)}return r};function Y4(t){"@babel/helpers - typeof";return Y4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Y4(t)}function X4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Z4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function $4(t,e,n){if(e)Z4(t.prototype,e);if(n)Z4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function J4(){if(typeof Reflect!=="undefined"&&Reflect.get){J4=Reflect.get}else{J4=function t(e,n,r){var i=Q4(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return J4.apply(this,arguments)}function Q4(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=oC(t);if(t===null)break}return t}function tC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)eC(t,e)}function eC(t,e){eC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return eC(t,e)}function nC(i){var a=aC();return function t(){var e=oC(i),n;if(a){var r=oC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return rC(this,n)}}function rC(t,e){if(e&&(Y4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return iC(t)}function iC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function aC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function oC(t){oC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return oC(t)}var sC=function(t){tC(a,t);var e=nC(a);function a(){var i;X4(this,a);i=e.call(this,"path");i._d=Ul("path");i._labelBounds=function(t,e,n){var r=eS(n.points,{angle:i._labelConfig.rotate?i._labelConfig.rotate(t,e):0});return r?{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2,y:r.cy-r.height/2}:false};i._name="Path";i._labelConfig=Object.assign(i._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});return i}$4(a,[{key:"_aes",value:function t(e,n){return{points:K4(this._d(e,n))}}},{key:"render",value:function t(e){J4(oC(a.prototype),"render",this).call(this,e);var n=this._enter.attr("d",this._d).call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n.attr("opacity",0).transition(this._transition).attr("opacity",1);r=r.transition(this._transition);this._exit.transition(this._transition).attr("opacity",0)}r.call(this._applyStyle.bind(this)).attr("d",this._d);return this}},{key:"d",value:function t(e){return arguments.length?(this._d=typeof e==="function"?e:nb(e),this):this._d}}]);return a}(K9);var uC=Object.freeze({__proto__:null,Image:u3,Shape:K9,Area:vS,Bar:RS,Box:G4,Circle:GS,Line:y4,Path:sC,Rect:r4,Whisker:T4,largestRect:eS,lineIntersection:xk,path2polygon:K4,pointDistance:N9,pointDistanceSquared:D9,pointRotate:Ik,polygonInside:Ok,polygonRayCast:jk,polygonRotate:Lk,segmentBoxContains:Rk,segmentsIntersect:Tk,shapeEdgePoint:W4,simplify:Wk});function lC(t){if(t.constructor===Date)return t;else if(t.constructor===Number&&"".concat(t).length>5&&t%1===0)return new Date(t);var e="".concat(t);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(e),r=new RegExp(/^[A-z]{1,3} [A-z]{1,3} \d{1,2} (-*\d{1,4}) \d{1,2}:\d{1,2}:\d{1,2} [A-z]{1,3}-*\d{1,4} \([A-z]{1,3}\)/g).exec(e);if(n){var i=n[1];if(i.indexOf("-")===0)e=e.replace(i,i.substr(1));var a=new Date(e);a.setFullYear(i);return a}else if(r){var o=r[1];if(o.indexOf("-")===0)e=e.replace(o,o.substr(1));var s=new Date(e);s.setFullYear(o);return s}else if(!e.includes("/")&&!e.includes(" ")&&(!e.includes("-")||!e.indexOf("-"))){var u=new Date("".concat(e,"/01/01"));u.setFullYear(t);return u}else return new Date(e)}var cC={"de-DE":{dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},"en-GB":{dateTime:"%a %e %b %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",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"]},"en-US":{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"]},"es-ES":{dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"es-MX":{dateTime:"%x, %X",date:"%d/%m/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"fr-FR":{dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},"it-IT":{dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},"pt-BR":{dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}};function fC(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function hC(t){return pC(t)||vC(t)||gC(t)||dC()}function dC(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function gC(t,e){if(!t)return;if(typeof t==="string")return yC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yC(t,e)}function vC(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function pC(t){if(Array.isArray(t))return yC(t)}function yC(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function mC(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){mC=function t(e){return typeof e}}else{mC=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return mC(t)}function _C(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function bC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function wC(t,e,n){if(e)bC(t.prototype,e);if(n)bC(t,n);return t}function xC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)kC(t,e)}function kC(t,e){kC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return kC(t,e)}function SC(i){var a=AC();return function t(){var e=MC(i),n;if(a){var r=MC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return CC(this,n)}}function CC(t,e){if(e&&(mC(e)==="object"||typeof e==="function")){return e}return EC(t)}function EC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function AC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function MC(t){MC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return MC(t)}var RC=function t(e){return Math.pow(10,Math.floor(Math.log10(e)))};function TC(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=bi().domain([10,400]).range([10,50]);var r=t.range();var i=Math.abs(r[1]-r[0]);var a=Math.floor(i/n(i));if(this._scale==="time"&&this._data&&this._data.length){var o=y(this._data);var s=this._data.reduce(function(t,e,n,r){if(n){var i=Math.abs(e-r[n-1]);if(i<t)t=i}return t},Infinity);var u=Math.round((o[1]-o[0])/s);a=e?dt([a*2,u]):dt([a,u])}return t.ticks(a)}var OC=function(t){xC(r,t);var e=SC(r);function r(){var n;_C(this,r);n=e.call(this);n._align="middle";n._barConfig={stroke:"#999","stroke-width":1};n._data=[];n._domain=[0,10];n._duration=600;n._gridConfig={stroke:"#eee","stroke-width":1};n._gridLog=false;n._height=400;n._labelOffset=false;n._labelRotation=false;n.orient("bottom");n._outerBounds={width:0,height:0,x:0,y:0};n._padding=5;n._paddingInner=.1;n._paddingOuter=.1;n._scale="linear";n._scalePadding=.5;n._shape="Line";n._shapeConfig={fill:"#999",height:function t(e){return e.tick?8:0},label:function t(e){return e.text},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:"#999",fontFamily:(new T9).fontFamily(),fontResize:false,fontSize:nb(14),padding:0,textAnchor:function t(){var e=J6();return n._orient==="left"?e?"start":"end":n._orient==="right"?e?"end":"start":n._labelRotation?n._orient==="bottom"?"end":"start":"middle"},verticalAlign:function t(){return n._orient==="bottom"?"top":n._orient==="top"?"bottom":"middle"}},r:function t(e){return e.tick?4:0},stroke:"#999",strokeWidth:1,width:function t(e){return e.tick?8:0}};n._tickSize=8;n._tickSuffix="normal";n._tickUnit=0;n._timeLocale=undefined;n._titleClass=new T9;n._titleConfig={fontColor:Sw.dark,fontSize:12,textAnchor:"middle"};n._width=400;return n}wC(r,[{key:"_barPosition",value:function t(e){var n=this._position,r=n.height,i=n.x,a=n.y,o=n.opposite,s=this._margin[o],u=["top","left"].includes(this._orient)?this._outerBounds[a]+this._outerBounds[r]-s:this._outerBounds[a]+s;var l=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var c=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var f=(this._d3ScaleNegative?this._d3ScaleNegative.domain():[]).concat(this._d3Scale?this._d3Scale.domain():[]).sort(function(t,e){return t-e});e.call(Kl,this._barConfig).attr("".concat(i,"1"),this._getPosition(f[0])-l).attr("".concat(i,"2"),this._getPosition(f[f.length-1])+c).attr("".concat(a,"1"),u).attr("".concat(a,"2"),u)}},{key:"_getDomain",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.domain();if(this._d3Scale)e=e.concat(this._d3Scale.domain());var n=["band","ordinal","point"].includes(this._scale)?e:y(e);return e[0]>e[1]?n.reverse():n}},{key:"_getPosition",value:function t(e){return this._scale==="log"&&e===0?(this._d3Scale||this._d3ScaleNegative).range()[this._d3Scale?0:1]:(this._scale==="log"&&e<0?this._d3ScaleNegative:this._d3Scale)(e)}},{key:"_getRange",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.range();if(this._d3Scale)e=e.concat(this._d3Scale.range());return e[0]>e[1]?y(e).reverse():y(e)}},{key:"_getLabels",value:function t(){var e=[];if(this._d3ScaleNegative)e=e.concat(TC.bind(this)(this._d3ScaleNegative,false));if(this._d3Scale)e=e.concat(TC.bind(this)(this._d3Scale,false));return e}},{key:"_getTicks",value:function t(){var e=[];if(this._d3ScaleNegative)e=e.concat(TC.bind(this)(this._d3ScaleNegative,true));if(this._d3Scale)e=e.concat(TC.bind(this)(this._d3Scale,true));return e}},{key:"_gridPosition",value:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r=this._position,i=r.height,a=r.x,o=r.y,s=r.opposite,u=this._margin[s],l=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[i]-u:this._outerBounds[o]+u,c=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),f=["top","left"].includes(this._orient)?u:-u,h=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function t(e){return c(e.id)+h};e.call(Kl,this._gridConfig).attr("".concat(a,"1"),d).attr("".concat(a,"2"),d).attr("".concat(o,"1"),l).attr("".concat(o,"2"),n?l:l+f)}},{key:"render",value:function t(e){var d=this,n;if(this._select===void 0){this.select(Is("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var r=this._timeLocale||cC[this._locale]||cC["en-US"];Ke(r).format();var i=this._position,a=i.width,g=i.height,v=i.x,p=i.y,y=i.horizontal,m=i.opposite,o="d3plus-Axis-clip-".concat(this._uuid),_=["top","left"].includes(this._orient),b=this._padding,s=this._select,P=[b,this["_".concat(a)]-b],u=Nl().duration(this._duration);var l=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[a]:this._shapeConfig.strokeWidth;var B=typeof l!=="function"?function(){return l}:l;var w=this._margin={top:0,right:0,bottom:0,left:0};var D,N,z;var F=this._tickFormat?this._tickFormat:function(t){if(isNaN(t)||["band","ordinal","point"].includes(d._scale)){return t}else if(d._scale==="time"){return r3(t,D)}else if(d._scale==="linear"&&d._tickSuffix==="smallest"){var e=mC(d._locale)==="object"?d._locale:Tw[d._locale];var n=e.separator,r=e.suffixes;var i=t>=1e3?r[d._tickUnit+8]:"";var a=t/Math.pow(10,3*d._tickUnit);var o=Nw(a,e,",.".concat(a.toString().length,"r"));return"".concat(o).concat(n).concat(i)}else{return Nw(t,d._locale)}};function c(){var i=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;N=t?t.slice():[undefined,undefined];var e=P[0],n=P[1];if(this._range){if(this._range[0]!==undefined)e=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(N[0]===undefined||N[0]<e)N[0]=e;if(N[1]===undefined||N[1]>n)N[1]=n;var r=n-e;if(this._scale==="ordinal"&&this._domain.length>N.length){if(t===this._range){var a=this._domain.length+1;N=gt(a).map(function(t){return N[0]+r*(t/(a-1))}).slice(1,a);N=N.map(function(t){return t-N[0]/2})}else{var o=this._domain.length;var s=N[1]-N[0];N=gt(o).map(function(t){return N[0]+s*(t/(o-1))})}}else if(t===this._range){var u=bi().domain([10,400]).range([10,50]);var l=this._scale==="time"?this._domain.map(lC):this._domain;var c=ft(l[0],l[1],Math.floor(r/u(r)));z=(this._ticks?this._scale==="time"?this._ticks.map(lC):this._ticks:c).slice();D=(this._labels?this._scale==="time"?this._labels.map(lC):this._labels:c).slice();var f=D.length;if(f){var h=Math.ceil(r/f/2);N=[N[0]+h,N[1]-h]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=Ia[d]().domain(this._scale==="time"?this._domain.map(lC):this._domain).range(N);if(this._d3Scale.padding)this._d3Scale.padding(this._scalePadding);if(this._d3Scale.paddingInner)this._d3Scale.paddingInner(this._paddingInner);if(this._d3Scale.paddingOuter)this._d3Scale.paddingOuter(this._paddingOuter);this._d3ScaleNegative=null;if(this._scale==="log"){var g=this._d3Scale.domain();if(g[0]===0){var v=dt([dt(this._data),Math.abs(g[1])]);g[0]=v===0||v===1?1e-6:v<=1?RC(v):1;if(g[1]<0)g[0]*=-1}else if(g[g.length-1]===0){var p=dt([dt(this._data),Math.abs(g[0])]);g[g.length-1]=p===0||p===1?1e-6:p<=1?RC(p):1;if(g[0]<0)g[g.length-1]*=-1}var y=this._d3Scale.range();if(g[0]<0&&g[g.length-1]<0){this._d3ScaleNegative=this._d3Scale.copy().domain(g).range(y);this._d3Scale=null}else if(g[0]>0&&g[g.length-1]>0){this._d3Scale.domain(g).range(y)}else{var m=Jr().domain(g).range([0,1]);var _=m(0);var b=_*(y[1]-y[0]);var w=dt([dt(this._data.filter(function(t){return t>=0})),Math.abs(g[1])]);var x=dt([dt(this._data.filter(function(t){return t<=-0})),Math.abs(g[0])]);var k=w===0?1e-6:w<=1?RC(w):1;var S=x===0?-1e-6:x<=1?RC(x):1;var C=dt([k,S]);this._d3ScaleNegative=this._d3Scale.copy();(g[0]<0?this._d3Scale:this._d3ScaleNegative).domain([g[0]<0?C:-C,g[1]]).range([y[0]+b,y[1]]);(g[0]<0?this._d3ScaleNegative:this._d3Scale).domain([g[0],g[0]<0?-C:C]).range([y[0],y[0]+b])}}z=(this._ticks?this._scale==="time"?this._ticks.map(lC):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();D=(this._labels?this._scale==="time"?this._labels.map(lC):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getLabels():z).slice();if(this._scale==="log"){var E=D.filter(function(t,e){return!e||e===D.length-1||Math.abs(t).toString().charAt(0)==="1"&&(i._d3Scale?t!==-1:t!==1)});if(E.length>2){D=E}else if(D.length>=10){D=D.filter(function(t){return t%5===0||F(t).substr(-1)==="1"})}if(D.includes(-1)&&D.includes(1)&&D.some(function(t){return t>10||t<10})){D.splice(D.indexOf(-1),1)}}if(this._scale==="time"){z=z.map(Number);D=D.map(Number)}z=z.sort(function(t,e){return i._getPosition(t)-i._getPosition(e)});D=D.sort(function(t,e){return i._getPosition(t)-i._getPosition(e)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var A=D.filter(function(t){return t>=1e3});if(A.length>0){var M=Math.min.apply(Math,hC(A));var R=1;while(R&&R<7){var T=Math.pow(10,3*R);if(M/T>=1){this._tickUnit=R;R+=1}else{break}}}}var O=[];this._availableTicks=z;z.forEach(function(t,e){var n=B({id:t,tick:true},e);if(i._shape==="Circle")n*=2;var r=i._getPosition(t);if(!O.length||Math.abs(Q_(r,O)-r)>n*2)O.push(r);else O.push(false)});z=z.filter(function(t,e){return O[e]!==false});this._visibleTicks=z}c.bind(this)();function f(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=t.i,r=t.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var i=n-e<0?j.length===1||!this._range?P[0]:(r-j[n+e].position)/2-r:r-(r-j[n-e].position)/2;var a=Math.abs(r-i);var o=n+e>j.length-1?j.length===1||!this._range?P[1]:(r-j[n-e].position)/2-r:r-(r-j[n+e].position)/2;var s=Math.abs(r-o);return dt([a,s])*2}}if(this._title){var h=this._titleConfig,x=h.fontFamily,k=h.fontSize,S=h.lineHeight;var C=y9().fontFamily(typeof x==="function"?x():x).fontSize(typeof k==="function"?k():k).lineHeight(typeof S==="function"?S():S).width(N[N.length-1]-N[0]-b*2).height(this["_".concat(g)]-this._tickSize-b*2);var E=C(this._title).lines.length;w[this._orient]=E*C.lineHeight()+b}var A=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true}):this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[g]==="function"?this._shapeConfig[g]({tick:true}):this._shapeConfig[g]:this._tickSize,M=B({tick:true});if(typeof A==="function")A=ht(z.map(A));if(this._shape==="Rect")A/=2;if(typeof M==="function")M=ht(z.map(M));if(this._shape!=="Circle")M/=2;var R=this._shapeConfig.labelConfig,T=R.fontFamily,O=R.fontSize;var j=D.map(function(t,e){var n=typeof T==="function"?T(t,e):T,r=typeof O==="function"?O(t,e):O,i=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):r*1.4;return{d:t,i:e,fF:n,fS:r,lineHeight:a,position:i}});function I(t){var e=t.d,n=t.i,r=t.fF,i=t.fS,a=t.rotate,o=t.space;var s=a?"width":"height",u=a?"height":"width";var l=dt([this._maxSize,this._width]);var c=dt([this._maxSize,this._height]);var f=y9().fontFamily(r).fontSize(i).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(e,n):undefined)[u](y?o:l-A-b-this._margin.left-this._margin.right)[s](y?c-A-b-this._margin.top-this._margin.bottom:o);var h=f(F(e));h.lines=h.lines.filter(function(t){return t!==""});h.width=h.lines.length?Math.ceil(ht(h.widths))+i/4:0;if(h.width%2)h.width++;h.height=h.lines.length?Math.ceil(h.lines.length*f.lineHeight())+i/4:0;if(h.height%2)h.height++;return h}function L(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var a=0;i.forEach(function(t){var e=i[t.i-1];var n=t.rotate&&y||!t.rotate&&!y?"width":"height",r=t.rotate&&y||!t.rotate&&!y?"height":"width";if(!e){a=1}else if(e.position+e[r]/2>t.position-t[r]/2){if(a){t.offset=e[n];a=0}else a=1}})}j=j.map(function(t){t.rotate=d._labelRotation;t.space=f.bind(d)(t);var e=I.bind(d)(t);return Object.assign(e,t)});var H=this._labelOffset&&j.some(function(t){return t.truncated});if(this._labelRotation){j=j.map(function(t){t.rotate=true;var e=I.bind(d)(t);return Object.assign(t,e)})}else if(H){j=j.map(function(t){t.space=f.bind(d)(t,2);var e=I.bind(d)(t);return Object.assign(t,e)});L.bind(this)(j)}var U=[0,0];for(var G=0;G<2;G++){var V=j[G?j.length-1:0];if(!V)break;var W=V.height,q=V.position,K=V.rotate,Y=V.width;var X=G?P[1]:P[0];var Z=(K||!y?W:Y)/2;var $=G?q+Z-X:q-Z-X;U[G]=$}var J=N[0];var Q=N[N.length-1];var tt=[J-U[0],Q-U[1]];if(this._range){if(this._range[0]!==undefined)tt[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)tt[1]=this._range[this._range.length-1]}if(tt[0]!==J||tt[1]!==Q){c.bind(this)(tt);j=D.map(function(t,e){var n=typeof T==="function"?T(t,e):T,r=typeof O==="function"?O(t,e):O,i=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):r*1.4;return{d:t,i:e,fF:n,fS:r,lineHeight:a,position:i}});j=j.map(function(t){t.rotate=d._labelRotation;t.space=f.bind(d)(t,H?2:1);var e=I.bind(d)(t);return Object.assign(e,t)});L.bind(this)(j)}var et=ht(j,function(t){return t.height})||0;this._labelRotation=y&&this._labelRotation===undefined?j.some(function(t){var e=t.i,n=t.height,r=t.position,i=t.truncated;var a=j[e-1];return i||e&&a.position+a.height/2>r-n/2}):this._labelRotation;var nt=this._labelOffset?ht(j,function(t){return t.offset||0}):0;j.forEach(function(t){return t.offset=t.offset?nt:0});var rt=this._shape==="Line"?0:A;var it=this._outerBounds=(n={},fC(n,g,(ht(j,function(t){return Math.ceil(t[t.rotate||!y?"width":"height"]+t.offset)})||0)+(j.length?b:0)),fC(n,a,P[P.length-1]-P[0]),fC(n,v,P[0]),n);it[g]=ht([this._minSize,it[g]]);w[this._orient]+=A;w[m]=this._gridSize!==undefined?ht([this._gridSize,rt]):this["_".concat(g)]-w[this._orient]-it[g]-b;it[g]+=w[m]+w[this._orient];it[p]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(g)]-it[g]-this._padding:this["_".concat(g)]/2-it[g]/2;var at=rb("g#d3plus-Axis-".concat(this._uuid),{parent:s});this._group=at;var ot=rb("g.grid",{parent:at}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?D:z:[]).map(function(t){return{id:t}}),function(t){return t.id});ot.exit().transition(u).attr("opacity",0).call(this._gridPosition.bind(this)).remove();ot.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(ot).transition(u).attr("opacity",1).call(this._gridPosition.bind(this));var st=D.filter(function(t,e){return j[e].lines.length&&!z.includes(t)});var ut=j.some(function(t){return t.rotate});var lt=z.concat(st).map(function(e){var t;var n=j.find(function(t){return t.d===e});var r=d._getPosition(e);var i=n?n.space:0;var a=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var u=y?i:it.width-w[d._position.opposite]-A-w[d._orient]+b;var l=w[m],c=(A+s)*(_?-1:1),f=_?it[p]+it[g]-l:it[p]+l;var h=(t={id:e,labelBounds:ut&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?c+b+(n.width-o*a)/2:c-b*2-(n.width+o*a)/2,width:n.width,height:n.height}:{x:y?-i/2:d._orient==="left"?-u-b+c:c+b,y:y?d._orient==="bottom"?c+b:c-b-et:-i/2,width:y?i:u,height:y?et:i},rotate:n?n.rotate:false,size:D.includes(e)?c:d._data.find(function(t){return+t===e})?Math.ceil(c/2):0,text:D.includes(e)?F(e):false,tick:z.includes(e)},fC(t,v,r+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),fC(t,p,f),t);return h});if(this._shape==="Line"){lt=lt.concat(lt.map(function(t){var e=Object.assign({},t);e[p]+=t.size;return e}))}(new uC[this._shape]).data(lt).duration(this._duration).labelConfig({ellipsis:function t(e){return e&&e.length?"".concat(e,"..."):""},rotate:function t(e){return e.rotate?-90:0}}).select(rb("g.ticks",{parent:at}).node()).config(this._shapeConfig).render();var ct=at.selectAll("line.bar").data([null]);ct.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(ct).transition(u).attr("opacity",1).call(this._barPosition.bind(this));this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(w[this._orient]).rotate(this._orient==="left"?-90:this._orient==="right"?90:0).select(rb("g.d3plus-Axis-title",{parent:at}).node()).text(function(t){return t.text}).verticalAlign("middle").width(N[N.length-1]-N[0]).x(y?N[0]:this._orient==="left"?it.x+w.left/2-(N[N.length-1]-N[0])/2:it.x+it.width-w.right/2-(N[N.length-1]-N[0])/2).y(y?this._orient==="bottom"?it.y+it.height-w.bottom:it.y:N[0]+(N[N.length-1]-N[0])/2-w[this._orient]/2).config(this._titleConfig).render();this._lastScale=this._getPosition.bind(this);if(e)setTimeout(e,this._duration+100);return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"barConfig",value:function t(e){return arguments.length?(this._barConfig=Object.assign(this._barConfig,e),this):this._barConfig}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"grid",value:function t(e){return arguments.length?(this._grid=e,this):this._grid}},{key:"gridConfig",value:function t(e){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,e),this):this._gridConfig}},{key:"gridLog",value:function t(e){return arguments.length?(this._gridLog=e,this):this._gridLog}},{key:"gridSize",value:function t(e){return arguments.length?(this._gridSize=e,this):this._gridSize}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labels",value:function t(e){return arguments.length?(this._labels=e,this):this._labels}},{key:"labelOffset",value:function t(e){return arguments.length?(this._labelOffset=e,this):this._labelOffset}},{key:"labelRotation",value:function t(e){return arguments.length?(this._labelRotation=e,this):this._labelRotation}},{key:"maxSize",value:function t(e){return arguments.length?(this._maxSize=e,this):this._maxSize}},{key:"minSize",value:function t(e){return arguments.length?(this._minSize=e,this):this._minSize}},{key:"orient",value:function t(e){if(arguments.length){var n=["top","bottom"].includes(e),r={top:"bottom",right:"left",bottom:"top",left:"right"};this._position={horizontal:n,width:n?"width":"height",height:n?"height":"width",x:n?"x":"y",y:n?"y":"x",opposite:r[e]};return this._orient=e,this}return this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"range",value:function t(e){return arguments.length?(this._range=e,this):this._range}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"scalePadding",value:function t(e){return arguments.length?(this._scalePadding=e,this):this._scalePadding}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=e,this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=ql(this._shapeConfig,e),this):this._shapeConfig}},{key:"tickFormat",value:function t(e){return arguments.length?(this._tickFormat=e,this):this._tickFormat}},{key:"ticks",value:function t(e){return arguments.length?(this._ticks=e,this):this._ticks}},{key:"tickSize",value:function t(e){return arguments.length?(this._tickSize=e,this):this._tickSize}},{key:"tickSuffix",value:function t(e){return arguments.length?(this._tickSuffix=e,this):this._tickSuffix}},{key:"timeLocale",value:function t(e){return arguments.length?(this._timeLocale=e,this):this._timeLocale}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,e),this):this._titleConfig}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return r}(J_);function PC(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){PC=function t(e){return typeof e}}else{PC=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return PC(t)}function BC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function DC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)NC(t,e)}function NC(t,e){NC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return NC(t,e)}function zC(i){var a=IC();return function t(){var e=LC(i),n;if(a){var r=LC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return FC(this,n)}}function FC(t,e){if(e&&(PC(e)==="object"||typeof e==="function")){return e}return jC(t)}function jC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function IC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function LC(t){LC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return LC(t)}var HC=function(t){DC(n,t);var e=zC(n);function n(){var t;BC(this,n);t=e.call(this);t.orient("bottom");return t}return n}(OC);function UC(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){UC=function t(e){return typeof e}}else{UC=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return UC(t)}function GC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function VC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)WC(t,e)}function WC(t,e){WC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return WC(t,e)}function qC(i){var a=XC();return function t(){var e=ZC(i),n;if(a){var r=ZC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return KC(this,n)}}function KC(t,e){if(e&&(UC(e)==="object"||typeof e==="function")){return e}return YC(t)}function YC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function XC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function ZC(t){ZC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ZC(t)}var $C=function(t){VC(n,t);var e=qC(n);function n(){var t;GC(this,n);t=e.call(this);t.orient("left");return t}return n}(OC);function JC(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){JC=function t(e){return typeof e}}else{JC=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return JC(t)}function QC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function t5(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)e5(t,e)}function e5(t,e){e5=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return e5(t,e)}function n5(i){var a=a5();return function t(){var e=o5(i),n;if(a){var r=o5(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return r5(this,n)}}function r5(t,e){if(e&&(JC(e)==="object"||typeof e==="function")){return e}return i5(t)}function i5(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function a5(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function o5(t){o5=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return o5(t)}var s5=function(t){t5(n,t);var e=n5(n);function n(){var t;QC(this,n);t=e.call(this);t.orient("right");return t}return n}(OC);function u5(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){u5=function t(e){return typeof e}}else{u5=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return u5(t)}function l5(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function c5(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)f5(t,e)}function f5(t,e){f5=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return f5(t,e)}function h5(i){var a=v5();return function t(){var e=p5(i),n;if(a){var r=p5(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return d5(this,n)}}function d5(t,e){if(e&&(u5(e)==="object"||typeof e==="function")){return e}return g5(t)}function g5(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function v5(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function p5(t){p5=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return p5(t)}var y5=function(t){c5(n,t);var e=h5(n);function n(){var t;l5(this,n);t=e.call(this);t.orient("top");return t}return n}(OC);var m5=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function _5(t){var e={exports:{}};return t(e,e.exports),e.exports}function b5(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var w5=_5(function(e,t){(function(t){{e.exports=t()}})(function(){return function a(o,s,u){function l(n,t){if(!s[n]){if(!o[n]){var e=typeof b5=="function"&&b5;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(t){var e=o[n][1][t];return l(e?e:t)},i,i.exports,a,o,s,u)}return s[n].exports}var c=typeof b5=="function"&&b5;for(var t=0;t<u.length;t++){l(u[t])}return l}({1:[function(t,N,z){(function(D){(function(t){var e=_typeof2(z)=="object"&&z&&!z.nodeType&&z;var n=_typeof2(N)=="object"&&N&&!N.nodeType&&N;var r=_typeof2(D)=="object"&&D;if(r.global===r||r.window===r||r.self===r){t=r}var i,y=2147483647,m=36,_=1,b=26,a=38,o=700,w=72,x=128,k="-",s=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=m-_,S=Math.floor,C=String.fromCharCode,h;function E(t){throw new RangeError(c[t])}function d(t,e){var n=t.length;var r=[];while(n--){r[n]=e(t[n])}return r}function g(t,e){var n=t.split("@");var r="";if(n.length>1){r=n[0]+"@";t=n[1]}t=t.replace(l,".");var i=t.split(".");var a=d(i,e).join(".");return r+a}function A(t){var e=[],n=0,r=t.length,i,a;while(n<r){i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){a=t.charCodeAt(n++);if((a&64512)==56320){e.push(((i&1023)<<10)+(a&1023)+65536)}else{e.push(i);n--}}else{e.push(i)}}return e}function p(t){return d(t,function(t){var e="";if(t>65535){t-=65536;e+=C(t>>>10&1023|55296);t=56320|t&1023}e+=C(t);return e}).join("")}function M(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return m}function R(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function T(t,e,n){var r=0;t=n?S(t/o):t>>1;t+=S(t/e);for(;t>f*b>>1;r+=m){t=S(t/f)}return S(r+(f+1)*t/(t+a))}function v(t){var e=[],n=t.length,r,i=0,a=x,o=w,s,u,l,c,f,h,d,g,v;s=t.lastIndexOf(k);if(s<0){s=0}for(u=0;u<s;++u){if(t.charCodeAt(u)>=128){E("not-basic")}e.push(t.charCodeAt(u))}for(l=s>0?s+1:0;l<n;){for(c=i,f=1,h=m;;h+=m){if(l>=n){E("invalid-input")}d=M(t.charCodeAt(l++));if(d>=m||d>S((y-i)/f)){E("overflow")}i+=d*f;g=h<=o?_:h>=o+b?b:h-o;if(d<g){break}v=m-g;if(f>S(y/v)){E("overflow")}f*=v}r=e.length+1;o=T(i-c,r,c==0);if(S(i/r)>y-a){E("overflow")}a+=S(i/r);i%=r;e.splice(i++,0,a)}return p(e)}function O(t){var e,n,r,i,a,o,s,u,l,c,f,h=[],d,g,v,p;t=A(t);d=t.length;e=x;n=0;a=w;for(o=0;o<d;++o){f=t[o];if(f<128){h.push(C(f))}}r=i=h.length;if(i){h.push(k)}while(r<d){for(s=y,o=0;o<d;++o){f=t[o];if(f>=e&&f<s){s=f}}g=r+1;if(s-e>S((y-n)/g)){E("overflow")}n+=(s-e)*g;e=s;for(o=0;o<d;++o){f=t[o];if(f<e&&++n>y){E("overflow")}if(f==e){for(u=n,l=m;;l+=m){c=l<=a?_:l>=a+b?b:l-a;if(u<c){break}p=u-c;v=m-c;h.push(C(R(c+p%v,0)));u=S(p/v)}h.push(C(R(u,0)));a=T(n,g,r==i);n=0;++r}}++n;++e}return h.join("")}function P(t){return g(t,function(t){return s.test(t)?v(t.slice(4).toLowerCase()):t})}function B(t){return g(t,function(t){return u.test(t)?"xn--"+O(t):t})}i={version:"1.3.2",ucs2:{decode:A,encode:p},decode:v,encode:O,toASCII:B,toUnicode:P};if(e&&n){if(N.exports==e){n.exports=i}else{for(h in i){i.hasOwnProperty(h)&&(e[h]=i[h])}}}else{t.punycode=i}})(this)}).call(this,typeof m5!=="undefined"?m5:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(t,e,n){var r=t("./log");function l(t,e,n){if(t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)){t.defaultView.scrollTo(e,n)}}function i(e,t){try{if(t){t.width=e.width;t.height=e.height;t.getContext("2d").putImageData(e.getContext("2d").getImageData(0,0,e.width,e.height),0,0)}}catch(t){r("Unable to copy canvas content from",e,t)}}function c(t,e){var n=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(false);var r=t.firstChild;while(r){if(e===true||r.nodeType!==1||r.nodeName!=="SCRIPT"){n.appendChild(c(r,e))}r=r.nextSibling}if(t.nodeType===1){n._scrollTop=t.scrollTop;n._scrollLeft=t.scrollLeft;if(t.nodeName==="CANVAS"){i(t,n)}else if(t.nodeName==="TEXTAREA"||t.nodeName==="SELECT"){n.value=t.value}}return n}function f(t){if(t.nodeType===1){t.scrollTop=t._scrollTop;t.scrollLeft=t._scrollLeft;var e=t.firstChild;while(e){f(e);e=e.nextSibling}}}e.exports=function(t,e,n,r,i,a,o){var s=c(t.documentElement,i.javascriptEnabled);var u=e.createElement("iframe");u.className="html2canvas-container";u.style.visibility="hidden";u.style.position="fixed";u.style.left="-10000px";u.style.top="0px";u.style.border="0";u.width=n;u.height=r;u.scrolling="no";e.body.appendChild(u);return new Promise(function(e){var n=u.contentWindow.document;u.contentWindow.onload=u.onload=function(){var t=setInterval(function(){if(n.body.childNodes.length>0){f(n.documentElement);clearInterval(t);if(i.type==="view"){u.contentWindow.scrollTo(a,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.contentWindow.scrollY!==o||u.contentWindow.scrollX!==a)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-a+"px";n.documentElement.style.position="absolute"}}e(u)}},50)};n.open();n.write("<!DOCTYPE html><html></html>");l(t,a,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(t,e,n){function r(t){this.r=0;this.g=0;this.b=0;this.a=null;this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}r.prototype.darken=function(t){var e=1-t;return new r([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])};r.prototype.isTransparent=function(){return this.a===0};r.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};r.prototype.fromArray=function(t){if(Array.isArray(t)){this.r=Math.min(t[0],255);this.g=Math.min(t[1],255);this.b=Math.min(t[2],255);if(t.length>3){this.a=t[3]}}return Array.isArray(t)};var i=/^#([a-f0-9]{3})$/i;r.prototype.hex3=function(t){var e=null;if((e=t.match(i))!==null){this.r=parseInt(e[1][0]+e[1][0],16);this.g=parseInt(e[1][1]+e[1][1],16);this.b=parseInt(e[1][2]+e[1][2],16)}return e!==null};var a=/^#([a-f0-9]{6})$/i;r.prototype.hex6=function(t){var e=null;if((e=t.match(a))!==null){this.r=parseInt(e[1].substring(0,2),16);this.g=parseInt(e[1].substring(2,4),16);this.b=parseInt(e[1].substring(4,6),16)}return e!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;r.prototype.rgb=function(t){var e=null;if((e=t.match(o))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3])}return e!==null};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;r.prototype.rgba=function(t){var e=null;if((e=t.match(s))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3]);this.a=Number(e[4])}return e!==null};r.prototype.toString=function(){return this.a!==null&&this.a!==1?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"};r.prototype.namedColor=function(t){t=t.toLowerCase();var e=u[t];if(e){this.r=e[0];this.g=e[1];this.b=e[2]}else if(t==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!e};r.prototype.isColor=true;var u={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};e.exports=r},{}],4:[function(t,e,n){var d=t("./support");var o=t("./renderers/canvas");var g=t("./imageloader");var v=t("./nodeparser");var r=t("./nodecontainer");var p=t("./log");var i=t("./utils");var a=t("./clone");var s=t("./proxy").loadUrlDocument;var y=i.getBounds;var f="data-html2canvas-node";var u=0;function l(t,e){var n=u++;e=e||{};if(e.logging){p.options.logging=true;p.options.start=Date.now()}e.async=typeof e.async==="undefined"?true:e.async;e.allowTaint=typeof e.allowTaint==="undefined"?false:e.allowTaint;e.removeContainer=typeof e.removeContainer==="undefined"?true:e.removeContainer;e.javascriptEnabled=typeof e.javascriptEnabled==="undefined"?false:e.javascriptEnabled;e.imageTimeout=typeof e.imageTimeout==="undefined"?1e4:e.imageTimeout;e.renderer=typeof e.renderer==="function"?e.renderer:o;e.strict=!!e.strict;if(typeof t==="string"){if(typeof e.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var r=e.width!=null?e.width:window.innerWidth;var i=e.height!=null?e.height:window.innerHeight;return s(k(t),e.proxy,document,r,i,e).then(function(t){return m(t.contentWindow.document.documentElement,t,e,r,i)})}var a=(t===undefined?[document.documentElement]:t.length?t:[t])[0];a.setAttribute(f+n,n);return h(a.ownerDocument,e,a.ownerDocument.defaultView.innerWidth,a.ownerDocument.defaultView.innerHeight,n).then(function(t){if(typeof e.onrendered==="function"){p("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");e.onrendered(t)}return t})}l.CanvasRenderer=o;l.NodeContainer=r;l.log=p;l.utils=i;var c=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:l;e.exports=c;function h(o,s,u,l,c){return a(o,o,u,l,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(t){p("Document cloned");var e=f+c;var n="["+e+"='"+c+"']";o.querySelector(n).removeAttribute(e);var r=t.contentWindow;var i=r.document.querySelector(n);var a=typeof s.onclone==="function"?Promise.resolve(s.onclone(r.document)):Promise.resolve(true);return a.then(function(){return m(i,t,s,u,l)})})}function m(e,n,r,t,i){var a=n.contentWindow;var o=new d(a.document);var s=new g(r,o);var u=y(e);var l=r.type==="view"?t:w(a.document);var c=r.type==="view"?i:x(a.document);var f=new r.renderer(l,c,s,r,document);var h=new v(e,f,o,s,r);return h.ready.then(function(){p("Finished rendering");var t;if(r.type==="view"){t=b(f.canvas,{width:f.canvas.width,height:f.canvas.height,top:0,left:0,x:0,y:0})}else if(e===a.document.body||e===a.document.documentElement||r.canvas!=null){t=f.canvas}else{t=b(f.canvas,{width:r.width!=null?r.width:u.width,height:r.height!=null?r.height:u.height,top:u.top,left:u.left,x:0,y:0})}_(n,r);return t})}function _(t,e){if(e.removeContainer){t.parentNode.removeChild(t);p("Cleaned up container")}}function b(t,e){var n=document.createElement("canvas");var r=Math.min(t.width-1,Math.max(0,e.left));var i=Math.min(t.width,Math.max(1,e.left+e.width));var a=Math.min(t.height-1,Math.max(0,e.top));var o=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width;n.height=e.height;var s=i-r;var u=o-a;p("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",u);p("Resulting crop with width",e.width,"and height",e.height,"with x",r,"and y",a);n.getContext("2d").drawImage(t,r,a,s,u,e.x,e.y,s,u);return n}function w(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function x(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function k(t){var e=document.createElement("a");e.href=t;e.href=e.href;return e}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){var r=t("./log");var i=t("./utils").smallImage;function a(t){this.src=t;r("DummyImageContainer for",t);if(!this.promise||!this.image){r("Initiating DummyImageContainer");a.prototype.image=new Image;var n=this.image;a.prototype.promise=new Promise(function(t,e){n.onload=t;n.onerror=e;n.src=i();if(n.complete===true){t(n)}})}}e.exports=a},{"./log":13,"./utils":26}],6:[function(t,e,n){var u=t("./utils").smallImage;function r(t,e){var n=document.createElement("div"),r=document.createElement("img"),i=document.createElement("span"),a="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=t;n.style.fontSize=e;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);r.src=u();r.width=1;r.height=1;r.style.margin=0;r.style.padding=0;r.style.verticalAlign="baseline";i.style.fontFamily=t;i.style.fontSize=e;i.style.margin=0;i.style.padding=0;i.appendChild(document.createTextNode(a));n.appendChild(i);n.appendChild(r);o=r.offsetTop-i.offsetTop+1;n.removeChild(i);n.appendChild(document.createTextNode(a));n.style.lineHeight="normal";r.style.verticalAlign="super";s=r.offsetTop-n.offsetTop+1;document.body.removeChild(n);this.baseline=o;this.lineWidth=1;this.middle=s}e.exports=r},{"./utils":26}],7:[function(t,e,n){var r=t("./font");function i(){this.data={}}i.prototype.getMetrics=function(t,e){if(this.data[t+"-"+e]===undefined){this.data[t+"-"+e]=new r(t,e)}return this.data[t+"-"+e]};e.exports=i},{"./font":6}],8:[function(a,t,e){var n=a("./utils");var o=n.getBounds;var i=a("./proxy").loadUrlDocument;function r(e,t,n){this.image=null;this.src=e;var r=this;var i=o(e);this.promise=(!t?this.proxyLoad(n.proxy,i,n):new Promise(function(t){if(e.contentWindow.document.URL==="about:blank"||e.contentWindow.document.documentElement==null){e.contentWindow.onload=e.onload=function(){t(e)}}else{t(e)}})).then(function(t){var e=a("./core");return e(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(t){return r.image=t})}r.prototype.proxyLoad=function(t,e,n){var r=this.src;return i(r.src,t,r.ownerDocument,e.width,e.height,n)};t.exports=r},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function r(t){this.src=t.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(true)}r.TYPES={LINEAR:1,RADIAL:2};r.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i;e.exports=r},{}],10:[function(t,e,n){function r(n,r){this.src=n;this.image=new Image;var i=this;this.tainted=null;this.promise=new Promise(function(t,e){i.image.onload=t;i.image.onerror=e;if(r){i.image.crossOrigin="anonymous"}i.image.src=n;if(i.image.complete===true){t(i.image)}})}e.exports=r},{}],11:[function(t,e,n){var a=t("./log");var r=t("./imagecontainer");var i=t("./dummyimagecontainer");var o=t("./proxyimagecontainer");var s=t("./framecontainer");var u=t("./svgcontainer");var l=t("./svgnodecontainer");var c=t("./lineargradientcontainer");var f=t("./webkitgradientcontainer");var h=t("./utils").bind;function d(t,e){this.link=null;this.options=t;this.support=e;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(t){var e=[];t.reduce(function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t},[]).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.findBackgroundImage=function(t,e){e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.addImage=function(n,r){return function(e){e.args.forEach(function(t){if(!this.imageExists(n,t)){n.splice(0,0,r.call(this,e));a("Added image #"+n.length,typeof t==="string"?t.substring(0,100):t)}},this)}};d.prototype.hasImageBackground=function(t){return t.method!=="none"};d.prototype.loadImage=function(t){if(t.method==="url"){var e=t.args[0];if(this.isSVG(e)&&!this.support.svg&&!this.options.allowTaint){return new u(e)}else if(e.match(/data:image\/.*;base64,/i)){return new r(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(e)||this.options.allowTaint===true||this.isSVG(e)){return new r(e,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new r(e,true)}else if(this.options.proxy){return new o(e,this.options.proxy)}else{return new i(e)}}else if(t.method==="linear-gradient"){return new c(t)}else if(t.method==="gradient"){return new f(t)}else if(t.method==="svg"){return new l(t.args[0],this.support.svg)}else if(t.method==="IFRAME"){return new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options)}else{return new i(t)}};d.prototype.isSVG=function(t){return t.substring(t.length-3).toLowerCase()==="svg"||u.prototype.isInline(t)};d.prototype.imageExists=function(t,e){return t.some(function(t){return t.src===e})};d.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin};d.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));e.href=t;e.href=e.href;return e.protocol+e.hostname+e.port};d.prototype.getPromise=function(e){return this.timeout(e,this.options.imageTimeout)["catch"](function(){var t=new i(e.src);return t.promise.then(function(t){e.image=t})})};d.prototype.get=function(e){var n=null;return this.images.some(function(t){return(n=t).src===e})?n:null};d.prototype.fetch=function(t){this.images=t.reduce(h(this.findBackgroundImage,this),this.findImages(t));this.images.forEach(function(e,n){e.promise.then(function(){a("Succesfully loaded image #"+(n+1),e)},function(t){a("Failed loading image #"+(n+1),e,t)})});this.ready=Promise.all(this.images.map(this.getPromise,this));a("Finished searching images");return this};d.prototype.timeout=function(n,r){var i;var t=Promise.race([n.promise,new Promise(function(t,e){i=setTimeout(function(){a("Timed out loading image",n);e(n)},r)})]).then(function(t){clearTimeout(i);return t});t["catch"](function(){clearTimeout(i)});return t};e.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){var i=t("./gradientcontainer");var a=t("./color");function r(t){i.apply(this,arguments);this.type=i.TYPES.LINEAR;var e=r.REGEXP_DIRECTION.test(t.args[0])||!i.REGEXP_COLORSTOP.test(t.args[0]);if(e){t.args[0].split(/\s+/).reverse().forEach(function(t,e){switch(t){case"left":this.x0=0;this.x1=1;break;case"top":this.y0=0;this.y1=1;break;case"right":this.x0=1;this.x1=0;break;case"bottom":this.y0=1;this.y1=0;break;case"to":var n=this.y0;var r=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=r;this.y1=n;break;case"center":break;default:var i=parseFloat(t,10)*.01;if(isNaN(i)){break}if(e===0){this.y0=i;this.y1=1-this.y0}else{this.x0=i;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(i.REGEXP_COLORSTOP);var n=+e[2];var r=n===0?"%":e[3];return{color:new a(e[1]),stop:r==="%"?n/100:null}});if(this.colorStops[0].stop===null){this.colorStops[0].stop=0}if(this.colorStops[this.colorStops.length-1].stop===null){this.colorStops[this.colorStops.length-1].stop=1}this.colorStops.forEach(function(n,r){if(n.stop===null){this.colorStops.slice(r).some(function(t,e){if(t.stop!==null){n.stop=(t.stop-this.colorStops[r-1].stop)/(e+1)+this.colorStops[r-1].stop;return true}else{return false}},this)}},this)}r.prototype=Object.create(i.prototype);r.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;e.exports=r},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var r=function t(){if(t.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-t.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};r.options={logging:false};e.exports=r},{}],14:[function(t,e,n){var a=t("./color");var r=t("./utils");var i=r.getBounds;var o=r.parseBackgrounds;var s=r.offsetBounds;function u(t,e){this.node=t;this.parent=e;this.stack=null;this.bounds=null;this.borders=null;this.clip=[];this.backgroundClip=[];this.offsetBounds=null;this.visible=null;this.computedStyles=null;this.colors={};this.styles={};this.backgroundImages=null;this.transformData=null;this.transformMatrix=null;this.isPseudoElement=false;this.opacity=null}u.prototype.cloneTo=function(t){t.visible=this.visible;t.borders=this.borders;t.bounds=this.bounds;t.clip=this.clip;t.backgroundClip=this.backgroundClip;t.computedStyles=this.computedStyles;t.styles=this.styles;t.backgroundImages=this.backgroundImages;t.opacity=this.opacity};u.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};u.prototype.assignStack=function(t){this.stack=t;t.children.push(this)};u.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:this.css("display")!=="none"&&this.css("visibility")!=="hidden"&&!this.node.hasAttribute("data-html2canvas-ignore")&&(this.node.nodeName!=="INPUT"||this.node.getAttribute("type")!=="hidden")};u.prototype.css=function(t){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[t]||(this.styles[t]=this.computedStyles[t])};u.prototype.prefixedCss=function(e){var t=["webkit","moz","ms","o"];var n=this.css(e);if(n===undefined){t.some(function(t){n=this.css(t+e.substr(0,1).toUpperCase()+e.substr(1));return n!==undefined},this)}return n===undefined?null:n};u.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)};u.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e};u.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new a(this.css(t)))};u.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e};u.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal";break}return t};u.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);if(t){return{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}}return null};u.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};u.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");n=n[e||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],f(n[0])?"auto":n[0]]}return n};u.prototype.parseBackgroundSize=function(t,e,n){var r=this.cssList("backgroundSize",n);var i,a;if(f(r[0])){i=t.width*parseFloat(r[0])/100}else if(/contain|cover/.test(r[0])){var o=t.width/t.height,s=e.width/e.height;return o<s^r[0]==="contain"?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}else{i=parseInt(r[0],10)}if(r[0]==="auto"&&r[1]==="auto"){a=e.height}else if(r[1]==="auto"){a=i/e.width*e.height}else if(f(r[1])){a=t.height*parseFloat(r[1])/100}else{a=parseInt(r[1],10)}if(r[0]==="auto"){i=a/e.height*e.width}return{width:i,height:a}};u.prototype.parseBackgroundPosition=function(t,e,n,r){var i=this.cssList("backgroundPosition",n);var a,o;if(f(i[0])){a=(t.width-(r||e).width)*(parseFloat(i[0])/100)}else{a=parseInt(i[0],10)}if(i[1]==="auto"){o=a/e.width*e.height}else if(f(i[1])){o=(t.height-(r||e).height)*parseFloat(i[1])/100}else{o=parseInt(i[1],10)}if(i[0]==="auto"){a=o/e.height*e.width}return{left:a,top:o}};u.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]};u.prototype.parseTextShadows=function(){var t=this.css("textShadow");var e=[];if(t&&t!=="none"){var n=t.match(this.TEXT_SHADOW_PROPERTY);for(var r=0;n&&r<n.length;r++){var i=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new a(i[0]),offsetX:i[1]?parseFloat(i[1].replace("px","")):0,offsetY:i[2]?parseFloat(i[2].replace("px","")):0,blur:i[3]?i[3].replace("px",""):0})}}return e};u.prototype.parseTransform=function(){if(!this.transformData){if(this.hasTransform()){var t=this.parseBounds();var e=this.prefixedCss("transformOrigin").split(" ").map(h).map(d);e[0]+=t.left;e[1]+=t.top;this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else{this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]}}}return this.transformData};u.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform");var e=t?c(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e?e:[1,0,0,1,0,0]}return this.transformMatrix};u.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):i(this.node))};u.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};u.prototype.getValue=function(){var t=this.node.value||"";if(this.node.tagName==="SELECT"){t=l(this.node)}else if(this.node.type==="password"){t=Array(t.length+1).join("•")}return t.length===0?this.node.placeholder||"":t};u.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;u.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;u.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;u.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;function l(t){var e=t.options[t.selectedIndex||0];return e?e.text||"":""}function c(t){if(t&&t[1]==="matrix"){return t[2].split(",").map(function(t){return parseFloat(t.trim())})}else if(t&&t[1]==="matrix3d"){var e=t[2].split(",").map(function(t){return parseFloat(t.trim())});return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function f(t){return t.toString().indexOf("%")!==-1}function h(t){return t.replace("px","")}function d(t){return parseFloat(t)}e.exports=u},{"./color":3,"./utils":26}],15:[function(t,e,n){var s=t("./log");var u=t("punycode");var l=t("./nodecontainer");var c=t("./textcontainer");var f=t("./pseudoelementcontainer");var h=t("./fontmetrics");var d=t("./color");var g=t("./stackingcontext");var r=t("./utils");var v=r.bind;var o=r.getBounds;var p=r.parseBackgrounds;var y=r.offsetBounds;function i(t,e,n,r,i){s("Starting NodeParser");this.renderer=e;this.options=i;this.range=null;this.support=n;this.renderQueue=[];this.stack=new g(true,1,t.ownerDocument,null);var a=new l(t,null);if(i.background){e.rectangle(0,0,e.width,e.height,new d(i.background))}if(t===t.ownerDocument.documentElement){var o=new l(a.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,o.color("backgroundColor"))}a.visibile=a.isElementVisible();this.createPseudoHideStyles(t.ownerDocument);this.disableAnimations(t.ownerDocument);this.nodes=X([a].concat(this.getChildren(a)).filter(function(t){return t.visible=t.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new h;s("Fetched nodes, total:",this.nodes.length);s("Calculate overflow clips");this.calculateOverflowClips();s("Start fetching images");this.images=r.fetch(this.nodes.filter(H));this.ready=this.images.ready.then(v(function(){s("Images loaded, starting parsing");s("Creating stacking contexts");this.createStackingContexts();s("Sorting stacking contexts");this.sortStackingContexts(this.stack);this.parse(this.stack);s("Render queue created with "+this.renderQueue.length+" items");return new Promise(v(function(t){if(!i.async){this.renderQueue.forEach(this.paint,this);t()}else if(typeof i.async==="function"){i.async.call(this,this.renderQueue,t)}else if(this.renderQueue.length>0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,t)}else{t()}},this))},this))}i.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(t){if(H(t)){if(U(t)){t.appendToDOM()}t.borders=this.parseBorders(t);var e=t.css("overflow")==="hidden"?[t.borders.clip]:[];var n=t.parseClip();if(n&&["absolute","fixed"].indexOf(t.css("position"))!==-1){e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}t.clip=a(t)?t.parent.clip.concat(e):e;t.backgroundClip=t.css("overflow")!=="hidden"?t.clip.concat([t.borders.clip]):t.clip;if(U(t)){t.cleanDOM()}}else if(G(t)){t.clip=a(t)?t.parent.clip:[]}if(!U(t)){t.bounds=null}},this)};function a(t){return t.parent&&t.parent.clip.length}i.prototype.asyncRenderer=function(t,e,n){n=n||Date.now();this.paint(t[this.renderIndex++]);if(t.length===this.renderIndex){e()}else if(n+20>Date.now()){this.asyncRenderer(t,e,n)}else{setTimeout(v(function(){this.asyncRenderer(t,e)},this),0)}};i.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};i.prototype.disableAnimations=function(t){this.createStyles(t,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; "+"-webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")};i.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e;t.body.appendChild(n)};i.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before");var r=this.getPseudoElement(t,":after");if(n){e.push(n)}if(r){e.push(r)}}return X(e)};function m(t){return t.replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","")})}i.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var r=Z(n.content);var i=r.substr(0,3)==="url";var a=document.createElement(i?"img":"html2canvaspseudoelement");var o=new f(a,t,e);for(var s=n.length-1;s>=0;s--){var u=m(n.item(s));a.style[u]=n[u]}a.className=f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(i){a.src=p(r)[0].args[0];return[o]}else{var l=document.createTextNode(r);a.appendChild(l);return[o,new c(l,o)]}};i.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,N).map(function(t){var e=[t.nodeType===Node.TEXT_NODE?new c(t,n):new l(t,n)].filter(Y);return t.nodeType===Node.ELEMENT_NODE&&e.length&&t.tagName!=="TEXTAREA"?e[0].isElementVisible()?e.concat(this.getChildren(e[0])):[]:e},this))};i.prototype.newStackingContext=function(t,e){var n=new g(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n);var r=e?n.getParentStack(this):n.parent.stack;r.contexts.push(n);t.stack=n};i.prototype.createStackingContexts=function(){this.nodes.forEach(function(t){if(H(t)&&(this.isRootElement(t)||W(t)||z(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())){this.newStackingContext(t,true)}else if(H(t)&&(F(t)&&R(t)||I(t)||j(t))){this.newStackingContext(t,false)}else{t.assignStack(t.parent.stack)}},this)};i.prototype.isBodyWithTransparentRoot=function(t){return t.node.nodeName==="BODY"&&t.parent.color("backgroundColor").isTransparent()};i.prototype.isRootElement=function(t){return t.parent===null};i.prototype.sortStackingContexts=function(t){t.contexts.sort(V(t.contexts.slice(0)));t.contexts.forEach(this.sortStackingContexts,this)};i.prototype.parseTextBounds=function(o){return function(t,e,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||t.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var r=n.slice(0,e).join("").length;return this.getRangeBounds(o.node,r,t.length)}else if(o.node&&typeof o.node.data==="string"){var i=o.node.splitText(t.length);var a=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=i;return a}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(t.length)}return{}}};i.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper");var r=t.parentNode,i=t.cloneNode(true);n.appendChild(t.cloneNode(true));r.replaceChild(n,t);var a=e?y(n):o(n);r.replaceChild(i,n);return a};i.prototype.getRangeBounds=function(t,e,n){var r=this.range||(this.range=t.ownerDocument.createRange());r.setStart(t,e);r.setEnd(t,e+n);return r.getBoundingClientRect()};function _(){}i.prototype.parse=function(t){var e=t.contexts.filter(A);var n=t.children.filter(H);var r=n.filter(L(j));var i=r.filter(L(F)).filter(L(T));var a=n.filter(L(F)).filter(j);var o=r.filter(L(F)).filter(T);var s=t.contexts.concat(r.filter(F)).filter(R);var u=t.children.filter(G).filter(P);var l=t.contexts.filter(M);e.concat(i).concat(a).concat(o).concat(s).concat(u).concat(l).forEach(function(t){this.renderQueue.push(t);if(O(t)){this.parse(t);this.renderQueue.push(new _)}},this)};i.prototype.paint=function(t){try{if(t instanceof _){this.renderer.ctx.restore()}else if(G(t)){if(U(t.parent)){t.parent.appendToDOM()}this.paintText(t);if(U(t.parent)){t.parent.cleanDOM()}}else{this.paintNode(t)}}catch(t){s(t);if(this.options.strict){throw t}}};i.prototype.paintNode=function(t){if(O(t)){this.renderer.setOpacity(t.opacity);this.renderer.ctx.save();if(t.hasTransform()){this.renderer.setTransform(t.parseTransform())}}if(t.node.nodeName==="INPUT"&&t.node.type==="checkbox"){this.paintCheckbox(t)}else if(t.node.nodeName==="INPUT"&&t.node.type==="radio"){this.paintRadio(t)}else{this.paintElement(t)}};i.prototype.paintElement=function(n){var r=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,r,n.borders.borders.map(K))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){switch(n.node.nodeName){case"svg":case"IFRAME":var t=this.images.get(n.node);if(t){this.renderer.renderImage(n,r,n.borders,t)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var e=this.images.get(n.node.src);if(e){this.renderer.renderImage(n,r,n.borders,e)}else{s("Error loading <img>",n.node.src)}break;case"CANVAS":this.renderer.renderImage(n,r,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n);break}},this)};i.prototype.paintCheckbox=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height);var r={width:n-1,height:n-1,top:e.top,left:e.left};var i=[3,3];var a=[i,i,i,i];var o=[1,1,1,1].map(function(t){return{color:new d("#A5A5A5"),width:t}});var s=k(r,a,o);this.renderer.clip(t.backgroundClip,function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new d("#DEDEDE"));this.renderer.renderBorders(w(o,r,s,a));if(t.node.checked){this.renderer.font(new d("#424242"),"normal","normal","bold",n-3+"px","arial");this.renderer.text("✔",r.left+n/6,r.top+n-1)}},this)};i.prototype.paintRadio=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(t.node.checked){this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};i.prototype.paintFormValue=function(e){var t=e.getValue();if(t.length>0){var n=e.node.ownerDocument;var r=n.createElement("html2canvaswrapper");var i=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];i.forEach(function(t){try{r.style[t]=e.css(t)}catch(t){s("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}});var a=e.parseBounds();r.style.position="fixed";r.style.left=a.left+"px";r.style.top=a.top+"px";r.textContent=t;n.body.appendChild(r);this.paintText(new c(r.firstChild,e));n.body.removeChild(r)}};i.prototype.paintText=function(n){n.applyTextTransform();var t=u.ucs2.decode(n.node.data);var r=(!this.options.letterRendering||B(n))&&!Q(n.node.data)?$(t):t.map(function(t){return u.ucs2.encode([t])});var e=n.parent.fontWeight();var i=n.parent.css("fontSize");var a=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),e,i,a);if(o.length){this.renderer.fontShadow(o[0].color,o[0].offsetX,o[0].offsetY,o[0].blur)}else{this.renderer.clearShadow()}this.renderer.clip(n.parent.clip,function(){r.map(this.parseTextBounds(n),this).forEach(function(t,e){if(t){this.renderer.text(r[e],t.left,t.bottom);this.renderTextDecoration(n.parent,t,this.fontMetrics.getMetrics(a,i))}},this)},this)};i.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};i.prototype.parseBorders=function(a){var t=a.parseBounds();var e=D(a);var n=["Top","Right","Bottom","Left"].map(function(t,e){var n=a.css("border"+t+"Style");var r=a.color("border"+t+"Color");if(n==="inset"&&r.isBlack()){r=new d([255,255,255,r.a])}var i=b[n]?b[n][e]:null;return{width:a.cssInt("border"+t+"Width"),color:i?r[i[0]](i[1]):r,args:null}});var r=k(t,e,n);return{clip:this.parseBackgroundClip(a,r,n,e,t),borders:w(n,t,r,e)}};function w(o,s,u,l){return o.map(function(t,e){if(t.width>0){var n=s.left;var r=s.top;var i=s.width;var a=s.height-o[2].width;switch(e){case 0:a=o[0].width;t.args=C({c1:[n,r],c2:[n+i,r],c3:[n+i-o[1].width,r+a],c4:[n+o[3].width,r+a]},l[0],l[1],u.topLeftOuter,u.topLeftInner,u.topRightOuter,u.topRightInner);break;case 1:n=s.left+s.width-o[1].width;i=o[1].width;t.args=C({c1:[n+i,r],c2:[n+i,r+a+o[2].width],c3:[n,r+a],c4:[n,r+o[0].width]},l[1],l[2],u.topRightOuter,u.topRightInner,u.bottomRightOuter,u.bottomRightInner);break;case 2:r=r+s.height-o[2].width;a=o[2].width;t.args=C({c1:[n+i,r+a],c2:[n,r+a],c3:[n+o[3].width,r],c4:[n+i-o[3].width,r]},l[2],l[3],u.bottomRightOuter,u.bottomRightInner,u.bottomLeftOuter,u.bottomLeftInner);break;case 3:i=o[3].width;t.args=C({c1:[n,r+a+o[2].width],c2:[n,r],c3:[n+i,r+o[0].width],c4:[n+i,r+a]},l[3],l[0],u.bottomLeftOuter,u.bottomLeftInner,u.topLeftOuter,u.topLeftInner);break}}return t})}i.prototype.parseBackgroundClip=function(t,e,n,r,i){var a=t.css("backgroundClip"),o=[];switch(a){case"content-box":case"padding-box":E(o,r[0],r[1],e.topLeftInner,e.topRightInner,i.left+n[3].width,i.top+n[0].width);E(o,r[1],r[2],e.topRightInner,e.bottomRightInner,i.left+i.width-n[1].width,i.top+n[0].width);E(o,r[2],r[3],e.bottomRightInner,e.bottomLeftInner,i.left+i.width-n[1].width,i.top+i.height-n[2].width);E(o,r[3],r[0],e.bottomLeftInner,e.topLeftInner,i.left+n[3].width,i.top+i.height-n[2].width);break;default:E(o,r[0],r[1],e.topLeftOuter,e.topRightOuter,i.left,i.top);E(o,r[1],r[2],e.topRightOuter,e.bottomRightOuter,i.left+i.width,i.top);E(o,r[2],r[3],e.bottomRightOuter,e.bottomLeftOuter,i.left+i.width,i.top+i.height);E(o,r[3],r[0],e.bottomLeftOuter,e.topLeftOuter,i.left,i.top+i.height);break}return o};function x(t,e,n,r){var i=4*((Math.sqrt(2)-1)/3);var a=n*i,o=r*i,s=t+n,u=e+r;return{topLeft:S({x:t,y:u},{x:t,y:u-o},{x:s-a,y:e},{x:s,y:e}),topRight:S({x:t,y:e},{x:t+a,y:e},{x:s,y:u-o},{x:s,y:u}),bottomRight:S({x:s,y:e},{x:s,y:e+o},{x:t+a,y:u},{x:t,y:u}),bottomLeft:S({x:s,y:u},{x:s-a,y:u},{x:t,y:e+o},{x:t,y:e})}}function k(t,e,n){var r=t.left,i=t.top,a=t.width,o=t.height,s=e[0][0]<a/2?e[0][0]:a/2,u=e[0][1]<o/2?e[0][1]:o/2,l=e[1][0]<a/2?e[1][0]:a/2,c=e[1][1]<o/2?e[1][1]:o/2,f=e[2][0]<a/2?e[2][0]:a/2,h=e[2][1]<o/2?e[2][1]:o/2,d=e[3][0]<a/2?e[3][0]:a/2,g=e[3][1]<o/2?e[3][1]:o/2;var v=a-l,p=o-h,y=a-f,m=o-g;return{topLeftOuter:x(r,i,s,u).topLeft.subdivide(.5),topLeftInner:x(r+n[3].width,i+n[0].width,Math.max(0,s-n[3].width),Math.max(0,u-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(r+v,i,l,c).topRight.subdivide(.5),topRightInner:x(r+Math.min(v,a+n[3].width),i+n[0].width,v>a+n[3].width?0:l-n[3].width,c-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(r+y,i+p,f,h).bottomRight.subdivide(.5),bottomRightInner:x(r+Math.min(y,a-n[3].width),i+Math.min(p,o+n[0].width),Math.max(0,f-n[1].width),h-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(r,i+m,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(r+n[3].width,i+m,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(u,l,c,f){var h=function t(e,n,r){return{x:e.x+(n.x-e.x)*r,y:e.y+(n.y-e.y)*r}};return{start:u,startControl:l,endControl:c,end:f,subdivide:function t(e){var n=h(u,l,e),r=h(l,c,e),i=h(c,f,e),a=h(n,r,e),o=h(r,i,e),s=h(a,o,e);return[S(u,n,a,s),S(s,o,i,f)]},curveTo:function t(e){e.push(["bezierCurve",l.x,l.y,c.x,c.y,f.x,f.y])},curveToReversed:function t(e){e.push(["bezierCurve",c.x,c.y,l.x,l.y,u.x,u.y])}}}function C(t,e,n,r,i,a,o){var s=[];if(e[0]>0||e[1]>0){s.push(["line",r[1].start.x,r[1].start.y]);r[1].curveTo(s)}else{s.push(["line",t.c1[0],t.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",a[0].start.x,a[0].start.y]);a[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",t.c2[0],t.c2[1]]);s.push(["line",t.c3[0],t.c3[1]])}if(e[0]>0||e[1]>0){s.push(["line",i[1].end.x,i[1].end.y]);i[1].curveToReversed(s)}else{s.push(["line",t.c4[0],t.c4[1]])}return s}function E(t,e,n,r,i,a,o){if(e[0]>0||e[1]>0){t.push(["line",r[0].start.x,r[0].start.y]);r[0].curveTo(t);r[1].curveTo(t)}else{t.push(["line",a,o])}if(n[0]>0||n[1]>0){t.push(["line",i[0].start.x,i[0].start.y])}}function A(t){return t.cssInt("zIndex")<0}function M(t){return t.cssInt("zIndex")>0}function R(t){return t.cssInt("zIndex")===0}function T(t){return["inline","inline-block","inline-table"].indexOf(t.css("display"))!==-1}function O(t){return t instanceof g}function P(t){return t.node.data.trim().length>0}function B(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function D(r){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var e=r.css("border"+t+"Radius");var n=e.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(q)})}function N(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function z(t){var e=t.css("position");var n=["absolute","relative","fixed"].indexOf(e)!==-1?t.css("zIndex"):"auto";return n!=="auto"}function F(t){return t.css("position")!=="static"}function j(t){return t.css("float")!=="none"}function I(t){return["inline-block","inline-table"].indexOf(t.css("display"))!==-1}function L(t){var e=this;return function(){return!t.apply(e,arguments)}}function H(t){return t.node.nodeType===Node.ELEMENT_NODE}function U(t){return t.isPseudoElement===true}function G(t){return t.node.nodeType===Node.TEXT_NODE}function V(n){return function(t,e){return t.cssInt("zIndex")+n.indexOf(t)/n.length-(e.cssInt("zIndex")+n.indexOf(e)/n.length)}}function W(t){return t.getOpacity()<1}function q(t){return parseInt(t,10)}function K(t){return t.width}function Y(t){return t.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)===-1}function X(t){return[].concat.apply([],t)}function Z(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function $(t){var e=[],n=0,r=false,i;while(t.length){if(J(t[n])===r){i=t.splice(0,n);if(i.length){e.push(u.ucs2.encode(i))}r=!r;n=0}else{n++}if(n>=t.length){i=t.splice(0,n);if(i.length){e.push(u.ucs2.encode(i))}}}return e}function J(t){return[32,13,10,9,45].indexOf(t)!==-1}function Q(t){return/[^\u0000-\u00ff]/.test(t)}e.exports=i},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,n){var o=t("./xhr");var r=t("./utils");var s=t("./log");var u=t("./clone");var l=r.decode64;function c(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e){return Promise.reject("No proxy configured")}var i=h(r);var a=d(e,t,i);return r?o(a):f(n,a,i).then(function(t){return l(t.content)})}var i=0;function a(t,e,n){var r="crossOrigin"in new Image;var i=h(r);var a=d(e,t,i);return r?Promise.resolve(a):f(n,a,i).then(function(t){return"data:"+t.type+";base64,"+t.content})}function f(a,t,o){return new Promise(function(e,n){var r=a.createElement("script");var i=function t(){delete window.html2canvas.proxy[o];a.body.removeChild(r)};window.html2canvas.proxy[o]=function(t){i();e(t)};r.src=t;r.onerror=function(t){i();n(t)};a.body.appendChild(r)})}function h(t){return!t?"html2canvas_"+Date.now()+"_"+ ++i+"_"+Math.round(Math.random()*1e5):""}function d(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(a){return function(e){var t=new DOMParser,n;try{n=t.parseFromString(e,"text/html")}catch(t){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(e);n.close()}catch(t){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=e}}var r=n.querySelector("base");if(!r||!r.href.host){var i=n.createElement("base");i.href=a;n.head.insertBefore(i,n.head.firstChild)}return n}}function v(t,e,n,r,i,a){return new c(t,e,window.document).then(g(t)).then(function(t){return u(t,n,r,i,a,0,0)})}n.Proxy=c;n.ProxyURL=a;n.loadUrlDocument=v},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){var a=t("./proxy").ProxyURL;function r(n,r){var t=document.createElement("a");t.href=n;n=t.href;this.src=n;this.image=new Image;var i=this;this.promise=new Promise(function(t,e){i.image.crossOrigin="Anonymous";i.image.onload=t;i.image.onerror=e;new a(n,r,document).then(function(t){i.image.src=t})["catch"](e)})}e.exports=r},{"./proxy":16}],18:[function(t,e,n){var r=t("./nodecontainer");function i(t,e,n){r.call(this,t,e);this.isPseudoElement=true;this.before=n===":before"}i.prototype.cloneTo=function(t){i.prototype.cloneTo.call(this,t);t.isPseudoElement=true;t.before=this.before};i.prototype=Object.create(r.prototype);i.prototype.appendToDOM=function(){if(this.before){this.parent.node.insertBefore(this.node,this.parent.node.firstChild)}else{this.parent.node.appendChild(this.node)}this.parent.node.className+=" "+this.getHideClass()};i.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};i.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";e.exports=i},{"./nodecontainer":14}],19:[function(t,e,n){var u=t("./log");function r(t,e,n,r,i){this.width=t;this.height=e;this.images=n;this.options=r;this.document=i}r.prototype.renderImage=function(t,e,n,r){var i=t.cssInt("paddingLeft"),a=t.cssInt("paddingTop"),o=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),u=n.borders;var l=e.width-(u[1].width+u[3].width+i+o);var c=e.height-(u[0].width+u[2].width+a+s);this.drawImage(r,0,0,r.image.width||l,r.image.height||c,e.left+i+u[3].width,e.top+a+u[0].width,l,c)};r.prototype.renderBackground=function(t,e,n){if(e.height>0&&e.width>0){this.renderBackgroundColor(t,e);this.renderBackgroundImage(t,e,n)}};r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");if(!n.isTransparent()){this.rectangle(e.left,e.top,e.width,e.height,n)}};r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)};r.prototype.renderBorder=function(t){if(!t.color.isTransparent()&&t.args!==null){this.drawShape(t.args,t.color)}};r.prototype.renderBackgroundImage=function(a,o,s){var t=a.parseBackgroundImages();t.reverse().forEach(function(t,e,n){switch(t.method){case"url":var r=this.images.get(t.args[0]);if(r){this.renderBackgroundRepeating(a,o,r,n.length-(e+1),s)}else{u("Error loading background-image",t.args[0])}break;case"linear-gradient":case"gradient":var i=this.images.get(t.value);if(i){this.renderBackgroundGradient(i,o,s)}else{u("Error loading background-image",t.args[0])}break;case"none":break;default:u("Unknown background-image type",t.args[0])}},this)};r.prototype.renderBackgroundRepeating=function(t,e,n,r,i){var a=t.parseBackgroundSize(e,n.image,r);var o=t.parseBackgroundPosition(e,n.image,r,a);var s=t.parseBackgroundRepeat(r);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+i[3],e.top+o.top+i[0],99999,a.height,i);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+i[3],e.top+i[0],a.width,99999,i);break;case"no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+i[3],e.top+o.top+i[0],a.width,a.height,i);break;default:this.renderBackgroundRepeat(n,o,a,{top:e.top,left:e.left},i[3],i[0]);break}};e.exports=r},{"./log":13}],20:[function(t,e,n){var r=t("../renderer");var i=t("../lineargradientcontainer");var a=t("../log");function o(t,e){r.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=t;this.canvas.height=e}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};a("Initialized CanvasRenderer with size",t,"x",e)}o.prototype=Object.create(r.prototype);o.prototype.setFillStyle=function(t){this.ctx.fillStyle=_typeof2(t)==="object"&&!!t.isColor?t.toString():t;return this.ctx};o.prototype.rectangle=function(t,e,n,r,i){this.setFillStyle(i).fillRect(t,e,n,r)};o.prototype.circle=function(t,e,n,r){this.setFillStyle(r);this.ctx.beginPath();this.ctx.arc(t+n/2,e+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(t,e,n,r,i,a){this.circle(t,e,n,r);this.ctx.strokeStyle=a.toString();this.ctx.stroke()};o.prototype.drawShape=function(t,e){this.shape(t);this.setFillStyle(e).fill()};o.prototype.taints=function(e){if(e.tainted===null){this.taintCtx.drawImage(e.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);e.tainted=false}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d");e.tainted=true}}return e.tainted};o.prototype.drawImage=function(t,e,n,r,i,a,o,s,u){if(!this.taints(t)||this.options.allowTaint){this.ctx.drawImage(t.image,e,n,r,i,a,o,s,u)}};o.prototype.clip=function(t,e,n){this.ctx.save();t.filter(s).forEach(function(t){this.shape(t).clip()},this);e.call(n);this.ctx.restore()};o.prototype.shape=function(t){this.ctx.beginPath();t.forEach(function(t,e){if(t[0]==="rect"){this.ctx.rect.apply(this.ctx,t.slice(1))}else{this.ctx[e===0?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(t,e,n,r,i,a){this.setFillStyle(t).font=[e,n,r,i,a].join(" ").split(",")[0]};o.prototype.fontShadow=function(t,e,n,r){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",r)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(t){this.ctx.globalAlpha=t};o.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]);this.ctx.transform.apply(this.ctx,t.matrix);this.ctx.translate(-t.origin[0],-t.origin[1])};o.prototype.setVariable=function(t,e){if(this.variables[t]!==e){this.variables[t]=this.ctx[t]=e}return this};o.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)};o.prototype.backgroundRepeatShape=function(t,e,n,r,i,a,o,s,u){var l=[["line",Math.round(i),Math.round(a)],["line",Math.round(i+o),Math.round(a)],["line",Math.round(i+o),Math.round(s+a)],["line",Math.round(i),Math.round(s+a)]];this.clip([l],function(){this.renderBackgroundRepeat(t,e,n,r,u[3],u[0])},this)};o.prototype.renderBackgroundRepeat=function(t,e,n,r,i,a){var o=Math.round(r.left+e.left+i),s=Math.round(r.top+e.top+a);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(t,e){if(t instanceof i){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach(function(t){n.addColorStop(t.stop,t.color.toString())});this.rectangle(e.left,e.top,e.width,e.height,n)}};o.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height){return n}var r,i=document.createElement("canvas");i.width=e.width;i.height=e.height;r=i.getContext("2d");r.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height);return i};function s(t){return t.length>0}e.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){var i=t("./nodecontainer");function r(t,e,n,r){i.call(this,n,r);this.ownStacking=t;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*e}r.prototype=Object.create(i.prototype);r.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack};e.exports=r},{"./nodecontainer":14}],22:[function(t,e,n){function r(t){this.rangeBounds=this.testRangeBounds(t);this.cors=this.testCORS();this.svg=this.testSVG()}r.prototype.testRangeBounds=function(t){var e,n,r,i,a=false;if(t.createRange){e=t.createRange();if(e.getBoundingClientRect){n=t.createElement("boundtest");n.style.height="123px";n.style.display="block";t.body.appendChild(n);e.selectNode(n);r=e.getBoundingClientRect();i=r.height;if(i===123){a=true}t.body.removeChild(n)}}return a};r.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};r.prototype.testSVG=function(){var t=new Image;var e=document.createElement("canvas");var n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0);e.toDataURL()}catch(t){return false}return true};e.exports=r},{}],23:[function(t,e,n){var r=t("./xhr");var i=t("./utils").decode64;function a(t){this.src=t;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(t)?Promise.resolve(n.inlineFormatting(t)):r(t)}).then(function(e){return new Promise(function(t){window.html2canvas.svg.fabric.loadSVGFromString(e,n.createCanvas.call(n,t))})})}a.prototype.hasFabric=function(){return!window.html2canvas.svg||!window.html2canvas.svg.fabric?Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg")):Promise.resolve()};a.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)};a.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")};a.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)};a.prototype.createCanvas=function(r){var i=this;return function(t,e){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");i.image=n.lowerCanvasEl;n.setWidth(e.width).setHeight(e.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(t,e)).renderAll();r(n.lowerCanvasEl)}};a.prototype.decode64=function(t){return typeof window.atob==="function"?window.atob(t):i(t)};e.exports=a},{"./utils":26,"./xhr":28}],24:[function(t,e,n){var r=t("./svgcontainer");function i(n,t){this.src=n;this.image=null;var r=this;this.promise=t?new Promise(function(t,e){r.image=new Image;r.image.onload=t;r.image.onerror=e;r.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(r.image.complete===true){t(r.image)}}):this.hasFabric().then(function(){return new Promise(function(t){window.html2canvas.svg.fabric.parseSVGDocument(n,r.createCanvas.call(r,t))})})}i.prototype=Object.create(r.prototype);e.exports=i},{"./svgcontainer":23}],25:[function(t,e,n){var r=t("./nodecontainer");function i(t,e){r.call(this,t,e)}i.prototype=Object.create(r.prototype);i.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};i.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,a);case"uppercase":return e.toUpperCase();default:return e}};function a(t,e,n){if(t.length>0){return e+n.toUpperCase()}}e.exports=i},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function t(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(t,e){return function(){return t.apply(e,arguments)}};n.decode64=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=t.length,r,i,a,o,s,u,l,c;var f="";for(r=0;r<n;r+=4){i=e.indexOf(t[r]);a=e.indexOf(t[r+1]);o=e.indexOf(t[r+2]);s=e.indexOf(t[r+3]);u=i<<2|a>>4;l=(a&15)<<4|o>>2;c=(o&3)<<6|s;if(o===64){f+=String.fromCharCode(u)}else if(s===64||s===-1){f+=String.fromCharCode(u,l)}else{f+=String.fromCharCode(u,l,c)}}return f};n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect();var n=t.offsetWidth==null?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:t.offsetHeight==null?e.height:t.offsetHeight}}return{}};n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}};n.parseBackgrounds=function(t){var e=" \r\n\t",n,r,i,a,o,s=[],u=0,l=0,c,f;var h=function t(){if(n){if(r.substr(0,1)==='"'){r=r.substr(1,r.length-2)}if(r){f.push(r)}if(n.substr(0,1)==="-"&&(a=n.indexOf("-",1)+1)>0){i=n.substr(0,a);n=n.substr(a)}s.push({prefix:i,method:n.toLowerCase(),value:o,args:f,image:null})}f=[];n=i=r=o=""};f=[];n=i=r=o="";t.split("").forEach(function(t){if(u===0&&e.indexOf(t)>-1){return}switch(t){case'"':if(!c){c=t}else if(c===t){c=null}break;case"(":if(c){break}else if(u===0){u=1;o+=t;return}else{l++}break;case")":if(c){break}else if(u===1){if(l===0){u=0;o+=t;h();return}else{l--}}break;case",":if(c){break}else if(u===0){h();return}else if(u===1){if(l===0&&!n.match(/^url$/i)){f.push(r);r="";o+=t;return}}break}o+=t;if(u===0){n+=t}else{r+=t}});h();return s}},{}],27:[function(t,e,n){var r=t("./gradientcontainer");function i(t){r.apply(this,arguments);this.type=t.args[0]==="linear"?r.TYPES.LINEAR:r.TYPES.RADIAL}i.prototype=Object.create(r.prototype);e.exports=i},{"./gradientcontainer":9}],28:[function(t,e,n){function r(r){return new Promise(function(t,e){var n=new XMLHttpRequest;n.open("GET",r);n.onload=function(){if(n.status===200){t(n.responseText)}else{e(new Error(n.statusText))}};n.onerror=function(){e(new Error("Network Error"))};n.send()})}e.exports=r},{}]},{},[4])(4)})});var x5=function t(e){this.ok=false;this.alpha=1;if(e.charAt(0)=="#"){e=e.substr(1,6)}e=e.replace(/ /g,"");e=e.toLowerCase();var c={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};e=c[e]||e;var f=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function t(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function t(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}];for(var n=0;n<f.length;n++){var r=f[n].re;var i=f[n].process;var a=r.exec(e);if(a){var o=i(a);this.r=o[0];this.g=o[1];this.b=o[2];if(o.length>3){this.alpha=o[3]}this.ok=true}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r;this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g;this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b;this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha;this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"};this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"};this.toHex=function(){var t=this.r.toString(16);var e=this.g.toString(16);var n=this.b.toString(16);if(t.length==1)t="0"+t;if(e.length==1)e="0"+e;if(n.length==1)n="0"+n;return"#"+t+e+n};this.getHelpXML=function(){var t=new Array;for(var e=0;e<f.length;e++){var n=f[e].example;for(var r=0;r<n.length;r++){t[t.length]=n[r]}}for(var i in c){t[t.length]=i}var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(var e=0;e<t.length;e++){try{var o=document.createElement("li");var s=new RGBColor(t[e]);var u=document.createElement("div");u.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex();u.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[e]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(u);o.appendChild(l);a.appendChild(o)}catch(t){}}return a}};var k5=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var S5=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function C5(t,e,n,r){if(isNaN(r)||r<1)return;r|=0;var i,a,o,s,u,l,c,f,h,d,g,v,p,y,m,_,b,w,x,k,S,C,E,A;var M=r+r+1;var R=e-1;var T=n-1;var O=r+1;var P=O*(O+1)/2;var B=new E5;var D=B;for(o=1;o<M;o++){D=D.next=new E5;if(o==O)var N=D}D.next=B;var z=null;var F=null;c=l=0;var j=k5[r];var I=S5[r];for(a=0;a<n;a++){_=b=w=x=f=h=d=g=0;v=O*(k=t[l]);p=O*(S=t[l+1]);y=O*(C=t[l+2]);m=O*(E=t[l+3]);f+=P*k;h+=P*S;d+=P*C;g+=P*E;D=B;for(o=0;o<O;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}for(o=1;o<O;o++){s=l+((R<o?R:o)<<2);f+=(D.r=k=t[s])*(A=O-o);h+=(D.g=S=t[s+1])*A;d+=(D.b=C=t[s+2])*A;g+=(D.a=E=t[s+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next}z=B;F=N;for(i=0;i<e;i++){t[l+3]=E=g*j>>I;if(E!=0){E=255/E;t[l]=(f*j>>I)*E;t[l+1]=(h*j>>I)*E;t[l+2]=(d*j>>I)*E}else{t[l]=t[l+1]=t[l+2]=0}f-=v;h-=p;d-=y;g-=m;v-=z.r;p-=z.g;y-=z.b;m-=z.a;s=c+((s=i+r+1)<R?s:R)<<2;_+=z.r=t[s];b+=z.g=t[s+1];w+=z.b=t[s+2];x+=z.a=t[s+3];f+=_;h+=b;d+=w;g+=x;z=z.next;v+=k=F.r;p+=S=F.g;y+=C=F.b;m+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;l+=4}c+=e}for(i=0;i<e;i++){b=w=x=_=h=d=g=f=0;l=i<<2;v=O*(k=t[l]);p=O*(S=t[l+1]);y=O*(C=t[l+2]);m=O*(E=t[l+3]);f+=P*k;h+=P*S;d+=P*C;g+=P*E;D=B;for(o=0;o<O;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}u=e;for(o=1;o<=r;o++){l=u+i<<2;f+=(D.r=k=t[l])*(A=O-o);h+=(D.g=S=t[l+1])*A;d+=(D.b=C=t[l+2])*A;g+=(D.a=E=t[l+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next;if(o<T){u+=e}}l=i;z=B;F=N;for(a=0;a<n;a++){s=l<<2;t[s+3]=E=g*j>>I;if(E>0){E=255/E;t[s]=(f*j>>I)*E;t[s+1]=(h*j>>I)*E;t[s+2]=(d*j>>I)*E}else{t[s]=t[s+1]=t[s+2]=0}f-=v;h-=p;d-=y;g-=m;v-=z.r;p-=z.g;y-=z.b;m-=z.a;s=i+((s=a+O)<T?s:T)*e<<2;f+=_+=z.r=t[s];h+=b+=z.g=t[s+1];d+=w+=z.b=t[s+2];g+=x+=z.a=t[s+3];z=z.next;v+=k=F.r;p+=S=F.g;y+=C=F.b;m+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;l+=e}}}function E5(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var A5=C5;var M5=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var R5=new RegExp("[\\-\\.0-9"+M5.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var T5=new RegExp("^"+M5.source+R5.source+"*(?::"+M5.source+R5.source+"*)?$");var O5=0;var P5=1;var B5=2;var D5=3;var N5=4;var z5=5;var F5=6;var j5=7;function I5(){}I5.prototype={parse:function t(e,n,r){var i=this.domBuilder;i.startDocument();q5(n,n={});L5(e,n,r,i,this.errorHandler);i.endDocument()}};function L5(n,t,r,i,a){function o(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}else{return String.fromCharCode(t)}}function s(t){var e=t.slice(1,-1);if(e in r){return r[e]}else if(e.charAt(0)==="#"){return o(parseInt(e.substr(1).replace("x","0x")))}else{a.error("entity not found:"+t);return t}}function e(t){if(t>v){var e=n.substring(v,t).replace(/&#?\w+;/g,s);h&&u(v);i.characters(e,0,t-v);v=t}}function u(t,e){while(t>=c&&(e=f.exec(n))){l=e.index;c=l+e[0].length;h.lineNumber++}h.columnNumber=t-l+1}var l=0;var c=0;var f=/.*(?:\r\n?|\n)|.*$/g;var h=i.locator;var d=[{currentNSMap:t}];var g={};var v=0;while(true){try{var p=n.indexOf("<",v);if(p<0){if(!n.substr(v).match(/^\s*$/)){var y=i.doc;var m=y.createTextNode(n.substr(v));y.appendChild(m);i.currentElement=m}return}if(p>v){e(p)}switch(n.charAt(p+1)){case"/":var _=n.indexOf(">",p+3);var b=n.substring(p+2,_);var w=d.pop();if(_<0){b=n.substring(p+2).replace(/[\s<].*/,"");a.error("end tag name: "+b+" is not complete:"+w.tagName);_=p+1+b.length}else if(b.match(/\s</)){b=b.replace(/[\s<].*/,"");a.error("end tag name: "+b+" maybe not complete");_=p+1+b.length}var x=w.localNSMap;var k=w.tagName==b;var S=k||w.tagName&&w.tagName.toLowerCase()==b.toLowerCase();if(S){i.endElement(w.uri,w.localName,b);if(x){for(var C in x){i.endPrefixMapping(C)}}if(!k){a.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}}else{d.push(w)}_++;break;case"?":h&&u(p);_=Y5(n,p,i);break;case"!":h&&u(p);_=K5(n,p,i,a);break;default:h&&u(p);var E=new X5;var A=d[d.length-1].currentNSMap;var _=U5(n,p,E,A,s,a);var M=E.length;if(!E.closed&&W5(n,_,E.tagName,g)){E.closed=true;if(!r.nbsp){a.warning("unclosed xml attribute")}}if(h&&M){var R=H5(h,{});for(var T=0;T<M;T++){var O=E[T];u(O.offset);O.locator=H5(h,{})}i.locator=R;if(G5(E,i,A)){d.push(E)}i.locator=h}else{if(G5(E,i,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=V5(n,_,E.tagName,s,i)}else{_++}}}catch(t){a.error("element parse error: "+t);_=-1}if(_>v){v=_}else{e(Math.max(p,v)+1)}}}function H5(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber;return e}function U5(t,e,n,r,i,a){var o;var s;var u=++e;var l=O5;while(true){var c=t.charAt(u);switch(c){case"=":if(l===P5){o=t.slice(e,u);l=D5}else if(l===B5){l=D5}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(l===D5||l===P5){if(l===P5){a.warning('attribute value must after "="');o=t.slice(e,u)}e=u+1;u=t.indexOf(c,e);if(u>0){s=t.slice(e,u).replace(/&#?\w+;/g,i);n.add(o,s,e-1);l=z5}else{throw new Error("attribute value no end '"+c+"' match")}}else if(l==N5){s=t.slice(e,u).replace(/&#?\w+;/g,i);n.add(o,s,e);a.warning('attribute "'+o+'" missed start quot('+c+")!!");e=u+1;l=z5}else{throw new Error('attribute value must after "="')}break;case"/":switch(l){case O5:n.setTagName(t.slice(e,u));case z5:case F5:case j5:l=j5;n.closed=true;case N5:case P5:case B5:break;default:throw new Error("attribute invalid close char('/')")}break;case"":a.error("unexpected end of input");if(l==O5){n.setTagName(t.slice(e,u))}return u;case">":switch(l){case O5:n.setTagName(t.slice(e,u));case z5:case F5:case j5:break;case N5:case P5:s=t.slice(e,u);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case B5:if(l===B5){s=o}if(l==N5){a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,i),e)}else{if(r[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,e)}break;case D5:throw new Error("attribute value missed!!")}return u;case"":c=" ";default:if(c<=" "){switch(l){case O5:n.setTagName(t.slice(e,u));l=F5;break;case P5:o=t.slice(e,u);l=B5;break;case N5:var s=t.slice(e,u).replace(/&#?\w+;/g,i);a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,e);case z5:l=F5;break}}else{switch(l){case B5:n.tagName;if(r[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,e);e=u;l=P5;break;case z5:a.warning('attribute space is required"'+o+'"!!');case F5:l=P5;e=u;break;case D5:l=N5;e=u;break;case j5:throw new Error("elements closed character '/' and '>' must be connected to")}}}u++}}function G5(t,e,n){var r=t.tagName;var i=null;var a=t.length;while(a--){var o=t[a];var s=o.qName;var u=o.value;var l=s.indexOf(":");if(l>0){var c=o.prefix=s.slice(0,l);var f=s.slice(l+1);var h=c==="xmlns"&&f}else{f=s;c=null;h=s==="xmlns"&&""}o.localName=f;if(h!==false){if(i==null){i={};q5(n,n={})}n[h]=i[h]=u;o.uri="http://www.w3.org/2000/xmlns/";e.startPrefixMapping(h,u)}}var a=t.length;while(a--){o=t[a];var c=o.prefix;if(c){if(c==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(c!=="xmlns"){o.uri=n[c||""]}}}var l=r.indexOf(":");if(l>0){c=t.prefix=r.slice(0,l);f=t.localName=r.slice(l+1)}else{c=null;f=t.localName=r}var d=t.uri=n[c||""];e.startElement(d,f,r,t);if(t.closed){e.endElement(d,f,r);if(i){for(c in i){e.endPrefixMapping(c)}}}else{t.currentNSMap=n;t.localNSMap=i;return true}}function V5(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=t.indexOf("</"+n+">",e);var o=t.substring(e+1,a);if(/[&<]/.test(o)){if(/^script$/i.test(n)){i.characters(o,0,o.length);return a}o=o.replace(/&#?\w+;/g,r);i.characters(o,0,o.length);return a}}return e+1}function W5(t,e,n,r){var i=r[n];if(i==null){i=t.lastIndexOf("</"+n+">");if(i<e){i=t.lastIndexOf("</"+n)}r[n]=i}return i<e}function q5(t,e){for(var n in t){e[n]=t[n]}}function K5(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var a=t.indexOf("--\x3e",e+4);if(a>e){n.comment(t,e+4,a-e-4);return a+3}else{r.error("Unclosed comment");return-1}}else{return-1}default:if(t.substr(e+3,6)=="CDATA["){var a=t.indexOf("]]>",e+9);n.startCDATA();n.characters(t,e+9,a-e-9);n.endCDATA();return a+3}var o=$5(t,e);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0];var l=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var c=s>4&&o[4][0];var f=o[s-1];n.startDTD(u,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return f.index+f[0].length}}return-1}function Y5(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;n.processingInstruction(i[1],i[2]);return r+2}else{return-1}}return-1}function X5(t){}X5.prototype={setTagName:function t(e){if(!T5.test(e)){throw new Error("invalid tagName:"+e)}this.tagName=e},add:function t(e,n,r){if(!T5.test(e)){throw new Error("invalid attribute:"+e)}this[this.length++]={qName:e,value:n,offset:r}},length:0,getLocalName:function t(e){return this[e].localName},getLocator:function t(e){return this[e].locator},getQName:function t(e){return this[e].qName},getURI:function t(e){return this[e].uri},getValue:function t(e){return this[e].value}};function Z5(t,e){t.__proto__=e;return t}if(!(Z5({},Z5.prototype)instanceof Z5)){Z5=function t(e,n){function r(){}r.prototype=n;r=new r;for(n in e){r[n]=e[n]}return r}}function $5(t,e){var n;var r=[];var i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e;i.exec(t);while(n=i.exec(t)){r.push(n);if(n[1])return r}}var J5=I5;var Q5={XMLReader:J5};function tE(t,e){for(var n in t){e[n]=t[n]}}function eE(t,e){var n=t.prototype;if(Object.create){var r=Object.create(e.prototype);n.__proto__=r}if(!(n instanceof e)){var i=function t(){};i.prototype=e.prototype;i=new i;tE(n,i);t.prototype=n=i}if(n.constructor!=t){if(typeof t!="function"){console.error("unknow Class:"+t)}n.constructor=t}}var nE="http://www.w3.org/1999/xhtml";var rE={};var iE=rE.ELEMENT_NODE=1;var aE=rE.ATTRIBUTE_NODE=2;var oE=rE.TEXT_NODE=3;var sE=rE.CDATA_SECTION_NODE=4;var uE=rE.ENTITY_REFERENCE_NODE=5;var lE=rE.ENTITY_NODE=6;var cE=rE.PROCESSING_INSTRUCTION_NODE=7;var fE=rE.COMMENT_NODE=8;var hE=rE.DOCUMENT_NODE=9;var dE=rE.DOCUMENT_TYPE_NODE=10;var gE=rE.DOCUMENT_FRAGMENT_NODE=11;var vE=rE.NOTATION_NODE=12;var pE={};var yE={};pE.INDEX_SIZE_ERR=(yE[1]="Index size error",1);pE.DOMSTRING_SIZE_ERR=(yE[2]="DOMString size error",2);var mE=pE.HIERARCHY_REQUEST_ERR=(yE[3]="Hierarchy request error",3);pE.WRONG_DOCUMENT_ERR=(yE[4]="Wrong document",4);pE.INVALID_CHARACTER_ERR=(yE[5]="Invalid character",5);pE.NO_DATA_ALLOWED_ERR=(yE[6]="No data allowed",6);pE.NO_MODIFICATION_ALLOWED_ERR=(yE[7]="No modification allowed",7);var _E=pE.NOT_FOUND_ERR=(yE[8]="Not found",8);pE.NOT_SUPPORTED_ERR=(yE[9]="Not supported",9);var bE=pE.INUSE_ATTRIBUTE_ERR=(yE[10]="Attribute in use",10);pE.INVALID_STATE_ERR=(yE[11]="Invalid state",11);pE.SYNTAX_ERR=(yE[12]="Syntax error",12);pE.INVALID_MODIFICATION_ERR=(yE[13]="Invalid modification",13);pE.NAMESPACE_ERR=(yE[14]="Invalid namespace",14);pE.INVALID_ACCESS_ERR=(yE[15]="Invalid access",15);function wE(t,e){if(e instanceof Error){var n=e}else{n=this;Error.call(this,yE[t]);this.message=yE[t];if(Error.captureStackTrace)Error.captureStackTrace(this,wE)}n.code=t;if(e)this.message=this.message+": "+e;return n}wE.prototype=Error.prototype;tE(pE,wE);function xE(){}xE.prototype={length:0,item:function t(e){return this[e]||null},toString:function t(e,n){for(var r=[],i=0;i<this.length;i++){eA(this[i],r,e,n)}return r.join("")}};function kE(t,e){this._node=t;this._refresh=e;SE(this)}function SE(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);iA(t,"length",n.length);tE(n,t);t._inc=e}}kE.prototype.item=function(t){SE(this);return this[t]};eE(kE,xE);function CE(){}function EE(t,e){var n=t.length;while(n--){if(t[n]===e){return n}}}function AE(t,e,n,r){if(r){e[EE(e,r)]=n}else{e[e.length++]=n}if(t){n.ownerElement=t;var i=t.ownerDocument;if(i){r&&NE(i,t,r);DE(i,t,n)}}}function ME(t,e,n){var r=EE(e,n);if(r>=0){var i=e.length-1;while(r<i){e[r]=e[++r]}e.length=i;if(t){var a=t.ownerDocument;if(a){NE(a,t,n);n.ownerElement=null}}}else{throw wE(_E,new Error(t.tagName+"@"+n))}}CE.prototype={length:0,item:xE.prototype.item,getNamedItem:function t(e){var n=this.length;while(n--){var r=this[n];if(r.nodeName==e){return r}}},setNamedItem:function t(e){var n=e.ownerElement;if(n&&n!=this._ownerElement){throw new wE(bE)}var r=this.getNamedItem(e.nodeName);AE(this._ownerElement,this,e,r);return r},setNamedItemNS:function t(e){var n=e.ownerElement,r;if(n&&n!=this._ownerElement){throw new wE(bE)}r=this.getNamedItemNS(e.namespaceURI,e.localName);AE(this._ownerElement,this,e,r);return r},removeNamedItem:function t(e){var n=this.getNamedItem(e);ME(this._ownerElement,this,n);return n},removeNamedItemNS:function t(e,n){var r=this.getNamedItemNS(e,n);ME(this._ownerElement,this,r);return r},getNamedItemNS:function t(e,n){var r=this.length;while(r--){var i=this[r];if(i.localName==n&&i.namespaceURI==e){return i}}return null}};function RE(t){this._features={};if(t){for(var e in t){this._features=t[e]}}}RE.prototype={hasFeature:function t(e,n){var r=this._features[e.toLowerCase()];if(r&&(!n||n in r)){return true}else{return false}},createDocument:function t(e,n,r){var i=new BE;i.implementation=this;i.childNodes=new xE;i.doctype=r;if(r){i.appendChild(r)}if(n){var a=i.createElementNS(e,n);i.appendChild(a)}return i},createDocumentType:function t(e,n,r){var i=new qE;i.name=e;i.nodeName=e;i.publicId=n;i.systemId=r;return i}};function TE(){}TE.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function t(e,n){return jE(this,e,n)},replaceChild:function t(e,n){this.insertBefore(e,n);if(n){this.removeChild(n)}},removeChild:function t(e){return FE(this,e)},appendChild:function t(e){return this.insertBefore(e,null)},hasChildNodes:function t(){return this.firstChild!=null},cloneNode:function t(e){return rA(this.ownerDocument||this,this,e)},normalize:function t(){var e=this.firstChild;while(e){var n=e.nextSibling;if(n&&n.nodeType==oE&&e.nodeType==oE){this.removeChild(n);e.appendData(n.data)}else{e.normalize();e=n}}},isSupported:function t(e,n){return this.ownerDocument.implementation.hasFeature(e,n)},hasAttributes:function t(){return this.attributes.length>0},lookupPrefix:function t(e){var n=this;while(n){var r=n._nsMap;if(r){for(var i in r){if(r[i]==e){return i}}}n=n.nodeType==aE?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function t(e){var n=this;while(n){var r=n._nsMap;if(r){if(e in r){return r[e]}}n=n.nodeType==aE?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function t(e){var n=this.lookupPrefix(e);return n==null}};function OE(t){return t=="<"&&"<"||t==">"&&">"||t=="&"&&"&"||t=='"'&&"""||"&#"+t.charCodeAt()+";"}tE(rE,TE);tE(rE,TE.prototype);function PE(t,e){if(e(t)){return true}if(t=t.firstChild){do{if(PE(t,e)){return true}}while(t=t.nextSibling)}}function BE(){}function DE(t,e,n){t&&t._inc++;var r=n.namespaceURI;if(r=="http://www.w3.org/2000/xmlns/"){e._nsMap[n.prefix?n.localName:""]=n.value}}function NE(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){delete e._nsMap[n.prefix?n.localName:""]}}function zE(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n){r[r.length++]=n}else{var i=e.firstChild;var a=0;while(i){r[a++]=i;i=i.nextSibling}r.length=a}}}function FE(t,e){var n=e.previousSibling;var r=e.nextSibling;if(n){n.nextSibling=r}else{t.firstChild=r}if(r){r.previousSibling=n}else{t.lastChild=n}zE(t.ownerDocument,t);return e}function jE(t,e,n){var r=e.parentNode;if(r){r.removeChild(e)}if(e.nodeType===gE){var i=e.firstChild;if(i==null){return e}var a=e.lastChild}else{i=a=e}var o=n?n.previousSibling:t.lastChild;i.previousSibling=o;a.nextSibling=n;if(o){o.nextSibling=i}else{t.firstChild=i}if(n==null){t.lastChild=a}else{n.previousSibling=a}do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));zE(t.ownerDocument||t,t);if(e.nodeType==gE){e.firstChild=e.lastChild=null}return e}function IE(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e);var r=t.lastChild}var r=t.lastChild;e.parentNode=t;e.previousSibling=r;e.nextSibling=null;if(r){r.nextSibling=e}else{t.firstChild=e}t.lastChild=e;zE(t.ownerDocument,t,e);return e}BE.prototype={nodeName:"#document",nodeType:hE,doctype:null,documentElement:null,_inc:1,insertBefore:function t(e,n){if(e.nodeType==gE){var r=e.firstChild;while(r){var i=r.nextSibling;this.insertBefore(r,n);r=i}return e}if(this.documentElement==null&&e.nodeType==iE){this.documentElement=e}return jE(this,e,n),e.ownerDocument=this,e},removeChild:function t(e){if(this.documentElement==e){this.documentElement=null}return FE(this,e)},importNode:function t(e,n){return nA(this,e,n)},getElementById:function t(e){var n=null;PE(this.documentElement,function(t){if(t.nodeType==iE){if(t.getAttribute("id")==e){n=t;return true}}});return n},createElement:function t(e){var n=new LE;n.ownerDocument=this;n.nodeName=e;n.tagName=e;n.childNodes=new xE;var r=n.attributes=new CE;r._ownerElement=n;return n},createDocumentFragment:function t(){var e=new ZE;e.ownerDocument=this;e.childNodes=new xE;return e},createTextNode:function t(e){var n=new GE;n.ownerDocument=this;n.appendData(e);return n},createComment:function t(e){var n=new VE;n.ownerDocument=this;n.appendData(e);return n},createCDATASection:function t(e){var n=new WE;n.ownerDocument=this;n.appendData(e);return n},createProcessingInstruction:function t(e,n){var r=new $E;r.ownerDocument=this;r.tagName=r.target=e;r.nodeValue=r.data=n;return r},createAttribute:function t(e){var n=new HE;n.ownerDocument=this;n.name=e;n.nodeName=e;n.localName=e;n.specified=true;return n},createEntityReference:function t(e){var n=new XE;n.ownerDocument=this;n.nodeName=e;return n},createElementNS:function t(e,n){var r=new LE;var i=n.split(":");var a=r.attributes=new CE;r.childNodes=new xE;r.ownerDocument=this;r.nodeName=n;r.tagName=n;r.namespaceURI=e;if(i.length==2){r.prefix=i[0];r.localName=i[1]}else{r.localName=n}a._ownerElement=r;return r},createAttributeNS:function t(e,n){var r=new HE;var i=n.split(":");r.ownerDocument=this;r.nodeName=n;r.name=n;r.namespaceURI=e;r.specified=true;if(i.length==2){r.prefix=i[0];r.localName=i[1]}else{r.localName=n}return r}};eE(BE,TE);function LE(){this._nsMap={}}LE.prototype={nodeType:iE,hasAttribute:function t(e){return this.getAttributeNode(e)!=null},getAttribute:function t(e){var n=this.getAttributeNode(e);return n&&n.value||""},getAttributeNode:function t(e){return this.attributes.getNamedItem(e)},setAttribute:function t(e,n){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+n;this.setAttributeNode(r)},removeAttribute:function t(e){var n=this.getAttributeNode(e);n&&this.removeAttributeNode(n)},appendChild:function t(e){if(e.nodeType===gE){return this.insertBefore(e,null)}else{return IE(this,e)}},setAttributeNode:function t(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function t(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function t(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function t(e,n){var r=this.getAttributeNodeNS(e,n);r&&this.removeAttributeNode(r)},hasAttributeNS:function t(e,n){return this.getAttributeNodeNS(e,n)!=null},getAttributeNS:function t(e,n){var r=this.getAttributeNodeNS(e,n);return r&&r.value||""},setAttributeNS:function t(e,n,r){var i=this.ownerDocument.createAttributeNS(e,n);i.value=i.nodeValue=""+r;this.setAttributeNode(i)},getAttributeNodeNS:function t(e,n){return this.attributes.getNamedItemNS(e,n)},getElementsByTagName:function t(r){return new kE(this,function(e){var n=[];PE(e,function(t){if(t!==e&&t.nodeType==iE&&(r==="*"||t.tagName==r)){n.push(t)}});return n})},getElementsByTagNameNS:function t(r,i){return new kE(this,function(e){var n=[];PE(e,function(t){if(t!==e&&t.nodeType===iE&&(r==="*"||t.namespaceURI===r)&&(i==="*"||t.localName==i)){n.push(t)}});return n})}};BE.prototype.getElementsByTagName=LE.prototype.getElementsByTagName;BE.prototype.getElementsByTagNameNS=LE.prototype.getElementsByTagNameNS;eE(LE,TE);function HE(){}HE.prototype.nodeType=aE;eE(HE,TE);function UE(){}UE.prototype={data:"",substringData:function t(e,n){return this.data.substring(e,e+n)},appendData:function t(e){e=this.data+e;this.nodeValue=this.data=e;this.length=e.length},insertData:function t(e,n){this.replaceData(e,0,n)},appendChild:function t(e){throw new Error(yE[mE])},deleteData:function t(e,n){this.replaceData(e,n,"")},replaceData:function t(e,n,r){var i=this.data.substring(0,e);var a=this.data.substring(e+n);r=i+r+a;this.nodeValue=this.data=r;this.length=r.length}};eE(UE,TE);function GE(){}GE.prototype={nodeName:"#text",nodeType:oE,splitText:function t(e){var n=this.data;var r=n.substring(e);n=n.substring(0,e);this.data=this.nodeValue=n;this.length=n.length;var i=this.ownerDocument.createTextNode(r);if(this.parentNode){this.parentNode.insertBefore(i,this.nextSibling)}return i}};eE(GE,UE);function VE(){}VE.prototype={nodeName:"#comment",nodeType:fE};eE(VE,UE);function WE(){}WE.prototype={nodeName:"#cdata-section",nodeType:sE};eE(WE,UE);function qE(){}qE.prototype.nodeType=dE;eE(qE,TE);function KE(){}KE.prototype.nodeType=vE;eE(KE,TE);function YE(){}YE.prototype.nodeType=lE;eE(YE,TE);function XE(){}XE.prototype.nodeType=uE;eE(XE,TE);function ZE(){}ZE.prototype.nodeName="#document-fragment";ZE.prototype.nodeType=gE;eE(ZE,TE);function $E(){}$E.prototype.nodeType=cE;eE($E,TE);function JE(){}JE.prototype.serializeToString=function(t,e,n){return QE.call(t,e,n)};TE.prototype.toString=QE;function QE(t,e){var n=[];var r=this.nodeType==9?this.documentElement:this;var i=r.prefix;var a=r.namespaceURI;if(a&&i==null){var i=r.lookupPrefix(a);if(i==null){var o=[{namespace:a,prefix:null}]}}eA(this,n,t,e,o);return n.join("")}function tA(t,e,n){var r=t.prefix||"";var i=t.namespaceURI;if(!r&&!i){return false}if(r==="xml"&&i==="http://www.w3.org/XML/1998/namespace"||i=="http://www.w3.org/2000/xmlns/"){return false}var a=n.length;while(a--){var o=n[a];if(o.prefix==r){return o.namespace!=i}}return true}function eA(t,e,n,r,i){if(r){t=r(t);if(t){if(typeof t=="string"){e.push(t);return}}else{return}}switch(t.nodeType){case iE:if(!i)i=[];i.length;var a=t.attributes;var o=a.length;var s=t.firstChild;var u=t.tagName;n=nE===t.namespaceURI||n;e.push("<",u);for(var l=0;l<o;l++){var c=a.item(l);if(c.prefix=="xmlns"){i.push({prefix:c.localName,namespace:c.value})}else if(c.nodeName=="xmlns"){i.push({prefix:"",namespace:c.value})}}for(var l=0;l<o;l++){var c=a.item(l);if(tA(c,n,i)){var f=c.prefix||"";var h=c.namespaceURI;var d=f?" xmlns:"+f:" xmlns";e.push(d,'="',h,'"');i.push({prefix:f,namespace:h})}eA(c,e,n,r,i)}if(tA(t,n,i)){var f=t.prefix||"";var h=t.namespaceURI;var d=f?" xmlns:"+f:" xmlns";e.push(d,'="',h,'"');i.push({prefix:f,namespace:h})}if(s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){e.push(">");if(n&&/^script$/i.test(u)){while(s){if(s.data){e.push(s.data)}else{eA(s,e,n,r,i)}s=s.nextSibling}}else{while(s){eA(s,e,n,r,i);s=s.nextSibling}}e.push("</",u,">")}else{e.push("/>")}return;case hE:case gE:var s=t.firstChild;while(s){eA(s,e,n,r,i);s=s.nextSibling}return;case aE:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,OE),'"');case oE:return e.push(t.data.replace(/[<&]/g,OE));case sE:return e.push("<![CDATA[",t.data,"]]>");case fE:return e.push("\x3c!--",t.data,"--\x3e");case dE:var g=t.publicId;var v=t.systemId;e.push("<!DOCTYPE ",t.name);if(g){e.push(' PUBLIC "',g);if(v&&v!="."){e.push('" "',v)}e.push('">')}else if(v&&v!="."){e.push(' SYSTEM "',v,'">')}else{var p=t.internalSubset;if(p){e.push(" [",p,"]")}e.push(">")}return;case cE:return e.push("<?",t.target," ",t.data,"?>");case uE:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function nA(t,e,n){var r;switch(e.nodeType){case iE:r=e.cloneNode(false);r.ownerDocument=t;case gE:break;case aE:n=true;break}if(!r){r=e.cloneNode(false)}r.ownerDocument=t;r.parentNode=null;if(n){var i=e.firstChild;while(i){r.appendChild(nA(t,i,n));i=i.nextSibling}}return r}function rA(t,e,n){var r=new e.constructor;for(var i in e){var a=e[i];if(_typeof2(a)!="object"){if(a!=r[i]){r[i]=a}}}if(e.childNodes){r.childNodes=new xE}r.ownerDocument=t;switch(r.nodeType){case iE:var o=e.attributes;var s=r.attributes=new CE;var u=o.length;s._ownerElement=r;for(var l=0;l<u;l++){r.setAttributeNode(rA(t,o.item(l),true))}break;case aE:n=true}if(n){var c=e.firstChild;while(c){r.appendChild(rA(t,c,n));c=c.nextSibling}}return r}function iA(t,e,n){t[e]=n}try{if(Object.defineProperty){var aA=function t(e){switch(e.nodeType){case iE:case gE:var n=[];e=e.firstChild;while(e){if(e.nodeType!==7&&e.nodeType!==8){n.push(t(e))}e=e.nextSibling}return n.join("");default:return e.nodeValue}};Object.defineProperty(kE.prototype,"length",{get:function t(){SE(this);return this.$$length}});Object.defineProperty(TE.prototype,"textContent",{get:function t(){return aA(this)},set:function t(e){switch(this.nodeType){case iE:case gE:while(this.firstChild){this.removeChild(this.firstChild)}if(e||String(e)){this.appendChild(this.ownerDocument.createTextNode(e))}break;default:this.data=e;this.value=e;this.nodeValue=e}}});iA=function t(e,n,r){e["$$"+n]=r}}}catch(t){}var oA=RE;var sA=JE;var uA={DOMImplementation:oA,XMLSerializer:sA};_5(function(t,e){function n(t){this.options=t||{locator:{}}}n.prototype.parseFromString=function(t,e){var n=this.options;var r=new d;var i=n.domBuilder||new c;var a=n.errorHandler;var o=n.locator;var s=n.xmlns||{};var u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};if(o){i.setDocumentLocator(o)}r.errorHandler=l(a,i,o);r.domBuilder=n.domBuilder||i;if(/\/x?html?$/.test(e)){u.nbsp=" ";u.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(t){r.parse(t,s,u)}else{r.errorHandler.error("invalid doc source")}return i.doc};function l(r,t,i){if(!r){if(t instanceof c){return t}r=t}var a={};var o=r instanceof Function;i=i||{};function e(e){var n=r[e];if(!n&&o){n=r.length==2?function(t){r(e,t)}:r}a[e]=n&&function(t){n("[xmldom "+e+"]\t"+t+s(i))}||function(){}}e("warning");e("error");e("fatalError");return a}function c(){this.cdata=false}function f(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber}c.prototype={startDocument:function t(){this.doc=(new r).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function t(e,n,r,i){var a=this.doc;var o=a.createElementNS(e,r||n);var s=i.length;h(this,o);this.currentElement=o;this.locator&&f(this.locator,o);for(var u=0;u<s;u++){var e=i.getURI(u);var l=i.getValue(u);var r=i.getQName(u);var c=a.createAttributeNS(e,r);this.locator&&f(i.getLocator(u),c);c.value=c.nodeValue=l;o.setAttributeNode(c)}},endElement:function t(e,n,r){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function t(e,n){},endPrefixMapping:function t(e){},processingInstruction:function t(e,n){var r=this.doc.createProcessingInstruction(e,n);this.locator&&f(this.locator,r);h(this,r)},ignorableWhitespace:function t(e,n,r){},characters:function t(e,n,r){e=a.apply(this,arguments);if(e){if(this.cdata){var i=this.doc.createCDATASection(e)}else{var i=this.doc.createTextNode(e)}if(this.currentElement){this.currentElement.appendChild(i)}else if(/^\s*$/.test(e)){this.doc.appendChild(i)}this.locator&&f(this.locator,i)}},skippedEntity:function t(e){},endDocument:function t(){this.doc.normalize()},setDocumentLocator:function t(e){if(this.locator=e){e.lineNumber=0}},comment:function t(e,n,r){e=a.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i);h(this,i)},startCDATA:function t(){this.cdata=true},endCDATA:function t(){this.cdata=false},startDTD:function t(e,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,n,r);this.locator&&f(this.locator,a);h(this,a)}},warning:function t(e){console.warn("[xmldom warning]\t"+e,s(this.locator))},error:function t(e){console.error("[xmldom error]\t"+e,s(this.locator))},fatalError:function t(e){console.error("[xmldom fatalError]\t"+e,s(this.locator));throw e}};function s(t){if(t){return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}}function a(t,e,n){if(typeof t=="string"){return t.substr(e,n)}else{if(t.length>=e+n||e){return new java.lang.String(t,e,n)+""}return t}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){c.prototype[t]=function(){return null}});function h(t,e){if(!t.currentElement){t.doc.appendChild(e)}else{t.currentElement.appendChild(e)}}var d=Q5.XMLReader;var r=e.DOMImplementation=uA.DOMImplementation;e.XMLSerializer=uA.XMLSerializer;e.DOMParser=n});function lA(t,e,n){if(t==null&&e==null&&n==null){var r=document.querySelectorAll("svg");for(var i=0;i<r.length;i++){var a=r[i];var o=document.createElement("canvas");o.width=a.clientWidth;o.height=a.clientHeight;a.parentNode.insertBefore(o,a);a.parentNode.removeChild(a);var s=document.createElement("div");s.appendChild(a);lA(o,s.innerHTML)}return}if(typeof t=="string"){t=document.getElementById(t)}if(t.svg!=null)t.svg.stop();var u=hA(n||{});if(!(t.childNodes.length==1&&t.childNodes[0].nodeName=="OBJECT"))t.svg=u;var l=t.getContext("2d");if(typeof e.documentElement!="undefined"){u.loadXmlDoc(l,e)}else if(e.substr(0,1)=="<"){u.loadXml(l,e)}else{u.load(l,e)}}function cA(){var t;if(typeof Element.prototype.matches!="undefined"){t=function t(e,n){return e.matches(n)}}else if(typeof Element.prototype.webkitMatchesSelector!="undefined"){t=function t(e,n){return e.webkitMatchesSelector(n)}}else if(typeof Element.prototype.mozMatchesSelector!="undefined"){t=function t(e,n){return e.mozMatchesSelector(n)}}else if(typeof Element.prototype.msMatchesSelector!="undefined"){t=function t(e,n){return e.msMatchesSelector(n)}}else if(typeof Element.prototype.oMatchesSelector!="undefined"){t=function t(e,n){return e.oMatchesSelector(n)}}else{if(typeof jQuery=="function"||typeof Zepto=="function"){t=function t(e,n){return $(e).is(n)}}if(typeof t=="undefined"){t=Sizzle.matchesSelector}}return t}function fA(i){var a=[0,0,0];var t=/(\[[^\]]+\])/g;var e=/(#[^\s\+>~\.\[:]+)/g;var n=/(\.[^\s\+>~\.\[:]+)/g;var r=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi;var o=/(:[\w-]+\([^\)]*\))/gi;var s=/(:[^\s\+>~\.\[:]+)/g;var u=/([^\s\+>~\.\[:]+)/g;var l=function t(e,n){var r=i.match(e);if(r==null){return}a[n]+=r.length;i=i.replace(e," ")};i=i.replace(/:not\(([^\)]*)\)/g," $1 ");i=i.replace(/{[^]*/gm," ");l(t,1);l(e,0);l(n,1);l(r,2);l(o,1);l(s,1);i=i.replace(/[\*\s\+>~]/g," ");i=i.replace(/[#\.]/g," ");l(u,2);return a.join("")}function hA(t){var P={opts:t};var l=cA();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(t,e,n,r,i,a){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:e,offsetY:n,scaleWidth:r,scaleHeight:i};for(var s in a){if(a.hasOwnProperty(s)){o[s]=a[s]}}lA(this.canvas,t,o)}}P.FRAMERATE=30;P.MAX_VIRTUAL_PIXELS=3e4;P.log=function(t){};if(P.opts.log==true&&typeof console!="undefined"){P.log=function(t){console.log(t)}}P.init=function(t){var e=0;P.UniqueId=function(){e++;return"canvg"+e};P.Definitions={};P.Styles={};P.StylesSpecificity={};P.Animations=[];P.Images=[];P.ctx=t;P.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})};this.RemoveCurrent=function(){this.viewPorts.pop()};this.Current=function(){return this.viewPorts[this.viewPorts.length-1]};this.width=function(){return this.Current().width};this.height=function(){return this.Current().height};this.ComputeSize=function(t){if(t!=null&&typeof t=="number")return t;if(t=="x")return this.width();if(t=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};P.init();P.ImagesLoaded=function(){for(var t=0;t<P.Images.length;t++){if(!P.Images[t].loaded)return false}return true};P.trim=function(t){return t.replace(/^\s+|\s+$/g,"")};P.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")};P.ajax=function(t){var e;if(window.XMLHttpRequest){e=new XMLHttpRequest}else{e=new ActiveXObject("Microsoft.XMLHTTP")}if(e){e.open("GET",t,false);e.send(null);return e.responseText}return null};P.parseXml=function(t){if(typeof Windows!="undefined"&&typeof Windows.Data!="undefined"&&typeof Windows.Data.Xml!="undefined"){var e=new Windows.Data.Xml.Dom.XmlDocument;var n=new Windows.Data.Xml.Dom.XmlLoadSettings;n.prohibitDtd=false;e.loadXml(t,n);return e}else if(window.DOMParser){var r=new DOMParser;return r.parseFromString(t,"text/xml")}else{t=t.replace(/<!DOCTYPE svg[^>]*>/,"");var e=new ActiveXObject("Microsoft.XMLDOM");e.async="false";e.loadXML(t);return e}};P.Property=function(t,e){this.name=t;this.value=e};P.Property.prototype.getValue=function(){return this.value};P.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};P.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);if((this.value+"").match(/%$/)){t=t/100}return t};P.Property.prototype.valueOrDefault=function(t){if(this.hasValue())return this.value;return t};P.Property.prototype.numValueOrDefault=function(t){if(this.hasValue())return this.numValue();return t};P.Property.prototype.addOpacity=function(t){var e=this.value;if(t.value!=null&&t.value!=""&&typeof this.value=="string"){var n=new x5(this.value);if(n.ok){e="rgba("+n.r+", "+n.g+", "+n.b+", "+t.numValue()+")"}}return new P.Property(this.name,e)};P.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);if(t){t=t[1]}if(!t){t=this.value}return P.Definitions[t]};P.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};P.Property.prototype.getFillStyleDefinition=function(t,e){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(P.ctx,t,e)}if(n!=null&&n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition();if(r.hasValue()){n.attribute("patternTransform",true).value=r.value}}return n.createPattern(P.ctx,t)}return null};P.Property.prototype.getDPI=function(t){return 96};P.Property.prototype.getEM=function(t){var e=12;var n=new P.Property("fontSize",P.Font.Parse(P.ctx.font).fontSize);if(n.hasValue())e=n.toPixels(t);return e};P.Property.prototype.getUnits=function(){var t=this.value+"";return t.replace(/[0-9\.\-]/g,"")};P.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(t);if(n.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(t);if(n.match(/%$/))return this.numValue()*P.ViewPort.ComputeSize(t);var r=this.numValue();if(e&&r<1)return r*P.ViewPort.ComputeSize(t);return r};P.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/s$/))return this.numValue()*1e3;if(t.match(/ms$/))return this.numValue();return this.numValue()};P.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/deg$/))return this.numValue()*(Math.PI/180);if(t.match(/grad$/))return this.numValue()*(Math.PI/200);if(t.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var e={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};P.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return e[this.value]};P.Font=new function(){this.Styles="normal|italic|oblique|inherit";this.Variants="normal|small-caps|inherit";this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";this.CreateFont=function(t,e,n,r,i,a){var o=a!=null?this.Parse(a):this.CreateFont("","","","","",P.ctx.font);return{fontFamily:i||o.fontFamily,fontSize:r||o.fontSize,fontStyle:t||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:e||o.fontVariant,toString:function t(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(t){var e={};var n=P.trim(P.compressSpaces(t||"")).split(" ");var r={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var i="";for(var a=0;a<n.length;a++){if(!r.fontStyle&&o.Styles.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontStyle=n[a];r.fontStyle=true}else if(!r.fontVariant&&o.Variants.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontVariant=n[a];r.fontStyle=r.fontVariant=true}else if(!r.fontWeight&&o.Weights.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontWeight=n[a];r.fontStyle=r.fontVariant=r.fontWeight=true}else if(!r.fontSize){if(n[a]!="inherit")e.fontSize=n[a].split("/")[0];r.fontStyle=r.fontVariant=r.fontWeight=r.fontSize=true}else{if(n[a]!="inherit")i+=n[a]}}if(i!="")e.fontFamily=i;return e}};P.ToNumberArray=function(t){var e=P.trim(P.compressSpaces((t||"").replace(/,/g," "))).split(" ");for(var n=0;n<e.length;n++){e[n]=parseFloat(e[n])}return e};P.Point=function(t,e){this.x=t;this.y=e};P.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)};P.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4];var n=this.x*t[1]+this.y*t[3]+t[5];this.x=e;this.y=n};P.CreatePoint=function(t){var e=P.ToNumberArray(t);return new P.Point(e[0],e[1])};P.CreatePath=function(t){var e=P.ToNumberArray(t);var n=[];for(var r=0;r<e.length;r+=2){n.push(new P.Point(e[r],e[r+1]))}return n};P.BoundingBox=function(t,e,n,r){this.x1=Number.NaN;this.y1=Number.NaN;this.x2=Number.NaN;this.y2=Number.NaN;this.x=function(){return this.x1};this.y=function(){return this.y1};this.width=function(){return this.x2-this.x1};this.height=function(){return this.y2-this.y1};this.addPoint=function(t,e){if(t!=null){if(isNaN(this.x1)||isNaN(this.x2)){this.x1=t;this.x2=t}if(t<this.x1)this.x1=t;if(t>this.x2)this.x2=t}if(e!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=e;this.y2=e}if(e<this.y1)this.y1=e;if(e>this.y2)this.y2=e}};this.addX=function(t){this.addPoint(t,null)};this.addY=function(t){this.addPoint(null,t)};this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1);this.addPoint(t.x2,t.y2)};this.addQuadraticCurve=function(t,e,n,r,i,a){var o=t+2/3*(n-t);var s=e+2/3*(r-e);var u=o+1/3*(i-t);var l=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,l,i,a)};this.addBezierCurve=function(t,e,n,r,i,a,o,s){var u=[t,e],l=[n,r],c=[i,a],f=[o,s];this.addPoint(u[0],u[1]);this.addPoint(f[0],f[1]);for(var h=0;h<=1;h++){var d=function t(e){return Math.pow(1-e,3)*u[h]+3*Math.pow(1-e,2)*e*l[h]+3*(1-e)*Math.pow(e,2)*c[h]+Math.pow(e,3)*f[h]};var g=6*u[h]-12*l[h]+6*c[h];var v=-3*u[h]+9*l[h]-9*c[h]+3*f[h];var p=3*l[h]-3*u[h];if(v==0){if(g==0)continue;var y=-p/g;if(0<y&&y<1){if(h==0)this.addX(d(y));if(h==1)this.addY(d(y))}continue}var m=Math.pow(g,2)-4*p*v;if(m<0)continue;var _=(-g+Math.sqrt(m))/(2*v);if(0<_&&_<1){if(h==0)this.addX(d(_));if(h==1)this.addY(d(_))}var b=(-g-Math.sqrt(m))/(2*v);if(0<b&&b<1){if(h==0)this.addX(d(b));if(h==1)this.addY(d(b))}}};this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2};this.addPoint(t,e);this.addPoint(n,r)};P.Transform=function(t){var e=this;this.Type={};this.Type.translate=function(t){this.p=P.CreatePoint(t);this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)};this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)};this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}};this.Type.rotate=function(t){var e=P.ToNumberArray(t);this.angle=new P.Property("angle",e[0]);this.cx=e[1]||0;this.cy=e[2]||0;this.apply=function(t){t.translate(this.cx,this.cy);t.rotate(this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.unapply=function(t){t.translate(this.cx,this.cy);t.rotate(-1*this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]);t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]);t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}};this.Type.scale=function(t){this.p=P.CreatePoint(t);this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)};this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)};this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}};this.Type.matrix=function(t){this.m=P.ToNumberArray(t);this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};this.unapply=function(t){var e=this.m[0];var n=this.m[2];var r=this.m[4];var i=this.m[1];var a=this.m[3];var o=this.m[5];var s=0;var u=0;var l=1;var c=1/(e*(a*l-o*u)-n*(i*l-o*s)+r*(i*u-a*s));t.transform(c*(a*l-o*u),c*(o*s-i*l),c*(r*u-n*l),c*(e*l-r*s),c*(n*o-r*a),c*(r*i-e*o))};this.applyToPoint=function(t){t.applyTransform(this.m)}};this.Type.SkewBase=function(t){this.base=e.Type.matrix;this.base(t);this.angle=new P.Property("angle",t)};this.Type.SkewBase.prototype=new this.Type.matrix;this.Type.skewX=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]};this.Type.skewX.prototype=new this.Type.SkewBase;this.Type.skewY=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]};this.Type.skewY.prototype=new this.Type.SkewBase;this.transforms=[];this.apply=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].apply(t)}};this.unapply=function(t){for(var e=this.transforms.length-1;e>=0;e--){this.transforms[e].unapply(t)}};this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].applyToPoint(t)}};var n=P.trim(P.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);for(var r=0;r<n.length;r++){var i=P.trim(n[r].split("(")[0]);var a=n[r].split("(")[1].replace(")","");var o=this.Type[i];if(typeof o!="undefined"){var s=new o(a);s.type=i;this.transforms.push(s)}}};P.AspectRatio=function(t,e,n,r,i,a,o,s,u,l){e=P.compressSpaces(e);e=e.replace(/^defer\s/,"");var c=e.split(" ")[0]||"xMidYMid";var f=e.split(" ")[1]||"meet";var h=n/r;var d=i/a;var g=Math.min(h,d);var v=Math.max(h,d);if(f=="meet"){r*=g;a*=g}if(f=="slice"){r*=v;a*=v}u=new P.Property("refX",u);l=new P.Property("refY",l);if(u.hasValue()&&l.hasValue()){t.translate(-g*u.toPixels("x"),-g*l.toPixels("y"))}else{if(c.match(/^xMid/)&&(f=="meet"&&g==d||f=="slice"&&v==d))t.translate(n/2-r/2,0);if(c.match(/YMid$/)&&(f=="meet"&&g==h||f=="slice"&&v==h))t.translate(0,i/2-a/2);if(c.match(/^xMax/)&&(f=="meet"&&g==d||f=="slice"&&v==d))t.translate(n-r,0);if(c.match(/YMax$/)&&(f=="meet"&&g==h||f=="slice"&&v==h))t.translate(0,i-a)}if(c=="none")t.scale(h,d);else if(f=="meet")t.scale(g,g);else if(f=="slice")t.scale(v,v);t.translate(o==null?0:-o,s==null?0:-s)};P.Element={};P.EmptyProperty=new P.Property("EMPTY","");P.Element.ElementBase=function(a){this.attributes={};this.styles={};this.stylesSpecificity={};this.children=[];this.attribute=function(t,e){var n=this.attributes[t];if(n!=null)return n;if(e==true){n=new P.Property(t,"");this.attributes[t]=n}return n||P.EmptyProperty};this.getHrefAttribute=function(){for(var t in this.attributes){if(t=="href"||t.match(/:href$/)){return this.attributes[t]}}return P.EmptyProperty};this.style=function(t,e,n){var r=this.styles[t];if(r!=null)return r;var i=this.attribute(t);if(i!=null&&i.hasValue()){this.styles[t]=i;return i}if(n!=true){var a=this.parent;if(a!=null){var o=a.style(t);if(o!=null&&o.hasValue()){return o}}}if(e==true){r=new P.Property(t,"");this.styles[t]=r}return r||P.EmptyProperty};this.render=function(t){if(this.style("display").value=="none")return;if(this.style("visibility").value=="hidden")return;t.save();if(this.style("mask").hasValue()){var e=this.style("mask").getDefinition();if(e!=null)e.apply(t,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();if(n!=null)n.apply(t,this)}else{this.setContext(t);this.renderChildren(t);this.clearContext(t)}t.restore()};this.setContext=function(t){};this.clearContext=function(t){};this.renderChildren=function(t){for(var e=0;e<this.children.length;e++){this.children[e].render(t)}};this.addChild=function(t,e){var n=t;if(e)n=P.CreateElement(t);n.parent=this;if(n.type!="title"){this.children.push(n)}};this.addStylesFromStyleDefinition=function(){for(var t in P.Styles){if(t[0]!="@"&&l(a,t)){var e=P.Styles[t];var n=P.StylesSpecificity[t];if(e!=null){for(var r in e){var i=this.stylesSpecificity[r];if(typeof i=="undefined"){i="000"}if(n>i){this.styles[r]=e[r];this.stylesSpecificity[r]=n}}}}}};if(a!=null&&a.nodeType==1){for(var t=0;t<a.attributes.length;t++){var e=a.attributes[t];this.attributes[e.nodeName]=new P.Property(e.nodeName,e.value)}this.addStylesFromStyleDefinition();if(this.attribute("style").hasValue()){var n=this.attribute("style").value.split(";");for(var t=0;t<n.length;t++){if(P.trim(n[t])!=""){var r=n[t].split(":");var i=P.trim(r[0]);var o=P.trim(r[1]);this.styles[i]=new P.Property(i,o)}}}if(this.attribute("id").hasValue()){if(P.Definitions[this.attribute("id").value]==null){P.Definitions[this.attribute("id").value]=this}}for(var t=0;t<a.childNodes.length;t++){var s=a.childNodes[t];if(s.nodeType==1)this.addChild(s,true);if(this.captureTextNodes&&(s.nodeType==3||s.nodeType==4)){var u=s.value||s.text||s.textContent||"";if(P.compressSpaces(u)!=""){this.addChild(new P.Element.tspan(s),false)}}}}};P.Element.RenderedElementBase=function(t){this.base=P.Element.ElementBase;this.base(t);this.setContext=function(t){if(this.style("fill").isUrlDefinition()){var e=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));if(e!=null)t.fillStyle=e}else if(this.style("fill").hasValue()){var n=this.style("fill");if(n.value=="currentColor")n.value=this.style("color").value;if(n.value!="inherit")t.fillStyle=n.value=="none"?"rgba(0,0,0,0)":n.value}if(this.style("fill-opacity").hasValue()){var n=new P.Property("fill",t.fillStyle);n=n.addOpacity(this.style("fill-opacity"));t.fillStyle=n.value}if(this.style("stroke").isUrlDefinition()){var e=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));if(e!=null)t.strokeStyle=e}else if(this.style("stroke").hasValue()){var r=this.style("stroke");if(r.value=="currentColor")r.value=this.style("color").value;if(r.value!="inherit")t.strokeStyle=r.value=="none"?"rgba(0,0,0,0)":r.value}if(this.style("stroke-opacity").hasValue()){var r=new P.Property("stroke",t.strokeStyle);r=r.addOpacity(this.style("stroke-opacity"));t.strokeStyle=r.value}if(this.style("stroke-width").hasValue()){var i=this.style("stroke-width").toPixels();t.lineWidth=i==0?.001:i}if(this.style("stroke-linecap").hasValue())t.lineCap=this.style("stroke-linecap").value;if(this.style("stroke-linejoin").hasValue())t.lineJoin=this.style("stroke-linejoin").value;if(this.style("stroke-miterlimit").hasValue())t.miterLimit=this.style("stroke-miterlimit").value;if(this.style("stroke-dasharray").hasValue()&&this.style("stroke-dasharray").value!="none"){var a=P.ToNumberArray(this.style("stroke-dasharray").value);if(typeof t.setLineDash!="undefined"){t.setLineDash(a)}else if(typeof t.webkitLineDash!="undefined"){t.webkitLineDash=a}else if(typeof t.mozDash!="undefined"&&!(a.length==1&&a[0]==0)){t.mozDash=a}var o=this.style("stroke-dashoffset").numValueOrDefault(1);if(typeof t.lineDashOffset!="undefined"){t.lineDashOffset=o}else if(typeof t.webkitLineDashOffset!="undefined"){t.webkitLineDashOffset=o}else if(typeof t.mozDashOffset!="undefined"){t.mozDashOffset=o}}if(typeof t.font!="undefined"){t.font=P.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()}if(this.style("transform",false,true).hasValue()){var s=new P.Transform(this.style("transform",false,true).value);s.apply(t)}if(this.style("clip-path",false,true).hasValue()){var u=this.style("clip-path",false,true).getDefinition();if(u!=null)u.apply(t)}if(this.style("opacity").hasValue()){t.globalAlpha=this.style("opacity").numValue()}}};P.Element.RenderedElementBase.prototype=new P.Element.ElementBase;P.Element.PathElementBase=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.path=function(t){if(t!=null)t.beginPath();return new P.BoundingBox};this.renderChildren=function(t){this.path(t);P.Mouse.checkPath(this,t);if(t.fillStyle!=""){if(this.style("fill-rule").valueOrDefault("inherit")!="inherit"){t.fill(this.style("fill-rule").value)}else{t.fill()}}if(t.strokeStyle!="")t.stroke();var e=this.getMarkers();if(e!=null){if(this.style("marker-start").isUrlDefinition()){var n=this.style("marker-start").getDefinition();n.render(t,e[0][0],e[0][1])}if(this.style("marker-mid").isUrlDefinition()){var n=this.style("marker-mid").getDefinition();for(var r=1;r<e.length-1;r++){n.render(t,e[r][0],e[r][1])}}if(this.style("marker-end").isUrlDefinition()){var n=this.style("marker-end").getDefinition();n.render(t,e[e.length-1][0],e[e.length-1][1])}}};this.getBoundingBox=function(){return this.path()};this.getMarkers=function(){return null}};P.Element.PathElementBase.prototype=new P.Element.RenderedElementBase;P.Element.svg=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.baseClearContext=this.clearContext;this.clearContext=function(t){this.baseClearContext(t);P.ViewPort.RemoveCurrent()};this.baseSetContext=this.setContext;this.setContext=function(t){t.strokeStyle="rgba(0,0,0,0)";t.lineCap="butt";t.lineJoin="miter";t.miterLimit=4;if(typeof t.font!="undefined"&&typeof window.getComputedStyle!="undefined"){t.font=window.getComputedStyle(t.canvas).getPropertyValue("font")}this.baseSetContext(t);if(!this.attribute("x").hasValue())this.attribute("x",true).value=0;if(!this.attribute("y").hasValue())this.attribute("y",true).value=0;t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var e=P.ViewPort.width();var n=P.ViewPort.height();if(!this.attribute("width").hasValue())this.attribute("width",true).value="100%";if(!this.attribute("height").hasValue())this.attribute("height",true).value="100%";if(typeof this.root=="undefined"){e=this.attribute("width").toPixels("x");n=this.attribute("height").toPixels("y");var r=0;var i=0;if(this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()){r=-this.attribute("refX").toPixels("x");i=-this.attribute("refY").toPixels("y")}if(this.attribute("overflow").valueOrDefault("hidden")!="visible"){t.beginPath();t.moveTo(r,i);t.lineTo(e,i);t.lineTo(e,n);t.lineTo(r,n);t.closePath();t.clip()}}P.ViewPort.SetCurrent(e,n);if(this.attribute("viewBox").hasValue()){var a=P.ToNumberArray(this.attribute("viewBox").value);var o=a[0];var s=a[1];e=a[2];n=a[3];P.AspectRatio(t,this.attribute("preserveAspectRatio").value,P.ViewPort.width(),e,P.ViewPort.height(),n,o,s,this.attribute("refX").value,this.attribute("refY").value);P.ViewPort.RemoveCurrent();P.ViewPort.SetCurrent(a[2],a[3])}}};P.Element.svg.prototype=new P.Element.RenderedElementBase;P.Element.rect=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var r=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");var a=this.attribute("rx").toPixels("x");var o=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue())o=a;if(this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue())a=o;a=Math.min(a,r/2);o=Math.min(o,i/2);if(t!=null){t.beginPath();t.moveTo(e+a,n);t.lineTo(e+r-a,n);t.quadraticCurveTo(e+r,n,e+r,n+o);t.lineTo(e+r,n+i-o);t.quadraticCurveTo(e+r,n+i,e+r-a,n+i);t.lineTo(e+a,n+i);t.quadraticCurveTo(e,n+i,e,n+i-o);t.lineTo(e,n+o);t.quadraticCurveTo(e,n,e+a,n);t.closePath()}return new P.BoundingBox(e,n,e+r,n+i)}};P.Element.rect.prototype=new P.Element.PathElementBase;P.Element.circle=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("cx").toPixels("x");var n=this.attribute("cy").toPixels("y");var r=this.attribute("r").toPixels();if(t!=null){t.beginPath();t.arc(e,n,r,0,Math.PI*2,true);t.closePath()}return new P.BoundingBox(e-r,n-r,e+r,n+r)}};P.Element.circle.prototype=new P.Element.PathElementBase;P.Element.ellipse=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=4*((Math.sqrt(2)-1)/3);var n=this.attribute("rx").toPixels("x");var r=this.attribute("ry").toPixels("y");var i=this.attribute("cx").toPixels("x");var a=this.attribute("cy").toPixels("y");if(t!=null){t.beginPath();t.moveTo(i,a-r);t.bezierCurveTo(i+e*n,a-r,i+n,a-e*r,i+n,a);t.bezierCurveTo(i+n,a+e*r,i+e*n,a+r,i,a+r);t.bezierCurveTo(i-e*n,a+r,i-n,a+e*r,i-n,a);t.bezierCurveTo(i-n,a-e*r,i-e*n,a-r,i,a-r);t.closePath()}return new P.BoundingBox(i-n,a-r,i+n,a+r)}};P.Element.ellipse.prototype=new P.Element.PathElementBase;P.Element.line=function(t){this.base=P.Element.PathElementBase;this.base(t);this.getPoints=function(){return[new P.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new P.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]};this.path=function(t){var e=this.getPoints();if(t!=null){t.beginPath();t.moveTo(e[0].x,e[0].y);t.lineTo(e[1].x,e[1].y)}return new P.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)};this.getMarkers=function(){var t=this.getPoints();var e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}};P.Element.line.prototype=new P.Element.PathElementBase;P.Element.polyline=function(t){this.base=P.Element.PathElementBase;this.base(t);this.points=P.CreatePath(this.attribute("points").value);this.path=function(t){var e=new P.BoundingBox(this.points[0].x,this.points[0].y);if(t!=null){t.beginPath();t.moveTo(this.points[0].x,this.points[0].y)}for(var n=1;n<this.points.length;n++){e.addPoint(this.points[n].x,this.points[n].y);if(t!=null)t.lineTo(this.points[n].x,this.points[n].y)}return e};this.getMarkers=function(){var t=[];for(var e=0;e<this.points.length-1;e++){t.push([this.points[e],this.points[e].angleTo(this.points[e+1])])}if(t.length>0){t.push([this.points[this.points.length-1],t[t.length-1][1]])}return t}};P.Element.polyline.prototype=new P.Element.PathElementBase;P.Element.polygon=function(t){this.base=P.Element.polyline;this.base(t);this.basePath=this.path;this.path=function(t){var e=this.basePath(t);if(t!=null){t.lineTo(this.points[0].x,this.points[0].y);t.closePath()}return e}};P.Element.polygon.prototype=new P.Element.polyline;P.Element.path=function(t){this.base=P.Element.PathElementBase;this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var n=0;n<2;n++){e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");e=e.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");e=P.compressSpaces(e);e=P.trim(e);this.PathParser=new function(t){this.tokens=t.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new P.Point(0,0);this.control=new P.Point(0,0);this.current=new P.Point(0,0);this.points=[];this.angles=[]};this.isEnd=function(){return this.i>=this.tokens.length-1};this.isCommandOrEnd=function(){if(this.isEnd())return true;return this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null};this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return true}return false};this.getToken=function(){this.i++;return this.tokens[this.i]};this.getScalar=function(){return parseFloat(this.getToken())};this.nextCommand=function(){this.previousCommand=this.command;this.command=this.getToken()};this.getPoint=function(){var t=new P.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)};this.getAsControlPoint=function(){var t=this.getPoint();this.control=t;return t};this.getAsCurrentPoint=function(){var t=this.getPoint();this.current=t;return t};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var t=new P.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return t};this.makeAbsolute=function(t){if(this.isRelativeCommand()){t.x+=this.current.x;t.y+=this.current.y}return t};this.addMarker=function(t,e,n){if(n!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null){this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)}this.addMarkerAngle(t,e==null?null:e.angleTo(t))};this.addMarkerAngle=function(t,e){this.points.push(t);this.angles.push(e)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++){if(this.angles[t]==null){for(var e=t+1;e<this.angles.length;e++){if(this.angles[e]!=null){this.angles[t]=this.angles[e];break}}}}return this.angles}}(e);this.path=function(t){var e=this.PathParser;e.reset();var n=new P.BoundingBox;if(t!=null)t.beginPath();while(!e.isEnd()){e.nextCommand();switch(e.command){case"M":case"m":var r=e.getAsCurrentPoint();e.addMarker(r);n.addPoint(r.x,r.y);if(t!=null)t.moveTo(r.x,r.y);e.start=e.current;while(!e.isCommandOrEnd()){var r=e.getAsCurrentPoint();e.addMarker(r,e.start);n.addPoint(r.x,r.y);if(t!=null)t.lineTo(r.x,r.y)}break;case"L":case"l":while(!e.isCommandOrEnd()){var i=e.current;var r=e.getAsCurrentPoint();e.addMarker(r,i);n.addPoint(r.x,r.y);if(t!=null)t.lineTo(r.x,r.y)}break;case"H":case"h":while(!e.isCommandOrEnd()){var a=new P.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":while(!e.isCommandOrEnd()){var a=new P.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"S":case"s":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getReflectedControlPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"Q":case"q":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"T":case"t":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getReflectedControlPoint();e.control=u;var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"A":case"a":while(!e.isCommandOrEnd()){var o=e.current;var c=e.getScalar();var f=e.getScalar();var h=e.getScalar()*(Math.PI/180);var d=e.getScalar();var g=e.getScalar();var l=e.getAsCurrentPoint();var v=new P.Point(Math.cos(h)*(o.x-l.x)/2+Math.sin(h)*(o.y-l.y)/2,-Math.sin(h)*(o.x-l.x)/2+Math.cos(h)*(o.y-l.y)/2);var p=Math.pow(v.x,2)/Math.pow(c,2)+Math.pow(v.y,2)/Math.pow(f,2);if(p>1){c*=Math.sqrt(p);f*=Math.sqrt(p)}var y=(d==g?-1:1)*Math.sqrt((Math.pow(c,2)*Math.pow(f,2)-Math.pow(c,2)*Math.pow(v.y,2)-Math.pow(f,2)*Math.pow(v.x,2))/(Math.pow(c,2)*Math.pow(v.y,2)+Math.pow(f,2)*Math.pow(v.x,2)));if(isNaN(y))y=0;var m=new P.Point(y*c*v.y/f,y*-f*v.x/c);var _=new P.Point((o.x+l.x)/2+Math.cos(h)*m.x-Math.sin(h)*m.y,(o.y+l.y)/2+Math.sin(h)*m.x+Math.cos(h)*m.y);var b=function t(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))};var w=function t(e,n){return(e[0]*n[0]+e[1]*n[1])/(b(e)*b(n))};var x=function t(e,n){return(e[0]*n[1]<e[1]*n[0]?-1:1)*Math.acos(w(e,n))};var k=x([1,0],[(v.x-m.x)/c,(v.y-m.y)/f]);var S=[(v.x-m.x)/c,(v.y-m.y)/f];var C=[(-v.x-m.x)/c,(-v.y-m.y)/f];var E=x(S,C);if(w(S,C)<=-1)E=Math.PI;if(w(S,C)>=1)E=0;var A=1-g?1:-1;var M=k+A*(E/2);var R=new P.Point(_.x+c*Math.cos(M),_.y+f*Math.sin(M));e.addMarkerAngle(R,M-A*Math.PI/2);e.addMarkerAngle(l,M-A*Math.PI);n.addPoint(l.x,l.y);if(t!=null){var w=c>f?c:f;var T=c>f?1:c/f;var O=c>f?f/c:1;t.translate(_.x,_.y);t.rotate(h);t.scale(T,O);t.arc(0,0,w,k,k+E,1-g);t.scale(1/T,1/O);t.rotate(-h);t.translate(-_.x,-_.y)}}break;case"Z":case"z":if(t!=null)t.closePath();e.current=e.start}}return n};this.getMarkers=function(){var t=this.PathParser.getMarkerPoints();var e=this.PathParser.getMarkerAngles();var n=[];for(var r=0;r<t.length;r++){n.push([t[r],e[r]])}return n}};P.Element.path.prototype=new P.Element.PathElementBase;P.Element.pattern=function(t){this.base=P.Element.ElementBase;this.base(t);this.createPattern=function(t,e){var n=this.attribute("width").toPixels("x",true);var r=this.attribute("height").toPixels("y",true);var i=new P.Element.svg;i.attributes["viewBox"]=new P.Property("viewBox",this.attribute("viewBox").value);i.attributes["width"]=new P.Property("width",n+"px");i.attributes["height"]=new P.Property("height",r+"px");i.attributes["transform"]=new P.Property("transform",this.attribute("patternTransform").value);i.children=this.children;var a=document.createElement("canvas");a.width=n;a.height=r;var o=a.getContext("2d");if(this.attribute("x").hasValue()&&this.attribute("y").hasValue()){o.translate(this.attribute("x").toPixels("x",true),this.attribute("y").toPixels("y",true))}for(var s=-1;s<=1;s++){for(var u=-1;u<=1;u++){o.save();i.attributes["x"]=new P.Property("x",s*a.width);i.attributes["y"]=new P.Property("y",u*a.height);i.render(o);o.restore()}}var l=t.createPattern(a,"repeat");return l}};P.Element.pattern.prototype=new P.Element.ElementBase;P.Element.marker=function(t){this.base=P.Element.ElementBase;this.base(t);this.baseRender=this.render;this.render=function(t,e,n){t.translate(e.x,e.y);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(n);if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(t.lineWidth,t.lineWidth);t.save();var r=new P.Element.svg;r.attributes["viewBox"]=new P.Property("viewBox",this.attribute("viewBox").value);r.attributes["refX"]=new P.Property("refX",this.attribute("refX").value);r.attributes["refY"]=new P.Property("refY",this.attribute("refY").value);r.attributes["width"]=new P.Property("width",this.attribute("markerWidth").value);r.attributes["height"]=new P.Property("height",this.attribute("markerHeight").value);r.attributes["fill"]=new P.Property("fill",this.attribute("fill").valueOrDefault("black"));r.attributes["stroke"]=new P.Property("stroke",this.attribute("stroke").valueOrDefault("none"));r.children=this.children;r.render(t);t.restore();if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(1/t.lineWidth,1/t.lineWidth);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(-n);t.translate(-e.x,-e.y)}};P.Element.marker.prototype=new P.Element.ElementBase;P.Element.defs=function(t){this.base=P.Element.ElementBase;this.base(t);this.render=function(t){}};P.Element.defs.prototype=new P.Element.ElementBase;P.Element.GradientBase=function(t){this.base=P.Element.ElementBase;this.base(t);this.stops=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="stop")this.stops.push(n)}this.getGradient=function(){};this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")};this.attributesToInherit=["gradientUnits"];this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var n=this.attributesToInherit[e];if(!this.attribute(n).hasValue()&&t.attribute(n).hasValue()){this.attribute(n,true).value=t.attribute(n).value}}};this.createGradient=function(t,e,r){var n=this;if(this.getHrefAttribute().hasValue()){n=this.getHrefAttribute().getDefinition();this.inheritStopContainer(n)}var i=function t(e){if(r.hasValue()){var n=new P.Property("color",e);return n.addOpacity(r).value}return e};var a=this.getGradient(t,e);if(a==null)return i(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++){a.addColorStop(n.stops[o].offset,i(n.stops[o].color))}if(this.attribute("gradientTransform").hasValue()){var s=P.ViewPort.viewPorts[0];var u=new P.Element.rect;u.attributes["x"]=new P.Property("x",-P.MAX_VIRTUAL_PIXELS/3);u.attributes["y"]=new P.Property("y",-P.MAX_VIRTUAL_PIXELS/3);u.attributes["width"]=new P.Property("width",P.MAX_VIRTUAL_PIXELS);u.attributes["height"]=new P.Property("height",P.MAX_VIRTUAL_PIXELS);var l=new P.Element.g;l.attributes["transform"]=new P.Property("transform",this.attribute("gradientTransform").value);l.children=[u];var c=new P.Element.svg;c.attributes["x"]=new P.Property("x",0);c.attributes["y"]=new P.Property("y",0);c.attributes["width"]=new P.Property("width",s.width);c.attributes["height"]=new P.Property("height",s.height);c.children=[l];var f=document.createElement("canvas");f.width=s.width;f.height=s.height;var h=f.getContext("2d");h.fillStyle=a;c.render(h);return h.createPattern(f,"no-repeat")}return a}};P.Element.GradientBase.prototype=new P.Element.ElementBase;P.Element.linearGradient=function(t){this.base=P.Element.GradientBase;this.base(t);this.attributesToInherit.push("x1");this.attributesToInherit.push("y1");this.attributesToInherit.push("x2");this.attributesToInherit.push("y2");this.getGradient=function(t,e){var n=this.gradientUnits()=="objectBoundingBox"?e.getBoundingBox():null;if(!this.attribute("x1").hasValue()&&!this.attribute("y1").hasValue()&&!this.attribute("x2").hasValue()&&!this.attribute("y2").hasValue()){this.attribute("x1",true).value=0;this.attribute("y1",true).value=0;this.attribute("x2",true).value=1;this.attribute("y2",true).value=0}var r=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x");var i=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y");var a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x");var o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");if(r==a&&i==o)return null;return t.createLinearGradient(r,i,a,o)}};P.Element.linearGradient.prototype=new P.Element.GradientBase;P.Element.radialGradient=function(t){this.base=P.Element.GradientBase;this.base(t);this.attributesToInherit.push("cx");this.attributesToInherit.push("cy");this.attributesToInherit.push("r");this.attributesToInherit.push("fx");this.attributesToInherit.push("fy");this.getGradient=function(t,e){var n=e.getBoundingBox();if(!this.attribute("cx").hasValue())this.attribute("cx",true).value="50%";if(!this.attribute("cy").hasValue())this.attribute("cy",true).value="50%";if(!this.attribute("r").hasValue())this.attribute("r",true).value="50%";var r=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x");var i=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y");var a=r;var o=i;if(this.attribute("fx").hasValue()){a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")}if(this.attribute("fy").hasValue()){o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y")}var s=this.gradientUnits()=="objectBoundingBox"?(n.width()+n.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return t.createRadialGradient(a,o,0,r,i,s)}};P.Element.radialGradient.prototype=new P.Element.GradientBase;P.Element.stop=function(t){this.base=P.Element.ElementBase;this.base(t);this.offset=this.attribute("offset").numValue();if(this.offset<0)this.offset=0;if(this.offset>1)this.offset=1;var e=this.style("stop-color",true);if(e.value=="")e.value="#000";if(this.style("stop-opacity").hasValue())e=e.addOpacity(this.style("stop-opacity"));this.color=e.value};P.Element.stop.prototype=new P.Element.ElementBase;P.Element.AnimateBase=function(t){this.base=P.Element.ElementBase;this.base(t);P.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var t=this.attribute("attributeType").value;var e=this.attribute("attributeName").value;if(t=="CSS"){return this.parent.style(e,true)}return this.parent.attribute(e,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(t){if(this.initialValue==null){this.initialValue=this.getProperty().value;this.initialUnits=this.getProperty().getUnits()}if(this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite"){this.duration=0}else if(this.attribute("fill").valueOrDefault("remove")=="freeze"&&!this.frozen){this.frozen=true;this.parent.animationFrozen=true;this.parent.animationFrozenValue=this.getProperty().value}else if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed){this.removed=true;this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue;return true}return false}this.duration=this.duration+t;var e=false;if(this.begin<this.duration){var n=this.calcValue();if(this.attribute("type").hasValue()){var r=this.attribute("type").value;n=r+"("+n+")"}this.getProperty().value=n;e=true}return e};this.from=this.attribute("from");this.to=this.attribute("to");this.values=this.attribute("values");if(this.values.hasValue())this.values.value=this.values.value.split(";");this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1);var n=Math.floor(e),r=Math.ceil(e);t.from=new P.Property("from",parseFloat(this.values.value[n]));t.to=new P.Property("to",parseFloat(this.values.value[r]));t.progress=(e-n)/(r-n)}else{t.from=this.from;t.to=this.to}return t}};P.Element.AnimateBase.prototype=new P.Element.ElementBase;P.Element.animate=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return e+this.initialUnits}};P.Element.animate.prototype=new P.Element.AnimateBase;P.Element.animateColor=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=new x5(t.from.value);var n=new x5(t.to.value);if(e.ok&&n.ok){var r=e.r+(n.r-e.r)*t.progress;var i=e.g+(n.g-e.g)*t.progress;var a=e.b+(n.b-e.b)*t.progress;return"rgb("+parseInt(r,10)+","+parseInt(i,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}};P.Element.animateColor.prototype=new P.Element.AnimateBase;P.Element.animateTransform=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=P.ToNumberArray(t.from.value);var n=P.ToNumberArray(t.to.value);var r="";for(var i=0;i<e.length;i++){r+=e[i]+(n[i]-e[i])*t.progress+" "}return r}};P.Element.animateTransform.prototype=new P.Element.animate;P.Element.font=function(t){this.base=P.Element.ElementBase;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.isRTL=false;this.isArabic=false;this.fontFace=null;this.missingGlyph=null;this.glyphs=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="font-face"){this.fontFace=n;if(n.style("font-family").hasValue()){P.Definitions[n.style("font-family").value]=this}}else if(n.type=="missing-glyph")this.missingGlyph=n;else if(n.type=="glyph"){if(n.arabicForm!=""){this.isRTL=true;this.isArabic=true;if(typeof this.glyphs[n.unicode]=="undefined")this.glyphs[n.unicode]=[];this.glyphs[n.unicode][n.arabicForm]=n}else{this.glyphs[n.unicode]=n}}}};P.Element.font.prototype=new P.Element.ElementBase;P.Element.fontface=function(t){this.base=P.Element.ElementBase;this.base(t);this.ascent=this.attribute("ascent").value;this.descent=this.attribute("descent").value;this.unitsPerEm=this.attribute("units-per-em").numValue()};P.Element.fontface.prototype=new P.Element.ElementBase;P.Element.missingglyph=function(t){this.base=P.Element.path;this.base(t);this.horizAdvX=0};P.Element.missingglyph.prototype=new P.Element.path;P.Element.glyph=function(t){this.base=P.Element.path;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.unicode=this.attribute("unicode").value;this.arabicForm=this.attribute("arabic-form").value};P.Element.glyph.prototype=new P.Element.path;P.Element.text=function(t){this.captureTextNodes=true;this.base=P.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();if(e==null)e=this.style("alignment-baseline").toTextBaseline();if(e!=null)t.textBaseline=e};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);return new P.BoundingBox(t,e-n,t+Math.floor(n*2/3)*this.children[0].getText().length,e)};this.renderChildren=function(t){this.x=this.attribute("x").toPixels("x");this.y=this.attribute("y").toPixels("y");if(this.attribute("dx").hasValue())this.x+=this.attribute("dx").toPixels("x");if(this.attribute("dy").hasValue())this.y+=this.attribute("dy").toPixels("y");this.x+=this.getAnchorDelta(t,this,0);for(var e=0;e<this.children.length;e++){this.renderChild(t,this,this,e)}};this.getAnchorDelta=function(t,e,n){var r=this.style("text-anchor").valueOrDefault("start");if(r!="start"){var i=0;for(var a=n;a<e.children.length;a++){var o=e.children[a];if(a>n&&o.attribute("x").hasValue())break;i+=o.measureTextRecursive(t)}return-1*(r=="end"?i:i/2)}return 0};this.renderChild=function(t,e,n,r){var i=n.children[r];if(i.attribute("x").hasValue()){i.x=i.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,r);if(i.attribute("dx").hasValue())i.x+=i.attribute("dx").toPixels("x")}else{if(i.attribute("dx").hasValue())e.x+=i.attribute("dx").toPixels("x");i.x=e.x}e.x=i.x+i.measureText(t);if(i.attribute("y").hasValue()){i.y=i.attribute("y").toPixels("y");if(i.attribute("dy").hasValue())i.y+=i.attribute("dy").toPixels("y")}else{if(i.attribute("dy").hasValue())e.y+=i.attribute("dy").toPixels("y");i.y=e.y}e.y=i.y;i.render(t);for(var r=0;r<i.children.length;r++){e.renderChild(t,e,i,r)}}};P.Element.text.prototype=new P.Element.RenderedElementBase;P.Element.TextElementBase=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.getGlyph=function(t,e,n){var r=e[n];var i=null;if(t.isArabic){var a="isolated";if((n==0||e[n-1]==" ")&&n<e.length-2&&e[n+1]!=" ")a="terminal";if(n>0&&e[n-1]!=" "&&n<e.length-2&&e[n+1]!=" ")a="medial";if(n>0&&e[n-1]!=" "&&(n==e.length-1||e[n+1]==" "))a="initial";if(typeof t.glyphs[r]!="undefined"){i=t.glyphs[r][a];if(i==null&&t.glyphs[r].type=="glyph")i=t.glyphs[r]}}else{i=t.glyphs[r]}if(i==null)i=t.missingGlyph;return i};this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);var r=this.parent.style("font-style").valueOrDefault(P.Font.Parse(P.ctx.font).fontStyle);var i=this.getText();if(e.isRTL)i=i.split("").reverse().join("");var a=P.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<i.length;o++){var s=this.getGlyph(e,i,o);var u=n/e.fontFace.unitsPerEm;t.translate(this.x,this.y);t.scale(u,-u);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/n;if(r=="italic")t.transform(1,0,.4,1,0,0);s.render(t);if(r=="italic")t.transform(1,0,-.4,1,0,0);t.lineWidth=l;t.scale(1/u,-1/u);t.translate(-this.x,-this.y);this.x+=n*(s.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){this.x+=a[o]}}return}if(t.fillStyle!="")t.fillText(P.compressSpaces(this.getText()),this.x,this.y);if(t.strokeStyle!="")t.strokeText(P.compressSpaces(this.getText()),this.x,this.y)};this.getText=function(){};this.measureTextRecursive=function(t){var e=this.measureText(t);for(var n=0;n<this.children.length;n++){e+=this.children[n].measureTextRecursive(t)}return e};this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);var r=0;var i=this.getText();if(e.isRTL)i=i.split("").reverse().join("");var a=P.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<i.length;o++){var s=this.getGlyph(e,i,o);r+=(s.horizAdvX||e.horizAdvX)*n/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){r+=a[o]}}return r}var u=P.compressSpaces(this.getText());if(!t.measureText)return u.length*10;t.save();this.setContext(t);var l=t.measureText(u).width;t.restore();return l}};P.Element.TextElementBase.prototype=new P.Element.RenderedElementBase;P.Element.tspan=function(t){this.captureTextNodes=true;this.base=P.Element.TextElementBase;this.base(t);this.text=P.compressSpaces(t.value||t.text||t.textContent||"");this.getText=function(){if(this.children.length>0){return""}return this.text}};P.Element.tspan.prototype=new P.Element.TextElementBase;P.Element.tref=function(t){this.base=P.Element.TextElementBase;this.base(t);this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(t!=null)return t.children[0].getText()}};P.Element.tref.prototype=new P.Element.TextElementBase;P.Element.a=function(t){this.base=P.Element.TextElementBase;this.base(t);this.hasText=t.childNodes.length>0;for(var e=0;e<t.childNodes.length;e++){if(t.childNodes[e].nodeType!=3)this.hasText=false}this.text=this.hasText?t.childNodes[0].value:"";this.getText=function(){return this.text};this.baseRenderChildren=this.renderChildren;this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new P.Property("fontSize",P.Font.Parse(P.ctx.font).fontSize);P.Mouse.checkBoundingBox(this,new P.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(this.children.length>0){var n=new P.Element.g;n.children=this.children;n.parent=this;n.render(t)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){P.ctx.canvas.style.cursor="pointer"}};P.Element.a.prototype=new P.Element.TextElementBase;P.Element.image=function(t){this.base=P.Element.RenderedElementBase;this.base(t);var e=this.getHrefAttribute().value;if(e==""){return}var a=e.match(/\.svg$/);P.Images.push(this);this.loaded=false;if(!a){this.img=document.createElement("img");if(P.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){P.log('ERROR: image "'+e+'" not found');n.loaded=true};this.img.src=e}else{this.img=P.ajax(e);this.loaded=true}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var r=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");if(r==0||i==0)return;t.save();if(a){t.drawSvg(this.img,e,n,r,i)}else{t.translate(e,n);P.AspectRatio(t,this.attribute("preserveAspectRatio").value,r,this.img.width,i,this.img.height,0,0);t.drawImage(this.img,0,0)}t.restore()};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");return new P.BoundingBox(t,e,t+n,e+r)}};P.Element.image.prototype=new P.Element.RenderedElementBase;P.Element.g=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.getBoundingBox=function(){var t=new P.BoundingBox;for(var e=0;e<this.children.length;e++){t.addBoundingBox(this.children[e].getBoundingBox())}return t}};P.Element.g.prototype=new P.Element.RenderedElementBase;P.Element.symbol=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.render=function(t){}};P.Element.symbol.prototype=new P.Element.RenderedElementBase;P.Element.style=function(t){this.base=P.Element.ElementBase;this.base(t);var e="";for(var n=0;n<t.childNodes.length;n++){e+=t.childNodes[n].data}e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");e=P.compressSpaces(e);var r=e.split("}");for(var n=0;n<r.length;n++){if(P.trim(r[n])!=""){var i=r[n].split("{");var a=i[0].split(",");var o=i[1].split(";");for(var s=0;s<a.length;s++){var u=P.trim(a[s]);if(u!=""){var l=P.Styles[u]||{};for(var c=0;c<o.length;c++){var f=o[c].indexOf(":");var h=o[c].substr(0,f);var d=o[c].substr(f+1,o[c].length-f);if(h!=null&&d!=null){l[P.trim(h)]=new P.Property(P.trim(h),P.trim(d))}}P.Styles[u]=l;P.StylesSpecificity[u]=fA(u);if(u=="@font-face"){var g=l["font-family"].value.replace(/"/g,"");var v=l["src"].value.split(",");for(var p=0;p<v.length;p++){if(v[p].indexOf('format("svg")')>0){var y=v[p].indexOf("url");var m=v[p].indexOf(")",y);var _=v[p].substr(y+5,m-y-6);var b=P.parseXml(P.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;x<w.length;x++){var k=P.CreateElement(w[x]);P.Definitions[g]=k}}}}}}}}};P.Element.style.prototype=new P.Element.ElementBase;P.Element.use=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);if(this.attribute("x").hasValue())t.translate(this.attribute("x").toPixels("x"),0);if(this.attribute("y").hasValue())t.translate(0,this.attribute("y").toPixels("y"))};var r=this.getHrefAttribute().getDefinition();this.path=function(t){if(r!=null)r.path(t)};this.getBoundingBox=function(){if(r!=null)return r.getBoundingBox()};this.renderChildren=function(t){if(r!=null){var e=r;if(r.type=="symbol"){e=new P.Element.svg;e.type="svg";e.attributes["viewBox"]=new P.Property("viewBox",r.attribute("viewBox").value);e.attributes["preserveAspectRatio"]=new P.Property("preserveAspectRatio",r.attribute("preserveAspectRatio").value);e.attributes["overflow"]=new P.Property("overflow",r.attribute("overflow").value);e.children=r.children}if(e.type=="svg"){if(this.attribute("width").hasValue())e.attributes["width"]=new P.Property("width",this.attribute("width").value);if(this.attribute("height").hasValue())e.attributes["height"]=new P.Property("height",this.attribute("height").value)}var n=e.parent;e.parent=null;e.render(t);e.parent=n}}};P.Element.use.prototype=new P.Element.RenderedElementBase;P.Element.mask=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=this.attribute("x").toPixels("x");var r=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(i==0&&a==0){var o=new P.BoundingBox;for(var s=0;s<this.children.length;s++){o.addBoundingBox(this.children[s].getBoundingBox())}var n=Math.floor(o.x1);var r=Math.floor(o.y1);var i=Math.floor(o.width());var a=Math.floor(o.height())}var u=e.attribute("mask").value;e.attribute("mask").value="";var l=document.createElement("canvas");l.width=n+i;l.height=r+a;var c=l.getContext("2d");this.renderChildren(c);var f=document.createElement("canvas");f.width=n+i;f.height=r+a;var h=f.getContext("2d");e.render(h);h.globalCompositeOperation="destination-in";h.fillStyle=c.createPattern(l,"no-repeat");h.fillRect(0,0,n+i,r+a);t.fillStyle=h.createPattern(f,"no-repeat");t.fillRect(0,0,n+i,r+a);e.attribute("mask").value=u};this.render=function(t){}};P.Element.mask.prototype=new P.Element.ElementBase;P.Element.clipPath=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t){var e=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var n=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){};e.call(t);for(var r=0;r<this.children.length;r++){var i=this.children[r];if(typeof i.path!="undefined"){var a=null;if(i.style("transform",false,true).hasValue()){a=new P.Transform(i.style("transform",false,true).value);a.apply(t)}i.path(t);CanvasRenderingContext2D.prototype.closePath=n;if(a){a.unapply(t)}}}n.call(t);t.clip();CanvasRenderingContext2D.prototype.beginPath=e;CanvasRenderingContext2D.prototype.closePath=n};this.render=function(t){}};P.Element.clipPath.prototype=new P.Element.ElementBase;P.Element.filter=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=e.getBoundingBox();var r=Math.floor(n.x1);var i=Math.floor(n.y1);var a=Math.floor(n.width());var o=Math.floor(n.height());var s=e.style("filter").value;e.style("filter").value="";var u=0,l=0;for(var c=0;c<this.children.length;c++){var f=this.children[c].extraFilterDistance||0;u=Math.max(u,f);l=Math.max(l,f)}var h=document.createElement("canvas");h.width=a+2*u;h.height=o+2*l;var d=h.getContext("2d");d.translate(-r+u,-i+l);e.render(d);for(var c=0;c<this.children.length;c++){if(typeof this.children[c].apply=="function"){this.children[c].apply(d,0,0,a+2*u,o+2*l)}}t.drawImage(h,0,0,a+2*u,o+2*l,r-u,i-l,a+2*u,o+2*l);e.style("filter",true).value=s};this.render=function(t){}};P.Element.filter.prototype=new P.Element.ElementBase;P.Element.feMorphology=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e,n,r,i){}};P.Element.feMorphology.prototype=new P.Element.ElementBase;P.Element.feComposite=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e,n,r,i){}};P.Element.feComposite.prototype=new P.Element.ElementBase;P.Element.feColorMatrix=function(t){this.base=P.Element.ElementBase;this.base(t);var r=P.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=r[0];r=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var i=r[0]*Math.PI/180;var n=function t(e,n,r){return e+Math.cos(i)*n+Math.sin(i)*r};r=[n(.213,.787,-.213),n(.715,-.715,-.715),n(.072,-.072,.928),0,0,n(.213,-.213,.143),n(.715,.285,.14),n(.072,-.072,-.283),0,0,n(.213,-.213,-.787),n(.715,-.715,.715),n(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}function c(t,e,n,r,i,a){return t[n*r*4+e*4+a]}function f(t,e,n,r,i,a,o){t[n*r*4+e*4+a]=o}function h(t,e){var n=r[t];return n*(n<0?e-255:e)}this.apply=function(t,e,n,r,i){var a=t.getImageData(0,0,r,i);for(var n=0;n<i;n++){for(var e=0;e<r;e++){var o=c(a.data,e,n,r,i,0);var s=c(a.data,e,n,r,i,1);var u=c(a.data,e,n,r,i,2);var l=c(a.data,e,n,r,i,3);f(a.data,e,n,r,i,0,h(0,o)+h(1,s)+h(2,u)+h(3,l)+h(4,1));f(a.data,e,n,r,i,1,h(5,o)+h(6,s)+h(7,u)+h(8,l)+h(9,1));f(a.data,e,n,r,i,2,h(10,o)+h(11,s)+h(12,u)+h(13,l)+h(14,1));f(a.data,e,n,r,i,3,h(15,o)+h(16,s)+h(17,u)+h(18,l)+h(19,1))}}t.clearRect(0,0,r,i);t.putImageData(a,0,0)}};P.Element.feColorMatrix.prototype=new P.Element.ElementBase;P.Element.feGaussianBlur=function(t){this.base=P.Element.ElementBase;this.base(t);this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue());this.extraFilterDistance=this.blurRadius;this.apply=function(t,e,n,r,i){if(typeof A5.canvasRGBA=="undefined"){P.log("ERROR: StackBlur.js must be included for blur to work");return}t.canvas.id=P.UniqueId();t.canvas.style.display="none";document.body.appendChild(t.canvas);A5.canvasRGBA(t.canvas.id,e,n,r,i,this.blurRadius);document.body.removeChild(t.canvas)}};P.Element.feGaussianBlur.prototype=new P.Element.ElementBase;P.Element.title=function(t){};P.Element.title.prototype=new P.Element.ElementBase;P.Element.desc=function(t){};P.Element.desc.prototype=new P.Element.ElementBase;P.Element.MISSING=function(t){P.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")};P.Element.MISSING.prototype=new P.Element.ElementBase;P.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var n=null;if(typeof P.Element[e]!="undefined"){n=new P.Element[e](t)}else{n=new P.Element.MISSING(t)}n.type=t.nodeName;return n};P.load=function(t,e){P.loadXml(t,P.ajax(e))};P.loadXml=function(t,e){P.loadXmlDoc(t,P.parseXml(e))};P.loadXmlDoc=function(o,s){P.init(o);var n=function t(e){var n=o.canvas;while(n){e.x-=n.offsetLeft;e.y-=n.offsetTop;n=n.offsetParent}if(window.scrollX)e.x+=window.scrollX;if(window.scrollY)e.y+=window.scrollY;return e};if(P.opts["ignoreMouse"]!=true){o.canvas.onclick=function(t){var e=n(new P.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));P.Mouse.onclick(e.x,e.y)};o.canvas.onmousemove=function(t){var e=n(new P.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));P.Mouse.onmousemove(e.x,e.y)}}var u=P.CreateElement(s.documentElement);u.root=true;u.addStylesFromStyleDefinition();var l=true;var r=function t(){P.ViewPort.Clear();if(o.canvas.parentNode)P.ViewPort.SetCurrent(o.canvas.parentNode.clientWidth,o.canvas.parentNode.clientHeight);if(P.opts["ignoreDimensions"]!=true){if(u.style("width").hasValue()){o.canvas.width=u.style("width").toPixels("x");o.canvas.style.width=o.canvas.width+"px"}if(u.style("height").hasValue()){o.canvas.height=u.style("height").toPixels("y");o.canvas.style.height=o.canvas.height+"px"}}var e=o.canvas.clientWidth||o.canvas.width;var n=o.canvas.clientHeight||o.canvas.height;if(P.opts["ignoreDimensions"]==true&&u.style("width").hasValue()&&u.style("height").hasValue()){e=u.style("width").toPixels("x");n=u.style("height").toPixels("y")}P.ViewPort.SetCurrent(e,n);if(P.opts["offsetX"]!=null)u.attribute("x",true).value=P.opts["offsetX"];if(P.opts["offsetY"]!=null)u.attribute("y",true).value=P.opts["offsetY"];if(P.opts["scaleWidth"]!=null||P.opts["scaleHeight"]!=null){var r=null,i=null,a=P.ToNumberArray(u.attribute("viewBox").value);if(P.opts["scaleWidth"]!=null){if(u.attribute("width").hasValue())r=u.attribute("width").toPixels("x")/P.opts["scaleWidth"];else if(!isNaN(a[2]))r=a[2]/P.opts["scaleWidth"]}if(P.opts["scaleHeight"]!=null){if(u.attribute("height").hasValue())i=u.attribute("height").toPixels("y")/P.opts["scaleHeight"];else if(!isNaN(a[3]))i=a[3]/P.opts["scaleHeight"]}if(r==null){r=i}if(i==null){i=r}u.attribute("width",true).value=P.opts["scaleWidth"];u.attribute("height",true).value=P.opts["scaleHeight"];u.style("transform",true,true).value+=" scale("+1/r+","+1/i+")"}if(P.opts["ignoreClear"]!=true){o.clearRect(0,0,e,n)}u.render(o);if(l){l=false;if(typeof P.opts["renderCallback"]=="function")P.opts["renderCallback"](s)}};var i=true;if(P.ImagesLoaded()){i=false;r()}P.intervalID=setInterval(function(){var t=false;if(i&&P.ImagesLoaded()){i=false;t=true}if(P.opts["ignoreMouse"]!=true){t=t|P.Mouse.hasEvents()}if(P.opts["ignoreAnimation"]!=true){for(var e=0;e<P.Animations.length;e++){t=t|P.Animations[e].update(1e3/P.FRAMERATE)}}if(typeof P.opts["forceRedraw"]=="function"){if(P.opts["forceRedraw"]()==true)t=true}if(t){r();P.Mouse.runEvents()}},1e3/P.FRAMERATE)};P.stop=function(){if(P.intervalID){clearInterval(P.intervalID)}};P.Mouse=new function(){this.events=[];this.hasEvents=function(){return this.events.length!=0};this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function t(e){if(e.onclick)e.onclick()}})};this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function t(e){if(e.onmousemove)e.onmousemove()}})};this.eventElements=[];this.checkPath=function(t,e){for(var n=0;n<this.events.length;n++){var r=this.events[n];if(e.isPointInPath&&e.isPointInPath(r.x,r.y))this.eventElements[n]=t}};this.checkBoundingBox=function(t,e){for(var n=0;n<this.events.length;n++){var r=this.events[n];if(e.isPointInBox(r.x,r.y))this.eventElements[n]=t}};this.runEvents=function(){P.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++){var e=this.events[t];var n=this.eventElements[t];while(n){e.run(n);n=n.parent}}this.events=[];this.eventElements=[]}};return P}var dA=lA;function gA(t){if(!t||!t.size())return;var e=t.attr("stroke-width");t.attr("stroke-width",!e?0:e);if(!e)t.attr("stroke","transparent");var n=t.attr("fill");if(!n&&t.node().tagName==="text")t.attr("fill","#000");var r=["none","transparent"].includes(t.attr("fill"));var i=t.attr("fill-opacity");t.attr("fill-opacity",r?0:i);t.attr("aria-label",null);var a=t.attr("x");if(a==="NaN")t.attr("x","0px");var o=t.attr("y");if(o==="NaN")t.attr("y","0px");var s=t.attr("xlink:href");if(s&&typeof window!=="undefined"&&s.charAt(0)==="/"){t.attr("xlink:href","".concat(window.location.origin).concat(s))}}function vA(t){t.selectAll("*").each(function(){var t=this.tagName.toLowerCase();if(!["option"].includes(t)){var e=Is(this);var n=e.style("letter-spacing");e.style("letter-spacing",n==="normal"?"0.1px":n)}})}function pA(t,e){return wA(t)||bA(t,e)||mA(t,e)||yA()}function yA(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mA(t,e){if(!t)return;if(typeof t==="string")return _A(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _A(t,e)}function _A(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function bA(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function wA(t){if(Array.isArray(t))return t}var xA={background:false,callback:function t(){},exclude:[],padding:0,scale:1};var kA={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function SA(t){var e=Is(t).attr("transform");var n=1,r=0,i=0;if(e){n=e.match(/scale\(([^a-z]+)\)/i);if(n)n=parseFloat(n[1]);else n=1;var a=e.match(/translate\(([^a-z]+)\)/i);if(a){var o=a[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map(function(t){return parseFloat(t)*n});var s=pA(o,2);r=s[0];i=s[1]}}return[n,r,i]}function CA(t,K){if(!t)return;if(!(t instanceof Array))t=[t];K=Object.assign({},xA,K);var c=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);var Y=window?window.devicePixelRatio||1:1;var e=t[0];if(e.constructor===Object)e=e.element;var X=K.height||parseFloat(Is(e).style("height"))+parseFloat(Is(e).style("padding-top"))+parseFloat(Is(e).style("padding-bottom")),Z=K.width||parseFloat(Is(e).style("width"))+parseFloat(Is(e).style("padding-left"))+parseFloat(Is(e).style("padding-right"));var $,J,Q=0,tt=0;if(e.getBoundingClientRect){var n=e.getBoundingClientRect();Q=n.left;tt=n.top}else{Q=e.offsetLeft;tt=e.offsetTop}var f=K.canvas||document.createElement("canvas");f.width=(Z+K.padding*2)*K.scale*Y;f.height=(X+K.padding*2)*K.scale*Y;f.style.width=(Z+K.padding*2)*K.scale;f.style.height=(X+K.padding*2)*K.scale;var h=f.getContext("2d");h.scale(K.scale*Y,K.scale*Y);h.clearRect(0,0,f.width/Y,f.height/Y);if(K.background){h.beginPath();h.rect(0,0,f.width/Y,f.height/Y);h.fillStyle=K.background;h.fill()}var et=[];function r(t){var e=(this.tagName||"").toLowerCase();if(K.exclude.includes(this)||e==="foreignobject")return;var n=Object.assign({},t);if(this.tagName){var r=Is(this).attr("opacity")||Is(this).style("opacity");var i=Is(this).style("display");var a=Is(this).style("visibility");if(i==="none"||a==="hidden"||r&&parseFloat(r)===0)return;var o=this.tagName.toLowerCase();if(o.length&&["defs","title","desc"].includes(o))return;if(o==="svg"){if(!n.svg){var s=this.getBoundingClientRect(),u=s.left,l=s.top;n.x+=u-Q;n.y+=l-tt;n.svg=true}var c=Is(this).attr("x");c=c?parseFloat(c)*n.scale:0;n.x+=c;var f=Is(this).attr("y");f=f?parseFloat(f)*n.scale:0;n.y+=f;n.clip={height:parseFloat(Is(this).attr("height")||Is(this).style("height")),width:parseFloat(Is(this).attr("width")||Is(this).style("width")),x:c,y:f}}else{var h=Is(this).attr("x");if(h)n.x+=parseFloat(h)*n.scale;var d=Is(this).attr("y");if(d)n.y+=parseFloat(d)*n.scale}}if(!e.length){var g=(this.wholeText||"").replace(/\s/g,"");if(g.length){var v=this.nodeValue.replace(/^\s*/,"").replace(/^\n/,"").replace(/^\s*/,"").replace(/\n$/,"").replace(/\s*$/,"").replace(/\n$/,"");et.push({type:"text",style:this.parentNode,value:v,x:n.x,y:n.y})}}else if(e==="text"){var p=this.cloneNode(true);Is(p).call(gA);et.push(Object.assign({},n,{type:"svg",value:p}))}else if(["image","img"].includes(e)){var y=Is(this).attr("href")||Is(this).attr("xlink:href");if(y.length){var m=parseFloat(Is(this).attr("height"))*n.scale,_=parseFloat(Is(this).attr("width"))*n.scale;var b={clip:n.clip,height:m,loaded:false,type:"img",width:_,x:n.x,y:n.y};et.push(b);var w=new Image;w.crossOrigin="Anonymous";w.onload=function(){var t=document.createElement("canvas");var e=t.getContext("2d");t.height=m*Y;t.width=_*Y;e.drawImage(this,0,0,_*Y,m*Y);var n=document.createElement("img");n.src=t.toDataURL("image/png");b.value=n;b.loaded=true};w.onerror=function(){b.loaded=true;b.value=false};w.src=y}}else if(!["svg","g","text"].includes(e)&&!Is(this).selectAll("svg").size()){var x=K.scale*Y;var k={height:Math.floor(X+K.padding*2+tt),loaded:false,type:"html",width:Math.floor(Z+K.padding*2+Q),x:Math.floor($-Q),y:Math.floor(J-tt)};var S=document.createElement("canvas");S.width=k.width*x;S.height=k.height*x;S.style.width="".concat(k.width*x,"px");S.style.height="".concat(k.height*x,"px");var C=S.getContext("2d");C.scale(x,x);et.push(k);vA(Is(this));w5(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(t){k.value=t;k.loaded=true})}else if(e!=="svg"&&this.childNodes.length>0&&!Is(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);Is(E).selectAll("*").each(function(){Is(this).call(gA);if(Is(this).attr("opacity")==="0")this.parentNode.removeChild(this)});et.push(Object.assign({},n,{type:"svg",value:E,tag:e}))}else if(this.childNodes.length>0){var A=SA(this),M=pA(A,3),R=M[0],T=M[1],O=M[2];n.scale*=R;n.x+=T;n.y+=O;nt(this,n)}else{var P=this.cloneNode(true);Is(P).selectAll("*").each(function(){if(Is(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(e==="line"){Is(P).attr("x1",parseFloat(Is(P).attr("x1"))+n.x);Is(P).attr("x2",parseFloat(Is(P).attr("x2"))+n.x);Is(P).attr("y1",parseFloat(Is(P).attr("y1"))+n.y);Is(P).attr("y2",parseFloat(Is(P).attr("y2"))+n.y)}else if(e==="path"){var B=SA(P),D=pA(B,3),N=D[0],z=D[1],F=D[2];if(Is(P).attr("transform"))Is(P).attr("transform","scale(".concat(N,")translate(").concat(z+n.x,",").concat(F+n.y,")"))}Is(P).call(gA);var j=Is(P).attr("fill");var I=j&&j.indexOf("url")===0;et.push(Object.assign({},n,{type:"svg",value:P,tag:e}));if(I){var L=Is(j.slice(4,-1)).node().cloneNode(true);var H=(L.tagName||"").toLowerCase();if(H==="pattern"){var U=SA(P),G=pA(U,3),V=G[0],W=G[1],q=G[2];n.scale*=V;n.x+=W;n.y+=q;nt(L,n)}}}}function nt(t,e){Us(t.childNodes).each(function(){r.bind(this)(e)})}for(var i=0;i<t.length;i++){var a=t[i],o={scale:1,x:0,y:0,svg:false};if(a.constructor===Object){o=Object.assign(o,a);a=a.element}$=o.x;J=o.y;r.bind(a)(o)}function s(){var t=true;for(var e=0;e<et.length;e++){if(et[e].loaded===false){t=false;break}}if(t)u();else setTimeout(s,500)}s();function u(){for(var t=0;t<et.length;t++){var e=et[t];var n=e.clip||{height:X,width:Z,x:0,y:0};switch(e.type){case"img":if(e.value){h.save();h.beginPath();h.translate(K.padding+n.x,K.padding+n.y);h.rect(0,0,n.width,n.height);h.clip();h.drawImage(e.value,e.x+n.x,e.y+n.y,e.width,e.height);h.restore()}break;case"html":h.save();h.beginPath();h.translate(K.padding,K.padding);h.drawImage(e.value,e.x,e.y,e.width,e.height);h.restore();break;case"text":var r=Is(e.style);var i=e.value.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'");var a=r.style("color"),o=r.style("font-size");var s=r.style("font-family").split(",")[0];if(s.indexOf("'")!==0)s="'".concat(s,"'");var u="<text stroke='none' dy='".concat(o,"' fill='").concat(a,"' font-family=").concat(s," font-size='").concat(o,"'>").concat(i,"</text>");h.save();h.translate(K.padding,K.padding);dA(f,u,Object.assign({},kA,{offsetX:e.x,offsetY:e.y}));h.restore();break;case"svg":var l=c?(new XMLSerializer).serializeToString(e.value):e.value.outerHTML;h.save();h.translate(K.padding+n.x+e.x,K.padding+n.y+e.y);h.rect(0,0,n.width,n.height);h.clip();dA(f,l,Object.assign({},kA,{offsetX:e.x+n.x,offsetY:e.y+n.y}));h.restore();break;default:console.warn("uncaught",e);break}}K.callback(f)}}(function(t){var h=t.Uint8Array,e=t.HTMLCanvasElement,n=e&&e.prototype,u=/\s*;\s*base64\s*(?:;|$)/i,l="toDataURL",d,c=function t(e){var n=e.length,r=new h(n/4*3|0),i=0,a=0,o=[0,0],s=0,u=0,l,c,f;while(n--){c=e.charCodeAt(i++);l=d[c-43];if(l!==255&&l!==f){o[1]=o[0];o[0]=c;u=u<<6|l;s++;if(s===4){r[a++]=u>>>16;if(o[1]!==61){r[a++]=u>>>8}if(o[0]!==61){r[a++]=u}s=0}}}return r};if(h){d=new h([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])}if(e&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(t,e){if(!e){e="image/png"}if(this.mozGetAsFile){t(this.mozGetAsFile("canvas",e));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e)){t(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),r=this[l].apply(this,n),i=r.indexOf(","),a=r.substring(i+1),o=u.test(r.substring(0,i)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=a;s.size=a.length}else if(h){if(o){s=new Blob([c(a)],{type:e})}else{s=new Blob([decodeURIComponent(a)],{type:e})}}t(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){l="toDataURLHD";var t=this.toBlob();l="toDataURL";return t}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||m5.content||m5);var EA=_5(function(t){var e=e||function(c){if(typeof c==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=c.document,f=function t(){return c.URL||c.webkitURL||c},h=t.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in h,g=function t(e){var n=new MouseEvent("click");e.dispatchEvent(n)},v=/constructor/i.test(c.HTMLElement)||c.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent),o=function t(e){(c.setImmediate||c.setTimeout)(function(){throw e},0)},y="application/octet-stream",r=1e3*40,m=function t(e){var n=function t(){if(typeof e==="string"){f().revokeObjectURL(e)}else{e.remove()}};setTimeout(n,r)},_=function t(e,n,r){n=[].concat(n);var i=n.length;while(i--){var a=e["on"+n[i]];if(typeof a==="function"){try{a.call(e,r||e)}catch(t){o(t)}}}},b=function t(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e},i=function t(r,e,n){if(!n){r=b(r)}var i=this,a=r.type,o=a===y,s,u=function t(){_(i,"writestart progress write writeend".split(" "))},l=function t(){if((p||o&&v)&&c.FileReader){var n=new FileReader;n.onloadend=function(){var t=p?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var e=c.open(t,"_blank");if(!e)c.location.href=t;t=undefined;i.readyState=i.DONE;u()};n.readAsDataURL(r);i.readyState=i.INIT;return}if(!s){s=f().createObjectURL(r)}if(o){c.location.href=s}else{var e=c.open(s,"_blank");if(!e){c.location.href=s}}i.readyState=i.DONE;u();m(s)};i.readyState=i.INIT;if(d){s=f().createObjectURL(r);setTimeout(function(){h.href=s;h.download=e;g(h);u();m(s);i.readyState=i.DONE});return}l()},e=i.prototype,n=function t(e,n,r){return new i(e,n||e.name||"download",r)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(t,e,n){e=e||t.name||"download";if(!n){t=b(t)}return navigator.msSaveOrOpenBlob(t,e)}}e.abort=function(){};e.readyState=e.INIT=0;e.WRITING=1;e.DONE=2;e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||m5.content);if(t.exports){t.exports.saveAs=e}});var AA={filename:"download",type:"png"};function MA(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!t)return;n=Object.assign({},AA,n);var e=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(t instanceof Array)&&n.type==="svg"){var i=t.cloneNode(true);Is(i).call(gA);Is(i).selectAll("*").each(function(){Is(this).call(gA)});var a=e?(new XMLSerializer).serializeToString(i):i.outerHTML;EA.saveAs(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}else{CA(t,Object.assign({},r,{callback:function t(e){if(r.callback)r.callback(e);if(["jpg","png"].includes(n.type)){e.toBlob(function(t){return EA.saveAs(t,"".concat(n.filename,".").concat(n.type))})}}}))}}function RA(t){t.preventDefault();t.stopImmediatePropagation()}function TA(t){var e=t.document.documentElement,n=Is(t).on("dragstart.drag",RA,true);if("onselectstart"in e){n.on("selectstart.drag",RA,true)}else{e.__noselect=e.style.MozUserSelect;e.style.MozUserSelect="none"}}function OA(t,e){var n=t.document.documentElement,r=Is(t).on("dragstart.drag",null);if(e){r.on("click.drag",RA,true);setTimeout(function(){r.on("click.drag",null)},0)}if("onselectstart"in n){r.on("selectstart.drag",null)}else{n.style.MozUserSelect=n.__noselect;delete n.__noselect}}var PA=function t(e){return function(){return e}};function BA(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:true,configurable:true},sourceEvent:{value:n,enumerable:true,configurable:true},target:{value:r,enumerable:true,configurable:true},transform:{value:i,enumerable:true,configurable:true},_:{value:a}})}function DA(t,e,n){this.k=t;this.x=e;this.y=n}DA.prototype={constructor:DA,scale:function t(e){return e===1?this:new DA(this.k*e,this.x,this.y)},translate:function t(e,n){return e===0&n===0?this:new DA(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function t(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function t(e){return e*this.k+this.x},applyY:function t(e){return e*this.k+this.y},invert:function t(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function t(e){return(e-this.x)/this.k},invertY:function t(e){return(e-this.y)/this.k},rescaleX:function t(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function t(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function t(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var NA=new DA(1,0,0);zA.prototype=DA.prototype;function zA(t){while(!t.__zoom){if(!(t=t.parentNode))return NA}return t.__zoom}function FA(t){t.stopImmediatePropagation()}function jA(t){t.preventDefault();t.stopImmediatePropagation()}function IA(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function LA(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function HA(){return this.__zoom||NA}function UA(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function GA(){return navigator.maxTouchPoints||"ontouchstart"in this}function VA(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function WA(){var h=IA,d=LA,y=VA,l=UA,e=GA,c=[0,Infinity],m=[[-Infinity,-Infinity],[Infinity,Infinity]],f=250,g=dr,r=Vs("start","zoom","end"),v,p,_,b=500,w=150,x=0,k=10;function S(t){t.property("__zoom",HA).on("wheel.zoom",n).on("mousedown.zoom",a).on("dblclick.zoom",o).filter(e).on("touchstart.zoom",s).on("touchmove.zoom",u).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",HA);if(t!==i){M(t,e,n,r)}else{i.interrupt().each(function(){R(this,arguments).event(r).start().zoom(null,typeof e==="function"?e.apply(this,arguments):e).end()})}};S.scaleBy=function(t,n,e,r){S.scaleTo(t,function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e},e,r)};S.scaleTo=function(t,a,o,e){S.transform(t,function(){var t=d.apply(this,arguments),e=this.__zoom,n=o==null?A(t):typeof o==="function"?o.apply(this,arguments):o,r=e.invert(n),i=typeof a==="function"?a.apply(this,arguments):a;return y(E(C(e,i),n,r),t,m)},o,e)};S.translateBy=function(t,e,n,r){S.transform(t,function(){return y(this.__zoom.translate(typeof e==="function"?e.apply(this,arguments):e,typeof n==="function"?n.apply(this,arguments):n),d.apply(this,arguments),m)},null,r)};S.translateTo=function(t,r,i,a,e){S.transform(t,function(){var t=d.apply(this,arguments),e=this.__zoom,n=a==null?A(t):typeof a==="function"?a.apply(this,arguments):a;return y(NA.translate(n[0],n[1]).scale(e.k).translate(typeof r==="function"?-r.apply(this,arguments):-r,typeof i==="function"?-i.apply(this,arguments):-i),t,m)},a,e)};function C(t,e){e=Math.max(c[0],Math.min(c[1],e));return e===t.k?t:new DA(e,t.x,t.y)}function E(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new DA(t.k,r,i)}function A(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function M(t,l,c,f){t.on("start.zoom",function(){R(this,arguments).event(f).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(f).end()}).tween("zoom",function(){var t=this,e=arguments,r=R(t,e).event(f),n=d.apply(t,e),i=c==null?A(n):typeof c==="function"?c.apply(t,e):c,a=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=t.__zoom,s=typeof l==="function"?l.apply(t,e):l,u=g(o.invert(i).concat(a/o.k),s.invert(i).concat(a/s.k));return function(t){if(t===1)t=s;else{var e=u(t),n=a/e[2];t=new DA(n,i[0]-e[0]*n,i[1]-e[1]*n)}r.zoom(null,t)}})}function R(t,e,n){return!n&&t.__zooming||new i(t,e)}function i(t,e){this.that=t;this.args=e;this.active=0;this.sourceEvent=null;this.extent=d.apply(t,e);this.taps=0}i.prototype={event:function(e){function t(t){return e.apply(this,arguments)}t.toString=function(){return e.toString()};return t}(function(t){if(t)this.sourceEvent=t;return this}),start:function t(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function t(e,n){if(this.mouse&&e!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&e!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&e!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function t(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function t(e){var n=Is(this.that).datum();r.call(e,this.that,new BA(e,{sourceEvent:this.sourceEvent,target:S,type:e,transform:this.that.__zoom,dispatch:r}),n)}};function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=R(this,n).event(t),a=this.__zoom,o=Math.max(c[0],Math.min(c[1],a.k*Math.pow(2,l.apply(this,arguments)))),s=Hs(t);if(i.wheel){if(i.mouse[0][0]!==s[0]||i.mouse[0][1]!==s[1]){i.mouse[1]=a.invert(i.mouse[0]=s)}clearTimeout(i.wheel)}else if(a.k===o)return;else{i.mouse=[s,a.invert(s)];Tu(this);i.start()}jA(t);i.wheel=setTimeout(u,w);i.zoom("mouse",y(E(C(a,o),i.mouse[0],i.mouse[1]),i.extent,m));function u(){i.wheel=null;i.end()}}function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(_||!h.apply(this,arguments))return;var i=R(this,n,true).event(t),a=Is(t.view).on("mousemove.zoom",c,true).on("mouseup.zoom",f,true),o=Hs(t,s),s=t.currentTarget,u=t.clientX,l=t.clientY;TA(t.view);FA(t);i.mouse=[o,this.__zoom.invert(o)];Tu(this);i.start();function c(t){jA(t);if(!i.moved){var e=t.clientX-u,n=t.clientY-l;i.moved=e*e+n*n>x}i.event(t).zoom("mouse",y(E(i.that.__zoom,i.mouse[0]=Hs(t,s),i.mouse[1]),i.extent,m))}function f(t){a.on("mousemove.zoom mouseup.zoom",null);OA(t.view,i.moved);jA(t);i.event(t).end()}}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=this.__zoom,a=Hs(t.changedTouches?t.changedTouches[0]:t,this),o=i.invert(a),s=i.k*(t.shiftKey?.5:2),u=y(E(C(i,s),a,o),d.apply(this,n),m);jA(t);if(f>0)Is(this).transition().duration(f).call(M,u,a,t);else Is(this).call(S.transform,u,a,t)}function s(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=t.touches,a=i.length,o=R(this,n,t.changedTouches.length===a).event(t),s,u,l,c;FA(t);for(u=0;u<a;++u){l=i[u],c=Hs(l,this);c=[c,this.__zoom.invert(c),l.identifier];if(!o.touch0)o.touch0=c,s=true,o.taps=1+!!v;else if(!o.touch1&&o.touch0[2]!==c[2])o.touch1=c,o.taps=0}if(v)v=clearTimeout(v);if(s){if(o.taps<2)p=c[0],v=setTimeout(function(){v=null},b);Tu(this);o.start()}}function u(t){if(!this.__zooming)return;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}var i=R(this,n).event(t),a=t.changedTouches,o=a.length,s,u,l,c;jA(t);for(s=0;s<o;++s){u=a[s],l=Hs(u,this);if(i.touch0&&i.touch0[2]===u.identifier)i.touch0[0]=l;else if(i.touch1&&i.touch1[2]===u.identifier)i.touch1[0]=l}u=i.that.__zoom;if(i.touch1){var f=i.touch0[0],h=i.touch0[1],d=i.touch1[0],g=i.touch1[1],v=(v=d[0]-f[0])*v+(v=d[1]-f[1])*v,p=(p=g[0]-h[0])*p+(p=g[1]-h[1])*p;u=C(u,Math.sqrt(v/p));l=[(f[0]+d[0])/2,(f[1]+d[1])/2];c=[(h[0]+g[0])/2,(h[1]+g[1])/2]}else if(i.touch0)l=i.touch0[0],c=i.touch0[1];else return;i.zoom("touch",y(E(u,l,c),i.extent,m))}function T(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!this.__zooming)return;var i=R(this,n).event(t),a=t.changedTouches,o=a.length,s,u;FA(t);if(_)clearTimeout(_);_=setTimeout(function(){_=null},b);for(s=0;s<o;++s){u=a[s];if(i.touch0&&i.touch0[2]===u.identifier)delete i.touch0;else if(i.touch1&&i.touch1[2]===u.identifier)delete i.touch1}if(i.touch1&&!i.touch0)i.touch0=i.touch1,delete i.touch1;if(i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else{i.end();if(i.taps===2){u=Hs(u,this);if(Math.hypot(p[0]-u[0],p[1]-u[1])<k){var l=Is(this).on("dblclick.zoom");if(l)l.apply(this,arguments)}}}}S.wheelDelta=function(t){return arguments.length?(l=typeof t==="function"?t:PA(+t),S):l};S.filter=function(t){return arguments.length?(h=typeof t==="function"?t:PA(!!t),S):h};S.touchable=function(t){return arguments.length?(e=typeof t==="function"?t:PA(!!t),S):e};S.extent=function(t){return arguments.length?(d=typeof t==="function"?t:PA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),S):d};S.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],S):[c[0],c[1]]};S.translateExtent=function(t){return arguments.length?(m[0][0]=+t[0][0],m[1][0]=+t[1][0],m[0][1]=+t[0][1],m[1][1]=+t[1][1],S):[[m[0][0],m[0][1]],[m[1][0],m[1][1]]]};S.constrain=function(t){return arguments.length?(y=t,S):y};S.duration=function(t){return arguments.length?(f=+t,S):f};S.interpolate=function(t){return arguments.length?(g=t,S):g};S.on=function(){var t=r.on.apply(r,arguments);return t===r?S:t};S.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,S):Math.sqrt(x)};S.tapDistance=function(t){return arguments.length?(k=+t,S):k};return S}var qA=1e-6;var KA=1e-12;var YA=Math.PI;var XA=YA/2;var ZA=YA/4;var $A=YA*2;var JA=180/YA;var QA=YA/180;var tM=Math.abs;var eM=Math.atan;var nM=Math.atan2;var rM=Math.cos;var iM=Math.ceil;var aM=Math.exp;var oM=Math.hypot;var sM=Math.log;var uM=Math.pow;var lM=Math.sin;var cM=Math.sign||function(t){return t>0?1:t<0?-1:0};var fM=Math.sqrt;var hM=Math.tan;function dM(t){return t>1?0:t<-1?YA:Math.acos(t)}function gM(t){return t>1?XA:t<-1?-XA:Math.asin(t)}function vM(t){return(t=lM(t/2))*t}function pM(){}function yM(t,e){if(t&&_M.hasOwnProperty(t.type)){_M[t.type](t,e)}}var mM={Feature:function t(e,n){yM(e.geometry,n)},FeatureCollection:function t(e,n){var r=e.features,i=-1,a=r.length;while(++i<a){yM(r[i].geometry,n)}}};var _M={Sphere:function t(e,n){n.sphere()},Point:function t(e,n){e=e.coordinates;n.point(e[0],e[1],e[2])},MultiPoint:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){e=r[i],n.point(e[0],e[1],e[2])}},LineString:function t(e,n){bM(e.coordinates,n,0)},MultiLineString:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){bM(r[i],n,0)}},Polygon:function t(e,n){wM(e.coordinates,n)},MultiPolygon:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){wM(r[i],n)}},GeometryCollection:function t(e,n){var r=e.geometries,i=-1,a=r.length;while(++i<a){yM(r[i],n)}}};function bM(t,e,n){var r=-1,i=t.length-n,a;e.lineStart();while(++r<i){a=t[r],e.point(a[0],a[1],a[2])}e.lineEnd()}function wM(t,e){var n=-1,r=t.length;e.polygonStart();while(++n<r){bM(t[n],e,1)}e.polygonEnd()}function xM(t,e){if(t&&mM.hasOwnProperty(t.type)){mM[t.type](t,e)}else{yM(t,e)}}var kM=new vb;var SM=new vb,CM,EM,AM,MM,RM;var TM={point:pM,lineStart:pM,lineEnd:pM,polygonStart:function t(){kM=new vb;TM.lineStart=OM;TM.lineEnd=PM},polygonEnd:function t(){var e=+kM;SM.add(e<0?$A+e:e);this.lineStart=this.lineEnd=this.point=pM},sphere:function t(){SM.add($A)}};function OM(){TM.point=BM}function PM(){DM(CM,EM)}function BM(t,e){TM.point=DM;CM=t,EM=e;t*=QA,e*=QA;AM=t,MM=rM(e=e/2+ZA),RM=lM(e)}function DM(t,e){t*=QA,e*=QA;e=e/2+ZA;var n=t-AM,r=n>=0?1:-1,i=r*n,a=rM(e),o=lM(e),s=RM*o,u=MM*a+s*rM(i),l=s*r*lM(i);kM.add(nM(l,u));AM=t,MM=a,RM=o}function NM(t){SM=new vb;xM(t,TM);return SM*2}function zM(t){return[nM(t[1],t[0]),gM(t[2])]}function FM(t){var e=t[0],n=t[1],r=rM(n);return[r*rM(e),r*lM(e),lM(n)]}function jM(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function IM(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function LM(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function HM(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function UM(t){var e=fM(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var GM,VM,WM,qM,KM,YM,XM,ZM,$M,JM,QM;var tR={point:eR,lineStart:rR,lineEnd:iR,polygonStart:function t(){tR.point=aR;tR.lineStart=oR;tR.lineEnd=sR;$M=new vb;TM.polygonStart()},polygonEnd:function t(){TM.polygonEnd();tR.point=eR;tR.lineStart=rR;tR.lineEnd=iR;if(kM<0)GM=-(WM=180),VM=-(qM=90);else if($M>qA)qM=90;else if($M<-qA)VM=-90;QM[0]=GM,QM[1]=WM},sphere:function t(){GM=-(WM=180),VM=-(qM=90)}};function eR(t,e){JM.push(QM=[GM=t,WM=t]);if(e<VM)VM=e;if(e>qM)qM=e}function nR(t,e){var n=FM([t*QA,e*QA]);if(ZM){var r=IM(ZM,n),i=[r[1],-r[0],0],a=IM(i,r);UM(a);a=zM(a);var o=t-KM,s=o>0?1:-1,u=a[0]*JA*s,l,c=tM(o)>180;if(c^(s*KM<u&&u<s*t)){l=a[1]*JA;if(l>qM)qM=l}else if(u=(u+360)%360-180,c^(s*KM<u&&u<s*t)){l=-a[1]*JA;if(l<VM)VM=l}else{if(e<VM)VM=e;if(e>qM)qM=e}if(c){if(t<KM){if(uR(GM,t)>uR(GM,WM))WM=t}else{if(uR(t,WM)>uR(GM,WM))GM=t}}else{if(WM>=GM){if(t<GM)GM=t;if(t>WM)WM=t}else{if(t>KM){if(uR(GM,t)>uR(GM,WM))WM=t}else{if(uR(t,WM)>uR(GM,WM))GM=t}}}}else{JM.push(QM=[GM=t,WM=t])}if(e<VM)VM=e;if(e>qM)qM=e;ZM=n,KM=t}function rR(){tR.point=nR}function iR(){QM[0]=GM,QM[1]=WM;tR.point=eR;ZM=null}function aR(t,e){if(ZM){var n=t-KM;$M.add(tM(n)>180?n+(n>0?360:-360):n)}else{YM=t,XM=e}TM.point(t,e);nR(t,e)}function oR(){TM.lineStart()}function sR(){aR(YM,XM);TM.lineEnd();if(tM($M)>qA)GM=-(WM=180);QM[0]=GM,QM[1]=WM;ZM=null}function uR(t,e){return(e-=t)<0?e+360:e}function lR(t,e){return t[0]-e[0]}function cR(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function fR(t){var e,n,r,i,a,o,s;qM=WM=-(GM=VM=Infinity);JM=[];xM(t,tR);if(n=JM.length){JM.sort(lR);for(e=1,r=JM[0],a=[r];e<n;++e){i=JM[e];if(cR(r,i[0])||cR(r,i[1])){if(uR(r[0],i[1])>uR(r[0],r[1]))r[1]=i[1];if(uR(i[0],r[1])>uR(r[0],r[1]))r[0]=i[0]}else{a.push(r=i)}}for(o=-Infinity,n=a.length-1,e=0,r=a[n];e<=n;r=i,++e){i=a[e];if((s=uR(r[1],i[0]))>o)o=s,GM=i[0],WM=r[1]}}JM=QM=null;return GM===Infinity||VM===Infinity?[[NaN,NaN],[NaN,NaN]]:[[GM,VM],[WM,qM]]}var hR,dR,gR,vR,pR,yR,mR,_R,bR,wR,xR,kR,SR,CR,ER,AR;var MR={sphere:pM,point:RR,lineStart:OR,lineEnd:DR,polygonStart:function t(){MR.lineStart=NR;MR.lineEnd=zR},polygonEnd:function t(){MR.lineStart=OR;MR.lineEnd=DR}};function RR(t,e){t*=QA,e*=QA;var n=rM(e);TR(n*rM(t),n*lM(t),lM(e))}function TR(t,e,n){++hR;gR+=(t-gR)/hR;vR+=(e-vR)/hR;pR+=(n-pR)/hR}function OR(){MR.point=PR}function PR(t,e){t*=QA,e*=QA;var n=rM(e);CR=n*rM(t);ER=n*lM(t);AR=lM(e);MR.point=BR;TR(CR,ER,AR)}function BR(t,e){t*=QA,e*=QA;var n=rM(e),r=n*rM(t),i=n*lM(t),a=lM(e),o=nM(fM((o=ER*a-AR*i)*o+(o=AR*r-CR*a)*o+(o=CR*i-ER*r)*o),CR*r+ER*i+AR*a);dR+=o;yR+=o*(CR+(CR=r));mR+=o*(ER+(ER=i));_R+=o*(AR+(AR=a));TR(CR,ER,AR)}function DR(){MR.point=RR}function NR(){MR.point=FR}function zR(){jR(kR,SR);MR.point=RR}function FR(t,e){kR=t,SR=e;t*=QA,e*=QA;MR.point=jR;var n=rM(e);CR=n*rM(t);ER=n*lM(t);AR=lM(e);TR(CR,ER,AR)}function jR(t,e){t*=QA,e*=QA;var n=rM(e),r=n*rM(t),i=n*lM(t),a=lM(e),o=ER*a-AR*i,s=AR*r-CR*a,u=CR*i-ER*r,l=oM(o,s,u),c=gM(l),f=l&&-c/l;bR.add(f*o);wR.add(f*s);xR.add(f*u);dR+=c;yR+=c*(CR+(CR=r));mR+=c*(ER+(ER=i));_R+=c*(AR+(AR=a));TR(CR,ER,AR)}function IR(t){hR=dR=gR=vR=pR=yR=mR=_R=0;bR=new vb;wR=new vb;xR=new vb;xM(t,MR);var e=+bR,n=+wR,r=+xR,i=oM(e,n,r);if(i<KA){e=yR,n=mR,r=_R;if(dR<qA)e=gR,n=vR,r=pR;i=oM(e,n,r);if(i<KA)return[NaN,NaN]}return[nM(n,e)*JA,gM(r/i)*JA]}function LR(t){return function(){return t}}function HR(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}if(n.invert&&r.invert)t.invert=function(t,e){return t=r.invert(t,e),t&&n.invert(t[0],t[1])};return t}function UR(t,e){return[tM(t)>YA?t+Math.round(-t/$A)*$A:t,e]}UR.invert=UR;function GR(t,e,n){return(t%=$A)?e||n?HR(WR(t),qR(e,n)):WR(t):e||n?qR(e,n):UR}function VR(n){return function(t,e){return t+=n,[t>YA?t-$A:t<-YA?t+$A:t,e]}}function WR(t){var e=VR(t);e.invert=VR(-t);return e}function qR(t,e){var s=rM(t),u=lM(t),l=rM(e),c=lM(e);function n(t,e){var n=rM(e),r=rM(t)*n,i=lM(t)*n,a=lM(e),o=a*s+r*u;return[nM(i*l-o*c,r*s-a*u),gM(o*l+i*c)]}n.invert=function(t,e){var n=rM(e),r=rM(t)*n,i=lM(t)*n,a=lM(e),o=a*l-i*c;return[nM(i*l+a*c,r*s+o*u),gM(o*s-r*u)]};return n}function KR(e){e=GR(e[0]*QA,e[1]*QA,e.length>2?e[2]*QA:0);function t(t){t=e(t[0]*QA,t[1]*QA);return t[0]*=JA,t[1]*=JA,t}t.invert=function(t){t=e.invert(t[0]*QA,t[1]*QA);return t[0]*=JA,t[1]*=JA,t};return t}function YR(t,e,n,r,i,a){if(!n)return;var o=rM(e),s=lM(e),u=r*n;if(i==null){i=e+r*$A;a=e-u/2}else{i=XR(o,i);a=XR(o,a);if(r>0?i<a:i>a)i+=r*$A}for(var l,c=i;r>0?c>a:c<a;c-=u){l=zM([o,-s*rM(c),-s*lM(c)]);t.point(l[0],l[1])}}function XR(t,e){e=FM(e),e[0]-=t;UM(e);var n=dM(-e[1]);return((-e[2]<0?-n:n)+$A-qA)%$A}function ZR(){var r=LR([0,0]),i=LR(90),a=LR(6),o,s,u={point:t};function t(t,e){o.push(t=s(t,e));t[0]*=JA,t[1]*=JA}function e(){var t=r.apply(this,arguments),e=i.apply(this,arguments)*QA,n=a.apply(this,arguments)*QA;o=[];s=GR(-t[0]*QA,-t[1]*QA,0).invert;YR(u,e,n,1);t={type:"Polygon",coordinates:[o]};o=s=null;return t}e.center=function(t){return arguments.length?(r=typeof t==="function"?t:LR([+t[0],+t[1]]),e):r};e.radius=function(t){return arguments.length?(i=typeof t==="function"?t:LR(+t),e):i};e.precision=function(t){return arguments.length?(a=typeof t==="function"?t:LR(+t),e):a};return e}function $R(){var e=[],i;return{point:function t(e,n,r){i.push([e,n,r])},lineStart:function t(){e.push(i=[])},lineEnd:pM,rejoin:function t(){if(e.length>1)e.push(e.pop().concat(e.shift()))},result:function t(){var t=e;e=[];i=null;return t}}}function JR(t,e){return tM(t[0]-e[0])<qA&&tM(t[1]-e[1])<qA}function QR(t,e,n,r){this.x=t;this.z=e;this.o=n;this.e=r;this.v=false;this.n=this.p=null}function tT(t,e,n,r,a){var o=[],s=[],u,i;t.forEach(function(t){if((e=t.length-1)<=0)return;var e,n=t[0],r=t[e],i;if(JR(n,r)){if(!n[2]&&!r[2]){a.lineStart();for(u=0;u<e;++u){a.point((n=t[u])[0],n[1])}a.lineEnd();return}r[0]+=2*qA}o.push(i=new QR(n,t,null,true));s.push(i.o=new QR(n,null,i,false));o.push(i=new QR(r,t,null,false));s.push(i.o=new QR(r,null,i,true))});if(!o.length)return;s.sort(e);eT(o);eT(s);for(u=0,i=s.length;u<i;++u){s[u].e=n=!n}var l=o[0],c,f;while(1){var h=l,d=true;while(h.v){if((h=h.n)===l)return}c=h.z;a.lineStart();do{h.v=h.o.v=true;if(h.e){if(d){for(u=0,i=c.length;u<i;++u){a.point((f=c[u])[0],f[1])}}else{r(h.x,h.n.x,1,a)}h=h.n}else{if(d){c=h.p.z;for(u=c.length-1;u>=0;--u){a.point((f=c[u])[0],f[1])}}else{r(h.x,h.p.x,-1,a)}h=h.p}h=h.o;c=h.z;d=!d}while(!h.v);a.lineEnd()}}function eT(t){if(!(e=t.length))return;var e,n=0,r=t[0],i;while(++n<e){r.n=i=t[n];i.p=r;r=i}r.n=i=t[0];i.p=r}function nT(t){if(tM(t[0])<=YA)return t[0];else return cM(t[0])*((tM(t[0])+YA)%$A-YA)}function rT(t,e){var n=nT(e),r=e[1],i=lM(r),a=[lM(n),-rM(n),0],o=0,s=0;var u=new vb;if(i===1)r=XA+qA;else if(i===-1)r=-XA-qA;for(var l=0,c=t.length;l<c;++l){if(!(h=(f=t[l]).length))continue;var f,h,d=f[h-1],g=nT(d),v=d[1]/2+ZA,p=lM(v),y=rM(v);for(var m=0;m<h;++m,g=b,p=x,y=k,d=_){var _=f[m],b=nT(_),w=_[1]/2+ZA,x=lM(w),k=rM(w),S=b-g,C=S>=0?1:-1,E=C*S,A=E>YA,M=p*x;u.add(nM(M*C*lM(E),y*k+M*rM(E)));o+=A?S+C*$A:S;if(A^g>=n^b>=n){var R=IM(FM(d),FM(_));UM(R);var T=IM(a,R);UM(T);var O=(A^S>=0?-1:1)*gM(T[2]);if(r>O||r===O&&(R[0]||R[1])){s+=A^S>=0?1:-1}}}}return(o<-qA||o<qA&&u<-KA)^s&1}function iT(p,y,m,_){return function(s){var n=y(s),u=$R(),l=y(u),c=false,f,h,d;var r={point:i,lineStart:a,lineEnd:o,polygonStart:function t(){r.point=g;r.lineStart=e;r.lineEnd=v;h=[];f=[]},polygonEnd:function t(){r.point=i;r.lineStart=a;r.lineEnd=o;h=Db(h);var e=rT(f,_);if(h.length){if(!c)s.polygonStart(),c=true;tT(h,oT,e,m,s)}else if(e){if(!c)s.polygonStart(),c=true;s.lineStart();m(null,null,1,s);s.lineEnd()}if(c)s.polygonEnd(),c=false;h=f=null},sphere:function t(){s.polygonStart();s.lineStart();m(null,null,1,s);s.lineEnd();s.polygonEnd()}};function i(t,e){if(p(t,e))s.point(t,e)}function t(t,e){n.point(t,e)}function a(){r.point=t;n.lineStart()}function o(){r.point=i;n.lineEnd()}function g(t,e){d.push([t,e]);l.point(t,e)}function e(){l.lineStart();d=[]}function v(){g(d[0][0],d[0][1]);l.lineEnd();var t=l.clean(),e=u.result(),n,r=e.length,i,a,o;d.pop();f.push(d);d=null;if(!r)return;if(t&1){a=e[0];if((i=a.length-1)>0){if(!c)s.polygonStart(),c=true;s.lineStart();for(n=0;n<i;++n){s.point((o=a[n])[0],o[1])}s.lineEnd()}return}if(r>1&&t&2)e.push(e.pop().concat(e.shift()));h.push(e.filter(aT))}return r}}function aT(t){return t.length>1}function oT(t,e){return((t=t.x)[0]<0?t[1]-XA-qA:XA-t[1])-((e=e.x)[0]<0?e[1]-XA-qA:XA-e[1])}var sT=iT(function(){return true},uT,cT,[-YA,-XA]);function uT(a){var o=NaN,s=NaN,u=NaN,l;return{lineStart:function t(){a.lineStart();l=1},point:function t(e,n){var r=e>0?YA:-YA,i=tM(e-o);if(tM(i-YA)<qA){a.point(o,s=(s+n)/2>0?XA:-XA);a.point(u,s);a.lineEnd();a.lineStart();a.point(r,s);a.point(e,s);l=0}else if(u!==r&&i>=YA){if(tM(o-u)<qA)o-=u*qA;if(tM(e-r)<qA)e-=r*qA;s=lT(o,s,e,n);a.point(u,s);a.lineEnd();a.lineStart();a.point(r,s);l=0}a.point(o=e,s=n);u=r},lineEnd:function t(){a.lineEnd();o=s=NaN},clean:function t(){return 2-l}}}function lT(t,e,n,r){var i,a,o=lM(t-n);return tM(o)>qA?eM((lM(e)*(a=rM(r))*lM(n)-lM(r)*(i=rM(e))*lM(t))/(i*a*o)):(e+r)/2}function cT(t,e,n,r){var i;if(t==null){i=n*XA;r.point(-YA,i);r.point(0,i);r.point(YA,i);r.point(YA,0);r.point(YA,-i);r.point(0,-i);r.point(-YA,-i);r.point(-YA,0);r.point(-YA,i)}else if(tM(t[0]-e[0])>qA){var a=t[0]<e[0]?YA:-YA;i=n*a/2;r.point(-a,i);r.point(0,i);r.point(a,i)}else{r.point(e[0],e[1])}}function fT(i){var T=rM(i),a=6*QA,g=T>0,v=tM(T)>qA;function t(t,e,n,r){YR(r,i,a,n,t,e)}function p(t,e){return rM(t)*rM(e)>T}function e(u){var l,c,f,h,d;return{lineStart:function t(){h=f=false;d=1},point:function t(e,n){var r=[e,n],i,a=p(e,n),o=g?a?0:m(e,n):a?m(e+(e<0?YA:-YA),n):0;if(!l&&(h=f=a))u.lineStart();if(a!==f){i=y(l,r);if(!i||JR(l,i)||JR(r,i))r[2]=1}if(a!==f){d=0;if(a){u.lineStart();i=y(r,l);u.point(i[0],i[1])}else{i=y(l,r);u.point(i[0],i[1],2);u.lineEnd()}l=i}else if(v&&l&&g^a){var s;if(!(o&c)&&(s=y(r,l,true))){d=0;if(g){u.lineStart();u.point(s[0][0],s[0][1]);u.point(s[1][0],s[1][1]);u.lineEnd()}else{u.point(s[1][0],s[1][1]);u.lineEnd();u.lineStart();u.point(s[0][0],s[0][1],3)}}}if(a&&(!l||!JR(l,r))){u.point(r[0],r[1])}l=r,f=a,c=o},lineEnd:function t(){if(f)u.lineEnd();l=null},clean:function t(){return d|(h&&f)<<1}}}function y(t,e,n){var r=FM(t),i=FM(e);var a=[1,0,0],o=IM(r,i),s=jM(o,o),u=o[0],l=s-u*u;if(!l)return!n&&t;var c=T*s/l,f=-T*u/l,h=IM(a,o),d=HM(a,c),g=HM(o,f);LM(d,g);var v=h,p=jM(d,v),y=jM(v,v),m=p*p-y*(jM(d,d)-1);if(m<0)return;var _=fM(m),b=HM(v,(-p-_)/y);LM(b,d);b=zM(b);if(!n)return b;var w=t[0],x=e[0],k=t[1],S=e[1],C;if(x<w)C=w,w=x,x=C;var E=x-w,A=tM(E-YA)<qA,M=A||E<qA;if(!A&&S<k)C=k,k=S,S=C;if(M?A?k+S>0^b[1]<(tM(b[0]-w)<qA?k:S):k<=b[1]&&b[1]<=S:E>YA^(w<=b[0]&&b[0]<=x)){var R=HM(v,(-p+_)/y);LM(R,d);return[b,zM(R)]}}function m(t,e){var n=g?i:YA-i,r=0;if(t<-n)r|=1;else if(t>n)r|=2;if(e<-n)r|=4;else if(e>n)r|=8;return r}return iT(p,e,t,g?[0,-i]:[-YA,i-YA])}function hT(t,e,n,r,i,a){var o=t[0],s=t[1],u=e[0],l=e[1],c=0,f=1,h=u-o,d=l-s,g;g=n-o;if(!h&&g>0)return;g/=h;if(h<0){if(g<c)return;if(g<f)f=g}else if(h>0){if(g>f)return;if(g>c)c=g}g=i-o;if(!h&&g<0)return;g/=h;if(h<0){if(g>f)return;if(g>c)c=g}else if(h>0){if(g<c)return;if(g<f)f=g}g=r-s;if(!d&&g>0)return;g/=d;if(d<0){if(g<c)return;if(g<f)f=g}else if(d>0){if(g>f)return;if(g>c)c=g}g=a-s;if(!d&&g<0)return;g/=d;if(d<0){if(g>f)return;if(g>c)c=g}else if(d>0){if(g<c)return;if(g<f)f=g}if(c>0)t[0]=o+c*h,t[1]=s+c*d;if(f<1)e[0]=o+f*h,e[1]=s+f*d;return true}var dT=1e9,gT=-dT;function vT(x,k,S,C){function E(t,e){return x<=t&&t<=S&&k<=e&&e<=C}function A(t,e,n,r){var i=0,a=0;if(t==null||(i=o(t,n))!==(a=o(e,n))||s(t,e)<0^n>0){do{r.point(i===0||i===3?x:S,i>1?C:k)}while((i=(i+n+4)%4)!==a)}else{r.point(e[0],e[1])}}function o(t,e){return tM(t[0]-x)<qA?e>0?0:3:tM(t[0]-S)<qA?e>0?2:1:tM(t[1]-k)<qA?e>0?1:0:e>0?3:2}function M(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(r){var a=r,t=$R(),i,f,o,s,u,l,c,h,d,g,v;var e={point:n,lineStart:_,lineEnd:b,polygonStart:y,polygonEnd:m};function n(t,e){if(E(t,e))a.point(t,e)}function p(){var t=0;for(var e=0,n=f.length;e<n;++e){for(var r=f[e],i=1,a=r.length,o=r[0],s,u,l=o[0],c=o[1];i<a;++i){s=l,u=c,o=r[i],l=o[0],c=o[1];if(u<=C){if(c>C&&(l-s)*(C-u)>(c-u)*(x-s))++t}else{if(c<=C&&(l-s)*(C-u)<(c-u)*(x-s))--t}}}return t}function y(){a=t,i=[],f=[],v=true}function m(){var t=p(),e=v&&t,n=(i=Db(i)).length;if(e||n){r.polygonStart();if(e){r.lineStart();A(null,null,1,r);r.lineEnd()}if(n){tT(i,M,t,A,r)}r.polygonEnd()}a=r,i=f=o=null}function _(){e.point=w;if(f)f.push(o=[]);g=true;d=false;c=h=NaN}function b(){if(i){w(s,u);if(l&&d)t.rejoin();i.push(t.result())}e.point=n;if(d)a.lineEnd()}function w(t,e){var n=E(t,e);if(f)o.push([t,e]);if(g){s=t,u=e,l=n;g=false;if(n){a.lineStart();a.point(t,e)}}else{if(n&&d)a.point(t,e);else{var r=[c=Math.max(gT,Math.min(dT,c)),h=Math.max(gT,Math.min(dT,h))],i=[t=Math.max(gT,Math.min(dT,t)),e=Math.max(gT,Math.min(dT,e))];if(hT(r,i,x,k,S,C)){if(!d){a.lineStart();a.point(r[0],r[1])}a.point(i[0],i[1]);if(!n)a.lineEnd();v=false}else if(n){a.lineStart();a.point(t,e);v=false}}}c=t,h=e,d=n}return e}}function pT(){var n=0,r=0,i=960,a=500,o,s,u;return u={stream:function t(e){return o&&s===e?o:o=vT(n,r,i,a)(s=e)},extent:function t(e){return arguments.length?(n=+e[0][0],r=+e[0][1],i=+e[1][0],a=+e[1][1],o=s=null,u):[[n,r],[i,a]]}}}var yT,mT,_T,bT;var wT={sphere:pM,point:pM,lineStart:xT,lineEnd:pM,polygonStart:pM,polygonEnd:pM};function xT(){wT.point=ST;wT.lineEnd=kT}function kT(){wT.point=wT.lineEnd=pM}function ST(t,e){t*=QA,e*=QA;mT=t,_T=lM(e),bT=rM(e);wT.point=CT}function CT(t,e){t*=QA,e*=QA;var n=lM(e),r=rM(e),i=tM(t-mT),a=rM(i),o=lM(i),s=r*o,u=bT*n-_T*r*a,l=_T*n+bT*r*a;yT.add(nM(fM(s*s+u*u),l));mT=t,_T=n,bT=r}function ET(t){yT=new vb;xM(t,wT);return+yT}var AT=[null,null],MT={type:"LineString",coordinates:AT};function RT(t,e){AT[0]=t;AT[1]=e;return ET(MT)}var TT={Feature:function t(e,n){return PT(e.geometry,n)},FeatureCollection:function t(e,n){var r=e.features,i=-1,a=r.length;while(++i<a){if(PT(r[i].geometry,n))return true}return false}};var OT={Sphere:function t(){return true},Point:function t(e,n){return BT(e.coordinates,n)},MultiPoint:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(BT(r[i],n))return true}return false},LineString:function t(e,n){return DT(e.coordinates,n)},MultiLineString:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(DT(r[i],n))return true}return false},Polygon:function t(e,n){return NT(e.coordinates,n)},MultiPolygon:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(NT(r[i],n))return true}return false},GeometryCollection:function t(e,n){var r=e.geometries,i=-1,a=r.length;while(++i<a){if(PT(r[i],n))return true}return false}};function PT(t,e){return t&&OT.hasOwnProperty(t.type)?OT[t.type](t,e):false}function BT(t,e){return RT(t,e)===0}function DT(t,e){var n,r,i;for(var a=0,o=t.length;a<o;a++){r=RT(t[a],e);if(r===0)return true;if(a>0){i=RT(t[a],t[a-1]);if(i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<KA*i)return true}n=r}return false}function NT(t,e){return!!rT(t.map(zT),FT(e))}function zT(t){return t=t.map(FT),t.pop(),t}function FT(t){return[t[0]*QA,t[1]*QA]}function jT(t,e){return(t&&TT.hasOwnProperty(t.type)?TT[t.type]:PT)(t,e)}function IT(t,e,n){var r=Nb(t,e-qA,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function LT(t,e,n){var r=Nb(t,e-qA,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}function HT(){var e,n,r,i,a,o,s,u,l=10,c=l,f=90,h=360,d,g,v,p,y=2.5;function m(){return{type:"MultiLineString",coordinates:t()}}function t(){return Nb(iM(i/f)*f,r,f).map(v).concat(Nb(iM(u/h)*h,s,h).map(p)).concat(Nb(iM(n/l)*l,e,l).filter(function(t){return tM(t%f)>qA}).map(d)).concat(Nb(iM(o/c)*c,a,c).filter(function(t){return tM(t%h)>qA}).map(g))}m.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})};m.outline=function(){return{type:"Polygon",coordinates:[v(i).concat(p(s).slice(1),v(r).reverse().slice(1),p(u).reverse().slice(1))]}};m.extent=function(t){if(!arguments.length)return m.extentMinor();return m.extentMajor(t).extentMinor(t)};m.extentMajor=function(t){if(!arguments.length)return[[i,u],[r,s]];i=+t[0][0],r=+t[1][0];u=+t[0][1],s=+t[1][1];if(i>r)t=i,i=r,r=t;if(u>s)t=u,u=s,s=t;return m.precision(y)};m.extentMinor=function(t){if(!arguments.length)return[[n,o],[e,a]];n=+t[0][0],e=+t[1][0];o=+t[0][1],a=+t[1][1];if(n>e)t=n,n=e,e=t;if(o>a)t=o,o=a,a=t;return m.precision(y)};m.step=function(t){if(!arguments.length)return m.stepMinor();return m.stepMajor(t).stepMinor(t)};m.stepMajor=function(t){if(!arguments.length)return[f,h];f=+t[0],h=+t[1];return m};m.stepMinor=function(t){if(!arguments.length)return[l,c];l=+t[0],c=+t[1];return m};m.precision=function(t){if(!arguments.length)return y;y=+t;d=IT(o,a,90);g=LT(n,e,y);v=IT(u,s,90);p=LT(i,r,y);return m};return m.extentMajor([[-180,-90+qA],[180,90-qA]]).extentMinor([[-180,-80-qA],[180,80+qA]])}function UT(){return HT()()}function GT(t,e){var n=t[0]*QA,r=t[1]*QA,i=e[0]*QA,a=e[1]*QA,o=rM(r),s=lM(r),u=rM(a),l=lM(a),c=o*rM(n),f=o*lM(n),h=u*rM(i),d=u*lM(i),g=2*gM(fM(vM(a-r)+o*u*vM(i-n))),v=lM(g);var p=g?function(t){var e=lM(t*=g)/v,n=lM(g-t)/v,r=n*c+e*h,i=n*f+e*d,a=n*s+e*l;return[nM(i,r)*JA,nM(a,fM(r*r+i*i))*JA]}:function(){return[n*JA,r*JA]};p.distance=g;return p}var VT=function t(e){return e};var WT=new vb,qT=new vb,KT,YT,XT,ZT;var $T={point:pM,lineStart:pM,lineEnd:pM,polygonStart:function t(){$T.lineStart=JT;$T.lineEnd=eO},polygonEnd:function t(){$T.lineStart=$T.lineEnd=$T.point=pM;WT.add(tM(qT));qT=new vb},result:function t(){var e=WT/2;WT=new vb;return e}};function JT(){$T.point=QT}function QT(t,e){$T.point=tO;KT=XT=t,YT=ZT=e}function tO(t,e){qT.add(ZT*t-XT*e);XT=t,ZT=e}function eO(){tO(KT,YT)}var nO=$T;var rO=Infinity,iO=rO,aO=-rO,oO=aO;var sO={point:uO,lineStart:pM,lineEnd:pM,polygonStart:pM,polygonEnd:pM,result:function t(){var e=[[rO,iO],[aO,oO]];aO=oO=-(iO=rO=Infinity);return e}};function uO(t,e){if(t<rO)rO=t;if(t>aO)aO=t;if(e<iO)iO=e;if(e>oO)oO=e}var lO=sO;var cO=0,fO=0,hO=0,dO=0,gO=0,vO=0,pO=0,yO=0,mO=0,_O,bO,wO,xO;var kO={point:SO,lineStart:CO,lineEnd:MO,polygonStart:function t(){kO.lineStart=RO;kO.lineEnd=TO},polygonEnd:function t(){kO.point=SO;kO.lineStart=CO;kO.lineEnd=MO},result:function t(){var e=mO?[pO/mO,yO/mO]:vO?[dO/vO,gO/vO]:hO?[cO/hO,fO/hO]:[NaN,NaN];cO=fO=hO=dO=gO=vO=pO=yO=mO=0;return e}};function SO(t,e){cO+=t;fO+=e;++hO}function CO(){kO.point=EO}function EO(t,e){kO.point=AO;SO(wO=t,xO=e)}function AO(t,e){var n=t-wO,r=e-xO,i=fM(n*n+r*r);dO+=i*(wO+t)/2;gO+=i*(xO+e)/2;vO+=i;SO(wO=t,xO=e)}function MO(){kO.point=SO}function RO(){kO.point=OO}function TO(){PO(_O,bO)}function OO(t,e){kO.point=PO;SO(_O=wO=t,bO=xO=e)}function PO(t,e){var n=t-wO,r=e-xO,i=fM(n*n+r*r);dO+=i*(wO+t)/2;gO+=i*(xO+e)/2;vO+=i;i=xO*t-wO*e;pO+=i*(wO+t);yO+=i*(xO+e);mO+=i*3;SO(wO=t,xO=e)}var BO=kO;function DO(t){this._context=t}DO.prototype={_radius:4.5,pointRadius:function t(e){return this._radius=e,this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._context.closePath();this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._context.moveTo(e,n);this._point=1;break}case 1:{this._context.lineTo(e,n);break}default:{this._context.moveTo(e+this._radius,n);this._context.arc(e,n,this._radius,0,$A);break}}},result:pM};var NO=new vb,zO,FO,jO,IO,LO;var HO={point:pM,lineStart:function t(){HO.point=UO},lineEnd:function t(){if(zO)GO(FO,jO);HO.point=pM},polygonStart:function t(){zO=true},polygonEnd:function t(){zO=null},result:function t(){var e=+NO;NO=new vb;return e}};function UO(t,e){HO.point=GO;FO=IO=t,jO=LO=e}function GO(t,e){IO-=t,LO-=e;NO.add(fM(IO*IO+LO*LO));IO=t,LO=e}var VO=HO;function WO(){this._string=[]}WO.prototype={_radius:4.5,_circle:qO(4.5),pointRadius:function t(e){if((e=+e)!==this._radius)this._radius=e,this._circle=null;return this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._string.push("Z");this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._string.push("M",e,",",n);this._point=1;break}case 1:{this._string.push("L",e,",",n);break}default:{if(this._circle==null)this._circle=qO(this._radius);this._string.push("M",e,",",n,this._circle);break}}},result:function t(){if(this._string.length){var t=this._string.join("");this._string=[];return t}else{return null}}};function qO(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function KO(e,n){var r=4.5,i,a;function o(t){if(t){if(typeof r==="function")a.pointRadius(+r.apply(this,arguments));xM(t,i(a))}return a.result()}o.area=function(t){xM(t,i(nO));return nO.result()};o.measure=function(t){xM(t,i(VO));return VO.result()};o.bounds=function(t){xM(t,i(lO));return lO.result()};o.centroid=function(t){xM(t,i(BO));return BO.result()};o.projection=function(t){return arguments.length?(i=t==null?(e=null,VT):(e=t).stream,o):e};o.context=function(t){if(!arguments.length)return n;a=t==null?(n=null,new WO):new DO(n=t);if(typeof r!=="function")a.pointRadius(r);return o};o.pointRadius=function(t){if(!arguments.length)return r;r=typeof t==="function"?t:(a.pointRadius(+t),+t);return o};return o.projection(e).context(n)}function YO(t){return{stream:XO(t)}}function XO(r){return function(t){var e=new ZO;for(var n in r){e[n]=r[n]}e.stream=t;return e}}function ZO(){}ZO.prototype={constructor:ZO,point:function t(e,n){this.stream.point(e,n)},sphere:function t(){this.stream.sphere()},lineStart:function t(){this.stream.lineStart()},lineEnd:function t(){this.stream.lineEnd()},polygonStart:function t(){this.stream.polygonStart()},polygonEnd:function t(){this.stream.polygonEnd()}};function $O(t,e,n){var r=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(r!=null)t.clipExtent(null);xM(n,t.stream(lO));e(lO.result());if(r!=null)t.clipExtent(r);return t}function JO(o,s,t){return $O(o,function(t){var e=s[1][0]-s[0][0],n=s[1][1]-s[0][1],r=Math.min(e/(t[1][0]-t[0][0]),n/(t[1][1]-t[0][1])),i=+s[0][0]+(e-r*(t[1][0]+t[0][0]))/2,a=+s[0][1]+(n-r*(t[1][1]+t[0][1]))/2;o.scale(150*r).translate([i,a])},t)}function QO(t,e,n){return JO(t,[[0,0],e],n)}function t8(a,o,t){return $O(a,function(t){var e=+o,n=e/(t[1][0]-t[0][0]),r=(e-n*(t[1][0]+t[0][0]))/2,i=-n*t[0][1];a.scale(150*n).translate([r,i])},t)}function e8(a,o,t){return $O(a,function(t){var e=+o,n=e/(t[1][1]-t[0][1]),r=-n*t[0][0],i=(e-n*(t[1][1]+t[0][1]))/2;a.scale(150*n).translate([r,i])},t)}var n8=16,r8=rM(30*QA);function i8(t,e){return+e?o8(t,e):a8(t)}function a8(r){return XO({point:function t(e,n){e=r(e,n);this.stream.point(e[0],e[1])}})}function o8(R,T){function O(t,e,n,r,i,a,o,s,u,l,c,f,h,d){var g=o-t,v=s-e,p=g*g+v*v;if(p>4*T&&h--){var y=r+l,m=i+c,_=a+f,b=fM(y*y+m*m+_*_),w=gM(_/=b),x=tM(tM(_)-1)<qA||tM(n-u)<qA?(n+u)/2:nM(m,y),k=R(x,w),S=k[0],C=k[1],E=S-t,A=C-e,M=v*E-g*A;if(M*M/p>T||tM((g*E+v*A)/p-.5)>.3||r*l+i*c+a*f<r8){O(t,e,n,r,i,a,S,C,x,y/=b,m/=b,_,h,d);d.point(S,C);O(S,C,x,y,m,_,o,s,u,l,c,f,h,d)}}}return function(i){var n,r,a,o,s,u,l,c,f,h,d,g;var v={point:t,lineStart:e,lineEnd:y,polygonStart:function t(){i.polygonStart();v.lineStart=m},polygonEnd:function t(){i.polygonEnd();v.lineStart=e}};function t(t,e){t=R(t,e);i.point(t[0],t[1])}function e(){c=NaN;v.point=p;i.lineStart()}function p(t,e){var n=FM([t,e]),r=R(t,e);O(c,f,l,h,d,g,c=r[0],f=r[1],l=t,h=n[0],d=n[1],g=n[2],n8,i);i.point(c,f)}function y(){v.point=t;i.lineEnd()}function m(){e();v.point=_;v.lineEnd=b}function _(t,e){p(n=t,e),r=c,a=f,o=h,s=d,u=g;v.point=p}function b(){O(c,f,l,h,d,g,r,a,n,o,s,u,n8,i);v.lineEnd=y;y()}return v}}var s8=XO({point:function t(e,n){this.stream.point(e*QA,n*QA)}});function u8(i){return XO({point:function t(e,n){var r=i(e,n);return this.stream.point(r[0],r[1])}})}function l8(n,r,i,a,o){function t(t,e){t*=a;e*=o;return[r+n*t,i-n*e]}t.invert=function(t,e){return[(t-r)/n*a,(i-e)/n*o]};return t}function c8(t,n,r,i,a,e){if(!e)return l8(t,n,r,i,a);var o=rM(e),s=lM(e),u=o*t,l=s*t,c=o/t,f=s/t,h=(s*r-o*n)/t,d=(s*n+o*r)/t;function g(t,e){t*=i;e*=a;return[u*t-l*e+n,r-l*t-u*e]}g.invert=function(t,e){return[i*(c*t-f*e+h),a*(d-f*t-c*e)]};return g}function f8(t){return h8(function(){return t})()}function h8(t){var n,r=150,i=480,a=250,o=0,s=0,u=0,l=0,c=0,f,h=0,d=1,g=1,e=null,v=sT,p=null,y,m,_,b=VT,w=.5,x,k,S,C,E;function A(t){return S(t[0]*QA,t[1]*QA)}function M(t){t=S.invert(t[0],t[1]);return t&&[t[0]*JA,t[1]*JA]}A.stream=function(t){return C&&E===t?C:C=s8(u8(f)(v(x(b(E=t)))))};A.preclip=function(t){return arguments.length?(v=t,e=undefined,T()):v};A.postclip=function(t){return arguments.length?(b=t,p=y=m=_=null,T()):b};A.clipAngle=function(t){return arguments.length?(v=+t?fT(e=t*QA):(e=null,sT),T()):e*JA};A.clipExtent=function(t){return arguments.length?(b=t==null?(p=y=m=_=null,VT):vT(p=+t[0][0],y=+t[0][1],m=+t[1][0],_=+t[1][1]),T()):p==null?null:[[p,y],[m,_]]};A.scale=function(t){return arguments.length?(r=+t,R()):r};A.translate=function(t){return arguments.length?(i=+t[0],a=+t[1],R()):[i,a]};A.center=function(t){return arguments.length?(o=t[0]%360*QA,s=t[1]%360*QA,R()):[o*JA,s*JA]};A.rotate=function(t){return arguments.length?(u=t[0]%360*QA,l=t[1]%360*QA,c=t.length>2?t[2]%360*QA:0,R()):[u*JA,l*JA,c*JA]};A.angle=function(t){return arguments.length?(h=t%360*QA,R()):h*JA};A.reflectX=function(t){return arguments.length?(d=t?-1:1,R()):d<0};A.reflectY=function(t){return arguments.length?(g=t?-1:1,R()):g<0};A.precision=function(t){return arguments.length?(x=i8(k,w=t*t),T()):fM(w)};A.fitExtent=function(t,e){return JO(A,t,e)};A.fitSize=function(t,e){return QO(A,t,e)};A.fitWidth=function(t,e){return t8(A,t,e)};A.fitHeight=function(t,e){return e8(A,t,e)};function R(){var t=c8(r,0,0,d,g,h).apply(null,n(o,s)),e=c8(r,i-t[0],a-t[1],d,g,h);f=GR(u,l,c);k=HR(n,e);S=HR(f,k);x=i8(k,w);return T()}function T(){C=E=null;return A}return function(){n=t.apply(this,arguments);A.invert=n.invert&&M;return R()}}function d8(t){var e=0,n=YA/3,r=h8(t),i=r(e,n);i.parallels=function(t){return arguments.length?r(e=t[0]*QA,n=t[1]*QA):[e*JA,n*JA]};return i}function g8(t){var n=rM(t);function e(t,e){return[t*n,lM(e)/n]}e.invert=function(t,e){return[t/n,gM(e*n)]};return e}function v8(t,e){var n=lM(t),i=(n+lM(e))/2;if(tM(i)<qA)return g8(t);var a=1+n*(2*i-n),o=fM(a)/i;function r(t,e){var n=fM(a-2*i*lM(e))/i;return[n*lM(t*=i),o-n*rM(t)]}r.invert=function(t,e){var n=o-e,r=nM(t,tM(n))*cM(n);if(n*i<0)r-=YA*cM(t)*cM(n);return[r/i,gM((a-(t*t+n*n)*i*i)/(2*i))]};return r}function p8(){return d8(v8).scale(155.424).center([0,33.6442])}function y8(){return p8().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function m8(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function _8(){var e,n,a=y8(),i,o=p8().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s,u=p8().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)}f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=m8([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t),u.precision(t);return h()};f.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t*.35),u.scale(t);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(c);s=o.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+qA,r+.12*e+qA],[n-.214*e-qA,r+.234*e-qA]]).stream(c);l=u.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+qA,r+.166*e+qA],[n-.115*e-qA,r+.234*e-qA]]).stream(c);return h()};f.fitExtent=function(t,e){return JO(f,t,e)};f.fitSize=function(t,e){return QO(f,t,e)};f.fitWidth=function(t,e){return t8(f,t,e)};f.fitHeight=function(t,e){return e8(f,t,e)};function h(){e=n=null;return f}return f.scale(1070)}function b8(a){return function(t,e){var n=rM(t),r=rM(e),i=a(n*r);if(i===Infinity)return[2,0];return[i*r*lM(t),i*lM(e)]}}function w8(o){return function(t,e){var n=fM(t*t+e*e),r=o(n),i=lM(r),a=rM(r);return[nM(t*i,n*a),gM(n&&e*i/n)]}}var x8=b8(function(t){return fM(2/(1+t))});x8.invert=w8(function(t){return 2*gM(t/2)});function k8(){return f8(x8).scale(124.75).clipAngle(180-.001)}var S8=b8(function(t){return(t=dM(t))&&t/lM(t)});S8.invert=w8(function(t){return t});function C8(){return f8(S8).scale(79.4188).clipAngle(180-.001)}function E8(t,e){return[t,sM(hM((XA+e)/2))]}E8.invert=function(t,e){return[t,2*eM(aM(e))-XA]};function A8(){return M8(E8).scale(961/$A)}function M8(n){var r=f8(n),e=r.center,i=r.scale,a=r.translate,o=r.clipExtent,s=null,u,l,c;r.scale=function(t){return arguments.length?(i(t),f()):i()};r.translate=function(t){return arguments.length?(a(t),f()):a()};r.center=function(t){return arguments.length?(e(t),f()):e()};r.clipExtent=function(t){return arguments.length?(t==null?s=u=l=c=null:(s=+t[0][0],u=+t[0][1],l=+t[1][0],c=+t[1][1]),f()):s==null?null:[[s,u],[l,c]]};function f(){var t=YA*i(),e=r(KR(r.rotate()).invert([0,0]));return o(s==null?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===E8?[[Math.max(e[0]-t,s),u],[Math.min(e[0]+t,l),c]]:[[s,Math.max(e[1]-t,u)],[l,Math.min(e[1]+t,c)]])}return f()}function R8(t){return hM((XA+t)/2)}function T8(t,e){var n=rM(t),a=t===e?lM(t):sM(n/rM(e))/sM(R8(e)/R8(t)),o=n*uM(R8(t),a)/a;if(!a)return E8;function r(t,e){if(o>0){if(e<-XA+qA)e=-XA+qA}else{if(e>XA-qA)e=XA-qA}var n=o/uM(R8(e),a);return[n*lM(a*t),o-n*rM(a*t)]}r.invert=function(t,e){var n=o-e,r=cM(a)*fM(t*t+n*n),i=nM(t,tM(n))*cM(n);if(n*a<0)i-=YA*cM(t)*cM(n);return[i/a,2*eM(uM(o/r,1/a))-XA]};return r}function O8(){return d8(T8).scale(109.5).parallels([30,30])}function P8(t,e){return[t,e]}P8.invert=P8;function B8(){return f8(P8).scale(152.63)}function D8(t,e){var n=rM(t),i=t===e?lM(t):(n-rM(e))/(e-t),a=n/i+t;if(tM(i)<qA)return P8;function r(t,e){var n=a-e,r=i*t;return[n*lM(r),a-n*rM(r)]}r.invert=function(t,e){var n=a-e,r=nM(t,tM(n))*cM(n);if(n*i<0)r-=YA*cM(t)*cM(n);return[r/i,a-cM(i)*fM(t*t+n*n)]};return r}function N8(){return d8(D8).scale(131.154).center([0,13.9389])}var z8=1.340264,F8=-.081106,j8=893e-6,I8=.003796,L8=fM(3)/2,H8=12;function U8(t,e){var n=gM(L8*lM(e)),r=n*n,i=r*r*r;return[t*rM(n)/(L8*(z8+3*F8*r+i*(7*j8+9*I8*r))),n*(z8+F8*r+i*(j8+I8*r))]}U8.invert=function(t,e){var n=e,r=n*n,i=r*r*r;for(var a=0,o,s,u;a<H8;++a){s=n*(z8+F8*r+i*(j8+I8*r))-e;u=z8+3*F8*r+i*(7*j8+9*I8*r);n-=o=s/u,r=n*n,i=r*r*r;if(tM(o)<KA)break}return[L8*t*(z8+3*F8*r+i*(7*j8+9*I8*r))/rM(n),gM(lM(n)/L8)]};function G8(){return f8(U8).scale(177.158)}function V8(t,e){var n=rM(e),r=rM(t)*n;return[n*lM(t)/r,lM(e)/r]}V8.invert=w8(eM);function W8(){return f8(V8).scale(144.049).clipAngle(60)}function q8(){var e=1,i=0,a=0,n=1,r=1,o=0,s,u,l=null,c,f,h,d=1,g=1,v=XO({point:function t(e,n){var r=b([e,n]);this.stream.point(r[0],r[1])}}),p=VT,y,m;function _(){d=e*n;g=e*r;y=m=null;return b}function b(t){var e=t[0]*d,n=t[1]*g;if(o){var r=n*s-e*u;e=e*s+n*u;n=r}return[e+i,n+a]}b.invert=function(t){var e=t[0]-i,n=t[1]-a;if(o){var r=n*s+e*u;e=e*s-n*u;n=r}return[e/d,n/g]};b.stream=function(t){return y&&m===t?y:y=v(p(m=t))};b.postclip=function(t){return arguments.length?(p=t,l=c=f=h=null,_()):p};b.clipExtent=function(t){return arguments.length?(p=t==null?(l=c=f=h=null,VT):vT(l=+t[0][0],c=+t[0][1],f=+t[1][0],h=+t[1][1]),_()):l==null?null:[[l,c],[f,h]]};b.scale=function(t){return arguments.length?(e=+t,_()):e};b.translate=function(t){return arguments.length?(i=+t[0],a=+t[1],_()):[i,a]};b.angle=function(t){return arguments.length?(o=t%360*QA,u=lM(o),s=rM(o),_()):o*JA};b.reflectX=function(t){return arguments.length?(n=t?-1:1,_()):n<0};b.reflectY=function(t){return arguments.length?(r=t?-1:1,_()):r<0};b.fitExtent=function(t,e){return JO(b,t,e)};b.fitSize=function(t,e){return QO(b,t,e)};b.fitWidth=function(t,e){return t8(b,t,e)};b.fitHeight=function(t,e){return e8(b,t,e)};return b}function K8(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}K8.invert=function(t,e){var n=e,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(tM(i)>qA&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function Y8(){return f8(K8).scale(175.295)}function X8(t,e){return[rM(e)*lM(t),lM(e)]}X8.invert=w8(gM);function Z8(){return f8(X8).scale(249.5).clipAngle(90+qA)}function $8(t,e){var n=rM(e),r=1+rM(t)*n;return[n*lM(t)/r,lM(e)/r]}$8.invert=w8(function(t){return 2*eM(t)});function J8(){return f8($8).scale(250).clipAngle(142)}function Q8(t,e){return[sM(hM((XA+e)/2)),-t]}Q8.invert=function(t,e){return[-e,2*eM(aM(t))-XA]};function t7(){var t=M8(Q8),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var e7=Object.freeze({__proto__:null,geoArea:NM,geoBounds:fR,geoCentroid:IR,geoCircle:ZR,geoClipAntimeridian:sT,geoClipCircle:fT,geoClipExtent:pT,geoClipRectangle:vT,geoContains:jT,geoDistance:RT,geoGraticule:HT,geoGraticule10:UT,geoInterpolate:GT,geoLength:ET,geoPath:KO,geoAlbers:y8,geoAlbersUsa:_8,geoAzimuthalEqualArea:k8,geoAzimuthalEqualAreaRaw:x8,geoAzimuthalEquidistant:C8,geoAzimuthalEquidistantRaw:S8,geoConicConformal:O8,geoConicConformalRaw:T8,geoConicEqualArea:p8,geoConicEqualAreaRaw:v8,geoConicEquidistant:N8,geoConicEquidistantRaw:D8,geoEqualEarth:G8,geoEqualEarthRaw:U8,geoEquirectangular:B8,geoEquirectangularRaw:P8,geoGnomonic:W8,geoGnomonicRaw:V8,geoIdentity:q8,geoProjection:f8,geoProjectionMutator:h8,geoMercator:A8,geoMercatorRaw:E8,geoNaturalEarth1:Y8,geoNaturalEarth1Raw:K8,geoOrthographic:Z8,geoOrthographicRaw:X8,geoStereographic:J8,geoStereographicRaw:$8,geoTransverseMercator:t7,geoTransverseMercatorRaw:Q8,geoRotation:KR,geoStream:xM,geoTransform:YO});var n7=Math.abs;var r7=Math.atan;var i7=Math.atan2;var a7=Math.cos;var o7=Math.exp;var s7=Math.floor;var u7=Math.log;var l7=Math.max;var c7=Math.min;var f7=Math.pow;var h7=Math.round;var d7=Math.sign||function(t){return t>0?1:t<0?-1:0};var g7=Math.sin;var v7=Math.tan;var p7=1e-6;var y7=1e-12;var m7=Math.PI;var _7=m7/2;var b7=m7/4;var w7=Math.SQRT1_2;var x7=T7(2);var k7=T7(m7);var S7=m7*2;var C7=180/m7;var E7=m7/180;function A7(t){return t?t/Math.sin(t):1}function M7(t){return t>1?_7:t<-1?-_7:Math.asin(t)}function R7(t){return t>1?0:t<-1?m7:Math.acos(t)}function T7(t){return t>0?Math.sqrt(t):0}function O7(t){t=o7(2*t);return(t-1)/(t+1)}function P7(t){return(o7(t)-o7(-t))/2}function B7(t){return(o7(t)+o7(-t))/2}function D7(t){return u7(t+T7(t*t+1))}function N7(t){return u7(t+T7(t*t-1))}function z7(h){var t=v7(h/2),d=2*u7(a7(h/2))/(t*t);function e(t,e){var n=a7(t),r=a7(e),i=g7(e),a=r*n,o=-((1-a?u7((1+a)/2)/(1-a):-.5)+d/(1+a));return[o*r*g7(t),o*i]}e.invert=function(t,e){var n=T7(t*t+e*e),r=-h/2,i=50,a;if(!n)return[0,0];do{var o=r/2,s=a7(o),u=g7(o),l=u/s,c=-u7(n7(s));r-=a=(2/l*c-d*l-n)/(-c/(u*u)+1-d/(2*s*s))*(s<0?.7:1)}while(n7(a)>p7&&--i>0);var f=g7(r);return[i7(t*f,n*a7(r)),M7(e*f/n)]};return e}function F7(){var e=_7,n=h8(z7),t=n(e);t.radius=function(t){return arguments.length?n(e=t*E7):e*C7};return t.scale(179.976).clipAngle(147)}function j7(t,e){var n=a7(e),r=A7(R7(n*a7(t/=2)));return[2*n*g7(t)*r,g7(e)*r]}j7.invert=function(t,e){if(t*t+4*e*e>m7*m7+p7)return;var n=t,r=e,i=25;do{var a=g7(n),o=g7(n/2),s=a7(n/2),u=g7(r),l=a7(r),c=g7(2*r),f=u*u,h=l*l,d=o*o,g=1-h*s*s,v=g?R7(l*s)*T7(p=1/g):p=0,p,y=2*v*l*o-t,m=v*u-e,_=p*(h*d+v*l*s*f),b=p*(.5*a*c-v*2*u*o),w=p*.25*(c*o-v*u*h*a),x=p*(f*s+v*d*l),k=b*w-x*_;if(!k)break;var S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,r-=C}while((n7(S)>p7||n7(C)>p7)&&--i>0);return[n,r]};function I7(){return f8(j7).scale(152.63)}function L7(t){var _=g7(t),b=a7(t),w=t>=0?1:-1,x=v7(w*t),k=(1+_-b)/2;function e(t,e){var n=a7(e),r=a7(t/=2);return[(1+n)*g7(t),(w*e>-i7(r,x)-.001?0:-w*10)+k+g7(e)*b-(1+n)*_*r]}e.invert=function(t,e){var n=0,r=0,i=50;do{var a=a7(n),o=g7(n),s=a7(r),u=g7(r),l=1+s,c=l*o-t,f=k+u*b-l*_*a-e,h=l*a/2,d=-o*u,g=_*l*o/2,v=b*s+_*a*u,p=d*g-v*h,y=(f*d-c*v)/p/2,m=(c*g-f*h)/p;if(n7(m)>2)m/=2;n-=y,r-=m}while((n7(y)>p7||n7(m)>p7)&&--i>0);return w*r>-i7(a7(n),x)-.001?[n*2,r]:null};return e}function H7(){var a=20*E7,o=a>=0?1:-1,s=v7(o*a),e=h8(L7),u=e(a),l=u.stream;u.parallel=function(t){if(!arguments.length)return a*C7;s=v7((o=(a=t*E7)>=0?1:-1)*a);return e(a)};u.stream=function(t){var e=u.rotate(),n=l(t),r=(u.rotate([0,0]),l(t)),i=u.precision();u.rotate(e);n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=o*-180;o*t<180;t+=o*90){r.point(t,o*90)}if(a)while(o*(t-=3*o*i)>=-180){r.point(t,o*-i7(a7(t*E7/2),s)*C7)}r.lineEnd(),r.polygonEnd()};return n};return u.scale(218.695).center([0,28.0974])}function U7(t,e){var n=v7(e/2),r=T7(1-n*n),i=1+r*a7(t/=2),a=g7(t)*r/i,o=n/i,s=a*a,u=o*o;return[4/3*a*(3+s-3*u),4/3*o*(3+3*s-u)]}U7.invert=function(t,e){t*=3/8,e*=3/8;if(!t&&n7(e)>1)return null;var n=t*t,r=e*e,i=1+n+r,a=T7((i-T7(i*i-4*e*e))/2),o=M7(a)/3,s=a?N7(n7(e/a))/3:D7(n7(t))/3,u=a7(o),l=B7(s),c=l*l-u*u;return[d7(t)*2*i7(P7(s)*u,.25-c),d7(e)*2*i7(l*g7(o),.25+c)]};function G7(){return f8(U7).scale(66.1603)}var V7=T7(8),W7=u7(1+x7);function q7(t,e){var n=n7(e);return n<b7?[t,u7(v7(b7+e/2))]:[t*a7(n)*(2*x7-1/g7(n)),d7(e)*(2*x7*(n-b7)-u7(v7(n/2)))]}q7.invert=function(t,e){if((a=n7(e))<W7)return[t,2*r7(o7(e))-_7];var n=b7,r=25,i,a;do{var o=a7(n/2),s=v7(n/2);n-=i=(V7*(n-b7)-u7(s)-a)/(V7-o*o/(2*s))}while(n7(i)>y7&&--r>0);return[t/(a7(n)*(V7-1/g7(n))),d7(e)*n]};function K7(){return f8(q7).scale(112.314)}function Y7(t){var u=2*m7/t;function e(t,e){var n=S8(t,e);if(n7(t)>_7){var r=i7(n[1],n[0]),i=T7(n[0]*n[0]+n[1]*n[1]),a=u*h7((r-_7)/u)+_7,o=i7(g7(r-=a),2-a7(r));r=a+M7(m7/i*g7(o))-o;n[0]=i*a7(r);n[1]=i*g7(r)}return n}e.invert=function(t,e){var n=T7(t*t+e*e);if(n>_7){var r=i7(e,t),i=u*h7((r-_7)/u)+_7,a=r>i?-1:1,o=n*a7(i-r),s=1/v7(a*R7((o-m7)/T7(m7*(m7-2*o)+n*n)));r=i+2*r7((s+a*T7(s*s-3))/3);t=n*a7(r),e=n*g7(r)}return S8.invert(t,e)};return e}function X7(){var o=5,e=h8(Y7),r=e(o),i=r.stream,s=.01,u=-a7(s*E7),l=g7(s*E7);r.lobes=function(t){return arguments.length?e(o=+t):o};r.stream=function(t){var e=r.rotate(),n=i(t),a=(r.rotate([0,0]),i(t));r.rotate(e);n.sphere=function(){a.polygonStart(),a.lineStart();for(var t=0,e=360/o,n=2*m7/o,r=90-180/o,i=_7;t<o;++t,r-=e,i-=n){a.point(i7(l*a7(i),u)*C7,M7(l*g7(i))*C7);if(r<-90){a.point(-90,-180-r-s);a.point(-90,-180-r+s)}else{a.point(90,r+s);a.point(90,r-s)}}a.lineEnd(),a.polygonEnd()};return n};return r.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function Z7(r,i){if(arguments.length<2)i=r;if(i===1)return x8;if(i===Infinity)return $7;function t(t,e){var n=x8(t/i,e);n[0]*=r;return n}t.invert=function(t,e){var n=x8.invert(t/r,e);n[0]*=i;return n};return t}function $7(t,e){return[t*a7(e)/a7(e/=2),2*g7(e)]}$7.invert=function(t,e){var n=2*M7(e/2);return[t*a7(n/2)/a7(n),n]};function J7(){var e=2,n=h8(Z7),t=n(e);t.coefficient=function(t){if(!arguments.length)return e;return n(e=+t)};return t.scale(169.529)}function Q7(t,e,n){var r=100,i,a,o;n=n===undefined?0:+n;e=+e;do{a=t(n);o=t(n+p7);if(a===o)o=a+p7;n-=i=-1*p7*(a-e)/(a-o)}while(r-- >0&&n7(i)>p7);return r<0?NaN:n}function tP(x,k,S){if(k===undefined)k=40;if(S===undefined)S=y7;return function(t,e,n,r){var i,a,o;n=n===undefined?0:+n;r=r===undefined?0:+r;for(var s=0;s<k;s++){var u=x(n,r),l=u[0]-t,c=u[1]-e;if(n7(l)<S&&n7(c)<S)break;var f=l*l+c*c;if(f>i){n-=a/=2;r-=o/=2;continue}i=f;var h=(n>0?-1:1)*S,d=(r>0?-1:1)*S,g=x(n+h,r),v=x(n,r+d),p=(g[0]-u[0])/h,y=(g[1]-u[1])/h,m=(v[0]-u[0])/d,_=(v[1]-u[1])/d,b=_*p-y*m,w=(n7(b)<.5?.5:1)/b;a=(c*m-l*_)*w;o=(l*y-c*p)*w;n+=a;r+=o;if(n7(a)<S&&n7(o)<S)break}return[n,r]}}function eP(){var a=Z7(1.68,2),o=1.4,s=12;function t(t,e){if(t+e<-o){var n=(t-e+1.6)*(t+e+o)/8;t+=n;e-=.8*n*g7(e+m7/2)}var r=a(t,e);var i=(1-a7(t*e))/s;if(r[1]<0){r[0]*=1+i}if(r[1]>0){r[1]*=1+i/1.5*r[0]*r[0]}return r}t.invert=tP(t);return t}function nP(){return f8(eP()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function rP(t,e){var n=t*g7(e),r=30,i;do{e-=i=(e+g7(e)-n)/(1+a7(e))}while(n7(i)>p7&&--r>0);return e/2}function iP(n,r,i){function t(t,e){return[n*t*a7(e=rP(i,e)),r*g7(e)]}t.invert=function(t,e){return e=M7(e/r),[t/(n*a7(e)),M7((2*e+g7(2*e))/i)]};return t}var aP=iP(x7/_7,x7,m7);function oP(){return f8(aP).scale(169.529)}var sP=2.00276,uP=1.11072;function lP(t,e){var n=rP(m7,e);return[sP*t/(1/a7(e)+uP/a7(n)),(e+x7*g7(n))/sP]}lP.invert=function(t,e){var n=sP*e,r=e<0?-b7:b7,i=25,a,o;do{o=n-x7*g7(r);r-=a=(g7(2*r)+2*r-m7*g7(o))/(2*a7(2*r)+2+m7*a7(o)*x7*a7(r))}while(n7(a)>p7&&--i>0);o=n-x7*g7(r);return[t*(1/a7(o)+uP/a7(r))/sP,o]};function cP(){return f8(lP).scale(160.857)}function fP(t){var e=0,n=h8(t),r=n(e);r.parallel=function(t){return arguments.length?n(e=t*E7):e*C7};return r}function hP(t,e){return[t*a7(e),e]}hP.invert=function(t,e){return[t/a7(e),e]};function dP(){return f8(hP).scale(152.63)}function gP(i){if(!i)return hP;var a=1/v7(i);function t(t,e){var n=a+i-e,r=n?t*a7(e)/n:n;return[n*g7(r),a-n*a7(r)]}t.invert=function(t,e){var n=T7(t*t+(e=a-e)*e),r=a+i-n;return[n/a7(r)*i7(t,e),r]};return t}function vP(){return fP(gP).scale(123.082).center([0,26.1441]).parallel(45)}function pP(o){function t(t,e){var n=_7-e,r=n?t*o*g7(n)/n:n;return[n*g7(r)/o,_7-n*a7(r)]}t.invert=function(t,e){var n=t*o,r=_7-e,i=T7(n*n+r*r),a=i7(n,r);return[(i?i/g7(i):1)*a/o,_7-i]};return t}function yP(){var e=.5,n=h8(pP),t=n(e);t.fraction=function(t){return arguments.length?n(e=+t):e};return t.scale(158.837)}var mP=iP(1,4/m7,m7);function _P(){return f8(mP).scale(152.63)}function bP(t,e,n,r,i,a){var o=a7(a),s;if(n7(t)>1||n7(a)>1){s=R7(n*i+e*r*o)}else{var u=g7(t/2),l=g7(a/2);s=2*M7(T7(u*u+e*r*l*l))}return n7(s)>p7?[s,i7(r*g7(a),e*i-n*r*o)]:[0,0]}function wP(t,e,n){return R7((t*t+e*e-n*n)/(2*t*e))}function xP(t){return t-2*m7*s7((t+m7)/(2*m7))}function kP(t,e,n){var c=[[t[0],t[1],g7(t[1]),a7(t[1])],[e[0],e[1],g7(e[1]),a7(e[1])],[n[0],n[1],g7(n[1]),a7(n[1])]];for(var r=c[2],i,a=0;a<3;++a,r=i){i=c[a];r.v=bP(i[1]-r[1],r[3],r[2],i[3],i[2],i[0]-r[0]);r.point=[0,0]}var o=wP(c[0].v[0],c[2].v[0],c[1].v[0]),f=wP(c[0].v[0],c[1].v[0],c[2].v[0]),h=m7-o;c[2].point[1]=0;c[0].point[0]=-(c[1].point[0]=c[0].v[0]/2);var d=[c[2].point[0]=c[0].point[0]+c[2].v[0]*a7(o),2*(c[0].point[1]=c[1].point[1]=c[2].v[0]*g7(o))];function s(t,e){var n=g7(e),r=a7(e),i=new Array(3),a;for(a=0;a<3;++a){var o=c[a];i[a]=bP(e-o[1],o[3],o[2],r,n,t-o[0]);if(!i[a][0])return o.point;i[a][1]=xP(i[a][1]-o.v[1])}var s=d.slice();for(a=0;a<3;++a){var u=a==2?0:a+1;var l=wP(c[a].v[0],i[a][0],i[u][0]);if(i[a][1]<0)l=-l;if(!a){s[0]+=i[a][0]*a7(l);s[1]-=i[a][0]*g7(l)}else if(a==1){l=f-l;s[0]-=i[a][0]*a7(l);s[1]-=i[a][0]*g7(l)}else{l=h-l;s[0]+=i[a][0]*a7(l);s[1]+=i[a][0]*g7(l)}}s[0]/=3,s[1]/=3;return s}return s}function SP(t){return t[0]*=E7,t[1]*=E7,t}function CP(){return EP([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function EP(t,e,n){var r=IR({type:"MultiPoint",coordinates:[t,e,n]}),i=[-r[0],-r[1]],a=KR(i),o=kP(SP(a(t)),SP(a(e)),SP(a(n)));o.invert=tP(o);var s=f8(o).rotate(i),u=s.center;delete s.rotate;s.center=function(t){return arguments.length?u(a(t)):a.invert(u())};return s.clipAngle(90)}function AP(t,e){var n=T7(1-g7(e));return[2/k7*t*n,k7*(1-n)]}AP.invert=function(t,e){var n=(n=e/k7-1)*n;return[n>0?t*T7(m7/n)/2:0,M7(1-n)]};function MP(){return f8(AP).scale(95.6464).center([0,30])}function RP(t){var r=v7(t);function e(t,e){return[t,(t?t/g7(t):1)*(g7(e)*a7(t)-r*a7(e))]}e.invert=r?function(t,e){if(t)e*=g7(t)/t;var n=a7(t);return[t,2*i7(T7(n*n+r*r-e*e)-n,r-e)]}:function(t,e){return[t,M7(t?e*v7(t)/t:e)]};return e}function TP(){return fP(RP).scale(249.828).clipAngle(90)}var OP=T7(3);function PP(t,e){return[OP*t*(2*a7(2*e/3)-1)/k7,OP*k7*g7(e/3)]}PP.invert=function(t,e){var n=3*M7(e/(OP*k7));return[k7*t/(OP*(2*a7(2*n/3)-1)),n]};function BP(){return f8(PP).scale(156.19)}function DP(t){var n=a7(t);function e(t,e){return[t*n,g7(e)/n]}e.invert=function(t,e){return[t/n,M7(e*n)]};return e}function NP(){return fP(DP).parallel(38.58).scale(195.044)}function zP(t){var n=a7(t);function e(t,e){return[t*n,(1+n)*v7(e/2)]}e.invert=function(t,e){return[t/n,r7(e/(1+n))*2]};return e}function FP(){return fP(zP).scale(124.75)}function jP(t,e){var n=T7(8/(3*m7));return[n*t*(1-n7(e)/m7),n*e]}jP.invert=function(t,e){var n=T7(8/(3*m7)),r=e/n;return[t/(n*(1-n7(r)/m7)),r]};function IP(){return f8(jP).scale(165.664)}function LP(t,e){var n=T7(4-3*g7(n7(e)));return[2/T7(6*m7)*t*n,d7(e)*T7(2*m7/3)*(2-n)]}LP.invert=function(t,e){var n=2-n7(e)/T7(2*m7/3);return[t*T7(6*m7)/(2*n),d7(e)*M7((4-n*n)/3)]};function HP(){return f8(LP).scale(165.664)}function UP(t,e){var n=T7(m7*(4+m7));return[2/n*t*(1+T7(1-4*e*e/(m7*m7))),4/n*e]}UP.invert=function(t,e){var n=T7(m7*(4+m7))/2;return[t*n/(1+T7(1-e*e*(4+m7)/(4*m7))),e*n/2]};function GP(){return f8(UP).scale(180.739)}function VP(t,e){var n=(2+_7)*g7(e);e/=2;for(var r=0,i=Infinity;r<10&&n7(i)>p7;r++){var a=a7(e);e-=i=(e+g7(e)*(a+2)-n)/(2*a*(1+a))}return[2/T7(m7*(4+m7))*t*(1+a7(e)),2*T7(m7/(4+m7))*g7(e)]}VP.invert=function(t,e){var n=e*T7((4+m7)/m7)/2,r=M7(n),i=a7(r);return[t/(2/T7(m7*(4+m7))*(1+i)),M7((r+n*(i+2))/(2+_7))]};function WP(){return f8(VP).scale(180.739)}function qP(t,e){return[t*(1+a7(e))/T7(2+m7),2*e/T7(2+m7)]}qP.invert=function(t,e){var n=T7(2+m7),r=e*n/2;return[n*t/(1+a7(r)),r]};function KP(){return f8(qP).scale(173.044)}function YP(t,e){var n=(1+_7)*g7(e);for(var r=0,i=Infinity;r<10&&n7(i)>p7;r++){e-=i=(e+g7(e)-n)/(1+a7(e))}n=T7(2+m7);return[t*(1+a7(e))/n,2*e/n]}YP.invert=function(t,e){var n=1+_7,r=T7(n/2);return[t*2*r/(1+a7(e*=r)),M7((e+g7(e))/n)]};function XP(){return f8(YP).scale(173.044)}var ZP=3+2*x7;function $P(t,e){var n=g7(t/=2),r=a7(t),i=T7(a7(e)),a=a7(e/=2),o=g7(e)/(a+x7*r*i),s=T7(2/(1+o*o)),u=T7((x7*a+(r+n)*i)/(x7*a+(r-n)*i));return[ZP*(s*(u-1/u)-2*u7(u)),ZP*(s*o*(u+1/u)-2*r7(o))]}$P.invert=function(t,e){if(!(a=U7.invert(t/1.2,e*1.065)))return null;var n=a[0],r=a[1],i=20,a;t/=ZP,e/=ZP;do{var o=n/2,s=r/2,u=g7(o),l=a7(o),c=g7(s),f=a7(s),h=a7(r),d=T7(h),g=c/(f+x7*l*d),v=g*g,p=T7(2/(1+v)),y=x7*f+(l+u)*d,m=x7*f+(l-u)*d,_=y/m,b=T7(_),w=b-1/b,x=b+1/b,k=p*w-2*u7(b)-t,S=p*g*x-2*r7(g)-e,C=c&&w7*d*u*v/c,E=(x7*l*f+d)/(2*(f+x7*l*d)*(f+x7*l*d)*d),A=-.5*g*p*p*p,M=A*C,R=A*E,T=(T=2*f+x7*d*(l-u))*T*b,O=(x7*l*f*d+h)/T,P=-(x7*u*c)/(d*T),B=w*M-2*O/b+p*(O+O/_),D=w*R-2*P/b+p*(P+P/_),N=g*x*M-2*C/(1+v)+p*x*C+p*g*(O-O/_),z=g*x*R-2*E/(1+v)+p*x*E+p*g*(P-P/_),F=D*N-z*B;if(!F)break;var j=(S*D-k*z)/F,I=(k*N-S*B)/F;n-=j;r=l7(-_7,c7(_7,r-I))}while((n7(j)>p7||n7(I)>p7)&&--i>0);return n7(n7(r)-_7)<p7?[0,r]:i&&[n,r]};function JP(){return f8($P).scale(62.5271)}var QP=a7(35*E7);function tB(t,e){var n=v7(e/2);return[t*QP*T7(1-n*n),(1+QP)*n]}tB.invert=function(t,e){var n=e/(1+QP);return[t&&t/(QP*T7(1-n*n)),2*r7(n)]};function eB(){return f8(tB).scale(137.152)}function nB(t,e){var n=e/2,r=a7(n);return[2*t/k7*a7(e)*r*r,k7*v7(n)]}nB.invert=function(t,e){var n=r7(e/k7),r=a7(n),i=2*n;return[t*k7/2/(a7(i)*r*r),i]};function rB(){return f8(nB).scale(135.264)}function iB(i){var a=1-i,t=r(m7,0)[0]-r(-m7,0)[0],e=r(0,_7)[1]-r(0,-_7)[1],o=T7(2*e/t);function r(t,e){var n=a7(e),r=g7(e);return[n/(a+i*n)*t,a*e+i*r]}function n(t,e){var n=r(t,e);return[n[0]*o,n[1]/o]}function s(t){return n(0,t)[1]}n.invert=function(t,e){var n=Q7(s,e),r=t/o*(i+a/a7(n));return[r,n]};return n}function aB(){var e=.5,n=h8(iB),t=n(e);t.alpha=function(t){return arguments.length?n(e=+t):e};return t.scale(168.725)}function oB(t){return[t[0]/2,M7(v7(t[1]/2*E7))*C7]}function sB(t){return[t[0]*2,2*r7(g7(t[1]*E7))*C7]}function uB(t){if(t==null)t=Z8;var n=t(),i=B8().scale(C7).precision(0).clipAngle(null).translate([0,0]);function e(t){return n(oB(t))}if(n.invert)e.invert=function(t){return sB(n.invert(t))};e.stream=function(t){var r=n.stream(t),e=i.stream({point:function t(e,n){r.point(e/2,M7(v7(-n/2*E7))*C7)},lineStart:function t(){r.lineStart()},lineEnd:function t(){r.lineEnd()},polygonStart:function t(){r.polygonStart()},polygonEnd:function t(){r.polygonEnd()}});e.sphere=r.sphere;return e};function r(t){e[t]=function(){return arguments.length?(n[t].apply(n,arguments),e):n[t]()}}e.rotate=function(t){return arguments.length?(i.rotate(t),e):i.rotate()};e.center=function(t){return arguments.length?(n.center(oB(t)),e):sB(n.center())};r("angle");r("clipAngle");r("clipExtent");r("fitExtent");r("fitHeight");r("fitSize");r("fitWidth");r("scale");r("translate");r("precision");return e.scale(249.5)}function lB(m,t){var _=2*m7/t,b=m*m;function e(t,e){var n=S8(t,e),r=n[0],i=n[1],a=r*r+i*i;if(a>b){var o=T7(a),s=i7(i,r),u=_*h7(s/_),l=s-u,c=m*a7(l),f=(m*g7(l)-l*g7(c))/(_7-c),h=cB(l,f),d=(m7-m)/fB(h,c,m7);r=o;var g=50,v;do{r-=v=(m+fB(h,c,r)*d-o)/(h(r)*d)}while(n7(v)>p7&&--g>0);i=l*g7(r);if(r<_7)i-=f*(r-_7);var p=g7(u),y=a7(u);n[0]=r*y-i*p;n[1]=r*p+i*y}return n}e.invert=function(t,e){var n=t*t+e*e;if(n>b){var r=T7(n),i=i7(e,t),a=_*h7(i/_),o=i-a;t=r*a7(o);e=r*g7(o);var s=t-_7,u=g7(t),l=e/u,c=t<_7?Infinity:0,f=10;while(true){var h=m*g7(l),d=m*a7(l),g=g7(d),v=_7-d,p=(h-l*g)/v,y=cB(l,p);if(n7(c)<y7||!--f)break;l-=c=(l*u-p*s-e)/(u-s*2*(v*(d+l*h*a7(d)-g)-h*(h-l*g))/(v*v))}r=m+fB(y,d,t)*(m7-m)/fB(y,d,m7);i=a+l;t=r*a7(i);e=r*g7(i)}return S8.invert(t,e)};return e}function cB(n,r){return function(t){var e=n*a7(t);if(t<_7)e-=r;return T7(1+e*e)}}function fB(t,e,n){var r=50,i=(n-e)/r,a=t(e)+t(n);for(var o=1,s=e;o<r;++o){a+=2*t(s+=i)}return a*.5*i}function hB(){var i=6,e=30*E7,a=a7(e),o=g7(e),n=h8(lB),s=n(e,i),u=s.stream,t=.01,l=-a7(t*E7),c=g7(t*E7);s.radius=function(t){if(!arguments.length)return e*C7;a=a7(e=t*E7);o=g7(e);return n(e,i)};s.lobes=function(t){if(!arguments.length)return i;return n(e,i=+t)};s.stream=function(t){var e=s.rotate(),n=u(t),r=(s.rotate([0,0]),u(t));s.rotate(e);n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=0,e=2*m7/i,n=0;t<i;++t,n-=e){r.point(i7(c*a7(n),l)*C7,M7(c*g7(n))*C7);r.point(i7(o*a7(n-e/2),a)*C7,M7(o*g7(n-e/2))*C7)}r.lineEnd(),r.polygonEnd()};return n};return s.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function dB(D,N,z,F,j,I,L,H){if(arguments.length<8)H=0;function t(t,e){if(!e)return[D*t/m7,0];var n=e*e,r=D+n*(N+n*(z+n*F)),i=e*(j-1+n*(I-H+n*L)),a=(r*r+i*i)/(2*i),o=t*M7(r/a)/m7;return[a*g7(o),e*(1+n*H)+a*(1-a7(o))]}t.invert=function(t,e){var n=m7*t/D,r=e,i,a,o=50;do{var s=r*r,u=D+s*(N+s*(z+s*F)),l=r*(j-1+s*(I-H+s*L)),c=u*u+l*l,f=2*l,h=c/f,d=h*h,g=M7(u/h)/m7,v=n*g,p=u*u,y=(2*N+s*(4*z+s*6*F))*r,m=j+s*(3*I+s*5*L),_=2*(u*y+l*(m-1)),b=2*(m-1),w=(_*f-c*b)/(f*f),x=a7(v),k=g7(v),S=h*x,C=h*k,E=n/m7*(1/T7(1-p/d))*(y*h-u*w)/d,A=C-t,M=r*(1+s*H)+h-S-e,R=w*k+S*E,T=S*g,O=1+w-(w*x-C*E),P=C*g,B=R*P-O*T;if(!B)break;n-=i=(M*R-A*O)/B;r-=a=(A*P-M*T)/B}while((n7(i)>p7||n7(a)>p7)&&--o>0);return[n,r]};return t}var gB=dB(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function vB(){return f8(gB).scale(149.995)}var pB=dB(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function yB(){return f8(pB).scale(153.93)}var mB=dB(5/6*m7,-.62636,-.0344,0,1.3493,-.05524,0,.045);function _B(){return f8(mB).scale(130.945)}function bB(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}bB.invert=function(t,e){var n=t,r=e,i=50,a;do{var o=r*r;r-=a=(r*(1+o/12)-e)/(1+o/4)}while(n7(a)>p7&&--i>0);i=50;t/=1-.162388*o;do{var s=(s=n*n)*s;n-=a=(n*(.87-952426e-9*s)-t)/(.87-.00476213*s)}while(n7(a)>p7&&--i>0);return[n,r]};function wB(){return f8(bB).scale(131.747)}var xB=dB(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function kB(){return f8(xB).scale(131.087)}function SB(a){var o=a(_7,0)[0]-a(-_7,0)[0];function t(t,e){var n=t>0?-.5:.5,r=a(t+n*m7,e);r[0]-=n*o;return r}if(a.invert)t.invert=function(t,e){var n=t>0?-.5:.5,r=a.invert(t+n*o,e),i=r[0]-n*m7;if(i<-m7)i+=2*m7;else if(i>m7)i-=2*m7;r[0]=i;return r};return t}function CB(t,e){var n=d7(t),r=d7(e),i=a7(e),a=a7(t)*i,o=g7(t)*i,s=g7(r*e);t=n7(i7(o,s));e=M7(a);if(n7(t-_7)>p7)t%=_7;var u=EB(t>m7/4?_7-t:t,e);if(t>m7/4)s=u[0],u[0]=-u[1],u[1]=-s;return u[0]*=n,u[1]*=-r,u}CB.invert=function(t,e){if(n7(t)>1)t=d7(t)*2-t;if(n7(e)>1)e=d7(e)*2-e;var n=d7(t),r=d7(e),i=-n*t,a=-r*e,o=a/i<1,s=AB(o?a:i,o?i:a),u=s[0],l=s[1],c=a7(l);if(o)u=-_7-u;return[n*(i7(g7(u)*c,-g7(l))+m7),r*M7(a7(u)*c)]};function EB(t,e){if(e===_7)return[0,0];var n=g7(e),r=n*n,i=r*r,a=1+i,o=1+3*i,s=1-i,u=M7(1/T7(a)),l=s+r*a*u,c=(1-n)/l,f=T7(c),h=c*a,d=T7(h),g=f*s,v,p;if(t===0)return[0,-(g+r*d)];var y=a7(e),m=1/y,_=2*n*y,b=(-3*r+u*o)*_,w=(-l*y-(1-n)*b)/(l*l),x=.5*w/f,k=s*x-2*r*f*_,S=r*a*w+c*o*_,C=-m*_,E=-m*S,A=-2*m*k,M=4*t/m7,R;if(t>.222*m7||e<m7/4&&t>.175*m7){v=(g+r*T7(h*(1+i)-g*g))/(1+i);if(t>m7/4)return[v,v];var T=v,O=.5*v;v=.5*(O+T),p=50;do{var P=T7(h-v*v),B=v*(A+C*P)+E*M7(v/d)-M;if(!B)break;if(B<0)O=v;else T=v;v=.5*(O+T)}while(n7(T-O)>p7&&--p>0)}else{v=p7,p=25;do{var D=v*v,N=T7(h-D),z=A+C*N,F=v*z+E*M7(v/d)-M,j=z+(E-C*D)/N;v-=R=N?F/j:0}while(n7(R)>p7&&--p>0)}return[v,-g-r*T7(h-v*v)]}function AB(t,e){var n=0,r=1,i=.5,a=50;while(true){var o=i*i,s=T7(i),u=M7(1/T7(1+o)),l=1-o+i*(1+o)*u,c=(1-s)/l,f=T7(c),h=c*(1+o),d=f*(1-o),g=h-t*t,v=T7(g),p=e+d+i*v;if(n7(r-n)<y7||--a===0||p===0)break;if(p>0)n=i;else r=i;i=.5*(n+r)}if(!a)return null;var y=M7(s),m=a7(y),_=1/m,b=2*s*m,w=(-3*i+u*(1+3*o))*b,x=(-l*m-(1-s)*w)/(l*l),k=.5*x/f,S=(1-o)*k-2*i*f*b,C=-2*_*S,E=-_*b,A=-_*(i*(1+o)*x+c*(1+3*o)*b);return[m7/4*(t*(C+E*v)+A*M7(t/T7(h))),y]}function MB(){return f8(SB(CB)).scale(239.75)}function RB(t,e,n){var r,i,a;if(!t){i=TB(e,1-n);return[[0,i[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}r=TB(t,n);if(!e)return[[r[0],0],[r[1],0],[r[2],0]];i=TB(e,1-n);a=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0];return[[r[0]*i[2]/a,r[1]*r[2]*i[0]*i[1]/a],[r[1]*i[1]/a,-r[0]*r[2]*i[0]*i[2]/a],[r[2]*i[1]*i[2]/a,-n*r[0]*r[1]*i[0]/a]]}function TB(t,e){var n,r,i,a,o;if(e<p7){a=g7(t);r=a7(t);n=e*(t-a*r)/4;return[a-n*r,r+n*a,1-e*a*a/2,t-n]}if(e>=1-p7){n=(1-e)/4;r=B7(t);a=O7(t);i=1/r;o=r*P7(t);return[a+n*(o-t)/(r*r),i-n*a*i*(o-t),i+n*a*i*(o+t),2*r7(o7(t))-_7+n*(o-t)/r]}var s=[1,0,0,0,0,0,0,0,0],u=[T7(e),0,0,0,0,0,0,0,0],l=0;r=T7(1-e);o=1;while(n7(u[l]/s[l])>p7&&l<8){n=s[l++];u[l]=(n-r)/2;s[l]=(n+r)/2;r=T7(n*r);o*=2}i=o*s[l]*t;do{a=u[l]*g7(r=i)/s[l];i=(M7(a)+i)/2}while(--l);return[g7(i),a=a7(i),a/a7(i-r),i]}function OB(t,e,n){var r=n7(t),i=n7(e),a=P7(i);if(r){var o=1/g7(r),s=1/(v7(r)*v7(r)),u=-(s+n*(a*a*o*o)-1+n),l=(n-1)*s,c=(-u+T7(u*u-4*l))/2;return[PB(r7(1/T7(c)),n)*d7(t),PB(r7(T7((c/s-1)/n)),1-n)*d7(e)]}return[0,PB(r7(a),1-n)*d7(e)]}function PB(t,e){if(!e)return t;if(e===1)return u7(v7(t/2+b7));var n=1,r=T7(1-e),i=T7(e);for(var a=0;n7(i)>p7;a++){if(t%m7){var o=r7(r*v7(t)/n);if(o<0)o+=m7;t+=o+~~(t/m7)*m7}else t+=t;i=(n+r)/2;r=T7(n*r);i=((n=i)-r)/2}return t/(f7(2,a)*n)}function BB(t,e){var n=(x7-1)/(x7+1),r=T7(1-n*n),i=PB(_7,r*r),a=-1,o=u7(v7(m7/4+n7(e)/2)),s=o7(a*o)/T7(n),u=DB(s*a7(a*t),s*g7(a*t)),l=OB(u[0],u[1],r*r);return[-l[1],(e>=0?1:-1)*(.5*i-l[0])]}function DB(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?_7:-_7)-i7(i,2*t)),-.25*u7(i*i+4*n)+.5*u7(r*r+n)]}function NB(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}BB.invert=function(t,e){var n=(x7-1)/(x7+1),r=T7(1-n*n),i=PB(_7,r*r),a=-1,o=RB(.5*i-e,-t,r*r),s=NB(o[0],o[1]),u=i7(s[1],s[0])/a;return[u,2*r7(o7(.5/a*u7(n*s[0]*s[0]+n*s[1]*s[1])))-_7]};function zB(){return f8(SB(BB)).scale(151.496)}function FB(t){var f=g7(t),l=a7(t),h=jB(t);h.invert=jB(-t);function e(t,e){var n=h(t,e);t=n[0],e=n[1];var r=g7(e),i=a7(e),a=a7(t),o=R7(f*r+l*i*a),s=g7(o),u=n7(s)>p7?o/s:1;return[u*l*g7(t),(n7(t)>_7?u:-u)*(f*i-l*r*a)]}e.invert=function(t,e){var n=T7(t*t+e*e),r=-g7(n),i=a7(n),a=n*i,o=-e*r,s=n*f,u=T7(a*a+o*o-s*s),l=i7(a*s+o*u,o*s-a*u),c=(n>_7?-1:1)*i7(t*r,n*a7(l)*i+e*g7(l)*r);return h.invert(c,l)};return e}function jB(t){var o=g7(t),s=a7(t);return function(t,e){var n=a7(e),r=a7(t)*n,i=g7(t)*n,a=g7(e);return[i7(i,r*s-a*o),M7(a*s+r*o)]}}function IB(){var n=0,r=h8(FB),i=r(n),e=i.rotate,t=i.stream,o=ZR();i.parallel=function(t){if(!arguments.length)return n*C7;var e=i.rotate();return r(n=t*E7).rotate(e)};i.rotate=function(t){if(!arguments.length)return t=e.call(i),t[1]+=n*C7,t;e.call(i,[t[0],t[1]-n*C7]);o.center([-t[0],-t[1]]);return i};i.stream=function(a){a=t(a);a.sphere=function(){a.polygonStart();var t=.01,e=o.radius(90-t)().coordinates[0],n=e.length-1,r=-1,i;a.lineStart();while(++r<n){a.point((i=e[r])[0],i[1])}a.lineEnd();e=o.radius(90+t)().coordinates[0];n=e.length-1;a.lineStart();while(--r>=0){a.point((i=e[r])[0],i[1])}a.lineEnd();a.polygonEnd()};return a};return i.scale(79.4187).parallel(45).clipAngle(180-.001)}var LB=3,HB=M7(1-1/LB)*C7,UB=DP(0);function GB(a){var o=HB*E7,s=AP(m7,o)[0]-AP(-m7,o)[0],u=UB(0,o)[1],l=AP(0,o)[1],c=k7-l,f=S7/a,h=4/S7,d=u+c*c*4/S7;function t(t,e){var n,r=n7(e);if(r>o){var i=c7(a-1,l7(0,s7((t+m7)/f)));t+=m7*(a-1)/a-i*f;n=AP(t,r);n[0]=n[0]*S7/s-S7*(a-1)/(2*a)+i*S7/a;n[1]=u+(n[1]-l)*4*c/S7;if(e<0)n[1]=-n[1]}else{n=UB(t,e)}n[0]*=h,n[1]/=d;return n}t.invert=function(t,e){t/=h,e*=d;var n=n7(e);if(n>u){var r=c7(a-1,l7(0,s7((t+m7)/f)));t=(t+m7*(a-1)/a-r*f)*s/S7;var i=AP.invert(t,.25*(n-u)*S7/c+l);i[0]-=m7*(a-1)/a-r*f;if(e<0)i[1]=-i[1];return i}return UB.invert(t,e)};return t}function VB(t,e){return[t,e&1?90-p7:HB]}function WB(t,e){return[t,e&1?-90+p7:-HB]}function qB(t){return[t[0]*(1-p7),t[1]]}function KB(t){var e=[].concat(Nb(-180,180+t/2,t).map(VB),Nb(180,-180-t/2,-t).map(WB));return{type:"Polygon",coordinates:[t===180?e.map(qB):e]}}function YB(){var i=4,e=h8(GB),a=e(i),o=a.stream;a.lobes=function(t){return arguments.length?e(i=+t):i};a.stream=function(t){var e=a.rotate(),n=o(t),r=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){xM(KB(180/i),r)};return n};return a.scale(239.75)}function XB(h){var d=1+h,t=g7(1/d),g=M7(t),v=2*T7(m7/(p=m7+4*g*d)),p,y=.5*v*(d+T7(h*(2+h))),m=h*h,_=d*d;function e(t,e){var n=1-g7(e),r,i;if(n&&n<2){var a=_7-e,o=25,s;do{var u=g7(a),l=a7(a),c=g+i7(u,d-l),f=1+_-2*d*l;a-=s=(a-m*g-d*u+f*c-.5*n*p)/(2*d*u*c)}while(n7(s)>y7&&--o>0);r=v*T7(f);i=t*c/m7}else{r=v*(h+n);i=t*g/m7}return[r*g7(i),y-r*a7(i)]}e.invert=function(t,e){var n=t*t+(e-=y)*e,r=(1+_-n/(v*v))/(2*d),i=R7(r),a=g7(i),o=g+i7(a,d-r);return[M7(t/T7(n))*m7/o,M7(1-2*(i-m*g-d*a+(1+_-2*d*r)*o)/p)]};return e}function ZB(){var e=1,n=h8(XB),t=n(e);t.ratio=function(t){return arguments.length?n(e=+t):e};return t.scale(167.774).center([0,18.67])}var $B=.7109889596207567;var JB=.0528035274542;function QB(t,e){return e>-$B?(t=aP(t,e),t[1]+=JB,t):hP(t,e)}QB.invert=function(t,e){return e>-$B?aP.invert(t,e-JB):hP.invert(t,e)};function tD(){return f8(QB).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function eD(t,e){return n7(e)>$B?(t=aP(t,e),t[1]-=e>0?JB:-JB,t):hP(t,e)}eD.invert=function(t,e){return n7(e)>$B?aP.invert(t,e+(e>0?JB:-JB)):hP.invert(t,e)};function nD(){return f8(eD).scale(152.63)}function rD(n,r,a,t){var o=T7(4*m7/(2*a+(1+n-r/2)*g7(2*a)+(n+r)/2*g7(4*a)+r/2*g7(6*a))),s=T7(t*g7(a)*T7((1+n*a7(2*a)+r*a7(4*a))/(1+n+r))),u=a*c(1);function l(t){return T7(1+n*a7(2*t)+r*a7(4*t))}function c(t){var e=t*a;return(2*e+(1+n-r/2)*g7(2*e)+(n+r)/2*g7(4*e)+r/2*g7(6*e))/a}function i(t){return l(t)*g7(t)}var e=function t(e,n){var r=a*Q7(c,u*g7(n)/a,n/m7);if(isNaN(r))r=a*d7(n);var i=o*l(r);return[i*s*e/m7*a7(r),i/s*g7(r)]};e.invert=function(t,e){var n=Q7(i,e*s/o);return[t*m7/(a7(n)*o*s*l(n)),M7(a*c(n/a)/u)]};if(a===0){o=T7(t/m7);e=function t(e,n){return[e*o,g7(n)/o]};e.invert=function(t,e){return[t/o,M7(e*o)]}}return e}function iD(){var e=1,n=0,r=45*E7,i=2,a=h8(rD),t=a(e,n,r,i);t.a=function(t){return arguments.length?a(e=+t,n,r,i):e};t.b=function(t){return arguments.length?a(e,n=+t,r,i):n};t.psiMax=function(t){return arguments.length?a(e,n,r=+t*E7,i):r*C7};t.ratio=function(t){return arguments.length?a(e,n,r,i=+t):i};return t.scale(180.739)}function aD(t,e,n,r,i,a,o,s,u,l,c){if(c.nanEncountered){return NaN}var f,h,d,g,v,p,y,m,_,b;f=n-e;h=t(e+f*.25);d=t(n-f*.25);if(isNaN(h)){c.nanEncountered=true;return}if(isNaN(d)){c.nanEncountered=true;return}g=f*(r+4*h+i)/12;v=f*(i+4*d+a)/12;p=g+v;b=(p-o)/15;if(l>u){c.maxDepthCount++;return p+b}else if(Math.abs(b)<s){return p+b}else{y=e+f*.5;m=aD(t,e,y,r,h,i,g,s*.5,u,l+1,c);if(isNaN(m)){c.nanEncountered=true;return NaN}_=aD(t,y,n,i,d,a,v,s*.5,u,l+1,c);if(isNaN(_)){c.nanEncountered=true;return NaN}return m+_}}function oD(t,e,n,r,i){var a={maxDepthCount:0,nanEncountered:false};if(r===undefined){r=1e-8}if(i===undefined){i=20}var o=t(e);var s=t(.5*(e+n));var u=t(n);var l=(o+4*s+u)*(n-e)/6;var c=aD(t,e,n,o,s,u,l,r,i,1,a);return c}function sD(e,n,t){function a(t){return e+(1-e)*f7(1-f7(t,n),1/n)}function r(t){return oD(a,0,t,1e-4)}var i=1/r(1),o=1e3,s=(1+1e-8)*i,u=[];for(var l=0;l<=o;l++){u.push(r(l/o)*s)}function c(t){var e=0,n=o,r=o>>1;do{if(u[r]>t)n=r;else e=r;r=e+n>>1}while(r>e);var i=u[r+1]-u[r];if(i)i=(t-u[r+1])/i;return(r+1+i)/o}var f=2*c(1)/m7*i/t;var h=function t(e,n){var r=c(n7(g7(n))),i=a(r)*e;r/=f;return[i,n>=0?r:-r]};h.invert=function(t,e){var n;e*=f;if(n7(e)<1)n=d7(e)*M7(r(n7(e))*i);return[t/a(n7(e)),n]};return h}function uD(){var e=0,n=2.5,r=1.183136,i=h8(sD),t=i(e,n,r);t.alpha=function(t){return arguments.length?i(e=+t,n,r):e};t.k=function(t){return arguments.length?i(e,n=+t,r):n};t.gamma=function(t){return arguments.length?i(e,n,r=+t):r};return t.scale(152.63)}function lD(t,e){return n7(t[0]-e[0])<p7&&n7(t[1]-e[1])<p7}function cD(t,e){var n=-1,r=t.length,i=t[0],a,o,s,u=[];while(++n<r){a=t[n];o=(a[0]-i[0])/e;s=(a[1]-i[1])/e;for(var l=0;l<e;++l){u.push([i[0]+l*o,i[1]+l*s])}i=a}u.push(a);return u}function fD(t){var e=[],n,r,i,a,o,s,u,l=t[0].length;for(u=0;u<l;++u){n=t[0][u];r=n[0][0],i=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(cD([[r+p7,i+p7],[r+p7,a-p7],[o-p7,a-p7],[o-p7,s+p7]],30))}for(u=t[1].length-1;u>=0;--u){n=t[1][u];r=n[0][0],i=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(cD([[o-p7,s-p7],[o-p7,a+p7],[r+p7,a+p7],[r+p7,i-p7]],30))}return{type:"Polygon",coordinates:[Db(e)]}}function hD(u,l,t){var i,c;function f(t,e){var n=e<0?-1:+1,r=l[+(e<0)];for(var i=0,a=r.length-1;i<a&&t>r[i][2][0];++i){}var o=u(t-r[i][1][0],e);o[0]+=u(r[i][1][0],n*e>n*r[i][0][1]?r[i][0][1]:e)[0];return o}if(t){f.invert=t(f)}else if(u.invert){f.invert=function(t,e){var n=c[+(e<0)],r=l[+(e<0)];for(var i=0,a=n.length;i<a;++i){var o=n[i];if(o[0][0]<=t&&t<o[1][0]&&o[0][1]<=e&&e<o[1][1]){var s=u.invert(t-u(r[i][1][0],0)[0],e);s[0]+=r[i][1][0];return lD(f(s[0],s[1]),[t,e])?s:null}}}}var a=f8(f),o=a.stream;a.stream=function(t){var e=a.rotate(),n=o(t),r=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){xM(i,r)};return n};a.lobes=function(t){if(!arguments.length)return l.map(function(t){return t.map(function(t){return[[t[0][0]*C7,t[0][1]*C7],[t[1][0]*C7,t[1][1]*C7],[t[2][0]*C7,t[2][1]*C7]]})});i=fD(t);l=t.map(function(t){return t.map(function(t){return[[t[0][0]*E7,t[0][1]*E7],[t[1][0]*E7,t[1][1]*E7],[t[2][0]*E7,t[2][1]*E7]]})});c=l.map(function(t){return t.map(function(t){var e=u(t[0][0],t[0][1])[0],n=u(t[2][0],t[2][1])[0],r=u(t[1][0],t[0][1])[1],i=u(t[1][0],t[1][1])[1],a;if(r>i)a=r,r=i,i=a;return[[e,r],[n,i]]})});return a};if(l!=null)a.lobes(l);return a}var dD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function gD(){return hD(lP,dD).scale(160.857)}var vD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function pD(){return hD(eD,vD).scale(152.63)}var yD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function mD(){return hD(aP,yD).scale(169.529)}var _D=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function bD(){return hD(aP,_D).scale(169.529).rotate([20,0])}var wD=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function xD(){return hD(QB,wD,tP).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var kD=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function SD(){return hD(hP,kD).scale(152.63).rotate([-20,0])}function CD(t,e){return[3/S7*t*T7(m7*m7/3-e*e),e]}CD.invert=function(t,e){return[S7/3*t/T7(m7*m7/3-e*e),e]};function ED(){return f8(CD).scale(158.837)}function AD(o){function t(t,e){if(n7(n7(e)-_7)<p7)return[0,e<0?-2:2];var n=g7(e),r=f7((1+n)/(1-n),o/2),i=.5*(r+1/r)+a7(t*=o);return[2*g7(t)/i,(r-1/r)/i]}t.invert=function(t,e){var n=n7(e);if(n7(n-2)<p7)return t?null:[0,d7(e)*_7];if(n>2)return null;t/=2,e/=2;var r=t*t,i=e*e,a=2*e/(1+r+i);a=f7((1+a)/(1-a),1/o);return[i7(2*t,1-r-i)/o,M7((a-1)/(a+1))]};return t}function MD(){var e=.5,n=h8(AD),t=n(e);t.spacing=function(t){return arguments.length?n(e=+t):e};return t.scale(124.75)}var RD=m7/x7;function TD(t,e){return[t*(1+T7(a7(e)))/2,e/(a7(e/2)*a7(t/6))]}TD.invert=function(t,e){var n=n7(t),r=n7(e),i=p7,a=_7;if(r<RD)a*=r/RD;else i+=6*R7(RD/r);for(var o=0;o<25;o++){var s=g7(a),u=T7(a7(a)),l=g7(a/2),c=a7(a/2),f=g7(i/6),h=a7(i/6),d=.5*i*(1+u)-n,g=a/(c*h)-r,v=u?-.25*i*s/u:0,p=.5*(1+u),y=(1+.5*a*l/c)/(c*h),m=a/c*(f/6)/(h*h),_=v*m-y*p,b=(d*m-g*p)/_,w=(g*v-d*y)/_;a-=b;i-=w;if(n7(b)<p7&&n7(w)<p7)break}return[t<0?-i:i,e<0?-a:a]};function OD(){return f8(TD).scale(97.2672)}function PD(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.119161+n*-.0143059+r*-.0547009)),e*(1.00384+n*(.0802894+r*-.02855+n*199025e-9)+r*(.0998909+r*-.0491032))]}PD.invert=function(t,e){var n=d7(t)*m7,r=e/2,i=50;do{var a=n*n,o=r*r,s=n*r,u=n*(.975534+o*(-.119161+a*-.0143059+o*-.0547009))-t,l=r*(1.00384+a*(.0802894+o*-.02855+a*199025e-9)+o*(.0998909+o*-.0491032))-e,c=.975534-o*(.119161+3*a*.0143059+o*.0547009),f=-s*(2*.119161+4*.0547009*o+2*.0143059*a),h=s*(2*.0802894+4*199025e-9*a+2*-.02855*o),d=1.00384+a*(.0802894+199025e-9*a)+o*(3*(.0998909-.02855*a)-5*.0491032*o),g=f*h-d*c,v=(l*f-u*d)/g,p=(u*h-l*c)/g;n-=v,r-=p}while((n7(v)>p7||n7(p)>p7)&&--i>0);return i&&[n,r]};function BD(){return f8(PD).scale(139.98)}function DD(t,e){return[g7(t)/a7(e),v7(e)*a7(t)]}DD.invert=function(t,e){var n=t*t,r=e*e,i=r+1,a=n+i,o=t?w7*T7((a-T7(a*a-4*n))/n):1/T7(i);return[M7(t*o),d7(e)*R7(o)]};function ND(){return f8(DD).scale(144.049).clipAngle(90-.001)}function zD(i){var a=a7(i),o=v7(b7+i/2);function t(t,e){var n=e-i,r=n7(n)<p7?t*a:n7(r=b7+e/2)<p7||n7(n7(r)-_7)<p7?0:t*n/u7(v7(r)/o);return[r,n]}t.invert=function(t,e){var n,r=e+i;return[n7(e)<p7?t/a:n7(n=b7+r/2)<p7||n7(n7(n)-_7)<p7?0:t*u7(v7(n)/o)/e,r]};return t}function FD(){return fP(zD).parallel(40).scale(158.837)}function jD(t,e){return[t,1.25*u7(v7(b7+.4*e))]}jD.invert=function(t,e){return[t,2.5*r7(o7(.8*e))-.625*m7]};function ID(){return f8(jD).scale(108.318)}function LD(m){var _=m.length-1;function t(t,e){var n=a7(e),r=2/(1+n*a7(t)),i=r*n*g7(t),a=r*g7(e),o=_,s=m[o],u=s[0],l=s[1],c;while(--o>=0){s=m[o];u=s[0]+i*(c=u)-a*l;l=s[1]+i*l+a*c}u=i*(c=u)-a*l;l=i*l+a*c;return[u,l]}t.invert=function(t,e){var n=20,r=t,i=e;do{var a=_,o=m[a],s=o[0],u=o[1],l=0,c=0,f;while(--a>=0){o=m[a];l=s+r*(f=l)-i*c;c=u+r*c+i*f;s=o[0]+r*(f=s)-i*u;u=o[1]+r*u+i*f}l=s+r*(f=l)-i*c;c=u+r*c+i*f;s=r*(f=s)-i*u-t;u=r*u+i*f-e;var h=l*l+c*c,d,g;r-=d=(s*l+u*c)/h;i-=g=(u*l-s*c)/h}while(n7(d)+n7(g)>p7*p7&&--n>0);if(n){var v=T7(r*r+i*i),p=2*r7(v*.5),y=g7(p);return[i7(r*y,v*a7(p)),v?M7(i*y/v):0]}};return t}var HD=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],UD=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],GD=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],VD=[[.9245,0],[0,0],[.01943,0]],WD=[[.721316,0],[0,0],[-.00881625,-.00617325]];function qD(){return $D(HD,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function KD(){return $D(UD,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function YD(){return $D(GD,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function XD(){return $D(VD,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function ZD(){return $D(WD,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function $D(t,e){var n=f8(LD(t)).rotate(e).clipAngle(90),r=KR(e),i=n.center;delete n.rotate;n.center=function(t){return arguments.length?i(r(t)):r.invert(i())};return n}var JD=T7(6),QD=T7(7);function tN(t,e){var n=M7(7*g7(e)/(3*JD));return[JD*t*(2*a7(2*n/3)-1)/QD,9*g7(n/3)/QD]}tN.invert=function(t,e){var n=3*M7(e*QD/9);return[t*QD/(JD*(2*a7(2*n/3)-1)),M7(g7(n)*3*JD/7)]};function eN(){return f8(tN).scale(164.859)}function nN(t,e){var n=(1+w7)*g7(e),r=e;for(var i=0,a;i<25;i++){r-=a=(g7(r/2)+g7(r)-n)/(.5*a7(r/2)+a7(r));if(n7(a)<p7)break}return[t*(1+2*a7(r)/a7(r/2))/(3*x7),2*T7(3)*g7(r/2)/T7(2+x7)]}nN.invert=function(t,e){var n=e*T7(2+x7)/(2*T7(3)),r=2*M7(n);return[3*x7*t/(1+2*a7(r)/a7(r/2)),M7((n+g7(r))/(1+w7))]};function rN(){return f8(nN).scale(188.209)}function iN(t,e){var n=T7(6/(4+m7)),r=(1+m7/4)*g7(e),i=e/2;for(var a=0,o;a<25;a++){i-=o=(i/2+g7(i)-r)/(.5+a7(i));if(n7(o)<p7)break}return[n*(.5+a7(i))*t/1.5,n*i]}iN.invert=function(t,e){var n=T7(6/(4+m7)),r=e/n;if(n7(n7(r)-_7)<p7)r=r<0?-_7:_7;return[1.5*t/(n*(.5+a7(r))),M7((r/2+g7(r))/(1+m7/4))]};function aN(){return f8(iN).scale(166.518)}function oN(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(-.04515+.05494*n-.02326*r+.00331*i)),e*(1.01183+r*r*(-.02625+.01926*n-.00396*r))]}oN.invert=function(t,e){var n=e,r=25,i,a,o,s;do{a=n*n;o=a*a;n-=i=(n*(1.01183+o*o*(-.02625+.01926*a-.00396*o))-e)/(1.01183+o*o*(9*-.02625+11*.01926*a+13*-.00396*o))}while(n7(i)>y7&&--r>0);a=n*n;o=a*a;s=a*o;return[t/(.84719-.13063*a+s*s*(-.04515+.05494*a-.02326*o+.00331*s)),n]};function sN(){return f8(oN).scale(175.295)}function uN(t,e){return[t*(1+a7(e))/2,2*(e-v7(e/2))]}uN.invert=function(t,e){var n=e/2;for(var r=0,i=Infinity;r<10&&n7(i)>p7;++r){var a=a7(e/2);e-=i=(e-v7(e/2)-n)/(1-.5/(a*a))}return[2*t/(1+a7(e)),e]};function lN(){return f8(uN).scale(152.63)}var cN=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function fN(){return hD(Z7(Infinity),cN).rotate([20,0]).scale(152.63)}function hN(t,e){var n=g7(e),r=a7(e),i=d7(t);if(t===0||n7(e)===_7)return[0,e];else if(e===0)return[t,0];else if(n7(t)===_7)return[t*r,_7*n];var a=m7/(2*t)-2*t/m7,o=2*e/m7,s=(1-o*o)/(n-o);var u=a*a,l=s*s,c=1+u/l,f=1+l/u;var h=(a*n/s-a/2)/c,d=(l*n/u+s/2)/f,g=h*h+r*r/c,v=d*d-(l*n*n/u+s*n-1)/f;return[_7*(h+T7(g)*i),_7*(d+T7(v<0?0:v)*d7(-e*a)*i)]}hN.invert=function(t,e){t/=_7;e/=_7;var n=t*t,r=e*e,i=n+r,a=m7*m7;return[t?(i-1+T7((1-i)*(1-i)+4*n))/(2*t)*_7:0,Q7(function(t){return i*(m7*g7(t)-2*t)*m7+4*t*t*(e-g7(t))+2*m7*t-a*e},0)]};function dN(){return f8(hN).scale(127.267)}var gN=1.0148,vN=.23185,pN=-.14499,yN=.02406,mN=gN,_N=5*vN,bN=7*pN,wN=9*yN,xN=1.790857183;function kN(t,e){var n=e*e;return[t,e*(gN+n*n*(vN+n*(pN+yN*n)))]}kN.invert=function(t,e){if(e>xN)e=xN;else if(e<-xN)e=-xN;var n=e,r;do{var i=n*n;n-=r=(n*(gN+i*i*(vN+i*(pN+yN*i)))-e)/(mN+i*i*(_N+i*(bN+wN*i)))}while(n7(r)>p7);return[t,n]};function SN(){return f8(kN).scale(139.319)}function CN(t,e){if(n7(e)<p7)return[t,0];var n=v7(e),r=t*g7(e);return[g7(r)/n,e+(1-a7(r))/n]}CN.invert=function(t,e){if(n7(e)<p7)return[t,0];var n=t*t+e*e,r=e*.5,i=10,a;do{var o=v7(r),s=1/a7(r),u=n-2*e*r+r*r;r-=a=(o*u+2*(r-e))/(2+u*s*s+2*(r-e)*o)}while(n7(a)>p7&&--i>0);o=v7(r);return[(n7(e)<n7(r+1/o)?M7(t*o):d7(e)*d7(t)*(R7(n7(t*o))+_7))/g7(r),r]};function EN(){return f8(CN).scale(103.74)}function AN(t,e){var n=TN(t[1],t[0]),r=TN(e[1],e[0]),i=PN(n,r),a=ON(n)/ON(r);return RN([1,0,t[0][0],0,1,t[0][1]],RN([a,0,0,0,a,0],RN([a7(i),g7(i),0,-g7(i),a7(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function MN(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function RN(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function TN(t,e){return[t[0]-e[0],t[1]-e[1]]}function ON(t){return T7(t[0]*t[0]+t[1]*t[1])}function PN(t,e){return i7(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}function BN(i,a){s(i,{transform:null});function s(e,t){e.edges=FN(e.face);if(t.face){var n=e.shared=zN(e.face,t.face),r=AN(n.map(t.project),n.map(e.project));e.transform=t.transform?RN(t.transform,r):r;var i=t.edges;for(var a=0,o=i.length;a<o;++a){if(NN(n[0],i[a][1])&&NN(n[1],i[a][0]))i[a]=e;if(NN(n[0],i[a][0])&&NN(n[1],i[a][1]))i[a]=e}i=e.edges;for(a=0,o=i.length;a<o;++a){if(NN(n[0],i[a][0])&&NN(n[1],i[a][1]))i[a]=t;if(NN(n[0],i[a][1])&&NN(n[1],i[a][0]))i[a]=t}}else{e.transform=t.transform}if(e.children){e.children.forEach(function(t){s(t,e)})}return e}function t(t,e){var n=a(t,e),r=n.project([t*C7,e*C7]),i;if(i=n.transform){return[i[0]*r[0]+i[1]*r[1]+i[2],-(i[3]*r[0]+i[4]*r[1]+i[5])]}r[1]=-r[1];return r}if(jN(i))t.invert=function(t,e){var n=l(i,[t,-e]);return n&&(n[0]*=E7,n[1]*=E7,n)};function l(t,e){var n=t.project.invert,r=t.transform,i=e;if(r){r=MN(r);i=[r[0]*i[0]+r[1]*i[1]+r[2],r[3]*i[0]+r[4]*i[1]+r[5]]}if(n&&t===c(a=n(i)))return a;var a,o=t.children;for(var s=0,u=o&&o.length;s<u;++s){if(a=l(o[s],e))return a}}function c(t){return a(t[0]*E7,t[1]*E7)}var o=f8(t),u=o.stream;o.stream=function(t){var e=o.rotate(),n=u(t),r=(o.rotate([0,0]),u(t));o.rotate(e);n.sphere=function(){r.polygonStart();r.lineStart();DN(r,i);r.lineEnd();r.polygonEnd()};return n};return o.angle(-30)}function DN(t,e,n){var r,i=e.edges,a=i.length,o,s={type:"MultiPoint",coordinates:e.face},u=e.face.filter(function(t){return n7(t[1])!==90}),l=fR({type:"MultiPoint",coordinates:u}),c=false,f=-1,h=l[1][0]-l[0][0];var d=h===180||h===360?[(l[0][0]+l[1][0])/2,(l[0][1]+l[1][1])/2]:IR(s);if(n)while(++f<a){if(i[f]===n)break}++f;for(var g=0;g<a;++g){o=i[(g+f)%a];if(Array.isArray(o)){if(!c){t.point((r=GT(o[0],d)(p7))[0],r[1]);c=true}t.point((r=GT(o[1],d)(p7))[0],r[1])}else{c=false;if(o!==n)DN(t,o,e)}}}function NN(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function zN(t,e){var n,r,i=t.length,a=null;for(var o=0;o<i;++o){n=t[o];for(var s=e.length;--s>=0;){r=e[s];if(n[0]===r[0]&&n[1]===r[1]){if(a)return[a,n];a=n}}}}function FN(t){var e=t.length,n=[];for(var r=t[e-1],i=0;i<e;++i){n.push([r,r=t[i]])}return n}function jN(t){return t.project.invert||t.children&&t.children.some(jN)}var IN=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];var LN=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return IN[t]})});function HN(e){e=e||function(t){var e=IR({type:"MultiPoint",coordinates:t});return W8().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var r=LN.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])});return BN(r[0],function(t,e){return r[t<-m7/2?e<0?6:4:t<0?e<0?2:0:t<m7/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var UN=2/T7(3);function GN(t,e){var n=AP(t,e);return[n[0]*UN,n[1]]}GN.invert=function(t,e){return AP.invert(t/UN,e)};function VN(e){e=e||function(t){var e=IR({type:"MultiPoint",coordinates:t});return f8(GN).translate([0,0]).scale(1).rotate(e[1]>0?[-e[0],0]:[180-e[0],180])};var r=LN.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])});return BN(r[0],function(t,e){return r[t<-m7/2?e<0?6:4:t<0?e<0?2:0:t<m7/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function WN(e){e=e||function(t){var e=t.length===6?IR({type:"MultiPoint",coordinates:t}):t[0];return W8().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var o=LN.map(function(t){var e=t.map(XN),n=e.length,r=e[n-1],i,a=[];for(var o=0;o<n;++o){i=e[o];a.push(YN([r[0]*.9486832980505138+i[0]*.31622776601683794,r[1]*.9486832980505138+i[1]*.31622776601683794,r[2]*.9486832980505138+i[2]*.31622776601683794]),YN([i[0]*.9486832980505138+r[0]*.31622776601683794,i[1]*.9486832980505138+r[1]*.31622776601683794,i[2]*.9486832980505138+r[2]*.31622776601683794]));r=i}return a});var s=[];var u=[-1,0,0,1,0,1,4,5];o.forEach(function(t,e){var n=LN[e],r=n.length,i=s[e]=[];for(var a=0;a<r;++a){o.push([n[a],t[(a*2+2)%(2*r)],t[(a*2+1)%(2*r)]]);u.push(e);i.push(KN(XN(t[(a*2+2)%(2*r)]),XN(t[(a*2+1)%(2*r)])))}});var l=o.map(function(t){return{project:e(t),face:t}});u.forEach(function(t,e){var n=l[t];n&&(n.children||(n.children=[])).push(l[e])});function t(t,e){var n=a7(e),r=[n*a7(t),n*g7(t),g7(e)];var i=t<-m7/2?e<0?6:4:t<0?e<0?2:0:t<m7/2?e<0?3:1:e<0?7:5;var a=s[i];return l[qN(a[0],r)<0?8+3*i:qN(a[1],r)<0?8+3*i+1:qN(a[2],r)<0?8+3*i+2:i]}return BN(l[0],t).angle(-30).scale(110.625).center([0,45])}function qN(t,e){for(var n=0,r=t.length,i=0;n<r;++n){i+=t[n]*e[n]}return i}function KN(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function YN(t){return[i7(t[1],t[0])*C7,M7(l7(-1,c7(1,t[2])))*C7]}function XN(t){var e=t[0]*E7,n=t[1]*E7,r=a7(n);return[r*a7(e),r*g7(e),g7(n)]}var ZN=function t(){};function $N(t){if((n=t.length)<4)return false;var e=0,n,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++e<n){r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1]}return r<=0}function JN(t,e){var n=e[0],r=e[1],i=false;for(var a=0,o=t.length,s=o-1;a<o;s=a++){var u=t[a],l=u[0],c=u[1],f=t[s],h=f[0],d=f[1];if(c>r^d>r&&n<(h-l)*(r-c)/(d-c)+l)i=!i}return i}function QN(t,e){var n=e.stream,r;if(!n)throw new Error("invalid projection");switch(t&&t.type){case"Feature":r=ez;break;case"FeatureCollection":r=tz;break;default:r=rz;break}return r(t,n)}function tz(t,e){return{type:"FeatureCollection",features:t.features.map(function(t){return ez(t,e)})}}function ez(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:rz(t.geometry,e)}}function nz(t,e){return{type:"GeometryCollection",geometries:t.geometries.map(function(t){return rz(t,e)})}}function rz(t,e){if(!t)return null;if(t.type==="GeometryCollection")return nz(t,e);var n;switch(t.type){case"Point":n=oz;break;case"MultiPoint":n=oz;break;case"LineString":n=sz;break;case"MultiLineString":n=sz;break;case"Polygon":n=uz;break;case"MultiPolygon":n=uz;break;case"Sphere":n=uz;break;default:return null}xM(t,e(n));return n.result()}var iz=[],az=[];var oz={point:function t(e,n){iz.push([e,n])},result:function t(){var t=!iz.length?null:iz.length<2?{type:"Point",coordinates:iz[0]}:{type:"MultiPoint",coordinates:iz};iz=[];return t}};var sz={lineStart:ZN,point:function t(e,n){iz.push([e,n])},lineEnd:function t(){if(iz.length)az.push(iz),iz=[]},result:function t(){var t=!az.length?null:az.length<2?{type:"LineString",coordinates:az[0]}:{type:"MultiLineString",coordinates:az};az=[];return t}};var uz={polygonStart:ZN,lineStart:ZN,point:function t(e,n){iz.push([e,n])},lineEnd:function t(){var e=iz.length;if(e){do{iz.push(iz[0].slice())}while(++e<4);az.push(iz),iz=[]}},polygonEnd:ZN,result:function t(){if(!az.length)return null;var r=[],e=[];az.forEach(function(t){if($N(t))r.push([t]);else e.push(t)});e.forEach(function(e){var n=e[0];r.some(function(t){if(JN(t[0],n)){t.push(e);return true}})||r.push([e])});az=[];return!r.length?null:r.length>1?{type:"MultiPolygon",coordinates:r}:{type:"Polygon",coordinates:r[0]}}};function lz(c){var f=c(_7,0)[0]-c(-_7,0)[0];function t(t,e){var n=n7(t)<_7,r=c(n?t:t>0?t-m7:t+m7,e),i=(r[0]-r[1])*w7,a=(r[0]+r[1])*w7;if(n)return[i,a];var o=f*w7,s=i>0^a>0?-1:1;return[s*i-d7(a)*o,s*a-d7(i)*o]}if(c.invert)t.invert=function(t,e){var n=(t+e)*w7,r=(e-t)*w7,i=n7(n)<.5*f&&n7(r)<.5*f;if(!i){var a=f*w7,o=n>0^r>0?-1:1,s=-o*t+(r>0?1:-1)*a,u=-o*e+(n>0?1:-1)*a;n=(-s-u)*w7;r=(s-u)*w7}var l=c.invert(n,r);if(!i)l[0]+=n>0?m7:-m7;return l};return f8(t).rotate([-90,-90,45]).clipAngle(180-.001)}function cz(){return lz(CB).scale(176.423)}function fz(){return lz(BB).scale(111.48)}function hz(t,i){if(!(0<=(i=+i)&&i<=20))throw new Error("invalid digits");function a(t){var e=t.length,n=2,r=new Array(e);r[0]=+t[0].toFixed(i);r[1]=+t[1].toFixed(i);while(n<e){r[n]=t[n],++n}return r}function n(t){return t.map(a)}function r(t){var e=a(t[0]);var n=[e];for(var r=1;r<t.length;r++){var i=a(t[r]);if(i.length>2||i[0]!=e[0]||i[1]!=e[1]){n.push(i);e=i}}if(n.length===1&&t.length>1){n.push(a(t[t.length-1]))}return n}function o(t){return t.map(r)}function s(t){if(t==null)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(s)};break;case"Point":e={type:"Point",coordinates:a(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(o)};break;default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function e(t){var e={type:"Feature",properties:t.properties,geometry:s(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;return e}if(t!=null)switch(t.type){case"Feature":return e(t);case"FeatureCollection":{var u={type:"FeatureCollection",features:t.features.map(e)};if(t.bbox!=null)u.bbox=t.bbox;return u}default:return s(t)}return t}function dz(f){var h=g7(f);function t(t,e){var n=h?v7(t*h/2)/h:t/2;if(!e)return[2*n,-f];var r=2*r7(n*g7(e)),i=1/v7(e);return[g7(r)*i,e+(1-a7(r))*i-f]}t.invert=function(t,e){if(n7(e+=f)<p7)return[h?2*r7(h*t/2)/h:t,0];var n=t*t+e*e,r=0,i=10,a;do{var o=v7(r),s=1/a7(r),u=n-2*e*r+r*r;r-=a=(o*u+2*(r-e))/(2+u*s*s+2*(r-e)*o)}while(n7(a)>p7&&--i>0);var l=t*(o=v7(r)),c=v7(n7(e)<n7(r+1/o)?M7(l)*.5:R7(l)*.5+m7/4)/g7(r);return[h?2*r7(h*c)/h:2*c,r]};return t}function gz(){return fP(dz).scale(131.215)}var vz=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];vz.forEach(function(t){t[1]*=1.0144});function pz(t,e){var n=c7(18,n7(e)*36/m7),r=s7(n),i=n-r,a=(f=vz[r])[0],o=f[1],s=(f=vz[++r])[0],u=f[1],l=(f=vz[c7(19,++r)])[0],c=f[1],f;return[t*(s+i*(l-a)/2+i*i*(l-2*s+a)/2),(e>0?_7:-_7)*(u+i*(c-o)/2+i*i*(c-2*u+o)/2)]}pz.invert=function(t,e){var n=e/_7,r=n*90,i=c7(18,n7(r/5)),a=l7(0,s7(i));do{var o=vz[a][1],s=vz[a+1][1],u=vz[c7(19,a+2)][1],l=u-o,c=u-2*s+o,f=2*(n7(n)-s)/l,h=c/l,d=f*(1-h*f*(1-2*h*f));if(d>=0||a===1){r=(e>=0?5:-5)*(d+i);var g=50,v;do{i=c7(18,n7(r)/5);a=s7(i);d=i-a;o=vz[a][1];s=vz[a+1][1];u=vz[c7(19,a+2)][1];r-=(v=(e>=0?_7:-_7)*(s+d*(u-o)/2+d*d*(u-2*s+o)/2)-e)*C7}while(n7(v)>y7&&--g>0);break}}while(--a>=0);var p=vz[a][0],y=vz[a+1][0],m=vz[c7(19,a+2)][0];return[t/(y+d*(m-p)/2+d*d*(m-2*y+p)/2),r*E7]};function yz(){return f8(pz).scale(152.63)}function mz(a){function t(t,e){var n=a7(e),r=(a-1)/(a-n*a7(t));return[r*n*g7(t),r*g7(e)]}t.invert=function(t,e){var n=t*t+e*e,r=T7(n),i=(a-T7(1-n*(a+1)/(a-1)))/((a-1)/r+r/(a-1));return[i7(t*i,r*T7(1-i*i)),r?M7(e*i/r):0]};return t}function _z(a,t){var o=mz(a);if(!t)return o;var s=a7(t),u=g7(t);function e(t,e){var n=o(t,e),r=n[1],i=r*u/(a-1)+s;return[n[0]*s/i,r/i]}e.invert=function(t,e){var n=(a-1)/(a-1-e*u);return o.invert(n*t,n*e*s)};return e}function bz(){var e=2,n=0,r=h8(_z),t=r(e,n);t.distance=function(t){if(!arguments.length)return e;return r(e=+t,n)};t.tilt=function(t){if(!arguments.length)return n*C7;return r(e,n=t*E7)};return t.scale(432.147).clipAngle(R7(1/e)*C7-1e-6)}var wz=1e-4,xz=1e4,kz=-180,Sz=kz+wz,Cz=180,Ez=Cz-wz,Az=-90,Mz=Az+wz,Rz=90,Tz=Rz-wz;function Oz(t){return t.length>0}function Pz(t){return Math.floor(t*xz)/xz}function Bz(t){return t===Az||t===Rz?[0,t]:[kz,Pz(t)]}function Dz(t){var e=t[0],n=t[1],r=false;if(e<=Sz)e=kz,r=true;else if(e>=Ez)e=Cz,r=true;if(n<=Mz)n=Az,r=true;else if(n>=Tz)n=Rz,r=true;return r?[e,n]:t}function Nz(t){return t.map(Dz)}function zz(t,e,n){for(var r=0,i=t.length;r<i;++r){var a=t[r].slice();n.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o<s;++o){var u=a[o],l=u[0],c=u[1];if(l<=Sz||l>=Ez||c<=Mz||c>=Tz){a[o]=Dz(u);for(var f=o+1;f<s;++f){var h=a[f],d=h[0],g=h[1];if(d>Sz&&d<Ez&&g>Mz&&g<Tz)break}if(f===o+1)continue;if(o){var v={index:-1,polygon:e,ring:a.slice(0,o+1)};v.ring[v.ring.length-1]=Bz(c);n[n.length-1]=v}else n.pop();if(f>=s)break;n.push({index:-1,polygon:e,ring:a=a.slice(f-1)});a[0]=Bz(a[0][1]);o=-1;s=a.length}}}}function Fz(t){var e,n=t.length;var r={},i={},a,o,s,u,l;for(e=0;e<n;++e){a=t[e];o=a.ring[0];u=a.ring[a.ring.length-1];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);t[e]=null;continue}a.index=e;r[o]=i[u]=a}for(e=0;e<n;++e){a=t[e];if(a){o=a.ring[0];u=a.ring[a.ring.length-1];s=i[o];l=r[u];delete r[o];delete i[u];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);continue}if(s){delete i[o];delete r[s.ring[0]];s.ring.pop();t[s.index]=null;a={index:-1,polygon:s.polygon,ring:s.ring.concat(a.ring)};if(s===l){a.polygon.push(a.ring)}else{a.index=n++;t.push(r[a.ring[0]]=i[a.ring[a.ring.length-1]]=a)}}else if(l){delete r[u];delete i[l.ring[l.ring.length-1]];a.ring.pop();a={index:n++,polygon:l.polygon,ring:a.ring.concat(l.ring)};t[l.index]=null;t.push(r[a.ring[0]]=i[a.ring[a.ring.length-1]]=a)}else{a.ring.push(a.ring[0]);a.polygon.push(a.ring)}}}}function jz(t){var e={type:"Feature",geometry:Iz(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;if(t.properties!=null)e.properties=t.properties;return e}function Iz(t){if(t==null)return t;var e,n,r,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(Iz)};break;case"Point":e={type:"Point",coordinates:Dz(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:Nz(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(Nz)};break;case"Polygon":{var a=[];zz(t.coordinates,a,n=[]);Fz(n);e={type:"Polygon",coordinates:a};break}case"MultiPolygon":{n=[],r=-1,i=t.coordinates.length;var o=new Array(i);while(++r<i){zz(t.coordinates[r],o[r]=[],n)}Fz(n);e={type:"MultiPolygon",coordinates:o.filter(Oz)};break}default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function Lz(t){if(t==null)return t;switch(t.type){case"Feature":return jz(t);case"FeatureCollection":{var e={type:"FeatureCollection",features:t.features.map(jz)};if(t.bbox!=null)e.bbox=t.bbox;return e}default:return Iz(t)}}function Hz(t,e){var n=v7(e/2),r=g7(b7*n);return[t*(.74482-.34588*r*r),1.70711*n]}Hz.invert=function(t,e){var n=e/1.70711,r=g7(b7*n);return[t/(.74482-.34588*r*r),2*r7(n)]};function Uz(){return f8(Hz).scale(146.153)}function Gz(t,e,n){var r=GT(e,n),i=r(.5),a=KR([-i[0],-i[1]])(e),o=r.distance/2,s=-M7(g7(a[1]*E7)/g7(o)),u=[-i[0],-i[1],-(a[0]>0?m7-s:s)*C7],l=f8(t(o)).rotate(u),c=KR(u),f=l.center;delete l.rotate;l.center=function(t){return arguments.length?f(c(t)):c.invert(f())};return l.clipAngle(90)}function Vz(t){var r=a7(t);function e(t,e){var n=V8(t,e);n[0]*=r;return n}e.invert=function(t,e){return V8.invert(t/r,e)};return e}function Wz(){return qz([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function qz(t,e){return Gz(Vz,t,e)}function Kz(a){if(!(a*=2))return S8;var s=-a/2,u=-s,o=a*a,l=v7(u),c=.5/g7(u);function t(t,e){var n=R7(a7(e)*a7(t-s)),r=R7(a7(e)*a7(t-u)),i=e<0?-1:1;n*=n,r*=r;return[(n-r)/(2*a),i*T7(4*o*r-(o-n+r)*(o-n+r))/(2*a)]}t.invert=function(t,e){var n=e*e,r=a7(T7(n+(a=t+s)*a)),i=a7(T7(n+(a=t+u)*a)),a,o;return[i7(o=r-i,a=(r+i)*l),(e<0?-1:1)*R7(T7(a*a+o*o)*c)]};return t}function Yz(){return Xz([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Xz(t,e){return Gz(Kz,t,e)}function Zz(t,e){if(n7(e)<p7)return[t,0];var n=n7(e/_7),r=M7(n);if(n7(t)<p7||n7(n7(e)-_7)<p7)return[0,d7(e)*m7*v7(r/2)];var i=a7(r),a=n7(m7/t-t/m7)/2,o=a*a,s=i/(n+i-1),u=s*(2/n-1),l=u*u,c=l+o,f=s-l,h=o+s;return[d7(t)*m7*(a*f+T7(o*f*f-c*(s*s-l)))/c,d7(e)*m7*(u*h-a*T7((o+1)*c-h*h))/c]}Zz.invert=function(t,e){if(n7(e)<p7)return[t,0];if(n7(t)<p7)return[0,_7*g7(2*r7(e/m7))];var n=(t/=m7)*t,r=(e/=m7)*e,i=n+r,a=i*i,o=-n7(e)*(1+i),s=o-2*r+n,u=-2*o+1+2*r+a,l=r/u+(2*s*s*s/(u*u*u)-9*o*s/(u*u))/27,c=(o-s*s/(3*u))/u,f=2*T7(-c/3),h=R7(3*l/(c*f))/3;return[m7*(i-1+T7(1+2*(n-r)+a))/(2*t),d7(e)*m7*(-f*a7(h+m7/3)-s/(3*u))]};function $z(){return f8(Zz).scale(79.4183)}function Jz(t,e){if(n7(e)<p7)return[t,0];var n=n7(e/_7),r=M7(n);if(n7(t)<p7||n7(n7(e)-_7)<p7)return[0,d7(e)*m7*v7(r/2)];var i=a7(r),a=n7(m7/t-t/m7)/2,o=a*a,s=i*(T7(1+o)-a*i)/(1+o*n*n);return[d7(t)*m7*s,d7(e)*m7*T7(1-s*(2*a+s))]}Jz.invert=function(t,e){if(!t)return[0,_7*g7(2*r7(e/m7))];var n=n7(t/m7),r=(1-n*n-(e/=m7)*e)/(2*n),i=r*r,a=T7(i+1);return[d7(t)*m7*(a-r),d7(e)*_7*g7(2*i7(T7((1-2*r*n)*(r+a)-n),T7(a+r+n)))]};function Qz(){return f8(Jz).scale(79.4183)}function tF(t,e){if(n7(e)<p7)return[t,0];var n=e/_7,r=M7(n);if(n7(t)<p7||n7(n7(e)-_7)<p7)return[0,m7*v7(r/2)];var i=(m7/t-t/m7)/2,a=n/(1+a7(r));return[m7*(d7(t)*T7(i*i+1-a*a)-i),m7*a]}tF.invert=function(t,e){if(!e)return[t,0];var n=e/m7,r=(m7*m7*(1-n*n)-t*t)/(2*m7*t);return[t?m7*(d7(t)*T7(r*r+1)-r):0,_7*g7(2*r7(n))]};function eF(){return f8(tF).scale(79.4183)}function nF(t,e){if(!e)return[t,0];var n=n7(e);if(!t||n===_7)return[0,e];var r=n/_7,i=r*r,a=(8*r-i*(i+2)-5)/(2*i*(r-1)),o=a*a,s=r*a,u=i+o+2*s,l=r+3*a,c=t/_7,f=c+1/c,h=d7(n7(t)-_7)*T7(f*f-4),d=h*h,g=u*(i+o*d-1)+(1-i)*(i*(l*l+4*o)+12*s*o+4*o*o),v=(h*(u+o-1)+2*T7(g))/(4*u+d);return[d7(t)*_7*v,d7(e)*_7*T7(1+h*n7(v)-v*v)]}nF.invert=function(t,e){var n;if(!t||!e)return[t,e];var r=d7(e);e=n7(e)/m7;var i=d7(t)*t/_7,a=(i*i-1+4*e*e)/n7(i),o=a*a,s=e*(2-(e>.5?c7(e,n7(t)):0)),u=t*t+e*e,l=50;do{var c=s*s,f=(8*s-c*(c+2)-5)/(2*c*(s-1)),h=(3*s-c*s-10)/(2*c*s),d=f*f,g=s*f,v=s+f,p=v*v,y=s+3*f,m=p*(c+d*o-1)+(1-c)*(c*(y*y+4*d)+d*(12*g+4*d)),_=-2*v*(4*g*d+(1-4*c+3*c*c)*(1+h)+d*(-6+14*c-o+(-8+8*c-2*o)*h)+g*(-8+12*c+(-10+10*c-o)*h)),b=T7(m),w=a*(p+d-1)+2*b-i*(4*p+o),x=a*(2*f*h+2*v*(1+h))+_/b-8*v*(a*(-1+d+p)+2*b)*(1+h)/(o+4*p);s-=n=w/x}while(n*u*u>p7&&--l>0);return[d7(t)*(T7(a*a+4)+a)*m7/4,r*_7*s]};function rF(){return f8(nF).scale(127.16)}function iF(o,s,u,l,c){function t(t,e){var n=u*g7(l*e),r=T7(1-n*n),i=T7(2/(1+r*a7(t*=c)));return[o*r*i*g7(t),s*n*i]}t.invert=function(t,e){var n=t/o,r=e/s,i=T7(n*n+r*r),a=2*M7(i/2);return[i7(t*v7(a),o*i)/c,i&&M7(e*g7(a)/(s*u*i))/l]};return t}function aF(t,e,n,r){var i=m7/3;t=l7(t,p7);e=l7(e,p7);t=c7(t,_7);e=c7(e,m7-p7);n=l7(n,0);n=c7(n,100-p7);r=l7(r,p7);var a=n/100+1;var o=r/100;var s=R7(a*a7(i))/i,u=g7(t)/g7(s*_7),l=e/m7,c=T7(o*g7(t/2)/g7(e/2)),f=c/T7(l*u*s),h=1/(c*T7(l*u*s));return iF(f,h,u,s,l)}function oF(){var e=65*E7,n=60*E7,r=20,i=200,a=h8(aF),t=a(e,n,r,i);t.poleline=function(t){return arguments.length?a(e=+t*E7,n,r,i):e*C7};t.parallels=function(t){return arguments.length?a(e,n=+t*E7,r,i):n*C7};t.inflation=function(t){return arguments.length?a(e,n,r=+t,i):r};t.ratio=function(t){return arguments.length?a(e,n,r,i=+t):i};return t.scale(163.775)}function sF(){return oF().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var uF=4*m7+3*T7(3),lF=2*T7(2*m7*T7(3)/uF);var cF=iP(lF*T7(3)/m7,lF,uF/6);function fF(){return f8(cF).scale(176.84)}function hF(t,e){return[t*T7(1-3*e*e/(m7*m7)),e]}hF.invert=function(t,e){return[t/T7(1-3*e*e/(m7*m7)),e]};function dF(){return f8(hF).scale(152.63)}function gF(t,e){var n=a7(e),r=a7(t)*n,i=1-r,a=a7(t=i7(g7(t)*n,-g7(e))),o=g7(t);n=T7(1-r*r);return[o*n-a*i,-a*n-o*i]}gF.invert=function(t,e){var n=(t*t+e*e)/-2,r=T7(-n*(2+n)),i=e*n+t*r,a=t*n-e*r,o=T7(a*a+i*i);return[i7(r*i,o*(1+n)),o?-M7(r*a/o):0]};function vF(){return f8(gF).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function pF(t,e){var n=j7(t,e);return[(n[0]+t/_7)/2,(n[1]+e)/2]}pF.invert=function(t,e){var n=t,r=e,i=25;do{var a=a7(r),o=g7(r),s=g7(2*r),u=o*o,l=a*a,c=g7(n),f=a7(n/2),h=g7(n/2),d=h*h,g=1-l*f*f,v=g?R7(a*f)*T7(p=1/g):p=0,p,y=.5*(2*v*a*h+n/_7)-t,m=.5*(v*o+r)-e,_=.5*p*(l*d+v*a*f*u)+.5/_7,b=p*(c*s/4-v*o*h),w=.125*p*(s*h-v*o*l*c),x=.5*p*(u*f+v*d*a)+.5,k=b*w-x*_,S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,r-=C}while((n7(S)>p7||n7(C)>p7)&&--i>0);return[n,r]};function yF(){return f8(pF).scale(158.837)}var mF=Object.freeze({__proto__:null,geoAiry:F7,geoAiryRaw:z7,geoAitoff:I7,geoAitoffRaw:j7,geoArmadillo:H7,geoArmadilloRaw:L7,geoAugust:G7,geoAugustRaw:U7,geoBaker:K7,geoBakerRaw:q7,geoBerghaus:X7,geoBerghausRaw:Y7,geoBertin1953:nP,geoBertin1953Raw:eP,geoBoggs:cP,geoBoggsRaw:lP,geoBonne:vP,geoBonneRaw:gP,geoBottomley:yP,geoBottomleyRaw:pP,geoBromley:_P,geoBromleyRaw:mP,geoChamberlin:EP,geoChamberlinRaw:kP,geoChamberlinAfrica:CP,geoCollignon:MP,geoCollignonRaw:AP,geoCraig:TP,geoCraigRaw:RP,geoCraster:BP,geoCrasterRaw:PP,geoCylindricalEqualArea:NP,geoCylindricalEqualAreaRaw:DP,geoCylindricalStereographic:FP,geoCylindricalStereographicRaw:zP,geoEckert1:IP,geoEckert1Raw:jP,geoEckert2:HP,geoEckert2Raw:LP,geoEckert3:GP,geoEckert3Raw:UP,geoEckert4:WP,geoEckert4Raw:VP,geoEckert5:KP,geoEckert5Raw:qP,geoEckert6:XP,geoEckert6Raw:YP,geoEisenlohr:JP,geoEisenlohrRaw:$P,geoFahey:eB,geoFaheyRaw:tB,geoFoucaut:rB,geoFoucautRaw:nB,geoFoucautSinusoidal:aB,geoFoucautSinusoidalRaw:iB,geoGilbert:uB,geoGingery:hB,geoGingeryRaw:lB,geoGinzburg4:vB,geoGinzburg4Raw:gB,geoGinzburg5:yB,geoGinzburg5Raw:pB,geoGinzburg6:_B,geoGinzburg6Raw:mB,geoGinzburg8:wB,geoGinzburg8Raw:bB,geoGinzburg9:kB,geoGinzburg9Raw:xB,geoGringorten:MB,geoGringortenRaw:CB,geoGuyou:zB,geoGuyouRaw:BB,geoHammer:J7,geoHammerRaw:Z7,geoHammerRetroazimuthal:IB,geoHammerRetroazimuthalRaw:FB,geoHealpix:YB,geoHealpixRaw:GB,geoHill:ZB,geoHillRaw:XB,geoHomolosine:nD,geoHomolosineRaw:eD,geoHufnagel:iD,geoHufnagelRaw:rD,geoHyperelliptical:uD,geoHyperellipticalRaw:sD,geoInterrupt:hD,geoInterruptedBoggs:gD,geoInterruptedHomolosine:pD,geoInterruptedMollweide:mD,geoInterruptedMollweideHemispheres:bD,geoInterruptedSinuMollweide:xD,geoInterruptedSinusoidal:SD,geoKavrayskiy7:ED,geoKavrayskiy7Raw:CD,geoLagrange:MD,geoLagrangeRaw:AD,geoLarrivee:OD,geoLarriveeRaw:TD,geoLaskowski:BD,geoLaskowskiRaw:PD,geoLittrow:ND,geoLittrowRaw:DD,geoLoximuthal:FD,geoLoximuthalRaw:zD,geoMiller:ID,geoMillerRaw:jD,geoModifiedStereographic:$D,geoModifiedStereographicRaw:LD,geoModifiedStereographicAlaska:qD,geoModifiedStereographicGs48:KD,geoModifiedStereographicGs50:YD,geoModifiedStereographicMiller:XD,geoModifiedStereographicLee:ZD,geoMollweide:oP,geoMollweideRaw:aP,geoMtFlatPolarParabolic:eN,geoMtFlatPolarParabolicRaw:tN,geoMtFlatPolarQuartic:rN,geoMtFlatPolarQuarticRaw:nN,geoMtFlatPolarSinusoidal:aN,geoMtFlatPolarSinusoidalRaw:iN,geoNaturalEarth2:sN,geoNaturalEarth2Raw:oN,geoNellHammer:lN,geoNellHammerRaw:uN,geoInterruptedQuarticAuthalic:fN,geoNicolosi:dN,geoNicolosiRaw:hN,geoPatterson:SN,geoPattersonRaw:kN,geoPolyconic:EN,geoPolyconicRaw:CN,geoPolyhedral:BN,geoPolyhedralButterfly:HN,geoPolyhedralCollignon:VN,geoPolyhedralWaterman:WN,geoProject:QN,geoGringortenQuincuncial:cz,geoPeirceQuincuncial:fz,geoQuantize:hz,geoQuincuncial:lz,geoRectangularPolyconic:gz,geoRectangularPolyconicRaw:dz,geoRobinson:yz,geoRobinsonRaw:pz,geoSatellite:bz,geoSatelliteRaw:_z,geoSinuMollweide:tD,geoSinuMollweideRaw:QB,geoSinusoidal:dP,geoSinusoidalRaw:hP,geoStitch:Lz,geoTimes:Uz,geoTimesRaw:Hz,geoTwoPointAzimuthal:qz,geoTwoPointAzimuthalRaw:Vz,geoTwoPointAzimuthalUsa:Wz,geoTwoPointEquidistant:Xz,geoTwoPointEquidistantRaw:Kz,geoTwoPointEquidistantUsa:Yz,geoVanDerGrinten:$z,geoVanDerGrintenRaw:Zz,geoVanDerGrinten2:Qz,geoVanDerGrinten2Raw:Jz,geoVanDerGrinten3:eF,geoVanDerGrinten3Raw:tF,geoVanDerGrinten4:rF,geoVanDerGrinten4Raw:nF,geoWagner:oF,geoWagner7:sF,geoWagnerRaw:aF,geoWagner4:fF,geoWagner4Raw:cF,geoWagner6:dF,geoWagner6Raw:hF,geoWiechel:vF,geoWiechelRaw:gF,geoWinkel3:yF,geoWinkel3Raw:pF});var _F=1e-6;function bF(){}var wF=Infinity,xF=wF,kF=-wF,SF=kF;var CF={point:EF,lineStart:bF,lineEnd:bF,polygonStart:bF,polygonEnd:bF,result:function t(){var e=[[wF,xF],[kF,SF]];kF=SF=-(xF=wF=Infinity);return e}};function EF(t,e){if(t<wF)wF=t;if(t>kF)kF=t;if(e<xF)xF=e;if(e>SF)SF=e}function AF(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(a!=null)t.clipExtent(null);xM(n,t.stream(CF));var o=CF.result(),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),u=+e[0][0]+(r-s*(o[1][0]+o[0][0]))/2,l=+e[0][1]+(i-s*(o[1][1]+o[0][1]))/2;if(a!=null)t.clipExtent(a);return t.scale(s*150).translate([u,l])}function MF(t,e,n){return AF(t,[[0,0],e],n)}function RF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function TF(){var e,n,l=y8(),i,a=p8().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=p8().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=RF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length)return l.precision();l.precision(t),a.precision(t),s.precision(t);return h()};f.scale=function(t){if(!arguments.length)return l.scale();l.scale(t),a.scale(t*.35),s.scale(t);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(c);o=a.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+_F,r+.12*e+_F],[n-.214*e-_F,r+.234*e-_F]]).stream(c);u=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+_F,r+.166*e+_F],[n-.115*e-_F,r+.234*e-_F]]).stream(c);return h()};f.fitExtent=function(t,e){return AF(f,t,e)};f.fitSize=function(t,e){return MF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-102.91,26.3]);var n=l([-104,27.5]);var r=l([-108,29.1]);var i=l([-110,29.1]);var a=l([-110,26.7]);var o=l([-112.8,27.6]);var s=l([-114.3,30.6]);var u=l([-119.3,30.1]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return f.scale(1070)}function OF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function PF(){var e,n,w=y8(),i,a=p8().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=p8().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,l=p8().rotate([66,0]).center([0,18]).parallels([8,18]),c,f=B8().rotate([173,14]),h,d=B8().rotate([-145,-16.8]),g,r,v={point:function t(e,n){r=[e,n]}};function p(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)||(h.point(e,n),r)||(g.point(e,n),r)}p.invert=function(t){var e=w.scale(),n=w.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:i>=.2064&&i<.2413&&r>=.312&&r<.385?l:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?f:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?d:w).invert(t)};p.stream=function(t){return e&&n===t?e:e=OF([w.stream(n=t),a.stream(t),s.stream(t),l.stream(t),f.stream(t),d.stream(t)])};p.precision=function(t){if(!arguments.length){return w.precision()}w.precision(t);a.precision(t);s.precision(t);l.precision(t);f.precision(t);d.precision(t);return y()};p.scale=function(t){if(!arguments.length){return w.scale()}w.scale(t);a.scale(t*.35);s.scale(t);l.scale(t);f.scale(t*2);d.scale(t);return p.translate(w.translate())};p.translate=function(t){if(!arguments.length){return w.translate()}var e=w.scale(),n=+t[0],r=+t[1];i=w.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(v);o=a.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+_F,r+.12*e+_F],[n-.214*e-_F,r+.233*e-_F]]).stream(v);u=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+_F,r+.166*e+_F],[n-.115*e-_F,r+.233*e-_F]]).stream(v);c=l.translate([n+.35*e,r+.224*e]).clipExtent([[n+.312*e+_F,r+.2064*e+_F],[n+.385*e-_F,r+.233*e-_F]]).stream(v);h=f.translate([n-.492*e,r+.09*e]).clipExtent([[n-.4243*e+_F,r+.0903*e+_F],[n-.3233*e-_F,r+.1197*e-_F]]).stream(v);g=d.translate([n-.408*e,r+.018*e]).clipExtent([[n-.4244*e+_F,r-.0519*e+_F],[n-.3824*e-_F,r+.0895*e-_F]]).stream(v);return y()};p.fitExtent=function(t,e){return AF(p,t,e)};p.fitSize=function(t,e){return MF(p,t,e)};function y(){e=n=null;return p}p.drawCompositionBorders=function(t){var e=w([-110.4641,28.2805]);var n=w([-104.0597,28.9528]);var r=w([-103.7049,25.1031]);var i=w([-109.8337,24.4531]);var a=w([-124.4745,28.1407]);var o=w([-110.931,30.8844]);var s=w([-109.8337,24.4531]);var u=w([-122.4628,21.8562]);var l=w([-76.8579,25.1544]);var c=w([-72.429,24.2097]);var f=w([-72.8265,22.7056]);var h=w([-77.1852,23.6392]);var d=w([-125.0093,29.7791]);var g=w([-118.5193,31.3262]);var v=w([-118.064,29.6912]);var p=w([-124.4369,28.169]);var y=w([-128.1314,37.4582]);var m=w([-125.2132,38.214]);var _=w([-122.3616,30.5115]);var b=w([-125.0315,29.8211]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath();t.moveTo(d[0],d[1]);t.lineTo(g[0],g[1]);t.lineTo(v[0],v[1]);t.lineTo(v[0],v[1]);t.lineTo(p[0],p[1]);t.closePath();t.moveTo(y[0],y[1]);t.lineTo(m[0],m[1]);t.lineTo(_[0],_[1]);t.lineTo(_[0],_[1]);t.lineTo(b[0],b[1]);t.closePath()};p.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return p.scale(1070)}function BF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function DF(){var e,n,a=O8().rotate([5,-38.6]).parallels([0,60]),i,o=O8().rotate([5,-38.6]).parallels([0,60]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=BF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.06857*e,r-.1288*e],[n+.13249*e,r+.06*e]]).stream(u);s=o.translate([n+.1*e,r-.094*e]).clipExtent([[n-.1331*e+_F,r+.053457*e+_F],[n-.0354*e-_F,r+.08969*e-_F]]).stream(u);return c()};l.fitExtent=function(t,e){return AF(l,t,e)};l.fitSize=function(t,e){return MF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-14.034675,34.965007]);var n=a([-7.4208899,35.536988]);var r=a([-7.3148275,33.54359]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1])};l.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return l.scale(2700)}function NF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function zF(){var e,n,l=O8().rotate([10,-39.3]).parallels([0,60]),i,a=O8().rotate([17,-32.7]).parallels([0,60]),o,s=O8().rotate([27.8,-38.6]).parallels([0,60]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.0093&&i<.03678&&r>=-.03875&&r<-.0116?a:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=NF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.6);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.0115*e,r-.1138*e],[n+.2105*e,r+.0673*e]]).stream(c);o=a.translate([n-.0265*e,r+.025*e]).clipExtent([[n-.0388*e+_F,r+.0093*e+_F],[n-.0116*e-_F,r+.0368*e-_F]]).stream(c);u=s.translate([n-.045*e,r+-.02*e]).clipExtent([[n-.0778*e+_F,r-.0413*e+_F],[n-.0117*e-_F,r+.0091*e-_F]]).stream(c);return h()};f.fitExtent=function(t,e){return AF(f,t,e)};f.fitSize=function(t,e){return MF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-12.8351,38.7113]);var n=l([-10.8482,38.7633]);var r=l([-10.8181,37.2072]);var i=l([-12.7345,37.1573]);var a=l([-16.0753,41.4436]);var o=l([-10.9168,41.6861]);var s=l([-10.8557,38.7747]);var u=l([-15.6728,38.5505]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath()};f.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return f.scale(4200)}function FF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function jF(){var e,n,a=A8().rotate([80,1.5]),i,o=A8().rotate([90.73,1]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=FF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.0262*e,r-.0734*e],[n+.1741*e,r+.079*e]]).stream(u);s=o.translate([n-.06*e,r-.04*e]).clipExtent([[n-.0857*e+_F,r-.0676*e+_F],[n-.0263*e-_F,r-.026*e-_F]]).stream(u);return c()};l.fitExtent=function(t,e){return AF(l,t,e)};l.fitSize=function(t,e){return MF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-84.9032,2.3757]);var n=a([-81.5047,2.3708]);var r=a([-81.5063,-.01]);var i=a([-84.9086,-.005]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};l.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return l.scale(3500)}function IF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function LF(){var e,n,d=t7().rotate([72,37]),i,a=J8().rotate([72,0]),o,s=A8().rotate([80,33.5]),u,l=A8().rotate([110,25]),c,r,f={point:function t(e,n){r=[e,n]}};function h(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)}h.invert=function(t){var e=d.scale(),n=d.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.2582&&i<.32&&r>=-.1036&&r<-.087?a:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?s:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?l:d).invert(t)};h.stream=function(t){return e&&n===t?e:e=IF([d.stream(n=t),a.stream(t),s.stream(t),l.stream(t)])};h.precision=function(t){if(!arguments.length){return d.precision()}d.precision(t);a.precision(t);s.precision(t);l.precision(t);return g()};h.scale=function(t){if(!arguments.length){return d.scale()}d.scale(t);a.scale(t*.15);s.scale(t*1.5);l.scale(t*1.5);return h.translate(d.translate())};h.translate=function(t){if(!arguments.length){return d.translate()}var e=d.scale(),n=+t[0],r=+t[1];i=d.translate(t).clipExtent([[n-.059*e,r-.3835*e],[n+.4498*e,r+.3375*e]]).stream(f);o=a.translate([n-.087*e,r+.17*e]).clipExtent([[n-.1166*e+_F,r+.2582*e+_F],[n-.06*e-_F,r+.32*e-_F]]).stream(f);u=s.translate([n-.092*e,r-0*e]).clipExtent([[n-.114*e+_F,r-.013*e+_F],[n-.0594*e-_F,r+.0133*e-_F]]).stream(f);c=l.translate([n-.089*e,r-.0265*e]).clipExtent([[n-.089*e+_F,r+.0154*e+_F],[n-.0588*e-_F,r+.0391*e-_F]]).stream(f);return g()};h.fitExtent=function(t,e){return AF(h,t,e)};h.fitSize=function(t,e){return MF(h,t,e)};function g(){e=n=null;return h}h.drawCompositionBorders=function(t){var e=d([-82.6999,-51.3043]);var n=d([-77.5442,-51.6631]);var r=d([-78.0254,-55.186]);var i=d([-83.6106,-54.7785]);var a=d([-80.0638,-35.984]);var o=d([-76.2153,-36.1811]);var s=d([-76.2994,-37.6839]);var u=d([-80.2231,-37.4757]);var l=d([-78.442,-37.706]);var c=d([-76.263,-37.8054]);var f=d([-76.344,-39.1595]);var h=d([-78.5638,-39.0559]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath()};h.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return h.scale(700)}function HF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function UF(){var e,n,l=N8().rotate([-136,-22]).parallels([40,34]),i,a=N8().rotate([-146,-26]).parallels([40,34]),o,s=N8().rotate([-126,-19]).parallels([40,34]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?a:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=HF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.7);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.1352*e,r-.1091*e],[n+.117*e,r+.098*e]]).stream(c);o=a.translate([n-.0425*e,r-.005*e]).clipExtent([[n-.135*e+_F,r-.1093*e+_F],[n-.0397*e-_F,r-.027*e-_F]]).stream(c);u=s.translate(t).clipExtent([[n-.0399*e+_F,r+.0471*e+_F],[n+.051*e-_F,r+.1114*e-_F]]).stream(c);return h()};f.fitExtent=function(t,e){return AF(f,t,e)};f.fitSize=function(t,e){return MF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([126.01320483689143,41.621090310215585]);var n=l([133.04304387025903,42.15087523707186]);var r=l([133.3021766080688,37.43975444725098]);var i=l([126.87889168628224,36.95488945159779]);var a=l([132.9,29.8]);var o=l([134,33]);var s=l([139.3,33.2]);var u=l([139.16,30.5]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return f.scale(2200)}function GF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function VF(){var e,n,a=O8().rotate([-3,-46.2]).parallels([0,60]),i,o=A8().center([-53.2,3.9]),s,u=A8().center([-61.03,14.67]),l,c=A8().center([-61.46,16.14]),f,h=A8().center([-62.85,17.92]),d,g=A8().center([-56.23,46.93]),v,p=A8().center([45.16,-12.8]),y,m=A8().center([55.52,-21.13]),_,b=A8().center([165.8,-21.07]),w,x=A8().center([-178.1,-14.3]),k,S=A8().center([-150.55,-17.11]),C,E=A8().center([-150.55,-17.11]),A,r,M={point:function t(e,n){r=[e,n]}};function R(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)||(f.point(e,n),r)||(d.point(e,n),r)||(v.point(e,n),r)||(y.point(e,n),r)||(_.point(e,n),r)||(w.point(e,n),r)||(k.point(e,n),r)||(C.point(e,n),r)||(A.point(e,n),r)}R.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.029&&i<.0864&&r>=-.14&&r<-.0996?o:i>=0&&i<.029&&r>=-.14&&r<-.0996?u:i>=-.032&&i<0&&r>=-.14&&r<-.0996?c:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?h:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?g:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?p:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?m:i>=-.02&&i<.012&&r>=.0967&&r<.1371?b:i>=.012&&i<.033&&r>=.0967&&r<.1371?x:i>=.033&&i<.0864&&r>=.0967&&r<.1371?S:a).invert(t)};R.stream=function(t){return e&&n===t?e:e=GF([a.stream(n=t),o.stream(t),u.stream(t),c.stream(t),h.stream(t),g.stream(t),p.stream(t),m.stream(t),b.stream(t),x.stream(t),S.stream(t),E.stream(t)])};R.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);c.precision(t);h.precision(t);g.precision(t);p.precision(t);m.precision(t);b.precision(t);x.precision(t);S.precision(t);E.precision(t);return T()};R.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.6);u.scale(t*1.6);c.scale(t*1.4);h.scale(t*5);g.scale(t*1.3);p.scale(t*1.6);m.scale(t*1.2);b.scale(t*.3);x.scale(t*2.7);S.scale(t*.5);E.scale(t*.06);return R.translate(a.translate())};R.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.0996*e,r-.0908*e],[n+.0967*e,r+.0864*e]]).stream(M);s=o.translate([n-.12*e,r+.0575*e]).clipExtent([[n-.14*e+_F,r+.029*e+_F],[n-.0996*e-_F,r+.0864*e-_F]]).stream(M);l=u.translate([n-.12*e,r+.013*e]).clipExtent([[n-.14*e+_F,r+0*e+_F],[n-.0996*e-_F,r+.029*e-_F]]).stream(M);f=c.translate([n-.12*e,r-.014*e]).clipExtent([[n-.14*e+_F,r-.032*e+_F],[n-.0996*e-_F,r+0*e-_F]]).stream(M);d=h.translate([n-.12*e,r-.044*e]).clipExtent([[n-.14*e+_F,r-.052*e+_F],[n-.0996*e-_F,r-.032*e-_F]]).stream(M);v=g.translate([n-.12*e,r-.065*e]).clipExtent([[n-.14*e+_F,r-.076*e+_F],[n-.0996*e-_F,r-.052*e-_F]]).stream(M);y=p.translate([n+.117*e,r-.064*e]).clipExtent([[n+.0967*e+_F,r-.076*e+_F],[n+.1371*e-_F,r-.052*e-_F]]).stream(M);_=m.translate([n+.116*e,r-.0355*e]).clipExtent([[n+.0967*e+_F,r-.052*e+_F],[n+.1371*e-_F,r-.02*e-_F]]).stream(M);w=b.translate([n+.116*e,r-.0048*e]).clipExtent([[n+.0967*e+_F,r-.02*e+_F],[n+.1371*e-_F,r+.012*e-_F]]).stream(M);k=x.translate([n+.116*e,r+.022*e]).clipExtent([[n+.0967*e+_F,r+.012*e+_F],[n+.1371*e-_F,r+.033*e-_F]]).stream(M);A=E.translate([n+.11*e,r+.045*e]).clipExtent([[n+.0967*e+_F,r+.033*e+_F],[n+.1371*e-_F,r+.06*e-_F]]).stream(M);C=S.translate([n+.115*e,r+.075*e]).clipExtent([[n+.0967*e+_F,r+.06*e+_F],[n+.1371*e-_F,r+.0864*e-_F]]).stream(M);return T()};R.fitExtent=function(t,e){return AF(R,t,e)};R.fitSize=function(t,e){return MF(R,t,e)};function T(){e=n=null;return R}R.drawCompositionBorders=function(t){var e,n,r,i;e=a([-7.938886725111036,43.7219460918835]);n=a([-4.832080896458295,44.12930268549372]);r=a([-4.205299743793263,40.98096346967365]);i=a([-7.071796453126152,40.610037319181444]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-8.42751373617692,45.32889452553031]);n=a([-5.18599305777107,45.7566442062976]);r=a([-4.832080905154431,44.129302726751426]);i=a([-7.938886737126192,43.72194613263854]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.012656899657046,47.127733821030176]);n=a([-5.6105244772793155,47.579777861410626]);r=a([-5.185993067168585,45.756644248170346]);i=a([-8.427513749141811,45.32889456686326]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.405747558985553,48.26506375557457]);n=a([-5.896175018439575,48.733352850851624]);r=a([-5.610524487556043,47.57977790393761]);i=a([-9.012656913808351,47.127733862971255]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.908436061346974,49.642448789505856]);n=a([-6.262026716233124,50.131426841787174]);r=a([-5.896175029331232,48.73335289377258]);i=a([-9.40574757396393,48.26506379787767]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.996907706504462,50.16039028163579]);n=a([15.649907879773343,49.68279246765253]);r=a([15.156712840526632,48.30371557625831]);i=a([11.64122661754411,48.761078240546816]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.641226606955788,48.7610781975889]);n=a([15.156712825832164,48.30371553390465]);r=a([14.549932166241172,46.4866532486199]);i=a([11.204443787952183,46.91899233914248]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.204443778297161,46.918992296823646]);n=a([14.549932152815039,46.486653206856396]);r=a([13.994409796764009,44.695833444323256]);i=a([10.805306599253848,45.105133870684924]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.805306590412085,45.10513382903308]);n=a([13.99440978444733,44.695833403183606]);r=a([13.654633799024392,43.53552468558152]);i=a([10.561516803980956,43.930671459798624]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.561516795617383,43.93067141859757]);n=a([13.654633787361952,43.5355246448671]);r=a([12.867691604239901,40.640701985019405]);i=a([9.997809515987688,41.00288343254471]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.8,42.4]);n=a([12.8,42.13]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1])};R.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return R.scale(2700)}function WF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function qF(){var e,n,a=O8().rotate([-10,-53]).parallels([0,60]),i,o=A8().center([-61.46,16.14]),s,u=A8().center([-53.2,3.9]),l,c=O8().rotate([27.8,-38.9]).parallels([0,60]),f,h=O8().rotate([25.43,-37.398]).parallels([0,60]),d,g=O8().rotate([31.17,-39.539]).parallels([0,60]),v,p=O8().rotate([17,-32.7]).parallels([0,60]),y,m=O8().rotate([16,-28.5]).parallels([0,60]),_,b=A8().center([-61.03,14.67]),w,x=A8().center([45.16,-12.8]),k,S=A8().center([55.52,-21.13]),C,E=O8().rotate([-14.4,-35.95]).parallels([0,60]),A,r,M={point:function t(e,n){r=[e,n]}};function R(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(l.point(e,n),r)||(w.point(e,n),r)||(s.point(e,n),r)||(_.point(e,n),r)||(y.point(e,n),r)||(k.point(e,n),r)||(C.point(e,n),r)||(A.point(e,n),r)||(f.point(e,n),r)||(d.point(e,n),r)||(v.point(e,n),r)}R.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(i>=-.31&&i<-.24&&r>=.14&&r<.24?o:i>=-.24&&i<-.17&&r>=.14&&r<.24?u:i>=-.17&&i<-.12&&r>=.21&&r<.24?h:i>=-.17&&i<-.14&&r>=.14&&r<.165?g:i>=-.17&&i<-.1&&r>=.14&&r<.24?c:i>=-.1&&i<-.03&&r>=.14&&r<.24?p:i>=-.03&&i<.04&&r>=.14&&r<.24?m:i>=-.31&&i<-.24&&r>=.24&&r<.34?b:i>=-.24&&i<-.17&&r>=.24&&r<.34?x:i>=-.17&&i<-.1&&r>=.24&&r<.34?S:i>=-.1&&i<-.03&&r>=.24&&r<.34?E:a).invert(t)};R.stream=function(t){return e&&n===t?e:e=WF([a.stream(n=t),u.stream(t),b.stream(t),o.stream(t),m.stream(t),p.stream(t),x.stream(t),S.stream(t),E.stream(t),c.stream(t),h.stream(t),g.stream(t)])};R.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);u.precision(t);b.precision(t);o.precision(t);m.precision(t);p.precision(t);x.precision(t);S.precision(t);E.precision(t);c.precision(t);h.precision(t);g.precision(t);return T()};R.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*3);u.scale(t*.8);b.scale(t*3.5);S.scale(t*2.7);c.scale(t*2);h.scale(t*2);g.scale(t*2);p.scale(t*3);m.scale(t);x.scale(t*5.5);E.scale(t*6);return R.translate(a.translate())};R.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate([n-.08*e,r]).clipExtent([[n-.51*e,r-.33*e],[n+.5*e,r+.33*e]]).stream(M);s=o.translate([n+.19*e,r-.275*e]).clipExtent([[n+.14*e+_F,r-.31*e+_F],[n+.24*e-_F,r-.24*e-_F]]).stream(M);l=u.translate([n+.19*e,r-.205*e]).clipExtent([[n+.14*e+_F,r-.24*e+_F],[n+.24*e-_F,r-.17*e-_F]]).stream(M);f=c.translate([n+.19*e,r-.135*e]).clipExtent([[n+.14*e+_F,r-.17*e+_F],[n+.24*e-_F,r-.1*e-_F]]).stream(M);d=h.translate([n+.225*e,r-.147*e]).clipExtent([[n+.21*e+_F,r-.17*e+_F],[n+.24*e-_F,r-.12*e-_F]]).stream(M);v=g.translate([n+.153*e,r-.15*e]).clipExtent([[n+.14*e+_F,r-.17*e+_F],[n+.165*e-_F,r-.14*e-_F]]).stream(M);y=p.translate([n+.19*e,r-.065*e]).clipExtent([[n+.14*e+_F,r-.1*e+_F],[n+.24*e-_F,r-.03*e-_F]]).stream(M);_=m.translate([n+.19*e,r+.005*e]).clipExtent([[n+.14*e+_F,r-.03*e+_F],[n+.24*e-_F,r+.04*e-_F]]).stream(M);w=b.translate([n+.29*e,r-.275*e]).clipExtent([[n+.24*e+_F,r-.31*e+_F],[n+.34*e-_F,r-.24*e-_F]]).stream(M);k=x.translate([n+.29*e,r-.205*e]).clipExtent([[n+.24*e+_F,r-.24*e+_F],[n+.34*e-_F,r-.17*e-_F]]).stream(M);C=S.translate([n+.29*e,r-.135*e]).clipExtent([[n+.24*e+_F,r-.17*e+_F],[n+.34*e-_F,r-.1*e-_F]]).stream(M);A=E.translate([n+.29*e,r-.065*e]).clipExtent([[n+.24*e+_F,r-.1*e+_F],[n+.34*e-_F,r-.03*e-_F]]).stream(M);return T()};R.fitExtent=function(t,e){return AF(R,t,e)};R.fitSize=function(t,e){return MF(R,t,e)};function T(){e=n=null;return R}R.drawCompositionBorders=function(t){var e,n,r,i;e=a([42.45755610828648,63.343658547914934]);n=a([52.65837266667029,59.35045080290929]);r=a([47.19754502247785,56.12653496548117]);i=a([37.673034273363044,59.61638268506111]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([59.41110754003403,62.35069727399336]);n=a([66.75050228640794,57.11797303636038]);r=a([60.236065725110436,54.63331433818992]);i=a([52.65837313153311,59.350450804599355]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([48.81091130080243,66.93353402634641]);n=a([59.41110730654679,62.35069740653086]);r=a([52.6583728974441,59.3504509222445]);i=a([42.45755631675751,63.34365868805821]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([31.054198418446475,52.1080673766184]);n=a([39.09869284884117,49.400700047190554]);r=a([36.0580811499175,46.02944174908498]);i=a([28.690508588835726,48.433126979386415]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([33.977877745912025,55.849945501331]);n=a([42.75328432167726,52.78455122462353]);r=a([39.09869297540224,49.400700176148625]);i=a([31.05419851807008,52.10806751810923]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([52.658372900759296,59.35045068526415]);n=a([60.23606549583304,54.63331423800264]);r=a([54.6756370953122,51.892298789399455]);i=a([47.19754524788189,56.126534861222794]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([47.19754506082455,56.126534735591456]);n=a([54.675636900123514,51.892298681337095]);r=a([49.94448648951486,48.98775484983285]);i=a([42.75328468716108,52.78455126060818]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([42.75328453416769,52.78455113209101]);n=a([49.94448632339758,48.98775473706457]);r=a([45.912339990394315,45.99361784987003]);i=a([39.09869317356607,49.40070009378711]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([47.197544835420544,56.126534839849846]);r=a([42.75328447467064,52.78455135314068]);i=a([33.977877870363905,55.849945644671145]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([44.56748486446032,57.26489367845818]);r=a([43.9335791193588,53.746540942601726]);i=a([43,56]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([40.25902691953466,58.83002044222639]);r=a([38.458270492742024,57.26232178028002]);i=a([35.97754948030156,58.00266637992386]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};R.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return R.scale(750)}function KF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function YF(){var e,n,l=O8().rotate([-5.5,-52.2]).parallels([0,60]),i,a=A8().center([-68.25,12.2]),o,s=A8().center([-63.1,17.5]),u,c,f={point:function t(e,n){c=[e,n]}};function r(t){var e=_slicedToArray2(t,2),n=e[0],r=e[1];return c=null,(i.point(n,r),c)||(o.point(n,r),c)||(u.point(n,r),c)}r.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0067&&i<.0015&&r>=-.0232&&r<-.0154?a:i>=-.022&&i<-.014&&r>=-.023&&r<-.014?s:l).invert(t)};r.stream=function(t){return e&&n===t?e:e=KF([l.stream(n=t),a.stream(t),s.stream(t)])};r.precision=function(t){if(!arguments.length)return l.precision();l.precision(t);a.precision(t);s.precision(t);return h()};r.scale=function(t){if(!arguments.length)return l.scale();l.scale(t);a.scale(t);s.scale(t);return r.translate(l.translate())};r.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.0245*e,r-.026*e],[n+.023*e,r+.026*e]]).stream(f);o=a.translate([n-.0186*e,r-.00325*e]).clipExtent([[n-.0232*e+_F,r-.0067*e+_F],[n-.0154*e-_F,r+.0015*e-_F]]).stream(f);u=s.translate([n-.0185*e,r-.017*e]).clipExtent([[n-.023*e+_F,r-.022*e+_F],[n-.014*e-_F,r-.014*e-_F]]).stream(f);return h()};r.fitExtent=function(t,e){return AF(r,t,e)};r.fitSize=function(t,e){return MF(r,t,e)};function h(){e=n=null;return r}r.drawCompositionBorders=function(t){var e=l([3.30573,52.5562]);var n=l([4.043,52.572]);var r=l([4.0646,52.1017]);var i=l([3.3382,52.0861]);var a=l([3.262,53.439]);var o=l([4.1373,53.4571]);var s=l([4.1574,52.9946]);var u=l([3.2951,52.9768]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath()};r.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return r.scale(4200)}function XF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function ZF(){var e,n,a=A8().center([105.25,4]),i,o=A8().center([118.65,2.86]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0521&&i<.0229&&r>=-.0111&&r<.1?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=XF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.615);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.11*e,r-.0521*e],[n-.0111*e,r+.0521*e]]).stream(u);s=o.translate([n+.09*e,r-0*e]).clipExtent([[n-.0111*e+_F,r-.0521*e+_F],[n+.1*e-_F,r+.024*e-_F]]).stream(u);return c()};l.fitExtent=function(t,e){return AF(l,t,e)};l.fitSize=function(t,e){return MF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([106.3214,2.0228]);var n=a([105.1843,2.3761]);var r=a([104.2151,3.3618]);var i=a([104.215,4.5651]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1])};l.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return l.scale(4800)}function $F(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function JF(){var e,n,a=A8().rotate([-9.5,-1.5]),i,o=A8().rotate([-8.6,-3.5]),s,u=A8().rotate([-5.6,1.45]),l,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)}f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.02&&i<0&&r>=-.038&&r<-.005?o:i>=0&&i<.02&&r>=-.038&&r<-.005?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=$F([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);return h()};f.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*1.5);u.scale(t*4);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.005*e,r-.02*e],[n+.038*e,r+.02*e]]).stream(c);s=o.translate([n-.025*e,r-.01*e]).clipExtent([[n-.038*e+_F,r-.02*e+_F],[n-.005*e-_F,r+0*e-_F]]).stream(c);l=u.translate([n-.025*e,r+.01*e]).clipExtent([[n-.038*e+_F,r-0*e+_F],[n-.005*e-_F,r+.02*e-_F]]).stream(c);return h()};f.fitExtent=function(t,e){return AF(f,t,e)};f.fitSize=function(t,e){return MF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e,n,r,i;e=a([9.21327272751682,2.645820439454123]);n=a([11.679126293239872,2.644755519268689]);r=a([11.676845389029227,.35307824637606433]);i=a([9.213572917774014,.35414205204417754]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([7.320873711543669,2.64475551449975]);n=a([9.213272722738658,2.645820434679803]);r=a([9.213422896480349,1.4999812505283054]);i=a([7.322014760520787,1.4989168878985566]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([7.3220147605302905,1.4989168783492766]);n=a([9.213422896481598,1.499981240979021]);r=a([9.213572912999604,.354142056817247]);i=a([7.323154615739809,.353078251154504]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};f.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return f.scale(12e3)}function QF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function tj(){var e,n,a=y8().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),i,o=y8().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.089&&i<.06&&r>=.029&&r<.046?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=QF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t);return c()};l.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.065*e,r-.089*e],[n+.075*e,r+.089*e]]).stream(u);s=o.translate([n+.01*e,r+.025*e]).clipExtent([[n+.029*e+_F,r-.089*e+_F],[n+.046*e-_F,r-.06*e-_F]]).stream(u);return c()};l.fitExtent=function(t,e){return AF(l,t,e)};l.fitSize=function(t,e){return MF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e,n,r,i;e=a([-1.113205870242365,59.64920050773357]);n=a([.807899092399606,59.59085836472269]);r=a([.5778611961420386,57.93467822832577]);i=a([-1.25867782078448,57.99029450085142]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};l.getCompositionBorders=function(){var t=g3();this.drawCompositionBorders(t);return t.toString()};return l.scale(2800)}var ej=Object.freeze({__proto__:null,geoAlbersUsa:TF,geoAlbersUsaTerritories:PF,geoConicConformalSpain:DF,geoConicConformalPortugal:zF,geoMercatorEcuador:jF,geoTransverseMercatorChile:LF,geoConicEquidistantJapan:UF,geoConicConformalFrance:VF,geoConicConformalEurope:qF,geoConicConformalNetherlands:YF,geoMercatorMalaysia:ZF,geoMercatorEquatorialGuinea:JF,geoAlbersUk:tj});function nj(t){return t.k}function rj(t){return[t.x,t.y]}function ij(t){return function(){return t}}function aj(){var g=0,v=0,p=960,y=500;var m=true,_=true;var b=256;var w=nj;var x=rj;var k=0;function e(){var t=+w.apply(this,arguments);var e=x.apply(this,arguments);var n=Math.log2(t/b);var r=Math.round(Math.max(n+k,0));var i=Math.pow(2,n-r)*b;var a=+e[0]-t/2;var o=+e[1]-t/2;var s=Math.max(m?0:-Infinity,Math.floor((g-a)/i));var u=Math.min(m?1<<r:Infinity,Math.ceil((p-a)/i));var l=Math.max(_?0:-Infinity,Math.floor((v-o)/i));var c=Math.min(_?1<<r:Infinity,Math.ceil((y-o)/i));var f=[];for(var h=l;h<c;++h){for(var d=s;d<u;++d){f.push([d,h,r])}}f.translate=[a/i,o/i];f.scale=i;return f}e.size=function(t){return arguments.length?(g=v=0,p=+t[0],y=+t[1],e):[p-g,y-v]};e.extent=function(t){return arguments.length?(g=+t[0][0],v=+t[0][1],p=+t[1][0],y=+t[1][1],e):[[g,v],[p,y]]};e.scale=function(t){return arguments.length?(w=typeof t==="function"?t:ij(+t),e):w};e.translate=function(t){return arguments.length?(x=typeof t==="function"?t:ij([+t[0],+t[1]]),e):x};e.zoomDelta=function(t){return arguments.length?(k=+t,e):k};e.tileSize=function(t){return arguments.length?(b=+t,e):b};e.clamp=function(t){return arguments.length?(m=_=!!t,e):m&&_};e.clampX=function(t){return arguments.length?(m=!!t,e):m};e.clampY=function(t){return arguments.length?(_=!!t,e):_};return e}function oj(t){return t}function sj(t){if(t==null)return oj;var a,o,s=t.scale[0],u=t.scale[1],l=t.translate[0],c=t.translate[1];return function(t,e){if(!e)a=o=0;var n=2,r=t.length,i=new Array(r);i[0]=(a+=t[0])*s+l;i[1]=(o+=t[1])*u+c;while(n<r){i[n]=t[n],++n}return i}}function uj(t,e){var n,r=t.length,i=r-e;while(i<--r){n=t[i],t[i++]=t[r],t[r]=n}}function lj(e,t){if(typeof t==="string")t=e.objects[t];return t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(t){return cj(e,t)})}:cj(e,t)}function cj(t,e){var n=e.id,r=e.bbox,i=e.properties==null?{}:e.properties,a=fj(t,e);return n==null&&r==null?{type:"Feature",properties:i,geometry:a}:r==null?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function fj(t,e){var a=sj(t.transform),o=t.arcs;function i(t,e){if(e.length)e.pop();for(var n=o[t<0?~t:t],r=0,i=n.length;r<i;++r){e.push(a(n[r],r))}if(t<0)uj(e,i)}function r(t){return a(t)}function s(t){var e=[];for(var n=0,r=t.length;n<r;++n){i(t[n],e)}if(e.length<2)e.push(e[0]);return e}function n(t){var e=s(t);while(e.length<4){e.push(e[0])}return e}function u(t){return t.map(n)}function l(t){var e=t.type,n;switch(e){case"GeometryCollection":return{type:e,geometries:t.geometries.map(l)};case"Point":n=r(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(r);break;case"LineString":n=s(t.arcs);break;case"MultiLineString":n=t.arcs.map(s);break;case"Polygon":n=u(t.arcs);break;case"MultiPolygon":n=t.arcs.map(u);break;default:return null}return{type:e,coordinates:n}}return l(e)}var hj=function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return e.reduce(function(t,e){var n=[];if(Array.isArray(e)){n=e}else{if(e[r]){n=e[r]}else{console.warn('d3plus-viz: Please implement a "dataFormat" callback to concat the arrays manually (consider using the d3plus.dataConcat method in your callback). Currently unable to concatenate (using key: "'.concat(r,'") the following response:'),e)}}return t.concat(n)},[])};function dj(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){dj=function t(e){return typeof e}}else{dj=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return dj(t)}var gj=function t(e){return typeof e==="string"||dj(e)==="object"&&e.url&&e.headers};var vj={value:function t(){}};function pj(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new yj(n)}function yj(t){this._=t}function mj(t,r){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);if(t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}yj.prototype=pj.prototype={constructor:yj,on:function t(e,n){var r=this._,i=mj(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){while(++o<s){if((a=(e=i[o]).type)&&(a=_j(r[a],e.name)))return a}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(a=(e=i[o]).type)r[a]=bj(r[a],e.name,n);else if(n==null)for(a in r){r[a]=bj(r[a],e.name,null)}}return this},copy:function t(){var t={},e=this._;for(var n in e){t[n]=e[n].slice()}return new yj(t)},call:function t(e,n){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,o;i<a;++i){r[i]=arguments[i+2]}if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,a=o.length;i<a;++i){o[i].value.apply(n,r)}},apply:function t(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a){i[a].value.apply(n,r)}}};function _j(t,e){for(var n=0,r=t.length,i;n<r;++n){if((i=t[n]).name===e){return i.value}}}function bj(t,e,n){for(var r=0,i=t.length;r<i;++r){if(t[r].name===e){t[r]=vj,t=t.slice(0,r).concat(t.slice(r+1));break}}if(n!=null)t.push({name:e,value:n});return t}function wj(i,t){var a,o=pj("beforesend","progress","load","error"),s,u=Ib(),l=new XMLHttpRequest,c=null,f=null,r,h,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(i))l=new XDomainRequest;"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){l.readyState>3&&e(t)};function e(t){var e=l.status,n;if(!e&&kj(l)||e>=200&&e<300||e===304){if(r){try{n=r.call(a,l)}catch(t){o.call("error",a,t);return}}else{n=l}o.call("load",a,n)}else{o.call("error",a,t)}}l.onprogress=function(t){o.call("progress",a,t)};a={header:function t(e,n){e=(e+"").toLowerCase();if(arguments.length<2)return u.get(e);if(n==null)u.remove(e);else u.set(e,n+"");return a},mimeType:function t(e){if(!arguments.length)return s;s=e==null?null:e+"";return a},responseType:function t(e){if(!arguments.length)return h;h=e;return a},timeout:function t(e){if(!arguments.length)return d;d=+e;return a},user:function t(e){return arguments.length<1?c:(c=e==null?null:e+"",a)},password:function t(e){return arguments.length<1?f:(f=e==null?null:e+"",a)},response:function t(e){r=e;return a},get:function t(e,n){return a.send("GET",e,n)},post:function t(e,n){return a.send("POST",e,n)},send:function t(e,n,r){l.open(e,i,true,c,f);if(s!=null&&!u.has("accept"))u.set("accept",s+",*/*");if(l.setRequestHeader)u.each(function(t,e){l.setRequestHeader(e,t)});if(s!=null&&l.overrideMimeType)l.overrideMimeType(s);if(h!=null)l.responseType=h;if(d>0)l.timeout=d;if(r==null&&typeof n==="function")r=n,n=null;if(r!=null&&r.length===1)r=xj(r);if(r!=null)a.on("error",r).on("load",function(t){r(null,t)});o.call("beforesend",a,l);l.send(n==null?null:n);return a},abort:function t(){l.abort();return a},on:function t(){var e=o.on.apply(o,arguments);return e===o?a:e}};if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return a.get(t)}return a}function xj(n){return function(t,e){n(t==null?e:null)}}function kj(t){var e=t.responseType;return e&&e!=="text"?t.response:t.responseText}function Sj(r,i){return function(t,e){var n=wj(t).mimeType(r).response(i);if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return n.get(e)}return n}}var Cj=Sj("application/json",function(t){return JSON.parse(t.responseText)});var Ej=Sj("text/plain",function(t){return t.responseText});var Aj={},Mj={},Rj=34,Tj=10,Oj=13;function Pj(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function Bj(n,r){var i=Pj(n);return function(t,e){return r(i(t),e,n)}}function Dj(t){var n=Object.create(null),r=[];t.forEach(function(t){for(var e in t){if(!(e in n)){r.push(n[e]=e)}}});return r}function Nj(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function zj(t){return t<0?"-"+Nj(-t,6):t>9999?"+"+Nj(t,6):Nj(t,4)}function Fj(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":zj(t.getUTCFullYear())+"-"+Nj(t.getUTCMonth()+1,2)+"-"+Nj(t.getUTCDate(),2)+(i?"T"+Nj(e,2)+":"+Nj(n,2)+":"+Nj(r,2)+"."+Nj(i,3)+"Z":r?"T"+Nj(e,2)+":"+Nj(n,2)+":"+Nj(r,2)+"Z":n||e?"T"+Nj(e,2)+":"+Nj(n,2)+"Z":"")}function jj(r){var e=new RegExp('["'+r+"\n\r]"),f=r.charCodeAt(0);function t(t,n){var r,i,e=a(t,function(t,e){if(r)return r(t,e-1);i=t,r=n?Bj(t,n):Pj(t)});e.columns=i||[];return e}function a(r,t){var e=[],i=r.length,a=0,n=0,o,s=i<=0,u=false;if(r.charCodeAt(i-1)===Tj)--i;if(r.charCodeAt(i-1)===Oj)--i;function l(){if(s)return Mj;if(u)return u=false,Aj;var t,e=a,n;if(r.charCodeAt(e)===Rj){while(a++<i&&r.charCodeAt(a)!==Rj||r.charCodeAt(++a)===Rj){}if((t=a)>=i)s=true;else if((n=r.charCodeAt(a++))===Tj)u=true;else if(n===Oj){u=true;if(r.charCodeAt(a)===Tj)++a}return r.slice(e+1,t-1).replace(/""/g,'"')}while(a<i){if((n=r.charCodeAt(t=a++))===Tj)u=true;else if(n===Oj){u=true;if(r.charCodeAt(a)===Tj)++a}else if(n!==f)continue;return r.slice(e,t)}return s=true,r.slice(e,i)}while((o=l())!==Mj){var c=[];while(o!==Aj&&o!==Mj){c.push(o),o=l()}if(t&&(c=t(c,n++))==null)continue;e.push(c)}return e}function n(t,n){return t.map(function(e){return n.map(function(t){return l(e[t])}).join(r)})}function i(t,e){if(e==null)e=Dj(t);return[e.map(l).join(r)].concat(n(t,e)).join("\n")}function o(t,e){if(e==null)e=Dj(t);return n(t,e).join("\n")}function s(t){return t.map(u).join("\n")}function u(t){return t.map(l).join(r)}function l(t){return t==null?"":t instanceof Date?Fj(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:t,parseRows:a,format:i,formatBody:o,formatRows:s,formatRow:u,formatValue:l}}var Ij=jj(",");var Lj=Ij.parse;var Hj=jj("\t");var Uj=Hj.parse;function Gj(i,a){return function(t,e,n){if(arguments.length<3)n=e,e=null;var r=wj(t).mimeType(i);r.row=function(t){return arguments.length?r.response(Vj(a,e=t)):e};r.row(e);return n?r.get(n):r}}function Vj(e,n){return function(t){return e(t.responseText,n)}}var Wj=Gj("text/csv",Lj);var qj=Gj("text/tab-separated-values",Uj);var Kj=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return e[n].map(function(r){return e[i].reduce(function(t,e,n){return t[e]=r[n],t},{})})};function Yj(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Yj=function t(e){return typeof e}}else{Yj=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Yj(t)}function Xj(a,o,s,u){var l=this;var c;var f=function t(e){var n=e.slice(e.length-4);switch(n){case".csv":return Wj;case".tsv":return qj;case".txt":return Ej;default:return Cj}};var h=function t(e,n,r){if(n!==Cj&&!e&&r&&r instanceof Array){r.forEach(function(t){for(var e in t){if(!isNaN(t[e]))t[e]=parseFloat(t[e]);else if(t[e].toLowerCase()==="false")t[e]=false;else if(t[e].toLowerCase()==="true")t[e]=true;else if(t[e].toLowerCase()==="null")t[e]=null;else if(t[e].toLowerCase()==="undefined")t[e]=undefined}})}return r};var d=function t(e){return e.reduce(function(t,e){return e?t+1:t},0)};var g=function t(e,n){return n.indexOf(e)};if(!(a instanceof Array))a=[a];var t=a.find(gj);var v=new Array(a.length);var p=[];if(t){a.forEach(function(t,e){if(gj(t))p.push(t);else v[e]=t})}else{v[0]=a}var y=d(v);p.forEach(function(t){var e={},r=t;if(Yj(t)==="object"){r=t.url;e=t.headers}c=f(r);var n=c(r);for(var i in e){if({}.hasOwnProperty.call(e,i)){n.header(i,e[i])}}n.get(function(t,e){e=t?[]:e;if(e&&!(e instanceof Array)&&e.data&&e.headers)e=Kj(e);e=h(t,c,e);v[g(r,a)]=e;if(d(v)-y===p.length){e=d(v)===1?v[0]:v;if(l._cache)l._lrucache.set("".concat(s,"_").concat(r),e);if(o){var n=o(d(v)===1?v[0]:v);if(s==="data"&&Vl(n)){e=n.data||[];delete n.data;l.config(n)}else e=n||[]}else if(s==="data"){e=hj(v,"data")}if(s&&"_".concat(s)in l)l["_".concat(s)]=e;if(u)u(t,e)}})});if(p.length===0){v=v.map(function(t){if(t&&!(t instanceof Array)&&t.data&&t.headers)t=Kj(t);return t});var e=d(v)===1?v[0]:v;if(o){var n=o(d(v)===1?v[0]:v);if(s==="data"&&Vl(n)){e=n.data||[];delete n.data;this.config(n)}else e=n||[]}else if(s==="data"){e=hj(v,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=e;if(u)u(null,e)}}function Zj(t,e,n){if(!(t instanceof Array))t=[t];var r=t.find(gj);if(r){var i=this._queue.find(function(t){return t[3]===n});var a=[Xj.bind(this),t,e,n];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a)}else{this["_".concat(n)]=t}}var $j=function t(e){return function(){return e}};function Jj(t,e){var n=e.sourceEvent,r=e.target,i=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:true,configurable:true},sourceEvent:{value:n,enumerable:true,configurable:true},target:{value:r,enumerable:true,configurable:true},selection:{value:i,enumerable:true,configurable:true},mode:{value:a,enumerable:true,configurable:true},_:{value:o}})}function Qj(t){t.stopImmediatePropagation()}function tI(t){t.preventDefault();t.stopImmediatePropagation()}var eI={name:"drag"},nI={name:"space"},rI={name:"handle"},iI={name:"center"};var aI=Math.abs,oI=Math.max,sI=Math.min;function uI(t){return[+t[0],+t[1]]}function lI(t){return[uI(t[0]),uI(t[1])]}var cI={name:"x",handles:["w","e"].map(mI),input:function t(e,n){return e==null?null:[[+e[0],n[0][1]],[+e[1],n[1][1]]]},output:function t(e){return e&&[e[0][0],e[1][0]]}};var fI={name:"y",handles:["n","s"].map(mI),input:function t(e,n){return e==null?null:[[n[0][0],+e[0]],[n[1][0],+e[1]]]},output:function t(e){return e&&[e[0][1],e[1][1]]}};var hI={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(mI),input:function t(e){return e==null?null:lI(e)},output:function t(e){return e}};var dI={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"};var gI={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var vI={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var pI={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var yI={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function mI(t){return{type:t}}function _I(t){return!t.ctrlKey&&!t.button}function bI(){var t=this.ownerSVGElement||this;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function wI(){return navigator.maxTouchPoints||"ontouchstart"in this}function xI(t){while(!t.__brush){if(!(t=t.parentNode))return}return t.__brush}function kI(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function SI(){return EI(cI)}function CI(){return EI(hI)}function EI(j){var e=bI,I=_I,r=wI,L=true,a=Vs("start","brush","end"),n=6,H;function o(t){var e=t.property("__brush",c).selectAll(".overlay").data([mI("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",dI.overlay).merge(e).each(function(){var t=xI(this).extent;Is(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])});t.selectAll(".selection").data([mI("selection")]).enter().append("rect").attr("class","selection").attr("cursor",dI.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(j.handles,function(t){return t.type});n.exit().remove();n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return dI[t.type]});t.each(U).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(r).on("touchstart.brush",s).on("touchmove.brush",u).on("touchend.brush touchcancel.brush",l).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}o.move=function(t,s){if(t.tween){t.on("start.brush",function(t){G(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){G(this,arguments).end(t)}).tween("brush",function(){var e=this,n=e.__brush,r=G(e,arguments),t=n.selection,i=j.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),a=Jn(t,i);function o(t){n.selection=t===1&&i===null?null:a(t);U.call(e);r.brush()}return t!==null&&i!==null?o:o(1)})}else{t.each(function(){var t=this,e=arguments,n=t.__brush,r=j.input(typeof s==="function"?s.apply(t,e):s,n.extent),i=G(t,e).beforestart();Tu(t);n.selection=r===null?null:r;U.call(t);i.start().brush().end()})}};o.clear=function(t){o.move(t,null)};function U(){var t=Is(this),e=xI(this).selection;if(e){t.selectAll(".selection").style("display",null).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1]);t.selectAll(".handle").style("display",null).attr("x",function(t){return t.type[t.type.length-1]==="e"?e[1][0]-n/2:e[0][0]-n/2}).attr("y",function(t){return t.type[0]==="s"?e[1][1]-n/2:e[0][1]-n/2}).attr("width",function(t){return t.type==="n"||t.type==="s"?e[1][0]-e[0][0]+n:n}).attr("height",function(t){return t.type==="e"||t.type==="w"?e[1][1]-e[0][1]+n:n})}else{t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function G(t,e,n){var r=t.__brush.emitter;return r&&(!n||!r.clean)?r:new i(t,e,n)}function i(t,e,n){this.that=t;this.args=e;this.state=t.__brush;this.active=0;this.clean=n}i.prototype={beforestart:function t(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function t(e,n){if(this.starting)this.starting=false,this.emit("start",e,n);else this.emit("brush",e);return this},brush:function t(e,n){this.emit("brush",e,n);return this},end:function t(e,n){if(--this.active===0)delete this.state.emitter,this.emit("end",e,n);return this},emit:function t(e,n,r){var i=Is(this.that).datum();a.call(e,this.that,new Jj(e,{sourceEvent:n,target:o,selection:j.output(this.state.selection),mode:r,dispatch:a}),i)}};function s(t){if(H&&!t.touches)return;if(!I.apply(this,arguments))return;var f=this,i=t.target.__data__.type,a=(L&&t.metaKey?i="overlay":i)==="selection"?eI:L&&t.altKey?iI:rI,o=j===fI?null:pI[i],s=j===cI?null:yI[i],u=xI(f),e=u.extent,l=u.selection,c=e[0][0],h,d,g=e[0][1],v,p,y=e[1][0],m,_,b=e[1][1],w,x,k=0,S=0,C,E=o&&s&&L&&t.shiftKey,A,M,R=Array.from(t.touches||[t],function(t){var e=t.identifier;t=Hs(t,f);t.point0=t.slice();t.identifier=e;return t});if(i==="overlay"){if(l)C=true;var n=[R[0],R[1]||R[0]];u.selection=l=[[h=j===fI?c:sI(n[0][0],n[1][0]),v=j===cI?g:sI(n[0][1],n[1][1])],[m=j===fI?y:oI(n[0][0],n[1][0]),w=j===cI?b:oI(n[0][1],n[1][1])]];if(R.length>1)D()}else{h=l[0][0];v=l[0][1];m=l[1][0];w=l[1][1]}d=h;p=v;_=m;x=w;var r=Is(f).attr("pointer-events","none");var T=r.selectAll(".overlay").attr("cursor",dI[i]);Tu(f);var O=G(f,arguments,true).beforestart();if(t.touches){O.moved=B;O.ended=N}else{var P=Is(t.view).on("mousemove.brush",B,true).on("mouseup.brush",N,true);if(L)P.on("keydown.brush",z,true).on("keyup.brush",F,true);TA(t.view)}U.call(f);O.start(t,a.name);function B(t){var e=_createForOfIteratorHelper2(t.changedTouches||[t]),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=_createForOfIteratorHelper2(R),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o.identifier===r.identifier)o.cur=Hs(r,f)}}catch(t){i.e(t)}finally{i.f()}}}catch(t){e.e(t)}finally{e.f()}if(E&&!A&&!M&&R.length===1){var s=R[0];if(aI(s.cur[0]-s[0])>aI(s.cur[1]-s[1]))M=true;else A=true}var u=_createForOfIteratorHelper2(R),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.cur)c[0]=c.cur[0],c[1]=c.cur[1]}}catch(t){u.e(t)}finally{u.f()}C=true;tI(t);D(t)}function D(t){var e=R[0],n=e.point0;var r;k=e[0]-n[0];S=e[1]-n[1];switch(a){case nI:case eI:{if(o)k=oI(c-h,sI(y-m,k)),d=h+k,_=m+k;if(s)S=oI(g-v,sI(b-w,S)),p=v+S,x=w+S;break}case rI:{if(R[1]){if(o)d=oI(c,sI(y,R[0][0])),_=oI(c,sI(y,R[1][0])),o=1;if(s)p=oI(g,sI(b,R[0][1])),x=oI(g,sI(b,R[1][1])),s=1}else{if(o<0)k=oI(c-h,sI(y-h,k)),d=h+k,_=m;else if(o>0)k=oI(c-m,sI(y-m,k)),d=h,_=m+k;if(s<0)S=oI(g-v,sI(b-v,S)),p=v+S,x=w;else if(s>0)S=oI(g-w,sI(b-w,S)),p=v,x=w+S}break}case iI:{if(o)d=oI(c,sI(y,h-k*o)),_=oI(c,sI(y,m+k*o));if(s)p=oI(g,sI(b,v-S*s)),x=oI(g,sI(b,w+S*s));break}}if(_<d){o*=-1;r=h,h=m,m=r;r=d,d=_,_=r;if(i in gI)T.attr("cursor",dI[i=gI[i]])}if(x<p){s*=-1;r=v,v=w,w=r;r=p,p=x,x=r;if(i in vI)T.attr("cursor",dI[i=vI[i]])}if(u.selection)l=u.selection;if(A)d=l[0][0],_=l[1][0];if(M)p=l[0][1],x=l[1][1];if(l[0][0]!==d||l[0][1]!==p||l[1][0]!==_||l[1][1]!==x){u.selection=[[d,p],[_,x]];U.call(f);O.brush(t,a.name)}}function N(t){Qj(t);if(t.touches){if(t.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{OA(t.view,C);P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}r.attr("pointer-events","all");T.attr("cursor",dI.overlay);if(u.selection)l=u.selection;if(kI(l))u.selection=null,U.call(f);O.end(t,a.name)}function z(t){switch(t.keyCode){case 16:{E=o&&s;break}case 18:{if(a===rI){if(o)m=_-k*o,h=d+k*o;if(s)w=x-S*s,v=p+S*s;a=iI;D()}break}case 32:{if(a===rI||a===iI){if(o<0)m=_-k;else if(o>0)h=d-k;if(s<0)w=x-S;else if(s>0)v=p-S;a=nI;T.attr("cursor",dI.selection);D()}break}default:return}tI(t)}function F(t){switch(t.keyCode){case 16:{if(E){A=M=E=false;D()}break}case 18:{if(a===iI){if(o<0)m=_;else if(o>0)h=d;if(s<0)w=x;else if(s>0)v=p;a=rI;D()}break}case 32:{if(a===nI){if(t.altKey){if(o)m=_-k*o,h=d+k*o;if(s)w=x-S*s,v=p+S*s;a=iI}else{if(o<0)m=_;else if(o>0)h=d;if(s<0)w=x;else if(s>0)v=p;a=rI}T.attr("cursor",dI[i]);D()}break}default:return}tI(t)}}function u(t){G(this,arguments).moved(t)}function l(t){G(this,arguments).ended(t)}function c(){var t=this.__brush||{selection:null};t.extent=lI(e.apply(this,arguments));t.dim=j;return t}o.extent=function(t){return arguments.length?(e=typeof t==="function"?t:$j(lI(t)),o):e};o.filter=function(t){return arguments.length?(I=typeof t==="function"?t:$j(!!t),o):I};o.touchable=function(t){return arguments.length?(r=typeof t==="function"?t:$j(!!t),o):r};o.handleSize=function(t){return arguments.length?(n=+t,o):n};o.keyModifiers=function(t){return arguments.length?(L=!!t,o):L};o.on=function(){var t=a.on.apply(a,arguments);return t===a?o:t};return o}var AI=[].slice;var MI={};function RI(t){this._size=t;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}RI.prototype=NI.prototype={constructor:RI,defer:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=AI.call(arguments,1);n.push(e);++this._waiting,this._tasks.push(n);TI(this);return this},abort:function t(){if(this._error==null)BI(this,new Error("abort"));return this},await:function t(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(t,e){n.apply(null,[t].concat(e))};DI(this);return this},awaitAll:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=e;DI(this);return this}};function TI(e){if(!e._start){try{OI(e)}catch(t){if(e._tasks[e._ended+e._active-1])BI(e,t);else if(!e._data)throw t}}}function OI(t){while(t._start=t._waiting&&t._active<t._size){var e=t._ended+t._active,n=t._tasks[e],r=n.length-1,i=n[r];n[r]=PI(t,e);--t._waiting,++t._active;n=i.apply(null,n);if(!t._tasks[e])continue;t._tasks[e]=n||MI}}function PI(n,r){return function(t,e){if(!n._tasks[r])return;--n._active,++n._ended;n._tasks[r]=null;if(n._error!=null)return;if(t!=null){BI(n,t)}else{n._data[r]=e;if(n._waiting)TI(n);else DI(n)}}}function BI(t,e){var n=t._tasks.length,r;t._error=e;t._data=undefined;t._waiting=NaN;while(--n>=0){if(r=t._tasks[n]){t._tasks[n]=null;if(r.abort){try{r.abort()}catch(e){}}}}t._active=NaN;DI(t)}function DI(t){if(!t._active&&t._call){var e=t._data;t._data=undefined;t._call(t._error,e)}}function NI(t){if(t==null)t=Infinity;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new RI(t)}var zI=_5(function(n){(function(t,e){{n.exports=e()}})((typeof window==="undefined"?"undefined":_typeof2(window))==="object"?window:m5,function(){var i=void 0;function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new n(t)}var t=e.prototype;t.get=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return;o(e.linkedList,n);return e.data[t]};t.set=function(t,e){var n=this._LRUCacheState;var r=n.hash[t];if(e===i)return this;if(!r){n.hash[t]=new a(t);n.linkedList.length+=1;r=n.hash[t]}o(n.linkedList,r);n.data[t]=e;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};t.update=function(t,e){if(this.has(t))this.set(t,e(this.get(t)));return this};t.remove=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return this;if(n===e.linkedList.head)e.linkedList.head=n.p;if(n===e.linkedList.end)e.linkedList.end=n.n;s(n.n,n.p);delete e.hash[t];delete e.data[t];e.linkedList.length-=1;return this};t.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};t.info=function(){var t=this._LRUCacheState;return{capacity:t.capacity,length:t.linkedList.length}};t.keys=function(){var t=[];var e=this._LRUCacheState.linkedList.head;while(e){t.push(e.key);e=e.p}return t};t.has=function(t){return!!this._LRUCacheState.hash[t]};t.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};t.popStale=function(){var t=this.staleKey();if(!t)return null;var e=[t,this._LRUCacheState.data[t]];this.remove(t);return e};function n(t){this.capacity=t>0?+t:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE;this.data=Object.create?Object.create(null):{};this.hash=Object.create?Object.create(null):{};this.linkedList=new r}function r(){this.length=0;this.head=null;this.end=null}function a(t){this.key=t;this.p=null;this.n=null}function o(t,e){if(e===t.head)return;if(!t.end){t.end=e}else if(t.end===e){t.end=e.n}s(e.n,e.p);s(e,t.head);t.head=e;t.head.n=null}function s(t,e){if(t===e)return;if(t)t.p=e;if(e)e.n=t}return e})});function FI(t){return t.slice().sort(function(t,e){return t-e})}function jI(t){var e,n=0;for(var r=0;r<t.length;r++){if(r===0||t[r]!==e){e=t[r];n++}}return n}function II(t,e){var n=[];for(var r=0;r<t;r++){var i=[];for(var a=0;a<e;a++){i.push(0)}n.push(i)}return n}function LI(t,e,n,r){var i;if(t>0){var a=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*a*a}else i=r[e]-n[e]*n[e]/(e+1);if(i<0)return 0;return i}function HI(t,e,n,r,i,a,o){if(t>e)return;var s=Math.floor((t+e)/2);r[n][s]=r[n-1][s-1];i[n][s]=s;var u=n;if(t>n)u=Math.max(u,i[n][t-1]||0);u=Math.max(u,i[n-1][s]||0);var l=s-1;if(e<r.length-1)l=Math.min(l,i[n][e+1]||0);for(var c=l;c>=u;--c){var f=LI(c,s,a,o);if(f+r[n-1][u-1]>=r[n][s])break;var h=LI(u,s,a,o);var d=h+r[n-1][u-1];if(d<r[n][s]){r[n][s]=d;i[n][s]=u}u++;var g=f+r[n-1][c-1];if(g<r[n][s]){r[n][s]=g;i[n][s]=c}}HI(t,s-1,n,r,i,a,o);HI(s+1,e,n,r,i,a,o)}function UI(t,e,n){var r=e[0]?e[0].length:0;var i=t[Math.floor(r/2)];var a=[];var o=[];for(var s=0,u=void 0;s<r;++s){u=t[s]-i;if(s===0){a.push(u);o.push(u*u)}else{a.push(a[s-1]+u);o.push(o[s-1]+u*u)}e[0][s]=LI(0,s,a,o);n[0][s]=0}for(var l=1;l<e.length;++l){var c=r-1;if(l<e.length-1)c=l;HI(c,r-1,l,e,n,a,o)}}function GI(t,e){if(e>t.length){throw new Error("Cannot generate more classes than there are data values")}var n=FI(t);var r=jI(n);if(r===1){return[n]}var i=II(e,n.length),a=II(e,n.length);UI(n,a,i);var o=i[0]?i[0].length-1:0;var s=[];for(var u=i.length-1;u>=0;u--){var l=i[u][o];s[u]=n.slice(l,o+1);if(u>0)o=l-1}return s}function VI(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){VI=function t(e){return typeof e}}else{VI=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return VI(t)}function WI(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function qI(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function KI(t,e,n){if(e)qI(t.prototype,e);if(n)qI(t,n);return t}function YI(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)XI(t,e)}function XI(t,e){XI=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return XI(t,e)}function ZI(i){var a=QI();return function t(){var e=tL(i),n;if(a){var r=tL(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return $I(this,n)}}function $I(t,e){if(e&&(VI(e)==="object"||typeof e==="function")){return e}return JI(t)}function JI(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function QI(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function tL(t){tL=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return tL(t)}var eL=5;var nL=function(t){YI(n,t);var e=ZI(n);function n(){var s;WI(this,n);s=e.call(this);s._titleClass=new T9;s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=Ul("id");s._label=Ul("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=nb("Rect");s._shapes=[];s._shapeConfig={fill:Ul("color"),height:nb(12),hitArea:function t(e,n){var r=s._lineData[n],i=Eb([r.height,r.shapeHeight]);return{width:r.width+r.shapeWidth,height:i,x:-r.shapeWidth/2,y:-i/2}},labelBounds:function t(e,n){var r=s._lineData[n];var i=r.shapeWidth/2;if(r.shape==="Circle")i-=r.shapeR/2;var a=Eb([r.shapeHeight,r.height]);return{width:r.width,height:a,x:i+eL,y:-a/2}},labelConfig:{fontColor:nb(Sw.dark),fontFamily:s._titleClass.fontFamily(),fontResize:false,fontSize:nb(10),verticalAlign:"middle"},opacity:1,r:nb(6),width:nb(12),x:function t(e,n){var r=s._lineData[n];var i=r.y;var a=s._align==="left"||s._align==="right"&&s._direction==="column"?0:s._align==="center"?(s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return i===t.y})))/2:s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return i===t.y}));var o=s._lineData.slice(0,n).filter(function(t){return i===t.y});return s._rowWidth(o)+s._padding*(o.length?r.sentence?2:1:0)+s._outerBounds.x+r.shapeWidth/2+a},y:function t(e,n){var r=s._lineData[n];return r.y+s._titleHeight+s._outerBounds.y+Eb(s._lineData.filter(function(t){return r.y===t.y}).map(function(t){return t.height}).concat(s._data.map(function(t,e){return s._fetchConfig("height",t,e)})))/2}};s._titleConfig={fontSize:12};s._verticalAlign="middle";s._width=400;return s}KI(n,[{key:"_fetchConfig",value:function t(e,n,r){var i=this._shapeConfig[e]!==undefined?this._shapeConfig[e]:this._shapeConfig.labelConfig[e];if(!i&&e==="lineHeight")return this._fetchConfig("fontSize",n,r)*1.4;return typeof i==="function"?i(n,r):i}},{key:"_rowHeight",value:function t(e){return Eb(e.map(function(t){return t.height}).concat(e.map(function(t){return t.shapeHeight})))+this._padding}},{key:"_rowWidth",value:function t(r){var i=this;return zb(r.map(function(t,e){var n=i._padding*(e===r.length-1?0:t.width?2:1);return t.shapeWidth+t.width+n}))}},{key:"render",value:function t(e){var f=this;if(this._select===void 0)this.select(Is("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=rb("g.d3plus-Legend",{parent:this._select});this._titleGroup=rb("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=rb("g.d3plus-Legend-shape",{parent:this._group});var h=this._height;this._titleHeight=0;this._titleWidth=0;if(this._title){var n=this._titleConfig.fontFamily||this._titleClass.fontFamily()(),r=this._titleConfig.fontSize||this._titleClass.fontSize()();var i=i=this._titleConfig.lineHeight||this._titleClass.lineHeight();i=i?i():r*1.4;var a=y9().fontFamily(n).fontSize(r).lineHeight(i).width(this._width).height(this._height)(this._title);this._titleHeight=i+a.lines.length+this._padding;this._titleWidth=Eb(a.widths);h-=this._titleHeight}this._lineData=this._data.map(function(t,e){var n=f._label(t,e);var r=f._shape(t,e);var i=f._fetchConfig("r",t,e);var a={data:t,i:e,id:f._id(t,e),shape:r,shapeR:i,shapeWidth:r==="Circle"?i*2:f._fetchConfig("width",t,e),shapeHeight:r==="Circle"?i*2:f._fetchConfig("height",t,e),y:0};if(!n){a.sentence=false;a.words=[];a.height=0;a.width=0;return a}var o=f._fetchConfig("fontFamily",t,e),s=f._fetchConfig("lineHeight",t,e),u=f._fetchConfig("fontSize",t,e);var l=h-(f._data.length+1)*f._padding,c=f._width;a=Object.assign(a,y9().fontFamily(o).fontSize(u).lineHeight(s).width(c).height(l)(n));a.width=Math.ceil(Eb(a.lines.map(function(t){return I6(t,{"font-family":o,"font-size":u})})))+eL*2;a.height=Math.ceil(a.lines.length*(s+1));a.og={height:a.height,width:a.width};a.f=o;a.s=u;a.lh=s;return a});var o;var u=this._width-this._padding*2;o=this._rowWidth(this._lineData);if(this._direction==="column"||o>u){var l=1,c=[];var d=Eb(this._lineData.map(function(t){return t.words.length}));this._wrapLines=function(){var e=this;l++;if(l>d)return;var o=l===1?this._lineData.slice():this._lineData.filter(function(t){return t.width+t.shapeWidth+e._padding*(t.width?2:1)>u&&t.words.length>=l}).sort(function(t,e){return e.sentence.length-t.sentence.length});if(o.length&&h>o[0].height*l){var s=false;var t=function t(e){var n=o[e];var r=n.og.height*l,i=n.og.width*(1.5*(1/l));var a=y9().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(i).height(r)(n.sentence);if(!a.truncated){n.width=Math.ceil(Eb(a.lines.map(function(t){return I6(t,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=a.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;n<o.length;n++){var r=t(n);if(r==="break")break}if(!s)this._wrapRows()}else{c=[];return}};this._wrapRows=function(){c=[];var t=1,e=0;for(var n=0;n<this._lineData.length;n++){var r=this._lineData[n],i=r.width+this._padding*(r.width?2:1)+r.shapeWidth;if(zb(c.map(function(t){return Eb(t,function(t){return Eb([t.height,t.shapeHeight])})}))>h){c=[];break}if(i>u){c=[];this._wrapLines();break}else if(e+i<u){e+=i}else if(this._direction!=="column"){e=i;t++}if(!c[t-1])c[t-1]=[];c[t-1].push(r);if(this._direction==="column"){e=0;t++}}};this._wrapRows();if(!c.length||zb(c,this._rowHeight.bind(this))+this._padding>h){o=zb(this._lineData.map(function(t){return t.shapeWidth+f._padding}))-this._padding;for(var s=0;s<this._lineData.length;s++){this._lineData[s].width=0;this._lineData[s].height=0}this._wrapRows()}if(c.length&&zb(c,this._rowHeight.bind(this))+this._padding<h){c.forEach(function(t,e){t.forEach(function(t){if(e){t.y=zb(c.slice(0,e),f._rowHeight.bind(f))}})});o=Eb(c,this._rowWidth.bind(this))}}var g=Eb(this._lineData,function(t,e){return Eb([t.height,f._fetchConfig("height",t.data,e)])+t.y})+this._titleHeight,v=Eb([o,this._titleWidth]);this._outerBounds.width=v;this._outerBounds.height=g;var p=this._padding,y=this._padding;if(this._align==="center")p=(this._width-v)/2;else if(this._align==="right")p=this._width-this._padding-v;if(this._verticalAlign==="middle")y=(this._height-g)/2;else if(this._verticalAlign==="bottom")y=this._height-this._padding-g;this._outerBounds.x=p;this._outerBounds.y=y;this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).select(this._titleGroup.node()).textAnchor({left:"start",center:"middle",right:"end"}[this._align]).width(this._width-this._padding*2).x(this._padding).y(this._outerBounds.y).config(this._titleConfig).render();this._shapes=[];var m=eb.bind(this)(this._shapeConfig,"legend"),_={id:function t(e){return e.id},label:function t(e){return e.label},lineHeight:function t(e){return e.lH}};var b=this._data.map(function(t,e){var n={__d3plus__:true,data:t,i:e,id:f._id(t,e),label:f._lineData[e].width?f._label(t,e):false,lH:f._fetchConfig("lineHeight",t,e),shape:f._shape(t,e)};return n});this._shapes=[];["Circle","Rect"].forEach(function(e){f._shapes.push((new uC[e]).parent(f).data(b.filter(function(t){return t.shape===e})).duration(f._duration).labelConfig({padding:0}).select(f._shapeGroup.node()).verticalAlign("top").config(ql({},m,_)).render())});if(e)setTimeout(e,this._duration+100);return this}},{key:"active",value:function t(e){this._shapes.forEach(function(t){return t.active(e)});return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"direction",value:function t(e){return arguments.length?(this._direction=e,this):this._direction}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hover",value:function t(e){this._shapes.forEach(function(t){return t.hover(e)});return this}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:nb(e),this):this._label}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:nb(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=ql(this._shapeConfig,e),this):this._shapeConfig}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=ql(this._titleConfig,e),this):this._titleConfig}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=e,this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(J_);function rL(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){rL=function t(e){return typeof e}}else{rL=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return rL(t)}function iL(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function aL(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function oL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function sL(t,e,n){if(e)oL(t.prototype,e);if(n)oL(t,n);return t}function uL(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)lL(t,e)}function lL(t,e){lL=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lL(t,e)}function cL(i){var a=dL();return function t(){var e=gL(i),n;if(a){var r=gL(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return fL(this,n)}}function fL(t,e){if(e&&(rL(e)==="object"||typeof e==="function")){return e}return hL(t)}function hL(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dL(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function gL(t){gL=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gL(t)}var vL=function(t){uL(n,t);var e=cL(n);function n(){var g;aL(this,n);g=e.call(this);g._axisClass=new OC;g._axisConfig={gridSize:0};g._axisTest=new OC;g._align="middle";g._buckets=5;g._bucketAxis=false;g._bucketFormat=function(e,t,n,r){var i=g._axisConfig.tickFormat?g._axisConfig.tickFormat:Nw;var a=n[t+1];var o=t?n[t-1]:false;var s=t===n.length-1;if(e===a||s){var u=s&&e<Eb(r)?"+":"";return"".concat(i(e)).concat(u)}else{var l=a?a/100:e/100;var c=l>=1||l<=-1?Math.round(l).toString().length-1:l.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var f=Math.pow(10,c);var h=o===e&&t===1?i(Ab([e+f,r.find(function(t){return t>e&&t<a})])):i(e);var d=e&&t===1?i(a):i(Eb([a-f,r.reverse().find(function(t){return t>e&&t<a})]));return g._bucketJoiner(h,d)}};g._bucketJoiner=function(t,e){return t!==e?"".concat(t," - ").concat(e):"".concat(t)};g._centered=true;g._color=["#54478C","#2C699A","#0DB39E","#83E377","#EFEA5A"];g._colorMax=Sw.on;g._colorMid=Sw.light;g._colorMin=Sw.off;g._data=[];g._duration=600;g._height=200;g._labelClass=new T9;g._labelConfig={fontColor:Sw.dark,fontSize:12};g._legendClass=new nL;g._legendConfig={shapeConfig:{stroke:Sw.dark,strokeWidth:1}};g._midpoint=0;g._orient="bottom";g._outerBounds={width:0,height:0,x:0,y:0};g._padding=5;g._rectClass=(new r4).parent(hL(g));g._rectConfig={stroke:"#999",strokeWidth:1};g._scale="linear";g._size=10;g._value=Ul("value");g._width=400;return g}sL(n,[{key:"render",value:function t(e){var i=this;if(this._select===void 0)this.select(Is("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var n=["bottom","top"].includes(this._orient);var r=n?"height":"width",a=n?"width":"height",o=n?"x":"y",s=n?"y":"x";this._group=rb("g.d3plus-ColorScale",{parent:this._select});var u=this._data.map(this._value).filter(function(t){return t!==null&&typeof t==="number"}).sort(function(t,e){return t-e});var l=this._domain||gb(u);var c=l[0]<this._midpoint;var f=l[1]>this._midpoint;var h=c&&f;var d=Ab([this._buckets instanceof Array?this._buckets.length:this._buckets,Yb(u).length]);var g=this._color,v,p;if(g&&!(g instanceof Array)){g=Nb(0,d,1).map(function(t){return Mw(g,(t+1)/d)}).reverse()}if(this._scale==="jenks"){var y=Ab([g?g.length:d,d,u.length]);var m=[];if(this._buckets instanceof Array){p=this._buckets}else{if(h&&this._centered){var _=Math.floor(y/2);var b=y%2;var w=u.filter(function(t){return t<i._midpoint});var x=db(w);var k=u.concat(this._midpoint).filter(function(t){return t>=i._midpoint});var S=db(k);var C=x>S?1:0;var E=S>x?1:0;var A=GI(w,_+b*C);var M=GI(k,_+b*E);m=A.concat(M)}else{m=GI(u,y)}p=m.map(function(t){return t[0]})}var R=new Set(p);if(p.length!==R.size){v=Array.from(R)}if(!g){if(h){g=[this._colorMin,this._colorMid,this._colorMax];var T=p.slice(0,y).filter(function(t,e){return t<i._midpoint&&p[e+1]<=i._midpoint});var O=p.slice(0,y).filter(function(t,e){return t<=i._midpoint&&p[e+1]>i._midpoint});var P=p.slice(0,y).filter(function(t,e){return t>i._midpoint&&p[e+1]>i._midpoint});var B=T.map(function(t,e){return!e?g[0]:Mw(g[0],e/T.length)});var D=O.map(function(){return g[1]});var N=P.map(function(t,e){return e===P.length-1?g[2]:Mw(g[2],1-(e+1)/P.length)});g=B.concat(D).concat(N)}else{g=Nb(0,d,1).map(function(t){return Mw(i._colorMax,t/d)}).reverse()}}if(u.length<=y){g=g.slice(y-u.length)}g=[g[0]].concat(g);this._colorScale=Y2().domain(p).range(g)}else{var z=this._buckets instanceof Array?this._buckets:undefined;if(h&&!g){var F=Math.floor(d/2);var j=Nb(0,F,1).map(function(t){return!t?i._colorMin:Mw(i._colorMin,t/F)});var I=(d%2?[0]:[]).map(function(){return i._colorMid});var L=Nb(0,F,1).map(function(t){return!t?i._colorMax:Mw(i._colorMax,t/F)}).reverse();g=j.concat(I).concat(L);if(!z){var H=(g.length-1)/2;z=[l[0],this._midpoint,l[1]];z=Nb(l[0],this._midpoint,-(l[0]-this._midpoint)/H).concat(Nb(this._midpoint,l[1],(l[1]-this._midpoint)/H)).concat([l[1]])}}else{if(!g){if(this._scale==="buckets"||this._scale==="quantile"){g=Nb(0,d,1).map(function(t){return Mw(c?i._colorMin:i._colorMax,t/d)});if(f)g=g.reverse()}else{g=c?[this._colorMin,Mw(this._colorMin,.8)]:[Mw(this._colorMax,.8),this._colorMax]}}if(!z){if(this._scale==="quantile"){var U=1/(g.length-1);z=Nb(0,1+U/2,U).map(function(t){return Tb(u,t)})}else if(h&&this._color&&this._centered){var G=(this._midpoint-l[0])/Math.floor(g.length/2);var V=(l[1]-this._midpoint)/Math.floor(g.length/2);var W=Nb(l[0],this._midpoint,G);var q=Nb(this._midpoint,l[1]+V/2,V);z=W.concat(q)}else{var K=(l[1]-l[0])/(g.length-1);z=Nb(l[0],l[1]+K/2,K)}}}if(this._scale==="buckets"||this._scale==="quantile"){p=z;g=[g[0]].concat(g)}else if(this._scale==="log"){var Y=z.filter(function(t){return t<0});if(Y.length){var X=Y[0];var Z=Y.map(function(t){return-Math.pow(Math.abs(X),t/X)});Y.forEach(function(t,e){z[z.indexOf(t)]=Z[e]})}var $=z.filter(function(t){return t>0});if($.length){var J=$[$.length-1];var Q=$.map(function(t){return Math.pow(J,t/J)});$.forEach(function(t,e){z[z.indexOf(t)]=Q[e]})}if(z.includes(0))z[z.indexOf(0)]=1}this._colorScale=(this._scale==="buckets"||this._scale==="quantile"?Y2:b2)().domain(z).range(g)}if(this._colorScale.clamp)this._colorScale.clamp(true);var tt=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var et=Nl().duration(this._duration);var nt={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:et,update:{opacity:1}};var rt=rb("g.d3plus-ColorScale-labels",Object.assign({condition:tt},nt));var it=rb("g.d3plus-ColorScale-Rect",Object.assign({condition:tt},nt));var at=rb("g.d3plus-ColorScale-legend",Object.assign({condition:!tt},nt));if(tt){var ot;var st={x:0,y:0};var ut=l.slice();if(this._bucketAxis){var lt=ut[ut.length-1];var ct=ut[ut.length-2];var ft=lt?lt/10:ct/10;var ht=ft>=1||ft<=-1?Math.round(ft).toString().length-1:ft.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var dt=Math.pow(10,ht);ut[ut.length-1]=lt+dt}var gt=ql({domain:n?ut:ut.slice().reverse(),duration:this._duration,height:this._height,labels:v||p,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:p,width:this._width},this._axisConfig);var vt=ql({height:this["_".concat(r)]/2,width:this["_".concat(a)]/2},this._labelConfig);this._labelClass.config(vt);var pt=[];if(n&&this._labelMin){var yt={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(yt["font-family"]instanceof Array)yt["font-family"]=yt["font-family"][0];var mt=I6(this._labelMin,yt);if(mt&&mt<this["_".concat(a)]/2){pt.push(this._labelMin);mt+=this._padding;if(n)st.x+=mt;gt[a]-=mt}}if(n&&this._labelMax){var _t={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(_t["font-family"]instanceof Array)_t["font-family"]=_t["font-family"][0];var bt=I6(this._labelMax,_t);if(bt&&bt<this["_".concat(a)]/2){pt.push(this._labelMax);bt+=this._padding;if(!n)st.y+=bt;gt[a]-=bt}}this._axisTest.select(rb("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(gt).duration(0).render();var wt=this._axisTest.outerBounds();this._outerBounds[a]=this["_".concat(a)]-this._padding*2;this._outerBounds[r]=wt[r]+this._size;this._outerBounds[o]=this._padding;this._outerBounds[s]=this._padding;if(this._align==="middle")this._outerBounds[s]=(this["_".concat(r)]-this._outerBounds[r])/2;else if(this._align==="end")this._outerBounds[s]=this["_".concat(r)]-this._padding-this._outerBounds[r];var xt=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(gt.padding||this._axisClass.padding());var kt="translate(".concat(st.x+(n?0:xt),", ").concat(st.y+(n?xt:0),")");this._axisClass.select(rb("g.d3plus-ColorScale-axis",ql(nt,{condition:true,enter:{transform:kt},update:{transform:kt}})).node()).config(gt).align("start").render();var St=this._axisTest._getPosition.bind(this._axisTest);var Ct=this._axisTest._getRange();var Et=this._group.selectAll("defs").data([0]);var At=Et.enter().append("defs");At.append("linearGradient").attr("id","gradient-".concat(this._uuid));Et=At.merge(Et);Et.select("linearGradient").attr("".concat(o,"1"),n?"0%":"100%").attr("".concat(o,"2"),n?"100%":"0%").attr("".concat(s,"1"),"0%").attr("".concat(s,"2"),"0%");var Mt=Et.select("linearGradient").selectAll("stop").data(g);var Rt=this._colorScale.domain();var Tt=b2().domain(Ct).range(n?[0,100]:[100,0]);Mt.enter().append("stop").merge(Mt).attr("offset",function(t,e){return"".concat(e<=Rt.length-1?Tt(St(Rt[e])):100,"%")}).attr("stop-color",String);var Ot=function t(e,n){var r=p[n+1]||ut[ut.length-1];return Math.abs(St(r)-St(e))};var Pt=ql((ot={duration:this._duration,fill:p?function(t){return i._colorScale(t)}:"url(#gradient-".concat(this._uuid,")")},iL(ot,o,p?function(t,e){return St(t)+Ot(t,e)/2-(["left","right"].includes(i._orient)?Ot(t,e):0)}:Ct[0]+(Ct[1]-Ct[0])/2+st[o]),iL(ot,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?wt[r]:0)+this._size/2+st[s]),iL(ot,a,p?Ot:Ct[1]-Ct[0]),iL(ot,r,this._size),ot),this._rectConfig);this._rectClass.data(p||[0]).id(function(t,e){return e}).select(it.node()).config(Pt).render();vt.height=this._outerBounds[r];vt.width=this._outerBounds[a];this._labelClass.config(vt).data(pt).select(rt.node()).x(function(t){return t===i._labelMax?Pt.x+Pt.width/2+i._padding:i._outerBounds.x}).y(function(t){return Pt.y-i._labelClass.fontSize()(t)/2}).text(function(t){return t}).rotate(n?0:this._orient==="right"?90:-90).render()}else{rb("g.d3plus-ColorScale-axis",Object.assign({condition:tt},nt));var Bt=p.reduce(function(t,e,n){var r=i._bucketFormat.bind(i)(e,n,p,u);t.push({color:g[n+1],id:r});return t},[]);if(!n)Bt=Bt.reverse();var Dt=ql({align:n?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:n?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:ql({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:n?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Bt).select(at.node()).config(Dt).render();this._outerBounds=this._legendClass.outerBounds()}if(e)setTimeout(e,this._duration+100);return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=ql(this._axisConfig,e),this):this._axisConfig}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"buckets",value:function t(e){return arguments.length?(this._buckets=e,this):this._buckets}},{key:"bucketAxis",value:function t(e){return arguments.length?(this._bucketAxis=e,this):this._bucketAxis}},{key:"bucketFormat",value:function t(e){return arguments.length?(this._bucketFormat=e,this):this._bucketFormat}},{key:"bucketJoiner",value:function t(e){return arguments.length?(this._bucketJoiner=e,this):this._bucketJoiner}},{key:"centered",value:function t(e){return arguments.length?(this._centered=e,this):this._centered}},{key:"color",value:function t(e){return arguments.length?(this._color=e,this):this._color}},{key:"colorMax",value:function t(e){return arguments.length?(this._colorMax=e,this):this._colorMax}},{key:"colorMid",value:function t(e){return arguments.length?(this._colorMid=e,this):this._colorMid}},{key:"colorMin",value:function t(e){return arguments.length?(this._colorMin=e,this):this._colorMin}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=ql(this._labelConfig,e),this):this._labelConfig}},{key:"labelMin",value:function t(e){return arguments.length?(this._labelMin=e,this):this._labelMin}},{key:"labelMax",value:function t(e){return arguments.length?(this._labelMax=e,this):this._labelMax}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=ql(this._legendConfig,e),this):this._legendConfig}},{key:"midpoint",value:function t(e){return arguments.length?(this._midpoint=e,this):this._midpoint}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=ql(this._rectConfig,e),this):this._rectConfig}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"size",value:function t(e){return arguments.length?(this._size=e,this):this._size}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:nb(e),this):this._value}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(J_);function pL(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){pL=function t(e){return typeof e}}else{pL=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return pL(t)}function yL(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function mL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function _L(t,e,n){if(e)mL(t.prototype,e);if(n)mL(t,n);return t}function bL(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){bL=Reflect.get}else{bL=function t(e,n,r){var i=wL(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return bL(t,e,n||t)}function wL(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=ML(t);if(t===null)break}return t}function xL(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)kL(t,e)}function kL(t,e){kL=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return kL(t,e)}function SL(i){var a=AL();return function t(){var e=ML(i),n;if(a){var r=ML(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return CL(this,n)}}function CL(t,e){if(e&&(pL(e)==="object"||typeof e==="function")){return e}return EL(t)}function EL(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function AL(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function ML(t){ML=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ML(t)}var RL=function(t){xL(y,t);var e=SL(y);function y(){var n;yL(this,y);n=e.call(this);n._barConfig=Object.assign({},n._barConfig,{"stroke-width":function t(){return n._buttonBehaviorCurrent==="buttons"?0:1}});n._brushing=true;n._brushFilter=function(t){return!t.button&&t.detail<2};n._buttonAlign="middle";n._buttonBehavior="auto";n._buttonPadding=10;n._buttonHeight=30;n._domain=[2001,2010];n._gridSize=0;n._handleConfig={fill:Sw.dark};n._handleSize=6;n._height=100;n._labelOffset=false;n._on={};n.orient("bottom");n._scale="time";n._selectionConfig={fill:"#999","stroke-width":0};n._shape="Rect";n._shapeConfig=Object.assign({},n._shapeConfig,{labelBounds:function t(e){return n._buttonBehaviorCurrent==="buttons"?{x:e.labelBounds.x,y:-5,width:e.labelBounds.width,height:n._buttonHeight}:e.labelBounds},fill:function t(){return n._buttonBehaviorCurrent==="buttons"?Sw.light:Sw.dark},height:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._buttonHeight:e.tick?10:0},width:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._ticksWidth/n._availableTicks.length:e.tick?n._domain.map(function(t){return lC(t).getTime()}).includes(e.id)?2:1:0},y:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._align==="middle"?n._height/2:n._align==="start"?n._margin.top+n._buttonHeight/2:n._height-n._buttonHeight/2-n._margin.bottom:e.y}});n._snapping=true;return n}_L(y,[{key:"_brushBrush",value:function t(e){if(e.sourceEvent&&e.sourceEvent.offsetX&&e.selection!==null&&(!this._brushing||this._snapping)){var n=this._updateDomain(e);this._brushGroup.call(this._brush.move,this._updateBrushLimit(n))}this._brushStyle();if(this._on.brush)this._on.brush(this._selection)}},{key:"_brushEnd",value:function t(e){if(!e.sourceEvent)return;var n=this._updateDomain(e);this._brushStyle();if(this._brushing||!this._snapping)this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(n));if(this._on.end)this._on.end(this._selection)}},{key:"_brushStart",value:function t(e){if(e.sourceEvent!==null&&(!this._brushing||this._snapping)){var n=this._updateDomain(e);this._brushGroup.call(this._brush.move,this._updateBrushLimit(n))}this._brushStyle();if(this._on.start)this._on.start(e)}},{key:"_brushStyle",value:function t(){var e=this._position.height;var n=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true})*2:this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[e]==="function"?this._shapeConfig[e]({tick:true}):this._shapeConfig[e]:this._tickSize;var r=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer");var i=this._brushGroup.selectAll(".selection").call(Kl,this._selectionConfig).attr("height",n);var a=this._brushGroup.selectAll(".handle").call(Kl,this._handleConfig).attr("height",this._buttonBehaviorCurrent==="buttons"?this._buttonHeight:n+this._handleSize);if(this._buttonBehaviorCurrent==="buttons"){var o=this._align==="middle"?this._height/2-this._buttonHeight/2:this._align==="start"?this._margin.top:this._height-this._buttonHeight-this._margin.bottom;a.attr("y",o);r.attr("x",this._marginLeft).attr("width",this._ticksWidth);i.attr("y",o)}}},{key:"_updateDomain",value:function t(e){var n=Hs(e,this._select.node())[0];var r=e.selection&&this._brushing?e.selection:[n,n];if(this._buttonBehaviorCurrent==="ticks")r=r.map(this._d3Scale.invert);r=r.map(Number);if(e.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=e.selection.map(function(t){return Math.abs(t-e.sourceEvent.offsetX)});r=i[1]<=i[0]?[e.selection[0],e.sourceEvent.offsetX].sort(function(t,e){return t-e}):[e.sourceEvent.offsetX,e.selection[1]].sort(function(t,e){return t-e})}var a=this._buttonBehaviorCurrent==="ticks"?this._availableTicks.map(Number):this._d3Scale.range();if(this._buttonBehaviorCurrent==="ticks"){r[0]=lC(Q_(r[0],a));r[1]=lC(Q_(r[1],a))}else{r[0]=Q_(r[0],a);r[1]=Q_(r[1],a)}var o=+r[0]===+r[1];if(e.type==="brush"||e.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?o?r[0]:r:o?lC(this._availableTicks[a.indexOf(r[0])]):[lC(this._availableTicks[a.indexOf(r[0])]),lC(this._availableTicks[a.indexOf(r[1])])]}return r}},{key:"_updateBrushLimit",value:function t(e){var n=this._buttonBehaviorCurrent==="ticks"?e.map(lC).map(this._d3Scale):e;if(n[0]===n[1]){n[0]-=.1;n[1]+=.1}if(this._buttonBehaviorCurrent==="buttons"){var r=.5*(this._ticksWidth/this._availableTicks.length-this._handleSize);n[0]-=r;n[1]+=r}return n}},{key:"render",value:function t(e){var s=this;var n=this._position,r=n.height,i=n.y;if(this._buttonBehavior!=="ticks"){var u=this._ticks?this._ticks.map(lC):this._domain.map(lC);var l=aw().domain(u).range([0,this._width]);u=this._ticks?u:l.ticks();if(!this._tickFormat)this._tickFormat=l.tickFormat(u.length-1,this._tickSpecifier);var c=0;u.forEach(function(t,e){var n=s._shapeConfig.labelConfig.fontFamily(t,e),r=s._shapeConfig.labelConfig.fontSize(t,e);var i=y9().fontFamily(n).fontSize(r).lineHeight(s._shapeConfig.lineHeight?s._shapeConfig.lineHeight(t,e):undefined);var a=i(l.tickFormat(u.length-1,s._tickSpecifier)(t));var o=a.lines.length?Math.ceil(Eb(a.lines.map(function(t){return I6(t,{"font-family":n,"font-size":r})})))+r/4:0;if(o%2)o++;if(c<o)c=o+2*s._buttonPadding});this._ticksWidth=c*u.length}this._buttonBehaviorCurrent=this._buttonBehavior==="auto"?this._ticksWidth<this._width?"buttons":"ticks":this._buttonBehavior;if(this._buttonBehaviorCurrent==="buttons"){this._scale="ordinal";this._labelRotation=0;if(!this._brushing)this._handleSize=0;var a=aw().domain(this._domain.map(lC)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(lC):Array.from(Array(a[a.length-1]-a[0]+1),function(t,e){return a[0]+e}).map(lC);this._ticks=this._domain;var o=.5*this._ticksWidth/this._ticks.length;this._marginLeft=this._buttonAlign==="middle"?(this._width-this._ticksWidth)/2:this._buttonAlign==="end"?this._width-this._ticksWidth:0;var f=this._buttonAlign==="middle"?(this._width+this._ticksWidth)/2:this._buttonAlign==="start"?this._ticksWidth:undefined;this._range=[this._buttonAlign==="start"?undefined:this._marginLeft+o,this._buttonAlign==="end"?undefined:f-o]}if(this._ticks)this._domain=this._buttonBehaviorCurrent==="ticks"?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(lC);this._labels=this._ticks;bL(ML(y.prototype),"render",this).call(this,e);var h=this._outerBounds[i],d=this._d3Scale.range();var g=this._brush=SI().extent([[d[0],h],[d[d.length-1],h+this._outerBounds[r]]]).filter(this._brushFilter).handleSize(this._handleSize).on("start",this._brushStart.bind(this)).on("brush",this._brushBrush.bind(this)).on("end",this._brushEnd.bind(this));var v=this._buttonBehaviorCurrent==="ticks"?this._availableTicks[this._availableTicks.length-1]:d[d.length-1];var p=this._selection===void 0?[v,v]:this._selection instanceof Array?this._buttonBehaviorCurrent==="buttons"?this._selection.map(function(t){return d[s._ticks.map(Number).indexOf(+t)]}).slice():this._selection.slice():this._buttonBehaviorCurrent==="buttons"?[d[this._ticks.map(Number).indexOf(+this._selection)],d[this._ticks.map(Number).indexOf(+this._selection)]]:[this._selection,this._selection];this._updateBrushLimit(p);this._brushGroup=rb("g.brushGroup",{parent:this._group});this._brushGroup.call(g).transition(this._transition).call(g.move,this._buttonBehaviorCurrent==="ticks"?this._updateBrushLimit(p):p);this._outerBounds.y-=this._handleSize/2;this._outerBounds.height+=this._handleSize/2;return this}},{key:"buttonPadding",value:function t(e){return arguments.length?(this._buttonPadding=e,this):this._buttonPadding}},{key:"brushing",value:function t(e){return arguments.length?(this._brushing=e,this):this._brushing}},{key:"brushFilter",value:function t(e){return arguments.length?(this._brushFilter=e,this):this._brushFilter}},{key:"buttonAlign",value:function t(e){return arguments.length?(this._buttonAlign=e,this):this._buttonAlign}},{key:"buttonBehavior",value:function t(e){return arguments.length?(this._buttonBehavior=e,this):this._buttonBehavior}},{key:"buttonHeight",value:function t(e){return arguments.length?(this._buttonHeight=e,this):this._buttonHeight}},{key:"handleConfig",value:function t(e){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,e),this):this._handleConfig}},{key:"handleSize",value:function t(e){return arguments.length?(this._handleSize=e,this):this._handleSize}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"selectionConfig",value:function t(e){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,e),this):this._selectionConfig}},{key:"selection",value:function t(e){return arguments.length?(this._selection=e,this):this._selection}},{key:"snapping",value:function t(e){return arguments.length?(this._snapping=e,this):this._snapping}}]);return y}(OC);function TL(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function OL(t){var e=TL(t).Element;return t instanceof e||t instanceof Element}function PL(t){var e=TL(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function BL(t){if(typeof ShadowRoot==="undefined"){return false}var e=TL(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var DL=Math.max;var NL=Math.min;var zL=Math.round;function FL(t,e){if(e===void 0){e=false}var n=t.getBoundingClientRect();var r=1;var i=1;if(PL(t)&&e){var a=t.offsetHeight;var o=t.offsetWidth;if(o>0){r=zL(n.width)/o||1}if(a>0){i=zL(n.height)/a||1}}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function jL(t){var e=TL(t);var n=e.pageXOffset;var r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function IL(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function LL(t){if(t===TL(t)||!PL(t)){return jL(t)}else{return IL(t)}}function HL(t){return t?(t.nodeName||"").toLowerCase():null}function UL(t){return((OL(t)?t.ownerDocument:t.document)||window.document).documentElement}function GL(t){return FL(UL(t)).left+jL(t).scrollLeft}function VL(t){return TL(t).getComputedStyle(t)}function WL(t){var e=VL(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function qL(t){var e=t.getBoundingClientRect();var n=zL(e.width)/t.offsetWidth||1;var r=zL(e.height)/t.offsetHeight||1;return n!==1||r!==1}function KL(t,e,n){if(n===void 0){n=false}var r=PL(e);var i=PL(e)&&qL(e);var a=UL(e);var o=FL(t,i);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(r||!r&&!n){if(HL(e)!=="body"||WL(a)){s=LL(e)}if(PL(e)){u=FL(e,true);u.x+=e.clientLeft;u.y+=e.clientTop}else if(a){u.x=GL(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function YL(t){var e=FL(t);var n=t.offsetWidth;var r=t.offsetHeight;if(Math.abs(e.width-n)<=1){n=e.width}if(Math.abs(e.height-r)<=1){r=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function XL(t){if(HL(t)==="html"){return t}return t.assignedSlot||t.parentNode||(BL(t)?t.host:null)||UL(t)}function ZL(t){if(["html","body","#document"].indexOf(HL(t))>=0){return t.ownerDocument.body}if(PL(t)&&WL(t)){return t}return ZL(XL(t))}function $L(t,e){var n;if(e===void 0){e=[]}var r=ZL(t);var i=r===((n=t.ownerDocument)==null?void 0:n.body);var a=TL(r);var o=i?[a].concat(a.visualViewport||[],WL(r)?r:[]):r;var s=e.concat(o);return i?s:s.concat($L(XL(o)))}function JL(t){return["table","td","th"].indexOf(HL(t))>=0}function QL(t){if(!PL(t)||VL(t).position==="fixed"){return null}return t.offsetParent}function tH(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&PL(t)){var r=VL(t);if(r.position==="fixed"){return null}}var i=XL(t);while(PL(i)&&["html","body"].indexOf(HL(i))<0){var a=VL(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function eH(t){var e=TL(t);var n=QL(t);while(n&&JL(n)&&VL(n).position==="static"){n=QL(n)}if(n&&(HL(n)==="html"||HL(n)==="body"&&VL(n).position==="static")){return e}return n||tH(t)||e}var nH="top";var rH="bottom";var iH="right";var aH="left";var oH="auto";var sH=[nH,rH,iH,aH];var uH="start";var lH="end";var cH="clippingParents";var fH="viewport";var hH="popper";var dH="reference";var gH=sH.reduce(function(t,e){return t.concat([e+"-"+uH,e+"-"+lH])},[]);var vH=[].concat(sH,[oH]).reduce(function(t,e){return t.concat([e,e+"-"+uH,e+"-"+lH])},[]);var pH="beforeRead";var yH="read";var mH="afterRead";var _H="beforeMain";var bH="main";var wH="afterMain";var xH="beforeWrite";var kH="write";var SH="afterWrite";var CH=[pH,yH,mH,_H,bH,wH,xH,kH,SH];function EH(t){var n=new Map;var r=new Set;var i=[];t.forEach(function(t){n.set(t.name,t)});function a(t){r.add(t.name);var e=[].concat(t.requires||[],t.requiresIfExists||[]);e.forEach(function(t){if(!r.has(t)){var e=n.get(t);if(e){a(e)}}});i.push(t)}t.forEach(function(t){if(!r.has(t.name)){a(t)}});return i}function AH(t){var n=EH(t);return CH.reduce(function(t,e){return t.concat(n.filter(function(t){return t.phase===e}))},[])}function MH(e){var n;return function(){if(!n){n=new Promise(function(t){Promise.resolve().then(function(){n=undefined;t(e())})})}return n}}function RH(t){return t.split("-")[0]}function TH(t){var e=t.reduce(function(t,e){var n=t[e.name];t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e;return t},{});return Object.keys(e).map(function(t){return e[t]})}function OH(t){var e=TL(t);var n=UL(t);var r=e.visualViewport;var i=n.clientWidth;var a=n.clientHeight;var o=0;var s=0;if(r){i=r.width;a=r.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){o=r.offsetLeft;s=r.offsetTop}}return{width:i,height:a,x:o+GL(t),y:s}}function PH(t){var e;var n=UL(t);var r=jL(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=DL(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=DL(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-r.scrollLeft+GL(t);var u=-r.scrollTop;if(VL(i||n).direction==="rtl"){s+=DL(n.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function BH(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(n&&BL(n)){var r=e;do{if(r&&t.isSameNode(r)){return true}r=r.parentNode||r.host}while(r)}return false}function DH(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function NH(t){var e=FL(t);e.top=e.top+t.clientTop;e.left=e.left+t.clientLeft;e.bottom=e.top+t.clientHeight;e.right=e.left+t.clientWidth;e.width=t.clientWidth;e.height=t.clientHeight;e.x=e.left;e.y=e.top;return e}function zH(t,e){return e===fH?DH(OH(t)):OL(e)?NH(e):DH(PH(UL(t)))}function FH(t){var e=$L(XL(t));var n=["absolute","fixed"].indexOf(VL(t).position)>=0;var r=n&&PL(t)?eH(t):t;if(!OL(r)){return[]}return e.filter(function(t){return OL(t)&&BH(t,r)&&HL(t)!=="body"&&(n?VL(t).position!=="static":true)})}function jH(r,t,e){var n=t==="clippingParents"?FH(r):[].concat(t);var i=[].concat(n,[e]);var a=i[0];var o=i.reduce(function(t,e){var n=zH(r,e);t.top=DL(n.top,t.top);t.right=NL(n.right,t.right);t.bottom=NL(n.bottom,t.bottom);t.left=DL(n.left,t.left);return t},zH(r,a));o.width=o.right-o.left;o.height=o.bottom-o.top;o.x=o.left;o.y=o.top;return o}function IH(t){return t.split("-")[1]}function LH(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function HH(t){var e=t.reference,n=t.element,r=t.placement;var i=r?RH(r):null;var a=r?IH(r):null;var o=e.x+e.width/2-n.width/2;var s=e.y+e.height/2-n.height/2;var u;switch(i){case nH:u={x:o,y:e.y-n.height};break;case rH:u={x:o,y:e.y+e.height};break;case iH:u={x:e.x+e.width,y:s};break;case aH:u={x:e.x-n.width,y:s};break;default:u={x:e.x,y:e.y}}var l=i?LH(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case uH:u[l]=u[l]-(e[c]/2-n[c]/2);break;case lH:u[l]=u[l]+(e[c]/2-n[c]/2);break}}return u}function UH(){return{top:0,right:0,bottom:0,left:0}}function GH(t){return Object.assign({},UH(),t)}function VH(n,t){return t.reduce(function(t,e){t[e]=n;return t},{})}function WH(t,e){if(e===void 0){e={}}var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.boundary,o=a===void 0?cH:a,s=n.rootBoundary,u=s===void 0?fH:s,l=n.elementContext,c=l===void 0?hH:l,f=n.altBoundary,h=f===void 0?false:f,d=n.padding,g=d===void 0?0:d;var v=GH(typeof g!=="number"?g:VH(g,sH));var p=c===hH?dH:hH;var y=t.rects.popper;var m=t.elements[h?p:c];var _=jH(OL(m)?m:m.contextElement||UL(t.elements.popper),o,u);var b=FL(t.elements.reference);var w=HH({reference:b,element:y,strategy:"absolute",placement:i});var x=DH(Object.assign({},y,w));var k=c===hH?x:b;var S={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right};var C=t.modifiersData.offset;if(c===hH&&C){var E=C[i];Object.keys(S).forEach(function(t){var e=[iH,rH].indexOf(t)>=0?1:-1;var n=[nH,rH].indexOf(t)>=0?"y":"x";S[t]+=E[n]*e})}return S}var qH={placement:"bottom",modifiers:[],strategy:"absolute"};function KH(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}return!e.some(function(t){return!(t&&typeof t.getBoundingClientRect==="function")})}function YH(t){if(t===void 0){t={}}var e=t,n=e.defaultModifiers,l=n===void 0?[]:n,r=e.defaultOptions,d=r===void 0?qH:r;return function t(i,a,e){if(e===void 0){e=d}var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},qH,d),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}};var s=[];var f=false;var h={state:c,setOptions:function t(e){var n=typeof e==="function"?e(c.options):e;u();c.options=Object.assign({},d,c.options,n);c.scrollParents={reference:OL(i)?$L(i):i.contextElement?$L(i.contextElement):[],popper:$L(a)};var r=AH(TH([].concat(l,c.options.modifiers)));c.orderedModifiers=r.filter(function(t){return t.enabled});o();return h.update()},forceUpdate:function t(){if(f){return}var e=c.elements,n=e.reference,r=e.popper;if(!KH(n,r)){return}c.rects={reference:KL(n,eH(r),c.options.strategy==="fixed"),popper:YL(r)};c.reset=false;c.placement=c.options.placement;c.orderedModifiers.forEach(function(t){return c.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<c.orderedModifiers.length;i++){if(c.reset===true){c.reset=false;i=-1;continue}var a=c.orderedModifiers[i],o=a.fn,s=a.options,u=s===void 0?{}:s,l=a.name;if(typeof o==="function"){c=o({state:c,options:u,name:l,instance:h})||c}}},update:MH(function(){return new Promise(function(t){h.forceUpdate();t(c)})}),destroy:function t(){u();f=true}};if(!KH(i,a)){return h}h.setOptions(e).then(function(t){if(!f&&e.onFirstUpdate){e.onFirstUpdate(t)}});function o(){c.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=n===void 0?{}:n,i=t.effect;if(typeof i==="function"){var a=i({state:c,name:e,instance:h,options:r});var o=function t(){};s.push(a||o)}})}function u(){s.forEach(function(t){return t()});s=[]}return h}}var XH={passive:true};function ZH(t){var e=t.state,n=t.instance,r=t.options;var i=r.scroll,a=i===void 0?true:i,o=r.resize,s=o===void 0?true:o;var u=TL(e.elements.popper);var l=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){l.forEach(function(t){t.addEventListener("scroll",n.update,XH)})}if(s){u.addEventListener("resize",n.update,XH)}return function(){if(a){l.forEach(function(t){t.removeEventListener("scroll",n.update,XH)})}if(s){u.removeEventListener("resize",n.update,XH)}}}var $H={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:ZH,data:{}};function JH(t){var e=t.state,n=t.name;e.modifiersData[n]=HH({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var QH={name:"popperOffsets",enabled:true,phase:"read",fn:JH,data:{}};var tU={top:"auto",right:"auto",bottom:"auto",left:"auto"};function eU(t){var e=t.x,n=t.y;var r=window;var i=r.devicePixelRatio||1;return{x:zL(e*i)/i||0,y:zL(n*i)/i||0}}function nU(t){var e;var n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed;var h=c===true?eU(o):typeof c==="function"?c(o):o,d=h.x,g=d===void 0?0:d,v=h.y,p=v===void 0?0:v;var y=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var _=aH;var b=nH;var w=window;if(l){var x=eH(n);var k="clientHeight";var S="clientWidth";if(x===TL(n)){x=UL(n);if(VL(x).position!=="static"&&s==="absolute"){k="scrollHeight";S="scrollWidth"}}x=x;if(i===nH||(i===aH||i===iH)&&a===lH){b=rH;var C=f&&w.visualViewport?w.visualViewport.height:x[k];p-=C-r.height;p*=u?1:-1}if(i===aH||(i===nH||i===rH)&&a===lH){_=iH;var E=f&&w.visualViewport?w.visualViewport.width:x[S];g-=E-r.width;g*=u?1:-1}}var A=Object.assign({position:s},l&&tU);if(u){var M;return Object.assign({},A,(M={},M[b]=m?"0":"",M[_]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",M))}return Object.assign({},A,(e={},e[b]=m?p+"px":"",e[_]=y?g+"px":"",e.transform="",e))}function rU(t){var e=t.state,n=t.options;var r=n.gpuAcceleration,i=r===void 0?true:r,a=n.adaptive,o=a===void 0?true:a,s=n.roundOffsets,u=s===void 0?true:s;var l={placement:RH(e.placement),variation:IH(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,nU(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,nU(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var iU={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:rU,data:{}};function aU(t){var i=t.state;Object.keys(i.elements).forEach(function(t){var e=i.styles[t]||{};var n=i.attributes[t]||{};var r=i.elements[t];if(!PL(r)||!HL(r)){return}Object.assign(r.style,e);Object.keys(n).forEach(function(t){var e=n[t];if(e===false){r.removeAttribute(t)}else{r.setAttribute(t,e===true?"":e)}})})}function oU(t){var a=t.state;var o={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(a.elements.popper.style,o.popper);a.styles=o;if(a.elements.arrow){Object.assign(a.elements.arrow.style,o.arrow)}return function(){Object.keys(a.elements).forEach(function(t){var e=a.elements[t];var n=a.attributes[t]||{};var r=Object.keys(a.styles.hasOwnProperty(t)?a.styles[t]:o[t]);var i=r.reduce(function(t,e){t[e]="";return t},{});if(!PL(e)||!HL(e)){return}Object.assign(e.style,i);Object.keys(n).forEach(function(t){e.removeAttribute(t)})})}}var sU={name:"applyStyles",enabled:true,phase:"write",fn:aU,effect:oU,requires:["computeStyles"]};function uU(t,e,n){var r=RH(t);var i=[aH,nH].indexOf(r)>=0?-1:1;var a=typeof n==="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[aH,iH].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function lU(t){var n=t.state,e=t.options,r=t.name;var i=e.offset,a=i===void 0?[0,0]:i;var o=vH.reduce(function(t,e){t[e]=uU(e,n.rects,a);return t},{});var s=o[n.placement],u=s.x,l=s.y;if(n.modifiersData.popperOffsets!=null){n.modifiersData.popperOffsets.x+=u;n.modifiersData.popperOffsets.y+=l}n.modifiersData[r]=o}var cU={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:lU};var fU={left:"right",right:"left",bottom:"top",top:"bottom"};function hU(t){return t.replace(/left|right|bottom|top/g,function(t){return fU[t]})}var dU={start:"end",end:"start"};function gU(t){return t.replace(/start|end/g,function(t){return dU[t]})}function vU(n,t){if(t===void 0){t={}}var e=t,r=e.placement,i=e.boundary,a=e.rootBoundary,o=e.padding,s=e.flipVariations,u=e.allowedAutoPlacements,l=u===void 0?vH:u;var c=IH(r);var f=c?s?gH:gH.filter(function(t){return IH(t)===c}):sH;var h=f.filter(function(t){return l.indexOf(t)>=0});if(h.length===0){h=f}var d=h.reduce(function(t,e){t[e]=WH(n,{placement:e,boundary:i,rootBoundary:a,padding:o})[RH(e)];return t},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}function pU(t){if(RH(t)===oH){return[]}var e=hU(t);return[gU(t),e,gU(e)]}function yU(t){var n=t.state,e=t.options,r=t.name;if(n.modifiersData[r]._skip){return}var i=e.mainAxis,a=i===void 0?true:i,o=e.altAxis,s=o===void 0?true:o,u=e.fallbackPlacements,l=e.padding,c=e.boundary,f=e.rootBoundary,h=e.altBoundary,d=e.flipVariations,g=d===void 0?true:d,v=e.allowedAutoPlacements;var p=n.options.placement;var y=RH(p);var m=y===p;var _=u||(m||!g?[hU(p)]:pU(p));var b=[p].concat(_).reduce(function(t,e){return t.concat(RH(e)===oH?vU(n,{placement:e,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:v}):e)},[]);var w=n.rects.reference;var x=n.rects.popper;var k=new Map;var S=true;var C=b[0];for(var E=0;E<b.length;E++){var A=b[E];var M=RH(A);var R=IH(A)===uH;var T=[nH,rH].indexOf(M)>=0;var O=T?"width":"height";var P=WH(n,{placement:A,boundary:c,rootBoundary:f,altBoundary:h,padding:l});var B=T?R?iH:aH:R?rH:nH;if(w[O]>x[O]){B=hU(B)}var D=hU(B);var N=[];if(a){N.push(P[M]<=0)}if(s){N.push(P[B]<=0,P[D]<=0)}if(N.every(function(t){return t})){C=A;S=false;break}k.set(A,N)}if(S){var z=g?3:1;var F=function t(n){var e=b.find(function(t){var e=k.get(t);if(e){return e.slice(0,n).every(function(t){return t})}});if(e){C=e;return"break"}};for(var j=z;j>0;j--){var I=F(j);if(I==="break")break}}if(n.placement!==C){n.modifiersData[r]._skip=true;n.placement=C;n.reset=true}}var mU={name:"flip",enabled:true,phase:"main",fn:yU,requiresIfExists:["offset"],data:{_skip:false}};function _U(t){return t==="x"?"y":"x"}function bU(t,e,n){return DL(t,NL(e,n))}function wU(t,e,n){var r=bU(t,e,n);return r>n?n:r}function xU(t){var e=t.state,n=t.options,r=t.name;var i=n.mainAxis,a=i===void 0?true:i,o=n.altAxis,s=o===void 0?false:o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?true:h,g=n.tetherOffset,v=g===void 0?0:g;var p=WH(e,{boundary:u,rootBoundary:l,padding:f,altBoundary:c});var y=RH(e.placement);var m=IH(e.placement);var _=!m;var b=LH(y);var w=_U(b);var x=e.modifiersData.popperOffsets;var k=e.rects.reference;var S=e.rects.popper;var C=typeof v==="function"?v(Object.assign({},e.rects,{placement:e.placement})):v;var E=typeof C==="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C);var A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var M={x:0,y:0};if(!x){return}if(a){var R;var T=b==="y"?nH:aH;var O=b==="y"?rH:iH;var P=b==="y"?"height":"width";var B=x[b];var D=B+p[T];var N=B-p[O];var z=d?-S[P]/2:0;var F=m===uH?k[P]:S[P];var j=m===uH?-S[P]:-k[P];var I=e.elements.arrow;var L=d&&I?YL(I):{width:0,height:0};var H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:UH();var U=H[T];var G=H[O];var V=bU(0,k[P],L[P]);var W=_?k[P]/2-z-V-U-E.mainAxis:F-V-U-E.mainAxis;var q=_?-k[P]/2+z+V+G+E.mainAxis:j+V+G+E.mainAxis;var K=e.elements.arrow&&eH(e.elements.arrow);var Y=K?b==="y"?K.clientTop||0:K.clientLeft||0:0;var X=(R=A==null?void 0:A[b])!=null?R:0;var Z=B+W-X-Y;var $=B+q-X;var J=bU(d?NL(D,Z):D,B,d?DL(N,$):N);x[b]=J;M[b]=J-B}if(s){var Q;var tt=b==="x"?nH:aH;var et=b==="x"?rH:iH;var nt=x[w];var rt=w==="y"?"height":"width";var it=nt+p[tt];var at=nt-p[et];var ot=[nH,aH].indexOf(y)!==-1;var st=(Q=A==null?void 0:A[w])!=null?Q:0;var ut=ot?it:nt-k[rt]-S[rt]-st+E.altAxis;var lt=ot?nt+k[rt]+S[rt]-st-E.altAxis:at;var ct=d&&ot?wU(ut,nt,lt):bU(d?ut:it,nt,d?lt:at);x[w]=ct;M[w]=ct-nt}e.modifiersData[r]=M}var kU={name:"preventOverflow",enabled:true,phase:"main",fn:xU,requiresIfExists:["offset"]};var SU=function t(e,n){e=typeof e==="function"?e(Object.assign({},n.rects,{placement:n.placement})):e;return GH(typeof e!=="number"?e:VH(e,sH))};function CU(t){var e;var n=t.state,r=t.name,i=t.options;var a=n.elements.arrow;var o=n.modifiersData.popperOffsets;var s=RH(n.placement);var u=LH(s);var l=[aH,iH].indexOf(s)>=0;var c=l?"height":"width";if(!a||!o){return}var f=SU(i.padding,n);var h=YL(a);var d=u==="y"?nH:aH;var g=u==="y"?rH:iH;var v=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c];var p=o[u]-n.rects.reference[u];var y=eH(a);var m=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0;var _=v/2-p/2;var b=f[d];var w=m-h[c]-f[g];var x=m/2-h[c]/2+_;var k=bU(b,x,w);var S=u;n.modifiersData[r]=(e={},e[S]=k,e.centerOffset=k-x,e)}function EU(t){var e=t.state,n=t.options;var r=n.element,i=r===void 0?"[data-popper-arrow]":r;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!BH(e.elements.popper,i)){return}e.elements.arrow=i}var AU={name:"arrow",enabled:true,phase:"main",fn:CU,effect:EU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function MU(t,e,n){if(n===void 0){n={x:0,y:0}}return{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function RU(e){return[nH,iH,rH,aH].some(function(t){return e[t]>=0})}function TU(t){var e=t.state,n=t.name;var r=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=WH(e,{elementContext:"reference"});var s=WH(e,{altBoundary:true});var u=MU(o,r);var l=MU(s,i,a);var c=RU(u);var f=RU(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var OU={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:TU};var PU=[$H,QH,iU,sU,cU,mU,kU,AU,OU];var BU=YH({defaultModifiers:PU});function DU(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){DU=function t(e){return typeof e}}else{DU=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return DU(t)}function NU(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function zU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function FU(t,e,n){if(e)zU(t.prototype,e);if(n)zU(t,n);return t}function jU(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)IU(t,e)}function IU(t,e){IU=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return IU(t,e)}function LU(i){var a=GU();return function t(){var e=VU(i),n;if(a){var r=VU(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return HU(this,n)}}function HU(t,e){if(e&&(DU(e)==="object"||typeof e==="function")){return e}return UU(t)}function UU(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function GU(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function VU(t){VU=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return VU(t)}function WU(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[0,0];return function(){return{width:0,height:0,top:t[1],right:t[0],bottom:t[1],left:t[0]}}}var qU=function(t){jU(n,t);var e=LU(n);function n(){var t;NU(this,n);t=e.call(this);t._arrow=Ul("arrow","");t._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"};t._background=nb(Sw.light);t._body=Ul("body","");t._bodyStyle={color:Sw.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};t._border=nb("1px solid rgba(0, 0, 0, 0.1)");t._borderRadius=nb("2px");t._className="d3plus-tooltip";t._data=[];t._footer=Ul("footer","");t._footerStyle={color:Sw.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","margin-top":"5px","z-index":"1"};t._height=nb("auto");t._id=function(t,e){return"".concat(e)};t._offset=nb(5);t._padding=nb("10px");t._pointerEvents=nb("auto");t._popperClasses={};t._position=function(t){return[t.x,t.y]};t._prefix=$b();t._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"};t._tbody=[];t._tbodyStyle={color:Sw.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"};t._thead=[];t._theadStyle={color:Sw.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"};t._title=Ul("title","");t._titleStyle={color:Sw.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"16px","font-weight":"600","margin-bottom":"5px"};t._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"};t._tdStyle={};t._width=nb("auto");return t}FU(n,[{key:"render",value:function t(e){var l=this;var c=this;var n=Is("body").selectAll(".".concat(this._className)).data(this._data,this._id);var r=n.enter().append("div").attr("class",this._className);var a=n.merge(r);function i(i){r.append("div").attr("class","d3plus-tooltip-".concat(i)).attr("id",function(t,e){return"d3plus-tooltip-".concat(i,"-").concat(t?c._id(t,e):"")});var t=a.select(".d3plus-tooltip-".concat(i)).html(function(t,e){return c["_".concat(i)](t,e)}).style("display",function(t,e){var n=c["_".concat(i)](t,e);var r=n!==false&&n!==undefined&&n!==null;return r?"block":"none"});Jb(t,c["_".concat(i,"Style")])}function o(t){if(typeof t==="function"){var e=Is(this.parentNode.parentNode).datum();return t(e,c._data.indexOf(e))}else return t}function s(t){t.style("background",c._background).style("".concat(c._prefix,"border-radius"),c._borderRadius).style("pointer-events",c._pointerEvents).style("padding",c._padding).style("width",c._width).style("height",c._height).style("border",function(t,e){var n=Is(this).style("border");return n!=="0px none rgb(0, 0, 0)"?n:c._border(t,e)})}i("title");i("body");var u=r.append("table").attr("class","d3plus-tooltip-table");var f=a.select(".d3plus-tooltip-table");Jb(f,this._tableStyle);u.append("thead").attr("class","d3plus-tooltip-thead");var h=a.select(".d3plus-tooltip-thead");Jb(h,this._theadStyle);var d=h.selectAll("tr").data([0]);var g=d.enter().append("tr");d.exit().remove();var v=d.merge(g);Jb(v,this._trStyle);var p=v.selectAll("th").data(this._thead);p.enter().append("th").merge(p).html(o);p.exit().remove();u.append("tbody").attr("class","d3plus-tooltip-tbody");var y=a.select(".d3plus-tooltip-tbody");Jb(y,this._tbodyStyle);var m=y.selectAll("tr").data(this._tbody);var _=m.enter().append("tr");m.exit().remove();var b=m.merge(_);Jb(b,this._trStyle);var w=b.selectAll("td").data(function(t){return t});w.enter().append("td").merge(w).html(o);Jb(w,this._tdStyle);i("footer");i("arrow");r.attr("id",function(t,e){return"d3plus-tooltip-".concat(t?l._id(t,e):"")}).call(s).each(function(t,e){var n=c._id(t,e);var r=document.getElementById("d3plus-tooltip-".concat(n));var i=document.getElementById("d3plus-tooltip-arrow-".concat(n));var o=i.offsetHeight;var a=i.getBoundingClientRect().height/2;i.style.bottom="-".concat(o/2,"px");var s=c._position(t,e);var u=Array.isArray(s)?{getBoundingClientRect:WU(s)}:s;l._popperClasses[n]=BU(u,r,{placement:"top",placements:["top","bottom"],modifiers:[{name:"arrow",options:{element:i}},{name:"offset",options:{offset:[0,c._offset(t,e)+a]}},{name:"preventOverflow",options:{boundary:"scrollParent",padding:5}},{name:"flip",options:{behavior:"flip",boundary:"viewport",padding:5}},{name:"update",enabled:true,phase:"afterWrite",fn:function t(e){var n=e.state;var r=n.elements.arrow;var i=n.styles.arrow;var a=n.modifiersData.flip._skip;if(a){r.style.transform="".concat(i.transform,"rotate(225deg)");r.style.top="-".concat(o/2,"px")}else{r.style.transform="".concat(i.transform,"rotate(45deg)");r.style.bottom="-".concat(o/2,"px")}}}],removeOnDestroy:true})});a.each(function(t,e){var n=c._id(t,e);var r=c._position(t,e);var i=l._popperClasses[n];if(i){i.state.elements.reference.getBoundingClientRect=Array.isArray(r)?WU(r):r;i.update()}}).call(s);n.exit().each(function(t,e){var n=c._id(t,e);var r=l._popperClasses[n];if(r){r.destroy();delete l._popperClasses[n]}}).remove();if(e)setTimeout(e,100);return this}},{key:"arrow",value:function t(e){return arguments.length?(this._arrow=typeof e==="function"?e:nb(e),this):this._arrow}},{key:"arrowStyle",value:function t(e){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,e),this):this._arrowStyle}},{key:"background",value:function t(e){return arguments.length?(this._background=typeof e==="function"?e:nb(e),this):this._background}},{key:"body",value:function t(e){return arguments.length?(this._body=typeof e==="function"?e:nb(e),this):this._body}},{key:"bodyStyle",value:function t(e){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,e),this):this._bodyStyle}},{key:"border",value:function t(e){return arguments.length?(this._border=typeof e==="function"?e:nb(e),this):this._border}},{key:"borderRadius",value:function t(e){return arguments.length?(this._borderRadius=typeof e==="function"?e:nb(e),this):this._borderRadius}},{key:"className",value:function t(e){return arguments.length?(this._className=e,this):this._className}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"footer",value:function t(e){return arguments.length?(this._footer=typeof e==="function"?e:nb(e),this):this._footer}},{key:"footerStyle",value:function t(e){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,e),this):this._footerStyle}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:nb(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:nb(e),this):this._id}},{key:"offset",value:function t(e){return arguments.length?(this._offset=typeof e==="function"?e:nb(e),this):this._offset}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:nb(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:nb(e),this):this._pointerEvents}},{key:"position",value:function t(e){return arguments.length?(this._position=typeof e==="string"?nb(Is(e).node()||[0,0]):typeof e==="function"?e:nb(e),this):this._position}},{key:"tableStyle",value:function t(e){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,e),this):this._tableStyle}},{key:"tbody",value:function t(e){return arguments.length?(this._tbody=e,this):this._tbody}},{key:"tbodyStyle",value:function t(e){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,e),this):this._tbodyStyle}},{key:"thead",value:function t(e){return arguments.length?(this._thead=e,this):this._thead}},{key:"theadStyle",value:function t(e){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,e),this):this._theadStyle}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:nb(e),this):this._title}},{key:"titleStyle",value:function t(e){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,e),this):this._titleStyle}},{key:"trStyle",value:function t(e){return arguments.length?(this._trStyle=Object.assign(this._trStyle,e),this):this._trStyle}},{key:"tdStyle",value:function t(e){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,e),this):this._tdStyle}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:nb(e),this):this._width}}]);return n}(J_);function KU(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function YU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function XU(t,e,n){if(e)YU(t.prototype,e);if(n)YU(t,n);return t}var ZU=function(){function t(){KU(this,t);this._isVisible=false}XU(t,[{key:"exit",value:function t(e,n){e.transition().duration(n).style("opacity",0).transition().remove();this._isVisible=false}},{key:"hide",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.duration,r=n===void 0?600:n,i=e.callback;this.mask.call(this.exit.bind(this),r);this.elem.call(this.exit.bind(this),r);if(i)setTimeout(i,r+100);this._isVisible=false;return this}},{key:"render",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.callback,r=e.container,i=r===void 0?"body":r,a=e.duration,o=a===void 0?600:a,s=e.html,u=s===void 0?"Please Wait":s,l=e.mask,c=l===void 0?"rgba(0, 0, 0, 0.05)":l,f=e.style,h=f===void 0?{}:f;var d=Is(i);this.mask=d.selectAll("div.d3plus-Mask").data(c?[c]:[]);this.mask=this.mask.enter().append("div").attr("class","d3plus-Mask").style("opacity",1).merge(this.mask);this.mask.exit().call(this.exit.bind(this),o);Jb(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([u]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);Jb(this.elem,h);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return t}();function $U(){var t=this._history.length;var e=rb("g.d3plus-viz-back",{parent:this._select,duration:this._duration,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(t?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(e).config(this._backConfig).render();this._margin.top+=t?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function JU(){var r=this;var t=this._data;var e=this._colorScalePosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(e))e="bottom";var n=["top","bottom"].includes(e);var i=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a=this._width-(this._margin.left+this._margin.right+i.left+i.right);var o=n?Ab([this._colorScaleMaxSize,a]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+i.bottom+i.top);var u=!n?Ab([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var l={opacity:e?1:0,transform:"translate(".concat(n?this._margin.left+i.left+(a-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+i.top+(s-u)/2,")")};var c=this._colorScale&&t&&t.length>1;var f=rb("g.d3plus-viz-colorScale",{condition:c&&!this._colorScaleConfig.select,enter:l,parent:this._select,duration:this._duration,update:l}).node();if(c){var h=t.filter(function(t,e){var n=r._colorScale(t,e);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[e]||"bottom").duration(this._duration).data(h).height(u).locale(this._locale).orient(e).select(f).value(this._colorScale).width(o).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();if(e&&!this._colorScaleConfig.select&&d.height){if(n)this._margin[e]+=d.height+this._legendClass.padding()*2;else this._margin[e]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}function QU(t,e){return this._drawLabel(t,e,this._legendDepth)}function tG(){var o=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];var i=function t(e,n){var r=o._shape(e,n);var i=r==="Line"?"stroke":"fill";var a=o._shapeConfig[r]&&o._shapeConfig[r][i]?o._shapeConfig[r][i]:o._shapeConfig[i];return typeof a==="function"?a.bind(o)(e,n):a};var a=function t(e,n){var r=o._shape(e,n);var i=o._shapeConfig[r]&&o._shapeConfig[r].opacity?o._shapeConfig[r].opacity:o._shapeConfig.opacity;return typeof i==="function"?i.bind(o)(e,n):i};var e=function t(e,n){return"".concat(i(e,n),"_").concat(a(e,n))};var n=this._colorScale?t.filter(function(t,e){return o._colorScale(t,e)===undefined}):t;mb(n,function(t){return r.push(Xb(t,o._aggs))},e);r.sort(this._legendSort);var s=r.map(function(t,e){return o._ids(t,e).slice(0,o._drawDepth+1)});this._legendDepth=0;var u=function t(e){var n=s.map(function(t){return t[e]});if(!n.some(function(t){return t instanceof Array})&&Array.from(new Set(n)).length===r.length){o._legendDepth=e;return"break"}};for(var l=0;l<=this._drawDepth;l++){var c=u(l);if(c==="break")break}var f=function t(e,n){var r=o._id(e,n);if(r instanceof Array)r=r[0];return o._hidden.includes(r)||o._solo.length&&!o._solo.includes(r)};var h=this._legendClass.outerBounds();var d=this.config();var g=this._legendPosition.bind(this)(d);if(![false,"top","bottom","left","right"].includes(g))g="bottom";var v=["top","bottom"].includes(g);var p=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var y={transform:"translate(".concat(v?this._margin.left+p.left:this._margin.left,", ").concat(v?this._margin.top:this._margin.top+p.top,")")};var m=this._legend.bind(this)(d,r);var _=rb("g.d3plus-viz-legend",{condition:m&&!this._legendConfig.select,enter:y,parent:this._select,duration:this._duration,update:y}).node();this._legendClass.id(e).align(v?"center":g).direction(v?"row":"column").duration(this._duration).data(m?r:[]).height(v?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+p.bottom+p.top)).locale(this._locale).parent(this).select(_).verticalAlign(!v?"middle":g).width(v?this._width-(this._margin.left+this._margin.right+p.left+p.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(eb.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function t(e,n){return f(e,n)?o._hiddenColor(e,n):i(e,n)},labelConfig:{fontOpacity:function t(e,n){return f(e,n)?o._hiddenOpacity(e,n):1}},opacity:a}).config(this._legendConfig).render();if(!this._legendConfig.select&&h.height){if(v)this._margin[g]+=h.height+this._legendClass.padding()*2;else this._margin[g]+=h.width+this._legendClass.padding()*2}}function eG(n){var r=this;if(!(n instanceof Array))n=[n,n];if(JSON.stringify(n)!==JSON.stringify(this._timelineSelection)){this._timelineSelection=n;n=n.map(Number);this.timeFilter(function(t){var e=lC(r._time(t)).getTime();return e>=n[0]&&e<=n[1]}).render()}}function nG(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var r=n?Yb(this._data.map(this._time)).map(lC):[];n=n&&r.length>1;var i=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a={transform:"translate(".concat(this._margin.left+i.left,", 0)")};var o=rb("g.d3plus-viz-timeline",{condition:n,enter:a,parent:this._select,duration:this._duration,update:a}).node();if(n){var s=this._timelineClass.domain(gb(r)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(r.sort(function(t,e){return+t-+e})).width(this._width-(this._margin.left+this._margin.right+i.left+i.right));if(!this._timelineSelection){this._timelineSelection=gb(t,this._time).map(lC);s.selection(this._timelineSelection)}var u=this._timelineConfig;s.config(u).on("end",function(t){eG.bind(e)(t);if(u.on&&u.on.end)u.on.end(t)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function rG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=this._title?this._title(t):false;var n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var i=rb("g.d3plus-viz-title",{enter:r,parent:this._select,duration:this._duration,update:r}).node();this._titleClass.data(e?[{text:e}]:[]).locale(this._locale).select(i).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=e?i.getBBox().height+this._titleConfig.padding*2:0}function iG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=typeof this._total==="function"?zb(t.map(this._total)):this._total===true&&this._size?zb(t.map(this._size)):false;var n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var i=rb("g.d3plus-viz-total",{enter:r,parent:this._select,duration:this._duration,update:r}).node();this._totalClass.data(e?[{text:this._totalFormat(e)}]:[]).locale(this._locale).select(i).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=e?i.getBBox().height+this._totalConfig.padding*2:0}function aG(t,e){if(!t)return undefined;if(t.tagName===undefined||["BODY","HTML"].indexOf(t.tagName)>=0){var n=window["inner".concat(e.charAt(0).toUpperCase()+e.slice(1))];var r=Is(t);if(e==="width"){n-=parseFloat(r.style("margin-left"),10);n-=parseFloat(r.style("margin-right"),10);n-=parseFloat(r.style("padding-left"),10);n-=parseFloat(r.style("padding-right"),10)}else{n-=parseFloat(r.style("margin-top"),10);n-=parseFloat(r.style("margin-bottom"),10);n-=parseFloat(r.style("padding-top"),10);n-=parseFloat(r.style("padding-bottom"),10)}return n}else{var i=parseFloat(Is(t).style(e),10);if(typeof i==="number"&&i>0)return i;else return aG(t.parentNode,e)}}function oG(t){return[aG(t,"width"),aG(t,"height")]}function sG(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=window.pageXOffset!==undefined?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft;var r=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var i=t.getBoundingClientRect();var a=i.height,o=i.left+n,s=i.top+r,u=i.width;return r+window.innerHeight>s+e&&r+e<s+a&&n+window.innerWidth>o+e&&n+e<o+u}function uG(t,e,n,r){r.stopPropagation();this._select.style("cursor","auto");if(this._drawDepth<this._groupBy.length-1){var i=this._groupBy[this._drawDepth],a=i(t,e);this.hover(false);if(this._tooltip(t,e))this._tooltipClass.data([]).render();var o=this._filter;this._history.push({depth:this._depth,filter:o});this.config({depth:this._drawDepth+1,filter:function t(e,n){return(!o||o(e,n))&&i(e,n)===a}}).render()}}function lG(t,e,n,r){var i=this;this._select.style("cursor","auto");if(this._tooltip(t,e))this._tooltipClass.data([]).render();var a=this._id(t,e);if(!(a instanceof Array))a=[a];var o=this._hidden.indexOf(a[0]);var s=this._solo.indexOf(a[0]);var u=Db(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;if(r.shiftKey){if(o<0&&!this._solo.length){this._hidden=this._hidden.concat(a);if(this._solo.length===u)this._solo=[];if(this._hidden.length===u)this._hidden=[];this.render()}else if(s>=0){this._solo=[];this._hidden=[];this.render()}}else{if(s<0&&this._hidden.length<u-1){this._solo=a;this._hidden=[]}else{this._solo=[];this._hidden=[]}this.render()}}var cG=function t(e){return e.reduce(function(t,e){if(e instanceof Array){if(t.length){var n=t.slice();t=[];e.forEach(function(e){return t=t.concat(n.map(function(t){return"".concat(t,"_").concat(e)}))})}else{t=e.slice()}}else if(t.length){t=t.map(function(t){return"".concat(t,"_").concat(e)})}else{t.push(e)}return t},[])};function fG(t,e){var r=this;if(this._shapeConfig.hoverOpacity!==1){var i=cG(this._ids(t,e));this.hover(function(t,e){var n=cG(r._ids(t,e));return i.some(function(t){return n.includes(t)})})}}function hG(n,r){var i=this;setTimeout(function(){if(i._shapeConfig.hoverOpacity!==1&&i._hover?i._hover(n,r):true){i.hover(false)}var t=i._tooltipClass.data();if(t.length&&i._tooltip(n,r)){var e=t[0];while(e.__d3plus__&&e.data){e=e.data}if(i._id(e)===i._id(n))i._tooltipClass.data([]).render()}},50);this._select.style("cursor","auto")}function dG(t,e,n,r){var i=this;var a=r.touches?[r.touches[0].clientX,r.touches[0].clientY]:[r.clientX,r.clientY];var o=Db(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;if(t&&this._tooltip(t,e)){var s=this._id(t,e);if(s instanceof Array)s=s[0];var u=this._translate;this._select.style("cursor","pointer");this._tooltipClass.data([n||t]).footer(this._solo.length&&!this._solo.includes(s)?u("Click to Highlight"):this._solo.length===1&&this._solo.includes(s)||this._hidden.length===o-1?u("Click to Reset"):this._solo.includes(s)?u("Click to Hide"):this._hidden.includes(s)?u("Click to Highlight"):"".concat(u("Click to Highlight"),"<br />").concat(u("Shift+Click to Hide"))).title(this._legendConfig.label?this._legendClass.label():QU.bind(this)).position(a).config(eb.bind(this)(this._tooltipConfig)).config(eb.bind(this)(this._legendTooltip)).render()}}function gG(t,e,n,r){if(t&&this._tooltip(t,e)){this._select.style("cursor","pointer");var i=r.touches?[r.touches[0].clientX,r.touches[0].clientY]:[r.clientX,r.clientY];this._tooltipClass.data([n||t]).footer(this._drawDepth<this._groupBy.length-1?this._translate("Click to Expand"):false).title(this._drawLabel).position(i).config(eb.bind(this)(this._tooltipConfig)).render()}}function vG(){this._tooltipClass.data([]).render()}function pG(t,e){return wG(t)||bG(t,e)||mG(t,e)||yG()}function yG(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function mG(t,e){if(!t)return;if(typeof t==="string")return _G(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _G(t,e)}function _G(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function bG(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function wG(t){if(Array.isArray(t))return t}var xG=false;function kG(){var e=this;if(!this._container||!this._zoomGroup)return;var t=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,n=this,r=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[r,t]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[r,t]]).on("zoom",function(t){return CG.bind(e)(t.transform)});this._zoomToBounds=AG.bind(this);var i=Is(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom?[0]:[]);var a=i.enter().append("div").attr("class","d3plus-zoom-control");i.exit().remove();i=i.merge(a).style("position","absolute").style("top","".concat(this._margin.top,"px")).style("left","".concat(this._margin.left,"px"));a.append("div").attr("class","zoom-control zoom-in");i.select(".zoom-in").on("click",EG.bind(this,this._zoomFactor)).html("+");a.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",EG.bind(this,1/this._zoomFactor)).html("-");a.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",EG.bind(this,0)).html("↺");a.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){Is(this).classed("active",!xG).call(Jb,xG?n._zoomControlStyle||{}:n._zoomControlStyleActive||{});SG.bind(n)(!xG)}).html("¤");i.selectAll(".zoom-control").call(Jb,n._zoomControlStyle).on("mouseenter",function(){Is(this).call(Jb,n._zoomControlStyleHover||{})}).on("mouseleave",function(){Is(this).call(Jb,Is(this).classed("active")?n._zoomControlStyleActive||{}:n._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[r,t]]).filter(function(t){return!t.button&&t.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",TG.bind(this)).on("brush",MG.bind(this)).on("end",RG.bind(this));var o=this._container.selectAll("g.brush").data([0]);this._brushGroup=o.enter().append("g").attr("class","brush").merge(o).call(this._zoomBrush);SG.bind(this)();if(this._renderTiles)this._renderTiles(zA(this._container.node()),0)}function SG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;xG=t;if(xG)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!xG&&this._zoom){this._container.call(this._zoomBehavior);if(!this._zoomScroll){this._container.on("wheel.zoom",null)}if(!this._zoomPan){this._container.on("mousedown.zoom mousemove.zoom",null).on("touchstart.zoom touchmove.zoom touchend.zoom touchcancel.zoom",null)}}else{this._container.on(".zoom",null)}}function CG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!e)this._zoomGroup.attr("transform",t);else this._zoomGroup.transition().duration(e).attr("transform",t)}if(this._renderTiles)this._renderTiles(zA(this._container.node()),e)}function EG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var e=this._zoomBehavior.extent().bind(document)()[1].map(function(t){return t/2}),n=this._zoomBehavior.scaleExtent(),r=zA(this._container.node());if(!t){r.k=n[0];r.x=0;r.y=0}else{var i=[(e[0]-r.x)/r.k,(e[1]-r.y)/r.k];r.k=Math.min(n[1],r.k*t);if(r.k<=n[0]){r.k=n[0];r.x=0;r.y=0}else{r.x+=e[0]-(i[0]*r.k+r.x);r.y+=e[1]-(i[1]*r.k+r.y)}}CG.bind(this)(r,this._duration)}function AG(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),r=zA(this._container.node());if(t){var i=pG(this._zoomBehavior.translateExtent()[1],2),a=i[0],o=i[1],s=t[1][0]-t[0][0],u=t[1][1]-t[0][1];var l=Math.min(n[1],1/Math.max(s/a,u/o));var c,f;if(s/u<a/o){l*=(o-this._zoomPadding*2)/o;c=(a-s*l)/2/l;f=this._zoomPadding/l}else{l*=(a-this._zoomPadding*2)/a;f=(o-u*l)/2/l;c=this._zoomPadding/l}r.x=(r.x-t[0][0]+c)*(r.k*l/r.k);r.y=(r.y-t[0][1]+f)*(r.k*l/r.k);r.k*=l;if(r.x>0)r.x=0;else if(r.x<a*-r.k+a)r.x=a*-r.k+a;if(r.y>0)r.y=0;else if(r.y<o*-r.k+o)r.y=o*-r.k+o}else{r.k=n[0];r.x=0;r.y=0}CG.bind(this)(r,e)}function MG(){OG.bind(this)()}function RG(t){if(!t.selection)return;this._brushGroup.call(this._zoomBrush.move,null);AG.bind(this)(t.selection)}function TG(){OG.bind(this)()}function OG(){this._brushGroup.selectAll(".selection").call(Kl,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(Kl,this._zoomBrushHandleStyle||{})}function PG(){var t=Is(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]);var e=t.enter().append("div").attr("class","d3plus-attribution");t.exit().remove();t=t.merge(e).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(Jb,this._attributionStyle)}function BG(t){return zG(t)||NG(t)||IG(t)||DG()}function DG(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function NG(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function zG(t){if(Array.isArray(t))return LG(t)}function FG(t,e){return UG(t)||HG(t,e)||IG(t,e)||jG()}function jG(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function IG(t,e){if(!t)return;if(typeof t==="string")return LG(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LG(t,e)}function LG(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function HG(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function UG(t){if(Array.isArray(t))return t}function GG(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){GG=function t(e){return typeof e}}else{GG=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return GG(t)}function VG(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function WG(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function qG(t,e,n){if(e)WG(t.prototype,e);if(n)WG(t,n);return t}function KG(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)YG(t,e)}function YG(t,e){YG=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return YG(t,e)}function XG(i){var a=JG();return function t(){var e=QG(i),n;if(a){var r=QG(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return ZG(this,n)}}function ZG(t,e){if(e&&(GG(e)==="object"||typeof e==="function")){return e}return $G(t)}function $G(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function JG(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function QG(t){QG=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return QG(t)}function tV(){return typeof window!=="undefined"?window.innerWidth>600:true}function eV(r){return r.reduce(function(t,e,n){if(!n)t+=e;else if(n===r.length-1&&n===1)t+=" and ".concat(e);else if(n===r.length-1)t+=", and ".concat(e);else t+=", ".concat(e);return t},"")}var nV=function(t){KG(n,t);var e=XG(n);function n(){var s;VG(this,n);s=e.call(this);s._aggs={};s._ariaHidden=true;s._attribution=false;s._attributionStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.25)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"400 11px/11px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",margin:"5px",opacity:.75,padding:"4px 6px 3px"};s._backClass=(new T9).on("click",function(){if(s._history.length)s.config(s._history.pop()).render();else s.depth(s._drawDepth-1).filter(false).render()}).on("mousemove",function(){return s._backClass.select().style("cursor","pointer")});s._backConfig={fontSize:10,padding:5,resize:false};s._cache=true;s._color=function(t,e){return s._groupBy[0](t,e)};s._colorScaleClass=new vL;s._colorScaleConfig={scale:"jenks"};s._colorScalePadding=tV;s._colorScalePosition=function(){return s._width>s._height?"right":"bottom"};s._colorScaleMaxSize=600;s._data=[];s._dataCutoff=100;s._detectResize=true;s._detectResizeDelay=400;s._detectVisible=true;s._detectVisibleInterval=1e3;s._downloadButton=false;s._downloadConfig={type:"png"};s._downloadPosition="top";s._duration=600;s._hidden=[];s._hiddenColor=nb("#aaa");s._hiddenOpacity=nb(.5);s._history=[];s._groupBy=[Ul("id")];s._legend=function(t,e){var n=Eb(e,function(t,e){var n=s._groupBy[s._legendDepth].bind($G(s))(t,e);return n instanceof Array?n.length:1});return e.length>1&&n<=2};s._legendClass=new nL;s._legendConfig={label:QU.bind($G(s)),shapeConfig:{ariaLabel:QU.bind($G(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendPadding=tV;s._legendPosition=function(){return s._width>s._height?"right":"bottom"};s._legendSort=function(t,e){return s._drawLabel(t).localeCompare(s._drawLabel(e))};s._legendTooltip={};s._loadingHTML=function(){return"\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("Loading Visualization"),'</strong>\n <sub style="bottom: 0; display: block; line-height: 1; margin-top: 5px;"><a href="https://d3plus.org" target="_blank">').concat(s._translate("Powered by D3plus"),"</a></sub>\n </div>")};s._loadingMessage=true;s._lrucache=zI(10);s._messageClass=new ZU;s._messageMask="rgba(0, 0, 0, 0.05)";s._messageStyle={bottom:"0",left:"0",position:"absolute",right:"0","text-align":"center",top:"0"};s._noDataHTML=function(){return"\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("No Data Available"),"</strong>\n </div>")};s._noDataMessage=true;s._on={"click.shape":uG.bind($G(s)),"click.legend":lG.bind($G(s)),mouseenter:fG.bind($G(s)),mouseleave:hG.bind($G(s)),"mousemove.shape":gG.bind($G(s)),"mousemove.legend":dG.bind($G(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":GG(window))===undefined?"":window;s._shape=nb("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function t(e,n){return s._drawLabel(e,n)},fill:function t(e,n){while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(s._colorScale){var r=s._colorScale(e,n);if(r!==undefined&&r!==null){var i=s._colorScaleClass._colorScale;var a=s._colorScaleClass.color();if(!i)return a instanceof Array?a[a.length-1]:a;else if(!i.domain().length)return i.range()[i.range().length-1];return i(r)}}var o=s._color(e,n);if(wn(o))return o;return Cw(o)},labelConfig:{fontColor:function t(e,n){var r=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return Ew(r)}},opacity:nb(1),stroke:function t(e,n){var r=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return wn(r).darker()},role:"presentation",strokeWidth:nb(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new RL).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=tV;s._threshold=nb(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new T9;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=tV;s._tooltip=nb(true);s._tooltipClass=new qU;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new T9;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(t){return"".concat(s._translate("Total"),": ").concat(Nw(t,s._locale))};s._totalPadding=tV;s._zoom=false;s._zoomBehavior=WA();s._zoomBrush=CI();s._zoomBrushHandleSize=1;s._zoomBrushHandleStyle={fill:"#444"};s._zoomBrushSelectionStyle={fill:"#777","stroke-width":0};s._zoomControlStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.75)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"900 15px/21px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",height:"20px",margin:"5px",opacity:.75,padding:0,"text-align":"center",width:"20px"};s._zoomControlStyleActive={background:"rgba(0, 0, 0, 0.75)",color:"rgba(255, 255, 255, 0.75)",opacity:1};s._zoomControlStyleHover={cursor:"pointer",opacity:1};s._zoomFactor=2;s._zoomMax=16;s._zoomPadding=20;s._zoomPan=true;s._zoomScroll=true;return s}qG(n,[{key:"_preDraw",value:function t(){var a=this;var o=this;this._drawDepth=this._depth!==void 0?Ab([this._depth>=0?this._depth:0,this._groupBy.length-1]):this._groupBy.length-1;this._id=this._groupBy[this._drawDepth];this._ids=function(e,n){return a._groupBy.map(function(t){return!e||e.__d3plus__&&!e.data?undefined:t(e.__d3plus__?e.data:e,e.__d3plus__?e.i:n)}).filter(function(t){return t!==undefined&&t!==null})};this._drawLabel=function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a._drawDepth;if(!t)return"";while(t.__d3plus__&&t.data){t=t.data;e=t.i}if(t._isAggregation){return"".concat(a._thresholdName(t,e)," < ").concat(Nw(t._threshold*100,a._locale),"%")}if(a._label)return"".concat(a._label(t,e));var r=o._ids(t,e).slice(0,n+1);var i=r.reverse().find(function(t){return!(t instanceof Array)})||r[r.length-1];return i instanceof Array?eV(i):"".concat(i)};if(this._time&&!this._timeFilter&&this._data.length){var e=this._data.map(this._time).map(lC);var n=this._data[0],r=0;if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](n,r)===this._time(n,r)){this._timeFilter=function(){return true}}else{var i=+Eb(e);this._timeFilter=function(t,e){return+lC(a._time(t,e))===i}}}this._filteredData=[];this._legendData=[];var s=[];if(this._data.length){s=this._timeFilter?this._data.filter(this._timeFilter):this._data;if(this._filter)s=s.filter(this._filter);var u=[];for(var l=0;l<=this._drawDepth;l++){u.push(this._groupBy[l])}if(this._discrete&&"_".concat(this._discrete)in this)u.push(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)u.push(this["_".concat(this._discrete,"2")]);var c=mb.apply(void 0,[s,function(t){var e=a._data.indexOf(t[0]);var n=a._shape(t[0],e);var r=a._id(t[0],e);var i=Xb(t,a._aggs);if(!a._hidden.includes(r)&&(!a._solo.length||a._solo.includes(r))){if(!a._discrete&&n==="Line")a._filteredData=a._filteredData.concat(t);else a._filteredData.push(i)}a._legendData.push(i)}].concat(u));this._filteredData=this._thresholdFunction(this._filteredData,c)}var f=yb(this._filteredData,this._id).size;if(f>this._dataCutoff){if(this._userHover===undefined)this._userHover=this._shapeConfig.hoverOpacity||.5;if(this._userDuration===undefined)this._userDuration=this._shapeConfig.duration||600;this._shapeConfig.hoverOpacity=1;this._shapeConfig.duration=0}else if(this._userHover!==undefined){this._shapeConfig.hoverOpacity=this._userHover;this._shapeConfig.duration=this._userDuration}if(this._noDataMessage&&!this._filteredData.length){this._messageClass.render({container:this._select.node().parentNode,html:this._noDataHTML(this),mask:false,style:this._messageStyle});this._select.transition().duration(this._duration).attr("opacity",0)}}},{key:"_draw",value:function t(){var e=this._legendPosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(e))e="bottom";var n=this._colorScalePosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(n))n="bottom";if(e==="left"||e==="right")tG.bind(this)(this._legendData);if(n==="left"||n==="right"||n===false)JU.bind(this)(this._filteredData);$U.bind(this)();rG.bind(this)(this._filteredData);iG.bind(this)(this._filteredData);nG.bind(this)(this._filteredData);if(e==="top"||e==="bottom")tG.bind(this)(this._legendData);if(n==="top"||n==="bottom")JU.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function t(e){return e}},{key:"render",value:function t(a){var o=this;this._margin={bottom:0,left:0,right:0,top:0};this._padding={bottom:0,left:0,right:0,top:0};if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var e=this._select===void 0?Is("body").append("div"):this._select;var n=e.append("svg");this.select(n.node())}function s(){var t=this._select.style("display");this._select.style("display","none");var e=oG(this._select.node().parentNode),n=FG(e,2),r=n[0],i=n[1];r-=parseFloat(this._select.style("border-left-width"),10);r-=parseFloat(this._select.style("border-right-width"),10);i-=parseFloat(this._select.style("border-top-width"),10);i-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",t);if(this._autoWidth){this.width(r);this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))}if(this._autoHeight){this.height(i);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||sG(this._select.node()))){this._autoWidth=this._width===undefined;this._autoHeight=this._height===undefined;s.bind(this)()}this._select.attr("class","d3plus-viz").attr("aria-hidden",this._ariaHidden).attr("aria-labelledby","".concat(this._uuid,"-title ").concat(this._uuid,"-desc")).attr("role","img").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").transition().duration(this._duration).style("width",this._width!==undefined?"".concat(this._width,"px"):undefined).style("height",this._height!==undefined?"".concat(this._height,"px"):undefined).attr("width",this._width!==undefined?"".concat(this._width,"px"):undefined).attr("height",this._height!==undefined?"".concat(this._height,"px"):undefined);var r=Is(this._select.node().parentNode);var i=r.style("position");if(i==="static")r.style("position","relative");if(this._select.attr("opacity")===null)this._select.attr("opacity",1);var u=this._select.selectAll("title").data([0]);var l=u.enter().append("title").attr("id","".concat(this._uuid,"-title"));u.merge(l).text(this._svgTitle);var c=this._select.selectAll("desc").data([0]);var f=c.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));c.merge(f).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);Is(this._scrollContainer).on("scroll.".concat(this._uuid),null);Is(this._scrollContainer).on("resize.".concat(this._uuid),null);if(this._detectVisible&&this._select.style("visibility")==="hidden"){this._visiblePoll=setInterval(function(){if(o._select.style("visibility")!=="hidden"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(a)}},this._detectVisibleInterval)}else if(this._detectVisible&&this._select.style("display")==="none"){this._visiblePoll=setInterval(function(){if(o._select.style("display")!=="none"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(a)}},this._detectVisibleInterval)}else if(this._detectVisible&&!sG(this._select.node())){Is(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(sG(o._select.node())){Is(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(a)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var h=NI();this._queue.forEach(function(t){var e=o._cache?o._lrucache.get("".concat(t[3],"_").concat(t[1])):undefined;if(!e)h.defer.apply(h,BG(t));else o["_".concat(t[3])]=t[2]?t[2](e):e});this._queue=[];if(this._loadingMessage&&h._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}h.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var t=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var e=t.enter().append("g").attr("class","data-table").attr("role","table");t.exit().remove();var r=t.merge(e).selectAll("text").data(o._data instanceof Array?Nb(0,o._data.length+1):[]);r.exit().remove();var i=r.merge(r.enter().append("text").attr("role","row")).selectAll("tspan").data(function(t,e){return n.map(function(t){return{role:e?"cell":"columnheader",text:e?o._data[e-1][t]:t}})});i.exit().remove();i.merge(i.enter().append("tspan")).attr("role",function(t){return t.role}).attr("dy","-1000px").html(function(t){return t.text});o._preDraw();o._draw(a);kG.bind(o)();PG.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length)){o._messageClass.hide();if(o._select.attr("opacity")==="0")o._select.transition().duration(o._duration).attr("opacity",1)}if(o._detectResize&&(o._autoWidth||o._autoHeight)){Is(o._scrollContainer).on("resize.".concat(o._uuid),function(){o._resizePoll=clearTimeout(o._resizePoll);o._resizePoll=setTimeout(function(){o._resizePoll=clearTimeout(o._resizePoll);s.bind(o)();o.render(a)},o._detectResizeDelay)})}if(a)setTimeout(a,o._duration+100)})}Is("body").on("touchstart.".concat(this._uuid),vG.bind(this));return this}},{key:"active",value:function t(e){this._active=e;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(t){return t.active(e)});if(this._legend)this._legendClass.active(e)}return this}},{key:"aggs",value:function t(e){return arguments.length?(this._aggs=ql(this._aggs,e),this):this._aggs}},{key:"ariaHidden",value:function t(e){return arguments.length?(this._ariaHidden=e,this):this._ariaHidden}},{key:"attribution",value:function t(e){return arguments.length?(this._attribution=e,this):this._attribution}},{key:"attributionStyle",value:function t(e){return arguments.length?(this._attributionStyle=ql(this._attributionStyle,e),this):this._attributionStyle}},{key:"backConfig",value:function t(e){return arguments.length?(this._backConfig=ql(this._backConfig,e),this):this._backConfig}},{key:"cache",value:function t(e){return arguments.length?(this._cache=e,this):this._cache}},{key:"color",value:function t(e){return arguments.length?(this._color=!e||typeof e==="function"?e:Ul(e),this):this._color}},{key:"colorScale",value:function t(e){return arguments.length?(this._colorScale=!e||typeof e==="function"?e:Ul(e),this):this._colorScale}},{key:"colorScaleConfig",value:function t(e){return arguments.length?(this._colorScaleConfig=ql(this._colorScaleConfig,e),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function t(e){return arguments.length?(this._colorScalePadding=typeof e==="function"?e:nb(e),this):this._colorScalePadding}},{key:"colorScalePosition",value:function t(e){return arguments.length?(this._colorScalePosition=typeof e==="function"?e:nb(e),this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function t(e){return arguments.length?(this._colorScaleMaxSize=e,this):this._colorScaleMaxSize}},{key:"data",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"data");this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function t(e){return arguments.length?(this._dataCutoff=e,this):this._dataCutoff}},{key:"depth",value:function t(e){return arguments.length?(this._depth=e,this):this._depth}},{key:"detectResize",value:function t(e){return arguments.length?(this._detectResize=e,this):this._detectResize}},{key:"detectResizeDelay",value:function t(e){return arguments.length?(this._detectResizeDelay=e,this):this._detectResizeDelay}},{key:"detectVisible",value:function t(e){return arguments.length?(this._detectVisible=e,this):this._detectVisible}},{key:"detectVisibleInterval",value:function t(e){return arguments.length?(this._detectVisibleInterval=e,this):this._detectVisibleInterval}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"downloadButton",value:function t(e){return arguments.length?(this._downloadButton=e,this):this._downloadButton}},{key:"downloadConfig",value:function t(e){return arguments.length?(this._downloadConfig=ql(this._downloadConfig,e),this):this._downloadConfig}},{key:"downloadPosition",value:function t(e){return arguments.length?(this._downloadPosition=e,this):this._downloadPosition}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"filter",value:function t(e){return arguments.length?(this._filter=e,this):this._filter}},{key:"groupBy",value:function t(e){var n=this;if(!arguments.length)return this._groupBy;this._groupByRaw=e;if(!(e instanceof Array))e=[e];return this._groupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Yb(t.map(e));return n.length===1?n[0]:n}}return Ul(t)}}),this}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hiddenColor",value:function t(e){return arguments.length?(this._hiddenColor=typeof e==="function"?e:nb(e),this):this._hiddenColor}},{key:"hiddenOpacity",value:function t(e){return arguments.length?(this._hiddenOpacity=typeof e==="function"?e:nb(e),this):this._hiddenOpacity}},{key:"hover",value:function t(e){var r=this;var n=this._hover=e;if(this._shapeConfig.hoverOpacity!==1){if(typeof e==="function"){var i=Db(this._shapes.map(function(t){return t.data()}));i=i.concat(this._legendClass.data());var a=e?i.filter(e):[];var o=[];a.map(this._ids).forEach(function(t){for(var e=1;e<=t.length;e++){o.push(JSON.stringify(t.slice(0,e)))}});o=o.filter(function(t,e){return o.indexOf(t)===e});if(o.length)n=function t(e,n){return o.includes(JSON.stringify(r._ids(e,n)))}}this._shapes.forEach(function(t){return t.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:nb(e),this):this._label}},{key:"legend",value:function t(e){return arguments.length?(this._legend=typeof e==="function"?e:nb(e),this):this._legend}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=ql(this._legendConfig,e),this):this._legendConfig}},{key:"legendTooltip",value:function t(e){return arguments.length?(this._legendTooltip=ql(this._legendTooltip,e),this):this._legendTooltip}},{key:"legendPadding",value:function t(e){return arguments.length?(this._legendPadding=typeof e==="function"?e:nb(e),this):this._legendPadding}},{key:"legendPosition",value:function t(e){return arguments.length?(this._legendPosition=typeof e==="function"?e:nb(e),this):this._legendPosition}},{key:"legendSort",value:function t(e){return arguments.length?(this._legendSort=e,this):this._legendSort}},{key:"loadingHTML",value:function t(e){return arguments.length?(this._loadingHTML=typeof e==="function"?e:nb(e),this):this._loadingHTML}},{key:"loadingMessage",value:function t(e){return arguments.length?(this._loadingMessage=e,this):this._loadingMessage}},{key:"messageMask",value:function t(e){return arguments.length?(this._messageMask=e,this):this._messageMask}},{key:"messageStyle",value:function t(e){return arguments.length?(this._messageStyle=ql(this._messageStyle,e),this):this._messageStyle}},{key:"noDataHTML",value:function t(e){return arguments.length?(this._noDataHTML=typeof e==="function"?e:nb(e),this):this._noDataHTML}},{key:"noDataMessage",value:function t(e){return arguments.length?(this._noDataMessage=e,this):this._noDataMessage}},{key:"scrollContainer",value:function t(e){return arguments.length?(this._scrollContainer=e,this):this._scrollContainer}},{key:"select",value:function t(e){return arguments.length?(this._select=Is(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:nb(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=ql(this._shapeConfig,e),this):this._shapeConfig}},{key:"svgDesc",value:function t(e){return arguments.length?(this._svgDesc=e,this):this._svgDesc}},{key:"svgTitle",value:function t(e){return arguments.length?(this._svgTitle=e,this):this._svgTitle}},{key:"threshold",value:function t(e){if(arguments.length){if(typeof e==="function"){this._threshold=e}else if(isFinite(e)&&!isNaN(e)){this._threshold=nb(e*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function t(e){if(arguments.length){if(typeof e==="function"){this._thresholdKey=e}else{this._thresholdKey=Ul(e)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function t(e){return arguments.length?(this._thresholdName=typeof e==="function"?e:nb(e),this):this._thresholdName}},{key:"time",value:function t(e){if(arguments.length){if(typeof e==="function"){this._time=e}else{this._time=Ul(e);if(!this._aggs[e]){this._aggs[e]=function(t,e){var n=Yb(t.map(e));return n.length===1?n[0]:n}}}if(this._data.length&&!this._data.find(this._timeFilter)){this._timeFilter=false;this._timelineSelection=false}return this}else return this._time}},{key:"timeFilter",value:function t(e){return arguments.length?(this._timeFilter=e,this):this._timeFilter}},{key:"timeline",value:function t(e){return arguments.length?(this._timeline=e,this):this._timeline}},{key:"timelineConfig",value:function t(e){return arguments.length?(this._timelineConfig=ql(this._timelineConfig,e),this):this._timelineConfig}},{key:"timelinePadding",value:function t(e){return arguments.length?(this._timelinePadding=typeof e==="function"?e:nb(e),this):this._timelinePadding}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:nb(e),this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=ql(this._titleConfig,e),this):this._titleConfig}},{key:"titlePadding",value:function t(e){return arguments.length?(this._titlePadding=typeof e==="function"?e:nb(e),this):this._titlePadding}},{key:"tooltip",value:function t(e){return arguments.length?(this._tooltip=typeof e==="function"?e:nb(e),this):this._tooltip}},{key:"tooltipConfig",value:function t(e){return arguments.length?(this._tooltipConfig=ql(this._tooltipConfig,e),this):this._tooltipConfig}},{key:"total",value:function t(e){if(arguments.length){if(typeof e==="function")this._total=e;else if(e)this._total=Ul(e);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function t(e){return arguments.length?(this._totalConfig=ql(this._totalConfig,e),this):this._totalConfig}},{key:"totalFormat",value:function t(e){return arguments.length?(this._totalFormat=e,this):this._totalFormat}},{key:"totalPadding",value:function t(e){return arguments.length?(this._totalPadding=typeof e==="function"?e:nb(e),this):this._totalPadding}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}},{key:"zoom",value:function t(e){return arguments.length?(this._zoom=e,this):this._zoom}},{key:"zoomBrushHandleSize",value:function t(e){return arguments.length?(this._zoomBrushHandleSize=e,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function t(e){return arguments.length?(this._zoomBrushHandleStyle=e,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function t(e){return arguments.length?(this._zoomBrushSelectionStyle=e,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function t(e){return arguments.length?(this._zoomControlStyle=e,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function t(e){return arguments.length?(this._zoomControlStyleActive=e,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function t(e){return arguments.length?(this._zoomControlStyleHover=e,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function t(e){return arguments.length?(this._zoomFactor=e,this):this._zoomFactor}},{key:"zoomMax",value:function t(e){return arguments.length?(this._zoomMax=e,this):this._zoomMax}},{key:"zoomPan",value:function t(e){return arguments.length?(this._zoomPan=e,this):this._zoomPan}},{key:"zoomPadding",value:function t(e){return arguments.length?(this._zoomPadding=e,this):this._zoomPadding}},{key:"zoomScroll",value:function t(e){return arguments.length?(this._zoomScroll=e,this):this._zoomScroll}}]);return n}(J_);var rV=[{matches:["cartodb","cartocdn"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors, © <a href='https://carto.com/attribution' target='_blank'>CARTO</a>"},{matches:["opentopomap.org"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors"},{matches:["arcgisonline.com"],text:"Powered by <a href='https://developers.arcgis.com/terms/attribution/' target='_blank'>Esri</a>"},{matches:["/watercolor/"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://www.openstreetmap.org/copyright' target='_blank'>ODbL</a>."},{matches:["stamen-tiles","stamen.com"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0' target='_blank'>CC BY SA</a>."}];function iV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){iV=function t(e){return typeof e}}else{iV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return iV(t)}function aV(t,e){return cV(t)||lV(t,e)||sV(t,e)||oV()}function oV(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function sV(t,e){if(!t)return;if(typeof t==="string")return uV(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uV(t,e)}function uV(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function lV(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function cV(t){if(Array.isArray(t))return t}function fV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function hV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function dV(t,e,n){if(e)hV(t.prototype,e);if(n)hV(t,n);return t}function gV(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){gV=Reflect.get}else{gV=function t(e,n,r){var i=vV(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return gV(t,e,n||t)}function vV(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=xV(t);if(t===null)break}return t}function pV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)yV(t,e)}function yV(t,e){yV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return yV(t,e)}function mV(i){var a=wV();return function t(){var e=xV(i),n;if(a){var r=xV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return _V(this,n)}}function _V(t,e){if(e&&(iV(e)==="object"||typeof e==="function")){return e}return bV(t)}function bV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function wV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function xV(t){xV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return xV(t)}var kV=Object.assign({},e7,mF,ej);function SV(e){var t=rV.find(function(t){return t.matches.some(function(t){return e.includes(t)})});return t?t.text:false}function CV(t,e){var n=e&&t.objects[e]?e:Object.keys(t.objects)[0];return lj(t,n)}var EV=function(t){pV(C,t);var e=mV(C);function C(){var a;fV(this,C);a=e.call(this);a._fitObject=false;a._noDataMessage=false;a._ocean="#d4dadc";a._point=Ul("point");a._pointSize=nb(1);a._pointSizeMax=10;a._pointSizeMin=5;a._pointSizeScale="linear";a._projection=kV.geoMercator();a._projectionPadding=Zb(20);a._shape=nb("Circle");a._shapeConfig=ql(a._shapeConfig,{ariaLabel:function t(e,n){return"".concat(a._drawLabel(e,n),", ").concat(a._pointSize(e,n))},hoverOpacity:1,Path:{ariaLabel:function t(e,n){var r=a._colorScale?", ".concat(a._colorScale(e,n)):"";return"".concat(a._drawLabel(e,n)).concat(r,".")},fill:function t(e,n){if(a._colorScale&&!a._coordData.features.includes(e)){var r=a._colorScale(e);if(r!==undefined&&r!==null){if(a._colorScaleClass._colorScale){return a._colorScaleClass._colorScale(r)}else{var i=a._colorScaleClass.color();if(i instanceof Array)i=i[i.length-1];return i}}}return a._topojsonFill(e,n)},on:{mouseenter:function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on.mouseenter.bind(bV(a))(e,n,r,i):null},"mousemove.shape":function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on["mousemove.shape"].bind(bV(a))(e,n,r,i):null},mouseleave:function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on.mouseleave.bind(bV(a))(e,n,r,i):null}},stroke:function t(e,n){var r=typeof a._shapeConfig.Path.fill==="function"?a._shapeConfig.Path.fill(e,n):a._shapeConfig.Path.fill;return wn(r).darker()},strokeWidth:1}});a._tiles=true;a._tileGen=aj();a.tileUrl("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png");a._topojson=false;a._topojsonFill=nb("#f5f5f3");a._topojsonFilter=function(t){return!["010"].includes(t.id)};a._topojsonId=Ul("id");a._zoom=true;a._zoomSet=false;return a}dV(C,[{key:"_renderTiles",value:function t(){var a=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:zA(this._container.node());var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var i=[];if(this._tiles){i=this._tileGen.extent(this._zoomBehavior.translateExtent()).scale(this._projection.scale()*(2*Math.PI)*r.k).translate(r.apply(this._projection.translate()))();this._tileGroup.transition().duration(e).attr("transform",r)}var n=this._tileGroup.selectAll("image.d3plus-geomap-tile").data(i,function(t){var e=aV(t,3),n=e[0],r=e[1],i=e[2];return"".concat(n,"-").concat(r,"-").concat(i)});n.exit().transition().duration(e).attr("opacity",0).remove();var o=i.scale/r.k;var s=n.enter().append("image").attr("class","d3plus-geomap-tile");s.attr("opacity",0).transition().duration(e).attr("opacity",1);n.merge(s).attr("width",o).attr("height",o).attr("xlink:href",function(t){var e=aV(t,3),n=e[0],r=e[1],i=e[2];return a._tileUrl.replace("{s}",["a","b","c"][Math.random()*3|0]).replace("{z}",i).replace("{x}",n).replace("{y}",r)}).attr("x",function(t){var e=aV(t,1),n=e[0];return n*o+i.translate[0]*o-r.x/r.k}).attr("y",function(t){var e=aV(t,2),n=e[1];return n*o+i.translate[1]*o-r.y/r.k})}},{key:"_draw",value:function t(e){var r=this;gV(xV(C.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;this._container=this._select.selectAll("svg.d3plus-geomap").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-geomap").attr("opacity",0).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color",this._ocean||"transparent").merge(this._container);this._container.transition(this._transition).attr("opacity",1).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var a=this._container.selectAll("rect.d3plus-geomap-ocean").data([0]);a.enter().append("rect").attr("class","d3plus-geomap-ocean").merge(a).attr("width",i).attr("height",n).attr("fill",this._ocean||"transparent");this._tileGroup=this._container.selectAll("g.d3plus-geomap-tileGroup").data([0]);this._tileGroup=this._tileGroup.enter().append("g").attr("class","d3plus-geomap-tileGroup").merge(this._tileGroup);this._zoomGroup=this._container.selectAll("g.d3plus-geomap-zoomGroup").data([0]);this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-geomap-zoomGroup").merge(this._zoomGroup);var o=this._zoomGroup.selectAll("g.d3plus-geomap-paths").data([0]);o=o.enter().append("g").attr("class","d3plus-geomap-paths").merge(o);var s=this._coordData=this._topojson?CV(this._topojson,this._topojsonKey):{type:"FeatureCollection",features:[]};if(this._topojsonFilter)s.features=s.features.filter(this._topojsonFilter);var u=this._path=kV.geoPath().projection(this._projection);var l=this._filteredData.filter(function(t,e){return r._point(t,e)instanceof Array});var c=this._filteredData.filter(function(t,e){return!(r._point(t,e)instanceof Array)}).reduce(function(t,e){t[r._id(e)]=e;return t},{});var f=s.features.reduce(function(t,e){var n=r._topojsonId(e);t.push({__d3plus__:true,data:c[n],feature:e,id:n});return t},[]);var h=ww["scale".concat(this._pointSizeScale.charAt(0).toUpperCase()).concat(this._pointSizeScale.slice(1))]().domain(gb(l,function(t,e){return r._pointSize(t,e)})).range([this._pointSizeMin,this._pointSizeMax]);if(!this._zoomSet){var d=this._fitObject?CV(this._fitObject,this._fitKey):s;this._extentBounds={type:"FeatureCollection",features:this._fitFilter?d.features.filter(this._fitFilter):d.features.slice()};this._extentBounds.features=this._extentBounds.features.reduce(function(t,e){if(e.geometry){var n={type:e.type,id:e.id,geometry:{coordinates:e.geometry.coordinates,type:e.geometry.type}};if(e.geometry.type==="MultiPolygon"&&e.geometry.coordinates.length>1){var r=[],i=[];e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];r.push(u.area(n))});n.geometry.coordinates=[e.geometry.coordinates[r.indexOf(Eb(r))]];var a=u.centroid(n);e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];i.push(N9(u.centroid(n),a))});var o=Tb(r.reduce(function(t,e,n){if(e)t.push(r[n]/e);return t},[]),.9);n.geometry.coordinates=e.geometry.coordinates.filter(function(t,e){var n=i[e];return n===0||r[e]/n>=o})}t.push(n)}return t},[]);if(!this._extentBounds.features.length&&l.length){var g=[[undefined,undefined],[undefined,undefined]];l.forEach(function(t,e){var n=r._projection(r._point(t,e));if(g[0][0]===void 0||n[0]<g[0][0])g[0][0]=n[0];if(g[1][0]===void 0||n[0]>g[1][0])g[1][0]=n[0];if(g[0][1]===void 0||n[1]<g[0][1])g[0][1]=n[1];if(g[1][1]===void 0||n[1]>g[1][1])g[1][1]=n[1]});this._extentBounds={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPoint",coordinates:g.map(function(t){return r._projection.invert(t)})}}]};var v=Eb(l,function(t,e){return h(r._pointSize(t,e))});this._projectionPadding.top+=v;this._projectionPadding.right+=v;this._projectionPadding.bottom+=v;this._projectionPadding.left+=v}this._zoomBehavior.extent([[0,0],[i,n]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[i,n]]);this._zoomSet=true}this._projection=this._projection.fitExtent(this._extentBounds.features.length?[[this._projectionPadding.left,this._projectionPadding.top],[i-this._projectionPadding.right,n-this._projectionPadding.bottom]]:[[0,0],[i,n]],this._extentBounds.features.length?this._extentBounds:{type:"Sphere"});this._shapes.push((new sC).data(f).d(function(t){return u(t.feature)}).select(o.node()).x(0).y(0).config(eb.bind(this)(this._shapeConfig,"shape","Path")).render());var p=this._zoomGroup.selectAll("g.d3plus-geomap-pins").data([0]);p=p.enter().append("g").attr("class","d3plus-geomap-pins").merge(p);var y=(new GS).config(eb.bind(this)(this._shapeConfig,"shape","Circle")).data(l).r(function(t,e){return h(r._pointSize(t,e))}).select(p.node()).sort(function(t,e){return r._pointSize(e)-r._pointSize(t)}).x(function(t,e){return r._projection(r._point(t,e))[0]}).y(function(t,e){return r._projection(r._point(t,e))[1]});var m=Object.keys(this._on);var _=m.filter(function(t){return t.includes(".Circle")}),b=m.filter(function(t){return!t.includes(".")}),w=m.filter(function(t){return t.includes(".shape")});for(var x=0;x<b.length;x++){y.on(b[x],this._on[b[x]])}for(var k=0;k<w.length;k++){y.on(w[k],this._on[w[k]])}for(var S=0;S<_.length;S++){y.on(_[S],this._on[_[S]])}this._shapes.push(y.render());return this}},{key:"fitFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._fitFilter=e,this;if(!(e instanceof Array))e=[e];return this._fitFilter=function(t){return e.includes(t.id)},this}return this._fitFilter}},{key:"fitKey",value:function t(e){if(arguments.length){this._fitKey=e;this._zoomSet=false;return this}return this._fitKey}},{key:"fitObject",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var r=this._queue.find(function(t){return t[3]==="fitObject"});var i=[Xj.bind(this),e,n,"fitObject"];if(r)this._queue[this._queue.indexOf(r)]=i;else this._queue.push(i)}else{this._fitObject=e}this._zoomSet=false;return this}return this._fitObject}},{key:"ocean",value:function t(e){return arguments.length?(this._ocean=e,this):this._ocean}},{key:"point",value:function t(e){return arguments.length?(this._point=typeof e==="function"?e:nb(e),this):this._point}},{key:"pointSize",value:function t(e){return arguments.length?(this._pointSize=typeof e==="function"?e:nb(e),this):this._pointSize}},{key:"pointSizeMax",value:function t(e){return arguments.length?(this._pointSizeMax=e,this):this._pointSizeMax}},{key:"pointSizeMin",value:function t(e){return arguments.length?(this._pointSizeMin=e,this):this._pointSizeMin}},{key:"projection",value:function t(e){if(arguments.length&&e!=="geoMercator")this.tiles(false);return arguments.length?(this._projection=typeof e==="string"?kV[e]?kV[e]():kV.geoMercator():e,this):this._projection}},{key:"projectionPadding",value:function t(e){return arguments.length?(this._projectionPadding=Zb(e),this):this._projectionPadding}},{key:"projectionRotate",value:function t(e){if(arguments.length){this._projection.rotate(e);this.tiles(false);this._zoomSet=false;return this}else{return this._projectionRotate}}},{key:"tiles",value:function t(e){if(arguments.length){this._tiles=e;var n=SV(this._tileUrl);if(e&&this._attribution==="")this._attribution=n;else if(!e&&this._attribution===n)this._attribution="";return this}return this._tiles}},{key:"tileUrl",value:function t(e){if(arguments.length){this._tileUrl=e;if(this._tiles)this._attribution=SV(e);if(this._tileGroup)this._renderTiles.bind(this)();return this}return this._tileUrl}},{key:"topojson",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var r=this._queue.find(function(t){return t[3]==="topojson"});var i=[Xj.bind(this),e,n,"topojson"];if(r)this._queue[this._queue.indexOf(r)]=i;else this._queue.push(i)}else{this._topojson=e}this._zoomSet=false;return this}return this._topojson}},{key:"topojsonFill",value:function t(e){return arguments.length?(this._topojsonFill=typeof e==="function"?e:nb(e),this):this._topojsonFill}},{key:"topojsonFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._topojsonFilter=e,this;if(!(e instanceof Array))e=[e];return this._topojsonFilter=function(t){return e.includes(t.id)},this}return this._topojsonFilter}},{key:"topojsonKey",value:function t(e){if(arguments.length){this._topojsonKey=e;this._zoomSet=false;return this}return this._topojsonKey}},{key:"topojsonId",value:function t(e){return arguments.length?(this._topojsonId=typeof e==="function"?e:Ul(e),this):this._topojsonId}}]);return C}(nV);function AV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){AV=function t(e){return typeof e}}else{AV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return AV(t)}function MV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function RV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function TV(t,e,n){if(e)RV(t.prototype,e);if(n)RV(t,n);return t}function OV(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){OV=Reflect.get}else{OV=function t(e,n,r){var i=PV(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return OV(t,e,n||t)}function PV(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=IV(t);if(t===null)break}return t}function BV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)DV(t,e)}function DV(t,e){DV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return DV(t,e)}function NV(i){var a=jV();return function t(){var e=IV(i),n;if(a){var r=IV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return zV(this,n)}}function zV(t,e){if(e&&(AV(e)==="object"||typeof e==="function")){return e}return FV(t)}function FV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function jV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function IV(t){IV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return IV(t)}var LV=function(t){BV(l,t);var e=NV(l);function l(){var r;MV(this,l);r=e.call(this);var n=r._legend;r._legend=function(t,e){if(e.length===r._filteredData.length)return false;return n.bind(FV(r))(t,e)};r._legendSort=function(t,e){return r._value(e)-r._value(t)};r._shapeConfig=ql(r._shapeConfig,{ariaLabel:function t(e,n){return r._pieData?"".concat(++r._pieData[n].index,". ").concat(r._drawLabel(e,n),", ").concat(r._value(e,n),"."):""},Path:{labelConfig:{fontResize:true}}});r._innerRadius=0;r._legendSort=function(t,e){return r._value(e)-r._value(t)};r._padPixel=0;r._pie=K3();r._sort=function(t,e){return r._value(e)-r._value(t)};r._value=Ul("value");return r}TV(l,[{key:"_draw",value:function t(e){var n=this;OV(IV(l.prototype),"_draw",this).call(this,e);var r=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var a=Ab([i,r])/2;var o=this._pieData=this._pie.padAngle(this._padAngle||this._padPixel/a).sort(this._sort).value(this._value)(this._filteredData);o.forEach(function(t,e){t.__d3plus__=true;t.i=e});var s=z3().innerRadius(this._innerRadius).outerRadius(a);var u="translate(".concat(i/2+this._margin.left,", ").concat(r/2+this._margin.top,")");this._shapes.push((new sC).data(o).d(s).select(rb("g.d3plus-Pie",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).label(this._drawLabel).config(eb.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=e,this):this._innerRadius}},{key:"padAngle",value:function t(e){return arguments.length?(this._padAngle=e,this):this._padAngle}},{key:"padPixel",value:function t(e){return arguments.length?(this._padPixel=e,this):this._padPixel}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Ul(e),this):this._value}}]);return l}(nV);function HV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HV=function t(e){return typeof e}}else{HV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return HV(t)}function UV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function GV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)VV(t,e)}function VV(t,e){VV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return VV(t,e)}function WV(i){var a=YV();return function t(){var e=XV(i),n;if(a){var r=XV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return qV(this,n)}}function qV(t,e){if(e&&(HV(e)==="object"||typeof e==="function")){return e}return KV(t)}function KV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function YV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function XV(t){XV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return XV(t)}var ZV=function(t){GV(n,t);var e=WV(n);function n(){var t;UV(this,n);t=e.call(this);t._innerRadius=function(){return Ab([t._width-t._margin.left-t._margin.right,t._height-t._margin.top-t._margin.bottom])/4};t._padPixel=2;return t}return n}(LV);function $V(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else while(--r>=0){e+=n[r].value}t.value=e}function JV(){return this.eachAfter($V)}function QV(t,e){var n=-1;var r=_createForOfIteratorHelper2(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.call(e,a,++n,this)}}catch(t){r.e(t)}finally{r.f()}return this}function tW(t,e){var n=this,r=[n],i,a,o=-1;while(n=r.pop()){t.call(e,n,++o,this);if(i=n.children){for(a=i.length-1;a>=0;--a){r.push(i[a])}}}return this}function eW(t,e){var n=this,r=[n],i=[],a,o,s,u=-1;while(n=r.pop()){i.push(n);if(a=n.children){for(o=0,s=a.length;o<s;++o){r.push(a[o])}}}while(n=i.pop()){t.call(e,n,++u,this)}return this}function nW(t,e){var n=-1;var r=_createForOfIteratorHelper2(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(t.call(e,a,++n,this)){return a}}}catch(t){r.e(t)}finally{r.f()}}function rW(i){return this.eachAfter(function(t){var e=+i(t.data)||0,n=t.children,r=n&&n.length;while(--r>=0){e+=n[r].value}t.value=e})}function iW(e){return this.eachBefore(function(t){if(t.children){t.children.sort(e)}})}function aW(t){var e=this,n=oW(e,t),r=[e];while(e!==n){e=e.parent;r.push(e)}var i=r.length;while(t!==n){r.splice(i,0,t);t=t.parent}return r}function oW(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop();e=r.pop();while(t===e){i=t;t=n.pop();e=r.pop()}return i}function sW(){var t=this,e=[t];while(t=t.parent){e.push(t)}return e}function uW(){return Array.from(this)}function lW(){var e=[];this.eachBefore(function(t){if(!t.children){e.push(t)}});return e}function cW(){var e=this,n=[];e.each(function(t){if(t!==e){n.push({source:t.parent,target:t})}});return n}function fW(){var n,r,i,a,o,s;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:n=this,i=[n];case 1:r=i.reverse(),i=[];case 2:if(!(n=r.pop())){e.next=8;break}e.next=5;return n;case 5:if(a=n.children){for(o=0,s=a.length;o<s;++o){i.push(a[o])}}e.next=2;break;case 8:if(i.length){e.next=1;break}case 9:case"end":return e.stop()}}},u,this)}function hW(t,e){if(t instanceof Map){t=[undefined,t];if(e===undefined)e=vW}else if(e===undefined){e=gW}var n=new mW(t),r,i=[n],a,o,s,u;while(r=i.pop()){if((o=e(r.data))&&(u=(o=Array.from(o)).length)){r.children=o;for(s=u-1;s>=0;--s){i.push(a=o[s]=new mW(o[s]));a.parent=r;a.depth=r.depth+1}}}return n.eachBefore(yW)}function dW(){return hW(this).eachBefore(pW)}function gW(t){return t.children}function vW(t){return Array.isArray(t)?t[1]:null}function pW(t){if(t.data.value!==undefined)t.value=t.data.value;t.data=t.data.data}function yW(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function mW(t){this.data=t;this.depth=this.height=0;this.parent=null}mW.prototype=hW.prototype=_defineProperty2({constructor:mW,count:JV,each:QV,eachAfter:eW,eachBefore:tW,find:nW,sum:rW,sort:iW,path:aW,ancestors:sW,descendants:uW,leaves:lW,links:cW,copy:dW},Symbol.iterator,fW);function _W(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function bW(t){var e=t.length,n,r;while(e){r=Math.random()*e--|0;n=t[e];t[e]=t[r];t[r]=n}return t}function wW(t){var e=0,n=(t=bW(Array.from(t))).length,r=[],i,a;while(e<n){i=t[e];if(a&&SW(a,i))++e;else a=EW(r=xW(r,i)),e=0}return a}function xW(t,e){var n,r;if(CW(e,t))return[e];for(n=0;n<t.length;++n){if(kW(e,t[n])&&CW(MW(t[n],e),t)){return[t[n],e]}}for(n=0;n<t.length-1;++n){for(r=n+1;r<t.length;++r){if(kW(MW(t[n],t[r]),e)&&kW(MW(t[n],e),t[r])&&kW(MW(t[r],e),t[n])&&CW(RW(t[n],t[r],e),t)){return[t[n],t[r],e]}}}throw new Error}function kW(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function SW(t,e){var n=t.r-e.r+Math.max(t.r,e.r,1)*1e-9,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function CW(t,e){for(var n=0;n<e.length;++n){if(!SW(t,e[n])){return false}}return true}function EW(t){switch(t.length){case 1:return AW(t[0]);case 2:return MW(t[0],t[1]);case 3:return RW(t[0],t[1],t[2])}}function AW(t){return{x:t.x,y:t.y,r:t.r}}function MW(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,u=a-n,l=o-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+a+u/f*c)/2,y:(r+o+l/f*c)/2,r:(f+i+s)/2}}function RW(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,u=e.r,l=n.x,c=n.y,f=n.r,h=r-o,d=r-l,g=i-s,v=i-c,p=u-a,y=f-a,m=r*r+i*i-a*a,_=m-o*o-s*s+u*u,b=m-l*l-c*c+f*f,w=d*g-h*v,x=(g*b-v*_)/(w*2)-r,k=(v*p-g*y)/w,S=(d*_-h*b)/(w*2)-i,C=(h*y-d*p)/w,E=k*k+C*C-1,A=2*(a+x*k+S*C),M=x*x+S*S-a*a,R=-(E?(A+Math.sqrt(A*A-4*E*M))/(2*E):M/A);return{x:r+x+k*R,y:i+S+C*R,r:R}}function TW(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,u,l=r*r+o*o;if(l){a=e.r+n.r,a*=a;u=t.r+n.r,u*=u;if(a>u){i=(l+u-a)/(2*l);s=Math.sqrt(Math.max(0,u/l-i*i));n.x=t.x-i*r-s*o;n.y=t.y-i*o+s*r}else{i=(l+a-u)/(2*l);s=Math.sqrt(Math.max(0,a/l-i*i));n.x=e.x+i*r-s*o;n.y=e.y+i*o+s*r}}else{n.x=e.x+n.r;n.y=e.y}}function OW(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function PW(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function BW(t){this._=t;this.next=null;this.previous=null}function DW(t){if(!(i=(t=_W(t)).length))return 0;var e,n,r,i,a,o,s,u,l,c,f;e=t[0],e.x=0,e.y=0;if(!(i>1))return e.r;n=t[1],e.x=-n.r,n.x=e.r,n.y=0;if(!(i>2))return e.r+n.r;TW(n,e,r=t[2]);e=new BW(e),n=new BW(n),r=new BW(r);e.next=r.previous=n;n.next=e.previous=r;r.next=n.previous=e;t:for(s=3;s<i;++s){TW(e._,n._,r=t[s]),r=new BW(r);u=n.next,l=e.previous,c=n._.r,f=e._.r;do{if(c<=f){if(OW(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}c+=u._.r,u=u.next}else{if(OW(l._,r._)){e=l,e.next=n,n.previous=e,--s;continue t}f+=l._.r,l=l.previous}}while(u!==l.next);r.previous=e,r.next=n,e.next=n.previous=n=r;a=PW(e);while((r=r.next)!==n){if((o=PW(r))<a){e=r,a=o}}n=e.next}e=[n._],r=n;while((r=r.next)!==n){e.push(r._)}r=wW(e);for(s=0;s<i;++s){e=t[s],e.x-=r.x,e.y-=r.y}return r.r}function NW(t){return t==null?null:zW(t)}function zW(t){if(typeof t!=="function")throw new Error;return t}function FW(){return 0}function jW(t){return function(){return t}}function IW(t){return Math.sqrt(t.value)}function LW(){var e=null,n=1,r=1,i=FW;function a(t){t.x=n/2,t.y=r/2;if(e){t.eachBefore(HW(e)).eachAfter(UW(i,.5)).eachBefore(GW(1))}else{t.eachBefore(HW(IW)).eachAfter(UW(FW,1)).eachAfter(UW(i,t.r/Math.min(n,r))).eachBefore(GW(Math.min(n,r)/(2*t.r)))}return t}a.radius=function(t){return arguments.length?(e=NW(t),a):e};a.size=function(t){return arguments.length?(n=+t[0],r=+t[1],a):[n,r]};a.padding=function(t){return arguments.length?(i=typeof t==="function"?t:jW(+t),a):i};return a}function HW(e){return function(t){if(!t.children){t.r=Math.max(0,+e(t)||0)}}}function UW(o,s){return function(t){if(e=t.children){var e,n,r=e.length,i=o(t)*s||0,a;if(i)for(n=0;n<r;++n){e[n].r+=i}a=DW(e);if(i)for(n=0;n<r;++n){e[n].r-=i}t.r=a+i}}}function GW(n){return function(t){var e=t.parent;t.r*=n;if(e){t.x=e.x+n*t.x;t.y=e.y+n*t.y}}}function VW(t){t.x0=Math.round(t.x0);t.y0=Math.round(t.y0);t.x1=Math.round(t.x1);t.y1=Math.round(t.y1)}function WW(t,e,n,r,i){var a=t.children,o,s=-1,u=a.length,l=t.value&&(r-e)/t.value;while(++s<u){o=a[s],o.y0=n,o.y1=i;o.x0=e,o.x1=e+=o.value*l}}function qW(t,e){return t.parent===e.parent?1:2}function KW(t){var e=t.children;return e?e[0]:t.t}function YW(t){var e=t.children;return e?e[e.length-1]:t.t}function XW(t,e,n){var r=n/(e.i-t.i);e.c-=r;e.s+=n;t.c+=r;e.z+=n;e.m+=n}function ZW(t){var e=0,n=0,r=t.children,i=r.length,a;while(--i>=0){a=r[i];a.z+=e;a.m+=e;e+=a.s+(n+=a.c)}}function $W(t,e,n){return t.a.parent===e.parent?t.a:n}function JW(t,e){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=e}JW.prototype=Object.create(mW.prototype);function QW(t){var e=new JW(t,0),n,r=[e],i,a,o,s;while(n=r.pop()){if(a=n._.children){n.children=new Array(s=a.length);for(o=s-1;o>=0;--o){r.push(i=n.children[o]=new JW(a[o],o));i.parent=n}}}(e.parent=new JW(null,0)).children=[e];return e}function tq(){var h=qW,l=1,c=1,f=null;function e(t){var e=QW(t);e.eachAfter(d),e.parent.m=-e.z;e.eachBefore(g);if(f)t.eachBefore(v);else{var n=t,r=t,i=t;t.eachBefore(function(t){if(t.x<n.x)n=t;if(t.x>r.x)r=t;if(t.depth>i.depth)i=t});var a=n===r?1:h(n,r)/2,o=a-n.x,s=l/(r.x+a+o),u=c/(i.depth||1);t.eachBefore(function(t){t.x=(t.x+o)*s;t.y=t.depth*u})}return t}function d(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){ZW(t);var i=(e[0].z+e[e.length-1].z)/2;if(r){t.z=r.z+h(t._,r._);t.m=t.z-i}else{t.z=i}}else if(r){t.z=r.z+h(t._,r._)}t.parent.A=a(t,r,t.parent.A||n[0])}function g(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function a(t,e,n){if(e){var r=t,i=t,a=e,o=r.parent.children[0],s=r.m,u=i.m,l=a.m,c=o.m,f;while(a=YW(a),r=KW(r),a&&r){o=KW(o);i=YW(i);i.a=t;f=a.z+l-r.z-s+h(a._,r._);if(f>0){XW($W(a,t,n),t,f);s+=f;u+=f}l+=a.m;s+=r.m;c+=o.m;u+=i.m}if(a&&!YW(i)){i.t=a;i.m+=l-u}if(r&&!KW(o)){o.t=r;o.m+=s-c;n=t}}return n}function v(t){t.x*=l;t.y=t.depth*c}e.separation=function(t){return arguments.length?(h=t,e):h};e.size=function(t){return arguments.length?(f=false,l=+t[0],c=+t[1],e):f?null:[l,c]};e.nodeSize=function(t){return arguments.length?(f=true,l=+t[0],c=+t[1],e):f?[l,c]:null};return e}function eq(t,e,n,r,i){var a=t.children,o,s=-1,u=a.length,l=t.value&&(i-n)/t.value;while(++s<u){o=a[s],o.x0=e,o.x1=r;o.y0=n,o.y1=n+=o.value*l}}var nq=(1+Math.sqrt(5))/2;function rq(t,e,n,r,i,a){var o=[],s=e.children,u,l,c=0,f=0,h=s.length,d,g,v=e.value,p,y,m,_,b,w,x;while(c<h){d=i-n,g=a-r;do{p=s[f++].value}while(!p&&f<h);y=m=p;w=Math.max(g/d,d/g)/(v*t);x=p*p*w;b=Math.max(m/x,x/y);for(;f<h;++f){p+=l=s[f].value;if(l<y)y=l;if(l>m)m=l;x=p*p*w;_=Math.max(m/x,x/y);if(_>b){p-=l;break}b=_}o.push(u={value:p,dice:d<g,children:s.slice(c,f)});if(u.dice)WW(u,n,r,i,v?r+=g*p/v:a);else eq(u,n,r,v?n+=d*p/v:i,a);v-=p,c=f}return o}var iq=function e(a){function t(t,e,n,r,i){rq(a,t,e,n,r,i)}t.ratio=function(t){return e((t=+t)>1?t:1)};return t}(nq);function aq(){var o=iq,e=false,n=1,r=1,s=[0],u=FW,l=FW,c=FW,f=FW,h=FW;function i(t){t.x0=t.y0=0;t.x1=n;t.y1=r;t.eachBefore(a);s=[0];if(e)t.eachBefore(VW);return t}function a(t){var e=s[t.depth],n=t.x0+e,r=t.y0+e,i=t.x1-e,a=t.y1-e;if(i<n)n=i=(n+i)/2;if(a<r)r=a=(r+a)/2;t.x0=n;t.y0=r;t.x1=i;t.y1=a;if(t.children){e=s[t.depth+1]=u(t)/2;n+=h(t)-e;r+=l(t)-e;i-=c(t)-e;a-=f(t)-e;if(i<n)n=i=(n+i)/2;if(a<r)r=a=(r+a)/2;o(t,n,r,i,a)}}i.round=function(t){return arguments.length?(e=!!t,i):e};i.size=function(t){return arguments.length?(n=+t[0],r=+t[1],i):[n,r]};i.tile=function(t){return arguments.length?(o=zW(t),i):o};i.padding=function(t){return arguments.length?i.paddingInner(t).paddingOuter(t):i.paddingInner()};i.paddingInner=function(t){return arguments.length?(u=typeof t==="function"?t:jW(+t),i):u};i.paddingOuter=function(t){return arguments.length?i.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):i.paddingTop()};i.paddingTop=function(t){return arguments.length?(l=typeof t==="function"?t:jW(+t),i):l};i.paddingRight=function(t){return arguments.length?(c=typeof t==="function"?t:jW(+t),i):c};i.paddingBottom=function(t){return arguments.length?(f=typeof t==="function"?t:jW(+t),i):f};i.paddingLeft=function(t){return arguments.length?(h=typeof t==="function"?t:jW(+t),i):h};return i}function oq(t,e,n,r,i){var y=t.children,a,o=y.length,s,m=new Array(o+1);for(m[0]=s=a=0;a<o;++a){m[a+1]=s+=y[a].value}_(0,o,t.value,e,n,r,i);function _(t,e,n,r,i,a,o){if(t>=e-1){var s=y[t];s.x0=r,s.y0=i;s.x1=a,s.y1=o;return}var u=m[t],l=n/2+u,c=t+1,f=e-1;while(c<f){var h=c+f>>>1;if(m[h]<l)c=h+1;else f=h}if(l-m[c-1]<m[c]-l&&t+1<c)--c;var d=m[c]-u,g=n-d;if(a-r>o-i){var v=n?(r*g+a*d)/n:a;_(t,c,d,r,i,v,o);_(c,e,g,v,i,a,o)}else{var p=n?(i*g+o*d)/n:o;_(t,c,d,r,i,a,p);_(c,e,g,r,p,a,o)}}}function sq(t,e,n,r,i){(t.depth&1?eq:WW)(t,e,n,r,i)}var uq=function e(d){function t(t,e,n,r,i){if((a=t._squarify)&&a.ratio===d){var a,o,s,u,l=-1,c,f=a.length,h=t.value;while(++l<f){o=a[l],s=o.children;for(u=o.value=0,c=s.length;u<c;++u){o.value+=s[u].value}if(o.dice)WW(o,e,n,r,h?n+=(i-n)*o.value/h:i);else eq(o,e,n,h?e+=(r-e)*o.value/h:r,i);h-=o.value}}else{t._squarify=a=rq(d,t,e,n,r,i);a.ratio=d}}t.ratio=function(t){return e((t=+t)>1?t:1)};return t}(nq);function lq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){lq=function t(e){return typeof e}}else{lq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return lq(t)}function cq(t){return gq(t)||dq(t)||hq(t)||fq()}function fq(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function hq(t,e){if(!t)return;if(typeof t==="string")return vq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vq(t,e)}function dq(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function gq(t){if(Array.isArray(t))return vq(t)}function vq(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function pq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function yq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function mq(t,e,n){if(e)yq(t.prototype,e);if(n)yq(t,n);return t}function _q(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){_q=Reflect.get}else{_q=function t(e,n,r){var i=bq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return _q(t,e,n||t)}function bq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=Aq(t);if(t===null)break}return t}function wq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)xq(t,e)}function xq(t,e){xq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return xq(t,e)}function kq(i){var a=Eq();return function t(){var e=Aq(i),n;if(a){var r=Aq(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Sq(this,n)}}function Sq(t,e){if(e&&(lq(e)==="object"||typeof e==="function")){return e}return Cq(t)}function Cq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Eq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Aq(t){Aq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Aq(t)}var Mq=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(t.values){t.values.forEach(function(t){n.push(t);e(t,n)})}else{n.push(t)}return n};var Rq=function(t){wq(c,t);var e=kq(c);function c(){var o;pq(this,c);o=e.call(this);o._layoutPadding=1;var n=o._legend;o._legend=function(t,e){if(e.length===o._filteredData.length)return false;return n.bind(Cq(o))(t,e)};o._on.mouseenter=function(){};var s=o._on["mousemove.legend"];o._on["mousemove.legend"]=function(n,t,e,r){s(n,t,e,r);var i=o._ids(n,t);var a=Mq(n);o.hover(function(e){var t=Object.keys(e).filter(function(t){return t!=="value"}).every(function(t){return n[t]&&n[t].includes(e[t])});if(t)a.push(e);else if(i.includes(e.key))a.push.apply(a,cq(Mq(e,[e])));return a.includes(e)})};var i=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(e,t,n,r){if(e.__d3plusTooltip__)i(e,t,n,r);o.hover(function(t){return Mq(e,[e]).includes(t)})};o._pack=LW();o._packOpacity=nb(.25);o._shape=nb("Circle");o._shapeConfig=ql(o._shapeConfig,{Circle:{label:function t(e){return e.parent&&!e.children?e.id:false},labelConfig:{fontResize:true},opacity:function t(e){return e.__d3plusOpacity__}}});o._sort=function(t,e){return e.value-t.value};o._sum=Ul("value");return o}mq(c,[{key:"_draw",value:function t(e){var n=this;_q(Aq(c.prototype),"_draw",this).call(this,e);var r=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var a=Math.min(r,i);var o="translate(".concat((i-a)/2,", ").concat((r-a)/2,")");var s=Lb();for(var u=0;u<=this._drawDepth;u++){s.key(this._groupBy[u])}s=s.entries(this._filteredData);var l=this._pack.padding(this._layoutPadding).size([a,a])(hW({key:s.key,values:s},function(t){return t.values}).sum(this._sum).sort(this._sort)).descendants();l.forEach(function(t,e){t.__d3plus__=true;t.i=e;t.id=t.parent?t.parent.data.key:null;t.data.__d3plusOpacity__=t.height?n._packOpacity(t.data,e):1;t.data.__d3plusTooltip__=!t.height?true:false});this._shapes.push((new GS).data(l).select(rb("g.d3plus-Pack",{parent:this._select,enter:{transform:o},update:{transform:o}}).node()).config(eb.bind(this)(this._shapeConfig,"shape","Circle")).render());return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=e,this):this._layoutPadding}},{key:"packOpacity",value:function t(e){return arguments.length?(this._packOpacity=typeof e==="function"?e:nb(e),this):this._packOpacity}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){return arguments.length?(this._sum=typeof e==="function"?e:Ul(e),this):this._sum}}]);return c}(nV);function Tq(t,e){if(!(e instanceof Array))e=[e];var n=Lb();for(var r=0;r<e.length;r++){n.key(e[r])}var i=n.entries(t);return Oq(i)}function Oq(t){return t.map(function(t){if(t.key&&t.values){if(t.values[0].key==="undefined")return t.values[0].values[0];else t.values=Oq(t.values)}return t})}function Pq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Pq=function t(e){return typeof e}}else{Pq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Pq(t)}function Bq(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function Dq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Nq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function zq(t,e,n){if(e)Nq(t.prototype,e);if(n)Nq(t,n);return t}function Fq(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Fq=Reflect.get}else{Fq=function t(e,n,r){var i=jq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Fq(t,e,n||t)}function jq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=Wq(t);if(t===null)break}return t}function Iq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Lq(t,e)}function Lq(t,e){Lq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Lq(t,e)}function Hq(i){var a=Vq();return function t(){var e=Wq(i),n;if(a){var r=Wq(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Uq(this,n)}}function Uq(t,e){if(e&&(Pq(e)==="object"||typeof e==="function")){return e}return Gq(t)}function Gq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Vq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Wq(t){Wq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Wq(t)}var qq=function(t){Iq(p,t);var e=Hq(p);function p(){var r;Dq(this,p);r=e.call(this);r._orient="vertical";r._separation=function(t,e){return t.parent===e.parent?1:2};r._shape=nb("Circle");r._shapeConfig=ql(r._shapeConfig,{ariaLabel:function t(e,n){return r._treeData?"".concat(r._treeData[n].depth,". ").concat(r._drawLabel(e,n),"."):""},labelConfig:{fontColor:"#444"},Path:{fill:"none",stroke:"#ccc",strokeWidth:1},r:nb(5),width:nb(10),height:nb(10)});r._tree=tq();return r}zq(p,[{key:"_draw",value:function t(e){var f=this;Fq(Wq(p.prototype),"_draw",this).call(this,e);var n=this._orient==="vertical"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right,o=this._orient==="vertical"?"left":"top",r=this,i="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),s=this._orient==="horizontal"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right;var a=this._treeData=this._tree.separation(this._separation).size([s,n])(hW({key:"root",values:Tq(this._filteredData,this._groupBy.slice(0,this._drawDepth+1))},function(t){return t.key&&t.values?t.values:null}).sort(this._sort)).descendants().filter(function(t){return t.depth<=f._groupBy.length&&t.parent});function u(t){return Xb(t.values.map(function(t){return t.key&&t.values?u(t):t}),r._aggs)}a.forEach(function(t,e){if(t.data.key&&t.data.values)t.data=u(t.data);t.__d3plus__=true;t.i=e});var l=this._shapeConfig.r;if(typeof l!=="function")l=nb(l);var c=Eb(a,function(t){return t.depth===1?l(t.data,t.i):0});var h=Eb(a,function(t){return t.children?0:l(t.data,t.i)});var d=gb(a,function(t){return t.y});this._labelHeight=Ab([this._orient==="vertical"?50:100,(d[1]-c-h)/(this._groupBy.length+1)]);this._labelWidths=Tq(a,function(t){return t.depth}).map(function(a){return a.values.reduce(function(t,e,n){var r=n<a.values.length-1?a.values[n+1].x:s+f._margin[o],i=n?a.values[n-1].x:f._margin[o];return Ab([t,r-e.x,e.x-i])},s)});var g=b2().domain(d).range([c+this._labelHeight,n-h-this._labelHeight]);a.forEach(function(t){var e=g(t.y);if(f._orient==="horizontal"){t.y=t.x;t.x=e}else t.y=e});var v={parent:this._select,enter:{transform:i},update:{transform:i}};this._shapes.push((new sC).data(a.filter(function(t){return t.depth>1})).select(rb("g.d3plus-Tree-Links",v).node()).config(eb.bind(this)(this._shapeConfig,"shape","Path")).config({d:function t(e){var n=f._shapeConfig.r;if(typeof n==="function")n=n(e.data,e.i);var r=e.parent.x-e.x+(f._orient==="vertical"?0:n),i=e.parent.y-e.y+(f._orient==="vertical"?n:0),a=f._orient==="vertical"?0:-n,o=f._orient==="vertical"?-n:0;return f._orient==="vertical"?"M".concat(a,",").concat(o,"C").concat(a,",").concat((o+i)/2," ").concat(r,",").concat((o+i)/2," ").concat(r,",").concat(i):"M".concat(a,",").concat(o,"C").concat((a+r)/2,",").concat(o," ").concat((a+r)/2,",").concat(i," ").concat(r,",").concat(i)},id:function t(e,n){return f._ids(e,n).join("-")}}).render());this._shapes.push((new GS).data(a).select(rb("g.d3plus-Tree-Shapes",v).node()).config(eb.bind(this)(this._shapeConfig,"shape","Circle")).config({id:function t(e,n){return f._ids(e,n).join("-")},label:function t(e,n){if(f._label)return f._label(e.data,n);var r=f._ids(e,n).slice(0,e.depth);return r[r.length-1]},labelConfig:{textAnchor:function t(e){return f._orient==="vertical"?"middle":e.data.children&&e.data.depth!==f._groupBy.length?"end":"start"},verticalAlign:function t(e){return f._orient==="vertical"?e.data.depth===1?"bottom":"top":"middle"}},hitArea:function t(e,n,r){var i=f._labelHeight,a=f._labelWidths[e.depth-1];return{width:f._orient==="vertical"?a:r.r*2+a,height:f._orient==="horizontal"?i:r.r*2+i,x:f._orient==="vertical"?-a/2:e.children&&e.depth!==f._groupBy.length?-(r.r+a):-r.r,y:f._orient==="horizontal"?-i/2:e.children&&e.depth!==f._groupBy.length?-(r.r+f._labelHeight):-r.r}},labelBounds:function t(e,n,r){var i;var a=f._labelHeight,o=f._orient==="vertical"?"height":"width",s=f._labelWidths[e.depth-1],u=f._orient==="vertical"?"width":"height",l=f._orient==="vertical"?"x":"y",c=f._orient==="vertical"?"y":"x";return i={},Bq(i,u,s),Bq(i,o,a),Bq(i,l,-s/2),Bq(i,c,e.children&&e.depth!==f._groupBy.length?-(r.r+a):r.r),i}}).render());return this}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"separation",value:function t(e){return arguments.length?(this._separation=e,this):this._separation}}]);return p}(nV);function Kq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Kq=function t(e){return typeof e}}else{Kq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Kq(t)}function Yq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Xq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function Zq(t,e,n){if(e)Xq(t.prototype,e);if(n)Xq(t,n);return t}function $q(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){$q=Reflect.get}else{$q=function t(e,n,r){var i=Jq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return $q(t,e,n||t)}function Jq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=aK(t);if(t===null)break}return t}function Qq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)tK(t,e)}function tK(t,e){tK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return tK(t,e)}function eK(i){var a=iK();return function t(){var e=aK(i),n;if(a){var r=aK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return nK(this,n)}}function nK(t,e){if(e&&(Kq(e)==="object"||typeof e==="function")){return e}return rK(t)}function rK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function iK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function aK(t){aK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return aK(t)}var oK={treemapBinary:oq,treemapDice:WW,treemapSlice:eq,treemapSliceDice:sq,treemapSquarify:iq,treemapResquarify:uq};var sK=function(t){Qq(v,t);var e=eK(v);function v(){var i;Yq(this,v);i=e.call(this);i._layoutPadding=1;var n=i._legend;i._legend=function(t,e){if(e.length===i._filteredData.length)return false;return n.bind(rK(i))(t,e)};i._legendSort=function(t,e){return i._sum(e)-i._sum(t)};i._legendTooltip=ql({},i._legendTooltip,{tbody:[]});i._shapeConfig=ql({},i._shapeConfig,{ariaLabel:function t(e,n){var r=i._rankData?"".concat(i._rankData.indexOf(e)+1,". "):"";return"".concat(r).concat(i._drawLabel(e,n),", ").concat(i._sum(e,n),".")},labelConfig:{fontMax:40,fontMin:8,fontResize:true,padding:5}});i._sort=function(t,e){var n=a(t);var r=a(e);return n&&!r?1:!n&&r?-1:e.value-t.value};i._sum=Ul("value");i._thresholdKey=i._sum;i._tile=iq;i._tooltipConfig=ql({},i._tooltipConfig,{tbody:[[function(){return i._translate("Share")},function(t,e,n){return"".concat(Nw(n.share*100,i._locale),"%")}]]});i._treemap=aq().round(true);var a=function t(e){return e.children&&e.children.length===1&&e.children[0].data._isAggregation};return i}Zq(v,[{key:"_draw",value:function t(e){var n=this;$q(aK(v.prototype),"_draw",this).call(this,e);var r=Lb();for(var i=0;i<=this._drawDepth;i++){r.key(this._groupBy[i])}r=r.entries(this._filteredData);var a=this._treemap.padding(this._layoutPadding).size([this._width-this._margin.left-this._margin.right,this._height-this._margin.top-this._margin.bottom]).tile(this._tile)(hW({values:r},function(t){return t.values}).sum(this._sum).sort(this._sort));var o=[],s=this;function u(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.depth<=s._drawDepth)u(n.children);else{var r=n.data.values.length===1?s._filteredData.indexOf(n.data.values[0]):undefined;n.__d3plus__=true;n.id=n.data.key;n.i=r>-1?r:undefined;n.data=Xb(n.data.values,s._aggs);n.x=n.x0+(n.x1-n.x0)/2;n.y=n.y0+(n.y1-n.y0)/2;o.push(n)}}}if(a.children)u(a.children);this._rankData=o.sort(this._sort).map(function(t){return t.data});var l=a.value;o.forEach(function(t){t.share=n._sum(t.data,t.i)/l});var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");var f=eb.bind(this)(this._shapeConfig,"shape","Rect");var h=f.labelConfig.fontMax;var d=f.labelConfig.fontMin;var g=f.labelConfig.padding;this._shapes.push((new r4).data(o).label(function(t){return[n._drawLabel(t.data,t.i),"".concat(Nw(t.share*100,n._locale),"%")]}).select(rb("g.d3plus-Treemap",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).config({height:function t(e){return e.y1-e.y0},labelBounds:function t(e,n,r){var i=r.height;var a=Math.min(h,(i-g*2)*.5);if(a<d)a=0;return[{width:r.width,height:i-a,x:-r.width/2,y:-i/2},{width:r.width,height:a+g*2,x:-r.width/2,y:i/2-a-g*2}]},labelConfig:{textAnchor:function t(e,n,r){var i,a=r;while(typeof i==="undefined"&&a){if(typeof a.l!=="undefined")i=a.l;a=a.__d3plusParent__}return i?"middle":"start"},verticalAlign:function t(e,n,r){var i,a=r;while(typeof i==="undefined"&&a){if(typeof a.l!=="undefined")i=a.l;a=a.__d3plusParent__}return i?"bottom":"top"}},width:function t(e){return e.x1-e.x0}}).config(f).render());return this}},{key:"_thresholdFunction",value:function t(e){var c=this._aggs;var f=this._drawDepth;var h=this._groupBy;var d=this._threshold;var g=this._thresholdKey;var v=zb(e,g);if(d&&g){return p(e,0)}function p(t,r){if(r<f){return Lb().key(h[r]).entries(t).reduce(function(t,e){var n=p(e.values,r+1);return t.concat(n)},[])}if(r===f){var e=Math.min(1,Math.max(0,d(t)));if(!isFinite(e)||isNaN(e))return null;var n=[];var i=t.slice();var a=e*v;var o=i.length;while(o--){var s=i[o];if(g(s)<a){var u=i.indexOf(s);i.splice(u,1);n.push(s)}}if(n.length>0){var l=Xb(n,c);l._isAggregation=true;l._threshold=e;i.push(l)}return i}throw new Error("Depth is higher than the amount of grouping levels.")}return e}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=typeof e==="function"?e:nb(e),this):this._layoutPadding}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){if(arguments.length){this._sum=typeof e==="function"?e:Ul(e);this._thresholdKey=this._sum;return this}else return this._sum}},{key:"tile",value:function t(e){return arguments.length?(this._tile=typeof e==="string"?oK["treemap".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))]||iq:e,this):this._tile}}]);return v}(nV);function uK(t,e,n){return e[t]||this["_".concat(t)](e,n)}function lK(t,e){return hK(t)||fK(t,e)||vK(t,e)||cK()}function cK(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function fK(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function hK(t){if(Array.isArray(t))return t}function dK(t){return yK(t)||pK(t)||vK(t)||gK()}function gK(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function vK(t,e){if(!t)return;if(typeof t==="string")return mK(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mK(t,e)}function pK(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function yK(t){if(Array.isArray(t))return mK(t)}function mK(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}var _K=function t(e,n){var r;return(r=[]).concat.apply(r,dK(e.map(function(e){return n.map(function(t){return[].concat(e,t)})})))};function bK(){var o=this;var s=this._filteredData;var t=(this._rowList||Yb(s.map(this._row))).sort(this._rowSort);var e=(this._columnList||Yb(s.map(this._column))).sort(this._columnSort);if(!t.length||!e.length)return this;var n=_K(t,e).map(function(t){var e=lK(t,2),n=e[0],r=e[1];var i={__d3plusTooltip__:true,__d3plus__:true,column:r,row:n};var a=s.findIndex(function(t,e){return o._row(t,e)===n&&o._column(t,e)===r});if(a>=0){i.i=a;i.data=s[a]}else{i.data={row:n,column:r}}return i});return{rowValues:t,columnValues:e,shapeData:n}}function wK(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){wK=function t(e){return typeof e}}else{wK=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return wK(t)}function xK(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function kK(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function SK(t,e,n){if(e)kK(t.prototype,e);if(n)kK(t,n);return t}function CK(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){CK=Reflect.get}else{CK=function t(e,n,r){var i=EK(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return CK(t,e,n||t)}function EK(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=BK(t);if(t===null)break}return t}function AK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)MK(t,e)}function MK(t,e){MK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return MK(t,e)}function RK(i){var a=PK();return function t(){var e=BK(i),n;if(a){var r=BK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return TK(this,n)}}function TK(t,e){if(e&&(wK(e)==="object"||typeof e==="function")){return e}return OK(t)}function OK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function PK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function BK(t){BK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return BK(t)}var DK={align:"start",barConfig:{stroke:0},gridSize:0,padding:5,paddingInner:0,paddingOuter:0,scale:"band",tickSize:0};var NK=function(t){AK(E,t);var e=RK(E);function E(){var o;xK(this,E);o=e.call(this);o._cellPadding=2;o._column=Ul("column");o._columnAxis=new OC;o._columnConfig=ql({orient:"top"},DK);o._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._label=function(t,e){return"".concat(uK.bind(OK(o))("row",t,e)," / ").concat(uK.bind(OK(o))("column",t,e))};var s=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(t,e,n,r){s(t,e,n,r);var i=uK.bind(OK(o))("row",t,e);var a=uK.bind(OK(o))("column",t,e);o.hover(function(t,e){return uK.bind(OK(o))("row",t,e)===i||uK.bind(OK(o))("column",t,e)===a})};o._row=Ul("row");o._rowAxis=new OC;o._rowConfig=ql({orient:"left"},DK);o._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};return o}SK(E,[{key:"_draw",value:function t(e){var n=bK.bind(this)(this._filteredData),r=n.rowValues,i=n.columnValues,a=n.shapeData;if(!r.length||!i.length)return this;var o=this._height-this._margin.top-this._margin.bottom,s=this._select,u=this._transition,l=this._width-this._margin.left-this._margin.right;var c={opacity:0};var f={opacity:1};var h=l/i.length<120;var d=function t(e,n){return rb("g.d3plus-Matrix-".concat(e),Object.assign({parent:s,transition:u},n)).node()};this._rowAxis.select(d("row",{enter:c,update:c})).domain(r).height(o-this._margin.top-this._margin.bottom-this._padding.bottom-this._padding.top).maxSize(l/4).width(l).config(this._rowConfig).render();var g=this._rowAxis.outerBounds().width;this._padding.left+=g;var v="translate(0, ".concat(this._margin.top,")");var p=Object.assign({transform:v},c);this._columnAxis.select(d("column",{enter:p,update:p})).domain(i).range([this._margin.left+this._padding.left,l-this._margin.right+this._padding.right]).height(o).maxSize(o/4).width(l).labelRotation(h).config(this._columnConfig).render();var y=this._columnAxis.outerBounds().height;this._padding.top+=y;CK(BK(E.prototype),"_draw",this).call(this,e);var m="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");v="translate(0, ".concat(this._margin.top,")");var _=Object.assign({transform:v},f);this._rowAxis.select(d("row",{update:Object.assign({transform:m},f)})).height(o-this._margin.top-this._margin.bottom-this._padding.bottom).maxSize(g).range([y+this._columnAxis.padding(),undefined]).render();this._columnAxis.select(d("column",{update:_})).range([this._margin.left+this._padding.left+this._rowAxis.padding(),l-this._margin.right+this._padding.right]).maxSize(y).render();var b=this._rowAxis._getPosition.bind(this._rowAxis);var w=this._columnAxis._getPosition.bind(this._columnAxis);var x=r.length>1?b(r[1])-b(r[0]):this._rowAxis.height();var k=i.length>1?w(i[1])-w(i[0]):this._columnAxis.width();var S="translate(0, ".concat(this._margin.top,")");var C=eb.bind(this)(this._shapeConfig,"shape","Rect");this._shapes.push((new r4).data(a).select(rb("g.d3plus-Matrix-cells",{parent:this._select,enter:{transform:S},update:{transform:S}}).node()).config({height:x-this._cellPadding,width:k-this._cellPadding,x:function t(e){return w(e.column)+k/2},y:function t(e){return b(e.row)+x/2}}).config(C).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:Ul(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=ql(this._columnConfig,e),this):this._columnConfig}},{key:"columnList",value:function t(e){return arguments.length?(this._columnList=e,this):this._columnList}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:Ul(e),this):this._row}},{key:"rowConfig",value:function t(e){return arguments.length?(this._rowConfig=ql(this._rowConfig,e),this):this._rowConfig}},{key:"rowList",value:function t(e){return arguments.length?(this._rowList=e,this):this._rowList}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return E}(nV);function zK(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){zK=function t(e){return typeof e}}else{zK=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return zK(t)}function FK(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function jK(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function IK(t,e,n){if(e)jK(t.prototype,e);if(n)jK(t,n);return t}function LK(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){LK=Reflect.get}else{LK=function t(e,n,r){var i=HK(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return LK(t,e,n||t)}function HK(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=YK(t);if(t===null)break}return t}function UK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)GK(t,e)}function GK(t,e){GK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return GK(t,e)}function VK(i){var a=KK();return function t(){var e=YK(i),n;if(a){var r=YK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return WK(this,n)}}function WK(t,e){if(e&&(zK(e)==="object"||typeof e==="function")){return e}return qK(t)}function qK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function KK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function YK(t){YK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return YK(t)}var XK=Math.PI*2;var ZK=function(t){UK(S,t);var e=VK(S);function S(){var o;FK(this,S);o=e.call(this);o._cellPadding=2;o._column=Ul("column");o._columnConfig={shapeConfig:{labelConfig:{fontColor:"#000",padding:5,textAnchor:function t(e){return[0,180].includes(e.angle)?"middle":[2,3].includes(e.quadrant)?"end":"start"},verticalAlign:function t(e){return[90,270].includes(e.angle)?"middle":[2,1].includes(e.quadrant)?"bottom":"top"}}}};o._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._innerRadius=function(t){return t/5};o._label=function(t,e){return"".concat(uK.bind(qK(o))("row",t,e)," / ").concat(uK.bind(qK(o))("column",t,e))};var s=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(t,e,n,r){s(t,e,n,r);var i=uK.bind(qK(o))("row",t,e);var a=uK.bind(qK(o))("column",t,e);o.hover(function(t,e){return uK.bind(qK(o))("row",t,e)===i||uK.bind(qK(o))("column",t,e)===a})};o._row=Ul("row");o._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._columnLabels=new T9;return o}IK(S,[{key:"_draw",value:function t(e){var n=this;var r=bK.bind(this)(this._filteredData),i=r.rowValues,a=r.columnValues,o=r.shapeData;if(!i.length||!a.length)return this;LK(YK(S.prototype),"_draw",this).call(this,e);var s=this._height-this._margin.top-this._margin.bottom,u=this._select,l=this._transition,c=this._width-this._margin.left-this._margin.right;var f=50,h=100;var d=Ab([s-f*2,c-h*2])/2,g="translate(".concat(c/2+this._margin.left,", ").concat(s/2+this._margin.top,")");var v=a.slice().reverse();v.unshift(v.pop());var p=v.length;var y=v.map(function(t,e){var n=e/p*XK;var r=Math.round(n*180/Math.PI);var i=Math.floor((r+90)/90%4+1);var a=[0,180].includes(r)?-h/2:[2,3].includes(i)?-h:0;var o=[90,270].includes(r)?-f/2:[2,1].includes(i)?-f:0;return{key:t,angle:r,quadrant:i,radians:n,x:d*Math.sin(n+Math.PI)+a,y:d*Math.cos(n+Math.PI)+o}});var m=this._columnConfig.labels instanceof Array?y.filter(function(t){return n._columnConfig.labels.includes(t.key)}):y;this._columnLabels.data(m).x(function(t){return t.x}).y(function(t){return t.y}).text(function(t){return t.key}).width(h).height(f).config(this._columnConfig.shapeConfig.labelConfig).select(rb("g.d3plus-RadialMatrix-columns",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).render();var _=this._innerRadius(d);var b=(d-_)/i.length;var w=y.length>1?y[1].radians-y[0].radians:XK;var x=i.slice().reverse();var k=z3().padAngle(this._cellPadding/d).innerRadius(function(t){return _+x.indexOf(t.row)*b+n._cellPadding/2}).outerRadius(function(t){return _+(x.indexOf(t.row)+1)*b-n._cellPadding/2}).startAngle(function(t){return y[a.indexOf(t.column)].radians-w/2}).endAngle(function(t){return y[a.indexOf(t.column)].radians+w/2});this._shapes.push((new sC).data(o).d(k).select(rb("g.d3plus-RadialMatrix-arcs",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).config(eb.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:Ul(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=ql(this._columnConfig,e),this):this._columnConfig}},{key:"columnList",value:function t(e){return arguments.length?(this._columnList=e,this):this._columnList}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=typeof e==="function"?e:nb(e),this):this._innerRadius}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:Ul(e),this):this._row}},{key:"rowList",value:function t(e){return arguments.length?(this._rowList=e,this):this._rowList}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return S}(nV);function $K(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return JK(this.cover(e,n),e,n,t)}function JK(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a=t._root,o={data:r},s=t._x0,u=t._y0,l=t._x1,c=t._y1,f,h,d,g,v,p,y,m;if(!a)return t._root=o,t;while(a.length){if(v=e>=(f=(s+l)/2))s=f;else l=f;if(p=n>=(h=(u+c)/2))u=h;else c=h;if(i=a,!(a=a[y=p<<1|v]))return i[y]=o,t}d=+t._x.call(null,a.data);g=+t._y.call(null,a.data);if(e===d&&n===g)return o.next=a,i?i[y]=o:t._root=o,t;do{i=i?i[y]=new Array(4):t._root=new Array(4);if(v=e>=(f=(s+l)/2))s=f;else l=f;if(p=n>=(h=(u+c)/2))u=h;else c=h}while((y=p<<1|v)===(m=(g>=h)<<1|d>=f));return i[m]=a,i[y]=o,t}function QK(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),u=Infinity,l=Infinity,c=-Infinity,f=-Infinity;for(n=0;n<r;++n){if(isNaN(i=+this._x.call(null,e=t[n]))||isNaN(a=+this._y.call(null,e)))continue;o[n]=i;s[n]=a;if(i<u)u=i;if(i>c)c=i;if(a<l)l=a;if(a>f)f=a}if(u>c||l>f)return this;this.cover(u,l).cover(c,f);for(n=0;n<r;++n){JK(this,o[n],s[n],t[n])}return this}function tY(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n)){i=(n=Math.floor(t))+1;a=(r=Math.floor(e))+1}else{var o=i-n||1,s=this._root,u,l;while(n>t||t>=i||r>e||e>=a){l=(e<r)<<1|t<n;u=new Array(4),u[l]=s,s=u,o*=2;switch(l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}}if(this._root&&this._root.length)this._root=s}this._x0=n;this._y0=r;this._x1=i;this._y1=a;return this}function eY(){var e=[];this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)});return e}function nY(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?undefined:[[this._x0,this._y0],[this._x1,this._y1]]}function rY(t,e,n,r,i){this.node=t;this.x0=e;this.y0=n;this.x1=r;this.y1=i}function iY(t,e,n){var r,i=this._x0,a=this._y0,o,s,u,l,c=this._x1,f=this._y1,h=[],d=this._root,g,v;if(d)h.push(new rY(d,i,a,c,f));if(n==null)n=Infinity;else{i=t-n,a=e-n;c=t+n,f=e+n;n*=n}while(g=h.pop()){if(!(d=g.node)||(o=g.x0)>c||(s=g.y0)>f||(u=g.x1)<i||(l=g.y1)<a)continue;if(d.length){var p=(o+u)/2,y=(s+l)/2;h.push(new rY(d[3],p,y,u,l),new rY(d[2],o,y,p,l),new rY(d[1],p,s,u,y),new rY(d[0],o,s,p,y));if(v=(e>=y)<<1|t>=p){g=h[h.length-1];h[h.length-1]=h[h.length-1-v];h[h.length-1-v]=g}}else{var m=t-+this._x.call(null,d.data),_=e-+this._y.call(null,d.data),b=m*m+_*_;if(b<n){var w=Math.sqrt(n=b);i=t-w,a=e-w;c=t+w,f=e+w;r=d.data}}}return r}function aY(t){if(isNaN(c=+this._x.call(null,t))||isNaN(f=+this._y.call(null,t)))return this;var e,n=this._root,r,i,a,o=this._x0,s=this._y0,u=this._x1,l=this._y1,c,f,h,d,g,v,p,y;if(!n)return this;if(n.length)while(true){if(g=c>=(h=(o+u)/2))o=h;else u=h;if(v=f>=(d=(s+l)/2))s=d;else l=d;if(!(e=n,n=n[p=v<<1|g]))return this;if(!n.length)break;if(e[p+1&3]||e[p+2&3]||e[p+3&3])r=e,y=p}while(n.data!==t){if(!(i=n,n=n.next))return this}if(a=n.next)delete n.next;if(i)return a?i.next=a:delete i.next,this;if(!e)return this._root=a,this;a?e[p]=a:delete e[p];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(r)r[y]=n;else this._root=n}return this}function oY(t){for(var e=0,n=t.length;e<n;++e){this.remove(t[e])}return this}function sY(){return this._root}function uY(){var e=0;this.visit(function(t){if(!t.length)do{++e}while(t=t.next)});return e}function lY(t){var e=[],n,r=this._root,i,a,o,s,u;if(r)e.push(new rY(r,this._x0,this._y0,this._x1,this._y1));while(n=e.pop()){if(!t(r=n.node,a=n.x0,o=n.y0,s=n.x1,u=n.y1)&&r.length){var l=(a+s)/2,c=(o+u)/2;if(i=r[3])e.push(new rY(i,l,c,s,u));if(i=r[2])e.push(new rY(i,a,c,l,u));if(i=r[1])e.push(new rY(i,l,o,s,c));if(i=r[0])e.push(new rY(i,a,o,l,c))}}return this}function cY(t){var e=[],n=[],r;if(this._root)e.push(new rY(this._root,this._x0,this._y0,this._x1,this._y1));while(r=e.pop()){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,u=r.x1,l=r.y1,c=(o+u)/2,f=(s+l)/2;if(a=i[0])e.push(new rY(a,o,s,c,f));if(a=i[1])e.push(new rY(a,c,s,u,f));if(a=i[2])e.push(new rY(a,o,f,c,l));if(a=i[3])e.push(new rY(a,c,f,u,l))}n.push(r)}while(r=n.pop()){t(r.node,r.x0,r.y0,r.x1,r.y1)}return this}function fY(t){return t[0]}function hY(t){return arguments.length?(this._x=t,this):this._x}function dY(t){return t[1]}function gY(t){return arguments.length?(this._y=t,this):this._y}function vY(t,e,n){var r=new pY(e==null?fY:e,n==null?dY:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function pY(t,e,n,r,i,a){this._x=t;this._y=e;this._x0=n;this._y0=r;this._x1=i;this._y1=a;this._root=undefined}function yY(t){var e={data:t.data},n=e;while(t=t.next){n=n.next={data:t.data}}return e}var mY=vY.prototype=pY.prototype;mY.copy=function(){var t=new pY(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=yY(e),t;n=[{source:e,target:t._root=new Array(4)}];while(e=n.pop()){for(var i=0;i<4;++i){if(r=e.source[i]){if(r.length)n.push({source:r,target:e.target[i]=new Array(4)});else e.target[i]=yY(r)}}}return t};mY.add=$K;mY.addAll=QK;mY.cover=tY;mY.data=eY;mY.extent=nY;mY.find=iY;mY.remove=aY;mY.removeAll=oY;mY.root=sY;mY.size=uY;mY.visit=lY;mY.visitAfter=cY;mY.x=hY;mY.y=gY;function _Y(t){return function(){return t}}function bY(t){return(t()-.5)*1e-6}function wY(t){return t.index}function xY(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function kY(f){var a=wY,n=t,h,r=_Y(30),d,o,s,g,v,p=1;if(f==null)f=[];function t(t){return 1/Math.min(s[t.source.index],s[t.target.index])}function e(t){for(var e=0,n=f.length;e<p;++e){for(var r=0,i,a,o,s,u,l,c;r<n;++r){i=f[r],a=i.source,o=i.target;s=o.x+o.vx-a.x-a.vx||bY(v);u=o.y+o.vy-a.y-a.vy||bY(v);l=Math.sqrt(s*s+u*u);l=(l-d[r])/l*t*h[r];s*=l,u*=l;o.vx-=s*(c=g[r]);o.vy-=u*c;a.vx+=s*(c=1-c);a.vy+=u*c}}}function i(){if(!o)return;var t,e=o.length,n=f.length,r=new Map(o.map(function(t,e){return[a(t,e,o),t]})),i;for(t=0,s=new Array(e);t<n;++t){i=f[t],i.index=t;if(_typeof2(i.source)!=="object")i.source=xY(r,i.source);if(_typeof2(i.target)!=="object")i.target=xY(r,i.target);s[i.source.index]=(s[i.source.index]||0)+1;s[i.target.index]=(s[i.target.index]||0)+1}for(t=0,g=new Array(n);t<n;++t){i=f[t],g[t]=s[i.source.index]/(s[i.source.index]+s[i.target.index])}h=new Array(n),u();d=new Array(n),l()}function u(){if(!o)return;for(var t=0,e=f.length;t<e;++t){h[t]=+n(f[t],t,f)}}function l(){if(!o)return;for(var t=0,e=f.length;t<e;++t){d[t]=+r(f[t],t,f)}}e.initialize=function(t,e){o=t;v=e;i()};e.links=function(t){return arguments.length?(f=t,i(),e):f};e.id=function(t){return arguments.length?(a=t,e):a};e.iterations=function(t){return arguments.length?(p=+t,e):p};e.strength=function(t){return arguments.length?(n=typeof t==="function"?t:_Y(+t),u(),e):n};e.distance=function(t){return arguments.length?(r=typeof t==="function"?t:_Y(+t),l(),e):r};return e}var SY=1664525;var CY=1013904223;var EY=4294967296;function AY(){var t=1;return function(){return(t=(SY*t+CY)%EY)/EY}}function MY(t){return t.x}function RY(t){return t.y}var TY=10,OY=Math.PI*(3-Math.sqrt(5));function PY(f){var a,o=1,n=.001,s=1-Math.pow(n,1/300),u=0,l=.6,c=new Map,e=lu(h),r=Vs("tick","end"),i=AY();if(f==null)f=[];function h(){t();r.call("tick",a);if(o<n){e.stop();r.call("end",a)}}function t(t){var e,n=f.length,r;if(t===undefined)t=1;for(var i=0;i<t;++i){o+=(u-o)*s;c.forEach(function(t){t(o)});for(e=0;e<n;++e){r=f[e];if(r.fx==null)r.x+=r.vx*=l;else r.x=r.fx,r.vx=0;if(r.fy==null)r.y+=r.vy*=l;else r.y=r.fy,r.vy=0}}return a}function d(){for(var t=0,e=f.length,n;t<e;++t){n=f[t],n.index=t;if(n.fx!=null)n.x=n.fx;if(n.fy!=null)n.y=n.fy;if(isNaN(n.x)||isNaN(n.y)){var r=TY*Math.sqrt(.5+t),i=t*OY;n.x=r*Math.cos(i);n.y=r*Math.sin(i)}if(isNaN(n.vx)||isNaN(n.vy)){n.vx=n.vy=0}}}function g(t){if(t.initialize)t.initialize(f,i);return t}d();return a={tick:t,restart:function t(){return e.restart(h),a},stop:function t(){return e.stop(),a},nodes:function t(e){return arguments.length?(f=e,d(),c.forEach(g),a):f},alpha:function t(e){return arguments.length?(o=+e,a):o},alphaMin:function t(e){return arguments.length?(n=+e,a):n},alphaDecay:function t(e){return arguments.length?(s=+e,a):+s},alphaTarget:function t(e){return arguments.length?(u=+e,a):u},velocityDecay:function t(e){return arguments.length?(l=1-e,a):1-l},randomSource:function t(e){return arguments.length?(i=e,c.forEach(g),a):i},force:function t(e,n){return arguments.length>1?(n==null?c["delete"](e):c.set(e,g(n)),a):c.get(e)},find:function t(e,n,r){var i=0,a=f.length,o,s,u,l,c;if(r==null)r=Infinity;else r*=r;for(i=0;i<a;++i){l=f[i];o=e-l.x;s=n-l.y;u=o*o+s*s;if(u<r)c=l,r=u}return c},on:function t(e,n){return arguments.length>1?(r.on(e,n),a):r.on(e)}}}function BY(){var i,u,l,c,r=_Y(-30),f,h=1,d=Infinity,g=.81;function e(t){var e,n=i.length,r=vY(i,MY,RY).visitAfter(a);for(c=t,e=0;e<n;++e){u=i[e],r.visit(o)}}function n(){if(!i)return;var t,e=i.length,n;f=new Array(e);for(t=0;t<e;++t){n=i[t],f[n.index]=+r(n,t,i)}}function a(t){var e=0,n,r,i=0,a,o,s;if(t.length){for(a=o=s=0;s<4;++s){if((n=t[s])&&(r=Math.abs(n.value))){e+=n.value,i+=r,a+=r*n.x,o+=r*n.y}}t.x=a/i;t.y=o/i}else{n=t;n.x=n.data.x;n.y=n.data.y;do{e+=f[n.data.index]}while(n=n.next)}t.value=e}function o(t,e,n,r){if(!t.value)return true;var i=t.x-u.x,a=t.y-u.y,o=r-e,s=i*i+a*a;if(o*o/g<s){if(s<d){if(i===0)i=bY(l),s+=i*i;if(a===0)a=bY(l),s+=a*a;if(s<h)s=Math.sqrt(h*s);u.vx+=i*t.value*c/s;u.vy+=a*t.value*c/s}return true}else if(t.length||s>=d)return;if(t.data!==u||t.next){if(i===0)i=bY(l),s+=i*i;if(a===0)a=bY(l),s+=a*a;if(s<h)s=Math.sqrt(h*s)}do{if(t.data!==u){o=f[t.data.index]*c/s;u.vx+=i*o;u.vy+=a*o}}while(t=t.next)}e.initialize=function(t,e){i=t;l=e;n()};e.strength=function(t){return arguments.length?(r=typeof t==="function"?t:_Y(+t),n(),e):r};e.distanceMin=function(t){return arguments.length?(h=t*t,e):Math.sqrt(h)};e.distanceMax=function(t){return arguments.length?(d=t*t,e):Math.sqrt(d)};e.theta=function(t){return arguments.length?(g=t*t,e):Math.sqrt(g)};return e}function DY(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){DY=function t(e){return typeof e}}else{DY=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return DY(t)}function NY(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function zY(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function FY(t,e,n){if(e)zY(t.prototype,e);if(n)zY(t,n);return t}function jY(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){jY=Reflect.get}else{jY=function t(e,n,r){var i=IY(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return jY(t,e,n||t)}function IY(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=qY(t);if(t===null)break}return t}function LY(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)HY(t,e)}function HY(t,e){HY=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return HY(t,e)}function UY(i){var a=WY();return function t(){var e=qY(i),n;if(a){var r=qY(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return GY(this,n)}}function GY(t,e){if(e&&(DY(e)==="object"||typeof e==="function")){return e}return VY(t)}function VY(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function WY(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function qY(t){qY=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return qY(t)}function KY(t,e){return"".concat(this._id(t,e)||this._nodeGroupBy[Ab([this._drawDepth,this._nodeGroupBy.length-1])](t,e))}var YY=function(t){LY(Y,t);var e=UY(Y);function Y(){var f;NY(this,Y);f=e.call(this);f._links=[];f._linkSize=nb(1);f._linkSizeMin=1;f._linkSizeScale="sqrt";f._noDataMessage=false;f._nodeGroupBy=[Ul("id")];f._nodes=[];f._on["click.shape"]=function(t,e,n,r){f._tooltipClass.data([]).render();if(f._hover&&f._drawDepth>=f._groupBy.length-1){var i=KY.bind(VY(f))(t,e);if(f._focus&&f._focus===i){f.active(false);f._on.mouseenter.bind(VY(f))(t,e,n,r);f._focus=undefined;f._zoomToBounds(null)}else{f.hover(false);var a=f._linkLookup[i],o=f._nodeLookup[i];var s=[i];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.active(function(t,e){if(t.source&&t.target)return t.source.id===i||t.target.id===i;else return s.includes(KY.bind(VY(f))(t,e))});f._focus=i;var c=zA(f._container.node());u=u.map(function(t){return t*c.k+c.x});l=l.map(function(t){return t*c.k+c.y});f._zoomToBounds([[u[0],l[0]],[u[1],l[1]]])}}};f._on["click.legend"]=function(t,e,n,r){var i=f._id(t);var a=f._ids(t);a=a[a.length-1];if(f._hover&&f._drawDepth>=f._groupBy.length-1){if(f._focus&&f._focus===i){f.active(false);f._focus=undefined;f._zoomToBounds(null)}else{f.hover(false);var o=i.map(function(t){return f._nodeLookup[t]});var s=["".concat(a)];var u=[o[0].x-o[0].r,o[0].x+o[0].r],l=[o[0].y-o[0].r,o[0].y+o[0].r];o.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.active(function(t,e){if(t.source&&t.target)return s.includes(t.source.id)&&s.includes(t.target.id);else{var n=f._ids(t,e);return s.includes("".concat(n[n.length-1]))}});f._focus=i;var c=zA(f._container.node());u=u.map(function(t){return t*c.k+c.x});l=l.map(function(t){return t*c.k+c.y});f._zoomToBounds([[u[0],l[0]],[u[1],l[1]]])}f._on.mouseenter.bind(VY(f))(t,e,n,r);f._on["mousemove.legend"].bind(VY(f))(t,e,n,r)}};f._on.mouseenter=function(){};f._on["mouseleave.shape"]=function(){f.hover(false)};var c=f._on["mousemove.shape"];f._on["mousemove.shape"]=function(t,e,n,r){c(t,e,n,r);var i=KY.bind(VY(f))(t,e),a=f._linkLookup[i]||[],o=f._nodeLookup[i];var s=[i];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.hover(function(t,e){if(t.source&&t.target)return t.source.id===i||t.target.id===i;else return s.includes("".concat(f._ids(t,e)[f._drawDepth]))})};f._sizeMin=5;f._sizeScale="sqrt";f._shape=nb("Circle");f._shapeConfig=ql(f._shapeConfig,{ariaLabel:function t(e,n){var r=f._size?", ".concat(f._size(e,n)):"";return"".concat(f._drawLabel(e,n)).concat(r,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee"}});f._x=Ul("x");f._y=Ul("y");f._zoom=true;return f}FY(Y,[{key:"_draw",value:function t(e){var i=this;jY(qY(Y.prototype),"_draw",this).call(this,e);var n=this._duration,r=this._height-this._margin.top-this._margin.bottom,a="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),o=this._width-this._margin.left-this._margin.right;var s=this._filteredData.reduce(function(t,e,n){t[i._id(e,n)]=e;return t},{});var u=this._nodes.reduce(function(t,e,n){t[KY.bind(i)(e,n)]=e;return t},{});u=Array.from(new Set(Object.keys(s).concat(Object.keys(u)))).map(function(t,e){var n=s[t],r=u[t];if(r===undefined)return false;return{__d3plus__:true,data:n||r,i:e,id:t,fx:n!==undefined&&!isNaN(i._x(n))?i._x(n):i._x(r),fy:n!==undefined&&!isNaN(i._y(n))?i._y(n):i._y(r),node:r,r:i._size?n!==undefined&&i._size(n)!==undefined?i._size(n):i._size(r):i._sizeMin,shape:n!==undefined&&i._shape(n)!==undefined?i._shape(n):i._shape(r)}}).filter(function(t){return t});var l=this._nodeLookup=u.reduce(function(t,e){t[e.id]=e;return t},{});var c=u.map(function(t){return t.node});var f=this._links.map(function(t){var e=DY(t.source);return{size:i._linkSize(t),source:e==="number"?u[c.indexOf(i._nodes[t.source])]:e==="string"?l[t.source]:l[t.source.id],target:e==="number"?u[c.indexOf(i._nodes[t.target])]:e==="string"?l[t.target]:l[t.target.id]}});this._linkLookup=f.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var h=u.some(function(t){return t.fx===undefined||t.fy===undefined});if(h){var d=b2().domain(gb(f,function(t){return t.size})).range([.1,.5]);var g=PY().force("link",kY(f).id(function(t){return t.id}).distance(1).strength(function(t){return d(t.size)}).iterations(4)).force("charge",BY().strength(-1)).stop();var v=100;var p=.001;var y=1-Math.pow(p,1/v);g.velocityDecay(0);g.alphaMin(p);g.alphaDecay(y);g.alphaDecay(0);g.nodes(u);g.tick(v).stop();var m=u.map(function(t){return[t.vx,t.vy]});var _=0,b=0,w=0;if(m.length===2){_=100}else if(m.length>2){var x=bk(m);var k=eS(x,{verbose:true});_=k.angle;b=k.cx;w=k.cy}u.forEach(function(t){var e=Ik([t.vx,t.vy],-1*(Math.PI/180*_),[b,w]);t.fx=e[0];t.fy=e[1]})}var S=gb(u.map(function(t){return t.fx})),C=gb(u.map(function(t){return t.fy}));var E=b2().domain(S).range([0,o]),A=b2().domain(C).range([0,r]);var M=(S[1]-S[0])/(C[1]-C[0])||1,R=o/r;if(M>R){var T=r*R/M;A.range([(r-T)/2,r-(r-T)/2])}else{var O=o*M/R;E.range([(o-O)/2,o-(o-O)/2])}u.forEach(function(t){t.x=E(t.fx);t.y=A(t.fy)});var P=gb(u.map(function(t){return t.r}));var B=this._sizeMax||Eb([1,Ab(Db(u.map(function(e){return u.map(function(t){return e===t?null:N9([e.x,e.y],[t.x,t.y])})})))/2]);var D=ww["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(P).range([P[0]===P[1]?B:Ab([B/2,this._sizeMin]),B]),N=E.domain(),z=A.domain();var F=N[1]-N[0],j=z[1]-z[0];u.forEach(function(t){var e=D(t.r);if(N[0]>E.invert(t.x-e))N[0]=E.invert(t.x-e);if(N[1]<E.invert(t.x+e))N[1]=E.invert(t.x+e);if(z[0]>A.invert(t.y-e))z[0]=A.invert(t.y-e);if(z[1]<A.invert(t.y+e))z[1]=A.invert(t.y+e)});var I=N[1]-N[0],L=z[1]-z[0];B*=Ab([F/I,j/L]);D.range([P[0]===P[1]?B:Ab([B/2,this._sizeMin]),B]);E.domain(N);A.domain(z);var H=(M>R?o:r)/2;u.forEach(function(t){t.x=E(t.fx);t.fx=t.x;t.y=A(t.fy);t.fy=t.y;t.r=D(t.r)||H;t.width=t.r*2;t.height=t.r*2});this._container=this._select.selectAll("svg.d3plus-network").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-network").attr("opacity",0).attr("width",o).attr("height",r).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color","transparent").merge(this._container);this._container.transition().duration(n).attr("opacity",1).attr("width",o).attr("height",r).attr("x",this._margin.left).attr("y",this._margin.top);var U=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);U.enter().append("rect").attr("class","d3plus-network-hitArea").merge(U).attr("width",o).attr("height",r).attr("fill","transparent").on("click",function(){if(i._focus){i.active(false);i._focus=undefined;i._zoomToBounds(null)}});this._zoomGroup=this._container.selectAll("g.d3plus-network-zoomGroup").data([0]);var G=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup);var V=gb(f,function(t){return t.size});if(V[0]!==V[1]){var W=ww["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(V).range([this._linkSizeMin,D.range()[0]]);f.forEach(function(t){t.size=W(t.size)})}var q=eb.bind(this)(this._shapeConfig,"edge","Path");delete q.on;this._shapes.push((new sC).config(q).strokeWidth(function(t){return t.size}).activeStyle({"stroke-width":function t(e){return e.size}}).d(function(t){return"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(f).select(rb("g.d3plus-network-links",{parent:G,duration:n,enter:{transform:a},update:{transform:a}}).node()).render());var K={label:function t(e){return u.length<=i._dataCutoff||i._hover&&i._hover(e)||i._active&&i._active(e)?i._drawLabel(e.data||e.node,e.i):false},select:rb("g.d3plus-network-nodes",{parent:G,duration:n,enter:{transform:a},update:{transform:a}}).node()};Lb().key(function(t){return t.shape}).entries(u).forEach(function(t){i._shapes.push((new uC[t.key]).config(eb.bind(i)(i._shapeConfig,"shape",t.key)).config(K).config(K[t.key]||{}).data(t.values).render())});return this}},{key:"hover",value:function t(e){this._hover=e;if(this._nodes.length<this._dataCutoff){this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e)}return this}},{key:"links",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"links");return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:nb(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return Ul(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Ul(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=Ul(e);if(!this._aggs[e])this._aggs[e]=Pb}return this}else return this._x}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=Ul(e);if(!this._aggs[e])this._aggs[e]=Pb}return this}else return this._y}}]);return Y}(nV);function XY(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){XY=function t(e){return typeof e}}else{XY=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return XY(t)}function ZY(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function $Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function JY(t,e,n){if(e)$Y(t.prototype,e);if(n)$Y(t,n);return t}function QY(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){QY=Reflect.get}else{QY=function t(e,n,r){var i=tX(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return QY(t,e,n||t)}function tX(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=sX(t);if(t===null)break}return t}function eX(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)nX(t,e)}function nX(t,e){nX=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return nX(t,e)}function rX(i){var a=oX();return function t(){var e=sX(i),n;if(a){var r=sX(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return iX(this,n)}}function iX(t,e){if(e&&(XY(e)==="object"||typeof e==="function")){return e}return aX(t)}function aX(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function oX(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function sX(t){sX=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return sX(t)}var uX=function(t){eX(j,t);var e=rX(j);function j(){var c;ZY(this,j);c=e.call(this);c._links=[];c._linkSize=nb(1);c._linkSizeMin=1;c._linkSizeScale="sqrt";c._noDataMessage=false;c._nodes=[];c._on.mouseenter=function(){};c._on["mouseleave.shape"]=function(){c.hover(false)};var f=c._on["mousemove.shape"];c._on["mousemove.shape"]=function(t,e,n,r){f(t,e,n,r);if(c._focus&&c._focus===t.id){c.hover(false);c._on.mouseenter.bind(aX(c))(t,e,n,r);c._focus=undefined}else{var i=c._nodeGroupBy&&c._nodeGroupBy[c._drawDepth](t,e)?c._nodeGroupBy[c._drawDepth](t,e):c._id(t,e),a=c._linkLookup[i],o=c._nodeLookup[i];var s=[o.id];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});c.hover(function(t,e){if(t.source&&t.target)return t.source.id===o.id||t.target.id===o.id;else return s.includes(c._ids(t,e)[c._drawDepth])})}};c._on["click.shape"]=function(t){c._center=t.id;c._margin={bottom:0,left:0,right:0,top:0};c._padding={bottom:0,left:0,right:0,top:0};c._draw()};c._sizeMin=5;c._sizeScale="sqrt";c._shape=nb("Circle");c._shapeConfig=ql(c._shapeConfig,{ariaLabel:function t(e,n){var r=c._size?", ".concat(c._size(e,n)):"";return"".concat(c._drawLabel(e,n)).concat(r,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee",strokeWidth:1}});return c}JY(j,[{key:"_draw",value:function t(e){var l=this;QY(sX(j.prototype),"_draw",this).call(this,e);var i=this._filteredData.reduce(function(t,e,n){t[l._id(e,n)]=e;return t},{});var c=this._nodes;if(!this._nodes.length&&this._links.length){var n=Array.from(new Set(this._links.reduce(function(t,e){return t.concat([e.source,e.target])},[])));c=n.map(function(t){return XY(t)==="object"?t:{id:t}})}c=c.reduce(function(t,e,n){t[l._nodeGroupBy?l._nodeGroupBy[l._drawDepth](e,n):l._id(e,n)]=e;return t},{});c=Array.from(new Set(Object.keys(i).concat(Object.keys(c)))).map(function(t,e){var n=i[t],r=c[t];if(r===undefined)return false;return{__d3plus__:true,data:n||r,i:e,id:t,node:r,shape:n!==undefined&&l._shape(n)!==undefined?l._shape(n):l._shape(r)}}).filter(function(t){return t});var r=this._nodeLookup=c.reduce(function(t,e){t[e.id]=e;return t},{});var a=this._links.map(function(n){var t=["source","target"];var e=t.reduce(function(t,e){t[e]=typeof n[e]==="number"?c[n[e]]:r[n[e].id||n[e]];return t},{});e.size=l._linkSize(n);return e});var o=a.reduce(function(t,e){if(!t[e.source.id]){t[e.source.id]=[]}t[e.source.id].push(e);if(!t[e.target.id]){t[e.target.id]=[]}t[e.target.id].push(e);return t},{});var s=this._duration,f=this._height-this._margin.top-this._margin.bottom,u="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),h=this._width-this._margin.left-this._margin.right;var d=[],g=Ab([f,h])/2,v=g/3;var p=v,y=v*2;var m=r[this._center];m.x=h/2;m.y=f/2;m.r=this._sizeMin?Eb([this._sizeMin,p*.65]):this._sizeMax?Ab([this._sizeMax,p*.65]):p*.65;var _=[m],b=[];o[this._center].forEach(function(t){var e=t.source.id===l._center?t.target:t.source;e.edges=o[e.id].filter(function(t){return t.source.id!==l._center||t.target.id!==l._center});e.edge=t;_.push(e);b.push(e)});b.sort(function(t,e){return t.edges.length-e.edges.length});var w=[];var x=0;b.forEach(function(t){var i=t.id;t.edges=t.edges.filter(function(t){return!_.includes(t.source)&&t.target.id===i||!_.includes(t.target)&&t.source.id===i});x+=t.edges.length||1;t.edges.forEach(function(t){var e=t.source,n=t.target;var r=n.id===i?e:n;_.push(r)})});var k=Math.PI*2;var S=0;b.forEach(function(a,t){var o=a.edges.length||1;var e=k/x*o;if(t===0){S-=e/2}var s=S+e/2-k/4;a.radians=s;a.x=h/2+p*Math.cos(s);a.y=f/2+p*Math.sin(s);S+=e;a.edges.forEach(function(t,e){var n=t.source.id===a.id?t.target:t.source;var r=k/x;var i=s-r*o/2+r/2+r*e;n.radians=i;n.x=h/2+y*Math.cos(i);n.y=f/2+y*Math.sin(i);w.push(n)})});var C=v/2;var E=v/4;var A=C/2-4;if(C/2-4<8){A=Ab([C/2,8])}var M=E/2-4;if(E/2-4<4){M=Ab([E/2,4])}if(M>v/10){M=v/10}if(M>A&&M>10){M=A*.75}if(A>M*1.5){A=M*1.5}A=Math.floor(A);M=Math.floor(M);var R;if(this._size){var T=gb(i,function(t){return t.size});if(T[0]===T[1]){T[0]=0}R=b2().domain(T).rangeRound([3,Ab([A,M])]);var O=m.size;m.r=R(O)}else{R=b2().domain([1,2]).rangeRound([A,M])}w.forEach(function(t){t.ring=2;var e=l._size?t.size:2;t.r=l._sizeMin?Eb([l._sizeMin,R(e)]):l._sizeMax?Ab([l._sizeMax,R(e)]):R(e)});b.forEach(function(t){t.ring=1;var e=l._size?t.size:1;t.r=l._sizeMin?Eb([l._sizeMin,R(e)]):l._sizeMax?Ab([l._sizeMax,R(e)]):R(e)});c=[m].concat(b).concat(w);b.forEach(function(u){var t=["source","target"];var n=u.edge;t.forEach(function(e){n[e]=c.find(function(t){return t.id===n[e].id})});d.push(n);o[u.id].forEach(function(r){var e=r.source.id===u.id?r.target:r.source;if(e.id!==m.id){var i=w.find(function(t){return t.id===e.id});if(!i){i=b.find(function(t){return t.id===e.id})}if(i){r.spline=true;var a=h/2;var o=f/2;var s=p+(y-p)*.5;var t=["source","target"];t.forEach(function(e,t){r["".concat(e,"X")]=r[e].x+Math.cos(r[e].ring===2?r[e].radians+Math.PI:r[e].radians)*r[e].r;r["".concat(e,"Y")]=r[e].y+Math.sin(r[e].ring===2?r[e].radians+Math.PI:r[e].radians)*r[e].r;r["".concat(e,"BisectX")]=a+s*Math.cos(r[e].radians);r["".concat(e,"BisectY")]=o+s*Math.sin(r[e].radians);r[e]=c.find(function(t){return t.id===r[e].id});if(r[e].edges===undefined)r[e].edges={};var n=t===0?r.target.id:r.source.id;if(r[e].id===u.id){r[e].edges[n]={angle:u.radians+Math.PI,radius:v/2}}else{r[e].edges[n]={angle:i.radians,radius:v/2}}});d.push(r)}}})});c.forEach(function(t){if(t.id!==l._center){var e=l._shapeConfig.labelConfig.fontSize&&l._shapeConfig.labelConfig.fontSize(t)||11;var n=e*1.4;var r=n*2;var i=5;var a=v-t.r;var o=t.radians*(180/Math.PI);var s=t.r+i;var u="start";if(o<-90||o>90){s=-t.r-a-i;u="end";o+=180}t.labelBounds={x:s,y:-n/2,width:a,height:r};t.rotate=o;t.textAnchor=u}else{t.labelBounds={x:-p/2,y:-p/2,width:p,height:p}}});this._linkLookup=a.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var P=gb(a,function(t){return t.size});if(P[0]!==P[1]){var B=Ab(c,function(t){return t.r});var D=ww["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(P).range([this._linkSizeMin,B]);a.forEach(function(t){t.size=D(t.size)})}var N=eb.bind(this)(this._shapeConfig,"edge","Path");delete N.on;this._shapes.push((new sC).config(N).strokeWidth(function(t){return t.size}).id(function(t){return"".concat(t.source.id,"_").concat(t.target.id)}).d(function(t){return t.spline?"M".concat(t.sourceX,",").concat(t.sourceY,"C").concat(t.sourceBisectX,",").concat(t.sourceBisectY," ").concat(t.targetBisectX,",").concat(t.targetBisectY," ").concat(t.targetX,",").concat(t.targetY):"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(d).select(rb("g.d3plus-rings-links",{parent:this._select,duration:s,enter:{transform:u},update:{transform:u}}).node()).render());var z=this;var F={label:function t(e){return c.length<=l._dataCutoff||l._hover&&l._hover(e)||l._active&&l._active(e)?l._drawLabel(e.data||e.node,e.i):false},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:function t(e){return e.id===l._center?eb.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.fontColor(e):Aw(eb.bind(z)(z._shapeConfig,"shape",e.key).fill(e))},fontResize:function t(e){return e.id===l._center},padding:0,textAnchor:function t(e){return r[e.id].textAnchor||eb.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.textAnchor},verticalAlign:function t(e){return e.id===l._center?"middle":"top"}},rotate:function t(e){return r[e.id].rotate||0},select:rb("g.d3plus-rings-nodes",{parent:this._select,duration:s,enter:{transform:u},update:{transform:u}}).node()};Lb().key(function(t){return t.shape}).entries(c).forEach(function(t){l._shapes.push((new uC[t.key]).config(eb.bind(l)(l._shapeConfig,"shape",t.key)).config(F).data(t.values).render())});return this}},{key:"center",value:function t(e){return arguments.length?(this._center=e,this):this._center}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"links");return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:nb(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return Ul(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Ul(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}}]);return j}(nV);function lX(t){return t.target.depth}function cX(t){return t.depth}function fX(t,e){return e-1-t.height}function hX(t,e){return t.sourceLinks.length?t.depth:e-1}function dX(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Ab(t.sourceLinks,lX)-1:0}function gX(t){return function(){return t}}function vX(t,e){return yX(t.source,e.source)||t.index-e.index}function pX(t,e){return yX(t.target,e.target)||t.index-e.index}function yX(t,e){return t.y0-e.y0}function mX(t){return t.value}function _X(t){return t.index}function bX(t){return t.nodes}function wX(t){return t.links}function xX(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function kX(t){var e=t.nodes;var n=_createForOfIteratorHelper2(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;var a=i.y0;var o=a;var s=_createForOfIteratorHelper2(i.sourceLinks),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;l.y0=a+l.width/2;a+=l.width}}catch(t){s.e(t)}finally{s.f()}var c=_createForOfIteratorHelper2(i.targetLinks),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;h.y1=o+h.width/2;o+=h.width}}catch(t){c.e(t)}finally{c.f()}}}catch(t){n.e(t)}finally{n.f()}}function SX(){var h=0,g=0,d=1,v=1;var p=24;var a=8,y;var w=_X;var m=hX;var _;var x;var e=bX;var n=wX;var o=6;function r(){var t={nodes:e.apply(null,arguments),links:n.apply(null,arguments)};i(t);s(t);u(t);l(t);b(t);kX(t);return t}r.update=function(t){kX(t);return t};r.nodeId=function(t){return arguments.length?(w=typeof t==="function"?t:gX(t),r):w};r.nodeAlign=function(t){return arguments.length?(m=typeof t==="function"?t:gX(t),r):m};r.nodeSort=function(t){return arguments.length?(_=t,r):_};r.nodeWidth=function(t){return arguments.length?(p=+t,r):p};r.nodePadding=function(t){return arguments.length?(a=y=+t,r):a};r.nodes=function(t){return arguments.length?(e=typeof t==="function"?t:gX(t),r):e};r.links=function(t){return arguments.length?(n=typeof t==="function"?t:gX(t),r):n};r.linkSort=function(t){return arguments.length?(x=t,r):x};r.size=function(t){return arguments.length?(h=g=0,d=+t[0],v=+t[1],r):[d-h,v-g]};r.extent=function(t){return arguments.length?(h=+t[0][0],d=+t[1][0],g=+t[0][1],v=+t[1][1],r):[[h,g],[d,v]]};r.iterations=function(t){return arguments.length?(o=+t,r):o};function i(t){var n=t.nodes,e=t.links;var r=_createForOfIteratorHelper2(n.entries()),i;try{for(r.s();!(i=r.n()).done;){var a=_slicedToArray2(i.value,2),o=a[0],s=a[1];s.index=o;s.sourceLinks=[];s.targetLinks=[]}}catch(t){r.e(t)}finally{r.f()}var u=new Map(n.map(function(t,e){return[w(t,e,n),t]}));var l=_createForOfIteratorHelper2(e.entries()),c;try{for(l.s();!(c=l.n()).done;){var f=_slicedToArray2(c.value,2),h=f[0],d=f[1];d.index=h;var g=d.source,v=d.target;if(_typeof2(g)!=="object")g=d.source=xX(u,g);if(_typeof2(v)!=="object")v=d.target=xX(u,v);g.sourceLinks.push(d);v.targetLinks.push(d)}}catch(t){l.e(t)}finally{l.f()}if(x!=null){var p=_createForOfIteratorHelper2(n),y;try{for(p.s();!(y=p.n()).done;){var m=y.value,_=m.sourceLinks,b=m.targetLinks;_.sort(x);b.sort(x)}}catch(t){p.e(t)}finally{p.f()}}}function s(t){var e=t.nodes;var n=_createForOfIteratorHelper2(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.value=i.fixedValue===undefined?Math.max(zb(i.sourceLinks,mX),zb(i.targetLinks,mX)):i.fixedValue}}catch(t){n.e(t)}finally{n.f()}}function u(t){var e=t.nodes;var n=e.length;var r=new Set(e);var i=new Set;var a=0;while(r.size){var o=_createForOfIteratorHelper2(r),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.depth=a;var l=_createForOfIteratorHelper2(u.sourceLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value.target;i.add(f)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}if(++a>n)throw new Error("circular link");r=i;i=new Set}}function l(t){var e=t.nodes;var n=e.length;var r=new Set(e);var i=new Set;var a=0;while(r.size){var o=_createForOfIteratorHelper2(r),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.height=a;var l=_createForOfIteratorHelper2(u.targetLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value.source;i.add(f)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}if(++a>n)throw new Error("circular link");r=i;i=new Set}}function c(t){var e=t.nodes;var n=Eb(e,function(t){return t.depth})+1;var r=(d-h-p)/(n-1);var i=new Array(n);var a=_createForOfIteratorHelper2(e),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;var u=Math.max(0,Math.min(n-1,Math.floor(m.call(null,s,n))));s.layer=u;s.x0=h+u*r;s.x1=s.x0+p;if(i[u])i[u].push(s);else i[u]=[s]}}catch(t){a.e(t)}finally{a.f()}if(_){var l=_createForOfIteratorHelper2(i),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;f.sort(_)}}catch(t){l.e(t)}finally{l.f()}}return i}function f(t){var e=Ab(t,function(t){return(v-g-(t.length-1)*y)/zb(t,mX)});var n=_createForOfIteratorHelper2(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;var a=g;var o=_createForOfIteratorHelper2(i),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.y0=a;u.y1=a+u.value*e;a=u.y1+y;var l=_createForOfIteratorHelper2(u.sourceLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;f.width=f.value*e}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}a=(v-a+y)/(i.length+1);for(var h=0;h<i.length;++h){var d=i[h];d.y0+=a*(h+1);d.y1+=a*(h+1)}R(i)}}catch(t){n.e(t)}finally{n.f()}}function b(t){var e=c(t);y=Math.min(a,(v-g)/(Eb(e,function(t){return t.length})-1));f(e);for(var n=0;n<o;++n){var r=Math.pow(.99,n);var i=Math.max(1-r,(n+1)/o);S(e,r,i);k(e,r,i)}}function k(t,e,n){for(var r=1,i=t.length;r<i;++r){var a=t[r];var o=_createForOfIteratorHelper2(a),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=0;var c=0;var f=_createForOfIteratorHelper2(u.targetLinks),h;try{for(f.s();!(h=f.n()).done;){var d=h.value,g=d.source,v=d.value;var p=v*(u.layer-g.layer);l+=T(g,u)*p;c+=p}}catch(t){f.e(t)}finally{f.f()}if(!(c>0))continue;var y=(l/c-u.y0)*e;u.y0+=y;u.y1+=y;M(u)}}catch(t){o.e(t)}finally{o.f()}if(_===undefined)a.sort(yX);C(a,n)}}function S(t,e,n){for(var r=t.length,i=r-2;i>=0;--i){var a=t[i];var o=_createForOfIteratorHelper2(a),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=0;var c=0;var f=_createForOfIteratorHelper2(u.sourceLinks),h;try{for(f.s();!(h=f.n()).done;){var d=h.value,g=d.target,v=d.value;var p=v*(g.layer-u.layer);l+=O(u,g)*p;c+=p}}catch(t){f.e(t)}finally{f.f()}if(!(c>0))continue;var y=(l/c-u.y0)*e;u.y0+=y;u.y1+=y;M(u)}}catch(t){o.e(t)}finally{o.f()}if(_===undefined)a.sort(yX);C(a,n)}}function C(t,e){var n=t.length>>1;var r=t[n];A(t,r.y0-y,n-1,e);E(t,r.y1+y,n+1,e);A(t,v,t.length-1,e);E(t,g,0,e)}function E(t,e,n,r){for(;n<t.length;++n){var i=t[n];var a=(e-i.y0)*r;if(a>1e-6)i.y0+=a,i.y1+=a;e=i.y1+y}}function A(t,e,n,r){for(;n>=0;--n){var i=t[n];var a=(i.y1-e)*r;if(a>1e-6)i.y0-=a,i.y1-=a;e=i.y0-y}}function M(t){var e=t.sourceLinks,n=t.targetLinks;if(x===undefined){var r=_createForOfIteratorHelper2(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value.source.sourceLinks;a.sort(pX)}}catch(t){r.e(t)}finally{r.f()}var o=_createForOfIteratorHelper2(e),s;try{for(o.s();!(s=o.n()).done;){var u=s.value.target.targetLinks;u.sort(vX)}}catch(t){o.e(t)}finally{o.f()}}}function R(t){if(x===undefined){var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value,i=r.sourceLinks,a=r.targetLinks;i.sort(pX);a.sort(vX)}}catch(t){e.e(t)}finally{e.f()}}}function T(t,e){var n=t.y0-(t.sourceLinks.length-1)*y/2;var r=_createForOfIteratorHelper2(t.sourceLinks),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.target,s=a.width;if(o===e)break;n+=s+y}}catch(t){r.e(t)}finally{r.f()}var u=_createForOfIteratorHelper2(e.targetLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.source,h=c.width;if(f===t)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}function O(t,e){var n=e.y0-(e.targetLinks.length-1)*y/2;var r=_createForOfIteratorHelper2(e.targetLinks),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.source,s=a.width;if(o===t)break;n+=s+y}}catch(t){r.e(t)}finally{r.f()}var u=_createForOfIteratorHelper2(t.sourceLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.target,h=c.width;if(f===e)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}return r}var CX=Math.PI,EX=2*CX,AX=1e-6,MX=EX-AX;function RX(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function TX(){return new RX}RX.prototype=TX.prototype={constructor:RX,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,r,i){this._+="Q"+ +e+","+ +n+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(e,n,r,i,a,o){this._+="C"+ +e+","+ +n+","+ +r+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function t(e,n,r,i,a){e=+e,n=+n,r=+r,i=+i,a=+a;var o=this._x1,s=this._y1,u=r-e,l=i-n,c=o-e,f=s-n,h=c*c+f*f;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=e)+","+(this._y1=n)}else if(!(h>AX));else if(!(Math.abs(f*u-l*c)>AX)||!a){this._+="L"+(this._x1=e)+","+(this._y1=n)}else{var d=r-o,g=i-s,v=u*u+l*l,p=d*d+g*g,y=Math.sqrt(v),m=Math.sqrt(h),_=a*Math.tan((CX-Math.acos((v+h-p)/(2*y*m)))/2),b=_/m,w=_/y;if(Math.abs(b-1)>AX){this._+="L"+(e+b*c)+","+(n+b*f)}this._+="A"+a+","+a+",0,0,"+ +(f*d>c*g)+","+(this._x1=e+w*u)+","+(this._y1=n+w*l)}},arc:function t(e,n,r,i,a,o){e=+e,n=+n,r=+r,o=!!o;var s=r*Math.cos(i),u=r*Math.sin(i),l=e+s,c=n+u,f=1^o,h=o?i-a:a-i;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>AX||Math.abs(this._y1-c)>AX){this._+="L"+l+","+c}if(!r)return;if(h<0)h=h%EX+EX;if(h>MX){this._+="A"+r+","+r+",0,1,"+f+","+(e-s)+","+(n-u)+"A"+r+","+r+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c)}else if(h>AX){this._+="A"+r+","+r+",0,"+ +(h>=CX)+","+f+","+(this._x1=e+r*Math.cos(a))+","+(this._y1=n+r*Math.sin(a))}},rect:function t(e,n,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};function OX(e){return function t(){return e}}function PX(t){return t[0]}function BX(t){return t[1]}var DX=Array.prototype.slice;function NX(t){return t.source}function zX(t){return t.target}function FX(i){var a=NX,o=zX,s=PX,u=BX,l=null;function e(){var t,e=DX.call(arguments),n=a.apply(this,e),r=o.apply(this,e);if(!l)l=t=TX();i(l,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=r,e)),+u.apply(this,e));if(t)return l=null,t+""||null}e.source=function(t){return arguments.length?(a=t,e):a};e.target=function(t){return arguments.length?(o=t,e):o};e.x=function(t){return arguments.length?(s=typeof t==="function"?t:OX(+t),e):s};e.y=function(t){return arguments.length?(u=typeof t==="function"?t:OX(+t),e):u};e.context=function(t){return arguments.length?(l=t==null?null:t,e):l};return e}function jX(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function IX(){return FX(jX)}function LX(t){return[t.source.x1,t.y0]}function HX(t){return[t.target.x0,t.y1]}function UX(){return IX().source(LX).target(HX)}function GX(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){GX=function t(e){return typeof e}}else{GX=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return GX(t)}function VX(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function WX(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function qX(t,e,n){if(e)WX(t.prototype,e);if(n)WX(t,n);return t}function KX(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){KX=Reflect.get}else{KX=function t(e,n,r){var i=YX(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return KX(t,e,n||t)}function YX(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=eZ(t);if(t===null)break}return t}function XX(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)ZX(t,e)}function ZX(t,e){ZX=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return ZX(t,e)}function $X(i){var a=tZ();return function t(){var e=eZ(i),n;if(a){var r=eZ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return JX(this,n)}}function JX(t,e){if(e&&(GX(e)==="object"||typeof e==="function")){return e}return QX(t)}function QX(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function tZ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function eZ(t){eZ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return eZ(t)}var nZ={center:dX,justify:hX,left:cX,right:fX};var rZ=function(t){XX(f,t);var e=$X(f);function f(){var l;VX(this,f);l=e.call(this);l._nodeId=Ul("id");l._links=Ul("links");l._linksSource="source";l._linksTarget="target";l._noDataMessage=false;l._nodes=Ul("nodes");l._nodeAlign=nZ.justify;l._nodePadding=8;l._nodeWidth=30;l._on.mouseenter=function(){};l._on["mouseleave.shape"]=function(){l.hover(false)};var c=l._on["mousemove.shape"];l._on["mousemove.shape"]=function(t,e,n,r){c(t,e,n,r);if(l._focus&&l._focus===t.id){l.hover(false);l._on.mouseenter.bind(QX(l))(t,e,n,r);l._focus=undefined}else{var i=l._nodeId(t,e),a=l._nodeLookup[i],o=Object.keys(l._nodeLookup).reduce(function(t,e){t[l._nodeLookup[e]]=!isNaN(e)?parseInt(e,10):e;return t},{});var s=l._linkLookup[a];var u=[i];s.forEach(function(t){u.push(o[t])});l.hover(function(t,e){if(t.source&&t.target){return t.source.id===i||t.target.id===i}else{return u.includes(l._nodeId(t,e))}})}};l._path=UX();l._sankey=SX();l._shape=nb("Rect");l._shapeConfig=ql(l._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},label:false,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},Rect:{}});l._value=nb(1);return l}qX(f,[{key:"_draw",value:function t(e){var i=this;KX(eZ(f.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,r=this._width-this._margin.left-this._margin.right;var a=Array.isArray(this._nodes)?this._nodes:this._links.reduce(function(t,e){if(!t.includes(e[i._linksSource]))t.push(e[i._linksSource]);if(!t.includes(e[i._linksTarget]))t.push(e[i._linksTarget]);return t},[]).map(function(t){return{id:t}});var o=a.map(function(t,e){return{__d3plus__:true,data:t,i:e,id:i._nodeId(t,e),node:t,shape:"Rect"}});var s=this._nodeLookup=o.reduce(function(t,e,n){t[e.id]=n;return t},{});var u=this._links.map(function(n,t){var e=[i._linksSource,i._linksTarget];var r=e.reduce(function(t,e){t[e]=s[n[e]];return t},{});return{source:r[i._linksSource],target:r[i._linksTarget],value:i._value(n,t)}});this._linkLookup=u.reduce(function(t,e){if(!t[e.source])t[e.source]=[];t[e.source].push(e.target);if(!t[e.target])t[e.target]=[];t[e.target].push(e.source);return t},{});var l="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(o).links(u).size([r,n])();this._shapes.push((new sC).config(this._shapeConfig.Path).data(u).d(this._path).select(rb("g.d3plus-Links",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).render());Lb().key(function(t){return t.shape}).entries(o).forEach(function(t){i._shapes.push((new uC[t.key]).data(t.values).height(function(t){return t.y1-t.y0}).width(function(t){return t.x1-t.x0}).x(function(t){return(t.x1+t.x0)/2}).y(function(t){return(t.y1+t.y0)/2}).select(rb("g.d3plus-sankey-nodes",{parent:i._select,enter:{transform:l},update:{transform:l}}).node()).config(eb.bind(i)(i._shapeConfig,"shape",t.key)).render())});return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"links");return this}return this._links}},{key:"linksSource",value:function t(e){return arguments.length?(this._linksSource=e,this):this._linksSource}},{key:"linksTarget",value:function t(e){return arguments.length?(this._linksTarget=e,this):this._linksTarget}},{key:"nodeAlign",value:function t(e){return arguments.length?(this._nodeAlign=typeof e==="function"?e:nZ[e],this):this._nodeAlign}},{key:"nodeId",value:function t(e){return arguments.length?(this._nodeId=typeof e==="function"?e:Ul(e),this):this._nodeId}},{key:"nodes",value:function t(e,n){if(arguments.length){Zj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"nodePadding",value:function t(e){return arguments.length?(this._nodePadding=e,this):this._nodePadding}},{key:"nodeWidth",value:function t(e){return arguments.length?(this._nodeWidth=e,this):this._nodeWidth}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Ul(e),this):this._value}}]);return f}(nV);function iZ(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function aZ(r){var a=r;var o=r;if(r.length===1){a=function t(e,n){return r(e)-n};o=oZ(r)}function s(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)<0)n=i+1;else r=i}return n}function t(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)>0)r=i;else n=i+1}return n}function e(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;var i=s(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i}return{left:s,center:e,right:t}}function oZ(n){return function(t,e){return iZ(n(t),e)}}function sZ(t){return t===null?NaN:+t}function uZ(n,r){var i,a,o,s,u,l,c;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:if(!(r===undefined)){e.next=21;break}i=_createForOfIteratorHelper2(n);e.prev=2;i.s();case 4:if((a=i.n()).done){e.next=11;break}o=a.value;if(!(o!=null&&(o=+o)>=o)){e.next=9;break}e.next=9;return o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13;e.t0=e["catch"](2);i.e(e.t0);case 16:e.prev=16;i.f();return e.finish(16);case 19:e.next=40;break;case 21:s=-1;u=_createForOfIteratorHelper2(n);e.prev=23;u.s();case 25:if((l=u.n()).done){e.next=32;break}c=l.value;if(!((c=r(c,++s,n))!=null&&(c=+c)>=c)){e.next=30;break}e.next=30;return c;case 30:e.next=25;break;case 32:e.next=37;break;case 34:e.prev=34;e.t1=e["catch"](23);u.e(e.t1);case 37:e.prev=37;u.f();return e.finish(37);case 40:case"end":return e.stop()}}},h,null,[[2,13,16,19],[23,34,37,40]])}var lZ=aZ(iZ);var cZ=lZ.right;aZ(sZ).center;var fZ=cZ;function hZ(t,e){var n=0;var r;var i=0;var a=0;if(e===undefined){var o=_createForOfIteratorHelper2(t),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;if(u!=null&&(u=+u)>=u){r=u-i;i+=r/++n;a+=r*(u-i)}}}catch(t){o.e(t)}finally{o.f()}}else{var l=-1;var c=_createForOfIteratorHelper2(t),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;if((h=e(h,++l,t))!=null&&(h=+h)>=h){r=h-i;i+=r/++n;a+=r*(h-i)}}}catch(t){c.e(t)}finally{c.f()}}if(n>1)return a/(n-1)}function dZ(t,e){var n=hZ(t,e);return n?Math.sqrt(n):n}function gZ(t,e){var n;var r;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null){if(n===undefined){if(o>=o)n=r=o}else{if(n>o)n=o;if(r<o)r=o}}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null){if(n===undefined){if(c>=c)n=r=c}else{if(n>c)n=c;if(r<c)r=c}}}}catch(t){u.e(t)}finally{u.f()}}return[n,r]}var vZ=Math.sqrt(50),pZ=Math.sqrt(10),yZ=Math.sqrt(2);function mZ(t,e,n){var r,i=-1,a,o,s;e=+e,t=+t,n=+n;if(t===e&&n>0)return[t];if(r=e<t)a=t,t=e,e=a;if((s=_Z(t,e,n))===0||!isFinite(s))return[];if(s>0){var u=Math.round(t/s),l=Math.round(e/s);if(u*s<t)++u;if(l*s>e)--l;o=new Array(a=l-u+1);while(++i<a){o[i]=(u+i)*s}}else{s=-s;var c=Math.round(t*s),f=Math.round(e*s);if(c/s<t)++c;if(f/s>e)--f;o=new Array(a=f-c+1);while(++i<a){o[i]=(c+i)/s}}if(r)o.reverse();return o}function _Z(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=vZ?10:a>=pZ?5:a>=yZ?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=vZ?10:a>=pZ?5:a>=yZ?2:1)}function bZ(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;if(a>=vZ)i*=10;else if(a>=pZ)i*=5;else if(a>=yZ)i*=2;return e<t?-i:i}function wZ(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n<a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n<l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function xZ(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n>a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n>l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function kZ(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:t.length-1;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:iZ;while(r>n){if(r-n>600){var a=r-n+1;var o=e-n+1;var s=Math.log(a);var u=.5*Math.exp(2*s/3);var l=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1);var c=Math.max(n,Math.floor(e-o*u/a+l));var f=Math.min(r,Math.floor(e+(a-o)*u/a+l));kZ(t,e,c,f,i)}var h=t[e];var d=n;var g=r;SZ(t,n,e);if(i(t[r],h)>0)SZ(t,n,r);while(d<g){SZ(t,d,g),++d,--g;while(i(t[d],h)<0){++d}while(i(t[g],h)>0){--g}}if(i(t[n],h)===0)SZ(t,n,g);else++g,SZ(t,g,r);if(g<=e)n=g+1;if(e<=g)r=g-1}return t}function SZ(t,e,n){var r=t[e];t[e]=t[n];t[n]=r}function CZ(t,e,n){t=Float64Array.from(uZ(t,n));if(!(r=t.length))return;if((e=+e)<=0||r<2)return xZ(t);if(e>=1)return wZ(t);var r,i=(r-1)*e,a=Math.floor(i),o=wZ(kZ(t,a).subarray(0,a+1)),s=xZ(t.subarray(a+1));return o+(s-o)*(i-a)}function EZ(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:sZ;if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}function AZ(t,e){var n=0;var r=0;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null&&(o=+o)>=o){++n,r+=o}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null&&(c=+c)>=c){++n,r+=c}}}catch(t){u.e(t)}finally{u.f()}}if(n)return r/n}function MZ(n){var r,i,a;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:r=_createForOfIteratorHelper2(n);e.prev=1;r.s();case 3:if((i=r.n()).done){e.next=8;break}a=i.value;return e.delegateYield(a,"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10;e.t1=e["catch"](1);r.e(e.t1);case 13:e.prev=13;r.f();return e.finish(13);case 16:case"end":return e.stop()}}},s,null,[[1,10,13,16]])}function RZ(t){return Array.from(MZ(t))}function TZ(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);while(++r<i){a[r]=t+r*n}return a}function OZ(t,e){var n=0;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a=+a){n+=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if(l=+e(l,++o,t)){n+=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function PZ(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function BZ(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var DZ=Symbol("implicit");function NZ(){var a=new Map,o=[],r=[],i=DZ;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==DZ)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return NZ(o,r).unknown(i)};PZ.apply(s,arguments);return s}function zZ(){var t=NZ().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=TZ(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return zZ(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return PZ.apply(r(),arguments)}function FZ(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return FZ(e())};return t}function jZ(){return FZ(zZ.apply(null,arguments).paddingInner(1))}function IZ(t){return function(){return t}}function LZ(t){return+t}var HZ=[0,1];function UZ(t){return t}function GZ(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:IZ(isNaN(n)?NaN:.5)}function VZ(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function WZ(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=GZ(i,r),a=n(o,a);else r=GZ(r,i),a=n(a,o);return function(t){return a(r(t))}}function qZ(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=GZ(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=fZ(n,t,1,r)-1;return a[e](i[e](t))}}function KZ(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function YZ(){var e=HZ,n=HZ,r=Jn,i,a,o,s=UZ,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==UZ)s=VZ(e[0],e[t-1]);u=t>2?qZ:WZ;l=c=null;return h}function h(t){return t==null||isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Wn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,LZ),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=Qn,f()};h.clamp=function(t){return arguments.length?(s=t?true:UZ,f()):s!==UZ};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function XZ(){return YZ()(UZ,UZ)}function ZZ(t,e,n,r){var i=bZ(t,e,n),a;r=Pr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=Yr(i,o)))r.precision=a;return Wr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=Xr(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=Kr(i)))r.precision=a-(r.type==="%")*2;break}}return Vr(r)}function $Z(l){var c=l.domain;l.ticks=function(t){var e=c();return mZ(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return ZZ(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=_Z(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function JZ(){var t=XZ();t.copy=function(){return KZ(t,JZ())};PZ.apply(t,arguments);return $Z(t)}function QZ(e){var n;function r(t){return t==null||isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,LZ),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return QZ(e).unknown(n)};e=arguments.length?Array.from(e,LZ):[0,1];return $Z(r)}function t$(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function e$(t){return Math.log(t)}function n$(t){return Math.exp(t)}function r$(t){return-Math.log(-t)}function i$(t){return-Math.exp(-t)}function a$(t){return isFinite(t)?+("1e"+t):t<0?0:t}function o$(e){return e===10?a$:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function s$(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function u$(e){return function(t){return-e(-t)}}function l$(t){var e=t(e$,n$),h=e.domain,d=10,g,v;function n(){g=s$(d),v=o$(d);if(h()[0]<0){g=u$(g),v=u$(v);t(r$,i$)}else{t(e$,n$)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=mZ(n,r,c)}else{f=mZ(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Vr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h(t$(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function c$(){var t=l$(YZ()).domain([1,10]);t.copy=function(){return KZ(t,c$()).base(t.base())};PZ.apply(t,arguments);return t}function f$(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function h$(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function d$(e){var n=1,t=e(f$(n),h$(n));t.constant=function(t){return arguments.length?e(f$(n=+t),h$(n)):n};return $Z(t)}function g$(){var t=d$(YZ());t.copy=function(){return KZ(t,g$()).constant(t.constant())};return PZ.apply(t,arguments)}function v$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function p$(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function y$(t){return t<0?-t*t:t*t}function m$(t){var e=t(UZ,UZ),n=1;function r(){return n===1?t(UZ,UZ):n===.5?t(p$,y$):t(v$(n),v$(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return $Z(e)}function _$(){var t=m$(YZ());t.copy=function(){return KZ(t,_$()).exponent(t.exponent())};PZ.apply(t,arguments);return t}function b$(){return _$.apply(null,arguments).exponent(.5)}function w$(t){return Math.sign(t)*t*t}function x$(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function k$(){var n=XZ(),e=[0,1],r=false,i;function a(t){var e=x$(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(w$(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,LZ)).map(w$)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return k$(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};PZ.apply(a,arguments);return $Z(a)}function S$(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=EZ(i,t/e)}return o}function o(t){return t==null||isNaN(t=+t)?e:n[fZ(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(iZ);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return S$().domain(i).range(n).unknown(e)};return PZ.apply(o,arguments)}function C$(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t!=null&&t<=t?o[fZ(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return C$().domain([r,i]).range(o).unknown(e)};return PZ.apply($Z(s),arguments)}function E$(){var n=[.5],r=[0,1],e,i=1;function a(t){return t!=null&&t<=t?r[fZ(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return E$().domain(n).range(r).unknown(e)};return PZ.apply(a,arguments)}var A$=new Date,M$=new Date;function R$(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return R$(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){A$.setTime(+t),M$.setTime(+e);a(A$),a(M$);return Math.floor(n(A$,M$))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var T$=R$(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});T$.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return T$;return R$(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var O$=T$;var P$=1e3;var B$=P$*60;var D$=B$*60;var N$=D$*24;var z$=N$*7;var F$=N$*30;var j$=N$*365;var I$=R$(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*P$)},function(t,e){return(e-t)/P$},function(t){return t.getUTCSeconds()});var L$=I$;var H$=R$(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*P$)},function(t,e){t.setTime(+t+e*B$)},function(t,e){return(e-t)/B$},function(t){return t.getMinutes()});var U$=H$;var G$=R$(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*P$-t.getMinutes()*B$)},function(t,e){t.setTime(+t+e*D$)},function(t,e){return(e-t)/D$},function(t){return t.getHours()});var V$=G$;var W$=R$(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*B$)/N$},function(t){return t.getDate()-1});var q$=W$;function K$(e){return R$(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*B$)/z$})}var Y$=K$(0);K$(1);K$(2);K$(3);K$(4);K$(5);K$(6);var X$=R$(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var Z$=X$;var $$=R$(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});$$.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:R$(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var J$=$$;var Q$=R$(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*B$)},function(t,e){return(e-t)/B$},function(t){return t.getUTCMinutes()});var tJ=Q$;var eJ=R$(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*D$)},function(t,e){return(e-t)/D$},function(t){return t.getUTCHours()});var nJ=eJ;var rJ=R$(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/N$},function(t){return t.getUTCDate()-1});var iJ=rJ;function aJ(e){return R$(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/z$})}var oJ=aJ(0);aJ(1);aJ(2);aJ(3);aJ(4);aJ(5);aJ(6);var sJ=R$(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var uJ=sJ;var lJ=R$(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});lJ.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:R$(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var cJ=lJ;function fJ(u,t,e,n,r,i){var l=[[L$,1,P$],[L$,5,5*P$],[L$,15,15*P$],[L$,30,30*P$],[i,1,B$],[i,5,5*B$],[i,15,15*B$],[i,30,30*B$],[r,1,D$],[r,3,3*D$],[r,6,6*D$],[r,12,12*D$],[n,1,N$],[n,2,2*N$],[e,1,z$],[t,1,F$],[t,3,3*F$],[u,1,j$]];function a(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0];e=i[1]}var a=n&&typeof n.range==="function"?n:s(t,e,n);var o=a?a.range(t,+e+1):[];return r?o.reverse():o}function s(t,e,n){var r=Math.abs(e-t)/n;var i=aZ(function(t){var e=_slicedToArray2(t,3),n=e[2];return n}).right(l,r);if(i===l.length)return u.every(bZ(t/j$,e/j$,n));if(i===0)return O$.every(Math.max(bZ(t,e,n),1));var a=_slicedToArray2(l[r/l[i-1][2]<l[i][2]/r?i-1:i],2),o=a[0],s=a[1];return o.every(s)}return[a,s]}var hJ=fJ(cJ,uJ,oJ,iJ,nJ,tJ),dJ=_slicedToArray2(hJ,2),gJ=dJ[0],vJ=dJ[1];var pJ=fJ(J$,Z$,Y$,q$,V$,U$),yJ=_slicedToArray2(pJ,2),mJ=yJ[0],_J=yJ[1];function bJ(t){return new Date(t)}function wJ(t){return t instanceof Date?+t:+new Date(+t)}function xJ(n,r,e,i,a,o,s,u,l,c){var f=XZ(),h=f.invert,d=f.domain;var g=c(".%L"),v=c(":%S"),p=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),_=c("%b %d"),b=c("%B"),w=c("%Y");function x(t){return(l(t)<t?g:u(t)<t?v:s(t)<t?p:o(t)<t?y:i(t)<t?a(t)<t?m:_:e(t)<t?b:w)(t)}f.invert=function(t){return new Date(h(t))};f.domain=function(t){return arguments.length?d(Array.from(t,wJ)):d().map(bJ)};f.ticks=function(t){var e=d();return n(e[0],e[e.length-1],t==null?10:t)};f.tickFormat=function(t,e){return e==null?x:c(e)};f.nice=function(t){var e=d();if(!t||typeof t.range!=="function")t=r(e[0],e[e.length-1],t==null?10:t);return t?d(t$(e,t)):f};f.copy=function(){return KZ(f,xJ(n,r,e,i,a,o,s,u,l,c))};return f}function kJ(){return PZ.apply(xJ(mJ,_J,J$,Z$,Y$,q$,V$,U$,L$,We).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function SJ(){return PZ.apply(xJ(gJ,vJ,cJ,uJ,oJ,iJ,nJ,tJ,L$,qe).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function CJ(){var r=0,i=1,a,o,s,u,l=UZ,e=false,n;function c(t){return t==null||isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(Jn);c.rangeRound=t(Qn);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function EJ(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function AJ(){var t=$Z(CJ()(UZ));t.copy=function(){return EJ(t,AJ())};return BZ.apply(t,arguments)}function MJ(){var t=l$(CJ()).domain([1,10]);t.copy=function(){return EJ(t,MJ()).base(t.base())};return BZ.apply(t,arguments)}function RJ(){var t=d$(CJ());t.copy=function(){return EJ(t,RJ()).constant(t.constant())};return BZ.apply(t,arguments)}function TJ(){var t=m$(CJ());t.copy=function(){return EJ(t,TJ()).exponent(t.exponent())};return BZ.apply(t,arguments)}function OJ(){return TJ.apply(null,arguments).exponent(.5)}function PJ(){var i=[],n=UZ;function a(t){if(t!=null&&!isNaN(t=+t))return n((fZ(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(iZ);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return CZ(i,e/n)})};a.copy=function(){return PJ(n).domain(i)};return BZ.apply(a,arguments)}function BJ(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=UZ,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=gr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(Jn);g.rangeRound=t(Qn);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function DJ(){var t=$Z(BJ()(UZ));t.copy=function(){return EJ(t,DJ())};return BZ.apply(t,arguments)}function NJ(){var t=l$(BJ()).domain([.1,1,10]);t.copy=function(){return EJ(t,NJ()).base(t.base())};return BZ.apply(t,arguments)}function zJ(){var t=d$(BJ());t.copy=function(){return EJ(t,zJ()).constant(t.constant())};return BZ.apply(t,arguments)}function FJ(){var t=m$(BJ());t.copy=function(){return EJ(t,FJ()).exponent(t.exponent())};return BZ.apply(t,arguments)}function jJ(){return FJ.apply(null,arguments).exponent(.5)}var IJ=Object.freeze({__proto__:null,scaleBand:zZ,scalePoint:jZ,scaleIdentity:QZ,scaleLinear:JZ,scaleLog:c$,scaleSymlog:g$,scaleOrdinal:NZ,scaleImplicit:DZ,scalePow:_$,scaleSqrt:b$,scaleRadial:k$,scaleQuantile:S$,scaleQuantize:C$,scaleThreshold:E$,scaleTime:kJ,scaleUtc:SJ,scaleSequential:AJ,scaleSequentialLog:MJ,scaleSequentialPow:TJ,scaleSequentialSqrt:OJ,scaleSequentialSymlog:RJ,scaleSequentialQuantile:PJ,scaleDiverging:DJ,scaleDivergingLog:NJ,scaleDivergingPow:FJ,scaleDivergingSqrt:jJ,scaleDivergingSymlog:zJ,tickFormat:ZZ});var LJ=function t(e,n,r){if(e.padding)e.padding(.5);else{var i=n.map(function(t){return t[r]}).reduce(function(t,e,n,r){if(!n)return t;var i=r[n-1];if(!t||e-i<t)return e-i;else return t},0);var a=e.domain().slice();if(r==="y")a.reverse();a[0]=new Date(+a[0]-i/2);a[1]=new Date(+a[1]+i/2);if(r==="y")a.reverse();e.domain(a)}};function HJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?i:r;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,v;if(this._stacked){var p=Lb().key(function(t){return"".concat(t[e._discrete],"_").concat(t.group)}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});v=p.map(function(t){return OZ(t.filter(function(t){return t>0}))});g=p.map(function(t){return OZ(t.filter(function(t){return t<0}))})}else{v=n.map(function(t){return t[d?c:l]});g=v}var y=f(wZ(v));if(d?y<f(0):y>f(0))y+=d?-u:u;y=f.invert(y);var m=f(xZ(g));if(d?m>f(0):m<f(0))m+=d?u:-u;m=f.invert(m);if(y>h[1])h[1]=y;if(m<h[0])h[0]=m;if(d)h.reverse();f.domain(h);LJ(d?r:i,n,this._discrete);return[r,i]}function UJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?i:r;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,v;if(this._stacked){var p=Lb().key(function(t){return t[e._discrete]}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});v=p.map(function(t){return OZ(t.filter(function(t){return t>0}))});g=p.map(function(t){return OZ(t.filter(function(t){return t<0}))})}else{v=n.map(function(t){return t[d?c:l]});g=v}var y=f(wZ(v));y+=d?-u:u;y=f.invert(y);var m=f(xZ(g));m+=d?u:-u;m=f.invert(m);if(y>h[1])h[1]=y;if(m<h[0])h[0]=m;if(d)h.reverse();f.domain(h);LJ(d?r:i,n,this._discrete);return[r,i]}var GJ=function t(e){return Math.pow(10,Math.floor(Math.log10(Math.abs(e))))*Math.pow(-1,e<0)};var VJ=function t(e){return Math.pow(10,Math.ceil(Math.log10(Math.abs(e))))*Math.pow(-1,e<0)};function WJ(f,h,d,g,t,e,v,p){if(isNaN(e[0])||isNaN(e[1]))return e;if(p){e=e.slice().reverse();t=t.slice().reverse()}if(e[0]===e[1]){e=e.slice();if(h==="log"){e=[GJ(e[0]),VJ(e[0])];if(e[1]<e[0])e.reverse()}else{var n=Math.abs(parseFloat(e[0].toPrecision(1).replace(/[0-9]{1}$/,"1")));e[0]-=n;e[1]+=n}f.domain(p?e.slice().reverse():e);return p?e.reverse():e}var r=e[0]===e[1]?10:Math.abs(Math.log(e[1]-e[0])/10);var i=function t(){var e=f.copy();var n=false;if(h==="log"){var r=f.domain().slice(),i=f.range().slice();if(p){r=r.reverse();i=i.reverse()}n=r[0]*r[1]<0;if(n){var a=c$().domain([1e-6,Math.abs(r[v])]).range([0,1]);var o=a(Math.abs(r[v?0:1]));var s=o/(o+1)*(i[1]-i[0]);r=(v===0?[r[0],1e-6]:[1e-6,r[1]]).map(Math.abs);i=v===0?[i[0],i[0]+s]:[i[0]+s,i[1]]}e=c$().domain(r).range(i)}var u=false;var l=e.range();var c;if(h==="log"){c=n?e(Math.abs(d)):e(d)}else c=e(d);if(p){if(v===0)u=c+g>l[v];else if(v===1)u=c-g<l[v]}else{if(v===0)u=c-g<l[v];else if(v===1)u=c+g>l[v]}return u};if(f.invert&&i()){var a=10;if(h==="log"){var o=0;while(o<10&&i()){var s=(v===0?-1:1)*(e[v]<0?-1:1);e[v]+=e[v]*r*s;f.domain(p?e.slice().reverse():e);o++}}else if(v===0){var u=f.invert(f(d)+(g+a)*(p?1:-1));if(u<e[v]){e[v]=u;f.domain(p?e.slice().reverse():e)}}else if(v===1){var l=f.invert(f(d)+(g+a)*(p?-1:1));if(l>e[v]){e[v]=l;f.domain(p?e.slice().reverse():e)}}}return p?e.reverse():e}function qJ(t){var e=t.data,n=t.x,r=t.y,i=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config,l=t.buffer;n=n.copy();r=r.copy();var c=i?"x2":"x";var f=a?"y2":"y";var h=n.domain().slice(),d=r.domain().slice();var g=n.range(),v=r.range();if(!n.invert&&n.padding)LJ(n,e,this._discrete);if(!r.invert&&r.padding)LJ(r,e,this._discrete);if(n.invert||r.invert){e.forEach(function(t){var e=l?l:u.r(t.data,t.i)*2;if(n.invert){h=WJ(n,s,t[c],e,g,h,0,false);h=WJ(n,s,t[c],e,g,h,1,false)}if(r.invert){d=WJ(r,o,t[f],e,v,d,0,true);d=WJ(r,o,t[f],e,v,d,1,true)}})}return[n,r]}function KJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2;var s=a?"x2":"x";var u=o?"y2":"y";var l=this._discrete==="x"?i:r;var c=l.domain().slice();if(this._discrete==="x")c.reverse();var f=n.map(function(t){return t[e._discrete==="x"?u:s]});var h=l.invert(l(wZ(f))+(this._discrete==="x"?-10:10));if(h>c[1])c[1]=h;if(this._discrete==="x")c.reverse();l.domain(c);return[r,i]}function YJ(t){var e=t.data,r=t.x,i=t.y,n=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config;r=r.copy();i=i.copy();var l=n?"x2":"x";var c=a?"y2":"y";var f=r.domain().slice(),h=i.domain().slice();var d=r.range(),g=i.range();if(!r.invert&&r.padding)LJ(r,e,this._discrete);if(!i.invert&&i.padding)LJ(i,e,this._discrete);if(r.invert||i.invert){e.forEach(function(t){if(r.invert){var e=u.width(t.data,t.i);f=WJ(r,s,t[l],e,d,f,0,false);f=WJ(r,s,t[l],e,d,f,1,false)}if(i.invert){var n=u.height(t.data,t.i);h=WJ(i,o,t[c],n,g,h,0,true);h=WJ(i,o,t[c],n,g,h,1,true)}})}return[r,i]}function XJ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){XJ=function t(e){return typeof e}}else{XJ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return XJ(t)}function ZJ(t,e){return eQ(t)||tQ(t,e)||JJ(t,e)||$J()}function $J(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function JJ(t,e){if(!t)return;if(typeof t==="string")return QJ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QJ(t,e)}function QJ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function tQ(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function eQ(t){if(Array.isArray(t))return t}function nQ(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function rQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function iQ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function aQ(t,e,n){if(e)iQ(t.prototype,e);if(n)iQ(t,n);return t}function oQ(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){oQ=Reflect.get}else{oQ=function t(e,n,r){var i=sQ(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return oQ(t,e,n||t)}function sQ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=gQ(t);if(t===null)break}return t}function uQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)lQ(t,e)}function lQ(t,e){lQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lQ(t,e)}function cQ(i){var a=dQ();return function t(){var e=gQ(i),n;if(a){var r=gQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return fQ(this,n)}}function fQ(t,e){if(e&&(XJ(e)==="object"||typeof e==="function")){return e}return hQ(t)}function hQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function gQ(t){gQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gQ(t)}var vQ=new y4;var pQ=new T9;function yQ(t){return this._sizeScaleD3(this._size?this._size(t):null)}function mQ(t){var n=t.map(bQ);var r=t.map(function(t){return t.key.split("_")[0]});return x6(t).sort(function(t,e){return r[e].localeCompare(r[t])||n[t]-n[e]})}function _Q(t){return mQ(t).reverse()}function bQ(t){var e=-1,n=0,r;var i=t.length;while(++e<i){if(r=+t[e][1])n+=r}return n}function wQ(t,e){var n;if(!((n=t.length)>0))return;var r,i,a,o,s;var u=t[e[0]].length;for(var l=0;l<u;++l){for(s=o=0,a=0;a<n;++a){if((i=(r=t[e[a]][l])[1]-r[0])>=0){r[0]=s,r[1]=s+=i}else if(i<0){r[1]=o,r[0]=o+=i}else{r[0]=s}}}}function xQ(t,e){if(this._stacked)return false;var n=this._discrete.charAt(0)==="x"?"y":"x";var r=this._discrete.replace(this._discrete.charAt(0),n);var i=this["_".concat(r,"Axis")]._d3Scale.range();var a=this["_".concat(r)](t,e);var o=a<0;var s=this["_".concat(r,"Axis")]._getPosition(0);var u=r==="y"?o?i[1]-s:s-i[0]:o?s-i[0]:i[1]-s;var l=this["_".concat(r,"Axis")]._getPosition(a);var c=Math.abs(l-s);return c<u/2}var kQ=function(t){uQ(we,t);var e=cQ(we);function we(){var i;rQ(this,we);i=e.call(this);i._annotations=[];i._backgroundConfig={duration:0,fill:"transparent"};i._barPadding=0;i._buffer={Bar:HJ,Box:UJ,Circle:qJ,Line:KJ,Rect:YJ};i._confidenceConfig={fill:function t(e,n){var r=typeof i._shapeConfig.Line.stroke==="function"?i._shapeConfig.Line.stroke(e,n):i._shapeConfig.Line.stroke;return r},fillOpacity:nb(.5)};i._discreteCutoff=100;i._groupPadding=5;i._lineMarkerConfig={fill:function t(e,n){return Cw(i._id(e,n))},r:nb(3)};i._lineMarkers=false;i._previousShapes=[];i._shape=nb("Circle");i._shapeConfig=ql(i._shapeConfig,{Area:{label:function t(e,n){return i._stacked?i._drawLabel(e,n):false},labelBounds:function t(e,n,r){var i=eS(r.points,{angle:TZ(-20,20,5)});if(!i||i.height<20||i.width<50)i=eS(r.points,{angle:TZ(-80,80,5)});if(!i)return null;var a=xZ(r.points,function(t){return t[0]});var o=wZ(r.points.filter(function(t){return t[0]===a}),function(t){return t[1]});return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-a,y:i.cy-i.height/2-o}},labelConfig:{fontMin:6,fontResize:true,padding:10}},ariaLabel:function t(e,n){var r="";if(e.nested)r="".concat(i._drawLabel(e.data,e.i));else{r="".concat(i._drawLabel(e,n));if(i._x(e,n)!==undefined)r+=", x: ".concat(i._x(e,n));if(i._y(e,n)!==undefined)r+=", y: ".concat(i._y(e,n));if(i._x2(e,n)!==undefined)r+=", x2: ".concat(i._x2(e,n));if(i._y2(e,n)!==undefined)r+=", y2: ".concat(i._y2(e,n))}return"".concat(r,".")},Bar:{labelBounds:function t(e,n,r){var i;var a=1;var o=this._discrete==="y"?"width":"height";var s=this._discrete==="y"?"height":"width";var u=this._discrete.charAt(0)==="x"?"y":"x";var l=u==="y";var c=this._discrete.replace(this._discrete.charAt(0),u);var f=this["_".concat(c,"Axis")]._d3Scale.range();var h=Math.abs(f[1]-f[0]);var d=this["_".concat(c)](e,n)<0;if(xQ.bind(this)(e,n)){var g;return g={},nQ(g,o,h-r[o]),nQ(g,s,r[s]),nQ(g,"x",l?-r.width/2:d?-h:r.width+a),nQ(g,"y",l?d?r.height+a:-h:-r.height/2+1),g}return i={},nQ(i,o,r[o]),nQ(i,s,r[s]),nQ(i,"x",l?-r.width/2:d?this._stacked?a:a-r.width:-a),nQ(i,"y",l?d?this._stacked?a-r.height:a:-r.height+a:-r.height/2+a),i},labelConfig:{fontMax:16,fontMin:6,fontResize:true,fontColor:function t(e,n){return xQ.bind(this)(e,n)?this._backgroundConfig.fill==="transparent"?Sw.dark:Ew(this._backgroundConfig.fill):Ew(typeof this._shapeConfig.fill==="function"?this._shapeConfig.fill(e,n):this._shapeConfig.fill)},fontStroke:function t(e,n){return xQ.bind(this)(e,n)?this._backgroundConfig.fill==="transparent"?Sw.dark:Ew(this._backgroundConfig.fill):"transparent"},fontStrokeWidth:function t(e,n){return xQ.bind(this)(e,n)?.1:0},padding:3,textAnchor:function t(e,n){var r=this._discrete.charAt(0)==="x"?"y":"x";var i=r==="y";var a=this._discrete.replace(this._discrete.charAt(0),r);var o=this["_".concat(a)](e,n)<0;return i?"middle":xQ.bind(this)(e,n)?o?"end":"start":o?"start":"end"},verticalAlign:function t(e,n){var r=this._discrete.charAt(0)==="x"?"y":"x";var i=r==="y";var a=this._discrete.replace(this._discrete.charAt(0),r);var o=this["_".concat(a)](e,n)<0;return i?xQ.bind(this)(e,n)?o?"top":"bottom":o?"bottom":"top":"middle"}}},Circle:{r:yQ.bind(hQ(i))},Line:{curve:function t(){return i._discrete?"monotone".concat(i._discrete.charAt(0).toUpperCase()):"linear"},fill:nb("none"),labelConfig:{fontColor:function t(e,n){var r=typeof i._shapeConfig.Line.stroke==="function"?i._shapeConfig.Line.stroke(e,n):i._shapeConfig.Line.stroke;return Aw(r)},fontResize:false,padding:5,textAnchor:"start",verticalAlign:"middle"},stroke:function t(e,n){return Cw(i._id(e,n))},strokeWidth:nb(2)},Rect:{height:function t(e){return yQ.bind(hQ(i))(e)*2},width:function t(e){return yQ.bind(hQ(i))(e)*2}}});i._shapeOrder=["Area","Path","Bar","Box","Line","Rect","Circle"];i._shapeSort=function(t,e){return i._shapeOrder.indexOf(t)-i._shapeOrder.indexOf(e)};i._sizeMax=20;i._sizeMin=5;i._sizeScale="sqrt";i._stackOffset=wQ;i._stackOrder=_Q;i._timelineConfig=ql(i._timelineConfig,{brushing:true});i._x=Ul("x");i._xAxis=(new HC).align("end");i._xTest=(new HC).align("end").gridSize(0);i._xConfig={gridConfig:{stroke:function t(e){if(i._discrete&&i._discrete.charAt(0)==="x")return"transparent";var n=i._xAxis.range();return n[0]===i._xAxis._getPosition.bind(i._xAxis)(e.id)?"transparent":"#eee"}}};i._xCutoff=150;i._x2=Ul("x2");i._x2Axis=(new y5).align("start");i._x2Test=(new y5).align("start").gridSize(0);i._x2Config={padding:0};i._y=Ul("y");i._yAxis=(new $C).align("start");i._yTest=(new $C).align("start").gridSize(0);i._yConfig={gridConfig:{stroke:function t(e){if(i._discrete&&i._discrete.charAt(0)==="y")return"transparent";var n=i._yAxis.range();return n[n.length-1]===i._yAxis._getPosition.bind(i._yAxis)(e.id)?"transparent":"#eee"}}};i._yCutoff=150;i._y2=Ul("y2");i._y2Axis=(new s5).align("end");i._y2Test=(new $C).align("end").gridSize(0);i._y2Config={};return i}aQ(we,[{key:"_preDraw",value:function t(){var n=this;["x","y","x2","y2"].forEach(function(t){if(n["_".concat(t,"Key")]){var e=n["_".concat(t,"Key")];if(!n._aggs[e]&&n._discrete===t){n._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}if(e!==t&&n["_".concat(t,"Title")]===n["_".concat(t,"Config")].title&&n._discrete!==t){n["_".concat(t,"Title")]=e;n["_".concat(t,"Config")].title=e}}});oQ(gQ(we.prototype),"_preDraw",this).call(this)}},{key:"_draw",value:function t(e){var z=this;if(!this._filteredData.length)return this;var s=function t(e,n){return z._stacked?"".concat(z._groupBy.length>1?z._ids(e,n).slice(0,-1).join("_"):"group"):"".concat(z._ids(e,n).join("_"))};var u=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,group:s(t,e),i:e,hci:z._confidence&&z._confidence[1]&&z._confidence[1](t,e),id:z._ids(t,e).slice(0,z._drawDepth+1).join("_"),lci:z._confidence&&z._confidence[0]&&z._confidence[0](t,e),shape:z._shape(t,e),x:z._x(t,e),x2:z._x2(t,e),y:z._y(t,e),y2:z._y2(t,e)}});this._formattedData=u;if(this._size){var n=gZ(u,function(t){return z._size(t.data)});this._sizeScaleD3=function(){return z._sizeMin};this._sizeScaleD3=IJ["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(n).range([n[0]===n[1]?this._sizeMax:xZ([this._sizeMax/2,this._sizeMin]),this._sizeMax])}else{this._sizeScaleD3=function(){return z._sizeMin}}var r=u.some(function(t){return t.x2!==undefined}),i=u.some(function(t){return t.y2!==undefined});var a=this._height-this._margin.top-this._margin.bottom,l=this._discrete?this._discrete==="x"?"y":"x":undefined,o=this._discrete?this._discrete==="x"?"y2":"x2":undefined,c=[l,o].filter(function(t){return t}),f=this._select,h=this._transition,F=this._width-this._margin.left-this._margin.right;var d=this._x2Time=this._time&&u[0].x2===this._time(u[0].data,u[0].i),g=this._xTime=this._time&&u[0].x===this._time(u[0].data,u[0].i),v=this._y2Time=this._time&&u[0].y2===this._time(u[0].data,u[0].i),p=this._yTime=this._time&&u[0].y===this._time(u[0].data,u[0].i);for(var y=0;y<u.length;y++){var m=u[y];if(g)m.x=lC(m.x);if(d)m.x2=lC(m.x2);if(p)m.y=lC(m.y);if(v)m.y2=lC(m.y2);m.discrete=m.shape==="Bar"?"".concat(m[this._discrete],"_").concat(m.group):"".concat(m[this._discrete])}function _(n){var r=this;var t=u.filter(function(t){return t[n]}).sort(function(t,e){return r["_".concat(n,"Sort")]?r["_".concat(n,"Sort")](t.data,e.data):t[n]-e[n]}).map(function(t){return t[n]});if(this._discrete!==n.charAt(0)&&this._confidence){if(this._confidence[0])t=t.concat(u.map(function(t){return t.lci}));if(this._confidence[1])t=t.concat(u.map(function(t){return t.hci}))}return Yb(t,function(t){return"".concat(t)})}var b=_.bind(this)("x");var w=_.bind(this)("x2");var x=_.bind(this)("y");var k=_.bind(this)("y2");var S=u.some(function(t){return t.shape==="Bar"});var C,E,A,M;if(this._stacked){var R;var T=Lb().key(function(t){return t.group}).entries(u).reduce(function(t,e){if(!t[e.key])t[e.key]=0;t[e.key]+=OZ(e.values,function(t){return t[l]});return t},{});u=u.sort(function(t,e){if(z["_".concat(z._discrete,"Sort")])return z["_".concat(z._discrete,"Sort")](t.data,e.data);var n=t[z._discrete],r=e[z._discrete];if(n-r!==0)return n-r;if(t.group!==e.group)return T[e.group]-T[t.group];return e[l]-t[l]});C=Array.from(new Set(u.map(function(t){return t.discrete})));M=Array.from(new Set(u.map(function(t){return t.id})));A=Lb().key(function(t){return t.discrete}).entries(u).map(function(t){return t.values});A.forEach(function(a){var o=Array.from(new Set(a.map(function(t){return t.id})));if(o.length<M.length){M.forEach(function(e){if(!o.includes(e)){var t=u.filter(function(t){return t.id===e})[0];if(t.shape==="Area"){var n;var r=s(t.data,t.i);var i=(n={__d3plus__:true,data:t.data,discrete:t.shape==="Bar"?"".concat(a[0][z._discrete],"_").concat(r):"".concat(a[0][z._discrete]),group:r,id:e,shape:t.shape},nQ(n,z._discrete,a[0][z._discrete]),nQ(n,l,0),n);u.push(i)}}})}});if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[z._discrete]-e[z._discrete]})}var O=this._stackOrder;if(O instanceof Array)M.sort(function(t,e){return O.indexOf(t)-O.indexOf(e)});else if(O===x6)M.sort(function(t,e){return t.localeCompare(e)});A=C6().keys(M).offset(this._stackOffset).order(O instanceof Array?x6:O).value(function(t,e){var n=t.filter(function(t){return t.id===e});return n.length?n[0][l]:0})(A);var P=this._discrete==="x"?b:x;E=(R={},nQ(R,this._discrete,!S&&this["_".concat(this._discrete,"Time")]?gZ(P):P),nQ(R,l,[xZ(A.map(function(t){return xZ(t.map(function(t){return t[0]}))})),wZ(A.map(function(t){return wZ(t.map(function(t){return t[1]}))}))]),R)}else{var B=this._discrete||"x";if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[B]-e[B]})}E={x:(S||!g)&&this._discrete==="x"||this._xSort?b:gZ(b),x2:(S||!d)&&this._discrete==="x"||this._x2Sort?w:gZ(w),y:(S||!p)&&this._discrete==="y"||this._ySort?x:gZ(x),y2:(S||!v)&&this._discrete==="y"||this._y2Sort?k:gZ(k)}}function D(t){var e=this["_".concat(t,"Domain")]?this["_".concat(t,"Domain")].slice():E[t],n=this["_".concat(t,"2Domain")]?this["_".concat(t,"2Domain")].slice():E["".concat(t,"2")];if(e&&e[0]===void 0)e[0]=E[t][0];if(e&&e[1]===void 0)e[1]=E[t][1];if(n&&n[0]===void 0)n[0]=E["".concat(t,"2")][0];if(n&&n[1]===void 0)n[1]=E["".concat(t,"2")][1];var r=!S&&this["_".concat(t,"Time")]?"Time":this._discrete===t||this["_".concat(t,"Sort")]?"Point":"Linear";return[e,r,n,r]}var N=D.bind(this)("x"),j=ZJ(N,4),I=j[0],L=j[1],H=j[2],U=j[3];var G=D.bind(this)("y"),V=ZJ(G,4),W=V[0],q=V[1],K=V[2],Y=V[3];var X=function t(e,n){var r=z["_".concat(e,"Config")].scale;if(r==="auto"){if(z._discrete===e)return n;var i=u.map(function(t){return t[e]});return dZ(i)/AZ(i)>3?"log":"linear"}return r||n};var Z=this._yConfigScale=X("y",q).toLowerCase();var $=this._y2ConfigScale=X("y2",Y).toLowerCase();var J=this._xConfigScale=X("x",L).toLowerCase();var Q=this._x2ConfigScale=X("x2",U).toLowerCase();E={x:I,x2:H||I,y:W,y2:K||W};Object.keys(E).forEach(function(e){if(z["_".concat(e,"ConfigScale")]==="log"&&E[e].includes(0)){if(xZ(E[e])<0)E[e][1]=wZ(u.map(function(t){return t[e]}).filter(Boolean));else E[e][0]=xZ(u.map(function(t){return t[e]}).filter(Boolean))}});c.forEach(function(t){if(z["_".concat(t,"Config")].domain){var e=z["_".concat(t,"Config")].domain;if(z._discrete==="x")e.reverse();E[t]=e}else if(t&&z._baseline!==void 0){var n=z._baseline;if(E[t]&&E[t][0]>n)E[t][0]=n;else if(E[t]&&E[t][1]<n)E[t][1]=n}});var tt=IJ["scale".concat(L)]().domain(E.x).range(TZ(0,F+1,F/(E.x.length-1))),et=IJ["scale".concat(U)]().domain(E.x2).range(TZ(0,F+1,F/(E.x2.length-1))),nt=IJ["scale".concat(q)]().domain(E.y.reverse()).range(TZ(0,a+1,a/(E.y.length-1))),rt=IJ["scale".concat(Y)]().domain(E.y2.reverse()).range(TZ(0,a+1,a/(E.y2.length-1)));var it=Lb().key(function(t){return t.shape}).entries(u).sort(function(t,e){return z._shapeSort(t.key,e.key)});var at=this._discrete==="x"?q:L;if(at!=="Point"){it.forEach(function(t){if(z._buffer[t.key]){var e=z._buffer[t.key].bind(z)({data:t.values,x:tt,y:nt,yScale:Z,xScale:J,config:z._shapeConfig[t.key]});tt=e[0];nt=e[1];var n=z._buffer[t.key].bind(z)({data:t.values,x:et,y:rt,yScale:$,xScale:Q,x2:true,y2:true,config:z._shapeConfig[t.key]});et=n[0];rt=n[1]}})}var ot=tt.domain();var st=et.domain();var ut=nt.domain();var lt=rt.domain();var ct={barConfig:{"stroke-width":0},gridSize:0,labels:[],title:false,tickSize:0};var ft=r?{data:w}:ct;var ht=i?{data:k}:ct;var dt=this._discrete==="x"&&this._width>this._discreteCutoff||this._width>this._xCutoff;var gt=this._discrete==="y"&&this._height>this._discreteCutoff||this._height>this._yCutoff;var vt={data:x,locale:this._locale,scalePadding:nt.padding?nt.padding():0,tickFormat:p?function(t){return r3(+t,x.map(Number))}:G_};if(!dt){vt.barConfig={stroke:"transparent"};vt.tickSize=0;vt.shapeConfig={labelBounds:function t(e,n){var r=e.labelBounds,i=r.width,a=r.y;var o=z._height/2;var s=n?-o:0;return{x:s,y:a,width:i,height:o}},labelConfig:{padding:0,rotate:0,verticalAlign:function t(e){return e.id===bt[0]?"top":"bottom"}},labelRotation:false}}var pt=rb("g.d3plus-plot-test",{enter:{opacity:0},parent:this._select});var yt=this._discrete==="x"?E.x2:undefined,mt=!gt?gZ(E.x):this._discrete==="x"?E.x:undefined,_t=this._discrete==="y"?E.y2:undefined,bt=!dt?gZ(E.y):this._discrete==="y"?E.y:undefined;var wt=eb.bind(this)(this._shapeConfig,"shape","Bar");var xt=wt.label!==undefined?typeof wt.label==="function"?wt.label:nb(wt.label):this._drawLabel;var kt=this._filteredData.map(function(t,e){return xt(t,e)}).filter(function(t){return typeof t==="number"||t}).map(String);if(U==="Point"&&yt instanceof Array&&yt.every(function(t){return kt.includes("".concat(t))}))yt=[];if(L==="Point"&&mt instanceof Array&&mt.every(function(t){return kt.includes("".concat(t))}))mt=[];if(Y==="Point"&&_t instanceof Array&&_t.every(function(t){return kt.includes("".concat(t))}))_t=[];if(q==="Point"&&bt instanceof Array&&bt.every(function(t){return kt.includes("".concat(t))}))bt=[];if(gt){this._yTest.domain(ut).height(a).maxSize(F/2).range([undefined,undefined]).select(pt.node()).ticks(bt).width(F).config(vt).config(this._yConfig).scale(Z).render()}var St=this._yTest.outerBounds();var Ct=St.width?St.width+this._yTest.padding():undefined;if(i){this._y2Test.domain(lt).height(a).range([undefined,undefined]).select(pt.node()).ticks(_t).width(F).config(vt).config(ht).config(this._y2Config).scale($).render()}var Et=this._y2Test.outerBounds();var At=Et.width?Et.width+this._y2Test.padding():undefined;var Mt={data:b,locale:this._locale,scalePadding:tt.padding?tt.padding():0,tickFormat:g?function(t){return r3(+t,b.map(Number))}:G_};if(!gt){Mt.barConfig={stroke:"transparent"};Mt.tickSize=0;Mt.shapeConfig={labelBounds:function t(e,n){var r=e.labelBounds,i=r.height,a=r.y;var o=z._width/2;var s=n?-o:0;return{x:s,y:a,width:o,height:i}},labelConfig:{padding:0,rotate:0,textAnchor:function t(e){return e.id===mt[0]?"start":"end"}},labelRotation:false}}var Rt=undefined;if(dt){this._xTest.domain(ot).height(a).maxSize(a/2).range([undefined,Rt]).select(pt.node()).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render()}var Tt;if(this._lineLabels){var Ot=Lb().key(function(t){return t.id}).entries(u.filter(function(t){return t.shape==="Line"}));if(Ot.length&&Ot.length<this._dataCutoff){var Pt=eb.bind(this)(this._shapeConfig,"shape","Line");vQ.config(Pt);var Bt=vQ.labelConfig();var Dt=Bt.fontSize!==undefined?Bt.fontSize:pQ.fontSize();var Nt=Bt.fontWeight!==undefined?Bt.fontWeight:pQ.fontWeight();var zt=Bt.fontFamily!==undefined?Bt.fontFamily:pQ.fontFamily();var Ft=Bt.padding!==undefined?Bt.padding:pQ.padding();var jt=Pt.label||this._drawLabel;var It=function t(e){if(J==="log"&&e===0)e=ot[0]<0?z._xTest._d3Scale.domain()[1]:z._xTest._d3Scale.domain()[0];return z._xTest._getPosition.bind(z._xTest)(e)};var Lt=wZ(Ot.map(function(t){return wZ(t.values.map(function(t){return It(t.x)}))}));var Ht=Ot.map(function(t){var e=t.values[t.values.length-1];var n;while(e.__d3plus__&&e.data){e=e.data;n=e.i}var r=typeof jt==="function"?jt(e,n):jt;var i=typeof Dt==="function"?Dt(e,n):Dt;var a=typeof Nt==="function"?Nt(e,n):Nt;var o=typeof zt==="function"?zt(e,n):zt;if(o instanceof Array)o=o.map(function(t){return"'".concat(t,"'")}).join(", ");var s=typeof Ft==="function"?Ft(e,n):Ft;var u=I6(r,{"font-size":i,"font-family":o,"font-weight":a});var l=wZ(t.values.map(function(t){return It(t.x)}));return{labelWidth:u+s*2,spaceNeeded:l-Lt+u+s*2}});Tt=wZ(Ht.map(function(t){return t.labelWidth}));var Ut=wZ(Ht.map(function(t){return t.spaceNeeded}));var Gt=xZ([Ut,F/4]);Rt=F-Gt-this._margin.right}}if(dt&&Rt){this._xTest.domain(ot).height(a).maxSize(a/2).range([undefined,Rt]).select(pt.node()).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render()}if(r){this._x2Test.domain(st).height(a).range([undefined,Rt]).select(pt.node()).ticks(yt).width(F).config(Mt).tickSize(0).config(ft).config(this._x2Config).scale(Q).render()}var Vt=this._xTest._getRange();var Wt=this._x2Test._getRange();var qt=this._x2Test.outerBounds();var Kt=r?qt.height+this._x2Test.padding():0;var Yt=wZ([Ct,Vt[0],Wt[0]]);if(dt){this._xTest.range([Yt,undefined]).render()}var Xt=gt?this._yTest.shapeConfig().labelConfig.fontSize()/2:0;var Zt=wZ([At,F-Vt[1],F-Wt[1]]);var $t=this._xTest.outerBounds();var Jt=$t.height+(gt?this._xTest.padding():0);this._padding.left+=Yt;this._padding.right+=Zt;this._padding.bottom+=Jt;this._padding.top+=Kt+Xt;oQ(gQ(we.prototype),"_draw",this).call(this,e);var Qt=this._margin.left+this._margin.right;var te=this._margin.top+this._margin.bottom;var ee=[Kt,a-(Jt+Xt+te)];if(gt){this._yTest.domain(ut).height(a).maxSize(F/2).range(ee).select(pt.node()).ticks(bt).width(F).config(vt).config(this._yConfig).scale(Z).render()}St=this._yTest.outerBounds();Ct=St.width?St.width+this._yTest.padding():undefined;Yt=wZ([Ct,Vt[0],Wt[0]]);if(i){this._y2Test.config(vt).domain(lt).gridSize(0).height(a).range(ee).select(pt.node()).width(F-wZ([0,Zt-At])).title(false).config(this._y2Config).config(ht).scale($).render()}Et=this._y2Test.outerBounds();At=Et.width?Et.width+this._y2Test.padding():undefined;Zt=wZ([0,At,F-Vt[1],F-Wt[1]]);var ne=[Yt,F-(Zt+Qt)];var re=rb("g.d3plus-plot-background",{parent:f,transition:h});var ie="translate(".concat(this._margin.left,", ").concat(this._margin.top+Kt+Xt,")");var ae="translate(".concat(this._margin.left,", ").concat(this._margin.top+Xt,")");var oe=dt&&rb("g.d3plus-plot-x-axis",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}});var se=r&&rb("g.d3plus-plot-x2-axis",{parent:f,transition:h,enter:{transform:ae},update:{transform:ae}});var ue=Yt>Ct?Yt-Ct:0;var le="translate(".concat(this._margin.left+ue,", ").concat(this._margin.top+Xt,")");var ce=gt&&rb("g.d3plus-plot-y-axis",{parent:f,transition:h,enter:{transform:le},update:{transform:le}});var fe="translate(-".concat(this._margin.right,", ").concat(this._margin.top+Xt,")");var he=i&&rb("g.d3plus-plot-y2-axis",{parent:f,transition:h,enter:{transform:fe},update:{transform:fe}});this._xAxis.domain(ot).height(a-(Kt+Xt+te)).maxSize(a/2).range(ne).select(dt?oe.node():undefined).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render();if(r){this._x2Axis.domain(st).height(a-(Jt+Xt+te)).range(ne).select(se.node()).ticks(yt).width(F).config(Mt).config(ft).config(this._x2Config).scale(Q).render()}this._xFunc=tt=function t(e,n){if(n==="x2"){if(Q==="log"&&e===0)e=st[0]<0?z._x2Axis._d3Scale.domain()[1]:z._x2Axis._d3Scale.domain()[0];return z._x2Axis._getPosition.bind(z._x2Axis)(e)}else{if(J==="log"&&e===0)e=ot[0]<0?z._xAxis._d3Scale.domain()[1]:z._xAxis._d3Scale.domain()[0];return z._xAxis._getPosition.bind(z._xAxis)(e)}};ee=[this._xAxis.outerBounds().y+Kt,a-(Jt+Xt+te)];this._yAxis.domain(ut).height(a).maxSize(F/2).range(ee).select(gt?ce.node():undefined).ticks(bt).width(ne[ne.length-1]).config(vt).config(this._yConfig).scale(Z).render();if(i){this._y2Axis.config(vt).domain(i?lt:ut).gridSize(0).height(a).range(ee).select(he.node()).width(F-wZ([0,Zt-At])).title(false).config(this._y2Config).config(ht).scale($).render()}this._yFunc=nt=function t(e,n){if(n==="y2"){if($==="log"&&e===0)e=lt[1]<0?z._y2Axis._d3ScaleNegative.domain()[0]:z._y2Axis._d3Scale.domain()[1];return z._y2Axis._getPosition.bind(z._y2Axis)(e)-Kt}else{if(Z==="log"&&e===0)e=ut[1]<0?z._yAxis._d3ScaleNegative.domain()[0]:z._yAxis._d3Scale.domain()[1];return z._yAxis._getPosition.bind(z._yAxis)(e)-Kt}};(new r4).data([{}]).select(re.node()).x(ne[0]+(ne[1]-ne[0])/2).width(ne[1]-ne[0]).y(this._margin.top+Xt+ee[0]+(ee[1]-ee[0])/2).height(ee[1]-ee[0]).config(this._backgroundConfig).render();var de=rb("g.d3plus-plot-annotations",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}}).node();this._annotations.forEach(function(t){(new uC[t.shape]).config(t).config({x:function t(e){return e.x2?tt(e.x2,"x2"):tt(e.x)},x0:z._discrete==="x"?function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)}:tt(E.x[0]),x1:z._discrete==="x"?null:function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)},y:function t(e){return e.y2?nt(e.y2,"y2"):nt(e.y)},y0:z._discrete==="y"?function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)}:nt(E.y[1])-ge,y1:z._discrete==="y"?null:function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)-ge}}).select(de).render()});var ge=this._xAxis.barConfig()["stroke-width"];if(ge)ge/=2;var ve=this._discrete||"x";var pe={discrete:this._discrete,duration:this._duration,label:function t(e){return z._drawLabel(e.data,e.i)},select:rb("g.d3plus-plot-shapes",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}}).node(),x:function t(e){return e.x2!==undefined?tt(e.x2,"x2"):tt(e.x)},x0:ve==="x"?function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)}:tt(typeof this._baseline==="number"?this._baseline:E.x[0]),x1:ve==="x"?null:function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)},y:function t(e){return e.y2!==undefined?nt(e.y2,"y2"):nt(e.y)},y0:ve==="y"?function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)}:nt(typeof this._baseline==="number"?this._baseline:E.y[1])-ge,y1:ve==="y"?null:function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)-ge}};if(this._stacked){var ye=l==="x"?tt:nt;pe["".concat(l)]=pe["".concat(l,"0")]=function(t){var e=M.indexOf(t.id),n=C.indexOf(t.discrete);return e>=0?ye(A[e][n][0]):ye(E[l][l==="x"?0:1])};pe["".concat(l,"1")]=function(t){var e=M.indexOf(t.id),n=C.indexOf(t.discrete);return e>=0?ye(A[e][n][1]):ye(E[l][l==="x"?0:1])}}var me=Object.keys(this._on);it.forEach(function(e){var n=(new uC[e.key]).config(pe).data(e.values);if(e.key==="Bar"){var t;var r=z._discrete==="x"?tt:nt;var i=z._discrete==="x"?L:q;var a=z._discrete==="x"?ot:ut;var o=z._discrete==="x"?ne:ee;if(i!=="Point"&&a.length===2){t=(r(e.values[z._discrete==="x"?0:e.values.length-1][z._discrete])-r(a[0]))*2}else if(a.length>1)t=r(a[1])-r(a[0]);else t=o[o.length-1]-o[0];if(z._groupPadding<t)t-=z._groupPadding;var s=t||1;var u=Lb().key(function(t){return t[z._discrete]}).key(function(t){return t.group}).entries(e.values);var l=RZ(u.map(function(t){return t.values.map(function(t){return t.key})}));var c=Array.from(new Set(l));if(wZ(u.map(function(t){return t.values.length}))===1){n[z._discrete](function(t,e){return pe[z._discrete](t,e)})}else{s=(s-z._barPadding*c.length-1)/c.length;var f=t/2-s/2;var h=JZ().domain([0,c.length-1]).range([-f,f]);n[z._discrete](function(t,e){return pe[z._discrete](t,e)+h(c.indexOf(t.group))})}n.width(s);n.height(s)}else if(e.key==="Line"){n.duration(F*1.5);if(z._confidence){var d=Object.assign({},pe);var g=z._discrete||"x";var v=g==="x"?"y":"x";var p=g==="x"?nt:tt;d["".concat(v,"0")]=function(t){return p(z._confidence[0]?t.lci:t[v])};d["".concat(v,"1")]=function(t){return p(z._confidence[1]?t.hci:t[v])};var y=(new vS).config(d).data(e.values);var m=Object.assign(z._shapeConfig,z._confidenceConfig);y.config(ql(eb.bind(z)(m,"shape","Line"),eb.bind(z)(m,"shape","Area"))).render();z._shapes.push(y)}n.config({discrete:pe.discrete||"x",label:z._lineLabels?z._drawLabel:false,labelBounds:z._lineLabels?function(t,e,n){var r=ZJ(n.points[0],2),i=r[0],a=r[1];var o=ZJ(n.points[n.points.length-1],2),s=o[0],u=o[1];var l=z._height/4;return{x:s-i,y:u-a-l/2,width:Tt,height:l}}:false})}var _=me.filter(function(t){return t.includes(".".concat(e.key))}),b=me.filter(function(t){return!t.includes(".")}),w=me.filter(function(t){return t.includes(".shape")});var x=function t(i){n.on(b[i],function(t,e,n,r){return z._on[b[i]](t.data,t.i,n,r)})};for(var k=0;k<b.length;k++){x(k)}var S=function t(i){n.on(w[i],function(t,e,n,r){return z._on[w[i]](t.data,t.i,n,r)})};for(var C=0;C<w.length;C++){S(C)}var E=function t(i){n.on(_[i],function(t,e,n,r){return z._on[_[i]](t.data,t.i,n,r)})};for(var A=0;A<_.length;A++){E(A)}var M=eb.bind(z)(z._shapeConfig,"shape",e.key);if(z._shapeConfig.duration===undefined)delete M.duration;n.config(M).render();z._shapes.push(n);if(e.key==="Line"&&z._lineMarkers){var R=(new GS).data(e.values).config(pe).config(z._lineMarkerConfig).id(function(t){return"".concat(t.id,"_").concat(t.discrete)});var T=function t(i){R.on(b[i],function(t,e,n,r){return z._on[b[i]](t.data,t.i,n,r)})};for(var O=0;O<b.length;O++){T(O)}var P=function t(i){R.on(w[i],function(t,e,n,r){return z._on[w[i]](t.data,t.i,n,r)})};for(var B=0;B<w.length;B++){P(B)}var D=function t(i){R.on(_[i],function(t,e,n,r){return z._on[_[i]](t.data,t.i,n,r)})};for(var N=0;N<_.length;N++){D(N)}R.render();z._shapes.push(R)}});var _e=it.map(function(t){return t.key});if(_e.includes("Line")){if(this._confidence)_e.push("Area");if(this._labelMarkers)_e.push("Circle")}var be=this._previousShapes.filter(function(t){return!_e.includes(t)});be.forEach(function(t){(new uC[t]).config(pe).data([]).render()});this._previousShapes=_e;return this}},{key:"annotations",value:function t(e){return arguments.length?(this._annotations=e instanceof Array?e:[e],this):this._annotations}},{key:"backgroundConfig",value:function t(e){return arguments.length?(this._backgroundConfig=ql(this._backgroundConfig,e),this):this._backgroundConfig}},{key:"barPadding",value:function t(e){return arguments.length?(this._barPadding=e,this):this._barPadding}},{key:"baseline",value:function t(e){return arguments.length?(this._baseline=e,this):this._baseline}},{key:"confidence",value:function t(e){if(arguments.length&&e instanceof Array){this._confidence=[];var n=e[0];this._confidence[0]=typeof n==="function"||!n?n:Ul(n);var r=e[1];this._confidence[1]=typeof r==="function"||!r?r:Ul(r);return this}else return this._confidence}},{key:"confidenceConfig",value:function t(e){return arguments.length?(this._confidenceConfig=ql(this._confidenceConfig,e),this):this._confidenceConfig}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"discreteCutoff",value:function t(e){return arguments.length?(this._discreteCutoff=e,this):this._discreteCutoff}},{key:"groupPadding",value:function t(e){return arguments.length?(this._groupPadding=e,this):this._groupPadding}},{key:"lineLabels",value:function t(e){return arguments.length?(this._lineLabels=e,this):this._lineLabels}},{key:"lineMarkerConfig",value:function t(e){return arguments.length?(this._lineMarkerConfig=ql(this._lineMarkerConfig,e),this):this._lineMarkerConfig}},{key:"lineMarkers",value:function t(e){return arguments.length?(this._lineMarkers=e,this):this._lineMarkers}},{key:"shapeSort",value:function t(e){return arguments.length?(this._shapeSort=e,this):this._shapeSort}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Ul(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"stacked",value:function t(e){return arguments.length?(this._stacked=e,this):this._stacked}},{key:"stackOffset",value:function t(e){return arguments.length?(this._stackOffset=typeof e==="function"?e:F6["stackOffset".concat(e.charAt(0).toUpperCase()+e.slice(1))],this):this._stackOffset}},{key:"stackOrder",value:function t(e){if(arguments.length){if(typeof e==="string")this._stackOrder=e==="ascending"?mQ:e==="descending"?_Q:F6["stackOrder".concat(e.charAt(0).toUpperCase()+e.slice(1))];else this._stackOrder=e;return this}else return this._stackOrder}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=Ul(e);this._xKey=e}return this}else return this._x}},{key:"x2",value:function t(e){if(arguments.length){if(typeof e==="function")this._x2=e;else{this._x2=Ul(e);this._x2Key=e}return this}else return this._x2}},{key:"xConfig",value:function t(e){return arguments.length?(this._xConfig=ql(this._xConfig,e),this):this._xConfig}},{key:"xCutoff",value:function t(e){return arguments.length?(this._xCutoff=e,this):this._xCutoff}},{key:"x2Config",value:function t(e){return arguments.length?(this._x2Config=ql(this._x2Config,e),this):this._x2Config}},{key:"xDomain",value:function t(e){return arguments.length?(this._xDomain=e,this):this._xDomain}},{key:"x2Domain",value:function t(e){return arguments.length?(this._x2Domain=e,this):this._x2Domain}},{key:"xSort",value:function t(e){return arguments.length?(this._xSort=e,this):this._xSort}},{key:"x2Sort",value:function t(e){return arguments.length?(this._x2Sort=e,this):this._x2Sort}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=Ul(e);this._yKey=e}return this}else return this._y}},{key:"y2",value:function t(e){if(arguments.length){if(typeof e==="function")this._y2=e;else{this._y2=Ul(e);this._y2Key=e}return this}else return this._y2}},{key:"yConfig",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._yConfig=ql(this._yConfig,e);return this}return this._yConfig}},{key:"yCutoff",value:function t(e){return arguments.length?(this._yCutoff=e,this):this._yCutoff}},{key:"y2Config",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._y2Config=ql(this._y2Config,e);return this}return this._y2Config}},{key:"yDomain",value:function t(e){return arguments.length?(this._yDomain=e,this):this._yDomain}},{key:"y2Domain",value:function t(e){return arguments.length?(this._y2Domain=e,this):this._y2Domain}},{key:"ySort",value:function t(e){return arguments.length?(this._ySort=e,this):this._ySort}},{key:"y2Sort",value:function t(e){return arguments.length?(this._y2Sort=e,this):this._y2Sort}}]);return we}(nV);function SQ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){SQ=function t(e){return typeof e}}else{SQ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return SQ(t)}function CQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function EQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)AQ(t,e)}function AQ(t,e){AQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return AQ(t,e)}function MQ(i){var a=OQ();return function t(){var e=PQ(i),n;if(a){var r=PQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return RQ(this,n)}}function RQ(t,e){if(e&&(SQ(e)==="object"||typeof e==="function")){return e}return TQ(t)}function TQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function OQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function PQ(t){PQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return PQ(t)}var BQ=function(t){EQ(n,t);var e=MQ(n);function n(){var t;CQ(this,n);t=e.call(this);t._baseline=0;t._discrete="x";t._shape=nb("Area");t.x("x");return t}return n}(kQ);function DQ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){DQ=function t(e){return typeof e}}else{DQ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return DQ(t)}function NQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function zQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)FQ(t,e)}function FQ(t,e){FQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return FQ(t,e)}function jQ(i){var a=HQ();return function t(){var e=UQ(i),n;if(a){var r=UQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return IQ(this,n)}}function IQ(t,e){if(e&&(DQ(e)==="object"||typeof e==="function")){return e}return LQ(t)}function LQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function HQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function UQ(t){UQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return UQ(t)}var GQ=function(t){zQ(n,t);var e=jQ(n);function n(){var i;NQ(this,n);i=e.call(this);i._baseline=0;i._discrete="x";var a=i._legend;i._legend=function(t,e){var n=e.map(i._groupBy[i._legendDepth].bind(LQ(i))).sort().join();var r=i._filteredData.map(i._groupBy[i._legendDepth].bind(LQ(i))).sort().join();if(n===r)return false;return a.bind(LQ(i))(t,e)};i._shape=nb("Bar");i.x("x");return i}return n}(kQ);function VQ(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){VQ=function t(e){return typeof e}}else{VQ=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return VQ(t)}function WQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function qQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)KQ(t,e)}function KQ(t,e){KQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return KQ(t,e)}function YQ(i){var a=$Q();return function t(){var e=JQ(i),n;if(a){var r=JQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return XQ(this,n)}}function XQ(t,e){if(e&&(VQ(e)==="object"||typeof e==="function")){return e}return ZQ(t)}function ZQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function $Q(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function JQ(t){JQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return JQ(t)}var QQ=function(t){qQ(n,t);var e=YQ(n);function n(){var i;WQ(this,n);i=e.call(this);i._discrete="x";i._shape=nb("Box");i.x("x");i._tooltipConfig=ql(i._tooltipConfig,{title:function t(e,n){if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(i._label)return i._label(e,n);var r=i._ids(e,n).slice(0,i._drawDepth);return r[r.length-1]}});return i}return n}(kQ);function ttt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ttt=function t(e){return typeof e}}else{ttt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return ttt(t)}function ett(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ntt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)rtt(t,e)}function rtt(t,e){rtt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return rtt(t,e)}function itt(i){var a=stt();return function t(){var e=utt(i),n;if(a){var r=utt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return att(this,n)}}function att(t,e){if(e&&(ttt(e)==="object"||typeof e==="function")){return e}return ott(t)}function ott(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function stt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function utt(t){utt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return utt(t)}var ltt=function(t){ntt(n,t);var e=itt(n);function n(){var o;ett(this,n);o=e.call(this);o._discrete="x";o._shape=nb("Line");o.x("x");o.y2(function(t){return o._y(t)});o.yConfig({tickFormat:function t(e){var n=o._formattedData;var r=n[0].x instanceof Date?n[0].x.getTime():n[0].x;var i=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===r});var a=i.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.y2Config({tickFormat:function t(e){var n=o._formattedData;var r=n[n.length-1].x instanceof Date?n[n.length-1].x.getTime():n[n.length-1].x;var i=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===r});var a=i.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.ySort(function(t,e){return o._y(e)-o._y(t)});o.y2Sort(function(t,e){return o._y(e)-o._y(t)});return o}return n}(kQ);function ctt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ctt=function t(e){return typeof e}}else{ctt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return ctt(t)}function ftt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function htt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)dtt(t,e)}function dtt(t,e){dtt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return dtt(t,e)}function gtt(i){var a=ytt();return function t(){var e=mtt(i),n;if(a){var r=mtt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return vtt(this,n)}}function vtt(t,e){if(e&&(ctt(e)==="object"||typeof e==="function")){return e}return ptt(t)}function ptt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ytt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function mtt(t){mtt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return mtt(t)}var _tt=function(t){htt(n,t);var e=gtt(n);function n(){var t;ftt(this,n);t=e.call(this);t._discrete="x";t._shape=nb("Line");t.x("x");return t}return n}(kQ);function btt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){btt=function t(e){return typeof e}}else{btt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return btt(t)}function wtt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function xtt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function ktt(t,e,n){if(e)xtt(t.prototype,e);if(n)xtt(t,n);return t}function Stt(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Stt=Reflect.get}else{Stt=function t(e,n,r){var i=Ctt(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Stt(t,e,n||t)}function Ctt(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=Ptt(t);if(t===null)break}return t}function Ett(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Att(t,e)}function Att(t,e){Att=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Att(t,e)}function Mtt(i){var a=Ott();return function t(){var e=Ptt(i),n;if(a){var r=Ptt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Rtt(this,n)}}function Rtt(t,e){if(e&&(btt(e)==="object"||typeof e==="function")){return e}return Ttt(t)}function Ttt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Ott(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Ptt(t){Ptt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Ptt(t)}var Btt=Math.PI*2;var Dtt=function(t){Ett(_,t);var e=Mtt(_);function _(){var t;wtt(this,_);t=e.call(this);t._axisConfig={shapeConfig:{fill:nb("none"),labelConfig:{fontColor:"#999",padding:0,textAnchor:function t(e,n,r){return r.textAnchor},verticalAlign:"middle"},stroke:"#eee",strokeWidth:nb(1)}};t._discrete="metric";t._levels=6;t._metric=Ul("metric");t._outerPadding=100;t._shape=nb("Path");t._value=Ul("value");return t}ktt(_,[{key:"_draw",value:function t(e){var d=this;Stt(Ptt(_.prototype),"_draw",this).call(this,e);var f=this._height-this._margin.top-this._margin.bottom,h=this._width-this._margin.left-this._margin.right;var g=xZ([f,h])/2-this._outerPadding,n="translate(".concat(h/2,", ").concat(f/2,")");var r=Lb().key(this._metric).entries(this._filteredData),i=Lb().key(this._id).key(this._metric).entries(this._filteredData);var a=wZ(i.map(function(t){return t.values.map(function(t){return OZ(t.values,function(t,e){return d._value(t,e)})})}).flat());var o=Array.from(Array(this._levels).keys()).map(function(t){return{id:t,r:g*((t+1)/d._levels)}});var s=eb.bind(this)(this._axisConfig.shapeConfig,"shape","Circle");delete s.label;(new GS).data(o).select(rb("g.d3plus-Radar-radial-circles",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(s).render();var v=r.length;var u=r.map(function(t,e){var n=d._outerPadding;var r=d._shapeConfig.labelConfig.fontSize&&d._shapeConfig.labelConfig.fontSize(t,e)||11;var i=r*1.4;var a=i*2;var o=10,s=parseInt(360-360/v*e/90,10)%4+1,u=Btt/v*e;var l=360/v*e;var c="start";var f=o;if(s===2||s===3){f=-n-o;c="end";l+=180}var h={x:f,y:-a/2,width:n,height:a};return{__d3plus__:true,data:Xb(t.values,d._aggs),i:e,id:t.key,angle:l,textAnchor:c,labelBounds:h,rotateAnchor:[-f,a/2],x:g*Math.cos(u),y:g*Math.sin(u)}}).sort(function(t,e){return t.key-e.key});(new r4).data(u).rotate(function(t){return t.angle||0}).width(0).height(0).x(function(t){return t.x}).y(function(t){return t.y}).label(function(t){return t.id}).labelBounds(function(t){return t.labelBounds}).labelConfig(this._axisConfig.shapeConfig.labelConfig).select(rb("g.d3plus-Radar-text",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).render();(new sC).data(u).d(function(t){return"M".concat(0,",",0," ",-t.x,",").concat(-t.y)}).select(rb("g.d3plus-Radar-axis",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(eb.bind(this)(this._axisConfig.shapeConfig,"shape","Path")).render();var l=i.map(function(t){var e=t.values.map(function(t,e){var n=OZ(t.values,function(t,e){return d._value(t,e)});var r=n/a*g,i=Btt/v*e;return{x:r*Math.cos(i),y:r*Math.sin(i)}});var n="M ".concat(e[0].x," ").concat(e[0].y," ").concat(e.map(function(t){return"L ".concat(t.x," ").concat(t.y)}).join(" ")," L ").concat(e[0].x," ").concat(e[0].y);return{arr:t.values.map(function(t){return Xb(t.values,d._aggs)}),id:t.key,points:e,d:n,__d3plus__:true,data:Xb(t.values.map(function(t){return Xb(t.values,d._aggs)}),d._aggs)}});var p=eb.bind(this)(this._shapeConfig,"shape","Path");var y=Object.keys(p.on);p.on={};var c=function t(e){var c=y[e];p.on[c]=function(t,e,n,r){var i=t.points.map(function(t){return t.x+h/2});var a=t.points.map(function(t){return t.y+f/2});var o=Hs(r,d._select.node());var s=i.map(function(t){return Math.abs(t-o[0])});var u=a.map(function(t){return Math.abs(t-o[1])});var l=s.map(function(t,e){return t+u[e]});d._on[c].bind(d)(t.arr[l.indexOf(xZ(l))],e,n,r)}};for(var m=0;m<y.length;m++){c(m)}this._shapes.push((new sC).data(l).d(function(t){return t.d}).select(rb("g.d3plus-Radar-items",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(p).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=ql(this._axisConfig,e),this):this._axisConfig}},{key:"metric",value:function t(e){return arguments.length?(this._metric=typeof e==="function"?e:Ul(e),this):this._metric}},{key:"outerPadding",value:function t(e){return arguments.length?(this._outerPadding=e,this):this._outerPadding}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Ul(e),this):this._value}}]);return _}(nV);function Ntt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ntt=function t(e){return typeof e}}else{Ntt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Ntt(t)}function ztt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Ftt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)jtt(t,e)}function jtt(t,e){jtt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return jtt(t,e)}function Itt(i){var a=Utt();return function t(){var e=Gtt(i),n;if(a){var r=Gtt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Ltt(this,n)}}function Ltt(t,e){if(e&&(Ntt(e)==="object"||typeof e==="function")){return e}return Htt(t)}function Htt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Utt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Gtt(t){Gtt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Gtt(t)}var Vtt=function(t){Ftt(n,t);var e=Itt(n);function n(){var t;ztt(this,n);t=e.call(this);t._stacked=true;return t}return n}(BQ);function Wtt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Wtt=function t(e){return typeof e}}else{Wtt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Wtt(t)}function qtt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Ktt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function Ytt(t,e,n){if(e)Ktt(t.prototype,e);if(n)Ktt(t,n);return t}function Xtt(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Xtt=Reflect.get}else{Xtt=function t(e,n,r){var i=Ztt(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Xtt(t,e,n||t)}function Ztt(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=ret(t);if(t===null)break}return t}function $tt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Jtt(t,e)}function Jtt(t,e){Jtt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Jtt(t,e)}function Qtt(i){var a=net();return function t(){var e=ret(i),n;if(a){var r=ret(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return tet(this,n)}}function tet(t,e){if(e&&(Wtt(e)==="object"||typeof e==="function")){return e}return eet(t)}function eet(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function net(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function ret(t){ret=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ret(t)}var iet=function(t){$tt(v,t);var e=Qtt(v);function v(){var r;qtt(this,v);r=e.call(this);r._axis=(new OC).align("end").orient("bottom");r._axisConfig={scale:"time"};r._axisTest=(new OC).align("end").gridSize(0).orient("bottom");r.end("end");r._paddingInner=.05;r._paddingOuter=.05;r._shapeConfig=ql({},r._shapeConfig,{ariaLabel:function t(e,n){return"".concat(r._drawLabel(e,n),", ").concat(r._start(e,n)," - ").concat(r._end(e,n),".")}});r.start("start");return r}Ytt(v,[{key:"_draw",value:function t(e){var n=this;Xtt(ret(v.prototype),"_draw",this).call(this,e);if(!this._filteredData)return this;var r=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,end:n._axisConfig.scale==="time"?lC(n._end(t,e)):n._end(t,e),i:e,id:n._id(t,e),start:n._axisConfig.scale==="time"?lC(n._start(t,e)):n._start(t,e)}}).filter(function(t){return t.end-t.start>0}).sort(function(t,e){return t.start-e.start});var i;if(this._groupBy.length>1&&this._drawDepth>0){var a=Lb();var o=function t(e){a.key(function(t){return n._groupBy[e](t.data,t.i)})};for(var s=0;s<this._drawDepth;s++){o(s)}i=a.entries(r)}else i=[{values:r}];var u=0;i.forEach(function(t){var n=[];t.values.forEach(function(e){n=n.map(function(t){return t<=e.start?false:t});var t=n.indexOf(false);if(t<0){e.lane=u+n.length;n.push(e.end)}else{n[t]=e.end;e.lane=u+t}});u+=n.length});var l={domain:[Ab(r,function(t){return t.start})||0,Eb(r,function(t){return t.end})||0],height:this._height-this._margin.top-this._margin.bottom,width:this._width-this._margin.left-this._margin.right};var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._axisTest.config(l).config(this._axisConfig).select(rb("g.d3plus-priestley-axis-test",{parent:this._select,enter:{opacity:0}}).node()).render();this._axis.config(l).config(this._axisConfig).select(rb("g.d3plus-priestley-axis",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).render();var f=this._axisTest._padding;var h=this._axis._d3Scale;var d=i2().domain(Nb(0,u,1)).paddingInner(this._paddingInner).paddingOuter(this._paddingOuter).rangeRound([this._height-this._margin.bottom-this._axisTest.outerBounds().height-f,this._margin.top+f]);var g=d.bandwidth();this._shapes.push((new r4).data(r).duration(this._duration).height(g).label(function(t,e){return n._drawLabel(t.data,e)}).select(rb("g.d3plus-priestley-shapes",{parent:this._select}).node()).width(function(t){var e=Math.abs(h(t.end)-h(t.start));return e>2?e-2:e}).x(function(t){return h(t.start)+(h(t.end)-h(t.start))/2}).y(function(t){return d(t.lane)+g/2}).config(eb.bind(this)(this._shapeConfig,"shape","Rect")).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=ql(this._axisConfig,e),this):this._axisConfig}},{key:"end",value:function t(e){if(arguments.length){if(typeof e==="function")this._end=e;else{this._end=Ul(e);if(!this._aggs[e])this._aggs[e]=Eb}return this}else return this._end}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"start",value:function t(e){if(arguments.length){if(typeof e==="function")this._start=e;else{this._start=Ul(e);if(!this._aggs[e])this._aggs[e]=Ab}return this}else return this._start}}]);return v}(nV);t.Area=vS;t.AreaPlot=BQ;t.Axis=OC;t.AxisBottom=HC;t.AxisLeft=$C;t.AxisRight=s5;t.AxisTop=y5;t.Bar=RS;t.BarChart=GQ;t.BaseClass=J_;t.Box=G4;t.BoxWhisker=QQ;t.BumpChart=ltt;t.Circle=GS;t.ColorScale=vL;t.Donut=ZV;t.Geomap=EV;t.Image=u3;t.Legend=nL;t.Line=y4;t.LinePlot=_tt;t.Matrix=NK;t.Network=YY;t.Pack=Rq;t.Path=sC;t.Pie=LV;t.Plot=kQ;t.Priestley=iet;t.RESET=G_;t.Radar=Dtt;t.RadialMatrix=ZK;t.Rect=r4;t.Rings=uX;t.Sankey=rZ;t.Shape=K9;t.StackedArea=Vtt;t.TextBox=T9;t.Timeline=RL;t.Tooltip=qU;t.Tree=qq;t.Treemap=sK;t.Viz=nV;t.Whisker=T4;t.accessor=Ul;t.addToQueue=Zj;t.assign=ql;t.attrize=Kl;t.ckmeans=GI;t.closest=Q_;t.colorAdd=Qb;t.colorAssign=Cw;t.colorContrast=Ew;t.colorDefaults=Sw;t.colorLegible=Aw;t.colorLighter=Mw;t.colorSubtract=Rw;t.configPrep=eb;t.constant=nb;t.dataConcat=hj;t.dataFold=Kj;t.dataLoad=Xj;t.date=lC;t.dom2canvas=CA;t.elem=rb;t.findLocale=L_;t.fontExists=$6;t.format=zw;t.formatAbbreviate=Nw;t.formatDate=r3;t.formatDefaultLocale=Fw;t.formatLocale=Tw;t.isData=gj;t.isObject=Vl;t.largestRect=eS;t.lineIntersection=xk;t.merge=Xb;t.parseSides=Zb;t.path2polygon=K4;t.pointDistance=N9;t.pointDistanceSquared=D9;t.pointRotate=Ik;t.polygonInside=Ok;t.polygonRayCast=jk;t.polygonRotate=Lk;t.prefix=$b;t.rtl=J6;t.saveElement=MA;t.segmentBoxContains=Rk;t.segmentsIntersect=Tk;t.shapeEdgePoint=W4;t.simplify=Wk;t.stringify=Q6;t.strip=e9;t.stylize=Jb;t.textSplit=p9;t.textWidth=I6;t.textWrap=y9;t.titleCase=B9;t.trim=L6;t.trimLeft=H6;t.trimRight=U6;t.unique=Yb;t.uuid=U_;t.version=n;Object.defineProperty(t,"__esModule",{value:true})}); |