snipe-it/public/js/build/vendor.js

13 lines
361 KiB
JavaScript
Raw Normal View History

if("undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");!function(t){"use strict";function e(e,i){if(this.element=e,this.options=i,this.$overlay=t(i.overlayTemplate),""===i.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()}function i(i){return this.each(function(){var r=t(this),o=r.data(n);if(!o){var s=t.extend({},a,r.data(),"object"==typeof i&&i);r.data(n,o=new e(r,s))}if("string"==typeof o){if(void 0===o[i])throw new Error("No method named "+i);o[i]()}})}var n="lte.boxrefresh",a={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}};e.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.element).find(this.options.content).html(e),this.options.onLoadDone.call(t(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},e.prototype._setUpListeners=function(){t(this.element).on("click",this.options.trigger,function(t){t&&t.preventDefault(),this.load()}.bind(this))},e.prototype._addOverlay=function(){t(this.element).append(this.$overlay)},e.prototype._removeOverlay=function(){t(this.$overlay).remove()};var r=t.fn.boxRefresh;t.fn.boxRefresh=i,t.fn.boxRefresh.Constructor=e,t.fn.boxRefresh.noConflict=function(){return t.fn.boxRefresh=r,this},t(window).on("load",function(){t('[data-widget="box-refresh"]').each(function(){i.call(t(this))})})}(jQuery),function(t){"use strict";function e(t,e){this.element=t,this.options=e,this._setUpListeners()}function i(i){return this.each(function(){var r=t(this),o=r.data(n);if(!o){var s=t.extend({},a,r.data(),"object"==typeof i&&i);r.data(n,o=new e(r,s))}if("string"==typeof i){if(void 0===o[i])throw new Error("No method named "+i);o[i]()}})}var n="lte.boxwidget",a={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},r=".box-header",o=".box-body",s=".box-footer",l=".box-tools",d="collapsed-box";e.prototype.toggle=function(){t(this.element).is(".collapsed-box")?this.expand():this.collapse()},e.prototype.expand=function(){var e=t.Event("expanded.boxwidget"),i=t.Event("expanding.boxwidget"),n=this.options.collapseIcon,a=this.options.expandIcon;t(this.element).removeClass(d),t(this.element).children(r+", "+o+", "+s).children(l).find("."+a).removeClass(a).addClass(n),t(this.element).children(o+", "+s).slideDown(this.options.animationSpeed,function(){t(this.element).trigger(e)}.bind(this)).trigger(i)},e.prototype.collapse=function(){var e=t.Event("collapsed.boxwidget"),i=t.Event("collapsing.boxwidget"),n=this.options.collapseIcon,a=this.options.expandIcon;t(this.element).children(r+", "+o+", "+s).children(l).find("."+n).removeClass(n).addClass(a),t(this.element).children(o+", "+s).slideUp(this.options.animationSpeed,function(){t(this.element).addClass(d),t(this.element).trigger(e)}.bind(this)).trigger(i)},e.prototype.remove=function(){var e=t.Event("removed.boxwidget"),i=t.Event("removing.boxwidget");t(this.element).slideUp(this.options.animationSpeed,function(){t(this.element).trigger(e),t(this.element).remove()}.bind(this)).trigger(i)},e.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 h=t.fn.boxWidget;t.fn.boxWidget=i,t.fn.boxWidget.Constructor=e,t.fn.boxWidget.noConflict=function(){return t.fn.boxWidget=h,this},t(window).on("load",function(){t(".box").each(function(){i.call(t(this))})})}(jQuery),function(t){"use strict";function e(t,e){this.element=t,this.options=e,this.hasBindedResi
var i=[],n=!0,a=!1,r=void 0;try{for(var o,s=t[Symbol.iterator]();!(n=(o=s.next()).done)&&(i.push(o.value),!e||i.length!==e);n=!0);}catch(t){a=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(a)throw r}}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")}}(),E=_.Utils,a=E.getBounds,s=E.extend,f=E.updateClasses,T=E.defer,$=["left","top","right","bottom"];_.modules.push({position:function(t){var e=this,i=t.top,n=t.left,r=t.targetAttachment;if(!this.options.constraints)return!0;var o=this.cache("element-bounds",function(){return a(e.element)}),l=o.height,d=o.width;if(0===d&&0===l&&void 0!==this.lastSize){var h=this.lastSize;d=h.width,l=h.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({},r),b=s({},this.attachment);return this.options.constraints.forEach(function(t){var a=t.to,o=t.attachment,s=t.pin;void 0===o&&(o="");var h=void 0,u=void 0;if(o.indexOf(" ")>=0){var f=o.split(" "),g=I(f,2);u=g[0],h=g[1]}else h=u=o;var x=y(e,a);"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"!==h&&"both"!==h||(n<x[0]&&"left"===v.left&&(n+=p,v.left="right"),n+d>x[2]&&"right"===v.left&&(n-=p,v.left="left")),"together"===h&&(n<x[0]&&"left"===v.left?"right"===b.left?(n+=p,v.left="right",n+=d,b.left="left"):"left"===b.left&&(n+=p,v.left="right",n-=d,b.left="right"):n+d>x[2]&&"right"===v.left?"left"===b.left?(n-=p,v.left="left",n-=d,b.left="right"):"right"===b.left&&(n-=p,v.left="left",n+=d,b.left="left"):"center"===v.left&&(n+d>x[2]&&"left"===b.left?(n-=d,b.left="right"):n<x[0]&&"right"===b.left&&(n+=d,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"!==h&&"both"!==h||(n<x[0]&&("right"===b.left?(n+=d,b.left="left"):"center"===b.left&&(n+=d/2,b.left="left")),n+d>x[2]&&("left"===b.left?(n-=d,b.left="right"):"center"===b.left&&(n-=d/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],_.push("top")):w.push("top")),i+l>x[3]&&(s.indexOf("bottom")>=0?(i=x[3]-l,_.push("bottom")):w.push("bottom")),n<x[0]&&(s.indexOf("left")>=0?(n=x[0],_.push("left")):w.push("left")),n+d>x[2]&&(s.indexOf("right")>=0?(n=x[2]-d,_.push("right")):w.push("right")),_.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),m.push(t),_.forEach(function(e){m.push(t+"-"+e)})}(),w.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),m.push(t),w.forEach(function(e){m.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(b.left=v.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(b.top=v.top=!1),v.top===r.top&&v.left===r.left&&b.top===e.attachment.top&&b.left===e.attachment.left||(e.updateAttachClasses(b,v),e.trigger("update",{attachment:b,targetAttachment:v}))}),T(function(){!1!==e.options.addTargetClasses&&f(e.target,m,g),f(e.element,m,g)}),{top:i,left:n}}});var E=_.Utils,a=E.getBounds,f=E.updateClasses,T=E.defer;_.modules.push({positio
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,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a),t*=360;var a,r,o,s,l;return t=t%360/60,l=i*e,s=l*(1-Math.abs(t%2-1)),a=r=o=i-l,t=~~t,a+=[l,s,0,0,s,l][t],r+=[s,l,l,s,0,0][t],o+=[0,0,s,l,l,s][t],{r:Math.round(255*a),g:Math.round(255*r),b:Math.round(255*o),a:n}},toHex:function(t,e,i,n,a){arguments.length<=1&&(e=this.value.h,i=this.value.s,n=this.value.b,a=this.value.a);var r="#",o=this.toRGB(e,i,n,a);return this.rgbaIsTransparent(o)?"transparent":(t||(r=this.hexNumberSignPrefix?"#":""),r+((1<<24)+(parseInt(o.r)<<16)+(parseInt(o.g)<<8)+parseInt(o.b)).toString(16).slice(1))},toHSL:function(t,e,i,n){0===arguments.length&&(t=this.value.h,e=this.value.s,i=this.value.b,n=this.value.a);var a=t,r=(2-e)*i,o=e*i;return o/=r>0&&r<=1?r:2-r,r/=2,o>1&&(o=1),{h:isNaN(a)?0:a,s:isNaN(o)?0:o,l:isNaN(r)?0:r,a:isNaN(n)?0:n}},toAlias:function(t,e,i,n){var a,r=0===arguments.length?this.toHex(!0):this.
this.picker.addClass("datepicker-orient-"+g),"top"===g?f-=i+parseInt(this.picker.css("padding-top")):f+=h,this.o.rtl){var m=a-(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=[],n=!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)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=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),n?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&n&&(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="",n=0;n<12;n++)t=e&&e.getMonth()===n?" focused":"",i+='<span class="month'+t+'">'+m[this.o.language].monthsShort[n]+"</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=[],r=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),s=n();return e.getUTCFullYear()<r||e.getUTCFullYear()===r&&e.getUTCMonth()<o?i.push("old"):(e.getUTCFullYear()>r||e.getUTCFullYear()===r&&e.getUTCMonth()>o)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&a(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,n,a,r,o,s,l){for(var d,h,u,c="",f=a/10,p=this.picker.find(i),g=Math.floor(r/a)*a,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)d=[n],h=null,y===g-f?d.push("old"):y===m+f&&d.push("new"),-1!==t.inArray(y,b)&&d.push("active"),(y<o||y>s)&&d.push("disabled"),y===v&&d.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&&d.push("disabled"),u.classes&&(d=d.concat(u.classes.split(/\s+/))),u.tooltip&&(h=u.tooltip)),c+='<span class="'+d.join(" ")+'"'+(h?' title="'+h+'"':"")+">"+y+"</span>";p.find(".datepicker-switch").text(g+"-"+m),p.find("td").html(c)},fill:function(){var a,r,o=new Date(this.viewDate),s=o.getUTCFullYear(),l=o.getUTCMonth(),d=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,f=m[this.o.language
;return e.html('<div class="embed-responsive embed-responsive-16by9"><video width="'+i+'" height="'+n+'" src="'+t+'" preload="auto" autoplay controls class="embed-responsive-item"></video></div>'),this._resize(i,n),this._config.onContentLoaded.call(this),this._$modalArrows&&this._$modalArrows.css("display","none"),this._toggleLoading(!1),this}},{key:"_loadRemoteContent",value:function(e,i){var n=this,a=this._$element.data("width")||560,r=this._$element.data("height")||560,o=this._$element.data("disableExternalCheck")||!1;return this._toggleLoading(!1),o||this._isExternal(e)?(i.html('<iframe src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this._config.onContentLoaded.call(this)):i.load(e,t.proxy(function(){return n._$element.trigger("loaded.bs.modal")})),this._$modalArrows&&this._$modalArrows.css("display","none"),this._resize(a,r),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 n=t(this._$galleryItems.get(e),!1);if(void 0!==n){var a=n.attr("data-remote")||n.attr("href");return("image"===n.attr("data-type")||this._isImage(a))&&this._preloadImage(a,!1),i>0?this._preloadImageByIndex(e+1,i-1):void 0}}}},{key:"_preloadImage",value:function(e,i){var n=this;i=i||!1;var a=new Image;return i&&function(){var r=setTimeout(function(){i.append(n._config.loadingMessage)},200);a.onload=function(){r&&clearTimeout(r),r=null;var e=t("<img />");return e.attr("src",a.src),e.addClass("img-fluid"),e.css("width","100%"),i.html(e),n._$modalArrows&&n._$modalArrows.css("display",""),n._resize(a.width,a.height),n._toggleLoading(!1),n._config.onContentLoaded.call(n)},a.onerror=function(){return n._toggleLoading(!1),n._error(n._config.strings.fail+" "+e)}}(),a.src=e,a}},{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 n=e/i,a=this._padding.left+this._padding.right+this._border.left+this._border.right,r=this._config.doc.body.clientWidth>575?20:0,o=this._config.doc.body.clientWidth>575?0:20,s=Math.min(e+a,this._config.doc.body.clientWidth-r,this._config.maxWidth);e+a>s?(i=(s-a-o)/n,e=s):e+=a;var l=0,d=0;this._footerIsShown&&(d=this._$modalFooter.outerHeight(!0)||55),this._titleIsShown&&(l=this._$modalHeader.outerHeight(!0)||67);var h=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()-h-u-l-d,this._config.maxHeight-h-l-d);i>c&&(e=Math.ceil(c*n)+a),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 a=t(i),r=t.extend({},n.Default,a.data(),"object"==typeof e&&e);new n(i,r)})}}]),n}();t.fn[n]=o._jQueryInterface,t.fn[n].Constructor=o,t.fn[n].noConflict=function(){return t.fn[n]=a,o._jQueryInterface}}(jQuery)}(jQuery),function(t){function e(t,e,a){var r=t[0],o=/er/.test(a)?g:/bl/.test(a)?f:u,s=a==m?{checked:r[u],disabled:r[f],indeterminate:"true"==t.attr(g)||"false"==t.attr(p)}:r[o];if(/^(ch|di|in)/.test(a)&&!s)i(t,o);else if(/^(un|en|de)/.test(a)&&s)n(t,o);else if(a==m)for(var l in s)s[l]?i(t,l,!0):n(t,l,!0);else e&&"toggle"!=a||(e||t[_]("ifClicked"),s?r[v]!==h&&n(t,o):i(t,o))}function i(e,i,a){var m=e[0],b=e.parent(),_=i==u,w=i==g,C=i==f,M=w?p:_?c:"enabled",D=r(e,M+o(m[v])),S=r(e
;r=Math.ceil(p/g)-Math.floor(f/g),r>d&&(g=Si.niceNum(r*g/d/l)*l),s||ga(c)?i=Math.pow(10,Si._decimalPlaces(g)):(i=Math.pow(10,c),g=Math.ceil(g*i)/i),n=Math.floor(f/g)*g,a=Math.ceil(p/g)*g,s&&(!ga(h)&&Si.almostWhole(h/g,g/1e3)&&(n=h),!ga(u)&&Si.almostWhole(u/g,g/1e3)&&(a=u)),r=(a-n)/g,r=Si.almostEquals(r,Math.round(r),g/1e3)?Math.round(r):Math.ceil(r),n=Math.round(n*i)/i,a=Math.round(a*i)/i,o.push(ga(h)?n:h);for(var m=1;m<r;++m)o.push(Math.round((n+m*g)*i)/i);return o.push(ga(u)?a:u),o}function ne(t,e,i){var n=[i.type,void 0===e&&void 0===i.stack?i.index:"",i.stack].join(".");return void 0===t[n]&&(t[n]={pos:[],neg:[]}),t[n]}function ae(t,e,i,n){var a,r,o=t.options,s=o.stacked,l=ne(e,s,i),d=l.pos,h=l.neg,u=n.length;for(a=0;a<u;++a)r=t._parseValue(n[a]),isNaN(r.min)||isNaN(r.max)||i.data[a].hidden||(d[a]=d[a]||0,h[a]=h[a]||0,o.relativePoints?d[a]=100:r.min<0||r.max<0?h[a]+=r.min:d[a]+=r.max)}function re(t,e,i){var n,a,r=i.length;for(n=0;n<r;++n)a=t._parseValue(i[n]),isNaN(a.min)||isNaN(a.max)||e.data[n].hidden||(t.min=Math.min(t.min,a.min),t.max=Math.max(t.max,a.max))}function oe(t,e){var i,n,a=[],r=xa(t.min,Math.pow(10,Math.floor(_a(e.min)))),o=Math.floor(_a(e.max)),s=Math.ceil(e.max/Math.pow(10,o));0===r?(i=Math.floor(_a(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,i)),a.push(r),r=n*Math.pow(10,i)):(i=Math.floor(_a(r)),n=Math.floor(r/Math.pow(10,i)));var l=i<0?Math.pow(10,Math.abs(i)):1;do{a.push(r),++n,10===n&&(n=1,++i,l=i>=0?1:l),r=Math.round(n*Math.pow(10,i)*l)/l}while(i<o||i===o&&n<s);var d=xa(t.max,r);return a.push(d),a}function se(t,e){return Si.isFinite(t)&&t>=0?t:e}function le(t){var e=t.ticks;return e.display&&t.display?Ma(e.fontSize,mi.global.defaultFontSize)+2*e.backdropPaddingY:0}function de(t,e,i){return Si.isArray(i)?{w:Si.longestText(t,t.font,i),h:i.length*e}:{w:t.measureText(i).width,h:e}}function he(t,e,i,n,a){return t===n||t===a?{start:e-i/2,end:e+i/2}:t<n||t>a?{start:e-i,end:e}:{start:e,end:e+i}}function ue(t){var e,i,n,a=Si.options._parseFont(t.options.pointLabels),r={l:0,r:t.width,t:0,b:t.height-t.paddingTop},o={};t.ctx.font=a.string,t._pointLabelSizes=[];var s=t.chart.data.labels.length;for(e=0;e<s;e++){n=t.getPointPosition(e,t.drawingArea+5),i=de(t.ctx,a.lineHeight,t.pointLabels[e]),t._pointLabelSizes[e]=i;var l=t.getIndexAngle(e),d=Si.toDegrees(l)%360,h=he(d,n.x,i.w,0,180),u=he(d,n.y,i.h,90,270);h.start<r.l&&(r.l=h.start,o.l=l),h.end>r.r&&(r.r=h.end,o.r=l),u.start<r.t&&(r.t=u.start,o.t=l),u.end>r.b&&(r.b=u.end,o.b=l)}t.setReductions(t.drawingArea,r,o)}function ce(t){return 0===t||180===t?"center":t<180?"left":"right"}function fe(t,e,i,n){var a,r,o=i.y+n/2;if(Si.isArray(e))for(a=0,r=e.length;a<r;++a)t.fillText(e[a],i.x,o),o+=n;else t.fillText(e,i.x,o)}function pe(t,e,i){90===t||270===t?i.y-=e.h/2:(t>270||t<90)&&(i.y-=e.h)}function ge(t){var e=t.ctx,i=t.options,n=i.pointLabels,a=le(i),r=t.getDistanceFromCenterForValue(i.ticks.reverse?t.min:t.max),o=Si.options._parseFont(n);e.save(),e.font=o.string,e.textBaseline="middle";for(var s=t.chart.data.labels.length-1;s>=0;s--){var l=0===s?a/2:0,d=t.getPointPosition(s,r+l+5),h=Da(n.fontColor,s,mi.global.defaultFontColor);e.fillStyle=h;var u=t.getIndexAngle(s),c=Si.toDegrees(u);e.textAlign=ce(c),pe(c,t._pointLabelSizes[s],d),fe(e,t.pointLabels[s],d,o.lineHeight)}e.restore()}function me(t,e,i,n){var a,r=t.ctx,o=e.circular,s=t.chart.data.labels.length,l=Da(e.color,n-1),d=Da(e.lineWidth,n-1);if((o||s)&&l&&d){if(r.save(),r.strokeStyle=l,r.lineWidth=d,r.setLineDash&&(r.setLineDash(e.borderDash||[]),r.lineDashOffset=e.borderDashOffset||0),r.beginPath(),o)r.arc(t.xCenter,t.yCenter,i,0,2*Math.PI);else{a=t.getPointPosition(0,i),r.moveTo(a.x,a.y);for(var h=1;h<s;h++)a=t.getPointPosition(h,i),r.lineTo(a.x,a.y)}r.closePath(),r.stroke(),r.restore()}}function ve(t){return Si.isNumber(t)?t:0}function be(t,e){return t-e}function ye(t){var e,i,n,a={},r=[];for(e=0,i=t.length;e<i;++e)n=t[e],a[n]||(a[n]=!0,r.push(n));return r}function xe(t){return Si.valueOrDefault(t.time.min,t.ticks.min)}function _e(t){return Si.valueOrDefault(t.time.max,t.ticks.max)}function we(t,e,i,n
isArray:function(t){if(Array.isArray&&Array.isArray(t))return!0;var e=Object.prototype.toString.call(t);return"[object"===e.substr(0,7)&&"Array]"===e.substr(-6)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},isFinite:function(t){return("number"==typeof t||t instanceof Number)&&isFinite(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return ni.valueOrDefault(ni.isArray(t)?t[e]:t,i)},callback:function(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)},each:function(t,e,i,n){var a,r,o;if(ni.isArray(t))if(r=t.length,n)for(a=r-1;a>=0;a--)e.call(i,t[a],a);else for(a=0;a<r;a++)e.call(i,t[a],a);else if(ni.isObject(t))for(o=Object.keys(t),r=o.length,a=0;a<r;a++)e.call(i,t[o[a]],o[a])},arrayEquals:function(t,e){var i,n,a,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(a=t[i],r=e[i],a instanceof Array&&r instanceof Array){if(!ni.arrayEquals(a,r))return!1}else if(a!==r)return!1;return!0},clone:function(t){if(ni.isArray(t))return t.map(ni.clone);if(ni.isObject(t)){for(var e=Object.create(t),i=Object.keys(t),n=i.length,a=0;a<n;++a)e[i[a]]=ni.clone(t[i[a]]);return e}return t},_merger:function(t,e,i,n){if(C(t)){var a=e[t],r=i[t];ni.isObject(a)&&ni.isObject(r)?ni.merge(a,r,n):e[t]=ni.clone(r)}},_mergerIf:function(t,e,i){if(C(t)){var n=e[t],a=i[t];ni.isObject(n)&&ni.isObject(a)?ni.mergeIf(n,a):e.hasOwnProperty(t)||(e[t]=ni.clone(a))}},merge:function(t,e,i){var n,a,r,o,s,l=ni.isArray(e)?e:[e],d=l.length;if(!ni.isObject(t))return t;for(i=i||{},n=i.merger||ni._merger,a=0;a<d;++a)if(e=l[a],ni.isObject(e))for(r=Object.keys(e),s=0,o=r.length;s<o;++s)n(r[s],t,e,i);return t},mergeIf:function(t,e){return ni.merge(t,e,{merger:ni._mergerIf})},extend:Object.assign||function(t){return ni.merge(t,[].slice.call(arguments,1),{merger:function(t,e,i){e[t]=i[t]}})},inherits:function(t){var e=this,i=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return e.apply(this,arguments)},n=function(){this.constructor=i};return n.prototype=e.prototype,i.prototype=new n,i.extend=ni.inherits,t&&ni.extend(i.prototype,t),i.__super__=e.prototype,i},_deprecated:function(t,e,i,n){void 0!==e&&console.warn(t+': "'+i+'" is deprecated. Please use "'+n+'" instead')}},ai=ni;ni.callCallback=ni.callback,ni.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},ni.getValueOrDefault=ni.valueOrDefault,ni.getValueAtIndexOrDefault=ni.valueAtIndexOrDefault;var ri={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return-t*(t-2)},easeInOutQuad:function(t){return(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1)},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return(t-=1)*t*t+1},easeInOutCubic:function(t){return(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return-((t-=1)*t*t*t-1)},easeInOutQuart:function(t){return(t/=.5)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return(t-=1)*t*t*t*t+1},easeInOutQuint:function(t){return(t/=.5)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},easeInSine:function(t){return 1-Math.cos(t*(Math.PI/2))},easeOutSine:function(t){return Math.sin(t*(Math.PI/2))},easeInOutSine:function(t){return-.5*(Math.cos(Math.PI*t)-1)},easeInExpo:function(t){return 0===t?0:Math.pow(2,10*(t-1))},easeOutExpo:function(t){return 1===t?1:1-Math.pow(2,-10*t)},easeInOutExpo:function(t){return 0===t?0:1===t?1:(t/=.5)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*--t))},easeInCirc:function(t){return t>=1?t:-(Math.sqrt(1-t*t)-1)},easeOutCirc:function(t){return Math.sqrt(1-(t-=1)*t)},easeInOutCirc:function(t){return(t/=.5)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},easeInElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},easeOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:1===t?1:(i||(i=.3),n<1?(n=1,e=i/4):e=i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,
o.offsetX=u*o.outerRadius,o.offsetY=c*o.outerRadius,f.total=r.calculateTotal(),r.outerRadius=o.outerRadius-o.radiusLength*r._getRingWeightOffset(r.index),r.innerRadius=Math.max(r.outerRadius-o.radiusLength*v,0),n=0,a=p.length;n<a;++n)r.updateElement(p[n],n,t)},updateElement:function(t,e,i){var n=this,a=n.chart,r=a.chartArea,o=a.options,s=o.animation,l=(r.left+r.right)/2,d=(r.top+r.bottom)/2,h=o.rotation,u=o.rotation,c=n.getDataset(),f=i&&s.animateRotate?0:t.hidden?0:n.calculateCircumference(c.data[e])*(o.circumference/cn),p=i&&s.animateScale?0:n.innerRadius,g=i&&s.animateScale?0:n.outerRadius,m=t._options||{};Si.extend(t,{_datasetIndex:n.index,_index:e,_model:{backgroundColor:m.backgroundColor,borderColor:m.borderColor,borderWidth:m.borderWidth,borderAlign:m.borderAlign,x:l+a.offsetX,y:d+a.offsetY,startAngle:h,endAngle:u,circumference:f,outerRadius:g,innerRadius:p,label:Si.valueAtIndexOrDefault(c.label,e,a.data.labels[e])}});var v=t._model;i&&s.animateRotate||(v.startAngle=0===e?o.rotation:n.getMeta().data[e-1]._model.endAngle,v.endAngle=v.startAngle+v.circumference),t.pivot()},calculateTotal:function(){var t,e=this.getDataset(),i=this.getMeta(),n=0;return Si.each(i.data,function(i,a){t=e.data[a],isNaN(t)||i.hidden||(n+=Math.abs(t))}),n},calculateCircumference:function(t){var e=this.getMeta().total;return e>0&&!isNaN(t)?cn*(Math.abs(t)/e):0},getMaxBorderWidth:function(t){var e,i,n,a,r,o,s,l,d=this,h=0,u=d.chart;if(!t)for(e=0,i=u.data.datasets.length;e<i;++e)if(u.isDatasetVisible(e)){n=u.getDatasetMeta(e),t=n.data,e!==d.index&&(r=n.controller);break}if(!t)return 0;for(e=0,i=t.length;e<i;++e)a=t[e],r?(r._configure(),o=r._resolveDataElementOptions(a,e)):o=a._options,"inner"!==o.borderAlign&&(s=o.borderWidth,l=o.hoverBorderWidth,h=s>h?s:h,h=l>h?l:h);return h},setHoverStyle:function(t){var e=t._model,i=t._options,n=Si.getHoverColor;t.$previousStyle={backgroundColor:e.backgroundColor,borderColor:e.borderColor,borderWidth:e.borderWidth},e.backgroundColor=hn(i.hoverBackgroundColor,n(i.backgroundColor)),e.borderColor=hn(i.hoverBorderColor,n(i.borderColor)),e.borderWidth=hn(i.hoverBorderWidth,i.borderWidth)},_getRingWeightOffset:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e},_getRingWeight:function(t){return Math.max(hn(this.chart.data.datasets[t].weight,1),0)},_getVisibleDatasetWeightTotal:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)}});mi._set("horizontalBar",{hover:{mode:"index",axis:"y"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{type:"category",position:"left",offset:!0,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{mode:"index",axis:"y"}}),mi._set("global",{datasets:{horizontalBar:{categoryPercentage:.8,barPercentage:.9}}});var gn=on.extend({_getValueScaleId:function(){return this.getMeta().xAxisID},_getIndexScaleId:function(){return this.getMeta().yAxisID}}),mn=Si.valueOrDefault,vn=Si.options.resolve,bn=Si.canvas._isPointInArea;mi._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}});var yn=Ui.extend({datasetElementType:Zi.Line,dataElementType:Zi.Point,_datasetElementOptions:["backgroundColor","borderCapStyle","borderColor","borderDash","borderDashOffset","borderJoinStyle","borderWidth","cubicInterpolationMode","fill"],_dataElementOptions:{backgroundColor:"pointBackgroundColor",borderColor:"pointBorderColor",borderWidth:"pointBorderWidth",hitRadius:"pointHitRadius",hoverBackgroundColor:"pointHoverBackgroundColor",hoverBorderColor:"pointHoverBorderColor",hoverBorderWidth:"pointHoverBorderWidth",hoverRadius:"pointHoverRadius",pointStyle:"pointStyle",radius:"pointRadius",rotation:"pointRotation"},update:function(t){var e,i,n=this,a=n.getMeta(),r=a.dataset,o=a.data||[],s=n.chart.options,l=n._config,d=n._showLine=mn(l.showLine,s.showLines);for(n._xScale=n.getScaleForId(a.xAxisID),n._yScale=n.getScaleForId(a.yAxisID),d&&(void 0!==l.tension&&void 0===l.lineTension&&(l.lineTension=l.tension),r.
qn.addScalesToLayout(this)},buildOrUpdateControllers:function(){var t,e,i=this,n=[],a=i.data.datasets;for(t=0,e=a.length;t<e;t++){var r=a[t],o=i.getDatasetMeta(t),s=r.type||i.config.type;if(o.type&&o.type!==s&&(i.destroyDatasetMeta(t),o=i.getDatasetMeta(t)),o.type=s,o.order=r.order||0,o.index=t,o.controller)o.controller.updateIndex(t),o.controller.linkScales();else{var l=Dn[o.type];if(void 0===l)throw new Error('"'+o.type+'" is not a chart type.');o.controller=new l(i,t),n.push(o.controller)}}return n},resetElements:function(){var t=this;Si.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,i,n=this;if(t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]}),Nt(n),jn._invalidate(n),!1!==jn.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var a=n.buildOrUpdateControllers();for(e=0,i=n.data.datasets.length;e<i;e++)n.getDatasetMeta(e).controller.buildOrUpdateElements();n.updateLayout(),n.options.animation&&n.options.animation.duration&&Si.each(a,function(t){t.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],jn.notify(n,"afterUpdate"),n._layers.sort(Bt("z","_idx")),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){var t=this;!1!==jn.notify(t,"beforeLayout")&&(An.update(this,this.width,this.height),t._layers=[],Si.each(t.boxes,function(e){e._configure&&e._configure(),t._layers.push.apply(t._layers,e._layers())},t),t._layers.forEach(function(t,e){t._idx=e}),jn.notify(t,"afterScaleUpdate"),jn.notify(t,"afterLayout"))},updateDatasets:function(){var t=this;if(!1!==jn.notify(t,"beforeDatasetsUpdate")){for(var e=0,i=t.data.datasets.length;e<i;++e)t.updateDataset(e);jn.notify(t,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this,i=e.getDatasetMeta(t),n={meta:i,index:t};!1!==jn.notify(e,"beforeDatasetUpdate",[n])&&(i.controller._update(),jn.notify(e,"afterDatasetUpdate",[n]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=e.options.animation,n=Zn(t.duration,i&&i.duration),a=t.lazy;if(!1!==jn.notify(e,"beforeRender")){var r=function(t){jn.notify(e,"afterRender"),Si.callback(i&&i.onComplete,[t],e)};if(i&&n){var o=new Ni({numSteps:n/16.66,easing:t.easing||i.easing,render:function(t,e){var i=Si.easing.effects[e.easing],n=e.currentStep,a=n/e.numSteps;t.draw(i(a),a,n)},onAnimationProgress:i.onProgress,onAnimationComplete:r});Ri.addAnimation(e,o,n,a)}else e.draw(),r(new Ni({numSteps:0,chart:e}));return e}},draw:function(t){var e,i,n=this;if(n.clear(),Si.isNullOrUndef(t)&&(t=1),n.transition(t),!(n.width<=0||n.height<=0)&&!1!==jn.notify(n,"beforeDraw",[t])){for(i=n._layers,e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(n.chartArea);for(n.drawDatasets(t);e<i.length;++e)i[e].draw(n.chartArea);n._drawTooltip(t),jn.notify(n,"afterDraw",[t])}},transition:function(t){for(var e=this,i=0,n=(e.data.datasets||[]).length;i<n;++i)e.isDatasetVisible(i)&&e.getDatasetMeta(i).controller.transition(t);e.tooltip.transition(t)},_getSortedDatasetMetas:function(t){var e,i,n=this,a=n.data.datasets||[],r=[];for(e=0,i=a.length;e<i;++e)t&&!n.isDatasetVisible(e)||r.push(n.getDatasetMeta(e));return r.sort(Bt("order","index")),r},_getSortedVisibleDatasetMetas:function(){return this._getSortedDatasetMetas(!0)},drawDatasets:function(t){var e,i,n=this;if(!1!==jn.notify(n,"beforeDatasetsDraw",[t])){for(e=n._getSortedVisibleDatasetMetas(),i=e.length-1;i>=0;--i)n.drawDataset(e[i],t);jn.notify(n,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this,n={meta:t,index:t.index,easingValue:e};!1!==jn.notify(i,"beforeDatasetDraw",[n])&&(t.controller.draw(e),jn.notify(i,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this,i=e.tooltip,n={tooltip:i,easingValue:t};!1!==jn.notify(e,"beforeTooltipDraw",[n])&&(i.draw(),jn.notify(e,"afterTooltipDraw",[n]))},getElementAtEvent:function(t){return Sn.modes.single(this,t)},getElementsAtEvent:function(t){return Sn.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:
;if(r.pointLabels.display&&ge(n),o.display&&Si.each(n.ticks,function(t,i){0!==i&&(e=n.getDistanceFromCenterForValue(n.ticksAsNumbers[i]),me(n,o,e,i))}),s.display&&l&&d){for(a.save(),a.lineWidth=l,a.strokeStyle=d,a.setLineDash&&(a.setLineDash(Sa([s.borderDash,o.borderDash,[]])),a.lineDashOffset=Sa([s.borderDashOffset,o.borderDashOffset,0])),t=n.chart.data.labels.length-1;t>=0;t--)e=n.getDistanceFromCenterForValue(r.ticks.reverse?n.min:n.max),i=n.getPointPosition(t,e),a.beginPath(),a.moveTo(n.xCenter,n.yCenter),a.lineTo(i.x,i.y),a.stroke();a.restore()}},_drawLabels:function(){var t=this,e=t.ctx,i=t.options,n=i.ticks;if(n.display){var a,r,o=t.getIndexAngle(0),s=Si.options._parseFont(n),l=Ma(n.fontColor,mi.global.defaultFontColor);e.save(),e.font=s.string,e.translate(t.xCenter,t.yCenter),e.rotate(o),e.textAlign="center",e.textBaseline="middle",Si.each(t.ticks,function(i,o){(0!==o||n.reverse)&&(a=t.getDistanceFromCenterForValue(t.ticksAsNumbers[o]),n.showLabelBackdrop&&(r=e.measureText(i).width,e.fillStyle=n.backdropColor,e.fillRect(-r/2-n.backdropPaddingX,-a-s.size/2-n.backdropPaddingY,r+2*n.backdropPaddingX,s.size+2*n.backdropPaddingY)),e.fillStyle=l,e.fillText(i,0,-a))}),e.restore()}},_drawTitle:Si.noop}),Fa=Ta;Aa._defaults=Fa;var Ia=Si._deprecated,Pa=Si.options.resolve,Ea=Si.valueOrDefault,Oa=Number.MIN_SAFE_INTEGER||-9007199254740991,La=Number.MAX_SAFE_INTEGER||9007199254740991,Na={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}},Ra=Object.keys(Na),Va={position:"bottom",distribution:"linear",bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}},Ba=da.extend({initialize:function(){this.mergeTicksOptions(),da.prototype.initialize.call(this)},update:function(){var t=this,e=t.options,i=e.time||(e.time={}),n=t._adapter=new ia._date(e.adapters.date);return Ia("time scale",i.format,"time.format","time.parser"),Ia("time scale",i.min,"time.min","ticks.min"),Ia("time scale",i.max,"time.max","ticks.max"),Si.mergeIf(i.displayFormats,n.formats()),da.prototype.update.apply(t,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),da.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,i,n,a,r,o,s=this,l=s.chart,d=s._adapter,h=s.options,u=h.time.unit||"day",c=La,f=Oa,p=[],g=[],m=[],v=s._getLabels();for(t=0,i=v.length;t<i;++t)m.push(De(s,v[t]));for(t=0,i=(l.data.datasets||[]).length;t<i;++t)if(l.isDatasetVisible(t))if(a=l.data.datasets[t].data,Si.isObject(a[0]))for(g[t]=[],e=0,n=a.length;e<n;++e)r=De(s,a[e]),p.push(r),g[t][e]=r;else g[t]=m.slice(0),o||(p=p.concat(m),o=!0);else g[t]=[];m.length&&(c=Math.min(c,m[0]),f=Math.max(f,m[m.length-1])),p.length&&(p=i>1?ye(p).sort(be):p.sort(be),c=Math.min(c,p[0]),f=Math.max(f,p[p.length-1])),c=De(s,xe(h))||c,f=De(s,_e(h))||f,c=c===La?+d.startOf(Date.now(),u):c,f=f===Oa?+d.endOf(Date.now(),u)+1:f,s.min=Math.min(c,f),s.max=Math.max(c+1,f),s._table=[],s._timestamps={data:p,datasets:g,labels:m}},buildTicks:function(){var t,e,i,n=this,a=n.min,r=n.max,o=n.options,s=o.ticks,l=o.time,d=n._timestamps,h=[],u=n.getLabelCapacity(a),c=s.source,f=o.distribution;for(d="data"===c||"auto"===c&&"series"===f?d.data:"labels"===c?d.labels:Fe(n,a,r,u),"ticks"===o.bounds&&d.length&&(a=d[0],r=d[d.length-1]),a=De(n,xe(o))||a,r=De(n,_e(o))||r,t=0,e=d.length;t<e;++t)(i=d[t])>=a&&i<=r&&h.push(i);return n.min=a,n.max=r,n._unit=l.unit||(s.autoSkip?Se(l.minUnit,n.min,n.max,u):Te(n,h.length,l.minUnit,n.min,n.max)),n._majorUnit=s.major.enabled&&"year"!==n._unit?Ae(n._unit):void 0,n._table=we(n._timestamps.data,a,r,f),n._offsets=Ie(n._table,h,a,r,o),s.reverse&&h.reverse(),Ee(n,h,n._majorUnit)},getLabelForIndex:function(t,e){var i=this,n=i._adapter,a=i.chart.data,r=i.options.time,o=a.l
"submit"===r?this.$form.trigger("submit"):this.$input.trigger("validation.revalidate"))},n.loadInstance=function(t,e,i){var a,r=e.get(0);return r.asyncValidators||(r.asyncValidators={}),r.asyncValidators[t]?a=r.asyncValidators[t]:(a=new n(i,e),r.asyncValidators[t]=a),a},t.formUtils=t.extend(t.formUtils||{},{asyncValidation:function(t,e,i){return this.warn("Use of deprecated function $.formUtils.asyncValidation, use $.formUtils.addAsyncValidator() instead"),n.loadInstance(t,e,i)},addAsyncValidator:function(e){var i=t.extend({},e),a=i.validatorFunction;i.async=!0,i.validatorFunction=function(t,e,r,o,s,l){return n.loadInstance(this.name,e,s).run(l,function(n){a.apply(i,[n,t,e,r,o,s,l])})},this.addValidator(i)}}),t(e).bind("validatorsLoaded formValidationSetup",function(e,i){i||(i=t("form")),i.find("[data-validation]").each(function(){var e=t(this);e.valAttr("async",!1),t.each(t.split(e.attr("data-validation")),function(i,n){var a=t.formUtils.validators["validate_"+n];a&&a.async&&e.valAttr("async","yes")})})})}(t,window),function(t,e){"use strict";function i(e){e&&"custom"===e.errorMessagePosition&&"function"==typeof e.errorMessageCustom&&(t.formUtils.warn("Use of deprecated function errorMessageCustom, use config.submitErrorMessageCallback instead"),e.submitErrorMessageCallback=function(t,i){e.errorMessageCustom(t,e.language.errorTitle,i,e)})}function n(e){if(e.errorMessagePosition&&"object"==typeof e.errorMessagePosition){t.formUtils.warn("Deprecated use of config parameter errorMessagePosition, use config.submitErrorMessageCallback instead");var i=e.errorMessagePosition;e.errorMessagePosition="top",e.submitErrorMessageCallback=function(){return i}}}function a(e){var i=e.find("[data-validation-if-checked]");i.length&&t.formUtils.warn('Detected use of attribute "data-validation-if-checked" which is deprecated. Use "data-validation-depends-on" provided by module "logic"'),i.on("beforeValidation",function(){var i=t(this),n=i.valAttr("if-checked"),a=t('input[name="'+n+'"]',e),r=a.is(":checked"),o=(t.formUtils.getValue(a)||"").toString(),s=i.valAttr("if-checked-value");(!r||s&&s!==o)&&i.valAttr("skipped",!0)})}function r(e){var i={se:"sv",cz:"cs",dk:"da"};if(e.lang in i){var n=i[e.lang];t.formUtils.warn('Deprecated use of lang code "'+e.lang+'" use "'+n+'" instead'),e.lang=n}}t.fn.validateForm=function(e,i){return t.formUtils.warn("Use of deprecated function $.validateForm, use $.isValid instead"),this.isValid(e,i,!0)},t(window).on("formValidationPluginInit",function(t,e){r(e),i(e),n(e)}).on("validatorsLoaded formValidationSetup",function(e,i){i||(i=t("form")),a(i)})}(t),function(t){"use strict";var e={resolveErrorMessage:function(t,e,i,n,a){var r=n.validationErrorMsgAttribute+"-"+i.replace("validate_",""),o=t.attr(r);return o||(o=t.attr(n.validationErrorMsgAttribute))||(o="function"!=typeof e.errorMessageKey?a[e.errorMessageKey]:a[e.errorMessageKey(n)])||(o=e.errorMessage),o},getParentContainer:function(e){if(e.valAttr("error-msg-container"))return t(e.valAttr("error-msg-container"));var i=e.parent();return"checkbox"===e.attr("type")&&e.closest(".checkbox").length?i=e.closest(".checkbox").parent():"radio"===e.attr("type")&&e.closest(".radio").length&&(i=e.closest(".radio").parent()),i.closest(".input-group").length&&(i=i.closest(".input-group").parent()),i},applyInputErrorStyling:function(t,e){t.addClass(e.errorElementClass).removeClass(e.successElementClass),this.getParentContainer(t).addClass(e.inputParentClassOnError).removeClass(e.inputParentClassOnSuccess),""!==e.borderColorOnError&&t.css("border-color",e.borderColorOnError)},applyInputSuccessStyling:function(t,e){t.addClass(e.successElementClass),this.getParentContainer(t).addClass(e.inputParentClassOnSuccess)},removeInputStylingAndMessage:function(t,i){t.removeClass(i.successElementClass).removeClass(i.errorElementClass).css("border-color","");var n=e.getParentContainer(t);if(n.removeClass(i.inputParentClassOnError).removeClass(i.inputParentClassOnSuccess),"function"==typeof i.inlineErrorMessageCallback){var a=i.inlineErrorMessageCallback(t,!1,i);a&&a.html("")}else n.f
}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=11)}([function(t,e,i){function n(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}var a=i(4),r=/\s+/;Object.prototype.toString;t.exports=function(t){return new n(t)},n.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~a(e,t)||e.push(t),this.el.className=e.join(" "),this},n.prototype.remove=function(t){if(this.list)return this.list.remove(t),this;var e=this.array(),i=a(e,t);return~i&&e.splice(i,1),this.el.className=e.join(" "),this},n.prototype.toggle=function(t,e){return this.list?(void 0!==e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},n.prototype.array=function(){var t=this.el.getAttribute("class")||"",e=t.replace(/^\s+|\s+$/g,""),i=e.split(r);return""===i[0]&&i.shift(),i},n.prototype.has=n.prototype.contains=function(t){return this.list?this.list.contains(t):!!~a(this.array(),t)}},function(t,e,i){var n=window.addEventListener?"addEventListener":"attachEvent",a=window.removeEventListener?"removeEventListener":"detachEvent",r="addEventListener"!==n?"on":"",o=i(5);e.bind=function(t,e,i,a){t=o(t);for(var s=0;s<t.length;s++)t[s][n](r+e,i,a||!1)},e.unbind=function(t,e,i,n){t=o(t);for(var s=0;s<t.length;s++)t[s][a](r+e,i,n||!1)}},function(t,e){t.exports=function(t){return function(e,i,n){var a=this;this._values={},this.found=!1,this.filtered=!1;this.values=function(e,i){if(void 0===e)return a._values;for(var n in e)a._values[n]=e[n];!0!==i&&t.templater.set(a,a.values())},this.show=function(){t.templater.show(a)},this.hide=function(){t.templater.hide(a)},this.matching=function(){return t.filtered&&t.searched&&a.found&&a.filtered||t.filtered&&!t.searched&&a.filtered||!t.filtered&&t.searched&&a.found||!t.filtered&&!t.searched},this.visible=function(){return!(!a.elm||a.elm.parentNode!=t.list)},function(e,i,n){if(void 0===i)n?a.values(e,n):a.values(e);else{a.elm=i;var r=t.templater.get(a,e);a.values(r)}}(e,i,n)}}},function(t,e){var i=function(t,e,i){return i?t.getElementsByClassName(e)[0]:t.getElementsByClassName(e)},n=function(t,e,i){return e="."+e,i?t.querySelector(e):t.querySelectorAll(e)},a=function(t,e,i){for(var n=[],a=t.getElementsByTagName("*"),r=a.length,o=new RegExp("(^|\\s)"+e+"(\\s|$)"),s=0,l=0;s<r;s++)if(o.test(a[s].className)){if(i)return a[s];n[l]=a[s],l++}return n};t.exports=function(){return function(t,e,r,o){return o=o||{},o.test&&o.getElementsByClassName||!o.test&&document.getElementsByClassName?i(t,e,r):o.test&&o.querySelector||!o.test&&document.querySelector?n(t,e,r):a(t,e,r)}}()},function(t,e){var i=[].indexOf;t.exports=function(t,e){if(i)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},function(t,e){function i(t){return"[object Array]"===Object.prototype.toString.call(t)}t.exports=function(t){if(void 0===t)return[];if(null===t)return[null];if(t===window)return[window];if("string"==typeof t)return[t];if(i(t))return t;if("number"!=typeof t.length)return[t];if("function"==typeof t&&t instanceof Function)return[t];for(var e=[],n=0;n<t.length;n++)(Object.prototype.hasOwnProperty.call(t,n)||n in t)&&e.push(t[n]);return e.length?e:[]}},function(t,e){t.exports=function(t){return t=void 0===t?"":t,t=null===t?"":t,t=t.toString()}},function(t,e){t.exports=function(t){for(var e,i=Array.prototype.slice.call(arguments,1),n=0;e=i[n];n++)if(e)for(var a in e)t[a]=e[a];return t}},function(t,e){t.exports=function(t){var e=function(i,n,a){var r=i.splice(0,50);a=a||[],a=a.concat(t.add(r)),i.length>0?setTimeout(function(){e(i,n,a)},1):(t.update(),n(a))};return e}},function(t,e){t.exports=function(t){return t.handlers.filterStart=t.handlers.filterS