snipe-it/public/js/vendor.js

11 lines
296 KiB
JavaScript
Raw Normal View History

if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),r=n.data(i);if(!r){var s=t.extend({},o,n.data(),"object"==typeof e&&e);n.data(i,r=new a(n,s))}if("string"==typeof r){if(void 0===r[e])throw new Error("No method named "+e);r[e]()}})}var i="lte.boxrefresh",o={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>',onLoadStart:function(){},onLoadDone:function(t){return t}},n={data:'[data-widget="box-refresh"]'},a=function(e,i){if(this.element=e,this.options=i,this.$overlay=t(i.overlay),""===i.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()};a.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(t(this)),t.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&t(this.options.content).html(e),this.options.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},a.prototype._setUpListeners=function(){t(this.element).on("click",n.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},a.prototype._addOverlay=function(){t(this.element).append(this.$overlay)},a.prototype._removeOverlay=function(){t(this.element).remove(this.$overlay)};var r=t.fn.boxRefresh;t.fn.boxRefresh=e,t.fn.boxRefresh.Constructor=a,t.fn.boxRefresh.noConflict=function(){return t.fn.boxRefresh=r,this},t(window).on("load",function(){t(n.data).each(function(){e.call(t(this))})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),a=n.data(i);if(!a){var r=t.extend({},o,n.data(),"object"==typeof e&&e);n.data(i,a=new s(n,r))}if("string"==typeof e){if(void 0===a[e])throw new Error("No method named "+e);a[e]()}})}var i="lte.boxwidget",o={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},n={data:".box",collapsed:".collapsed-box",header:".box-header",body:".box-body",footer:".box-footer",tools:".box-tools"},a={collapsed:"collapsed-box"},r={collapsed:"collapsed.boxwidget",expanded:"expanded.boxwidget",removed:"removed.boxwidget"},s=function(t,e){this.element=t,this.options=e,this._setUpListeners()};s.prototype.toggle=function(){t(this.element).is(n.collapsed)?this.expand():this.collapse()},s.prototype.expand=function(){var e=t.Event(r.expanded),i=this.options.collapseIcon,o=this.options.expandIcon;t(this.element).removeClass(a.collapsed),t(this.element).children(n.header+", "+n.body+", "+n.footer).children(n.tools).find("."+o).removeClass(o).addClass(i),t(this.element).children(n.body+", "+n.footer).slideDown(this.options.animationSpeed,function(){t(this.element).trigger(e)}.bind(this))},s.prototype.collapse=function(){var e=t.Event(r.collapsed),i=this.options.collapseIcon,o=this.options.expandIcon;t(this.element).children(n.header+", "+n.body+", "+n.footer).children(n.tools).find("."+i).removeClass(i).addClass(o),t(this.element).children(n.body+", "+n.footer).slideUp(this.options.animationSpeed,function(){t(this.element).addClass(a.collapsed),t(this.element).trigger(e)}.bind(this))},s.prototype.remove=function(){var e=t.Event(r.removed);t(this.element).slideUp(this.options.animationSpeed,function(){t(this.element).trigger(e),t(this.element).remove()}.bind(this))},s.prototype._setUpListeners=function(){var e=this;t(this.element).on("click",this.options.collapseTrigger,function(i){return i&&i.preventDefault(),e.toggle(t(this)),!1}),t(this.element).on("click",this.options.removeTrigger,function(i){return i&&i.preventDefault(),e.remove(t(this)),!1})};var l=t.fn.boxWidget;t.fn.boxWidget=e,t.fn.boxWidget.Constructor=s,t.fn.boxWidget.noConflict=function(){return t.fn.boxWidget=l,this},t(window).on("load",function(){t(n.data).each(function(){e.call(t(this))})})}(jQuery),func
;var o=e.cache("target-offsetparent",function(){return a(e.target)});a(e.element)!==o&&T(function(){e.element.parentNode.removeChild(e.element),o.appendChild(e.element)}),u(i.offset,t.offset),c=!0}():(d.position="absolute",u({top:!0,left:!0},t.page)),!c)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var f=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName;){if("static"!==getComputedStyle(p).position){f=!1;break}p=p.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var m={},v=!1;for(var n in d){var b=d[n];this.element.style[n]!==b&&(v=!0,m[n]=b)}v&&T(function(){s(e.element.style,m),e.trigger("repositioned")})}}}]),d}(A);j.modules=[],w.position=R;var Y=s(j,w),P=function(){function t(t,e){var i=[],o=!0,n=!1,a=void 0;try{for(var r,s=t[Symbol.iterator]();!(o=(r=s.next()).done)&&(i.push(r.value),!e||i.length!==e);o=!0);}catch(t){n=!0,a=t}finally{try{!o&&s.return&&s.return()}finally{if(n)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")}}(),O=w.Utils,n=O.getBounds,s=O.extend,f=O.updateClasses,T=O.defer,q=["left","top","right","bottom"];w.modules.push({position:function(t){var e=this,i=t.top,o=t.left,a=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return n(e.element)}),l=r.height,h=r.width;if(0===h&&0===l&&void 0!==this.lastSize){var d=this.lastSize;h=d.width,l=d.height}var u=this.cache("target-bounds",function(){return e.getTargetBounds()}),c=u.height,p=u.width,g=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,i=t.pinnedClass;e&&g.push(e),i&&g.push(i)}),g.forEach(function(t){["left","top","right","bottom"].forEach(function(e){g.push(t+"-"+e)})});var m=[],v=s({},a),b=s({},this.attachment);return this.options.constraints.forEach(function(t){var n=t.to,r=t.attachment,s=t.pin;void 0===r&&(r="");var d=void 0,u=void 0;if(r.indexOf(" ")>=0){var f=r.split(" "),g=P(f,2);u=g[0],d=g[1]}else d=u=r;var x=y(e,n);"target"!==u&&"both"!==u||(i<x[1]&&"top"===v.top&&(i+=c,v.top="bottom"),i+l>x[3]&&"bottom"===v.top&&(i-=c,v.top="top")),"together"===u&&("top"===v.top&&("bottom"===b.top&&i<x[1]?(i+=c,v.top="bottom",i+=l,b.top="top"):"top"===b.top&&i+l>x[3]&&i-(l-c)>=x[1]&&(i-=l-c,v.top="bottom",b.top="bottom")),"bottom"===v.top&&("top"===b.top&&i+l>x[3]?(i-=c,v.top="top",i-=l,b.top="bottom"):"bottom"===b.top&&i<x[1]&&i+(2*l-c)<=x[3]&&(i+=l-c,v.top="top",b.top="top")),"middle"===v.top&&(i+l>x[3]&&"top"===b.top?(i-=l,b.top="bottom"):i<x[1]&&"bottom"===b.top&&(i+=l,b.top="top"))),"target"!==d&&"both"!==d||(o<x[0]&&"left"===v.left&&(o+=p,v.left="right"),o+h>x[2]&&"right"===v.left&&(o-=p,v.left="left")),"together"===d&&(o<x[0]&&"left"===v.left?"right"===b.left?(o+=p,v.left="right",o+=h,b.left="left"):"left"===b.left&&(o+=p,v.left="right",o-=h,b.left="right"):o+h>x[2]&&"right"===v.left?"left"===b.left?(o-=p,v.left="left",o-=h,b.left="right"):"right"===b.left&&(o-=p,v.left="left",o+=h,b.left="left"):"center"===v.left&&(o+h>x[2]&&"left"===b.left?(o-=h,b.left="right"):o<x[0]&&"right"===b.left&&(o+=h,b.left="left"))),"element"!==u&&"both"!==u||(i<x[1]&&"bottom"===b.top&&(i+=l,b.top="top"),i+l>x[3]&&"top"===b.top&&(i-=l,b.top="bottom")),"element"!==d&&"both"!==d||(o<x[0]&&("right"===b.left?(o+=h,b.left="left"):"center"===b.left&&(o+=h/2,b.left="left")),o+h>x[2]&&("left"===b.left?(o-=h,b.left="right"):"center"===b.left&&(o-=h/2,b.left="right"))),"string"==typeof s?s=s.split(",").map(function(t){return t.trim()}):!0===s&&(s=["top","left","right","bottom"]),s=s||[];var w=[],_=[];i<x[1]&&(s.indexOf("top")>=0?(i=x[1],w.push("top")):_.push("top")),i+l>x[3]&&(s.indexOf("bottom")>=0?(i=x[3]-l,w.push("bottom")):_.push("bottom")),o<x[0]&&(s.indexOf("left")>=0?(o=x[0],w.push("left")):_.push("left")),o+h>x[2]&&(s.indexOf(
chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32",transparent:"transparent"},e.prototype={constructor:e,colors:{},predefinedColors:{},getValue:function(){return this.value},setValue:function(t){this.value=t},_sanitizeNumber:function(t){return"number"==typeof t?t:isNaN(t)||null===t||""===t||void 0===t?1:""===t?0:void 0!==t.toLowerCase?(t.match(/^\./)&&(t="0"+t),Math.ceil(100*parseFloat(t))/100):1},isTransparent:function(t){return!(!t||!("string"==typeof t||t instanceof String))&&("transparent"===(t=t.toLowerCase().trim())||t.match(/#?00000000/)||t.match(/(rgba|hsla)\(0,0,0,0?\.?0\)/))},rgbaIsTransparent:function(t){return 0===t.r&&0===t.g&&0===t.b&&0===t.a},setColor:function(t){if(t=t.toLowerCase().trim()){if(this.isTransparent(t))return this.value={h:0,s:0,b:0,a:0},!0;var e=this.parse(t);e?(this.value=this.value={h:e.h,s:e.s,b:e.b,a:e.a},this.origFormat||(this.origFormat=e.format)):this.fallbackValue&&(this.value=this.fallbackValue)}return!1},setHue:function(t){this.value.h=1-t},setSaturation:function(t){this.value.s=t},setBrightness:function(t){this.value.b=1-t},setAlpha:function(t){this.value.a=Math.round(parseInt(100*(1-t),10)/100*100)/100},toRGB:function(t,e,i,o){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,o=this.value.a),t*=360;var n,a,r,s,l;return t=t%360/60,l=i*e,s=l*(1-Math.abs(t%2-1)),n=a=r=i-l,t=~~t,n+=[l,s,0,0,s,l][t],a+=[s,l,l,s,0,0][t],r+=[0,0,s,l,l,s][t],{r:Math.round(255*n),g:Math.round(255*a),b:Math.round(255*r),a:o}},toHex:function(t,e,i,o,n){arguments.length<=1&&(e=this.value.h,i=this.value.s,o=this.value.b,n=this.value.a);var a="#",r=this.toRGB(e,i,o,n);return this.rgbaIsTransparent(r)?"transparent":(t||(a=this.hexNumberSignPrefix?"#":""),a+((1<<24)+(parseInt(r.r)<<16)+(parse
c+=u-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var p,g=this.o.orientation.y;if("auto"===g&&(p=-a+f-i,g=p<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?f-=i+parseInt(this.picker.css("padding-top")):f+=d,this.o.rtl){var m=n-(c+u);this.picker.css({top:f,right:m,zIndex:l})}else this.picker.css({top:f,left:c,zIndex:l});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],o=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),o=!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=t.map(i,t.proxy(function(t){return v.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),o?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&o&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw">&#160;</th>');e<this.o.weekStart+7;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+m[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t,e=this._utc_to_local(this.viewDate),i="",o=0;o<12;o++)t=e&&e.getMonth()===o?" focused":"",i+='<span class="month'+t+'">'+m[this.o.language].monthsShort[o]+"</span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],a=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),s=o();return e.getUTCFullYear()<a||e.getUTCFullYear()===a&&e.getUTCMonth()<r?i.push("old"):(e.getUTCFullYear()>a||e.getUTCFullYear()===a&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&n(e,s)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,o,n,a,r,s,l){for(var h,d,u,c="",f=n/10,p=this.picker.find(i),g=Math.floor(a/n)*n,m=g+9*f,v=Math.floor(this.viewDate.getFullYear()/f)*f,b=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/f)*f}),y=g-f;y<=m+f;y+=f)h=[o],d=null,y===g-f?h.push("old"):y===m+f&&h.push("new"),-1!==t.inArray(y,b)&&h.push("active"),(y<r||y>s)&&h.push("disabled"),y===v&&h.push("focused"),l!==t.noop&&(u=l(new Date(y,0,1)),u===e?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&h.push("disabled"),u.classes&&(h=h.concat(u.classes.split(/\s+/))),u.tooltip&&(d=u.tooltip)),c+='<span class="'+h.join(" ")+'"'+(d?' title="'+d+'"':"")+">"+y+"</span>";p.find(".datepicker-switch").text(g+"-"+m),p.find("td").html(c)},fill:function(){var o,n,a=new Date(this.viewDate),r=a.getUTCFullYear(),s=a.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this
;return e.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+o+'" src="'+t+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(i,o),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,i){var o=this,n=this._$element.data("width")||560,a=this._$element.data("height")||560,r=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),r||this._isExternal(e)?(i.html('<iframe src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):i.load(e,t.proxy(function(){return o._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(n,a),this}},{key:"_isExternal",value:function(t){var e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/);return"string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host}},{key:"_error",value:function(t){return console.error(t),this._containerToUse().html(t),this._resize(300,300),this}},{key:"_preloadImageByIndex",value:function(e,i){if(this._$galleryItems){var o=t(this._$galleryItems.get(e),!1);if(void 0!==o){var n=o.attr("data-remote")||o.attr("href");return("image"===o.attr("data-type")||this._isImage(n))&&this._preloadImage(n,!1),i>0?this._preloadImageByIndex(e+1,i-1):void 0}}}},{key:"_preloadImage",value:function(e,i){var o=this;i=i||!1;var n=new Image;return i&&function(){var a=setTimeout(function(){i.append(o._config.loadingMessage)},200);n.onload=function(){a&&clearTimeout(a),a=null;var e=t("<img />");return e.attr("src",n.src),e.addClass("img-fluid"),e.css("width","100%"),i.html(e),o._$modalArrows&&o._$modalArrows.css("display",""),o._resize(n.width,n.height),o._toggleLoading(!1),o._config.onContentLoaded.call(o)},n.onerror=function(){return o._toggleLoading(!1),o._error(o._config.strings.fail+" "+e)}}(),n.src=e,n}},{key:"_swipeGesure",value:function(){return this._touchendX<this._touchstartX?this.navigateRight():this._touchendX>this._touchstartX?this.navigateLeft():void 0}},{key:"_resize",value:function(e,i){i=i||e,this._wantedWidth=e,this._wantedHeight=i;var o=e/i,n=this._padding.left+this._padding.right+this._border.left+this._border.right,a=this._config.doc.body.clientWidth>575?20:0,r=this._config.doc.body.clientWidth>575?0:20,s=Math.min(e+n,this._config.doc.body.clientWidth-a,this._config.maxWidth);e+n>s?(i=(s-n-r)/o,e=s):e+=n;var l=0,h=0;this._footerIsShown&&(h=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(l=this._$modalHeader.outerHeight(!0)||67);var d=this._padding.top+this._padding.bottom+this._border.bottom+this._border.top,u=parseFloat(this._$modalDialog.css("margin-top"))+parseFloat(this._$modalDialog.css("margin-bottom")),c=Math.min(i,t(window).height()-d-u-l-h,this._config.maxHeight-d-l-h);i>c&&(e=Math.ceil(c*o)+n),this._$lightboxContainer.css("height",c),this._$modalDialog.css("flex",1).css("maxWidth",e);var f=this._$modal.data("bs.modal");if(f)try{f._handleUpdate()}catch(t){f.handleUpdate()}return this}}],[{key:"_jQueryInterface",value:function(e){var i=this;return e=e||{},this.each(function(){var n=t(i),a=t.extend({},o.Default,n.data(),"object"==typeof e&&e);new o(i,a)})}}]),o}();t.fn[o]=r._jQueryInterface,t.fn[o].Constructor=r,t.fn[o].noConflict=function(){return t.fn[o]=n,r._jQueryInterface}}(jQuery)}(jQuery),function(t){function e(t,e,n){var a=t[0],r=/er/.test(n)?g:/bl/.test(n)?f:u,s=n==m?{checked:a[u],disabled:a[f],indeterminate:"true"==t.attr(g)||"false"==t.attr(p)}:a[r];if(/^(ch|di|in)/.test(n)&&!s)i(t,r);else if(/^(un|en|de)/.test(n)&&s)o(t,r);else if(n==m)for(var l in s)s[l]?i(t,l,!0):o(t,l,!0);else e&&"toggle"!=n||(e||t[w]("ifClicked"),s?a[v]!==d&&o(t,r):i(t,r))}function i(e,i,n){var m=e[0],b=e.parent(),w=i==u,_=i==g,C=i==f,D=_?p:w?c:"enabled",M=a(e,D+r(m[v])),S=a(e
palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},{}],7:[function(t,e,i){var o=t(30)();o.helpers=t(46),t(28)(o),o.Animation=t(22),o.animationService=t(23),o.defaults=t(26),o.Element=t(27),o.elements=t(41),o.Interaction=t(29),o.layouts=t(31),o.platform=t(49),o.plugins=t(32),o.Scale=t(33),o.scaleService=t(34),o.Ticks=t(35),o.Tooltip=t(36),t(24)(o),t(25)(o),t(56)(o),t(54)(o),t(55)(o),t(57)(o),t(58)(o),t(59)(o),t(15)(o),t(16)(o),t(17)(o),t(18)(o),t(19)(o),t(20)(o),t(21)(o),t(8)(o),t(9)(o),t(10)(o),t(11)(o),t(12)(o),t(13)(o),t(14)(o);var n=t(50);for(var a in n)n.hasOwnProperty(a)&&o.plugins.register(n[a]);o.platform.initialize(),e.exports=o,"undefined"!=typeof window&&(window.Chart=o),o.Legend=n.legend._element,o.Title=n.title._element,o.pluginService=o.plugins,o.PluginBase=o.Element.extend({}),o.canvasHelpers=o.helpers.canvas,o.layoutService=o.layouts},{10:10,11:11,12:12,13:13,14:14,15:15,16:16,17:17,18:18,19:19,20:20,21:21,22:22,23:23,24:24,25:25,26:26,27:27,28:28,29:29,30:30,31:31,32:32,33:33,34:34,35:35,36:36,41:41,46:46,49:49,50:50,54:54,55:55,56:56,57:57,58:58,59:59,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(t){t.Bar=function(e,i){return i.type="bar",new t(e,i)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(t){t.Bubble=function(e,i){return i.type="bubble",new t(e,i)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(t){t.Doughnut=function(e,i){return i.type="doughnut",new t(e,i)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(t){t.Line=function(e,i){return i.type="line",new t(e,i)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(t){t.PolarArea=function(e,i){return i.type="polarArea",new t(e,i)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(t){t.Radar=function(e,i){return i.type="radar",new t(e,i)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(t){t.Scatter=function(e,i){return i.type="scatter",new t(e,i)}}},{}],15:[function(t,e,i){"use strict";function o(t,e){var i,o,n,a,r=t.isHorizontal()?t.width:t.height,s=t.getTicks();for(n=1,a=e.length;n<a;++n)r=Math.min(r,e[n]-e[n-1]);for(n=0,a=s.length;n<a;++n)o=t.getPixelForTick(n),r=n>0?Math.min(r,o-i):r,i=o;return r}function n(t,e,i){var o,n,a=i.barThickness,r=e.stackCount,s=e.pixels[t];return l.isNullOrUndef(a)?(o=e.min*i.categoryPercentage,n=i.barPercentage):(o=a*r,n=1),{chunk:o/r,ratio:n,start:s-o/2}}function a(t,e,i){var o,n,a=e.pixels,r=a[t],s=t>0?a[t-1]:null,l=t<a.length-1?a[t+1]:null,h=i.categoryPercentage;return null===s&&(s=r-(null===l?e.end-r:l-r)),null===l&&(l=r+r-s),o=r-(r-s)/2*h,n=(l-s)/2*h,{chunk:n/e.stackCount,ratio:i.barPercentage,start:o}}var r=t(26),s=t(41),l=t(46);r._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),r._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(t,e){var i="";return t.length>0&&(t[0].yLabel?i=t[0].yLabel:e.labels.length>0&&t[0].index<e.labels.length&&(i=e.labels[t[
!a||!s)return void console.error("Failed to create chart: can't acquire context from the given item");n.initialize(),n.update()},initialize:function(){var t=this;return d.notify(t,"beforeInit"),r.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildOrUpdateScales(),t.initToolTip(),d.notify(t,"afterInit"),t},clear:function(){return r.canvas.clear(this),this},stop:function(){return n.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,o=e.canvas,n=i.maintainAspectRatio&&e.aspectRatio||null,a=Math.max(0,Math.floor(r.getMaximumWidth(o))),s=Math.max(0,Math.floor(n?a/n:r.getMaximumHeight(o)));if((e.width!==a||e.height!==s)&&(o.width=e.width=a,o.height=e.height=s,o.style.width=a+"px",o.style.height=s+"px",r.retinaScale(e,i.devicePixelRatio),!t)){var l={width:a,height:s};d.notify(e,"resize",[l]),e.options.onResize&&e.options.onResize(e,l),e.stop(),e.update({duration:e.options.responsiveAnimationDuration})}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;r.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),r.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildOrUpdateScales:function(){var t=this,e=t.options,i=t.scales||{},o=[],n=Object.keys(i).reduce(function(t,e){return t[e]=!1,t},{});e.scales&&(o=o.concat((e.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(e.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),e.scale&&o.push({options:e.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),r.each(o,function(e){var o=e.options,a=o.id,s=r.valueOrDefault(o.type,e.dtype);f(o.position)!==f(e.dposition)&&(o.position=e.dposition),n[a]=!0;var l=null;if(a in i&&i[a].type===s)l=i[a],l.options=o,l.ctx=t.ctx,l.chart=t;else{var h=u.getScaleConstructor(s);if(!h)return;l=new h({id:a,type:s,options:o,ctx:t.ctx,chart:t}),i[l.id]=l}l.mergeTicksOptions(),e.isDefault&&(t.scale=l)}),r.each(n,function(t,e){t||delete i[e]}),t.scales=i,u.addScalesToLayout(this)},buildOrUpdateControllers:function(){var e=this,i=[],o=[];return r.each(e.data.datasets,function(n,a){var r=e.getDatasetMeta(a),s=n.type||e.config.type;if(r.type&&r.type!==s&&(e.destroyDatasetMeta(a),r=e.getDatasetMeta(a)),r.type=s,i.push(r.type),r.controller)r.controller.updateIndex(a),r.controller.linkScales();else{var l=t.controllers[r.type];if(void 0===l)throw new Error('"'+r.type+'" is not a chart type.');r.controller=new l(e,a),o.push(r.controller)}},e),o},resetElements:function(){var t=this;r.each(t.data.datasets,function(e,i){t.getDatasetMeta(i).controller.reset()},t)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(t){var e=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),i(e),d._invalidate(e),!1!==d.notify(e,"beforeUpdate")){e.tooltip._data=e.data;var o=e.buildOrUpdateControllers();r.each(e.data.datasets,function(t,i){e.getDatasetMeta(i).controller.buildOrUpdateElements()},e),e.updateLayout(),e.options.animation&&e.options.animation.duration&&r.each(o,function(t){t.reset()}),e.updateDatasets(),e.tooltip.initialize(),e.lastActive=[],d.notify(e,"afterUpdate"),e._bufferedRender?e._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:e.render(t)}},updateLayout:function(){var t=this;!1!==d.notify(t,"beforeLayout")&&(l.update(this,this.width,this.height),d.notify(t,"afterScaleUpdate"),d.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==d.notify(t,"beforeDatasetsUpdate")){for(var e=0,i=t.data.datasets.length;e<i;++e)t.updateDataset(e);d.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,i=e.getDatasetMeta(t),o={meta:i,index:t};!1!==d.notify(e,"beforeDatasetUpdate",[o])&&(i.controller.update(),d.notify(e,"afterDatasetUpdate",[o]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=t.duration,a=t.lazy;if(!1!==d.notify(e,"beforeRender")){var s=e.options.animation,l=function(t){d.notify(e,"afterRender"),r.callback(s&&s.
;if(n.length&&t.options.display&&t.isHorizontal())for(var l,h=d.longestText(e,a.font,n,t.longestTextCache),u=h,c=t.getPixelForTick(1)-t.getPixelForTick(0)-6;u>c&&s<i.maxRotation;){var f=d.toRadians(s);if(l=Math.cos(f),Math.sin(f)*h>t.maxHeight){s--;break}s++,u=l*h}t.labelRotation=s},afterCalculateTickRotation:function(){d.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){d.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=o(t._ticks),n=t.options,l=n.ticks,h=n.scaleLabel,u=n.gridLines,c=n.display,f=t.isHorizontal(),p=r(l),g=n.gridLines.tickMarkLength;if(e.width=f?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:c&&u.drawTicks?g:0,e.height=f?c&&u.drawTicks?g:0:t.maxHeight,h.display&&c){var m=s(h),v=d.options.toPadding(h.padding),b=m+v.height;f?e.height+=b:e.width+=b}if(l.display&&c){var y=d.longestText(t.ctx,p.font,i,t.longestTextCache),x=d.numberOfLabelLines(i),w=.5*p.size,_=t.options.ticks.padding;if(f){t.longestLabelWidth=y;var k=d.toRadians(t.labelRotation),C=Math.cos(k),D=Math.sin(k),M=D*y+p.size*x+w*(x-1)+w;e.height=Math.min(t.maxHeight,e.height+M+_),t.ctx.font=p.font;var S=a(t.ctx,i[0],p.font),T=a(t.ctx,i[i.length-1],p.font);0!==t.labelRotation?(t.paddingLeft="bottom"===n.position?C*S+3:C*w+3,t.paddingRight="bottom"===n.position?C*w+3:C*T+3):(t.paddingLeft=S/2+3,t.paddingRight=T/2+3)}else l.mirror?y=0:y+=_+w,e.width=Math.min(t.maxWidth,e.width+y),t.paddingTop=p.size/2,t.paddingBottom=p.size/2}t.handleMargins(),t.width=e.width,t.height=e.height},handleMargins:function(){var t=this;t.margins&&(t.paddingLeft=Math.max(t.paddingLeft-t.margins.left,0),t.paddingTop=Math.max(t.paddingTop-t.margins.top,0),t.paddingRight=Math.max(t.paddingRight-t.margins.right,0),t.paddingBottom=Math.max(t.paddingBottom-t.margins.bottom,0))},afterFit:function(){d.callback(this.options.afterFit,[this])},isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(t){if(d.isNullOrUndef(t))return NaN;if("number"==typeof t&&!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},getLabelForIndex:d.noop,getPixelForValue:d.noop,getValueForPixel:d.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var o=e.width-(e.paddingLeft+e.paddingRight),n=o/Math.max(e._ticks.length-(i?0:1),1),a=n*t+e.paddingLeft;i&&(a+=n/2);var r=e.left+Math.round(a);return r+=e.isFullWidth()?e.margins.left:0}var s=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(s/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=e.width-(e.paddingLeft+e.paddingRight),o=i*t+e.paddingLeft,n=e.left+Math.round(o);return n+=e.isFullWidth()?e.margins.left:0}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this,e=t.min,i=t.max;return t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0},_autoSkip:function(t){var e,i,o,n,a,r=this,s=r.isHorizontal(),l=r.options.ticks.minor,h=t.length,u=d.toRadians(r.labelRotation),c=Math.cos(u),f=r.longestLabelWidth*c,p=[];for(l.maxTicksLimit&&(a=l.maxTicksLimit),s&&(e=!1,(f+l.autoSkipPadding)*h>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((f+l.autoSkipPadding)*h/(r.width-(r.paddingLeft+r.paddingRight)))),a&&h>a&&(e=Math.max(e,Math.floor(h/a)))),i=0;i<h;i++)o=t[i],n=e>1&&i%e>0||i%e==0&&i+e>=h,n&&i!==h-1&&delete o.label,p.push(o);return p},draw:function(t){var e=this,i=e.options;if(i.display){var o=e.ctx,a=l.global,h=i.ticks.minor,u=i.ticks.major||h,c=i.gridLines,f=i.scaleLabel,p=0!==e.labelRotation,g=e.isHorizontal(),m=h.autoSkip?e._autoSkip(e.getTicks()):e.getTicks(),v=d.valueOrDefault(h.fontColor,a.defaultFontColor),b=r(h),y=d.valueOrDefault(u.fontColor,a.defaultFontColor),x=r(u),w=c.drawTicks?c.tickMarkLength:0,_=d.valueOrDefault(f.fontColor,a.defaultFontColor),k=r(f),C=d.options.toPadding(f.paddi
easeInBounce:function(t){return 1-n.easeOutBounce(1-t)},easeOutBounce:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},easeInOutBounce:function(t){return t<.5?.5*n.easeInBounce(2*t):.5*n.easeOutBounce(2*t-1)+.5}};e.exports={effects:n},o.easingEffects=n},{43:43}],45:[function(t,e,i){"use strict";var o=t(43);e.exports={toLineHeight:function(t,e){var i=(""+t).match(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/);if(!i||"normal"===i[1])return 1.2*e;switch(t=+i[2],i[3]){case"px":return t;case"%":t/=100}return e*t},toPadding:function(t){var e,i,n,a;return o.isObject(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,a=+t.left||0):e=i=n=a=+t||0,{top:e,right:i,bottom:n,left:a,height:e+n,width:a+i}},resolve:function(t,e,i){var n,a,r;for(n=0,a=t.length;n<a;++n)if(void 0!==(r=t[n])&&(void 0!==e&&"function"==typeof r&&(r=r(e)),void 0!==i&&o.isArray(r)&&(r=r[i]),void 0!==r))return r}}},{43:43}],46:[function(t,e,i){"use strict";e.exports=t(43),e.exports.easing=t(44),e.exports.canvas=t(42),e.exports.options=t(45)},{42:42,43:43,44:44,45:45}],47:[function(t,e,i){e.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},{}],48:[function(t,e,i){"use strict";function o(t,e){var i=m.getStyle(t,e),o=i&&i.match(/^(\d+)(\.\d+)?px$/);return o?Number(o[1]):void 0}function n(t,e){var i=t.style,n=t.getAttribute("height"),a=t.getAttribute("width");if(t[v]={initial:{height:n,width:a,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===a||""===a){var r=o(t,"width");void 0!==r&&(t.width=r)}if(null===n||""===n)if(""===t.style.height)t.height=t.width/(e.options.aspectRatio||2);else{var s=o(t,"height");void 0!==r&&(t.height=s)}return t}function a(t,e,i){t.addEventListener(e,i,C)}function r(t,e,i){t.removeEventListener(e,i,C)}function s(t,e,i,o,n){return{type:t,chart:e,native:n||null,x:void 0!==i?i:null,y:void 0!==o?o:null}}function l(t,e){var i=_[t.type]||t.type,o=m.getRelativePosition(t,e);return s(i,e,o.x,o.y,t)}function h(t,e){var i=!1,o=[];return function(){o=Array.prototype.slice.call(arguments),e=e||this,i||(i=!0,m.requestAnimFrame.call(window,function(){i=!1,t.apply(e,o)}))}}function d(t){var e=document.createElement("div"),i=b+"size-monitor",o="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=o,e.className=i,e.innerHTML='<div class="'+i+'-expand" style="'+o+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+i+'-shrink" style="'+o+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var n=e.childNodes[0],r=e.childNodes[1];e._reset=function(){n.scrollLeft=1e6,n.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var s=function(){e._reset(),t()};return a(n,"scroll",s.bind(n,"expand")),a(r,"scroll",s.bind(r,"shrink")),e}function u(t,e){var i=t[v]||(t[v]={}),o=i.renderProxy=function(t){t.animationName===x&&e()};m.each(w,function(e){a(t,e,o)}),i.reflow=!!t.offsetParent,t.classList.add(y)}function c(t){var e=t[v]||{},i=e.renderProxy;i&&(m.each(w,function(e){r(t,e,i)}),delete e.renderProxy),t.classList.remove(y)}function f(t,e,i){var o=t[v]||(t[v]={}),n=o.resizer=d(h(function(){if(o.resizer)return e(s("resize",i))}));u(t,function(){if(o.resizer){var e=t.parentNode;e&&e!==n.parentNode&&e.insertBefore(n,e.firstChild),n._reset()}})}function p(t){var e=t[v]||{},i=e.resizer;delete e.resizer,c(t),i&&i.parentNode&&i.parentNode.removeChild(i)}function g(t,e){var i=t._style||document.createElement("style");t._style||(t._style=i,e="/* Chart.js */\n"+e,i.setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))}var m=t(46),v="$chartjs",b="chartjs-",y=b+"render-monitor",x=b+"render-animation",w=["animationstart","webkitAnimationStart"],_={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"
return t*(2*Math.PI/e(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){var e=this;if(null===t)return 0;var i=e.drawingArea/(e.max-e.min);return e.options.ticks.reverse?(e.max-t)*i:(t-e.min)*i},getPointPosition:function(t,e){var i=this,o=i.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(o)*e)+i.xCenter,y:Math.round(Math.sin(o)*e)+i.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this,e=t.min,i=t.max;return t.getPointPositionForValue(0,t.beginAtZero?0:e<0&&i<0?i:e>0&&i>0?e:0)},draw:function(){var t=this,e=t.options,i=e.gridLines,o=e.ticks,a=n.valueOrDefault;if(e.display){var r=t.ctx,s=this.getIndexAngle(0),l=a(o.fontSize,v.defaultFontSize),h=a(o.fontStyle,v.defaultFontStyle),d=a(o.fontFamily,v.defaultFontFamily),u=n.fontString(l,h,d);n.each(t.ticks,function(e,n){if(n>0||o.reverse){var h=t.getDistanceFromCenterForValue(t.ticksAsNumbers[n]);if(i.display&&0!==n&&g(t,i,h,n),o.display){var d=a(o.fontColor,v.defaultFontColor);if(r.font=u,r.save(),r.translate(t.xCenter,t.yCenter),r.rotate(s),o.showLabelBackdrop){var c=r.measureText(e).width;r.fillStyle=o.backdropColor,r.fillRect(-c/2-o.backdropPaddingX,-h-l/2-o.backdropPaddingY,c+2*o.backdropPaddingX,l+2*o.backdropPaddingY)}r.textAlign="center",r.textBaseline="middle",r.fillStyle=d,r.fillText(e,0,-h),r.restore()}}}),(e.angleLines.display||e.pointLabels.display)&&p(t)}}});a.registerScaleType("radialLinear",y,b)}},{26:26,34:34,35:35,46:46}],59:[function(t,e,i){"use strict";function o(t,e){return t-e}function n(t){var e,i,o,n={},a=[];for(e=0,i=t.length;e<i;++e)o=t[e],n[o]||(n[o]=!0,a.push(o));return a}function a(t,e,i,o){if("linear"===o||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var n,a,r,s,l,h=[],d=[e];for(n=0,a=t.length;n<a;++n)(s=t[n])>e&&s<i&&d.push(s);for(d.push(i),n=0,a=d.length;n<a;++n)l=d[n+1],r=d[n-1],s=d[n],void 0!==r&&void 0!==l&&Math.round((l+r)/2)===s||h.push({time:s,pos:n/(a-1)});return h}function r(t,e,i){for(var o,n,a,r=0,s=t.length-1;r>=0&&r<=s;){if(o=r+s>>1,n=t[o-1]||null,a=t[o],!n)return{lo:null,hi:a};if(a[e]<i)r=o+1;else{if(!(n[e]>i))return{lo:n,hi:a};s=o-1}}return{lo:a,hi:null}}function s(t,e,i,o){var n=r(t,e,i),a=n.lo?n.hi?n.lo:t[t.length-2]:t[0],s=n.lo?n.hi?n.hi:t[t.length-1]:t[1],l=s[e]-a[e],h=l?(i-a[e])/l:0,d=(s[o]-a[o])*h;return a[o]+d}function l(t,e){var i=e.parser,o=e.parser||e.format;return"function"==typeof i?i(t):"string"==typeof t&&"string"==typeof o?b(t,o):(t instanceof b||(t=b(t)),t.isValid()?t:"function"==typeof o?o(t):t)}function h(t,e){if(x.isNullOrUndef(t))return null;var i=e.options.time,o=l(e.getRightValue(t),i);return o.isValid()?(i.round&&o.startOf(i.round),o.valueOf()):null}function d(t,e,i,o){var n,a,r,s=e-t,l=D[i],h=l.size,d=l.steps;if(!d)return Math.ceil(s/(o*h));for(n=0,a=d.length;n<a&&(r=d[n],!(Math.ceil(s/(h*r))<=o));++n);return r}function u(t,e,i,o){var n,a,r,s=M.length;for(n=M.indexOf(t);n<s-1;++n)if(a=D[M[n]],r=a.steps?a.steps[a.steps.length-1]:C,a.common&&Math.ceil((i-e)/(r*a.size))<=o)return M[n];return M[s-1]}function c(t,e,i,o){var n,a,r=b.duration(b(o).diff(b(i))),s=M.length;for(n=s-1;n>=M.indexOf(e);n--)if(a=M[n],D[a].common&&r.as(a)>=t.length)return a;return M[e?M.indexOf(e):0]}function f(t){for(var e=M.indexOf(t)+1,i=M.length;e<i;++e)if(D[M[e]].common)return M[e]}function p(t,e,i,o){var n,a=o.time,r=a.unit||u(a.minUnit,t,e,i),s=f(r),l=x.valueOrDefault(a.stepSize,a.unitStepSize),h="week"===r&&a.isoWeekday,c=o.ticks.major.enabled,p=D[r],g=b(t),m=b(e),v=[];for(l||(l=d(t,e,r,i)),h&&(g=g.isoWeekday(h),m=m.isoWeekday(h)),g=g.startOf(h?"day":r),m=m.startOf(h?"day":r),m<e&&m.add(1,r),n=b(g),c&&s&&!h&&!a.round&&(n.startOf(s),n.add(~~((g-n)/(p.size*l))*l,r));n<m;n.add(l,r))v.push(+n);return v.push(+n),v}function g(t,e,i,o,n){var a,r,l=0,h=0;return n.offset&&e.length&&(n.time.min||(a=e.length>1?e[1]:o,r=e[0],l=(s(t,"time",a,"pos")-s(t,"time",r,"pos"))/2),n.time.max||(a=e[e.length-1],r=e.length>1?e[e.length-2]:i,h=(s(t,"