diff --git a/javascripts/shared/pv_config.js b/javascripts/shared/pv_config.js
index dacd17659..ce0c28824 100644
--- a/javascripts/shared/pv_config.js
+++ b/javascripts/shared/pv_config.js
@@ -17,11 +17,11 @@ class PvConfig {
constructor() {
let self = this;
const formatXAxisTick = value => {
- const dayOfWeek = moment(value, this.dateFormat).weekday();
- if (dayOfWeek % 7) {
- return value;
- } else {
+ const dayOfWeek = moment(value, this.dateFormat).isoWeekday();
+ if (dayOfWeek === 1) {
return `• ${value}`;
+ } else {
+ return value;
}
};
@@ -213,7 +213,7 @@ class PvConfig {
minDate: moment('2015-07-01').startOf('day'),
maxDate,
specialRanges: {
- 'last-week': [moment().subtract(1, 'week').startOf('week'), moment().subtract(1, 'week').endOf('week')],
+ 'last-week': [moment().subtract(1, 'isoweek').startOf('isoweek'), moment().subtract(1, 'isoweek').endOf('isoweek')],
'this-month': [moment().startOf('month'), moment().startOf('month').isAfter(maxDate) ? moment().startOf('month') : maxDate],
'last-month': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')],
'this-year': [moment().startOf('year'), moment().startOf('year').isAfter(maxDate) ? moment().startOf('year') : maxDate],
diff --git a/public_html/application.js b/public_html/application.js
index 60e022d90..2f50bb554 100644
--- a/public_html/application.js
+++ b/public_html/application.js
@@ -12,6 +12,6 @@ r.controlPointPreviousY=t(r.controlPointPreviousY,c.top,c.bottom),r.controlPoint
},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),nt?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};r.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),r.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),r.getRelativePosition=function(t,e){var i,n,o=t.originalEvent||t,a=t.currentTarget||t.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=o.clientX,n=o.clientY);var c=parseFloat(r.getStyle(a,"padding-left")),u=parseFloat(r.getStyle(a,"padding-top")),d=parseFloat(r.getStyle(a,"padding-right")),h=parseFloat(r.getStyle(a,"padding-bottom")),p=s.right-s.left-c-d,f=s.bottom-s.top-u-h;return i=Math.round((i-s.left-c)/p*a.width/e.currentDevicePixelRatio),n=Math.round((n-s.top-u)/f*a.height/e.currentDevicePixelRatio),{x:i,y:n}},r.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},r.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=r.noop},r.bindEvents=function(t,e,i){var n=t.events=t.events||{};r.each(e,function(e){n[e]=function(){i.apply(t,arguments)},r.addEvent(t.chart.canvas,e,n[e])})},r.unbindEvents=function(t,e){var i=t.chart.canvas;r.each(e,function(t,e){r.removeEvent(i,e,t)})},r.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-left"),10),n=parseInt(r.getStyle(e,"padding-right"),10),o=e.clientWidth-i-n,a=r.getConstraintWidth(t);return isNaN(a)?o:Math.min(o,a)},r.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-top"),10),n=parseInt(r.getStyle(e,"padding-bottom"),10),o=e.clientHeight-i-n,a=r.getConstraintHeight(t);return isNaN(a)?o:Math.min(o,a)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t){var e=t.ctx,i=t.canvas,n=i.width,o=i.height,r=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==r&&(i.height=o*r,i.width=n*r,e.scale(r,r),t.originalDevicePixelRatio=t.originalDevicePixelRatio||r),i.style.width=n+"px",i.style.height=o+"px"},r.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},r.fontString=function(t,e,i){return e+" "+t+"px "+i},r.longestText=function(t,e,i,n){n=n||{};var o=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},a=n.garbageCollect=[],n.font=e),t.font=e;var s=0;r.each(i,function(e){void 0!==e&&null!==e&&r.isArray(e)!==!0?s=r.measureText(t,o,a,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,o,a,s,e))})});var l=a.length/2;if(l>i.length){for(var c=0;l>c;c++)delete o[a[c]];a.splice(0,l)}return s},r.measureText=function(t,e,i,n,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,i.push(o)),r>n&&(n=r),n},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.drawRoundedRectangle=function(t,e,i,n,o,r){t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+r),t.lineTo(e+n,i+o-r),t.quadraticCurveTo(e+n,i+o,e+n-r,i+o),t.lineTo(e+r,i+o),t.quadraticCurveTo(e,i+o,e,i+o-r),t.lineTo(e,i+r),t.quadraticCurveTo(e,i,e+r,i),t.closePath()},r.color=function(e){return n?n(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.error("Color.js not found!"),e)},r.addResizeListener=function(t,e){var i=document.createElement("iframe"),n="chartjs-hidden-iframe";i.classlist?i.classlist.add(n):i.setAttribute("class",n),i.tabIndex=-1;var o=i.style;o.width="100%",o.display="block",o.border=0,o.height=0,o.margin=0,o.position="absolute",o.left=0,o.right=0,o.top=0,o.bottom=0,t.insertBefore(i,t.firstChild),(i.contentWindow||i).onresize=function(){return e?e():void 0}},r.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},r.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.arrayEquals=function(t,e){var i,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;n>i;++i)if(o=t[i],a=e[i],o instanceof Array&&a instanceof Array){if(!r.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},r.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){var n=this,o=t.helpers;return n.config=i||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),n.ctx=e,n.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",n.width=e.canvas.width||parseInt(o.getStyle(e.canvas,"width"),10)||o.getMaximumWidth(e.canvas),n.height=e.canvas.height||parseInt(o.getStyle(e.canvas,"height"),10)||o.getMaximumHeight(e.canvas),n.aspectRatio=n.width/n.height,(isNaN(n.aspectRatio)||isFinite(n.aspectRatio)===!1)&&(n.aspectRatio=void 0!==i.aspectRatio?i.aspectRatio:2),n.originalCanvasStyleWidth=e.canvas.style.width,n.originalCanvasStyleHeight=e.canvas.style.height,o.retinaScale(n),n.controller=new t.Controller(n),o.addResizeListener(e.canvas.parentNode,function(){n.controller&&n.controller.config.options.responsive&&n.controller.resize()}),n.controller?n.controller:n};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('');for(var i=0;i '),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("");return e.push(" "),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){function o(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?g:b,w),x-=e.height):(e=t.update(k,y),b-=e.width),D.push({horizontal:i,minSize:e,box:t})}function r(t){var i=e.findNextWhere(D,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:_,right:C,top:0,bottom:0};t.update(t.options.fullWidth?g:b,m/2,n)}else t.update(i.minSize.width,x)}function a(t){var i=e.findNextWhere(D,function(e){return e.box===t}),n={left:0,right:0,top:S,bottom:M};i&&t.update(i.minSize.width,x,n)}function s(t){t.isHorizontal()?(t.left=t.options.fullWidth?l:_,t.right=t.options.fullWidth?i-l:_+b,t.top=P,t.bottom=P+t.height,P=t.bottom):(t.left=A,t.right=A+t.width,t.top=S,t.bottom=S+x,A=t.right)}if(t){var l=0,c=0,u=e.where(t.boxes,function(t){return"left"===t.options.position}),d=e.where(t.boxes,function(t){return"right"===t.options.position}),h=e.where(t.boxes,function(t){return"top"===t.options.position}),p=e.where(t.boxes,function(t){return"bottom"===t.options.position}),f=e.where(t.boxes,function(t){return"chartArea"===t.options.position});h.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),p.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var g=i-2*l,m=n-2*c,v=g/2,y=m/2,k=(i-v)/(u.length+d.length),w=(n-y)/(h.length+p.length),b=g,x=m,D=[];e.each(u.concat(d,h,p),o);var _=l,C=l,S=c,M=c;e.each(u.concat(d),r),e.each(u,function(t){_+=t.width}),e.each(d,function(t){C+=t.width}),e.each(h.concat(p),r),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height}),e.each(u.concat(d),a),_=l,C=l,S=c,M=c,e.each(u,function(t){_+=t.width}),e.each(d,function(t){C+=t.width}),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height});var Y=n-S-M,T=i-_-C;(T!==b||Y!==x)&&(e.each(u,function(t){t.height=Y}),e.each(d,function(t){t.height=Y}),e.each(h,function(t){t.options.fullWidth||(t.width=T)}),e.each(p,function(t){t.options.fullWidth||(t.width=T)}),x=Y,b=T);var A=l,P=c;e.each(u.concat(h),s),A+=b,P+=x,e.each(d,s),e.each(p,s),t.chartArea={left:_,top:S,right:_+b,bottom:S+x},e.each(f,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(b,x)})}}}}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,o=n.getDatasetMeta(i);o.hidden=null===o.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=i.options,o=n.labels,r=n.display,a=i.ctx,s=t.defaults.global,l=e.getValueOrDefault,c=l(o.fontSize,s.defaultFontSize),u=l(o.fontStyle,s.defaultFontStyle),d=l(o.fontFamily,s.defaultFontFamily),h=e.fontString(c,u,d),p=i.legendHitBoxes=[],f=i.minSize,g=i.isHorizontal();if(g?(f.width=i.maxWidth,f.height=r?10:0):(f.width=r?10:0,f.height=i.maxHeight),r)if(a.font=h,g){var m=i.lineWidths=[0],v=i.legendItems.length?c+o.padding:0;a.textAlign="left",a.textBaseline="top",e.each(i.legendItems,function(t,e){var n=o.usePointStyle?c*Math.sqrt(2):o.boxWidth,r=n+c/2+a.measureText(t.text).width;m[m.length-1]+r+o.padding>=i.width&&(v+=c+o.padding,m[m.length]=i.left),p[e]={left:0,top:0,width:r,height:c},m[m.length-1]+=r+o.padding}),f.height+=v}else{var y=o.padding,k=i.columnWidths=[],w=o.padding,b=0,x=0,D=c+y;e.each(i.legendItems,function(t,e){var i=o.usePointStyle?2*o.boxWidth:o.boxWidth,n=i+c/2+a.measureText(t.text).width;x+D>f.height&&(w+=b+o.padding,k.push(b),b=0,x=0),b=Math.max(b,n),x+=D,p[e]={left:0,top:0,width:n,height:c}}),w+=b,k.push(b),f.width+=w}i.width=f.width,i.height=f.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,o=n.labels,r=t.defaults.global,a=r.elements.line,s=i.width,l=i.lineWidths;if(n.display){var c,u=i.ctx,d=e.getValueOrDefault,h=d(o.fontColor,r.defaultFontColor),p=d(o.fontSize,r.defaultFontSize),f=d(o.fontStyle,r.defaultFontStyle),g=d(o.fontFamily,r.defaultFontFamily),m=e.fontString(p,f,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=h,u.fillStyle=h,u.font=m;var v=o.boxWidth,y=i.legendHitBoxes,k=function(e,i,o){if(!(isNaN(v)||0>=v)){u.save(),u.fillStyle=d(o.fillStyle,r.defaultColor),u.lineCap=d(o.lineCap,a.borderCapStyle),u.lineDashOffset=d(o.lineDashOffset,a.borderDashOffset),u.lineJoin=d(o.lineJoin,a.borderJoinStyle),u.lineWidth=d(o.lineWidth,a.borderWidth),u.strokeStyle=d(o.strokeStyle,r.defaultColor);var s=0===d(o.lineWidth,a.borderWidth);if(u.setLineDash&&u.setLineDash(d(o.lineDash,a.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,c=l/Math.SQRT2,h=e+c,f=i+c;t.canvasHelpers.drawPoint(u,o.pointStyle,l,h,f)}else s||u.strokeRect(e,i,v,p),u.fillRect(e,i,v,p);u.restore()}},w=function(t,e,i,n){u.fillText(i.text,v+p/2+t,e),i.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(v+p/2+t,e+p/2),u.lineTo(v+p/2+t+n,e+p/2),u.stroke())},b=i.isHorizontal();c=b?{x:i.left+(s-l[0])/2,y:i.top+o.padding,line:0}:{x:i.left+o.padding,y:i.top+o.padding,line:0};var x=p+o.padding;e.each(i.legendItems,function(t,e){var n=u.measureText(t.text).width,r=o.usePointStyle?p+p/2+n:v+p/2+n,a=c.x,d=c.y;b?a+r>=s&&(d=c.y+=x,c.line++,a=c.x=i.left+(s-l[c.line])/2):d+x>i.bottom&&(a=c.x=a+i.columnWidths[c.line]+o.padding,d=c.y=i.top,c.line++),k(a,d,t),y[e].left=a,y[e].top=d,w(a,d,t,n),b?c.x+=r+o.padding:c.y+=x})}},handleEvent:function(t){var i=this,n=i.options,o="mouseup"===t.type?"click":t.type;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var r=e.getRelativePosition(t,i.chart.chart),a=r.x,s=r.y;if(a>=i.left&&a<=i.right&&s>=i.top&&s<=i.bottom)for(var l=i.legendHitBoxes,c=0;c=u.left&&a<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===o){n.onClick.call(i,t,i.legendItems[c]);break}if("mousemove"===o){n.onHover.call(i,t,i.legendItems[c]);break}}}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,o=this._plugins,r=o.length;for(i=0;r>i;++i)if(n=o[i],"function"==typeof n[t]&&n[t].apply(n,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=i,o.margins=e.extend({left:0,right:0,top:0,bottom:0},n),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,o=t.defaults.global,r=i.options.ticks,a=e.getValueOrDefault(r.fontSize,o.defaultFontSize),s=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),l=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),c=e.fontString(a,s,l);n.font=c;var u,d=n.measureText(i.ticks[0]).width,h=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=h/2+3,i.paddingLeft=d/2+3,i.longestTextCache||(i.longestTextCache={});for(var p,f,g=e.longestText(n,c,i.ticks,i.longestTextCache),m=g,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>v&&i.labelRotationi.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,f*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=p*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,r=t.defaults.global,a=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(a.fontSize,r.defaultFontSize),h=e.getValueOrDefault(a.fontStyle,r.defaultFontStyle),p=e.getValueOrDefault(a.fontFamily,r.defaultFontFamily),f=e.fontString(d,h,p),g=e.getValueOrDefault(s.fontSize,r.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),a.display&&c){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),y=e.numberOfLabelLines(i.ticks),k=.5*d;if(u){i.longestLabelWidth=v;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*y+k*y;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),_=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?_*(d/2)+3:x/2+3}else{var C=i.maxWidth-n.width,S=a.mirror;S?v=0:v+=i.options.ticks.padding,C>v?n.width+=v:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=o*t+i.paddingLeft;e&&(r+=o/2);var a=i.left+Math.round(r);return a+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var r,a,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,p=c.autoSkip,f=n.isHorizontal();c.maxTicksLimit&&(a=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),v=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),y=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),k=e.fontString(m,v,y),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),_=e.getValueOrDefault(d.fontSize,l.defaultFontSize),C=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),S=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),M=e.fontString(_,C,S),Y=e.toRadians(n.labelRotation),T=Math.cos(Y),A=n.longestLabelWidth*T;s.fillStyle=g;var P=[];if(f){if(r=!1,h&&(A/=2),(A+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(r=1+Math.floor((A+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!r||n.ticks.length/(r||1)>a;)r||(r=1),r+=1;p||(r=!1)}var O="right"===o.position?n.left:n.right-w,I="right"===o.position?n.left+w:n.right,$="bottom"===o.position?n.top:n.bottom-w,L="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var s=n.ticks.length===a+1,l=r>1&&a%r>0||a%r===0&&a+r>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,p;a===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,p=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,a),p=e.getValueAtIndexOrDefault(u.color,a));var g,m,v,y,k,D,_,C,S,M,T="middle",A="middle";if(f){h||(A="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(a)+e.aliasPixel(d);S=n.getPixelForTick(a,u.offsetGridLines)+c.labelOffset,M=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=v=k=_=E,m=$,y=L,D=i.top,C=i.bottom}else{"left"===o.position?c.mirror?(S=n.right+c.padding,T="left"):(S=n.right-c.padding,T="right"):c.mirror?(S=n.left-c.padding,T="right"):(S=n.left+c.padding,T="left");var j=n.getPixelForTick(a);j+=e.aliasPixel(d),M=n.getPixelForTick(a,u.offsetGridLines),g=O,v=I,k=i.left,_=i.right,m=y=D=C=j}P.push({tx1:g,ty1:m,tx2:v,ty2:y,x1:k,y1:D,x2:_,y2:C,labelX:S,labelY:M,glWidth:d,glColor:p,glBorderDash:b,glBorderDashOffset:x,rotation:-1*Y,label:t,textBaseline:A,textAlign:T})}}}),e.each(P,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=k,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var r=t[e];if(r&&r.hasValue()){var a=r.tooltipPosition();n.push(a.x),o.push(a.y)}}var s=0,l=0;for(e=0;e0){var r=t[0];r.xLabel?i=r.xLabel:o>0&&r.indexe;++e)f.push(n(c[e]));s.itemSort&&(f=f.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(f,function(t){h.push(s.callbacks.labelColor.call(a,t,d))}),o.extend(l,{title:a.getTitle(f,u),beforeBody:a.getBeforeBody(f,u),body:a.getBody(f,u),afterBody:a.getAfterBody(f,u),footer:a.getFooter(f,u),x:Math.round(p.x),y:Math.round(p.y),caretPadding:o.getValueOrDefault(p.padding,2),labelColors:h});var g=a.getTooltipSize(l);a.determineAlignment(g),o.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&s.custom&&s.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,r=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=r*c,i.height+=r?(r-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var r,a,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(r=function(t){return u>=t},a=function(t){return t>u}):(r=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},r(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,r=t.cornerRadius,a=t.xAlign,s=t.yAlign,l=n+o,c=r+o;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=c:"right"===a&&(i.x+=c),i},drawCaret:function(t,e,i){var n,r,a,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,p=u.cornerRadius,f=u.xAlign,g=u.yAlign,m=t.x,v=t.y,y=e.width,k=e.height;"center"===g?("left"===f?(n=m,r=n-h,a=n):(n=m+y,r=n+h,a=n),l=v+k/2,s=l-h,c=l+h):("left"===f?(n=m+p,r=n+h,a=r+h):"right"===f?(n=m+y-p,r=n-h,a=r-h):(r=m+y/2,n=r-h,a=r+h),"top"===g?(s=v,l=s-h,c=s):(s=v+k,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(r,l),d.lineTo(a,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var r=e.title;if(r.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(a,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=r.length;u>c;++c)i.fillText(r[c],t.x,t.y),t.y+=a+s,c+1===r.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var r=e.bodyFontSize,a=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(r,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=r+a};o.each(e.beforeBody,d);var h=s.length>1;u=h?r+2:0,o.each(s,function(a,s){o.each(a.before,d),o.each(a.lines,function(a){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,r,r),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,r,r),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,r-2,r-2),i.fillStyle=c),d(a)}),o.each(a.after,d)}),u=0,o.each(e.afterBody,d),t.y-=a},drawFooter:function(t,e,i,n){var r=e.footer;if(r.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=o.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(r,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=o.color(e.backgroundColor);t.fillStyle=a.alpha(r*a.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,r),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,r),this.drawBody(n,e,t,r),this.drawFooter(n,e,t,r)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;s>r;)r+=2*Math.PI;var c=r>=s&&l>=r,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,r=o.spanGaps,a=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var a=o.getLabels(),s=a.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/r,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/r,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),r=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),a=r/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=a/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=e.log10(Math.abs(o)),a="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,r=o.data,a=r.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(a,function(r,a){var s=o.getDatasetMeta(a);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(a)&&t(s)&&e.each(r.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),r=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(a,function(n,r){var a=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var r=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*r)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,r=n.paddingBottom,a=n.start,s=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-a),Math.round(e+o)):(i=n.height-(n.paddingTop+r),e=n.bottom-r-i/l*(s-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,r=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),a=(i?t-e.left-n:e.bottom-o-t)/r;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),r=e.sign(t.max);0>o&&0>r?t.max=0:o>0&&r>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,r=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=r(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(a-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var p=1;h>p;++p)n.push(u+p*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,r=i.chart,a=r.data,s=a.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,a){var s=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=r)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,r,a,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),y=e.fontString(g,m,v),k=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=y,n=0;nw&&(w=t.x+r,a=n),t.x-rD?t.x+o>w&&(w=t.x+o,a=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,r=n.ticks,a=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(r.fontSize,i.defaultFontSize),d=l(r.fontStyle,i.defaultFontStyle),h=l(r.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(a,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;k--){if(a.display){var w=t.getPointPosition(k,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(k,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=y,c.fillStyle=x;var D=t.pointLabels,_=this.getIndexAngle(k)+Math.PI/2,C=360*_/(2*Math.PI)%360;0===C||180===C?c.textAlign="center":180>C?c.textAlign="left":c.textAlign="right",90===C||270===C?c.textBaseline="middle":C>270||90>C?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[k]?D[k]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},r=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,r){var a=[],s=t.chart.isDatasetVisible(r);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,r,a);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var p=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var f=0,g=i.units[f];f=Math.ceil(n.scaleSizeInUnits/p)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/p)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=k.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var _=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==_||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),
n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t10?this.massviewsRedirectWithPagePile(e.pages).then(i):(this.setInitialChartType(e.pages.length),i(e.pages)):this.getDefaultPages().done(function(e){t.setInitialChartType(e.length),i(e)}).fail(function(){setTimeout(t.stopSpinny.bind(t)),t.setInitialChartType(),t.focusSelect2()})}},{key:"getDefaultPages",value:function(){var t=this,e=$.Deferred();if("en.wikipedia"===this.project)e.resolve(["Cat","Dog"]);else if(this.project.includes("wikipedia")){var i="https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=Cat|Dog&props=sitelinks/urls|datatype&format=json&callback=?";$.getJSON(i).done(function(i){if(i.error)return e.resolve();var n=Object.keys(u).find(function(e){return u[e]===t.project+".org"}),o=Object.keys(i.entities).map(function(t){return i.entities[t].sitelinks[n].title});e.resolve(o)})}else this.fetchSiteInfo(this.project).done(function(i){e.resolve([i[t.project].general.mainpage])}).fail(e.reject);return e}},{key:"processSearchResults",value:function(t){var e=t?t.query:{},i=[];return e?("autocomplete"===this.autocomplete?e.prefixsearch.length&&(i=e.prefixsearch.map(function(t){return{id:t.title.score(),text:t.title}})):"autocomplete_redirects"===this.autocomplete&&(e.redirects&&(i=e.redirects.map(function(t){return{id:t.from.score(),text:t.from}})),Object.keys(e.pages).forEach(function(t){var n=e.pages[t];i.push({id:n.title.score(),text:n.title})})),{results:i}):{results:i}}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={project:$(this.config.projectInput).val(),platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val()};return this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=$(this.config.select2Input).select2("val")||[],e=t.join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&pages="+e),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&pages="+e)}},{key:"setupSelect2",value:function(){var t=this,e=$(this.config.select2Input),i={ajax:this.getArticleSelectorAjax(),tags:"no_autocomplete"===this.autocomplete,placeholder:$.i18n("article-placeholder"),maximumSelectionLength:10,minimumInputLength:1};e.select2(i),e.off("select2:select").on("select2:select",this.processInput.bind(this)),e.off("select2:unselect").on("select2:unselect",function(i){t.processInput(!1,i.params.data.text),e.trigger("select2:close")}),e.off("select2:open").on("select2:open",function(e){$(e.target).val()&&10===$(e.target).val().length&&$(".select2-search__field").one("keyup",function(){var e=$.i18n("massviews-notice",10,""+$.i18n("massviews")+" ");t.toastInfo(e)})})}},{key:"getArticleSelectorAjax",value:function(){var t=this;return"no_autocomplete"!==this.autocomplete?{url:"https://"+this.project+".org/w/api.php",dataType:"jsonp",delay:200,jsonpCallback:"articleSuggestionCallback",data:function(e){return t.getSearchParams(e.term)},processResults:this.processSearchResults.bind(this),cache:!0}:null}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"resetView",this).call(this,t,i),$(".output-list").html(""),$(".single-page-ranking").html(""),$(".single-page-stats").html(""),$(".single-page-legend").html("")}},{key:"validateProject",value:function(){s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.focusSelect2())}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$("#platform-select, #agent-select").on("change",this.processInput.bind(this)),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.updateTable()}),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()})}},{key:"processInput",value:function(t,e){var i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){this.params=location.search;var n=$(l.select2Input).select2("val")||[];if(!n.length)return this.resetView();this.setInitialChartType(n.length),this.prevChartType&&this.clearMessages(),this.prevChartType=this.chartType,this.destroyChart(),this.startSpinny(),e?(this.outputData=this.outputData.filter(function(t){return t.label!==e.descore()}),this.outputData=this.outputData.map(function(t){return Object.assign({},t,i.config.chartConfig[i.chartType].dataset(t.color))}),this.updateChart()):this.initialQuery?(this.getPageViewsData(n).done(function(t){return i.updateChart(t)}),this.initialQuery=!1):this.getPageAndEditInfo(n.map(function(t){return encodeURIComponent(t)})).then(function(){i.getPageViewsData(n).done(function(t){return i.updateChart(t)})})}}},{key:"showSinglePageLegend",value:function(){var t=this,e=this.outputData[0],i=this.getTopviewsMonth(!1),n=i.format("YYYY")+"/"+i.format("MM")+"/all-days";$.ajax({url:"https://wikimedia.org/api/rest_v1/metrics/pageviews/top/"+this.project+"/"+($(this.config.platformSelector).val()+"/"+n),dataType:"json"}).done(function(n){var o=n.items[0].articles.find(function(t){return t.article===e.label.score()});if(o){var r=t.daterangepicker.locale.monthNames[i.month()],a="\n most-viewed pages \n ";$(".single-page-ranking").html($.i18n("most-viewed-rank",o.rank,a,r+" "+i.year()))}}).always(function(){$(".table-view").hide(),$(".single-page-stats").html("\n "+t.getPageLink(e.label)+"\n ·\n \n "+$(t.config.dateRangeSelector).val()+"\n \n ·\n "+$.i18n("num-pageviews",t.formatNumber(e.sum))+"\n \n ("+t.formatNumber(e.average)+"/"+$.i18n("day")+")\n \n "),$(".single-page-legend").html(t.config.templates.chartLegend(t))})}},{key:"updateTable",value:function(){var t=this;if($.isNumeric(this.outputData[0].num_edits)||$(".legend-block--revisions .legend-block--body").html(""+$.i18n("data-unavailable")+" "),1===this.outputData.length)return this.showSinglePageLegend();$(".single-page-stats").html(""),$(".single-page-ranking").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort");var n=!1;e.forEach(function(e,i){e.protection!==$.i18n("none").toLowerCase()&&(n=!0),$(".output-list").append(t.config.templates.tableRow(t,e))});var o=e.reduce(function(t,e){return t+e.sum},0),r={label:$.i18n("num-pages",e.length),sum:o,average:Math.round(o/e[0].data.filter(function(t){return null!==t}).length),num_edits:this.entityInfo.totals?this.entityInfo.totals.num_edits:null,num_users:this.entityInfo.totals?this.entityInfo.totals.num_users:null,length:e.reduce(function(t,e){return t+e.length},0),protection:e.filter(function(t){return"none"!==t.protection}).length+" protections",watchers:e.reduce(function(t,e){return t+e.watchers||0},0)};$(".output-list").append(this.config.templates.tableRow(this,r,!0)),$(".table-view--protection").toggle(n),$(".table-view").show()}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"views":return Number(t.sum);case"average":return Number(t.average);case"edits":return Number(t.num_edits);case"editors":return Number(t.num_users);case"size":return Number(t.length);case"watchers":return Number(t.watchers)}}},{key:"getPageAndEditInfo",value:function(t){var e=this,i=$.Deferred();return this.getPageInfo(t).done(function(t){for(var n in t)t[n].missing&&(e.writeMessage(e.getPageLink(n)+": "+$.i18n("api-error-no-data")),delete t[n]);e.entityInfo={entities:t},e.getEditData(Object.keys(t)).done(function(t){for(var n in t.pages){var o=t.pages[n],r=e.entityInfo.entities[n].protection||[];Array.isArray(r)&&(r=r.find(function(t){return"edit"===t.type})),o.protection=r?r.level:$.i18n("none").toLowerCase(),Object.assign(e.entityInfo.entities[n],t.pages[n])}e.entityInfo.totals=t.totals,i.resolve(e.entityInfo)}).fail(function(){i.resolve(e.entityInfo)})}).fail(function(){i.resolve({})}),i}},{key:"massviewsRedirectWithPagePile",value:function(t){var e=this,i=$.Deferred();return $.ajax({url:"//tools.wmflabs.org/pagepile/api.php",data:{action:"create_pile_with_data",wiki:this.dbName(this.project),data:t.join("\n")}}).success(function(t){var i=e.getParams();delete i.project,document.location="/massviews?overflow=1&"+$.param(i)+"&source=pagepile&target="+t.pile.id}).fail(function(){e.toastError($.i18n("auto-pagepile-error","PagePile",10)),i.resolve(t.slice(0,10))}),i}}]),e}(mix(c).with(d));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new h})},{"./config":1,"./shared/chart_helpers":3,"./shared/pv":6,"./shared/site_map":8}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,r={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");r[e]=t}),t.items=[];for(var a=moment(e);a<=i;a.add(1,"day"))if(r[a.format("YYYYMMDD")])t.items.push(r[a.format("YYYYMMDD")]);else{var s=a.isSame(this.config.maxDate)||a.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:a.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var r=i.getDateHeadings(!1),a=new Array(r.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),a[r.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===r&&(e.pageViewsData=s,i.resolve(s),a.length&&e.writeMessage($.i18n("api-error-timeout",""+a.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var r=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return r=!0}),r}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var r=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(r.scales=Object.assign({},r.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var a=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?r.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(r.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),r.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?r=this.showPointLabels(r):(delete r.animation.onComplete,delete r.animation.onProgress),this.chartObj=new Chart(a,{type:this.chartType,data:l,options:r})}else delete r.animation.onComplete,delete r.animation.onProgress,this.chartObj=new Chart(a,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:r})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,r){var a=n.controller.getDatasetMeta(r);Chart.helpers.each(a.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var r=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,a=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,a)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":9}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new r(t)};var r=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{
-key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!
\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:r(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e=function(e){var i,o,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=void 0;s=a?t.formatNumber(e.num_edits):t.getHistoryLink(e.label,t.formatNumber(e.num_edits));var l=(r={},n(r,$.i18n("pageviews"),(i={},n(i,$.i18n("pageviews"),t.formatNumber(e.sum)),n(i,$.i18n("daily-average"),t.formatNumber(e.average)),i)),n(r,$.i18n("revisions"),(o={},n(o,$.i18n("edits"),s),n(o,$.i18n("editors"),t.formatNumber(e.num_users)),o)),n(r,$.i18n("basic-information"),n({},$.i18n("watchers"),e.watchers?t.formatNumber(e.watchers):$.i18n("unknown"))),r);if(!a){var c;Object.assign(l[$.i18n("basic-information")],(c={},n(c,$.i18n("size"),e.length?t.formatNumber(e.length):""),n(c,$.i18n("protection"),e.protection),c))}var u="";for(var d in l){var h=d.toLowerCase().score();u+="\n
"+d+" \n
";for(var p in l[d]){var f=l[d][p];f&&(u+='\n
\n '+p+":\n \n "+f+"\n \n
")}u+="
"}return a||(u+='\n "),u};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o={sum:i,average:Math.round(i/t.outputData[0].data.filter(function(t){return null!==t}).length),num_edits:t.entityInfo.totals?t.entityInfo.totals.num_edits:null,
+key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:r(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e=function(e){var i,o,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=void 0;s=a?t.formatNumber(e.num_edits):t.getHistoryLink(e.label,t.formatNumber(e.num_edits));var l=(r={},n(r,$.i18n("pageviews"),(i={},n(i,$.i18n("pageviews"),t.formatNumber(e.sum)),n(i,$.i18n("daily-average"),t.formatNumber(e.average)),i)),n(r,$.i18n("revisions"),(o={},n(o,$.i18n("edits"),s),n(o,$.i18n("editors"),t.formatNumber(e.num_users)),o)),n(r,$.i18n("basic-information"),n({},$.i18n("watchers"),e.watchers?t.formatNumber(e.watchers):$.i18n("unknown"))),r);if(!a){var c;Object.assign(l[$.i18n("basic-information")],(c={},n(c,$.i18n("size"),e.length?t.formatNumber(e.length):""),n(c,$.i18n("protection"),e.protection),c))}var u="";for(var d in l){var h=d.toLowerCase().score();u+="\n
"+d+" \n
";for(var p in l[d]){var f=l[d][p];f&&(u+='\n
\n '+p+":\n \n "+f+"\n \n
")}u+="
"}return a||(u+='\n "),u};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o={sum:i,average:Math.round(i/t.outputData[0].data.filter(function(t){return null!==t}).length),num_edits:t.entityInfo.totals?t.entityInfo.totals.num_edits:null,
num_users:t.entityInfo.totals?t.entityInfo.totals.num_users:null,watchers:t.outputData.reduce(function(t,e){return t+e.watchers||0},0)};return e(o,!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("all-languages")+' \n •\n '+$.i18n("redirects")+" \n ",r=$.isNumeric(e.num_users)?t.formatNumber(e.num_users):"?",a=void 0;return a=$.isNumeric(e.num_edits)?i?t.formatNumber(e.num_edits):t.getHistoryLink(e.label,t.formatNumber(e.num_edits)):"?","\n \n <"+n+" class='table-view--color-col'>\n \n '+n+">\n <"+n+" class='table-view--title'>"+(i?e.label:t.getPageLink(e.label))+""+n+">\n <"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+""+n+">\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+""+n+">\n <"+n+" class='table-view-edits table-view--edit-data'>"+a+""+n+">\n <"+n+" class='table-view-editors table-view--edit-data'>"+r+""+n+">\n <"+n+" class='table-view--size'>"+t.formatNumber(e.length)+""+n+">\n <"+n+" class='table-view--protection'>"+e.protection+""+n+">\n <"+n+" class='table-view--watchers'>"+(e.watchers?t.formatNumber(e.watchers):$.i18n("unknown"))+""+n+">\n <"+n+">"+o+""+n+">\n \n "}};e.exports=o},{}]},{},[2]);
\ No newline at end of file
diff --git a/public_html/langviews/application.js b/public_html/langviews/application.js
index c889ee64b..7c6b1ac05 100644
--- a/public_html/langviews/application.js
+++ b/public_html/langviews/application.js
@@ -11,5 +11,5 @@ i.lastTooltipActive=i.lastTooltipActive||[],"mouseout"===t.type?(i.active=[],i.t
},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,a=t.defaults.global,r=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(r.fontSize,a.defaultFontSize),h=e.getValueOrDefault(r.fontStyle,a.defaultFontStyle),f=e.getValueOrDefault(r.fontFamily,a.defaultFontFamily),p=e.fontString(d,h,f),g=e.getValueOrDefault(s.fontSize,a.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),r.display&&c){i.longestTextCache||(i.longestTextCache={});var k=e.longestText(i.ctx,p,i.ticks,i.longestTextCache),v=e.numberOfLabelLines(i.ticks),y=.5*d;if(u){i.longestLabelWidth=k;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*v+y*v;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=p;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var S=i.maxWidth-n.width,M=r.mirror;M?k=0:k+=i.options.ticks.padding,S>k?n.width+=k:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),a=o*t+i.paddingLeft;e&&(a+=o/2);var r=i.left+Math.round(a);return r+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var a,r,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,f=c.autoSkip,p=n.isHorizontal();c.maxTicksLimit&&(r=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),k=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),v=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=e.fontString(m,k,v),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),S=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),M=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),Y=e.fontString(C,S,M),_=e.toRadians(n.labelRotation),T=Math.cos(_),P=n.longestLabelWidth*T;s.fillStyle=g;var I=[];if(p){if(a=!1,h&&(P/=2),(P+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(a=1+Math.floor((P+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),r&&n.ticks.length>r)for(;!a||n.ticks.length/(a||1)>r;)a||(a=1),a+=1;f||(a=!1)}var A="right"===o.position?n.left:n.right-w,O="right"===o.position?n.left+w:n.right,L="bottom"===o.position?n.top:n.bottom-w,F="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,r){if(void 0!==t&&null!==t){var s=n.ticks.length===r+1,l=a>1&&r%a>0||r%a===0&&r+a>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,f;r===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,f=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,r),f=e.getValueAtIndexOrDefault(u.color,r));var g,m,k,v,y,D,C,S,M,Y,T="middle",P="middle";if(p){h||(P="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(r)+e.aliasPixel(d);M=n.getPixelForTick(r,u.offsetGridLines)+c.labelOffset,Y=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=k=y=C=E,m=L,v=F,D=i.top,S=i.bottom}else{"left"===o.position?c.mirror?(M=n.right+c.padding,T="left"):(M=n.right-c.padding,T="right"):c.mirror?(M=n.left-c.padding,T="right"):(M=n.left+c.padding,T="left");var j=n.getPixelForTick(r);j+=e.aliasPixel(d),Y=n.getPixelForTick(r,u.offsetGridLines),g=A,k=O,y=i.left,C=i.right,m=v=D=S=j}I.push({tx1:g,ty1:m,tx2:k,ty2:v,x1:y,y1:D,x2:C,y2:S,labelX:M,labelY:Y,glWidth:d,glColor:f,glBorderDash:b,glBorderDashOffset:x,rotation:-1*_,label:t,textBaseline:P,textAlign:T})}}}),e.each(I,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var a=t[e];if(a&&a.hasValue()){var r=a.tooltipPosition();n.push(r.x),o.push(r.y)}}var s=0,l=0;for(e=0;e0){var a=t[0];a.xLabel?i=a.xLabel:o>0&&a.indexe;++e)p.push(n(c[e]));s.itemSort&&(p=p.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(p,function(t){h.push(s.callbacks.labelColor.call(r,t,d))}),o.extend(l,{title:r.getTitle(p,u),beforeBody:r.getBeforeBody(p,u),body:r.getBody(p,u),afterBody:r.getAfterBody(p,u),footer:r.getFooter(p,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:o.getValueOrDefault(f.padding,2),labelColors:h});var g=r.getTooltipSize(l);r.determineAlignment(g),o.extend(l,r.getBackgroundPoint(l,g))}else r._model.opacity=0;return t&&s.custom&&s.custom.call(r,l),r},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,a=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=r*l,i.height+=(r-1)*t.titleSpacing,i.height+=r?t.titleMarginBottom:0,i.height+=a*c,i.height+=a?(a-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var a,r,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(a=function(t){return u>=t},r=function(t){return t>u}):(a=function(e){return e<=t.width/2},r=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},a(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):r(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,a=t.cornerRadius,r=t.xAlign,s=t.yAlign,l=n+o,c=a+o;return"right"===r?i.x-=e.width:"center"===r&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===r?i.x+=l:"right"===r&&(i.x-=l):"left"===r?i.x-=c:"right"===r&&(i.x+=c),i},drawCaret:function(t,e,i){var n,a,r,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,f=u.cornerRadius,p=u.xAlign,g=u.yAlign,m=t.x,k=t.y,v=e.width,y=e.height;"center"===g?("left"===p?(n=m,a=n-h,r=n):(n=m+v,a=n+h,r=n),l=k+y/2,s=l-h,c=l+h):("left"===p?(n=m+f,a=n+h,r=a+h):"right"===p?(n=m+v-f,a=n-h,r=a-h):(a=m+v/2,n=a-h,r=a+h),"top"===g?(s=k,l=s-h,c=s):(s=k+y,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(a,l),d.lineTo(r,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=a.length;u>c;++c)i.fillText(a[c],t.x,t.y),t.y+=r+s,c+1===a.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var a=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(a,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+r};o.each(e.beforeBody,d);var h=s.length>1;u=h?a+2:0,o.each(s,function(r,s){o.each(r.before,d),o.each(r.lines,function(r){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,a,a),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,a,a),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=c),d(r)}),o.each(r.after,d)}),u=0,o.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var a=e.footer;if(a.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=o.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(a,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=o.color(e.backgroundColor);t.fillStyle=r.alpha(a*r.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;s>a;)a+=2*Math.PI;var c=a>=s&&l>=a,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,f=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(f+=h/2),o.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),a=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),r=a/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=r/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=a(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(r-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var f=1;h>f;++f)n.push(u+f*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+a,r=n),t.x-aD?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,S=360*C/(2*Math.PI)%360;0===S||180===S?c.textAlign="center":180>S?c.textAlign="left":c.textAlign="right",90===S||270===S?c.textBaseline="middle":S>270||90>S?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var f=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var p=0,g=i.units[p];p=Math.ceil(n.scaleSizeInUnits/f)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/f)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=y.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},logarithmicCheckbox:".logarithmic-scale-option",platformSelector:"#platform_select",projectInput:"#project_input",formStates:["initial","processing","complete","invalid"],sourceInput:"#source_input",timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","badges","lang"],view:["list","chart"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],e={project:$(this.config.projectInput).val(),platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.page=$(this.config.sourceInput).val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(window.history&&window.history.replaceState){if(t)return history.replaceState(null,document.title,location.href.split("?")[0]);var e=$(this.config.sourceInput).val().score().replace(/[&%?+]/g,encodeURIComponent);window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&page="+e),$(".permalink").prop("href","/langviews?"+$.param(this.getPermaLink())+"&page="+e)}}},{key:"getBadgeMarkup",value:function(t){if(!this.config.badges[t])return"";var e=this.config.badges[t].image,i=this.config.badges[t].name;return" "}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=Object.keys(t.outputData.badges).map(function(e){return""+t.getBadgeMarkup(e)+" × "+t.outputData.badges[e]+" "}).join(", ");$(".output-totals").html(""+$.i18n("totals")+" \n "+$.i18n("num-languages",e.length)+" \n "+$.i18n("unique-titles",t.outputData.titles.length)+" \n "+i+" \n "+t.formatNumber(t.outputData.sum)+" \n "+t.formatNumber(Math.round(t.outputData.average))+" / "+$.i18n("day")+" "),$("#output_list").html(""),e.forEach(function(e,i){var n="";e.badges&&(n=e.badges.map(t.getBadgeMarkup.bind(t)).join()),$("#output_list").append("\n "+(i+1)+" \n "+e.lang+' \n '+e.label+" \n "+n+" \n "+t.formatNumber(e.sum)+" \n "+t.formatNumber(Math.round(e.average))+" / "+$.i18n("day")+" \n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"lang":return t.lang;case"title":return t.label;case"badges":return t.badges.sort().join("");case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),o=Object.keys(t),a=$.Deferred(),r=[],s=0,l={},c=o.length,u=[],d=[],h=function o(h){var f=t[h],p=encodeURIComponent(f.title),g="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f.lang+"."+e.baseProject+("/"+$(e.config.platformSelector).val()+"/"+$(e.config.agentSelector).val()+"/"+p+"/daily")+("/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat)),m=$.ajax({url:g,dataType:"json"});r.push(m),m.done(function(t){d.push({badges:f.badges,dbName:h,lang:f.lang,title:f.title,url:f.url,items:t.items})}).fail(function(t){var i="Error in Cassandra table storage backend"===t.responseJSON.title,n=e.getPageLink(f.title,f.lang+"."+e.baseProject+".org");if(i){if(l[h]?l[h]++:l[h]=1,l[h]<3)return c++,e.rateLimit(o,e.config.apiThrottle,e)(h);u.push(n)}else e.writeMessage(n+": "+$.i18n("api-error","Pageviews API")+" - "+t.responseJSON.title);404!==t.status&&(hadFailure=!0)}).always(function(){e.updateProgressBar(++s,c),s===c&&(u.length&&e.writeMessage($.i18n("api-error-timeout",""+u.map(function(t){return""+t+" "}).join("")+" ")),a.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return o.forEach(function(t,e){f(t)}),a}},{key:"getInterwikiData",value:function(t,e){var i=this,n=$.Deferred(),o="https://www.wikidata.org/w/api.php?action=wbgetentities&sites="+t+("&titles="+encodeURIComponent(e)+"&props=sitelinks/urls|datatype&format=json&callback=?");return $.getJSON(o).done(function(t){if(t.error)return n.reject($.i18n("api-error","Wikidata")+": "+t.error.info);if(t.entities[-1])return n.reject(""+e.descore().escape()+" - "+$.i18n("api-error-no-data"));var o=Object.keys(t.entities)[0],a=t.entities[o].sitelinks,r={},s=new RegExp("^https://[\\w-]+\\."+i.baseProject+"\\.org");return Object.keys(a).forEach(function(t){var e=a[t].site.replace(/-/g,"_");s.test(a[t].url)&&u[e]&&(a[t].lang=u[e].replace(/\.wiki.*$/,""),r[t]=a[t])}),n.resolve(r)}),n}},{key:"getPageNameFromURL",value:function(t){return t.includes("?")?t.match(/\?(?:.*\b)?title=(.*?)(?:&|$)/)[1]:t.match(/\/wiki\/(.*?)(?:\?|$)/)[1]}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString("pages"));$(this.config.projectInput).val(e.project),this.validateDateRange(e),this.patchUsage(),$(".site-notice .alert-danger").length&&delete e.page,$(this.config.platformSelector).val(e.platform),$(this.config.agentSelector).val(e.agent),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.page?this.getPageInfo([e.page]).done(function(e){var i=Object.keys(e)[0];return e[i].missing?(t.setState("initial"),t.writeMessage(t.getPageLink(i)+": "+$.i18n("api-error-no-data"))):($(t.config.sourceInput).val(i),void t.processInput())}).fail(function(){t.writeMessage($.i18n("api-error-unknown","Info"))}):$(this.config.sourceInput).focus()}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$("output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible");break;case"invalid":}}},{key:"processInput",value:function(){var t=this,e=$(this.config.sourceInput).val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html($(t.config.dateRangeSelector).val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500);var n=Object.keys(u).find(function(e){return u[e]===$(t.config.projectInput).val()});$(".progress-counter").text($.i18n("fetching-data","Wikidata")),this.getInterwikiData(n,e).done(function(n){t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var o=t.getPageLink(e,t.project);setTimeout(function(){t.buildMotherDataset(e,o,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))})}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),$(this.config.sourceInput).typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"query",list:"prefixsearch",format:"json",pssearch:t}},preProcess:function(t){var e=t.query.prefixsearch.map(function(t){return t.title});return e}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this,!0)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t=this,e="data:text/csv;charset=utf-8,Language,Title,Badges,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(i){var n='"'+i.label.descore().replace(/"/g,'""')+'"',o='"'+i.badges.map(function(e){return t.config.badges[e].name.replace(/"/g,'""')})+'"';e+=[i.lang,n,o].concat(i.data).join(",")+"\n"}),this.downloadData(e,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return $(this.config.sourceInput).data("typeahead")}}]),e}(mix(d).with(h,f));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.config.maxDate)||r.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var a=i.getDateHeadings(!1),r=new Array(a.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),r[a.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===a&&(e.pageViewsData=s,i.resolve(s),r.length&&e.writeMessage($.i18n("api-error-timeout",""+r.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,a){var r=n.controller.getDatasetMeta(a);Chart.helpers.each(r.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var a=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(a-t._model.y)/a>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;io?-e.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-attributes-alt glyphicon-sort-by-attributes").addClass("glyphicon-sort");var o=1===parseInt(this.direction,10)?"glyphicon-sort-by-attributes-alt":"glyphicon-sort-by-attributes";$(".sort-link--"+this.sort+" span").addClass(o).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$("output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):(i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),i.scales.xAxes[0].time.displayFormats.day=this.dateFormat);var o=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(o,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)!==-1}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:a(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY",
-"km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",
-kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
+"km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",
+kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
diff --git a/public_html/massviews/application.js b/public_html/massviews/application.js
index 873f59dab..5222f2f64 100644
--- a/public_html/massviews/application.js
+++ b/public_html/massviews/application.js
@@ -11,5 +11,5 @@ i.lastTooltipActive=i.lastTooltipActive||[],"mouseout"===t.type?(i.active=[],i.t
},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,a=t.defaults.global,r=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(r.fontSize,a.defaultFontSize),h=e.getValueOrDefault(r.fontStyle,a.defaultFontStyle),f=e.getValueOrDefault(r.fontFamily,a.defaultFontFamily),p=e.fontString(d,h,f),g=e.getValueOrDefault(s.fontSize,a.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),r.display&&c){i.longestTextCache||(i.longestTextCache={});var k=e.longestText(i.ctx,p,i.ticks,i.longestTextCache),v=e.numberOfLabelLines(i.ticks),y=.5*d;if(u){i.longestLabelWidth=k;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*v+y*v;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=p;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var S=i.maxWidth-n.width,M=r.mirror;M?k=0:k+=i.options.ticks.padding,S>k?n.width+=k:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),a=o*t+i.paddingLeft;e&&(a+=o/2);var r=i.left+Math.round(a);return r+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var a,r,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,f=c.autoSkip,p=n.isHorizontal();c.maxTicksLimit&&(r=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),k=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),v=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=e.fontString(m,k,v),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),S=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),M=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),Y=e.fontString(C,S,M),_=e.toRadians(n.labelRotation),T=Math.cos(_),P=n.longestLabelWidth*T;s.fillStyle=g;var I=[];if(p){if(a=!1,h&&(P/=2),(P+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(a=1+Math.floor((P+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),r&&n.ticks.length>r)for(;!a||n.ticks.length/(a||1)>r;)a||(a=1),a+=1;f||(a=!1)}var A="right"===o.position?n.left:n.right-w,O="right"===o.position?n.left+w:n.right,L="bottom"===o.position?n.top:n.bottom-w,$="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,r){if(void 0!==t&&null!==t){var s=n.ticks.length===r+1,l=a>1&&r%a>0||r%a===0&&r+a>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,f;r===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,f=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,r),f=e.getValueAtIndexOrDefault(u.color,r));var g,m,k,v,y,D,C,S,M,Y,T="middle",P="middle";if(p){h||(P="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(r)+e.aliasPixel(d);M=n.getPixelForTick(r,u.offsetGridLines)+c.labelOffset,Y=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=k=y=C=E,m=L,v=$,D=i.top,S=i.bottom}else{"left"===o.position?c.mirror?(M=n.right+c.padding,T="left"):(M=n.right-c.padding,T="right"):c.mirror?(M=n.left-c.padding,T="right"):(M=n.left+c.padding,T="left");var F=n.getPixelForTick(r);F+=e.aliasPixel(d),Y=n.getPixelForTick(r,u.offsetGridLines),g=A,k=O,y=i.left,C=i.right,m=v=D=S=F}I.push({tx1:g,ty1:m,tx2:k,ty2:v,x1:y,y1:D,x2:C,y2:S,labelX:M,labelY:Y,glWidth:d,glColor:f,glBorderDash:b,glBorderDashOffset:x,rotation:-1*_,label:t,textBaseline:P,textAlign:T})}}}),e.each(I,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var a=t[e];if(a&&a.hasValue()){var r=a.tooltipPosition();n.push(r.x),o.push(r.y)}}var s=0,l=0;for(e=0;e0){var a=t[0];a.xLabel?i=a.xLabel:o>0&&a.indexe;++e)p.push(n(c[e]));s.itemSort&&(p=p.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(p,function(t){h.push(s.callbacks.labelColor.call(r,t,d))}),o.extend(l,{title:r.getTitle(p,u),beforeBody:r.getBeforeBody(p,u),body:r.getBody(p,u),afterBody:r.getAfterBody(p,u),footer:r.getFooter(p,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:o.getValueOrDefault(f.padding,2),labelColors:h});var g=r.getTooltipSize(l);r.determineAlignment(g),o.extend(l,r.getBackgroundPoint(l,g))}else r._model.opacity=0;return t&&s.custom&&s.custom.call(r,l),r},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,a=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=r*l,i.height+=(r-1)*t.titleSpacing,i.height+=r?t.titleMarginBottom:0,i.height+=a*c,i.height+=a?(a-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var a,r,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(a=function(t){return u>=t},r=function(t){return t>u}):(a=function(e){return e<=t.width/2},r=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},a(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):r(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,a=t.cornerRadius,r=t.xAlign,s=t.yAlign,l=n+o,c=a+o;return"right"===r?i.x-=e.width:"center"===r&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===r?i.x+=l:"right"===r&&(i.x-=l):"left"===r?i.x-=c:"right"===r&&(i.x+=c),i},drawCaret:function(t,e,i){var n,a,r,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,f=u.cornerRadius,p=u.xAlign,g=u.yAlign,m=t.x,k=t.y,v=e.width,y=e.height;"center"===g?("left"===p?(n=m,a=n-h,r=n):(n=m+v,a=n+h,r=n),l=k+y/2,s=l-h,c=l+h):("left"===p?(n=m+f,a=n+h,r=a+h):"right"===p?(n=m+v-f,a=n-h,r=a-h):(a=m+v/2,n=a-h,r=a+h),"top"===g?(s=k,l=s-h,c=s):(s=k+y,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(a,l),d.lineTo(r,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=a.length;u>c;++c)i.fillText(a[c],t.x,t.y),t.y+=r+s,c+1===a.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var a=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(a,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+r};o.each(e.beforeBody,d);var h=s.length>1;u=h?a+2:0,o.each(s,function(r,s){o.each(r.before,d),o.each(r.lines,function(r){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,a,a),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,a,a),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=c),d(r)}),o.each(r.after,d)}),u=0,o.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var a=e.footer;if(a.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=o.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(a,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=o.color(e.backgroundColor);t.fillStyle=r.alpha(a*r.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;s>a;)a+=2*Math.PI;var c=a>=s&&l>=a,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,f=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(f+=h/2),o.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),a=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),r=a/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=r/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=a(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(r-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var f=1;h>f;++f)n.push(u+f*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+a,r=n),t.x-aD?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,S=360*C/(2*Math.PI)%360;0===S||180===S?c.textAlign="center":180>S?c.textAlign="left":c.textAlign="right",90===S||270===S?c.textBaseline="middle":S>270||90>S?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var f=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var p=0,g=i.units[p];p=Math.ceil(n.scaleSizeInUnits/f)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/f)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=y.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},logarithmicCheckbox:".logarithmic-scale-option",sources:{category:{placeholder:"https://en.wikipedia.org/wiki/Category:Folk_musicians_from_New_York",descriptionParams:function(){return[""+$.i18n("category").toLowerCase()+" "]},type:"text"},wikilinks:{placeholder:"https://en.wikipedia.org/wiki/Book:New_York_City",descriptionParams:function(){return["https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Wikilinks"]},type:"text"},pagepile:{placeholder:"12345",descriptionParams:function(){return["PagePile "]},type:"number"},subpages:{placeholder:"https://en.wikipedia.org/wiki/User:Example",descriptionParams:function(){return[""+$.i18n("subpages").toLowerCase()+" "]},type:"text"},transclusions:{placeholder:"https://en.wikipedia.org/wiki/Template:Infobox_Olympic_games",descriptionParams:function(){return["https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Transclusion"]},type:"text"},quarry:{placeholder:"12345",descriptionParams:function(){return["Quarry "]},type:"number"},hashtag:{placeholder:"#editathon",descriptionParams:function(){return[" "+$.i18n("hashtag-credits","Wikipedia social search "),""+$.i18n("hashtag").toLowerCase()+" "]},type:"string"},"external-link":{placeholder:"*.nycgo.com",descriptionParams:function(){return[""+$.i18n("external-link").toLowerCase()+" "]},type:"string"}},platformSelector:"#platform_select",sourceButton:"#source_button",sourceInput:"#source_input",formStates:["initial","processing","complete","invalid"],timestampFormat:"YYYYMMDD00",validateParams:["source","subjectpage","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","original"],source:["pagepile","wikilinks","category","subpages","transclusions","quarry","hashtag","external-link"],view:["list","chart"],subjectpage:["0","1"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e"),$(this.config.sourceInput).prop("type",this.config.sources[i].type).prop("placeholder",this.config.sources[i].placeholder).val(""),$(".source-description").html((e=$).i18n.apply(e,["massviews-"+i+"-description"].concat(n(this.config.sources[i].descriptionParams())))),"category"===i?$(".category-subject-toggle").show():$(".category-subject-toggle").hide(),"quarry"===i||"external-link"===i?($(".massviews-source-input").addClass("project-enabled"),$(".project-input").prop("disabled",!1)):($(".massviews-source-input").removeClass("project-enabled"),$(".project-input").prop("disabled",!0)),$(this.config.sourceInput).focus()}},{key:"getParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e={platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val(),source:$(this.config.sourceButton).data("value"),target:$(this.config.sourceInput).val().score()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),"category"===e.source?e.subjectpage=$(".category-subject-toggle--input").is(":checked")?"1":"0":"quarry"!==e.source&&"external-link"!==e.source||(e.project=$(".project-input").val()),t||(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(window.history&&window.history.replaceState){if(t)return history.replaceState(null,document.title,location.href.split("?")[0]);window.history.replaceState({},document.title,"?"+$.param(this.getParams())),$(".permalink").prop("href","/massviews?"+$.param(this.getPermaLink()))}}},{key:"renderData",value:function(){var t=this;c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){var i=$("#source_button").data("value"),n=void 0;n=["wikilinks","subpages","transclusions"].includes(i)?$.i18n("num-"+i,e.length-("subpages"===i?1:0)):$.i18n("num-pages",e.length),$(".output-totals").html(""+$.i18n("totals")+" \n "+$.i18n(n,e.length)+" \n "+t.formatNumber(t.outputData.sum)+" \n "+t.formatNumber(Math.round(t.outputData.average))+" / "+$.i18n("day")+" "),$("#output_list").html(""),e.forEach(function(e,i){$("#output_list").append("\n "+(i+1)+" \n "+t.getPageLink(e.label,e.project)+' \n "+t.formatNumber(e.sum)+" \n "+t.formatNumber(Math.round(e.average))+" / "+$.i18n("day")+" \n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"original":return t.index;case"title":return t.label;case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t,e){var i=this,n=this.daterangepicker.startDate.startOf("day"),o=this.daterangepicker.endDate.startOf("day"),a=$.Deferred(),r=0,l={},c=t.length,u=[],d=[],h=function t(h){var f=void 0;if(e)f=e;else{var p=i.getWikiPageFromURL(h),g=s(p,2);f=g[0],h=g[1]}var m=encodeURIComponent(h),k="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+f+("/"+$(i.config.platformSelector).val()+"/"+$(i.config.agentSelector).val()+"/"+m+"/daily")+("/"+n.format(i.config.timestampFormat)+"/"+o.format(i.config.timestampFormat)),v=$.ajax({url:k,dataType:"json"});v.done(function(t){d.push({title:h,project:f,items:t.items})}).fail(function(e){var n="Error in Cassandra table storage backend"===e.responseJSON.title;return n&&(l[h]?l[h]++:l[h]=1,l[h]<3)?(c++,i.rateLimit(t,100,i)(h)):(n?u.push(h):i.writeMessage(i.getPageLink(h,f)+": "+$.i18n("api-error","Pageviews API")+" - "+e.responseJSON.title),void(404!==e.status&&(hadFailure=!0)))}).always(function(){i.updateProgressBar(++r,c),r===c&&(u.length&&i.writeMessage($.i18n("api-error-timeout",""+u.map(function(t){return""+i.getPageLink(t,f)+" "}).join("")+" ")),a.resolve(d))})},f=this.rateLimit(h,this.config.apiThrottle,this);return t.forEach(function(t,e){f(t)}),a}},{key:"buildMotherDataset",value:function(t,e,i){var n=this;this.outputData={labels:this.getDateHeadings(!0),link:e,listData:[]};var o=moment(this.daterangepicker.startDate),a=moment(this.daterangepicker.endDate),r=this.numDaysInRange(),l=new Array(r).fill(0),c=[];i.forEach(function(t,e){var i=t.items.map(function(t){return t.views}),u=i.reduce(function(t,e){return t+e});n.outputData.listData.push({data:i,label:t.title,project:t.project,sum:u,average:u/r,index:e});var d=n.fillInZeros(t.items,o,a),h=s(d,2),f=h[0],p=h[1];p.forEach(function(t){c.includes(t)||c.push(t)}),l=l.map(function(t,e){return t+f[e].views})});var u=l.reduce(function(t,e){return(t||0)+(e||0)});if(Object.assign(this.outputData,{datasets:[{label:t,data:l,sum:u,average:u/r}],datesWithoutData:c,sum:u,average:u/r}),c.length){var d=c.map(function(t){return moment(t).format(n.dateFormat)});this.writeMessage($.i18n("api-incomplete-data",d.sort().join(" · "),d.length))}return this.hadFailure||simpleStorage.set(this.getCacheKey(),this.outputData,{TTL:6e5}),this.outputData}},{key:"getPileURL",value:function(t){return"http://tools.wmflabs.org/pagepile/api.php?action=get_data&id="+t}},{key:"getPileLink",value:function(t){return"Page Pile "+t+" "}},{key:"getPagePile",value:function(t){var e=this,i=$.Deferred(),n="https://tools.wmflabs.org/pagepile/api.php?id="+t+"&action=get_data&format=json&metadata=1";return $.ajax({url:n,dataType:"jsonp"}).done(function(n){var o=Object.keys(n.pages);return o.length>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",e.getPileLink(t),e.formatNumber(o.length),e.config.apiLimit)),o=o.slice(0,e.config.apiLimit)),i.resolve({id:n.id,wiki:n.wiki,pages:o})}).fail(function(n){return i.reject(e.getPileLink(t)+": "+$.i18n("api-error-no-data"))}),i}},{key:"getWikiPageFromURL",value:function(t){var e=void 0;return e=t.includes("?")?t.match(/\/\/(.*?)\/w\/.*\?(?:.*\b)?title=(.*?)(?:&|$)/):t.match(/\/\/(.*?)\/wiki\/(.*?)(?:\?|$)/),e?e.slice(1):[null,null]}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString());this.validateDateRange(e),this.patchUsage(),this.updateSourceInput($(".source-option[data-value="+e.source+"]")[0]),e.target&&$(this.config.sourceInput).val(decodeURIComponent(e.target).descore()),$(".site-notice .alert-danger").length?delete e.target:e.overflow&&"pagepile"===e.source&&e.target&&this.toastInfo($.i18n("massviews-redirect",$.i18n("title"),10,this.getPileLink(e.target))),$(this.config.platformSelector).val(e.platform),$(this.config.agentSelector).val(e.agent),["sort","direction","view","source","subjectpage"].forEach(function(i){t[i]=e[i]}),"quarry"!==e.source&&"external-link"!==e.source||!e.project||$(".project-input").val(e.project),"1"===e.subjectpage&&$(".category-subject-toggle--input").prop("checked",!0),e.target&&this.processInput()}},{key:"setState",value:function(t,e){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.updateProgressBar(0),this.clearMessages(),this.assignDefaults(),this.destroyChart(),$("output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus(),"function"==typeof e&&e.call(this);break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible");break;case"invalid":}}},{key:"apiErrorReset",value:function(t,e){var i=this;this.setState("initial",function(){var n=void 0;n=e?$.i18n("api-error",t)+": "+e:""+$.i18n("api-error-unknown",t),i.writeMessage(n)})}},{key:"processPagePile",value:function(t){var e=this,i=$(this.config.sourceInput).val();$(".progress-counter").text($.i18n("fetching-data","Page Pile API")),this.getPagePile(i).done(function(n){if(!n.pages.length)return e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",e.getPileLink(i)))});var o=d[n.wiki];"en.wikipedia.org"===o&&(n.pages=n.pages.map(function(t){return t.replace(/^Project:Wikipedia:/,"Wikipedia:")})),e.getPageViewsData(n.pages,o).done(function(i){var a="Page Pile #"+n.id;$(".output-title").text(a).prop("href",e.getPileURL(n.id)),$(".output-params").html("\n "+$(e.config.dateRangeSelector).val()+'\n —\n \n '+o.replace(/.org$/,"").escape()+"\n \n "),t(a,e.getPileLink(n.id),i)})}).fail(function(t){e.setState("initial"),"string"==typeof t?e.writeMessage(t):e.writeMessage($.i18n("api-error-unknown","Page Pile"))})}},{key:"processCategory",value:function(t,e,i){var n=this,o={list:"categorymembers",cmlimit:500,cmtitle:e,prop:"categoryinfo",titles:e},a=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Category API")),this.massApi(o,t,"cmcontinue","categorymembers").done(function(o){if(o.error)return n.apiErrorReset("Category API",o.error.info);var r=o.pages[0];if(r.missing)return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var s=r.categoryinfo.size,l=n.getSiteInfo(t)?n.getSiteInfo(t).namespaces:void 0,c=o.categorymembers;if(!c.length)return n.setState("initial",function(){n.writeMessage($.i18n("massviews-empty-set",a))});s>n.config.apiLimit&&(n.writeMessage($.i18n("massviews-oversized-set",a,n.formatNumber(s),n.config.apiLimit)),c=c.slice(0,n.config.apiLimit));var u=n.mapCategoryPageNames(c,l);n.getPageViewsData(u,t).done(function(t){i(e,a,t)})}).fail(function(t){n.setState("initial"),t&&"string"==typeof t.error?n.writeMessage($.i18n("api-error",a+": "+t.error)):n.writeMessage($.i18n("api-error-unknown",a))})}},{key:"processHashtag",value:function(t){var e=this,i=$(this.config.sourceInput).val().replace(/^#/,""),n='#'+i.escape()+" ";$(".progress-counter").text($.i18n("fetching-data","Hashtag API")),$.get("//tools.wmflabs.org/hashtags/csv/"+i+"?limit=5000").done(function(o){for(var a=",",r=new RegExp("(\\"+a+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|'+('([^"\\'+a+"\\r\\n]*))"),"gi"),s=[[]],l=void 0;l=r.exec(o);){var c=l[1];c.length&&c!==a&&s.push([]);var u=void 0;u=l[2]?l[2].replace(new RegExp('""',"g"),'"'):l[3],s[s.length-1].push(u)}return 1!==s[s.length-1].length||s[s.length-1][0]||(s=s.slice(0,-1)),1===s.length?e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",n))}):void e.getPageURLsFromHashtagCSV(s).done(function(o){var a=o.length;a>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",n,e.formatNumber(a),e.config.apiLimit)),o=o.slice(0,e.config.apiLimit)),e.getPageViewsData(o).done(function(e){t(i,n,e)})}).fail(function(){return e.apiErrorReset("Siteinfo API")})}).fail(function(){return e.apiErrorReset("Hashtag API")})}},{key:"getPageURLsFromHashtagCSV",value:function(t){var e=this,i=$.Deferred(),n=t[0].indexOf("spaced_title"),o=t[0].indexOf("rc_namespace"),a=t[0].indexOf("diff_url"),r=[];return t.slice(1).forEach(function(s){var l=s[a].match(/https:\/\/(.*?\.org)\//)[1];e.fetchSiteInfo(l).done(function(){var a=e.getSiteInfo(l).namespaces[s[o]]["*"];r.push("https://"+l+"/wiki/"+(a?a+":":"")+s[n]),r.length===t.length-1&&i.resolve(r.unique())}).fail(function(){i.reject()})}),i}},{key:"processSubpages",
value:function(t,e,i){var n,o=this,a=e.descore(),r=0,s=a;for(var l in this.getSiteInfo(t).namespaces)if("0"!==l){var c=this.getSiteInfo(t).namespaces[l]["*"]+":";a.startsWith(c)&&(r=this.getSiteInfo(t).namespaces[l].id,s=e.substring(c.length))}var u=r%2===0?r+1:r-1,d=[];$(".progress-counter").text($.i18n("fetching-data","Allpages API")),[r,u].forEach(function(e){var i={list:"allpages",aplimit:500,apnamespace:e,apprefix:s+"/"};d.push(o.massApi(i,t,"apcontinue","allpages"))});var h=this.getPageLink(e,t);(n=$).when.apply(n,d).done(function(n,a){var r=[n,a].filter(function(t){return!!t.error});if(r.length)return o.setState("initial",function(){r.forEach(function(t){o.writeMessage($.i18n("api-error","Allpages API")+": "+t.error.info.escape())})}),!1;var s=n.allpages.concat(a.allpages),l=s.length;if(0===l)return o.setState("initial",function(){o.writeMessage($.i18n("api-error-no-data"))});l>o.config.apiLimit&&(o.writeMessage($.i18n("massviews-oversized-set",h,o.formatNumber(l),o.config.apiLimit)),s=s.slice(0,o.config.apiLimit));var c=[e].concat(s.map(function(t){return t.title}));o.getPageViewsData(c,t).done(function(t){i(e,h,t)})}).fail(function(t){o.setState("initial"),t&&"string"==typeof t.error?o.writeMessage($.i18n("api-error",h+": "+t.error)):o.writeMessage($.i18n("api-error-unknown",h))})}},{key:"processTemplate",value:function(t,e,i){var n=this,o={prop:"transcludedin",tilimit:500,titles:e},a=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Transclusion API")),this.massApi(o,t,"ticontinue",function(t){return t.pages[0].transcludedin}).done(function(o){if(o.error)return n.apiErrorReset("Transclusion API",o.error.info);if(!o.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=o.pages.map(function(t){return t.title});o.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",a,n.config.apiLimit)),n.getPageViewsData(r,t).done(function(t){i(e,a,t)})}).fail(function(t){n.setState("initial"),t&&"string"==typeof t.error?n.writeMessage($.i18n("api-error",a+": "+t.error)):n.writeMessage($.i18n("api-error-unknown",a))})}},{key:"processWikiPage",value:function(t,e,i){var n=this,o={pllimit:500,prop:"links",titles:e},a=this.getPageLink(e,t);$(".progress-counter").text($.i18n("fetching-data","Links API")),this.massApi(o,t,"plcontinue",function(t){return t.pages[0].links}).done(function(o){if(o.error)return n.apiErrorReset("Links API",o.error.info);if(!o.pages[0])return n.setState("initial",function(){n.writeMessage($.i18n("api-error-no-data"))});var r=o.pages.map(function(t){return t.title});return r.length?(o.continue&&n.writeMessage($.i18n("massviews-oversized-set-unknown",a,n.config.apiLimit)),void n.getPageViewsData(r,t).done(function(t){i(e,a,t)})):n.setState("initial",function(){n.writeMessage($.i18n("massviews-empty-set",a))})}).fail(function(t){var e=t&&"string"==typeof t.error?t.error:null;n.apiErrorReset("Links API",e)})}},{key:"processQuarry",value:function(t){var e=this,i=$(".project-input").val(),n=$(this.config.sourceInput).val();if(this.validateProject(i)){var o="https://quarry.wmflabs.org/query/"+n+"/result/latest/0/json",a="Quarry "+n+" ";$(".progress-counter").text($.i18n("fetching-data","Quarry API")),$.getJSON(o).done(function(o){var r=o.headers.indexOf("page_title");if(r===-1)return e.setState("initial"),e.writeMessage($.i18n("invalid-quarry-dataset","page_title"));var s=o.rows.map(function(t){return t[r]});s.length>e.config.apiLimit&&(e.writeMessage($.i18n("massviews-oversized-set",a,e.formatNumber(s.length),e.config.apiLimit)),s=s.slice(0,e.config.apiLimit)),e.getPageViewsData(s,i).done(function(e){t(n,a,e)})}).fail(function(t){return e.setState("initial"),e.writeMessage($.i18n("api-error-unknown","Quarry API"),!0)})}}},{key:"processExternalLink",value:function(t){var e=this,i=$(".project-input").val();if(this.validateProject(i)){var n=/^(?:\/\/|(ftps?|git|gopher|https?|ircs?|mms|nntp|redis|sftp|ssh|svn|telnet|worldwind):\/\/|(bitcoin|geo|magnet|mailto|news|sips?|sms|tel|urn|xmpp):)/,o=$(this.config.sourceInput).val(),a=(n.exec(o)||[,])[1]||"http",r=o.replace(n,""),s={list:"exturlusage",eulimit:500,eunamespace:0,euprotocol:a,euquery:r},l=""+o+" ";$(".progress-counter").text($.i18n("fetching-data","External link API")),this.massApi(s,i,"euoffset","exturlusage").done(function(n){if(n.error)return e.apiErrorReset("External link API",n.error.info);if(!n.exturlusage[0])return e.setState("initial",function(){e.writeMessage($.i18n("api-error-no-data"))});var a=n.exturlusage.map(function(t){return t.title}).unique();return a.length?(n.continue&&e.writeMessage($.i18n("massviews-oversized-set-unknown",l,e.config.apiLimit)),void e.getPageViewsData(a,i).done(function(e){t(o,l,e)})):e.setState("initial",function(){e.writeMessage($.i18n("massviews-empty-set",l))})}).fail(function(t){e.setState("initial"),t&&"string"==typeof t.error?e.writeMessage($.i18n("api-error",l+": "+t.error)):e.writeMessage($.i18n("api-error-unknown",l))})}}},{key:"validateProject",value:function(t){return!!t&&(t=t.replace(/^www\./,""),!!h.includes(t)||(this.setState("initial"),this.writeMessage($.i18n("invalid-project",""+t.escape()+" "),!0),!1))}},{key:"mapCategoryPageNames",value:function(t,e){var i=[];return t.forEach(function(t){if(e&&t.ns%2===1){var n=e[t.ns].canonical,o=e[t.ns-1].canonical||"";i.push(t.title.replace(n,o).replace(/^\:/,""))}else i.push(t.title)}),i}},{key:"processInput",value:function(){var t=this;this.setState("processing");var e=function(){$(".output-title").html(t.outputData.link),$(".output-params").html($(t.config.dateRangeSelector).val()),t.setInitialChartType(),t.renderData()};if(this.isRequestCached())return $(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),e()},500);var i=function(i,n,o){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset")),setTimeout(function(){t.buildMotherDataset(i,n,o),e()},250)},n=$("#source_button").data("value");switch(n){case"pagepile":return this.processPagePile(i);case"quarry":return this.processQuarry(i);case"hashtag":return this.processHashtag(i);case"external-link":return this.processExternalLink(i)}var o=this.getWikiPageFromURL($(this.config.sourceInput).val()),a=s(o,2),r=a[0],l=a[1];if(!r||!l)return this.setState("initial",function(){t.writeMessage($.i18n("invalid-"+("category"===n?"category":"page")+"-url"))});if(this.validateProject(r))switch(l=decodeURIComponent(l).replace(/\/$/,""),n){case"category":$(".category-subject-toggle--input").is(":checked")?this.fetchSiteInfo(r).then(function(){t.processCategory(r,l,i)}):this.processCategory(r,l,i);break;case"subpages":this.fetchSiteInfo(r).then(function(){return t.processSubpages(r,l,i)});break;case"wikilinks":this.processWikiPage(r,l,i);break;case"transclusions":this.processTemplate(r,l,i)}}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"baseProject",get:function(){return this.project.split(".")[1]}}]),e}(mix(f).with(p,g));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new m})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.config.maxDate)||r.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var a=i.getDateHeadings(!1),r=new Array(a.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),r[a.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===a&&(e.pageViewsData=s,i.resolve(s),r.length&&e.writeMessage($.i18n("api-error-timeout",""+r.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,a){var r=n.controller.getDatasetMeta(a);Chart.helpers.each(r.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var a=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(a-t._model.y)/a>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;io?-e.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-attributes-alt glyphicon-sort-by-attributes").addClass("glyphicon-sort");var o=1===parseInt(this.direction,10)?"glyphicon-sort-by-attributes-alt":"glyphicon-sort-by-attributes";$(".sort-link--"+this.sort+" span").addClass(o).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$("output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):(i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),i.scales.xAxes[0].time.displayFormats.day=this.dateFormat);var o=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(o,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)!==-1}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:a(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",
-amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
+return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol?"symbol":typeof t},c=function(){function t(t,e){for(var i=0;iThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:a(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",
+amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
diff --git a/public_html/meta/application.js b/public_html/meta/application.js
index 32dd8f9f4..15c76e4e2 100644
--- a/public_html/meta/application.js
+++ b/public_html/meta/application.js
@@ -12,5 +12,5 @@ r.controlPointPreviousY=t(r.controlPointPreviousY,c.top,c.bottom),r.controlPoint
},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),nt?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};r.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),r.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),r.getRelativePosition=function(t,e){var i,n,o=t.originalEvent||t,a=t.currentTarget||t.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=o.clientX,n=o.clientY);var c=parseFloat(r.getStyle(a,"padding-left")),u=parseFloat(r.getStyle(a,"padding-top")),d=parseFloat(r.getStyle(a,"padding-right")),h=parseFloat(r.getStyle(a,"padding-bottom")),p=s.right-s.left-c-d,f=s.bottom-s.top-u-h;return i=Math.round((i-s.left-c)/p*a.width/e.currentDevicePixelRatio),n=Math.round((n-s.top-u)/f*a.height/e.currentDevicePixelRatio),{x:i,y:n}},r.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},r.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=r.noop},r.bindEvents=function(t,e,i){var n=t.events=t.events||{};r.each(e,function(e){n[e]=function(){i.apply(t,arguments)},r.addEvent(t.chart.canvas,e,n[e])})},r.unbindEvents=function(t,e){var i=t.chart.canvas;r.each(e,function(t,e){r.removeEvent(i,e,t)})},r.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-left"),10),n=parseInt(r.getStyle(e,"padding-right"),10),o=e.clientWidth-i-n,a=r.getConstraintWidth(t);return isNaN(a)?o:Math.min(o,a)},r.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-top"),10),n=parseInt(r.getStyle(e,"padding-bottom"),10),o=e.clientHeight-i-n,a=r.getConstraintHeight(t);return isNaN(a)?o:Math.min(o,a)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t){var e=t.ctx,i=t.canvas,n=i.width,o=i.height,r=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==r&&(i.height=o*r,i.width=n*r,e.scale(r,r),t.originalDevicePixelRatio=t.originalDevicePixelRatio||r),i.style.width=n+"px",i.style.height=o+"px"},r.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},r.fontString=function(t,e,i){return e+" "+t+"px "+i},r.longestText=function(t,e,i,n){n=n||{};var o=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},a=n.garbageCollect=[],n.font=e),t.font=e;var s=0;r.each(i,function(e){void 0!==e&&null!==e&&r.isArray(e)!==!0?s=r.measureText(t,o,a,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,o,a,s,e))})});var l=a.length/2;if(l>i.length){for(var c=0;l>c;c++)delete o[a[c]];a.splice(0,l)}return s},r.measureText=function(t,e,i,n,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,i.push(o)),r>n&&(n=r),n},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.drawRoundedRectangle=function(t,e,i,n,o,r){t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+r),t.lineTo(e+n,i+o-r),t.quadraticCurveTo(e+n,i+o,e+n-r,i+o),t.lineTo(e+r,i+o),t.quadraticCurveTo(e,i+o,e,i+o-r),t.lineTo(e,i+r),t.quadraticCurveTo(e,i,e+r,i),t.closePath()},r.color=function(e){return n?n(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.error("Color.js not found!"),e)},r.addResizeListener=function(t,e){var i=document.createElement("iframe"),n="chartjs-hidden-iframe";i.classlist?i.classlist.add(n):i.setAttribute("class",n),i.tabIndex=-1;var o=i.style;o.width="100%",o.display="block",o.border=0,o.height=0,o.margin=0,o.position="absolute",o.left=0,o.right=0,o.top=0,o.bottom=0,t.insertBefore(i,t.firstChild),(i.contentWindow||i).onresize=function(){return e?e():void 0}},r.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},r.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.arrayEquals=function(t,e){var i,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;n>i;++i)if(o=t[i],a=e[i],o instanceof Array&&a instanceof Array){if(!r.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},r.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){var n=this,o=t.helpers;return n.config=i||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),n.ctx=e,n.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",n.width=e.canvas.width||parseInt(o.getStyle(e.canvas,"width"),10)||o.getMaximumWidth(e.canvas),n.height=e.canvas.height||parseInt(o.getStyle(e.canvas,"height"),10)||o.getMaximumHeight(e.canvas),n.aspectRatio=n.width/n.height,(isNaN(n.aspectRatio)||isFinite(n.aspectRatio)===!1)&&(n.aspectRatio=void 0!==i.aspectRatio?i.aspectRatio:2),n.originalCanvasStyleWidth=e.canvas.style.width,n.originalCanvasStyleHeight=e.canvas.style.height,o.retinaScale(n),n.controller=new t.Controller(n),o.addResizeListener(e.canvas.parentNode,function(){n.controller&&n.controller.config.options.responsive&&n.controller.resize()}),n.controller?n.controller:n};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('');for(var i=0;i '),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("");return e.push(" "),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){function o(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?g:b,w),x-=e.height):(e=t.update(k,y),b-=e.width),D.push({horizontal:i,minSize:e,box:t})}function r(t){var i=e.findNextWhere(D,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:C,right:_,top:0,bottom:0};t.update(t.options.fullWidth?g:b,m/2,n)}else t.update(i.minSize.width,x)}function a(t){var i=e.findNextWhere(D,function(e){return e.box===t}),n={left:0,right:0,top:S,bottom:M};i&&t.update(i.minSize.width,x,n)}function s(t){t.isHorizontal()?(t.left=t.options.fullWidth?l:C,t.right=t.options.fullWidth?i-l:C+b,t.top=O,t.bottom=O+t.height,O=t.bottom):(t.left=A,t.right=A+t.width,t.top=S,t.bottom=S+x,A=t.right)}if(t){var l=0,c=0,u=e.where(t.boxes,function(t){return"left"===t.options.position}),d=e.where(t.boxes,function(t){return"right"===t.options.position}),h=e.where(t.boxes,function(t){return"top"===t.options.position}),p=e.where(t.boxes,function(t){return"bottom"===t.options.position}),f=e.where(t.boxes,function(t){return"chartArea"===t.options.position});h.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),p.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var g=i-2*l,m=n-2*c,v=g/2,y=m/2,k=(i-v)/(u.length+d.length),w=(n-y)/(h.length+p.length),b=g,x=m,D=[];e.each(u.concat(d,h,p),o);var C=l,_=l,S=c,M=c;e.each(u.concat(d),r),e.each(u,function(t){C+=t.width}),e.each(d,function(t){_+=t.width}),e.each(h.concat(p),r),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height}),e.each(u.concat(d),a),C=l,_=l,S=c,M=c,e.each(u,function(t){C+=t.width}),e.each(d,function(t){_+=t.width}),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height});var Y=n-S-M,T=i-C-_;(T!==b||Y!==x)&&(e.each(u,function(t){t.height=Y}),e.each(d,function(t){t.height=Y}),e.each(h,function(t){t.options.fullWidth||(t.width=T)}),e.each(p,function(t){t.options.fullWidth||(t.width=T)}),x=Y,b=T);var A=l,O=c;e.each(u.concat(h),s),A+=b,O+=x,e.each(d,s),e.each(p,s),t.chartArea={left:C,top:S,right:C+b,bottom:S+x},e.each(f,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(b,x)})}}}}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,o=n.getDatasetMeta(i);o.hidden=null===o.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=i.options,o=n.labels,r=n.display,a=i.ctx,s=t.defaults.global,l=e.getValueOrDefault,c=l(o.fontSize,s.defaultFontSize),u=l(o.fontStyle,s.defaultFontStyle),d=l(o.fontFamily,s.defaultFontFamily),h=e.fontString(c,u,d),p=i.legendHitBoxes=[],f=i.minSize,g=i.isHorizontal();if(g?(f.width=i.maxWidth,f.height=r?10:0):(f.width=r?10:0,f.height=i.maxHeight),r)if(a.font=h,g){var m=i.lineWidths=[0],v=i.legendItems.length?c+o.padding:0;a.textAlign="left",a.textBaseline="top",e.each(i.legendItems,function(t,e){var n=o.usePointStyle?c*Math.sqrt(2):o.boxWidth,r=n+c/2+a.measureText(t.text).width;m[m.length-1]+r+o.padding>=i.width&&(v+=c+o.padding,m[m.length]=i.left),p[e]={left:0,top:0,width:r,height:c},m[m.length-1]+=r+o.padding}),f.height+=v}else{var y=o.padding,k=i.columnWidths=[],w=o.padding,b=0,x=0,D=c+y;e.each(i.legendItems,function(t,e){var i=o.usePointStyle?2*o.boxWidth:o.boxWidth,n=i+c/2+a.measureText(t.text).width;x+D>f.height&&(w+=b+o.padding,k.push(b),b=0,x=0),b=Math.max(b,n),x+=D,p[e]={left:0,top:0,width:n,height:c}}),w+=b,k.push(b),f.width+=w}i.width=f.width,i.height=f.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,o=n.labels,r=t.defaults.global,a=r.elements.line,s=i.width,l=i.lineWidths;if(n.display){var c,u=i.ctx,d=e.getValueOrDefault,h=d(o.fontColor,r.defaultFontColor),p=d(o.fontSize,r.defaultFontSize),f=d(o.fontStyle,r.defaultFontStyle),g=d(o.fontFamily,r.defaultFontFamily),m=e.fontString(p,f,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=h,u.fillStyle=h,u.font=m;var v=o.boxWidth,y=i.legendHitBoxes,k=function(e,i,o){if(!(isNaN(v)||0>=v)){u.save(),u.fillStyle=d(o.fillStyle,r.defaultColor),u.lineCap=d(o.lineCap,a.borderCapStyle),u.lineDashOffset=d(o.lineDashOffset,a.borderDashOffset),u.lineJoin=d(o.lineJoin,a.borderJoinStyle),u.lineWidth=d(o.lineWidth,a.borderWidth),u.strokeStyle=d(o.strokeStyle,r.defaultColor);var s=0===d(o.lineWidth,a.borderWidth);if(u.setLineDash&&u.setLineDash(d(o.lineDash,a.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,c=l/Math.SQRT2,h=e+c,f=i+c;t.canvasHelpers.drawPoint(u,o.pointStyle,l,h,f)}else s||u.strokeRect(e,i,v,p),u.fillRect(e,i,v,p);u.restore()}},w=function(t,e,i,n){u.fillText(i.text,v+p/2+t,e),i.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(v+p/2+t,e+p/2),u.lineTo(v+p/2+t+n,e+p/2),u.stroke())},b=i.isHorizontal();c=b?{x:i.left+(s-l[0])/2,y:i.top+o.padding,line:0}:{x:i.left+o.padding,y:i.top+o.padding,line:0};var x=p+o.padding;e.each(i.legendItems,function(t,e){var n=u.measureText(t.text).width,r=o.usePointStyle?p+p/2+n:v+p/2+n,a=c.x,d=c.y;b?a+r>=s&&(d=c.y+=x,c.line++,a=c.x=i.left+(s-l[c.line])/2):d+x>i.bottom&&(a=c.x=a+i.columnWidths[c.line]+o.padding,d=c.y=i.top,c.line++),k(a,d,t),y[e].left=a,y[e].top=d,w(a,d,t,n),b?c.x+=r+o.padding:c.y+=x})}},handleEvent:function(t){var i=this,n=i.options,o="mouseup"===t.type?"click":t.type;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var r=e.getRelativePosition(t,i.chart.chart),a=r.x,s=r.y;if(a>=i.left&&a<=i.right&&s>=i.top&&s<=i.bottom)for(var l=i.legendHitBoxes,c=0;c=u.left&&a<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===o){n.onClick.call(i,t,i.legendItems[c]);break}if("mousemove"===o){n.onHover.call(i,t,i.legendItems[c]);break}}}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,o=this._plugins,r=o.length;for(i=0;r>i;++i)if(n=o[i],"function"==typeof n[t]&&n[t].apply(n,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=i,o.margins=e.extend({left:0,right:0,top:0,bottom:0},n),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,o=t.defaults.global,r=i.options.ticks,a=e.getValueOrDefault(r.fontSize,o.defaultFontSize),s=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),l=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),c=e.fontString(a,s,l);n.font=c;var u,d=n.measureText(i.ticks[0]).width,h=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=h/2+3,i.paddingLeft=d/2+3,i.longestTextCache||(i.longestTextCache={});for(var p,f,g=e.longestText(n,c,i.ticks,i.longestTextCache),m=g,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>v&&i.labelRotationi.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,f*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=p*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,r=t.defaults.global,a=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(a.fontSize,r.defaultFontSize),h=e.getValueOrDefault(a.fontStyle,r.defaultFontStyle),p=e.getValueOrDefault(a.fontFamily,r.defaultFontFamily),f=e.fontString(d,h,p),g=e.getValueOrDefault(s.fontSize,r.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),a.display&&c){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),y=e.numberOfLabelLines(i.ticks),k=.5*d;if(u){i.longestLabelWidth=v;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*y+k*y;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var _=i.maxWidth-n.width,S=a.mirror;S?v=0:v+=i.options.ticks.padding,_>v?n.width+=v:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=o*t+i.paddingLeft;e&&(r+=o/2);var a=i.left+Math.round(r);return a+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var r,a,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,p=c.autoSkip,f=n.isHorizontal();c.maxTicksLimit&&(a=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),v=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),y=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),k=e.fontString(m,v,y),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),_=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),S=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),M=e.fontString(C,_,S),Y=e.toRadians(n.labelRotation),T=Math.cos(Y),A=n.longestLabelWidth*T;s.fillStyle=g;var O=[];if(f){if(r=!1,h&&(A/=2),(A+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(r=1+Math.floor((A+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!r||n.ticks.length/(r||1)>a;)r||(r=1),r+=1;p||(r=!1)}var P="right"===o.position?n.left:n.right-w,I="right"===o.position?n.left+w:n.right,L="bottom"===o.position?n.top:n.bottom-w,$="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var s=n.ticks.length===a+1,l=r>1&&a%r>0||a%r===0&&a+r>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,p;a===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,p=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,a),p=e.getValueAtIndexOrDefault(u.color,a));var g,m,v,y,k,D,C,_,S,M,T="middle",A="middle";if(f){h||(A="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(a)+e.aliasPixel(d);S=n.getPixelForTick(a,u.offsetGridLines)+c.labelOffset,M=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=v=k=C=E,m=L,y=$,D=i.top,_=i.bottom}else{"left"===o.position?c.mirror?(S=n.right+c.padding,T="left"):(S=n.right-c.padding,T="right"):c.mirror?(S=n.left-c.padding,T="right"):(S=n.left+c.padding,T="left");var F=n.getPixelForTick(a);F+=e.aliasPixel(d),M=n.getPixelForTick(a,u.offsetGridLines),g=P,v=I,k=i.left,C=i.right,m=y=D=_=F}O.push({tx1:g,ty1:m,tx2:v,ty2:y,x1:k,y1:D,x2:C,y2:_,labelX:S,labelY:M,glWidth:d,glColor:p,glBorderDash:b,glBorderDashOffset:x,rotation:-1*Y,label:t,textBaseline:A,textAlign:T})}}}),e.each(O,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=k,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var r=t[e];if(r&&r.hasValue()){var a=r.tooltipPosition();n.push(a.x),o.push(a.y)}}var s=0,l=0;for(e=0;e0){var r=t[0];r.xLabel?i=r.xLabel:o>0&&r.indexe;++e)f.push(n(c[e]));s.itemSort&&(f=f.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(f,function(t){h.push(s.callbacks.labelColor.call(a,t,d))}),o.extend(l,{title:a.getTitle(f,u),beforeBody:a.getBeforeBody(f,u),body:a.getBody(f,u),afterBody:a.getAfterBody(f,u),footer:a.getFooter(f,u),x:Math.round(p.x),y:Math.round(p.y),caretPadding:o.getValueOrDefault(p.padding,2),labelColors:h});var g=a.getTooltipSize(l);a.determineAlignment(g),o.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&s.custom&&s.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,r=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=r*c,i.height+=r?(r-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var r,a,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(r=function(t){return u>=t},a=function(t){return t>u}):(r=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},r(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,r=t.cornerRadius,a=t.xAlign,s=t.yAlign,l=n+o,c=r+o;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=c:"right"===a&&(i.x+=c),i},drawCaret:function(t,e,i){var n,r,a,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,p=u.cornerRadius,f=u.xAlign,g=u.yAlign,m=t.x,v=t.y,y=e.width,k=e.height;"center"===g?("left"===f?(n=m,r=n-h,a=n):(n=m+y,r=n+h,a=n),l=v+k/2,s=l-h,c=l+h):("left"===f?(n=m+p,r=n+h,a=r+h):"right"===f?(n=m+y-p,r=n-h,a=r-h):(r=m+y/2,n=r-h,a=r+h),"top"===g?(s=v,l=s-h,c=s):(s=v+k,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(r,l),d.lineTo(a,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var r=e.title;if(r.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(a,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=r.length;u>c;++c)i.fillText(r[c],t.x,t.y),t.y+=a+s,c+1===r.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var r=e.bodyFontSize,a=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(r,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=r+a};o.each(e.beforeBody,d);var h=s.length>1;u=h?r+2:0,o.each(s,function(a,s){o.each(a.before,d),o.each(a.lines,function(a){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,r,r),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,r,r),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,r-2,r-2),i.fillStyle=c),d(a)}),o.each(a.after,d)}),u=0,o.each(e.afterBody,d),t.y-=a},drawFooter:function(t,e,i,n){var r=e.footer;if(r.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=o.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(r,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=o.color(e.backgroundColor);t.fillStyle=a.alpha(r*a.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,r),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,r),this.drawBody(n,e,t,r),this.drawFooter(n,e,t,r)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;s>r;)r+=2*Math.PI;var c=r>=s&&l>=r,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,r=o.spanGaps,a=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var a=o.getLabels(),s=a.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/r,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/r,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),r=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),a=r/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=a/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=e.log10(Math.abs(o)),a="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,r=o.data,a=r.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(a,function(r,a){var s=o.getDatasetMeta(a);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(a)&&t(s)&&e.each(r.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),r=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(a,function(n,r){var a=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var r=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*r)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,r=n.paddingBottom,a=n.start,s=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-a),Math.round(e+o)):(i=n.height-(n.paddingTop+r),e=n.bottom-r-i/l*(s-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,r=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),a=(i?t-e.left-n:e.bottom-o-t)/r;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),r=e.sign(t.max);0>o&&0>r?t.max=0:o>0&&r>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,r=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=r(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(a-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var p=1;h>p;++p)n.push(u+p*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,r=i.chart,a=r.data,s=a.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,a){var s=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=r)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,r,a,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),y=e.fontString(g,m,v),k=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=y,n=0;nw&&(w=t.x+r,a=n),t.x-rD?t.x+o>w&&(w=t.x+o,a=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,r=n.ticks,a=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(r.fontSize,i.defaultFontSize),d=l(r.fontStyle,i.defaultFontStyle),h=l(r.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(a,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;k--){if(a.display){var w=t.getPointPosition(k,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(k,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=y,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(k)+Math.PI/2,_=360*C/(2*Math.PI)%360;0===_||180===_?c.textAlign="center":180>_?c.textAlign="left":c.textAlign="right",90===_||270===_?c.textBaseline="middle":_>270||90>_?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[k]?D[k]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},r=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,r){var a=[],s=t.chart.isDatasetVisible(r);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,r,a);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var p=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var f=0,g=i.units[f];f=Math.ceil(n.scaleSizeInUnits/p)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/p)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=k.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),
n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0])||arguments[0],e={};return this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=$(this.config.select2Input).select2("val")||[];window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&tools="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&tools="+t.join("|"))}},{key:"setupSelect2",value:function(){var t=$(this.config.select2Input),e=this.config.apps.map(function(t){return{id:t,text:t}}),i={data:e,placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:this.config.apps.length,minimumInputLength:1};t.select2(i),t.on("change",this.processInput.bind(this))}},{key:"setSelect2Defaults",value:function(t){return $(this.config.select2Input).val(t).trigger("change"),t}},{key:"setupListeners",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this)}},{key:"processInput",value:function(t){var e,i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){var o=$(this.config.select2Input).select2("val")||[];this.setInitialChartType(o.length);var r={entities:o,labels:[],datasets:new Array(o.length),errors:[],fatalErrors:[],promises:[]};if(!r.entities.length)return this.resetView();this.params=location.search,this.prevChartType=this.chartType,this.clearMessages(),this.destroyChart(),this.startSpinny();var a=this.daterangepicker.startDate.startOf("day"),s=this.daterangepicker.endDate.startOf("day");r.entities.forEach(function(t,e){var n="//"+metaRoot+"/usage/"+t+("/"+a.format("YYYY-MM-DD")+"/"+s.format("YYYY-MM-DD")),o=$.ajax({url:n,dataType:"json"});r.promises.push(o),o.done(function(t){r.datasets[e]=t,r.labels.length||(r.labels=t.map(function(t){return moment(t.date,"YYYY-MM-DD").format(i.dateFormat)}))}).fail(function(e){i.writeMessage(""+t.escape()+" - "+$.i18n("api-error-no-data")),r.entities=r.entities.filter(function(e){return e!==t})})}),(e=$).whenAll.apply(e,n(r.promises)).always(this.updateChart.bind(this,r))}}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"pageloads":return Number(t.sum);case"average":return Number(t.average)}}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSingleAppLegend();$(".single-page-stats").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e){$(".output-list").append("\n \n \n \n \n "+e.label+" \n "+t.formatNumber(e.sum)+" \n "+t.formatNumber(e.average)+" \n \n ")});var n=e.reduce(function(t,e){return t+e.sum},0),o={label:e.length+" app"+(1===e.length?"":"s"),sum:n,average:Math.round(n/e[0].data.length)};$(".output-list").append("\n \n \n "+o.label+" \n "+this.formatNumber(o.sum)+" \n "+this.formatNumber(o.average)+" \n \n "),$(".table-view").show()}},{key:"showSingleAppLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-page-stats").html("\n "+t.label+" \n ·\n \n "+$(this.config.dateRangeSelector).val()+"\n \n ·\n "+t.sum+" page load"+(1===t.sum?"":"s")+"\n \n ("+this.formatNumber(t.average)+"/"+$.i18n("day")+")\n \n ")}}]),e}(mix(u).with(d));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new h})},{"../shared/chart_helpers":3,"../shared/pv":6,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,r={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");r[e]=t}),t.items=[];for(var a=moment(e);a<=i;a.add(1,"day"))if(r[a.format("YYYYMMDD")])t.items.push(r[a.format("YYYYMMDD")]);else{var s=a.isSame(this.config.maxDate)||a.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:a.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var r=i.getDateHeadings(!1),a=new Array(r.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),a[r.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===r&&(e.pageViewsData=s,i.resolve(s),a.length&&e.writeMessage($.i18n("api-error-timeout",""+a.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var r=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return r=!0}),r}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var r=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(r.scales=Object.assign({},r.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var a=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?r.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(r.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),r.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?r=this.showPointLabels(r):(delete r.animation.onComplete,delete r.animation.onProgress),this.chartObj=new Chart(a,{type:this.chartType,data:l,options:r})}else delete r.animation.onComplete,delete r.animation.onProgress,this.chartObj=new Chart(a,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:r})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,r){var a=n.controller.getDatasetMeta(r);Chart.helpers.each(a.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var r=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,a=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,a)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":9}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new r(t)};var r=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:r(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",
-showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",
-cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
+showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":4,"./polyfills":5,"./pv_config":7,"./site_map":8}],7:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":8}],8:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",
+bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],9:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
diff --git a/public_html/redirectviews/application.js b/public_html/redirectviews/application.js
index 1a56448c7..7ceea77ee 100644
--- a/public_html/redirectviews/application.js
+++ b/public_html/redirectviews/application.js
@@ -11,5 +11,5 @@ i.lastTooltipActive=i.lastTooltipActive||[],"mouseout"===t.type?(i.active=[],i.t
},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,a=t.defaults.global,r=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(r.fontSize,a.defaultFontSize),h=e.getValueOrDefault(r.fontStyle,a.defaultFontStyle),f=e.getValueOrDefault(r.fontFamily,a.defaultFontFamily),p=e.fontString(d,h,f),g=e.getValueOrDefault(s.fontSize,a.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),r.display&&c){i.longestTextCache||(i.longestTextCache={});var k=e.longestText(i.ctx,p,i.ticks,i.longestTextCache),v=e.numberOfLabelLines(i.ticks),y=.5*d;if(u){i.longestLabelWidth=k;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*v+y*v;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=p;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var S=i.maxWidth-n.width,M=r.mirror;M?k=0:k+=i.options.ticks.padding,S>k?n.width+=k:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),a=o*t+i.paddingLeft;e&&(a+=o/2);var r=i.left+Math.round(a);return r+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var a,r,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,f=c.autoSkip,p=n.isHorizontal();c.maxTicksLimit&&(r=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),k=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),v=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),y=e.fontString(m,k,v),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),S=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),M=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),Y=e.fontString(C,S,M),_=e.toRadians(n.labelRotation),T=Math.cos(_),P=n.longestLabelWidth*T;s.fillStyle=g;var I=[];if(p){if(a=!1,h&&(P/=2),(P+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(a=1+Math.floor((P+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),r&&n.ticks.length>r)for(;!a||n.ticks.length/(a||1)>r;)a||(a=1),a+=1;f||(a=!1)}var A="right"===o.position?n.left:n.right-w,O="right"===o.position?n.left+w:n.right,L="bottom"===o.position?n.top:n.bottom-w,F="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,r){if(void 0!==t&&null!==t){var s=n.ticks.length===r+1,l=a>1&&r%a>0||r%a===0&&r+a>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,f;r===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,f=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,r),f=e.getValueAtIndexOrDefault(u.color,r));var g,m,k,v,y,D,C,S,M,Y,T="middle",P="middle";if(p){h||(P="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(r)+e.aliasPixel(d);M=n.getPixelForTick(r,u.offsetGridLines)+c.labelOffset,Y=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=k=y=C=E,m=L,v=F,D=i.top,S=i.bottom}else{"left"===o.position?c.mirror?(M=n.right+c.padding,T="left"):(M=n.right-c.padding,T="right"):c.mirror?(M=n.left-c.padding,T="right"):(M=n.left+c.padding,T="left");var j=n.getPixelForTick(r);j+=e.aliasPixel(d),Y=n.getPixelForTick(r,u.offsetGridLines),g=A,k=O,y=i.left,C=i.right,m=v=D=S=j}I.push({tx1:g,ty1:m,tx2:k,ty2:v,x1:y,y1:D,x2:C,y2:S,labelX:M,labelY:Y,glWidth:d,glColor:f,glBorderDash:b,glBorderDashOffset:x,rotation:-1*_,label:t,textBaseline:P,textAlign:T})}}}),e.each(I,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=y,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var a=t[e];if(a&&a.hasValue()){var r=a.tooltipPosition();n.push(r.x),o.push(r.y)}}var s=0,l=0;for(e=0;e0){var a=t[0];a.xLabel?i=a.xLabel:o>0&&a.indexe;++e)p.push(n(c[e]));s.itemSort&&(p=p.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(p,function(t){h.push(s.callbacks.labelColor.call(r,t,d))}),o.extend(l,{title:r.getTitle(p,u),beforeBody:r.getBeforeBody(p,u),body:r.getBody(p,u),afterBody:r.getAfterBody(p,u),footer:r.getFooter(p,u),x:Math.round(f.x),y:Math.round(f.y),caretPadding:o.getValueOrDefault(f.padding,2),labelColors:h});var g=r.getTooltipSize(l);r.determineAlignment(g),o.extend(l,r.getBackgroundPoint(l,g))}else r._model.opacity=0;return t&&s.custom&&s.custom.call(r,l),r},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,a=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=t.beforeBody.length+t.afterBody.length;var r=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=r*l,i.height+=(r-1)*t.titleSpacing,i.height+=r?t.titleMarginBottom:0,i.height+=a*c,i.height+=a?(a-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var a,r,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(a=function(t){return u>=t},r=function(t){return t>u}):(a=function(e){return e<=t.width/2},r=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},a(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):r(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,a=t.cornerRadius,r=t.xAlign,s=t.yAlign,l=n+o,c=a+o;return"right"===r?i.x-=e.width:"center"===r&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===r?i.x+=l:"right"===r&&(i.x-=l):"left"===r?i.x-=c:"right"===r&&(i.x+=c),i},drawCaret:function(t,e,i){var n,a,r,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,f=u.cornerRadius,p=u.xAlign,g=u.yAlign,m=t.x,k=t.y,v=e.width,y=e.height;"center"===g?("left"===p?(n=m,a=n-h,r=n):(n=m+v,a=n+h,r=n),l=k+y/2,s=l-h,c=l+h):("left"===p?(n=m+f,a=n+h,r=a+h):"right"===p?(n=m+v-f,a=n-h,r=a-h):(a=m+v/2,n=a-h,r=a+h),"top"===g?(s=k,l=s-h,c=s):(s=k+y,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(a,l),d.lineTo(r,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var a=e.title;if(a.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(r,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=a.length;u>c;++c)i.fillText(a[c],t.x,t.y),t.y+=r+s,c+1===a.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var a=e.bodyFontSize,r=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(a,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=a+r};o.each(e.beforeBody,d);var h=s.length>1;u=h?a+2:0,o.each(s,function(r,s){o.each(r.before,d),o.each(r.lines,function(r){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,a,a),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,a,a),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,a-2,a-2),i.fillStyle=c),d(r)}),o.each(r.after,d)}),u=0,o.each(e.afterBody,d),t.y-=r},drawFooter:function(t,e,i,n){var a=e.footer;if(a.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var r=o.color(e.footerFontColor);i.fillStyle=r.alpha(n*r.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(a,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},a=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var r=o.color(e.backgroundColor);t.fillStyle=r.alpha(a*r.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,a),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,a),this.drawBody(n,e,t,a),this.drawFooter(n,e,t,a)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;a>l;)a-=2*Math.PI;for(;s>a;)a+=2*Math.PI;var c=a>=s&&l>=a,u=r>=n.innerRadius&&r<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,a=o.spanGaps,r=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,f,p;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,a=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var r=o.getLabels(),s=r.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/a,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/a,f=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(f+=h/2),o.top+Math.round(f)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),a=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),r=a/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=r/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/r)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var a=e.log10(Math.abs(o)),r="";if(0!==t){var s=-1*Math.floor(a);s=Math.max(Math.min(s,20),0),r=t.toFixed(s)}else r="0";return r}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,a=o.data,r=a.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(r,function(a,r){var s=o.getDatasetMeta(r);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(r)&&t(s)&&e.each(a.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),a=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?a:Math.max(i.max,a)})}else e.each(r,function(n,a){var r=o.getDatasetMeta(a);o.isDatasetVisible(a)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var a=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*a)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,a=n.paddingBottom,r=n.start,s=+n.getRightValue(t),l=n.end-r;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-r),Math.round(e+o)):(i=n.height-(n.paddingTop+a),e=n.bottom-a-i/l*(s-r),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,a=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),r=(i?t-e.left-n:e.bottom-o-t)/a;return e.start+(e.end-e.start)*r},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),a=e.sign(t.max);0>o&&0>a?t.max=0:o>0&&a>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,a=e.getValueOrDefault,r=t.getTickLimit();r=Math.max(2,r);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=a(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(r-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var f=1;h>f;++f)n.push(u+f*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,a=i.chart,r=a.data,s=r.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,r){var s=a.getDatasetMeta(r);a.isDatasetVisible(r)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],a=+i.getRightValue(t);isNaN(a)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=a)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var r=a.getDatasetMeta(o);a.isDatasetVisible(o)&&t(r)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||r.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,a,r,s,l,c,u,d,h,f,p=this.options.pointLabels,g=e.getValueOrDefault(p.fontSize,i.defaultFontSize),m=e.getValueOrDefault(p.fontStyle,i.defaultFontStyle),k=e.getValueOrDefault(p.fontFamily,i.defaultFontFamily),v=e.fontString(g,m,k),y=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=v,n=0;nw&&(w=t.x+a,r=n),t.x-aD?t.x+o>w&&(w=t.x+o,r=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,a=n.ticks,r=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(a.fontSize,i.defaultFontSize),d=l(a.fontStyle,i.defaultFontStyle),h=l(a.fontFamily,i.defaultFontFamily),f=e.fontString(u,d,h);if(e.each(t.ticks,function(r,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var p=0;p=0;y--){if(r.display){var w=t.getPointPosition(y,p);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(y,p+5),x=l(s.fontColor,i.defaultFontColor);c.font=v,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(y)+Math.PI/2,S=360*C/(2*Math.PI)%360;0===S||180===S?c.textAlign="center":180>S?c.textAlign="left":c.textAlign="right",90===S||270===S?c.textBaseline="middle":S>270||90>S?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[y]?D[y]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},a=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,a){var r=[],s=t.chart.isDatasetVisible(a);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),r.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):r=i,t.labelMoments.push(r)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),a=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),r=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,a,r);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var f=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var p=0,g=i.units[p];p=Math.ceil(n.scaleSizeInUnits/f)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/f)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=y.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t"+$.i18n("totals")+": "+t.formatNumber(t.outputData.sum)+"\n ("+t.formatNumber(Math.round(t.outputData.average))+"/"+$.i18n("day")+")"},dateRangeSelector:"#range_input",defaults:{dateRange:"latest-20",sort:"views",direction:1,outputData:[],hadFailure:!1,total:0,view:"list"},linearLegend:function(t,e){return""+$.i18n("totals")+": \n "+$.i18n("num-redirects",e.outputData.listData.length-1)+"\n •\n "+$.i18n("num-pageviews",e.formatNumber(e.outputData.sum))+"\n ("+e.formatNumber(Math.round(e.outputData.average))+"/"+$.i18n("day")+")"},logarithmicCheckbox:".logarithmic-scale-option",platformSelector:"#platform_select",projectInput:"#project_input",formStates:["initial","processing","complete","invalid"],sourceInput:"#source_input",timestampFormat:"YYYYMMDD00",validateParams:["project","platform","agent","direction","sort","view"],validParams:{direction:["-1","1"],sort:["title","views","section"],view:["list","chart"]}};e.exports=n},{}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var r=function(){function t(t,e){var i=[],n=!0,o=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(n=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){o=!0,a=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw a}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function t(t,e){for(var i=0;i0&&void 0!==arguments[0]&&arguments[0],e={project:$(this.config.projectInput).val(),platform:$(this.config.platformSelector).val(),agent:$(this.config.agentSelector).val()};return this.specialRange&&!t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),t?e.page=$(this.config.sourceInput).val().score():(e.sort=this.sort,e.direction=this.direction,e.view=this.view,this.noLogScale&&(e.autolog="false")),e}},{key:"pushParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(window.history&&window.history.replaceState){if(t)return history.replaceState(null,document.title,location.href.split("?")[0]);var e=$(this.config.sourceInput).val().score().replace(/[&%?+]/g,encodeURIComponent);window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&page="+e),$(".permalink").prop("href","/redirectviews?"+$.param(this.getPermaLink())+"&page="+e)}}},{key:"renderData",value:function(){var t=this;l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"renderData",this).call(this,function(e){$(".output-totals").html(""+$.i18n("totals")+" \n "+$.i18n("num-redirects",t.outputData.titles.length-1)+" \n "+$.i18n("num-sections",t.outputData.sectionCount)+" \n "+t.formatNumber(t.outputData.sum)+" \n "+t.formatNumber(Math.round(t.outputData.average))+" / "+$.i18n("day")+" "),$("#output_list").html(""),e.forEach(function(e,i){var n=e.label===t.outputData.source,o="";if(e.section){var a=t.getPageURL(t.outputData.source)+"#"+encodeURIComponent(e.section.score());o='#'+e.section+" "}$("#output_list").append("\n "+(i+1)+' \n '+e.label+" "+(n?"("+$.i18n("target")+")":"")+" \n "+o+" \n "+t.formatNumber(e.sum)+" \n "+t.formatNumber(Math.round(e.average))+" / "+$.i18n("day")+" \n ")})})}},{key:"getSortProperty",value:function(t,e){switch(e){case"title":return t.label;case"section":return t.section;case"views":return Number(t.sum)}}},{key:"getPageViewsData",value:function(t){var e=this,i=this.daterangepicker.startDate.startOf("day"),n=this.daterangepicker.endDate.startOf("day"),o=$.Deferred(),a=[],r=0,s={},l=t.length,c=[],u=[],d=function t(d){var h=encodeURIComponent(d.title),f="https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/"+e.project+("/"+$(e.config.platformSelector).val()+"/"+$(e.config.agentSelector).val()+"/"+h+"/daily")+("/"+i.format(e.config.timestampFormat)+"/"+n.format(e.config.timestampFormat)),p=$.ajax({url:f,dataType:"json"});a.push(p),p.done(function(t){u.push({title:d.title,section:d.fragment,items:t.items})}).fail(function(i){var n="Error in Cassandra table storage backend"===i.responseJSON.title,o=e.getPageLink(d.title,e.project+".org");if(n){if(s[d.title]?s[d.title]++:s[d.title]=1,s[d.title]<3)return l++,e.rateLimit(t,e.config.apiThrottle,e)(d);c.push(o)}else e.writeMessage(o+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title);404!==i.status&&(hadFailure=!0)}).always(function(){e.updateProgressBar(++r,l),r===l&&(c.length&&e.writeMessage($.i18n("api-error-timeout",""+c.map(function(t){return""+t+" "}).join("")+" ")),o.resolve(u))})},h=this.rateLimit(d,this.config.apiThrottle,this);return t.forEach(function(t){h(t)}),o}},{key:"getRedirects",value:function(t){var e=this,i=$.Deferred(),n=$.ajax({url:"https://"+this.project+".org/w/api.php",jsonp:"callback",dataType:"jsonp",data:{action:"query",format:"json",formatversion:2,prop:"redirects",rdprop:"title|fragment",rdlimit:500,titles:t}});return n.done(function(n){if(n.error)return e.setState("initial",function(){e.writeMessage($.i18n("api-error","Redirect API")+": "+n.error.info.escape())});var o=[{title:t}].concat(n.query.pages[0].redirects||[]);return i.resolve(o)}),i}},{key:"popParams",value:function(){var t=this,e=this.validateParams(this.parseQueryString("pages"));$(this.config.projectInput).val(e.project),this.validateDateRange(e),this.patchUsage(),$(".site-notice .alert-danger").length&&delete e.page,$(this.config.platformSelector).val(e.platform),$(this.config.agentSelector).val(e.agent),["sort","direction","view"].forEach(function(i){t[i]=e[i]}),this.setupSourceInput(),e.page?this.getPageInfo([e.page]).done(function(e){var i=Object.keys(e)[0];return e[i].missing?(t.setState("initial"),t.writeMessage(t.getPageLink(i)+": "+$.i18n("api-error-no-data"))):($(t.config.sourceInput).val(i),void t.processInput())}).fail(function(){t.writeMessage($.i18n("api-error-unknown","Info"))}):$(this.config.sourceInput).focus()}},{key:"setState",value:function(t){switch($("main").removeClass(this.config.formStates.join(" ")).addClass(t),t){case"initial":this.clearMessages(),this.assignDefaults(),this.destroyChart(),$("output").removeClass("list-mode").removeClass("chart-mode"),$(".data-links").addClass("invisible"),this.typeahead&&this.typeahead.hide(),$(this.config.sourceInput).val("").focus();break;case"processing":this.processStarted(),this.clearMessages(),document.activeElement.blur(),$(".progress-bar").addClass("active");break;case"complete":this.processEnded(),this.updateProgressBar(0),$(".progress-bar").removeClass("active"),$(".data-links").removeClass("invisible");break;case"invalid":}}},{key:"processInput",value:function(){var t=this,e=$(this.config.sourceInput).val();this.setState("processing");var i=function(){$(".output-title").html(t.outputData.link),$(".output-params").html($(t.config.dateRangeSelector).val()),t.setInitialChartType(),t.renderData()};return this.isRequestCached()?($(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("loading-cache")),setTimeout(function(){t.outputData=simpleStorage.get(t.getCacheKey()),i()},500)):($(".progress-counter").text($.i18n("fetching-data","Redirects API")),void this.getRedirects(e).done(function(n){t.getPageViewsData(n).done(function(n){$(".progress-bar").css("width","100%"),$(".progress-counter").text($.i18n("building-dataset"));var o=t.getPageLink(e,t.project);setTimeout(function(){t.buildMotherDataset(e,o,n),i()},250)})}).fail(function(e){t.setState("initial"),"string"==typeof e?t.writeMessage(e):t.writeMessage($.i18n("api-error-unknown","Wikidata"))}))}},{key:"setupSourceInput",value:function(){this.typeahead&&this.typeahead.destroy(),$(this.config.sourceInput).typeahead({ajax:{url:"https://"+this.project+".org/w/api.php",timeout:200,triggerLength:1,method:"get",preDispatch:function(t){return{action:"opensearch",redirects:"resolve",format:"json",search:t}},preProcess:function(t){return t[1]}}})}},{key:"validateProject",value:function(){l(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateProject",this).call(this)&&(this.setState("initial"),this.setupSourceInput())}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Title,"+this.getDateHeadings(!1).join(",")+"\n";this.outputData.listData.forEach(function(e){var i='"'+e.label.descore().replace(/"/g,'""')+'"';t+=[i].concat(e.data).join(",")+"\n"});var e=encodeURI(t);window.open(e)}},{key:"baseProject",get:function(){return this.project.split(".")[1]}},{key:"typeahead",get:function(){return $(this.config.sourceInput).data("typeahead")}}]),e}(mix(d).with(h,f));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":3,"../shared/list_helpers":5,"../shared/pv":7,"../shared/site_map":9,"./config":1}],3:[function(t,e,i){"use strict";function n(t){if(Array.isArray(t)){for(var e=0,i=Array(t.length);e0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,a={};
t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");a[e]=t}),t.items=[];for(var r=moment(e);r<=i;r.add(1,"day"))if(a[r.format("YYYYMMDD")])t.items.push(a[r.format("YYYYMMDD")]);else{var s=r.isSame(this.config.maxDate)||r.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:r.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var a=i.getDateHeadings(!1),r=new Array(a.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),r[a.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===a&&(e.pageViewsData=s,i.resolve(s),r.length&&e.writeMessage($.i18n("api-error-timeout",""+r.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var a=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return a=!0}),a}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var a=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(a.scales=Object.assign({},a.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var r=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?a.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(a.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),a.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?a=this.showPointLabels(a):(delete a.animation.onComplete,delete a.animation.onProgress),this.chartObj=new Chart(r,{type:this.chartType,data:l,options:a})}else delete a.animation.onComplete,delete a.animation.onProgress,this.chartObj=new Chart(r,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:a})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,a){var r=n.controller.getDatasetMeta(a);Chart.helpers.each(r.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var a=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,r=(a-t._model.y)/a>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,r)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":10}],4:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new a(t)};var a=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;io?-e.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-attributes-alt glyphicon-sort-by-attributes").addClass("glyphicon-sort");var o=1===parseInt(this.direction,10)?"glyphicon-sort-by-attributes-alt":"glyphicon-sort-by-attributes";$(".sort-link--"+this.sort+" span").addClass(o).removeClass("glyphicon-sort");try{t(n)}catch(t){this.setState("complete"),this.showFatalErrors([t])}finally{this.pushParams()}this.toggleView(this.view),"complete"!==this.getState()&&this.setState("complete")}},{key:"toggleView",value:function(t){var e=this;if($(".view-btn").removeClass("active"),$(".view-btn--"+t).addClass("active"),$("output").removeClass("list-mode").removeClass("chart-mode").addClass(t+"-mode"),"chart"===t){this.destroyChart(),this.config.circularCharts.includes(this.chartType)&&(this.chartType="bar");var i=Object.assign({},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);if(this.assignOutputDataChartOpts(),this.setChartPointDetectionRadius(),"true"===this.autoLogDetection){var n=this.shouldBeLogarithmic([this.outputData.datasets[0].data]);$(this.config.logarithmicCheckbox).prop("checked",n)}this.isLogarithmic()&&(i.scales=Object.assign({},i.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),$(".show-labels-option").is(":checked")?i=this.showPointLabels(i):(delete i.animation.onComplete,delete i.animation.onProgress),"radar"===this.chartType?i.scale.ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"):(i.scales.yAxes[0].ticks.beginAtZero=$(".begin-at-zero-option").is(":checked"),i.scales.xAxes[0].time.displayFormats.day=this.dateFormat);var o=$(this.config.chart)[0].getContext("2d");this.chartObj=new Chart(o,{type:this.chartType,data:this.outputData,options:i}),$(".chart-specific").show(),$("#chart-legend").html(this.chartObj.generateLegend())}else $(".chart-specific").hide();this.pushParams()}},{key:"updateProgressBar",value:function(t,e){if(!e)return $(".progress-bar").css("width","0%"),$(".progress-counter").text("");var i=t/e*100;$(".progress-bar").css("width",i.toFixed(2)+"%"),t===e?$(".progress-counter").text("Building dataset..."):$(".progress-counter").text($.i18n("processing-page",t,e))}}]),e}(t)};e.exports=s},{}],6:[function(t,e,i){"use strict";Array.prototype.includes||(Array.prototype.includes=function(t){return this.indexOf(t)!==-1}),String.prototype.includes||(String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,a=0;a>>0,n=arguments[1],o=n>>0,a=o<0?Math.max(i+o,0):Math.min(o,i),r=arguments[2],s=void 0===r?i:r>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);aThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:a(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return r(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({
-url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",
-lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
+url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var a=$.Deferred(),r={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return a.resolve(t);var e=void 0;"function"==typeof n?(r.pages=r.pages.concat(n(t.query)),e=r.pages.length>=o):(t.query.pages&&(r.pages=r.pages.concat(t.query.pages)),t.query[n]&&(r[n]=(r[n]||[]).concat(t.query[n])),e=r.pages.length>=o||r[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(r.continue=!0),a.resolve(r))}).fail(function(t){a.reject(t)})};return s(),a}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var a=this.config.specialRanges.latest(o),r=s(a,2);i=r[0],n=r[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=f},{"./core_extensions":4,"./polyfills":6,"./pv_config":8,"./site_map":9}],8:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:a,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(a)?moment().startOf("month"):a],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(a)?moment().startOf("year"):a],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),a],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:r}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":9}],9:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",
+lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],10:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,a=Math.max(i.clientX,e.clientX)-n,r=t.scales["x-axis-0"],s=r.getValueForPixel(o),l=r.getValueForPixel(a),c=a-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,a=t.zoom._dragZoomEnd,r=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,a.clientX)-r,l=Math.max(o.clientX,a.clientX)-r,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}]},{},[2]);
\ No newline at end of file
diff --git a/public_html/siteviews/application.js b/public_html/siteviews/application.js
index 78a329611..f54fd0138 100644
--- a/public_html/siteviews/application.js
+++ b/public_html/siteviews/application.js
@@ -12,5 +12,5 @@ r.controlPointPreviousY=t(r.controlPointPreviousY,c.top,c.bottom),r.controlPoint
},easeInCirc:function(t){return t>=1?t:-1*(Math.sqrt(1-(t/=1)*t)-1)},easeOutCirc:function(t){return 1*Math.sqrt(1-(t=t/1-1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===(t/=1)?1:(i||(i=.3),nt?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)):n*Math.pow(2,-10*(t-=1))*Math.sin((1*t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){var e=1.70158;return 1*(t/=1)*t*((e+1)*t-e)},easeOutBack:function(t){var e=1.70158;return 1*((t=t/1-1)*t*((e+1)*t+e)+1)},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?.5*(t*t*(((e*=1.525)+1)*t-e)):.5*((t-=2)*t*(((e*=1.525)+1)*t+e)+2)},easeInBounce:function(t){return 1-a.easeOutBounce(1-t)},easeOutBounce:function(t){return(t/=1)<1/2.75?1*(7.5625*t*t):2/2.75>t?1*(7.5625*(t-=1.5/2.75)*t+.75):2.5/2.75>t?1*(7.5625*(t-=2.25/2.75)*t+.9375):1*(7.5625*(t-=2.625/2.75)*t+.984375)},easeInOutBounce:function(t){return.5>t?.5*a.easeInBounce(2*t):.5*a.easeOutBounce(2*t-1)+.5}};r.requestAnimFrame=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)}}(),r.cancelAnimFrame=function(){return window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame||function(t){return window.clearTimeout(t,1e3/60)}}(),r.getRelativePosition=function(t,e){var i,n,o=t.originalEvent||t,a=t.currentTarget||t.srcElement,s=a.getBoundingClientRect(),l=o.touches;l&&l.length>0?(i=l[0].clientX,n=l[0].clientY):(i=o.clientX,n=o.clientY);var c=parseFloat(r.getStyle(a,"padding-left")),u=parseFloat(r.getStyle(a,"padding-top")),d=parseFloat(r.getStyle(a,"padding-right")),h=parseFloat(r.getStyle(a,"padding-bottom")),p=s.right-s.left-c-d,f=s.bottom-s.top-u-h;return i=Math.round((i-s.left-c)/p*a.width/e.currentDevicePixelRatio),n=Math.round((n-s.top-u)/f*a.height/e.currentDevicePixelRatio),{x:i,y:n}},r.addEvent=function(t,e,i){t.addEventListener?t.addEventListener(e,i):t.attachEvent?t.attachEvent("on"+e,i):t["on"+e]=i},r.removeEvent=function(t,e,i){t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent?t.detachEvent("on"+e,i):t["on"+e]=r.noop},r.bindEvents=function(t,e,i){var n=t.events=t.events||{};r.each(e,function(e){n[e]=function(){i.apply(t,arguments)},r.addEvent(t.chart.canvas,e,n[e])})},r.unbindEvents=function(t,e){var i=t.chart.canvas;r.each(e,function(t,e){r.removeEvent(i,e,t)})},r.getConstraintWidth=function(t){return o(t,"max-width","clientWidth")},r.getConstraintHeight=function(t){return o(t,"max-height","clientHeight")},r.getMaximumWidth=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-left"),10),n=parseInt(r.getStyle(e,"padding-right"),10),o=e.clientWidth-i-n,a=r.getConstraintWidth(t);return isNaN(a)?o:Math.min(o,a)},r.getMaximumHeight=function(t){var e=t.parentNode,i=parseInt(r.getStyle(e,"padding-top"),10),n=parseInt(r.getStyle(e,"padding-bottom"),10),o=e.clientHeight-i-n,a=r.getConstraintHeight(t);return isNaN(a)?o:Math.min(o,a)},r.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},r.retinaScale=function(t){var e=t.ctx,i=t.canvas,n=i.width,o=i.height,r=t.currentDevicePixelRatio=window.devicePixelRatio||1;1!==r&&(i.height=o*r,i.width=n*r,e.scale(r,r),t.originalDevicePixelRatio=t.originalDevicePixelRatio||r),i.style.width=n+"px",i.style.height=o+"px"},r.clear=function(t){t.ctx.clearRect(0,0,t.width,t.height)},r.fontString=function(t,e,i){return e+" "+t+"px "+i},r.longestText=function(t,e,i,n){n=n||{};var o=n.data=n.data||{},a=n.garbageCollect=n.garbageCollect||[];n.font!==e&&(o=n.data={},a=n.garbageCollect=[],n.font=e),t.font=e;var s=0;r.each(i,function(e){void 0!==e&&null!==e&&r.isArray(e)!==!0?s=r.measureText(t,o,a,s,e):r.isArray(e)&&r.each(e,function(e){void 0===e||null===e||r.isArray(e)||(s=r.measureText(t,o,a,s,e))})});var l=a.length/2;if(l>i.length){for(var c=0;l>c;c++)delete o[a[c]];a.splice(0,l)}return s},r.measureText=function(t,e,i,n,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,i.push(o)),r>n&&(n=r),n},r.numberOfLabelLines=function(t){var e=1;return r.each(t,function(t){r.isArray(t)&&t.length>e&&(e=t.length)}),e},r.drawRoundedRectangle=function(t,e,i,n,o,r){t.beginPath(),t.moveTo(e+r,i),t.lineTo(e+n-r,i),t.quadraticCurveTo(e+n,i,e+n,i+r),t.lineTo(e+n,i+o-r),t.quadraticCurveTo(e+n,i+o,e+n-r,i+o),t.lineTo(e+r,i+o),t.quadraticCurveTo(e,i+o,e,i+o-r),t.lineTo(e,i+r),t.quadraticCurveTo(e,i,e+r,i),t.closePath()},r.color=function(e){return n?n(e instanceof CanvasGradient?t.defaults.global.defaultColor:e):(console.error("Color.js not found!"),e)},r.addResizeListener=function(t,e){var i=document.createElement("iframe"),n="chartjs-hidden-iframe";i.classlist?i.classlist.add(n):i.setAttribute("class",n),i.tabIndex=-1;var o=i.style;o.width="100%",o.display="block",o.border=0,o.height=0,o.margin=0,o.position="absolute",o.left=0,o.right=0,o.top=0,o.bottom=0,t.insertBefore(i,t.firstChild),(i.contentWindow||i).onresize=function(){return e?e():void 0}},r.removeResizeListener=function(t){var e=t.querySelector(".chartjs-hidden-iframe");e&&e.parentNode.removeChild(e)},r.isArray=Array.isArray?function(t){return Array.isArray(t)}:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.arrayEquals=function(t,e){var i,n,o,a;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;n>i;++i)if(o=t[i],a=e[i],o instanceof Array&&a instanceof Array){if(!r.arrayEquals(o,a))return!1}else if(o!==a)return!1;return!0},r.callCallback=function(t,e,i){t&&"function"==typeof t.call&&t.apply(i,e)},r.getHoverColor=function(t){return t instanceof CanvasPattern?t:r.color(t).saturate(.5).darken(.1).rgbString()}}},{3:3}],27:[function(t,e,i){"use strict";e.exports=function(){var t=function(e,i){var n=this,o=t.helpers;return n.config=i||{data:{datasets:[]}},e.length&&e[0].getContext&&(e=e[0]),e.getContext&&(e=e.getContext("2d")),n.ctx=e,n.canvas=e.canvas,e.canvas.style.display=e.canvas.style.display||"block",n.width=e.canvas.width||parseInt(o.getStyle(e.canvas,"width"),10)||o.getMaximumWidth(e.canvas),n.height=e.canvas.height||parseInt(o.getStyle(e.canvas,"height"),10)||o.getMaximumHeight(e.canvas),n.aspectRatio=n.width/n.height,(isNaN(n.aspectRatio)||isFinite(n.aspectRatio)===!1)&&(n.aspectRatio=void 0!==i.aspectRatio?i.aspectRatio:2),n.originalCanvasStyleWidth=e.canvas.style.width,n.originalCanvasStyleHeight=e.canvas.style.height,o.retinaScale(n),n.controller=new t.Controller(n),o.addResizeListener(e.canvas.parentNode,function(){n.controller&&n.controller.config.options.responsive&&n.controller.resize()}),n.controller?n.controller:n};return t.defaults={global:{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"single",animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},legendCallback:function(t){var e=[];e.push('');for(var i=0;i '),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("");return e.push(" "),e.join("")}}},t.Chart=t,t}},{}],28:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),t.boxes.push(e)},removeBox:function(t,e){t.boxes&&t.boxes.splice(t.boxes.indexOf(e),1)},update:function(t,i,n){function o(t){var e,i=t.isHorizontal();i?(e=t.update(t.options.fullWidth?g:b,w),x-=e.height):(e=t.update(k,y),b-=e.width),D.push({horizontal:i,minSize:e,box:t})}function r(t){var i=e.findNextWhere(D,function(e){return e.box===t});if(i)if(t.isHorizontal()){var n={left:C,right:_,top:0,bottom:0};t.update(t.options.fullWidth?g:b,m/2,n)}else t.update(i.minSize.width,x)}function a(t){var i=e.findNextWhere(D,function(e){return e.box===t}),n={left:0,right:0,top:S,bottom:M};i&&t.update(i.minSize.width,x,n)}function s(t){t.isHorizontal()?(t.left=t.options.fullWidth?l:C,t.right=t.options.fullWidth?i-l:C+b,t.top=P,t.bottom=P+t.height,P=t.bottom):(t.left=A,t.right=A+t.width,t.top=S,t.bottom=S+x,A=t.right)}if(t){var l=0,c=0,u=e.where(t.boxes,function(t){return"left"===t.options.position}),d=e.where(t.boxes,function(t){return"right"===t.options.position}),h=e.where(t.boxes,function(t){return"top"===t.options.position}),p=e.where(t.boxes,function(t){return"bottom"===t.options.position}),f=e.where(t.boxes,function(t){return"chartArea"===t.options.position});h.sort(function(t,e){return(e.options.fullWidth?1:0)-(t.options.fullWidth?1:0)}),p.sort(function(t,e){return(t.options.fullWidth?1:0)-(e.options.fullWidth?1:0)});var g=i-2*l,m=n-2*c,v=g/2,y=m/2,k=(i-v)/(u.length+d.length),w=(n-y)/(h.length+p.length),b=g,x=m,D=[];e.each(u.concat(d,h,p),o);var C=l,_=l,S=c,M=c;e.each(u.concat(d),r),e.each(u,function(t){C+=t.width}),e.each(d,function(t){_+=t.width}),e.each(h.concat(p),r),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height}),e.each(u.concat(d),a),C=l,_=l,S=c,M=c,e.each(u,function(t){C+=t.width}),e.each(d,function(t){_+=t.width}),e.each(h,function(t){S+=t.height}),e.each(p,function(t){M+=t.height});var Y=n-S-M,T=i-C-_;(T!==b||Y!==x)&&(e.each(u,function(t){t.height=Y}),e.each(d,function(t){t.height=Y}),e.each(h,function(t){t.options.fullWidth||(t.width=T)}),e.each(p,function(t){t.options.fullWidth||(t.width=T)}),x=Y,b=T);var A=l,P=c;e.each(u.concat(h),s),A+=b,P+=x,e.each(d,s),e.each(p,s),t.chartArea={left:C,top:S,right:C+b,bottom:S+x},e.each(f,function(e){e.left=t.chartArea.left,e.top=t.chartArea.top,e.right=t.chartArea.right,e.bottom=t.chartArea.bottom,e.update(b,x)})}}}}},{}],29:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,o=n.getDatasetMeta(i);o.hidden=null===o.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var i=t.data;return e.isArray(i.datasets)?i.datasets.map(function(i,n){return{text:i.label,fillStyle:e.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!t.isDatasetVisible(n),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:n}},this):[]}}},t.Legend=t.Element.extend({initialize:function(t){e.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0,t.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var t=this;t.legendItems=t.options.labels.generateLabels.call(t,t.chart),t.options.reverse&&t.legendItems.reverse()},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,n=i.options,o=n.labels,r=n.display,a=i.ctx,s=t.defaults.global,l=e.getValueOrDefault,c=l(o.fontSize,s.defaultFontSize),u=l(o.fontStyle,s.defaultFontStyle),d=l(o.fontFamily,s.defaultFontFamily),h=e.fontString(c,u,d),p=i.legendHitBoxes=[],f=i.minSize,g=i.isHorizontal();if(g?(f.width=i.maxWidth,f.height=r?10:0):(f.width=r?10:0,f.height=i.maxHeight),r)if(a.font=h,g){var m=i.lineWidths=[0],v=i.legendItems.length?c+o.padding:0;a.textAlign="left",a.textBaseline="top",e.each(i.legendItems,function(t,e){var n=o.usePointStyle?c*Math.sqrt(2):o.boxWidth,r=n+c/2+a.measureText(t.text).width;m[m.length-1]+r+o.padding>=i.width&&(v+=c+o.padding,m[m.length]=i.left),p[e]={left:0,top:0,width:r,height:c},m[m.length-1]+=r+o.padding}),f.height+=v}else{var y=o.padding,k=i.columnWidths=[],w=o.padding,b=0,x=0,D=c+y;e.each(i.legendItems,function(t,e){var i=o.usePointStyle?2*o.boxWidth:o.boxWidth,n=i+c/2+a.measureText(t.text).width;x+D>f.height&&(w+=b+o.padding,k.push(b),b=0,x=0),b=Math.max(b,n),x+=D,p[e]={left:0,top:0,width:n,height:c}}),w+=b,k.push(b),f.width+=w}i.width=f.width,i.height=f.height},afterFit:i,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var i=this,n=i.options,o=n.labels,r=t.defaults.global,a=r.elements.line,s=i.width,l=i.lineWidths;if(n.display){var c,u=i.ctx,d=e.getValueOrDefault,h=d(o.fontColor,r.defaultFontColor),p=d(o.fontSize,r.defaultFontSize),f=d(o.fontStyle,r.defaultFontStyle),g=d(o.fontFamily,r.defaultFontFamily),m=e.fontString(p,f,g);u.textAlign="left",u.textBaseline="top",u.lineWidth=.5,u.strokeStyle=h,u.fillStyle=h,u.font=m;var v=o.boxWidth,y=i.legendHitBoxes,k=function(e,i,o){if(!(isNaN(v)||0>=v)){u.save(),u.fillStyle=d(o.fillStyle,r.defaultColor),u.lineCap=d(o.lineCap,a.borderCapStyle),u.lineDashOffset=d(o.lineDashOffset,a.borderDashOffset),u.lineJoin=d(o.lineJoin,a.borderJoinStyle),u.lineWidth=d(o.lineWidth,a.borderWidth),u.strokeStyle=d(o.strokeStyle,r.defaultColor);var s=0===d(o.lineWidth,a.borderWidth);if(u.setLineDash&&u.setLineDash(d(o.lineDash,a.borderDash)),n.labels&&n.labels.usePointStyle){var l=p*Math.SQRT2/2,c=l/Math.SQRT2,h=e+c,f=i+c;t.canvasHelpers.drawPoint(u,o.pointStyle,l,h,f)}else s||u.strokeRect(e,i,v,p),u.fillRect(e,i,v,p);u.restore()}},w=function(t,e,i,n){u.fillText(i.text,v+p/2+t,e),i.hidden&&(u.beginPath(),u.lineWidth=2,u.moveTo(v+p/2+t,e+p/2),u.lineTo(v+p/2+t+n,e+p/2),u.stroke())},b=i.isHorizontal();c=b?{x:i.left+(s-l[0])/2,y:i.top+o.padding,line:0}:{x:i.left+o.padding,y:i.top+o.padding,line:0};var x=p+o.padding;e.each(i.legendItems,function(t,e){var n=u.measureText(t.text).width,r=o.usePointStyle?p+p/2+n:v+p/2+n,a=c.x,d=c.y;b?a+r>=s&&(d=c.y+=x,c.line++,a=c.x=i.left+(s-l[c.line])/2):d+x>i.bottom&&(a=c.x=a+i.columnWidths[c.line]+o.padding,d=c.y=i.top,c.line++),k(a,d,t),y[e].left=a,y[e].top=d,w(a,d,t,n),b?c.x+=r+o.padding:c.y+=x})}},handleEvent:function(t){var i=this,n=i.options,o="mouseup"===t.type?"click":t.type;if("mousemove"===o){if(!n.onHover)return}else{if("click"!==o)return;if(!n.onClick)return}var r=e.getRelativePosition(t,i.chart.chart),a=r.x,s=r.y;if(a>=i.left&&a<=i.right&&s>=i.top&&s<=i.bottom)for(var l=i.legendHitBoxes,c=0;c=u.left&&a<=u.left+u.width&&s>=u.top&&s<=u.top+u.height){if("click"===o){n.onClick.call(i,t,i.legendItems[c]);break}if("mousemove"===o){n.onHover.call(i,t,i.legendItems[c]);break}}}}}),t.plugins.register({beforeInit:function(e){var i=e.options,n=i.legend;n&&(e.legend=new t.Legend({ctx:e.chart.ctx,options:n,chart:e}),t.layoutService.addBox(e,e.legend))}})}},{}],30:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers.noop;t.plugins={_plugins:[],register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)})},unregister:function(t){var e=this._plugins;[].concat(t).forEach(function(t){var i=e.indexOf(t);-1!==i&&e.splice(i,1)})},clear:function(){this._plugins=[]},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e){var i,n,o=this._plugins,r=o.length;for(i=0;r>i;++i)if(n=o[i],"function"==typeof n[t]&&n[t].apply(n,e||[])===!1)return!1;return!0}},t.PluginBase=t.Element.extend({beforeInit:e,afterInit:e,beforeUpdate:e,afterUpdate:e,beforeDraw:e,afterDraw:e,destroy:e}),t.pluginService=t.plugins}},{}],31:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers;t.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:10,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:function(t){return e.isArray(t)?t:""+t}}},t.Scale=t.Element.extend({beforeUpdate:function(){e.callCallback(this.options.beforeUpdate,[this])},update:function(t,i,n){var o=this;return o.beforeUpdate(),o.maxWidth=t,o.maxHeight=i,o.margins=e.extend({left:0,right:0,top:0,bottom:0},n),o.beforeSetDimensions(),o.setDimensions(),o.afterSetDimensions(),o.beforeDataLimits(),o.determineDataLimits(),o.afterDataLimits(),o.beforeBuildTicks(),o.buildTicks(),o.afterBuildTicks(),o.beforeTickToLabelConversion(),o.convertTicksToLabels(),o.afterTickToLabelConversion(),o.beforeCalculateTickRotation(),o.calculateTickRotation(),o.afterCalculateTickRotation(),o.beforeFit(),o.fit(),o.afterFit(),o.afterUpdate(),o.minSize},afterUpdate:function(){e.callCallback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){e.callCallback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){e.callCallback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){e.callCallback(this.options.beforeDataLimits,[this])},determineDataLimits:e.noop,afterDataLimits:function(){e.callCallback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){e.callCallback(this.options.beforeBuildTicks,[this])},buildTicks:e.noop,afterBuildTicks:function(){e.callCallback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){e.callCallback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this;t.ticks=t.ticks.map(function(e,i,n){return t.options.ticks.userCallback?t.options.ticks.userCallback(e,i,n):t.options.ticks.callback(e,i,n)},t)},afterTickToLabelConversion:function(){e.callCallback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){e.callCallback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var i=this,n=i.ctx,o=t.defaults.global,r=i.options.ticks,a=e.getValueOrDefault(r.fontSize,o.defaultFontSize),s=e.getValueOrDefault(r.fontStyle,o.defaultFontStyle),l=e.getValueOrDefault(r.fontFamily,o.defaultFontFamily),c=e.fontString(a,s,l);n.font=c;var u,d=n.measureText(i.ticks[0]).width,h=n.measureText(i.ticks[i.ticks.length-1]).width;if(i.labelRotation=r.minRotation||0,i.paddingRight=0,i.paddingLeft=0,i.options.display&&i.isHorizontal()){i.paddingRight=h/2+3,i.paddingLeft=d/2+3,i.longestTextCache||(i.longestTextCache={});for(var p,f,g=e.longestText(n,c,i.ticks,i.longestTextCache),m=g,v=i.getPixelForTick(1)-i.getPixelForTick(0)-6;m>v&&i.labelRotationi.yLabelWidth&&(i.paddingLeft=u+a/2),i.paddingRight=a/2,f*g>i.maxHeight){i.labelRotation--;break}i.labelRotation++,m=p*g}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0))},afterCalculateTickRotation:function(){e.callCallback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){e.callCallback(this.options.beforeFit,[this])},fit:function(){var i=this,n=i.minSize={width:0,height:0},o=i.options,r=t.defaults.global,a=o.ticks,s=o.scaleLabel,l=o.gridLines,c=o.display,u=i.isHorizontal(),d=e.getValueOrDefault(a.fontSize,r.defaultFontSize),h=e.getValueOrDefault(a.fontStyle,r.defaultFontStyle),p=e.getValueOrDefault(a.fontFamily,r.defaultFontFamily),f=e.fontString(d,h,p),g=e.getValueOrDefault(s.fontSize,r.defaultFontSize),m=o.gridLines.tickMarkLength;if(u?n.width=i.isFullWidth()?i.maxWidth-i.margins.left-i.margins.right:i.maxWidth:n.width=c&&l.drawTicks?m:0,u?n.height=c&&l.drawTicks?m:0:n.height=i.maxHeight,s.display&&c&&(u?n.height+=1.5*g:n.width+=1.5*g),a.display&&c){i.longestTextCache||(i.longestTextCache={});var v=e.longestText(i.ctx,f,i.ticks,i.longestTextCache),y=e.numberOfLabelLines(i.ticks),k=.5*d;if(u){i.longestLabelWidth=v;var w=Math.sin(e.toRadians(i.labelRotation))*i.longestLabelWidth+d*y+k*y;n.height=Math.min(i.maxHeight,n.height+w),i.ctx.font=f;var b=i.ctx.measureText(i.ticks[0]).width,x=i.ctx.measureText(i.ticks[i.ticks.length-1]).width,D=Math.cos(e.toRadians(i.labelRotation)),C=Math.sin(e.toRadians(i.labelRotation));i.paddingLeft=0!==i.labelRotation?D*b+3:b/2+3,i.paddingRight=0!==i.labelRotation?C*(d/2)+3:x/2+3}else{var _=i.maxWidth-n.width,S=a.mirror;S?v=0:v+=i.options.ticks.padding,_>v?n.width+=v:n.width=i.maxWidth,i.paddingTop=d/2,i.paddingBottom=d/2}}i.margins&&(i.paddingLeft=Math.max(i.paddingLeft-i.margins.left,0),i.paddingTop=Math.max(i.paddingTop-i.margins.top,0),i.paddingRight=Math.max(i.paddingRight-i.margins.right,0),i.paddingBottom=Math.max(i.paddingBottom-i.margins.bottom,0)),i.width=n.width,i.height=n.height},afterFit:function(){e.callCallback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){return null===t||"undefined"==typeof t?NaN:"number"==typeof t&&isNaN(t)?NaN:"object"==typeof t?t instanceof Date||t.isValid?t:this.getRightValue(this.isHorizontal()?t.x:t.y):t},getLabelForIndex:e.noop,getPixelForValue:e.noop,getValueForPixel:e.noop,getPixelForTick:function(t,e){var i=this;if(i.isHorizontal()){var n=i.width-(i.paddingLeft+i.paddingRight),o=n/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),r=o*t+i.paddingLeft;e&&(r+=o/2);var a=i.left+Math.round(r);return a+=i.isFullWidth()?i.margins.left:0}var s=i.height-(i.paddingTop+i.paddingBottom);return i.top+t*(s/(i.ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),n=i*t+e.paddingLeft,o=e.left+Math.round(n);return o+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){var t=this,e=t.min,i=t.max;return t.getPixelForValue(t.beginAtZero?0:0>e&&0>i?i:e>0&&i>0?e:0)},draw:function(i){var n=this,o=n.options;if(o.display){var r,a,s=n.ctx,l=t.defaults.global,c=o.ticks,u=o.gridLines,d=o.scaleLabel,h=0!==n.labelRotation,p=c.autoSkip,f=n.isHorizontal();c.maxTicksLimit&&(a=c.maxTicksLimit);var g=e.getValueOrDefault(c.fontColor,l.defaultFontColor),m=e.getValueOrDefault(c.fontSize,l.defaultFontSize),v=e.getValueOrDefault(c.fontStyle,l.defaultFontStyle),y=e.getValueOrDefault(c.fontFamily,l.defaultFontFamily),k=e.fontString(m,v,y),w=u.tickMarkLength,b=e.getValueOrDefault(u.borderDash,l.borderDash),x=e.getValueOrDefault(u.borderDashOffset,l.borderDashOffset),D=e.getValueOrDefault(d.fontColor,l.defaultFontColor),C=e.getValueOrDefault(d.fontSize,l.defaultFontSize),_=e.getValueOrDefault(d.fontStyle,l.defaultFontStyle),S=e.getValueOrDefault(d.fontFamily,l.defaultFontFamily),M=e.fontString(C,_,S),Y=e.toRadians(n.labelRotation),T=Math.cos(Y),A=n.longestLabelWidth*T;s.fillStyle=g;var P=[];if(f){if(r=!1,h&&(A/=2),(A+c.autoSkipPadding)*n.ticks.length>n.width-(n.paddingLeft+n.paddingRight)&&(r=1+Math.floor((A+c.autoSkipPadding)*n.ticks.length/(n.width-(n.paddingLeft+n.paddingRight)))),a&&n.ticks.length>a)for(;!r||n.ticks.length/(r||1)>a;)r||(r=1),r+=1;p||(r=!1)}var O="right"===o.position?n.left:n.right-w,I="right"===o.position?n.left+w:n.right,$="bottom"===o.position?n.top:n.bottom-w,L="bottom"===o.position?n.top+w:n.bottom;if(e.each(n.ticks,function(t,a){if(void 0!==t&&null!==t){var s=n.ticks.length===a+1,l=r>1&&a%r>0||a%r===0&&a+r>=n.ticks.length;if((!l||s)&&void 0!==t&&null!==t){var d,p;a===("undefined"!=typeof n.zeroLineIndex?n.zeroLineIndex:0)?(d=u.zeroLineWidth,p=u.zeroLineColor):(d=e.getValueAtIndexOrDefault(u.lineWidth,a),p=e.getValueAtIndexOrDefault(u.color,a));var g,m,v,y,k,D,C,_,S,M,T="middle",A="middle";if(f){h||(A="top"===o.position?"bottom":"top"),T=h?"right":"center";var E=n.getPixelForTick(a)+e.aliasPixel(d);S=n.getPixelForTick(a,u.offsetGridLines)+c.labelOffset,M=h?n.top+12:"top"===o.position?n.bottom-w:n.top+w,g=v=k=C=E,m=$,y=L,D=i.top,_=i.bottom}else{"left"===o.position?c.mirror?(S=n.right+c.padding,T="left"):(S=n.right-c.padding,T="right"):c.mirror?(S=n.left-c.padding,T="right"):(S=n.left+c.padding,T="left");var F=n.getPixelForTick(a);F+=e.aliasPixel(d),M=n.getPixelForTick(a,u.offsetGridLines),g=O,v=I,k=i.left,C=i.right,m=y=D=_=F}P.push({tx1:g,ty1:m,tx2:v,ty2:y,x1:k,y1:D,x2:C,y2:_,labelX:S,labelY:M,glWidth:d,glColor:p,glBorderDash:b,glBorderDashOffset:x,rotation:-1*Y,label:t,textBaseline:A,textAlign:T})}}}),e.each(P,function(t){if(u.display&&(s.save(),s.lineWidth=t.glWidth,s.strokeStyle=t.glColor,s.setLineDash&&(s.setLineDash(t.glBorderDash),s.lineDashOffset=t.glBorderDashOffset),s.beginPath(),u.drawTicks&&(s.moveTo(t.tx1,t.ty1),s.lineTo(t.tx2,t.ty2)),u.drawOnChartArea&&(s.moveTo(t.x1,t.y1),s.lineTo(t.x2,t.y2)),s.stroke(),s.restore()),c.display){s.save(),s.translate(t.labelX,t.labelY),s.rotate(t.rotation),s.font=k,s.textBaseline=t.textBaseline,s.textAlign=t.textAlign;var i=t.label;if(e.isArray(i))for(var n=0,o=-(i.length-1)*m*.75;ne;++e){var r=t[e];if(r&&r.hasValue()){var a=r.tooltipPosition();n.push(a.x),o.push(a.y)}}var s=0,l=0;for(e=0;e0){var r=t[0];r.xLabel?i=r.xLabel:o>0&&r.indexe;++e)f.push(n(c[e]));s.itemSort&&(f=f.sort(function(t,e){return s.itemSort(t,e,u)})),c.length>1&&o.each(f,function(t){h.push(s.callbacks.labelColor.call(a,t,d))}),o.extend(l,{title:a.getTitle(f,u),beforeBody:a.getBeforeBody(f,u),body:a.getBody(f,u),afterBody:a.getAfterBody(f,u),footer:a.getFooter(f,u),x:Math.round(p.x),y:Math.round(p.y),caretPadding:o.getValueOrDefault(p.padding,2),labelColors:h});var g=a.getTooltipSize(l);a.determineAlignment(g),o.extend(l,a.getBackgroundPoint(l,g))}else a._model.opacity=0;return t&&s.custom&&s.custom.call(a,l),a},getTooltipSize:function(t){var e=this._chart.ctx,i={height:2*t.yPadding,width:0},n=t.body,r=n.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);r+=t.beforeBody.length+t.afterBody.length;var a=t.title.length,s=t.footer.length,l=t.titleFontSize,c=t.bodyFontSize,u=t.footerFontSize;i.height+=a*l,i.height+=(a-1)*t.titleSpacing,i.height+=a?t.titleMarginBottom:0,i.height+=r*c,i.height+=r?(r-1)*t.bodySpacing:0,i.height+=s?t.footerMarginTop:0,i.height+=s*u,i.height+=s?(s-1)*t.footerSpacing:0;var d=0,h=function(t){i.width=Math.max(i.width,e.measureText(t).width+d)};return e.font=o.fontString(l,t._titleFontStyle,t._titleFontFamily),o.each(t.title,h),e.font=o.fontString(c,t._bodyFontStyle,t._bodyFontFamily),o.each(t.beforeBody.concat(t.afterBody),h),d=n.length>1?c+2:0,o.each(n,function(t){o.each(t.before,h),o.each(t.lines,h),o.each(t.after,h)}),d=0,e.font=o.fontString(u,t._footerFontStyle,t._footerFontFamily),o.each(t.footer,h),i.width+=2*t.xPadding,i},determineAlignment:function(t){var e=this,i=e._model,n=e._chart,o=e._chartInstance.chartArea;i.yn.height-t.height&&(i.yAlign="bottom");var r,a,s,l,c,u=(o.left+o.right)/2,d=(o.top+o.bottom)/2;"center"===i.yAlign?(r=function(t){return u>=t},a=function(t){return t>u}):(r=function(e){return e<=t.width/2},a=function(e){return e>=n.width-t.width/2}),s=function(e){return e+t.width>n.width},l=function(e){return e-t.width<0},c=function(t){return d>=t?"top":"bottom"},r(i.x)?(i.xAlign="left",s(i.x)&&(i.xAlign="center",i.yAlign=c(i.y))):a(i.x)&&(i.xAlign="right",l(i.x)&&(i.xAlign="center",i.yAlign=c(i.y)))},getBackgroundPoint:function(t,e){var i={x:t.x,y:t.y},n=t.caretSize,o=t.caretPadding,r=t.cornerRadius,a=t.xAlign,s=t.yAlign,l=n+o,c=r+o;return"right"===a?i.x-=e.width:"center"===a&&(i.x-=e.width/2),"top"===s?i.y+=l:"bottom"===s?i.y-=e.height+l:i.y-=e.height/2,"center"===s?"left"===a?i.x+=l:"right"===a&&(i.x-=l):"left"===a?i.x-=c:"right"===a&&(i.x+=c),i},drawCaret:function(t,e,i){var n,r,a,s,l,c,u=this._view,d=this._chart.ctx,h=u.caretSize,p=u.cornerRadius,f=u.xAlign,g=u.yAlign,m=t.x,v=t.y,y=e.width,k=e.height;"center"===g?("left"===f?(n=m,r=n-h,a=n):(n=m+y,r=n+h,a=n),l=v+k/2,s=l-h,c=l+h):("left"===f?(n=m+p,r=n+h,a=r+h):"right"===f?(n=m+y-p,r=n-h,a=r-h):(r=m+y/2,n=r-h,a=r+h),"top"===g?(s=v,l=s-h,c=s):(s=v+k,l=s+h,c=s));var w=o.color(u.backgroundColor);d.fillStyle=w.alpha(i*w.alpha()).rgbString(),d.beginPath(),d.moveTo(n,s),d.lineTo(r,l),d.lineTo(a,c),d.closePath(),d.fill()},drawTitle:function(t,e,i,n){var r=e.title;if(r.length){i.textAlign=e._titleAlign,i.textBaseline="top";var a=e.titleFontSize,s=e.titleSpacing,l=o.color(e.titleFontColor);i.fillStyle=l.alpha(n*l.alpha()).rgbString(),i.font=o.fontString(a,e._titleFontStyle,e._titleFontFamily);var c,u;for(c=0,u=r.length;u>c;++c)i.fillText(r[c],t.x,t.y),t.y+=a+s,c+1===r.length&&(t.y+=e.titleMarginBottom-s)}},drawBody:function(t,e,i,n){var r=e.bodyFontSize,a=e.bodySpacing,s=e.body;i.textAlign=e._bodyAlign,i.textBaseline="top";var l=o.color(e.bodyFontColor),c=l.alpha(n*l.alpha()).rgbString();i.fillStyle=c,i.font=o.fontString(r,e._bodyFontStyle,e._bodyFontFamily);var u=0,d=function(e){i.fillText(e,t.x+u,t.y),t.y+=r+a};o.each(e.beforeBody,d);var h=s.length>1;u=h?r+2:0,o.each(s,function(a,s){o.each(a.before,d),o.each(a.lines,function(a){h&&(i.fillStyle=o.color(e.legendColorBackground).alpha(n).rgbaString(),i.fillRect(t.x,t.y,r,r),i.strokeStyle=o.color(e.labelColors[s].borderColor).alpha(n).rgbaString(),i.strokeRect(t.x,t.y,r,r),i.fillStyle=o.color(e.labelColors[s].backgroundColor).alpha(n).rgbaString(),i.fillRect(t.x+1,t.y+1,r-2,r-2),i.fillStyle=c),d(a)}),o.each(a.after,d)}),u=0,o.each(e.afterBody,d),t.y-=a},drawFooter:function(t,e,i,n){var r=e.footer;if(r.length){t.y+=e.footerMarginTop,i.textAlign=e._footerAlign,i.textBaseline="top";var a=o.color(e.footerFontColor);i.fillStyle=a.alpha(n*a.alpha()).rgbString(),i.font=o.fontString(e.footerFontSize,e._footerFontStyle,e._footerFontFamily),o.each(r,function(n){i.fillText(n,t.x,t.y),t.y+=e.footerFontSize+e.footerSpacing})}},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i=this.getTooltipSize(e),n={x:e.x,y:e.y},r=Math.abs(e.opacity<.001)?0:e.opacity;if(this._options.enabled){var a=o.color(e.backgroundColor);t.fillStyle=a.alpha(r*a.alpha()).rgbString(),o.drawRoundedRectangle(t,n.x,n.y,i.width,i.height,e.cornerRadius),t.fill(),this.drawCaret(n,i,r),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,r),this.drawBody(n,e,t,r),this.drawFooter(n,e,t,r)}}}})}},{}],35:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;i.elements.arc={backgroundColor:i.defaultColor,borderColor:"#fff",borderWidth:2},t.elements.Arc=t.Element.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)l;)l+=2*Math.PI;for(;r>l;)r-=2*Math.PI;for(;s>r;)r+=2*Math.PI;var c=r>=s&&l>=r,u=a>=n.innerRadius&&a<=n.outerRadius;return c&&u}return!1},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})}},{}],36:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=t.defaults.global;t.defaults.global.elements.line={tension:.4,backgroundColor:i.defaultColor,borderWidth:3,borderColor:i.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},t.elements.Line=t.Element.extend({draw:function(){function t(t,e){var i=e._view;e._view.steppedLine===!0?(l.lineTo(i.x,t._view.y),l.lineTo(i.x,i.y)):0===e._view.tension?l.lineTo(i.x,i.y):l.bezierCurveTo(t._view.controlPointNextX,t._view.controlPointNextY,i.controlPointPreviousX,i.controlPointPreviousY,i.x,i.y)}var n=this,o=n._view,r=o.spanGaps,a=o.scaleZero,s=n._loop,l=n._chart.ctx;l.save();var c=n._children.slice(),u=-1;s&&c.length&&c.push(c[0]);var d,h,p,f;if(c.length&&o.fill){for(l.beginPath(),d=0;dd;d++)e.lineTo.apply(e,t(d));e.fill(),i.borderWidth&&e.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=this._view;return!!i&&(i.y=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.y&&e<=i.base:t>=i.x-i.width/2&&t<=i.x+i.width/2&&e>=i.base&&e<=i.y)},inLabelRange:function(t){var e=this._view;return!!e&&(t>=e.x-e.width/2&&t<=e.x+e.width/2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})}},{}],39:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"bottom"},n=t.Scale.extend({getLabels:function(){var t=this.chart.data;return(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t=this,i=t.getLabels();t.minIndex=0,t.maxIndex=i.length-1;var n;void 0!==t.options.ticks.min&&(n=e.indexOf(i,t.options.ticks.min),t.minIndex=-1!==n?n:t.minIndex),void 0!==t.options.ticks.max&&(n=e.indexOf(i,t.options.ticks.max),t.maxIndex=-1!==n?n:t.maxIndex),t.min=i[t.minIndex],t.max=i[t.maxIndex]},buildTicks:function(){var t=this,e=t.getLabels();t.ticks=0===t.minIndex&&t.maxIndex===e.length-1?e:e.slice(t.minIndex,t.maxIndex+1)},getLabelForIndex:function(t,e){var i=this,n=i.chart.data,o=i.isHorizontal();return n.xLabels&&o||n.yLabels&&!o?i.getRightValue(n.datasets[e].data[t]):i.ticks[t]},getPixelForValue:function(t,e,i,n){var o=this,r=Math.max(o.maxIndex+1-o.minIndex-(o.options.gridLines.offsetGridLines?0:1),1);if(void 0!==t&&isNaN(e)){var a=o.getLabels(),s=a.indexOf(t);e=-1!==s?s:e}if(o.isHorizontal()){var l=o.width-(o.paddingLeft+o.paddingRight),c=l/r,u=c*(e-o.minIndex)+o.paddingLeft;return(o.options.gridLines.offsetGridLines&&n||o.maxIndex===o.minIndex&&n)&&(u+=c/2),o.left+Math.round(u)}var d=o.height-(o.paddingTop+o.paddingBottom),h=d/r,p=h*(e-o.minIndex)+o.paddingTop;return o.options.gridLines.offsetGridLines&&n&&(p+=h/2),o.top+Math.round(p)},getPixelForTick:function(t,e){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null,e)},getValueForPixel:function(t){var e,i=this,n=Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),o=i.isHorizontal(),r=o?i.width-(i.paddingLeft+i.paddingRight):i.height-(i.paddingTop+i.paddingBottom),a=r/n;return t-=o?i.left:i.top,i.options.gridLines.offsetGridLines&&(t-=a/2),t-=o?i.paddingLeft:i.paddingTop,e=0>=t?0:Math.round(t/a)},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",n,i)}},{}],40:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=n.length>3?n[2]-n[1]:n[1]-n[0];Math.abs(o)>1&&t!==Math.floor(t)&&(o=t-Math.floor(t));var r=e.log10(Math.abs(o)),a="";if(0!==t){var s=-1*Math.floor(r);s=Math.max(Math.min(s,20),0),a=t.toFixed(s)}else a="0";return a}}},n=t.LinearScaleBase.extend({determineDataLimits:function(){function t(t){return s?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=i.chart,r=o.data,a=r.datasets,s=i.isHorizontal();if(i.min=null,i.max=null,n.stacked){var l={};e.each(a,function(r,a){var s=o.getDatasetMeta(a);void 0===l[s.type]&&(l[s.type]={positiveValues:[],negativeValues:[]});var c=l[s.type].positiveValues,u=l[s.type].negativeValues;o.isDatasetVisible(a)&&t(s)&&e.each(r.data,function(t,e){var o=+i.getRightValue(t);isNaN(o)||s.data[e].hidden||(c[e]=c[e]||0,u[e]=u[e]||0,n.relativePoints?c[e]=100:0>o?u[e]+=o:c[e]+=o)})}),e.each(l,function(t){var n=t.positiveValues.concat(t.negativeValues),o=e.min(n),r=e.max(n);i.min=null===i.min?o:Math.min(i.min,o),i.max=null===i.max?r:Math.max(i.max,r)})}else e.each(a,function(n,r){var a=o.getDatasetMeta(r);o.isDatasetVisible(r)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n))})});this.handleTickRangeOptions()},getTickLimit:function(){var i,n=this,o=n.options.ticks;if(n.isHorizontal())i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.width/50));else{var r=e.getValueOrDefault(o.fontSize,t.defaults.global.defaultFontSize);i=Math.min(o.maxTicksLimit?o.maxTicksLimit:11,Math.ceil(n.height/(2*r)))}return i},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i,n=this,o=n.paddingLeft,r=n.paddingBottom,a=n.start,s=+n.getRightValue(t),l=n.end-a;return n.isHorizontal()?(i=n.width-(o+n.paddingRight),e=n.left+i/l*(s-a),Math.round(e+o)):(i=n.height-(n.paddingTop+r),e=n.bottom-r-i/l*(s-a),Math.round(e))},getValueForPixel:function(t){var e=this,i=e.isHorizontal(),n=e.paddingLeft,o=e.paddingBottom,r=i?e.width-(n+e.paddingRight):e.height-(e.paddingTop+o),a=(i?t-e.left-n:e.bottom-o-t)/r;return e.start+(e.end-e.start)*a},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",n,i)}},{}],41:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i=e.noop;t.LinearScaleBase=t.Scale.extend({handleTickRangeOptions:function(){var t=this,i=t.options,n=i.ticks;if(n.beginAtZero){var o=e.sign(t.min),r=e.sign(t.max);0>o&&0>r?t.max=0:o>0&&r>0&&(t.min=0)}void 0!==n.min?t.min=n.min:void 0!==n.suggestedMin&&(t.min=Math.min(t.min,n.suggestedMin)),void 0!==n.max?t.max=n.max:void 0!==n.suggestedMax&&(t.max=Math.max(t.max,n.suggestedMax)),t.min===t.max&&(t.max++,n.beginAtZero||t.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var t=this,i=t.options,n=t.ticks=[],o=i.ticks,r=e.getValueOrDefault,a=t.getTickLimit();a=Math.max(2,a);var s,l=o.fixedStepSize&&o.fixedStepSize>0||o.stepSize&&o.stepSize>0;if(l)s=r(o.fixedStepSize,o.stepSize);else{var c=e.niceNum(t.max-t.min,!1);s=e.niceNum(c/(a-1),!0)}var u=Math.floor(t.min/s)*s,d=Math.ceil(t.max/s)*s,h=(d-u)/s;h=e.almostEquals(h,Math.round(h),s/1e3)?Math.round(h):Math.ceil(h),n.push(void 0!==o.min?o.min:u);for(var p=1;h>p;++p)n.push(u+p*s);n.push(void 0!==o.max?o.max:d),t.handleDirectionalChanges(),t.max=e.max(n),t.min=e.min(n),o.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var e=this;e.ticksAsNumbers=e.ticks.slice(),e.zeroLineIndex=e.ticks.indexOf(0),t.Scale.prototype.convertTicksToLabels.call(e)}})}},{}],42:[function(t,e,i){"use strict";e.exports=function(t){var e=t.helpers,i={position:"left",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(e.log10(t)));return 0===t?"0":1===o||2===o||5===o||0===i||i===n.length-1?t.toExponential():""}}},n=t.Scale.extend({determineDataLimits:function(){function t(t){return c?t.xAxisID===i.id:t.yAxisID===i.id}var i=this,n=i.options,o=n.ticks,r=i.chart,a=r.data,s=a.datasets,l=e.getValueOrDefault,c=i.isHorizontal();if(i.min=null,i.max=null,i.minNotZero=null,n.stacked){var u={};e.each(s,function(o,a){var s=r.getDatasetMeta(a);r.isDatasetVisible(a)&&t(s)&&(void 0===u[s.type]&&(u[s.type]=[]),e.each(o.data,function(t,e){var o=u[s.type],r=+i.getRightValue(t);isNaN(r)||s.data[e].hidden||(o[e]=o[e]||0,n.relativePoints?o[e]=100:o[e]+=r)}))}),e.each(u,function(t){var n=e.min(t),o=e.max(t);i.min=null===i.min?n:Math.min(i.min,n),i.max=null===i.max?o:Math.max(i.max,o)})}else e.each(s,function(n,o){var a=r.getDatasetMeta(o);r.isDatasetVisible(o)&&t(a)&&e.each(n.data,function(t,e){var n=+i.getRightValue(t);isNaN(n)||a.data[e].hidden||(null===i.min?i.min=n:ni.max&&(i.max=n),0!==n&&(null===i.minNotZero||nt.max&&(t.max=n))})}}),t.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,n=e.getValueOrDefault(t.fontSize,i.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*n)))},convertTicksToLabels:function(){var e=this;t.LinearScaleBase.prototype.convertTicksToLabels.call(e),e.pointLabels=e.chart.data.labels.map(e.options.pointLabels.callback,e)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,n,o,r,a,s,l,c,u,d,h,p,f=this.options.pointLabels,g=e.getValueOrDefault(f.fontSize,i.defaultFontSize),m=e.getValueOrDefault(f.fontStyle,i.defaultFontStyle),v=e.getValueOrDefault(f.fontFamily,i.defaultFontFamily),y=e.fontString(g,m,v),k=e.min([this.height/2-g-5,this.width/2]),w=this.width,b=0;for(this.ctx.font=y,n=0;nw&&(w=t.x+r,a=n),t.x-rD?t.x+o>w&&(w=t.x+o,a=n):t.x-oe&&0>i?i:e>0&&i>0?e:0)},draw:function(){var t=this,n=t.options,o=n.gridLines,r=n.ticks,a=n.angleLines,s=n.pointLabels,l=e.getValueOrDefault;if(n.display){var c=t.ctx,u=l(r.fontSize,i.defaultFontSize),d=l(r.fontStyle,i.defaultFontStyle),h=l(r.fontFamily,i.defaultFontFamily),p=e.fontString(u,d,h);if(e.each(t.ticks,function(a,s){if(s>0||n.reverse){var d=t.getDistanceFromCenterForValue(t.ticksAsNumbers[s]),h=t.yCenter-d;if(o.display&&0!==s)if(c.strokeStyle=e.getValueAtIndexOrDefault(o.color,s-1),c.lineWidth=e.getValueAtIndexOrDefault(o.lineWidth,s-1),n.lineArc)c.beginPath(),c.arc(t.xCenter,t.yCenter,d,0,2*Math.PI),c.closePath(),c.stroke();else{c.beginPath();for(var f=0;f=0;k--){if(a.display){var w=t.getPointPosition(k,f);c.beginPath(),c.moveTo(t.xCenter,t.yCenter),c.lineTo(w.x,w.y),c.stroke(),c.closePath()}var b=t.getPointPosition(k,f+5),x=l(s.fontColor,i.defaultFontColor);c.font=y,c.fillStyle=x;var D=t.pointLabels,C=this.getIndexAngle(k)+Math.PI/2,_=360*C/(2*Math.PI)%360;0===_||180===_?c.textAlign="center":180>_?c.textAlign="left":c.textAlign="right",90===_||270===_?c.textBaseline="middle":_>270||90>_?c.textBaseline="bottom":c.textBaseline="top",c.fillText(D[k]?D[k]:"",b.x,b.y)}}}}});t.scaleService.registerScaleType("radialLinear",o,n)}},{}],44:[function(t,e,i){"use strict";var n=t(1);n="function"==typeof n?n:window.moment,e.exports=function(t){var e=t.helpers,i={units:[{name:"millisecond",steps:[1,2,5,10,20,50,100,250,500]},{name:"second",steps:[1,2,5,10,30]},{name:"minute",steps:[1,2,5,10,30]},{name:"hour",steps:[1,2,3,6,12]},{name:"day",steps:[1,2,5]},{name:"week",maxStep:4},{name:"month",maxStep:3},{name:"quarter",maxStep:4},{name:"year",maxStep:!1}]},o={position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}},r=t.Scale.extend({initialize:function(){if(!n)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");t.Scale.prototype.initialize.call(this)},getLabelMoment:function(t,e){return null===t||null===e?null:"undefined"!=typeof this.labelMoments[t]?this.labelMoments[t][e]:null},getLabelDiff:function(t,e){var i=this;return null===t||null===e?null:(void 0===i.labelDiffs&&i.buildLabelDiffs(),"undefined"!=typeof i.labelDiffs[t]?i.labelDiffs[t][e]:null)},getMomentStartOf:function(t){var e=this;return"week"===e.options.time.unit&&e.options.time.isoWeekday!==!1?t.clone().startOf("isoWeek").isoWeekday(e.options.time.isoWeekday):t.clone().startOf(e.tickUnit)},determineDataLimits:function(){var t=this;t.labelMoments=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0?(e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n))},t),t.firstTick=n.min.call(t,i),t.lastTick=n.max.call(t,i)):(t.firstTick=null,t.lastTick=null),e.each(t.chart.data.datasets,function(o,r){var a=[],s=t.chart.isDatasetVisible(r);"object"==typeof o.data[0]&&null!==o.data[0]?e.each(o.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),a.push(i),s&&(t.firstTick=null!==t.firstTick?n.min(t.firstTick,i):i,t.lastTick=null!==t.lastTick?n.max(t.lastTick,i):i))},t):a=i,t.labelMoments.push(a)},t),t.options.time.min&&(t.firstTick=t.parseTime(t.options.time.min)),t.options.time.max&&(t.lastTick=t.parseTime(t.options.time.max)),t.firstTick=(t.firstTick||n()).clone(),t.lastTick=(t.lastTick||n()).clone()},buildLabelDiffs:function(){var t=this;t.labelDiffs=[];var i=[];t.chart.data.labels&&t.chart.data.labels.length>0&&e.each(t.chart.data.labels,function(e){var n=t.parseTime(e);n.isValid()&&(t.options.time.round&&n.startOf(t.options.time.round),i.push(n.diff(t.firstTick,t.tickUnit,!0)))},t),e.each(t.chart.data.datasets,function(n){var o=[];"object"==typeof n.data[0]&&null!==n.data[0]?e.each(n.data,function(e){var i=t.parseTime(t.getRightValue(e));i.isValid()&&(t.options.time.round&&i.startOf(t.options.time.round),o.push(i.diff(t.firstTick,t.tickUnit,!0)))},t):o=i,t.labelDiffs.push(o)},t)},buildTicks:function(){var n=this;n.ctx.save();var o=e.getValueOrDefault(n.options.ticks.fontSize,t.defaults.global.defaultFontSize),r=e.getValueOrDefault(n.options.ticks.fontStyle,t.defaults.global.defaultFontStyle),a=e.getValueOrDefault(n.options.ticks.fontFamily,t.defaults.global.defaultFontFamily),s=e.fontString(o,r,a);if(n.ctx.font=s,n.ticks=[],n.unitScale=1,n.scaleSizeInUnits=0,n.options.time.unit)n.tickUnit=n.options.time.unit||"day",n.displayFormat=n.options.time.displayFormats[n.tickUnit],n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,1);else{var l=n.isHorizontal()?n.width-(n.paddingLeft+n.paddingRight):n.height-(n.paddingTop+n.paddingBottom),c=n.tickFormatFunction(n.firstTick,0,[]),u=n.ctx.measureText(c).width,d=Math.cos(e.toRadians(n.options.ticks.maxRotation)),h=Math.sin(e.toRadians(n.options.ticks.maxRotation));u=u*d+o*h;var p=l/u;n.tickUnit=n.options.time.minUnit,n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0),n.displayFormat=n.options.time.displayFormats[n.tickUnit];for(var f=0,g=i.units[f];f=Math.ceil(n.scaleSizeInUnits/p)){n.unitScale=e.getValueOrDefault(n.options.time.unitStepSize,g.steps[m]);break}break}if(g.maxStep===!1||Math.ceil(n.scaleSizeInUnits/p)b?n.lastTick=n.getMomentStartOf(n.lastTick.add(1,n.tickUnit)):b>=0&&(n.lastTick=w),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0)}n.options.time.displayFormat&&(n.displayFormat=n.options.time.displayFormat),n.ticks.push(n.firstTick.clone());for(var x=1;x<=n.scaleSizeInUnits;++x){var D=k.clone().add(x,n.tickUnit);if(n.options.time.max&&D.diff(n.lastTick,n.tickUnit,!0)>=0)break;x%n.unitScale===0&&n.ticks.push(D)}var C=n.ticks[n.ticks.length-1].diff(n.lastTick,n.tickUnit);(0!==C||0===n.scaleSizeInUnits)&&(n.options.time.max?(n.ticks.push(n.lastTick.clone()),
n.scaleSizeInUnits=n.lastTick.diff(n.ticks[0],n.tickUnit,!0)):(n.ticks.push(n.lastTick.clone()),n.scaleSizeInUnits=n.lastTick.diff(n.firstTick,n.tickUnit,!0))),n.ctx.restore(),n.labelDiffs=void 0},getLabelForIndex:function(t,e){var i=this,n=i.chart.data.labels&&t0&&void 0!==arguments[0]?arguments[0]:1;"true"===this.rememberChart?this.chartType=this.getFromLocalStorage("pageviews-chart-preference")||this.config.defaults.chartType(t):this.chartType=this.config.defaults.chartType(t)}},{key:"destroyChart",value:function(){this.chartObj&&(this.chartObj.destroy(),$(".chart-legend").html(""))}},{key:"exportCSV",value:function(){var t="data:text/csv;charset=utf-8,Date,",e=[],i=[],n=this.getDateHeadings(!1);n.forEach(function(t,e){i[e]=[t]}),this.chartObj.data.datasets.forEach(function(t){var o='"'+t.label.replace(/"/g,'""')+'"';e.push(o),n.forEach(function(e,n){i[n].push(t.data[n])})}),t=t+e.join(",")+"\n",i.forEach(function(e){t+=e.join(",")+"\n"}),this.downloadData(t,"csv")}},{key:"exportJSON",value:function(){var t=this,e=[];this.chartObj.data.datasets.forEach(function(i,n){var o={page:i.label.replace(/"/g,'"').replace(/'/g,"'"),color:i.strokeColor,sum:i.sum,daily_average:Math.round(i.sum/t.numDaysInRange())};t.getDateHeadings(!1).forEach(function(t,e){o[t.replace(/\\/,"")]=i.data[e]}),e.push(o)});var i="data:text/json;charset=utf-8,"+JSON.stringify(e);this.downloadData(i,"json")}},{key:"exportPNG",value:function(){this.downloadData(this.chartObj.toBase64Image(),"png")}},{key:"fillInZeros",value:function(t,e,i){var n=this,r={};t.items.forEach(function(t){var e=moment(t.timestamp,n.config.timestampFormat).format("YYYYMMDD");r[e]=t}),t.items=[];for(var a=moment(e);a<=i;a.add(1,"day"))if(r[a.format("YYYYMMDD")])t.items.push(r[a.format("YYYYMMDD")]);else{var s=a.isSame(this.config.maxDate)||a.isSame(moment(this.config.maxDate).subtract(1,"days"));t.items.push(o({timestamp:a.format(this.config.timestampFormat)},this.isPageviews()?"views":"devices",s?null:0))}return t}},{key:"buildChartData",value:function(t,e){var i=this,n=void 0;return n=this.isPageviews()?"views":"metaviews"===this.app?"count":"devices",t.map(function(t,o){var r=i.getDateHeadings(!1),a=new Array(r.length),s=0,l=void 0,c=0;t.forEach(function(t){var e=t[n],o=void 0;o="metaviews"===i.app?t.date:moment(t.timestamp,i.config.timestampFormat).format("YYYY-MM-DD"),a[r.indexOf(o)]=e,s+=e||0,e>c&&(c=e),(void 0===l||e";e.toastWarn($.i18n("new-article-warning",n))}});var d="siteviews"===e.app?e.getSiteLink(l):e.getPageLink(l,e.project);s.errors.push(d+": "+$.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title)}}).always(function(){++n===r&&(e.pageViewsData=s,i.resolve(s),a.length&&e.writeMessage($.i18n("api-error-timeout",""+a.map(function(t){return""+e.getPageLink(t,e.project.escape())+" "}).join("")+" ")))})};return t.forEach(function(t,e){return l(t,e)}),i}},{key:"getPermaLink",value:function(){var t=this.getParams(!1);return delete t.range,t}},{key:"isLogarithmic",value:function(){return $(this.config.logarithmicCheckbox).is(":checked")&&this.isLogarithmicCapable()}},{key:"isLogarithmicCapable",value:function(){return["line","bar"].includes(this.chartType)}},{key:"isPageviews",value:function(){return"pageviews"===this.app||"pageviews"===$(this.config.dataSourceSelector).val()}},{key:"isUniqueDevices",value:function(){return!this.isPageviews()}},{key:"printChart",value:function(){var t=window.open();t.document.write(' '),t.print(),t.close()}},{key:"resetView",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];try{this.destroyChart(),t&&this.resetSelect2()}catch(t){}finally{this.stopSpinny(),$("body").addClass("initial"),$(this.config.chart).hide(),e&&this.clearMessages()}}},{key:"setChartPointDetectionRadius",value:function(){"line"===this.chartType&&(this.numDaysInRange()>50?Chart.defaults.global.elements.point.hitRadius=3:this.numDaysInRange()>30?Chart.defaults.global.elements.point.hitRadius=5:this.numDaysInRange()>20?Chart.defaults.global.elements.point.hitRadius=10:Chart.defaults.global.elements.point.hitRadius=30)}},{key:"shouldBeLogarithmic",value:function(t){var e;if(!this.isLogarithmicCapable()||this.noLogScale)return!1;var i=[];t.forEach(function(t){i.push(t.map(function(t){return t||0}))});var o=Math.max.apply(Math,n((e=[]).concat.apply(e,i)));if(o<=10)return!1;var r=!1;return i.forEach(function(t){t.push(o);var e=t.reduce(function(t,e){return t+e}),i=e/t.length,n=0;if(t.forEach(function(t){return n+=t?t*Math.log(t/i):0}),n/e>.5)return r=!0}),r}},{key:"setupDateRangeSelector",value:function(){var t=this;if(c(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupDateRangeSelector",this).call(this),this.isChartApp()){var i=$(this.config.dateRangeSelector);$(".date-latest a").on("click",function(e){var i=$(e.target).data("value");t.setSpecialRange("latest-"+i),$(".latest-text").text($.i18n("latest-days",i))}),i.on("change",function(e){t.processInput(),$(".latest-text").text($.i18n("latest")),t.specialRange&&t.specialRange.value!==e.target.value&&(t.specialRange=null)})}}},{key:"updateChart",value:function(t){var e=this;$(".chart-legend").html("");var i=t?t.entities:$(this.config.select2Input).val();if(!t||!this.showErrors(t)){if(!i.length)return this.stopSpinny();if(1===i.length?$(".multi-page-chart-node").hide():$(".multi-page-chart-node").show(),t&&(this.outputData=this.buildChartData(t.datasets,i)),"true"===this.autoLogDetection){var o=this.shouldBeLogarithmic(this.outputData.map(function(t){return t.data}));$(this.config.logarithmicCheckbox).prop("checked",o),$(".begin-at-zero").toggleClass("disabled",o)}this.outputData=this.setColorsAndLogValues(this.outputData);var r=Object.assign({scales:{}},this.config.chartConfig[this.chartType].opts,this.config.globalChartOpts);this.isLogarithmic()&&(r.scales=Object.assign({},r.scales,{yAxes:[{type:"logarithmic",ticks:{callback:function(t,i,n){var o=t/Math.pow(10,Math.floor(Chart.helpers.log10(t)));return 1===o||2===o||5===o||0===i||i===n.length-1?e.formatNumber(t):""}}}]})),this.stopSpinny();try{$(".chart-container").html("").append(""),this.setChartPointDetectionRadius();var a=$(this.config.chart)[0].getContext("2d"),s=Math.min.apply(Math,n(this.outputData.map(function(t){return t.min})));if(this.config.linearCharts.includes(this.chartType)){var l={labels:this.getDateHeadings(),datasets:this.outputData,dateFormat:this.dateFormat};"radar"===this.chartType?r.scale.ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"):(r.scales.yAxes[0].ticks.beginAtZero=0===s||$(".begin-at-zero-option").is(":checked"),r.zoom=["pageviews","siteviews"].includes(this.app)&&this.numDaysInRange()>1),$(".show-labels-option").is(":checked")?r=this.showPointLabels(r):(delete r.animation.onComplete,delete r.animation.onProgress),this.chartObj=new Chart(a,{type:this.chartType,data:l,options:r})}else delete r.animation.onComplete,delete r.animation.onProgress,this.chartObj=new Chart(a,{type:this.chartType,data:{labels:this.outputData.map(function(t){return t.label}),datasets:[{data:this.outputData.map(function(t){return t.value}),backgroundColor:this.outputData.map(function(t){return t.backgroundColor}),hoverBackgroundColor:this.outputData.map(function(t){return t.hoverBackgroundColor}),averages:this.outputData.map(function(t){return t.average})}]},options:r})}catch(t){return this.showErrors({errors:[],fatalErrors:[t]})}$(".chart-legend").html(this.chartObj.generateLegend()),$(".data-links").removeClass("invisible"),["metaviews","pageviews","siteviews"].includes(this.app)&&this.updateTable()}}},{key:"showPointLabels",value:function(t){if(["bar","line"].includes(this.chartType)){var e=function(t){return t.textAlign="center",t.textBaseline="bottom",t.fillStyle="#444",t.font=Chart.helpers.fontString(Chart.defaults.global.defaultFontSize,Chart.defaults.global.defaultFontStyle,Chart.defaults.global.defaultFontFamily),t},i=function(t,i){var n=t.chart,o=e(n.ctx);Chart.helpers.each(t.data.datasets.forEach(function(e,r){var a=n.controller.getDatasetMeta(r);Chart.helpers.each(a.data.forEach(function(t,n){o.fillStyle="rgba(68,68,68,"+i+")";var r=e._meta[Object.keys(e._meta)[0]].data[n]._yScale.maxHeight,a=(r-t._model.y)/r>=.93?t._model.y+5:t._model.y-10;o.fillText(e.data[n],t._model.x,a)}),t)}),t)};return t.animation.onComplete=function(){i(this,1)},t.animation.onProgress=function(t){var e=t.animationObject;i(this,e.currentStep/e.numSteps)},t}}},{key:"showErrors",value:function(t){var e=this;if(t.fatalErrors.length){this.resetView(!0);var i=t.fatalErrors.unique();return this.showFatalErrors(i),!0}return t.errors.length&&(!t.entities||t.errors.length!==t.entities.length&&t.entities.length||this.resetView(),t.errors.unique().forEach(function(t){return e.writeMessage(t)})),!1}}]),e}(t)};e.exports=u},{"./zoom_plugin":7}],2:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(e){return t[e]})},Array.prototype.unique=function(){return this.filter(function(t,e,i){return i.indexOf(t)===e})},window.mix=function(t){return new r(t)};var r=function(){function t(e){n(this,t),this.superclass=e}return o(t,[{key:"with",value:function(){for(var t=arguments.length,e=Array(t),i=0;ithis.length)&&this.indexOf(t,e)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+t+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var e=10;return setInterval(function(){return 0===--e?document.location=t:void $(".countdown").text(e)},1e3),{v:r(i)}}();if("object"===("undefined"==typeof c?"undefined":l(c)))return c.v}i.debug?window.app=i:i.splash();var u=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(u.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(u).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(e,t),c(e,[{key:"toast",value:function(t){var e=t.title?""+t.title+" ":"";t=Object.assign({message:e+t.message,level:"warning",timeout:10},t),toastr.options.timeOut=1e3*t.timeout,toastr[t.level](t.message)}},{key:"toastSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"success",timeout:e})}},{key:"toastInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"info",timeout:e})}},{key:"toastWarn",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"warning",timeout:e})}},{key:"toastError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:t,level:"error",timeout:e})}},{key:"addInvalidParamNotice",value:function(t){var e=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",t,e)+"\n ")}},{key:"validateDateRange",value:function(t){if(t.range)this.setSpecialRange(t.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(t.start){var e=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!t.start||!e.test(t.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(t.start),!t.end||!e.test(t.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(t.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(t){return Object.keys(d).find(function(e){return d[e]===t.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(t,e){var i=encodeURI(t),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+e;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var t=this;$.each($("#settings-modal input"),function(e,i){"checkbox"===i.type?i.checked="true"===t[i.name]:i.checked=t[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(t){var e=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===e?this.n(t):t}},{key:"formatYAxisNumber",value:function(t){return t%1===0?this.formatNumber(t):null}},{key:"getDateHeadings",value:function(){for(var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))t?e.push(n.format(this.dateFormat)):e.push(n.format("YYYY-MM-DD"));return e}},{key:"getExpandedPageURL",value:function(t){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(t.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(t,e){return'\n '+e+"\n "}},{key:"getExportFilename",value:function(){var t=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),e=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+t+"-"+e}},{key:"getPageLink",value:function(t,e){return''+t.descore().escape()+" "}},{key:"getPageURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+e.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(t.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(t){return''+t+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var t={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY",
-"ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":2,"./polyfills":3,"./pv_config":5,"./site_map":6}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":6}],6:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",
-kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],7:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],8:[function(t,e,i){"use strict";var n=t("./templates"),o={agentSelector:"#agent-select",chart:".aqs-chart",chartLegend:n.chartLegend,dataSourceSelector:"#data-source-select",dateRangeSelector:".aqs-date-range-selector",defaults:{dateRange:"latest-20",projects:["fr.wikipedia.org","de.wikipedia.org"],source:"pageviews"},logarithmicCheckbox:".logarithmic-scale-option",platformSelector:"#platform-select",projectInput:".aqs-project-input",select2Input:".aqs-select2-selector",templates:n,validateParams:["source","agent","platform"],validParams:{source:["pageviews","unique-devices"],agent:["all-agents","user","spider"]}};e.exports=o},{"./templates":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var i=0;i10&&(t.sites=t.sites.slice(0,10)),this.setInitialChartType(t.sites.length),this.setSelect2Defaults(t.sites)}},{key:"getSiteStats",value:function(t){var e=this,i=$.Deferred(),n=0,o=function(){n++,n===t.length&&i.resolve(e.entityInfo)};return t.forEach(function(t){return e.entityInfo.entities[t]?o():void $.ajax({url:"https://"+t+"/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"statistics",format:"json"},dataType:"jsonp"}).done(function(i){e.entityInfo.entities[t]=i.query.statistics}).always(o)}),i}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={platform:$(this.config.platformSelector).val(),source:$(this.config.dataSourceSelector).val()};return this.isPageviews()&&(e.agent=$(this.config.agentSelector).val()),this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=$(this.config.select2Input).select2("val")||[];window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&sites="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&sites="+t.join("|"))}},{key:"setupSelect2",value:function(){var t=this,e=$(this.config.select2Input),i={ajax:{transport:function(t,e,i){var n=u.filter(function(e){return e.startsWith(t.data.q)});e({results:n.slice(0,10)})},processResults:function(t){var e=t.results.map(function(t){return{id:t,text:t}});return{results:e}}},placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:10,minimumInputLength:1};e.select2(i),e.off("select2:select").on("select2:select",this.processInput.bind(this)),e.off("select2:unselect").on("select2:unselect",function(i){t.processInput(!1,i.params.data.text),e.trigger("select2:close")})}},{key:"setPlatformOptionValues",value:function(){var t=this;$(this.config.platformSelector).find("option").each(function(e,i){$(i).prop("value",t.isPageviews()?$(i).data("value"):$(i).data("ud-value"))})}},{key:"setupDataSourceSelector",value:function(){var t=this;this.setPlatformOptionValues(),$(this.config.dataSourceSelector).on("change",function(e){var i=$(t.config.platformSelector).val()||"",n=i.includes("mobile");t.isPageviews()?($(".platform-select--mobile-web, .platform-select--mobile-app").show(),$(".platform-select--mobile").hide(),$(t.config.agentSelector).prop("disabled",!1)):($(".platform-select--mobile-web, .platform-select--mobile-app").hide(),$(".platform-select--mobile").show(),$(t.config.agentSelector).val("user").prop("disabled",!0)),t.setPlatformOptionValues(),n&&t.isUniqueDevices()?$(t.config.platformSelector).val("mobile-site"):n&&t.isPageviews()&&$(t.config.platformSelector).val("mobile-web"),t.processInput()})}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$("#platform-select, #agent-select").on("change",this.processInput.bind(this)),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.updateTable()}),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()})}},{key:"processInput",value:function(t,e){var i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){this.params=location.search;var n=$(l.select2Input).select2("val")||[];if(!n.length)return this.resetView();this.setInitialChartType(n.length),this.prevChartType&&this.clearMessages(),this.prevChartType=this.chartType,this.destroyChart(),this.startSpinny(),e?(this.outputData=this.outputData.filter(function(t){return t.label!==e.descore()}),this.outputData=this.outputData.map(function(t){return Object.assign({},t,i.config.chartConfig[i.chartType].dataset(t.color))}),this.updateChart()):this.getSiteStats(n).then(function(){i.getPageViewsData(n).done(function(t){return i.updateChart(t)})})}}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSinglePageLegend();$(".single-page-stats").html(""),$(".single-page-ranking").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e,i){$(".output-list").append(t.config.templates.tableRow(t,e))});var n=e.reduce(function(t,e){return t+e.sum},0),o={label:$.i18n("num-projects",e.length),sum:n,average:Math.round(n/e.length)};["pages","articles","edits","images","users","activeusers","admins"].forEach(function(t){o[t]=e.reduce(function(e,i){return e+i[t]},0)}),$(".output-list").append(this.config.templates.tableRow(this,o,!0)),$(".table-view").show()}},{key:"getSortProperty",value:function(t,e){return"active-users"===e?Number(t.activeusers):"label"===e?t.label:Number(t[e])}},{key:"showSinglePageLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-site-stats").html("\n "+this.getSiteLink(t.label)+"\n ·\n \n "+$(this.config.dateRangeSelector).val()+"\n \n ·\n "+$.i18n("num-pageviews",this.formatNumber(t.sum))+"\n \n ("+this.formatNumber(t.average)+"/"+$.i18n("day")+")\n \n "),$(".single-site-legend").html(this.config.templates.chartLegend(this))}},{key:"validateParams",value:function(t){return"unique-devices"===t.source?(this.config.validParams.platform=["all-sites","desktop-site","mobile-site"],this.config.defaults.platform="all-sites",t.agent="user"):this.config.validParams.agent=["all-agents","user","spider"],s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateParams",this).call(this,t)}},{key:"validateProjects",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(function(e){return!!u.includes(e)||(t.writeMessage($.i18n("invalid-project",""+e.escape()+" ")),!1)})}}]),e}(mix(d).with(h));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":1,"../shared/pv":4,"../shared/site_map":6,"./config":8}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e=function(e){var i,o,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=(r={},n(r,$.i18n("pageviews"),(i={},n(i,$.i18n("pageviews"),t.formatNumber(e.sum)),n(i,$.i18n("daily-average"),t.formatNumber(e.average)),i)),n(r,$.i18n("statistics"),(o={},n(o,$.i18n("pages"),t.formatNumber(e.pages)),n(o,$.i18n("articles"),t.formatNumber(e.articles)),n(o,$.i18n("edits"),t.formatNumber(e.edits)),n(o,$.i18n("images"),t.formatNumber(e.images)),n(o,$.i18n("users"),t.formatNumber(e.users)),n(o,$.i18n("active-users"),t.formatNumber(e.activeusers)),n(o,$.i18n("admins"),t.formatNumber(e.admins)),o)),r),l="";for(var c in s){var u=c.toLowerCase().score();l+="\n
"+c+"("+$.i18n("all-time").toLowerCase()+") \n
";for(var d in s[c]){var h=s[c][d];h&&(l+='\n
\n '+d+":\n \n "+h+"\n \n
")}l+="
"}return a||(l+='\n "),l};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o={sum:i,average:Math.round(i/t.outputData.length),pages:t.outputData.reduce(function(t,e){return t+e.pages},0),articles:t.outputData.reduce(function(t,e){return t+e.articles},0),edits:t.outputData.reduce(function(t,e){return t+e.edits},0),images:t.outputData.reduce(function(t,e){return t+e.images},0),users:t.outputData.reduce(function(t,e){return t+e.users},0),activeusers:t.outputData.reduce(function(t,e){return t+e.activeusers},0),admins:t.outputData.reduce(function(t,e){return t+e.admins},0)};return e(o,!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("most-viewed-pages")+" \n ";return"\n \n <"+n+" class='table-view--color-col'>\n \n '+n+">\n <"+n+" class='table-view--project'>"+(i?e.label:t.getSiteLink(e.label))+""+n+">\n <"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+""+n+">\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+""+n+">\n <"+n+" class='table-view--pages'>"+t.formatNumber(e.pages)+""+n+">\n <"+n+" class='table-view--edits'>"+t.formatNumber(e.edits)+""+n+">\n <"+n+" class='table-view--images'>"+t.formatNumber(e.images)+""+n+">\n <"+n+" class='table-view--users'>"+t.formatNumber(e.users)+""+n+">\n <"+n+" class='table-view--active-users'>"+t.formatNumber(e.activeusers)+""+n+">\n <"+n+" class='table-view--admins'>"+t.formatNumber(e.admins)+""+n+">\n <"+n+">"+o+""+n+">\n \n "}};e.exports=o},{}]},{},[9]);
\ No newline at end of file
+"ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY","bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},e=navigator.language.toLowerCase();return t[e]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(t){try{return localStorage.getItem(t)}catch(e){return storage[t]}}},{key:"getBugReportURL",value:function(t,e){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(e||this.app.upcase()+" bug report");return t?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+t:i}},{key:"fetchSiteInfo",value:function(t){var e=this;t=t.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+t;return this.siteInfo[t]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[t]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+t+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){e.siteInfo[t]=o.query,simpleStorage.set(n,e.siteInfo[t],{TTL:6048e5}),i.resolve(e.siteInfo)}).fail(function(t){i.reject(t)}),i)}},{key:"getSiteInfo",value:function(t){return this.siteInfo[t.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=t?"startDate":"endDate",i=moment(this.daterangepicker[e]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:t,platform:"all-access",date:e.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(t,e){try{return localStorage.setItem(t,e)}catch(i){return storage[t]=e}}},{key:"hashCode",value:function(t){return t.split("").reduce(function(t,e){return(t<<5)-t+e.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+e.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(e)||(e+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var c=Object.assign({action:"query",format:"json",formatversion:"2"},t);l&&(c[i]=l);var u=$.ajax({url:"https://"+e+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:c});u.done(function(t){if(t.error)return r.resolve(t);var e=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(t.query)),e=a.pages.length>=o):(t.query.pages&&(a.pages=a.pages.concat(t.query.pages)),t.query[n]&&(a[n]=(a[n]||[]).concat(t.query[n])),e=a.pages.length>=o||a[n].length>=o),!e&&t.continue&&t.continue[i]?setTimeout(function(){s(t.continue[i])},100):(t.continue&&(a.continue=!0),r.resolve(a))}).fail(function(t){r.reject(t)})};return s(),r}},{key:"n",value:function(t){return new Number(t).toLocaleString()}},{key:"getPageInfo",value:function(t){var e=$.Deferred();try{t=t.map(function(t){return encodeURIComponent(decodeURIComponent(t))})}catch(t){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+t.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(e){t[t.indexOf(encodeURIComponent(e.from))]=encodeURIComponent(e.to)});var n={};return t.forEach(function(t){try{t=decodeURIComponent(t)}catch(t){}n[t]=i.query.pages.find(function(e){return e.title===t})}),e.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(t){for(var e=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=e.split("&"),n={},o=0;o").text(t).html();$(""+i+" ").appendTo(e.config.select2Input)}),$(this.config.select2Input).select2("val",t),$(this.config.select2Input).trigger("select2:select"),t}},{key:"setSpecialRange",value:function(t){var e=Object.keys(this.config.specialRanges).indexOf(t),i=void 0,n=void 0,o=void 0;if(t.includes("latest-")){o=parseInt(t.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(e>=0))return;var l="latest"===t?this.config.specialRanges.latest():this.config.specialRanges[t],c=s(l,2);i=c[0],n=c[1],$(".daterangepicker .ranges li").eq(e).trigger("click")}return this.specialRange={range:t,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var t=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(e,i){t.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+e+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var t=this;$("a[href='#']").on("click",function(t){return t.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return t.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var t=this,e=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(e){"latest"!==e&&(i[$.i18n(e)]=t.config.specialRanges[e])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),e.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(e){if(e.target.innerText===$.i18n("custom-range"))return t.specialRange=null,app.daterangepicker.clickApply();var i=t.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(t.config.specialRanges).find(function(t){return $.i18n(t)===e.target.innerText});t.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(e,i){i.chosenLabel===$.i18n("custom-range")&&(t.specialRange=null,t.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(t){var e=this;this.resetView(),t.forEach(function(t){e.writeMessage("
"+$.i18n("fatal-error")+" :
"+t+"
")});var i=function(t){return e.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",e.getBugReportURL(t))+"\n ",0)};if(this.debug)throw t[0];t&&t[0]&&t[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+t[0].stack),title:"Pageviews Analysis error report: "+t[0]}}).done(function(t){t&&t.result&&t.result.objectName?i(t.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var t="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",t),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",t),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",t),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",t),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ___ _ _ _ _ ",t),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",t),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",t),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",t),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',t),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",t),console.log("%c ",t),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",t)}},{key:"startSpinny",value:function(){var t=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(e){t.resetView(),t.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",t.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(t){return t.map(function(t){return t.score()})}},{key:"updateInterAppLinks",value:function(){var t=this;$(".interapp-link").each(function(e,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+t.project.escape()+".org":i.href=n+"?project="+t.project.escape()+".org"})}},{key:"validateParams",value:function(t){var e=this;return this.config.validateParams.forEach(function(i){"project"===i&&t.project&&(t.project=t.project.replace(/^www\./,""));var n=e.config.defaults[i],o=t[i];n&&!e.config.validParams[i].includes(o)&&(o&&e.addInvalidParamNotice(i),t[i]=n)}),t}},{key:"validateProject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=$(this.config.projectInput)[0],i=e.value.replace(/^www\./,""),n=!1;return t&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=e.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=e.dataset.value),e.value=i,n}},{key:"writeMessage",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e&&this.clearMessages(),$(".message-container").append("
"+t+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var t=$(this.config.projectInput).val();return t?t.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),e}(u);e.exports=p},{"./core_extensions":2,"./polyfills":3,"./pv_config":5,"./site_map":6}],5:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(t,e){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(t){return e.formatNumber(t)}}}]},legendCallback:function(t){return e.config.chartLegend(t.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(t,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(t,[{key:"linearTooltips",value:function(t){var e=this;return{mode:t||"x-axis",callbacks:{label:function(t){return Number.isNaN(t.yLabel)?" "+$.i18n("unknown"):" "+e.formatNumber(t.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var t=this;return{callbacks:{label:function e(i,n){var o=n.datasets[i.datasetIndex].data[i.index],e=n.labels[i.index];return Number.isNaN(o)?e+": "+$.i18n("unknown"):e+": "+t.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),t}();e.exports=s},{"./site_map":6}],6:[function(t,e,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",
+kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};e.exports=n},{}],7:[function(t,e,i){"use strict";var n=(Chart.Zoom=Chart.Zoom||{},{beforeInit:function(t){if(t.options.zoom){t.zoom={};var e=t.chart.ctx.canvas;t.zoom._mouseDownHandler=function(e){t.zoom._dragZoomStart=e},e.addEventListener("mousedown",t.zoom._mouseDownHandler),t.zoom._mouseMoveHandler=function(e){t.zoom._dragZoomStart&&(t.zoom._dragZoomEnd=e,t.update(0))},e.addEventListener("mousemove",t.zoom._mouseMoveHandler),t.zoom._mouseUpHandler=function(e){if(t.zoom._dragZoomStart){var i=t.zoom._dragZoomStart,n=i.target.getBoundingClientRect().left,o=Math.min(i.clientX,e.clientX)-n,r=Math.max(i.clientX,e.clientX)-n,a=t.scales["x-axis-0"],s=a.getValueForPixel(o),l=a.getValueForPixel(r),c=r-o;if(c<=0)return void(t.zoom._dragZoomStart=null);t.zoom._dragZoomStart=null,t.zoom._dragZoomEnd=null;var u=t.data.labels,d=$(".aqs-date-range-selector").data("daterangepicker");if(l-s+1===u.length)return t.update(0);d.startDate=moment(u[s],t.data.dateFormat),d.setEndDate(moment(u[l],t.data.dateFormat)),d.updateElement()}},e.addEventListener("mouseup",t.zoom._mouseUpHandler)}},beforeDatasetsDraw:function(t){if(t.options.zoom&&t.zoom._dragZoomStart&&t.zoom._dragZoomEnd){var e=t.chart.ctx,i=t.chartArea;e.save(),e.beginPath();var n=t.scales["y-axis-0"],o=t.zoom._dragZoomStart,r=t.zoom._dragZoomEnd,a=o.target.getBoundingClientRect().left,s=Math.min(o.clientX,r.clientX)-a,l=Math.max(o.clientX,r.clientX)-a,c=l-s;e.fillStyle="rgba(225,225,225,0.3)",e.lineWidth=5,e.fillRect(s,n.top,c,n.bottom-n.top),e.rect(i.left,i.top,i.right-i.left,i.bottom-i.top),e.clip()}},afterDatasetsDraw:function(t){t.options.zoom&&t.chart.ctx.restore()}});Chart.pluginService.register(n)},{}],8:[function(t,e,i){"use strict";var n=t("./templates"),o={agentSelector:"#agent-select",chart:".aqs-chart",chartLegend:n.chartLegend,dataSourceSelector:"#data-source-select",dateRangeSelector:".aqs-date-range-selector",defaults:{dateRange:"latest-20",projects:["fr.wikipedia.org","de.wikipedia.org"],source:"pageviews"},logarithmicCheckbox:".logarithmic-scale-option",platformSelector:"#platform-select",projectInput:".aqs-project-input",select2Input:".aqs-select2-selector",templates:n,validateParams:["source","agent","platform"],validParams:{source:["pageviews","unique-devices"],agent:["all-agents","user","spider"]}};e.exports=o},{"./templates":10}],9:[function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=function(){function t(t,e){for(var i=0;i10&&(t.sites=t.sites.slice(0,10)),this.setInitialChartType(t.sites.length),this.setSelect2Defaults(t.sites)}},{key:"getSiteStats",value:function(t){var e=this,i=$.Deferred(),n=0,o=function(){n++,n===t.length&&i.resolve(e.entityInfo)};return t.forEach(function(t){return e.entityInfo.entities[t]?o():void $.ajax({url:"https://"+t+"/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"statistics",format:"json"},dataType:"jsonp"}).done(function(i){e.entityInfo.entities[t]=i.query.statistics}).always(o)}),i}},{key:"getParams",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e={platform:$(this.config.platformSelector).val(),source:$(this.config.dataSourceSelector).val()};return this.isPageviews()&&(e.agent=$(this.config.agentSelector).val()),this.specialRange&&t?e.range=this.specialRange.range:(e.start=this.daterangepicker.startDate.format("YYYY-MM-DD"),e.end=this.daterangepicker.endDate.format("YYYY-MM-DD")),this.noLogScale&&(e.autolog="false"),e}},{key:"pushParams",value:function(){var t=$(this.config.select2Input).select2("val")||[];window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&sites="+t.join("|")),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&sites="+t.join("|"))}},{key:"setupSelect2",value:function(){var t=this,e=$(this.config.select2Input),i={ajax:{transport:function(t,e,i){var n=u.filter(function(e){return e.startsWith(t.data.q)});e({results:n.slice(0,10)})},processResults:function(t){var e=t.results.map(function(t){return{id:t,text:t}});return{results:e}}},placeholder:$.i18n("projects-placeholder"),maximumSelectionLength:10,minimumInputLength:1};e.select2(i),e.off("select2:select").on("select2:select",this.processInput.bind(this)),e.off("select2:unselect").on("select2:unselect",function(i){t.processInput(!1,i.params.data.text),e.trigger("select2:close")})}},{key:"setPlatformOptionValues",value:function(){var t=this;$(this.config.platformSelector).find("option").each(function(e,i){$(i).prop("value",t.isPageviews()?$(i).data("value"):$(i).data("ud-value"))})}},{key:"setupDataSourceSelector",value:function(){var t=this;this.setPlatformOptionValues(),$(this.config.dataSourceSelector).on("change",function(e){var i=$(t.config.platformSelector).val()||"",n=i.includes("mobile");t.isPageviews()?($(".platform-select--mobile-web, .platform-select--mobile-app").show(),$(".platform-select--mobile").hide(),$(t.config.agentSelector).prop("disabled",!1)):($(".platform-select--mobile-web, .platform-select--mobile-app").hide(),$(".platform-select--mobile").show(),$(t.config.agentSelector).val("user").prop("disabled",!0)),t.setPlatformOptionValues(),n&&t.isUniqueDevices()?$(t.config.platformSelector).val("mobile-site"):n&&t.isPageviews()&&$(t.config.platformSelector).val("mobile-web"),t.processInput()})}},{key:"setupListeners",value:function(){var t=this;s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"setupListeners",this).call(this),$("#platform-select, #agent-select").on("change",this.processInput.bind(this)),$(".sort-link").on("click",function(e){var i=$(e.currentTarget).data("type");t.direction=t.sort===i?-t.direction:1,t.sort=i,t.updateTable()}),$(".clear-pages").on("click",function(){t.resetView(!0),t.focusSelect2()})}},{key:"processInput",value:function(t,e){var i=this;if(this.pushParams(),t||location.search!==this.params||this.prevChartType!==this.chartType){this.params=location.search;var n=$(l.select2Input).select2("val")||[];if(!n.length)return this.resetView();this.setInitialChartType(n.length),this.prevChartType&&this.clearMessages(),this.prevChartType=this.chartType,this.destroyChart(),this.startSpinny(),e?(this.outputData=this.outputData.filter(function(t){return t.label!==e.descore()}),this.outputData=this.outputData.map(function(t){return Object.assign({},t,i.config.chartConfig[i.chartType].dataset(t.color))}),this.updateChart()):this.getSiteStats(n).then(function(){i.getPageViewsData(n).done(function(t){return i.updateChart(t)})})}}},{key:"updateTable",value:function(){var t=this;if(1===this.outputData.length)return this.showSinglePageLegend();$(".single-page-stats").html(""),$(".single-page-ranking").html(""),$(".output-list").html("");var e=this.outputData.slice().sort(function(e,i){var n=t.getSortProperty(e,t.sort),o=t.getSortProperty(i,t.sort);return no?-t.direction:0});$(".sort-link span").removeClass("glyphicon-sort-by-alphabet-alt glyphicon-sort-by-alphabet").addClass("glyphicon-sort");var i=1===parseInt(this.direction,10)?"glyphicon-sort-by-alphabet-alt":"glyphicon-sort-by-alphabet";$(".sort-link--"+this.sort+" span").addClass(i).removeClass("glyphicon-sort"),e.forEach(function(e,i){$(".output-list").append(t.config.templates.tableRow(t,e))});var n=e.reduce(function(t,e){return t+e.sum},0),o={label:$.i18n("num-projects",e.length),sum:n,average:Math.round(n/e.length)};["pages","articles","edits","images","users","activeusers","admins"].forEach(function(t){o[t]=e.reduce(function(e,i){return e+i[t]},0)}),$(".output-list").append(this.config.templates.tableRow(this,o,!0)),$(".table-view").show()}},{key:"getSortProperty",value:function(t,e){return"active-users"===e?Number(t.activeusers):"label"===e?t.label:Number(t[e])}},{key:"showSinglePageLegend",value:function(){var t=this.outputData[0];$(".table-view").hide(),$(".single-site-stats").html("\n "+this.getSiteLink(t.label)+"\n ·\n \n "+$(this.config.dateRangeSelector).val()+"\n \n ·\n "+$.i18n("num-pageviews",this.formatNumber(t.sum))+"\n \n ("+this.formatNumber(t.average)+"/"+$.i18n("day")+")\n \n "),$(".single-site-legend").html(this.config.templates.chartLegend(this))}},{key:"validateParams",value:function(t){return"unique-devices"===t.source?(this.config.validParams.platform=["all-sites","desktop-site","mobile-site"],this.config.defaults.platform="all-sites",t.agent="user"):this.config.validParams.agent=["all-agents","user","spider"],s(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"validateParams",this).call(this,t)}},{key:"validateProjects",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.filter(function(e){return!!u.includes(e)||(t.writeMessage($.i18n("invalid-project",""+e.escape()+" ")),!1)})}}]),e}(mix(d).with(h));$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new p})},{"../shared/chart_helpers":1,"../shared/pv":4,"../shared/site_map":6,"./config":8}],10:[function(t,e,i){"use strict";function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var o={chartLegend:function(t){var e=function(e){var i,o,r,a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=(r={},n(r,$.i18n("pageviews"),(i={},n(i,$.i18n("pageviews"),t.formatNumber(e.sum)),n(i,$.i18n("daily-average"),t.formatNumber(e.average)),i)),n(r,$.i18n("statistics"),(o={},n(o,$.i18n("pages"),t.formatNumber(e.pages)),n(o,$.i18n("articles"),t.formatNumber(e.articles)),n(o,$.i18n("edits"),t.formatNumber(e.edits)),n(o,$.i18n("images"),t.formatNumber(e.images)),n(o,$.i18n("users"),t.formatNumber(e.users)),n(o,$.i18n("active-users"),t.formatNumber(e.activeusers)),n(o,$.i18n("admins"),t.formatNumber(e.admins)),o)),r),l="";for(var c in s){var u=c.toLowerCase().score();l+="\n
"+c+"("+$.i18n("all-time").toLowerCase()+") \n
";for(var d in s[c]){var h=s[c][d];h&&(l+='\n
\n '+d+":\n \n "+h+"\n \n
")}l+="
"}return a||(l+='\n "),l};if(1===t.outputData.length)return e(t.outputData[0]);var i=t.outputData.reduce(function(t,e){return t+e.sum},0),o={sum:i,average:Math.round(i/t.outputData.length),pages:t.outputData.reduce(function(t,e){return t+e.pages},0),articles:t.outputData.reduce(function(t,e){return t+e.articles},0),edits:t.outputData.reduce(function(t,e){return t+e.edits},0),images:t.outputData.reduce(function(t,e){return t+e.images},0),users:t.outputData.reduce(function(t,e){return t+e.users},0),activeusers:t.outputData.reduce(function(t,e){return t+e.activeusers},0),admins:t.outputData.reduce(function(t,e){return t+e.admins},0)};return e(o,!0)},tableRow:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=i?"th":"td",o=i?"":'\n '+$.i18n("most-viewed-pages")+" \n ";return"\n \n <"+n+" class='table-view--color-col'>\n \n '+n+">\n <"+n+" class='table-view--project'>"+(i?e.label:t.getSiteLink(e.label))+""+n+">\n <"+n+" class='table-view--views'>"+t.formatNumber(e.sum)+""+n+">\n <"+n+" class='table-view--average'>"+t.formatNumber(e.average)+""+n+">\n <"+n+" class='table-view--pages'>"+t.formatNumber(e.pages)+""+n+">\n <"+n+" class='table-view--edits'>"+t.formatNumber(e.edits)+""+n+">\n <"+n+" class='table-view--images'>"+t.formatNumber(e.images)+""+n+">\n <"+n+" class='table-view--users'>"+t.formatNumber(e.users)+""+n+">\n <"+n+" class='table-view--active-users'>"+t.formatNumber(e.activeusers)+""+n+">\n <"+n+" class='table-view--admins'>"+t.formatNumber(e.admins)+""+n+">\n <"+n+">"+o+""+n+">\n \n "}};e.exports=o},{}]},{},[9]);
\ No newline at end of file
diff --git a/public_html/topviews/application.js b/public_html/topviews/application.js
index 44076f093..0c7927aaa 100644
--- a/public_html/topviews/application.js
+++ b/public_html/topviews/application.js
@@ -7,5 +7,5 @@ Un.weeksInYear=jt,Un.isoWeeksInYear=At,Un.date=$n,Un.day=Un.days=Rt,Un.weekday=F
t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.focus(),t._detachCloseHandler(e)}),e.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)}),e.on("disable",function(){t.$selection.attr("tabindex","-1")})},n.prototype._attachCloseHandler=function(t){e(document.body).on("mousedown.select2."+t.id,function(t){var i=e(t.target),n=i.closest(".select2"),o=e(".select2.select2-container--open");o.each(function(){var t=e(this);if(this!=n[0]){var i=t.data("element");i.select2("close")}})})},n.prototype._detachCloseHandler=function(t){e(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(e,t){var i=t.find(".selection");i.append(e)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.")},n}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,i){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(' '),e},n.prototype.bind=function(e){var t=this;n.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&t.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),e.on("selection:update",function(e){t.update(e.data)})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(e))},n.prototype.selectionContainer=function(){return e(" ")},n.prototype.update=function(e){if(0===e.length)return void this.clear();var t=e[0],i=this.display(t),n=this.$selection.find(".select2-selection__rendered");n.empty().append(i),n.prop("title",t.title||t.text)},n}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,t,i){function n(){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,t),n.prototype.render=function(){var e=n.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html(''),e},n.prototype.bind=function(){var t=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){t.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(i){var n=e(this),o=n.parent(),r=o.data("data");t.trigger("unselect",{originalEvent:i,data:r})})},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(e){var t=this.options.get("templateSelection"),i=this.options.get("escapeMarkup");return i(t(e))},n.prototype.selectionContainer=function(){var t=e('× ');return t},n.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n1;if(n||i)return e.call(this,t);this.clear();var o=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(o)},e}),t.define("select2/selection/allowClear",["jquery","../keys"],function(e,t){function i(){}return i.prototype.bind=function(e,t,i){var n=this;e.call(this,t,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){n._handleClear(e)}),t.on("keypress",function(e){n._handleKeyboardClear(e,t)})},i.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){t.stopPropagation();for(var n=i.data("data"),o=0;o0||0===i.length)){var n=e('× ');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(e,t,i){function n(e,t,i){e.call(this,t,i)}return n.prototype.render=function(t){var i=e(' ');this.$searchContainer=i,this.$search=i.find("input");var n=t.call(this);return n},n.prototype.bind=function(e,t,n){var o=this;e.call(this,t,n),t.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus()}),t.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val(""),o.$search.focus()}),t.on("enable",function(){o.$search.prop("disabled",!1)}),t.on("disable",function(){o.$search.prop("disabled",!0)}),this.$selection.on("focusin",".select2-search--inline",function(e){o.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){o.trigger("blur",e)}),this.$selection.on("keydown",".select2-search--inline",function(e){e.stopPropagation(),o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented();var t=e.which;if(t===i.BACKSPACE&&""===o.$search.val()){var n=o.$searchContainer.prev(".select2-selection__choice");if(n.length>0){var r=n.data("data");o.searchRemoveChoice(r),e.preventDefault()}}}),this.$selection.on("input",".select2-search--inline",function(){o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input",".select2-search--inline",function(e){o.handleSearch(e)})},n.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},n.prototype.update=function(e,t){this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.trigger("open"),this.$search.val(t.text+" ")},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";if(""!==this.$search.attr("placeholder"))e=this.$selection.find(".select2-selection__rendered").innerWidth();else{var t=this.$search.val().length+1;e=.75*t+"em"}this.$search.css("width",e)},n}),t.define("select2/selection/eventRelay",["jquery"],function(e){function t(){}return t.prototype.bind=function(t,i,n){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],a=["opening","closing","selecting","unselecting"];t.call(this,i,n),i.on("*",function(t,i){if(-1!==e.inArray(t,r)){i=i||{};var n=e.Event("select2:"+t,{params:i});o.$element.trigger(n),-1!==e.inArray(t,a)&&(i.prevented=n.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(e,t){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(t){this.dict=e.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(e){if(!(e in i._cache)){var n=t(e);i._cache[e]=n}return new i(i._cache[e])},i}),t.define("select2/diacritics",[],function(){var e={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return e}),t.define("select2/data/base",["../utils"],function(e){function t(){t.__super__.constructor.call(this)}return e.Extend(t,e.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.")},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.")},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var n=t.id+"-result-";return n+=e.generateChars(4),n+=null!=i.id?"-"+i.id.toString():"-"+e.generateChars(4)},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(e,t,i){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=i(this),o=n.item(e);t.push(o)}),e(t)},n.prototype.select=function(e){var t=this;if(e.selected=!0,i(e.element).is("option"))return e.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(n){var o=[];e=[e],e.push.apply(e,n);for(var r=0;r=0){var c=r.filter(n(u)),d=this.item(c),h=(i.extend(!0,{},d,u),this.option(d));c.replaceWith(h)}else{var p=this.option(u);if(u.children){var f=this.convertToOptions(u.children);t.appendMany(p,f)}s.push(p)}}return s},n}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,i){function n(t,i){this.ajaxOptions=this._applyDefaults(i.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),e.__super__.constructor.call(this,t,i)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){var t={data:function(e){return{q:e.term}},transport:function(e,t,n){var o=i.ajax(e);return o.then(t),o.fail(n),o}};return i.extend({},t,e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(e,t){function n(){var n=r.transport(r,function(n){var r=o.processResults(n,e);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&i.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(r)},function(){});o._request=n}var o=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url(e)),"function"==typeof r.data&&(r.data=r.data(e)),this.ajaxOptions.delay&&""!==e.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n}),t.define("select2/data/tags",["jquery"],function(e){function t(t,i,n){var o=n.get("tags"),r=n.get("createTag");if(void 0!==r&&(this.createTag=r),t.call(this,i,n),e.isArray(o))for(var a=0;a0&&t.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):void e.call(this,t,i)},e}),t.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),e.call(this,t,i)}return e.prototype.query=function(e,t,i){var n=this;this.current(function(o){var r=null!=o?o.length:0;return n.maximumSelectionLength>0&&r>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void e.call(n,t,i)})},e}),t.define("select2/dropdown",["jquery","./utils"],function(e,t){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=e(' ');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(e){function t(){}return t.prototype.render=function(t){var i=t.call(this),n=e(' ');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},t.prototype.bind=function(t,i,n){var o=this;t.call(this,i,n),this.$search.on("keydown",function(e){o.trigger("keypress",e),o._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(){e(this).off("keyup")}),this.$search.on("keyup input",function(e){o.handleSearch(e)}),i.on("open",function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout(function(){o.$search.focus()},0)}),i.on("close",function(){o.$search.attr("tabindex",-1),o.$search.val("")}),i.on("results:all",function(e){if(null==e.query.term||""===e.query.term){var t=o.showSearch(e);t?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),e.call(this,t,i,n)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return"string"==typeof t&&(t={id:"",text:t}),t},e.prototype.removePlaceholder=function(e,t){for(var i=t.slice(0),n=t.length-1;n>=0;n--){var o=t[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},e}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(e){function t(e,t,i,n){this.lastParams={},e.call(this,t,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,n){var o=this;t.call(this,i,n),i.on("query",function(e){o.lastParams=e,o.loading=!0}),i.on("query:append",function(e){o.lastParams=e,o.loading=!0}),this.$results.on("scroll",function(){var t=e.contains(document.documentElement,o.$loadingMore[0]);if(!o.loading&&t){var i=o.$results.offset().top+o.$results.outerHeight(!1),n=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1);i+50>=n&&o.loadMore()}})},t.prototype.loadMore=function(){this.loading=!0;var t=e.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=e(' '),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,t){function i(e,t,i){this.$dropdownParent=i.get("dropdownParent")||document.body,e.call(this,t,i)}return i.prototype.bind=function(e,t,i){var n=this,o=!1;e.call(this,t,i),t.on("open",function(){n._showDropdown(),n._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}))}),t.on("close",function(){n._hideDropdown(),n._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},i.prototype.position=function(e,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=e(" "),n=t.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i){var n=this,o="scroll.select2."+i.id,r="resize.select2."+i.id,a="orientationchange.select2."+i.id,s=this.$container.parents().filter(t.hasScroll);s.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})}),s.on(o,function(){var t=e(this).data("select2-scroll-position");e(this).scrollTop(t.y)}),e(window).on(o+" "+r+" "+a,function(){n._positionDropdown(),n._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i){var n="scroll.select2."+i.id,o="resize.select2."+i.id,r="orientationchange.select2."+i.id,a=this.$container.parents().filter(t.hasScroll);a.off(n),e(window).off(n+" "+o+" "+r)},i.prototype._positionDropdown=function(){var t=e(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=(this.$container.position(),this.$container.offset());r.bottom=r.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=r.top,a.bottom=r.top+a.height;var s={height:this.$dropdown.outerHeight(!1)},l={top:t.scrollTop(),bottom:t.scrollTop()+t.height()},u=l.topr.bottom+s.height,d={left:r.left,top:a.bottom};i||n||(o="below"),c||!u||i?!u&&c&&i&&(o="below"):o="above",("above"==o||i&&"below"!==o)&&(d.top=a.top-s.height),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){this.$dropdownContainer.width();var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(t){for(var i=0,n=0;n0&&(d.dataAdapter=u.Decorate(d.dataAdapter,w)),d.maximumInputLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,k)),d.maximumSelectionLength>0&&(d.dataAdapter=u.Decorate(d.dataAdapter,y)),d.tags&&(d.dataAdapter=u.Decorate(d.dataAdapter,g)),(null!=d.tokenSeparators||null!=d.tokenizer)&&(d.dataAdapter=u.Decorate(d.dataAdapter,m)),null!=d.query){var C=t(d.amdBase+"compat/query");d.dataAdapter=u.Decorate(d.dataAdapter,C)}if(null!=d.initSelection){var S=t(d.amdBase+"compat/initSelection");d.dataAdapter=u.Decorate(d.dataAdapter,S)}}if(null==d.resultsAdapter&&(d.resultsAdapter=i,null!=d.ajax&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,_)),null!=d.placeholder&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,D)),d.selectOnClose&&(d.resultsAdapter=u.Decorate(d.resultsAdapter,T))),null==d.dropdownAdapter){if(d.multiple)d.dropdownAdapter=v;else{var $=u.Decorate(v,b);d.dropdownAdapter=$}if(0!==d.minimumResultsForSearch&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,x)),d.closeOnSelect&&(d.dropdownAdapter=u.Decorate(d.dropdownAdapter,M)),null!=d.dropdownCssClass||null!=d.dropdownCss||null!=d.adaptDropdownCssClass){var O=t(d.amdBase+"compat/dropdownCss");d.dropdownAdapter=u.Decorate(d.dropdownAdapter,O)}d.dropdownAdapter=u.Decorate(d.dropdownAdapter,Y)}if(null==d.selectionAdapter){if(d.selectionAdapter=d.multiple?o:n,null!=d.placeholder&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,r)),d.allowClear&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,a)),d.multiple&&(d.selectionAdapter=u.Decorate(d.selectionAdapter,s)),null!=d.containerCssClass||null!=d.containerCss||null!=d.adaptContainerCssClass){var E=t(d.amdBase+"compat/containerCss");d.selectionAdapter=u.Decorate(d.selectionAdapter,E)}d.selectionAdapter=u.Decorate(d.selectionAdapter,l)}if("string"==typeof d.language)if(d.language.indexOf("-")>0){var A=d.language.split("-"),j=A[0];d.language=[d.language,j]}else d.language=[d.language];if(e.isArray(d.language)){var q=new c;d.language.push("en");for(var N=d.language,L=0;L0){for(var r=e.extend(!0,{},o),a=o.children.length-1;a>=0;a--){var s=o.children[a],l=i(n,s);null==l&&r.children.splice(a,1)}return r.children.length>0?r:i(n,r)}var u=t(o.text).toUpperCase(),c=t(n.term).toUpperCase();return u.indexOf(c)>-1?o:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:C,matcher:i,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},S.prototype.set=function(t,i){var n=e.camelCase(t),o={};o[n]=i;var r=u._convertData(o);e.extend(this.defaults,r)};var $=new S;return $}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(e,t,i,n){function o(t,o){if(this.options=t,null!=o&&this.fromElement(o),this.options=i.apply(this.options),o&&o.is("input")){var r=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(e){var i=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=e.prop("dir")?e.prop("dir"):e.closest("[dir]").prop("dir")?e.closest("[dir]").prop("dir"):"ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),e.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl")));var o={};o=t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset?t.extend(!0,{},e[0].dataset,e.data()):e.data();var r=t.extend(!0,{},o);r=n._convertData(r);for(var a in r)t.inArray(a,i)>-1||(t.isPlainObject(this.options[a])?t.extend(this.options[a],r[a]):this.options[a]=r[a]);return this},o.prototype.get=function(e){return this.options[e]},o.prototype.set=function(e,t){this.options[e]=t},o}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(e,t,i,n){var o=function(e,i){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),i=i||{},this.options=new t(i,e),o.__super__.constructor.call(this);var n=e.attr("tabindex")||0;e.data("old-tabindex",n),e.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(e,this.options);var a=this.render();this._placeContainer(a);var s=this.options.get("selectionAdapter");this.selection=new s(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var l=this.options.get("dropdownAdapter");this.dropdown=new l(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var u=this.options.get("resultsAdapter");this.results=new u(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var c=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){c.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)};return i.Extend(o,i.Observable),o.prototype._generateId=function(e){var t="";return t=null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t="select2-"+t},o.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},o.prototype._resolveWidth=function(e,t){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t){var n=this._resolveWidth(e,"style");return null!=n?n:this._resolveWidth(e,"element")}if("element"==t){var o=e.outerWidth(!1);return 0>=o?"auto":o+"px"}if("style"==t){var r=e.attr("style");if("string"!=typeof r)return null;for(var a=r.split(";"),s=0,l=a.length;l>s;s+=1){var u=a[s].replace(/\s/g,""),c=u.match(i);if(null!==c&&c.length>=1)return c[1]}return null}return t},o.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},o.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n(function(i){e.each(i,t._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",t._sync,!1)},o.prototype._registerDataEvents=function(){var e=this;this.dataAdapter.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerSelectionEvents=function(){var t=this,i=["toggle"];this.selection.on("toggle",function(){t.toggleDropdown()}),this.selection.on("*",function(n,o){-1===e.inArray(n,i)&&t.trigger(n,o)})},o.prototype._registerDropdownEvents=function(){var e=this;this.dropdown.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerResultsEvents=function(){var e=this;this.results.on("*",function(t,i){e.trigger(t,i)})},o.prototype._registerEvents=function(){var e=this;this.on("open",function(){e.$container.addClass("select2-container--open")}),this.on("close",function(){e.$container.removeClass("select2-container--open")}),this.on("enable",function(){e.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){e.$container.addClass("select2-container--disabled")}),this.on("focus",function(){e.$container.addClass("select2-container--focus")}),this.on("blur",function(){e.$container.removeClass("select2-container--focus")}),this.on("query",function(t){e.isOpen()||e.trigger("open"),this.dataAdapter.query(t,function(i){e.trigger("results:all",{data:i,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(i){e.trigger("results:append",{data:i,query:t})})}),this.on("keypress",function(t){var i=t.which;e.isOpen()?i===n.ENTER?(e.trigger("results:select"),t.preventDefault()):i===n.SPACE&&t.ctrlKey?(e.trigger("results:toggle"),t.preventDefault()):i===n.UP?(e.trigger("results:previous"),t.preventDefault()):i===n.DOWN?(e.trigger("results:next"),t.preventDefault()):(i===n.ESC||i===n.TAB)&&(e.close(),t.preventDefault()):(i===n.ENTER||i===n.SPACE||(i===n.DOWN||i===n.UP)&&t.altKey)&&(e.open(),t.preventDefault())})},o.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable")):this.trigger("enable")},o.prototype.trigger=function(e,t){var i=o.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(e in n){var r=n[e],a={prevented:!1,name:e,args:t};if(i.call(this,r,a),a.prevented)return void(t.prevented=!0)}i.call(this,e,t)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||(this.trigger("query",{}),this.trigger("open"))},o.prototype.close=function(){this.isOpen()&&this.trigger("close")},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==e||0===e.length)&&(e=[!0]);var t=!e[0];this.$element.prop("disabled",t)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var e=[];return this.dataAdapter.current(function(t){e=t}),e},o.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var i=t[0];e.isArray(i)&&(i=e.map(i,function(e){return e.toString()})),this.$element.val(i).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var t=e(' ');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},o}),t.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(e,t,i,n){if(t("jquery.mousewheel"),null==e.fn.select2){var o=["open","close","destroy"];e.fn.select2=function(t){if(t=t||{},"object"==typeof t)return this.each(function(){var n=e.extend({},t,!0);new i(e(this),n)}),this;if("string"==typeof t){var n=this.data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");var r=Array.prototype.slice.call(arguments,1),a=n[t](r);return e.inArray(t,o)>-1?this:a}throw new Error("Invalid arguments for Select2: "+t)}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=n),i}),t.define("jquery.mousewheel",["jquery"],function(e){return e}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return e.fn.select2.amd=t,i}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e("object"==typeof exports?require("jquery"):jQuery)}(function(e,t){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var e=new Date;return i(e.getFullYear(),e.getMonth(),e.getDate())}function o(e,t){return e.getUTCFullYear()===t.getUTCFullYear()&&e.getUTCMonth()===t.getUTCMonth()&&e.getUTCDate()===t.getUTCDate()}function r(e){return function(){return this[e].apply(this,arguments)}}function a(e){return e&&!isNaN(e.getTime())}function s(t,i){function n(e,t){return t.toLowerCase()}var o,r=e(t).data(),a={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in r)i.test(l)&&(o=l.replace(s,n),a[o]=r[l]);return a}function l(t){var i={};if(m[t]||(t=t.split("-")[0],m[t])){var n=m[t];return e.each(g,function(e,t){t in n&&(i[t]=n[t])}),i}}var u=function(){var t={get:function(e){return this.slice(e)[0]},contains:function(e){for(var t=e&&e.valueOf(),i=0,n=this.length;n>i;i++)if(0<=this[i].valueOf()-t&&this[i].valueOf()-t<864e5)return i;return-1},remove:function(e){this.splice(e,1)},replace:function(t){t&&(e.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var e=new u;return e.replace(this),e}};return function(){var i=[];return i.push.apply(i,arguments),e.extend(i,t),i}}(),c=function(t,i){e.data(t,"datepicker",this),this._process_options(i),this.dates=new u,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=e(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=e(w.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(e,t){return Number(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.setViewMode(this.o.startView),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.isInline&&this.show()};c.prototype={constructor:c,_resolveViewName:function(t){return e.each(w.viewModes,function(i,n){return t===i||-1!==e.inArray(t,n.names)?(t=i,!1):void 0}),t},_resolveDaysOfWeek:function(t){return e.isArray(t)||(t=t.split(/[,\s]*/)),e.map(t,Number)},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var n=e(i);return n.length>0}catch(e){return!1}},_process_options:function(t){this._o=e.extend({},this._o,t);var o=this.o=e.extend({},this._o),r=o.language;m[r]||(r=r.split("-")[0],m[r]||(r=f.language)),o.language=r,o.startView=this._resolveViewName(o.startView),o.minViewMode=this._resolveViewName(o.minViewMode),o.maxViewMode=this._resolveViewName(o.maxViewMode),o.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,o.startView)),o.multidate!==!0&&(o.multidate=Number(o.multidate)||!1,o.multidate!==!1&&(o.multidate=Math.max(0,o.multidate))),o.multidateSeparator=String(o.multidateSeparator),o.weekStart%=7,o.weekEnd=(o.weekStart+6)%7;var a=w.parseFormat(o.format);o.startDate!==-(1/0)&&(o.startDate?o.startDate instanceof Date?o.startDate=this._local_to_utc(this._zero_time(o.startDate)):o.startDate=w.parseDate(o.startDate,a,o.language,o.assumeNearbyYear):o.startDate=-(1/0)),o.endDate!==1/0&&(o.endDate?o.endDate instanceof Date?o.endDate=this._local_to_utc(this._zero_time(o.endDate)):o.endDate=w.parseDate(o.endDate,a,o.language,o.assumeNearbyYear):o.endDate=1/0),o.daysOfWeekDisabled=this._resolveDaysOfWeek(o.daysOfWeekDisabled||[]),o.daysOfWeekHighlighted=this._resolveDaysOfWeek(o.daysOfWeekHighlighted||[]),o.datesDisabled=o.datesDisabled||[],e.isArray(o.datesDisabled)||(o.datesDisabled=o.datesDisabled.split(",")),o.datesDisabled=e.map(o.datesDisabled,function(e){return w.parseDate(e,a,o.language,o.assumeNearbyYear)});var s=String(o.orientation).toLowerCase().split(/\s+/g),l=o.orientation.toLowerCase();if(s=e.grep(s,function(e){return/^auto|left|right|top|bottom$/.test(e)}),o.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===s.length)switch(s[0]){case"top":case"bottom":o.orientation.y=s[0];break;case"left":case"right":o.orientation.x=s[0]}else l=e.grep(s,function(e){return/^left|right$/.test(e)}),o.orientation.x=l[0]||"auto",l=e.grep(s,function(e){return/^top|bottom$/.test(e)}),o.orientation.y=l[0]||"auto";if(o.defaultViewDate){var u=o.defaultViewDate.year||(new Date).getFullYear(),c=o.defaultViewDate.month||0,d=o.defaultViewDate.day||1;o.defaultViewDate=i(u,c,d)}else o.defaultViewDate=n()},_events:[],_secondaryEvents:[],_applyEvents:function(e){for(var i,n,o,r=0;rr?(this.picker.addClass("datepicker-orient-right"),p+=h-t):this.picker.addClass("datepicker-orient-left");var g,m=this.o.orientation.y;if("auto"===m&&(g=-a+f-i,m=0>g?"bottom":"top"),this.picker.addClass("datepicker-orient-"+m),"top"===m?f-=i+parseInt(this.picker.css("padding-top")):f+=d,this.o.rtl){var w=r-(p+h);this.picker.css({top:f,right:w,zIndex:u})}else this.picker.css({top:f,left:p,zIndex:u});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var t=this.dates.copy(),i=[],n=!1;return arguments.length?(e.each(arguments,e.proxy(function(e,t){t instanceof Date&&(t=this._local_to_utc(t)),i.push(t)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=e.map(i,e.proxy(function(e){return w.parseDate(e,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=e.grep(i,e.proxy(function(e){return!this.dateWithinRange(e)||!e},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDatethis.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate,n?(this.setValue(),this.element.change()):this.dates.length&&String(t)!==String(this.dates)&&n&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&t.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){var t=this.o.weekStart,i="";for(this.o.calendarWeeks&&(i+=' ');t'+m[this.o.language].daysMin[t++%7]+"";i+=" ",this.picker.find(".datepicker-days thead").append(i)},fillMonths:function(){for(var e=this._utc_to_local(this.viewDate),t="",i=0;12>i;){var n=e&&e.getMonth()===i?" focused":"";t+=''+m[this.o.language].monthsShort[i++]+" "}this.picker.find(".datepicker-months td").html(t)},setRange:function(t){t&&t.length?this.range=e.map(t,function(e){return e.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),a=this.viewDate.getUTCMonth(),s=n();return t.getUTCFullYear()r||t.getUTCFullYear()===r&&t.getUTCMonth()>a)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&o(t,s)&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(t>this.range[0]&&tw;w+=1)k=[n],y=null,-1===w?k.push("old"):10===w&&k.push("new"),-1!==e.inArray(m,p)&&k.push("active"),(f>m||m>g)&&k.push("disabled"),m===this.viewDate.getFullYear()&&k.push("focused"),u!==e.noop&&(v=u(new Date(m,0,1)),v===t?v={}:"boolean"==typeof v?v={enabled:v}:"string"==typeof v&&(v={classes:v}),v.enabled===!1&&k.push("disabled"),v.classes&&(k=k.concat(v.classes.split(/\s+/))),v.tooltip&&(y=v.tooltip)),c+='"+m+" ",m+=r;d.find("td").html(c)},fill:function(){var n,o,r=new Date(this.viewDate),a=r.getUTCFullYear(),s=r.getUTCMonth(),l=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),u=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=m[this.o.language].today||m.en.today||"",p=m[this.o.language].clear||m.en.clear||"",f=m[this.o.language].titleFormat||m.en.titleFormat;
if(!isNaN(a)&&!isNaN(s)){this.picker.find(".datepicker-days .datepicker-switch").text(w.formatDate(r,f,this.o.language)),this.picker.find("tfoot .today").text(h).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(p).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths();var g=i(a,s,0),k=g.getUTCDate();g.setUTCDate(k-(g.getUTCDay()-this.o.weekStart+7)%7);var y=new Date(g);g.getUTCFullYear()<100&&y.setUTCFullYear(g.getUTCFullYear()),y.setUTCDate(y.getUTCDate()+42),y=y.valueOf();for(var v,b,D=[];g.valueOf()"),this.o.calendarWeeks)){var _=new Date(+g+(this.o.weekStart-v-7)%7*864e5),Y=new Date(Number(_)+(11-_.getUTCDay())%7*864e5),x=new Date(Number(x=i(Y.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),T=(Y-x)/864e5/7+1;D.push(''+T+" ")}b=this.getClassNames(g),b.push("day"),this.o.beforeShowDay!==e.noop&&(o=this.o.beforeShowDay(this._utc_to_local(g)),o===t?o={}:"boolean"==typeof o?o={enabled:o}:"string"==typeof o&&(o={classes:o}),o.enabled===!1&&b.push("disabled"),o.classes&&(b=b.concat(o.classes.split(/\s+/))),o.tooltip&&(n=o.tooltip)),b=e.isFunction(e.uniqueSort)?e.uniqueSort(b):e.unique(b),D.push('"+g.getUTCDate()+" "),n=null,v===this.o.weekEnd&&D.push(""),g.setUTCDate(g.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(D.join(""));var M=m[this.o.language].monthsTitle||m.en.monthsTitle||"Months",C=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?M:a).end().find("tbody span").removeClass("active");if(e.each(this.dates,function(e,t){t.getUTCFullYear()===a&&C.eq(t.getUTCMonth()).addClass("active")}),(l>a||a>c)&&C.addClass("disabled"),a===l&&C.slice(0,u).addClass("disabled"),a===c&&C.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==e.noop){var S=this;e.each(C,function(i,n){var o=new Date(a,i,1),r=S.o.beforeShowMonth(o);r===t?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),r.enabled!==!1||e(n).hasClass("disabled")||e(n).addClass("disabled"),r.classes&&e(n).addClass(r.classes),r.tooltip&&e(n).prop("title",r.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,1,a,l,c,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,a,l,c,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,a,l,c,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var e,t,i=new Date(this.viewDate),n=i.getUTCFullYear(),o=i.getUTCMonth();switch(this.viewMode){case 0:e=this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()&&o<=this.o.startDate.getUTCMonth(),t=this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&o>=this.o.endDate.getUTCMonth();break;case 1:case 2:case 3:case 4:e=this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear(),t=this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()}this.picker.find(".prev").toggleClass("disabled",e),this.picker.find(".next").toggleClass("disabled",t)}},click:function(t){t.preventDefault(),t.stopPropagation();var o,r,a,s,l;o=e(t.target),o.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),o.hasClass("today")&&!o.hasClass("day")&&(this.setViewMode(0),this._setDate(n(),"linked"===this.o.todayBtn?null:"view")),o.hasClass("clear")&&this.clearDates(),o.hasClass("disabled")||(o.hasClass("day")&&(a=Number(o.text()),s=this.viewDate.getUTCFullYear(),l=this.viewDate.getUTCMonth(),(o.hasClass("old")||o.hasClass("new"))&&(r=o.hasClass("old")?-1:1,l=(l+r+12)%12,(-1===r&&11===l||1===r&&0===l)&&(s+=r,this._trigger("changeYear",this.viewDate)),this._trigger("changeMonth",this.viewDate)),this._setDate(i(s,l,a))),(o.hasClass("month")||o.hasClass("year")||o.hasClass("decade")||o.hasClass("century"))&&(this.viewDate.setUTCDate(1),a=1,1===this.viewMode?(l=o.parent().find("span").index(o),s=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(l)):(l=0,s=Number(o.text()),this.viewDate.setUTCFullYear(s)),this._trigger(w.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(s,l,a)):(this.setViewMode(this.viewMode-1),this.fill()))),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},navArrowsClick:function(t){var i=e(t.target),n=i.hasClass("prev")?-1:1;0!==this.viewMode&&(n*=12*w.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(w.viewModes[this.viewMode].e,this.viewDate),this.fill()},_toggle_multidate:function(e){var t=this.dates.contains(e);if(e||this.dates.clear(),-1!==t?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(e)):this.dates.push(e),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(e,t){t&&"date"!==t||this._toggle_multidate(e&&new Date(e)),t&&"view"!==t||(this.viewDate=e&&new Date(e)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField.trigger("change"),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(e,t){var i=new Date(e);return i.setUTCDate(e.getUTCDate()+t),i},moveWeek:function(e,t){return this.moveDay(e,7*t)},moveMonth:function(e,t){if(!a(e))return this.o.defaultViewDate;if(!t)return e;var i,n,o=new Date(e.valueOf()),r=o.getUTCDate(),s=o.getUTCMonth(),l=Math.abs(t);if(t=t>0?1:-1,1===l)n=-1===t?function(){return o.getUTCMonth()===s}:function(){return o.getUTCMonth()!==i},i=s+t,o.setUTCMonth(i),i=(i+12)%12;else{for(var u=0;l>u;u++)o=this.moveMonth(o,t);i=o.getUTCMonth(),o.setUTCDate(r),n=function(){return i!==o.getUTCMonth()}}for(;n();)o.setUTCDate(--r),o.setUTCMonth(i);return o},moveYear:function(e,t){return this.moveMonth(e,12*t)},moveAvailableDate:function(e,t,i){do{if(e=this[i](e,t),!this.dateWithinRange(e))return!1;i="moveDay"}while(this.dateIsDisabled(e));return e},weekOfDateIsDisabled:function(t){return-1!==e.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||e.grep(this.o.datesDisabled,function(e){return o(t,e)}).length>0},dateWithinRange:function(e){return e>=this.o.startDate&&e<=this.o.endDate},keydown:function(e){if(!this.picker.is(":visible"))return void((40===e.keyCode||27===e.keyCode)&&(this.show(),e.stopPropagation()));var t,i,n=!1,o=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(i=this.moveAvailableDate(o,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):e.shiftKey?(i=this.moveAvailableDate(o,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===e.keyCode||39===e.keyCode?i=this.moveAvailableDate(o,t,"moveDay"):this.weekOfDateIsDisabled(o)||(i=this.moveAvailableDate(o,t,"moveWeek")):1===this.viewMode?((38===e.keyCode||40===e.keyCode)&&(t=4*t),i=this.moveAvailableDate(o,t,"moveMonth")):2===this.viewMode&&((38===e.keyCode||40===e.keyCode)&&(t=4*t),i=this.moveAvailableDate(o,t,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;o=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(o),n=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}n&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(e){this.viewMode=e,this.picker.children("div").hide().filter(".datepicker-"+w.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var d=function(t,i){e.data(t,"datepicker",this),this.element=e(t),this.inputs=e.map(i.inputs,function(e){return e.jquery?e[0]:e}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,p.call(e(this.inputs),i).on("changeDate",e.proxy(this.dateUpdated,this)),this.pickers=e.map(this.inputs,function(t){return e.data(t,"datepicker")}),this.updateDates()};d.prototype={updateDates:function(){this.dates=e.map(this.pickers,function(e){return e.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=e.map(this.dates,function(e){return e.valueOf()});e.each(this.pickers,function(e,i){i.setRange(t)})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var n=e.data(i.target,"datepicker");if(n!==t){var o=n.getUTCDate(),r=this.keepEmptyValues,a=e.inArray(i.target,this.inputs),s=a-1,l=a+1,u=this.inputs.length;if(-1!==a){if(e.each(this.pickers,function(e,t){t.getUTCDate()||t!==n&&r||t.setUTCDate(o)}),o=0&&othis.dates[l])for(;u>l&&o>this.dates[l];)this.pickers[l++].setUTCDate(o);this.updateDates(),delete this.updating}}}},destroy:function(){e.map(this.pickers,function(e){e.destroy()}),delete this.element.data().datepicker},remove:r("destroy")};var h=e.fn.datepicker,p=function(i){var n=Array.apply(null,arguments);n.shift();var o;if(this.each(function(){var t=e(this),r=t.data("datepicker"),a="object"==typeof i&&i;if(!r){var u=s(this,"date"),h=e.extend({},f,u,a),p=l(h.language),g=e.extend({},f,p,u,a);t.hasClass("input-daterange")||g.inputs?(e.extend(g,{inputs:g.inputs||t.find("input").toArray()}),r=new d(this,g)):r=new c(this,g),t.data("datepicker",r)}"string"==typeof i&&"function"==typeof r[i]&&(o=r[i].apply(r,n))}),o===t||o instanceof c||o instanceof d)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return o};e.fn.datepicker=p;var f=e.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:e.noop,beforeShowMonth:e.noop,beforeShowYear:e.noop,beforeShowDecade:e.noop,beforeShowCentury:e.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,dateCells:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"}},g=e.fn.datepicker.locale_opts=["format","rtl","weekStart"];e.fn.datepicker.Constructor=c;var m=e.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},w={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(e){if("function"==typeof e.toValue&&"function"==typeof e.toDisplay)return e;var t=e.replace(this.validParts,"\0").split("\0"),i=e.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(o,r,a,s){function l(e,t){return t===!0&&(t=10),100>e&&(e+=2e3,e>(new Date).getFullYear()+t&&(e-=100)),e}function u(){var e=this.slice(0,d[f].length),t=d[f].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}if(!o)return t;if(o instanceof Date)return o;if("string"==typeof r&&(r=w.parseFormat(r)),r.toValue)return r.toValue(o,r,a);var d,h,p,f,g,k={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},y={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(o in y&&(o=y[o]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(o)){for(d=o.match(/([\-+]\d+)([dmwy])/gi),o=new Date,f=0;ft;)t+=12;for(t%=12,e.setUTCMonth(t);e.getUTCMonth()!==t;)e.setUTCDate(e.getUTCDate()-1);return e},d:function(e,t){return e.setUTCDate(t)}};Y.yy=Y.yyyy,Y.M=Y.MM=Y.mm=Y.m,Y.dd=Y.d,o=n();var x=r.parts.slice();if(d.length!==x.length&&(x=e(x).filter(function(t,i){return-1!==e.inArray(i,_)}).toArray()),d.length===x.length){var T;for(f=0,T=x.length;T>f;f++){if(v=parseInt(d[f],10),h=x[f],isNaN(v))switch(h){case"MM":b=e(m[a].months).filter(u),v=e.inArray(b[0],m[a].months)+1;break;case"M":b=e(m[a].monthsShort).filter(u),v=e.inArray(b[0],m[a].monthsShort)+1}D[h]=v}var M,C;for(f=0;f<_.length;f++)C=_[f],C in D&&!isNaN(D[C])&&(M=new Date(o),Y[C](M,D[C]),isNaN(M)||(o=M))}return o},formatDate:function(t,i,n){if(!t)return"";if("string"==typeof i&&(i=w.parseFormat(i)),i.toDisplay)return i.toDisplay(t,i,n);var o={d:t.getUTCDate(),D:m[n].daysShort[t.getUTCDay()],DD:m[n].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:m[n].monthsShort[t.getUTCMonth()],MM:m[n].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};o.dd=(o.d<10?"0":"")+o.d,o.mm=(o.m<10?"0":"")+o.m,t=[];for(var r=e.extend([],i.separators),a=0,s=i.parts.length;s>=a;a++)r.length&&t.push(r.shift()),t.push(o[i.parts[a]]);return t.join("")},headTemplate:'« » ',contTemplate:' ',footTemplate:' '};w.template=''+w.headTemplate+" "+w.footTemplate+'
'+w.headTemplate+w.contTemplate+w.footTemplate+'
'+w.headTemplate+w.contTemplate+w.footTemplate+'
'+w.headTemplate+w.contTemplate+w.footTemplate+'
'+w.headTemplate+w.contTemplate+w.footTemplate+"
",e.fn.datepicker.DPGlobal=w,e.fn.datepicker.noConflict=function(){return e.fn.datepicker=h,this},e.fn.datepicker.version="1.7.0-dev",e(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=e(this);i.data("datepicker")||(t.preventDefault(),p.call(i,"show"))}),e(function(){p.call(e('[data-provide="datepicker-inline"]'))})}),function e(t,i,n){function o(a,s){if(!i[a]){if(!t[a]){var l="function"==typeof require&&require;if(!s&&l)return l(a,!0);if(r)return r(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var c=i[a]={exports:{}};t[a][0].call(c.exports,function(e){var i=t[a][1][e];return o(i?i:e)},c,c.exports,e,t,i,n)}return i[a].exports}for(var r="function"==typeof require&&require,a=0;a":">",'"':""","'":"'","/":"/"};return this.replace(/[&<>"'\/]/g,function(t){return e[t]})},Array.prototype.unique=function(){return this.filter(function(e,t,i){return i.indexOf(e)===t})},window.mix=function(e){return new r(e)};var r=function(){function e(t){n(this,e),this.superclass=t}return o(e,[{key:"with",value:function(){for(var e=arguments.length,t=Array(e),i=0;ithis.length)&&this.indexOf(e,t)!==-1}),"function"!=typeof Object.assign&&!function(){Object.assign=function(e){if(void 0===e||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i>>0,n=arguments[1],o=void 0,r=0;r>>0,n=arguments[1],o=n>>0,r=o<0?Math.max(i+o,0):Math.min(o,i),a=arguments[2],s=void 0===a?i:a>>0,l=s<0?Math.max(i+s,0):Math.min(s,i);rThis is the staging environment!\n To use the staging app, append debug=true
to the URL
\n Otherwise, please update your links to use\n https://"+location.host+e+" \n
\n \n Redirecting you to the production "+document.title+" in\n 10 ...\n
\n ");var t=10;return setInterval(function(){return 0===--t?document.location=e:void $(".countdown").text(t)},1e3),{v:r(i)}}();if("object"===("undefined"==typeof u?"undefined":l(u)))return u.v}i.debug?window.app=i:i.splash();var c=n({},i18nLang,"/pageviews/messages/"+i18nLang+".json");return"en"!==i18nLang&&(c.en="/pageviews/messages/en.json"),$.i18n({locale:i18nLang}).load(c).then(i.initialize.bind(i)),toastr.options={closeButton:!0,debug:"localhost"===location.host,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!0,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"3000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut",toastClass:"alert",iconClasses:{error:"alert-danger",info:"alert-info",success:"alert-success",warning:"alert-warning"}},i}return a(t,e),u(t,[{key:"toast",value:function(e){var t=e.title?""+e.title+" ":"";e=Object.assign({message:t+e.message,level:"warning",timeout:10},e),toastr.options.timeOut=1e3*e.timeout,toastr[e.level](e.message)}},{key:"toastSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"success",timeout:t})}},{key:"toastInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"info",timeout:t})}},{key:"toastWarn",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"warning",timeout:t})}},{key:"toastError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;this.toast({message:e,level:"error",timeout:t})}},{key:"addInvalidParamNotice",value:function(e){var t=""+$.i18n("documentation").toLowerCase()+" ";this.toastError("\n "+$.i18n("invalid-params")+" \n "+$.i18n("param-error-3",e,t)+"\n ")}},{key:"validateDateRange",value:function(e){if(e.range)this.setSpecialRange(e.range)||(this.addInvalidParamNotice("range"),this.setSpecialRange(this.config.defaults.dateRange));else if(e.start){var t=/\d{4}-\d{2}-\d{2}$/,i=void 0,n=void 0;if(!e.start||!t.test(e.start))return this.addInvalidParamNotice("start"),!1;if(i=moment(e.start),!e.end||!t.test(e.end))return this.addInvalidParamNotice("end"),!1;if(n=moment(e.end),i"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(this.dateFormat))+"\n "),!1;if(i>n)return this.toastError("\n "+$.i18n("param-error-2")+" \n "+$.i18n("invalid-params")+"\n "),!1;this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n)}else this.setSpecialRange(this.config.defaults.dateRange);return!0}},{key:"clearMessages",value:function(){$(".message-container").html("")}},{key:"dbName",value:function(e){return Object.keys(d).find(function(t){return d[t]===e.replace(/\.org$/,"")+".org"})}},{key:"downloadData",value:function(e,t){var i=encodeURI(e),n=document.createElement("a");if("string"==typeof n.download){document.body.appendChild(n);var o=this.getExportFilename()+"."+t;n.download=o,n.href=i,n.click(),document.body.removeChild(n)}else window.open(i)}},{key:"fillInSettings",value:function(){var e=this;$.each($("#settings-modal input"),function(t,i){"checkbox"===i.type?i.checked="true"===e[i.name]:i.checked=e[i.name]===i.value})}},{key:"focusSelect2",value:function(){$(".select2-selection").trigger("click"),$(".select2-search__field").focus()}},{key:"formatNumber",value:function(e){var t=this.getFromLocalStorage("pageviews-settings-numericalFormatting")||this.config.defaults.numericalFormatting;return"true"===t?this.n(e):e}},{key:"formatYAxisNumber",value:function(e){return e%1===0?this.formatNumber(e):null}},{key:"getDateHeadings",value:function(){for(var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=[],i=moment(this.daterangepicker.endDate).add(1,"day"),n=moment(this.daterangepicker.startDate);n.isBefore(i);n.add(1,"day"))e?t.push(n.format(this.dateFormat)):t.push(n.format("YYYY-MM-DD"));return t}},{key:"getExpandedPageURL",value:function(e){return"//"+this.project+".org/w/index.php?title="+encodeURIComponent(e.score()).replace(/'/,escape)}},{key:"getHistoryLink",value:function(e,t){return'\n '+t+"\n "}},{key:"getExportFilename",value:function(){var e=this.daterangepicker.startDate.startOf("day").format("YYYYMMDD"),t=this.daterangepicker.endDate.startOf("day").format("YYYYMMDD");return this.app+"-"+e+"-"+t}},{key:"getPageLink",value:function(e,t){return''+e.descore().escape()+" "}},{key:"getPageURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.project;return"//"+t.replace(/\.org$/,"").escape()+".org/wiki/"+encodeURIComponent(e.score()).replace(/%3A|%2F/g,unescape)}},{key:"getSiteLink",value:function(e){return''+e+" "}},{key:"getLocaleDateString",value:function(){if(!navigator.language)return this.config.defaults.dateFormat;var e={"ar-sa":"DD/MM/YY","bg-bg":"DD.M.YYYY","ca-es":"DD/MM/YYYY","zh-tw":"YYYY/M/D","cs-cz":"D.M.YYYY","da-dk":"DD-MM-YYYY","de-de":"DD.MM.YYYY","el-gr":"D/M/YYYY","en-us":"M/D/YYYY","fi-fi":"D.M.YYYY","fr-fr":"DD/MM/YYYY","he-il":"DD/MM/YYYY","hu-hu":"YYYY. MM. DD.","is-is":"D.M.YYYY","it-it":"DD/MM/YYYY","ja-jp":"YYYY/MM/DD","ko-kr":"YYYY-MM-DD","nl-nl":"D-M-YYYY","nb-no":"DD.MM.YYYY","pl-pl":"YYYY-MM-DD","pt-br":"D/M/YYYY","ro-ro":"DD.MM.YYYY","ru-ru":"DD.MM.YYYY","hr-hr":"D.M.YYYY","sk-sk":"D. M. YYYY","sq-al":"YYYY-MM-DD","sv-se":"YYYY-MM-DD","th-th":"D/M/YYYY","tr-tr":"DD.MM.YYYY","ur-pk":"DD/MM/YYYY","id-id":"DD/MM/YYYY","uk-ua":"DD.MM.YYYY","be-by":"DD.MM.YYYY","sl-si":"D.M.YYYY","et-ee":"D.MM.YYYY","lv-lv":"YYYY.MM.DD.","lt-lt":"YYYY.MM.DD","fa-ir":"MM/DD/YYYY","vi-vn":"DD/MM/YYYY","hy-am":"DD.MM.YYYY","az-latn-az":"DD.MM.YYYY","eu-es":"YYYY/MM/DD","mk-mk":"DD.MM.YYYY","af-za":"YYYY/MM/DD","ka-ge":"DD.MM.YYYY","fo-fo":"DD-MM-YYYY","hi-in":"DD-MM-YYYY","ms-my":"DD/MM/YYYY","kk-kz":"DD.MM.YYYY","ky-kg":"DD.MM.YY","sw-ke":"M/d/YYYY","uz-latn-uz":"DD/MM YYYY","tt-ru":"DD.MM.YYYY","pa-in":"DD-MM-YY","gu-in":"DD-MM-YY","ta-in":"DD-MM-YYYY","te-in":"DD-MM-YY","kn-in":"DD-MM-YY","mr-in":"DD-MM-YYYY","sa-in":"DD-MM-YYYY","mn-mn":"YY.MM.DD","gl-es":"DD/MM/YY","kok-in":"DD-MM-YYYY","syr-sy":"DD/MM/YYYY","dv-mv":"DD/MM/YY","ar-iq":"DD/MM/YYYY","zh-cn":"YYYY/M/D","de-ch":"DD.MM.YYYY","en-gb":"DD/MM/YYYY","es-mx":"DD/MM/YYYY","fr-be":"D/MM/YYYY","it-ch":"DD.MM.YYYY","nl-be":"D/MM/YYYY","nn-no":"DD.MM.YYYY","pt-pt":"DD-MM-YYYY","sr-latn-cs":"D.M.YYYY","sv-fi":"D.M.YYYY","az-cyrl-az":"DD.MM.YYYY","ms-bn":"DD/MM/YYYY","uz-cyrl-uz":"DD.MM.YYYY","ar-eg":"DD/MM/YYYY","zh-hk":"D/M/YYYY","de-at":"DD.MM.YYYY","en-au":"D/MM/YYYY","es-es":"DD/MM/YYYY","fr-ca":"YYYY-MM-DD","sr-cyrl-cs":"D.M.YYYY","ar-ly":"DD/MM/YYYY","zh-sg":"D/M/YYYY","de-lu":"DD.MM.YYYY","en-ca":"DD/MM/YYYY","es-gt":"DD/MM/YYYY","fr-ch":"DD.MM.YYYY","ar-dz":"DD-MM-YYYY","zh-mo":"D/M/YYYY","de-li":"DD.MM.YYYY","en-nz":"D/MM/YYYY","es-cr":"DD/MM/YYYY","fr-lu":"DD/MM/YYYY","ar-ma":"DD-MM-YYYY","en-ie":"DD/MM/YYYY","es-pa":"MM/DD/YYYY","fr-mc":"DD/MM/YYYY","ar-tn":"DD-MM-YYYY","en-za":"YYYY/MM/DD","es-do":"DD/MM/YYYY","ar-om":"DD/MM/YYYY","en-jm":"DD/MM/YYYY","es-ve":"DD/MM/YYYY","ar-ye":"DD/MM/YYYY","en-029":"MM/DD/YYYY","es-co":"DD/MM/YYYY","ar-sy":"DD/MM/YYYY","en-bz":"DD/MM/YYYY","es-pe":"DD/MM/YYYY","ar-jo":"DD/MM/YYYY","en-tt":"DD/MM/YYYY","es-ar":"DD/MM/YYYY","ar-lb":"DD/MM/YYYY","en-zw":"M/D/YYYY","es-ec":"DD/MM/YYYY","ar-kw":"DD/MM/YYYY","en-ph":"M/D/YYYY","es-cl":"DD-MM-YYYY","ar-ae":"DD/MM/YYYY","es-uy":"DD/MM/YYYY","ar-bh":"DD/MM/YYYY","es-py":"DD/MM/YYYY","ar-qa":"DD/MM/YYYY","es-bo":"DD/MM/YYYY","es-sv":"DD/MM/YYYY","es-hn":"DD/MM/YYYY","es-ni":"DD/MM/YYYY","es-pr":"DD/MM/YYYY","am-et":"D/M/YYYY","tzm-latn-dz":"DD-MM-YYYY","iu-latn-ca":"D/MM/YYYY","sma-no":"DD.MM.YYYY","mn-mong-cn":"YYYY/M/D","gd-gb":"DD/MM/YYYY","en-my":"D/M/YYYY","prs-af":"DD/MM/YY","bn-bd":"DD-MM-YY","wo-sn":"DD/MM/YYYY","rw-rw":"M/D/YYYY","qut-gt":"DD/MM/YYYY","sah-ru":"MM.DD.YYYY","gsw-fr":"DD/MM/YYYY","co-fr":"DD/MM/YYYY","oc-fr":"DD/MM/YYYY","mi-nz":"DD/MM/YYYY","ga-ie":"DD/MM/YYYY","se-se":"YYYY-MM-DD","br-fr":"DD/MM/YYYY","smn-fi":"D.M.YYYY","moh-ca":"M/D/YYYY","arn-cl":"DD-MM-YYYY","ii-cn":"YYYY/M/D","dsb-de":"D. M. YYYY","ig-ng":"D/M/YYYY","kl-gl":"DD-MM-YYYY","lb-lu":"DD/MM/YYYY","ba-ru":"DD.MM.YY","nso-za":"YYYY/MM/DD","quz-bo":"DD/MM/YYYY","yo-ng":"D/M/YYYY","ha-latn-ng":"D/M/YYYY","fil-ph":"M/D/YYYY","ps-af":"DD/MM/YY","fy-nl":"D-M-YYYY","ne-np":"M/D/YYYY","se-no":"DD.MM.YYYY","iu-cans-ca":"D/M/YYYY","sr-latn-rs":"D.M.YYYY","si-lk":"YYYY-MM-DD","sr-cyrl-rs":"D.M.YYYY","lo-la":"DD/MM/YYYY","km-kh":"YYYY-MM-DD","cy-gb":"DD/MM/YYYY","bo-cn":"YYYY/M/D","sms-fi":"D.M.YYYY","as-in":"DD-MM-YYYY","ml-in":"DD-MM-YY","en-in":"DD-MM-YYYY","or-in":"DD-MM-YY","bn-in":"DD-MM-YY","tk-tm":"DD.MM.YY","bs-latn-ba":"D.M.YYYY","mt-mt":"DD/MM/YYYY","sr-cyrl-me":"D.M.YYYY","se-fi":"D.M.YYYY","zu-za":"YYYY/MM/DD","xh-za":"YYYY/MM/DD","tn-za":"YYYY/MM/DD","hsb-de":"D. M. YYYY",
-"bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},t=navigator.language.toLowerCase();return e[t]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(e){try{return localStorage.getItem(e)}catch(t){return storage[e]}}},{key:"getBugReportURL",value:function(e,t){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(t||this.app.upcase()+" bug report");return e?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+e:i}},{key:"fetchSiteInfo",value:function(e){var t=this;e=e.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+e;return this.siteInfo[e]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[e]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+e+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){t.siteInfo[e]=o.query,simpleStorage.set(n,t.siteInfo[e],{TTL:6048e5}),i.resolve(t.siteInfo)}).fail(function(e){i.reject(e)}),i)}},{key:"getSiteInfo",value:function(e){return this.siteInfo[e.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"startDate":"endDate",i=moment(this.daterangepicker[t]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:e,platform:"all-access",date:t.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(e,t){try{return localStorage.setItem(e,t)}catch(i){return storage[e]=t}}},{key:"hashCode",value:function(e){return e.split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+t.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(t)||(t+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var u=Object.assign({action:"query",format:"json",formatversion:"2"},e);l&&(u[i]=l);var c=$.ajax({url:"https://"+t+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:u});c.done(function(e){if(e.error)return r.resolve(e);var t=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(e.query)),t=a.pages.length>=o):(e.query.pages&&(a.pages=a.pages.concat(e.query.pages)),e.query[n]&&(a[n]=(a[n]||[]).concat(e.query[n])),t=a.pages.length>=o||a[n].length>=o),!t&&e.continue&&e.continue[i]?setTimeout(function(){s(e.continue[i])},100):(e.continue&&(a.continue=!0),r.resolve(a))}).fail(function(e){r.reject(e)})};return s(),r}},{key:"n",value:function(e){return new Number(e).toLocaleString()}},{key:"getPageInfo",value:function(e){var t=$.Deferred();try{e=e.map(function(e){return encodeURIComponent(decodeURIComponent(e))})}catch(e){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+e.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(t){e[e.indexOf(encodeURIComponent(t.from))]=encodeURIComponent(t.to)});var n={};return e.forEach(function(e){try{e=decodeURIComponent(e)}catch(e){}n[e]=i.query.pages.find(function(t){return t.title===e})}),t.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(e){for(var t=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=t.split("&"),n={},o=0;o").text(e).html();$(""+i+" ").appendTo(t.config.select2Input)}),$(this.config.select2Input).select2("val",e),$(this.config.select2Input).trigger("select2:select"),e}},{key:"setSpecialRange",value:function(e){var t=Object.keys(this.config.specialRanges).indexOf(e),i=void 0,n=void 0,o=void 0;if(e.includes("latest-")){o=parseInt(e.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(t>=0))return;var l="latest"===e?this.config.specialRanges.latest():this.config.specialRanges[e],u=s(l,2);i=u[0],n=u[1],$(".daterangepicker .ranges li").eq(t).trigger("click")}return this.specialRange={range:e,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var e=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(t,i){e.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+t+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var e=this;$("a[href='#']").on("click",function(e){return e.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return e.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var e=this,t=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(t){"latest"!==t&&(i[$.i18n(t)]=e.config.specialRanges[t])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),t.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(t){if(t.target.innerText===$.i18n("custom-range"))return e.specialRange=null,app.daterangepicker.clickApply();var i=e.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(e.config.specialRanges).find(function(e){return $.i18n(e)===t.target.innerText});e.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(t,i){i.chosenLabel===$.i18n("custom-range")&&(e.specialRange=null,e.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(e){var t=this;this.resetView(),e.forEach(function(e){t.writeMessage("
"+$.i18n("fatal-error")+" :
"+e+"
")});var i=function(e){return t.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",t.getBugReportURL(e))+"\n ",0)};if(this.debug)throw e[0];e&&e[0]&&e[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+e[0].stack),title:"Pageviews Analysis error report: "+e[0]}}).done(function(e){e&&e.result&&e.result.objectName?i(e.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var e="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",e),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",e),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",e),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",e),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ___ _ _ _ _ ",e),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",e),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",e),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",e),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ",e),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",e)}},{key:"startSpinny",value:function(){var e=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(t){e.resetView(),e.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",e.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(e){return e.map(function(e){return e.score()})}},{key:"updateInterAppLinks",value:function(){var e=this;$(".interapp-link").each(function(t,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+e.project.escape()+".org":i.href=n+"?project="+e.project.escape()+".org"})}},{key:"validateParams",value:function(e){var t=this;return this.config.validateParams.forEach(function(i){"project"===i&&e.project&&(e.project=e.project.replace(/^www\./,""));var n=t.config.defaults[i],o=e[i];n&&!t.config.validParams[i].includes(o)&&(o&&t.addInvalidParamNotice(i),e[i]=n)}),e}},{key:"validateProject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=$(this.config.projectInput)[0],i=t.value.replace(/^www\./,""),n=!1;return e&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=t.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=t.dataset.value),t.value=i,n}},{key:"writeMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&this.clearMessages(),$(".message-container").append("
"+e+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var e=$(this.config.projectInput).val();return e?e.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),t}(c);t.exports=p},{"./core_extensions":1,"./polyfills":2,"./pv_config":4,"./site_map":5}],4:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(e){return t.formatNumber(e)}}}]},legendCallback:function(e){return t.config.chartLegend(e.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"week").startOf("week"),moment().subtract(1,"week").endOf("week")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(e,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(e,[{key:"linearTooltips",value:function(e){var t=this;return{mode:e||"x-axis",callbacks:{label:function(e){return Number.isNaN(e.yLabel)?" "+$.i18n("unknown"):" "+t.formatNumber(e.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var e=this;return{callbacks:{label:function t(i,n){var o=n.datasets[i.datasetIndex].data[i.index],t=n.labels[i.index];return Number.isNaN(o)?t+": "+$.i18n("unknown"):t+": "+e.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),e}();t.exports=s},{"./site_map":5}],5:[function(e,t,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",
+"bs-cyrl-ba":"D.M.YYYY","tg-cyrl-tj":"DD.MM.yy","sr-latn-ba":"D.M.YYYY","smj-no":"DD.MM.YYYY","rm-ch":"DD/MM/YYYY","smj-se":"YYYY-MM-DD","quz-ec":"DD/MM/YYYY","quz-pe":"DD/MM/YYYY","hr-ba":"D.M.YYYY.","sr-latn-me":"D.M.YYYY","sma-se":"YYYY-MM-DD","en-sg":"D/M/YYYY","ug-cn":"YYYY-M-D","sr-cyrl-ba":"D.M.YYYY","es-us":"M/D/YYYY"},t=navigator.language.toLowerCase();return e[t]||this.config.defaults.dateFormat}},{key:"getFromLocalStorage",value:function(e){try{return localStorage.getItem(e)}catch(t){return storage[e]}}},{key:"getBugReportURL",value:function(e,t){var i="https://meta.wikimedia.org/w/index.php?title=Talk:Pageviews_Analysis&action=edit§ion=new&preloadtitle="+(t||this.app.upcase()+" bug report");return e?i+"&preload=Talk:Pageviews_Analysis/Preload&preloadparams[]="+e:i}},{key:"fetchSiteInfo",value:function(e){var t=this;e=e.replace(/\.org$/,"");var i=$.Deferred(),n="pageviews-siteinfo-"+e;return this.siteInfo[e]?i.resolve(this.siteInfo):(simpleStorage.hasKey(n)?(this.siteInfo[e]=simpleStorage.get(n),i.resolve(this.siteInfo)):$.ajax({url:"https://"+e+".org/w/api.php",data:{action:"query",meta:"siteinfo",siprop:"general|namespaces",format:"json"},dataType:"jsonp"}).done(function(o){t.siteInfo[e]=o.query,simpleStorage.set(n,t.siteInfo[e],{TTL:6048e5}),i.resolve(t.siteInfo)}).fail(function(e){i.reject(e)}),i)}},{key:"getSiteInfo",value:function(e){return this.siteInfo[e.replace(/\.org$/,"")]}},{key:"getTopviewsMonth",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=e?"startDate":"endDate",i=moment(this.daterangepicker[t]);return i.month()!==moment().month()&&i.month()!==moment().subtract(2,"days").month()||i.subtract(1,"month"),i}},{key:"getTopviewsMonthURL",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getTopviewsMonth(),i={project:e,platform:"all-access",date:t.startOf("month").format("YYYY-MM")};return"/topviews?"+$.param(i)}},{key:"getUserAgent",value:function(){return navigator.userAgent?navigator.userAgent:"Unknown"}},{key:"setLocalStorage",value:function(e,t){try{return localStorage.setItem(e,t)}catch(i){return storage[e]=t}}},{key:"hashCode",value:function(e){return e.split("").reduce(function(e,t){return(e<<5)-e+t.charCodeAt(0)},0)}},{key:"isChartApp",value:function(){return!this.isListApp()}},{key:"isListApp",value:function(){return["langviews","massviews","redirectviews"].includes(this.app)}},{key:"isMultilangProject",value:function(){return new RegExp(".*?\\.("+t.multilangProjects.join("|")+")").test(this.project)}},{key:"massApi",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"continue",n=arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.config.apiLimit;/\.org$/.test(t)||(t+=".org");var r=$.Deferred(),a={pages:[]},s=function s(l){var u=Object.assign({action:"query",format:"json",formatversion:"2"},e);l&&(u[i]=l);var c=$.ajax({url:"https://"+t+"/w/api.php",jsonp:"callback",dataType:"jsonp",data:u});c.done(function(e){if(e.error)return r.resolve(e);var t=void 0;"function"==typeof n?(a.pages=a.pages.concat(n(e.query)),t=a.pages.length>=o):(e.query.pages&&(a.pages=a.pages.concat(e.query.pages)),e.query[n]&&(a[n]=(a[n]||[]).concat(e.query[n])),t=a.pages.length>=o||a[n].length>=o),!t&&e.continue&&e.continue[i]?setTimeout(function(){s(e.continue[i])},100):(e.continue&&(a.continue=!0),r.resolve(a))}).fail(function(e){r.reject(e)})};return s(),r}},{key:"n",value:function(e){return new Number(e).toLocaleString()}},{key:"getPageInfo",value:function(e){var t=$.Deferred();try{e=e.map(function(e){return encodeURIComponent(decodeURIComponent(e))})}catch(e){}return $.ajax({url:"https://"+this.project+".org/w/api.php?action=query&prop=info&inprop=protection|watchers&formatversion=2&format=json&titles="+e.join("|"),dataType:"jsonp"}).then(function(i){i.query.normalized&&i.query.normalized.forEach(function(t){e[e.indexOf(encodeURIComponent(t.from))]=encodeURIComponent(t.to)});var n={};return e.forEach(function(e){try{e=decodeURIComponent(e)}catch(e){}n[e]=i.query.pages.find(function(t){return t.title===e})}),t.resolve(n)})}},{key:"numDaysInRange",value:function(){return this.daterangepicker.endDate.diff(this.daterangepicker.startDate,"days")+1}},{key:"parseQueryString",value:function(e){for(var t=location.search.slice(1).replace(/\+/g,"%20").replace(/%7C/g,"|"),i=t.split("&"),n={},o=0;o").text(e).html();$(""+i+" ").appendTo(t.config.select2Input)}),$(this.config.select2Input).select2("val",e),$(this.config.select2Input).trigger("select2:select"),e}},{key:"setSpecialRange",value:function(e){var t=Object.keys(this.config.specialRanges).indexOf(e),i=void 0,n=void 0,o=void 0;if(e.includes("latest-")){o=parseInt(e.replace("latest-",""),10)||20;var r=this.config.specialRanges.latest(o),a=s(r,2);i=a[0],n=a[1]}else{if(!(t>=0))return;var l="latest"===e?this.config.specialRanges.latest():this.config.specialRanges[e],u=s(l,2);i=u[0],n=u[1],$(".daterangepicker .ranges li").eq(t).trigger("click")}return this.specialRange={range:e,value:i.format(this.dateFormat)+" - "+n.format(this.dateFormat)},this.daterangepicker.startDate=i,this.daterangepicker.setEndDate(n),$(".latest-text").text(o?$.i18n("latest-days",o):$.i18n("latest")),this.specialRange}},{key:"setupSelect2Colors",value:function(){var e=this;return this.colorsStyleEl&&this.colorsStyleEl.remove(),this.colorsStyleEl=document.createElement("style"),this.colorsStyleEl.appendChild(document.createTextNode("")),document.head.appendChild(this.colorsStyleEl),this.config.colors.forEach(function(t,i){e.colorsStyleEl.sheet.insertRule(".select2-selection__choice:nth-of-type("+(i+1)+") { background: "+t+" !important }",0)}),this.colorsStyleEl.sheet}},{key:"setupListeners",value:function(){var e=this;$("a[href='#']").on("click",function(e){return e.preventDefault()}),$(".download-csv").on("click",this.exportCSV.bind(this)),$(".download-json").on("click",this.exportJSON.bind(this)),$(this.config.projectInput).on("focusin",function(){this.dataset.value=this.value}),$(this.config.projectInput).on("change",function(){return e.validateProject()})}},{key:"setupSettingsModal",value:function(){this.fillInSettings(),$(".save-settings-btn").on("click",this.saveSettings.bind(this)),$(".cancel-settings-btn").on("click",this.fillInSettings.bind(this))}},{key:"setupDateRangeSelector",value:function(){var e=this,t=$(this.config.dateRangeSelector),i={};Object.keys(this.config.specialRanges).forEach(function(t){"latest"!==t&&(i[$.i18n(t)]=e.config.specialRanges[t])});var n={locale:{format:this.dateFormat,applyLabel:$.i18n("apply"),cancelLabel:$.i18n("cancel"),customRangeLabel:$.i18n("custom-range"),daysOfWeek:[$.i18n("su"),$.i18n("mo"),$.i18n("tu"),$.i18n("we"),$.i18n("th"),$.i18n("fr"),$.i18n("sa")],monthNames:[$.i18n("january"),$.i18n("february"),$.i18n("march"),$.i18n("april"),$.i18n("may"),$.i18n("june"),$.i18n("july"),$.i18n("august"),$.i18n("september"),$.i18n("october"),$.i18n("november"),$.i18n("december")]},startDate:moment().subtract(this.config.daysAgo,"days"),minDate:this.config.minDate,maxDate:this.config.maxDate,ranges:i};this.config.dateLimit&&(n.dateLimit={days:this.config.dateLimit}),t.daterangepicker(n),$(".daterangepicker").append($("").addClass("daterange-notice").html($.i18n("date-notice",document.title,"
stats.grok.se ",$.i18n("july")+" 2015"))),$(".daterangepicker .ranges li").on("click",function(t){if(t.target.innerText===$.i18n("custom-range"))return e.specialRange=null,app.daterangepicker.clickApply();var i=e.daterangepicker.container,n=i.find(".daterangepicker_input input"),o=Object.keys(e.config.specialRanges).find(function(e){return $.i18n(e)===t.target.innerText});e.specialRange={range:o,value:n[0].value+" - "+n[1].value}}),$(this.config.dateRangeSelector).on("apply.daterangepicker",function(t,i){i.chosenLabel===$.i18n("custom-range")&&(e.specialRange=null,e.daterangepicker.updateElement())})}},{key:"showFatalErrors",value:function(e){var t=this;this.resetView(),e.forEach(function(e){t.writeMessage("
"+$.i18n("fatal-error")+" :
"+e+"
")});var i=function(e){return t.toastError("\n
"+$.i18n("fatal-error")+" : "+$.i18n("error-please-report",t.getBugReportURL(e))+"\n ",0)};if(this.debug)throw e[0];e&&e[0]&&e[0].stack&&$.ajax({method:"POST",url:"//tools.wmflabs.org/musikanimal/paste",data:{content:"\ndate: "+moment().utc().format()+("\ntool: "+this.app)+("\nlanguage: "+i18nLang)+("\nchart: "+this.chartType)+("\nurl: "+document.location.href)+("\nuserAgent: "+this.getUserAgent())+("\ntrace: "+e[0].stack),title:"Pageviews Analysis error report: "+e[0]}}).done(function(e){e&&e.result&&e.result.objectName?i(e.result.objectName):i()}).fail(function(){i()})}},{key:"splash",value:function(){var e="background: #eee; color: #555; padding: 4px; font-family:monospace";console.log("%c ___ __ _ _ ",e),console.log("%c | _ \\ __ _ / _` | ___ __ __ (_) ___ __ __ __ ___ ",e),console.log("%c | _/ / _` | \\__, | / -_) \\ V / | | / -_) \\ V V / (_-< ",e),console.log("%c _|_|_ \\__,_| |___/ \\___| _\\_/_ _|_|_ \\___| \\_/\\_/ /__/_ ",e),console.log('%c _| """ |_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c \"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ___ _ _ _ _ ",e),console.log("%c o O O / \\ _ _ __ _ | || | | | ___ (_) ___ ",e),console.log("%c o | - | | ' \\ / _` | \\_, | | | (_-< | | (_-< ",e),console.log("%c TS__[O] |_|_| |_||_| \\__,_| _|__/ _|_|_ /__/_ _|_|_ /__/_ ",e),console.log('%c {======|_|"""""|_|"""""|_|"""""|_| """"|_|"""""|_|"""""|_|"""""|_|"""""| ',e),console.log("%c ./o--000'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-'\"`-0-0-' ",e),console.log("%c ",e),console.log("%c Copyright © "+(new Date).getFullYear()+" MusikAnimal, Kaldari, Marcel Ruiz Forns ",e)}},{key:"startSpinny",value:function(){var e=this;$("body").addClass("loading"),document.activeElement.blur(),clearTimeout(this.timeout),this.timeout=setTimeout(function(t){e.resetView(),e.toastError("\n
"+$.i18n("fatal-error")+" :\n "+$.i18n("error-timed-out")+"\n "+$.i18n("error-please-report",e.getBugReportURL())+"\n ")},3e4)}},{key:"stopSpinny",value:function(){$("body").removeClass("loading initial"),clearTimeout(this.timeout)}},{key:"underscorePageNames",value:function(e){return e.map(function(e){return e.score()})}},{key:"updateInterAppLinks",value:function(){var e=this;$(".interapp-link").each(function(t,i){var n=i.href.split("?")[0];i.classList.contains("interapp-link--siteviews")?i.href=n+"?sites="+e.project.escape()+".org":i.href=n+"?project="+e.project.escape()+".org"})}},{key:"validateParams",value:function(e){var t=this;return this.config.validateParams.forEach(function(i){"project"===i&&e.project&&(e.project=e.project.replace(/^www\./,""));var n=t.config.defaults[i],o=e[i];n&&!t.config.validParams[i].includes(o)&&(o&&t.addInvalidParamNotice(i),e[i]=n)}),e}},{key:"validateProject",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=$(this.config.projectInput)[0],i=t.value.replace(/^www\./,""),n=!1;return e&&!this.isMultilangProject()?(this.toastWarn($.i18n("invalid-lang-project","
"+i.escape()+" ")),i=t.dataset.value):h.includes(i)?(this.updateInterAppLinks(),n=!0):(this.toastWarn($.i18n("invalid-project","
"+i.escape()+" ")),i=t.dataset.value),t.value=i,n}},{key:"writeMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t&&this.clearMessages(),$(".message-container").append("
"+e+"
")}},{key:"dateFormat",get:function(){return"true"===this.localizeDateFormat?this.getLocaleDateString():this.config.defaults.dateFormat}},{key:"daterangepicker",get:function(){return $(this.config.dateRangeSelector).data("daterangepicker")}},{key:"project",get:function(){var e=$(this.config.projectInput).val();return e?e.toLowerCase().replace(/.org$/,""):null}}],[{key:"multilangProjects",get:function(){return["wikipedia","wikibooks","wikinews","wikiquote","wikisource","wikiversity","wikivoyage"]}}]),t}(c);t.exports=p},{"./core_extensions":1,"./polyfills":2,"./pv_config":4,"./site_map":5}],4:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var i=0;i
1?"line":"bar"},dateFormat:"YYYY-MM-DD",localizeDateFormat:"true",numericalFormatting:"true",bezierCurve:"false",autoLogDetection:"false",beginAtZero:"false",rememberChart:"false",agent:"user",platform:"all-access",project:"en.wikipedia.org"},globalChartOpts:{animation:{duration:500,easing:"easeInOutQuart"},hover:{animationDuration:0},legend:{display:!1}},linearCharts:["line","bar","radar"],linearOpts:{scales:{yAxes:[{ticks:{callback:function(e){return t.formatNumber(e)}}}]},legendCallback:function(e){return t.config.chartLegend(e.data.datasets,i)}},daysAgo:20,minDate:moment("2015-07-01").startOf("day"),maxDate:r,specialRanges:{"last-week":[moment().subtract(1,"isoweek").startOf("isoweek"),moment().subtract(1,"isoweek").endOf("isoweek")],"this-month":[moment().startOf("month"),moment().startOf("month").isAfter(r)?moment().startOf("month"):r],"last-month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")],"this-year":[moment().startOf("year"),moment().startOf("year").isAfter(r)?moment().startOf("year"):r],"last-year":[moment().subtract(1,"year").startOf("year"),moment().subtract(1,"year").endOf("year")],"all-time":[moment("2015-07-01").startOf("day"),r],latest:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.config.daysAgo;return[moment().subtract(e,"days").startOf("day"),i.config.maxDate]}},timestampFormat:"YYYYMMDD00",validParams:{agent:["all-agents","user","spider","bot"],platform:["all-access","desktop","mobile-app","mobile-web"],project:a}}}return o(e,[{key:"linearTooltips",value:function(e){var t=this;return{mode:e||"x-axis",callbacks:{label:function(e){return Number.isNaN(e.yLabel)?" "+$.i18n("unknown"):" "+t.formatNumber(e.yLabel)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}},{key:"circularTooltips",get:function(){var e=this;return{callbacks:{label:function t(i,n){var o=n.datasets[i.datasetIndex].data[i.index],t=n.labels[i.index];return Number.isNaN(o)?t+": "+$.i18n("unknown"):t+": "+e.formatNumber(o)}},bodyFontSize:14,bodySpacing:7,caretSize:0,titleFontSize:14}}}]),e}();t.exports=s},{"./site_map":5}],5:[function(e,t,i){"use strict";var n={aawiki:"aa.wikipedia.org",aawiktionary:"aa.wiktionary.org",aawikibooks:"aa.wikibooks.org",abwiki:"ab.wikipedia.org",abwiktionary:"ab.wiktionary.org",acewiki:"ace.wikipedia.org",adywiki:"ady.wikipedia.org",afwiki:"af.wikipedia.org",afwiktionary:"af.wiktionary.org",afwikibooks:"af.wikibooks.org",afwikiquote:"af.wikiquote.org",akwiki:"ak.wikipedia.org",akwiktionary:"ak.wiktionary.org",akwikibooks:"ak.wikibooks.org",alswiki:"als.wikipedia.org",alswiktionary:"als.wiktionary.org",alswikibooks:"als.wikibooks.org",alswikiquote:"als.wikiquote.org",amwiki:"am.wikipedia.org",amwiktionary:"am.wiktionary.org",amwikiquote:"am.wikiquote.org",anwiki:"an.wikipedia.org",anwiktionary:"an.wiktionary.org",angwiki:"ang.wikipedia.org",angwiktionary:"ang.wiktionary.org",angwikibooks:"ang.wikibooks.org",angwikiquote:"ang.wikiquote.org",angwikisource:"ang.wikisource.org",arwiki:"ar.wikipedia.org",arwiktionary:"ar.wiktionary.org",arwikibooks:"ar.wikibooks.org",arwikinews:"ar.wikinews.org",arwikiquote:"ar.wikiquote.org",arwikisource:"ar.wikisource.org",arwikiversity:"ar.wikiversity.org",arcwiki:"arc.wikipedia.org",arzwiki:"arz.wikipedia.org",aswiki:"as.wikipedia.org",aswiktionary:"as.wiktionary.org",aswikibooks:"as.wikibooks.org",aswikisource:"as.wikisource.org",astwiki:"ast.wikipedia.org",astwiktionary:"ast.wiktionary.org",astwikibooks:"ast.wikibooks.org",astwikiquote:"ast.wikiquote.org",avwiki:"av.wikipedia.org",avwiktionary:"av.wiktionary.org",aywiki:"ay.wikipedia.org",aywiktionary:"ay.wiktionary.org",aywikibooks:"ay.wikibooks.org",azwiki:"az.wikipedia.org",azwiktionary:"az.wiktionary.org",azwikibooks:"az.wikibooks.org",azwikiquote:"az.wikiquote.org",azwikisource:"az.wikisource.org",azbwiki:"azb.wikipedia.org",bawiki:"ba.wikipedia.org",bawikibooks:"ba.wikibooks.org",barwiki:"bar.wikipedia.org",bat_smgwiki:"bat-smg.wikipedia.org",bclwiki:"bcl.wikipedia.org",bewiki:"be.wikipedia.org",bewiktionary:"be.wiktionary.org",bewikibooks:"be.wikibooks.org",bewikiquote:"be.wikiquote.org",bewikisource:"be.wikisource.org",be_x_oldwiki:"be-tarask.wikipedia.org",bgwiki:"bg.wikipedia.org",bgwiktionary:"bg.wiktionary.org",bgwikibooks:"bg.wikibooks.org",bgwikinews:"bg.wikinews.org",bgwikiquote:"bg.wikiquote.org",bgwikisource:"bg.wikisource.org",bhwiki:"bh.wikipedia.org",bhwiktionary:"bh.wiktionary.org",biwiki:"bi.wikipedia.org",biwiktionary:"bi.wiktionary.org",biwikibooks:"bi.wikibooks.org",bjnwiki:"bjn.wikipedia.org",bmwiki:"bm.wikipedia.org",bmwiktionary:"bm.wiktionary.org",bmwikibooks:"bm.wikibooks.org",bmwikiquote:"bm.wikiquote.org",bnwiki:"bn.wikipedia.org",bnwiktionary:"bn.wiktionary.org",bnwikibooks:"bn.wikibooks.org",bnwikisource:"bn.wikisource.org",bowiki:"bo.wikipedia.org",bowiktionary:"bo.wiktionary.org",bowikibooks:"bo.wikibooks.org",bpywiki:"bpy.wikipedia.org",brwiki:"br.wikipedia.org",brwiktionary:"br.wiktionary.org",brwikiquote:"br.wikiquote.org",brwikisource:"br.wikisource.org",bswiki:"bs.wikipedia.org",bswiktionary:"bs.wiktionary.org",bswikibooks:"bs.wikibooks.org",bswikinews:"bs.wikinews.org",bswikiquote:"bs.wikiquote.org",bswikisource:"bs.wikisource.org",bugwiki:"bug.wikipedia.org",bxrwiki:"bxr.wikipedia.org",cawiki:"ca.wikipedia.org",cawiktionary:"ca.wiktionary.org",cawikibooks:"ca.wikibooks.org",cawikinews:"ca.wikinews.org",cawikiquote:"ca.wikiquote.org",cawikisource:"ca.wikisource.org",cbk_zamwiki:"cbk-zam.wikipedia.org",cdowiki:"cdo.wikipedia.org",cewiki:"ce.wikipedia.org",cebwiki:"ceb.wikipedia.org",chwiki:"ch.wikipedia.org",chwiktionary:"ch.wiktionary.org",chwikibooks:"ch.wikibooks.org",chowiki:"cho.wikipedia.org",chrwiki:"chr.wikipedia.org",chrwiktionary:"chr.wiktionary.org",chywiki:"chy.wikipedia.org",ckbwiki:"ckb.wikipedia.org",cowiki:"co.wikipedia.org",cowiktionary:"co.wiktionary.org",cowikibooks:"co.wikibooks.org",cowikiquote:"co.wikiquote.org",crwiki:"cr.wikipedia.org",crwiktionary:"cr.wiktionary.org",crwikiquote:"cr.wikiquote.org",crhwiki:"crh.wikipedia.org",cswiki:"cs.wikipedia.org",cswiktionary:"cs.wiktionary.org",cswikibooks:"cs.wikibooks.org",cswikinews:"cs.wikinews.org",cswikiquote:"cs.wikiquote.org",cswikisource:"cs.wikisource.org",cswikiversity:"cs.wikiversity.org",csbwiki:"csb.wikipedia.org",csbwiktionary:"csb.wiktionary.org",cuwiki:"cu.wikipedia.org",cvwiki:"cv.wikipedia.org",cvwikibooks:"cv.wikibooks.org",cywiki:"cy.wikipedia.org",cywiktionary:"cy.wiktionary.org",cywikibooks:"cy.wikibooks.org",cywikiquote:"cy.wikiquote.org",cywikisource:"cy.wikisource.org",dawiki:"da.wikipedia.org",dawiktionary:"da.wiktionary.org",dawikibooks:"da.wikibooks.org",dawikiquote:"da.wikiquote.org",dawikisource:"da.wikisource.org",dewiki:"de.wikipedia.org",dewiktionary:"de.wiktionary.org",dewikibooks:"de.wikibooks.org",dewikinews:"de.wikinews.org",dewikiquote:"de.wikiquote.org",dewikisource:"de.wikisource.org",dewikiversity:"de.wikiversity.org",dewikivoyage:"de.wikivoyage.org",diqwiki:"diq.wikipedia.org",dsbwiki:"dsb.wikipedia.org",dvwiki:"dv.wikipedia.org",dvwiktionary:"dv.wiktionary.org",dzwiki:"dz.wikipedia.org",dzwiktionary:"dz.wiktionary.org",eewiki:"ee.wikipedia.org",elwiki:"el.wikipedia.org",elwiktionary:"el.wiktionary.org",elwikibooks:"el.wikibooks.org",elwikinews:"el.wikinews.org",elwikiquote:"el.wikiquote.org",elwikisource:"el.wikisource.org",elwikiversity:"el.wikiversity.org",elwikivoyage:"el.wikivoyage.org",emlwiki:"eml.wikipedia.org",enwiki:"en.wikipedia.org",enwiktionary:"en.wiktionary.org",enwikibooks:"en.wikibooks.org",enwikinews:"en.wikinews.org",enwikiquote:"en.wikiquote.org",enwikisource:"en.wikisource.org",enwikiversity:"en.wikiversity.org",enwikivoyage:"en.wikivoyage.org",eowiki:"eo.wikipedia.org",eowiktionary:"eo.wiktionary.org",eowikibooks:"eo.wikibooks.org",eowikinews:"eo.wikinews.org",eowikiquote:"eo.wikiquote.org",eowikisource:"eo.wikisource.org",eswiki:"es.wikipedia.org",eswiktionary:"es.wiktionary.org",eswikibooks:"es.wikibooks.org",eswikinews:"es.wikinews.org",eswikiquote:"es.wikiquote.org",eswikisource:"es.wikisource.org",eswikiversity:"es.wikiversity.org",eswikivoyage:"es.wikivoyage.org",etwiki:"et.wikipedia.org",etwiktionary:"et.wiktionary.org",etwikibooks:"et.wikibooks.org",etwikiquote:"et.wikiquote.org",etwikisource:"et.wikisource.org",euwiki:"eu.wikipedia.org",euwiktionary:"eu.wiktionary.org",euwikibooks:"eu.wikibooks.org",euwikiquote:"eu.wikiquote.org",extwiki:"ext.wikipedia.org",fawiki:"fa.wikipedia.org",fawiktionary:"fa.wiktionary.org",fawikibooks:"fa.wikibooks.org",fawikinews:"fa.wikinews.org",fawikiquote:"fa.wikiquote.org",fawikisource:"fa.wikisource.org",fawikivoyage:"fa.wikivoyage.org",ffwiki:"ff.wikipedia.org",fiwiki:"fi.wikipedia.org",fiwiktionary:"fi.wiktionary.org",fiwikibooks:"fi.wikibooks.org",fiwikinews:"fi.wikinews.org",fiwikiquote:"fi.wikiquote.org",fiwikisource:"fi.wikisource.org",fiwikiversity:"fi.wikiversity.org",fiu_vrowiki:"fiu-vro.wikipedia.org",fjwiki:"fj.wikipedia.org",fjwiktionary:"fj.wiktionary.org",fowiki:"fo.wikipedia.org",fowiktionary:"fo.wiktionary.org",fowikisource:"fo.wikisource.org",frwiki:"fr.wikipedia.org",frwiktionary:"fr.wiktionary.org",frwikibooks:"fr.wikibooks.org",frwikinews:"fr.wikinews.org",frwikiquote:"fr.wikiquote.org",frwikisource:"fr.wikisource.org",frwikiversity:"fr.wikiversity.org",frwikivoyage:"fr.wikivoyage.org",frpwiki:"frp.wikipedia.org",frrwiki:"frr.wikipedia.org",furwiki:"fur.wikipedia.org",fywiki:"fy.wikipedia.org",fywiktionary:"fy.wiktionary.org",fywikibooks:"fy.wikibooks.org",gawiki:"ga.wikipedia.org",gawiktionary:"ga.wiktionary.org",gawikibooks:"ga.wikibooks.org",gawikiquote:"ga.wikiquote.org",gagwiki:"gag.wikipedia.org",ganwiki:"gan.wikipedia.org",gdwiki:"gd.wikipedia.org",gdwiktionary:"gd.wiktionary.org",glwiki:"gl.wikipedia.org",glwiktionary:"gl.wiktionary.org",glwikibooks:"gl.wikibooks.org",glwikiquote:"gl.wikiquote.org",glwikisource:"gl.wikisource.org",glkwiki:"glk.wikipedia.org",gnwiki:"gn.wikipedia.org",gnwiktionary:"gn.wiktionary.org",gnwikibooks:"gn.wikibooks.org",gomwiki:"gom.wikipedia.org",gotwiki:"got.wikipedia.org",gotwikibooks:"got.wikibooks.org",guwiki:"gu.wikipedia.org",guwiktionary:"gu.wiktionary.org",guwikibooks:"gu.wikibooks.org",guwikiquote:"gu.wikiquote.org",guwikisource:"gu.wikisource.org",gvwiki:"gv.wikipedia.org",gvwiktionary:"gv.wiktionary.org",hawiki:"ha.wikipedia.org",hawiktionary:"ha.wiktionary.org",hakwiki:"hak.wikipedia.org",hawwiki:"haw.wikipedia.org",hewiki:"he.wikipedia.org",hewiktionary:"he.wiktionary.org",hewikibooks:"he.wikibooks.org",hewikinews:"he.wikinews.org",hewikiquote:"he.wikiquote.org",hewikisource:"he.wikisource.org",hewikivoyage:"he.wikivoyage.org",hiwiki:"hi.wikipedia.org",hiwiktionary:"hi.wiktionary.org",hiwikibooks:"hi.wikibooks.org",hiwikiquote:"hi.wikiquote.org",hifwiki:"hif.wikipedia.org",howiki:"ho.wikipedia.org",hrwiki:"hr.wikipedia.org",hrwiktionary:"hr.wiktionary.org",hrwikibooks:"hr.wikibooks.org",hrwikiquote:"hr.wikiquote.org",hrwikisource:"hr.wikisource.org",hsbwiki:"hsb.wikipedia.org",hsbwiktionary:"hsb.wiktionary.org",htwiki:"ht.wikipedia.org",htwikisource:"ht.wikisource.org",huwiki:"hu.wikipedia.org",huwiktionary:"hu.wiktionary.org",huwikibooks:"hu.wikibooks.org",huwikinews:"hu.wikinews.org",huwikiquote:"hu.wikiquote.org",huwikisource:"hu.wikisource.org",hywiki:"hy.wikipedia.org",hywiktionary:"hy.wiktionary.org",hywikibooks:"hy.wikibooks.org",hywikiquote:"hy.wikiquote.org",hywikisource:"hy.wikisource.org",hzwiki:"hz.wikipedia.org",iawiki:"ia.wikipedia.org",iawiktionary:"ia.wiktionary.org",iawikibooks:"ia.wikibooks.org",idwiki:"id.wikipedia.org",idwiktionary:"id.wiktionary.org",idwikibooks:"id.wikibooks.org",idwikiquote:"id.wikiquote.org",idwikisource:"id.wikisource.org",iewiki:"ie.wikipedia.org",iewiktionary:"ie.wiktionary.org",iewikibooks:"ie.wikibooks.org",igwiki:"ig.wikipedia.org",iiwiki:"ii.wikipedia.org",ikwiki:"ik.wikipedia.org",ikwiktionary:"ik.wiktionary.org",ilowiki:"ilo.wikipedia.org",iowiki:"io.wikipedia.org",iowiktionary:"io.wiktionary.org",iswiki:"is.wikipedia.org",iswiktionary:"is.wiktionary.org",iswikibooks:"is.wikibooks.org",iswikiquote:"is.wikiquote.org",iswikisource:"is.wikisource.org",itwiki:"it.wikipedia.org",itwiktionary:"it.wiktionary.org",itwikibooks:"it.wikibooks.org",itwikinews:"it.wikinews.org",itwikiquote:"it.wikiquote.org",itwikisource:"it.wikisource.org",itwikiversity:"it.wikiversity.org",itwikivoyage:"it.wikivoyage.org",iuwiki:"iu.wikipedia.org",iuwiktionary:"iu.wiktionary.org",jawiki:"ja.wikipedia.org",jawiktionary:"ja.wiktionary.org",jawikibooks:"ja.wikibooks.org",jawikinews:"ja.wikinews.org",jawikiquote:"ja.wikiquote.org",jawikisource:"ja.wikisource.org",jawikiversity:"ja.wikiversity.org",jbowiki:"jbo.wikipedia.org",jbowiktionary:"jbo.wiktionary.org",jvwiki:"jv.wikipedia.org",jvwiktionary:"jv.wiktionary.org",kawiki:"ka.wikipedia.org",kawiktionary:"ka.wiktionary.org",kawikibooks:"ka.wikibooks.org",kawikiquote:"ka.wikiquote.org",kaawiki:"kaa.wikipedia.org",kabwiki:"kab.wikipedia.org",kbdwiki:"kbd.wikipedia.org",kgwiki:"kg.wikipedia.org",kiwiki:"ki.wikipedia.org",kjwiki:"kj.wikipedia.org",kkwiki:"kk.wikipedia.org",kkwiktionary:"kk.wiktionary.org",kkwikibooks:"kk.wikibooks.org",kkwikiquote:"kk.wikiquote.org",klwiki:"kl.wikipedia.org",klwiktionary:"kl.wiktionary.org",kmwiki:"km.wikipedia.org",kmwiktionary:"km.wiktionary.org",kmwikibooks:"km.wikibooks.org",knwiki:"kn.wikipedia.org",knwiktionary:"kn.wiktionary.org",knwikibooks:"kn.wikibooks.org",knwikiquote:"kn.wikiquote.org",knwikisource:"kn.wikisource.org",kowiki:"ko.wikipedia.org",kowiktionary:"ko.wiktionary.org",kowikibooks:"ko.wikibooks.org",kowikinews:"ko.wikinews.org",kowikiquote:"ko.wikiquote.org",kowikisource:"ko.wikisource.org",kowikiversity:"ko.wikiversity.org",koiwiki:"koi.wikipedia.org",krwiki:"kr.wikipedia.org",krwikiquote:"kr.wikiquote.org",krcwiki:"krc.wikipedia.org",kswiki:"ks.wikipedia.org",kswiktionary:"ks.wiktionary.org",kswikibooks:"ks.wikibooks.org",kswikiquote:"ks.wikiquote.org",
kshwiki:"ksh.wikipedia.org",kuwiki:"ku.wikipedia.org",kuwiktionary:"ku.wiktionary.org",kuwikibooks:"ku.wikibooks.org",kuwikiquote:"ku.wikiquote.org",kvwiki:"kv.wikipedia.org",kwwiki:"kw.wikipedia.org",kwwiktionary:"kw.wiktionary.org",kwwikiquote:"kw.wikiquote.org",kywiki:"ky.wikipedia.org",kywiktionary:"ky.wiktionary.org",kywikibooks:"ky.wikibooks.org",kywikiquote:"ky.wikiquote.org",lawiki:"la.wikipedia.org",lawiktionary:"la.wiktionary.org",lawikibooks:"la.wikibooks.org",lawikiquote:"la.wikiquote.org",lawikisource:"la.wikisource.org",ladwiki:"lad.wikipedia.org",lbwiki:"lb.wikipedia.org",lbwiktionary:"lb.wiktionary.org",lbwikibooks:"lb.wikibooks.org",lbwikiquote:"lb.wikiquote.org",lbewiki:"lbe.wikipedia.org",lezwiki:"lez.wikipedia.org",lgwiki:"lg.wikipedia.org",liwiki:"li.wikipedia.org",liwiktionary:"li.wiktionary.org",liwikibooks:"li.wikibooks.org",liwikiquote:"li.wikiquote.org",liwikisource:"li.wikisource.org",lijwiki:"lij.wikipedia.org",lmowiki:"lmo.wikipedia.org",lnwiki:"ln.wikipedia.org",lnwiktionary:"ln.wiktionary.org",lnwikibooks:"ln.wikibooks.org",lowiki:"lo.wikipedia.org",lowiktionary:"lo.wiktionary.org",lrcwiki:"lrc.wikipedia.org",ltwiki:"lt.wikipedia.org",ltwiktionary:"lt.wiktionary.org",ltwikibooks:"lt.wikibooks.org",ltwikiquote:"lt.wikiquote.org",ltwikisource:"lt.wikisource.org",ltgwiki:"ltg.wikipedia.org",lvwiki:"lv.wikipedia.org",lvwiktionary:"lv.wiktionary.org",lvwikibooks:"lv.wikibooks.org",maiwiki:"mai.wikipedia.org",map_bmswiki:"map-bms.wikipedia.org",mdfwiki:"mdf.wikipedia.org",mgwiki:"mg.wikipedia.org",mgwiktionary:"mg.wiktionary.org",mgwikibooks:"mg.wikibooks.org",mhwiki:"mh.wikipedia.org",mhwiktionary:"mh.wiktionary.org",mhrwiki:"mhr.wikipedia.org",miwiki:"mi.wikipedia.org",miwiktionary:"mi.wiktionary.org",miwikibooks:"mi.wikibooks.org",minwiki:"min.wikipedia.org",mkwiki:"mk.wikipedia.org",mkwiktionary:"mk.wiktionary.org",mkwikibooks:"mk.wikibooks.org",mkwikisource:"mk.wikisource.org",mlwiki:"ml.wikipedia.org",mlwiktionary:"ml.wiktionary.org",mlwikibooks:"ml.wikibooks.org",mlwikiquote:"ml.wikiquote.org",mlwikisource:"ml.wikisource.org",mnwiki:"mn.wikipedia.org",mnwiktionary:"mn.wiktionary.org",mnwikibooks:"mn.wikibooks.org",mowiki:"mo.wikipedia.org",mowiktionary:"mo.wiktionary.org",mrwiki:"mr.wikipedia.org",mrwiktionary:"mr.wiktionary.org",mrwikibooks:"mr.wikibooks.org",mrwikiquote:"mr.wikiquote.org",mrwikisource:"mr.wikisource.org",mrjwiki:"mrj.wikipedia.org",mswiki:"ms.wikipedia.org",mswiktionary:"ms.wiktionary.org",mswikibooks:"ms.wikibooks.org",mtwiki:"mt.wikipedia.org",mtwiktionary:"mt.wiktionary.org",muswiki:"mus.wikipedia.org",mwlwiki:"mwl.wikipedia.org",mywiki:"my.wikipedia.org",mywiktionary:"my.wiktionary.org",mywikibooks:"my.wikibooks.org",myvwiki:"myv.wikipedia.org",mznwiki:"mzn.wikipedia.org",nawiki:"na.wikipedia.org",nawiktionary:"na.wiktionary.org",nawikibooks:"na.wikibooks.org",nawikiquote:"na.wikiquote.org",nahwiki:"nah.wikipedia.org",nahwiktionary:"nah.wiktionary.org",nahwikibooks:"nah.wikibooks.org",napwiki:"nap.wikipedia.org",ndswiki:"nds.wikipedia.org",ndswiktionary:"nds.wiktionary.org",ndswikibooks:"nds.wikibooks.org",ndswikiquote:"nds.wikiquote.org",nds_nlwiki:"nds-nl.wikipedia.org",newiki:"ne.wikipedia.org",newiktionary:"ne.wiktionary.org",newikibooks:"ne.wikibooks.org",newwiki:"new.wikipedia.org",ngwiki:"ng.wikipedia.org",nlwiki:"nl.wikipedia.org",nlwiktionary:"nl.wiktionary.org",nlwikibooks:"nl.wikibooks.org",nlwikinews:"nl.wikinews.org",nlwikiquote:"nl.wikiquote.org",nlwikisource:"nl.wikisource.org",nlwikivoyage:"nl.wikivoyage.org",nnwiki:"nn.wikipedia.org",nnwiktionary:"nn.wiktionary.org",nnwikiquote:"nn.wikiquote.org",nowiki:"no.wikipedia.org",nowiktionary:"no.wiktionary.org",nowikibooks:"no.wikibooks.org",nowikinews:"no.wikinews.org",nowikiquote:"no.wikiquote.org",nowikisource:"no.wikisource.org",novwiki:"nov.wikipedia.org",nrmwiki:"nrm.wikipedia.org",nsowiki:"nso.wikipedia.org",nvwiki:"nv.wikipedia.org",nywiki:"ny.wikipedia.org",ocwiki:"oc.wikipedia.org",ocwiktionary:"oc.wiktionary.org",ocwikibooks:"oc.wikibooks.org",omwiki:"om.wikipedia.org",omwiktionary:"om.wiktionary.org",orwiki:"or.wikipedia.org",orwiktionary:"or.wiktionary.org",orwikisource:"or.wikisource.org",oswiki:"os.wikipedia.org",pawiki:"pa.wikipedia.org",pawiktionary:"pa.wiktionary.org",pawikibooks:"pa.wikibooks.org",pagwiki:"pag.wikipedia.org",pamwiki:"pam.wikipedia.org",papwiki:"pap.wikipedia.org",pcdwiki:"pcd.wikipedia.org",pdcwiki:"pdc.wikipedia.org",pflwiki:"pfl.wikipedia.org",piwiki:"pi.wikipedia.org",piwiktionary:"pi.wiktionary.org",pihwiki:"pih.wikipedia.org",plwiki:"pl.wikipedia.org",plwiktionary:"pl.wiktionary.org",plwikibooks:"pl.wikibooks.org",plwikinews:"pl.wikinews.org",plwikiquote:"pl.wikiquote.org",plwikisource:"pl.wikisource.org",plwikivoyage:"pl.wikivoyage.org",pmswiki:"pms.wikipedia.org",pnbwiki:"pnb.wikipedia.org",pnbwiktionary:"pnb.wiktionary.org",pntwiki:"pnt.wikipedia.org",pswiki:"ps.wikipedia.org",pswiktionary:"ps.wiktionary.org",pswikibooks:"ps.wikibooks.org",ptwiki:"pt.wikipedia.org",ptwiktionary:"pt.wiktionary.org",ptwikibooks:"pt.wikibooks.org",ptwikinews:"pt.wikinews.org",ptwikiquote:"pt.wikiquote.org",ptwikisource:"pt.wikisource.org",ptwikiversity:"pt.wikiversity.org",ptwikivoyage:"pt.wikivoyage.org",quwiki:"qu.wikipedia.org",quwiktionary:"qu.wiktionary.org",quwikibooks:"qu.wikibooks.org",quwikiquote:"qu.wikiquote.org",rmwiki:"rm.wikipedia.org",rmwiktionary:"rm.wiktionary.org",rmwikibooks:"rm.wikibooks.org",rmywiki:"rmy.wikipedia.org",rnwiki:"rn.wikipedia.org",rnwiktionary:"rn.wiktionary.org",rowiki:"ro.wikipedia.org",rowiktionary:"ro.wiktionary.org",rowikibooks:"ro.wikibooks.org",rowikinews:"ro.wikinews.org",rowikiquote:"ro.wikiquote.org",rowikisource:"ro.wikisource.org",rowikivoyage:"ro.wikivoyage.org",roa_rupwiki:"roa-rup.wikipedia.org",roa_rupwiktionary:"roa-rup.wiktionary.org",roa_tarawiki:"roa-tara.wikipedia.org",ruwiki:"ru.wikipedia.org",ruwiktionary:"ru.wiktionary.org",ruwikibooks:"ru.wikibooks.org",ruwikinews:"ru.wikinews.org",ruwikiquote:"ru.wikiquote.org",ruwikisource:"ru.wikisource.org",ruwikiversity:"ru.wikiversity.org",ruwikivoyage:"ru.wikivoyage.org",ruewiki:"rue.wikipedia.org",rwwiki:"rw.wikipedia.org",rwwiktionary:"rw.wiktionary.org",sawiki:"sa.wikipedia.org",sawiktionary:"sa.wiktionary.org",sawikibooks:"sa.wikibooks.org",sawikiquote:"sa.wikiquote.org",sawikisource:"sa.wikisource.org",sahwiki:"sah.wikipedia.org",sahwikisource:"sah.wikisource.org",scwiki:"sc.wikipedia.org",scwiktionary:"sc.wiktionary.org",scnwiki:"scn.wikipedia.org",scnwiktionary:"scn.wiktionary.org",scowiki:"sco.wikipedia.org",sdwiki:"sd.wikipedia.org",sdwiktionary:"sd.wiktionary.org",sdwikinews:"sd.wikinews.org",sewiki:"se.wikipedia.org",sewikibooks:"se.wikibooks.org",sgwiki:"sg.wikipedia.org",sgwiktionary:"sg.wiktionary.org",shwiki:"sh.wikipedia.org",shwiktionary:"sh.wiktionary.org",siwiki:"si.wikipedia.org",siwiktionary:"si.wiktionary.org",siwikibooks:"si.wikibooks.org",simplewiki:"simple.wikipedia.org",simplewiktionary:"simple.wiktionary.org",simplewikibooks:"simple.wikibooks.org",simplewikiquote:"simple.wikiquote.org",skwiki:"sk.wikipedia.org",skwiktionary:"sk.wiktionary.org",skwikibooks:"sk.wikibooks.org",skwikiquote:"sk.wikiquote.org",skwikisource:"sk.wikisource.org",slwiki:"sl.wikipedia.org",slwiktionary:"sl.wiktionary.org",slwikibooks:"sl.wikibooks.org",slwikiquote:"sl.wikiquote.org",slwikisource:"sl.wikisource.org",slwikiversity:"sl.wikiversity.org",smwiki:"sm.wikipedia.org",smwiktionary:"sm.wiktionary.org",snwiki:"sn.wikipedia.org",snwiktionary:"sn.wiktionary.org",sowiki:"so.wikipedia.org",sowiktionary:"so.wiktionary.org",sqwiki:"sq.wikipedia.org",sqwiktionary:"sq.wiktionary.org",sqwikibooks:"sq.wikibooks.org",sqwikinews:"sq.wikinews.org",sqwikiquote:"sq.wikiquote.org",srwiki:"sr.wikipedia.org",srwiktionary:"sr.wiktionary.org",srwikibooks:"sr.wikibooks.org",srwikinews:"sr.wikinews.org",srwikiquote:"sr.wikiquote.org",srwikisource:"sr.wikisource.org",srnwiki:"srn.wikipedia.org",sswiki:"ss.wikipedia.org",sswiktionary:"ss.wiktionary.org",stwiki:"st.wikipedia.org",stwiktionary:"st.wiktionary.org",stqwiki:"stq.wikipedia.org",suwiki:"su.wikipedia.org",suwiktionary:"su.wiktionary.org",suwikibooks:"su.wikibooks.org",suwikiquote:"su.wikiquote.org",svwiki:"sv.wikipedia.org",svwiktionary:"sv.wiktionary.org",svwikibooks:"sv.wikibooks.org",svwikinews:"sv.wikinews.org",svwikiquote:"sv.wikiquote.org",svwikisource:"sv.wikisource.org",svwikiversity:"sv.wikiversity.org",svwikivoyage:"sv.wikivoyage.org",swwiki:"sw.wikipedia.org",swwiktionary:"sw.wiktionary.org",swwikibooks:"sw.wikibooks.org",szlwiki:"szl.wikipedia.org",tawiki:"ta.wikipedia.org",tawiktionary:"ta.wiktionary.org",tawikibooks:"ta.wikibooks.org",tawikinews:"ta.wikinews.org",tawikiquote:"ta.wikiquote.org",tawikisource:"ta.wikisource.org",tewiki:"te.wikipedia.org",tewiktionary:"te.wiktionary.org",tewikibooks:"te.wikibooks.org",tewikiquote:"te.wikiquote.org",tewikisource:"te.wikisource.org",tetwiki:"tet.wikipedia.org",tgwiki:"tg.wikipedia.org",tgwiktionary:"tg.wiktionary.org",tgwikibooks:"tg.wikibooks.org",thwiki:"th.wikipedia.org",thwiktionary:"th.wiktionary.org",thwikibooks:"th.wikibooks.org",thwikinews:"th.wikinews.org",thwikiquote:"th.wikiquote.org",thwikisource:"th.wikisource.org",tiwiki:"ti.wikipedia.org",tiwiktionary:"ti.wiktionary.org",tkwiki:"tk.wikipedia.org",tkwiktionary:"tk.wiktionary.org",tkwikibooks:"tk.wikibooks.org",tkwikiquote:"tk.wikiquote.org",tlwiki:"tl.wikipedia.org",tlwiktionary:"tl.wiktionary.org",tlwikibooks:"tl.wikibooks.org",tnwiki:"tn.wikipedia.org",tnwiktionary:"tn.wiktionary.org",towiki:"to.wikipedia.org",towiktionary:"to.wiktionary.org",tpiwiki:"tpi.wikipedia.org",tpiwiktionary:"tpi.wiktionary.org",trwiki:"tr.wikipedia.org",trwiktionary:"tr.wiktionary.org",trwikibooks:"tr.wikibooks.org",trwikinews:"tr.wikinews.org",trwikiquote:"tr.wikiquote.org",trwikisource:"tr.wikisource.org",tswiki:"ts.wikipedia.org",tswiktionary:"ts.wiktionary.org",ttwiki:"tt.wikipedia.org",ttwiktionary:"tt.wiktionary.org",ttwikibooks:"tt.wikibooks.org",ttwikiquote:"tt.wikiquote.org",tumwiki:"tum.wikipedia.org",twwiki:"tw.wikipedia.org",twwiktionary:"tw.wiktionary.org",tywiki:"ty.wikipedia.org",tyvwiki:"tyv.wikipedia.org",udmwiki:"udm.wikipedia.org",ugwiki:"ug.wikipedia.org",ugwiktionary:"ug.wiktionary.org",ugwikibooks:"ug.wikibooks.org",ugwikiquote:"ug.wikiquote.org",ukwiki:"uk.wikipedia.org",ukwiktionary:"uk.wiktionary.org",ukwikibooks:"uk.wikibooks.org",ukwikinews:"uk.wikinews.org",ukwikiquote:"uk.wikiquote.org",ukwikisource:"uk.wikisource.org",ukwikivoyage:"uk.wikivoyage.org",urwiki:"ur.wikipedia.org",urwiktionary:"ur.wiktionary.org",urwikibooks:"ur.wikibooks.org",urwikiquote:"ur.wikiquote.org",uzwiki:"uz.wikipedia.org",uzwiktionary:"uz.wiktionary.org",uzwikibooks:"uz.wikibooks.org",uzwikiquote:"uz.wikiquote.org",vewiki:"ve.wikipedia.org",vecwiki:"vec.wikipedia.org",vecwiktionary:"vec.wiktionary.org",vecwikisource:"vec.wikisource.org",vepwiki:"vep.wikipedia.org",viwiki:"vi.wikipedia.org",viwiktionary:"vi.wiktionary.org",viwikibooks:"vi.wikibooks.org",viwikiquote:"vi.wikiquote.org",viwikisource:"vi.wikisource.org",viwikivoyage:"vi.wikivoyage.org",vlswiki:"vls.wikipedia.org",vowiki:"vo.wikipedia.org",vowiktionary:"vo.wiktionary.org",vowikibooks:"vo.wikibooks.org",vowikiquote:"vo.wikiquote.org",wawiki:"wa.wikipedia.org",wawiktionary:"wa.wiktionary.org",wawikibooks:"wa.wikibooks.org",warwiki:"war.wikipedia.org",wowiki:"wo.wikipedia.org",wowiktionary:"wo.wiktionary.org",wowikiquote:"wo.wikiquote.org",wuuwiki:"wuu.wikipedia.org",xalwiki:"xal.wikipedia.org",xhwiki:"xh.wikipedia.org",xhwiktionary:"xh.wiktionary.org",xhwikibooks:"xh.wikibooks.org",xmfwiki:"xmf.wikipedia.org",yiwiki:"yi.wikipedia.org",yiwiktionary:"yi.wiktionary.org",yiwikisource:"yi.wikisource.org",yowiki:"yo.wikipedia.org",yowiktionary:"yo.wiktionary.org",yowikibooks:"yo.wikibooks.org",zawiki:"za.wikipedia.org",zawiktionary:"za.wiktionary.org",zawikibooks:"za.wikibooks.org",zawikiquote:"za.wikiquote.org",zeawiki:"zea.wikipedia.org",zhwiki:"zh.wikipedia.org",zhwiktionary:"zh.wiktionary.org",zhwikibooks:"zh.wikibooks.org",zhwikinews:"zh.wikinews.org",zhwikiquote:"zh.wikiquote.org",zhwikisource:"zh.wikisource.org",zhwikivoyage:"zh.wikivoyage.org",zh_classicalwiki:"zh-classical.wikipedia.org",zh_min_nanwiki:"zh-min-nan.wikipedia.org",zh_min_nanwiktionary:"zh-min-nan.wiktionary.org",zh_min_nanwikibooks:"zh-min-nan.wikibooks.org",zh_min_nanwikiquote:"zh-min-nan.wikiquote.org",zh_min_nanwikisource:"zh-min-nan.wikisource.org",zh_yuewiki:"zh-yue.wikipedia.org",zuwiki:"zu.wikipedia.org",zuwiktionary:"zu.wiktionary.org",zuwikibooks:"zu.wikibooks.org",arwikimedia:"ar.wikimedia.org",bdwikimedia:"bd.wikimedia.org",bewikimedia:"be.wikimedia.org",betawikiversity:"beta.wikiversity.org",brwikimedia:"br.wikimedia.org",cawikimedia:"ca.wikimedia.org",cnwikimedia:"cn.wikimedia.org",cowikimedia:"co.wikimedia.org",commonswiki:"commons.wikimedia.org",dkwikimedia:"dk.wikimedia.org",etwikimedia:"ee.wikimedia.org",fiwikimedia:"fi.wikimedia.org",foundationwiki:"wikimediafoundation.org",iegcomwiki:"iegcom.wikimedia.org",ilwikimedia:"il.wikimedia.org",incubatorwiki:"incubator.wikimedia.org",labswiki:"wikitech.wikimedia.org",loginwiki:"login.wikimedia.org",mediawikiwiki:"mediawiki.org",metawiki:"meta.wikimedia.org",mkwikimedia:"mk.wikimedia.org",mxwikimedia:"mx.wikimedia.org",nlwikimedia:"nl.wikimedia.org",nowikimedia:"no.wikimedia.org",nostalgiawiki:"nostalgia.wikipedia.org",nzwikimedia:"nz.wikimedia.org",outreachwiki:"outreach.wikimedia.org",pa_uswikimedia:"pa-us.wikimedia.org",plwikimedia:"pl.wikimedia.org",rswikimedia:"rs.wikimedia.org",ruwikimedia:"ru.wikimedia.org",sewikimedia:"se.wikimedia.org",sourceswiki:"wikisource.org",specieswiki:"species.wikimedia.org",trwikimedia:"tr.wikimedia.org",uawikimedia:"ua.wikimedia.org",ukwikimedia:"uk.wikimedia.org",wg_enwiki:"wg-en.wikipedia.org",wikidatawiki:"wikidata.org"};t.exports=n},{}],6:[function(e,t,i){"use strict";var n=(e("../shared/pv"),{select2Input:".aqs-select2-selector",dateRangeSelector:".aqs-date-range-selector",defaults:{dateRange:"last-month",excludes:[]},maxDate:moment(moment().utc().subtract(1,"day").startOf("day").toDate()).startOf("day").toDate(),maxMonth:moment().subtract(1,"month").subtract(2,"days").startOf("month").toDate(),pageSize:100,platformSelector:"#platform-select",projectInput:".aqs-project-input",validateParams:["project","platform"],timestampFormat:"YYYYMMDD00"});t.exports=n},{"../shared/pv":3}],7:[function(e,t,i){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(){function e(e,t){for(var i=0;i\n \n "+ ++e+" \n '+i.article+" \n \n "+this.formatNumber(i.views)+" ")}}this.pushParams(),this.stopSpinny(),this.addExcludeListeners()}},{key:"addExclude",value:function(e){var t=this,i=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Array.isArray(e)||(e=[e]),e.forEach(function(e){t.excludes.includes(e)||t.excludes.push(e)}),$(this.config.select2Input).html(""),this.excludes.forEach(function(e){var i=$("").text(e).html();$("
"+i+" ").appendTo(t.config.select2Input)}),i&&$(this.config.select2Input).val(this.excludes).trigger("change"),this.buildReportFalsePositiveForm()}},{key:"addExcludeListeners",value:function(){var e=this;$(".topview-entry--remove").off("click").on("click",function(t){e.excludeAdded||(e.excludeAdded=!0,$(".report-false-positive").show());var i=e.pageNames[$(t.target).data("article-id")];e.addExclude(i),e.pushParams()})}},{key:"buildReportFalsePositiveForm",value:function(){var e=this;$(".false-positive-list").html(""),this.excludes.forEach(function(e,t){e=e.escape(),$(".false-positive-list").append("\n
\n \n \n "+e.escape()+"\n \n \n ")}),$(".submit-false-positive").off("click").on("click",function(){var t=$.map($(".false-positive-list input:checked"),function(t){return e.excludes[parseInt(t.dataset.index,10)]});t.length&&($.ajax({url:"//"+metaRoot+"/usage/topviews/"+e.project+"/false_positives",data:{pages:t},method:"POST"}),e.toastSuccess($.i18n("report-false-positive-submitted",$.i18n("topviews"))),$(".report-false-positive").hide())})}},{key:"clearSearch",value:function(){$(".topviews-search-icon").hasClass("glyphicon-remove")&&($("#topviews_search_field").val(""),$(".topviews-search-icon").removeClass("glyphicon-remove").addClass("glyphicon-search"),this.drawData())}},{key:"exportCSV",value:function(){var e="data:text/csv;charset=utf-8,Page,Views\n";this.pageData.forEach(function(t){var i='"'+t.article.replace(/"/g,'""')+'"';e+=i+","+t.views+"\n"}),this.downloadData(e,"csv")}},{key:"exportJSON",value:function(){var e="data:text/json;charset=utf-8,"+JSON.stringify(this.pageData);this.downloadData(e,"json")}},{key:"getExportFilename",value:function(){var e=this.datepicker.getDate(),t=void 0;return t=this.isMonthly()?moment(e).format("YYYY/MM"):moment(e).format("YYYY/MM/DD"),this.app+"-"+t}},{key:"getPageviewsURL",value:function(e){var t=moment(this.datepicker.getDate()),i=void 0,n=void 0;this.isMonthly()?(i=t.format("YYYY-MM-01"),n=t.endOf("month").format("YYYY-MM-DD")):(i=moment(t).subtract(3,"days").format("YYYY-MM-DD"),n=t.add(3,"days").format("YYYY-MM-DD"));var o=$(this.config.platformSelector).val(),r=$(this.config.projectInput).val();return"/pageviews?start="+i+"&end="+n+"&project="+r+"&platform="+o+"&pages="+e}},{key:"getParams",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t={project:$(this.config.projectInput).val(),platform:$(this.config.platformSelector).val()},i=this.datepicker.getDate();return this.specialRange&&e?t.date=this.specialRange.range:this.isMonthly()?t.date=moment(i).format("YYYY-MM"):t.date=moment(i).format("YYYY-MM-DD"),t}},{key:"getPermaLink",value:function(){var e=this.getParams(!1);return delete e.range,e}},{key:"setSpecialRange",value:function(e){if("last-month"===e)this.setupDateRangeSelector("monthly"),this.datepicker.setDate(this.config.maxMonth),this.specialRange={range:e,value:moment(this.config.maxMonth).format("YYYY/MM")};else{if("yesterday"!==e)return!1;this.setupDateRangeSelector("daily"),this.datepicker.setDate(this.config.maxDate),this.specialRange={range:e,value:moment(this.config.maxDate).format("YYYY-MM-DD")}}return!0}},{key:"setDate",value:function(e){var i=void 0;if(/\d{4}-\d{2}$/.test(e))this.setupDateRangeSelector("monthly"),i=moment(e+"-01").toDate(),i>this.config.maxMonth&&(i=this.config.maxMonth);else{if(!/\d{4}-\d{2}-\d{2}$/.test(e))return this.setSpecialRange(e)||this.setSpecialRange(this.config.defaults.dateRange);this.setupDateRangeSelector("daily"),i=moment(e).toDate(),i>this.config.maxDate&&(i=this.config.maxDate)}return i
"+$.i18n("invalid-params")+"\n "+$.i18n("param-error-1",moment(this.config.minDate).format(s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this)))+"\n "),i=this.config.minDate.toDate()),this.datepicker.setDate(i)}},{key:"popParams",value:function(){var e=this;this.startSpinny();var t=this.validateParams(this.parseQueryString("excludes"));(t.range||t.start||t.end)&&(this.fixLegacyDates(t),this.toastWarn("\n Topviews has been revamped! \n Custom date ranges are\n no longer supported .\n Using defaults instead.\n ")),this.setDate(t.date),$(this.config.projectInput).val(t.project),$(this.config.platformSelector).val(t.platform),this.excludes=(t.excludes||[]).map(function(e){return decodeURIComponent(e.descore())}),this.patchUsage().done(function(t){e.autoExcludes=t,e.excludes=e.excludes.filter(function(t){return e.autoExcludes.indexOf(t)===-1})}).always(function(){e.params=location.search,e.initData().done(function(){e.drawData()}).always(function(){e.setupSelect2(),e.setupListeners()})})}},{key:"fixLegacyDates",value:function(e){if(e.date||!e.start&&!e.end&&!e.range)return e;if(e.range)return e.date="last-month",e;var t=/\d{4}-\d{2}-\d{2}$/;if(!t.test(e.start)&&!t.test(e.end))return e.date="last-month",e;var i=moment(e.start,"YYYY-MM-DD"),n=moment(e.end,"YYYY-MM-DD"),o=Math.abs(n.diff(i,"days"));return o>3?e.date=i.format("YYYY-MM"):e.date=e.start,e}},{key:"pushParams",value:function(){var e=this.underscorePageNames(this.excludes).join("|").replace(/[&%?+]/g,encodeURIComponent);window.history&&window.history.replaceState&&window.history.replaceState({},document.title,"?"+$.param(this.getParams())+"&excludes="+e),$(".permalink").prop("href","?"+$.param(this.getPermaLink())+"&excludes="+e)}},{key:"resetView",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.max=null,this.offset=0,this.pageData=[],this.pageNames=[],this.stopSpinny(!0),$(".chart-container").html(""),$(".message-container").html(""),e&&(this.resetSelect2(),this.excludes=[])}},{key:"searchTopviews",value:function(){var e=this,t=$("#topviews_search_field").val().replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");if(!t)return this.clearSearch();var i=[],n=0;this.pageData.forEach(function(o,r){e.excludes.includes(o.article)||(n++,new RegExp(t,"i").test(o.article)&&(o.rank=n,o.index=r,i.push(o)))}),$(".chart-container").html(""),$(".expand-chart").hide(),$(".topviews-search-icon").removeClass("glyphicon-search").addClass("glyphicon-remove"),i.forEach(function(t){var i=100*(t.views/e.max),n=i18nRtl?"to left":"to right";$(".chart-container").append("")}),this.addExcludeListeners()}},{key:"validateProject",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"validateProject",this).call(this)&&(this.resetView(!0),this.processInput())}},{key:"setupSelect2",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.excludes,i=$(this.config.select2Input);i.select2({data:[],maximumSelectionLength:50,minimumInputLength:0,placeholder:$.i18n("hover-to-exclude")}),t.length&&this.setSelect2Defaults(t),i.on("change",function(t){e.excludes=$(t.target).val()||[],e.max=null,e.clearSearch(),e.drawData()}),i.on("select2:unselect",function(e){$(e.target).val()||$(".report-false-positive").hide()}),setTimeout(function(){$(".select2-search__field").prop("disabled",!0)})}},{key:"setSelect2Defaults",value:function(e){var t=this;return e=e.map(function(e){var i=$("").text(e).html();return $(""+i+" ").appendTo(t.config.select2Input),e}),$(this.config.select2Input).select2("val",e),e}},{key:"setupDateRangeSelector",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"monthly";$("#date-type-select").val(e);var t="monthly"===e?{format:"MM yyyy",viewMode:"months",minViewMode:"months",endDate:this.config.maxMonth}:{format:this.dateFormat,viewMode:"days",endDate:this.config.maxDate};$(this.config.dateRangeSelector).datepicker("destroy"),$(this.config.dateRangeSelector).datepicker(Object.assign({autoclose:!0,startDate:this.config.minDate.toDate()},t))}},{key:"setupListeners",value:function(){var e=this;s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"setupListeners",this).call(this),$(this.config.platformSelector).on("change",this.processInput.bind(this)),$("#date-type-select").on("change",function(t){e.setSpecialRange(e.isMonthly()?"last-month":"yesterday")}),$(".expand-chart").on("click",function(){e.offset+=e.config.pageSize,e.drawData()}),$(this.config.dateRangeSelector).on("change",function(t){e.specialRange&&e.specialRange.value!==t.target.value&&(e.specialRange=null),e.processInput()}),$(".mainspace-only-option").on("click",this.processInput.bind(this)),$("#topviews_search_field").on("keyup",this.searchTopviews.bind(this)),$(".topviews-search-icon").on("click",this.clearSearch.bind(this))}},{key:"startSpinny",value:function(){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"startSpinny",this).call(this),$(".expand-chart").hide(),$(".data-links").addClass("invisible"),$(".search-topviews").addClass("invisible"),$(".data-notice").addClass("invisible")}},{key:"stopSpinny",value:function(e){s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"stopSpinny",this).call(this),e||($(".data-links").removeClass("invisible"),$(".search-topviews").removeClass("invisible"),$(".data-notice").removeClass("invisible"),$(".expand-chart").show())}},{key:"isMonthly",value:function(){return"monthly"===$("#date-type-select").val()}},{key:"getAPIDate",value:function(){var e=this.datepicker.getDate();return this.isMonthly()?moment(e).format("YYYY/MM")+"/all-days":moment(e).format("YYYY/MM/DD")}},{key:"initData",value:function(){var e=this,t=$.Deferred();this.startSpinny();var i=$(this.config.platformSelector).val();return $.ajax({url:"https://wikimedia.org/api/rest_v1/metrics/pageviews/top/"+this.project+"/"+i+"/"+this.getAPIDate(),dataType:"json"}).done(function(i){return e.pageData=i.items[0].articles.map(function(e){return e.article=e.article.descore(),e}),e.pageNames=e.pageData.map(function(e){return e.article}),$(".mainspace-only-option").is(":checked")?void e.filterOutNamespace(e.pageNames).done(function(i){return e.pageNames=i,e.pageData=e.pageData.filter(function(e){return i.includes(e.article)}),t.resolve(e.pageData)}):t.resolve(e.pageData)}).fail(function(i){return e.resetView(),e.writeMessage($.i18n("api-error","Pageviews API")+" - "+i.responseJSON.title),t.reject()}),t}},{key:"filterOutNamespace",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=$.Deferred(),o=function(e,n){return e.filter(function(e){var o=e.split(":")[0];return(0!==i||e!==t.getSiteInfo(t.project).general.mainpage)&&(!e.includes(":")||!n.includes(o))})};return this.fetchSiteInfo(this.project).done(function(){var r=[];0===i&&(r=["Wikipedia","Special","Sp?cial"]);for(var a in t.getSiteInfo(t.project).namespaces)r.push(t.getSiteInfo(t.project).namespaces[a]["*"]);e=o(e,r),t.excludes=o(t.excludes,r),n.resolve(e)}).fail(function(){t.writeMessage(""+$.i18n("api-error","Siteinfo API")),n.resolve(e)}),n}},{key:"dateFormat",get:function(){return s(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"dateFormat",this).toLowerCase()}},{key:"datepicker",get:function(){return $(this.config.dateRangeSelector).data("datepicker")}}]),t}(u);$(document).ready(function(){return document.location.hash&&!document.location.search?document.location.href=document.location.href.replace("#","?"):document.location.hash?document.location.href=document.location.href.replace(/\#.*/,""):void new c})},{"../shared/pv":3,"./config":6}]},{},[7]);
\ No newline at end of file