As a precautionary health measure for our support specialists in light of COVID-19, we're operating with a limited team. If you need help with a product whose support you had trouble reaching over the phone, consult its product-specific Help Center.

false
Search
Clear search
Close search
Google apps
Main menu
");return null==a||null==a.sheet?vf:oj(a.sheet,void 0!=b?b:null,c)} function sj(a){if(Kc&&!Zc(10)||"function"!=typeof tb.DOMParser)return null;a=Kf(Ge("Never attached to DOM."),""+a+"");return(new DOMParser).parseFromString(yf(a),"text/html").body.children[0]} function qj(a,b){if(!a)return jf;var c=document.createElement("div").style;tj(a).forEach(function(e){var f=Oc&&e in nj?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Tb(f,"--")||Tb(f,"var")||(e=jj(a,e),e=Ji(f,e,b),null!=e&&kj(c,f,e))}); return Lf(c.cssText||"")} function uj(a){var b=Array.from(bj(Ri,a,"getElementsByTagName",["STYLE"])),c=Ec(b,function(k){return Dc(fj(k).cssRules)}); c=pj(c);for(var e=[],f=0;fE?1:zr?1:p"+b+""),uj(b),b=b.innerHTML);b=Kf(Ge("Never attached to DOM."),b);var c=document.createElement("template");if(Kj&&"content"in c)Ug(c,b),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Ug(e.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT| NodeFilter.SHOW_TEXT,null,!1);for(c=yj?new WeakMap:new Bj;e=b.nextNode();){c:{var f=e;switch(hj(f)){case 3:f=fk(this,f);break c;case 1:if("TEMPLATE"==gj(f).toUpperCase())f=null;else{var h=gj(f).toUpperCase();if(h in this.oa||"http://www.w3.org/1999/xhtml"!=lj(f))var k=null;else this.ha[h]?k=document.createElement(h):(k=vi(document,"SPAN"),this.ua&&dj(k,"data-sanitizer-original-tag",h.toLowerCase()));if(k){var l=k,p=cj(f);if(null!=p)for(var r=0;h=p[r];r++)if(h.specified){var t=f;var w=h;var z=w.name; if(Tb(z,"data-sanitizer-"))w=null;else{var E=gj(t);w=w.value;var pa={tagName:Wb(E).toLowerCase(),attributeName:Wb(z).toLowerCase()},sa={Nr:void 0};"style"==pa.attributeName&&(sa.Nr=ej(t));t=dk(E,z);t in this.o?(z=this.o[t],w=z(w,pa,sa)):(z=dk(null,z),z in this.o?(z=this.o[z],w=z(w,pa,sa)):w=null)}null!==w&&dj(l,h.name,w)}f=k}else f=null}break c;default:f=null}}if(f){if(1==hj(f)&&c.set(e,f),e=ij(e),h=!1,e)k=hj(e),l=gj(e).toLowerCase(),p=ij(e),11!=k||p?"body"==l&&p&&(k=ij(p))&&!ij(k)&&(h=!0):h=!0,k= null,h||!e?k=a:1==hj(e)&&(k=c.get(e)),k.content&&(k=k.content),k.appendChild(f)}else yi(e)}c.clear&&c.clear()}else a=vi(document,"SPAN");0")+1,a.lastIndexOf("b;)a.pop()} function lk(a){a=Array(a);kk(a,0);return a} ;var mk=new jk;mk.__default=function(a,b,c){var e=typeof c;"object"===e||"function"===e?a[b]=c:null==c?a.removeAttribute(b):(e=0===b.lastIndexOf("xml:",0)?"http://www.w3.org/XML/1998/namespace":0===b.lastIndexOf("xlink:",0)?"http://www.w3.org/1999/xlink":null)?a.setAttributeNS(e,b,c):a.setAttribute(b,c)}; mk.style=function(a,b,c){a=a.style;if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var e in c)ik.call(c,e)&&(b=c[e],0<=e.indexOf("-")?a.setProperty(e,b):a[e]=b)}}; function nk(a,b,c,e){(e[b]||e.__default)(a,b,c)} ;var ok=null;function pk(a){this.node=a;this.o=[];this.deleted=[]} ;var qk="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};function rk(a,b){this.o=null;this.ma=!1;this.ha=a;this.key=b;this.text=void 0} function sk(a,b,c){b=new rk(b,c);return a.__incrementalDOMData=b} function tk(a,b){if(a.__incrementalDOMData)return a.__incrementalDOMData;var c=1===a.nodeType?a.localName:a.nodeName,e=1===a.nodeType?a.getAttribute("key"):null;b=sk(a,c,1===a.nodeType?e||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){e=b.o||(b.o=lk(c));for(var f=0,h=0;f\n \n \n\n'), "add.svg":Ge('\n \n \n\n'),"announcement.svg":Ge('\n \n \n\n'),"arrow_back.svg":Ge('\n \n \n\n'), "arrow_drop_down.svg":Ge('\n'),"arrow_drop_up.svg":Ge('\n'),"arrow_forward.svg":Ge('\n'), "article.svg":Ge('\n'),"attach_file.svg":Ge('\n'), "auto_awesome.svg":Ge('\n'),"calendar_today.svg":Ge('\n'), "chat.svg":Ge('\n \n \n\n'),"check.svg":Ge('\n \n \n\n'),"check_circle.svg":Ge('\n \n \n\n'), "check_circle_filled.svg":Ge('\n \n \n \n \n\n'),"check_circle_outline.svg":Ge('\n \n \n\n'), "close.svg":Ge('\n \n \n\n'),"code.svg":Ge('\n'),"content_copy.svg":Ge('\n \n\n'), "delete_outline.svg":Ge('\n'),"do_not_disturb.svg":Ge('\n \n \n\n'), "down_arrow.svg":Ge('\n \n \n\n'),"drive_document.svg":Ge('\n \n \n\n'),"drive_image.svg":Ge('\n \n \n\n'), "dvr.svg":Ge('\n'),"email.svg":Ge('\n \n \n\n'), "error.svg":Ge('\n'),"error_outline.svg":Ge('\n \n \n\n'), "event_available.svg":Ge('\n \n \n\n'),"face.svg":Ge('\n'), "fast_forward.svg":Ge('\n'),"featured_video.svg":Ge('\n'), "filter_list.svg":Ge('\n \n\n'),"format_bold.svg":Ge('\n'), "format_clear.svg":Ge('\n'),"format_indent_decrease.svg":Ge('\n'), "format_indent_increase.svg":Ge('\n'),"format_italic.svg":Ge('\n'),"format_list_bulleted.svg":Ge('\n'), "format_list_numbered.svg":Ge('\n'),"format_quote.svg":Ge('\n \n\n'), "format_underline.svg":Ge('\n'),"help_outline.svg":Ge('\n \n \n\n'), "highlight_alt.svg":Ge('\n'),"info.svg":Ge('\n \n \n\n'), "info_filled.svg":Ge('\n'),"keep_pin_outline.svg":Ge('\n \n \n\n'), "keyboard_arrow_up.svg":Ge('\n \n \n\n'),"label.svg":Ge('\n \n \n\n'), "label_off.svg":Ge('\n \n \n\n'), "language.svg":Ge('\n'), "link.svg":Ge('\n'),"lock.svg":Ge('\n \n \n \n\n'), "lock_open.svg":Ge('\n \n \n \n\n'),"maximize.svg":Ge('\n'), "minimize.svg":Ge('\n'),"mode_edit.svg":Ge('\n \n \n\n'),"more_vert.svg":Ge('\n \n \n\n'), "navigate_before.svg":Ge('\n'),"navigate_next.svg":Ge('\n'),"notifications.svg":Ge('\n'), "open_in_new.svg":Ge('\n'),"phone.svg":Ge('\n \n \n\n'), "play_arrow.svg":Ge('\n \n \n\n'),"play_circle.svg":Ge('\n \n \n\n'),"public.svg":Ge('\n \n \n\n'), "question_answer.svg":Ge('\n \n \n\n'),"remove_circle_outline.svg":Ge('\n \n \n\n'), "reply.svg":Ge('\n \n\n'),"restart_alt.svg":Ge('\n \n \n\n'), "schedule.svg":Ge('\n \n\n'),"search.svg":Ge('\n \n \n\n'), "send.svg":Ge('\n'),"sentiment_very_satisfied.svg":Ge('\n'), "star.svg":Ge('\n'),"star_boarder.svg":Ge('\n'), "storefront.svg":Ge('\n \n\n'), "supervised_user_circle.svg":Ge('\n \n \n \n \n\n'), "text_format.svg":Ge('\n'),"thumb_down_alt.svg":Ge('\n'), "thumb_up.svg":Ge('\n'),"thumb_up_alt.svg":Ge('\n'), "undo.svg":Ge('\n'),"unfold_more.svg":Ge('\n'), "unpin.svg":Ge('\n \n \n\n'),"video_youtube.svg":Ge('\n'), "video_youtube_outline.svg":Ge('\n \n \n\n'), "view_column.svg":Ge('\n'),"visibility.svg":Ge('\n \n \n\n'), "warning.svg":Ge('\n \n \n\n')};var rl="arrow_back arrow_forward chevron_left chevron_right exit_to_app first_page format_quote last_page navigate_before navigate_next open_in_new star_half gm/arrow_back gm/arrow_forward gm/format_quote gm/help_outline gm/play_arrow gm/open_in_new gm/undo".split(" ");function sl(a){var b=a.icon,c=void 0===a.size?24:a.size,e=void 0===a.yb?!1:a.yb,f=void 0===a.Nd?[]:a.Nd;a=void 0===a.title?"":a.title;A.call(this,"sc.shared.MaterialIcon");this.icon=b;this.size=c;this.Nd=f;this.yb=e;this.title=a} x(sl,A);sl.prototype.content=function(){var a=this,b=this.size/16+"rem",c={root:!0,baseline:this.yb,flip:-1!==rl.indexOf(this.icon)},e=0===this.icon.indexOf("gm/");e||(c["text-icon"]=!0);for(var f=u(this.Nd),h=f.next();!h.done;h=f.next())h=h.value,""!==h&&(c[h]=!0);e?this.element("div","class",c,"title",this.title,"style",{width:b,height:b},function(){Xk(ql[a.icon.replace("gm/","")+".svg"])}):this.element("div","class",c,"title",this.title,"style","font-size: "+b,this.icon)};function tl(a,b,c,e){this.ma=a;this.ha=b;this.o=c;this.ka=void 0===e?1:e} function ul(a){if(!a||"transparent"===a)return new tl(0,0,0,0);var b=a.match(/\.?\d+(\.\d+)?/g);if(3>b.length)throw Error("Could not parse '"+a+"' as a color.");b.length=4;return new (Function.prototype.bind.apply(tl,[null].concat(Ba(b.map(Number)))))} function vl(a){var b=wl(a,xl);a=wl(a,yl);return 3.1>b&&a>b} var yl=new tl(0,0,0),xl=new tl(255,255,255);function wl(a,b){a=.2126*zl(a.ma)+.7152*zl(a.ha)+.0722*zl(a.o)+.05;b=.2126*zl(b.ma)+.7152*zl(b.ha)+.0722*zl(b.o)+.05;return Math.max(a,b)/Math.min(a,b)} function zl(a){a/=255;return.03928>a?a/12.92:Math.pow((a+.055)/1.055,2.4)} ;var Al=[{opacity:0},{opacity:.16,offset:.25},{opacity:.16,offset:.5},{opacity:0}],Bl={duration:300},Cl={duration:225,easing:"cubic-bezier(.4, .0, .2, 1)"};function Dl(a){a=void 0===a?{}:a;a=void 0===a.sk?!1:a.sk;A.call(this,"sc.shared.MaterialInteractionOverlay");var b=this;this.ha=!1;this.parentElement=null;this.sk=a;this.ta=function(c){El(b,c.clientX,c.clientY,b.sk)}; this.ka=function(){b.ha=!0;b.Ca()}; this.na=function(){b.ha=!1;b.Ca()}} x(Dl,A);Dl.prototype.content=function(){var a=this,b=vl(ul(getComputedStyle(this.element("span")).color));this.root=this.element("div","class",{root:!0,"light-text":b,hover:this.ha},"aria-hidden","true",function(){a.element("div","class","hover-overlay");a.element("div","class","pressed-overlay");a.o=a.element("div","class","ripple")}); Fl(this)}; function Fl(a){setTimeout(function(){var b,c,e=a.parentElement,f=null!==(c=a.getElement()&&(null===(b=a.getElement())||void 0===b?void 0:b.parentElement))&&void 0!==c?c:null;e!==f&&(e&&(e.removeEventListener("mousedown",a.ta),e.removeEventListener("mouseenter",a.ka),e.removeEventListener("mouseleave",a.na)),f&&(f.addEventListener("mousedown",a.ta),f.addEventListener("mouseenter",a.ka),f.addEventListener("mouseleave",a.na)),a.parentElement=f)},0)} function Gl(a,b){"Enter"!==b.code&&"Space"!==b.code||El(a,0,0,!0)} function El(a,b,c,e){var f;if(null!==(f=a.o)&&void 0!==f&&f.animate){var h=a.root.getBoundingClientRect(),k=.6*Math.max(h.width,h.height)/256,l=(Math.sqrt(Math.pow(h.width/2,2)+Math.pow(h.height/2,2))+10)/128;if(e)b=h="calc(50% - 128px)",k="scale("+k+")",l="scale("+l+")";else{b=b-h.left-128;var p=c-h.top-128;c=h.width/2-128-b;e=h.height/2-128-p;h=p+"px";b+="px";k="translate(0, 0) scale("+k+")";l="translate("+c+"px, "+e+"px) scale("+l+")"}k=[{transform:k},{transform:l}];a.o.style.top=h;a.o.style.left= b;a.o.style.transform=l;a.o.animate(Al,Bl);a.o.animate(k,Cl)}} ;function Hl(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialButton");this.model=a instanceof ol?a:new ol(a);this.overlay=new Dl;el(this,this.model)} x(Hl,A);n=Hl.prototype; n.content=function(a){var b=this;a&&this.model.Zd(a);var c=""!==this.model.La(),e=""!==this.model.Gg();this.o=this.element(this.model.Ok()?"a":"button","href",this.model.Ok()||void 0,"target",Il(this),"class",{root:!0,text:1===this.model.getStyle()||2===this.model.getStyle()||8===this.model.getStyle(),"color-label":8===this.model.getStyle()||2===this.model.getStyle(),"color-hint":6===this.model.getStyle()&&c,hairline:3===this.model.getStyle(),"hairline-grey":11===this.model.getStyle(),pill:10===this.model.getStyle(), href:!!this.model.Ok(),filled:4===this.model.getStyle(),"protected":5===this.model.getStyle(),tonal:9===this.model.getStyle(),navigational:6===this.model.getStyle()&&!c,"navigational-alt":7===this.model.getStyle(),"left-icon":pl(this.model),"right-icon":this.model.Pk(),"icon-only":e&&!c,"small-icon":this.model.Dl,hidden:!this.model.Fm,compact:this.model.compact},"style",""===this.model.ri()?null:{"max-width":this.model.ri()},"type","button","aria-label",this.model.Qf(),"aria-expanded",this.model.xr, "aria-controls",this.model.tv,"disabled",this.model.Fg(),"onclick",function(f){b.Bb(f)},"onkeydown",function(f){b.overlay&&Gl(b.overlay,f)},function(){e&&b.element("span","class","icon",new sl({icon:b.model.Gg(), size:b.model.Dl||c?18:24,yb:!0}));c&&b.element("span","class",{overflow:""!==b.model.ri()},function(){Pk(b.model.La())}); b.overlay.render()})}; n.Bb=function(a){var b=this.model.Vm();b&&b({method:0===a.clientX&&0===a.clientY?1:2})}; n.Ob=function(a){this.model.Ob(a)}; n.Zc=ma(1);n.La=function(){return this.model.La()}; n.wb=function(a){this.model.wb(a)}; n.focus=function(){var a;null===(a=this.o)||void 0===a?void 0:a.focus()}; function Il(a){if(a.model.Ok())return(a=a.model.Um())?Jl[a]:void 0} var Kl={},Jl=(Kl[0]="_self",Kl[1]="_blank",Kl[2]="_parent",Kl[3]="_top",Kl);function Ll(a,b,c){this.value=a;this.icon=b;this.Xa=c} Ll.prototype.toString=function(){return this.value}; var Ml=new Ll("error","gm/error_outline","Error notification"),Nl=new Ll("caution","gm/warning","Caution notification"),Ol=new Ll("informational","gm/info","Informational notification"),Pl=new Ll("success","gm/check_circle_outline","Success notification"); function Ql(a){var b=a.message,c=a.type,e=a.position,f=void 0===a.ef?void 0:a.ef;a=a.icon;A.call(this,"sc.shared.Callout");this.message=b;this.type=c;this.position=e;this.icon=new sl({icon:null!==a&&void 0!==a?a:c.icon,yb:!0});void 0!==f&&(this.ef=new Hl({Xa:f.Xa,text:f.text,trigger:f.trigger,style:1,compact:!0}))} x(Ql,A);Ql.prototype.content=function(){var a=this;this.element("div","class","root "+this.type+" "+this.position,"aria-label",this.type.Xa,"aria-live","polite",function(){a.element("div","class","content",function(){a.icon.render();a.element("div","class","message",a.message)}); void 0!==a.ef&&a.element("div","class","secondary-button",a.ef)})};function Rl(a,b,c){b=void 0===b?!0:b;void 0===c||c?Pg(window,yg(a)):(c=document.createElement("a"),Vg(c,a),c.rel="noopener",b?(a=yg(c.href),window.location.href=Ig(a)):(a=yg(c.href),window.location.replace(Ig(a))))} ;function Sl(a,b,c,e,f){var h=Error.call(this,a+"/"+b+" "+c+" "+e);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.serviceName=a;this.path=b;this.type=c;this.statusCode=e;this.responseText=f} x(Sl,Error);function Tl(a){var b=a.serviceName;this.Cf=a.Cf;this.serviceName=b} Tl.prototype.get=function(a,b,c,e){c=void 0===c?{}:c;e=void 0===e?new XMLHttpRequest:e;var f=this,h;return mb(function(k){if(1==k.o)return Ua(k,f.call("GET",a,c,e,"application/json+protobuf"),2);h=k.ha;try{return k.return(he(b,h))}catch(l){throw Ul(f,a),l;}})}; function Vl(a,b,c){c=void 0===c?{}:c;var e=void 0===e?new XMLHttpRequest:e;var f;return mb(function(h){if(1==h.o)return Ua(h,a.call("GET",b,c,e,"application/json"),2);f=h.ha;try{return h.return(JSON.parse(f))}catch(k){throw Ul(a,b),k;}})} Tl.prototype.post=function(a,b,c,e,f){e=void 0===e?{}:e;f=void 0===f?new XMLHttpRequest:f;var h=this,k;return mb(function(l){if(1==l.o)return Ua(l,h.call("POST",a,e,f,"application/json+protobuf",b.Jb()),2);k=l.ha;try{return l.return(he(c,k))}catch(p){throw Ul(h,a),p;}})}; function Wl(a,b,c,e){e=void 0===e?{}:e;var f=void 0===f?new XMLHttpRequest:f;var h;return mb(function(k){if(1==k.o)return Ua(k,a.call("POST",b,e,f,"application/json",JSON.stringify(c)),2);h=k.ha;try{return k.return(JSON.parse(h))}catch(l){throw Ul(a,b),l;}})} Tl.prototype.call=function(a,b,c,e,f,h){var k=this;return mb(function(l){return l.return(new Promise(function(p,r){var t="";if(c.query){for(var w=[],z=u(Object.entries(c.query)),E=z.next();!E.done;E=z.next()){var pa=u(E.value);E=pa.next().value;pa=pa.next().value;pa=Array.isArray(pa)?pa:[pa];pa=u(pa);for(var sa=pa.next();!sa.done;sa=pa.next())sa=sa.value,w.push(encodeURIComponent(E)+"="+encodeURIComponent(sa))}0e.status||299this.ha&&(this.ha++,a.next=this.o,this.o=a)};var dm; function em(){var a=tb.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!kc("Presto")&&(a=function(){var f=vi(document,"IFRAME");f.style.display="none";document.documentElement.appendChild(f);var h=f.contentWindow;f=h.document;f.open();f.close();var k="callImmediate"+Math.random(),l="file:"==h.location.protocol?"*":h.location.protocol+"//"+h.location.host;f=Hb(function(p){if(("*"==l||p.origin==l)&&p.data==k)this.port1.onmessage()},this); h.addEventListener("message",f,!1);this.port1={};this.port2={postMessage:function(){h.postMessage(k,l)}}}); if("undefined"!==typeof a&&!lc()){var b=new a,c={},e=c;b.port1.onmessage=function(){if(void 0!==c.next){c=c.next;var f=c.cb;c.cb=null;f()}}; return function(f){e.next={cb:f};e=e.next;b.port2.postMessage(0)}}return function(f){tb.setTimeout(f,0)}} ;function fm(a){tb.setTimeout(function(){throw a;},0)} ;function gm(){this.ha=this.o=null} gm.prototype.add=function(a,b){var c=hm.get();c.set(a,b);this.ha?this.ha.next=c:this.o=c;this.ha=c}; gm.prototype.remove=function(){var a=null;this.o&&(a=this.o,this.o=this.o.next,this.o||(this.ha=null),a.next=null);return a}; var hm=new cm(function(){return new im},function(a){return a.reset()}); function im(){this.next=this.scope=this.o=null} im.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null}; im.prototype.reset=function(){this.next=this.scope=this.o=null};function jm(a,b){km||lm();mm||(km(),mm=!0);nm.add(a,b)} var km;function lm(){if(tb.Promise&&tb.Promise.resolve){var a=tb.Promise.resolve(void 0);km=function(){a.then(om)}}else km=function(){var b=om; "function"!==typeof tb.setImmediate||tb.Window&&tb.Window.prototype&&!kc("Edge")&&tb.Window.prototype.setImmediate==tb.setImmediate?(dm||(dm=em()),dm(b)):tb.setImmediate(b)}} var mm=!1,nm=new gm;function om(){for(var a;a=nm.remove();){try{a.o.call(a.scope)}catch(b){fm(b)}hm.put(a)}mm=!1} ;function pm(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}} ;function qm(a){this.o=0;this.ta=void 0;this.ka=this.ha=this.ma=null;this.oa=this.na=!1;if(a!=wb)try{var b=this;a.call(void 0,function(c){rm(b,2,c)},function(c){rm(b,3,c)})}catch(c){rm(this,3,c)}} function sm(){this.next=this.context=this.o=this.ha=this.child=null;this.ma=!1} sm.prototype.reset=function(){this.context=this.o=this.ha=this.child=null;this.ma=!1}; var tm=new cm(function(){return new sm},function(a){a.reset()}); function um(a,b,c){var e=tm.get();e.ha=a;e.o=b;e.context=c;return e} function vm(a){if(a instanceof qm)return a;var b=new qm(wb);rm(b,2,a);return b} qm.prototype.then=function(a,b,c){return wm(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; qm.prototype.$goog_Thenable=!0;function xm(a,b,c){return wm(a,null,b,c)} qm.prototype.cancel=function(a){if(0==this.o){var b=new ym(a);jm(function(){zm(this,b)},this)}}; function zm(a,b){if(0==a.o)if(a.ma){var c=a.ma;if(c.ha){for(var e=0,f=null,h=null,k=c.ha;k&&(k.ma||(e++,k.child==a&&(f=k),!(f&&1=c.tabIndex?b:c})} ;var ln=[];function mn(){var a=this;this.oa=this.o=null;this.ha=!1;this.ma=[];this.ka=[];this.na=function(b){if(a.o&&a.ha){var c=gn(a.o),e=jn(c),f;e&&(f=kn(c));switch(b.key){case "Tab":if(!e||!f)break;b.shiftKey?document.activeElement===e&&(b.preventDefault(),f.focus()):document.activeElement===f&&(b.preventDefault(),e.focus());break;case "Escape":b.stopPropagation(),a.oa()}}}} mn.prototype.init=function(a,b,c){c=void 0===c?!1:c;this.oa=b;if(this.o=a)this.o.addEventListener("keydown",this.na),c&&nn(this)}; function on(a,b){if(b||!1!==b&&!a.ha)nn(a);else if(a.ha){for(pn(a);0\n \n \n '))); e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+-1);vn(a)}); c.appendChild(e);e=document.createElement("button");e.className="next";e.setAttribute("title","Next month");e.setAttribute("aria-label","Next month");e.appendChild(wi(Ge('\n \n \n ')));e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+1);vn(a)}); c.appendChild(e);c=document.createElement("tr");c.appendChild(b);return c} function un(a){var b=document.createElement("tr");b.className="weekdays";for(var c=[],e=0;7>e;e++){var f=document.createElement("td");c.push(f);b.appendChild(f)}e=new Date(a.o);for(f=0;7>f;f++)c[e.getDay()].textContent=a.va?e.toLocaleString(a.na,{weekday:"narrow"}):"SMTWTFS"[e.getDay()],e.setDate(e.getDate()+1);return b} function vn(a){a.ka.textContent=a.va?a.o.toLocaleString(a.na,{month:"long",year:"numeric"}):a.o.getMonth()+1+"/"+a.o.getFullYear();a.ma.textContent="";var b=new Date(a.o);b.setDate(1);for(0e;e++){var f=document.createElement("td");if(b.getMonth()==a.o.getMonth()){var h=document.createElement("button");f.setAttribute("data-time",b.getTime());var k=!1;a.oa&&(k=a.oa.getTime()===b.getTime());h.textContent= b.getDate().toString();h.className="selectable";k&&fh(h,"selected",!0);f.appendChild(h)}else f.className="unselectable";c.appendChild(f);b.setDate(b.getDate()+1)}a.ma.appendChild(c)}} function wn(a){return new Date(a.getFullYear(),a.getMonth(),1)} rn.prototype.ua=function(a){this.ta=a}; rn.prototype.getElement=function(){return this.ha}; window.sc_createCalendar=function(a){a=new rn(a);return{setSelectDateCallback:a.ua.bind(a),getElement:a.getElement.bind(a)}};function xn(a){y.call(this,a)} x(xn,y);var yn={Mu:{1E3:{other:"0K"},1E4:{other:"00K"},1E5:{other:"000K"},1E6:{other:"0M"},1E7:{other:"00M"},1E8:{other:"000M"},1E9:{other:"0B"},1E10:{other:"00B"},1E11:{other:"000B"},1E12:{other:"0T"},1E13:{other:"00T"},1E14:{other:"000T"}},Gy:{1E3:{other:"0 thousand"},1E4:{other:"00 thousand"},1E5:{other:"000 thousand"},1E6:{other:"0 million"},1E7:{other:"00 million"},1E8:{other:"000 million"},1E9:{other:"0 billion"},1E10:{other:"00 billion"},1E11:{other:"000 billion"},1E12:{other:"0 trillion"},1E13:{other:"00 trillion"}, 1E14:{other:"000 trillion"}}},zn=yn;zn=yn;var An={AED:[2,"dh","\u062f.\u0625."],ALL:[0,"Lek","Lek"],AUD:[2,"$","AU$"],BDT:[2,"\u09f3","Tk"],BGN:[2,"lev","lev"],BRL:[2,"R$","R$"],CAD:[2,"$","C$"],CDF:[2,"FrCD","CDF"],CHF:[2,"CHF","CHF"],CLP:[0,"$","CL$"],CNY:[2,"\u00a5","RMB\u00a5"],COP:[32,"$","COL$"],CRC:[0,"\u20a1","CR\u20a1"],CZK:[50,"K\u010d","K\u010d"],DKK:[50,"kr.","kr."],DOP:[2,"RD$","RD$"],EGP:[2,"\u00a3","LE"],ETB:[2,"Birr","Birr"],EUR:[2,"\u20ac","\u20ac"],GBP:[2,"\u00a3","GB\u00a3"],HKD:[2,"$","HK$"],HRK:[2,"kn","kn"],HUF:[34, "Ft","Ft"],IDR:[0,"Rp","Rp"],ILS:[34,"\u20aa","IL\u20aa"],INR:[2,"\u20b9","Rs"],IRR:[0,"Rial","IRR"],ISK:[0,"kr","kr"],JMD:[2,"$","JA$"],JPY:[0,"\u00a5","JP\u00a5"],KRW:[0,"\u20a9","KR\u20a9"],LKR:[2,"Rs","SLRs"],LTL:[2,"Lt","Lt"],MNT:[0,"\u20ae","MN\u20ae"],MVR:[2,"Rf","MVR"],MXN:[2,"$","Mex$"],MYR:[2,"RM","RM"],NOK:[50,"kr","NOkr"],PAB:[2,"B/.","B/."],PEN:[2,"S/.","S/."],PHP:[2,"\u20b1","PHP"],PKR:[0,"Rs","PKRs."],PLN:[50,"z\u0142","z\u0142"],RON:[2,"RON","RON"],RSD:[0,"din","RSD"],RUB:[50,"\u20bd", "RUB"],SAR:[2,"SAR","SAR"],SEK:[50,"kr","kr"],SGD:[2,"$","S$"],THB:[2,"\u0e3f","THB"],TRY:[2,"\u20ba","TRY"],TWD:[2,"$","NT$"],TZS:[0,"TSh","TSh"],UAH:[2,"\u0433\u0440\u043d.","UAH"],USD:[2,"$","US$"],UYU:[2,"$","$U"],VND:[48,"\u20ab","VN\u20ab"],YER:[0,"Rial","Rial"],ZAR:[2,"R","ZAR"]};var Bn={Pu:".",lr:",",dv:"%",ur:"0",Tz:"+",cv:"-",Ru:"E",ev:"\u2030",mr:"\u221e",Mz:"NaN",Ou:"#,##0.###",bA:"#E0",Rz:"#,##0%",Hy:"\u00a4#,##0.00",fr:"USD"},Cn=Bn;Cn=Bn;function Dn(a){this.ya=40;this.ma=1;this.Ea=0;this.ha=3;this.Ba=this.ka=0;this.Ha=!1;this.Aa=this.ua="";this.oa=Cn.cv;this.va="";this.o=1;this.ta=!1;this.na=[];this.Ga=this.Ia=!1;this.wa=0;if("number"===typeof a)switch(a){case 1:En(this,Cn.Ou);break;case 2:En(this,Cn.bA);break;case 3:En(this,Cn.Rz);break;case 4:a=Cn.Hy;var b=["0"],c=An[Cn.fr];if(c){c=c[0]&7;if(0f&&p++;break;case "0":if(0f&&p++;break;case ",":0h+k||1>a.Ba)throw Error('Malformed exponential pattern "'+b+'"');t=!1;break;default:c[0]--,t=!1}0==k&&0f&&0h+k)||0==p)throw Error('Malformed pattern "'+b+'"');l=h+k+l;a.ha=0<=f?l-f:0;0<=f&&(a.ka=h+k-f,0>a.ka&&(a.ka=0));a.ma=(0<=f?f:l)-h;a.Ga&&(a.ya=h+a.ma,0==a.ha&&0==a.ma&&(a.ma=1));a.na.push(Math.max(0,p));a.Ia= 0==f||f==l;e=c[0]-e;a.Aa=Gn(a,b,c);c[0]this.oa.length?e=!1:this.ua.length=sa)E+=sa,l=!0;else if(pa==t.charAt(0)){if(h||k)break;E+=".";h=!0}else if(pa==w.charAt(0)&&("\u00a0"!=w.charAt(0)||b[0]+1this.ha)throw Error("Min value must be less than max value");if(isNaN(a))return Cn.Mz;var b=[];var c=a,e=a;if(0==this.wa)var f=In;else c=Math.abs(c),e=Math.abs(e),f=Jn(this,1>=c?0:Kn(c)).Vr,e=Ln(e,-f),Mn(this,e),c=Ln(c,-f),c=Mn(this,c),f=Jn(this,f+Kn(c.intValue));a=Ln(a,-f.Vr);(c=0>a||0==a&&0>1/a)?f.ht?b.push(f.ht):(b.push(f.prefix),b.push(this.oa)):(b.push(f.prefix),b.push(this.ua));if(isFinite(a))if(a=a*(c?-1:1)*this.o,this.Ga)if(e=a,0==e)Nn(this,e,this.ma, b),On(this,0,b);else{var h=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=Ln(e,-h);var k=this.ma;1this.ma?(k=h%this.ya,0>k&&(k=this.ya+k),e=Ln(e,k),h-=k,k=1):1>this.ma?(h++,e=Ln(e,-1)):(h-=this.ma-1,e=Ln(e,this.ma-1));Nn(this,e,k,b);On(this,h,b)}else Nn(this,a,this.ma,b);else b.push(Cn.mr);c?f.it?b.push(f.it):(isFinite(a)&&b.push(f.suffix),b.push(this.va)):(isFinite(a)&&b.push(f.suffix),b.push(this.Aa));return b.join("")}; function Mn(a,b){var c=Ln(b,a.ha);0a.ha)throw Error("Min value must be less than max value");e||(e=[]);b=Mn(a,b);var f=b.intValue,h=b.pC,k=0h.length&&(h="1"+mi("0",a.ha-h.length)+h);for(a=h.length;"0"==h.charAt(a-1)&&a>b+1;)a--;for(b=1;bb?(b=-b,c.push(Cn.cv)):a.Ha&&c.push(Cn.Tz);b=""+b;for(var e=Cn.ur,f=b.length;fa)return a-48;var b=Cn.ur.charCodeAt(0);return b<=a&&ab)return In;b=Math.min(14,b);var c=a[Ln(1,b)];for(--b;!c&&3<=b;)c=a[Ln(1,b)],b--;if(!c)return In;c=c.other;var e=a="",f=c.indexOf(";");0<=f&&(c=c.substring(0,f),f=c.substring(f+1))&&(e=/([^0]*)(0+)(.*)/.exec(f),a=e[1],e=e[3]);return c&&"0"!=c?(c=/([^0]*)(0+)(.*)/.exec(c))?{Vr:b+1-(c[2].length-1),ht:a,it:e,prefix:c[1],suffix:c[3]}:In:In} function Kn(a){if(!isFinite(a))return 0>>0);function Ho(a){if("function"===typeof a)return a;a[Po]||(a[Po]=function(b){return a.handleEvent(b)}); return a[Po]} ;function Qo(){no.call(this);this.ka=new yo(this);this.Lc=this;this.zc=null} Lb(Qo,no);Qo.prototype[to]=!0;n=Qo.prototype;n.Es=function(){return this.zc}; n.addEventListener=function(a,b,c,e){Fo(this,a,b,c,e)}; n.removeEventListener=function(a,b,c,e){No(this,a,b,c,e)}; n.dispatchEvent=function(a){var b=this.Es();if(b){var c=[];for(var e=1;b;b=b.Es())c.push(b),++e}b=this.Lc;e=a.type||a;if("string"===typeof a)a=new po(a,b);else if(a instanceof po)a.target=a.target||b;else{var f=a;a=new po(e,b);ze(a,f)}f=!0;if(c)for(var h=c.length-1;!a.ma&&0<=h;h--){var k=a.o=c[h];f=k.Lm(e,!0,a)&&f}a.ma||(k=a.o=b,f=k.Lm(e,!0,a)&&f,a.ma||(f=k.Lm(e,!1,a)&&f));if(c)for(h=0;!a.ma&&hc&&(c=a.length);var e=a.indexOf("?");if(0>e||e>c){e=c;var f=""}else f=a.substring(e+1,c);a=[a.substr(0,e),f,a.substr(c)];c=a[1];a[1]=b?c?c+"&"+b:b:c;return a[0]+(a[1]?"?"+a[1]:"")+a[2]} function Xo(a,b,c){if(Array.isArray(b))for(var e=0;e>>0);a={requestId:c,hB:vp(a,b,c),onLoad:b.onLoad,onError:b.onError||function(){}, kq:b.kq||function(){}, FE:b.FE||function(){}, Cr:b.Cr,dC:b.pageType,ll:b.ll};b.xd&&("IFRAME"==b.xd.nodeName?(a.window=b.xd.contentWindow,a.xd=a.window.document.body):(a.window=window,a.xd=b.xd));return a} function vp(a,b,c){var e=wp(a)+"/apis/render?",f=a.ua,h=a.Ba,k=b.helpcenter,l=a.ta,p=a.va,r=a.Ha,t=a.Ia,w=a.Aa,z=b.pageType,E=b.pageId,pa=b.url,sa=b.sh,wa=b.EI;c=["js_request_id."+c];if(b.extraParams)for(var xa in b.extraParams)c.push(xa+"."+b.extraParams[xa]);a={v:1,key:f,request_source:h,helpcenter:k,hl:l,authuser:p,visit_id:r,view_id:t,psd:w,page_type:z,id:E,url:pa,components:sa,exclude_components:wa,extra_params:c,mendel_ids:a.ya,service_configuration:a.Ga,scdeb:a.wa,instant_preview:b.instantPreview, symptom:b.symptom,scenario_id:b.testScenarioId};b="";for(var Ea in a)f=a[Ea],void 0!=f&&(Array.isArray(f)&&(f=f.join()),b&&(b+="&"),b+=Ea+"="+encodeURIComponent(f.toString()));return e+b} function up(a,b,c){try{var e=JSON.parse(c)}catch(f){b.onError({type:1,message:c});return}if(404!=e.application_error&&e.html){if(b.ll){if(!e.page_metadata||!e.page_metadata.page_type){b.onError({type:4});return}if(ue.get(e.page_metadata.page_type)!=b.dC){b.onError({type:3});return}}e.page_metadata&&b.kq(e.page_metadata);b.xd?xp(a,b,e.html):b.Cr(function(f){"IFRAME"==f.nodeName?(b.window=f.contentWindow,b.xd=b.window.document.body):(b.window=window,b.xd=f);xp(a,b,e.html)})}else b.onError({type:2})} function xp(a,b,c){b.window.sc_scope=b.xd;b.onLoad&&(b.window[b.requestId]=function(e){b.onLoad(e.getChild(b.requestId))}); Kg(b.xd,fp(c));c=Array.from(b.xd.getElementsByTagName("script"));a.ma(b,c)} pp.prototype.ma=function(a,b){for(;0a.ha.length;a.oa()} ;function Cp(){var a=this;this.o=document.querySelector(".overlay");this.o.addEventListener("scroll",function(){Dp(a);a.oa()}); this.ha=this.o.querySelector(".overlay__backdrop");this.ha.addEventListener("touchmove",function(b){return b.preventDefault()}); this.ha.addEventListener("click",function(){Ep(a,0)}); this.ua=this.o.querySelector(".overlay__header");this.ua.addEventListener("touchmove",function(b){a.o.classList.contains("fullscreen")&&b.preventDefault()}); this.ta=this.o.querySelector(".overlay__close-button");this.ta.addEventListener("click",function(){Ep(a,0)}); this.oa=Yh(function(){if(!a.o.classList.contains("fullscreen")&&!a.ma){var b=a.o.scrollTop;0==b?(a.ka.close(),window.removeEventListener("scroll",a.na),window.document.body.style.overflow=""):b>.8*a.ha.clientHeight?Ep(a,a.ha.clientHeight):b<.2*a.ha.clientHeight?Ep(a,0):Ep(a,Math.round(.7*a.ha.clientHeight))}},300); this.o.addEventListener("touchstart",function(){return a.ma=!0}); this.o.addEventListener("touchend",function(){a.ma=!1;a.oa()}); this.na=function(){window.scroll(0,a.va)}; this.ka=new zp(this.o,function(b){return Fp(a,b)},function(){Dp(a)})} Cp.prototype.Dh=ma(5);function Dp(a){var b=Bp(a.ka);b&&(a.o.scrollTop>=a.ha.clientHeight?(a.o.classList.add("fullscreen"),b.ud.contentDocument.body.style.overflowY=""):(a.o.classList.remove("fullscreen"),b.ud.contentDocument.body.style.overflowY="hidden"),0a||5a?a=0:a>c&&(a=c);return a-b} function Up(a){a.preventDefault()} ;function Xp(a,b,c){a.timeOfStartCall=(new Date).getTime();var e=c||tb,f=e.document,h=a.nonce||Yg(e);h&&!a.nonce&&(a.nonce=h);if("help"==a.flow){var k=ub("document.location.href",e);!a.helpCenterContext&&k&&(a.helpCenterContext=k.substring(0,1200));k=!0;if(b&&JSON&&JSON.stringify){var l=JSON.stringify(b);(k=1200>=l.length)&&(a.psdJson=l)}k||(b={invalidPsd:!0})}b=[a,b,c];e.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(k=e.GOOGLE_FEEDBACK_START)k.apply(e,b);else{e= c+"/load.js?";for(var p in a)b=a[p],null==b||zb(b)||(e+=encodeURIComponent(p)+"="+encodeURIComponent(b)+"&");a=Ai(pi(f),"SCRIPT");h&&a.setAttribute("nonce",h);h=e;p=Ge("serverUri is the endpoint of our own Help API");Fe(p);Fe(p);h=Pe(h);Og(a,h);f.body.appendChild(a)}} Kb("userfeedback.api.startFeedback",function(a,b,c){Xp(a,b,c)});function Yp(a){window.sc_trackStatsEvent(49,8);Zp(a)} function Zp(a){var b=a.productId,c=a.bucket,e=void 0===a.flow?"material":a.flow,f=void 0===a.Sr?!1:a.Sr,h=void 0===a.fB?!0:a.fB,k=a.pF,l=a.onClose,p=a.onLoad,r=a.payload;a=a.description;var t=mh(),w={};b=(w.flow=e,w.locale=t.lang,w.productId=b,w.disableSubmit=f,w);c&&(b.bucket=c);l&&(b.callback=l);p&&(b.onLoadCallback=p);t.sb_uri&&(b.serverUri=t.sb_uri);k&&(b.reportDataCallback=k);b.allowNonLoggedInFeedback=h;"submit"===e&&(b.report={description:a});var z={};r.forEach(function(E,pa){z[pa]=E}); Xp(b,z,void 0)} ;function $p(){var a=mh();a=new Map([["answer_id",a.pid],["bc_url",a.bcUrl],["environment_hostname",a.ehn],["external_name",a.ehc],["hc",a.hc],["hostname",a.host],["internal_ip",a.ii],["experiments",a.mendel_ids],["page_type",a.pt],["user_logged_in",a.li],["environment",a.env],["client",aq()]]);a.set("escalation_availability_matching_frd_forms",Uh().escalation_availability_matching_frd_forms);a.set("rule_service_escalation_availability_c2c_event_id",Uh().rule_service_escalation_availability_c2c_event_id); a.set("rule_service_escalation_availability_c2c_synthesis_event_id",Uh().rule_service_escalation_availability_c2c_synthesis_event_id);a.set("rule_service_escalation_availability_chat_event_id",Uh().rule_service_escalation_availability_chat_event_id);a.set("rule_service_escalation_availability_chat_synthesis_event_id",Uh().rule_service_escalation_availability_chat_synthesis_event_id);a.set("rule_service_escalation_availability_email_event_id",Uh().rule_service_escalation_availability_email_event_id); a.set("rule_service_escalation_availability_email_synthesis_event_id",Uh().rule_service_escalation_availability_email_synthesis_event_id);a.set("rule_service_escalation_availability_phone_event_id",Uh().rule_service_escalation_availability_phone_event_id);a.set("rule_service_escalation_availability_phone_synthesis_event_id",Uh().rule_service_escalation_availability_phone_synthesis_event_id);a.set("rule_service_extensible_contact_options_event_id",Uh().rule_service_extensible_contact_options_event_id); a.set("rule_service_helpcenter_fields_synthesis_event_id",Uh().rule_service_helpcenter_fields_synthesis_event_id);return a} function aq(){var a=mh().rs;switch(a){case 4:return"cases";case 1:return"helpcenter";default:return String(a)}} ;function bq(){cq(this)} function cq(a){a.o=(new Ip({className:"material-dialog-backdrop",um:"material-dialog-backdrop--active",Dw:"material-dialog-backdrop--locked",OB:"material-dialog-backdrop--disable-click-capture"})).ov(function(){return!a.oa}); a.o.getElement().addEventListener("click",function(b){b=b.target;var c=b.getAttribute("data-material-dialog-action");c&&(a.ha&&a.ha(c),jh(b,"material-dialog--disable-close")||a.close())})} bq.prototype.open=function(a){var b=this,c=a.querySelector(".material-dialog__title");c&&Wp(c,a).reset().enable(jh(a,"material-dialog--draggable"));var e=a.querySelector(".material-dialog__minimize-button");if(e){var f=e.getAttribute("data-material-dialog-minimized-aria-label"),h=function(){var k=document.createElement("button");k.className="material-dialog-minimized";k.textContent=c.textContent+"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u2594";f&&k.setAttribute("aria-label",f);k.addEventListener("click", function(){b.o.open();document.body.removeChild(k)}); b.o.close();document.body.appendChild(k);k.focus()}; this.ka=function(){return e.removeEventListener("click",h)}; e.addEventListener("click",h)}this.oa=jh(a,"material-dialog--disable-close");this.o.ju(!jh(a,"material-dialog--show-background")).fu(jh(a,"material-dialog--disable-click-capture")).Ii(a).open();a.focus();return this}; bq.prototype.close=function(){this.o.close();this.ka&&this.ka();this.ma&&this.ma()}; bq.prototype.Xc=function(a){this.ha=a;return this}; bq.prototype.onClose=function(a){this.ma=a;return this}; bq.prototype.onClose=bq.prototype.onClose;bq.prototype.onAction=bq.prototype.Xc;bq.prototype.close=bq.prototype.close;bq.prototype.open=bq.prototype.open;function dq(a,b){var c=null;return function(){var e=nb.apply(0,arguments);clearTimeout(c);c=setTimeout(function(){a.apply(null,Ba(e))},b)}} ;function eq(){var a,b,c;return null!==(c=null===(b=null===(a=document.activeElement)||void 0===a?void 0:a.shadowRoot)||void 0===b?void 0:b.activeElement)&&void 0!==c?c:document.activeElement} function fq(a){return Array.from(a.querySelectorAll("*")).filter(gq)} function gq(a){if(a.disabled||0===a.offsetWidth||0===a.offsetHeight||"hidden"===window.getComputedStyle(a).visibility)a=!1;else if(0!==a.tabIndex||a.attributes.getNamedItem("tabindex"))a=0<=a.tabIndex;else a:switch(a.tagName){case "A":case "BUTTON":case "INPUT":case "SELECT":case "TEXTAREA":a=!0;break a;default:a=!1}return a} function hq(a,b,c){c.activeElement&&(c=a.indexOf(c.activeElement),a=a[((-1===c?0:c+b)+a.length)%a.length],(a instanceof HTMLElement||a instanceof SVGElement)&&a.focus())} ;function iq(a){var b=void 0===a.label?"":a.label,c=void 0===a.floatingLabel?!0:a.floatingLabel,e=void 0===a.Xk?void 0:a.Xk,f=void 0===a.disabled?!1:a.disabled,h=void 0===a.filled?!1:a.filled,k=void 0===a.kc?!1:a.kc,l=a.Og;a=void 0===a.fn?"":a.fn;A.call(this,"sc.shared.MaterialBorder");this.error=this.o=this.active=!1;this.filled=h;this.floatingLabel=c;this.kc=k;this.label=b;this.Xk=e?"calc(100% - "+e/16+"rem)":void 0;this.disabled=f;this.ha=l;this.fn=a} x(iq,A);n=iq.prototype;n.content=function(){this.filled?jq(this):kq(this)}; n.render=function(){A.prototype.render.call(this)}; function lq(a,b){a.label=b;a.Ca()} function mq(a,b){a.error=b} function kq(a){var b,c,e=a.Og();a.element("div","class",{container:!0,"container-dense":a.kc},function(){a.element("div","class",{left:!0,"left-error":a.error,focused:a.o,disabled:a.disabled});c=a.element("div","class",{mid:!0,"mid-error":a.error,"mid-active":e&&a.floatingLabel,focused:a.o,disabled:a.disabled},"style",{"max-width":a.Xk},function(){a.label&&(b=a.element("label","class",{label:!0,"label-dense":a.kc,"label-error":a.error,"label-active":e,"label-hidden":e&&!a.floatingLabel,"label-focused":a.o, "label-disabled":a.disabled},"style",{"font-size":e?"1rem":""},"id",a.fn,a.label))}); a.element("div","class",{right:!0,"right-error":a.error,focused:a.o,disabled:a.disabled})}); if(b&&e&&a.floatingLabel&&c){var f=Number(window.getComputedStyle(c).width.replace("px",""));c.style.width=Math.ceil(.75*f+16)+"px";c.style.paddingLeft="4px";b.style.maxWidth="calc(100%/.75)"}} function jq(a){var b=a.Og();a.element("div","class",{container:!0,"container-dense":a.kc,filled:!0,"filled-error":a.error,"filled-active":b,"filled-disabled":a.disabled,"filled-focused":a.o},function(){a.element("div","class",{"filled-bottom":!0,"filled-bottom-focused":a.o});a.element("label","class",{"filled-label":!0,"label-dense":a.kc,"label-error":a.error,"label-hidden":b&&!a.floatingLabel,"filled-label-active":b,"filled-label-disabled":a.disabled,"filled-label-focused":a.o},"style",{"max-width":a.Xk, "font-size":b?"1rem":""},"id",a.fn,a.label)})} n.blur=function(){this.o=!1;this.ha()?this.activate():this.deactivate()}; n.focus=function(){this.o=!0;this.activate()}; n.activate=function(){this.active=!0;this.Ca()}; n.deactivate=function(){this.active=!1;this.Ca()}; n.Og=function(){return this.label?this.active||this.ha():!1};function nq(a){var b=a.icon,c=void 0===a.text?"":a.text,e=void 0===a.title?"":a.title,f=void 0===a.Yp?!1:a.Yp,h=void 0===a.size?void 0:a.size,k=void 0===a.qw?void 0:a.qw,l=void 0===a.jn?!1:a.jn,p=void 0===a.filled?!1:a.filled,r=void 0===a.Ep?!1:a.Ep,t=a.trigger;a=a.tabIndex;A.call(this,"sc.shared.MaterialFab");this.o=!1;this.icon=k?new sl({icon:b,yb:!0,size:k}):new sl({icon:b,yb:!0});this.text=c;this.title=e;this.Yp=f;this.size=h;this.jn=l;this.filled=p;this.Ep=r;this.trigger=t;this.overlay=new Dl; this.tabIndex=void 0===a?null:String(a)} x(nq,A);nq.prototype.content=function(){var a=this,b=["class",{root:!0,extended:this.text,mini:this.Yp,lowered:this.jn,filled:this.filled,"fake-focus":this.o,grey:this.Ep},"tabindex",this.tabIndex,"onclick",this.trigger,"onkeydown",function(e){Gl(a.overlay,e)}]; this.title&&b.push("title",this.title);if(this.size){var c=this.size+"px";b.push("style",{height:c,width:c})}this.element.apply(this,["button"].concat(Ba(b),[function(){a.element("span","class","icon",a.icon);a.text&&Pk(a.text);a.overlay.render()}]))};function oq(a){var b=a.content,c=void 0===a.qc?5:a.qc,e=void 0===a.uc?5:a.uc,f=void 0===a.Oi?0:a.Oi,h=void 0===a.Ug?0:a.Ug,k=void 0===a.cj?!1:a.cj,l=a.bl,p=a.onClose,r=a.maxHeight,t=void 0===a.Bl?!1:a.Bl,w=void 0===a.Qn?!0:a.Qn,z=void 0===a.Bm?!0:a.Bm,E=void 0===a.Oo?!0:a.Oo,pa=void 0===a.Nh?!0:a.Nh,sa=void 0===a.Cl?!1:a.Cl;a=void 0===a.hh?{}:a.hh;A.call(this,"sc.shared.MaterialPopup");this.ka=null;this.na=!1;this.Bd=this.Pd=0;this.ua=b;this.Oi=f;this.Ug=h;this.qc=c;this.uc=e;this.maxHeight=r;this.va= !t;this.Nh=sa||pa;this.bl=l;this.onClose=p;this.cj=k;this.Qn=w;this.Bm=z;this.Oo=E;this.hh=a;sa&&(this.hh=Object.assign({"background-color":"rgba(0, 0, 0, .5)","z-index":"986"},this.hh))} x(oq,A);n=oq.prototype;n.Dd=function(){return!0}; n.content=function(){var a=this;this.ta=this.element("div","class","backdrop","style",Object.assign({pointerEvents:this.Nh&&this.isOpen()?"auto":"none",opacity:this.isOpen()?"1":"0"},this.hh),"onclick",this.Nh?function(b){a.Oo&&b.target===a.ta&&a.close()}:void 0,function(){a.o=a.element("div","class",{popup:!0, background:a.va},"style",{transform:a.isOpen()?"scale(1, 1)":"scale("+(0===a.Oi?1:0)+", "+(0===a.Ug?1:0)+")",transformOrigin:pq(a.Oi)+" "+pq(a.Ug),opacity:a.isOpen()?"1":"0",visibility:a.isOpen()?"visible":"hidden"},"onkeydown",function(b){if(a.Bm&&"Escape"===b.key)a.close();else if(a.Qn)if("Tab"===b.key&&!b.shiftKey||a.cj&&"ArrowDown"===b.key){b.preventDefault();b=a.o?fq(a.o):[];var c=qq(a);c=void 0===c?document:c;hq(b,1,c)}else if("Tab"===b.key&&b.shiftKey||a.cj&&"ArrowUp"===b.key)b.preventDefault(), b=a.o?fq(a.o):[],c=qq(a),c=void 0===c?document:c,hq(b,-1,c)},a.ua)}); this.ha&&this.ha()}; n.open=function(a){var b=this,c=void 0===a?{}:a,e=c.anchor;a=c.Nb;var f=c.Pd;c=c.Bd;if(!this.isOpen()&&(this.na=!0,this.Ca(),this.ha=function(){var h=e;if(b.o){var k=b.Pd,l=b.Bd;h instanceof A&&(h=h.getElement());var p=b.ta.getBoundingClientRect();h?(h=h.getBoundingClientRect(),k+=rq(b.qc,h.left,h.right,p.left,p.width,b.o.offsetWidth),l+=rq(b.uc,h.top,h.bottom,p.top,p.height,b.o.offsetHeight)):(k+=sq(b.qc,p.width,b.o.offsetWidth),l+=sq(b.uc,p.height,b.o.offsetHeight));b.maxHeight&&(b.o.style.maxHeight= b.maxHeight,b.o.style.overflowY="auto");k=tq(k,b.o.offsetWidth,p.width);l=tq(l,b.o.offsetHeight,p.height);b.o.style.left=k+"px";b.o.style.top=l+"px"}},window.addEventListener("resize",this.ha),window.addEventListener("scroll",this.ha),uq(this,f,c),a)){if(a=eq())this.ka=a; a=this.o?fq(this.o):[];0c||0>a?0:a+b>=c?c-b:a} function pq(a){switch(a){case 1:case 3:return"100%";case 2:case 4:return"0%";default:return"50%"}} function qq(a){var b,c;return null!==(c=null===(b=a.getElement())||void 0===b?void 0:b.getRootNode())&&void 0!==c?c:document} ;function vq(a){kl.call(this);this.qk=!1;this.text=this.group="";this.selected=this.disabled=!1;this.Zd(a)} x(vq,kl);n=vq.prototype;n.Zd=function(a){var b=void 0===a.text?"":a.text,c=void 0===a.disabled?!1:a.disabled,e=void 0===a.selected?!1:a.selected,f=a.content,h=a.Xa,k=a.ff,l=void 0===a.qk?!1:a.qk;this.group=void 0===a.group?"":a.group;this.selected=e;this.text=b;this.content=f;this.Xa=h;this.disabled=c;this.ff=k;this.qk=l}; n.La=function(){return this.text}; n.Vd=function(){return this.content}; n.Qf=function(){return this.Xa}; n.isSelected=function(){return this.selected}; n.Ng=function(a){var b;this.selected=a;null===(b=this.ff)||void 0===b?void 0:b.call(this,this.selected);nl(this,0)};function wq(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialRadio");this.id=jl();this.model=a instanceof vq?a:new vq(a);this.overlay=new Dl({sk:!0});this.o=null;el(this,this.model)} x(wq,A);wq.prototype.content=function(a){var b=this;a&&this.model.Zd(a);this.element("label","for",this.id,"class",{root:!0,disabled:this.model.disabled,"align-top":this.model.qk},function(){b.element("div","class","radio",function(){b.o=Sb(b.element("input","id",b.id,"class","native-control","type","radio","name",b.model.group,"aria-label",b.model.Qf(),"disabled",b.model.disabled,"onchange",function(){b.Fa()}),HTMLInputElement); b.o.checked=b.isSelected();b.element("div","class","ring");b.element("div","class","dot");b.overlay.render()}); var c=b.model.La(),e=b.model.Vd();(c||e)&&b.element("span","class","label-text",c||e)})}; wq.prototype.Fa=function(){if(this.o&&this.model.isSelected()!==this.o.checked&&(this.model.Ng(this.o.checked),this.model.group))for(var a=u(Array.from(document.getElementsByName(this.model.group))),b=a.next();!b.done;b=a.next())b.value.dispatchEvent(new Event("change"))}; wq.prototype.isSelected=function(){return this.model.isSelected()};function xq(a){var b=a.content,c=void 0===a.Rg?!0:a.Rg,e=void 0===a.xm?"placement-start":a.xm,f=void 0===a.Dr?"alignment-start":a.Dr,h=void 0===a.style?"style-normal":a.style,k=a.Qo,l=Mf(a,"content useFixedBackdrop caretPlacement caretAlignment style containerPadding".split(" "));A.call(this,"sc.shared.MaterialRichTooltip");var p=this;this.ha=!1;this.Bd=this.Pd=0;this.ka=b;this.Rg=c;this.ta=e;this.na=f;this.ua=h;this.Qo=k;this.o=new oq(Object.assign({content:function(){yq(p)}, Bl:!0,Qn:!1,Bm:!1},l))} x(xq,A);n=xq.prototype;n.open=function(a){this.Rg?this.o.open(a):(this.ha=!0,this.Ca())}; n.isOpen=function(){return this.Rg?this.o.isOpen():this.ha}; n.close=function(){this.Rg?this.o.close():(this.ha=!1,this.Ca())}; function zq(a,b){var c=b.Pd;b=b.Bd;a.Rg||(a.Pd=null!==c&&void 0!==c?c:a.Pd,a.Bd=null!==b&&void 0!==b?b:a.Bd,a.Ca())} n.Dd=function(){return!0}; n.content=function(){var a=this;this.Rg?this.o.render():this.element("div","class","popup-container","style",{visibility:this.ha?"visible":"hidden",transform:"translate("+this.Pd+"px, "+this.Bd+"px)"},function(){yq(a)})}; function yq(a){a.element("div","class","root "+a.ta+" "+a.ua,function(){a.element("div","class","container","style",{padding:a.Qo},a.ka);a.element("div","class","clip-track "+a.na,function(){a.element("div","class","clip",function(){a.element("div","class","caret")})})})} ;var Aq={vG:!1,vm:!0};function Bq(){A.call(this,"sc.shared.MaterialSnackbar");this.ha=new Hl;this.message="";this.Ck=5E3;this.Pq=!1;this.state=2} x(Bq,A);Bq.prototype.open=function(a){var b=this,c=a.message,e=a.action,f=void 0===a.Ck?5E3:a.Ck;a=void 0===a.Pq?!1:a.Pq;if(0===this.state)return Promise.resolve();this.state=0;this.message=c;this.Ck=f;this.Pq=a;e?this.action=Object.assign(Object.assign({},Aq),e):this.action=void 0;this.Ca();Cq(this);return new Promise(function(h){b.onClose=h})}; Bq.prototype.close=function(){0===this.state&&(this.o&&clearTimeout(this.o),this.state=1,this.message="",this.Ca())}; Bq.prototype.content=function(){var a=this;this.element("div","class",{root:!0,widescreen:this.Pq,"root-closed":2===this.state},function(){var b;a.element("div","class",{snackbar:!0,opened:0===a.state,closing:1===a.state,closed:2===a.state,"long-action":null===(b=a.action)||void 0===b?void 0:b.vG},"ontransitionend",function(c){var e;"opacity"===c.propertyName&&0!==a.state&&2!==a.state&&(a.state=2,a.Ca(),null===(e=a.onClose)||void 0===e?void 0:e.call(a))},function(){a.element("div","role","status", "aria-live","assertive","class","message",a.message); Dq(a)})})}; function Dq(a){a.action&&a.element("div","class","action",function(){a.ha.render({text:a.action.actionText,trigger:function(){var b,c;a.action.vm&&a.close();null===(c=(b=a.action).Xc)||void 0===c?void 0:c.call(b)}})})} function Cq(a){a.action||(a.o=setTimeout(function(){a.close()},a.Ck))} ;function Eq(){this.ka=[];this.ha=!1;this.oa=new Bq} function Fq(){return Gq.initialize()} Eq.prototype.initialize=function(a){a=void 0===a?document.body:a;if(this.ha)return this;this.ha=!0;Hq(this,a);return this}; Eq.prototype.open=function(a){this.ha&&(this.ka.push(a),Iq(this))}; Eq.prototype.close=function(){this.oa.close()}; Eq.prototype.Na=function(){var a=this;mb(function(b){if(1==b.o)return a.ha?a.ma?Ua(b,a.ma,2):b.Sa(2):b.return(a);a.o&&a.o.parentElement&&(a.o.parentElement.removeChild(a.o),a.o=void 0);a.ha=!1;return b.return(a)})}; function Iq(a,b){b=void 0===b?!1:b;var c;mb(function(e){if(1==e.o){if(!b&&a.ma)return e.return();if(0===a.ka.length)return null===(c=a.na)||void 0===c?void 0:c.call(a),delete a.ma,delete a.na,e.return();a.ma||(a.ma=new Promise(function(f){a.na=f})); return Ua(e,a.oa.open(a.ka[0]),2)}a.ka.shift();Iq(a,!0);Za(e)})} function Hq(a,b){"interactive"===document.readyState||"complete"===document.readyState?Jq(a,b):window.addEventListener("DOMContentLoaded",function(){Jq(a,b)})} function Jq(a,b){a.o=document.createElement("div");b.appendChild(a.o);Sk(a.o,function(){a.oa.render()})} var Gq=new Eq;function Kq(a){var b=void 0===a?{}:a;a=void 0===b.size?"mspin-small":b.size;b=void 0===b.Ko?!1:b.Ko;A.call(this,"sc.shared.MaterialSpinner");this.size=a;this.Ko=b} x(Kq,A);Kq.prototype.content=function(){var a=this;this.element("div","class","mspin "+this.size+" "+(this.Ko?"mspin-centered":""),function(){a.element("div",function(){a.element("div")})})};function Lq(a){kl.call(this);this.inputType="";this.Ch=!1;this.Me=!0;this.Yk=this.rows=0;this.Ym=this.text=this.label="";this.kc=this.filled=!1;this.Re=!0;this.disabled=this.Eq=!1;this.placeholder="";this.Le=[];this.error="";this.maxLength=void 0;this.Gd=!1;this.Zd(a)} x(Lq,kl);n=Lq.prototype; n.Zd=function(a){var b=void 0===a.Ch?!1:a.Ch,c=void 0===a.Me?!0:a.Me,e=void 0===a.rows?0:a.rows,f=void 0===a.Yk?0:a.Yk,h=void 0===a.label?"":a.label,k=void 0===a.placeholder?"":a.placeholder,l=void 0===a.text?"":a.text,p=void 0===a.Ym?"":a.Ym,r=void 0===a.filled?!1:a.filled,t=void 0===a.kc?!1:a.kc,w=void 0===a.Re?!0:a.Re,z=void 0===a.Eq?!1:a.Eq,E=void 0===a.disabled?!1:a.disabled,pa=void 0===a.Xd?void 0:a.Xd,sa=void 0===a.Zf?void 0:a.Zf,wa=void 0===a.Xf?void 0:a.Xf,xa=void 0===a.iq?void 0:a.iq,Ea= void 0===a.Le?["self"]:a.Le,Da=void 0===a.error?"":a.error,za=a.maxLength,Na=void 0===a.Gd?!1:a.Gd;this.inputType=void 0===a.inputType?"":a.inputType;this.Ch=b;this.rows=e;this.Yk=f;this.label=h;this.placeholder=k;this.text=l;this.Ym=p;this.filled=r;this.kc=t;this.Re=w;this.Eq=z;this.disabled=E;this.Xd=pa;this.Zf=sa;this.Xf=wa;this.iq=xa;this.Le=Ea;this.error=Da;this.Me=c;this.maxLength=za;this.Gd=Na}; n.wj=function(){return this.Me}; n.ub=function(){return this.label}; n.La=function(){return this.text}; n.wb=function(a){a!==this.text&&(this.text=a,nl(this,0))}; n.getError=function(){return this.error}; n.Ob=function(a){a!==this.disabled&&(this.disabled=a,nl(this,3))}; n.qd=function(){return this.maxLength};function Mq(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialTextField");this.labelId=jl();this.na=jl();this.o=null;this.ka=!1;this.model=a instanceof Lq?a:new Lq(a);el(this,this.model)} x(Mq,A);function Nq(a){return a.model.wj()?a.o?a.o:new iq({label:a.model.placeholder,fn:a.model.ub()?void 0:Oq(a),floatingLabel:a.model.Re,disabled:a.model.disabled,filled:a.model.filled,kc:a.model.kc,Og:function(){return""!==a.model.La()}}):null} n=Mq.prototype; n.content=function(a){var b=this;a&&this.model.Zd(a);this.o=Nq(this);this.element("div","class","root",function(){b.model.ub()&&b.element("label","class","label","id",b.labelId,b.model.ub());b.o&&mq(b.o,!!b.model.getError());b.element("div","class",{"input-container":!0,multiline:b.model.Ch,dense:b.model.kc,invalid:b.model.getError(),outlined:!b.model.filled,filled:b.model.filled,disabled:b.model.disabled},function(){b.element(b.model.ub()?"div":"label","class",{box:!0,"box-no-label":b.model.filled&&!b.model.Re, "filled-box":b.model.filled&&!b.model.kc&&(b.model.Re||b.model.Ch),"filled-label":b.model.filled&&!b.model.kc&&b.model.Re,"outlined-box":!b.model.filled&&b.model.Re},function(){b.ha=b.element(b.model.Ch?"textarea":"input","class",{"native-control":!0,"native-control-filled":b.model.filled},"style",{padding:"0 15px","padding-bottom":b.model.filled?"0":"15px"},"placeholder",b.o?"":b.model.placeholder,"aria-placeholder",b.o?b.model.placeholder:"","type",b.model.inputType,"rows",b.model.rows,"disabled", b.model.disabled,"aria-labelledby",Pq(b),"maxlength",b.model.qd(),"onfocus",function(){return void b.Zf()},"onblur",function(){return void b.Xf()},"oninput",function(){var f,h=b.ha.value; b.model.wb(h);null===(f=b.model.Xd)||void 0===f?void 0:f(h)},"onkeyup",function(f){var h; "Enter"===f.key&&(null===(h=b.model.iq)||void 0===h?void 0:h())},"aria-required",b.model.Gd); b.ha.value=b.model.La();if(b.model.Ch&&0===b.model.rows){var e=Qq(b);b.ha.style.height=e+"px";0===e&&(b.ha.style.overflowY="hidden")}}); b.o&&(b.o.render(),lq(b.o,b.model.placeholder))}); var c=b.model.getError()||b.model.Ym;c&&(b.element("div","id",b.na,"class",{"helper-text":!0,"helper-text-invalid":b.model.getError(),"helper-text-disabled":b.model.disabled,"helper-text-filled":b.model.filled,"helper-text-outlined":!b.model.filled,"helper-text-hidden":!b.model.getError()&&b.model.Eq&&!b.ka},c),b.ha.setAttribute("aria-describedby",b.na))})}; function Pq(a){return a.model.Le?a.model.Le.map(function(b){return"self"===b?Oq(a):b}).join(" "):Oq(a)} function Oq(a){if(a.model.ub()||a.model.placeholder)return a.labelId} function Qq(a){var b=Number(getComputedStyle(a.ha).paddingLeft.replace(/[^0-9\.]/g,"")),c=a.ha.clientWidth-2*b;b=a.element("div","class","expander","style","width: "+c+"px",""+a.model.La()+"\u200b");if(a.model.Yk){var e="\n".repeat(a.model.Yk-1);a=a.element("div","class","expander","style","width: "+c+"px",""+e+"\u200b");return Math.min(b.clientHeight,a.clientHeight)}return b.clientHeight} n.Zf=function(){var a;this.ka=!0;this.o&&this.o.focus();null===(a=this.model.Zf)||void 0===a?void 0:a();this.Ca()}; n.Xf=function(){var a;this.ka=!1;this.o&&this.o.blur();null===(a=this.model.Xf)||void 0===a?void 0:a();this.Ca()}; n.La=function(){return this.model.La()}; n.wb=function(a){this.model.wb(a)}; function Rq(a,b){a=a.model;b!==a.error&&(a.error=b,nl(a,2))} n.hasError=function(){return!!this.model.getError()}; n.Ob=function(a){this.model.Ob(a)}; n.focus=function(){this.ha.focus()};function Sq(a){var b=void 0===a.text?"":a.text,c=a.trigger,e=void 0===a.Qj?"":a.Qj,f=void 0===a.isRtl?!1:a.isRtl,h=void 0===a.zj?!0:a.zj,k=void 0===a.dg?!1:a.dg,l=void 0===a.Hu?0:a.Hu;a=void 0===a.Jq?4:a.Jq;A.call(this,"sc.shared.MaterialTooltip");var p=this;this.o=!1;this.Hu=l;this.Jq=a;this.isRtl=f;this.text=b;this.trigger=c;this.Qj=e;this.zj=h;this.dg=k;this.activate=function(){if(!p.dg||Tq(p,p.trigger))p.o=!0,p.Ca()}; this.deactivate=function(){p.o=!1;p.Ca()}; this.ha=function(r){var t=r.clientX,w=r.clientY;r=p.container.getBoundingClientRect();var z=r.right,E=r.bottom;w=r.top<=w&&w<=E;r.left<=t&&t<=z&&w||p.deactivate()}} x(Sq,A);Sq.prototype.content=function(){var a=this;Uq(this);this.container=this.element("div","class","container","style",{display:this.o?"":"none",direction:this.isRtl?"rtl":void 0,"max-height":this.zj?"7rem":void 0},function(){var h=Xk(a.text);h.classList.add(Vq+"blob");for(var k=u(a.Qj.split(/ +/)),l=k.next();!l.done;l=k.next())(l=l.value)&&h.classList.add(l);a.zj?(h.style.webkitLineClamp="5",h.style.whiteSpace="normal"):h.style.display="inline-block"}); this.container.style.top="0";this.container.style.left="0";this.container.style.transform="none";var b=this.container.getBoundingClientRect(),c=this.trigger.getBoundingClientRect(),e=c.x,f=c.y;0!==b.top&&(e=c.x-b.x,f=c.top-b.top);this.container.style.left=Math.floor(e+c.width/2+this.Hu)+"px";this.container.style.top=f+c.height+this.Jq+"px";this.container.style.transform="";this.trigger.addEventListener("mouseenter",this.activate);this.trigger.addEventListener("mouseleave",this.ha);this.trigger.addEventListener("focus", this.activate);this.trigger.addEventListener("blur",this.deactivate);this.container&&this.container.addEventListener("mouseleave",this.deactivate)}; Sq.prototype.Ca=function(){A.prototype.Ca.call(this);var a=this.getElement().firstChild;if(a){var b=window.innerHeight,c=document.documentElement.clientWidth,e=a.getBoundingClientRect();if(e.right>=c){var f=Number(a.style.left.replace("px",""));a.style.left=Math.floor(f-(e.right-c))+"px"}e.bottom>=b&&(a.style.top=a.offsetHeight/2*-1+"px")}}; Sq.prototype.Tc=function(){Uq(this)}; function Uq(a){a.trigger.removeEventListener("mouseenter",a.activate);a.trigger.removeEventListener("mouseleave",a.ha);a.trigger.removeEventListener("focus",a.activate);a.trigger.removeEventListener("blur",a.deactivate);a.container&&a.container.removeEventListener("mouseleave",a.deactivate)} function Tq(a,b){if(b.scrollWidth>b.getBoundingClientRect().width)return!0;b=u(b.children);for(var c=b.next();!c.done;c=b.next())if(Tq(a,c.value))return!0;return!1} var Vq=al("sc.shared.MaterialTooltip");function Wq(a){return window.matchMedia("(max-width: "+a+")").matches} function Xq(){return Wq("37.5rem")} ;function Yq(){this.ha={};this.o=0} n=Yq.prototype;n.format=function(a){var b=ji("SafeHtmlFormatter:");a=ji(a).replace(new RegExp("\\{"+b+"[\\w&#;]+\\}","g"),Hb(this.mF,this,[]));return Af(a,null)}; n.mF=function(a,b){a=this.ha[b];if(!a)return b;b="";a.Pb&&(b+="<"+a.Pb+a.attributes+">");a.html&&(b+=a.html);a.Mb&&(b+="");return b}; n.Pb=function(a,b){Bf(a);return Zq(this,{Pb:a,attributes:Hf(b)})}; n.Mb=function(a){Bf(a);return Zq(this,{Mb:a})}; n.text=function(a){return Zq(this,{html:ji(a)})}; n.safeHtml=function(a){return Zq(this,{html:yf(a).toString()})}; function Zq(a,b){a.o++;var c="{SafeHtmlFormatter:"+a.o+"_"+oi()+"}";a.ha[ji(c)]=b;return c} ;function $q(a,b){b=void 0===b?mh().hc:b;this.ha=a;this.ma={};b&&(this.ma.helpcenter=b)} n=$q.prototype;n.Bj=function(a){this.na=a;return this}; n.onError=function(a){this.ka=a;return this}; n.ut=function(a){this.oa=a;return this}; n.Kh=function(a,b){this.ma[a]=b;return this}; n.start=function(a){var b=this;a=void 0===a?mh().upload_hostname:a;var c=new XMLHttpRequest;c.open("POST",a+"/upload");c.withCredentials=!0;c.addEventListener("load",function(){try{var e=JSON.parse(c.responseText);ar(b,e.sessionStatus.externalFieldTransfers[0].formPostInfo.url)}catch(f){br(b)}}); c.addEventListener("error",function(){return br(b)}); c.addEventListener("abort",function(){return br(b)}); c.send(cr(this));return this}; function ar(a,b){var c=new XMLHttpRequest;c.open("POST",b);c.withCredentials=!0;c.addEventListener("load",function(){try{var e=JSON.parse(c.responseText).sessionStatus.additionalInfo["uploader_service.GoogleRupioAdditionalInfo"].completionInfo.customerSpecificInfo;a.o=e.cns_filename;a.ta=e.document_id;a.na&&a.na()}catch(f){br(a)}}); c.upload.addEventListener("progress",function(e){a.oa&&a.oa(e.lengthComputable?Math.max(e.loaded-(e.total-a.ha.size),0):0)}); c.addEventListener("error",function(){return br(a)}); c.addEventListener("abort",function(){return br(a)}); b=new FormData;b.append("Filedata",a.ha,a.ha.name);c.send(b)} function br(a){a.ka&&a.ka()} function cr(a){var b=[{external:{name:"file",filename:a.ha.name,formPost:{}}}],c;for(c in a.ma)b.push({inlined:{name:c,content:a.ma[c],contentType:"text/plain"}});return JSON.stringify({protocolVersion:"0.8",createSessionRequest:{fields:b}})} n.zC=function(){return this.o}; n.oi=function(){return this.ta}; $q.prototype.getDocumentId=$q.prototype.oi;$q.prototype.getCnsFilename=$q.prototype.zC;$q.prototype.start=$q.prototype.start;$q.prototype.setMetadata=$q.prototype.Kh;$q.prototype.onProgress=$q.prototype.ut;$q.prototype.onError=$q.prototype.onError;$q.prototype.onSuccess=$q.prototype.Bj;function dr(){var a=this;this.ha=document.querySelector(".overlay");this.o=(new Ip({className:"overlay-backdrop",um:"overlay-backdrop--active",Dw:"overlay-backdrop--locked"})).Ii(this.ha).onClose(function(){a.ma.close()}); this.o.ju(!0);this.o.fu(!0);this.ka=this.ha.querySelector(".overlay__close-button");this.ka.addEventListener("click",function(){a.o.close()}); this.ma=new zp(this.ha,function(b){b.ud.contentDocument.body.style.padding="2.5rem 3.25rem"},null)} dr.prototype.Dh=ma(4);window.sc_initOverlay=function(){return new dr};var er={"alumnus_expert.svg":Ge('\n'),"bronze_expert.svg":Ge('\n'), "community_specialist.svg":Ge('\n'),"diamond_expert.svg":Ge('\n'), "error_computer.svg":Ge('\n'), "gold_expert.svg":Ge('\n'), "google_employee.svg":Ge('\n'),"legacy_expert.svg":Ge('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'), "logo_googleg_48dp.svg":Ge('\n \n \n \n \n \n\n'), "page_desktop.svg":Ge('\n'), "page_desktop_dark.svg":Ge('\n'), "platinum_expert.svg":Ge('\n'), "play.svg":Ge('\n'),"search.svg":Ge('\n'), "silver_expert.svg":Ge('\n'), "stop.svg":Ge('\n'),"workflow.svg":Ge('\n'), "workflow_dark.svg":Ge('\n')};function fr(a){A.call(this,"sc.shared.TsAssetInterop");this.o=a} x(fr,A);fr.prototype.content=function(){Xk(er[this.o])};var gr=new Map([[0,"workflow.svg"],[1,"legacy_expert.svg"],[2,"alumnus_expert.svg"],[3,"bronze_expert.svg"],[4,"silver_expert.svg"],[5,"gold_expert.svg"],[6,"platinum_expert.svg"],[7,"diamond_expert.svg"],[8,"community_specialist.svg"],[9,"google_employee.svg"],[10,"play.svg"],[11,"stop.svg"]]),hr=new Map([[0,"workflow_dark.svg"]]); function ir(a){var b=void 0===a.yb?!1:a.yb,c=void 0===a.ss?!1:a.ss,e=a.icon,f=void 0===a.isDarkMode?!1:a.isDarkMode,h=void 0===a.size?24:a.size;a=a.title;A.call(this,"sc.icon.Icon");f=f&&hr.has(e)?hr.get(e):gr.get(e);if(void 0===f)throw Error("The icon asset "+e+" is undefined.");this.yb=b;this.ss=c;this.size=h;this.o=new fr(f);this.title=a} x(ir,A);ir.prototype.content=function(){var a=this;this.element("div","class",{root:!0,baseline:this.yb,flip:this.ss},"title",this.title,"style",{height:this.size+"px",width:this.size+"px"},function(){a.o.render()})};function jr(a){y.call(this,a,-1,kr)} x(jr,y);var kr=[1,2,3,4];function lr(a){y.call(this,a,-1,mr)} x(lr,y);var mr=[2];function nr(a){y.call(this,a,31,or)} x(nr,y);nr.prototype.Vb=ma(7);nr.prototype.$c=ma(8);var or=[3,20,27];function pr(a){if(!a)return"";if(/^about:(?:blank|srcdoc)$/.test(a))return window.origin||"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));c=a.substring(0,a.indexOf("://"));if(!c)throw Error("URI is missing protocol: "+a);if("http"!==c&&"https"!==c&&"chrome-extension"!==c&&"moz-extension"!==c&&"file"!==c&&"android-app"!== c&&"chrome-search"!==c&&"chrome-untrusted"!==c&&"chrome"!==c&&"app"!==c&&"devtools"!==c)throw Error("Invalid URI scheme in origin: "+c);a="";var e=b.indexOf(":");if(-1!=e){var f=b.substring(e+1);b=b.substring(0,e);if("http"===c&&"80"!==f||"https"===c&&"443"!==f)a=":"+f}return c+"://"+b+a} ;function qr(){function a(){f[0]=1732584193;f[1]=4023233417;f[2]=2562383102;f[3]=271733878;f[4]=3285377520;t=r=0} function b(w){for(var z=k,E=0;64>E;E+=4)z[E/4]=w[E]<<24|w[E+1]<<16|w[E+2]<<8|w[E+3];for(E=16;80>E;E++)w=z[E-3]^z[E-8]^z[E-14]^z[E-16],z[E]=(w<<1|w>>>31)&4294967295;w=f[0];var pa=f[1],sa=f[2],wa=f[3],xa=f[4];for(E=0;80>E;E++){if(40>E)if(20>E){var Ea=wa^pa&(sa^wa);var Da=1518500249}else Ea=pa^sa^wa,Da=1859775393;else 60>E?(Ea=pa&sa|wa&(pa|sa),Da=2400959708):(Ea=pa^sa^wa,Da=3395469782);Ea=((w<<5|w>>>27)&4294967295)+Ea+xa+Da+z[E]&4294967295;xa=wa;wa=sa;sa=(pa<<30|pa>>>2)&4294967295;pa=w;w=Ea}f[0]=f[0]+ w&4294967295;f[1]=f[1]+pa&4294967295;f[2]=f[2]+sa&4294967295;f[3]=f[3]+wa&4294967295;f[4]=f[4]+xa&4294967295} function c(w,z){if("string"===typeof w){w=unescape(encodeURIComponent(w));for(var E=[],pa=0,sa=w.length;par?c(l,56-r):c(l,64-(r-56));for(var E=63;56<=E;E--)h[E]=z&255,z>>>=8;b(h);for(E=z=0;5>E;E++)for(var pa=24;0<=pa;pa-=8)w[z++]=f[E]>>pa&255;return w} for(var f=[],h=[],k=[],l=[128],p=1;64>p;++p)l[p]=0;var r,t;a();return{reset:a,update:c,digest:e,digestString:function(){for(var w=e(),z="",E=0;El?"":0==l?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+1E3*l)).toUTCString();this.o.cookie=a+"="+b+c+k+l+e+(null!=f?";samesite="+ f:"")}; n.get=function(a,b){for(var c=a+"=",e=(this.o.cookie||"").split(";"),f=0,h;fa.Fd()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ia} n.dispatch=function(a){if(a instanceof nr)this.log(a);else{var b=new nr;a=a.Jb();b=Sd(b,8,a);this.log(b)}}; function Vr(a,b){b?(a.ma||(a.ma=new lr),b=b.Jb(),Sd(a.ma,4,b)):a.ma&&Sd(a.ma,4,void 0,!1)} function Wr(a){a.Za=a.Sd} function Xr(a,b){a.na=new yr(1>b?1:b);So(a.o,a.na.Ya())} n.log=function(a){a=a.clone();var b=this.Ke++;Sd(a,21,b);this.Ba&&Sd(a,26,this.Ba);if(!Ld(a,1)){b=a;var c=Date.now().toString();Sd(b,1,c)}Od(a,15)||Sd(a,15,60*(new Date).getTimezoneOffset());this.ma&&(b=this.ma.clone(),ce(a,16,b));for(;1E3<=this.ha.length;)this.ha.shift(),++this.va;this.ha.push(a);this.dispatchEvent(new Yr(a));this.Ha||this.o.enabled||this.o.start()}; n.flush=function(a,b){var c=this;if(0===this.ha.length)a&&a();else if(this.Oa)Zr(this);else{var e=Date.now();if(this.jc>e&&this.QaE||401===E||0===E)c.ha=pa.concat(c.ha),c.Ha||c.o.enabled||c.o.start();b&&b("net-send-failed",E)},z=function(){c.Va?c.Va.send(r,t,w):c.vc(r,t,w)}; p?p.then(function(E){r.Vt["Content-Encoding"]="gzip";r.Vt["Content-Type"]="application/binary";r.body=E;r.sB=2;z()},function(){z()}):z()}}}}; n.ps=function(){this.Aa||(this.Za&&Zr(this),this.Ea&&jaa(this),this.flush())}; function Zr(a){$r(a,32,10,function(b,c){b=$o(b,"format","json");b=window.navigator.sendBeacon(b,c.Jb());a.Oa&&!b&&(a.Oa=!1);return b})} function jaa(a){$r(a,6,5,function(b,c){c=c.Jb();for(var e=[],f=0,h=0;h>=8);e[f++]=k}c=jd(e,3);b=Zo(b,"format","base64json","p",c);if(15360 .heading").getAttribute("data-search-dym-tracking-id"),a.Tt(f,b,h,e,c)):(e=""!==kh("symptom"),a.Fj(f,h,b.getAttribute("data-search-rank"),b.getAttribute("data-search-result-id"),b.getAttribute("data-search-request-id"),b.getAttribute("data-search-url"), b.getAttribute("data-search-flow"),b.getAttribute("data-search-ctx"),e,c))}} function laa(a,b){function c(){h&&k&&((window.sc_delayLocationHandler=e)?e(f):Dh(f))} if("_blank"==a.target||b.shiftKey||b.ctrlKey||b.metaKey)return null;var e=window.sc_delayLocationHandler,f,h=!1,k=!1;window.sc_delayLocationHandler=function(){h=!0;c()}; return function(l){k=!0;f=l;c()}} n.Fj=function(a,b,c,e,f,h,k,l,p,r){b=hs(p?"suggestion_clicked":"search_results_clicked",b,k,l);es(b,"q",a);es(b,"clickRank",c);es(b,"resultId",e);es(b,"requestId",f);es(b,"shownContentList",h);is(this,b,h,r)}; n.Tt=function(a,b,c,e,f){c=hs("sugesstion_clicked",c);es(c,"q",a);e&&es(c,"dymTrackingId",e);is(this,c,b,f)}; n.St=function(a,b,c){b=hs("autocomplete_search_query",mh().visit_id,b);es(b,"q",a);is(this,b,"",c)}; n.Qt=function(a,b,c,e){c=hs("autocomplete_results_clicked",mh().visit_id,c);es(c,"q",a);es(c,"shownContentList",b);is(this,c,b,e)}; n.Rt=function(a,b){b=hs("autocomplete_click_impressions",mh().visit_id,b);es(b,"shownContentList",a.join("|"));js(this,b,"sc_nullFunction")}; function is(a,b,c,e){e&&e instanceof Function?(window.sc_searchMetricsLinkCallback=function(){e(c)},js(a,b,"sc_searchMetricsLinkCallback")):js(a,b,"sc_nullFunction")} n.jx=function(a){var b=hs("article_help_link_clicked",mh().visit_id,"help");es(b,"url",a);js(this,b,"sc_nullFunction")}; n.tx=function(a){var b=hs("opened_to_article",mh().visit_id,"help");es(b,"shownContentList",a);js(this,b,"sc_nullFunction")}; n.zn=function(a,b,c,e,f,h,k,l){e=e||kh("query")||kh("q");h=h||""!==kh("symptom");a=hs(h?"shown_suggestions":"shown_search_results",a,f,k);es(a,"q",e);es(a,"requestId",b);es(a,"shownContentList",c.join("|"));l&&es(a,"dymTrackingId",l);js(this,a,"sc_nullFunction")}; function ks(a,b,c){b=hs(b,mh().visit_id,"help");c&&es(b,"contactMode",c);js(a,b,"sc_nullFunction")} n.px=function(){ks(this,"nd4c_requested")}; n.ox=function(){ks(this,"shown_contact_us","nd4c_email")}; n.nx=function(){ks(this,"contact_us_clicked","nd4c_email")}; n.sx=function(){ks(this,"shown_contact_us","nd4c_phone")}; n.qx=function(){ks(this,"contact_us_clicked","nd4c_phone")}; n.lx=function(){ks(this,"shown_contact_us","nd4c_chat")}; n.kx=function(){ks(this,"contact_us_clicked","nd4c_chat")}; n.Gj=function(a,b,c,e,f,h){a=hs(void 0===h?"suggestion_clicked":h,a);es(a,"requestId",b);es(a,"resultId",c);void 0!==e&&es(a,"clickRank",e);void 0!==f&&es(a,"shownContentList",f);js(this,a,"sc_nullFunction")}; function hs(a,b,c,e){a=es(es(es(es(es(es(es(new kaa,"flow",c||"support-content"),"gfSessionId",b),"hcName",mh().hc),"locale",mh().lang),"authuser",mh().au),"useAnonymousMetrics","false"),"userAction",a);(e=e||maa())&&es(a,"productSpecificContext",e);"help"===c&&es(a,"useInappHelpPanel","true");(c=Qh("productEscalationsId"))&&es(a,"productId",c);return a} function maa(){var a=mh().query_params.find(function(b){return"ec"==b.key}); return a?a.value:""} function js(a,b,c){if(a.o||"true"===Qh("initializeMojoMetrics")){es(b,"callback",c);a=vi(document,"SCRIPT");a.onerror=window[c];var e=Object.fromEntries(b.ma.entries());c=Object.fromEntries(b.o.entries());b=Me(b.ha,e);b=Le(b).toString();b=Qe.exec(b);e=b[3]||"";c=Pe(b[1]+Re("?",b[2]||"",c)+Re("#",e,void 0));Og(a,c);document.body.appendChild(a)}} fs.prototype.reportSearchResultsFeatureClick=fs.prototype.Gj;fs.prototype.reportNewDealChatClicked=fs.prototype.kx;fs.prototype.reportNewDealChatDisplayed=fs.prototype.lx;fs.prototype.reportNewDealTfnClicked=fs.prototype.qx;fs.prototype.reportNewDealTfnDisplayed=fs.prototype.sx;fs.prototype.reportNewDealEmailClicked=fs.prototype.nx;fs.prototype.reportNewDealEmailDisplayed=fs.prototype.ox;fs.prototype.reportNewDealRequested=fs.prototype.px;fs.prototype.reportImpressions=fs.prototype.zn; fs.prototype.reportOpenedToArticle=fs.prototype.tx;fs.prototype.reportArticleHelpLinkClicked=fs.prototype.jx;fs.prototype.reportAutocompleteImpressions=fs.prototype.Rt;fs.prototype.reportAutocompleteClick=fs.prototype.Qt;fs.prototype.reportAutocompleteSearch=fs.prototype.St;fs.prototype.reportSpellingClick=fs.prototype.Tt;fs.prototype.reportClick=fs.prototype.Fj;fs.prototype.setUpMojoReportingForSpelling=fs.prototype.Px;fs.prototype.setUpMojoReportingForSearchResults=fs.prototype.Ox;var ls; Kb("hcfe.MojoMetrics",fs);window.sc_initMojoMetrics=function(){ls||(ls=new fs,ls.Ox(),ls.Px(),window.sc_trackSearchResultImpressions=window.sc_trackSearchResultEnabledRceTracking?window.sc_nullFunction:ls.zn.bind(ls))};function ms(){A.call(this,"sc.shared.material_dialog.DialogContent");this.o=new Kq} x(ms,A);ms.prototype.content=function(a){var b=this,c=a.title,e=a.content,f=a.ni,h=a.tb;this.element("div","class","root",function(){c&&b.element("h1","class","title",c);e&&b.element("div",e);f&&b.element("div",f);h&&b.element("div","class","loading-overlay",function(){b.o.render()})})};var naa={qc:7,uc:7,Bm:!0,Qn:!0};function ns(a){var b=this,c=a.content,e=void 0===a.scope?document.body:a.scope,f=a.Xa,h=Mf(a,["content","scope","ariaLabel"]);this.ha=new Map;this.scope=e;this.o=new oq(Object.assign(Object.assign(Object.assign({},naa),h),{onClose:function(){var k;if(b.Nc)for(var l=u(b.ha),p=l.next();!p.done;p=l.next()){var r=u(p.value);p=r.next().value;(r=r.next().value)||p.removeAttribute("aria-hidden")}null===(k=h.onClose)||void 0===k?void 0:k.call(h)}, content:function(){Wk("div","role","dialog","aria-modal","true","aria-label",f,c)}}))} ns.prototype.initialize=function(){var a=this;if(this.Nc)return this;this.Nc=document.createElement("div");this.Nc.setAttribute("aria-live","polite");this.scope.appendChild(this.Nc);Sk(this.Nc,function(){a.o.render()}); return this}; ns.prototype.Na=function(){this.Nc&&(this.o.close(),this.Nc.remove(),this.Nc=void 0)}; ns.prototype.open=function(a){a=void 0===a?{}:a;this.initialize();if(this.Nc)for(var b=this.Nc;b&&b!==document.body;){var c=b,e=os(c);if(e){e=u(e.childNodes);for(var f=e.next();!f.done;f=e.next())f=f.value,c!==f&&zb(f)&&1===f.nodeType&&(this.ha.set(f,"true"===f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}b=os(b)}this.o.open(Object.assign({Nb:!0},a))}; ns.prototype.close=function(){this.o.close()}; function os(a){return a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&a.mode?a.host:a.parentNode} ;var oaa={A:{rv:["href"]},B:{},BLOCKQUOTE:{},BR:{},CODE:{},DIV:{},EM:{replaceWith:"I"},I:{},IMG:{rv:["src"]},LI:{},OL:{},P:{replaceWith:"DIV"},STRONG:{replaceWith:"B"},U:{},UL:{}},paa=/\b(?:https?:\/\/|www\.)\S+\s*$/i,ps=/^(?:[a-z]+:\/\/|www\.)\S+$/i,qaa=/^[a-z]+:\/\//i,raa=/[\s!)\]};'",.?]+$/; function qs(a){for(var b=0;b>>0),z=[["js_request_id",w],["rr",1],["lc",1]],E=Iaa();0]+)>)/gi,"")}; function Rt(a){var b;return null!==(b=Ld(a.o,3))&&void 0!==b?b:""} Qt.prototype.getUrl=function(){var a;return null!==(a=this.o.getUrl())&&void 0!==a?a:""}; Qt.prototype.Mc=function(){var a;return null!==(a=this.o.Mc())&&void 0!==a?a:""}; function St(a){var b;return null!==(b=Ld(a.o,21))&&void 0!==b?b:""} function Tt(a){var b,c;return null!==(c=null===(b=ae(a.o,Ut,26))||void 0===b?void 0:Ld(b,1))&&void 0!==c?c:0} function Vt(a){var b,c;return null!==(c=null===(b=ae(a.o,Ut,26))||void 0===b?void 0:Ld(b,3))&&void 0!==c?c:0} function Wt(a){var b;a=null!==(b=Ld(a.o,4))&&void 0!==b?b:null;switch(a){case 81:return 0;case 72:return 1;case 62:case 63:case 65:return 2;case 70:return 3;case 21:return 4;default:return a?5:6}} function Xt(a){return be(a.o,Yt,27).map(function(b){return new Qt(b)})} function Zt(a){var b,c;return null!==(c=null===(b=$t(a.o))||void 0===b?void 0:Ld(b,4))&&void 0!==c?c:0} function au(a){var b,c;return null!==(c=null===(b=$t(a.o))||void 0===b?void 0:Ld(b,1))&&void 0!==c?c:0} ;var bu=new Yq,Kaa="Showing results for "+bu.Pb("a")+"KEYWORD"+bu.Mb("a"),Laa=bu.format(Kaa),Maa="Search instead for "+bu.Pb("a")+"KEYWORD"+bu.Mb("a"),Naa=bu.format(Maa),Oaa="Did you mean: "+bu.Pb("a")+"KEYWORD"+bu.Mb("a"),Paa=bu.format(Oaa);var cu={Py:["BC","AD"],Oy:["Before Christ","Anno Domini"],Oz:"JFMAMJJASOND".split(""),hA:"JFMAMJJASOND".split(""),Kz:"January February March April May June July August September October November December".split(" "),gA:"January February March April May June July August September October November December".split(" "),dA:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),jA:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),KA:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "), lA:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),fA:"Sun Mon Tue Wed Thu Fri Sat".split(" "),kA:"Sun Mon Tue Wed Thu Fri Sat".split(" "),RH:"SMTWTFS".split(""),iA:"SMTWTFS".split(""),eA:["Q1","Q2","Q3","Q4"],Wz:["1st quarter","2nd quarter","3rd quarter","4th quarter"],er:["AM","PM"],Nu:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],hv:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],Jy:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Su:6,jI:[5,6],Tu:5},du=cu; du=cu;function eu(a,b,c,e,f){a=new Date(a,b,c);f=f||0;return a.valueOf()+864E5*(((void 0!==e?e:3)-f+7)%7-((a.getDay()+6)%7-f+7)%7)} ;function fu(){} function gu(a){if("number"==typeof a){var b=new fu;b.ma=a;var c=a;if(0==c)c="Etc/GMT";else{var e=["Etc/GMT",0>c?"-":"+"];c=Math.abs(c);e.push(Math.floor(c/60)%100);c%=60;0!=c&&e.push(":",ni(c,2));c=e.join("")}b.ka=c;c=a;0==c?c="UTC":(e=["UTC",0>c?"+":"-"],c=Math.abs(c),e.push(Math.floor(c/60)%100),c%=60,0!=c&&e.push(":",c),c=e.join(""));a=hu(a);b.oa=[c,c];b.o={ZH:a,gv:a};b.ha=[];return b}b=new fu;b.ka=a.id;b.ma=-a.std_offset;b.oa=a.names;b.o=a.names_ext;b.ha=a.transitions;return b} function hu(a){var b=["GMT"];b.push(0>=a?"+":"-");a=Math.abs(a);b.push(ni(Math.floor(a/60)%100,2),":",ni(a%60,2));return b.join("")} function iu(a,b){b=Date.UTC(b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate(),b.getUTCHours(),b.getUTCMinutes())/36E5;for(var c=0;c=a.ha[c];)c+=2;return 0==c?0:a.ha[c-1]} ;function ju(){this.ha=[];this.o=du;ku(this,1)} var lu=[/^'(?:[^']|'')*('|$)/,/^(?:G+|y+|Y+|M+|k+|S+|E+|a+|b+|B+|h+|K+|H+|c+|L+|Q+|d+|m+|s+|v+|V+|w+|z+|Z+)/,/^[^'GyYMkSEabBhKHcLQdmsvVwzZ]+/];function mu(a){return a.getHours?a.getHours():0} ju.prototype.format=function(a,b){if(!a)throw Error("The date to format must be non-null.");var c=b?6E4*(a.getTimezoneOffset()-(b.ma-iu(b,a))):0,e=c?new Date(a.getTime()+c):a,f=e;b&&e.getTimezoneOffset()!=a.getTimezoneOffset()&&(e=new Date(e.getTime()+6E4*(e.getTimezoneOffset()-a.getTimezoneOffset())),f=new Date(a.getTime()+(c+(0b)var c=a.o.Nu[b];else if(8>b)c=a.o.hv[b-4];else if(12>b)c=a.o.Jy[b-8],c=c.replace("{1}",a.o.Nu[b-8]),c=c.replace("{0}",a.o.hv[b-8]);else{ku(a,10);return}b=c;for(Raa&&(b=b.replace(/\u200f/g,""));b;){c=b;for(var e=0;e=f?String.fromCharCode(a.YA+f-48):b.charAt(e))}b=c.join("")}return b} var Raa=!1;function ou(a){if(!(a.getHours&&a.getSeconds&&a.getMinutes))throw Error("The date to format has no time (probably a goog.date.Date). Use Date or goog.date.DateTime, or use a pattern without time fields.");} function Qaa(a,b,c,e,f,h){var k=b.length;switch(b.charAt(0)){case "G":return c=0c&&(c=-c),2==k&&(c%=100),nu(a,ni(c,k));case "Y":return c=(new Date(eu(e.getFullYear(),e.getMonth(),e.getDate(),a.o.Tu,a.o.Su))).getFullYear(),0>c&&(c=-c),2==k&&(c%=100),nu(a,ni(c,k));case "M":a:switch(c=e.getMonth(),k){case 5:a=a.o.Oz[c];break a;case 4:a=a.o.Kz[c];break a;case 3:a=a.o.dA[c];break a;default:a=nu(a,ni(c+1,k))}return a;case "k":return ou(f), nu(a,ni(mu(f)||24,k));case "S":return nu(a,(f.getMilliseconds()/1E3).toFixed(Math.min(3,k)).substr(2)+(3k?1:0];case "b":return ou(f),k=mu(f),a.o.er[12<=k&&24>k?1:0];case "B":return ou(f),k=mu(f),a.o.er[12<=k&&24>k?1:0];case "h":return ou(f),nu(a,ni(mu(f)%12||12,k));case "K":return ou(f),nu(a,ni(mu(f)%12,k));case "H":return ou(f),nu(a,ni(mu(f),k));case "c":a:switch(c=e.getDay(),k){case 5:a= a.o.iA[c];break a;case 4:a=a.o.lA[c];break a;case 3:a=a.o.kA[c];break a;default:a=nu(a,ni(c,1))}return a;case "L":a:switch(c=e.getMonth(),k){case 5:a=a.o.hA[c];break a;case 4:a=a.o.gA[c];break a;case 3:a=a.o.jA[c];break a;default:a=nu(a,ni(c+1,k))}return a;case "Q":return c=Math.floor(e.getMonth()/3),4>k?a.o.eA[c]:a.o.Wz[c];case "d":return nu(a,ni(e.getDate(),k));case "m":return ou(f),nu(a,ni(f.getMinutes(),k));case "s":return ou(f),nu(a,ni(f.getSeconds(),k));case "v":return a=h||gu(c.getTimezoneOffset()), a.ka;case "V":return a=h||gu(c.getTimezoneOffset()),2>=k?a.ka:0k?a.oa[0k?(a=-(b.ma- iu(b,c)),k=[0>a?"-":"+"],a=Math.abs(a),k.push(ni(Math.floor(a/60)%100,2),ni(a%60,2)),a=k.join("")):a=nu(a,hu(b.ma-iu(b,c))),a;default:return""}} ;function pu(a){var b=a.parent,c=a.result,e=a.rank,f=a.mb;a=a.nb;var h;A.call(this,"sc.search.search_results_list.search_result.YoutubePreview");this.ha="true"===Qh("MoltronSearchLoggerFeature__use_moltron_search_logger");this.na=new sl({icon:"gm/event_available",size:18});this.ta=new sl({icon:"gm/visibility",size:18});this.ka=new sl({icon:"gm/video_youtube_outline",size:18});this.o=new sl({icon:"gm/play_circle"});this.result=c;this.rank=e;var k;null!=b?(c=b.getUrl()+"#play=",e=null!==(k=Ld(this.result.o, 5))&&void 0!==k?k:"",k=c+e):(k=new Map([["autoplay","1"]]),k=Pt(this.result.getUrl(),k,!0));this.url=k;b=null!==(h=null===b||void 0===b?void 0:b.lb())&&void 0!==h?h:this.result.lb();k=qu(this);c=ru(this);this.Xa=b+" (video content) published on "+k+" with "+c;this.mb=f;this.nb=a} x(pu,A);pu.prototype.content=function(){var a=this;this.element("a","aria-label",this.Xa,"class",{"youtube-preview":!su(this),"youtube-compact":su(this)},"href",this.url,"onclick",function(b){return Ds(b,function(){tu(a)})},"onauxclick",function(b){return 1===b.button?Ds(b,function(){tu(a,!0)}):!0},"onkeydown",function(b){return Es(b,function(){tu(a)})},function(){su(a)?(a.ka.render(),uu(a)):2===mh().rs?a.element("div","class","help-panel-container",function(){vu(a)}):vu(a)})}; function su(a){return 0===au(a.result)&&0===Zt(a.result)} function tu(a,b){b=void 0===b?!1:b;a.ha?wu(a.nb,St(a.result),a.url):xu(a.mb,String(a.rank),St(a.result),a.url);Yl(8,"youtube_preview_click",136);Rl(a.url,!0,b)} function vu(a){Saa(a);a.element("div","class","container",function(){uu(a);a.element("div","class","labels",function(){2===mh().rs?a.element("span","class","label-container",qu(a)+" \u2022 "+ru(a)):(Taa(a),Uaa(a))})})} function Saa(a){a.element("div","class","thumbnail-container",function(){var b=a.element,c,e;var f=null!==(e=null===(c=$t(a.result.o))||void 0===c?void 0:Ld(c,2))&&void 0!==e?e:"";b.call(a,"img","class","thumbnail","role","none","alt","","src",f);b=a.element;var h,k;f=null!==(k=null===(h=$t(a.result.o))||void 0===h?void 0:Ld(h,3))&&void 0!==k?k:0;h=f%60;b.call(a,"span","class","duration",Math.floor(f/60)+":"+(10>h?"0":"")+h);2===mh().rs&&a.element("span","class","preview-label","Preview");a.element("span", "class","play",a.o)})} function uu(a){a.element("div","class","title",a.result.lb())} function Taa(a){a.element("span","class","label-container",function(){a.na.render();a.element("span","class","label",qu(a))})} function Uaa(a){a.element("span","class","label-container",function(){a.ta.render();a.element("span","class","label",ru(a))})} function qu(a){a=Zt(a.result);return 0===a?"":Vaa.format(new Date(a/1E3))} function ru(a){return Waa.format(au(a.result))+" views"} var Waa=new Dn(5),Vaa=new ju;var Xaa=new Map([[0,"gm/public"],[1,"gm/supervised_user_circle"],[2,"gm/question_answer"],[4,"gm/email"],[5,"gm/drive_document"],[6,"gm/language"]]),Yaa=new Map([[5,"Help article"],[2,"Community Post"],[3,"Troubleshooter"]]),Zaa=new Map([[5,"Check status"],[3,"Get started"]]);function Yt(a){y.call(this,a,-1,$aa)} x(Yt,y);Yt.prototype.getUrl=function(){return Ld(this,1)}; Yt.prototype.lb=function(){return Ld(this,2)}; Yt.prototype.Cc=function(a){return Sd(this,2,a)}; Yt.prototype.Mc=function(){return Ld(this,22)}; function $t(a){return ae(a,yu,28)} function Ut(a){y.call(this,a)} x(Ut,y);function yu(a){y.call(this,a)} x(yu,y);var $aa=[6,24,27];function zu(a){y.call(this,a,-1,aba)} x(zu,y);zu.prototype.We=function(){return Ld(this,3)}; zu.prototype.Mc=function(){return Ld(this,14)}; var aba=[1,5,6,8,10,11];function Au(a){y.call(this,a)} x(Au,y);Au.prototype.getQuery=function(){return Ld(this,je(this,bba,1))}; var bba=[1,5];function Bu(a){y.call(this,a,-1,cba)} x(Bu,y);function Cu(a){y.call(this,a)} x(Cu,y);var cba=[1];function Du(a){var b=a.content,c=void 0===a.elevation?0:a.elevation,e=void 0===a.padding?"1rem":a.padding;a=a.trigger;A.call(this,"sc.shared.MaterialCard");this.o=b;this.elevation=c;this.padding=e;this.overlay=(this.trigger=a)?new Dl:null} x(Du,A);Du.prototype.Dd=function(){return!0}; Du.prototype.content=function(){var a=this,b=0a.xc().length} ;function Iu(a){kl.call(this);this.metadata=a} x(Iu,kl);function Ju(a){var b;return null!==(b=a.metadata.searchContext)&&void 0!==b?b:""} function Ku(a){var b;return null!==(b=a.metadata.searchFlowId)&&void 0!==b?b:""} function Lu(a){var b,c;return null!==(c=null===(b=a.metadata.searchQuery)||void 0===b?void 0:Ld(b,2))&&void 0!==c?c:0} Iu.prototype.getQuery=function(){var a,b;return null!==(b=null===(a=this.metadata.searchQuery)||void 0===a?void 0:a.getQuery())&&void 0!==b?b:""};function Mu(a){y.call(this,a)} x(Mu,y);Mu.prototype.getType=function(){return Ud(this,1,0)}; Mu.prototype.getId=function(){return le(this,2)}; Mu.prototype.setId=function(a){return Sd(this,2,a)};function Nu(a){y.call(this,a)} x(Nu,y);function Ou(a){y.call(this,a)} x(Ou,y);var Pu=[2,3,4,5,6,7,8];function Qu(a){y.call(this,a)} x(Qu,y);Qu.prototype.getUrl=function(){return le(this,1)}; Qu.prototype.lb=function(){return le(this,2)}; Qu.prototype.Cc=function(a){return Sd(this,2,a)};function Ru(a){y.call(this,a)} x(Ru,y);function Su(a){y.call(this,a)} x(Su,y);Su.prototype.ui=function(){return le(this,1)}; function Tu(a){var b=new xn;var c=Math.floor(Date.now()/1E3);b=Yd(b,1,c,0);ce(a,2,b)} ;function Uu(a){y.call(this,a,-1,dba)} x(Uu,y);var dba=[1];function Vu(a){y.call(this,a)} x(Vu,y);Vu.prototype.Rf=function(){return Ud(this,2,0)};function Wu(a){y.call(this,a,-1,eba)} x(Wu,y);var eba=[2];function Xu(a){y.call(this,a)} x(Xu,y);function Yu(a){a=void 0===a?{}:a;this.Hj=new (void 0===a.wF?Tl:a.wF)({Cf:mh().mld+"/v1",serviceName:"MoltronLoggingService"})} function Zu(a,b,c,e){var f=(void 0===e?{}:e).zB,h,k,l;mb(function(p){if(!b||!c)return p.return();h=new Su;Sd(h,1,b);Tu(h);Sd(h,3,c);Sd(h,5,3);f&&(k=new Nu,Sd(k,1,1),Sd(k,2,f),l=new Ou,de(l,3,Pu,k),ce(h,6,l));return Ua(p,$u(a,h),0)})} function av(a,b,c,e){var f=(void 0===e?{Rs:!1}:e).Rs,h,k,l,p,r,t;mb(function(w){if(!b)return w.return();h=[];k=u(c);for(l=k.next();!l.done;l=k.next())if(p=l.value)r=new Su,Sd(r,1,b),Tu(r),Sd(r,3,p),Sd(r,5,1),f&&(t=new Ou,Sd(t,1,3),ce(r,6,t)),h.push(r);return Ua(w,fba(a,h),0)})} function bv(a,b){var c,e;mb(function(f){if(!b)return f.return();c=new Su;Sd(c,1,b);Tu(c);e=new Mu;Sd(e,1,3);e.setId("other");ce(c,4,e);Sd(c,5,3);return Ua(f,$u(a,c),0)})} function $u(a,b,c){c=void 0===c?!1:c;var e,f,h,k;return mb(function(l){if(1==l.o)return e=new Xu,ce(e,1,b),f={query:{key:mh().mkey}},c&&(h=(mh().ge||"").toLowerCase(),k=xr([{key:"e",value:h}]))&&(f.withCredentials=!0,f.headers={Authorization:k}),$a(l,2),Ua(l,a.Hj.post("log-moltron-interaction",e,Vu,f),4);if(2!=l.o)return ab(l,0);bb(l);Za(l)})} function fba(a,b){var c;return mb(function(e){if(1==e.o)return c=new Uu,ee(c,1,b),$a(e,2),Ua(e,a.Hj.post("log-batch-moltron-interaction",c,Wu,{query:{key:mh().mkey}}),4);if(2!=e.o)return ab(e,0);bb(e);Za(e)})} ;function cv(a,b,c,e){Yu.call(this);this.predictionId=a;this.o=b;this.dymTrackingId=c;this.sessionId=e} x(cv,Yu);function dv(a){var b,c;mb(function(e){b=ev();Sd(b,1,a.predictionId);Sd(b,5,1);c=new Ru;Sd(c,1,a.o?3:1);Sd(c,2,a.sessionId);ce(b,8,c);return Ua(e,$u(a,b,!0),0)})} function wu(a,b,c){var e,f,h;mb(function(k){e=ev();Sd(e,1,a.predictionId);Sd(e,3,b);Sd(e,5,3);f=new Ru;Sd(f,1,a.o?4:2);Sd(f,2,a.sessionId);ce(e,8,f);h=new Qu;Sd(h,1,c);ce(e,7,h);return Ua(k,$u(a,e,!0),0)})} cv.prototype.Gj=function(a,b){var c=this,e;return mb(function(f){e=fv(c,a,4,b);return Ua(f,$u(c,e,!0),0)})}; function fv(a,b,c,e){var f=ev();Sd(f,1,a.predictionId);Sd(f,3,b);Sd(f,5,3);e&&(b=new Qu,Sd(b,1,e),ce(f,7,b));e=new Ru;Sd(e,1,c);Sd(e,2,a.sessionId);ce(f,8,e);return f} function ev(){var a=new Su;Tu(a);return a} ;function gv(a,b,c,e,f,h,k){this.context=a;this.dymTrackingId=b;this.flow=c;this.ha=e;this.query=f;this.requestId=h;this.sessionId=k;this.o=new fs(!0)} function hv(a,b){a.o.zn(a.sessionId,a.requestId,b,a.query,a.flow,a.ha,a.context,a.dymTrackingId)} function xu(a,b,c,e){a.o.Fj(a.query,a.sessionId,b,c,a.requestId,e,a.flow,a.context,a.ha)} gv.prototype.Gj=function(a,b,c){this.o.Gj(this.sessionId,this.requestId,a,b,c)};function iv(a){var b=a.symptoms,c=void 0===a.limit?8:a.limit,e=void 0===a.helpcenterName?"":a.helpcenterName,f=void 0===a.Tn?new Map:a.Tn;a=void 0===a.hn?0:a.hn;A.call(this,"sc.symptoms.Symptoms");this.ha="true"===Qh("workflow__full-layout");this.isRendered=this.o=!1;this.symptoms=b;this.limit=c;this.helpcenterName=e;this.Tn=f;this.hn=a} x(iv,A);iv.prototype.content=function(){var a=this,b=be(this.symptoms,Cu,1).filter(function(c){var e;return""!==(null===(e=Ld(c,2))||void 0===e?void 0:e.trim())}); this.element("div","class","root",function(){a.element("div","class","container",function(){switch(a.hn){case 0:jv(a,b);break;case 1:for(var c=0;ca.limit} function nv(a){if(kv(a)){a.o=!a.o;a.Ca();var b=a.o;Yl(b?2:3,a.helpcenterName+"_symptoms_view_"+(b?"more":"less"),b?96:97)}} function mv(a,b){Yl(35,a.helpcenterName+"_symptoms_click_"+Ld(b,1)+(Td(b,3)?"_active":""),98);if(!Td(b,3)){a:{var c;b=null!==(c=Ld(b,1))&&void 0!==c?c:"";if(""!==b&&a.Tn.has(b)&&(a=a.Tn.get(b)))break a;a=""}a=a.split("?");c="?"+a[1];c=Kt(c);Rl(""+a[0]+c,!0,!1)}} ;function ov(a){this.o=a;this.ma=this.va=null;this.ha=[];this.na=document.createElement("input");this.ua=this.oa=-1;this.Ga=this.Zm.bind(this);this.Ba=this.It.bind(this);this.Ia=this.wa=this.ya=0;this.ta=!1;this.Ea=0;this.Aa=new mn;iba(this)} function iba(a){a.ka=document.createElement("div");a.ka.className=a.o.className;fh(a.ka,"sc-select",!0);a.ka.setAttribute("tabindex",0);a.ka.setAttribute("role","listbox");a.ka.setAttribute("aria-expanded",!1);a.ka.addEventListener("mousedown",function(e){jh(this.ma,"sc-select-show")?e.target==this.ma||this.ma.contains(e.target)||this.Zm():0==e.button&&pv(this)}.bind(a)); a.ka.addEventListener("keydown",a.mz.bind(a));a.va=document.createElement("span");a.ka.appendChild(a.va);var b=document.createElementNS("http://www.w3.org/2000/svg","svg");b.setAttribute("viewBox","0 0 48 48");var c=document.createElementNS("http://www.w3.org/2000/svg","path");c.setAttribute("d","M14 20l10 10 10-10z");b.appendChild(c);a.ka.appendChild(b);a.ma=document.createElement("ol");a.ma.addEventListener("mousemove",function(){this.ta=!0}.bind(a)); a.ma.addEventListener("scroll",function(){0a-1?this.ha.length-1:a-1;b!=a&&!tv(this,b);)b=0>b-1?this.ha.length-1:b-1;a=b}rv(this,a);this.ha[a].focus();this.ka.setAttribute("aria-activedescendant", this.ha[a].id);uv(this);break;case 40:a.preventDefault();jh(this.ma,"sc-select-show")||pv(this);a=this.oa;if(0===this.ha.length)a=-1;else{for(b=(a+1)%this.ha.length;b!=a&&!tv(this,b);)b=(b+1)%this.ha.length;a=b}rv(this,a);this.ha[a].focus();this.ka.setAttribute("aria-activedescendant",this.ha[a].id);uv(this)}}; function uv(a){if(-1!=a.oa){var b=a.ha[a.oa];b.offsetTopa.ma.scrollTop+a.ma.offsetHeight&&(a.ta=!1,a.ma.scrollTop=b.offsetTop+b.offsetHeight-a.ma.offsetHeight)}} function sv(a){var b=a.o.getAttribute("aria-label")||"";b&&(-1!==a.o.selectedIndex&&(b+=" ("+a.o[a.o.selectedIndex].innerText+")"),a.ka.setAttribute("aria-label",b))} n.dispose=function(){this.ka&&zi(this.ka);this.ma=this.va=this.ka=null;this.ha=[]}; function vv(a){a=u((a||document).getElementsByTagName("select"));for(var b=a.next();!b.done;b=a.next())b=b.value,"true"!==b.dataset.exclude&&new ov(b)} window.sc_initSelects=function(){vv(window.sc_scope)};function wv(a){y.call(this,a,-1,kba)} x(wv,y);n=wv.prototype;n.getId=function(){return Ld(this,1)}; n.setId=function(a){return Sd(this,1,a)}; n.getType=function(){return Ld(this,3)}; n.lb=function(){return Ld(this,4)}; n.Cc=function(a){return Sd(this,4,a)}; n.Eg=function(){return Ld(this,5)}; n.ql=ma(13);n.Ya=function(){return Ld(this,6)}; n.oc=function(a){return Sd(this,6,a)}; n.Cb=function(){return Od(this,6)}; n.En=function(a){Sd(this,20,a)}; var kba=[2,11,12,16,17];function xv(a){y.call(this,a,-1,lba)} x(xv,y);xv.prototype.En=function(a){Sd(this,5,a)}; function yv(a){y.call(this,a)} x(yv,y);function zv(a){y.call(this,a,3)} x(zv,y);function Av(a){return ae(a,Bv,1)} function Cv(a){y.call(this,a)} x(Cv,y);function Dv(a){y.call(this,a)} x(Dv,y);function Bv(a){y.call(this,a,-1,mba)} x(Bv,y);n=Bv.prototype;n.getType=function(){return Ld(this,1)}; n.Eg=function(){return Ld(this,3)}; n.ql=ma(12);n.Ya=function(){return Ld(this,4)}; n.oc=function(a){return Sd(this,4,a)}; n.Cb=function(){return Od(this,4)}; function Ev(a){y.call(this,a)} x(Ev,y);Ev.prototype.En=function(a){Sd(this,3,a)}; function Fv(a){y.call(this,a,-1,nba)} x(Fv,y);var lba=[1],mba=[14,15,20,21],Gv=[10,17],nba=[1];var Hv=new Map([[1,"smart_button_event_handshake"],[2,"smart_button_event_execute"],[3,"smart_button_event_state_update"],[4,"smart_button_event_initialized"],[5,"smart_button_event_describe_buttons"],[6,"smart_button_event_rendered"]]);function Iv(){var a=this;this.o=function(){}; this.ha=function(b){var c,e,f,h,k,l,p,r;if("detail"in b)if(b=he(Cv,b.detail.action),null===(e=null===(c=ae(b,zv,1))||void 0===c?void 0:Av(c))||void 0===e?0:Pd(e,10,Gv))(p=null===(h=null===(f=ae(b,zv,1))||void 0===f?void 0:Av(f))||void 0===h?void 0:Ld(h,je(h,Gv,10)))&&a.ma(p);else if(null===(l=null===(k=ae(b,zv,1))||void 0===k?void 0:Av(k))||void 0===l?0:Pd(l,17,Gv))if(f=null===(r=null===(p=ae(b,zv,1))||void 0===p?void 0:Av(p))||void 0===r?void 0:me(r,Dv,17,Gv))h=Ld(f,2),f=Ld(f,1),h&&f&&a.ma("/"+h+ "/workflow/"+f)}; this.ka=function(){var b=Hv.get(1);b=new CustomEvent(b,{bubbles:!0,cancelable:!0});window.document.body.dispatchEvent(b)}; this.ma=Rl;window.document.body.addEventListener(Hv.get(6),this.ka);window.document.body.addEventListener(Hv.get(5),this.o);window.document.body.addEventListener(Hv.get(2),this.ha)} var Jv;function Kv(){void 0===Jv&&(Jv=new Iv)} Iv.prototype.dispose=function(){window.document.body.removeEventListener(Hv.get(2),this.ha);window.document.body.removeEventListener(Hv.get(6),this.ka);window.document.body.removeEventListener(Hv.get(5),this.o)}; window.sc_initSmartButtonController=function(){Kv()};function Lv(a,b){a=void 0===a?95:a;b=void 0===b?133:b;A.call(this,"sc.shared.ErrorSvg");this.o=new fr("error_computer.svg");this.height=a;this.width=b} x(Lv,A);Lv.prototype.content=function(){var a=this;this.element("div","style",{width:this.width+"px",height:this.height+"px"},function(){a.o.render()})};function oba(a){this.ha=a;this.o=null} function Mv(a){null===a.o&&(a.o=setTimeout(function(){null!==a.o&&(a.o=null,a.ha())},6E4))} ;function Nv(){var a=this;this.ma=function(b){if(!("detail"in b))throw Error("Invalid event type received for state update. Expected CustomEvent.");if(void 0===a.ha)throw Error("No state update callback was provided.");b=he(xv,b.detail);a.ha(b)}} n=Nv.prototype;n.sendInitCompleteEvent=function(){console.log("[Smart Buttons] Broadcasting init");Ov(4,void 0)}; n.sendButtonAction=function(a,b){a={action:null===a||void 0===a?void 0:a.Jb(),buttonClientRect:b};Ov(2,a)}; n.sendDescribeEvent=function(a){var b=new Fv;a=u(a);for(var c=a.next();!c.done;c=a.next())fe(b,1,c.value,Ev);b={action:b.Jb(),buttonClientRect:void 0};Ov(5,b)}; n.sendButtonsRenderedEvent=function(){Ov(6)}; n.initHandshakeListener=function(a){this.o=a;window.document.body.addEventListener(Hv.get(1),this.o)}; n.initStateUpdateListener=function(a){this.ha=a;window.document.body.addEventListener(Hv.get(3),this.ma)}; n.dispose=function(){window.document.body.removeEventListener(Hv.get(3),this.ma);this.o&&window.document.body.removeEventListener(Hv.get(1),this.o)}; function Ov(a,b){a=Hv.get(a);var c=new CustomEvent(a,{bubbles:!0,cancelable:!0,detail:b});console.log("[Smart Buttons] Broadcasting event "+a);console.log(b);window.document.body.dispatchEvent(c)} ;Object.keys({ZG:0,YG:1,LG:2,WG:3,OG:4,XG:5,QG:6});function Pv(a,b){this.o=a;this.metadata=b} Pv.prototype.Jc=function(a){this.o(a)}; function Qv(){var a=this;this.ha=new Map;this.ma=function(){a.o.sendButtonsRenderedEvent()}; this.o=new Nv;pba(this)} var Rv;function Sv(){if(Rv&&!Tv)return Rv;Rv=new Qv;Tv=!1;var a=Rv;a.o.initHandshakeListener(a.oa.bind(a));a.o.initStateUpdateListener(a.ka.bind(a));a.o.sendInitCompleteEvent();return Rv} function qba(a,b,c,e){if(""===b)throw Error("Smart Button guid key is empty");a.ha.has(b)||a.ha.set(b,new Pv(e,c))} Qv.prototype.ka=function(a){var b,c,e=null!==(b=Ld(a,5))&&void 0!==b?b:"";if(!this.ha.has(e))throw Error("Smart Button guid key "+e+" does not exist. Cannot update state.");null===(c=this.ha.get(e))||void 0===c?void 0:c.Jc(a)}; Qv.prototype.oa=function(){console.log("[Smart Buttons] Received Handshake");var a=[];this.ha.forEach(function(b){a.push(b.metadata)}); this.o.sendDescribeEvent(a)}; Qv.prototype.dispose=function(){var a;this.o.dispose();this.ha.clear();null===(a=Qk().querySelector(".workflow"))||void 0===a?void 0:a.removeEventListener("dynamicFormRendered",this.ma)}; function pba(a){var b;null===(b=Qk().querySelector(".workflow"))||void 0===b?void 0:b.addEventListener("dynamicFormRendered",a.ma)} var Tv=!1;function Uv(a){var b=a.buttonTitle,c=a.contentId,e=a.helpcenterName,f=a.fg;a=void 0===a.Aq?!0:a.Aq;A.call(this,"sc.smart_button.FatalErrorButton");this.o=new Lv;this.buttonTitle=b;this.contentId=c;this.helpcenterName=e;this.fg=f;this.Aq=a} x(Uv,A);Uv.prototype.content=function(){var a=this;this.element("div","class","^no-margin root",function(){a.element("div","class","^no-margin content",function(){a.o.render()}); a.element("div","class","^no-margin content",function(){a.element("div","class","^no-margin title","Hmm... something went wrong.");a.element("div","class","^no-margin error","The smart button requested did not load. Please complete actions manually.");a.Aq&&a.element("div","class","^no-margin feedback-link",a.fg);a.element("div","class","^no-margin detail",function(){""!==a.buttonTitle&&a.element("div","class","^no-margin",(new Vn("The button title is {buttonTitle}.")).format({buttonTitle:a.buttonTitle})); a.element("div","class","^no-margin",(new Vn("The content ID is {contentId}.")).format({contentId:a.contentId}));a.element("div","class","^no-margin",(new Vn("The help center name is {helpcenterName}.")).format({helpcenterName:a.helpcenterName}))})})}); rba(this)}; function rba(a){var b;null===(b=window.sc_trackStatsImpressions)||void 0===b?void 0:b.call(window,[{type:99,id:a.contentId+"_button_"+a.buttonTitle}],!0)} ;var Vv=new Map([[1,"good"],[2,"error"]]);function Wv(){A.call(this,"sc.smart_button.Icon");this.o=!1} x(Wv,A);function Xv(a,b,c,e){a.ha=b;a.state=c;a.o=void 0===e?!1:e} Wv.prototype.content=function(){var a=this;if(void 0!==this.ha&&void 0!==this.state&&void 0!==this.o&&0!==this.state){var b={"^no-margin":!0,icon:!0,state:!this.o,"heading-icon":this.o},c=Vv.get(this.state);Vv.has(this.state)&&(b[c]=!0);var e="";"good"===c?e="Success icon":"error"===c&&(e="Failure icon");this.element("div","class",b,"aria-label",""!==e?e:null,function(){var f;null===(f=a.ha)||void 0===f?void 0:f.render()})}};function Yv(a){A.call(this,"sc.smart_button.SendFeedbackLink");var b=this;this.buttonTitle=a;this.o=function(){Zv(b)}; this.ha=function(c){"key"in c&&(" "===c.key||"Enter"===c.key)&&Zv(b)}} x(Yv,A);Yv.prototype.content=function(){var a,b;this.anchor=this.element("a","href","#","class","^no-margin link","Send feedback");null===(a=this.anchor)||void 0===a?void 0:a.addEventListener("click",this.o);null===(b=this.anchor)||void 0===b?void 0:b.addEventListener("keydown",this.ha)}; Yv.prototype.dispose=function(){var a,b;null===(a=this.anchor)||void 0===a?void 0:a.removeEventListener("click",this.o);null===(b=this.anchor)||void 0===b?void 0:b.removeEventListener("keydown",this.ha)}; function Zv(a){var b=$p();b.set("smart_button_title",a.buttonTitle);Yp({payload:b,productId:Number(mh().fbid)})} ;function $v(a){return 2===(null===a||void 0===a?void 0:Ld(a,3))} function aw(a){return 1===(null===a||void 0===a?void 0:Ld(a,3))} function sba(a){a=null===a||void 0===a?void 0:be(a,yv,1);if(void 0===a)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(bw(b.value))return!0;return!1} function cw(a){a=dw(a);if(0===a.length)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(!bw(b.value))return!1;return!0} function dw(a){return void 0===a?[]:(null===a||void 0===a?void 0:be(a,yv,1))||[]} function bw(a){return void 0!==a&&Od(a,1)&&0!==Ld(a,1)} function ew(a){return void 0!==a&&Od(a,1)&&1===Ld(a,1)} function fw(a){return void 0!==a&&Od(a,1)&&2===Ld(a,1)} function tba(a){return a.filter(function(b){return fw(b)})} ;function gw(a,b){b=void 0===b?!1:b;A.call(this,"sc.smart_button.StateHeading");this.fg=a;this.uh=b;this.na=[];this.headingState=0;this.icon=new Wv} x(gw,A);gw.prototype.content=function(){var a;!($v(this.o)||aw(this.o)||(null===(a=this.o)||void 0===a?0:Ld(a,2))||cw(this.o))||uba(this)}; gw.prototype.Jc=function(a){this.o=a;this.na=dw(this.o);if($v(this.o))this.headingState=2;else if(aw(this.o))this.headingState=1;else if(0=vw} function ww(a,b,c,e,f,h,k){this.rank=a;this.ma=b;this.o=c;this.ka=e;this.ha=f;this.icon=h;this.label=void 0===k?"":k} function uw(a){switch(a){case 0:return xw;case 30:return Cba;case 1:return yw;case 2:return vw;case 3:return zw;case 4:return Dba;case 5:return Eba;case 20:return Aw;case 10:return Bw;case 100:return Fba;default:return xw}} ww.prototype.valueOf=function(){return this.rank}; ww.prototype.Gg=function(){return this.icon}; ww.prototype.ub=function(){return this.label}; var xw=new ww(0,"#F1F3F4","#F1F3F4"),Cba=new ww(1,"#F1F3F4","#F1F3F4",void 0,void 0,2),yw=new ww(2,"#896E63","#896E63","#896E63","#B9ABA3",3,"Bronze Member"),vw=new ww(3,"#9E9E9E","#9E9E9E","#5F6368","#BDC1C6",4,"Silver Product Expert"),zw=new ww(4,"#FFB300","#F9AB00","#E37400","#F9AB00",5,"Gold Product Expert"),Dba=new ww(5,"#77909D","#718792","#455A64","#AFBEC5",6,"Platinum Product Expert"),Eba=new ww(6,"#79A8FA","#79A8FA","#1A73E8","#8AB4F8",7,"Diamond Product Expert"),Aw=new ww(7,"#4285F4","#669DF6", "#1A73E8","#8AB4F8",8,"Community Specialist"),Bw=new ww(8,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Community Manager"),Fba=new ww(9,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Google Employee");var Gba=ya(["aria-"]),Hba=ya(["role"]),Iba=ya(["data-stats-"]);function Cw(a){this.o=a||document} Cw.prototype.init=function(){for(var a=this,b=this.o.querySelectorAll(".zippy"),c={},e=0;ea.An?a.An+"px":null},function(){a.ha&&a.element("div","class","loading-spinner",function(){(new Kq({size:"mspin-small"})).render()}); if(0a&&Infinity!==a&&(a=h);this.Bn=h;this.An=a;this.Ca();this.ka.open({anchor:b,Pd:c,Bd:e,Nb:f})}; n.close=function(){this.ka.close()}; function Wba(a){return!!a.Di&&Array.isArray(a.items)&&0b.length){f=[{state:5}];a.Aa.set("",f);p.Sa(4);break}a.o.hf(!0);a.o.open({Nb:!0});$a(p,5);return Ua(p,a.zc(b.trim()),7);case 7:f=p.ha;0===f.length&&(f=[{state:4}]);a.o.hf(!1);ab(p,4);break;case 5:h=bb(p),f=[{state:3}],a.o.hf(!1),a.o.open({Nb:!0}), ox(h);case 4:return a.Aa.set("",f),k=a.o,l=k.Yg,Ua(p,ix(a,!0),8);case 8:l.call(k,p.ha),a.o.Ca(),a.o.open({Nb:!0}),Za(p)}})} function eca(a,b){return function(){a.ta=b;a.o.close();a.va&&a.va()}} dx.prototype.getValues=function(){for(var a=[],b=u(this.ha.keys()),c=b.next();!c.done;c=b.next()){(c=c.value)&&!a.includes(c)&&a.push(c);c=u(this.ha.get(c));for(var e=c.next();!e.done;e=c.next())(e=e.value.Pc)&&!a.includes(e)&&a.push(e)}return a}; function kx(a,b){var c,e;return mb(function(f){if(1==f.o)return $a(f,2),Ua(f,a.ob(b),4);if(2!=f.o){c=f.ha;if(!c||0==c.length)return px(a,b,Error("No results")),f.return();a.ha.set(b,c);return ab(f,0)}e=bb(f);px(a,b,e);Za(f)})} function px(a,b,c){a.ha.set(b,[{state:2}]);a.Qa&&a.ua&&(a.ua=!1,a.Qa(c),fx(a));ox(c)} function fx(a){a.na=new Mq({placeholder:"Google Ads Customer ID",kc:!0,Xd:function(){a.ka=a.na.La().replace(cx,"");a.Zb()}, Gd:a.$a})} function ox(a){a=new CustomEvent("cid_selector_fetch_error",{detail:a});Qk().dispatchEvent(a)} function ex(a){a.Aa.clear();a.Aa.set("",[jx()])} function jx(){return{value:"",trigger:function(){}, items:[],state:0}} ;function qx(a){kl.call(this);this.Xa=this.text="";this.checked=this.disabled=!1;this.tabIndex=0;this.Zd(a)} x(qx,kl);qx.prototype.Zd=function(a){var b=void 0===a.text?"":a.text,c=void 0===a.Xa?"":a.Xa,e=void 0===a.disabled?!1:a.disabled,f=void 0===a.tabIndex?0:a.tabIndex,h=a.content,k=a.Td;this.checked=void 0===a.checked?!1:a.checked;this.text=b;this.Xa=c;this.disabled=e;this.tabIndex=f;this.content=h;this.Td=k}; qx.prototype.La=function(){return this.text}; qx.prototype.Vd=function(){return this.content}; qx.prototype.Qf=function(){return this.Xa};function rx(a){a=void 0===a?{}:a;A.call(this,"sc.shared.MaterialCheckbox");this.model=a instanceof qx?a:new qx(a);this.overlay=new Dl({sk:!0});this.o=null;el(this,this.model)} x(rx,A);rx.prototype.content=function(a){var b=this;a&&this.model.Zd(a);this.element("label","class",{root:!0,disabled:this.model.disabled},function(){b.element("div","class","checkbox",function(){b.o=b.element("input","class","native-control","type","checkbox","aria-label",b.model.Qf(),"tabindex",b.model.tabIndex,"disabled",b.model.disabled,"onchange",function(){b.Fa()}); b.o.checked=!0===b.model.checked;b.o.indeterminate=null===b.model.checked;b.element("div","class","box",function(){b.element("svg","class","checkmark","viewBox","0 0 24 24",function(){b.element("path","class","checkmark-path","d","M1.73,12.91 8.1,19.28 22.79,4.59")}); b.element("div","class","mixedmark")}); b.overlay.render()}); var c=b.model.La(),e=b.model.Vd();c?Pk(c):e&&e()})}; rx.prototype.Fa=function(){if(this.o){var a=this.model,b=this.o.checked,c;a.checked!==b&&(a.checked=b,null===(c=a.Td)||void 0===c?void 0:c.call(a,b),nl(a,0))}};var sx={item:!0,highlight:!0,"item-separator":!1,"item-with-description":!1},tx=Object.assign({},sx),ux=Object.assign(Object.assign({},sx),{highlight:!1}),ica={DEFAULT:sx,HELPCENTER_FIELD_SELECT:tx,HELPCENTER_FIELD_SELECT_WITH_DESCRIPTION:Object.assign(Object.assign({},tx),{"item-with-description":!0}),MULTI_SELECT:ux,MULTI_SELECT_WITH_SEPARATOR:Object.assign(Object.assign({},ux),{"item-separator":!0})}; function vx(a){var b=a.items,c=void 0===a.qc?5:a.qc,e=void 0===a.uc?5:a.uc,f=void 0===a.Oi?0:a.Oi,h=void 0===a.Ug?0:a.Ug,k=a.onClose,l=void 0===a.maxHeight?void 0:a.maxHeight,p=a.width,r=void 0===a.eq?!1:a.eq;a=void 0===a.ym?!0:a.ym;A.call(this,"sc.shared.MaterialMenu");var t=this;this.items=b;this.maxHeight=l;this.width=p&&a?Math.max(112,Math.min(280,p)):p;this.eq=r;this.ym=a;this.o=new oq({content:function(){return void jca(t)}, qc:c,uc:e,Oi:f,Ug:h,cj:!0,onClose:k,Bl:!0})} x(vx,A);vx.prototype.content=function(){this.o.render()}; function jca(a){var b=void 0!==a.width?(a.width/16).toFixed(2)+"rem":null;a.element("div","role","listbox","tabindex","-1","aria-expanded",a.o.isOpen(),"class",{root:!0,"omit-top-rounded-corners":a.eq},"style",Object.assign({width:b},a.maxHeight?{maxHeight:a.maxHeight,overflowY:"auto"}:void 0),function(){a.Di(a.items,0)})} vx.prototype.Di=function(a,b){var c=this,e={};a=u(a);for(var f=a.next();!f.done;e={wd:e.wd},f=a.next())if(e.wd=f.value,!e.wd.ie||e.wd.ie())this.element("button","type","button","role","option","class",ica[e.wd.Qp||"DEFAULT"],"data-item-id",void 0!==e.wd.itemId?e.wd.itemId:"","onclick",function(h){return function(){h.wd.trigger()}}(e),function(h){return function(){h.wd.icon&&kca(c,h.wd.icon,h.wd.Sf); c.element("span","class","item-label","style",{"padding-left":5*b+"px"},function(){switch(typeof h.wd.value){case "string":Xk(h.wd.value);break;case "function":h.wd.value()}})}}(e)),e.wd.Di&&Array.isArray(e.wd.items)&&0Search Help Center
true
102095
");return null==a||null==a.sheet?Vg:Nm(a.sheet,void 0!=b?b:null,c)} function Rm(a){if(Re&&!ff(10)||"function"!=typeof jd.DOMParser)return null;a=$g(""+a+"",null);return(new DOMParser).parseFromString(Yg(a),"text/html").body.children[0]} function Pm(a,b){if(!a)return Kg;var c=document.createElement("div").style;Sm(a).forEach(function(e){var f=Ue&&e in Mm?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");0!=f.lastIndexOf("--",0)&&0!=f.lastIndexOf("var",0)&&(e=Im(a,e),e=hm(f,e,b),null!=e&&Jm(c,f,e))});return new yg(c.cssText||"",xg)} function Tm(a){var b=Array.from(Am(pm,a,"getElementsByTagName",["STYLE"])),c=Me(b,function(n){return ue(Em(n).cssRules)});c=Om(c);for(var e=[],f=0;f"+a+""),Tm(a),a=a.innerHTML);a=$g(a,null);var c=document.createElement("template");if(Zm&&"content"in c)Ph(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Ph(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Vm?new WeakMap:new Xm;e=a.nextNode();){a:{var f=e;switch(Gm(f)){case 3:f= an(this,f);break a;case 1:if("TEMPLATE"==Fm(f).toUpperCase())f=null;else{var k=Fm(f).toUpperCase();if(k in this.ha||"http://www.w3.org/1999/xhtml"!=Km(f))var n=null;else this.N[k]?n=document.createElement(k):(n=mj(document,"SPAN"),this.na&&Cm(n,"data-sanitizer-original-tag",k.toLowerCase()));if(n){var r=n,t=Bm(f);if(null!=t)for(var y=0;k=t[y];y++)if(k.specified){var E=f;var ma=k;var na=ma.name;if(0==na.lastIndexOf("data-sanitizer-",0))ma=null;else{var ta=Fm(E);ma=ma.value;var ua={tagName:Hd(ta).toLowerCase(),attributeName:Hd(na).toLowerCase()},sa={mh:void 0};"style"==ua.attributeName&&(sa.mh=Dm(E));E=bn(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=bn(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&Cm(r,k.name,ma)}f=n}else f=null}break a;default:f=null}}if(f){if(1==Gm(f)&&c.set(e,f),e=Hm(e),k=!1,e)n=Gm(e),r=Fm(e).toLowerCase(),t=Hm(e),11!=n||t?"body"==r&&t&&(n=Hm(t))&&!Hm(n)&&(k=!0):k=!0,n=null,k||!e?n=b:1==Gm(e)&&(n=c.get(e)),n.content&&(n=n.content),n.appendChild(f)}else oj(e)}c.clear&& c.clear();return b};var cn={APPLET:!0,AUDIO:!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,VIDEO:!0};var dn={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!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,WBR:!0};var en={"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 fn(a){a=a||new gn;hn(a);this.v=Vf(a.v);this.ha=Vf(a.Ca);this.N=Vf(a.Ia);this.na=a.va;a.ha.forEach(function(b){if(0!=b.lastIndexOf("data-",0))throw new Ed('Only "data-" attributes allowed, got: %s.',[b]);if(0==b.lastIndexOf("data-sanitizer-",0))throw new Ed('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=jn},this);a.La.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||en[b])throw new Ed("Only valid custom element tag names allowed, got: %s.",[b]);this.N[b]=!0},this);this.ka=a.O;this.$=a.ya;this.O=null;this.ma=a.na} zd(fn,$m);function kn(a){return function(b,c){b=Hd(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=rg(c)?rg(c):null}} function gn(){this.v={};ge([Yl,Zl],function(a){Rf(a).forEach(function(b){this.v[b]=jn},this)},this);this.N={};this.ha=[];this.La=[];this.Ca=Vf(cn);this.Ia=Vf(dn);this.va=!1;this.Ma=vg;this.ka=this.$=this.Pa=this.O=Mh;this.ya=null;this.ma=this.na=!1} function ln(a,b){return function(c,e,f,k){c=a(c,e,f,k);return null==c?null:b(c,e,f,k)}} function mn(a,b,c,e){a[c]&&!b[c]&&(a[c]=ln(a[c],e))} function hn(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");mn(a.v,a.N,"* USEMAP",nn);var b=kn(a.Ma);["* ACTION","* CITE","* HREF"].forEach(function(e){mn(this.v,this.N,e,b)},a);var c=kn(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){mn(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){mn(this.v,this.N,e,wd(on,this.Pa))},a);mn(a.v,a.N,"A TARGET",wd(pn,["_blank","_self"]));mn(a.v,a.N,"* CLASS",wd(qn,a.$));mn(a.v,a.N,"* ID",wd(rn,a.$));mn(a.v,a.N,"* STYLE",wd(a.ka,c));a.ma=!0} function bn(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function jn(a){return Hd(a)} function pn(a,b){b=Hd(b);return 0<=ce(a,b.toLowerCase())?b:null} function nn(a){return(a=Hd(a))&&"#"==a.charAt(0)?a:null} function on(a,b,c){b=Hd(b);return a(b,c)} function qn(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f/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=An(a);b&&(a=a.querySelector(b).parentNode);return a} function zn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?Bn(e,f,b):f.childNodes.length&&c.push(f)})} function Bn(a,b,c){if(b.textContent.match(Cn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=Cn.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=ud(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);me(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],me(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ta:0a.Ta?Math.floor(b*a.Ta):a.Ta};a.Ta=Math.max(a.Ba,a.Ta);return a} function po(a,b,c,e,f,k){var n=b.width-a.ha-a.ma;a.na=hp(n,b.width,b.height,uo(c,b.height),to(a,[1,2]));a.ka=hp(n,b.width,b.height,uo(f,b.height),to(a,[3,4]));c=b.height-a.na-a.ka;f=to(a,[3,4,1,2]);var r=0;for(n=0;nn){a=kp(f);for(e=b=0;en-b-y.Ba.height&&y.yc&&(y.hc.height=0),b+=y.hc.height;return mi(b,k,c)}if(rk){a=kp(e);for(c=e=0;ck-e-t.Ba.width&&t.yc&&(t.hc.width=0),e+=t.hc.width;return mi(e,f,b)}if(na,e=null!=b&&0b;if(null!=b&&(c&&e||!c&&!e)&&b=a.length?a:a.slice(0).sort(function(b,c){b=void 0!==b.Vc.Pf?b.Vc.Pf:20;c=void 0!==c.Vc.Pf?c.Vc.Pf:20;return b-c})} no.prototype.setMargins=no.prototype.Zc;no.prototype.setMarginEnd=no.prototype.vk;no.prototype.setMarginStart=no.prototype.yk;no.prototype.setMarginLeft=no.prototype.wk;no.prototype.setMarginBottom=no.prototype.uk;no.prototype.setMarginRight=no.prototype.xk;no.prototype.setMarginTop=no.prototype.zk;xd("aplos.chart.layout.DynamicLayout",no);var lp={pq:"WARNING",ERROR:"ERROR"};xd("aplos.util.MessageSeverity",lp);lp.WARNING="WARNING";lp.ERROR="ERROR";var mp={mq:"UNTIL_REMOVED",lq:"UNTIL_DATA",Kp:"ONCE"};xd("aplos.util.MessageDuration",mp);mp.UNTIL_REMOVED="UNTIL_REMOVED";mp.UNTIL_FRESH_DATA="UNTIL_DATA";mp.ONCE="ONCE";function np(a){this.v=a} np.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&op(this,b);b.length||(b=pp(this.v.Ja,qp),b.empty()||(b.style("display","none"),b.selectAll("div."+rp).remove(),this.v.ab.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});sp(this,a)};function op(a,b){var c=qp,e=tp,f=a.v,k=f.Ja;f.ab.style("display","none");a=pp(k,c);a.empty()&&(a=k.append("div").classed(c,!0),a.append("div").classed(up,!0),a.append("div").classed(vp,!0));a.style("display",null);a.select("."+vp).attr("class",vp+" "+e);b=a.select("."+up).selectAll("div."+rp).data(b);b.exit().remove();b=b.enter().append("div").merge(b);b.text(function(n){return n.message});b.attr("class",function(n){return rp+" "+wp+n.severity.toLowerCase()});a.style("position","absolute");b=(f.frameWidth()-a.node().offsetWidth)/2;f=(f.frameHeight()-a.node().offsetHeight)/2;b=Math.max(0,b);f=Math.max(0,f);a.style("left",b+"px");a.style("top",f+"px")} function sp(a,b){var c=a.v.Ja.select("."+xp);c.empty()&&(c=a.v.Ja.append("div").classed(xp,!0));c.style("display",b.length?"":"none");c.classed(yp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function pp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function Sp(a){if("function"===typeof a)return a;a[$p]||(a[$p]=function(b){return a.handleEvent(b)});return a[$p]} ;function aq(){this.port=this.v=null;this.N=[]} aq.prototype.load=function(){var a=this,b=bq();this.v=cq(b);dq().then(function(){document.body.appendChild(a.v)});return eq(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} xd("aplos.data.aggregations.max",pq);function mq(a,b){var c=0;b=b||Nh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} xd("aplos.data.aggregations.count",mq);function qq(a,b){var c=new Set;b=b||Nh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} xd("aplos.data.aggregations.countDistinct",qq);function rq(a,b,c,e){if(2>a||!jq(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!jq(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return sq(b/a,c,e)} xd("aplos.data.aggregations.quantiles",rq);function sq(a,b,c){if(0>a||1c.length)var e=null;else{if(!c||2>c.length)e=null;else if(e=[],b){var f=Je(c,b),k=Qf(f);if(2>k.length)e=null;else for(f=Le(k),c=0;cb?Date.UTC(b,3,7,10):Date.UTC(b,2,14,10);c-=864E5*(new Date(c)).getUTCDay();b=2007>b?Date.UTC(b,9,31,9):Date.UTC(b,10,7,9);b-=864E5*(new Date(b)).getUTCDay();return a>=c&&ae?(a=a.Gc(c+1)-e,(c*a+b-e)/a):ba&&b.setFullYear(b.getFullYear()-1900);return b} w=Kq.prototype;w.Me=Eq.Rk;w.Ne=Eq.Sk;w.clone=function(){var a=new Kq(this.date);a.Me=this.Me;a.Ne=this.Ne;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+12*a.N,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(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=0<=c&&99>=c?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),Mq(this,a.getDate()))};w.fg=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+Vh(Math.abs(b),c?6:4),Vh(this.getMonth()+1,2),Vh(this.getDate(),2)].join(a?"-":"")+""};w.toString=function(){return this.fg()};function Mq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.vg?a-=c.Og-c.Hb:a<=c.Af&&(a-=c.Rf-c.Hb);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("local"===c)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),1E3*(a-c);case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),3*Math.floor(a.getUTCMonth()/3),1),c=Yq(a,c),1E3*(a-c);case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=Yq(a,c),1E3*(a-c);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),1E3*(a-c);case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=Yq(a,c),1E3*(a-c);case "HOUR":return a=f+b,1E3*Zq(a-a%36E5-b,c);case "MINUTE":return a=f+b,1E3*Zq(a-a%6E4-b,c);case "SECOND":return 1E3*Zq(1E3*Math.floor(f/1E3),c);case "MILLISECOND":return 1E3*Zq(Math.floor(f),c);case "MICROSECOND":return 1E3*Zq(Math.floor(a)/1E3,c);default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function $q(a,b,c,e){e=void 0===e?"UTC":e;if("local"===e){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":"YEAR"===b?c*=12:"QUARTER"===b&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;11c[a])f=a+2;else break;if(k=c.length|| 0>k)return{Hb:b,Af:null,vg:null,nh:null,Rf:null,Og:null};a=k;break}}e=b+6E7*c[a+1];f=b+6E7*c[a-1];return{Hb:e,Af:36E8*c[a],vg:36E8*c[a+2],nh:e-f,Rf:f,Og:b+6E7*c[a+3]}} function Yq(a,b){return Sq(1E3*a,b).Hb/1E3} function Zq(a,b){var c=1E3*a;b=Sq(c,b);var e=b.Rf-b.Hb;return a-(0>=e||c-e>b.Af?0:e)/1E3} function er(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function Qq(a,b){if("string"!==typeof a)throw Error(b);} function Wq(a){if("number"!==typeof a)throw Error("Invalid timestamp");} for(var br=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,cr={"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},dr={},fr=[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],gr=Kc(["PST8PDT","America/Los_Angeles","US/Pacific"]),hr=gr.next();!hr.done;hr=gr.next()){var ir=hr.value.toUpperCase();dr[ir]={id:ir,yn:-480,Fo:fr}} var jr={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},kr={},lr;for(lr in jr)kr[jr[lr]]=lr;var mr=kr;function Vq(a){if(!a)throw Error("Missing date component.");var b=mr[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(),3*Math.floor(c.getMonth()/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 1E6*Math.floor(a/1E6);case "MILLISECOND":return 1E3*Math.floor(a/1E3);case "MICROSECOND":return Math.floor(a);default:throw Error("Unknown or unsupported date component for truncation:"+b+".");}return 1E3*c.getTime()} ;function nr(a,b){var c=or(a,void 0===b?"__default__":b);return function(e){return null==e?"null":c(e/1E3)}} function or(a,b){b=void 0===b?"__default__":b;var c=!1;0<=a.indexOf("%Z")&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=pr();return function(f){if(null==f)return"null";"string"===typeof f&&(f=+f);nd(f)&&(f=f.getTime());var k="__default__"===b?wq:b,n=qr(a);if("local"===k){n=rr(a);var r=f;k=-6E7*(new Date(f)).getTimezoneOffset()}else"UTC"===k||"+00:00"===k?(r=f,k=0):(f*=1E3,r=Sq(f,k),r=(f+r.Hb)/1E3,k=ar(f,k));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";n=n(r);if(!c)return n;k=(0<=k?"+":"")+e(k);return n.replace("_tzhereplz_",k)}} function pr(){var a=ai("02.0f");return function(b){if(null==b)return"null";"string"===typeof b&&(b=+b);var c=0<=b?"":"-";b=Math.abs(b);var e=Math.floor(b/36E8);b=Math.floor((b-36E8*e)/6E7);return""+c+a(e)+":"+a(b)}} ;var sr=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],tr="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(sr),ur=["MIN","MAX"].concat(sr),vr={},wr=(vr[["string"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return String},oc:"",xc:"aplos-string-cell",mc:sr,Fb:1,bc:"string",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";if("string"!==typeof a)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+'"'}},vr[["decimal"]]={Vb:void 0,zc:!1,nc:"decimal",tc:Yh,oc:".2f",xc:"aplos-numeric-cell",mc:tr,Fb:2,bc:"number",vc:function(a){return a},lc:function(a){return"SUM("+a+")"},kc:String},vr[["integer"]]={Vb:void 0,zc:!1,nc:"integer",tc:Yh,oc:".0f",xc:"aplos-numeric-cell",mc:tr,Fb:2,bc:"number",vc:function(a){return a},lc:function(a){return"SUM("+a+")"},kc:String},vr[["time_us"]]={Vb:.001,zc:!1,nc:"integer",tc:nr,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:ur,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){nd(a)&&(a=1E3*a.getTime());return String(a)}},vr[["time_ms"]]={Vb:1,zc:!1,nc:"integer",tc:or,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:ur,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){nd(a)&&(a=a.getTime());return String(a)}},vr[["timestamp"]]={Vb:.001,zc:!1,nc:"integer",tc:nr,oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:ur,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";nd(a)&&(a=1E3*a.getTime());return"TIMESTAMP_MICROS("+a+")"}},vr[["date"]]={Vb:.001,zc:!0,nc:"integer",tc:function(a){return nr(a,"UTC")},oc:"%Y-%m-%d",xc:"aplos-date-cell",mc:ur,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";nd(a)&&(a=1E3*a.getTime());return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},vr[["datetime"]]={Vb:.001,zc:!0,nc:"integer",tc:function(a){return nr(a,"UTC")},oc:"%Y-%m-%d %H:%M:%S",xc:"aplos-date-cell",mc:ur,Fb:3,bc:"number",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT("+a+")"},kc:function(a){if(null==a)return"null";nd(a)&&(a=1E3*a.getTime());return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},vr[["boolean"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return String},oc:"",xc:"",mc:sr,Fb:4,bc:"boolean",vc:function(a){return a},lc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},kc:String},vr[["hll_sketch"]]={Vb:void 0,zc:!1,nc:"integer",tc:Yh,oc:".0f",xc:"aplos-numeric-cell",mc:["HLL_COUNT.MERGE"],Fb:2,bc:"number",vc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},lc:function(a){return"HLL_COUNT.MERGE("+a+")"},kc:String},vr[["message"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return function(a){return JSON.stringify(a,null,2)}},oc:"",xc:"aplos-string-cell",mc:[],Fb:1,bc:"object",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},kc:String},vr[["array"]]={Vb:void 0,zc:!1,nc:"integer",tc:function(){return function(a){return JSON.stringify(a,null,2)}},oc:"",xc:"aplos-string-cell",mc:[],Fb:1,bc:"object",vc:function(a){return a},lc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},kc:String},vr[["kll_int64"]]={uj:!0,Vb:void 0,nc:"integer",tc:Yh,oc:".0f",xc:"aplos-numeric-cell",mc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Fb:2,bc:"number",vc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},lc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},kc:String},vr[["kll_double"]]={uj:!0,Vb:void 0,nc:"decimal",tc:Yh,oc:".2f",xc:"aplos-numeric-cell",mc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Fb:2,bc:"number",vc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},lc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},kc:String},vr);function xr(a){if("string"===typeof a)return"string";if("number"===typeof a)return"decimal";if("boolean"===typeof a)return"boolean";if(nd(a))return"timestamp";if(null==a)return"string";throw Error("Unknown filter value type: "+a);} ;var yr={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"};xd("aplos.data.FilterOperator",yr);function zr(a,b,c){return Ar(b).lb(a,c)} function Br(a,b){return(a=Ar(a).ze)?a(b):b} var Cr={},Ir=(Cr["="]={lb:function(a,b){return"null"===b[0]?Dr(a):a+" = "+b[0]},ze:null},Cr[">"]={lb:function(a,b){return a+" > "+b[0]},ze:function(a){return[Er(a)]}},Cr["<"]={lb:function(a,b){return a+" < "+b[0]},ze:function(a){return[Fr(a)]}},Cr[">="]={lb:function(a,b){return a+" >= "+b[0]},ze:function(a){return[Er(a)]}},Cr["<="]={lb:function(a,b){return a+" <= "+b[0]},ze:function(a){return[Fr(a)]}},Cr["!="]={lb:function(a,b){return"null"===b[0]?Gr(a):a+" != "+b[0]}},Cr.IN={lb:function(a,b){if(null==b||0===b.length)return"true = false";b=b.slice();var c=se(b,function(e){return"null"===e});if(c&&0===b.length)return Dr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+Dr(a)+")":b}},Cr.NOT_IN={lb:function(a,b){if(null==b||0===b.length)return"true = true";b=b.slice();var c=se(b,function(e){return"null"===e});if(c&&0===b.length)return Gr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+Gr(a)+")":b}},Cr.BETWEEN={lb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},ze:function(a){return ji(a)}},Cr.NOT_BETWEEN={lb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},ze:function(a){return ji(a)}},Cr.IS_NULL={lb:Dr},Cr.IS_NOT_NULL={lb:Gr},Cr.IS_INFINITY={lb:function(a){return"IS_INF("+a+")"}},Cr.IS_NOT_INFINITY={lb:function(a){return"NOT(IS_INF("+a+"))"}},Cr.IS_NAN={lb:function(a){return"IS_NAN("+a+")"}},Cr.IS_NOT_NAN={lb:function(a){return"NOT(IS_NAN("+a+"))"}},Cr.CONTAINS={lb:function(a,b){return Hr(a,b[0])}},Cr.DOES_NOT_CONTAIN={lb:function(a,b){return"NOT("+Hr(a,b[0])+")"}},Cr.REGEX={lb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},Cr.NOT_REGEX={lb: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(null==Ir[a])throw Error("Unknown filter operator: "+a);return Ir[a]} var Jr=/([.?*+^$[\]\\(){}|-])/g;function Kr(a,b,c){if("string"!==typeof a)return a={zf:void 0!==a.column?a.column:a.zf,operator:void 0!==a.operator?a.operator:a.operator,value:void 0!==a.value?a.value:a.value},Array.isArray(a.value)&&("="===a.operator?a.operator="IN":"!="===a.operator&&(a.operator="NOT_IN")),a;if(null==b)throw Error("No operator specified.");return{zf:a,operator:b,value:void 0!==c?c:""}} xd("aplos.data.SimpleFilter",function(){});xd("aplos.data.SimpleFilter.Operator",yr);xd("aplos.data.SimpleFilter.buildFromFilterOrValues",Kr);function Lr(a){for(var b=0;be&&(f=1));return null!=f?"ASC"===a?f:-1*f:0} var Rr=Nr.bind(null,"ASC",!1);function Qr(a){return null==a?0:-Infinity===a?2:Infinity===a?4:"number"===typeof a&&isNaN(a)?1:3} var Or=!1,Pr=/^-?[0-9]*(\.)?[0-9]+$/;xd("aplos.data.util.toFilterExpression",function(a,b,c,e){b=void 0===b?"=":b;c=void 0===c?!0:c;if(!0===c&&"="===b)return a;var f=[];void 0!==c&&(c=Array.isArray(c)?c:[c],c=Br(b,c),c.forEach(function(k){var n=null==e?xr(k):e;f.push(wr[n].kc(k))}));return zr(a,b,f)});xd("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return null!=c[b]})});xd("aplos.data.util.sort",Nr);function Sr(a){this.sf=this.Sa=.35;this.rb=this.Qb=null;this.ka=new Set;this.v=[0,1];this.na=new vk;this.N=0;this.Ma=!1;this.Va=null!=a?a:2;this.O=!0;this.ma=this.Xd=null;this.Zb=!1;this.ha=null;this.La=!1;this.Ia=1;this.Pa=0;this.va=null;this.Ya=1;this.rf=this.Qc=this.nf=this.qf=this.$=null;this.tf=new kj(0,0);this.Ca=this.ya=null;this.uc=void 0;this.ig=new Tr(this);Ur(this)} w=Sr.prototype;w.vi=function(a){this.Va=a;this.O=!0;return this};w.ak=function(a){this.Sa=a;2==this.Va&&this.vi(this.Va);return this};w.Pl=function(){return this.Sa};w.Yj=function(a,b){this.Qb=a;this.rb=b;this.O=!0;return this};w.Xg=function(a){this.rf=a;return this};w.Qe=function(){return this.rf};w.ub=function(){return this.na};w.ag=function(a){this.na=a;return this};w.Fk=function(a){this.Xd=a;return this};w.zi=function(a){this.ma=a;this.La||(this.ha=null);this.ma instanceof Vr&&(a=this.ma.Dg(),"function"===typeof a&&this.Od(a));this.O=!0;return this};w.Vm=function(){return this.ma};w.Xj=function(a){this.Ma=a;this.O=!0;return this};w.Od=function(a){this.uc=a;2===this.Va&&(this.O=!0)};function Wr(a){a.ka.clear();a.La||(a.ha=null);a.O=!0} function Xr(a,b,c,e){for(var f=0;f=e[0]*e[1]?NaN:b>e[0]!=e[1]>e[0]!=f[1]>f[0]?Er(c):Fr(c)} function $r(a,b){return a.Xd||b||function(c){return null!=c?c.toString():""}} w.bandwidth=function(){Ur(this);return 2==this.Va?this.Ka.bandwidth():this.va?2===this.Ya?this.Ka(this.va)-this.Ka(0):this.va||0:0};function as(a){Ur(a);return 2==a.Va?[bj(a.Ka,a.v[0]),bj(a.Ka,a.v[1])]:a.Ka.domain()} w.Ak=function(a){this.ha=a;this.La=null!=a;this.ti(1,0);return this};w.ti=function(a,b){this.Ia=a;this.Pa=b;this.O=!0};function bs(a,b,c,e,f,k,n){a.Zb!==k&&(a.O=!0);a.$=b;a.qf=c;a.nf=e;a.N=f;a.Zb=k;a.Qc=n} w.Bh=function(){var a=ei(this.N);null==this.Qe()&&this.na.Pj(this.$);return{position:a,Pf:10}};w.hg=function(a){var b=ei(this.N);b=Lf(a,this.Qe(),b);if(null!=b)return b;b=this.range();this.range(1===this.N||3===this.N?[a.height,0]:[0,a.width]);var c=ds(this,this.Qc);a=this.na.hh(this.$,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};w.Dh=function(){return 0};w.Eh=function(){return 0};w.Wg=function(a){var b=a.right-a.left,c=a.bottom-a.top;if(1===this.N||3===this.N){var e=this.range();this.range(e[0]<=e[1]?[0,c]:[c,0])}else this.range([0,b]);this.tf=new kj(b,c);this.ya=a};w.Ef=function(){return this.ya};w.render=function(a,b){if(this.$){var c=this.ya;this.$.attr("transform","translate("+((1==this.N?c.right:c.left)-a.Kb())+", "+((2==this.N?c.bottom:c.top)-a.Lb())+")");c=ds(this,this.Qc);var e=Zr(this,0);if(isNaN(e))switch(this.N){case 0:e=a.wb();break;case 1:e=0;break;case 3:e=a.Za();break;case 2:e=0}var f={top:a.Lb(),right:a.Kb()+a.Za(),bottom:a.Lb()+a.wb(),left:a.Kb()};this.na.render(this.$,c,this.N,new kj(a.Za(),a.wb()),this.tf,this.bandwidth(),b,this.Ca,this.qf,e,this.nf,this.ya,f)}};function ds(a,b){Ur(a);var c=es(a),e=a.Xd;c.Ye()||(e=$r(a,b));b=c.Mb(2==a.Va?null:a.Ka.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ka),e,a,a.ig).map(function(k){k&&void 0!==k.value||(k={value:k});void 0===k.location&&(k.location=Math.round(Ap(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){null==k.label&&(k.label=e(k.value,f));k.label=k.label.toString()},a);return b} function fs(a){if(!a.ha)if(2==a.Va){var b=Array.from(a.ka);0=b?[1,10]:[b/Math.sqrt(10),b*Math.sqrt(10)];case 3:return null==b?(a=Date.now(),[a-864E5,a]):[+b-432E5,+b+432E5];default:throw Error("Unsupported scale type: "+a.Va);}} w.Od=function(a){this.uc=a};w.Dg=function(){return this.uc};w.Ye=function(){return!1};w.Mb=function(a,b,c,e,f,k){this.Ka&&this.Ka.ticks?("function"===typeof this.uc&&this.Ka.domainOverride&&this.Ka.domainOverride(this.uc),a[0]==a[1]&&(a=gs(this,a[0])),a=this.Ka.domain(a||c).range([0,b]).ticks().map(function(t){return"number"===typeof t?+t.toFixed(7):t})):a=c;if(this.Lj&&k&&f){var n=2,r=zp(a,f,e);for(e=r;k.v.na&&k.v.$&&k.v.na.Ii(e,k.v.$,k.v.N)&&2=b)return[];var f=this.lh||Ds(c),k=1E3*wr[f].Vb;f=a[0]>a[1];c=ji(c);a=ji(a);0===c[1]-c[0]&&(a=c=[c[0]-36E8,c[0]+36E8]);var n=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=Es(this,(a-c)/(b/this.vn));b=r.interval;r=r.unit;var t=e;e&&(t=function(sa){return e(sa/1E3)});var y=t||Fs(this,this.sh[r].tick),E=t||Fs(this,this.sh[r].Dc);t=t||Fs(this,this.sh[r].transition);var ma=Gs(r);n=this.yg(b,r,c,n);for(var na=[];n<=a;){if(n>=c){var ta=y(n),ua="minor";ma&&this.lf(n,ma)===n&&(ua="major",t&&(ta=t(n)));na.push({value:n,Hh:ua,label:ta})}n=this.Ge(n,r,b)}E&&na.length&&(na[0].label=E(na[0].value));1!==k&&na.forEach(function(sa){sa.value=sa.value/k});return!1===f?na:na.reverse()};w.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?ji(b,function(e){return e.value}):a};function Es(a,b){for(var c=Kc(a.Bi),e=c.next();!e.done;e=c.next())if(e=e.value,Hs[e.unit]*e.interval>=b)return e;return a.Bi[a.Bi.length-1]} function Gs(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.dh)};w.Ge=function(a,b,c){return $q(a,b,c,this.dh)};function Fs(a,b){return b?nr(b,a.dh):null} w.yg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return"WEEK"===b?(b=this.lf(e,"WEEK"),b=this.Ge(b,"DAY",this.Lo),a*=7):b=this.lf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.Ge(b,"DAY",c);default:return b=Gs(b)||"YEAR",this.lf(c,b)}};function Ds(a){a=ji(a);return 3E11a[0]?"time_ms":"timestamp"} function Bs(a,b){if(!a)return a;var c=Th(a||"","\n");return c=b)return[];var f=a[0];f=f instanceof Date?1E13<+f?"microseconds":"date":"number"===typeof f?1E13=c[1]&&(a=Os(this.Nh),r-n=Os(b.Cb)&&(b.Cb=null);a=Os(b.step)/a;aOs(b.Cb)&&(b.Cb=b.step));this.Jg=b}a=e||b.N||b.v;e=e||b.v;n=+n;c=new Nq;c.setTime(n);n=this.yg(c,b.step);c=b.Cb?this.yg(c,b.Cb):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=1E3*n.getTime();break a;default:na=new Date(n.getTime())}ma.value=na;c&&b.Cb&&c.getTime()<=n.getTime()?(ma.type="transition",ma.label=a(new Date(n.getTime())),Qs(c,b.Cb),E=!0):ma.label=e(new Date(n.getTime()));y.push(ma);Qs(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.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?ji(b,function(e){return e.value}):a};w.yg=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;0<=f;f--)c+=Gq(e,f);c=new Nq(a.getFullYear(),0,Math.ceil(c/b.days)*b.days);0===b.days%7&&c.setDate(c.getDate()-c.getDay()+this.Ci)}else if(b.O)c=new Nq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.$)c=new Nq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.$)*b.$);else if(1<=b.v)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()a)throw Error("numTicks must be at least 2");this.oe=a;this.Le=!1;return this};w.Im=function(){return this.oe};w.ni=function(a){this.Qg=a;return this};w.Hm=function(){return this.Qg};w.rk=function(a){this.v=a;return this};w.tm=function(){return this.v};w.Vg=function(a){(this.Le=a)?this.oe=null:this.oe=5;return this};w.fm=function(){return this.Le};w.Ye=function(){return!1};w.Od=function(a){this.uc=a};w.Dg=function(){return this.uc};w.Mb=function(a,b,c,e,f){b=this.Le?Math.max(2,Math.floor(b/100)):this.oe;this.uc&&(a=this.uc(a));a=Array.isArray(a)?this.wh(this.Qg,b-1,a,this.v||!1):[];return f?zp(a,f,e):a};w.Fd=function(a,b,c){b=this.Mb(a,b,c);return b.length?ji(b):a};w.Te=function(a,b,c,e){var f=b[1]-b[0],k=0>f;f=Math.abs(f);var n=f/c;f=Math.pow(10,f?Math.floor(Math.log(n)/Math.LN10):0);for(var r=n,t=0;t=n&&(!e||r==Math.round(r))&&c*r+this.Ve(b,r)>=b[1]);t++);return(k?-1:1)*r};function Ts(a){return 0>a?a+2E-10:0a[0]&&(c-=b);return c};Rs.prototype.getDefaultViewport=Rs.prototype.Fd;Rs.prototype.getTicks=Rs.prototype.Mb;Rs.prototype.getNicingFunction=Rs.prototype.Dg;Rs.prototype.getDynamicTicks=Rs.prototype.fm;Rs.prototype.setDynamicTicks=Rs.prototype.Vg;Rs.prototype.getIntIntervalsOnly=Rs.prototype.tm;Rs.prototype.setIntIntervalsOnly=Rs.prototype.rk;Rs.prototype.getNiceCoefficients=Rs.prototype.Hm;Rs.prototype.setNiceCoefficients=Rs.prototype.ni;Rs.prototype.getNumTicks=Rs.prototype.Im;Rs.prototype.setNumTicks=Rs.prototype.oi;var Ss=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];xd("aplos.chart.BaseTickProvider",Rs);function Us(){Rs.call(this);this.Vg(!0);this.ni([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Ig=!1} Zc(Us,Rs);Us.prototype.wh=function(a,b,c,e){if(0===b&&(0c[1]||0>c[0]&&0c[1])break;if(this.Ig){if(n-c[0]f;f=Math.abs(f);var n=0==c?f/2:f/(c+1);f=Math.pow(10,f?Math.floor(Math.log(n)/Math.LN10):0);for(var r=null,t=null,y=0,E=0;E=n){var na=this.Ve(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}}null===r&&(r=null!==t?t:1);return(k?-1:1)*r};Us.prototype.Ve=function(a,b){return Math.ceil(a[0]/b)*b};xd("aplos.chart.DataTickProvider",Us);function Vs(){} Vs.prototype.Ye=function(){return!0};Vs.prototype.Mb=function(a,b,c,e,f){a=Ws(c||a);b=[];f?(b=zp(a,f,e),b.forEach(function(k){0===Math.log(Math.abs(+k.value))*Math.LOG10E%1?(k.label=e?k.label:Xs(k.value),k.Hh="major"):(k.label="",k.Hh="minor")})):b=a;return b};Vs.prototype.Fd=function(a,b,c){return ji(Ws(c||a))};function Ws(a){a=a.filter(function(k){return 0!==k});var b=ji(a),c=b[0],e=b[1];0>=c&&0<=e&&(a=a.filter(function(k){return 0f&&(e.push(a*(f+"e"+b)),b!==c);f++);1===a||e.reverse();return e} function Xs(a){var b=0>a?"-":"";a=Math.log(Math.abs(a))*Math.LOG10E;if(0===a)return b+"1";if(1===a)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} xd("aplos.chart.LogTickProvider",Vs);function Ys(){this.ah=[]} Ys.prototype.Ye=function(){return!1};Ys.prototype.Mb=function(){return this.ah.map(function(a){return a&&void 0!==a.value?Vf(a):a})};Ys.prototype.Fd=function(a){return this.ah.length?ji(this.ah,function(b){return null!=b.value?b.value:b}):a};Ys.prototype.Gk=function(a){this.ah=a.slice();return this};Ys.prototype.setTicks=Ys.prototype.Gk;Ys.prototype.getDefaultViewport=Ys.prototype.Fd;Ys.prototype.getTicks=Ys.prototype.Mb;xd("aplos.chart.ManualTickProvider",Ys);function Zs(){Rs.call(this)} Zc(Zs,Rs);Zs.prototype.wh=function(a,b,c,e){4E-10=c[1])f=b;else{if(1===b)return ji($s(this,a,2,1,c,e));f=Math.round(Math.abs(c[0])/(c[1]-c[0])*b);0===f?f=1:f===b&&(f=b-1)}0===c[1]-c[0]&&(0c[1]&&(c=[1.25*c[0],0]));return $s(this,a,b,f,c,e)};function $s(a,b,c,e,f,k){c=Math.max(1,c);var n=0;0>f[0]&&(n=a.Te(b,[f[0],0],e,k));var r=0;0c[0]&&0c[1]&&(c=[1.25*c[0],.75*c[1]]));if(1==b&&(0==c[0]||0==c[1]||0>c[0]&&0=c[1])?b?"data":"tight":b?"data":"quantum":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:0,showDomainAxisLine:!0,showBaseline:!0},log:{nicing:"tight",tickFormatter:function(a){var b=null;a&&(b="function"===typeof a?a:Yh(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:1,showDomainAxisLine:!0,showBaseline:!1},ordinal:{nicing:void 0,tickFormatter:function(a){var b=null;a&&(b="function"===typeof a?a:Yh(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a){return"default"==a?"labels":a},scaleType:2,showDomainAxisLine:!1,showBaseline:!1},time:{nicing:"none",tickFormatter:function(a){var b=null;a&&("function"===typeof a?b=a:b=or(a));return b},tickProviderType:function(a){return"default"==a?"tight":a},renderingType:function(a,b){return"default"==a?b?"ticks":"gridlines":a},scaleType:3,showDomainAxisLine:!0,showBaseline:!1}};function mt(){} Zc(mt,dt);xd("aplos.chart.OldAxisSpecParser",mt);var nt=new dt;bt.current=nt;function ot(){} ot.prototype.fe=function(){};ot.prototype.Td=function(){};xd("aplos.chart.ShapeRenderer",ot);function pt(a,b,c){this.N=void 0!==c?c:!1;this.O=void 0!==b?b:!0;this.$=a;this.ha="0.6ex"} w=pt.prototype;w.fe=function(a,b,c,e,f,k,n){var r=(this.$+" "+b).trim();a=a.append("g").attr("class",r);this.Ac(a);a.append("text");this.Td(a,b,c,e,f,k,n)};w.Td=function(a,b,c,e,f,k,n){var r=null!=n.strokeWidth?n.strokeWidth:2,t=this.O?"white":k,y=this.Nc(a);1>y.size()&&(y=zj(a.node()),b=(this.$+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Ac(y),y.append("text"),y=this.Nc(a));a=a.select("text");this.Tc(y,a,c,e,f,this.O,r,k,t,this.N?n.label:null)};w.Ac=function(){};w.Nc=function(){};w.Tc=function(){};function qt(a,b,c,e,f,k,n){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};Re||Se?(c.y=e,c.dy=a.ha):(c.dy=e,c["dominant-baseline"]="middle");cj(b,c);b.style("fill",k);b.style("font-size",1.25*f+"px");b.text(n)} xd("aplos.chart.shaperenderer.BaseLabelShape",pt);function rt(){pt.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Zc(rt,pt);rt.prototype.Ac=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")};rt.prototype.Nc=function(a){return a.select("g.aplos-box-triangle-right-shape")};rt.prototype.Tc=function(a,b,c,e,f,k,n,r,t,y){var E=a.select(".primary");if(1>E.size())throw Error("No primary path found in update selection");var ma=a.select(".secondary");if(1>ma.size())throw Error("No secondary path found in update selection");var na=2*f,ta=na/16;cj(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});cj(E,{rx:2,ry:2,width:2*f,height:2*f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});cj(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ta+")"});qt(this,b,c,e,f,t,y)};xd("aplos.chart.shaperenderer.BoxTriangleRight",rt);function st(a,b){pt.call(this,"aplos-circle-shape-group",a,b)} Zc(st,pt);st.prototype.Ac=function(a){a.append("circle").attr("class","aplos-circle-shape")};st.prototype.Nc=function(a){return a.select("circle.aplos-circle-shape")};st.prototype.Tc=function(a,b,c,e,f,k,n,r,t,y){cj(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":n});qt(this,b,c,e,f,t,y)};xd("aplos.chart.shaperenderer.Circle",st);function tt(){} tt.prototype.fe=function(a,b,c,e,f,k,n,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Td(a,b,c,e,f,k,n,r,t)};tt.prototype.Td=function(a,b,c,e,f,k,n,r,t){cj(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":2*f})};xd("aplos.chart.shaperenderer.Cylinder",tt);function ut(a,b){pt.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Zc(ut,pt);ut.prototype.Ac=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};ut.prototype.Nc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};ut.prototype.Tc=function(a,b,c,e,f,k,n,r,t,y){var E=.866*f;cj(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});qt(this,b,c,e+f-E,f,t,y)};xd("aplos.chart.shaperenderer.EquilateralTriangle",ut);function vt(){pt.call(this,"aplos-error-shape-group",!0,!1)} Zc(vt,pt);vt.prototype.Ac=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};vt.prototype.Nc=function(a){return a.select("g.aplos-error-shape")};vt.prototype.Tc=function(a,b,c,e,f,k,n,r,t,y){k=a.select(".primary");if(1>k.size())throw Error("No primary path found in update selection");n=a.select(".secondary");if(1>n.size())throw Error("No secondary path found in update selection");var E=2*f,ma=2,na=2;if(36k.size())throw Error("No primary path found in update selection");n=a.select(".secondary");if(1>n.size())throw Error("No secondary path found in update selection");var E=2*f,ma=1.5,na=1.5;36k.size())throw Error("No primary path found in update selection");n=a.select(".secondary");if(1>n.size())throw Error("No secondary path found in update selection");f*=1.4;var E=2*f;if(36E.size())throw Error("No primary path found in update selection");k=a.select(".secondary");if(1>k.size())throw Error("No secondary path found in update selection");var ma=2*f,na=2;n=1;if(36Pf(c)||1>a.length)return a;a.sort(function(E,ma){return Rr(E[b],ma[b])});e=e||$t(a,b);for(var f=a[0],k=[],n=0,r=0;r=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.xsa?1E3*sa:sa;ua.displayName=a.name;ua.description=ua.datum.description;ua.chartX=Ap(k,n?ua.time:ua.time/1E3);ua.chartY=0;sa=b.Dd()||pu;ua.label=sa(ua.time)},this);e.sort(function(ua,sa){return ua.$a-sa.$a});var r=[];if(0f.Za())break;E.$a>y.Ib.$a+100?(y.ld=E.$a-y.Ib.$a,y={Ib:E,hb:[]},r.push(y)):y.hb.push(E)}if(!y)return;if(y.Ib.$a+60>f.Za()){y.Gl=!0;0na.Ib.$a-100){var ta=(na.Ib.$a-ma.Ib.$a)/2+ma.Ib.$a;y=na.hb;e=ma.hb;na.hb=[];ma.hb=[];e.forEach(function(ua){ua.chartX> ta?na.hb.push(ua):ma.hb.push(ua)});y.forEach(function(ua){ua.chartX>ta?na.hb.push(ua):ma.hb.push(ua)});ma.ld=ta-ma.Ib.$a;na.ld=na.Ib.$a-ta;60>ma.ld&&(na.ld+=ma.ld,na.hb=[ma.Ib].concat(ma.hb).concat(na.hb),r.splice(r.length-2,1))}}else y.ld=f.Za()-y.Ib.$a}c.sj=r;jo(b,c)}};w.render=function(a,b,c){var e=b.Jb();b=jo(b);if(b.sj&&b.zq)if(0===a.data.length&&null==c.node())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.sj),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=zj(this),n=f.Ib,r=f.Gl,t=f.ld-4-10;cj(k,{transform:"translate("+n.$a+", 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);Ej(E.node(),t);E.attr("dy","1em");Fj(E.node(),n.description);E=y.select("text.date").text(n.label);Ej(E.node(),t);E.attr("dy","2.15em");Fj(E.node(),n.label);var ma=0Math.PI/180*this.N},a)).classed(vu,!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&&!Re?xu(a,b):yu(a,b);zu(a,b);Au(b);b.filter(function(){return!zj(this).select("."+Bu).text()}).style("display","none")} function xu(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.position,k=a.Bb.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=0===r?0:0Math.PI&&hu(f.rect,b)?f.ke.style("display","none"):(f.ke.style("display",""),e=f.rect)})} function yu(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.padding,k=a.v;b.append("g").attr("transform",function(n){if(c&&e){var r=n.offset[0];n=n.offset[1];var t=f+e;t=0===r?0:0Math.PI/180*this.v},a)).classed(Gu,!0).attr("transform",function(c){return"translate("+c.start+")"});Iu(a,b);Ju(a,b);b.empty()||(Ku(a,b),Lu(b),Wj(b).filter(function(){return!zj(this).select("."+Mu).text()}).style("display","none"))} function Iu(a,b){var c=a.Bb.Lf,e=a.Bb.le,f=a.Bb.position,k=a.Bb.padding;b=b.append("g").attr("transform",function(r){if(c&&e){var t=r.offset[0];r=r.offset[1];var y=k;0!==t&&0!==r&&(y+=e);y=0===t?0:0r?-k:k:0}else t=r.ad[0],r=r.ad[1],E=y=0;return"translate("+[t+y,r+E]+")"});var n=b=Sj(b);b.select("div").empty()||(n=b.select("div"));n.attr("data-label-position",Nu(a,f)).append("div").classed(Mu,!0).style("opacity",0).each(wd(Ou,a.N));b.each(wd(function(r,t){r=zj(this);var y=r.select("."+Mu),E=y.node();xj(E,null,null,!0);if(c&&e){var ma=t.offset[0];t=t.offset[1]}else ma=t.ad[0],t=t.ad[1];y.style("text-align",0===ma?"center":0Math.PI&&hu(f.rect,b)?(f.ke.style("display","none"),f.Lh.style("display","none")):(f.ke.style("display",""),f.Lh.style("display",""),e=f.rect)})} function Ku(a,b){var c=Tj(b).node().getBoundingClientRect();b.each(wd(function(e,f){var k=zj(this),n=Wj(k.select("g")),r=n.select("."+Mu).node().getBoundingClientRect(),t=Math.ceil(r.left+r.width-f.left-f.width)+5,y=Math.ceil(f.left-r.left)+5,E=(0f.top+f.height||r.leftf.left+f.width)k.style("display","none"),n.style("display","none")},a,c))} function Ju(a,b){var c=a.Bb.le;b.append("line").classed(Ru,!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]});0=k.length?"hidden":null},this));return r};w.qe=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);jk(e,function(){return c.color()(a,b)})};w.qd=function(a,b,c,e){var f=new hj(c,e),k=this.Ue(),n=this.Gd(),r=ij(f,new hj(0,0)),t=null;if(r>=n&&r<=k)for(f=(0<=f.x?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=Vu(this,a,b),n=0;n=r.startAngle&&f<=r.endAngle){t=Aw(this,a,b,r.data||{},n,c,e);break}return t};function Aw(a,b,c,e,f,k,n){var r=c.measure(),t=c.domain(),y=c.color(),E=Vu(a,b,c)[f];var ma=a.Ue();var na=a.Gd();E=(E.startAngle-Math.PI/2+(E.endAngle-Math.PI/2))/2;ma=na+(ma-na)/2;ma=new hj(Math.round(Math.cos(E)*ma),Math.round(Math.sin(E)*ma));E=c.Jb();na=ma.x+E.Za()/2;E=ma.y+E.wb()/2;b={index:f,datum:e,measure:r(e,f),domain:t(e,f),datumX:ma.x,datumY:ma.y,chartX:na,chartY:E,color:y(e,f),series:b,seriesConfig:c,relativeDistance:0,domainDistance:0,measureDistance:0};return b=a.Ab(b,k,n)} w.Ab=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Yf(e,a);void 0!=b&&void 0!=c&&(e.relativeDistance=ij(new hj(e.datumX,e.datumY),new hj(b,c)));return e};w.je=function(a,b,c,e,f,k,n){f=void 0===f?[]:f;for(var r=0;rua.endAngle-ua.startAngle?sa.style("display","none"):sa.style("display","")});y.each(function(ua,sa){var Ba=zj(this),ya=Ba.select("path"),Aa=n(ua.data,sa);ua=r(ua.data,sa);Ba.classed("highlight",0Aa);Ba.classed("selected",0ua);ya.attr("filter",0e.endAngle-e.startAngle&&(e.startAngle=e.endAngle);return a(e)}}} function Fw(a,b,c,e,f){var k=Dw(b);return wd(function(n,r){r=ce(e,r);n=Gw(n,r,c,e,f);return k.call(this,{startAngle:n,endAngle:n})},a)} function Bw(a,b,c,e,f){for(--b;0<=b;b--)for(var k=f(c[b],b),n=0;n=r.measureSize,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="middle"===this.N?".32em":null;break;default:k?(ma=E,E=y,na=null):(ma=y,na=".32em")}t=(t=r.validValue&&("above"===this.N||t>=this.ha))&&(k?y<=e:y>=c);r.barLabel={domainPosition:ma,measurePosition:E,valid:t,dy:na,"text-anchor":Ow(this,b),"dominant-baseline":Pw(this,b)}}};function Ow(a,b){switch(a.N){case "above":return"vertical"===a.v?"y"===b?"left":"middle":"y"===b?"middle":"left";case "bottom":return"vertical"===a.v?"y"===b?"left":"middle":"y"===b?"middle":"left";case "middle":return"middle";case "top":return"vertical"===a.v?"y"===b?"right":"middle":"y"===b?"middle":"right";default:throw Error("Unrecognized bar label position");}} function Pw(a,b){switch(a.N){case "above":return null;case "bottom":return null;case "middle":return"vertical"===a.v?null:"y"===b?"middle":null;case "top":return"vertical"===a.v?"x"===b?"hanging":null:"y"===b?"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="y"===c,k=this;a.each(function(n){var r=n.barLabel;if(r){var t=zj(this),y=r.valid?1:0,E=null,ma=n.barLabel;if("above"===k.N){var na=n.chartX;ma=n.chartY}else"vertical"===k.v?f?(na=ma.measurePosition,ma=-1*ma.domainPosition):(na=-1*ma.measurePosition,ma=ma.domainPosition):(na=ma.domainPosition,ma=ma.measurePosition);na=new hj(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= "y"===c?"rotate(-90)":"rotate(90)";break;default:na=null}cj(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",Mj(r["text-anchor"],n.label));t.style("fill",k.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.Vf=function(){return!0};Jw.prototype.getMinBarLength=Jw.prototype.Em;Jw.prototype.setMinBarLength=Jw.prototype.li;Jw.prototype.getLabelPosition=Jw.prototype.od;Jw.prototype.setLabelPosition=Jw.prototype.Ob;Jw.prototype.getLabelOrientation=Jw.prototype.vm;Jw.prototype.setLabelOrientation=Jw.prototype.sk;Jw.prototype.getLabelColor=Jw.prototype.Pe;Jw.prototype.setLabelColor=Jw.prototype.Yc;Jw.prototype.getLabelOffsetFunction=Jw.prototype.um;Jw.prototype.setLabelOffsetFunction=Jw.prototype.hf;function Kw(a,b){return a?-4:-b-4} function Lw(a,b){return a?b-4:-4} function Mw(a,b){return a?b/2:-b/2} function Nw(a,b){return a?4:-b+4} xd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});xd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Qw(){ju.call(this);this.na=this.Sa=2;this.ha=null;this.va=0;this.Ca=this.$=1;this.ka=this.Ma=null;this.N=this.Ya=this.Ia=0;this.v=new Jw;this.ya=[this.v,new Ot];this.rb=tk;this.Qb=null} Zc(Qw,ju);function Rw(a,b){a.ya.push(b);return a} function Sw(a,b){me(a.ya,a.v);a.v=b;Rw(a,a.v)} w=Qw.prototype;w.Rl=function(){return this.v};w.oo=function(a){this.Ya=a;return this};w.Un=function(a){this.N=a;return this};w.Sl=function(){return this.N};w.Nd=function(a){this.rb=a;return this};w.il=function(a){return arguments.length&&null!=a?this.Md(a):this.Ec()};w.strokeWidth=function(a){return arguments.length&&null!=a?this.Sd(a):this.Jf()};w.Sd=function(a){this.Ia=a;return this};w.Jf=function(){return this.Ia};w.stack=function(a){return arguments.length&&null!=a?this.Rd(a):this.We()};w.Rd=function(a){this.$f(a?2:1);return this};w.We=function(){return 2===this.$};w.$f=function(a){this.$=a;return this};w.mm=function(){return this.$};w.to=function(a){return arguments.length&&null!=a?this.yi(a):this.Ca};w.yi=function(a){this.Ca=a;return this};w.Rm=function(){return this.Ca};w.Lg=function(a){return arguments.length&&void 0!==a?this.Yg(a):this.ka};w.Yg=function(a){this.ka=Math.max(0,a);return this};w.Dm=function(){return this.ka};w.Bk=function(a){this.Ma=Math.max(0,a);return this};w.Fm=function(){return this.Ma};w.jl=function(a){return arguments.length&&null!=a?this.$j(a):this.na};w.$j=function(a){this.na=a;return this};w.Ol=function(){return this.na};w.Xm=function(){return this.ha};w.Ik=function(a){this.ha=a;return this};w.kl=function(a){return arguments.length&&null!=a?this.dk(a):this.va};w.dk=function(a){this.va=a;return this};w.Ql=function(){return this.va};w.Nn=function(a){return arguments.length&&null!=a?this.ui(a):this.Sa};w.ui=function(a){this.Sa=a;return this};w.Lm=function(){return this.Sa};w.rd=function(){return-10};w.Jd=function(a){return a instanceof Qw};w.Vn=function(a){this.Qb=a;return this};w.Wc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.$;nu(this,a,b);for(var n=0,r=0;rt&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),0t&&(b.barClass+=" inverse-selected");c=mu(this);for(n=0;nf.length)throw Error('Number of series exceeds length of weight pattern "'+a.ha+'"');for(var k=[],n=0;ny.measureSize?y.measurePosition+y.measureSize:y.measurePosition,y.domainSize,Math.abs(y.measureSize)):new gu(0>y.measureSize?y.measurePosition+y.measureSize:y.measurePosition,y.domainPosition,Math.abs(y.measureSize),y.domainSize);a:{var ma=Math.max(f.left,E.left);var na=Math.min(f.left+ f.width,E.left+E.width);if(ma<=na){var ta=Math.max(f.top,E.top);E=Math.min(f.top+f.height,E.top+E.height);if(ta<=E){ma=new gu(ma,ta,na-ma,E-ta);break a}}ma=null}if(null===ma)continue}if("function"!==typeof k||k(y,t,c,e))ma=ex(this,y,c,e),ma.domainDistance=e&&a<=k?0:Math.abs(a-n),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:ij(new hj(n,b),new hj(a,c))}} w.qe=function(a,b,c,e,f){var k=f.width;f=f.height;var n=e.append("g").attr("class","bar-group");e=c.Cc()(a,b);var r=Jn(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);jk(k,function(){return c.color()(a,b)},!0);e&&"none"!==e.toLowerCase()&&k.attr("fill","transparent")};function bx(a){a=zj(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function dx(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 Yw(a,b,c,e,f){var k=c.measureOffset,n=c.measure+k,r=Zr(f,k),t=Zr(f,n);if(Ul(r)&&Ul(t)){n=nMath.abs(t-r)?t=r:r+=(n?1:-1)*a.Ca);n?(n=0===k?Math.floor:Math.ceil,y=Math.ceil):(n=0===k?Math.ceil:Math.floor,y=Math.floor);r=n(r);t=y(t)}else t=r=null;n=Ap(e,c.domain);y=Yr(e,c.domain)+b.barOffset;var E=b.barWidth,ma=r;r=t-r;var na=t=void 0,ta=Math.min(E/2,Math.abs(r),c.strokeWidth);E-=ta;y+=ta/2;r+=(0<=r?-1:1)*ta/2;if(null!=c.measureLowerBound&& null!=c.measureUpperBound){var ua=c.measureLowerBound,sa=c.measureUpperBound;null!=ua&&null!=sa&&(t=Zr(f,k+ua),na=Zr(f,k+sa))}a="x"==ku(a);k=b.barWidth/2;b=Yr(e,c.domain)+b.barOffset+k;c=Ap(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:ta}} w.re=function(){return!0};w.Eg=function(a,b){b=jo(b);return null==b.barData?a.data:b.barData};Qw.prototype.setCssName=Qw.prototype.Vn;Qw.prototype.getRoundingRadiusPx=Qw.prototype.Lm;Qw.prototype.setRoundingRadiusPx=Qw.prototype.ui;Qw.prototype.roundingRadiusPx=Qw.prototype.Nn;Qw.prototype.getBarHorizontalMargin=Qw.prototype.Ql;Qw.prototype.setBarHorizontalMargin=Qw.prototype.dk;Qw.prototype.barHorizontalMargin=Qw.prototype.kl;Qw.prototype.setWeightPattern=Qw.prototype.Ik;Qw.prototype.getWeightPattern=Qw.prototype.Xm;Qw.prototype.getBarGroupInnerPadding=Qw.prototype.Ol;Qw.prototype.setBarGroupInnerPadding=Qw.prototype.$j;Qw.prototype.barGroupInnerPadding=Qw.prototype.jl;Qw.prototype.getMinBarWidth=Qw.prototype.Fm;Qw.prototype.setMinBarWidth=Qw.prototype.Bk;Qw.prototype.getMaxBarWidth=Qw.prototype.Dm;Qw.prototype.setMaxBarWidth=Qw.prototype.Yg;Qw.prototype.maxBarWidth=Qw.prototype.Lg;Qw.prototype.getStackedBarPadding=Qw.prototype.Rm;Qw.prototype.setStackedBarPadding=Qw.prototype.yi;Qw.prototype.stackedBarPadding=Qw.prototype.to;Qw.prototype.getGroupingType=Qw.prototype.mm;Qw.prototype.setGroupingType=Qw.prototype.$f;Qw.prototype.getStack=Qw.prototype.We;Qw.prototype.setStack=Qw.prototype.Rd;Qw.prototype.stack=Qw.prototype.stack;Qw.prototype.getStrokeWidth=Qw.prototype.Jf;Qw.prototype.setStrokeWidth=Qw.prototype.Sd;Qw.prototype.strokeWidth=Qw.prototype.strokeWidth;Qw.prototype.autoBarLabels=Qw.prototype.il;Qw.prototype.setColorHighlightStrategy=Qw.prototype.Nd;Qw.prototype.getBorderRenderingStrategy=Qw.prototype.Sl;Qw.prototype.setBorderRenderingStrategy=Qw.prototype.Un;Qw.prototype.setTransitionStrategy=Qw.prototype.oo;Qw.prototype.getBarLabelDecorator=Qw.prototype.Rl;function ax(a,b,c,e,f,k,n){if(null===a||null===b||null===c||null===e||null===k)return"";k=Math.min(Math.abs(e),k,c/2);n=1==n?"Z":"";return f?0<=e?"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:0>=e?"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} function Ww(a,b,c,e,f,k,n,r){e=Math.floor((e-(2*r+f*(a-1)))/a);k&&(e=Math.max(k,e));n&&(e=Math.min(n,e));return c&&0!=c.length?Math.floor(e*a*c[b]):e} function Xw(a,b,c,e,f,k,n,r){var t=Math.floor((e-(2*r+f*(a-1)))/a),y=0;n&&t>n&&(y=Math.floor((t-n)*a/2));for(var E=t=0;E2*this.size&&ux(this),!0):!1};function ux(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)return mx;var n=e.v[b++];return{value:a?n:e.N[n],done:!1}};var k=f.next;f.Pg=function(){var n=k.call(f);if(n.done)throw kx;return n.value};return f};function vx(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function wx(){ju.call(this);this.va=null;this.ka=0;this.N=!1;this.ha=2;this.v=!1;this.na=null;this.$=3} Zc(wx,ju);w=wx.prototype;w.Mn=function(a){if(null==a)return this.N;this.N=a;return this};w.Lg=function(a){if(void 0===a)return this.na;this.na=a;return this};w.strokeWidth=function(a){if(null==a)return this.$;this.$=a;return this};w.Ym=function(a){if(null==a)return this.ha;this.ha=a;return this};w.io=function(a,b){b?(this.va=null,this.ka=a||0):(this.va=a||0,this.ka=null);return this};w.stack=function(a){if(!arguments.length||null==a)return this.v;this.v=a;return this};w.Wc=function(a,b){for(var c=new sx,e=new sx,f=0;fua&&(ta.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=jo(b).lineData;var f=Zr(b.nb(),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=mu(this),t=ku(this);e&&(c.each(function(y){var E=zj(this);cj(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});E.attr(t+"1",y.domainPosition);E.attr(t+"2",y.domainPosition+y.domainSize);E.attr(r+"1",f);E.attr(r+"2",f)}),n=n.transition().duration(e),a=a.transition().duration(e),a.attr(r+"1",f),a.attr(r+"2",f));a.remove();n.each(function(y){var E=zj(this);e&&(E=E.transition(n));cj(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});E.attr(t+"1",y.domainPosition);E.attr(t+"2",y.domainPosition+y.domainSize);E.attr(r+"1",y.measurePosition);E.attr(r+"2",y.measurePosition)});return null};function yx(a,b,c,e,f){a.v&&(c=1,b=0);return(0===b?f:0)+e+(b+1===c?f:0)} function zx(a,b,c,e,f,k){if(a.v)return Math.floor((c-b)/2)-k;c=Math.floor((c-b)*f/2);0===e&&(c-=k);return c+(a.ha+b)*e} function Ax(a,b,c,e,f,k){var n=b.measureOffset,r=b.measure+n;Ul(r)&&Ul(n)||(r=0);n=Ap(k,r);var t=Ap(k,0);r=0>r;k=(k=t=e&&a<=k?0:Math.abs(a-n),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.je=function(a,b,c,e,f){a=f||[];if(b=jo(b).lineData)for(f=0;fya.chartX&&(k=!0);n=ya.chartX;Ex(this,ya);ya.pointClass="";var Aa=t(ya.datum,Ba);0Aa&&(ya.pointClass=(ya.pointClass+" inverse-highlight").trim());Aa=y(ya.datum,Ba);0Aa&&(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),null!==ya.domainLowerBound&&null!==ya.domainUpperBound&&(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=ta(ya.datum,Ba),sa||(ya.measureLowerBound+=Aa,ya.measureUpperBound+=Aa),null!==ya.measureLowerBound&&null!==ya.measureUpperBound&&(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.Eb=r;this.v.Nb(r,mu(this),e,f)}};function Dx(a,b,c){var e=a.ka;b.shapeRenderer&&(e=Cx(b.shapeRenderer));return lo(c,"shapeRenderer",function(f){return f.shapeRenderer?Cx(f.shapeRenderer):e})} function Ex(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.nb(),0);f=jo(b);var r=Jn(b,"datumHoverState")?b.md():function(){return 0};b=Jn(b,"datumClickState")?b.ae():function(){return 0};var t=c.node();Fx(this,f.Eb||[],t,a,e,k,n,r,b);return c.selectAll(".point-group")};function Fx(a,b,c,e,f,k,n,r,t){if(0===b.length)Gx(a,c,e,f);else{c=zj(c).selectAll(".point-group").data(b,function(sa){return sa.key});c.exit().remove();var y=c.enter().append("g").attr("class","point-group");c=y.merge(c);a.v.Vf()||a.v.add(y,f,k);var E=function(sa,Ba){var ya=+sa.radius;if(0Aa.chartX&&(n=!0);t=Aa.chartX;Ex(this.v,Aa);this.ya&&(ta&&ua&&(Aa.domainLowerBound= ta(Aa.datum,ya),Aa.domainUpperBound=ua(Aa.datum,ya),null!==Aa.domainLowerBound&&null!==Aa.domainUpperBound&&(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=sa(Aa.datum,ya),Aa.measureUpperBound=Ba(Aa.datum,ya),null!=Aa.measureLowerBound&&null!=Aa.measureUpperBound&&(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;rQa&&(Oa+=" inverse-highlight");var Wa=ma(y[0].datum,0);0Wa&&(Oa+=" inverse-selected");Ea.push({color:Ka[0],Kg:Ka[1],Cc:Ka[2],Ie:Ka[3],Fl:Ja,wc:Fa,Mq:a.name,strokeWidth:Pa,Dq:Pa,Bq:0 Qa,id:"lineclip"+Zj(),Ej:Oa})},this)}e.Eb=y;e.vj=n;e.Nf=Ea;this.N&&this.v.v.Nb(y,mu(this),f,k)}};w.render=function(a,b,c,e,f,k,n){var r=Zr(b.nb(),0),t=jo(b),y=c.node();if(0!==a.data.length||null!=y){var E=c.select("g");E.node()&&E.classed("area-segments")||Yj(y,'');var ma=qj(y);E=ma[1];var na=ma[2],ta=ma[3];y=ma[4];ma=ma[5];Px(c,t.Nf,b);Qx(this,t.Nf,E,r,e,k);Rx(this,t.Nf,na,r,e,k);Sx(this,t.vj,ta,r,e,k);Tx(this,t.Nf,ma,r,e,k);this.N?this.v.render(a,b,zj(y),e,f,k,n):(b=b.Mh(),jo(b,{}),this.v.render({name:a.name,data:[]},b,zj(y),e,f,k,n));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Rx(a,b,c,e,f,k){if(a.ha)if(0===b.length)Ux(a,c,e,f);else if(zj(c).attr("clip-path",k),f){k=zj(c).selectAll(".line-series").data(b);k.exit().remove();b=zj(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");cj(c,{"class":function(t){return t.Ej},fill:"none"});k=c.merge(k);var n=b.enter().append("path");cj(n,{"class":"event-target",fill:"none"});b=n.merge(b);var r=Vx().defined(function(t){return t.validValue}).curve(a.$).x(function(t){return t.chartX}).y(e);f&&(cj(c,{stroke:function(t){return t.Kg},"stroke-dasharray":function(t){return t.Cc},d:function(t){return r(t.wc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),cj(n,{stroke:"transparent",opacity:"0",d:function(t){return r(t.wc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});cj(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Cc},d:function(t){return r(t.wc)},"stroke-width":function(t){return t.strokeWidth}});cj(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.wc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else Wx(a,c,b),zj(c).selectAll(".line-series").data(b),zj(c).selectAll(".event-target").data(b);else Yj(c,"")} function Wx(a,b,c){for(var e="",f=Vx().defined(function(r){return r.validValue}).curve(a.$).x(function(r){return a.Ca?Math.round(r.chartX):Math.round(100*r.chartX)/100}).y(function(r){r=Ul(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(100*r)/100}),k=0;k';e+=''}Yj(b,e)} function Ux(a,b,c,e){var f=zj(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=Vx().defined(function(n){return n.validValue}).curve(a.$).x(function(n){return n.chartX}).y(c);f.attr("d",function(n){return k(n.wc)}).remove();zj(b).selectAll(".event-target").remove()} function Sx(a,b,c,e,f,k){b.length&&!a.N&&a.ha?(a=zj(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 2*n.strokeWidth},"class":function(n){return"line-series isolate-datum"+(null!=n.datumClass?" "+n.datumClass:"")}},f&&(cj(b,c),a=a.transition().duration(f)),c.d=function(n){return"M"+n.chartX+","+n.chartY+"h0"},cj(a,c)):Yj(c,"")} function Qx(a,b,c,e,f,k){if(a.va)if(0===b.length)Xx(c,e,f);else{b=zj(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=Yx().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(cj(c,{fill:function(r){return r.Kg},d:function(r){return n(r.wc)}}),b=b.transition().duration(f));n.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});cj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Kg},d:function(r){return n(r.wc)},"class":function(r){return"area"+(null!=r.datumClass?" "+r.datumClass:"")}})}else Yj(c,"")} function Xx(a,b,c){a=zj(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=Yx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.wc)}).remove()} function Tx(a,b,c,e,f,k){if(a.ya)if(0===b.length||a.N)Zx(c,e,f);else{b=zj(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");cj(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var n=Yx().curve(a.Ma).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(cj(c,{fill:function(r){return r.color},d:function(r){return n(r.wc)}}),b=b.transition().duration(f));n.y1(function(r){return null!=r.measureUpperBoundPosition?r.measureUpperBoundPosition:r.chartY});n.y0(function(r){return null!=r.measureLowerBoundPosition?r.measureLowerBoundPosition:r.chartY});cj(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.wc)}})}else Yj(c,"")} function Zx(a,b,c){a=zj(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=Yx().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.wc)}).remove()} function Ox(a,b){var c=null!=a.O;return function(e,f){if(c)for(e=0;eE)return!0;if(tab||a>=r.length)return null;for(var t=Math.min(Math.max(ay(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--);null!=y&&(y=this.Ab(y,c,e));return y};function ay(a,b,c){c=void 0===c?!1:c;var e=Ae(a,b,function(f,k){return f-k.chartX});if(0>e)return-e-1;if(c)for(;e=a?hk():ik()};function Dy(){return!1} w.jj=function(a,b,c,e){var f=Cy(a,b,c,e);c=Cy(a,b,c);e=Cy(a,b,void 0,e);a=Cy(a,b);return this.v[f]||this.v[c]||this.v[e]||this.v[a]||null};w.te=function(a,b,c,e,f){b=Cy(b,c,e,f);this.v[b]=a};w.$n=function(a){this.ha=a};w.Wf=function(a,b,c,e){b=Cy(b,c,e);this.N[b]=a};w.Xl=function(a){return this.$[a.toLowerCase()]||null};w.Xc=function(a,b){this.$[b.toLowerCase()]=a};w.$c=function(a,b){this.ma[b.toLowerCase()]=a};function Ey(a,b){a.ha&&a.ha(b)} function Cy(a,b,c,e){a=[a.toString(),b.toString()];a.push((c||"").toLowerCase());a.push((e||"").toLowerCase());return a.join("-")} function Ay(a){var b=function(c){return function(e){var f=e.rendering?e.rendering:{};c&&null==f.domainAxisOuterPaddingPct&&null==f.domainAxisOuterPaddingPx&&(f.domainAxisOuterPaddingPx=this.na,f.domainAxisOuterPaddingPct=this.ka);e.rendering=f;return c?nt.Zi(e,6):nt.$i(e,6)}.bind(this)}.bind(a);a.te({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:20}},0,0);a.Wf(b(!0),0,0);a.te({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:2}},0,1);a.Wf(b(!0),0,1);a.te({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:20}},0,0,"waterfall");a.te({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:2}},0,1,"waterfall");a.te({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,0);a.Wf(b(!1),1,0);a.te({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,1);a.Wf(b(!1),1,1)} function By(a){a.Xc({},"eventAnnotation");a.$c(function(){return new ou}.bind(a),"eventAnnotation");a.Xc({hideSingleArcBorder:!0,labelPadding:3,leaderLineLength:15,leaderLineTailLength:10,minLabelArcAngle:0,sortSlices:!1},"arc");a.$c(function(b){var c=new Su(null!=b.arcInnerRadius?b.arcInnerRadius:0,null!=b.arcOuterRadius?b.arcOuterRadius:0);b=b.arc||b;null!=b.enableHtmlLabels&&c.ci(b.enableHtmlLabels);null!=b.hideSingleArcBorder&&(c.ma=b.hideSingleArcBorder);null!=b.labelPadding&&c.hi(b.labelPadding);null!=b.leaderLineLength&&c.ii(b.leaderLineLength);null!=b.leaderLineTailLength&&c.ji(b.leaderLineTailLength);null!=b.minLabelArcAngle&&c.mi(b.minLabelArcAngle);null!=b.showBackground&&(c.Ia=b.showBackground);null!=b.showHighlightShadow&&(c.La=b.showHighlightShadow);null!=b.sortSlices&&c.xi(b.sortSlices);return c}.bind(a),"arc");a.Xc({stack:!0,includeArea:!0},"area");a.$c(function(b){return ty(b)}.bind(a),"area");a.Xc({maxBarWidth:300,strokeWidth:2},"bar");a.$c(function(b){var c=new Qw,e=c.v;b=b.bar||b;b=xy(b);if(null!=b.groupingType)switch(b.groupingType){case "grouped":c.$f(1);break;case "stacked":c.$f(2);break;case "groupedStacked":c.$f(3);break;default:throw Error("Invalid bar grouping type: "+b.groupingType);}null!=b.labelColor&&null!=e&&e.Yc(b.labelColor);null!=b.labelOrientation&&null!=e&&e.sk(b.labelOrientation);null!=b.labelPosition&&null!=e&&e.Ob(b.labelPosition);null!=b.minBarWidth&&c.Bk(+b.minBarWidth);null!=b.maxBarWidth&&c.Yg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.li(b.minBarLengthForLabel);(null!=b.stack&&null==b.groupingType||0==b.groupingType)&&c.Rd(b.stack);null!=b.strokeWidth&&c.Sd(b.strokeWidth);null!=b.weightPattern&&c.Ik(b.weightPattern);vy(c,b);wy(c,b,!1);return c}.bind(a),"bar");a.Xc({maxBarWidth:300,strokeWidth:5},"barTarget");a.$c(function(b){var c=new wx;b=b.bartarget||b;null!=b.stack&&c.stack(b.stack);null!=b.maxBarWidth&&c.Lg(b.maxBarWidth);null!=b.strokeWidth&&c.strokeWidth(b.strokeWidth);return c}.bind(a),"barTarget");a.Xc({strokeWidth:2,legendKeyStrokeWidth:4},"line");a.$c(function(b){return ty(b)}.bind(a),"line");a.Xc({strokeWidth:1},"markerLine");a.$c(function(b){var c=new my;b=b.markerline||b;null!=b.greaterThanLabel&&c.rj(b.greaterThanLabel);null!=b.legendKeyStrokeWidth&&c.Mf(b.legendKeyStrokeWidth);null!=b.lessThanLabel&&c.Aj(b.lessThanLabel);null!=b.showSeriesName&&c.Jk(!!b.showSeriesName);null!=b.strokeWidth&&c.strokeWidth(b.strokeWidth);return c}.bind(a),"markerLine");a.Xc({},"point");a.$c(function(b){var c=new Bx;b=b.point||b;null!=b.animatesFromDomainAxis&&c.Wj(b.animatesFromDomainAxis);if(null!=b.errorRenderer){var e=b;if(null!=e.errorRenderer)switch(e.errorRenderer){case "whiskers":c.di(new Ot);break;case "comparison_points":case "comparisonPoints":c.di(new Nt);break;default:throw Error('Unrecognized error renderer type: "'+e.errorRenderer+'"');}}null!=b.labelColor&&c.Yc(b.labelColor);null!=b.labelPosition&&uy(c,b);null!=b.shapeRenderer&&c.Yf(b.shapeRenderer);vy(c,b);return c}.bind(a),"point");a.Xc({},"waterfall");a.$c(function(b){var c=sy(),e=c.v;b=b.waterfall||b;b=xy(b);null!=b.labelColor&&null!=e&&e.Yc(b.labelColor);null!=b.labelPosition&&null!=e&&e.Ob(b.labelPosition);null!=b.maxBarWidth&&c.Yg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.li(b.minBarLengthForLabel);null!=b.strokeWidth&&c.Sd(b.strokeWidth);vy(c,b);return c}.bind(a),"waterfall")} zy.prototype.setSeriesRendererFactory=zy.prototype.$c;zy.prototype.setDefaultSeriesSeriesRendererSpec=zy.prototype.Xc;zy.prototype.getDefaultSeriesSeriesRendererSpec=zy.prototype.Xl;zy.prototype.setAxisFactory=zy.prototype.Wf;zy.prototype.setExtendedDefaultsCallback=zy.prototype.$n;zy.prototype.setDefaultAxisSpec=zy.prototype.te;zy.prototype.getDefaultAxisSpec=zy.prototype.jj;xd("aplos.chart.style.AplosTemplateStyle",zy);function Fy(){zy.call(this);this.O+=" quantum-style"} Zc(Fy,zy);xd("aplos.chart.style.QuantumStyle",Fy);var Gy=new Fy;xd("aplos.chart.Style.getCurrentStyle",function(){return Gy});xd("aplos.chart.Style.setCurrentStyle",function(a){Gy=a});xd("aplos.chart.Style.resetCurrentStyle",function(){Gy=new Fy});function Hy(){this.N=0;this.O=null;this.v=[];this.$=Nh;this.ma=this.ka;this.ha=Nh} xd("aplos.data.DataPromise",Hy);var Iy=!1;Hy.setAllowSynchronousPromises=function(){Iy=!0};Hy.prototype.Df=function(a){if(0!==this.N)return this;this.N=1;this.O=a;for(a=0;a')),document.body.appendChild(ak),ak.contentDocument.body.appendChild(nj(new dg(eg,"\n \n
 
\n \n \n \n \n \n \n
"))));var r=ak.contentDocument,t=r.querySelector(n.tagName);t||(t=r.querySelector("div"));r=Aj(t);t=Aj(n);for(var y={},E=0;E>=8),b[c++]=f;a=of(b,void 0)}return"data:image/svg+xml;base64,"+ a};Ly.prototype.toSvgDataUrl=Ly.prototype.Nk;Ly.prototype.Co=function(a){a=void 0===a?1:a;var b=document.createElement("canvas"),c=10*a;b.width=this.frameWidth()*a+2*c;b.height=this.frameHeight()*a+2*c;var e=new Image;e.src=this.Nk(a);var f=new Hy;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.Df(b.toDataURL("image/png"))}catch(n){f.reject(n)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Ly.prototype.toPngDataUrl=Ly.prototype.Co;Ly.prototype.getStyle=function(){return this.Ai};var Ny="aplos-chart",Yy="aplos-chart-container";function Zy(a,b,c){Zy.base(this,"constructor",te(a,["prelayout","postlayout"]),b,c);this.nf=this.Qc=null;this.Zc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} xd("aplos.chart.SvgChartView",Zy);zd(Zy,Ly);var $y=0;Zy.prototype.redraw=Zy.prototype.df;Zy.prototype.xd=function(){Zy.Pb.xd.call(this);var a=this.Xe().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.ab.node().setAttribute("transform","translate("+this.Kb()+","+this.Lb()+")");this.Qc&&this.Qc.attr("width",this.Za()+1).attr("height",this.wb()+2)};Zy.prototype.Xe=function(){return this.uo};Zy.prototype.getSvg=Zy.prototype.Xe;Zy.prototype.Do=function(){var a=this.Xe().node(),b=document.createElement("style"),c=Kj(a),e=Aj(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};Zy.prototype.toSvgString=Zy.prototype.Do;Zy.prototype.getNearestDatumDetails=Zy.prototype.Gf;var az=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1"),Oy="aplos-chart-container",Py="aplos-chart-svg",Qy="aplos-draw-area";function bz(a,b,c){var e=this;Zy.call(this,te(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.rb=new co(this);this.na={};this.se={};this.Dk("hover",new Sn);this.Ya=new cz;this.on("viewportChange.seriesChartView",function(){e.Ya.reset()})} zd(bz,Zy);xd("aplos.chart.SeriesChartView",bz);bz.prototype.Dk=function(a,b){b.Sg("clearSelectedDatumDetailsCache",this.Xk.bind(this));var c=this.se,e=Ln[a].selectionChange,f=this.Xa;f.O.hasOwnProperty(e)||Rn(f,[e]);e=c[a];null!=e&&e.Sg("chartDelegate",null);c[a]=b;Xy(this,b,a);return this};bz.prototype.setSelectionModel=bz.prototype.Dk;bz.prototype.ko=function(a){eo(this.rb,a);return this};bz.prototype.setSeriesDefaults=bz.prototype.ko;bz.prototype.ub=function(a){return this.na[a||"__aplosDefault__"]||this.na.__aplosDefault__};bz.prototype.getRenderer=bz.prototype.ub;bz.prototype.$m=function(a){return!!this.na[a||"__aplosDefault__"]};bz.prototype.hasRenderer=bz.prototype.$m;bz.prototype.ag=function(a,b){b?(b.type&&(b=this.getStyle().nj(b)),this.na[a]=b):delete this.na[a];return this};bz.prototype.setRenderer=bz.prototype.ag;bz.prototype.ai=function(a){a.type&&(a=this.getStyle().nj(a));this.na.__aplosDefault__=a;return this};bz.prototype.setDefaultRenderer=bz.prototype.ai;bz.prototype.Zh=function(a,b){a=this.Ff(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.se[Kn[b]||"hover"]||null).Zg(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};bz.prototype.selectDatum=bz.prototype.Zh;bz.prototype.Qn=function(a){this.Xa.mb("seriesMouseover",this,a,ej)};bz.prototype.selectSeries=bz.prototype.Qn;bz.prototype.ul=function(a){(this.se[Kn[a]||"hover"]||null).deselectAll()};bz.prototype.clearSelections=bz.prototype.ul;bz.prototype.Ff=function(a,b,c){var e=this.N||[],f=this.v||[];if(!e||!f)return[];if(ej){var k=dj(this.ab.node());var n=k[0];k=k[1]}for(var r=[],t=0;tb||b>this.Za())||!this.Wb&&(0>a||a>this.wb()))return[];for(var e=new gu(this.Kb(),this.Lb(),this.Za(),this.wb()),f=new hj(b+e.left,a+e.top),k=[],n=0;n=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);tz(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:tz(f)&&(b+="\\"),b+=f}}return b+"$"} function vz(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 wz(){} wz.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 xz=new wz;xz=function(){function a(va,oc,fd,Vc){fd=fd||{};for(Vc=va.length;Vc--;fd[va[Vc]]=oc);return fd} function b(){this.Pc={}} 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],ta=[1,85],ua=[1,86],sa=[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],mc=[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],Ag=[1,140],Dk=[1,150],Bg=[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],Ai=[1,180],Bi=[5,12,17,42,43,44,45,54,96,97,98,99],Ye=[1,233],vf=[1,250],Ci=[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],Ee=[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],oe=[2,37],Ze=[1,336],ie=[5,12,17,54,96,97,98,99],Ek=[96,97],Ei={trace:function(){},Pc:{},vo:{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},eg:{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"},Sj:[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]],Ph:function(va,oc,fd,Vc,hd,za){va=za.length-1;switch(hd){case 1:return za[va-1];case 7:this.oa=za[va-1];break;case 9:case 10:case 13:this.oa={type:"function",name:za[va-3].toUpperCase(),params:[za[va-1]]};break;case 11:case 14:this.oa={type:"function",name:za[va-5].toUpperCase(),params:[za[va-3],za[va-1]]};break;case 12:case 15:this.oa={type:"function",name:za[va-3].toUpperCase(),params:za[va-1]};break;case 25:case 26:case 27:case 28:this.oa={type:"function",name:za[va-1],params:[za[va-2],za[va]]};break;case 29:this.oa={type:"function",name:"EQUAL",params:[za[va-2],za[va]]};break;case 30:this.oa={type:"function",name:"NOT_EQUAL",params:[za[va-2],za[va]]};break;case 31:this.oa={type:"function",name:"LESS",params:[za[va-2],za[va]]};break;case 32:this.oa={type:"function",name:"LESS_OR_EQUAL",params:[za[va-2],za[va]]};break;case 33:this.oa={type:"function",name:"GREATER",params:[za[va-2],za[va]]};break;case 34:this.oa={type:"function",name:"GREATER_OR_EQUAL",params:[za[va-2],za[va]]};break;case 35:this.oa={type:"function",name:"BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 36:this.oa={type:"function",name:"NOT BETWEEN",params:[za[va-4],za[va-2],za[va]]};break;case 37:this.oa={type:"function",name:"AND",params:[za[va-2],za[va]]};break;case 38:this.oa={type:"function",name:"OR",params:[za[va-2],za[va]]};break;case 39:this.oa={type:"function",name:"IS NULL",params:[za[va-1]]};break;case 40:this.oa={type:"function",name:"IS TRUE",params:[za[va-1]]};break;case 41:this.oa={type:"function",name:"IS FALSE",params:[za[va-1]]};break;case 42:this.oa={type:"number",value:+-za[va]};break;case 43:this.oa={type:"number",value:+za[va]};break;case 44:this.oa={type:"string",value:vz(za[va].substring(1,za[va].length-1))};break;case 45:case 46:this.oa={type:"function",name:za[va-3],params:[za[va-1]]};break;case 47:hd=za[va-1].pathParts.slice();if(2va.length&&(va+=this.$b.substr(0,20-va.length));return(va.substr(0,20)+(20Vc[0].length)){var Vc=va;var hd=fd;if(this.options.Ri){Vc=this.Lk(va,oc[fd]);if(!1!==Vc)return Vc;if(this.kg)Vc=!1;else return!1}else if(!this.options.flex)break}return Vc?(Vc=this.Lk(Vc,oc[hd]),!1!==Vc?Vc:!1):""===this.$b?this.Hi:this.parseError("Lexical error on line "+(this.Xb+1)+". Unrecognized text.\n"+ this.$g(),{text:"",Ok:null,line:this.Xb})},Bj:function(){var va=this.next();return va?va:this.Bj()},Si:function(va){this.Gb.push(va)},Hn:function(){return 0)/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=Ei;Ei.v=b;return new b}();function yz(a,b,c){if(null!=c&&"number"!==typeof c)throw Error("Provided value for "+b+' to "'+a+'" was of type '+typeof c+" but a number was expected.");} function zz(a,b,c){if(null!=c&&("number"!==typeof c||!isNaN(c))&&isFinite(c)&&c!==parseInt(c,10))throw Error("Provided value for "+b+' to "'+a+'" was not an integer.');} function Az(a,b,c,e,f){if(null!=c&&!(isNaN(c)||c>=e&&c<=f))throw Error("Value provided for "+b+' to "'+a+'" was out of the allowed range of ['+e+", "+f+"].");} function Bz(a,b){yz("TRUNC(X, Y)","X",a);yz("TRUNC(X, Y)","Y",b);zz("TRUNC(X, Y)","Y",b);if(null==a||null==b)return null;if(isNaN(a)||isNaN(b))return NaN;if(!isFinite(a))return+a;a=0<=a?Number(Math.floor(a+"e"+b)):Number(Math.ceil(a+"e"+b));return 0<=b?Number(a+"e-"+b):Number(a+"e"+-b)} function Cz(a,b){yz("LOG(X, Y)","X",a);yz("LOG(X, Y)","X",b);return null==a||null==b?null:+a/+b} ;function Dz(a,b){var c=Array.prototype.slice.call(arguments),e=c.shift();if("undefined"==typeof e)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("undefined"==typeof na)throw Error("[goog.string.format] Not enough arguments");arguments[0]=na;return Ez[y].apply(null,arguments)})} var Ez={s:function(a,b,c){return isNaN(c)||""==c||a.length>=Number(c)?a:a=-1Number(a)?"-":0<=b.indexOf("+")?"+":0<=b.indexOf(" ")?" ":"";0<=Number(a)&&(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;0<=b.indexOf("-",0)?e=k+e+Uh(" ",a):(b=0<=b.indexOf("0",0)?"0":" ",e=k+Uh(b,a)+e);return e},d:function(a,b,c,e,f,k,n,r){return Ez.f(parseInt(a,10),b,c,e,0,k,n,r)}};Ez.i=Ez.d;Ez.u=Ez.d;function Fz(a,b){if(null==a)return!1;if(0===b.length)return!0;b=Kc(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 Gz(a,b,c){if(null==b||null==c)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 Hz(a,b){var c=b[0];if(b.some(function(e){return null==e}))return null;switch(a){case "+":for(a=1;a=e?Math.ceil(e-.5):Math.floor(e+.5);if(ec)throw Error("CAST result is out of range for integer type.");return e} function Oz(a,b,c){switch(typeof a){case "number":var e=a;break;case "boolean":e=a?1:0;break;case "string":if("inf"===a.toLowerCase()||"+inf"===a.toLowerCase()){e=Infinity;break}else if("-inf"===a.toLowerCase())e=-Infinity;else if("nan"===a.toLowerCase())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)&&"nan"!==a.toLowerCase())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(null!=b&&null!=c&&isFinite(e)&&(ec))throw Error("CAST result "+e+" is out of range for target type.");return e} function Pz(a){if("number"===typeof a){if(Infinity===a)return"inf";if(-Infinity===a)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function Qz(a,b){var c=Rz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Kc(Rf(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new Sz(a,k,b[f]))}} function Sz(a,b,c){this.O=a;this.N=b;this.v=c} Sz.prototype.call=function(){return this.apply($c.apply(0,arguments))};Sz.prototype.apply=function(a){var b=a;b=void 0===b?[]:b;var c=this.v.ua,e=this.v.wa;if(c&&b.lengthe)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.vb?this.v.vb.apply(null,a):this.v.ta.apply(null,a)};Sz.prototype.Na=function(a){return this.v.Na?this.v.Na.call(null,a):Mz(this.O,this.N,a)};var Rz=new function(){this.v=new Map};Qz("",{AVG:{vb:kq},COUNTIF:{vb:nq},SUM:{vb:lq},MIN:{vb:oq},MAX:{vb:pq},COUNT:{vb:mq},COUNT_DISTINCT:{vb:qq},NTH_QUANTILE:{vb:rq},VARIANCE:{vb:tq},STDDEV:{vb:uq},"HLL_COUNT.MERGE":{vb:vq},"HLL_COUNT.EXTRACT":{ua:1,wa:1,ta:function(){throw Error("HLL_COUNT.EXTRACT is not implemented on the client.");}},ABS:{ua:1,wa:1,ta:function(a){yz("ABS(X)","X",a);return null!=a?Math.abs(+a):null}},SIGN:{ua:1,wa:1,ta:function(a){yz("SIGN(X)","X",a);var b=Math.sign||function(c){c=+c;return 0===c||isNaN(c)?c:0Math.abs(a)&&-Infinity===b)return Infinity;if(1Math.abs(a)&&Infinity===b||-Infinity===a&&0>b)return 0;if(-Infinity===a&&0b)return 0;if(Infinity===a&&0b)return-Infinity;if(Infinity===a&&1a))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 null!=a?b(+a):null}},ATAN2:{ua:2,wa:2,ta:function(a,b){yz("ATAN(Y, X)","X",a);yz("ATAN(Y, X)","Y",b);return null==a||null==b?null:Math.atan2(+a,+b)}},REGEXP_MATCH:{ua:2,wa:2,ta:function(a,b){if("string"!==typeof a||"string"!==typeof b)return null;if(0==b.indexOf("(?i)")){b=b.substring(4);var c="i"}else 0==b.indexOf("(?is)")&&(b=b.substring(5),c="i");return RegExp(b,c).test(a)},qc:"REGEX"},ENCODE_URI_COMPONENT:{ua:1,wa:1,ta:function(a){return"string"!==typeof a?null:encodeURIComponent(a)}},FORMAT:{ua:2,wa:void 0,ta:function(a){return 2>arguments.length?null:Dz.apply(null,arguments)}},CONCAT:{ua:2,wa:void 0,ta:function(a){for(var b="",c=0;ca.length)throw Error("Expected at least one parameter for IN");return a[0]+" IN ("+a.slice(1).join(",")+")"},qc:"IN"},"NOT IN":{ua:1,ta:function(a){return Fz(a,$c.apply(1,arguments))},Na:function(a){if(1>a.length)throw Error("Expected at least one parameter for NOT IN");return a[0]+" NOT IN ("+a.slice(1).join(",")+")"},qc:"NOT_IN"},"IS NULL":{ua:1,wa:1,ta:function(a){return null==a},Na:function(a){return Kz("IS NULL",a)},qc:"IS_NULL"},"IS TRUE":{ua:1,wa:1,ta:function(a){if(null==a)return!1;if("boolean"!==typeof a)throw Error("Argument type mismatch in IS TRUE param1 is type "+typeof a+" but must be boolean.");return!0===a},Na:function(a){return Kz("IS TRUE",a)}},"IS FALSE":{ua:1,wa:1,ta:function(a){if(null==a)return!1;if("boolean"!==typeof a)throw Error("Argument type mismatch in IS FALSE param1 is type "+typeof a+" but must be boolean.");return!1===a},Na:function(a){return Kz("IS FALSE",a)}},BETWEEN:{ua:3,wa:3,ta:function(a,b,c){return null==a||typeof a!==typeof b||typeof a!==typeof c?!1:b<=a&&a<=c},Na:function(a){return"("+a[0]+" BETWEEN "+a[1]+" AND "+a[2]+")"},qc:"BETWEEN"},"NOT BETWEEN":{ua:3,wa:3,ta:function(a,b,c){return null==a||typeof a!==typeof b||typeof a!==typeof c?!1:b>a||a>c},Na:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},qc:"NOT_BETWEEN"},CAST:{ua:2,wa:2,ta:function(a,b){if(null==a)return null;switch(b.toUpperCase()){case "INT32":return Nz(a,-2147483648,2147483647);case "INT64":return Nz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Nz(a,0,1.8446744073709552E19);case "FLOAT":return Oz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Oz(a);case "BOOL":return Mr(a);case "STRING":return Pz(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Na:function(a){if(2!==a.length)throw Error("Expected two parameters for cast.");var b=a[1].replace(/"/g,"");return"CAST("+a[0]+" AS "+b+")"}},UNIX_MICROS:{ua:1,wa:1,ta:function(a){return a}},UNIX_MILLIS:{ua:1,wa:1,ta:function(a){return a}},TIMESTAMP_MICROS:{ua:1,wa:1,ta:function(a){return a}},TIMESTAMP_MILLIS:{ua:1,wa:1,ta:function(a){return 1E3*a}},TIMESTAMP_SECONDS:{ua:1,wa:1,ta:function(a){return 1E6*a}},TIMESTAMP:{ua:1,wa:2,ta:Tq},DATE:{ua:1,wa:2,ta:function(a,b){return Uq(a,"DAY",b)}},DATETIME:{ua:1,wa:1,ta:Tq},AND:{ua:2,ta:function(){return Iz("AND",$c.apply(0,arguments))},Na:function(a){return Jz(" AND ",a)}},OR:{ua:2,ta:function(){return Iz("OR",$c.apply(0,arguments))},Na:function(a){return Jz(" OR ",a)}},"+":{ua:2,ta:function(){return Hz("+",$c.apply(0,arguments))},Na:function(a){return Jz("+",a)}},"-":{ua:2,ta:function(){return Hz("-",$c.apply(0,arguments))},Na:function(a){return Jz("-",a)}},"*":{ua:2,ta:function(){return Hz("*",$c.apply(0,arguments))},Na:function(a){return Jz("*",a)}},"/":{ua:2,ta:function(){return Hz("/",$c.apply(0,arguments))},Na:function(a){return Jz("/",a)}},NOT:{ua:1,wa:1,ta:function(a){return null==a||"boolean"!==typeof a?null:!1===a},Na:function(a){if(1!==a.length)throw Error("Expected one parameter for NOT");return"(NOT "+a[0]+")"}},EQUAL:{ua:2,wa:2,ta:function(a,b){return Gz("EQUAL",a,b)},Na:function(a){return Jz("=",a)},qc:"="},NOT_EQUAL:{ua:2,wa:2,ta:function(a,b){return Gz("NOT_EQUAL",a,b)},Na:function(a){return Jz("!=",a)},qc:"!="},LESS:{ua:2,wa:2,ta:function(a,b){return Gz("LESS",a,b)},Na:function(a){return Jz("<",a)},qc:"<"},LESS_OR_EQUAL:{ua:2,wa:2,ta:function(a,b){return Gz("LESS_OR_EQUAL",a,b)},Na:function(a){return Jz("<=",a)},qc:"<="},GREATER:{ua:2,wa:2,ta:function(a,b){return Gz("GREATER",a,b)},Na:function(a){return Jz(">",a)},qc:">"},GREATER_OR_EQUAL:{ua:2,wa:2,ta:function(a,b){return Gz("GREATER_OR_EQUAL",a,b)},Na:function(a){return Jz(">=",a)},qc:">="},NATIVE_EXPR:{ua:1,wa:1,ta:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{ua:1,wa:1,vb:function(){throw Error("NATIVE_AGGREGATE not yet supported.");}},TO_JSON_STRING:{ua:1,wa:2,ta:function(a,b){return b?JSON.stringify(a,null,2):JSON.stringify(a)}}});Qz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{vb:sq},EXTRACT_POINT_DOUBLE:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{vb:sq}});function Tz(){this.ka={};this.va={};this.na={};this.ha=[];this.ma={};this.$=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=Tz.prototype;w.Mj=function(a,b){this.O.push({zf:a,order:b?b:"ASC"});return this};w.tl=function(){this.O=[];return this};w.Hf=function(){return this.O};w.ue=function(a){this.O=a.slice()};w.Cn=function(a,b,c,e){a={zf:a,measure:c,Sq:e||""};"function"===typeof b?a.vb=b:a.wq=b;this.ya.push(a);return this};w.Dn=function(a){this.N=a;return this};w.hl=function(a){Array.isArray(a)?ge(a,function(b){Uz(this,b,{Cd:"decimal",kf:null})},this):Uz(this,a,{Cd:"decimal",kf:null});return this};w.fl=function(a){Array.isArray(a)?ge(a,function(b){Uz(this,b,{Cd:"boolean",kf:null})},this):Uz(this,a,{Cd:"boolean",kf:null});return this};w.uj=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Cd)a=a.Cd,b=!!a&&"number"===wr[a].bc;return b?!0:!1};function Uz(a,b,c){a.v[b]?(c.Cd&&(a.v[b].Cd=c.Cd),c.kf&&(a.v[b].kf=c.kf)):a.v[b]=c} w.al=function(a,b){this.ka[a]=b;return this};w.zl=function(a,b){this.va[a]=b;return this};w.Al=function(a,b){this.na[a]=b;delete this.ma[a];return this};w.Zm=function(a){return this.na[a]||this.ma[a]||this.ka[a]||this.N===a?!0:0<=ce(this.ha,a)};w.on=function(a){if(null==a||void 0==a)return this;"string"===typeof a&&(a=[a]);for(var b=0;b'):c&&"string"===typeof f&&(f=Sh(f));return f} function gA(a,b){var c=b.getExpression().trim().replace(/ +/," ").trim().split(" ");if(2!==c.length)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=Sf(a.v[a.v.length-1],b.split("."));if(null==a)return null;if(!md(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var n=f;(Sf(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 hA(a){this.v=a;this.O=this.N=-1;this.$=0} hA.prototype.next=function(){this.N++;var a=this.v[this.N];"\n"===a?(this.$++,this.O=-1):this.O++;return a};hA.prototype.index=function(){return this.N};function iA(a,b){if(0>b)throw Error("CharacterIterator can only skip forward");for(var c=0;c]*?>","gi"),close:new RegExp("]*?>","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=0<=f.toLowerCase().indexOf("'+k:f+'
'+k)&&wn(a,b,t,e,void 0),y=zj(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&wn(a,b,f,e,void 0),f=a);y=void 0;for(E=0;Ea.Ia-a.Pa?a.show():lB(a,b))})} function lB(a,b){a.ka||(PA(a.na,Math.max(.25*a.N,50)),a.ka=Qp(a.na,"tick",ud(a.An,a,b)),a.na.start())} w.An=function(a){a.Hd("hover").Id()?Date.now()-this.Ia>this.N&&this.show():iB(this)};function iB(a){a.na.stop();Zp(a.ka);a.ka=null} w.qd=function(a,b){return this.va(a,b)};gB.prototype.setHovercardContainerStyle=gB.prototype.bo;gB.prototype.hide=gB.prototype.Ih;gB.prototype.followClosestSeries=gB.prototype.hj;gB.prototype.followTopMostSeries=gB.prototype.Il;gB.prototype.followNamedSeries=gB.prototype.Hl;gB.prototype.getPlacer=gB.prototype.Jm;gB.prototype.setPlacer=gB.prototype.ri;gB.prototype.placer=gB.prototype.Gn;gB.prototype.getContentRenderer=gB.prototype.Ed;gB.prototype.setContentRenderer=gB.prototype.yd;gB.prototype.contentRenderer=gB.prototype.ug;gB.prototype.getShowDelayMs=gB.prototype.Om;gB.prototype.setShowDelayMs=gB.prototype.Ek;gB.prototype.showDelayMs=gB.prototype.qo;gB.prototype.getTransitionMs=gB.prototype.Wm;gB.prototype.setTransitionMs=gB.prototype.Hk;gB.prototype.transitionMs=gB.prototype.xe;gB.prototype.getClassName=gB.prototype.Vl;gB.prototype.setClassName=gB.prototype.fk;gB.prototype.className=gB.prototype.className;xd("aplos.chart.behavior.Hovercard",gB);function mB(){this.ha=this.na=this.ma=this.v=this.O=this.N=this.ka=this.$=null} w=mB.prototype;w.yo=function(a){this.$=a;return this};w.zo=function(a){this.ka=a;return this};w.wo=function(a){this.N=a;return this};w.xo=function(a){this.O=a;return this};w.$d=function(a){this.v=a;return this};w.wl=function(a){this.ma=a;return this};w.container=function(a){this.ha=a;return this};w.Ug=function(a){this.na=a;return this};function nB(a){var b=AA?new yA:new BA;a.ma&&b.ue(a.ma);a.$&&b.ff(a.$);a.N&&b.ef(a.N);a.O&&b.Zf(a.O);a.ka&&b.dg(a.ka);a.v&&b.Xf(a.v);return b} w.Ti=function(){var a=(new gB).hj();a.yd(nB(this));var b=a.ri,c=new XA;null!=this.ha&&c.ik(this.ha);null!=this.na&&c.Ug(this.na);b.call(a,c);return a};w.nl=function(){var a=new WA;a.ug(nB(this));return a};mB.prototype.buildPieCard=mB.prototype.nl;mB.prototype.buildCard=mB.prototype.Ti;mB.prototype.positionOptions=mB.prototype.Ug;mB.prototype.container=mB.prototype.container;mB.prototype.contentRendererOrdering=mB.prototype.wl;mB.prototype.conversionFunctionMap=mB.prototype.$d;mB.prototype.templateFooter=mB.prototype.xo;mB.prototype.templateBody=mB.prototype.wo;mB.prototype.templateSeriesCategory=mB.prototype.zo;mB.prototype.templateHeader=mB.prototype.yo;xd("aplos.chart.behavior.hovercardutils.Builder",mB);function oB(a,b,c,e){var f=new mB;f.$=a?a:null;f.N=b?b:null;f.O=c?c:null;f.v=e?e:null;return f} xd("aplos.chart.behavior.hovercardutils.Builder.fromTemplate",oB);var pB={END:0,RIGHT:1,TOP:2,START:3,LEFT:4,BOTTOM:5,BOTTOM_START:6,BOTTOM_END:7,BOTTOM_LEFT:8,BOTTOM_RIGHT:9,BOTTOM_FULL_START:10,BOTTOM_FULL_END:11,BOTTOM_FULL_LEFT:12,BOTTOM_FULL_RIGHT:13,INSET:14,TOP_START:15,TOP_END:16,TOP_LEFT:17,TOP_RIGHT:18,TOP_FULL_START:19,TOP_FULL_END:20,TOP_FULL_LEFT:21,TOP_FULL_RIGHT:22};xd("aplos.chart.behavior.LegendPosition",pB);function qB(){this.v=0;this.$=null;this.N=!1} qB.prototype.position=function(a){if(!arguments.length||void 0===a)return this.v;this.v=a;return this};qB.prototype.O=function(a){if(!arguments.length||void 0===a)return this.$;this.$=a;return this};qB.prototype.Ld=function(a){if(!arguments.length||void 0===a)return this.N;this.N=a;return this};function rB(a){var b=a.v;a=a.N;3===b&&(b=a?1:4);0===b&&(b=a?4:1);15===b&&(b=a?18:17);16===b&&(b=a?17:18);19===b&&(b=a?22:21);20===b&&(b=a?21:22);6===b&&(b=a?9:8);7===b&&(b=a?8:9);10===b&&(b=a?13:12);11===b&&(b=a?12:13);return b} xd("aplos.chart.behavior.legend.LegendLayoutParams",qB);var sB={kj:function(a,b,c){return 14===rB(c)?b.wb():a.bottom-a.top},lj:function(a,b,c){return 14===rB(c)?b.Za():a.right-a.left},In:function(a,b,c,e,f){f=sB.Bm(a,b,c,e,f);e.style("top",sB.Cm(a,b,c)+"px").style("left",f+"px")},Bm:function(a,b,c,e,f){var k=void 0!==f?f:0;void 0!==f||e.empty()||(k=e.node().offsetWidth);switch(rB(c)){case 14:return c.Ld()?a.Kb()+a.Za()-k:a.Kb();case 4:case 1:return c.Ld()&&!e.empty()?b.right-k:b.left;case 17:case 21:case 8:case 12:return b.left;case 18:case 22:case 9:case 13:return b.right-k;default:return a=sB.lj(b,a,c),0=k?sB.Kk(f,n,c.height-k):f=n;var t=[];f.forEach(function(y){t.push({width:e,height:y})});return t},Pq:function(a,b,c){for(var e=c.height,f=[],k=0,n=[],r=0;r=k?sB.Kk(f,n,c.width-k):f=n;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Kk:function(a,b,c){for(var e=0;ec&&f.style("height",c+"px");a.ma||k.scrollHeight<=c&&f.style("overflow-y",null);e=sB.lj(a.O,b,a.v);if(Ee?n.style("width",r+"px"):Math.ceil(n.node().getBoundingClientRect().width)>r?n.style("width",r+"px"):n.style("width","auto");c=Math.ceil(k.getBoundingClientRect().width);0e?(f.style("overflow-x","auto"),f.style("width",Math.min(e,c)+"px")):(f.style("overflow-x"),f.style("width","auto"));AB(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function BB(a,b){var c=b.node().getBoundingClientRect(),e=c.top;a=(a.$?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,Ko:c}} function xB(a,b,c,e){var f=b.Ja.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(yB(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.Ge(b,e);a.update(b,e,0);var k=BB(a,c),n=e.empty()?0:e.node().getBoundingClientRect().top,r=sB.kj(a.O,b,a.v)-(n-k.top)-k.Ko,t=[[]],y=0,E=n;e.each(wd(function(ma,na){var ta=this.getBoundingClientRect(),ua=ta.top;ta=ua-E+ta.height;0r||t[y].length===ma.Mg)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function AB(a,b){var c=b.Ja.select(".aplos-legend");sB.In(b,a.O,a.v,c);c.attr("data-position",ud(function(){var e=Tf(pB,function(f){return rB(this.v)===f},this);return null!=e?e.toLowerCase():null},a))} w.Ge=function(a,b){var c=this.Fj(a);return b.enter().append("tr").classed("aplos-legend-entry",!0).attr("tabindex",c&&this.ya?"0":null).on("click.legend",c).on("keypress.legend",this.ya?c:null).on("mouseover.legend",this.Hj(a)).on("mouseout.legend",this.Gj(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){CB(this,b);b.empty()||zj(b.node().parentElement).select(".aplos-legend-box-cell").style("width",this.na.width+"px");var c=0;b.select(".aplos-legend-value").each(function(){c=Math.max(c,this.offsetWidth)});b.filter(function(e,f){return 0===f}).select(".aplos-legend-value-cell").style("width",c+"px")};function CB(a,b){var c=a.Ia||In();c["svg-sample"]||(c["svg-sample"]=a.La.v(a.na));b.each(wd(function(e,f){e=xn(f,"
"+(f.categorySeparator?e.yf:e.rh)+"
",c)[0];for(e=zj(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function zB(a){a.each(function(){zj(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.bl=function(a,b){b.Fe(new DB(a,this))};function yB(a){return null!=a.yf?"aplos-legend-table-category":"aplos-legend-table"} function DB(a,b){this.N=a;this.v=b} w=DB.prototype;w.Bh=function(){var a={position:EB(this),Pf:30},b=this.v.Cg();if(null!=b)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};w.hg=function(a){uB(this.v,this.N,this.v.rb,this.v.Ya,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Ja.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},ob:{width:0,height:0},yc:!0};var c=EB(this),e=Lf(a,this.v.Qe(),c);if(null!=e)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:1t&&(t=y.size())});c=this.N.Ja.select(".aplos-legend-title");c=Dj(c.node());0a.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},ob:{width:k,height:e},yc:!1}};w.Dh=function(){return 0};w.Eh=function(){return 0};w.Wg=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Ja.select(".aplos-legend").node();b!=a.offsetWidth&&AB(this.v,this.N)};w.Ef=function(){return this.v.O};function EB(a){switch(rB(a.v.v)){case pB.LEFT:return 5;case pB.RIGHT:return 6;case pB.TOP:case pB.TOP_FULL_LEFT:case pB.TOP_FULL_RIGHT:return 2;case pB.TOP_LEFT:case pB.TOP_RIGHT:return 1;case pB.BOTTOM:case pB.BOTTOM_FULL_LEFT:case pB.BOTTOM_FULL_RIGHT:return 4;case pB.BOTTOM_LEFT:case pB.BOTTOM_RIGHT:return 3;default:return 0}} ;function FB(){this.N=new sx;this.v=new GB("",void 0);this.v.next=this.v.v=this.v} w=FB.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 GB(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 HB(this,this.v.next)};w.pop=function(){return HB(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function IB(a){return a.map(function(b){return b})} w.contains=function(a){return JB(this,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};function JB(a,b){for(var c=a.v.next;c!=a.v;c=c.next)if(b.call(void 0,c.value,c.key,a))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 HB(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function GB(a,b){this.key=a;this.value=b} GB.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};xd("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function KB(a){tB.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.ka={};this.Sa=!1;this.N={};this.ha=[];this.Pa=[];this.Ma="series_asc";this.va=1} zd(KB,tB);xd("aplos.chart.behavior.SeriesLegend",KB);var LB=null,MB=null;KB.prototype.Jo=function(a){return null!=a?(this.Ca=a,a||(this.ka={}),this):this.Ca};KB.prototype.valuesFromNearestDatum=KB.prototype.Jo;KB.prototype.bn=function(a){if(null==a)return this.Sa;this.Sa=!!a;return this};KB.prototype.hideEmptySeries=KB.prototype.bn;KB.prototype.en=function(a){this.N[a]=!0;return this};KB.prototype.hideSeries=KB.prototype.en;KB.prototype.Tg=function(a){if(null==a)return this.Ma;this.Ma=a;return this};KB.prototype.ordering=KB.prototype.Tg;KB.prototype.Xi=function(a){if(null==a)return this.va;this.va=a;return this};KB.prototype.clickHandling=KB.prototype.Xi;w=KB.prototype;w.Bc=function(a){var b=this;KB.Pb.Bc.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.ka={},a.df())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Gf(),e=0;ethis.N)a.Hd("hover").deselectAll(),PB(this);else{var e=[c];switch(this.$){case 0:void 0!==c.domain&&(e=a.Ff(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.Hd("hover").Zg(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));RB(this,a)};function RB(a,b){if(!a.v){var c="selectnearest_"+Date.now();zj(a.ha).on("mouseout."+c,function(){var e=b.ab.select(".mouseCapturePane").node(),f;if(f=ej&&ej.target)e?(f=fj(e),e=e.getBoundingClientRect(),f=0<=f[0]&&f[0]h?1:l>=h?0:NaN} function c(l){1===l.length&&(l=e(l));return{left:function(h,p,u,x){null==u&&(u=0);null==x&&(x=h.length);for(;u>>1;0>l(h[z],p)?u=z+1:x=z}return u},right:function(h,p,u,x){null==u&&(u=0);null==x&&(x=h.length);for(;u>>1;0(x=arguments.length)?(h=l,l=0,1):3>x?1:+p;for(var u=-1,x=Math.max(0,Math.ceil((h-l)/p))|0,z=Array(x);++u=vo?10:h>=wo?5:h>=xo?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=vo?10:h>=wo?5:h>=xo?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>=vo?p*=10:u>=wo?p*=5:u>=xo&&(p*=2);return hh?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);null==p?this.removeAttribute(l):this.setAttribute(l,p)}} function Gb(l,h){return function(){var p=h.apply(this,arguments);null==p?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);null==u?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);null==p?delete this[l]:this[l]=p}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Oi=l;this.Yd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,h){l=fb(l);for(var p=-1,u=h.length;++p>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=ZB.exec(l))?zb(parseInt(h[1],16)):(h=$B.exec(l))?new La(h[1],h[2],h[3],1):(h=aC.exec(l))?new La(255*h[1]/100,255*h[2]/100,255*h[3]/100,1):(h=bC.exec(l))?Ab(h[1],h[2],h[3],h[4]):(h=cC.exec(l))?Ab(255*h[1]/100,255*h[2]/100,255*h[3]/100,h[4]):(h=dC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,1):(h=eC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,h[4]):Yu.hasOwnProperty(l)?zb(Yu[l]):"transparent"===l?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){0>=u&&(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 1===arguments.length?hb(l):new La(l,h,p,null==u?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(16>l?"0":"")+l.toString(16)} function Bb(l,h,p,u){0>=u?l=h=p=NaN:0>=p||1<=p?l=h=NaN:0>=h&&(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+6*(poa?z+x:2-z-x,A*=60):la=0oa?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,h,p,u){return 1===arguments.length?hc(l):new Ua(l,h,p,null==u?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 255*(60>l?h+(p-h)*l/60:180>l?p:240>l?h+(p-h)*(240-l)/60:h)} 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*Zu;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>fC?Math.pow(l,1/3):l/$u+av} function nb(l){return l>zh?l*l*l:$u*(l-av)} function ob(l){return 255*(.0031308>=l?12.92*l:1.055*Math.pow(l,1/2.4)-.055)} function pb(l){return.04045>=(l/=255)?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(0===l.a&&0===l.b)return new rb(NaN,0,l.l,l.opacity);var h=Math.atan2(l.b,l.a)*bv;return new rb(0>h?h+360:h,Math.sqrt(l.a*l.a+l.b*l.b),l.l,l.opacity)} function qb(l,h,p,u){return 1===arguments.length?ic(l):new rb(l,h,p,null==u?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(1===arguments.length){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=(cv*A+x.r/255*-1.7884503806-3.5172982438*z)/(cv+-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)*bv-120:NaN;x=new sb(0>A?A+360:A,z,la,x.opacity)}}else x=new sb(l,h,p,null==u?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,180p?p-360*Math.round(p/360):p):pc(isNaN(l)?h:l)} function Ac(l){return 1===(l=+l)?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;Ap&&(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:mc(u,x)})),p=zo.lastIndex;pla.length?oa[0]?Dc(oa[0].x):Cc(h):(h=oa.length,function(ra){for(var qa=0,pa;qal.wf&&(p=l.wf);var u=l;l=l.Rc}else h=l.Rc,l.Rc=null,l=u?u.Rc=h:Tk=h;Oi=u;vf(p);Eg=0}} function Ye(){var l=Mi.now(),h=l-Sk;1E3l&&(Ni=setTimeout(Bi,l-Mi.now()-Rk)),Pi&&(Pi=clearInterval(Pi))):(Pi||(Sk=Mi.now(),Pi=setInterval(Ye,1E3)),Ah=1,ev(Bi)))} function Ci(l,h,p){var u=new Bg;h=null==h?0:+h;u.restart(function(x){u.stop();l(x+h)},h,p);return u} function Ee(l,h,p,u,x,z){var A=l.Bd;if(!A)l.Bd={};else if(p in A)return;Ek(l,p,{name:h,index:u,group:x,on:gC,tween:hC,time:z.time,delay:z.delay,duration:z.duration,ease:z.ease,timer:null,state:0})} function oe(l,h){l=ie(l,h);if(0=qa?Ha=!0:10===(tc=A.charCodeAt(pa++))?jc=!0:13===tc&&(jc=!0,10===A.charCodeAt(pa)&&++pa);return A.slice(Uc+1,Pc-1).replace(/""/g,'"')}for(;pa=qa,jc=!1;10===A.charCodeAt(qa-1)&&--qa;for(13===A.charCodeAt(qa-1)&&--qa;(Da=oa())!==Co;){for(var eb=[];Da!==hv&&Da!==Co;)eb.push(Da),Da=oa();la&&null==(eb=la(eb,wa++))||ra.push(eb)}return ra} function p(A){return A.map(u).join(l)} function u(A){return null==A?"":x.test(A+="")?'"'+A.replace(/"/g,'""')+'"':A} var x=new RegExp('["'+l+"\n\r]"),z=l.charCodeAt(0);return{parse:function(A,la){var oa,ra;A=h(A,function(qa,pa){if(oa)return oa(qa,pa-1);ra=qa;oa=la?mC(qa,la):fv(qa)});A.columns=ra||[];return A},parseRows:h,format:function(A,la){null==la&&(la=nC(A));return[la.map(u).join(l)].concat(A.map(function(oa){return la.map(function(ra){return u(oa[ra])}).join(l)})).join("\n")},formatRows:function(A){return A.map(p).join("\n")}}} function iv(l){if(!l.ok)throw Error(l.status+" "+l.statusText);return l.text()} function jv(l){return function(h,p,u){2===arguments.length&&"function"===typeof p&&(u=p,p=void 0);return fetch(h,p).then(iv).then(function(x){return l(x,u)})}} function Do(l){return function(h,p){return fetch(h,p).then(iv).then(function(u){return(new DOMParser).parseFromString(u,l)})}} function kv(l,h,p,u){if(isNaN(h)||isNaN(p))return l;var x,z=l.tb;u={data:u};var A=l.Qa,la=l.Ra,oa=l.Aa,ra=l.Ea,qa,pa,wa,Da,Ha;if(!z)return l.tb=u,l;for(;z.length;)if((wa=h>=(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.yb.call(null,z.data);var eb=+l.Db.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 ee(l,h,p,u,x){this.node=l;this.x0=h;this.y0=p;this.x1=u;this.y1=x} function oC(l){return l[0]} function pC(l){return l[1]} function Eo(l,h,p,u,x,z){this.yb=l;this.Db=h;this.Qa=p;this.Ra=u;this.Aa=x;this.Ea=z;this.tb=void 0} function lv(l){for(var h={data:l.data},p=h;l=l.next;)p=p.next={data:l.data};return h} function Yk(l,h){if(0>(h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e")))return null;var p=l.slice(0,h);return[1u&&(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 rC(l){return function(h){return h.replace(/[0-9]/g,function(p){return l[+p]})}} function Zk(l){return new Fo(l)} function Fo(l){if(!(h=sC.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 mv(l,h){h=Yk(l,h);if(!h)return l+"";l=h[0];h=h[1];return 0>h?"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 nv(l){return l} function tC(l){function h(la){function oa(Ma){var Rc=tc,Ia=Oc,Ta;if("c"===Uc)Ia=bd(Ma)+Ia,Ma="";else{Ma=+Ma;var Ga=0>Ma;Ma=bd(Math.abs(Ma),eb);if(Pc){var Na=Ma.length;var Yc=1,yd=-1,Cd;a:for(;YcTa||57>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=Zk(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,Uc=la.type;"n"===Uc?(jc=!0,Uc="g"):qv[Uc]||(null==eb&&(eb=12),Pc=!0,Uc="g");if(Da||"0"===ra&&"="===qa)Da=!0,ra="0",qa="=";var tc="$"===wa?u[0]:"#"===wa&&/[boxX]/.test(Uc)?"0"+Uc.toLowerCase():"",Oc="$"===wa?u[1]:/[%p]/.test(Uc)?A:"",bd=qv[Uc],Qc=/[defgprs%]/.test(Uc);eb=null==eb?6:/[gprs]/.test(Uc)?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?qC(l.grouping,l.thousands):nv,u=l.currency,x=l.decimal,z=l.numerals?rC(l.numerals):nv,A=l.percent||"%";return{format:h,formatPrefix:function(la,oa){var ra=h((la=Zk(la),la.type="f",la));la=3*Math.max(-8,Math.min(8,Math.floor(Bh(oa)/3)));var qa=Math.pow(10,-la),pa=ov[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function Ge(){this.reset()} function rv(l,h,p){var u=l.s=h+p,x=u-h;l.t=h-(u-x)+(p-x)} function $k(l){return 1l?-ye:Math.asin(l)} function uC(){} function sv(l){var h=l[0];l=l[1];var p=ze(l);return[p*ze(h),p*$d(h),$d(l)]} function tv(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 uv(l){var h=al(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function vC(){var l=[],h;return{point:function(p,u){h.push([p,u])},lineStart:function(){l.push(h=[])},lineEnd:uC,Lq:function(){1=(wa=pa.length-1))){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(1E-6>$f(jc[0]-Ha[0])&&1E-6>$f(jc[1]-Ha[1])){x.lineStart();for(la=0;la(l=l.x)[0]?l[1]-ye-1E-6:ye-l[1])-(0>(h=h.x)[0]?h[1]-ye-1E-6:ye-h[1])} function Go(){} function wv(l){return function(h,p){var u=ze(h),x=ze(p);u=l(u*x);return[u*x*$d(h),u*$d(p)]}} function Qi(l){return function(h,p){var u=al(h*h+p*p),x=l(u),z=$d(x);x=ze(x);return[xv(h*z,u*x),$k(u&&p*z/u)]}} function zC(l){var h=0,p=l.children,u=p&&p.length;if(u)for(;0<=--u;)h+=p[u].value;else h=1;l.value=h} function yv(l,h){var p=new Ri(l);l=+l.value&&(p.value=l.value);var u,x=[p],z,A,la,oa;for(null==h&&(h=AC);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;0<=la;--la)x.push(z=u.children[la]=new Ri(A[la])),z.parent=u,z.depth=u.depth+1;return p.eachBefore(BC)} function AC(l){return l.children} function CC(l){l.data=l.data.data} function BC(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 Ho(l){function h(z){var A=z+"",la=p.get(A);if(!la){if(x!==zv)return x;p.set(A,la=u.push(z))}return l[(la-1)%l.length]} var p=Wk(),u=[],x=zv;l=null==l?[]:cl.call(l);h.domain=function(z){if(!arguments.length)return u.slice();u=[];p=Wk();for(var A=-1,la=z.length,oa,ra;++A=p?1:u(x)}}} function FC(l){return function(h,p){var u=l(h=+h,p=+p);return function(x){return 0>=x?h:1<=x?p:u(x)}}} function GC(l,h,p,u){var x=l[0];l=l[1];var z=h[0];h=h[1];loa&&(A=Math.ceil(A*oa)/oa,la=Math.floor(la*oa)/oa,oa=n(A,la,p));0oa&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,h(u));return l};return l} function Ev(){var l=Lo(Jo,mc);l.copy=function(){return Ko(l,Ev())};return JC(l)} function Fv(l,h){l=l.slice();var p=0,u=l.length-1,x=l[p],z=l[u];if(zl?function(p){return-Math.pow(-h,p)*Math.pow(-l,1-p)}:function(p){return Math.pow(h,p)*Math.pow(l,1-p)}} function MC(l){return isFinite(l)?+("1e"+l):0>l?0:l} function Gv(l){return 10===l?MC:l===Math.E?Math.exp:function(h){return Math.pow(l,h)}} function Hv(l){return l===Math.E?Math.log:10===l&&Math.log10||2===l&&Math.log2||(l=Math.log(l),function(h){return Math.log(h)/l})} function Iv(l){return function(h){return-l(-h)}} function Jv(){function l(){x=Hv(u);z=Gv(u);0>p()[0]&&(x=Iv(x),z=Iv(z));return h} var h=Lo(KC,LC).domain([1,10]),p=h.domain,u=10,x=Hv(10),z=Gv(10);h.base=function(A){return arguments.length?(u=+A,l()):u};h.domain=function(A){return arguments.length?(p(A),l()):p()};h.ticks=function(A){var la=p(),oa=la[0];la=la[la.length-1];var ra;if(ra=lala)break;A.push(Ha)}}}else for(;qala)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){null==la&&(la=10===u?".0e":",");"function"!==typeof la&&(la=ai(la));if(Infinity===A)return la;null==A&&(A=10);var oa=Math.max(1,u*A/h.ticks().length);return function(ra){var qa=ra/z(Math.round(x(ra)));qa*u=A)for(;l(A),!z(A);)A.setTime(A-1)},function(A,la){if(A>=A)if(0>la)for(;0>=++la;)for(;h(A,-1),!z(A););else for(;0<=--la;)for(;h(A,1),!z(A););})};p&&(x.count=function(z,A){Mo.setTime(+z);No.setTime(+A);l(Mo);l(No);return Math.floor(p(Mo,No))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&0l.y){var h=new Date(-1,l.m,l.d,l.kd,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.kd,l.M,l.S,l.L)} function dl(l){if(0<=l.y&&100>l.y){var h=new Date(Date.UTC(-1,l.m,l.d,l.kd,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.kd,l.M,l.S,l.L))} function Si(l){return{y:l,m:0,d:1,kd:0,M:0,S:0,L:0}} function OC(l){function h(Ia,Ta){return function(Ga){var Na=[],Yc=-1,yd=0,Cd=Ia.length,pd,re;for(Ga instanceof Date||(Ga=new Date(+Ga));++YcNa.jg||53=Cd)return-1;pd=Ta.charCodeAt(Yc++);if(37===pd){if(pd=Ta.charAt(Yc++),pd=Rc[pd in Kv?Ta.charAt(Yc++):pd],!pd||0>(Na=pd(Ia,Ga,Na)))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),Uc=Ti(qa),tc=Ui(qa),Oc=Ti(pa),bd=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:Mv,e:Mv,f:PC,H:QC,I:RC,j:SC,L:Nv,m:TC,M:UC,p:function(Ia){return la[+(12<=Ia.getHours())]},Q:Ov,s:Pv,S:VC,u:WC,U:XC,V:YC,w:ZC,W:$C,x:null,X:null,y:aD,Y:bD,Z:cD,"%":Qv},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:Rv,e:Rv,f:dD,H:eD,I:fD,j:gD,L:Sv,m:hD,M:iD,p:function(Ia){return la[+(12<=Ia.getUTCHours())]},Q:Ov,s:Pv,S:jD,u:kD,U:lD,V:mD,w:nD,W:oD,x:null,X:null,y:pD,Y:qD,Z:rD,"%":Qv},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=bd[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},B:function(Ia,Ta,Ga){return(Ta=Uc.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:Tv,e:Tv,f:sD,H:Uv,I:Uv,j:tD,L:uD,m:vD,M:wD,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:xD,s:yD,S:zD,u:AD,U:BD,V:CD,w:DD,W:ED,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:FD,Y:GD,Z:HD,"%":ID};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+="",NC);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,dl);Ta.toString=function(){return Ia};return Ta}}} function sd(l,h,p){var u=0>l?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x=l?-fl:Math.asin(l)} function QD(l){return l.innerRadius} function RD(l){return l.outerRadius} function SD(l){return l.startAngle} function TD(l){return l.endAngle} function UD(l){return l&&l.padAngle} function gl(l,h,p,u,x,z,A){var la=l-p,oa=h-u;A=(A?z:-z)/Dh(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=(0>l?-1:1)*Dh(VD(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,hd:-oa,jd:-la,Ud:ra*(x/z-1),Vd:qa*(x/z-1)}} function Yv(l){this.Fa=l} function hl(l){return new Yv(l)} function Zv(l){return l[0]} function $v(l){return l[1]} function aw(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;null==x&&(A=z(wa=Uk()));for(oa=0;oa<=ra;++oa)!(oal?1:h>=l?0:NaN} function XD(l){return l} function bw(l){this.Be=l} function cw(l,h,p){l.Fa.bezierCurveTo((2*l.Qa+l.Aa)/3,(2*l.Ra+l.Ea)/3,(l.Qa+2*l.Aa)/3,(l.Ra+2*l.Ea)/3,(l.Qa+4*l.Aa+h)/6,(l.Ra+4*l.Ea+p)/6)} function dw(l){this.Fa=l} function ew(l,h,p){l.Fa.bezierCurveTo(l.Aa+l.lg*(l.De-l.Qa),l.Ea+l.lg*(l.Ee-l.Ra),l.De+l.lg*(l.Aa-h),l.Ee+l.lg*(l.Ea-p),l.De,l.Ee)} function fw(l,h){this.Fa=l;this.lg=(1-h)/6} function gw(l,h,p){var u=l.Aa-l.Qa;h-=l.Aa;var x=(l.Ea-l.Ra)/(u||0>h&&-0);l=(p-l.Ea)/(h||0>u&&-0);return((0>x?-1:1)+(0>l?-1:1))*Math.min(Math.abs(x),Math.abs(l),.5*Math.abs((x*h+l*u)/(u+h)))||0} function hw(l,h){var p=l.Aa-l.Qa;return p?(3*(l.Ea-l.Ra)/p-h)/2:h} function To(l,h,p){var u=l.Qa,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 il(l){this.Fa=l} function iw(l){this.Fa=new jw(l)} function jw(l){this.Fa=l} function kw(l){this.Fa=l} function lw(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;harguments.length)for(;++zthis.Yd.indexOf(l)&&(this.Yd.push(l),this.Oi.setAttribute("class",this.Yd.join(" ")))},remove:function(l){l=this.Yd.indexOf(l);0<=l&&(this.Yd.splice(l,1),this.Oi.setAttribute("class",this.Yd.join(" ")))},contains:function(l){return 0<=this.Yd.indexOf(l)}};var Wu={};ej=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(Wu={mouseenter:"mouseover",mouseleave:"mouseout"}));var Xu=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){"function"!==typeof l&&(l=ya(l));for(var h=this.kb,p=h.length,u=Array(p),x=0;x=pa&&(pa=qa+1);!(Pc=eb[pa])&&++paarguments.length){var u=this.node();return p.local?u.getAttributeNS(p.space,p.local):u.getAttribute(p)}return this.each((null==h?p.local?Wa:Qa:"function"===typeof h?p.local?Gb:Fb:p.local?Eb:Db)(p,h))},style:function(l,h,p){return 1arguments.length){for(var u=fb(this.node()),x=-1,z=p.length;++xarguments.length){var A=this.node().__on;if(A)for(var la=0,oa=A.length,ra;la=this.r&&0<=this.g&&255>=this.g&&0<=this.b&&255>=this.b&&0<=this.opacity&&1>=this.opacity},hex:function(){return"#"+ib(this.r)+ib(this.g)+ib(this.b)},toString:function(){var l=this.opacity;l=isNaN(l)?1:Math.max(0,Math.min(1,l));return(1===l?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===l?")":", "+l+")")}}));ab(Ua,jb,bb(Xa,{brighter:function(l){l=null==l?Eh:Math.pow(Eh,l);return new Ua(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=null==l?.7:Math.pow(.7,l);return new Ua(this.h,this.s,this.l*l,this.opacity)},rgb:function(){var l=this.h%360+360*(0>this.h),h=this.l,p=h+(.5>h?h:1-h)*(isNaN(l)||isNaN(this.s)?0:this.s);h=2*h-p;return new La(kb(240<=l?l-240:l+120,h,p),kb(l,h,p),kb(120>l?l+240:l-120,h,p),this.opacity)},displayable:function(){return(0<=this.s&&1>=this.s||isNaN(this.s))&&0<=this.l&&1>=this.l&&0<=this.opacity&&1>=this.opacity}}));var Zu=Math.PI/180,bv=180/Math.PI,av=4/29,zh=6/29,$u=3*zh*zh,fC=zh*zh*zh;ab(Va,function(l,h,p,u){return 1===arguments.length?lb(l):new Va(l,h,p,null==u?1:u)},bb(Xa,{brighter:function(l){return new Va(this.l+18*(null==l?1:l),this.a,this.b,this.opacity)},darker:function(l){return new Va(this.l-18*(null==l?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*(null==l?1:l),this.opacity)},darker:function(l){return new rb(this.h,this.c,this.l-18*(null==l?1:l),this.opacity)},rgb:function(){return lb(this).rgb()}}));var cv=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=null==l?Eh:Math.pow(Eh,l);return new sb(this.h,this.s,this.l*l,this.opacity)},darker:function(l){l=null==l?.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)*Zu,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*p*u),this.opacity)}}));var Qk=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),PD=Gc(function(h){var p=h.length-1;return function(u){var x=0>=u?u=0:1<=u?(u=1,p-1):Math.floor(u*p),z=h[x],A=h[x+1];return lc((u-x/p)*p,0(u%=1)?++u:u)*p);return lc((u-x/p)*p,h[(x+p-1)%p],h[x%p],h[(x+1)%p],h[(x+2)%p])}});var yo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,zo=new RegExp(yo.source,"g"),dv=180/Math.PI,Uo={Di:0,Ei:0,rotate:0,skewX:0,Wh:1,Xh:1},Xi,Vo,nw,kl,ZD=wc(function(h){if("none"===h)return Uo;Xi||(Xi=document.createElement("DIV"),Vo=document.documentElement,nw=document.defaultView);Xi.style.transform=h;h=nw.getComputedStyle(Vo.appendChild(Xi),null).getPropertyValue("transform");Vo.removeChild(Xi);h=h.slice(7,-1).split(",");return vc(+h[0],+h[1],+h[2],+h[3],+h[4],+h[5])},"px, ","px)","deg)"),$D=wc(function(h){if(null== h)return Uo;kl||(kl=document.createElementNS("http://www.w3.org/2000/svg","g"));kl.setAttribute("transform",h);if(!(h=kl.transform.baseVal.consolidate()))return Uo;h=h.matrix;return vc(h.a,h.b,h.c,h.d,h.e,h.f)},", ",")",")");xc(rc);xc(Cb);yc(rc);yc(Cb);tb(rc);var Wo=tb(Cb),Ah=0,Ni=0,Pi=0,Tk,Oi,Sk=0,Eg=0,Rk=0,Mi="object"===typeof performance&&performance.now?performance:Date,ev="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(h){setTimeout(h,17)};Bg.prototype=Ai.prototype={constructor:Bg,restart:function(h,p,u){if("function"!==typeof h)throw new TypeError("callback is not a function");u=(null==u?Ag():+u)+(null==p?0:+p);this.Rc||Oi===this||(Oi?Oi.Rc=this:Tk=this,Oi=this);this.uf=h;this.wf=u;vf()},stop:function(){this.uf&&(this.uf=null,this.wf=Infinity,vf())}};var gC=t("start","end","interrupt"),hC=[],aE=Za.prototype.constructor,ow=0,Fh=Za.prototype;Cf.prototype=function(h){return Za().transition(h)}.prototype={constructor:Cf,select:function(h){var p=this.Ce,u=this.Rb;"function"!==typeof h&&(h=ya(h));for(var x=this.kb,z=x.length,A=Array(z),la=0;laarguments.length?ie(this.node(),u).on.on(h):this.each(Zd(u,h,p))},attr:function(h,p){var u=na(h),x="transform"===u?$D:fd;return this.attrTween(h,"function"===typeof p?(u.local?Gk:Fk)(u,x,oc(this,"attr."+h,p)):null==p?(u.local?hd:Vc)(u):(u.local?rh:za)(u,x,p+""))},attrTween:function(h,p){var u="attr."+h;if(2>arguments.length)return(u=this.tween(u))&&u.qg;if(null==p)return this.tween(u,null);if("function"!==typeof p)throw Error();var x=na(h);return this.tween(u,(x.local?Xn:Jd)(x,p))},style:function(h,p,u){var x="transform"===(h+="")?ZD:fd;return null==p?this.styleTween(h,sh(h,x)).on("end.style."+h,de(h)):this.styleTween(h,"function"===typeof p?iC(h,x,oc(this,"style."+h,p)):Zn(h,x,p+""),u)},styleTween:function(h,p,u){var x="style."+(h+="");if(2>arguments.length)return(x=this.tween(x))&&x.qg;if(null==p)return this.tween(x,null);if("function"!==typeof p)throw Error();return this.tween(x,jC(h,p,null==u?"":u))},text:function(h){return this.tween("text","function"===typeof h?lC(oc(this,"text",h)):kC(null==h?"":h+""))},remove:function(){return this.on("end.remove",Uf(this.Rb))},tween:function(h,p){var u=this.Rb;h+="";if(2>arguments.length){u=ie(this.node(),u).tween;for(var x=0,z=u.length,A;x=(h*=2)?h*h*h:(h-=2)*h*h+2)/2}};Za.prototype.interrupt=function(h){return this.each(function(){var p=h,u=this.Bd,x,z=!0,A;if(u){p=null==p?null:p+"";for(A in u)if((x=u[A]).name!==p)z=!1;else{var la=2x.state;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 Cf){var u=h.Rb;h=h.Ce}else u=++ow,(p=Xo).time=Ag(),h=null==h?null:h+"";for(var x=this.kb,z=x.length,A=0;Az)throw Error("negative radius: "+z);if(null===this.Aa)this.Ga+="M"+(this.Aa=h)+","+(this.Ea=p);else if(1E-6 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(0>u)throw Error("negative radius: "+u);if(null===this.Aa)this.Ga+="M"+ra+","+qa;else if(1E-6x&&(x=x%Zo+Zo),x>bE?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(h-la)+","+(p-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Aa=ra)+","+(this.Ea=qa):1E-6=Yo)+","+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.Qa=this.Aa=+h)+","+(this.Ra=this.Ea=+p)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Vk.prototype=Wk.prototype={constructor:Vk,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 Ig=Wk.prototype;Xk.prototype=function(h,p){var u=new Xk;if(h instanceof Xk)h.each(function(A){u.add(A)});else if(h){var x=-1,z=h.length;if(null==p)for(;++xz;++z)if(x=p.source[z])x.length?u.push({source:x,target:p.target[z]=Array(4)}):p.target[z]=lv(x);return h};fe.add=function(h){var p=+this.yb.call(null,h),u=+this.Db.call(null,h);return kv(this.cover(p,u),p,u,h)};fe.addAll=function(h){var p,u,x=h.length,z,A,la=Array(x),oa=Array(x),ra=Infinity,qa=Infinity,pa=-Infinity,wa=-Infinity;for(u=0;upa&&(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.Qa=u;this.Ra=x;this.Aa=z;this.Ea=A;return this};fe.data=function(){var h=[];this.visit(function(p){if(!p.length){do h.push(p.data);while(p=p.next)}});return h};fe.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this.Qa)?void 0:[[this.Qa,this.Ra],[this.Aa,this.Ea]]};fe.find=function(h,p,u){var x=this.Qa,z=this.Ra,A,la,oa,ra,qa=this.Aa,pa=this.Ea,wa=[],Da=this.tb,Ha;Da&&wa.push(new ee(Da,x,z,qa,pa));null==u?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.yb.call(null,Da.data),jc=p-+this.Db.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};fe.removeAll=function(h){for(var p=0,u=h.length;p=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;Zk.prototype=Fo.prototype;Fo.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,this.width|0))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};var pv,qv={"%":function(h,p){return(100*h).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 mv(100*h,p)},r:mv,s:function(h,p){var u=Yk(h,p);if(!u)return h+"";var x=u[0];u=u[1];u=u-(pv=3*Math.max(-8,Math.min(8,Math.floor(u/3))))+1;var z=x.length;return u===z?x:u>z?x+Array(u-z+1).join("0"):0Kd;ag*=rw;bp.add(xv(ag*dp*$d(ep),qw*Yi+ag*ze(ep)));Ia+=ol?Gh+dp*eE:Gh;ol^pd>=Qc^cp>=Qc&&(Cd=tv(sv(Cd),sv(nl)),uv(Cd),pd=tv(Ma,Cd),uv(pd),pd=(ol^0<=Gh?-1:1)*$k(pd[2]),Rc>pd||Rc===pd&&(Cd[0]||Cd[1]))&&(Ta+=ol^0<=Gh?1:-1)}}bd=(-1E-6>Ia||1E-6>Ia&&-1E-6>bp)^Ta&1;Uc.length?(eb||(z.polygonStart(),eb=!0),wC(Uc,yC,bd,u,z)):bd&&(eb||(z.polygonStart(),eb=!0),z.lineStart(),u(null,null,1,z),z.lineEnd());eb&&(z.polygonEnd(),eb=!1);Uc=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=0$f(ra-Kd))h.point(p,u=0<(u+la)/2?ye:-ye),h.point(x,u),h.lineEnd(),h.lineStart(),h.point(oa,u),h.point(A,u),z=0;else if(x!==oa&&ra>=Kd){1E-6>$f(p-x)&&(p-=1E-6*x);1E-6>$f(A-oa)&&(A-=1E-6*oa);ra=p;var qa=u,pa=A,wa,Da,Ha=$d(ra-pa);u=1E-6<$f(Ha)?ap(($d(qa)*(Da=ze(la))*$d(pa)-$d(la)*(wa=ze(qa))*$d(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},ql:function(){return 2-z}}},function(h,p,u,x){null==h?(u*=ye,x.point(-Kd,u),x.point(0,u),x.point(Kd,u),x.point(Kd,0),x.point(Kd,-u),x.point(0,-u),x.point(-Kd,-u),x.point(-Kd,0),x.point(-Kd,u)):1E-6<$f(h[0]-p[0])?(h=h[0]h?Kd:Math.acos(h))&&h/$d(h)}).invert=Qi(function(h){return h});al(3);Qi(ap);Qi($k);Qi(function(h){return 2*ap(h)});Ri.prototype=yv.prototype={constructor:Ri,count:function(){return this.eachAfter(zC)},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;Ap&&(p+=36E5);h.setTime(36E5*Math.floor((+h-p)/36E5)+p)},function(h,p){h.setTime(+h+36E5*p)},function(h,p){return(p-h)/36E5},function(h){return h.getHours()}),Qo=Qd(function(h){h.setHours(0,0,0,0)},function(h,p){h.setDate(h.getDate()+p)},function(h,p){return(p-h-6E4*(p.getTimezoneOffset()-h.getTimezoneOffset()))/864E5},function(h){return h.getDate()-1}),Vv=Fg(0),Po=Fg(1);Fg(2);Fg(3);var Ro=Fg(4);Fg(5);Fg(6);var iE=Qd(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()+12*(p.getFullYear()-h.getFullYear())},function(h){return h.getMonth()}),Hg=Qd(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()});Hg.every=function(h){return isFinite(h=Math.floor(h))&&0this.Zd&&2===this.Oa&&this.Fa.lineTo(this.yb,this.Db);(this.Ha||0!==this.Ha&&1===this.Oa)&&this.Fa.closePath();0<=this.Ha&&(this.Zd=1-this.Zd,this.Ha=1-this.Ha)},point:function(p,u){p=+p;u=+u;switch(this.Oa){case 0:this.Oa=1;this.Ha?this.Fa.lineTo(p,u):this.Fa.moveTo(p,u);break;case 1:this.Oa=2;default:if(0>=this.Zd)this.Fa.lineTo(this.yb,u),this.Fa.lineTo(p,u);else{var x=this.yb*(1-this.Zd)+p*this.Zd;this.Fa.lineTo(x,this.Db);this.Fa.lineTo(x,u)}}this.yb=p;this.Db=u}};Vi.prototype={constructor:Vi,scale:function(p){return 1===p?this:new Vi(this.k*p,this.x,this.y)},translate:function(p,u){return 0===p&0===u?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);wi=b;Hw=function(p,u){return up?1:u>=p?0:NaN};ji=function(p,u){var x=p.length,z=-1,A,la,oa;if(null==u)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(null==u)for(;++z=A)for(la=A;++zA&&(la=A)}else for(;++z=A)for(la=A;++zA&&(la=A);return la};Vz=function(p,u){var x=p.length,z=-1,A,la=0;if(null==u)for(;++zHa;qa||(qa=pa=Uk());if(Dapl-1E-12)qa.moveTo(Da*Jg(Ha),Da*af(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),1E-12Na?$i:Math.acos(Na))/2);eb=Dh(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=gp(Ta,(wa-eb)/(Na-1));Na=gp(Ta,(Da-eb)/(Na+1))}}1E-12=bd;--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(Uc)return pa=null,Uc+""||null} function u(){return aw().defined(oa).curve(qa).context(ra)} var x=Zv,z=null,A=td(0),la=$v,oa=td(!0),ra=null,qa=hl,pa=null;p.x=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),z=null,p):x};p.x0=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),p):x};p.x1=function(wa){return arguments.length?(z=null==wa?null:"function"===typeof wa?wa:td(+wa),p):z};p.y=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),la=null,p):A};p.y0=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),p):A};p.y1=function(wa){return arguments.length?(la=null==wa?null:"function"===typeof wa?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="function"===typeof wa?wa:td(!!wa),p):oa};p.curve=function(wa){return arguments.length?(qa=wa,null!=ra&&(pa=qa(ra)),p):qa};p.context=function(wa){return arguments.length?(null==wa?ra=pa=null:pa=qa(ra=wa),p):ra};return p};Vx=aw;Tu=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(pl,Math.max(-pl,la.apply(this,arguments)-jc));var Pc=Math.min(Math.abs(eb)/pa,oa.apply(this,arguments)),Uc=Pc*(0>eb?-1:1),tc;for(qa=0;qa=k;k++)f.push(new Date(b.getFullYear(),b.getMonth()+k));var n=new Map;a=Kc(a);for(b=a.next();!b.done;b=a.next()){var r=b.value;b=r.getYear()+"-"+r.getMonth();k=null!==(c=n.get(b))&&void 0!==c?c:0;r=null!==(e=Gf(r,3))&&void 0!==e?e:0;n.set(b,k+r)}return f.map(function(t){return{month:t.getTime(),count:n.get(t.getFullYear()+"-"+(t.getMonth()+1))||0}})} function ME(a){var b=a.locale;a={};return oB("{{monthYear}}","
{{series.name}}: {{measure}}
").$d((a.monthYear=function(){return(new Date(this.datum.month)).toLocaleDateString(b,{month:"long",year:"numeric"})},a)).Ti()} ;}).call(this); ");return null==a||null==a.sheet?rg:Am(a.sheet,void 0!=b?b:null,c)} function Em(a){if(Ne&&!bf(10)||"function"!=typeof id.DOMParser)return null;a=wg(""+a+"",null);return(new DOMParser).parseFromString(ug(a),"text/html").body.children[0]} function Cm(a,b){if(!a)return fg;var c=document.createElement("div").style;Fm(a).forEach(function(e){var f=Qe&&e in zm?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");0!=f.lastIndexOf("--",0)&&0!=f.lastIndexOf("var",0)&&(e=vm(a,e),e=Vl(f,e,b),null!=e&&wm(c,f,e))});return new bg(c.cssText||"",Zf)} function Gm(a){var b=Array.from(nm(cm,a,"getElementsByTagName",["STYLE"])),c=Ie(b,function(p){return te(rm(p).cssRules)});c=Bm(c);for(var e=[],f=0;f"+a+""),Gm(a),a=a.innerHTML);a=wg(a,null);var c=document.createElement("template");if(Mm&&"content"in c)Tg(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Tg(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Im?new WeakMap:new Km;e=a.nextNode();){a:{var f=e;switch(tm(f)){case 3:f= Om(this,f);break a;case 1:if("TEMPLATE"==sm(f).toUpperCase())f=null;else{var l=sm(f).toUpperCase();if(l in this.ha||"http://www.w3.org/1999/xhtml"!=xm(f))var p=null;else this.N[l]?p=document.createElement(l):(p=Yi(document,"SPAN"),this.na&&pm(p,"data-sanitizer-original-tag",l.toLowerCase()));if(p){var r=p,t=om(f);if(null!=t)for(var y=0;l=t[y];y++)if(l.specified){var E=f;var ma=l;var na=ma.name;if(0==na.lastIndexOf("data-sanitizer-",0))ma=null;else{var ta=sm(E);ma=ma.value;var ua={tagName:Gd(ta).toLowerCase(),attributeName:Gd(na).toLowerCase()},sa={ih:void 0};"style"==ua.attributeName&&(sa.ih=qm(E));E=Pm(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=Pm(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&pm(r,l.name,ma)}f=p}else f=null}break a;default:f=null}}if(f){if(1==tm(f)&&c.set(e,f),e=um(e),l=!1,e)p=tm(e),r=sm(e).toLowerCase(),t=um(e),11!=p||t?"body"==r&&t&&(p=um(t))&&!um(p)&&(l=!0):l=!0,p=null,l||!e?p=b:1==tm(e)&&(p=c.get(e)),p.content&&(p=p.content),p.appendChild(f)}else $i(e)}c.clear&& c.clear();return b};var Qm={APPLET:!0,AUDIO:!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,VIDEO:!0};var Rm={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!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,WBR:!0};var Sm={"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 Tm(a){a=a||new Um;Vm(a);this.v=uf(a.v);this.ha=uf(a.Da);this.N=uf(a.Ia);this.na=a.va;a.ha.forEach(function(b){if(0!=b.lastIndexOf("data-",0))throw new Dd('Only "data-" attributes allowed, got: %s.',[b]);if(0==b.lastIndexOf("data-sanitizer-",0))throw new Dd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Wm},this);a.Ka.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||Sm[b])throw new Dd("Only valid custom element tag names allowed, got: %s.",[b]);this.N[b]=!0},this);this.ka=a.O;this.$=a.ya;this.O=null;this.ma=a.na} xd(Tm,Nm);function Xm(a){return function(b,c){b=Gd(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=Sf(c)?Sf(c):null}} function Um(){this.v={};ce([Ll,Ml],function(a){rf(a).forEach(function(b){this.v[b]=Wm},this)},this);this.N={};this.ha=[];this.Ka=[];this.Da=uf(Qm);this.Ia=uf(Rm);this.va=!1;this.La=Xf;this.ka=this.$=this.Oa=this.O=Qg;this.ya=null;this.ma=this.na=!1} function Ym(a,b){return function(c,e,f,l){c=a(c,e,f,l);return null==c?null:b(c,e,f,l)}} function Zm(a,b,c,e){a[c]&&!b[c]&&(a[c]=Ym(a[c],e))} function Vm(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Zm(a.v,a.N,"* USEMAP",$m);var b=Xm(a.La);["* ACTION","* CITE","* HREF"].forEach(function(e){Zm(this.v,this.N,e,b)},a);var c=Xm(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){Zm(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){Zm(this.v,this.N,e,ud(an,this.Oa))},a);Zm(a.v,a.N,"A TARGET",ud(bn,["_blank","_self"]));Zm(a.v,a.N,"* CLASS",ud(cn,a.$));Zm(a.v,a.N,"* ID",ud(dn,a.$));Zm(a.v,a.N,"* STYLE",ud(a.ka,c));a.ma=!0} function Pm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Wm(a){return Gd(a)} function bn(a,b){b=Gd(b);return 0<=be(a,b.toLowerCase())?b:null} function $m(a){return(a=Gd(a))&&"#"==a.charAt(0)?a:null} function an(a,b,c){b=Gd(b);return a(b,c)} function cn(a,b,c){b=b.split(/(?:\s+)/);for(var e=[],f=0;f/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=nn(a);b&&(a=a.querySelector(b).parentNode);return a} function mn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?on(e,f,b):f.childNodes.length&&c.push(f)})} function on(a,b,c){if(b.textContent.match(pn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,l=[];f=pn.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=rd(b,c));var l=this.N[f];l||(l=[],this.N[f]=l);le(l,this.v[a]);this.v[a]=b;l.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],le(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ta:0a.Ta?Math.floor(b*a.Ta):a.Ta};a.Ta=Math.max(a.Ba,a.Ta);return a} function bo(a,b,c,e,f,l){var p=b.width-a.ha-a.ma;a.na=io(p,b.width,b.height,ho(c,b.height),go(a,[1,2]));a.ka=io(p,b.width,b.height,ho(f,b.height),go(a,[3,4]));c=b.height-a.na-a.ka;f=go(a,[3,4,1,2]);var r=0;for(p=0;pp){a=lo(f);for(e=b=0;ep-b-y.Ba.height&&y.yc&&(y.bc.height=0),b+=y.bc.height;return Xh(b,l,c)}if(rl){a=lo(e);for(c=e=0;cl-e-t.Ba.width&&t.yc&&(t.bc.width=0),e+=t.bc.width;return Xh(e,f,b)}if(pa,e=null!=b&&0b;if(null!=b&&(c&&e||!c&&!e)&&b=a.length?a:a.slice(0).sort(function(b,c){b=void 0!==b.Rc.If?b.Rc.If:20;c=void 0!==c.Rc.If?c.Rc.If:20;return b-c})} $n.prototype.setMargins=$n.prototype.Vc;$n.prototype.setMarginEnd=$n.prototype.vk;$n.prototype.setMarginStart=$n.prototype.yk;$n.prototype.setMarginLeft=$n.prototype.wk;$n.prototype.setMarginBottom=$n.prototype.uk;$n.prototype.setMarginRight=$n.prototype.xk;$n.prototype.setMarginTop=$n.prototype.zk;vd("aplos.chart.layout.DynamicLayout",$n);var mo={pq:"WARNING",ERROR:"ERROR"};vd("aplos.util.MessageSeverity",mo);mo.WARNING="WARNING";mo.ERROR="ERROR";var $o={mq:"UNTIL_REMOVED",lq:"UNTIL_DATA",Kp:"ONCE"};vd("aplos.util.MessageDuration",$o);$o.UNTIL_REMOVED="UNTIL_REMOVED";$o.UNTIL_FRESH_DATA="UNTIL_DATA";$o.ONCE="ONCE";function ap(a){this.v=a} ap.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&bp(this,b);b.length||(b=cp(this.v.Sa,dp),b.empty()||(b.style("display","none"),b.selectAll("div."+ep).remove(),this.v.ab.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});fp(this,a)};function bp(a,b){var c=dp,e=gp,f=a.v,l=f.Sa;f.ab.style("display","none");a=cp(l,c);a.empty()&&(a=l.append("div").classed(c,!0),a.append("div").classed(hp,!0),a.append("div").classed(ip,!0));a.style("display",null);a.select("."+ip).attr("class",ip+" "+e);b=a.select("."+hp).selectAll("div."+ep).data(b);b.exit().remove();b=b.enter().append("div").merge(b);b.text(function(p){return p.message});b.attr("class",function(p){return ep+" "+jp+p.severity.toLowerCase()});a.style("position","absolute");b=(f.frameWidth()-a.node().offsetWidth)/2;f=(f.frameHeight()-a.node().offsetHeight)/2;b=Math.max(0,b);f=Math.max(0,f);a.style("left",b+"px");a.style("top",f+"px")} function fp(a,b){var c=a.v.Sa.select("."+kp);c.empty()&&(c=a.v.Sa.append("div").classed(kp,!0));c.style("display",b.length?"":"none");c.classed(lp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function cp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function Fp(a){if("function"===typeof a)return a;a[Np]||(a[Np]=function(b){return a.handleEvent(b)});return a[Np]} ;function Op(){this.port=this.v=null;this.N=[]} Op.prototype.load=function(){var a=this,b=Pp();this.v=Qp(b);Rp().then(function(){document.body.appendChild(a.v)});return Sp(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} vd("aplos.data.aggregations.max",cq);function $p(a,b){var c=0;b=b||Rg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} vd("aplos.data.aggregations.count",$p);function dq(a,b){var c=new Set;b=b||Rg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} vd("aplos.data.aggregations.countDistinct",dq);function eq(a,b,c,e){if(2>a||!Xp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!Xp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return fq(b/a,c,e)} vd("aplos.data.aggregations.quantiles",eq);function fq(a,b,c){if(0>a||1c.length)var e=null;else{if(!c||2>c.length)e=null;else if(e=[],b){var f=De(c,b),l=qf(f);if(2>l.length)e=null;else for(f=He(l),c=0;cb?Date.UTC(b,3,7,10):Date.UTC(b,2,14,10);c-=864E5*(new Date(c)).getUTCDay();b=2007>b?Date.UTC(b,9,31,9):Date.UTC(b,10,7,9);b-=864E5*(new Date(b)).getUTCDay();return a>=c&&ae?(a=a.Gc(c+1)-e,(c*a+b-e)/a):ba&&b.setFullYear(b.getFullYear()-1900);return b} w=xq.prototype;w.Ge=rq.Rk;w.He=rq.Sk;w.clone=function(){var a=new xq(this.date);a.Ge=this.Ge;a.He=this.He;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+12*a.N,c=this.getYear()+Math.floor(b/12);b%=12;0>b&&(b+=12);var e=Math.min(tq(c,b),this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.days&&(c=this.getYear(),b=0<=c&&99>=c?-1900:0,a=new Date((new Date(c,this.getMonth(),this.getDate(),12)).getTime()+864E5*a.days),this.setDate(1),this.setFullYear(a.getFullYear()+b),this.setMonth(a.getMonth()),this.setDate(a.getDate()),zq(this,a.getDate()))};w.Zf=function(a){var b=this.getFullYear(),c=0>b?"-":1E4<=b?"+":"";return[c+Fh(Math.abs(b),c?6:4),Fh(this.getMonth()+1,2),Fh(this.getDate(),2)].join(a?"-":"")+""};w.toString=function(){return this.Zf()};function zq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.qg?a-=c.Kg-c.Ib:a<=c.uf&&(a-=c.Kf-c.Ib);return a} function Gq(a,b){b=b||"UTC";try{return Cq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return Cq(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 Hq(a,b,c){c=c||"UTC";var e=Iq(b);Jq(a);Dq(c,"Invalid timezone specified");if("local"===c)return Kq(a,e);var f=Math.floor(a/1E3);b=Lq(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=Lq(a,c),1E3*(a-c);case "QUARTER":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),3*Math.floor(a.getUTCMonth()/3),1),c=Lq(a,c),1E3*(a-c);case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=Lq(a,c),1E3*(a-c);case "WEEK":return a=new Bq,a.setTime(f+b),b=new uq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=Lq(a,c),1E3*(a-c);case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=Lq(a,c),1E3*(a-c);case "HOUR":return a=f+b,1E3*Mq(a-a%36E5-b,c);case "MINUTE":return a=f+b,1E3*Mq(a-a%6E4-b,c);case "SECOND":return 1E3*Mq(1E3*Math.floor(f/1E3),c);case "MILLISECOND":return 1E3*Mq(Math.floor(f),c);case "MICROSECOND":return 1E3*Mq(Math.floor(a)/1E3,c);default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function Nq(a,b,c,e){e=void 0===e?"UTC":e;if("local"===e){e=a;switch(b){case "YEAR":case "QUARTER":case "MONTH":"YEAR"===b?c*=12:"QUARTER"===b&&(c*=3);e=new Date(e/1E3);b=e.getFullYear();for(c=e.getMonth()+c;11c[a])f=a+2;else break;if(l=c.length|| 0>l)return{Ib:b,uf:null,qg:null,jh:null,Kf:null,Kg:null};a=l;break}}e=b+6E7*c[a+1];f=b+6E7*c[a-1];return{Ib:e,uf:36E8*c[a],qg:36E8*c[a+2],jh:e-f,Kf:f,Kg:b+6E7*c[a+3]}} function Lq(a,b){return Fq(1E3*a,b).Ib/1E3} function Mq(a,b){var c=1E3*a;b=Fq(c,b);var e=b.Kf-b.Ib;return a-(0>=e||c-e>b.uf?0:e)/1E3} function Sq(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function Dq(a,b){if("string"!==typeof a)throw Error(b);} function Jq(a){if("number"!==typeof a)throw Error("Invalid timestamp");} for(var Pq=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,Qq={"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},Rq={},Tq=[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,