o.length){for(M=0;Mn&&(n=b),n},zt.numberOfLabelLines=function(t){var e=1;return zt.each(t,(function(t){zt.isArray(t)&&t.length>e&&(e=t.length)})),e},zt.color=S?function(t){return t instanceof CanvasGradient&&(t=Q.global.defaultColor),S(t)}:function(t){return t},zt.getHoverColor=function(t){return t instanceof CanvasPattern||t instanceof CanvasGradient?t:zt.color(t).saturate(.5).darken(.1).rgbString()}};function Jo(){throw new Error("This method is not implemented: either no adapter can be found or an incomplete integration was provided.")}function Ko(t){this.options=t||{}}zt.extend(Ko.prototype,{formats:Jo,parse:Jo,format:Jo,add:Jo,diff:Jo,startOf:Jo,endOf:Jo,_create:function(t){return t}}),Ko.override=function(t){zt.extend(Ko.prototype,t)};var Qo={_date:Ko},Zo={formatters:{values:function(t){return zt.isArray(t)?t:""+t},linear:function(t,e,o){var n=o.length>3?o[2]-o[1]:o[1]-o[0];Math.abs(n)>1&&t!==Math.floor(t)&&(n=t-Math.floor(t));var p=zt.log10(Math.abs(n)),b="";if(0!==t)if(Math.max(Math.abs(o[0]),Math.abs(o[o.length-1]))<1e-4){var M=zt.log10(Math.abs(t)),z=Math.floor(M)-Math.floor(p);z=Math.max(Math.min(z,20),0),b=t.toExponential(z)}else{var r=-1*Math.floor(p);r=Math.max(Math.min(r,20),0),b=t.toFixed(r)}else b="0";return b},logarithmic:function(t,e,o){var n=t/Math.pow(10,Math.floor(zt.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===o.length-1?t.toExponential():""}}},tn=zt.isArray,en=zt.isNullOrUndef,on=zt.valueOrDefault,nn=zt.valueAtIndexOrDefault;function pn(t,e){for(var o=[],n=t.length/e,p=0,b=t.length;pr+c)))return M}function Mn(t,e){zt.each(t,(function(t){var o,n=t.gc,p=n.length/2;if(p>e){for(o=0;o c)return b;return Math.max(c,1)}function un(t){var e,o,n=[];for(e=0,o=t.length;e=O||i<=1||!z.isHorizontal()?z.labelRotation=a:(e=(t=z._getLabelSizes()).widest.width,o=t.highest.height-t.highest.offset,n=Math.min(z.maxWidth,z.chart.width-e),e+6>(p=r.offset?z.maxWidth/i:n/(i-1))&&(p=n/(i-(r.offset?.5:1)),b=z.maxHeight-rn(r.gridLines)-c.padding-cn(r.scaleLabel),M=Math.sqrt(e*e+o*o),s=zt.toDegrees(Math.min(Math.asin(Math.min((t.highest.height+6)/p,1)),Math.asin(Math.min(b/M,1))-Math.asin(o/M))),s=Math.max(a,Math.min(O,s))),z.labelRotation=s)},afterCalculateTickRotation:function(){zt.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){zt.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},o=t.chart,n=t.options,p=n.ticks,b=n.scaleLabel,M=n.gridLines,z=t._isVisible(),r="bottom"===n.position,c=t.isHorizontal();if(c?e.width=t.maxWidth:z&&(e.width=rn(M)+cn(b)),c?z&&(e.height=rn(M)+cn(b)):e.height=t.maxHeight,p.display&&z){var i=On(p),a=t._getLabelSizes(),O=a.first,s=a.last,l=a.widest,d=a.highest,u=.4*i.minor.lineHeight,A=p.padding;if(c){var f=0!==t.labelRotation,q=zt.toRadians(t.labelRotation),h=Math.cos(q),W=Math.sin(q),v=W*l.width+h*(d.height-(f?d.offset:0))+(f?0:u);e.height=Math.min(t.maxHeight,e.height+v+A);var g,m,R=t.getPixelForTick(0)-t.left,y=t.right-t.getPixelForTick(t.getTicks().length-1);f?(g=r?h*O.width+W*O.offset:W*(O.height-O.offset),m=r?W*(s.height-s.offset):h*s.width+W*s.offset):(g=O.width/2,m=s.width/2),t.paddingLeft=Math.max((g-R)*t.width/(t.width-R),0)+3,t.paddingRight=Math.max((m-y)*t.width/(t.width-y),0)+3}else{var B=p.mirror?0:l.width+A+u;e.width=Math.min(t.maxWidth,e.width+B),t.paddingTop=O.height/2,t.paddingBottom=s.height/2}}t.handleMargins(),c?(t.width=t._length=o.width-t.margins.left-t.margins.right,t.height=e.height):(t.width=e.width,t.height=t._length=o.height-t.margins.top-t.margins.bottom)},handleMargins:function(){var t=this;t.margins&&(t.margins.left=Math.max(t.paddingLeft,t.margins.left),t.margins.top=Math.max(t.paddingTop,t.margins.top),t.margins.right=Math.max(t.paddingRight,t.margins.right),t.margins.bottom=Math.max(t.paddingBottom,t.margins.bottom))},afterFit:function(){zt.callback(this.options.afterFit,[this])},isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(en(t))return NaN;if(("number"==typeof t||t instanceof Number)&&!isFinite(t))return NaN;if(t)if(this.isHorizontal()){if(void 0!==t.x)return this.getRightValue(t.x)}else if(void 0!==t.y)return this.getRightValue(t.y);return t},_convertTicksToLabels:function(t){var e,o,n,p=this;for(p.ticks=t.map((function(t){return t.value})),p.beforeTickToLabelConversion(),e=p.convertTicksToLabels(t)||p.ticks,p.afterTickToLabelConversion(),o=0,n=t.length;on-1?null:e.getPixelForDecimal(t*p+(o?p/2:0))},getPixelForDecimal:function(t){var e=this;return e._reversePixels&&(t=1-t),e._startPixel+t*e._length},getDecimalForPixel:function(t){var e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,o=t.max;return t.beginAtZero?0:e<0&&o<0?o:e>0&&o>0?e:0},_autoSkip:function(t){var e,o,n,p,b=this,M=b.options.ticks,z=b._length,r=M.maxTicksLimit||z/b._tickSize()+1,c=M.major.enabled?un(t):[],i=c.length,a=c[0],O=c[i-1];if(i>r)return An(t,c,i/r),sn(t);if(n=dn(c,t,z,r),i>0){for(e=0,o=i-1;e1?(O-a)/(i-1):null,fn(t,n,zt.isNullOrUndef(p)?0:a-p,a),fn(t,n,O,zt.isNullOrUndef(p)?t.length:O+p),sn(t)}return fn(t,n),sn(t)},_tickSize:function(){var t=this,e=t.options.ticks,o=zt.toRadians(t.labelRotation),n=Math.abs(Math.cos(o)),p=Math.abs(Math.sin(o)),b=t._getLabelSizes(),M=e.autoSkipPadding||0,z=b?b.widest.width+M:0,r=b?b.highest.height+M:0;return t.isHorizontal()?r*n>z*p?z/n:r/p:r*p=0&&(M=t),void 0!==b&&(t=o.indexOf(b))>=0&&(z=t),e.minIndex=M,e.maxIndex=z,e.min=o[M],e.max=o[z]},buildTicks:function(){var t=this,e=t._getLabels(),o=t.minIndex,n=t.maxIndex;t.ticks=0===o&&n===e.length-1?e:e.slice(o,n+1)},getLabelForIndex:function(t,e){var o=this,n=o.chart;return n.getDatasetMeta(e).controller._getValueScaleId()===o.id?o.getRightValue(n.data.datasets[e].data[t]):o._getLabels()[t]},_configure:function(){var t=this,e=t.options.offset,o=t.ticks;hn.prototype._configure.call(t),t.isHorizontal()||(t._reversePixels=!t._reversePixels),o&&(t._startValue=t.minIndex-(e?.5:0),t._valueRange=Math.max(o.length-(e?0:1),1))},getPixelForValue:function(t,e,o){var n,p,b,M=this;return Wn(e)||Wn(o)||(t=M.chart.data.datasets[o].data[e]),Wn(t)||(n=M.isHorizontal()?t.x:t.y),(void 0!==n||void 0!==t&&isNaN(e))&&(p=M._getLabels(),t=zt.valueOrDefault(n,t),e=-1!==(b=p.indexOf(t))?b:e,isNaN(e)&&(e=t)),M.getPixelForDecimal((e-M._startValue)/M._valueRange)},getPixelForTick:function(t){var e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t],t+this.minIndex)},getValueForPixel:function(t){var e=this,o=Math.round(e._startValue+e.getDecimalForPixel(t)*e._valueRange);return Math.min(Math.max(o,0),e.ticks.length-1)},getBasePixel:function(){return this.bottom}}),mn=vn;gn._defaults=mn;var Rn=zt.noop,yn=zt.isNullOrUndef;function Bn(t,e){var o,n,p,b,M=[],z=1e-14,r=t.stepSize,c=r||1,i=t.maxTicks-1,a=t.min,O=t.max,s=t.precision,l=e.min,d=e.max,u=zt.niceNum((d-l)/i/c)*c;if(ui&&(u=zt.niceNum(b*u/i/c)*c),r||yn(s)?o=Math.pow(10,zt._decimalPlaces(u)):(o=Math.pow(10,s),u=Math.ceil(u*o)/o),n=Math.floor(l/u)*u,p=Math.ceil(d/u)*u,r&&(!yn(a)&&zt.almostWhole(a/u,u/1e3)&&(n=a),!yn(O)&&zt.almostWhole(O/u,u/1e3)&&(p=O)),b=(p-n)/u,b=zt.almostEquals(b,Math.round(b),u/1e3)?Math.round(b):Math.ceil(b),n=Math.round(n*o)/o,p=Math.round(p*o)/o,M.push(yn(a)?n:a);for(var A=1;A0&&n>0&&(t.min=0)}var p=void 0!==e.min||void 0!==e.suggestedMin,b=void 0!==e.max||void 0!==e.suggestedMax;void 0!==e.min?t.min=e.min:void 0!==e.suggestedMin&&(null===t.min?t.min=e.suggestedMin:t.min=Math.min(t.min,e.suggestedMin)),void 0!==e.max?t.max=e.max:void 0!==e.suggestedMax&&(null===t.max?t.max=e.suggestedMax:t.max=Math.max(t.max,e.suggestedMax)),p!==b&&t.min>=t.max&&(p?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:function(){var t,e=this,o=e.options.ticks,n=o.stepSize,p=o.maxTicksLimit;return n?t=Math.ceil(e.max/n)-Math.floor(e.min/n)+1:(t=e._computeTickLimit(),p=p||11),p&&(t=Math.min(p,t)),t},_computeTickLimit:function(){return Number.POSITIVE_INFINITY},handleDirectionalChanges:Rn,buildTicks:function(){var t=this,e=t.options.ticks,o=t.getTickLimit(),n={maxTicks:o=Math.max(2,o),min:e.min,max:e.max,precision:e.precision,stepSize:zt.valueOrDefault(e.fixedStepSize,e.stepSize)},p=t.ticks=Bn(n,t);t.handleDirectionalChanges(),t.max=zt.max(p),t.min=zt.min(p),e.reverse?(p.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),hn.prototype.convertTicksToLabels.call(t)},_configure:function(){var t,e=this,o=e.getTicks(),n=e.min,p=e.max;hn.prototype._configure.call(e),e.options.offset&&o.length&&(n-=t=(p-n)/Math.max(o.length-1,1)/2,p+=t),e._startValue=n,e._endValue=p,e._valueRange=p-n}}),Xn={position:"left",ticks:{callback:Zo.formatters.linear}},_n=0,Nn=1;function wn(t,e,o){var n=[o.type,void 0===e&&void 0===o.stack?o.index:"",o.stack].join(".");return void 0===t[n]&&(t[n]={pos:[],neg:[]}),t[n]}function xn(t,e,o,n){var p,b,M=t.options,z=wn(e,M.stacked,o),r=z.pos,c=z.neg,i=n.length;for(p=0;pe.length-1?null:this.getPixelForValue(e[t])}}),Sn=Xn;Cn._defaults=Sn;var kn=zt.valueOrDefault,En=zt.math.log10;function Dn(t,e){var o,n,p=[],b=kn(t.min,Math.pow(10,Math.floor(En(e.min)))),M=Math.floor(En(e.max)),z=Math.ceil(e.max/Math.pow(10,M));0===b?(o=Math.floor(En(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,o)),p.push(b),b=n*Math.pow(10,o)):(o=Math.floor(En(b)),n=Math.floor(b/Math.pow(10,o)));var r=o<0?Math.pow(10,Math.abs(o)):1;do{p.push(b),10==++n&&(n=1,r=++o>=0?1:r),b=Math.round(n*Math.pow(10,o)*r)/r}while(o=0?t:e}var In=hn.extend({determineDataLimits:function(){var t,e,o,n,p,b,M=this,z=M.options,r=M.chart,c=r.data.datasets,i=M.isHorizontal();function a(t){return i?t.xAxisID===M.id:t.yAxisID===M.id}M.min=Number.POSITIVE_INFINITY,M.max=Number.NEGATIVE_INFINITY,M.minNotZero=Number.POSITIVE_INFINITY;var O=z.stacked;if(void 0===O)for(t=0;t0){var e=zt.min(t),o=zt.max(t);M.min=Math.min(M.min,e),M.max=Math.max(M.max,o)}}))}else for(t=0;t0?t.minNotZero=t.min:t.max<1?t.minNotZero=Math.pow(10,Math.floor(En(t.max))):t.minNotZero=o)},buildTicks:function(){var t=this,e=t.options.ticks,o=!t.isHorizontal(),n={min:jn(e.min),max:jn(e.max)},p=t.ticks=Dn(n,t);t.max=zt.max(p),t.min=zt.min(p),e.reverse?(o=!o,t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max),o&&p.reverse()},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),hn.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return this._getScaleLabel(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){var e=this.tickValues;return t<0||t>e.length-1?null:this.getPixelForValue(e[t])},_getFirstTickValue:function(t){var e=Math.floor(En(t));return Math.floor(t/Math.pow(10,e))*Math.pow(10,e)},_configure:function(){var t=this,e=t.min,o=0;hn.prototype._configure.call(t),0===e&&(e=t._getFirstTickValue(t.minNotZero),o=kn(t.options.ticks.fontSize,Q.global.defaultFontSize)/t._length),t._startValue=En(e),t._valueOffset=o,t._valueRange=(En(t.max)-En(e))/(1-o)},getPixelForValue:function(t){var e=this,o=0;return(t=+e.getRightValue(t))>e.min&&t>0&&(o=(En(t)-e._startValue)/e._valueRange+e._valueOffset),e.getPixelForDecimal(o)},getValueForPixel:function(t){var e=this,o=e.getDecimalForPixel(t);return 0===o&&0===e.min?0:Math.pow(10,e._startValue+(o-e._valueOffset)*e._valueRange)}}),Fn=Pn;In._defaults=Fn;var Hn=zt.valueOrDefault,Un=zt.valueAtIndexOrDefault,Vn=zt.options.resolve,$n={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0,0,0,0.1)",lineWidth:1,borderDash:[],borderDashOffset:0},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:Zo.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}};function Yn(t){var e=t.ticks;return e.display&&t.display?Hn(e.fontSize,Q.global.defaultFontSize)+2*e.backdropPaddingY:0}function Gn(t,e,o){return zt.isArray(o)?{w:zt.longestText(t,t.font,o),h:o.length*e}:{w:t.measureText(o).width,h:e}}function Jn(t,e,o,n,p){return t===n||t===p?{start:e-o/2,end:e+o/2}:tp?{start:e-o,end:e}:{start:e,end:e+o}}function Kn(t){var e,o,n,p=zt.options._parseFont(t.options.pointLabels),b={l:0,r:t.width,t:0,b:t.height-t.paddingTop},M={};t.ctx.font=p.string,t._pointLabelSizes=[];var z=t.chart.data.labels.length;for(e=0;eb.r&&(b.r=i.end,M.r=r),a.startb.b&&(b.b=a.end,M.b=r)}t.setReductions(t.drawingArea,b,M)}function Qn(t){return 0===t||180===t?"center":t<180?"left":"right"}function Zn(t,e,o,n){var p,b,M=o.y+n/2;if(zt.isArray(e))for(p=0,b=e.length;p270||t<90)&&(o.y-=e.h)}function ep(t){var e=t.ctx,o=t.options,n=o.pointLabels,p=Yn(o),b=t.getDistanceFromCenterForValue(o.ticks.reverse?t.min:t.max),M=zt.options._parseFont(n);e.save(),e.font=M.string,e.textBaseline="middle";for(var z=t.chart.data.labels.length-1;z>=0;z--){var r=0===z?p/2:0,c=t.getPointPosition(z,b+r+5),i=Un(n.fontColor,z,Q.global.defaultFontColor);e.fillStyle=i;var a=t.getIndexAngle(z),O=zt.toDegrees(a);e.textAlign=Qn(O),tp(O,t._pointLabelSizes[z],c),Zn(e,t.pointLabels[z],c,M.lineHeight)}e.restore()}function op(t,e,o,n){var p,b=t.ctx,M=e.circular,z=t.chart.data.labels.length,r=Un(e.color,n-1),c=Un(e.lineWidth,n-1);if((M||z)&&r&&c){if(b.save(),b.strokeStyle=r,b.lineWidth=c,b.setLineDash&&(b.setLineDash(e.borderDash||[]),b.lineDashOffset=e.borderDashOffset||0),b.beginPath(),M)b.arc(t.xCenter,t.yCenter,o,0,2*Math.PI);else{p=t.getPointPosition(0,o),b.moveTo(p.x,p.y);for(var i=1;i0&&n>0?o:0)},_drawGrid:function(){var t,e,o,n=this,p=n.ctx,b=n.options,M=b.gridLines,z=b.angleLines,r=Hn(z.lineWidth,M.lineWidth),c=Hn(z.color,M.color);if(b.pointLabels.display&&ep(n),M.display&&zt.each(n.ticks,(function(t,o){0!==o&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[o]),op(n,M,e,o))})),z.display&&r&&c){for(p.save(),p.lineWidth=r,p.strokeStyle=c,p.setLineDash&&(p.setLineDash(Vn([z.borderDash,M.borderDash,[]])),p.lineDashOffset=Vn([z.borderDashOffset,M.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(b.ticks.reverse?n.min:n.max),o=n.getPointPosition(t,e),p.beginPath(),p.moveTo(n.xCenter,n.yCenter),p.lineTo(o.x,o.y),p.stroke();p.restore()}},_drawLabels:function(){var t=this,e=t.ctx,o=t.options.ticks;if(o.display){var n,p,b=t.getIndexAngle(0),M=zt.options._parseFont(o),z=Hn(o.fontColor,Q.global.defaultFontColor);e.save(),e.font=M.string,e.translate(t.xCenter,t.yCenter),e.rotate(b),e.textAlign="center",e.textBaseline="middle",zt.each(t.ticks,(function(b,r){(0!==r||o.reverse)&&(n=t.getDistanceFromCenterForValue(t.ticksAsNumbers[r]),o.showLabelBackdrop&&(p=e.measureText(b).width,e.fillStyle=o.backdropColor,e.fillRect(-p/2-o.backdropPaddingX,-n-M.size/2-o.backdropPaddingY,p+2*o.backdropPaddingX,M.size+2*o.backdropPaddingY)),e.fillStyle=z,e.fillText(b,0,-n))})),e.restore()}},_drawTitle:zt.noop}),bp=$n;pp._defaults=bp;var Mp=zt._deprecated,zp=zt.options.resolve,rp=zt.valueOrDefault,cp=Number.MIN_SAFE_INTEGER||-9007199254740991,ip=Number.MAX_SAFE_INTEGER||9007199254740991,ap={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Op=Object.keys(ap);function sp(t,e){return t-e}function lp(t){var e,o,n,p={},b=[];for(e=0,o=t.length;ee&&z=0&&M<=z;){if(p=t[(n=M+z>>1)-1]||null,b=t[n],!p)return{lo:null,hi:b};if(b[e]o))return{lo:p,hi:b};z=n-1}}return{lo:b,hi:null}}function qp(t,e,o,n){var p=fp(t,e,o),b=p.lo?p.hi?p.lo:t[t.length-2]:t[0],M=p.lo?p.hi?p.hi:t[t.length-1]:t[1],z=M[e]-b[e],r=z?(o-b[e])/z:0,c=(M[n]-b[n])*r;return b[n]+c}function hp(t,e){var o=t._adapter,n=t.options.time,p=n.parser,b=p||n.format,M=e;return"function"==typeof p&&(M=p(M)),zt.isFinite(M)||(M="string"==typeof b?o.parse(M,b):o.parse(M)),null!==M?+M:(p||"function"!=typeof b||(M=b(e),zt.isFinite(M)||(M=o.parse(M))),M)}function Wp(t,e){if(zt.isNullOrUndef(e))return null;var o=t.options.time,n=hp(t,t.getRightValue(e));return null===n||o.round&&(n=+t._adapter.startOf(n,o.round)),n}function vp(t,e,o,n){var p,b,M,z=Op.length;for(p=Op.indexOf(t);p=Op.indexOf(o);b--)if(M=Op[b],ap[M].common&&t._adapter.diff(p,n,M)>=e-1)return M;return Op[o?Op.indexOf(o):0]}function mp(t){for(var e=Op.indexOf(t)+1,o=Op.length;e1e5*c)throw e+" and "+o+" are too far apart with stepSize of "+c+" "+r;for(p=a;p=0&&(e[b].major=!0);return e}function Lp(t,e,o){var n,p,b=[],M={},z=e.length;for(n=0;n1?lp(l).sort(sp):l.sort(sp),O=Math.min(O,l[0]),s=Math.max(s,l[l.length-1])),O=Wp(z,dp(i))||O,s=Wp(z,up(i))||s,O=O===ip?+c.startOf(Date.now(),a):O,s=s===cp?+c.endOf(Date.now(),a)+1:s,z.min=Math.min(O,s),z.max=Math.max(O+1,s),z._table=[],z._timestamps={data:l,datasets:d,labels:u}},buildTicks:function(){var t,e,o,n=this,p=n.min,b=n.max,M=n.options,z=M.ticks,r=M.time,c=n._timestamps,i=[],a=n.getLabelCapacity(p),O=z.source,s=M.distribution;for(c="data"===O||"auto"===O&&"series"===s?c.data:"labels"===O?c.labels:Rp(n,p,b,a),"ticks"===M.bounds&&c.length&&(p=c[0],b=c[c.length-1]),p=Wp(n,dp(M))||p,b=Wp(n,up(M))||b,t=0,e=c.length;t=p&&o<=b&&i.push(o);return n.min=p,n.max=b,n._unit=r.unit||(z.autoSkip?vp(r.minUnit,n.min,n.max,a):gp(n,i.length,r.minUnit,n.min,n.max)),n._majorUnit=z.major.enabled&&"year"!==n._unit?mp(n._unit):void 0,n._table=Ap(n._timestamps.data,p,b,s),n._offsets=yp(n._table,i,p,b,M),z.reverse&&i.reverse(),Lp(n,i,n._majorUnit)},getLabelForIndex:function(t,e){var o=this,n=o._adapter,p=o.chart.data,b=o.options.time,M=p.labels&&t=0&&t0?z:1}}),Np=Xp;_p._defaults=Np;var wp={category:gn,linear:Cn,logarithmic:In,radialLinear:pp,time:_p},xp={datetime:"MMM D, YYYY, h:mm:ss a",millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"};Qo._date.override("function"==typeof t?{_id:"moment",formats:function(){return xp},parse:function(e,o){return"string"==typeof e&&"string"==typeof o?e=t(e,o):e instanceof t||(e=t(e)),e.isValid()?e.valueOf():null},format:function(e,o){return t(e).format(o)},add:function(e,o,n){return t(e).add(o,n).valueOf()},diff:function(e,o,n){return t(e).diff(t(o),n)},startOf:function(e,o,n){return e=t(e),"isoWeek"===o?e.isoWeekday(n).valueOf():e.startOf(o).valueOf()},endOf:function(e,o){return t(e).endOf(o).valueOf()},_create:function(e){return t(e)}}:{}),Q._set("global",{plugins:{filler:{propagate:!0}}});var Tp={dataset:function(t){var e=t.fill,o=t.chart,n=o.getDatasetMeta(e),p=n&&o.isDatasetVisible(e)&&n.dataset._children||[],b=p.length||0;return b?function(t,e){return e=o)&&n;switch(b){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return b;default:return!1}}function Sp(t){var e,o=t.el._model||{},n=t.el._scale||{},p=t.fill,b=null;if(isFinite(p))return null;if("start"===p?b=void 0===o.scaleBottom?n.bottom:o.scaleBottom:"end"===p?b=void 0===o.scaleTop?n.top:o.scaleTop:void 0!==o.scaleZero?b=o.scaleZero:n.getBasePixel&&(b=n.getBasePixel()),null!=b){if(void 0!==b.x&&void 0!==b.y)return b;if(zt.isFinite(b))return{x:(e=n.isHorizontal())?b:null,y:e?null:b}}return null}function kp(t){var e,o,n,p,b,M=t.el._scale,z=M.options,r=M.chart.data.labels.length,c=t.fill,i=[];if(!r)return null;for(e=z.ticks.reverse?M.max:M.min,o=z.ticks.reverse?M.min:M.max,n=M.getPointPositionForValue(0,e),p=0;p0;--b)zt.canvas.lineTo(t,o[b],o[b-1],!0);else for(M=o[0].cx,z=o[0].cy,r=Math.sqrt(Math.pow(o[0].x-M,2)+Math.pow(o[0].y-z,2)),b=p-1;b>0;--b)t.arc(M,z,r,o[b].angle,o[b-1].angle,!0)}}function Fp(t,e,o,n,p,b){var M,z,r,c,i,a,O,s,l=e.length,d=n.spanGaps,u=[],A=[],f=0,q=0;for(t.beginPath(),M=0,z=l;M=0;--o)(e=r[o].$filler)&&e.visible&&(p=(n=e.el)._view,b=n._children||[],M=e.mapper,z=p.backgroundColor||Q.global.defaultColor,M&&z&&b.length&&(zt.canvas.clipArea(c,t.chartArea),Fp(c,b,M,p,z,n._loop),zt.canvas.unclipArea(c)))}},Up=zt.rtl.getRtlAdapter,Vp=zt.noop,$p=zt.valueOrDefault;function Yp(t,e){return t.usePointStyle&&t.boxWidth>e?e:t.boxWidth}Q._set("global",{legend:{display:!0,position:"top",align:"center",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var o=e.datasetIndex,n=this.chart,p=n.getDatasetMeta(o);p.hidden=null===p.hidden?!n.data.datasets[o].hidden:null,n.update()},onHover:null,onLeave:null,labels:{boxWidth:40,padding:10,generateLabels:function(t){var e=t.data.datasets,o=t.options.legend||{},n=o.labels&&o.labels.usePointStyle;return t._getSortedDatasetMetas().map((function(o){var p=o.controller.getStyle(n?0:void 0);return{text:e[o.index].label,fillStyle:p.backgroundColor,hidden:!t.isDatasetVisible(o.index),lineCap:p.borderCapStyle,lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:p.borderWidth,strokeStyle:p.borderColor,pointStyle:p.pointStyle,rotation:p.rotation,datasetIndex:o.index}}),this)}}},legendCallback:function(t){var e,o,n,p=document.createElement("ul"),b=t.data.datasets;for(p.setAttribute("class",t.id+"-legend"),e=0,o=b.length;er.width)&&(a+=M+o.padding,i[i.length-(e>0?0:1)]=0),z[e]={left:0,top:0,width:n,height:M},i[i.length-1]+=n+o.padding})),r.height+=a}else{var O=o.padding,s=t.columnWidths=[],l=t.columnHeights=[],d=o.padding,u=0,A=0;zt.each(t.legendItems,(function(t,e){var n=Yp(o,M)+M/2+p.measureText(t.text).width;e>0&&A+M+2*O>r.height&&(d+=u+o.padding,s.push(u),l.push(A),u=0,A=0),u=Math.max(u,n),A+=M+O,z[e]={left:0,top:0,width:n,height:M}})),d+=u,s.push(u),l.push(A),r.width+=d}t.width=r.width,t.height=r.height}else t.width=r.width=t.height=r.height=0},afterFit:Vp,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var t=this,e=t.options,o=e.labels,n=Q.global,p=n.defaultColor,b=n.elements.line,M=t.height,z=t.columnHeights,r=t.width,c=t.lineWidths;if(e.display){var i,a=Up(e.rtl,t.left,t.minSize.width),O=t.ctx,s=$p(o.fontColor,n.defaultFontColor),l=zt.options._parseFont(o),d=l.size;O.textAlign=a.textAlign("left"),O.textBaseline="middle",O.lineWidth=.5,O.strokeStyle=s,O.fillStyle=s,O.font=l.string;var u=Yp(o,d),A=t.legendHitBoxes,f=function(t,e,n){if(!(isNaN(u)||u<=0)){O.save();var M=$p(n.lineWidth,b.borderWidth);if(O.fillStyle=$p(n.fillStyle,p),O.lineCap=$p(n.lineCap,b.borderCapStyle),O.lineDashOffset=$p(n.lineDashOffset,b.borderDashOffset),O.lineJoin=$p(n.lineJoin,b.borderJoinStyle),O.lineWidth=M,O.strokeStyle=$p(n.strokeStyle,p),O.setLineDash&&O.setLineDash($p(n.lineDash,b.borderDash)),o&&o.usePointStyle){var z=u*Math.SQRT2/2,r=a.xPlus(t,u/2),c=e+d/2;zt.canvas.drawPoint(O,n.pointStyle,z,r,c,n.rotation)}else O.fillRect(a.leftForLtr(t,u),e,u,d),0!==M&&O.strokeRect(a.leftForLtr(t,u),e,u,d);O.restore()}},q=function(t,e,o,n){var p=d/2,b=a.xPlus(t,u+p),M=e+p;O.fillText(o.text,b,M),o.hidden&&(O.beginPath(),O.lineWidth=2,O.moveTo(b,M),O.lineTo(a.xPlus(b,n),M),O.stroke())},h=function(t,n){switch(e.align){case"start":return o.padding;case"end":return t-n;default:return(t-n+o.padding)/2}},W=t.isHorizontal();i=W?{x:t.left+h(r,c[0]),y:t.top+o.padding,line:0}:{x:t.left+o.padding,y:t.top+h(M,z[0]),line:0},zt.rtl.overrideTextDirection(t.ctx,e.textDirection);var v=d+o.padding;zt.each(t.legendItems,(function(e,n){var p=O.measureText(e.text).width,b=u+d/2+p,s=i.x,l=i.y;a.setWidth(t.minSize.width),W?n>0&&s+b+o.padding>t.left+t.minSize.width&&(l=i.y+=v,i.line++,s=i.x=t.left+h(r,c[i.line])):n>0&&l+v>t.top+t.minSize.height&&(s=i.x=s+t.columnWidths[i.line]+o.padding,i.line++,l=i.y=t.top+h(M,z[i.line]));var g=a.x(s);f(g,l,e),A[n].left=a.leftForLtr(g,A[n].width),A[n].top=l,q(g,l,e,p),W?i.x+=b+o.padding:i.y+=v})),zt.rtl.restoreTextDirection(t.ctx,e.textDirection)}},_getLegendItemAt:function(t,e){var o,n,p,b=this;if(t>=b.left&&t<=b.right&&e>=b.top&&e<=b.bottom)for(p=b.legendHitBoxes,o=0;o=(n=p[o]).left&&t<=n.left+n.width&&e>=n.top&&e<=n.top+n.height)return b.legendItems[o];return null},handleEvent:function(t){var e,o=this,n=o.options,p="mouseup"===t.type?"click":t.type;if("mousemove"===p){if(!n.onHover&&!n.onLeave)return}else{if("click"!==p)return;if(!n.onClick)return}e=o._getLegendItemAt(t.x,t.y),"click"===p?e&&n.onClick&&n.onClick.call(o,t.native,e):(n.onLeave&&e!==o._hoveredItem&&(o._hoveredItem&&n.onLeave.call(o,t.native,o._hoveredItem),o._hoveredItem=e),n.onHover&&e&&n.onHover.call(o,t.native,e))}});function Jp(t,e){var o=new Gp({ctx:t.ctx,options:e,chart:t});Ue.configure(t,o,e),Ue.addBox(t,o),t.legend=o}var Kp={id:"legend",_element:Gp,beforeInit:function(t){var e=t.options.legend;e&&Jp(t,e)},beforeUpdate:function(t){var e=t.options.legend,o=t.legend;e?(zt.mergeIf(e,Q.global.legend),o?(Ue.configure(t,o,e),o.options=e):Jp(t,e)):o&&(Ue.removeBox(t,o),delete t.legend)},afterEvent:function(t,e){var o=t.legend;o&&o.handleEvent(e)}},Qp=zt.noop;Q._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,padding:10,position:"top",text:"",weight:2e3}});var Zp=dt.extend({initialize:function(t){var e=this;zt.extend(e,t),e.legendHitBoxes=[]},beforeUpdate:Qp,update:function(t,e,o){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=o,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:Qp,beforeSetDimensions:Qp,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:Qp,beforeBuildLabels:Qp,buildLabels:Qp,afterBuildLabels:Qp,beforeFit:Qp,fit:function(){var t,e=this,o=e.options,n=e.minSize={},p=e.isHorizontal();o.display?(t=(zt.isArray(o.text)?o.text.length:1)*zt.options._parseFont(o).lineHeight+2*o.padding,e.width=n.width=p?e.maxWidth:t,e.height=n.height=p?t:e.maxHeight):e.width=n.width=e.height=n.height=0},afterFit:Qp,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this,e=t.ctx,o=t.options;if(o.display){var n,p,b,M=zt.options._parseFont(o),z=M.lineHeight,r=z/2+o.padding,c=0,i=t.top,a=t.left,O=t.bottom,s=t.right;e.fillStyle=zt.valueOrDefault(o.fontColor,Q.global.defaultFontColor),e.font=M.string,t.isHorizontal()?(p=a+(s-a)/2,b=i+r,n=s-a):(p="left"===o.position?a+r:s-r,b=i+(O-i)/2,n=O-i,c=Math.PI*("left"===o.position?-.5:.5)),e.save(),e.translate(p,b),e.rotate(c),e.textAlign="center",e.textBaseline="middle";var l=o.text;if(zt.isArray(l))for(var d=0,u=0;u0&&e-1 in t)}m.fn=m.prototype={jquery:g,constructor:m,length:0,toArray:function(){return z.call(this)},get:function(t){return null==t?z.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=m.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return m.each(this,t)},map:function(t){return this.pushStack(m.map(this,(function(e,o){return t.call(e,o,e)})))},slice:function(){return this.pushStack(z.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(m.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(m.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,o=+t+(t<0?e:0);return this.pushStack(o>=0&&o+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),U=new RegExp(k+"|>"),V=new RegExp(P),$=new RegExp("^"+E+"$"),Y={ID:new RegExp("^#("+E+")"),CLASS:new RegExp("^\\.("+E+")"),TAG:new RegExp("^("+E+"|[*])"),ATTR:new RegExp("^"+D),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ot=function(t,e){var o="0x"+t.slice(1)-65536;return e||(o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,pt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},bt=function(){O()},Mt=ht((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{x.apply(_=T.call(W.childNodes),W.childNodes),_[W.childNodes.length].nodeType}catch(t){x={apply:_.length?function(t,e){w.apply(t,T.call(e))}:function(t,e){for(var o=t.length,n=0;t[o++]=e[n++];);t.length=o-1}}}function zt(t,e,n,p){var b,z,c,i,a,l,A,f=e&&e.ownerDocument,W=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==W&&9!==W&&11!==W)return n;if(!p&&(O(e),e=e||s,d)){if(11!==W&&(a=Z.exec(t)))if(b=a[1]){if(9===W){if(!(c=e.getElementById(b)))return n;if(c.id===b)return n.push(c),n}else if(f&&(c=f.getElementById(b))&&q(e,c)&&c.id===b)return n.push(c),n}else{if(a[2])return x.apply(n,e.getElementsByTagName(t)),n;if((b=a[3])&&o.getElementsByClassName&&e.getElementsByClassName)return x.apply(n,e.getElementsByClassName(b)),n}if(o.qsa&&!B[t+" "]&&(!u||!u.test(t))&&(1!==W||"object"!==e.nodeName.toLowerCase())){if(A=t,f=e,1===W&&(U.test(t)||H.test(t))){for((f=tt.test(t)&&At(e.parentNode)||e)===e&&o.scope||((i=e.getAttribute("id"))?i=i.replace(nt,pt):e.setAttribute("id",i=h)),z=(l=M(t)).length;z--;)l[z]=(i?"#"+i:":scope")+" "+qt(l[z]);A=l.join(",")}try{return x.apply(n,f.querySelectorAll(A)),n}catch(e){B(t,!0)}finally{i===h&&e.removeAttribute("id")}}}return r(t.replace(I,"$1"),e,n,p)}function rt(){var t=[];return function e(o,p){return t.push(o+" ")>n.cacheLength&&delete e[t.shift()],e[o+" "]=p}}function ct(t){return t[h]=!0,t}function it(t){var e=s.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var o=t.split("|"),p=o.length;p--;)n.attrHandle[o[p]]=e}function Ot(t,e){var o=e&&t,n=o&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(o)for(;o=o.nextSibling;)if(o===e)return-1;return t?1:-1}function st(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function lt(t){return function(e){var o=e.nodeName.toLowerCase();return("input"===o||"button"===o)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&Mt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ut(t){return ct((function(e){return e=+e,ct((function(o,n){for(var p,b=t([],o.length,e),M=b.length;M--;)o[p=b[M]]&&(o[p]=!(n[p]=o[p]))}))}))}function At(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in o=zt.support={},b=zt.isXML=function(t){var e=t&&t.namespaceURI,o=t&&(t.ownerDocument||t).documentElement;return!G.test(e||o&&o.nodeName||"HTML")},O=zt.setDocument=function(t){var e,p,M=t?t.ownerDocument||t:W;return M!=s&&9===M.nodeType&&M.documentElement?(l=(s=M).documentElement,d=!b(s),W!=s&&(p=s.defaultView)&&p.top!==p&&(p.addEventListener?p.addEventListener("unload",bt,!1):p.attachEvent&&p.attachEvent("onunload",bt)),o.scope=it((function(t){return l.appendChild(t).appendChild(s.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),o.attributes=it((function(t){return t.className="i",!t.getAttribute("className")})),o.getElementsByTagName=it((function(t){return t.appendChild(s.createComment("")),!t.getElementsByTagName("*").length})),o.getElementsByClassName=Q.test(s.getElementsByClassName),o.getById=it((function(t){return l.appendChild(t).id=h,!s.getElementsByName||!s.getElementsByName(h).length})),o.getById?(n.filter.ID=function(t){var e=t.replace(et,ot);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var o=e.getElementById(t);return o?[o]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,ot);return function(t){var o=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return o&&o.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&d){var o,n,p,b=e.getElementById(t);if(b){if((o=b.getAttributeNode("id"))&&o.value===t)return[b];for(p=e.getElementsByName(t),n=0;b=p[n++];)if((o=b.getAttributeNode("id"))&&o.value===t)return[b]}return[]}}),n.find.TAG=o.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):o.qsa?e.querySelectorAll(t):void 0}:function(t,e){var o,n=[],p=0,b=e.getElementsByTagName(t);if("*"===t){for(;o=b[p++];)1===o.nodeType&&n.push(o);return n}return b},n.find.CLASS=o.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&d)return e.getElementsByClassName(t)},A=[],u=[],(o.qsa=Q.test(s.querySelectorAll))&&(it((function(t){var e;l.appendChild(t).innerHTML=" ",t.querySelectorAll("[msallowcapture^='']").length&&u.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll("[selected]").length||u.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+S+")"),t.querySelectorAll("[id~="+h+"-]").length||u.push("~="),(e=s.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||u.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),t.querySelectorAll(":checked").length||u.push(":checked"),t.querySelectorAll("a#"+h+"+*").length||u.push(".#.+[+~]"),t.querySelectorAll("\\\f"),u.push("[\\r\\n\\f]")})),it((function(t){t.innerHTML=" ";var e=s.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&u.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&u.push(":enabled",":disabled"),l.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&u.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),u.push(",.*:")}))),(o.matchesSelector=Q.test(f=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&it((function(t){o.disconnectedMatch=f.call(t,"*"),f.call(t,"[s!='']:x"),A.push("!=",P)})),u=u.length&&new RegExp(u.join("|")),A=A.length&&new RegExp(A.join("|")),e=Q.test(l.compareDocumentPosition),q=e||Q.test(l.contains)?function(t,e){var o=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(o.contains?o.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},L=e?function(t,e){if(t===e)return a=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!o.sortDetached&&e.compareDocumentPosition(t)===n?t==s||t.ownerDocument==W&&q(W,t)?-1:e==s||e.ownerDocument==W&&q(W,e)?1:i?C(i,t)-C(i,e):0:4&n?-1:1)}:function(t,e){if(t===e)return a=!0,0;var o,n=0,p=t.parentNode,b=e.parentNode,M=[t],z=[e];if(!p||!b)return t==s?-1:e==s?1:p?-1:b?1:i?C(i,t)-C(i,e):0;if(p===b)return Ot(t,e);for(o=t;o=o.parentNode;)M.unshift(o);for(o=e;o=o.parentNode;)z.unshift(o);for(;M[n]===z[n];)n++;return n?Ot(M[n],z[n]):M[n]==W?-1:z[n]==W?1:0},s):s},zt.matches=function(t,e){return zt(t,null,null,e)},zt.matchesSelector=function(t,e){if(O(t),o.matchesSelector&&d&&!B[e+" "]&&(!A||!A.test(e))&&(!u||!u.test(e)))try{var n=f.call(t,e);if(n||o.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){B(e,!0)}return zt(e,s,null,[t]).length>0},zt.contains=function(t,e){return(t.ownerDocument||t)!=s&&O(t),q(t,e)},zt.attr=function(t,e){(t.ownerDocument||t)!=s&&O(t);var p=n.attrHandle[e.toLowerCase()],b=p&&X.call(n.attrHandle,e.toLowerCase())?p(t,e,!d):void 0;return void 0!==b?b:o.attributes||!d?t.getAttribute(e):(b=t.getAttributeNode(e))&&b.specified?b.value:null},zt.escape=function(t){return(t+"").replace(nt,pt)},zt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},zt.uniqueSort=function(t){var e,n=[],p=0,b=0;if(a=!o.detectDuplicates,i=!o.sortStable&&t.slice(0),t.sort(L),a){for(;e=t[b++];)e===t[b]&&(p=n.push(b));for(;p--;)t.splice(n[p],1)}return i=null,t},p=zt.getText=function(t){var e,o="",n=0,b=t.nodeType;if(b){if(1===b||9===b||11===b){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)o+=p(t)}else if(3===b||4===b)return t.nodeValue}else for(;e=t[n++];)o+=p(e);return o},n=zt.selectors={cacheLength:50,createPseudo:ct,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,ot),t[3]=(t[3]||t[4]||t[5]||"").replace(et,ot),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||zt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&zt.error(t[0]),t},PSEUDO:function(t){var e,o=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":o&&V.test(o)&&(e=M(o,!0))&&(e=o.indexOf(")",o.length-e)-o.length)&&(t[0]=t[0].slice(0,e),t[2]=o.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,ot).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=m[t+" "];return e||(e=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+t+"("+k+"|$)"))&&m(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,o){return function(n){var p=zt.attr(n,t);return null==p?"!="===e:!e||(p+="","="===e?p===o:"!="===e?p!==o:"^="===e?o&&0===p.indexOf(o):"*="===e?o&&p.indexOf(o)>-1:"$="===e?o&&p.slice(-o.length)===o:"~="===e?(" "+p.replace(j," ")+" ").indexOf(o)>-1:"|="===e&&(p===o||p.slice(0,o.length+1)===o+"-"))}},CHILD:function(t,e,o,n,p){var b="nth"!==t.slice(0,3),M="last"!==t.slice(-4),z="of-type"===e;return 1===n&&0===p?function(t){return!!t.parentNode}:function(e,o,r){var c,i,a,O,s,l,d=b!==M?"nextSibling":"previousSibling",u=e.parentNode,A=z&&e.nodeName.toLowerCase(),f=!r&&!z,q=!1;if(u){if(b){for(;d;){for(O=e;O=O[d];)if(z?O.nodeName.toLowerCase()===A:1===O.nodeType)return!1;l=d="only"===t&&!l&&"nextSibling"}return!0}if(l=[M?u.firstChild:u.lastChild],M&&f){for(q=(s=(c=(i=(a=(O=u)[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]||[])[0]===v&&c[1])&&c[2],O=s&&u.childNodes[s];O=++s&&O&&O[d]||(q=s=0)||l.pop();)if(1===O.nodeType&&++q&&O===e){i[t]=[v,s,q];break}}else if(f&&(q=s=(c=(i=(a=(O=e)[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]||[])[0]===v&&c[1]),!1===q)for(;(O=++s&&O&&O[d]||(q=s=0)||l.pop())&&((z?O.nodeName.toLowerCase()!==A:1!==O.nodeType)||!++q||(f&&((i=(a=O[h]||(O[h]={}))[O.uniqueID]||(a[O.uniqueID]={}))[t]=[v,q]),O!==e)););return(q-=p)===n||q%n==0&&q/n>=0}}},PSEUDO:function(t,e){var o,p=n.pseudos[t]||n.setFilters[t.toLowerCase()]||zt.error("unsupported pseudo: "+t);return p[h]?p(e):p.length>1?(o=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,o){for(var n,b=p(t,e),M=b.length;M--;)t[n=C(t,b[M])]=!(o[n]=b[M])})):function(t){return p(t,0,o)}):p}},pseudos:{not:ct((function(t){var e=[],o=[],n=z(t.replace(I,"$1"));return n[h]?ct((function(t,e,o,p){for(var b,M=n(t,null,p,[]),z=t.length;z--;)(b=M[z])&&(t[z]=!(e[z]=b))})):function(t,p,b){return e[0]=t,n(e,null,b,o),e[0]=null,!o.pop()}})),has:ct((function(t){return function(e){return zt(t,e).length>0}})),contains:ct((function(t){return t=t.replace(et,ot),function(e){return(e.textContent||p(e)).indexOf(t)>-1}})),lang:ct((function(t){return $.test(t||"")||zt.error("unsupported lang: "+t),t=t.replace(et,ot).toLowerCase(),function(e){var o;do{if(o=d?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(o=o.toLowerCase())===t||0===o.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var o=t.location&&t.location.hash;return o&&o.slice(1)===e.id},root:function(t){return t===l},focus:function(t){return t===s.activeElement&&(!s.hasFocus||s.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return J.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ut((function(){return[0]})),last:ut((function(t,e){return[e-1]})),eq:ut((function(t,e,o){return[o<0?o+e:o]})),even:ut((function(t,e){for(var o=0;oe?e:o;--n>=0;)t.push(n);return t})),gt:ut((function(t,e,o){for(var n=o<0?o+e:o;++n1?function(e,o,n){for(var p=t.length;p--;)if(!t[p](e,o,n))return!1;return!0}:t[0]}function vt(t,e,o,n,p){for(var b,M=[],z=0,r=t.length,c=null!=e;z-1&&(b[c]=!(M[c]=a))}}else A=vt(A===M?A.splice(l,A.length):A),p?p(null,M,A,r):x.apply(M,A)}))}function mt(t){for(var e,o,p,b=t.length,M=n.relative[t[0].type],z=M||n.relative[" "],r=M?1:0,i=ht((function(t){return t===e}),z,!0),a=ht((function(t){return C(e,t)>-1}),z,!0),O=[function(t,o,n){var p=!M&&(n||o!==c)||((e=o).nodeType?i(t,o,n):a(t,o,n));return e=null,p}];r1&&Wt(O),r>1&&qt(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(I,"$1"),o,r 0,p=t.length>0,b=function(b,M,z,r,i){var a,l,u,A=0,f="0",q=b&&[],h=[],W=c,g=b||p&&n.find.TAG("*",i),m=v+=null==W?1:Math.random()||.1,R=g.length;for(i&&(c=M==s||M||i);f!==R&&null!=(a=g[f]);f++){if(p&&a){for(l=0,M||a.ownerDocument==s||(O(a),z=!d);u=t[l++];)if(u(a,M||s,z)){r.push(a);break}i&&(v=m)}o&&((a=!u&&a)&&A--,b&&q.push(a))}if(A+=f,o&&f!==A){for(l=0;u=e[l++];)u(q,h,M,z);if(b){if(A>0)for(;f--;)q[f]||h[f]||(h[f]=N.call(r));h=vt(h)}x.apply(r,h),i&&!b&&h.length>0&&A+e.length>1&&zt.uniqueSort(r)}return i&&(v=m,c=W),q};return o?ct(b):b}(b,p)),z.selector=t}return z},r=zt.select=function(t,e,o,p){var b,r,c,i,a,O="function"==typeof t&&t,s=!p&&M(t=O.selector||t);if(o=o||[],1===s.length){if((r=s[0]=s[0].slice(0)).length>2&&"ID"===(c=r[0]).type&&9===e.nodeType&&d&&n.relative[r[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,ot),e)||[])[0]))return o;O&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(b=Y.needsContext.test(t)?0:r.length;b--&&(c=r[b],!n.relative[i=c.type]);)if((a=n.find[i])&&(p=a(c.matches[0].replace(et,ot),tt.test(r[0].type)&&At(e.parentNode)||e))){if(r.splice(b,1),!(t=p.length&&qt(r)))return x.apply(o,p),o;break}}return(O||z(t,s))(p,e,!d,o,!e||tt.test(t)&&At(e.parentNode)||e),o},o.sortStable=h.split("").sort(L).join("")===h,o.detectDuplicates=!!a,O(),o.sortDetached=it((function(t){return 1&t.compareDocumentPosition(s.createElement("fieldset"))})),it((function(t){return t.innerHTML=" ","#"===t.firstChild.getAttribute("href")}))||at("type|href|height|width",(function(t,e,o){if(!o)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),o.attributes&&it((function(t){return t.innerHTML=" ",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||at("value",(function(t,e,o){if(!o&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),it((function(t){return null==t.getAttribute("disabled")}))||at(S,(function(t,e,o){var n;if(!o)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),zt}(n);m.find=y,m.expr=y.selectors,m.expr[":"]=m.expr.pseudos,m.uniqueSort=m.unique=y.uniqueSort,m.text=y.getText,m.isXMLDoc=y.isXML,m.contains=y.contains,m.escapeSelector=y.escape;var B=function(t,e,o){for(var n=[],p=void 0!==o;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(p&&m(t).is(o))break;n.push(t)}return n},L=function(t,e){for(var o=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&o.push(t);return o},X=m.expr.match.needsContext;function _(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var N=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function w(t,e,o){return A(e)?m.grep(t,(function(t,n){return!!e.call(t,n,t)!==o})):e.nodeType?m.grep(t,(function(t){return t===e!==o})):"string"!=typeof e?m.grep(t,(function(t){return i.call(e,t)>-1!==o})):m.filter(e,t,o)}m.filter=function(t,e,o){var n=e[0];return o&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?m.find.matchesSelector(n,t)?[n]:[]:m.find.matches(t,m.grep(e,(function(t){return 1===t.nodeType})))},m.fn.extend({find:function(t){var e,o,n=this.length,p=this;if("string"!=typeof t)return this.pushStack(m(t).filter((function(){for(e=0;e1?m.uniqueSort(o):o},filter:function(t){return this.pushStack(w(this,t||[],!1))},not:function(t){return this.pushStack(w(this,t||[],!0))},is:function(t){return!!w(this,"string"==typeof t&&X.test(t)?m(t):t||[],!1).length}});var x,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(m.fn.init=function(t,e,o){var n,p;if(!t)return this;if(o=o||x,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:T.exec(t))||!n[1]&&e)return!e||e.jquery?(e||o).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof m?e[0]:e,m.merge(this,m.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:q,!0)),N.test(n[1])&&m.isPlainObject(e))for(n in e)A(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(p=q.getElementById(n[2]))&&(this[0]=p,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):A(t)?void 0!==o.ready?o.ready(t):t(m):m.makeArray(t,this)}).prototype=m.fn,x=m(q);var C=/^(?:parents|prev(?:Until|All))/,S={children:!0,contents:!0,next:!0,prev:!0};function k(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}m.fn.extend({has:function(t){var e=m(t,this),o=e.length;return this.filter((function(){for(var t=0;t-1:1===o.nodeType&&m.find.matchesSelector(o,t))){b.push(o);break}return this.pushStack(b.length>1?m.uniqueSort(b):b)},index:function(t){return t?"string"==typeof t?i.call(m(t),this[0]):i.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(m.uniqueSort(m.merge(this.get(),m(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),m.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return B(t,"parentNode")},parentsUntil:function(t,e,o){return B(t,"parentNode",o)},next:function(t){return k(t,"nextSibling")},prev:function(t){return k(t,"previousSibling")},nextAll:function(t){return B(t,"nextSibling")},prevAll:function(t){return B(t,"previousSibling")},nextUntil:function(t,e,o){return B(t,"nextSibling",o)},prevUntil:function(t,e,o){return B(t,"previousSibling",o)},siblings:function(t){return L((t.parentNode||{}).firstChild,t)},children:function(t){return L(t.firstChild)},contents:function(t){return null!=t.contentDocument&&M(t.contentDocument)?t.contentDocument:(_(t,"template")&&(t=t.content||t),m.merge([],t.childNodes))}},(function(t,e){m.fn[t]=function(o,n){var p=m.map(this,e,o);return"Until"!==t.slice(-5)&&(n=o),n&&"string"==typeof n&&(p=m.filter(n,p)),this.length>1&&(S[t]||m.uniqueSort(p),C.test(t)&&p.reverse()),this.pushStack(p)}}));var E=/[^\x20\t\r\n\f]+/g;function D(t){return t}function P(t){throw t}function j(t,e,o,n){var p;try{t&&A(p=t.promise)?p.call(t).done(e).fail(o):t&&A(p=t.then)?p.call(t,e,o):e.apply(void 0,[t].slice(n))}catch(t){o.apply(void 0,[t])}}m.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return m.each(t.match(E)||[],(function(t,o){e[o]=!0})),e}(t):m.extend({},t);var e,o,n,p,b=[],M=[],z=-1,r=function(){for(p=p||t.once,n=e=!0;M.length;z=-1)for(o=M.shift();++z-1;)b.splice(o,1),o<=z&&z--})),this},has:function(t){return t?m.inArray(t,b)>-1:b.length>0},empty:function(){return b&&(b=[]),this},disable:function(){return p=M=[],b=o="",this},disabled:function(){return!b},lock:function(){return p=M=[],o||e||(b=o=""),this},locked:function(){return!!p},fireWith:function(t,o){return p||(o=[t,(o=o||[]).slice?o.slice():o],M.push(o),e||r()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},m.extend({Deferred:function(t){var e=[["notify","progress",m.Callbacks("memory"),m.Callbacks("memory"),2],["resolve","done",m.Callbacks("once memory"),m.Callbacks("once memory"),0,"resolved"],["reject","fail",m.Callbacks("once memory"),m.Callbacks("once memory"),1,"rejected"]],o="pending",p={state:function(){return o},always:function(){return b.done(arguments).fail(arguments),this},catch:function(t){return p.then(null,t)},pipe:function(){var t=arguments;return m.Deferred((function(o){m.each(e,(function(e,n){var p=A(t[n[4]])&&t[n[4]];b[n[1]]((function(){var t=p&&p.apply(this,arguments);t&&A(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[n[0]+"With"](this,p?[t]:arguments)}))})),t=null})).promise()},then:function(t,o,p){var b=0;function M(t,e,o,p){return function(){var z=this,r=arguments,c=function(){var n,c;if(!(t=b&&(o!==P&&(z=void 0,r=[n]),e.rejectWith(z,r))}};t?i():(m.Deferred.getStackHook&&(i.stackTrace=m.Deferred.getStackHook()),n.setTimeout(i))}}return m.Deferred((function(n){e[0][3].add(M(0,n,A(p)?p:D,n.notifyWith)),e[1][3].add(M(0,n,A(t)?t:D)),e[2][3].add(M(0,n,A(o)?o:P))})).promise()},promise:function(t){return null!=t?m.extend(t,p):p}},b={};return m.each(e,(function(t,n){var M=n[2],z=n[5];p[n[1]]=M.add,z&&M.add((function(){o=z}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),M.add(n[3].fire),b[n[0]]=function(){return b[n[0]+"With"](this===b?void 0:this,arguments),this},b[n[0]+"With"]=M.fireWith})),p.promise(b),t&&t.call(b,b),b},when:function(t){var e=arguments.length,o=e,n=Array(o),p=z.call(arguments),b=m.Deferred(),M=function(t){return function(o){n[t]=this,p[t]=arguments.length>1?z.call(arguments):o,--e||b.resolveWith(n,p)}};if(e<=1&&(j(t,b.done(M(o)).resolve,b.reject,!e),"pending"===b.state()||A(p[o]&&p[o].then)))return b.then();for(;o--;)j(p[o],M(o),b.reject);return b.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;m.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&I.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},m.readyException=function(t){n.setTimeout((function(){throw t}))};var F=m.Deferred();function H(){q.removeEventListener("DOMContentLoaded",H),n.removeEventListener("load",H),m.ready()}m.fn.ready=function(t){return F.then(t).catch((function(t){m.readyException(t)})),this},m.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--m.readyWait:m.isReady)||(m.isReady=!0,!0!==t&&--m.readyWait>0||F.resolveWith(q,[m]))}}),m.ready.then=F.then,"complete"===q.readyState||"loading"!==q.readyState&&!q.documentElement.doScroll?n.setTimeout(m.ready):(q.addEventListener("DOMContentLoaded",H),n.addEventListener("load",H));var U=function(t,e,o,n,p,b,M){var z=0,r=t.length,c=null==o;if("object"===v(o))for(z in p=!0,o)U(t,e,z,o[z],!0,b,M);else if(void 0!==n&&(p=!0,A(n)||(M=!0),c&&(M?(e.call(t,n),e=null):(c=e,e=function(t,e,o){return c.call(m(t),o)})),e))for(;z1,null,!0)},removeData:function(t){return this.each((function(){Z.remove(this,t)}))}}),m.extend({queue:function(t,e,o){var n;if(t)return e=(e||"fx")+"queue",n=Q.get(t,e),o&&(!n||Array.isArray(o)?n=Q.access(t,e,m.makeArray(o)):n.push(o)),n||[]},dequeue:function(t,e){e=e||"fx";var o=m.queue(t,e),n=o.length,p=o.shift(),b=m._queueHooks(t,e);"inprogress"===p&&(p=o.shift(),n--),p&&("fx"===e&&o.unshift("inprogress"),delete b.stop,p.call(t,(function(){m.dequeue(t,e)}),b)),!n&&b&&b.empty.fire()},_queueHooks:function(t,e){var o=e+"queueHooks";return Q.get(t,o)||Q.access(t,o,{empty:m.Callbacks("once memory").add((function(){Q.remove(t,[e+"queue",o])}))})}}),m.fn.extend({queue:function(t,e){var o=2;return"string"!=typeof t&&(e=t,t="fx",o--),arguments.length\x20\t\r\n\f]*)/i,ft=/^$|^module$|\/(?:java|ecma)script/i;lt=q.createDocumentFragment().appendChild(q.createElement("div")),(dt=q.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),lt.appendChild(dt),u.checkClone=lt.cloneNode(!0).cloneNode(!0).lastChild.checked,lt.innerHTML="",u.noCloneChecked=!!lt.cloneNode(!0).lastChild.defaultValue,lt.innerHTML=" ",u.option=!!lt.lastChild;var qt={thead:[1,""],col:[2,""],tr:[2,""],td:[3,""],_default:[0,"",""]};function ht(t,e){var o;return o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&_(t,e)?m.merge([t],o):o}function Wt(t,e){for(var o=0,n=t.length;o",""]);var vt=/<|?\w+;/;function gt(t,e,o,n,p){for(var b,M,z,r,c,i,a=e.createDocumentFragment(),O=[],s=0,l=t.length;s-1)p&&p.push(b);else if(c=zt(b),M=ht(a.appendChild(b),"script"),c&&Wt(M),o)for(i=0;b=M[i++];)ft.test(b.type||"")&&o.push(b);return a}var mt=/^([^.]*)(?:\.(.+)|)/;function Rt(){return!0}function yt(){return!1}function Bt(t,e){return t===function(){try{return q.activeElement}catch(t){}}()==("focus"===e)}function Lt(t,e,o,n,p,b){var M,z;if("object"==typeof e){for(z in"string"!=typeof o&&(n=n||o,o=void 0),e)Lt(t,z,o,n,e[z],b);return t}if(null==n&&null==p?(p=o,n=o=void 0):null==p&&("string"==typeof o?(p=n,n=void 0):(p=n,n=o,o=void 0)),!1===p)p=yt;else if(!p)return t;return 1===b&&(M=p,p=function(t){return m().off(t),M.apply(this,arguments)},p.guid=M.guid||(M.guid=m.guid++)),t.each((function(){m.event.add(this,e,p,n,o)}))}function Xt(t,e,o){o?(Q.set(t,e,!1),m.event.add(t,e,{namespace:!1,handler:function(t){var n,p,b=Q.get(this,e);if(1&t.isTrigger&&this[e]){if(b.length)(m.event.special[e]||{}).delegateType&&t.stopPropagation();else if(b=z.call(arguments),Q.set(this,e,b),n=o(this,e),this[e](),b!==(p=Q.get(this,e))||n?Q.set(this,e,!1):p={},b!==p)return t.stopImmediatePropagation(),t.preventDefault(),p&&p.value}else b.length&&(Q.set(this,e,{value:m.event.trigger(m.extend(b[0],m.Event.prototype),b.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Q.get(t,e)&&m.event.add(t,e,Rt)}m.event={global:{},add:function(t,e,o,n,p){var b,M,z,r,c,i,a,O,s,l,d,u=Q.get(t);if(J(t))for(o.handler&&(o=(b=o).handler,p=b.selector),p&&m.find.matchesSelector(Mt,p),o.guid||(o.guid=m.guid++),(r=u.events)||(r=u.events=Object.create(null)),(M=u.handle)||(M=u.handle=function(e){return void 0!==m&&m.event.triggered!==e.type?m.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(E)||[""]).length;c--;)s=d=(z=mt.exec(e[c])||[])[1],l=(z[2]||"").split(".").sort(),s&&(a=m.event.special[s]||{},s=(p?a.delegateType:a.bindType)||s,a=m.event.special[s]||{},i=m.extend({type:s,origType:d,data:n,handler:o,guid:o.guid,selector:p,needsContext:p&&m.expr.match.needsContext.test(p),namespace:l.join(".")},b),(O=r[s])||((O=r[s]=[]).delegateCount=0,a.setup&&!1!==a.setup.call(t,n,l,M)||t.addEventListener&&t.addEventListener(s,M)),a.add&&(a.add.call(t,i),i.handler.guid||(i.handler.guid=o.guid)),p?O.splice(O.delegateCount++,0,i):O.push(i),m.event.global[s]=!0)},remove:function(t,e,o,n,p){var b,M,z,r,c,i,a,O,s,l,d,u=Q.hasData(t)&&Q.get(t);if(u&&(r=u.events)){for(c=(e=(e||"").match(E)||[""]).length;c--;)if(s=d=(z=mt.exec(e[c])||[])[1],l=(z[2]||"").split(".").sort(),s){for(a=m.event.special[s]||{},O=r[s=(n?a.delegateType:a.bindType)||s]||[],z=z[2]&&new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.|)")+"(\\.|$)"),M=b=O.length;b--;)i=O[b],!p&&d!==i.origType||o&&o.guid!==i.guid||z&&!z.test(i.namespace)||n&&n!==i.selector&&("**"!==n||!i.selector)||(O.splice(b,1),i.selector&&O.delegateCount--,a.remove&&a.remove.call(t,i));M&&!O.length&&(a.teardown&&!1!==a.teardown.call(t,l,u.handle)||m.removeEvent(t,s,u.handle),delete r[s])}else for(s in r)m.event.remove(t,s+e[c],o,n,!0);m.isEmptyObject(r)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,o,n,p,b,M,z=new Array(arguments.length),r=m.event.fix(t),c=(Q.get(this,"events")||Object.create(null))[r.type]||[],i=m.event.special[r.type]||{};for(z[0]=r,e=1;e=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(b=[],M={},o=0;o-1:m.find(p,this,null,[c]).length),M[p]&&b.push(n);b.length&&z.push({elem:c,handlers:b})}return c=this,r\s*$/g;function xt(t,e){return _(t,"table")&&_(11!==e.nodeType?e:e.firstChild,"tr")&&m(t).children("tbody")[0]||t}function Tt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Ct(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function St(t,e){var o,n,p,b,M,z;if(1===e.nodeType){if(Q.hasData(t)&&(z=Q.get(t).events))for(p in Q.remove(e,"handle events"),z)for(o=0,n=z[p].length;o1&&"string"==typeof l&&!u.checkClone&&Nt.test(l))return t.each((function(p){var b=t.eq(p);d&&(e[0]=l.call(this,p,b.html())),Et(b,e,o,n)}));if(O&&(b=(p=gt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===p.childNodes.length&&(p=b),b||n)){for(z=(M=m.map(ht(p,"script"),Tt)).length;a0&&Wt(M,!r&&ht(t,"script")),z},cleanData:function(t){for(var e,o,n,p=m.event.special,b=0;void 0!==(o=t[b]);b++)if(J(o)){if(e=o[Q.expando]){if(e.events)for(n in e.events)p[n]?m.event.remove(o,n):m.removeEvent(o,n,e.handle);o[Q.expando]=void 0}o[Z.expando]&&(o[Z.expando]=void 0)}}}),m.fn.extend({detach:function(t){return Dt(this,t,!0)},remove:function(t){return Dt(this,t)},text:function(t){return U(this,(function(t){return void 0===t?m.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Et(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||xt(this,t).appendChild(t)}))},prepend:function(){return Et(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=xt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Et(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Et(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(m.cleanData(ht(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return m.clone(this,t,e)}))},html:function(t){return U(this,(function(t){var e=this[0]||{},o=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!_t.test(t)&&!qt[(At.exec(t)||["",""])[1].toLowerCase()]){t=m.htmlPrefilter(t);try{for(;o=0&&(r+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-b-r-z-.5))||0),r}function ne(t,e,o){var n=It(t),p=(!u.boxSizingReliable()||o)&&"border-box"===m.css(t,"boxSizing",!1,n),b=p,M=Vt(t,e,n),z="offset"+e[0].toUpperCase()+e.slice(1);if(Pt.test(M)){if(!o)return M;M="auto"}return(!u.boxSizingReliable()&&p||!u.reliableTrDimensions()&&_(t,"tr")||"auto"===M||!parseFloat(M)&&"inline"===m.css(t,"display",!1,n))&&t.getClientRects().length&&(p="border-box"===m.css(t,"boxSizing",!1,n),(b=z in t)&&(M=t[z])),(M=parseFloat(M)||0)+oe(t,e,o||(p?"border":"content"),b,n,M)+"px"}function pe(t,e,o,n,p){return new pe.prototype.init(t,e,o,n,p)}m.extend({cssHooks:{opacity:{get:function(t,e){if(e){var o=Vt(t,"opacity");return""===o?"1":o}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,o,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var p,b,M,z=G(e),r=jt.test(e),c=t.style;if(r||(e=Kt(z)),M=m.cssHooks[e]||m.cssHooks[z],void 0===o)return M&&"get"in M&&void 0!==(p=M.get(t,!1,n))?p:c[e];"string"===(b=typeof o)&&(p=pt.exec(o))&&p[1]&&(o=it(t,e,p),b="number"),null!=o&&o==o&&("number"!==b||r||(o+=p&&p[3]||(m.cssNumber[z]?"":"px")),u.clearCloneStyle||""!==o||0!==e.indexOf("background")||(c[e]="inherit"),M&&"set"in M&&void 0===(o=M.set(t,o,n))||(r?c.setProperty(e,o):c[e]=o))}},css:function(t,e,o,n){var p,b,M,z=G(e);return jt.test(e)||(e=Kt(z)),(M=m.cssHooks[e]||m.cssHooks[z])&&"get"in M&&(p=M.get(t,!0,o)),void 0===p&&(p=Vt(t,e,n)),"normal"===p&&e in te&&(p=te[e]),""===o||o?(b=parseFloat(p),!0===o||isFinite(b)?b||0:p):p}}),m.each(["height","width"],(function(t,e){m.cssHooks[e]={get:function(t,o,n){if(o)return!Qt.test(m.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ne(t,e,n):Ft(t,Zt,(function(){return ne(t,e,n)}))},set:function(t,o,n){var p,b=It(t),M=!u.scrollboxSize()&&"absolute"===b.position,z=(M||n)&&"border-box"===m.css(t,"boxSizing",!1,b),r=n?oe(t,e,n,z,b):0;return z&&M&&(r-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(b[e])-oe(t,e,"border",!1,b)-.5)),r&&(p=pt.exec(o))&&"px"!==(p[3]||"px")&&(t.style[e]=o,o=m.css(t,e)),ee(0,o,r)}}})),m.cssHooks.marginLeft=$t(u.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Vt(t,"marginLeft"))||t.getBoundingClientRect().left-Ft(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),m.each({margin:"",padding:"",border:"Width"},(function(t,e){m.cssHooks[t+e]={expand:function(o){for(var n=0,p={},b="string"==typeof o?o.split(" "):[o];n<4;n++)p[t+bt[n]+e]=b[n]||b[n-2]||b[0];return p}},"margin"!==t&&(m.cssHooks[t+e].set=ee)})),m.fn.extend({css:function(t,e){return U(this,(function(t,e,o){var n,p,b={},M=0;if(Array.isArray(e)){for(n=It(t),p=e.length;M1)}}),m.Tween=pe,pe.prototype={constructor:pe,init:function(t,e,o,n,p,b){this.elem=t,this.prop=o,this.easing=p||m.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=b||(m.cssNumber[o]?"":"px")},cur:function(){var t=pe.propHooks[this.prop];return t&&t.get?t.get(this):pe.propHooks._default.get(this)},run:function(t){var e,o=pe.propHooks[this.prop];return this.options.duration?this.pos=e=m.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),o&&o.set?o.set(this):pe.propHooks._default.set(this),this}},pe.prototype.init.prototype=pe.prototype,pe.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=m.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){m.fx.step[t.prop]?m.fx.step[t.prop](t):1!==t.elem.nodeType||!m.cssHooks[t.prop]&&null==t.elem.style[Kt(t.prop)]?t.elem[t.prop]=t.now:m.style(t.elem,t.prop,t.now+t.unit)}}},pe.propHooks.scrollTop=pe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},m.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},m.fx=pe.prototype.init,m.fx.step={};var be,Me,ze=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function ce(){Me&&(!1===q.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ce):n.setTimeout(ce,m.fx.interval),m.fx.tick())}function ie(){return n.setTimeout((function(){be=void 0})),be=Date.now()}function ae(t,e){var o,n=0,p={height:t};for(e=e?1:0;n<4;n+=2-e)p["margin"+(o=bt[n])]=p["padding"+o]=t;return e&&(p.opacity=p.width=t),p}function Oe(t,e,o){for(var n,p=(se.tweeners[e]||[]).concat(se.tweeners["*"]),b=0,M=p.length;b1)},removeAttr:function(t){return this.each((function(){m.removeAttr(this,t)}))}}),m.extend({attr:function(t,e,o){var n,p,b=t.nodeType;if(3!==b&&8!==b&&2!==b)return void 0===t.getAttribute?m.prop(t,e,o):(1===b&&m.isXMLDoc(t)||(p=m.attrHooks[e.toLowerCase()]||(m.expr.match.bool.test(e)?le:void 0)),void 0!==o?null===o?void m.removeAttr(t,e):p&&"set"in p&&void 0!==(n=p.set(t,o,e))?n:(t.setAttribute(e,o+""),o):p&&"get"in p&&null!==(n=p.get(t,e))?n:null==(n=m.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!u.radioValue&&"radio"===e&&_(t,"input")){var o=t.value;return t.setAttribute("type",e),o&&(t.value=o),e}}}},removeAttr:function(t,e){var o,n=0,p=e&&e.match(E);if(p&&1===t.nodeType)for(;o=p[n++];)t.removeAttribute(o)}}),le={set:function(t,e,o){return!1===e?m.removeAttr(t,o):t.setAttribute(o,o),o}},m.each(m.expr.match.bool.source.match(/\w+/g),(function(t,e){var o=de[e]||m.find.attr;de[e]=function(t,e,n){var p,b,M=e.toLowerCase();return n||(b=de[M],de[M]=p,p=null!=o(t,e,n)?M:null,de[M]=b),p}}));var ue=/^(?:input|select|textarea|button)$/i,Ae=/^(?:a|area)$/i;function fe(t){return(t.match(E)||[]).join(" ")}function qe(t){return t.getAttribute&&t.getAttribute("class")||""}function he(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(E)||[]}m.fn.extend({prop:function(t,e){return U(this,m.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[m.propFix[t]||t]}))}}),m.extend({prop:function(t,e,o){var n,p,b=t.nodeType;if(3!==b&&8!==b&&2!==b)return 1===b&&m.isXMLDoc(t)||(e=m.propFix[e]||e,p=m.propHooks[e]),void 0!==o?p&&"set"in p&&void 0!==(n=p.set(t,o,e))?n:t[e]=o:p&&"get"in p&&null!==(n=p.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=m.find.attr(t,"tabindex");return e?parseInt(e,10):ue.test(t.nodeName)||Ae.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),u.optSelected||(m.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),m.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){m.propFix[this.toLowerCase()]=this})),m.fn.extend({addClass:function(t){var e,o,n,p,b,M;return A(t)?this.each((function(e){m(this).addClass(t.call(this,e,qe(this)))})):(e=he(t)).length?this.each((function(){if(n=qe(this),o=1===this.nodeType&&" "+fe(n)+" "){for(b=0;b-1;)o=o.replace(" "+p+" "," ");M=fe(o),n!==M&&this.setAttribute("class",M)}})):this:this.attr("class","")},toggleClass:function(t,e){var o,n,p,b,M=typeof t,z="string"===M||Array.isArray(t);return A(t)?this.each((function(o){m(this).toggleClass(t.call(this,o,qe(this),e),e)})):"boolean"==typeof e&&z?e?this.addClass(t):this.removeClass(t):(o=he(t),this.each((function(){if(z)for(b=m(this),p=0;p-1)return!0;return!1}});var We=/\r/g;m.fn.extend({val:function(t){var e,o,n,p=this[0];return arguments.length?(n=A(t),this.each((function(o){var p;1===this.nodeType&&(null==(p=n?t.call(this,o,m(this).val()):t)?p="":"number"==typeof p?p+="":Array.isArray(p)&&(p=m.map(p,(function(t){return null==t?"":t+""}))),(e=m.valHooks[this.type]||m.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,p,"value")||(this.value=p))}))):p?(e=m.valHooks[p.type]||m.valHooks[p.nodeName.toLowerCase()])&&"get"in e&&void 0!==(o=e.get(p,"value"))?o:"string"==typeof(o=p.value)?o.replace(We,""):null==o?"":o:void 0}}),m.extend({valHooks:{option:{get:function(t){var e=m.find.attr(t,"value");return null!=e?e:fe(m.text(t))}},select:{get:function(t){var e,o,n,p=t.options,b=t.selectedIndex,M="select-one"===t.type,z=M?null:[],r=M?b+1:p.length;for(n=b<0?r:M?b:0;n-1)&&(o=!0);return o||(t.selectedIndex=-1),b}}}}),m.each(["radio","checkbox"],(function(){m.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=m.inArray(m(t).val(),e)>-1}},u.checkOn||(m.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),u.focusin="onfocusin"in n;var ve=/^(?:focusinfocus|focusoutblur)$/,ge=function(t){t.stopPropagation()};m.extend(m.event,{trigger:function(t,e,o,p){var b,M,z,r,c,i,a,O,l=[o||q],d=s.call(t,"type")?t.type:t,u=s.call(t,"namespace")?t.namespace.split("."):[];if(M=O=z=o=o||q,3!==o.nodeType&&8!==o.nodeType&&!ve.test(d+m.event.triggered)&&(d.indexOf(".")>-1&&(u=d.split("."),d=u.shift(),u.sort()),c=d.indexOf(":")<0&&"on"+d,(t=t[m.expando]?t:new m.Event(d,"object"==typeof t&&t)).isTrigger=p?2:3,t.namespace=u.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+u.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=o),e=null==e?[t]:m.makeArray(e,[t]),a=m.event.special[d]||{},p||!a.trigger||!1!==a.trigger.apply(o,e))){if(!p&&!a.noBubble&&!f(o)){for(r=a.delegateType||d,ve.test(r+d)||(M=M.parentNode);M;M=M.parentNode)l.push(M),z=M;z===(o.ownerDocument||q)&&l.push(z.defaultView||z.parentWindow||n)}for(b=0;(M=l[b++])&&!t.isPropagationStopped();)O=M,t.type=b>1?r:a.bindType||d,(i=(Q.get(M,"events")||Object.create(null))[t.type]&&Q.get(M,"handle"))&&i.apply(M,e),(i=c&&M[c])&&i.apply&&J(M)&&(t.result=i.apply(M,e),!1===t.result&&t.preventDefault());return t.type=d,p||t.isDefaultPrevented()||a._default&&!1!==a._default.apply(l.pop(),e)||!J(o)||c&&A(o[d])&&!f(o)&&((z=o[c])&&(o[c]=null),m.event.triggered=d,t.isPropagationStopped()&&O.addEventListener(d,ge),o[d](),t.isPropagationStopped()&&O.removeEventListener(d,ge),m.event.triggered=void 0,z&&(o[c]=z)),t.result}},simulate:function(t,e,o){var n=m.extend(new m.Event,o,{type:t,isSimulated:!0});m.event.trigger(n,null,e)}}),m.fn.extend({trigger:function(t,e){return this.each((function(){m.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var o=this[0];if(o)return m.event.trigger(t,e,o,!0)}}),u.focusin||m.each({focus:"focusin",blur:"focusout"},(function(t,e){var o=function(t){m.event.simulate(e,t.target,m.event.fix(t))};m.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,p=Q.access(n,e);p||n.addEventListener(t,o,!0),Q.access(n,e,(p||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,p=Q.access(n,e)-1;p?Q.access(n,e,p):(n.removeEventListener(t,o,!0),Q.remove(n,e))}}}));var me=n.location,Re={guid:Date.now()},ye=/\?/;m.parseXML=function(t){var e,o;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return o=e&&e.getElementsByTagName("parsererror")[0],e&&!o||m.error("Invalid XML: "+(o?m.map(o.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Be=/\[\]$/,Le=/\r?\n/g,Xe=/^(?:submit|button|image|reset|file)$/i,_e=/^(?:input|select|textarea|keygen)/i;function Ne(t,e,o,n){var p;if(Array.isArray(e))m.each(e,(function(e,p){o||Be.test(t)?n(t,p):Ne(t+"["+("object"==typeof p&&null!=p?e:"")+"]",p,o,n)}));else if(o||"object"!==v(e))n(t,e);else for(p in e)Ne(t+"["+p+"]",e[p],o,n)}m.param=function(t,e){var o,n=[],p=function(t,e){var o=A(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==o?"":o)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!m.isPlainObject(t))m.each(t,(function(){p(this.name,this.value)}));else for(o in t)Ne(o,t[o],e,p);return n.join("&")},m.fn.extend({serialize:function(){return m.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=m.prop(this,"elements");return t?m.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!m(this).is(":disabled")&&_e.test(this.nodeName)&&!Xe.test(t)&&(this.checked||!ut.test(t))})).map((function(t,e){var o=m(this).val();return null==o?null:Array.isArray(o)?m.map(o,(function(t){return{name:e.name,value:t.replace(Le,"\r\n")}})):{name:e.name,value:o.replace(Le,"\r\n")}})).get()}});var we=/%20/g,xe=/#.*$/,Te=/([?&])_=[^&]*/,Ce=/^(.*?):[ \t]*([^\r\n]*)$/gm,Se=/^(?:GET|HEAD)$/,ke=/^\/\//,Ee={},De={},Pe="*/".concat("*"),je=q.createElement("a");function Ie(t){return function(e,o){"string"!=typeof e&&(o=e,e="*");var n,p=0,b=e.toLowerCase().match(E)||[];if(A(o))for(;n=b[p++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(o)):(t[n]=t[n]||[]).push(o)}}function Fe(t,e,o,n){var p={},b=t===De;function M(z){var r;return p[z]=!0,m.each(t[z]||[],(function(t,z){var c=z(e,o,n);return"string"!=typeof c||b||p[c]?b?!(r=c):void 0:(e.dataTypes.unshift(c),M(c),!1)})),r}return M(e.dataTypes[0])||!p["*"]&&M("*")}function He(t,e){var o,n,p=m.ajaxSettings.flatOptions||{};for(o in e)void 0!==e[o]&&((p[o]?t:n||(n={}))[o]=e[o]);return n&&m.extend(!0,t,n),t}je.href=me.href,m.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:me.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(me.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":m.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,m.ajaxSettings),e):He(m.ajaxSettings,t)},ajaxPrefilter:Ie(Ee),ajaxTransport:Ie(De),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var o,p,b,M,z,r,c,i,a,O,s=m.ajaxSetup({},e),l=s.context||s,d=s.context&&(l.nodeType||l.jquery)?m(l):m.event,u=m.Deferred(),A=m.Callbacks("once memory"),f=s.statusCode||{},h={},W={},v="canceled",g={readyState:0,getResponseHeader:function(t){var e;if(c){if(!M)for(M={};e=Ce.exec(b);)M[e[1].toLowerCase()+" "]=(M[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=M[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?b:null},setRequestHeader:function(t,e){return null==c&&(t=W[t.toLowerCase()]=W[t.toLowerCase()]||t,h[t]=e),this},overrideMimeType:function(t){return null==c&&(s.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)g.always(t[g.status]);else for(e in t)f[e]=[f[e],t[e]];return this},abort:function(t){var e=t||v;return o&&o.abort(e),R(0,e),this}};if(u.promise(g),s.url=((t||s.url||me.href)+"").replace(ke,me.protocol+"//"),s.type=e.method||e.type||s.method||s.type,s.dataTypes=(s.dataType||"*").toLowerCase().match(E)||[""],null==s.crossDomain){r=q.createElement("a");try{r.href=s.url,r.href=r.href,s.crossDomain=je.protocol+"//"+je.host!=r.protocol+"//"+r.host}catch(t){s.crossDomain=!0}}if(s.data&&s.processData&&"string"!=typeof s.data&&(s.data=m.param(s.data,s.traditional)),Fe(Ee,s,e,g),c)return g;for(a in(i=m.event&&s.global)&&0==m.active++&&m.event.trigger("ajaxStart"),s.type=s.type.toUpperCase(),s.hasContent=!Se.test(s.type),p=s.url.replace(xe,""),s.hasContent?s.data&&s.processData&&0===(s.contentType||"").indexOf("application/x-www-form-urlencoded")&&(s.data=s.data.replace(we,"+")):(O=s.url.slice(p.length),s.data&&(s.processData||"string"==typeof s.data)&&(p+=(ye.test(p)?"&":"?")+s.data,delete s.data),!1===s.cache&&(p=p.replace(Te,"$1"),O=(ye.test(p)?"&":"?")+"_="+Re.guid+++O),s.url=p+O),s.ifModified&&(m.lastModified[p]&&g.setRequestHeader("If-Modified-Since",m.lastModified[p]),m.etag[p]&&g.setRequestHeader("If-None-Match",m.etag[p])),(s.data&&s.hasContent&&!1!==s.contentType||e.contentType)&&g.setRequestHeader("Content-Type",s.contentType),g.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+("*"!==s.dataTypes[0]?", "+Pe+"; q=0.01":""):s.accepts["*"]),s.headers)g.setRequestHeader(a,s.headers[a]);if(s.beforeSend&&(!1===s.beforeSend.call(l,g,s)||c))return g.abort();if(v="abort",A.add(s.complete),g.done(s.success),g.fail(s.error),o=Fe(De,s,e,g)){if(g.readyState=1,i&&d.trigger("ajaxSend",[g,s]),c)return g;s.async&&s.timeout>0&&(z=n.setTimeout((function(){g.abort("timeout")}),s.timeout));try{c=!1,o.send(h,R)}catch(t){if(c)throw t;R(-1,t)}}else R(-1,"No Transport");function R(t,e,M,r){var a,O,q,h,W,v=e;c||(c=!0,z&&n.clearTimeout(z),o=void 0,b=r||"",g.readyState=t>0?4:0,a=t>=200&&t<300||304===t,M&&(h=function(t,e,o){for(var n,p,b,M,z=t.contents,r=t.dataTypes;"*"===r[0];)r.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(p in z)if(z[p]&&z[p].test(n)){r.unshift(p);break}if(r[0]in o)b=r[0];else{for(p in o){if(!r[0]||t.converters[p+" "+r[0]]){b=p;break}M||(M=p)}b=b||M}if(b)return b!==r[0]&&r.unshift(b),o[b]}(s,g,M)),!a&&m.inArray("script",s.dataTypes)>-1&&m.inArray("json",s.dataTypes)<0&&(s.converters["text script"]=function(){}),h=function(t,e,o,n){var p,b,M,z,r,c={},i=t.dataTypes.slice();if(i[1])for(M in t.converters)c[M.toLowerCase()]=t.converters[M];for(b=i.shift();b;)if(t.responseFields[b]&&(o[t.responseFields[b]]=e),!r&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),r=b,b=i.shift())if("*"===b)b=r;else if("*"!==r&&r!==b){if(!(M=c[r+" "+b]||c["* "+b]))for(p in c)if((z=p.split(" "))[1]===b&&(M=c[r+" "+z[0]]||c["* "+z[0]])){!0===M?M=c[p]:!0!==c[p]&&(b=z[0],i.unshift(z[1]));break}if(!0!==M)if(M&&t.throws)e=M(e);else try{e=M(e)}catch(t){return{state:"parsererror",error:M?t:"No conversion from "+r+" to "+b}}}return{state:"success",data:e}}(s,h,g,a),a?(s.ifModified&&((W=g.getResponseHeader("Last-Modified"))&&(m.lastModified[p]=W),(W=g.getResponseHeader("etag"))&&(m.etag[p]=W)),204===t||"HEAD"===s.type?v="nocontent":304===t?v="notmodified":(v=h.state,O=h.data,a=!(q=h.error))):(q=v,!t&&v||(v="error",t<0&&(t=0))),g.status=t,g.statusText=(e||v)+"",a?u.resolveWith(l,[O,v,g]):u.rejectWith(l,[g,v,q]),g.statusCode(f),f=void 0,i&&d.trigger(a?"ajaxSuccess":"ajaxError",[g,s,a?O:q]),A.fireWith(l,[g,v]),i&&(d.trigger("ajaxComplete",[g,s]),--m.active||m.event.trigger("ajaxStop")))}return g},getJSON:function(t,e,o){return m.get(t,e,o,"json")},getScript:function(t,e){return m.get(t,void 0,e,"script")}}),m.each(["get","post"],(function(t,e){m[e]=function(t,o,n,p){return A(o)&&(p=p||n,n=o,o=void 0),m.ajax(m.extend({url:t,type:e,dataType:p,data:o,success:n},m.isPlainObject(t)&&t))}})),m.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),m._evalUrl=function(t,e,o){return m.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){m.globalEval(t,e,o)}})},m.fn.extend({wrapAll:function(t){var e;return this[0]&&(A(t)&&(t=t.call(this[0])),e=m(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return A(t)?this.each((function(e){m(this).wrapInner(t.call(this,e))})):this.each((function(){var e=m(this),o=e.contents();o.length?o.wrapAll(t):e.append(t)}))},wrap:function(t){var e=A(t);return this.each((function(o){m(this).wrapAll(e?t.call(this,o):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){m(this).replaceWith(this.childNodes)})),this}}),m.expr.pseudos.hidden=function(t){return!m.expr.pseudos.visible(t)},m.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},m.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},Ve=m.ajaxSettings.xhr();u.cors=!!Ve&&"withCredentials"in Ve,u.ajax=Ve=!!Ve,m.ajaxTransport((function(t){var e,o;if(u.cors||Ve&&!t.crossDomain)return{send:function(p,b){var M,z=t.xhr();if(z.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(M in t.xhrFields)z[M]=t.xhrFields[M];for(M in t.mimeType&&z.overrideMimeType&&z.overrideMimeType(t.mimeType),t.crossDomain||p["X-Requested-With"]||(p["X-Requested-With"]="XMLHttpRequest"),p)z.setRequestHeader(M,p[M]);e=function(t){return function(){e&&(e=o=z.onload=z.onerror=z.onabort=z.ontimeout=z.onreadystatechange=null,"abort"===t?z.abort():"error"===t?"number"!=typeof z.status?b(0,"error"):b(z.status,z.statusText):b(Ue[z.status]||z.status,z.statusText,"text"!==(z.responseType||"text")||"string"!=typeof z.responseText?{binary:z.response}:{text:z.responseText},z.getAllResponseHeaders()))}},z.onload=e(),o=z.onerror=z.ontimeout=e("error"),void 0!==z.onabort?z.onabort=o:z.onreadystatechange=function(){4===z.readyState&&n.setTimeout((function(){e&&o()}))},e=e("abort");try{z.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),m.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),m.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return m.globalEval(t),t}}}),m.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),m.ajaxTransport("script",(function(t){var e,o;if(t.crossDomain||t.scriptAttrs)return{send:function(n,p){e=m("
diff --git a/resources/js/Pages/Publish.vue b/resources/js/Pages/Publish.vue
new file mode 100644
index 00000000..b703951e
--- /dev/null
+++ b/resources/js/Pages/Publish.vue
@@ -0,0 +1,976 @@
+
+
+
+
+
+
+
+
+
+
+ ←
+
+
+
+ DRAFT: {{ draft.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PUBLISH AS PROJECT
+
+
+
+
+
+
+
+ Project Name
+
+
+
+
+
+
+
+
+ Project Description
+ (Optional)
+
+
+
+
+
+
+
+
+ Keywords (Optional)
+
+
+
+ (publishForm.project.tags =
+ newTags)
+ "
+ />
+
+
+
+
+
+
+ Organism (Optional)
+
+
+
+
+
+
+
+
+
+
+
+ Citation
+
+
+
+ Edit
+
+
+
+
+
+
+
+
+
+
+
+
+ Author
+
+
+
+ Edit
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ pluralize(
+ "SAMPLE",
+ project.studies.length
+ )
+ }}
+ ({{ project.studies.length }})
+
+
+
+
+
+ Release Date
+
+
+
+ Publish your data now or choose a release
+ date to auto publish your project to public.
+
+
+
+
+
+ Terms & Conditions
+
+
+
+
+
+
+
+ I understand once the project is
+ published, all the underlying
+ studies and spectra will also be
+ made public and agree to make
+ this data persistently available
+ in this location.
+
+
+
+
+
+
+
+
+
+ I agree to the
+
Terms of Service
+ and
+
Privacy Policy
+ and hereby also grant nmrXiv
+ permissions to distribute the
+ datasets (and meta-data) under
+ the specified license.
+
+
+
+
+
+
+
+
+
+
+ Publish
+
+
+ Not right yet
+
+
+
+
+
+
+
+
+ Error publishing your project
+
+
+
+
+
+
+
+
+
+
+
Whats next?
+
+
+ Upon clicking publish, your project is
+ submitted to our queue system for
+ automatic processing. Once successfully
+ processed, your data is assigned with
+ stable identifiers, and DOIs are
+ generated. You will receive an email
+ with citation details and other helpful
+ information to share your datasets.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/js/Pages/Study/About.vue b/resources/js/Pages/Study/About.vue
index 1ae22169..a6d81442 100644
--- a/resources/js/Pages/Study/About.vue
+++ b/resources/js/Pages/Study/About.vue
@@ -15,47 +15,6 @@
-
-
-
-
-
- Description
-
-
-
- Edit
-
-
-
-
-
-
-
+
+
+
+
+
+ Description
+
+
+
+ Edit
+
+
+
+
+
+
+
diff --git a/resources/js/Pages/Study/Datasets.vue b/resources/js/Pages/Study/Datasets.vue
index 33284c95..9229c62e 100644
--- a/resources/js/Pages/Study/Datasets.vue
+++ b/resources/js/Pages/Study/Datasets.vue
@@ -17,8 +17,8 @@
-->
-
+
diff --git a/resources/js/Pages/Study/Files.vue b/resources/js/Pages/Study/Files.vue
index e80c6306..2c726c45 100644
--- a/resources/js/Pages/Study/Files.vue
+++ b/resources/js/Pages/Study/Files.vue
@@ -500,7 +500,6 @@ export default {
file.loading = false;
});
}
- this.$emit("reloadnmrium");
},
loadMol() {
this.svgString = null;
diff --git a/resources/js/Pages/Study/Index.vue b/resources/js/Pages/Study/Index.vue
index 67993233..46291426 100644
--- a/resources/js/Pages/Study/Index.vue
+++ b/resources/js/Pages/Study/Index.vue
@@ -2,14 +2,14 @@
-
Studies
+
Samples
@@ -25,29 +25,29 @@
GO
Reset
-
- + Manage Studies
-
+ + Manage Samples
+
-
+
Info: This project is published. You cannot edit a
published project, please create a new version to updated
@@ -324,7 +324,7 @@
ref="studyDetailsElement"
:study="study"
:role="studyRole"
- :studyPermissions="studyPermissions"
+ :study-permissions="studyPermissions"
/>
{
- this.loadLicenses();
- this.open = true;
- };
- this.emitter.all.set("openStudyDetails", [initialise]);
- },
computed: {
canUpdateStudy() {
return this.studyPermissions
@@ -938,6 +931,13 @@ export default {
: false;
},
},
+ mounted() {
+ const initialise = () => {
+ this.loadLicenses();
+ this.open = true;
+ };
+ this.emitter.all.set("openStudyDetails", [initialise]);
+ },
methods: {
toggleDetails() {
this.loadLicenses();
diff --git a/resources/js/Pages/Upload.vue b/resources/js/Pages/Upload.vue
new file mode 100644
index 00000000..e82b898a
--- /dev/null
+++ b/resources/js/Pages/Upload.vue
@@ -0,0 +1,3448 @@
+
+
+
+
+
+
+
+
+
+
+ ←
+
+
+
+ {{ currentDraft.name }}
+
+
+
+ Submit data to nmrXiv
+
+
+
+
+
+
+
+
+
+ Don't show this
+ again
+
+
+
+
+ Proceed
+
+
+
+
+
+ Cancel
+
+
+
+
+
+ Cancel
+
+
+
+
+
+
+
+
+ Proceed
+
+
+
+
+ Back
+
+
+
+
+
+
+
+
+ Proceed
+
+
+
+
+ Finish
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Drafts
+
+
+ Please select one of the
+ drafts below to continue or
+ start a new submission
+
+
+
+
+ + Create New
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Draft ID:
+ {{ currentDraft.key }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{
+ pluralize(
+ "SAMPLE",
+ studies.length
+ )
+ }}
+ ({{ studies.length }})
+
+
+
+
+
+
+
+
+
+
+ Samples
+
+
+
+ {{
+ studies.length
+ }}
+
+
+
+
+ Spectra
+
+
+
+ {{
+ spectraCount
+ }}
+
+
+
+
+ Molecules
+
+
+
+ {{
+ moleculesCount
+ }}
+
+
+
+
+ Samples
+ Validation
+
+
+
+
+
+ Success
+
+
+
+
+ Incomplete
+
+
+ Meta
+ data
+ is
+ missing.
+ Please
+ check
+ the
+ validation
+ report
+ below.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PUBLISH AS
+ PROJECT
+
+
+
+
+
+
+
+ Project Name
+
+
+
+
+
+
+
+
+ Project
+ Description
+ (Optional)
+
+
+
+
+
+
+
+
+ Keywords
+ (Optional)
+
+
+
+ (publishForm.project.tags =
+ newTags)
+ "
+ />
+
+
+
+
+
+
+
+
+ Citation
+
+
+
+ Edit
+
+
+
+
+
+
+
+
+
+
+
+
+ Author
+
+
+
+ Edit
+
+
+
+
+
+
+
+
+
+
+
+ Release Date
+
+
+
+ Publish your data
+ now or choose a
+ release date to auto
+ publish your project
+ to public.
+
+
+
+
+ Terms & Conditions
+
+
+
+
+
+
+
+ I
+ understand
+ once the
+ project
+ is
+ published,
+ all the
+ underlying
+ studies
+ and
+ spectra
+ will
+ also be
+ made
+ public
+ and
+ agree to
+ make
+ this
+ data
+ persistently
+ available
+ in this
+ location.
+
+
+
+
+
+
+
+
+
+ I agree
+ to the
+
Terms
+ of
+ Service
+ and
+
Privacy
+ Policy
+ and
+ hereby
+ also
+ grant
+ nmrXiv
+ permissions
+ to
+ distribute
+ the
+ datasets
+ (and
+ meta-data)
+ under
+ the
+ specified
+ license.
+
+
+
+
+
+
+
+
+
+
+ Publish
+
+
+ Not right yet
+
+
+
+
+
+
+
+
+ Error
+ publishing
+ your
+ project
+
+
+
+
+
+
+
+
+
+
+
Whats next?
+
+
+ Upon clicking
+ publish, your
+ project is
+ submitted to our
+ queue system for
+ automatic
+ processing. Once
+ successfully
+ processed, your
+ data is assigned
+ with stable
+ identifiers, and
+ DOIs are
+ generated. You
+ will receive an
+ email with
+ citation details
+ and other
+ helpful
+ information to
+ share your
+ datasets.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/resources/js/Pages/Welcome.vue b/resources/js/Pages/Welcome.vue
index 489f5ea8..0905bcae 100644
--- a/resources/js/Pages/Welcome.vue
+++ b/resources/js/Pages/Welcome.vue
@@ -29,71 +29,6 @@
as="nav"
class="hidden md:flex space-x-10"
>
-
-