/youtubetv/community?hl=en

About the Community

Activity
Loading...
Top 16 posters this month
4858 members
BryanGR86(1287 posts)
Platinum Product Expert
Red5 Standing By(241 posts)
Platinum Product Expert
Rufus Xavier Sarsaparilla(62 posts)
Platinum Product Expert
LHiggins(11 posts)
Edward Pham(6 posts)
Pbyrne(6 posts)
Lysania Santiago(6 posts)
Tylrrr(6 posts)
User 14707603918736319841(5 posts)
Tad Herrin(5 posts)
S Marten(4 posts)
User 18402930337723654375(4 posts)
Jose Colon 7783(4 posts)
kc9333(4 posts)
User 2546718140745306758(4 posts)
JEAN WEED(4 posts)
false
Search
Clear search
Close search
Google apps
Main menu
1662959361271259862
true
Search Help Center
true
true
true
true
true
1025958

");return(new DOMParser).parseFromString(fg(a),"text/html").body.children[0]} function rm(a,b){if(!a)return Tg(mm);var c=document.createElement("div").style;um(a).forEach(function(e){var f=rf&&e in om?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");f.lastIndexOf("--",0)!=0&&f.lastIndexOf("var",0)!=0&&(e=im(a,e),e=Il(f,e,b),e!=null&&jm(c,f,e))});return c.cssText||""} function vm(a){var b=Array.from(am(Ql,a,"getElementsByTagName",["STYLE"])),c=nf(b,function(n){return cf(em(n).cssRules)});c=qm(c);for(var e=[],f=0;f=0)){var f=im(b,e);jm(a.style,e,f)}})} function um(a){Ed(a)?a=cf(a):(a=Sh(a),Ve(a,"cssText"));return a} ;var xm=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,ym=0;function zm(){this.O=[];this.N=[];this.v="data-elementweakmap-index-"+ym++} zm.prototype.set=function(a,b){am(Ml,a,"hasAttribute",[this.v])?(a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]=b):(b=this.N.push(b)-1,cm(a,this.v,b.toString()),this.O.push(a));return this};zm.prototype.get=function(a){if(am(Ml,a,"hasAttribute",[this.v]))return a=parseInt(am(Nl,a,"getAttribute",[this.v])||null,10),this.N[a]};zm.prototype.clear=function(){this.O.forEach(function(a){am(Pl,a,"removeAttribute",[this.v])},this);this.O=[];this.N=[]};function Am(){this.O=document.implementation.createHTMLDocument("")} Am.prototype.ma=function(a){var b=this.O.createElement("span");this.N&&this.ka=="*"&&(b.id=this.N);this.ta&&(a=tm("

"+a+"
"),vm(a),a=a.innerHTML);a=dg(a);var c=document.createElement("template");if("content"in c)gg(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;gg(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=xm?new WeakMap:new zm;e=a.nextNode();){a:{var f=e;switch(gm(f)){case 3:f=Bm(this,f);break a;case 1:if(fm(f).toUpperCase()=="TEMPLATE")f=null;else{var k=fm(f).toUpperCase();if(k in this.na||km(f)!="http://www.w3.org/1999/xhtml")k=null;else if(this.ha[k])k=this.O.createElement(k);else{var n=this.O.createElement("span");this.Ca&&cm(n,"data-sanitizer-original-tag",k.toLowerCase());k=n}if(n=k){var r=bm(f);if(r!=null)for(var t=0;k=r[t];t++)if(k.specified){var y=f,E=k;var ma=E.name;if(ma.lastIndexOf("data-sanitizer-",0)==0)ma=null;else{var na=fm(y);E=E.value;var sa={tagName:Vd(na).toLowerCase(),attributeName:Vd(ma).toLowerCase()},ua={th:void 0};sa.attributeName=="style"&&(ua.th=dm(y));y=Cm(na,ma);y in this.v?ma=(0,this.v[y])(E,sa,ua):(ma=Cm(null,ma),ma=ma in this.v?(0,this.v[ma])(E,sa,ua):null)}ma!==null&&cm(n,k.name,ma)}f=n}else f=null}break a;default:f=null}}if(f){if(gm(f)==1&&c.set(e,f),e=hm(e),k=!1,e)n=gm(e),r=fm(e).toLowerCase(),t=hm(e),n!=11||t?r=="body"&&t&&(n=hm(t))&&!hm(n)&&(k=!0):k=!0,n=null,k||!e?n=b:gm(e)==1&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else dj(e)}c.clear&& c.clear();return b};var Dm={APPLET:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0};var Em={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,AUDIO:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,VIDEO:!0,WBR:!0};var Fm={"ANNOTATION-XML":!0,"COLOR-PROFILE":!0,"FONT-FACE":!0,"FONT-FACE-SRC":!0,"FONT-FACE-URI":!0,"FONT-FACE-FORMAT":!0,"FONT-FACE-NAME":!0,"MISSING-GLYPH":!0};function Gm(a){this.O=document.implementation.createHTMLDocument("");a=a||new Hm;Im(a);this.v=Vh(a.v);this.na=Vh(a.Ca);this.ha=Vh(a.Ia);this.Ca=a.ta;a.ka.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new Td('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new Td('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Jm},this);a.Ka.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||Fm[b])throw new Td("Only valid custom element tag names allowed, got: %s.",[b]);this.ha[b]=!0},this);this.ya=a.O;this.ka=a.ya;this.N=null;this.ta=a.oa} Pd(Gm,Am);function Km(a){return function(b,c){b=Vd(b);return(c=a(b,c))&&Rf(c)!=Qf.toString()?Rf(c):null}} function Hm(){this.v={};Qe([wl,xl],function(a){Sh(a).forEach(function(b){this.v[b]=Jm},this)},this);this.N={};this.ka=[];this.Ka=[];this.Ca=Vh(Dm);this.Ia=Vh(Em);this.ta=!1;this.La=Lm;this.ma=this.ha=this.Oa=this.O=ul;this.ya=null;this.na=this.oa=!1} function Mm(a,b){return function(c,e,f,k){c=a(c,e,f,k);return c==null?null:b(c,e,f,k)}} function Nm(a,b,c,e){a[c]&&!b[c]&&(a[c]=Mm(a[c],e))} function Im(a){if(a.na)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Nm(a.v,a.N,"* USEMAP",Om);var b=Km(a.La);["* ACTION","* CITE","* HREF"].forEach(function(e){Nm(this.v,this.N,e,b)},a);var c=Km(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){Nm(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){Nm(this.v,this.N,e,Nd(Pm,this.Oa))},a);Nm(a.v,a.N,"A TARGET",Nd(Qm,["_blank","_self"]));Nm(a.v,a.N,"* CLASS",Nd(Rm,a.ha));Nm(a.v,a.N,"* ID",Nd(Sm,a.ha));Nm(a.v,a.N,"* STYLE",Nd(a.ma,c));a.na=!0} function Lm(a){return Wf(a)} function Cm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Jm(a){return Vd(a)} function Qm(a,b){b=Vd(b);return Pe(a,b.toLowerCase())>=0?b:null} function Om(a){return(a=Vd(a))&&a.charAt(0)=="#"?a:null} function Pm(a,b,c){b=Vd(b);return a(b,c)} function Rm(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f0){var b=this.O.createElement("span");b.appendChild(a);a=b}a=(new XMLSerializer).serializeToString(a);a=a.slice(a.indexOf(">")+1,a.lastIndexOf(""));return dg(a)};Gm.prototype.jk=function(a){this.N=Tm(this);return Am.prototype.ma.call(this,a)};function Tm(a){var b=!("STYLE"in a.na)&&"STYLE"in a.ha;return a.ka=="*"&&b?"sanitizer-"+(Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)):a.ka} function Bm(a,b){var c=b.data;(b=hm(b))&&fm(b).toLowerCase()=="style"&&!("STYLE"in a.na)&&"STYLE"in a.ha&&(c=lg(sm(c,a.N,Md(function(e,f){return this.ya(e,{Ol:f})},a))));return document.createTextNode(c)} ;function Um(a,b,c){var e=Vm(b);a=Wm(e,a,c||{});return Xm(b,e,a)} Od("aplos.util.SimpleTemplate.populateToText",Um);function Ym(a,b,c,e,f){Zm(b,c,e).forEach(function(k){f?a.insertBefore(k,f):a.appendChild(k)})} Od("aplos.util.SimpleTemplate.appendChildren",Ym);function Zm(a,b,c){c=c||{};var e=Vm(b);a=Wm(e,a,c);var f=[],k=[];Ph(a,function(n,r){n instanceof Node||Array.isArray(n)&&n[0]instanceof Node?k.push(r):f.push(r)});typeof b==="string"||f.length?(b=Xm(b,f,a),c=$m(b)):(e=document.createDocumentFragment(),c=document.createElement("span"),e.appendChild(c),gg(c,b));k.length&&an(c,a);return Array.prototype.map.call(c.childNodes,function(n){return n})} Od("aplos.util.SimpleTemplate.populateToNodes",Zm);function $m(a){var b="";a.match(/^/i)&&a.match(/<\/td>$/i)&&(b=b||"td",a=""+a+"");a.match(/^/i)&&a.match(/<\/tr>$/i)&&(b=b||"tr",a=""+a+"");a.match(/^<(tbody|thead|tfoot)>/i)&&a.match(/<\/(tbody|thead|tfoot)>$/i)&&(b=b||a.match(/^<(tbody|thead|tfoot)>/i)[1],a=""+a+"
");a=bn(a);b&&(a=a.querySelector(b).parentNode);return a} function an(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?cn(e,f,b):f.childNodes.length&&c.push(f)})} function cn(a,b,c){if(b.textContent.match(dn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=dn.exec(b);){f.index>0&&k.push(document.createTextNode(b.slice(0,f.index)));var n=c[f[1]];n instanceof Node?k.push(n.cloneNode(!0)):Array.isArray(n)&&n[0]instanceof Node&&n.forEach(function(r){k.push(r.cloneNode(!0))});b=b.slice(f.index+f[0].length);dn.lastIndex=0}b&&k.push(document.createTextNode(b));k.forEach(function(r){a.insertBefore(r,e)})}} function Xm(a,b,c){var e=en(a);b.forEach(function(f){var k=c[f];typeof k==="number"||Fd(k)||typeof k==="boolean"?k=k.toString():(k instanceof Node?k=k.outerHTML:k instanceof cg?k=fg(k).toString():k=ih(en(k)),k=k.replace("$","$$$$"));f=String("{{"+f+"}}").replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08");e=e.replace(new RegExp(f,"g"),k)});return e} function en(a){return a instanceof cg?fg(a).toString():""+a} function Wm(a,b,c){var e={};a.forEach(function(f){var k=Cd(f,b);k==null&&f.indexOf("datum.")===0&&(f.match(/\./g)||[]).length>1&&(k=b.datum[f.substr(6)]);if(typeof k==="function"){var n=f.lastIndexOf("."),r=b;n>0&&(r=Cd(f.substring(0,n),b));k=k.apply(r)}(n=c[f])&&(k=n.apply(b,[k,b]));e[f]=k!=null?k:""});return e} function Vm(a){a=en(a);if(!a||!a.trim().length)return[];for(var b,c={};b=dn.exec(a);)c[b[1]]=!0;return Sh(c)} Od("aplos.util.SimpleTemplate.extractTemplateVariables",Vm);Od("aplos.util.SimpleTemplate.setSanitizerFunction",function(a){bn=a});Od("aplos.util.SimpleTemplate.setSanitizer",function(a){bn=a.jk.bind(a)});function bn(a){return fn.jk(a)} var gn=new Hm;gn.ma=function(a,b,c,e){if(!e.th)return null;b=rm(e.th,function(f,k){c.Ol=k;f=a(f,c);var n;f==null?n=null:n=new Pf(f);return n});return b==""?null:b};(function(a,b){for(var c=1;c=0?a.slice(0,e):a;e<0&&(a=f+".autoNamespace"+this.ha++);if(b){c&&(b=Md(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);Ve(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],Ve(this.N[f]||[],b),delete this.v[a];else if(a.length>1)for(k in this.v)b=k.length-a.length,b>=0&&k.indexOf(a,b)==b&&(b=this.v[k],delete this.v[k],f=k.slice(0,k.indexOf(".")),Ve(this.N[f]||[],b))};tn.prototype.ob=function(a,b,c){if(this.O.hasOwnProperty(a)){var e=this.N[a];if(e){e=e.slice();for(var f=Array.prototype.slice.call(arguments,2),k=0;k0};w.deselectAll=function(){!this.N&&this.he()&&(this.v.clear(),wn(this))};w.Wg=function(a,b){this.Xa.on("selectionChange."+a,b)};function wn(a){a.Xa.ob("selectionChange",a,a)} w.Jn=function(){return this.N};w.lock=function(){this.N||(this.N=!0,xn(this))};w.unlock=function(){this.N&&(this.N=!1,xn(this))};w.Wn=function(a,b){this.Xa.on("selectionLockChange."+a,b)};function xn(a){a.Xa.ob("selectionLockChange",a,a)} vn.prototype.onSelectionLockChange=vn.prototype.Wn;vn.prototype.unlock=vn.prototype.unlock;vn.prototype.lock=vn.prototype.lock;vn.prototype.isLocked=vn.prototype.Jn;vn.prototype.onSelectionChange=vn.prototype.Wg;vn.prototype.deselectAll=vn.prototype.deselectAll;vn.prototype.hasSelection=vn.prototype.he;vn.prototype.isDatumSelected=vn.prototype.Gj;vn.prototype.deselectDatum=vn.prototype.Tl;vn.prototype.selectDatum=vn.prototype.di;vn.prototype.setSelection=vn.prototype.Ci;vn.prototype.setSeriesSelectionProperties=vn.prototype.Ko;vn.prototype.setDataSelectionProperties=vn.prototype.xo;vn.prototype.setSelectionProperties=vn.prototype.Di;Od("aplos.chart.SeriesDataSelectionModel",vn);Od("aplos.chart.SeriesDataSelectionModel.FULL_DATUM_KEY","__datum__");function yn(a){this.N={};this.v=a||null;this.O={}} function zn(a,b){var c=An(a,b);return c?zn(a,c):a.N[b]?!0:a.v?zn(a.v,b):!1} yn.prototype.vg=function(a,b){var c=this.N;a in c&&delete c[a];this.O[a]=b;return this};yn.prototype.set=function(a,b,c){var e=this.O;a in e&&delete e[a];this.N[a]=Bn(this,b,c);return this};yn.prototype.get=function(a,b){var c=An(this,a);return c?this.get(c,b):(c=this.N[a])?c:this.v?this.v.get(a,b):Cn(a,b)};function Bn(a,b,c){if(typeof b==="function"){var e=Md(b,a);return c?function(f,k){f=e(f,k);return f!=null?+f:f}:e}return Md(function(f){f=f?f[b]:void 0;return f===void 0?b:c&&f!==null?+f:f},a)} function Cn(a,b){return function(c){c=c[a];if(c===void 0)throw Error("Please either include a property called "+a+" in the data or specify a value in the configuration.");return b&&c!=null?+c:c}} function An(a,b){if(!a.N[b]){if(a.O[b])return a.O[b];if(a.v)return An(a.v,b)}return null} ;function Dn(a,b){this.wb=a;this.O=null;this.v=b||null;this.N=b?new yn(b.N):new yn;this.oa=this.ha=this.na=null;this.ya={};this.ta=this.ma=this.ka=null} w=Dn.prototype;w.Kg=function(){return this.ta?this.ta:this.v?this.v.Kg():null};w.Qh=function(){return new Dn(this.wb,this)};function En(a,b){a.ta=b;b.x&&a.domain(b.x);b.xLowerBound&&a.Ge(In(b.xLowerBound));b.xUpperBound&&a.He(In(b.xUpperBound));b.x0&&a.ae(In(b.x0));b.y&&a.measure(In(b.y));b.yLowerBound&&a.Ye(In(b.yLowerBound));b.yUpperBound&&a.Ze(In(b.yUpperBound));b.y0&&a.Lc(In(b.y0));b.domainFormatter&&a.Dd(b.domainFormatter);b.measureFormatter&&a.Ub(b.measureFormatter);a.displayName(b.displayName||b.name);a.Vb(b.rendererId);a.je(b.measureAxisId);a.Of(b.overlay);["category","datumClickState","datumHoverState"].forEach(function(e){return Jn(a,e,b[e],!0,!1)});"color dashPattern dataId datumClass domain key label labelTemplate strokeWidth radius".split(" ").forEach(function(e){return Kn(a,e,b,!0,!1)});"delta domainLowerBound domainOffset domainUpperBound latitude longitude measure measureLowerBound measureOffset measureUpperBound".split(" ").forEach(function(e){return Kn(a,e,b,!1,!0)});var c=c||[];c.forEach(function(e){return Kn(a,e,b,!0,!1)})} function Jn(a,b,c,e,f){c!=null&&(typeof c!=="string"||e||(c=In(c)),typeof c==="function"&&(c=Md(c,a)),a.N.set(b,c,f))} function Kn(a,b,c,e,f){var k=c[b];(c=c[b+"ColumnId"])&&(k=In(c,e?k:null));Jn(a,b,k,e,f)} function In(a,b){return function(c){return c&&c.hasOwnProperty(a)?c[a]:b}} function Ln(a,b){for(var c=a.domain(),e=ln(a,"domainOffset")?a.ae():void 0,f=ln(a,"domainLowerBound")?a.Ge():void 0,k=ln(a,"domainUpperBound")?a.He():void 0,n=a.measure(),r=a.Lc(),t=ln(a,"measureLowerBound")?a.Ye():void 0,y=ln(a,"measureUpperBound")?a.Ze():void 0,E=a.wh(),ma=a.key(),na=a.radius(),sa=a.color(),ua=a.Fe(),ta=a.Fc(),Ba=ln(a,"strokeWidth")?a.strokeWidth():void 0,ya=a.label(),Aa=ln(a,"category")?a.Hb():void 0,Ca=Array(b.length),Fa=0;Fa=0})} function Sn(a){return a.Ca.filter(function(b){return b.Bc!==!0}).length>0} function Wn(a,b){a={Ba:0n){r=Mo(f);for(e=a=0;e0&&y.Ba.heightk){n=Mo(e);for(c=a=0;c0&&t.Ba.width=0)?a.oa:b.height-a.ma,k=0;k=0)?a.ka:b.width-a.na,k=a.oa;a=b.height-a.ma;for(b=0;b-1?(b=a[n],c||(b.wg=!1)):(b=new ap(b,this.src,k,!!e,f),b.wg=c,a.push(b));return b};cp.prototype.remove=function(a,b,c,e){a=a.toString();if(!(a in this.v))return!1;var f=this.v[a];b=dp(f,b,c,e);return b>-1?(bp(f[b]),We(f,b),f.length==0&&(delete this.v[a],this.N--),!0):!1};function ep(a,b){var c=b.type;c in a.v&&Ve(a.v[c],b)&&(bp(b),a.v[c].length==0&&(delete a.v[c],a.N--))} cp.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.v)if(!a||c==a){for(var e=this.v[c],f=0;f-1?b[a]:null)&&rp(c))} function rp(a){if(typeof a!=="number"&&a&&!a.Tf){var b=a.src;if(b&&b[Zo])ep(b.v,a);else{var c=a.type,e=a.proxy;b.removeEventListener?b.removeEventListener(c,e,a.capture):b.detachEvent?b.detachEvent(op(c),e):b.addListener&&b.removeListener&&b.removeListener(e);hp--;(c=mp(b))?(ep(c,a),c.N==0&&(c.src=null,b[fp]=null)):bp(a)}}} function op(a){return a in gp?gp[a]:gp[a]="on"+a} function pp(a,b){if(a.Tf)a=!0;else{b=new Yo(b,this);var c=a.listener,e=a.Mg||a.src;a.wg&&rp(a);a=c.call(e,b)}return a} function mp(a){a=a[fp];return a instanceof cp?a:null} var sp="__closure_events_fn_"+(Math.random()*1E9>>>0);function kp(a){if(typeof a==="function")return a;a[sp]||(a[sp]=function(b){return a.handleEvent(b)});return a[sp]} ;var tp=If("");function up(){this.port=this.v=null;this.N=[]} up.prototype.load=function(){var a=this,b=vp();this.v=wp(b);xp().then(function(){a.v&&document.body.appendChild(a.v)});return yp(this.v,b).then(function(c){for(a.port=c.ports[0];a.N.length>0;)c=a.N.shift(),a.port.postMessage(c.data,c.bp)})};up.prototype.exec=function(a,b){var c=this;return new Promise(function(e,f){var k=new MessageChannel;k.port1.onmessage=function(ma){k.port1.onmessage=null;ma=ma.data;ma.error!=null?f(new EvalError(ma.error)):e(ma.result)};for(var n=[],r=[],t=[],y=Xc(b!=null?b:[]),E=y.next();!E.done;E=y.next())E=E.value,n.push(E.name),r.push(E.value),E.transfer&&t.push(E.value);n={code:a,paramNames:n,values:r};c.port?c.port.postMessage(n,[k.port2].concat(Yc(t))):c.N.push({data:n,bp:[k.port2].concat(Yc(t))})})};up.prototype.dispose=function(){this.v!=null&&(this.v.parentNode&&this.v.parentNode.removeChild(this.v),this.v=null)};function vp(){var a=(window.crypto||window.msCrypto).getRandomValues(new Uint8Array(16));return Array.prototype.join.call(a,".")} function xp(){return new Promise(function(a){document.readyState!="loading"?a():jp(document,"DOMContentLoaded",function(){a()})})} function yp(a,b){return new Promise(function(c){function e(f){f.source===a.contentWindow&&f.data===b&&(window.removeEventListener("message",e),c(f))} window.addEventListener("message",e)})} function wp(a){var b=bj(document,"IFRAME");if(!b.sandbox)throw Error("iframe sandboxes not supported");b.sandbox.value="allow-scripts";b.sandbox.supports&&b.sandbox.add&&b.sandbox.supports("allow-downloads")&&b.sandbox.add("allow-downloads");if(tp==""){a='');a=If("data:text/html;charset=UTF-8;base64,"+btoa(c.toString()));b.srcdoc=fg(c)}else{c=new Map([["nonce",a]]);var e=Jf(tp).toString();var f=e.split(/[?#]/),k=/[?]/.test(e)?"?"+f[1]:"";a=f[0];e=/[#]/.test(e)?"#"+(k?f[2]:f[1]):"";a=Sg(a,k,e,c)}b.src=Jf(a).toString();b.style.cssText="height: 0; left: 0; position: absolute; top: 0; width: 0;";b.setAttribute("aria-hidden","true");return b} ;var zp={hp:!1},Ap;function Bp(a){this.options=a=a===void 0?zp:a;Cp(this.options)||typeof navigator.msSaveOrOpenBlob==="function"||(this.v=new up)} Bp.download=function(a,b,c,e){c=c===void 0?"":c;e=e===void 0?zp:e;return rd(function(f){if(f.v==1)return id(f,Dp(a,b,c,e),2);if(f.na)return f.return();Ap||(Ap=new Bp,Ap.init());return id(f,Ep(Ap,a,b,c),0)})};Bp.prototype.init=function(){var a=this;return rd(function(b){return a.v==null?b.return():id(b,a.v.load(),0)})};Bp.prototype.download=function(a,b,c){c=c===void 0?"":c;var e=this;return rd(function(f){return f.v==1?id(f,Dp(a,b,c,e.options),2):f.na?f.return():id(f,Ep(e,a,b,c),0)})};function Ep(a,b,c,e){e=e===void 0?"":e;var f,k;return rd(function(n){switch(n.v){case 1:f=b instanceof Blob?b:new Blob([b],{type:e});if(typeof navigator.msSaveOrOpenBlob!=="function"){n.Jf(2);break}navigator.msSaveOrOpenBlob(f,c);return id(n,Fp(),3);case 3:return n.return();case 2:if(!oe()||me()>=0||!Me()&&(!He("iPad")&&!He("iPhone")||Le()||Me()||(Ie()?0:He("Coast"))||Ke()||!He("AppleWebKit"))){n.Jf(4);break}k=new FileReader;k.onload=function(){var r=bj(document,"A"),t=Wf(String(k.result));t instanceof Pf?t=Rf(t):t=ag.test(t)?t:void 0;t!==void 0&&(r.href=t);r.download=c;r.click()};k.readAsDataURL(f);return id(n,Fp(),5);case 5:return n.return();case 4:return a.v==null&&(a.v=new up,a.v.load()),id(n,a.v.exec('var url=URL.createObjectURL(blob);var a=document.createElement("a");if(!("download" in a)){throw new Error("Downloading not supported on this browser");}a.href=url;a.download=filename;document.body.appendChild(a);a.click();setTimeout(function(){document.body.removeChild(a);URL.revokeObjectURL(url);},250);',[{name:"blob",value:f,transfer:!1},{name:"filename",value:c,transfer:!1}]),6);case 6:return id(n,Fp(),0)}})} function Dp(a,b,c,e){c=c===void 0?"":c;e=e===void 0?zp:e;var f;return rd(function(k){switch(k.v){case 1:if(!Cp(e))return k.return(!1);k.O=2;return id(k,Gp(a,b,c),4);case 4:k.v=3;k.O=0;break;case 2:f=jd(k);if(f instanceof DOMException&&f.name==="SecurityError")return k.return(!1);throw f;case 3:return k.return(!0)}})} function Cp(a){a=a===void 0?zp:a;return a.hp&&!!window.showSaveFilePicker} function Gp(a,b,c){c=c===void 0?"":c;var e,f,k,n;return rd(function(r){switch(r.v){case 1:var t=c,y={suggestedName:b},E;(E=b.match(/\..+$/))?(E=E[0],E=E.length>16?null:E):E=null;if(E){t=t.replace(/;[^]*/,"");var ma={};y.types=[{description:"*"+E,accept:(ma[/^\s*[a-zA-Z0-9+._-]+\/[a-zA-Z0-9+._-]+?\s*$/.test(t)?t:"*/*"]=[E],ma)}]}e=y;r.O=2;return id(r,window.showSaveFilePicker(e),4);case 4:f=r.na;r.v=3;r.O=0;break;case 2:k=jd(r);if(k instanceof DOMException&&k.name==="AbortError")return r.return();throw k;case 3:return id(r,f.createWritable(),5);case 5:return n=r.na,r.O=0,r.ka=6,id(r,n.write(a),6);case 6:return r.ta=[r.N],r.O=0,r.ka=0,id(r,n.close(),9);case 9:y=r.ta.splice(0)[0];(y=r.N=r.N||y)?y.Hj?r.v=r.O||r.ka:y.Jf!=void 0&&r.ka1?f/(k-1):null} ;function Kp(a){return typeof a!=="number"||isNaN(a)||!isFinite(a)?!1:parseInt(a,10)===a} Od("aplos.data.aggregations.accumulate",function(a,b){return b?Se(a,b):a});function Lp(a,b){b=b===void 0?vl:b;var c=Mp(a,b);return c==null?null:c/Np(a,b)} Od("aplos.data.aggregations.average",Lp);function Op(a,b){b=b===void 0?vl:b;var c=0;a.forEach(function(e,f){b(e,f)==1&&c++});return c} Od("aplos.data.aggregations.countIf",Op);function Mp(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&!isNaN(+e)&&isFinite(e)&&(c=(c||0)+ +e)});return c} Od("aplos.data.aggregations.sum",Mp);function Pp(a,b){var c=null;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&(c===null&&(c=Infinity),c=ce?c:c==e?c:e)});return c} Od("aplos.data.aggregations.max",Qp);function Np(a,b){var c=0;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c++});return c} Od("aplos.data.aggregations.count",Np);function Rp(a,b){var c=new Set;b=b||vl;a.forEach(function(e,f){e=b(e,f);e!=null&&(typeof e!=="number"||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} Od("aplos.data.aggregations.countDistinct",Rp);function Sp(a,b,c,e){if(a<2||!Kp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(b<0||b>a||!Kp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Tp(b/a,c,e)} Od("aplos.data.aggregations.quantiles",Sp);function Tp(a,b,c){if(a<0||a>1)throw Error("phi value for quantiles must be 0 <= phi <= 1");b=b.map(c||vl);b=b.filter(function(e){return e!=null&&!isNaN(+e)});if(!b.length)return null;b.sort(gi);return b[a===0?0:Math.ceil(b.length*a)-1]} Od("aplos.data.aggregations.phiQuantiles",Tp);function Up(a,b){return Jp(a,!1,b)} Od("aplos.data.aggregations.variance",Up);function Vp(a,b){return(a=Jp(a,!1,b))&&Math.sqrt(a)} Od("aplos.data.aggregations.stdDev",Vp);Od("aplos.data.aggregations.makeJackknifeStdErrFn",function(a,b){return function(c){if(!c||c.length<2)var e=null;else{if(!c||c.length<2)e=null;else if(e=[],b){var f=kf(c,b);f=Rh(f);if(f.length<2)e=null;else{c=mf(f);for(var k=0;k=c&&ae?(a=a.Ic(c+1)-e,(c*a+b-e)/a):b=0&&a<100&&b.setFullYear(b.getFullYear()-1900);return b} w=kq.prototype;w.Je=eq.il;w.Ke=eq.jl;w.clone=function(){var a=new kq(this.date);a.Je=this.Je;a.Ke=this.Ke;return a};w.getFullYear=function(){return this.date.getFullYear()};w.getYear=function(){return this.getFullYear()};w.getMonth=function(){return this.date.getMonth()};w.getDate=function(){return this.date.getDate()};w.getTime=function(){return this.date.getTime()};w.getDay=function(){return this.date.getDay()};w.getUTCFullYear=function(){return this.date.getUTCFullYear()};w.getUTCMonth=function(){return this.date.getUTCMonth()};w.getUTCDate=function(){return this.date.getUTCDate()};w.getUTCDay=function(){return this.date.getDay()};w.getUTCHours=function(){return this.date.getUTCHours()};w.getUTCMinutes=function(){return this.date.getUTCMinutes()};w.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};w.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};w.setFullYear=function(a){this.date.setFullYear(a)};w.setYear=function(a){this.setFullYear(a)};w.setMonth=function(a){this.date.setMonth(a)};w.setDate=function(a){this.date.setDate(a)};w.setTime=function(a){this.date.setTime(a)};w.setUTCFullYear=function(a){this.date.setUTCFullYear(a)};w.setUTCMonth=function(a){this.date.setUTCMonth(a)};w.setUTCDate=function(a){this.date.setUTCDate(a)};w.add=function(a){if(a.N||a.months){var b=this.getMonth()+a.months+a.N*12,c=this.getYear()+Math.floor(b/12);b%=12;b<0&&(b+=12);var e=Math.min(gq(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.days&&(c=this.getYear(),b=c>=0&&c<=99?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+a.days*864E5),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),mq(this,a.getDate()))};w.jg=function(a){var b=this.getFullYear(),c=b<0?"-":b>=1E4?"+":"";return[c+lh(Math.abs(b),c?6:4),lh(this.getMonth()+1,2),lh(this.getDate(),2)].join(a?"-":"")+""};w.toString=function(){return this.jg()};function mq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.zg?a-=c.Tg-c.Jb:a<=c.Af&&(a-=c.Rf-c.Jb);return a} function tq(a,b){b=b||"UTC";try{return pq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return pq(a,"%Y-%m-%d",b)}catch(c){}throw Error(a+" not of the form Y-M-D or Y-M-D H-M-S");} function uq(a,b,c){c=c||"UTC";var e=vq(b);wq(a);qq(c,"Invalid timezone specified");if(c==="local")return xq(a,e);var f=Math.floor(a/1E3);b=yq(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=yq(a,c),(a-c)*1E3;case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),Math.floor(a.getUTCMonth()/3)*3,1),c=yq(a,c),(a-c)*1E3;case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=yq(a,c),(a-c)*1E3;case "WEEK":return a=new oq,a.setTime(f+b),b=new hq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=yq(a,c),(a-c)*1E3;case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=yq(a,c),(a-c)*1E3;case "HOUR":return a=f+b,zq(a-a%36E5-b,c)*1E3;case "MINUTE":return a=f+b,zq(a-a%6E4-b,c)*1E3;case "SECOND":return zq(Math.floor(f/1E3)*1E3,c)*1E3;case "MILLISECOND":return zq(Math.floor(f),c)*1E3;case "MICROSECOND":return zq(Math.floor(a)/1E3,c)* 1E3;default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function Aq(a,b,c,e){e=e===void 0?"UTC":e;if(e==="local"){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;c>11;)c-=12,b+=1;e.setFullYear(b,c,Math.min((new Date(b,c+1,0)).getDate(),e.getDate()));e=e.getTime()*1E3;break;case "WEEK":c*=7;case "DAY":e=new Date(e/1E3);e.setDate(e.getDate()+c);e=e.getTime()*1E3;break;case "HOUR":e=new Date(e/1E3);e.setHours(e.getHours()+c);e=e.getTime()*1E3;break;case "MINUTE":c*= 60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":e+=c}return e}var f=sq(a,e);switch(b){case "YEAR":case "QUARTER":case "MONTH":b==="YEAR"?c*=12:b==="QUARTER"&&(c*=3);b=new Date((a+f.Jb)/1E3);f=b.getUTCFullYear();for(c=b.getUTCMonth()+c;c>11;)c-=12,f+=1;b.setUTCFullYear(f,c,Math.min((new Date(f,c+1,0)).getUTCDate(),b.getUTCDate()));a=b.getTime()*1E3;f=sq(a,e);a-=f.Jb;break;case "WEEK":c*=7;case "DAY":b=new Date((a+f.Jb)/1E3);b.setUTCDate(b.getUTCDate()+c);a=b.getTime()*1E3;f=sq(a,e);a-=f.Jb;break;case "HOUR":return b=a+c*60*60*1E3*1E3,Math.abs(c)>1&&(c=Bq(b,e),b-=c-f.Jb),b;case "MINUTE":c*=60;case "SECOND":c*=1E3;case "MILLISECOND":c*=1E3;case "MICROSECOND":a+=c}return a} function Bq(a,b){return b?sq(a,b).Jb:-1*(new Date(a/1E3)).getTimezoneOffset()*60*1E3*1E3} function sq(a,b){var c=b.toUpperCase().trim(),e;if(e=Cq.exec(c)){var f=+e[2]*36E5;e[3]&&(f+=+e[3]*6E4);e[1]==="-"&&(f=-f);e=f*1E3}else e=null;if(e!=null)return{Jb:e,Af:null,zg:null,uh:null,Rf:null,Tg:null};e=Dq[c];if(e!=null)return{Jb:e*1E3,Af:null,zg:null,uh:null,Rf:null,Tg:null};c=Eq[c];if(!c)throw Error("Unknown or unsupported time zone: "+b);b=c.Tn*6E7;c=c.cp;e=a/36E8;f=0;for(var k=c.length-2;;){a=Math.floor((k+f)/2);a-=a%2;if(ec[a])f=a+2;else break;if(k=c.length|| k<0)return{Jb:b,Af:null,zg:null,uh:null,Rf:null,Tg:null};a=k;break}}e=b+c[a+1]*6E7;f=b+c[a-1]*6E7;return{Jb:e,Af:c[a]*36E8,zg:c[a+2]*36E8,uh:e-f,Rf:f,Tg:b+c[a+3]*6E7}} function yq(a,b){return sq(a*1E3,b).Jb/1E3} function zq(a,b){var c=a*1E3;b=sq(c,b);var e=b.Rf-b.Jb;return a-(e<=0||c-e>b.Af?0:e)/1E3} function Fq(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function qq(a,b){if(typeof a!=="string")throw Error(b);} function wq(a){if(typeof a!=="number")throw Error("Invalid timestamp");} for(var Cq=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,Dq={"ETC/GMT+12":-432E5,"ETC/GMT+11":-396E5,"PACIFIC/MIDWAY":-396E5,"PACIFIC/NIUE":-396E5,"PACIFIC/PAGO_PAGO":-396E5,"PACIFIC/SAMOA":-396E5,"US/SAMOA":-396E5,"ETC/GMT+10":-36E6,HST:-36E6,"PACIFIC/HONOLULU":-36E6,"PACIFIC/JOHNSTON":-36E6,"PACIFIC/TAHITI":-36E6,"SYSTEMV/HST10":-36E6,"US/HAWAII":-36E6,"PACIFIC/MARQUESAS":-342E5,"ETC/GMT+9":-324E5,"PACIFIC/GAMBIER":-324E5,"SYSTEMV/YST9":-324E5,"ETC/GMT+8":-288E5,"PACIFIC/PITCAIRN":-288E5,"SYSTEMV/PST8":-288E5,"AMERICA/CRESTON":-252E5,"AMERICA/PHOENIX":-252E5,"ETC/GMT+7":-252E5,MST:-252E5,PNT:-252E5,"SYSTEMV/MST7":-252E5,"US/ARIZONA":-252E5,"AMERICA/REGINA":-216E5,"AMERICA/SWIFT_CURRENT":-216E5,"CANADA/EAST-SASKATCHEWAN":-216E5,"CANADA/SASKATCHEWAN":-216E5,"ETC/GMT+6":-216E5,"SYSTEMV/CST6":-216E5,"AMERICA/ATIKOKAN":-18E6,"AMERICA/CAYMAN":-18E6,"AMERICA/CORAL_HARBOUR":-18E6,"AMERICA/PANAMA":-18E6,EST:-18E6,"ETC/GMT+5":-18E6,"SYSTEMV/EST5":-18E6,"AMERICA/ANGUILLA":-144E5,"AMERICA/ANTIGUA":-144E5,"AMERICA/ARUBA":-144E5,"AMERICA/BLANC-SABLON":-144E5,"AMERICA/CARACAS":-144E5,"AMERICA/CURACAO":-144E5,"AMERICA/DOMINICA":-144E5,"AMERICA/GRENADA":-144E5,"AMERICA/GUADELOUPE":-144E5,"AMERICA/GUYANA":-144E5,"AMERICA/KRALENDIJK":-144E5,"AMERICA/LA_PAZ":-144E5,"AMERICA/LOWER_PRINCES":-144E5,"AMERICA/MARIGOT":-144E5,"AMERICA/MONTSERRAT":-144E5,"AMERICA/PORT_OF_SPAIN":-144E5,"AMERICA/PUERTO_RICO":-144E5,"AMERICA/ST_BARTHELEMY":-144E5,"AMERICA/ST_KITTS":-144E5,"AMERICA/ST_LUCIA":-144E5,"AMERICA/ST_THOMAS":-144E5,"AMERICA/ST_VINCENT":-144E5,"AMERICA/TORTOLA":-144E5,"AMERICA/VIRGIN":-144E5,"ETC/GMT+4":-144E5,PRT:-144E5,"SYSTEMV/AST4":-144E5,"AMERICA/CAYENNE":-108E5,"AMERICA/PARAMARIBO":-108E5,"ANTARCTICA/ROTHERA":-108E5,"ETC/GMT+3":-108E5,"ATLANTIC/SOUTH_GEORGIA":-72E5,"ETC/GMT+2":-72E5,"ATLANTIC/CAPE_VERDE":-36E5,"ETC/GMT+1":-36E5,"AFRICA/ABIDJAN":0,"AFRICA/ACCRA":0,"AFRICA/BAMAKO":0,"AFRICA/BANJUL":0,"AFRICA/BISSAU":0,"AFRICA/CONAKRY":0,"AFRICA/DAKAR":0,"AFRICA/FREETOWN":0,"AFRICA/LOME":0,"AFRICA/MONROVIA":0,"AFRICA/NOUAKCHOTT":0,"AFRICA/OUAGADOUGOU":0,"AFRICA/TIMBUKTU":0,"ATLANTIC/REYKJAVIK":0,"ATLANTIC/ST_HELENA":0,"ETC/GMT":0,"ETC/GMT+0":0,"ETC/GMT0":0,"ETC/GREENWICH":0,"ETC/UCT":0,"ETC/UNIVERSAL":0,"ETC/UTC":0,"ETC/ZULU":0,FACTORY:0,GMT:0,"GMT+0":0,GMT0:0,GREENWICH:0,ICELAND:0,UCT:0,UNIVERSAL:0,UTC:0,ZULU:0,"AFRICA/BANGUI":36E5,"AFRICA/BRAZZAVILLE":36E5,"AFRICA/DOUALA":36E5,"AFRICA/KINSHASA":36E5,"AFRICA/LAGOS":36E5,"AFRICA/LIBREVILLE":36E5,"AFRICA/LUANDA":36E5,"AFRICA/MALABO":36E5,"AFRICA/NIAMEY":36E5,"AFRICA/PORTO-NOVO":36E5,"AFRICA/SAO_TOME":36E5,"ETC/GMT-1":36E5,"AFRICA/BLANTYRE":72E5,"AFRICA/BUJUMBURA":72E5,"AFRICA/GABORONE":72E5,"AFRICA/HARARE":72E5,"AFRICA/JOHANNESBURG":72E5,"AFRICA/KIGALI":72E5,"AFRICA/LUBUMBASHI":72E5,"AFRICA/LUSAKA":72E5,"AFRICA/MAPUTO":72E5,"AFRICA/MASERU":72E5,"AFRICA/MBABANE":72E5,CAT:72E5,"ETC/GMT-2":72E5,"AFRICA/ADDIS_ABABA":108E5,"AFRICA/ASMARA":108E5,"AFRICA/ASMERA":108E5,"AFRICA/DAR_ES_SALAAM":108E5,"AFRICA/DJIBOUTI":108E5,"AFRICA/KAMPALA":108E5,"AFRICA/MOGADISHU":108E5,"AFRICA/NAIROBI":108E5,"ANTARCTICA/SYOWA":108E5,"ASIA/ADEN":108E5,"ASIA/BAHRAIN":108E5,"ASIA/KUWAIT":108E5,"ASIA/QATAR":108E5,"ASIA/RIYADH":108E5,EAT:108E5,"ETC/GMT-3":108E5,"INDIAN/ANTANANARIVO":108E5,"INDIAN/COMORO":108E5,"INDIAN/MAYOTTE":108E5,"ASIA/DUBAI":144E5,"ASIA/MUSCAT":144E5,"ETC/GMT-4":144E5,"INDIAN/MAHE":144E5,"INDIAN/REUNION":144E5,"ASIA/KABUL":162E5,"ANTARCTICA/MAWSON":18E6,"ETC/GMT-5":18E6,"INDIAN/KERGUELEN":18E6,"INDIAN/MALDIVES":18E6,"ASIA/CALCUTTA":198E5,"ASIA/COLOMBO":198E5,"ASIA/KOLKATA":198E5,IST:198E5,"ASIA/KATHMANDU":207E5,"ASIA/KATMANDU":207E5,"ANTARCTICA/VOSTOK":216E5,"ASIA/KASHGAR":216E5,"ASIA/THIMBU":216E5,"ASIA/THIMPHU":216E5,"ASIA/URUMQI":216E5,"ETC/GMT-6":216E5,"INDIAN/CHAGOS":216E5,"ASIA/RANGOON":234E5,"ASIA/YANGON":234E5,"INDIAN/COCOS":234E5,"ANTARCTICA/DAVIS":252E5,"ASIA/BANGKOK":252E5,"ASIA/HO_CHI_MINH":252E5,"ASIA/JAKARTA":252E5,"ASIA/PHNOM_PENH":252E5,"ASIA/PONTIANAK":252E5,"ASIA/SAIGON":252E5,"ASIA/VIENTIANE":252E5,"ETC/GMT-7":252E5,"INDIAN/CHRISTMAS":252E5,VST:252E5,"ANTARCTICA/CASEY":288E5,"ASIA/BRUNEI":288E5,"ASIA/KUALA_LUMPUR":288E5,"ASIA/KUCHING":288E5,"ASIA/MAKASSAR":288E5,"ASIA/SINGAPORE":288E5,"ASIA/UJUNG_PANDANG":288E5,"ETC/GMT-8":288E5,SINGAPORE:288E5,"ASIA/DILI":324E5,"ASIA/JAYAPURA":324E5,"ASIA/PYONGYANG":324E5,"ASIA/TOKYO":324E5,"ETC/GMT-9":324E5,JAPAN:324E5,JST:324E5,"PACIFIC/PALAU":324E5,ACT:342E5,"AUSTRALIA/DARWIN":342E5,"AUSTRALIA/NORTH":342E5,"ANTARCTICA/DUMONTDURVILLE":36E6,"ETC/GMT-10":36E6,"PACIFIC/CHUUK":36E6,"PACIFIC/GUAM":36E6,"PACIFIC/PORT_MORESBY":36E6,"PACIFIC/SAIPAN":36E6,"PACIFIC/TRUK":36E6,"PACIFIC/YAP":36E6,"ETC/GMT-11":396E5,"PACIFIC/BOUGAINVILLE":396E5,"PACIFIC/GUADALCANAL":396E5,"PACIFIC/KOSRAE":396E5,"PACIFIC/POHNPEI":396E5,"PACIFIC/PONAPE":396E5,SST:396E5,"ETC/GMT-12":432E5,KWAJALEIN:432E5,"PACIFIC/FUNAFUTI":432E5,"PACIFIC/KWAJALEIN":432E5,"PACIFIC/MAJURO":432E5,"PACIFIC/NAURU":432E5,"PACIFIC/TARAWA":432E5,"PACIFIC/WAKE":432E5,"PACIFIC/WALLIS":432E5,"ETC/GMT-13":468E5,"PACIFIC/ENDERBURY":468E5,"PACIFIC/FAKAOFO":468E5,"ETC/GMT-14":504E5,"PACIFIC/KIRITIMATI":504E5},Eq={},Gq=[2770,60,7137,0,11506,60,16041,0,20410,60,24777,0,29146,60,33513,0,35194,60,42249,0,45106,60,50985,0,55354,60,59889,0,64090,60,68625,0,72994,60,77361,0,81730,60,86097,0,90466,60,94833,0,99202,60,103569,0,107938,60,112473,0,116674,60,121209,0,125578,60,129945,0,134314,60,138681,0,143050,60,147417,0,151282,60,156153,0,160018,60,165057,0,168754,60,173793,0,177490,60,182529,0,186394,60,191265,0,195130,60,200001,0,203866,60,208905,0,212602,60,217641,0,221338,60,226377,0,230242,60,235113,0,238978,60,243849,0,247714,60,252585,0,256450,60,261489,0,265186,60,270225,0,273922,60,278961,0,282826,60,287697,0,291562,60,296433,0,300298,60,305337,0,309034,60,314073,0,317770,60,322809,0,326002,60,331713,0,334738,60,340449,0,343474,60,349185,0,352378,60,358089,0,361114,60,366825,0,369850,60,375561,0,378586,60,384297,0,387322,60,393033,0,396058,60,401769,0,404962,60,410673,0,413698,60,419409,0,422434,60,428145,0,431170,60,436881,0,439906,60,445617,0,448810,60,454521,0,457546,60,463257,0,466282,60,471993,0,475018,60,480729,0,483754,60,489465,0,492490,60,498201,0,501394,60,507105,0,510130,60,515841,0,518866,60,524577,0,527602,60,533313,0,536338,60,542049,0,545242,60,550953,0,553978,60,559689,0,562714,60,568425,0,571450,60,577161,0,580186,60,585897,0,588922,60,594633,0],Hq=Xc(["PST8PDT","America/Los_Angeles","US/Pacific"]),Iq=Hq.next();!Iq.done;Iq=Hq.next()){var Jq=Iq.value.toUpperCase();Eq[Jq]={id:Jq,Tn:-480,cp:Gq}} var Kq={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},Lq={},Mq;for(Mq in Kq)Lq[Kq[Mq]]=Mq;var Nq=Lq;function vq(a){if(!a)throw Error("Missing date component.");var b=Nq[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function xq(a,b){var c=new Date(a/1E3);switch(b){case "YEAR":c=new Date(c.getFullYear(),0,1);break;case "QUARTER":c=new Date(c.getFullYear(),Math.floor(c.getMonth()/3)*3,1);break;case "MONTH":c=new Date(c.getFullYear(),c.getMonth(),1);break;case "WEEK":a=-1*c.getDay();c=new Date(c.getFullYear(),c.getMonth(),c.getDate());c.setDate(c.getDate()+a);break;case "DAY":c=new Date(c.getFullYear(),c.getMonth(),c.getDate());break;case "HOUR":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours());break;case "MINUTE":c=new Date(c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes());break;case "SECOND":return Math.floor(a/1E6)*1E6;case "MILLISECOND":return Math.floor(a/1E3)*1E3;case "MICROSECOND":return Math.floor(a);default:throw Error("Unknown or unsupported date component for truncation:"+b+".");}return c.getTime()*1E3} ;function Oq(a,b){var c=Pq(a,b===void 0?"__default__":b);return function(e){return e==null?"null":c(e/1E3)}} function Pq(a,b){b=b===void 0?"__default__":b;var c=!1;a.indexOf("%Z")>=0&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=Qq();return function(f){if(f==null)return"null";typeof f==="string"&&(f=+f);Fd(f)&&(f=f.getTime());var k=b==="__default__"?Xp:b,n=Rq(a);if(k==="local"){n=Sq(a);var r=f;k=(new Date(f)).getTimezoneOffset()*60*1E3*1E3*-1}else k==="UTC"||k==="+00:00"?(r=f,k=0):(f*=1E3,r=sq(f,k),r=(f+r.Jb)/1E3,k=Bq(f,k));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";n=n(r);if(!c)return n;k= (k>=0?"+":"")+e(k);return n.replace("_tzhereplz_",k)}} function Qq(){var a=th("02.0f");return function(b){if(b==null)return"null";typeof b==="string"&&(b=+b);var c=b>=0?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b-=e*36E8;b=Math.floor(b/6E7);return""+c+a(e)+":"+a(b)}} ;var Tq=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Uq="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Tq),Vq=["MIN","MAX"].concat(Tq),Wq={},Xq=(Wq[["string"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"aplos-string-cell",qc:Tq,Hb:1,kc:"string",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";if(typeof a!=="string")return String(a);a=a.replace(/\\/g,"\\\\");a=a.replace(/"/g,'\\"');a=a.replace(/\n/g,"\\n");a=a.replace(/\r/g,"\\r");return'"'+a+'"'}},Wq[["decimal"]]={Wb:void 0,Cc:!1,rc:"decimal",vc:oh,tc:".2f",zc:"aplos-numeric-cell",qc:Uq,Hb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Wq[["integer"]]={Wb:void 0,Cc:!1,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:Uq,Hb:2,kc:"number",xc:function(a){return a},oc:function(a){return"SUM("+a+")"},nc:String},Wq[["time_us"]]={Wb:.001,Cc:!1,rc:"integer",vc:Oq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Fd(a)&&(a=a.getTime()*1E3);return String(a)}},Wq[["time_ms"]]={Wb:1,Cc:!1,rc:"integer",vc:Pq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){Fd(a)&&(a=a.getTime());return String(a)}},Wq[["timestamp"]]={Wb:.001,Cc:!1,rc:"integer",vc:Oq,tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"TIMESTAMP_MICROS("+a+")"}},Wq[["date"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return Oq(a,"UTC")},tc:"%Y-%m-%d",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["datetime"]]={Wb:.001,Cc:!0,rc:"integer",vc:function(a){return Oq(a,"UTC")},tc:"%Y-%m-%d %H:%M:%S",zc:"aplos-date-cell",qc:Vq,Hb:3,kc:"number",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT("+a+")"},nc:function(a){if(a==null)return"null";Fd(a)&&(a=a.getTime()*1E3);return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Wq[["boolean"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return String},tc:"",zc:"",qc:Tq,Hb:4,kc:"boolean",xc:function(a){return a},oc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},nc:String},Wq[["hll_sketch"]]={Wb:void 0,Cc:!1,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:["HLL_COUNT.MERGE"],Hb:2,kc:"number",xc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},oc:function(a){return"HLL_COUNT.MERGE("+a+")"},nc:String},Wq[["message"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Hb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Wq[["array"]]={Wb:void 0,Cc:!1,rc:"integer",vc:function(){return function(a){return JSON.stringify(a,null,2)}},tc:"",zc:"aplos-string-cell",qc:[],Hb:1,kc:"object",xc:function(a){return a},oc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},nc:String},Wq[["kll_int64"]]={Ij:!0,Wb:void 0,rc:"integer",vc:oh,tc:".0f",zc:"aplos-numeric-cell",qc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Hb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},nc:String},Wq[["kll_double"]]={Ij:!0,Wb:void 0,rc:"decimal",vc:oh,tc:".2f",zc:"aplos-numeric-cell",qc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Hb:2,kc:"number",xc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},oc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},nc:String},Wq);function Yq(a){if(typeof a==="string")return"string";if(typeof a==="number")return"decimal";if(typeof a==="boolean")return"boolean";if(Fd(a))return"timestamp";if(a==null)return"string";throw Error("Unknown filter value type: "+a);} ;var Zq={EQUALS:"=",GREATER_THAN:">",LESS_THAN:"<",GREATER_THAN_EQUALS:">=",LESS_THAN_EQUALS:"<=",NOT_EQUALS:"!=",IN:"IN",NOT_IN:"NOT_IN",BETWEEN:"BETWEEN",NOT_BETWEEN:"NOT_BETWEEN",IS_NULL:"IS_NULL",IS_NOT_NULL:"IS_NOT_NULL",IS_INFINITY:"IS_INFINITY",IS_NOT_INFINITY:"IS_NOT_INFINITY",IS_NAN:"IS_NAN",IS_NOT_NAN:"IS_NOT_NAN",CONTAINS:"CONTAINS",DOES_NOT_CONTAIN:"DOES_NOT_CONTAIN",REGEX:"REGEX",NOT_REGEX:"NOT_REGEX"};Od("aplos.data.FilterOperator",Zq);function $q(a,b,c){return ar(b).nb(a,c)} function br(a,b){return(a=ar(a).ve)?a(b):b} var cr={},ir=(cr["="]={nb:function(a,b){return b[0]==="null"?dr(a):a+" = "+b[0]},ve:null},cr[">"]={nb:function(a,b){return a+" > "+b[0]},ve:function(a){return[er(a)]}},cr["<"]={nb:function(a,b){return a+" < "+b[0]},ve:function(a){return[fr(a)]}},cr[">="]={nb:function(a,b){return a+" >= "+b[0]},ve:function(a){return[er(a)]}},cr["<="]={nb:function(a,b){return a+" <= "+b[0]},ve:function(a){return[fr(a)]}},cr["!="]={nb:function(a,b){return b[0]==="null"?gr(a):a+" != "+b[0]}},cr.IN={nb:function(a,b){if(b==null||b.length===0)return"true = false";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return dr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+dr(a)+")":b}},cr.NOT_IN={nb:function(a,b){if(b==null||b.length===0)return"true = true";b=b.slice();var c=af(b,function(e){return e==="null"});if(c&&b.length===0)return gr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+gr(a)+")":b}},cr.BETWEEN={nb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ve:function(a){return Kh(a)}},cr.NOT_BETWEEN={nb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ve:function(a){return Kh(a)}},cr.IS_NULL={nb:dr},cr.IS_NOT_NULL={nb:gr},cr.IS_INFINITY={nb:function(a){return"IS_INF("+a+")"}},cr.IS_NOT_INFINITY={nb:function(a){return"NOT(IS_INF("+a+"))"}},cr.IS_NAN={nb:function(a){return"IS_NAN("+a+")"}},cr.IS_NOT_NAN={nb:function(a){return"NOT(IS_NAN("+a+"))"}},cr.CONTAINS={nb:function(a,b){return hr(a,b[0])}},cr.DOES_NOT_CONTAIN={nb:function(a,b){return"NOT("+hr(a,b[0])+")"}},cr.REGEX={nb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},cr.NOT_REGEX={nb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},cr);function hr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(jr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function dr(a){return a+" IS NULL"} function gr(a){return a+" IS NOT NULL"} function ar(a){if(ir[a]==null)throw Error("Unknown filter operator: "+a);return ir[a]} var jr=/([.?*+^$[\]\\(){}|-])/g;function kr(a,b,c){if(typeof a!=="string")return a={zf:a.column!==void 0?a.column:a.zf,operator:a.operator!==void 0?a.operator:a.operator,value:a.value!==void 0?a.value:a.value},Array.isArray(a.value)&&(a.operator==="="?a.operator="IN":a.operator==="!="&&(a.operator="NOT_IN")),a;if(b==null)throw Error("No operator specified.");return{zf:a,operator:b,value:c!==void 0?c:""}} Od("aplos.data.SimpleFilter",function(){});Od("aplos.data.SimpleFilter.Operator",Zq);Od("aplos.data.SimpleFilter.buildFromFilterOrValues",kr);function lr(a){for(var b=0;be&&(f=1));return f!=null?a==="ASC"?f:-1*f:0} var rr=nr.bind(null,"ASC",!1);function qr(a){return a==null?0:a===-Infinity?2:a===Infinity?4:typeof a==="number"&&isNaN(a)?1:3} var or=!1,pr=/^-?[0-9]*(\.)?[0-9]+$/;Od("aplos.data.util.toFilterExpression",function(a,b,c,e){b=b===void 0?"=":b;c=c===void 0?!0:c;if(c===!0&&b==="=")return a;var f=[];c!==void 0&&(c=Array.isArray(c)?c:[c],c=br(b,c),c.forEach(function(k){var n=e==null?Yq(k):e;f.push(Xq[n].nc(k))}));return $q(a,b,f)});Od("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return c[b]!=null})});Od("aplos.data.util.sort",nr);function sr(a){this.rf=this.Sa=.35;this.ab=this.Rb=null;this.ma=new Set;this.v=[0,1];this.oa=new qk;this.N=0;this.La=!1;this.Va=a!=null?a:2;this.O=!0;this.na=this.Pc=null;this.Zb=!1;this.ka=null;this.Ka=!1;this.Ia=1;this.Oa=0;this.ta=null;this.Ya=1;this.qf=this.Dc=this.we=this.nf=this.ha=null;this.tf=new Ai(0,0);this.Ca=this.ya=null;this.wc=void 0;this.lg=new tr(this);ur(this)} w=sr.prototype;w.Bi=function(a){this.Va=a;this.O=!0;return this};w.tk=function(a){this.Sa=a;this.Va==2&&this.Bi(this.Va);return this};w.km=function(){return this.Sa};w.qk=function(a,b){this.Rb=a;this.ab=b;this.O=!0;return this};w.eh=function(a){this.qf=a;return this};w.Oe=function(){return this.qf};w.ub=function(){return this.oa};w.fg=function(a){this.oa=a;return this};w.Tk=function(a){this.Pc=a;return this};w.Gi=function(a){this.na=a;this.Ka||(this.ka=null);this.na instanceof vr&&(a=this.na.Ig(),typeof a==="function"&&this.Md(a));this.O=!0;return this};w.wn=function(){return this.na};w.nk=function(a){this.La=a;this.O=!0;return this};w.Md=function(a){this.wc=a;this.Va===2&&(this.O=!0)};function wr(a){a.ma.clear();a.Ka||(a.ka=null);a.O=!0} function xr(a,b,c,e){for(var f=0;fe[0]!=e[1]>e[0]!=f[1]>f[0]?er(c):fr(c)} function Ar(a,b){return a.Pc||b||function(c){return c!=null?c.toString():""}} w.bandwidth=function(){ur(this);return this.Va==2?this.Ja.bandwidth():this.ta?this.Ya===2?this.Ja(this.ta)-this.Ja(0):this.ta||0:0};w.Ok=function(a){this.ka=a;this.Ka=a!=null;this.zi(1,0);return this};w.zi=function(a,b){this.Ia=a;this.Oa=b;this.O=!0};function Br(a,b,c,e,f,k,n){a.Zb!==k&&(a.O=!0);a.ha=b;a.nf=c;a.we=e;a.N=f;a.Zb=k;a.Dc=n} w.Hh=function(){var a=Fh(this.N);this.Oe()==null&&this.oa.ek(this.ha);return{position:a,Pf:10}};w.kg=function(a){var b=Fh(this.N);b=Vg(a,this.Oe(),b);if(b!=null)return b;b=this.range();this.range(this.N===1||this.N===3?[a.height,0]:[0,a.width]);var c=Cr(this,this.Dc);a=this.oa.mh(this.ha,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};w.dh=function(a){var b=a.right-a.left,c=a.bottom-a.top;if(this.N===1||this.N===3){var e=this.range();this.range(e[0]<=e[1]?[0,c]:[c,0])}else this.range([0,b]);this.tf=new Ai(b,c);this.ya=a};w.Ne=function(){return this.ya};w.render=function(a,b){if(this.ha){var c=this.ya;this.ha.attr("transform","translate("+((this.N==1?c.right:c.left)-a.Lb())+", "+((this.N==2?c.bottom:c.top)-a.Mb())+")");c=Cr(this,this.Dc);var e=zr(this,0);if(isNaN(e))switch(this.N){case 0:e=a.Ab();break;case 1:e=0;break;case 3:e=a.Za();break;case 2:e=0}var f={top:a.Mb(),right:a.Lb()+a.Za(),bottom:a.Mb()+a.Ab(),left:a.Lb()};this.oa.render(this.ha,c,this.N,new Ai(a.Za(),a.Ab()),this.tf,this.bandwidth(),b,this.Ca,this.nf,e,this.we,this.ya,f)}};function Cr(a,b){ur(a);var c=Dr(a),e=a.Pc;c.We()||(e=Ar(a,b));b=c.Nb(a.Va==2?null:a.Ja.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ma),e,a,a.lg).map(function(k){k&&k.value!==void 0||(k={value:k});k.location===void 0&&(k.location=Math.round(Uo(this,k.value)));return k},a).filter(function(k){return k.location>=Math.min(this.v[0],this.v[1])&&k.location<=Math.max(this.v[0],this.v[1])},a);var f=b.map(function(k){return k.value});b.forEach(function(k){k.label==null&&(k.label=e(k.value,f));k.label=k.label.toString()},a);return b} function Er(a){if(!a.ka)if(a.Va==2){var b=Array.from(a.ma);b.length>0&&(a.ka=[b[0],b[b.length-1]])}else{var c=Math.abs(a.v[0]-a.v[1]);b=Array.from(a.ma);b.length||(b=[0,1]);var e=Kh(b);b=Dr(a).Ed(e,c,b).map(function(f){return f.value!==void 0?f.value:f});a.ka=a.Va===1?[b.length?fr(b):Infinity,b.length?er(b):-Infinity]:[Math.min(e[0],b.length?fr(b):Infinity),Math.max(e[1],b.length?er(b):-Infinity)]}return a.ka||[]} function ur(a){if(a.O){switch(a.Va){case 0:a.Ja=Zh();break;case 2:a.Ja=ei(a.Sa,a.rf,!a.Zb);break;case 1:a.Ja=bi();break;case 3:a.Ja=hi();break;default:throw Error("Unknown scale type: "+a.Va);}a.Rb!=null&&a.ab!=null&&a.Ja.outerPaddingStartPx&&a.Ja.outerPaddingEndPx&&(a.Ja.outerPaddingStartPx(a.Rb||0),a.Ja.outerPaddingEndPx(a.ab||0));if(a.Va==2)typeof a.wc==="function"&&a.Ja.domainOverride&&a.Ja.domainOverride(a.wc),a.La&&a.Ja.autoOrderDomain&&a.Ja.autoOrderDomain(a.La),a.Ja.domain(Array.from(a.ma)),a.Ja.range([a.v[0]*a.Ia+a.Oa,a.v[1]*a.Ia+a.Oa]);else{var b=Er(a),c=a.v.map(function(f){return(f-this.Oa)/this.Ia},a),e=a.Va==1?ki:ji;a.Ja.range(a.v).domain([e(c[0],a.v,b),e(c[1],a.v,b)])}a.O=!1}} function Dr(a){if(a.na){if(a.na instanceof vr){var b=a.na,c=a.Ja.copy();b.Ja=c}return a.na}b=new vr(a.Va);a=a.Ja.copy();b.Ja=a;return b} Od("aplos.chart.AplosAxis",sr);sr.prototype.setMaxViewportExtent=sr.prototype.Ok;sr.prototype.setNicingFunction=sr.prototype.Md;sr.prototype.setAutoOrderDomain=sr.prototype.nk;sr.prototype.getTickProvider=sr.prototype.wn;sr.prototype.setTickProvider=sr.prototype.Gi;sr.prototype.setTickFormatter=sr.prototype.Tk;sr.prototype.setRenderer=sr.prototype.fg;sr.prototype.getRenderer=sr.prototype.ub;sr.prototype.getLayoutSize=sr.prototype.Oe;sr.prototype.setLayoutSize=sr.prototype.eh;sr.prototype.setAxisMargin=sr.prototype.qk;sr.prototype.getBarGroupPaddingPct=sr.prototype.km;sr.prototype.setBarGroupPaddingPct=sr.prototype.tk;sr.prototype.setScaleType=sr.prototype.Bi;function vr(a){this.Ja=null;this.Va=a;this.wc=void 0;this.Yj=!1} w=vr.prototype;w.Un=function(a){this.Yj=a;return this};function Fr(a,b){switch(a.Va){case 0:return b==null?[0,1]:b==0?[0,1]:[0,2*b].sort(function(c,e){return c-e});case 1:return b<=0?[1,10]:[b/Math.sqrt(10),b*Math.sqrt(10)];case 3:return b==null?(a=Date.now(),[a-864E5,a]):[+b-432E5,+b+432E5];default:throw Error("Unsupported scale type: "+a.Va);}} w.Md=function(a){this.wc=a};w.Ig=function(){return this.wc};w.We=function(){return!1};w.Nb=function(a,b,c,e,f,k){this.Ja&&this.Ja.ticks?(typeof this.wc==="function"&&this.Ja.domainOverride&&this.Ja.domainOverride(this.wc),a[0]==a[1]&&(a=Fr(this,a[0])),a=this.Ja.domain(a||c).range([0,b]).ticks().map(function(t){return typeof t==="number"?+t.toFixed(7):t})):a=c;if(this.Yj&&k&&f){var n=2,r=To(a,f,e);for(e=r;k.v.oa&&k.v.ha&&k.v.oa.Pi(e,k.v.ha,k.v.N)&&e.length>2;)e=r.filter(function(t,y){return y==r.length-1||y%n==0}),n++;return e}return a};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b):a};Od("aplos.chart.AplosAxisTickProvider",vr);vr.prototype.omitCollidingLabels=vr.prototype.Un;function tr(a){this.v=a} ;function Gr(){qk.call(this);this.Nd(!1);this.zd(!0);this.Od(!0);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} Wc(Gr,qk);Od("aplos.chart.GridlinesAxisRenderer",Gr);function Hr(){qk.call(this);this.La=new Ai(0,0);this.Sa=void 0} Wc(Hr,qk);w=Hr.prototype;w.render=function(a,b,c,e,f,k,n,r,t,y,E,ma,na){f=this.La;qk.prototype.render.call(this,a,b,c,e,f,k,n,r,t,y,E,ma,na)};w.mh=function(a,b,c,e,f,k){b=c==1||c==3;this.La=new Ai(e.width,e.height);f={width:e.width,height:e.height};e={width:e.width,height:e.height};var n=0;k!=null&&k!=""&&(n=il(a,k));a=this.oa;b?(f.width=0,e.width=0,n>0&&(a=c==3?a+Math.floor(n/2):a,e.width+=n+a)):(f.height=n,e.height=n,n>0&&(e.height+=n+a));return{Ba:f,rb:e,Bc:!1}};w.Lh=function(a,b,c,e,f){var k="middle",n=0,r=0,t="";this.Sa=yj(b.node(),"MWpgy09",void 0,!0);b=f.label.split("\n").length*this.Sa;f=a.na;var y=a.v,E=a.Ia;switch(c){case 0:n=E?y:0;r=-1*(b+f+y);t=".71em";k=E?"start":"middle";break;case 2:n=E?y:0;r=b+y+f;t="0em";k=E?"start":"middle";break;case 1:n=y+f;r=E?-1*b/2:0;t=".32em";k="left";break;case 3:n=-1*(y+f),r=E?-1*b/2:0,t=".32em",k="right"}switch(a.ka){case 3:if(c===1||c===3)r=-(e/2-y),t=".71em";break;case 1:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n= -(e/2-y),k="left";break;case 4:if(c===1||c===3)r=e/2-y;break;case 2:if(c===2||c===0)r=r/Math.abs(r)*.4+"em",n=e/2-y,k="right"}return{anchor:k,x:n,y:r,dy:t,mr:n,nr:null}};w.Bj=function(a,b,c,e){var f=0,k=0,n=0;switch(a){case 0:n=-1*(b.top-e.top);k=n+c.height;break;case 2:n=c.height;break;case 1:f=c.width;break;case 3:f=-1*c.width}return{x2:f,y1:k,y2:n}};w.Cj=function(a,b,c,e){var f=0,k=0,n=0,r=0,t=a.na;switch(b){case 0:r=-1*t;break;case 2:r=t;break;case 1:n=t;break;case 3:n=-1*t}switch(a.ka){case 3:if(b===1||b===3)n=n/Math.abs(n)*c.width,k=-e/2,r=-e/2;break;case 1:if(b===2||b===0)f=-e/2,n=-e/2;break;case 4:if(b===1||b===3)n=n/Math.abs(n)*c.width,k=e/2,r=e/2;break;case 2:if(b===2||b===0)f=e/2,n=e/2}return{x1:f,y1:k,x2:n,y2:r}};Od("aplos.chart.InsideAxisRenderer",Hr);function Ir(){Hr.call(this);this.Nd(!1);this.zd(!0);this.Od(!0);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} Wc(Ir,Hr);Od("aplos.chart.InsideGridlinesAxisRenderer",Ir);function Jr(){Hr.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(0)} Wc(Jr,Hr);Od("aplos.chart.InsideTicksAxisRenderer",Jr);function Kr(){qk.call(this);this.Nd(!1);this.zd(!1);this.Od(!1);this.te(0);this.Ad(0);this.ha=20;this.O=45;this.re(6)} Wc(Kr,qk);Od("aplos.chart.LabelsAxisRenderer",Kr);function Lr(){} Lr.prototype.render=function(a,b,c,e,f,k,n,r,t,y,E){a.selectAll("*").remove();if(t!=null){a=".baseline";switch(c){case 0:a+=".x-axis-baseline";break;case 1:a+=".y-axis-baseline";break;case 3:a+=".y2-axis-baseline";break;case 2:a+=".x2-axis-baseline"}t.selectAll(a).remove()}if(E!=null){t=".axis-line";switch(c){case 0:t+=".x-axis-line";break;case 1:t+=".y-axis-line";break;case 3:t+=".y2-axis-line";break;case 2:t+=".x2-axis-line"}E.selectAll(t).remove()}};Lr.prototype.ek=function(){};Lr.prototype.Pi=function(){return!1};Lr.prototype.mh=function(a,b,c,e){a={width:e.width,height:e.height};e={width:e.width,height:e.height};c==1||c==3?(a.width=0,e.width=0):(a.height=0,e.height=0);return{Ba:a,rb:e,Bc:!0}};function Mr(){qk.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(6);this.ab=!0} Wc(Mr,qk);Mr.prototype.hk=function(a,b){(b===0||b===2)&&a.length>1&&(a[0].oh=1,a[a.length-1].oh=2)};Mr.prototype.Lh=function(a,b,c,e,f){b="middle";var k=0,n=0,r="",t=a.na,y=a.v;f=jl(this,f);switch(c){case 0:n=y+t;r=".71em";b=f===1?"left":f===2?"right":"middle";break;case 2:n=-1*(y+t);r="0em";b=f===1?"left":f===2?"right":"middle";break;case 1:k=-1*(y+t);r=".32em";b="right";break;case 3:k=y+t,r=".32em",b="left"}switch(a.ka){case 3:if(c===1||c===3)n=-(e/2-y),r=".71em";break;case 1:if(c===2||c===0)n=n/Math.abs(n)*.4+"em",k=-(e/2-y),b="left";break;case 4:if(c===1||c===3)n=e/2-y;break;case 2:if(c===2|| c===0)n=n/Math.abs(n)*.4+"em",k=e/2-y,b="right"}return{anchor:b,x:k,y:n,dy:r}};Od("aplos.chart.OuterJustifiedTicksAxisRenderer",Mr);function Nr(){qk.call(this);this.Nd(!0);this.zd(!1);this.Od(!1);this.te(0);this.Ad(6);this.ha=20;this.O=45;this.re(6)} Wc(Nr,qk);Od("aplos.chart.TicksAxisRenderer",Nr);function Or(){this.Qn=100;this.jh=Xp;for(var a=Pr,b=0,c=Xc(Object.values(a)),e=c.next();!e.done;e=c.next())e=e.value,b=Math.max(b,jh(e.tick,"\n"),jh(e.transition||"","\n"),jh(e.Gc||"","\n"));c=Xc(Object.values(a));for(e=c.next();!e.done;e=c.next())e=e.value,e.tick=Qr(e.tick,b)||"",e.transition=Qr(e.transition,b),e.Gc=Qr(e.Gc,b);this.zh=a;this.Ii=Rr;this.rh=null;this.kp=0} w=Or.prototype;w.wk=function(a){(a=this.rh=a)&&Xq[a].Wb!==void 0&&Xq[a].Cc===!0&&(this.jh="UTC");return this};w.We=function(){return!0};w.Nb=function(a,b,c,e){if(b<=0)return[];var f=this.rh||Sr(c),k=1E3*Xq[f].Wb;f=a[0]>a[1];c=Kh(c);a=Kh(a);c[1]-c[0]===0&&(a=c=[c[0]-36E8,c[0]+36E8]);var n=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=Tr(this,(a-c)/(b/this.Qn));b=r.interval;r=r.unit;var t=e;e&&(t=function(ta){return e(ta/1E3)});var y=t||Ur(this,this.zh[r].tick),E=t||Ur(this,this.zh[r].Gc);t=t||Ur(this,this.zh[r].transition);var ma=Vr(r);n=this.Cg(b,r,c,n);for(var na=[];n<=a;){if(n>=c){var sa=y(n),ua="minor";ma&&this.lf(n,ma)===n&&(ua="major",t&&(sa=t(n)));na.push({value:n,Mh:ua,label:sa})}n=this.De(n,r,b)}E&&na.length&&(na[0].label=E(na[0].value));k!==1&&na.forEach(function(ta){ta.value=ta.value/k});return f===!1?na:na.reverse()};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b,function(e){return e.value}):a};function Tr(a,b){for(var c=Xc(a.Ii),e=c.next();!e.done;e=c.next())if(e=e.value,Wr[e.unit]*e.interval>=b)return e;return a.Ii[a.Ii.length-1]} function Vr(a){switch(a){case "MONTH":case "WEEK":return"YEAR";case "DAY":return"MONTH";case "HOUR":return"DAY";case "MINUTE":return"HOUR";case "SECOND":return"MINUTE";case "MILLISECOND":return"SECOND"}return null} w.lf=function(a,b){return uq(a,b,this.jh)};w.De=function(a,b,c){return Aq(a,b,c,this.jh)};function Ur(a,b){return b?Oq(b,a.jh):null} w.Cg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return b==="WEEK"?(b=this.lf(e,"WEEK"),b=this.De(b,"DAY",this.kp),a*=7):b=this.lf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.De(b,"DAY",c);default:return b=Vr(b)||"YEAR",this.lf(c,b)}};function Sr(a){a=Kh(a);return a[0]>3E11&&a[0]<18E11?"time_ms":"timestamp"} function Qr(a,b){if(!a)return a;var c=jh(a||"","\n");return c1E13?"microseconds":"date":typeof f==="number"?f>1E13?"microseconds":"milliseconds":null;if(!f)throw Error("Unsupported date type.");var k=f==="microseconds"?.001:1,n=+a[0]*k,r=+a[1]*k,t=r=c[1]&&(a=ds(this.Rh),r-n=ds(b.Eb)&&(b.Eb=null);a=ds(b.step)/a;ads(b.Eb)&&(b.Eb=b.step));this.Og=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new nq;c.setTime(n);n=this.Cg(c,b.step);c=b.Eb?this.Cg(c,b.Eb):null;y=[];for(var E=!1;n.getTime()<=r;){var ma={};a:switch(f){case "milliseconds":var na= n.getTime();break a;case "microseconds":na=n.getTime()*1E3;break a;default:na=new Date(n.getTime())}ma.value=na;c&&b.Eb&&c.getTime()<=n.getTime()?(ma.type="transition",ma.label=a(new Date(n.getTime())),fs(c,b.Eb),E=!0):ma.label=e(new Date(n.getTime()));y.push(ma);fs(n,b.step)}c&&y.length&&!E&&(y[0].type="transition",y[0].label=a(new Date(y[0].value*k)));t&&y.reverse();return y};w.Ed=function(a,b,c){b=this.Nb(a,b,c);return b.length?Kh(b,function(e){return e.value}):a};w.Cg=function(a,b){if(b.N)var c=new nq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=new nq(a.getFullYear(),Math.ceil(a.getMonth()/b.months)*b.months);else if(b.days){c=a.getDate();for(var e=a.getFullYear(),f=a.getMonth()-1;f>=0;f--)c+=gq(e,f);c=new nq(a.getFullYear(),0,Math.ceil(c/b.days)*b.days);b.days%7===0&&c.setDate(c.getDate()-c.getDay()+this.Ji)}else if(b.O)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.ha)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.ha)*b.ha);else if(b.v>=1)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),Math.ceil(a.getSeconds()/b.v)*b.v);else if(b.v)c=new nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),Math.ceil(.001*a.getMilliseconds()/b.v)*b.v*1E3);else throw Error("Zero step is not valid.");c.getTime()=n&&(!e||r==Math.round(r))&&c*r+this.Te(b,r)>=b[1]);t++);return(k?-1:1)*r};function is(a){return a<0?a+2E-10:a>0?a-2E-10:a} w.Te=function(a,b){var c=Math.ceil(a[0]/b)*b;c>a[0]&&(c-=b);return c};gs.prototype.getDefaultViewport=gs.prototype.Ed;gs.prototype.getTicks=gs.prototype.Nb;gs.prototype.getNicingFunction=gs.prototype.Ig;gs.prototype.getDynamicTicks=gs.prototype.Bm;gs.prototype.setDynamicTicks=gs.prototype.ah;gs.prototype.getIntIntervalsOnly=gs.prototype.Mm;gs.prototype.setIntIntervalsOnly=gs.prototype.Fk;gs.prototype.getNiceCoefficients=gs.prototype.an;gs.prototype.setNiceCoefficients=gs.prototype.wi;gs.prototype.getNumTicks=gs.prototype.bn;gs.prototype.setNumTicks=gs.prototype.xi;var hs=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];Od("aplos.chart.BaseTickProvider",gs);function js(){gs.call(this);this.ah(!0);this.wi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Ng=!1} Wc(js,gs);js.prototype.Ch=function(a,b,c,e){if(b===0&&(c[0]>0&&c[1]<0||c[0]<0&&c[1]>0))return[0];if(c[1]-c[0]===0)return[c[0]];a=this.Re(a,c,b,e);e=this.Te(c,a);var f=[];if(this.Ng){f.push(c[0]);if(b===0)return f;if(b===1)return f.push(c[1]),f}b=this.Ie?b+2:b;for(var k=0;k<=b;k++){var n=k*a+e;if(n>c[1])break;if(this.Ng){if(n-c[0]=n){var na=this.Te(b,ma);if(c*ma+na>b[1])if(e)if(na=Math.floor((b[1]-na)/ma)+1,na>y)y=na;else break;else break;r=ma}t=ma}}r===null&&(r=t!==null?t:1);return(k?-1:1)*r};js.prototype.Te=function(a,b){return Math.ceil(a[0]/b)*b};Od("aplos.chart.DataTickProvider",js);function ks(){} ks.prototype.We=function(){return!0};ks.prototype.Nb=function(a,b,c,e,f){a=ls(c||a);b=[];f?(b=To(a,f,e),b.forEach(function(k){var n=!e;Math.log(Math.abs(+k.value))*Math.LOG10E%1===0?(k.label=n?ms(k.value):k.label,k.Mh="major"):(k.label="",k.Mh="minor")})):b=a;return b};ks.prototype.Ed=function(a,b,c){return Kh(ls(c||a))};function ls(a){a=a.filter(function(k){return k!==0});var b=Kh(a),c=b[0],e=b[1];c<=0&&e>=0&&(a=a.filter(function(k){return k>0}),c=fr(a));a=e>0?1:-1;b=Oh(e>0?c:-e);c=Math.log(e>0?e:-c)*Math.LOG10E;c=c%1?Math.floor(c+1):c;b===c&&(b>0?b--:c++);for(e=[];b<=c;b++)for(var f=1;f<10&&(e.push(a*(f+"e"+b)),b!==c);f++);a===1||e.reverse();return e} function ms(a){var b=a<0?"-":"";a=Math.log(Math.abs(a))*Math.LOG10E;if(a===0)return b+"1";if(a===1)return b+"10";a=(""+a).split("").map(function(c){return c==="-"?"-":"\u2070\u00b9\u00b2\u00b3\u2074\u2075\u2076\u2077\u2078\u2079"[c]}).join("");return b+"10"+a} Od("aplos.chart.LogTickProvider",ks);function ns(){this.ih=[]} ns.prototype.We=function(){return!1};ns.prototype.Nb=function(){return this.ih.map(function(a){return a&&a.value!==void 0?Vh(a):a})};ns.prototype.Ed=function(a){return this.ih.length?Kh(this.ih,function(b){return b.value!=null?b.value:b}):a};ns.prototype.Uk=function(a){this.ih=a.slice();return this};ns.prototype.setTicks=ns.prototype.Uk;ns.prototype.getDefaultViewport=ns.prototype.Ed;ns.prototype.getTicks=ns.prototype.Nb;Od("aplos.chart.ManualTickProvider",ns);function os(){gs.call(this)} Wc(os,gs);os.prototype.Ch=function(a,b,c,e){Math.abs(c[0]-c[1])>4E-10&&(c=[is(c[0]),is(c[1])]);if(c[0]>=0)var f=0;else if(c[1]<=0)f=b;else{if(b===1)return Kh(ps(this,a,2,1,c,e));f=Math.round(Math.abs(c[0])/(c[1]-c[0])*b);f===0?f=1:f===b&&(f=b-1)}c[1]-c[0]===0&&(c[1]>0?c=[0,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,0]));return ps(this,a,b,f,c,e)};function ps(a,b,c,e,f,k){c=Math.max(1,c);var n=0;f[0]<0&&(n=a.Re(b,[f[0],0],e,k));var r=0;f[1]>0&&(r=a.Re(b,[0,f[1]],c-e,k));f[1]-f[0]===0&&(r=b[0]);a=Math.max(Math.abs(n),r);b=[];for(f=0;f<=c;f++)b[f]=f*a-e*a;return b} Od("aplos.chart.QuantumTickProvider",os);function qs(){gs.call(this);this.Bf=new os} Wc(qs,gs);qs.prototype.Nb=function(a,b,c,e,f,k){if(this.ke>2&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0)){if(this.Ie)this.Bf.ah(!0);else{var n=this.ke;n!=null&&this.Bf.xi(n)}this.Bf.wi(this.Ug);n=this.Ig();n!=void 0&&this.Bf.Md(n);return this.Bf.Nb(a,b,c,e,f,k)}return gs.prototype.Nb.call(this,a,b,c,e,f,k)};qs.prototype.Ch=function(a,b,c,e){b=Math.max(1,b);c[1]-c[0]===0&&(c[1]>0?c=[c[0]*.75,c[1]*1.25]:c[1]<0&&(c=[c[0]*1.25,c[1]*.75]));if(b==1&&(c[0]==0||c[1]==0||c[0]<0&&c[1]>0))return b=[0,Math.min(Math.abs(c[0]),Math.abs(c[1]))],b=b[1]-b[0]===0?a[0]:this.Re(a,b,1,e),a=this.Te(c,b),e=Math.ceil(c[1]/b)*b,e=0,n=Pe(r,"truncate")>=0);b.Ya=n;b.O=k?45:0;e.axisTitlePaddingPx!==void 0&&b.rk(+e.axisTitlePaddingPx);e.tickRotateDegrees!=null&&(b.ya=+e.tickRotateDegrees);e.showTickMarks!==void 0&&e.showTickMarks==1?b.Ad(c):b.Ad(0);e.minPxBetweenLabels!==void 0&&(b.N=+e.minPxBetweenLabels);e.minPxBetweenTicks!==void 0&&(b.ha=+e.minPxBetweenTicks);a.type==="log"&&(b.ha=0);e.showBaseline!==void 0&&b.zd(e.showBaseline);e.showAxisLine!==void 0&&b.Nd(e.showAxisLine);e.showGridlines!==void 0&&b.Od(e.showGridlines)}return f} function As(a,b,c){var e=a.type.toLowerCase(),f=vs(a).scaleType,k=null,n=vs(a),r=n.nicing,t=a.ticks||{},y=a.extents||{},E=null;y.type=="fixed"&&Array.isArray(y.values)&&y.values.length>1&&(E=y.values);y=t.type||"default";switch(n.tickProviderType(y,c,E)){default:throw Error("Invalid axis ticks type: "+y);case "ordinal":if(e!="ordinal")throw Error('"ordinal" ticks type can only be used with an "ordinal" axis type');k=new vr(f);break;case "data":k=new js;break;case "endpoints":k=new js;k.Ng=!0;break;case "tight":e==="log"?k=new ks:e==="time"?k=new Zr:e==="ordinal"?k=new vr(f):k=new qs;break;case "fixed":if(Array.isArray(t.values))f=t.values.map(function(ma){var na={value:e=="ordinal"?ma.value:+ma.value};ma.hasOwnProperty("label")&&(na.label=ma.label);return na}),k=new ns,k.Uk(f);else throw Error('No tick values found for "fixed" tick provider');break;case "quantum":e==="time"?k=new Or:k=new os}k&&k.Md&&(r=t.nicing||r,f=k,typeof r==="string"&&ss[r]?f.Md(ss[r]):typeof r==="function"&&f.Md(r));a.columnType&&k&&k.wk&&k.wk(a.columnType);k instanceof gs&&(t.integerOnly&&k.Fk(!!t.integerOnly),b?k.xi(b):c&&k.ah(!0));return k} function xs(a,b){var c=b.ticks||null;c=c&&c.format?c.format:null;b=vs(b).tickFormatter(c);b!=null&&a.Tk(b)} function ys(a,b){b.extents&&b.extents.type&&b.extents.type==="fixed"&&Array.isArray(b.extents.values)&&a.Ok(b.extents.values)} function zs(a,b){b.layout&&(b=b.layout,b.type&&b.type==="fixed"&&b.size!==void 0&&a.eh(+b.size))} function vs(a){var b=a.type.toLowerCase();if(Bs[b])return Bs[b];throw Error("Invalid axis scale: "+a.type);} Od("aplos.chart.AxisSpecParser",ts);ts.prototype.createMeasureAxisForSpec=ts.prototype.lj;ts.prototype.createDomainAxisForSpec=ts.prototype.kj;var Bs={linear:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a,b,c){return a=="default"?c!=null&&c.length>1&&(c[0]>=0||c[1]<=0)?b?"data":"tight":b?"data":"quantum":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:0,showDomainAxisLine:!0,showBaseline:!0},log:{nicing:"tight",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:1,showDomainAxisLine:!0,showBaseline:!1},ordinal:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:oh(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a){return a=="default"?"labels":a},scaleType:2,showDomainAxisLine:!1,showBaseline:!1},time:{nicing:"none",tickFormatter:function(a){var b=null;a&&(b=typeof a==="function"?a:Pq(a));return b},tickProviderType:function(a){return a=="default"?"tight":a},renderingType:function(a,b){return a=="default"?b?"ticks":"gridlines":a},scaleType:3,showDomainAxisLine:!0,showBaseline:!1}};function Cs(){} Wc(Cs,ts);Od("aplos.chart.OldAxisSpecParser",Cs);var Ds=new ts;rs.current=Ds;function Es(){} Es.prototype.be=function(){};Es.prototype.Rd=function(){};Od("aplos.chart.ShapeRenderer",Es);function Fs(a,b,c){this.N=c!==void 0?c:!1;this.O=b!==void 0?b:!0;this.ha=a;this.ka="0.6ex"} w=Fs.prototype;w.be=function(a,b,c,e,f,k,n){var r=(this.ha+" "+b).trim();a=a.append("g").attr("class",r);this.Ec(a);a.append("text");this.Rd(a,b,c,e,f,k,n)};w.Rd=function(a,b,c,e,f,k,n){var r=n.strokeWidth!=null?n.strokeWidth:2,t=this.O?"white":k,y=this.Mc(a);y.size()<1&&(y=vj(a.node()),b=(this.ha+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Ec(y),y.append("text"),y=this.Mc(a));a=a.select("text");this.Sc(y,a,c,e,f,this.O,r,k,t,this.N?n.label:null)};w.Ec=function(){};w.Mc=function(){};w.Sc=function(){};function Gs(a,b,c,e,f,k,n){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};of||pf?(c.y=e,c.dy=a.ka):(c.dy=e,c["dominant-baseline"]="middle");ti(b,c);b.style("fill",k);b.style("font-size",f*1.25+"px");b.text(n)} Od("aplos.chart.shaperenderer.BaseLabelShape",Fs);function Hs(){Fs.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Wc(Hs,Fs);Hs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-box-triangle-right-shape");a.append("rect").attr("class","primary");a.append("path").attr("class","secondary")};Hs.prototype.Mc=function(a){return a.select("g.aplos-box-triangle-right-shape")};Hs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");var ma=a.select(".secondary");if(ma.size()<1)throw Error("No secondary path found in update selection");var na=f*2,sa=na/16;ti(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});ti(E,{rx:2,ry:2,width:f*2,height:f*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});ti(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ sa+")"});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.BoxTriangleRight",Hs);function Is(a,b){Fs.call(this,"aplos-circle-shape-group",a,b)} Wc(Is,Fs);Is.prototype.Ec=function(a){a.append("circle").attr("class","aplos-circle-shape")};Is.prototype.Mc=function(a){return a.select("circle.aplos-circle-shape")};Is.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){ti(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Circle",Is);function Js(){} Js.prototype.be=function(a,b,c,e,f,k,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Rd(a,b,c,e,f,k,n,r,t)};Js.prototype.Rd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.Cylinder",Js);function Ks(a,b){Fs.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Wc(Ks,Fs);Ks.prototype.Ec=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Ks.prototype.Mc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Ks.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=.866*f;ti(a,{points:c+","+(e-E)+" "+(c+f+","+(e+E)+" ")+(c-f+","+(e+E)),fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e+f-E,f,t,y)};Od("aplos.chart.shaperenderer.EquilateralTriangle",Ks);function Ls(){Fs.call(this,"aplos-error-shape-group",!0,!1)} Wc(Ls,Fs);Ls.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Ls.prototype.Mc=function(a){return a.select("g.aplos-error-shape")};Ls.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=2,na=2;if(E>36){var sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z";var ua=40;na=ma=4}else E>24?(sa="M18 3C9.72 3 3 9.72 3 18s6.72 15 15 15c8.28 0 15-6.72 15-15S26.28 3 18 3zm1 22h-2v-2h2v2zm0-5h-2v-9h2v9z",ua=30,na=ma=3):E>20?(sa="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z",ua=20,na=ma=2.5):E>18?(sa="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z",ua=40):(sa="M9 1.03c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zM10 13H8v-2h2v2zm0-3H8V5h2v5z",ua=16,na=ma=1);ua=E/ua;ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});ti(k,{d:sa,transform:"scale("+ua+")"});ti(n,{cx:f+ma,cy:f+na,r:f*.95,fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.ErrorShape",Ls);function Ms(a,b,c){Fs.call(this,"aplos-oval-shape-group",b,c);this.v=a||1} Wc(Ms,Fs);Ms.prototype.Ec=function(a){a.append("ellipse").attr("class","aplos-oval-shape")};Ms.prototype.Mc=function(a){return a.select("ellipse.aplos-oval-shape")};Ms.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){ti(a,{cx:c,cy:e,ry:this.v>=1?f:f*this.v,rx:this.v>1?f/this.v:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Oval",Ms);function Ns(){Fs.call(this,"aplos-pause-shape-group",!0,!1)} Wc(Ns,Fs);Ns.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-pause-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Ns.prototype.Mc=function(a){return a.select("g.aplos-pause-shape")};Ns.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");var E=f*2,ma=1.5,na=1.5;E>36?na=ma=4:E>24?na=ma=3:E>20?na=ma=2.5:E>18&&(na=ma=2);var sa=E/40;ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f-ma)+", "+(e-f-na)+")"});ti(k,{d:"M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm-2 28h-4V16h4v16zm8 0h-4V16h4v16z",transform:"scale("+sa+")"});ti(n,{cx:f+ma,cy:f+na,r:f*.9,fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.PauseShape",Ns);function Os(a,b,c){Fs.call(this,"aplos-rect-shape-group",b,c);this.v=a||1} Wc(Os,Fs);Os.prototype.Ec=function(a){a.append("rect").attr("class","aplos-rect-shape")};Os.prototype.Mc=function(a){return a.select("rect.aplos-rect-shape")};Os.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=this.v>1?f/this.v:f,ma=this.v>=1?f:f*this.v;ti(a,{x:c-E,y:e-ma,rx:2,ry:2,width:E*2,height:ma*2,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Rect",Os);function Ps(){} Ps.prototype.be=function(a,b,c,e,f,k,n,r,t){b=("aplos-rectangle-range-shape "+b).trim();a=a.append("line").attr("class",b);this.Rd(a,b,c,e,f,k,n,r,t)};Ps.prototype.Rd=function(a,b,c,e,f,k,n,r,t){ti(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"butt",stroke:k,"stroke-width":f*2})};Od("aplos.chart.shaperenderer.RectangleRange",Ps);function Qs(){Fs.call(this,"aplos-refresh-shape-group",!0,!1)} Wc(Qs,Fs);Qs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-refresh-shape");a.append("path").attr("class","primary");a.append("path").attr("class","secondary")};Qs.prototype.Mc=function(a){return a.select("g.aplos-refresh-shape")};Qs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(k.size()<1)throw Error("No primary path found in update selection");n=a.select(".secondary");if(n.size()<1)throw Error("No secondary path found in update selection");f*=1.4;var E=f*2;if(E>36){var ma="M35.3 12.7C32.41 9.8 28.42 8 24 8 15.16 8 8.02 15.16 8.02 24S15.16 40 24 40c7.45 0 13.69-5.1 15.46-12H35.3c-1.65 4.66-6.07 8-11.3 8-6.63 0-12-5.37-12-12s5.37-12 12-12c3.31 0 6.28 1.38 8.45 3.55L26 22h14V8l-4.7 4.7z";var na=48}else E> 24?(ma="M26.47 9.53C24.3 7.35 21.32 6 18 6 11.37 6 6 11.37 6 18s5.37 12 12 12c5.94 0 10.85-4.33 11.81-10h-3.04c-.91 4.01-4.49 7-8.77 7-4.97 0-9-4.03-9-9s4.03-9 9-9c2.49 0 4.71 1.03 6.34 2.66L20 16h10V6l-3.53 3.53z",na=36):E>20?(ma="M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z",na=24):E>18?(ma="M14.95 5.05C13.68 3.79 11.93 3 10 3c-3.87 0-7 3.13-7 7s3.13 7 7 7c3.17 0 5.85-2.11 6.71-5h-2.13c-.77 1.77-2.53 3-4.58 3-2.76 0-5-2.24-5-5s2.24-5 5-5c1.38 0 2.62.57 3.52 1.48L11 9h6V3l-2.05 2.05z",na=20):(ma="M9 13.5c-2.49 0-4.5-2.01-4.5-4.5S6.51 4.5 9 4.5c1.24 0 2.36.52 3.17 1.33L10 8h5V3l-1.76 1.76C12.15 3.68 10.66 3 9 3 5.69 3 3.01 5.69 3.01 9S5.69 15 9 15c2.97 0 5.43-2.16 5.9-5h-1.52c-.46 2-2.24 3.5-4.38 3.5z",na=18);ti(a,{fill:r,width:E+"px",height:E+"px",viewBox:"0 0 "+E+" "+E,transform:"translate("+(c-f)+", "+(e-f)+") scale("+E/na+")"});ti(k,{d:ma});ti(n,{d:"M0 0h"+E+"v"+E+"H0z",fill:"none"});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.Refresh",Qs);function Rs(){Fs.call(this,"aplos-warning-shape-group",!0,!1)} Wc(Rs,Fs);Rs.prototype.Ec=function(a){a=a.append("g").attr("class","aplos-warning-shape");a.append("polygon").attr("class","secondary");a.append("path").attr("class","primary")};Rs.prototype.Mc=function(a){return a.select("g.aplos-warning-shape")};Rs.prototype.Sc=function(a,b,c,e,f,k,n,r,t,y){var E=a.select(".primary");if(E.size()<1)throw Error("No primary path found in update selection");k=a.select(".secondary");if(k.size()<1)throw Error("No secondary path found in update selection");var ma=f*2,na=2;n=1;if(ma>36){var sa="M2 42h44L24 4 2 42zm24-6h-4v-4h4v4zm0-8h-4v-8h4v8z";var ua=44}else ma>24?(sa="M1 32h34L18 3 1 32zm18-5h-2v-2h2v2zm0-5h-2v-7h2v7z",ua=32):ma>20?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):ma>18?(sa="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z",ua=20):(sa="M.5 16h17L9 1 .5 16zm9.5-2H8v-2h2v2zm0-3H8V7h2v4z",ua=16,na=1,n=0);ua=ma/ua;ti(a,{fill:r,width:ma+"px",height:ma+"px",viewBox:"0 0 "+ma+" "+ma,transform:"translate("+(c-f-na)+", "+(e-f-n)+")"});ti(E,{d:sa,transform:"scale("+ua+")"});a=.866*f*.95;r=f*.95;na=f+na;n=f+n;ti(k,{points:na+","+(n-a)+" "+(na+r+","+(n+a)+" ")+(na-r+","+(n+a)),fill:"white","stroke-width":"0"});Gs(this,b,c,e,f,t,y)};Od("aplos.chart.shaperenderer.WarningShape",Rs);function Ss(a,b){return new Is(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCircleRenderer",Ss);function Ts(){return new Js} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createCylinderRenderer",Ts);function Us(a,b){return new Ks(a!==void 0?a:!0,b!==void 0?b:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createEquilateralTriangleRenderer",Us);function Vs(){return new Ls} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createErrorRenderer",Vs);function Ws(a,b,c){return new Ms(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createOvalRenderer",Ws);function Xs(){return new Ns} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createPauseRenderer",Xs);function Ys(a,b,c){return new Os(a||1,b!==void 0?b:!0,c!==void 0?c:!1)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectRenderer",Ys);Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRectangleRangeRenderer",function(){return new Ps});function Zs(){return new Qs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createRefreshRenderer",Zs);function $s(a,b){return Ys(1,a,b)} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createSquareRenderer",$s);function at(){return new Rs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createWarningRenderer",at);function bt(){return new Hs} Od("module$contents$aplos$chart$shaperenderer$ShapeRendererFactory_ShapeRendererFactory.createBoxTriangleRightRenderer",bt);Od("aplos.chart.shaperenderer.ShapeRendererFactory",function(){});function ct(){this.v=Ts()} w=ct.prototype;w.Ob=function(a){for(var b=0;b=this.left&&a.x<=this.left+this.width&&a.y>=this.top&&a.y<=this.top+this.height:this.left<=a.left&&this.left+this.width>=a.left+a.width&&this.top<=a.top&&this.top+this.height>=a.top+a.height};w.distance=function(a){var b=a.x325E11;e.forEach(function(ua){var ta=ua.domain;ua.time=ta<325E11?ta*1E3:ta;ua.displayName=a.name;ua.description=ua.datum.description;ua.chartX=Uo(k,n?ua.time:ua.time/1E3);ua.chartY=0;ta=b.Dd()||Bt;ua.label=ta(ua.time)},this);e.sort(function(ua,ta){return ua.hb-ta.hb});var r=[];if(e.length>0){var t;for(t=0;t=0){var y={Kb:e[t],lb:[]};r.push(y);break}for(t+=1;tf.Za())break;E.hb>y.Kb.hb+100?(y.ld=E.hb-y.Kb.hb,y={Kb:E,lb:[]},r.push(y)):y.lb.push(E)}if(!y)return;if(y.Kb.hb+60>f.Za()){y.Yl=!0;y.lb.length>0&&(e=y.lb.pop(),y.lb.unshift(y.Kb),y.Kb=e);var ma=r[r.length-2],na=y;if(ma&&ma.Kb.hb+ma.ld>na.Kb.hb-100){var sa=(na.Kb.hb-ma.Kb.hb)/2+ma.Kb.hb;y=na.lb;e=ma.lb;na.lb=[];ma.lb=[];e.forEach(function(ua){ua.chartX> sa?na.lb.push(ua):ma.lb.push(ua)});y.forEach(function(ua){ua.chartX>sa?na.lb.push(ua):ma.lb.push(ua)});ma.ld=sa-ma.Kb.hb;na.ld=na.Kb.hb-sa;ma.ld<60&&(na.ld+=ma.ld,na.lb=[ma.Kb].concat(ma.lb).concat(na.lb),r.splice(r.length-2,1))}}else y.ld=f.Za()-y.Kb.hb}c.Fj=r;Mn(b,c)}};w.render=function(a,b,c){var e=b.wb;b=Mn(b);if(b.Fj&&b.Yq)if(a.data.length===0&&c.node()==null)c.selectAll("*").remove();else return c.attr("transform","translate(0, -60)"),a=c.select(".background-rect"),a.size()||(a=c.append("rect").classed("background-rect",!0).style("fill","#fafafa")),a.attr("width",e.Za()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.Fj),c.exit().remove(),a=c.enter().append("g").classed("event-annotation-content",!0),a.append("g").classed("subdominant-lines",!0),a.append("line").classed("marker-line",!0),a.append("line").classed("range-line",!0),a.append("g").classed("text-holder",!0),c=a.merge(c),c.each(function(f){var k=vj(this),n=f.Kb,r=f.Yl,t=f.ld-4-10;ti(k,{transform:"translate("+n.hb+", 0)"});var y=k.select(".text-holder");y.append("text").classed("annotation-title",!0);y.append("text").classed("date",!0);y.append("text").classed("subdominant-additional-text",!0);y.attr("transform","translate("+(r?"-":"")+4+", 10)");var E=y.select("text.annotation-title").text(n.description);zj(E.node(),t);E.attr("dy","1em");Aj(E.node(),n.description);E=y.select("text.date").text(n.label);zj(E.node(),t);E.attr("dy","2.15em");Aj(E.node(),n.label);var ma=f.lb.length>0;E=k.select("text.subdominant-additional-text");if(ma){ma="+ "+f.lb.length+" more";E=E.text(ma);zj(E.node(),t);var na="";f.lb.forEach(function(sa){na+=sa.label+" "+sa.description+"\n"});Aj(E.node(),na);ti(E,{dy:"3.30em",display:null})}else E.attr("display","none");y.selectAll("text").attr("text-anchor",Ij(r?"right":"left"));f.lb.length>0&&(t=k.select("line.range-line"),y=er(f.lb,function(sa){return Math.abs(n.hb-sa.hb)}),ti(t,{x1:(r?"-":"")+y,transform:"translate(0, 60)","pointer-events":"none"}));r=k.select("line.marker-line");ti(r,{y2:60+e.Ab(),"pointer-events":"none"});f=k.selectAll(".subdominant-lines").selectAll("line").data(f.lb);f.exit().remove();f=f.enter().append("line").merge(f);k=60+e.Ab();ti(f,{y1:60,y2:k,x1:function(sa){return sa.hb-n.hb},x2:function(sa){return sa.hb-n.hb},"pointer-events":"none"})}),c;else c.selectAll("*").remove()};w.me=function(a,b,c,e,f){a=f.width;f=f.height;e=e.append("g").attr("class","event-annotation-content");e.append("rect").attr("class","event-annotation-content").attr("width",a).attr("height",f).attr("x",0).attr("y",0).attr("fill","#fafafa");e.append("line").attr("class","event-annotation-content").attr("y2",f).attr("stroke","#d2d2d2").attr("shape-rendering","crispEdges")};w.ij=function(){};w.ne=function(){return!1};w.rd=function(){return-10};w.Hd=function(a){return a instanceof At};w.qd=function(){};w.ee=function(){};w.Cb=function(){};function Bt(a){return Sq("%b %e")(a/1E3)} Od("aplos.chart.renderer.Annotation",At);var Ct={kl:0,lq:1};Od("aplos.chart.renderer.ArcLabelPosition",Ct);Ct.INSIDE=0;Ct.OUTSIDE=1;function Dt(a,b,c,e){this.Db=a;this.N=Et(b);this.Wa=c;this.O=!!e;this.v=0} function Ft(a,b,c,e,f,k){var n=Gt().outerRadius(a.outerRadius()).innerRadius(a.innerRadius());c!=0&&n.innerRadius(n.outerRadius()());var r=[];b.forEach(function(t){r.push({start:n.centroid(t),datum:t})});c!=0&&n.innerRadius(n.outerRadius()()+f);b.forEach(function(t,y){t=n.centroid(t);r[y].offset=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]});f&&k||(n.innerRadius(n.innerRadius()()+e),b.forEach(function(t,y){t=n.centroid(t);r[y].Zc=[Math.round(t[0]-r[y].start[0]),Math.round(t[1]-r[y].start[1])]}));return{position:c,padding:e,Lf:f,ie:k,data:r}} Dt.prototype.Sg=function(a){if(a==null)return this.v;this.v=a;return this};Dt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Db.data[c]]},this));Ht(this,a.enter())};function Ht(a,b){b=b.append("g").filter(Md(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).style("opacity","0").attr("transform",function(c){return"translate("+c.start+")"});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1");a.O&&!of?It(a,b):Jt(a,b);Kt(a,b);Lt(b);b.filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none")} function It(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.position,k=a.Db.padding;b=b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=k+e;t=r===0?0:r>0?t:-t}else r=n.Zc[0],n=n.Zc[1],t=0;return"translate("+[r+t,n]+")"}).append("foreignObject").append("xhtml:body").classed("arc-label-container",!0).style("margin","0").append("div").style("position","fixed").append("div").classed("arc-label",!0).style("opacity",0).text(Tj(a.N));b.each(function(n){var r=this.getBoundingClientRect(),t=Math.round(r.width);r=Math.round(r.height);var y=vj(this.parentNode.parentNode.parentNode);if(c&&e){var E=n.offset[0];var ma=n.offset[1]}else E=n.Zc[0],ma=n.Zc[1];n=E===0?-(t/2):E>0?0:-t;E=f!=0?E===0?ma>0?0:-r:-(r/2):-(r/2);y.attr("width",t+"px").attr("height",r+"px").attr("transform","translate("+[n,E]+")")});a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity",1):b.style("opacity",1)} function Lt(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=k.select(".arc-label").node().getBoundingClientRect();n=new st(n.left,n.top,n.width,n.height);var r=k.select(".arc-leader-line-tail");r.empty()||(r=r.node().getBoundingClientRect(),ut(n,new st(r.left,r.top,r.width,r.height)));r=f.datum.startAngle;(f.datum.endAngle+r)/2Math.PI&&tt(f.rect,b)?f.fe.style("display","none"):(f.fe.style("display",""),e=f.rect)})} function Jt(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.padding,k=a.N;b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=f+e;t=r===0?0:r>0?t:-t}else r=n.Zc[0],n=n.Zc[1],t=0;return"translate("+[r+t,n]+")"}).append("text").classed("arc-label",!0).attr("dy",".35em").style("text-anchor",function(n,r){var t=n.offset[0];return Ij(t!==0&&e?t>0?"start":"end":"middle",k).call(this,n,r)}).each(function(n,r){gg(this,Tj(k)(n,r))})} function Kt(a,b){var c=a.Db.ie;b.append("line").classed("arc-leader-line",!0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){e=e.offset[0];return e+(e===0?0:e>0?c:-c)}).attr("y2",function(e){return e.offset[1]})} function Et(a){return function(b,c){return a(b.datum,c)}} ;function Mt(a,b,c){this.Db=a;this.N=Nt(b);this.Wa=c;this.v=0} Mt.prototype.Sg=function(a){if(a==null)return this.v;this.v=a;return this};Mt.prototype.render=function(a){a=a.selectAll(".arc-label-group").data(Md(function(b,c){return[this.Db.data[c]]},this));Ot(this,a.enter())};function Ot(a,b){b=b.append("g").filter(Md(function(c){return c.datum.endAngle-c.datum.startAngle>Math.PI/180*this.v},a)).classed("arc-label-group",!0).attr("transform",function(c){return"translate("+c.start+")"});Pt(a,b);Qt(a,b);b.empty()||(Rt(a,b),St(b),Sj(b).filter(function(){return!vj(this).select(".arc-label").text()}).style("display","none"))} function Pt(a,b){var c=a.Db.Lf,e=a.Db.ie,f=a.Db.position,k=a.Db.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var y=k;t!==0&&r!==0&&(y+=e);y=t===0?0:t>0?y:-y;var E=f===1&&t===0?r<0?-k:k:0}else t=r.Zc[0],r=r.Zc[1],E=y=0;return"translate("+[t+y,r+E]+")"});var n=b=Oj(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",Tt(a,f)).append("div").classed("arc-label",!0).style("opacity",0).each(Nd(Ut,a.N));b.each(Nd(function(r,t){r=vj(this);var y=r.select(".arc-label"),E=y.node();tj(E,null,null,!0);if(c&&e){var ma=t.offset[0];t=t.offset[1]}else ma=t.Zc[0],t=t.Zc[1];y.style("text-align",ma===0?"center":ma>0?"left":"right");y=E.getBoundingClientRect();Vt(f,r,new st(ma,t,y.width,y.height))},a));b=b.select(".arc-label");a.Wa?b.transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.style("opacity","1")} function Ut(a,b,c){a=a(b,c,!0);var e=this;Array.isArray(a)?a.forEach(function(f){e.appendChild(f)}):vj(e).text(a)} function Tt(a,b){return Uh(Ct,function(c){return c===b},a).toLowerCase()} function Vt(a,b,c){var e=c.left===0?-Math.round(c.width/2):c.left>0?0:-c.width;a=a!=0?c.left===0?c.top>0?0:-c.height:-Math.round(c.height/2):-Math.round(c.height/2);b.style("width",Math.ceil(c.width)+"px").style("height",Math.ceil(c.height)+"px");b.select("div").style("left",e+"px").style("top",a+"px").style("position","absolute");b.select(".arc-label").style("max-width",Math.ceil(c.width)+"px");b.attr("data-translate-y",a)} function St(a){var b=null,c=[];a.each(function(f){var k=vj(this),n=Sj(k.select("g"));if(n.style("display")!=="none"){var r=n.select(".arc-label").node().getBoundingClientRect();r=new st(r.left,r.top,r.width,r.height);var t=k.select(".arc-leader-line-tail");t.empty()||(t=t.node().getBoundingClientRect(),ut(r,new st(t.left,t.top,t.width,t.height)));t=f.datum.startAngle;(f.datum.endAngle+t)/2Math.PI&&tt(f.rect,b)?(f.fe.style("display","none"),f.Ph.style("display","none")):(f.fe.style("display",""),f.Ph.style("display",""),e=f.rect)})} function Rt(a,b){var c=Pj(b).node().getBoundingClientRect();b.each(Nd(function(e,f){var k=vj(this),n=Sj(k.select("g")),r=n.select(".arc-label").node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,y=Math.ceil(f.left-r.left)+5,E=(t>0?t:0)+(y>0?y:0);E&&(t=vj(n.node()),r=Math.ceil(r.width-E),r>0&&(t.style("width",r+"px"),y>0&&(y=+t.attr("data-translate-y"),t.select(".arc-label").style("left",-r+"px").style("top",y+"px"))),t.select(".arc-label").style("max-width",Math.ceil(r)+"px"),r=n.select(".arc-label").node().getBoundingClientRect(),Vt(e.Db.position,t,new st(r.left-f.left-f.width/2,r.top-f.top-f.height/2,r.width,r.height)));if(r.topf.top+f.height||r.leftf.left+f.width)k.style("display","none"),n.style("display","none")},a,c))} function Qt(a,b){var c=a.Db.ie;b.append("line").classed("arc-leader-line",!0).style("opacity",0).attr("x1",0).attr("y1",0).attr("x2",function(e){return e.offset[0]}).attr("y2",function(e){return e.offset[1]});c>0&&b.append("line").classed("arc-leader-line-tail",!0).style("opacity",0).attr("x1",function(e){return e.offset[0]}).attr("y1",function(e){return e.offset[1]}).attr("x2",function(e){var f=e.offset[0];e=e.offset[1];return f+(f===0||e===0?0:f>0?c:-c)}).attr("y2",function(e){return e.offset[1]});a.Wa?b.selectAll("line").transition().delay(a.Wa).duration(a.Wa).style("opacity","1"):b.selectAll("line").style("opacity","1")} function Nt(a){return function(b,c,e){return a(b.datum,c,e)}} ;function Wt(a,b){this.N=Gt().outerRadius(a).innerRadius(b);this.v=Xt();this.ya=!0;this.oa=70;this.ma=10;this.ta=20;this.ka=this.ha=0;this.Ia=!1;this.Ka=!0;this.na=this.O=!1;this.Ca=ok} w=Wt.prototype;w.innerRadius=function(a){return a==null?this.Fd():this.Ek(a)};w.Ek=function(a){this.N.innerRadius(a);return this};w.Fd=function(){return this.N.innerRadius()()};w.outerRadius=function(a){return a==null?this.Se():this.Qk(a)};w.Qk=function(a){this.N.outerRadius(a);return this};w.Se=function(){return this.N.outerRadius()()};w.startAngle=function(a){a==null?a=this.v.startAngle()():(this.v.startAngle(a),a=this);return a};w.endAngle=function(a){a==null?a=this.v.endAngle()():(this.v.endAngle(a),a=this);return a};w.Xq=function(a){a==null?a=this.na:(this.na=a,a=this);return a};w.Oo=function(a){return a==null?this.ya:this.Ei(a)};w.Ei=function(a){this.ya=a;return this};w.qn=function(){return this.ya};w.Ld=function(a){this.Ca=a;return this};w.Lf=function(a){return a==null?this.oa:this.oi(a)};w.oi=function(a){this.oa=a;return this};w.Rm=function(){return this.oa};w.ie=function(a){return a==null?this.ta:this.ri(a)};w.ri=function(a){this.ta=a;return this};w.Sm=function(){return this.ta};w.Ln=function(a){return a==null?this.ma:this.ni(a)};w.ni=function(a){this.ma=a;return this};w.Pm=function(){return this.ma};w.Mn=function(a){return a==null?this.od():this.Pb(a)};w.Pb=function(a){this.ha=a;return this};w.od=function(){return this.ha};w.Sg=function(a){return a==null?this.ka:this.vi(a)};w.vi=function(a){this.ka=a;return this};w.Zm=function(){return this.ka};w.Vl=function(a){return a==null?this.O:this.hi(a)};w.hi=function(a){this.O=a;return this};w.Dm=function(){return this.O};w.Uc=function(){};w.Ob=function(){};w.render=function(a,b,c,e){if(this.Ia){var f=c.select(".pie-background");f.empty()&&(f=c.insert("path",":first-child").classed("pie-background",!0));f.attr("d",this.N({startAngle:0,endAngle:2*Math.PI}))}else c.select(".pie-background").remove();f=Yt(c);var k=Zt(this,a,b);a=c.select(".arcs");a.empty()&&(a=c.append("g").classed("arcs",!0));var n=c.select(".arc-borders");n.empty()&&(n=c.append("g").classed("arc-borders",!0));c=$t(b.key());n=n.selectAll(".arc-border").data(k,c);var r=vj(null),t=null,y=n.exit();k.length>0&&k[k.length-1].endAngle>0?(r=a.selectAll(".arc").data(k,c),t=r.exit(),r=au(this,r,k,f,b),n=bu(this,n,k,f,b)):(a=cu(this,k,f,a,b),t=a.exit,r=a.update,f.length||(e=0));du(this,r,n,k,b,e);eu(this,t,y,k,f,b,e);n.attr("visibility",Md(function(){return this.na&&k.length<=1?"hidden":null},this));return r};w.me=function(a,b,c,e,f){e=e.append("circle").attr("cx",f.width/2).attr("cy",f.height/2).attr("r",f.width/2);ek(e,function(){return c.color()(a,b)})};w.qd=function(a,b,c,e){var f=new xi(c,e),k=this.Se(),n=this.Fd(),r=yi(f,new xi(0,0)),t=null;if(r>=n&&r<=k)for(f=(f.x>=0?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=Zt(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=fu(this,a,b,r.data||{},n,c,e);break}return t};function fu(a,b,c,e,f,k,n){var r=c.measure(),t=c.domain(),y=c.color(),E=Zt(a,b,c)[f];var ma=E.startAngle-Math.PI/2;var na=E.endAngle-Math.PI/2;E=a.Se();var sa=a.Fd();ma=(ma+na)/2;E=sa+(E-sa)/2;ma=new xi(Math.round(Math.cos(ma)*E),Math.round(Math.sin(ma)*E));sa=c.wb;E=ma.x+sa.Za()/2;sa=ma.y+sa.Ab()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:ma.x,datumY:ma.y,chartX:E,chartY:sa,color:y(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Cb(b,k,n)} w.Cb=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Yh(e,a);b!=void 0&&c!=void 0&&(e.relativeDistance=yi(new xi(e.datumX,e.datumY),new xi(b,c)));return e};w.ee=function(a,b,c,e,f,k,n){f=f===void 0?[]:f;for(var r=0;r0;)b.pop();b.push({startAngle:a.v.startAngle()(),endAngle:a.v.endAngle()(),data:{}});var k=$t(f.key());e=e.selectAll(".arc").data(b,k);k=e.enter().append("g").attr("class","arc");var n=$t(f.key());k.append("path").classed("pieSegment",!0).classed("empty-pie",!0).each(Nd(function(r,t,y){r=gu(r,y,b,c,n);this.N={startAngle:r,endAngle:r}},a));return{exit:e.exit(),update:k.merge(e)}} function au(a,b,c,e,f){var k=b.enter().append("g").attr("class","arc"),n=k.append("path").classed("pieSegment",!0).attr("data-id",$t(f.wh()));ek(n,$t(f.color()));var r=$t(f.key());n.each(Nd(function(t,y,E){t=gu(t,E,c,e,r);this.N={startAngle:t,endAngle:t}},a));return k.merge(b)} function bu(a,b,c,e,f){var k=b.enter().append("line").classed("arc-border",!0).attr("x1",0).attr("x2",0),n=$t(f.key());k.each(Nd(function(r,t,y){this.O=gu(r,y,c,e,n)},a)).attr("transform",Nd(function(){return Fv(this.O)},a));return k.merge(b)} function du(a,b,c,e,f,k){var n=ln(f,"datumHoverState")?f.md():function(){return 0},r=ln(f,"datumClickState")?f.Xd():function(){return 0},t=b,y=b;c.attr("y1",a.Fd()>0?-a.Fd()+1:0).attr("y2",a.Se()>0?-a.Se()-1:0);k&&(b=b.transition().duration(k),c=c.transition().duration(k));var E=f.color(),ma=b.select("path");ek(ma,function(ua,ta){return a.Ca(E(ua.data,ta),n(ua.data,ta),r(ua.data,ta)).color});var na=f.Fe();b.each(function(ua,ta){var Ba=vj(this);typeof na==="function"?(ua=na(ua.data,ta))&&typeof ua==="string"||(ua=""):ua=na;(ta=Ba.attr("data-user-classes"))&&Ba.classed(ta||"",!1);ua&&Ba.classed(ua,!0);Ba.attr("data-user-classes",ua)});var sa=!a.Ka||sf||tf?null:mk(f.wb.kb.node());k?b.select("path").attrTween("d",Gv(a.N)):b.select("path").attr("d",a.N).each(function(ua){this.N={startAngle:ua.startAngle,endAngle:ua.endAngle};var ta=vj(this);ta.classed("empty-pie")&&ta.attr("color",null);ua.endAngle-ua.startAngle<1E-7?ta.style("display","none"):ta.style("display","")});y.each(function(ua,ta){var Ba=vj(this),ya=Ba.select("path"),Aa=n(ua.data,ta);ua=r(ua.data,ta);Ba.classed("highlight",Aa>0);Ba.classed("inverse-highlight",Aa<0);Ba.classed("selected",ua>0);Ba.classed("inverse-selected",ua<0);ya.attr("filter",Aa>0?sa:null)});t.attr("data-label-position",Md(function(){switch(this.ha){case 0:return"inside";case 1:return"outside";default:throw Error("Unknown label position.");}},a));e.length>0&&e[e.length-1].endAngle>0&&(b=Md(a.Qm,a,f),e=Ft(a.N,e,a.ha,a.ma,a.oa,a.ta),f=null,Mj()?f=new Mt(e,b,k):f=new Dt(e,b,k,a.O),f.Sg(a.ka).render(t));k?c.attrTween("transform",Md(function(ua,ta,Ba){return Hv(Ba,Fv(ua.startAngle))},a)):c.attr("transform",Md(function(ua){return Fv(ua.startAngle)},a))} function eu(a,b,c,e,f,k,n){if(n){b=b.transition().duration(n);var r=$t(k.key());k=a.N;b.select("path").attrTween("d",Iv(a,k,e,f,r));c=c.transition().duration(n);c.attrTween("transform",function(t,y){y=Pe(f,t);t=Jv(a,y,e,f,r);return Hv(this.getAttribute("transform"),Fv(t))})}b.remove();c.remove()} w.Qm=function(a,b,c,e){b=b.data;return ln(a,"label")?a.label()(b,c,e):(a.Dd()||vl)(a.domain()(b,c))};function Zt(a,b,c){var e=c.measure();a.v.value(e);a.ya?a.v.sort(function(f,k){return Kv(e(f),e(k))}):a.v.sort(null);return a.v(b.data)} function Fv(a){return"rotate("+(a||0)*180/Math.PI+")"} function Gv(a){return function(b){var c=Lv(this.N,{startAngle:b.startAngle,endAngle:b.endAngle});this.N=c(0);return function(e){e=c(e);e.endAngle-e.startAngle<1E-7&&(e.startAngle=e.endAngle);return a(e)}}} function Iv(a,b,c,e,f){var k=Gv(b);return Nd(function(n,r){r=Pe(e,r);n=Jv(n,r,c,e,f);return k.call(this,{startAngle:n,endAngle:n})},a)} function gu(a,b,c,e,f){for(--b;b>=0;b--)for(var k=f(c[b],b),n=0;n0:r.measureSize<=0,t),E=r.domainPosition+r.domainSize/2;y=r.measurePosition+r.measureSize+(f?-1:1)*y;switch(this.v){case "vertical":if(k){var ma=-1*y;var na=".32em"}else ma=E,E=-1*y,na=this.N==="middle"?".32em":null;break;default:k?(ma=E,E=y,na=null):(ma=y,na=".32em")}t=(t=r.validValue&&(this.N==="above"||t>=this.ka))&&(k?y<=e:y>=c);r.barLabel={domainPosition:ma,measurePosition:E,valid:t,dy:na,"text-anchor":Rv(this,b),"dominant-baseline":Sv(this,b)}}};function Rv(a,b){switch(a.N){case "above":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "bottom":return a.v==="vertical"?b==="y"?"left":"middle":b==="y"?"middle":"left";case "middle":return"middle";case "top":return a.v==="vertical"?b==="y"?"right":"middle":b==="y"?"middle":"right";default:throw Error("Unrecognized bar label position");}} function Sv(a,b){switch(a.N){case "above":return null;case "bottom":return null;case "middle":return a.v==="vertical"?null:b==="y"?"middle":null;case "top":return a.v==="vertical"?b==="x"?"hanging":null:b==="y"?"hanging":null;default:throw Error("Unrecognized bar label position");}} w.add=function(a){a.append("text").attr("class","bar-label")};w.update=function(a,b,c,e){a=a.select(".bar-label");var f=c==="y",k=this;a.each(function(n){var r=n.barLabel;if(r){var t=vj(this),y=r.valid?1:0,E=null,ma=n.barLabel;if(k.N==="above"){var na=n.chartX;ma=n.chartY}else k.v==="vertical"?f?(na=ma.measurePosition,ma=-1*ma.domainPosition):(na=-1*ma.measurePosition,ma=ma.domainPosition):(na=ma.domainPosition,ma=ma.measurePosition);na=new xi(na,ma);r.valid&&e.contains(na)||(E="none");t.text(n.label);b&&(t=t.transition().duration(b));switch(k.v){case "vertical":na= c==="y"?"rotate(-90)":"rotate(90)";break;default:na=null}ti(t,{x:r.domainPosition,y:r.measurePosition,dy:r.dy,opacity:y,display:E,"dominant-baseline":r["dominant-baseline"],transform:na});t.attr("text-anchor",Ij(r["text-anchor"],n.label));t.style("fill",k.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.Uf=function(){return!0};Mv.prototype.getMinBarLength=Mv.prototype.Xm;Mv.prototype.setMinBarLength=Mv.prototype.ui;Mv.prototype.getLabelPosition=Mv.prototype.od;Mv.prototype.setLabelPosition=Mv.prototype.Pb;Mv.prototype.getLabelOrientation=Mv.prototype.Om;Mv.prototype.setLabelOrientation=Mv.prototype.Gk;Mv.prototype.getLabelColor=Mv.prototype.Me;Mv.prototype.setLabelColor=Mv.prototype.Wc;Mv.prototype.getLabelOffsetFunction=Mv.prototype.Nm;Mv.prototype.setLabelOffsetFunction=Mv.prototype.ef;function Nv(a,b){return a?-4:-b-4} function Ov(a,b){return a?b-4:-4} function Pv(a,b){return a?b/2:-b/2} function Qv(a,b){return a?4:-b+4} Od("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});Od("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Tv(){vt.call(this);this.oa=this.Sa=2;this.ka=null;this.ta=0;this.Ca=this.ha=1;this.ma=this.La=null;this.N=this.Ya=this.Ia=0;this.v=new Mv;this.ya=[this.v,new dt];this.ab=ok;this.Rb=null} Wc(Tv,vt);function Uv(a,b){a.ya.push(b);return a} function Vv(a,b){Ve(a.ya,a.v);a.v=b;Uv(a,a.v)} w=Tv.prototype;w.mm=function(){return this.v};w.Mo=function(a){this.Ya=a;return this};w.uo=function(a){this.N=a;return this};w.nm=function(){return this.N};w.Ld=function(a){this.ab=a;return this};w.Cl=function(a){return arguments.length&&a!=null?this.Kd(a):this.Hc()};w.strokeWidth=function(a){return arguments.length&&a!=null?this.Qd(a):this.Hf()};w.Qd=function(a){this.Ia=a;return this};w.Hf=function(){return this.Ia};w.stack=function(a){return arguments.length&&a!=null?this.Pd(a):this.Ue()};w.Pd=function(a){this.dg(a?2:1);return this};w.Ue=function(){return this.ha===2};w.dg=function(a){this.ha=a;return this};w.Hm=function(){return this.ha};w.Po=function(a){return arguments.length&&a!=null?this.Fi(a):this.Ca};w.Fi=function(a){this.Ca=a;return this};w.rn=function(){return this.Ca};w.Qg=function(a){return arguments.length&&a!==void 0?this.fh(a):this.ma};w.fh=function(a){this.ma=Math.max(0,a);return this};w.Wm=function(){return this.ma};w.Pk=function(a){this.La=Math.max(0,a);return this};w.Ym=function(){return this.La};w.Dl=function(a){return arguments.length&&a!=null?this.sk(a):this.oa};w.sk=function(a){this.oa=a;return this};w.jm=function(){return this.oa};w.yn=function(){return this.ka};w.Wk=function(a){this.ka=a;return this};w.El=function(a){return arguments.length&&a!=null?this.uk(a):this.ta};w.uk=function(a){this.ta=a;return this};w.lm=function(){return this.ta};w.ko=function(a){return arguments.length&&a!=null?this.Ai(a):this.Sa};w.Ai=function(a){this.Sa=a;return this};w.hn=function(){return this.Sa};w.rd=function(){return-10};w.Hd=function(a){return a instanceof Tv};w.wo=function(a){this.Rb=a;return this};w.Uc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.ha;zt(this,a,b);for(var n=0,r=0;r=0?c:e;Ba=Ca.get(ya);Ba||(Ba=new Map,Ca.set(ya,Ba));ya=Ba.get(ma);(Ca=Ba.get(na))&&(ta.barStackIndex=Ca.barStackIndex+1);ta.cumulativeTotal=Aa||0;Aa=ta.measureOffset||0;ya&&ta.measure!==null&&(Aa+=ya.measure+ya.measureOffset,ta.cumulativeTotal+=ya.cumulativeTotal,ta.measure!=0&&(ya.roundedCorners=!1,this.Hc()=="stackTotal"&&(ya.label="")));ta.measureOffset=Aa;Ba.set(na,ta);ta.validValue&&ta.measure!=0?Ba.set(ma,ta):(ta.roundedCorners=!1,this.Hc()=="stackTotal"&&(ta.label=""))}n=Math.max(n,ta.barStackIndex+1);Wv(this,ta,t)}sa&&t.Lc(Xv(this,y));na=t.wb!=null?mk(t.wb.kb.node()):null;Mn(t,{barData:y,barGroupIndex:E,barGroupCount:this.ha===1?b.length:1,highlightShadowUrl:na,barStackKey:ma})}if(this.ha===3){var Fa=f.size;b.forEach(function(Ea){Mn(Ea).barGroupCount=Fa;Mn(Ea).maxBarStackSize=n})}b.length>0&&(a=b[0].wb,wt(this)=="x"&&a.Le&&a.ud&&b.forEach(function(Ea){Ea=Mn(Ea);Ea.barGroupIndex=Ea.barGroupCount-1-Ea.barGroupIndex}))};function Wv(a,b,c){b.roundedCorners==null&&(b.roundedCorners=!0);b.fill=b.dashPattern&&b.dashPattern.toLowerCase()!=="none"?"transparent":null;if(b.strokeWidth==null||isNaN(b.strokeWidth))b.strokeWidth=a.Ia;if(a.Hc())switch(a.Hc()){case "cumulativeTotal":case "stackTotal":b.validValue&&b.cumulativeTotal!=null&&b.measure!==0?(a=b.cumulativeTotal,c=c.Ub()||vl,b.label=c(a)):b.label="";break;case "measureValue":b.validValue&&b.measure!==0?(c=c.Ub()||vl,b.label=c(b.measure)):b.label=""}} w.Ob=function(a,b){var c=Mn(b),e=c.barData,f=b.Ac(),k=b.qb(),n=ln(b,"datumHoverState")?b.md():function(){return 0},r=ln(b,"datumClickState")?b.Xd():function(){return 0},t=b.wb;c.chartWidth=t.frameWidth();c.chartHeight=t.frameHeight();t=f.bandwidth();t=Math.max(t,1);var y=Yv(this,c.barGroupCount);c.barWeights=y;c.barWidth=Zv(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.La,this.ma,this.ta);c.barOffset=$v(c.barGroupCount,c.barGroupIndex,y,t,this.oa,this.La,this.ma,this.ta);if(a.data.length==0)Mn(b).barData=[];else{for(a=0;a0?(b.barClass+=" highlight",b.filter=c.highlightShadowUrl):t<0&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),t>0?b.barClass+=" selected":t<0&&(b.barClass+=" inverse-selected");c=yt(this);for(n=0;n0?f[0].series.name:"series"),r=b.select("#"+n);r.empty()&&(r=b.append("clipPath").attr("id",n),r.append("rect"));var t=e.chartWidth,y=0;f.forEach(function(E){t=Math.min(t,E.domainPosition);y=Math.max(y,E.domainPosition+E.domainSize)},a);a=r.select("rect");k&&(a=a.transition().duration(k));a.attr("x",t).attr("y",0).attr("width",y-t).attr("height",e.chartHeight);c.attr("clip-path","url(#"+n+")")}} function Yv(a,b){var c=0,e=[];if(a.ka!=null){var f=a.ka.split(",");if(b>f.length)throw Error('Number of series exceeds length of weight pattern "'+a.ka+'"');for(var k=[],n=0;n=0){var r=b.measurePosition;var t=b.measurePosition+b.measureSize}else t=b.measurePosition,r=b.measurePosition+b.measureSize;b=f?Nh(c,t,r):Nh(c,r,t);return{domainDistance:a>=e&&a<=k?0:Math.abs(a-n),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:yi(new xi(n,b),new xi(a,c))}} w.me=function(a,b,c,e,f){var k=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Fc()(a,b);var r=ln(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ia;k=n.append("rect").attr("class","bar").attr("width",k).attr("height",f).attr("stroke-width",r).attr("stroke-dasharray",e).attr("x",0).attr("y",0).attr("rx",1);ek(k,function(){return c.color()(a,b)},!0);e&&e.toLowerCase()!=="none"&&k.attr("fill","transparent")};function dw(a){a=vj(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function fw(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Ya){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function aw(a,b,c,e,f){var k=c.measureOffset,n=c.measure+k,r=zr(f,k),t=zr(f,n);if(ql(r)&&ql(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Ca);n?(n=k===0?Math.floor:Math.ceil,y=Math.ceil):(n=k===0?Math.ceil:Math.floor,y=Math.floor);r=n(r);t=y(t)}else t=r=null;n=Uo(e,c.domain);y=yr(e,c.domain)+b.barOffset;var E=b.barWidth,ma=r;r=t-r;var na=t=void 0,sa=Math.min(E/2,Math.abs(r),c.strokeWidth);E-=sa;y+=sa/2;r+=(r>=0?-1:1)*sa/2;if(c.measureLowerBound!=null&& c.measureUpperBound!=null){var ua=c.measureLowerBound,ta=c.measureUpperBound;ua!=null&&ta!=null&&(t=zr(f,k+ua),na=zr(f,k+ta))}a=wt(a)=="x";k=b.barWidth/2;b=yr(e,c.domain)+b.barOffset+k;c=Uo(f,c.measure+c.measureOffset);return{barGroupCenter:n,chartX:a?b:c,chartY:a?c:b,domainPosition:y,domainSize:E,measurePosition:ma,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:na,strokeWidth:sa}} w.Df=function(a,b,c,e,f,k,n){a===null||b===null||c===null||e===null||k===null?a="":(k=Math.min(Math.abs(e),k,c/2),n=n==1?"Z":"",a=f?e>=0?"M"+b+" "+a+"h"+(e-k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+-k+","+k+"h"+-1*(e-k)+n:"M"+b+" "+a+"h"+(e+k)+"a"+k+","+k+" 0 0 0 "+-k+","+k+"v"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+k+"h"+-1*(e+k)+n:e<=0?"M"+a+" "+b+"v"+(e+k)+"a"+k+","+k+" 0 0 1 "+k+","+-k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 1 "+k+","+k+"v"+-1*(e+k)+n:"M"+a+" "+b+"v"+(e-k)+"a"+k+","+ k+" 0 0 0 "+k+","+k+"h"+(c-2*k)+"a"+k+","+k+" 0 0 0 "+k+","+-k+"v"+-1*(e-k)+n);return a};w.ne=function(){return!0};w.Jg=function(a,b){b=Mn(b);return b.barData==null?a.data:b.barData};Tv.prototype.getBarPath=Tv.prototype.Df;Tv.prototype.setCssName=Tv.prototype.wo;Tv.prototype.getRoundingRadiusPx=Tv.prototype.hn;Tv.prototype.setRoundingRadiusPx=Tv.prototype.Ai;Tv.prototype.roundingRadiusPx=Tv.prototype.ko;Tv.prototype.getBarHorizontalMargin=Tv.prototype.lm;Tv.prototype.setBarHorizontalMargin=Tv.prototype.uk;Tv.prototype.barHorizontalMargin=Tv.prototype.El;Tv.prototype.setWeightPattern=Tv.prototype.Wk;Tv.prototype.getWeightPattern=Tv.prototype.yn;Tv.prototype.getBarGroupInnerPadding=Tv.prototype.jm;Tv.prototype.setBarGroupInnerPadding=Tv.prototype.sk;Tv.prototype.barGroupInnerPadding=Tv.prototype.Dl;Tv.prototype.getMinBarWidth=Tv.prototype.Ym;Tv.prototype.setMinBarWidth=Tv.prototype.Pk;Tv.prototype.getMaxBarWidth=Tv.prototype.Wm;Tv.prototype.setMaxBarWidth=Tv.prototype.fh;Tv.prototype.maxBarWidth=Tv.prototype.Qg;Tv.prototype.getStackedBarPadding=Tv.prototype.rn;Tv.prototype.setStackedBarPadding=Tv.prototype.Fi;Tv.prototype.stackedBarPadding=Tv.prototype.Po;Tv.prototype.getGroupingType=Tv.prototype.Hm;Tv.prototype.setGroupingType=Tv.prototype.dg;Tv.prototype.getStack=Tv.prototype.Ue;Tv.prototype.setStack=Tv.prototype.Pd;Tv.prototype.stack=Tv.prototype.stack;Tv.prototype.getStrokeWidth=Tv.prototype.Hf;Tv.prototype.setStrokeWidth=Tv.prototype.Qd;Tv.prototype.strokeWidth=Tv.prototype.strokeWidth;Tv.prototype.autoBarLabels=Tv.prototype.Cl;Tv.prototype.setColorHighlightStrategy=Tv.prototype.Ld;Tv.prototype.getBorderRenderingStrategy=Tv.prototype.nm;Tv.prototype.setBorderRenderingStrategy=Tv.prototype.uo;Tv.prototype.setTransitionStrategy=Tv.prototype.Mo;Tv.prototype.getBarLabelDecorator=Tv.prototype.mm;function Zv(a,b,c,e,f,k,n,r){e=Math.floor((e-(r*2+f*(a-1)))/a);k&&(e=Math.max(k,e));n&&(e=Math.min(n,e));return c&&c.length!=0?Math.floor(e*a*c[b]):e} function $v(a,b,c,e,f,k,n,r){var t=Math.floor((e-(r*2+f*(a-1)))/a),y=0;n&&t>n&&(y=Math.floor((t-n)*a/2));for(var E=t=0;E1){if(c%2)throw Error("Uneven number of arguments");for(var e=0;e2*this.size&&uw(this),!0):!1};function uw(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return nw;var k=e.v[b++];return{value:a?k:e.N[k],done:!1}};return f};function vw(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function ww(){vt.call(this);this.ta=null;this.ma=0;this.N=!1;this.ka=2;this.v=!1;this.oa=null;this.ha=3} Wc(ww,vt);w=ww.prototype;w.jo=function(a){if(a==null)return this.N;this.N=a;return this};w.Qg=function(a){if(a===void 0)return this.oa;this.oa=a;return this};w.strokeWidth=function(a){if(a==null)return this.ha;this.ha=a;return this};w.zn=function(a){if(a==null)return this.ka;this.ka=a;return this};w.Ho=function(a,b){b?(this.ta=null,this.ma=a||0):(this.ta=a||0,this.ma=null);return this};w.stack=function(a){if(!arguments.length||a==null)return this.v;this.v=a;return this};w.Uc=function(a,b){for(var c=new sw,e=new sw,f=0;f=0?c:e,ua=sa.get(ma)||0;sa.set(ma,na+ua);E.measureOffset=ua}}this.v&&k.Lc(xw(t));n=(n=k.wb)?mk(n.kb.node(),0,4):null;Mn(k,{lineData:t,lineIndex:f,numLines:b.length,highlightShadowUrl:n})}};function xw(a){return function(b,c){return a[c].measureOffset}} w.Ob=function(a,b){var c=b.color(),e=b.Fe(),f=yt(this)==="y",k=b.qb(),n=b.Ac(),r=n.bandwidth(),t=this.ma!=null?this.ma*r:this.ta||0,y=ln(b,"datumHoverState")?b.md():function(){return 0},E=Mn(b),ma=E.lineData,na=E.numLines,sa=E.lineIndex,ua=this.v?r:Math.floor((r-this.ka*(na-1))/na),ta=Math.min(this.oa||Infinity,ua);r=yw(this,sa,na,ta,t);t=zw(this,ta,ua,sa,na,t);na=t+r/2;E.chartWidth=b.wb.frameWidth();E.chartHeight=b.wb.frameHeight();if(a.data.length==0)Mn(b).barData=[];else for(b=0;b0?(sa.lineClass+=" highlight",sa.filter=E.highlightShadowUrl):ua<0&&(sa.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=Mn(b).lineData;var f=zr(b.qb(),0),k=this.N?"round":"butt";b=c.selectAll(".bar-target-line").data(a,function(y){return y.key});c=b.enter().append("line");a=b.exit();var n=c.merge(b),r=yt(this),t=wt(this);e&&(c.each(function(y){var E=vj(this);ti(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});Dj(this,t+"1",y.domainPosition);Dj(this,t+"2",y.domainPosition+y.domainSize);Dj(this,r+"1",f);Dj(this,r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.each(function(y,E,ma){Dj(ma[E],r+"1",f)}),a.each(function(y,E,ma){Dj(ma[E],r+"2",f)}));a.remove();n.each(function(y){var E=vj(this);e&&(E=E.transition(n));ti(E,{display:y.validValue?null:"none","class":"bar-target-line "+y.lineClass,filter:y.filter,stroke:y.color,"stroke-linecap":k,"stroke-width":y.strokeWidth,"stroke-dasharray":y.dashPattern});Dj(this,t+"1",y.domainPosition);Dj(this,t+"2",y.domainPosition+y.domainSize);Dj(this,r+"1",y.measurePosition);Dj(this,r+"2",y.measurePosition)});return null};function yw(a,b,c,e,f){a.v&&(c=1,b=0);return(b===0?f:0)+e+(b+1===c?f:0)} function zw(a,b,c,e,f,k){if(a.v)return Math.floor((c-b)/2)-k;c=Math.floor((c-b)*f/2);e===0&&(c-=k);return c+(a.ka+b)*e} function Aw(a,b,c,e,f,k){var n=b.measureOffset,r=b.measure+n;ql(r)&&ql(n)||(r=0);n=Uo(k,r);var t=Uo(k,0);r=r<0;k=(k=t=e&&a<=k?0:Math.abs(a-n),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.ee=function(a,b,c,e,f){a=f||[];if(b=Mn(b).lineData)for(f=0;f0&&n>ya.chartX&&(k=!0);n=ya.chartX;Ew(this,ya);ya.pointClass="";var Aa=t(ya.datum,Ba);Aa>0?ya.pointClass= (ya.pointClass+" highlight").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-highlight").trim());Aa=y(ya.datum,Ba);Aa>0?ya.pointClass=(ya.pointClass+" selected").trim():Aa<0&&(ya.pointClass=(ya.pointClass+" inverse-selected").trim());ua&&(Aa=ya.domainOffset||0,E&&ma&&(ya.domainLowerBound=E(ya.datum,Ba),ya.domainUpperBound=ma(ya.datum,Ba),b||(ya.domainLowerBound+=Aa,ya.domainUpperBound+=Aa),ya.domainLowerBound!==null&&ya.domainUpperBound!==null&&(ya.domainLowerBoundPosition=zr(e,ya.domainLowerBound,null),ya.domainUpperBoundPosition=zr(e,ya.domainUpperBound,null),ya.errorBarColor=ya.color)),Aa=ya.measureOffset||0,ya.measureLowerBound=na(ya.datum,Ba),ya.measureUpperBound=sa(ya.datum,Ba),ta||(ya.measureLowerBound+=Aa,ya.measureUpperBound+=Aa),ya.measureLowerBound!==null&&ya.measureUpperBound!==null&&(ya.measureLowerBoundPosition=zr(f,ya.measureLowerBound,null),ya.measureUpperBoundPosition=zr(f,ya.measureUpperBound,null),ya.errorBarColor=ya.color));ya.shapeRenderer=a(ya.datum,ya.index)}k&&r.sort(function(Ca,Fa){return Ca.chartX-Fa.chartX});c.Gb=r;this.v.Ob(r,yt(this),e,f)}};function Dw(a,b,c){var e=a.ma;b.shapeRenderer&&(e=Cw(b.shapeRenderer));return mn(c,"shapeRenderer",function(f){return f.shapeRenderer?Cw(f.shapeRenderer):e})} function Ew(a,b){switch(a.N){case 1:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY-6.5-b.radius;break;case 4:b.labelX=isNaN(b.chartX)?null:b.chartX;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 2:b.labelX=isNaN(b.chartX)?null:b.chartX-6.5-b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;case 3:b.labelX=isNaN(b.chartX)?null:b.chartX+6.5+b.radius;b.labelY=isNaN(b.chartY)?null:b.chartY;break;default:case 0:b.labelX=null,b.labelY=null}} w.render=function(a,b,c,e,f,k,n){a=zr(b.qb(),0);f=Mn(b);var r=ln(b,"datumHoverState")?b.md():function(){return 0};b=ln(b,"datumClickState")?b.Xd():function(){return 0};var t=c.node();Fw(this,f.Gb||[],t,a,e,k,n,r,b);return c.selectAll(".point-group")};function Fw(a,b,c,e,f,k,n,r,t){if(b.length===0)Gw(a,c,e,f);else{c=vj(c).selectAll(".point-group").data(b,function(ta){return ta.key});c.exit().remove();var y=c.enter().append("g").attr("class","point-group");c=y.merge(c);a.v.Uf()||a.v.add(y,f,k);var E=function(ta,Ba){var ya=+ta.radius;if(r(ta.datum,Ba)>0||t(ta.datum,Ba)>0)ya+=2;return ya},ma=function(ta,Ba){var ya=r(ta.datum,Ba);Ba=t(ta.datum,Ba);return a.oa(ta.color,ya,Ba).color},na=a.ma;y.each(function(ta,Ba){(ta.shapeRenderer||na).be(vj(this),"point",ta.chartX,e,E(ta,Ba),ma(ta,Ba),ta)});var sa=y.append("text").attr("class","point-label");switch(a.N){case 1:case 4:sa.attr("display",null).attr("text-anchor",Ij("middle")).attr("alignment-baseline","middle");break;case 2:sa.attr("display",null).attr("text-anchor",Ij("end")).attr("alignment-baseline","middle");break;case 3:sa.attr("display",null).attr("text-anchor",Ij("start")).attr("alignment-baseline","middle");break;default:case 0:sa=c.select(".point-label"),sa.attr("display","none")}a.v.Uf()&&a.v.add(y,f,k);y.each(function(ta){ta= Vh(ta);a.ha&&(ta.Wj=e);ta.radius=0;ta.er=ta.Wj;ta.fr=ta.Wj;ta=yt(a);a.v.update(vj(this),f,ta,n)});sa.style("fill",a.ka);k={display:function(ta){return ta.validValue?null:"none"},"class":function(ta){var Ba="point-group";ta.pointClass!==void 0&&(Ba=(Ba+" "+ta.pointClass).trim());ta.datumClass!==void 0&&(Ba=(Ba+" "+ta.datumClass).trim());return Ba}};b={dx:function(ta){return isNaN(ta.labelX)?null:ta.labelX},dy:e};var ua=c;f&&(ti(y,k),sa&&ti(sa,b),ua=c.transition().duration(f));c=ua.select(".point");c.attr("display",function(ta){return n.contains(new xi(ta.chartX,ta.chartY))?null:"none"});c.each(function(ta,Ba){var ya=vj(this);f&&(ya=ya.transition().duration(f));(ta.shapeRenderer||na).Rd(ya,"point",ta.chartX,ta.chartY,E(ta,Ba),ma(ta,Ba),ta)});c=ua.select(".point-label");ti(ua,k);b.dy=function(ta){return isNaN(ta.labelY)?null:ta.labelY};b.display=function(ta){return n.contains(new xi(ta.chartX,ta.chartY))?null:"none"};switch(a.N){case 1:case 4:b["text-anchor"]=Ij("middle");break;case 2:b["text-anchor"]=Ij("end");break;case 3:b["text-anchor"]=Ij("start");break;default:case 0:b.display="none"}c.text(function(ta){return ta.label});c.style("fill",a.ka);ti(c,b);ua.each(function(){var ta=yt(a);if(f){var Ba=vj(this).transition(ua);a.v.update(Ba,f,ta,n)}else a.v.update(vj(this),f,ta,n)})}} function Gw(a,b,c,e){a.v.remove(vj(b),c,e);a=vj(b).selectAll(".point-group");b=vj(b).selectAll(".point");e&&(a=a.transition().duration(e),b=b.transition().duration(e),c={cx:function(f){return f.chartX},cy:c,r:function(f){return f.radius},fill:function(f){return f.color}},ti(a,{display:function(f){return f.validValue?null:"none"}}),ti(b,c));a.remove()} w.qd=function(a,b,c,e,f,k){b=Mn(b).Gb;a=null;for(var n=Number.MAX_VALUE,r=[],t=0;t0&&t>Aa.chartX&&(n=!0);t=Aa.chartX;Ew(this.v,Aa);this.ya&&(sa&&ua&&(Aa.domainLowerBound= sa(Aa.datum,ya),Aa.domainUpperBound=ua(Aa.datum,ya),Aa.domainLowerBound!==null&&Aa.domainUpperBound!==null&&(Ca=Aa.domainOffset||0,Aa.domainLowerBound+=Ca,Aa.domainUpperBound+=Ca,Aa.domainLowerBoundPosition=zr(f,Ca+Aa.domainLowerBound),Aa.domainUpperBoundPosition=zr(f,Ca+Aa.domainUpperBound),Aa.errorBarColor=Aa.color)),Aa.measureLowerBound=ta(Aa.datum,ya),Aa.measureUpperBound=Ba(Aa.datum,ya),Aa.measureLowerBound!=null&&Aa.measureUpperBound!=null&&(Ca=Aa.measureOffset||0,Aa.measureLowerBound+=Ca,Aa.measureUpperBound+= Ca,Aa.measureLowerBoundPosition=zr(k,Ca+Aa.measureLowerBound),Aa.measureUpperBoundPosition=zr(k,Ca+Aa.measureUpperBound),Aa.errorBarColor=Aa.color));Aa.shapeRenderer=b(Aa.datum,Aa.index);Aa.strokeWidth=na(Aa.datum,ya)}n&&y.sort(function(Ja,Ka){return Ja.chartX-Ka.chartX});var Fa=this.Sa?this.Sa(y,this):y;n=[];if(r)for(r=0;r0?(Pa+=2,Oa+=" highlight"):Qa<0&&(Oa+=" inverse-highlight");var Wa=ma(y[0].datum,0);Wa>0?(Pa+=2,Oa+=" selected"):Wa<0&&(Oa+=" inverse-selected");Ea.push({color:Ka[0],Pg:Ka[1],Fc:Ka[2],Fe:Ka[3],Xl:Ja,yc:Fa,lr:a.name,strokeWidth:Pa,cr:Pa,ar:Qa>0,br:Qa< 0,id:"lineclip"+Vj(),Rj:Oa})},this)}e.Gb=y;e.Jj=n;e.Nf=Ea;this.N&&this.v.v.Ob(y,yt(this),f,k)}};w.render=function(a,b,c,e,f,k,n){var r=zr(b.qb(),0),t=Mn(b),y=c.node();if(a.data.length!==0||y!=null){var E=c.select("g");E.node()&&E.classed("area-segments")||Uj(y,'');var ma=fj(y);E=ma[1];var na=ma[2],sa=ma[3];y=ma[4];ma=ma[5];Pw(this,c,t.Nf,b);Qw(this,t.Nf,E,r,e,k);Rw(this,t.Nf,na,r,e,k);Sw(this,t.Jj,sa,r,e,k);Tw(this,t.Nf,ma,r,e,k);this.N?this.v.render(a,b,vj(y),e,f,k,n):(b=b.Qh(),Mn(b,{}),this.v.render({name:a.name,data:[]},b,vj(y),e,f,k,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Rw(a,b,c,e,f,k){if(a.ka)if(b.length===0)Uw(a,c,e,f);else if(vj(c).attr("clip-path",k),f){k=vj(c).selectAll(".line-series").data(b);k.exit().remove();b=vj(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");ti(c,{"class":function(t){return t.Rj},fill:"none"});k=c.merge(k);var n=b.enter().append("path");ti(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=Vw().defined(function(t){return t.validValue}).curve(a.ha).x(function(t){return t.chartX}).y(e);f&&(ti(c,{stroke:function(t){return t.Pg},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),ti(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});ti(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Fc},d:function(t){return r(t.yc)},"stroke-width":function(t){return t.strokeWidth}});ti(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.yc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else Ww(a,c,b),vj(c).selectAll(".line-series").data(b),vj(c).selectAll(".event-target").data(b);else Uj(c,"")} function Ww(a,b,c){for(var e="",f=Vw().defined(function(r){return r.validValue}).curve(a.ha).x(function(r){return a.Ca?Math.round(r.chartX):Math.round(r.chartX*100)/100}).y(function(r){r=ql(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(r*100)/100}),k=0;k';e+=''}Uj(b,e)} function Uw(a,b,c,e){var f=vj(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=Vw().defined(function(n){return n.validValue}).curve(a.ha).x(function(n){return n.chartX}).y(c);f.attr("d",function(n){return k(n.yc)}).remove();vj(b).selectAll(".event-target").remove()} function Sw(a,b,c,e,f,k){b.length&&!a.N&&a.ka?(a=vj(c).attr("clip-path",k).selectAll(".isolate-datum").data(b),a.exit().remove(),b=a.enter().append("path").attr("stroke-linecap","round"),a=b.merge(a),c={d:function(n){return"M"+n.chartX+","+e+"h0"},stroke:function(n){return n.color},"stroke-width":function(n){return n.strokeWidth*2},"class":function(n){return"line-series isolate-datum"+(n.datumClass!=null?" "+n.datumClass:"")}},f&&(ti(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},ti(a,c)):Uj(c,"")} function Qw(a,b,c,e,f,k){if(a.ta)if(b.length===0)Xw(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".area").data(b);b.exit().remove();c=b.enter().append("path").attr("class","area").attr("stroke-width",0);b=c.merge(b);var n=Yw().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(c,{fill:function(r){return r.Pg},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});ti(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Pg},d:function(r){return n(r.yc)},"class":function(r){return"area"+(r.datumClass!=null?" "+r.datumClass:"")}})}else Uj(c,"")} function Xw(a,b,c){a=vj(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=Yw().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function Tw(a,b,c,e,f,k){if(a.ya)if(b.length===0||a.N)Zw(c,e,f);else{b=vj(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");ti(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=Yw().curve(a.La).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(ti(c,{fill:function(r){return r.color},d:function(r){return n(r.yc)}}),b=b.transition().duration(f));n.y1(function(r){return r.measureUpperBoundPosition!=null?r.measureUpperBoundPosition:r.chartY});n.y0(function(r){return r.measureLowerBoundPosition!=null?r.measureLowerBoundPosition:r.chartY});ti(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return n(r.yc)}})}else Uj(c,"")} function Zw(a,b,c){a=vj(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=Yw().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.yc)}).remove()} function Ow(a,b){var c=a.O!=null;return function(e,f){if(c)for(e=0;eE)return!0;if(sa=r.length)return null;for(var t=Math.min(Math.max(ax(r,c),a),b),y=null,E=Number.MAX_VALUE,ma=Number.MAX_VALUE,na=t;na<=b&&!n(na);na++);for(b=t;b>=a&&!n(b);b--);y!=null&&(y=this.Cb(y,c,e));return y};function ax(a,b,c){c=c===void 0?!1:c;var e=ff(a,b,function(f,k){return f-k.chartX});if(e<0)return-e-1;if(c)for(;e=0;b--)this.removeBehavior(a[b]);return this};Kx.prototype.removeAllBehaviors=Kx.prototype.fo;Kx.prototype.removeBehavior=function(a){a.xd(this);Ve(this.xf,a);return this};Kx.prototype.removeBehavior=Kx.prototype.removeBehavior;Kx.prototype.Mb=function(){return this.Jc.Mb()};Kx.prototype.getMarginTop=Kx.prototype.Mb;Kx.prototype.Qe=function(){return this.Jc.Qe()};Kx.prototype.getMarginRight=Kx.prototype.Qe;Kx.prototype.Pe=function(){return this.Jc.Pe()};Kx.prototype.getMarginBottom=Kx.prototype.Pe;Kx.prototype.Lb=function(){return this.Jc.Lb()};Kx.prototype.getMarginLeft=Kx.prototype.Lb;Kx.prototype.Gg=function(){return new kj(this.Mb(),this.Qe(),this.Pe(),this.Lb())};Kx.prototype.getMargins=Kx.prototype.Gg;Kx.prototype.Xc=function(a,b){this.Jc.Xc(a,b);return this};Kx.prototype.setMargins=Kx.prototype.Xc;Kx.prototype.Eo=function(a){this.Jc=a;return this};Kx.prototype.setLayoutManager=Kx.prototype.Eo;Kx.prototype.Xh=function(){this.Xa.ob("prelayout",this,this.Jc)};function Sx(a,b,c){b.Wg("chartDelegate",function(e){this.Xa.ob(on[c].selectionChange,this,e)}.bind(a))} Kx.prototype.bl=function(a){a=a===void 0?1:a;var b=this.ak.node().querySelector(".aplos-chart-container");if(!b)throw Error("No container element for the chart could be found.");var c=cf(b.querySelectorAll("*"));c.push(b);b=b.cloneNode(!0);var e=cf(b.querySelectorAll("*"));e.push(b);for(var f=0;f>6|192:((f&64512)==55296&&e+1>18|240,a[c++]=f>>12&63|128):a[c++]=f>>12|224,a[c++]=f>>6&63|128),a[c++]=f&63|128);b=void 0;b===void 0&&(b=0);if(!vf)for(vf={},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),e=["+/=","+/","-_=","-_.","-_"],f=0;f<5;f++)for(k=c.concat(e[f].split("")),uf[f]=k,n=0;n>2];t=b[(t&3)<<4|y>>4];y=b[(y&15)<<2|r>>6];r=b[r&63];c[f++]=""+n+t+y+r}n=0;r=e;switch(a.length-k){case 2:n=a[k+1],r=b[(n&15)<<2]||e;case 1:a=a[k],c[f]=""+b[a>>2]+b[(a&3)<<4|n>>4]+r+e}a=c.join("")}return"data:image/svg+xml;base64,"+a};Kx.prototype.toSvgDataUrl=Kx.prototype.bl;Kx.prototype.Yo=function(a){a=a===void 0?1:a;var b=document.createElement("canvas"),c=10*a;b.width=this.frameWidth()*a+c*2;b.height=this.frameHeight()*a+c*2;var e=new Image;e.src=this.bl(a);var f=new Gx;e.onload=function(){this.onerror=this.onload=null;try{var k=b.getContext("2d");k.fillStyle="#FFF";k.fillRect(0,0,b.width,b.height);k.drawImage(e,c,c);f.Cf(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Kx.prototype.toPngDataUrl=Kx.prototype.Yo;Kx.prototype.getStyle=function(){return this.Hi};function Tx(a,b,c){Kx.call(this,bf(a,["prelayout","postlayout"]),b,c);this.nf=this.Pc=null;this.Xc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} Od("aplos.chart.SvgChartView",Tx);Pd(Tx,Kx);var Ux=0;Tx.prototype.redraw=Tx.prototype.le;Tx.prototype.yd=function(){Tx.Qb.yd.call(this);var a=this.Ve().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.kb.node().setAttribute("transform","translate("+this.Lb()+","+this.Mb()+")");this.Pc&&this.Pc.attr("width",this.Za()+1).attr("height",this.Ab()+2)};Tx.prototype.Ve=function(){return this.Qo};Tx.prototype.getSvg=Tx.prototype.Ve;Tx.prototype.Zo=function(){var a=this.Ve().node(),b=document.createElement("style"),c=Gj(a),e=sj(a);c.push("svg{font:"+e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" "+e.fontFamily+"}");b.textContent=c.join("\n");c=document.createElement("defs");c.appendChild(b);a.insertBefore(c,a.firstChild);b=(new XMLSerializer).serializeToString(a);a.removeChild(c);return b};Tx.prototype.toSvgString=Tx.prototype.Zo;Tx.prototype.getNearestDatumDetails=Tx.prototype.Ff;var Vx=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1");function Wx(a,b,c){var e=this;Tx.call(this,bf(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.Rb=new Dn(this);this.ta={};this.Vf={};this.Rk("hover",new vn);this.ab=new Xx;this.on("viewportChange.seriesChartView",function(){e.ab.reset()})} Pd(Wx,Tx);Od("aplos.chart.SeriesChartView",Wx);Wx.prototype.Rk=function(a,b){b.Wg("clearSelectedDatumDetailsCache",this.ql.bind(this));var c=this.Vf,e=on[a].selectionChange,f=this.Xa;f.O.hasOwnProperty(e)||un(f,[e]);e=c[a];e!=null&&e.Wg("chartDelegate",null);c[a]=b;Sx(this,b,a);return this};Wx.prototype.setSelectionModel=Wx.prototype.Rk;Wx.prototype.Jo=function(a){En(this.Rb,a);return this};Wx.prototype.setSeriesDefaults=Wx.prototype.Jo;Wx.prototype.ub=function(a){return this.ta[a||"__aplosDefault__"]||this.ta.__aplosDefault__};Wx.prototype.getRenderer=Wx.prototype.ub;Wx.prototype.Bn=function(a){return!!this.ta[a||"__aplosDefault__"]};Wx.prototype.hasRenderer=Wx.prototype.Bn;Wx.prototype.fg=function(a,b){b?(b.type&&(b=this.getStyle().Aj(b)),this.ta[a]=b):delete this.ta[a];return this};Wx.prototype.setRenderer=Wx.prototype.fg;Wx.prototype.fi=function(a){a.type&&(a=this.getStyle().Aj(a));this.ta.__aplosDefault__=a;return this};Wx.prototype.setDefaultRenderer=Wx.prototype.fi;Wx.prototype.di=function(a,b){a=this.Hg(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.Vf[nn[b]||"hover"]||null).Ci(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};Wx.prototype.selectDatum=Wx.prototype.di;Wx.prototype.oo=function(a){this.Xa.ob("seriesMouseover",this,a,vi)};Wx.prototype.selectSeries=Wx.prototype.oo;Wx.prototype.Ll=function(a){(this.Vf[nn[a]||"hover"]||null).deselectAll()};Wx.prototype.clearSelections=Wx.prototype.Ll;Wx.prototype.Hg=function(a,b,c){var e=this.O||[],f=this.N||[];if(!e||!f)return[];if(vi){var k=ui(this.kb.node());var n=k[0];k=k[1]}for(var r=[],t=0;t0){if(vi){var e=ui(this.kb.node());var f=e[0];e=e[1]}for(a=0;a0?a[0]-this.Lb():ui(this.kb.node())[0];a=a&&a.length>1?a[1]-this.Mb():ui(this.kb.node())[1];if(this.v&&(b<0||b>this.Za())||!this.v&&(a<0||a>this.Ab()))return[];for(var e=new st(this.Lb(),this.Mb(),this.Za(),this.Ab()),f=new xi(b+e.left,a+e.top),k=[],n=0;n=0;k--){var n=a.v=b[k];f=ly(n,e,!0,a)&&f}n=a.v=c;f=ly(n,e,!0,a)&&f;f=ly(n,e,!1,a)&&f;if(b)for(k=0;k0&&athis.N&&this.show():Ey(this)};function Ey(a){a.oa.stop();rp(a.ma);a.ma=null} w.qd=function(a,b){return this.ta(a,b)};Cy.prototype.setHovercardContainerStyle=Cy.prototype.Co;Cy.prototype.hide=Cy.prototype.Nh;Cy.prototype.followClosestSeries=Cy.prototype.uj;Cy.prototype.followTopMostSeries=Cy.prototype.am;Cy.prototype.followNamedSeries=Cy.prototype.Zl;Cy.prototype.getPlacer=Cy.prototype.en;Cy.prototype.setPlacer=Cy.prototype.yi;Cy.prototype.placer=Cy.prototype.bo;Cy.prototype.getContentRenderer=Cy.prototype.Ef;Cy.prototype.setContentRenderer=Cy.prototype.df;Cy.prototype.contentRenderer=Cy.prototype.yg;Cy.prototype.getShowDelayMs=Cy.prototype.mn;Cy.prototype.setShowDelayMs=Cy.prototype.Sk;Cy.prototype.showDelayMs=Cy.prototype.No;Cy.prototype.getTransitionMs=Cy.prototype.xn;Cy.prototype.setTransitionMs=Cy.prototype.Vk;Cy.prototype.transitionMs=Cy.prototype.kf;Cy.prototype.getClassName=Cy.prototype.rm;Cy.prototype.setClassName=Cy.prototype.vk;Cy.prototype.className=Cy.prototype.className;Od("aplos.chart.behavior.Hovercard",Cy);function Ky(){this.v=null;this.N=!1} w=Ky.prototype;w.yg=function(a){return arguments.length&&a!=null?this.df(a):this.Ef()};w.Ef=function(){return this.v};w.df=function(a){this.v=a;return this};w.kd=function(a){if(a&&a.Ui){if(this.N)throw Error("A donut center content card can be attached to one and only one pie chart.");this.N=!0;a.on("postrender.donutcentercontent",this.Ri.bind(this,a));a.on("hoverSelectionChange.donutcentercontent",this.Ri.bind(this,a))}};w.xd=function(a){a&&a.Ui&&(a.v(a.N()),this.N=!1,a.on("postrender.donutcentercontent",null),a.on("hoverSelectionChange.donutcentercontent",null))};w.Ri=function(a){var b=a.ub();if(a&&a.Ui&&b&&typeof b.Fd==="function"&&!(b.Fd()=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);Oy(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Oy(f)&&(b+="\\"),b+=f}}return b+"$"} function Qy(a){try{return a=a.replace(/\\"/g,'"'),a=a.replace(/\\'/g,"'"),a=a.replace(/\\n/g,"\n"),a=a.replace(/\\t/g,"\t"),a=a.replace(/\\r/g,"\r"),a=a.replace(/\\\\/g,"\\"),a=a.replace(/\\U([\d\w]{8})/gi,function(b,c){return String.fromCharCode(parseInt(c.substring(0,4),16),parseInt(c.substring(4),16))}),a=a.replace(/\\u([\d\w]{4})/gi,function(b,c){return String.fromCharCode(parseInt(c,16))})}catch(b){throw Error('Unable to unescape "'+a+'" encountered error: '+b);}} function Ry(){} Ry.prototype.parse=function(){console&&console.error("No expression parser implementation was defined. Please ensure that aplos.data.GeneratedParser has been required.");throw Error("No expression parser implementation was defined.");};var Sy=new Ry;Sy=function(){function a(va,oc,gd,Uc){gd=gd||{};for(Uc=va.length;Uc--;gd[va[Uc]]=oc);return gd} function b(){this.Oc={}} var c=[1,8],e=[1,20],f=[1,26],k=[1,27],n=[1,30],r=[1,112],t=[1,113],y=[1,29],E=[1,28],ma=[1,83],na=[1,84],sa=[1,85],ua=[1,86],ta=[1,87],Ba=[1,88],ya=[1,89],Aa=[1,90],Ca=[1,91],Fa=[1,92],Ea=[1,93],Ja=[1,94],Ka=[1,95],Oa=[1,96],Pa=[1,97],Qa=[1,98],Wa=[1,99],Db=[1,111],Eb=[1,100],Fb=[1,101],Gb=[1,102],Hb=[1,103],Ib=[1,104],Jb=[1,105],$a=[1,106],Kb=[1,107],Lb=[1,108],Mb=[1,109],fb=[1,110],ub=[1,31],vb=[1,32],wb=[1,33],Nb=[1,34],Ob=[1,35],Pb=[1,36],Qb=[1,37],Rb=[1,38],Sb=[1,47],Tb=[1,48],Ub=[1,49],Vb= [1,50],Wb=[1,51],Xb=[1,52],Yb=[1,53],Zb=[1,54],$b=[1,55],ac=[1,56],bc=[1,57],xb=[1,58],cc=[1,59],dc=[1,60],ec=[1,61],yb=[1,62],fc=[1,63],gc=[1,64],Ra=[1,65],Za=[1,66],gb=[1,67],ab=[1,68],bb=[1,69],Xa=[1,70],Ya=[1,71],zb=[1,72],Ab=[1,73],hb=[1,74],cb=[1,75],La=[1,76],ib=[1,77],Bb=[1,78],hc=[1,79],jb=[1,80],Ua=[1,81],kb=[1,82],lb=[1,39],Va=[1,40],mb=[1,41],nb=[1,42],ob=[1,43],pb=[1,44],ic=[1,45],qb=[1,46],rb=[1,116],db=[1,117],sb=[1,118],lc=[1,119],pc=[1,120],uc=[1,121],zc=[1,122],rc=[1,123],Ac=[1,124],Cb=[1,125],Gc=[1,126],Ic=[1,128],Hc=[1,127],nc=[1,129],Bc=[1,130],Cc=[1,131],Dc=[1,132],sc=[1,133],qc=[1,134],Ec=[1,135],vc=[1,136],wc=[1,137],xc=[1,138],yc=[1,139],tb=[5,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],xg=[1,140],vk=[1,150],yg=[5,11,12,17,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,54,55,71,72,74,75,76,81,82,96,97,98,99],Bi=[1,180],Ci=[5,12,17,42,43,44,45,54,96,97,98,99],Xe=[1,233],wf=[1,250],Di=[5,12,17,32,33,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],Fe=[5,12,17,36,37,38,39,40,41,42,43,44,45,46,47,48,54,71,72,74,75,76,81,82,96,97,98,99],qe=[2,37],Ye=[1,336],ke=[5,12,17,54,96,97,98,99],wk=[96,97],Fi={trace:function(){},Oc:{},Ro:{error:2,expressions:3,math:4,EOF:5,float_item:6,boolean_item:7,identifier_item:8,negated_identifier:9,string_item:10,"(":11,")":12,operator_expression:13,aggregation_function:14,scalar_operator:15,scalar_2_operator:16,",":17,scalar_n_operator:18,comma_values:19,scalar_function:20,scalar_2_function:21,scalar_n_functions:22,alias_functions:23,datetime_functions:24,case_function:25,cast_function:26,quantile_functions:27,native_function:28,misc_function_no_args:29,misc_function_one_arg:30,misc_function_n_args:31,"+":32,"-":33,"/":34,"*":35,"=":36,"!=":37,"<":38,"<=":39,">":40,">=":41,BETWEEN_OP:42,AND_OP:43,NOT_BETWEEN_OP:44,OR_OP:45,IS_NULL_OP:46,IS_TRUE_OP:47,IS_FALSE_OP:48,FLOAT_VALUE:49,STRING_VALUE:50,NATIVE_EXPR:51,NATIVE_AGGREGATE:52,misc_function_start:53,IDENTIFIER:54,DOT_OP:55,BOOLEAN_VALUE:56,token_item:57,ROUND:58,TRUNC:59,LN:60,LOG10:61,LOG:62,POW:63,EXP:64,LIKE:65,COUNT:66,DISTINCT:67,COUNT_DISTINCT_EST:68,NOT_OP:69,NOT_EQUAL_EXPR:70,LIKE_OP:71,NOT_LIKE_OP:72,IS_NOT_NULL:73,IS_NOT_NULL_OP:74,IS_NOT_TRUE_OP:75,IS_NOT_FALSE_OP:76,IF:77,IFNULL:78,NULLIF:79,COALESCE:80,IN_OP:81,NOT_IN_OP:82,NTH_QUANTILE:83,EXTRACT:84,DATE_TRUNC:85,DATETIME_TRUNC:86,TIMESTAMP_TRUNC:87,DATE_ADD:88,DATE_SUB:89,PARSETIME:90,FORMATTIME:91,TIMESTAMP:92,CAST:93,CASE:94,when_then_values:95,ELSE:96,END:97,WHEN:98,THEN:99,AVG:100,SUM:101,MIN:102,MAX:103,COUNT_DISTINCT:104,VARIANCE:105,STDDEV:106,HLL_COUNT_MERGE:107,ABS:108,SIGN:109,IS_INF:110,IS_NAN:111,SQRT:112,CEILING:113,FLOOR:114,COS:115,COSH:116,ACOS:117,ACOSH:118,SIN:119,SINH:120,ASIN:121,ASINH:122,TAN:123,TANH:124,ATAN:125,ATANH:126,IS_NULL:127,UNIX_MICROS:128,UNIX_MILLIS:129,TIMESTAMP_MICROS:130,TIMESTAMP_MILLIS:131,ENCODE_URI_COMPONENT:132,HLL_COUNT_EXTRACT:133,IEEE_DIVIDE:134,POWER:135,DIV:136,MOD:137,ATAN2:138,REGEXP_MATCH:139,GREATEST:140,LEAST:141,CONCAT:142,FORMAT:143,NOT_EXPR:144,EQUAL_EXPR:145,LESS_EXPR:146,LESS_OR_EQUAL_EXPR:147,GREATER_EXPR:148,GREATER_OR_EQUAL_EXPR:149,AND_EXPR:150,OR_EXPR:151,$accept:0,$end:1},ig:{2:"error",5:"EOF",11:"(",12:")",17:",",26:"cast_function",32:"+",33:"-",34:"/",35:"*",36:"=",37:"!=",38:"<",39:"<=",40:">",41:">=",42:"BETWEEN_OP",43:"AND_OP",44:"NOT_BETWEEN_OP",45:"OR_OP",46:"IS_NULL_OP",47:"IS_TRUE_OP",48:"IS_FALSE_OP",49:"FLOAT_VALUE",50:"STRING_VALUE",51:"NATIVE_EXPR",52:"NATIVE_AGGREGATE",54:"IDENTIFIER",55:"DOT_OP",56:"BOOLEAN_VALUE",58:"ROUND",59:"TRUNC",60:"LN",61:"LOG10",62:"LOG",63:"POW",64:"EXP",65:"LIKE",66:"COUNT",67:"DISTINCT",68:"COUNT_DISTINCT_EST",69:"NOT_OP",70:"NOT_EQUAL_EXPR",71:"LIKE_OP",72:"NOT_LIKE_OP",73:"IS_NOT_NULL",74:"IS_NOT_NULL_OP",75:"IS_NOT_TRUE_OP",76:"IS_NOT_FALSE_OP",77:"IF",78:"IFNULL",79:"NULLIF",80:"COALESCE",81:"IN_OP",82:"NOT_IN_OP",83:"NTH_QUANTILE",84:"EXTRACT",85:"DATE_TRUNC",86:"DATETIME_TRUNC",87:"TIMESTAMP_TRUNC",88:"DATE_ADD",89:"DATE_SUB",90:"PARSETIME",91:"FORMATTIME",92:"TIMESTAMP",93:"CAST",94:"CASE",96:"ELSE",97:"END",98:"WHEN",99:"THEN",100:"AVG",101:"SUM",102:"MIN",103:"MAX",104:"COUNT_DISTINCT",105:"VARIANCE",106:"STDDEV",107:"HLL_COUNT_MERGE",108:"ABS",109:"SIGN",110:"IS_INF",111:"IS_NAN",112:"SQRT",113:"CEILING",114:"FLOOR",115:"COS",116:"COSH",117:"ACOS",118:"ACOSH",119:"SIN",120:"SINH",121:"ASIN",122:"ASINH",123:"TAN",124:"TANH",125:"ATAN",126:"ATANH",127:"IS_NULL",128:"UNIX_MICROS",129:"UNIX_MILLIS",130:"TIMESTAMP_MICROS",131:"TIMESTAMP_MILLIS",132:"ENCODE_URI_COMPONENT",133:"HLL_COUNT_EXTRACT",134:"IEEE_DIVIDE",135:"POWER",136:"DIV",137:"MOD",138:"ATAN2",139:"REGEXP_MATCH",140:"GREATEST",141:"LEAST",142:"CONCAT",143:"FORMAT",144:"NOT_EXPR",145:"EQUAL_EXPR",146:"LESS_EXPR",147:"LESS_OR_EQUAL_EXPR",148:"GREATER_EXPR",149:"GREATER_OR_EQUAL_EXPR",150:"AND_EXPR",151:"OR_EXPR"},ik:[0,[3,2],[4,1],[4,1],[4,1],[4,1],[4,1],[4,3],[4,1],[4,4],[4,4],[4,6],[4,4],[4,4],[4,6],[4,4],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[4,1],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,3],[13,5],[13,5],[13,3],[13,3],[13,2],[13,2],[13,2],[6,2],[6,1],[10,1],[28,4],[28,4],[53,2],[29,2],[30,3],[31,3],[9,2],[8,1],[8,3],[7,1],[57,1],[19,3],[19,3],[23,4],[23,6],[23,4],[23,6],[23,4],[23,4],[23,4],[23,6],[23,6],[23,4],[23,6],[23,4],[23,5],[23,4],[23,2],[23,6],[23,3],[23,3],[23,4],[23,2],[23,2],[23,2],[23,8],[23,6],[23,6],[23,4],[23,5],[23,5],[23,5],[23,5],[27,8],[24,10],[24,10],[24,6],[24,6],[24,6],[24,8],[24,8],[24,8],[24,8],[24,8],[24,4],[24,6],[24,6],[25,5],[25,3],[95,4],[95,5],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[14,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[21,1],[21,1],[21,1],[21,1],[21,1],[21,1],[22,1],[22,1],[22,1],[22,1],[15,1],[16,1],[16,1],[16,1],[16,1],[16,1],[18,1],[18,1]],Th:function(va,oc,gd,Uc,hd,za){va=za.length-1;switch(hd){case 1:return za[va-1];case 7:this.qa=za[va-1];break;case 9:case 10:case 13:this.qa={type:"function",name:za[va-3].toUpperCase(),params:[za[va-1]]};break;case 11:case 14:this.qa={type:"function",name:za[va-5].toUpperCase(),params:[za[va-3],za[va-1]]};break;case 12:case 15:this.qa={type:"function",name:za[va-3].toUpperCase(),params:za[va-1]};break;case 25:case 26:case 27:case 28:this.qa={type:"function",name:za[va-1],params:[za[va-2],za[va]]};break;case 29:this.qa={type:"function",name:"EQUAL",params:[za[va-2],za[va]]};break;case 30:this.qa={type:"function",name:"NOT_EQUAL",params:[za[va-2],za[va]]};break;case 31:this.qa={type:"function",name:"LESS",params:[za[va-2],za[va]]};break;case 32:this.qa={type:"function",name:"LESS_OR_EQUAL",params:[za[va-2],za[va]]};break;case 33:this.qa={type:"function",name:"GREATER",params:[za[va-2],za[va]]};break;case 34:this.qa={type:"function",name:"GREATER_OR_EQUAL",params:[za[va-2],za[va]]};break;case 35:this.qa={type:"function",name:"BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 36:this.qa={type:"function",name:"NOT BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 37:this.qa={type:"function",name:"AND",params:[za[va-2],za[va]]};break;case 38:this.qa={type:"function",name:"OR",params:[za[va-2],za[va]]};break;case 39:this.qa={type:"function",name:"IS NULL",params:[za[va-1]]};break;case 40:this.qa={type:"function",name:"IS TRUE",params:[za[va-1]]};break;case 41:this.qa={type:"function",name:"IS FALSE",params:[za[va-1]]};break;case 42:this.qa={type:"number",value:+-za[va]};break;case 43:this.qa={type:"number",value:+za[va]};break;case 44:this.qa={type:"string",value:Qy(za[va].substring(1,za[va].length-1))};break;case 45:case 46:this.qa={type:"function",name:za[va-3],params:[za[va-1]]};break;case 47:hd=za[va-1].pathParts.slice();if(hd.length>2)throw Error("Too many path parts.");oc=hd.pop();this.qa={type:"function",namespace:hd.pop(),name:oc,fullName:za[va-1].column};break;case 48:za[va-1].params=[];this.qa=za[va-1];break;case 49:za[va-2].params=[za[va-1]];this.qa=za[va-2];break;case 50:hd=[];for(oc=0;oc2&&ee.push("'"+this.ig[qh]+"'");var Hn=Jd.hh?"Parse error on line "+(ph+1)+":\n"+Jd.hh()+"\nExpecting "+ee.join(", ")+", got '"+(this.ig[Gd]||Gd)+"'":"Parse error on line "+(ph+1)+": Unexpected "+(Gd==1?"end of input":"'"+(this.ig[Gd]|| Gd)+"'");this.parseError(Hn,{text:Jd.match,dl:this.ig[Gd]||Gd,line:Jd.Xb,dr:yf,Vq:ee})}if($d[0]instanceof Array&&$d.length>1)throw Error("Parse Error: multiple actions possible at state: "+ye+", token: "+Gd);switch($d[0]){case 1:oc.push(Gd);gd.push(Jd.Yb);Uc.push(Jd.Ua);oc.push($d[1]);Gd=null;Ei?(Gd=Ei,Ei=null):(xk=Jd.Ud,za=Jd.Yb,ph=Jd.Xb,yf=Jd.Ua,yk>0&&yk--);break;case 2:ee=this.ik[$d[1]][1];Uf.qa=gd[gd.length-ee];Uf.Vi={de:Uc[Uc.length-(ee||1)].de,Id:Uc[Uc.length-1].Id,nd:Uc[Uc.length-(ee||1)].nd,vd:Uc[Uc.length-1].vd};Gn&&(Uf.Vi.range=[Uc[Uc.length-(ee||1)].range[0],Uc[Uc.length-1].range[1]]);ye=this.Th.apply(Uf,[za,xk,ph,xf,$d[1],gd,Uc].concat(Fn));if(typeof ye!=="undefined")return ye;ee&&(oc=oc.slice(0,-1*ee*2),gd=gd.slice(0,-1*ee),Uc=Uc.slice(0,-1*ee));oc.push(this.ik[$d[1]][0]);gd.push(Uf.qa);Uc.push(Uf.Vi);$d=hd[oc[oc.length-2]][oc[oc.length-1]];oc.push($d);break;case 3:return!0}}}};Fi.Pj=function(){return{Oi:1,parseError:function(va,oc){if(this.Oc.dk)this.Oc.dk.parseError(va,oc);else throw Error(va);},Do:function(va,oc){this.Oc=oc||this.Oc||{};this.ac=va;this.vf=this.og=this.done=!1;this.Xb=this.Ud=0;this.Yb=this.Kc=this.match="";this.Ib=["INITIAL"];this.Ua={de:1,nd:0,Id:1,vd:0};this.options.Sf&&(this.Ua.range=[0,0]);this.offset=0;return this},input:function(){var va=this.ac[0];this.Yb+=va;this.Ud++;this.offset++;this.match+=va;this.Kc+=va;va.match(/(?:\r\n?|\n).*/g)?(this.Xb++,this.Ua.Id++):this.Ua.vd++;this.options.Sf&&this.Ua.range[1]++;this.ac=this.ac.slice(1);return va},fp:function(va){var oc=va.length,gd=va.split(/(?:\r\n?|\n)/g);this.ac=va+this.ac;this.Yb=this.Yb.substr(0,this.Yb.length-oc);this.offset-=oc;va=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.Kc=this.Kc.substr(0,this.Kc.length-1);gd.length-1&&(this.Xb-=gd.length-1);var Uc=this.Ua.range;this.Ua={de:this.Ua.de,Id:this.Xb+1,nd:this.Ua.nd,vd:gd?(gd.length===va.length?this.Ua.nd:0)+va[va.length-gd.length].length-gd[0].length:this.Ua.nd-oc};this.options.Sf&&(this.Ua.range= [Uc[0],Uc[0]+this.Ud-oc]);this.Ud=this.Yb.length;return this},gr:function(){this.vf=!0;return this},reject:function(){if(this.options.Zi)this.og=!0;else return this.parseError("Lexical error on line "+(this.Xb+1)+". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n"+this.hh(),{text:"",dl:null,line:this.Xb});return this},Zq:function(va){this.fp(this.match.slice(va))},ao:function(){var va=this.Kc.substr(0,this.Kc.length-this.match.length);return(va.length>20?"...":"")+va.substr(-20).replace(/\n/g,"")},gp:function(){var va=this.match;va.length<20&&(va+=this.ac.substr(0,20-va.length));return(va.substr(0,20)+(va.length>20?"...":"")).replace(/\n/g,"")},hh:function(){var va=this.ao(),oc=Array(va.length+1).join("-");return va+this.gp()+"\n"+oc+"^"},Zk:function(va,oc){var gd;if(this.options.Zi){var Uc={Xb:this.Xb,Ua:{de:this.Ua.de,Id:this.Id,nd:this.Ua.nd,vd:this.Ua.vd},Yb:this.Yb,match:this.match,matches:this.matches,Kc:this.Kc,Ud:this.Ud,offset:this.offset,vf:this.vf,ac:this.ac,Oc:this.Oc,Ib:this.Ib.slice(0),done:this.done};this.options.Sf&&(Uc.Ua.range=this.Ua.range.slice(0))}if(gd=va[0].match(/(?:\r\n?|\n).*/g))this.Xb+=gd.length;this.Ua={de:this.Ua.Id,Id:this.Xb+1,nd:this.Ua.vd,vd:gd?gd[gd.length-1].length-gd[gd.length-1].match(/\r?\n?/)[0].length:this.Ua.vd+va[0].length};this.Yb+=va[0];this.match+=va[0];this.matches=va;this.Ud=this.Yb.length;this.options.Sf&&(this.Ua.range=[this.offset,this.offset+=this.Ud]);this.og=this.vf=!1;this.ac=this.ac.slice(va[0].length);this.Kc+=va[0];va=this.Th.call(this,this.Oc,this,oc,this.Ib[this.Ib.length-1]);this.done&&this.ac&&(this.done=!1);if(va)return va;if(this.og)for(var hd in Uc)this[hd]=Uc[hd];return!1},next:function(){if(this.done)return this.Oi;this.ac||(this.done=!0);var va;this.vf||(this.match=this.Yb="");for(var oc=this.tl(),gd=0;gdUc[0].length)){var Uc=va;var hd=gd;if(this.options.Zi){Uc=this.Zk(va,oc[gd]);if(Uc!==!1)return Uc;if(this.og)Uc=!1;else return!1}else if(!this.options.flex)break}return Uc?(Uc=this.Zk(Uc,oc[hd]),Uc!==!1?Uc:!1):this.ac===""?this.Oi:this.parseError("Lexical error on line "+(this.Xb+1)+". Unrecognized text.\n"+ this.hh(),{text:"",dl:null,line:this.Xb})},Oj:function(){var va=this.next();return va?va:this.Oj()},aj:function(va){this.Ib.push(va)},co:function(){return this.Ib.length-1>0?this.Ib.pop():this.Ib[0]},tl:function(){return this.Ib.length&&this.Ib[this.Ib.length-1]?this.conditions[this.Ib[this.Ib.length-1]].rules:this.conditions.INITIAL.rules},ur:function(va){va=this.Ib.length-1-Math.abs(va||0);return va>=0?this.Ib[va]:"INITIAL"},pushState:function(va){this.aj(va)},sr:function(){return this.Ib.length},options:{flex:!0,"case-insensitive":!0},Th:function(va,oc,gd){switch(gd){case 1:return 67;case 2:return 144;case 3:return 150;case 4:return 151;case 5:return 145;case 6:return 70;case 7:return 146;case 8:return 147;case 9:return 148;case 10:return 149;case 11:return 127;case 12:return 73;case 13:return 43;case 14:return 45;case 15:return 65;case 16:return 51;case 17:return 52;case 18:return 93;case 19:return 128;case 20:return 129;case 21:return 130;case 22:return 131;case 23:return 92;case 24:return 100;case 25:return 66;case 26:return 103;case 27:return 102;case 28:return 101;case 29:return 105;case 30:return 106;case 31:return 107;case 32:return 108;case 33:return 109;case 34:return 110;case 35:return 111;case 36:return 134;case 37:return 112;case 38:return 63;case 39:return 135;case 40:return 64;case 41:return 60;case 42:return 62;case 43:return 61;case 44:return 140;case 45:return 141;case 46:return 136;case 47:return 137;case 48:return 58;case 49:return 59;case 50:return 113;case 51:return 113;case 52:return 114;case 53:return 115;case 54:return 116;case 55:return 117;case 56:return 118;case 57:return 119;case 58:return 120;case 59:return 121;case 60:return 122;case 61:return 123;case 62:return 124;case 63:return 125;case 64:return 126;case 65:return 138;case 66:return 133;case 67:return 142;case 68:return 139;case 69:return 143;case 70:return 84;case 71:return 85;case 72:return 86;case 73:return 87;case 74:return 88;case 75:return 89;case 76:return 32;case 77:return 33;case 78:return 35;case 79:return 34;case 80:return 69;case 81:return 43;case 82:return 45;case 83:return 38;case 84:return 39;case 85:return 40;case 86:return 41;case 87:return 36;case 88:return 37;case 89:return 37;case 90:return 55;case 91:return 42;case 92:return 44;case 93:return 71;case 94:return 72;case 95:return 46;case 96:return 74;case 97:return 47;case 98:return 75;case 99:return 48;case 100:return 76;case 101:return 81;case 102:return 82;case 103:return this.aj("CASE_MODE"),94;case 104:return 98;case 105:return 99;case 106:return 96;case 107:return this.co(),97;case 108:return 80;case 109:return 77;case 110:return 78;case 111:return 79;case 112:return 104;case 113:return 68;case 114:return 90;case 115:return 91;case 116:return 83;case 117:return 132;case 118:return 11;case 119:return 12;case 120:return 17;case 121:return"'";case 122:return'"';case 123:return'"';case 124:return 49;case 125:return 56;case 126:return 54;case 127:return 50;case 128:return 50;case 129:return 54;case 130:return 5;case 131:return"INVALID";case 132:console.log(oc.Yb)}},rules:[/^(?:\s+)/i,/^(?:DISTINCT)/i,/^(?:NOT(?=[(]))/i,/^(?:AND(?=[(]))/i,/^(?:OR(?=[(]))/i,/^(?:EQUAL(?=[(]))/i,/^(?:NOT_EQUAL(?=[(]))/i,/^(?:LESS(?=[(]))/i,/^(?:LESS_OR_EQUAL(?=[(]))/i,/^(?:GREATER(?=[(]))/i,/^(?:GREATER_OR_EQUAL(?=[(]))/i,/^(?:IS NULL(?=[(]))/i,/^(?:IS NOT NULL(?=[(]))/i,/^(?:&&)/i,/^(?:\|\|)/i,/^(?:LIKE(?=[(]))/i,/^(?:NATIVE_EXPR(?=\s*[(]))/i,/^(?:NATIVE_AGGREGATE(?=\s*[(]))/i,/^(?:CAST(?=\s*[(]))/i,/^(?:UNIX_MICROS(?=\s*[(]))/i,/^(?:UNIX_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP_MICROS(?=\s*[(]))/i,/^(?:TIMESTAMP_MILLIS(?=\s*[(]))/i,/^(?:TIMESTAMP(?=\s*[(]))/i,/^(?:AVG(?=\s*[(]))/i,/^(?:COUNT(?=\s*[(]))/i,/^(?:MAX(?=\s*[(]))/i,/^(?:MIN(?=\s*[(]))/i,/^(?:SUM(?=\s*[(]))/i,/^(?:VARIANCE(?=\s*[(]))/i,/^(?:STDDEV(?=\s*[(]))/i,/^(?:HLL_COUNT\.MERGE(?=\s*[(]))/i,/^(?:ABS(?=\s*[(]))/i,/^(?:SIGN(?=\s*[(]))/i,/^(?:IS_INF(?=\s*[(]))/i,/^(?:IS_NAN(?=\s*[(]))/i,/^(?:IEEE_DIVIDE(?=\s*[(]))/i,/^(?:SQRT(?=\s*[(]))/i,/^(?:POW(?=\s*[(]))/i,/^(?:POWER(?=\s*[(]))/i,/^(?:EXP(?=\s*[(]))/i,/^(?:LN(?=\s*[(]))/i,/^(?:LOG(?=\s*[(]))/i,/^(?:LOG10(?=\s*[(]))/i,/^(?:GREATEST(?=\s*[(]))/i,/^(?:LEAST(?=\s*[(]))/i,/^(?:DIV(?=\s*[(]))/i,/^(?:MOD(?=\s*[(]))/i,/^(?:ROUND(?=\s*[(]))/i,/^(?:TRUNC(?=\s*[(]))/i,/^(?:CEIL(?=\s*[(]))/i,/^(?:CEILING(?=\s*[(]))/i,/^(?:FLOOR(?=\s*[(]))/i,/^(?:COS(?=\s*[(]))/i,/^(?:COSH(?=\s*[(]))/i,/^(?:ACOS(?=\s*[(]))/i,/^(?:ACOSH(?=\s*[(]))/i,/^(?:SIN(?=\s*[(]))/i,/^(?:SINH(?=\s*[(]))/i,/^(?:ASIN(?=\s*[(]))/i,/^(?:ASINH(?=\s*[(]))/i,/^(?:TAN(?=\s*[(]))/i,/^(?:TANH(?=\s*[(]))/i,/^(?:ATAN(?=\s*[(]))/i,/^(?:ATANH(?=\s*[(]))/i,/^(?:ATAN2(?=\s*[(]))/i,/^(?:HLL_COUNT\.EXTRACT(?=\s*[(]))/i,/^(?:CONCAT(?=\s*[(]))/i,/^(?:REGEXP_MATCH(?=\s*[(]))/i,/^(?:FORMAT(?=\s*[(]))/i,/^(?:EXTRACT(?=\s*[(]))/i,/^(?:DATE_TRUNC(?=\s*[(]))/i,/^(?:DATETIME_TRUNC(?=\s*[(]))/i,/^(?:TIMESTAMP_TRUNC(?=\s*[(]))/i,/^(?:DATE_ADD(?=\s*[(]))/i,/^(?:DATE_SUB(?=\s*[(]))/i,/^(?:\+)/i,/^(?:-)/i,/^(?:\*)/i,/^(?:\/)/i,/^(?:NOT)/i,/^(?:AND)/i,/^(?:OR)/i,/^(?:<)/i,/^(?:<=)/i,/^(?:>)/i,/^(?:>=)/i,/^(?:=)/i,/^(?:!=)/i,/^(?:<>)/i,/^(?:\.)/i,/^(?:BETWEEN)/i,/^(?:NOT BETWEEN)/i,/^(?:LIKE)/i,/^(?:NOT LIKE)/i,/^(?:IS NULL)/i,/^(?:IS NOT NULL)/i,/^(?:IS TRUE)/i,/^(?:IS NOT TRUE)/i,/^(?:IS FALSE)/i,/^(?:IS NOT FALSE)/i,/^(?:IN)/i,/^(?:NOT IN)/i,/^(?:CASE)/i,/^(?:WHEN)/i,/^(?:THEN)/i,/^(?:ELSE)/i,/^(?:END)/i,/^(?:COALESCE(?=\s*[(]))/i,/^(?:IF(?=\s*[(]))/i,/^(?:IFNULL(?=\s*[(]))/i,/^(?:NULLIF(?=\s*[(]))/i,/^(?:COUNT_DISTINCT(?=\s*[(]))/i,/^(?:COUNT_DISTINCT_EST(?=\s*[(]))/i,/^(?:PARSETIME(?=\s*[(]))/i,/^(?:FORMATTIME(?=\s*[(]))/i,/^(?:NTH_QUANTILE(?=\s*[(]))/i,/^(?:ENCODE_URI_COMPONENT(?=\s*[(]))/i,/^(?:\()/i,/^(?:\))/i,/^(?:,)/i,/^(?:')/i,/^(?:")/i,/^(?:")/i,/^(?:[0-9]*(\.[0-9]*)?([eE]-?[0-9]+)?\b)/i,/^(?:TRUE|FALSE)/i,/^(?:[a-zA-Z_][a-zA-Z0-9_]*\b)/i,/^(?:["](\\.|[^"])*["])/i,/^(?:['](\\.|[^'])*['])/i,/^(?:[`](\\.|[^`])*[`])/i,/^(?:$)/i,/^(?:.)/i,/^(?:.)/i],conditions:{CASE_MODE:{rules:[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,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,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0},INITIAL:{rules:[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,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,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132],inclusive:!0}}}}();b.prototype=Fi;Fi.v=b;return new b}();function Ty(a,b,c){if(c!=null&&typeof c!=="number")throw Error("Provided value for "+b+' to "'+a+'" was of type '+typeof c+" but a number was expected.");} function Uy(a,b,c){if(c!=null&&(typeof c!=="number"||!isNaN(c))&&isFinite(c)&&c!==parseInt(c,10))throw Error("Provided value for "+b+' to "'+a+'" was not an integer.');} function Vy(a,b,c,e,f){if(c!=null&&!(isNaN(c)||c>=e&&c<=f))throw Error("Value provided for "+b+' to "'+a+'" was out of the allowed range of ['+e+", "+f+"].");} function Wy(a,b){Ty("TRUNC(X, Y)","X",a);Ty("TRUNC(X, Y)","Y",b);Uy("TRUNC(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b))return NaN;if(!isFinite(a))return+a;a=a>=0?Number(Math.floor(a+"e"+b)):Number(Math.ceil(a+"e"+b));return b>=0?Number(a+"e-"+b):Number(a+"e"+-b)} function Xy(a,b){Ty("LOG(X, Y)","X",a);Ty("LOG(X, Y)","X",b);return a==null||b==null?null:+a/+b} ;function Yy(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if(typeof e=="undefined")throw Error("[goog.string.format] Template required");return e.replace(/%([0\- \+]*)(\d+)?(\.(\d+))?([%sfdiu])/g,function(f,k,n,r,t,y,E,ma){if(y=="%")return"%";var na=c.shift();if(typeof na=="undefined")throw Error("[goog.string.format] Not enough arguments");arguments[0]=na;return Zy[y].apply(null,arguments)})} var Zy={s:function(a,b,c){return isNaN(c)||c==""||a.length>=Number(c)?a:a=b.indexOf("-",0)>-1?a+kh(" ",Number(c)-a.length):kh(" ",Number(c)-a.length)+a},f:function(a,b,c,e,f){e=a.toString();isNaN(f)||f==""||(e=parseFloat(a).toFixed(f));var k=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(e=k+e);if(isNaN(c)||e.length>=Number(c))return e;e=isNaN(f)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(f);a=Number(c)-e.length-k.length;b.indexOf("-",0)>=0?e=k+e+kh(" ",a):(b=b.indexOf("0",0)>=0?"0":" ",e=k+kh(b,a)+e);return e},d:function(a,b,c,e,f,k,n,r){return Zy.f(parseInt(a,10),b,c,e,0,k,n,r)}};Zy.i=Zy.d;Zy.u=Zy.d;function $y(a,b){if(a==null)return!1;if(b.length===0)return!0;b=Xc(b);for(var c=b.next();!c.done;c=b.next())if(c=c.value,a===c||typeof a!==typeof c)return!1;return!0} function az(a,b,c){if(b==null||c==null)return!1;if(typeof b!=typeof c)throw Error("Argument type mismatch in "+a+' comparison function: parameter 1 "'+b+'" is type '+typeof b+' but param2 "'+c+'" is type '+typeof c+".");switch(a){case "EQUAL":return b===c;case "NOT_EQUAL":return b!==c;case "LESS":return bc;case "GREATER_OR_EQUAL":return b>=c;default:throw Error('Unhandled binary operator "'+a+'".');}} function bz(a,b){var c=b[0];if(b.some(function(e){return e==null}))return null;switch(a){case "+":for(a=1;ac)throw Error("CAST result is out of range for integer type.");return e} function iz(a,b,c){switch(typeof a){case "number":var e=a;break;case "boolean":e=a?1:0;break;case "string":if(a.toLowerCase()==="inf"||a.toLowerCase()==="+inf"){e=Infinity;break}else if(a.toLowerCase()==="-inf")e=-Infinity;else if(a.toLowerCase()==="nan")e=NaN;else if(e=Number(a),isNaN(e))throw Error('CAST from string to a floating point value failed for "'+a+'" because of non-numeric characters.');if(isNaN(e)&&a.toLowerCase()!=="nan")throw Error('CAST from string to a floating point value failed for "'+ a+'".');break;default:throw Error("CAST from "+typeof a+" to a floating point value is not supported.");}if(b!=null&&c!=null&&isFinite(e)&&(ec))throw Error("CAST result "+e+" is out of range for target type.");return e} function jz(a){if(typeof a==="number"){if(a===Infinity)return"inf";if(a===-Infinity)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function kz(a,b){var c=lz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Xc(Sh(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new mz(a,k,b[f]))}} function mz(a,b,c){this.O=a;this.N=b;this.v=c} mz.prototype.call=function(){return this.apply(ud.apply(0,arguments))};mz.prototype.apply=function(a){var b=a;b=b===void 0?[]:b;var c=this.v.va,e=this.v.wa;if(c&&b.lengthe)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.yb?this.v.yb.apply(null,a):this.v.ua.apply(null,a)};mz.prototype.Ma=function(a){return this.v.Ma?this.v.Ma.call(null,a):gz(this.O,this.N,a)};var lz=new function(){this.v=new Map};kz("",{AVG:{yb:Lp},COUNTIF:{yb:Op},SUM:{yb:Mp},MIN:{yb:Pp},MAX:{yb:Qp},COUNT:{yb:Np},COUNT_DISTINCT:{yb:Rp},NTH_QUANTILE:{yb:Sp},VARIANCE:{yb:Up},STDDEV:{yb:Vp},"HLL_COUNT.MERGE":{yb:Wp},"HLL_COUNT.EXTRACT":{va:1,wa:1,ua:function(){throw Error("HLL_COUNT.EXTRACT is not implemented on the client.");}},ABS:{va:1,wa:1,ua:function(a){Ty("ABS(X)","X",a);return a!=null?Math.abs(+a):null}},SIGN:{va:1,wa:1,ua:function(a){Ty("SIGN(X)","X",a);var b=Math.sign||function(c){c=+c;return c===0||isNaN(c)?c:c>0?1:-1};return a!=null?b(+a):null}},IS_INF:{va:1,wa:1,ua:function(a){Ty("IS_INF(X)","X",a);return a!=null?!isFinite(+a)&&!isNaN(a):null},uc:"IS_INFINITY"},IS_NAN:{va:1,wa:1,ua:function(a){Ty("IS_NAN(X)","X",a);return a!=null?isNaN(+a):null},uc:"IS_NAN"},IEEE_DIVIDE:{va:2,wa:2,ua:Xy},SQRT:{va:1,wa:1,ua:function(a){Ty("SQRT(X)","X",a);Vy("SQRT(X)","X",a,0,Infinity);return a!=null?Math.sqrt(+a):null}},POWER:{va:2,wa:2,ua:function(a,b){Ty("POWER(X, Y)","X",a);Ty("POWER(X, Y)","Y",b);if(a==null||b==null)return null;if(a!==1&&b!==0&&(a!==-1||b!==Infinity&&b!==-Infinity)){if(Math.abs(a)<1&&b===-Infinity)return Infinity;if(Math.abs(a)>1&&b===-Infinity||Math.abs(a)<1&&b===Infinity||a===-Infinity&&b<0)return 0;if(a===-Infinity&&b>0)return b%2===1?-Infinity:Infinity;if(a===Infinity&&b<0)return 0;if(a===Infinity&&b>0)return Infinity}else return 1;return a!=null?Math.pow(+a,+b):null}},LOG:{va:2,wa:2,ua:function(a,b){Ty("LOG(X, Y)","X",a);Ty("LOG(X, Y)","Y",b);if(a==null||b==null)return null;if(isNaN(a)||isNaN(b)||a===-Infinity||b===Infinity)return NaN;if(a===Infinity&&b>0&&b<1)return-Infinity;if(a===Infinity&&b>1)return Infinity;Vy("LOG(X, Y)","X",a,0,Infinity);Vy("LOG(X, Y)","Y",a,0,Infinity);if(b===1)throw Error("Value provided for Y to LOG(X, Y) was 1 which is not allowed");return Math.log(+a)/Math.log(+b)}},GREATEST:{va:2,ua:function(a){for(var b=-Infinity,c=0;c=0?Number(Math.round(a+"e"+b)+"e-"+b):Number(Math.round(a+"e"+b)+"e"+-b):+a}},TRUNC:{va:2,wa:2,ua:Wy},CEILING:{va:1,wa:1,ua:function(a){Ty("CEILING(X)","X",a);return a!=null?Math.ceil(+a):null}},FLOOR:{va:1,wa:1,ua:function(a){Ty("FLOOR(X)","X",a);return a!=null?Math.floor(+a):null}},COS:{va:1,wa:1,ua:function(a){Ty("COS(X)","X",a);return a!=null?Math.cos(+a):null}},COSH:{va:1,wa:1,ua:function(a){Ty("COSH(X)","X",a);var b=Math.cosh||function(c){c=Math.exp(c);return(c+1/c)/2};return a!=null?b(+a):null}},ACOS:{va:1,wa:1,ua:function(a){Ty("ACOS(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Vy("ACOS(X)","X",a,-1,1);return a!=null?Math.acos(+a):null}},ACOSH:{va:1,wa:1,ua:function(a){Ty("ACOSH(X)","X",a);if(a===-Infinity)return NaN;Vy("ACOSH(X)","X",a,1,Infinity);var b=Math.acosh||function(c){return Math.log(c+Math.sqrt(c*c-1))};return a!=null?b(+a):null}},SIN:{va:1,wa:1,ua:function(a){Ty("SIN(X)","X",a);return a!=null?Math.sin(+a):null}},SINH:{va:1,wa:1,ua:function(a){Ty("SINH(X)","X",a);var b=Math.sinh||function(c){return(Math.exp(c)-Math.exp(-c))/2};return a!=null?b(+a):null}},ASIN:{va:1,wa:1,ua:function(a){Ty("ASIN(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;Vy("ASIN(X)","X",a,-1,1);return a!=null?Math.asin(+a):null}},ASINH:{va:1,wa:1,ua:function(a){Ty("ASINH(X)","X",a);var b=Math.asinh||function(c){return c===-Infinity?c:Math.log(c+Math.sqrt(c*c+1))};return a!=null?b(+a):null}},TAN:{va:1,wa:1,ua:function(a){Ty("TAN(X)","X",a);return a!=null?Math.tan(+a):null}},TANH:{va:1,wa:1,ua:function(a){Ty("TANH(X)","X",a);var b=Math.tanh||function(c){return c===Infinity?1:c===-Infinity?-1:(Math.exp(c)-Math.exp(-c))/(Math.exp(c)+Math.exp(-c))};return a!=null?b(+a):null}},ATAN:{va:1,wa:1,ua:function(a){Ty("ATAN(X)","X",a);return a!=null?Math.atan(+a):null}},ATANH:{va:1,wa:1,ua:function(a){Ty("ATANH(X)","X",a);if(a===Infinity||a===-Infinity)return NaN;if(a!=null&&!(isNaN(a)||a>-1&&a<1))throw Error('Value provided for X to "ATANH(X)" was out of the allowed range of (-1, 1).');var b=Math.atanh||function(c){return Math.log((1+c)/(1-c))/2};return a!=null?b(+a):null}},ATAN2:{va:2,wa:2,ua:function(a,b){Ty("ATAN(Y, X)","X",a);Ty("ATAN(Y, X)","Y",b);return a==null||b==null?null:Math.atan2(+a,+b)}},REGEXP_MATCH:{va:2,wa:2,ua:function(a,b){if(typeof a!=="string"||typeof b!=="string")return null;if(b.indexOf("(?i)")==0){b=b.substring(4);var c="i"}else b.indexOf("(?is)")==0&&(b=b.substring(5),c="i");return RegExp(b,c).test(a)},uc:"REGEX"},ENCODE_URI_COMPONENT:{va:1,wa:1,ua:function(a){return typeof a!=="string"?null:encodeURIComponent(a)}},FORMAT:{va:2,wa:void 0,ua:function(a){return arguments.length<2?null:Yy.apply(null,arguments)}},CONCAT:{va:2,wa:void 0,ua:function(a){for(var b="",c=0;ca||a>c},Ma:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},uc:"NOT_BETWEEN"},CAST:{va:2,wa:2,ua:function(a,b){if(a==null)return null;switch(b.toUpperCase()){case "INT32":return hz(a,-2147483648,2147483647);case "INT64":return hz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return hz(a,0,1.8446744073709552E19);case "FLOAT":return iz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return iz(a);case "BOOL":return mr(a);case "STRING":return jz(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Ma:function(a){if(a.length!==2)throw Error("Expected two parameters for cast.");var b=a[1].replace(/"/g,"");return"CAST("+a[0]+" AS "+b+")"}},UNIX_MICROS:{va:1,wa:1,ua:function(a){return a}},UNIX_MILLIS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MICROS:{va:1,wa:1,ua:function(a){return a}},TIMESTAMP_MILLIS:{va:1,wa:1,ua:function(a){return 1E3*a}},TIMESTAMP_SECONDS:{va:1,wa:1,ua:function(a){return 1E6*a}},TIMESTAMP:{va:1,wa:2,ua:tq},DATE:{va:1,wa:2,ua:function(a,b){return uq(a,"DAY",b)}},DATETIME:{va:1,wa:1,ua:tq},AND:{va:2,ua:function(){return cz("AND",ud.apply(0,arguments))},Ma:function(a){return dz(" AND ",a)}},OR:{va:2,ua:function(){return cz("OR",ud.apply(0,arguments))},Ma:function(a){return dz(" OR ",a)}},"+":{va:2,ua:function(){return bz("+",ud.apply(0,arguments))},Ma:function(a){return dz("+",a)}},"-":{va:2,ua:function(){return bz("-",ud.apply(0,arguments))},Ma:function(a){return dz("-",a)}},"*":{va:2,ua:function(){return bz("*",ud.apply(0,arguments))},Ma:function(a){return dz("*",a)}},"/":{va:2,ua:function(){return bz("/",ud.apply(0,arguments))},Ma:function(a){return dz("/",a)}},NOT:{va:1,wa:1,ua:function(a){return a==null||typeof a!=="boolean"?null:a===!1},Ma:function(a){if(a.length!==1)throw Error("Expected one parameter for NOT");return"(NOT "+a[0]+")"}},EQUAL:{va:2,wa:2,ua:function(a,b){return az("EQUAL",a,b)},Ma:function(a){return dz("=",a)},uc:"="},NOT_EQUAL:{va:2,wa:2,ua:function(a,b){return az("NOT_EQUAL",a,b)},Ma:function(a){return dz("!=",a)},uc:"!="},LESS:{va:2,wa:2,ua:function(a,b){return az("LESS",a,b)},Ma:function(a){return dz("<",a)},uc:"<"},LESS_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return az("LESS_OR_EQUAL",a,b)},Ma:function(a){return dz("<=",a)},uc:"<="},GREATER:{va:2,wa:2,ua:function(a,b){return az("GREATER",a,b)},Ma:function(a){return dz(">",a)},uc:">"},GREATER_OR_EQUAL:{va:2,wa:2,ua:function(a,b){return az("GREATER_OR_EQUAL",a,b)},Ma:function(a){return dz(">=",a)},uc:">="},NATIVE_EXPR:{va:1,wa:1,ua:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{va:1,wa:1,yb:function(){throw Error("NATIVE_AGGREGATE not yet supported.");}},TO_JSON_STRING:{va:1,wa:2,ua:function(a,b){return b?JSON.stringify(a,null,2):JSON.stringify(a)}}});kz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{yb:Tp},EXTRACT_POINT_DOUBLE:{ua:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{yb:Tp}});function nz(){this.ma={};this.ta={};this.oa={};this.ka=[];this.na={};this.ha=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=nz.prototype;w.Zj=function(a,b){this.O.push({zf:a,order:b?b:"ASC"});return this};w.Kl=function(){this.O=[];return this};w.Gf=function(){return this.O};w.qe=function(a){this.O=a.slice()};w.Xn=function(a,b,c,e){a={zf:a,measure:c,tr:e||""};typeof b==="function"?a.yb=b:a.Wq=b;this.ya.push(a);return this};w.Yn=function(a){this.N=a;return this};w.Bl=function(a){Array.isArray(a)?Qe(a,function(b){oz(this,b,{Cd:"decimal",jf:null})},this):oz(this,a,{Cd:"decimal",jf:null});return this};w.Al=function(a){Array.isArray(a)?Qe(a,function(b){oz(this,b,{Cd:"boolean",jf:null})},this):oz(this,a,{Cd:"boolean",jf:null});return this};w.Ij=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Cd)a=a.Cd,b=!!a&&Xq[a].kc==="number";return b?!0:!1};function oz(a,b,c){a.v[b]?(c.Cd&&(a.v[b].Cd=c.Cd),c.jf&&(a.v[b].jf=c.jf)):a.v[b]=c} w.wl=function(a,b){this.ma[a]=b;return this};w.Rl=function(a,b){this.ta[a]=b;return this};w.Sl=function(a,b){this.oa[a]=b;delete this.na[a];return this};w.An=function(a){return this.oa[a]||this.na[a]||this.ma[a]||this.N===a?!0:Pe(this.ka,a)>=0};w.on=function(a){if(a==null||a==void 0)return this;typeof a==="string"&&(a=[a]);for(var b=0;b=0||this.ka.push(a[b]);return this};w.yl=function(a,b,c){b=b?b:pz;this.na[c?c:"aggregatedValue"]={measure:a,yb:b};return this};w.Qj=function(){return this};w.Zn=function(a,b){this.Qj(a);this.Zj(b,"DESC");return this};w.Ml=function(a,b){this.ha.push({zf:a,value:b,operator:"="});return this};w.filter=function(a,b,c){this.ha.push(kr(a,b,c));return this};w.ro=function(){return this};w.Gm=function(){return this.ha};w.Jl=function(){this.ha=[];return this};w.Im=function(){var a=this.ka.slice(0);!this.N||Pe(a,this.N)>=0||df(a,0,0,this.N);return a};Od("aplos.data.Projection",nz);nz.prototype.getHierarchy=nz.prototype.Im;nz.prototype.clearFilters=nz.prototype.Jl;nz.prototype.getFilters=nz.prototype.Gm;nz.prototype.setAllowCachedSince=nz.prototype.ro;nz.prototype.filter=nz.prototype.filter;nz.prototype.columnEquals=nz.prototype.Ml;nz.prototype.onlyTop=nz.prototype.Zn;nz.prototype.limit=nz.prototype.Qj;nz.prototype.aggregate=nz.prototype.yl;nz.prototype.on=nz.prototype.on;nz.prototype.hasOutputColumn=nz.prototype.An;nz.prototype.derivePostAggregation=nz.prototype.Sl;nz.prototype.deriveColumn=nz.prototype.Rl;nz.prototype.addExpression=nz.prototype.wl;nz.prototype.asBoolean=nz.prototype.Al;nz.prototype.asNumber=nz.prototype.Bl;nz.prototype.oneSeriesPer=nz.prototype.Yn;nz.prototype.oneColumnPer=nz.prototype.Xn;nz.prototype.setOrdering=nz.prototype.qe;nz.prototype.clearOrdering=nz.prototype.Kl;nz.prototype.orderBy=nz.prototype.Zj;function qz(){var a=a===void 0?Sy:a;var b=b===void 0?lz:b;this.N=a;this.v=b} function rz(a,b){var c=c===void 0?sz:c;var e=tz(a,b),f=new uz(a.v,c);return function(k){return vz(e,f,k)}} function tz(a,b){a=a.N.parse(b);if(a===null)throw Error("Got a null parse tree.");return a} function vz(a,b,c){switch(a.type){case "column":a=Xc(a.pathParts);for(var e=a.next();!e.done;e=a.next())c=b.N(e.value,c);return c;case "number":return a.value;case "string":return a.value;case "boolean":return a.value;case "function":var f=b.v,k=a.namespace;e=a.name;k=k?k.toUpperCase():k;e=e.toUpperCase();f=f.v.get(k||"");if(!f)throw Error("Unknown namespace: "+k);k=f.get(e);if(!k)throw Error("Unknown function: "+e);if(k.v.yb)throw Error("Found aggregating function "+a.name+" while building a non-aggregating expression evaluator.");e=[];for(f=0;f'):c&&typeof f==="string"&&(f=ih(f));return f} function Bz(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(c.length!==2)throw Error("nest expression requires two parameters");b=c[0];var e=c[1].split("."),f={nest_label:"NEST_TOP",nest_children:[],nest_child_map:{}};a=Th(a.v[a.v.length-1],b.split("."));if(a==null)return null;if(!Ed(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var n=f;(Th(k,e)||"").split("|").forEach(function(r){var t=n.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},n.nest_child_map[r]=t,n.nest_children.push(t));n=t});n.nest_children.push(k)});return f} ;function Cz(a){this.v=a;this.O=this.N=-1;this.ha=0} Cz.prototype.next=function(){this.N++;var a=this.v[this.N];a==="\n"?(this.ha++,this.O=-1):this.O++;return a};Cz.prototype.index=function(){return this.N};function Dz(a,b){if(b<0)throw Error("CharacterIterator can only skip forward");for(var c=0;c0&&this.N.Rc(new Nz(a)),this.ma(b);this.O+=a;return!0};Pz.prototype.ma=function(a){if(Ez(a,"#each ",1)){var b=new Hz;this.N.Rc(b);this.v=new Rz(b,"each",a);Dz(a,6)}else Ez(a,"#if ",1)?(b=new Jz,this.N.Rc(b),this.v=new Rz(b,"if",a),Dz(a,4)):Ez(a,"#first ",1)?(b=new Gz,this.N.Rc(b),this.v=new Rz(b,"first",a),Dz(a,7)):Ez(a,"#nest ",1)?(b=new Kz,this.N.Rc(b),this.v=new Rz(b,"nest",a),Dz(a,6)):Ez(a,"#partial ",1)?(b=new Lz,this.N.Rc(b),this.v=new Rz(b,"partial",a),Dz(a,9)):Ez(a,"#html ",1)?(b=new Iz,this.N.Rc(b),this.v=new Qz(b,a),Dz(a,6)):(b=new wz,this.N.Rc(b),this.v=new Qz(b,a));return!0};Pz.prototype.close=function(a){this.v!=null&&this.v.close(a);this.O.length>0&&(this.N.Rc(new Nz(this.O)),this.O="");return this.N};function Rz(a,b,c){Pz.call(this,a,c);this.na="{{/"+b+"}}";this.ka=new Qz(a,c)} Wc(Rz,Pz);Rz.prototype.ma=function(a){if(Ez(a,this.na,-1))return Dz(a,this.na.length-2),!1;if(Ez(a,"/",1))throw Error("Attempt to close the wrong expression [row:"+a.ha+", col:"+a.O+"] expected "+this.na+" template:"+a.v);return Pz.prototype.ma.call(this,a)};Rz.prototype.ha=function(a,b){return this.ka?(this.ka.ha(a,b)||(this.ka=null),!0):Pz.prototype.ha.call(this,a,b)};Rz.prototype.close=function(a){if(this.ka)throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] (expression not closed) template:"+a.v);throw Error("Template parse error at [row:"+this.ta+", col:"+this.oa+"] ("+this.na+" not found) template:"+a.v);};function Sz(a){this.v=(new Oz).parse(a)} ;function Tz(){this.ya="{{#partial mainDetail}}{{#template header}}{{/partial}}{{#nest details series.seriesCategory}}{{#each nest_children}}{{#first nest_children}}{{#template seriesCategory}}{{/first}}{{#each nest_children}}{{#if IF(series.annotation is null, true, NOT(series.annotation))}}{{#template body}}{{/if}}{{#if series.annotation}}{{#partial datum}}{{#template annotation}}{{/partial}}{{/if}}{{/each}}{{/each}}{{/nest}}{{#partial mainDetail}}{{#template footer}}{{/partial}}";this.O=this.ma= this.ka=null;this.oa="{{title}}";this.Ca="{{measure}}";this.N=this.v=this.ha=null;this.na="series_asc";this.Ia=new Ai(12,12);this.ta=new sl} w=Tz.prototype;w.Hk=function(a){this.ya=a;this.v=null;return this};w.Yf=function(a){this.N=Uz(this,a||{});return this};w.Bg=function(){this.N==null&&(this.N=Uz(this,{}));return this.N};w.qe=function(a){this.na=a;return this};w.Gf=function(){return this.na};w.eg=function(a){this.ka=a;this.v=null;return this};w.Eg=function(){return this.ka};w.hg=function(a){this.ma=a;this.v=null;return this};w.Lg=function(){return this.ma};w.Xf=function(a){this.O=a;this.v=null;return this};w.Ag=function(){return this.O};w.ei=function(a){this.oa=a;this.v=null;return this};w.Dh=function(){return this.oa};w.ag=function(a){this.ha=a;this.v=null;return this};w.Dg=function(){return this.ha};w.hf=function(a){this.ta=a;return this};w.Zg=function(a,b,c){a.textContent="";this.N===null&&(this.N=Uz(this,{}));var e=this.N;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ll)}b={mainDetail:b,details:c};if(!this.v){c=this.ka||"";var f=this.ma||"",k=this.O||"",n=this.oa||"",r=this.ha||"";c===""&&f===""&&k===""&&r===""&&(k=this.Ca);c=this.ya.replace(/{{#template header}}/,c).replace(/{{#template seriesCategory}}/,f).replace(/{{#template body}}/,k).replace(/{{#template annotation}}/,n).replace(/{{#template footer}}/,r);this.v=new Sz(c)}b=new yz(b,e);this.v.v.accept(b);e=bn(b.N);b=b.ha;for(var t in b)c=e.querySelector("#"+t),c.parentElement.replaceChild(b[t],c);for(;e.firstChild;)a.appendChild(e.firstChild)};function Uz(a,b){var c=kn();c["svg-sample"]=a.ta.v(a.Ia);Yh(c,b);return c} w.ll=function(a,b){return a.chartY!==b.chartY?a.chartY-b.chartY:a.chartX-b.chartX};Tz.prototype.setLegendKey=Tz.prototype.hf;Tz.prototype.getFooterTemplate=Tz.prototype.Dg;Tz.prototype.setFooterTemplate=Tz.prototype.ag;Tz.prototype.getAnnotationTemplate=Tz.prototype.Dh;Tz.prototype.setAnnotationTemplate=Tz.prototype.ei;Tz.prototype.getBodyTemplate=Tz.prototype.Ag;Tz.prototype.setBodyTemplate=Tz.prototype.Xf;Tz.prototype.getSeriesCategoryTemplate=Tz.prototype.Lg;Tz.prototype.setSeriesCategoryTemplate=Tz.prototype.hg;Tz.prototype.getHeaderTemplate=Tz.prototype.Eg;Tz.prototype.setHeaderTemplate=Tz.prototype.eg;Tz.prototype.getOrdering=Tz.prototype.Gf;Tz.prototype.setOrdering=Tz.prototype.qe;Tz.prototype.getConversionFunctionMap=Tz.prototype.Bg;Tz.prototype.setConversionFunctionMap=Tz.prototype.Yf;Tz.prototype.setMainTemplate=Tz.prototype.Hk;var Vz=!0;Od("aplos.spec.flags.setEnableNewTemplateContentRenderer",function(a){Vz=a});function Wz(){this.O=this.N=this.ka=null;this.oa="{{measure}}";this.v=this.ha=null;this.na="series_asc";this.ta=new Ai(12,12);this.ma=new sl} w=Wz.prototype;w.Ee=function(a){return a==null?this.Bg():this.Yf(a)};w.Yf=function(a){this.v=Xz(this,a||{});return this};w.Bg=function(){this.v===null&&(this.v=Xz(this,{}));return this.v};w.Xg=function(a){return a==null?this.Gf():this.qe(a)};w.qe=function(a){this.na=a;return this};w.Gf=function(){return this.na};w.Hk=function(){return this};w.Cn=function(a){return a===void 0?this.Eg():this.eg(a)};w.eg=function(a){this.ka=a;return this};w.Eg=function(){return this.ka};w.qo=function(a){return a===void 0?this.Lg():this.hg(a)};w.hg=function(a){this.N=a;return this};w.Lg=function(){return this.N};w.Fl=function(a){return a===void 0?this.Ag():this.Xf(a)};w.Xf=function(a){this.O=a;return this};w.Ag=function(){return this.O};w.ei=function(){return this};w.Dh=function(){return null};w.dm=function(a){return a===void 0?this.Dg():this.ag(a)};w.ag=function(a){this.ha=a;return this};w.Dg=function(){return this.ha};w.hf=function(a){this.ma=a;return this};w.Zg=function(a,b,c){a.textContent="";this.v===null&&(this.v=Xz(this,{}));var e=this.v;c=c.slice(0);switch(this.na){case "series_desc":c=c.reverse();break;case "position":jf(c,this.ml)}var f=this.ka||"",k=this.ha||"",n=this.O;f===""&&this.N==null&&n==null&&k===""&&(n=this.oa);n=n||"";var r=!1,t=void 0,y;a:{if(f!==""&&k!==""){if(!Yz.length)for(y=0;y]*?>","gi"),close:new RegExp(""+E+"[^>]*?>","gi")})}for(y=0;y(ma?ma.length:0)&&(na=(ma=k.match(E.open))?ma.length:0,ma=k.match(E.close),(ma?ma.length:0)>na)){y=!0;break a}}}y=!1}y?(r=!0,(t=f.toLowerCase().indexOf("=0?f+''+k:f+'
'+k)&&Ym(a,b,t,e,void 0),y=vj(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&Ym(a,b,f,e,void 0),f=a);y=void 0;for(E=0;E0&&!e.empty()&&k=k?fA.Yk(f,n,c.height-k):f=n;var t=[];f.forEach(function(y){t.push({width:e,height:y})});return t},pr:function(a,b,c){for(var e=c.height,f=[],k=0,n=[],r=0;r=k?fA.Yk(f,n,c.width-k):f=n;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Yk:function(a,b,c){for(var e=0;e0&&k.scrollHeight>c&&f.style("height",c+"px");a.ma||k.scrollHeight<=c&&f.style("overflow-y",null);c=fA.yj(a.O,b,a.v);if(E0&&r.minWidthc?r.style("width",n+"px"):Math.ceil(r.node().getBoundingClientRect().width)>n?r.style("width",n+"px"):r.style("width","auto");e=Math.ceil(k.getBoundingClientRect().width);e>0&&c>0&&k.scrollWidth>c?(f.style("overflow-x","auto"),f.style("width",Math.min(c,e)+"px")):(f.style("overflow-x"),f.style("width","auto"));nA(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function oA(a,b){var c=b.node().getBoundingClientRect(),e=c.top;a=(a.ka?b.select(".aplos-legend-title").node():b.select(".aplos-legend-column").node()).getBoundingClientRect();b=b.select(".aplos-legend-column").selectAll(".aplos-legend-entry");b.empty()?c=0:(b=b.nodes()[b.size()-1].getBoundingClientRect(),c=c.height-(b.top+b.height-a.top));return{top:e,jp:c}} function kA(a,b,c,e){var f=b.Qa.append("div").style("visibility","hidden");f.append(function(){return c.node().cloneNode(!0)});c=f.select(".aplos-legend");c.selectAll(".aplos-legend-column").remove();e=c.select(".aplos-legend-columns").append("div").classed("aplos-legend-column",!0).append("table").classed(lA(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.De(b,e);a.update(b,e,0);var k=oA(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=fA.xj(a.O,b,a.v)-(n-k.top)-k.jp,t=[[]],y=0,E=n;e.each(Nd(function(ma,na){var sa=this.getBoundingClientRect(),ua=sa.top;sa=ua-E+sa.height;t[y].length>0&&(sa>r||t[y].length===ma.Rg)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function nA(a,b){var c=b.Qa.select(".aplos-legend");fA.eo(b,a.O,a.v,c);c.attr("data-position",Md(function(){var e=Uh(cA,function(f){return eA(this.v)===f},this);return e!=null?e.toLowerCase():null},a))} w.De=function(a,b){var c=this.Sj(a);return b.enter().append("tr").classed("aplos-legend-entry",!0).attr("tabindex",c&&this.ha?"0":null).on("click.legend",c).on("keypress.legend",this.ha?c:null).on("mouseover.legend",this.Uj(a)).on("mouseout.legend",this.Tj(a)).each(function(){if(this.nextSibling){var e=document.createElement("tr");e.className="aplos-legend-row-spacer";this.parentNode.insertBefore(e,this.nextSibling)}}).merge(b)};w.update=function(a,b){pA(this,b);b.empty()||vj(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.ta.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return f===0}).select(".aplos-legend-value-cell").style("width",c+"px")};function pA(a,b){var c=a.Ia||kn();c["svg-sample"]||(c["svg-sample"]=a.Ka.v(a.ta));b.each(Nd(function(e,f){e=Zm(f,"
"+(f.categorySeparator?e.yf:e.yh)+"
",c)[0];for(e=vj(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function mA(a){a.each(function(){vj(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.xl=function(a,b){b.Ce(new qA(a,this))};function lA(a){return a.yf!=null?"aplos-legend-table-category":"aplos-legend-table"} w.Go=function(a){this.Dc=a;return this};gA.prototype.setMinPreferredLayoutHeight=gA.prototype.Go;function qA(a,b){this.N=a;this.v=b} qA.prototype.Hh=function(){var a={position:rA(this),Pf:30},b=this.v.Gg();if(b!=null)a.margins=b;else switch(a.position){case 1:case 2:case 3:case 4:a.margins={top:5,right:0,bottom:5,left:0};break;case 6:a.margins={top:0,right:0,bottom:0,left:30};break;case 5:a.margins={top:0,right:30,bottom:0,left:0}}return a};qA.prototype.kg=function(a){hA(this.v,this.N,this.v.ab,this.v.Ya,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Qa.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},rb:{width:0,height:0},Bc:!0};var c=rA(this),e=Vg(a,this.v.Oe(),c);if(e!=null)return e;var f=b.node(),k=f.offsetWidth;e=f.offsetHeight;f=Math.ceil(f.getBoundingClientRect().width);f==k+1&&(k=f);var n=k;f=e;b=b.selectAll(".aplos-legend-column");var r=b.size();switch(c){case 5:case 6:r>1&&(n=Math.floor(k/r));n= Math.min(n,40);break;case 1:case 2:case 3:case 4:var t=0;b.each(function(){var y=vj(this).selectAll(".aplos-legend-entry");y.size()>t&&(t=y.size())});c=this.N.Qa.select(".aplos-legend-title");c=yj(c.node());c>0&&(c+=20);t>1&&(f=Math.floor(e/t)+c);f=Math.min(f,this.v.Dc+c);k=n=a.width}n>a.width&&(n=a.width);f>a.height&&(f=a.height);k>a.width&&(k=a.width);e>a.height&&(e=a.height);return{Ba:{width:n,height:f},rb:{width:k,height:e},Bc:!1}};qA.prototype.dh=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Qa.select(".aplos-legend").node();b!=a.offsetWidth&&nA(this.v,this.N)};qA.prototype.Ne=function(){return this.v.O};function rA(a){switch(eA(a.v.v)){case cA.LEFT:return 5;case cA.RIGHT:return 6;case cA.TOP:case cA.TOP_FULL_LEFT:case cA.TOP_FULL_RIGHT:return 2;case cA.TOP_LEFT:case cA.TOP_RIGHT:return 1;case cA.BOTTOM:case cA.BOTTOM_FULL_LEFT:case cA.BOTTOM_FULL_RIGHT:return 4;case cA.BOTTOM_LEFT:case cA.BOTTOM_RIGHT:return 3;default:return 0}} ;function sA(){this.N=new sw;this.v=new tA("");this.v.next=this.v.v=this.v} w=sA.prototype;w.get=function(a,b){return(a=this.N.get(a))?a.value:b};w.set=function(a,b){var c=this.N.get(a);c?c.value=b:(c=new tA(a,b),this.N.set(a,c),a=c,a.v=this.v.v,a.next=this.v,this.v.v=a,a.v.next=a)};w.shift=function(){return uA(this,this.v.next)};w.pop=function(){return uA(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function vA(a){return a.map(function(b){return b})} w.contains=function(a){return this.some(function(b){return b==a})};w.clear=function(){this.lf(0)};w.forEach=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)a.call(b,c.value,c.key,this)};w.map=function(a,b){for(var c=[],e=this.v.next;e!=this.v;e=e.next)c.push(a.call(b,e.value,e.key,this));return c};w.some=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(a.call(b,c.value,c.key,this))return!0;return!1};w.every=function(a,b){for(var c=this.v.next;c!=this.v;c=c.next)if(!a.call(b,c.value,c.key,this))return!1;return!0};w.lf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function uA(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function tA(a,b){this.key=a;this.value=b} tA.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};Od("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function wA(a){gA.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.oa={};this.Sa=!1;this.N={};this.na=[];this.Oa=[];this.La="series_asc";this.ya=1} Pd(wA,gA);Od("aplos.chart.behavior.SeriesLegend",wA);var xA=null,yA=null;wA.prototype.ip=function(a){return a!=null?(this.Ca=a,a||(this.oa={}),this):this.Ca};wA.prototype.valuesFromNearestDatum=wA.prototype.ip;wA.prototype.Dn=function(a){if(a==null)return this.Sa;this.Sa=!!a;return this};wA.prototype.hideEmptySeries=wA.prototype.Dn;wA.prototype.En=function(a){this.N[a]=!0;return this};wA.prototype.hideSeries=wA.prototype.En;wA.prototype.Xg=function(a){if(a==null)return this.La;this.La=a;return this};wA.prototype.ordering=wA.prototype.Xg;wA.prototype.hj=function(a){if(a==null)return this.ya;this.ya=a;return this};wA.prototype.clickHandling=wA.prototype.hj;w=wA.prototype;w.kd=function(a){var b=this;wA.Qb.kd.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.oa={},a.le())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Ff(),e=0;e=0},a)}} function jA(a,b,c){for(var e=new sA,f=0;fthis.N)a.Gd("hover").deselectAll(),BA(this);else{var e=[c];switch(this.ha){case 0:c.domain!==void 0&&(e=a.Hg(function(f){return!f.series.overlay&&f.domain===c.domain},!0,!0));break;case 1:e=b}this.select(a,e)}}};w.select=function(a,b){a.Gd("hover").Ci(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));DA(this,a)};function DA(a,b){if(!a.v){var c="selectnearest_"+Date.now();vj(a.ka).on("mouseout."+c,function(){var e=b.kb.select(".mouseCapturePane").node(),f;if(f=vi&&vi.target)e?(f=wi(e),e=e.getBoundingClientRect(),f=f[0]>=0&&f[0]=0&&f[1]*{line-height:normal}.aplos-chart text{letter-spacing:0}.aplos-chart .aplos-draw-area{cursor:default}.aplos-chart .aplos-draw-area.aplos-cursor-grabbing{cursor:-webkit-grabbing;cursor:grabbing}.aplos-chart .slider-widget{cursor:-webkit-grab;cursor:grab}.axis path,.axis line{fill:none;stroke:#000;shape-rendering:crispEdges}.aplos-chart .area{opacity:.25}.aplos-table-viewport{overflow:hidden}.aplos-table-chart .padder,.aplos-table-chart .open-pivot-key,.aplos-table-chart .contract-pivot-key{float:left}.aplos-table-chart .pivot-key{display:block;overflow:hidden;text-overflow:ellipsis}.aplos-synthetic-row-header{text-align:right}.aplos-fixed-headers-table{position:absolute;margin:0}.aplos-fixed-headers-table .aplos-table-thead,.aplos-fixed-headers-table .aplos-table-tfoot{overflow:hidden}.aplos-fixed-headers-table .aplos-table-tbody{overflow:auto}.aplos-frozen-columns{position:absolute}.aplos-frozen-columns-table{margin:0;border-right:0;border-left:0}.aplos-frozen-columns-table .aplos-table-thead,.aplos-frozen-columns-table .aplos-table-tbody,.aplos-frozen-columns-table .aplos-table-tfoot{display:block;overflow:hidden;background:white}.aplos-googlemap-label{color:#424242;fill:#757575;font-family:"Roboto",sans-serif;font-size:14px;stroke:none;white-space:nowrap}.aplos-legend{position:absolute;line-height:1em;overflow-x:auto;overflow-y:hidden}.aplos-legend-title{font-size:16px;line-height:16px;padding:0 0 20px 0}.aplos-legend-entry{font-size:13px}.aplos-legend-entry-clickable{cursor:pointer}.aplos-legend-entry-hidden{opacity:.26}.aplos-legend-box-cell{padding:0 8px 0 0}[dir="rtl"] .aplos-legend-box-cell{padding:0 0 0 8px}.aplos-legend-columns{white-space:nowrap}.aplos-legend-column{display:inline-block;vertical-align:top;padding:0 15px 0 0}.aplos-legend-column:only-child{max-width:100%}.aplos-legend-column:last-child{padding:0;min-width:0}[dir="rtl"] .aplos-legend-column{padding:0 0 0 15px}[dir="rtl"] .aplos-legend-column:last-child{padding:0}.aplos-legend-table{table-layout:fixed;border-spacing:0}.aplos-legend-table-category{table-layout:auto;border-spacing:0}.aplos-legend-entry{vertical-align:top}.aplos-legend-box-cell{vertical-align:middle}.aplos-legend-label-cell{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.aplos-legend-value-cell{white-space:nowrap;text-align:right}.aplos-legend-row-spacer{height:8px}.aplos-rolelegend-colorrange svg{display:block}.aplos-rolelegend-colorrange-box{stroke:#cccccc}.aplos-rolelegend-sizerange svg{display:block}.aplos-rolelegend-sizerange-axis,.aplos-rolelegend-sizerange-axistick{stroke:darkgray;stroke-width:1px}.aplos-rolelegend-mapping svg{display:block}.aplos-hovercard{background:white;border:1px solid #e0e0e0;border-radius:2px;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.16);box-shadow:0 1px 4px rgba(0,0,0,.16);color:#757575;font-size:14px;line-height:20px;padding:12px 16px;position:absolute;text-align:left;white-space:nowrap}.aplos-hovercard .aplos-renderer-key{margin-right:8px}.plx-tooltip-header{color:#424242;font-weight:500;margin-bottom:4px}.aplos-donut-center{background:transparent;border-width:0;color:#757575;line-height:20px;padding:0;position:absolute;text-align:center;white-space:normal}.aplos-chart .aplos-table-sort-index{color:#ccc;display:inline;font-size:9px;margin:0;padding:2px 2px 2px 6px;vertical-align:middle}.aplos-sort-indicator-asc{display:inline-block;height:0;width:0;position:relative;top:-4px;border:4px solid transparent;border-bottom-color:#000}.aplos-sort-indicator-desc{display:inline-block;height:0;width:0;border:4px solid transparent;border-top-color:#000}.breadcrumb{height:35px}.breadcrumb .chip{display:inline-block;margin:2px 0 2px 2px;vertical-align:top}.breadcrumb .chip div{display:inline-block;vertical-align:top}.breadcrumb .chip .chip-tail{width:0;height:0;border-top:12px solid #fdd0a2;border-bottom:12px solid #fdd0a2;border-left:10px solid transparent;margin-left:-10px}.breadcrumb .chip .chip-text{border-right:none;cursor:pointer;padding:5px 10px;background:#fdd0a2;font-size:11px;height:14px;-webkit-box-sizing:content-box;box-sizing:content-box}.breadcrumb .chip .chip-arrow{width:0;height:0;border-top:12px solid transparent;border-bottom:12px solid transparent;border-left:10px solid #fdd0a2}.aplos-selector-view{overflow:hidden;white-space:nowrap;display:block}.aplos-selector-view .selector-item{background:none;border-bottom:2px solid transparent;-webkit-box-sizing:border-box;box-sizing:border-box;color:#777;font-weight:normal;cursor:pointer;display:inline-block;font-size:14px;padding:4px;margin:4px;-webkit-transition:background-color .15s,border-bottom .15s;transition:background-color .15s,border-bottom .15s}.aplos-selector-view .selector-item:hover{color:#222}.aplos-selector-view .selector-item.active{border-bottom:2px solid #4285f4;color:#4285f4;font-weight:bold}.collapsibleheatmap-modeselector-holder{position:absolute;top:0;left:0;right:0;text-align:center}.aplos-chart .cell-label-group text{font-weight:bold}.range-selector .extent{fill:#000;fill-opacity:.04;shape-rendering:crispEdges}.range-selector .unselected{fill:#fff;fill-opacity:.8}.range-selector .brush-handle-bar{stroke:#9e9e9e;stroke-width:1px;shape-rendering:crispEdges}.range-selector .brush-handle-thumb{fill:#fff}.range-selector .brush-handle-mark{stroke:#bbb;stroke-width:2px;shape-rendering:crispEdges}.aplos-badge{display:inline-block;position:absolute;top:10px;right:10px}.aplos-message-overlay{margin:0 15px}.aplos-message-warning-badge{width:24px;height:24px;overflow:hidden;border:none;-webkit-background-size:24px 24px;background-size:24px;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0Ij48ZyBpZD0iSGVhZGVyIj48Zz48cmVjdCB4PSItNjE4IiB5PSItNTY4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+PC9nPjwvZz48ZyBpZD0iSWNvbiI+PGc+PHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PHBhdGggZmlsbD0iI2ZmYjc0ZCIgZD0iTTEsMjFoMjJMMTIsMkwxLDIxeiBNMTMsMThoLTJ2LTJoMlYxOHogTTEzLDE0aC0ydi00aDJWMTR6Ii8+PC9nPjwvZz48L3N2Zz4=)}.aplos-message-icon-error{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDI0IDI0Ij48ZyBpZD0iSGVhZGVyIj48Zz48cmVjdCB4PSItNjE4IiB5PSItNTY4IiBmaWxsPSJub25lIiB3aWR0aD0iMTQwMCIgaGVpZ2h0PSIzNjAwIi8+PC9nPjwvZz48ZyBpZD0iSWNvbiI+PGc+PHJlY3QgZmlsbD0ibm9uZSIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ii8+PHBhdGggZmlsbD0iI2ZmMTc0NCIgZD0iTTEsMjFoMjJMMTIsMkwxLDIxeiBNMTMsMThoLTJ2LTJoMlYxOHogTTEzLDE0aC0ydi00aDJWMTR6Ii8+PC9nPjwvZz48L3N2Zz4=);display:inline-block;position:absolute;top:-5px;left:-30px;width:24px;height:24px;overflow:hidden;border:none;-webkit-background-size:24px 24px;background-size:24px}.aplos-message{font-weight:normal;font-size:14px;color:#7f7f7f;line-height:normal}.aplos-chart .arc-border{stroke:white;stroke-width:2}.aplos-chart .empty-pie{fill:#eeeeee}.aplos-chart .arc-label-container{display:table;max-height:50px;max-width:50px}.aplos-chart .arc-label{display:table-cell;height:100%;text-align:center;vertical-align:middle}.aplos-chart .arc-leader-line,.aplos-chart .arc-leader-line-tail{stroke:#9E9E9E}.html-container>body{background:transparent}.aplos-chart .padder{display:inline-block;width:1em}.aplos-annotation-hover-content{color:#DB4437}.aplos-annotation{cursor:default;shape-rendering:crispEdges}.aplos-annotation-base,.aplos-annotation-pole{stroke:#ccc;stroke-linecap:square;stroke-width:2px}.aplos-annotation-flag{fill:#fff;fill-opacity:.6;stroke:#ccc;stroke-width:1px}.aplos-annotation:hover .aplos-annotation-base,.aplos-annotation:hover .aplos-annotation-pole,.aplos-annotation:hover .aplos-annotation-flag{fill-opacity:1;stroke:#666}.aplos-annotation:hover text{fill:#000}.aplos-chart .dot-follow-domain-line,.aplos-chart .dot-follow-measure-line{stroke:#757575;stroke-dasharray:1,3;pointer-events:none}.aplos-chart .dot-follow-point-group{pointer-events:none}.aplos-line-annotation-layer{pointer-events:none}.aplos-chart .line-annotation .annotation-label{font-size:11px}.ginsu-style .axis line,.quantum-style .axis line{stroke:#eeeeee}.ginsu-style .axis path,.quantum-style .axis path{stroke:#eeeeee}.quantum-style .baseline-group .baseline,.quantum-style .axis .strong-tick-mark{stroke:#9E9E9E}.ginsu-style text,.quantum-style text{fill:#757575;font-family:"Roboto",sans-serif;font-size:12px;stroke:none}.ginsu-style .axis-title,.quantum-style .axis-title{fill:#424242}.ginsu-style .arc-label,.quantum-style .arc-label{fill:#fff;color:#fff;font-weight:500}.ginsu-style .arc[data-label-position="outside"] .arc-label,.quantum-style .arc[data-label-position="outside"] .arc-label,.ginsu-style .html-container[data-label-position="outside"] .arc-label,.quantum-style .html-container[data-label-position="outside"] .arc-label{fill:inherit;color:inherit}.ginsu-style .aplos-legend-entry,.quantum-style .aplos-legend-entry{color:#757575;font-family:"Roboto",sans-serif;font-size:14px}.ginsu-style .legend-color-chip,.quantum-style .legend-color-chip{display:inline-block;width:10px;height:10px;overflow:hidden}.marker-label{font-size:10px}.aplos-chart .node rect{shape-rendering:crispEdges}.aplos-chart .node text{pointer-events:none;text-shadow:0 1px 0 #fff}.aplos-chart .link{fill:none;stroke:#000;stroke-opacity:.2}.aplos-chart .link:hover{stroke-opacity:.5}.aplos-chart .error-group .error-bar,.aplos-chart .error-group .error-upper-whisker,.aplos-chart .error-group .error-lower-whisker{stroke-width:1px}.ginsu-style .chart-title,.quantum-style .chart-title{color:#757575;font-size:16px}.aplos-table-view{height:100%;outline:none;position:relative;width:100%}.aplos-table-view :focus{outline:none}.aplos-table{border-spacing:0;table-layout:fixed;width:1px}.aplos-sizing-table{border-spacing:0}.aplos-table-header{font-weight:500;overflow:hidden}.aplos-table-header,.aplos-table-body,.aplos-table-footer{overflow:hidden;position:relative}.aplos-footer-row-name{text-align:right}.aplos-table td{margin:0;overflow:hidden;padding:0;text-overflow:ellipsis;vertical-align:top}.aplos-table .row-number-cell{-moz-user-select:none;-ms-user-select:none;-webkit-user-select:none}.aplos-data-row.aplos-selected{background-color:#f5f5f5}.aplos-table .padder,.aplos-table .open-pivot-key,.aplos-table .contract-pivot-key{float:left}.aplos-table .pivot-key{display:block;overflow:hidden;text-overflow:ellipsis}.aplos-data-row.aplos-hover{background-color:#eee}.aplos-scrollbar{position:absolute}.aplos-horizontal-scrollbar{bottom:0;overflow-x:scroll;overflow-y:hidden}.aplos-vertical-scrollbar{right:0;overflow-x:hidden;overflow-y:scroll}.aplos-table-view.aplos-quantum-style{background-color:white;border:0;-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);box-shadow:0 3px 1px -2px rgba(0,0,0,.14),0 2px 2px 0 rgba(0,0,0,.098),0 1px 5px 0 rgba(0,0,0,.084);color:rgba(0,0,0,.87);font-family:Roboto;font-size:13px}.aplos-quantum-style .aplos-table-header{border-bottom:1px solid rgba(0,0,0,.12);color:rgba(0,0,0,.54);cursor:pointer;font-size:12px;text-align:left}.aplos-quantum-style .aplos-column-header .aplos-content-holder{display:block;margin:16px 8px;overflow:hidden;text-overflow:ellipsis}.aplos-quantum-style .aplos-column-header.aplos-sort .aplos-content-holder{color:rgba(0,0,0,.87)}.aplos-quantum-style .aplos-column-header .aplos-content{white-space:nowrap}.aplos-quantum-style .aplos-table-cell .aplos-content{margin:8px;overflow:hidden;text-overflow:ellipsis;white-space:pre-wrap}.aplos-quantum-style .aplos-column-header{position:relative}.aplos-quantum-style .aplos-table-cell,.aplos-quantum-style .aplos-padding-cell{border-bottom:1px solid #e0e0e0;padding:0}.aplos-quantum-style .aplos-data-row.aplos-hover{background-color:#eee}.aplos-quantum-style .row-number-cell{color:rgba(0,0,0,.54);font-size:12px;font-weight:500}.aplos-quantum-style .row-number-cell .aplos-content-holder{color:rgba(0,0,0,.54);font-size:12px;font-weight:500;margin:8px 0 8px 8px}.aplos-quantum-style .aplos-table-cell.row-number-cell .aplos-content{margin:8px 0 8px 16px}.aplos-quantum-style a{color:#15c;cursor:pointer;text-decoration:none}.aplos-quantum-style a:hover{text-decoration:underline}.aplos-quantum-style a,.aplos-quantum-style a:visited,.aplos-quantum-style a:active{color:#4d90fe}.aplos-quantum-style .pivot-key-group{padding:8px}.aplos-quantum-style .aplos-sort-indicator-asc{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBza2V0Y2g6dHlwZT0iTVNQYWdlIj4gICAgICAgIDxnIGlkPSJpYy11cC1hcnJvdyIgc2tldGNoOnR5cGU9Ik1TTGF5ZXJHcm91cCIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTguMDAwMDAwLCAtOC4wMDAwMDApIj4gICAgICAgICAgICA8cGF0aCBkPSJNMCwwIEw0OCwwIEw0OCw0OCBMMCw0OCBMMCwwIEwwLDAgWiIgaWQ9IlNoYXBlIiBza2V0Y2g6dHlwZT0iTVNTaGFwZUdyb3VwIj48L3BhdGg+ICAgICAgICAgICAgPHBhdGggZD0iTTgsMjQgTDEwLjgzLDI2LjgzIEwyMiwxNS42NiBMMjIsNDAgTDI2LDQwIEwyNiwxNS42NiBMMzcuMTcsMjYuODMgTDQwLDI0IEwyNCw4IEw4LDI0IEw4LDI0IFoiIGlkPSJTaGFwZSIgZmlsbD0iIzAwMDAwMCIgc2tldGNoOnR5cGU9Ik1TU2hhcGVHcm91cCI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);background-position:2px 2px;background-repeat:no-repeat;-webkit-background-size:9px 9px;background-size:9px;border:none;height:11px;opacity:.8;top:0;width:1em}.aplos-quantum-style .aplos-sort-indicator-desc{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMzJweCIgaGVpZ2h0PSIzMnB4IiB2aWV3Qm94PSIwIDAgMzIgMzIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBza2V0Y2g6dHlwZT0iTVNQYWdlIj4gICAgICAgIDxnIGlkPSJpYy1kb3duLWFycm93IiBza2V0Y2g6dHlwZT0iTVNMYXllckdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtOC4wMDAwMDAsIC04LjAwMDAwMCkiPiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLDAgTDQ4LDAgTDQ4LDQ4IEwwLDQ4IEwwLDAgTDAsMCBaIiBpZD0iU2hhcGUiIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPjwvcGF0aD4gICAgICAgICAgICA8cGF0aCBkPSJNOCwyNCBMMTAuODMsMjYuODMgTDIyLDE1LjY2IEwyMiw0MCBMMjYsNDAgTDI2LDE1LjY2IEwzNy4xNywyNi44MyBMNDAsMjQgTDI0LDggTDgsMjQgTDgsMjQgWiIgaWQ9IlNoYXBlIiBmaWxsPSIjMDAwMDAwIiBza2V0Y2g6dHlwZT0iTVNTaGFwZUdyb3VwIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgyNC4wMDAwMDAsIDI0LjAwMDAwMCkgc2NhbGUoMSwgLTEpIHRyYW5zbGF0ZSgtMjQuMDAwMDAwLCAtMjQuMDAwMDAwKSAiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPg==);background-position:2px 2px;background-repeat:no-repeat;-webkit-background-size:9px 9px;background-size:9px;border:none;height:11px;opacity:.8;top:0;width:1em}.aplos-quantum-style .aplos-footer-row{background:#f5f5f5;border-top:1px solid #e0e0e0}.aplos-quantum-style::-webkit-scrollbar{height:8px;width:8px}.aplos-quantum-style ::-webkit-scrollbar{height:8px;overflow:visible;width:8px}.aplos-quantum-style ::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.2);background-clip:padding-box;border:solid transparent;min-height:28px;padding:100px 0 0;-webkit-box-shadow:inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);box-shadow:inset 1px 1px 0 rgba(0,0,0,.1),inset 0 -1px 0 rgba(0,0,0,.07);border-width:1px 1px 1px 1px}.aplos-quantum-style ::-webkit-scrollbar-button{height:0;width:0}.aplos-quantum-style ::-webkit-scrollbar-track{background-clip:padding-box;border:solid transparent;border-width:0 0 0 4px}.aplos-quantum-style ::-webkit-scrollbar-corner{background:transparent}.aplos-column-resizer{height:0;position:absolute}.aplos-column-resizer-inner{position:absolute}.aplos-sizer-grip{position:absolute;width:8px;cursor:ew-resize;top:0;left:0}.aplos-sizer-line{height:100%;margin-left:50%}.aplos-sizer-grip.aplos-hover>.aplos-sizer-grip-inner{background-color:#e0e0e0;top:8px;bottom:8px;left:3px;right:3px;position:absolute}.aplos-chart .row-axis .tick-line,.aplos-chart .column-axis .tick-line{fill:none;stroke:#000;shape-rendering:crispEdges}.aplos-chart .waterfall-transition{shape-rendering:crispEdges}.aplos-quantum-checkbox{-webkit-appearance:none;-moz-appearance:none;background:none;border:2px solid rgba(0,0,0,.54);border-radius:2px;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:pointer;height:15px;width:15px;outline:none;vertical-align:top;margin:0}.aplos-quantum-checkbox:checked,.aplos-quantum-checkbox:indeterminate{background-color:#757575;border:none}.aplos-quantum-checkbox:checked::after{border-bottom:2px solid #fff;border-left:2px solid #fff;content:"";display:block;height:4px;-webkit-transform:translate(2px,3px) rotate(-45deg) scale(1)!important;-ms-transform:translate(2px,3px) rotate(-45deg) scale(1)!important;transform:translate(2px,3px) rotate(-45deg) scale(1)!important;width:9px!important}.aplos-quantum-checkbox:indeterminate::after{border-bottom:2px solid #fff;content:"";display:block;height:0;-webkit-transform:translate(3px,6px) scale(1)!important;-ms-transform:translate(3px,6px) scale(1)!important;transform:translate(3px,6px) scale(1)!important;width:9px!important}.aplos-quantum-numbers .value{display:block;width:15px;text-align:center}.aplos-quantum-numbers .aplos-quantum-checkbox{display:none;pointer-events:none}.aplos-quantum-numbers .aplos-quantum-checkbox:only-child{display:block}.aplos-data-row:hover .aplos-quantum-numbers .value{display:none}.aplos-data-row:hover .aplos-quantum-numbers .aplos-quantum-checkbox{display:block}.aplos-highlight{background-color:yellow}.aplos-highlight-active{background-color:orange}.aplos-scorecard{color:rgba(0,0,0,.87);cursor:default;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap;font-family:"Roboto",sans-serif;font-size:13px}.aplos-scorecard .aplos-series{margin:24px}.aplos-scorecard-title{font-weight:normal;font-size:1em;margin:0 0 8px 0}.aplos-scorecard .aplos-positive{color:#0F9D58}.aplos-scorecard .aplos-negative{color:#f3574c}.aplos-scorecard-subtitle{margin-top:8px;color:rgba(0,0,0,.54)}.aplos-scorecard-metric{font-size:32px}.aplos-chart .symbol-annotation-separator,.aplos-chart .symbol-annotation-bottom-separator{stroke:gray;shape-rendering:crispEdges}text.symbol-annotation-series-label-error{opacity:.4;fill:#DB4437}.aplos-chart .event-annotation-content{color:#757575;font-family:"Roboto",sans-serif;font-size:12px;padding:0 4px}.aplos-chart .event-annotation-content .annotation-title{font-weight:600}.aplos-chart .event-annotation-content .subdominant-additional-text,.aplos-chart .event-annotation-content .annotation-title,.aplos-chart .event-annotation-content .date{fill:#a3a3a3}.aplos-chart .event-annotation-content .range-line,.aplos-chart .event-annotation-content .marker-line{stroke:#d2d2d2;shape-rendering:crispEdges}.aplos-chart .event-annotation-content .subdominant-lines{stroke:#f2f2f2;shape-rendering:crispEdges}.aplos-a11y-content{color:transparent;position:absolute;left:0;top:0;width:1px;height:1px;overflow:hidden}.aplos-multiselect-brush.brush-hidden{opacity:0}.aplos-multiselect-brush .selection{fill:none;shape-rendering:crispEdges;stroke:rgba(0,0,0,.12)}.aplos-multiselect-brush .overlay{fill:#fff;fill-opacity:0;-webkit-transition:fill-opacity .2s;transition:fill-opacity .2s}.aplos-multiselect-brush .overlay.overlay-visible{fill-opacity:.69}.aplos-multiselect-hide-brush-overlay .aplos-multiselect-brush .overlay{fill:none}.aplos-range-selection .overlay{fill:#fff;fill-opacity:0;-webkit-transition:fill-opacity .2s;transition:fill-opacity .2s}.aplos-range-selection .overlay.visible{fill-opacity:.7}.aplos-range-selection .selection{fill:none;shape-rendering:crispEdges;stroke:#9e9e9e}.aplos-range-selection-domain-handle{opacity:0;-webkit-transition:opacity .1s;transition:opacity .1s}.aplos-range-selection-domain-handle.visible{left:0;opacity:1;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.aplos-range-selection-domain-handle span{background:rgba(97,97,97,.9);border-radius:1px;color:#fff;cursor:move;display:inline-block;font-size:10px;padding:5px 8px;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.aplos-databox-overlay{display:none;position:absolute;top:0;left:0}.aplos-databox-overlay.visible{display:block}.aplos-legacy-style .aplos-spark-cell,.aplos-quantum-style .aplos-spark-cell{vertical-align:middle}.aplos-spark-bar{height:1em}.aplos-spark-bar.positive{background:#4d90fe;border-radius:0 4px 4px 0}.aplos-spark-bar.negative{background:#db4437;border-radius:4px 0 0 4px}sentinel{}\n';GA=mj(GA);FA=new kg(GA);var jj=Sd||(Sd=new hj),HA=ij("HEAD")[0];if(!HA){var IA=ij("BODY")[0];HA=jj.jj("HEAD");IA.parentNode.insertBefore(HA,IA)}var JA=jj.jj("STYLE"),KA=jg("style");KA&&JA.setAttribute("nonce",KA);var LA=lg(FA);if(Bd.trustedTypes)if("textContent"in JA)JA.textContent=LA;else if(JA.nodeType==3)JA.data=String(LA);else if(JA.firstChild&&JA.firstChild.nodeType==3){for(;JA.lastChild!=JA.firstChild;)JA.removeChild(JA.lastChild);JA.firstChild.data=String(LA)}else dj(JA),JA.appendChild((JA.nodeType==9?JA:JA.ownerDocument||JA.document).createTextNode(String(LA)));else JA.innerHTML=LA;jj.appendChild(HA,JA); var th,Kh,$h,ci,di,fi,gi,ii,fr,er,vi,wi,vj,Kj,ak,lk,rq,Rq,Sq,pz,Gt,Xt,Hv,Kv,Lv,Vw,Yw,dx,ex,fx,gx,hx,ix,jx,kx,lx,Lx,MA;(function(){function a(l){return function(){return this.matches(l)}} function b(l,h){return lh?1:l>=h?0:NaN} function c(l){l.length===1&&(l=e(l));return{left:function(h,p,u,x){u==null&&(u=0);x==null&&(x=h.length);for(;u>>1;l(h[z],p)<0?u=z+1:x=z}return u},right:function(h,p,u,x){u==null&&(u=0);x==null&&(x=h.length);for(;u>>1;l(h[z],p)>0?x=z:u=z+1}return u}}} function e(l){return function(h,p){return b(l(h),p)}} function f(l,h,p){l=+l;h=+h;p=(x=arguments.length)<2?(h=l,l=0,1):x<3?1:+p;for(var u=-1,x=Math.max(0,Math.ceil((h-l)/p))|0,z=Array(x);++u0)return[l];if(u=h0)for(l=Math.ceil(l/z),h=Math.floor(h/z),h=Array(A=Math.ceil(h-l+1));++x=0?(h>=Zn?10:h>=$n?5:h>=ao?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=Zn?10:h>=$n?5:h>=ao?2:1)} function r(l,h,p){var u=Math.abs(h-l)/Math.max(0,p);p=Math.pow(10,Math.floor(Math.log(u)/Math.LN10));u/=p;u>=Zn?p*=10:u>=$n?p*=5:u>=ao&&(p*=2);return h=0&&(u=p.slice(x+1),p=p.slice(0,x));if(p&&!h.hasOwnProperty(p))throw Error("unknown type: "+p);return{type:p,name:u}})} function ma(l,h,p){for(var u=0,x=l.length;u=0&&(h=l.slice(0,p))!=="xmlns"&&(l=l.slice(p+1));return se.hasOwnProperty(h)?{space:se[h],local:l}:l} function sa(l){return function(){var h=this.ownerDocument,p=this.namespaceURI;return p==="http://www.w3.org/1999/xhtml"&&h.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?h.createElement(l):h.createElementNS(p,l)}} function ua(l){return function(){return this.ownerDocument.createElementNS(l.space,l.local)}} function ta(l){l=na(l);return(l.local?ua:sa)(l)} function Ba(){} function ya(l){return l==null?Ba:function(){return this.querySelector(l)}} function Aa(){return[]} function Ca(l){return l==null?Aa:function(){return this.querySelectorAll(l)}} function Fa(l){return Array(l.length)} function Ea(l,h){this.ownerDocument=l.ownerDocument;this.namespaceURI=l.namespaceURI;this.Qc=null;this.rg=l;this.__data__=h} function Ja(l){return function(){return l}} function Ka(l,h,p,u,x,z){for(var A=0,la,oa=h.length,ra=z.length;Ah?1:l>=h?0:NaN} function Qa(l){return function(){this.removeAttribute(l)}} function Wa(l){return function(){this.removeAttributeNS(l.space,l.local)}} function Db(l,h){return function(){this.setAttribute(l,h)}} function Eb(l,h){return function(){this.setAttributeNS(l.space,l.local,h)}} function Fb(l,h){return function(){var p=h.apply(this,arguments);p==null?this.removeAttribute(l):this.setAttribute(l,p)}} function Gb(l,h){return function(){var p=h.apply(this,arguments);p==null?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,p)}} function Hb(l){return function(){this.style.removeProperty(l)}} function Ib(l,h,p){return function(){this.style.setProperty(l,h,p)}} function Jb(l,h,p){return function(){var u=h.apply(this,arguments);u==null?this.style.removeProperty(l):this.style.setProperty(l,u,p)}} function $a(l,h){return l.style.getPropertyValue(h)||(l.ownerDocument&&l.ownerDocument.defaultView||l.document&&l||l.defaultView).getComputedStyle(l,null).getPropertyValue(h)} function Kb(l){return function(){delete this[l]}} function Lb(l,h){return function(){this[l]=h}} function Mb(l,h){return function(){var p=h.apply(this,arguments);p==null?delete this[l]:this[l]=p}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Wi=l;this.Vd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,h){l=fb(l);for(var p=-1,u=h.length;++p=0&&(p=h.slice(u+1),h=h.slice(0,u));return{type:h,name:p}})} function dc(l){return function(){var h=this.__on;if(h){for(var p=0,u=-1,x=h.length,z;p>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=SA.exec(l))?zb(parseInt(h[1],16)):(h=TA.exec(l))?new La(h[1],h[2],h[3],1):(h=UA.exec(l))?new La(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=VA.exec(l))?Ab(h[1],h[2],h[3],h[4]):(h=WA.exec(l))?Ab(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=XA.exec(l))?Bb(h[1],h[2]/100,h[3]/100,1):(h=YA.exec(l))?Bb(h[1],h[2]/100,h[3]/100,h[4]):ju.hasOwnProperty(l)?zb(ju[l]):l==="transparent"?new La(NaN,NaN,NaN,0):null} function zb(l){return new La(l>>16&255,l>>8&255,l&255,1)} function Ab(l,h,p,u){u<=0&&(l=h=p=NaN);return new La(l,h,p,u)} function hb(l){l instanceof Xa||(l=Ya(l));if(!l)return new La;l=l.rgb();return new La(l.r,l.g,l.b,l.opacity)} function cb(l,h,p,u){return arguments.length===1?hb(l):new La(l,h,p,u==null?1:u)} function La(l,h,p,u){this.r=+l;this.g=+h;this.b=+p;this.opacity=+u} function ib(l){l=Math.max(0,Math.min(255,Math.round(l)||0));return(l<16?"0":"")+l.toString(16)} function Bb(l,h,p,u){u<=0?l=h=p=NaN:p<=0||p>=1?l=h=NaN:h<=0&&(l=NaN);return new Ua(l,h,p,u)} function hc(l){if(l instanceof Ua)return new Ua(l.h,l.s,l.l,l.opacity);l instanceof Xa||(l=Ya(l));if(!l)return new Ua;if(l instanceof Ua)return l;l=l.rgb();var h=l.r/255,p=l.g/255,u=l.b/255,x=Math.min(h,p,u),z=Math.max(h,p,u),A=NaN,la=z-x,oa=(z+x)/2;la?(A=h===z?(p-u)/la+(p0&&oa<1?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,h,p,u){return arguments.length===1?hc(l):new Ua(l,h,p,u==null?1:u)} function Ua(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function kb(l,h,p){return(l<60?h+(p-h)*l/60:l<180?p:l<240?h+(p-h)*(240-l)/60:h)*255} function lb(l){if(l instanceof Va)return new Va(l.l,l.a,l.b,l.opacity);if(l instanceof rb){if(isNaN(l.h))return new Va(l.l,0,0,l.opacity);var h=l.h*ku;return new Va(l.l,Math.cos(h)*l.c,Math.sin(h)*l.c,l.opacity)}l instanceof La||(l=hb(l));var p=pb(l.r),u=pb(l.g),x=pb(l.b);h=mb(.2225045*p+.7168786*u+.0606169*x);if(p===u&&u===x)var z=p=h;else z=mb((.4360747*p+.3850649*u+.1430804*x)/.96422),p=mb((.0139322*p+.0971045*u+.7141733*x)/.82521);return new Va(116*h-16,500*(z-h),200*(h-p),l.opacity)} function Va(l,h,p,u){this.l=+l;this.a=+h;this.b=+p;this.opacity=+u} function mb(l){return l>ZA?Math.pow(l,1/3):l/lu+mu} function nb(l){return l>xh?l*l*l:lu*(l-mu)} function ob(l){return 255*(l<=.0031308?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function pb(l){return(l/=255)<=.04045?l/12.92:Math.pow((l+.055)/1.055,2.4)} function ic(l){if(l instanceof rb)return new rb(l.h,l.c,l.l,l.opacity);l instanceof Va||(l=lb(l));if(l.a===0&&l.b===0)return new rb(NaN,0,l.l,l.opacity);var h=Math.atan2(l.b,l.a)*nu;return new rb(h<0?h+360:h,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function qb(l,h,p,u){return arguments.length===1?ic(l):new rb(l,h,p,u==null?1:u)} function rb(l,h,p,u){this.h=+l;this.c=+h;this.l=+p;this.opacity=+u} function db(l,h,p,u){if(arguments.length===1){var x=l;if(x instanceof sb)x=new sb(x.h,x.s,x.l,x.opacity);else{x instanceof La||(x=hb(x));var z=x.g/255,A=x.b/255,la=(ou*A+x.r/255*-1.7884503806-3.5172982438*z)/(ou+-1.7884503806-3.5172982438);A-=la;var oa=(1.97294*(z-la)- -.29227*A)/-.90649;A=(z=Math.sqrt(oa*oa+A*A)/(1.97294*la*(1-la)))?Math.atan2(oa,A)*nu-120:NaN;x=new sb(A<0?A+360:A,z,la,x.opacity)}}else x=new sb(l,h,p,u==null?1:u);return x} function sb(l,h,p,u){this.h=+l;this.s=+h;this.l=+p;this.opacity=+u} function lc(l,h,p,u,x){var z=l*l,A=z*l;return((1-3*l+3*z-A)*h+(4-6*z+3*A)*p+(1+3*l+3*z-3*A)*u+A*x)/6} function pc(l){return function(){return l}} function uc(l,h){return function(p){return l+p*h}} function zc(l,h,p){return l=Math.pow(l,p),h=Math.pow(h,p)-l,p=1/p,function(u){return Math.pow(l+u*h,p)}} function rc(l,h){var p=h-l;return p?uc(l,p>180||p<-180?p-360*Math.round(p/360):p):pc(isNaN(l)?h:l)} function Ac(l){return(l=+l)===1?Cb:function(h,p){return p-h?zc(h,p,l):pc(isNaN(h)?p:h)}} function Cb(l,h){var p=h-l;return p?uc(l,p):pc(isNaN(l)?h:l)} function Gc(l){return function(h){var p=h.length,u=Array(p),x=Array(p),z=Array(p),A;for(A=0;A

p&&(z=h.slice(p,z),la[A]?la[A]+=z:la[++A]=z),(u=u[0])===(x=x[0])?la[A]?la[A]+=x:la[++A]=x:(la[++A]=null,oa.push({td:A,x:nc(u,x)})),p=co.lastIndex;p180?qa+=360:qa-ra>180&&(ra+=360),wa.push({td:pa.push(x(pa)+"rotate(",null,u)-2,x:nc(ra,qa)})):qa&&pa.push(x(pa)+"rotate("+qa+u)} function la(ra,qa,pa,wa){ra!==qa?wa.push({td:pa.push(x(pa)+"skewX(",null,u)-2,x:nc(ra,qa)}):qa&&pa.push(x(pa)+"skewX("+qa+u)} function oa(ra,qa,pa,wa,Da,Ha){ra!==pa||qa!==wa?(Da=Da.push(x(Da)+"scale(",null,",",null,")"),Ha.push({td:Da-4,x:nc(ra,pa)},{td:Da-2,x:nc(qa,wa)})):pa===1&&wa===1||Da.push(x(Da)+"scale("+pa+","+wa+")")} return function(ra,qa){var pa=[],wa=[];ra=l(ra);qa=l(qa);z(ra.Ki,ra.Li,qa.Ki,qa.Li,pa,wa);A(ra.rotate,qa.rotate,pa,wa);la(ra.skewX,qa.skewX,pa,wa);oa(ra.ai,ra.bi,qa.ai,qa.bi,pa,wa);ra=qa=null;return function(Da){for(var Ha=-1,jc=wa.length,eb;++Ha=0&&l.uf.call(null,h),l=l.Qc;--yh}finally{yh=0;l=Kk;for(var p=Infinity;l;)if(l.uf){p>l.wf&&(p=l.wf);var u=l;l=l.Qc}else h=l.Qc,l.Qc=null,l=u?u.Qc=h:Kk=h;Oi=u;wf(p);Bg=0}} function Xe(){var l=Mi.now(),h=l-Jk;h>1E3&&(Ik-=h,Jk=l)} function wf(l){yh||(Ni&&(Ni=clearTimeout(Ni)),l-Bg>24?(l0)throw Error("too late; already scheduled");return l} function Ye(l,h){l=ke(l,h);if(l.state>2)throw Error("too late; already started");return l} function ke(l,h){l=l.Bd;if(!l||!(l=l[h]))throw Error("transition not found");return l} function wk(l,h,p){function u(oa){var ra,qa;if(p.state!==1)return z();for(wa in A){var pa=A[wa];if(pa.name===p.name){if(pa.state===3)return Di(u);pa.state===4?(pa.state=6,pa.timer.stop(),pa.on.call("interrupt",l,l.__data__,pa.index,pa.group),delete A[wa]):+wa=0&&(h=h.slice(0,p));return!h||h==="start"})} function $d(l,h,p){var u,x,z=ye(h)?qe:Ye;return function(){var A=z(this,l),la=A.on;if(la!==u)(x=(u=la).copy()).on(h,p);A.on=x}} function Uf(l){return function(){var h=this.parentNode,p;for(p in this.Bd)if(+p!==l)return;h&&h.removeChild(this)}} function qh(l,h){var p,u,x;return function(){var z=$a(this,l),A=(this.style.removeProperty(l),$a(this,l));return z===A?null:z===p&&A===u?x:x=h(p=z,u=A)}} function ee(l){return function(){this.style.removeProperty(l)}} function Hn(l,h,p){var u,x;return function(){var z=$a(this,l);return z===p?null:z===u?x:x=h(u=z,p)}} function bB(l,h,p){var u,x,z;return function(){var A=$a(this,l),la=p(this);la==null&&(la=(this.style.removeProperty(l),$a(this,l)));return A===la?null:A===u&&la===x?z:z=h(u=A,x=la)}} function cB(l,h,p){function u(){var x=this,z=h.apply(x,arguments);return z&&function(A){x.style.setProperty(l,z(A),p)}} u.ug=h;return u} function dB(l){return function(){this.textContent=l}} function eB(l){return function(){var h=l(this);this.textContent=h==null?"":h}} function Af(l,h,p,u){this.mb=l;this.bc=h;this.ze=p;this.Sb=u} function eo(l){return{type:l}} function fo(){this.Pa=this.Ra=this.Aa=this.Ea=null;this.Ga=""} function Lk(){return new fo} function Mk(){} function Nk(l,h){var p=new Mk;if(l instanceof Mk)l.each(function(A,la){p.set(la,A)});else if(Array.isArray(l)){var u=-1,x=l.length,z;if(h==null)for(;++u=qa?Ha=!0:(tc=A.charCodeAt(pa++))===10?jc=!0:tc===13&&(jc=!0,A.charCodeAt(pa)===10&&++pa);return A.slice(Tc+1,Pc-1).replace(/""/g,'"')}for(;pa=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa,x=z,!(z=z[Ha=Da<<1|wa]))return x[Ha]=u,l;var jc=+l.Bb.call(null,z.data);var eb=+l.Fb.call(null,z.data);if(h===jc&&p===eb)return u.next=z,x?x[Ha]=u:l.tb=u,l;do x=x?x[Ha]=Array(4):l.tb=Array(4),(wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=p>=(pa=(la+ra)/2))?la=pa:ra=pa;while((Ha= Da<<1|wa)===(wa=(eb>=pa)<<1|jc>=qa));return x[wa]=z,x[Ha]=u,l} function fe(l,h,p,u,x){this.node=l;this.x0=h;this.y0=p;this.x1=u;this.y1=x} function iB(l){return l[0]} function jB(l){return l[1]} function ho(l,h,p,u,x,z){this.Bb=l;this.Fb=h;this.Pa=p;this.Ra=u;this.Aa=x;this.Ea=z;this.tb=void 0} function wu(l){for(var h={data:l.data},p=h;l=l.next;)p=p.next={data:l.data};return h} function Pk(l,h){if((h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e"))<0)return null;var p=l.slice(0,h);return[p.length>1?p[0]+p.slice(2):p,+l.slice(h+1)]} function zh(l){return l=Pk(Math.abs(l)),l?l[1]:NaN} function kB(l,h){return function(p,u){for(var x=p.length,z=[],A=0,la=l[0],oa=0;x>0&&la>0;){oa+la+1>u&&(la=Math.max(1,u-oa));z.push(p.substring(x-=la,x+la));if((oa+=la+1)>u)break;la=l[A=(A+1)%l.length]}return z.reverse().join(h)}} function lB(l){return function(h){return h.replace(/[0-9]/g,function(p){return l[+p]})}} function Qk(l){return new io(l)} function io(l){if(!(h=mB.exec(l)))throw Error("invalid format: "+l);var h;this.fill=h[1]||" ";this.align=h[2]||">";this.sign=h[3]||"-";this.symbol=h[4]||"";this.zero=!!h[5];this.width=h[6]&&+h[6];this.comma=!!h[7];this.precision=h[8]&&+h[8].slice(1);this.trim=!!h[9];this.type=h[10]||""} function xu(l,h){h=Pk(l,h);if(!h)return l+"";l=h[0];h=h[1];return h<0?"0."+Array(-h).join("0")+l:l.length>h+1?l.slice(0,h+1)+"."+l.slice(h+1):l+Array(h-l.length+2).join("0")} function yu(l){return l} function nB(l){function h(la){function oa(Ma){var Rc=tc,Ia=Oc,Ta;if(Tc==="c")Ia=ad(Ma)+Ia,Ma="";else{Ma=+Ma;var Ga=Ma<0;Ma=ad(Math.abs(Ma),eb);if(Pc){var Na=Ma.length;var Zc=1,yd=-1,Dd;a:for(;Zc0&&(yd=0)}Ma=yd>0?Ma.slice(0,yd)+Ma.slice(Dd+1):Ma}Ga&&+Ma===0&&(Ga=!1);Rc=(Ga?pa==="("?pa:"-":pa==="-"||pa==="("?"":pa)+Rc;Ia=(Tc==="s"?zu[8+Au/3]:"")+Ia+(Ga&&pa==="("?")":"");if(Qc)for(Ga=-1,Na=Ma.length;++GaTa||Ta>57){Ia=(Ta===46?x+Ma.slice(Ga+1):Ma.slice(Ga))+Ia;Ma=Ma.slice(0,Ga);break}}jc&&!Da&&(Ma=p(Ma,Infinity));Ta=Rc.length+Ma.length+Ia.length;Ga=Ta>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=Qk(la);var ra=la.fill,qa=la.align,pa=la.sign,wa=la.symbol,Da=la.zero,Ha=la.width,jc=la.comma,eb=la.precision,Pc=la.trim,Tc=la.type;Tc==="n"?(jc=!0,Tc="g"):Bu[Tc]||(eb==null&&(eb=12),Pc=!0,Tc="g");if(Da||ra==="0"&&qa==="=")Da=!0,ra="0",qa="=";var tc=wa==="$"?u[0]:wa==="#"&&/[boxX]/.test(Tc)?"0"+Tc.toLowerCase():"",Oc=wa==="$"?u[1]:/[%p]/.test(Tc)?A:"",ad=Bu[Tc],Qc=/[defgprs%]/.test(Tc);eb=eb==null?6:/[gprs]/.test(Tc)?Math.max(1,Math.min(21,eb)):Math.max(0,Math.min(20,eb));oa.toString=function(){return la+ ""};return oa} var p=l.grouping&&l.thousands?kB(l.grouping,l.thousands):yu,u=l.currency,x=l.decimal,z=l.numerals?lB(l.numerals):yu,A=l.percent||"%";return{format:h,formatPrefix:function(la,oa){var ra=h((la=Qk(la),la.type="f",la));la=Math.max(-8,Math.min(8,Math.floor(zh(oa)/3)))*3;var qa=Math.pow(10,-la),pa=zu[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function Ge(){this.reset()} function Cu(l,h,p){var u=l.s=h+p,x=u-h;l.t=h-(u-x)+(p-x)} function Rk(l){return l>1?Ae:l<-1?-Ae:Math.asin(l)} function oB(){} function Du(l){var h=l[0];l=l[1];var p=Be(l);return[p*Be(h),p*ae(h),ae(l)]} function Eu(l,h){return[l[1]*h[2]-l[2]*h[1],l[2]*h[0]-l[0]*h[2],l[0]*h[1]-l[1]*h[0]]} function Fu(l){var h=Sk(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function pB(){var l=[],h;return{point:function(p,u){h.push([p,u])},lineStart:function(){l.push(h=[])},lineEnd:oB,kr:function(){l.length>1&&l.push(l.pop().concat(l.shift()))},result:function(){var p=l;l=[];h=null;return p}}} function Tk(l,h,p,u){this.x=l;this.z=h;this.Vg=p;this.e=u;this.kh=!1;this.n=this.p=null} function qB(l,h,p,u,x){var z=[],A=[];l.forEach(function(pa){if(!((wa=pa.length-1)<=0)){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(Yf(jc[0]-Ha[0])<1E-6&&Yf(jc[1]-Ha[1])<1E-6){x.lineStart();for(la=0;la=0;--la)x.point((oa=h[la])[0],oa[1]);else u(ra.x,ra.p.x,-1,x);ra=ra.p}ra=ra.Vg;h=ra.z;qa=!qa}while(!ra.kh);x.lineEnd()}}} function Gu(l){if(h=l.length){for(var h,p=0,u=l[0],x;++p1} function sB(l,h){return((l=l.x)[0]<0?l[1]-Ae-1E-6:Ae-l[1])-((h=h.x)[0]<0?h[1]-Ae-1E-6:Ae-h[1])} function jo(){} function Hu(l){return function(h,p){var u=Be(h),x=Be(p);u=l(u*x);return[u*x*ae(h),u*ae(p)]}} function Qi(l){return function(h,p){var u=Sk(h*h+p*p),x=l(u),z=ae(x);x=Be(x);return[Iu(h*z,u*x),Rk(u&&p*z/u)]}} function tB(l){var h=0,p=l.children,u=p&&p.length;if(u)for(;--u>=0;)h+=p[u].value;else h=1;l.value=h} function Ju(l,h){var p=new Ri(l);l=+l.value&&(p.value=l.value);var u,x=[p],z,A,la,oa;for(h==null&&(h=uB);u=x.pop();)if(l&&(u.value=+u.data.value),(A=h(u.data))&&(oa=A.length))for(u.children=Array(oa),la=oa-1;la>=0;--la)x.push(z=u.children[la]=new Ri(A[la])),z.parent=u,z.depth=u.depth+1;return p.eachBefore(vB)} function uB(l){return l.children} function wB(l){l.data=l.data.data} function vB(l){var h=0;do l.height=h;while((l=l.parent)&&l.height<++h)} function Ri(l){this.data=l;this.depth=this.height=0;this.parent=null} function ko(l){function h(z){var A=z+"",la=p.get(A);if(!la){if(x!==Ku)return x;p.set(A,la=u.push(z))}return l[(la-1)%l.length]} var p=Nk(),u=[],x=Ku;l=l==null?[]:Uk.call(l);h.domain=function(z){if(!arguments.length)return u.slice();u=[];p=Nk();for(var A=-1,la=z.length,oa,ra;++A=p?1:u(x)}}} function zB(l){return function(h,p){var u=l(h=+h,p=+p);return function(x){return x<=0?h:x>=1?p:u(x)}}} function AB(l,h,p,u){var x=l[0];l=l[1];var z=h[0];h=h[1];l2?BB:AB;ra=qa=null;return u} function u(pa){return(ra||(ra=oa(x,z,la?yB(l):l,A)))(+pa)} var x=Nu,z=Nu,A=qc,la=!1,oa,ra,qa;u.invert=function(pa){return(qa||(qa=oa(z,x,mo,la?zB(h):h)))(+pa)};u.domain=function(pa){return arguments.length?(x=Ou.call(pa,xB),p()):x.slice()};u.range=function(pa){return arguments.length?(z=Uk.call(pa),p()):z.slice()};u.rangeRound=function(pa){return z=Uk.call(pa),A=Ec,p()};u.clamp=function(pa){return arguments.length?(la=!!pa,p()):la};u.interpolate=function(pa){return arguments.length?(A=pa,p()):A};return p()} function DB(l){var h=l.domain;l.ticks=function(p){var u=h();return k(u[0],u[u.length-1],p==null?10:p)};l.tickFormat=function(p,u){a:{var x=h(),z=x[0];x=x[x.length-1];p=r(z,x,p==null?10:p);u=Qk(u==null?",f":u);switch(u.type){case "s":z=Math.max(Math.abs(z),Math.abs(x));if(x=u.precision==null){var A=isNaN;p=Math.max(0,Math.max(-8,Math.min(8,Math.floor(zh(z)/3)))*3-zh(Math.abs(p)));x=!A(A=p)}x&&(u.precision=A);u=MA(u,z);break a;case "":case "e":case "g":case "p":case "r":var la;if(la=u.precision==null)A=isNaN,z=Math.max(Math.abs(z),Math.abs(x)),p=Math.abs(p),z=Math.abs(z)-p,p=Math.max(0,zh(z)-zh(p))+ 1,la=!A(A=p);la&&(u.precision=A-(u.type==="e"));break;case "f":case "%":u.precision!=null||isNaN(A=Math.max(0,-zh(Math.abs(p))))||(u.precision=A-(u.type==="%")*2)}u=th(u)}return u};l.nice=function(p){p==null&&(p=10);var u=h(),x=0,z=u.length-1,A=u[x],la=u[z];if(la0?(A=Math.floor(A/oa)*oa,la=Math.ceil(la/oa)*oa,oa=n(A,la,p)):oa<0&&(A=Math.ceil(A*oa)/oa,la=Math.floor(la*oa)/oa,oa=n(A,la,p));oa>0?(u[x]=Math.floor(A/oa)*oa,u[z]=Math.ceil(la/oa)*oa,h(u)):oa<0&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,h(u));return l};return l} function Pu(){var l=oo(mo,nc);l.copy=function(){return no(l,Pu())};return DB(l)} function Qu(l,h){l=l.slice();var p=0,u=l.length-1,x=l[p],z=l[u];if(z0)for(;qala)break;A.push(Ha)}}}else for(;qa=1;--Da){if(Ha=wa*Da,!(Hala)break;A.push(Ha)}}else A=k(qa,pa,Math.min(pa-qa,wa)).map(z);return ra?A.reverse():A};h.tickFormat=function(A,la){la==null&&(la=u===10?".0e":",");typeof la!=="function"&&(la=th(la));if(A===Infinity)return la;A==null&&(A=10);var oa=Math.max(1,u*A/h.ticks().length);return function(ra){var qa=ra/z(Math.round(x(ra)));qa*u0))return oa;do oa.push(ra=new Date(+z)),h(z,la),l(z);while(ra=A)for(;l(A),!z(A);)A.setTime(A-1)},function(A,la){if(A>=A)if(la<0)for(;++la<=0;)for(;h(A,-1),!z(A););else for(;--la>=0;)for(;h(A,1),!z(A););})};p&&(x.count=function(z,A){po.setTime(+z);qo.setTime(+A);l(po);l(qo);return Math.floor(p(po,qo))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&z>0?z>1?x.filter(u?function(A){return u(A)%z===0}:function(A){return x.count(0,A)%z===0}):x:null});return x} function Cg(l){return Rd(function(h){h.setDate(h.getDate()-(h.getDay()+7-l)%7);h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p*7)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/6048E5})} function Dg(l){return Rd(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-l)%7);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p*7)},function(h,p){return(p-h)/6048E5})} function HB(l){if(0<=l.y&&l.y<100){var h=new Date(-1,l.m,l.d,l.jd,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.jd,l.M,l.S,l.L)} function Vk(l){if(0<=l.y&&l.y<100){var h=new Date(Date.UTC(-1,l.m,l.d,l.jd,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.jd,l.M,l.S,l.L))} function Si(l){return{y:l,m:0,d:1,jd:0,M:0,S:0,L:0}} function IB(l){function h(Ia,Ta){return function(Ga){var Na=[],Zc=-1,yd=0,Dd=Ia.length,pd,te;for(Ga instanceof Date||(Ga=new Date(+Ga));++Zc

53)return null;"w"in Na||(Na.w=1);if("Z"in Na){Ga=Vk(Si(Na.y));var Zc=Ga.getUTCDay();Ga=Zc>4||Zc===0?ro.ceil(Ga):ro(Ga);Ga=Wu.offset(Ga,(Na.mg-1)*7);Na.y=Ga.getUTCFullYear();Na.m=Ga.getUTCMonth();Na.d=Ga.getUTCDate()+(Na.w+6)%7}else Ga=Ta(Si(Na.y)),Zc=Ga.getDay(),Ga=Zc>4||Zc===0?so.ceil(Ga):so(Ga),Ga=to.offset(Ga,(Na.mg-1)*7),Na.y=Ga.getFullYear(),Na.m=Ga.getMonth(),Na.d=Ga.getDate()+(Na.w+6)%7}else if("W"in Na||"U"in Na)"w"in Na||(Na.w="u"in Na?Na.ep%7:"W"in Na?1:0),Zc="Z"in Na?Vk(Si(Na.y)).getUTCDay():Ta(Si(Na.y)).getDay(),Na.m=0,Na.d="W"in Na?(Na.w+6)%7+Na.W*7-(Zc+5)%7:Na.w+Na.U*7-(Zc+6)%7;return"Z"in Na?(Na.jd+=Na.Z/100|0,Na.M+=Na.Z%100,Vk(Na)):Ta(Na)}} function u(Ia,Ta,Ga,Na){for(var Zc=0,yd=Ta.length,Dd=Ga.length,pd;Zc=Dd)return-1;pd=Ta.charCodeAt(Zc++);if(pd===37){if(pd=Ta.charAt(Zc++),pd=Rc[pd in Vu?Ta.charAt(Zc++):pd],!pd||(Na=pd(Ia,Ga,Na))<0)return-1}else if(pd!=Ga.charCodeAt(Na++))return-1}return Na} var x=l.dateTime,z=l.date,A=l.time,la=l.periods,oa=l.days,ra=l.shortDays,qa=l.months,pa=l.shortMonths,wa=Ti(la),Da=Ui(la),Ha=Ti(oa),jc=Ui(oa),eb=Ti(ra),Pc=Ui(ra),Tc=Ti(qa),tc=Ui(qa),Oc=Ti(pa),ad=Ui(pa),Qc={a:function(Ia){return ra[Ia.getDay()]},A:function(Ia){return oa[Ia.getDay()]},b:function(Ia){return pa[Ia.getMonth()]},B:function(Ia){return qa[Ia.getMonth()]},c:null,d:Xu,e:Xu,f:JB,H:KB,I:LB,j:MB,L:Yu,m:NB,M:OB,p:function(Ia){return la[+(Ia.getHours()>=12)]},Q:Zu,s:$u,S:PB,u:QB,U:RB,V:SB,w:TB,W:UB,x:null,X:null,y:VB,Y:WB,Z:XB,"%":av},Ma={a:function(Ia){return ra[Ia.getUTCDay()]},A:function(Ia){return oa[Ia.getUTCDay()]},b:function(Ia){return pa[Ia.getUTCMonth()]},B:function(Ia){return qa[Ia.getUTCMonth()]},c:null,d:bv,e:bv,f:YB,H:ZB,I:$B,j:aC,L:cv,m:bC,M:cC,p:function(Ia){return la[+(Ia.getUTCHours()>=12)]},Q:Zu,s:$u,S:dC,u:eC,U:fC,V:gC,w:hC,W:iC,x:null,X:null,y:jC,Y:kC,Z:lC,"%":av},Rc={a:function(Ia,Ta,Ga){return(Ta=eb.exec(Ta.slice(Ga)))?(Ia.w=Pc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},A:function(Ia,Ta,Ga){return(Ta=Ha.exec(Ta.slice(Ga)))?(Ia.w=jc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},b:function(Ia,Ta,Ga){return(Ta=Oc.exec(Ta.slice(Ga)))?(Ia.m=ad[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},B:function(Ia,Ta,Ga){return(Ta=Tc.exec(Ta.slice(Ga)))?(Ia.m=tc[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},c:function(Ia,Ta,Ga){return u(Ia,x,Ta,Ga)},d:dv,e:dv,f:mC,H:ev,I:ev,j:nC,L:oC,m:pC,M:qC,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:rC,s:sC,S:tC,u:uC,U:vC,V:wC,w:xC,W:yC,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:zC,Y:AC,Z:BC,"%":CC};Qc.x=h(z,Qc);Qc.X=h(A,Qc);Qc.c=h(x,Qc);Ma.x=h(z,Ma);Ma.X=h(A,Ma);Ma.c=h(x,Ma);return{format:function(Ia){var Ta=h(Ia+="",Qc);Ta.toString=function(){return Ia};return Ta},parse:function(Ia){var Ta=p(Ia+="",HB);Ta.toString=function(){return Ia};return Ta},utcFormat:function(Ia){var Ta=h(Ia+="",Ma);Ta.toString=function(){return Ia};return Ta},utcParse:function(Ia){var Ta=p(Ia,Vk);Ta.toString=function(){return Ia};return Ta}}} function sd(l,h,p){var u=l<0?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x

68?1900:2E3),p+h[0].length):-1} function BC(l,h,p){return(h=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(h.slice(p,p+6)))?(l.Z=h[1]?0:-(h[2]+(h[3]||"00")),p+h[0].length):-1} function pC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.m=h[0]-1,p+h[0].length):-1} function dv(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.d=+h[0],p+h[0].length):-1} function nC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.m=0,l.d=+h[0],p+h[0].length):-1} function ev(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.jd=+h[0],p+h[0].length):-1} function qC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.M=+h[0],p+h[0].length):-1} function tC(l,h,p){return(h=Wd.exec(h.slice(p,p+2)))?(l.S=+h[0],p+h[0].length):-1} function oC(l,h,p){return(h=Wd.exec(h.slice(p,p+3)))?(l.L=+h[0],p+h[0].length):-1} function mC(l,h,p){return(h=Wd.exec(h.slice(p,p+6)))?(l.L=Math.floor(h[0]/1E3),p+h[0].length):-1} function CC(l,h,p){return(l=FC.exec(h.slice(p,p+1)))?p+l[0].length:-1} function rC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0],p+h[0].length):-1} function sC(l,h,p){return(h=Wd.exec(h.slice(p)))?(l.Q=+h[0]*1E3,p+h[0].length):-1} function Xu(l,h){return sd(l.getDate(),h,2)} function KB(l,h){return sd(l.getHours(),h,2)} function LB(l,h){return sd(l.getHours()%12||12,h,2)} function MB(l,h){return sd(1+to.count(Eg(l),l),h,3)} function Yu(l,h){return sd(l.getMilliseconds(),h,3)} function JB(l,h){return Yu(l,h)+"000"} function NB(l,h){return sd(l.getMonth()+1,h,2)} function OB(l,h){return sd(l.getMinutes(),h,2)} function PB(l,h){return sd(l.getSeconds(),h,2)} function QB(l){l=l.getDay();return l===0?7:l} function RB(l,h){return sd(fv.count(Eg(l),l),h,2)} function SB(l,h){var p=l.getDay();l=p>=4||p===0?uo(l):uo.ceil(l);return sd(uo.count(Eg(l),l)+(Eg(l).getDay()===4),h,2)} function TB(l){return l.getDay()} function UB(l,h){return sd(so.count(Eg(l),l),h,2)} function VB(l,h){return sd(l.getFullYear()%100,h,2)} function WB(l,h){return sd(l.getFullYear()%1E4,h,4)} function XB(l){l=l.getTimezoneOffset();return(l>0?"-":(l*=-1,"+"))+sd(l/60|0,"0",2)+sd(l%60,"0",2)} function bv(l,h){return sd(l.getUTCDate(),h,2)} function ZB(l,h){return sd(l.getUTCHours(),h,2)} function $B(l,h){return sd(l.getUTCHours()%12||12,h,2)} function aC(l,h){return sd(1+Wu.count(Ah(l),l),h,3)} function cv(l,h){return sd(l.getUTCMilliseconds(),h,3)} function YB(l,h){return cv(l,h)+"000"} function bC(l,h){return sd(l.getUTCMonth()+1,h,2)} function cC(l,h){return sd(l.getUTCMinutes(),h,2)} function dC(l,h){return sd(l.getUTCSeconds(),h,2)} function eC(l){l=l.getUTCDay();return l===0?7:l} function fC(l,h){return sd(GC.count(Ah(l),l),h,2)} function gC(l,h){var p=l.getUTCDay();l=p>=4||p===0?vo(l):vo.ceil(l);return sd(vo.count(Ah(l),l)+(Ah(l).getUTCDay()===4),h,2)} function hC(l){return l.getUTCDay()} function iC(l,h){return sd(ro.count(Ah(l),l),h,2)} function jC(l,h){return sd(l.getUTCFullYear()%100,h,2)} function kC(l,h){return sd(l.getUTCFullYear()%1E4,h,4)} function lC(){return"+0000"} function av(){return"%"} function Zu(l){return+l} function $u(l){return Math.floor(+l/1E3)} function HC(l){return new Date(l)} function IC(l){return l instanceof Date?+l:+new Date(+l)} function gv(l,h,p,u,x,z,A,la,oa){function ra(Ma){return(A(Ma)=1?Xk:l<=-1?-Xk:Math.asin(l)} function KC(l){return l.innerRadius} function LC(l){return l.outerRadius} function MC(l){return l.startAngle} function NC(l){return l.endAngle} function OC(l){return l&&l.padAngle} function Yk(l,h,p,u,x,z,A){var la=l-p,oa=h-u;A=(A?z:-z)/Bh(la*la+oa*oa);oa*=A;la*=-A;var ra=l+oa,qa=h+la,pa=p+oa,wa=u+la;p=(ra+pa)/2;u=(qa+wa)/2;h=pa-ra;l=wa-qa;A=h*h+l*l;z=x-z;wa=ra*wa-pa*qa;var Da=(l<0?-1:1)*Bh(PC(0,z*z*A-wa*wa));ra=(wa*l-h*Da)/A;qa=(-wa*h-l*Da)/A;pa=(wa*l+h*Da)/A;h=(-wa*h+l*Da)/A;l=ra-p;A=qa-u;p=pa-p;u=h-u;l*l+A*A>p*p+u*u&&(ra=pa,qa=h);return{cx:ra,cy:qa,ad:-oa,hd:-la,Sd:ra*(x/z-1),Td:qa*(x/z-1)}} function iv(l){this.Fa=l} function Zk(l){return new iv(l)} function jv(l){return l[0]} function kv(l){return l[1]} function lv(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;x==null&&(A=z(wa=Lk()));for(oa=0;oa<=ra;++oa)!(oal?1:h>=l?0:NaN} function RC(l){return l} function mv(l){this.ye=l} function nv(l,h,p){l.Fa.bezierCurveTo((2*l.Pa+l.Aa)/3,(2*l.Ra+l.Ea)/3,(l.Pa+2*l.Aa)/3,(l.Ra+2*l.Ea)/3,(l.Pa+4*l.Aa+h)/6,(l.Ra+4*l.Ea+p)/6)} function ov(l){this.Fa=l} function pv(l,h,p){l.Fa.bezierCurveTo(l.Aa+l.qg*(l.Ae-l.Pa),l.Ea+l.qg*(l.Be-l.Ra),l.Ae+l.qg*(l.Aa-h),l.Be+l.qg*(l.Ea-p),l.Ae,l.Be)} function qv(l,h){this.Fa=l;this.qg=(1-h)/6} function rv(l,h,p){var u=l.Aa-l.Pa;h-=l.Aa;var x=(l.Ea-l.Ra)/(u||h<0&&-0);l=(p-l.Ea)/(h||u<0&&-0);return((x<0?-1:1)+(l<0?-1:1))*Math.min(Math.abs(x),Math.abs(l),.5*Math.abs((x*h+l*u)/(u+h)))||0} function sv(l,h){var p=l.Aa-l.Pa;return p?(3*(l.Ea-l.Ra)/p-h)/2:h} function wo(l,h,p){var u=l.Pa,x=l.Aa,z=l.Ea,A=(x-u)/3;l.Fa.bezierCurveTo(u+A,l.Ra+A*h,x-A,z-A*p,x,z)} function $k(l){this.Fa=l} function tv(l){this.Fa=new uv(l)} function uv(l){this.Fa=l} function vv(l){this.Fa=l} function wv(l){var h,p=l.length-1,u=Array(p),x=Array(p),z=Array(p);u[0]=0;x[0]=2;z[0]=l[0]+2*l[1];for(h=1;h=0;--h)u[h]=(z[h]-u[h+1])/x[h];x[p-1]=(l[p]+u[p-1])/2;for(h=0;h0)for(var p=Array(x),u=0,x,z;u=0&&(this.Vd.splice(l,1),this.Wi.setAttribute("class",this.Vd.join(" ")))},contains:function(l){return this.Vd.indexOf(l)>=0}};var hu={};vi=null;typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(hu={mouseenter:"mouseover",mouseleave:"mouseout"}));var iu=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){typeof l!=="function"&&(l=ya(l));for(var h=this.mb,p=h.length,u=Array(p),x=0;x

=pa&&(pa=qa+1);!(Pc=eb[pa])&&++pa=0;)if(A=u[x])z&&z!==A.nextSibling&&z.parentNode.insertBefore(A,z),z=A;return this},sort:function(l){function h(pa,wa){return pa&&wa?l(pa.__data__,wa.__data__):!pa-!wa} l||(l=Pa);for(var p=this.mb,u=p.length,x=Array(u),z=0;z1?this.each((h==null?Hb:typeof h==="function"?Jb:Ib)(l,h,p==null?"":p)):$a(this.node(),l)},property:function(l,h){return arguments.length>1?this.each((h==null?Kb:typeof h==="function"?Mb:Lb)(l,h)):this.node()[l]},classed:function(l,h){var p=(l+"").trim().split(/^|\s+/);if(arguments.length<2){for(var u=fb(this.node()),x=-1,z=p.length;++x=240?l-240:l+120,h,p),kb(l,h,p),kb(l<120?l+240:l-120,h,p),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var ku=Math.PI/180,nu=180/Math.PI,mu=4/29,xh=6/29,lu=3*xh*xh,ZA=xh*xh*xh;ab(Va,function(l,h,p,u){return arguments.length===1?lb(l):new Va(l,h,p,u==null?1:u)},bb(Xa,{brighter:function(l){return new Va(this.l+18*(l==null?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Va(this.l-18*(l==null?1:l),this.a,this.b,this.opacity)},rgb:function(){var l=(this.l+16)/116,h=isNaN(this.a)?l:l+this.a/500,p=isNaN(this.b)?l:l-this.b/200;h=.96422*nb(h);l=1*nb(l);p=.82521*nb(p);return new La(ob(3.1338561*h-1.6168667*l-.4906146*p),ob(-.9787684*h+1.9161415*l+.033454*p),ob(.0719453*h-.2289914*l+1.4052427*p),this.opacity)}}));ab(rb,qb,bb(Xa,{brighter:function(l){return new rb(this.h,this.c,this.l+18*(l==null?1:l),this.opacity)},darker:function(l){return new rb(this.h,this.c,this.l-18*(l==null?1:l),this.opacity)},rgb:function(){return lb(this).rgb()}}));var ou=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=l==null?Ch:Math.pow(Ch,l);return new sb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=l==null?.7:Math.pow(.7,l);return new sb(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=isNaN(this.h)?0:(this.h+120)*ku,h=+this.l,p=isNaN(this.s)?0:this.s*h*(1-h),u=Math.cos(l);l=Math.sin(l);return new La(255*(h+p*(-.14861*u+1.78277*l)),255*(h+p*(-.29227*u+-.90649*l)),255*(h+1.97294*u*p),this.opacity)}}));var Hk=function p(h){function u(z,A){var la=x((z=cb(z)).r,(A=cb(A)).r),oa=x(z.g,A.g),ra=x(z.b,A.b),qa=Cb(z.opacity,A.opacity);return function(pa){z.r=la(pa);z.g=oa(pa);z.b=ra(pa);z.opacity=qa(pa);return z+""}} var x=Ac(h);u.gamma=p;return u}(1),JC=Gc(function(h){var p=h.length-1;return function(u){var x=u<=0?u=0:u>=1?(u=1,p-1):Math.floor(u*p),z=h[x],A=h[x+1];return lc((u-x/p)*p,x>0?h[x-1]:2*z-A,z,A,x2&&x.state<5;x.state=6;x.timer.stop();la&&x.on.call("interrupt",this,this.__data__,x.index,x.group);delete u[A]}z&&delete this.Bd}})};Za.prototype.transition=function(h){var p;if(h instanceof Af){var u=h.Sb;h=h.ze}else u=++zv,(p=Ao).time=xg(),h=h==null?null:h+"";for(var x=this.mb,z=x.length,A=0;A1E-6)if(Math.abs(pa*oa-ra*qa)>1E-6&&z){u-=A;x-=la;var Da=oa*oa+ra*ra;la=Math.sqrt(Da);A=Math.sqrt(wa);wa=z*Math.tan((Bo-Math.acos((Da+wa-(u*u+x*x))/(2*la*A)))/2);A=wa/A;wa/=la;Math.abs(A-1)>1E-6&&(this.Ga+="L"+(h+A*qa)+","+(p+A*pa));this.Ga+="A"+z+","+z+",0,0,"+ +(pa*u> qa*x)+","+(this.Aa=h+wa*oa)+","+(this.Ea=p+wa*ra)}else this.Ga+="L"+(this.Aa=h)+","+(this.Ea=p)},arc:function(h,p,u,x,z,A){h=+h;p=+p;u=+u;var la=u*Math.cos(x),oa=u*Math.sin(x),ra=h+la,qa=p+oa,pa=1^A;x=A?x-z:z-x;if(u<0)throw Error("negative radius: "+u);if(this.Aa===null)this.Ga+="M"+ra+","+qa;else if(Math.abs(this.Aa-ra)>1E-6||Math.abs(this.Ea-qa)>1E-6)this.Ga+="L"+ra+","+qa;u&&(x<0&&(x=x%Co+Co),x>WC?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(h-la)+","+(p-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Aa=ra)+","+(this.Ea=qa):x>1E-6&&(this.Ga+="A"+u+","+u+",0,"+ +(x>=Bo)+","+pa+","+(this.Aa=h+u*Math.cos(z))+ ","+(this.Ea=p+u*Math.sin(z))))},rect:function(h,p,u,x){this.Ga+="M"+(this.Pa=this.Aa=+h)+","+(this.Ra=this.Ea=+p)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Mk.prototype=Nk.prototype={constructor:Mk,has:function(h){return" "+h in this},get:function(h){return this[" "+h]},set:function(h,p){this[" "+h]=p;return this},remove:function(h){h=" "+h;return h in this&&delete this[h]},clear:function(){for(var h in this)h[0]===" "&&delete this[h]},keys:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(p.slice(1));return h},values:function(){var h=[],p;for(p in this)p[0]===" "&&h.push(this[p]);return h},entries:function(){var h=[],p;for(p in this)p[0]===" "&&h.push({key:p.slice(1),value:this[p]});return h},size:function(){var h=0,p;for(p in this)p[0]===" "&&++h;return h},empty:function(){for(var h in this)if(h[0]===" ")return!1;return!0},each:function(h){for(var p in this)p[0]===" "&&h(this[p],p.slice(1),this)}};var Fg=Nk.prototype;Ok.prototype=function(h,p){var u=new Ok;if(h instanceof Ok)h.each(function(A){u.add(A)});else if(h){var x=-1,z=h.length;if(p==null)for(;++xpa&&(pa=z),Awa&&(wa=A));pah||h>z||x>p||p>A){var la=z-u,oa=this.tb,ra;switch(ra=(p<(x+A)/2)<<1|h<(u+z)/2){case 0:do{var qa=Array(4);qa[ra]=oa;oa=qa}while(la*=2,z=u+la,A=x+la,h>z||p>A);break;case 1:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,A=x+la,u>h||p>A);break;case 2:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,z=u+la,x=A-la,h>z||x>p);break;case 3:do qa= Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,x=A-la,u>h||x>p)}this.tb&&this.tb.length&&(this.tb=oa)}else return this;this.Pa=u;this.Ra=x;this.Aa=z;this.Ea=A;return this};ge.data=function(){var h=[];this.visit(function(p){if(!p.length){do h.push(p.data);while(p=p.next)}});return h};ge.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Pa)?void 0:[[this.Pa,this.Ra],[this.Aa,this.Ea]]};ge.find=function(h,p,u){var x=this.Pa,z=this.Ra,A,la,oa,ra,qa=this.Aa,pa=this.Ea,wa=[],Da=this.tb,Ha;Da&&wa.push(new fe(Da,x,z,qa,pa));u==null?u=Infinity:(x=h-u,z=p-u,qa=h+u,pa=p+u,u*=u);for(;Ha=wa.pop();)if(!(!(Da=Ha.node)||(A=Ha.x0)>qa||(la=Ha.y0)>pa||(oa=Ha.x1)=jc)<<1|h>=Ha)Ha=wa[wa.length-1],wa[wa.length-1]=wa[wa.length- 1-Da],wa[wa.length-1-Da]=Ha}else if(Ha=h-+this.Bb.call(null,Da.data),jc=p-+this.Fb.call(null,Da.data),Ha=Ha*Ha+jc*jc,Ha=(pa=(z+la)/2))?z=pa:la=pa;(Ha=qa>=(wa=(A+oa)/2))?A=wa:oa=wa;if(!(p=u,u=u[jc=Ha<<1|Da]))return this;if(!u.length)break;if(p[jc+1&3]||p[jc+2&3]||p[jc+3&3]){var eb=p;var Pc=jc}}for(;u.data!==h;)if(!(x=u,u=u.next))return this;(h=u.next)&&delete u.next;if(x)return h?x.next=h:delete x.next,this;if(!p)return this.tb=h,this;h?p[jc]=h:delete p[jc];(u=p[0]||p[1]||p[2]||p[3])&&u===(p[3]||p[2]||p[1]||p[0])&&!u.length&&(eb?eb[Pc]=u:this.tb=u);return this};ge.removeAll=function(h){for(var p=0,u=h.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Qk.prototype=io.prototype;io.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};var Au,Bu={"%":function(h,p){return(h*100).toFixed(p)},b:function(h){return Math.round(h).toString(2)},c:function(h){return h+""},d:function(h){return Math.round(h).toString(10)},e:function(h,p){return h.toExponential(p)},f:function(h,p){return h.toFixed(p)},g:function(h,p){return h.toPrecision(p)},o:function(h){return Math.round(h).toString(8)},p:function(h,p){return xu(h*100,p)},r:xu,s:function(h,p){var u=Pk(h,p);if(!u)return h+"";var x=u[0];u=u[1];u=u-(Au=Math.max(-8,Math.min(8,Math.floor(u/3)))*3)+1;var z=x.length;return u===z?x:u>z?x+Array(u-z+1).join("0"):u>0?x.slice(0,u)+"."+x.slice(u):"0."+Array(1-u).join("0")+Pk(h,Math.max(0,p+u-1))[0]},X:function(h){return Math.round(h).toString(16).toUpperCase()},x:function(h){return Math.round(h).toString(16)}},zu="y z a f p n \u00b5 m k M G T P E Z Y".split(" "),cl;(function(h){cl=nB(h);th=cl.format;MA=cl.formatPrefix;return cl})({decimal:".",thousands:",",grouping:[3],currency:["$",""]});Ge.prototype={constructor:Ge,reset:function(){this.s=this.t=0},add:function(h){Cu(dl,h,this.t);Cu(this,dl.s,this.s);this.s?this.t+=dl.t:this.s=dl.t},valueOf:function(){return this.s}};var dl=new Ge,Ld=Math.PI,Ae=Ld/2,Av=Ld/4,ZC=Ld*2,Do=Ld/180,Yf=Math.abs,Eo=Math.atan,Iu=Math.atan2,Be=Math.cos,ae=Math.sin,Sk=Math.sqrt;new Ge;new Ge;new Ge;var Fo=new Ge;(function(h,p,u,x){return function(z){function A(ad,Qc){h(ad,Qc)&&z.point(ad,Qc)} function la(ad,Qc){Da.point(ad,Qc)} function oa(){Oc.point=la;Da.lineStart()} function ra(){Oc.point=A;Da.lineEnd()} function qa(ad,Qc){tc.push([ad,Qc]);jc.point(ad,Qc)} function pa(){jc.lineStart();tc=[]} function wa(){qa(tc[0][0],tc[0][1]);jc.lineEnd();var ad=jc.Il(),Qc=Ha.result(),Ma=Qc.length,Rc;tc.pop();Pc.push(tc);tc=null;if(Ma)if(ad&1){if(Ma=Qc[0],(Qc=Ma.length-1)>0){eb||(z.polygonStart(),eb=!0);z.lineStart();for(ad=0;ad1&&ad&2&&Qc.push(Qc.pop().concat(Qc.shift())),Tc.push(Qc.filter(rB))} var Da=p(z),Ha=pB(),jc=p(Ha),eb=!1,Pc,Tc,tc,Oc={point:A,lineStart:oa,lineEnd:ra,polygonStart:function(){Oc.point=qa;Oc.lineStart=pa;Oc.lineEnd=wa;Tc=[];Pc=[]},polygonEnd:function(){Oc.point=A;Oc.lineStart=oa;Oc.lineEnd=ra;var ad=Tc,Qc=ad.length;var Ma=-1;for(var Rc=0,Ia,Ta;++Ma=0;)for(Ta=ad[Qc],Ma=Ta.length;--Ma>=0;)Ia[--Rc]=Ta[Ma];Tc=Ia;ad=Pc;Qc=x[0];Rc=x[1];var Ga=ae(Rc);Ma=[ae(Qc),-Be(Qc),0];Ta=Ia=0;Fo.reset();Ga===1?Rc=Ae+1E-6:Ga===-1&&(Rc=-Ae-1E-6);Ga=0;for(var Na=ad.length;Ga=0?1:-1,Io=Ho*Eh,fl=Io>Ld;Zf*=Cv;Fo.add(Iu(Zf*Ho*ae(Io),Bv*Yi+Zf*Be(Io)));Ia+=fl?Eh+Ho*ZC:Eh;fl^pd>=Qc^Go>=Qc&&(Dd=Eu(Du(Dd),Du(el)),Fu(Dd),pd=Eu(Ma,Dd),Fu(pd),pd=(fl^Eh>=0?-1:1)*Rk(pd[2]),Rc>pd||Rc===pd&&(Dd[0]||Dd[1]))&&(Ta+=fl^Eh>=0?1:-1)}}ad=(Ia<-1E-6||Ia<1E-6&&Fo<-1E-6)^Ta&1;Tc.length?(eb||(z.polygonStart(),eb=!0),qB(Tc,sB,ad,u,z)):ad&&(eb||(z.polygonStart(),eb=!0),z.lineStart(),u(null,null,1,z),z.lineEnd());eb&&(z.polygonEnd(),eb=!1);Tc=Pc=null},sphere:function(){z.polygonStart();z.lineStart();u(null,null,1,z);z.lineEnd();z.polygonEnd()}};return Oc}})(function(){return!0},function(h){var p=NaN,u=NaN,x=NaN,z;return{lineStart:function(){h.lineStart();z=1},point:function(A,la){var oa=A>0?Ld:-Ld,ra=Yf(A-p);if(Yf(ra-Ld)<1E-6)h.point(p,u=(u+la)/2>0?Ae:-Ae),h.point(x,u),h.lineEnd(),h.lineStart(),h.point(oa,u),h.point(A,u),z=0;else if(x!==oa&&ra>=Ld){Yf(p-x)<1E-6&&(p-=x*1E-6);Yf(A-oa)<1E-6&&(A-=oa*1E-6);ra=p;var qa=u,pa=A,wa,Da,Ha=ae(ra-pa);u=Yf(Ha)>1E-6?Eo((ae(qa)*(Da=Be(la))*ae(pa)-ae(la)*(wa=Be(qa))*ae(ra))/(wa*Da*Ha)):(qa+la)/2;h.point(x,u);h.lineEnd();h.lineStart();h.point(oa,u);z=0}h.point(p=A,u=la);x=oa},lineEnd:function(){h.lineEnd();p=u=NaN},Il:function(){return 2-z}}},function(h,p,u,x){h==null?(u*=Ae,x.point(-Ld,u),x.point(0,u),x.point(Ld,u),x.point(Ld,0),x.point(Ld,-u),x.point(0,-u),x.point(-Ld,-u),x.point(-Ld,0),x.point(-Ld,u)):Yf(h[0]-p[0])>1E-6?(h=h[0]

1?0:h<-1?Ld:Math.acos(h))&&h/ae(h)}).invert=Qi(function(h){return h});Sk(3);Qi(Eo);Qi(Rk);Qi(function(h){return 2*Eo(h)});Ri.prototype=Ju.prototype={constructor:Ri,count:function(){return this.eachAfter(tB)},each:function(h){var p,u=[this],x;do{var z=u.reverse();for(u=[];p=z.pop();)if(h(p),p=p.children){var A=0;for(x=p.length;A=0;--x)u.push(p[x]);return this},sum:function(h){return this.eachAfter(function(p){for(var u=+h(p.data)||0,x=p.children,z=x&&x.length;--z>=0;)u+=x[z].value;p.value=u})},sort:function(h){return this.eachBefore(function(p){p.children&&p.children.sort(h)})},path:function(h){var p=this;var u=p;var x=h;if(u!==x){var z=u.ancestors(),A=x.ancestors(),la=null;u=z.pop();for(x=A.pop();u===x;)la=u,u=z.pop(),x=A.pop();u=la}for(x=[p];p!==u;)p=p.parent,x.push(p);for(p=x.length;h!==u;)x.splice(p,0,h),h=h.parent;return x},ancestors:function(){for(var h=this,p=[h];h=h.parent;)p.push(h);return p},descendants:function(){var h=[];this.each(function(p){h.push(p)});return h},leaves:function(){var h=[];this.eachBefore(function(p){p.children||h.push(p)});return h},links:function(){var h=this,p=[];h.each(function(u){u!==h&&p.push({source:u.parent,target:u})});return p},copy:function(){return Ju(this).eachBefore(wB)}};(function(h,p){this.Ga=h;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.td=p}).prototype=Object.create(Ri.prototype);var Dv=Array.prototype,Ou=Dv.map,Uk=Dv.slice,Ku={name:"implicit"},Nu=[0,1],po=new Date,qo=new Date,Jo=Rd(function(){},function(h,p){h.setTime(+h+p)},function(h,p){return p-h});Jo.every=function(h){h=Math.floor(h);return isFinite(h)&&h>0?h>1?Rd(function(p){p.setTime(Math.floor(p/h)*h)},function(p,u){p.setTime(+p+u*h)},function(p,u){return(u-p)/h}):Jo:null};var $C=Rd(function(h){h.setTime(Math.floor(h/1E3)*1E3)},function(h,p){h.setTime(+h+p*1E3)},function(h,p){return(p-h)/1E3},function(h){return h.getUTCSeconds()}),aD=Rd(function(h){h.setTime(Math.floor(h/6E4)*6E4)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getMinutes()}),bD=Rd(function(h){var p=h.getTimezoneOffset()*6E4%36E5;p<0&&(p+=36E5);h.setTime(Math.floor((+h-p)/36E5)*36E5+p)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getHours()}),to=Rd(function(h){h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p)},function(h,p){return(p-h-(p.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/864E5},function(h){return h.getDate()-1}),fv=Cg(0),so=Cg(1);Cg(2);Cg(3);var uo=Cg(4);Cg(5);Cg(6);var cD=Rd(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,p){h.setMonth(h.getMonth()+p)},function(h,p){return p.getMonth()-h.getMonth()+(p.getFullYear()-h.getFullYear())*12},function(h){return h.getMonth()}),Eg=Rd(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,p){h.setFullYear(h.getFullYear()+p)},function(h,p){return p.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});Eg.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setFullYear(Math.floor(p.getFullYear()/h)*h);p.setMonth(0,1);p.setHours(0,0,0,0)},function(p,u){p.setFullYear(p.getFullYear()+u*h)}):null};Rd(function(h){h.setUTCSeconds(0,0)},function(h,p){h.setTime(+h+p*6E4)},function(h,p){return(p-h)/6E4},function(h){return h.getUTCMinutes()});Rd(function(h){h.setUTCMinutes(0,0,0)},function(h,p){h.setTime(+h+p*36E5)},function(h,p){return(p-h)/36E5},function(h){return h.getUTCHours()});var Wu=Rd(function(h){h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCDate(h.getUTCDate()+p)},function(h,p){return(p-h)/864E5},function(h){return h.getUTCDate()-1}),GC=Dg(0),ro=Dg(1);Dg(2);Dg(3);var vo=Dg(4);Dg(5);Dg(6);Rd(function(h){h.setUTCDate(1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCMonth(h.getUTCMonth()+p)},function(h,p){return p.getUTCMonth()-h.getUTCMonth()+(p.getUTCFullYear()-h.getUTCFullYear())*12},function(h){return h.getUTCMonth()});var Ah=Rd(function(h){h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,p){h.setUTCFullYear(h.getUTCFullYear()+p)},function(h,p){return p.getUTCFullYear()-h.getUTCFullYear()},function(h){return h.getUTCFullYear()});Ah.every=function(h){return isFinite(h=Math.floor(h))&&h>0?Rd(function(p){p.setUTCFullYear(Math.floor(p.getUTCFullYear()/h)*h);p.setUTCMonth(0,1);p.setUTCHours(0,0,0,0)},function(p,u){p.setUTCFullYear(p.getUTCFullYear()+u*h)}):null};var Vu={"-":"",_:" ",0:"0"},Wd=/^\s*\d+/,FC=/^%/,EC=/[\\^$*+?|[\]().{}]/g,Zi;(function(h){Zi=IB(h);Sq=Zi.format;Rq=Zi.utcFormat;rq=Zi.utcParse;return Zi})({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),shortDays:"Sun Mon Tue Wed Thu Fri Sat".split(" "),months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")});Date.prototype.toISOString||Rq("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||rq("%Y-%m-%dT%H:%M:%S.%LZ");bd("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");bd("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");bd("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");bd("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");bd("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");bd("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");bd("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");bd("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");bd("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");bd("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");bd("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");bd("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var dD=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(bd);vd(dD);var eD=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(bd);vd(eD);var fD=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(bd);vd(fD);var gD=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(bd);vd(gD);var hD=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(bd);vd(hD);var iD=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(bd);vd(iD);var jD=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(bd);vd(jD);var kD=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(bd);vd(kD);var lD=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(bd);vd(lD);var mD=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(bd);vd(mD);var nD=Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(bd);vd(nD);var oD=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(bd);vd(oD);var pD=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(bd);vd(pD);var qD=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(bd);vd(qD);var rD=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(bd);vd(rD);var sD=Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(bd);vd(sD);var tD=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(bd);vd(tD);var uD=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(bd);vd(uD);var vD=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(bd);vd(vD);var wD=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(bd);vd(wD);var xD=Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(bd);vd(xD);var yD=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(bd);vd(yD);var zD=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(bd);vd(zD);var AD=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(bd);vd(AD);var BD=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(bd);vd(BD);var CD=Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(bd);vd(CD);var DD=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(bd);vd(DD);zo(db(300,.5,0),db(-240,.5,1));zo(db(-100,.75,.35),db(80,1.5,.8));zo(db(260,.75,.35),db(80,1.5,.8));db();cb();Wk(bd("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));Wk(bd("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));Wk(bd("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));Wk(bd("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));var Ev=Math.abs,be=Math.atan2,Gg=Math.cos,PC=Math.max,Ko=Math.min,$e=Math.sin,Bh=Math.sqrt,$i=Math.PI,Xk=$i/2,gl=2*$i;iv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Na=0},lineEnd:function(){(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;default:this.Fa.lineTo(h,p)}}};(function(h){function p(u){return new mv(h(u))} p.ye=h;return p})(Zk);mv.prototype={areaStart:function(){this.ye.areaStart()},areaEnd:function(){this.ye.areaEnd()},lineStart:function(){this.ye.lineStart()},lineEnd:function(){this.ye.lineEnd()},point:function(h,p){this.ye.point(p*Math.sin(h),p*-Math.cos(h))}};ov.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ra=this.Ea=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 3:nv(this,this.Aa,this.Ea);case 2:this.Fa.lineTo(this.Aa,this.Ea)}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;break;case 2:this.Na=3,this.Fa.lineTo((5*this.Pa+this.Aa)/6,(5*this.Ra+this.Ea)/6);default:nv(this,h,p)}this.Pa=this.Aa;this.Aa=h;this.Ra=this.Ea;this.Ea=p}};qv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ae=this.Ra=this.Ea=this.Be=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Fa.lineTo(this.Ae,this.Be);break;case 3:pv(this,this.Aa,this.Ea)}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(h,p){h=+h;p=+p;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(h,p):this.Fa.moveTo(h,p);break;case 1:this.Na=2;this.Aa=h;this.Ea=p;break;case 2:this.Na=3;default:pv(this,h,p)}this.Pa=this.Aa;this.Aa=this.Ae;this.Ae=h;this.Ra=this.Ea;this.Ea=this.Be;this.Be=p}};var ED=function u(p){function x(z){return new qv(z,p)} x.tension=function(z){return u(+z)};return x}(0);$k.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Pa=this.Aa=this.Ra=this.Ea=this.tg=NaN;this.Na=0},lineEnd:function(){switch(this.Na){case 2:this.Fa.lineTo(this.Aa,this.Ea);break;case 3:wo(this,this.tg,sv(this,this.tg))}(this.Ha||this.Ha!==0&&this.Na===1)&&this.Fa.closePath();this.Ha=1-this.Ha},point:function(p,u){var x=NaN;p=+p;u=+u;if(p!==this.Aa||u!==this.Ea){switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Na=2;break;case 2:this.Na=3;wo(this,sv(this,x=rv(this,p,u)),x);break;default:wo(this,this.tg,x=rv(this,p,u))}this.Pa=this.Aa;this.Aa=p;this.Ra=this.Ea;this.Ea=u;this.tg=x}}};(tv.prototype=Object.create($k.prototype)).point=function(p,u){$k.prototype.point.call(this,u,p)};uv.prototype={moveTo:function(p,u){this.Fa.moveTo(u,p)},closePath:function(){this.Fa.closePath()},lineTo:function(p,u){this.Fa.lineTo(u,p)},bezierCurveTo:function(p,u,x,z,A,la){this.Fa.bezierCurveTo(u,p,z,x,la,A)}};vv.prototype={areaStart:function(){this.Ha=0},areaEnd:function(){this.Ha=NaN},lineStart:function(){this.Bb=[];this.Fb=[]},lineEnd:function(){var p=this.Bb,u=this.Fb,x=p.length;if(x)if(this.Ha?this.Fa.lineTo(p[0],u[0]):this.Fa.moveTo(p[0],u[0]),x===2)this.Fa.lineTo(p[1],u[1]);else for(var z=wv(p),A=wv(u),la=0,oa=1;oa=0&&(this.Wd=1-this.Wd,this.Ha=1-this.Ha)},point:function(p,u){p=+p;u=+u;switch(this.Na){case 0:this.Na=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Na=2;default:if(this.Wd<=0)this.Fa.lineTo(this.Bb,u),this.Fa.lineTo(p,u);else{var x=this.Bb*(1-this.Wd)+p*this.Wd;this.Fa.lineTo(x,this.Fb);this.Fa.lineTo(x,u)}}this.Bb=p;this.Fb=u}};Vi.prototype={constructor:Vi,scale:function(p){return p===1?this:new Vi(this.k*p,this.x,this.y)},translate:function(p,u){return p===0&u===0?this:new Vi(this.k,this.x+this.k*p,this.y+this.k*u)},apply:function(p){return[p[0]*this.k+this.x,p[1]*this.k+this.y]},applyX:function(p){return p*this.k+this.x},applyY:function(p){return p*this.k+this.y},invert:function(p){return[(p[0]-this.x)/this.k,(p[1]-this.y)/this.k]},invertX:function(p){return(p-this.x)/this.k},invertY:function(p){return(p-this.y)/this.k},rescaleX:function(p){return p.copy().domain(p.range().map(this.invertX,this).map(p.invert,p))},rescaleY:function(p){return p.copy().domain(p.range().map(this.invertY,this).map(p.invert,p))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Vi(1,0,0);gi=b;Kv=function(p,u){return u

p?1:u>=p?0:NaN};Kh=function(p,u){var x=p.length,z=-1,A,la,oa;if(u==null)for(;++z=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=oa=A;++zA&&(la=A),oa=A)for(la=A;++zla&&(la=A)}else for(;++z=A)for(la=A;++zla&&(la=A);return la};fr=function(p,u){var x=p.length,z=-1,A,la;if(u==null)for(;++z=A)for(la=A;++zA&&(la=A)}else for(;++z=A)for(la=A;++zA&&(la=A);return la};pz=function(p,u){var x=p.length,z=-1,A,la=0;if(u==null)for(;++zHa;qa||(qa=pa=Lk());if(Da1E-12)if(eb>gl-1E-12)qa.moveTo(Da*Gg(Ha),Da*$e(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),wa>1E-12&&(qa.moveTo(wa*Gg(jc),wa*$e(jc)),qa.arc(0,0,wa,jc,Ha,Pc));else{var tc=Ha,Oc=jc;Tc=Ha;var ad=jc,Qc=eb,Ma=eb,Rc=ra.apply(this,arguments)/2,Ia=Rc>1E-12&&(A?+A.apply(this,arguments):Bh(wa* wa+Da*Da)),Ta=Ko(Ev(Da-wa)/2,+z.apply(this,arguments)),Ga=Ta,Na=Ta;if(Ia>1E-12){var Zc=hv(Ia/wa*$e(Rc));Rc=hv(Ia/Da*$e(Rc));(Qc-=Zc*2)>1E-12?(Zc*=Pc?1:-1,Tc+=Zc,ad-=Zc):(Qc=0,Tc=ad=(Ha+jc)/2);(Ma-=Rc*2)>1E-12?(Rc*=Pc?1:-1,tc+=Rc,Oc-=Rc):(Ma=0,tc=Oc=(Ha+jc)/2)}Ha=Da*Gg(tc);jc=Da*$e(tc);Zc=wa*Gg(ad);Rc=wa*$e(ad);if(Ta>1E-12){var yd=Da*Gg(Oc),Dd=Da*$e(Oc),pd=wa*Gg(Tc),te=wa*$e(Tc);if(eb<$i){Qc>1E-12?(Ga=pd-Ha,Na=te-jc,eb=Zc-yd,Ia=Rc-Dd,eb=(eb*(jc-Dd)-Ia*(Ha-yd))/(Ia*Ga-eb*Na),Ga=[Ha+eb*Ga,jc+eb*Na]):Ga=[Zc,Rc];Na=Ha-Ga[0];eb=jc-Ga[1];Ia=yd-Ga[0];var Zf=Dd-Ga[1];Na=(Na*Ia+eb*Zf)/(Bh(Na*Na+eb*eb)*Bh(Ia*Ia+Zf*Zf));Na=1/$e((Na>1?0:Na<-1?$i:Math.acos(Na))/2);eb=Bh(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=Ko(Ta,(wa-eb)/(Na-1));Na=Ko(Ta,(Da-eb)/(Na+1))}}Ma>1E-12?Na>1E-12?(tc=Yk(pd,te,Ha,jc,Da,Na,Pc),Oc=Yk(yd,Dd,Zc,Rc,Da,Na,Pc),qa.moveTo(tc.cx+tc.ad,tc.cy+tc.hd),Na1E-12&&Qc>1E-12?Ga>1E-12?(tc=Yk(Zc,Rc,yd,Dd,wa,-Ga,Pc),Oc=Yk(Ha,jc,pd,te,wa,-Ga,Pc),qa.lineTo(tc.cx+tc.ad,tc.cy+tc.hd),Ga=ad;--Ha)pa.point(tc[Ha],Oc[Ha]);pa.lineEnd();pa.areaEnd()}Pc&&(tc[Da]=+x(eb,Da,wa),Oc[Da]=+A(eb,Da,wa),pa.point(z?+z(eb,Da,wa):tc[Da],la?+la(eb,Da,wa):Oc[Da]))}if(Tc)return pa=null,Tc+""||null} function u(){return lv().defined(oa).curve(qa).context(ra)} var x=jv,z=null,A=td(0),la=kv,oa=td(!0),ra=null,qa=Zk,pa=null;p.x=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),z=null,p):x};p.x0=function(wa){return arguments.length?(x=typeof wa==="function"?wa:td(+wa),p):x};p.x1=function(wa){return arguments.length?(z=wa==null?null:typeof wa==="function"?wa:td(+wa),p):z};p.y=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),la=null,p):A};p.y0=function(wa){return arguments.length?(A=typeof wa==="function"?wa:td(+wa),p):A};p.y1=function(wa){return arguments.length?(la=wa==null?null:typeof wa==="function"?wa:td(+wa),p):la};p.lineX0=p.lineY0=function(){return u().x(x).y(A)};p.lineY1=function(){return u().x(x).y(la)};p.lineX1=function(){return u().x(z).y(A)};p.defined=function(wa){return arguments.length?(oa=typeof wa==="function"?wa:td(!!wa),p):oa};p.curve=function(wa){return arguments.length?(qa=wa,ra!=null&&(pa=qa(ra)),p):qa};p.context=function(wa){return arguments.length?(wa==null?ra=pa=null:pa=qa(ra=wa),p):ra};return p};Vw=lv;Xt=function(){function p(ra){var qa,pa=ra.length;var wa=0;var Da=Array(pa),Ha=Array(pa),jc=+A.apply(this,arguments);var eb=Math.min(gl,Math.max(-gl,la.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(eb)/pa,oa.apply(this,arguments)),Tc=Pc*(eb<0?-1:1),tc;for(qa=0;qa0&&(wa+=tc);x!=null?Da.sort(function(ad,Qc){return x(Ha[ad],Ha[Qc])}):z!=null&&Da.sort(function(ad,Qc){return z(ra[ad],ra[Qc])});qa=0;for(eb=wa?(eb-pa*Tc)/wa:0;qa0?tc*eb:0)+Tc;Ha[wa]={data:ra[wa],index:qa,value:tc,startAngle:jc,endAngle:Oc,padAngle:Pc}}return Ha} var u=RC,x=QC,z=null,A=td(0),la=td(gl),oa=td(0);p.value=function(ra){return arguments.length?(u=typeof ra==="function"?ra:td(+ra),p):u};p.sortValues=function(ra){return arguments.length?(x=ra,z=null,p):x};p.sort=function(ra){return arguments.length?(z=ra,x=null,p):z};p.startAngle=function(ra){return arguments.length?(A=typeof ra==="function"?ra:td(+ra),p):A};p.endAngle=function(ra){return arguments.length?(la=typeof ra==="function"?ra:td(+ra),p):la};p.padAngle=function(ra){return arguments.length?(oa=typeof ra==="function"?ra:td(+ra),p):oa};return p};ex=function(p){return new ov(p)};fx=ED;dx=Zk;kx=function(p){return new $k(p)};lx=function(p){return new tv(p)};gx=function(p){return new vv(p)};hx=function(p){return new al(p,.5)};jx=function(p){return new al(p,1)};ix=function(p){return new al(p,0)};se.svg=se.svg;se.xhtml=se.xhtml;se.xlink=se.xlink;se.xml=se.xml;se.xmlns=se.xmlns})();function NA(){} NA.prototype.v=function(a){return function(){var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("viewBox","0 0 "+a.width+" "+a.height);b.setAttribute("class","aplos-renderer-key");b.style.width=a.width+"px";b.style.height=a.height+"px";var c=document.createElementNS("http://www.w3.org/2000/svg","circle");c.setAttribute("cx",a.width/2);c.setAttribute("cy",a.height/2);c.setAttribute("r",a.width/2);c.setAttribute("fill",this.color);b.appendChild(c);return b}};function OA(a){this.v=a} function FD(a,b){return GD(JSON.parse(a.v.getAttribute("data-primary-activity")||"[]"),b)} function HD(a,b){return GD(JSON.parse(a.v.getAttribute("data-secondary-activity")||"[]"),b)} function ID(a){var b=b===void 0?new Date:b;a.v.textContent="";var c=new iy(a.v);c.Xc({top:60,left:0,right:0});c.ub().Pd(!0);c.xh({type:"linear",ticks:{type:"default",numTicks:3,integerOnly:!0,format:function(e){return e||""}},rendering:{type:"inside_gridlines"}});c.nj({type:"ordinal",ticks:{type:"default",format:function(e){return(new Date(e)).toLocaleDateString(void 0,{month:"short"})}}});c.addBehavior(JD({Ej:"{{monthYear}}",body:"

",Pl:{monthYear:function(){return(new Date(this.datum.month)).toLocaleDateString(void 0,{month:"long",year:"numeric"})}}}));c.addBehavior((new AA(!0)).Vj(200));c.addBehavior((new wA).position(16).Yi(!1).Xg("series_desc").hf(new NA));c.addBehavior(new oy);c.draw([{name:"primary",displayName:a.v.getAttribute("data-primary-label")||"",data:FD(a,b),domain:"month",measure:"count",color:a.v.getAttribute("data-primary-color")},{name:"secondary",displayName:a.v.getAttribute("data-secondary-label")||"",data:HD(a,b),domain:"month",measure:"count",color:"#bdbdbd"}])} function GD(a,b){b=b===void 0?new Date:b;for(var c=[],e=-11;e<=0;e++)c.push(new Date(b.getFullYear(),b.getMonth()+e));var f=new Map;a=Xc(a);for(b=a.next();!b.done;b=a.next()){var k=Xc(b.value);b=k.next().value;e=k.next().value;k=k.next().value;f.set(b+"-"+e,k||0)}return c.map(function(n){return{month:n.getTime(),count:f.get(n.getFullYear()+"-"+(n.getMonth()+1))||0}})} function JD(a){return bA(a.Ej===void 0?"":a.Ej,a.body===void 0?"":a.body,a.bm===void 0?"":a.bm,a.Pl).cj()} Od("hcfe.forum.ActivityChart.setUpAll",function(){for(var a=Xc((window.sc_scope||document).querySelectorAll("[data-activity-chart]")),b=a.next();!b.done;b=a.next())ID(new OA(b.value))});}).call(this);
false