",{bo:"Never attached to DOM."});return(new DOMParser).parseFromString(Rc(a),"text/html").body.children[0]} function ym(a,b){if(!a)return"";var c=document.createElement("div").style;Bm(a).forEach(function(d){var e=rf&&d in vm?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");e.lastIndexOf("--",0)!=0&&e.lastIndexOf("var",0)!=0&&(d=qm(a,d),d=Jl(e,d,b),d!=null&&rm(c,e,d))});return c.cssText||""} function Cm(a){var b=Array.from(hm(Xl,a,"getElementsByTagName",["STYLE"])),c=wd(b,function(g){return ld(mm(g).cssRules)});c=xm(c);for(var d=[],e=0;e=0)){var e=qm(b,d);rm(a.style,d,e)}})}function Bm(a){Sa(a)?a=ld(a):(a=Zd(a),jd(a,"cssText"));return a};var Em=typeof WeakMap!="undefined"&&WeakMap.toString().indexOf("[native code]")!=-1,Fm=0,Gm=function(){this.Yd=[];this.xm=[];this.Bh="data-elementweakmap-index-"+Fm++};Gm.prototype.set=function(a,b){hm(Tl,a,"hasAttribute",[this.Bh])?(a=parseInt(hm(Ul,a,"getAttribute",[this.Bh])||null,10),this.xm[a]=b):(b=this.xm.push(b)-1,jm(a,this.Bh,b.toString()),this.Yd.push(a));return this};Gm.prototype.get=function(a){if(hm(Tl,a,"hasAttribute",[this.Bh]))return a=parseInt(hm(Ul,a,"getAttribute",[this.Bh])||null,10),this.xm[a]};Gm.prototype.clear=function(){this.Yd.forEach(function(a){hm(Wl,a,"removeAttribute",[this.Bh])},this);this.Yd=[];this.xm=[]};var Hm=Jd(Kd(),"goog.html.sanitizer.SafeDomTreeProcessor").Me,Im=function(){this.ej=document.implementation.createHTMLDocument("")};var Jm={APPLET:!0,BASE:!0,BGSOUND:!0,EMBED:!0,FORM:!0,IFRAME:!0,ISINDEX:!0,KEYGEN:!0,LAYER:!0,LINK:!0,META:!0,OBJECT:!0,SCRIPT:!0,SVG:!0,STYLE:!0,TEMPLATE:!0};var Km={A:!0,ABBR:!0,ACRONYM:!0,ADDRESS:!0,AREA:!0,ARTICLE:!0,ASIDE:!0,AUDIO:!0,B:!0,BDI:!0,BDO:!0,BIG:!0,BLOCKQUOTE:!0,BR:!0,BUTTON:!0,CAPTION:!0,CENTER:!0,CITE:!0,CODE:!0,COL:!0,COLGROUP:!0,DATA:!0,DATALIST:!0,DD:!0,DEL:!0,DETAILS:!0,DFN:!0,DIALOG:!0,DIR:!0,DIV:!0,DL:!0,DT:!0,EM:!0,FIELDSET:!0,FIGCAPTION:!0,FIGURE:!0,FONT:!0,FOOTER:!0,FORM:!0,H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,HEADER:!0,HGROUP:!0,HR:!0,I:!0,IMG:!0,INPUT:!0,INS:!0,KBD:!0,LABEL:!0,LEGEND:!0,LI:!0,MAIN:!0,MAP:!0,MARK:!0,MENU:!0,METER:!0,NAV:!0,NOSCRIPT:!0,OL:!0,OPTGROUP:!0,OPTION:!0,OUTPUT:!0,P:!0,PRE:!0,PROGRESS:!0,Q:!0,S:!0,SAMP:!0,SECTION:!0,SELECT:!0,SMALL:!0,SOURCE:!0,SPAN:!0,STRIKE:!0,STRONG:!0,STYLE:!0,SUB:!0,SUMMARY:!0,SUP:!0,TABLE:!0,TBODY:!0,TD:!0,TEXTAREA:!0,TFOOT:!0,TH:!0,THEAD:!0,TIME:!0,TR:!0,TT:!0,U:!0,UL:!0,VAR:!0,VIDEO:!0,WBR:!0};var Lm={"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},Pm=function(a){this.ej=document.implementation.createHTMLDocument("");a=a||new Mm;Nm(a);this.ui=R(a.ld);this.Yj=R(a.Yj);this.ei=R(a.ei);this.Wo=a.Wo;a.zq.forEach(function(b){if(b.lastIndexOf("data-",0)!=0)throw new ib('Only "data-" attributes allowed, got: %s.',[b]);if(b.lastIndexOf("data-sanitizer-",0)==0)throw new ib('Attributes with "%s" prefix are not allowed, got: %s.',["data-sanitizer-",b]);this.ui["* "+b.toUpperCase()]=Om},this);a.yq.forEach(function(b){b=b.toUpperCase();if(b.indexOf("-")==-1||Lm[b])throw new ib("Only valid custom element tag names allowed, got: %s.",[b]);this.ei[b]=!0},this);this.yj=a.yj;this.Vj=a.Vj;this.Kk=null;this.Tn=a.Tn};ab(Pm,Im);var Qm=function(a){return function(b,c){return(b=a(Yb(b),c))&&Cc(b)!=Bc.toString()?Cc(b):null}},Mm=function(){this.ld={};Yc([xl,yl],function(a){Zd(a).forEach(function(b){this.ld[b]=Om},this)},this);this.oe={};this.zq=[];this.yq=[];this.Yj=R(Jm);this.ei=R(Km);this.Wo=!1;this.Kt=Rm;this.Zs=this.np=this.ss=this.yj=ci;this.Vj=null;this.Js=this.Tn=!1},Tm=function(){var a=new Mm;a.Zs=Sm;md(a.zq,["data-safe-link"]);return a},Um=function(a,b){return function(c,d,e,f){c=a(c,d,e,f);return c==null?null:b(c,d,e,f)}},Ym=function(a,b,c,d){a[c]&&!b[c]&&(a[c]=Um(a[c],d))};Mm.prototype.gf=function(){return new Pm(this)};var Nm=function(a){if(a.Js)throw Error("HtmlSanitizer.Builder.build() can only be used once.");Ym(a.ld,a.oe,"* USEMAP",Zm);var b=Qm(a.Kt);["* ACTION","* CITE","* HREF"].forEach(function(d){Ym(this.ld,this.oe,d,b)},a);var c=Qm(a.yj);["* LONGDESC","* SRC","LINK HREF"].forEach(function(d){Ym(this.ld,this.oe,d,c)},a);["* FOR","* HEADERS","* NAME"].forEach(function(d){Ym(this.ld,this.oe,d,$a($m,this.ss))},a);Ym(a.ld,a.oe,"A TARGET",$a(an,["_blank","_self"]));Ym(a.ld,a.oe,"* CLASS",$a(bn,a.np));Ym(a.ld,a.oe,"* ID",$a(cn,a.np));Ym(a.ld,a.oe,"* STYLE",$a(a.Zs,c));a.Js=!0},Rm=function(a){return Gc(a)},dn=function(a,b){a||(a="*");return(a+" "+b).toUpperCase()},Sm=function(a,b,c,d){if(!d.jn)return null;b=ym(d.jn,function(e,f){c.Jv=f;e=a(e,c);e==null?e=null:(Md("HtmlSanitizerPolicy created with networkRequestUrlPolicy_ when installing '* STYLE' handler."),e=new Ac(e));return e});return b==""?null:b},Om=function(a){return Yb(a)},an=function(a,b){b=Yb(b);return hd(a,b.toLowerCase())?b:null},Zm=function(a){return(a= Yb(a))&&a.charAt(0)=="#"?a:null},$m=function(a,b,c){return a(Yb(b),c)},bn=function(a,b,c){b=b.split(/(?:\s+)/);for(var d=[],e=0;e"+b+""),P(b,"Older browsers that don't support inert parsing should not get to this branch"),Cm(b),b=b.innerHTML);b=Nd(b,{bo:"Never attached to DOM."});var c= document.createElement("template");if("content"in c)Sc(c,b),c=c.content;else{var d=document.implementation.createHTMLDocument("x");c=d.body;Sc(d.body,b)}b=document.createTreeWalker(c,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT,null,!1);for(c=Em?new WeakMap:new Gm;d=b.nextNode();){a:{var e=d;var f=om(e);switch(f){case 3:e=this.createTextNode(e);break a;case 1:om(e)==1||lb("Expected Node of type Element but got Node of type %s",om(e));if(nm(e).toUpperCase()=="TEMPLATE")e=null;else{f=nm(e).toUpperCase();if(f in this.Yj||sm(e)!="http://www.w3.org/1999/xhtml")f=null;else if(this.ei[f])f=this.ej.createElement(f);else{var g=this.ej.createElement("span");this.Wo&&jm(g,"data-sanitizer-original-tag",f.toLowerCase());f=g}if(g=f){var h=im(e);if(h!=null)for(var k=0;f=h[k];k++)if(f.specified){var l=e,m=f;var n=m.name;if(n.lastIndexOf("data-sanitizer-",0)==0)n=null;else{var p=nm(l);m=m.value;var q={tagName:Yb(p).toLowerCase(),attributeName:Yb(n).toLowerCase()},r={jn:void 0};q.attributeName=="style"&&(r.jn=km(l));l=dn(p,n);l in this.ui?n=(0,this.ui[l])(m,q,r):(n=dn(null,n),n=n in this.ui?(0,this.ui[n])(m,q,r):null)}n!==null&&jm(g,f.name,n)}e=g}else e=null}break a;default:Hm&&Ld(Hm,zd,"Dropping unknown node type: "+f),e=null}}if(e){if(om(e)==1&&c.set(d,e),d=pm(d),f=!1,d)g=om(d),h=nm(d).toLowerCase(),k=pm(d),g!=11||k?h=="body"&&k&&(g=pm(k))&&!pm(g)&&(f=!0):f=!0,g=null,f||!d?g=a:om(d)==1&&(g=c.get(d)),g.content&&(g=g.content),g.appendChild(e)}else pg(d)}c.clear&&c.clear();im(a).length>0&&(b=this.ej.createElement("span"),b.appendChild(a),a=b);a=(new XMLSerializer).serializeToString(a);return Nd(a.slice(a.indexOf(">")+1,a.lastIndexOf("")),{bo:"Output of HTML sanitizer"})};Pm.prototype.createTextNode=function(a){var b=a.data;(a=pm(a))&&nm(a).toLowerCase()=="style"&&!("STYLE"in this.Yj)&&"STYLE"in this.ei&&(b=Vc(zm(b,this.Kk,Za(function(c,d){return this.yj(c,{Jv:d})},this))));return document.createTextNode(b)};var en=function(){var a=Tm(),b=["icon"];a.yq.push("iron-icon");b&&b.forEach(function(c){c=dn("iron-icon",c);this.ld[c]=Om;this.oe[c]=!0},a);return a}();en.ss=function(a){return a};en.np=function(a){return a};en.yj=function(a){return Gc(a)};en.Kt=function(a){return Gc(a)};var fn=en.gf();function gn(a){if(a.entries.length===0)return Of("div",{"class":"google-visualization-tooltip"});P(a.entries.filter(function(d){return d.type==="separator"}).length<=1);var b=a.entries.findIndex(function(d){return d.type==="separator"}),c=[];b===-1?c.push(hn(a.entries)):(c.push(hn(a.entries.slice(0,b))),c.push(Of("div",{"class":"google-visualization-tooltip-separator"})),c.push(jn(a.entries.slice(b+1))));return Of("div",{"class":"google-visualization-tooltip"},If(c))} function hn(a){a=a.map(function(b){return Of("li",{"class":"google-visualization-tooltip-item"},Hf(kn(b.data)))});return Of("ul",{"class":"google-visualization-tooltip-item-list"},If(a))}function jn(a){a=a.map(function(b){b=b.data;return Of("li",{"data-logicalname":ml(["action",b.id]),"class":"google-visualization-tooltip-action"},Hf(kn(b)))});return Of("ul",{"class":"google-visualization-tooltip-action-list"},If(a))} function kn(a){return a.items.map(function(b,c){switch(b.type){case "text":var d=b.data;b=b.Jh?fn.Cf(d.text):Gf(d.text);return Of("span",{style:ln(d.style)},If([c===0?"":" ",b]));case "square":return c=b.data,Of("div",{"class":"google-visualization-tooltip-square",style:"background-color:"+(c.l&&c.l.fill)+";"});default:throw Error("Unknown item.type");}})} function ln(a){var b={"font-family":a.eb,"font-size":a.fontSize+"px",color:a.color,opacity:a.opacity,margin:"0","font-style":a.Xd?"italic":"none","text-decoration":a.ih?"underline":"none","font-weight":a.bold?"bold":"none"};a.Xd&&(b["padding-right"]="0.04em");return Object.entries(b).map(function(c){var d=G(c);c=d.next().value;d=d.next().value;return c+":"+d+";"}).join("")};function mn(a,b,c,d,e){var f=b.left+d;b=b.right-d;if(!(a.box.left>=f&&a.box.right<=b)){d=be(a);var g=d.box.left;d.box.left=xe(c.x,d.box.right,-1);d.box.right=xe(c.x,g,-1);if(g=d.ac){var h=g[0];g[0]=g[2];g[2]=h;g[0].x=xe(c.x,g[0].x,-1);g[1].x=xe(c.x,g[1].x,-1);g[2].x=xe(c.x,g[2].x,-1)}d.box.left>=f&&d.box.right<=b?(a.box=d.box,a.ac=d.ac):(a.ac&&(c=new hi(f+e,b-e),e=new hi(d.ac[0].x,d.ac[2].x),g=new hi(a.ac[0].x,a.ac[2].x),!(c.start<=g.start&&c.end>=g.end)&&c.start<=e.start&&c.end>=e.end&&(a.box=d.box,a.ac=d.ac)),a.box.right>b&&(a.box.left-=a.box.right-b,a.box.right=b),a.box.left=e&&a.box.bottom<=b)){d=be(a);var f=d.box.top;d.box.top=xe(c.y,d.box.bottom,-1);d.box.bottom=xe(c.y,f,-1);if(f=d.ac){var g=f[0];f[0]=f[2];f[2]=g;f[0].y=xe(c.y,f[0].y,-1);f[1].y=xe(c.y,f[1].y,-1);f[2].y=xe(c.y,f[2].y,-1)}d.box.top>=e&&d.box.bottom<=b?(a.box=d.box,a.ac=d.ac):(a.box.bottom>b&&(a.box.top-=a.box.bottom-b,a.box.bottom=b),a.box.top0?p.gh:0);l=Math.max(l,p.width);break;case "separator":m+=1.5*g+p.data.l.strokeWidth;break;default:lb('Invalid tooltip entry type "'+p.type+'"')}l=Math.max(l,2*g);var q=new Te(Math.round(l+2*g/1.618),Math.round(m+2*g/1.618));m=Math.sign(d.x-f.x);n=Math.sign(d.y-f.y);var r=c?new S(d.x+m*g,d.y+n*(g+q.height/2)):new S(d.x+m*q.width/2,d.y+n*q.height/2);p=r.x-q.width/2;var v=p+q.width,w=r.y-q.height/2,x=w+q.height;l={};c&&(c=new S(r.x,xe(d.y,r.y,g/(g+q.height/2))),r=new S(xe(r.x,d.x,-1),c.y),c.x=Math.round(c.x),c.y=Math.round(c.y),r.x=Math.round(r.x),r.y=Math.round(r.y),l.ac=m*n===1?[c,d,r]:[r,d,c]);l.box=new Z(Math.round(w),Math.round(v),Math.round(x),Math.round(p));mn(l,e,f,5,4);nn(l,e,f,5);d={};e=g/1.618;e=new Z(l.box.top+e,l.box.right-e,l.box.bottom-e,l.box.left+e);f=[];x=e.top;c=a.entries.length;q=!1;for(m=0;mr.length-1?r.push(D.width):r[y]=Math.max(r[y],D.width))}}p=[];v=[];w=0;if(q)for(m=0;m0&&(x+=A.gh);B.background&&(y.background={box:new Z(x-A.gh/2,l.box.right,x+A.height+A.gh,l.box.left)});D=[];C=e.left;var H=0;for(B=B.items.length;H0&&(C+=z.fo);var E=x+(A.height-z.height)/2;F.box=new Z(Math.round(E),Math.round(C+z.width),Math.round(E+z.height),Math.round(C));h&&(E=e.right-(F.box.left-e.left)-F.box.left-z.width,F.box.left+=E,F.box.right+=E);D.push(F);C+=z.width}y.items=D;x+=A.height;w++;break;case "separator":q=q.data;y=x+g+q.l.strokeWidth/2;r.data.line=new fi(l.box.left,y,l.box.right,y);x+=1.5*g+q.l.strokeWidth/2;break;default:lb('Invalid tooltip entry type "'+q.type+'"')}f.push(r)}d.entries=f;d.Ys=!!h;k=k||new V({fill:"white",stroke:"#ccc",strokeWidth:1});return{Bc:k,outline:l,yi:d}}function rn(a,b){for(var c=0,d=0,e=0,f=0;f0?g.fo:0);d=Math.max(d,g.height);e=Math.max(e,g.height/2+g.gh)}return{width:c,height:d,gh:e-d/2}} function sn(a,b){switch(a.type){case "text":var c=a.data;a=c.text;c=c.style;return{width:b?b(String(a),c).width:0,height:c.fontSize,gh:c.fontSize/3.236,fo:c.fontSize/3.236};case "square":return b=a.data.size,{width:b,height:b,gh:b,fo:b};default:throw Error('Invalid tooltip item type "'+a.type+'"');}};var tn=function(a,b){this.entries={};this.actions={};this.kb=[];this.Of(a,b)},vn=function(a){Yc(a.kb,function(b){un(this,this.actions[b])},a)};tn.prototype.Of=function(a,b){this.j=oh(a,"actionsMenu.textStyle",b);this.Sv=oh(a,"actionsMenu.disabledTextStyle",b);vn(this)};tn.prototype.getEntries=function(){for(var a=[],b=0,c=this.kb.length;b=0&&this.kb.splice(a,1)};var wn=function(a,b){a.yi=a.yi||{};a=a.yi;a.entries=a.entries||{};a=a.entries;a[b]=a[b]||{};b=a[b];b.entry=b.entry||{};return b.entry};tn.prototype.Dh=function(a,b){if(!a.Jh){var c=b.focused.Ch;c!=null&&(b=fd(a.yi.entries,function(d){return d.entry.data.id===c}),b!==-1&&(a=wn(a,b),a.data=a.data||{},a=a.data,a.background=a.background||{l:new V},a.background.l=Kg("#DDD")))}};var xn=function(a){this.o=a},yn=function(a,b){var c={index:{},order:[],Jf:{}};Yc(b,function(d){var e=a.getKey(d);if(e!=null){e=e.toString();if(!c.Jf.hasOwnProperty(e)){var f=a.dr(d);f&&(c.Jf[e]=f)}c.index.hasOwnProperty(e)||(c.index[e]=[],c.order.push(e));c.index[e].push(d)}});return c};var zn=function(a){this.o=a};u(zn,xn);zn.prototype.getKey=function(a){return this.o.Bn(a)};zn.prototype.dr=function(a){return this.o.Tk(a)};zn.prototype.Xq=function(a,b,c){var d=An(this.o,c);return Bn(a,d,b.content||"",!0,a.Ry,this.o.g[c.ha])};var Cn=function(a){this.o=a};u(Cn,xn);Cn.prototype.getKey=function(a){return a.ha};Cn.prototype.dr=function(a){return An(this.o,a)};Cn.prototype.Xq=function(a,b,c){c=this.o.Tk(c)||"";return[c?on(b.content||"",a.zi,c,a.j):null]};var Dn=function(){};t=Dn.prototype;t.Lc=function(){return this};t.zg=function(){return!1};t.Kr=function(){return!1};t.Uk=function(){throw Error("Only NaryOperator can return components");};t.Wq=function(){throw Error("Only NaryOperator can return component count");};t.og=function(){throw Error("Only NaryOperator can return precedence");};t.D=function(){throw Error("Only GVizNumber can return value");};t.getName=function(){throw Error("Only Variable can return name");};var En=function(){};En.prototype.Ud=function(){return")"};var Fn=function(){};Fn.prototype.Ud=function(){return"("};var Gn=function(){this.Ib=[]};u(Gn,Dn);Gn.prototype.join=function(a){var b=[];this.Ib.forEach(function(c,d){d>0&&b.push(a);d=!1;c instanceof Gn&&c.Wq()>1&&this.og()>c.og()&&(d=!0);d&&b.push(new Fn);md(b,c.Tc());d&&b.push(new En)},this);return b};Gn.prototype.Lc=function(){if(this.Ib.length===1)return this.Ib[0];var a=[];this.Ib.forEach(function(b){a.push(b.Lc())});this.Ib=a;return this};Gn.prototype.Uk=function(){return this.Ib[0]};Gn.prototype.Wq=function(){return this.Ib.length};var Hn=function(a){P(typeof a==="number");this.value=a};Hn.prototype.Ud=function(){return"number"};var In=function(a){this.value=a};u(In,Dn);In.prototype.Tc=function(){return[new Hn(this.value)]};In.prototype.zg=function(){return this.value<0};In.prototype.D=function(){return this.value};In.prototype.Kr=function(){return!0};var Jn=function(){};Jn.prototype.Ud=function(){return"--"};var Kn=function(){this.Ib=[]};u(Kn,Gn);var Ln=function(){this.Ib=[]};u(Ln,Kn);Ln.prototype.Lc=function(){var a=this.Uk().Lc();if(a.zg()){if(a instanceof Ln)return a.Uk();if(a instanceof In)return new In(-a.D());throw Error("Unknown type of negative.");}return new Ln(a)};Ln.prototype.Tc=function(){return[new Jn].concat(this.Uk().Tc())};Ln.prototype.zg=function(){return this.Lc()instanceof Ln};Ln.prototype.og=function(){return-1};var Mn=function(){};Mn.prototype.Ud=function(){return"-"};var Nn=function(){};Nn.prototype.Ud=function(){return"+"};var On=function(){this.Ib=[]};u(On,Gn);On.prototype.og=function(){return 1};On.prototype.Tc=function(){for(var a=[],b=0;b0&&c.zg()?(a.push(new Mn),c=(new Ln(c)).Lc()):a.length>0&&a.push(new Nn);a=a.concat(c.Tc())}return a};var Pn=function(){};Pn.prototype.Ud=function(){return"="};var Qn=function(){this.Ib=[]};u(Qn,Gn);Qn.prototype.og=function(){return 0};Qn.prototype.Tc=function(){return this.join(new Pn)};var Rn=function(){};Rn.prototype.Ud=function(){return"*"};var Sn=function(a,b){this.Ib=[];this.lq=b!=null?b:!1};u(Sn,Gn);Sn.prototype.og=function(){return 2};Sn.prototype.Lc=function(){Gn.prototype.Lc.call(this);var a=0,b=[],c=1;this.Ib.forEach(function(e){e.zg()&&(e=(new Ln(e)).Lc(),a++);e.Kr()&&(c*=e.D(),e=null);e&&b.push(e)});c!==1&&b.splice(0,0,new In(c));var d=new Sn(b,this.lq);a%2&&(d=new Ln(d));return d};Sn.prototype.Tc=function(){return this.lq?Array.prototype.concat.apply([],this.Ib.map(function(a){return a.Tc()})):this.join(new Rn)};Sn.prototype.zg=function(){var a=0;this.Ib.forEach(function(b){b.zg()&&a++});return!!(a%2)};var Tn=function(){};Tn.prototype.Ud=function(){return"^"};var Un=function(){this.Ib=[]};u(Un,Gn);Un.prototype.og=function(){return 3};Un.prototype.Tc=function(){return this.join(new Tn)};var Vn=function(a){this.name=a};Vn.prototype.Ud=function(){return"identifier"};var Wn=function(a){this.name=a};u(Wn,Dn);Wn.prototype.Tc=function(){return[new Vn(this.name)]};Wn.prototype.getName=function(){return this.name};function Xn(a,b){if(a instanceof Xn)this.Na=a.Na;else{var c;if(c=Sa(a))a:{for(var d=c=0;d0&&a[d].length!=c){c=!1;break a}for(var e=0;e0&&b>0)this.Na=Yn(a,b);else throw Error("Invalid argument(s) for Matrix contructor");}this.bb=new Te(this.Na[0].length,this.Na.length)} var Zn=function(a,b,c){for(var d=0;d=b.bb.width);d++){for(var e=d;b.Na[e][c]==0;)if(e++,e==b.bb.height&&(e=d,c++,c==b.bb.width))return b;var f=a,g=d,h=f.Na[e];f.Na[e]=f.Na[g];f.Na[g]=h;f=b.Na[d][c];for(e=c;e=0&&b=0&&ca&&(a=c)});var b=[];Yc(this.Na,function(c){b.push("[ ");c.forEach(function(d){d=String(d);b.push(Od(" ",a-d.length)+d+" ")});b.push("]\n")});return b.join("")};var co=function(a,b){var c=new Xn(a.bb.height,b.getSize().width);Zn(c,function(d,e,f){for(var g=d=0;g=0&&e=0&&f=this.Pc?(this.V=new go(a,b,c,d,this.kc),this.Vb=Math.round(this.V.Oa(this.Pc))):b<=-this.Pc?(this.V=new go(-b,-a,d,c,this.kc),this.Vb=Math.round(this.V.Oa(this.Pc)),f=2*this.Vb-d,e=2*this.Vb-c,this.V=new go(-b,-a,f,e,this.kc)):a>=-this.Pc?(this.Vb=Math.round(c),this.V=new go(this.Pc,b,this.Vb,d,this.kc)):b<=this.Pc?(this.Vb= Math.round(d),e=2*this.Vb-c,this.V=new go(this.Pc,-a,this.Vb,e,this.kc)):(this.V=new go(this.Pc,b,0,1,this.kc),e=this.V.Oa(-a),this.Vb=Math.round(c+e/(e+1)*(d-c)),b>=-a?this.V=new go(this.Pc,b,this.Vb,d,this.kc):(e=2*this.Vb-c,this.V=new go(this.Pc,-a,this.Vb,e,this.kc)));this.reversed=dthis.Vb*b?this.V.Yb(a):a*bthis.Pc?this.V.Oa(a):a<-this.Pc?2*this.Vb-this.V.Oa(-a):this.Vb};var lo={LA:"piecewiseLinear",tA:"log",yA:"mirrorLog"};function mo(){return{transform:function(a){return a},inverse:function(a){return a}}}function no(a){var b=new ko(a*.5,a,0,1,0);return{transform:function(c){return c==null?c:b.Oa(c)},inverse:function(c){return c==null?c:b.Yb(c)}}}function oo(a){P(a>0);var b=new ko(-a,a,-1,1,0,a);return{transform:function(c){return c==null?c:b.Oa(c)},inverse:function(c){return c==null?c:b.Yb(c)}}} function po(a,b,c){return(c=a.Sa(c,lo))?c:X(a,b)?"log":"piecewiseLinear"}function qo(a,b){switch(a){case "piecewiseLinear":return mo();case "log":return no(b);case "mirrorLog":return oo(b);default:return mo()}};var ro=function(a,b){this.hs=a;this.Rt=b;this.data=[]},so=function(a,b){if(a.data.length>0){var c=a.data[a.data.length-1][0],d=b-c;if(d>a.hs&&(d=Math.round(d/a.hs),d>1))for(var e=1;e0){var c=a-this.data[this.data.length-1].x;c>0&&(this.zn+=c)}this.zp+=b;this.data.push({x:a,y:b})}};var uo=function(a){var b=a.vl;b||(a.range!=null&&a.range.min!=null&&isFinite(a.range.min)&&a.range.max!=null&&isFinite(a.range.max)?(P(a.range.min!=null),P(a.range.max!=null),b=(a.range.max-a.range.min)/100):b=void 0);b!=null&&isFinite(b)||(b=a.zn/(a.data.length-1));return b},vo=function(a,b){return a.data.reduce(function(c,d){return c+Math.pow(a.rf.inverse(d.x),b)},0)},wo=function(a,b){return a.data.reduce(function(c,d){return c+Math.pow(a.rf.inverse(d.x),b)*d.y},0)},xo=function(a){for(var b=[],c=a.cg,d=0;dr.x?1:q.x0&&Q(f.min)1&&Q(f.max)>d[d.length-1].x&&so(c,f.max);return{data:c.gf(),r2:b}},Bo=function(a){var b=yo(a),c=function(d,e){for(var f=[],g=b.length-1;g>=0;g--){var h=b[g];if(h!=null&&h!==0){h=new In(h);if(g>0){var k=new Wn(d||"x");g>1&&(k=new Un([k,new In(g)]));h=new Sn([h,k],!0)}f.push(h)}}return new Qn([new Wn(e||"y"),new On(f)])};a=Ao(a,b);return a==null||a.data.length===0?null:{kq:b,data:a.data,r2:a.r2,sf:c().Lc(),ul:c}};function Co(a,b,c,d){d=new to(d);for(var e=0;e0?null:e-1;var h=Do(a,b,function(k){k=c(k);if(k==null)return null;e!=null&&(k-=e);return Math.log(k)},d);if(h===null)return null;a=[];for(b=0;b0&&(So(c,a),b||c.close());return c};var Uo=function(){this.Ua=[]};t=Uo.prototype;t.jc=function(a,b){this.Ua.length===0&&P(b.type==="move");this.Ua.push({l:a,segment:b})};t.move=function(a,b){a=Qo(a,b);this.jc(null,a)};t.Ma=function(a,b,c){b=Ro(b,c);this.jc(a,b)};t.rk=function(a,b,c,d,e,f,g){this.jc(a,{type:"curve",data:{x1:b,y1:c,x2:d,y2:e,x:f,y:g}})};t.qh=function(a,b,c,d,e,f,g){this.jc(a,{type:"arc",data:{cx:b,cy:c,rx:d,ry:e,Qq:f,lp:g,Fr:void 0}})};t.close=function(a){P(this.Ua.length!==0);var b=this.Ua[0].segment.data;this.Ma(a,b.x,b.y)};var Vo=function(a){switch(a.type){case "move":case "line":case "curve":return a=a.data,new S(a.x,a.y);case "arc":a=a.data;var b=we(a.lp);return new S(a.cx+a.rx*Math.cos((b-90)*Math.PI/180),a.cy+a.ry*Math.sin((b-90)*Math.PI/180));default:return P(!1),new S(0,0)}};Uo.prototype.te=function(a){for(var b=[],c=null,d=0;d0;if(-(n.Mh.x-n.mp.x)*v+(n.Mh.y-n.mp.y)*r>0&&w&&Math.sqrt(Math.pow(n.Mh.x-p,2)+Math.pow(n.Mh.y-q,2))d?null:h)&&h1&&(h=f,k=d)}var m={entries:[]};Yc(k.order,function(n){pp(a,m,(k.Jf[n]||"").toString());Yc(k.index[n],function(p){var q=e.Wi(p.ha,p.ya);q.bc?qp(a,m,null,q.content,!1,a.Ug,e.g[p.ha]):m.entries.push.apply(m.entries,h.Xq(a,q,p))})});a.ig(m,b.kd,c.length>0);return m};op.prototype.vq=function(a,b){var c=a.o,d=c.g[b],e=d.Ja,f=null,g=null,h=c.Za!=null&&c.Za;c.Za&&(f=c.g.length,f=(b+f/c.Og.tc.length)%f,g=c.g[f],P(d.l!=null),P(g.l!=null),c={color:d.l.fill,alpha:d.l.fillOpacity},g={color:g.l.fill,alpha:g.l.fillOpacity},f=b>f?[c,g]:[g,c],g=[this.Cq,this.Dq]);b={entries:[]};e.Ue?qp(this,b,e.Ue,e.content,!0,this.Ug,d,!0,f,g,h):qp(this,b,null,e.content,!1,this.Ug,d);this.ig(b,a.kd);return b};op.prototype.sq=function(a,b){var c=a.o,d=c.M[b].Ja,e=!1,f={entries:[]};if(d&&d.content)qp(this,f,null,d.content,!1,!1);else{var g=0,h=1,k=c.g.length;fp(c)&&(g=c.g.length-1,k=h=-1);for(d=[];g!==k;g+=h){var l=c.g[g];if(l.gm){var m=sp(c,g,b);m=l.points[m];var n=void 0,p=void 0;((n=m)==null?0:(p=n.Ja)==null?0:p.content)&&l.Ba!=null&&d.push({g:l,Af:m})}}this.tv.Sa("tooltip.sort")==="descending"&&d.length>0&&d.every(function(q){return q.g.type==="line"||q.g.type==="scatter"})&&d.sort(function(q,r){var v,w,x;q=(x=(v=q.Af)==null?void 0:(w=v.ab)==null?void 0:w.t)!=null?x:NaN;var y,A,D;r=(D=(y=r.Af)==null?void 0:(A=y.ab)==null?void 0:A.t)!=null?D:NaN;y=isNaN(q);A=isNaN(r);return y&&A?0:y?1:A?-1:r-q});g=null;d=G(d);for(h=d.next();!h.done;h=d.next())h=h.value,e=h.g,h=h.Af.Ja,g!==e.Ba&&(g=e.Ba,k=c.M[b].Jf[g],Xb(k==null?"":String(k))||pp(this,f,k)),qp(this,f,h.Ue,h.content,!0,this.Ug,e,void 0,void 0,void 0,void 0,h.bc&&h.sd),e=!0}a.kd!=null&&a.kd.length>0&&(e=!0);this.ig(f,a.kd);return e||this.Sy?f:null};var pp=function(a,b,c){a=on(c,a.zi);b.entries.push(a)},Bn=function(a,b,c,d,e,f,g,h,k,l,m){g=g===void 0?!1:g;d=d?a.zi:a.j;c=c==null?[]:c.split("\n");P(h==null||h.length===c.length);var n=e?f.color.color:null;b=g&&b!=null?on(b,a.j,null,null,n,f&&f.Gi):on(c[0],d,b,a.j,n,f&&f.Gi,null,m);a=[b];for(g=g?0:1;g0?"both":"focus";this.Ft=W(a,"tooltip.trigger",b,Sj)},xp=function(a){if(a.J==="pie"){var b=a.Og.Ci;return new S(b.x,b.y)}b=Wd(a.Da);a=Wd(a.pa);return new S(b.ga!=null?b.ga.H:Math.min(b.Va,b.Ya),a.ga!=null?a.ga.H:Math.max(a.Va,a.Ya))},yp=function(a,b){a.Xa=b},zp=function(a,b,c){var d=b.m;a=xp(a);b=1+Math.ceil(ep(b,c)/Math.sqrt(2));return new S(d.x+(d.x>=a.x?b:-b),d.y+(d.y<=a.y?-b:b))},Ap=function(a,b,c){var d=b.m;b=zp(a,b,c);if(b.xa.chartArea.right)b.x+=2*(d.x-b.x);if(b.ya.chartArea.bottom)b.y+=2*(d.y-b.y);return b},Bp=function(a){P(a.lines.length>0);var b=a.anchor?a.anchor:new S(0,0),c=a.lines[0],d=a.j.fontSize;if(a.angle===270)return new S(b.x+c.x+d,b.y+c.y-c.length/2);P(!a.angle);return new S(b.x+c.x+c.length/2,b.y+c.y-d)},Dp=function(a,b,c){var d=a.g[b],e=d.type;c=sp(a,b,c);var f=d.points[c];if(!f)return new S(0,0);b=function(){switch(e){case "bars":case "steppedArea":var g=f.m.bar||f.m,h=xp(a);g=new S(g.left+(g.lefth.x?g.left+g.width:g.left,g.toph.x?g.left+g.width:g.left,g.top0);var b=a.anchor?a.anchor:new S(0,0),c=a.lines[0],d=a.j.fontSize;if(a.angle===270)return new S(b.x+ c.x+d/2,b.y+c.y);P(!a.angle);return new S(b.x+c.x,b.y+c.y-d/2)},Gp=function(a,b,c){c=sp(a,b,c);var d=a.g[b];b=d.type;c=d.points[c].m;if(b==="bars"||b==="steppedArea"||b==="candlesticks"||b==="boxplot"){var e=c.bar||c.rect||c;c=e.left;b=e.width;d=e.top;e=e.height;var f=d+e,g=xp(a);a=a.orientation==="horizontal"?f>g.y?new S(c+b/2,f-.1):new S(c+b/2,d+.1):c0&&h.ig(d,b.kd),a=qn(d,f.Y,!1,c,a.Xa,g,f.vf,f.Wd,f.eh))):a=null,a):c===null&&d!==null?(P(f!==void 0),c=b.o,e=f.clone(),f=Ep(a,c,e,d),e=a.Zf?Se(f,a.Zf):e,(g=c.M[d].Ja)&&g.sd&&g.bc?(P(g.content!=null),b=fn.Cf(g.content),a=Hp(a,b,f,e)):(b=a.ff.sq(b,d),a=b===null?null:qn(b,c.Y,!1,f,a.Xa,e,c.vf,c.Wd,c.eh)),a):null},Ip=function(a,b,c,d){var e=b.o;if(!e.g[c].gm)return null;var f=Dp(e,c,d),g=a.Zf?Se(f,a.Zf):Gp(e,c,d),h=e.g[c].points[d].Ja;if(!h)return null;if(typeof h.xq==="function"){e= h.xq(e,c,d);if(!e)return null;if(typeof e!=="string"&&!(e instanceof Nc))throw Error("Custom calc function for tooltip content should produce string literal or safe HTML.");b=null;e instanceof Nc?b=e:typeof e==="string"&&(b=bg.Cf(e));return Hp(a,b,f,g)}if(h.sd&&h.bc)return e=fn.Cf(h.content||""),Hp(a,e,f,g);b=a.ff.uq(b,c,d);return qn(b,e.Y,!0,f,a.Xa,g,e.vf,e.Wd,e.eh)},Kp=function(a,b,c,d,e){var f=b.o;d=d.clone();var g=Ep(a,f,d,c[c.length-1]);d=a.Zf?Se(g,a.Zf):d;var h=[];c.forEach(function(k){f.g.forEach(function(l,m){h.push({ha:m,ya:k})})});b=rp(a.ff,b,h,e);return b===null?null:qn(b,f.Y,!1,g,a.Xa,d,f.vf,f.Wd,f.eh)},Hp=function(a,b,c,d){return{Jh:Of("div",{"class":"google-visualization-tooltip"},b),Nv:!0,Hs:d,anchor:c,Xa:a.Xa,spacing:20,margin:5}};var Lp=function(a,b,c,d,e,f){this.Wa=f;d==="dive"||this.Wa?this.Wa!=null&&this.Wa.Of(a,c):this.Wa=new tn(a,c);c=d==="dive"?new tp(a,c,e):new op(a,c,e,this.Wa);this.Kf=new wp(a,c,b)},Mp=function(a,b,c){var d={};if(c.legend.Qb!=null){d.legend=d.legend||{};var e=b.legend;P(typeof c.legend.Qb==="number");var f=c.legend.Qb;d.legend.mf=e.Pa[f];var g=f+1+"/"+e.Pa.length,h=e.Mj.Go,k=f>0,l=e.Mj.vo;e=f8;){var e=d+c>>1;b[e]<=a?c=e:d=e}for(;c0&&g===2;)h-=k>=65536&&k<=1114111?2:1,k=Up(d,h),g=Vp(k);if(g===16||g===19)return!1}}else if((b===16|| b===19)&&e===18)return!1;if(b===15&&(e===17||e===19))return!1;if(f){if(e===14){e=0;d=a;h=d.length-1;k=c;for(g=b;h>0&&g===14;)e++,h-=k>=65536&&k<=1114111?2:1,k=Up(d,h),g=Vp(k);g===14&&e++;if(e%2===1)return!1}}else if(b===14&&e===14)return!1;return!0}function Vp(a){if(44032<=a&&a<=55203)return a%28===16?10:11;Sp||(Sp=new Rp);return Sp.at(a)} function Up(a,b){a:{var c=a.charCodeAt(b);if(c>=55296&&c<=56319&&b+1=56320&&a<=57343){c=c>=55296&&c<=56319&&a>=56320&&a<=57343?(c<<10)-56623104+(a-56320+65536):null;break a}}else if(c>=56320&&c<=57343&&b>0&&(a=a.charCodeAt(b-1),a>=55296&&a<=56319)){c=-(a>=55296&&a<=56319&&c>=56320&&c<=57343?(a<<10)-56623104+(c-56320+65536):0);break a}}return c<0?-c:c};var Wp=function(){this.cursor=this.text=null};Wp.prototype.adoptText=function(a){this.text=a};Wp.prototype.first=function(){return this.cursor=0};Wp.prototype.current=function(){return this.cursor||0};Wp.prototype.next=function(a){a=this.zf(a);return a==null?a:this.cursor=a};var Xp=function(a,b){P(b.global);P(a.cursor!==null);P(a.text!==null);b.lastIndex=a.cursor;b=b.exec(a.text);return!b||b.index<0?a.text.length:b.index+b[0].length};Wp.prototype.zf=function(a){P(this.text!==null);P(this.cursor!==null);if(a===0)a=Xp(this,/(\r\n|\n|\r)/g);else if(a===1)a=Xp(this,/([`~!@#$%^&*()_+\-=\[\]\\{}|;':",\.\/<>?]|[ \t\u2009\u200b]+)/g);else if(a===2)a=Xp(this,/[\u00ad]/g);else if(a===3)a:{a=this.text.length;for(var b=this.cursor+1;b=0&&c.push(d);else for(var f in e)if(e.hasOwnProperty(f)){var g=e[f];if(typeof g==="number")g===b&&c.push(d);else if(g.Rc)g.Fa.indexOf(b)>=0&&c.push(d);else throw Error("Unknown type");}}return c};Yp.prototype.Ei=function(a,b,c){if(!(a in this.Zd))throw Error("Error: unknown iterator type "+a);a=this.Zd[a];if(typeof a==="number")return a;if(a.Rc)return b=a.Rc,b(c);if(b in a){a=a[b];if(typeof a==="number")return a;if(a.Rc)return b=a.Rc,b(c)}return null};var $p=function(a){var b=this;this.hy=a;this.Ag={};this.pending={};this.text=this.cursor=null;this.Rc=new Yp;this.Ei("line","number",0);this.Ei("line","none",[1,2],function(c){return b.text[c-1]==="\u00ad"?2:1});this.Ei("character",null,3)};$p.prototype.adoptText=function(a){this.text=a;for(var b in this.Ag)this.Ag.hasOwnProperty(b)&&this.Ag[b].adoptText(a)};var aq=function(a,b){var c=a.Ag[b];c||(c=a.Ag[b]=new window.Intl.v8BreakIterator(a.hy,{type:b}),a.text!=null&&c.adoptText(a.text),a.cursor!=null&&c.first());return c};$p.prototype.Ei=function(a,b,c,d){this.Rc.add(a,b,c,d)};var bq=function(a,b,c){c.next();if(c.current()>=a.text.length)return!0;if(c.current()>a.cursor){var d=c.breakType();c=c.current();var e=a.Rc.Ei(b,d,c);if(e==null)throw Error("Break type "+d+" in "+b+" iterator was classified as null.");e in a.pending||(a.pending[e]=[]);a.pending[e].push(c)}return!1},cq=function(a,b){for(var c=a.pending[b];c&&c.length>0&&c[0]<=a.cursor;)c.shift();c=Zp(a.Rc,b);for(var d={},e=!1;!(e||a.pending[b]&&a.pending[b].length!==0);){e=!0;for(var f=c.length,g=0;g0){a=this.cursor=a.shift();for(var b in this.Ag)if(this.Ag.hasOwnProperty(b))for(var c=aq(this,b);c.current()<=a;)bq(this,b,c);return this.cursor}return this.text.length};$p.prototype.zf=function(a){cq(this,a);a=this.pending[a];return a!=null&&a.length>0?a[0]:this.text.length};var dq=function(){this.jz=window.Intl&&!!window.Intl.v8BreakIterator},eq=function(){P(!Object.isSealed(dq),"Cannot use getInstance() with a sealed constructor.");var a="Un";if(dq.Un&&dq.hasOwnProperty(a))a=dq.Un;else{Qp.push(dq);var b=new dq;dq.Un=b;P(dq.hasOwnProperty(a),"Could not instantiate singleton.");a=b}b=["en"];return a.jz?new $p(b):new Wp};function fq(a,b,c,d,e,f){var g=null;f=f?2:3;for(var h=0;h<=f;h++){var k=c.zf(h);if(g==null||k=0?Yb(a.slice(0,b))+"\u2026":"...".slice(0,b)} function iq(a,b,c,d){if(a(hq(b))<=c)return hq(b);var e=eq();e.adoptText(b);e.first();var f=e.next(3),g=a(b.slice(0,f))<=c;if(d&&!g||!d&&a(hq(b,f))>c)for(d=0;d>=-3&&!(b=hq(b,d),a(b)<=c);d--);else{for(;a(hq(b,e.zf(3)))<=c;)f=e.next(3);if(d&&a(hq(b,f))>c)for(d=b.slice(0,f),e=0;e>=-3&&!(b=d+hq(b,e),a(b)<=c);e--);else b=hq(b,f)}return b} var jq=zb(function(a,b,c,d,e,f){if(b==="")return{lines:[],Mf:!1};var g=f==null||f.truncate==null?!0:f.truncate,h=f==null||f.Vs==null?!1:f.Vs;f=f==null||f.Fq==null?!1:f.Fq;var k=a;a=function(y){return k(y,c).width};var l=eq();l.adoptText(b);l.first();for(var m=!1,n=gq(b),p=!1,q=[],r=0;;){var v=fq(a,n,l,r,d,f),w=l.next(v);if(v!==0)for(;w=b.length||q.length>=e||!x){(w0,uj:0};if(e===0)return{lines:[],Ha:!1,uj:0};var f=function(g){return a(g,c)};b=jq(f,b,c,d,e,{truncate:!0,Vs:!1,Fq:!0});return{lines:b.lines,Ha:b.Mf,uj:b.lines.length>0?Math.max.apply(null,b.lines.map(f).map(function(g){return g.width})):0}};var lq=function(a,b){this.Ex=100;this.Cv=a;this.ty=b;this.El=0;this.el=null};lq.prototype.get=function(){if(this.El>0){this.El--;var a=this.el;this.el=a.next;a.next=null}else a=this.Cv();return a};lq.prototype.put=function(a){this.ty(a);this.El1)));g=g.next)e||(f=g);e&&(c.Bb==0&&d==1?Lq(c,b):(f?(d=f,P(c.pe),P(d!=null),d.next==c.yh&&(c.yh=d),d.next=d.next.next):Mq(c),Nq(c,e,3,b)))}a.Ng=null}else Aq(a,3,b)},Jq=function(a,b){a.pe||a.Bb!=2&&a.Bb!=3||Oq(a);P(b.Jg!=null);a.yh?a.yh.next=b:a.pe=b;a.yh=b},Iq=function(a,b,c,d){b&&(b=sq(b,"goog.Promise.then"));c&&(c=sq(c,"goog.Promise.then"));var e=Fq(null,null,null);e.Xf=new Cq(function(f,g){e.Jg=b?function(h){try{var k=b.call(d,h);f(k)}catch(l){g(l)}}:f;e.Vh=c?function(h){try{var k=c.call(d,h);k===void 0&&h instanceof Bq?g(h):f(k)}catch(l){g(l)}}:g});e.Xf.Ng=a;Jq(a,e);return e.Xf};Cq.prototype.dz=function(a){P(this.Bb==1);this.Bb=0;Aq(this,2,a)};Cq.prototype.ez=function(a){P(this.Bb==1);this.Bb=0;Aq(this,3,a)};var Aq=function(a,b,c){if(a.Bb==0){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.Bb=1;a:{var d=c,e=a.dz,f=a.ez;if(d instanceof Cq){Kq(d,e,f,a);var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(l){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(Ta(d))try{var k=d.then;if(typeof k==="function"){Pq(d,k,e,f,a);g=!0;break a}}catch(l){f.call(a,l);g=!0;break a}g=!1}}}g||(a.Bf=c,a.Bb=b,a.Ng=null,Oq(a),b!=3||c instanceof Bq||Qq(a,c))}},Pq=function(a,b,c,d,e){var f=!1,g=function(k){f|| (f=!0,c.call(e,k))},h=function(k){f||(f=!0,d.call(e,k))};try{b.call(a,g,h)}catch(k){h(k)}},Oq=function(a){a.un||(a.un=!0,yq(a.Yv,a))},Mq=function(a){var b=null;a.pe&&(b=a.pe,a.pe=b.next,b.next=null);a.pe||(a.yh=null);b!=null&&P(b.Jg!=null);return b};Cq.prototype.Yv=function(){for(var a;a=Mq(this);)Nq(this,a,this.Bb,this.Bf);this.un=!1};var Nq=function(a,b,c,d){if(c==3&&b.Vh&&!b.tk)for(;a&&a.Zk;a=a.Ng)a.Zk=!1;if(b.Xf)b.Xf.Ng=null,Rq(b,c,d);else try{b.tk?b.Jg.call(b.context):Rq(b,c,d)}catch(e){Sq.call(null,e)}Eq.put(b)},Rq=function(a,b,c){b==2?a.Jg.call(a.context,c):a.Vh&&a.Vh.call(a.context,c)},Qq=function(a,b){a.Zk=!0;yq(function(){a.Zk&&Sq.call(null,b)})},Sq=mq,Bq=function(a){gb.call(this,a)};ab(Bq,gb);Bq.prototype.name="cancel";var Gq=function(a,b,c){this.promise=a;this.resolve=b;this.reject=c};function Tq(a,b){Ek.call(this);this.nl=a||1;this.ck=b||Pa;this.bq=Za(this.bz,this);this.Qr=Date.now()}ab(Tq,Ek);t=Tq.prototype;t.enabled=!1;t.Dd=null;t.setInterval=function(a){this.nl=a;this.Dd&&this.enabled?(this.stop(),this.start()):this.Dd&&this.stop()};t.bz=function(){if(this.enabled){var a=Date.now()-this.Qr;a>0&&a2147483647?-1:Pa.setTimeout(a,b||0)};function Vq(a){return Math.pow(a,3)}function Wq(a){return 1-Math.pow(1-a,3)}function Xq(a){return 3*a*a-2*a*a*a};var Yq={LINEAR:"linear",iA:"in",GA:"out",kA:"inAndOut"};function Zq(a){switch(a){case "linear":break;case "in":return Vq;case "out":return Wq;case "inAndOut":return Xq;default:lb('Invalid easing type "'+a+'"')}return ei}function $q(a){var b=X(a,"animation.startup",!1),c=Y(a,"animation.duration",0);if(!c)return null;var d=Y(a,"animation.maxFramesPerSecond",30);a=W(a,"animation.easing","linear",Yq);a=Zq(a);return{Wy:b,duration:c,easing:a,lo:d}};function ar(a){if(a==null||!lg(a))throw Error("google-visualization-errors: container is null");var b=a.childNodes;var c=null;for(var d=jl(),e=0;e255||isNaN(c)||c<0||c>255||isNaN(d)||d<0||d>255||isNaN(a)||a<0||a>1)throw Error('"('+b+","+c+","+d+","+a+')" is not a valid RGBA color');b=[b,c,d,a];c=b.slice(0);c[3]=Math.round(b[3]*1E3)/1E3;return"rgba("+c.join(",")+")"};var lr={100:"#c6dafc",500:"#5e97f6",800:"#2a56c6"},mr={100:"#f4c7c3",500:"#db4437",900:"#a52714"},nr={100:"#fce8b2",600:"#f2a600",700:"#f09300",800:"#ee8100"},or={100:"#b7e1cd",500:"#0f9d58",700:"#0b8043"},pr={100:"#e1bee7",400:"#ab47bc",800:"#6a1b9a"},qr={100:"#b2ebf2",600:"#00acc1",800:"#00838f"},rr={100:"#ffccbc",400:"#ff7043",700:"#e64a19"},sr={100:"#f0f4c3",800:"#9e9d24",900:"#827717"},tr={100:"#c5cae9",400:"#5c6bc0",600:"#3949ab"},ur={100:"#f8bbd0",200:"#f48fb1",300:"#f06292",500:"#e91e63",700:"#c2185b",900:"#880e4f"},vr={100:"#b2dfdb",700:"#00796b",900:"#004d40"};var wr={},xr=!1;function yr(a){return a.replace(/[^\d,.]/g,"").split(",").map(function(b){return Number(b)})} function zr(a){var b={};typeof a==="string"&&(a={color:a});b.color=a.color;var c=vg(b.color);c==="none"?(b.kn=a.darker||c,b.ho=a.lighter||c):c.includes("rgba")?(c=yr(c),a=c.slice(0,3),c=c[3]||1,b.kn=kr([].concat(sa(Me([0,0,0],a,.25)),[c])),b.ho=kr([].concat(sa(Me([255,255,255],a,.25)),[c]))):(c=Je(c),b.kn=a.darker||He(Me([0,0,0],c,.25)),b.ho=a.lighter||He(Me([255,255,255],c,.25)));return b};var mj={emptyString:function(){return""},error:function(a,b,c){var d=c.sourceColumn,e=c.magnitude;if(typeof d!=="number"||typeof e!=="number")return null;a=a.D(b,d);return typeof a!=="number"?null:c.errorType==="percent"?a+e/100*a:a+e},mapFromSource:function(a,b,c){var d=c.sourceColumn;c=c.mapping;return typeof d==="number"&&c&&(a=a.D(b,d),typeof a==="string")?a in c?c[a]:null:null},stringify:function(a,b,c){c=c.sourceColumn;return typeof c!=="number"?"":a.na(b,c)},fillFromTop:function(a,b,c){c=c.sourceColumn;return typeof c!=="number"?null:zj(a,b,c,!0)},fillFromBottom:function(a,b,c){c=c.sourceColumn;return typeof c!=="number"?null:zj(a,b,c,!1)},identity:function(a,b,c){c=c.sourceColumn;return typeof c!=="number"?null:a.D(b,c)}};var Ar=function(a){this.Sc=null;this.ia=a;this.columns=[];this.Vn=!0;this.Mo=null;this.Xm=[];this.Vm=!0;var b=[];a=a.Rb();for(var c=0;c=-q&&p-g<=q&&p-g>=-q&&(n=(n-f)*(n-f)+(p-g)*(p-g),n<=q*q&&n<=k&&(h=ml(["pointsensitivityarea",m.da,m.lc]),k=n))}f=h}if(f==null&&e.has("category"))b:{e=a.o.M;for(l=0;le?c:d):c=d);return Er(a,c)?c:"chart"},Er=function(a,b){a=a.o.Nb;return a.has("category")&&!a.has("datum")?(b=b.split("#")[0],b!=="bar"&&b!=="bubble"&&b!=="candlestick"&&b!=="boxplot"&&b!=="point"&&b!=="pointsensitivityarea"&&b!=="steppedareabar"):!0};function Fr(a,b,c,d){var e=b.xo||$h;if(b.orientation==="horizontal"){var f=b.j,g=a.Nc[0],h=a.Nc[a.Nc.length-1];e=new Xh({pattern:e});g=e.Ra(g);h=e.Ra(h);d={minValue:{text:g,width:d?d(g,f).width:0,height:f.fontSize},maxValue:{text:h,width:d?d(h,f).width:0,height:f.fontSize}};f=d.minValue.height/4;e=new Ik(d.minValue.width+f,0,b.width-(d.minValue.width+d.maxValue.width+2*f),b.height)}else e=new Ik(0,0,b.width,b.height),d={};f=e.height*.33;h=f/Math.sqrt(3)*2;g=new Ik(e.left+h/2,e.top+f+1,e.width-h,e.height- f-1);var k=a.kf,l=a.Nc,m=l[l.length-1]-l[0];if(m===0)var n=[{Fb:new Ik(g.left,g.top,g.width,g.height),l:new V({fill:k[0]})}];else{n=[];m=g.width/m;for(var p=g.left,q,r=0;r0&&(g[0].Fb.width<0||g[0].Fb.height<0))return null;k=e;l=b.Ix;e=[];for(n=0;np[p.length-1]?m=q:(r=p[p.length-1]-p[0],m=r===0?q*.5:(m-p[0])/r*q)),m=k.left+m+h/2,m=[m-h/2,k.top,m+h/2,k.top,m,k.top+f],p=new V({fill:l,stroke:l}),e[n]={path:m,l:p};a=[];b.orientation==="horizontal"&&(a=d,c=[],c[0]={x:0,y:b.height-a.minValue.height,text:a.minValue.text,style:b.j},c[1]={x:b.width-a.maxValue.width,y:b.height-a.maxValue.height,text:a.maxValue.text,style:b.j},a=c);a={nq:g,cs:e,zt:a};c=a.nq;for(d=0;d=4);P(d[0]===null);P(d[d.length-1]===null);f=d[1].clone();var g=d[2].clone(),h=d[d.length-3].clone(),k=d[d.length-2].clone();e?(d[0]=k,d[d.length-1]=f):Qe(f,k)?(d[0]=h,d[d.length-1]=g):(d[0]=gi(new fi(f.x,f.y,g.x,g.y),-1),d[d.length-1]=gi(new fi(k.x,k.y,h.x,h.y),-1));f=b<0;var l= null,m=null;k=null;g=d.length-2;for(h=0;h<=g;h++)if(!Qe(d[h],d[h+1])){var n=d[h];var p=d[h+1],q=b,r=n;var v=p;P(!Qe(r,v));v=(v.y-r.y)/(v.x-r.x);v=isFinite(v)?{Fg:v,n:r.y-v*r.x}:{Fg:Infinity,n:r.x};r=v.Fg;v=v.n;r===Infinity?n={Fg:Infinity,n:p.y-n.y<0?v+q:v-q}:(q*=Math.sqrt(1+r*r),n={Fg:r,n:p.x-n.x>0?v+q:v-q});if(l){q=Hr(l,n);Ta(q)?(p=Hr(Ir(m,d[h]),l),r=Hr(Ir(d[h],m),l),p=ii(new hi(p.x,r.x),q.x)&&ii(new hi(p.y,r.y),q.y)):p=q===Infinity;l=p&&q!==Infinity?q:Hr(Ir(d[h],m),l);P(k!==null);m=c;q=m.jc;var w= k;r=l;k=be(w);switch(w.type){case "move":case "line":v=k.data;v.x=r.x;v.y=r.y;break;case "curve":v=k.data;var x=w.data;v.x=r.x;v.y=r.y;w=r.x-x.x;r=r.y-x.y;v.x1+=w;v.y1+=r;v.x2+=w;v.y2+=r;break;case "arc":lb("Calculating parallel arcs is not yet supported.");break;case "close":break;default:lb('Unsupported segment type "'+w.type+'"')}q.call(m,k);p||(k=180-Math.atan2(l.x-d[h].x,l.y-d[h].y)*180/Math.PI,l=Hr(Ir(d[h],d[h+1]),n),l=180-Math.atan2(l.x-d[h].x,l.y-d[h].y)*180/Math.PI,P(k!==l,"Two adjacent input segments cannot be parallel, so their parallel\n segments cannot be either"),c.qh(d[h].x,d[h].y,Math.abs(b),Math.abs(b),k,l,f));l=n;m=d[h];k=a[h]}else l=n,m=d[h],k=a[h].data,k=Qo(k.x,k.y)}e&&c.close();return c}function Ir(a,b){b=(a.x-b.x)/(b.y-a.y);isFinite(b)?a=a.y-b*a.x:(b=Infinity,a=a.x);return{Fg:b,n:a}}function Hr(a,b){var c=a.Fg,d=b.Fg;a=a.n;b=b.n;isFinite(c)||(c=Infinity);isFinite(d)||(d=Infinity);if(Ki(c,d))return Ki(a,b)?Infinity:null;if(c===Infinity)return new S(a,d*a+b);if(d===Infinity)return new S(b,c*b+a);var e=d-c;return new S(-(b-a)/e,(a*d-c*b)/e)};var Jr=function(a,b,c,d,e,f,g){Lp.call(this,a,b,c,d,e,g);this.hl=!0;this.Jk=a.Sa("crosshair.trigger",Tj);this.Iv=W(a,["crosshair.selected.orientation","crosshair.orientation"],"both",Uj);this.Fv=W(a,["crosshair.focused.orientation","crosshair.orientation"],"both",Uj);this.Gv=a.ll(["crosshair.selected.color","crosshair.color"]);this.Dv=a.ll(["crosshair.focused.color","crosshair.color"]);this.Hv=jh(a,["crosshair.selected.opacity","crosshair.opacity"],1);this.Ev=jh(a,["crosshair.focused.opacity","crosshair.opacity"],1);this.Mm=W(a,"aggregationTarget","none",Xj)};u(Jr,Lp);Jr.prototype.Dh=function(a,b,c){this.hl=!0;switch(a.yg){case "default":Kr(this,a,b,c);break;case "dive":Lr(this,a,b,c);break;default:lb('Invalid interactivity model "'+a.yg+'"')}};var Mr=function(a){return a.g.some(function(b){return b.Mb})},Nr=function(a,b,c){a.g=a.g||{};a=a.g;a[b]=a[b]||{};b=a[b];b.points=b.points||{};b=b.points;a=b[c]||{};return b[c]=a},Pr=function(a,b,c){if(b!=null)return a=Nr(a,b,c),a.fa=a.fa||{},a.fa;a=Or(a,c);a.fa=a.fa||{};return a.fa},Qr=function(a,b){a.g=a.g||[];a=a.g;a[b]=a[b]||{};return a[b]},Or=function(a,b){a.M=a.M||{};a=a.M;a[b]=a[b]||{};return a[b]},Rr=function(a,b){a.legend=a.legend||{};a=a.legend;a.mf=a.mf||{};a=a.mf;a[b]=a[b]||{};return a[b]},Kr=function(a,b,c,d){var e=a.Wa,f={o:b,kd:e.getEntries(),jj:d,ke:c.kb},g=c.kb.focused.Ch;g!=null&&(c.kb.focused.action=e.Si(g).action);e=a.Kf.Ft;g=e==="selection"||e==="both";e=e==="focus"||e==="both";for(var h=a.Mm!=="none",k=f.kd.length>0,l=fr(c.selected),m=l.length>1&&(h||k),n=0;n0&&Wr(a,f,h?l:[],l[l.length-1]));l=er(c.selected,"column");for(m=0;m1&&(h||k);for(k=0;k0&&$r(a,f,c.cursor.Eo,g)));g=c.focused.ha;h=c.focused.ve;h!=null&&P(g!=null);h!=null?b.g[g].Mb&&(as(a,b,g,h,d),e&&Tr(a,f,g,h),bs(b,g,h,d)):g!=null&&b.g[g].Mb&&cs(a,b,g,d);g=c.legend.focused.entry;g!=null&&b.g[g].Mb&&cs(a,b,g,d);g=c.focused.ya;g!=null&&b.M[g]&&(ds(a,b,g,d),e&&Mr(f.o)&&(Zr(a,f,c.cursor.position,g),a.hl=!1));if(g=c.Gb.Ok)g=Pr(d,g.da,g.on),g.Hd=g.Hd|| {},g.Hd.Hr=!0;(g=c.Gb.focused)&&e&&(h=b.Md[g.column],e=h.da,g=b.ue[g.row],h=h.bi,(e!=null?b.g[e].Mb:b.Mb)&&Vr(a,f,e,g,h));if(a=c.Eb)d.Eb=a},as=function(a,b,c,d,e){var f=b.g[c],g=f.points[d];if(!$o(g)&&g.m&&(!ap(f)||f.lineWidth!==0||bp(g,f))){var h=f.type==="bars"?es:fs;d=Nr(e,c,d);d.Fe={};c=d.Fe;c.Fa=[];for(e=0;e0){var f=Qr(d,c);f.Fe={};f=f.Fe;f.Fa=[];var g=e.type==="area"?b.Bd!=="none"?hp(e):gp(e,!1):gp(e,b.Ic);g=Wo(g);for(var h=e.ka.strokeWidth/2,k=0;k0};var ds=function(a,b,c,d){for(var e=b.g,f=0;f0){var f=Qr(d,c);f.ed={};f=f.ed;var g=e.type==="area"?b.Bd!=="none"?hp(e):gp(e,!1):gp(e,b.Ic);g=Wo(g);f.l=new V({stroke:e.ka.stroke,strokeWidth:Math.min(1,e.ka.strokeWidth/2)});f.path=Gr(g,-(e.ka.strokeWidth/2+2+f.l.strokeWidth/2))}for(f=0;f=0;l--)if(g=f[l],!$o(g)&&g.m&&(new Z(b.chartArea.top,b.chartArea.right,b.chartArea.bottom,b.chartArea.left)).contains(new S(g.m.x,g.m.y))){var n=l;break}n!=null&&(l=Nr(d,c,n),l.visible=!0,h==="focus"&&Tr(a,e,c,n));for(a=0;a=0&&b0&&c===0?e.forEach(function(g){ir(b.K.selected,d,g)}):c>0&&f.forEach(function(g){b.K.selected.add("cell",[d,g])})}else gr(this.K.selected,d,a);us(this.scheduler,0)}};t.pr=function(a){if(this.o.J!=="bubble"){var b;this.K.legend.focused.entry=(b=a.data.sl)!=null?b:null;us(this.scheduler,50)}};t.qr=function(){this.o.J!=="bubble"&&(this.K.legend.focused.entry=null,us(this.scheduler,250))};t.Ow=function(a){this.o.J!=="bubble"&&(xs(this,Q(a.data.sl)),us(this.scheduler,0))};t.Pw=function(a){this.K.legend.Qb==null&&(this.K.legend.Qb=a.data.Qb||0,this.K.legend.hi=a.data.hi||0);this.K.legend.Qb+=a.data.Jy;us(this.scheduler,0)};t.vr=function(a){if(this.o.J!=="bubble"){var b=this.o.yg;if(this.o.Nb.has("series")||b==="dive"){var c;this.K.focused.ha=(c=a.data.da)!=null?c:null;us(this.scheduler,50)}}};t.wr=function(){if(this.o.J!=="bubble"){var a=this.o.yg;if(this.o.Nb.has("series")||a==="dive")this.K.focused.ha=null,us(this.scheduler,250)}};t.ur=function(a){this.o.J!=="bubble"&&this.o.Nb.has("series")&&(xs(this,Q(a.data.da)),us(this.scheduler,0))};t.Uw=function(a){this.pr(a)};t.Vw=function(a){this.qr(a)};t.Tw=function(a){this.Hb.dispatchEvent("removeserie",{index:a.data.sl})};t.Lw=function(a){var b=this.o.Nb;if(b.has("datum")){var c;this.K.focused.ha=(c=a.data.da)!=null?c:null;var d;this.K.focused.ve=(d=a.data.lc)!=null?d:null}else{if(b.has("series")){this.vr(a);return}if(b.has("category")){this.lr(a);return}}us(this.scheduler,50)};t.Mw=function(a){var b=this.o.Nb;if(b.has("datum"))this.K.focused.ha=null,this.K.focused.ve=null;else{if(b.has("series")){this.wr(a);return}if(b.has("category")){this.mr(a);return}}us(this.scheduler,250)};t.Kw=function(a){var b=this.o;if(b.Nb.has("datum")){var c=b.bm==="single";Q(a.data.lc);Q(a.data.da);a={ya:a.data.lc,ha:a.data.da};var d=b.g[a.ha];d.Mb&&(b.J==="bubble"?gr(this.K.selected,a.ya,c):d.qb||(b=b.Cn(a),a=this.o.Nb,a.has("datum")?jr(this.K.selected,b.row,b.column,c):a.has("series")&&hr(this.K.selected,b.column,c)));us(this.scheduler,0)}else b.Nb.has("series")?this.ur(a):b.Nb.has("category")&&this.kr(a)};t.rw=function(a){var b=a.data.ti;if(b!==-1){Q(a.data.lc);Q(b);var c;this.K.Gb.focused={row:a.data.lc,column:ys(this,(c=a.data.da)!=null?c:null,b)};this.K.focused.ha=null;this.K.focused.ve=null;us(this.scheduler,50)}};t.sw=function(a){a.data.ti!==-1&&(this.K.Gb.focused=null,us(this.scheduler,250))};t.qw=function(a){var b=this.o,c=b.bm==="single",d=Q(a.data.lc),e,f=(e=a.data.da)!=null?e:null;a=a.data.ti;if(f==null||b.g[f].Mb)a===-1?this.K.Gb.Ok={da:f,on:d}:(Q(a),b=ys(this,f,a),jr(this.K.selected,d,b,c));us(this.scheduler,0)};t.Yw=function(){};t.Zw=function(){};t.ow=function(a){this.K.kb.focused.Ch=a.data.Ch||null;us(this.scheduler,50)};t.pw=function(){this.K.kb.focused.Ch=null;us(this.scheduler,250)};t.nw=function(){var a=this.K.kb.focused.action;a&&a();us(this.scheduler,250)};t.Vd=function(){this.features.vc("ready")};var ys=function(a,b,c){a=a.o;var d=null;if(b!=null)d=a.g[b].columns.annotation;else for(b=0;b0&&b===0?g.forEach(function(k){ir(a.K.selected,k,f)}):b>0&&h.forEach(function(k){a.K.selected.add("cell",[k,f])})}else hr(a.K.selected,f,d)}};function zs(a){ck.call(this);this.Nr=1;this.Ml=[];this.Rl=0;this.yc=[];this.Lf={};this.Zu=!!a}ab(zs,ck);zs.prototype.subscribe=function(a,b,c){var d=this.Lf[a];d||(d=this.Lf[a]=[]);var e=this.Nr;this.yc[e]=a;this.yc[e+1]=b;this.yc[e+2]=c;this.Nr=e+3;d.push(e);return e};zs.prototype.unsubscribe=function(a,b,c){if(a=this.Lf[a]){var d=this.yc;if(a=a.find(function(e){return d[e+1]==b&&d[e+2]==c}))return this.wp(a)}return!1};zs.prototype.wp=function(a){var b=this.yc[a];if(b){var c=this.Lf[b];this.Rl!=0?(this.Ml.push(a),this.yc[a+1]=function(){}):(c&&jd(c,a),delete this.yc[a],delete this.yc[a+1],delete this.yc[a+2])}return!!b};zs.prototype.vc=function(a,b){var c=this.Lf[a];if(c){var d=Array(arguments.length-1),e=arguments.length,f;for(f=1;f0&&this.Rl==0)for(;c=this.Ml.pop();)this.wp(c)}}return f!=0}return!1};var As=function(a,b,c){yq(function(){a.apply(b,c)})};zs.prototype.clear=function(a){if(a){var b=this.Lf[a];b&&(b.forEach(this.wp,this),delete this.Lf[a])}else this.yc.length=0,this.Lf={}};zs.prototype.ja=function(){zs.Mc.ja.call(this);this.clear();this.Ml.length=0};function Bs(a,b){return ve(a.x,b.left,b.left+b.width)===a.x&&ve(a.y,b.top,b.top+b.height)===a.y?!0:!1};var Cs=function(a,b,c,d){var e=this;this.K=a;this.Dc=c;this.Ub=d;this.viewport=null;this.ib=b;this.Ub.subscribe("ready",function(){e.Vd()})};Cs.prototype.ib=function(){return this.ib()};Cs.prototype.getState=function(){return this.K};Cs.prototype.Vd=function(){};Cs.prototype.Of=function(){var a={hAxis:{viewWindowMode:"explicit",viewWindow:{}},vAxis:{viewWindowMode:"explicit",viewWindow:{}}};this.Dc.cj&&(isNaN(this.viewport.Yc)||(a.hAxis.viewWindow.numericMin=this.viewport.Yc),isNaN(this.viewport.ud)||(a.hAxis.viewWindow.numericMax=this.viewport.ud));this.Dc.vertical&&(isNaN(this.viewport.Zc)||(a.vAxis.viewWindow.numericMin=this.viewport.Zc),isNaN(this.viewport.vd)||(a.vAxis.viewWindow.numericMax=this.viewport.vd));this.K.yd=a};var Ds=function(a,b,c,d){Cs.call(this,a,b,c,d);this.Dg=null};u(Ds,Cs);t=Ds.prototype;t.Vd=function(){var a=this,b=this.Ub;b.subscribe("dragstart",function(c){a.On(c)});b.subscribe("drag",function(c){a.Mn(c)});b.subscribe("dragend",function(){a.Nn()});b.subscribe("onmousedown",function(c,d){a.Zi(c,d)})};t.On=function(a){var b=this.ib().getChartAreaBoundingBox();Bs(a,b)&&(this.Dg=new ji(a.x,a.y))};t.Mn=function(a){this.Dg&&(this.ki(a.x,a.y),this.Dg.x=a.x,this.Dg.y=a.y)};t.Nn=function(){this.Dg=null};t.Zi=function(a,b){var c=this.ib().getChartAreaBoundingBox();Bs(a,c)&&b()};t.ki=function(a,b){var c=this.viewport;if(c){var d=this.ib();c.layout=d;d=this.Dc;if(d.cj){a=c.getHAxisValue(a)-c.getHAxisValue(this.Dg.x);var e=c.Yc-a,f=c.ud-a,g=Math.max(e,c.Hl),h=Math.min(f,c.Hl+c.Gl);if(c.ql&&(g===e||a<0)&&(h===f||a>0)||!c.ql)c.Yc=e,c.ud=f}d.vertical&&(b=c.getVAxisValue(b)-c.getVAxisValue(this.Dg.y),d=c.Zc-b,a=c.vd-b,e=Math.max(d,c.Il),f=Math.min(a,c.Il+c.Fl),c.ql&&(e===d||b<0)&&(f===a||b>0)||!c.ql)&&(c.Zc=d,c.vd=a);this.Of()}};var Es=function(a,b,c,d){Cs.call(this,a,b,c,d);this.Gf=null};u(Es,Cs);t=Es.prototype;t.Vd=function(){var a=this,b=this.Ub;b.subscribe("dragstart",function(c){a.On(c)});b.subscribe("drag",function(c){a.Mn(c)});b.subscribe("dragend",function(){a.Nn()});b.subscribe("onmousedown",function(c,d){a.Zi(c,d)})};t.On=function(a){var b=this.ib().getChartAreaBoundingBox();Bs(a,b)&&(this.Gf=new ji(a.x,a.y))};t.Mn=function(a){if(this.Gf){var b=this.ib().getChartAreaBoundingBox(),c=this.Dc;this.Ho(a,b);if(c.cj){var d=Math.min(this.Gf.x,a.x);var e=Math.abs(this.Gf.x-a.x)}else d=b.left,e=b.width;c.vertical?(c=Math.min(this.Gf.y,a.y),a=Math.abs(this.Gf.y-a.y)):(c=b.top,a=b.height);this.getState().Eb={left:d,top:c,width:e,height:a,color:"blue",opacity:.2}}};t.Nn=function(){this.Gf&&(this.ki(),this.Gf=null,this.getState().Eb=null)};t.Zi=function(a,b){var c=this.ib().getChartAreaBoundingBox();Bs(a,c)&&b()};t.ki=function(){var a=this.Dc,b=this.viewport,c=this.ib();b.layout=c;var d=this.getState().Eb,e=b.getHAxisValue(d.left),f=b.getHAxisValue(d.left+d.width);c=b.getVAxisValue(d.top);d=b.getVAxisValue(d.top+d.height);if(e!==f&&c!==d){var g=b.Gl*b.mo;if(a.cj){var h=Math.min(e,f);e=Math.max(e,f);e-h1&&(c=1/c);var d=eh(this.options,"explorer.zoomDelta",1.5),e=X(this.options,"explorer.keepInBounds",!1);this.viewport=new Qs(this.o,this.ib(),b,c,d,e);this.Jq.forEach(function(f){f.viewport=a.viewport})};Rs.prototype.init=function(){var a=this,b=this.o.Da[0]?0:1,c=this.o.pa[0]?0:1,d=this.o.Da[b],e=this.o.pa[c];b=!this.o.Da[1-b]&&d&&d.type==="value"&&!d.Wc;c=!this.o.pa[1-c]&&e&&e.type==="value"&&!e.Wc;e=(this.options.N("explorer")||{}).axis;e==="horizontal"?c=!1:e==="vertical"&&(b=!1);this.Dc=new Fs(b,c);Ss(this);this.Ub.subscribe("ready",function(){a.Vd()})};var Ss=function(a){var b=a.Jq,c=a.options.N("explorer.actions");(c==null||Array.isArray(c)&&c.includes("dragToPan"))&&b.push(new Ds(a.K,a.ib,a.Dc,a.Ub));c=a.options.N("explorer.actions");Array.isArray(c)&&c.includes("dragToZoom")&&b.push(new Es(a.K,a.ib,a.Dc,a.Ub));c=a.options.N("explorer.actions");(c==null||Array.isArray(c)&&c.includes("rightClickToReset"))&&b.push(new Hs(a.K,a.ib,a.Dc,a.Ub));c=a.options.N("explorer.actions");Array.isArray(c)&&c.includes("pinchToZoom")&&kl&&b.push(new Gs(a.K,a.ib,a.Dc,a.Ub));c=a.options.N("explorer.actions");(c==null||Array.isArray(c)&&c.includes("scrollToZoom"))&&b.push(new Is(a.K,a.ib,a.Dc,a.Ub))};var Ts=function(a,b,c,d,e){e=e===void 0?!0:e;this.options=a;this.state=b;this.o=d;this.Wv=[];this.scheduler=null;this.ib=c;this.Ub=new zs;e&&this.init()};Ts.prototype.init=function(){var a=this.options;a.N("type")==="pie"?a=!1:(a=a.N("explorer"),a=a!=null&&typeof a==="object");a&&this.Wv.push(new Rs(this.state,this.ib,this.options,this.o,this.Ub))};Ts.prototype.vc=function(a,b,c){var d=Us[a];d&&this.scheduler&&!this.scheduler.Od&&us(this.scheduler,d);this.Ub.vc.apply(this.Ub,[a,b,c])};var Vs={},Us=(Vs.dragstart=15,Vs.drag=5,Vs.dragend=5,Vs.scroll=5,Vs.rightclick=5,Vs.pinch=5,Vs.pinchend=15,Vs);function Ws(a){ck.call(this);this.rd=a;this.Yd={}}ab(Ws,ck);var Xs=[];Ws.prototype.Eg=function(a,b,c,d){Array.isArray(b)||(b&&(Xs[0]=b.toString()),b=Xs);for(var e=0;e=0;var n;if(n=zf)n=Zb(at,10)>=0;var p=Ol&&Zb(ct,85)>=0;m=qf||m||n||p}k=m?-h.scrollLeft:k&&Pk(h,"overflowX")!="visible"?h.scrollWidth-h.clientWidth-h.scrollLeft:h.scrollLeft;l=Re(l,new S(k,h.scrollTop))}}}h=l||new S;l=Uk(a);k=al(a);l=new Ik(l.x,l.y,k.width,k.height);(k=Vk(a))&&l.intersection(Jk(k));k=eg(a);m=eg(c);if(k.nb!=m.nb){k=k.nb.body;m=m.nb.defaultView;n=new S(0,0);p=kg(dg(k));b:{try{wb(p.parent);var q=!0;break b}catch(w){}q=!1}if(q){q=k;do{var r=p==m?Uk(q):Yk(P(q));n.x+=r.x;n.y+=r.y}while(p&&p!=m&&p!=p.parent&&(q=p.frameElement)&&(p=p.parent))}q=Re(n,Uk(k));l.left+=q.x;l.top+=q.y}a=dt(a,b);b=l.left;a&4?b+=l.width:a&2&&(b+=l.width/2);b=new S(b,l.top+(a&1?l.height:0));b=Re(b,h);e&&(b.x+=(a&4?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var v;g&&(v=Vk(c))&&(v.top-=h.y,v.right-=h.x,v.bottom-=h.y,v.left-=h.x);return et(b,c,d,f,v,g)},et=function(a,b,c,d,e,f){a=a.clone();var g=dt(b,c);c=al(b);var h=c.clone();a=a.clone();h=h.clone();var k=0;if(d||g!=0)g&4?a.x-=h.width+(d?d.right:0):g&2?a.x-=h.width/2:d&&(a.x+=d.left),g&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);f&&(e?(d=h,g=0,(f&65)==65&&(a.x=e.right)&&(f&=-2),(f&132)==132&&(a.y=e.bottom)&&(f&=-5),a.xe.right&&(d.width=Math.min(e.right-a.x,k+ d.width-e.left),d.width=Math.max(d.width,0),g|=4)),a.x+d.width>e.right&&f&1&&(a.x=Math.max(e.right-d.width,e.left),g|=1),f&2&&(g|=(a.xe.right?32:0)),a.ye.bottom&&(d.height=Math.min(e.bottom-a.y,k+d.height-e.top),d.height=Math.max(d.height,0),g|=8)),a.y+d.height>e.bottom&&f&4&&(a.y=Math.max(e.bottom-d.height,e.top),g|=2),f&8&&(g|=(a.ye.bottom?128:0)),e=g):e=256,k=e);f=new Ik(0,0,0,0);f.left=a.x;f.top=a.y;f.width=h.width;f.height=h.height;e=k;if(e&496)return e;Rk(b,new S(f.left,f.top));h=f.getSize();Ue(c,h)||(c=h,b=b.style,qf?b.MozBoxSizing="border-box":rf?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px");return e},dt=function(a,b){return(b&8&&cl(a)?b^4:b)&-9};function gt(a,b,c){this.element=a;this.rq=b;this.iy=c}ab(gt,$s);gt.prototype.de=function(a,b,c){ft(this.element,this.rq,a,b,void 0,c,this.iy)};function ht(a,b){this.H=a instanceof S?a:new S(a,b)}ab(ht,$s);ht.prototype.de=function(a,b,c){ft((a?dg(a):document).documentElement,0,a,b,this.H,c,null)};function it(a,b){Ek.call(this);this.rd=new Ws(this);this.To(a||null);b&&(this.ji=b)}ab(it,Ek);t=it.prototype;t.cb=null;t.av=!0;t.Yp=null;t.Zp=null;t.Nh=!1;t.Qy=!1;t.eo=-1;t.gx=!1;t.Vv=!0;t.ji="toggle_display";t.getType=function(){return this.ji};t.O=function(){return this.cb};t.To=function(a){if(this.Nh)throw Error("Can not change this state of the popup while showing.");this.cb=a};t.isVisible=function(){return this.Nh};var kt=function(a,b){a.Sj&&a.Sj.stop();a.bj&&a.bj.stop();if(b){if(!a.Nh&&a.zo()){if(!a.cb)throw Error("Caller must call setElement before trying to show the popup");a.de();b=dg(a.cb);a.gx&&a.rd.Eg(b,"keydown",a.ey,!0);a.av&&(a.rd.Eg(b,"mousedown",a.gy,!0),a.rd.Eg(b,"blur",a.by));a.ji=="toggle_display"?(a.cb.style.visibility="visible",bl(a.cb,!0)):a.ji=="move_offscreen"&&a.de();a.Nh=!0;a.eo=Date.now();a.Sj?(sk(a.Sj,"end",a.Ds,!1,a),a.Sj.play()):a.Ds()}}else jt(a)};it.prototype.de=function(){};var jt=function(a,b){if(!a.Nh||!a.dispatchEvent({type:"beforehide",target:b}))return!1;a.rd&&a.rd.Re();a.Nh=!1;a.bj?(sk(a.bj,"end",$a(a.qq,b),!1,a),a.bj.play()):a.qq(b);return!0};t=it.prototype;t.qq=function(a){this.ji=="toggle_display"?this.Qy?Uq(this.Br,0,this):this.Br():this.ji=="move_offscreen"&&(this.cb.style.top="-10000px");this.Ao(a)};t.Br=function(){this.cb.style.visibility="hidden";bl(this.cb,!1)};t.zo=function(){return this.dispatchEvent("beforeshow")};t.Ds=function(){this.dispatchEvent("show")};t.Ao=function(a){this.dispatchEvent({type:"hide",target:a})};t.gy=function(a){a=a.target;rg(this.cb,a)||lt(this,a)||this.Zp&&!rg(this.Zp,a)||Date.now()-this.eo<150||jt(this,a)};t.ey=function(a){a.keyCode==27&&jt(this,a.target)&&(a.preventDefault(),a.stopPropagation())};t.by=function(a){if(this.Vv){var b=dg(this.cb);if(typeof document.activeElement!="undefined"){if(a=b.activeElement,!a||rg(this.cb,a)||a.tagName=="BODY"||lt(this,a))return}else if(a.target!=b)return;Date.now()-this.eo<150||jt(this)}};var lt=function(a,b){return cd(a.Yp||[],function(c){return b===c||rg(c,b)})};it.prototype.ja=function(){it.Mc.ja.call(this);this.rd.dispose();bk(this.Sj);bk(this.bj);delete this.cb;delete this.rd;delete this.Yp};function mt(a,b){this.my=8;this.Ol=b||void 0;it.call(this,a)}ab(mt,it);mt.prototype.Td=function(){return this.Ol||null};mt.prototype.setPosition=function(a){this.Ol=a||void 0;this.isVisible()&&this.de()};mt.prototype.de=function(){if(this.Ol){var a=!this.isVisible()&&this.getType()!="move_offscreen",b=this.O();a&&(b.style.visibility="hidden",bl(b,!0));this.Ol.de(b,this.my,this.PB);a&&bl(b,!1)}};function nt(a,b,c){this.Ni=c||(a?eg(fg(document,a)):eg());mt.call(this,this.Ni.fn("DIV",{style:"position:absolute;display:none;"}));this.W=new S(1,1);this.hg=new Set;this.fh=null;a&&(a=fg(document,a),this.hg.add(a),tk(a,"mouseover",this.sr,!1,this),tk(a,"mouseout",this.al,!1,this),tk(a,"mousemove",this.rr,!1,this),tk(a,"focus",this.nr,!1,this),tk(a,"blur",this.al,!1,this));if(b!=null)if(a=this.O(),P(a!=null,"goog.dom.setTextContent expects a non-null value for node"),"textContent"in a)a.textContent= b;else if(a.nodeType==3)a.data=String(b);else if(a.firstChild&&a.firstChild.nodeType==3){for(;a.lastChild!=a.firstChild;)a.removeChild(P(a.lastChild));a.firstChild.data=String(b)}else pg(a),c=dg(a),a.appendChild(c.createTextNode(String(b)))}ab(nt,mt);var ot=[];t=nt.prototype;t.hc=null;t.className="goog-tooltip";t.Xo=500;t.Ar=0;t.Zq=function(){return this.Ni};t.detach=function(a){var b=this;a?(a=fg(document,a),pt(this,a),this.hg.delete(a)):(this.hg.forEach(function(c){pt(b,c)}),this.hg.clear())};var pt=function(a,b){Ak(b,"mouseover",a.sr,!1,a);Ak(b,"mouseout",a.al,!1,a);Ak(b,"mousemove",a.rr,!1,a);Ak(b,"focus",a.nr,!1,a);Ak(b,"blur",a.al,!1,a)};t=nt.prototype;t.To=function(a){var b=this.O();b&&qg(b);nt.Mc.To.call(this,a);a?(b=this.Ni.nb.body,b.insertBefore(a,b.lastChild),bk(this.fh),this.fh=new Zs(P(this.O())),dk(this,this.fh),tk(this.fh,"focusin",this.Fi,void 0,this),tk(this.fh,"focusout",this.jm,void 0,this)):(bk(this.fh),this.fh=null)};t.getState=function(){return this.Ff?this.isVisible()?4:1:this.aj?3:this.isVisible()?2:0};t.zo=function(){if(!it.prototype.zo.call(this))return!1;if(this.anchor)for(var a,b=0;a=ot[b];b++)rg(a.O(),this.anchor)||kt(a,!1);hd(ot,this)||ot.push(this);a=this.O();a.className=this.className;this.Fi();tk(a,"mouseover",this.yr,!1,this);tk(a,"mouseout",this.xr,!1,this);qt(this);return!0};t.Ao=function(){jd(ot,this);for(var a=this.O(),b,c=0;b=ot[c];c++)b.anchor&&rg(a,b.anchor)&&kt(b,!1);this.Gs&&this.Gs.jm();Ak(a,"mouseover",this.yr,!1,this);Ak(a,"mouseout",this.xr,!1,this);this.anchor=void 0;this.getState()==0&&(this.am=!1);it.prototype.Ao.call(this)};t.js=function(a,b){this.anchor==a&&this.hg.has(this.anchor)&&(this.am||!this.TB?(kt(this,!1),this.isVisible()||(this.anchor=a,this.setPosition(b||rt(this,0)),kt(this,!0))):this.anchor=void 0);this.Ff=void 0};t.Uq=function(){return this.hc};t.Mx=function(a){this.aj=void 0;if(a==this.anchor){a=this.Zq();var b=a.Uq();a=b&&this.O()&&a.contains(this.O(),b);this.hc!=null&&(this.hc==this.O()||this.hg.has(this.hc))||a||this.jq&&this.jq.hc||kt(this,!1)}};var st=function(a,b){var c=jg(a.Ni.nb);a.W.x=b.clientX+c.x;a.W.y=b.clientY+c.y};nt.prototype.sr=function(a){var b=tt(this,a.target);this.hc=b;this.Fi();b!=this.anchor&&(this.anchor=b,this.Ff||(this.Ff=Uq(Za(this.js,this,b,void 0),this.Xo)),ut(this),st(this,a))};var tt=function(a,b){try{for(;b&&!a.hg.has(b);)b=b.parentNode;return b}catch(c){return null}};nt.prototype.rr=function(a){st(this,a);this.am=!0};nt.prototype.nr=function(a){this.hc=a=tt(this,a.target);this.am=!0;if(this.anchor!=a){this.anchor=a;var b=rt(this,1);this.Fi();this.Ff||(this.Ff=Uq(Za(this.js,this,a,b),this.Xo));ut(this)}};var rt=function(a,b){return b==0?(a=a.W.clone(),new vt(a)):new wt(a.hc)},ut=function(a){if(a.anchor)for(var b,c=0;b=ot[c];c++)rg(b.O(),a.anchor)&&(b.jq=a,a.Gs=b)};nt.prototype.al=function(a){var b=tt(this,a.target),c=tt(this,a.relatedTarget);b!=c&&(b==this.hc&&(this.hc=null),qt(this),this.am=!1,!this.isVisible()||a.relatedTarget&&rg(this.O(),a.relatedTarget)?this.anchor=void 0:this.jm())};nt.prototype.yr=function(){var a=this.O();this.hc!=a&&(this.Fi(),this.hc=a)};nt.prototype.xr=function(a){var b=this.O();this.hc!=b||a.relatedTarget&&rg(b,a.relatedTarget)||(this.hc=null,this.jm())};var qt=function(a){a.Ff&&(Pa.clearTimeout(a.Ff),a.Ff=void 0)};nt.prototype.jm=function(){this.getState()==2&&(this.aj=Uq(Za(this.Mx,this,this.anchor),this.Ar))};nt.prototype.Fi=function(){this.aj&&(Pa.clearTimeout(this.aj),this.aj=void 0)};nt.prototype.ja=function(){kt(this,!1);qt(this);this.detach();this.O()&&qg(this.O());this.hc=null;delete this.Ni;nt.Mc.ja.call(this)};var vt=function(a,b){ht.call(this,a,b)};ab(vt,ht);vt.prototype.de=function(a,b,c){b=(a?dg(a):document).documentElement;b=Vk(b);c=c?new Z(c.top+10,c.right,c.bottom,c.left+10):new Z(10,0,0,10);et(this.H,a,8,c,b,9)&496&&et(this.H,a,8,c,b,5)};var wt=function(a){gt.call(this,a,5)};ab(wt,gt);wt.prototype.de=function(a,b,c){var d=new S(10,0);ft(this.element,this.rq,a,b,d,c,9)&496&&ft(this.element,4,a,1,d,c,5)};var xt=function(a){var b=this.tl=null,c=null;typeof a==="function"?b=a:c=a;this.Ka=b;this.element=c};xt.prototype.ci=function(a){this.tl=a;this.element&&tg(this.element,a)};xt.prototype.br=function(){return this.element?ug(this.element):this.tl};xt.prototype.O=function(){!this.element&&this.Ka&&(this.element=this.Ka(),this.tl!==null&&tg(this.element,this.tl));if(!this.element)throw Error("Failed to get element for DrawingGroup.");return this.element};var zt=function(a,b){ck.call(this);var c=this;this.container=a;this.Ye=b;this.Rh=null;this.height=this.width=0;this.Vi=zb(function(d,e,f){return yt(c,d,e,f)},{gt:function(d,e){var f=[d,e[0]];Td(e[1],function(g,h){f.push(g);f.push(h)});f.push(+e[2]);return"getTextSize_"+f.join("_")}})};u(zt,ck);var At=function(){var a=jl().nb.defaultView;a.__googleVisualizationAbstractRendererElementsCount__=a.__googleVisualizationAbstractRendererElementsCount__||0;var b="_ABSTRACT_RENDERER_ID_"+a.__googleVisualizationAbstractRendererElementsCount__;a.__googleVisualizationAbstractRendererElementsCount__=Number(a.__googleVisualizationAbstractRendererElementsCount__)+1;return b};t=zt.prototype;t.deleteContents=function(){for(var a=this.Rh.O(),b=a.childNodes,c=b.length;c>1;)a.removeChild(b[0]),c--;Bt(this,a)};t.flush=function(){};t.clear=function(){this.od()};t.od=function(){this.Rh=null};t.ja=function(){this.od();ck.prototype.ja.call(this)};t.ci=function(a,b){a&&(a instanceof xt?a.ci(b):tg(a,b))};t.br=function(a){return ug(a)};t.appendChild=function(a,b){if(b){if(b instanceof xt){if(!b.element)return;b=b.O()}a.O().appendChild(b)}};var Ct=function(a,b){for(b instanceof xt&&(b=b.O());b.firstChild;)Ct(a,b.firstChild);b.parentElement.removeChild(b)};zt.prototype.replaceChild=function(a,b,c){a=a.O();(c.parentElement||null)!==a?(Ct(this,c),a.appendChild(b),lb("oldChild should be a child of parent.")):a.replaceChild(b,c)};zt.prototype.Zh=function(a){if(a.element){var b=a.O();this.Kb.Zh(b);a.O()}};zt.prototype.Ka=function(a){var b=new xt(this.Bv.bind(this));a!=null&&a||b.O();return b};zt.prototype.te=function(a,b){for(var c=[],d=0;d0&&k>0){var p=we(m)-we(l);p>180?p-=360:p<=-180&&(p=360+p);var q=2*Math.PI*Math.min(h,k);Math.abs(p/360*q)<.1&& (p=(.1/q*360-Math.abs(p))*Math.sign(p)/2,l-=p,m+=p)}l=we(l);m=we(m);p=h*Math.cos((m-90)*Math.PI/180);q=k*Math.sin((m-90)*Math.PI/180);l=n?m-l:l-m;l<0&&(l+=360);f.push("A"+h+","+k+",0,"+(l>180?1:0)+","+(n?1:0)+","+(e+p)+","+(g+q));break;case "close":e.push("Z");break;default:throw Error("Unexpected segment.type "+f.type+".");}}a=Dt(this,"path");c.length>0&&a.setAttribute("d",c.join(""));Et(this,a,b);return a};var Gt=function(a,b,c,d,e,f,g){b=Ft(a,b,c,d,e,f);a.appendChild(g,b);return b},Ht=function(a,b,c,d){b=a.te(b,c);a.appendChild(d,b);return b},Jt=function(a,b,c,d,e,f,g,h,k,l){b=It(a,b,c,d,e,0,f,g,h,l);a.appendChild(k,b);return b},Kt=function(a,b,c,d,e,f,g,h,k,l){b=It(a,b,c,d,e,f,g,h,k);a.appendChild(l,b)};zt.prototype.Oj=function(){};zt.prototype.en=function(){return null};var Lt=Symbol("referencepoint");function Mt(a){return sg(a,function(b){return b[Lt]})};var Nt=function(a,b){zt.call(this,a,b);this.pp=[];this.Kb=eg(a);this.Eq=this.Kb.nb;this.ob=new Ws};u(Nt,zt);var Ot=function(a,b,c,d){b=new nt(b);var e=a.Kb.fn("DIV");c=c.split("\n");e.appendChild(a.Kb.createTextNode(c[0]));for(var f=1;f=Number(c)?a:a=b.indexOf("-",0)>-1?a+Od(" ",Number(c)-a.length):Od(" ",Number(c)-a.length)+a},f:function(a,b,c,d,e){d=a.toString();isNaN(e)||e==""||(d=parseFloat(a).toFixed(e));var f=Number(a)<0?"-":b.indexOf("+")>=0?"+":b.indexOf(" ")>=0?" ":"";Number(a)>=0&&(d=f+d);if(isNaN(c)||d.length>=Number(c))return d;d=isNaN(e)?Math.abs(Number(a)).toString():Math.abs(Number(a)).toFixed(e);a=Number(c)-d.length-f.length;return d=b.indexOf("-",0)>=0?f+d+Od(" ",a):f+Od(b.indexOf("0",0)>=0?"0":" ",a)+d},d:function(a,b,c,d,e,f,g,h){return Tt.f(parseInt(a,10),b,c,d,0,f,g,h)}};Tt.i=Tt.d;Tt.u=Tt.d;var Ut=function(a,b){Nt.call(this,a,b);this.qd=null;this.Kl={};this.In={};this.Vo={};this.Wd=!1;this.Me=Jd(Kd(),"google.visualization.graphics.SvgRenderer").Me;yt(this,"-._.-*^*-._.-*^*-._.-",{fontSize:8,eb:"Arial",bold:!1,Xd:!1});for(a=this.container.parentElement.parentElement;a;){if(a.getAttribute("dir")!=null){this.Wd=a.getAttribute("dir")==="rtl";break}a=a.parentElement}};u(Ut,Nt);var Bt=function(a,b){a.qd=Dt(a,"defs");var c=At();a.qd.setAttribute("id",c);a.Kl={};a.In={};a.Vo={};b.appendChild(a.qd)};Ut.prototype.getBoundingBox=function(a){if(a instanceof SVGGraphicsElement&&a.tagName.toLowerCase()!=="path"&&a.tagName.toLowerCase()!=="svg"){var b=a.getBBox();return b.y|b.x|b.height|b.width?new Z(b.y,b.x+b.width,b.y+b.height,b.x):Nt.prototype.getBoundingBox.call(this,a)}return Nt.prototype.getBoundingBox.call(this,a)};Ut.prototype.round=function(a){P(!isNaN(a));P(isFinite(a));return Math.round(100*a)/100};var Vt=function(a,b,c,d,e){P(!isNaN(b));P(!isNaN(c));P(!isNaN(d));P(isFinite(b));P(isFinite(c));P(isFinite(d));P(d>=0);var f=Dt(a,"circle");f.setAttribute("cx",b);f.setAttribute("cy",c);f.setAttribute("r",d);Et(a,f,e);return f},Ft=function(a,b,c,d,e,f){P(!isNaN(b));P(!isNaN(c));P(!isNaN(d));P(!isNaN(e));P(isFinite(b));P(isFinite(c));P(isFinite(d));P(isFinite(e));P(d>=0);P(e>=0);var g=Dt(a,"rect");g.setAttribute("x",b);g.setAttribute("y",c);g.setAttribute("width",d);g.setAttribute("height",e);Et(a,g,f);return g},It=function(a,b,c,d,e,f,g,h,k,l){var m=k.opacity!==void 0?k.opacity:1,n=new V({fill:k.color,fillOpacity:m});if(k.color&&k.color!=="none"&&k.fb&&k.fb!=="none"){var p=new V({fill:k.color,fillOpacity:m,stroke:k.fb,strokeOpacity:m,strokeWidth:k.wi});m=a.Ka();p=Wt(a,b,c,d,e,f,g,h,k,p,l);a.appendChild(m,p);p.setAttribute("aria-hidden","true");b=Wt(a,b,c,d,e,f,g,h,k,n,l);a.appendChild(m,b);return m.O()}return Wt(a,b,c,d,e,f,g,h,k,n,l)},Wt=function(a,b,c,d,e,f,g,h,k,l,m){P(!isNaN(c));P(!isNaN(d));P(!isNaN(e));P(!isNaN(f));P(isFinite(c));P(isFinite(d));P(isFinite(e));P(isFinite(f));e=Dt(a,"text");h=Op(0,k.fontSize,h);h=Pp(h.start,h.end,"end");h-=k.fontSize*.15;h=new ji(0,h);h.rotate(f*Math.PI/180);d=new ji(c,d);d.add(h);c=d.x;d=d.y;e.appendChild(a.Eq.createTextNode(b));switch(g){case "start":e.setAttribute("text-anchor","start");break;case "center":e.setAttribute("text-anchor","middle");break;case "end":e.setAttribute("text-anchor","end");break;default:lb('Invalid parallel alignment "'+g+'"')}e.setAttribute("x",String(c));e.setAttribute("y",String(d));e.setAttribute("font-family",k.eb);e.setAttribute("font-size",String(k.fontSize||0));k.bold&&e.setAttribute("font-weight","bold");k.Xd&&e.setAttribute("font-style","italic");k.ih&&e.setAttribute("text-decoration","underline");m&&e.setAttribute("direction","rtl");f!==0&&e.setAttribute("transform","rotate("+f+" "+c+" "+d+")");Et(a,e,l);return e};Ut.prototype.Bv=function(){return Dt(this,"g")};var Yt=function(a,b,c){var d=At(),e=Dt(a,"clipPath"),f=Dt(a,"rect");f.setAttribute("x",String(c.left));f.setAttribute("y",String(c.top));f.setAttribute("width",String(c.width));f.setAttribute("height",String(c.height));e.appendChild(f);e.setAttribute("id",d);P(a.qd!=null);a.qd.appendChild(e);a=b.O();a.setAttribute("clip-path",Xt(d));return a},Xt=function(a){var b="";of&&Ff==="9.0"||(b=window.location.href.split("#")[0]);return"url("+b+"#"+a+")"};Ut.prototype.fd=function(a,b){P(!isNaN(void 0));P(isFinite(void 0));a.setAttribute("stroke-width","undefined");b&&a.setAttribute("stroke",b)};var yt=function(a,b,c,d){var e=a.Ye;if(e.firstChild.nodeType===3)e.firstChild.data=b;else throw Error("Unexpected type of text node "+e.firstChild.nodeType);if(!document.contains(a.Ye)){var f=a.Me;f&&Ld(f,zd,"The text measurement div is missing.")}f=e.style;f.fontFamily=c.eb;f.fontSize=c.fontSize+"px";f.fontWeight=c.bold?"bold":"";f.fontStyle=c.Xd?"italic":"";f.display="block";if(d!=null){var g=St("rotate(%ddeg)",d);f.transform=g;f.transformOrigin="0 0"}g=e.clientWidth;e=e.clientHeight;f.display= "none";if(g===0&&b.trim().length>0){(e=a.Me)&&Ld(e,zd,"Unable to measure the text in the chart container. Most likely the chart container or one of its parents has style display:none.");e=document.getElementsByTagName("body")[0];if(a.Ye.parentElement!==e)return(f=a.Me)&&Ld(f,Ad,"Trying to measure text at the body element."),e.appendChild(a.Ye),yt(a,b,c,d);throw Error("Unable to measure the text bbox, even with div attached to the `body` element...");}return new Te(g,e)},Dt=function(a,b){return a.Eq.createElementNS("http://www.w3.org/2000/svg",b)},Et=function(a,b,c){Gg(c)?(b.setAttribute("stroke",c.stroke),b.setAttribute("stroke-width",c.strokeWidth),Gg(c)&&c.strokeOpacity>=1?b.removeAttribute("stroke-opacity"):b.setAttribute("stroke-opacity",c.strokeOpacity),c.oc!=="solid"?b.setAttribute("stroke-dasharray",Zt(c.oc,c.strokeWidth)):b.removeAttribute("stroke-dasharray")):(b.setAttribute("stroke","none"),b.setAttribute("stroke-width",0));Jg(c)&&c.fillOpacity>=1?b.removeAttribute("fill-opacity"):b.setAttribute("fill-opacity",c.fillOpacity);var d=c.radiusX;typeof d==="number"&&b.setAttribute("rx",d);d=c.radiusY;typeof d==="number"&&b.setAttribute("ry",d);var e=c.Pb,f=c.pattern;if(e){f=Jb(e,1).toString();d=a.In[f];if(!d){d=At();a.In[f]=d;f=Dt(a,"linearGradient");var g=e.x1,h=e.x2,k=e.y1,l=e.y2,m=e.Jd,n=e.Kd,p=1;if(e.Kg===0||e.Kg)p=e.Kg;var q=1;if(e.Lg===0||e.Lg)q=e.Lg;var r=e.jh?"objectBoundingBox":"userSpaceOnUse";f.setAttribute("id",d);f.setAttribute("x1",String(g));f.setAttribute("y1",String(k));f.setAttribute("x2",String(h));f.setAttribute("y2",String(l));f.setAttribute("gradientUnits",r);g="stop-color:"+m+"; stop-opacity:"+p;n="stop-color:"+n+"; stop-opacity:"+q;q=Dt(a,"stop");q.setAttribute("offset","0%");q.style.cssText=g;f.appendChild(q);e.Tg&&(e=Dt(a,"stop"),e.setAttribute("offset","49.99%"),e.style.cssText=g,f.appendChild(e),e=Dt(a,"stop"),e.setAttribute("offset","50%"),e.style.cssText=n,f.appendChild(e));e=Dt(a,"stop");e.setAttribute("offset","100%");e.style.cssText=n;f.appendChild(e);P(a.qd!=null);a.qd.appendChild(f)}b.setAttribute("fill",Xt(d))}else if(f){d=f.style+"_"+f.color+"_"+f.Qc;e=null;if(!(d in a.Kl)){n=f.style;switch(n){case "primarydiagonalstripes":e=Dt(a,"pattern");e.setAttribute("patternUnits","userSpaceOnUse");e.setAttribute("x","0");e.setAttribute("y","0");e.setAttribute("width","4");e.setAttribute("height","4");e.setAttribute("viewBox","0 0 4 4");n=Dt(a,"rect");n.setAttribute("x","0");n.setAttribute("y","0");n.setAttribute("width","4");n.setAttribute("height","4");n.setAttribute("fill",f.Qc);e.appendChild(n);n=Dt(a,"g");n.setAttribute("stroke",f.color);n.setAttribute("stroke-linecap","square");f=Dt(a,"line");f.setAttribute("x1","2");f.setAttribute("y1","0");f.setAttribute("x2","4");f.setAttribute("y2","2");f.setAttribute("stroke-width","2");n.appendChild(f);f=Dt(a,"line");f.setAttribute("x1","0");f.setAttribute("y1","2");f.setAttribute("x2","2");f.setAttribute("y2","4");f.setAttribute("stroke-width","2");n.appendChild(f);e.appendChild(n);break;case "secondarydiagonalstripes":e=Dt(a,"pattern");e.setAttribute("patternUnits","userSpaceOnUse");e.setAttribute("x","0");e.setAttribute("y","0");e.setAttribute("width","6");e.setAttribute("height","6");e.setAttribute("viewBox","0 0 4 4");n=Dt(a,"rect");n.setAttribute("x","0");n.setAttribute("y","0");n.setAttribute("width","4");n.setAttribute("height","4");n.setAttribute("fill",f.Qc);e.appendChild(n);n=Dt(a,"g");n.setAttribute("stroke",f.color);n.setAttribute("stroke-linecap","square");f=Dt(a,"line");f.setAttribute("x1","2");f.setAttribute("y1","0");f.setAttribute("x2","0");f.setAttribute("y2","2");f.setAttribute("stroke-width","2");n.appendChild(f);f=Dt(a,"line");f.setAttribute("x1","4");f.setAttribute("y1","2");f.setAttribute("x2","2");f.setAttribute("y2","4");f.setAttribute("stroke-width","2");n.appendChild(f);e.appendChild(n);break;default:P(!1,"Unsupported pattern style "+n)}f=At();e.setAttribute("id",f);P(a.qd!=null);a.qd.appendChild(e);a.Kl[d]=f}d=a.Kl[d];b.setAttribute("fill",Xt(d))}else b.setAttribute("fill",c.fill);c.Ef!=null&&(f=c.Ef,d=Jb(f,1).toString(),c=a.Vo[d],c||(c=At(),a.Vo[d]=c,d=Dt(a,"filter"),d.setAttribute("id",c),e=Dt(a,"feGaussianBlur"),e.setAttribute("in","SourceAlpha"),e.setAttribute("stdDeviation",String(f.Ab||0)),d.appendChild(e),e=Dt(a,"feOffset"),e.setAttribute("dx",String(f.Pt||0)),e.setAttribute("dy",String(f.St||0)),d.appendChild(e),f.opacity!=null&&(e=Dt(a,"feComponentTransfer"),n=Dt(a,"feFuncA"),n.setAttribute("type","linear"),n.setAttribute("slope",String(f.opacity)),e.appendChild(n),d.appendChild(e)),f=Dt(a,"feMerge"),e=Dt(a,"feMergeNode"),f.appendChild(e),e=Dt(a,"feMergeNode"),e.setAttribute("in","SourceGraphic"),f.appendChild(e),d.appendChild(f),P(a.qd!=null),a.qd.appendChild(d)),b.setAttribute("filter",Xt(c)))},Zt=function(a,b){if(Array.isArray(a))return a.join(",");switch(a){case "solid":return"0";case "dash":return String(4*b)+","+String(b);default:return Zt("solid",b)}};Ut.prototype.en=function(){var a="position:absolute; overflow:hidden;left:"+((this.Wd?1E4:-1E4)+"px; top:auto; width:1px; height:1px;"),b=document.createElement("div");b.setAttribute("aria-label","A tabular representation of the data in the chart.");b.setAttribute("style",a);this.container.appendChild(b);this.container.setAttribute("aria-label","A chart.");return b}; var $t=ua(["about:invalid#zClosurez"]),bu=au;function cu(a,b,c){if(a.nodeType!==1)return du;var d=b.toLowerCase();if(d==="innerhtml"||d==="innertext"||d==="textcontent"||d==="outerhtml")return d==="innerhtml"||d==="outerhtml"?eu("When Lit is running in high security mode, it can't be used to set "+b+". Use the SafeHTML directive instead."):eu("When Lit is running in high security mode, it can't be used to set "+b+". Instead you can bind a string directly as a child of the element."),function(){return Rc(Pc)};b=fu.get(a.tagName+" "+d);return b!== void 0?b:/^on/.test(d)&&c==="attribute"&&(a=a.tagName.includes("-")?HTMLElement.prototype:a,d in a)?function(e){throw Error("The "+d+" attribute looks like a string based event listener. These are insecure, and not supported in Lit's high security mode. Use an event binding instead, like this:\n@"+(d.slice(2)+"=${(event) => {"+e+"}}"));}:du} var gu=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,hu=mc(function(a){var b=Ha.apply(1,arguments);vc(a,b.length);if(b.length===0)return lc(a[0]);var c=a[0].toLowerCase();if(/^data:/.test(c))throw Error("Data URLs cannot have expressions in the template literal input.");if(/^https:\/\//.test(c)||/^\/\//.test(c)){var d=c.indexOf("//")+2;var e=c.indexOf("/",d);if(e<=d)throw Error("Can't interpolate data in a url's origin, Please make sure to fully specify the origin, terminated with '/'.");d=c.substring(d,e);if(!/^[0-9a-z.:-]+$/i.test(d))throw Error("The origin contains unsupported characters.");if(!/^[^:]*(:[0-9]+)?$/i.test(d))throw Error("Invalid port number.");if(!/(^|\.)[a-z][^.]*$/i.test(d))throw Error("The top-level domain must start with a letter.");d=!0}else d=!1;if(!d)if(/^\//.test(c))if(c==="/"||c.length>1&&c[1]!=="/"&&c[1]!=="\\")d=!0;else throw Error("The path start in the url is invalid.");else d=!1;if(!(d=d||RegExp("^[^:\\s\\\\/]+/").test(c)))if(/^about:blank/.test(c)){if(c!== "about:blank"&&!/^about:blank#/.test(c))throw Error("The about url is invalid.");d=!0}else d=!1;if(!d)throw Error("Trying to interpolate expressions in an unsupported url format.");c=a[0];for(d=0;d",Nu=document,Ou=function(a){return a===null||typeof a!= "object"&&typeof a!="function"||uu(a)},Pu=Array.isArray,Qu=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ru=/--\x3e/g,Su=/>/g,Tu=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),Uu=/'/g,Vu=/"/g,Wu=/^(?:script|style|textarea|title)$/i,Xu=function(a){var b=Ha.apply(1,arguments),c={};return c._$litType$=1,c.gd=a,c.values=b,c},Yu=Symbol.for?Symbol.for("lit-noChange"):Symbol("lit-noChange"),Zu=Symbol.for?Symbol.for("lit-nothing"):Symbol("lit-nothing"),$u=new WeakMap,av=Nu.createTreeWalker(Nu,129),Hu=bu;function bv(a,b){if(!Pu(a)||!a.hasOwnProperty("raw"))throw Error("Internal Error: expected template strings to be an array\n with a 'raw' field. Faking a template strings array by\n calling html or svg like an ordinary function is effectively\n the same as calling unsafeHtml and can lead to major security\n issues, e.g. opening your code up to XSS attacks.\n If you're using the html or svg tagged template functions normally\n and still seeing this error, please file a bug at\n https://github.com/lit/lit/issues/new?template=bug_report.md\n and include information about your build tooling, if any.".replace(/\n */g,"\n"));return Eu!==void 0?Eu.createHTML(b):b} var cv=function(a,b){var c=a.gd;var d=a._$litType$;this.ce=[];for(var e=a=0,f=c.length-1,g=this.ce,h,k=c.length-1,l=[],m=d===2?"":d===3?"":"",n=Qu,p=0;p"?(r=void 0,n=(r=h)!=null?r:Qu,r=-1):x[1]===void 0?r=-2:(r=n.lastIndex-x[2].length,v=x[1],n=x[3]===void 0?Tu:x[3]==='"'?Vu:Uu):n===Vu||n===Uu?n=Tu:n===Ru||n===Su?n=Qu:(n=Tu,h=void 0)}console.assert(r===-1||n===Tu||n===Uu||n===Vu,"unexpected parse state B");w=n===Tu&&c[p+1].startsWith("/>")?" ":"";m+=n===Qu?q+Mu:r>=0?(l.push(v),q.slice(0,r)+"$lit$"+q.slice(r))+Ku+w:q+Ku+(r===-2?p:w)}h=[bv(c,m+(c[k]||">")+(d===2?"":d===3?"":"")),l];h=G(h);k=h.next().value;h=h.next().value;this.gg=cv.createElement(k,b);av.currentNode=this.gg.content;if(d===2||d===3)b=this.gg.content.firstChild,b.replaceWith.apply(b,sa(b.childNodes));for(;(b=av.nextNode())!==null&&g.length0)){b.textContent=Du?Du.emptyScript:"";for(l=0;l" contains a duplicate "disabled" attribute. The error was detected in the following template: \n`'+c.join("${...}")+"`");wu&& wu({kind:"template prep",ip:this,GB:this.gg,ce:this.ce,gd:c})};cv.createElement=function(a){var b=Nu.createElement("template");b.innerHTML=a;return b};function hv(a,b,c,d){c=c===void 0?a:c;if(b===Yu)return b;var e,f=d!==void 0?(e=c.Op)==null?void 0:e[d]:c.Nu;e=Ou(b)?void 0:b._$litDirective$;var g;if(((g=f)==null?void 0:g.constructor)!==e){var h,k;(h=f)==null||(k=h._$notifyDirectiveConnectionChanged)==null||k.call(h,!1);e===void 0?f=void 0:(f=new e(a),f.zB(a,c,d));if(d!==void 0){var l,m;((m=(l=c).Op)!=null?m:l.Op=[])[d]=f}else c.Nu=f}f!==void 0&&(b=hv(a,f.BB(a,b.values),f,d));return b} var iv=function(a,b){this.oi=[];this.Gm=void 0;this.Hm=a;this.hd=b};iv.prototype.Pu=function(a){var b=this.Hm,c=b.gg.content;b=b.ce;var d,e=((d=a==null?void 0:a.HB)!=null?d:Nu).importNode(c,!0);av.currentNode=e;c=av.nextNode();for(var f=d=0,g=b[0];g!==void 0;){if(d===g.index){var h=void 0;g.type===2?h=new jv(c,c.nextSibling,this,a):g.type===1?h=new g.Kv(c,g.name,g.gd,this,a):g.type===6&&(h=new kv(c,this,a));this.oi.push(h);g=b[++f]}h=void 0;d!==((h=g)==null?void 0:h.index)&&(c=av.nextNode(),d++)}av.currentNode=Nu;return e};iv.prototype.Pp=function(a){for(var b=0,c=G(this.oi),d=c.next();!d.done;d=c.next())d=d.value,d!==void 0&&(wu&&wu({kind:"set part",part:d,value:a[b],aC:b,values:a,WB:this}),d.gd!==void 0?(d.je(a,d,b),b+=d.gd.length-2):d.je(a[b])),b++};ea.Object.defineProperties(iv.prototype,{parentNode:{configurable:!0,enumerable:!0,get:function(){return this.hd.parentNode}},Qf:{configurable:!0,enumerable:!0,get:function(){return this.hd.Qf}}});var jv=function(a,b,c,d){this.type=2;this.wa=Zu;this.Gm=void 0;this.jd=a;this.Pf=b;this.hd=c;this.options=d;var e;this.Ou=(e=d==null?void 0:d.isConnected)!=null?e:!0;this.ph=void 0};t=jv.prototype;t.je=function(a,b){if(this.parentNode===null)throw Error("This `ChildPart` has no `parentNode` and therefore cannot accept a value. This likely means the element containing the part was manipulated in an unsupported way outside of Lit's control such that the part's marker nodes were ejected from DOM. For example, setting the element's `innerHTML` or `textContent` can do this.");a=hv(this,a,b===void 0?this:b);if(Ou(a))a===Zu||a==null||a===""?(this.wa!==Zu&&(wu&&wu({kind:"commit nothing to child",start:this.jd,end:this.Pf,parent:this.hd,options:this.options}),this.nk()),this.wa=Zu):a!==this.wa&&a!==Yu&&this.Jm(a);else if(a._$litType$!==void 0)this.Ru(a);else if(a.nodeType!==void 0){var c;((c=this.options)==null?void 0:c.host)===a?(this.Jm("[probable mistake: rendered a template's host in itself (commonly caused by writing ${this} in a template]"),console.warn("Attempted to render the template host",a,"inside itself. This is almost always a mistake, and in dev mode ","we render some warning text. In production however, we'll ","render it, which will usually result in an error, and sometimes ","in the element disappearing from the DOM.")):this.Im(a)}else Pu(a)||typeof(a==null?void 0:a[Symbol.iterator])==="function"?this.Qu(a):this.Jm(a)};t.Lm=function(a){return Cu(Cu(this.jd).parentNode).insertBefore(a,this.Pf)};t.Im=function(a){if(this.wa!==a){this.nk();if(Hu!==Gu){var b,c=(b=this.jd.parentNode)==null?void 0:b.nodeName;if(c==="STYLE"||c==="SCRIPT")throw Error(c==="STYLE"?"Lit does not support binding inside style nodes. This is a security risk, as style injection attacks can exfiltrate data and spoof UIs. Consider instead using css`...` literals to compose styles, and do dynamic styling with css custom properties, ::parts, s, and by mutating the DOM rather than stylesheets.":"Lit does not support binding inside script nodes. This is a security risk, as it could allow arbitrary code execution.");}wu&&wu({kind:"commit node",start:this.jd,parent:this.hd,value:a,options:this.options});this.wa=this.Lm(a)}};t.Jm=function(a){if(this.wa!==Zu&&Ou(this.wa)){var b=Cu(this.jd).nextSibling;this.ph===void 0&&(this.ph=Hu(b,"data","property"));a=this.ph(a);wu&&wu({kind:"commit text",node:b,value:a,options:this.options});b.data=a}else b=Nu.createTextNode(""),this.Im(b),this.ph===void 0&&(this.ph=Hu(b,"data","property")),a=this.ph(a),wu&&wu({kind:"commit text",node:b,value:a,options:this.options}),b.data=a;this.wa=a};t.Ru=function(a){var b=a.values,c=a._$litType$;a=typeof c==="number"?this.Np(a):(c.gg===void 0&&(c.gg=cv.createElement(bv(c.mw,c.mw[0]),this.options)),c);var d;((d=this.wa)==null?void 0:d.Hm)===a?(wu&&wu({kind:"template updating",ip:a,instance:this.wa,ce:this.wa.oi,options:this.options,values:b}),this.wa.Pp(b)):(d=new iv(a,this),c=d.Pu(this.options),wu&&wu({kind:"template instantiated",ip:a,instance:d,ce:d.oi,options:this.options,ew:c,values:b}),d.Pp(b),wu&&wu({kind:"template instantiated and updated",ip:a,instance:d,ce:d.oi,options:this.options,ew:c,values:b}),this.Im(c),this.wa=d)};t.Np=function(a){var b=a.gd,c=$u.get(b);if(c===void 0){var d=b.join("\x00");c=Ju.get(d);c===void 0&&(c=new cv(a),Ju.set(d,c));$u.set(b,c)}return c};t.Qu=function(a){Pu(this.wa)||(this.wa=[],this.nk());var b=this.wa,c=0,d;a=G(a);for(var e=a.next();!e.done;e=a.next())e=e.value,c===b.length?b.push(d=new jv(this.Lm(Nu.createComment("")),this.Lm(Nu.createComment("")),this,this.options)):d=b[c],d.je(e),c++;c2||c[0]!==""||c[1]!==""?(this.wa=Array(c.length-1).fill(new String),this.gd=c):this.wa=Zu;this.oh=void 0};gv.prototype.je=function(a,b,c,d){b=b===void 0?this:b;var e=this.gd,f=!1;if(e===void 0){if(a=hv(this,a,b,0),f=!Ou(a)||a!==this.wa&&a!==Yu)this.wa=a}else{var g=a;a=e[0];var h;for(h=0;h` has a `@"+b+"=...` listener with invalid content. Event listeners in templates must have exactly one expression and no surrounding text.");};u(fv,gv);fv.prototype.je=function(a,b){var c;a=(c=hv(this,a,b===void 0?this:b,0))!=null?c:Zu;if(a!==Yu){b=this.wa;c=a===Zu&&b!==Zu||a.capture!==b.capture||a.once!==b.once||a.passive!==b.passive;var d=a!==Zu&&(b===Zu||c);wu&&wu({kind:"commit event listener",element:this.element,name:this.name,value:a,options:this.options,removeListener:c,addListener:d,RB:b});c&&this.element.removeEventListener(this.name,this,b);d&&this.element.addEventListener(this.name,this,a);this.wa=a}};fv.prototype.handleEvent=function(a){if(typeof this.wa==="function"){var b,c;this.wa.call((c=(b=this.options)==null?void 0:b.host)!=null?c:this.element,a)}else this.wa.handleEvent(a)};var kv=function(a,b,c){this.element=a;this.type=6;this.Gm=void 0;this.hd=b;this.options=c};kv.prototype.je=function(a){wu&&wu({kind:"commit to element binding",element:this.element,value:a,options:this.options});hv(this,a)};ea.Object.defineProperties(kv.prototype,{Qf:{configurable:!0,enumerable:!0,get:function(){return this.hd.Qf}}});var lv;(lv=globalThis.litHtmlPolyfillSupportDevMode)==null||lv(cv,jv);var mv=function(){var a;((a=Pa.litHtmlVersions)!=null?a:Pa.litHtmlVersions=[]).push("3.3.2");Pa.litHtmlVersions.length>1&&Promise.resolve().then(function(){yu("multiple-versions","Multiple versions of Lit loaded. Loading multiple versions is not recommended.")})},nv=function(){mv();var a=function(b,c,d){if(c==null)throw new TypeError("The container to render into may not be "+c);var e=xu++,f,g=(f=d==null?void 0:d.qy)!=null?f:c;f=g._$litPart$;wu&&wu({kind:"begin render",id:e,value:b,container:c,options:d,part:f});if(f===void 0){var h;f=(h=d==null?void 0:d.qy)!=null?h:null;g._$litPart$=f=new jv(c.insertBefore(Nu.createComment(""),f),f,void 0,d!=null?d:{})}f.je(b);wu&&wu({kind:"end render",id:e,value:b,container:c,options:d,part:f});return f};a.CB=Iu;return a}();var ov=ua(['