suitepro/plugins/additionals/assets/javascripts/d3plus-hierarchy.full.min.js

31 lines
No EOL
768 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
d3plus-hierarchy v0.9.0
Nested, hierarchical, and cluster charts built on D3
Copyright (c) 2020 D3plus - https://d3plus.org
@license MIT
*/
(function(e){typeof define==="function"&&define.amd?define(e):e()})(function(){"use strict";var e=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}var n=function(e){return e&&e.Math==Math&&e};var c=n(typeof globalThis=="object"&&globalThis)||n(typeof window=="object"&&window)||n(typeof self=="object"&&self)||n(typeof e=="object"&&e)||Function("return this")();var o=function(e){try{return!!e()}catch(e){return true}};var d=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});var i={}.propertyIsEnumerable;var a=Object.getOwnPropertyDescriptor;var r=a&&!i.call({1:2},1);var s=r?function e(t){var n=a(this,t);return!!n&&n.enumerable}:i;var g={f:s};var l=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}};var u={}.toString;var h=function(e){return u.call(e).slice(8,-1)};var f="".split;var b=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(e){return h(e)=="String"?f.call(e,""):Object(e)}:Object;var p=function(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e};var v=function(e){return b(p(e))};var m=function(e){return typeof e==="object"?e!==null:typeof e==="function"};var y=function(e,t){if(!m(e))return e;var n,i;if(t&&typeof(n=e.toString)=="function"&&!m(i=n.call(e)))return i;if(typeof(n=e.valueOf)=="function"&&!m(i=n.call(e)))return i;if(!t&&typeof(n=e.toString)=="function"&&!m(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")};var _={}.hasOwnProperty;var w=function(e,t){return _.call(e,t)};var x=c.document;var k=m(x)&&m(x.createElement);var S=function(e){return k?x.createElement(e):{}};var C=!d&&!o(function(){return Object.defineProperty(S("div"),"a",{get:function(){return 7}}).a!=7});var E=Object.getOwnPropertyDescriptor;var A=d?E:function e(t,n){t=v(t);n=y(n,true);if(C)try{return E(t,n)}catch(e){}if(w(t,n))return l(!g.f.call(t,n),t[n])};var R={f:A};var M=function(e){if(!m(e)){throw TypeError(String(e)+" is not an object")}return e};var T=Object.defineProperty;var B=d?T:function e(t,n,i){M(t);n=y(n,true);M(i);if(C)try{return T(t,n,i)}catch(e){}if("get"in i||"set"in i)throw TypeError("Accessors not supported");if("value"in i)t[n]=i.value;return t};var N={f:B};var D=d?function(e,t,n){return N.f(e,t,l(1,n))}:function(e,t,n){e[t]=n;return e};var P=function(t,n){try{D(c,t,n)}catch(e){c[t]=n}return n};var O="__core-js_shared__";var z=c[O]||P(O,{});var F=z;var L=Function.toString;if(typeof F.inspectSource!="function"){F.inspectSource=function(e){return L.call(e)}}var I=F.inspectSource;var j=c.WeakMap;var H=typeof j==="function"&&/native code/.test(I(j));var V=t(function(e){(e.exports=function(e,t){return F[e]||(F[e]=t!==undefined?t:{})})("versions",[]).push({version:"3.6.5",mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})});var U=0;var G=Math.random();var W=function(e){return"Symbol("+String(e===undefined?"":e)+")_"+(++U+G).toString(36)};var K=V("keys");var q=function(e){return K[e]||(K[e]=W(e))};var Y={};var X=c.WeakMap;var $,Z,J;var Q=function(e){return J(e)?Z(e):$(e,{})};var ee=function(n){return function(e){var t;if(!m(e)||(t=Z(e)).type!==n){throw TypeError("Incompatible receiver, "+n+" required")}return t}};if(H){var te=new X;var ne=te.get;var ie=te.has;var ae=te.set;$=function(e,t){ae.call(te,e,t);return t};Z=function(e){return ne.call(te,e)||{}};J=function(e){return ie.call(te,e)}}else{var re=q("state");Y[re]=true;$=function(e,t){D(e,re,t);return t};Z=function(e){return w(e,re)?e[re]:{}};J=function(e){return w(e,re)}}var oe={set:$,get:Z,has:J,enforce:Q,getterFor:ee};var se=t(function(e){var t=oe.get;var s=oe.enforce;var l=String(String).split("String");(e.exports=function(e,t,n,i){var a=i?!!i.unsafe:false;var r=i?!!i.enumerable:false;var o=i?!!i.noTargetGet:false;if(typeof n=="function"){if(typeof t=="string"&&!w(n,"name"))D(n,"name",t);s(n).source=l.join(typeof t=="string"?t:"")}if(e===c){if(r)e[t]=n;else P(t,n);return}else if(!a){delete e[t]}else if(!o&&e[t]){r=true}if(r)e[t]=n;else D(e,t,n)})(Function.prototype,"toString",function e(){return typeof this=="function"&&t(this).source||I(this)})});var le=c;var ue=function(e){return typeof e=="function"?e:undefined};var he=function(e,t){return arguments.length<2?ue(le[e])||ue(c[e]):le[e]&&le[e][t]||c[e]&&c[e][t]};var ce=Math.ceil;var fe=Math.floor;var de=function(e){return isNaN(e=+e)?0:(e>0?fe:ce)(e)};var ge=Math.min;var pe=function(e){return e>0?ge(de(e),9007199254740991):0};var ve=Math.max;var me=Math.min;var ye=function(e,t){var n=de(e);return n<0?ve(n+t,0):me(n,t)};var _e=function(s){return function(e,t,n){var i=v(e);var a=pe(i.length);var r=ye(n,a);var o;if(s&&t!=t)while(a>r){o=i[r++];if(o!=o)return true}else for(;a>r;r++){if((s||r in i)&&i[r]===t)return s||r||0}return!s&&-1}};var be={includes:_e(true),indexOf:_e(false)};var we=be.indexOf;var xe=function(e,t){var n=v(e);var i=0;var a=[];var r;for(r in n)!w(Y,r)&&w(n,r)&&a.push(r);while(t.length>i)if(w(n,r=t[i++])){~we(a,r)||a.push(r)}return a};var ke=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Se=ke.concat("length","prototype");var Ce=Object.getOwnPropertyNames||function e(t){return xe(t,Se)};var Ee={f:Ce};var Ae=Object.getOwnPropertySymbols;var Re={f:Ae};var Me=he("Reflect","ownKeys")||function e(t){var n=Ee.f(M(t));var i=Re.f;return i?n.concat(i(t)):n};var Te=function(e,t){var n=Me(t);var i=N.f;var a=R.f;for(var r=0;r<n.length;r++){var o=n[r];if(!w(e,o))i(e,o,a(t,o))}};var Be=/#|\.prototype\./;var Ne=function(e,t){var n=Pe[De(e)];return n==ze?true:n==Oe?false:typeof t=="function"?o(t):!!t};var De=Ne.normalize=function(e){return String(e).replace(Be,".").toLowerCase()};var Pe=Ne.data={};var Oe=Ne.NATIVE="N";var ze=Ne.POLYFILL="P";var Fe=Ne;var Le=R.f;var Ie=function(e,t){var n=e.target;var i=e.global;var a=e.stat;var r,o,s,l,u,h;if(i){o=c}else if(a){o=c[n]||P(n,{})}else{o=(c[n]||{}).prototype}if(o)for(s in t){u=t[s];if(e.noTargetGet){h=Le(o,s);l=h&&h.value}else l=o[s];r=Fe(i?s:n+(a?".":"#")+s,e.forced);if(!r&&l!==undefined){if(typeof u===typeof l)continue;Te(u,l)}if(e.sham||l&&l.sham){D(u,"sham",true)}se(o,s,u,e)}};var je=function(e){if(typeof e!="function"){throw TypeError(String(e)+" is not a function")}return e};var He=function(i,a,e){je(i);if(a===undefined)return i;switch(e){case 0:return function(){return i.call(a)};case 1:return function(e){return i.call(a,e)};case 2:return function(e,t){return i.call(a,e,t)};case 3:return function(e,t,n){return i.call(a,e,t,n)}}return function(){return i.apply(a,arguments)}};var Ve=function(e){return Object(p(e))};var Ue=Array.isArray||function e(t){return h(t)=="Array"};var Ge=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())});var We=Ge&&!Symbol.sham&&typeof Symbol.iterator=="symbol";var Ke=V("wks");var qe=c.Symbol;var Ye=We?qe:qe&&qe.withoutSetter||W;var Xe=function(e){if(!w(Ke,e)){if(Ge&&w(qe,e))Ke[e]=qe[e];else Ke[e]=Ye("Symbol."+e)}return Ke[e]};var $e=Xe("species");var Ze=function(e,t){var n;if(Ue(e)){n=e.constructor;if(typeof n=="function"&&(n===Array||Ue(n.prototype)))n=undefined;else if(m(n)){n=n[$e];if(n===null)n=undefined}}return new(n===undefined?Array:n)(t===0?0:t)};var Je=[].push;var Qe=function(d){var g=d==1;var p=d==2;var v=d==3;var m=d==4;var y=d==6;var _=d==5||y;return function(e,t,n,i){var a=Ve(e);var r=b(a);var o=He(t,n,3);var s=pe(r.length);var l=0;var u=i||Ze;var h=g?u(e,s):p?u(e,0):undefined;var c,f;for(;s>l;l++)if(_||l in r){c=r[l];f=o(c,l,a);if(d){if(g)h[l]=f;else if(f)switch(d){case 3:return true;case 5:return c;case 6:return l;case 2:Je.call(h,c)}else if(m)return false}}return y?-1:v||m?m:h}};var et={forEach:Qe(0),map:Qe(1),filter:Qe(2),some:Qe(3),every:Qe(4),find:Qe(5),findIndex:Qe(6)};var tt=Object.keys||function e(t){return xe(t,ke)};var nt=d?Object.defineProperties:function e(t,n){M(t);var i=tt(n);var a=i.length;var r=0;var o;while(a>r)N.f(t,o=i[r++],n[o]);return t};var it=he("document","documentElement");var at=">";var rt="<";var ot="prototype";var st="script";var lt=q("IE_PROTO");var ut=function(){};var ht=function(e){return rt+st+at+e+rt+"/"+st+at};var ct=function(e){e.write(ht(""));e.close();var t=e.parentWindow.Object;e=null;return t};var ft=function(){var e=S("iframe");var t="java"+st+":";var n;e.style.display="none";it.appendChild(e);e.src=String(t);n=e.contentWindow.document;n.open();n.write(ht("document.F=Object"));n.close();return n.F};var dt;var gt=function(){try{dt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}gt=dt?ct(dt):ft();var e=ke.length;while(e--)delete gt[ot][ke[e]];return gt()};Y[lt]=true;var pt=Object.create||function e(t,n){var i;if(t!==null){ut[ot]=M(t);i=new ut;ut[ot]=null;i[lt]=t}else i=gt();return n===undefined?i:nt(i,n)};var vt=Xe("unscopables");var mt=Array.prototype;if(mt[vt]==undefined){N.f(mt,vt,{configurable:true,value:pt(null)})}var yt=function(e){mt[vt][e]=true};var _t=Object.defineProperty;var bt={};var wt=function(e){throw e};var xt=function(e,t){if(w(bt,e))return bt[e];if(!t)t={};var n=[][e];var i=w(t,"ACCESSORS")?t.ACCESSORS:false;var a=w(t,0)?t[0]:wt;var r=w(t,1)?t[1]:undefined;return bt[e]=!!n&&!o(function(){if(i&&!d)return true;var e={length:-1};if(i)_t(e,1,{enumerable:true,get:wt});else e[1]=1;n.call(e,a,r)})};var kt=et.find;var St="find";var Ct=true;var Et=xt(St);if(St in[])Array(1)[St](function(){Ct=false});Ie({target:"Array",proto:true,forced:Ct||!Et},{find:function e(t){return kt(this,t,arguments.length>1?arguments[1]:undefined)}});yt(St);var At=be.includes;var Rt=xt("indexOf",{ACCESSORS:true,1:0});Ie({target:"Array",proto:true,forced:!Rt},{includes:function e(t){return At(this,t,arguments.length>1?arguments[1]:undefined)}});yt("includes");var Mt=Object.assign;var Tt=Object.defineProperty;var Bt=!Mt||o(function(){if(d&&Mt({b:1},Mt(Tt({},"a",{enumerable:true,get:function(){Tt(this,"b",{value:3,enumerable:false})}}),{b:2})).b!==1)return true;var e={};var t={};var n=Symbol();var i="abcdefghijklmnopqrst";e[n]=7;i.split("").forEach(function(e){t[e]=e});return Mt({},e)[n]!=7||tt(Mt({},t)).join("")!=i})?function e(t,n){var i=Ve(t);var a=arguments.length;var r=1;var o=Re.f;var s=g.f;while(a>r){var l=b(arguments[r++]);var u=o?tt(l).concat(o(l)):tt(l);var h=u.length;var c=0;var f;while(h>c){f=u[c++];if(!d||s.call(l,f))i[f]=l[f]}}return i}:Mt;Ie({target:"Object",stat:true,forced:Object.assign!==Bt},{assign:Bt});var Nt=Xe("match");var Dt=function(e){var t;return m(e)&&((t=e[Nt])!==undefined?!!t:h(e)=="RegExp")};var Pt=function(e){if(Dt(e)){throw TypeError("The method doesn't accept regular expressions")}return e};var Ot=Xe("match");var zt=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{n[Ot]=false;return"/./"[t](n)}catch(e){}}return false};Ie({target:"String",proto:true,forced:!zt("includes")},{includes:function e(t){return!!~String(p(this)).indexOf(Pt(t),arguments.length>1?arguments[1]:undefined)}});var Ft=R.f;var Lt="".startsWith;var It=Math.min;var jt=zt("startsWith");var Ht=!jt&&!!function(){var e=Ft(String.prototype,"startsWith");return e&&!e.writable}();Ie({target:"String",proto:true,forced:!Ht&&!jt},{startsWith:function e(t){var n=String(p(this));Pt(t);var i=pe(It(arguments.length>1?arguments[1]:undefined,n.length));var a=String(t);return Lt?Lt.call(n,a,i):n.slice(i,i+a.length)===a}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(e){return}function n(e){switch(e.nodeType){case 1:return a(e);case 3:return t(e);case 8:return i(e)}}function t(e){return e.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function i(e){return"\x3c!--"+e.nodeValue+"--\x3e"}function a(e){var t="";t+="<"+e.tagName;if(e.hasAttributes()){[].forEach.call(e.attributes,function(e){t+=" "+e.name+'="'+e.value+'"'})}t+=">";if(e.hasChildNodes()){[].forEach.call(e.childNodes,function(e){t+=n(e)})}t+="</"+e.tagName+">";return t}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function(){var t="";[].forEach.call(this.childNodes,function(e){t+=n(e)});return t},set:function(e){while(this.firstChild){this.removeChild(this.firstChild)}try{var t=new DOMParser;t.async=false;var n="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+e+"</svg>";var i=t.parseFromString(n,"text/xml").documentElement;[].forEach.call(i.childNodes,function(e){this.appendChild(this.ownerDocument.importNode(e,true))}.bind(this))}catch(e){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function(){return this.innerHTML},set:function(e){this.innerHTML=e}})})()}});(function(e,t){typeof exports==="object"&&typeof module!=="undefined"?t(exports):typeof define==="function"&&define.amd?define("d3plus-hierarchy",["exports"],t):(e=e||self,t(e.d3plus={}))})(this,function(e){function F(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){F=function(e){return typeof e}}else{F=function(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return F(e)}function o(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function n(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}function m(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);if(e)i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable});n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};if(e%2){a(Object(n),true).forEach(function(e){m(t,e,n[e])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))}else{a(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}}return t}function s(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)l(e,t)}function y(e){y=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return y(e)}function l(e,t){l=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return l(e,t)}function t(){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(e){return false}}function u(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function h(e,t){if(t&&(typeof t==="object"||typeof t==="function")){return t}return u(e)}function c(a){var r=t();return function e(){var t=y(a),n;if(r){var i=y(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return h(this,n)}}function f(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=y(e);if(e===null)break}return e}function _(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){_=Reflect.get}else{_=function e(t,n,i){var a=f(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return _(e,t,n||e)}function d(e){return g(e)||p(e)||v(e)||w()}function g(e){if(Array.isArray(e))return b(e)}function p(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function v(e,t){if(!e)return;if(typeof e==="string")return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return b(e,t)}function b(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function w(){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 x(e,t){var n;if(typeof Symbol==="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=v(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var i=0;var a=function(){};return{s:a,n:function(){if(i>=e.length)return{done:true};return{done:false,value:e[i++]}},e:function(e){throw e},f:a}}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 r=true,o=false,s;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();r=e.done;return e},e:function(e){o=true;s=e},f:function(){try{if(!r&&n.return!=null)n.return()}finally{if(o)throw s}}}}function k(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function S(o){if(o.length===1)o=C(o);return{left:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i<a){var r=i+a>>>1;if(o(t[r],n)<0)i=r+1;else a=r}return i},right:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i<a){var r=i+a>>>1;if(o(t[r],n)>0)a=r;else i=r+1}return i}}}function C(n){return function(e,t){return k(n(e),t)}}var E=S(k);var A=E.right;function R(e){return e===null?NaN:+e}function M(e,t){var n=e.length,i=0,a=-1,r=0,o,s,l=0;if(t==null){while(++a<n){if(!isNaN(o=R(e[a]))){s=o-r;r+=s/++i;l+=s*(o-r)}}}else{while(++a<n){if(!isNaN(o=R(t(e[a],a,e)))){s=o-r;r+=s/++i;l+=s*(o-r)}}}if(i>1)return l/(i-1)}function Te(e,t){var n=M(e,t);return n?Math.sqrt(n):n}function Be(e,t){var n=e.length,i=-1,a,r,o;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=o=a;while(++i<n){if((a=e[i])!=null){if(r>a)r=a;if(o<a)o=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=o=a;while(++i<n){if((a=t(e[i],i,e))!=null){if(r>a)r=a;if(o<a)o=a}}}}}return[r,o]}function Ne(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;var i=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,r=new Array(a);while(++i<a){r[i]=e+i*n}return r}var T=Math.sqrt(50),B=Math.sqrt(10),N=Math.sqrt(2);function pe(e,t,n){var i,a=-1,r,o,s;t=+t,e=+e,n=+n;if(e===t&&n>0)return[e];if(i=t<e)r=e,e=t,t=r;if((s=D(e,t,n))===0||!isFinite(s))return[];if(s>0){e=Math.ceil(e/s);t=Math.floor(t/s);o=new Array(r=Math.ceil(t-e+1));while(++a<r){o[a]=(e+a)*s}}else{e=Math.floor(e*s);t=Math.ceil(t*s);o=new Array(r=Math.ceil(e-t+1));while(++a<r){o[a]=(e-a)/s}}if(i)o.reverse();return o}function D(e,t,n){var i=(t-e)/Math.max(0,n),a=Math.floor(Math.log(i)/Math.LN10),r=i/Math.pow(10,a);return a>=0?(r>=T?10:r>=B?5:r>=N?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(r>=T?10:r>=B?5:r>=N?2:1)}function P(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/a;if(r>=T)a*=10;else if(r>=B)a*=5;else if(r>=N)a*=2;return t<e?-a:a}function De(e,t,n){if(n==null)n=R;if(!(i=e.length))return;if((t=+t)<=0||i<2)return+n(e[0],0,e);if(t>=1)return+n(e[i-1],i-1,e);var i,a=(i-1)*t,r=Math.floor(a),o=+n(e[r],r,e),s=+n(e[r+1],r+1,e);return o+(s-o)*(a-r)}function ve(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=a;while(++i<n){if((a=e[i])!=null&&a>r){r=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=a;while(++i<n){if((a=t(e[i],i,e))!=null&&a>r){r=a}}}}}return r}function Pe(e){var t=e.length,n,i=-1,a=0,r,o;while(++i<t){a+=e[i].length}r=new Array(a);while(--t>=0){o=e[t];n=o.length;while(--n>=0){r[--a]=o[n]}}return r}function Oe(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i<n){if((a=e[i])!=null&&a>=a){r=a;while(++i<n){if((a=e[i])!=null&&r>a){r=a}}}}}else{while(++i<n){if((a=t(e[i],i,e))!=null&&a>=a){r=a;while(++i<n){if((a=t(e[i],i,e))!=null&&r>a){r=a}}}}}return r}function O(e,t){var n=e.length,i=-1,a,r=0;if(t==null){while(++i<n){if(a=+e[i])r+=a}}else{while(++i<n){if(a=+t(e[i],i,e))r+=a}}return r}var z=Math.PI,L=2*z,I=1e-6,j=L-I;function H(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function K(){return new H}H.prototype=K.prototype={constructor:H,moveTo:function e(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function e(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function e(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function e(t,n,i,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function e(t,n,i,a,r,o){this._+="C"+ +t+","+ +n+","+ +i+","+ +a+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function e(t,n,i,a,r){t=+t,n=+n,i=+i,a=+a,r=+r;var o=this._x1,s=this._y1,l=i-t,u=a-n,h=o-t,c=s-n,f=h*h+c*c;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+(this._x1=t)+","+(this._y1=n)}else if(!(f>I));else if(!(Math.abs(c*l-u*h)>I)||!r){this._+="L"+(this._x1=t)+","+(this._y1=n)}else{var d=i-o,g=a-s,p=l*l+u*u,v=d*d+g*g,m=Math.sqrt(p),y=Math.sqrt(f),_=r*Math.tan((z-Math.acos((p+f-v)/(2*m*y)))/2),b=_/y,w=_/m;if(Math.abs(b-1)>I){this._+="L"+(t+b*h)+","+(n+b*c)}this._+="A"+r+","+r+",0,0,"+ +(c*d>h*g)+","+(this._x1=t+w*l)+","+(this._y1=n+w*u)}},arc:function e(t,n,i,a,r,o){t=+t,n=+n,i=+i;var s=i*Math.cos(a),l=i*Math.sin(a),u=t+s,h=n+l,c=1^o,f=o?a-r:r-a;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null){this._+="M"+u+","+h}else if(Math.abs(this._x1-u)>I||Math.abs(this._y1-h)>I){this._+="L"+u+","+h}if(!i)return;if(f<0)f=f%L+L;if(f>j){this._+="A"+i+","+i+",0,1,"+c+","+(t-s)+","+(n-l)+"A"+i+","+i+",0,1,"+c+","+(this._x1=u)+","+(this._y1=h)}else if(f>I){this._+="A"+i+","+i+",0,"+ +(f>=z)+","+c+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=n+i*Math.sin(r))}},rect:function e(t,n,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function e(){return this._}};function q(t){return function e(){return t}}var Y=Math.abs;var X=Math.atan2;var Z=Math.cos;var V=Math.max;var J=Math.min;var Q=Math.sin;var ee=Math.sqrt;var te=1e-12;var ne=Math.PI;var ie=ne/2;var ae=2*ne;function re(e){return e>1?0:e<-1?ne:Math.acos(e)}function oe(e){return e>=1?ie:e<=-1?-ie:Math.asin(e)}function se(e){return e.innerRadius}function le(e){return e.outerRadius}function ue(e){return e.startAngle}function he(e){return e.endAngle}function ce(e){return e&&e.padAngle}function fe(e,t,n,i,a,r,o,s){var l=n-e,u=i-t,h=o-a,c=s-r,f=c*l-h*u;if(f*f<te)return;f=(h*(t-r)-c*(e-a))/f;return[e+f*l,t+f*u]}function de(e,t,n,i,a,r,o){var s=e-n,l=t-i,u=(o?r:-r)/ee(s*s+l*l),h=u*l,c=-u*s,f=e+h,d=t+c,g=n+h,p=i+c,v=(f+g)/2,m=(d+p)/2,y=g-f,_=p-d,b=y*y+_*_,w=a-r,x=f*p-g*d,k=(_<0?-1:1)*ee(V(0,w*w*b-x*x)),S=(x*_-y*k)/b,C=(-x*y-_*k)/b,E=(x*_+y*k)/b,A=(-x*y+_*k)/b,R=S-v,M=C-m,T=E-v,B=A-m;if(R*R+M*M>T*T+B*B)S=E,C=A;return{cx:S,cy:C,x01:-h,y01:-c,x11:S*(a/w-1),y11:C*(a/w-1)}}function U(){var L=se,I=le,j=q(0),H=null,V=ue,U=he,G=ce,W=null;function t(){var e,t,n=+L.apply(this,arguments),i=+I.apply(this,arguments),a=V.apply(this,arguments)-ie,r=U.apply(this,arguments)-ie,o=Y(r-a),s=r>a;if(!W)W=e=K();if(i<n)t=i,i=n,n=t;if(!(i>te))W.moveTo(0,0);else if(o>ae-te){W.moveTo(i*Z(a),i*Q(a));W.arc(0,0,i,a,r,!s);if(n>te){W.moveTo(n*Z(r),n*Q(r));W.arc(0,0,n,r,a,s)}}else{var l=a,u=r,h=a,c=r,f=o,d=o,g=G.apply(this,arguments)/2,p=g>te&&(H?+H.apply(this,arguments):ee(n*n+i*i)),v=J(Y(i-n)/2,+j.apply(this,arguments)),m=v,y=v,_,b;if(p>te){var w=oe(p/n*Q(g)),x=oe(p/i*Q(g));if((f-=w*2)>te)w*=s?1:-1,h+=w,c-=w;else f=0,h=c=(a+r)/2;if((d-=x*2)>te)x*=s?1:-1,l+=x,u-=x;else d=0,l=u=(a+r)/2}var k=i*Z(l),S=i*Q(l),C=n*Z(c),E=n*Q(c);if(v>te){var A=i*Z(u),R=i*Q(u),M=n*Z(h),T=n*Q(h),B;if(o<ne&&(B=fe(k,S,M,T,A,R,C,E))){var N=k-B[0],D=S-B[1],P=A-B[0],O=R-B[1],z=1/Q(re((N*P+D*O)/(ee(N*N+D*D)*ee(P*P+O*O)))/2),F=ee(B[0]*B[0]+B[1]*B[1]);m=J(v,(n-F)/(z-1));y=J(v,(i-F)/(z+1))}}if(!(d>te))W.moveTo(k,S);else if(y>te){_=de(M,T,k,S,i,y,s);b=de(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(y<v)W.arc(_.cx,_.cy,y,X(_.y01,_.x01),X(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,X(_.y01,_.x01),X(_.y11,_.x11),!s);W.arc(0,0,i,X(_.cy+_.y11,_.cx+_.x11),X(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,y,X(b.y11,b.x11),X(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,i,l,u,!s);if(!(n>te)||!(f>te))W.lineTo(C,E);else if(m>te){_=de(C,E,A,R,n,-m,s);b=de(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m<v)W.arc(_.cx,_.cy,m,X(_.y01,_.x01),X(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,X(_.y01,_.x01),X(_.y11,_.x11),!s);W.arc(0,0,n,X(_.cy+_.y11,_.cx+_.x11),X(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,m,X(b.y11,b.x11),X(b.y01,b.x01),!s)}}else W.arc(0,0,n,c,h,s)}W.closePath();if(e)return W=null,e+""||null}t.centroid=function(){var e=(+L.apply(this,arguments)+ +I.apply(this,arguments))/2,t=(+V.apply(this,arguments)+ +U.apply(this,arguments))/2-ne/2;return[Z(t)*e,Q(t)*e]};t.innerRadius=function(e){return arguments.length?(L=typeof e==="function"?e:q(+e),t):L};t.outerRadius=function(e){return arguments.length?(I=typeof e==="function"?e:q(+e),t):I};t.cornerRadius=function(e){return arguments.length?(j=typeof e==="function"?e:q(+e),t):j};t.padRadius=function(e){return arguments.length?(H=e==null?null:typeof e==="function"?e:q(+e),t):H};t.startAngle=function(e){return arguments.length?(V=typeof e==="function"?e:q(+e),t):V};t.endAngle=function(e){return arguments.length?(U=typeof e==="function"?e:q(+e),t):U};t.padAngle=function(e){return arguments.length?(G=typeof e==="function"?e:q(+e),t):G};t.context=function(e){return arguments.length?(W=e==null?null:e,t):W};return t}function G(e){this._context=e}G.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:this._context.lineTo(t,n);break}}};function W(e){return new G(e)}function ge(e){return e[0]}function me(e){return e[1]}function ye(){var o=ge,s=me,l=q(true),u=null,h=W,c=null;function t(e){var t,n=e.length,i,a=false,r;if(u==null)c=h(r=K());for(t=0;t<=n;++t){if(!(t<n&&l(i=e[t],t,e))===a){if(a=!a)c.lineStart();else c.lineEnd()}if(a)c.point(+o(i,t,e),+s(i,t,e))}if(r)return c=null,r+""||null}t.x=function(e){return arguments.length?(o=typeof e==="function"?e:q(+e),t):o};t.y=function(e){return arguments.length?(s=typeof e==="function"?e:q(+e),t):s};t.defined=function(e){return arguments.length?(l=typeof e==="function"?e:q(!!e),t):l};t.curve=function(e){return arguments.length?(h=e,u!=null&&(c=h(u)),t):h};t.context=function(e){return arguments.length?(e==null?u=c=null:c=h(u=e),t):u};return t}function _e(){var h=ge,c=null,f=q(0),d=me,g=q(true),p=null,v=W,m=null;function t(e){var t,n,i,a=e.length,r,o=false,s,l=new Array(a),u=new Array(a);if(p==null)m=v(s=K());for(t=0;t<=a;++t){if(!(t<a&&g(r=e[t],t,e))===o){if(o=!o){n=t;m.areaStart();m.lineStart()}else{m.lineEnd();m.lineStart();for(i=t-1;i>=n;--i){m.point(l[i],u[i])}m.lineEnd();m.areaEnd()}}if(o){l[t]=+h(r,t,e),u[t]=+f(r,t,e);m.point(c?+c(r,t,e):l[t],d?+d(r,t,e):u[t])}}if(s)return m=null,s+""||null}function e(){return ye().defined(g).curve(v).context(p)}t.x=function(e){return arguments.length?(h=typeof e==="function"?e:q(+e),c=null,t):h};t.x0=function(e){return arguments.length?(h=typeof e==="function"?e:q(+e),t):h};t.x1=function(e){return arguments.length?(c=e==null?null:typeof e==="function"?e:q(+e),t):c};t.y=function(e){return arguments.length?(f=typeof e==="function"?e:q(+e),d=null,t):f};t.y0=function(e){return arguments.length?(f=typeof e==="function"?e:q(+e),t):f};t.y1=function(e){return arguments.length?(d=e==null?null:typeof e==="function"?e:q(+e),t):d};t.lineX0=t.lineY0=function(){return e().x(h).y(f)};t.lineY1=function(){return e().x(h).y(d)};t.lineX1=function(){return e().x(c).y(f)};t.defined=function(e){return arguments.length?(g=typeof e==="function"?e:q(!!e),t):g};t.curve=function(e){return arguments.length?(v=e,p!=null&&(m=v(p)),t):v};t.context=function(e){return arguments.length?(e==null?p=m=null:m=v(p=e),t):p};return t}function be(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function we(e){return e}function xe(){var g=we,p=be,v=null,m=q(0),y=q(ae),_=q(0);function t(n){var e,t=n.length,i,a,r=0,o=new Array(t),s=new Array(t),l=+m.apply(this,arguments),u=Math.min(ae,Math.max(-ae,y.apply(this,arguments)-l)),h,c=Math.min(Math.abs(u)/t,_.apply(this,arguments)),f=c*(u<0?-1:1),d;for(e=0;e<t;++e){if((d=s[o[e]=e]=+g(n[e],e,n))>0){r+=d}}if(p!=null)o.sort(function(e,t){return p(s[e],s[t])});else if(v!=null)o.sort(function(e,t){return v(n[e],n[t])});for(e=0,a=r?(u-t*f)/r:0;e<t;++e,l=h){i=o[e],d=s[i],h=l+(d>0?d*a:0)+f,s[i]={data:n[i],index:e,value:d,startAngle:l,endAngle:h,padAngle:c}}return s}t.value=function(e){return arguments.length?(g=typeof e==="function"?e:q(+e),t):g};t.sortValues=function(e){return arguments.length?(p=e,v=null,t):p};t.sort=function(e){return arguments.length?(v=e,p=null,t):v};t.startAngle=function(e){return arguments.length?(m=typeof e==="function"?e:q(+e),t):m};t.endAngle=function(e){return arguments.length?(y=typeof e==="function"?e:q(+e),t):y};t.padAngle=function(e){return arguments.length?(_=typeof e==="function"?e:q(+e),t):_};return t}var ke=Ce(W);function Se(e){this._curve=e}Se.prototype={areaStart:function e(){this._curve.areaStart()},areaEnd:function e(){this._curve.areaEnd()},lineStart:function e(){this._curve.lineStart()},lineEnd:function e(){this._curve.lineEnd()},point:function e(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};function Ce(t){function e(e){return new Se(t(e))}e._curve=t;return e}function Ee(e){var t=e.curve;e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;e.curve=function(e){return arguments.length?t(Ce(e)):t()._curve};return e}function Ae(){return Ee(ye().curve(ke))}function Re(){var e=_e().curve(ke),t=e.curve,n=e.lineX0,i=e.lineX1,a=e.lineY0,r=e.lineY1;e.angle=e.x,delete e.x;e.startAngle=e.x0,delete e.x0;e.endAngle=e.x1,delete e.x1;e.radius=e.y,delete e.y;e.innerRadius=e.y0,delete e.y0;e.outerRadius=e.y1,delete e.y1;e.lineStartAngle=function(){return Ee(n())},delete e.lineX0;e.lineEndAngle=function(){return Ee(i())},delete e.lineX1;e.lineInnerRadius=function(){return Ee(a())},delete e.lineY0;e.lineOuterRadius=function(){return Ee(r())},delete e.lineY1;e.curve=function(e){return arguments.length?t(Ce(e)):t()._curve};return e}function Me(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var ze=Array.prototype.slice;function Fe(e){return e.source}function Le(e){return e.target}function Ie(a){var r=Fe,o=Le,s=ge,l=me,u=null;function t(){var e,t=ze.call(arguments),n=r.apply(this,t),i=o.apply(this,t);if(!u)u=e=K();a(u,+s.apply(this,(t[0]=n,t)),+l.apply(this,t),+s.apply(this,(t[0]=i,t)),+l.apply(this,t));if(e)return u=null,e+""||null}t.source=function(e){return arguments.length?(r=e,t):r};t.target=function(e){return arguments.length?(o=e,t):o};t.x=function(e){return arguments.length?(s=typeof e==="function"?e:q(+e),t):s};t.y=function(e){return arguments.length?(l=typeof e==="function"?e:q(+e),t):l};t.context=function(e){return arguments.length?(u=e==null?null:e,t):u};return t}function je(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t=(t+i)/2,n,t,a,i,a)}function He(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t,n=(n+a)/2,i,n,i,a)}function Ve(e,t,n,i,a){var r=Me(t,n),o=Me(t,n=(n+a)/2),s=Me(i,n),l=Me(i,a);e.moveTo(r[0],r[1]);e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function Ue(){return Ie(je)}function Ge(){return Ie(He)}function We(){var e=Ie(Ve);e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;return e}var Ke={draw:function e(t,n){var i=Math.sqrt(n/ne);t.moveTo(i,0);t.arc(0,0,i,0,ae)}};var qe={draw:function e(t,n){var i=Math.sqrt(n/5)/2;t.moveTo(-3*i,-i);t.lineTo(-i,-i);t.lineTo(-i,-3*i);t.lineTo(i,-3*i);t.lineTo(i,-i);t.lineTo(3*i,-i);t.lineTo(3*i,i);t.lineTo(i,i);t.lineTo(i,3*i);t.lineTo(-i,3*i);t.lineTo(-i,i);t.lineTo(-3*i,i);t.closePath()}};var Ye=Math.sqrt(1/3),Xe=Ye*2;var $e={draw:function e(t,n){var i=Math.sqrt(n/Xe),a=i*Ye;t.moveTo(0,-i);t.lineTo(a,0);t.lineTo(0,i);t.lineTo(-a,0);t.closePath()}};var Ze=.8908130915292852,Je=Math.sin(ne/10)/Math.sin(7*ne/10),Qe=Math.sin(ae/10)*Je,et=-Math.cos(ae/10)*Je;var tt={draw:function e(t,n){var i=Math.sqrt(n*Ze),a=Qe*i,r=et*i;t.moveTo(0,-i);t.lineTo(a,r);for(var o=1;o<5;++o){var s=ae*o/5,l=Math.cos(s),u=Math.sin(s);t.lineTo(u*i,-l*i);t.lineTo(l*a-u*r,u*a+l*r)}t.closePath()}};var nt={draw:function e(t,n){var i=Math.sqrt(n),a=-i/2;t.rect(a,a,i,i)}};var it=Math.sqrt(3);var at={draw:function e(t,n){var i=-Math.sqrt(n/(it*3));t.moveTo(0,i*2);t.lineTo(-it*i,-i);t.lineTo(it*i,-i);t.closePath()}};var rt=-.5,ot=Math.sqrt(3)/2,st=1/Math.sqrt(12),lt=(st/2+1)*3;var ut={draw:function e(t,n){var i=Math.sqrt(n/lt),a=i/2,r=i*st,o=a,s=i*st+i,l=-o,u=s;t.moveTo(a,r);t.lineTo(o,s);t.lineTo(l,u);t.lineTo(rt*a-ot*r,ot*a+rt*r);t.lineTo(rt*o-ot*s,ot*o+rt*s);t.lineTo(rt*l-ot*u,ot*l+rt*u);t.lineTo(rt*a+ot*r,rt*r-ot*a);t.lineTo(rt*o+ot*s,rt*s-ot*o);t.lineTo(rt*l+ot*u,rt*u-ot*l);t.closePath()}};var ht=[Ke,qe,$e,nt,tt,at,ut];function ct(){var t=q(Ke),n=q(64),i=null;function a(){var e;if(!i)i=e=K();t.apply(this,arguments).draw(i,+n.apply(this,arguments));if(e)return i=null,e+""||null}a.type=function(e){return arguments.length?(t=typeof e==="function"?e:q(e),a):t};a.size=function(e){return arguments.length?(n=typeof e==="function"?e:q(+e),a):n};a.context=function(e){return arguments.length?(i=e==null?null:e,a):i};return a}function ft(){}function dt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function gt(e){this._context=e}gt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 3:dt(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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:dt(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function pt(e){return new gt(e)}function vt(e){this._context=e}vt.prototype={areaStart:ft,areaEnd:ft,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x2=t,this._y2=n;break;case 1:this._point=2;this._x3=t,this._y3=n;break;case 2:this._point=3;this._x4=t,this._y4=n;this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:dt(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function mt(e){return new vt(e)}function yt(e){this._context=e}yt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 3:this._point=4;default:dt(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function _t(e){return new yt(e)}function bt(e,t){this._basis=new gt(e);this._beta=t}bt.prototype={lineStart:function e(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function e(){var t=this._x,n=this._y,i=t.length-1;if(i>0){var a=t[0],r=n[0],o=t[i]-a,s=n[i]-r,l=-1,u;while(++l<=i){u=l/i;this._basis.point(this._beta*t[l]+(1-this._beta)*(a+u*o),this._beta*n[l]+(1-this._beta)*(r+u*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function e(t,n){this._x.push(+t);this._y.push(+n)}};var wt=function t(n){function e(e){return n===1?new gt(e):new bt(e,n)}e.beta=function(e){return t(+e)};return e}(.85);function xt(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function kt(e,t){this._context=e;this._k=(1-t)/6}kt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:xt(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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;this._x1=t,this._y1=n;break;case 2:this._point=3;default:xt(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var St=function t(n){function e(e){return new kt(e,n)}e.tension=function(e){return t(+e)};return e}(0);function Ct(e,t){this._context=e;this._k=(1-t)/6}Ct.prototype={areaStart:ft,areaEnd:ft,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:xt(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Et=function t(n){function e(e){return new Ct(e,n)}e.tension=function(e){return t(+e)};return e}(0);function At(e,t){this._context=e;this._k=(1-t)/6}At.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,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:xt(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Rt=function t(n){function e(e){return new At(e,n)}e.tension=function(e){return t(+e)};return e}(0);function Mt(e,t,n){var i=e._x1,a=e._y1,r=e._x2,o=e._y2;if(e._l01_a>te){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l;a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>te){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*u+e._x1*e._l23_2a-t*e._l12_2a)/h;o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/h}e._context.bezierCurveTo(i,a,r,o,e._x2,e._y2)}function Tt(e,t){this._context=e;this._alpha=t}Tt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Mt(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Bt=function t(n){function e(e){return n?new Tt(e,n):new kt(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function Nt(e,t){this._context=e;this._alpha=t}Nt.prototype={areaStart:ft,areaEnd:ft,lineStart:function e(){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 e(){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 e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:Mt(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Dt=function t(n){function e(e){return n?new Nt(e,n):new Ct(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function Pt(e,t){this._context=e;this._alpha=t}Pt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){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 e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,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:Mt(this,t,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=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ot=function t(n){function e(e){return n?new Pt(e,n):new At(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function zt(e){this._context=e}zt.prototype={areaStart:ft,areaEnd:ft,lineStart:function e(){this._point=0},lineEnd:function e(){if(this._point)this._context.closePath()},point:function e(t,n){t=+t,n=+n;if(this._point)this._context.lineTo(t,n);else this._point=1,this._context.moveTo(t,n)}};function Ft(e){return new zt(e)}function Lt(e){return e<0?-1:1}function It(e,t,n){var i=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(i||a<0&&-0),o=(n-e._y1)/(a||i<0&&-0),s=(r*a+o*i)/(i+a);return(Lt(r)+Lt(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function jt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ht(e,t,n){var i=e._x0,a=e._y0,r=e._x1,o=e._y1,s=(r-i)/3;e._context.bezierCurveTo(i+s,a+s*t,r-s,o-s*n,r,o)}function Vt(e){this._context=e}Vt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Ht(this,this._t0,jt(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){var i=NaN;t=+t,n=+n;if(t===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;Ht(this,jt(this,i=It(this,t,n)),i);break;default:Ht(this,this._t0,i=It(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=i}};function Ut(e){this._context=new Gt(e)}(Ut.prototype=Object.create(Vt.prototype)).point=function(e,t){Vt.prototype.point.call(this,t,e)};function Gt(e){this._context=e}Gt.prototype={moveTo:function e(t,n){this._context.moveTo(n,t)},closePath:function e(){this._context.closePath()},lineTo:function e(t,n){this._context.lineTo(n,t)},bezierCurveTo:function e(t,n,i,a,r,o){this._context.bezierCurveTo(n,t,a,i,o,r)}};function Wt(e){return new Vt(e)}function Kt(e){return new Ut(e)}function qt(e){this._context=e}qt.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x=[];this._y=[]},lineEnd:function e(){var t=this._x,n=this._y,i=t.length;if(i){this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]);if(i===2){this._context.lineTo(t[1],n[1])}else{var a=Yt(t),r=Yt(n);for(var o=0,s=1;s<i;++o,++s){this._context.bezierCurveTo(a[0][o],r[0][o],a[1][o],r[1][o],t[s],n[s])}}}if(this._line||this._line!==0&&i===1)this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function e(t,n){this._x.push(+t);this._y.push(+n)}};function Yt(e){var t,n=e.length-1,i,a=new Array(n),r=new Array(n),o=new Array(n);a[0]=0,r[0]=2,o[0]=e[0]+2*e[1];for(t=1;t<n-1;++t){a[t]=1,r[t]=4,o[t]=4*e[t]+2*e[t+1]}a[n-1]=2,r[n-1]=7,o[n-1]=8*e[n-1]+e[n];for(t=1;t<n;++t){i=a[t]/r[t-1],r[t]-=i,o[t]-=i*o[t-1]}a[n-1]=o[n-1]/r[n-1];for(t=n-2;t>=0;--t){a[t]=(o[t]-a[t+1])/r[t]}r[n-1]=(e[n]+a[n-1])/2;for(t=0;t<n-1;++t){r[t]=2*e[t+1]-a[t+1]}return[a,r]}function Xt(e){return new qt(e)}function $t(e,t){this._context=e;this._t=t}$t.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x=this._y=NaN;this._point=0},lineEnd:function e(){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 e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(t,n)}else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,n)}break}}this._x=t,this._y=n}};function Zt(e){return new $t(e,.5)}function Jt(e){return new $t(e,0)}function Qt(e){return new $t(e,1)}function en(e,t){if(!((o=e.length)>1))return;for(var n=1,i,a,r=e[t[0]],o,s=r.length;n<o;++n){a=r,r=e[t[n]];for(i=0;i<s;++i){r[i][1]+=r[i][0]=isNaN(a[i][1])?a[i][0]:a[i][1]}}}function tn(e){var t=e.length,n=new Array(t);while(--t>=0){n[t]=t}return n}function nn(e,t){return e[t]}function an(){var c=q([]),f=tn,d=en,g=nn;function t(e){var t=c.apply(this,arguments),n,i=e.length,a=t.length,r=new Array(a),o;for(n=0;n<a;++n){for(var s=t[n],l=r[n]=new Array(i),u=0,h;u<i;++u){l[u]=h=[0,+g(e[u],s,u,e)];h.data=e[u]}l.key=s}for(n=0,o=f(r);n<a;++n){r[o[n]].index=n}d(r,o);return r}t.keys=function(e){return arguments.length?(c=typeof e==="function"?e:q(ze.call(e)),t):c};t.value=function(e){return arguments.length?(g=typeof e==="function"?e:q(+e),t):g};t.order=function(e){return arguments.length?(f=e==null?tn:typeof e==="function"?e:q(ze.call(e)),t):f};t.offset=function(e){return arguments.length?(d=e==null?en:e,t):d};return t}function rn(e,t){if(!((i=e.length)>0))return;for(var n,i,a=0,r=e[0].length,o;a<r;++a){for(o=n=0;n<i;++n){o+=e[n][a][1]||0}if(o)for(n=0;n<i;++n){e[n][a][1]/=o}}en(e,t)}function on(e,t){if(!((l=e.length)>0))return;for(var n,i=0,a,r,o,s,l,u=e[t[0]].length;i<u;++i){for(o=s=0,n=0;n<l;++n){if((r=(a=e[t[n]][i])[1]-a[0])>=0){a[0]=o,a[1]=o+=r}else if(r<0){a[1]=s,a[0]=s+=r}else{a[0]=o}}}}function sn(e,t){if(!((a=e.length)>0))return;for(var n=0,i=e[t[0]],a,r=i.length;n<r;++n){for(var o=0,s=0;o<a;++o){s+=e[o][n][1]||0}i[n][1]+=i[n][0]=-s/2}en(e,t)}function ln(e,t){if(!((o=e.length)>0)||!((r=(a=e[t[0]]).length)>0))return;for(var n=0,i=1,a,r,o;i<r;++i){for(var s=0,l=0,u=0;s<o;++s){var h=e[t[s]],c=h[i][1]||0,f=h[i-1][1]||0,d=(c-f)/2;for(var g=0;g<s;++g){var p=e[t[g]],v=p[i][1]||0,m=p[i-1][1]||0;d+=v-m}l+=c,u+=d*c}a[i-1][1]+=a[i-1][0]=n;if(l)n-=u/l}a[i-1][1]+=a[i-1][0]=n;en(e,t)}function un(e){var n=e.map(hn);return tn(e).sort(function(e,t){return n[e]-n[t]})}function hn(e){var t=-1,n=0,i=e.length,a,r=-Infinity;while(++t<i){if((a=+e[t][1])>r)r=a,n=t}return n}function cn(e){var n=e.map(fn);return tn(e).sort(function(e,t){return n[e]-n[t]})}function fn(e){var t=0,n=-1,i=e.length,a;while(++n<i){if(a=+e[n][1])t+=a}return t}function dn(e){return cn(e).reverse()}function gn(e){var t=e.length,n,i,a=e.map(fn),r=un(e),o=0,s=0,l=[],u=[];for(n=0;n<t;++n){i=r[n];if(o<s){o+=a[i];l.push(i)}else{s+=a[i];u.push(i)}}return u.reverse().concat(l)}function pn(e){return tn(e).reverse()}var vn=Object.freeze({__proto__:null,arc:U,area:_e,line:ye,pie:xe,areaRadial:Re,radialArea:Re,lineRadial:Ae,radialLine:Ae,pointRadial:Me,linkHorizontal:Ue,linkVertical:Ge,linkRadial:We,symbol:ct,symbols:ht,symbolCircle:Ke,symbolCross:qe,symbolDiamond:$e,symbolSquare:nt,symbolStar:tt,symbolTriangle:at,symbolWye:ut,curveBasisClosed:mt,curveBasisOpen:_t,curveBasis:pt,curveBundle:wt,curveCardinalClosed:Et,curveCardinalOpen:Rt,curveCardinal:St,curveCatmullRomClosed:Dt,curveCatmullRomOpen:Ot,curveCatmullRom:Bt,curveLinearClosed:Ft,curveLinear:W,curveMonotoneX:Wt,curveMonotoneY:Kt,curveNatural:Xt,curveStep:Zt,curveStepAfter:Qt,curveStepBefore:Jt,stack:an,stackOffsetExpand:rn,stackOffsetDiverging:on,stackOffsetNone:en,stackOffsetSilhouette:sn,stackOffsetWiggle:ln,stackOrderAppearance:un,stackOrderAscending:cn,stackOrderDescending:dn,stackOrderInsideOut:gn,stackOrderNone:tn,stackOrderReverse:pn});function mn(t,n){if(n===void 0)return function(e){return e[t]};return function(e){return e[t]===void 0?n:e[t]}}function yn(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yn=function e(t){return typeof t}}else{yn=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return yn(e)}function _n(e){return e&&yn(e)==="object"&&(typeof window==="undefined"||e!==window&&e!==window.document&&!(e instanceof Element))&&!Array.isArray(e)?true:false}function bn(e){if(typeof window==="undefined")return true;else return e!==window&&e!==document}function wn(){var i=arguments;var a=arguments.length<=0?undefined:arguments[0];var e=function e(t){var n=t<0||i.length<=t?undefined:i[t];Object.keys(n).forEach(function(e){var t=n[e];if(_n(t)&&bn(t)){if(a.hasOwnProperty(e)&&_n(a[e]))a[e]=wn({},a[e],t);else a[e]=wn({},t)}else if(Array.isArray(t))a[e]=t.slice();else a[e]=t})};for(var t=1;t<arguments.length;t++){e(t)}return a}function xn(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.attr(n,t[n])}}var kn={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var Sn={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var Cn={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var En={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var An={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var Rn={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var Mn={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var Tn={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var Bn={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var Nn={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var Dn={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var Pn={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var On={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var zn={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var Fn={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var Ln={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var In={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var jn={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var Hn={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var Vn={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var Un={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var Gn={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var Wn={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var Kn={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var qn={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var Yn={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var Xn={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var $n={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var Zn={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var Jn={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var Qn={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var ei={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var ti={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var ni={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var ii={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var ai={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var ri={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var oi={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var si={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var li={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var ui={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var hi={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var ci={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var fi={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var di={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var gi={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var pi={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var vi={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var mi={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var yi={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var _i={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var bi={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var wi={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var xi={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var ki={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var Si={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var Ci={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var Ei={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var Ai={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var Ri={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var Mi={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var Ti={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var Bi={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var Ni={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var Di={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var Pi={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var Oi={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var zi={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var Fi={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var Li={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var Ii={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var ji={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var Hi={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var Vi={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var Ui={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var Gi={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var Wi={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var Ki={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var qi={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var Yi={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var Xi={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var $i={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var Zi={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var Ji={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var Qi={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var ea={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var ta={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var na={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var ia={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var aa={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var ra={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var oa={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var sa={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var la={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var ua={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var ha={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var ca={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var fa={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var da={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var ga={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var pa={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var va={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var ma={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var ya={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var _a={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var ba={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var wa={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var xa={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var ka={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var Sa={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var Ca={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var Ea={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var Aa={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var Ra={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var Ma={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var Ta={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var Ba={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var Na={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var Da={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var Pa={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var Oa={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var za={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var Fa={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var La={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var Ia={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var ja={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var Ha={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var Va={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var Ua={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var Ga={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var Wa={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var Ka={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var qa={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var Ya={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var Xa={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var $a={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var Za={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var Ja={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var Qa={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var er={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var tr={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var nr={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var ir={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var ar={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var rr={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var or={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var sr={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var lr={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var ur={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var hr={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var cr={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var fr={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var dr={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var gr={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var pr={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var vr={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var mr={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var yr={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var _r={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var br={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var wr={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var xr={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var kr={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var Sr={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var Cr={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var Er={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var Ar={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var Rr={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var Mr={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var Tr={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var Br={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var Nr={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var Dr={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var Pr={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var Or={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var zr={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var Fr={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var Lr={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var Ir={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var jr={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var Hr={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var Vr={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var Ur={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var Gr={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var Wr={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var Kr={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var qr={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var Yr={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var Xr={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var $r={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var Zr={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var Jr={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var Qr={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var eo={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var to={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var no={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var io={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var ao={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var ro={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var oo={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var so={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var lo={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var uo={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var ho={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var co={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var fo={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var go={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var po={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var vo={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var mo={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var yo={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var _o={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var bo={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var wo={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var xo={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var ko={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var So={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var Co={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var Eo={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var Ao={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var Ro={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var Mo={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var To={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var Bo={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var No={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var Do={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var Po={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var Oo={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var zo={aa:kn,"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:Sn,"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:Cn,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:En,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:An,"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:Rn,"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:Mn,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:Tn,"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:Bn,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:Nn,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:Dn,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:Pn,"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:On,"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:zn,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:Fn,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:Ln,"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:In,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:jn,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:Hn,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:Vn,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:Un,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:Gn,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:Wn,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:Kn,"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:qn,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:Yn,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:Xn,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:$n,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:Zn,"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:Jn,"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:Qn,"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:ei,"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:ti,"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:ni,"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:ii,"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:ai,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:ri,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:oi,"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:si,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:li,"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:ui,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:hi,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:ci,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:fi,"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:di,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:gi,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:pi,"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:vi,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:mi,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:yi,"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:_i,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:bi,"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:wi,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:xi,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:ki,"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:Si,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:Ci,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:Ei,"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:Ai,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:Ri,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:Mi,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:Ti,"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:Bi,"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:Ni,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:Di,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:Pi,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:Oi,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:zi,"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:Fi,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:Li,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:Ii,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:ji,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:Hi,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:Vi,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:Ui,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:Gi,"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:Wi,"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:Ki,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:qi,"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:Yi,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:Xi,"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:$i,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:Zi,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:Ji,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:Qi,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:ea,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:ta,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:na,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:ia,"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:aa,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:ra,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:oa,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:sa,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:la,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:ua,"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:ha,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:ca,"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:fa,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:da,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:ga,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:pa,"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:va,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:ma,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:ya,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:_a,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:ba,"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:wa,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:xa,"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:ka,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:Sa,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:Ca,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:Ea,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:Aa,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:Ra,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:Ma,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:Ta,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:Ba,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:Na,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:Da,"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:Pa,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:Oa,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:za,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:Fa,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:La,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:Ia,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:ja,"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:Ha,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:Va,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:Ua,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:Ga,"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:Wa,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:Ka,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:qa,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:Ya,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:Xa,"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:$a,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:Za,"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:Ja,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:Qa,nb:er,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:tr,"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:nr,"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:ir,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:ar,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:rr,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:or,"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:sr,"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:lr,"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:ur,"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:hr,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:cr,"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:fr,"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:dr,"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:gr,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:pr,"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:vr,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:mr,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:yr,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:_r,"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:br,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:wr,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:xr,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:kr,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:Sr,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:Cr,"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:Er,"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:Ar,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:Rr,"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:Mr,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:Tr,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:Br,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:Nr,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:Dr,"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:Pr,"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:Or,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:zr,"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:Fr,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:Lr,"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:Ir,"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:jr,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:Hr,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:Vr,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:Ur,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:Gr,"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:Wr,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:Kr,"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:qr,"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:Yr,"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:Xr,"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:$r,"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:Zr,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:Jr,"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:Qr,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:eo,"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:to,"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:no,"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:io,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:ao,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:ro,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:oo,"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:so,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:lo,"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:uo,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:ho,"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:co,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:fo,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:go,"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:po,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:vo,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:mo,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:yo,"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:_o,"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:bo,"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:wo,"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:xo,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:ko,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:So,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:Co,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:Eo,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:Ao,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:Ro,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:Mo,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:To,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:Bo,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:No,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:Do,"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:Po,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:Oo,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var Fo={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var Lo={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var Io={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var jo={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var Ho={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var Vo={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var Uo={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var Go={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var Wo={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var Ko={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var qo={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var Yo={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var Xo={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var $o={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Zo={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var Jo={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Qo={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var es={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var ts={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var ns={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var is={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var as={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var rs={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var os={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var ss={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var ls={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var us={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var hs={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var cs={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var fs={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var ds={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var gs={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var ps={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var vs={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var ms={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var ys={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var _s={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var bs={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var ws={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var xs={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var ks={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Ss={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Cs={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var Es={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var As={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var Rs={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var Ms={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var Ts={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Bs={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var Ns={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var Ds={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Ps={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Os={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var zs={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Fs={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var Ls={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var Is={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var js={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var Hs={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var Vs={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var Us={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var Gs={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var Ws={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var Ks={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var qs={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var Ys={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var Xs={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var $s={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var Zs={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var Js={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Qs={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var el={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var tl={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var nl={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var il={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var al={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var rl={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var ol={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var sl={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var ll={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var ul={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var hl={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var cl={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var fl={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var dl={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var gl={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var pl={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var vl={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var ml={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var yl={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var _l={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var bl={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var wl={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var xl={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var kl={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Sl={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var Cl={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var El={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var Al={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Rl={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var Ml={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var Tl={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var Bl={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var Nl={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var Dl={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var Pl={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var Ol={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var zl={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var Fl={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var Ll={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var Il={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var jl={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var Hl={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var Vl={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var Ul={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var Gl={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Wl={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var Kl={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var ql={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var Yl={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var Xl={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var $l={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var Zl={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var Jl={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var Ql={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var eu={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var tu={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var nu={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var iu={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var au={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var ru={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var ou={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var su={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var lu={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var uu={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var hu={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var cu={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var fu={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var du={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var gu={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var pu={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var vu={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var mu={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var yu={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var _u={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var bu={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var wu={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var xu={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var ku={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var Su={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var Cu={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var Eu={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var Au={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var Ru={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var Mu={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var Tu={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var Bu={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var Nu={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var Du={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var Pu={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Ou={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var zu={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var Fu={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var Lu={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var Iu={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var ju={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var Hu={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Vu={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var Uu={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var Gu={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Wu={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var Ku={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var qu={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var Yu={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var Xu={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var $u={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var Zu={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var Ju={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var Qu={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var eh={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var th={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var nh={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var ih={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var ah={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var rh={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var oh={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var sh={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var lh={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var uh={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var hh={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var ch={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var fh={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var dh={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var gh={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var ph={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var vh={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var mh={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var yh={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var _h={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var bh={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var wh={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var xh={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var kh={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var Sh={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var Ch={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var Eh={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var Ah={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var Rh={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var Mh={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var Th={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Bh={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var Nh={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var Dh={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Ph={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Oh={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var zh={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var Fh={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var Lh={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var Ih={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var jh={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var Hh={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var Vh={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var Uh={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var Gh={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var Wh={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var Kh={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var qh={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var Yh={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var Xh={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var $h={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var Zh={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var Jh={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Qh={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var ec={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var tc={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var nc={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var ic={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var ac={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var rc={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var oc={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var sc={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var lc={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var uc={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var hc={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var cc={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var fc={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var dc={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var gc={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var pc={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var vc={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var mc={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var yc={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var _c={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var bc={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var wc={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var xc={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var kc={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var Sc={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var Cc={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var Ec={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var Ac={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var Rc={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var Mc={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var Tc={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var Bc={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var Nc={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var Dc={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var Pc={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var Oc={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var zc={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var Fc={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var Lc={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var Ic={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var jc={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var Hc={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var Vc={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var Uc={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Gc={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Wc={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var Kc={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var qc={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var Yc={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var Xc={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var $c={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var Zc={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var Jc={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var Qc={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var ef={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var tf={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var nf={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var af={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var rf={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var of={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var sf={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var lf={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var uf={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var hf={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var cf={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var ff={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var df={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var gf={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var pf={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var vf={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var mf={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var yf={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var _f={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var bf={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var wf={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var xf={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var kf={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var Sf={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Cf={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var Ef={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var Af={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var Rf={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var Mf={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var Tf={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var Bf={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var Nf={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var Df={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var Pf={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Of={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var zf={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var Ff={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var Lf={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var If={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var jf={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var Hf={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var Vf={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var Uf={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var Gf={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var Wf={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var Kf={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var qf={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var Yf={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var Xf={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var $f={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var Zf={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var Jf={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var Qf={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var ed={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var td={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var nd={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var id={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var ad={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var rd={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var od={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var sd={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var ld={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var ud={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var hd={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var cd={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var fd={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var dd={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var gd={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var pd={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var vd={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var md={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var yd={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var _d={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var bd={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var wd={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var xd={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var kd={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var Sd={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var Cd={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var Ed={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var Ad={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var Rd={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var Md={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var Td={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var Bd={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var Nd={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var Dd={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Pd={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var Od={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var zd={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var Fd={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var Ld={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Id={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var jd={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var Hd={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Vd={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var Ud={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var Gd={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var Wd={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var Kd={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var qd={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var Yd={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var Xd={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var $d={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var Zd={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var Jd={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var Qd={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var eg={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var tg={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var ng={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var ig={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var ag={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var rg={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var og={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var sg={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var lg={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var ug={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var hg={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var cg={Abkhazian:Fo,Achinese:Lo,Acoli:Io,Adangme:jo,Adygei:Ho,Adyghe:Vo,Afar:Uo,Afrihili:Go,Afrikaans:Wo,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:Ko,Akan:qo,Akkadian:Yo,Albanian:Xo,Alemannic:$o,Aleut:Zo,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:Jo,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:Qo,Angika:es,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:ts,Aragonese:ns,Arapaho:is,Arawak:as,Armenian:rs,Aromanian:os,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:ss,Assamese:ls,Asturian:us,Asturleonese:hs,"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:cs,Avestan:fs,Awadhi:ds,Aymara:gs,Azerbaijani:ps,Bable:vs,Balinese:ms,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:ys,Bambara:_s,"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:bs,Bashkir:ws,Basque:xs,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:ks,Beja:Ss,Belarusian:Cs,Bemba:Es,Bengali:As,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:Rs,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:Ms,Bilin:Ts,Bini:Bs,Bislama:Ns,Blin:Ds,Bliss:Ps,Blissymbolics:Os,Blissymbols:zs,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:Fs,Braj:Ls,Breton:Is,Buginese:js,Bulgarian:Hs,Buriat:Vs,Burmese:Us,Caddo:Gs,Castilian:Ws,Catalan:Ks,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:qs,"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:Ys,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:Xs,Chechen:$s,Cherokee:Zs,Chewa:Js,Cheyenne:Qs,Chibcha:el,Chichewa:tl,Chinese:nl,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:il,Choctaw:al,Chuang:rl,"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:ol,Chuvash:sl,"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:ll,Cornish:ul,Corsican:hl,Cree:cl,Creek:fl,"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:dl,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:gl,Dakota:pl,Danish:vl,Dargwa:ml,Delaware:yl,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:_l,Dimili:bl,Dimli:wl,Dinka:xl,Divehi:kl,Dogri:Sl,Dogrib:Cl,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:El,Dutch:Al,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:Rl,Dzongkha:Ml,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:Tl,Efik:Bl,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:Nl,Elamite:Dl,English:Pl,"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:Ol,Esperanto:zl,Estonian:Fl,Ewe:Ll,Ewondo:Il,Fang:jl,Fanti:Hl,Faroese:Vl,Fijian:Ul,Filipino:Gl,Finnish:Wl,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:Kl,Fon:ql,French:Yl,"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:Xl,Fulah:$l,Ga:Zl,Gaelic:Jl,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:Ql,Ganda:eu,Gayo:tu,Gbaya:nu,Geez:iu,Georgian:au,German:ru,"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:ou,Gilbertese:su,Gondi:lu,Gorontalo:uu,Gothic:hu,Grebo:cu,"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:fu,Guarani:du,Gujarati:gu,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:pu,Haitian:vu,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:mu,Hawaiian:yu,Hebrew:_u,Herero:bu,Hiligaynon:wu,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:xu,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:ku,Hmong:Su,Hungarian:Cu,Hupa:Eu,Iban:Au,Icelandic:Ru,Ido:Mu,Igbo:Tu,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:Bu,"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:Nu,Ingush:Du,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:Pu,Inuktitut:Ou,Inupiaq:zu,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:Fu,"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:Lu,Japanese:Iu,Javanese:ju,Jingpho:Hu,"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:Vu,Kabyle:Uu,Kachin:Gu,Kalaallisut:Wu,Kalmyk:Ku,Kamba:qu,Kannada:Yu,Kanuri:Xu,Kapampangan:$u,"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:Zu,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:Ju,Kashubian:Qu,Kawi:eh,Kazakh:th,Khasi:nh,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:ih,Kikuyu:ah,Kimbundu:rh,Kinyarwanda:oh,Kirdki:sh,Kirghiz:lh,Kirmanjki:uh,Klingon:hh,Komi:ch,Kongo:fh,Konkani:dh,Korean:gh,Kosraean:ph,Kpelle:vh,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:mh,Kumyk:yh,Kurdish:_h,Kurukh:bh,Kutenai:wh,Kwanyama:xh,Kyrgyz:kh,Ladino:Sh,Lahnda:Ch,Lamba:Eh,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:Ah,Latin:Rh,Latvian:Mh,Leonese:Th,Letzeburgesch:Bh,Lezghian:Nh,Limburgan:Dh,Limburger:Ph,Limburgish:Oh,Lingala:zh,Lithuanian:Fh,Lojban:Lh,"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:Ih,"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:jh,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:Hh,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:Vh,Luxembourgish:Uh,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:Gh,Madurese:Wh,Magahi:Kh,Maithili:qh,Makasar:Yh,Malagasy:Xh,Malay:$h,Malayalam:Zh,Maldivian:Jh,Maltese:Qh,Manchu:ec,Mandar:tc,Mandingo:nc,Manipuri:ic,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:ac,Maori:rc,Mapuche:oc,Mapudungun:sc,Marathi:lc,Mari:uc,Marshallese:hc,Marwari:cc,Masai:fc,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:dc,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:gc,Minangkabau:pc,Mirandese:vc,Mohawk:mc,Moksha:yc,Moldavian:_c,Moldovan:bc,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:wc,Mongo:xc,Mongolian:kc,Montenegrin:Sc,Mossi:Cc,"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:Ec,Navaho:Ac,Navajo:Rc,"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:Mc,Neapolitan:Tc,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:Bc,Newari:Nc,Nias:Dc,"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:Pc,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:Oc,"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:zc,"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:Fc,Nyamwezi:Lc,Nyanja:Ic,Nyankole:jc,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:Hc,Nzima:Vc,Occidental:Uc,"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:Gc,Ojibwa:Wc,"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:Kc,Oromo:qc,Osage:Yc,Ossetian:Xc,Ossetic:$c,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:Zc,Palauan:Jc,Pali:Qc,Pampanga:ef,Pangasinan:tf,Panjabi:nf,Papiamento:af,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:rf,Pedi:of,Persian:sf,"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:lf,Pilipino:uf,Pohnpeian:hf,Polish:cf,Portuguese:ff,"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:df,Pushto:gf,Quechua:pf,Rajasthani:vf,Rapanui:mf,Rarotongan:yf,"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:_f,Romansh:bf,Romany:wf,Rundi:xf,Russian:kf,Sakan:Sf,"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:Cf,Sandawe:Ef,Sango:Af,Sanskrit:Rf,Santali:Mf,Sardinian:Tf,Sasak:Bf,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:Nf,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:Df,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:Pf,Serbian:Of,Serer:zf,Shan:Ff,Shona:Lf,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:If,Sidamo:jf,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:Hf,Sindhi:Vf,Sinhala:Uf,Sinhalese:Gf,"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:Wf,Slovenian:Kf,Sogdian:qf,Somali:Yf,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:Xf,"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:$f,"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:Zf,Sumerian:Jf,Sundanese:Qf,Susu:ed,Swahili:td,Swati:nd,Swedish:id,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:ad,Tagalog:rd,Tahitian:od,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:sd,Tamashek:ld,Tamil:ud,Tatar:hd,Telugu:cd,Tereno:fd,Tetum:dd,Thai:gd,Tibetan:pd,Tigre:vd,Tigrinya:md,Timne:yd,Tiv:_d,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:bd,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:wd,"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:xd,Tsonga:kd,Tswana:Sd,Tumbuka:Cd,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:Ed,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:Ad,Tuvalu:Rd,Tuvinian:Md,Twi:Td,Udmurt:Bd,Ugaritic:Nd,Uighur:Dd,Ukrainian:Pd,Umbundu:Od,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:zd,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:Fd,Uyghur:Ld,Uzbek:Id,Vai:jd,Valencian:Hd,Venda:Vd,Vietnamese:Ud,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:Gd,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:Wd,Waray:Kd,Washo:qd,Welsh:Yd,"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:Xd,Wolaytta:$d,Wolof:Zd,Xhosa:Jd,Yakut:Qd,Yao:eg,Yapese:tg,Yiddish:ng,Yoruba:ig,"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:ag,Zaza:rg,Zazaki:og,Zenaga:sg,Zhuang:lg,Zulu:ug,Zuni:hg};function fg(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var dg=[];var gg=Object.keys(cg);Object.keys(zo).map(function(e){var t=zo[e];var n=gg.find(function(e){return e.toLowerCase()===t.language.toLowerCase()});if(t.location&&n){var i;dg.push((i={},fg(i,"name",t.language),fg(i,"location",t.location),fg(i,"tag",t.tag),fg(i,"lcid",t.id),fg(i,"iso639-2",cg[n]["iso639-2"]),fg(i,"iso639-1",cg[n]["iso639-1"]),i))}});var pg={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 vg(t){if(typeof t!=="string"||t.length===5)return t;if(pg[t])return pg[t];var e=dg.filter(function(e){return e["iso639-1"]===t});if(!e.length)return t;else if(e.length===1)return e[0].tag;else if(e.find(function(e){return e.tag==="".concat(t,"-").concat(t.toUpperCase())}))return"".concat(t,"-").concat(t.toUpperCase());else return e[0].tag}function mg(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function yg(){return"".concat(mg()).concat(mg(),"-").concat(mg(),"-").concat(mg(),"-").concat(mg(),"-").concat(mg()).concat(mg()).concat(mg())}var _g="D3PLUS-COMMON-RESET";var bg={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 wg={"es-ES":bg};function xg(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function kg(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function Sg(e,t,n){if(t)kg(e.prototype,t);if(n)kg(e,n);return e}function Cg(e,t){if(_n(e)){for(var n in e){if({}.hasOwnProperty.call(e,n)&&!n.startsWith("_")){var i=t&&_n(t)?t[n]:undefined;if(e[n]===_g){if(i)e[n]=i;else delete e[n]}else if(_n(e[n])){Cg(e[n],i)}}}}}function Eg(e){var t=[];do{t=t.concat(Object.getOwnPropertyNames(e));e=Object.getPrototypeOf(e)}while(e&&e!==Object.prototype);return t.filter(function(e){return e.indexOf("_")!==0&&!["config","constructor","parent","render"].includes(e)})}var Ag=function(){function e(){var i=this;xg(this,e);this._locale="en-US";this._on={};this._parent={};this._translate=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:i._locale;var n=wg[t];return n&&n[e]?n[e]:e};this._uuid=yg()}Sg(e,[{key:"config",value:function n(e){var i=this;if(!this._configDefault){var n={};Eg(this.__proto__).forEach(function(e){var t=i[e]();if(t!==i)n[e]=_n(t)?wn({},t):t});this._configDefault=n}if(arguments.length){for(var t in e){if({}.hasOwnProperty.call(e,t)&&t in this){var a=e[t];if(a===_g){if(t==="on")this._on=this._configDefault[t];else this[t](this._configDefault[t])}else{Cg(a,this._configDefault[t]);this[t](a)}}}return this}else{var r={};Eg(this.__proto__).forEach(function(e){r[e]=i[e]()});return r}}},{key:"locale",value:function e(t){return arguments.length?(this._locale=vg(t),this):this._locale}},{key:"on",value:function e(t,n){return arguments.length===2?(this._on[t]=n,this):arguments.length?typeof t==="string"?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"parent",value:function e(t){return arguments.length?(this._parent=t,this):this._parent}},{key:"translate",value:function e(t){return arguments.length?(this._translate=t,this):this._translate}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=wn(this._shapeConfig,t),this):this._shapeConfig}}]);return e}();function Rg(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!e||!(e instanceof Array)||!e.length)return undefined;return e.reduce(function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e})}function Mg(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Mg=function e(t){return typeof t}}else{Mg=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return Mg(e)}function Tg(){var r=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var o=function e(a){return function(e,t,n){var i;while(e.__d3plus__){if(i)e.__d3plusParent__=i;i=e;t=e.i;e=e.data||e.feature}return a.bind(r)(e,t,n||i)}};var s=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)&&!i.includes(".")||i.includes(".".concat(a))){t.on[i]=o(n[i])}}};var l=function t(e){return e.map(function(e){if(e instanceof Array)return t(e);else if(Mg(e)==="object")return i({},e);else if(typeof e==="function")return o(e);else return e})};var i=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)){if(i==="on")s(t,n[i]);else if(typeof n[i]==="function"){t[i]=o(n[i])}else if(n[i]instanceof Array){t[i]=l(n[i])}else if(Mg(n[i])==="object"){t[i]={on:{}};e(t[i],n[i])}else t[i]=n[i]}}};i(n,e);if(this._on)s(n,this._on);if(t&&e[t]){i(n,e[t]);if(e[t].on)s(n,e[t].on)}return n}function Bg(t){return function e(){return t}}var Ng="http://www.w3.org/1999/xhtml";var Dg={svg:"http://www.w3.org/2000/svg",xhtml:Ng,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Pg(e){var t=e+="",n=t.indexOf(":");if(n>=0&&(t=e.slice(0,n))!=="xmlns")e=e.slice(n+1);return Dg.hasOwnProperty(t)?{space:Dg[t],local:e}:e}function Og(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Ng&&e.documentElement.namespaceURI===Ng?e.createElement(n):e.createElementNS(t,n)}}function zg(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fg(e){var t=Pg(e);return(t.local?zg:Og)(t)}function Lg(){}function Ig(e){return e==null?Lg:function(){return this.querySelector(e)}}function jg(e){if(typeof e!=="function")e=Ig(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=new Array(o),l,u,h=0;h<o;++h){if((l=r[h])&&(u=e.call(l,l.__data__,h,r))){if("__data__"in l)u.__data__=l.__data__;s[h]=u}}}return new bv(i,this._parents)}function Hg(){return[]}function Vg(e){return e==null?Hg:function(){return this.querySelectorAll(e)}}function Ug(e){if(typeof e!=="function")e=Vg(e);for(var t=this._groups,n=t.length,i=[],a=[],r=0;r<n;++r){for(var o=t[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){i.push(e.call(l,l.__data__,u,o));a.push(l)}}}return new bv(i,a)}function Gg(e){return function(){return this.matches(e)}}function Wg(e){if(typeof e!=="function")e=Gg(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=[],l,u=0;u<o;++u){if((l=r[u])&&e.call(l,l.__data__,u,r)){s.push(l)}}}return new bv(i,this._parents)}function Kg(e){return new Array(e.length)}function qg(){return new bv(this._enter||this._groups.map(Kg),this._parents)}function Yg(e,t){this.ownerDocument=e.ownerDocument;this.namespaceURI=e.namespaceURI;this._next=null;this._parent=e;this.__data__=t}Yg.prototype={constructor:Yg,appendChild:function e(t){return this._parent.insertBefore(t,this._next)},insertBefore:function e(t,n){return this._parent.insertBefore(t,n)},querySelector:function e(t){return this._parent.querySelector(t)},querySelectorAll:function e(t){return this._parent.querySelectorAll(t)}};function Xg(e){return function(){return e}}var $g="$";function Zg(e,t,n,i,a,r){var o=0,s,l=t.length,u=r.length;for(;o<u;++o){if(s=t[o]){s.__data__=r[o];i[o]=s}else{n[o]=new Yg(e,r[o])}}for(;o<l;++o){if(s=t[o]){a[o]=s}}}function Jg(e,t,n,i,a,r,o){var s,l,u={},h=t.length,c=r.length,f=new Array(h),d;for(s=0;s<h;++s){if(l=t[s]){f[s]=d=$g+o.call(l,l.__data__,s,t);if(d in u){a[s]=l}else{u[d]=l}}}for(s=0;s<c;++s){d=$g+o.call(e,r[s],s,r);if(l=u[d]){i[s]=l;l.__data__=r[s];u[d]=null}else{n[s]=new Yg(e,r[s])}}for(s=0;s<h;++s){if((l=t[s])&&u[f[s]]===l){a[s]=l}}}function Qg(e,t){if(!e){d=new Array(this.size()),u=-1;this.each(function(e){d[++u]=e});return d}var n=t?Jg:Zg,i=this._parents,a=this._groups;if(typeof e!=="function")e=Xg(e);for(var r=a.length,o=new Array(r),s=new Array(r),l=new Array(r),u=0;u<r;++u){var h=i[u],c=a[u],f=c.length,d=e.call(h,h&&h.__data__,u,i),g=d.length,p=s[u]=new Array(g),v=o[u]=new Array(g),m=l[u]=new Array(f);n(h,c,p,v,m,d,t);for(var y=0,_=0,b,w;y<g;++y){if(b=p[y]){if(y>=_)_=y+1;while(!(w=v[_])&&++_<g){}b._next=w||null}}}o=new bv(o,i);o._enter=s;o._exit=l;return o}function ep(){return new bv(this._exit||this._groups.map(Kg),this._parents)}function tp(e,t,n){var i=this.enter(),a=this,r=this.exit();i=typeof e==="function"?e(i):i.append(e+"");if(t!=null)a=t(a);if(n==null)r.remove();else n(r);return i&&a?i.merge(a).order():a}function np(e){for(var t=this._groups,n=e._groups,i=t.length,a=n.length,r=Math.min(i,a),o=new Array(i),s=0;s<r;++s){for(var l=t[s],u=n[s],h=l.length,c=o[s]=new Array(h),f,d=0;d<h;++d){if(f=l[d]||u[d]){c[d]=f}}}for(;s<i;++s){o[s]=t[s]}return new bv(o,this._parents)}function ip(){for(var e=this._groups,t=-1,n=e.length;++t<n;){for(var i=e[t],a=i.length-1,r=i[a],o;--a>=0;){if(o=i[a]){if(r&&o.compareDocumentPosition(r)^4)r.parentNode.insertBefore(o,r);r=o}}}return this}function ap(n){if(!n)n=rp;function e(e,t){return e&&t?n(e.__data__,t.__data__):!e-!t}for(var t=this._groups,i=t.length,a=new Array(i),r=0;r<i;++r){for(var o=t[r],s=o.length,l=a[r]=new Array(s),u,h=0;h<s;++h){if(u=o[h]){l[h]=u}}l.sort(e)}return new bv(a,this._parents).order()}function rp(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function op(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this}function sp(){var e=new Array(this.size()),t=-1;this.each(function(){e[++t]=this});return e}function lp(){for(var e=this._groups,t=0,n=e.length;t<n;++t){for(var i=e[t],a=0,r=i.length;a<r;++a){var o=i[a];if(o)return o}}return null}function up(){var e=0;this.each(function(){++e});return e}function hp(){return!this.node()}function cp(e){for(var t=this._groups,n=0,i=t.length;n<i;++n){for(var a=t[n],r=0,o=a.length,s;r<o;++r){if(s=a[r])e.call(s,s.__data__,r,a)}}return this}function fp(e){return function(){this.removeAttribute(e)}}function dp(e){return function(){this.removeAttributeNS(e.space,e.local)}}function gp(e,t){return function(){this.setAttribute(e,t)}}function pp(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function vp(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttribute(t);else this.setAttribute(t,e)}}function mp(t,n){return function(){var e=n.apply(this,arguments);if(e==null)this.removeAttributeNS(t.space,t.local);else this.setAttributeNS(t.space,t.local,e)}}function yp(e,t){var n=Pg(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((t==null?n.local?dp:fp:typeof t==="function"?n.local?mp:vp:n.local?pp:gp)(n,t))}function _p(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function bp(e){return function(){this.style.removeProperty(e)}}function wp(e,t,n){return function(){this.style.setProperty(e,t,n)}}function xp(t,n,i){return function(){var e=n.apply(this,arguments);if(e==null)this.style.removeProperty(t);else this.style.setProperty(t,e,i)}}function kp(e,t,n){return arguments.length>1?this.each((t==null?bp:typeof t==="function"?xp:wp)(e,t,n==null?"":n)):Sp(this.node(),e)}function Sp(e,t){return e.style.getPropertyValue(t)||_p(e).getComputedStyle(e,null).getPropertyValue(t)}function Cp(e){return function(){delete this[e]}}function Ep(e,t){return function(){this[e]=t}}function Ap(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Rp(e,t){return arguments.length>1?this.each((t==null?Cp:typeof t==="function"?Ap:Ep)(e,t)):this.node()[e]}function Mp(e){return e.trim().split(/^|\s+/)}function Tp(e){return e.classList||new Bp(e)}function Bp(e){this._node=e;this._names=Mp(e.getAttribute("class")||"")}Bp.prototype={add:function e(t){var n=this._names.indexOf(t);if(n<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function e(t){var n=this._names.indexOf(t);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function e(t){return this._names.indexOf(t)>=0}};function Np(e,t){var n=Tp(e),i=-1,a=t.length;while(++i<a){n.add(t[i])}}function Dp(e,t){var n=Tp(e),i=-1,a=t.length;while(++i<a){n.remove(t[i])}}function Pp(e){return function(){Np(this,e)}}function Op(e){return function(){Dp(this,e)}}function zp(e,t){return function(){(t.apply(this,arguments)?Np:Dp)(this,e)}}function Fp(e,t){var n=Mp(e+"");if(arguments.length<2){var i=Tp(this.node()),a=-1,r=n.length;while(++a<r){if(!i.contains(n[a]))return false}return true}return this.each((typeof t==="function"?zp:t?Pp:Op)(n,t))}function Lp(){this.textContent=""}function Ip(e){return function(){this.textContent=e}}function jp(t){return function(){var e=t.apply(this,arguments);this.textContent=e==null?"":e}}function Hp(e){return arguments.length?this.each(e==null?Lp:(typeof e==="function"?jp:Ip)(e)):this.node().textContent}function Vp(){this.innerHTML=""}function Up(e){return function(){this.innerHTML=e}}function Gp(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e==null?"":e}}function Wp(e){return arguments.length?this.each(e==null?Vp:(typeof e==="function"?Gp:Up)(e)):this.node().innerHTML}function Kp(){if(this.nextSibling)this.parentNode.appendChild(this)}function qp(){return this.each(Kp)}function Yp(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Xp(){return this.each(Yp)}function $p(e){var t=typeof e==="function"?e:Fg(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Zp(){return null}function Jp(e,t){var n=typeof e==="function"?e:Fg(e),i=t==null?Zp:typeof t==="function"?t:Ig(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Qp(){var e=this.parentNode;if(e)e.removeChild(this)}function ev(){return this.each(Qp)}function tv(){var e=this.cloneNode(false),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function nv(){var e=this.cloneNode(true),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function iv(e){return this.select(e?nv:tv)}function av(e){return arguments.length?this.property("__data__",e):this.node().__data__}var rv={};var ov=null;if(typeof document!=="undefined"){var sv=document.documentElement;if(!("onmouseenter"in sv)){rv={mouseenter:"mouseover",mouseleave:"mouseout"}}}function lv(n,e,t){n=uv(n,e,t);return function(e){var t=e.relatedTarget;if(!t||t!==this&&!(t.compareDocumentPosition(this)&8)){n.call(this,e)}}}function uv(n,i,a){return function(e){var t=ov;ov=e;try{n.call(this,this.__data__,i,a)}finally{ov=t}}}function hv(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0)t=e.slice(n+1),e=e.slice(0,n);return{type:e,name:t}})}function cv(r){return function(){var e=this.__on;if(!e)return;for(var t=0,n=-1,i=e.length,a;t<i;++t){if(a=e[t],(!r.type||a.type===r.type)&&a.name===r.name){this.removeEventListener(a.type,a.listener,a.capture)}else{e[++n]=a}}if(++n)e.length=n;else delete this.__on}}function fv(l,u,h){var c=rv.hasOwnProperty(l.type)?lv:uv;return function(e,t,n){var i=this.__on,a,r=c(u,t,n);if(i)for(var o=0,s=i.length;o<s;++o){if((a=i[o]).type===l.type&&a.name===l.name){this.removeEventListener(a.type,a.listener,a.capture);this.addEventListener(a.type,a.listener=r,a.capture=h);a.value=u;return}}this.addEventListener(l.type,r,h);a={type:l.type,name:l.name,value:u,listener:r,capture:h};if(!i)this.__on=[a];else i.push(a)}}function dv(e,t,n){var i=hv(e+""),a,r=i.length,o;if(arguments.length<2){var s=this.node().__on;if(s)for(var l=0,u=s.length,h;l<u;++l){for(a=0,h=s[l];a<r;++a){if((o=i[a]).type===h.type&&o.name===h.name){return h.value}}}return}s=t?fv:cv;if(n==null)n=false;for(a=0;a<r;++a){this.each(s(i[a],t,n))}return this}function gv(e,t,n,i){var a=ov;e.sourceEvent=ov;ov=e;try{return t.apply(n,i)}finally{ov=a}}function pv(e,t,n){var i=_p(e),a=i.CustomEvent;if(typeof a==="function"){a=new a(t,n)}else{a=i.document.createEvent("Event");if(n)a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail;else a.initEvent(t,false,false)}e.dispatchEvent(a)}function vv(e,t){return function(){return pv(this,e,t)}}function mv(e,t){return function(){return pv(this,e,t.apply(this,arguments))}}function yv(e,t){return this.each((typeof t==="function"?mv:vv)(e,t))}var _v=[null];function bv(e,t){this._groups=e;this._parents=t}function wv(){return new bv([[document.documentElement]],_v)}bv.prototype=wv.prototype={constructor:bv,select:jg,selectAll:Ug,filter:Wg,data:Qg,enter:qg,exit:ep,join:tp,merge:np,order:ip,sort:ap,call:op,nodes:sp,node:lp,size:up,empty:hp,each:cp,attr:yp,style:kp,property:Rp,classed:Fp,text:Hp,html:Wp,raise:qp,lower:Xp,append:$p,insert:Jp,remove:ev,clone:iv,datum:av,on:dv,dispatch:yv};function xv(e){return typeof e==="string"?new bv([[document.querySelector(e)]],[document.documentElement]):new bv([[e]],_v)}function kv(){var e=ov,t;while(t=e.sourceEvent){e=t}return e}function Sv(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();i.x=t.clientX,i.y=t.clientY;i=i.matrixTransform(e.getScreenCTM().inverse());return[i.x,i.y]}var a=e.getBoundingClientRect();return[t.clientX-a.left-e.clientLeft,t.clientY-a.top-e.clientTop]}function Cv(e){var t=kv();if(t.changedTouches)t=t.changedTouches[0];return Sv(e,t)}function Ev(e){return typeof e==="string"?new bv([document.querySelectorAll(e)],[document.documentElement]):new bv([e==null?[]:e],_v)}function Av(e,t,n){if(arguments.length<3)n=t,t=kv().changedTouches;for(var i=0,a=t?t.length:0,r;i<a;++i){if((r=t[i]).identifier===n){return Sv(e,r)}}return null}var Rv={value:function e(){}};function Mv(){for(var e=0,t=arguments.length,n={},i;e<t;++e){if(!(i=arguments[e]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Tv(n)}function Tv(e){this._=e}function Bv(e,i){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0)t=e.slice(n+1),e=e.slice(0,n);if(e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})}Tv.prototype=Mv.prototype={constructor:Tv,on:function e(t,n){var i=this._,a=Bv(t+"",i),r,o=-1,s=a.length;if(arguments.length<2){while(++o<s){if((r=(t=a[o]).type)&&(r=Nv(i[r],t.name)))return r}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(r=(t=a[o]).type)i[r]=Dv(i[r],t.name,n);else if(n==null)for(r in i){i[r]=Dv(i[r],t.name,null)}}return this},copy:function e(){var e={},t=this._;for(var n in t){e[n]=t[n].slice()}return new Tv(e)},call:function e(t,n){if((r=arguments.length-2)>0)for(var i=new Array(r),a=0,r,o;a<r;++a){i[a]=arguments[a+2]}if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],a=0,r=o.length;a<r;++a){o[a].value.apply(n,i)}},apply:function e(t,n,i){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var a=this._[t],r=0,o=a.length;r<o;++r){a[r].value.apply(n,i)}}};function Nv(e,t){for(var n=0,i=e.length,a;n<i;++n){if((a=e[n]).name===t){return a.value}}}function Dv(e,t,n){for(var i=0,a=e.length;i<a;++i){if(e[i].name===t){e[i]=Rv,e=e.slice(0,i).concat(e.slice(i+1));break}}if(n!=null)e.push({name:t,value:n});return e}var Pv=0,Ov=0,zv=0,Fv=1e3,Lv,Iv,jv=0,Hv=0,Vv=0,Uv=(typeof performance==="undefined"?"undefined":F(performance))==="object"&&performance.now?performance:Date,Gv=(typeof window==="undefined"?"undefined":F(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Wv(){return Hv||(Gv(Kv),Hv=Uv.now()+Vv)}function Kv(){Hv=0}function qv(){this._call=this._time=this._next=null}qv.prototype=Yv.prototype={constructor:qv,restart:function e(t,n,i){if(typeof t!=="function")throw new TypeError("callback is not a function");i=(i==null?Wv():+i)+(n==null?0:+n);if(!this._next&&Iv!==this){if(Iv)Iv._next=this;else Lv=this;Iv=this}this._call=t;this._time=i;Qv()},stop:function e(){if(this._call){this._call=null;this._time=Infinity;Qv()}}};function Yv(e,t,n){var i=new qv;i.restart(e,t,n);return i}function Xv(){Wv();++Pv;var e=Lv,t;while(e){if((t=Hv-e._time)>=0)e._call.call(null,t);e=e._next}--Pv}function $v(){Hv=(jv=Uv.now())+Vv;Pv=Ov=0;try{Xv()}finally{Pv=0;Jv();Hv=0}}function Zv(){var e=Uv.now(),t=e-jv;if(t>Fv)Vv-=t,jv=e}function Jv(){var e,t=Lv,n,i=Infinity;while(t){if(t._call){if(i>t._time)i=t._time;e=t,t=t._next}else{n=t._next,t._next=null;t=e?e._next=n:Lv=n}}Iv=e;Qv(i)}function Qv(e){if(Pv)return;if(Ov)Ov=clearTimeout(Ov);var t=e-Hv;if(t>24){if(e<Infinity)Ov=setTimeout($v,e-Uv.now()-Vv);if(zv)zv=clearInterval(zv)}else{if(!zv)jv=Uv.now(),zv=setInterval(Zv,Fv);Pv=1,Gv($v)}}function em(t,n,e){var i=new qv;n=n==null?0:+n;i.restart(function(e){i.stop();t(e+n)},n,e);return i}var tm=Mv("start","end","cancel","interrupt");var nm=[];var im=0;var am=1;var rm=2;var om=3;var sm=4;var lm=5;var um=6;function hm(e,t,n,i,a,r){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;gm(e,n,{name:t,index:i,group:a,on:tm,tween:nm,time:r.time,delay:r.delay,duration:r.duration,ease:r.ease,timer:null,state:im})}function cm(e,t){var n=dm(e,t);if(n.state>im)throw new Error("too late; already scheduled");return n}function fm(e,t){var n=dm(e,t);if(n.state>om)throw new Error("too late; already running");return n}function dm(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function gm(r,o,s){var l=r.__transition,u;l[o]=s;s.timer=Yv(e,0,s.time);function e(e){s.state=am;s.timer.restart(h,s.delay,s.time);if(s.delay<=e)h(e-s.delay)}function h(e){var t,n,i,a;if(s.state!==am)return f();for(t in l){a=l[t];if(a.name!==s.name)continue;if(a.state===om)return em(h);if(a.state===sm){a.state=um;a.timer.stop();a.on.call("interrupt",r,r.__data__,a.index,a.group);delete l[t]}else if(+t<o){a.state=um;a.timer.stop();a.on.call("cancel",r,r.__data__,a.index,a.group);delete l[t]}}em(function(){if(s.state===om){s.state=sm;s.timer.restart(c,s.delay,s.time);c(e)}});s.state=rm;s.on.call("start",r,r.__data__,s.index,s.group);if(s.state!==rm)return;s.state=om;u=new Array(i=s.tween.length);for(t=0,n=-1;t<i;++t){if(a=s.tween[t].value.call(r,r.__data__,s.index,s.group)){u[++n]=a}}u.length=n+1}function c(e){var t=e<s.duration?s.ease.call(null,e/s.duration):(s.timer.restart(f),s.state=lm,1),n=-1,i=u.length;while(++n<i){u[n].call(r,t)}if(s.state===lm){s.on.call("end",r,r.__data__,s.index,s.group);f()}}function f(){s.state=um;s.timer.stop();delete l[o];for(var e in l){return}delete r.__transition}}function pm(e,t){var n=e.__transition,i,a,r=true,o;if(!n)return;t=t==null?null:t+"";for(o in n){if((i=n[o]).name!==t){r=false;continue}a=i.state>rm&&i.state<lm;i.state=um;i.timer.stop();i.on.call(a?"interrupt":"cancel",e,e.__data__,i.index,i.group);delete n[o]}if(r)delete e.__transition}function vm(e){return this.each(function(){pm(this,e)})}function mm(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function ym(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function _m(){}var bm=.7;var wm=1/bm;var xm="\\s*([+-]?\\d+)\\s*",km="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Sm="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Cm=/^#([0-9a-f]{3})$/,Em=/^#([0-9a-f]{6})$/,Am=new RegExp("^rgb\\("+[xm,xm,xm]+"\\)$"),Rm=new RegExp("^rgb\\("+[Sm,Sm,Sm]+"\\)$"),Mm=new RegExp("^rgba\\("+[xm,xm,xm,km]+"\\)$"),Tm=new RegExp("^rgba\\("+[Sm,Sm,Sm,km]+"\\)$"),Bm=new RegExp("^hsl\\("+[km,Sm,Sm]+"\\)$"),Nm=new RegExp("^hsla\\("+[km,Sm,Sm,km]+"\\)$");var Dm={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};mm(_m,Pm,{displayable:function e(){return this.rgb().displayable()},hex:function e(){return this.rgb().hex()},toString:function e(){return this.rgb()+""}});function Pm(e){var t;e=(e+"").trim().toLowerCase();return(t=Cm.exec(e))?(t=parseInt(t[1],16),new Im(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=Em.exec(e))?Om(parseInt(t[1],16)):(t=Am.exec(e))?new Im(t[1],t[2],t[3],1):(t=Rm.exec(e))?new Im(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Mm.exec(e))?zm(t[1],t[2],t[3],t[4]):(t=Tm.exec(e))?zm(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Bm.exec(e))?Hm(t[1],t[2]/100,t[3]/100,1):(t=Nm.exec(e))?Hm(t[1],t[2]/100,t[3]/100,t[4]):Dm.hasOwnProperty(e)?Om(Dm[e]):e==="transparent"?new Im(NaN,NaN,NaN,0):null}function Om(e){return new Im(e>>16&255,e>>8&255,e&255,1)}function zm(e,t,n,i){if(i<=0)e=t=n=NaN;return new Im(e,t,n,i)}function Fm(e){if(!(e instanceof _m))e=Pm(e);if(!e)return new Im;e=e.rgb();return new Im(e.r,e.g,e.b,e.opacity)}function Lm(e,t,n,i){return arguments.length===1?Fm(e):new Im(e,t,n,i==null?1:i)}function Im(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}mm(Im,Lm,ym(_m,{brighter:function e(t){t=t==null?wm:Math.pow(wm,t);return new Im(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?bm:Math.pow(bm,t);return new Im(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function e(){return"#"+jm(this.r)+jm(this.g)+jm(this.b)},toString:function e(){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 jm(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Hm(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new Gm(e,t,n,i)}function Vm(e){if(e instanceof Gm)return new Gm(e.h,e.s,e.l,e.opacity);if(!(e instanceof _m))e=Pm(e);if(!e)return new Gm;if(e instanceof Gm)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new Gm(o,s,l,e.opacity)}function Um(e,t,n,i){return arguments.length===1?Vm(e):new Gm(e,t,n,i==null?1:i)}function Gm(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}mm(Gm,Um,ym(_m,{brighter:function e(t){t=t==null?wm:Math.pow(wm,t);return new Gm(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?bm:Math.pow(bm,t);return new Gm(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Im(Wm(t>=240?t-240:t+120,r,a),Wm(t,r,a),Wm(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));function Wm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Km=Math.PI/180;var qm=180/Math.PI;var Ym=18,Xm=.96422,$m=1,Zm=.82521,Jm=4/29,Qm=6/29,ey=3*Qm*Qm,ty=Qm*Qm*Qm;function ny(e){if(e instanceof ay)return new ay(e.l,e.a,e.b,e.opacity);if(e instanceof cy){if(isNaN(e.h))return new ay(e.l,0,0,e.opacity);var t=e.h*Km;return new ay(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}if(!(e instanceof Im))e=Fm(e);var n=ly(e.r),i=ly(e.g),a=ly(e.b),r=ry((.2225045*n+.7168786*i+.0606169*a)/$m),o,s;if(n===i&&i===a)o=s=r;else{o=ry((.4360747*n+.3850649*i+.1430804*a)/Xm);s=ry((.0139322*n+.0971045*i+.7141733*a)/Zm)}return new ay(116*r-16,500*(o-r),200*(r-s),e.opacity)}function iy(e,t,n,i){return arguments.length===1?ny(e):new ay(e,t,n,i==null?1:i)}function ay(e,t,n,i){this.l=+e;this.a=+t;this.b=+n;this.opacity=+i}mm(ay,iy,ym(_m,{brighter:function e(t){return new ay(this.l+Ym*(t==null?1:t),this.a,this.b,this.opacity)},darker:function e(t){return new ay(this.l-Ym*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function e(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;n=Xm*oy(n);t=$m*oy(t);i=Zm*oy(i);return new Im(sy(3.1338561*n-1.6168667*t-.4906146*i),sy(-.9787684*n+1.9161415*t+.033454*i),sy(.0719453*n-.2289914*t+1.4052427*i),this.opacity)}}));function ry(e){return e>ty?Math.pow(e,1/3):e/ey+Jm}function oy(e){return e>Qm?e*e*e:ey*(e-Jm)}function sy(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function ly(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uy(e){if(e instanceof cy)return new cy(e.h,e.c,e.l,e.opacity);if(!(e instanceof ay))e=ny(e);if(e.a===0&&e.b===0)return new cy(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*qm;return new cy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function hy(e,t,n,i){return arguments.length===1?uy(e):new cy(e,t,n,i==null?1:i)}function cy(e,t,n,i){this.h=+e;this.c=+t;this.l=+n;this.opacity=+i}mm(cy,hy,ym(_m,{brighter:function e(t){return new cy(this.h,this.c,this.l+Ym*(t==null?1:t),this.opacity)},darker:function e(t){return new cy(this.h,this.c,this.l-Ym*(t==null?1:t),this.opacity)},rgb:function e(){return ny(this).rgb()}}));var fy=-.14861,dy=+1.78277,gy=-.29227,py=-.90649,vy=+1.97294,my=vy*py,yy=vy*dy,_y=dy*gy-py*fy;function by(e){if(e instanceof xy)return new xy(e.h,e.s,e.l,e.opacity);if(!(e instanceof Im))e=Fm(e);var t=e.r/255,n=e.g/255,i=e.b/255,a=(_y*i+my*t-yy*n)/(_y+my-yy),r=i-a,o=(vy*(n-a)-gy*r)/py,s=Math.sqrt(o*o+r*r)/(vy*a*(1-a)),l=s?Math.atan2(o,r)*qm-120:NaN;return new xy(l<0?l+360:l,s,a,e.opacity)}function wy(e,t,n,i){return arguments.length===1?by(e):new xy(e,t,n,i==null?1:i)}function xy(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}mm(xy,wy,ym(_m,{brighter:function e(t){t=t==null?wm:Math.pow(wm,t);return new xy(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?bm:Math.pow(bm,t);return new xy(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=isNaN(this.h)?0:(this.h+120)*Km,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),a=Math.cos(t),r=Math.sin(t);return new Im(255*(n+i*(fy*a+dy*r)),255*(n+i*(gy*a+py*r)),255*(n+i*(vy*a)),this.opacity)}}));function ky(e){return function(){return e}}function Sy(t,n){return function(e){return t+e*n}}function Cy(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}function Ey(n){return(n=+n)===1?Ay:function(e,t){return t-e?Cy(e,t,n):ky(isNaN(e)?t:e)}}function Ay(e,t){var n=t-e;return n?Sy(e,n):ky(isNaN(e)?t:e)}var Ry=function e(t){var o=Ey(t);function n(t,e){var n=o((t=Lm(t)).r,(e=Lm(e)).r),i=o(t.g,e.g),a=o(t.b,e.b),r=Ay(t.opacity,e.opacity);return function(e){t.r=n(e);t.g=i(e);t.b=a(e);t.opacity=r(e);return t+""}}n.gamma=e;return n}(1);function My(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(i),r=new Array(n),o;for(o=0;o<i;++o){a[o]=Ly(e[o],t[o])}for(;o<n;++o){r[o]=t[o]}return function(e){for(o=0;o<i;++o){r[o]=a[o](e)}return r}}function Ty(t,n){var i=new Date;return t=+t,n-=t,function(e){return i.setTime(t+n*e),i}}function By(t,n){return t=+t,n-=t,function(e){return t+n*e}}function Ny(e,t){var n={},i={},a;if(e===null||F(e)!=="object")e={};if(t===null||F(t)!=="object")t={};for(a in t){if(a in e){n[a]=Ly(e[a],t[a])}else{i[a]=t[a]}}return function(e){for(a in n){i[a]=n[a](e)}return i}}var Dy=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Py=new RegExp(Dy.source,"g");function Oy(e){return function(){return e}}function zy(t){return function(e){return t(e)+""}}function Fy(e,i){var t=Dy.lastIndex=Py.lastIndex=0,n,a,r,o=-1,s=[],l=[];e=e+"",i=i+"";while((n=Dy.exec(e))&&(a=Py.exec(i))){if((r=a.index)>t){r=i.slice(t,r);if(s[o])s[o]+=r;else s[++o]=r}if((n=n[0])===(a=a[0])){if(s[o])s[o]+=a;else s[++o]=a}else{s[++o]=null;l.push({i:o,x:By(n,a)})}t=Py.lastIndex}if(t<i.length){r=i.slice(t);if(s[o])s[o]+=r;else s[++o]=r}return s.length<2?l[0]?zy(l[0].x):Oy(i):(i=l.length,function(e){for(var t=0,n;t<i;++t){s[(n=l[t]).i]=n.x(e)}return s.join("")})}function Ly(e,t){var n=F(t),i;return t==null||n==="boolean"?ky(t):(n==="number"?By:n==="string"?(i=Pm(t))?(t=i,Ry):Fy:t instanceof Pm?Ry:t instanceof Date?Ty:Array.isArray(t)?My:typeof t.valueOf!=="function"&&typeof t.toString!=="function"||isNaN(t)?Ny:By)(e,t)}function Iy(t,n){return t=+t,n-=t,function(e){return Math.round(t+n*e)}}var jy=180/Math.PI;var Hy={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Vy(e,t,n,i,a,r){var o,s,l;if(o=Math.sqrt(e*e+t*t))e/=o,t/=o;if(l=e*n+t*i)n-=e*l,i-=t*l;if(s=Math.sqrt(n*n+i*i))n/=s,i/=s,l/=s;if(e*i<t*n)e=-e,t=-t,l=-l,o=-o;return{translateX:a,translateY:r,rotate:Math.atan2(t,e)*jy,skewX:Math.atan(l)*jy,scaleX:o,scaleY:s}}var Uy,Gy,Wy,Ky;function qy(e){if(e==="none")return Hy;if(!Uy)Uy=document.createElement("DIV"),Gy=document.documentElement,Wy=document.defaultView;Uy.style.transform=e;e=Wy.getComputedStyle(Gy.appendChild(Uy),null).getPropertyValue("transform");Gy.removeChild(Uy);e=e.slice(7,-1).split(",");return Vy(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5])}function Yy(e){if(e==null)return Hy;if(!Ky)Ky=document.createElementNS("http://www.w3.org/2000/svg","g");Ky.setAttribute("transform",e);if(!(e=Ky.transform.baseVal.consolidate()))return Hy;e=e.matrix;return Vy(e.a,e.b,e.c,e.d,e.e,e.f)}function Xy(n,s,l,a){function u(e){return e.length?e.pop()+" ":""}function i(e,t,n,i,a,r){if(e!==n||t!==i){var o=a.push("translate(",null,s,null,l);r.push({i:o-4,x:By(e,n)},{i:o-2,x:By(t,i)})}else if(n||i){a.push("translate("+n+s+i+l)}}function o(e,t,n,i){if(e!==t){if(e-t>180)t+=360;else if(t-e>180)e+=360;i.push({i:n.push(u(n)+"rotate(",null,a)-2,x:By(e,t)})}else if(t){n.push(u(n)+"rotate("+t+a)}}function h(e,t,n,i){if(e!==t){i.push({i:n.push(u(n)+"skewX(",null,a)-2,x:By(e,t)})}else if(t){n.push(u(n)+"skewX("+t+a)}}function c(e,t,n,i,a,r){if(e!==n||t!==i){var o=a.push(u(a)+"scale(",null,",",null,")");r.push({i:o-4,x:By(e,n)},{i:o-2,x:By(t,i)})}else if(n!==1||i!==1){a.push(u(a)+"scale("+n+","+i+")")}}return function(e,t){var a=[],r=[];e=n(e),t=n(t);i(e.translateX,e.translateY,t.translateX,t.translateY,a,r);o(e.rotate,t.rotate,a,r);h(e.skewX,t.skewX,a,r);c(e.scaleX,e.scaleY,t.scaleX,t.scaleY,a,r);e=t=null;return function(e){var t=-1,n=r.length,i;while(++t<n){a[(i=r[t]).i]=i.x(e)}return a.join("")}}}var $y=Xy(qy,"px, ","px)","deg)");var Zy=Xy(Yy,", ",")",")");var Jy=Math.SQRT2,Qy=2,e_=4,t_=1e-12;function n_(e){return((e=Math.exp(e))+1/e)/2}function i_(e){return((e=Math.exp(e))-1/e)/2}function a_(e){return((e=Math.exp(2*e))-1)/(e+1)}function r_(e,t){var r=e[0],o=e[1],s=e[2],n=t[0],i=t[1],a=t[2],l=n-r,u=i-o,h=l*l+u*u,c,f;if(h<t_){f=Math.log(a/s)/Jy;c=function e(t){return[r+t*l,o+t*u,s*Math.exp(Jy*t*f)]}}else{var d=Math.sqrt(h),g=(a*a-s*s+e_*h)/(2*s*Qy*d),p=(a*a-s*s-e_*h)/(2*a*Qy*d),v=Math.log(Math.sqrt(g*g+1)-g),m=Math.log(Math.sqrt(p*p+1)-p);f=(m-v)/Jy;c=function e(t){var n=t*f,i=n_(v),a=s/(Qy*d)*(i*a_(Jy*n+v)-i_(v));return[r+a*l,o+a*u,s*i/n_(Jy*n+v)]}}c.duration=f*1e3;return c}function o_(a,r){var o,s;return function(){var e=fm(this,a),t=e.tween;if(t!==o){s=o=t;for(var n=0,i=s.length;n<i;++n){if(s[n].name===r){s=s.slice();s.splice(n,1);break}}}e.tween=s}}function s_(r,o,s){var l,u;if(typeof s!=="function")throw new Error;return function(){var e=fm(this,r),t=e.tween;if(t!==l){u=(l=t).slice();for(var n={name:o,value:s},i=0,a=u.length;i<a;++i){if(u[i].name===o){u[i]=n;break}}if(i===a)u.push(n)}e.tween=u}}function l_(e,t){var n=this._id;e+="";if(arguments.length<2){var i=dm(this.node(),n).tween;for(var a=0,r=i.length,o;a<r;++a){if((o=i[a]).name===e){return o.value}}return null}return this.each((t==null?o_:s_)(n,e,t))}function u_(e,t,n){var i=e._id;e.each(function(){var e=fm(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)});return function(e){return dm(e,i).value[t]}}function h_(e,t){var n;return(typeof t==="number"?By:t instanceof Pm?Ry:(n=Pm(t))?(t=n,Ry):Fy)(e,t)}function c_(e){return function(){this.removeAttribute(e)}}function f_(e){return function(){this.removeAttributeNS(e.space,e.local)}}function d_(t,n,i){var a,r=i+"",o;return function(){var e=this.getAttribute(t);return e===r?null:e===a?o:o=n(a=e,i)}}function g_(t,n,i){var a,r=i+"",o;return function(){var e=this.getAttributeNS(t.space,t.local);return e===r?null:e===a?o:o=n(a=e,i)}}function p_(i,a,r){var o,s,l;return function(){var e,t=r(this),n;if(t==null)return void this.removeAttribute(i);e=this.getAttribute(i);n=t+"";return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function v_(i,a,r){var o,s,l;return function(){var e,t=r(this),n;if(t==null)return void this.removeAttributeNS(i.space,i.local);e=this.getAttributeNS(i.space,i.local);n=t+"";return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function m_(e,t){var n=Pg(e),i=n==="transform"?Zy:h_;return this.attrTween(e,typeof t==="function"?(n.local?v_:p_)(n,i,u_(this,"attr."+e,t)):t==null?(n.local?f_:c_)(n):(n.local?g_:d_)(n,i,t))}function y_(t,n){return function(e){this.setAttribute(t,n.call(this,e))}}function __(t,n){return function(e){this.setAttributeNS(t.space,t.local,n.call(this,e))}}function b_(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&__(t,e);return i}e._value=n;return e}function w_(t,n){var i,a;function e(){var e=n.apply(this,arguments);if(e!==a)i=(a=e)&&y_(t,e);return i}e._value=n;return e}function x_(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=="function")throw new Error;var i=Pg(e);return this.tween(n,(i.local?b_:w_)(i,t))}function k_(e,t){return function(){cm(this,e).delay=+t.apply(this,arguments)}}function S_(e,t){return t=+t,function(){cm(this,e).delay=t}}function C_(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?k_:S_)(t,e)):dm(this.node(),t).delay}function E_(e,t){return function(){fm(this,e).duration=+t.apply(this,arguments)}}function A_(e,t){return t=+t,function(){fm(this,e).duration=t}}function R_(e){var t=this._id;return arguments.length?this.each((typeof e==="function"?E_:A_)(t,e)):dm(this.node(),t).duration}function M_(e,t){if(typeof t!=="function")throw new Error;return function(){fm(this,e).ease=t}}function T_(e){var t=this._id;return arguments.length?this.each(M_(t,e)):dm(this.node(),t).ease}function B_(e){if(typeof e!=="function")e=Gg(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a<n;++a){for(var r=t[a],o=r.length,s=i[a]=[],l,u=0;u<o;++u){if((l=r[u])&&e.call(l,l.__data__,u,r)){s.push(l)}}}return new ob(i,this._parents,this._name,this._id)}function N_(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,i=t.length,a=n.length,r=Math.min(i,a),o=new Array(i),s=0;s<r;++s){for(var l=t[s],u=n[s],h=l.length,c=o[s]=new Array(h),f,d=0;d<h;++d){if(f=l[d]||u[d]){c[d]=f}}}for(;s<i;++s){o[s]=t[s]}return new ob(o,this._parents,this._name,this._id)}function D_(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");if(t>=0)e=e.slice(0,t);return!e||e==="start"})}function P_(n,i,a){var r,o,s=D_(i)?cm:fm;return function(){var e=s(this,n),t=e.on;if(t!==r)(o=(r=t).copy()).on(i,a);e.on=o}}function O_(e,t){var n=this._id;return arguments.length<2?dm(this.node(),n).on.on(e):this.each(P_(n,e,t))}function z_(n){return function(){var e=this.parentNode;for(var t in this.__transition){if(+t!==n)return}if(e)e.removeChild(this)}}function F_(){return this.on("end.remove",z_(this._id))}function L_(e){var t=this._name,n=this._id;if(typeof e!=="function")e=Ig(e);for(var i=this._groups,a=i.length,r=new Array(a),o=0;o<a;++o){for(var s=i[o],l=s.length,u=r[o]=new Array(l),h,c,f=0;f<l;++f){if((h=s[f])&&(c=e.call(h,h.__data__,f,s))){if("__data__"in h)c.__data__=h.__data__;u[f]=c;hm(u[f],t,n,f,u,dm(h,n))}}}return new ob(r,this._parents,t,n)}function I_(e){var t=this._name,n=this._id;if(typeof e!=="function")e=Vg(e);for(var i=this._groups,a=i.length,r=[],o=[],s=0;s<a;++s){for(var l=i[s],u=l.length,h,c=0;c<u;++c){if(h=l[c]){for(var f=e.call(h,h.__data__,c,l),d,g=dm(h,n),p=0,v=f.length;p<v;++p){if(d=f[p]){hm(d,t,n,p,f,g)}}r.push(f);o.push(h)}}}return new ob(r,o,t,n)}var j_=wv.prototype.constructor;function H_(){return new j_(this._groups,this._parents)}function V_(n,i){var a,r,o;return function(){var e=Sp(this,n),t=(this.style.removeProperty(n),Sp(this,n));return e===t?null:e===a&&t===r?o:o=i(a=e,r=t)}}function U_(e){return function(){this.style.removeProperty(e)}}function G_(t,n,i){var a,r=i+"",o;return function(){var e=Sp(this,t);return e===r?null:e===a?o:o=n(a=e,i)}}function W_(i,a,r){var o,s,l;return function(){var e=Sp(this,i),t=r(this),n=t+"";if(t==null)n=t=(this.style.removeProperty(i),Sp(this,i));return e===n?null:e===o&&n===s?l:(s=n,l=a(o=e,t))}}function K_(i,a){var r,o,s,l="style."+a,u="end."+l,h;return function(){var e=fm(this,i),t=e.on,n=e.value[l]==null?h||(h=U_(a)):undefined;if(t!==r||s!==n)(o=(r=t).copy()).on(u,s=n);e.on=o}}function q_(e,t,n){var i=(e+="")==="transform"?$y:h_;return t==null?this.styleTween(e,V_(e,i)).on("end.style."+e,U_(e)):typeof t==="function"?this.styleTween(e,W_(e,i,u_(this,"style."+e,t))).each(K_(this._id,e)):this.styleTween(e,G_(e,i,t),n).on("end.style."+e,null)}function Y_(t,n,i){return function(e){this.style.setProperty(t,n.call(this,e),i)}}function X_(t,n,i){var a,r;function e(){var e=n.apply(this,arguments);if(e!==r)a=(r=e)&&Y_(t,e,i);return a}e._value=n;return e}function $_(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(t==null)return this.tween(i,null);if(typeof t!=="function")throw new Error;return this.tween(i,X_(e,t,n==null?"":n))}function Z_(e){return function(){this.textContent=e}}function J_(t){return function(){var e=t(this);this.textContent=e==null?"":e}}function Q_(e){return this.tween("text",typeof e==="function"?J_(u_(this,"text",e)):Z_(e==null?"":e+""))}function eb(t){return function(e){this.textContent=t.call(this,e)}}function tb(t){var n,i;function e(){var e=t.apply(this,arguments);if(e!==i)n=(i=e)&&eb(e);return n}e._value=t;return e}function nb(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=="function")throw new Error;return this.tween(t,tb(e))}function ib(){var e=this._name,t=this._id,n=lb();for(var i=this._groups,a=i.length,r=0;r<a;++r){for(var o=i[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){var h=dm(l,t);hm(l,e,n,u,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}}}return new ob(i,this._parents,e,n)}function ab(){var a,r,o=this,s=o._id,l=o.size();return new Promise(function(t,e){var n={value:e},i={value:function e(){if(--l===0)t()}};o.each(function(){var e=fm(this,s),t=e.on;if(t!==a){r=(a=t).copy();r._.cancel.push(n);r._.interrupt.push(n);r._.end.push(i)}e.on=r})})}var rb=0;function ob(e,t,n,i){this._groups=e;this._parents=t;this._name=n;this._id=i}function sb(e){return wv().transition(e)}function lb(){return++rb}var ub=wv.prototype;ob.prototype=sb.prototype={constructor:ob,select:L_,selectAll:I_,filter:B_,merge:N_,selection:H_,transition:ib,call:ub.call,nodes:ub.nodes,node:ub.node,size:ub.size,empty:ub.empty,each:ub.each,on:O_,attr:m_,attrTween:x_,style:q_,styleTween:$_,text:Q_,textTween:nb,remove:F_,tween:l_,delay:C_,duration:R_,ease:T_,end:ab};function hb(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var cb={time:null,delay:0,duration:250,ease:hb};function fb(e,t){var n;while(!(n=e.__transition)||!(n=n[t])){if(!(e=e.parentNode)){return cb.time=Wv(),cb}}return n}function db(e){var t,n;if(e instanceof ob){t=e._id,e=e._name}else{t=lb(),(n=cb).time=Wv(),e=e==null?null:e+""}for(var i=this._groups,a=i.length,r=0;r<a;++r){for(var o=i[r],s=o.length,l,u=0;u<s;++u){if(l=o[u]){hm(l,e,t,u,o,n||fb(l,t))}}}return new ob(i,this._parents,e,t)}wv.prototype.interrupt=vm;wv.prototype.transition=db;function gb(e,t){t=Object.assign({},{condition:true,enter:{},exit:{},parent:xv("body"),transition:sb().duration(0),update:{}},t);var n=/\.([^#]+)/g.exec(e),i=/#([^\.]+)/g.exec(e),a=/^([^.^#]+)/g.exec(e)[1];var r=t.parent.selectAll(e.includes(":")?e.split(":")[1]:e).data(t.condition?[null]:[]);var o=r.enter().append(a).call(xn,t.enter);if(i)o.attr("id",i[1]);if(n)o.attr("class",n[1]);r.exit().transition(t.transition).call(xn,t.exit).remove();var s=o.merge(r);s.transition(t.transition).call(xn,t.update);return s}var pb="$";function vb(){}vb.prototype=mb.prototype={constructor:vb,has:function e(t){return pb+t in this},get:function e(t){return this[pb+t]},set:function e(t,n){this[pb+t]=n;return this},remove:function e(t){var n=pb+t;return n in this&&delete this[n]},clear:function e(){for(var t in this){if(t[0]===pb)delete this[t]}},keys:function e(){var e=[];for(var t in this){if(t[0]===pb)e.push(t.slice(1))}return e},values:function e(){var e=[];for(var t in this){if(t[0]===pb)e.push(this[t])}return e},entries:function e(){var e=[];for(var t in this){if(t[0]===pb)e.push({key:t.slice(1),value:this[t]})}return e},size:function e(){var e=0;for(var t in this){if(t[0]===pb)++e}return e},empty:function e(){for(var t in this){if(t[0]===pb)return false}return true},each:function e(t){for(var n in this){if(n[0]===pb)t(this[n],n.slice(1),this)}}};function mb(e,t){var n=new vb;if(e instanceof vb)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var i=-1,a=e.length,r;if(t==null)while(++i<a){n.set(i,e[i])}else while(++i<a){n.set(t(r=e[i],i,e),r)}}else if(e)for(var o in e){n.set(o,e[o])}return n}function yb(){var f=[],r=[],d,g,n;function p(e,n,i,a){if(n>=f.length){if(d!=null)e.sort(d);return g!=null?g(e):e}var t=-1,r=e.length,o=f[n++],s,l,u=mb(),h,c=i();while(++t<r){if(h=u.get(s=o(l=e[t])+"")){h.push(l)}else{u.set(s,[l])}}u.each(function(e,t){a(c,t,p(e,n,i,a))});return c}function o(e,n){if(++n>f.length)return e;var i,a=r[n-1];if(g!=null&&n>=f.length)i=e.entries();else i=[],e.each(function(e,t){i.push({key:t,values:o(e,n)})});return a!=null?i.sort(function(e,t){return a(e.key,t.key)}):i}return n={object:function e(t){return p(t,0,_b,bb)},map:function e(t){return p(t,0,wb,xb)},entries:function e(t){return o(p(t,0,wb,xb),0)},key:function e(t){f.push(t);return n},sortKeys:function e(t){r[f.length-1]=t;return n},sortValues:function e(t){d=t;return n},rollup:function e(t){g=t;return n}}}function _b(){return{}}function bb(e,t,n){e[t]=n}function wb(){return mb()}function xb(e,t,n){e.set(t,n)}function kb(){}var Sb=mb.prototype;kb.prototype=Cb.prototype={constructor:kb,has:Sb.has,add:function e(t){t+="";this[pb+t]=t;return this},remove:Sb.remove,clear:Sb.clear,values:Sb.keys,size:Sb.size,empty:Sb.empty,each:Sb.each};function Cb(e,t){var n=new kb;if(e instanceof kb)e.each(function(e){n.add(e)});else if(e){var i=-1,a=e.length;if(t==null)while(++i<a){n.add(e[i])}else while(++i<a){n.add(t(e[i],i,e))}}return n}function Eb(e){var t=[];for(var n in e){t.push(n)}return t}function Ab(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function Rb(a){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=Ab(Pe(a.map(function(e){return Eb(e)}))),o={};e.forEach(function(t){var e;if(r[t])e=r[t](a,function(e){return e[t]});else{var n=a.map(function(e){return e[t]});var i=n.map(function(e){return e||e===false?e.constructor:e}).filter(function(e){return e!==void 0});if(!i.length)e=undefined;else if(i.indexOf(Array)>=0){e=Pe(n.map(function(e){return e instanceof Array?e:[e]}));e=Ab(e);if(e.length===1)e=e[0]}else if(i.indexOf(String)>=0){e=Ab(n);if(e.length===1)e=e[0]}else if(i.indexOf(Number)>=0)e=O(n);else if(i.indexOf(Object)>=0){e=Ab(n.filter(function(e){return e}));if(e.length===1)e=e[0];else e=Rb(e)}else{e=Ab(n.filter(function(e){return e!==void 0}));if(e.length===1)e=e[0]}}o[t]=e});return o}function Mb(e){var a;if(typeof e==="number")a=[e];else a=e.split(/\s+/);if(a.length===1)a=[a[0],a[0],a[0],a[0]];else if(a.length===2)a=a.concat(a);else if(a.length===3)a.push(a[1]);return["top","right","bottom","left"].reduce(function(e,t,n){var i=parseFloat(a[n]);e[t]=i||0;return e},{})}function Tb(){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 Bb(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.style(n,t[n])}}function Nb(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Db(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function Pb(e,t,n){if(t)Db(e.prototype,t);if(n)Db(e,n);return e}var Ob=function(){function l(){Nb(this,l);this._duration=600;this._height=mn("height");this._id=mn("id");this._opacity=Bg(1);this._pointerEvents=Bg("auto");this._select;this._url=mn("url");this._width=mn("width");this._x=mn("x",0);this._y=mn("y",0)}Pb(l,[{key:"render",value:function e(t){var n=this;if(this._select===void 0)this.select(xv("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var i=this._select.selectAll(".d3plus-Image").data(this._data,this._id);var a=i.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",function(e,t){return n._x(e,t)+n._width(e,t)/2}).attr("y",function(e,t){return n._y(e,t)+n._height(e,t)/2});var r=sb().duration(this._duration),o=this,s=a.merge(i);s.attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(r).attr("opacity",this._opacity).attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return n._x(e,t)}).attr("y",function(e,t){return n._y(e,t)}).each(function(e,t){var n=xv(this),i=o._url(e,t);var a=i.indexOf("http://")===0||i.indexOf("https://")===0;if(!a||i.indexOf(window.location.hostname)===0){var r=new l;r.src=i;r.crossOrigin="Anonymous";r.onload=function(){var e=document.createElement("canvas");e.width=this.width;e.height=this.height;var t=e.getContext("2d");t.drawImage(this,0,0);n.attr("xlink:href",e.toDataURL("image/png"))}}});i.exit().transition(r).attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return n._x(e,t)}).attr("y",function(e,t){return n._y(e,t)}).attr("opacity",0).remove();if(t)setTimeout(t,this._duration+100);return this}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Bg(t),this):this._height}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Bg(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Bg(t),this):this._pointerEvents}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"url",value:function e(t){return arguments.length?(this._url=t,this):this._url}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Bg(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Bg(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Bg(t),this):this._y}}]);return l}();function zb(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Fb(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function Lb(){}var Ib=.7;var jb=1/Ib;var Hb="\\s*([+-]?\\d+)\\s*",Vb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ub="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Gb=/^#([0-9a-f]{3,8})$/,Wb=new RegExp("^rgb\\("+[Hb,Hb,Hb]+"\\)$"),Kb=new RegExp("^rgb\\("+[Ub,Ub,Ub]+"\\)$"),qb=new RegExp("^rgba\\("+[Hb,Hb,Hb,Vb]+"\\)$"),Yb=new RegExp("^rgba\\("+[Ub,Ub,Ub,Vb]+"\\)$"),Xb=new RegExp("^hsl\\("+[Vb,Ub,Ub]+"\\)$"),$b=new RegExp("^hsla\\("+[Vb,Ub,Ub,Vb]+"\\)$");var Zb={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};zb(Lb,tw,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:Jb,formatHex:Jb,formatHsl:Qb,formatRgb:ew,toString:ew});function Jb(){return this.rgb().formatHex()}function Qb(){return cw(this).formatHsl()}function ew(){return this.rgb().formatRgb()}function tw(e){var t,n;e=(e+"").trim().toLowerCase();return(t=Gb.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?nw(t):n===3?new ow(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?iw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?iw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Wb.exec(e))?new ow(t[1],t[2],t[3],1):(t=Kb.exec(e))?new ow(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=qb.exec(e))?iw(t[1],t[2],t[3],t[4]):(t=Yb.exec(e))?iw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Xb.exec(e))?hw(t[1],t[2]/100,t[3]/100,1):(t=$b.exec(e))?hw(t[1],t[2]/100,t[3]/100,t[4]):Zb.hasOwnProperty(e)?nw(Zb[e]):e==="transparent"?new ow(NaN,NaN,NaN,0):null}function nw(e){return new ow(e>>16&255,e>>8&255,e&255,1)}function iw(e,t,n,i){if(i<=0)e=t=n=NaN;return new ow(e,t,n,i)}function aw(e){if(!(e instanceof Lb))e=tw(e);if(!e)return new ow;e=e.rgb();return new ow(e.r,e.g,e.b,e.opacity)}function rw(e,t,n,i){return arguments.length===1?aw(e):new ow(e,t,n,i==null?1:i)}function ow(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}zb(ow,rw,Fb(Lb,{brighter:function e(t){t=t==null?jb:Math.pow(jb,t);return new ow(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Ib:Math.pow(Ib,t);return new ow(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:sw,formatHex:sw,formatRgb:lw,toString:lw}));function sw(){return"#"+uw(this.r)+uw(this.g)+uw(this.b)}function lw(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function uw(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function hw(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new dw(e,t,n,i)}function cw(e){if(e instanceof dw)return new dw(e.h,e.s,e.l,e.opacity);if(!(e instanceof Lb))e=tw(e);if(!e)return new dw;if(e instanceof dw)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new dw(o,s,l,e.opacity)}function fw(e,t,n,i){return arguments.length===1?cw(e):new dw(e,t,n,i==null?1:i)}function dw(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}zb(dw,fw,Fb(Lb,{brighter:function e(t){t=t==null?jb:Math.pow(jb,t);return new dw(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Ib:Math.pow(Ib,t);return new dw(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new ow(gw(t>=240?t-240:t+120,r,a),gw(t,r,a),gw(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function gw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function pw(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function vw(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function mw(){}var yw=.7;var _w=1/yw;var bw="\\s*([+-]?\\d+)\\s*",ww="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",xw="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",kw=/^#([0-9a-f]{3,8})$/,Sw=new RegExp("^rgb\\("+[bw,bw,bw]+"\\)$"),Cw=new RegExp("^rgb\\("+[xw,xw,xw]+"\\)$"),Ew=new RegExp("^rgba\\("+[bw,bw,bw,ww]+"\\)$"),Aw=new RegExp("^rgba\\("+[xw,xw,xw,ww]+"\\)$"),Rw=new RegExp("^hsl\\("+[ww,xw,xw]+"\\)$"),Mw=new RegExp("^hsla\\("+[ww,xw,xw,ww]+"\\)$");var Tw={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};pw(mw,Pw,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:Bw,formatHex:Bw,formatHsl:Nw,formatRgb:Dw,toString:Dw});function Bw(){return this.rgb().formatHex()}function Nw(){return Gw(this).formatHsl()}function Dw(){return this.rgb().formatRgb()}function Pw(e){var t,n;e=(e+"").trim().toLowerCase();return(t=kw.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Ow(t):n===3?new Iw(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?zw(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?zw(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Sw.exec(e))?new Iw(t[1],t[2],t[3],1):(t=Cw.exec(e))?new Iw(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ew.exec(e))?zw(t[1],t[2],t[3],t[4]):(t=Aw.exec(e))?zw(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Rw.exec(e))?Uw(t[1],t[2]/100,t[3]/100,1):(t=Mw.exec(e))?Uw(t[1],t[2]/100,t[3]/100,t[4]):Tw.hasOwnProperty(e)?Ow(Tw[e]):e==="transparent"?new Iw(NaN,NaN,NaN,0):null}function Ow(e){return new Iw(e>>16&255,e>>8&255,e&255,1)}function zw(e,t,n,i){if(i<=0)e=t=n=NaN;return new Iw(e,t,n,i)}function Fw(e){if(!(e instanceof mw))e=Pw(e);if(!e)return new Iw;e=e.rgb();return new Iw(e.r,e.g,e.b,e.opacity)}function Lw(e,t,n,i){return arguments.length===1?Fw(e):new Iw(e,t,n,i==null?1:i)}function Iw(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}pw(Iw,Lw,vw(mw,{brighter:function e(t){t=t==null?_w:Math.pow(_w,t);return new Iw(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?yw:Math.pow(yw,t);return new Iw(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:jw,formatHex:jw,formatRgb:Hw,toString:Hw}));function jw(){return"#"+Vw(this.r)+Vw(this.g)+Vw(this.b)}function Hw(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function Vw(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Uw(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new Kw(e,t,n,i)}function Gw(e){if(e instanceof Kw)return new Kw(e.h,e.s,e.l,e.opacity);if(!(e instanceof mw))e=Pw(e);if(!e)return new Kw;if(e instanceof Kw)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new Kw(o,s,l,e.opacity)}function Ww(e,t,n,i){return arguments.length===1?Gw(e):new Kw(e,t,n,i==null?1:i)}function Kw(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}pw(Kw,Ww,vw(mw,{brighter:function e(t){t=t==null?_w:Math.pow(_w,t);return new Kw(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?yw:Math.pow(yw,t);return new Kw(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Iw(qw(t>=240?t-240:t+120,r,a),qw(t,r,a),qw(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function qw(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Yw(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xw(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e);break}return this}var $w=Array.prototype;var Zw=$w.map;var Jw=$w.slice;var Qw={name:"implicit"};function ex(){var r=mb(),o=[],i=[],a=Qw;function s(e){var t=e+"",n=r.get(t);if(!n){if(a!==Qw)return a;r.set(t,n=o.push(e))}return i[(n-1)%i.length]}s.domain=function(e){if(!arguments.length)return o.slice();o=[],r=mb();var t=-1,n=e.length,i,a;while(++t<n){if(!r.has(a=(i=e[t])+""))r.set(a,o.push(i))}return s};s.range=function(e){return arguments.length?(i=Jw.call(e),s):i.slice()};s.unknown=function(e){return arguments.length?(a=e,s):a};s.copy=function(){return ex(o,i).unknown(a)};Yw.apply(s,arguments);return s}function tx(){var e=ex().unknown(undefined),r=e.domain,o=e.range,s=[0,1],l,u,h=false,c=0,f=0,d=.5;delete e.unknown;function t(){var e=r().length,t=s[1]<s[0],n=s[t-0],i=s[1-t];l=(i-n)/Math.max(1,e-c+f*2);if(h)l=Math.floor(l);n+=(i-n-l*(e-c))*d;u=l*(1-c);if(h)n=Math.round(n),u=Math.round(u);var a=Ne(e).map(function(e){return n+l*e});return o(t?a.reverse():a)}e.domain=function(e){return arguments.length?(r(e),t()):r()};e.range=function(e){return arguments.length?(s=[+e[0],+e[1]],t()):s.slice()};e.rangeRound=function(e){return s=[+e[0],+e[1]],h=true,t()};e.bandwidth=function(){return u};e.step=function(){return l};e.round=function(e){return arguments.length?(h=!!e,t()):h};e.padding=function(e){return arguments.length?(c=Math.min(1,f=+e),t()):c};e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),t()):c};e.paddingOuter=function(e){return arguments.length?(f=+e,t()):f};e.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d};e.copy=function(){return tx(r(),s).round(h).paddingInner(c).paddingOuter(f).align(d)};return Yw.apply(t(),arguments)}function nx(e){var t=e.copy;e.padding=e.paddingOuter;delete e.paddingInner;delete e.paddingOuter;e.copy=function(){return nx(t())};return e}function ix(){return nx(tx.apply(null,arguments).paddingInner(1))}function ax(e){return function(){return e}}function rx(e){return+e}var ox=[0,1];function sx(e){return e}function lx(t,n){return(n-=t=+t)?function(e){return(e-t)/n}:ax(isNaN(n)?NaN:.5)}function ux(e){var t=e[0],n=e[e.length-1],i;if(t>n)i=t,t=n,n=i;return function(e){return Math.max(t,Math.min(n,e))}}function hx(e,t,n){var i=e[0],a=e[1],r=t[0],o=t[1];if(a<i)i=lx(a,i),r=n(o,r);else i=lx(i,a),r=n(r,o);return function(e){return r(i(e))}}function cx(n,e,t){var i=Math.min(n.length,e.length)-1,a=new Array(i),r=new Array(i),o=-1;if(n[i]<n[0]){n=n.slice().reverse();e=e.slice().reverse()}while(++o<i){a[o]=lx(n[o],n[o+1]);r[o]=t(e[o],e[o+1])}return function(e){var t=A(n,e,1,i)-1;return r[t](a[t](e))}}function fx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function dx(){var t=ox,n=ox,i=Ly,a,r,o,s=sx,l,u,h;function c(){l=Math.min(t.length,n.length)>2?cx:hx;u=h=null;return f}function f(e){return isNaN(e=+e)?o:(u||(u=l(t.map(a),n,i)))(a(s(e)))}f.invert=function(e){return s(r((h||(h=l(n,t.map(a),By)))(e)))};f.domain=function(e){return arguments.length?(t=Zw.call(e,rx),s===sx||(s=ux(t)),c()):t.slice()};f.range=function(e){return arguments.length?(n=Jw.call(e),c()):n.slice()};f.rangeRound=function(e){return n=Jw.call(e),i=Iy,c()};f.clamp=function(e){return arguments.length?(s=e?ux(t):sx,f):s!==sx};f.interpolate=function(e){return arguments.length?(i=e,c()):i};f.unknown=function(e){return arguments.length?(o=e,f):o};return function(e,t){a=e,r=t;return c()}}function gx(e,t){return dx()(e,t)}function px(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function vx(e){return e=px(Math.abs(e)),e?e[1]:NaN}function mx(s,l){return function(e,t){var n=e.length,i=[],a=0,r=s[0],o=0;while(n>0&&r>0){if(o+r+1>t)r=Math.max(1,t-o);i.push(e.substring(n-=r,n+r));if((o+=r+1)>t)break;r=s[a=(a+1)%s.length]}return i.reverse().join(l)}}function yx(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var _x=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bx(e){return new wx(e)}bx.prototype=wx.prototype;function wx(e){if(!(t=_x.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ";this.align=t[2]||">";this.sign=t[3]||"-";this.symbol=t[4]||"";this.zero=!!t[5];this.width=t[6]&&+t[6];this.comma=!!t[7];this.precision=t[8]&&+t[8].slice(1);this.trim=!!t[9];this.type=t[10]||""}wx.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width==null?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision==null?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function xx(e){e:for(var t=e.length,n=1,i=-1,a;n<t;++n){switch(e[n]){case".":i=a=n;break;case"0":if(i===0)i=n;a=n;break;default:if(i>0){if(!+e[n])break e;i=0}break}}return i>0?e.slice(0,i)+e.slice(a+1):e}var kx;function Sx(e,t){var n=px(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(kx=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+px(e,Math.max(0,t+r-1))[0]}function Cx(e,t){var n=px(e,t);if(!n)return e+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}var Ex={"%":function e(t,n){return(t*100).toFixed(n)},b:function e(t){return Math.round(t).toString(2)},c:function e(t){return t+""},d:function e(t){return Math.round(t).toString(10)},e:function e(t,n){return t.toExponential(n)},f:function e(t,n){return t.toFixed(n)},g:function e(t,n){return t.toPrecision(n)},o:function e(t){return Math.round(t).toString(8)},p:function e(t,n){return Cx(t*100,n)},r:Cx,s:Sx,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function Ax(e){return e}var Rx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Mx(e){var x=e.grouping&&e.thousands?mx(e.grouping,e.thousands):Ax,i=e.currency,k=e.decimal,S=e.numerals?yx(e.numerals):Ax,a=e.percent||"%";function o(e){e=bx(e);var u=e.fill,h=e.align,c=e.sign,t=e.symbol,f=e.zero,d=e.width,g=e.comma,p=e.precision,v=e.trim,m=e.type;if(m==="n")g=true,m="g";else if(!Ex[m])p==null&&(p=12),v=true,m="g";if(f||u==="0"&&h==="=")f=true,u="0",h="=";var y=t==="$"?i[0]:t==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=t==="$"?i[1]:/[%p]/.test(m)?a:"";var b=Ex[m],w=/[defgprs%]/.test(m);p=p==null?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function n(e){var t=y,n=_,i,a,r;if(m==="c"){n=b(e)+n;e=""}else{e=+e;var o=e<0;e=b(Math.abs(e),p);if(v)e=xx(e);if(o&&+e===0)o=false;t=(o?c==="("?c:"-":c==="-"||c==="("?"":c)+t;n=(m==="s"?Rx[8+kx/3]:"")+n+(o&&c==="("?")":"");if(w){i=-1,a=e.length;while(++i<a){if(r=e.charCodeAt(i),48>r||r>57){n=(r===46?k+e.slice(i+1):e.slice(i))+n;e=e.slice(0,i);break}}}}if(g&&!f)e=x(e,Infinity);var s=t.length+e.length+n.length,l=s<d?new Array(d-s+1).join(u):"";if(g&&f)e=x(l+e,l.length?d-n.length:Infinity),l="";switch(h){case"<":e=t+e+n+l;break;case"=":e=t+l+e+n;break;case"^":e=l.slice(0,s=l.length>>1)+t+e+n+l.slice(s);break;default:e=l+t+e+n;break}return S(e)}n.toString=function(){return e+""};return n}function t(e,t){var n=o((e=bx(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(vx(t)/3)))*3,a=Math.pow(10,-i),r=Rx[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var Tx;var Bx;var Nx;Dx({decimal:".",thousands:",",grouping:[3],currency:["$",""]});function Dx(e){Tx=Mx(e);Bx=Tx.format;Nx=Tx.formatPrefix;return Tx}function Px(e){return Math.max(0,-vx(Math.abs(e)))}function Ox(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vx(t)/3)))*3-vx(Math.abs(e)))}function zx(e,t){e=Math.abs(e),t=Math.abs(t)-e;return Math.max(0,vx(t)-vx(e))+1}function Fx(e,t,n,i){var a=P(e,t,n),r;i=bx(i==null?",f":i);switch(i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));if(i.precision==null&&!isNaN(r=Ox(a,o)))i.precision=r;return Nx(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(r=zx(a,Math.max(Math.abs(e),Math.abs(t)))))i.precision=r-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(r=Px(a)))i.precision=r-(i.type==="%")*2;break}}return Bx(i)}function Lx(s){var l=s.domain;s.ticks=function(e){var t=l();return pe(t[0],t[t.length-1],e==null?10:e)};s.tickFormat=function(e,t){var n=l();return Fx(n[0],n[n.length-1],e==null?10:e,t)};s.nice=function(e){if(e==null)e=10;var t=l(),n=0,i=t.length-1,a=t[n],r=t[i],o;if(r<a){o=a,a=r,r=o;o=n,n=i,i=o}o=D(a,r,e);if(o>0){a=Math.floor(a/o)*o;r=Math.ceil(r/o)*o;o=D(a,r,e)}else if(o<0){a=Math.ceil(a*o)/o;r=Math.floor(r*o)/o;o=D(a,r,e)}if(o>0){t[n]=Math.floor(a/o)*o;t[i]=Math.ceil(r/o)*o;l(t)}else if(o<0){t[n]=Math.ceil(a*o)/o;t[i]=Math.floor(r*o)/o;l(t)}return s};return s}function Ix(){var e=gx(sx,sx);e.copy=function(){return fx(e,Ix())};Yw.apply(e,arguments);return Lx(e)}function jx(t){var n;function i(e){return isNaN(e=+e)?n:e}i.invert=i;i.domain=i.range=function(e){return arguments.length?(t=Zw.call(e,rx),i):t.slice()};i.unknown=function(e){return arguments.length?(n=e,i):n};i.copy=function(){return jx(t).unknown(n)};t=arguments.length?Zw.call(t,rx):[0,1];return Lx(i)}function Hx(e,t){e=e.slice();var n=0,i=e.length-1,a=e[n],r=e[i],o;if(r<a){o=n,n=i,i=o;o=a,a=r,r=o}e[n]=t.floor(a);e[i]=t.ceil(r);return e}function Vx(e){return Math.log(e)}function Ux(e){return Math.exp(e)}function Gx(e){return-Math.log(-e)}function Wx(e){return-Math.exp(-e)}function Kx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function qx(t){return t===10?Kx:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}function Yx(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}function Xx(t){return function(e){return-t(-e)}}function $x(e){var t=e(Vx,Ux),f=t.domain,d=10,g,p;function n(){g=Yx(d),p=qx(d);if(f()[0]<0){g=Xx(g),p=Xx(p);e(Gx,Wx)}else{e(Vx,Ux)}return t}t.base=function(e){return arguments.length?(d=+e,n()):d};t.domain=function(e){return arguments.length?(f(e),n()):f()};t.ticks=function(e){var t=f(),n=t[0],i=t[t.length-1],a;if(a=i<n)r=n,n=i,i=r;var r=g(n),o=g(i),s,l,u,h=e==null?10:+e,c=[];if(!(d%1)&&o-r<h){r=Math.round(r)-1,o=Math.round(o)+1;if(n>0)for(;r<o;++r){for(l=1,s=p(r);l<d;++l){u=s*l;if(u<n)continue;if(u>i)break;c.push(u)}}else for(;r<o;++r){for(l=d-1,s=p(r);l>=1;--l){u=s*l;if(u<n)continue;if(u>i)break;c.push(u)}}}else{c=pe(r,o,Math.min(o-r,h)).map(p)}return a?c.reverse():c};t.tickFormat=function(e,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Bx(n);if(e===Infinity)return n;if(e==null)e=10;var i=Math.max(1,d*e/t.ticks().length);return function(e){var t=e/p(Math.round(g(e)));if(t*d<d-.5)t*=d;return t<=i?n(e):""}};t.nice=function(){return f(Hx(f(),{floor:function e(t){return p(Math.floor(g(t)))},ceil:function e(t){return p(Math.ceil(g(t)))}}))};return t}function Zx(){var e=$x(dx()).domain([1,10]);e.copy=function(){return fx(e,Zx()).base(e.base())};Yw.apply(e,arguments);return e}function Jx(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Qx(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ek(t){var n=1,e=t(Jx(n),Qx(n));e.constant=function(e){return arguments.length?t(Jx(n=+e),Qx(n)):n};return Lx(e)}function tk(){var e=ek(dx());e.copy=function(){return fx(e,tk()).constant(e.constant())};return Yw.apply(e,arguments)}function nk(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function ik(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function ak(e){return e<0?-e*e:e*e}function rk(e){var t=e(sx,sx),n=1;function i(){return n===1?e(sx,sx):n===.5?e(ik,ak):e(nk(n),nk(1/n))}t.exponent=function(e){return arguments.length?(n=+e,i()):n};return Lx(t)}function ok(){var e=rk(dx());e.copy=function(){return fx(e,ok()).exponent(e.exponent())};Yw.apply(e,arguments);return e}function sk(){return ok.apply(null,arguments).exponent(.5)}function lk(){var a=[],n=[],i=[],t;function r(){var e=0,t=Math.max(1,n.length);i=new Array(t-1);while(++e<t){i[e-1]=De(a,e/t)}return o}function o(e){return isNaN(e=+e)?t:n[A(i,e)]}o.invertExtent=function(e){var t=n.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:a[0],t<i.length?i[t]:a[a.length-1]]};o.domain=function(e){if(!arguments.length)return a.slice();a=[];for(var t=0,n=e.length,i;t<n;++t){if(i=e[t],i!=null&&!isNaN(i=+i))a.push(i)}a.sort(k);return r()};o.range=function(e){return arguments.length?(n=Jw.call(e),r()):n.slice()};o.unknown=function(e){return arguments.length?(t=e,o):t};o.quantiles=function(){return i.slice()};o.copy=function(){return lk().domain(a).range(n).unknown(t)};return Yw.apply(o,arguments)}function uk(){var n=0,i=1,a=1,r=[.5],o=[0,1],t;function s(e){return e<=e?o[A(r,e,0,a)]:t}function l(){var e=-1;r=new Array(a);while(++e<a){r[e]=((e+1)*i-(e-a)*n)/(a+1)}return s}s.domain=function(e){return arguments.length?(n=+e[0],i=+e[1],l()):[n,i]};s.range=function(e){return arguments.length?(a=(o=Jw.call(e)).length-1,l()):o.slice()};s.invertExtent=function(e){var t=o.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,r[0]]:t>=a?[r[a-1],i]:[r[t-1],r[t]]};s.unknown=function(e){return arguments.length?(t=e,s):s};s.thresholds=function(){return r.slice()};s.copy=function(){return uk().domain([n,i]).range(o).unknown(t)};return Yw.apply(Lx(s),arguments)}function hk(){var n=[.5],i=[0,1],t,a=1;function r(e){return e<=e?i[A(n,e,0,a)]:t}r.domain=function(e){return arguments.length?(n=Jw.call(e),a=Math.min(n.length,i.length-1),r):n.slice()};r.range=function(e){return arguments.length?(i=Jw.call(e),a=Math.min(n.length,i.length-1),r):i.slice()};r.invertExtent=function(e){var t=i.indexOf(e);return[n[t-1],n[t]]};r.unknown=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return hk().domain(n).range(i).unknown(t)};return Yw.apply(r,arguments)}var ck=new Date,fk=new Date;function dk(r,o,n,i){function s(e){return r(e=new Date(+e)),e}s.floor=s;s.ceil=function(e){return r(e=new Date(e-1)),o(e,1),r(e),e};s.round=function(e){var t=s(e),n=s.ceil(e);return e-t<n-e?t:n};s.offset=function(e,t){return o(e=new Date(+e),t==null?1:Math.floor(t)),e};s.range=function(e,t,n){var i=[],a;e=s.ceil(e);n=n==null?1:Math.floor(n);if(!(e<t)||!(n>0))return i;do{i.push(a=new Date(+e)),o(e,n),r(e)}while(a<e&&e<t);return i};s.filter=function(n){return dk(function(e){if(e>=e)while(r(e),!n(e)){e.setTime(e-1)}},function(e,t){if(e>=e){if(t<0)while(++t<=0){while(o(e,-1),!n(e)){}}else while(--t>=0){while(o(e,+1),!n(e)){}}}})};if(n){s.count=function(e,t){ck.setTime(+e),fk.setTime(+t);r(ck),r(fk);return Math.floor(n(ck,fk))};s.every=function(t){t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?s:s.filter(i?function(e){return i(e)%t===0}:function(e){return s.count(0,e)%t===0})}}return s}var gk=dk(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});gk.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return gk;return dk(function(e){e.setTime(Math.floor(e/n)*n)},function(e,t){e.setTime(+e+t*n)},function(e,t){return(t-e)/n})};var pk=1e3;var vk=6e4;var mk=36e5;var yk=864e5;var _k=6048e5;var bk=dk(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+t*pk)},function(e,t){return(t-e)/pk},function(e){return e.getUTCSeconds()});var wk=dk(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*pk)},function(e,t){e.setTime(+e+t*vk)},function(e,t){return(t-e)/vk},function(e){return e.getMinutes()});var xk=dk(function(e){e.setTime(e-e.getMilliseconds()-e.getSeconds()*pk-e.getMinutes()*vk)},function(e,t){e.setTime(+e+t*mk)},function(e,t){return(t-e)/mk},function(e){return e.getHours()});var kk=dk(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vk)/yk},function(e){return e.getDate()-1});function Sk(t){return dk(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7);e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*vk)/_k})}var Ck=Sk(0);var Ek=Sk(1);var Ak=Sk(2);var Rk=Sk(3);var Mk=Sk(4);var Tk=Sk(5);var Bk=Sk(6);var Nk=dk(function(e){e.setDate(1);e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});var Dk=dk(function(e){e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Dk.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:dk(function(e){e.setFullYear(Math.floor(e.getFullYear()/n)*n);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t*n)})};var Pk=dk(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*vk)},function(e,t){return(t-e)/vk},function(e){return e.getUTCMinutes()});var Ok=dk(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*mk)},function(e,t){return(t-e)/mk},function(e){return e.getUTCHours()});var zk=dk(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/yk},function(e){return e.getUTCDate()-1});function Fk(t){return dk(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/_k})}var Lk=Fk(0);var Ik=Fk(1);var jk=Fk(2);var Hk=Fk(3);var Vk=Fk(4);var Uk=Fk(5);var Gk=Fk(6);var Wk=dk(function(e){e.setUTCDate(1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});var Kk=dk(function(e){e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Kk.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:dk(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t*n)})};function qk(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);t.setFullYear(e.y);return t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Yk(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));t.setUTCFullYear(e.y);return t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Xk(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function $k(e){var i=e.dateTime,a=e.date,r=e.time,t=e.periods,n=e.days,o=e.shortDays,s=e.months,l=e.shortMonths;var u=iS(t),h=aS(t),c=iS(n),f=aS(n),d=iS(o),g=aS(o),p=iS(s),v=aS(s),m=iS(l),y=aS(l);var _={a:D,A:P,b:O,B:z,c:null,d:SS,e:SS,f:MS,H:CS,I:ES,j:AS,L:RS,m:TS,M:BS,p:F,Q:rC,s:oC,S:NS,u:DS,U:PS,V:OS,w:zS,W:FS,x:null,X:null,y:LS,Y:IS,Z:jS,"%":aC};var b={a:L,A:I,b:j,B:H,c:null,d:HS,e:HS,f:KS,H:VS,I:US,j:GS,L:WS,m:qS,M:YS,p:V,Q:rC,s:oC,S:XS,u:$S,U:ZS,V:JS,w:QS,W:eC,x:null,X:null,y:tC,Y:nC,Z:iC,"%":aC};var w={a:E,A:A,b:R,B:M,c:T,d:gS,e:gS,f:bS,H:vS,I:vS,j:pS,L:_S,m:dS,M:mS,p:C,Q:xS,s:kS,S:yS,u:oS,U:sS,V:lS,w:rS,W:uS,x:B,X:N,y:cS,Y:hS,Z:fS,"%":wS};_.x=x(a,_);_.X=x(r,_);_.c=x(i,_);b.x=x(a,b);b.X=x(r,b);b.c=x(i,b);function x(l,u){return function(e){var t=[],n=-1,i=0,a=l.length,r,o,s;if(!(e instanceof Date))e=new Date(+e);while(++n<a){if(l.charCodeAt(n)===37){t.push(l.slice(i,n));if((o=Zk[r=l.charAt(++n)])!=null)r=l.charAt(++n);else o=r==="e"?" ":"0";if(s=u[r])r=s(e,o);t.push(r);i=n+1}}t.push(l.slice(i,n));return t.join("")}}function k(r,o){return function(e){var t=Xk(1900),n=S(t,r,e+="",0),i,a;if(n!=e.length)return null;if("Q"in t)return new Date(t.Q);if("p"in t)t.H=t.H%12+t.p*12;if("V"in t){if(t.V<1||t.V>53)return null;if(!("w"in t))t.w=1;if("Z"in t){i=Yk(Xk(t.y)),a=i.getUTCDay();i=a>4||a===0?Ik.ceil(i):Ik(i);i=zk.offset(i,(t.V-1)*7);t.y=i.getUTCFullYear();t.m=i.getUTCMonth();t.d=i.getUTCDate()+(t.w+6)%7}else{i=o(Xk(t.y)),a=i.getDay();i=a>4||a===0?Ek.ceil(i):Ek(i);i=kk.offset(i,(t.V-1)*7);t.y=i.getFullYear();t.m=i.getMonth();t.d=i.getDate()+(t.w+6)%7}}else if("W"in t||"U"in t){if(!("w"in t))t.w="u"in t?t.u%7:"W"in t?1:0;a="Z"in t?Yk(Xk(t.y)).getUTCDay():o(Xk(t.y)).getDay();t.m=0;t.d="W"in t?(t.w+6)%7+t.W*7-(a+5)%7:t.w+t.U*7-(a+6)%7}if("Z"in t){t.H+=t.Z/100|0;t.M+=t.Z%100;return Yk(t)}return o(t)}}function S(e,t,n,i){var a=0,r=t.length,o=n.length,s,l;while(a<r){if(i>=o)return-1;s=t.charCodeAt(a++);if(s===37){s=t.charAt(a++);l=w[s in Zk?t.charAt(a++):s];if(!l||(i=l(e,n,i))<0)return-1}else if(s!=n.charCodeAt(i++)){return-1}}return i}function C(e,t,n){var i=u.exec(t.slice(n));return i?(e.p=h[i[0].toLowerCase()],n+i[0].length):-1}function E(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=g[i[0].toLowerCase()],n+i[0].length):-1}function A(e,t,n){var i=c.exec(t.slice(n));return i?(e.w=f[i[0].toLowerCase()],n+i[0].length):-1}function R(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=y[i[0].toLowerCase()],n+i[0].length):-1}function M(e,t,n){var i=p.exec(t.slice(n));return i?(e.m=v[i[0].toLowerCase()],n+i[0].length):-1}function T(e,t,n){return S(e,i,t,n)}function B(e,t,n){return S(e,a,t,n)}function N(e,t,n){return S(e,r,t,n)}function D(e){return o[e.getDay()]}function P(e){return n[e.getDay()]}function O(e){return l[e.getMonth()]}function z(e){return s[e.getMonth()]}function F(e){return t[+(e.getHours()>=12)]}function L(e){return o[e.getUTCDay()]}function I(e){return n[e.getUTCDay()]}function j(e){return l[e.getUTCMonth()]}function H(e){return s[e.getUTCMonth()]}function V(e){return t[+(e.getUTCHours()>=12)]}return{format:function e(t){var n=x(t+="",_);n.toString=function(){return t};return n},parse:function e(t){var n=k(t+="",qk);n.toString=function(){return t};return n},utcFormat:function e(t){var n=x(t+="",b);n.toString=function(){return t};return n},utcParse:function e(t){var n=k(t,Yk);n.toString=function(){return t};return n}}}var Zk={"-":"",_:" ",0:"0"},Jk=/^\s*\d+/,Qk=/^%/,eS=/[\\^$*+?|[\]().{}]/g;function tS(e,t,n){var i=e<0?"-":"",a=(i?-e:e)+"",r=a.length;return i+(r<n?new Array(n-r+1).join(t)+a:a)}function nS(e){return e.replace(eS,"\\$&")}function iS(e){return new RegExp("^(?:"+e.map(nS).join("|")+")","i")}function aS(e){var t={},n=-1,i=e.length;while(++n<i){t[e[n].toLowerCase()]=n}return t}function rS(e,t,n){var i=Jk.exec(t.slice(n,n+1));return i?(e.w=+i[0],n+i[0].length):-1}function oS(e,t,n){var i=Jk.exec(t.slice(n,n+1));return i?(e.u=+i[0],n+i[0].length):-1}function sS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.U=+i[0],n+i[0].length):-1}function lS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.V=+i[0],n+i[0].length):-1}function uS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.W=+i[0],n+i[0].length):-1}function hS(e,t,n){var i=Jk.exec(t.slice(n,n+4));return i?(e.y=+i[0],n+i[0].length):-1}function cS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function fS(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function dS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function gS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function pS(e,t,n){var i=Jk.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function vS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function mS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function yS(e,t,n){var i=Jk.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function _S(e,t,n){var i=Jk.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function bS(e,t,n){var i=Jk.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function wS(e,t,n){var i=Qk.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function xS(e,t,n){var i=Jk.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function kS(e,t,n){var i=Jk.exec(t.slice(n));return i?(e.Q=+i[0]*1e3,n+i[0].length):-1}function SS(e,t){return tS(e.getDate(),t,2)}function CS(e,t){return tS(e.getHours(),t,2)}function ES(e,t){return tS(e.getHours()%12||12,t,2)}function AS(e,t){return tS(1+kk.count(Dk(e),e),t,3)}function RS(e,t){return tS(e.getMilliseconds(),t,3)}function MS(e,t){return RS(e,t)+"000"}function TS(e,t){return tS(e.getMonth()+1,t,2)}function BS(e,t){return tS(e.getMinutes(),t,2)}function NS(e,t){return tS(e.getSeconds(),t,2)}function DS(e){var t=e.getDay();return t===0?7:t}function PS(e,t){return tS(Ck.count(Dk(e),e),t,2)}function OS(e,t){var n=e.getDay();e=n>=4||n===0?Mk(e):Mk.ceil(e);return tS(Mk.count(Dk(e),e)+(Dk(e).getDay()===4),t,2)}function zS(e){return e.getDay()}function FS(e,t){return tS(Ek.count(Dk(e),e),t,2)}function LS(e,t){return tS(e.getFullYear()%100,t,2)}function IS(e,t){return tS(e.getFullYear()%1e4,t,4)}function jS(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+tS(t/60|0,"0",2)+tS(t%60,"0",2)}function HS(e,t){return tS(e.getUTCDate(),t,2)}function VS(e,t){return tS(e.getUTCHours(),t,2)}function US(e,t){return tS(e.getUTCHours()%12||12,t,2)}function GS(e,t){return tS(1+zk.count(Kk(e),e),t,3)}function WS(e,t){return tS(e.getUTCMilliseconds(),t,3)}function KS(e,t){return WS(e,t)+"000"}function qS(e,t){return tS(e.getUTCMonth()+1,t,2)}function YS(e,t){return tS(e.getUTCMinutes(),t,2)}function XS(e,t){return tS(e.getUTCSeconds(),t,2)}function $S(e){var t=e.getUTCDay();return t===0?7:t}function ZS(e,t){return tS(Lk.count(Kk(e),e),t,2)}function JS(e,t){var n=e.getUTCDay();e=n>=4||n===0?Vk(e):Vk.ceil(e);return tS(Vk.count(Kk(e),e)+(Kk(e).getUTCDay()===4),t,2)}function QS(e){return e.getUTCDay()}function eC(e,t){return tS(Ik.count(Kk(e),e),t,2)}function tC(e,t){return tS(e.getUTCFullYear()%100,t,2)}function nC(e,t){return tS(e.getUTCFullYear()%1e4,t,4)}function iC(){return"+0000"}function aC(){return"%"}function rC(e){return+e}function oC(e){return Math.floor(+e/1e3)}var sC;var lC;var uC;var hC;var cC;fC({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 fC(e){sC=$k(e);lC=sC.format;uC=sC.parse;hC=sC.utcFormat;cC=sC.utcParse;return sC}var dC="%Y-%m-%dT%H:%M:%S.%LZ";function gC(e){return e.toISOString()}var pC=Date.prototype.toISOString?gC:hC(dC);function vC(e){var t=new Date(e);return isNaN(t)?null:t}var mC=+new Date("2000-01-01T00:00:00.000Z")?vC:cC(dC);var yC=1e3,_C=yC*60,bC=_C*60,wC=bC*24,xC=wC*7,kC=wC*30,SC=wC*365;function CC(e){return new Date(e)}function EC(e){return e instanceof Date?+e:+new Date(+e)}function AC(o,t,n,i,a,r,s,l,u){var h=gx(sx,sx),c=h.invert,f=h.domain;var d=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),y=u("%b %d"),_=u("%B"),b=u("%Y");var w=[[s,1,yC],[s,5,5*yC],[s,15,15*yC],[s,30,30*yC],[r,1,_C],[r,5,5*_C],[r,15,15*_C],[r,30,30*_C],[a,1,bC],[a,3,3*bC],[a,6,6*bC],[a,12,12*bC],[i,1,wC],[i,2,2*wC],[n,1,xC],[t,1,kC],[t,3,3*kC],[o,1,SC]];function x(e){return(s(e)<e?d:r(e)<e?g:a(e)<e?p:i(e)<e?v:t(e)<e?n(e)<e?m:y:o(e)<e?_:b)(e)}function k(e,t,n,i){if(e==null)e=10;if(typeof e==="number"){var a=Math.abs(n-t)/e,r=S(function(e){return e[2]}).right(w,a);if(r===w.length){i=P(t/SC,n/SC,e);e=o}else if(r){r=w[a/w[r-1][2]<w[r][2]/a?r-1:r];i=r[1];e=r[0]}else{i=Math.max(P(t,n,e),1);e=l}}return i==null?e:e.every(i)}h.invert=function(e){return new Date(c(e))};h.domain=function(e){return arguments.length?f(Zw.call(e,EC)):f().map(CC)};h.ticks=function(e,t){var n=f(),i=n[0],a=n[n.length-1],r=a<i,o;if(r)o=i,i=a,a=o;o=k(e,i,a,t);o=o?o.range(i,a+1):[];return r?o.reverse():o};h.tickFormat=function(e,t){return t==null?x:u(t)};h.nice=function(e,t){var n=f();return(e=k(e,n[0],n[n.length-1],t))?f(Hx(n,e)):h};h.copy=function(){return fx(h,AC(o,t,n,i,a,r,s,l,u))};return h}function RC(){return Yw.apply(AC(Dk,Nk,Ck,kk,xk,wk,bk,gk,lC).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function MC(){return Yw.apply(AC(Kk,Wk,Lk,zk,Ok,Pk,bk,gk,hC).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function TC(){var t=0,n=1,i,a,r,o,s=sx,l=false,u;function h(e){return isNaN(e=+e)?u:s(r===0?.5:(e=(o(e)-i)*r,l?Math.max(0,Math.min(1,e)):e))}h.domain=function(e){return arguments.length?(i=o(t=+e[0]),a=o(n=+e[1]),r=i===a?0:1/(a-i),h):[t,n]};h.clamp=function(e){return arguments.length?(l=!!e,h):l};h.interpolator=function(e){return arguments.length?(s=e,h):s};h.unknown=function(e){return arguments.length?(u=e,h):u};return function(e){o=e,i=e(t),a=e(n),r=i===a?0:1/(a-i);return h}}function BC(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function NC(){var e=Lx(TC()(sx));e.copy=function(){return BC(e,NC())};return Xw.apply(e,arguments)}function DC(){var e=$x(TC()).domain([1,10]);e.copy=function(){return BC(e,DC()).base(e.base())};return Xw.apply(e,arguments)}function PC(){var e=ek(TC());e.copy=function(){return BC(e,PC()).constant(e.constant())};return Xw.apply(e,arguments)}function OC(){var e=rk(TC());e.copy=function(){return BC(e,OC()).exponent(e.exponent())};return Xw.apply(e,arguments)}function zC(){return OC.apply(null,arguments).exponent(.5)}function FC(){var a=[],t=sx;function r(e){if(!isNaN(e=+e))return t((A(a,e)-1)/(a.length-1))}r.domain=function(e){if(!arguments.length)return a.slice();a=[];for(var t=0,n=e.length,i;t<n;++t){if(i=e[t],i!=null&&!isNaN(i=+i))a.push(i)}a.sort(k);return r};r.interpolator=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return FC(t).domain(a)};return Xw.apply(r,arguments)}function LC(){var t=0,n=.5,i=1,a,r,o,s,l,u=sx,h,c=false,f;function d(e){return isNaN(e=+e)?f:(e=.5+((e=+h(e))-r)*(e<r?s:l),u(c?Math.max(0,Math.min(1,e)):e))}d.domain=function(e){return arguments.length?(a=h(t=+e[0]),r=h(n=+e[1]),o=h(i=+e[2]),s=a===r?0:.5/(r-a),l=r===o?0:.5/(o-r),d):[t,n,i]};d.clamp=function(e){return arguments.length?(c=!!e,d):c};d.interpolator=function(e){return arguments.length?(u=e,d):u};d.unknown=function(e){return arguments.length?(f=e,d):f};return function(e){h=e,a=e(t),r=e(n),o=e(i),s=a===r?0:.5/(r-a),l=r===o?0:.5/(o-r);return d}}function IC(){var e=Lx(LC()(sx));e.copy=function(){return BC(e,IC())};return Xw.apply(e,arguments)}function jC(){var e=$x(LC()).domain([.1,1,10]);e.copy=function(){return BC(e,jC()).base(e.base())};return Xw.apply(e,arguments)}function HC(){var e=ek(LC());e.copy=function(){return BC(e,HC()).constant(e.constant())};return Xw.apply(e,arguments)}function VC(){var e=rk(LC());e.copy=function(){return BC(e,VC()).exponent(e.exponent())};return Xw.apply(e,arguments)}function UC(){return VC.apply(null,arguments).exponent(.5)}var GC=Object.freeze({__proto__:null,scaleBand:tx,scalePoint:ix,scaleIdentity:jx,scaleLinear:Ix,scaleLog:Zx,scaleSymlog:tk,scaleOrdinal:ex,scaleImplicit:Qw,scalePow:ok,scaleSqrt:sk,scaleQuantile:lk,scaleQuantize:uk,scaleThreshold:hk,scaleTime:RC,scaleUtc:MC,scaleSequential:NC,scaleSequentialLog:DC,scaleSequentialPow:OC,scaleSequentialSqrt:zC,scaleSequentialSymlog:PC,scaleSequentialQuantile:FC,scaleDiverging:IC,scaleDivergingLog:jC,scaleDivergingPow:VC,scaleDivergingSqrt:UC,scaleDivergingSymlog:HC,tickFormat:Fx});var WC={dark:"#444444",light:"#f7f7f7",missing:"#cccccc",off:"#b22200",on:"#224f20",scale:ex().range(["#b22200","#282f6b","#eace3f","#b35c1e","#224f20","#5f487c","#759143","#419391","#993c88","#e89c89","#ffee8d","#afd5e8","#f7ba77","#a5c697","#c5b5e5","#d1d392","#bbefd0","#e099cf"])};function KC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e in t?t[e]:e in WC?WC[e]:WC.missing}function qC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(e)>=0)return KC("missing",t);else if(e===true)return KC("on",t);else if(e===false)return KC("off",t);var n=Pw(e);if(!n)return KC("scale",t)(e);return e.toString()}function YC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e=Lw(e);var n=(e.r*299+e.g*587+e.b*114)/1e3;return n>=128?KC("dark",t):KC("light",t)}function XC(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;e=Ww(e);t*=1-e.l;e.l+=t;e.s-=t;return e.toString()}function $C(e){if(e.replace(/\s+/g,"")==="")return e;var t=(new DOMParser).parseFromString(e.replace(/<[^>]+>/g,""),"text/html");return t.documentElement?t.documentElement.textContent:e}function ZC(e,t){t=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},t);var n=document.createElement("canvas").getContext("2d");var i=[];i.push(t["font-style"]);i.push(t["font-variant"]);i.push(t["font-weight"]);i.push(typeof t["font-size"]==="string"?t["font-size"]:"".concat(t["font-size"],"px"));i.push(t["font-family"]);n.font=i.join(" ");if(e instanceof Array)return e.map(function(e){return n.measureText($C(e)).width});return n.measureText($C(e)).width}function JC(e){return e.toString().replace(/^\s+|\s+$/g,"")}function QC(e){return e.toString().replace(/\s+$/,"")}var eE="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",tE={},nE=32;var iE,aE,rE,oE;var sE=function e(t){if(!iE){iE=ZC(eE,{"font-family":"DejaVuSans","font-size":nE});aE=ZC(eE,{"font-family":"-apple-system","font-size":nE});rE=ZC(eE,{"font-family":"monospace","font-size":nE});oE=ZC(eE,{"font-family":"sans-serif","font-size":nE})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(e){return JC(e)});for(var n=0;n<t.length;n++){var i=t[n];if(tE[i]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(i))return i;else if(tE[i]===false)continue;var a=ZC(eE,{"font-family":i,"font-size":nE});tE[i]=a!==rE;if(tE[i])tE[i]=a!==oE;if(aE&&tE[i])tE[i]=a!==aE;if(iE&&tE[i])tE[i]=a!==iE;if(tE[i])return i}return false};var lE=function(){return xv("html").attr("dir")==="rtl"||xv("body").attr("dir")==="rtl"||xv("html").style("direction")==="rtl"||xv("body").style("direction")==="rtl"};function uE(e){if(e===void 0)e="undefined";else if(!(typeof e==="string"||e instanceof String))e=JSON.stringify(e);return e}var hE=[[/[\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 cE(e){return"".concat(e).replace(/[^A-Za-z0-9\-_]/g,function(e){if(e===" ")return"-";var t=false;for(var n=0;n<hE.length;n++){if(new RegExp(hE[n][0]).test(e)){t=hE[n][1];break}}return t||""})}var fE=["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 dE=["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 gE=fE.concat(dE);var pE=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var vE=["'","<","(","{","[","u00AB","u300A","u3008"];var mE=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(pE);var yE="က-ဪဿ-၉ၐ-ၕ";var _E="぀-ゟ゠-ヿ＀--}⦅-゚㐀-䶿";var bE="㐀-龿";var wE="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var xE=yE+bE+_E+wE;var kE=new RegExp("(\\".concat(pE.join("|\\"),")*[^\\s|\\").concat(pE.join("|\\"),"]*(\\").concat(pE.join("|\\"),")*"),"g");var SE=new RegExp("[".concat(xE,"]"));var CE=new RegExp("(\\".concat(vE.join("|\\"),")*[").concat(xE,"](\\").concat(mE.join("|\\"),"|\\").concat(gE.join("|\\"),")*|[a-z0-9]+"),"gi");function EE(e){if(!SE.test(e))return uE(e).match(kE).filter(function(e){return e.length});return Pe(uE(e).match(kE).map(function(e){if(SE.test(e))return e.match(CE);return[e]}))}function AE(){var d="sans-serif",g=10,p=400,v=200,m,y=null,_=false,b=EE,w=200;function t(e){e=uE(e);if(m===void 0)m=Math.ceil(g*1.4);var t=b(e);var n={"font-family":d,"font-size":g,"font-weight":p,"line-height":m};var i=1,a="",r=false,o=0;var s=[],l=ZC(t,n),u=ZC(" ",n);for(var h=0;h<t.length;h++){var c=t[h];var f=l[t.indexOf(c)];c+=e.slice(a.length+c.length).match("^( |\n)*","g")[0];if(a.slice(-1)==="\n"||o+f>w){if(!h&&!_){r=true;break}if(s.length>=i)s[i-1]=QC(s[i-1]);i++;if(m*i>v||f>w&&!_||y&&i>y){r=true;break}o=0;s.push(c)}else if(!h)s[0]=c;else s[i-1]+=c;a+=c;o+=f;o+=c.match(/[\s]*$/g)[0].length*u}return{lines:s,sentence:e,truncated:r,widths:ZC(s,n),words:t}}t.fontFamily=function(e){return arguments.length?(d=e,t):d};t.fontSize=function(e){return arguments.length?(g=e,t):g};t.fontWeight=function(e){return arguments.length?(p=e,t):p};t.height=function(e){return arguments.length?(v=e,t):v};t.lineHeight=function(e){return arguments.length?(m=e,t):m};t.maxLines=function(e){return arguments.length?(y=e,t):y};t.overflow=function(e){return arguments.length?(_=e,t):_};t.split=function(e){return arguments.length?(b=e,t):b};t.width=function(e){return arguments.length?(w=e,t):w};return t}function RE(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){RE=function e(t){return typeof t}}else{RE=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return RE(e)}function ME(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function TE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function BE(e,t,n){if(t)TE(e.prototype,t);if(n)TE(e,n);return e}function NE(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)DE(e,t)}function DE(e,t){DE=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return DE(e,t)}function PE(a){var r=FE();return function e(){var t=LE(a),n;if(r){var i=LE(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return OE(this,n)}}function OE(e,t){if(t&&(RE(t)==="object"||typeof t==="function")){return t}return zE(e)}function zE(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function FE(){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(e){return false}}function LE(e){LE=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return LE(e)}var IE={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var jE=function(e){NE(i,e);var t=PE(i);function i(){var n;ME(this,i);n=t.call(this);n._ariaHidden=Bg("false");n._delay=0;n._duration=0;n._ellipsis=function(e,t){return t?"".concat(e.replace(/\.|,$/g,""),"..."):""};n._fontColor=Bg("black");n._fontFamily=Bg(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=Bg(50);n._fontMin=Bg(8);n._fontOpacity=Bg(1);n._fontResize=Bg(false);n._fontSize=Bg(10);n._fontStroke=Bg("transparent");n._fontStrokeWidth=Bg(0);n._fontWeight=Bg(400);n._height=mn("height",200);n._html=IE;n._id=function(e,t){return e.id||"".concat(t)};n._lineHeight=function(e,t){return n._fontSize(e,t)*1.2};n._maxLines=Bg(null);n._on={};n._overflow=Bg(false);n._padding=Bg(0);n._pointerEvents=Bg("auto");n._rotate=Bg(0);n._rotateAnchor=function(e){return[e.w/2,e.h/2]};n._split=EE;n._text=mn("text");n._textAnchor=Bg("start");n._verticalAlign=Bg("top");n._width=mn("width",200);n._x=mn("x",0);n._y=mn("y",0);return n}BE(i,[{key:"render",value:function e(t){var D=this;if(this._select===void 0)this.select(xv("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var P=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(e,t,n){var i=D._text(t,n);if(i===void 0)return e;i=JC(i);var a=D._fontResize(t,n);var r=D._lineHeight(t,n)/D._fontSize(t,n);var o=a?D._fontMax(t,n):D._fontSize(t,n),s=a?o*r:D._lineHeight(t,n),l=1,u=[],h,c;var f={"font-family":sE(D._fontFamily(t,n)),"font-size":o,"font-weight":D._fontWeight(t,n),"line-height":s};var d=Mb(D._padding(t,n));var g=D._height(t,n)-(d.top+d.bottom),p=D._width(t,n)-(d.left+d.right);var v=AE().fontFamily(f["font-family"]).fontSize(o).fontWeight(f["font-weight"]).lineHeight(s).maxLines(D._maxLines(t,n)).height(g).overflow(D._overflow(t,n)).width(p).split(D._split);var m=D._fontMax(t,n),y=D._fontMin(t,n),_=D._verticalAlign(t,n),b=D._split(i,n);function w(){var e=function e(){if(l<1)u=[P._ellipsis("",l)];else u[l-1]=P._ellipsis(u[l-1],l)};o=ve([o,y]);o=Oe([o,m]);if(a){s=o*r;v.fontSize(o).lineHeight(s);f["font-size"]=o;f["line-height"]=s}c=v(i);u=c.lines.filter(function(e){return e!==""});l=u.length;if(c.truncated){if(a){o--;if(o<y){o=y;e();return}else w()}else e()}}if(p>y&&(g>s||a&&g>y*r)){if(a){h=ZC(b,f);var x=1.165+p/g*.1,k=p*g,S=ve(h),C=O(h,function(e){return e*s})*x;if(S>p||C>k){var E=Math.sqrt(k/C),A=p/S;var R=Oe([E,A]);o=Math.floor(o*R)}var M=Math.floor(g*.8);if(o>M)o=M}w()}if(u.length){var T=l*s;var B=D._rotate(t,n);var N=B===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;N-=s*.1;e.push({aH:D._ariaHidden(t,n),data:t,i:n,lines:u,fC:D._fontColor(t,n),fStroke:D._fontStroke(t,n),fSW:D._fontStrokeWidth(t,n),fF:f["font-family"],fO:D._fontOpacity(t,n),fW:f["font-weight"],id:D._id(t,n),tA:D._textAnchor(t,n),vA:D._verticalAlign(t,n),widths:c.widths,fS:o,lH:s,w:p,h:g,r:B,x:D._x(t,n)+d.left,y:D._y(t,n)+N+d.top})}return e},[]),function(e){return D._id(e.data,e.i)});var a=sb().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(a).attr("opacity",0).style("opacity",0)}function i(e){e.attr("transform",function(e,t){var n=P._rotateAnchor(e,t);return"translate(".concat(e.x,", ").concat(e.y,") rotate(").concat(e.r,", ").concat(n[0],", ").concat(n[1],")")})}var r=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(e){return"d3plus-textBox-".concat(cE(e.id))}).call(i).merge(n);var o=lE();r.style("pointer-events",function(e){return D._pointerEvents(e.data,e.i)}).each(function(n){function e(e){e[P._html?"html":"text"](function(e){return QC(e).replace(/&([^\;&]*)/g,function(e,t){return t==="amp"?e:"&amp;".concat(t)}).replace(/<([^A-z^/]+)/g,function(e,t){return"&lt;".concat(t)}).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(e,t,n){return"".concat(t).concat(n).concat(t.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(e,t,n){return"".concat(n.replace("</","<")).concat(t).concat(n)}).replace(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g,function(e,t,n){var i=P._html[t]?'<tspan style="'.concat(P._html[t],'">'):"";return"".concat(i.length?i:"").concat(n).concat(i.length?"</tspan>":"")})})}function t(e){e.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(e,t){return n.r===0||n.vA==="top"?"".concat((t+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(t-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(t+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var i=xv(this).selectAll("text").data(n.lines);if(P._duration===0){i.call(e).call(t);i.exit().remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(e).call(t).attr("opacity",n.fO).style("opacity",n.fO)}else{i.call(e).transition(a).call(t);i.exit().transition(a).attr("opacity",0).remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(e).call(t).merge(i).transition(a).delay(P._delay).call(t).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(a).call(i);var s=Object.keys(this._on),l=s.reduce(function(e,n){e[n]=function(e,t){return D._on[n](e.data,t)};return e},{});for(var u=0;u<s.length;u++){r.on(s[u],l[s[u]])}if(t)setTimeout(t,this._duration+100);return this}},{key:"ariaHidden",value:function e(t){return t!==undefined?(this._ariaHidden=typeof t==="function"?t:Bg(t),this):this._ariaHidden}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"delay",value:function e(t){return arguments.length?(this._delay=t,this):this._delay}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"ellipsis",value:function e(t){return arguments.length?(this._ellipsis=typeof t==="function"?t:Bg(t),this):this._ellipsis}},{key:"fontColor",value:function e(t){return arguments.length?(this._fontColor=typeof t==="function"?t:Bg(t),this):this._fontColor}},{key:"fontFamily",value:function e(t){return arguments.length?(this._fontFamily=typeof t==="function"?t:Bg(t),this):this._fontFamily}},{key:"fontMax",value:function e(t){return arguments.length?(this._fontMax=typeof t==="function"?t:Bg(t),this):this._fontMax}},{key:"fontMin",value:function e(t){return arguments.length?(this._fontMin=typeof t==="function"?t:Bg(t),this):this._fontMin}},{key:"fontOpacity",value:function e(t){return arguments.length?(this._fontOpacity=typeof t==="function"?t:Bg(t),this):this._fontOpacity}},{key:"fontResize",value:function e(t){return arguments.length?(this._fontResize=typeof t==="function"?t:Bg(t),this):this._fontResize}},{key:"fontSize",value:function e(t){return arguments.length?(this._fontSize=typeof t==="function"?t:Bg(t),this):this._fontSize}},{key:"fontStroke",value:function e(t){return arguments.length?(this._fontStroke=typeof t==="function"?t:Bg(t),this):this._fontStroke}},{key:"fontStrokeWidth",value:function e(t){return arguments.length?(this._fontStrokeWidth=typeof t==="function"?t:Bg(t),this):this._fontStrokeWidth}},{key:"fontWeight",value:function e(t){return arguments.length?(this._fontWeight=typeof t==="function"?t:Bg(t),this):this._fontWeight}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Bg(t),this):this._height}},{key:"html",value:function e(t){return arguments.length?(this._html=typeof t==="boolean"?t?IE:false:t,this):this._html}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Bg(t),this):this._id}},{key:"lineHeight",value:function e(t){return arguments.length?(this._lineHeight=typeof t==="function"?t:Bg(t),this):this._lineHeight}},{key:"maxLines",value:function e(t){return arguments.length?(this._maxLines=typeof t==="function"?t:Bg(t),this):this._maxLines}},{key:"overflow",value:function e(t){return arguments.length?(this._overflow=typeof t==="function"?t:Bg(t),this):this._overflow}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Bg(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Bg(t),this):this._pointerEvents}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Bg(t),this):this._rotate}},{key:"rotateAnchor",value:function e(t){return arguments.length?(this._rotateAnchor=typeof t==="function"?t:Bg(t),this):this._rotateAnchor}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"split",value:function e(t){return arguments.length?(this._split=t,this):this._split}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Bg(t),this):this._text}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Bg(t),this):this._textAnchor}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Bg(t),this):this._verticalAlign}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Bg(t),this):this._width}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Bg(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Bg(t),this):this._y}}]);return i}(Ag);var HE=function(e,t){var n=t[0]-e[0],i=t[1]-e[1];return n*n+i*i};var VE=function(e,t){return Math.sqrt(HE(e,t))};function UE(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){UE=function e(t){return typeof t}}else{UE=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return UE(e)}function GE(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function WE(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function KE(e,t,n){if(t)WE(e.prototype,t);if(n)WE(e,n);return e}function qE(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)YE(e,t)}function YE(e,t){YE=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return YE(e,t)}function XE(a){var r=JE();return function e(){var t=QE(a),n;if(r){var i=QE(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return $E(this,n)}}function $E(e,t){if(t&&(UE(t)==="object"||typeof t==="function")){return t}return ZE(e)}function ZE(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function JE(){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(e){return false}}function QE(e){QE=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return QE(e)}var eA=function(e){qE(n,e);var t=XE(n);function n(){var a;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";GE(this,n);a=t.call(this);a._activeOpacity=.25;a._activeStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return tw(i).darker(1)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*3}};a._ariaLabel=Bg("");a._backgroundImage=Bg(false);a._backgroundImageClass=new Ob;a._data=[];a._duration=600;a._fill=Bg("black");a._fillOpacity=Bg(1);a._hoverOpacity=.5;a._hoverStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return tw(i).darker(.5)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*2}};a._id=function(e,t){return e.id!==void 0?e.id:t};a._label=Bg(false);a._labelClass=new jE;a._labelConfig={fontColor:function e(t,n){return YC(a._fill(t,n))},fontSize:12,padding:5};a._name="Shape";a._opacity=Bg(1);a._pointerEvents=Bg("visiblePainted");a._role=Bg("presentation");a._rotate=Bg(0);a._rx=Bg(0);a._ry=Bg(0);a._scale=Bg(1);a._shapeRendering=Bg("geometricPrecision");a._stroke=function(e,t){return tw(a._fill(e,t)).darker(1)};a._strokeDasharray=Bg("0");a._strokeLinecap=Bg("butt");a._strokeOpacity=Bg(1);a._strokeWidth=Bg(0);a._tagName=e;a._textAnchor=Bg("start");a._vectorEffect=Bg("non-scaling-stroke");a._verticalAlign=Bg("top");a._x=mn("x",0);a._y=mn("y",0);return a}KE(n,[{key:"_aes",value:function e(){return{}}},{key:"_applyEvents",value:function e(t){var o=this;var s=Object.keys(this._on);var n=function e(r){t.on(s[r],function(e,t){if(!o._on[s[r]])return;if(e.i!==void 0)t=e.i;if(e.nested&&e.values){var n=function e(t,n){if(o._discrete==="x")return[o._x(t,n),i[1]];else if(o._discrete==="y")return[i[0],o._y(t,n)];else return[o._x(t,n),o._y(t,n)]};var i=Cv(o._select.node()),a=e.values.map(function(e){return VE(i,n(e,t))});t=a.indexOf(Oe(a));e=e.values[t]}o._on[s[r]].bind(o)(e,t)})};for(var i=0;i<s.length;i++){n(i)}}},{key:"_updateStyle",value:function e(t,n){var i=this;if(t.size()&&t.node().tagName==="g")t=t.selectAll("*");function a(e,t){return typeof this!=="function"?this:e.nested&&e.key&&e.values?this(e.values[0],i._data.indexOf(e.values[0])):this(e,t)}var r={};for(var o in n){if({}.hasOwnProperty.call(n,o)){r[o]=a.bind(n[o])}}t.transition().duration(0).call(xn,r)}},{key:"_applyStyle",value:function e(t){var n=this;if(t.size()&&t.node().tagName==="g")t=t.selectAll("*");function i(e,t){return typeof this!=="function"?this:e.nested&&e.key&&e.values?this(e.values[0],n._data.indexOf(e.values[0])):this(e,t)}t.attr("fill",i.bind(this._fill)).attr("fill-opacity",i.bind(this._fillOpacity)).attr("rx",i.bind(this._rx)).attr("ry",i.bind(this._ry)).attr("stroke",i.bind(this._stroke)).attr("stroke-dasharray",i.bind(this._strokeDasharray)).attr("stroke-linecap",i.bind(this._strokeLinecap)).attr("stroke-opacity",i.bind(this._strokeOpacity)).attr("stroke-width",i.bind(this._strokeWidth)).attr("vector-effect",i.bind(this._vectorEffect))}},{key:"_applyTransform",value:function e(t){var n=this;t.attr("transform",function(e,t){return"\n translate(".concat(e.__d3plusShape__?e.translate?e.translate:"".concat(n._x(e.data,e.i),",").concat(n._y(e.data,e.i)):"".concat(n._x(e,t),",").concat(n._y(e,t)),")\n scale(").concat(e.__d3plusShape__?e.scale||n._scale(e.data,e.i):n._scale(e,t),")\n rotate(").concat(e.__d3plusShape__?e.rotate?e.rotate:n._rotate(e.data||e,e.i):n._rotate(e.data||e,e.i),")")})}},{key:"_nestWrapper",value:function e(n){return function(e,t){return n(e.__d3plusShape__?e.data:e,e.__d3plusShape__?e.i:t)}}},{key:"_renderActive",value:function e(){var a=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(e,t){if(!e)e={};if(!e.parentNode)e.parentNode=this.parentNode;var n=e.parentNode;if(xv(this).classed("d3plus-textBox"))e=e.data;if(e.__d3plusShape__||e.__d3plus__){while(e&&(e.__d3plusShape__||e.__d3plus__)){t=e.i;e=e.data}}else t=a._data.indexOf(e);var i=!a._active||typeof a._active!=="function"||!a._active(e,t)?n:a._activeGroup.node();if(i!==this.parentNode){i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)xv(this).call(a._applyStyle.bind(a));else xv(this).call(a._updateStyle.bind(a,xv(this),a._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 e(){var a=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(e,t){if(!e)e={};if(!e.parentNode)e.parentNode=this.parentNode;var n=e.parentNode;if(xv(this).classed("d3plus-textBox"))e=e.data;if(e.__d3plusShape__||e.__d3plus__){while(e&&(e.__d3plusShape__||e.__d3plus__)){t=e.i;e=e.data}}else t=a._data.indexOf(e);var i=!a._hover||typeof a._hover!=="function"||!a._hover(e,t)?n:a._hoverGroup.node();if(i!==this.parentNode)i.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===i)xv(this).call(a._applyStyle.bind(a));else xv(this).call(a._updateStyle.bind(a,xv(this),a._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 e(){var u=this;var h=[];this._update.merge(this._enter).data().forEach(function(e,t){var n=u._aes(e,t);if(n.r||n.width&&n.height){var i=e;if(e.nested&&e.key&&e.values){i=e.values[0];t=u._data.indexOf(i)}var a=n.r?n.r*2:n.height,r=u._backgroundImage(i,t),o=n.r?n.r*2:n.width;if(r){var s=i.__d3plusShape__?i.translate?i.translate[0]:u._x(i.data,i.i):u._x(i,t),l=i.__d3plusShape__?i.translate?i.translate[1]:u._y(i.data,i.i):u._y(i,t);if(n.x)s+=n.x;if(n.y)l+=n.y;if(i.__d3plusShape__){i=i.data;t=i.i}h.push({__d3plus__:true,data:i,height:a,i:t,id:u._id(i,t),url:r,width:o,x:s+-o/2,y:l+-a/2})}}});this._backgroundImageClass.data(h).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select(gb("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function e(){var f=this;var d=[];this._update.merge(this._enter).data().forEach(function(e,t){var n=e;if(e.nested&&e.key&&e.values){n=e.values[0];t=f._data.indexOf(n)}var i=f._label(n,t);if(f._labelBounds&&i!==false&&i!==undefined&&i!==null){var a=f._labelBounds(n,t,f._aes(e,t));if(a){if(i.constructor!==Array)i=[i];var r=n.__d3plusShape__?n.translate?n.translate[0]:f._x(n.data,n.i):f._x(n,t),o=n.__d3plusShape__?n.translate?n.translate[1]:f._y(n.data,n.i):f._y(n,t);if(n.__d3plusShape__){n=n.data;t=n.i}for(var s=0;s<i.length;s++){var l=a.constructor===Array?a[s]:Object.assign({},a);var u=f._rotate(n,t);var h=n.labelConfig&&n.labelConfig.rotate?n.labelConfig.rotate:a.angle!==undefined?a.angle:0;h+=u;var c=u!==0?[l.x*-1||0,l.y*-1||0]:[l.width/2,l.height/2];d.push({__d3plus__:true,data:n,height:l.height,l:s,id:"".concat(f._id(n,t),"_").concat(s),r:h,rotateAnchor:c,text:i[s],width:l.width,x:r+l.x,y:o+l.y})}}}});this._labelClass.data(d).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate(function(e){return e.__d3plus__?e.r:e.data.r}).rotateAnchor(function(e){return e.__d3plus__?e.rotateAnchor:e.data.rotateAnchor}).select(gb("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(Tg.bind(this)(this._labelConfig)).render()}},{key:"render",value:function e(t){var n=this;if(this._select===void 0){this.select(xv("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=sb().duration(this._duration);var i=this._data,a=this._id;if(this._dataFilter){i=this._dataFilter(i);if(i.key)a=i.key}if(this._sort){i=i.sort(function(e,t){while(e.__d3plusShape__||e.__d3plus__){e=e.data}while(t.__d3plusShape__||t.__d3plus__){t=t.data}return n._sort(e,t)})}Ev("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each(function(e){if(e&&e.parentNode)e.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=gb("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var r=this._update=gb("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(i,a);r.order();if(this._duration){r.transition(this._transition).call(this._applyTransform.bind(this))}else{r.call(this._applyTransform.bind(this))}var o=this._enter=r.enter().append(this._tagName).attr("class",function(e,t){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(cE(n._nestWrapper(n._id)(e,t)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(r);var l=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){l=l.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}l.attr("opacity",this._nestWrapper(this._opacity));var u=this._exit=r.exit();if(this._duration)u.transition().delay(this._duration).remove();else u.remove();this._renderImage();this._renderLabels();this._hoverGroup=gb("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=gb("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var h=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?i:[],a);h.order().call(this._applyTransform.bind(this));var c=this._name==="Line";c&&this._path.curve(vn["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var f=h.enter().append(c?"path":"rect").attr("class",function(e,t){return"d3plus-HitArea d3plus-id-".concat(cE(n._nestWrapper(n._id)(e,t)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var d=this;var g=h.merge(f).each(function(e){var t=d._data.indexOf(e);var n=d._hitArea(e,t,d._aes(e,t));return n&&!(d._name==="Line"&&parseFloat(d._strokeWidth(e,t))>10)?xv(this).call(xn,n):xv(this).remove()});h.exit().remove();this._applyEvents(this._hitArea?g:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(t)t()},this._duration+100);return this}},{key:"active",value:function e(t){if(!arguments.length||t===undefined)return this._active;this._active=t;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function e(t){return arguments.length?(this._activeOpacity=t,this):this._activeOpacity}},{key:"activeStyle",value:function e(t){return arguments.length?(this._activeStyle=wn({},this._activeStyle,t),this):this._activeStyle}},{key:"ariaLabel",value:function e(t){return t!==undefined?(this._ariaLabel=typeof t==="function"?t:Bg(t),this):this._ariaLabel}},{key:"backgroundImage",value:function e(t){return arguments.length?(this._backgroundImage=typeof t==="function"?t:Bg(t),this):this._backgroundImage}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"fill",value:function e(t){return arguments.length?(this._fill=typeof t==="function"?t:Bg(t),this):this._fill}},{key:"fillOpacity",value:function e(t){return arguments.length?(this._fillOpacity=typeof t==="function"?t:Bg(t),this):this._fillOpacity}},{key:"hover",value:function e(t){if(!arguments.length||t===void 0)return this._hover;this._hover=t;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function e(t){return arguments.length?(this._hoverStyle=wn({},this._hoverStyle,t),this):this._hoverStyle}},{key:"hoverOpacity",value:function e(t){return arguments.length?(this._hoverOpacity=t,this):this._hoverOpacity}},{key:"hitArea",value:function e(t){return arguments.length?(this._hitArea=typeof t==="function"?t:Bg(t),this):this._hitArea}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Bg(t),this):this._label}},{key:"labelBounds",value:function e(t){return arguments.length?(this._labelBounds=typeof t==="function"?t:Bg(t),this):this._labelBounds}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=wn(this._labelConfig,t),this):this._labelConfig}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Bg(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Bg(t),this):this._pointerEvents}},{key:"role",value:function e(t){return t!==undefined?(this._role=typeof t==="function"?t:Bg(t),this):this._role}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Bg(t),this):this._rotate}},{key:"rx",value:function e(t){return arguments.length?(this._rx=typeof t==="function"?t:Bg(t),this):this._rx}},{key:"ry",value:function e(t){return arguments.length?(this._ry=typeof t==="function"?t:Bg(t),this):this._ry}},{key:"scale",value:function e(t){return arguments.length?(this._scale=typeof t==="function"?t:Bg(t),this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"shapeRendering",value:function e(t){return arguments.length?(this._shapeRendering=typeof t==="function"?t:Bg(t),this):this._shapeRendering}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"stroke",value:function e(t){return arguments.length?(this._stroke=typeof t==="function"?t:Bg(t),this):this._stroke}},{key:"strokeDasharray",value:function e(t){return arguments.length?(this._strokeDasharray=typeof t==="function"?t:Bg(t),this):this._strokeDasharray}},{key:"strokeLinecap",value:function e(t){return arguments.length?(this._strokeLinecap=typeof t==="function"?t:Bg(t),this):this._strokeLinecap}},{key:"strokeOpacity",value:function e(t){return arguments.length?(this._strokeOpacity=typeof t==="function"?t:Bg(t),this):this._strokeOpacity}},{key:"strokeWidth",value:function e(t){return arguments.length?(this._strokeWidth=typeof t==="function"?t:Bg(t),this):this._strokeWidth}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Bg(t),this):this._textAnchor}},{key:"vectorEffect",value:function e(t){return arguments.length?(this._vectorEffect=typeof t==="function"?t:Bg(t),this):this._vectorEffect}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Bg(t),this):this._verticalAlign}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Bg(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Bg(t),this):this._y}}]);return n}(Ag);function tA(e,t){var a=[];var r=[];function o(e,t){if(e.length===1){a.push(e[0]);r.push(e[0])}else{var n=Array(e.length-1);for(var i=0;i<n.length;i++){if(i===0){a.push(e[0])}if(i===n.length-1){r.push(e[i+1])}n[i]=[(1-t)*e[i][0]+t*e[i+1][0],(1-t)*e[i][1]+t*e[i+1][1]]}o(n,t)}}if(e.length){o(e,t)}return{left:a,right:r.reverse()}}function nA(e){var t={};if(e.length===4){t.x2=e[2][0];t.y2=e[2][1]}if(e.length>=3){t.x1=e[1][0];t.y1=e[1][1]}t.x=e[e.length-1][0];t.y=e[e.length-1][1];if(e.length===4){t.type="C"}else if(e.length===3){t.type="Q"}else{t.type="L"}return t}function iA(e,t){t=t||2;var n=[];var i=e;var a=1/t;for(var r=0;r<t-1;r++){var o=a/(1-a*r);var s=tA(i,o);n.push(s.left);i=s.right}n.push(i);return n}function aA(e,t,n){var i=[[e.x,e.y]];if(t.x1!=null){i.push([t.x1,t.y1])}if(t.x2!=null){i.push([t.x2,t.y2])}i.push([t.x,t.y]);return iA(i,n).map(nA)}var rA=/[MLCSTQAHVmlcstqahv]|-?[\d.e+-]+/g;var oA={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"]};Object.keys(oA).forEach(function(e){oA[e.toLowerCase()]=oA[e]});function sA(e,t){var n=Array(e);for(var i=0;i<e;i++){n[i]=t}return n}function lA(t){return"".concat(t.type).concat(oA[t.type].map(function(e){return t[e]}).join(","))}function uA(i,a){var r={x1:"x",y1:"y",x2:"x",y2:"y"};var o=["xAxisRotation","largeArcFlag","sweepFlag"];if(i.type!==a.type&&a.type.toUpperCase()!=="M"){var s={};Object.keys(a).forEach(function(e){var t=a[e];var n=i[e];if(n===undefined){if(o.includes(e)){n=t}else{if(n===undefined&&r[e]){n=i[r[e]]}if(n===undefined){n=0}}}s[e]=n});s.type=a.type;i=s}return i}function hA(e,t,n){var i=[];if(t.type==="L"||t.type==="Q"||t.type==="C"){i=i.concat(aA(e,t,n))}else{var a=Object.assign({},e);if(a.type==="M"){a.type="L"}i=i.concat(sA(n-1).map(function(){return a}));i.push(t)}return i}function cA(r,e,o){var t=r.length-1;var n=e.length-1;var s=t/n;var i=sA(n).reduce(function(e,t,n){var i=Math.floor(s*n);if(o&&i<r.length-1&&o(r[i],r[i+1])){var a=s*n%1<.5;if(e[i]){if(a){if(i>0){i-=1}else if(i<r.length-1){i+=1}}else if(i<r.length-1){i+=1}else if(i>0){i-=1}}}e[i]=(e[i]||0)+1;return e},[]);var a=i.reduce(function(e,t,n){if(n===r.length-1){var i=sA(t,Object.assign({},r[r.length-1]));if(i[0].type==="M"){i.forEach(function(e){e.type="L"})}return e.concat(i)}return e.concat(hA(r[n],r[n+1],t))},[]);a.unshift(r[0]);return a}function fA(e){var t=(e||"").match(rA)||[];var n=[];var i;var a;for(var r=0;r<t.length;++r){i=oA[t[r]];if(i){a={type:t[r]};for(var o=0;o<i.length;++o){a[i[o]]=+t[r+o+1]}r+=i.length;n.push(a)}}return n}function dA(e,d,t){var g=fA(e);var p=fA(d);if(!g.length&&!p.length){return function e(){return""}}if(!g.length){g.push(p[0])}else if(!p.length){p.push(g[0])}var n=Math.abs(p.length-g.length);if(n!==0){if(p.length>g.length){g=cA(g,p,t)}else if(p.length<g.length){p=cA(p,g,t)}}g=g.map(function(e,t){return uA(e,p[t])});var v=g.map(function(e){return r({},e)});var m=(e==null||e[e.length-1]==="Z")&&(d==null||d[d.length-1]==="Z");return function e(t){if(t===1){return d==null?"":d}if(t>0){for(var n=0;n<v.length;++n){var i=g[n];var a=p[n];var r=v[n];var o=x(oA[r.type]),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;r[l]=(1-t)*i[l]+t*a[l];if(l==="largeArcFlag"||l==="sweepFlag"){r[l]=Math.round(r[l])}}}catch(e){o.e(e)}finally{o.f()}}}var u="";var h=x(v),c;try{for(h.s();!(c=h.n()).done;){var f=c.value;u+=lA(f)}}catch(e){h.e(e)}finally{h.f()}if(m){u+="Z"}return u}}function gA(e){var t=-1,n=e.length,i,a=e[n-1],r=0;while(++t<n){i=a;a=e[t];r+=i[1]*a[0]-i[0]*a[1]}return r/2}function pA(e){var t=-1,n=e.length,i=0,a=0,r,o=e[n-1],s,l=0;while(++t<n){r=o;o=e[t];l+=s=r[0]*o[1]-o[0]*r[1];i+=(r[0]+o[0])*s;a+=(r[1]+o[1])*s}return l*=3,[i/l,a/l]}function vA(e,t){var n=e.length,i=e[n-1],a=t[0],r=t[1],o=i[0],s=i[1],l,u,h=false;for(var c=0;c<n;++c){i=e[c],l=i[0],u=i[1];if(u>r!==s>r&&a<(o-l)*(r-u)/(s-u)+l)h=!h;o=l,s=u}return h}function mA(e,t,n,i){var a=1e-9;var r=e[0]-t[0],o=n[0]-i[0],s=e[1]-t[1],l=n[1]-i[1];var u=r*l-s*o;if(Math.abs(u)<a)return null;var h=e[0]*t[1]-e[1]*t[0],c=n[0]*i[1]-n[1]*i[0];var f=(h*o-c*r)/u,d=(h*l-c*s)/u;return[f,d]}function yA(e,t){return kA(e)||xA(e,t)||bA(e,t)||_A()}function _A(){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 bA(e,t){if(!e)return;if(typeof e==="string")return wA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wA(e,t)}function wA(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function xA(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function kA(e){if(Array.isArray(e))return e}function SA(e,t,n){var i=1e-9,a=yA(n,2),r=a[0],o=a[1];return!(r<Math.min(e[0],t[0])-i||r>Math.max(e[0],t[0])+i||o<Math.min(e[1],t[1])-i||o>Math.max(e[1],t[1])+i)}function CA(e,t,n,i){var a=mA(e,t,n,i);if(!a)return false;return SA(e,t,a)&&SA(n,i,a)}function EA(e,t){var n=-1;var i=e.length;var a=t.length;var r=e[i-1];while(++n<i){var o=r;r=e[n];var s=-1;var l=t[a-1];while(++s<a){var u=l;l=t[s];if(CA(o,r,u,l))return false}}return vA(t,e[0])}function AA(e,t){return NA(e)||BA(e,t)||MA(e,t)||RA()}function RA(){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(e,t){if(!e)return;if(typeof e==="string")return TA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TA(e,t)}function TA(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function BA(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function NA(e){if(Array.isArray(e))return e}function DA(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var i=1e-9;t=[t[0]+i*Math.cos(n),t[1]+i*Math.sin(n)];var a=t,r=AA(a,2),o=r[0],s=r[1];var l=[o+Math.cos(n),s+Math.sin(n)];var u=0;if(Math.abs(l[0]-o)<i)u=1;var h=-1;var c=e.length;var f=e[c-1];var d=Number.MAX_VALUE;var g=Number.MAX_VALUE;var p=null;var v=null;while(++h<c){var m=f;f=e[h];var y=mA(t,l,m,f);if(y&&SA(m,f,y)){var _=HE(t,y);if(y[u]<t[u]){if(_<d){d=_;p=y}}else if(y[u]>t[u]){if(_<g){g=_;v=y}}}}return[p,v]}function PA(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];var i=Math.cos(t),a=Math.sin(t),r=e[0]-n[0],o=e[1]-n[1];return[i*r-a*o+n[0],a*r+i*o+n[1]]}var OA=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return e.map(function(e){return PA(e,t,n)})};function zA(e,t,n){var i=t[0],a=t[1];var r=n[0]-i,o=n[1]-a;if(r!==0||o!==0){var s=((e[0]-i)*r+(e[1]-a)*o)/(r*r+o*o);if(s>1){i=n[0];a=n[1]}else if(s>0){i+=r*s;a+=o*s}}r=e[0]-i;o=e[1]-a;return r*r+o*o}function FA(e,t){var n,i=e[0];var a=[i];for(var r=1,o=e.length;r<o;r++){n=e[r];if(HE(n,i)>t){a.push(n);i=n}}if(i!==n)a.push(n);return a}function LA(e,t,n,i,a){var r,o=i;for(var s=t+1;s<n;s++){var l=zA(e[s],e[t],e[n]);if(l>o){r=s;o=l}}if(o>i){if(r-t>1)LA(e,t,r,i,a);a.push(e[r]);if(n-r>1)LA(e,r,n,i,a)}}function IA(e,t){var n=e.length-1;var i=[e[0]];LA(e,0,n,t,i);i.push(e[n]);return i}var jA=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(e.length<=2)return e;var i=t*t;e=n?e:FA(e,i);e=IA(e,i);return e};function HA(e,t){return KA(e)||WA(e,t)||UA(e,t)||VA()}function VA(){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 UA(e,t){if(!e)return;if(typeof e==="string")return GA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GA(e,t)}function GA(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function WA(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function KA(e){if(Array.isArray(e))return e}var qA=.5;var YA=5;var XA={};function $A(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(e.length<3){if(t.verbose)console.error("polygon has to have at least 3 points",e);return null}var n=[];t=Object.assign({angle:Ne(-90,90+YA,YA),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},t);var i=t.angle instanceof Array?t.angle:typeof t.angle==="number"?[t.angle]:typeof t.angle==="string"&&!isNaN(t.angle)?[Number(t.angle)]:[];var a=t.aspectRatio instanceof Array?t.aspectRatio:typeof t.aspectRatio==="number"?[t.aspectRatio]:typeof t.aspectRatio==="string"&&!isNaN(t.aspectRatio)?[Number(t.aspectRatio)]:[];var r=t.origin&&t.origin instanceof Array?t.origin[0]instanceof Array?t.origin:[t.origin]:[];var o;if(t.cache){o=Pe(e).join(",");o+="-".concat(t.minAspectRatio);o+="-".concat(t.maxAspectRatio);o+="-".concat(t.minHeight);o+="-".concat(t.minWidth);o+="-".concat(i.join(","));o+="-".concat(r.join(","));if(XA[o])return XA[o]}var s=Math.abs(gA(e));if(s===0){if(t.verbose)console.error("polygon has 0 area",e);return null}var l=Be(e,function(e){return e[0]}),u=HA(l,2),h=u[0],c=u[1];var f=Be(e,function(e){return e[1]}),d=HA(f,2),g=d[0],p=d[1];var v=Math.min(c-h,p-g)*t.tolerance;if(v>0)e=jA(e,v);if(t.events)n.push({type:"simplify",poly:e});var m=Be(e,function(e){return e[0]});var y=HA(m,2);h=y[0];c=y[1];var _=Be(e,function(e){return e[1]});var b=HA(_,2);g=b[0];p=b[1];var w=c-h,x=p-g;var k=Math.min(w,x)/50;if(!r.length){var S=pA(e);if(!isFinite(S[0])){if(t.verbose)console.error("cannot find centroid",e);return null}if(vA(e,S))r.push(S);var C=t.nTries;while(C){var E=Math.random()*w+h;var A=Math.random()*x+g;var R=[E,A];if(vA(e,R)){r.push(R)}C--}}if(t.events)n.push({type:"origins",points:r});var M=0;var T=null;for(var B=0;B<i.length;B++){var N=i[B];var D=-N*Math.PI/180;if(t.events)n.push({type:"angle",angle:N});for(var P=0;P<r.length;P++){var O=r[P];var z=DA(e,O,D),F=HA(z,2),L=F[0],I=F[1];var j=DA(e,O,D+Math.PI/2),H=HA(j,2),V=H[0],U=H[1];var G=[];if(L&&I)G.push([(L[0]+I[0])/2,(L[1]+I[1])/2]);if(V&&U)G.push([(V[0]+U[0])/2,(V[1]+U[1])/2]);if(t.events)n.push({type:"modifOrigin",idx:P,p1W:L,p2W:I,p1H:V,p2H:U,modifOrigins:G});for(var W=0;W<G.length;W++){var K=G[W];if(t.events)n.push({type:"origin",cx:K[0],cy:K[1]});var q=DA(e,K,D),Y=HA(q,2),X=Y[0],$=Y[1];if(X===null||$===null)continue;var Z=Math.min(HE(K,X),HE(K,$));var J=2*Math.sqrt(Z);var Q=DA(e,K,D+Math.PI/2),ee=HA(Q,2),te=ee[0],ne=ee[1];if(te===null||ne===null)continue;var ie=Math.min(HE(K,te),HE(K,ne));var ae=2*Math.sqrt(ie);if(J*ae<M)continue;var re=a;if(!re.length){var oe=Math.max(t.minAspectRatio,t.minWidth/ae,M/(ae*ae));var se=Math.min(t.maxAspectRatio,J/t.minHeight,J*J/M);re=Ne(oe,se+qA,qA)}for(var le=0;le<re.length;le++){var ue=re[le];var he=Math.max(t.minWidth,Math.sqrt(M*ue));var ce=Math.min(J,ae*ue);if(ce*ae<M)continue;if(t.events&&ce-he>=k)n.push({type:"aRatio",aRatio:ue});while(ce-he>=k){var fe=(he+ce)/2;var de=fe/ue;var ge=HA(K,2),pe=ge[0],ve=ge[1];var me=[[pe-fe/2,ve-de/2],[pe+fe/2,ve-de/2],[pe+fe/2,ve+de/2],[pe-fe/2,ve+de/2]];me=OA(me,D,K);var ye=EA(me,e);if(ye){M=fe*de;me.push(me[0]);T={area:M,cx:pe,cy:ve,width:fe,height:de,angle:-N,points:me};he=fe}else{ce=fe}if(t.events)n.push({type:"rectangle",areaFraction:fe*de/s,cx:pe,cy:ve,width:fe,height:de,angle:N,insidePoly:ye})}}}}}if(t.cache){XA[o]=T}return t.events?Object.assign(T||{},{events:n}):T}function ZA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){ZA=function e(t){return typeof t}}else{ZA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return ZA(e)}function JA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function QA(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function eR(e,t,n){if(t)QA(e.prototype,t);if(n)QA(e,n);return e}function tR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){tR=Reflect.get}else{tR=function e(t,n,i){var a=nR(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return tR(e,t,n||e)}function nR(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=uR(e);if(e===null)break}return e}function iR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)aR(e,t)}function aR(e,t){aR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return aR(e,t)}function rR(a){var r=lR();return function e(){var t=uR(a),n;if(r){var i=uR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return oR(this,n)}}function oR(e,t){if(t&&(ZA(t)==="object"||typeof t==="function")){return t}return sR(e)}function sR(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function lR(){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(e){return false}}function uR(e){uR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return uR(e)}var hR=function(e){iR(r,e);var t=rR(r);function r(){var a;JA(this,r);a=t.call(this);a._curve="linear";a._defined=function(){return true};a._labelBounds=function(e,t,n){var i=$A(n.points);if(!i)return null;return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-a._x(e,t),y:i.cy-i.height/2-a._y(e,t)}};a._labelConfig=Object.assign(a._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});a._name="Area";a._x=mn("x");a._x0=mn("x");a._x1=null;a._y=Bg(0);a._y0=Bg(0);a._y1=mn("y");return a}eR(r,[{key:"_aes",value:function e(t){var n=this;var i=t.values.slice().sort(function(e,t){return n._y1?n._x(e)-n._x(t):n._y(e)-n._y(t)});var a=i.map(function(e,t){return[n._x0(e,t),n._y0(e,t)]});var r=i.reverse().map(function(e,t){return n._y1?[n._x(e,t),n._y1(e,t)]:[n._x1(e,t),n._y(e,t)]});var o=a.concat(r);if(a[0][1]>r[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function e(i){var a=this;var t=yb().key(this._id).entries(i).map(function(e){e.data=Rb(e.values);e.i=i.indexOf(e.values[0]);var t=Be(e.values.map(a._x).concat(e.values.map(a._x0)).concat(a._x1?e.values.map(a._x1):[]));e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Be(e.values.map(a._y).concat(e.values.map(a._y0)).concat(a._y1?e.values.map(a._y1):[]));e.yR=n;e.height=n[1]-n[0];e.y=n[0]+e.height/2;e.nested=true;e.translate=[e.x,e.y];e.__d3plusShape__=true;return e});t.key=function(e){return e.key};return t}},{key:"render",value:function e(t){var n=this;tR(uR(r.prototype),"render",this).call(this,t);var i=this._path=_e().defined(this._defined).curve(vn["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1);var a=_e().defined(function(e){return e}).curve(vn["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).y(this._y).x0(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).x1(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).y0(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)}).y1(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)});this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return a(e.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(e){return dA(xv(this).attr("d"),i(e.values))});this._update.select("path").transition(this._transition).attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attrTween("d",function(e){return dA(xv(this).attr("d"),i(e.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(e){return dA(xv(this).attr("d"),a(e.values))});return this}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}},{key:"x",value:function e(t){if(!arguments.length)return this._x;this._x=typeof t==="function"?t:Bg(t);this._x0=this._x;return this}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Bg(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Bg(t),this):this._x1}},{key:"y",value:function e(t){if(!arguments.length)return this._y;this._y=typeof t==="function"?t:Bg(t);this._y0=this._y;return this}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Bg(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Bg(t),this):this._y1}}]);return r}(eA);function cR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cR=function e(t){return typeof t}}else{cR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cR(e)}function fR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function dR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function gR(e,t,n){if(t)dR(e.prototype,t);if(n)dR(e,n);return e}function pR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){pR=Reflect.get}else{pR=function e(t,n,i){var a=vR(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return pR(e,t,n||e)}function vR(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=kR(e);if(e===null)break}return e}function mR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)yR(e,t)}function yR(e,t){yR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return yR(e,t)}function _R(a){var r=xR();return function e(){var t=kR(a),n;if(r){var i=kR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return bR(this,n)}}function bR(e,t){if(t&&(cR(t)==="object"||typeof t==="function")){return t}return wR(e)}function wR(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function xR(){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(e){return false}}function kR(e){kR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return kR(e)}var SR=function(e){mR(r,e);var t=_R(r);function r(){var i;fR(this,r);i=t.call(this,"rect");i._name="Bar";i._height=Bg(10);i._labelBounds=function(e,t,n){return{width:n.width,height:n.height,x:i._x1!==null?i._getX(e,t):-n.width/2,y:i._x1===null?i._getY(e,t):-n.height/2}};i._width=Bg(10);i._x=mn("x");i._x0=mn("x");i._x1=null;i._y=Bg(0);i._y0=Bg(0);i._y1=mn("y");return i}gR(r,[{key:"render",value:function e(t){var n=this;pR(kR(r.prototype),"render",this).call(this,t);var i=this._enter.attr("width",function(e,t){return n._x1===null?n._getWidth(e,t):0}).attr("height",function(e,t){return n._x1!==null?n._getHeight(e,t):0}).attr("x",function(e,t){return n._x1===null?-n._getWidth(e,t)/2:0}).attr("y",function(e,t){return n._x1!==null?-n._getHeight(e,t)/2:0}).call(this._applyStyle.bind(this));var a=this._update;if(this._duration){i=i.transition(this._transition);a=a.transition(this._transition);this._exit.transition(this._transition).attr("width",function(e,t){return n._x1===null?n._getWidth(e,t):0}).attr("height",function(e,t){return n._x1!==null?n._getHeight(e,t):0}).attr("x",function(e,t){return n._x1===null?-n._getWidth(e,t)/2:0}).attr("y",function(e,t){return n._x1!==null?-n._getHeight(e,t)/2:0})}i.call(this._applyPosition.bind(this));a.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function e(t,n){return{height:this._getHeight(t,n),width:this._getWidth(t,n)}}},{key:"_applyPosition",value:function e(t){var n=this;t.attr("width",function(e,t){return n._getWidth(e,t)}).attr("height",function(e,t){return n._getHeight(e,t)}).attr("x",function(e,t){return n._x1!==null?n._getX(e,t):-n._getWidth(e,t)/2}).attr("y",function(e,t){return n._x1===null?n._getY(e,t):-n._getHeight(e,t)/2})}},{key:"_getHeight",value:function e(t,n){if(this._x1!==null)return this._height(t,n);return Math.abs(this._y1(t,n)-this._y(t,n))}},{key:"_getWidth",value:function e(t,n){if(this._x1===null)return this._width(t,n);return Math.abs(this._x1(t,n)-this._x(t,n))}},{key:"_getX",value:function e(t,n){var i=this._x1===null?this._x(t,n):this._x1(t,n)-this._x(t,n);if(i<0)return i;else return 0}},{key:"_getY",value:function e(t,n){var i=this._x1!==null?this._y(t,n):this._y1(t,n)-this._y(t,n);if(i<0)return i;else return 0}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Bg(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Bg(t),this):this._width}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Bg(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Bg(t),this):this._x1}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Bg(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Bg(t),this):this._y1}}]);return r}(eA);function CR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){CR=function e(t){return typeof t}}else{CR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return CR(e)}function ER(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function AR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function RR(e,t,n){if(t)AR(e.prototype,t);if(n)AR(e,n);return e}function MR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){MR=Reflect.get}else{MR=function e(t,n,i){var a=TR(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return MR(e,t,n||e)}function TR(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=FR(e);if(e===null)break}return e}function BR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)NR(e,t)}function NR(e,t){NR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return NR(e,t)}function DR(a){var r=zR();return function e(){var t=FR(a),n;if(r){var i=FR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return PR(this,n)}}function PR(e,t){if(t&&(CR(t)==="object"||typeof t==="function")){return t}return OR(e)}function OR(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function zR(){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(e){return false}}function FR(e){FR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return FR(e)}var LR=function(e){BR(a,e);var t=DR(a);function a(){var e;ER(this,a);e=t.call(this,"circle");e._labelBounds=function(e,t,n){return{width:n.r*1.5,height:n.r*1.5,x:-n.r*.75,y:-n.r*.75}};e._labelConfig=wn(e._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});e._name="Circle";e._r=mn("r");return e}RR(a,[{key:"_applyPosition",value:function e(t){var n=this;t.attr("r",function(e,t){return n._r(e,t)}).attr("x",function(e,t){return-n._r(e,t)/2}).attr("y",function(e,t){return-n._r(e,t)/2})}},{key:"render",value:function e(t){MR(FR(a.prototype),"render",this).call(this,t);var n=this._enter.call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n.attr("r",0).attr("x",0).attr("y",0).transition(this._transition).call(this._applyPosition.bind(this));i=i.transition(this._transition);this._exit.transition(this._transition).attr("r",0).attr("x",0).attr("y",0)}else{n.call(this._applyPosition.bind(this))}i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function e(t,n){return{r:this._r(t,n)}}},{key:"r",value:function e(t){return arguments.length?(this._r=typeof t==="function"?t:Bg(t),this):this._r}}]);return a}(eA);function IR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){IR=function e(t){return typeof t}}else{IR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return IR(e)}function jR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function HR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function VR(e,t,n){if(t)HR(e.prototype,t);if(n)HR(e,n);return e}function UR(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){UR=Reflect.get}else{UR=function e(t,n,i){var a=GR(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return UR(e,t,n||e)}function GR(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=ZR(e);if(e===null)break}return e}function WR(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)KR(e,t)}function KR(e,t){KR=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return KR(e,t)}function qR(a){var r=$R();return function e(){var t=ZR(a),n;if(r){var i=ZR(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return YR(this,n)}}function YR(e,t){if(t&&(IR(t)==="object"||typeof t==="function")){return t}return XR(e)}function XR(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $R(){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(e){return false}}function ZR(e){ZR=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return ZR(e)}var JR=function(e){WR(a,e);var t=qR(a);function a(){var e;jR(this,a);e=t.call(this,"rect");e._height=mn("height");e._labelBounds=function(e,t,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}};e._name="Rect";e._width=mn("width");return e}VR(a,[{key:"render",value:function e(t){UR(ZR(a.prototype),"render",this).call(this,t);var n=this._enter.attr("width",0).attr("height",0).attr("x",0).attr("y",0).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n=n.transition(this._transition);i=i.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));i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function e(t,n){return{width:this._width(t,n),height:this._height(t,n)}}},{key:"_applyPosition",value:function e(t){var n=this;t.attr("width",function(e,t){return n._width(e,t)}).attr("height",function(e,t){return n._height(e,t)}).attr("x",function(e,t){return-n._width(e,t)/2}).attr("y",function(e,t){return-n._height(e,t)/2})}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Bg(t),this):this._height}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Bg(t),this):this._width}}]);return a}(eA);function QR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){QR=function e(t){return typeof t}}else{QR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return QR(e)}function eM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function tM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function nM(e,t,n){if(t)tM(e.prototype,t);if(n)tM(e,n);return e}function iM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){iM=Reflect.get}else{iM=function e(t,n,i){var a=aM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return iM(e,t,n||e)}function aM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=cM(e);if(e===null)break}return e}function rM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)oM(e,t)}function oM(e,t){oM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return oM(e,t)}function sM(a){var r=hM();return function e(){var t=cM(a),n;if(r){var i=cM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return lM(this,n)}}function lM(e,t){if(t&&(QR(t)==="object"||typeof t==="function")){return t}return uM(e)}function uM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function hM(){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(e){return false}}function cM(e){cM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return cM(e)}var fM=function(e){rM(s,e);var t=sM(s);function s(){var n;eM(this,s);n=t.call(this);n._curve="linear";n._defined=function(e){return e};n._fill=Bg("none");n._hitArea=Bg({d:function e(t){return n._path(t.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=ye();n._stroke=Bg("black");n._strokeWidth=Bg(1);return n}nM(s,[{key:"_dataFilter",value:function e(i){var a=this;var t=yb().key(this._id).entries(i).map(function(e){e.data=Rb(e.values);e.i=i.indexOf(e.values[0]);var t=Be(e.values,a._x);e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Be(e.values,a._y);e.yR=n;e.height=n[1]-n[0];e.y=n[0]+e.height/2;e.nested=true;e.translate=[e.x,e.y];e.__d3plusShape__=true;return e});t.key=function(e){return e.key};return t}},{key:"render",value:function e(t){var n=this;iM(cM(s.prototype),"render",this).call(this,t);var o=this;function i(e){e.initialLength=this.getTotalLength();var t=o._strokeDasharray(e.values[0],o._data.indexOf(e.values[0])).split(" ").map(Number);if(t.length===1&&t[0]===0)t=[e.initialLength];else if(t.length===1)t.push(t[0]);else if(t.length%2)t=t.concat(t);var n=[];var i=0;while(i<e.initialLength){for(var a=0;a<t.length;a++){var r=t[a];i+=r;n.push(r);if(i>=e.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=e.initialLength-O(n);if(n.length%2===0)n.push(0);e.initialStrokeArray=n.join(" ")}this._path.curve(vn["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var a=this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return n._path(e.values)}).call(this._applyStyle.bind(this));var r=this._update.select("path").attr("stroke-dasharray",function(e){return o._strokeDasharray(e.values[0],o._data.indexOf(e.values[0]))});if(this._duration){a.each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).attr("stroke-dashoffset",function(e){return e.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);r=r.transition(this._transition).attrTween("d",function(e){return dA(xv(this).attr("d"),o._path(e.values))});this._exit.selectAll("path").each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(e){return-e.initialLength})}else{r=r.attr("d",function(e){return o._path(e.values)})}r.attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function e(t,n){var i=this;return{points:t.values.map(function(e){return[i._x(e,n),i._y(e,n)]})}}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}}]);return s}(eA);function dM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){dM=function e(t){return typeof t}}else{dM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return dM(e)}function gM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function pM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function vM(e,t,n){if(t)pM(e.prototype,t);if(n)pM(e,n);return e}function mM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)yM(e,t)}function yM(e,t){yM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return yM(e,t)}function _M(a){var r=xM();return function e(){var t=kM(a),n;if(r){var i=kM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return bM(this,n)}}function bM(e,t){if(t&&(dM(t)==="object"||typeof t==="function")){return t}return wM(e)}function wM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function xM(){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(e){return false}}function kM(e){kM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return kM(e)}var SM={Circle:LR,Rect:JR};var CM=function(e){mM(n,e);var t=_M(n);function n(){var e;gM(this,n);e=t.call(this);e._endpoint=mn("endpoint","Rect");e._endpointConfig={Circle:{r:mn("r",5)}};e._length=mn("length",25);e._lineConfig={};e._orient=mn("orient","top");e._x=mn("x",0);e._y=mn("y",0);return e}vM(n,[{key:"render",value:function e(t){var s=this;if(this._select===void 0){this.select(xv("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var l=[];this._data.forEach(function(e,t){var n=s._orient(e,t);var i=s._x(e,t);var a=s._y(e,t);var r=i;if(n==="left")r-=s._length(e,t);else if(n==="right")r+=s._length(e,t);var o=a;if(n==="top")o-=s._length(e,t);else if(n==="bottom")o+=s._length(e,t);l.push({__d3plus__:true,data:e,i:t,id:t,x:i,y:a});l.push({__d3plus__:true,data:e,i:t,id:t,x:r,y:o})});this._line=(new fM).data(l).select(gb("g.d3plus-Whisker",{parent:this._select}).node()).config(Tg.bind(this)(this._lineConfig,"shape")).render(t);var n=this._data.map(function(e,t){var n={};n.__d3plus__=true;n.data=e;n.i=t;n.endpoint=s._endpoint(e,t);n.length=s._length(e,t);n.orient=s._orient(e,t);var i=s._x(e,t);if(n.orient==="left")i-=n.length;else if(n.orient==="right")i+=n.length;var a=s._y(e,t);if(n.orient==="top")a-=n.length;else if(n.orient==="bottom")a+=n.length;n.x=i;n.y=a;return n});this._whiskerEndpoint=[];yb().key(function(e){return e.endpoint}).entries(n).forEach(function(e){var t=e.key;s._whiskerEndpoint.push((new SM[t]).data(e.values).select(gb("g.d3plus-Whisker-Endpoint-".concat(t),{parent:s._select}).node()).config({height:function e(t){return t.orient==="top"||t.orient==="bottom"?5:20},width:function e(t){return t.orient==="top"||t.orient==="bottom"?20:5}}).config(Tg.bind(s)(s._endpointConfig,"shape",t)).render())});return this}},{key:"active",value:function e(t){if(this._line)this._line.active(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.active(t)})}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"endpoint",value:function e(t){return arguments.length?(this._endpoint=typeof t==="function"?t:Bg(t),this):this._endpoint}},{key:"endpointConfig",value:function e(t){return arguments.length?(this._endpointConfig=wn(this._endpointConfig,t),this):this._endpointConfig}},{key:"hover",value:function e(t){if(this._line)this._line.hover(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.hover(t)})}},{key:"length",value:function e(t){return arguments.length?(this._length=typeof t==="function"?t:Bg(t),this):this._length}},{key:"lineConfig",value:function e(t){return arguments.length?(this._lineConfig=wn(this._lineConfig,t),this):this._lineConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Bg(t),this):this._orient}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Bg(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Bg(t),this):this._y}}]);return n}(Ag);function EM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){EM=function e(t){return typeof t}}else{EM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return EM(e)}function AM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function RM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function MM(e,t,n){if(t)RM(e.prototype,t);if(n)RM(e,n);return e}function TM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)BM(e,t)}function BM(e,t){BM=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return BM(e,t)}function NM(a){var r=OM();return function e(){var t=zM(a),n;if(r){var i=zM(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return DM(this,n)}}function DM(e,t){if(t&&(EM(t)==="object"||typeof t==="function")){return t}return PM(e)}function PM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function OM(){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(e){return false}}function zM(e){zM=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return zM(e)}var FM={Circle:LR,Rect:JR};var LM=function(e){TM(n,e);var t=NM(n);function n(){var i;AM(this,n);i=t.call(this);i._medianConfig={fill:Bg("black")};i._orient=mn("orient","vertical");i._outlier=mn("outlier","Circle");i._outlierConfig={Circle:{r:mn("r",5)},Rect:{height:function e(t,n){return i._orient(t,n)==="vertical"?5:20},width:function e(t,n){return i._orient(t,n)==="vertical"?20:5}}};i._rectConfig={fill:Bg("white"),stroke:Bg("black"),strokeWidth:Bg(1)};i._rectWidth=Bg(50);i._whiskerConfig={};i._whiskerMode=["tukey","tukey"];i._x=mn("x",250);i._y=mn("y",250);return i}MM(n,[{key:"render",value:function e(){var r=this;if(this._select===void 0){this.select(xv("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var t=yb().key(function(e,t){return r._orient(e,t)==="vertical"?r._x(e,t):r._y(e,t)}).entries(this._data).map(function(a){a.data=Rb(a.values);a.i=r._data.indexOf(a.values[0]);a.orient=r._orient(a.data,a.i);var e=a.values.map(a.orient==="vertical"?r._y:r._x);e.sort(function(e,t){return e-t});a.first=De(e,.25);a.median=De(e,.5);a.third=De(e,.75);var t=r._whiskerMode;if(t[0]==="tukey"){a.lowerLimit=a.first-(a.third-a.first)*1.5;if(a.lowerLimit<Oe(e))a.lowerLimit=Oe(e)}else if(t[0]==="extent")a.lowerLimit=Oe(e);else if(typeof t[0]==="number")a.lowerLimit=De(e,t[0]);if(t[1]==="tukey"){a.upperLimit=a.third+(a.third-a.first)*1.5;if(a.upperLimit>ve(e))a.upperLimit=ve(e)}else if(t[1]==="extent")a.upperLimit=ve(e);else if(typeof t[1]==="number")a.upperLimit=De(e,t[1]);var n=a.third-a.first;if(a.orient==="vertical"){a.height=n;a.width=r._rectWidth(a.data,a.i);a.x=r._x(a.data,a.i);a.y=a.first+n/2}else if(a.orient==="horizontal"){a.height=r._rectWidth(a.data,a.i);a.width=n;a.x=a.first+n/2;a.y=r._y(a.data,a.i)}a.values.forEach(function(e,t){var n=a.orient==="vertical"?r._y(e,t):r._x(e,t);if(n<a.lowerLimit||n>a.upperLimit){var i={};i.__d3plus__=true;i.data=e;i.i=t;i.outlier=r._outlier(e,t);if(a.orient==="vertical"){i.x=a.x;i.y=n;o.push(i)}else if(a.orient==="horizontal"){i.y=a.y;i.x=n;o.push(i)}}});a.__d3plus__=true;return a});this._box=(new JR).data(t).x(function(e){return e.x}).y(function(e){return e.y}).select(gb("g.d3plus-Box",{parent:this._select}).node()).config(Tg.bind(this)(this._rectConfig,"shape")).render();this._median=(new JR).data(t).x(function(e){return e.orient==="vertical"?e.x:e.median}).y(function(e){return e.orient==="vertical"?e.median:e.y}).height(function(e){return e.orient==="vertical"?1:e.height}).width(function(e){return e.orient==="vertical"?e.width:1}).select(gb("g.d3plus-Box-Median",{parent:this._select}).node()).config(Tg.bind(this)(this._medianConfig,"shape")).render();var h=[];t.forEach(function(e,t){var n=e.x;var i=e.y;var a=e.first-e.lowerLimit;var r=e.upperLimit-e.third;if(e.orient==="vertical"){var o=i-e.height/2;var s=i+e.height/2;h.push({__d3plus__:true,data:e,i:t,x:n,y:o,length:a,orient:"top"},{__d3plus__:true,data:e,i:t,x:n,y:s,length:r,orient:"bottom"})}else if(e.orient==="horizontal"){var l=n+e.width/2;var u=n-e.width/2;h.push({__d3plus__:true,data:e,i:t,x:l,y:i,length:r,orient:"right"},{__d3plus__:true,data:e,i:t,x:u,y:i,length:a,orient:"left"})}});this._whisker=(new CM).data(h).select(gb("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(Tg.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];yb().key(function(e){return e.outlier}).entries(o).forEach(function(e){var t=e.key;r._whiskerEndpoint.push((new FM[t]).data(e.values).select(gb("g.d3plus-Box-Outlier-".concat(t),{parent:r._select}).node()).config(Tg.bind(r)(r._outlierConfig,"shape",t)).render())});return this}},{key:"active",value:function e(t){if(this._box)this._box.active(t);if(this._median)this._median.active(t);if(this._whisker)this._whisker.active(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.active(t)})}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"hover",value:function e(t){if(this._box)this._box.hover(t);if(this._median)this._median.hover(t);if(this._whisker)this._whisker.hover(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.hover(t)})}},{key:"medianConfig",value:function e(t){return arguments.length?(this._medianConfig=wn(this._medianConfig,t),this):this._medianConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Bg(t),this):this._orient}},{key:"outlier",value:function e(t){return arguments.length?(this._outlier=typeof t==="function"?t:Bg(t),this):this._outlier}},{key:"outlierConfig",value:function e(t){return arguments.length?(this._outlierConfig=wn(this._outlierConfig,t),this):this._outlierConfig}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=wn(this._rectConfig,t),this):this._rectConfig}},{key:"rectWidth",value:function e(t){return arguments.length?(this._rectWidth=typeof t==="function"?t:Bg(t),this):this._rectWidth}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"whiskerConfig",value:function e(t){return arguments.length?(this._whiskerConfig=wn(this._whiskerConfig,t),this):this._whiskerConfig}},{key:"whiskerMode",value:function e(t){return arguments.length?(this._whiskerMode=t instanceof Array?t:[t,t],this):this._whiskerMode}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:mn(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:mn(t),this):this._y}}]);return n}(Ag);var IM=Math.PI;var jM=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(e<0)e=IM*2+e;if(n==="square"){var i=45*(IM/180);var a=0,r=0;if(e<IM/2){var o=Math.tan(e);a+=e<i?t:t/o;r+=e<i?o*t:t}else if(e<=IM){var s=Math.tan(IM-e);a-=e<IM-i?t/s:t;r+=e<IM-i?t:s*t}else if(e<i+IM){a-=t;r-=Math.tan(e-IM)*t}else if(e<3*IM/2){a-=t/Math.tan(e-IM);r-=t}else if(e<2*IM-i){a+=t/Math.tan(2*IM-e);r-=t}else{a+=t;r-=Math.tan(2*IM-e)*t}return[a,r]}else if(n==="circle"){return[t*Math.cos(e),t*Math.sin(e)]}else return null};var HM=Math.PI;var VM=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var n=[],i=/([MLA])([^MLAZ]+)/gi;var a=i.exec(e);while(a!==null){if(["M","L"].includes(a[1]))n.push(a[2].split(",").map(Number));else if(a[1]==="A"){var r=a[2].split(",").map(Number);var o=r.slice(r.length-2,r.length),s=n[n.length-1],l=r[0],u=VE(s,o);var h=Math.acos((l*l+l*l-u*u)/(2*l*l));if(r[2])h=HM*2-h;var c=h/(h/(HM*2)*(l*HM*2)/t);var f=Math.atan2(-s[1],-s[0])-HM;var d=c;while(d<h){n.push(jM(r[4]?f+d:f-d,l));d+=c}n.push(o)}a=i.exec(e)}return n};function UM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){UM=function e(t){return typeof t}}else{UM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return UM(e)}function GM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function WM(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function KM(e,t,n){if(t)WM(e.prototype,t);if(n)WM(e,n);return e}function qM(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){qM=Reflect.get}else{qM=function e(t,n,i){var a=YM(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return qM(e,t,n||e)}function YM(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=tT(e);if(e===null)break}return e}function XM(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)$M(e,t)}function $M(e,t){$M=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return $M(e,t)}function ZM(a){var r=eT();return function e(){var t=tT(a),n;if(r){var i=tT(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return JM(this,n)}}function JM(e,t){if(t&&(UM(t)==="object"||typeof t==="function")){return t}return QM(e)}function QM(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function eT(){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(e){return false}}function tT(e){tT=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return tT(e)}var nT=function(e){XM(r,e);var t=ZM(r);function r(){var a;GM(this,r);a=t.call(this,"path");a._d=mn("path");a._labelBounds=function(e,t,n){var i=$A(n.points,{angle:a._labelConfig.rotate?a._labelConfig.rotate(e,t):0});return i?{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2,y:i.cy-i.height/2}:false};a._name="Path";a._labelConfig=Object.assign(a._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});return a}KM(r,[{key:"_aes",value:function e(t,n){return{points:VM(this._d(t,n))}}},{key:"render",value:function e(t){qM(tT(r.prototype),"render",this).call(this,t);var n=this._enter.attr("d",this._d).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){n.attr("opacity",0).transition(this._transition).attr("opacity",1);i=i.transition(this._transition);this._exit.transition(this._transition).attr("opacity",0)}i.call(this._applyStyle.bind(this)).attr("d",this._d);return this}},{key:"d",value:function e(t){return arguments.length?(this._d=typeof t==="function"?t:Bg(t),this):this._d}}]);return r}(eA);var iT=Object.freeze({__proto__:null,Image:Ob,Shape:eA,Area:hR,Bar:SR,Box:LM,Circle:LR,Line:fM,Path:nT,Rect:JR,Whisker:CM,largestRect:$A,lineIntersection:mA,path2polygon:VM,pointDistance:VE,pointDistanceSquared:HE,pointRotate:PA,polygonInside:EA,polygonRayCast:DA,polygonRotate:OA,segmentBoxContains:SA,segmentsIntersect:CA,shapeEdgePoint:jM,simplify:jA});var aT=function(e){var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return e.reduce(function(e,t){var n=[];if(Array.isArray(t)){n=t}else{if(t[i]){n=t[i]}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(i,'") the following response:'),t)}}return e.concat(n)},[])};var rT=function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return e[t].map(function(i){return e[n].reduce(function(e,t,n){return e[t]=i[n],e},{})})};function oT(a,e){var r,o=Mv("beforesend","progress","load","error"),s,l=mb(),u=new XMLHttpRequest,h=null,c=null,i,f,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(a))u=new XDomainRequest;"onload"in u?u.onload=u.onerror=u.ontimeout=t:u.onreadystatechange=function(e){u.readyState>3&&t(e)};function t(e){var t=u.status,n;if(!t&&lT(u)||t>=200&&t<300||t===304){if(i){try{n=i.call(r,u)}catch(e){o.call("error",r,e);return}}else{n=u}o.call("load",r,n)}else{o.call("error",r,e)}}u.onprogress=function(e){o.call("progress",r,e)};r={header:function e(t,n){t=(t+"").toLowerCase();if(arguments.length<2)return l.get(t);if(n==null)l.remove(t);else l.set(t,n+"");return r},mimeType:function e(t){if(!arguments.length)return s;s=t==null?null:t+"";return r},responseType:function e(t){if(!arguments.length)return f;f=t;return r},timeout:function e(t){if(!arguments.length)return d;d=+t;return r},user:function e(t){return arguments.length<1?h:(h=t==null?null:t+"",r)},password:function e(t){return arguments.length<1?c:(c=t==null?null:t+"",r)},response:function e(t){i=t;return r},get:function e(t,n){return r.send("GET",t,n)},post:function e(t,n){return r.send("POST",t,n)},send:function e(t,n,i){u.open(t,a,true,h,c);if(s!=null&&!l.has("accept"))l.set("accept",s+",*/*");if(u.setRequestHeader)l.each(function(e,t){u.setRequestHeader(t,e)});if(s!=null&&u.overrideMimeType)u.overrideMimeType(s);if(f!=null)u.responseType=f;if(d>0)u.timeout=d;if(i==null&&typeof n==="function")i=n,n=null;if(i!=null&&i.length===1)i=sT(i);if(i!=null)r.on("error",i).on("load",function(e){i(null,e)});o.call("beforesend",r,u);u.send(n==null?null:n);return r},abort:function e(){u.abort();return r},on:function e(){var t=o.on.apply(o,arguments);return t===o?r:t}};if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return r.get(e)}return r}function sT(n){return function(e,t){n(e==null?t:null)}}function lT(e){var t=e.responseType;return t&&t!=="text"?e.response:e.responseText}function uT(i,a){return function(e,t){var n=oT(e).mimeType(i).response(a);if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return n.get(t)}return n}}var hT=uT("application/json",function(e){return JSON.parse(e.responseText)});var cT=uT("text/plain",function(e){return e.responseText});var fT={},dT={},gT=34,pT=10,vT=13;function mT(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function yT(n,i){var a=mT(n);return function(e,t){return i(a(e),t,n)}}function _T(e){var n=Object.create(null),i=[];e.forEach(function(e){for(var t in e){if(!(t in n)){i.push(n[t]=t)}}});return i}function bT(e,t){var n=e+"",i=n.length;return i<t?new Array(t-i+1).join(0)+n:n}function wT(e){return e<0?"-"+bT(-e,6):e>9999?"+"+bT(e,6):bT(e,4)}function xT(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":wT(e.getUTCFullYear())+"-"+bT(e.getUTCMonth()+1,2)+"-"+bT(e.getUTCDate(),2)+(a?"T"+bT(t,2)+":"+bT(n,2)+":"+bT(i,2)+"."+bT(a,3)+"Z":i?"T"+bT(t,2)+":"+bT(n,2)+":"+bT(i,2)+"Z":n||t?"T"+bT(t,2)+":"+bT(n,2)+"Z":"")}function kT(i){var t=new RegExp('["'+i+"\n\r]"),c=i.charCodeAt(0);function e(e,n){var i,a,t=r(e,function(e,t){if(i)return i(e,t-1);a=e,i=n?yT(e,n):mT(e)});t.columns=a||[];return t}function r(i,e){var t=[],a=i.length,r=0,n=0,o,s=a<=0,l=false;if(i.charCodeAt(a-1)===pT)--a;if(i.charCodeAt(a-1)===vT)--a;function u(){if(s)return dT;if(l)return l=false,fT;var e,t=r,n;if(i.charCodeAt(t)===gT){while(r++<a&&i.charCodeAt(r)!==gT||i.charCodeAt(++r)===gT){}if((e=r)>=a)s=true;else if((n=i.charCodeAt(r++))===pT)l=true;else if(n===vT){l=true;if(i.charCodeAt(r)===pT)++r}return i.slice(t+1,e-1).replace(/""/g,'"')}while(r<a){if((n=i.charCodeAt(e=r++))===pT)l=true;else if(n===vT){l=true;if(i.charCodeAt(r)===pT)++r}else if(n!==c)continue;return i.slice(t,e)}return s=true,i.slice(t,a)}while((o=u())!==dT){var h=[];while(o!==fT&&o!==dT){h.push(o),o=u()}if(e&&(h=e(h,n++))==null)continue;t.push(h)}return t}function n(e,n){return e.map(function(t){return n.map(function(e){return u(t[e])}).join(i)})}function a(e,t){if(t==null)t=_T(e);return[t.map(u).join(i)].concat(n(e,t)).join("\n")}function o(e,t){if(t==null)t=_T(e);return n(e,t).join("\n")}function s(e){return e.map(l).join("\n")}function l(e){return e.map(u).join(i)}function u(e){return e==null?"":e instanceof Date?xT(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:e,parseRows:r,format:a,formatBody:o,formatRows:s,formatRow:l,formatValue:u}}var ST=kT(",");var CT=ST.parse;var ET=kT("\t");var AT=ET.parse;function RT(a,r){return function(e,t,n){if(arguments.length<3)n=t,t=null;var i=oT(e).mimeType(a);i.row=function(e){return arguments.length?i.response(MT(r,t=e)):t};i.row(t);return n?i.get(n):i}}function MT(t,n){return function(e){return t(e.responseText,n)}}var TT=RT("text/csv",CT);var BT=RT("text/tab-separated-values",AT);function NT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){NT=function e(t){return typeof t}}else{NT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return NT(e)}function DT(r,o,s,l){var u=this;var h;var c=function e(t){var n=t.slice(t.length-4);switch(n){case".csv":return TT;case".tsv":return BT;case".txt":return cT;default:return hT}};var f=function e(t,n,i){if(n!==hT&&!t&&i&&i instanceof Array){i.forEach(function(e){for(var t in e){if(!isNaN(e[t]))e[t]=parseFloat(e[t]);else if(e[t].toLowerCase()==="false")e[t]=false;else if(e[t].toLowerCase()==="true")e[t]=true;else if(e[t].toLowerCase()==="null")e[t]=null;else if(e[t].toLowerCase()==="undefined")e[t]=undefined}})}return i};var d=function e(t){return t.reduce(function(e,t){return t?e+1:e},0)};var g=function e(t,n){return n.indexOf(t)};if(!(r instanceof Array))r=[r];var n=function e(t){return typeof t==="string"||NT(t)==="object"&&t.url&&t.headers};var e=r.find(n);var p=new Array(r.length);var v=[];if(e){r.forEach(function(e,t){if(n(e))v.push(e);else p[t]=e})}else{p[0]=r}var m=d(p);v.forEach(function(e){var t={},n=e;if(NT(e)==="object"){n=e.url;t=e.headers}h=c(n);var i=h(n);for(var a in t){if({}.hasOwnProperty.call(t,a)){i.header(a,t[a])}}i.get(function(e,t){t=e?[]:t;if(t&&!(t instanceof Array)&&t.data&&t.headers)t=rT(t);t=f(e,h,t);p[g(n,r)]=t;if(d(p)-m===v.length){t=d(p)===1?p[0]:p;if(u._cache)u._lrucache.set("".concat(s,"_").concat(n),t);if(o){t=o(d(p)===1?p[0]:p)}else if(s==="data"){t=aT(p,"data")}if(s&&"_".concat(s)in u)u["_".concat(s)]=t;if(l)l(e,t)}})});if(v.length===0){p=p.map(function(e){if(e&&!(e instanceof Array)&&e.data&&e.headers)e=rT(e);return e});var t=d(p)===1?p[0]:p;if(o){t=o(d(p)===1?p[0]:p)}else if(s==="data"){t=aT(p,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=t;if(l)l(null,t)}}function PT(){ov.preventDefault();ov.stopImmediatePropagation()}function OT(e){var t=e.document.documentElement,n=xv(e).on("dragstart.drag",PT,true);if("onselectstart"in t){n.on("selectstart.drag",PT,true)}else{t.__noselect=t.style.MozUserSelect;t.style.MozUserSelect="none"}}function zT(e,t){var n=e.document.documentElement,i=xv(e).on("dragstart.drag",null);if(t){i.on("click.drag",PT,true);setTimeout(function(){i.on("click.drag",null)},0)}if("onselectstart"in n){i.on("selectstart.drag",null)}else{n.style.MozUserSelect=n.__noselect;delete n.__noselect}}function FT(e){return function(){return e}}function LT(e,t,n){this.target=e;this.type=t;this.selection=n}function IT(){ov.stopImmediatePropagation()}function jT(){ov.preventDefault();ov.stopImmediatePropagation()}var HT={name:"drag"},VT={name:"space"},UT={name:"handle"},GT={name:"center"};function WT(e){return[+e[0],+e[1]]}function KT(e){return[WT(e[0]),WT(e[1])]}function qT(t){return function(e){return Av(e,ov.touches,t)}}var YT={name:"x",handles:["w","e"].map(nB),input:function e(t,n){return t==null?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function e(t){return t&&[t[0][0],t[1][0]]}};var XT={name:"y",handles:["n","s"].map(nB),input:function e(t,n){return t==null?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function e(t){return t&&[t[0][1],t[1][1]]}};var $T={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(nB),input:function e(t){return t==null?null:KT(t)},output:function e(t){return t}};var ZT={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 JT={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var QT={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var eB={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var tB={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function nB(e){return{type:e}}function iB(){return!ov.ctrlKey&&!ov.button}function aB(){var e=this.ownerSVGElement||this;if(e.hasAttribute("viewBox")){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function rB(){return navigator.maxTouchPoints||"ontouchstart"in this}function oB(e){while(!e.__brush){if(!(e=e.parentNode))return}return e.__brush}function sB(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function lB(){return hB(YT)}function uB(){return hB($T)}function hB(L){var t=aB,I=iB,i=rB,j=true,n=Mv("start","brush","end"),a=6,H;function r(e){var t=e.property("__brush",h).selectAll(".overlay").data([nB("overlay")]);t.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",ZT.overlay).merge(t).each(function(){var e=oB(this).extent;xv(this).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])});e.selectAll(".selection").data([nB("selection")]).enter().append("rect").attr("class","selection").attr("cursor",ZT.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=e.selectAll(".handle").data(L.handles,function(e){return e.type});n.exit().remove();n.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return ZT[e.type]});e.each(V).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(i).on("touchstart.brush",s).on("touchmove.brush",l).on("touchend.brush touchcancel.brush",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}r.move=function(e,s){if(e.selection){e.on("start.brush",function(){U(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){U(this,arguments).end()}).tween("brush",function(){var t=this,n=t.__brush,i=U(t,arguments),e=n.selection,a=L.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),r=Ly(e,a);function o(e){n.selection=e===1&&a===null?null:r(e);V.call(t);i.brush()}return e!==null&&a!==null?o:o(1)})}else{e.each(function(){var e=this,t=arguments,n=e.__brush,i=L.input(typeof s==="function"?s.apply(e,t):s,n.extent),a=U(e,t).beforestart();pm(e);n.selection=i===null?null:i;V.call(e);a.start().brush().end()})}};r.clear=function(e){r.move(e,null)};function V(){var e=xv(this),t=oB(this).selection;if(t){e.selectAll(".selection").style("display",null).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]);e.selectAll(".handle").style("display",null).attr("x",function(e){return e.type[e.type.length-1]==="e"?t[1][0]-a/2:t[0][0]-a/2}).attr("y",function(e){return e.type[0]==="s"?t[1][1]-a/2:t[0][1]-a/2}).attr("width",function(e){return e.type==="n"||e.type==="s"?t[1][0]-t[0][0]+a:a}).attr("height",function(e){return e.type==="e"||e.type==="w"?t[1][1]-t[0][1]+a:a})}else{e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function U(e,t,n){return!n&&e.__brush.emitter||new o(e,t)}function o(e,t){this.that=e;this.args=t;this.state=e.__brush;this.active=0}o.prototype={beforestart:function e(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function e(){if(this.starting)this.starting=false,this.emit("start");else this.emit("brush");return this},brush:function e(){this.emit("brush");return this},end:function e(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function e(t){gv(new LT(r,t,L.output(this.state.selection)),n.apply,n,[t,this.that,this.args])}};function s(){if(H&&!ov.touches)return;if(!I.apply(this,arguments))return;var t=this,n=ov.target.__data__.type,i=(j&&ov.metaKey?n="overlay":n)==="selection"?HT:j&&ov.altKey?GT:UT,a=L===XT?null:eB[n],r=L===YT?null:tB[n],o=oB(t),e=o.extent,s=o.selection,l=e[0][0],u,h,c=e[0][1],f,d,g=e[1][0],p,v,m=e[1][1],y,_,b=0,w=0,x,k=a&&r&&j&&ov.shiftKey,S,C,E=ov.touches?qT(ov.changedTouches[0].identifier):Cv,A=E(t),R=A,M=U(t,arguments,true).beforestart();if(n==="overlay"){if(s)x=true;o.selection=s=[[u=L===XT?l:A[0],f=L===YT?c:A[1]],[p=L===XT?g:u,y=L===YT?m:f]]}else{u=s[0][0];f=s[0][1];p=s[1][0];y=s[1][1]}h=u;d=f;v=p;_=y;var T=xv(t).attr("pointer-events","none");var B=T.selectAll(".overlay").attr("cursor",ZT[n]);if(ov.touches){M.moved=D;M.ended=O}else{var N=xv(ov.view).on("mousemove.brush",D,true).on("mouseup.brush",O,true);if(j)N.on("keydown.brush",z,true).on("keyup.brush",F,true);OT(ov.view)}IT();pm(t);V.call(t);M.start();function D(){var e=E(t);if(k&&!S&&!C){if(Math.abs(e[0]-R[0])>Math.abs(e[1]-R[1]))C=true;else S=true}R=e;x=true;jT();P()}function P(){var e;b=R[0]-A[0];w=R[1]-A[1];switch(i){case VT:case HT:{if(a)b=Math.max(l-u,Math.min(g-p,b)),h=u+b,v=p+b;if(r)w=Math.max(c-f,Math.min(m-y,w)),d=f+w,_=y+w;break}case UT:{if(a<0)b=Math.max(l-u,Math.min(g-u,b)),h=u+b,v=p;else if(a>0)b=Math.max(l-p,Math.min(g-p,b)),h=u,v=p+b;if(r<0)w=Math.max(c-f,Math.min(m-f,w)),d=f+w,_=y;else if(r>0)w=Math.max(c-y,Math.min(m-y,w)),d=f,_=y+w;break}case GT:{if(a)h=Math.max(l,Math.min(g,u-b*a)),v=Math.max(l,Math.min(g,p+b*a));if(r)d=Math.max(c,Math.min(m,f-w*r)),_=Math.max(c,Math.min(m,y+w*r));break}}if(v<h){a*=-1;e=u,u=p,p=e;e=h,h=v,v=e;if(n in JT)B.attr("cursor",ZT[n=JT[n]])}if(_<d){r*=-1;e=f,f=y,y=e;e=d,d=_,_=e;if(n in QT)B.attr("cursor",ZT[n=QT[n]])}if(o.selection)s=o.selection;if(S)h=s[0][0],v=s[1][0];if(C)d=s[0][1],_=s[1][1];if(s[0][0]!==h||s[0][1]!==d||s[1][0]!==v||s[1][1]!==_){o.selection=[[h,d],[v,_]];V.call(t);M.brush()}}function O(){IT();if(ov.touches){if(ov.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{zT(ov.view,x);N.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}T.attr("pointer-events","all");B.attr("cursor",ZT.overlay);if(o.selection)s=o.selection;if(sB(s))o.selection=null,V.call(t);M.end()}function z(){switch(ov.keyCode){case 16:{k=a&&r;break}case 18:{if(i===UT){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=GT;P()}break}case 32:{if(i===UT||i===GT){if(a<0)p=v-b;else if(a>0)u=h-b;if(r<0)y=_-w;else if(r>0)f=d-w;i=VT;B.attr("cursor",ZT.selection);P()}break}default:return}jT()}function F(){switch(ov.keyCode){case 16:{if(k){S=C=k=false;P()}break}case 18:{if(i===GT){if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=UT;P()}break}case 32:{if(i===VT){if(ov.altKey){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=GT}else{if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=UT}B.attr("cursor",ZT[n]);P()}break}default:return}jT()}}function l(){U(this,arguments).moved()}function u(){U(this,arguments).ended()}function h(){var e=this.__brush||{selection:null};e.extent=KT(t.apply(this,arguments));e.dim=L;return e}r.extent=function(e){return arguments.length?(t=typeof e==="function"?e:FT(KT(e)),r):t};r.filter=function(e){return arguments.length?(I=typeof e==="function"?e:FT(!!e),r):I};r.touchable=function(e){return arguments.length?(i=typeof e==="function"?e:FT(!!e),r):i};r.handleSize=function(e){return arguments.length?(a=+e,r):a};r.keyModifiers=function(e){return arguments.length?(j=!!e,r):j};r.on=function(){var e=n.on.apply(n,arguments);return e===n?r:e};return r}function cB(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function fB(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function dB(){}var gB=.7;var pB=1/gB;var vB="\\s*([+-]?\\d+)\\s*",mB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",yB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_B=/^#([0-9a-f]{3,8})$/,bB=new RegExp("^rgb\\("+[vB,vB,vB]+"\\)$"),wB=new RegExp("^rgb\\("+[yB,yB,yB]+"\\)$"),xB=new RegExp("^rgba\\("+[vB,vB,vB,mB]+"\\)$"),kB=new RegExp("^rgba\\("+[yB,yB,yB,mB]+"\\)$"),SB=new RegExp("^hsl\\("+[mB,yB,yB]+"\\)$"),CB=new RegExp("^hsla\\("+[mB,yB,yB,mB]+"\\)$");var EB={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};cB(dB,TB,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:AB,formatHex:AB,formatHsl:RB,formatRgb:MB,toString:MB});function AB(){return this.rgb().formatHex()}function RB(){return jB(this).formatHsl()}function MB(){return this.rgb().formatRgb()}function TB(e){var t,n;e=(e+"").trim().toLowerCase();return(t=_B.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?BB(t):n===3?new OB(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?NB(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?NB(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bB.exec(e))?new OB(t[1],t[2],t[3],1):(t=wB.exec(e))?new OB(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xB.exec(e))?NB(t[1],t[2],t[3],t[4]):(t=kB.exec(e))?NB(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=SB.exec(e))?IB(t[1],t[2]/100,t[3]/100,1):(t=CB.exec(e))?IB(t[1],t[2]/100,t[3]/100,t[4]):EB.hasOwnProperty(e)?BB(EB[e]):e==="transparent"?new OB(NaN,NaN,NaN,0):null}function BB(e){return new OB(e>>16&255,e>>8&255,e&255,1)}function NB(e,t,n,i){if(i<=0)e=t=n=NaN;return new OB(e,t,n,i)}function DB(e){if(!(e instanceof dB))e=TB(e);if(!e)return new OB;e=e.rgb();return new OB(e.r,e.g,e.b,e.opacity)}function PB(e,t,n,i){return arguments.length===1?DB(e):new OB(e,t,n,i==null?1:i)}function OB(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}cB(OB,PB,fB(dB,{brighter:function e(t){t=t==null?pB:Math.pow(pB,t);return new OB(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?gB:Math.pow(gB,t);return new OB(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){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:zB,formatHex:zB,formatRgb:FB,toString:FB}));function zB(){return"#"+LB(this.r)+LB(this.g)+LB(this.b)}function FB(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===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))+(e===1?")":", "+e+")")}function LB(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function IB(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new VB(e,t,n,i)}function jB(e){if(e instanceof VB)return new VB(e.h,e.s,e.l,e.opacity);if(!(e instanceof dB))e=TB(e);if(!e)return new VB;if(e instanceof VB)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n<i)*6;else if(n===r)o=(i-t)/s+2;else o=(t-n)/s+4;s/=l<.5?r+a:2-r-a;o*=60}else{s=l>0&&l<1?0:o}return new VB(o,s,l,e.opacity)}function HB(e,t,n,i){return arguments.length===1?jB(e):new VB(e,t,n,i==null?1:i)}function VB(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}cB(VB,HB,fB(dB,{brighter:function e(t){t=t==null?pB:Math.pow(pB,t);return new VB(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?gB:Math.pow(gB,t);return new VB(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new OB(UB(t>=240?t-240:t+120,r,a),UB(t,r,a),UB(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function UB(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var GB=[].slice;var WB={};function KB(e){this._size=e;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}KB.prototype=JB.prototype={constructor:KB,defer:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=GB.call(arguments,1);n.push(t);++this._waiting,this._tasks.push(n);qB(this);return this},abort:function e(){if(this._error==null)$B(this,new Error("abort"));return this},await:function e(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(e,t){n.apply(null,[e].concat(t))};ZB(this);return this},awaitAll:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=t;ZB(this);return this}};function qB(t){if(!t._start){try{YB(t)}catch(e){if(t._tasks[t._ended+t._active-1])$B(t,e);else if(!t._data)throw e}}}function YB(e){while(e._start=e._waiting&&e._active<e._size){var t=e._ended+e._active,n=e._tasks[t],i=n.length-1,a=n[i];n[i]=XB(e,t);--e._waiting,++e._active;n=a.apply(null,n);if(!e._tasks[t])continue;e._tasks[t]=n||WB}}function XB(n,i){return function(e,t){if(!n._tasks[i])return;--n._active,++n._ended;n._tasks[i]=null;if(n._error!=null)return;if(e!=null){$B(n,e)}else{n._data[i]=t;if(n._waiting)qB(n);else ZB(n)}}}function $B(e,t){var n=e._tasks.length,i;e._error=t;e._data=undefined;e._waiting=NaN;while(--n>=0){if(i=e._tasks[n]){e._tasks[n]=null;if(i.abort){try{i.abort()}catch(t){}}}}e._active=NaN;ZB(e)}function ZB(e){if(!e._active&&e._call){var t=e._data;e._data=undefined;e._call(e._error,t)}}function JB(e){if(e==null)e=Infinity;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new KB(e)}function QB(e){return function(){return e}}function eN(e,t,n){this.target=e;this.type=t;this.transform=n}function tN(e,t,n){this.k=e;this.x=t;this.y=n}tN.prototype={constructor:tN,scale:function e(t){return t===1?this:new tN(this.k*t,this.x,this.y)},translate:function e(t,n){return t===0&n===0?this:new tN(this.k,this.x+this.k*t,this.y+this.k*n)},apply:function e(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function e(t){return t*this.k+this.x},applyY:function e(t){return t*this.k+this.y},invert:function e(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function e(t){return(t-this.x)/this.k},invertY:function e(t){return(t-this.y)/this.k},rescaleX:function e(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function e(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function e(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var nN=new tN(1,0,0);iN.prototype=tN.prototype;function iN(e){while(!e.__zoom){if(!(e=e.parentNode))return nN}return e.__zoom}function aN(){ov.stopImmediatePropagation()}function rN(){ov.preventDefault();ov.stopImmediatePropagation()}function oN(){return!ov.ctrlKey&&!ov.button}function sN(){var e=this;if(e instanceof SVGElement){e=e.ownerSVGElement||e;if(e.hasAttribute("viewBox")){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}return[[0,0],[e.clientWidth,e.clientHeight]]}function lN(){return this.__zoom||nN}function uN(){return-ov.deltaY*(ov.deltaMode===1?.05:ov.deltaMode?1:.002)}function hN(){return navigator.maxTouchPoints||"ontouchstart"in this}function cN(e,t,n){var i=e.invertX(t[0][0])-n[0][0],a=e.invertX(t[1][0])-n[1][0],r=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function fN(){var s=oN,c=sN,d=cN,r=uN,t=hN,o=[0,Infinity],g=[[-Infinity,-Infinity],[Infinity,Infinity]],l=250,f=r_,n=Mv("start","zoom","end"),p,u,h=500,v=150,m=0;function y(e){e.property("__zoom",lN).on("wheel.zoom",a).on("mousedown.zoom",S).on("dblclick.zoom",C).filter(t).on("touchstart.zoom",E).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(e,t,n){var i=e.selection?e.selection():e;i.property("__zoom",lN);if(e!==i){x(e,t,n)}else{i.interrupt().each(function(){k(this,arguments).start().zoom(null,typeof t==="function"?t.apply(this,arguments):t).end()})}};y.scaleBy=function(e,n,t){y.scaleTo(e,function(){var e=this.__zoom.k,t=typeof n==="function"?n.apply(this,arguments):n;return e*t},t)};y.scaleTo=function(e,r,o){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=o==null?w(e):typeof o==="function"?o.apply(this,arguments):o,i=t.invert(n),a=typeof r==="function"?r.apply(this,arguments):r;return d(b(_(t,a),n,i),e,g)},o)};y.translateBy=function(e,t,n){y.transform(e,function(){return d(this.__zoom.translate(typeof t==="function"?t.apply(this,arguments):t,typeof n==="function"?n.apply(this,arguments):n),c.apply(this,arguments),g)})};y.translateTo=function(e,i,a,r){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=r==null?w(e):typeof r==="function"?r.apply(this,arguments):r;return d(nN.translate(n[0],n[1]).scale(t.k).translate(typeof i==="function"?-i.apply(this,arguments):-i,typeof a==="function"?-a.apply(this,arguments):-a),e,g)},r)};function _(e,t){t=Math.max(o[0],Math.min(o[1],t));return t===e.k?e:new tN(t,e.x,e.y)}function b(e,t,n){var i=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return i===e.x&&a===e.y?e:new tN(e.k,i,a)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,u,h){e.on("start.zoom",function(){k(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).end()}).tween("zoom",function(){var e=this,t=arguments,i=k(e,t),n=c.apply(e,t),a=h==null?w(n):typeof h==="function"?h.apply(e,t):h,r=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=e.__zoom,s=typeof u==="function"?u.apply(e,t):u,l=f(o.invert(a).concat(r/o.k),s.invert(a).concat(r/s.k));return function(e){if(e===1)e=s;else{var t=l(e),n=r/t[2];e=new tN(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function k(e,t,n){return!n&&e.__zooming||new i(e,t)}function i(e,t){this.that=e;this.args=t;this.active=0;this.extent=c.apply(e,t);this.taps=0}i.prototype={start:function e(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function e(t,n){if(this.mouse&&t!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function e(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function e(t){gv(new eN(y,t,this.that.__zoom),n.apply,n,[t,this.that,this.args])}};function a(){if(!s.apply(this,arguments))return;var e=k(this,arguments),t=this.__zoom,n=Math.max(o[0],Math.min(o[1],t.k*Math.pow(2,r.apply(this,arguments)))),i=Cv(this);if(e.wheel){if(e.mouse[0][0]!==i[0]||e.mouse[0][1]!==i[1]){e.mouse[1]=t.invert(e.mouse[0]=i)}clearTimeout(e.wheel)}else if(t.k===n)return;else{e.mouse=[i,t.invert(i)];pm(this);e.start()}rN();e.wheel=setTimeout(a,v);e.zoom("mouse",d(b(_(t,n),e.mouse[0],e.mouse[1]),e.extent,g));function a(){e.wheel=null;e.end()}}function S(){if(u||!s.apply(this,arguments))return;var n=k(this,arguments,true),e=xv(ov.view).on("mousemove.zoom",r,true).on("mouseup.zoom",o,true),t=Cv(this),i=ov.clientX,a=ov.clientY;OT(ov.view);aN();n.mouse=[t,this.__zoom.invert(t)];pm(this);n.start();function r(){rN();if(!n.moved){var e=ov.clientX-i,t=ov.clientY-a;n.moved=e*e+t*t>m}n.zoom("mouse",d(b(n.that.__zoom,n.mouse[0]=Cv(n.that),n.mouse[1]),n.extent,g))}function o(){e.on("mousemove.zoom mouseup.zoom",null);zT(ov.view,n.moved);rN();n.end()}}function C(){if(!s.apply(this,arguments))return;var e=this.__zoom,t=Cv(this),n=e.invert(t),i=e.k*(ov.shiftKey?.5:2),a=d(b(_(e,i),t,n),c.apply(this,arguments),g);rN();if(l>0)xv(this).transition().duration(l).call(x,a,t);else xv(this).call(y.transform,a)}function E(){if(!s.apply(this,arguments))return;var e=ov.touches,t=e.length,n=k(this,arguments,ov.changedTouches.length===t),i,a,r,o;aN();for(a=0;a<t;++a){r=e[a],o=Av(this,e,r.identifier);o=[o,this.__zoom.invert(o),r.identifier];if(!n.touch0)n.touch0=o,i=true,n.taps=1+!!p;else if(!n.touch1&&n.touch0[2]!==o[2])n.touch1=o,n.taps=0}if(p)p=clearTimeout(p);if(i){if(n.taps<2)p=setTimeout(function(){p=null},h);pm(this);n.start()}}function A(){if(!this.__zooming)return;var e=k(this,arguments),t=ov.changedTouches,n=t.length,i,a,r,o;rN();if(p)p=clearTimeout(p);e.taps=0;for(i=0;i<n;++i){a=t[i],r=Av(this,t,a.identifier);if(e.touch0&&e.touch0[2]===a.identifier)e.touch0[0]=r;else if(e.touch1&&e.touch1[2]===a.identifier)e.touch1[0]=r}a=e.that.__zoom;if(e.touch1){var s=e.touch0[0],l=e.touch0[1],u=e.touch1[0],h=e.touch1[1],c=(c=u[0]-s[0])*c+(c=u[1]-s[1])*c,f=(f=h[0]-l[0])*f+(f=h[1]-l[1])*f;a=_(a,Math.sqrt(c/f));r=[(s[0]+u[0])/2,(s[1]+u[1])/2];o=[(l[0]+h[0])/2,(l[1]+h[1])/2]}else if(e.touch0)r=e.touch0[0],o=e.touch0[1];else return;e.zoom("touch",d(b(a,r,o),e.extent,g))}function R(){if(!this.__zooming)return;var e=k(this,arguments),t=ov.changedTouches,n=t.length,i,a;aN();if(u)clearTimeout(u);u=setTimeout(function(){u=null},h);for(i=0;i<n;++i){a=t[i];if(e.touch0&&e.touch0[2]===a.identifier)delete e.touch0;else if(e.touch1&&e.touch1[2]===a.identifier)delete e.touch1}if(e.touch1&&!e.touch0)e.touch0=e.touch1,delete e.touch1;if(e.touch0)e.touch0[1]=this.__zoom.invert(e.touch0[0]);else{e.end();if(e.taps===2){var r=xv(this).on("dblclick.zoom");if(r)r.apply(this,arguments)}}}y.wheelDelta=function(e){return arguments.length?(r=typeof e==="function"?e:QB(+e),y):r};y.filter=function(e){return arguments.length?(s=typeof e==="function"?e:QB(!!e),y):s};y.touchable=function(e){return arguments.length?(t=typeof e==="function"?e:QB(!!e),y):t};y.extent=function(e){return arguments.length?(c=typeof e==="function"?e:QB([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),y):c};y.scaleExtent=function(e){return arguments.length?(o[0]=+e[0],o[1]=+e[1],y):[o[0],o[1]]};y.translateExtent=function(e){return arguments.length?(g[0][0]=+e[0][0],g[1][0]=+e[1][0],g[0][1]=+e[0][1],g[1][1]=+e[1][1],y):[[g[0][0],g[0][1]],[g[1][0],g[1][1]]]};y.constrain=function(e){return arguments.length?(d=e,y):d};y.duration=function(e){return arguments.length?(l=+e,y):l};y.interpolate=function(e){return arguments.length?(f=e,y):f};y.on=function(){var e=n.on.apply(n,arguments);return e===n?y:e};y.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,y):Math.sqrt(m)};return y}var dN=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function gN(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function pN(e,t){return t={exports:{}},e(t,t.exports),t.exports}var vN=pN(function(n){(function(e,t){{n.exports=t()}})((typeof window==="undefined"?"undefined":F(window))==="object"?window:dN,function(){var a=void 0;function t(e){if(!(this instanceof t))return new t(e);this._LRUCacheState=new n(e)}var e=t.prototype;e.get=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return;o(t.linkedList,n);return t.data[e]};e.set=function(e,t){var n=this._LRUCacheState;var i=n.hash[e];if(t===a)return this;if(!i){n.hash[e]=new r(e);n.linkedList.length+=1;i=n.hash[e]}o(n.linkedList,i);n.data[e]=t;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};e.update=function(e,t){if(this.has(e))this.set(e,t(this.get(e)));return this};e.remove=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return this;if(n===t.linkedList.head)t.linkedList.head=n.p;if(n===t.linkedList.end)t.linkedList.end=n.n;s(n.n,n.p);delete t.hash[e];delete t.data[e];t.linkedList.length-=1;return this};e.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};e.info=function(){var e=this._LRUCacheState;return{capacity:e.capacity,length:e.linkedList.length}};e.keys=function(){var e=[];var t=this._LRUCacheState.linkedList.head;while(t){e.push(t.key);t=t.p}return e};e.has=function(e){return!!this._LRUCacheState.hash[e]};e.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};e.popStale=function(){var e=this.staleKey();if(!e)return null;var t=[e,this._LRUCacheState.data[e]];this.remove(e);return t};function n(e){this.capacity=e>0?+e:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE;this.data=Object.create?Object.create(null):{};this.hash=Object.create?Object.create(null):{};this.linkedList=new i}function i(){this.length=0;this.head=null;this.end=null}function r(e){this.key=e;this.p=null;this.n=null}function o(e,t){if(t===e.head)return;if(!e.end){e.end=t}else if(e.end===t){e.end=t.n}s(t.n,t.p);s(t,e.head);e.head=t;e.head.n=null}function s(e,t){if(e===t)return;if(e)e.p=t;if(t)t.n=e}return t})});function mN(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function yN(e){return e=mN(Math.abs(e)),e?e[1]:NaN}function _N(s,l){return function(e,t){var n=e.length,i=[],a=0,r=s[0],o=0;while(n>0&&r>0){if(o+r+1>t)r=Math.max(1,t-o);i.push(e.substring(n-=r,n+r));if((o+=r+1)>t)break;r=s[a=(a+1)%s.length]}return i.reverse().join(l)}}function bN(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var wN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xN(e){if(!(t=wN.exec(e)))throw new Error("invalid format: "+e);var t;return new kN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}xN.prototype=kN.prototype;function kN(e){this.fill=e.fill===undefined?" ":e.fill+"";this.align=e.align===undefined?">":e.align+"";this.sign=e.sign===undefined?"-":e.sign+"";this.symbol=e.symbol===undefined?"":e.symbol+"";this.zero=!!e.zero;this.width=e.width===undefined?undefined:+e.width;this.comma=!!e.comma;this.precision=e.precision===undefined?undefined:+e.precision;this.trim=!!e.trim;this.type=e.type===undefined?"":e.type+""}kN.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 SN(e){e:for(var t=e.length,n=1,i=-1,a;n<t;++n){switch(e[n]){case".":i=a=n;break;case"0":if(i===0)i=n;a=n;break;default:if(!+e[n])break e;if(i>0)i=0;break}}return i>0?e.slice(0,i)+e.slice(a+1):e}var CN;function EN(e,t){var n=mN(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(CN=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+mN(e,Math.max(0,t+r-1))[0]}function AN(e,t){var n=mN(e,t);if(!n)return e+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}var RN={"%":function e(t,n){return(t*100).toFixed(n)},b:function e(t){return Math.round(t).toString(2)},c:function e(t){return t+""},d:function e(t){return Math.round(t).toString(10)},e:function e(t,n){return t.toExponential(n)},f:function e(t,n){return t.toFixed(n)},g:function e(t,n){return t.toPrecision(n)},o:function e(t){return Math.round(t).toString(8)},p:function e(t,n){return AN(t*100,n)},r:AN,s:EN,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function MN(e){return e}var TN=Array.prototype.map,BN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function NN(e){var x=e.grouping===undefined||e.thousands===undefined?MN:_N(TN.call(e.grouping,Number),e.thousands+""),i=e.currency===undefined?"":e.currency[0]+"",a=e.currency===undefined?"":e.currency[1]+"",k=e.decimal===undefined?".":e.decimal+"",S=e.numerals===undefined?MN:bN(TN.call(e.numerals,String)),r=e.percent===undefined?"%":e.percent+"",C=e.minus===undefined?"-":e.minus+"",E=e.nan===undefined?"NaN":e.nan+"";function o(e){e=xN(e);var u=e.fill,h=e.align,c=e.sign,t=e.symbol,f=e.zero,d=e.width,g=e.comma,p=e.precision,v=e.trim,m=e.type;if(m==="n")g=true,m="g";else if(!RN[m])p===undefined&&(p=12),v=true,m="g";if(f||u==="0"&&h==="=")f=true,u="0",h="=";var y=t==="$"?i:t==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=t==="$"?a:/[%p]/.test(m)?r:"";var b=RN[m],w=/[defgprs%]/.test(m);p=p===undefined?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function n(e){var t=y,n=_,i,a,r;if(m==="c"){n=b(e)+n;e=""}else{e=+e;var o=e<0||1/e<0;e=isNaN(e)?E:b(Math.abs(e),p);if(v)e=SN(e);if(o&&+e===0&&c!=="+")o=false;t=(o?c==="("?c:C:c==="-"||c==="("?"":c)+t;n=(m==="s"?BN[8+CN/3]:"")+n+(o&&c==="("?")":"");if(w){i=-1,a=e.length;while(++i<a){if(r=e.charCodeAt(i),48>r||r>57){n=(r===46?k+e.slice(i+1):e.slice(i))+n;e=e.slice(0,i);break}}}}if(g&&!f)e=x(e,Infinity);var s=t.length+e.length+n.length,l=s<d?new Array(d-s+1).join(u):"";if(g&&f)e=x(l+e,l.length?d-n.length:Infinity),l="";switch(h){case"<":e=t+e+n+l;break;case"=":e=t+l+e+n;break;case"^":e=l.slice(0,s=l.length>>1)+t+e+n+l.slice(s);break;default:e=l+t+e+n;break}return S(e)}n.toString=function(){return e+""};return n}function t(e,t){var n=o((e=xN(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(yN(t)/3)))*3,a=Math.pow(10,-i),r=BN[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var DN={"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 PN(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){PN=function e(t){return typeof t}}else{PN=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return PN(e)}var ON=function e(t,n){return parseFloat(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function zN(e,t,n){var i=0;if(e){if(e<0)e*=-1;i=1+Math.floor(1e-12+Math.log(e)/Math.LN10);i=Math.max(-24,Math.min(24,Math.floor((i-1)/3)*3))}var a=n[8+i/3];return{number:ON(a.scale(e),t),symbol:a.symbol}}function FN(e,t){var n=Math.pow(10,Math.abs(8-t)*3);return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function LN(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(e))e*=1;else return"N/A";var i=e<0;var a=e.toString().split(".")[0].replace("-","").length,r=PN(t)==="object"?t:DN[t]||DN["en-US"],o=r.suffixes.map(FN);var s=r.delimiters.decimal||".",l=r.separator||"",u=r.delimiters.thousands||",";var h=NN({currency:r.currency||["$",""],decimal:s,grouping:r.grouping||[3],thousands:u});var c;if(n)c=h.format(n)(e);else if(e===0)c="0";else if(a>=3){var f=zN(h.format(".3r")(e),2,o);var d=parseFloat(f.number).toString().replace(".",s);var g=f.symbol;c="".concat(d).concat(l).concat(g)}else if(a===3)c=h.format(",f")(e);else if(e<1&&e>-1)c=h.format(".2g")(e);else c=h.format(".3g")(e);return"".concat(i&&c.charAt(0)!=="-"?"-":"").concat(c).replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}function IN(e){if(e.constructor===Date)return e;else if(e.constructor===Number&&"".concat(e).length>5&&e%1===0)return new Date(e);var t="".concat(e);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(t),i=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(t);if(n){var a=n[1];if(a.indexOf("-")===0)t=t.replace(a,a.substr(1));var r=new Date(t);r.setFullYear(a);return r}else if(i){var o=i[1];if(o.indexOf("-")===0)t=t.replace(o,o.substr(1));var s=new Date(t);s.setFullYear(o);return s}else if(!t.includes("/")&&!t.includes(" ")&&(!t.includes("-")||!t.indexOf("-"))){var l=new Date("".concat(t,"/01/01"));l.setFullYear(e);return l}else return new Date(t)}var jN={"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 HN(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function VN(e){return KN(e)||WN(e)||GN(e)||UN()}function UN(){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 GN(e,t){if(!e)return;if(typeof e==="string")return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}function WN(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function KN(e){if(Array.isArray(e))return qN(e)}function qN(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function YN(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){YN=function e(t){return typeof t}}else{YN=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return YN(e)}function XN(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function $N(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function ZN(e,t,n){if(t)$N(e.prototype,t);if(n)$N(e,n);return e}function JN(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)QN(e,t)}function QN(e,t){QN=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return QN(e,t)}function eD(a){var r=iD();return function e(){var t=aD(a),n;if(r){var i=aD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return tD(this,n)}}function tD(e,t){if(t&&(YN(t)==="object"||typeof t==="function")){return t}return nD(e)}function nD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function iD(){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(e){return false}}function aD(e){aD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return aD(e)}var rD=function(e){JN(i,e);var t=eD(i);function i(){var n;XN(this,i);n=t.call(this);n._align="middle";n._barConfig={stroke:"#000","stroke-width":1};n._domain=[0,10];n._duration=600;n._gridConfig={stroke:"#ccc","stroke-width":1};n._gridLog=false;n._height=400;n._labelOffset=true;n.orient("bottom");n._outerBounds={width:0,height:0,x:0,y:0};n._padding=5;n._paddingInner=.1;n._paddingOuter=.1;n._rotateLabels=false;n._scale="linear";n._scalePadding=.5;n._shape="Line";n._shapeConfig={fill:"#000",height:function e(t){return t.tick?8:0},label:function e(t){return t.text},labelBounds:function e(t){return t.labelBounds},labelConfig:{fontColor:"#000",fontFamily:(new jE).fontFamily(),fontResize:false,fontSize:Bg(10),padding:0,textAnchor:function e(){var t=lE();return n._orient==="left"?t?"start":"end":n._orient==="right"?t?"end":"start":n._rotateLabels?n._orient==="bottom"?"end":"start":"middle"},verticalAlign:function e(){return n._orient==="bottom"?"top":n._orient==="top"?"bottom":"middle"}},r:function e(t){return t.tick?4:0},stroke:"#000",strokeWidth:1,width:function e(t){return t.tick?8:0}};n._tickSize=5;n._tickSpecifier=undefined;n._tickSuffix="normal";n._tickUnit=0;n._timeLocale=undefined;n._titleClass=new jE;n._titleConfig={fontSize:12,textAnchor:"middle"};n._width=400;return n}ZN(i,[{key:"_barPosition",value:function e(t){var n=this._position,i=n.height,a=n.x,r=n.y,o=n.opposite,s=this._getDomain(),l=this._margin[o],u=["top","left"].includes(this._orient)?this._outerBounds[r]+this._outerBounds[i]-l:this._outerBounds[r]+l;var h=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding()*-1:0;var c=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding()*-1:0;t.call(xn,this._barConfig).attr("".concat(a,"1"),this._getPosition(s[0])-h).attr("".concat(a,"2"),this._getPosition(s[s.length-1])+c).attr("".concat(r,"1"),u).attr("".concat(r,"2"),u)}},{key:"_getDomain",value:function e(){var t=[];if(this._d3ScaleNegative)t=this._d3ScaleNegative.domain();if(this._d3Scale)t=t.concat(this._d3Scale.domain());var n=["band","ordinal","point"].includes(this._scale)?t:Be(t);return t[0]>t[1]?n.reverse():n}},{key:"_getPosition",value:function e(t){return t<0&&this._d3ScaleNegative?this._d3ScaleNegative(t):this._d3Scale(t)}},{key:"_getRange",value:function e(){var t=[];if(this._d3ScaleNegative)t=this._d3ScaleNegative.range();if(this._d3Scale)t=t.concat(this._d3Scale.range());return t[0]>t[1]?Be(t).reverse():Be(t)}},{key:"_getTicks",value:function e(){var t=sk().domain([10,400]).range([10,50]);var n=[];if(this._d3ScaleNegative){var i=this._d3ScaleNegative.range();var a=i[1]-i[0];n=this._d3ScaleNegative.ticks(Math.floor(a/t(a)))}if(this._d3Scale){var r=this._d3Scale.range();var o=r[1]-r[0];n=n.concat(this._d3Scale.ticks(Math.floor(o/t(o))))}return n}},{key:"_gridPosition",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this._position,a=i.height,r=i.x,o=i.y,s=i.opposite,l=this._margin[s],u=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[a]-l:this._outerBounds[o]+l,h=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),c=["top","left"].includes(this._orient)?l:-l,f=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function e(t){return h(t.id)+f};t.call(xn,this._gridConfig).attr("".concat(r,"1"),d).attr("".concat(r,"2"),d).attr("".concat(o,"1"),u).attr("".concat(o,"2"),n?u:u+c)}},{key:"render",value:function e(t){var d=this,n;if(this._select===void 0){this.select(xv("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var i=this._timeLocale||jN[this._locale]||jN["en-US"];fC(i).format();var s=lC("%a %d"),l=lC("%I %p"),u=lC(".%L"),h=lC("%I:%M"),c=lC("%b"),f=lC(":%S"),g=lC("%b %d"),p=lC("%Y");var a=this._position,r=a.width,v=a.height,m=a.x,y=a.y,_=a.horizontal,b=a.opposite,o="d3plus-Axis-clip-".concat(this._uuid),w=["top","left"].includes(this._orient),x=this._padding,k=this._select,C=[x,this["_".concat(r)]-x],S=sb().duration(this._duration);var E=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[r]:this._shapeConfig.strokeWidth;var A=typeof E!=="function"?function(){return E}:E;var R=this._margin={top:0,right:0,bottom:0,left:0};var M,T,B;var N=this._tickFormat?this._tickFormat:function(e){if(d._scale==="time"){return(bk(e)<e?u:wk(e)<e?f:xk(e)<e?h:kk(e)<e?l:Nk(e)<e?Ck(e)<e?s:g:Dk(e)<e?c:p)(e)}else if(["band","ordinal","point"].includes(d._scale)){return e}if(isNaN(e)){return e}else if(d._scale==="linear"&&d._tickSuffix==="smallest"){var t=YN(d._locale)==="object"?d._locale:DN[d._locale];var n=t.separator,i=t.suffixes;var a=e>=1e3?i[d._tickUnit+8]:"";var r=e/Math.pow(10,3*d._tickUnit);var o=LN(r,t,",.".concat(r.toString().length,"r"));return"".concat(o).concat(n).concat(a)}else{return LN(e,d._locale)}};function D(){var a=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;T=e?e.slice():[undefined,undefined];var t=C[0],n=C[1];if(this._range){if(this._range[0]!==undefined)t=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(T[0]===undefined||T[0]<t)T[0]=t;if(T[1]===undefined||T[1]>n)T[1]=n;var i=n-t;if(this._scale==="ordinal"&&this._domain.length>T.length){if(e===this._range){var r=this._domain.length+1;T=Ne(r).map(function(e){return T[0]+i*(e/(r-1))}).slice(1,r);T=T.map(function(e){return e-T[0]/2})}else{var o=this._domain.length;var s=T[1]-T[0];T=Ne(o).map(function(e){return T[0]+s*(e/(o-1))})}}else if(e===this._range){var l=sk().domain([10,400]).range([10,50]);var u=this._scale==="time"?this._domain.map(IN):this._domain;var h=pe(u[0],u[1],Math.floor(i/l(i)));B=(this._ticks?this._scale==="time"?this._ticks.map(IN):this._ticks:h).slice();M=(this._labels?this._scale==="time"?this._labels.map(IN):this._labels:h).slice();var c=M.length;if(c){var f=Math.ceil(i/c/2);T=[T[0]+f,T[1]-f]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=GC[d]().domain(this._scale==="time"?this._domain.map(IN):this._domain).range(T);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){g[0]=Math.abs(g[g.length-1])<=1?1e-6:1;if(g[g.length-1]<0)g[0]*=-1}else if(g[g.length-1]===0){g[g.length-1]=Math.abs(g[0])<=1?1e-6:1;if(g[0]<0)g[g.length-1]*=-1}var p=this._d3Scale.range();if(g[0]<0&&g[g.length-1]<0){this._d3ScaleNegative=this._d3Scale.copy().domain(g).range(p);this._d3Scale=null}else if(g[0]>0&&g[g.length-1]>0){this._d3Scale.domain(g).range(p)}else{var v=Zx().domain([1,g[g[1]>0?1:0]]).range([0,1]);var m=v(Math.abs(g[g[1]<0?1:0]));var y=m/(m+1)*(p[1]-p[0]);if(g[0]>0)y=p[1]-p[0]-y;this._d3ScaleNegative=this._d3Scale.copy();(g[0]<0?this._d3Scale:this._d3ScaleNegative).domain([Math.sign(g[1]),g[1]]).range([p[0]+y,p[1]]);(g[0]<0?this._d3ScaleNegative:this._d3Scale).domain([g[0],Math.sign(g[0])]).range([p[0],p[0]+y])}}B=(this._ticks?this._scale==="time"?this._ticks.map(IN):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();M=(this._labels?this._scale==="time"?this._labels.map(IN):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():B).slice();if(this._scale==="log"){var _=M.filter(function(e){return Math.abs(e).toString().charAt(0)==="1"&&(a._d3Scale?e!==-1:e!==1)});if(_.length>2){M=_;B=_}else if(M.length>=10){M=M.filter(function(e){return e%5===0||N(e).substr(-1)==="1"})}}if(this._scale==="time"){B=B.map(Number);M=M.map(Number)}B=B.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});M=M.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var b=M.filter(function(e){return e>=1e3});if(b.length>0){var w=Math.min.apply(Math,VN(b));var x=1;while(x&&x<7){var k=Math.pow(10,3*x);if(w/k>=1){this._tickUnit=x;x+=1}else{break}}}}var S=[];this._availableTicks=B;B.forEach(function(e,t){var n=A({id:e,tick:true},t);if(a._shape==="Circle")n*=2;var i=a._getPosition(e);if(!S.length||Math.abs(Rg(i,S)-i)>n*2)S.push(i);else S.push(false)});B=B.filter(function(e,t){return S[t]!==false});this._visibleTicks=B}D.bind(this)();function P(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=e.i,i=e.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var a=n-t<0?U.length===1||!this._range?C[0]:(i-U[n+t].position)/2-i:i-(i-U[n-t].position)/2;var r=Math.abs(i-a);var o=n+t>U.length-1?U.length===1||!this._range?C[1]:(i-U[n-t].position)/2-i:i-(i-U[n+t].position)/2;var s=Math.abs(i-o);return Oe([r,s])*2}}if(this._title){var O=this._titleConfig,z=O.fontFamily,F=O.fontSize,L=O.lineHeight;var I=AE().fontFamily(typeof z==="function"?z():z).fontSize(typeof F==="function"?F():F).lineHeight(typeof L==="function"?L():L).width(T[T.length-1]-T[0]-x*2).height(this["_".concat(v)]-this._tickSize-x*2);var j=I(this._title).lines.length;R[this._orient]=j*I.lineHeight()+x}var H=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true}):this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[v]==="function"?this._shapeConfig[v]({tick:true}):this._shapeConfig[v]:this._tickSize,V=A({tick:true});if(typeof H==="function")H=ve(B.map(H));if(this._shape==="Rect")H/=2;if(typeof V==="function")V=ve(B.map(V));if(this._shape!=="Circle")V/=2;var U=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});function G(e){var t=e.d,n=e.i,i=e.fF,a=e.fS,r=e.rotate,o=e.space;var s=r?"width":"height",l=r?"height":"width";var u=Oe([this._maxSize,this._width]);var h=Oe([this._maxSize,this._height]);var c=AE().fontFamily(i).fontSize(a).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(t,n):undefined)[l](_?o:u-H-x-this._margin.left-this._margin.right)[s](_?h-H-x-this._margin.top-this._margin.bottom:o);var f=c(N(t));f.lines=f.lines.filter(function(e){return e!==""});f.width=f.lines.length?Math.ceil(ve(f.widths))+a/4:0;if(f.width%2)f.width++;f.height=f.lines.length?Math.ceil(f.lines.length*c.lineHeight())+a/4:0;if(f.height%2)f.height++;return f}U=U.map(function(e){e.rotate=d._labelRotation;e.space=P.bind(d)(e);var t=G.bind(d)(e);return Object.assign(t,e)});this._rotateLabels=_&&this._labelRotation===undefined?U.some(function(e){return e.truncated}):this._labelRotation;if(this._rotateLabels){U=U.map(function(e){e.rotate=true;var t=G.bind(d)(e);return Object.assign(e,t)})}var W=[0,0];for(var K=0;K<2;K++){var q=U[K?U.length-1:0];if(!q)break;var Y=q.height,X=q.position,$=q.rotate,Z=q.width;var J=K?C[1]:C[0];var Q=($||!_?Y:Z)/2;var ee=K?X+Q-J:X-Q-J;W[K]=ee}var te=T[0];var ne=T[T.length-1];var ie=[te-W[0],ne-W[1]];if(this._range){if(this._range[0]!==undefined)ie[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)ie[1]=this._range[this._range.length-1]}if(ie[0]!==te||ie[1]!==ne){D.bind(this)(ie);U=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});U=U.map(function(e){e.rotate=d._rotateLabels;e.space=P.bind(d)(e);var t=G.bind(d)(e);return Object.assign(t,e)})}var ae=ve(U,function(e){return e.height})||0;this._rotateLabels=_&&this._labelRotation===undefined?U.some(function(e){var t=e.i,n=e.height,i=e.position,a=e.truncated;var r=U[t-1];return a||t&&r.position+r.height/2>i-n/2}):this._labelRotation;if(this._rotateLabels){var re=0;U=U.map(function(e){e.space=P.bind(d)(e,2);var t=G.bind(d)(e);e=Object.assign(e,t);var n=U[e.i-1];if(!n){re=1}else if(n.position+n.height/2>e.position){if(re){e.offset=n.width;re=0}else re=1}return e})}var oe=this._labelOffset?ve(U,function(e){return e.offset||0}):0;U.forEach(function(e){return e.offset=e.offset?oe:0});var se=this._shape==="Line"?0:H;var le=this._outerBounds=(n={},HN(n,v,(ve(U,function(e){return Math.ceil(e[e.rotate||!_?"width":"height"]+e.offset)})||0)+(U.length?x:0)),HN(n,r,C[C.length-1]-C[0]),HN(n,m,C[0]),n);le[v]=ve([this._minSize,le[v]]);R[this._orient]+=H;R[b]=this._gridSize!==undefined?ve([this._gridSize,se]):this["_".concat(v)]-R[this._orient]-le[v]-x;le[v]+=R[b]+R[this._orient];le[y]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(v)]-le[v]-this._padding:this["_".concat(v)]/2-le[v]/2;var ue=gb("g#d3plus-Axis-".concat(this._uuid),{parent:k});this._group=ue;var he=gb("g.grid",{parent:ue}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?M:B:[]).map(function(e){return{id:e}}),function(e){return e.id});he.exit().transition(S).attr("opacity",0).call(this._gridPosition.bind(this)).remove();he.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(he).transition(S).attr("opacity",1).call(this._gridPosition.bind(this));var ce=M.filter(function(e,t){return U[t].lines.length&&!B.includes(e)});var fe=U.some(function(e){return e.rotate});var de=B.concat(ce).map(function(t){var e;var n=U.find(function(e){return e.d===t});var i=d._getPosition(t);var a=n?n.space:0;var r=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var l=_?a:le.width-R[d._position.opposite]-H-R[d._orient]+x;var u=R[b],h=(H+s)*(w?-1:1),c=w?le[y]+le[v]-u:le[y]+u;var f=(e={id:t,labelBounds:fe&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?h+x+(n.width-o*r)/2:h-x*2-(n.width+o*r)/2,width:n.width,height:n.height}:{x:_?-a/2:d._orient==="left"?-l-x+h:h+x,y:_?d._orient==="bottom"?h+x:h-x-ae:-a/2,width:_?a:l,height:_?ae:a},rotate:n?n.rotate:false,size:M.includes(t)?h:0,text:M.includes(t)?N(t):false,tick:B.includes(t)},HN(e,m,i+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),HN(e,y,c),e);return f});if(this._shape==="Line"){de=de.concat(de.map(function(e){var t=Object.assign({},e);t[y]+=e.size;return t}))}(new iT[this._shape]).data(de).duration(this._duration).labelConfig({ellipsis:function e(t){return t&&t.length?"".concat(t,"..."):""},rotate:function e(t){return t.rotate?-90:0}}).select(gb("g.ticks",{parent:ue}).node()).config(this._shapeConfig).render();var ge=ue.selectAll("line.bar").data([null]);ge.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(ge).transition(S).attr("opacity",1).call(this._barPosition.bind(this));this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(R[this._orient]).rotate(this._orient==="left"?-90:this._orient==="right"?90:0).select(gb("g.d3plus-Axis-title",{parent:ue}).node()).text(function(e){return e.text}).verticalAlign("middle").width(T[T.length-1]-T[0]).x(_?T[0]:this._orient==="left"?le.x+R.left/2-(T[T.length-1]-T[0])/2:le.x+le.width-R.right/2-(T[T.length-1]-T[0])/2).y(_?this._orient==="bottom"?le.y+le.height-R.bottom:le.y:T[0]+(T[T.length-1]-T[0])/2-R[this._orient]/2).config(this._titleConfig).render();this._lastScale=this._getPosition.bind(this);if(t)setTimeout(t,this._duration+100);return this}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"barConfig",value:function e(t){return arguments.length?(this._barConfig=Object.assign(this._barConfig,t),this):this._barConfig}},{key:"domain",value:function e(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"grid",value:function e(t){return arguments.length?(this._grid=t,this):this._grid}},{key:"gridConfig",value:function e(t){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,t),this):this._gridConfig}},{key:"gridLog",value:function e(t){return arguments.length?(this._gridLog=t,this):this._gridLog}},{key:"gridSize",value:function e(t){return arguments.length?(this._gridSize=t,this):this._gridSize}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"labels",value:function e(t){return arguments.length?(this._labels=t,this):this._labels}},{key:"labelOffset",value:function e(t){return arguments.length?(this._labelOffset=t,this):this._labelOffset}},{key:"labelRotation",value:function e(t){return arguments.length?(this._labelRotation=t,this):this._labelRotation}},{key:"maxSize",value:function e(t){return arguments.length?(this._maxSize=t,this):this._maxSize}},{key:"minSize",value:function e(t){return arguments.length?(this._minSize=t,this):this._minSize}},{key:"orient",value:function e(t){if(arguments.length){var n=["top","bottom"].includes(t),i={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:i[t]};return this._orient=t,this}return this._orient}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"paddingInner",value:function e(t){return arguments.length?(this._paddingInner=t,this):this._paddingInner}},{key:"paddingOuter",value:function e(t){return arguments.length?(this._paddingOuter=t,this):this._paddingOuter}},{key:"range",value:function e(t){return arguments.length?(this._range=t,this):this._range}},{key:"scale",value:function e(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"scalePadding",value:function e(t){return arguments.length?(this._scalePadding=t,this):this._scalePadding}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=t,this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=wn(this._shapeConfig,t),this):this._shapeConfig}},{key:"tickFormat",value:function e(t){return arguments.length?(this._tickFormat=t,this):this._tickFormat}},{key:"ticks",value:function e(t){return arguments.length?(this._ticks=t,this):this._ticks}},{key:"tickSize",value:function e(t){return arguments.length?(this._tickSize=t,this):this._tickSize}},{key:"tickSpecifier",value:function e(t){return arguments.length?(this._tickSpecifier=t,this):this._tickSpecifier}},{key:"tickSuffix",value:function e(t){return arguments.length?(this._tickSuffix=t,this):this._tickSuffix}},{key:"timeLocale",value:function e(t){return arguments.length?(this._timeLocale=t,this):this._timeLocale}},{key:"title",value:function e(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,t),this):this._titleConfig}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return i}(Ag);function oD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){oD=function e(t){return typeof t}}else{oD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return oD(e)}function sD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function lD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function uD(e,t,n){if(t)lD(e.prototype,t);if(n)lD(e,n);return e}function hD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)cD(e,t)}function cD(e,t){cD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return cD(e,t)}function fD(a){var r=pD();return function e(){var t=vD(a),n;if(r){var i=vD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return dD(this,n)}}function dD(e,t){if(t&&(oD(t)==="object"||typeof t==="function")){return t}return gD(e)}function gD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function pD(){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(e){return false}}function vD(e){vD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return vD(e)}var mD=function(e){hD(n,e);var t=fD(n);function n(){var e;sD(this,n);e=t.call(this);e._buttonStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px",margin:"0 5px"};e._data=[];e._text=mn("text");e._value=mn("value");return e}uD(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(xv("body").append("div").node());var t=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";t=t.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Button").merge(t);var a=t.selectAll("button").data(this._data,function(e,t){return n._value(e,t)});a.exit().remove();a=a.enter().append("button").attr("class","d3plus-Button").attr("type","button").merge(a).call(Bb,this._buttonStyle).html(function(e,t){return n._text(e,t)});for(var r in this._on){if({}.hasOwnProperty.call(this._on,r))a.on(r,this._on[r])}return this}},{key:"buttonStyle",value:function e(t){return arguments.length?(this._buttonStyle=t,this):this._buttonStyle}},{key:"container",value:function e(t){return arguments.length?(this._container=xv(t),this):this._container}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Bg(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Ag);function yD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){yD=function e(t){return typeof t}}else{yD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return yD(e)}function _D(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function bD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function wD(e,t,n){if(t)bD(e.prototype,t);if(n)bD(e,n);return e}function xD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)kD(e,t)}function kD(e,t){kD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return kD(e,t)}function SD(a){var r=AD();return function e(){var t=RD(a),n;if(r){var i=RD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return CD(this,n)}}function CD(e,t){if(t&&(yD(t)==="object"||typeof t==="function")){return t}return ED(e)}function ED(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function AD(){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(e){return false}}function RD(e){RD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return RD(e)}var MD=function(e){xD(n,e);var t=SD(n);function n(){var e;_D(this,n);e=t.call(this);e._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};e._legendStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","padding-right":"5px"};e._options=[];e._radioStyle={"margin-right":"10px"};e._text=mn("text");e._value=mn("value");return e}wD(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(xv("body").append("div").node());var r=this;var t=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var i=this._container.node().tagName.toLowerCase()==="foreignobject";t=t.enter().append(i?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Radio").merge(t);var o=t.selectAll("label").data(this._options,function(e,t){return n._value(e,t)});o.exit().each(function(){xv(this.nextSibling).remove()}).remove();o=o.enter().append("label").attr("class","d3plus-Label").attr("for",function(e,t){return"".concat(n._uuid,"-").concat(n._value(e,t))}).each(function(e,t){var n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("name","d3plus-Radio-".concat(r._uuid));n.setAttribute("id","".concat(r._uuid,"-").concat(r._value(e,t)));n.setAttribute("value",r._value(e,t));this.parentNode.insertBefore(n,this.nextSibling)}).merge(o).call(Bb,this._labelStyle).html(function(e,t){return n._text(e,t)}).each(function(e,t){var n=r._checked===void 0?!t:"".concat(r._value(e,t))==="".concat(r._checked);xv(this).classed("active",n).style("cursor",n?"default":"pointer");var i=xv(this.nextSibling).property("checked",n).call(Bb,r._radioStyle).style("cursor",n?"default":"pointer").on("change.d3plus",function(){r.checked(this.value);o.each(function(e,t){var n="".concat(r._value(e,t))==="".concat(r._checked);xv(this).classed("active",n).style("cursor",n?"default":"pointer");xv(this.nextSibling).style("cursor",n?"default":"pointer")})});for(var a in r._on){if({}.hasOwnProperty.call(r._on,a))i.on(a,r._on[a])}});var a=t.selectAll("legend#d3plus-Legend-".concat(this._uuid)).data(this._legend?[0]:[]);a.exit().remove();a.enter().insert("legend",".d3plus-Label").attr("id","d3plus-Legend-".concat(this._uuid)).attr("class","d3plus-Legend").merge(a).call(Bb,this._legendStyle).html(this._legend);return this}},{key:"checked",value:function e(t){return arguments.length?(this._checked=t,this):this._checked}},{key:"container",value:function e(t){return arguments.length?(this._container=xv(t),this):this._container}},{key:"labelStyle",value:function e(t){return arguments.length?(this._labelStyle=t,this):this._labelStyle}},{key:"legend",value:function e(t){return arguments.length?(this._legend=t,this):this._legend}},{key:"legendStyle",value:function e(t){return arguments.length?(this._legendStyle=t,this):this._legendStyle}},{key:"options",value:function e(t){return arguments.length?(this._options=t,this):this._options}},{key:"radioStyle",value:function e(t){return arguments.length?(this._radioStyle=t,this):this._radioStyle}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Bg(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Ag);function TD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){TD=function e(t){return typeof t}}else{TD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return TD(e)}function BD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ND(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function DD(e,t,n){if(t)ND(e.prototype,t);if(n)ND(e,n);return e}function PD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)OD(e,t)}function OD(e,t){OD=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return OD(e,t)}function zD(a){var r=ID();return function e(){var t=jD(a),n;if(r){var i=jD(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return FD(this,n)}}function FD(e,t){if(t&&(TD(t)==="object"||typeof t==="function")){return t}return LD(e)}function LD(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function ID(){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(e){return false}}function jD(e){jD=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return jD(e)}var HD=function(e){PD(n,e);var t=zD(n);function n(){var e;BD(this,n);e=t.call(this);e._labelStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","margin-right":"5px"};e._options=[];e._optionStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px"};e._selectStyle={background:"#fafafa",border:"1px solid #ccc","border-radius":"0","font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px",outline:"0",padding:"3px 5px 4px"};e._text=mn("text");e._value=mn("value");return e}DD(n,[{key:"render",value:function e(){var n=this;if(this._container===void 0)this.container(r("body").append("div").node());var t=this;var i=this._container.selectAll("div#d3plus-Form-".concat(this._uuid)).data([0]);var a=this._container.node().tagName.toLowerCase()==="foreignobject";i=i.enter().append(a?"xhtml:div":"div").attr("id","d3plus-Form-".concat(this._uuid)).attr("class","d3plus-Form d3plus-Form-Select").merge(i);var r=i.selectAll("select#d3plus-Select-".concat(this._uuid)).data([0]);r=r.enter().append("select").attr("id","d3plus-Select-".concat(this._uuid)).attr("class","d3plus-Select").merge(r).call(Bb,this._selectStyle).on("change.d3plus",function(){t.selected(this.value)});for(var o in this._on){if({}.hasOwnProperty.call(this._on,o))r.on(o,this._on[o])}var s=r.selectAll("option").data(this._options,function(e,t){return n._value(e,t)});s.exit().remove();s.enter().append("option").attr("class","d3plus-Option").merge(s).call(Bb,this._optionStyle).attr("value",function(e,t){return n._value(e,t)}).html(function(e,t){return n._text(e,t)}).property("selected",function(e,t){return n._selected===void 0?!t:"".concat(n._value(e,t))==="".concat(n._selected)});var l=i.selectAll("label#d3plus-Label-".concat(this._uuid)).data(this._label?[0]:[]);l.exit().remove();l.enter().insert("label","#d3plus-Select-".concat(this._uuid)).attr("id","d3plus-Label-".concat(this._uuid)).attr("class","d3plus-Label").attr("for","d3plus-Select-".concat(this._uuid)).merge(l).call(Bb,this._labelStyle).html(this._label);return this}},{key:"container",value:function e(t){return arguments.length?(this._container=xv(t),this):this._container}},{key:"label",value:function e(t){return arguments.length?(this._label=t,this):this._label}},{key:"labelStyle",value:function e(t){return arguments.length?(this._labelStyle=t,this):this._labelStyle}},{key:"options",value:function e(t){return arguments.length?(this._options=t,this):this._options}},{key:"optionStyle",value:function e(t){return arguments.length?(this._optionStyle=t,this):this._optionStyle}},{key:"selected",value:function e(t){return arguments.length?(this._selected=t,this):this._selected}},{key:"selectStyle",value:function e(t){return arguments.length?(this._selectStyle=t,this):this._selectStyle}},{key:"text",value:function e(t){return arguments.length?(this._text=typeof t==="function"?t:Bg(t),this):this._text}},{key:"value",value:function e(t){return arguments.length?(this._value=t,this):this._value}}]);return n}(Ag);function VD(e){return e.slice().sort(function(e,t){return e-t})}function UD(e){var t,n=0;for(var i=0;i<e.length;i++){if(i===0||e[i]!==t){t=e[i];n++}}return n}function GD(e,t){var n=[];for(var i=0;i<e;i++){var a=[];for(var r=0;r<t;r++){a.push(0)}n.push(a)}return n}function WD(e,t,n,i){var a;if(e>0){var r=(n[t]-n[e-1])/(t-e+1);a=i[t]-i[e-1]-(t-e+1)*r*r}else a=i[t]-n[t]*n[t]/(t+1);if(a<0)return 0;return a}function KD(e,t,n,i,a,r,o){if(e>t)return;var s=Math.floor((e+t)/2);i[n][s]=i[n-1][s-1];a[n][s]=s;var l=n;if(e>n)l=Math.max(l,a[n][e-1]||0);l=Math.max(l,a[n-1][s]||0);var u=s-1;if(t<i.length-1)u=Math.min(u,a[n][t+1]||0);for(var h=u;h>=l;--h){var c=WD(h,s,r,o);if(c+i[n-1][l-1]>=i[n][s])break;var f=WD(l,s,r,o);var d=f+i[n-1][l-1];if(d<i[n][s]){i[n][s]=d;a[n][s]=l}l++;var g=c+i[n-1][h-1];if(g<i[n][s]){i[n][s]=g;a[n][s]=h}}KD(e,s-1,n,i,a,r,o);KD(s+1,t,n,i,a,r,o)}function qD(e,t,n){var i=t[0]?t[0].length:0;var a=e[Math.floor(i/2)];var r=[];var o=[];for(var s=0,l=void 0;s<i;++s){l=e[s]-a;if(s===0){r.push(l);o.push(l*l)}else{r.push(r[s-1]+l);o.push(o[s-1]+l*l)}t[0][s]=WD(0,s,r,o);n[0][s]=0}for(var u=1;u<t.length;++u){var h=i-1;if(u<t.length-1)h=u;KD(h,i-1,u,t,n,r,o)}}function YD(e,t){if(t>e.length){throw new Error("Cannot generate more classes than there are data values")}var n=VD(e);var i=UD(n);if(i===1){return[n]}var a=GD(t,n.length),r=GD(t,n.length);qD(n,r,a);var o=a[0]?a[0].length-1:0;var s=[];for(var l=a.length-1;l>=0;l--){var u=a[l][o];s[l]=n.slice(u,o+1);if(l>0)o=u-1}return s}function XD(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){XD=function e(t){return typeof t}}else{XD=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return XD(e)}function $D(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function ZD(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function JD(e,t,n){if(t)ZD(e.prototype,t);if(n)ZD(e,n);return e}function QD(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)eP(e,t)}function eP(e,t){eP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return eP(e,t)}function tP(a){var r=aP();return function e(){var t=rP(a),n;if(r){var i=rP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return nP(this,n)}}function nP(e,t){if(t&&(XD(t)==="object"||typeof t==="function")){return t}return iP(e)}function iP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function aP(){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(e){return false}}function rP(e){rP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return rP(e)}var oP=function(e){QD(n,e);var t=tP(n);function n(){var s;$D(this,n);s=t.call(this);s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=mn("id");s._label=mn("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=Bg("Rect");s._shapes=[];s._shapeConfig={fill:mn("color"),height:Bg(10),hitArea:function e(t,n){var i=s._lineData[n],a=ve([i.height,i.shapeHeight]);return{width:i.width+i.shapeWidth,height:a,x:-i.shapeWidth/2,y:-a/2}},labelBounds:function e(t,n){var i=s._lineData[n];var a=i.shapeWidth;if(i.shape==="Circle")a-=i.shapeR;var r=ve([i.shapeHeight,i.height]);return{width:i.width,height:r,x:a,y:-r/2}},labelConfig:{fontColor:Bg("#444"),fontFamily:(new jE).fontFamily(),fontResize:false,fontSize:Bg(10),verticalAlign:"middle"},opacity:1,r:Bg(5),width:Bg(10),x:function e(t,n){var i=s._lineData[n];var a=i.y;var r=s._align==="left"||s._align==="right"&&s._direction==="column"?0:s._align==="center"?(s._outerBounds.width-s._rowWidth(s._lineData.filter(function(e){return a===e.y})))/2:s._outerBounds.width-s._rowWidth(s._lineData.filter(function(e){return a===e.y}));var o=s._lineData.slice(0,n).filter(function(e){return a===e.y});return s._rowWidth(o)+s._padding*(o.length?i.sentence?2:1:0)+s._outerBounds.x+i.shapeWidth/2+r},y:function e(t,n){var i=s._lineData[n];return i.y+s._titleHeight+s._outerBounds.y+ve(s._lineData.filter(function(e){return i.y===e.y}).map(function(e){return e.height}).concat(s._data.map(function(e,t){return s._fetchConfig("height",e,t)})))/2}};s._titleClass=new jE;s._titleConfig={};s._verticalAlign="middle";s._width=400;return s}JD(n,[{key:"_fetchConfig",value:function e(t,n,i){var a=this._shapeConfig[t]!==undefined?this._shapeConfig[t]:this._shapeConfig.labelConfig[t];if(!a&&t==="lineHeight")return this._fetchConfig("fontSize",n,i)*1.4;return typeof a==="function"?a(n,i):a}},{key:"_rowHeight",value:function e(t){return ve(t.map(function(e){return e.height}).concat(t.map(function(e){return e.shapeHeight})))+this._padding}},{key:"_rowWidth",value:function e(i){var a=this;return O(i.map(function(e,t){var n=a._padding*(t===i.length-1?0:e.width?2:1);return e.shapeWidth+e.width+n}))}},{key:"render",value:function e(t){var c=this;if(this._select===void 0)this.select(xv("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=gb("g.d3plus-Legend",{parent:this._select});this._titleGroup=gb("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=gb("g.d3plus-Legend-shape",{parent:this._group});var f=this._height;this._titleHeight=0;this._titleWidth=0;if(this._title){var n=this._titleConfig.fontFamily||this._titleClass.fontFamily()(),i=this._titleConfig.fontSize||this._titleClass.fontSize()();var a=a=this._titleConfig.lineHeight||this._titleClass.lineHeight();a=a?a():i*1.4;var r=AE().fontFamily(n).fontSize(i).lineHeight(a).width(this._width).height(this._height)(this._title);this._titleHeight=a+r.lines.length+this._padding;this._titleWidth=ve(r.widths);f-=this._titleHeight}this._lineData=this._data.map(function(e,t){var n=c._label(e,t);var i=c._shape(e,t);var a=c._fetchConfig("r",e,t);var r={data:e,i:t,id:c._id(e,t),shape:i,shapeR:a,shapeWidth:i==="Circle"?a*2:c._fetchConfig("width",e,t),shapeHeight:i==="Circle"?a*2:c._fetchConfig("height",e,t),y:0};if(!n){r.sentence=false;r.words=[];r.height=0;r.width=0;return r}var o=c._fetchConfig("fontFamily",e,t),s=c._fetchConfig("lineHeight",e,t),l=c._fetchConfig("fontSize",e,t);var u=f-(c._data.length+1)*c._padding,h=c._width;r=Object.assign(r,AE().fontFamily(o).fontSize(l).lineHeight(s).width(h).height(u)(n));r.width=Math.ceil(ve(r.lines.map(function(e){return ZC(e,{"font-family":o,"font-size":l})})))+l*.75;r.height=Math.ceil(r.lines.length*(s+1));r.og={height:r.height,width:r.width};r.f=o;r.s=l;r.lh=s;return r});var o;var l=this._width-this._padding*2;o=this._rowWidth(this._lineData);if(this._direction==="column"||o>l){var u=1,h=[];var d=ve(this._lineData.map(function(e){return e.words.length}));this._wrapLines=function(){var t=this;u++;if(u>d)return;var o=u===1?this._lineData.slice():this._lineData.filter(function(e){return e.width+e.shapeWidth+t._padding*(e.width?2:1)>l&&e.words.length>=u}).sort(function(e,t){return t.sentence.length-e.sentence.length});if(o.length&&f>o[0].height*u){var s=false;var e=function e(t){var n=o[t];var i=n.og.height*u,a=n.og.width*(1.5*(1/u));var r=AE().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(a).height(i)(n.sentence);if(!r.truncated){n.width=Math.ceil(ve(r.lines.map(function(e){return ZC(e,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=r.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;n<o.length;n++){var i=e(n);if(i==="break")break}if(!s)this._wrapRows()}else{h=[];return}};this._wrapRows=function(){h=[];var e=1,t=0;for(var n=0;n<this._lineData.length;n++){var i=this._lineData[n],a=i.width+this._padding*(i.width?2:1)+i.shapeWidth;if(O(h.map(function(e){return ve(e,function(e){return ve([e.height,e.shapeHeight])})}))>f){h=[];break}if(a>l){h=[];this._wrapLines();break}else if(t+a<l){t+=a}else if(this._direction!=="column"){t=a;e++}if(!h[e-1])h[e-1]=[];h[e-1].push(i);if(this._direction==="column"){t=0;e++}}};this._wrapRows();if(!h.length||O(h,this._rowHeight.bind(this))+this._padding>f){o=O(this._lineData.map(function(e){return e.shapeWidth+c._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(h.length&&O(h,this._rowHeight.bind(this))+this._padding<f){h.forEach(function(e,t){e.forEach(function(e){if(t){e.y=O(h.slice(0,t),c._rowHeight.bind(c))}})});o=ve(h,this._rowWidth.bind(this))}}var g=ve(this._lineData,function(e,t){return ve([e.height,c._fetchConfig("height",e.data,t)])+e.y})+this._titleHeight,p=ve([o,this._titleWidth]);this._outerBounds.width=p;this._outerBounds.height=g;var v=this._padding,m=this._padding;if(this._align==="center")v=(this._width-p)/2;else if(this._align==="right")v=this._width-this._padding-p;if(this._verticalAlign==="middle")m=(this._height-g)/2;else if(this._verticalAlign==="bottom")m=this._height-this._padding-g;this._outerBounds.x=v;this._outerBounds.y=m;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 y=Tg.bind(this)(this._shapeConfig,"legend"),_={id:function e(t){return t.id},label:function e(t){return t.label},lineHeight:function e(t){return t.lH}};var b=this._data.map(function(e,t){var n={__d3plus__:true,data:e,i:t,id:c._id(e,t),label:c._lineData[t].width?c._label(e,t):false,lH:c._fetchConfig("lineHeight",e,t),shape:c._shape(e,t)};return n});this._shapes=[];["Circle","Rect"].forEach(function(t){c._shapes.push((new iT[t]).parent(c).data(b.filter(function(e){return e.shape===t})).duration(c._duration).labelConfig({padding:0}).select(c._shapeGroup.node()).verticalAlign("top").config(wn({},y,_)).render())});if(t)setTimeout(t,this._duration+100);return this}},{key:"active",value:function e(t){this._shapes.forEach(function(e){return e.active(t)});return this}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"direction",value:function e(t){return arguments.length?(this._direction=t,this):this._direction}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"hover",value:function e(t){this._shapes.forEach(function(e){return e.hover(t)});return this}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Bg(t),this):this._label}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Bg(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=wn(this._shapeConfig,t),this):this._shapeConfig}},{key:"title",value:function e(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=wn(this._titleConfig,t),this):this._titleConfig}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=t,this):this._verticalAlign}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return n}(Ag);function sP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){sP=function e(t){return typeof t}}else{sP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return sP(e)}function lP(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function uP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function hP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function cP(e,t,n){if(t)hP(e.prototype,t);if(n)hP(e,n);return e}function fP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)dP(e,t)}function dP(e,t){dP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return dP(e,t)}function gP(a){var r=mP();return function e(){var t=yP(a),n;if(r){var i=yP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return pP(this,n)}}function pP(e,t){if(t&&(sP(t)==="object"||typeof t==="function")){return t}return vP(e)}function vP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function mP(){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(e){return false}}function yP(e){yP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return yP(e)}var _P=function(e){fP(n,e);var t=gP(n);function n(){var e;uP(this,n);e=t.call(this);e._axisClass=new rD;e._axisConfig={gridSize:0,shapeConfig:{labelConfig:{fontColor:"#222"}},titleConfig:{fontSize:12}};e._axisTest=new rD;e._align="middle";e._buckets=5;e._bucketAxis=false;e._centered=true;e._colorMax="#0C8040";e._colorMid="#f7f7f7";e._colorMin="#b22200";e._data=[];e._duration=600;e._height=200;e._labelClass=new jE;e._legendClass=new oP;e._legendConfig={shapeConfig:{labelConfig:{fontColor:"#222"},stroke:"#444",strokeWidth:1}};e._midpoint=0;e._orient="bottom";e._outerBounds={width:0,height:0,x:0,y:0};e._padding=5;e._rectClass=(new JR).parent(vP(e));e._rectConfig={stroke:"#444",strokeWidth:1};e._scale="linear";e._size=10;e._value=mn("value");e._width=400;return e}cP(n,[{key:"render",value:function e(t){var n=this;if(this._select===void 0)this.select(xv("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var i=["bottom","top"].includes(this._orient);var a=i?"height":"width",r=i?"width":"height",o=i?"x":"y",s=i?"y":"x";this._group=gb("g.d3plus-ColorScale",{parent:this._select});var l=this._data.map(this._value).sort(function(e,t){return e-t});var u=Be(l);var h=u[0]<this._midpoint;var c=u[1]>this._midpoint;var f=h&&c;var d=this._color,g,p;if(d&&!(d instanceof Array)){d=Ne(0,this._buckets,1).map(function(e){return XC(d,(e+1)/n._buckets)}).reverse()}if(this._scale==="jenks"){var v=this._data.map(this._value).filter(function(e){return e!==null&&typeof e==="number"});var m=Oe([d?d.length:this._buckets,v.length]);var y=[];if(f&&this._centered){var _=Math.floor(m/2);var b=m%2;var w=v.filter(function(e){return e<n._midpoint});var x=Te(w);var k=v.concat(this._midpoint).filter(function(e){return e>=n._midpoint});var S=Te(k);var C=x>S?1:0;var E=S>x?1:0;var A=YD(w,_+b*C);var R=YD(k,_+b*E);y=A.concat(R)}else{y=YD(v,m)}p=Pe(y.map(function(e,t){return t===y.length-1?[e[0],e[e.length-1]]:[e[0]]}));var M=new Set(p);if(p.length!==M.size){g=Array.from(M)}if(!d){if(f){d=[this._colorMin,this._colorMid,this._colorMax];var T=p.slice(0,m).filter(function(e,t){return e<n._midpoint&&p[t+1]<=n._midpoint});var B=p.slice(0,m).filter(function(e,t){return e<=n._midpoint&&p[t+1]>n._midpoint});var N=p.slice(0,m).filter(function(e,t){return e>n._midpoint&&p[t+1]>n._midpoint});var D=T.map(function(e,t){return!t?d[0]:XC(d[0],t/T.length)});var P=B.map(function(){return d[1]});var O=N.map(function(e,t){return t===N.length-1?d[2]:XC(d[2],1-(t+1)/N.length)});d=D.concat(P).concat(O)}else{d=Ne(0,this._buckets,1).map(function(e){return XC(n._colorMax,e/n._buckets)}).reverse()}}if(v.length<=m){d=d.slice(m-v.length)}this._colorScale=hk().domain(p).range(["black"].concat(d).concat(d[d.length-1]))}else{var z;if(f&&!d){var F=Math.floor(this._buckets/2);var L=Ne(0,F,1).map(function(e){return!e?n._colorMin:XC(n._colorMin,e/F)});var I=(this._buckets%2?[0]:[]).map(function(){return n._colorMid});var j=Ne(0,F,1).map(function(e){return!e?n._colorMax:XC(n._colorMax,e/F)}).reverse();d=L.concat(I).concat(j);var H=(d.length-1)/2;z=[u[0],this._midpoint,u[1]];z=Ne(u[0],this._midpoint,-(u[0]-this._midpoint)/H).concat(Ne(this._midpoint,u[1],(u[1]-this._midpoint)/H)).concat([u[1]])}else{if(!d){if(this._scale==="buckets"||this._scale==="quantile"){d=Ne(0,this._buckets,1).map(function(e){return XC(h?n._colorMin:n._colorMax,e/n._buckets)});if(c)d=d.reverse()}else{d=h?[this._colorMin,XC(this._colorMin,.8)]:[XC(this._colorMax,.8),this._colorMax]}}if(this._scale==="quantile"){var V=1/(d.length-1);z=Ne(0,1+V/2,V).map(function(e){return De(l,e)})}else if(f&&this._color&&this._centered){var U=(this._midpoint-u[0])/Math.floor(d.length/2);var G=(u[1]-this._midpoint)/Math.floor(d.length/2);var W=Ne(u[0],this._midpoint,U);var K=Ne(this._midpoint,u[1]+G/2,G);z=W.concat(K)}else{var q=(u[1]-u[0])/(d.length-1);z=Ne(u[0],u[1]+q/2,q)}}if(this._scale==="buckets"||this._scale==="quantile"){p=z.concat([z[z.length-1]])}else if(this._scale==="log"){var Y=z.filter(function(e){return e<0});if(Y.length){var X=Y[0];var $=Y.map(function(e){return-Math.pow(Math.abs(X),e/X)});Y.forEach(function(e,t){z[z.indexOf(e)]=$[t]})}var Z=z.filter(function(e){return e>0});if(Z.length){var J=Z[Z.length-1];var Q=Z.map(function(e){return Math.pow(J,e/J)});Z.forEach(function(e,t){z[z.indexOf(e)]=Q[t]})}if(z.includes(0))z[z.indexOf(0)]=1}this._colorScale=Ix().domain(z).range(d)}var ee=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var te=sb().duration(this._duration);var ne={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:te,update:{opacity:1}};var ie=gb("g.d3plus-ColorScale-labels",Object.assign({condition:ee},ne));var ae=gb("g.d3plus-ColorScale-Rect",Object.assign({condition:ee},ne));var re=gb("g.d3plus-ColorScale-legend",Object.assign({condition:!ee},ne));if(ee){var oe;var se={x:0,y:0};var le=wn({domain:i?u:u.reverse(),duration:this._duration,height:this._height,labels:g||p,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:p,width:this._width},this._axisConfig);var ue=wn({height:this["_".concat(a)]/2,width:this["_".concat(r)]/2},this._labelConfig||this._axisConfig.titleConfig);this._labelClass.config(ue);var he=[];if(i&&this._labelMin){var ce={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(ce["font-family"]instanceof Array)ce["font-family"]=ce["font-family"][0];var fe=ZC(this._labelMin,ce);if(fe&&fe<this["_".concat(r)]/2){he.push(this._labelMin);fe+=this._padding;if(i)se.x+=fe;le[r]-=fe}}if(i&&this._labelMax){var de={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(de["font-family"]instanceof Array)de["font-family"]=de["font-family"][0];var ge=ZC(this._labelMax,de);if(ge&&ge<this["_".concat(r)]/2){he.push(this._labelMax);ge+=this._padding;if(!i)se.y+=ge;le[r]-=ge}}this._axisTest.select(gb("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(le).duration(0).render();var pe=this._axisTest.outerBounds();this._outerBounds[r]=this["_".concat(r)]-this._padding*2;this._outerBounds[a]=pe[a]+this._size;this._outerBounds[o]=this._padding;this._outerBounds[s]=this._padding;if(this._align==="middle")this._outerBounds[s]=(this["_".concat(a)]-this._outerBounds[a])/2;else if(this._align==="end")this._outerBounds[s]=this["_".concat(a)]-this._padding-this._outerBounds[a];var ve=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(le.padding||this._axisClass.padding());var me="translate(".concat(se.x+(i?0:ve),", ").concat(se.y+(i?ve:0),")");this._axisClass.select(gb("g.d3plus-ColorScale-axis",wn(ne,{condition:true,enter:{transform:me},update:{transform:me}})).node()).config(le).align("start").render();var ye=this._axisTest._getPosition.bind(this._axisTest);var _e=this._axisTest._getRange();var be=this._group.selectAll("defs").data([0]);var we=be.enter().append("defs");we.append("linearGradient").attr("id","gradient-".concat(this._uuid));be=we.merge(be);be.select("linearGradient").attr("".concat(o,"1"),i?"0%":"100%").attr("".concat(o,"2"),i?"100%":"0%").attr("".concat(s,"1"),"0%").attr("".concat(s,"2"),"0%");var xe=be.select("linearGradient").selectAll("stop").data(i?d:d);var ke=this._colorScale.domain();var Se=Ix().domain(_e).range(i?[0,100]:[100,0]);xe.enter().append("stop").merge(xe).attr("offset",function(e,t){return"".concat(Se(ye(ke[t])),"%")}).attr("stop-color",String);var Ce=function e(t,n){var i=Math.abs(ye(p[n+1])-ye(t));return i||2};var Ee=wn((oe={duration:this._duration,fill:p?function(e){return n._colorScale(e)}:"url(#gradient-".concat(this._uuid,")")},lP(oe,o,p?function(e,t){return ye(e)+Ce(e,t)/2-(["left","right"].includes(n._orient)?Ce(e,t):0)}:_e[0]+(_e[1]-_e[0])/2+se[o]),lP(oe,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?pe[a]:0)+this._size/2+se[s]),lP(oe,r,p?Ce:_e[1]-_e[0]),lP(oe,a,this._size),oe),this._rectConfig);this._rectClass.data(p?p.slice(0,p.length-1):[0]).id(function(e,t){return t}).select(ae.node()).config(Ee).render();ue.height=this._outerBounds[a];ue.width=this._outerBounds[r];this._labelClass.config(ue).data(he).select(ie.node()).x(function(e){return e===n._labelMax?Ee.x+Ee.width/2+n._padding:n._outerBounds.x}).y(function(e){return Ee.y-n._labelClass.fontSize()(e)/2}).text(function(e){return e}).rotate(i?0:this._orient==="right"?90:-90).render()}else{gb("g.d3plus-ColorScale-axis",Object.assign({condition:ee},ne));var Ae=this._axisConfig.tickFormat?this._axisConfig.tickFormat:LN;var Re=p.reduce(function(e,t,n){if(n!==p.length-1){var i=p[n+1];e.push({color:d[n],id:t===i?"".concat(Ae(t),"+"):"".concat(Ae(t)," - ").concat(Ae(i))})}return e},[]);var Me=wn({align:i?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:i?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:wn({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:i?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Re).select(re.node()).config(Me).render();this._outerBounds=this._legendClass.outerBounds()}if(t)setTimeout(t,this._duration+100);return this}},{key:"axisConfig",value:function e(t){return arguments.length?(this._axisConfig=wn(this._axisConfig,t),this):this._axisConfig}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"buckets",value:function e(t){return arguments.length?(this._buckets=t,this):this._buckets}},{key:"bucketAxis",value:function e(t){return arguments.length?(this._bucketAxis=t,this):this._bucketAxis}},{key:"centered",value:function e(t){return arguments.length?(this._centered=t,this):this._centered}},{key:"color",value:function e(t){return arguments.length?(this._color=t,this):this._color}},{key:"colorMax",value:function e(t){return arguments.length?(this._colorMax=t,this):this._colorMax}},{key:"colorMid",value:function e(t){return arguments.length?(this._colorMid=t,this):this._colorMid}},{key:"colorMin",value:function e(t){return arguments.length?(this._colorMin=t,this):this._colorMin}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=t,this):this._labelConfig}},{key:"labelMin",value:function e(t){return arguments.length?(this._labelMin=t,this):this._labelMin}},{key:"labelMax",value:function e(t){return arguments.length?(this._labelMax=t,this):this._labelMax}},{key:"legendConfig",value:function e(t){return arguments.length?(this._legendConfig=wn(this._legendConfig,t),this):this._legendConfig}},{key:"midpoint",value:function e(t){return arguments.length?(this._midpoint=t,this):this._midpoint}},{key:"orient",value:function e(t){return arguments.length?(this._orient=t,this):this._orient}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=wn(this._rectConfig,t),this):this._rectConfig}},{key:"scale",value:function e(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"size",value:function e(t){return arguments.length?(this._size=t,this):this._size}},{key:"value",value:function e(t){return arguments.length?(this._value=typeof t==="function"?t:Bg(t),this):this._value}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return n}(Ag);function bP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){bP=function e(t){return typeof t}}else{bP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return bP(e)}function wP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function xP(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function kP(e,t,n){if(t)xP(e.prototype,t);if(n)xP(e,n);return e}function SP(e,t,n){if(typeof Reflect!=="undefined"&&Reflect.get){SP=Reflect.get}else{SP=function e(t,n,i){var a=CP(t,n);if(!a)return;var r=Object.getOwnPropertyDescriptor(a,n);if(r.get){return r.get.call(i)}return r.value}}return SP(e,t,n||e)}function CP(e,t){while(!Object.prototype.hasOwnProperty.call(e,t)){e=NP(e);if(e===null)break}return e}function EP(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)AP(e,t)}function AP(e,t){AP=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return AP(e,t)}function RP(a){var r=BP();return function e(){var t=NP(a),n;if(r){var i=NP(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return MP(this,n)}}function MP(e,t){if(t&&(bP(t)==="object"||typeof t==="function")){return t}return TP(e)}function TP(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function BP(){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(e){return false}}function NP(e){NP=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return NP(e)}var DP=function(e){EP(m,e);var t=RP(m);function m(){var n;wP(this,m);n=t.call(this);n._barConfig=Object.assign({},n._barConfig,{"stroke-width":function e(){return n._buttonBehaviorCurrent==="buttons"?0:1}});n._brushing=true;n._brushFilter=function(){return!ov.button&&ov.detail<2};n._buttonAlign="middle";n._buttonBehavior="auto";n._buttonPadding=10;n._buttonHeight=30;n._domain=[2001,2010];n._gridSize=0;n._handleConfig={fill:"#444"};n._handleSize=6;n._height=100;n._labelOffset=false;n._on={};n.orient("bottom");n._scale="time";n._selectionConfig={fill:"#777","stroke-width":0};n._shape="Rect";n._shapeConfig=Object.assign({},n._shapeConfig,{labelBounds:function e(t){return n._buttonBehaviorCurrent==="buttons"?{x:t.labelBounds.x,y:-5,width:t.labelBounds.width,height:n._buttonHeight}:t.labelBounds},fill:function e(){return n._buttonBehaviorCurrent==="buttons"?"#EEE":"#444"},height:function e(t){return n._buttonBehaviorCurrent==="buttons"?n._buttonHeight:t.tick?10:0},width:function e(t){return n._buttonBehaviorCurrent==="buttons"?n._ticksWidth/n._availableTicks.length:t.tick?n._domain.map(function(e){return IN(e).getTime()}).includes(t.id)?2:1:0},y:function e(t){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:t.y}});n._snapping=true;return n}kP(m,[{key:"_brushBrush",value:function e(){if(ov.sourceEvent&&ov.sourceEvent.offsetX&&ov.selection!==null&&(!this._brushing||this._snapping)){var t=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(t))}this._brushStyle();if(this._on.brush)this._on.brush(this._selection)}},{key:"_brushEnd",value:function e(){if(!ov.sourceEvent)return;var t=this._updateDomain();this._brushStyle();if(this._brushing||!this._snapping)this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(t));if(this._on.end)this._on.end(this._selection)}},{key:"_brushStart",value:function e(){if(ov.sourceEvent!==null&&(!this._brushing||this._snapping)){var t=this._updateDomain();this._brushGroup.call(this._brush.move,this._updateBrushLimit(t))}this._brushStyle();if(this._on.start)this._on.start()}},{key:"_brushStyle",value:function e(){var t=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[t]==="function"?this._shapeConfig[t]({tick:true}):this._shapeConfig[t]:this._tickSize;var i=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer");var a=this._brushGroup.selectAll(".selection").call(xn,this._selectionConfig).attr("height",n);var r=this._brushGroup.selectAll(".handle").call(xn,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;r.attr("y",o);i.attr("x",this._marginLeft).attr("width",this._ticksWidth);a.attr("y",o)}}},{key:"_updateDomain",value:function e(){var t=Cv(this._select.node())[0];var n=ov.selection&&this._brushing?ov.selection:[t,t];if(this._buttonBehaviorCurrent==="ticks")n=n.map(this._d3Scale.invert);n=n.map(Number);if(ov.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=ov.selection.map(function(e){return Math.abs(e-ov.sourceEvent.offsetX)});n=i[1]<=i[0]?[ov.selection[0],ov.sourceEvent.offsetX].sort(function(e,t){return e-t}):[ov.sourceEvent.offsetX,ov.selection[1]].sort(function(e,t){return e-t})}var a=this._buttonBehaviorCurrent==="ticks"?this._availableTicks.map(Number):this._d3Scale.range();if(this._buttonBehaviorCurrent==="ticks"){n[0]=IN(Rg(n[0],a));n[1]=IN(Rg(n[1],a))}else{n[0]=Rg(n[0],a);n[1]=Rg(n[1],a)}var r=+n[0]===+n[1];if(ov.type==="brush"||ov.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?r?n[0]:n:r?IN(this._availableTicks[a.indexOf(n[0])]):[IN(this._availableTicks[a.indexOf(n[0])]),IN(this._availableTicks[a.indexOf(n[1])])]}return n}},{key:"_updateBrushLimit",value:function e(t){var n=this._buttonBehaviorCurrent==="ticks"?t.map(IN).map(this._d3Scale):t;if(n[0]===n[1]){n[0]-=.1;n[1]+=.1}if(this._buttonBehaviorCurrent==="buttons"){var i=.5*(this._ticksWidth/this._availableTicks.length-this._handleSize);n[0]-=i;n[1]+=i}return n}},{key:"render",value:function e(t){var s=this;var n=this._position,i=n.height,a=n.y;if(this._buttonBehavior!=="ticks"){var l=this._ticks?this._ticks.map(IN):this._domain.map(IN);var u=RC().domain(l).range([0,this._width]);l=this._ticks?l:u.ticks();if(!this._tickFormat)this._tickFormat=u.tickFormat(l.length-1,this._tickSpecifier);var h=0;l.forEach(function(e,t){var n=s._shapeConfig.labelConfig.fontFamily(e,t),i=s._shapeConfig.labelConfig.fontSize(e,t);var a=AE().fontFamily(n).fontSize(i).lineHeight(s._shapeConfig.lineHeight?s._shapeConfig.lineHeight(e,t):undefined);var r=a(u.tickFormat(l.length-1,s._tickSpecifier)(e));var o=r.lines.length?Math.ceil(ve(r.lines.map(function(e){return ZC(e,{"font-family":n,"font-size":i})})))+i/4:0;if(o%2)o++;if(h<o)h=o+2*s._buttonPadding});this._ticksWidth=h*l.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 r=RC().domain(this._domain.map(IN)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(IN):Array.from(Array(r[r.length-1]-r[0]+1),function(e,t){return r[0]+t}).map(IN);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 c=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:c-o]}if(this._ticks)this._domain=this._buttonBehaviorCurrent==="ticks"?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(IN);this._labels=this._ticks;SP(NP(m.prototype),"render",this).call(this,t);var f=this._outerBounds[a],d=this._d3Scale.range();var g=this._brush=lB().extent([[d[0],f],[d[d.length-1],f+this._outerBounds[i]]]).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 p=this._buttonBehaviorCurrent==="ticks"?this._availableTicks[this._availableTicks.length-1]:d[d.length-1];var v=this._selection===void 0?[p,p]:this._selection instanceof Array?this._buttonBehaviorCurrent==="buttons"?this._selection.map(function(e){return d[s._ticks.map(Number).indexOf(+e)]}).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(v);this._brushGroup=gb("g.brushGroup",{parent:this._group});this._brushGroup.call(g).transition(this._transition).call(g.move,this._buttonBehaviorCurrent==="ticks"?this._updateBrushLimit(v):v);this._outerBounds.y-=this._handleSize/2;this._outerBounds.height+=this._handleSize/2;return this}},{key:"buttonPadding",value:function e(t){return arguments.length?(this._buttonPadding=t,this):this._buttonPadding}},{key:"brushing",value:function e(t){return arguments.length?(this._brushing=t,this):this._brushing}},{key:"brushFilter",value:function e(t){return arguments.length?(this._brushFilter=t,this):this._brushFilter}},{key:"buttonAlign",value:function e(t){return arguments.length?(this._buttonAlign=t,this):this._buttonAlign}},{key:"buttonBehavior",value:function e(t){return arguments.length?(this._buttonBehavior=t,this):this._buttonBehavior}},{key:"buttonHeight",value:function e(t){return arguments.length?(this._buttonHeight=t,this):this._buttonHeight}},{key:"handleConfig",value:function e(t){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,t),this):this._handleConfig}},{key:"handleSize",value:function e(t){return arguments.length?(this._handleSize=t,this):this._handleSize}},{key:"on",value:function e(t,n){return arguments.length===2?(this._on[t]=n,this):arguments.length?typeof t==="string"?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"selectionConfig",value:function e(t){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,t),this):this._selectionConfig}},{key:"selection",value:function e(t){return arguments.length?(this._selection=t,this):this._selection}},{key:"snapping",value:function e(t){return arguments.length?(this._snapping=t,this):this._snapping}}]);return m}(rD);
/**!
* @fileOverview Kickass library to create and place poppers near their reference elements.
* @version 1.16.1
* @license
* Copyright (c) 2016 Federico Zivolo and contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/var PP=typeof window!=="undefined"&&typeof document!=="undefined"&&typeof navigator!=="undefined";var OP=function(){var e=["Edge","Trident","Firefox"];for(var t=0;t<e.length;t+=1){if(PP&&navigator.userAgent.indexOf(e[t])>=0){return 1}}return 0}();function zP(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function FP(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},OP)}}}var LP=PP&&window.Promise;var IP=LP?zP:FP;function jP(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function HP(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function VP(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function UP(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=HP(e),n=t.overflow,i=t.overflowX,a=t.overflowY;if(/(auto|scroll|overlay)/.test(n+a+i)){return e}return UP(VP(e))}function GP(e){return e&&e.referenceNode?e.referenceNode:e}var WP=PP&&!!(window.MSInputMethodContext&&document.documentMode);var KP=PP&&/MSIE 10/.test(navigator.userAgent);function qP(e){if(e===11){return WP}if(e===10){return KP}return WP||KP}function YP(e){if(!e){return document.documentElement}var t=qP(10)?document.body:null;var n=e.offsetParent||null;while(n===t&&e.nextElementSibling){n=(e=e.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&HP(n,"position")==="static"){return YP(n)}return n}function XP(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||YP(e.firstElementChild)===e}function $P(e){if(e.parentNode!==null){return $P(e.parentNode)}return e}function ZP(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?e:t;var a=n?t:e;var r=document.createRange();r.setStart(i,0);r.setEnd(a,0);var o=r.commonAncestorContainer;if(e!==o&&t!==o||i.contains(a)){if(XP(o)){return o}return YP(o)}var s=$P(e);if(s.host){return ZP(s.host,t)}else{return ZP(e,$P(t).host)}}function JP(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=t==="top"?"scrollTop":"scrollLeft";var i=e.nodeName;if(i==="BODY"||i==="HTML"){var a=e.ownerDocument.documentElement;var r=e.ownerDocument.scrollingElement||a;return r[n]}return e[n]}function QP(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=JP(t,"top");var a=JP(t,"left");var r=n?-1:1;e.top+=i*r;e.bottom+=i*r;e.left+=a*r;e.right+=a*r;return e}function eO(e,t){var n=t==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function tO(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],qP(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function nO(e){var t=e.body;var n=e.documentElement;var i=qP(10)&&getComputedStyle(n);return{height:tO("Height",t,n,i),width:tO("Width",t,n,i)}}var iO=function e(t,n){if(!(t instanceof n)){throw new TypeError("Cannot call a class as a function")}};var aO=function(){function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}return function(e,t,n){if(t)i(e.prototype,t);if(n)i(e,n);return e}}();var rO=function e(t,n,i){if(n in t){Object.defineProperty(t,n,{value:i,enumerable:true,configurable:true,writable:true})}else{t[n]=i}return t};var oO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n){if(Object.prototype.hasOwnProperty.call(n,i)){e[i]=n[i]}}}return e};function sO(e){return oO({},e,{right:e.left+e.width,bottom:e.top+e.height})}function lO(e){var t={};try{if(qP(10)){t=e.getBoundingClientRect();var n=JP(e,"top");var i=JP(e,"left");t.top+=n;t.left+=i;t.bottom+=n;t.right+=i}else{t=e.getBoundingClientRect()}}catch(e){}var a={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top};var r=e.nodeName==="HTML"?nO(e.ownerDocument):{};var o=r.width||e.clientWidth||a.width;var s=r.height||e.clientHeight||a.height;var l=e.offsetWidth-o;var u=e.offsetHeight-s;if(l||u){var h=HP(e);l-=eO(h,"x");u-=eO(h,"y");a.width-=l;a.height-=u}return sO(a)}function uO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=qP(10);var a=t.nodeName==="HTML";var r=lO(e);var o=lO(t);var s=UP(e);var l=HP(t);var u=parseFloat(l.borderTopWidth);var h=parseFloat(l.borderLeftWidth);if(n&&a){o.top=Math.max(o.top,0);o.left=Math.max(o.left,0)}var c=sO({top:r.top-o.top-u,left:r.left-o.left-h,width:r.width,height:r.height});c.marginTop=0;c.marginLeft=0;if(!i&&a){var f=parseFloat(l.marginTop);var d=parseFloat(l.marginLeft);c.top-=u-f;c.bottom-=u-f;c.left-=h-d;c.right-=h-d;c.marginTop=f;c.marginLeft=d}if(i&&!n?t.contains(s):t===s&&s.nodeName!=="BODY"){c=QP(c,t)}return c}function hO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=uO(e,n);var a=Math.max(n.clientWidth,window.innerWidth||0);var r=Math.max(n.clientHeight,window.innerHeight||0);var o=!t?JP(n):0;var s=!t?JP(n,"left"):0;var l={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:a,height:r};return sO(l)}function cO(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(HP(e,"position")==="fixed"){return true}var n=VP(e);if(!n){return false}return cO(n)}function fO(e){if(!e||!e.parentElement||qP()){return document.documentElement}var t=e.parentElement;while(t&&HP(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function dO(e,t,n,i){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var r={top:0,left:0};var o=a?fO(e):ZP(e,GP(t));if(i==="viewport"){r=hO(o,a)}else{var s=void 0;if(i==="scrollParent"){s=UP(VP(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=uO(s,o,a);if(s.nodeName==="HTML"&&!cO(o)){var u=nO(e.ownerDocument),h=u.height,c=u.width;r.top+=l.top-l.marginTop;r.bottom=h+l.top;r.left+=l.left-l.marginLeft;r.right=c+l.left}else{r=l}}n=n||0;var f=typeof n==="number";r.left+=f?n:n.left||0;r.top+=f?n:n.top||0;r.right-=f?n:n.right||0;r.bottom-=f?n:n.bottom||0;return r}function gO(e){var t=e.width,n=e.height;return t*n}function pO(e,t,i,n,a){var r=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var o=dO(i,n,r,a);var s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}};var l=Object.keys(s).map(function(e){return oO({key:e},s[e],{area:gO(s[e])})}).sort(function(e,t){return t.area-e.area});var u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight});var h=u.length>0?u[0].key:l[0].key;var c=e.split("-")[1];return h+(c?"-"+c:"")}function vO(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var a=i?fO(t):ZP(t,GP(n));return uO(n,a,i)}function mO(e){var t=e.ownerDocument.defaultView;var n=t.getComputedStyle(e);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var r={width:e.offsetWidth+a,height:e.offsetHeight+i};return r}function yO(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function _O(e,t,n){n=n.split("-")[0];var i=mO(e);var a={width:i.width,height:i.height};var r=["right","left"].indexOf(n)!==-1;var o=r?"top":"left";var s=r?"left":"top";var l=r?"height":"width";var u=!r?"height":"width";a[o]=t[o]+t[l]/2-i[l]/2;if(n===s){a[s]=t[s]-i[u]}else{a[s]=t[yO(s)]}return a}function bO(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function wO(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=bO(e,function(e){return e[t]===n});return e.indexOf(i)}function xO(e,n,t){var i=t===undefined?e:e.slice(0,wO(e,"name",t));i.forEach(function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var t=e["function"]||e.fn;if(e.enabled&&jP(t)){n.offsets.popper=sO(n.offsets.popper);n.offsets.reference=sO(n.offsets.reference);n=t(n,e)}});return n}function kO(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=vO(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=pO(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=_O(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=xO(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function SO(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function CO(e){var t=[false,"ms","Webkit","Moz","O"];var n=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0;i<t.length;i++){var a=t[i];var r=a?""+a+n:e;if(typeof document.body.style[r]!=="undefined"){return r}}return null}function EO(){this.state.isDestroyed=true;if(SO(this.modifiers,"applyStyle")){this.popper.removeAttribute("x-placement");this.popper.style.position="";this.popper.style.top="";this.popper.style.left="";this.popper.style.right="";this.popper.style.bottom="";this.popper.style.willChange="";this.popper.style[CO("transform")]=""}this.disableEventListeners();if(this.options.removeOnDestroy){this.popper.parentNode.removeChild(this.popper)}return this}function AO(e){var t=e.ownerDocument;return t?t.defaultView:window}function RO(e,t,n,i){var a=e.nodeName==="BODY";var r=a?e.ownerDocument.defaultView:e;r.addEventListener(t,n,{passive:true});if(!a){RO(UP(r.parentNode),t,n,i)}i.push(r)}function MO(e,t,n,i){n.updateBound=i;AO(e).addEventListener("resize",n.updateBound,{passive:true});var a=UP(e);RO(a,"scroll",n.updateBound,n.scrollParents);n.scrollElement=a;n.eventsEnabled=true;return n}function TO(){if(!this.state.eventsEnabled){this.state=MO(this.reference,this.options,this.state,this.scheduleUpdate)}}function BO(e,t){AO(e).removeEventListener("resize",t.updateBound);t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)});t.updateBound=null;t.scrollParents=[];t.scrollElement=null;t.eventsEnabled=false;return t}function NO(){if(this.state.eventsEnabled){cancelAnimationFrame(this.scheduleUpdate);this.state=BO(this.reference,this.state)}}function DO(e){return e!==""&&!isNaN(parseFloat(e))&&isFinite(e)}function PO(n,i){Object.keys(i).forEach(function(e){var t="";if(["width","height","top","right","bottom","left"].indexOf(e)!==-1&&DO(i[e])){t="px"}n.style[e]=i[e]+t})}function OO(n,i){Object.keys(i).forEach(function(e){var t=i[e];if(t!==false){n.setAttribute(e,i[e])}else{n.removeAttribute(e)}})}function zO(e){PO(e.instance.popper,e.styles);OO(e.instance.popper,e.attributes);if(e.arrowElement&&Object.keys(e.arrowStyles).length){PO(e.arrowElement,e.arrowStyles)}return e}function FO(e,t,n,i,a){var r=vO(a,t,e,n.positionFixed);var o=pO(n.placement,r,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);t.setAttribute("x-placement",o);PO(t,{position:n.positionFixed?"fixed":"absolute"});return n}function LO(e,t){var n=e.offsets,i=n.popper,a=n.reference;var r=Math.round,o=Math.floor;var s=function e(t){return t};var l=r(a.width);var u=r(i.width);var h=["left","right"].indexOf(e.placement)!==-1;var c=e.placement.indexOf("-")!==-1;var f=l%2===u%2;var d=l%2===1&&u%2===1;var g=!t?s:h||c||f?r:o;var p=!t?s:r;return{left:g(d&&!c&&t?i.left-1:i.left),top:p(i.top),bottom:p(i.bottom),right:g(i.right)}}var IO=PP&&/Firefox/i.test(navigator.userAgent);function jO(e,t){var n=t.x,i=t.y;var a=e.offsets.popper;var r=bO(e.instance.modifiers,function(e){return e.name==="applyStyle"}).gpuAcceleration;if(r!==undefined){console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!")}var o=r!==undefined?r:t.gpuAcceleration;var s=YP(e.instance.popper);var l=lO(s);var u={position:a.position};var h=LO(e,window.devicePixelRatio<2||!IO);var c=n==="bottom"?"top":"bottom";var f=i==="right"?"left":"right";var d=CO("transform");var g=void 0,p=void 0;if(c==="bottom"){if(s.nodeName==="HTML"){p=-s.clientHeight+h.bottom}else{p=-l.height+h.bottom}}else{p=h.top}if(f==="right"){if(s.nodeName==="HTML"){g=-s.clientWidth+h.right}else{g=-l.width+h.right}}else{g=h.left}if(o&&d){u[d]="translate3d("+g+"px, "+p+"px, 0)";u[c]=0;u[f]=0;u.willChange="transform"}else{var v=c==="bottom"?-1:1;var m=f==="right"?-1:1;u[c]=p*v;u[f]=g*m;u.willChange=c+", "+f}var y={"x-placement":e.placement};e.attributes=oO({},y,e.attributes);e.styles=oO({},u,e.styles);e.arrowStyles=oO({},e.offsets.arrow,e.arrowStyles);return e}function HO(e,n,t){var i=bO(e,function(e){var t=e.name;return t===n});var a=!!i&&e.some(function(e){return e.name===t&&e.enabled&&e.order<i.order});if(!a){var r="`"+n+"`";var o="`"+t+"`";console.warn(o+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return a}function VO(e,t){var n;if(!HO(e.instance.modifiers,"arrow","keepTogether")){return e}var i=t.element;if(typeof i==="string"){i=e.instance.popper.querySelector(i);if(!i){return e}}else{if(!e.instance.popper.contains(i)){console.warn("WARNING: `arrow.element` must be child of its popper element!");return e}}var a=e.placement.split("-")[0];var r=e.offsets,o=r.popper,s=r.reference;var l=["left","right"].indexOf(a)!==-1;var u=l?"height":"width";var h=l?"Top":"Left";var c=h.toLowerCase();var f=l?"left":"top";var d=l?"bottom":"right";var g=mO(i)[u];if(s[d]-g<o[c]){e.offsets.popper[c]-=o[c]-(s[d]-g)}if(s[c]+g>o[d]){e.offsets.popper[c]+=s[c]+g-o[d]}e.offsets.popper=sO(e.offsets.popper);var p=s[c]+s[u]/2-g/2;var v=HP(e.instance.popper);var m=parseFloat(v["margin"+h]);var y=parseFloat(v["border"+h+"Width"]);var _=p-e.offsets.popper[c]-m-y;_=Math.max(Math.min(o[u]-g,_),0);e.arrowElement=i;e.offsets.arrow=(n={},rO(n,c,Math.round(_)),rO(n,f,""),n);return e}function UO(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var GO=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var WO=GO.slice(3);function KO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=WO.indexOf(e);var i=WO.slice(n+1).concat(WO.slice(0,n));return t?i.reverse():i}var qO={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function YO(p,v){if(SO(p.instance.modifiers,"inner")){return p}if(p.flipped&&p.placement===p.originalPlacement){return p}var m=dO(p.instance.popper,p.instance.reference,v.padding,v.boundariesElement,p.positionFixed);var y=p.placement.split("-")[0];var _=yO(y);var b=p.placement.split("-")[1]||"";var w=[];switch(v.behavior){case qO.FLIP:w=[y,_];break;case qO.CLOCKWISE:w=KO(y);break;case qO.COUNTERCLOCKWISE:w=KO(y,true);break;default:w=v.behavior}w.forEach(function(e,t){if(y!==e||w.length===t+1){return p}y=p.placement.split("-")[0];_=yO(y);var n=p.offsets.popper;var i=p.offsets.reference;var a=Math.floor;var r=y==="left"&&a(n.right)>a(i.left)||y==="right"&&a(n.left)<a(i.right)||y==="top"&&a(n.bottom)>a(i.top)||y==="bottom"&&a(n.top)<a(i.bottom);var o=a(n.left)<a(m.left);var s=a(n.right)>a(m.right);var l=a(n.top)<a(m.top);var u=a(n.bottom)>a(m.bottom);var h=y==="left"&&o||y==="right"&&s||y==="top"&&l||y==="bottom"&&u;var c=["top","bottom"].indexOf(y)!==-1;var f=!!v.flipVariations&&(c&&b==="start"&&o||c&&b==="end"&&s||!c&&b==="start"&&l||!c&&b==="end"&&u);var d=!!v.flipVariationsByContent&&(c&&b==="start"&&s||c&&b==="end"&&o||!c&&b==="start"&&u||!c&&b==="end"&&l);var g=f||d;if(r||h||g){p.flipped=true;if(r||h){y=w[t+1]}if(g){b=UO(b)}p.placement=y+(b?"-"+b:"");p.offsets.popper=oO({},p.offsets.popper,_O(p.instance.popper,p.offsets.reference,p.placement));p=xO(p.instance.modifiers,p,"flip")}});return p}function XO(e){var t=e.offsets,n=t.popper,i=t.reference;var a=e.placement.split("-")[0];var r=Math.floor;var o=["top","bottom"].indexOf(a)!==-1;var s=o?"right":"bottom";var l=o?"left":"top";var u=o?"width":"height";if(n[s]<r(i[l])){e.offsets.popper[l]=r(i[l])-n[u]}if(n[l]>r(i[s])){e.offsets.popper[l]=r(i[s])}return e}function $O(e,t,n,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var r=+a[1];var o=a[2];if(!r){return e}if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=i}var l=sO(s);return l[t]/100*r}else if(o==="vh"||o==="vw"){var u=void 0;if(o==="vh"){u=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{u=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return u/100*r}else{return r}}function ZO(e,a,r,t){var o=[0,0];var s=["right","left"].indexOf(t)!==-1;var n=e.split(/(\+|\-)/).map(function(e){return e.trim()});var i=n.indexOf(bO(n,function(e){return e.search(/,|\s/)!==-1}));if(n[i]&&n[i].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var l=/\s*,\s*|\s+/;var u=i!==-1?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];u=u.map(function(e,t){var n=(t===1?!s:s)?"height":"width";var i=false;return e.reduce(function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;i=true;return e}else if(i){e[e.length-1]+=t;i=false;return e}else{return e.concat(t)}},[]).map(function(e){return $O(e,n,a,r)})});u.forEach(function(n,i){n.forEach(function(e,t){if(DO(e)){o[i]+=e*(n[t-1]==="-"?-1:1)}})});return o}function JO(e,t){var n=t.offset;var i=e.placement,a=e.offsets,r=a.popper,o=a.reference;var s=i.split("-")[0];var l=void 0;if(DO(+n)){l=[+n,0]}else{l=ZO(n,r,o,s)}if(s==="left"){r.top+=l[0];r.left-=l[1]}else if(s==="right"){r.top+=l[0];r.left+=l[1]}else if(s==="top"){r.left+=l[0];r.top-=l[1]}else if(s==="bottom"){r.left+=l[0];r.top+=l[1]}e.popper=r;return e}function QO(e,a){var t=a.boundariesElement||YP(e.instance.popper);if(e.instance.reference===t){t=YP(t)}var n=CO("transform");var i=e.instance.popper.style;var r=i.top,o=i.left,s=i[n];i.top="";i.left="";i[n]="";var l=dO(e.instance.popper,e.instance.reference,a.padding,t,e.positionFixed);i.top=r;i.left=o;i[n]=s;a.boundaries=l;var u=a.priority;var h=e.offsets.popper;var c={primary:function e(t){var n=h[t];if(h[t]<l[t]&&!a.escapeWithReference){n=Math.max(h[t],l[t])}return rO({},t,n)},secondary:function e(t){var n=t==="right"?"left":"top";var i=h[n];if(h[t]>l[t]&&!a.escapeWithReference){i=Math.min(h[n],l[t]-(t==="right"?h.width:h.height))}return rO({},n,i)}};u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";h=oO({},h,c[t](e))});e.offsets.popper=h;return e}function ez(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var a=e.offsets,r=a.reference,o=a.popper;var s=["bottom","top"].indexOf(n)!==-1;var l=s?"left":"top";var u=s?"width":"height";var h={start:rO({},l,r[l]),end:rO({},l,r[l]+r[u]-o[u])};e.offsets.popper=oO({},o,h[i])}return e}function tz(e){if(!HO(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=bO(e.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(e.hide===true){return e}e.hide=true;e.attributes["x-out-of-boundaries"]=""}else{if(e.hide===false){return e}e.hide=false;e.attributes["x-out-of-boundaries"]=false}return e}function nz(e){var t=e.placement;var n=t.split("-")[0];var i=e.offsets,a=i.popper,r=i.reference;var o=["left","right"].indexOf(n)!==-1;var s=["top","left"].indexOf(n)===-1;a[o?"left":"top"]=r[n]-(s?a[o?"width":"height"]:0);e.placement=yO(t);e.offsets.popper=sO(a);return e}var iz={shift:{order:100,enabled:true,fn:ez},offset:{order:200,enabled:true,fn:JO,offset:0},preventOverflow:{order:300,enabled:true,fn:QO,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:true,fn:XO},arrow:{order:500,enabled:true,fn:VO,element:"[x-arrow]"},flip:{order:600,enabled:true,fn:YO,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:false,flipVariationsByContent:false},inner:{order:700,enabled:false,fn:nz},hide:{order:800,enabled:true,fn:tz},computeStyle:{order:850,enabled:true,fn:jO,gpuAcceleration:true,x:"bottom",y:"right"},applyStyle:{order:900,enabled:true,fn:zO,onLoad:FO,gpuAcceleration:undefined}};var az={placement:"bottom",positionFixed:false,eventsEnabled:true,removeOnDestroy:false,onCreate:function e(){},onUpdate:function e(){},modifiers:iz};var rz=function(){function r(e,t){var n=this;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};iO(this,r);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=IP(this.update.bind(this));this.options=oO({},r.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(oO({},r.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=oO({},r.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(e){return oO({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order});this.modifiers.forEach(function(e){if(e.enabled&&jP(e.onLoad)){e.onLoad(n.reference,n.popper,n.options,e,n.state)}});this.update();var a=this.options.eventsEnabled;if(a){this.enableEventListeners()}this.state.eventsEnabled=a}aO(r,[{key:"update",value:function e(){return kO.call(this)}},{key:"destroy",value:function e(){return EO.call(this)}},{key:"enableEventListeners",value:function e(){return TO.call(this)}},{key:"disableEventListeners",value:function e(){return NO.call(this)}}]);return r}();rz.Utils=(typeof window!=="undefined"?window:global).PopperUtils;rz.placements=GO;rz.Defaults=az;function oz(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){oz=function e(t){return typeof t}}else{oz=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return oz(e)}function sz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function lz(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function uz(e,t,n){if(t)lz(e.prototype,t);if(n)lz(e,n);return e}function hz(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)cz(e,t)}function cz(e,t){cz=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return cz(e,t)}function fz(a){var r=pz();return function e(){var t=vz(a),n;if(r){var i=vz(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return dz(this,n)}}function dz(e,t){if(t&&(oz(t)==="object"||typeof t==="function")){return t}return gz(e)}function gz(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function pz(){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(e){return false}}function vz(e){vz=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return vz(e)}var mz=function(e){hz(n,e);var t=fz(n);function n(){var e;sz(this,n);e=t.call(this);e._arrow=mn("arrow","");e._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"};e._background=Bg("rgba(255, 255, 255, 1)");e._body=mn("body","");e._bodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._border=Bg("1px solid rgba(0, 0, 0, 0.1)");e._borderRadius=Bg("2px");e._className="d3plus-tooltip";e._data=[];e._footer=mn("footer","");e._footerStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};e._height=Bg("auto");e._id=function(e,t){return"".concat(t)};e._offset=Bg(5);e._padding=Bg("5px");e._pointerEvents=Bg("auto");e._popperClasses={};e._position=function(e){return[e.x,e.y]};e._prefix=Tb();e._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"};e._tbody=[];e._tbodyStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"};e._thead=[];e._theadStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"};e._title=mn("title","");e._titleStyle={"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"14px","font-weight":"600"};e._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"};e._tdStyle={};e._width=Bg("auto");return e}uz(n,[{key:"render",value:function e(t){var u=this;var h=this;var n=xv("body").selectAll(".".concat(this._className)).data(this._data,this._id);var i=n.enter().append("div").attr("class",this._className);var r=n.merge(i);function a(a){i.append("div").attr("class","d3plus-tooltip-".concat(a)).attr("id",function(e,t){return"d3plus-tooltip-".concat(a,"-").concat(e?h._id(e,t):"")});var e=r.select(".d3plus-tooltip-".concat(a)).html(function(e,t){return h["_".concat(a)](e,t)}).style("display",function(e,t){var n=h["_".concat(a)](e,t);var i=n!==false&&n!==undefined&&n!==null;return i?"block":"none"});Bb(e,h["_".concat(a,"Style")])}function o(e){if(typeof e==="function"){var t=xv(this.parentNode.parentNode).datum();return e(t,h._data.indexOf(t))}else return e}function s(e){e.style("background",h._background).style("".concat(h._prefix,"border-radius"),h._borderRadius).style("pointer-events",h._pointerEvents).style("padding",h._padding).style("width",h._width).style("height",h._height).style("border",function(e,t){var n=xv(this).style("border");return n!=="0px none rgb(0, 0, 0)"?n:h._border(e,t)})}a("title");a("body");var l=i.append("table").attr("class","d3plus-tooltip-table");var c=r.select(".d3plus-tooltip-table");Bb(c,this._tableStyle);l.append("thead").attr("class","d3plus-tooltip-thead");var f=r.select(".d3plus-tooltip-thead");Bb(f,this._theadStyle);var d=f.selectAll("th").data(this._thead);d.enter().append("th").merge(d).html(o);d.exit().remove();l.append("tbody").attr("class","d3plus-tooltip-tbody");var g=r.select(".d3plus-tooltip-tbody");Bb(g,this._tbodyStyle);var p=g.selectAll("tr").data(this._tbody);var v=p.enter().append("tr");p.exit().remove();var m=p.merge(v);Bb(m,this._trStyle);var y=m.selectAll("td").data(function(e){return e});y.enter().append("td").merge(y).html(o);Bb(y,this._tdStyle);a("footer");a("arrow");i.attr("id",function(e,t){return"d3plus-tooltip-".concat(e?u._id(e,t):"")}).call(s).each(function(e,t){var n=h._id(e,t);var i=document.getElementById("d3plus-tooltip-".concat(n));var a=document.getElementById("d3plus-tooltip-arrow-".concat(n));var r=a.offsetHeight;var o=a.getBoundingClientRect().height/2;a.style.bottom="-".concat(r/2,"px");var s=h._position(e,t);var l=Array.isArray(s)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function e(){return{top:s[1],right:s[0],bottom:s[1],left:s[0],width:0,height:0}}}:s;u._popperClasses[n]=new rz(l,i,{placement:"top",placements:["top","bottom","left","right"],modifiers:{arrow:{element:a},offset:{offset:"0,".concat(h._offset(e,t)+o)},preventOverflow:{boundariesElement:"scrollParent"},flip:{behavior:"flip",boundariesElement:"viewport"}},onUpdate:function e(t){var n=t.arrowElement,i=t.flipped;if(i){n.style.transform="rotate(225deg)";n.style.top="-".concat(r/2,"px")}else{n.style.transform="rotate(45deg)";n.style.bottom="-".concat(r/2,"px")}},removeOnDestroy:true})});r.each(function(e,t){var n=h._id(e,t);var i=h._position(e,t);var a=u._popperClasses[n];if(a){var r=Array.isArray(i)?{clientWidth:0,clientHeight:0,getBoundingClientRect:function e(){return{top:i[1],right:i[0],bottom:i[1],left:i[0],width:0,height:0}}}:i;a.reference=r;a.scheduleUpdate()}}).call(s);n.exit().each(function(e,t){var n=h._id(e,t);var i=u._popperClasses[n];if(i){i.destroy();delete u._popperClasses[n]}}).remove();if(t)setTimeout(t,100);return this}},{key:"arrow",value:function e(t){return arguments.length?(this._arrow=typeof t==="function"?t:Bg(t),this):this._arrow}},{key:"arrowStyle",value:function e(t){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,t),this):this._arrowStyle}},{key:"background",value:function e(t){return arguments.length?(this._background=typeof t==="function"?t:Bg(t),this):this._background}},{key:"body",value:function e(t){return arguments.length?(this._body=typeof t==="function"?t:Bg(t),this):this._body}},{key:"bodyStyle",value:function e(t){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,t),this):this._bodyStyle}},{key:"border",value:function e(t){return arguments.length?(this._border=typeof t==="function"?t:Bg(t),this):this._border}},{key:"borderRadius",value:function e(t){return arguments.length?(this._borderRadius=typeof t==="function"?t:Bg(t),this):this._borderRadius}},{key:"className",value:function e(t){return arguments.length?(this._className=t,this):this._className}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"footer",value:function e(t){return arguments.length?(this._footer=typeof t==="function"?t:Bg(t),this):this._footer}},{key:"footerStyle",value:function e(t){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,t),this):this._footerStyle}},{key:"height",value:function e(t){return arguments.length?(this._height=typeof t==="function"?t:Bg(t),this):this._height}},{key:"id",value:function e(t){return arguments.length?(this._id=typeof t==="function"?t:Bg(t),this):this._id}},{key:"offset",value:function e(t){return arguments.length?(this._offset=typeof t==="function"?t:Bg(t),this):this._offset}},{key:"padding",value:function e(t){return arguments.length?(this._padding=typeof t==="function"?t:Bg(t),this):this._padding}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Bg(t),this):this._pointerEvents}},{key:"position",value:function e(t){return arguments.length?(this._position=typeof t==="string"?Bg(xv(t).node()||[0,0]):typeof t==="function"?t:Bg(t),this):this._position}},{key:"tableStyle",value:function e(t){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,t),this):this._tableStyle}},{key:"tbody",value:function e(t){return arguments.length?(this._tbody=t,this):this._tbody}},{key:"tbodyStyle",value:function e(t){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,t),this):this._tbodyStyle}},{key:"thead",value:function e(t){return arguments.length?(this._thead=t,this):this._thead}},{key:"theadStyle",value:function e(t){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,t),this):this._theadStyle}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Bg(t),this):this._title}},{key:"titleStyle",value:function e(t){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,t),this):this._titleStyle}},{key:"trStyle",value:function e(t){return arguments.length?(this._trStyle=Object.assign(this._trStyle,t),this):this._trStyle}},{key:"tdStyle",value:function e(t){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,t),this):this._tdStyle}},{key:"width",value:function e(t){return arguments.length?(this._width=typeof t==="function"?t:Bg(t),this):this._width}}]);return n}(Ag);function yz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _z(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function bz(e,t,n){if(t)_z(e.prototype,t);if(n)_z(e,n);return e}var wz=function(){function e(){yz(this,e);this._isVisible=false}bz(e,[{key:"exit",value:function e(t,n){t.transition().duration(n).style("opacity",0).transition().remove();this._isVisible=false}},{key:"hide",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.duration,i=n===void 0?600:n,a=t.callback;this.mask.call(this.exit.bind(this),i);this.elem.call(this.exit.bind(this),i);if(a)setTimeout(a,i+100);this._isVisible=false;return this}},{key:"render",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.callback,i=t.container,a=i===void 0?"body":i,r=t.duration,o=r===void 0?600:r,s=t.html,l=s===void 0?"Please Wait":s,u=t.mask,h=u===void 0?"rgba(0, 0, 0, 0.05)":u,c=t.style,f=c===void 0?{}:c;var d=xv(a);this.mask=d.selectAll("div.d3plus-Mask").data(h?[h]:[]);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);Bb(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([l]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);Bb(this.elem,f);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return e}();function xz(){var e=this._history.length;var t=gb("g.d3plus-viz-back",{parent:this._select,transition:this._transition,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(e?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(t).config(this._backConfig).render();this._margin.top+=e?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function kz(){var i=this;var e=this._data;var t=this._colorScalePosition||"bottom";var n=["top","bottom"].includes(t);var a=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r=this._width-(this._margin.left+this._margin.right+a.left+a.right);var o=n?Oe([this._colorScaleMaxSize,r]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top);var l=!n?Oe([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var u={opacity:this._colorScalePosition?1:0,transform:"translate(".concat(n?this._margin.left+a.left+(r-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+a.top+(s-l)/2,")")};var h=this._colorScale&&e&&e.length>1;var c=gb("g.d3plus-viz-colorScale",{condition:h&&!this._colorScaleConfig.select,enter:u,parent:this._select,transition:this._transition,update:u}).node();if(h){var f=e.filter(function(e,t){var n=i._colorScale(e,t);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[t]||"bottom").duration(this._duration).data(f).height(l).locale(this._locale).orient(t).select(c).value(this._colorScale).width(o).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();if(this._colorScalePosition&&!this._colorScaleConfig.select&&d.height){if(n)this._margin[t]+=d.height+this._legendClass.padding()*2;else this._margin[t]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}var Sz=pN(function(t,e){(function(e){{t.exports=e()}})(function(){return function r(o,s,l){function u(n,e){if(!s[n]){if(!o[n]){var t=typeof gN=="function"&&gN;if(!e&&t)return t(n,!0);if(h)return h(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var a=s[n]={exports:{}};o[n][0].call(a.exports,function(e){var t=o[n][1][e];return u(t?t:e)},a,a.exports,r,o,s,l)}return s[n].exports}var h=typeof gN=="function"&&gN;for(var e=0;e<l.length;e++){u(l[e])}return u}({1:[function(e,O,z){(function(P){(function(e){var t=F(z)=="object"&&z&&!z.nodeType&&z;var n=F(O)=="object"&&O&&!O.nodeType&&O;var i=F(P)=="object"&&P;if(i.global===i||i.window===i||i.self===i){e=i}var a,m=2147483647,y=36,_=1,b=26,r=38,o=700,w=72,x=128,k="-",s=/^xn--/,l=/[^\x20-\x7E]/,u=/[\x2E\u3002\uFF0E\uFF61]/g,h={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=y-_,S=Math.floor,C=String.fromCharCode,f;function E(e){throw new RangeError(h[e])}function d(e,t){var n=e.length;var i=[];while(n--){i[n]=t(e[n])}return i}function g(e,t){var n=e.split("@");var i="";if(n.length>1){i=n[0]+"@";e=n[1]}e=e.replace(u,".");var a=e.split(".");var r=d(a,t).join(".");return i+r}function A(e){var t=[],n=0,i=e.length,a,r;while(n<i){a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){r=e.charCodeAt(n++);if((r&64512)==56320){t.push(((a&1023)<<10)+(r&1023)+65536)}else{t.push(a);n--}}else{t.push(a)}}return t}function v(e){return d(e,function(e){var t="";if(e>65535){e-=65536;t+=C(e>>>10&1023|55296);e=56320|e&1023}t+=C(e);return t}).join("")}function R(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return y}function M(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function T(e,t,n){var i=0;e=n?S(e/o):e>>1;e+=S(e/t);for(;e>c*b>>1;i+=y){e=S(e/c)}return S(i+(c+1)*e/(e+r))}function p(e){var t=[],n=e.length,i,a=0,r=x,o=w,s,l,u,h,c,f,d,g,p;s=e.lastIndexOf(k);if(s<0){s=0}for(l=0;l<s;++l){if(e.charCodeAt(l)>=128){E("not-basic")}t.push(e.charCodeAt(l))}for(u=s>0?s+1:0;u<n;){for(h=a,c=1,f=y;;f+=y){if(u>=n){E("invalid-input")}d=R(e.charCodeAt(u++));if(d>=y||d>S((m-a)/c)){E("overflow")}a+=d*c;g=f<=o?_:f>=o+b?b:f-o;if(d<g){break}p=y-g;if(c>S(m/p)){E("overflow")}c*=p}i=t.length+1;o=T(a-h,i,h==0);if(S(a/i)>m-r){E("overflow")}r+=S(a/i);a%=i;t.splice(a++,0,r)}return v(t)}function B(e){var t,n,i,a,r,o,s,l,u,h,c,f=[],d,g,p,v;e=A(e);d=e.length;t=x;n=0;r=w;for(o=0;o<d;++o){c=e[o];if(c<128){f.push(C(c))}}i=a=f.length;if(a){f.push(k)}while(i<d){for(s=m,o=0;o<d;++o){c=e[o];if(c>=t&&c<s){s=c}}g=i+1;if(s-t>S((m-n)/g)){E("overflow")}n+=(s-t)*g;t=s;for(o=0;o<d;++o){c=e[o];if(c<t&&++n>m){E("overflow")}if(c==t){for(l=n,u=y;;u+=y){h=u<=r?_:u>=r+b?b:u-r;if(l<h){break}v=l-h;p=y-h;f.push(C(M(h+v%p,0)));l=S(v/p)}f.push(C(M(l,0)));r=T(n,g,i==a);n=0;++i}}++n;++t}return f.join("")}function N(e){return g(e,function(e){return s.test(e)?p(e.slice(4).toLowerCase()):e})}function D(e){return g(e,function(e){return l.test(e)?"xn--"+B(e):e})}a={version:"1.3.2",ucs2:{decode:A,encode:v},decode:p,encode:B,toASCII:D,toUnicode:N};if(t&&n){if(O.exports==t){n.exports=a}else{for(f in a){a.hasOwnProperty(f)&&(t[f]=a[f])}}}else{e.punycode=a}})(this)}).call(this,typeof dN!=="undefined"?dN:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(e,t,n){var i=e("./log");function u(e,t,n){if(e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)){e.defaultView.scrollTo(t,n)}}function a(t,e){try{if(e){e.width=t.width;e.height=t.height;e.getContext("2d").putImageData(t.getContext("2d").getImageData(0,0,t.width,t.height),0,0)}}catch(e){i("Unable to copy canvas content from",t,e)}}function h(e,t){var n=e.nodeType===3?document.createTextNode(e.nodeValue):e.cloneNode(false);var i=e.firstChild;while(i){if(t===true||i.nodeType!==1||i.nodeName!=="SCRIPT"){n.appendChild(h(i,t))}i=i.nextSibling}if(e.nodeType===1){n._scrollTop=e.scrollTop;n._scrollLeft=e.scrollLeft;if(e.nodeName==="CANVAS"){a(e,n)}else if(e.nodeName==="TEXTAREA"||e.nodeName==="SELECT"){n.value=e.value}}return n}function c(e){if(e.nodeType===1){e.scrollTop=e._scrollTop;e.scrollLeft=e._scrollLeft;var t=e.firstChild;while(t){c(t);t=t.nextSibling}}}t.exports=function(e,t,n,i,a,r,o){var s=h(e.documentElement,a.javascriptEnabled);var l=t.createElement("iframe");l.className="html2canvas-container";l.style.visibility="hidden";l.style.position="fixed";l.style.left="-10000px";l.style.top="0px";l.style.border="0";l.width=n;l.height=i;l.scrolling="no";t.body.appendChild(l);return new Promise(function(t){var n=l.contentWindow.document;l.contentWindow.onload=l.onload=function(){var e=setInterval(function(){if(n.body.childNodes.length>0){c(n.documentElement);clearInterval(e);if(a.type==="view"){l.contentWindow.scrollTo(r,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.contentWindow.scrollY!==o||l.contentWindow.scrollX!==r)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-r+"px";n.documentElement.style.position="absolute"}}t(l)}},50)};n.open();n.write("<!DOCTYPE html><html></html>");u(e,r,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(e,t,n){function i(e){this.r=0;this.g=0;this.b=0;this.a=null;var t=this.fromArray(e)||this.namedColor(e)||this.rgb(e)||this.rgba(e)||this.hex6(e)||this.hex3(e)}i.prototype.darken=function(e){var t=1-e;return new i([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])};i.prototype.isTransparent=function(){return this.a===0};i.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};i.prototype.fromArray=function(e){if(Array.isArray(e)){this.r=Math.min(e[0],255);this.g=Math.min(e[1],255);this.b=Math.min(e[2],255);if(e.length>3){this.a=e[3]}}return Array.isArray(e)};var a=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(e){var t=null;if((t=e.match(a))!==null){this.r=parseInt(t[1][0]+t[1][0],16);this.g=parseInt(t[1][1]+t[1][1],16);this.b=parseInt(t[1][2]+t[1][2],16)}return t!==null};var r=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(e){var t=null;if((t=e.match(r))!==null){this.r=parseInt(t[1].substring(0,2),16);this.g=parseInt(t[1].substring(2,4),16);this.b=parseInt(t[1].substring(4,6),16)}return t!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(e){var t=null;if((t=e.match(o))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3])}return t!==null};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;i.prototype.rgba=function(e){var t=null;if((t=e.match(s))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3]);this.a=Number(t[4])}return t!==null};i.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(",")+")"};i.prototype.namedColor=function(e){e=e.toLowerCase();var t=l[e];if(t){this.r=t[0];this.g=t[1];this.b=t[2]}else if(e==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!t};i.prototype.isColor=true;var l={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]};t.exports=i},{}],4:[function(e,t,n){var d=e("./support");var o=e("./renderers/canvas");var g=e("./imageloader");var p=e("./nodeparser");var i=e("./nodecontainer");var v=e("./log");var a=e("./utils");var r=e("./clone");var s=e("./proxy").loadUrlDocument;var m=a.getBounds;var c="data-html2canvas-node";var l=0;function u(e,t){var n=l++;t=t||{};if(t.logging){v.options.logging=true;v.options.start=Date.now()}t.async=typeof t.async==="undefined"?true:t.async;t.allowTaint=typeof t.allowTaint==="undefined"?false:t.allowTaint;t.removeContainer=typeof t.removeContainer==="undefined"?true:t.removeContainer;t.javascriptEnabled=typeof t.javascriptEnabled==="undefined"?false:t.javascriptEnabled;t.imageTimeout=typeof t.imageTimeout==="undefined"?1e4:t.imageTimeout;t.renderer=typeof t.renderer==="function"?t.renderer:o;t.strict=!!t.strict;if(typeof e==="string"){if(typeof t.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var i=t.width!=null?t.width:window.innerWidth;var a=t.height!=null?t.height:window.innerHeight;return s(k(e),t.proxy,document,i,a,t).then(function(e){return y(e.contentWindow.document.documentElement,e,t,i,a)})}var r=(e===undefined?[document.documentElement]:e.length?e:[e])[0];r.setAttribute(c+n,n);return f(r.ownerDocument,t,r.ownerDocument.defaultView.innerWidth,r.ownerDocument.defaultView.innerHeight,n).then(function(e){if(typeof t.onrendered==="function"){v("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");t.onrendered(e)}return e})}u.CanvasRenderer=o;u.NodeContainer=i;u.log=v;u.utils=a;var h=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:u;t.exports=h;function f(o,s,l,u,h){return r(o,o,l,u,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(e){v("Document cloned");var t=c+h;var n="["+t+"='"+h+"']";o.querySelector(n).removeAttribute(t);var i=e.contentWindow;var a=i.document.querySelector(n);var r=typeof s.onclone==="function"?Promise.resolve(s.onclone(i.document)):Promise.resolve(true);return r.then(function(){return y(a,e,s,l,u)})})}function y(t,n,i,e,a){var r=n.contentWindow;var o=new d(r.document);var s=new g(i,o);var l=m(t);var u=i.type==="view"?e:w(r.document);var h=i.type==="view"?a:x(r.document);var c=new i.renderer(u,h,s,i,document);var f=new p(t,c,o,s,i);return f.ready.then(function(){v("Finished rendering");var e;if(i.type==="view"){e=b(c.canvas,{width:c.canvas.width,height:c.canvas.height,top:0,left:0,x:0,y:0})}else if(t===r.document.body||t===r.document.documentElement||i.canvas!=null){e=c.canvas}else{e=b(c.canvas,{width:i.width!=null?i.width:l.width,height:i.height!=null?i.height:l.height,top:l.top,left:l.left,x:0,y:0})}_(n,i);return e})}function _(e,t){if(t.removeContainer){e.parentNode.removeChild(e);v("Cleaned up container")}}function b(e,t){var n=document.createElement("canvas");var i=Math.min(e.width-1,Math.max(0,t.left));var a=Math.min(e.width,Math.max(1,t.left+t.width));var r=Math.min(e.height-1,Math.max(0,t.top));var o=Math.min(e.height,Math.max(1,t.top+t.height));n.width=t.width;n.height=t.height;var s=a-i;var l=o-r;v("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",s,"height:",l);v("Resulting crop with width",t.width,"and height",t.height,"with x",i,"and y",r);n.getContext("2d").drawImage(e,i,r,s,l,t.x,t.y,s,l);return n}function w(e){return Math.max(Math.max(e.body.scrollWidth,e.documentElement.scrollWidth),Math.max(e.body.offsetWidth,e.documentElement.offsetWidth),Math.max(e.body.clientWidth,e.documentElement.clientWidth))}function x(e){return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}function k(e){var t=document.createElement("a");t.href=e;t.href=t.href;return t}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(e,t,n){var i=e("./log");var a=e("./utils").smallImage;function r(e){this.src=e;i("DummyImageContainer for",e);if(!this.promise||!this.image){i("Initiating DummyImageContainer");r.prototype.image=new Image;var n=this.image;r.prototype.promise=new Promise(function(e,t){n.onload=e;n.onerror=t;n.src=a();if(n.complete===true){e(n)}})}}t.exports=r},{"./log":13,"./utils":26}],6:[function(e,t,n){var l=e("./utils").smallImage;function i(e,t){var n=document.createElement("div"),i=document.createElement("img"),a=document.createElement("span"),r="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=e;n.style.fontSize=t;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);i.src=l();i.width=1;i.height=1;i.style.margin=0;i.style.padding=0;i.style.verticalAlign="baseline";a.style.fontFamily=e;a.style.fontSize=t;a.style.margin=0;a.style.padding=0;a.appendChild(document.createTextNode(r));n.appendChild(a);n.appendChild(i);o=i.offsetTop-a.offsetTop+1;n.removeChild(a);n.appendChild(document.createTextNode(r));n.style.lineHeight="normal";i.style.verticalAlign="super";s=i.offsetTop-n.offsetTop+1;document.body.removeChild(n);this.baseline=o;this.lineWidth=1;this.middle=s}t.exports=i},{"./utils":26}],7:[function(e,t,n){var i=e("./font");function a(){this.data={}}a.prototype.getMetrics=function(e,t){if(this.data[e+"-"+t]===undefined){this.data[e+"-"+t]=new i(e,t)}return this.data[e+"-"+t]};t.exports=a},{"./font":6}],8:[function(r,e,t){var n=r("./utils");var o=n.getBounds;var a=r("./proxy").loadUrlDocument;function i(t,e,n){this.image=null;this.src=t;var i=this;var a=o(t);this.promise=(!e?this.proxyLoad(n.proxy,a,n):new Promise(function(e){if(t.contentWindow.document.URL==="about:blank"||t.contentWindow.document.documentElement==null){t.contentWindow.onload=t.onload=function(){e(t)}}else{e(t)}})).then(function(e){var t=r("./core");return t(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(e){return i.image=e})}i.prototype.proxyLoad=function(e,t,n){var i=this.src;return a(i.src,e,i.ownerDocument,t.width,t.height,n)};e.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(e,t,n){function i(e){this.src=e.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(true)}i.TYPES={LINEAR:1,RADIAL:2};i.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;t.exports=i},{}],10:[function(e,t,n){function i(n,i){this.src=n;this.image=new Image;var a=this;this.tainted=null;this.promise=new Promise(function(e,t){a.image.onload=e;a.image.onerror=t;if(i){a.image.crossOrigin="anonymous"}a.image.src=n;if(a.image.complete===true){e(a.image)}})}t.exports=i},{}],11:[function(e,t,n){var r=e("./log");var i=e("./imagecontainer");var a=e("./dummyimagecontainer");var o=e("./proxyimagecontainer");var s=e("./framecontainer");var l=e("./svgcontainer");var u=e("./svgnodecontainer");var h=e("./lineargradientcontainer");var c=e("./webkitgradientcontainer");var f=e("./utils").bind;function d(e,t){this.link=null;this.options=e;this.support=t;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(e){var t=[];e.reduce(function(e,t){switch(t.node.nodeName){case"IMG":return e.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return e.concat([{args:[t.node],method:t.node.nodeName}])}return e},[]).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.findBackgroundImage=function(e,t){t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.addImage=function(n,i){return function(t){t.args.forEach(function(e){if(!this.imageExists(n,e)){n.splice(0,0,i.call(this,t));r("Added image #"+n.length,typeof e==="string"?e.substring(0,100):e)}},this)}};d.prototype.hasImageBackground=function(e){return e.method!=="none"};d.prototype.loadImage=function(e){if(e.method==="url"){var t=e.args[0];if(this.isSVG(t)&&!this.support.svg&&!this.options.allowTaint){return new l(t)}else if(t.match(/data:image\/.*;base64,/i)){return new i(t.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(t)||this.options.allowTaint===true||this.isSVG(t)){return new i(t,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new i(t,true)}else if(this.options.proxy){return new o(t,this.options.proxy)}else{return new a(t)}}else if(e.method==="linear-gradient"){return new h(e)}else if(e.method==="gradient"){return new c(e)}else if(e.method==="svg"){return new u(e.args[0],this.support.svg)}else if(e.method==="IFRAME"){return new s(e.args[0],this.isSameOrigin(e.args[0].src),this.options)}else{return new a(e)}};d.prototype.isSVG=function(e){return e.substring(e.length-3).toLowerCase()==="svg"||l.prototype.isInline(e)};d.prototype.imageExists=function(e,t){return e.some(function(e){return e.src===t})};d.prototype.isSameOrigin=function(e){return this.getOrigin(e)===this.origin};d.prototype.getOrigin=function(e){var t=this.link||(this.link=document.createElement("a"));t.href=e;t.href=t.href;return t.protocol+t.hostname+t.port};d.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout)["catch"](function(){var e=new a(t.src);return e.promise.then(function(e){t.image=e})})};d.prototype.get=function(t){var n=null;return this.images.some(function(e){return(n=e).src===t})?n:null};d.prototype.fetch=function(e){this.images=e.reduce(f(this.findBackgroundImage,this),this.findImages(e));this.images.forEach(function(t,n){t.promise.then(function(){r("Succesfully loaded image #"+(n+1),t)},function(e){r("Failed loading image #"+(n+1),t,e)})});this.ready=Promise.all(this.images.map(this.getPromise,this));r("Finished searching images");return this};d.prototype.timeout=function(n,i){var a;var e=Promise.race([n.promise,new Promise(function(e,t){a=setTimeout(function(){r("Timed out loading image",n);t(n)},i)})]).then(function(e){clearTimeout(a);return e});e["catch"](function(){clearTimeout(a)});return e};t.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(e,t,n){var a=e("./gradientcontainer");var r=e("./color");function i(e){a.apply(this,arguments);this.type=a.TYPES.LINEAR;var t=i.REGEXP_DIRECTION.test(e.args[0])||!a.REGEXP_COLORSTOP.test(e.args[0]);if(t){e.args[0].split(/\s+/).reverse().forEach(function(e,t){switch(e){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 i=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=i;this.y1=n;break;case"center":break;default:var a=parseFloat(e,10)*.01;if(isNaN(a)){break}if(t===0){this.y0=a;this.y1=1-this.y0}else{this.x0=a;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=e.args.slice(t?1:0).map(function(e){var t=e.match(a.REGEXP_COLORSTOP);var n=+t[2];var i=n===0?"%":t[3];return{color:new r(t[1]),stop:i==="%"?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,i){if(n.stop===null){this.colorStops.slice(i).some(function(e,t){if(e.stop!==null){n.stop=(e.stop-this.colorStops[i-1].stop)/(t+1)+this.colorStops[i-1].stop;return true}else{return false}},this)}},this)}i.prototype=Object.create(a.prototype);i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;t.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(e,t,n){var i=function e(){if(e.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-e.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};i.options={logging:false};t.exports=i},{}],14:[function(e,t,n){var r=e("./color");var i=e("./utils");var a=i.getBounds;var o=i.parseBackgrounds;var s=i.offsetBounds;function l(e,t){this.node=e;this.parent=t;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}l.prototype.cloneTo=function(e){e.visible=this.visible;e.borders=this.borders;e.bounds=this.bounds;e.clip=this.clip;e.backgroundClip=this.backgroundClip;e.computedStyles=this.computedStyles;e.styles=this.styles;e.backgroundImages=this.backgroundImages;e.opacity=this.opacity};l.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};l.prototype.assignStack=function(e){this.stack=e;e.children.push(this)};l.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")};l.prototype.css=function(e){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[e]||(this.styles[e]=this.computedStyles[e])};l.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"];var n=this.css(t);if(n===undefined){e.some(function(e){n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1));return n!==undefined},this)}return n===undefined?null:n};l.prototype.computedStyle=function(e){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,e)};l.prototype.cssInt=function(e){var t=parseInt(this.css(e),10);return isNaN(t)?0:t};l.prototype.color=function(e){return this.colors[e]||(this.colors[e]=new r(this.css(e)))};l.prototype.cssFloat=function(e){var t=parseFloat(this.css(e));return isNaN(t)?0:t};l.prototype.fontWeight=function(){var e=this.css("fontWeight");switch(parseInt(e,10)){case 401:e="bold";break;case 400:e="normal";break}return e};l.prototype.parseClip=function(){var e=this.css("clip").match(this.CLIP);if(e){return{top:parseInt(e[1],10),right:parseInt(e[2],10),bottom:parseInt(e[3],10),left:parseInt(e[4],10)}}return null};l.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};l.prototype.cssList=function(e,t){var n=(this.css(e)||"").split(",");n=n[t||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],c(n[0])?"auto":n[0]]}return n};l.prototype.parseBackgroundSize=function(e,t,n){var i=this.cssList("backgroundSize",n);var a,r;if(c(i[0])){a=e.width*parseFloat(i[0])/100}else if(/contain|cover/.test(i[0])){var o=e.width/e.height,s=t.width/t.height;return o<s^i[0]==="contain"?{width:e.height*s,height:e.height}:{width:e.width,height:e.width/s}}else{a=parseInt(i[0],10)}if(i[0]==="auto"&&i[1]==="auto"){r=t.height}else if(i[1]==="auto"){r=a/t.width*t.height}else if(c(i[1])){r=e.height*parseFloat(i[1])/100}else{r=parseInt(i[1],10)}if(i[0]==="auto"){a=r/t.height*t.width}return{width:a,height:r}};l.prototype.parseBackgroundPosition=function(e,t,n,i){var a=this.cssList("backgroundPosition",n);var r,o;if(c(a[0])){r=(e.width-(i||t).width)*(parseFloat(a[0])/100)}else{r=parseInt(a[0],10)}if(a[1]==="auto"){o=r/t.width*t.height}else if(c(a[1])){o=(e.height-(i||t).height)*parseFloat(a[1])/100}else{o=parseInt(a[1],10)}if(a[0]==="auto"){r=o/t.height*t.width}return{left:r,top:o}};l.prototype.parseBackgroundRepeat=function(e){return this.cssList("backgroundRepeat",e)[0]};l.prototype.parseTextShadows=function(){var e=this.css("textShadow");var t=[];if(e&&e!=="none"){var n=e.match(this.TEXT_SHADOW_PROPERTY);for(var i=0;n&&i<n.length;i++){var a=n[i].match(this.TEXT_SHADOW_VALUES);t.push({color:new r(a[0]),offsetX:a[1]?parseFloat(a[1].replace("px","")):0,offsetY:a[2]?parseFloat(a[2].replace("px","")):0,blur:a[3]?a[3].replace("px",""):0})}}return t};l.prototype.parseTransform=function(){if(!this.transformData){if(this.hasTransform()){var e=this.parseBounds();var t=this.prefixedCss("transformOrigin").split(" ").map(f).map(d);t[0]+=e.left;t[1]+=e.top;this.transformData={origin:t,matrix:this.parseTransformMatrix()}}else{this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]}}}return this.transformData};l.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var e=this.prefixedCss("transform");var t=e?h(e.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=t?t:[1,0,0,1,0,0]}return this.transformMatrix};l.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):a(this.node))};l.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};l.prototype.getValue=function(){var e=this.node.value||"";if(this.node.tagName==="SELECT"){e=u(this.node)}else if(this.node.type==="password"){e=Array(e.length+1).join("•")}return e.length===0?this.node.placeholder||"":e};l.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;l.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;l.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;l.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;function u(e){var t=e.options[e.selectedIndex||0];return t?t.text||"":""}function h(e){if(e&&e[1]==="matrix"){return e[2].split(",").map(function(e){return parseFloat(e.trim())})}else if(e&&e[1]==="matrix3d"){var t=e[2].split(",").map(function(e){return parseFloat(e.trim())});return[t[0],t[1],t[4],t[5],t[12],t[13]]}}function c(e){return e.toString().indexOf("%")!==-1}function f(e){return e.replace("px","")}function d(e){return parseFloat(e)}t.exports=l},{"./color":3,"./utils":26}],15:[function(e,t,n){var s=e("./log");var l=e("punycode");var u=e("./nodecontainer");var h=e("./textcontainer");var c=e("./pseudoelementcontainer");var f=e("./fontmetrics");var d=e("./color");var g=e("./stackingcontext");var i=e("./utils");var p=i.bind;var o=i.getBounds;var v=i.parseBackgrounds;var m=i.offsetBounds;function a(e,t,n,i,a){s("Starting NodeParser");this.renderer=t;this.options=a;this.range=null;this.support=n;this.renderQueue=[];this.stack=new g(true,1,e.ownerDocument,null);var r=new u(e,null);if(a.background){t.rectangle(0,0,t.width,t.height,new d(a.background))}if(e===e.ownerDocument.documentElement){var o=new u(r.color("backgroundColor").isTransparent()?e.ownerDocument.body:e.ownerDocument.documentElement,null);t.rectangle(0,0,t.width,t.height,o.color("backgroundColor"))}r.visibile=r.isElementVisible();this.createPseudoHideStyles(e.ownerDocument);this.disableAnimations(e.ownerDocument);this.nodes=X([r].concat(this.getChildren(r)).filter(function(e){return e.visible=e.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new f;s("Fetched nodes, total:",this.nodes.length);s("Calculate overflow clips");this.calculateOverflowClips();s("Start fetching images");this.images=i.fetch(this.nodes.filter(H));this.ready=this.images.ready.then(p(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(p(function(e){if(!a.async){this.renderQueue.forEach(this.paint,this);e()}else if(typeof a.async==="function"){a.async.call(this,this.renderQueue,e)}else if(this.renderQueue.length>0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,e)}else{e()}},this))},this))}a.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(e){if(H(e)){if(V(e)){e.appendToDOM()}e.borders=this.parseBorders(e);var t=e.css("overflow")==="hidden"?[e.borders.clip]:[];var n=e.parseClip();if(n&&["absolute","fixed"].indexOf(e.css("position"))!==-1){t.push([["rect",e.bounds.left+n.left,e.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}e.clip=r(e)?e.parent.clip.concat(t):t;e.backgroundClip=e.css("overflow")!=="hidden"?e.clip.concat([e.borders.clip]):e.clip;if(V(e)){e.cleanDOM()}}else if(U(e)){e.clip=r(e)?e.parent.clip:[]}if(!V(e)){e.bounds=null}},this)};function r(e){return e.parent&&e.parent.clip.length}a.prototype.asyncRenderer=function(e,t,n){n=n||Date.now();this.paint(e[this.renderIndex++]);if(e.length===this.renderIndex){t()}else if(n+20>Date.now()){this.asyncRenderer(e,t,n)}else{setTimeout(p(function(){this.asyncRenderer(e,t)},this),0)}};a.prototype.createPseudoHideStyles=function(e){this.createStyles(e,"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};a.prototype.disableAnimations=function(e){this.createStyles(e,"* { -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;}")};a.prototype.createStyles=function(e,t){var n=e.createElement("style");n.innerHTML=t;e.body.appendChild(n)};a.prototype.getPseudoElements=function(e){var t=[[e]];if(e.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(e,":before");var i=this.getPseudoElement(e,":after");if(n){t.push(n)}if(i){t.push(i)}}return X(t)};function y(e){return e.replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")})}a.prototype.getPseudoElement=function(e,t){var n=e.computedStyle(t);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var i=$(n.content);var a=i.substr(0,3)==="url";var r=document.createElement(a?"img":"html2canvaspseudoelement");var o=new c(r,e,t);for(var s=n.length-1;s>=0;s--){var l=y(n.item(s));r.style[l]=n[l]}r.className=c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(a){r.src=v(i)[0].args[0];return[o]}else{var u=document.createTextNode(i);r.appendChild(u);return[o,new h(u,o)]}};a.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,O).map(function(e){var t=[e.nodeType===Node.TEXT_NODE?new h(e,n):new u(e,n)].filter(Y);return e.nodeType===Node.ELEMENT_NODE&&t.length&&e.tagName!=="TEXTAREA"?t[0].isElementVisible()?t.concat(this.getChildren(t[0])):[]:t},this))};a.prototype.newStackingContext=function(e,t){var n=new g(t,e.getOpacity(),e.node,e.parent);e.cloneTo(n);var i=t?n.getParentStack(this):n.parent.stack;i.contexts.push(n);e.stack=n};a.prototype.createStackingContexts=function(){this.nodes.forEach(function(e){if(H(e)&&(this.isRootElement(e)||W(e)||z(e)||this.isBodyWithTransparentRoot(e)||e.hasTransform())){this.newStackingContext(e,true)}else if(H(e)&&(F(e)&&M(e)||I(e)||L(e))){this.newStackingContext(e,false)}else{e.assignStack(e.parent.stack)}},this)};a.prototype.isBodyWithTransparentRoot=function(e){return e.node.nodeName==="BODY"&&e.parent.color("backgroundColor").isTransparent()};a.prototype.isRootElement=function(e){return e.parent===null};a.prototype.sortStackingContexts=function(e){e.contexts.sort(G(e.contexts.slice(0)));e.contexts.forEach(this.sortStackingContexts,this)};a.prototype.parseTextBounds=function(o){return function(e,t,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||e.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var i=n.slice(0,t).join("").length;return this.getRangeBounds(o.node,i,e.length)}else if(o.node&&typeof o.node.data==="string"){var a=o.node.splitText(e.length);var r=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=a;return r}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(e.length)}return{}}};a.prototype.getWrapperBounds=function(e,t){var n=e.ownerDocument.createElement("html2canvaswrapper");var i=e.parentNode,a=e.cloneNode(true);n.appendChild(e.cloneNode(true));i.replaceChild(n,e);var r=t?m(n):o(n);i.replaceChild(a,n);return r};a.prototype.getRangeBounds=function(e,t,n){var i=this.range||(this.range=e.ownerDocument.createRange());i.setStart(e,t);i.setEnd(e,t+n);return i.getBoundingClientRect()};function _(){}a.prototype.parse=function(e){var t=e.contexts.filter(A);var n=e.children.filter(H);var i=n.filter(j(L));var a=i.filter(j(F)).filter(j(T));var r=n.filter(j(F)).filter(L);var o=i.filter(j(F)).filter(T);var s=e.contexts.concat(i.filter(F)).filter(M);var l=e.children.filter(U).filter(N);var u=e.contexts.filter(R);t.concat(a).concat(r).concat(o).concat(s).concat(l).concat(u).forEach(function(e){this.renderQueue.push(e);if(B(e)){this.parse(e);this.renderQueue.push(new _)}},this)};a.prototype.paint=function(e){try{if(e instanceof _){this.renderer.ctx.restore()}else if(U(e)){if(V(e.parent)){e.parent.appendToDOM()}this.paintText(e);if(V(e.parent)){e.parent.cleanDOM()}}else{this.paintNode(e)}}catch(e){s(e);if(this.options.strict){throw e}}};a.prototype.paintNode=function(e){if(B(e)){this.renderer.setOpacity(e.opacity);this.renderer.ctx.save();if(e.hasTransform()){this.renderer.setTransform(e.parseTransform())}}if(e.node.nodeName==="INPUT"&&e.node.type==="checkbox"){this.paintCheckbox(e)}else if(e.node.nodeName==="INPUT"&&e.node.type==="radio"){this.paintRadio(e)}else{this.paintElement(e)}};a.prototype.paintElement=function(n){var i=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,i,n.borders.borders.map(q))},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 e=this.images.get(n.node);if(e){this.renderer.renderImage(n,i,n.borders,e)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var t=this.images.get(n.node.src);if(t){this.renderer.renderImage(n,i,n.borders,t)}else{s("Error loading <img>",n.node.src)}break;case"CANVAS":this.renderer.renderImage(n,i,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n);break}},this)};a.prototype.paintCheckbox=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height);var i={width:n-1,height:n-1,top:t.top,left:t.left};var a=[3,3];var r=[a,a,a,a];var o=[1,1,1,1].map(function(e){return{color:new d("#A5A5A5"),width:e}});var s=k(i,r,o);this.renderer.clip(e.backgroundClip,function(){this.renderer.rectangle(i.left+1,i.top+1,i.width-2,i.height-2,new d("#DEDEDE"));this.renderer.renderBorders(w(o,i,s,r));if(e.node.checked){this.renderer.font(new d("#424242"),"normal","normal","bold",n-3+"px","arial");this.renderer.text("✔",i.left+n/6,i.top+n-1)}},this)};a.prototype.paintRadio=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height)-2;this.renderer.clip(e.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(e.node.checked){this.renderer.circle(Math.ceil(t.left+n/4)+1,Math.ceil(t.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};a.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument;var i=n.createElement("html2canvaswrapper");var a=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];a.forEach(function(e){try{i.style[e]=t.css(e)}catch(e){s("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}});var r=t.parseBounds();i.style.position="fixed";i.style.left=r.left+"px";i.style.top=r.top+"px";i.textContent=e;n.body.appendChild(i);this.paintText(new h(i.firstChild,t));n.body.removeChild(i)}};a.prototype.paintText=function(n){n.applyTextTransform();var e=l.ucs2.decode(n.node.data);var i=(!this.options.letterRendering||D(n))&&!Q(n.node.data)?Z(e):e.map(function(e){return l.ucs2.encode([e])});var t=n.parent.fontWeight();var a=n.parent.css("fontSize");var r=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),t,a,r);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(){i.map(this.parseTextBounds(n),this).forEach(function(e,t){if(e){this.renderer.text(i[t],e.left,e.bottom);this.renderTextDecoration(n.parent,e,this.fontMetrics.getMetrics(r,a))}},this)},this)};a.prototype.renderTextDecoration=function(e,t,n){switch(e.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+n.baseline+n.lineWidth),t.width,1,e.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,e.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+n.middle+n.lineWidth),t.width,1,e.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};a.prototype.parseBorders=function(r){var e=r.parseBounds();var t=P(r);var n=["Top","Right","Bottom","Left"].map(function(e,t){var n=r.css("border"+e+"Style");var i=r.color("border"+e+"Color");if(n==="inset"&&i.isBlack()){i=new d([255,255,255,i.a])}var a=b[n]?b[n][t]:null;return{width:r.cssInt("border"+e+"Width"),color:a?i[a[0]](a[1]):i,args:null}});var i=k(e,t,n);return{clip:this.parseBackgroundClip(r,i,n,t,e),borders:w(n,e,i,t)}};function w(o,s,l,u){return o.map(function(e,t){if(e.width>0){var n=s.left;var i=s.top;var a=s.width;var r=s.height-o[2].width;switch(t){case 0:r=o[0].width;e.args=C({c1:[n,i],c2:[n+a,i],c3:[n+a-o[1].width,i+r],c4:[n+o[3].width,i+r]},u[0],u[1],l.topLeftOuter,l.topLeftInner,l.topRightOuter,l.topRightInner);break;case 1:n=s.left+s.width-o[1].width;a=o[1].width;e.args=C({c1:[n+a,i],c2:[n+a,i+r+o[2].width],c3:[n,i+r],c4:[n,i+o[0].width]},u[1],u[2],l.topRightOuter,l.topRightInner,l.bottomRightOuter,l.bottomRightInner);break;case 2:i=i+s.height-o[2].width;r=o[2].width;e.args=C({c1:[n+a,i+r],c2:[n,i+r],c3:[n+o[3].width,i],c4:[n+a-o[3].width,i]},u[2],u[3],l.bottomRightOuter,l.bottomRightInner,l.bottomLeftOuter,l.bottomLeftInner);break;case 3:a=o[3].width;e.args=C({c1:[n,i+r+o[2].width],c2:[n,i],c3:[n+a,i+o[0].width],c4:[n+a,i+r]},u[3],u[0],l.bottomLeftOuter,l.bottomLeftInner,l.topLeftOuter,l.topLeftInner);break}}return e})}a.prototype.parseBackgroundClip=function(e,t,n,i,a){var r=e.css("backgroundClip"),o=[];switch(r){case"content-box":case"padding-box":E(o,i[0],i[1],t.topLeftInner,t.topRightInner,a.left+n[3].width,a.top+n[0].width);E(o,i[1],i[2],t.topRightInner,t.bottomRightInner,a.left+a.width-n[1].width,a.top+n[0].width);E(o,i[2],i[3],t.bottomRightInner,t.bottomLeftInner,a.left+a.width-n[1].width,a.top+a.height-n[2].width);E(o,i[3],i[0],t.bottomLeftInner,t.topLeftInner,a.left+n[3].width,a.top+a.height-n[2].width);break;default:E(o,i[0],i[1],t.topLeftOuter,t.topRightOuter,a.left,a.top);E(o,i[1],i[2],t.topRightOuter,t.bottomRightOuter,a.left+a.width,a.top);E(o,i[2],i[3],t.bottomRightOuter,t.bottomLeftOuter,a.left+a.width,a.top+a.height);E(o,i[3],i[0],t.bottomLeftOuter,t.topLeftOuter,a.left,a.top+a.height);break}return o};function x(e,t,n,i){var a=4*((Math.sqrt(2)-1)/3);var r=n*a,o=i*a,s=e+n,l=t+i;return{topLeft:S({x:e,y:l},{x:e,y:l-o},{x:s-r,y:t},{x:s,y:t}),topRight:S({x:e,y:t},{x:e+r,y:t},{x:s,y:l-o},{x:s,y:l}),bottomRight:S({x:s,y:t},{x:s,y:t+o},{x:e+r,y:l},{x:e,y:l}),bottomLeft:S({x:s,y:l},{x:s-r,y:l},{x:e,y:t+o},{x:e,y:t})}}function k(e,t,n){var i=e.left,a=e.top,r=e.width,o=e.height,s=t[0][0]<r/2?t[0][0]:r/2,l=t[0][1]<o/2?t[0][1]:o/2,u=t[1][0]<r/2?t[1][0]:r/2,h=t[1][1]<o/2?t[1][1]:o/2,c=t[2][0]<r/2?t[2][0]:r/2,f=t[2][1]<o/2?t[2][1]:o/2,d=t[3][0]<r/2?t[3][0]:r/2,g=t[3][1]<o/2?t[3][1]:o/2;var p=r-u,v=o-f,m=r-c,y=o-g;return{topLeftOuter:x(i,a,s,l).topLeft.subdivide(.5),topLeftInner:x(i+n[3].width,a+n[0].width,Math.max(0,s-n[3].width),Math.max(0,l-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(i+p,a,u,h).topRight.subdivide(.5),topRightInner:x(i+Math.min(p,r+n[3].width),a+n[0].width,p>r+n[3].width?0:u-n[3].width,h-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(i+m,a+v,c,f).bottomRight.subdivide(.5),bottomRightInner:x(i+Math.min(m,r-n[3].width),a+Math.min(v,o+n[0].width),Math.max(0,c-n[1].width),f-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(i,a+y,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(i+n[3].width,a+y,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(l,u,h,c){var f=function e(t,n,i){return{x:t.x+(n.x-t.x)*i,y:t.y+(n.y-t.y)*i}};return{start:l,startControl:u,endControl:h,end:c,subdivide:function e(t){var n=f(l,u,t),i=f(u,h,t),a=f(h,c,t),r=f(n,i,t),o=f(i,a,t),s=f(r,o,t);return[S(l,n,r,s),S(s,o,a,c)]},curveTo:function e(t){t.push(["bezierCurve",u.x,u.y,h.x,h.y,c.x,c.y])},curveToReversed:function e(t){t.push(["bezierCurve",h.x,h.y,u.x,u.y,l.x,l.y])}}}function C(e,t,n,i,a,r,o){var s=[];if(t[0]>0||t[1]>0){s.push(["line",i[1].start.x,i[1].start.y]);i[1].curveTo(s)}else{s.push(["line",e.c1[0],e.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",r[0].start.x,r[0].start.y]);r[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",e.c2[0],e.c2[1]]);s.push(["line",e.c3[0],e.c3[1]])}if(t[0]>0||t[1]>0){s.push(["line",a[1].end.x,a[1].end.y]);a[1].curveToReversed(s)}else{s.push(["line",e.c4[0],e.c4[1]])}return s}function E(e,t,n,i,a,r,o){if(t[0]>0||t[1]>0){e.push(["line",i[0].start.x,i[0].start.y]);i[0].curveTo(e);i[1].curveTo(e)}else{e.push(["line",r,o])}if(n[0]>0||n[1]>0){e.push(["line",a[0].start.x,a[0].start.y])}}function A(e){return e.cssInt("zIndex")<0}function R(e){return e.cssInt("zIndex")>0}function M(e){return e.cssInt("zIndex")===0}function T(e){return["inline","inline-block","inline-table"].indexOf(e.css("display"))!==-1}function B(e){return e instanceof g}function N(e){return e.node.data.trim().length>0}function D(e){return/^(normal|none|0px)$/.test(e.parent.css("letterSpacing"))}function P(i){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(e){var t=i.css("border"+e+"Radius");var n=t.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(K)})}function O(e){return e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE}function z(e){var t=e.css("position");var n=["absolute","relative","fixed"].indexOf(t)!==-1?e.css("zIndex"):"auto";return n!=="auto"}function F(e){return e.css("position")!=="static"}function L(e){return e.css("float")!=="none"}function I(e){return["inline-block","inline-table"].indexOf(e.css("display"))!==-1}function j(e){var t=this;return function(){return!e.apply(t,arguments)}}function H(e){return e.node.nodeType===Node.ELEMENT_NODE}function V(e){return e.isPseudoElement===true}function U(e){return e.node.nodeType===Node.TEXT_NODE}function G(n){return function(e,t){return e.cssInt("zIndex")+n.indexOf(e)/n.length-(t.cssInt("zIndex")+n.indexOf(t)/n.length)}}function W(e){return e.getOpacity()<1}function K(e){return parseInt(e,10)}function q(e){return e.width}function Y(e){return e.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(e.node.nodeName)===-1}function X(e){return[].concat.apply([],e)}function $(e){var t=e.substr(0,1);return t===e.substr(e.length-1)&&t.match(/'|"/)?e.substr(1,e.length-2):e}function Z(e){var t=[],n=0,i=false,a;while(e.length){if(J(e[n])===i){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}i=!i;n=0}else{n++}if(n>=e.length){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}}}return t}function J(e){return[32,13,10,9,45].indexOf(e)!==-1}function Q(e){return/[^\u0000-\u00ff]/.test(e)}t.exports=a},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(e,t,n){var o=e("./xhr");var i=e("./utils");var s=e("./log");var l=e("./clone");var u=i.decode64;function h(e,t,n){var i="withCredentials"in new XMLHttpRequest;if(!t){return Promise.reject("No proxy configured")}var a=f(i);var r=d(t,e,a);return i?o(r):c(n,r,a).then(function(e){return u(e.content)})}var a=0;function r(e,t,n){var i="crossOrigin"in new Image;var a=f(i);var r=d(t,e,a);return i?Promise.resolve(r):c(n,r,a).then(function(e){return"data:"+e.type+";base64,"+e.content})}function c(r,e,o){return new Promise(function(t,n){var i=r.createElement("script");var a=function e(){delete window.html2canvas.proxy[o];r.body.removeChild(i)};window.html2canvas.proxy[o]=function(e){a();t(e)};i.src=e;i.onerror=function(e){a();n(e)};r.body.appendChild(i)})}function f(e){return!e?"html2canvas_"+Date.now()+"_"+ ++a+"_"+Math.round(Math.random()*1e5):""}function d(e,t,n){return e+"?url="+encodeURIComponent(t)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(r){return function(t){var e=new DOMParser,n;try{n=e.parseFromString(t,"text/html")}catch(e){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(t);n.close()}catch(e){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=t}}var i=n.querySelector("base");if(!i||!i.href.host){var a=n.createElement("base");a.href=r;n.head.insertBefore(a,n.head.firstChild)}return n}}function p(e,t,n,i,a,r){return new h(e,t,window.document).then(g(e)).then(function(e){return l(e,n,i,a,r,0,0)})}n.Proxy=h;n.ProxyURL=r;n.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(e,t,n){var r=e("./proxy").ProxyURL;function i(n,i){var e=document.createElement("a");e.href=n;n=e.href;this.src=n;this.image=new Image;var a=this;this.promise=new Promise(function(e,t){a.image.crossOrigin="Anonymous";a.image.onload=e;a.image.onerror=t;new r(n,i,document).then(function(e){a.image.src=e})["catch"](t)})}t.exports=i},{"./proxy":16}],18:[function(e,t,n){var i=e("./nodecontainer");function a(e,t,n){i.call(this,e,t);this.isPseudoElement=true;this.before=n===":before"}a.prototype.cloneTo=function(e){a.prototype.cloneTo.call(this,e);e.isPseudoElement=true;e.before=this.before};a.prototype=Object.create(i.prototype);a.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()};a.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};a.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";t.exports=a},{"./nodecontainer":14}],19:[function(e,t,n){var l=e("./log");function i(e,t,n,i,a){this.width=e;this.height=t;this.images=n;this.options=i;this.document=a}i.prototype.renderImage=function(e,t,n,i){var a=e.cssInt("paddingLeft"),r=e.cssInt("paddingTop"),o=e.cssInt("paddingRight"),s=e.cssInt("paddingBottom"),l=n.borders;var u=t.width-(l[1].width+l[3].width+a+o);var h=t.height-(l[0].width+l[2].width+r+s);this.drawImage(i,0,0,i.image.width||u,i.image.height||h,t.left+a+l[3].width,t.top+r+l[0].width,u,h)};i.prototype.renderBackground=function(e,t,n){if(t.height>0&&t.width>0){this.renderBackgroundColor(e,t);this.renderBackgroundImage(e,t,n)}};i.prototype.renderBackgroundColor=function(e,t){var n=e.color("backgroundColor");if(!n.isTransparent()){this.rectangle(t.left,t.top,t.width,t.height,n)}};i.prototype.renderBorders=function(e){e.forEach(this.renderBorder,this)};i.prototype.renderBorder=function(e){if(!e.color.isTransparent()&&e.args!==null){this.drawShape(e.args,e.color)}};i.prototype.renderBackgroundImage=function(r,o,s){var e=r.parseBackgroundImages();e.reverse().forEach(function(e,t,n){switch(e.method){case"url":var i=this.images.get(e.args[0]);if(i){this.renderBackgroundRepeating(r,o,i,n.length-(t+1),s)}else{l("Error loading background-image",e.args[0])}break;case"linear-gradient":case"gradient":var a=this.images.get(e.value);if(a){this.renderBackgroundGradient(a,o,s)}else{l("Error loading background-image",e.args[0])}break;case"none":break;default:l("Unknown background-image type",e.args[0])}},this)};i.prototype.renderBackgroundRepeating=function(e,t,n,i,a){var r=e.parseBackgroundSize(t,n.image,i);var o=e.parseBackgroundPosition(t,n.image,i,r);var s=e.parseBackgroundRepeat(i);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+a[3],t.top+o.top+a[0],99999,r.height,a);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+a[0],r.width,99999,a);break;case"no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+o.top+a[0],r.width,r.height,a);break;default:this.renderBackgroundRepeat(n,o,r,{top:t.top,left:t.left},a[3],a[0]);break}};t.exports=i},{"./log":13}],20:[function(e,t,n){var i=e("../renderer");var a=e("../lineargradientcontainer");var r=e("../log");function o(e,t){i.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=e;this.canvas.height=t}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};r("Initialized CanvasRenderer with size",e,"x",t)}o.prototype=Object.create(i.prototype);o.prototype.setFillStyle=function(e){this.ctx.fillStyle=F(e)==="object"&&!!e.isColor?e.toString():e;return this.ctx};o.prototype.rectangle=function(e,t,n,i,a){this.setFillStyle(a).fillRect(e,t,n,i)};o.prototype.circle=function(e,t,n,i){this.setFillStyle(i);this.ctx.beginPath();this.ctx.arc(e+n/2,t+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(e,t,n,i,a,r){this.circle(e,t,n,i);this.ctx.strokeStyle=r.toString();this.ctx.stroke()};o.prototype.drawShape=function(e,t){this.shape(e);this.setFillStyle(t).fill()};o.prototype.taints=function(t){if(t.tainted===null){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);t.tainted=false}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d");t.tainted=true}}return t.tainted};o.prototype.drawImage=function(e,t,n,i,a,r,o,s,l){if(!this.taints(e)||this.options.allowTaint){this.ctx.drawImage(e.image,t,n,i,a,r,o,s,l)}};o.prototype.clip=function(e,t,n){this.ctx.save();e.filter(s).forEach(function(e){this.shape(e).clip()},this);t.call(n);this.ctx.restore()};o.prototype.shape=function(e){this.ctx.beginPath();e.forEach(function(e,t){if(e[0]==="rect"){this.ctx.rect.apply(this.ctx,e.slice(1))}else{this.ctx[t===0?"moveTo":e[0]+"To"].apply(this.ctx,e.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(e,t,n,i,a,r){this.setFillStyle(e).font=[t,n,i,a,r].join(" ").split(",")[0]};o.prototype.fontShadow=function(e,t,n,i){this.setVariable("shadowColor",e.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",n).setVariable("shadowBlur",i)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(e){this.ctx.globalAlpha=e};o.prototype.setTransform=function(e){this.ctx.translate(e.origin[0],e.origin[1]);this.ctx.transform.apply(this.ctx,e.matrix);this.ctx.translate(-e.origin[0],-e.origin[1])};o.prototype.setVariable=function(e,t){if(this.variables[e]!==t){this.variables[e]=this.ctx[e]=t}return this};o.prototype.text=function(e,t,n){this.ctx.fillText(e,t,n)};o.prototype.backgroundRepeatShape=function(e,t,n,i,a,r,o,s,l){var u=[["line",Math.round(a),Math.round(r)],["line",Math.round(a+o),Math.round(r)],["line",Math.round(a+o),Math.round(s+r)],["line",Math.round(a),Math.round(s+r)]];this.clip([u],function(){this.renderBackgroundRepeat(e,t,n,i,l[3],l[0])},this)};o.prototype.renderBackgroundRepeat=function(e,t,n,i,a,r){var o=Math.round(i.left+t.left+a),s=Math.round(i.top+t.top+r);this.setFillStyle(this.ctx.createPattern(this.resizeImage(e,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(e,t){if(e instanceof a){var n=this.ctx.createLinearGradient(t.left+t.width*e.x0,t.top+t.height*e.y0,t.left+t.width*e.x1,t.top+t.height*e.y1);e.colorStops.forEach(function(e){n.addColorStop(e.stop,e.color.toString())});this.rectangle(t.left,t.top,t.width,t.height,n)}};o.prototype.resizeImage=function(e,t){var n=e.image;if(n.width===t.width&&n.height===t.height){return n}var i,a=document.createElement("canvas");a.width=t.width;a.height=t.height;i=a.getContext("2d");i.drawImage(n,0,0,n.width,n.height,0,0,t.width,t.height);return a};function s(e){return e.length>0}t.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(e,t,n){var a=e("./nodecontainer");function i(e,t,n,i){a.call(this,n,i);this.ownStacking=e;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*t}i.prototype=Object.create(a.prototype);i.prototype.getParentStack=function(e){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(e):e.stack};t.exports=i},{"./nodecontainer":14}],22:[function(e,t,n){function i(e){this.rangeBounds=this.testRangeBounds(e);this.cors=this.testCORS();this.svg=this.testSVG()}i.prototype.testRangeBounds=function(e){var t,n,i,a,r=false;if(e.createRange){t=e.createRange();if(t.getBoundingClientRect){n=e.createElement("boundtest");n.style.height="123px";n.style.display="block";e.body.appendChild(n);t.selectNode(n);i=t.getBoundingClientRect();a=i.height;if(a===123){r=true}e.body.removeChild(n)}}return r};i.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};i.prototype.testSVG=function(){var e=new Image;var t=document.createElement("canvas");var n=t.getContext("2d");e.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(e,0,0);t.toDataURL()}catch(e){return false}return true};t.exports=i},{}],23:[function(e,t,n){var i=e("./xhr");var a=e("./utils").decode64;function r(e){this.src=e;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(e)?Promise.resolve(n.inlineFormatting(e)):i(e)}).then(function(t){return new Promise(function(e){window.html2canvas.svg.fabric.loadSVGFromString(t,n.createCanvas.call(n,e))})})}r.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()};r.prototype.inlineFormatting=function(e){return/^data:image\/svg\+xml;base64,/.test(e)?this.decode64(this.removeContentType(e)):this.removeContentType(e)};r.prototype.removeContentType=function(e){return e.replace(/^data:image\/svg\+xml(;base64)?,/,"")};r.prototype.isInline=function(e){return/^data:image\/svg\+xml/i.test(e)};r.prototype.createCanvas=function(i){var a=this;return function(e,t){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");a.image=n.lowerCanvasEl;n.setWidth(t.width).setHeight(t.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(e,t)).renderAll();i(n.lowerCanvasEl)}};r.prototype.decode64=function(e){return typeof window.atob==="function"?window.atob(e):a(e)};t.exports=r},{"./utils":26,"./xhr":28}],24:[function(e,t,n){var i=e("./svgcontainer");function a(n,e){this.src=n;this.image=null;var i=this;this.promise=e?new Promise(function(e,t){i.image=new Image;i.image.onload=e;i.image.onerror=t;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(i.image.complete===true){e(i.image)}}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(n,i.createCanvas.call(i,e))})})}a.prototype=Object.create(i.prototype);t.exports=a},{"./svgcontainer":23}],25:[function(e,t,n){var i=e("./nodecontainer");function a(e,t){i.call(this,e,t)}a.prototype=Object.create(i.prototype);a.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};a.prototype.transform=function(e){var t=this.node.data;switch(e){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,r);case"uppercase":return t.toUpperCase();default:return t}};function r(e,t,n){if(e.length>0){return t+n.toUpperCase()}}t.exports=a},{"./nodecontainer":14}],26:[function(e,t,n){n.smallImage=function e(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(e,t){return function(){return e.apply(t,arguments)}};n.decode64=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=e.length,i,a,r,o,s,l,u,h;var c="";for(i=0;i<n;i+=4){a=t.indexOf(e[i]);r=t.indexOf(e[i+1]);o=t.indexOf(e[i+2]);s=t.indexOf(e[i+3]);l=a<<2|r>>4;u=(r&15)<<4|o>>2;h=(o&3)<<6|s;if(o===64){c+=String.fromCharCode(l)}else if(s===64||s===-1){c+=String.fromCharCode(l,u)}else{c+=String.fromCharCode(l,u,h)}}return c};n.getBounds=function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect();var n=e.offsetWidth==null?t.width:e.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+n,left:t.left,width:n,height:e.offsetHeight==null?t.height:e.offsetHeight}}return{}};n.offsetBounds=function(e){var t=e.offsetParent?n.offsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+t.top,bottom:e.offsetTop+e.offsetHeight+t.top,right:e.offsetLeft+t.left+e.offsetWidth,left:e.offsetLeft+t.left,width:e.offsetWidth,height:e.offsetHeight}};n.parseBackgrounds=function(e){var t=" \r\n\t",n,i,a,r,o,s=[],l=0,u=0,h,c;var f=function e(){if(n){if(i.substr(0,1)==='"'){i=i.substr(1,i.length-2)}if(i){c.push(i)}if(n.substr(0,1)==="-"&&(r=n.indexOf("-",1)+1)>0){a=n.substr(0,r);n=n.substr(r)}s.push({prefix:a,method:n.toLowerCase(),value:o,args:c,image:null})}c=[];n=a=i=o=""};c=[];n=a=i=o="";e.split("").forEach(function(e){if(l===0&&t.indexOf(e)>-1){return}switch(e){case'"':if(!h){h=e}else if(h===e){h=null}break;case"(":if(h){break}else if(l===0){l=1;o+=e;return}else{u++}break;case")":if(h){break}else if(l===1){if(u===0){l=0;o+=e;f();return}else{u--}}break;case",":if(h){break}else if(l===0){f();return}else if(l===1){if(u===0&&!n.match(/^url$/i)){c.push(i);i="";o+=e;return}}break}o+=e;if(l===0){n+=e}else{i+=e}});f();return s}},{}],27:[function(e,t,n){var i=e("./gradientcontainer");function a(e){i.apply(this,arguments);this.type=e.args[0]==="linear"?i.TYPES.LINEAR:i.TYPES.RADIAL}a.prototype=Object.create(i.prototype);t.exports=a},{"./gradientcontainer":9}],28:[function(e,t,n){function i(i){return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i);n.onload=function(){if(n.status===200){e(n.responseText)}else{t(new Error(n.statusText))}};n.onerror=function(){t(new Error("Network Error"))};n.send()})}t.exports=i},{}]},{},[4])(4)})});var Cz=function e(t){this.ok=false;this.alpha=1;if(t.charAt(0)=="#"){t=t.substr(1,6)}t=t.replace(/ /g,"");t=t.toLowerCase();var h={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"};t=h[t]||t;var c=[{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 e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[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 e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function e(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function e(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}];for(var n=0;n<c.length;n++){var i=c[n].re;var a=c[n].process;var r=i.exec(t);if(r){var o=a(r);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 e=this.r.toString(16);var t=this.g.toString(16);var n=this.b.toString(16);if(e.length==1)e="0"+e;if(t.length==1)t="0"+t;if(n.length==1)n="0"+n;return"#"+e+t+n};this.getHelpXML=function(){var e=new Array;for(var t=0;t<c.length;t++){var n=c[t].example;for(var i=0;i<n.length;i++){e[e.length]=n[i]}}for(var a in h){e[e.length]=a}var r=document.createElement("ul");r.setAttribute("id","rgbcolor-examples");for(var t=0;t<e.length;t++){try{var o=document.createElement("li");var s=new RGBColor(e[t]);var l=document.createElement("div");l.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex();l.appendChild(document.createTextNode("test"));var u=document.createTextNode(" "+e[t]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(l);o.appendChild(u);r.appendChild(o)}catch(e){}}return r}};var Ez=[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 Az=[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 Rz(e,t,n,i){if(isNaN(i)||i<1)return;i|=0;var a,r,o,s,l,u,h,c,f,d,g,p,v,m,y,_,b,w,x,k,S,C,E,A;var R=i+i+1;var M=t-1;var T=n-1;var B=i+1;var N=B*(B+1)/2;var D=new Mz;var P=D;for(o=1;o<R;o++){P=P.next=new Mz;if(o==B)var O=P}P.next=D;var z=null;var F=null;h=u=0;var L=Ez[i];var I=Az[i];for(r=0;r<n;r++){_=b=w=x=c=f=d=g=0;p=B*(k=e[u]);v=B*(S=e[u+1]);m=B*(C=e[u+2]);y=B*(E=e[u+3]);c+=N*k;f+=N*S;d+=N*C;g+=N*E;P=D;for(o=0;o<B;o++){P.r=k;P.g=S;P.b=C;P.a=E;P=P.next}for(o=1;o<B;o++){s=u+((M<o?M:o)<<2);c+=(P.r=k=e[s])*(A=B-o);f+=(P.g=S=e[s+1])*A;d+=(P.b=C=e[s+2])*A;g+=(P.a=E=e[s+3])*A;_+=k;b+=S;w+=C;x+=E;P=P.next}z=D;F=O;for(a=0;a<t;a++){e[u+3]=E=g*L>>I;if(E!=0){E=255/E;e[u]=(c*L>>I)*E;e[u+1]=(f*L>>I)*E;e[u+2]=(d*L>>I)*E}else{e[u]=e[u+1]=e[u+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=h+((s=a+i+1)<M?s:M)<<2;_+=z.r=e[s];b+=z.g=e[s+1];w+=z.b=e[s+2];x+=z.a=e[s+3];c+=_;f+=b;d+=w;g+=x;z=z.next;p+=k=F.r;v+=S=F.g;m+=C=F.b;y+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;u+=4}h+=t}for(a=0;a<t;a++){b=w=x=_=f=d=g=c=0;u=a<<2;p=B*(k=e[u]);v=B*(S=e[u+1]);m=B*(C=e[u+2]);y=B*(E=e[u+3]);c+=N*k;f+=N*S;d+=N*C;g+=N*E;P=D;for(o=0;o<B;o++){P.r=k;P.g=S;P.b=C;P.a=E;P=P.next}l=t;for(o=1;o<=i;o++){u=l+a<<2;c+=(P.r=k=e[u])*(A=B-o);f+=(P.g=S=e[u+1])*A;d+=(P.b=C=e[u+2])*A;g+=(P.a=E=e[u+3])*A;_+=k;b+=S;w+=C;x+=E;P=P.next;if(o<T){l+=t}}u=a;z=D;F=O;for(r=0;r<n;r++){s=u<<2;e[s+3]=E=g*L>>I;if(E>0){E=255/E;e[s]=(c*L>>I)*E;e[s+1]=(f*L>>I)*E;e[s+2]=(d*L>>I)*E}else{e[s]=e[s+1]=e[s+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=a+((s=r+B)<T?s:T)*t<<2;c+=_+=z.r=e[s];f+=b+=z.g=e[s+1];d+=w+=z.b=e[s+2];g+=x+=z.a=e[s+3];z=z.next;p+=k=F.r;v+=S=F.g;m+=C=F.b;y+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;u+=t}}}function Mz(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var Tz=Rz;var Bz=/[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 Nz=new RegExp("[\\-\\.0-9"+Bz.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var Dz=new RegExp("^"+Bz.source+Nz.source+"*(?::"+Bz.source+Nz.source+"*)?$");var Pz=0;var Oz=1;var zz=2;var Fz=3;var Lz=4;var Iz=5;var jz=6;var Hz=7;function Vz(){}Vz.prototype={parse:function e(t,n,i){var a=this.domBuilder;a.startDocument();Xz(n,n={});Uz(t,n,i,a,this.errorHandler);a.endDocument()}};function Uz(n,e,i,a,r){function o(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}else{return String.fromCharCode(e)}}function s(e){var t=e.slice(1,-1);if(t in i){return i[t]}else if(t.charAt(0)==="#"){return o(parseInt(t.substr(1).replace("x","0x")))}else{r.error("entity not found:"+e);return e}}function t(e){if(e>p){var t=n.substring(p,e).replace(/&#?\w+;/g,s);f&&l(p);a.characters(t,0,e-p);p=e}}function l(e,t){while(e>=h&&(t=c.exec(n))){u=t.index;h=u+t[0].length;f.lineNumber++}f.columnNumber=e-u+1}var u=0;var h=0;var c=/.*(?:\r\n?|\n)|.*$/g;var f=a.locator;var d=[{currentNSMap:e}];var g={};var p=0;while(true){try{var v=n.indexOf("<",p);if(v<0){if(!n.substr(p).match(/^\s*$/)){var m=a.doc;var y=m.createTextNode(n.substr(p));m.appendChild(y);a.currentElement=y}return}if(v>p){t(v)}switch(n.charAt(v+1)){case"/":var _=n.indexOf(">",v+3);var b=n.substring(v+2,_);var w=d.pop();if(_<0){b=n.substring(v+2).replace(/[\s<].*/,"");r.error("end tag name: "+b+" is not complete:"+w.tagName);_=v+1+b.length}else if(b.match(/\s</)){b=b.replace(/[\s<].*/,"");r.error("end tag name: "+b+" maybe not complete");_=v+1+b.length}var x=w.localNSMap;var k=w.tagName==b;var S=k||w.tagName&&w.tagName.toLowerCase()==b.toLowerCase();if(S){a.endElement(w.uri,w.localName,b);if(x){for(var C in x){a.endPrefixMapping(C)}}if(!k){r.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}}else{d.push(w)}_++;break;case"?":f&&l(v);_=Zz(n,v,a);break;case"!":f&&l(v);_=$z(n,v,a,r);break;default:f&&l(v);var E=new Jz;var A=d[d.length-1].currentNSMap;var _=Wz(n,v,E,A,s,r);var R=E.length;if(!E.closed&&Yz(n,_,E.tagName,g)){E.closed=true;if(!i.nbsp){r.warning("unclosed xml attribute")}}if(f&&R){var M=Gz(f,{});for(var T=0;T<R;T++){var B=E[T];l(B.offset);B.locator=Gz(f,{})}a.locator=M;if(Kz(E,a,A)){d.push(E)}a.locator=f}else{if(Kz(E,a,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=qz(n,_,E.tagName,s,a)}else{_++}}}catch(e){r.error("element parse error: "+e);_=-1}if(_>p){p=_}else{t(Math.max(v,p)+1)}}}function Gz(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber;return t}function Wz(e,t,n,i,a,r){var o;var s;var l=++t;var u=Pz;while(true){var h=e.charAt(l);switch(h){case"=":if(u===Oz){o=e.slice(t,l);u=Fz}else if(u===zz){u=Fz}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(u===Fz||u===Oz){if(u===Oz){r.warning('attribute value must after "="');o=e.slice(t,l)}t=l+1;l=e.indexOf(h,t);if(l>0){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t-1);u=Iz}else{throw new Error("attribute value no end '"+h+"' match")}}else if(u==Lz){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t);r.warning('attribute "'+o+'" missed start quot('+h+")!!");t=l+1;u=Iz}else{throw new Error('attribute value must after "="')}break;case"/":switch(u){case Pz:n.setTagName(e.slice(t,l));case Iz:case jz:case Hz:u=Hz;n.closed=true;case Lz:case Oz:case zz:break;default:throw new Error("attribute invalid close char('/')")}break;case"":r.error("unexpected end of input");if(u==Pz){n.setTagName(e.slice(t,l))}return l;case">":switch(u){case Pz:n.setTagName(e.slice(t,l));case Iz:case jz:case Hz:break;case Lz:case Oz:s=e.slice(t,l);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case zz:if(u===zz){s=o}if(u==Lz){r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,a),t)}else{if(i[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,t)}break;case Fz:throw new Error("attribute value missed!!")}return l;case"€":h=" ";default:if(h<=" "){switch(u){case Pz:n.setTagName(e.slice(t,l));u=jz;break;case Oz:o=e.slice(t,l);u=zz;break;case Lz:var s=e.slice(t,l).replace(/&#?\w+;/g,a);r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,t);case Iz:u=jz;break}}else{switch(u){case zz:var c=n.tagName;if(i[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,t);t=l;u=Oz;break;case Iz:r.warning('attribute space is required"'+o+'"!!');case jz:u=Oz;t=l;break;case Fz:u=Lz;t=l;break;case Hz:throw new Error("elements closed character '/' and '>' must be connected to")}}}l++}}function Kz(e,t,n){var i=e.tagName;var a=null;var r=e.length;while(r--){var o=e[r];var s=o.qName;var l=o.value;var u=s.indexOf(":");if(u>0){var h=o.prefix=s.slice(0,u);var c=s.slice(u+1);var f=h==="xmlns"&&c}else{c=s;h=null;f=s==="xmlns"&&""}o.localName=c;if(f!==false){if(a==null){a={};Xz(n,n={})}n[f]=a[f]=l;o.uri="http://www.w3.org/2000/xmlns/";t.startPrefixMapping(f,l)}}var r=e.length;while(r--){o=e[r];var h=o.prefix;if(h){if(h==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(h!=="xmlns"){o.uri=n[h||""]}}}var u=i.indexOf(":");if(u>0){h=e.prefix=i.slice(0,u);c=e.localName=i.slice(u+1)}else{h=null;c=e.localName=i}var d=e.uri=n[h||""];t.startElement(d,c,i,e);if(e.closed){t.endElement(d,c,i);if(a){for(h in a){t.endPrefixMapping(h)}}}else{e.currentNSMap=n;e.localNSMap=a;return true}}function qz(e,t,n,i,a){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("</"+n+">",t);var o=e.substring(t+1,r);if(/[&<]/.test(o)){if(/^script$/i.test(n)){a.characters(o,0,o.length);return r}o=o.replace(/&#?\w+;/g,i);a.characters(o,0,o.length);return r}}return t+1}function Yz(e,t,n,i){var a=i[n];if(a==null){a=e.lastIndexOf("</"+n+">");if(a<t){a=e.lastIndexOf("</"+n)}i[n]=a}return a<t}function Xz(e,t){for(var n in e){t[n]=e[n]}}function $z(e,t,n,i){var a=e.charAt(t+2);switch(a){case"-":if(e.charAt(t+3)==="-"){var r=e.indexOf("--\x3e",t+4);if(r>t){n.comment(e,t+4,r-t-4);return r+3}else{i.error("Unclosed comment");return-1}}else{return-1}default:if(e.substr(t+3,6)=="CDATA["){var r=e.indexOf("]]>",t+9);n.startCDATA();n.characters(e,t+9,r-t-9);n.endCDATA();return r+3}var o=eF(e,t);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0];var u=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var h=s>4&&o[4][0];var c=o[s-1];n.startDTD(l,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),h&&h.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return c.index+c[0].length}}return-1}function Zz(e,t,n){var i=e.indexOf("?>",t);if(i){var a=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(a){var r=a[0].length;n.processingInstruction(a[1],a[2]);return i+2}else{return-1}}return-1}function Jz(e){}Jz.prototype={setTagName:function e(t){if(!Dz.test(t)){throw new Error("invalid tagName:"+t)}this.tagName=t},add:function e(t,n,i){if(!Dz.test(t)){throw new Error("invalid attribute:"+t)}this[this.length++]={qName:t,value:n,offset:i}},length:0,getLocalName:function e(t){return this[t].localName},getLocator:function e(t){return this[t].locator},getQName:function e(t){return this[t].qName},getURI:function e(t){return this[t].uri},getValue:function e(t){return this[t].value}};function Qz(e,t){e.__proto__=t;return e}if(!(Qz({},Qz.prototype)instanceof Qz)){Qz=function e(t,n){function i(){}i.prototype=n;i=new i;for(n in t){i[n]=t[n]}return i}}function eF(e,t){var n;var i=[];var a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;a.lastIndex=t;a.exec(e);while(n=a.exec(e)){i.push(n);if(n[1])return i}}var tF=Vz;var nF={XMLReader:tF};function iF(e,t){for(var n in e){t[n]=e[n]}}function aF(e,t){var n=e.prototype;if(Object.create){var i=Object.create(t.prototype);n.__proto__=i}if(!(n instanceof t)){var a=function e(){};a.prototype=t.prototype;a=new a;iF(n,a);e.prototype=n=a}if(n.constructor!=e){if(typeof e!="function"){console.error("unknow Class:"+e)}n.constructor=e}}var rF="http://www.w3.org/1999/xhtml";var oF={};var sF=oF.ELEMENT_NODE=1;var lF=oF.ATTRIBUTE_NODE=2;var uF=oF.TEXT_NODE=3;var hF=oF.CDATA_SECTION_NODE=4;var cF=oF.ENTITY_REFERENCE_NODE=5;var fF=oF.ENTITY_NODE=6;var dF=oF.PROCESSING_INSTRUCTION_NODE=7;var gF=oF.COMMENT_NODE=8;var pF=oF.DOCUMENT_NODE=9;var vF=oF.DOCUMENT_TYPE_NODE=10;var mF=oF.DOCUMENT_FRAGMENT_NODE=11;var yF=oF.NOTATION_NODE=12;var _F={};var bF={};var wF=_F.INDEX_SIZE_ERR=(bF[1]="Index size error",1);var xF=_F.DOMSTRING_SIZE_ERR=(bF[2]="DOMString size error",2);var kF=_F.HIERARCHY_REQUEST_ERR=(bF[3]="Hierarchy request error",3);var SF=_F.WRONG_DOCUMENT_ERR=(bF[4]="Wrong document",4);var CF=_F.INVALID_CHARACTER_ERR=(bF[5]="Invalid character",5);var EF=_F.NO_DATA_ALLOWED_ERR=(bF[6]="No data allowed",6);var AF=_F.NO_MODIFICATION_ALLOWED_ERR=(bF[7]="No modification allowed",7);var RF=_F.NOT_FOUND_ERR=(bF[8]="Not found",8);var MF=_F.NOT_SUPPORTED_ERR=(bF[9]="Not supported",9);var TF=_F.INUSE_ATTRIBUTE_ERR=(bF[10]="Attribute in use",10);var BF=_F.INVALID_STATE_ERR=(bF[11]="Invalid state",11);var NF=_F.SYNTAX_ERR=(bF[12]="Syntax error",12);var DF=_F.INVALID_MODIFICATION_ERR=(bF[13]="Invalid modification",13);var PF=_F.NAMESPACE_ERR=(bF[14]="Invalid namespace",14);var OF=_F.INVALID_ACCESS_ERR=(bF[15]="Invalid access",15);function zF(e,t){if(t instanceof Error){var n=t}else{n=this;Error.call(this,bF[e]);this.message=bF[e];if(Error.captureStackTrace)Error.captureStackTrace(this,zF)}n.code=e;if(t)this.message=this.message+": "+t;return n}zF.prototype=Error.prototype;iF(_F,zF);function FF(){}FF.prototype={length:0,item:function e(t){return this[t]||null},toString:function e(t,n){for(var i=[],a=0;a<this.length;a++){vL(this[a],i,t,n)}return i.join("")}};function LF(e,t){this._node=e;this._refresh=t;IF(this)}function IF(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);_L(e,"length",n.length);iF(n,e);e._inc=t}}LF.prototype.item=function(e){IF(this);return this[e]};aF(LF,FF);function jF(){}function HF(e,t){var n=e.length;while(n--){if(e[n]===t){return n}}}function VF(e,t,n,i){if(i){t[HF(t,i)]=n}else{t[t.length++]=n}if(e){n.ownerElement=e;var a=e.ownerDocument;if(a){i&&$F(a,e,i);XF(a,e,n)}}}function UF(e,t,n){var i=HF(t,n);if(i>=0){var a=t.length-1;while(i<a){t[i]=t[++i]}t.length=a;if(e){var r=e.ownerDocument;if(r){$F(r,e,n);n.ownerElement=null}}}else{throw zF(RF,new Error(e.tagName+"@"+n))}}jF.prototype={length:0,item:FF.prototype.item,getNamedItem:function e(t){var n=this.length;while(n--){var i=this[n];if(i.nodeName==t){return i}}},setNamedItem:function e(t){var n=t.ownerElement;if(n&&n!=this._ownerElement){throw new zF(TF)}var i=this.getNamedItem(t.nodeName);VF(this._ownerElement,this,t,i);return i},setNamedItemNS:function e(t){var n=t.ownerElement,i;if(n&&n!=this._ownerElement){throw new zF(TF)}i=this.getNamedItemNS(t.namespaceURI,t.localName);VF(this._ownerElement,this,t,i);return i},removeNamedItem:function e(t){var n=this.getNamedItem(t);UF(this._ownerElement,this,n);return n},removeNamedItemNS:function e(t,n){var i=this.getNamedItemNS(t,n);UF(this._ownerElement,this,i);return i},getNamedItemNS:function e(t,n){var i=this.length;while(i--){var a=this[i];if(a.localName==n&&a.namespaceURI==t){return a}}return null}};function GF(e){this._features={};if(e){for(var t in e){this._features=e[t]}}}GF.prototype={hasFeature:function e(t,n){var i=this._features[t.toLowerCase()];if(i&&(!n||n in i)){return true}else{return false}},createDocument:function e(t,n,i){var a=new YF;a.implementation=this;a.childNodes=new FF;a.doctype=i;if(i){a.appendChild(i)}if(n){var r=a.createElementNS(t,n);a.appendChild(r)}return a},createDocumentType:function e(t,n,i){var a=new sL;a.name=t;a.nodeName=t;a.publicId=n;a.systemId=i;return a}};function WF(){}WF.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 e(t,n){return QF(this,t,n)},replaceChild:function e(t,n){this.insertBefore(t,n);if(n){this.removeChild(n)}},removeChild:function e(t){return JF(this,t)},appendChild:function e(t){return this.insertBefore(t,null)},hasChildNodes:function e(){return this.firstChild!=null},cloneNode:function e(t){return yL(this.ownerDocument||this,this,t)},normalize:function e(){var t=this.firstChild;while(t){var n=t.nextSibling;if(n&&n.nodeType==uF&&t.nodeType==uF){this.removeChild(n);t.appendData(n.data)}else{t.normalize();t=n}}},isSupported:function e(t,n){return this.ownerDocument.implementation.hasFeature(t,n)},hasAttributes:function e(){return this.attributes.length>0},lookupPrefix:function e(t){var n=this;while(n){var i=n._nsMap;if(i){for(var a in i){if(i[a]==t){return a}}}n=n.nodeType==lF?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function e(t){var n=this;while(n){var i=n._nsMap;if(i){if(t in i){return i[t]}}n=n.nodeType==lF?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function e(t){var n=this.lookupPrefix(t);return n==null}};function KF(e){return e=="<"&&"&lt;"||e==">"&&"&gt;"||e=="&"&&"&amp;"||e=='"'&&"&quot;"||"&#"+e.charCodeAt()+";"}iF(oF,WF);iF(oF,WF.prototype);function qF(e,t){if(t(e)){return true}if(e=e.firstChild){do{if(qF(e,t)){return true}}while(e=e.nextSibling)}}function YF(){}function XF(e,t,n){e&&e._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){t._nsMap[n.prefix?n.localName:""]=n.value}}function $F(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;if(a=="http://www.w3.org/2000/xmlns/"){delete t._nsMap[n.prefix?n.localName:""]}}function ZF(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n){i[i.length++]=n}else{var a=t.firstChild;var r=0;while(a){i[r++]=a;a=a.nextSibling}i.length=r}}}function JF(e,t){var n=t.previousSibling;var i=t.nextSibling;if(n){n.nextSibling=i}else{e.firstChild=i}if(i){i.previousSibling=n}else{e.lastChild=n}ZF(e.ownerDocument,e);return t}function QF(e,t,n){var i=t.parentNode;if(i){i.removeChild(t)}if(t.nodeType===mF){var a=t.firstChild;if(a==null){return t}var r=t.lastChild}else{a=r=t}var o=n?n.previousSibling:e.lastChild;a.previousSibling=o;r.nextSibling=n;if(o){o.nextSibling=a}else{e.firstChild=a}if(n==null){e.lastChild=r}else{n.previousSibling=r}do{a.parentNode=e}while(a!==r&&(a=a.nextSibling));ZF(e.ownerDocument||e,e);if(t.nodeType==mF){t.firstChild=t.lastChild=null}return t}function eL(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);var i=e.lastChild}var i=e.lastChild;t.parentNode=e;t.previousSibling=i;t.nextSibling=null;if(i){i.nextSibling=t}else{e.firstChild=t}e.lastChild=t;ZF(e.ownerDocument,e,t);return t}YF.prototype={nodeName:"#document",nodeType:pF,doctype:null,documentElement:null,_inc:1,insertBefore:function e(t,n){if(t.nodeType==mF){var i=t.firstChild;while(i){var a=i.nextSibling;this.insertBefore(i,n);i=a}return t}if(this.documentElement==null&&t.nodeType==sF){this.documentElement=t}return QF(this,t,n),t.ownerDocument=this,t},removeChild:function e(t){if(this.documentElement==t){this.documentElement=null}return JF(this,t)},importNode:function e(t,n){return mL(this,t,n)},getElementById:function e(t){var n=null;qF(this.documentElement,function(e){if(e.nodeType==sF){if(e.getAttribute("id")==t){n=e;return true}}});return n},createElement:function e(t){var n=new tL;n.ownerDocument=this;n.nodeName=t;n.tagName=t;n.childNodes=new FF;var i=n.attributes=new jF;i._ownerElement=n;return n},createDocumentFragment:function e(){var t=new cL;t.ownerDocument=this;t.childNodes=new FF;return t},createTextNode:function e(t){var n=new aL;n.ownerDocument=this;n.appendData(t);return n},createComment:function e(t){var n=new rL;n.ownerDocument=this;n.appendData(t);return n},createCDATASection:function e(t){var n=new oL;n.ownerDocument=this;n.appendData(t);return n},createProcessingInstruction:function e(t,n){var i=new fL;i.ownerDocument=this;i.tagName=i.target=t;i.nodeValue=i.data=n;return i},createAttribute:function e(t){var n=new nL;n.ownerDocument=this;n.name=t;n.nodeName=t;n.localName=t;n.specified=true;return n},createEntityReference:function e(t){var n=new hL;n.ownerDocument=this;n.nodeName=t;return n},createElementNS:function e(t,n){var i=new tL;var a=n.split(":");var r=i.attributes=new jF;i.childNodes=new FF;i.ownerDocument=this;i.nodeName=n;i.tagName=n;i.namespaceURI=t;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}r._ownerElement=i;return i},createAttributeNS:function e(t,n){var i=new nL;var a=n.split(":");i.ownerDocument=this;i.nodeName=n;i.name=n;i.namespaceURI=t;i.specified=true;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}return i}};aF(YF,WF);function tL(){this._nsMap={}}tL.prototype={nodeType:sF,hasAttribute:function e(t){return this.getAttributeNode(t)!=null},getAttribute:function e(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function e(t){return this.attributes.getNamedItem(t)},setAttribute:function e(t,n){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+n;this.setAttributeNode(i)},removeAttribute:function e(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function e(t){if(t.nodeType===mF){return this.insertBefore(t,null)}else{return eL(this,t)}},setAttributeNode:function e(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function e(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function e(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);i&&this.removeAttributeNode(i)},hasAttributeNS:function e(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);return i&&i.value||""},setAttributeNS:function e(t,n,i){var a=this.ownerDocument.createAttributeNS(t,n);a.value=a.nodeValue=""+i;this.setAttributeNode(a)},getAttributeNodeNS:function e(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function e(i){return new LF(this,function(t){var n=[];qF(t,function(e){if(e!==t&&e.nodeType==sF&&(i==="*"||e.tagName==i)){n.push(e)}});return n})},getElementsByTagNameNS:function e(i,a){return new LF(this,function(t){var n=[];qF(t,function(e){if(e!==t&&e.nodeType===sF&&(i==="*"||e.namespaceURI===i)&&(a==="*"||e.localName==a)){n.push(e)}});return n})}};YF.prototype.getElementsByTagName=tL.prototype.getElementsByTagName;YF.prototype.getElementsByTagNameNS=tL.prototype.getElementsByTagNameNS;aF(tL,WF);function nL(){}nL.prototype.nodeType=lF;aF(nL,WF);function iL(){}iL.prototype={data:"",substringData:function e(t,n){return this.data.substring(t,t+n)},appendData:function e(t){t=this.data+t;this.nodeValue=this.data=t;this.length=t.length},insertData:function e(t,n){this.replaceData(t,0,n)},appendChild:function e(t){throw new Error(bF[kF])},deleteData:function e(t,n){this.replaceData(t,n,"")},replaceData:function e(t,n,i){var a=this.data.substring(0,t);var r=this.data.substring(t+n);i=a+i+r;this.nodeValue=this.data=i;this.length=i.length}};aF(iL,WF);function aL(){}aL.prototype={nodeName:"#text",nodeType:uF,splitText:function e(t){var n=this.data;var i=n.substring(t);n=n.substring(0,t);this.data=this.nodeValue=n;this.length=n.length;var a=this.ownerDocument.createTextNode(i);if(this.parentNode){this.parentNode.insertBefore(a,this.nextSibling)}return a}};aF(aL,iL);function rL(){}rL.prototype={nodeName:"#comment",nodeType:gF};aF(rL,iL);function oL(){}oL.prototype={nodeName:"#cdata-section",nodeType:hF};aF(oL,iL);function sL(){}sL.prototype.nodeType=vF;aF(sL,WF);function lL(){}lL.prototype.nodeType=yF;aF(lL,WF);function uL(){}uL.prototype.nodeType=fF;aF(uL,WF);function hL(){}hL.prototype.nodeType=cF;aF(hL,WF);function cL(){}cL.prototype.nodeName="#document-fragment";cL.prototype.nodeType=mF;aF(cL,WF);function fL(){}fL.prototype.nodeType=dF;aF(fL,WF);function dL(){}dL.prototype.serializeToString=function(e,t,n){return gL.call(e,t,n)};WF.prototype.toString=gL;function gL(e,t){var n=[];var i=this.nodeType==9?this.documentElement:this;var a=i.prefix;var r=i.namespaceURI;if(r&&a==null){var a=i.lookupPrefix(r);if(a==null){var o=[{namespace:r,prefix:null}]}}vL(this,n,e,t,o);return n.join("")}function pL(e,t,n){var i=e.prefix||"";var a=e.namespaceURI;if(!i&&!a){return false}if(i==="xml"&&a==="http://www.w3.org/XML/1998/namespace"||a=="http://www.w3.org/2000/xmlns/"){return false}var r=n.length;while(r--){var o=n[r];if(o.prefix==i){return o.namespace!=a}}return true}function vL(e,t,n,i,a){if(i){e=i(e);if(e){if(typeof e=="string"){t.push(e);return}}else{return}}switch(e.nodeType){case sF:if(!a)a=[];var r=a.length;var o=e.attributes;var s=o.length;var l=e.firstChild;var u=e.tagName;n=rF===e.namespaceURI||n;t.push("<",u);for(var h=0;h<s;h++){var c=o.item(h);if(c.prefix=="xmlns"){a.push({prefix:c.localName,namespace:c.value})}else if(c.nodeName=="xmlns"){a.push({prefix:"",namespace:c.value})}}for(var h=0;h<s;h++){var c=o.item(h);if(pL(c,n,a)){var f=c.prefix||"";var d=c.namespaceURI;var g=f?" xmlns:"+f:" xmlns";t.push(g,'="',d,'"');a.push({prefix:f,namespace:d})}vL(c,t,n,i,a)}if(pL(e,n,a)){var f=e.prefix||"";var d=e.namespaceURI;var g=f?" xmlns:"+f:" xmlns";t.push(g,'="',d,'"');a.push({prefix:f,namespace:d})}if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){t.push(">");if(n&&/^script$/i.test(u)){while(l){if(l.data){t.push(l.data)}else{vL(l,t,n,i,a)}l=l.nextSibling}}else{while(l){vL(l,t,n,i,a);l=l.nextSibling}}t.push("</",u,">")}else{t.push("/>")}return;case pF:case mF:var l=e.firstChild;while(l){vL(l,t,n,i,a);l=l.nextSibling}return;case lF:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,KF),'"');case uF:return t.push(e.data.replace(/[<&]/g,KF));case hF:return t.push("<![CDATA[",e.data,"]]>");case gF:return t.push("\x3c!--",e.data,"--\x3e");case vF:var p=e.publicId;var v=e.systemId;t.push("<!DOCTYPE ",e.name);if(p){t.push(' PUBLIC "',p);if(v&&v!="."){t.push('" "',v)}t.push('">')}else if(v&&v!="."){t.push(' SYSTEM "',v,'">')}else{var m=e.internalSubset;if(m){t.push(" [",m,"]")}t.push(">")}return;case dF:return t.push("<?",e.target," ",e.data,"?>");case cF:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function mL(e,t,n){var i;switch(t.nodeType){case sF:i=t.cloneNode(false);i.ownerDocument=e;case mF:break;case lF:n=true;break}if(!i){i=t.cloneNode(false)}i.ownerDocument=e;i.parentNode=null;if(n){var a=t.firstChild;while(a){i.appendChild(mL(e,a,n));a=a.nextSibling}}return i}function yL(e,t,n){var i=new t.constructor;for(var a in t){var r=t[a];if(F(r)!="object"){if(r!=i[a]){i[a]=r}}}if(t.childNodes){i.childNodes=new FF}i.ownerDocument=e;switch(i.nodeType){case sF:var o=t.attributes;var s=i.attributes=new jF;var l=o.length;s._ownerElement=i;for(var u=0;u<l;u++){i.setAttributeNode(yL(e,o.item(u),true))}break;case lF:n=true}if(n){var h=t.firstChild;while(h){i.appendChild(yL(e,h,n));h=h.nextSibling}}return i}function _L(e,t,n){e[t]=n}try{if(Object.defineProperty){var bL=function e(t){switch(t.nodeType){case sF:case mF:var n=[];t=t.firstChild;while(t){if(t.nodeType!==7&&t.nodeType!==8){n.push(e(t))}t=t.nextSibling}return n.join("");default:return t.nodeValue}};Object.defineProperty(LF.prototype,"length",{get:function e(){IF(this);return this.$$length}});Object.defineProperty(WF.prototype,"textContent",{get:function e(){return bL(this)},set:function e(t){switch(this.nodeType){case sF:case mF:while(this.firstChild){this.removeChild(this.firstChild)}if(t||String(t)){this.appendChild(this.ownerDocument.createTextNode(t))}break;default:this.data=t;this.value=t;this.nodeValue=t}}});_L=function e(t,n,i){t["$$"+n]=i}}}catch(e){}var wL=GF;var xL=dL;var kL={DOMImplementation:wL,XMLSerializer:xL};var SL=pN(function(e,t){function n(e){this.options=e||{locator:{}}}n.prototype.parseFromString=function(e,t){var n=this.options;var i=new d;var a=n.domBuilder||new h;var r=n.errorHandler;var o=n.locator;var s=n.xmlns||{};var l={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};if(o){a.setDocumentLocator(o)}i.errorHandler=u(r,a,o);i.domBuilder=n.domBuilder||a;if(/\/x?html?$/.test(t)){l.nbsp=" ";l.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(e){i.parse(e,s,l)}else{i.errorHandler.error("invalid doc source")}return a.doc};function u(i,e,a){if(!i){if(e instanceof h){return e}i=e}var r={};var o=i instanceof Function;a=a||{};function t(t){var n=i[t];if(!n&&o){n=i.length==2?function(e){i(t,e)}:i}r[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+s(a))}||function(){}}t("warning");t("error");t("fatalError");return r}function h(){this.cdata=false}function c(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber}h.prototype={startDocument:function e(){this.doc=(new i).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function e(t,n,i,a){var r=this.doc;var o=r.createElementNS(t,i||n);var s=a.length;f(this,o);this.currentElement=o;this.locator&&c(this.locator,o);for(var l=0;l<s;l++){var t=a.getURI(l);var u=a.getValue(l);var i=a.getQName(l);var h=r.createAttributeNS(t,i);this.locator&&c(a.getLocator(l),h);h.value=h.nodeValue=u;o.setAttributeNode(h)}},endElement:function e(t,n,i){var a=this.currentElement;var r=a.tagName;this.currentElement=a.parentNode},startPrefixMapping:function e(t,n){},endPrefixMapping:function e(t){},processingInstruction:function e(t,n){var i=this.doc.createProcessingInstruction(t,n);this.locator&&c(this.locator,i);f(this,i)},ignorableWhitespace:function e(t,n,i){},characters:function e(t,n,i){t=r.apply(this,arguments);if(t){if(this.cdata){var a=this.doc.createCDATASection(t)}else{var a=this.doc.createTextNode(t)}if(this.currentElement){this.currentElement.appendChild(a)}else if(/^\s*$/.test(t)){this.doc.appendChild(a)}this.locator&&c(this.locator,a)}},skippedEntity:function e(t){},endDocument:function e(){this.doc.normalize()},setDocumentLocator:function e(t){if(this.locator=t){t.lineNumber=0}},comment:function e(t,n,i){t=r.apply(this,arguments);var a=this.doc.createComment(t);this.locator&&c(this.locator,a);f(this,a)},startCDATA:function e(){this.cdata=true},endCDATA:function e(){this.cdata=false},startDTD:function e(t,n,i){var a=this.doc.implementation;if(a&&a.createDocumentType){var r=a.createDocumentType(t,n,i);this.locator&&c(this.locator,r);f(this,r)}},warning:function e(t){console.warn("[xmldom warning]\t"+t,s(this.locator))},error:function e(t){console.error("[xmldom error]\t"+t,s(this.locator))},fatalError:function e(t){console.error("[xmldom fatalError]\t"+t,s(this.locator));throw t}};function s(e){if(e){return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}}function r(e,t,n){if(typeof e=="string"){return e.substr(t,n)}else{if(e.length>=t+n||t){return new java.lang.String(e,t,n)+""}return e}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}});function f(e,t){if(!e.currentElement){e.doc.appendChild(t)}else{e.currentElement.appendChild(t)}}var d=nF.XMLReader;var i=t.DOMImplementation=kL.DOMImplementation;t.XMLSerializer=kL.XMLSerializer;t.DOMParser=n});var CL=SL.DOMImplementation;var EL=SL.XMLSerializer;var AL=SL.DOMParser;function RL(e,t,n){if(e==null&&t==null&&n==null){var i=document.querySelectorAll("svg");for(var a=0;a<i.length;a++){var r=i[a];var o=document.createElement("canvas");o.width=r.clientWidth;o.height=r.clientHeight;r.parentNode.insertBefore(o,r);r.parentNode.removeChild(r);var s=document.createElement("div");s.appendChild(r);RL(o,s.innerHTML)}return}if(typeof e=="string"){e=document.getElementById(e)}if(e.svg!=null)e.svg.stop();var l=BL(n||{});if(!(e.childNodes.length==1&&e.childNodes[0].nodeName=="OBJECT"))e.svg=l;var u=e.getContext("2d");if(typeof t.documentElement!="undefined"){l.loadXmlDoc(u,t)}else if(t.substr(0,1)=="<"){l.loadXml(u,t)}else{l.load(u,t)}}function ML(){var e;if(typeof Element.prototype.matches!="undefined"){e=function e(t,n){return t.matches(n)}}else if(typeof Element.prototype.webkitMatchesSelector!="undefined"){e=function e(t,n){return t.webkitMatchesSelector(n)}}else if(typeof Element.prototype.mozMatchesSelector!="undefined"){e=function e(t,n){return t.mozMatchesSelector(n)}}else if(typeof Element.prototype.msMatchesSelector!="undefined"){e=function e(t,n){return t.msMatchesSelector(n)}}else if(typeof Element.prototype.oMatchesSelector!="undefined"){e=function e(t,n){return t.oMatchesSelector(n)}}else{if(typeof jQuery=="function"||typeof Zepto=="function"){e=function e(t,n){return $(t).is(n)}}if(typeof e=="undefined"){e=Sizzle.matchesSelector}}return e}function TL(a){var r=[0,0,0];var e=/(\[[^\]]+\])/g;var t=/(#[^\s\+>~\.\[:]+)/g;var n=/(\.[^\s\+>~\.\[:]+)/g;var i=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi;var o=/(:[\w-]+\([^\)]*\))/gi;var s=/(:[^\s\+>~\.\[:]+)/g;var l=/([^\s\+>~\.\[:]+)/g;var u=function e(t,n){var i=a.match(t);if(i==null){return}r[n]+=i.length;a=a.replace(t," ")};a=a.replace(/:not\(([^\)]*)\)/g," $1 ");a=a.replace(/{[^]*/gm," ");u(e,1);u(t,0);u(n,1);u(i,2);u(o,1);u(s,1);a=a.replace(/[\*\s\+>~]/g," ");a=a.replace(/[#\.]/g," ");u(l,2);return r.join("")}function BL(e){var N={opts:e};var u=ML();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(e,t,n,i,a,r){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:t,offsetY:n,scaleWidth:i,scaleHeight:a};for(var s in r){if(r.hasOwnProperty(s)){o[s]=r[s]}}RL(this.canvas,e,o)}}N.FRAMERATE=30;N.MAX_VIRTUAL_PIXELS=3e4;N.log=function(e){};if(N.opts.log==true&&typeof console!="undefined"){N.log=function(e){console.log(e)}}N.init=function(e){var t=0;N.UniqueId=function(){t++;return"canvg"+t};N.Definitions={};N.Styles={};N.StylesSpecificity={};N.Animations=[];N.Images=[];N.ctx=e;N.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(e,t){this.viewPorts.push({width:e,height:t})};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(e){if(e!=null&&typeof e=="number")return e;if(e=="x")return this.width();if(e=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};N.init();N.ImagesLoaded=function(){for(var e=0;e<N.Images.length;e++){if(!N.Images[e].loaded)return false}return true};N.trim=function(e){return e.replace(/^\s+|\s+$/g,"")};N.compressSpaces=function(e){return e.replace(/[\s\r\t\n]+/gm," ")};N.ajax=function(e){var t;if(window.XMLHttpRequest){t=new XMLHttpRequest}else{t=new ActiveXObject("Microsoft.XMLHTTP")}if(t){t.open("GET",e,false);t.send(null);return t.responseText}return null};N.parseXml=function(e){if(typeof Windows!="undefined"&&typeof Windows.Data!="undefined"&&typeof Windows.Data.Xml!="undefined"){var t=new Windows.Data.Xml.Dom.XmlDocument;var n=new Windows.Data.Xml.Dom.XmlLoadSettings;n.prohibitDtd=false;t.loadXml(e,n);return t}else if(window.DOMParser){var i=new DOMParser;return i.parseFromString(e,"text/xml")}else{e=e.replace(/<!DOCTYPE svg[^>]*>/,"");var t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(e);return t}};N.Property=function(e,t){this.name=e;this.value=t};N.Property.prototype.getValue=function(){return this.value};N.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};N.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);if((this.value+"").match(/%$/)){e=e/100}return e};N.Property.prototype.valueOrDefault=function(e){if(this.hasValue())return this.value;return e};N.Property.prototype.numValueOrDefault=function(e){if(this.hasValue())return this.numValue();return e};N.Property.prototype.addOpacity=function(e){var t=this.value;if(e.value!=null&&e.value!=""&&typeof this.value=="string"){var n=new Cz(this.value);if(n.ok){t="rgba("+n.r+", "+n.g+", "+n.b+", "+e.numValue()+")"}}return new N.Property(this.name,t)};N.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);if(e){e=e[1]}if(!e){e=this.value}return N.Definitions[e]};N.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};N.Property.prototype.getFillStyleDefinition=function(e,t){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(N.ctx,e,t)}if(n!=null&&n.createPattern){if(n.getHrefAttribute().hasValue()){var i=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition();if(i.hasValue()){n.attribute("patternTransform",true).value=i.value}}return n.createPattern(N.ctx,e)}return null};N.Property.prototype.getDPI=function(e){return 96};N.Property.prototype.getEM=function(e){var t=12;var n=new N.Property("fontSize",N.Font.Parse(N.ctx.font).fontSize);if(n.hasValue())t=n.toPixels(e);return t};N.Property.prototype.getUnits=function(){var e=this.value+"";return e.replace(/[0-9\.\-]/g,"")};N.Property.prototype.toPixels=function(e,t){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(e);if(n.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(e);if(n.match(/%$/))return this.numValue()*N.ViewPort.ComputeSize(e);var i=this.numValue();if(t&&i<1)return i*N.ViewPort.ComputeSize(e);return i};N.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/s$/))return this.numValue()*1e3;if(e.match(/ms$/))return this.numValue();return this.numValue()};N.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/deg$/))return this.numValue()*(Math.PI/180);if(e.match(/grad$/))return this.numValue()*(Math.PI/200);if(e.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var t={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"};N.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return t[this.value]};N.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(e,t,n,i,a,r){var o=r!=null?this.Parse(r):this.CreateFont("","","","","",N.ctx.font);return{fontFamily:a||o.fontFamily,fontSize:i||o.fontSize,fontStyle:e||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:t||o.fontVariant,toString:function e(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(e){var t={};var n=N.trim(N.compressSpaces(e||"")).split(" ");var i={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var a="";for(var r=0;r<n.length;r++){if(!i.fontStyle&&o.Styles.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontStyle=n[r];i.fontStyle=true}else if(!i.fontVariant&&o.Variants.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontVariant=n[r];i.fontStyle=i.fontVariant=true}else if(!i.fontWeight&&o.Weights.indexOf(n[r])!=-1){if(n[r]!="inherit")t.fontWeight=n[r];i.fontStyle=i.fontVariant=i.fontWeight=true}else if(!i.fontSize){if(n[r]!="inherit")t.fontSize=n[r].split("/")[0];i.fontStyle=i.fontVariant=i.fontWeight=i.fontSize=true}else{if(n[r]!="inherit")a+=n[r]}}if(a!="")t.fontFamily=a;return t}};N.ToNumberArray=function(e){var t=N.trim(N.compressSpaces((e||"").replace(/,/g," "))).split(" ");for(var n=0;n<t.length;n++){t[n]=parseFloat(t[n])}return t};N.Point=function(e,t){this.x=e;this.y=t};N.Point.prototype.angleTo=function(e){return Math.atan2(e.y-this.y,e.x-this.x)};N.Point.prototype.applyTransform=function(e){var t=this.x*e[0]+this.y*e[2]+e[4];var n=this.x*e[1]+this.y*e[3]+e[5];this.x=t;this.y=n};N.CreatePoint=function(e){var t=N.ToNumberArray(e);return new N.Point(t[0],t[1])};N.CreatePath=function(e){var t=N.ToNumberArray(e);var n=[];for(var i=0;i<t.length;i+=2){n.push(new N.Point(t[i],t[i+1]))}return n};N.BoundingBox=function(e,t,n,i){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(e,t){if(e!=null){if(isNaN(this.x1)||isNaN(this.x2)){this.x1=e;this.x2=e}if(e<this.x1)this.x1=e;if(e>this.x2)this.x2=e}if(t!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=t;this.y2=t}if(t<this.y1)this.y1=t;if(t>this.y2)this.y2=t}};this.addX=function(e){this.addPoint(e,null)};this.addY=function(e){this.addPoint(null,e)};this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1);this.addPoint(e.x2,e.y2)};this.addQuadraticCurve=function(e,t,n,i,a,r){var o=e+2/3*(n-e);var s=t+2/3*(i-t);var l=o+1/3*(a-e);var u=s+1/3*(r-t);this.addBezierCurve(e,t,o,l,s,u,a,r)};this.addBezierCurve=function(e,t,n,i,a,r,o,s){var l=[e,t],u=[n,i],h=[a,r],c=[o,s];this.addPoint(l[0],l[1]);this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var d=function e(t){return Math.pow(1-t,3)*l[f]+3*Math.pow(1-t,2)*t*u[f]+3*(1-t)*Math.pow(t,2)*h[f]+Math.pow(t,3)*c[f]};var g=6*l[f]-12*u[f]+6*h[f];var p=-3*l[f]+9*u[f]-9*h[f]+3*c[f];var v=3*u[f]-3*l[f];if(p==0){if(g==0)continue;var m=-v/g;if(0<m&&m<1){if(f==0)this.addX(d(m));if(f==1)this.addY(d(m))}continue}var y=Math.pow(g,2)-4*v*p;if(y<0)continue;var _=(-g+Math.sqrt(y))/(2*p);if(0<_&&_<1){if(f==0)this.addX(d(_));if(f==1)this.addY(d(_))}var b=(-g-Math.sqrt(y))/(2*p);if(0<b&&b<1){if(f==0)this.addX(d(b));if(f==1)this.addY(d(b))}}};this.isPointInBox=function(e,t){return this.x1<=e&&e<=this.x2&&this.y1<=t&&t<=this.y2};this.addPoint(e,t);this.addPoint(n,i)};N.Transform=function(e){var t=this;this.Type={};this.Type.translate=function(e){this.p=N.CreatePoint(e);this.apply=function(e){e.translate(this.p.x||0,this.p.y||0)};this.unapply=function(e){e.translate(-1*this.p.x||0,-1*this.p.y||0)};this.applyToPoint=function(e){e.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}};this.Type.rotate=function(e){var t=N.ToNumberArray(e);this.angle=new N.Property("angle",t[0]);this.cx=t[1]||0;this.cy=t[2]||0;this.apply=function(e){e.translate(this.cx,this.cy);e.rotate(this.angle.toRadians());e.translate(-this.cx,-this.cy)};this.unapply=function(e){e.translate(this.cx,this.cy);e.rotate(-1*this.angle.toRadians());e.translate(-this.cx,-this.cy)};this.applyToPoint=function(e){var t=this.angle.toRadians();e.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]);e.applyTransform([Math.cos(t),Math.sin(t),-Math.sin(t),Math.cos(t),0,0]);e.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}};this.Type.scale=function(e){this.p=N.CreatePoint(e);this.apply=function(e){e.scale(this.p.x||1,this.p.y||this.p.x||1)};this.unapply=function(e){e.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)};this.applyToPoint=function(e){e.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}};this.Type.matrix=function(e){this.m=N.ToNumberArray(e);this.apply=function(e){e.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};this.unapply=function(e){var t=this.m[0];var n=this.m[2];var i=this.m[4];var a=this.m[1];var r=this.m[3];var o=this.m[5];var s=0;var l=0;var u=1;var h=1/(t*(r*u-o*l)-n*(a*u-o*s)+i*(a*l-r*s));e.transform(h*(r*u-o*l),h*(o*s-a*u),h*(i*l-n*u),h*(t*u-i*s),h*(n*o-i*r),h*(i*a-t*o))};this.applyToPoint=function(e){e.applyTransform(this.m)}};this.Type.SkewBase=function(e){this.base=t.Type.matrix;this.base(e);this.angle=new N.Property("angle",e)};this.Type.SkewBase.prototype=new this.Type.matrix;this.Type.skewX=function(e){this.base=t.Type.SkewBase;this.base(e);this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]};this.Type.skewX.prototype=new this.Type.SkewBase;this.Type.skewY=function(e){this.base=t.Type.SkewBase;this.base(e);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(e){for(var t=0;t<this.transforms.length;t++){this.transforms[t].apply(e)}};this.unapply=function(e){for(var t=this.transforms.length-1;t>=0;t--){this.transforms[t].unapply(e)}};this.applyToPoint=function(e){for(var t=0;t<this.transforms.length;t++){this.transforms[t].applyToPoint(e)}};var n=N.trim(N.compressSpaces(e)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);for(var i=0;i<n.length;i++){var a=N.trim(n[i].split("(")[0]);var r=n[i].split("(")[1].replace(")","");var o=this.Type[a];if(typeof o!="undefined"){var s=new o(r);s.type=a;this.transforms.push(s)}}};N.AspectRatio=function(e,t,n,i,a,r,o,s,l,u){t=N.compressSpaces(t);t=t.replace(/^defer\s/,"");var h=t.split(" ")[0]||"xMidYMid";var c=t.split(" ")[1]||"meet";var f=n/i;var d=a/r;var g=Math.min(f,d);var p=Math.max(f,d);if(c=="meet"){i*=g;r*=g}if(c=="slice"){i*=p;r*=p}l=new N.Property("refX",l);u=new N.Property("refY",u);if(l.hasValue()&&u.hasValue()){e.translate(-g*l.toPixels("x"),-g*u.toPixels("y"))}else{if(h.match(/^xMid/)&&(c=="meet"&&g==d||c=="slice"&&p==d))e.translate(n/2-i/2,0);if(h.match(/YMid$/)&&(c=="meet"&&g==f||c=="slice"&&p==f))e.translate(0,a/2-r/2);if(h.match(/^xMax/)&&(c=="meet"&&g==d||c=="slice"&&p==d))e.translate(n-i,0);if(h.match(/YMax$/)&&(c=="meet"&&g==f||c=="slice"&&p==f))e.translate(0,a-r)}if(h=="none")e.scale(f,d);else if(c=="meet")e.scale(g,g);else if(c=="slice")e.scale(p,p);e.translate(o==null?0:-o,s==null?0:-s)};N.Element={};N.EmptyProperty=new N.Property("EMPTY","");N.Element.ElementBase=function(r){this.attributes={};this.styles={};this.stylesSpecificity={};this.children=[];this.attribute=function(e,t){var n=this.attributes[e];if(n!=null)return n;if(t==true){n=new N.Property(e,"");this.attributes[e]=n}return n||N.EmptyProperty};this.getHrefAttribute=function(){for(var e in this.attributes){if(e=="href"||e.match(/:href$/)){return this.attributes[e]}}return N.EmptyProperty};this.style=function(e,t,n){var i=this.styles[e];if(i!=null)return i;var a=this.attribute(e);if(a!=null&&a.hasValue()){this.styles[e]=a;return a}if(n!=true){var r=this.parent;if(r!=null){var o=r.style(e);if(o!=null&&o.hasValue()){return o}}}if(t==true){i=new N.Property(e,"");this.styles[e]=i}return i||N.EmptyProperty};this.render=function(e){if(this.style("display").value=="none")return;if(this.style("visibility").value=="hidden")return;e.save();if(this.style("mask").hasValue()){var t=this.style("mask").getDefinition();if(t!=null)t.apply(e,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();if(n!=null)n.apply(e,this)}else{this.setContext(e);this.renderChildren(e);this.clearContext(e)}e.restore()};this.setContext=function(e){};this.clearContext=function(e){};this.renderChildren=function(e){for(var t=0;t<this.children.length;t++){this.children[t].render(e)}};this.addChild=function(e,t){var n=e;if(t)n=N.CreateElement(e);n.parent=this;if(n.type!="title"){this.children.push(n)}};this.addStylesFromStyleDefinition=function(){for(var e in N.Styles){if(e[0]!="@"&&u(r,e)){var t=N.Styles[e];var n=N.StylesSpecificity[e];if(t!=null){for(var i in t){var a=this.stylesSpecificity[i];if(typeof a=="undefined"){a="000"}if(n>a){this.styles[i]=t[i];this.stylesSpecificity[i]=n}}}}}};if(r!=null&&r.nodeType==1){for(var e=0;e<r.attributes.length;e++){var t=r.attributes[e];this.attributes[t.nodeName]=new N.Property(t.nodeName,t.value)}this.addStylesFromStyleDefinition();if(this.attribute("style").hasValue()){var n=this.attribute("style").value.split(";");for(var e=0;e<n.length;e++){if(N.trim(n[e])!=""){var i=n[e].split(":");var a=N.trim(i[0]);var o=N.trim(i[1]);this.styles[a]=new N.Property(a,o)}}}if(this.attribute("id").hasValue()){if(N.Definitions[this.attribute("id").value]==null){N.Definitions[this.attribute("id").value]=this}}for(var e=0;e<r.childNodes.length;e++){var s=r.childNodes[e];if(s.nodeType==1)this.addChild(s,true);if(this.captureTextNodes&&(s.nodeType==3||s.nodeType==4)){var l=s.value||s.text||s.textContent||"";if(N.compressSpaces(l)!=""){this.addChild(new N.Element.tspan(s),false)}}}}};N.Element.RenderedElementBase=function(e){this.base=N.Element.ElementBase;this.base(e);this.setContext=function(e){if(this.style("fill").isUrlDefinition()){var t=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));if(t!=null)e.fillStyle=t}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")e.fillStyle=n.value=="none"?"rgba(0,0,0,0)":n.value}if(this.style("fill-opacity").hasValue()){var n=new N.Property("fill",e.fillStyle);n=n.addOpacity(this.style("fill-opacity"));e.fillStyle=n.value}if(this.style("stroke").isUrlDefinition()){var t=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));if(t!=null)e.strokeStyle=t}else if(this.style("stroke").hasValue()){var i=this.style("stroke");if(i.value=="currentColor")i.value=this.style("color").value;if(i.value!="inherit")e.strokeStyle=i.value=="none"?"rgba(0,0,0,0)":i.value}if(this.style("stroke-opacity").hasValue()){var i=new N.Property("stroke",e.strokeStyle);i=i.addOpacity(this.style("stroke-opacity"));e.strokeStyle=i.value}if(this.style("stroke-width").hasValue()){var a=this.style("stroke-width").toPixels();e.lineWidth=a==0?.001:a}if(this.style("stroke-linecap").hasValue())e.lineCap=this.style("stroke-linecap").value;if(this.style("stroke-linejoin").hasValue())e.lineJoin=this.style("stroke-linejoin").value;if(this.style("stroke-miterlimit").hasValue())e.miterLimit=this.style("stroke-miterlimit").value;if(this.style("stroke-dasharray").hasValue()&&this.style("stroke-dasharray").value!="none"){var r=N.ToNumberArray(this.style("stroke-dasharray").value);if(typeof e.setLineDash!="undefined"){e.setLineDash(r)}else if(typeof e.webkitLineDash!="undefined"){e.webkitLineDash=r}else if(typeof e.mozDash!="undefined"&&!(r.length==1&&r[0]==0)){e.mozDash=r}var o=this.style("stroke-dashoffset").numValueOrDefault(1);if(typeof e.lineDashOffset!="undefined"){e.lineDashOffset=o}else if(typeof e.webkitLineDashOffset!="undefined"){e.webkitLineDashOffset=o}else if(typeof e.mozDashOffset!="undefined"){e.mozDashOffset=o}}if(typeof e.font!="undefined"){e.font=N.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 N.Transform(this.style("transform",false,true).value);s.apply(e)}if(this.style("clip-path",false,true).hasValue()){var l=this.style("clip-path",false,true).getDefinition();if(l!=null)l.apply(e)}if(this.style("opacity").hasValue()){e.globalAlpha=this.style("opacity").numValue()}}};N.Element.RenderedElementBase.prototype=new N.Element.ElementBase;N.Element.PathElementBase=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.path=function(e){if(e!=null)e.beginPath();return new N.BoundingBox};this.renderChildren=function(e){this.path(e);N.Mouse.checkPath(this,e);if(e.fillStyle!=""){if(this.style("fill-rule").valueOrDefault("inherit")!="inherit"){e.fill(this.style("fill-rule").value)}else{e.fill()}}if(e.strokeStyle!="")e.stroke();var t=this.getMarkers();if(t!=null){if(this.style("marker-start").isUrlDefinition()){var n=this.style("marker-start").getDefinition();n.render(e,t[0][0],t[0][1])}if(this.style("marker-mid").isUrlDefinition()){var n=this.style("marker-mid").getDefinition();for(var i=1;i<t.length-1;i++){n.render(e,t[i][0],t[i][1])}}if(this.style("marker-end").isUrlDefinition()){var n=this.style("marker-end").getDefinition();n.render(e,t[t.length-1][0],t[t.length-1][1])}}};this.getBoundingBox=function(){return this.path()};this.getMarkers=function(){return null}};N.Element.PathElementBase.prototype=new N.Element.RenderedElementBase;N.Element.svg=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.baseClearContext=this.clearContext;this.clearContext=function(e){this.baseClearContext(e);N.ViewPort.RemoveCurrent()};this.baseSetContext=this.setContext;this.setContext=function(e){e.strokeStyle="rgba(0,0,0,0)";e.lineCap="butt";e.lineJoin="miter";e.miterLimit=4;if(typeof e.font!="undefined"&&typeof window.getComputedStyle!="undefined"){e.font=window.getComputedStyle(e.canvas).getPropertyValue("font")}this.baseSetContext(e);if(!this.attribute("x").hasValue())this.attribute("x",true).value=0;if(!this.attribute("y").hasValue())this.attribute("y",true).value=0;e.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var t=N.ViewPort.width();var n=N.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"){t=this.attribute("width").toPixels("x");n=this.attribute("height").toPixels("y");var i=0;var a=0;if(this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()){i=-this.attribute("refX").toPixels("x");a=-this.attribute("refY").toPixels("y")}if(this.attribute("overflow").valueOrDefault("hidden")!="visible"){e.beginPath();e.moveTo(i,a);e.lineTo(t,a);e.lineTo(t,n);e.lineTo(i,n);e.closePath();e.clip()}}N.ViewPort.SetCurrent(t,n);if(this.attribute("viewBox").hasValue()){var r=N.ToNumberArray(this.attribute("viewBox").value);var o=r[0];var s=r[1];t=r[2];n=r[3];N.AspectRatio(e,this.attribute("preserveAspectRatio").value,N.ViewPort.width(),t,N.ViewPort.height(),n,o,s,this.attribute("refX").value,this.attribute("refY").value);N.ViewPort.RemoveCurrent();N.ViewPort.SetCurrent(r[2],r[3])}}};N.Element.svg.prototype=new N.Element.RenderedElementBase;N.Element.rect=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");var r=this.attribute("rx").toPixels("x");var o=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue())o=r;if(this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue())r=o;r=Math.min(r,i/2);o=Math.min(o,a/2);if(e!=null){e.beginPath();e.moveTo(t+r,n);e.lineTo(t+i-r,n);e.quadraticCurveTo(t+i,n,t+i,n+o);e.lineTo(t+i,n+a-o);e.quadraticCurveTo(t+i,n+a,t+i-r,n+a);e.lineTo(t+r,n+a);e.quadraticCurveTo(t,n+a,t,n+a-o);e.lineTo(t,n+o);e.quadraticCurveTo(t,n,t+r,n);e.closePath()}return new N.BoundingBox(t,n,t+i,n+a)}};N.Element.rect.prototype=new N.Element.PathElementBase;N.Element.circle=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=this.attribute("cx").toPixels("x");var n=this.attribute("cy").toPixels("y");var i=this.attribute("r").toPixels();if(e!=null){e.beginPath();e.arc(t,n,i,0,Math.PI*2,true);e.closePath()}return new N.BoundingBox(t-i,n-i,t+i,n+i)}};N.Element.circle.prototype=new N.Element.PathElementBase;N.Element.ellipse=function(e){this.base=N.Element.PathElementBase;this.base(e);this.path=function(e){var t=4*((Math.sqrt(2)-1)/3);var n=this.attribute("rx").toPixels("x");var i=this.attribute("ry").toPixels("y");var a=this.attribute("cx").toPixels("x");var r=this.attribute("cy").toPixels("y");if(e!=null){e.beginPath();e.moveTo(a,r-i);e.bezierCurveTo(a+t*n,r-i,a+n,r-t*i,a+n,r);e.bezierCurveTo(a+n,r+t*i,a+t*n,r+i,a,r+i);e.bezierCurveTo(a-t*n,r+i,a-n,r+t*i,a-n,r);e.bezierCurveTo(a-n,r-t*i,a-t*n,r-i,a,r-i);e.closePath()}return new N.BoundingBox(a-n,r-i,a+n,r+i)}};N.Element.ellipse.prototype=new N.Element.PathElementBase;N.Element.line=function(e){this.base=N.Element.PathElementBase;this.base(e);this.getPoints=function(){return[new N.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new N.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]};this.path=function(e){var t=this.getPoints();if(e!=null){e.beginPath();e.moveTo(t[0].x,t[0].y);e.lineTo(t[1].x,t[1].y)}return new N.BoundingBox(t[0].x,t[0].y,t[1].x,t[1].y)};this.getMarkers=function(){var e=this.getPoints();var t=e[0].angleTo(e[1]);return[[e[0],t],[e[1],t]]}};N.Element.line.prototype=new N.Element.PathElementBase;N.Element.polyline=function(e){this.base=N.Element.PathElementBase;this.base(e);this.points=N.CreatePath(this.attribute("points").value);this.path=function(e){var t=new N.BoundingBox(this.points[0].x,this.points[0].y);if(e!=null){e.beginPath();e.moveTo(this.points[0].x,this.points[0].y)}for(var n=1;n<this.points.length;n++){t.addPoint(this.points[n].x,this.points[n].y);if(e!=null)e.lineTo(this.points[n].x,this.points[n].y)}return t};this.getMarkers=function(){var e=[];for(var t=0;t<this.points.length-1;t++){e.push([this.points[t],this.points[t].angleTo(this.points[t+1])])}if(e.length>0){e.push([this.points[this.points.length-1],e[e.length-1][1]])}return e}};N.Element.polyline.prototype=new N.Element.PathElementBase;N.Element.polygon=function(e){this.base=N.Element.polyline;this.base(e);this.basePath=this.path;this.path=function(e){var t=this.basePath(e);if(e!=null){e.lineTo(this.points[0].x,this.points[0].y);e.closePath()}return t}};N.Element.polygon.prototype=new N.Element.polyline;N.Element.path=function(e){this.base=N.Element.PathElementBase;this.base(e);var t=this.attribute("d").value;t=t.replace(/,/gm," ");for(var n=0;n<2;n++){t=t.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}t=t.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");t=t.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){t=t.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}t=t.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");t=N.compressSpaces(t);t=N.trim(t);this.PathParser=new function(e){this.tokens=e.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new N.Point(0,0);this.control=new N.Point(0,0);this.current=new N.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 e=new N.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)};this.getAsControlPoint=function(){var e=this.getPoint();this.control=e;return e};this.getAsCurrentPoint=function(){var e=this.getPoint();this.current=e;return e};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var e=new N.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return e};this.makeAbsolute=function(e){if(this.isRelativeCommand()){e.x+=this.current.x;e.y+=this.current.y}return e};this.addMarker=function(e,t,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(e,t==null?null:t.angleTo(e))};this.addMarkerAngle=function(e,t){this.points.push(e);this.angles.push(t)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var e=0;e<this.angles.length;e++){if(this.angles[e]==null){for(var t=e+1;t<this.angles.length;t++){if(this.angles[t]!=null){this.angles[e]=this.angles[t];break}}}}return this.angles}}(t);this.path=function(e){var t=this.PathParser;t.reset();var n=new N.BoundingBox;if(e!=null)e.beginPath();while(!t.isEnd()){t.nextCommand();switch(t.command){case"M":case"m":var i=t.getAsCurrentPoint();t.addMarker(i);n.addPoint(i.x,i.y);if(e!=null)e.moveTo(i.x,i.y);t.start=t.current;while(!t.isCommandOrEnd()){var i=t.getAsCurrentPoint();t.addMarker(i,t.start);n.addPoint(i.x,i.y);if(e!=null)e.lineTo(i.x,i.y)}break;case"L":case"l":while(!t.isCommandOrEnd()){var a=t.current;var i=t.getAsCurrentPoint();t.addMarker(i,a);n.addPoint(i.x,i.y);if(e!=null)e.lineTo(i.x,i.y)}break;case"H":case"h":while(!t.isCommandOrEnd()){var r=new N.Point((t.isRelativeCommand()?t.current.x:0)+t.getScalar(),t.current.y);t.addMarker(r,t.current);t.current=r;n.addPoint(t.current.x,t.current.y);if(e!=null)e.lineTo(t.current.x,t.current.y)}break;case"V":case"v":while(!t.isCommandOrEnd()){var r=new N.Point(t.current.x,(t.isRelativeCommand()?t.current.y:0)+t.getScalar());t.addMarker(r,t.current);t.current=r;n.addPoint(t.current.x,t.current.y);if(e!=null)e.lineTo(t.current.x,t.current.y)}break;case"C":case"c":while(!t.isCommandOrEnd()){var o=t.current;var s=t.getPoint();var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,s);n.addBezierCurve(o.x,o.y,s.x,s.y,l.x,l.y,u.x,u.y);if(e!=null)e.bezierCurveTo(s.x,s.y,l.x,l.y,u.x,u.y)}break;case"S":case"s":while(!t.isCommandOrEnd()){var o=t.current;var s=t.getReflectedControlPoint();var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,s);n.addBezierCurve(o.x,o.y,s.x,s.y,l.x,l.y,u.x,u.y);if(e!=null)e.bezierCurveTo(s.x,s.y,l.x,l.y,u.x,u.y)}break;case"Q":case"q":while(!t.isCommandOrEnd()){var o=t.current;var l=t.getAsControlPoint();var u=t.getAsCurrentPoint();t.addMarker(u,l,l);n.addQuadraticCurve(o.x,o.y,l.x,l.y,u.x,u.y);if(e!=null)e.quadraticCurveTo(l.x,l.y,u.x,u.y)}break;case"T":case"t":while(!t.isCommandOrEnd()){var o=t.current;var l=t.getReflectedControlPoint();t.control=l;var u=t.getAsCurrentPoint();t.addMarker(u,l,l);n.addQuadraticCurve(o.x,o.y,l.x,l.y,u.x,u.y);if(e!=null)e.quadraticCurveTo(l.x,l.y,u.x,u.y)}break;case"A":case"a":while(!t.isCommandOrEnd()){var o=t.current;var h=t.getScalar();var c=t.getScalar();var f=t.getScalar()*(Math.PI/180);var d=t.getScalar();var g=t.getScalar();var u=t.getAsCurrentPoint();var p=new N.Point(Math.cos(f)*(o.x-u.x)/2+Math.sin(f)*(o.y-u.y)/2,-Math.sin(f)*(o.x-u.x)/2+Math.cos(f)*(o.y-u.y)/2);var v=Math.pow(p.x,2)/Math.pow(h,2)+Math.pow(p.y,2)/Math.pow(c,2);if(v>1){h*=Math.sqrt(v);c*=Math.sqrt(v)}var m=(d==g?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(c,2)-Math.pow(h,2)*Math.pow(p.y,2)-Math.pow(c,2)*Math.pow(p.x,2))/(Math.pow(h,2)*Math.pow(p.y,2)+Math.pow(c,2)*Math.pow(p.x,2)));if(isNaN(m))m=0;var y=new N.Point(m*h*p.y/c,m*-c*p.x/h);var _=new N.Point((o.x+u.x)/2+Math.cos(f)*y.x-Math.sin(f)*y.y,(o.y+u.y)/2+Math.sin(f)*y.x+Math.cos(f)*y.y);var b=function e(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))};var w=function e(t,n){return(t[0]*n[0]+t[1]*n[1])/(b(t)*b(n))};var x=function e(t,n){return(t[0]*n[1]<t[1]*n[0]?-1:1)*Math.acos(w(t,n))};var k=x([1,0],[(p.x-y.x)/h,(p.y-y.y)/c]);var S=[(p.x-y.x)/h,(p.y-y.y)/c];var C=[(-p.x-y.x)/h,(-p.y-y.y)/c];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 R=k+A*(E/2);var M=new N.Point(_.x+h*Math.cos(R),_.y+c*Math.sin(R));t.addMarkerAngle(M,R-A*Math.PI/2);t.addMarkerAngle(u,R-A*Math.PI);n.addPoint(u.x,u.y);if(e!=null){var w=h>c?h:c;var T=h>c?1:h/c;var B=h>c?c/h:1;e.translate(_.x,_.y);e.rotate(f);e.scale(T,B);e.arc(0,0,w,k,k+E,1-g);e.scale(1/T,1/B);e.rotate(-f);e.translate(-_.x,-_.y)}}break;case"Z":case"z":if(e!=null)e.closePath();t.current=t.start}}return n};this.getMarkers=function(){var e=this.PathParser.getMarkerPoints();var t=this.PathParser.getMarkerAngles();var n=[];for(var i=0;i<e.length;i++){n.push([e[i],t[i]])}return n}};N.Element.path.prototype=new N.Element.PathElementBase;N.Element.pattern=function(e){this.base=N.Element.ElementBase;this.base(e);this.createPattern=function(e,t){var n=this.attribute("width").toPixels("x",true);var i=this.attribute("height").toPixels("y",true);var a=new N.Element.svg;a.attributes["viewBox"]=new N.Property("viewBox",this.attribute("viewBox").value);a.attributes["width"]=new N.Property("width",n+"px");a.attributes["height"]=new N.Property("height",i+"px");a.attributes["transform"]=new N.Property("transform",this.attribute("patternTransform").value);a.children=this.children;var r=document.createElement("canvas");r.width=n;r.height=i;var o=r.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 l=-1;l<=1;l++){o.save();a.attributes["x"]=new N.Property("x",s*r.width);a.attributes["y"]=new N.Property("y",l*r.height);a.render(o);o.restore()}}var u=e.createPattern(r,"repeat");return u}};N.Element.pattern.prototype=new N.Element.ElementBase;N.Element.marker=function(e){this.base=N.Element.ElementBase;this.base(e);this.baseRender=this.render;this.render=function(e,t,n){e.translate(t.x,t.y);if(this.attribute("orient").valueOrDefault("auto")=="auto")e.rotate(n);if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")e.scale(e.lineWidth,e.lineWidth);e.save();var i=new N.Element.svg;i.attributes["viewBox"]=new N.Property("viewBox",this.attribute("viewBox").value);i.attributes["refX"]=new N.Property("refX",this.attribute("refX").value);i.attributes["refY"]=new N.Property("refY",this.attribute("refY").value);i.attributes["width"]=new N.Property("width",this.attribute("markerWidth").value);i.attributes["height"]=new N.Property("height",this.attribute("markerHeight").value);i.attributes["fill"]=new N.Property("fill",this.attribute("fill").valueOrDefault("black"));i.attributes["stroke"]=new N.Property("stroke",this.attribute("stroke").valueOrDefault("none"));i.children=this.children;i.render(e);e.restore();if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")e.scale(1/e.lineWidth,1/e.lineWidth);if(this.attribute("orient").valueOrDefault("auto")=="auto")e.rotate(-n);e.translate(-t.x,-t.y)}};N.Element.marker.prototype=new N.Element.ElementBase;N.Element.defs=function(e){this.base=N.Element.ElementBase;this.base(e);this.render=function(e){}};N.Element.defs.prototype=new N.Element.ElementBase;N.Element.GradientBase=function(e){this.base=N.Element.ElementBase;this.base(e);this.stops=[];for(var t=0;t<this.children.length;t++){var n=this.children[t];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(e){for(var t=0;t<this.attributesToInherit.length;t++){var n=this.attributesToInherit[t];if(!this.attribute(n).hasValue()&&e.attribute(n).hasValue()){this.attribute(n,true).value=e.attribute(n).value}}};this.createGradient=function(e,t,i){var n=this;if(this.getHrefAttribute().hasValue()){n=this.getHrefAttribute().getDefinition();this.inheritStopContainer(n)}var a=function e(t){if(i.hasValue()){var n=new N.Property("color",t);return n.addOpacity(i).value}return t};var r=this.getGradient(e,t);if(r==null)return a(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++){r.addColorStop(n.stops[o].offset,a(n.stops[o].color))}if(this.attribute("gradientTransform").hasValue()){var s=N.ViewPort.viewPorts[0];var l=new N.Element.rect;l.attributes["x"]=new N.Property("x",-N.MAX_VIRTUAL_PIXELS/3);l.attributes["y"]=new N.Property("y",-N.MAX_VIRTUAL_PIXELS/3);l.attributes["width"]=new N.Property("width",N.MAX_VIRTUAL_PIXELS);l.attributes["height"]=new N.Property("height",N.MAX_VIRTUAL_PIXELS);var u=new N.Element.g;u.attributes["transform"]=new N.Property("transform",this.attribute("gradientTransform").value);u.children=[l];var h=new N.Element.svg;h.attributes["x"]=new N.Property("x",0);h.attributes["y"]=new N.Property("y",0);h.attributes["width"]=new N.Property("width",s.width);h.attributes["height"]=new N.Property("height",s.height);h.children=[u];var c=document.createElement("canvas");c.width=s.width;c.height=s.height;var f=c.getContext("2d");f.fillStyle=r;h.render(f);return f.createPattern(c,"no-repeat")}return r}};N.Element.GradientBase.prototype=new N.Element.ElementBase;N.Element.linearGradient=function(e){this.base=N.Element.GradientBase;this.base(e);this.attributesToInherit.push("x1");this.attributesToInherit.push("y1");this.attributesToInherit.push("x2");this.attributesToInherit.push("y2");this.getGradient=function(e,t){var n=this.gradientUnits()=="objectBoundingBox"?t.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 i=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x");var a=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y");var r=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(i==r&&a==o)return null;return e.createLinearGradient(i,a,r,o)}};N.Element.linearGradient.prototype=new N.Element.GradientBase;N.Element.radialGradient=function(e){this.base=N.Element.GradientBase;this.base(e);this.attributesToInherit.push("cx");this.attributesToInherit.push("cy");this.attributesToInherit.push("r");this.attributesToInherit.push("fx");this.attributesToInherit.push("fy");this.getGradient=function(e,t){var n=t.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 i=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x");var a=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y");var r=i;var o=a;if(this.attribute("fx").hasValue()){r=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 e.createRadialGradient(r,o,0,i,a,s)}};N.Element.radialGradient.prototype=new N.Element.GradientBase;N.Element.stop=function(e){this.base=N.Element.ElementBase;this.base(e);this.offset=this.attribute("offset").numValue();if(this.offset<0)this.offset=0;if(this.offset>1)this.offset=1;var t=this.style("stop-color",true);if(t.value=="")t.value="#000";if(this.style("stop-opacity").hasValue())t=t.addOpacity(this.style("stop-opacity"));this.color=t.value};N.Element.stop.prototype=new N.Element.ElementBase;N.Element.AnimateBase=function(e){this.base=N.Element.ElementBase;this.base(e);N.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var e=this.attribute("attributeType").value;var t=this.attribute("attributeName").value;if(e=="CSS"){return this.parent.style(t,true)}return this.parent.attribute(t,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(e){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+e;var t=false;if(this.begin<this.duration){var n=this.calcValue();if(this.attribute("type").hasValue()){var i=this.attribute("type").value;n=i+"("+n+")"}this.getProperty().value=n;t=true}return t};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 e={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var t=e.progress*(this.values.value.length-1);var n=Math.floor(t),i=Math.ceil(t);e.from=new N.Property("from",parseFloat(this.values.value[n]));e.to=new N.Property("to",parseFloat(this.values.value[i]));e.progress=(t-n)/(i-n)}else{e.from=this.from;e.to=this.to}return e}};N.Element.AnimateBase.prototype=new N.Element.ElementBase;N.Element.animate=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=e.from.numValue()+(e.to.numValue()-e.from.numValue())*e.progress;return t+this.initialUnits}};N.Element.animate.prototype=new N.Element.AnimateBase;N.Element.animateColor=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=new Cz(e.from.value);var n=new Cz(e.to.value);if(t.ok&&n.ok){var i=t.r+(n.r-t.r)*e.progress;var a=t.g+(n.g-t.g)*e.progress;var r=t.b+(n.b-t.b)*e.progress;return"rgb("+parseInt(i,10)+","+parseInt(a,10)+","+parseInt(r,10)+")"}return this.attribute("from").value}};N.Element.animateColor.prototype=new N.Element.AnimateBase;N.Element.animateTransform=function(e){this.base=N.Element.AnimateBase;this.base(e);this.calcValue=function(){var e=this.progress();var t=N.ToNumberArray(e.from.value);var n=N.ToNumberArray(e.to.value);var i="";for(var a=0;a<t.length;a++){i+=t[a]+(n[a]-t[a])*e.progress+" "}return i}};N.Element.animateTransform.prototype=new N.Element.animate;N.Element.font=function(e){this.base=N.Element.ElementBase;this.base(e);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.isRTL=false;this.isArabic=false;this.fontFace=null;this.missingGlyph=null;this.glyphs=[];for(var t=0;t<this.children.length;t++){var n=this.children[t];if(n.type=="font-face"){this.fontFace=n;if(n.style("font-family").hasValue()){N.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}}}};N.Element.font.prototype=new N.Element.ElementBase;N.Element.fontface=function(e){this.base=N.Element.ElementBase;this.base(e);this.ascent=this.attribute("ascent").value;this.descent=this.attribute("descent").value;this.unitsPerEm=this.attribute("units-per-em").numValue()};N.Element.fontface.prototype=new N.Element.ElementBase;N.Element.missingglyph=function(e){this.base=N.Element.path;this.base(e);this.horizAdvX=0};N.Element.missingglyph.prototype=new N.Element.path;N.Element.glyph=function(e){this.base=N.Element.path;this.base(e);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.unicode=this.attribute("unicode").value;this.arabicForm=this.attribute("arabic-form").value};N.Element.glyph.prototype=new N.Element.path;N.Element.text=function(e){this.captureTextNodes=true;this.base=N.Element.RenderedElementBase;this.base(e);this.baseSetContext=this.setContext;this.setContext=function(e){this.baseSetContext(e);var t=this.style("dominant-baseline").toTextBaseline();if(t==null)t=this.style("alignment-baseline").toTextBaseline();if(t!=null)e.textBaseline=t};this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x");var t=this.attribute("y").toPixels("y");var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);return new N.BoundingBox(e,t-n,e+Math.floor(n*2/3)*this.children[0].getText().length,t)};this.renderChildren=function(e){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(e,this,0);for(var t=0;t<this.children.length;t++){this.renderChild(e,this,this,t)}};this.getAnchorDelta=function(e,t,n){var i=this.style("text-anchor").valueOrDefault("start");if(i!="start"){var a=0;for(var r=n;r<t.children.length;r++){var o=t.children[r];if(r>n&&o.attribute("x").hasValue())break;a+=o.measureTextRecursive(e)}return-1*(i=="end"?a:a/2)}return 0};this.renderChild=function(e,t,n,i){var a=n.children[i];if(a.attribute("x").hasValue()){a.x=a.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,i);if(a.attribute("dx").hasValue())a.x+=a.attribute("dx").toPixels("x")}else{if(a.attribute("dx").hasValue())t.x+=a.attribute("dx").toPixels("x");a.x=t.x}t.x=a.x+a.measureText(e);if(a.attribute("y").hasValue()){a.y=a.attribute("y").toPixels("y");if(a.attribute("dy").hasValue())a.y+=a.attribute("dy").toPixels("y")}else{if(a.attribute("dy").hasValue())t.y+=a.attribute("dy").toPixels("y");a.y=t.y}t.y=a.y;a.render(e);for(var i=0;i<a.children.length;i++){t.renderChild(e,t,a,i)}}};N.Element.text.prototype=new N.Element.RenderedElementBase;N.Element.TextElementBase=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.getGlyph=function(e,t,n){var i=t[n];var a=null;if(e.isArabic){var r="isolated";if((n==0||t[n-1]==" ")&&n<t.length-2&&t[n+1]!=" ")r="terminal";if(n>0&&t[n-1]!=" "&&n<t.length-2&&t[n+1]!=" ")r="medial";if(n>0&&t[n-1]!=" "&&(n==t.length-1||t[n+1]==" "))r="initial";if(typeof e.glyphs[i]!="undefined"){a=e.glyphs[i][r];if(a==null&&e.glyphs[i].type=="glyph")a=e.glyphs[i]}}else{a=e.glyphs[i]}if(a==null)a=e.missingGlyph;return a};this.renderChildren=function(e){var t=this.parent.style("font-family").getDefinition();if(t!=null){var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);var i=this.parent.style("font-style").valueOrDefault(N.Font.Parse(N.ctx.font).fontStyle);var a=this.getText();if(t.isRTL)a=a.split("").reverse().join("");var r=N.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<a.length;o++){var s=this.getGlyph(t,a,o);var l=n/t.fontFace.unitsPerEm;e.translate(this.x,this.y);e.scale(l,-l);var u=e.lineWidth;e.lineWidth=e.lineWidth*t.fontFace.unitsPerEm/n;if(i=="italic")e.transform(1,0,.4,1,0,0);s.render(e);if(i=="italic")e.transform(1,0,-.4,1,0,0);e.lineWidth=u;e.scale(1/l,-1/l);e.translate(-this.x,-this.y);this.x+=n*(s.horizAdvX||t.horizAdvX)/t.fontFace.unitsPerEm;if(typeof r[o]!="undefined"&&!isNaN(r[o])){this.x+=r[o]}}return}if(e.fillStyle!="")e.fillText(N.compressSpaces(this.getText()),this.x,this.y);if(e.strokeStyle!="")e.strokeText(N.compressSpaces(this.getText()),this.x,this.y)};this.getText=function(){};this.measureTextRecursive=function(e){var t=this.measureText(e);for(var n=0;n<this.children.length;n++){t+=this.children[n].measureTextRecursive(e)}return t};this.measureText=function(e){var t=this.parent.style("font-family").getDefinition();if(t!=null){var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);var i=0;var a=this.getText();if(t.isRTL)a=a.split("").reverse().join("");var r=N.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<a.length;o++){var s=this.getGlyph(t,a,o);i+=(s.horizAdvX||t.horizAdvX)*n/t.fontFace.unitsPerEm;if(typeof r[o]!="undefined"&&!isNaN(r[o])){i+=r[o]}}return i}var l=N.compressSpaces(this.getText());if(!e.measureText)return l.length*10;e.save();this.setContext(e);var u=e.measureText(l).width;e.restore();return u}};N.Element.TextElementBase.prototype=new N.Element.RenderedElementBase;N.Element.tspan=function(e){this.captureTextNodes=true;this.base=N.Element.TextElementBase;this.base(e);this.text=N.compressSpaces(e.value||e.text||e.textContent||"");this.getText=function(){if(this.children.length>0){return""}return this.text}};N.Element.tspan.prototype=new N.Element.TextElementBase;N.Element.tref=function(e){this.base=N.Element.TextElementBase;this.base(e);this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(e!=null)return e.children[0].getText()}};N.Element.tref.prototype=new N.Element.TextElementBase;N.Element.a=function(e){this.base=N.Element.TextElementBase;this.base(e);this.hasText=e.childNodes.length>0;for(var t=0;t<e.childNodes.length;t++){if(e.childNodes[t].nodeType!=3)this.hasText=false}this.text=this.hasText?e.childNodes[0].value:"";this.getText=function(){return this.text};this.baseRenderChildren=this.renderChildren;this.renderChildren=function(e){if(this.hasText){this.baseRenderChildren(e);var t=new N.Property("fontSize",N.Font.Parse(N.ctx.font).fontSize);N.Mouse.checkBoundingBox(this,new N.BoundingBox(this.x,this.y-t.toPixels("y"),this.x+this.measureText(e),this.y))}else if(this.children.length>0){var n=new N.Element.g;n.children=this.children;n.parent=this;n.render(e)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){N.ctx.canvas.style.cursor="pointer"}};N.Element.a.prototype=new N.Element.TextElementBase;N.Element.image=function(e){this.base=N.Element.RenderedElementBase;this.base(e);var t=this.getHrefAttribute().value;if(t==""){return}var r=t.match(/\.svg$/);N.Images.push(this);this.loaded=false;if(!r){this.img=document.createElement("img");if(N.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){N.log('ERROR: image "'+t+'" not found');n.loaded=true};this.img.src=t}else{this.img=N.ajax(t);this.loaded=true}this.renderChildren=function(e){var t=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(i==0||a==0)return;e.save();if(r){e.drawSvg(this.img,t,n,i,a)}else{e.translate(t,n);N.AspectRatio(e,this.attribute("preserveAspectRatio").value,i,this.img.width,a,this.img.height,0,0);e.drawImage(this.img,0,0)}e.restore()};this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x");var t=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");return new N.BoundingBox(e,t,e+n,t+i)}};N.Element.image.prototype=new N.Element.RenderedElementBase;N.Element.g=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.getBoundingBox=function(){var e=new N.BoundingBox;for(var t=0;t<this.children.length;t++){e.addBoundingBox(this.children[t].getBoundingBox())}return e}};N.Element.g.prototype=new N.Element.RenderedElementBase;N.Element.symbol=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.render=function(e){}};N.Element.symbol.prototype=new N.Element.RenderedElementBase;N.Element.style=function(e){this.base=N.Element.ElementBase;this.base(e);var t="";for(var n=0;n<e.childNodes.length;n++){t+=e.childNodes[n].data}t=t.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");t=N.compressSpaces(t);var i=t.split("}");for(var n=0;n<i.length;n++){if(N.trim(i[n])!=""){var a=i[n].split("{");var r=a[0].split(",");var o=a[1].split(";");for(var s=0;s<r.length;s++){var l=N.trim(r[s]);if(l!=""){var u=N.Styles[l]||{};for(var h=0;h<o.length;h++){var c=o[h].indexOf(":");var f=o[h].substr(0,c);var d=o[h].substr(c+1,o[h].length-c);if(f!=null&&d!=null){u[N.trim(f)]=new N.Property(N.trim(f),N.trim(d))}}N.Styles[l]=u;N.StylesSpecificity[l]=TL(l);if(l=="@font-face"){var g=u["font-family"].value.replace(/"/g,"");var p=u["src"].value.split(",");for(var v=0;v<p.length;v++){if(p[v].indexOf('format("svg")')>0){var m=p[v].indexOf("url");var y=p[v].indexOf(")",m);var _=p[v].substr(m+5,y-m-6);var b=N.parseXml(N.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;x<w.length;x++){var k=N.CreateElement(w[x]);N.Definitions[g]=k}}}}}}}}};N.Element.style.prototype=new N.Element.ElementBase;N.Element.use=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.baseSetContext=this.setContext;this.setContext=function(e){this.baseSetContext(e);if(this.attribute("x").hasValue())e.translate(this.attribute("x").toPixels("x"),0);if(this.attribute("y").hasValue())e.translate(0,this.attribute("y").toPixels("y"))};var i=this.getHrefAttribute().getDefinition();this.path=function(e){if(i!=null)i.path(e)};this.getBoundingBox=function(){if(i!=null)return i.getBoundingBox()};this.renderChildren=function(e){if(i!=null){var t=i;if(i.type=="symbol"){t=new N.Element.svg;t.type="svg";t.attributes["viewBox"]=new N.Property("viewBox",i.attribute("viewBox").value);t.attributes["preserveAspectRatio"]=new N.Property("preserveAspectRatio",i.attribute("preserveAspectRatio").value);t.attributes["overflow"]=new N.Property("overflow",i.attribute("overflow").value);t.children=i.children}if(t.type=="svg"){if(this.attribute("width").hasValue())t.attributes["width"]=new N.Property("width",this.attribute("width").value);if(this.attribute("height").hasValue())t.attributes["height"]=new N.Property("height",this.attribute("height").value)}var n=t.parent;t.parent=null;t.render(e);t.parent=n}}};N.Element.use.prototype=new N.Element.RenderedElementBase;N.Element.mask=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t){var n=this.attribute("x").toPixels("x");var i=this.attribute("y").toPixels("y");var a=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");if(a==0&&r==0){var o=new N.BoundingBox;for(var s=0;s<this.children.length;s++){o.addBoundingBox(this.children[s].getBoundingBox())}var n=Math.floor(o.x1);var i=Math.floor(o.y1);var a=Math.floor(o.width());var r=Math.floor(o.height())}var l=t.attribute("mask").value;t.attribute("mask").value="";var u=document.createElement("canvas");u.width=n+a;u.height=i+r;var h=u.getContext("2d");this.renderChildren(h);var c=document.createElement("canvas");c.width=n+a;c.height=i+r;var f=c.getContext("2d");t.render(f);f.globalCompositeOperation="destination-in";f.fillStyle=h.createPattern(u,"no-repeat");f.fillRect(0,0,n+a,i+r);e.fillStyle=f.createPattern(c,"no-repeat");e.fillRect(0,0,n+a,i+r);t.attribute("mask").value=l};this.render=function(e){}};N.Element.mask.prototype=new N.Element.ElementBase;N.Element.clipPath=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e){var t=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var n=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){};t.call(e);for(var i=0;i<this.children.length;i++){var a=this.children[i];if(typeof a.path!="undefined"){var r=null;if(a.style("transform",false,true).hasValue()){r=new N.Transform(a.style("transform",false,true).value);r.apply(e)}a.path(e);CanvasRenderingContext2D.prototype.closePath=n;if(r){r.unapply(e)}}}n.call(e);e.clip();CanvasRenderingContext2D.prototype.beginPath=t;CanvasRenderingContext2D.prototype.closePath=n};this.render=function(e){}};N.Element.clipPath.prototype=new N.Element.ElementBase;N.Element.filter=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t){var n=t.getBoundingBox();var i=Math.floor(n.x1);var a=Math.floor(n.y1);var r=Math.floor(n.width());var o=Math.floor(n.height());var s=t.style("filter").value;t.style("filter").value="";var l=0,u=0;for(var h=0;h<this.children.length;h++){var c=this.children[h].extraFilterDistance||0;l=Math.max(l,c);u=Math.max(u,c)}var f=document.createElement("canvas");f.width=r+2*l;f.height=o+2*u;var d=f.getContext("2d");d.translate(-i+l,-a+u);t.render(d);for(var h=0;h<this.children.length;h++){if(typeof this.children[h].apply=="function"){this.children[h].apply(d,0,0,r+2*l,o+2*u)}}e.drawImage(f,0,0,r+2*l,o+2*u,i-l,a-u,r+2*l,o+2*u);t.style("filter",true).value=s};this.render=function(e){}};N.Element.filter.prototype=new N.Element.ElementBase;N.Element.feMorphology=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t,n,i,a){}};N.Element.feMorphology.prototype=new N.Element.ElementBase;N.Element.feComposite=function(e){this.base=N.Element.ElementBase;this.base(e);this.apply=function(e,t,n,i,a){}};N.Element.feComposite.prototype=new N.Element.ElementBase;N.Element.feColorMatrix=function(e){this.base=N.Element.ElementBase;this.base(e);var i=N.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var t=i[0];i=[.213+.787*t,.715-.715*t,.072-.072*t,0,0,.213-.213*t,.715+.285*t,.072-.072*t,0,0,.213-.213*t,.715-.715*t,.072+.928*t,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var a=i[0]*Math.PI/180;var n=function e(t,n,i){return t+Math.cos(a)*n+Math.sin(a)*i};i=[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":i=[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 h(e,t,n,i,a,r){return e[n*i*4+t*4+r]}function c(e,t,n,i,a,r,o){e[n*i*4+t*4+r]=o}function f(e,t){var n=i[e];return n*(n<0?t-255:t)}this.apply=function(e,t,n,i,a){var r=e.getImageData(0,0,i,a);for(var n=0;n<a;n++){for(var t=0;t<i;t++){var o=h(r.data,t,n,i,a,0);var s=h(r.data,t,n,i,a,1);var l=h(r.data,t,n,i,a,2);var u=h(r.data,t,n,i,a,3);c(r.data,t,n,i,a,0,f(0,o)+f(1,s)+f(2,l)+f(3,u)+f(4,1));c(r.data,t,n,i,a,1,f(5,o)+f(6,s)+f(7,l)+f(8,u)+f(9,1));c(r.data,t,n,i,a,2,f(10,o)+f(11,s)+f(12,l)+f(13,u)+f(14,1));c(r.data,t,n,i,a,3,f(15,o)+f(16,s)+f(17,l)+f(18,u)+f(19,1))}}e.clearRect(0,0,i,a);e.putImageData(r,0,0)}};N.Element.feColorMatrix.prototype=new N.Element.ElementBase;N.Element.feGaussianBlur=function(e){this.base=N.Element.ElementBase;this.base(e);this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue());this.extraFilterDistance=this.blurRadius;this.apply=function(e,t,n,i,a){if(typeof Tz.canvasRGBA=="undefined"){N.log("ERROR: StackBlur.js must be included for blur to work");return}e.canvas.id=N.UniqueId();e.canvas.style.display="none";document.body.appendChild(e.canvas);Tz.canvasRGBA(e.canvas.id,t,n,i,a,this.blurRadius);document.body.removeChild(e.canvas)}};N.Element.feGaussianBlur.prototype=new N.Element.ElementBase;N.Element.title=function(e){};N.Element.title.prototype=new N.Element.ElementBase;N.Element.desc=function(e){};N.Element.desc.prototype=new N.Element.ElementBase;N.Element.MISSING=function(e){N.log("ERROR: Element '"+e.nodeName+"' not yet implemented.")};N.Element.MISSING.prototype=new N.Element.ElementBase;N.CreateElement=function(e){var t=e.nodeName.replace(/^[^:]+:/,"");t=t.replace(/\-/g,"");var n=null;if(typeof N.Element[t]!="undefined"){n=new N.Element[t](e)}else{n=new N.Element.MISSING(e)}n.type=e.nodeName;return n};N.load=function(e,t){N.loadXml(e,N.ajax(t))};N.loadXml=function(e,t){N.loadXmlDoc(e,N.parseXml(t))};N.loadXmlDoc=function(o,s){N.init(o);var n=function e(t){var n=o.canvas;while(n){t.x-=n.offsetLeft;t.y-=n.offsetTop;n=n.offsetParent}if(window.scrollX)t.x+=window.scrollX;if(window.scrollY)t.y+=window.scrollY;return t};if(N.opts["ignoreMouse"]!=true){o.canvas.onclick=function(e){var t=n(new N.Point(e!=null?e.clientX:event.clientX,e!=null?e.clientY:event.clientY));N.Mouse.onclick(t.x,t.y)};o.canvas.onmousemove=function(e){var t=n(new N.Point(e!=null?e.clientX:event.clientX,e!=null?e.clientY:event.clientY));N.Mouse.onmousemove(t.x,t.y)}}var l=N.CreateElement(s.documentElement);l.root=true;l.addStylesFromStyleDefinition();var u=true;var i=function e(){N.ViewPort.Clear();if(o.canvas.parentNode)N.ViewPort.SetCurrent(o.canvas.parentNode.clientWidth,o.canvas.parentNode.clientHeight);if(N.opts["ignoreDimensions"]!=true){if(l.style("width").hasValue()){o.canvas.width=l.style("width").toPixels("x");o.canvas.style.width=o.canvas.width+"px"}if(l.style("height").hasValue()){o.canvas.height=l.style("height").toPixels("y");o.canvas.style.height=o.canvas.height+"px"}}var t=o.canvas.clientWidth||o.canvas.width;var n=o.canvas.clientHeight||o.canvas.height;if(N.opts["ignoreDimensions"]==true&&l.style("width").hasValue()&&l.style("height").hasValue()){t=l.style("width").toPixels("x");n=l.style("height").toPixels("y")}N.ViewPort.SetCurrent(t,n);if(N.opts["offsetX"]!=null)l.attribute("x",true).value=N.opts["offsetX"];if(N.opts["offsetY"]!=null)l.attribute("y",true).value=N.opts["offsetY"];if(N.opts["scaleWidth"]!=null||N.opts["scaleHeight"]!=null){var i=null,a=null,r=N.ToNumberArray(l.attribute("viewBox").value);if(N.opts["scaleWidth"]!=null){if(l.attribute("width").hasValue())i=l.attribute("width").toPixels("x")/N.opts["scaleWidth"];else if(!isNaN(r[2]))i=r[2]/N.opts["scaleWidth"]}if(N.opts["scaleHeight"]!=null){if(l.attribute("height").hasValue())a=l.attribute("height").toPixels("y")/N.opts["scaleHeight"];else if(!isNaN(r[3]))a=r[3]/N.opts["scaleHeight"]}if(i==null){i=a}if(a==null){a=i}l.attribute("width",true).value=N.opts["scaleWidth"];l.attribute("height",true).value=N.opts["scaleHeight"];l.style("transform",true,true).value+=" scale("+1/i+","+1/a+")"}if(N.opts["ignoreClear"]!=true){o.clearRect(0,0,t,n)}l.render(o);if(u){u=false;if(typeof N.opts["renderCallback"]=="function")N.opts["renderCallback"](s)}};var a=true;if(N.ImagesLoaded()){a=false;i()}N.intervalID=setInterval(function(){var e=false;if(a&&N.ImagesLoaded()){a=false;e=true}if(N.opts["ignoreMouse"]!=true){e=e|N.Mouse.hasEvents()}if(N.opts["ignoreAnimation"]!=true){for(var t=0;t<N.Animations.length;t++){e=e|N.Animations[t].update(1e3/N.FRAMERATE)}}if(typeof N.opts["forceRedraw"]=="function"){if(N.opts["forceRedraw"]()==true)e=true}if(e){i();N.Mouse.runEvents()}},1e3/N.FRAMERATE)};N.stop=function(){if(N.intervalID){clearInterval(N.intervalID)}};N.Mouse=new function(){this.events=[];this.hasEvents=function(){return this.events.length!=0};this.onclick=function(e,t){this.events.push({type:"onclick",x:e,y:t,run:function e(t){if(t.onclick)t.onclick()}})};this.onmousemove=function(e,t){this.events.push({type:"onmousemove",x:e,y:t,run:function e(t){if(t.onmousemove)t.onmousemove()}})};this.eventElements=[];this.checkPath=function(e,t){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(t.isPointInPath&&t.isPointInPath(i.x,i.y))this.eventElements[n]=e}};this.checkBoundingBox=function(e,t){for(var n=0;n<this.events.length;n++){var i=this.events[n];if(t.isPointInBox(i.x,i.y))this.eventElements[n]=e}};this.runEvents=function(){N.ctx.canvas.style.cursor="";for(var e=0;e<this.events.length;e++){var t=this.events[e];var n=this.eventElements[e];while(n){t.run(n);n=n.parent}}this.events=[];this.eventElements=[]}};return N}var NL=RL;function DL(e){var t=e.attr("stroke-width");e.attr("stroke-width",!t?0:t);if(!t)e.attr("stroke","transparent");var n=["none","transparent"].includes(e.attr("fill"));var i=e.attr("fill-opacity");e.attr("fill-opacity",n?0:i);e.attr("aria-label",null)}function PL(e){e.selectAll("*").each(function(){var e=this.tagName.toLowerCase();if(!["option"].includes(e)){var t=xv(this);var n=t.style("letter-spacing");t.style("letter-spacing",n==="normal"?"0.1px":n)}})}function OL(e,t){return jL(e)||IL(e,t)||FL(e,t)||zL()}function zL(){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 FL(e,t){if(!e)return;if(typeof e==="string")return LL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LL(e,t)}function LL(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function IL(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function jL(e){if(Array.isArray(e))return e}var HL={background:false,callback:function e(){},exclude:[],padding:0,scale:1};var VL={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function UL(e){var t=xv(e).attr("transform");var n=1,i=0,a=0;if(t){n=t.match(/scale\(([^a-z]+)\)/i);if(n)n=parseFloat(n[1]);else n=1;var r=t.match(/translate\(([^a-z]+)\)/i);if(r){var o=r[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map(function(e){return parseFloat(e)*n});var s=OL(o,2);i=s[0];a=s[1]}}return[n,i,a]}function GL(e,q){if(!e)return;if(!(e instanceof Array))e=[e];q=Object.assign({},HL,q);var h=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);var Y=window?window.devicePixelRatio||1:1;var t=e[0];if(t.constructor===Object)t=t.element;var X=q.height||parseFloat(xv(t).style("height"))+parseFloat(xv(t).style("padding-top"))+parseFloat(xv(t).style("padding-bottom")),$=q.width||parseFloat(xv(t).style("width"))+parseFloat(xv(t).style("padding-left"))+parseFloat(xv(t).style("padding-right"));var Z,J,Q=0,ee=0;if(t.getBoundingClientRect){var n=t.getBoundingClientRect();Q=n.left;ee=n.top}else{Q=t.offsetLeft;ee=t.offsetTop}var c=q.canvas||document.createElement("canvas");c.width=($+q.padding*2)*q.scale*Y;c.height=(X+q.padding*2)*q.scale*Y;c.style.width=($+q.padding*2)*q.scale;c.style.height=(X+q.padding*2)*q.scale;var f=c.getContext("2d");f.scale(q.scale*Y,q.scale*Y);f.clearRect(0,0,c.width/Y,c.height/Y);if(q.background){f.beginPath();f.rect(0,0,c.width/Y,c.height/Y);f.fillStyle=q.background;f.fill()}var te=[];function i(e){var t=(this.tagName||"").toLowerCase();if(q.exclude.includes(this)||t==="foreignobject")return;var n=Object.assign({},e);if(this.tagName){var i=xv(this).attr("opacity")||xv(this).style("opacity");var a=xv(this).style("display");var r=xv(this).style("visibility");if(a==="none"||r==="hidden"||i&&parseFloat(i)===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(),l=s.left,u=s.top;n.x+=l-Q;n.y+=u-ee;n.svg=true}var h=xv(this).attr("x");h=h?parseFloat(h)*n.scale:0;n.x+=h;var c=xv(this).attr("y");c=c?parseFloat(c)*n.scale:0;n.y+=c;n.clip={height:parseFloat(xv(this).attr("height")||xv(this).style("height")),width:parseFloat(xv(this).attr("width")||xv(this).style("width")),x:h,y:c}}else{var f=xv(this).attr("x");if(f)n.x+=parseFloat(f)*n.scale;var d=xv(this).attr("y");if(d)n.y+=parseFloat(d)*n.scale}}if(!t.length){var g=(this.wholeText||"").replace(/\s/g,"");if(g.length){var p=this.nodeValue.replace(/^\s*/,"").replace(/^\n/,"").replace(/^\s*/,"").replace(/\n$/,"").replace(/\s*$/,"").replace(/\n$/,"");te.push({type:"text",style:this.parentNode,value:p,x:n.x,y:n.y})}}else if(t==="text"){var v=this.cloneNode(true);xv(v).call(DL);te.push(Object.assign({},n,{type:"svg",value:v}))}else if(["image","img"].includes(t)){var m=xv(this).attr("href")||xv(this).attr("xlink:href");if(m.length){var y=parseFloat(xv(this).attr("height"))*n.scale,_=parseFloat(xv(this).attr("width"))*n.scale;var b={clip:n.clip,height:y,loaded:false,type:"img",width:_,x:n.x,y:n.y};te.push(b);var w=new Image;w.crossOrigin="Anonymous";w.onload=function(){var e=document.createElement("canvas");var t=e.getContext("2d");e.height=y*Y;e.width=_*Y;t.drawImage(this,0,0,_*Y,y*Y);var n=document.createElement("img");n.src=e.toDataURL("image/png");b.value=n;b.loaded=true};w.onerror=function(){b.loaded=true;b.value=false};w.src=m}}else if(!["svg","g","text"].includes(t)&&!xv(this).selectAll("svg").size()){var x=q.scale*Y;var k={height:Math.floor(X+q.padding*2+ee),loaded:false,type:"html",width:Math.floor($+q.padding*2+Q),x:Math.floor(Z-Q),y:Math.floor(J-ee)};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);te.push(k);PL(xv(this));Sz(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(e){k.value=e;k.loaded=true})}else if(t!=="svg"&&this.childNodes.length>0&&!xv(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);xv(E).selectAll("*").each(function(){xv(this).call(DL);if(xv(this).attr("opacity")==="0")this.parentNode.removeChild(this)});te.push(Object.assign({},n,{type:"svg",value:E,tag:t}))}else if(this.childNodes.length>0){var A=UL(this),R=OL(A,3),M=R[0],T=R[1],B=R[2];n.scale*=M;n.x+=T;n.y+=B;ne(this,n)}else{var N=this.cloneNode(true);xv(N).selectAll("*").each(function(){if(xv(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(t==="line"){xv(N).attr("x1",parseFloat(xv(N).attr("x1"))+n.x);xv(N).attr("x2",parseFloat(xv(N).attr("x2"))+n.x);xv(N).attr("y1",parseFloat(xv(N).attr("y1"))+n.y);xv(N).attr("y2",parseFloat(xv(N).attr("y2"))+n.y)}else if(t==="path"){var D=UL(N),P=OL(D,3),O=P[0],z=P[1],F=P[2];if(xv(N).attr("transform"))xv(N).attr("transform","scale(".concat(O,")translate(").concat(z+n.x,",").concat(F+n.y,")"))}xv(N).call(DL);var L=xv(N).attr("fill");var I=L&&L.indexOf("url")===0;te.push(Object.assign({},n,{type:"svg",value:N,tag:t}));if(I){var j=xv(L.slice(4,-1)).node().cloneNode(true);var H=(j.tagName||"").toLowerCase();if(H==="pattern"){var V=UL(N),U=OL(V,3),G=U[0],W=U[1],K=U[2];n.scale*=G;n.x+=W;n.y+=K;ne(j,n)}}}}function ne(e,t){Ev(e.childNodes).each(function(){i.bind(this)(t)})}for(var a=0;a<e.length;a++){var r=e[a],o={scale:1,x:0,y:0,svg:false};if(r.constructor===Object){o=Object.assign(o,r);r=r.element}Z=o.x;J=o.y;i.bind(r)(o)}function s(){var e=true;for(var t=0;t<te.length;t++){if(te[t].loaded===false){e=false;break}}if(e)l();else setTimeout(s,500)}s();function l(){for(var e=0;e<te.length;e++){var t=te[e];var n=t.clip||{height:X,width:$,x:0,y:0};switch(t.type){case"img":if(t.value){f.save();f.beginPath();f.translate(q.padding+n.x,q.padding+n.y);f.rect(0,0,n.width,n.height);f.clip();f.drawImage(t.value,t.x+n.x,t.y+n.y,t.width,t.height);f.restore()}break;case"html":f.save();f.beginPath();f.translate(q.padding,q.padding);f.drawImage(t.value,t.x,t.y,t.width,t.height);f.restore();break;case"text":var i=xv(t.style);var a=t.value.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");var r=i.style("color"),o=i.style("font-size");var s=i.style("font-family").split(",")[0];if(s.indexOf("'")!==0)s="'".concat(s,"'");var l="<text stroke='none' dy='".concat(o,"' fill='").concat(r,"' font-family=").concat(s," font-size='").concat(o,"'>").concat(a,"</text>");f.save();f.translate(q.padding,q.padding);NL(c,l,Object.assign({},VL,{offsetX:t.x,offsetY:t.y}));f.restore();break;case"svg":var u=h?(new XMLSerializer).serializeToString(t.value):t.value.outerHTML;f.save();f.translate(q.padding+n.x+t.x,q.padding+n.y+t.y);f.rect(0,0,n.width,n.height);f.clip();NL(c,u,Object.assign({},VL,{offsetX:t.x+n.x,offsetY:t.y+n.y}));f.restore();break;default:console.warn("uncaught",t);break}}q.callback(c)}}(function(e){var f=e.Uint8Array,t=e.HTMLCanvasElement,n=t&&t.prototype,l=/\s*;\s*base64\s*(?:;|$)/i,u="toDataURL",d,h=function e(t){var n=t.length,i=new f(n/4*3|0),a=0,r=0,o=[0,0],s=0,l=0,u,h,c;while(n--){h=t.charCodeAt(a++);u=d[h-43];if(u!==255&&u!==c){o[1]=o[0];o[0]=h;l=l<<6|u;s++;if(s===4){i[r++]=l>>>16;if(o[1]!==61){i[r++]=l>>>8}if(o[0]!==61){i[r++]=l}s=0}}}return i};if(f){d=new f([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(t&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(e,t){if(!t){t="image/png"}if(this.mozGetAsFile){e(this.mozGetAsFile("canvas",t));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t)){e(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),i=this[u].apply(this,n),a=i.indexOf(","),r=i.substring(a+1),o=l.test(i.substring(0,a)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=r;s.size=r.length}else if(f){if(o){s=new Blob([h(r)],{type:t})}else{s=new Blob([decodeURIComponent(r)],{type:t})}}e(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){u="toDataURLHD";var e=this.toBlob();u="toDataURL";return e}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||dN.content||dN);var WL=pN(function(e){var t=t||function(h){if(typeof h==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var e=h.document,c=function e(){return h.URL||h.webkitURL||h},f=e.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in f,g=function e(t){var n=new MouseEvent("click");t.dispatchEvent(n)},p=/constructor/i.test(h.HTMLElement)||h.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent),o=function e(t){(h.setImmediate||h.setTimeout)(function(){throw t},0)},m="application/octet-stream",i=1e3*40,y=function e(t){var n=function e(){if(typeof t==="string"){c().revokeObjectURL(t)}else{t.remove()}};setTimeout(n,i)},_=function e(t,n,i){n=[].concat(n);var a=n.length;while(a--){var r=t["on"+n[a]];if(typeof r==="function"){try{r.call(t,i||t)}catch(e){o(e)}}}},b=function e(t){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)){return new Blob([String.fromCharCode(65279),t],{type:t.type})}return t},a=function e(i,t,n){if(!n){i=b(i)}var a=this,r=i.type,o=r===m,s,l=function e(){_(a,"writestart progress write writeend".split(" "))},u=function e(){if((v||o&&p)&&h.FileReader){var n=new FileReader;n.onloadend=function(){var e=v?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var t=h.open(e,"_blank");if(!t)h.location.href=e;e=undefined;a.readyState=a.DONE;l()};n.readAsDataURL(i);a.readyState=a.INIT;return}if(!s){s=c().createObjectURL(i)}if(o){h.location.href=s}else{var t=h.open(s,"_blank");if(!t){h.location.href=s}}a.readyState=a.DONE;l();y(s)};a.readyState=a.INIT;if(d){s=c().createObjectURL(i);setTimeout(function(){f.href=s;f.download=t;g(f);l();y(s);a.readyState=a.DONE});return}u()},t=a.prototype,n=function e(t,n,i){return new a(t,n||t.name||"download",i)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){t=t||e.name||"download";if(!n){e=b(e)}return navigator.msSaveOrOpenBlob(e,t)}}t.abort=function(){};t.readyState=t.INIT=0;t.WRITING=1;t.DONE=2;t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||dN.content);if(e.exports){e.exports.saveAs=t}});var KL=WL.saveAs;var qL={filename:"download",type:"png"};function YL(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!e)return;n=Object.assign({},qL,n);var t=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(e instanceof Array)&&n.type==="svg"){var a=t?(new XMLSerializer).serializeToString(e):e.outerHTML;KL(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}GL(e,Object.assign({},i,{callback:function e(t){if(i.callback)i.callback(t);if(["jpg","png"].includes(n.type)){t.toBlob(function(e){return KL(e,"".concat(n.filename,".").concat(n.type))})}}}))}var XL={Button:mD,Radio:MD,Select:HD};function $L(){var c=this;var f=this;var d=this._controlPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var g=["left","right","top","bottom"];var e=function e(t){var l=g[t];var u=(c._controls||[]).filter(function(e){return!e.position&&l==="bottom"||e.position===l});if(c._downloadButton&&c._downloadPosition===l){u.push({data:[{text:c._translate("Download"),value:1}],label:"downloadButton",on:{click:function e(){var t=c._detectResize;if(t)c.detectResize(false).render();YL(c._select.node(),Object.assign({title:c._title||undefined},c._downloadConfig),{callback:function e(){setTimeout(function(){if(t)c.detectResize(t).render()},5e3)}})}},type:"Button"})}var n=l==="top"||l==="bottom";var i={height:n?c._height-(c._margin.top+c._margin.bottom):c._height-(c._margin.top+c._margin.bottom+d.top+d.bottom),width:n?c._width-(c._margin.left+c._margin.right+d.left+d.right):c._width-(c._margin.left+c._margin.right)};i.x=(n?c._margin.left+d.left:c._margin.left)+(l==="right"?c._width-c._margin.bottom:0);i.y=(n?c._margin.top:c._margin.top+d.top)+(l==="bottom"?c._height-c._margin.bottom:0);var a=gb("foreignObject.d3plus-viz-controls-".concat(l),{condition:u.length,enter:Object.assign({opacity:0},i),exit:Object.assign({opacity:0},i),parent:c._select,transition:c._transition,update:{height:i.height,opacity:1,width:i.width}});var h=a.selectAll("div.d3plus-viz-controls-container").data([null]);h=h.enter().append("xhtml:div").attr("class","d3plus-viz-controls-container").merge(h);if(u.length){var r=function e(t){var n=Object.assign({},u[t]);var i={};if(n.on){var a=function e(t){if({}.hasOwnProperty.call(n.on,t)){i[t]=function(){n.on[t].bind(f)(this.value)}}};for(var r in n.on){a(r)}}var o=n.label||"".concat(l,"-").concat(t);if(!c._controlCache[o]){var s=n.type&&XL[n.type]?n.type:"Select";c._controlCache[o]=(new XL[s]).container(h.node());if(n.checked)c._controlCache[o].checked(n.checked);if(n.selected)c._controlCache[o].selected(n.selected)}delete n.checked;delete n.selected;c._controlCache[o].config(n).config({on:i}).config(c._controlConfig).render()};for(var o=0;o<u.length;o++){r(o)}h.style("display",["top","bottom"].includes(l)?"block":"inline-block").style("text-align",["top","bottom"].includes(l)?"center":l);var s=h.node().getBoundingClientRect();a.transition(c._transition).attr("x",i.x-(l==="right"?s.width:0)).attr("y",i.y-(l==="bottom"?s.height:0)).attr("height",n?s.height:i.height).attr("width",n?i.width:s.width);c._margin[l]+=["top","bottom"].includes(l)?s.height:s.width}};for(var t=0;t<g.length;t++){e(t)}}function ZL(e,t){return this._drawLabel(e,t,this._legendDepth)}function JL(){var o=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this._legendClass.outerBounds();var n=this._legendPosition;var i=["top","bottom"].includes(n);var a=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(i?this._margin.left+a.left:this._margin.left,", ").concat(i?this._margin.top:this._margin.top+a.top,")")};var s=gb("g.d3plus-viz-legend",{condition:this._legend&&!this._legendConfig.select,enter:r,parent:this._select,transition:this._transition,update:r}).node();var l=[];var u=function e(t,n){var i=o._shape(t,n);var a=i==="Line"?"stroke":"fill";var r=o._shapeConfig[i]&&o._shapeConfig[i][a]?o._shapeConfig[i][a]:o._shapeConfig[a];return typeof r==="function"?r.bind(o)(t,n):r};var h=function e(t,n){var i=o._shape(t,n);var a=o._shapeConfig[i]&&o._shapeConfig[i].opacity?o._shapeConfig[i].opacity:o._shapeConfig.opacity;return typeof a==="function"?a.bind(o)(t,n):a};var c=function e(t,n){return"".concat(u(t,n),"_").concat(h(t,n))};if(this._legend){yb().key(c).rollup(function(e){return l.push(Rb(e,o._aggs))}).entries(this._colorScale?e.filter(function(e,t){return o._colorScale(e,t)===undefined}):e)}l.sort(this._legendSort);var f=l.map(function(e,t){return o._ids(e,t).slice(0,o._drawDepth+1)});this._legendDepth=0;var d=function e(t){var n=f.map(function(e){return e[t]});if(!n.some(function(e){return e instanceof Array})&&Array.from(new Set(n)).length===l.length){o._legendDepth=t;return"break"}};for(var g=0;g<=this._drawDepth;g++){var p=d(g);if(p==="break")break}var v=function e(t,n){var i=o._id(t,n);if(i instanceof Array)i=i[0];return o._hidden.includes(i)||o._solo.length&&!o._solo.includes(i)};this._legendClass.id(c).align(i?"center":n).direction(i?"row":"column").duration(this._duration).data(l.length>this._legendCutoff||this._colorScale?l:[]).height(i?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top)).locale(this._locale).parent(this).select(s).verticalAlign(!i?"middle":n).width(i?this._width-(this._margin.left+this._margin.right+a.left+a.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(Tg.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function e(t,n){return v(t,n)?o._hiddenColor(t,n):u(t,n)},labelConfig:{fontOpacity:function e(t,n){return v(t,n)?o._hiddenOpacity(t,n):1}},opacity:h}).config(this._legendConfig).render();if(!this._legendConfig.select&&t.height){if(i)this._margin[n]+=t.height+this._legendClass.padding()*2;else this._margin[n]+=t.width+this._legendClass.padding()*2}}function QL(n){var i=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(e){var t=IN(i._time(e)).getTime();return t>=n[0]&&t<=n[1]}).render()}}function eI(){var t=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var i=n?Ab(this._data.map(this._time)).map(IN):[];n=n&&i.length>1;var a=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+a.left,", 0)")};var o=gb("g.d3plus-viz-timeline",{condition:n,enter:r,parent:this._select,transition:this._transition,update:r}).node();if(n){var s=this._timelineClass.domain(Be(i)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(i.sort(function(e,t){return+e-+t})).width(this._width-(this._margin.left+this._margin.right+a.left+a.right));if(s.selection()===undefined){this._timelineSelection=Be(e,this._time).map(IN);s.selection(this._timelineSelection)}var l=this._timelineConfig;s.config(l).on("end",function(e){QL.bind(t)(e);if(l.on&&l.on.end)l.on.end(e)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function tI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this._title?this._title(e):false;var n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var a=gb("g.d3plus-viz-title",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._titleClass.data(t?[{text:t}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=t?a.getBBox().height:0}function nI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=typeof this._total==="function"?O(e.map(this._total)):this._total===true&&this._size?O(e.map(this._size)):false;var n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var a=gb("g.d3plus-viz-total",{enter:i,parent:this._select,transition:this._transition,update:i}).node();var r=typeof t==="number";this._totalClass.data(r?[{text:this._totalFormat(t)}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=r?a.getBBox().height+this._totalConfig.padding*2:0}function iI(e,t){if(!e)return undefined;if(e.tagName===undefined||["BODY","HTML"].indexOf(e.tagName)>=0){var n=window["inner".concat(t.charAt(0).toUpperCase()+t.slice(1))];var i=xv(e);if(t==="width"){n-=parseFloat(i.style("margin-left"),10);n-=parseFloat(i.style("margin-right"),10);n-=parseFloat(i.style("padding-left"),10);n-=parseFloat(i.style("padding-right"),10)}else{n-=parseFloat(i.style("margin-top"),10);n-=parseFloat(i.style("margin-bottom"),10);n-=parseFloat(i.style("padding-top"),10);n-=parseFloat(i.style("padding-bottom"),10)}return n}else{var a=parseFloat(xv(e).style(t),10);if(typeof a==="number"&&a>0)return a;else return iI(e.parentNode,t)}}function aI(e){return[iI(e,"width"),iI(e,"height")]}function rI(e){var t=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 i=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var a=e.getBoundingClientRect();var r=a.height,o=a.left+n,s=a.top+i,l=a.width;return i+window.innerHeight>s+t&&i+t<s+r&&n+window.innerWidth>o+t&&n+t<o+l}function oI(e,t){this._select.style("cursor","auto");if(this._drawDepth<this._groupBy.length-1){var i=this._groupBy[this._drawDepth],a=i(e,t);this.hover(false);if(this._tooltip(e,t))this._tooltipClass.data([]).render();var r=this._filter;this._history.push({depth:this._depth,filter:r});this.config({depth:this._drawDepth+1,filter:function e(t,n){return(!r||r(t,n))&&i(t,n)===a}}).render()}}function sI(e,t){var i=this;this._select.style("cursor","auto");if(this._tooltip(e,t))this._tooltipClass.data([]).render();var n=this._id(e,t);if(!(n instanceof Array))n=[n];var a=this._hidden.indexOf(n[0]);var r=this._solo.indexOf(n[0]);var o=Pe(this._legendClass.data().map(function(e,t){var n=i._id(e,t);if(!(n instanceof Array))n=[n];return n})).length;if(ov.shiftKey){if(a<0&&!this._solo.length){this._hidden=this._hidden.concat(n);if(this._solo.length===o)this._solo=[];if(this._hidden.length===o)this._hidden=[];this.render()}else if(r>=0){this._solo=[];this._hidden=[];this.render()}}else{if(r<0&&this._hidden.length<o-1){this._solo=n;this._hidden=[]}else{this._solo=[];this._hidden=[]}this.render()}}var lI=function e(t){return t.reduce(function(e,t){if(t instanceof Array){if(e.length){var n=e.slice();e=[];t.forEach(function(t){return e=e.concat(n.map(function(e){return"".concat(e,"_").concat(t)}))})}else{e=t.slice()}}else if(e.length){e=e.map(function(e){return"".concat(e,"_").concat(t)})}else{e.push(t)}return e},[])};function uI(e,t){var i=this;if(this._shapeConfig.hoverOpacity!==1){var a=lI(this._ids(e,t));this.hover(function(e,t){var n=lI(i._ids(e,t));return a.some(function(e){return n.includes(e)})})}}function hI(n,i){var a=this;setTimeout(function(){if(a._shapeConfig.hoverOpacity!==1&&a._hover?a._hover(n,i):true){a.hover(false)}var e=a._tooltipClass.data();if(e.length&&a._tooltip(n,i)){var t=e[0];while(t.__d3plus__&&t.data){t=t.data}if(a._id(t)===a._id(n))a._tooltipClass.data([]).render()}},50);this._select.style("cursor","auto")}function cI(e,t,n){var i=this;var a=ov.touches?[ov.touches[0].clientX,ov.touches[0].clientY]:[ov.clientX,ov.clientY];var r=Pe(this._legendClass.data().map(function(e,t){var n=i._id(e,t);if(!(n instanceof Array))n=[n];return n})).length;if(e&&this._tooltip(e,t)){var o=this._id(e,t);if(o instanceof Array)o=o[0];var s=this._translate;this._select.style("cursor","pointer");this._tooltipClass.data([n||e]).footer(this._solo.length&&!this._solo.includes(o)?s("Click to Highlight"):this._solo.length===1&&this._solo.includes(o)||this._hidden.length===r-1?s("Click to Reset"):this._solo.includes(o)?s("Click to Hide"):this._hidden.includes(o)?s("Click to Highlight"):"".concat(s("Click to Highlight"),"<br />").concat(s("Shift+Click to Hide"))).title(this._legendConfig.label?this._legendClass.label():ZL.bind(this)).position(a).config(Tg.bind(this)(this._tooltipConfig)).config(Tg.bind(this)(this._legendTooltip)).render()}}function fI(e,t,n){if(e&&this._tooltip(e,t)){this._select.style("cursor","pointer");var i=ov.touches?[ov.touches[0].clientX,ov.touches[0].clientY]:[ov.clientX,ov.clientY];this._tooltipClass.data([n||e]).footer(this._drawDepth<this._groupBy.length-1?this._translate("Click to Expand"):false).title(this._drawLabel).position(i).config(Tg.bind(this)(this._tooltipConfig)).render()}}function dI(e){ov.preventDefault();ov.stopPropagation();if(!e)this._tooltipClass.data([]).render()}function gI(e,t){return _I(e)||yI(e,t)||vI(e,t)||pI()}function pI(){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 vI(e,t){if(!e)return;if(typeof e==="string")return mI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mI(e,t)}function mI(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function yI(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function _I(e){if(Array.isArray(e))return e}var bI=false;function wI(){if(!this._container||!this._zoomGroup)return;var e=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,t=this,n=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[n,e]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[n,e]]).on("zoom",kI.bind(this));this._zoomToBounds=CI.bind(this);var i=xv(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",SI.bind(this,this._zoomFactor)).html("&#65291;");a.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",SI.bind(this,1/this._zoomFactor)).html("&#65293;");a.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",SI.bind(this,0)).html("&#8634");a.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){xv(this).classed("active",!bI).call(Bb,bI?t._zoomControlStyle||{}:t._zoomControlStyleActive||{});xI.bind(t)(!bI)}).html("&#164");i.selectAll(".zoom-control").call(Bb,t._zoomControlStyle).on("mouseenter",function(){xv(this).call(Bb,t._zoomControlStyleHover||{})}).on("mouseleave",function(){xv(this).call(Bb,xv(this).classed("active")?t._zoomControlStyleActive||{}:t._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[n,e]]).filter(function(){return!ov.button&&ov.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",RI.bind(this)).on("brush",EI.bind(this)).on("end",AI.bind(this));var r=this._container.selectAll("g.brush").data([0]);this._brushGroup=r.enter().append("g").attr("class","brush").merge(r).call(this._zoomBrush);xI.bind(this)();if(this._renderTiles)this._renderTiles(iN(this._container.node()),0)}function xI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;bI=e;if(bI)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!bI&&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 kI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!t)this._zoomGroup.attr("transform",e||ov.transform);else this._zoomGroup.transition().duration(t).attr("transform",e||ov.transform)}if(this._renderTiles)this._renderTiles(iN(this._container.node()),t)}function SI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var t=this._zoomBehavior.extent().bind(document)()[1].map(function(e){return e/2}),n=this._zoomBehavior.scaleExtent(),i=iN(this._container.node());if(!e){i.k=n[0];i.x=0;i.y=0}else{var a=[(t[0]-i.x)/i.k,(t[1]-i.y)/i.k];i.k=Math.min(n[1],i.k*e);if(i.k<=n[0]){i.k=n[0];i.x=0;i.y=0}else{i.x+=t[0]-(a[0]*i.k+i.x);i.y+=t[1]-(a[1]*i.k+i.y)}}kI.bind(this)(i,this._duration)}function CI(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),i=iN(this._container.node());if(e){var a=gI(this._zoomBehavior.translateExtent()[1],2),r=a[0],o=a[1],s=e[1][0]-e[0][0],l=e[1][1]-e[0][1];var u=Math.min(n[1],1/Math.max(s/r,l/o));var h,c;if(s/l<r/o){u*=(o-this._zoomPadding*2)/o;h=(r-s*u)/2/u;c=this._zoomPadding/u}else{u*=(r-this._zoomPadding*2)/r;c=(o-l*u)/2/u;h=this._zoomPadding/u}i.x=(i.x-e[0][0]+h)*(i.k*u/i.k);i.y=(i.y-e[0][1]+c)*(i.k*u/i.k);i.k*=u;if(i.x>0)i.x=0;else if(i.x<r*-i.k+r)i.x=r*-i.k+r;if(i.y>0)i.y=0;else if(i.y<o*-i.k+o)i.y=o*-i.k+o}else{i.k=n[0];i.x=0;i.y=0}kI.bind(this)(i,t)}function EI(){MI.bind(this)()}function AI(){if(!ov.selection)return;this._brushGroup.call(this._zoomBrush.move,null);CI.bind(this)(ov.selection)}function RI(){MI.bind(this)()}function MI(){this._brushGroup.selectAll(".selection").call(xn,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(xn,this._zoomBrushHandleStyle||{})}function TI(){var e=xv(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]);var t=e.enter().append("div").attr("class","d3plus-attribution");e.exit().remove();e=e.merge(t).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(Bb,this._attributionStyle)}function BI(e){return PI(e)||DI(e)||FI(e)||NI()}function NI(){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 DI(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function PI(e){if(Array.isArray(e))return LI(e)}function OI(e,t){return jI(e)||II(e,t)||FI(e,t)||zI()}function zI(){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 FI(e,t){if(!e)return;if(typeof e==="string")return LI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LI(e,t)}function LI(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n<t;n++){i[n]=e[n]}return i}function II(e,t){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(e)))return;var n=[];var i=true;var a=false;var r=undefined;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done);i=true){n.push(s.value);if(t&&n.length===t)break}}catch(e){a=true;r=e}finally{try{if(!i&&o["return"]!=null)o["return"]()}finally{if(a)throw r}}return n}function jI(e){if(Array.isArray(e))return e}function HI(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){HI=function e(t){return typeof t}}else{HI=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return HI(e)}function VI(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function UI(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||false;i.configurable=true;if("value"in i)i.writable=true;Object.defineProperty(e,i.key,i)}}function GI(e,t,n){if(t)UI(e.prototype,t);if(n)UI(e,n);return e}function WI(e,t){if(typeof t!=="function"&&t!==null){throw new TypeError("Super expression must either be null or a function")}e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:true,configurable:true}});if(t)KI(e,t)}function KI(e,t){KI=Object.setPrototypeOf||function e(t,n){t.__proto__=n;return t};return KI(e,t)}function qI(a){var r=$I();return function e(){var t=ZI(a),n;if(r){var i=ZI(this).constructor;n=Reflect.construct(t,arguments,i)}else{n=t.apply(this,arguments)}return YI(this,n)}}function YI(e,t){if(t&&(HI(t)==="object"||typeof t==="function")){return t}return XI(e)}function XI(e){if(e===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return e}function $I(){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(e){return false}}function ZI(e){ZI=Object.setPrototypeOf?Object.getPrototypeOf:function e(t){return t.__proto__||Object.getPrototypeOf(t)};return ZI(e)}function JI(){return typeof window!=="undefined"?window.innerWidth>600:true}function QI(i){return i.reduce(function(e,t,n){if(!n)e+=t;else if(n===i.length-1&&n===1)e+=" and ".concat(t);else if(n===i.length-1)e+=", and ".concat(t);else e+=", ".concat(t);return e},"")}var ej=function(e){WI(n,e);var t=qI(n);function n(){var s;VI(this,n);s=t.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 jE).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(e,t){return s._groupBy[0](e,t)};s._colorScaleClass=new _P;s._colorScaleConfig={};s._colorScalePadding=JI;s._colorScalePosition="bottom";s._colorScaleMaxSize=600;var e=new HD;s._controlCache={};s._controlConfig={selectStyle:Object.assign({margin:"5px"},e.selectStyle())};s._controlPadding=JI;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=Bg("#aaa");s._hiddenOpacity=Bg(.5);s._history=[];s._groupBy=[mn("id")];s._legend=true;s._legendClass=new oP;s._legendConfig={label:ZL.bind(XI(s)),shapeConfig:{ariaLabel:ZL.bind(XI(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendCutoff=1;s._legendPadding=JI;s._legendPosition="bottom";s._legendSort=function(e,t){return s._drawLabel(e).localeCompare(s._drawLabel(t))};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=vN(10);s._messageClass=new wz;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":oI.bind(XI(s)),"click.legend":sI.bind(XI(s)),mouseenter:uI.bind(XI(s)),mouseleave:hI.bind(XI(s)),"mousemove.shape":fI.bind(XI(s)),"mousemove.legend":cI.bind(XI(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":HI(window))===undefined?"":window;s._shape=Bg("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function e(t,n){return s._drawLabel(t,n)},fill:function e(t,n){while(t.__d3plus__&&t.data){t=t.data;n=t.i}if(s._colorScale){var i=s._colorScale(t,n);if(i!==undefined&&i!==null){var a=s._colorScaleClass._colorScale;var r=s._colorScaleClass.color();if(!a)return r instanceof Array?r[r.length-1]:r;else if(!a.domain().length)return a.range()[a.range().length-1];return a(i)}}var o=s._color(t,n);if(TB(o))return o;return qC(o)},labelConfig:{fontColor:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return YC(i)}},opacity:Bg(1),stroke:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return TB(i).darker()},role:"presentation",strokeWidth:Bg(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new DP).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=JI;s._threshold=Bg(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new jE;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=JI;s._tooltip=Bg(true);s._tooltipClass=new mz;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new jE;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(e){return"".concat(s._translate("Total"),": ").concat(LN(e,s._locale))};s._totalPadding=JI;s._zoom=false;s._zoomBehavior=fN();s._zoomBrush=uB();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}GI(n,[{key:"_preDraw",value:function e(){var r=this;var o=this;this._drawDepth=this._depth!==void 0?this._depth:this._groupBy.length-1;this._id=this._groupBy[this._drawDepth];this._ids=function(t,n){return r._groupBy.map(function(e){return!t||t.__d3plus__&&!t.data?undefined:e(t.__d3plus__?t.data:t,t.__d3plus__?t.i:n)}).filter(function(e){return e!==undefined&&e!==null})};this._drawLabel=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:r._drawDepth;if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;t=e.i}if(e._isAggregation){return"".concat(r._thresholdName(e,t)," < ").concat(LN(e._threshold*100,r._locale),"%")}if(r._label)return"".concat(r._label(e,t));var i=o._ids(e,t).slice(0,n+1);var a=i.reverse().find(function(e){return!(e instanceof Array)})||i[i.length-1];return a instanceof Array?QI(a):"".concat(a)};if(this._time&&!this._timeFilter&&this._data.length){var t=this._data.map(this._time).map(IN);var n=this._data[0],i=0;if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](n,i)===this._time(n,i)){this._timeFilter=function(){return true}}else{var a=+ve(t);this._timeFilter=function(e,t){return+IN(r._time(e,t))===a}}}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 l=yb();for(var u=0;u<=this._drawDepth;u++){l.key(this._groupBy[u])}if(this._discrete&&"_".concat(this._discrete)in this)l.key(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)l.key(this["_".concat(this._discrete,"2")]);var h=l.rollup(function(e){var t=r._data.indexOf(e[0]);var n=r._shape(e[0],t);var i=r._id(e[0],t);var a=Rb(e,r._aggs);if(!r._hidden.includes(i)&&(!r._solo.length||r._solo.includes(i))){if(!r._discrete&&n==="Line")r._filteredData=r._filteredData.concat(e);else r._filteredData.push(a)}r._legendData.push(a)}).entries(s);this._filteredData=this._thresholdFunction(this._filteredData,h)}var c=yb().key(this._id).entries(this._filteredData).length;if(c>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})}}},{key:"_draw",value:function e(){if(this._legendPosition==="left"||this._legendPosition==="right")JL.bind(this)(this._filteredData);if(this._colorScalePosition==="left"||this._colorScalePosition==="right"||this._colorScalePosition===false)kz.bind(this)(this._filteredData);xz.bind(this)();tI.bind(this)(this._filteredData);nI.bind(this)(this._filteredData);eI.bind(this)(this._filteredData);$L.bind(this)(this._filteredData);if(this._legendPosition==="top"||this._legendPosition==="bottom")JL.bind(this)(this._legendData);if(this._colorScalePosition==="top"||this._colorScalePosition==="bottom")kz.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function e(t){return t}},{key:"render",value:function e(r){var o=this;this._margin={bottom:0,left:0,right:0,top:0};this._padding={bottom:0,left:0,right:0,top:0};this._transition=sb().duration(this._duration);if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var t=this._select===void 0?xv("body").append("div"):this._select;var n=t.append("svg");this.select(n.node())}function s(){var e=this._select.style("display");this._select.style("display","none");var t=aI(this._select.node().parentNode),n=OI(t,2),i=n[0],a=n[1];i-=parseFloat(this._select.style("border-left-width"),10);i-=parseFloat(this._select.style("border-right-width"),10);a-=parseFloat(this._select.style("border-top-width"),10);a-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",e);if(this._autoWidth){this.width(i);this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))}if(this._autoHeight){this.height(a);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||rI(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(sb).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 i=xv(this._select.node().parentNode);var a=i.style("position");if(a==="static")i.style("position","relative");var l=this._select.selectAll("title").data([0]);var u=l.enter().append("title").attr("id","".concat(this._uuid,"-title"));l.merge(u).text(this._svgTitle);var h=this._select.selectAll("desc").data([0]);var c=h.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));h.merge(c).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);xv(this._scrollContainer).on("scroll.".concat(this._uuid),null);xv(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(r)}},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(r)}},this._detectVisibleInterval)}else if(this._detectVisible&&!rI(this._select.node())){xv(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(rI(o._select.node())){xv(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(r)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var f=JB();this._queue.forEach(function(e){var t=o._cache?o._lrucache.get("".concat(e[3],"_").concat(e[1])):undefined;if(!t)f.defer.apply(f,BI(e));else o["_".concat(e[3])]=e[2]?e[2](t):t});this._queue=[];if(this._loadingMessage&&f._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}f.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var e=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var t=e.enter().append("g").attr("class","data-table").attr("role","table");e.exit().remove();var i=e.merge(t).selectAll("text").data(o._data instanceof Array?Ne(0,o._data.length+1):[]);i.exit().remove();var a=i.merge(i.enter().append("text").attr("role","row")).selectAll("tspan").data(function(e,t){return n.map(function(e){return{role:t?"cell":"columnheader",text:t?o._data[t-1][e]:e}})});a.exit().remove();a.merge(a.enter().append("tspan")).attr("role",function(e){return e.role}).attr("dy","-1000px").html(function(e){return e.text});o._preDraw();o._draw(r);wI.bind(o)();TI.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length))o._messageClass.hide();if(o._detectResize&&(o._autoWidth||o._autoHeight)){xv(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(r)},o._detectResizeDelay)})}if(r)setTimeout(r,o._duration+100)})}xv("body").on("touchstart.".concat(this._uuid),dI.bind(this));return this}},{key:"active",value:function e(t){this._active=t;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(e){return e.active(t)});if(this._legend)this._legendClass.active(t)}return this}},{key:"aggs",value:function e(t){return arguments.length?(this._aggs=wn(this._aggs,t),this):this._aggs}},{key:"ariaHidden",value:function e(t){return arguments.length?(this._ariaHidden=t,this):this._ariaHidden}},{key:"attribution",value:function e(t){return arguments.length?(this._attribution=t,this):this._attribution}},{key:"attributionStyle",value:function e(t){return arguments.length?(this._attributionStyle=wn(this._attributionStyle,t),this):this._attributionStyle}},{key:"backConfig",value:function e(t){return arguments.length?(this._backConfig=wn(this._backConfig,t),this):this._backConfig}},{key:"cache",value:function e(t){return arguments.length?(this._cache=t,this):this._cache}},{key:"color",value:function e(t){return arguments.length?(this._color=!t||typeof t==="function"?t:mn(t),this):this._color}},{key:"colorScale",value:function e(t){return arguments.length?(this._colorScale=!t||typeof t==="function"?t:mn(t),this):this._colorScale}},{key:"colorScaleConfig",value:function e(t){return arguments.length?(this._colorScaleConfig=wn(this._colorScaleConfig,t),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function e(t){return arguments.length?(this._colorScalePadding=typeof t==="function"?t:Bg(t),this):this._colorScalePadding}},{key:"colorScalePosition",value:function e(t){return arguments.length?(this._colorScalePosition=t,this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function e(t){return arguments.length?(this._colorScaleMaxSize=t,this):this._colorScaleMaxSize}},{key:"controls",value:function e(t){return arguments.length?(this._controls=t,this):this._controls}},{key:"controlConfig",value:function e(t){return arguments.length?(this._controlConfig=wn(this._controlConfig,t),this):this._controlConfig}},{key:"controlPadding",value:function e(t){return arguments.length?(this._controlPadding=typeof t==="function"?t:Bg(t),this):this._controlPadding}},{key:"data",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="data"});var a=[DT.bind(this),t,n,"data"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function e(t){return arguments.length?(this._dataCutoff=t,this):this._dataCutoff}},{key:"depth",value:function e(t){return arguments.length?(this._depth=t,this):this._depth}},{key:"detectResize",value:function e(t){return arguments.length?(this._detectResize=t,this):this._detectResize}},{key:"detectResizeDelay",value:function e(t){return arguments.length?(this._detectResizeDelay=t,this):this._detectResizeDelay}},{key:"detectVisible",value:function e(t){return arguments.length?(this._detectVisible=t,this):this._detectVisible}},{key:"detectVisibleInterval",value:function e(t){return arguments.length?(this._detectVisibleInterval=t,this):this._detectVisibleInterval}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"downloadButton",value:function e(t){return arguments.length?(this._downloadButton=t,this):this._downloadButton}},{key:"downloadConfig",value:function e(t){return arguments.length?(this._downloadConfig=wn(this._downloadConfig,t),this):this._downloadConfig}},{key:"downloadPosition",value:function e(t){return arguments.length?(this._downloadPosition=t,this):this._downloadPosition}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"filter",value:function e(t){return arguments.length?(this._filter=t,this):this._filter}},{key:"groupBy",value:function e(t){var n=this;if(!arguments.length)return this._groupBy;if(!(t instanceof Array))t=[t];return this._groupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=Ab(e.map(t));return n.length===1?n[0]:n}}return mn(e)}}),this}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"hiddenColor",value:function e(t){return arguments.length?(this._hiddenColor=typeof t==="function"?t:Bg(t),this):this._hiddenColor}},{key:"hiddenOpacity",value:function e(t){return arguments.length?(this._hiddenOpacity=typeof t==="function"?t:Bg(t),this):this._hiddenOpacity}},{key:"hover",value:function e(t){var i=this;var n=this._hover=t;if(this._shapeConfig.hoverOpacity!==1){if(typeof t==="function"){var a=Pe(this._shapes.map(function(e){return e.data()}));a=a.concat(this._legendClass.data());var r=t?a.filter(t):[];var o=[];r.map(this._ids).forEach(function(e){for(var t=1;t<=e.length;t++){o.push(JSON.stringify(e.slice(0,t)))}});o=o.filter(function(e,t){return o.indexOf(e)===t});if(o.length)n=function e(t,n){return o.includes(JSON.stringify(i._ids(t,n)))}}this._shapes.forEach(function(e){return e.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Bg(t),this):this._label}},{key:"legend",value:function e(t){return arguments.length?(this._legend=t,this):this._legend}},{key:"legendConfig",value:function e(t){return arguments.length?(this._legendConfig=wn(this._legendConfig,t),this):this._legendConfig}},{key:"legendCutoff",value:function e(t){return arguments.length?(this._legendCutoff=t,this):this._legendCutoff}},{key:"legendTooltip",value:function e(t){return arguments.length?(this._legendTooltip=wn(this._legendTooltip,t),this):this._legendTooltip}},{key:"legendPadding",value:function e(t){return arguments.length?(this._legendPadding=typeof t==="function"?t:Bg(t),this):this._legendPadding}},{key:"legendPosition",value:function e(t){return arguments.length?(this._legendPosition=t,this):this._legendPosition}},{key:"legendSort",value:function e(t){return arguments.length?(this._legendSort=t,this):this._legendSort}},{key:"loadingHTML",value:function e(t){return arguments.length?(this._loadingHTML=typeof t==="function"?t:Bg(t),this):this._loadingHTML}},{key:"loadingMessage",value:function e(t){return arguments.length?(this._loadingMessage=t,this):this._loadingMessage}},{key:"messageMask",value:function e(t){return arguments.length?(this._messageMask=t,this):this._messageMask}},{key:"messageStyle",value:function e(t){return arguments.length?(this._messageStyle=wn(this._messageStyle,t),this):this._messageStyle}},{key:"noDataHTML",value:function e(t){return arguments.length?(this._noDataHTML=typeof t==="function"?t:Bg(t),this):this._noDataHTML}},{key:"noDataMessage",value:function e(t){return arguments.length?(this._noDataMessage=t,this):this._noDataMessage}},{key:"scrollContainer",value:function e(t){return arguments.length?(this._scrollContainer=t,this):this._scrollContainer}},{key:"select",value:function e(t){return arguments.length?(this._select=xv(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Bg(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=wn(this._shapeConfig,t),this):this._shapeConfig}},{key:"svgDesc",value:function e(t){return arguments.length?(this._svgDesc=t,this):this._svgDesc}},{key:"svgTitle",value:function e(t){return arguments.length?(this._svgTitle=t,this):this._svgTitle}},{key:"threshold",value:function e(t){if(arguments.length){if(typeof t==="function"){this._threshold=t}else if(isFinite(t)&&!isNaN(t)){this._threshold=Bg(t*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function e(t){if(arguments.length){if(typeof t==="function"){this._thresholdKey=t}else{this._thresholdKey=mn(t)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function e(t){return arguments.length?(this._thresholdName=typeof t==="function"?t:Bg(t),this):this._thresholdName}},{key:"time",value:function e(t){if(arguments.length){if(typeof t==="function"){this._time=t}else{this._time=mn(t);if(!this._aggs[t]){this._aggs[t]=function(e,t){var n=Ab(e.map(t));return n.length===1?n[0]:n}}}this._timeFilter=false;return this}else return this._time}},{key:"timeFilter",value:function e(t){return arguments.length?(this._timeFilter=t,this):this._timeFilter}},{key:"timeline",value:function e(t){return arguments.length?(this._timeline=t,this):this._timeline}},{key:"timelineConfig",value:function e(t){return arguments.length?(this._timelineConfig=wn(this._timelineConfig,t),this):this._timelineConfig}},{key:"timelinePadding",value:function e(t){return arguments.length?(this._timelinePadding=typeof t==="function"?t:Bg(t),this):this._timelinePadding}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Bg(t),this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=wn(this._titleConfig,t),this):this._titleConfig}},{key:"titlePadding",value:function e(t){return arguments.length?(this._titlePadding=typeof t==="function"?t:Bg(t),this):this._titlePadding}},{key:"tooltip",value:function e(t){return arguments.length?(this._tooltip=typeof t==="function"?t:Bg(t),this):this._tooltip}},{key:"tooltipConfig",value:function e(t){return arguments.length?(this._tooltipConfig=wn(this._tooltipConfig,t),this):this._tooltipConfig}},{key:"total",value:function e(t){if(arguments.length){if(typeof t==="function")this._total=t;else if(t)this._total=mn(t);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function e(t){return arguments.length?(this._totalConfig=wn(this._totalConfig,t),this):this._totalConfig}},{key:"totalFormat",value:function e(t){return arguments.length?(this._totalFormat=t,this):this._totalFormat}},{key:"totalPadding",value:function e(t){return arguments.length?(this._totalPadding=typeof t==="function"?t:Bg(t),this):this._totalPadding}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}},{key:"zoom",value:function e(t){return arguments.length?(this._zoom=t,this):this._zoom}},{key:"zoomBrushHandleSize",value:function e(t){return arguments.length?(this._zoomBrushHandleSize=t,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function e(t){return arguments.length?(this._zoomBrushHandleStyle=t,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function e(t){return arguments.length?(this._zoomBrushSelectionStyle=t,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function e(t){return arguments.length?(this._zoomControlStyle=t,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function e(t){return arguments.length?(this._zoomControlStyleActive=t,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function e(t){return arguments.length?(this._zoomControlStyleHover=t,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function e(t){return arguments.length?(this._zoomFactor=t,this):this._zoomFactor}},{key:"zoomMax",value:function e(t){return arguments.length?(this._zoomMax=t,this):this._zoomMax}},{key:"zoomPan",value:function e(t){return arguments.length?(this._zoomPan=t,this):this._zoomPan}},{key:"zoomPadding",value:function e(t){return arguments.length?(this._zoomPadding=t,this):this._zoomPadding}},{key:"zoomScroll",value:function e(t){return arguments.length?(this._zoomScroll=t,this):this._zoomScroll}}]);return n}(Ag);var tj=function(e){s(u,e);var t=c(u);function u(){var i;o(this,u);i=t.call(this);i._shapeConfig=wn(i._shapeConfig,{ariaLabel:function e(t,n){return i._pieData?"".concat(++i._pieData[n].index,". ").concat(i._drawLabel(t,n),", ").concat(i._value(t,n),"."):""},Path:{labelConfig:{fontResize:true}}});i._innerRadius=0;i._legendSort=function(e,t){return i._value(t)-i._value(e)};i._padPixel=0;i._pie=xe();i._sort=function(e,t){return i._value(t)-i._value(e)};i._value=mn("value");return i}n(u,[{key:"_draw",value:function e(t){var n=this;_(y(u.prototype),"_draw",this).call(this,t);var i=this._height-this._margin.top-this._margin.bottom,a=this._width-this._margin.left-this._margin.right;var r=Oe([a,i])/2;var o=this._pieData=this._pie.padAngle(this._padAngle||this._padPixel/r).sort(this._sort).value(this._value)(this._filteredData);o.forEach(function(e,t){e.__d3plus__=true;e.i=t});var s=U().innerRadius(this._innerRadius).outerRadius(r);var l="translate(".concat(a/2+this._margin.left,", ").concat(i/2+this._margin.top,")");this._shapes.push((new nT).data(o).d(s).select(gb("g.d3plus-Pie",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).config({id:function e(t){return n._ids(t).join("-")},x:0,y:0}).label(this._drawLabel).config(Tg.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"innerRadius",value:function e(t){return arguments.length?(this._innerRadius=t,this):this._innerRadius}},{key:"padAngle",value:function e(t){return arguments.length?(this._padAngle=t,this):this._padAngle}},{key:"padPixel",value:function e(t){return arguments.length?(this._padPixel=t,this):this._padPixel}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"value",value:function e(t){return arguments.length?(this._value=typeof t==="function"?t:mn(t),this):this._value}}]);return u}(ej);var nj=function(e){s(n,e);var t=c(n);function n(){var e;o(this,n);e=t.call(this);e._innerRadius=function(){return Oe([e._width-e._margin.left-e._margin.right,e._height-e._margin.top-e._margin.bottom])/4};e._padPixel=2;return e}return n}(tj);function ij(e){var t=0,n=e.children,i=n&&n.length;if(!i)t=1;else while(--i>=0){t+=n[i].value}e.value=t}function aj(){return this.eachAfter(ij)}function rj(e){var t=this,n,i=[t],a,r,o;do{n=i.reverse(),i=[];while(t=n.pop()){e(t),a=t.children;if(a)for(r=0,o=a.length;r<o;++r){i.push(a[r])}}}while(i.length);return this}function oj(e){var t=this,n=[t],i,a;while(t=n.pop()){e(t),i=t.children;if(i)for(a=i.length-1;a>=0;--a){n.push(i[a])}}return this}function sj(e){var t=this,n=[t],i=[],a,r,o;while(t=n.pop()){i.push(t),a=t.children;if(a)for(r=0,o=a.length;r<o;++r){n.push(a[r])}}while(t=i.pop()){e(t)}return this}function lj(a){return this.eachAfter(function(e){var t=+a(e.data)||0,n=e.children,i=n&&n.length;while(--i>=0){t+=n[i].value}e.value=t})}function uj(t){return this.eachBefore(function(e){if(e.children){e.children.sort(t)}})}function hj(e){var t=this,n=cj(t,e),i=[t];while(t!==n){t=t.parent;i.push(t)}var a=i.length;while(e!==n){i.splice(a,0,e);e=e.parent}return i}function cj(e,t){if(e===t)return e;var n=e.ancestors(),i=t.ancestors(),a=null;e=n.pop();t=i.pop();while(e===t){a=e;e=n.pop();t=i.pop()}return a}function fj(){var e=this,t=[e];while(e=e.parent){t.push(e)}return t}function dj(){var t=[];this.each(function(e){t.push(e)});return t}function gj(){var t=[];this.eachBefore(function(e){if(!e.children){t.push(e)}});return t}function pj(){var t=this,n=[];t.each(function(e){if(e!==t){n.push({source:e.parent,target:e})}});return n}function vj(e,t){var n=new wj(e),i=+e.value&&(n.value=e.value),a,r=[n],o,s,l,u;if(t==null)t=yj;while(a=r.pop()){if(i)a.value=+a.data.value;if((s=t(a.data))&&(u=s.length)){a.children=new Array(u);for(l=u-1;l>=0;--l){r.push(o=a.children[l]=new wj(s[l]));o.parent=a;o.depth=a.depth+1}}}return n.eachBefore(bj)}function mj(){return vj(this).eachBefore(_j)}function yj(e){return e.children}function _j(e){e.data=e.data.data}function bj(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function wj(e){this.data=e;this.depth=this.height=0;this.parent=null}wj.prototype=vj.prototype={constructor:wj,count:aj,each:rj,eachAfter:sj,eachBefore:oj,sum:lj,sort:uj,path:hj,ancestors:fj,descendants:dj,leaves:gj,links:pj,copy:mj};var xj=Array.prototype.slice;function kj(e){var t=e.length,n,i;while(t){i=Math.random()*t--|0;n=e[t];e[t]=e[i];e[i]=n}return e}function Sj(e){var t=0,n=(e=kj(xj.call(e))).length,i=[],a,r;while(t<n){a=e[t];if(r&&Aj(r,a))++t;else r=Mj(i=Cj(i,a)),t=0}return r}function Cj(e,t){var n,i;if(Rj(t,e))return[t];for(n=0;n<e.length;++n){if(Ej(t,e[n])&&Rj(Bj(e[n],t),e)){return[e[n],t]}}for(n=0;n<e.length-1;++n){for(i=n+1;i<e.length;++i){if(Ej(Bj(e[n],e[i]),t)&&Ej(Bj(e[n],t),e[i])&&Ej(Bj(e[i],t),e[n])&&Rj(Nj(e[n],e[i],t),e)){return[e[n],e[i],t]}}}throw new Error}function Ej(e,t){var n=e.r-t.r,i=t.x-e.x,a=t.y-e.y;return n<0||n*n<i*i+a*a}function Aj(e,t){var n=e.r-t.r+1e-6,i=t.x-e.x,a=t.y-e.y;return n>0&&n*n>i*i+a*a}function Rj(e,t){for(var n=0;n<t.length;++n){if(!Aj(e,t[n])){return false}}return true}function Mj(e){switch(e.length){case 1:return Tj(e[0]);case 2:return Bj(e[0],e[1]);case 3:return Nj(e[0],e[1],e[2])}}function Tj(e){return{x:e.x,y:e.y,r:e.r}}function Bj(e,t){var n=e.x,i=e.y,a=e.r,r=t.x,o=t.y,s=t.r,l=r-n,u=o-i,h=s-a,c=Math.sqrt(l*l+u*u);return{x:(n+r+l/c*h)/2,y:(i+o+u/c*h)/2,r:(c+a+s)/2}}function Nj(e,t,n){var i=e.x,a=e.y,r=e.r,o=t.x,s=t.y,l=t.r,u=n.x,h=n.y,c=n.r,f=i-o,d=i-u,g=a-s,p=a-h,v=l-r,m=c-r,y=i*i+a*a-r*r,_=y-o*o-s*s+l*l,b=y-u*u-h*h+c*c,w=d*g-f*p,x=(g*b-p*_)/(w*2)-i,k=(p*v-g*m)/w,S=(d*_-f*b)/(w*2)-a,C=(f*m-d*v)/w,E=k*k+C*C-1,A=2*(r+x*k+S*C),R=x*x+S*S-r*r,M=-(E?(A+Math.sqrt(A*A-4*E*R))/(2*E):R/A);return{x:i+x+k*M,y:a+S+C*M,r:M}}function Dj(e,t,n){var i=e.x-t.x,a,r,o=e.y-t.y,s,l,u=i*i+o*o;if(u){r=t.r+n.r,r*=r;l=e.r+n.r,l*=l;if(r>l){a=(u+l-r)/(2*u);s=Math.sqrt(Math.max(0,l/u-a*a));n.x=e.x-a*i-s*o;n.y=e.y-a*o+s*i}else{a=(u+r-l)/(2*u);s=Math.sqrt(Math.max(0,r/u-a*a));n.x=t.x+a*i-s*o;n.y=t.y+a*o+s*i}}else{n.x=t.x+n.r;n.y=t.y}}function Pj(e,t){var n=e.r+t.r-1e-6,i=t.x-e.x,a=t.y-e.y;return n>0&&n*n>i*i+a*a}function Oj(e){var t=e._,n=e.next._,i=t.r+n.r,a=(t.x*n.r+n.x*t.r)/i,r=(t.y*n.r+n.y*t.r)/i;return a*a+r*r}function zj(e){this._=e;this.next=null;this.previous=null}function Fj(e){if(!(a=e.length))return 0;var t,n,i,a,r,o,s,l,u,h,c;t=e[0],t.x=0,t.y=0;if(!(a>1))return t.r;n=e[1],t.x=-n.r,n.x=t.r,n.y=0;if(!(a>2))return t.r+n.r;Dj(n,t,i=e[2]);t=new zj(t),n=new zj(n),i=new zj(i);t.next=i.previous=n;n.next=t.previous=i;i.next=n.previous=t;e:for(s=3;s<a;++s){Dj(t._,n._,i=e[s]),i=new zj(i);l=n.next,u=t.previous,h=n._.r,c=t._.r;do{if(h<=c){if(Pj(l._,i._)){n=l,t.next=n,n.previous=t,--s;continue e}h+=l._.r,l=l.next}else{if(Pj(u._,i._)){t=u,t.next=n,n.previous=t,--s;continue e}c+=u._.r,u=u.previous}}while(l!==u.next);i.previous=t,i.next=n,t.next=n.previous=n=i;r=Oj(t);while((i=i.next)!==n){if((o=Oj(i))<r){t=i,r=o}}n=t.next}t=[n._],i=n;while((i=i.next)!==n){t.push(i._)}i=Sj(t);for(s=0;s<a;++s){t=e[s],t.x-=i.x,t.y-=i.y}return i.r}function Lj(e){return e==null?null:Ij(e)}function Ij(e){if(typeof e!=="function")throw new Error;return e}function jj(){return 0}function Hj(e){return function(){return e}}function Vj(e){return Math.sqrt(e.value)}function Uj(){var t=null,n=1,i=1,a=jj;function r(e){e.x=n/2,e.y=i/2;if(t){e.eachBefore(Gj(t)).eachAfter(Wj(a,.5)).eachBefore(Kj(1))}else{e.eachBefore(Gj(Vj)).eachAfter(Wj(jj,1)).eachAfter(Wj(a,e.r/Math.min(n,i))).eachBefore(Kj(Math.min(n,i)/(2*e.r)))}return e}r.radius=function(e){return arguments.length?(t=Lj(e),r):t};r.size=function(e){return arguments.length?(n=+e[0],i=+e[1],r):[n,i]};r.padding=function(e){return arguments.length?(a=typeof e==="function"?e:Hj(+e),r):a};return r}function Gj(t){return function(e){if(!e.children){e.r=Math.max(0,+t(e)||0)}}}function Wj(o,s){return function(e){if(t=e.children){var t,n,i=t.length,a=o(e)*s||0,r;if(a)for(n=0;n<i;++n){t[n].r+=a}r=Fj(t);if(a)for(n=0;n<i;++n){t[n].r-=a}e.r=r+a}}}function Kj(n){return function(e){var t=e.parent;e.r*=n;if(t){e.x=t.x+n*e.x;e.y=t.y+n*e.y}}}function qj(e){e.x0=Math.round(e.x0);e.y0=Math.round(e.y0);e.x1=Math.round(e.x1);e.y1=Math.round(e.y1)}function Yj(e,t,n,i,a){var r=e.children,o,s=-1,l=r.length,u=e.value&&(i-t)/e.value;while(++s<l){o=r[s],o.y0=n,o.y1=a;o.x0=t,o.x1=t+=o.value*u}}function Xj(e,t){return e.parent===t.parent?1:2}function $j(e){var t=e.children;return t?t[0]:e.t}function Zj(e){var t=e.children;return t?t[t.length-1]:e.t}function Jj(e,t,n){var i=n/(t.i-e.i);t.c-=i;t.s+=n;e.c+=i;t.z+=n;t.m+=n}function Qj(e){var t=0,n=0,i=e.children,a=i.length,r;while(--a>=0){r=i[a];r.z+=t;r.m+=t;t+=r.s+(n+=r.c)}}function eH(e,t,n){return e.a.parent===t.parent?e.a:n}function tH(e,t){this._=e;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=t}tH.prototype=Object.create(wj.prototype);function nH(e){var t=new tH(e,0),n,i=[t],a,r,o,s;while(n=i.pop()){if(r=n._.children){n.children=new Array(s=r.length);for(o=s-1;o>=0;--o){i.push(a=n.children[o]=new tH(r[o],o));a.parent=n}}}(t.parent=new tH(null,0)).children=[t];return t}function iH(){var f=Xj,u=1,h=1,c=null;function t(e){var t=nH(e);t.eachAfter(d),t.parent.m=-t.z;t.eachBefore(g);if(c)e.eachBefore(p);else{var n=e,i=e,a=e;e.eachBefore(function(e){if(e.x<n.x)n=e;if(e.x>i.x)i=e;if(e.depth>a.depth)a=e});var r=n===i?1:f(n,i)/2,o=r-n.x,s=u/(i.x+r+o),l=h/(a.depth||1);e.eachBefore(function(e){e.x=(e.x+o)*s;e.y=e.depth*l})}return e}function d(e){var t=e.children,n=e.parent.children,i=e.i?n[e.i-1]:null;if(t){Qj(e);var a=(t[0].z+t[t.length-1].z)/2;if(i){e.z=i.z+f(e._,i._);e.m=e.z-a}else{e.z=a}}else if(i){e.z=i.z+f(e._,i._)}e.parent.A=r(e,i,e.parent.A||n[0])}function g(e){e._.x=e.z+e.parent.m;e.m+=e.parent.m}function r(e,t,n){if(t){var i=e,a=e,r=t,o=i.parent.children[0],s=i.m,l=a.m,u=r.m,h=o.m,c;while(r=Zj(r),i=$j(i),r&&i){o=$j(o);a=Zj(a);a.a=e;c=r.z+u-i.z-s+f(r._,i._);if(c>0){Jj(eH(r,e,n),e,c);s+=c;l+=c}u+=r.m;s+=i.m;h+=o.m;l+=a.m}if(r&&!Zj(a)){a.t=r;a.m+=u-l}if(i&&!$j(o)){o.t=i;o.m+=s-h;n=e}}return n}function p(e){e.x*=u;e.y=e.depth*h}t.separation=function(e){return arguments.length?(f=e,t):f};t.size=function(e){return arguments.length?(c=false,u=+e[0],h=+e[1],t):c?null:[u,h]};t.nodeSize=function(e){return arguments.length?(c=true,u=+e[0],h=+e[1],t):c?[u,h]:null};return t}function aH(e,t,n,i,a){var r=e.children,o,s=-1,l=r.length,u=e.value&&(a-n)/e.value;while(++s<l){o=r[s],o.x0=t,o.x1=i;o.y0=n,o.y1=n+=o.value*u}}var rH=(1+Math.sqrt(5))/2;function oH(e,t,n,i,a,r){var o=[],s=t.children,l,u,h=0,c=0,f=s.length,d,g,p=t.value,v,m,y,_,b,w,x;while(h<f){d=a-n,g=r-i;do{v=s[c++].value}while(!v&&c<f);m=y=v;w=Math.max(g/d,d/g)/(p*e);x=v*v*w;b=Math.max(y/x,x/m);for(;c<f;++c){v+=u=s[c].value;if(u<m)m=u;if(u>y)y=u;x=v*v*w;_=Math.max(y/x,x/m);if(_>b){v-=u;break}b=_}o.push(l={value:v,dice:d<g,children:s.slice(h,c)});if(l.dice)Yj(l,n,i,a,p?i+=g*v/p:r);else aH(l,n,i,p?n+=d*v/p:a,r);p-=v,h=c}return o}var sH=function t(r){function e(e,t,n,i,a){oH(r,e,t,n,i,a)}e.ratio=function(e){return t((e=+e)>1?e:1)};return e}(rH);function lH(){var o=sH,t=false,n=1,i=1,s=[0],l=jj,u=jj,h=jj,c=jj,f=jj;function a(e){e.x0=e.y0=0;e.x1=n;e.y1=i;e.eachBefore(r);s=[0];if(t)e.eachBefore(qj);return e}function r(e){var t=s[e.depth],n=e.x0+t,i=e.y0+t,a=e.x1-t,r=e.y1-t;if(a<n)n=a=(n+a)/2;if(r<i)i=r=(i+r)/2;e.x0=n;e.y0=i;e.x1=a;e.y1=r;if(e.children){t=s[e.depth+1]=l(e)/2;n+=f(e)-t;i+=u(e)-t;a-=h(e)-t;r-=c(e)-t;if(a<n)n=a=(n+a)/2;if(r<i)i=r=(i+r)/2;o(e,n,i,a,r)}}a.round=function(e){return arguments.length?(t=!!e,a):t};a.size=function(e){return arguments.length?(n=+e[0],i=+e[1],a):[n,i]};a.tile=function(e){return arguments.length?(o=Ij(e),a):o};a.padding=function(e){return arguments.length?a.paddingInner(e).paddingOuter(e):a.paddingInner()};a.paddingInner=function(e){return arguments.length?(l=typeof e==="function"?e:Hj(+e),a):l};a.paddingOuter=function(e){return arguments.length?a.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):a.paddingTop()};a.paddingTop=function(e){return arguments.length?(u=typeof e==="function"?e:Hj(+e),a):u};a.paddingRight=function(e){return arguments.length?(h=typeof e==="function"?e:Hj(+e),a):h};a.paddingBottom=function(e){return arguments.length?(c=typeof e==="function"?e:Hj(+e),a):c};a.paddingLeft=function(e){return arguments.length?(f=typeof e==="function"?e:Hj(+e),a):f};return a}var uH=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(e.values){e.values.forEach(function(e){n.push(e);t(e,n)})}else{n.push(e)}return n};var hH=function(e){s(h,e);var i=c(h);function h(){var r;o(this,h);r=i.call(this);r._layoutPadding=1;r._on.mouseenter=function(){};var t=r._on["mousemove.legend"];r._on["mousemove.legend"]=function(n,e){t(n,e);var i=r._ids(n,e);var a=uH(n);r.hover(function(t){var e=Object.keys(t).filter(function(e){return e!=="value"}).every(function(e){return n[e]&&n[e].includes(t[e])});if(e)a.push(t);else if(i.includes(t.key))a.push.apply(a,d(uH(t,[t])));return a.includes(t)})};var n=r._on["mousemove.shape"];r._on["mousemove.shape"]=function(t,e){if(t.__d3plusTooltip__)n(t,e);r.hover(function(e){return uH(t,[t]).includes(e)})};r._pack=Uj();r._packOpacity=Bg(.25);r._shape=Bg("Circle");r._shapeConfig=wn(r._shapeConfig,{Circle:{label:function e(t){return t.parent&&!t.children?t.id:false},labelConfig:{fontResize:true},opacity:function e(t){return t.__d3plusOpacity__}}});r._sort=function(e,t){return t.value-e.value};r._sum=mn("value");return r}n(h,[{key:"_draw",value:function e(t){var n=this;_(y(h.prototype),"_draw",this).call(this,t);var i=this._height-this._margin.top-this._margin.bottom,a=this._width-this._margin.left-this._margin.right;var r=Math.min(i,a);var o="translate(".concat((a-r)/2,", ").concat((i-r)/2,")");var s=yb();for(var l=0;l<=this._drawDepth;l++){s.key(this._groupBy[l])}s=s.entries(this._filteredData);var u=this._pack.padding(this._layoutPadding).size([r,r])(vj({key:s.key,values:s},function(e){return e.values}).sum(this._sum).sort(this._sort)).descendants();u.forEach(function(e,t){e.__d3plus__=true;e.i=t;e.id=e.parent?e.parent.data.key:null;e.data.__d3plusOpacity__=e.height?n._packOpacity(e.data,t):1;e.data.__d3plusTooltip__=!e.height?true:false});this._shapes.push((new LR).data(u).select(gb("g.d3plus-Pack",{parent:this._select,enter:{transform:o},update:{transform:o}}).node()).config(Tg.bind(this)(this._shapeConfig,"shape","Circle")).render());return this}},{key:"hover",value:function e(t){this._hover=t;this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t);return this}},{key:"layoutPadding",value:function e(t){return arguments.length?(this._layoutPadding=t,this):this._layoutPadding}},{key:"packOpacity",value:function e(t){return arguments.length?(this._packOpacity=typeof t==="function"?t:Bg(t),this):this._packOpacity}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"sum",value:function e(t){return arguments.length?(this._sum=typeof t==="function"?t:mn(t),this):this._sum}}]);return h}(ej);function cH(e,t){if(!(t instanceof Array))t=[t];var n=yb();for(var i=0;i<t.length;i++){n.key(t[i])}var a=n.entries(e);return fH(a)}function fH(e){return e.map(function(e){if(e.key&&e.values){if(e.values[0].key==="undefined")return e.values[0].values[0];else e.values=fH(e.values)}return e})}var dH=function(e){s(v,e);var t=c(v);function v(){var i;o(this,v);i=t.call(this);i._orient="vertical";i._separation=function(e,t){return e.parent===t.parent?1:2};i._shape=Bg("Circle");i._shapeConfig=wn(i._shapeConfig,{ariaLabel:function e(t,n){return i._treeData?"".concat(i._treeData[n].depth,". ").concat(i._drawLabel(t,n),"."):""},labelConfig:{fontColor:"#444"},Path:{fill:"none",stroke:"#ccc",strokeWidth:1},r:Bg(5),width:Bg(10),height:Bg(10)});i._tree=iH();return i}n(v,[{key:"_draw",value:function e(t){var c=this;_(y(v.prototype),"_draw",this).call(this,t);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",i=this,a="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 r=this._treeData=this._tree.separation(this._separation).size([s,n])(vj({key:"root",values:cH(this._filteredData,this._groupBy.slice(0,this._drawDepth+1))},function(e){return e.key&&e.values?e.values:null}).sort(this._sort)).descendants().filter(function(e){return e.depth<=c._groupBy.length&&e.parent});function l(e){return Rb(e.values.map(function(e){return e.key&&e.values?l(e):e}),i._aggs)}r.forEach(function(e,t){if(e.data.key&&e.data.values)e.data=l(e.data);e.__d3plus__=true;e.i=t});var u=this._shapeConfig.r;if(typeof u!=="function")u=Bg(u);var h=ve(r,function(e){return e.depth===1?u(e.data,e.i):0});var f=ve(r,function(e){return e.children?0:u(e.data,e.i)});var d=Be(r,function(e){return e.y});this._labelHeight=Oe([this._orient==="vertical"?50:100,(d[1]-h-f)/(this._groupBy.length+1)]);this._labelWidths=cH(r,function(e){return e.depth}).map(function(r){return r.values.reduce(function(e,t,n){var i=n<r.values.length-1?r.values[n+1].x:s+c._margin[o],a=n?r.values[n-1].x:c._margin[o];return Oe([e,i-t.x,t.x-a])},s)});var g=Ix().domain(d).range([h+this._labelHeight,n-f-this._labelHeight]);r.forEach(function(e){var t=g(e.y);if(c._orient==="horizontal"){e.y=e.x;e.x=t}else e.y=t});var p={parent:this._select,enter:{transform:a},update:{transform:a}};this._shapes.push((new nT).data(r.filter(function(e){return e.depth>1})).select(gb("g.d3plus-Tree-Links",p).node()).config(Tg.bind(this)(this._shapeConfig,"shape","Path")).config({d:function e(t){var n=c._shapeConfig.r;if(typeof n==="function")n=n(t.data,t.i);var i=t.parent.x-t.x+(c._orient==="vertical"?0:n),a=t.parent.y-t.y+(c._orient==="vertical"?n:0),r=c._orient==="vertical"?0:-n,o=c._orient==="vertical"?-n:0;return c._orient==="vertical"?"M".concat(r,",").concat(o,"C").concat(r,",").concat((o+a)/2," ").concat(i,",").concat((o+a)/2," ").concat(i,",").concat(a):"M".concat(r,",").concat(o,"C").concat((r+i)/2,",").concat(o," ").concat((r+i)/2,",").concat(a," ").concat(i,",").concat(a)},id:function e(t,n){return c._ids(t,n).join("-")}}).render());this._shapes.push((new LR).data(r).select(gb("g.d3plus-Tree-Shapes",p).node()).config(Tg.bind(this)(this._shapeConfig,"shape","Circle")).config({id:function e(t,n){return c._ids(t,n).join("-")},label:function e(t,n){if(c._label)return c._label(t.data,n);var i=c._ids(t,n).slice(0,t.depth);return i[i.length-1]},labelConfig:{textAnchor:function e(t){return c._orient==="vertical"?"middle":t.data.children&&t.data.depth!==c._groupBy.length?"end":"start"},verticalAlign:function e(t){return c._orient==="vertical"?t.data.depth===1?"bottom":"top":"middle"}},hitArea:function e(t,n,i){var a=c._labelHeight,r=c._labelWidths[t.depth-1];return{width:c._orient==="vertical"?r:i.r*2+r,height:c._orient==="horizontal"?a:i.r*2+a,x:c._orient==="vertical"?-r/2:t.children&&t.depth!==c._groupBy.length?-(i.r+r):-i.r,y:c._orient==="horizontal"?-a/2:t.children&&t.depth!==c._groupBy.length?-(i.r+c._labelHeight):-i.r}},labelBounds:function e(t,n,i){var a;var r=c._labelHeight,o=c._orient==="vertical"?"height":"width",s=c._labelWidths[t.depth-1],l=c._orient==="vertical"?"width":"height",u=c._orient==="vertical"?"x":"y",h=c._orient==="vertical"?"y":"x";return a={},m(a,l,s),m(a,o,r),m(a,u,-s/2),m(a,h,t.children&&t.depth!==c._groupBy.length?-(i.r+r):i.r),a}}).render());return this}},{key:"orient",value:function e(t){return arguments.length?(this._orient=t,this):this._orient}},{key:"separation",value:function e(t){return arguments.length?(this._separation=t,this):this._separation}}]);return v}(ej);var gH=function(e){s(g,e);var t=c(g);function g(){var a;o(this,g);a=t.call(this);a._layoutPadding=1;a._legendSort=function(e,t){return a._sum(t)-a._sum(e)};a._legendTooltip=wn({},a._legendTooltip,{tbody:[]});a._shapeConfig=wn({},a._shapeConfig,{ariaLabel:function e(t,n){var i=a._rankData?"".concat(a._rankData.indexOf(t)+1,". "):"";return"".concat(i).concat(a._drawLabel(t,n),", ").concat(a._sum(t,n),".")},labelConfig:{fontMax:20,fontMin:8,fontResize:true,padding:5}});a._sort=function(e,t){var n=r(e);var i=r(t);return n&&!i?1:!n&&i?-1:t.value-e.value};a._sum=mn("value");a._thresholdKey=a._sum;a._tile=sH;a._tooltipConfig=wn({},a._tooltipConfig,{tbody:[[function(){return a._translate("Share")},function(e,t,n){return"".concat(LN(n.share*100,a._locale),"%")}]]});a._treemap=lH().round(true);var r=function e(t){return t.children&&t.children.length===1&&t.children[0].data._isAggregation};return a}n(g,[{key:"_draw",value:function e(t){var n=this;_(y(g.prototype),"_draw",this).call(this,t);var i=yb();for(var a=0;a<=this._drawDepth;a++){i.key(this._groupBy[a])}i=i.entries(this._filteredData);var r=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)(vj({values:i},function(e){return e.values}).sum(this._sum).sort(this._sort));var o=[],s=this;function l(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.depth<=s._drawDepth)l(n.children);else{var i=n.data.values.length===1?s._filteredData.indexOf(n.data.values[0]):undefined;n.__d3plus__=true;n.id=n.data.key;n.i=i>-1?i:undefined;n.data=Rb(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(r.children)l(r.children);this._rankData=o.sort(this._sort).map(function(e){return e.data});var u=r.value;o.forEach(function(e){e.share=n._sum(e.data,e.i)/u});var h="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");var c=Tg.bind(this)(this._shapeConfig,"shape","Rect");var f=c.labelConfig.fontMin;var d=c.labelConfig.padding;this._shapes.push((new JR).data(o).label(function(e){return[n._drawLabel(e.data,e.i),"".concat(LN(e.share*100,n._locale),"%")]}).select(gb("g.d3plus-Treemap",{parent:this._select,enter:{transform:h},update:{transform:h}}).node()).config({height:function e(t){return t.y1-t.y0},labelBounds:function e(t,n,i){var a=i.height;var r=Math.min(50,(a-d*2)*.5);if(r<f)r=0;return[{width:i.width,height:a-r,x:-i.width/2,y:-a/2},{width:i.width,height:r+d*2,x:-i.width/2,y:a/2-r-d*2}]},labelConfig:{textAnchor:function e(t,n,i){var a,r=i;while(typeof a==="undefined"&&r){if(typeof r.l!=="undefined")a=r.l;r=r.__d3plusParent__}return a?"middle":"start"},verticalAlign:function e(t,n,i){var a,r=i;while(typeof a==="undefined"&&r){if(typeof r.l!=="undefined")a=r.l;r=r.__d3plusParent__}return a?"bottom":"top"}},width:function e(t){return t.x1-t.x0}}).config(c).render());return this}},{key:"_thresholdFunction",value:function e(t){var h=this._aggs;var c=this._drawDepth;var f=this._groupBy;var d=this._threshold;var g=this._thresholdKey;var p=O(t,g);if(d&&g){return v(t,0)}function v(e,i){if(i<c){return yb().key(f[i]).entries(e).reduce(function(e,t){var n=v(t.values,i+1);return e.concat(n)},[])}if(i===c){var t=Math.min(1,Math.max(0,d(e)));if(!isFinite(t)||isNaN(t))return null;var n=[];var a=e.slice();var r=t*p;var o=a.length;while(o--){var s=a[o];if(g(s)<r){var l=a.indexOf(s);a.splice(l,1);n.push(s)}}if(n.length>0){var u=Rb(n,h);u._isAggregation=true;u._threshold=t;a.push(u)}return a}throw new Error("Depth is higher than the amount of grouping levels.")}return t}},{key:"layoutPadding",value:function e(t){return arguments.length?(this._layoutPadding=typeof t==="function"?t:Bg(t),this):this._layoutPadding}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"sum",value:function e(t){if(arguments.length){this._sum=typeof t==="function"?t:mn(t);this._thresholdKey=this._sum;return this}else return this._sum}},{key:"tile",value:function e(t){return arguments.length?(this._tile=t,this):this._tile}}]);return g}(ej);e.Donut=nj;e.Pack=hH;e.Pie=tj;e.Tree=dH;e.Treemap=gH;Object.defineProperty(e,"__esModule",{value:true})});