text: /* Copyright 2008-9 Google Inc. All Rights Reserved. */ (function(){var k,m=this,p=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
  else if("function"==b&&"undefined"==typeof a.call)return"object";return b},q=function(a){return"string"==typeof a},r=function(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}},aa=Date.now||function(){return+new Date},t=function(a,b){var c=a.split("."),e=m;c[0]in e||!e.execScript||e.execScript("var "+c[0]);for(var d;c.length&&(d=c.shift());)c.length||void 0===b?e=e[d]?e[d]:e[d]={}:e[d]=b},u=function(a,b){function c(){}
  c.prototype=b.prototype;a.w=b.prototype;a.prototype=new c;a.C=function(a,c,f){for(var g=Array(arguments.length-2),h=2;h<arguments.length;h++)g[h-2]=arguments[h];return b.prototype[c].apply(a,g)}};var w=function(a){if(Error.captureStackTrace)Error.captureStackTrace(this,w);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))};u(w,Error);var ba=function(a,b){for(var c=a.split("%s"),e="",d=Array.prototype.slice.call(arguments,1);d.length&&1<c.length;)e+=c.shift()+d.shift();return e+c.join("%s")},x=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")},ca=String.prototype.repeat?function(a,b){return a.repeat(b)}:function(a,b){return Array(b+1).join(a)},y=function(a){a=String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return ca("0",Math.max(0,2-b))+a},z=function(a,b){return a<b?
  -1:a>b?1:0};var B=function(a,b){b.unshift(a);w.call(this,ba.apply(null,b));b.shift()};u(B,w);var C=function(a,b,c){if(!a){var e="Assertion failed";if(b)var e=e+(": "+b),d=Array.prototype.slice.call(arguments,2);throw new B(""+e,d||[]);}};var D=Array.prototype.indexOf?function(a,b,c){C(null!=a.length);return Array.prototype.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(q(a))return q(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1},da=Array.prototype.forEach?function(a,b,c){C(null!=a.length);Array.prototype.forEach.call(a,b,c)}:function(a,b,c){for(var e=a.length,d=q(a)?a.split(""):a,f=0;f<e;f++)f in d&&b.call(c,d[f],f,a)},ea=Array.prototype.filter?function(a,
  b,c){C(null!=a.length);return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var e=a.length,d=[],f=0,g=q(a)?a.split(""):a,h=0;h<e;h++)if(h in g){var v=g[h];b.call(c,v,h,a)&&(d[f++]=v)}return d},fa=function(a){var b=a.length;if(0<b){for(var c=Array(b),e=0;e<b;e++)c[e]=a[e];return c}return[]},E=function(a,b,c){C(null!=a.length);return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)};var F;a:{var ga=m.navigator;if(ga){var ha=ga.userAgent;if(ha){F=ha;break a}}F=""};var ia=-1!=F.indexOf("Opera")||-1!=F.indexOf("OPR"),G=-1!=F.indexOf("Trident")||-1!=F.indexOf("MSIE"),ja=-1!=F.indexOf("Edge"),H=-1!=F.indexOf("Gecko")&&!(-1!=F.toLowerCase().indexOf("webkit")&&-1==F.indexOf("Edge"))&&!(-1!=F.indexOf("Trident")||-1!=F.indexOf("MSIE"))&&-1==F.indexOf("Edge"),I=-1!=F.toLowerCase().indexOf("webkit")&&-1==F.indexOf("Edge"),ka=function(){var a=m.document;return a?a.documentMode:void 0},J;
  a:{var K="",L=function(){var a=F;if(H)return/rv\:([^\);]+)(\)|;)/.exec(a);if(ja)return/Edge\/([\d\.]+)/.exec(a);if(G)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(I)return/WebKit\/(\S+)/.exec(a);if(ia)return/(?:Version)[ \/]?(\S+)/.exec(a)}();L&&(K=L?L[1]:"");if(G){var M=ka();if(null!=M&&M>parseFloat(K)){J=String(M);break a}}J=K}
  var la=J,ma={},N=function(a){var b;if(!(b=ma[a])){b=0;for(var c=x(String(la)).split("."),e=x(String(a)).split("."),d=Math.max(c.length,e.length),f=0;0==b&&f<d;f++){var g=c[f]||"",h=e[f]||"",v=RegExp("(\\d*)(\\D*)","g"),n=RegExp("(\\d*)(\\D*)","g");do{var l=v.exec(g)||["","",""],A=n.exec(h)||["","",""];if(0==l[0].length&&0==A[0].length)break;b=z(0==l[1].length?0:parseInt(l[1],10),0==A[1].length?0:parseInt(A[1],10))||z(0==l[2].length,0==A[2].length)||z(l[2],A[2])}while(0==b)}b=ma[a]=0<=b}return b},
  na=m.document,oa=na&&G?ka()||("CSS1Compat"==na.compatMode?parseInt(la,10):5):void 0;!H&&!G||G&&9<=Number(oa)||H&&N("1.9.1");G&&N("9");var O=function(a,b,c){var e=document;c=c||e;var d=a&&"*"!=a?a.toUpperCase():"";if(c.querySelectorAll&&c.querySelector&&(d||b))return c.querySelectorAll(d+(b?"."+b:""));if(b&&c.getElementsByClassName){a=c.getElementsByClassName(b);if(d){c={};for(var f=e=0,g;g=a[f];f++)d==g.nodeName&&(c[e++]=g);c.length=e;return c}return a}a=c.getElementsByTagName(d||"*");if(b){c={};for(f=e=0;g=a[f];f++){var d=g.className,h;if(h="function"==typeof d.split)h=0<=D(d.split(/\s+/),b);h&&(c[e++]=g)}c.length=e;return c}return a};var pa=function(a){a=a.className;return q(a)&&a.match(/\S+/g)||[]},qa=function(a,b){for(var c=pa(a),e=E(arguments,1),d=c,f=0;f<e.length;f++)0<=D(d,e[f])||d.push(e[f]);c=c.join(" ");a.className=c},sa=function(a,b){var c=pa(a),e=E(arguments,1),c=ra(c,e).join(" ");a.className=c},ra=function(a,b){return ea(a,function(a){return!(0<=D(b,a))})};var P=function(a){P[" "](a);return a};P[" "]=function(){};var ta=!G||9<=Number(oa),ua=G&&!N("9");!I||N("528");H&&N("1.9b")||G&&N("8")||ia&&N("9.5")||I&&N("528");H&&!N("8")||G&&N("9");var Q=function(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1};Q.prototype.preventDefault=function(){this.defaultPrevented=!0};var R=function(a,b){Q.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.button=this.screenY=this.screenX=this.clientY=this.clientX=this.offsetY=this.offsetX=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.l=this.state=null;if(a){var c=this.type=a.type,e=a.changedTouches?a.changedTouches[0]:null;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(H){var f;a:{try{P(d.nodeName);f=!0;break a}catch(g){}f=
  !1}f||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;null===e?(this.offsetX=I||void 0!==a.offsetX?a.offsetX:a.layerX,this.offsetY=I||void 0!==a.offsetY?a.offsetY:a.layerY,this.clientX=void 0!==a.clientX?a.clientX:a.pageX,this.clientY=void 0!==a.clientY?a.clientY:a.pageY,this.screenX=a.screenX||0,this.screenY=a.screenY||0):(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,
  this.screenY=e.screenY||0);this.button=a.button;this.keyCode=a.keyCode||0;this.charCode=a.charCode||("keypress"==c?a.keyCode:0);this.ctrlKey=a.ctrlKey;this.altKey=a.altKey;this.shiftKey=a.shiftKey;this.metaKey=a.metaKey;this.state=a.state;this.l=a;a.defaultPrevented&&this.preventDefault()}};u(R,Q);
  R.prototype.preventDefault=function(){R.w.preventDefault.call(this);var a=this.l;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,ua)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};var va="closure_listenable_"+(1E6*Math.random()|0),wa=0;var xa=function(a,b,c,e,d){this.listener=a;this.f=null;this.src=b;this.type=c;this.h=!!e;this.i=d;this.key=++wa;this.c=this.g=!1},ya=function(a){a.c=!0;a.listener=null;a.f=null;a.src=null;a.i=null};var S=function(a){this.src=a;this.b={};this.j=0};S.prototype.add=function(a,b,c,e,d){var f=a.toString();a=this.b[f];a||(a=this.b[f]=[],this.j++);var g;a:{for(g=0;g<a.length;++g){var h=a[g];if(!h.c&&h.listener==b&&h.h==!!e&&h.i==d)break a}g=-1}-1<g?(b=a[g],c||(b.g=!1)):(b=new xa(b,this.src,f,!!e,d),b.g=c,a.push(b));return b};
  var za=function(a,b){var c=b.type;if(c in a.b){var e=a.b[c],d=D(e,b),f;if(f=0<=d)C(null!=e.length),Array.prototype.splice.call(e,d,1);f&&(ya(b),0==a.b[c].length&&(delete a.b[c],a.j--))}};var T="closure_lm_"+(1E6*Math.random()|0),U={},Aa=0,Ca=function(){var a=Ba,b=ta?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b},Da=function(a,b,c,e,d){if("array"==p(b))for(var f=0;f<b.length;f++)Da(a,b[f],c,e,d);else if(c=Ea(c),a&&a[va])a.F(b,c,e,d);else{if(!b)throw Error("Invalid event type");var f=!!e,g=V(a);g||(a[T]=g=new S(a));c=g.add(b,c,!0,e,d);if(!c.f){e=Ca();c.f=e;e.src=a;e.listener=c;if(a.addEventListener)a.addEventListener(b.toString(),
  e,f);else if(a.attachEvent)a.attachEvent(Fa(b.toString()),e);else throw Error("addEventListener and attachEvent are unavailable.");Aa++}}},Fa=function(a){return a in U?U[a]:U[a]="on"+a},Ha=function(a,b,c,e){var d=!0;if(a=V(a))if(b=a.b[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var f=b[a];f&&f.h==c&&!f.c&&(f=Ga(f,e),d=d&&!1!==f)}return d},Ga=function(a,b){var c=a.listener,e=a.i||a.src;if(a.g&&"number"!=typeof a&&a&&!a.c){var d=a.src;if(d&&d[va])za(d.D,a);else{var f=a.type,g=a.f;d.removeEventListener?
  d.removeEventListener(f,g,a.h):d.detachEvent&&d.detachEvent(Fa(f),g);Aa--;(f=V(d))?(za(f,a),0==f.j&&(f.src=null,d[T]=null)):ya(a)}}return c.call(e,b)},Ba=function(a,b){if(a.c)return!0;if(!ta){var c;if(!(c=b))a:{c=["window","event"];for(var e=m,d;d=c.shift();)if(null!=e[d])e=e[d];else{c=null;break a}c=e}d=c;c=new R(d,this);e=!0;if(!(0>d.keyCode||void 0!=d.returnValue)){a:{var f=!1;if(0==d.keyCode)try{d.keyCode=-1;break a}catch(v){f=!0}if(f||void 0==d.returnValue)d.returnValue=!0}d=[];for(f=c.currentTarget;f;f=
  f.parentNode)d.push(f);for(var f=a.type,g=d.length-1;!c.o&&0<=g;g--){c.currentTarget=d[g];var h=Ha(d[g],f,!0,c),e=e&&h}for(g=0;!c.o&&g<d.length;g++)c.currentTarget=d[g],h=Ha(d[g],f,!1,c),e=e&&h}return e}return Ga(a,new R(b,this))},V=function(a){a=a[T];return a instanceof S?a:null},W="__closure_events_fn_"+(1E9*Math.random()>>>0),Ea=function(a){C(a,"Listener can not be null.");if("function"==p(a))return a;C(a.handleEvent,"An object listener must have handleEvent method.");a[W]||(a[W]=function(b){return a.handleEvent(b)});
  return a[W]};var Y=function(a,b,c){"number"==typeof a?(this.a=Ia(a,b||0,c||1),X(this,c||1)):(b=typeof a,"object"==b&&null!=a||"function"==b?(this.a=Ia(a.getFullYear(),a.getMonth(),a.getDate()),X(this,a.getDate())):(this.a=new Date(aa()),a=this.a.getDate(),this.a.setHours(0),this.a.setMinutes(0),this.a.setSeconds(0),this.a.setMilliseconds(0),X(this,a)))},Ia=function(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b};k=Y.prototype;k.getFullYear=function(){return this.a.getFullYear()};
  k.getYear=function(){return this.getFullYear()};k.getMonth=function(){return this.a.getMonth()};k.getDate=function(){return this.a.getDate()};k.getTime=function(){return this.a.getTime()};k.getUTCHours=function(){return this.a.getUTCHours()};k.setFullYear=function(a){this.a.setFullYear(a)};k.setMonth=function(a){this.a.setMonth(a)};k.setDate=function(a){this.a.setDate(a)};
  k.add=function(a){if(a.B||a.v){var b=this.getMonth()+a.v+12*a.B,c=this.getYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var e;a:{switch(b){case 1:e=0!=c%4||0==c%100&&0!=c%400?28:29;break a;case 5:case 8:case 10:case 3:e=30;break a}e=31}e=Math.min(e,this.getDate());this.setDate(1);this.setFullYear(c);this.setMonth(b);this.setDate(e)}a.s&&(b=new Date(this.getYear(),this.getMonth(),this.getDate(),12),a=new Date(b.getTime()+864E5*a.s),this.setDate(1),this.setFullYear(a.getFullYear()),this.setMonth(a.getMonth()),
  this.setDate(a.getDate()),X(this,a.getDate()))};k.A=function(){return[this.getFullYear(),y(this.getMonth()+1),y(this.getDate())].join("")+""};k.toString=function(){return this.A()};var X=function(a,b){if(a.getDate()!=b){var c=a.getDate()<b?1:-1;a.a.setUTCHours(a.a.getUTCHours()+c)}};Y.prototype.valueOf=function(){return this.a.valueOf()};var Z=function(){};Z.m=function(){Z.u||(Z.u=new Z)};Z.m();new Y(0,0,1);new Y(9999,11,31);G||ja||I&&N("525");Z.m();t("ae.init",function(){Ja();Ka();Da(window,"load",function(){});La()});
  var Ja=function(){var a;if(a=q("ae-content")?document.getElementById("ae-content"):"ae-content"){a=O("table","ae-table-striped",a);for(var b=0,c;c=a[b];b++){c=O("tbody",null,c);for(var e=0,d;d=c[e];e++){d=O("tr",null,d);for(var f=0,g;g=d[f];f++)f%2&&qa(g,"ae-even")}}}},Ka=function(){var a=O(null,"ae-noscript",void 0);da(fa(a),function(a){sa(a,"ae-noscript")})},La=function(){m._gaq=m._gaq||[];m._gaq.push(function(){m._gaq._createAsyncTracker("UA-3739047-3","ae")._trackPageview()});(function(){var a=
  document.createElement("script");a.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";a.setAttribute("async","true");document.documentElement.firstChild.appendChild(a)})()};t("ae.trackPageView",function(){m._gaq&&m._gaq._getAsyncTracker("ae")._trackPageview()});var Na=function(a){if(void 0==a||null==a||0==a.length)return 0;a=Math.max.apply(Math,a);return Ma(a)},Ma=function(a){var b=5;2>b&&(b=2);--b;return Math.ceil(a/b)*b},Oa=function(a,b,c){a=a.getSelection();1==a.length&&(a=a[0],null!=a.row&&(null!=b.starttime&&(c+="&starttime="+b.starttime),null!=b.endtime&&(c+="&endtime="+b.endtime),null!=b.latency_lower&&(c+="&latency_lower="+b.latency_lower),null!=b.latency_upper&&(c+="&latency_upper="+b.latency_upper),b=c+"&detail="+a.row,window.location.href=b))},
  Pa=function(a,b,c,e,d){var f=new google.visualization.DataTable;f.addColumn("string","");f.addColumn("number","");f.addColumn({type:"string",role:"tooltip"});for(var g=0;g<b.length;g++)f.addRow(["",b[g],c[g]]);c=Math.max(10*b.length,200);b=Na(b);a=new google.visualization.ColumnChart(document.getElementById("rpctime-"+a));a.draw(f,{height:100,width:c,legend:"none",chartArea:{left:40},fontSize:11,vAxis:{minValue:0,maxValue:b,gridlines:{count:5}}});google.visualization.events.addListener(a,"select",
  r(Oa,a,e,d))};t("ae.Charts.latencyHistogram",function(a,b,c){var e=new google.visualization.DataTable;e.addColumn("string","");e.addColumn("number","");for(var d=0;d<b.length;d++)e.addRow([""+a[d],b[d]]);for(d=b.length;d<a.length;d++)e.addRow([""+a[d],0]);b=Na(b);(new google.visualization.ColumnChart(document.getElementById("latency-"+c))).draw(e,{legend:"none",width:20*a.length,height:200,vAxis:{maxValue:b,gridlines:{count:5}}})});
  t("ae.Charts.latencyTimestampScatter",function(a,b,c,e,d){var f=new google.visualization.DataTable;f.addColumn("number","Time (seconds from start)");f.addColumn("number","Latency");for(var g=0;g<a.length;g++)f.addRow([Math.round(a[g]-c),b[g]]);a=e.starttime?e.starttime:0;b=new google.visualization.ScatterChart(document.getElementById("LatencyVsTimestamp"));b.draw(f,{hAxis:{title:"Time (seconds from start of recording)",minValue:a},vAxis:{title:"Request Latency (milliseconds)",minValue:0},tooltip:{trigger:"none"},
  legend:"none"});google.visualization.events.addListener(b,"select",r(Oa,b,e,d))});
  t("ae.Charts.entityCountBarChart",function(a,b,c,e){var d=new google.visualization.DataTable;d.addColumn("string","");d.addColumn("number","Reads");d.addColumn({type:"string",role:"tooltip"});d.addColumn("number","Misses");d.addColumn({type:"string",role:"tooltip"});d.addColumn("number","Writes");d.addColumn({type:"string",role:"tooltip"});var f=50;f>b.length&&(f=b.length);for(var g=0;g<f;g++)d.addRow(["",b[g][1]-b[g][3],b[g][0],b[g][3],b[g][0],b[g][2],b[g][0]]);b=20*f;f=b+130;(new google.visualization.ColumnChart(document.getElementById(e+
  "-"+a))).draw(d,{height:100,width:f,chartArea:{width:b},fontSize:10,isStacked:!0,vAxis:{minValue:0,maxValue:Ma(c),gridlines:{count:5}}})});
  t("ae.Charts.rpcVariationCandlestick",function(a){var b=new google.visualization.DataTable;b.addColumn("string","");b.addColumn("number","");b.addColumn("number","");b.addColumn("number","");b.addColumn("number","");b.addRows(a);(new google.visualization.CandlestickChart(document.getElementById("rpcvariation"))).draw(b,{vAxis:{title:"RPC Latency variation (milliseconds)"},hAxis:{textPosition:"out",slantedText:!0,slantedTextAngle:45,textStyle:{fontSize:13}},height:250,chartArea:{top:10,height:100},
  legend:"none",tooltip:{trigger:"none"}})});t("ae.Charts.totalTimeBarChart",function(a,b,c,e){for(var d=[],f=0;f<b.length;f++)d[f]=b[f]+" milliseconds";Pa(a,b,d,c,e)});t("ae.Charts.rpcTimeBarChart",function(a,b,c,e,d){var f=[],g=[],h=c.indices,v=c.times;c=c.stats;for(var n=0;n<b;n++)f[n]=0,g[n]=null;for(n=0;n<h.length;n++){f[h[n]]=v[n];b=c[n];var l="Calls: "+b[0];if(0<b[1]||0<b[2]||0<b[3])l+=" Entities";0<b[1]&&(l+=" R:"+b[1]);0<b[2]&&(l+=" W:"+b[2]);0<b[3]&&(l+=" M:"+b[3]);g[h[n]]=l}Pa(a,f,g,e,d)});})();
  