From 713b3df29e7a819d3b6a97d410e529edddc53ece Mon Sep 17 00:00:00 2001
From: Richard Czechowski
"+o+" → "+i+": "+r(e.value)+"
\n "}};looker.plugins.visualizations.add(o)},3:function(t,n,e){"use strict";e.r(n);var r=e(0),i=Array.prototype.slice,u=function(t){return t},o=1,a=2,c=3,f=4,s=1e-6;function l(t){return"translate("+(t+.5)+",0)"}function h(t){return"translate(0,"+(t+.5)+")"}function d(){return!this.__axis}function p(t,n){var e=[],r=null,p=null,v=6,g=6,y=3,_=t===o||t===f?-1:1,m=t===f||t===a?"x":"y",x=t===o||t===c?l:h;function b(i){var l=null==r?n.ticks?n.ticks.apply(n,e):n.domain():r,h=null==p?n.tickFormat?n.tickFormat.apply(n,e):u:p,b=Math.max(v,0)+y,w=n.range(),M=+w[0]+.5,T=+w[w.length-1]+.5,k=(n.bandwidth?function(t){var n=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(n=Math.round(n)),function(e){return+t(e)+n}}:function(t){return function(n){return+t(n)}})(n.copy()),S=i.selection?i.selection():i,N=S.selectAll(".domain").data([null]),E=S.selectAll(".tick").data(l,n).order(),A=E.exit(),C=E.enter().append("g").attr("class","tick"),z=E.select("line"),P=E.select("text");N=N.merge(N.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),E=E.merge(C),z=z.merge(C.append("line").attr("stroke","#000").attr(m+"2",_*v)),P=P.merge(C.append("text").attr("fill","#000").attr(m,_*b).attr("dy",t===o?"0em":t===c?"0.71em":"0.32em")),i!==S&&(N=N.transition(i),E=E.transition(i),z=z.transition(i),P=P.transition(i),A=A.transition(i).attr("opacity",s).attr("transform",(function(t){return isFinite(t=k(t))?x(t):this.getAttribute("transform")})),C.attr("opacity",s).attr("transform",(function(t){var n=this.parentNode.__axis;return x(n&&isFinite(n=n(t))?n:k(t))}))),A.remove(),N.attr("d",t===f||t==a?"M"+_*g+","+M+"H0.5V"+T+"H"+_*g:"M"+M+","+_*g+"V0.5H"+T+"V"+_*g),E.attr("opacity",1).attr("transform",(function(t){return x(k(t))})),z.attr(m+"2",_*v),P.attr(m,_*b).text(h),S.filter(d).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===a?"start":t===f?"end":"middle"),S.each((function(){this.__axis=k}))}return b.scale=function(t){return arguments.length?(n=t,b):n},b.ticks=function(){return e=i.call(arguments),b},b.tickArguments=function(t){return arguments.length?(e=null==t?[]:i.call(t),b):e.slice()},b.tickValues=function(t){return arguments.length?(r=null==t?null:i.call(t),b):r&&r.slice()},b.tickFormat=function(t){return arguments.length?(p=t,b):p},b.tickSize=function(t){return arguments.length?(v=g=+t,b):v},b.tickSizeInner=function(t){return arguments.length?(v=+t,b):v},b.tickSizeOuter=function(t){return arguments.length?(g=+t,b):g},b.tickPadding=function(t){return arguments.length?(y=+t,b):y},b}function v(t){return p(o,t)}function g(t){return p(a,t)}function y(t){return p(c,t)}function _(t){return p(f,t)}var m={value:function(){}};function x(){for(var t,n=0,e=arguments.length,r={};n>>1;f[v] f)break;g.push(h)}}else for(;d =1;--l)if(!((h=s*l) >>1;f[v] f)break;g.push(h)}}else for(;d =1;--l)if(!((h=s*l)0){if(u>l)return;u>s&&(s=u)}if(u=r-c,h||!(u<0)){if(u/=h,h<0){if(u>l)return;u>s&&(s=u)}else if(h>0){if(u0)){if(u/=d,d<0){if(u0){if(u>l)return;u>s&&(s=u)}if(u=i-f,d||!(u<0)){if(u/=d,d<0){if(u>l)return;u>s&&(s=u)}else if(d>0){if(u0||l<1)||(s>0&&(t[0]=[c+s*h,f+s*d]),l<1&&(t[1]=[c+l*h,f+l*d]),!0)}}}}}function qg(t,n,e,r,i){var u=t[1];if(u)return!0;var o,a,c=t[0],f=t.left,s=t.right,l=f[0],h=f[1],d=s[0],p=s[1],v=(l+d)/2,g=(h+p)/2;if(p===h){if(vr?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>u?(u+o)/2:Math.min(0,u)||Math.max(0,o))}var _y=function(){var t,n,e=hy,r=dy,i=yy,u=vy,o=gy,a=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],f=250,s=pe,l=[],h=T("start","zoom","end"),d=500,p=150,v=0;function g(t){t.property("__zoom",py).on("wheel.zoom",M).on("mousedown.zoom",k).on("dblclick.zoom",S).filter(o).on("touchstart.zoom",N).on("touchmove.zoom",E).on("touchend.zoom touchcancel.zoom",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(t,n){return(n=Math.max(a[0],Math.min(a[1],n)))===t.k?t:new ay(n,t.x,t.y)}function _(t,n,e){var r=n[0]-e[0]*t.k,i=n[1]-e[1]*t.k;return r===t.x&&i===t.y?t:new ay(t.k,r,i)}function m(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function x(t,n,e){t.on("start.zoom",(function(){b(this,arguments).start()})).on("interrupt.zoom end.zoom",(function(){b(this,arguments).end()})).tween("zoom",(function(){var t=arguments,i=b(this,t),u=r.apply(this,t),o=e||m(u),a=Math.max(u[1][0]-u[0][0],u[1][1]-u[0][1]),c=this.__zoom,f="function"==typeof n?n.apply(this,t):n,l=s(c.invert(o).concat(a/c.k),f.invert(o).concat(a/f.k));return function(t){if(1===t)t=f;else{var n=l(t),e=a/n[2];t=new ay(e,o[0]-n[0]*e,o[1]-n[1]*e)}i.zoom(null,t)}}))}function b(t,n){for(var e,r=0,i=l.length;rv}t.zoom("mouse",i(_(t.that.__zoom,t.mouse[0]=Mt(t.that),t.mouse[1]),t.extent,c))}),!0).on("mouseup.zoom",(function(){r.on("mousemove.zoom mouseup.zoom",null),Ct(ut.view,t.moved),ly(),t.end()}),!0),u=Mt(this),o=ut.clientX,a=ut.clientY;At(ut.view),sy(),t.mouse=[u,this.__zoom.invert(u)],or(this),t.start()}}function S(){if(e.apply(this,arguments)){var t=this.__zoom,n=Mt(this),u=t.invert(n),o=t.k*(ut.shiftKey?.5:2),a=i(_(y(t,o),n,u),r.apply(this,arguments),c);ly(),f>0?gt(this).transition().duration(f).call(x,a,n):gt(this).call(g.transform,a)}}function N(){if(e.apply(this,arguments)){var n,r,i,u,o=b(this,arguments),a=ut.changedTouches,c=a.length;for(sy(),r=0;r=0&&(t=t.slice(0,n)),!t||"start"===t}))}(n)?rr:ir;return function(){var o=u(this,t),a=o.on;a!==r&&(i=(r=a).copy()).on(n,e),o.on=i}}(e,t,n))},attr:function(t,n){var e=N(t),r="transform"===e?le:cr;return this.attrTween(t,"function"==typeof n?(e.local?function(t,n,e){var r,i,u;return function(){var o,a=e(this);if(null!=a)return(o=this.getAttributeNS(t.space,t.local))===a?null:o===r&&a===i?u:u=n(r=o,i=a);this.removeAttributeNS(t.space,t.local)}}:function(t,n,e){var r,i,u;return function(){var o,a=e(this);if(null!=a)return(o=this.getAttribute(t))===a?null:o===r&&a===i?u:u=n(r=o,i=a);this.removeAttribute(t)}})(e,r,ar(this,"attr."+t,n)):null==n?(e.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(e):(e.local?function(t,n,e){var r,i;return function(){var u=this.getAttributeNS(t.space,t.local);return u===e?null:u===r?i:i=n(r=u,e)}}:function(t,n,e){var r,i;return function(){var u=this.getAttribute(t);return u===e?null:u===r?i:i=n(r=u,e)}})(e,r,n+""))},attrTween:function(t,n){var e="attr."+t;if(arguments.length<2)return(e=this.tween(e))&&e._value;if(null==n)return this.tween(e,null);if("function"!=typeof n)throw new Error;var r=N(t);return this.tween(e,(r.local?function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttributeNS(t.space,t.local,r(n))}}return e._value=n,e}:function(t,n){function e(){var e=this,r=n.apply(e,arguments);return r&&function(n){e.setAttribute(t,r(n))}}return e._value=n,e})(r,n))},style:function(t,n,e){var r="transform"==(t+="")?se:cr;return null==n?this.styleTween(t,function(t,n){var e,r,i;return function(){var u=H(this,t),o=(this.style.removeProperty(t),H(this,t));return u===o?null:u===e&&o===r?i:i=n(e=u,r=o)}}(t,r)).on("end.style."+t,function(t){return function(){this.style.removeProperty(t)}}(t)):this.styleTween(t,"function"==typeof n?function(t,n,e){var r,i,u;return function(){var o=H(this,t),a=e(this);return null==a&&(this.style.removeProperty(t),a=H(this,t)),o===a?null:o===r&&a===i?u:u=n(r=o,i=a)}}(t,r,ar(this,"style."+t,n)):function(t,n,e){var r,i;return function(){var u=H(this,t);return u===e?null:u===r?i:i=n(r=u,e)}}(t,r,n+""),e)},styleTween:function(t,n,e){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==n)return this.tween(r,null);if("function"!=typeof n)throw new Error;return this.tween(r,function(t,n,e){function r(){var r=this,i=n.apply(r,arguments);return i&&function(n){r.style.setProperty(t,i(n),e)}}return r._value=n,r}(t,n,null==e?"":e))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var n=t(this);this.textContent=null==n?"":n}}(ar(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},remove:function(){return this.on("end.remove",(t=this._id,function(){var n=this.parentNode;for(var e in this.__transition)if(+e!==t)return;n&&n.removeChild(this)}));var t},tween:function(t,n){var e=this._id;if(t+="",arguments.length<2){for(var r,i=ur(this.node(),e).tween,u=0,o=i.length;u =y)<<1|t>=g)&&(c=p[p.length-1],p[p.length-1]=p[p.length-1-f],p[p.length-1-f]=c)}else{var _=t-+this._x.call(null,v.data),m=n-+this._y.call(null,v.data),x=_*_+m*m;if(x1?(f.on(t,e),n):f.on(t)}}},Lu=function(){var t,n,e,r,i=du(-30),u=1,o=1/0,a=.81;function c(r){var i,u=t.length,o=mu(t,Au,Cu).visitAfter(s);for(e=r,i=0;i=o)){(t.data!==n||t.next)&&(0===s&&(d+=(s=pu())*s),0===l&&(d+=(l=pu())*l),d1?r[0]+r.slice(2):r,+t.slice(e+1)]},Iu=function(t){return(t=ju(Math.abs(t)))?t[1]:NaN},Fu=function(t,n){var e=ju(t,n);if(!e)return t+"";var r=e[0],i=e[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},Yu={"":function(t,n){t:for(var e,r=(t=t.toPrecision(n)).length,i=1,u=-1;i