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?Lf:Oi(a.sheet,void 0!=b?b:null,c)} function Si(a){if(Uc&&!gd(10)||"function"!=typeof wb.DOMParser)return null;a=$f(Te("Never attached to DOM."),""+a+"");return(new DOMParser).parseFromString(Of(a),"text/html").body.children[0]} function Qi(a,b){if(!a)return yf;var c=document.createElement("div").style;Ti(a).forEach(function(e){var f=Yc&&e in Ni?e:e.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Ub(f,"--")||Ub(f,"var")||(e=Ji(a,e),e=ii(f,e,b),null!=e&&Ki(c,f,e))}); return ag(c.cssText||"")} function Ui(a){var b=Array.from(Bi(qi,a,"getElementsByTagName",["STYLE"])),c=xc(b,function(f){return wc(Fi(f).cssRules)}); c=Pi(c);c.sort(function(f,h){f=bi(f.selectorText);a:{h=bi(h.selectorText);for(var k=Math.min(f.length,h.length),l=0;lr?1:nh?1:f"+b+""),Ui(b),b=b.innerHTML);b=$f(Te("Never attached to DOM."),b);var c=document.createElement("template");if(ij&&"content"in c)wg(c,b),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;wg(e.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT| NodeFilter.SHOW_TEXT,null,!1);for(c=Yi?new WeakMap:new $i;e=b.nextNode();){c:{var f=e;switch(Hi(f)){case 3:f=Dj(this,f);break c;case 1:if("TEMPLATE"==Gi(f).toUpperCase())f=null;else{var h=Gi(f).toUpperCase();if(h in this.oa||"http://www.w3.org/1999/xhtml"!=Li(f))var k=null;else this.ha[h]?k=document.createElement(h):(k=Vh(document,"SPAN"),this.ua&&Di(k,"data-sanitizer-original-tag",h.toLowerCase()));if(k){var l=k,n=Ci(f);if(null!=n)for(var r=0;h=n[r];r++)if(h.specified){var t=f;var w=h;var x=w.name; if(Ub(x,"data-sanitizer-"))w=null;else{var A=Gi(t);w=w.value;var pa={tagName:Yb(A).toLowerCase(),attributeName:Yb(x).toLowerCase()},qa={zq:void 0};"style"==pa.attributeName&&(qa.zq=Ei(t));t=Bj(A,x);t in this.o?(x=this.o[t],w=x(w,pa,qa)):(x=Bj(null,x),x in this.o?(x=this.o[x],w=x(w,pa,qa)):w=null)}null!==w&&Di(l,h.name,w)}f=k}else f=null}break c;default:f=null}}if(f){if(1==Hi(f)&&c.set(e,f),e=Ii(e),h=!1,e)k=Hi(e),l=Gi(e).toLowerCase(),n=Ii(e),11!=k||n?"body"==l&&n&&(k=Ii(n))&&!Ii(k)&&(h=!0):h=!0,k= null,h||!e?k=a:1==Hi(e)&&(k=c.get(e)),k.content&&(k=k.content),k.appendChild(f)}else Yh(e)}c.clear&&c.clear()}else a=Vh(document,"SPAN");0")+1,a.lastIndexOf("b;)a.pop()} function Jj(a){a=Array(a);Ij(a,0);return a} ;var Kj=new Hj;Kj.__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)}; Kj.style=function(a,b,c){a=a.style;if("string"===typeof c)a.cssText=c;else{a.cssText="";for(var e in c)Gj.call(c,e)&&(b=c[e],0<=e.indexOf("-")?a.setProperty(e,b):a[e]=b)}}; function Lj(a,b,c,e){(e[b]||e.__default)(a,b,c)} ;var Mj=null;function Nj(a){this.node=a;this.o=[];this.deleted=[]} ;var Oj="undefined"!==typeof Node&&Node.prototype.getRootNode||function(){for(var a=this,b=a;a;)b=a,a=a.parentNode;return b};function Pj(a,b){this.o=null;this.ka=!1;this.ha=a;this.key=b;this.text=void 0} function Qj(a,b,c){b=new Pj(b,c);return a.__incrementalDOMData=b} function Rj(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=Qj(a,c,1===a.nodeType?e||b:null);if(1===a.nodeType&&(a=a.attributes,c=a.length)){e=b.o||(b.o=Jj(c));for(var f=0,h=0;f\n \n \n\n'), "add.svg":Te('\n \n \n\n'),"announcement.svg":Te('\n \n \n\n'),"arrow_back.svg":Te('\n \n \n\n'), "arrow_drop_down.svg":Te('\n'),"arrow_drop_up.svg":Te('\n'),"arrow_forward.svg":Te('\n'), "attach_file.svg":Te('\n'),"auto_awesome.svg":Te('\n'), "calendar_today.svg":Te('\n'),"chat.svg":Te('\n \n \n\n'), "check.svg":Te('\n \n \n\n'),"check_circle.svg":Te('\n \n \n\n'), "check_circle_filled.svg":Te('\n \n \n \n \n\n'),"check_circle_outline.svg":Te('\n \n \n\n'), "close.svg":Te('\n \n \n\n'),"code.svg":Te('\n'),"content_copy.svg":Te('\n \n\n'), "delete_outline.svg":Te('\n'),"do_not_disturb.svg":Te('\n \n \n\n'), "down_arrow.svg":Te('\n \n \n\n'),"drive_document.svg":Te('\n \n \n\n'),"drive_image.svg":Te('\n \n \n\n'), "dvr.svg":Te('\n'),"email.svg":Te('\n \n \n\n'), "error.svg":Te('\n'),"error_outline.svg":Te('\n \n \n\n'), "event_available.svg":Te('\n \n \n\n'),"face.svg":Te('\n'), "featured_video.svg":Te('\n'),"filter_list.svg":Te('\n \n\n'),"format_bold.svg":Te('\n'), "format_clear.svg":Te('\n'),"format_indent_decrease.svg":Te('\n'), "format_indent_increase.svg":Te('\n'),"format_italic.svg":Te('\n'),"format_list_bulleted.svg":Te('\n'), "format_list_numbered.svg":Te('\n'),"format_quote.svg":Te('\n \n\n'), "format_underline.svg":Te('\n'),"help_outline.svg":Te('\n \n \n\n'), "highlight_alt.svg":Te('\n'),"info.svg":Te('\n \n \n\n'), "info_filled.svg":Te('\n'),"keep_pin_outline.svg":Te('\n \n \n\n'), "keyboard_arrow_up.svg":Te('\n \n \n\n'),"label.svg":Te('\n \n \n\n'), "label_off.svg":Te('\n \n \n\n'), "language.svg":Te('\n'), "link.svg":Te('\n'),"lock.svg":Te('\n \n \n \n\n'), "lock_open.svg":Te('\n \n \n \n\n'),"maximize.svg":Te('\n'), "minimize.svg":Te('\n'),"mode_edit.svg":Te('\n \n \n\n'),"more_vert.svg":Te('\n \n \n\n'), "navigate_before.svg":Te('\n'),"navigate_next.svg":Te('\n'),"notifications.svg":Te('\n'), "open_in_new.svg":Te('\n'),"phone.svg":Te('\n \n \n\n'), "play_arrow.svg":Te('\n \n \n\n'),"play_circle.svg":Te('\n \n \n\n'),"public.svg":Te('\n \n \n\n'), "question_answer.svg":Te('\n \n \n\n'),"remove_circle_outline.svg":Te('\n \n \n\n'), "restart_alt.svg":Te('\n \n \n\n'),"search.svg":Te('\n \n \n\n'), "send.svg":Te('\n'),"sentiment_very_satisfied.svg":Te('\n'), "star.svg":Te('\n'),"star_boarder.svg":Te('\n'), "storefront.svg":Te('\n \n\n'), "supervised_user_circle.svg":Te('\n \n \n \n \n\n'), "text_format.svg":Te('\n'),"thumb_down_alt.svg":Te('\n'), "thumb_up.svg":Te('\n'),"thumb_up_alt.svg":Te('\n'), "undo.svg":Te('\n'),"unfold_more.svg":Te('\n'), "unpin.svg":Te('\n \n \n\n'),"video_youtube.svg":Te('\n'), "video_youtube_outline.svg":Te('\n \n \n\n'), "visibility.svg":Te('\n \n \n\n'),"warning.svg":Te('\n \n \n\n')};var Qk="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 Rk(a){var b=a.icon,c=void 0===a.size?24:a.size,e=void 0===a.Ab?!1:a.Ab,f=void 0===a.Gd?[]:a.Gd;a=void 0===a.title?"":a.title;E.call(this,"sc.shared.MaterialIcon");this.icon=b;this.size=c;this.Gd=f;this.Ab=e;this.title=a} y(Rk,E);Rk.prototype.content=function(){var a=this,b=this.size/16+"rem",c={root:!0,baseline:this.Ab,flip:-1!==Qk.indexOf(this.icon)},e=0===this.icon.indexOf("gm/");e||(c["text-icon"]=!0);for(var f=u(this.Gd),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(){vk(Pk[a.icon.replace("gm/","")+".svg"])}):this.element("div","class",c,"title",this.title,"style","font-size: "+b,this.icon)};function Sk(a,b,c,e){this.ka=a;this.ha=b;this.o=c;this.ma=void 0===e?1:e} function Tk(a){if(!a||"transparent"===a)return new Sk(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(Sk,[null].concat(Ba(b.map(Number)))))} function Uk(a){var b=Vk(a,Wk);a=Vk(a,Xk);return 3.1>b&&a>b} var Xk=new Sk(0,0,0),Wk=new Sk(255,255,255);function Vk(a,b){a=.2126*Yk(a.ka)+.7152*Yk(a.ha)+.0722*Yk(a.o)+.05;b=.2126*Yk(b.ka)+.7152*Yk(b.ha)+.0722*Yk(b.o)+.05;return Math.max(a,b)/Math.min(a,b)} function Yk(a){a/=255;return.03928>a?a/12.92:Math.pow((a+.055)/1.055,2.4)} ;var Zk=[{opacity:0},{opacity:.16,offset:.25},{opacity:.16,offset:.5},{opacity:0}],$k={duration:300},al={duration:225,easing:"cubic-bezier(.4, .0, .2, 1)"};function bl(a){a=void 0===a?{}:a;a=void 0===a.Il?!1:a.Il;E.call(this,"sc.shared.MaterialInteractionOverlay");var b=this;this.ha=!1;this.parentElement=null;this.Il=a;this.ta=function(c){cl(b,c.clientX,c.clientY,b.Il)}; this.ma=function(){b.ha=!0;b.Ca()}; this.na=function(){b.ha=!1;b.Ca()}} y(bl,E);bl.prototype.content=function(){var a=this,b=Uk(Tk(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")}); dl(this)}; function dl(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.ma),e.removeEventListener("mouseleave",a.na)),f&&(f.addEventListener("mousedown",a.ta),f.addEventListener("mouseenter",a.ma),f.addEventListener("mouseleave",a.na)),a.parentElement=f)},0)} function el(a,b){"Enter"!==b.code&&"Space"!==b.code||cl(a,0,0,!0)} function cl(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 n=c-h.top-128;c=h.width/2-128-b;e=h.height/2-128-n;h=n+"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(Zk,$k);a.o.animate(k,al)}} ;function fl(a){a=void 0===a?{}:a;E.call(this,"sc.shared.MaterialButton");this.model=a instanceof Nk?a:new Nk(a);this.overlay=new bl;Dk(this,this.model)} y(fl,E);p=fl.prototype; p.content=function(a){var b=this;a&&this.model.Be(a);var c=""!==this.model.Ja(),e=""!==this.model.sg();this.o=this.element(this.model.Si()?"a":"button","href",this.model.Si()||void 0,"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(),href:!!this.model.Si(),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":Ok(this.model),"right-icon":this.model.jk(),"icon-only":e&&!c,"small-icon":this.model.Mk,hidden:!this.model.Vl,compact:this.model.compact},"style",""===this.model.hm()?null:{"max-width":this.model.hm()},"type","button","aria-label",this.model.Ri(),"aria-expanded",this.model.Vt,"aria-controls",this.model.Ut,"disabled",this.model.qg(),"onclick",function(f){b.wb(f)}, "onkeydown",function(f){b.overlay&&el(b.overlay,f)},function(){e&&b.element("span","class","icon",new Rk({icon:b.model.sg(), size:b.model.Mk||c?18:24,Ab:!0}));c&&b.element("span","class",{overflow:""!==b.model.hm()},function(){nk(b.model.Ja())}); b.overlay.render()})}; p.wb=function(a){var b=this.model.km();b&&b({method:0===a.clientX&&0===a.clientY?1:2})}; p.Yb=function(a){this.model.Yb(a)}; p.Uc=ma(0);p.Ja=function(){return this.model.Ja()}; p.nb=function(a){this.model.nb(a)}; p.focus=function(){var a;null===(a=this.o)||void 0===a?void 0:a.focus()};function gl(a,b){this.value=a;this.icon=b} gl.prototype.toString=function(){return this.value}; var hl=new gl("error","gm/error_outline"),il=new gl("caution","gm/warning"),jl=new gl("success","gm/check_circle_outline");function kl(a){var b=a.message,c=a.type,e=a.position;a=void 0===a.Nm?void 0:a.Nm;E.call(this,"sc.shared.Callout");this.message=b;this.type=c;this.position=e;this.icon=new Rk({icon:c.icon,Ab:!0});void 0!==a&&(this.Nm=new fl({mb:a.mb,text:a.text,trigger:a.trigger,style:1,compact:!0}))} y(kl,E);kl.prototype.content=function(){var a=this;this.element("div","class","root "+this.type+" "+this.position,"aria-live","polite",function(){a.element("div","class","content",function(){a.icon.render();a.element("div","class","message",a.message)}); void 0!==a.Nm&&a.element("div","class","secondary-button",a.Nm)})};function ll(a,b,c){b=void 0===b?!0:b;void 0===c||c?jg(window,qg(a)):(c=document.createElement("a"),yg(c,a),c.rel="noopener",b?(a=qg(c.href),window.location.href=bg(a)):(a=qg(c.href),window.location.replace(bg(a))))} ;function ml(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} y(ml,Error);function nl(a){var b=a.serviceName;this.tf=a.tf;this.serviceName=b} nl.prototype.get=function(a,b,c,e){c=void 0===c?{}:c;e=void 0===e?new XMLHttpRequest:e;return ue(this,function h(){var k=this,l;return mb(h,function(n){if(1==n.o)return Qa(n,k.call("GET",a,c,e,"application/json+protobuf"),2);l=n.ha;try{return n.return(je(b,l))}catch(r){throw ol(k,a),r;}})})}; function pl(a,b,c){c=void 0===c?{}:c;var e=void 0===e?new XMLHttpRequest:e;return ue(a,function h(){var k=this,l;return mb(h,function(n){if(1==n.o)return Qa(n,k.call("GET",b,c,e,"application/json"),2);l=n.ha;try{return n.return(JSON.parse(l))}catch(r){throw ol(k,b),r;}})})} nl.prototype.post=function(a,b,c,e,f){e=void 0===e?{}:e;f=void 0===f?new XMLHttpRequest:f;return ue(this,function k(){var l=this,n;return mb(k,function(r){if(1==r.o)return Qa(r,l.call("POST",a,e,f,"application/json+protobuf",b.Hb()),2);n=r.ha;try{return r.return(je(c,n))}catch(t){throw ol(l,a),t;}})})}; function ql(a,b,c,e){e=void 0===e?{}:e;var f=void 0===f?new XMLHttpRequest:f;return ue(a,function k(){var l=this,n;return mb(k,function(r){if(1==r.o)return Qa(r,l.call("POST",b,e,f,"application/json",JSON.stringify(c)),2);n=r.ha;try{return r.return(JSON.parse(n))}catch(t){throw ol(l,b),t;}})})} nl.prototype.call=function(a,b,c,e,f,h){return ue(this,function l(){var n=this,r;return mb(l,function(t){r=n;return t.return(new Promise(function(w,x){var A="";if(c.query){for(var pa=[],qa=u(Object.entries(c.query)),sa=qa.next();!sa.done;sa=qa.next()){var va=u(sa.value);sa=va.next().value;va=va.next().value;va=Array.isArray(va)?va:[va];va=u(va);for(var za=va.next();!za.done;za=va.next())za=za.value,pa.push(encodeURIComponent(sa)+"="+encodeURIComponent(za))}0e.status||299this.ha&&(this.ha++,a.next=this.o,this.o=a)};var xl; function yl(){var a=wb.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Bc("Presto")&&(a=function(){var f=Vh(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=Jb(function(n){if(("*"==l||n.origin==l)&&n.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&&!Ic()){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){wb.setTimeout(f,0)}} ;function zl(a){wb.setTimeout(function(){throw a;},0)} ;function Al(){this.ha=this.o=null} Al.prototype.add=function(a,b){var c=Bl.get();c.set(a,b);this.ha?this.ha.next=c:this.o=c;this.ha=c}; Al.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 Bl=new wl(function(){return new Cl},function(a){return a.reset()}); function Cl(){this.next=this.scope=this.o=null} Cl.prototype.set=function(a,b){this.o=a;this.scope=b;this.next=null}; Cl.prototype.reset=function(){this.next=this.scope=this.o=null};function Dl(a,b){El||Fl();Gl||(El(),Gl=!0);Hl.add(a,b)} var El;function Fl(){if(wb.Promise&&wb.Promise.resolve){var a=wb.Promise.resolve(void 0);El=function(){a.then(Il)}}else El=function(){var b=Il; "function"!==typeof wb.setImmediate||wb.Window&&wb.Window.prototype&&!Bc("Edge")&&wb.Window.prototype.setImmediate==wb.setImmediate?(xl||(xl=yl()),xl(b)):wb.setImmediate(b)}} var Gl=!1,Hl=new Al;function Il(){for(var a;a=Hl.remove();){try{a.o.call(a.scope)}catch(b){zl(b)}Bl.put(a)}Gl=!1} ;function Jl(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}} ;function Kl(a){this.o=0;this.ta=void 0;this.ma=this.ha=this.ka=null;this.oa=this.na=!1;if(a!=yb)try{var b=this;a.call(void 0,function(c){Ll(b,2,c)},function(c){Ll(b,3,c)})}catch(c){Ll(this,3,c)}} function Ml(){this.next=this.context=this.o=this.ha=this.child=null;this.ka=!1} Ml.prototype.reset=function(){this.context=this.o=this.ha=this.child=null;this.ka=!1}; var Nl=new wl(function(){return new Ml},function(a){a.reset()}); function Ol(a,b,c){var e=Nl.get();e.ha=a;e.o=b;e.context=c;return e} function Pl(a){if(a instanceof Kl)return a;var b=new Kl(yb);Ll(b,2,a);return b} Kl.prototype.then=function(a,b,c){return Ql(this,"function"===typeof a?a:null,"function"===typeof b?b:null,c)}; Kl.prototype.$goog_Thenable=!0;function Rl(a,b,c){return Ql(a,null,b,c)} Kl.prototype.cancel=function(a){if(0==this.o){var b=new Sl(a);Dl(function(){Tl(this,b)},this)}}; function Tl(a,b){if(0==a.o)if(a.ka){var c=a.ka;if(c.ha){for(var e=0,f=null,h=null,k=c.ha;k&&(k.ka||(e++,k.child==a&&(f=k),!(f&&1=c.tabIndex?b:c})} ;var um=[];function vm(){var a=this;this.oa=this.o=null;this.ha=!1;this.ka=[];this.ma=[];this.na=function(b){if(a.o&&a.ha){var c=qm(a.o),e=sm(c),f;e&&(f=tm(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()}}}} vm.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&&wm(this)}; function xm(a,b){if(b||!1!==b&&!a.ha)wm(a);else if(a.ha){for(ym(a);0\n \n \n '))); e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+-1);Em(a)}); c.appendChild(e);e=document.createElement("button");e.className="next";e.setAttribute("title","Next month");e.setAttribute("aria-label","Next month");e.appendChild(Wh(Te('\n \n \n ')));e.addEventListener("click",function(){a.o.setMonth(a.o.getMonth()+1);Em(a)}); c.appendChild(e);c=document.createElement("tr");c.appendChild(b);return c} function Dm(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 Em(a){a.ma.textContent=a.va?a.o.toLocaleString(a.na,{month:"long",year:"numeric"}):a.o.getMonth()+1+"/"+a.o.getFullYear();a.ka.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&&Jg(h,"selected",!0);f.appendChild(h)}else f.className="unselectable";c.appendChild(f);b.setDate(b.getDate()+1)}a.ka.appendChild(c)}} function Fm(a){return new Date(a.getFullYear(),a.getMonth(),1)} Am.prototype.ua=function(a){this.ta=a}; Am.prototype.getElement=function(){return this.ha}; window.sc_createCalendar=function(a){a=new Am(a);return{setSelectDateCallback:a.ua.bind(a),getElement:a.getElement.bind(a)}};function Gm(a){z.call(this,a)} y(Gm,z);function Hm(a){a&&"function"==typeof a.dispose&&a.dispose()} ;function Im(){this.ua=this.ua;this.ta=this.ta} Im.prototype.ua=!1;Im.prototype.isDisposed=function(){return this.ua}; Im.prototype.dispose=function(){this.ua||(this.ua=!0,this.Bd())}; function Jm(a,b){a.ua?b():(a.ta||(a.ta=[]),a.ta.push(b))} Im.prototype.Bd=function(){if(this.ta)for(;this.ta.length;)this.ta.shift()()};function Km(a,b){this.type=a;this.o=this.target=b;this.defaultPrevented=this.ka=!1} Km.prototype.stopPropagation=function(){this.ka=!0}; Km.prototype.preventDefault=function(){this.defaultPrevented=!0};var Lm=function(){if(!wb.addEventListener||!Object.defineProperty)return!1;var a=!1,b=Object.defineProperty({},"passive",{get:function(){a=!0}}); try{wb.addEventListener("test",yb,b),wb.removeEventListener("test",yb,b)}catch(c){}return a}();function Mm(a,b){Km.call(this,a?a.type:"");this.relatedTarget=this.o=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.ha=null;a&&this.init(a,b)} Nb(Mm,Km);var Nm={2:"touch",3:"pen",4:"mouse"}; Mm.prototype.init=function(a,b){var c=this.type=a.type,e=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.o=b;if(b=a.relatedTarget){if(Xc){a:{try{Rc(b.nodeName);var f=!0;break a}catch(h){}f=!1}f||(b=null)}}else"mouseover"==c?b=a.fromElement:"mouseout"==c&&(b=a.toElement);this.relatedTarget=b;e?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY|| 0):(this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.key=a.key||"";this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.pointerId=a.pointerId||0;this.pointerType="string"===typeof a.pointerType?a.pointerType:Nm[a.pointerType]||"";this.state=a.state;this.ha=a;a.defaultPrevented&&Mm.Sf.preventDefault.call(this)}; Mm.prototype.stopPropagation=function(){Mm.Sf.stopPropagation.call(this);this.ha.stopPropagation?this.ha.stopPropagation():this.ha.cancelBubble=!0}; Mm.prototype.preventDefault=function(){Mm.Sf.preventDefault.call(this);var a=this.ha;a.preventDefault?a.preventDefault():a.returnValue=!1};var Om="closure_listenable_"+(1E6*Math.random()|0);function Pm(a){return!(!a||!a[Om])} ;var Qm=0;function Rm(a,b,c,e,f){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.capture=!!e;this.Eo=f;this.key=++Qm;this.Ve=this.Pn=!1} function Sm(a){a.Ve=!0;a.listener=null;a.proxy=null;a.src=null;a.Eo=null} ;function Tm(a){this.src=a;this.o={};this.ha=0} Tm.prototype.add=function(a,b,c,e,f){var h=a.toString();a=this.o[h];a||(a=this.o[h]=[],this.ha++);var k=Um(a,b,e,f);-1>>0);function bn(a){if("function"===typeof a)return a;a[kn]||(a[kn]=function(b){return a.handleEvent(b)}); return a[kn]} ;function ln(){Im.call(this);this.ma=new Tm(this);this.Nc=this;this.Ob=null} Nb(ln,Im);ln.prototype[Om]=!0;p=ln.prototype;p.nr=function(){return this.Ob}; p.addEventListener=function(a,b,c,e){$m(this,a,b,c,e)}; p.removeEventListener=function(a,b,c,e){hn(this,a,b,c,e)}; p.dispatchEvent=function(a){var b=this.nr();if(b){var c=[];for(var e=1;b;b=b.nr())c.push(b),++e}b=this.Nc;e=a.type||a;if("string"===typeof a)a=new Km(a,b);else if(a instanceof Km)a.target=a.target||b;else{var f=a;a=new Km(e,b);Hc(a,f)}f=!0;if(c)for(var h=c.length-1;!a.ka&&0<=h;h--){var k=a.o=c[h];f=k.Yl(e,!0,a)&&f}a.ka||(k=a.o=b,f=k.Yl(e,!0,a)&&f,a.ka||(f=k.Yl(e,!1,a)&&f));if(c)for(h=0;!a.ka&&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 sn(a,b,c){if(Array.isArray(b))for(var e=0;e>>0);a={requestId:c,Sy:Rn(a,b,c),onLoad:b.onLoad,onError:b.onError||function(){}, ep:b.ep||function(){}, ZB:b.ZB||function(){}, nq:b.nq,Jz:b.pageType,Ck:b.Ck};b.qd&&("IFRAME"==b.qd.nodeName?(a.window=b.qd.contentWindow,a.qd=a.window.document.body):(a.window=window,a.qd=b.qd));return a} function Rn(a,b,c){var e=Sn(a)+"/apis/render?",f=a.ua,h=a.Ba,k=b.helpcenter,l=a.ta,n=a.va,r=a.Ha,t=a.Ga,w=a.Aa,x=b.pageType,A=b.pageId,pa=b.url,qa=b.Xg,sa=b.EF;c=["js_request_id."+c];if(b.extraParams)for(var va in b.extraParams)c.push(va+"."+b.extraParams[va]);a={v:1,key:f,request_source:h,helpcenter:k,hl:l,authuser:n,visit_id:r,view_id:t,psd:w,page_type:x,id:A,url:pa,components:qa,exclude_components:sa,extra_params:c,mendel_ids:a.ya,service_configuration:a.Ea,scdeb:a.wa,instant_preview:b.instantPreview, symptom:b.symptom};b="";for(var za in a)f=a[za],void 0!=f&&(Array.isArray(f)&&(f=f.join()),b&&(b+="&"),b+=za+"="+encodeURIComponent(f.toString()));return e+b} function Qn(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.Ck){if(!e.page_metadata||!e.page_metadata.page_type){b.onError({type:4});return}if(se.get(e.page_metadata.page_type)!=b.Jz){b.onError({type:3});return}}e.page_metadata&&b.ep(e.page_metadata);b.qd?Tn(a,b,e.html):b.nq(function(f){"IFRAME"==f.nodeName?(b.window=f.contentWindow,b.qd=b.window.document.body):(b.window=window,b.qd=f);Tn(a,b,e.html)})}else b.onError({type:2})} function Tn(a,b,c){b.window.sc_scope=b.qd;b.onLoad&&(b.window[b.requestId]=function(e){b.onLoad(e.getChild(b.requestId))}); dg(b.qd,Bn(c));c=Array.from(b.qd.getElementsByTagName("script"));a.ka(b,c)} Ln.prototype.ka=function(a,b){for(;0a.ha.length;a.oa()} ;var Yn=df(Se(Te("//www.youtube.com/player_api")));function Zn(a,b){a=Sg("play",a);b=Sg("play",b);return b===a?"":b} ;function $n(a){this.Aa="modal-backdrop "+a.className;this.va=a.Hl;this.ma=a.hv;this.wa=a.uz;this.oa=a.QD;this.ya=this.na=!1;this.ha=new vm;ao(this)} function ao(a){a.o=document.createElement("div");a.o.className=a.Aa;a.o.setAttribute("aria-hidden",!0);a.o.addEventListener("click",function(b){b.target==a.o&&(a.ka&&!a.ka()||a.close())}); a.ha.init(a.o,function(){a.ka&&!a.ka()||a.close()}); a.oa?(a.oa.parentNode.replaceChild(a.o,a.oa),a.di(a.oa)):document.body.appendChild(a.o)} p=$n.prototype; p.close=function(){this.o.setAttribute("aria-hidden",!0);this.o.style.zIndex="";xm(this.ha,!1);Jg(this.o,this.va,!1);var a;if(a=null!=document.activeElement)a=0!=(document.activeElement.compareDocumentPosition(this.o)&Node.DOCUMENT_POSITION_CONTAINS);if(a)for(;0a||5a?a=0:a>c&&(a=c);return a-b} function mo(a){a.preventDefault()} ;function po(a,b,c){a.timeOfStartCall=(new Date).getTime();var e=c||wb,f=e.document,h=a.nonce||Bg(e);h&&!a.nonce&&(a.nonce=h);if("help"==a.flow){var k=xb("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 n in a)b=a[n],null==b||Cb(b)||(e+=encodeURIComponent(n)+"="+encodeURIComponent(b)+"&");a=$h(Ph(f),"SCRIPT");h&&a.setAttribute("nonce",h);ig(a,Dn(e));f.body.appendChild(a)}} Mb("userfeedback.api.startFeedback",po);function qo(a){window.sc_trackStatsEvent(49,8);ro(a)} function ro(a){var b=a.productId,c=a.bucket,e=void 0===a.flow?"material":a.flow,f=void 0===a.Dq?!1:a.Dq,h=void 0===a.Qy?!0:a.Qy,k=a.BC,l=a.hb,n=a.onLoad,r=a.payload;a=a.description;var t=Qg(),w={};b=(w.flow=e,w.locale=t.lang,w.productId=b,w.disableSubmit=f,w);c&&(b.bucket=c);l&&(b.callback=l);n&&(b.onLoadCallback=n);t.sb_uri&&(b.serverUri=t.sb_uri);k&&(b.reportDataCallback=k);b.allowNonLoggedInFeedback=h;"submit"===e&&(b.report={description:a});var x={};r.forEach(function(A,pa){x[pa]=A}); po(b,x)} ;function so(){var a=Qg();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",to()]]);a.set("escalation_availability_matching_frd_forms",xh().escalation_availability_matching_frd_forms);a.set("rule_service_escalation_availability_c2c_event_id",xh().rule_service_escalation_availability_c2c_event_id); a.set("rule_service_escalation_availability_c2c_synthesis_event_id",xh().rule_service_escalation_availability_c2c_synthesis_event_id);a.set("rule_service_escalation_availability_chat_event_id",xh().rule_service_escalation_availability_chat_event_id);a.set("rule_service_escalation_availability_chat_synthesis_event_id",xh().rule_service_escalation_availability_chat_synthesis_event_id);a.set("rule_service_escalation_availability_email_event_id",xh().rule_service_escalation_availability_email_event_id); a.set("rule_service_escalation_availability_email_synthesis_event_id",xh().rule_service_escalation_availability_email_synthesis_event_id);a.set("rule_service_escalation_availability_phone_event_id",xh().rule_service_escalation_availability_phone_event_id);a.set("rule_service_escalation_availability_phone_synthesis_event_id",xh().rule_service_escalation_availability_phone_synthesis_event_id);a.set("rule_service_extensible_contact_options_event_id",xh().rule_service_extensible_contact_options_event_id); a.set("rule_service_helpcenter_fields_synthesis_event_id",xh().rule_service_helpcenter_fields_synthesis_event_id);return a} function to(){var a=Qg().rs;switch(a){case 4:return"cases";case 1:return"helpcenter";default:return String(a)}} ;function uo(){vo(this)} function vo(a){a.o=(new $n({className:"material-dialog-backdrop",Hl:"material-dialog-backdrop--active",hv:"material-dialog-backdrop--locked",uz:"material-dialog-backdrop--disable-click-capture"})).Rt(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),Ng(b,"material-dialog--disable-close")||a.close())})} uo.prototype.open=function(a){var b=this,c=a.querySelector(".material-dialog__title");c&&oo(c,a).reset().enable(Ng(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.ma=function(){return e.removeEventListener("click",h)}; e.addEventListener("click",h)}this.oa=Ng(a,"material-dialog--disable-close");this.o.Ts(!Ng(a,"material-dialog--show-background")).Qs(Ng(a,"material-dialog--disable-click-capture")).di(a).open();a.focus();return this}; uo.prototype.close=function(){this.o.close();this.ma&&this.ma();this.ka&&this.ka()}; uo.prototype.$c=function(a){this.ha=a;return this}; uo.prototype.hb=function(a){this.ka=a;return this}; uo.prototype.onClose=uo.prototype.hb;uo.prototype.onAction=uo.prototype.$c;uo.prototype.close=uo.prototype.close;uo.prototype.open=uo.prototype.open;function wo(a,b){var c=null;return function(e){for(var f=[],h=0;hc||0>a?0:a+b>=c?c-b:a} function Go(a){switch(a){case 1:case 3:return"100%";case 2:case 4:return"0%";default:return"50%"}} function Ho(a){var b,c;return null!==(c=null===(b=a.getElement())||void 0===b?void 0:b.getRootNode())&&void 0!==c?c:document} ;function Mo(a){var b=a.content,c=void 0===a.Dg?!0:a.Dg,e=void 0===a.Ml?"placement-start":a.Ml,f=void 0===a.pq?"alignment-start":a.pq,h=void 0===a.style?"style-normal":a.style,k=a.Wn,l=te(a,"content useFixedBackdrop caretPlacement caretAlignment style containerPadding".split(" "));E.call(this,"sc.shared.MaterialRichTooltip");var n=this;this.ha=!1;this.vd=this.Id=0;this.ma=b;this.Dg=c;this.ta=e;this.na=f;this.ua=h;this.Wn=k;this.o=new Fo(Object.assign({content:function(){No(n)}, Ip:!0,an:!1,Rl:!1},l))} y(Mo,E);p=Mo.prototype;p.open=function(a){this.Dg?this.o.open(a):(this.ha=!0,this.Ca())}; p.isOpen=function(){return this.Dg?this.o.isOpen():this.ha}; p.close=function(){this.Dg?this.o.close():(this.ha=!1,this.Ca())}; function Oo(a,b){var c=b.Id;b=b.vd;a.Dg||(a.Id=null!==c&&void 0!==c?c:a.Id,a.vd=null!==b&&void 0!==b?b:a.vd,a.Ca())} p.ie=function(){return!0}; p.content=function(){var a=this;this.Dg?this.o.render():this.element("div","class","popup-container","style",{visibility:this.ha?"visible":"hidden",transform:"translate("+this.Id+"px, "+this.vd+"px)"},function(){No(a)})}; function No(a){a.element("div","class","root "+a.ta+" "+a.ua,function(){a.element("div","class","container","style",{padding:a.Wn},a.ma);a.element("div","class","clip-track "+a.na,function(){a.element("div","class","clip",function(){a.element("div","class","caret")})})})} ;var Po={ND:!1,Jl:!0};function Qo(){E.call(this,"sc.shared.MaterialSnackbar");this.ha=new fl;this.message="";this.Yj=5E3;this.Op=!1;this.state=2} y(Qo,E);Qo.prototype.open=function(a){var b=this,c=a.message,e=a.action,f=void 0===a.Yj?5E3:a.Yj;a=void 0===a.Op?!1:a.Op;if(0===this.state)return Promise.resolve();this.state=0;this.message=c;this.Yj=f;this.Op=a;e?this.action=Object.assign(Object.assign({},Po),e):this.action=void 0;this.Ca();Ro(this);return new Promise(function(h){b.hb=h})}; Qo.prototype.close=function(){0===this.state&&(this.o&&clearTimeout(this.o),this.state=1,this.message="",this.Ca())}; Qo.prototype.content=function(){var a=this;this.element("div","class",{root:!0,widescreen:this.Op,"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.ND},"ontransitionend",function(c){var e;"opacity"===c.propertyName&&0!==a.state&&2!==a.state&&(a.state=2,a.Ca(),null===(e=a.hb)||void 0===e?void 0:e.call(a))},function(){a.element("div","role","status","aria-live", "assertive","class","message",a.message); So(a)})})}; function So(a){a.action&&a.element("div","class","action",function(){a.ha.render({text:a.action.actionText,trigger:function(){var b,c;a.action.Jl&&a.close();null===(c=(b=a.action).$c)||void 0===c?void 0:c.call(b)}})})} function Ro(a){a.action||(a.o=setTimeout(function(){a.close()},a.Yj))} ;function To(){this.ma=[];this.ha=!1;this.oa=new Qo} To.prototype.initialize=function(a){a=void 0===a?document.body:a;if(this.ha)return this;this.ha=!0;Uo(this,a);return this}; To.prototype.open=function(a){this.ha&&(this.ma.push(a),Vo(this))}; To.prototype.close=function(){this.oa.close()}; To.prototype.Xa=function(){ue(this,function b(){var c=this;return mb(b,function(e){if(1==e.o)return c.ha?c.ka?Qa(e,c.ka,2):e.Va(2):e.return(c);c.o&&c.o.parentElement&&(c.o.parentElement.removeChild(c.o),c.o=void 0);c.ha=!1;return e.return(c)})})}; function Vo(a,b){b=void 0===b?!1:b;var c;ue(a,function f(){var h=this,k;return mb(f,function(l){if(1==l.o){k=h;if(!b&&h.ka)return l.return();if(0===h.ma.length)return null===(c=h.na)||void 0===c?void 0:c.call(h),delete h.ka,delete h.na,l.return();h.ka||(h.ka=new Promise(function(n){k.na=n})); return Qa(l,h.oa.open(h.ma[0]),2)}h.ma.shift();Vo(h,!0);Wa(l)})})} function Uo(a,b){"interactive"===document.readyState||"complete"===document.readyState?Wo(a,b):window.addEventListener("DOMContentLoaded",function(){Wo(a,b)})} function Wo(a,b){a.o=document.createElement("div");b.appendChild(a.o);qk(a.o,function(){a.oa.render()})} var Xo=new To;function Yo(a){var b=void 0===a?{}:a;a=void 0===b.size?"mspin-small":b.size;b=void 0===b.Rn?!1:b.Rn;E.call(this,"sc.shared.MaterialSpinner");this.size=a;this.Rn=b} y(Yo,E);Yo.prototype.content=function(){var a=this;this.element("div","class","mspin "+this.size+" "+(this.Rn?"mspin-centered":""),function(){a.element("div",function(){a.element("div")})})};function Zo(a){Jk.call(this);this.inputType="";this.fh=!1;this.Fe=!0;this.uk=this.rows=0;this.om=this.text=this.label="";this.Xb=this.filled=!1;this.Me=!0;this.disabled=this.Bp=!1;this.placeholder="";this.hf=[];this.error="";this.maxLength=void 0;this.yd=!1;this.Be(a)} y(Zo,Jk);p=Zo.prototype; p.Be=function(a){var b=void 0===a.fh?!1:a.fh,c=void 0===a.Fe?!0:a.Fe,e=void 0===a.rows?0:a.rows,f=void 0===a.uk?0:a.uk,h=void 0===a.label?"":a.label,k=void 0===a.placeholder?"":a.placeholder,l=void 0===a.text?"":a.text,n=void 0===a.om?"":a.om,r=void 0===a.filled?!1:a.filled,t=void 0===a.Xb?!1:a.Xb,w=void 0===a.Me?!0:a.Me,x=void 0===a.Bp?!1:a.Bp,A=void 0===a.disabled?!1:a.disabled,pa=void 0===a.Pd?void 0:a.Pd,qa=void 0===a.hh?void 0:a.hh,sa=void 0===a.Lf?void 0:a.Lf,va=void 0===a.hf?["self"]:a.hf, za=void 0===a.error?"":a.error,Ca=a.maxLength,Ma=void 0===a.yd?!1:a.yd;this.inputType=void 0===a.inputType?"":a.inputType;this.fh=b;this.rows=e;this.uk=f;this.label=h;this.placeholder=k;this.text=l;this.om=n;this.filled=r;this.Xb=t;this.Me=w;this.Bp=x;this.disabled=A;this.Pd=pa;this.hh=qa;this.Lf=sa;this.hf=va;this.error=za;this.Fe=c;this.maxLength=Ca;this.yd=Ma}; p.mk=function(){return this.Fe}; p.Cb=function(){return this.label}; p.Ja=function(){return this.text}; p.nb=function(a){a!==this.text&&(this.text=a,Mk(this,0))}; p.Yb=function(a){a!==this.disabled&&(this.disabled=a,Mk(this,3))}; p.od=function(){return this.maxLength};function $o(a){a=void 0===a?{}:a;E.call(this,"sc.shared.MaterialTextField");this.labelId=Ik();this.na=Ik();this.o=null;this.ma=!1;this.model=a instanceof Zo?a:new Zo(a);Dk(this,this.model)} y($o,E);function ap(a){return a.model.mk()?a.o?a.o:new Bo({label:a.model.placeholder,vm:a.model.Cb()?void 0:bp(a),floatingLabel:a.model.Me,disabled:a.model.disabled,filled:a.model.filled,Xb:a.model.Xb,Bg:function(){return""!==a.model.Ja()}}):null} p=$o.prototype; p.content=function(a){var b=this;a&&this.model.Be(a);this.o=ap(this);this.element("div","class","root",function(){b.model.Cb()&&b.element("label","class","label","id",b.labelId,b.model.Cb());b.o&&(b.o.error=!!b.model.error);b.element("div","class",{"input-container":!0,multiline:b.model.fh,dense:b.model.Xb,invalid:b.model.error,outlined:!b.model.filled,filled:b.model.filled,disabled:b.model.disabled},function(){b.element(b.model.Cb()?"div":"label","class",{box:!0,"box-no-label":b.model.filled&&!b.model.Me, "filled-box":b.model.filled&&!b.model.Xb&&(b.model.Me||b.model.fh),"filled-label":b.model.filled&&!b.model.Xb&&b.model.Me,"outlined-box":!b.model.filled&&b.model.Me},function(){b.ha=b.element(b.model.fh?"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",cp(b),"maxlength",b.model.od(),"onfocus",function(){return void b.hh()},"onblur",function(){return void b.Lf()},"oninput",function(){var f,h=b.ha.value; b.model.nb(h);null===(f=b.model.Pd)||void 0===f?void 0:f(h)},"aria-required",b.model.yd); b.ha.value=b.model.Ja();if(b.model.fh&&0===b.model.rows){var e=dp(b);b.ha.style.height=e+"px";0===e&&(b.ha.style.overflowY="hidden")}}); b.o&&(b.o.render(),Eo(b.o,b.model.placeholder))}); var c=b.model.error||b.model.om;c&&(b.element("div","id",b.na,"class",{"helper-text":!0,"helper-text-invalid":b.model.error,"helper-text-disabled":b.model.disabled,"helper-text-filled":b.model.filled,"helper-text-outlined":!b.model.filled,"helper-text-hidden":!b.model.error&&b.model.Bp&&!b.ma},c),b.ha.setAttribute("aria-describedby",b.na))})}; function cp(a){return a.model.hf?a.model.hf.map(function(b){return"self"===b?bp(a):b}).join(" "):bp(a)} function bp(a){if(a.model.Cb()||a.model.placeholder)return a.labelId} function dp(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.Ja()+"\u200b");if(a.model.uk){var e="\n".repeat(a.model.uk-1);a=a.element("div","class","expander","style","width: "+c+"px",""+e+"\u200b");return Math.min(b.clientHeight,a.clientHeight)}return b.clientHeight} p.hh=function(){var a;this.ma=!0;this.o&&this.o.focus();null===(a=this.model.hh)||void 0===a?void 0:a();this.Ca()}; p.Lf=function(){var a;this.ma=!1;this.o&&this.o.blur();null===(a=this.model.Lf)||void 0===a?void 0:a();this.Ca()}; p.Ja=function(){return this.model.Ja()}; p.nb=function(a){this.model.nb(a)}; function ep(a,b){a=a.model;b!==a.error&&(a.error=b,Mk(a,2))} p.hasError=function(){return!!this.model.error}; p.Yb=function(a){this.model.Yb(a)}; p.focus=function(){this.ha.focus()};function fp(a){var b=void 0===a.text?"":a.text,c=a.trigger,e=void 0===a.Fp?"":a.Fp,f=void 0===a.isRtl?!1:a.isRtl,h=void 0===a.sk?!0:a.sk,k=void 0===a.Pf?!1:a.Pf,l=void 0===a.Lk?10:a.Lk;a=void 0===a.bn?0:a.bn;E.call(this,"sc.shared.MaterialTooltip");var n=this;this.o=!1;this.Lk=l;this.bn=a;this.isRtl=f;this.text=b;this.trigger=c;this.Fp=e;this.sk=h;this.Pf=k;this.activate=function(){if(!n.Pf||gp(n,n.trigger))n.o=!0,n.Ca()}; this.deactivate=function(){n.o=!1;n.Ca()}; this.ha=function(r){var t=r.clientX,w=r.clientY;r=n.container.getBoundingClientRect();var x=r.right,A=r.bottom;w=r.top<=w&&w<=A;r.left<=t&&t<=x&&w||n.deactivate()}} y(fp,E);fp.prototype.content=function(){var a=this;hp(this);this.container=this.element("div","class","container","style",{display:this.o?"":"none",transform:this.isRtl?"translateX(-100%)":void 0,direction:this.isRtl?"rtl":void 0,"max-height":this.sk?"7rem":void 0},function(){var h=vk(a.text);h.classList.add(ip+"blob");for(var k=u(a.Fp.split(/ +/)),l=k.next();!l.done;l=k.next())(l=l.value)&&h.classList.add(l);a.sk?(h.style.webkitLineClamp="5",h.style.whiteSpace="normal"):h.style.display="inline-block"}); this.container.style.top="0";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=this.isRtl?e-this.Lk+"px":e+c.width+this.Lk+"px";this.container.style.marginTop=f-c.height/4+this.bn+"px";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)}; fp.prototype.Ca=function(){E.prototype.Ca.call(this);var a=this.getElement().firstChild;if(a){var b=window.innerHeight,c=document.documentElement.clientWidth,e=a.getBoundingClientRect();if(this.isRtl)0>=e.x&&(a.style.left=a.offsetWidth+10+"px");else 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")}}; fp.prototype.ue=function(){hp(this)}; function hp(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 gp(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(gp(a,c.value))return!0;return!1} var ip=zk("sc.shared.MaterialTooltip");function jp(a){return window.matchMedia("(max-width: "+a+")").matches} function kp(){return jp("37.5rem")} ;function lp(){this.ha={};this.o=0} p=lp.prototype;p.format=function(a){var b=Kh("SafeHtmlFormatter:");a=Kh(a).replace(new RegExp("\\{"+b+"[\\w&#;]+\\}","g"),Jb(this.xC,this,[]));return Qf(a,null)}; p.xC=function(a,b){a=this.ha[b];if(!a)return b;b="";a.Vc&&(b+="<"+a.Vc+a.attributes+">");a.html&&(b+=a.html);a.Oc&&(b+="");return b}; p.Vc=function(a,b){Rf(a);return mp(this,{Vc:a,attributes:Xf(b)})}; p.Oc=function(a){Rf(a);return mp(this,{Oc:a})}; p.text=function(a){return mp(this,{html:Kh(a)})}; p.safeHtml=function(a){return mp(this,{html:Of(a).toString()})}; function mp(a,b){a.o++;var c="{SafeHtmlFormatter:"+a.o+"_"+Oh()+"}";a.ha[Kh(c)]=b;return c} ;function np(a){this.ha=a;this.ka={};(a=Qg().hc)&&(this.ka.helpcenter=a)} p=np.prototype;p.aj=function(a){this.na=a;return this}; p.onError=function(a){this.ma=a;return this}; p.$r=function(a){this.oa=a;return this}; p.mh=function(a,b){this.ka[a]=b;return this}; p.start=function(){var a=this,b=new XMLHttpRequest;b.open("POST",Qg().upload_hostname+"/upload");b.withCredentials=!0;b.addEventListener("load",function(){try{var c=JSON.parse(b.responseText);op(a,c.sessionStatus.externalFieldTransfers[0].formPostInfo.url)}catch(e){pp(a)}}); b.addEventListener("error",function(){return pp(a)}); b.addEventListener("abort",function(){return pp(a)}); b.send(qp(this));return this}; function op(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){pp(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 pp(a)}); c.addEventListener("abort",function(){return pp(a)}); b=new FormData;b.append("Filedata",a.ha,a.ha.name);c.send(b)} function pp(a){a.ma&&a.ma()} function qp(a){var b=[{external:{name:"file",filename:a.ha.name,formPost:{}}}],c;for(c in a.ka)b.push({inlined:{name:c,content:a.ka[c],contentType:"text/plain"}});return JSON.stringify({protocolVersion:"0.8",createSessionRequest:{fields:b}})} p.aA=function(){return this.o}; p.Kh=function(){return this.ta}; np.prototype.getDocumentId=np.prototype.Kh;np.prototype.getCnsFilename=np.prototype.aA;np.prototype.start=np.prototype.start;np.prototype.setMetadata=np.prototype.mh;np.prototype.onProgress=np.prototype.$r;np.prototype.onError=np.prototype.onError;np.prototype.onSuccess=np.prototype.aj;var rp={"alumnus_expert.svg":Te('\n'),"bronze_expert.svg":Te('\n'), "community_specialist.svg":Te('\n'),"diamond_expert.svg":Te('\n'), "error_computer.svg":Te('\n'), "gold_expert.svg":Te('\n'), "google_employee.svg":Te('\n'),"legacy_expert.svg":Te('\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n'), "logo_googleg_48dp.svg":Te('\n \n \n \n \n \n\n'), "page_desktop.svg":Te('\n'), "page_desktop_dark.svg":Te('\n'), "platinum_expert.svg":Te('\n'), "play.svg":Te('\n'),"search.svg":Te('\n'), "silver_expert.svg":Te('\n'), "stop.svg":Te('\n'),"workflow.svg":Te('\n'), "workflow_dark.svg":Te('\n')};function sp(a){E.call(this,"sc.shared.TsAssetInterop");this.o=a} y(sp,E);sp.prototype.content=function(){vk(rp[this.o])};var tp=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"]]),up=new Map([[0,"workflow_dark.svg"]]); function vp(a){var b=void 0===a.Ab?!1:a.Ab,c=void 0===a.Zq?!1:a.Zq,e=a.icon,f=void 0===a.isDarkMode?!1:a.isDarkMode,h=void 0===a.size?24:a.size;a=a.title;E.call(this,"sc.icon.Icon");f=f&&up.has(e)?up.get(e):tp.get(e);if(void 0===f)throw Error("The icon asset "+e+" is undefined.");this.Ab=b;this.Zq=c;this.size=h;this.o=new sp(f);this.title=a} y(vp,E);vp.prototype.content=function(){var a=this;this.element("div","class",{root:!0,baseline:this.Ab,flip:this.Zq},"title",this.title,"style",{height:this.size+"px",width:this.size+"px"},function(){a.o.render()})};function wp(a){z.call(this,a,-1,xp)} y(wp,z);var xp=[1,2,3,4];function yp(a){z.call(this,a,-1,zp)} y(yp,z);var zp=[2];function Ap(a){z.call(this,a,31,Bp)} y(Ap,z);Ap.prototype.Pb=ma(4);Ap.prototype.Lc=ma(5);var Bp=[3,20,27];function Cp(a){if(!a)return"";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 Dp(){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 x=k,A=0;64>A;A+=4)x[A/4]=w[A]<<24|w[A+1]<<16|w[A+2]<<8|w[A+3];for(A=16;80>A;A++)w=x[A-3]^x[A-8]^x[A-14]^x[A-16],x[A]=(w<<1|w>>>31)&4294967295;w=f[0];var pa=f[1],qa=f[2],sa=f[3],va=f[4];for(A=0;80>A;A++){if(40>A)if(20>A){var za=sa^pa&(qa^sa);var Ca=1518500249}else za=pa^qa^sa,Ca=1859775393;else 60>A?(za=pa&qa|sa&(pa|qa),Ca=2400959708):(za=pa^qa^sa,Ca=3395469782);za=((w<<5|w>>>27)&4294967295)+za+va+Ca+x[A]&4294967295;va=sa;sa=qa;qa=(pa<<30|pa>>>2)&4294967295;pa=w;w=za}f[0]=f[0]+ w&4294967295;f[1]=f[1]+pa&4294967295;f[2]=f[2]+qa&4294967295;f[3]=f[3]+sa&4294967295;f[4]=f[4]+va&4294967295} function c(w,x){if("string"===typeof w){w=unescape(encodeURIComponent(w));for(var A=[],pa=0,qa=w.length;par?c(l,56-r):c(l,64-(r-56));for(var A=63;56<=A;A--)h[A]=x&255,x>>>=8;b(h);for(A=x=0;5>A;A++)for(var pa=24;0<=pa;pa-=8)w[x++]=f[A]>>pa&255;return w} for(var f=[],h=[],k=[],l=[128],n=1;64>n;++n)l[n]=0;var r,t;a();return{reset:a,update:c,digest:e,digestString:function(){for(var w=e(),x="",A=0;Al?"":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:"")}; p.get=function(a,b){for(var c=a+"=",e=(this.o.cookie||"").split(";"),f=0,h;fa.xd()?"https://www.google.com/log?format=json&hasfast=true":"https://play.google.com/log?format=json&hasfast=true");return a.Ga} p.dispatch=function(a){if(a instanceof Ap)this.log(a);else{var b=new Ap;a=a.Hb();b=Vd(b,8,a);this.log(b)}}; function qq(a,b){b?(a.ka||(a.ka=new yp),b=b.Hb(),Vd(a.ka,4,b)):a.ka&&Vd(a.ka,4,void 0)} function rq(a){a.Ua=a.Ld} function sq(a,b){a.na=new Np(1>b?1:b);nn(a.o,a.na.Sa())} p.log=function(a){a=a.clone();var b=this.De++;Vd(a,21,b);this.Ba&&Vd(a,26,this.Ba);if(!Qd(a,1)){b=a;var c=Date.now().toString();Vd(b,1,c)}Rd(a,15)||Vd(a,15,60*(new Date).getTimezoneOffset());this.ka&&(b=this.ka.clone(),de(a,16,b));for(;1E3<=this.ha.length;)this.ha.shift(),++this.va;this.ha.push(a);this.dispatchEvent(new tq(a));this.Ha||this.o.enabled||this.o.start()}; p.flush=function(a,b){var c=this;if(0===this.ha.length)a&&a();else if(this.Ma)uq(this);else{var e=Date.now();if(this.lc>e&&this.RaA||401===A||0===A)c.ha=pa.concat(c.ha),c.Ha||c.o.enabled||c.o.start();b&&b("net-send-failed",A)},x=function(){c.Qa?c.Qa.send(r,t,w):c.yc(r,t,w)}; n?n.then(function(A){r.Hs["Content-Encoding"]="gzip";r.Hs["Content-Type"]="application/binary";r.body=A;r.bz=2;x()},function(){x()}):x()}}}}; p.Yq=function(){this.Aa||(this.Ua&&uq(this),this.Da&&vq(this),this.flush())}; function uq(a){wq(a,32,10,function(b,c){b=vn(b,"format","json");b=window.navigator.sendBeacon(b,c.Hb());a.Ma&&!b&&(a.Ma=!1);return b})} function vq(a){wq(a,6,5,function(b,c){c=c.Hb();for(var e=[],f=0,h=0;h>=8);e[f++]=k}c=pd(e,3);b=un(b,"format","base64json","p",c);if(15360 .heading").getAttribute("data-search-dym-tracking-id"),a.Fs(f,b,h,e,c)):(e=""!==Og("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 Eq(a,b){function c(){h&&k&&((window.sc_delayLocationHandler=e)?e(f):gh(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()}} p.fj=function(a,b,c,e,f,h,k,l,n,r){b=Fq(n?"suggestion_clicked":"search_results_clicked",b,k,l);Bq(b,"q",a);Bq(b,"clickRank",c);Bq(b,"resultId",e);Bq(b,"requestId",f);Bq(b,"shownContentList",h);Gq(this,b,h,r)}; p.Fs=function(a,b,c,e,f){c=Fq("sugesstion_clicked",c);Bq(c,"q",a);e&&Bq(c,"dymTrackingId",e);Gq(this,c,b,f)}; p.Es=function(a,b,c){b=Fq("autocomplete_search_query",Qg().visit_id,b);Bq(b,"q",a);Gq(this,b,"",c)}; p.Cs=function(a,b,c,e){c=Fq("autocomplete_results_clicked",Qg().visit_id,c);Bq(c,"q",a);Bq(c,"shownContentList",b);Gq(this,c,b,e)}; p.Ds=function(a,b){b=Fq("autocomplete_click_impressions",Qg().visit_id,b);Bq(b,"shownContentList",a.join("|"));Hq(this,b,"sc_nullFunction")}; function Gq(a,b,c,e){e&&e instanceof Function?(window.sc_searchMetricsLinkCallback=function(){e(c)},Hq(a,b,"sc_searchMetricsLinkCallback")):Hq(a,b,"sc_nullFunction")} p.Lv=function(a){var b=Fq("article_help_link_clicked",Qg().visit_id,"help");Bq(b,"url",a);Hq(this,b,"sc_nullFunction")}; p.Rv=function(a){var b=Fq("opened_to_article",Qg().visit_id,"help");Bq(b,"shownContentList",a);Hq(this,b,"sc_nullFunction")}; p.Km=function(a,b,c,e,f,h,k,l){e=e||Og("query")||Og("q");h=h||""!==Og("symptom");a=Fq(h?"shown_suggestions":"shown_search_results",a,f,k);Bq(a,"q",e);Bq(a,"requestId",b);Bq(a,"shownContentList",c.join("|"));l&&Bq(a,"dymTrackingId",l);Hq(this,a,"sc_nullFunction")}; function Iq(a,b,c){b=Fq(b,Qg().visit_id,"help");c&&Bq(b,"contactMode",c);Hq(a,b,"sc_nullFunction")} p.Ov=function(){Iq(this,"nd4c_requested")}; p.Nv=function(){Iq(this,"shown_contact_us","nd4c_email")}; p.Mv=function(){Iq(this,"contact_us_clicked","nd4c_email")}; p.Qv=function(){Iq(this,"shown_contact_us","nd4c_phone")}; p.Pv=function(){Iq(this,"contact_us_clicked","nd4c_phone")}; p.hj=function(a,b,c,e,f,h){a=Fq(void 0===h?"suggestion_clicked":h,a);Bq(a,"requestId",b);Bq(a,"resultId",c);void 0!==e&&Bq(a,"clickRank",e);void 0!==f&&Bq(a,"shownContentList",f);Hq(this,a,"sc_nullFunction")}; function Fq(a,b,c,e){a=Bq(Bq(Bq(Bq(Bq(Bq(Bq(new Aq,"flow",c||"support-content"),"gfSessionId",b),"hcName",Qg().hc),"locale",Qg().lang),"authuser",Qg().au),"useAnonymousMetrics","false"),"userAction",a);(e=e||Jq())&&Bq(a,"productSpecificContext",e);"help"===c&&Bq(a,"useInappHelpPanel","true");(c=th("productEscalationsId"))&&Bq(a,"productId",c);return a} function Jq(){var a=Qg().query_params.find(function(b){return"ec"==b.key}); return a?a.value:""} function Hq(a,b,c){if(a.o||"true"===th("initializeMojoMetrics")){Bq(b,"callback",c);a=Vh(document,"SCRIPT");a.onerror=window[c];var e=Object.fromEntries(b.ka.entries());c=Object.fromEntries(b.o.entries());b=af(b.ha,e);b=Ye(b).toString();b=ef.exec(b);e=b[3]||"";c=df(b[1]+ff("?",b[2]||"",c)+ff("#",e,void 0));ig(a,c);document.body.appendChild(a)}} Cq.prototype.reportSearchResultsFeatureClick=Cq.prototype.hj;Cq.prototype.reportND4CTfnClicked=Cq.prototype.Pv;Cq.prototype.reportND4CTfnDisplayed=Cq.prototype.Qv;Cq.prototype.reportND4CEmailClicked=Cq.prototype.Mv;Cq.prototype.reportND4CEmailDisplayed=Cq.prototype.Nv;Cq.prototype.reportND4CRequested=Cq.prototype.Ov;Cq.prototype.reportImpressions=Cq.prototype.Km;Cq.prototype.reportOpenedToArticle=Cq.prototype.Rv;Cq.prototype.reportArticleHelpLinkClicked=Cq.prototype.Lv; Cq.prototype.reportAutocompleteImpressions=Cq.prototype.Ds;Cq.prototype.reportAutocompleteClick=Cq.prototype.Cs;Cq.prototype.reportAutocompleteSearch=Cq.prototype.Es;Cq.prototype.reportSpellingClick=Cq.prototype.Fs;Cq.prototype.reportClick=Cq.prototype.fj;Cq.prototype.setUpMojoReportingForSpelling=Cq.prototype.lw;Cq.prototype.setUpMojoReportingForSearchResults=Cq.prototype.kw;var Kq;Mb("hcfe.MojoMetrics",Cq); window.sc_initMojoMetrics=function(){Kq||(Kq=new Cq,Kq.kw(),Kq.lw(),window.sc_trackSearchResultImpressions=window.sc_trackSearchResultEnabledRceTracking?window.sc_nullFunction:Kq.Km.bind(Kq))};function Lq(){E.call(this,"sc.shared.material_dialog.DialogContent");this.o=new Yo} y(Lq,E);Lq.prototype.content=function(a){var b=this,c=a.title,e=a.content,f=a.yo,h=a.rb;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 Mq={vc:7,wc:7,Rl:!0,an:!0};function Nq(a){var b=this,c=a.content,e=void 0===a.scope?document.body:a.scope,f=a.mb,h=te(a,["content","scope","ariaLabel"]);this.ha=new Map;this.scope=e;this.o=new Fo(Object.assign(Object.assign(Object.assign({},Mq),h),{hb:function(){var k;if(b.Gc)for(var l=u(b.ha),n=l.next();!n.done;n=l.next()){var r=u(n.value);n=r.next().value;(r=r.next().value)||n.removeAttribute("aria-hidden")}null===(k=h.hb)||void 0===k?void 0:k.call(h)}, content:function(){uk("div","role","dialog","aria-modal","true","aria-label",f,c)}}))} Nq.prototype.initialize=function(){var a=this;if(this.Gc)return this;this.Gc=document.createElement("div");this.Gc.setAttribute("aria-live","polite");this.scope.appendChild(this.Gc);qk(this.Gc,function(){a.o.render()}); return this}; Nq.prototype.Xa=function(){this.Gc&&(this.o.close(),this.Gc.remove(),this.Gc=void 0)}; Nq.prototype.open=function(a){a=void 0===a?{}:a;this.initialize();if(this.Gc)for(var b=this.Gc;b&&b!==document.body;){var c=b,e=Oq(c);if(e){e=u(e.childNodes);for(var f=e.next();!f.done;f=e.next())f=f.value,c!==f&&Cb(f)&&1===f.nodeType&&(this.ha.set(f,"true"===f.getAttribute("aria-hidden")),f.setAttribute("aria-hidden","true"))}b=Oq(b)}this.o.open(Object.assign({Kb:!0},a))}; Nq.prototype.close=function(){this.o.close()}; function Oq(a){return a.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&a.host&&a.mode?a.host:a.parentNode} ;function Pq(a){a=a.wb;E.call(this,"sc.tailwind.shared.rich_text_editor.attachment.FailedOverlay");this.wb=a} y(Pq,E);Pq.prototype.content=function(){var a=this;this.element("button","class","root","onclick",function(){return void a.wb()},"Failed to attach file, click here to try again.")};function Qq(){E.call(this,"sc.tailwind.shared.rich_text_editor.attachment.LoadingOverlay");this.o=new Yo} y(Qq,E);Qq.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.o.render()})};function Rq(a){a=a.hd;E.call(this,"sc.tailwind.shared.rich_text_editor.attachment.RemoveButton");this.o=new Rk({icon:"gm/close",size:16,Ab:!0});this.overlay=new bl;this.hd=a} y(Rq,E);Rq.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.element("button","class","remove-button","aria-label","Remove attachment","onclick",function(){return void a.hd()},"onkeydown",function(b){"Backspace"!==b.key&&"Delete"!==b.key||a.hd()},function(){a.o.render(); a.overlay.render()})})};function Sq(a){var b=a.Ks,c=a.hd;a=a.fs;E.call(this,"sc.tailwind.shared.rich_text_editor.attachment.InlinedAttachment");this.na=new Qq;this.o=this.rb=!1;this.Ks=b;this.ta=new Rq({hd:c});this.ma=new Pq({wb:a})} y(Sq,E);Sq.prototype.Cc=function(a){this.rb!==a&&(this.rb=a,this.Ca())}; Sq.prototype.ha=function(a){this.o!==a&&(this.o=a,this.Ca())}; Sq.prototype.content=function(){var a=this;this.element("div","class","root",function(){fg(a.element("img","class","image"),a.Ks);a.ta.render();a.rb?a.na.render():a.o&&a.ma.render()})};function Tq(a){var b=a.fileName,c=a.mimeType,e=a.hd;a=a.fs;E.call(this,"sc.tailwind.shared.rich_text_editor.attachment.NonInlinedAttachment");this.na=new Qq;this.o=this.rb=!1;this.ta=new Rq({hd:e});e=b.lastIndexOf(".");b=-1===e?{base:b,extension:""}:{base:b.substring(0,e),extension:b.substring(e+1)};e=b.extension;this.base=b.base;this.extension=e;this.ua=qf("https://drive-thirdparty.googleusercontent.com/32/type/"+c);this.ma=new Pq({wb:a})} y(Tq,E);Tq.prototype.Cc=function(a){this.rb!==a&&(this.rb=a,this.Ca())}; Tq.prototype.ha=function(a){this.o!==a&&(this.o=a,this.Ca())}; Tq.prototype.content=function(){var a=this;this.element("div","class",{root:!0,"root-failed":this.o},function(){a.element("div","class","filename",a.base);a.element("div","class","extension",function(){fg(a.element("img","class","icon"),a.ua);a.element("span",a.extension)}); a.ta.render();a.rb?a.na.render():a.o&&a.ma.render()})};function Uq(){this.documentId=this.mimeType=this.Of="";this.ka=this.ha=this.Ve=!1} function Vq(a){var b=new Uq;b.Of=a.name;b.mimeType=a.type;b.file=a;Wq(b);return b} function Xq(a){var b=new Uq;b.Of=a.originalFilename;b.mimeType=a.mimeType;b.Ac=a.Ac;b.documentId=a.documentId;Wq(b);return b} function Wq(a){a.dom=document.createElement("div");a.$g()?(a.dom.contentEditable="false",a.dom.style.display="inline-block",a.dom.style.maxWidth="100%",a.component=new Sq({Ks:lf(a.file),hd:function(){return void a.remove()}, fs:function(){return void a.upload()}})):a.component=new Tq({fileName:a.Of, mimeType:a.mimeType,hd:function(){return void a.remove()}, fs:function(){return void a.upload()}}); qk(a.dom,function(){a.component.render()})} p=Uq.prototype;p.render=function(){var a;null===(a=this.component)||void 0===a?void 0:a.render()}; p.$g=function(){if(!this.file)return!1;switch(this.mimeType){case "image/gif":case "image/jpeg":case "image/png":return!0;default:return!1}}; p.upload=function(){var a=this;this.Cc(!0);Yq(this,!1);this.o&&this.o();this.fileUpload=(new np(this.file)).aj(function(){a.Cc(!1);a.Ac=a.fileUpload.o;a.documentId=a.fileUpload.Kh();a.documentId||(a.documentId=Date.now().toString(16)+Math.floor(65536*Math.random()).toString(16));a.dom&&(a.dom.dataset.richTextEditorAttachmentDocumentId=a.documentId);a.o&&a.o()}).onError(function(){Yq(a,!0); a.Cc(!1);a.o&&a.o()}).mh("SupportContentForums","TailwindPost").start()}; p.remove=function(){this.Ve||(this.dom&&this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.Ve=!0,this.ma&&this.ma())}; p.Dm=function(a){this.o=a}; p.hd=function(a){this.ma=a}; p.Rj=function(a){a.appendChild(this.dom)}; p.hk=function(){return this.dom}; p.rb=function(){return this.ka}; p.hasError=function(){return this.ha}; p.Ui=function(){return{originalFilename:this.Of,mimeType:this.mimeType,Ac:this.Ac,documentId:this.documentId,deleted:this.Ve}}; p.Cc=function(a){var b;this.ka!==a&&(this.ka=a,null===(b=this.component)||void 0===b?void 0:b.Cc(a))}; function Yq(a,b){var c;a.ha!==b&&(a.ha=b,null===(c=a.component)||void 0===c?void 0:c.ha(b))} Uq.prototype.getUploadedFile=Uq.prototype.Ui;Uq.prototype.hasError=Uq.prototype.hasError;Uq.prototype.isLoading=Uq.prototype.rb;Uq.prototype.getDom=Uq.prototype.hk;Uq.prototype.appendDomTo=Uq.prototype.Rj;Uq.prototype.onRemove=Uq.prototype.hd;Uq.prototype.onStateChange=Uq.prototype.Dm;Uq.prototype.remove=Uq.prototype.remove;Uq.prototype.upload=Uq.prototype.upload;Uq.prototype.isInlinableImage=Uq.prototype.$g;Uq.fromUploadedFile=Xq;Uq.fromLocalFile=Vq;function Zq(a,b,c){this.o=a;this.ha=b;this.ka=void 0===c?!0:c} Zq.prototype.toString=function(){return this.o}; var $q=new Zq("attachFile",!1,!1),ar=new Zq("bold",!0),br=new Zq("italic",!0),cr=new Zq("underline",!0),dr=new Zq("code",!1),er=new Zq("insertUnorderedList",!0),fr=new Zq("insertOrderedList",!0),gr=new Zq("outdent",!0,!1),hr=new Zq("indent",!0,!1),ir=new Zq("insertLink",!1),jr=new Zq("removeFormat",!0,!1);var kr={yt:{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"}},Zw:{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"}}},lr=kr;lr=kr;var mr={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,"Rial","Rial"],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 nr={Bt:".",cq:",",Kt:"%",hq:"0",hy:"+",Jt:"-",Ct:"E",Lt:"\u2030",eq:"\u221e",Yx:"NaN",At:"#,##0.###",ny:"#E0",gy:"#,##0%",$w:"\u00a4#,##0.00",bq:"USD"},or=nr;or=nr;function pr(a){this.ya=40;this.ka=1;this.Da=0;this.ha=3;this.Ba=this.ma=0;this.Ha=!1;this.Aa=this.ua="";this.oa=or.Jt;this.va="";this.o=1;this.ta=!1;this.na=[];this.Ea=this.Ga=!1;this.wa=0;if("number"===typeof a)switch(a){case 1:qr(this,or.At);break;case 2:qr(this,or.ny);break;case 3:qr(this,or.gy);break;case 4:a=or.$w;var b=["0"],c=mr[or.bq];if(c){c=c[0]&7;if(0f&&n++;break;case "0":if(0f&&n++;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==n)throw Error('Malformed pattern "'+b+'"');l=h+k+l;a.ha=0<=f?l-f:0;0<=f&&(a.ma=h+k-f,0>a.ma&&(a.ma=0));a.ka=(0<=f?f:l)-h;a.Ea&&(a.ya=h+a.ka,0==a.ha&&0==a.ka&&(a.ka=1));a.na.push(Math.max(0,n));a.Ga= 0==f||f==l;e=c[0]-e;a.Aa=sr(a,b,c);c[0]this.oa.length?e=!1:this.ua.length=qa)A+=qa,l=!0;else if(pa==t.charAt(0)){if(h||k)break;A+=".";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 or.Yx;var b=[];var c=a,e=a;if(0==this.wa)var f=ur;else c=Math.abs(c),e=Math.abs(e),f=vr(this,1>=c?0:wr(c)).Iq,e=xr(e,-f),yr(this,e),c=xr(c,-f),c=yr(this,c),f=vr(this,f+wr(c.intValue));a=xr(a,-f.Iq);(c=0>a||0==a&&0>1/a)?f.Qr?b.push(f.Qr):(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.Ea)if(e=a,0==e)zr(this,e,this.ka, b),Ar(this,0,b);else{var h=Math.floor(Math.log(e)/Math.log(10)+2E-15);e=xr(e,-h);var k=this.ka;1this.ka?(k=h%this.ya,0>k&&(k=this.ya+k),e=xr(e,k),h-=k,k=1):1>this.ka?(h++,e=xr(e,-1)):(h-=this.ka-1,e=xr(e,this.ka-1));zr(this,e,k,b);Ar(this,h,b)}else zr(this,a,this.ka,b);else b.push(or.eq);c?f.Rr?b.push(f.Rr):(isFinite(a)&&b.push(f.suffix),b.push(this.va)):(isFinite(a)&&b.push(f.suffix),b.push(this.Aa));return b.join("")}; function yr(a,b){var c=xr(b,a.ha);0a.ha)throw Error("Min value must be less than max value");e||(e=[]);b=yr(a,b);var f=b.intValue,h=b.Vz,k=0h.length&&(h="1"+Nh("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(or.Jt)):a.Ha&&c.push(or.hy);b=""+b;for(var e=or.hq,f=b.length;fa)return a-48;var b=or.hq.charCodeAt(0);return b<=a&&ab)return ur;b=Math.min(14,b);var c=a[xr(1,b)];for(--b;!c&&3<=b;)c=a[xr(1,b)],b--;if(!c)return ur;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))?{Iq:b+1-(c[2].length-1),Qr:a,Rr:e,prefix:c[1],suffix:c[3]}:ur:ur} function wr(a){if(!isFinite(a))return 0=r)&&(e=ts(),(f=e.focusNode)&&0!==(f.compareDocumentPosition(a.Wa.content)&Node.DOCUMENT_POSITION_CONTAINS))){for(var t=0;f&&f!==a.o;){if(f.nodeType===Node.TEXT_NODE){var w=f===e.focusNode?e.focusOffset:null!==(k=null===(h=f.textContent)||void 0===h?void 0:h.length)&&void 0!==k?k:0,x=Math.min(r,w);x<(null!==(n=null===(l=f.textContent)|| void 0===l?void 0:l.length)&&void 0!==n?n:0)&&(t=w-x);r-=x;if(!r)break}f=ns(f)}h=document.createRange();h.setStart(f,t);h.setEnd(e.focusNode,e.focusOffset);h.deleteContents();e.removeAllRanges();e.addRange(h)}}Mk(a.model,0)},function(){Uj=Vj.lastChild}),a.Wa=null!==(c=a.Wa)&&void 0!==c?c:new zs(a.o)); a.element("div","class","toolbar",function(){a.ua.render({Wa:a.Wa})}); a.eh.render();a.model.mk()&&a.ma.render()}); ht(this);this.ha||(this.na=(new this.mq({model:this.model,Wa:this.Wa})).initialize(),this.ta=(new this.Kr({model:this.model,Wa:this.Wa,eh:this.eh})).initialize(),this.va=(new this.wq({model:this.model,Wa:this.Wa})).initialize(),this.ya=(new this.Jr({model:this.model,Wa:this.Wa})).initialize(),this.ha=!0);if(this.sm){var b=this.sm;delete this.sm;this.nj(b)}}; p.ue=function(){var a,b,c,e;this.ha&&(null===(a=this.na)||void 0===a?void 0:a.Xa(),null===(b=this.ta)||void 0===b?void 0:b.Xa(),null===(c=this.va)||void 0===c?void 0:c.Xa(),null===(e=this.ya)||void 0===e?void 0:e.Xa(),this.na=void 0,this.ha=!1)}; p.focus=function(){if(this.o){this.o.focus();var a=document.createRange();a.selectNodeContents(this.o.lastChild||this.o);a.collapse(!1);var b=ts();b.removeAllRanges();b.addRange(a)}}; p.Ol=ma(7);p.rg=function(){if(!this.o)return"";this.o.normalize();ks(this.o);return qs(this.o).innerHTML}; p.Ja=function(){var a;if(!this.o)return"";this.o.normalize();ks(this.o);return null!==(a=qs(this.o).textContent)&&void 0!==a?a:""}; p.nb=function(a){var b=document.createElement("div");b.innerText=a;this.nj(b)}; p.nj=function(a){if(this.o){if("string"===typeof a){var b=document.createElement("div");dg(b,Ej(a));a=b}b=this.o;b.textContent="";a=u(a.childNodes);for(var c=a.next();!c.done;c=a.next())b.appendChild(c.value.cloneNode(!0));this.o.normalize();ks(this.o);Mk(this.model,0)}}; p.clear=function(){this.o&&(this.o.textContent="")}; p.Ll=ma(8);p.Fa=function(a){this.model.Fa(0,a);return this}; p.Ed=function(){return this.model.Ed()}; p.be=function(a){this.model.be(a)}; function ht(a){var b,c,e;var f=a.model;var h=null!==(e=null===(c=null===(b=a.o)||void 0===b?void 0:b.textContent)||void 0===c?void 0:c.length)&&void 0!==e?e:0;f.hintText?f=f.hintText:(h=Math.max(0,f.minLength-h),f=0>>0),x=[["js_request_id",w],["rr",1],["lc",1]],A=Mu();0]+)>)/gi,"")}; Xu.prototype.getUrl=function(){var a;return null!==(a=this.o.getUrl())&&void 0!==a?a:""}; Xu.prototype.Qc=function(){var a;return null!==(a=this.o.Qc())&&void 0!==a?a:""};function Yu(a){z.call(this,a)} y(Yu,z);Yu.prototype.getType=function(){return Xd(this,1,0)}; Yu.prototype.getId=function(){return me(this,2)}; Yu.prototype.setId=function(a){return Vd(this,2,a)};function Zu(a){z.call(this,a)} y(Zu,z);function $u(a){z.call(this,a)} y($u,z);var av=[2,3,4,5,6,7];function bv(a){z.call(this,a)} y(bv,z);bv.prototype.getUrl=function(){return me(this,1)}; bv.prototype.lb=function(){return me(this,2)}; bv.prototype.uc=function(a){return Vd(this,2,a)};function cv(a){z.call(this,a)} y(cv,z);function dv(a){z.call(this,a)} y(dv,z);dv.prototype.Nh=function(){return me(this,1)}; function ev(a){var b=new Gm;var c=Math.floor(Date.now()/1E3);b=oe(b,c);de(a,2,b)} ;function fv(a){z.call(this,a,-1,gv)} y(fv,z);var gv=[1];function hv(a){z.call(this,a)} y(hv,z);hv.prototype.Hf=function(){return Xd(this,2,0)};function iv(a){z.call(this,a,-1,jv)} y(iv,z);var jv=[2];function kv(a){z.call(this,a)} y(kv,z);function lv(a){a=void 0===a?{}:a;this.ij=new (void 0===a.KC?nl:a.KC)({tf:Qg().mld+"/v1",serviceName:"MoltronLoggingService"})} function mv(a,b,c,e){var f=(void 0===e?{}:e).iz;ue(a,function k(){var l,n,r,t=this;return mb(k,function(w){if(!b||!c)return w.return();l=new dv;Vd(l,1,b);ev(l);Vd(l,3,c);Vd(l,5,3);f&&(n=new Zu,Vd(n,1,1),Vd(n,2,f),r=new $u,ee(r,3,av,n),de(l,6,r));return Qa(w,nv(t,l),0)})})} function ov(a,b,c,e){var f=(void 0===e?{zr:!1}:e).zr;ue(a,function k(){var l,n,r,t,w,x,A=this;return mb(k,function(pa){if(!b)return pa.return();l=[];n=u(c);for(r=n.next();!r.done;r=n.next())if(t=r.value)w=new dv,Vd(w,1,b),ev(w),Vd(w,3,t),Vd(w,5,1),f&&(x=new $u,Vd(x,1,3),de(w,6,x)),l.push(w);return Qa(pa,pv(A,l),0)})})} function qv(a,b){ue(a,function e(){var f,h,k=this;return mb(e,function(l){if(!b)return l.return();f=new dv;Vd(f,1,b);ev(f);h=new Yu;Vd(h,1,3);h.setId("other");de(f,4,h);Vd(f,5,3);return Qa(l,nv(k,f),0)})})} function nv(a,b,c){c=void 0===c?!1:c;return ue(a,function f(){var h,k,l,n,r=this;return mb(f,function(t){if(1==t.o)return h=new kv,de(h,1,b),k={query:{key:Qg().mkey}},c&&(l=(Qg().ge||"").toLowerCase(),n=Mp([{key:"e",value:l}]))&&(k.withCredentials=!0,k.headers={Authorization:n}),$a(t,2),Qa(t,r.ij.post("log-moltron-interaction",h,hv,k),4);if(2!=t.o)return ab(t,0);bb(t);Wa(t)})})} function pv(a,b){return ue(a,function e(){var f,h=this;return mb(e,function(k){if(1==k.o)return f=new fv,fe(f,1,b),$a(k,2),Qa(k,h.ij.post("log-batch-moltron-interaction",f,iv,{query:{key:Qg().mkey}}),4);if(2!=k.o)return ab(k,0);bb(k);Wa(k)})})} ;function rv(a,b,c,e){lv.call(this);this.predictionId=a;this.o=b;this.dymTrackingId=c;this.sessionId=e} y(rv,lv);function sv(a){ue(a,function c(){var e=this,f,h;return mb(c,function(k){f=tv();Vd(f,1,e.predictionId);Vd(f,5,1);h=new cv;Vd(h,1,e.o?3:1);Vd(h,2,e.sessionId);de(f,8,h);return Qa(k,nv(e,f,!0),0)})})} function uv(a,b,c){ue(a,function f(){var h=this,k,l,n;return mb(f,function(r){k=tv();Vd(k,1,h.predictionId);Vd(k,3,b);Vd(k,5,3);l=new cv;Vd(l,1,h.o?4:2);Vd(l,2,h.sessionId);de(k,8,l);n=new bv;Vd(n,1,c);de(k,7,n);return Qa(r,nv(h,k,!0),0)})})} rv.prototype.hj=function(a,b){return ue(this,function e(){var f=this,h;return mb(e,function(k){h=vv(f,a,4,b);return Qa(k,nv(f,h,!0),0)})})}; function vv(a,b,c,e){var f=tv();Vd(f,1,a.predictionId);Vd(f,3,b);Vd(f,5,3);e&&(b=new bv,Vd(b,1,e),de(f,7,b));e=new cv;Vd(e,1,c);Vd(e,2,a.sessionId);de(f,8,e);return f} function tv(){var a=new dv;ev(a);return a} ;function wv(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 Cq(!0)} function xv(a,b){a.o.Km(a.sessionId,a.requestId,b,a.query,a.flow,a.ha,a.context,a.dymTrackingId)} function yv(a,b,c,e){a.o.fj(a.query,a.sessionId,b,c,a.requestId,e,a.flow,a.context,a.ha)} wv.prototype.hj=function(a,b,c){this.o.hj(this.sessionId,this.requestId,a,b,c)};function zv(a){var b=a.symptoms,c=void 0===a.limit?8:a.limit,e=void 0===a.helpcenterName?"":a.helpcenterName,f=void 0===a.en?new Map:a.en;a=void 0===a.xm?0:a.xm;E.call(this,"sc.symptoms.Symptoms");this.ha="true"===th("workflow__full-layout");this.isRendered=this.o=!1;this.symptoms=b;this.limit=c;this.helpcenterName=e;this.en=f;this.xm=a} y(zv,E);zv.prototype.content=function(){var a=this,b=ce(this.symptoms,Vu,1).filter(function(c){var e;return""!==(null===(e=Qd(c,2))||void 0===e?void 0:e.trim())}); this.element("div","class","root",function(){a.element("div","class","container",function(){switch(a.xm){case 0:Av(a,b);break;case 1:for(var c=0;ca.limit} function Gv(a){if(Cv(a)){a.o=!a.o;a.Ca();var b=a.o;rl(b?2:3,a.helpcenterName+"_symptoms_view_"+(b?"more":"less"),b?96:97)}} function Fv(a,b){rl(35,a.helpcenterName+"_symptoms_click_"+Qd(b,1)+(Wd(b,3)?"_active":""),98);if(!Wd(b,3)){a:{var c;b=null!==(c=Qd(b,1))&&void 0!==c?c:"";if(""!==b&&a.en.has(b)&&(a=a.en.get(b)))break a;a=""}a=a.split("?");c="?"+a[1];c=Gu(c);ll(""+a[0]+c,!0,!1)}} ;function Hv(a){this.o=a;this.ka=this.va=null;this.ha=[];this.na=document.createElement("input");this.ua=this.oa=-1;this.Ea=this.rm.bind(this);this.Ba=this.vs.bind(this);this.Ga=this.wa=this.ya=0;this.ta=!1;this.Da=0;this.Aa=new vm;Iv(this)} function Iv(a){a.ma=document.createElement("div");a.ma.className=a.o.className;Jg(a.ma,"sc-select",!0);a.ma.setAttribute("tabindex",0);a.ma.setAttribute("role","listbox");a.ma.setAttribute("aria-expanded",!1);a.ma.addEventListener("mousedown",function(e){Ng(this.ka,"sc-select-show")?e.target==this.ka||this.ka.contains(e.target)||this.rm():0==e.button&&Jv(this)}.bind(a)); a.ma.addEventListener("keydown",a.Kx.bind(a));a.va=document.createElement("span");a.ma.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.ma.appendChild(b);a.ka=document.createElement("ol");a.ka.addEventListener("mousemove",function(){this.ta=!0}.bind(a)); a.ka.addEventListener("scroll",function(){0a-1?this.ha.length-1:a-1;b!=a&&!Ov(this,b);)b=0>b-1?this.ha.length-1:b-1;a=b}Mv(this,a);this.ha[a].focus();this.ma.setAttribute("aria-activedescendant",this.ha[a].id); Pv(this);break;case 40:a.preventDefault();Ng(this.ka,"sc-select-show")||Jv(this);a=this.oa;if(0===this.ha.length)a=-1;else{for(b=(a+1)%this.ha.length;b!=a&&!Ov(this,b);)b=(b+1)%this.ha.length;a=b}Mv(this,a);this.ha[a].focus();this.ma.setAttribute("aria-activedescendant",this.ha[a].id);Pv(this)}}; function Pv(a){if(-1!=a.oa){var b=a.ha[a.oa];b.offsetTopa.ka.scrollTop+a.ka.offsetHeight&&(a.ta=!1,a.ka.scrollTop=b.offsetTop+b.offsetHeight-a.ka.offsetHeight)}} function Nv(a){var b=a.o.getAttribute("aria-label")||"";b&&(-1!==a.o.selectedIndex&&(b+=" ("+a.o[a.o.selectedIndex].innerText+")"),a.ma.setAttribute("aria-label",b))} p.dispose=function(){this.ma&&Zh(this.ma);this.ka=this.va=this.ma=null;this.ha=[]}; function Qv(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 Hv(b)} window.sc_initSelects=function(){Qv(window.sc_scope)};function Rv(a){z.call(this,a,-1,Sv)} y(Rv,z);p=Rv.prototype;p.getId=function(){return Qd(this,1)}; p.setId=function(a){return Vd(this,1,a)}; p.getType=function(){return Qd(this,3)}; p.lb=function(){return Qd(this,4)}; p.uc=function(a){return Vd(this,4,a)}; p.og=function(){return Qd(this,5)}; p.Ek=ma(12);p.Sa=function(){return Qd(this,6)}; p.kc=function(a){return Vd(this,6,a)}; p.Db=function(){return Rd(this,6)}; p.Qm=function(a){Vd(this,20,a)}; var Sv=[2,11,12,16,17];function Tv(a){z.call(this,a,-1,Uv)} y(Tv,z);Tv.prototype.Qm=function(a){Vd(this,5,a)}; function Vv(a){z.call(this,a)} y(Vv,z);function Wv(a){z.call(this,a,3)} y(Wv,z);function Xv(a){return be(a,Yv,1)} function Zv(a){z.call(this,a)} y(Zv,z);function $v(a){z.call(this,a)} y($v,z);function Yv(a){z.call(this,a,-1,aw)} y(Yv,z);p=Yv.prototype;p.getType=function(){return Qd(this,1)}; p.og=function(){return Qd(this,3)}; p.Ek=ma(11);p.Sa=function(){return Qd(this,4)}; p.kc=function(a){return Vd(this,4,a)}; p.Db=function(){return Rd(this,4)}; function bw(a){z.call(this,a)} y(bw,z);bw.prototype.Qm=function(a){Vd(this,3,a)}; function cw(a){z.call(this,a,-1,dw)} y(cw,z);var Uv=[1],aw=[14,15,20,21],ew=[10,17],dw=[1];var fw=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 gw(){var a=this;this.o=function(){}; this.ha=function(b){var c,e,f,h,k,l,n,r;if("detail"in b)if(b=je(Zv,b.detail.action),null===(e=null===(c=be(b,Wv,1))||void 0===c?void 0:Xv(c))||void 0===e?0:Sd(e,10,ew))(n=null===(h=null===(f=be(b,Wv,1))||void 0===f?void 0:Xv(f))||void 0===h?void 0:Qd(h,10===Td(h,ew)?10:-1))&&a.ka(n);else if(null===(l=null===(k=be(b,Wv,1))||void 0===k?void 0:Xv(k))||void 0===l?0:Sd(l,17,ew))if(f=null===(r=null===(n=be(b,Wv,1))||void 0===n?void 0:Xv(n))||void 0===r?void 0:ne(r,$v,17,ew))h=Qd(f,2),f=Qd(f,1),h&&f&&a.ka("/"+ h+"/workflow/"+f)}; this.ma=function(){var b=fw.get(1);b=new CustomEvent(b,{bubbles:!0,cancelable:!0});window.document.body.dispatchEvent(b)}; this.ka=ll;window.document.body.addEventListener(fw.get(6),this.ma);window.document.body.addEventListener(fw.get(5),this.o);window.document.body.addEventListener(fw.get(2),this.ha)} var hw;function iw(){void 0===hw&&(hw=new gw)} gw.prototype.dispose=function(){window.document.body.removeEventListener(fw.get(2),this.ha);window.document.body.removeEventListener(fw.get(6),this.ma);window.document.body.removeEventListener(fw.get(5),this.o)}; window.sc_initSmartButtonController=function(){iw()};function jw(a,b){a=void 0===a?95:a;b=void 0===b?133:b;E.call(this,"sc.shared.ErrorSvg");this.o=new sp("error_computer.svg");this.height=a;this.width=b} y(jw,E);jw.prototype.content=function(){var a=this;this.element("div","style",{width:this.width+"px",height:this.height+"px"},function(){a.o.render()})};function kw(a){this.ha=a;this.o=null} function lw(a){null===a.o&&(a.o=setTimeout(function(){null!==a.o&&(a.o=null,a.ha())},6E4))} ;function mw(){var a=this;this.ka=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=je(Tv,b.detail);a.ha(b)}} p=mw.prototype;p.sendInitCompleteEvent=function(){console.log("[Smart Buttons] Broadcasting init");nw(4,void 0)}; p.sendButtonAction=function(a,b){a={action:null===a||void 0===a?void 0:a.Hb(),buttonClientRect:b};nw(2,a)}; p.sendDescribeEvent=function(a){var b=new cw;a=u(a);for(var c=a.next();!c.done;c=a.next())ge(b,1,c.value,bw);b={action:b.Hb(),buttonClientRect:void 0};nw(5,b)}; p.sendButtonsRenderedEvent=function(){nw(6)}; p.initHandshakeListener=function(a){this.o=a;window.document.body.addEventListener(fw.get(1),this.o)}; p.initStateUpdateListener=function(a){this.ha=a;window.document.body.addEventListener(fw.get(3),this.ka)}; p.dispose=function(){window.document.body.removeEventListener(fw.get(3),this.ka);this.o&&window.document.body.removeEventListener(fw.get(1),this.o)}; function nw(a,b){a=fw.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({dE:0,cE:1,YD:2,aE:3,ZD:4,bE:5,$D:6});function ow(a,b){this.o=a;this.metadata=b} ow.prototype.jd=function(a){this.o(a)}; function pw(){var a=this;this.ha=new Map;this.ka=function(){a.o.sendButtonsRenderedEvent()}; this.o=new mw;qw(this)} var rw;function sw(){if(rw&&!tw)return rw;rw=new pw;tw=!1;var a=rw;a.o.initHandshakeListener(a.oa.bind(a));a.o.initStateUpdateListener(a.ma.bind(a));a.o.sendInitCompleteEvent();return rw} function uw(a,b,c,e){if(""===b)throw Error("Smart Button guid key is empty");a.ha.has(b)||a.ha.set(b,new ow(e,c))} pw.prototype.ma=function(a){var b,c,e=null!==(b=Qd(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.jd(a)}; pw.prototype.oa=function(){console.log("[Smart Buttons] Received Handshake");var a=[];this.ha.forEach(function(b){a.push(b.metadata)}); this.o.sendDescribeEvent(a)}; pw.prototype.dispose=function(){var a;this.o.dispose();this.ha.clear();null===(a=ok().querySelector(".workflow"))||void 0===a?void 0:a.removeEventListener("dynamicFormRendered",this.ka)}; function qw(a){var b;null===(b=ok().querySelector(".workflow"))||void 0===b?void 0:b.addEventListener("dynamicFormRendered",a.ka)} var tw=!1;function vw(a){var b=a.buttonTitle,c=a.contentId,e=a.helpcenterName,f=a.Qf;a=void 0===a.Ap?!0:a.Ap;E.call(this,"sc.smart_button.FatalErrorButton");this.o=new jw;this.buttonTitle=b;this.contentId=c;this.helpcenterName=e;this.Qf=f;this.Ap=a} y(vw,E);vw.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.Ap&&a.element("div","class","^no-margin feedback-link",a.Qf);a.element("div","class","^no-margin detail",function(){""!==a.buttonTitle&&a.element("div","class","^no-margin",(new Hr("The button title is {buttonTitle}.")).format({buttonTitle:a.buttonTitle})); a.element("div","class","^no-margin",(new Hr("The content ID is {contentId}.")).format({contentId:a.contentId}));a.element("div","class","^no-margin",(new Hr("The help center name is {helpcenterName}.")).format({helpcenterName:a.helpcenterName}))})})}); ww(this)}; function ww(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 xw=new Map([[1,"good"],[2,"error"]]);function yw(){E.call(this,"sc.smart_button.Icon");this.o=!1} y(yw,E);function zw(a,b,c,e){a.ha=b;a.state=c;a.o=void 0===e?!1:e} yw.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=xw.get(this.state);xw.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 Aw(a){E.call(this,"sc.smart_button.SendFeedbackLink");var b=this;this.buttonTitle=a;this.o=function(){Bw(b)}; this.ha=function(c){"key"in c&&(" "===c.key||"Enter"===c.key)&&Bw(b)}} y(Aw,E);Aw.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)}; Aw.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 Bw(a){var b=so();b.set("smart_button_title",a.buttonTitle);qo({payload:b,productId:Number(Qg().fbid)})} ;function Cw(a){return 2===(null===a||void 0===a?void 0:Qd(a,3))} function Dw(a){return 1===(null===a||void 0===a?void 0:Qd(a,3))} function Ew(a){a=null===a||void 0===a?void 0:ce(a,Vv,1);if(void 0===a)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(Fw(b.value))return!0;return!1} function Gw(a){a=Hw(a);if(0===a.length)return!1;a=u(a);for(var b=a.next();!b.done;b=a.next())if(!Fw(b.value))return!1;return!0} function Hw(a){return void 0===a?[]:(null===a||void 0===a?void 0:ce(a,Vv,1))||[]} function Fw(a){return void 0!==a&&Rd(a,1)&&0!==Qd(a,1)} function Iw(a){return void 0!==a&&Rd(a,1)&&1===Qd(a,1)} function Jw(a){return void 0!==a&&Rd(a,1)&&2===Qd(a,1)} function Kw(a){return a.filter(function(b){return Jw(b)})} ;function Lw(a,b){b=void 0===b?!1:b;E.call(this,"sc.smart_button.StateHeading");this.Qf=a;this.Yg=b;this.na=[];this.headingState=0;this.icon=new yw} y(Lw,E);Lw.prototype.content=function(){var a;!(Cw(this.o)||Dw(this.o)||(null===(a=this.o)||void 0===a?0:Qd(a,2))||Gw(this.o))||Mw(this)}; Lw.prototype.jd=function(a){this.o=a;this.na=Hw(this.o);if(Cw(this.o))this.headingState=2;else if(Dw(this.o))this.headingState=1;else if(0=hx} function ix(a){return gx(a)>=jx} function kx(a,b,c,e,f,h,k){this.rank=a;this.ka=b;this.o=c;this.ma=e;this.ha=f;this.icon=h;this.label=void 0===k?"":k} function gx(a){switch(a){case 0:return lx;case 30:return mx;case 1:return nx;case 2:return hx;case 3:return ox;case 4:return px;case 5:return qx;case 20:return jx;case 10:return rx;case 100:return sx;default:return lx}} kx.prototype.valueOf=function(){return this.rank}; function tx(a){return qu().Ii?a.o:a.ka} kx.prototype.sg=function(){return this.icon}; kx.prototype.Cb=function(){return this.label}; var lx=new kx(0,"#F1F3F4","#F1F3F4"),mx=new kx(1,"#F1F3F4","#F1F3F4",void 0,void 0,2),nx=new kx(2,"#896E63","#896E63","#896E63","#B9ABA3",3,"Bronze Member"),hx=new kx(3,"#9E9E9E","#9E9E9E","#5F6368","#BDC1C6",4,"Silver Product Expert"),ox=new kx(4,"#FFB300","#F9AB00","#E37400","#F9AB00",5,"Gold Product Expert"),px=new kx(5,"#77909D","#718792","#455A64","#AFBEC5",6,"Platinum Product Expert"),qx=new kx(6,"#79A8FA","#79A8FA","#1A73E8","#8AB4F8",7,"Diamond Product Expert"),jx=new kx(7,"#4285F4","#669DF6", "#1A73E8","#8AB4F8",8,"Community Specialist"),rx=new kx(8,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Community Manager"),sx=new kx(9,"#4285F4","#669DF6","#1A73E8","#8AB4F8",9,"Google Employee");var ux=ya(["aria-"]),vx=ya(["role"]),wx=ya(["data-stats-"]);function xx(a){this.o=a||document} xx.prototype.init=function(){for(var a=this,b=this.o.querySelectorAll(".zippy"),c={},e=0;e=a.length} p.hasEmail=function(){var a;return!(null===(a=this.privateInfo)||void 0===a||!Qd(a,1))}; function ey(a){if(1!==a.forumUserInfos.size)throw Error("Expected only one forum to be populated for a call to `getRole`.");return Qd(be(a.forumUserInfos.values().next().value,wt,1),3)} function fy(a){var b;return null!==(b=Qd(a.publicInfo,5))&&void 0!==b?b:""} function gy(a){a=fy(a);return 0===a.length||500>=a.length} function hy(a){var b;return null!==(b=Qd(a.publicInfo,4))&&void 0!==b?b:""} function iy(a){a=hy(a);return 0===a.length||80>=a.length} function jy(a){var b;return null!==(b=Qd(a.publicInfo,2))&&void 0!==b?b:""} function ky(a,b){return ue(a,function e(){var f,h=this,k;return mb(e,function(l){if(1==l.o){var n=new Qt;Vd(n,1,b.originalFilename);Vd(n,3,b.documentId);b.Ac&&Vd(n,2,b.Ac);b.deleted&&Vd(n,4,!0);f=n;return Qa(l,h.Za.updateGlobalUserInfo({userId:h.getId(),avatar:f}),2)}k=l.ha;n=Qd(be(k,Bt,2),2);Vd(h.publicInfo,2,n);Mk(h,1);Wa(l)})})} function ly(a){var b;return null!==(b=Qd(a.publicInfo,6))&&void 0!==b?b:""} function my(a){a=ly(a);if(0===a.length)return!0;try{return"https:"===(new URL(a)).protocol}catch(b){return!1}} function ny(a){var b;return null!==(b=Qd(a.publicInfo,7))&&void 0!==b?b:""} function oy(a){a=ny(a);if(0===a.length)return!0;try{var b=new URL(a);return"https:"===b.protocol&&ay.includes(b.hostname)}catch(c){return!1}} function cy(a){return dy(a)&&iy(a)&&gy(a)&&my(a)&&oy(a)} p.delete=function(){return ue(this,function b(){var c=this;return mb(b,function(e){if(1==e.o)return Qa(e,yu(c.Za,c.getId()),2);c.userId=0;c.o=new Bt;c.publicInfo=new Bt;c.privateInfo=new Ft;c.profileAbuse=new Et;Wa(e)})})}; p.reportAbuse=function(){return ue(this,function b(){var c=this,e;return mb(b,function(f){e=c.forumUserInfos.keys().next().value;return Qa(f,zu(c.Za,c.getId(),e),0)})})}; p.Um=function(){var a,b;return null!==(b=null===(a=this.privateInfo)||void 0===a?void 0:Yd(a,4,!0))&&void 0!==b?b:!1}; function py(a){var b,c;return null!==(c=null===(b=a.profileAbuse)||void 0===b?void 0:Rd(b,1))&&void 0!==c?c:!1} ;function qy(a,b,c,e){e=void 0===e?{}:e;if(ru())a=e.messageId,e=void 0===e.relative?!0:e.relative,c="/s/community/forum/"+b+"/thread/"+c,a&&(c+="/message/"+a),c=ry(c),c=e?sy(c):c.toString();else{var f=e;b=void 0===f.Zu?!1:f.Zu;e=void 0===f.language?su():f.language;var h=f.messageId;f=void 0===f.relative?!0:f.relative;c=ry("/"+a+"/thread/"+c);c.searchParams.set("hl",e);b&&c.searchParams.set("notify","new");h&&c.searchParams.set("msgid",""+h);c=f?sy(c):c.toString()}return c} function ry(a){a=new URL(a,qu().Nq);var b=qu().authuser;b&&a.searchParams.set("authuser",b);return a} function sy(a){return a.href.replace(a.origin,"")} ;function ty(){var a=Qg();a={Nq:a.ehn,lB:a.hc,Qq:a.ehc,language:a.lang,authuser:a.au,Ii:a.dark,experimentIds:a.tw_smei,mB:"embed"===(new URLSearchParams(location.search)).get("format")};pu?console.error("Global settings should only be initialized once."):pu=Object.assign({},a)} ;var uy=["image/gif","image/jpeg","image/png"];function vy(a){var b=a.user;a=void 0===a.Vq?np:a.Vq;E.call(this,"sc.tailwind.shared.AvatarUpload");this.ma=!1;this.user=b;this.Vq=a;this.na=Xo.initialize();this.ua=new Rk({icon:"gm/mode_edit"})} y(vy,E);vy.prototype.content=function(){var a=this;this.element("div","class","root",function(){if(a.ma&&a.o){a.ta||(a.ta=new Yo({size:"mspin-medium"}));var b=lf(a.o);a.element("img","class","preview","title","Uploading avatar","src",jf(b));a.ta.render()}wy(a)})}; function wy(a){a.ma||a.element("div","class","upload-container",function(){a.Ni=a.element("button","class","edit-button","title","Upload avatar","onclick",function(){var b;null===(b=a.ha)||void 0===b?void 0:b.click()},function(){a.ua.render()}); a.ha=a.element("input","accept",uy.join(", "),"class","native-input","type","file","onchange",function(){var b;if(b=a.ha){var c;b=!(null===(c=a.ha.files)||void 0===c||!c.length)}b&&(b=a.ha,b=b.files?b.files[0]:void 0,a.o=b,xy(a,a.o))})})} function xy(a,b){a.ma=!0;a.Ca();var c=new a.Vq(b);c.aj(function(){return void yy(a,c)}).onError(function(){a.na.open({message:"Unable to upload file"}); zy(a)}).mh("SupportContentForums","TailwindAvatar").start()} function yy(a,b){return ue(a,function e(){var f=this,h;return mb(e,function(k){switch(k.o){case 1:return h=f.Ui(f.o,b),$a(k,2),Qa(k,ky(f.user,h),4);case 4:f.na.open({message:"Avatar uploaded successfully"});ab(k,3);break;case 2:bb(k),f.na.open({message:"Unable to upload file"});case 3:zy(f),Wa(k)}})})} function zy(a){var b;delete a.o;a.ma=!1;a.Ca();null===(b=a.Ni)||void 0===b?void 0:b.focus()} vy.prototype.Ui=function(a,b){return{originalFilename:a.name,mimeType:a.type,Ac:b.o,documentId:b.Kh(),deleted:!1}};function Ay(a){var b=a.user,c=a.size,e=void 0===a.ah?!1:a.ah,f=void 0===a.td?!1:a.td;a=void 0===a.Np?!1:a.Np;E.call(this,"sc.tailwind.shared.Avatar");this.user=b;this.size=c;this.ah=e;this.Np=a;if(this.o=f&&fx(By(this)))this.ha=new vy({user:b,td:f}),Dk(this,this.user,1)} y(Ay,E);Ay.prototype.content=function(){var a=this,b=tx(gx(By(this))),c=fx(By(this)),e=ix(By(this)),f={};this.element("div","class",(f.root=!0,f[this.size]=!0,f["at-least-silver"]=c,f["at-least-specialist"]=e,f),"style",{"background-color":c?b:null,"border-color":c?b:null},function(){e&&Cy(a);switch(0===a.user.getId()?0:jy(a.user)&&fx(By(a))?3:a.ah?2:1){case 3:Dy(a);break;case 0:vk(Ey);break;case 2:Fy(a);break;default:Gy(a)}a.o&&a.ha.render()})}; function Cy(a){a.element("div","class","specialist-border",function(){(new vp({icon:gx(By(a)).sg(),size:Hy(a.size)})).render()})} function Gy(a){var b=a.user.getName().charAt(0).toLocaleUpperCase();a.element("svg","class","monogram","xlmns","http://www.w3.org/2000/svg","viewBox","0 0 24 24",function(){a.element("circle","cx","12","cy","12","r","12","fill",$x[a.user.getId()%$x.length]);a.element("text","fill","#fff","font-size","16","text-anchor","middle","x","12","y","18",b)})} function Dy(a){a.element("img","class","avatar","onload",function(){return void a.Ca()},"src",jy(a.user)).complete||a.element("div","class","avatar avatar-loading",function(){(new Yo).render()})} function Fy(a){a.element("svg","class","silhouette","xlmns","http://www.w3.org/2000/svg","fill",$x[a.user.getId()%$x.length],"viewBox","2 2 20 20",function(){a.element("path","d","M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 3c1.66 0 3 1.34 3 3s-1.34 3-3 3-3-1.34-3-3 1.34-3 3-3zm0 14.2c-2.5 0-4.71-1.28-6-3.22.03-1.99 4-3.08 6-3.08 1.99 0 5.97 1.09 6 3.08-1.29 1.94-3.5 3.22-6 3.22z")})} function By(a){return a.Np?ey(a.user):a.user.highestRole} function Hy(a){switch(a){case "large":return kp()?72:114;case "medium":return 40;case "small":return 24;default:return 0}} var Ey=Te('\n \n \n \n');function Iy(a){E.call(this,"sc.tailwind.shared.CategorySelect");this.model=a;Dk(this,this.model);a=Jy(this.model);var b;var c=null!==(b=this.model.o)&&void 0!==b?b:0;this.select=new Wx({filled:!1,items:a,label:"Category",selectedIndex:c})} y(Iy,E);Iy.prototype.content=function(){var a=this;this.element("div","class","root",function(){a.select.render()})};function Ky(a){var b=a.categories,c=a.UC;Jk.call(this);this.categories=b;c&&(this.o=this.categories.findIndex(function(e){return e.id===c})+1,this.category=this.categories[this.o])} y(Ky,Jk);Ky.prototype.Pc=function(){return this.category}; Ky.prototype.we=function(a){a!==this.category&&(this.category=a,Mk(this,0))}; function Jy(a){return[{value:"Please select",trigger:function(){return void a.we(void 0)}}].concat(Ba(a.categories.map(function(b){return{value:b.label, trigger:function(){return void a.we(b)}}})))} ;function Ly(a){E.call(this,"sc.tailwind.shared.TitleField");var b=this;this.model=a;Dk(this,this.model);this.o=new $o({Fe:!0,label:"Tell us your question",placeholder:this.model.hint,Me:!1,maxLength:this.model.od(),Pd:function(){b.model.nb(b.o.Ja())}})} y(Ly,E);Ly.prototype.content=function(){var a=this;this.o.nb(this.model.Ja());this.element("div","class","root",function(){a.o.render();My(a)})}; function My(a){a.element("div","class","helper-text",function(){var b=a.element;var c=a.o.Ja().length;c=c=a.model.od()?"Character limit is reached.":"";b.call(a,"div","class","limits-text",c);b=a.o.Ja().length;c=b+"/"+a.model.od();a.element("div","class","char-count","aria-label",c,"aria-live",b===a.model.od()?"assertive":void 0,c)})} ;function Ny(a){var b=void 0===a.text?"":a.text,c=void 0===a.hint?'Example: "How do I backup my photos?"':a.hint,e=void 0===a.minLength?10:a.minLength;a=void 0===a.maxLength?100:a.maxLength;Jk.call(this);this.text=b;this.hint=c;this.minLength=e;this.maxLength=a} y(Ny,Jk);Ny.prototype.od=function(){return this.maxLength}; Ny.prototype.nb=function(a){a=a.substring(0,this.maxLength);if(a!==this.text){var b=Oy(this);this.text=a;Mk(this,0);b!==Oy(this)&&Mk(this,1)}}; Ny.prototype.Ja=function(){return this.text.substring(0,this.maxLength)}; function Oy(a){var b=a.text.length;return b>=a.minLength&&b<=a.maxLength} ;function Py(a){Jk.call(this);this.mb=this.text="";this.checked=this.disabled=!1;this.tabIndex=0;this.Be(a)} y(Py,Jk);Py.prototype.Be=function(a){var b=void 0===a.text?"":a.text,c=void 0===a.mb?"":a.mb,e=void 0===a.disabled?!1:a.disabled,f=void 0===a.tabIndex?0:a.tabIndex,h=a.content,k=a.Ge;this.checked=void 0===a.checked?!1:a.checked;this.text=b;this.mb=c;this.disabled=e;this.tabIndex=f;this.content=h;this.Ge=k}; Py.prototype.Ja=function(){return this.text}; Py.prototype.re=function(){return this.content}; Py.prototype.Ri=function(){return this.mb};function Qy(a){a=void 0===a?{}:a;E.call(this,"sc.shared.MaterialCheckbox");this.model=a instanceof Py?a:new Py(a);this.overlay=new bl({Il:!0});this.o=null;Dk(this,this.model)} y(Qy,E);Qy.prototype.content=function(a){var b=this;a&&this.model.Be(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.Ri(),"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.Ja(),e=b.model.re();c?nk(c):e&&e()})}; Qy.prototype.Fa=function(){if(this.o){var a=this.model,b=this.o.checked,c;a.checked!==b&&(a.checked=b,null===(c=a.Ge)||void 0===c?void 0:c.call(a,b),Mk(a,0))}};function Ry(a){z.call(this,a,-1,Sy)} y(Ry,z);Ry.prototype.lb=function(){return Qd(this,1)}; Ry.prototype.uc=function(a){return Vd(this,1,a)}; Ry.prototype.$b=function(){return Qd(this,2)}; Ry.prototype.ae=function(a){return Vd(this,2,a)}; var Sy=[3];var Ty=new Map([[3,2],[2,1],[6,8],[8,4],[4,3],[5,11],[7,9]]);function Uy(){Jk.apply(this,arguments);this.dependencies=[]} y(Uy,Jk);Uy.prototype.Wd=function(){return 1===this.getState()}; Uy.prototype.isPending=function(){return 0===this.getState()}; Uy.prototype.Vh=ma(13);Uy.prototype.rf=ma(14);var Vy=ya(["https://www.google.com/recaptcha/api.js?trustedtypes=true&render=explicit&onload=",""]);function Wy(a,b){this.clientId=0;this.load(a,void 0===b?function(){}:b)} Wy.prototype.load=function(a,b){var c=this;window.sc_renderRecaptcha=function(){window.grecaptcha&&a&&(c.clientId=window.grecaptcha.render(a,{sitekey:"6LcN-4saAAAAAGOz10SCh-KHThAjGiUum6B9HVft",badge:"inline",size:"invisible"}),b())}; var e=document.createElement("script");ig(e,rg(Vy,"sc_renderRecaptcha"));document.head.appendChild(e)}; Wy.prototype.getResponse=function(){return ue(this,function b(){var c,e=this,f;return mb(b,function(h){switch(h.o){case 1:if(!window.grecaptcha)return h.return("");c=window.grecaptcha;$a(h,2);return Qa(h,new Promise(function(k){c.ready(k)}),4); case 4:return Qa(h,c.execute(e.clientId,{action:"submit"}),5);case 5:return f=h.ha,h.return(f||"");case 2:return bb(h),h.return("")}})})};function Xy(){Uy.apply(this,arguments);this.state=0;this.Vd=""} y(Xy,Uy);Xy.prototype.getState=function(){return this.state}; Xy.prototype.Fc=function(){var a,b,c,e,f,h,k=null!==(b=null===(a=this.o)||void 0===a?void 0:a.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.ha()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==b?b:[]; k=k.concat(null!==(e=null===(c=this.o)||void 0===c?void 0:c.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.ua()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==e?e:[]); return k.concat(null!==(h=null===(f=this.o)||void 0===f?void 0:f.filter(function(l){var n;return null===(n=l.ha)||void 0===n?void 0:n.va()}).map(function(l){return l.Ff()}).filter(this.ha))&&void 0!==h?h:[])}; Xy.prototype.ha=function(a){return!!a.getId()&&a.Db()}; Xy.prototype.Nd=ma(16);var Yy=new Map([["CT_ANSWER","gm/drive_document"],["CT_FORUM_CONTENT","gm/question_answer"],["CT_SUPPORT_FORUM_THREAD","gm/question_answer"],["CT_YOUTUBE","gm/video_youtube"],[void 0,"gm/language"]]);function Zy(a){var b;return null!==(b=Yy.get(a.type))&&void 0!==b?b:"gm/drive_document"} function $y(a,b){var c=Zy(a);return"CT_WORKFLOW"===a.type?new vp({icon:0}):new Rk({icon:c,size:b})} ;function az(a,b,c){var e;a=u(a.querySelectorAll("a"));for(var f=a.next();!f.done;f=a.next())if(f=f.value,f.hasAttribute("target")||b){var h=null!==(e=f.getAttribute("aria-label"))&&void 0!==e?e:"";h.includes(c)||f.setAttribute("aria-label",h+(" ("+c+")"));f.getAttribute("target")||f.setAttribute("target","_blank")}} ;var bz;Mb("hcfe.Stats.getInstance",function(){return bz});function cz(a,b,c,e,f,h,k){E.call(this,"SmartJourney.Onebox");this.La=a;this.oneboxResult=b;this.openInNewWindow=c;this.o=e;this.na=f;this.ma=h;this.wb=k;this.ha=new Rk({icon:"gm/open_in_new"})} y(cz,E);cz.prototype.content=function(){var a=this;this.element("div","class",{result:!0,separator:this.ma},function(){var b=a.oneboxResult,c;null===(c=bz)||void 0===c?void 0:c.Zm([{type:a.o}]);"CT_SNIPPET"!==b.type&&dz(a);ez(a);fz(a);if("CT_SNIPPET"!==b.type)switch(a.oneboxResult.type){case "CT_WORKFLOW":gz(a,a.La.get("Onebox.GET_STARTED"));break;default:gz(a,a.La.get("Onebox.READ_MORE"))}})}; function dz(a){a.element("div","class","content-header",function(){var b=Zy(a.oneboxResult),c=$y(a.oneboxResult,16);a.element("span","class",{"content-icon":!0,"help-article":"gm/drive_document"===b,language:"gm/language"===b,"question-answer":"gm/question_answer"===b,youtube:"gm/video_youtube"===b},"aria-hidden","true",c);b=a.La.get("Onebox.HELP_ARTICLE");switch(a.oneboxResult.type){case "CT_WORKFLOW":b=a.La.get("Onebox.TROUBLESHOOTER")}a.element("span","class","content-label",b)})} function ez(a){var b=a.oneboxResult.title;a.openInNewWindow&&(b+=" ("+a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW")+")");a.element("a","class","title","href",a.oneboxResult.url,"target","_blank","data-stats-ve",a.o,"data-stats-action",8,"aria-label",b,"onclick",a.wb,function(){var c;a.element("span",ct(null!==(c=a.oneboxResult.title)&&void 0!==c?c:""))})} function fz(a){var b=a.element("div","class","snippet",function(){var c;vk(ct(null!==(c=a.oneboxResult.snippet)&&void 0!==c?c:""))}); az(b,a.openInNewWindow,a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW"))} function gz(a,b){var c=b;a.openInNewWindow&&(c+=" ("+a.La.get("Onebox.OPENS_IN_A_NEW_WINDOW")+")");a.element("a","class","action-link","href",a.oneboxResult.url,"target",a.openInNewWindow?"_blank":"","data-stats-ve",a.na,"data-stats-action",8,"aria-label",c,"onclick",a.wb,function(){a.element("span",b);a.openInNewWindow&&a.ha.render()})} ;function hz(a,b){return ue(this,function e(){var f;return mb(e,function(h){if(1==h.o)return Qa(h,b.post({endpoint:"classifications",json:!0,queryParams:{v:"1"},request:iz(a)}),2);f=h.ha;var k=h.return;var l;if("get_categories"in f)var n={categories:null!==(l=f.get_categories.category)&&void 0!==l?l:[],predictionId:f.get_categories.prediction_id,highConfidenceTopK:f.get_categories.high_confidence_top_k};else throw Error("Unsupported classifications response");return k.call(h,n)})})} function iz(a){switch(a.method){case "get_categories":return{resource:{get_categories:{description:a.issueDescription,frd_value:a.nd.map(function(b){return b.ha()})}}}; default:throw Error("Unsupported classifications method");}} ;function jz(a,b){return ue(this,function e(){return mb(e,function(f){return f.return(b.get({endpoint:"search",json:!0,queryParams:{query:a.query,max_results:JSON.stringify(a.maxResults),origin_page_type:JSON.stringify(33),search_session_id:a.searchSessionId,symptom:a.symptom,user_context:a.userContext,v:"1"}}))})})} ;function kz(a){Jk.call(this);this.strings=a} y(kz,Jk);kz.prototype.get=function(a){var b;return null!==(b=this.strings[a])&&void 0!==b?b:""}; kz.prototype.set=function(a){this.strings=Object.assign(Object.assign({},this.strings),a);Mk(this)};function lz(a){z.call(this,a)} y(lz,z);function mz(a){z.call(this,a)} y(mz,z);function nz(a){z.call(this,a,-1,oz)} y(nz,z);var oz=[1];function pz(a){z.call(this,a)} y(pz,z);pz.prototype.getQuery=function(){return Qd(this,1)};function qz(a){z.call(this,a,-1,rz)} y(qz,z);var rz=[1];function sz(a){var b=a.items,c=a.Sc,e=void 0===a.lh?void 0:a.lh,f=void 0===a.vc?1:a.vc,h=void 0===a.wc?4:a.wc;a=a.hb;E.call(this,"hcfe.SearchSelect.Menu");var k=this;this.na=this.ha=!1;this.lh=e;this.items=b;this.Sc=c;this.Mm=-Infinity;this.Lm=Infinity;this.ma=new Fo({content:function(){tz(k)}, Fg:4,vc:f,wc:h,Ci:!0,hb:a})} y(sz,E);p=sz.prototype;p.content=function(){this.ma.render()}; function tz(a){a.element("div","class",{root:!0,"root-loading":a.ha},function(){a.na&&a.element("div","class","search-container",function(){a.element("div","class","input-container",function(){a.ta=a.element("input","class","search-field","placeholder",a.Sc.dw,"oninput",function(){var b;null===(b=a.lh)||void 0===b?void 0:b.call(a)},"disabled",a.ha)}); a.element("div","class","icon","onclick",function(){var b;null===(b=a.ta)||void 0===b?void 0:b.focus()},function(){var b; null!==(b=a.ua)&&void 0!==b?b:a.ua=new Rk({icon:"gm/search"});a.ua.render()})}); a.element("div","class","scroll-container","style",{minHeight:-Infinitya.Lm?a.Lm+"px":null},function(){a.ha&&a.element("div","class","loading-spinner",function(){(new Yo({size:"mspin-small"})).render()}); if(0a&&Infinity!==a&&(a=h);this.Mm=h;this.Lm=a;this.Ca();this.ma.open({anchor:b,Id:c,vd:e,Kb:f})}; p.close=function(){this.ma.close()}; function yz(a){return!!a.Yh&&Array.isArray(a.items)&&0b.length){f=[{state:5}];a.Aa.set("",f);n.Va(4);break}a.o.Xe(!0);a.o.open({Kb:!0});$a(n,5);return Qa(n,a.Ob(b.trim()),7);case 7:f=n.ha;0===f.length&&(f=[{state:4}]);a.o.Xe(!1);ab(n,4);break;case 5:h=bb(n),f=[{state:3}],a.o.Xe(!1),a.o.open({Kb:!0}), dA(h);case 4:return a.Aa.set("",f),k=a.o,l=k.Ig,Qa(n,Sz(a,!0),8);case 8:l.call(k,n.ha),a.o.Ca(),a.o.open({Kb:!0}),Wa(n)}})} function Yz(a,b){return function(){a.ta=b;a.o.close();a.va&&a.va()}} Mz.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.Ic)&&!a.includes(e)&&a.push(e)}return a}; function Uz(a,b){var c,e;return ob(function(f){if(1==f.o)return $a(f,2),Qa(f,a.ub(b),4);if(2!=f.o){c=f.ha;if(!c||0==c.length)return eA(a,b,Error("No results")),f.return();a.ha.set(b,c);return ab(f,0)}e=bb(f);eA(a,b,e);Wa(f)})} function eA(a,b,c){a.ha.set(b,[{state:2}]);a.Ra&&a.ua&&(a.ua=!1,a.Ra(c),Pz(a));dA(c)} function Pz(a){a.na=new $o({placeholder:"Google Ads Customer ID",Xb:!0,Pd:function(){a.ma=a.na.Ja().replace(Jz,"");a.Zb()}, yd:a.$a})} function dA(a){a=new CustomEvent("cid_selector_fetch_error",{detail:a});ok().dispatchEvent(a)} function Nz(a){a.Aa.clear();a.Aa.set("",[Tz()])} function Tz(){return{value:"",trigger:function(){}, items:[],state:0}} ;function fA(a,b){this.ua=a;this.ya=b;this.ma="https://play.google.com/log?format=json&hasfast=true";this.oa=!1;this.va=xq;this.o=""} function gA(a){var b=new nq(a.ua,a.na?a.na:Mp,a.ya,a.va,a.ma,a.oa,!1,void 0,void 0,void 0,a.wa?a.wa:void 0);if(a.Aa){var c=a.Aa;Qd(c,1)||Vd(c,1,1);de(b.oa,1,c)}if(a.ha){c=a.ha;var e=be(b.oa,dq,1),f=be(e,bq,11);f||(f=new bq);Vd(f,7,c);de(e,11,f);Qd(e,1)||Vd(e,1,1);de(b.oa,1,e)}a.ta&&(b.wa=a.ta);a.o&&(b.Ba=a.o);a.ka&&qq(b,a.ka);a.Da&&(c=a.Da,b.ka||(b.ka=new yp),$d(b.ka,2,c));a.Ba&&(a=a.Ba,b.$a=!0,sq(b,a));return b} ;
Search Help Center
true
102095
");return null==a||null==a.sheet?dh:Wm(a.sheet,void 0!=b?b:null,c)} function $m(a){if(ef&&!rf(10)||"function"!=typeof id.DOMParser)return null;a=ih(""+a+"",null);return(new DOMParser).parseFromString(gh(a),"text/html").body.children[0]} function Ym(a,b){if(!a)return Tg;var c=document.createElement("div").style;an(a).forEach(function(e){var f=hf&&e in Vm?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=Rm(a,e),e=qm(f,e,b),null!=e&&Sm(c,f,e))});return new Pg(c.cssText||"",Og)} function bn(a){var b=Array.from(Jm(ym,a,"getElementsByTagName",["STYLE"])),c=Fe(b,function(f){return le(Nm(f).cssRules)});c=Xm(c);c.sort(function(f,k){f=jm(f.selectorText);a:{k=jm(k.selectorText);for(var p=se,r=Math.min(f.length,k.length),t=0;t"+a+""),bn(a),a=a.innerHTML);a=ih(a,null);var c=document.createElement("template");if(hn&&"content"in c)Yh(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Yh(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=dn?new WeakMap:new fn;e=a.nextNode();){a:{var f=e;switch(Pm(f)){case 3:f= kn(this,f);break a;case 1:if("TEMPLATE"==Om(f).toUpperCase())f=null;else{var k=Om(f).toUpperCase();if(k in this.ha||"http://www.w3.org/1999/xhtml"!=Tm(f))var p=null;else this.N[k]?p=document.createElement(k):(p=vj(document,"SPAN"),this.na&&Lm(p,"data-sanitizer-original-tag",k.toLowerCase()));if(p){var r=p,t=Km(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=Om(E);ma=ma.value;var ua={tagName:Fd(ta).toLowerCase(),attributeName:Fd(na).toLowerCase()},sa={oh:void 0};"style"==ua.attributeName&&(sa.oh=Mm(E));E=ln(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=ln(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&Lm(r,k.name,ma)}f=p}else f=null}break a;default:f=null}}if(f){if(1==Pm(f)&&c.set(e,f),e=Qm(e),k=!1,e)p=Pm(e),r=Om(e).toLowerCase(),t=Qm(e),11!=p||t?"body"==r&&t&&(p=Qm(t))&&!Qm(p)&&(k=!0):k=!0,p=null,k||!e?p=b:1==Pm(e)&&(p=c.get(e)),p.content&&(p=p.content),p.appendChild(f)}else xj(e)}c.clear&& c.clear();return b};var mn={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 nn={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 on={"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 pn(a){a=a||new qn;rn(a);this.v=Re(a.v);this.ha=Re(a.Ca);this.N=Re(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()]=sn},this);a.Ma.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||on[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(pn,jn);function tn(a){return function(b,c){b=Fd(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=Cg(c)?Cg(c):null}} function qn(){this.v={};Ud([gm,hm],function(a){Oe(a).forEach(function(b){this.v[b]=sn},this)},this);this.N={};this.ha=[];this.Ma=[];this.Ca=Re(mn);this.Ia=Re(nn);this.va=!1;this.Na=Mg;this.ka=this.$=this.Qa=this.O=Vh;this.ya=null;this.ma=this.na=!1} function un(a,b){return function(c,e,f,k){c=a(c,e,f,k);return null==c?null:b(c,e,f,k)}} function vn(a,b,c,e){a[c]&&!b[c]&&(a[c]=un(a[c],e))} function rn(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");vn(a.v,a.N,"* USEMAP",wn);var b=tn(a.Na);["* ACTION","* CITE","* HREF"].forEach(function(e){vn(this.v,this.N,e,b)},a);var c=tn(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){vn(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){vn(this.v,this.N,e,ud(xn,this.Qa))},a);vn(a.v,a.N,"A TARGET",ud(yn,["_blank","_self"]));vn(a.v,a.N,"* CLASS",ud(zn,a.$));vn(a.v,a.N,"* ID",ud(An,a.$));vn(a.v,a.N,"* STYLE",ud(a.ka,c));a.ma=!0} function ln(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function sn(a){return Fd(a)} function yn(a,b){b=Fd(b);return 0<=Td(a,b.toLowerCase())?b:null} function wn(a){return(a=Fd(a))&&"#"==a.charAt(0)?a:null} function xn(a,b,c){b=Fd(b);return a(b,c)} function zn(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=Jn(a);b&&(a=a.querySelector(b).parentNode);return a} function In(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?Kn(e,f,b):f.childNodes.length&&c.push(f)})} function Kn(a,b,c){if(b.textContent.match(Ln)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,k=[];f=Ln.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=rd(b,c));var k=this.N[f];k||(k=[],this.N[f]=k);ce(k,this.v[a]);this.v[a]=b;k.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],ce(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ua:0a.Ua?Math.floor(b*a.Ua):a.Ua};a.Ua=Math.max(a.Ba,a.Ua);return a} function yo(a,b,c,e,f,k){var p=b.width-a.ha-a.ma;a.na=qp(p,b.width,b.height,pp(c,b.height),op(a,[1,2]));a.ka=qp(p,b.width,b.height,pp(f,b.height),op(a,[3,4]));c=b.height-a.na-a.ka;f=op(a,[3,4,1,2]);var r=0;for(p=0;pp){a=tp(f);for(e=b=0;ep-b-y.Ba.height&&y.zc&&(y.jc.height=0),b+=y.jc.height;return vi(b,k,c)}if(rk){a=tp(e);for(c=e=0;ck-e-t.Ba.width&&t.zc&&(t.jc.width=0),e+=t.jc.width;return vi(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.Vc.Qf?b.Vc.Qf:20;c=void 0!==c.Vc.Qf?c.Vc.Qf:20;return b-c})} wo.prototype.setMargins=wo.prototype.Zc;wo.prototype.setMarginEnd=wo.prototype.wk;wo.prototype.setMarginStart=wo.prototype.zk;wo.prototype.setMarginLeft=wo.prototype.xk;wo.prototype.setMarginBottom=wo.prototype.vk;wo.prototype.setMarginRight=wo.prototype.yk;wo.prototype.setMarginTop=wo.prototype.Ak;wd("aplos.chart.layout.DynamicLayout",wo);var up={qq:"WARNING",ERROR:"ERROR"};wd("aplos.util.MessageSeverity",up);up.WARNING="WARNING";up.ERROR="ERROR";var vp={nq:"UNTIL_REMOVED",mq:"UNTIL_DATA",Lp:"ONCE"};wd("aplos.util.MessageDuration",vp);vp.UNTIL_REMOVED="UNTIL_REMOVED";vp.UNTIL_FRESH_DATA="UNTIL_DATA";vp.ONCE="ONCE";function wp(a){this.v=a} wp.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&xp(this,b);b.length||(b=yp(this.v.Ka,zp),b.empty()||(b.style("display","none"),b.selectAll("div."+Ap).remove(),this.v.hb.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});Bp(this,a)};function xp(a,b){var c=zp,e=Cp,f=a.v,k=f.Ka;f.hb.style("display","none");a=yp(k,c);a.empty()&&(a=k.append("div").classed(c,!0),a.append("div").classed(Dp,!0),a.append("div").classed(Ep,!0));a.style("display",null);a.select("."+Ep).attr("class",Ep+" "+e);b=a.select("."+Dp).selectAll("div."+Ap).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 Ap+" "+Fp+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 Bp(a,b){var c=a.v.Ka.select("."+Gp);c.empty()&&(c=a.v.Ka.append("div").classed(Gp,!0));c.style("display",b.length?"":"none");c.classed(Hp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function yp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function aq(a){if("function"===typeof a)return a;a[iq]||(a[iq]=function(b){return a.handleEvent(b)});return a[iq]} ;function jq(){this.port=this.v=null;this.N=[]} jq.prototype.load=function(){var a=this,b=kq();this.v=lq(b);mq().then(function(){document.body.appendChild(a.v)});return nq(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} wd("aplos.data.aggregations.max",yq);function vq(a,b){var c=0;b=b||Wh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} wd("aplos.data.aggregations.count",vq);function zq(a,b){var c=new Set;b=b||Wh;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} wd("aplos.data.aggregations.countDistinct",zq);function Aq(a,b,c,e){if(2>a||!sq(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!sq(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return Bq(b/a,c,e)} wd("aplos.data.aggregations.quantiles",Aq);function Bq(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=Be(c,b),k=Ne(f);if(2>k.length)e=null;else for(f=De(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.Hc(c+1)-e,(c*a+b-e)/a):ba&&b.setFullYear(b.getFullYear()-1900);return b} w=Tq.prototype;w.Ne=Nq.Sk;w.Oe=Nq.Tk;w.clone=function(){var a=new Tq(this.date);a.Ne=this.Ne;a.Oe=this.Oe;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(Pq(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()),Vq(this,a.getDate()))};w.hg=function(a){return[this.getFullYear(),di(this.getMonth()+1),di(this.getDate())].join(a?"-":"")+""};w.toString=function(){return this.hg()};function Vq(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()=c.wg?a-=c.Pg-c.Ib:a<=c.Bf&&(a-=c.Sf-c.Ib);return a} function br(a,b){b=b||"UTC";try{return Yq(a,"%Y-%m-%d %H:%M:%S",b)}catch(c){}try{return Yq(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 cr(a,b,c){c=c||"UTC";var e=dr(b);er(a);Zq(c,"Invalid timezone specified");if("local"===c)return fr(a,e);var f=Math.floor(a/1E3);b=gr(f,c);switch(e){case "YEAR":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),0,1),c=gr(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=gr(a,c),1E3*(a-c);case "MONTH":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),1),c=gr(a,c),1E3*(a-c);case "WEEK":return a=new Xq,a.setTime(f+b),b=new Qq,b.days=-1*a.getUTCDay(),a.add(b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=gr(a,c),1E3*(a-c);case "DAY":return a=new Date(f+b),a=Date.UTC(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),c=gr(a,c),1E3*(a-c);case "HOUR":return a=f+b,1E3*hr(a-a%36E5-b,c);case "MINUTE":return a=f+b,1E3*hr(a-a%6E4-b,c);case "SECOND":return 1E3*hr(1E3*Math.floor(f/1E3),c);case "MILLISECOND":return 1E3*hr(Math.floor(f),c);case "MICROSECOND":return 1E3*hr(Math.floor(a)/1E3,c);default:throw Error("Unknown or unsupported date component for truncation:"+e+".");}} function ir(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{Ib:b,Bf:null,wg:null,qh:null,Sf:null,Pg:null};a=k;break}}e=b+6E7*c[a+1];f=b+6E7*c[a-1];return{Ib:e,Bf:36E8*c[a],wg:36E8*c[a+2],qh:e-f,Sf:f,Pg:b+6E7*c[a+3]}} function gr(a,b){return ar(1E3*a,b).Ib/1E3} function hr(a,b){var c=1E3*a;b=ar(c,b);var e=b.Sf-b.Ib;return a-(0>=e||c-e>b.Bf?0:e)/1E3} function nr(a,b){if(!isFinite(b)||b!==parseInt(b,10))throw Error("value in "+a+" is not a finite integer.");} function Zq(a,b){if("string"!==typeof a)throw Error(b);} function er(a){if("number"!==typeof a)throw Error("Invalid timestamp");} for(var kr=/^(\+|-)(\d\d?)(?::(\d\d?))?$/,lr={"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},mr={},or=[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],pr=Kc(["PST8PDT","America/Los_Angeles","US/Pacific"]),qr=pr.next();!qr.done;qr=pr.next()){var rr=qr.value.toUpperCase();mr[rr]={id:rr,zn:-480,Go:or}} var sr={YEAR:"YEAR",QUARTER:"QUARTER",MONTH:"MONTH",WEEK:"WEEK",DAYOFYEAR:"DAYOFYEAR",DAY:"DAY",DAYOFWEEK:"DAYOFWEEK",HOUR:"HOUR",MINUTE:"MINUTE",SECOND:"SECOND",MILLISECOND:"MILLISECOND",MICROSECOND:"MICROSECOND"},tr={},ur;for(ur in sr)tr[sr[ur]]=ur;var vr=tr;function dr(a){if(!a)throw Error("Missing date component.");var b=vr[a.toUpperCase()];if(!b)throw Error("Invalid date component "+a);return b} function fr(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 wr(a,b){var c=xr(a,void 0===b?"__default__":b);return function(e){return null==e?"null":c(e/1E3)}} function xr(a,b){b=void 0===b?"__default__":b;var c=!1;0<=a.indexOf("%Z")&&(c=!0,a=a.replace("%Z","_tzhereplz_"));var e=yr();return function(f){if(null==f)return"null";"string"===typeof f&&(f=+f);md(f)&&(f=f.getTime());var k="__default__"===b?Fq:b,p=zr(a);if("local"===k){p=Ar(a);var r=f;k=-6E7*(new Date(f)).getTimezoneOffset()}else"UTC"===k||"+00:00"===k?(r=f,k=0):(f*=1E3,r=ar(f,k),r=(f+r.Ib)/1E3,k=jr(f,k));r=new Date(r);if(isNaN(r.getTime()))return"Invalid date";p=p(r);if(!c)return p;k=(0<=k?"+":"")+e(k);return p.replace("_tzhereplz_",k)}} function yr(){var a=ji("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 Br=["COUNT","COUNT_DISTINCT","COUNT_DISTINCT_EST"],Cr="SUM AVG MIN MAX QUANTILE_50 QUANTILE_75 QUANTILE_90 QUANTILE_95 QUANTILE_99".split(" ").concat(Br),Dr=["MIN","MAX"].concat(Br),Er={},Fr=(Er[["string"]]={Wb:void 0,Ac:!1,oc:"integer",uc:function(){return String},qc:"",yc:"aplos-string-cell",nc:Br,Gb:1,hc:"string",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc: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+'"'}},Er[["decimal"]]={Wb:void 0,Ac:!1,oc:"decimal",uc:gi,qc:".2f",yc:"aplos-numeric-cell",nc:Cr,Gb:2,hc:"number",wc:function(a){return a},mc:function(a){return"SUM("+a+")"},lc:String},Er[["integer"]]={Wb:void 0,Ac:!1,oc:"integer",uc:gi,qc:".0f",yc:"aplos-numeric-cell",nc:Cr,Gb:2,hc:"number",wc:function(a){return a},mc:function(a){return"SUM("+a+")"},lc:String},Er[["time_us"]]={Wb:.001,Ac:!1,oc:"integer",uc:wr,qc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",nc:Dr,Gb:3,hc:"number",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc:function(a){md(a)&&(a=1E3*a.getTime());return String(a)}},Er[["time_ms"]]={Wb:1,Ac:!1,oc:"integer",uc:xr,qc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",nc:Dr,Gb:3,hc:"number",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc:function(a){md(a)&&(a=a.getTime());return String(a)}},Er[["timestamp"]]={Wb:.001,Ac:!1,oc:"integer",uc:wr,qc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",nc:Dr,Gb:3,hc:"number",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"TIMESTAMP_MICROS("+a+")"}},Er[["date"]]={Wb:.001,Ac:!0,oc:"integer",uc:function(a){return wr(a,"UTC")},qc:"%Y-%m-%d",yc:"aplos-date-cell",nc:Dr,Gb:3,hc:"number",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"DATE(TIMESTAMP_MICROS("+a+'), "UTC")'}},Er[["datetime"]]={Wb:.001,Ac:!0,oc:"integer",uc:function(a){return wr(a,"UTC")},qc:"%Y-%m-%d %H:%M:%S",yc:"aplos-date-cell",nc:Dr,Gb:3,hc:"number",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT("+a+")"},lc:function(a){if(null==a)return"null";md(a)&&(a=1E3*a.getTime());return"DATETIME(TIMESTAMP_MICROS("+a+'), "UTC")'}},Er[["boolean"]]={Wb:void 0,Ac:!1,oc:"integer",uc:function(){return String},qc:"",yc:"",nc:Br,Gb:4,hc:"boolean",wc:function(a){return a},mc:function(a){return"SUM(CASE WHEN "+a+" THEN 1 ELSE 0 END)"},lc:String},Er[["hll_sketch"]]={Wb:void 0,Ac:!1,oc:"integer",uc:gi,qc:".0f",yc:"aplos-numeric-cell",nc:["HLL_COUNT.MERGE"],Gb:2,hc:"number",wc:function(a){return"HLL_COUNT.EXTRACT("+a+")"},mc:function(a){return"HLL_COUNT.MERGE("+a+")"},lc:String},Er[["message"]]={Wb:void 0,Ac:!1,oc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},qc:"",yc:"aplos-string-cell",nc:[],Gb:1,hc:"object",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},lc:String},Er[["array"]]={Wb:void 0,Ac:!1,oc:"integer",uc:function(){return function(a){return JSON.stringify(a,null,2)}},qc:"",yc:"aplos-string-cell",nc:[],Gb:1,hc:"object",wc:function(a){return a},mc:function(a){return"COUNT_DISTINCT(TO_JSON_STRING("+a+"))"},lc:String},Er[["kll_int64"]]={vj:!0,Wb:void 0,oc:"integer",uc:gi,qc:".0f",yc:"aplos-numeric-cell",nc:["KLL_INT64_QUANTILE_50","KLL_INT64_QUANTILE_75","KLL_INT64_QUANTILE_90","KLL_INT64_QUANTILE_95","KLL_INT64_QUANTILE_99"],Gb:2,hc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_INT64("+a+", 0.5)"},mc:function(a){return"KLL_QUANTILES.MERGE_POINT_INT64("+a+", 0.5)"},lc:String},Er[["kll_double"]]={vj:!0,Wb:void 0,oc:"decimal",uc:gi,qc:".2f",yc:"aplos-numeric-cell",nc:["KLL_DOUBLE_QUANTILE_50","KLL_DOUBLE_QUANTILE_75","KLL_DOUBLE_QUANTILE_90","KLL_DOUBLE_QUANTILE_95","KLL_DOUBLE_QUANTILE_99"],Gb:2,hc:"number",wc:function(a){return"KLL_QUANTILES.EXTRACT_POINT_DOUBLE("+a+", 0.5)"},mc:function(a){return"KLL_QUANTILES.MERGE_POINT_DOUBLE("+a+", 0.5)"},lc:String},Er);function Gr(a){if("string"===typeof a)return"string";if("number"===typeof a)return"decimal";if("boolean"===typeof a)return"boolean";if(md(a))return"timestamp";if(null==a)return"string";throw Error("Unknown filter value type: "+a);} ;var Hr={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"};wd("aplos.data.FilterOperator",Hr);function Ir(a,b,c){return Jr(b).mb(a,c)} function Kr(a,b){return(a=Jr(a).Ae)?a(b):b} var Lr={},Rr=(Lr["="]={mb:function(a,b){return"null"===b[0]?Mr(a):a+" = "+b[0]},Ae:null},Lr[">"]={mb:function(a,b){return a+" > "+b[0]},Ae:function(a){return[Nr(a)]}},Lr["<"]={mb:function(a,b){return a+" < "+b[0]},Ae:function(a){return[Or(a)]}},Lr[">="]={mb:function(a,b){return a+" >= "+b[0]},Ae:function(a){return[Nr(a)]}},Lr["<="]={mb:function(a,b){return a+" <= "+b[0]},Ae:function(a){return[Or(a)]}},Lr["!="]={mb:function(a,b){return"null"===b[0]?Pr(a):a+" != "+b[0]}},Lr.IN={mb:function(a,b){if(null==b||0===b.length)return"true = false";b=b.slice();var c=je(b,function(e){return"null"===e});if(c&&0===b.length)return Mr(a);b=a+" IN ("+b.join(",")+")";return c?"("+b+" OR "+Mr(a)+")":b}},Lr.NOT_IN={mb:function(a,b){if(null==b||0===b.length)return"true = true";b=b.slice();var c=je(b,function(e){return"null"===e});if(c&&0===b.length)return Pr(a);b=a+" NOT IN ("+b.join(",")+")";return c?"("+b+" AND "+Pr(a)+")":b}},Lr.BETWEEN={mb:function(a,b){return a+" BETWEEN "+b[0]+" AND "+b[1]},Ae:function(a){return si(a)}},Lr.NOT_BETWEEN={mb:function(a,b){return a+" NOT BETWEEN "+b[0]+" AND "+b[1]},Ae:function(a){return si(a)}},Lr.IS_NULL={mb:Mr},Lr.IS_NOT_NULL={mb:Pr},Lr.IS_INFINITY={mb:function(a){return"IS_INF("+a+")"}},Lr.IS_NOT_INFINITY={mb:function(a){return"NOT(IS_INF("+a+"))"}},Lr.IS_NAN={mb:function(a){return"IS_NAN("+a+")"}},Lr.IS_NOT_NAN={mb:function(a){return"NOT(IS_NAN("+a+"))"}},Lr.CONTAINS={mb:function(a,b){return Qr(a,b[0])}},Lr.DOES_NOT_CONTAIN={mb:function(a,b){return"NOT("+Qr(a,b[0])+")"}},Lr.REGEX={mb:function(a,b){return"REGEXP_MATCH("+a+", "+b[0]+")"}},Lr.NOT_REGEX={mb:function(a,b){return"NOT(REGEXP_MATCH("+a+", "+b[0]+"))"}},Lr);function Qr(a,b){b=b||"";b.startsWith('"')&&b.endsWith('"')&&(b=b.substring(1,b.length-1));b=(b||"").toString().replace(Sr,"\\\\$1");b=b.replace(/'/g,"\\'");return"REGEXP_MATCH("+a+", '(?is).*"+b+".*')"} function Mr(a){return a+" IS NULL"} function Pr(a){return a+" IS NOT NULL"} function Jr(a){if(null==Rr[a])throw Error("Unknown filter operator: "+a);return Rr[a]} var Sr=/([.?*+^$[\]\\(){}|-])/g;function Tr(a,b,c){if("string"!==typeof a)return a={Af:void 0!==a.column?a.column:a.Af,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{Af:a,operator:b,value:void 0!==c?c:""}} wd("aplos.data.SimpleFilter",function(){});wd("aplos.data.SimpleFilter.Operator",Hr);wd("aplos.data.SimpleFilter.buildFromFilterOrValues",Tr);function Ur(a){for(var b=0;be&&(f=1));return null!=f?"ASC"===a?f:-1*f:0} var $r=Wr.bind(null,"ASC",!1);function Zr(a){return null==a?0:-Infinity===a?2:Infinity===a?4:"number"===typeof a&&isNaN(a)?1:3} var Xr=!1,Yr=/^-?[0-9]*(\.)?[0-9]+$/;wd("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=Kr(b,c),c.forEach(function(k){var p=null==e?Gr(k):e;f.push(Fr[p].lc(k))}));return Ir(a,b,f)});wd("aplos.data.util.seriesHasData",function(a,b){return a.data.some(function(c){return null!=c[b]})});wd("aplos.data.util.sort",Wr);function as(a){this.tf=this.Ta=.35;this.tb=this.Rb=null;this.ka=new Set;this.v=[0,1];this.na=new Ek;this.N=0;this.Na=!1;this.Wa=null!=a?a:2;this.O=!0;this.ma=this.Yd=null;this.$b=!1;this.ha=null;this.Ma=!1;this.Ia=1;this.Qa=0;this.va=null;this.Za=1;this.sf=this.Qc=this.qf=this.rf=this.$=null;this.uf=new tj(0,0);this.Ca=this.ya=null;this.vc=void 0;this.jg=new bs(this);ds(this)} w=as.prototype;w.wi=function(a){this.Wa=a;this.O=!0;return this};w.dk=function(a){this.Ta=a;2==this.Wa&&this.wi(this.Wa);return this};w.Ql=function(){return this.Ta};w.Zj=function(a,b){this.Rb=a;this.tb=b;this.O=!0;return this};w.Yg=function(a){this.sf=a;return this};w.Re=function(){return this.sf};w.vb=function(){return this.na};w.dg=function(a){this.na=a;return this};w.Gk=function(a){this.Yd=a;return this};w.Ai=function(a){this.ma=a;this.Ma||(this.ha=null);this.ma instanceof es&&(a=this.ma.Eg(),"function"===typeof a&&this.Pd(a));this.O=!0;return this};w.Wm=function(){return this.ma};w.Yj=function(a){this.Na=a;this.O=!0;return this};w.Pd=function(a){this.vc=a;2===this.Wa&&(this.O=!0)};function fs(a){a.ka.clear();a.Ma||(a.ha=null);a.O=!0} function gs(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]?Nr(c):Or(c)} function js(a,b){return a.Yd||b||function(c){return null!=c?c.toString():""}} w.bandwidth=function(){ds(this);return 2==this.Wa?this.La.bandwidth():this.va?2===this.Za?this.La(this.va)-this.La(0):this.va||0:0};function ks(a){ds(a);return 2==a.Wa?[kj(a.La,a.v[0]),kj(a.La,a.v[1])]:a.La.domain()} w.Bk=function(a){this.ha=a;this.Ma=null!=a;this.ui(1,0);return this};w.ui=function(a,b){this.Ia=a;this.Qa=b;this.O=!0};function ls(a,b,c,e,f,k,p){a.$b!==k&&(a.O=!0);a.$=b;a.rf=c;a.qf=e;a.N=f;a.$b=k;a.Qc=p} w.Dh=function(){var a=ni(this.N);null==this.Re()&&this.na.Qj(this.$);return{position:a,Qf:10}};w.ig=function(a){var b=ni(this.N);b=gg(a,this.Re(),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=ms(this,this.Qc);a=this.na.jh(this.$,c,this.N,a,this.bandwidth(),this.Ca);this.range(b);return a};w.Fh=function(){return 0};w.Gh=function(){return 0};w.Xg=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.uf=new tj(b,c);this.ya=a};w.Ff=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.Lb())+", "+((2==this.N?c.bottom:c.top)-a.Mb())+")");c=ms(this,this.Qc);var e=is(this,0);if(isNaN(e))switch(this.N){case 0:e=a.yb();break;case 1:e=0;break;case 3:e=a.$a();break;case 2:e=0}var f={top:a.Mb(),right:a.Lb()+a.$a(),bottom:a.Mb()+a.yb(),left:a.Lb()};this.na.render(this.$,c,this.N,new tj(a.$a(),a.yb()),this.uf,this.bandwidth(),b,this.Ca,this.rf,e,this.qf,this.ya,f)}};function ms(a,b){ds(a);var c=ns(a),e=a.Yd;c.Ze()||(e=js(a,b));b=c.Nb(2==a.Wa?null:a.La.domain(),Math.abs(a.v[0]-a.v[1]),Array.from(a.ka),e,a,a.jg).map(function(k){k&&void 0!==k.value||(k={value:k});void 0===k.location&&(k.location=Math.round(Jp(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 os(a){if(!a.ha)if(2==a.Wa){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.Wa);}} w.Pd=function(a){this.vc=a};w.Eg=function(){return this.vc};w.Ze=function(){return!1};w.Nb=function(a,b,c,e,f,k){this.La&&this.La.ticks?("function"===typeof this.vc&&this.La.domainOverride&&this.La.domainOverride(this.vc),a[0]==a[1]&&(a=ps(this,a[0])),a=this.La.domain(a||c).range([0,b]).ticks().map(function(t){return"number"===typeof t?+t.toFixed(7):t})):a=c;if(this.Mj&&k&&f){var p=2,r=Ip(a,f,e);for(e=r;k.v.na&&k.v.$&&k.v.na.Ji(e,k.v.$,k.v.N)&&2=b)return[];var f=this.nh||Ms(c),k=1E3*Fr[f].Wb;f=a[0]>a[1];c=si(c);a=si(a);0===c[1]-c[0]&&(a=c=[c[0]-36E8,c[0]+36E8]);var p=+c[0]*k;c=+a[0]*k;a=+a[1]*k;var r=Ns(this,(a-c)/(b/this.wn));b=r.interval;r=r.Ja;var t=e;e&&(t=function(sa){return e(sa/1E3)});var y=t||Os(this,this.uh[r].tick),E=t||Os(this,this.uh[r].Ec);t=t||Os(this,this.uh[r].transition);var ma=Ps(r);p=this.zg(b,r,c,p);for(var na=[];p<=a;){if(p>=c){var ta=y(p),ua="minor";ma&&this.mf(p,ma)===p&&(ua="major",t&&(ta=t(p)));na.push({value:p,Jh:ua,label:ta})}p=this.He(p,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.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?si(b,function(e){return e.value}):a};function Ns(a,b){for(var c=Kc(a.Ci),e=c.next();!e.done;e=c.next())if(e=e.value,Qs[e.Ja]*e.interval>=b)return e;return a.Ci[a.Ci.length-1]} function Ps(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.mf=function(a,b){return cr(a,b,this.eh)};w.He=function(a,b,c){return ir(a,b,c,this.eh)};function Os(a,b){return b?wr(b,a.eh):null} w.zg=function(a,b,c,e){switch(b){case "WEEK":case "DAY":return"WEEK"===b?(b=this.mf(e,"WEEK"),b=this.He(b,"DAY",this.Mo),a*=7):b=this.mf(e,"DAY"),c=Math.floor((c-b)/864E8),c=Math.floor(c/a)*a,this.He(b,"DAY",c);default:return b=Ps(b)||"YEAR",this.mf(c,b)}};function Ms(a){a=si(a);return 3E11a[0]?"time_ms":"timestamp"} function Ks(a,b){if(!a)return a;var c=bi(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=Xs(this.Ph),r-p=Xs(b.Db)&&(b.Db=null);a=Xs(b.step)/a;aXs(b.Db)&&(b.Db=b.step));this.Kg=b}a=e||b.N||b.v;e=e||b.v;p=+p;c=new Wq;c.setTime(p);p=this.zg(c,b.step);c=b.Db?this.zg(c,b.Db):null;y=[];for(var E=!1;p.getTime()<=r;){var ma={};a:switch(f){case "milliseconds":var na= p.getTime();break a;case "microseconds":na=1E3*p.getTime();break a;default:na=new Date(p.getTime())}ma.value=na;c&&b.Db&&c.getTime()<=p.getTime()?(ma.type="transition",ma.label=a(new Date(p.getTime())),Zs(c,b.Db),E=!0):ma.label=e(new Date(p.getTime()));y.push(ma);Zs(p,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.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?si(b,function(e){return e.value}):a};w.zg=function(a,b){if(b.N)var c=new Wq(Math.ceil(a.getFullYear()/b.N)*b.N);else if(b.months)c=new Wq(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+=Pq(e,f);c=new Wq(a.getFullYear(),0,Math.ceil(c/b.days)*b.days);0===b.days%7&&c.setDate(c.getDate()-c.getDay()+this.Di)}else if(b.O)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),Math.ceil(a.getHours()/b.O)*b.O);else if(b.$)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),Math.ceil(a.getMinutes()/b.$)*b.$);else if(1<=b.v)c=new Wq(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),Math.ceil(a.getSeconds()/b.v)*b.v);else if(b.v)c=new Wq(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.qe=a;this.Me=!1;return this};w.Jm=function(){return this.qe};w.oi=function(a){this.Rg=a;return this};w.Im=function(){return this.Rg};w.sk=function(a){this.v=a;return this};w.um=function(){return this.v};w.Wg=function(a){(this.Me=a)?this.qe=null:this.qe=5;return this};w.hm=function(){return this.Me};w.Ze=function(){return!1};w.Pd=function(a){this.vc=a};w.Eg=function(){return this.vc};w.Nb=function(a,b,c,e,f){b=this.Me?Math.max(2,Math.floor(b/100)):this.qe;this.vc&&(a=this.vc(a));a=Array.isArray(a)?this.yh(this.Rg,b-1,a,this.v||!1):[];return f?Ip(a,f,e):a};w.Gd=function(a,b,c){b=this.Nb(a,b,c);return b.length?si(b):a};w.Ue=function(a,b,c,e){var f=b[1]-b[0],k=0>f;f=Math.abs(f);var p=f/c;f=Math.pow(10,f?Math.floor(Math.log(p)/Math.LN10):0);for(var r=p,t=0;t=p&&(!e||r==Math.round(r))&&c*r+this.We(b,r)>=b[1]);t++);return(k?-1:1)*r};function bt(a){return 0>a?a+2E-10:0a[0]&&(c-=b);return c};$s.prototype.getDefaultViewport=$s.prototype.Gd;$s.prototype.getTicks=$s.prototype.Nb;$s.prototype.getNicingFunction=$s.prototype.Eg;$s.prototype.getDynamicTicks=$s.prototype.hm;$s.prototype.setDynamicTicks=$s.prototype.Wg;$s.prototype.getIntIntervalsOnly=$s.prototype.um;$s.prototype.setIntIntervalsOnly=$s.prototype.sk;$s.prototype.getNiceCoefficients=$s.prototype.Im;$s.prototype.setNiceCoefficients=$s.prototype.oi;$s.prototype.getNumTicks=$s.prototype.Jm;$s.prototype.setNumTicks=$s.prototype.ri;var at=[1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10];wd("aplos.chart.BaseTickProvider",$s);function ct(){$s.call(this);this.Wg(!0);this.oi([.25,.5,.6,.75,.8,1,1.25,1.5,2,2.5,3,4,5,6,7.5,8,10]);this.Jg=!1} Zc(ct,$s);ct.prototype.yh=function(a,b,c,e){if(0===b&&(0c[1]||0>c[0]&&0c[1])break;if(this.Jg){if(p-c[0]f;f=Math.abs(f);var p=0==c?f/2:f/(c+1);f=Math.pow(10,f?Math.floor(Math.log(p)/Math.LN10):0);for(var r=null,t=null,y=0,E=0;E=p){var na=this.We(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};ct.prototype.We=function(a,b){return Math.ceil(a[0]/b)*b};wd("aplos.chart.DataTickProvider",ct);function dt(){} dt.prototype.Ze=function(){return!0};dt.prototype.Nb=function(a,b,c,e,f){a=et(c||a);b=[];f?(b=Ip(a,f,e),b.forEach(function(k){0===Math.log(Math.abs(+k.value))*Math.LOG10E%1?(k.label=e?k.label:ft(k.value),k.Jh="major"):(k.label="",k.Jh="minor")})):b=a;return b};dt.prototype.Gd=function(a,b,c){return si(et(c||a))};function et(a){a=a.filter(function(k){return 0!==k});var b=si(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 ft(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} wd("aplos.chart.LogTickProvider",dt);function gt(){this.dh=[]} gt.prototype.Ze=function(){return!1};gt.prototype.Nb=function(){return this.dh.map(function(a){return a&&void 0!==a.value?Re(a):a})};gt.prototype.Gd=function(a){return this.dh.length?si(this.dh,function(b){return null!=b.value?b.value:b}):a};gt.prototype.Hk=function(a){this.dh=a.slice();return this};gt.prototype.setTicks=gt.prototype.Hk;gt.prototype.getDefaultViewport=gt.prototype.Gd;gt.prototype.getTicks=gt.prototype.Nb;wd("aplos.chart.ManualTickProvider",gt);function ht(){$s.call(this)} Zc(ht,$s);ht.prototype.yh=function(a,b,c,e){4E-10=c[1])f=b;else{if(1===b)return si(it(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 it(this,a,b,f,c,e)};function it(a,b,c,e,f,k){c=Math.max(1,c);var p=0;0>f[0]&&(p=a.Ue(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:gi(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:gi(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=xr(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 vt(){} Zc(vt,mt);wd("aplos.chart.OldAxisSpecParser",vt);var wt=new mt;kt.current=wt;function xt(){} xt.prototype.he=function(){};xt.prototype.Ud=function(){};wd("aplos.chart.ShapeRenderer",xt);function yt(a,b,c){this.N=void 0!==c?c:!1;this.O=void 0!==b?b:!0;this.$=a;this.ha="0.6ex"} w=yt.prototype;w.he=function(a,b,c,e,f,k,p){var r=(this.$+" "+b).trim();a=a.append("g").attr("class",r);this.Bc(a);a.append("text");this.Ud(a,b,c,e,f,k,p)};w.Ud=function(a,b,c,e,f,k,p){var r=null!=p.strokeWidth?p.strokeWidth:2,t=this.O?"white":k,y=this.Nc(a);1>y.size()&&(y=Ij(a.node()),b=(this.$+" "+b).trim(),y.attr("class",b),y.selectAll("*").remove(),this.Bc(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?p.label:null)};w.Bc=function(){};w.Nc=function(){};w.Tc=function(){};function zt(a,b,c,e,f,k,p){c={dx:c,fill:k,"text-anchor":"middle",opacity:a.N?"1":"0"};ef||ff?(c.y=e,c.dy=a.ha):(c.dy=e,c["dominant-baseline"]="middle");lj(b,c);b.style("fill",k);b.style("font-size",1.25*f+"px");b.text(p)} wd("aplos.chart.shaperenderer.BaseLabelShape",yt);function At(){yt.call(this,"aplos-box-triangle-right-shape-group",!0,!1)} Zc(At,yt);At.prototype.Bc=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")};At.prototype.Nc=function(a){return a.select("g.aplos-box-triangle-right-shape")};At.prototype.Tc=function(a,b,c,e,f,k,p,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;lj(a,{fill:r,width:na+"px",height:na+"px",transform:"translate("+(c-f)+", "+(e-f)+")"});lj(E,{rx:2,ry:2,width:2*f,height:2*f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":p});lj(ma,{d:"M5.5 3.5v9l6-4.5z",fill:"white",transform:"scale("+ ta+")"});zt(this,b,c,e,f,t,y)};wd("aplos.chart.shaperenderer.BoxTriangleRight",At);function Bt(a,b){yt.call(this,"aplos-circle-shape-group",a,b)} Zc(Bt,yt);Bt.prototype.Bc=function(a){a.append("circle").attr("class","aplos-circle-shape")};Bt.prototype.Nc=function(a){return a.select("circle.aplos-circle-shape")};Bt.prototype.Tc=function(a,b,c,e,f,k,p,r,t,y){lj(a,{cx:c,cy:isNaN(e)?null:e,r:f,fill:k?r:"white",stroke:k?null:r,"stroke-width":k?"0":p});zt(this,b,c,e,f,t,y)};wd("aplos.chart.shaperenderer.Circle",Bt);function Ct(){} Ct.prototype.he=function(a,b,c,e,f,k,p,r,t){b=("aplos-cylinder-shape "+b).trim();a=a.append("line").attr("class",b);this.Ud(a,b,c,e,f,k,p,r,t)};Ct.prototype.Ud=function(a,b,c,e,f,k,p,r,t){lj(a,{x1:c,x2:r,y1:e,y2:t,"stroke-linecap":"round",stroke:k,"stroke-width":2*f})};wd("aplos.chart.shaperenderer.Cylinder",Ct);function Dt(a,b){yt.call(this,"aplos-equilateral-triangle-shape-group",a,b)} Zc(Dt,yt);Dt.prototype.Bc=function(a){a.append("polygon").attr("class","aplos-equilateral-triangle-shape")};Dt.prototype.Nc=function(a){return a.select("polygon.aplos-equilateral-triangle-shape")};Dt.prototype.Tc=function(a,b,c,e,f,k,p,r,t,y){var E=.866*f;lj(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":p});zt(this,b,c,e+f-E,f,t,y)};wd("aplos.chart.shaperenderer.EquilateralTriangle",Dt);function Et(){yt.call(this,"aplos-error-shape-group",!0,!1)} Zc(Et,yt);Et.prototype.Bc=function(a){a=a.append("g").attr("class","aplos-error-shape");a.append("circle").attr("class","secondary");a.append("path").attr("class","primary")};Et.prototype.Nc=function(a){return a.select("g.aplos-error-shape")};Et.prototype.Tc=function(a,b,c,e,f,k,p,r,t,y){k=a.select(".primary");if(1>k.size())throw Error("No primary path found in update selection");p=a.select(".secondary");if(1>p.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");p=a.select(".secondary");if(1>p.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");p=a.select(".secondary");if(1>p.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;p=1;if(36Me(c)||1>a.length)return a;a.sort(function(E,ma){return $r(E[b],ma[b])});e=e||iu(a,b);for(var f=a[0],k=[],p=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=Jp(k,p?ua.time:ua.time/1E3);ua.chartY=0;sa=b.Ed()||yu;ua.label=sa(ua.time)},this);e.sort(function(ua,sa){return ua.ab-sa.ab});var r=[];if(0f.$a())break;E.ab>y.Jb.ab+100?(y.md=E.ab-y.Jb.ab,y={Jb:E,kb:[]},r.push(y)):y.kb.push(E)}if(!y)return;if(y.Jb.ab+60>f.$a()){y.Hl=!0;0na.Jb.ab-100){var ta=(na.Jb.ab-ma.Jb.ab)/2+ma.Jb.ab;y=na.kb;e=ma.kb;na.kb=[];ma.kb=[];e.forEach(function(ua){ua.chartX> ta?na.kb.push(ua):ma.kb.push(ua)});y.forEach(function(ua){ua.chartX>ta?na.kb.push(ua):ma.kb.push(ua)});ma.md=ta-ma.Jb.ab;na.md=na.Jb.ab-ta;60>ma.md&&(na.md+=ma.md,na.kb=[ma.Jb].concat(ma.kb).concat(na.kb),r.splice(r.length-2,1))}}else y.md=f.$a()-y.Jb.ab}c.tj=r;so(b,c)}};w.render=function(a,b,c){var e=b.Kb();b=so(b);if(b.tj&&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.$a()).attr("height",60),c=c.selectAll(".event-annotation-content").data(b.tj),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=Ij(this),p=f.Jb,r=f.Hl,t=f.md-4-10;lj(k,{transform:"translate("+p.ab+", 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(p.description);Nj(E.node(),t);E.attr("dy","1em");Oj(E.node(),p.description);E=y.select("text.date").text(p.label);Nj(E.node(),t);E.attr("dy","2.15em");Oj(E.node(),p.label);var ma=0Math.PI/180*this.N},a)).classed(Eu,!0).style("opacity","0").attr("transform",function(c){return"translate("+c.start+")"});a.Xa?b.transition().delay(a.Xa).duration(a.Xa).style("opacity","1"):b.style("opacity","1");a.O&&!ef?Gu(a,b):Hu(a,b);Iu(a,b);Ju(b);b.filter(function(){return!Ij(this).select("."+Ku).text()}).style("display","none")} function Gu(a,b){var c=a.Cb.Mf,e=a.Cb.ne,f=a.Cb.position,k=a.Cb.padding;b=b.append("g").attr("transform",function(p){if(c&&e){var r=p.offset[0];p=p.offset[1];var t=k+e;t=0===r?0:0Math.PI&&qu(f.rect,b)?f.le.style("display","none"):(f.le.style("display",""),e=f.rect)})} function Hu(a,b){var c=a.Cb.Mf,e=a.Cb.ne,f=a.Cb.padding,k=a.v;b.append("g").attr("transform",function(p){if(c&&e){var r=p.offset[0];p=p.offset[1];var t=f+e;t=0===r?0:0Math.PI/180*this.v},a)).classed(Pu,!0).attr("transform",function(c){return"translate("+c.start+")"});Ru(a,b);Su(a,b);b.empty()||(Tu(a,b),Uu(b),fk(b).filter(function(){return!Ij(this).select("."+Vu).text()}).style("display","none"))} function Ru(a,b){var c=a.Cb.Mf,e=a.Cb.ne,f=a.Cb.position,k=a.Cb.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 p=b=bk(b);b.select("div").empty()||(p=b.select("div"));p.attr("data-label-position",Wu(a,f)).append("div").classed(Vu,!0).style("opacity",0).each(ud(Xu,a.N));b.each(ud(function(r,t){r=Ij(this);var y=r.select("."+Vu),E=y.node();Gj(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&&qu(f.rect,b)?(f.le.style("display","none"),f.Nh.style("display","none")):(f.le.style("display",""),f.Nh.style("display",""),e=f.rect)})} function Tu(a,b){var c=ck(b).node().getBoundingClientRect();b.each(ud(function(e,f){var k=Ij(this),p=fk(k.select("g")),r=p.select("."+Vu).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"),p.style("display","none")},a,c))} function Su(a,b){var c=a.Cb.ne;b.append("line").classed(yw,!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.re=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);sk(e,function(){return c.color()(a,b)})};w.rd=function(a,b,c,e){var f=new qj(c,e),k=this.Ve(),p=this.Hd(),r=rj(f,new qj(0,0)),t=null;if(r>=p&&r<=k)for(f=(0<=f.x?0:Math.PI)+Math.atan(f.y/f.x)+Math.PI/2,k=Cw(this,a,b),p=0;p=r.startAngle&&f<=r.endAngle){t=Jw(this,a,b,r.data||{},p,c,e);break}return t};function Jw(a,b,c,e,f,k,p){var r=c.measure(),t=c.domain(),y=c.color(),E=Cw(a,b,c)[f];var ma=a.Ve();var na=a.Hd();E=(E.startAngle-Math.PI/2+(E.endAngle-Math.PI/2))/2;ma=na+(ma-na)/2;ma=new qj(Math.round(Math.cos(E)*ma),Math.round(Math.sin(E)*ma));E=c.Kb();na=ma.x+E.$a()/2;E=ma.y+E.yb()/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.Bb(b,k,p)} w.Bb=function(a,b,c){var e={domainDistance:0,measureDistance:0,relativeDistance:0};Ue(e,a);void 0!=b&&void 0!=c&&(e.relativeDistance=rj(new qj(e.datumX,e.datumY),new qj(b,c)));return e};w.ke=function(a,b,c,e,f,k,p){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=Ij(this),ya=Ba.select("path"),Aa=p(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 Ow(a,b,c,e,f){var k=Mw(b);return ud(function(p,r){r=Td(e,r);p=Pw(p,r,c,e,f);return k.call(this,{startAngle:p,endAngle:p})},a)} function Kw(a,b,c,e,f){for(--b;0<=b;b--)for(var k=f(c[b],b),p=0;p=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":Xw(this,b),"dominant-baseline":Yw(this,b)}}};function Xw(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 Yw(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(p){var r=p.barLabel;if(r){var t=Ij(this),y=r.valid?1:0,E=null,ma=p.barLabel;if("above"===k.N){var na=p.chartX;ma=p.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 qj(na,ma);r.valid&&e.contains(na)||(E="none");t.text(p.label);b&&(t=t.transition().duration(b));switch(k.v){case "vertical":na= "y"===c?"rotate(-90)":"rotate(90)";break;default:na=null}lj(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",Vj(r["text-anchor"],p.label));t.style("fill",k.O)}})};w.remove=function(a){a.selectAll(".bar-label").remove()};w.Wf=function(){return!0};Sw.prototype.getMinBarLength=Sw.prototype.Fm;Sw.prototype.setMinBarLength=Sw.prototype.mi;Sw.prototype.getLabelPosition=Sw.prototype.qd;Sw.prototype.setLabelPosition=Sw.prototype.Pb;Sw.prototype.getLabelOrientation=Sw.prototype.wm;Sw.prototype.setLabelOrientation=Sw.prototype.tk;Sw.prototype.getLabelColor=Sw.prototype.Qe;Sw.prototype.setLabelColor=Sw.prototype.Yc;Sw.prototype.getLabelOffsetFunction=Sw.prototype.vm;Sw.prototype.setLabelOffsetFunction=Sw.prototype.jf;function Tw(a,b){return a?-4:-b-4} function Uw(a,b){return a?b-4:-4} function Vw(a,b){return a?b/2:-b/2} function Ww(a,b){return a?4:-b+4} wd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Orientation",{HORIZONTAL:"horizontal",VERTICAL:"vertical"});wd("module$contents$aplos$chart$renderer$BarLabels_BarLabels.Position",{ABOVE:"above",BOTTOM:"bottom",MIDDLE:"middle",TOP:"top"});function Zw(){su.call(this);this.na=this.Ta=2;this.ha=null;this.va=0;this.Ca=this.$=1;this.ka=this.Na=null;this.N=this.Za=this.Ia=0;this.v=new Sw;this.ya=[this.v,new Xt];this.tb=Ck;this.Rb=null} Zc(Zw,su);function $w(a,b){a.ya.push(b);return a} function ax(a,b){ce(a.ya,a.v);a.v=b;$w(a,a.v)} w=Zw.prototype;w.Sl=function(){return this.v};w.qo=function(a){this.Za=a;return this};w.Vn=function(a){this.N=a;return this};w.Tl=function(){return this.N};w.Od=function(a){this.tb=a;return this};w.jl=function(a){return arguments.length&&null!=a?this.Nd(a):this.Fc()};w.strokeWidth=function(a){return arguments.length&&null!=a?this.Td(a):this.Kf()};w.Td=function(a){this.Ia=a;return this};w.Kf=function(){return this.Ia};w.stack=function(a){return arguments.length&&null!=a?this.Sd(a):this.Xe()};w.Sd=function(a){this.ag(a?2:1);return this};w.Xe=function(){return 2===this.$};w.ag=function(a){this.$=a;return this};w.nm=function(){return this.$};w.uo=function(a){return arguments.length&&null!=a?this.zi(a):this.Ca};w.zi=function(a){this.Ca=a;return this};w.Sm=function(){return this.Ca};w.Mg=function(a){return arguments.length&&void 0!==a?this.Zg(a):this.ka};w.Zg=function(a){this.ka=Math.max(0,a);return this};w.Em=function(){return this.ka};w.Ck=function(a){this.Na=Math.max(0,a);return this};w.Gm=function(){return this.Na};w.kl=function(a){return arguments.length&&null!=a?this.ak(a):this.na};w.ak=function(a){this.na=a;return this};w.Pl=function(){return this.na};w.Ym=function(){return this.ha};w.Jk=function(a){this.ha=a;return this};w.ll=function(a){return arguments.length&&null!=a?this.ek(a):this.va};w.ek=function(a){this.va=a;return this};w.Rl=function(){return this.va};w.On=function(a){return arguments.length&&null!=a?this.vi(a):this.Ta};w.vi=function(a){this.Ta=a;return this};w.Mm=function(){return this.Ta};w.td=function(){return-10};w.Kd=function(a){return a instanceof Zw};w.Wn=function(a){this.Rb=a;return this};w.Wc=function(a,b){var c=new Map,e=new Map,f=new Map,k=this.$;wu(this,a,b);for(var p=0,r=0;rt&&(b.barClass+=" inverse-highlight"),t=r(b.datum,a),0t&&(b.barClass+=" inverse-selected");c=vu(this);for(p=0;pf.length)throw Error('Number of series exceeds length of weight pattern "'+a.ha+'"');for(var k=[],p=0;py.measureSize?y.measurePosition+y.measureSize:y.measurePosition,y.domainSize,Math.abs(y.measureSize)):new pu(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 pu(ma,ta,na-ma,E-ta);break a}}ma=null}if(null===ma)continue}if("function"!==typeof k||k(y,t,c,e))ma=nx(this,y,c,e),ma.domainDistance=e&&a<=k?0:Math.abs(a-p),measureDistance:c>=r&&c<=t?0:Math.abs(c-b),relativeDistance:rj(new qj(p,b),new qj(a,c))}} w.re=function(a,b,c,e,f){var k=f.width;f=f.height;var p=e.append("g").attr("class","bar-group");e=c.Dc()(a,b);var r=Sn(c,"strokeWidth")?c.strokeWidth()(a,b):this.Ia;k=p.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);sk(k,function(){return c.color()(a,b)},!0);e&&"none"!==e.toLowerCase()&&k.attr("fill","transparent")};function kx(a){a=Ij(a).attr("data-rect").split(",");return{domainPosition:+a[0],measurePosition:+a[1],domainSize:+a[2],measureSize:+a[3]}} function mx(a,b,c,e){e={domainPosition:e.domainPosition,measurePosition:e.measurePosition,domainSize:e.domainSize,measureSize:e.measureSize};switch(a.Za){case 1:e.domainPosition-=c;break;case 2:e.domainPosition+=c;break;default:e.measurePosition=b,e.measureSize=0}return e} function gx(a,b,c,e,f){var k=c.measureOffset,p=c.measure+k,r=is(f,k),t=is(f,p);if(cm(r)&&cm(t)){p=pMath.abs(t-r)?t=r:r+=(p?1:-1)*a.Ca);p?(p=0===k?Math.floor:Math.ceil,y=Math.ceil):(p=0===k?Math.ceil:Math.floor,y=Math.floor);r=p(r);t=y(t)}else t=r=null;p=Jp(e,c.domain);y=hs(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=is(f,k+ua),na=is(f,k+sa))}a="x"==tu(a);k=b.barWidth/2;b=hs(e,c.domain)+b.barOffset+k;c=Jp(f,c.measure+c.measureOffset);return{barGroupCenter:p,chartX:a?b:c,chartY:a?c:b,domainPosition:y,domainSize:E,measurePosition:ma,measureSize:r,measureLowerBoundPosition:t,measureUpperBoundPosition:na,strokeWidth:ta}} w.se=function(){return!0};w.Fg=function(a,b){b=so(b);return null==b.barData?a.data:b.barData};Zw.prototype.setCssName=Zw.prototype.Wn;Zw.prototype.getRoundingRadiusPx=Zw.prototype.Mm;Zw.prototype.setRoundingRadiusPx=Zw.prototype.vi;Zw.prototype.roundingRadiusPx=Zw.prototype.On;Zw.prototype.getBarHorizontalMargin=Zw.prototype.Rl;Zw.prototype.setBarHorizontalMargin=Zw.prototype.ek;Zw.prototype.barHorizontalMargin=Zw.prototype.ll;Zw.prototype.setWeightPattern=Zw.prototype.Jk;Zw.prototype.getWeightPattern=Zw.prototype.Ym;Zw.prototype.getBarGroupInnerPadding=Zw.prototype.Pl;Zw.prototype.setBarGroupInnerPadding=Zw.prototype.ak;Zw.prototype.barGroupInnerPadding=Zw.prototype.kl;Zw.prototype.getMinBarWidth=Zw.prototype.Gm;Zw.prototype.setMinBarWidth=Zw.prototype.Ck;Zw.prototype.getMaxBarWidth=Zw.prototype.Em;Zw.prototype.setMaxBarWidth=Zw.prototype.Zg;Zw.prototype.maxBarWidth=Zw.prototype.Mg;Zw.prototype.getStackedBarPadding=Zw.prototype.Sm;Zw.prototype.setStackedBarPadding=Zw.prototype.zi;Zw.prototype.stackedBarPadding=Zw.prototype.uo;Zw.prototype.getGroupingType=Zw.prototype.nm;Zw.prototype.setGroupingType=Zw.prototype.ag;Zw.prototype.getStack=Zw.prototype.Xe;Zw.prototype.setStack=Zw.prototype.Sd;Zw.prototype.stack=Zw.prototype.stack;Zw.prototype.getStrokeWidth=Zw.prototype.Kf;Zw.prototype.setStrokeWidth=Zw.prototype.Td;Zw.prototype.strokeWidth=Zw.prototype.strokeWidth;Zw.prototype.autoBarLabels=Zw.prototype.jl;Zw.prototype.setColorHighlightStrategy=Zw.prototype.Od;Zw.prototype.getBorderRenderingStrategy=Zw.prototype.Tl;Zw.prototype.setBorderRenderingStrategy=Zw.prototype.Vn;Zw.prototype.setTransitionStrategy=Zw.prototype.qo;Zw.prototype.getBarLabelDecorator=Zw.prototype.Sl;function jx(a,b,c,e,f,k,p){if(null===a||null===b||null===c||null===e||null===k)return"";k=Math.min(Math.abs(e),k,c/2);p=1==p?"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)+p:"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)+p: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)+p:"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)+p} function ex(a,b,c,e,f,k,p,r){e=Math.floor((e-(2*r+f*(a-1)))/a);k&&(e=Math.max(k,e));p&&(e=Math.min(p,e));return c&&0!=c.length?Math.floor(e*a*c[b]):e} function fx(a,b,c,e,f,k,p,r){var t=Math.floor((e-(2*r+f*(a-1)))/a),y=0;p&&t>p&&(y=Math.floor((t-p)*a/2));for(var E=t=0;E2*this.size&&Cx(this),!0):!1};function Cx(a){if(a.size!=a.v.length){for(var b=0,c=0;b=e.v.length)throw tx;var k=e.v[b++];return a?k:e.N[k]};return f};function Dx(a,b){return Object.prototype.hasOwnProperty.call(a,b)} ;function Ex(){su.call(this);this.va=null;this.ka=0;this.N=!1;this.ha=2;this.v=!1;this.na=null;this.$=3} Zc(Ex,su);w=Ex.prototype;w.Nn=function(a){if(null==a)return this.N;this.N=a;return this};w.Mg=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.Zm=function(a){if(null==a)return this.ha;this.ha=a;return this};w.jo=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 Ax,e=new Ax,f=0;fua&&(ta.lineClass+=" inverse-highlight")};w.render=function(a,b,c,e){a=so(b).lineData;var f=is(b.ob(),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 p=c.merge(b),r=vu(this),t=tu(this);e&&(c.each(function(y){var E=Ij(this);lj(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)}),p=p.transition().duration(e),a=a.transition().duration(e),a.attr(r+"1",f),a.attr(r+"2",f));a.remove();p.each(function(y){var E=Ij(this);e&&(E=E.transition(p));lj(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 Gx(a,b,c,e,f){a.v&&(c=1,b=0);return(0===b?f:0)+e+(b+1===c?f:0)} function Hx(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 Ix(a,b,c,e,f,k){var p=b.measureOffset,r=b.measure+p;cm(r)&&cm(p)||(r=0);p=Jp(k,r);var t=Jp(k,0);r=0>r;k=(k=t=e&&a<=k?0:Math.abs(a-p),b.domainDistance=c,b.measureDistance=f,b.relativeDistance=a,b):null};w.ke=function(a,b,c,e,f){a=f||[];if(b=so(b).lineData)for(f=0;fya.chartX&&(k=!0);p=ya.chartX;Mx(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=is(e,ya.domainLowerBound,null),ya.domainUpperBoundPosition=is(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=is(f,ya.measureLowerBound,null),ya.measureUpperBoundPosition=is(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.Fb=r;this.v.Ob(r,vu(this),e,f)}};function Lx(a,b,c){var e=a.ka;b.shapeRenderer&&(e=Kx(b.shapeRenderer));return uo(c,"shapeRenderer",function(f){return f.shapeRenderer?Kx(f.shapeRenderer):e})} function Mx(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,p){a=is(b.ob(),0);f=so(b);var r=Sn(b,"datumHoverState")?b.nd():function(){return 0};b=Sn(b,"datumClickState")?b.be():function(){return 0};var t=c.node();Nx(this,f.Fb||[],t,a,e,k,p,r,b);return c.selectAll(".point-group")};function Nx(a,b,c,e,f,k,p,r,t){if(0===b.length)Ox(a,c,e,f);else{c=Ij(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.Wf()||a.v.add(y,f,k);var E=function(sa,Ba){var ya=+sa.radius;if(0Aa.chartX&&(p=!0);t=Aa.chartX;Mx(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=is(f,Ca+Aa.domainLowerBound),Aa.domainUpperBoundPosition=is(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=is(k,Ca+Aa.measureLowerBound),Aa.measureUpperBoundPosition=is(k,Ca+Aa.measureUpperBound),Aa.errorBarColor=Aa.color));Aa.shapeRenderer=b(Aa.datum,Aa.index);Aa.strokeWidth=na(Aa.datum,ya)}p&&y.sort(function(Ja,Ka){return Ja.chartX-Ka.chartX});var Fa=this.Ta?this.Ta(y,this):y;p=[];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],Lg:Ka[1],Dc:Ka[2],Je:Ka[3],Gl:Ja,xc:Fa,Mq:a.name,strokeWidth:Pa,Dq:Pa,Bq:0 Qa,id:"lineclip"+ik(),Fj:Oa})},this)}e.Fb=y;e.wj=p;e.Of=Ea;this.N&&this.v.v.Ob(y,vu(this),f,k)}};w.render=function(a,b,c,e,f,k,p){var r=is(b.ob(),0),t=so(b),y=c.node();if(0!==a.data.length||null!=y){var E=c.select("g");E.node()&&E.classed("area-segments")||hk(y,'');var ma=zj(y);E=ma[1];var na=ma[2],ta=ma[3];y=ma[4];ma=ma[5];Xx(c,t.Of,b);Yx(this,t.Of,E,r,e,k);Zx(this,t.Of,na,r,e,k);$x(this,t.wj,ta,r,e,k);ay(this,t.Of,ma,r,e,k);this.N?this.v.render(a,b,Ij(y),e,f,k,p):(b=b.Oh(),so(b,{}),this.v.render({name:a.name,data:[]},b,Ij(y),e,f,k,p));return c.selectAll(".area, .line-series, .event-target, .error-area, .isolate-datum, .point-group")}};function Zx(a,b,c,e,f,k){if(a.ha)if(0===b.length)by(a,c,e,f);else if(Ij(c).attr("clip-path",k),f){k=Ij(c).selectAll(".line-series").data(b);k.exit().remove();b=Ij(c).selectAll(".event-target").data(b);b.exit().remove();c=k.enter().append("path");lj(c,{"class":function(t){return t.Fj},fill:"none"});k=c.merge(k);var p=b.enter().append("path");lj(p,{"class":"event-target",fill:"none"});b=p.merge(b);var r=cy().defined(function(t){return t.validValue}).curve(a.$).x(function(t){return t.chartX}).y(e);f&&(lj(c,{stroke:function(t){return t.Lg},"stroke-dasharray":function(t){return t.Dc},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}}),k=k.transition().duration(f),lj(p,{stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}}),b=b.transition().duration(f));r.y(function(t){return t.chartY});lj(k,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:function(t){return t.color},"stroke-dasharray":function(t){return t.Dc},d:function(t){return r(t.xc)},"stroke-width":function(t){return t.strokeWidth}});lj(b,{"clip-path":function(t){return"url(#"+t.id+")"},stroke:"transparent",opacity:"0",d:function(t){return r(t.xc)},"stroke-width":function(t){return Math.max(10,t.strokeWidth)}})}else dy(a,c,b),Ij(c).selectAll(".line-series").data(b),Ij(c).selectAll(".event-target").data(b);else hk(c,"")} function dy(a,b,c){for(var e="",f=cy().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=cm(r.chartY)?r.chartY:1E4;return a.Ca?Math.round(r):Math.round(100*r)/100}),k=0;k';e+=''}hk(b,e)} function by(a,b,c,e){var f=Ij(b).selectAll(".line-series");e&&(f=f.transition().duration(e));var k=cy().defined(function(p){return p.validValue}).curve(a.$).x(function(p){return p.chartX}).y(c);f.attr("d",function(p){return k(p.xc)}).remove();Ij(b).selectAll(".event-target").remove()} function $x(a,b,c,e,f,k){b.length&&!a.N&&a.ha?(a=Ij(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(p){return"M"+p.chartX+","+e+"h0"},stroke:function(p){return p.color},"stroke-width":function(p){return 2*p.strokeWidth},"class":function(p){return"line-series isolate-datum"+(null!=p.datumClass?" "+p.datumClass:"")}},f&&(lj(b,c),a=a.transition().duration(f)),c.d=function(p){return"M"+p.chartX+","+p.chartY+"h0"},lj(a,c)):hk(c,"")} function Yx(a,b,c,e,f,k){if(a.va)if(0===b.length)ey(c,e,f);else{b=Ij(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 p=fy().curve(a.Na).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(lj(c,{fill:function(r){return r.Lg},d:function(r){return p(r.xc)}}),b=b.transition().duration(f));p.y1(function(r){return r.chartY}).y0(function(r){return r.chartY0});lj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.Lg},d:function(r){return p(r.xc)},"class":function(r){return"area"+(null!=r.datumClass?" "+r.datumClass:"")}})}else hk(c,"")} function ey(a,b,c){a=Ij(a).selectAll(".area");c&&(a=a.transition().duration(c));var e=fy().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function ay(a,b,c,e,f,k){if(a.ya)if(0===b.length||a.N)gy(c,e,f);else{b=Ij(c).attr("clip-path",k).selectAll(".error-area").data(b);b.exit().remove();c=b.enter().append("path");lj(c,{"class":"error-area","stroke-width":0});b=c.merge(b);var p=fy().curve(a.Na).defined(function(r){return r.validValue}).x(function(r){return r.chartX}).y1(e).y0(e);f&&(lj(c,{fill:function(r){return r.color},d:function(r){return p(r.xc)}}),b=b.transition().duration(f));p.y1(function(r){return null!=r.measureUpperBoundPosition?r.measureUpperBoundPosition:r.chartY});p.y0(function(r){return null!=r.measureLowerBoundPosition?r.measureLowerBoundPosition:r.chartY});lj(b,{"clip-path":function(r){return"url(#"+r.id+")"},fill:function(r){return r.color},opacity:a.N?"0":".2",d:function(r){return p(r.xc)}})}else hk(c,"")} function gy(a,b,c){a=Ij(a).selectAll(".error-area");c&&(a=a.transition().duration(c));var e=fy().defined(function(f){return f.validValue}).x(function(f){return f.chartX}).y1(b).y0(b);a.attr("d",function(f){return e(f.xc)}).remove()} function Wx(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(iy(r,c),a),b),y=null,E=Number.MAX_VALUE,ma=Number.MAX_VALUE,na=t;na<=b&&!p(na);na++);for(b=t;b>=a&&!p(b);b--);null!=y&&(y=this.Bb(y,c,e));return y};function iy(a,b,c){c=void 0===c?!1:c;var e=pe(a,b,function(f,k){return f-k.chartX});if(0>e)return-e-1;if(c)for(;e=a?qk():rk()};function Ly(){return!1} w.kj=function(a,b,c,e){var f=Ky(a,b,c,e);c=Ky(a,b,c);e=Ky(a,b,void 0,e);a=Ky(a,b);return this.v[f]||this.v[c]||this.v[e]||this.v[a]||null};w.ue=function(a,b,c,e,f){b=Ky(b,c,e,f);this.v[b]=a};w.ao=function(a){this.ha=a};w.Xf=function(a,b,c,e){b=Ky(b,c,e);this.N[b]=a};w.Yl=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 My(a,b){a.ha&&a.ha(b)} function Ky(a,b,c,e){a=[a.toString(),b.toString()];a.push((c||"").toLowerCase());a.push((e||"").toLowerCase());return a.join("-")} function Iy(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?wt.$i(e,6):wt.aj(e,6)}.bind(this)}.bind(a);a.ue({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:20}},0,0);a.Xf(b(!0),0,0);a.ue({rendering:{type:"default",barGroupPaddingPct:.35,minPxBetweenTicks:2}},0,1);a.Xf(b(!0),0,1);a.ue({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:20}},0,0,"waterfall");a.ue({rendering:{type:"default",barGroupPaddingPct:.35,domainAxisOuterPaddingPct:.35,minPxBetweenTicks:2}},0,1,"waterfall");a.ue({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,0);a.Xf(b(!1),1,0);a.ue({ticks:{type:"default",numTicks:5},rendering:{type:"default",minPxBetweenTicks:14,showBaseline:!0}},1,1);a.Xf(b(!1),1,1)} function Jy(a){a.Xc({},"eventAnnotation");a.$c(function(){return new xu}.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 zw(null!=b.arcInnerRadius?b.arcInnerRadius:0,null!=b.arcOuterRadius?b.arcOuterRadius:0);b=b.arc||b;null!=b.enableHtmlLabels&&c.di(b.enableHtmlLabels);null!=b.hideSingleArcBorder&&(c.ma=b.hideSingleArcBorder);null!=b.labelPadding&&c.ii(b.labelPadding);null!=b.leaderLineLength&&c.ji(b.leaderLineLength);null!=b.leaderLineTailLength&&c.ki(b.leaderLineTailLength);null!=b.minLabelArcAngle&&c.ni(b.minLabelArcAngle);null!=b.showBackground&&(c.Ia=b.showBackground);null!=b.showHighlightShadow&&(c.Ma=b.showHighlightShadow);null!=b.sortSlices&&c.yi(b.sortSlices);return c}.bind(a),"arc");a.Xc({stack:!0,includeArea:!0},"area");a.$c(function(b){return By(b)}.bind(a),"area");a.Xc({maxBarWidth:300,strokeWidth:2},"bar");a.$c(function(b){var c=new Zw,e=c.v;b=b.bar||b;b=Fy(b);if(null!=b.groupingType)switch(b.groupingType){case "grouped":c.ag(1);break;case "stacked":c.ag(2);break;case "groupedStacked":c.ag(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.tk(b.labelOrientation);null!=b.labelPosition&&null!=e&&e.Pb(b.labelPosition);null!=b.minBarWidth&&c.Ck(+b.minBarWidth);null!=b.maxBarWidth&&c.Zg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.mi(b.minBarLengthForLabel);(null!=b.stack&&null==b.groupingType||0==b.groupingType)&&c.Sd(b.stack);null!=b.strokeWidth&&c.Td(b.strokeWidth);null!=b.weightPattern&&c.Jk(b.weightPattern);Dy(c,b);Ey(c,b,!1);return c}.bind(a),"bar");a.Xc({maxBarWidth:300,strokeWidth:5},"barTarget");a.$c(function(b){var c=new Ex;b=b.bartarget||b;null!=b.stack&&c.stack(b.stack);null!=b.maxBarWidth&&c.Mg(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 By(b)}.bind(a),"line");a.Xc({strokeWidth:1},"markerLine");a.$c(function(b){var c=new uy;b=b.markerline||b;null!=b.greaterThanLabel&&c.sj(b.greaterThanLabel);null!=b.legendKeyStrokeWidth&&c.Nf(b.legendKeyStrokeWidth);null!=b.lessThanLabel&&c.Bj(b.lessThanLabel);null!=b.showSeriesName&&c.Kk(!!b.showSeriesName);null!=b.strokeWidth&&c.strokeWidth(b.strokeWidth);return c}.bind(a),"markerLine");a.Xc({},"point");a.$c(function(b){var c=new Jx;b=b.point||b;null!=b.animatesFromDomainAxis&&c.Xj(b.animatesFromDomainAxis);if(null!=b.errorRenderer){var e=b;if(null!=e.errorRenderer)switch(e.errorRenderer){case "whiskers":c.ei(new Xt);break;case "comparison_points":case "comparisonPoints":c.ei(new Wt);break;default:throw Error('Unrecognized error renderer type: "'+e.errorRenderer+'"');}}null!=b.labelColor&&c.Yc(b.labelColor);null!=b.labelPosition&&Cy(c,b);null!=b.shapeRenderer&&c.Zf(b.shapeRenderer);Dy(c,b);return c}.bind(a),"point");a.Xc({},"waterfall");a.$c(function(b){var c=Ay(),e=c.v;b=b.waterfall||b;b=Fy(b);null!=b.labelColor&&null!=e&&e.Yc(b.labelColor);null!=b.labelPosition&&null!=e&&e.Pb(b.labelPosition);null!=b.maxBarWidth&&c.Zg(b.maxBarWidth);null!=b.minBarLengthForLabel&&null!=e&&e.mi(b.minBarLengthForLabel);null!=b.strokeWidth&&c.Td(b.strokeWidth);Dy(c,b);return c}.bind(a),"waterfall")} Hy.prototype.setSeriesRendererFactory=Hy.prototype.$c;Hy.prototype.setDefaultSeriesSeriesRendererSpec=Hy.prototype.Xc;Hy.prototype.getDefaultSeriesSeriesRendererSpec=Hy.prototype.Yl;Hy.prototype.setAxisFactory=Hy.prototype.Xf;Hy.prototype.setExtendedDefaultsCallback=Hy.prototype.ao;Hy.prototype.setDefaultAxisSpec=Hy.prototype.ue;Hy.prototype.getDefaultAxisSpec=Hy.prototype.kj;wd("aplos.chart.style.AplosTemplateStyle",Hy);function Ny(){Hy.call(this);this.O+=" quantum-style"} Zc(Ny,Hy);wd("aplos.chart.style.QuantumStyle",Ny);var Oy=new Ny;wd("aplos.chart.Style.getCurrentStyle",function(){return Oy});wd("aplos.chart.Style.setCurrentStyle",function(a){Oy=a});wd("aplos.chart.Style.resetCurrentStyle",function(){Oy=new Ny});function Py(){this.N=0;this.O=null;this.v=[];this.$=Wh;this.ma=this.ka;this.ha=Wh} wd("aplos.data.DataPromise",Py);var Qy=!1;Py.setAllowSynchronousPromises=function(){Qy=!0};Py.prototype.Ef=function(a){if(0!==this.N)return this;this.N=1;this.O=a;for(a=0;a')),document.body.appendChild(jk),jk.contentDocument.body.appendChild(wj(new mg(og,"\n \n
 
\n \n \n \n \n \n \n
"))));var r=jk.contentDocument,t=r.querySelector(p.tagName);t||(t=r.querySelector("div"));r=Jj(t);t=Jj(p);for(var y={},E=0;E>=8),b[c++]=f;a=Df(b,void 0)}return"data:image/svg+xml;base64,"+ a};Ty.prototype.toSvgDataUrl=Ty.prototype.Ok;Ty.prototype.Do=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.Ok(a);var f=new Py;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.Ef(b.toDataURL("image/png"))}catch(p){f.reject(p)}};e.onerror=function(){f.reject(Error("Svg image dataUrl failed to load"))};return f};Ty.prototype.toPngDataUrl=Ty.prototype.Do;Ty.prototype.getStyle=function(){return this.Bi};var Vy="aplos-chart",fz="aplos-chart-container";function gz(a,b,c){gz.base(this,"constructor",ke(a,["prelayout","postlayout"]),b,c);this.qf=this.Qc=null;this.Zc({top:40,end:20,start:20,bottom:20},{top:.333,end:.5,start:.5,bottom:.333})} wd("aplos.chart.SvgChartView",gz);xd(gz,Ty);var hz=0;gz.prototype.redraw=gz.prototype.ef;gz.prototype.yd=function(){gz.Qb.yd.call(this);var a=this.Ye().node();a.setAttribute("width",this.frameWidth());a.setAttribute("height",this.frameHeight());this.hb.node().setAttribute("transform","translate("+this.Lb()+","+this.Mb()+")");this.Qc&&this.Qc.attr("width",this.$a()+1).attr("height",this.yb()+2)};gz.prototype.Ye=function(){return this.vo};gz.prototype.getSvg=gz.prototype.Ye;gz.prototype.Eo=function(){var a=this.Ye().node(),b=document.createElement("style"),c=Tj(a),e=Jj(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};gz.prototype.toSvgString=gz.prototype.Eo;gz.prototype.getNearestDatumDetails=gz.prototype.Hf;var iz=document.implementation.hasFeature("org.w3c.svg","1.0")||document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Structure","1.1"),Wy="aplos-chart-container",Xy="aplos-chart-svg",Yy="aplos-draw-area";function jz(a,b,c){var e=this;gz.call(this,ke(a,"datumMouseover datumMouseout datumClick seriesMouseover seriesMouseout seriesClick".split(" ")),b,c);this.tb=new mo(this);this.na={};this.te={};this.Ek("hover",new eo);this.Za=new kz;this.on("viewportChange.seriesChartView",function(){e.Za.reset()})} xd(jz,gz);wd("aplos.chart.SeriesChartView",jz);jz.prototype.Ek=function(a,b){b.Tg("clearSelectedDatumDetailsCache",this.Yk.bind(this));var c=this.te,e=Un[a].selectionChange,f=this.Ya;f.O.hasOwnProperty(e)||$n(f,[e]);e=c[a];null!=e&&e.Tg("chartDelegate",null);c[a]=b;ez(this,b,a);return this};jz.prototype.setSelectionModel=jz.prototype.Ek;jz.prototype.lo=function(a){no(this.tb,a);return this};jz.prototype.setSeriesDefaults=jz.prototype.lo;jz.prototype.vb=function(a){return this.na[a||"__aplosDefault__"]||this.na.__aplosDefault__};jz.prototype.getRenderer=jz.prototype.vb;jz.prototype.an=function(a){return!!this.na[a||"__aplosDefault__"]};jz.prototype.hasRenderer=jz.prototype.an;jz.prototype.dg=function(a,b){b?(b.type&&(b=this.getStyle().oj(b)),this.na[a]=b):delete this.na[a];return this};jz.prototype.setRenderer=jz.prototype.dg;jz.prototype.ci=function(a){a.type&&(a=this.getStyle().oj(a));this.na.__aplosDefault__=a;return this};jz.prototype.setDefaultRenderer=jz.prototype.ci;jz.prototype.$h=function(a,b){a=this.Gf(a,!0);a=a.filter(function(c){return!c.series||!c.series.overlay});(this.te[Tn[b]||"hover"]||null).$g(a.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));return a.length};jz.prototype.selectDatum=jz.prototype.$h;jz.prototype.Rn=function(a){this.Ya.nb("seriesMouseover",this,a,nj)};jz.prototype.selectSeries=jz.prototype.Rn;jz.prototype.vl=function(a){(this.te[Tn[a]||"hover"]||null).deselectAll()};jz.prototype.clearSelections=jz.prototype.vl;jz.prototype.Gf=function(a,b,c){var e=this.N||[],f=this.v||[];if(!e||!f)return[];if(nj){var k=mj(this.hb.node());var p=k[0];k=k[1]}for(var r=[],t=0;tb||b>this.$a())||!this.Xb&&(0>a||a>this.yb()))return[];for(var e=new pu(this.Lb(),this.Mb(),this.$a(),this.yb()),f=new qj(b+e.left,a+e.top),k=[],p=0;p=c)throw Error("LIKE pattern ends with a backslash.");f=a.charAt(++e);Bz(f)&&(b+="\\");b+=f;break;case "_":b+=".";break;case "%":b+=".*";break;default:Bz(f)&&(b+="\\"),b+=f}}return b+"$"} function Dz(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 Ez(){} Ez.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 Fz=new Ez;Fz=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],p=[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],zg=[1,140],Hk=[1,150],Ag=[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],tf=[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],Ik=[96,97],Ei={trace:function(){},Pc:{},wo:{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},fg:{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"},Tj:[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]],Rh: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:Dz(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.ac.substr(0,20-va.length));return(va.substr(0,20)+(20Vc[0].length)){var Vc=va;var hd=fd;if(this.options.Si){Vc=this.Mk(va,oc[fd]);if(!1!==Vc)return Vc;if(this.lg)Vc=!1;else return!1}else if(!this.options.flex)break}return Vc?(Vc=this.Mk(Vc,oc[hd]),!1!==Vc?Vc:!1):""===this.ac?this.Ii:this.parseError("Lexical error on line "+(this.Yb+1)+". Unrecognized text.\n"+ this.ah(),{text:"",Pk:null,line:this.Yb})},Cj:function(){var va=this.next();return va?va:this.Cj()},Ti:function(va){this.Hb.push(va)},In: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 Gz(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 Hz(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 Iz(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 Jz(a,b){Gz("TRUNC(X, Y)","X",a);Gz("TRUNC(X, Y)","Y",b);Hz("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 Kz(a,b){Gz("LOG(X, Y)","X",a);Gz("LOG(X, Y)","X",b);return null==a||null==b?null:+a/+b} ;function Lz(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,p,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 Mz[y].apply(null,arguments)})} var Mz={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+ci(" ",a):(b=0<=b.indexOf("0",0)?"0":" ",e=k+ci(b,a)+e);return e},d:function(a,b,c,e,f,k,p,r){return Mz.f(parseInt(a,10),b,c,e,0,k,p,r)}};Mz.i=Mz.d;Mz.u=Mz.d;function Nz(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 Oz(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 Pz(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 Wz(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 Xz(a){if("number"===typeof a){if(Infinity===a)return"inf";if(-Infinity===a)return"-inf";if(isNaN(a))return"NaN"}return""+a} ;function Yz(a,b){var c=Zz;a=a?a.toUpperCase():a;c.v.has(a)||c.v.set(a,new Map);c=c.v.get(a);for(var e=Kc(Oe(b)),f=e.next();!f.done;f=e.next()){f=f.value;var k=f.toUpperCase();c.set(k,new $z(a,k,b[f]))}} function $z(a,b,c){this.O=a;this.N=b;this.v=c} $z.prototype.call=function(a){for(var b=[],c=0;ce)throw Error("Expected no more than "+c+" args for "+this.N);return this.v.wb?this.v.wb.apply(null,a):this.v.ta.apply(null,a)};$z.prototype.Oa=function(a){return this.v.Oa?this.v.Oa.call(null,a):Uz(this.O,this.N,a)};var Zz=new function(){this.v=new Map};Yz("",{AVG:{wb:tq},COUNTIF:{wb:wq},SUM:{wb:uq},MIN:{wb:xq},MAX:{wb:yq},COUNT:{wb:vq},COUNT_DISTINCT:{wb:zq},NTH_QUANTILE:{wb:Aq},VARIANCE:{wb:Cq},STDDEV:{wb:Dq},"HLL_COUNT.MERGE":{wb:Eq},"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){Gz("ABS(X)","X",a);return null!=a?Math.abs(+a):null}},SIGN:{ua:1,wa:1,ta:function(a){Gz("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){Gz("ATAN(Y, X)","X",a);Gz("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)},tc:"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:Lz.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(",")+")"},tc:"IN"},"NOT IN":{ua:1,ta:function(a,b){for(var c=[],e=1;ea.length)throw Error("Expected at least one parameter for NOT IN");return a[0]+" NOT IN ("+a.slice(1).join(",")+")"},tc:"NOT_IN"},"IS NULL":{ua:1,wa:1,ta:function(a){return null==a},Oa:function(a){return Sz("IS NULL",a)},tc:"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},Oa:function(a){return Sz("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},Oa:function(a){return Sz("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},Oa:function(a){return"("+a[0]+" BETWEEN "+a[1]+" AND "+a[2]+")"},tc:"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},Oa:function(a){return"("+a[0]+" NOT BETWEEN "+a[1]+" AND "+a[2]+")"},tc:"NOT_BETWEEN"},CAST:{ua:2,wa:2,ta:function(a,b){if(null==a)return null;switch(b.toUpperCase()){case "INT32":return Vz(a,-2147483648,2147483647);case "INT64":return Vz(a,-0x7fffffffffffffff,0x7fffffffffffffff);case "UINT64":return Vz(a,0,1.8446744073709552E19);case "FLOAT":return Wz(a,-3.4028234663852886E38,3.4028234663852886E38);case "DOUBLE":return Wz(a);case "BOOL":return Vr(a);case "STRING":return Xz(a);default:throw Error("CAST to "+b.toUpperCase()+" is not supported.");}},Oa: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:br},DATE:{ua:1,wa:2,ta:function(a,b){return cr(a,"DAY",b)}},DATETIME:{ua:1,wa:1,ta:br},AND:{ua:2,ta:function(a){for(var b=[],c=0;c",a)},tc:">"},GREATER_OR_EQUAL:{ua:2,wa:2,ta:function(a,b){return Oz("GREATER_OR_EQUAL",a,b)},Oa:function(a){return Rz(">=",a)},tc:">="},NATIVE_EXPR:{ua:1,wa:1,ta:function(){throw Error("NATIVE_EXPR not yet supported.");}},NATIVE_AGGREGATE:{ua:1,wa:1,wb: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)}}});Yz("KLL_QUANTILES",{EXTRACT_POINT_INT64:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_INT64:{wb:Bq},EXTRACT_POINT_DOUBLE:{ta:function(){throw Error("KLL EXTRACT is not supported for in-memory data.");}},MERGE_POINT_DOUBLE:{wb:Bq}});function aA(){this.ka={};this.va={};this.na={};this.ha=[];this.ma={};this.$=[];this.N=null;this.ya=[];this.O=[];this.v={}} w=aA.prototype;w.Nj=function(a,b){this.O.push({Af:a,order:b?b:"ASC"});return this};w.ul=function(){this.O=[];return this};w.If=function(){return this.O};w.ve=function(a){this.O=a.slice()};w.Dn=function(a,b,c,e){a={Af:a,measure:c,Sq:e||""};"function"===typeof b?a.wb=b:a.xq=b;this.ya.push(a);return this};w.En=function(a){this.N=a;return this};w.il=function(a){Array.isArray(a)?Ud(a,function(b){bA(this,b,{Dd:"decimal",lf:null})},this):bA(this,a,{Dd:"decimal",lf:null});return this};w.hl=function(a){Array.isArray(a)?Ud(a,function(b){bA(this,b,{Dd:"boolean",lf:null})},this):bA(this,a,{Dd:"boolean",lf:null});return this};w.vj=function(a){a=this.v[a]?this.v[a]:null;var b;if(b=a&&a.Dd)a=a.Dd,b=!!a&&"number"===Fr[a].hc;return b?!0:!1};function bA(a,b,c){a.v[b]?(c.Dd&&(a.v[b].Dd=c.Dd),c.lf&&(a.v[b].lf=c.lf)):a.v[b]=c} w.bl=function(a,b){this.ka[a]=b;return this};w.Al=function(a,b){this.va[a]=b;return this};w.Bl=function(a,b){this.na[a]=b;delete this.ma[a];return this};w.$m=function(a){return this.na[a]||this.ma[a]||this.ka[a]||this.N===a?!0:0<=Td(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=ai(f));return f} function oA(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=Pe(a.v[a.v.length-1],b.split("."));if(null==a)return null;if(!ld(a))throw Error('Error evaluating nest expression: "'+b+'" did not reference an Array');a.forEach(function(k){var p=f;(Pe(k,e)||"").split("|").forEach(function(r){var t=p.nest_child_map[r];t|| (t={nest_label:r,nest_children:[],nest_child_map:{}},p.nest_child_map[r]=t,p.nest_children.push(t));p=t});p.nest_children.push(k)});return f} ;function pA(a){this.v=a;this.O=this.N=-1;this.$=0} pA.prototype.next=function(){this.N++;var a=this.v[this.N];"\n"===a?(this.$++,this.O=-1):this.O++;return a};pA.prototype.index=function(){return this.N};function qA(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)&&Fn(a,b,t,e,void 0),y=Ij(a).select(".aplos-placeholder"),t=y.node(),f=t.parentNode,t=t.nextSibling?t.nextSibling:void 0,y.remove()):(f&&Fn(a,b,f,e,void 0),f=a);y=void 0;for(E=0;Ea.Ia-a.Qa?a.show():tB(a,b))})} function tB(a,b){a.ka||(XA(a.na,Math.max(.25*a.N,50)),a.ka=Zp(a.na,"tick",rd(a.Bn,a,b)),a.na.start())} w.Bn=function(a){a.Id("hover").Jd()?Date.now()-this.Ia>this.N&&this.show():qB(this)};function qB(a){a.na.stop();hq(a.ka);a.ka=null} w.rd=function(a,b){return this.va(a,b)};oB.prototype.setHovercardContainerStyle=oB.prototype.co;oB.prototype.hide=oB.prototype.Kh;oB.prototype.followClosestSeries=oB.prototype.ij;oB.prototype.followTopMostSeries=oB.prototype.Jl;oB.prototype.followNamedSeries=oB.prototype.Il;oB.prototype.getPlacer=oB.prototype.Km;oB.prototype.setPlacer=oB.prototype.ti;oB.prototype.placer=oB.prototype.Hn;oB.prototype.getContentRenderer=oB.prototype.Fd;oB.prototype.setContentRenderer=oB.prototype.zd;oB.prototype.contentRenderer=oB.prototype.vg;oB.prototype.getShowDelayMs=oB.prototype.Pm;oB.prototype.setShowDelayMs=oB.prototype.Fk;oB.prototype.showDelayMs=oB.prototype.ro;oB.prototype.getTransitionMs=oB.prototype.Xm;oB.prototype.setTransitionMs=oB.prototype.Ik;oB.prototype.transitionMs=oB.prototype.ye;oB.prototype.getClassName=oB.prototype.Wl;oB.prototype.setClassName=oB.prototype.hk;oB.prototype.className=oB.prototype.className;wd("aplos.chart.behavior.Hovercard",oB);function uB(){this.ha=this.na=this.ma=this.v=this.O=this.N=this.ka=this.$=null} w=uB.prototype;w.zo=function(a){this.$=a;return this};w.Ao=function(a){this.ka=a;return this};w.xo=function(a){this.N=a;return this};w.yo=function(a){this.O=a;return this};w.ae=function(a){this.v=a;return this};w.xl=function(a){this.ma=a;return this};w.container=function(a){this.ha=a;return this};w.Vg=function(a){this.na=a;return this};function vB(a){var b=IA?new GA:new JA;a.ma&&b.ve(a.ma);a.$&&b.hf(a.$);a.N&&b.ff(a.N);a.O&&b.$f(a.O);a.ka&&b.eg(a.ka);a.v&&b.Yf(a.v);return b} w.Ui=function(){var a=(new oB).ij();a.zd(vB(this));var b=a.ti,c=new eB;null!=this.ha&&c.jk(this.ha);null!=this.na&&c.Vg(this.na);b.call(a,c);return a};w.ol=function(){var a=new dB;a.vg(vB(this));return a};uB.prototype.buildPieCard=uB.prototype.ol;uB.prototype.buildCard=uB.prototype.Ui;uB.prototype.positionOptions=uB.prototype.Vg;uB.prototype.container=uB.prototype.container;uB.prototype.contentRendererOrdering=uB.prototype.xl;uB.prototype.conversionFunctionMap=uB.prototype.ae;uB.prototype.templateFooter=uB.prototype.yo;uB.prototype.templateBody=uB.prototype.xo;uB.prototype.templateSeriesCategory=uB.prototype.Ao;uB.prototype.templateHeader=uB.prototype.zo;wd("aplos.chart.behavior.hovercardutils.Builder",uB);function wB(a,b,c,e){var f=new uB;f.$=a?a:null;f.N=b?b:null;f.O=c?c:null;f.v=e?e:null;return f} wd("aplos.chart.behavior.hovercardutils.Builder.fromTemplate",wB);var xB={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};wd("aplos.chart.behavior.LegendPosition",xB);function yB(){this.v=0;this.$=null;this.N=!1} yB.prototype.position=function(a){if(!arguments.length||void 0===a)return this.v;this.v=a;return this};yB.prototype.O=function(a){if(!arguments.length||void 0===a)return this.$;this.$=a;return this};yB.prototype.Md=function(a){if(!arguments.length||void 0===a)return this.N;this.N=a;return this};function zB(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} wd("aplos.chart.behavior.legend.LegendLayoutParams",yB);var AB={lj:function(a,b,c){return 14===zB(c)?b.yb():a.bottom-a.top},mj:function(a,b,c){return 14===zB(c)?b.$a():a.right-a.left},Jn:function(a,b,c,e,f){f=AB.Cm(a,b,c,e,f);e.style("top",AB.Dm(a,b,c)+"px").style("left",f+"px")},Cm:function(a,b,c,e,f){var k=void 0!==f?f:0;void 0!==f||e.empty()||(k=e.node().offsetWidth);switch(zB(c)){case 14:return c.Md()?a.Lb()+a.$a()-k:a.Lb();case 4:case 1:return c.Md()&&!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=AB.mj(b,a,c),0=k?AB.Lk(f,p,c.height-k):f=p;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,p=[],r=0;r=k?AB.Lk(f,p,c.width-k):f=p;var t=[];f.forEach(function(y){t.push({width:y,height:e})});return t},Lk: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=AB.mj(a.O,b,a.v);if(Ee?p.style("width",r+"px"):Math.ceil(p.node().getBoundingClientRect().width)>r?p.style("width",r+"px"):p.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"));IB(a,b)}else f.style("display","none"),f.selectAll(".aplos-legend-column").remove(),k.style("display","none")} function JB(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,Lo:c}} function FB(a,b,c,e){var f=b.Ka.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(GB(a),!0).style("width","100%").append("tbody").selectAll(".aplos-legend-entry").data(e);e=a.He(b,e);a.update(b,e,0);var k=JB(a,c),p=e.empty()?0:e.node().getBoundingClientRect().top,r=AB.lj(a.O,b,a.v)-(p-k.top)-k.Lo,t=[[]],y=0,E=p;e.each(ud(function(ma,na){var ta=this.getBoundingClientRect(),ua=ta.top;ta=ua-E+ta.height;0r||t[y].length===ma.Ng)&&(t[y+=1]=[],E=ua);t[y].push(na)},a));f.remove();return t} function IB(a,b){var c=b.Ka.select(".aplos-legend");AB.Jn(b,a.O,a.v,c);c.attr("data-position",rd(function(){var e=Qe(xB,function(f){return zB(this.v)===f},this);return null!=e?e.toLowerCase():null},a))} w.He=function(a,b){var c=this.Gj(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.Ij(a)).on("mouseout.legend",this.Hj(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){KB(this,b);b.empty()||Ij(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 KB(a,b){var c=a.Ia||Rn();c["svg-sample"]||(c["svg-sample"]=a.Ma.v(a.na));b.each(ud(function(e,f){e=Gn(f,"
"+(f.categorySeparator?e.zf:e.th)+"
",c)[0];for(e=Ij(e).select("tr").node();e.childNodes.length;)this.appendChild(e.childNodes[0])},a));b.classed("aplos-legend-category",function(e){return e.categorySeparator})} function HB(a){a.each(function(){Ij(this.nextElementSibling).remove()});a.attr("opacity",0).on("click.legend",null).on("mouseover.legend",null).on("mouseout.legend",null).remove()} w.dl=function(a,b){b.Ge(new LB(a,this))};function GB(a){return null!=a.zf?"aplos-legend-table-category":"aplos-legend-table"} function LB(a,b){this.N=a;this.v=b} w=LB.prototype;w.Dh=function(){var a={position:MB(this),Qf:30},b=this.v.Dg();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.ig=function(a){CB(this.v,this.N,this.v.tb,this.v.Za,{top:0,right:a.width,bottom:a.height,left:0});var b=this.N.Ka.select(".aplos-legend");if(b.empty())return{Ba:{width:0,height:0},rb:{width:0,height:0},zc:!0};var c=MB(this),e=gg(a,this.v.Re(),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 p=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.Ka.select(".aplos-legend-title");c=Mj(c.node());0a.width&&(p=a.width);f>a.height&&(f=a.height);k>a.width&&(k=a.width);e>a.height&&(e=a.height);return{Ba:{width:p,height:f},rb:{width:k,height:e},zc:!1}};w.Fh=function(){return 0};w.Gh=function(){return 0};w.Xg=function(a){var b=a.right-a.left;this.v.O=a;a=this.N.Ka.select(".aplos-legend").node();b!=a.offsetWidth&&IB(this.v,this.N)};w.Ff=function(){return this.v.O};function MB(a){switch(zB(a.v.v)){case xB.LEFT:return 5;case xB.RIGHT:return 6;case xB.TOP:case xB.TOP_FULL_LEFT:case xB.TOP_FULL_RIGHT:return 2;case xB.TOP_LEFT:case xB.TOP_RIGHT:return 1;case xB.BOTTOM:case xB.BOTTOM_FULL_LEFT:case xB.BOTTOM_FULL_RIGHT:return 4;case xB.BOTTOM_LEFT:case xB.BOTTOM_RIGHT:return 3;default:return 0}} ;function NB(){this.N=new Ax;this.v=new OB("",void 0);this.v.next=this.v.v=this.v} w=NB.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 OB(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 PB(this,this.v.next)};w.pop=function(){return PB(this,this.v.v)};w.remove=function(a){return(a=this.N.get(a))?(a.remove(),this.N.remove(a.key),!0):!1};function QB(a){return a.map(function(b){return b})} w.contains=function(a){return RB(this,function(b){return b==a})};w.clear=function(){this.mf(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 RB(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.mf=function(a){for(;this.N.size>a;){var b=this.v.next;b.remove();this.N.remove(b.key)}};function PB(a,b){a.v!=b&&(b.remove(),a.N.remove(b.key));return b.value} function OB(a,b){this.key=a;this.value=b} OB.prototype.remove=function(){this.v.next=this.next;this.next.v=this.v;delete this.v;delete this.next};wd("aplos.chart.behavior.SeriesLegendClickHandling",{NONE:0,HIDE:1});function SB(a){BB.call(this,a||'{{svg-sample}} {{series.name}}');this.Ca=!1;this.ka={};this.Ta=!1;this.N={};this.ha=[];this.Qa=[];this.Na="series_asc";this.va=1} xd(SB,BB);wd("aplos.chart.behavior.SeriesLegend",SB);var TB=null,UB=null;SB.prototype.Ko=function(a){return null!=a?(this.Ca=a,a||(this.ka={}),this):this.Ca};SB.prototype.valuesFromNearestDatum=SB.prototype.Ko;SB.prototype.cn=function(a){if(null==a)return this.Ta;this.Ta=!!a;return this};SB.prototype.hideEmptySeries=SB.prototype.cn;SB.prototype.en=function(a){this.N[a]=!0;return this};SB.prototype.hideSeries=SB.prototype.en;SB.prototype.Ug=function(a){if(null==a)return this.Na;this.Na=a;return this};SB.prototype.ordering=SB.prototype.Ug;SB.prototype.Yi=function(a){if(null==a)return this.va;this.va=a;return this};SB.prototype.clickHandling=SB.prototype.Yi;w=SB.prototype;w.Cc=function(a){var b=this;SB.Qb.Cc.call(this,a);a.on("mouseout.seriesLegend",function(){this.Ca&&(this.ka={},a.ef())},this);a.on("mousemove.seriesLegend",function(){if(this.Ca){for(var c=a.Hf(),e=0;ethis.N)a.Id("hover").deselectAll(),XB(this);else{var e=[c];switch(this.$){case 0:void 0!==c.domain&&(e=a.Gf(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.Id("hover").$g(b.map(function(c){return{series:c.series?c.series:null,datum:c.datum}}));ZB(this,a)};function ZB(a,b){if(!a.v){var c="selectnearest_"+Date.now();Ij(a.ha).on("mouseout."+c,function(){var e=b.hb.select(".mouseCapturePane").node(),f;if(f=nj&&nj.target)e?(f=oj(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,n,u,x){null==u&&(u=0);null==x&&(x=h.length);for(;u>>1;0>l(h[z],n)?u=z+1:x=z}return u},right:function(h,n,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:+n;for(var u=-1,x=Math.max(0,Math.ceil((h-l)/n))|0,z=Array(x);++u=zo?10:h>=Ao?5:h>=Bo?2:1)*Math.pow(10,l):-Math.pow(10,-l)/(h>=zo?10:h>=Ao?5:h>=Bo?2:1)} function r(l,h,n){var u=Math.abs(h-l)/Math.max(0,n);n=Math.pow(10,Math.floor(Math.log(u)/Math.LN10));u/=n;u>=zo?n*=10:u>=Ao?n*=5:u>=Bo&&(n*=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 n=h.apply(this,arguments);null==n?this.removeAttribute(l):this.setAttribute(l,n)}} function Gb(l,h){return function(){var n=h.apply(this,arguments);null==n?this.removeAttributeNS(l.space,l.local):this.setAttributeNS(l.space,l.local,n)}} function Hb(l){return function(){this.style.removeProperty(l)}} function Ib(l,h,n){return function(){this.style.setProperty(l,h,n)}} function Jb(l,h,n){return function(){var u=h.apply(this,arguments);null==u?this.style.removeProperty(l):this.style.setProperty(l,u,n)}} 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 n=h.apply(this,arguments);null==n?delete this[l]:this[l]=n}} function fb(l){return l.classList||new ub(l)} function ub(l){this.Pi=l;this.Zd=(l.getAttribute("class")||"").trim().split(/^|\s+/)} function vb(l,h){l=fb(l);for(var n=-1,u=h.length;++n>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=gC.exec(l))?zb(parseInt(h[1],16)):(h=hC.exec(l))?new La(h[1],h[2],h[3],1):(h=iC.exec(l))?new La(255*h[1]/100,255*h[2]/100,255*h[3]/100,1):(h=jC.exec(l))?Ab(h[1],h[2],h[3],h[4]):(h=kC.exec(l))?Ab(255*h[1]/100,255*h[2]/100,255*h[3]/100,h[4]):(h=lC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,1):(h=mC.exec(l))?Bb(h[1],h[2]/100,h[3]/100,h[4]):av.hasOwnProperty(l)?zb(av[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,n,u){0>=u&&(l=h=n=NaN);return new La(l,h,n,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,n,u){return 1===arguments.length?hb(l):new La(l,h,n,null==u?1:u)} function La(l,h,n,u){this.r=+l;this.g=+h;this.b=+n;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,n,u){0>=u?l=h=n=NaN:0>=n||1<=n?l=h=NaN:0>=h&&(l=NaN);return new Ua(l,h,n,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,n=l.g/255,u=l.b/255,x=Math.min(h,n,u),z=Math.max(h,n,u),A=NaN,la=z-x,oa=(z+x)/2;la?(A=h===z?(n-u)/la+6*(noa?z+x:2-z-x,A*=60):la=0oa?0:A;return new Ua(A,la,oa,l.opacity)} function jb(l,h,n,u){return 1===arguments.length?hc(l):new Ua(l,h,n,null==u?1:u)} function Ua(l,h,n,u){this.h=+l;this.s=+h;this.l=+n;this.opacity=+u} function kb(l,h,n){return 255*(60>l?h+(n-h)*l/60:180>l?n:240>l?h+(n-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*bv;return new Va(l.l,Math.cos(h)*l.c,Math.sin(h)*l.c,l.opacity)}l instanceof La||(l=hb(l));var n=pb(l.r),u=pb(l.g),x=pb(l.b);h=mb(.2225045*n+.7168786*u+.0606169*x);if(n===u&&u===x)var z=n=h;else z=mb((.4360747*n+.3850649*u+.1430804*x)/.96422),n=mb((.0139322*n+.0971045*u+.7141733*x)/.82521);return new Va(116*h-16,500*(z-h),200*(h-n),l.opacity)} function Va(l,h,n,u){this.l=+l;this.a=+h;this.b=+n;this.opacity=+u} function mb(l){return l>nC?Math.pow(l,1/3):l/cv+dv} function nb(l){return l>Bh?l*l*l:cv*(l-dv)} 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)*ev;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,n,u){return 1===arguments.length?ic(l):new rb(l,h,n,null==u?1:u)} function rb(l,h,n,u){this.h=+l;this.c=+h;this.l=+n;this.opacity=+u} function db(l,h,n,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=(fv*A+x.r/255*-1.7884503806-3.5172982438*z)/(fv+-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)*ev-120:NaN;x=new sb(0>A?A+360:A,z,la,x.opacity)}}else x=new sb(l,h,n,null==u?1:u);return x} function sb(l,h,n,u){this.h=+l;this.s=+h;this.l=+n;this.opacity=+u} function lc(l,h,n,u,x){var z=l*l,A=z*l;return((1-3*l+3*z-A)*h+(4-6*z+3*A)*n+(1+3*l+3*z-3*A)*u+A*x)/6} function pc(l){return function(){return l}} function uc(l,h){return function(n){return l+n*h}} function zc(l,h,n){return l=Math.pow(l,n),h=Math.pow(h,n)-l,n=1/n,function(u){return Math.pow(l+u*h,n)}} function rc(l,h){var n=h-l;return n?uc(l,180n?n-360*Math.round(n/360):n):pc(isNaN(l)?h:l)} function Ac(l){return 1===(l=+l)?Cb:function(h,n){return n-h?zc(h,n,l):pc(isNaN(h)?n:h)}} function Cb(l,h){var n=h-l;return n?uc(l,n):pc(isNaN(l)?h:l)} function Gc(l){return function(h){var n=h.length,u=Array(n),x=Array(n),z=Array(n),A;for(A=0;An&&(z=h.slice(n,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({ud:A,x:mc(u,x)})),n=Do.lastIndex;nla.length?oa[0]?Dc(oa[0].x):Cc(h):(h=oa.length,function(ra){for(var qa=0,pa;qal.xf&&(n=l.xf);var u=l;l=l.Rc}else h=l.Rc,l.Rc=null,l=u?u.Rc=h:Xk=h;Oi=u;tf(n);Dg=0}} function Ye(){var l=Mi.now(),h=l-Wk;1E3l&&(Ni=setTimeout(Bi,l-Mi.now()-Vk)),Pi&&(Pi=clearInterval(Pi))):(Pi||(Wk=Mi.now(),Pi=setInterval(Ye,1E3)),Ch=1,hv(Bi)))} function Ci(l,h,n){var u=new Ag;h=null==h?0:+h;u.restart(function(x){u.stop();l(x+h)},h,n);return u} function Ee(l,h,n,u,x,z){var A=l.Cd;if(!A)l.Cd={};else if(n in A)return;Ik(l,n,{name:h,index:u,group:x,on:oC,tween:pC,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())!==Go;){for(var eb=[];Da!==kv&&Da!==Go;)eb.push(Da),Da=oa();la&&null==(eb=la(eb,wa++))||ra.push(eb)}return ra} function n(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?uC(qa,la):iv(qa)});A.columns=ra||[];return A},parseRows:h,format:function(A,la){null==la&&(la=vC(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(n).join("\n")}}} function lv(l){if(!l.ok)throw Error(l.status+" "+l.statusText);return l.text()} function mv(l){return function(h,n,u){2===arguments.length&&"function"===typeof n&&(u=n,n=void 0);return fetch(h,n).then(lv).then(function(x){return l(x,u)})}} function Ho(l){return function(h,n){return fetch(h,n).then(lv).then(function(u){return(new DOMParser).parseFromString(u,l)})}} function nv(l,h,n,u){if(isNaN(h)||isNaN(n))return l;var x,z=l.ub;u={data:u};var A=l.Ra,la=l.Sa,oa=l.Aa,ra=l.Ea,qa,pa,wa,Da,Ha;if(!z)return l.ub=u,l;for(;z.length;)if((wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=n>=(pa=(la+ra)/2))?la=pa:ra=pa,x=z,!(z=z[Ha=Da<<1|wa]))return x[Ha]=u,l;var jc=+l.Ab.call(null,z.data);var eb=+l.Eb.call(null,z.data);if(h===jc&&n===eb)return u.next=z,x?x[Ha]=u:l.ub=u,l;do x=x?x[Ha]=Array(4):l.ub=Array(4),(wa=h>=(qa=(A+oa)/2))?A=qa:oa=qa,(Da=n>=(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,n,u,x){this.node=l;this.x0=h;this.y0=n;this.x1=u;this.y1=x} function wC(l){return l[0]} function xC(l){return l[1]} function Io(l,h,n,u,x,z){this.Ab=l;this.Eb=h;this.Ra=n;this.Sa=u;this.Aa=x;this.Ea=z;this.ub=void 0} function ov(l){for(var h={data:l.data},n=h;l=l.next;)n=n.next={data:l.data};return h} function bl(l,h){if(0>(h=(l=h?l.toExponential(h-1):l.toExponential()).indexOf("e")))return null;var n=l.slice(0,h);return[1u&&(la=Math.max(1,u-oa));z.push(n.substring(x-=la,x+la));if((oa+=la+1)>u)break;la=l[A=(A+1)%l.length]}return z.reverse().join(h)}} function zC(l){return function(h){return h.replace(/[0-9]/g,function(n){return l[+n]})}} function cl(l){return new Jo(l)} function Jo(l){if(!(h=AC.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 pv(l,h){h=bl(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 qv(l){return l} function BC(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 Xc=1,yd=-1,Cd;a:for(;XcTa||57>1)+Rc+Ma+Ia+Ga.slice(Ta);break;default:Ma=Ga+Rc+Ma+Ia}return z(Ma)} la=cl(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"):tv[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=tv[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 n=l.grouping&&l.thousands?yC(l.grouping,l.thousands):qv,u=l.currency,x=l.decimal,z=l.numerals?zC(l.numerals):qv,A=l.percent||"%";return{format:h,formatPrefix:function(la,oa){var ra=h((la=cl(la),la.type="f",la));la=3*Math.max(-8,Math.min(8,Math.floor(Dh(oa)/3)));var qa=Math.pow(10,-la),pa=rv[8+la/3];return function(wa){return ra(qa*wa)+pa}}}} function Ge(){this.reset()} function uv(l,h,n){var u=l.s=h+n,x=u-h;l.t=h-(u-x)+(n-x)} function dl(l){return 1l?-ye:Math.asin(l)} function CC(){} function vv(l){var h=l[0];l=l[1];var n=ze(l);return[n*ze(h),n*$d(h),$d(l)]} function wv(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 xv(l){var h=el(l[0]*l[0]+l[1]*l[1]+l[2]*l[2]);l[0]/=h;l[1]/=h;l[2]/=h} function DC(){var l=[],h;return{point:function(n,u){h.push([n,u])},lineStart:function(){l.push(h=[])},lineEnd:CC,Lq:function(){1=(wa=pa.length-1))){var wa,Da=pa[0],Ha=pa[wa],jc=Da;if(1E-6>Zf(jc[0]-Ha[0])&&1E-6>Zf(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 Ko(){} function zv(l){return function(h,n){var u=ze(h),x=ze(n);u=l(u*x);return[u*x*$d(h),u*$d(n)]}} function Qi(l){return function(h,n){var u=el(h*h+n*n),x=l(u),z=$d(x);x=ze(x);return[Av(h*z,u*x),dl(u&&n*z/u)]}} function HC(l){var h=0,n=l.children,u=n&&n.length;if(u)for(;0<=--u;)h+=n[u].value;else h=1;l.value=h} function Bv(l,h){var n=new Ri(l);l=+l.value&&(n.value=l.value);var u,x=[n],z,A,la,oa;for(null==h&&(h=IC);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 n.eachBefore(JC)} function IC(l){return l.children} function KC(l){l.data=l.data.data} function JC(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 Lo(l){function h(z){var A=z+"",la=n.get(A);if(!la){if(x!==Cv)return x;n.set(A,la=u.push(z))}return l[(la-1)%l.length]} var n=$k(),u=[],x=Cv;l=null==l?[]:gl.call(l);h.domain=function(z){if(!arguments.length)return u.slice();u=[];n=$k();for(var A=-1,la=z.length,oa,ra;++A=n?1:u(x)}}} function NC(l){return function(h,n){var u=l(h=+h,n=+n);return function(x){return 0>=x?h:1<=x?n:u(x)}}} function OC(l,h,n,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=p(A,la,n));0oa&&(u[x]=Math.ceil(A*oa)/oa,u[z]=Math.floor(la*oa)/oa,h(u));return l};return l} function Hv(){var l=Po(No,mc);l.copy=function(){return Oo(l,Hv())};return RC(l)} function Iv(l,h){l=l.slice();var n=0,u=l.length-1,x=l[n],z=l[u];if(zl?function(n){return-Math.pow(-h,n)*Math.pow(-l,1-n)}:function(n){return Math.pow(h,n)*Math.pow(l,1-n)}} function UC(l){return isFinite(l)?+("1e"+l):0>l?0:l} function Jv(l){return 10===l?UC:l===Math.E?Math.exp:function(h){return Math.pow(l,h)}} function Kv(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 Lv(l){return function(h){return-l(-h)}} function Mv(){function l(){x=Kv(u);z=Jv(u);0>n()[0]&&(x=Lv(x),z=Lv(z));return h} var h=Po(SC,TC).domain([1,10]),n=h.domain,u=10,x=Kv(10),z=Jv(10);h.base=function(A){return arguments.length?(u=+A,l()):u};h.domain=function(A){return arguments.length?(n(A),l()):n()};h.ticks=function(A){var la=n(),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=ji(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););})};n&&(x.count=function(z,A){Qo.setTime(+z);Ro.setTime(+A);l(Qo);l(Ro);return Math.floor(n(Qo,Ro))},x.every=function(z){z=Math.floor(z);return isFinite(z)&&0l.y){var h=new Date(-1,l.m,l.d,l.ld,l.M,l.S,l.L);h.setFullYear(l.y);return h}return new Date(l.y,l.m,l.d,l.ld,l.M,l.S,l.L)} function hl(l){if(0<=l.y&&100>l.y){var h=new Date(Date.UTC(-1,l.m,l.d,l.ld,l.M,l.S,l.L));h.setUTCFullYear(l.y);return h}return new Date(Date.UTC(l.y,l.m,l.d,l.ld,l.M,l.S,l.L))} function Si(l){return{y:l,m:0,d:1,ld:0,M:0,S:0,L:0}} function WC(l){function h(Ia,Ta){return function(Ga){var Na=[],Xc=-1,yd=0,Cd=Ia.length,pd,re;for(Ga instanceof Date||(Ga=new Date(+Ga));++XcNa.kg||53=Cd)return-1;pd=Ta.charCodeAt(Xc++);if(37===pd){if(pd=Ta.charAt(Xc++),pd=Rc[pd in Nv?Ta.charAt(Xc++):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:Pv,e:Pv,f:XC,H:YC,I:ZC,j:$C,L:Qv,m:aD,M:bD,p:function(Ia){return la[+(12<=Ia.getHours())]},Q:Rv,s:Sv,S:cD,u:dD,U:eD,V:fD,w:gD,W:hD,x:null,X:null,y:iD,Y:jD,Z:kD,"%":Tv},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:Uv,e:Uv,f:lD,H:mD,I:nD,j:oD,L:Vv,m:pD,M:qD,p:function(Ia){return la[+(12<=Ia.getUTCHours())]},Q:Rv,s:Sv,S:rD,u:sD,U:tD,V:uD,w:vD,W:wD,x:null,X:null,y:xD,Y:yD,Z:zD,"%":Tv},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:Wv,e:Wv,f:AD,H:Xv,I:Xv,j:BD,L:CD,m:DD,M:ED,p:function(Ia,Ta,Ga){return(Ta=wa.exec(Ta.slice(Ga)))?(Ia.p=Da[Ta[0].toLowerCase()],Ga+Ta[0].length):-1},Q:FD,s:GD,S:HD,u:ID,U:JD,V:KD,w:LD,W:MD,x:function(Ia,Ta,Ga){return u(Ia,z,Ta,Ga)},X:function(Ia,Ta,Ga){return u(Ia,A,Ta,Ga)},y:ND,Y:OD,Z:PD,"%":QD};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=n(Ia+="",VC);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=n(Ia,hl);Ta.toString=function(){return Ia};return Ta}}} function sd(l,h,n){var u=0>l?"-":"";l=(u?-l:l)+"";var x=l.length;return u+(x=l?-jl:Math.asin(l)} function YD(l){return l.innerRadius} function ZD(l){return l.outerRadius} function $D(l){return l.startAngle} function aE(l){return l.endAngle} function bE(l){return l&&l.padAngle} function kl(l,h,n,u,x,z,A){var la=l-n,oa=h-u;A=(A?z:-z)/Fh(la*la+oa*oa);oa*=A;la*=-A;var ra=l+oa,qa=h+la,pa=n+oa,wa=u+la;n=(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)*Fh(cE(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-n;A=qa-u;n=pa-n;u=h-u;l*l+A*A>n*n+u*u&&(ra=pa,qa=h);return{cx:ra,cy:qa,jd:-oa,kd:-la,Vd:ra*(x/z-1),Wd:qa*(x/z-1)}} function aw(l){this.Fa=l} function ll(l){return new aw(l)} function bw(l){return l[0]} function cw(l){return l[1]} function dw(){function l(la){var oa,ra=la.length,qa,pa=!1,wa;null==x&&(A=z(wa=Yk()));for(oa=0;oa<=ra;++oa)!(oal?1:h>=l?0:NaN} function eE(l){return l} function ew(l){this.Ce=l} function fw(l,h,n){l.Fa.bezierCurveTo((2*l.Ra+l.Aa)/3,(2*l.Sa+l.Ea)/3,(l.Ra+2*l.Aa)/3,(l.Sa+2*l.Ea)/3,(l.Ra+4*l.Aa+h)/6,(l.Sa+4*l.Ea+n)/6)} function gw(l){this.Fa=l} function hw(l,h,n){l.Fa.bezierCurveTo(l.Aa+l.mg*(l.Ee-l.Ra),l.Ea+l.mg*(l.Fe-l.Sa),l.Ee+l.mg*(l.Aa-h),l.Fe+l.mg*(l.Ea-n),l.Ee,l.Fe)} function iw(l,h){this.Fa=l;this.mg=(1-h)/6} function jw(l,h,n){var u=l.Aa-l.Ra;h-=l.Aa;var x=(l.Ea-l.Sa)/(u||0>h&&-0);l=(n-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 kw(l,h){var n=l.Aa-l.Ra;return n?(3*(l.Ea-l.Sa)/n-h)/2:h} function Xo(l,h,n){var u=l.Ra,x=l.Aa,z=l.Ea,A=(x-u)/3;l.Fa.bezierCurveTo(u+A,l.Sa+A*h,x-A,z-A*n,x,z)} function ml(l){this.Fa=l} function lw(l){this.Fa=new mw(l)} function mw(l){this.Fa=l} function nw(l){this.Fa=l} function ow(l){var h,n=l.length-1,u=Array(n),x=Array(n),z=Array(n);u[0]=0;x[0]=2;z[0]=l[0]+2*l[1];for(h=1;harguments.length)for(;++zthis.Zd.indexOf(l)&&(this.Zd.push(l),this.Pi.setAttribute("class",this.Zd.join(" ")))},remove:function(l){l=this.Zd.indexOf(l);0<=l&&(this.Zd.splice(l,1),this.Pi.setAttribute("class",this.Zd.join(" ")))},contains:function(l){return 0<=this.Zd.indexOf(l)}};var Zu={};nj=null;"undefined"!==typeof document&&("onmouseenter"in document.documentElement||(Zu={mouseenter:"mouseover",mouseleave:"mouseout"}));var $u=[null];Ra.prototype=Za.prototype={constructor:Ra,select:function(l){"function"!==typeof l&&(l=ya(l));for(var h=this.lb,n=h.length,u=Array(n),x=0;x=pa&&(pa=qa+1);!(Pc=eb[pa])&&++paarguments.length){var u=this.node();return n.local?u.getAttributeNS(n.space,n.local):u.getAttribute(n)}return this.each((null==h?n.local?Wa:Qa:"function"===typeof h?n.local?Gb:Fb:n.local?Eb:Db)(n,h))},style:function(l,h,n){return 1arguments.length){for(var u=fb(this.node()),x=-1,z=n.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?Gh:Math.pow(Gh,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,n=h+(.5>h?h:1-h)*(isNaN(l)||isNaN(this.s)?0:this.s);h=2*h-n;return new La(kb(240<=l?l-240:l+120,h,n),kb(l,h,n),kb(120>l?l+240:l-120,h,n),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 bv=Math.PI/180,ev=180/Math.PI,dv=4/29,Bh=6/29,cv=3*Bh*Bh,nC=Bh*Bh*Bh;ab(Va,function(l,h,n,u){return 1===arguments.length?lb(l):new Va(l,h,n,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,n=isNaN(this.b)?l:l-this.b/200;h=.96422*nb(h);l=1*nb(l);n=.82521*nb(n);return new La(ob(3.1338561*h-1.6168667*l-.4906146*n),ob(-.9787684*h+1.9161415*l+.033454*n),ob(.0719453*h-.2289914*l+1.4052427*n),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 fv=1.78277*-.29227-.1347134789;ab(sb,db,bb(Xa,{brighter:function(l){l=null==l?Gh:Math.pow(Gh,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)*bv,h=+this.l,n=isNaN(this.s)?0:this.s*h*(1-h),u=Math.cos(l);l=Math.sin(l);return new La(255*(h+n*(-.14861*u+1.78277*l)),255*(h+n*(-.29227*u+-.90649*l)),255*(h+1.97294*n*u),this.opacity)}}));var Uk=function n(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=n;return u}(1),XD=Gc(function(h){var n=h.length-1;return function(u){var x=0>=u?u=0:1<=u?(u=1,n-1):Math.floor(u*n),z=h[x],A=h[x+1];return lc((u-x/n)*n,0(u%=1)?++u:u)*n);return lc((u-x/n)*n,h[(x+n-1)%n],h[x%n],h[(x+1)%n],h[(x+2)%n])}});var Co=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Do=new RegExp(Co.source,"g"),gv=180/Math.PI,Yo={Ei:0,Fi:0,rotate:0,skewX:0,Xh:1,Yh:1},Xi,Zo,qw,ol,gE=wc(function(h){if("none"===h)return Yo;Xi||(Xi=document.createElement("DIV"),Zo=document.documentElement,qw=document.defaultView);Xi.style.transform=h;h=qw.getComputedStyle(Zo.appendChild(Xi),null).getPropertyValue("transform");Zo.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)"),hE=wc(function(h){if(null== h)return Yo;ol||(ol=document.createElementNS("http://www.w3.org/2000/svg","g"));ol.setAttribute("transform",h);if(!(h=ol.transform.baseVal.consolidate()))return Yo;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 $o=tb(Cb),Ch=0,Ni=0,Pi=0,Xk,Oi,Wk=0,Dg=0,Vk=0,Mi="object"===typeof performance&&performance.now?performance:Date,hv="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(h){setTimeout(h,17)};Ag.prototype=Ai.prototype={constructor:Ag,restart:function(h,n,u){if("function"!==typeof h)throw new TypeError("callback is not a function");u=(null==u?zg():+u)+(null==n?0:+n);this.Rc||Oi===this||(Oi?Oi.Rc=this:Xk=this,Oi=this);this.vf=h;this.xf=u;tf()},stop:function(){this.vf&&(this.vf=null,this.xf=Infinity,tf())}};var oC=t("start","end","interrupt"),pC=[],iE=Za.prototype.constructor,rw=0,Hh=Za.prototype;Af.prototype=function(h){return Za().transition(h)}.prototype={constructor:Af,select:function(h){var n=this.De,u=this.Sb;"function"!==typeof h&&(h=ya(h));for(var x=this.lb,z=x.length,A=Array(z),la=0;laarguments.length?ie(this.node(),u).on.on(h):this.each(Zd(u,h,n))},attr:function(h,n){var u=na(h),x="transform"===u?hE:fd;return this.attrTween(h,"function"===typeof n?(u.local?Kk:Jk)(u,x,oc(this,"attr."+h,n)):null==n?(u.local?hd:Vc)(u):(u.local?th:za)(u,x,n+""))},attrTween:function(h,n){var u="attr."+h;if(2>arguments.length)return(u=this.tween(u))&&u.rg;if(null==n)return this.tween(u,null);if("function"!==typeof n)throw Error();var x=na(h);return this.tween(u,(x.local?ao:Jd)(x,n))},style:function(h,n,u){var x="transform"===(h+="")?gE:fd;return null==n?this.styleTween(h,uh(h,x)).on("end.style."+h,de(h)):this.styleTween(h,"function"===typeof n?qC(h,x,oc(this,"style."+h,n)):co(h,x,n+""),u)},styleTween:function(h,n,u){var x="style."+(h+="");if(2>arguments.length)return(x=this.tween(x))&&x.rg;if(null==n)return this.tween(x,null);if("function"!==typeof n)throw Error();return this.tween(x,rC(h,n,null==u?"":u))},text:function(h){return this.tween("text","function"===typeof h?tC(oc(this,"text",h)):sC(null==h?"":h+""))},remove:function(){return this.on("end.remove",Tf(this.Sb))},tween:function(h,n){var u=this.Sb;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 n=h,u=this.Cd,x,z=!0,A;if(u){n=null==n?null:n+"";for(A in u)if((x=u[A]).name!==n)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.Cd}})};Za.prototype.transition=function(h){var n;if(h instanceof Af){var u=h.Sb;h=h.De}else u=++rw,(n=ap).time=zg(),h=null==h?null:h+"";for(var x=this.lb,z=x.length,A=0;Az)throw Error("negative radius: "+z);if(null===this.Aa)this.Ga+="M"+(this.Aa=h)+","+(this.Ea=n);else if(1E-6 qa*x)+","+(this.Aa=h+wa*oa)+","+(this.Ea=n+wa*ra)}else this.Ga+="L"+(this.Aa=h)+","+(this.Ea=n)},arc:function(h,n,u,x,z,A){h=+h;n=+n;u=+u;var la=u*Math.cos(x),oa=u*Math.sin(x),ra=h+la,qa=n+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%cp+cp),x>jE?this.Ga+="A"+u+","+u+",0,1,"+pa+","+(h-la)+","+(n-oa)+"A"+u+","+u+",0,1,"+pa+","+(this.Aa=ra)+","+(this.Ea=qa):1E-6=bp)+","+pa+","+(this.Aa=h+u*Math.cos(z))+ ","+(this.Ea=n+u*Math.sin(z))))},rect:function(h,n,u,x){this.Ga+="M"+(this.Ra=this.Aa=+h)+","+(this.Sa=this.Ea=+n)+"h"+ +u+"v"+ +x+"h"+-u+"Z"},toString:function(){return this.Ga}};Zk.prototype=$k.prototype={constructor:Zk,has:function(h){return" "+h in this},get:function(h){return this[" "+h]},set:function(h,n){this[" "+h]=n;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=[],n;for(n in this)" "===n[0]&&h.push(n.slice(1));return h},values:function(){var h=[],n;for(n in this)" "===n[0]&&h.push(this[n]);return h},entries:function(){var h=[],n;for(n in this)" "===n[0]&&h.push({key:n.slice(1),value:this[n]});return h},size:function(){var h=0,n;for(n in this)" "===n[0]&&++h;return h},empty:function(){for(var h in this)if(" "===h[0])return!1;return!0},each:function(h){for(var n in this)" "===n[0]&&h(this[n],n.slice(1),this)}};var Hg=$k.prototype;al.prototype=function(h,n){var u=new al;if(h instanceof al)h.each(function(A){u.add(A)});else if(h){var x=-1,z=h.length;if(null==n)for(;++xz;++z)if(x=n.source[z])x.length?u.push({source:x,target:n.target[z]=Array(4)}):n.target[z]=ov(x);return h};fe.add=function(h){var n=+this.Ab.call(null,h),u=+this.Eb.call(null,h);return nv(this.cover(n,u),n,u,h)};fe.addAll=function(h){var n,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>n||n>A){var la=z-u,oa=this.ub,ra;switch(ra=(n<(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||n>A);break;case 1:do qa=Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,A=x+la,u>h||n>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>n);break;case 3:do qa= Array(4),qa[ra]=oa,oa=qa;while(la*=2,u=z-la,x=A-la,u>h||x>n)}this.ub&&this.ub.length&&(this.ub=oa)}else return this;this.Ra=u;this.Sa=x;this.Aa=z;this.Ea=A;return this};fe.data=function(){var h=[];this.visit(function(n){if(!n.length){do h.push(n.data);while(n=n.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.Ra)?void 0:[[this.Ra,this.Sa],[this.Aa,this.Ea]]};fe.find=function(h,n,u){var x=this.Ra,z=this.Sa,A,la,oa,ra,qa=this.Aa,pa=this.Ea,wa=[],Da=this.ub,Ha;Da&&wa.push(new ee(Da,x,z,qa,pa));null==u?u=Infinity:(x=h-u,z=n-u,qa=h+u,pa=n+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.Ab.call(null,Da.data),jc=n-+this.Eb.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(!(n=u,u=u[jc=Ha<<1|Da]))return this;if(!u.length)break;if(n[jc+1&3]||n[jc+2&3]||n[jc+3&3]){var eb=n;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(!n)return this.ub=h,this;h?n[jc]=h:delete n[jc];(u=n[0]||n[1]||n[2]||n[3])&&u===(n[3]||n[2]||n[1]||n[0])&&!u.length&&(eb?eb[Pc]=u:this.ub=u);return this};fe.removeAll=function(h){for(var n=0,u=h.length;n=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;cl.prototype=Jo.prototype;Jo.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 sv,tv={"%":function(h,n){return(100*h).toFixed(n)},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,n){return h.toExponential(n)},f:function(h,n){return h.toFixed(n)},g:function(h,n){return h.toPrecision(n)},o:function(h){return Math.round(h).toString(8)},p:function(h,n){return pv(100*h,n)},r:pv,s:function(h,n){var u=bl(h,n);if(!u)return h+"";var x=u[0];u=u[1];u=u-(sv=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;$f*=uw;fp.add(Av($f*hp*$d(ip),tw*Yi+$f*ze(ip)));Ia+=sl?Ih+hp*mE:Ih;sl^pd>=Qc^gp>=Qc&&(Cd=wv(vv(Cd),vv(rl)),xv(Cd),pd=wv(Ma,Cd),xv(pd),pd=(sl^0<=Ih?-1:1)*dl(pd[2]),Rc>pd||Rc===pd&&(Cd[0]||Cd[1]))&&(Ta+=sl^0<=Ih?1:-1)}}bd=(-1E-6>Ia||1E-6>Ia&&-1E-6>fp)^Ta&1;Uc.length?(eb||(z.polygonStart(),eb=!0),EC(Uc,GC,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 n=NaN,u=NaN,x=NaN,z;return{lineStart:function(){h.lineStart();z=1},point:function(A,la){var oa=0Zf(ra-Kd))h.point(n,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>Zf(n-x)&&(n-=1E-6*x);1E-6>Zf(A-oa)&&(A-=1E-6*oa);ra=n;var qa=u,pa=A,wa,Da,Ha=$d(ra-pa);u=1E-6h?Kd:Math.acos(h))&&h/$d(h)}).invert=Qi(function(h){return h});el(3);Qi(ep);Qi(dl);Qi(function(h){return 2*ep(h)});Ri.prototype=Bv.prototype={constructor:Ri,count:function(){return this.eachAfter(HC)},each:function(h){var n,u=[this],x;do{var z=u.reverse();for(u=[];n=z.pop();)if(h(n),n=n.children){var A=0;for(x=n.length;An&&(n+=36E5);h.setTime(36E5*Math.floor((+h-n)/36E5)+n)},function(h,n){h.setTime(+h+36E5*n)},function(h,n){return(n-h)/36E5},function(h){return h.getHours()}),Uo=Qd(function(h){h.setHours(0,0,0,0)},function(h,n){h.setDate(h.getDate()+n)},function(h,n){return(n-h-6E4*(n.getTimezoneOffset()-h.getTimezoneOffset()))/864E5},function(h){return h.getDate()-1}),Yv=Eg(0),To=Eg(1);Eg(2);Eg(3);var Vo=Eg(4);Eg(5);Eg(6);var qE=Qd(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,n){h.setMonth(h.getMonth()+n)},function(h,n){return n.getMonth()-h.getMonth()+12*(n.getFullYear()-h.getFullYear())},function(h){return h.getMonth()}),Gg=Qd(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,n){h.setFullYear(h.getFullYear()+n)},function(h,n){return n.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});Gg.every=function(h){return isFinite(h=Math.floor(h))&&0this.$d&&2===this.Pa&&this.Fa.lineTo(this.Ab,this.Eb);(this.Ha||0!==this.Ha&&1===this.Pa)&&this.Fa.closePath();0<=this.Ha&&(this.$d=1-this.$d,this.Ha=1-this.Ha)},point:function(n,u){n=+n;u=+u;switch(this.Pa){case 0:this.Pa=1;this.Ha?this.Fa.lineTo(n,u):this.Fa.moveTo(n,u);break;case 1:this.Pa=2;default:if(0>=this.$d)this.Fa.lineTo(this.Ab,u),this.Fa.lineTo(n,u);else{var x=this.Ab*(1-this.$d)+n*this.$d;this.Fa.lineTo(x,this.Eb);this.Fa.lineTo(x,u)}}this.Ab=n;this.Eb=u}};Vi.prototype={constructor:Vi,scale:function(n){return 1===n?this:new Vi(this.k*n,this.x,this.y)},translate:function(n,u){return 0===n&0===u?this:new Vi(this.k,this.x+this.k*n,this.y+this.k*u)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};new Vi(1,0,0);Ki=b;Qw=function(n,u){return un?1:u>=n?0:NaN};si=function(n,u){var x=n.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};Or=function(n,u){var x=n.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};cA=function(n,u){var x=n.length,z=-1,A,la=0;if(null==u)for(;++zHa;qa||(qa=pa=Yk());if(Datl-1E-12)qa.moveTo(Da*Ig(Ha),Da*af(Ha)),qa.arc(0,0,Da,Ha,jc,!Pc),1E-12Na?$i:Math.acos(Na))/2);eb=Fh(Ga[0]*Ga[0]+Ga[1]*Ga[1]);Ga=kp(Ta,(wa-eb)/(Na-1));Na=kp(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 dw().defined(oa).curve(qa).context(ra)} var x=bw,z=null,A=td(0),la=cw,oa=td(!0),ra=null,qa=ll,pa=null;n.x=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),z=null,n):x};n.x0=function(wa){return arguments.length?(x="function"===typeof wa?wa:td(+wa),n):x};n.x1=function(wa){return arguments.length?(z=null==wa?null:"function"===typeof wa?wa:td(+wa),n):z};n.y=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),la=null,n):A};n.y0=function(wa){return arguments.length?(A="function"===typeof wa?wa:td(+wa),n):A};n.y1=function(wa){return arguments.length?(la=null==wa?null:"function"===typeof wa?wa:td(+wa),n):la};n.lineX0=n.lineY0=function(){return u().x(x).y(A)};n.lineY1=function(){return u().x(x).y(la)};n.lineX1=function(){return u().x(z).y(A)};n.defined=function(wa){return arguments.length?(oa="function"===typeof wa?wa:td(!!wa),n):oa};n.curve=function(wa){return arguments.length?(qa=wa,null!=ra&&(pa=qa(ra)),n):qa};n.context=function(wa){return arguments.length?(null==wa?ra=pa=null:pa=qa(ra=wa),n):ra};return n};cy=dw;Aw=function(){function n(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(tl,Math.max(-tl,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 p=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=p.get(b))&&void 0!==c?c:0;r=null!==(e=Xf(r,3))&&void 0!==e?e:0;p.set(b,k+r)}return f.map(function(t){return{month:t.getTime(),count:p.get(t.getFullYear()+"-"+(t.getMonth()+1))||0}})} function UE(a){var b=a.locale;a={};return wB("{{monthYear}}","
{{series.name}}: {{measure}}
").ae((a.monthYear=function(){return(new Date(this.datum.month)).toLocaleDateString(b,{month:"long",year:"numeric"})},a)).Ui()} ;}).call(this); ");return null==a||null==a.sheet?sg:Bm(a.sheet,void 0!=b?b:null,c)} function Fm(a){if(af&&!nf(10)||"function"!=typeof hd.DOMParser)return null;a=zg(""+a+"",null);return(new DOMParser).parseFromString(vg(a),"text/html").body.children[0]} function Dm(a,b){if(!a)return gg;var c=document.createElement("div").style;Gm(a).forEach(function(e){var f=df&&e in Am?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=wm(a,e),e=Wl(f,e,b),null!=e&&xm(c,f,e))});return new cg(c.cssText||"",bg)} function Hm(a){var b=Array.from(om(dm,a,"getElementsByTagName",["STYLE"])),c=Ae(b,function(f){return ke(sm(f).cssRules)});c=Cm(c);c.sort(function(f,l){f=Pl(f.selectorText);a:{l=Pl(l.selectorText);for(var p=pe,r=Math.min(f.length,l.length),t=0;t"+a+""),Hm(a),a=a.innerHTML);a=zg(a,null);var c=document.createElement("template");if(Nm&&"content"in c)Ug(c,a),c=c.content;else{var e=document.implementation.createHTMLDocument("x");c=e.body;Ug(e.body,a)}a=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Jm?new WeakMap:new Lm;e=a.nextNode();){a:{var f=e;switch(um(f)){case 3:f= Pm(this,f);break a;case 1:if("TEMPLATE"==tm(f).toUpperCase())f=null;else{var l=tm(f).toUpperCase();if(l in this.ha||"http://www.w3.org/1999/xhtml"!=ym(f))var p=null;else this.N[l]?p=document.createElement(l):(p=Zi(document,"SPAN"),this.na&&qm(p,"data-sanitizer-original-tag",l.toLowerCase()));if(p){var r=p,t=pm(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=tm(E);ma=ma.value;var ua={tagName:Ed(ta).toLowerCase(),attributeName:Ed(na).toLowerCase()},sa={jh:void 0};"style"==ua.attributeName&&(sa.jh=rm(E));E=Qm(ta,na);E in this.v?(na=this.v[E],ma=na(ma,ua,sa)):(na=Qm(null,na),na in this.v?(na=this.v[na],ma=na(ma,ua,sa)):ma=null)}null!==ma&&qm(r,l.name,ma)}f=p}else f=null}break a;default:f=null}}if(f){if(1==um(f)&&c.set(e,f),e=vm(e),l=!1,e)p=um(e),r=tm(e).toLowerCase(),t=vm(e),11!=p||t?"body"==r&&t&&(p=vm(t))&&!vm(p)&&(l=!0):l=!0,p=null,l||!e?p=b:1==um(e)&&(p=c.get(e)),p.content&&(p=p.content),p.appendChild(f)}else aj(e)}c.clear&& c.clear();return b};var Rm={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 Sm={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 Tm={"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 Um(a){a=a||new Vm;Wm(a);this.v=Ne(a.v);this.ha=Ne(a.Da);this.N=Ne(a.Ia);this.na=a.va;a.ha.forEach(function(b){if(0!=b.lastIndexOf("data-",0))throw new Bd('Only "data-" attributes allowed, got: %s.',[b]);if(0==b.lastIndexOf("data-sanitizer-",0))throw new Bd('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.v["* "+b.toUpperCase()]=Xm},this);a.La.forEach(function(b){b=b.toUpperCase();if(-1==b.indexOf("-")||Tm[b])throw new Bd("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} vd(Um,Om);function Ym(a){return function(b,c){b=Ed(b);return(c=a(b,c))&&"about:invalid#zClosurez"!=Tf(c)?Tf(c):null}} function Vm(){this.v={};Td([Ml,Nl],function(a){Ke(a).forEach(function(b){this.v[b]=Xm},this)},this);this.N={};this.ha=[];this.La=[];this.Da=Ne(Rm);this.Ia=Ne(Sm);this.va=!1;this.Ma=$f;this.ka=this.$=this.Pa=this.O=Rg;this.ya=null;this.ma=this.na=!1} function Zm(a,b){return function(c,e,f,l){c=a(c,e,f,l);return null==c?null:b(c,e,f,l)}} function $m(a,b,c,e){a[c]&&!b[c]&&(a[c]=Zm(a[c],e))} function Wm(a){if(a.ma)throw Error("HtmlSanitizer.Builder.build() can only be used once.");$m(a.v,a.N,"* USEMAP",an);var b=Ym(a.Ma);["* ACTION","* CITE","* HREF"].forEach(function(e){$m(this.v,this.N,e,b)},a);var c=Ym(a.O);["* LONGDESC","* SRC","LINK HREF"].forEach(function(e){$m(this.v,this.N,e,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(e){$m(this.v,this.N,e,rd(bn,this.Pa))},a);$m(a.v,a.N,"A TARGET",rd(cn,["_blank","_self"]));$m(a.v,a.N,"* CLASS",rd(dn,a.$));$m(a.v,a.N,"* ID",rd(en,a.$));$m(a.v,a.N,"* STYLE",rd(a.ka,c));a.ma=!0} function Qm(a,b){a||(a="*");return(a+" "+b).toUpperCase()} function Xm(a){return Ed(a)} function cn(a,b){b=Ed(b);return 0<=Sd(a,b.toLowerCase())?b:null} function an(a){return(a=Ed(a))&&"#"==a.charAt(0)?a:null} function bn(a,b,c){b=Ed(b);return a(b,c)} function dn(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=on(a);b&&(a=a.querySelector(b).parentNode);return a} function nn(a,b){for(var c=[a],e=null;e=c.pop();)Array.prototype.forEach.call(e.childNodes,function(f){f.nodeType===Node.TEXT_NODE?pn(e,f,b):f.childNodes.length&&c.push(f)})} function pn(a,b,c){if(b.textContent.match(qn)){var e=b.nextSibling;a.removeChild(b);b=b.textContent;for(var f=null,l=[];f=qn.exec(b);){0e&&(a=f+".autoNamespace"+this.$++);if(b){c&&(b=qd(b,c));var l=this.N[f];l||(l=[],this.N[f]=l);be(l,this.v[a]);this.v[a]=b;l.push(b);this.O.hasOwnProperty(f)}else if(f.length)b=this.v[a],be(this.N[f]||[],b),delete this.v[a];else if(1a.Ba?Math.floor(b*a.Ba):a.Ba,Ua:0a.Ua?Math.floor(b*a.Ua):a.Ua};a.Ua=Math.max(a.Ba,a.Ua);return a} function co(a,b,c,e,f,l){var p=b.width-a.ha-a.ma;a.na=jo(p,b.width,b.height,io(c,b.height),ho(a,[1,2]));a.ka=jo(p,b.width,b.height,io(f,b.height),ho(a,[3,4]));c=b.height-a.na-a.ka;f=ho(a,[3,4,1,2]);var r=0;for(p=0;pp){a=Zo(f);for(e=b=0;ep-b-y.Ba.height&&y.zc&&(y.hc.height=0),b+=y.hc.height;return Yh(b,l,c)}if(rl){a=Zo(e);for(c=e=0;cl-e-t.Ba.width&&t.zc&&(t.hc.width=0),e+=t.hc.width;return Yh(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.Sc.Jf?b.Sc.Jf:20;c=void 0!==c.Sc.Jf?c.Sc.Jf:20;return b-c})} ao.prototype.setMargins=ao.prototype.Wc;ao.prototype.setMarginEnd=ao.prototype.vk;ao.prototype.setMarginStart=ao.prototype.yk;ao.prototype.setMarginLeft=ao.prototype.wk;ao.prototype.setMarginBottom=ao.prototype.uk;ao.prototype.setMarginRight=ao.prototype.xk;ao.prototype.setMarginTop=ao.prototype.zk;ud("aplos.chart.layout.DynamicLayout",ao);var $o={oq:"WARNING",ERROR:"ERROR"};ud("aplos.util.MessageSeverity",$o);$o.WARNING="WARNING";$o.ERROR="ERROR";var ap={lq:"UNTIL_REMOVED",kq:"UNTIL_DATA",Jp:"ONCE"};ud("aplos.util.MessageDuration",ap);ap.UNTIL_REMOVED="UNTIL_REMOVED";ap.UNTIL_FRESH_DATA="UNTIL_DATA";ap.ONCE="ONCE";function bp(a){this.v=a} bp.prototype.render=function(a){var b=a.filter(function(c){return"ERROR"===c.severity});b.length&&cp(this,b);b.length||(b=dp(this.v.Ta,ep),b.empty()||(b.style("display","none"),b.selectAll("div."+fp).remove(),this.v.hb.style("display","")));a=a.filter(function(c){return"WARNING"===c.severity});gp(this,a)};function cp(a,b){var c=ep,e=hp,f=a.v,l=f.Ta;f.hb.style("display","none");a=dp(l,c);a.empty()&&(a=l.append("div").classed(c,!0),a.append("div").classed(ip,!0),a.append("div").classed(jp,!0));a.style("display",null);a.select("."+jp).attr("class",jp+" "+e);b=a.select("."+ip).selectAll("div."+fp).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 fp+" "+kp+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 gp(a,b){var c=a.v.Ta.select("."+lp);c.empty()&&(c=a.v.Ta.append("div").classed(lp,!0));c.style("display",b.length?"":"none");c.classed(mp,!0);var e="";b.forEach(function(f){e+=f.message+"\n"});c.attr("title",e.trim())} function dp(a,b){b=a.selectAll("."+b).nodes();for(var c=null,e=0;e>>0);function Gp(a){if("function"===typeof a)return a;a[Op]||(a[Op]=function(b){return a.handleEvent(b)});return a[Op]} ;function Pp(){this.port=this.v=null;this.N=[]} Pp.prototype.load=function(){var a=this,b=Qp();this.v=Rp(b);Sp().then(function(){document.body.appendChild(a.v)});return Tp(this.v,b).then(function(c){for(a.port=c.ports[0];0e?c:c==e?c:e)});return c} ud("aplos.data.aggregations.max",dq);function aq(a,b){var c=0;b=b||Sg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c++});return c} ud("aplos.data.aggregations.count",aq);function eq(a,b){var c=new Set;b=b||Sg;a.forEach(function(e,f){e=b(e,f);null!=e&&("number"!==typeof e||!isNaN(e)&&isFinite(e))&&c.add(e)});return c.size} ud("aplos.data.aggregations.countDistinct",eq);function fq(a,b,c,e){if(2>a||!Yp(a))throw Error("Number of quantiles must be an integer greater or equal to 2, but "+a+" was provided.");if(0>b||b>a||!Yp(b))throw Error("Requested quantile must be an integer from 0 to the number of quanties, "+a+", but "+b+" was requested.");return gq(b/a,c,e)} ud("aplos.data.aggregations.quantiles",fq);function gq(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=ue(c,b),l=Je(f);if(2>l.length)e=null;else for(f=xe(l),c=0;c