/* 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;rl;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,"&").replace(//g,">")}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+="";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=""+e+"";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;ne.length)t=e.length;for(var n=0,i=new Array(t);n=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 et?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>>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>>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(++a1)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=a){r=o=a;while(++ia)r=a;if(o=a){r=o=a;while(++ia)r=a;if(o0)return[e];if(i=t0){e=Math.ceil(e/s);t=Math.floor(t/s);o=new Array(r=Math.ceil(t-e+1));while(++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=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=a){r=a;while(++ir){r=a}}}}}else{while(++i=a){r=a;while(++ir){r=a}}}}}return r}function Pe(e){var t=e.length,n,i=-1,a=0,r,o;while(++i=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=a){r=a;while(++ia){r=a}}}}}else{while(++i=a){r=a;while(++ia){r=a}}}}}return r}function O(e,t){var n=e.length,i=-1,a,r=0;if(t==null){while(++iI));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*fT*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(ite))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(ote))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(yte)||!(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=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 te?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;e0){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;e0?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=0;--t){a[t]=(o[t]-a[t+1])/r[t]}r[n-1]=(e[n]+a[n-1])/2;for(t=0;t=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=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;n0))return;for(var n,i,a=0,r=e[0].length,o;a0))return;for(var n,i=0,a,r,o,s,l,u=e[t[0]].length;i=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;n0)||!((r=(a=e[t[0]]).length)>0))return;for(var n=0,i=1,a,r,o;ir)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(++n1&&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;n1&&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)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=_)_=y+1;while(!(w=v[_])&&++_=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;rt?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;t1?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=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=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(++o0)for(var i=new Array(r),a=0,r,o;a=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(eim)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(+trm&&i.state>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+(n0&&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;ot){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(t180)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=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=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(++tf.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(++i1&&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>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+(n0&&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+(n0&&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(++tn)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(a2?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;n0){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(++ir||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>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(r0){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(r0)for(;ri)break;c.push(u)}}else for(;r=1;--l){u=s*l;if(ui)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*d0?i[t-1]:a[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-t0))return i;do{i.push(a=new Date(+e)),o(e,n),r(e)}while(a=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(++n53)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=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+(r68?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)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",")","}","]",".","!","?","/","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;hw){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;ny&&(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:"&".concat(t)}).replace(/<([^A-z^/]+)/g,function(e,t){return"<".concat(t)}).replace(/<$/g,"<").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(e,t,n){return"".concat(t).concat(n).concat(t.replace("<","]+)(<\/[^>]+>)/g,function(e,t,n){return"".concat(n.replace("]*>([^<^>]+)<\/[^>]+>/g,function(e,t,n){var i=P._html[t]?''):"";return"".concat(i.length?i:"").concat(n).concat(i.length?"":"")})})}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;u0&&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 *, 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=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;r0){i-=1}else if(i0){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;rg.length){g=cA(g,p,t)}else if(p.length0){for(var n=0;nr!==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)e.length)t=e.length;for(var n=0,i=new Array(t);nMath.max(e[0],t[0])+i||oMath.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(++ne.length)t=e.length;for(var n=0,i=new Array(t);n2&&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)t[u]){if(_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;rt){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;so){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);n1&&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=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;nr[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=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;nve(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(na.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(e1&&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(d1&&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 i9999?"+"+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)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(rMath.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(v0)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+(n0&&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=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;an.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;n0)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(++ir||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>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);nt[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)=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]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;n0){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=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(de.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;nl){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;nf){h=[];break}if(a>l){h=[];this._wrapLines();break}else if(t+af){o=O(this._lineData.map(function(e){return e.shapeWidth+c._padding}))-this._padding;for(var s=0;sthis._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 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 en._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=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;n2&&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;io[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.top)||y==="bottom"&&a(n.top)a(m.right);var l=a(n.top)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[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){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.bottomn.right||t.top>n.bottom||t.right2&&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;n0&&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= 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=55296&&a<=56319&&n65535){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=128){E("not-basic")}t.push(e.charCodeAt(l))}for(u=s>0?s+1:0;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(dS(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=t&&cS((m-n)/g)){E("overflow")}n+=(s-t)*g;t=s;for(o=0;om){E("overflow")}if(c==t){for(l=n,u=y;;u+=y){h=u<=r?_:u>=r+b?b:u-r;if(l0){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("");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 o0){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 ",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+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,";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>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;n3){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 "+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>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)>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)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(/\sp){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("",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("");if(at){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=0){var a=t.length-1;while(i0},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=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+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");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("")}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("");case gF:return t.push("\x3c!--",e.data,"--\x3e");case vF:var p=e.publicId;var v=e.systemId;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("");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",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=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~\.\[:]+)/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]*>/,"");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;rthis.x2)this.x2=e}if(t!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=t;this.y2=t}if(tthis.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=0;t--){this.transforms[t].unapply(e)}};this.applyToPoint=function(e){for(var t=0;ta){this.styles[i]=t[i];this.stylesSpecificity[i]=n}}}}}};if(r!=null&&r.nodeType==1){for(var e=0;e0){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;e1){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]=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;i1)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.beginn&&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;i0&&t[n-1]!=" "&&n0&&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;o0){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;t0){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;t0){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;xe.length)t=e.length;for(var n=0,i=new Array(t);n0&&!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").concat(a,"");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;o0&&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+to+t&&n+t=0){this._solo=[];this._hidden=[];this.render()}}else{if(r<0&&this._hidden.length").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._drawDepthe.length)t=e.length;for(var n=0,i=new Array(t);n0&&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/l0)i.x=0;else if(i.x0)i.y=0;else if(i.ye.length)t=e.length;for(var n=0,i=new Array(t);n600: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
\n ".concat(s._translate("Loading Visualization"),'\n ').concat(s._translate("Powered by D3plus"),"\n
")};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
\n ".concat(s._translate("No Data Available"),"\n
")};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=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=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(t0&&n*n>i*i+a*a}function Rj(e,t){for(var n=0;nl){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=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.xi.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(++sy)y=u;x=v*v*w;_=Math.max(y/x,x/m);if(_>b){v-=u;break}b=_}o.push(l={value:v,dice:d1?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(a1&&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;i1})).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-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(r0){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})});