mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 18:36:44 +00:00
2 lines
344 KiB
JavaScript
2 lines
344 KiB
JavaScript
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function a(t){return t&&"[object Function]"==={}.toString.call(t)}function _(t,e){if(1!==t.nodeType)return[];var i=getComputedStyle(t,null);return e?i[e]:i}function d(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function p(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=_(t),i=e.overflow,n=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(i+o+n)?t:p(d(t))}function b(t){if(!t)return document.documentElement;for(var e=$(10)?document.body:null,i=t.offsetParent;i===e&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===_(i,"position")?b(i):i:t?t.ownerDocument.documentElement:document.documentElement}function u(t){return null===t.parentNode?t:u(t.parentNode)}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var i=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,n=i?t:e,o=i?e:t,r=document.createRange();r.setStart(n,0),r.setEnd(o,0);var a,s,l=r.commonAncestorContainer;if(t!==l&&e!==l||n.contains(o))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&b(a.firstElementChild)!==a?b(l):l;var c=u(t);return c.host?f(c.host,e):f(t,u(e).host)}function g(t){var e="top"===(1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"!==i&&"HTML"!==i)return t[e];var n=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||n)[e]}function h(t,e){var i="x"===e?"Left":"Top",n="Left"==i?"Right":"Bottom";return parseFloat(t["border"+i+"Width"],10)+parseFloat(t["border"+n+"Width"],10)}function n(t,e,i,n){return F(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],$(10)?i["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function m(){var t=document.body,e=document.documentElement,i=$(10)&&getComputedStyle(e);return{height:n("Height",t,e,i),width:n("Width",t,e,i)}}function x(t){return V({},t,{right:t.left+t.width,bottom:t.top+t.height})}function y(t){var e={};try{if($(10)){e=t.getBoundingClientRect();var i=g(t,"top"),n=g(t,"left");e.top+=i,e.left+=n,e.bottom+=i,e.right+=n}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?m():{},a=r.width||t.clientWidth||o.right-o.left,s=r.height||t.clientHeight||o.bottom-o.top,l=t.offsetWidth-a,c=t.offsetHeight-s;if(l||c){var u=_(t);l-=h(u,"x"),c-=h(u,"y"),o.width-=l,o.height-=c}return x(o)}function v(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=$(10),o="HTML"===e.nodeName,r=y(t),a=y(e),s=p(t),l=_(e),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);i&&"HTML"===e.nodeName&&(a.top=F(a.top,0),a.left=F(a.left,0));var h=x({top:r.top-a.top-c,left:r.left-a.left-u,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!n&&o){var d=parseFloat(l.marginTop,10),f=parseFloat(l.marginLeft,10);h.top-=c-d,h.bottom-=c-d,h.left-=u-f,h.right-=u-f,h.marginTop=d,h.marginLeft=f}return(n&&!i?e.contains(s):e===s&&"BODY"!==s.nodeName)&&(h=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=g(e,"top"),o=g(e,"left"),r=i?-1:1;return t.top+=n*r,t.bottom+=n*r,t.left+=o*r,t.right+=o*r,t}(h,e)),h}function w(t){if(!t||!t.parentElement||$())return document.documentElement;for(var e=t.parentElement;e&&"none"===_(e,"transform");)e=e.parentElement;return e||document.documentElement}function k(t,e,i,n){var o=4<arguments.length&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},a=o?w(t):f(t,e);if("viewport"===n)r=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=t.ownerDocument.documentElement,n=v(t,i),o=F(i.clientWidth,window.innerWidth||0),r=F(i.clientHeight,window.innerHeight||0),a=e?0:g(i),s=e?0:g(i,"left");return x({top:a-n.top+n.marginTop,left:s-n.left+n.marginLeft,width:o,height:r})}(a,o);else{var s;"scrollParent"===n?"BODY"===(s=p(d(e))).nodeName&&(s=t.ownerDocument.documentElement):s="window"===n?t.ownerDocument.documentElement:n;var l=v(s,a,o);if("HTML"!==s.nodeName||function t(e){var i=e.nodeName;return"BODY"!==i&&"HTML"!==i&&("fixed"===_(e,"position")||t(d(e)))}(a))r=l;else{var c=m(),u=c.height,h=c.width;r.top+=l.top-l.marginTop,r.bottom=u+l.top,r.left+=l.left-l.marginLeft,r.right=h+l.left}}return r.left+=i,r.top+=i,r.right-=i,r.bottom-=i,r}function s(t,e,n,i,o){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=k(n,i,r,o),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return V({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),c=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),u=0<c.length?c[0].key:l[0].key,h=t.split("-")[1];return u+(h?"-"+h:"")}function l(t,e,i){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return v(i,n?w(e):f(e,i),n)}function C(t){var e=getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function S(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function T(t,e,i){i=i.split("-")[0];var n=C(t),o={width:n.width,height:n.height},r=-1!==["right","left"].indexOf(i),a=r?"top":"left",s=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[a]=e[a]+e[l]/2-n[l]/2,o[s]=i===s?e[s]-n[c]:e[S(s)],o}function D(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function A(t,i,e){return(void 0===e?t:t.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=D(t,function(t){return t[e]===i});return t.indexOf(n)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&a(e)&&(i.offsets.popper=x(i.offsets.popper),i.offsets.reference=x(i.offsets.reference),i=e(i,t))}),i}function t(t,i){return t.some(function(t){var e=t.name;return t.enabled&&e===i})}function E(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length;n++){var o=e[n],r=o?""+o+i:t;if(void 0!==document.body.style[r])return r}return null}function r(t){var e=t.ownerDocument;return e?e.defaultView:window}function e(t,e,i,n){i.updateBound=n,r(t).addEventListener("resize",i.updateBound,{passive:!0});var o=p(t);return function t(e,i,n,o){var r="BODY"===e.nodeName,a=r?e.ownerDocument.defaultView:e;a.addEventListener(i,n,{passive:!0}),r||t(p(a.parentNode),i,n,o),o.push(a)}(o,"scroll",i.updateBound,i.scrollParents),i.scrollElement=o,i.eventsEnabled=!0,i}function i(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,r(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function I(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function c(i,n){Object.keys(n).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&I(n[t])&&(e="px"),i.style[t]=n[t]+e})}function M(t,e,i){var n=D(t,function(t){return t.name===e}),o=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!o){var r="`"+e+"`";console.warn("`"+i+"` modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return o}function o(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=Y.indexOf(t),n=Y.slice(i+1).concat(Y.slice(0,i));return e?n.reverse():n}function P(t,o,r,e){var a=[0,0],s=-1!==["right","left"].indexOf(e),i=t.split(/(\+|\-)/).map(function(t){return t.trim()}),n=i.indexOf(D(i,function(t){return-1!==t.search(/,|\s/)}));i[n]&&-1===i[n].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1===n?[i]:[i.slice(0,n).concat([i[n].split(l)[0]]),[i[n].split(l)[1]].concat(i.slice(n+1))];return(c=c.map(function(t,e){var i=(1===e?!s:s)?"height":"width",n=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,n=!0,t):n?(t[t.length-1]+=e,n=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,i,n){var o,r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),a=+r[1],s=r[2];if(!a)return t;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?a:("vh"===s?F(document.documentElement.clientHeight,window.innerHeight||0):F(document.documentElement.clientWidth,window.innerWidth||0))/100*a;switch(s){case"%p":o=i;break;case"%":case"%r":default:o=n}return x(o)[e]/100*a}(t,i,o,r)})})).forEach(function(i,n){i.forEach(function(t,e){I(t)&&(a[n]+=t*("-"===i[e-1]?-1:1))})}),a}for(var N=Math.min,O=Math.floor,F=Math.max,L="undefined"!=typeof window&&"undefined"!=typeof document,R=["Edge","Trident","Firefox"],W=0,H=0;H<R.length;H+=1)if(L&&0<=navigator.userAgent.indexOf(R[H])){W=1;break}var j=L&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},W))}},B={},$=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"all";return t=t.toString(),B.hasOwnProperty(t)||("11"===t?B[t]=-1!==navigator.userAgent.indexOf("Trident"):"10"===t?B[t]=-1!==navigator.appVersion.indexOf("MSIE 10"):"all"===t&&(B[t]=-1!==navigator.userAgent.indexOf("Trident")||-1!==navigator.userAgent.indexOf("MSIE")),B.all=B.all||Object.keys(B).some(function(t){return B[t]})),B[t]},z=function(){function n(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}(),q=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},V=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},U=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Y=U.slice(3),K="flip",Q="clockwise",X="counterclockwise",G=function(){function r(t,e){var i=this,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,r),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=j(this.update.bind(this)),this.options=V({},r.Defaults,n),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(V({},r.Defaults.modifiers,n.modifiers)).forEach(function(t){i.options.modifiers[t]=V({},r.Defaults.modifiers[t]||{},n.modifiers?n.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return V({name:t},i.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&a(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)}),this.update();var o=this.options.eventsEnabled;o&&this.enableEventListeners(),this.state.eventsEnabled=o}return z(r,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=l(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=s(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=T(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=A(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[E("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=e(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return i.call(this)}}]),r}();return G.Utils=("undefined"==typeof window?global:window).PopperUtils,G.placements=U,G.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,r=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(i),l=s?"left":"top",c=s?"width":"height",u={start:q({},l,r[l]),end:q({},l,r[l]+r[c]-a[c])};t.offsets.popper=V({},a,u[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i,n=e.offset,o=t.placement,r=t.offsets,a=r.popper,s=r.reference,l=o.split("-")[0];return i=I(+n)?[+n,0]:P(n,a,s,l),"left"===l?(a.top+=i[0],a.left-=i[1]):"right"===l?(a.top+=i[0],a.left+=i[1]):"top"===l?(a.left+=i[0],a.top-=i[1]):"bottom"===l&&(a.left+=i[0],a.top+=i[1]),t.popper=a,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,n){var e=n.boundariesElement||b(t.instance.popper);t.instance.reference===e&&(e=b(e));var o=k(t.instance.popper,t.instance.reference,n.padding,e,t.positionFixed);n.boundaries=o;var i=n.priority,r=t.offsets.popper,a={primary:function(t){var e=r[t];return r[t]<o[t]&&!n.escapeWithReference&&(e=F(r[t],o[t])),q({},t,e)},secondary:function(t){var e="right"===t?"left":"top",i=r[e];return r[t]>o[t]&&!n.escapeWithReference&&(i=N(r[e],o[t]-("right"===t?r.width:r.height))),q({},e,i)}};return i.forEach(function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";r=V({},r,a[e](t))}),t.offsets.popper=r,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,o=t.placement.split("-")[0],r=O,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",l=a?"left":"top",c=a?"width":"height";return i[s]<r(n[l])&&(t.offsets.popper[l]=r(n[l])-i[c]),i[l]>r(n[s])&&(t.offsets.popper[l]=r(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var i;if(!M(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,a=r.popper,s=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",h=u.toLowerCase(),d=l?"left":"top",f=l?"bottom":"right",p=C(n)[c];s[f]-p<a[h]&&(t.offsets.popper[h]-=a[h]-(s[f]-p)),s[h]+p>a[f]&&(t.offsets.popper[h]+=s[h]+p-a[f]),t.offsets.popper=x(t.offsets.popper);var g=s[h]+s[c]/2-p/2,m=_(t.instance.popper),v=parseFloat(m["margin"+u],10),b=parseFloat(m["border"+u+"Width"],10),y=g-t.offsets.popper[h]-v-b;return y=F(N(a[c]-p,y),0),t.arrowElement=n,t.offsets.arrow=(q(i={},h,Math.round(y)),q(i,d,""),i),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(p,g){if(t(p.instance.modifiers,"inner"))return p;if(p.flipped&&p.placement===p.originalPlacement)return p;var m=k(p.instance.popper,p.instance.reference,g.padding,g.boundariesElement,p.positionFixed),v=p.placement.split("-")[0],b=S(v),y=p.placement.split("-")[1]||"",_=[];switch(g.behavior){case K:_=[v,b];break;case Q:_=o(v);break;case X:_=o(v,!0);break;default:_=g.behavior}return _.forEach(function(t,e){if(v!==t||_.length===e+1)return p;v=p.placement.split("-")[0],b=S(v);var i,n=p.offsets.popper,o=p.offsets.reference,r=O,a="left"===v&&r(n.right)>r(o.left)||"right"===v&&r(n.left)<r(o.right)||"top"===v&&r(n.bottom)>r(o.top)||"bottom"===v&&r(n.top)<r(o.bottom),s=r(n.left)<r(m.left),l=r(n.right)>r(m.right),c=r(n.top)<r(m.top),u=r(n.bottom)>r(m.bottom),h="left"===v&&s||"right"===v&&l||"top"===v&&c||"bottom"===v&&u,d=-1!==["top","bottom"].indexOf(v),f=!!g.flipVariations&&(d&&"start"===y&&s||d&&"end"===y&&l||!d&&"start"===y&&c||!d&&"end"===y&&u);(a||h||f)&&(p.flipped=!0,(a||h)&&(v=_[e+1]),f&&(y="end"===(i=y)?"start":"start"===i?"end":i),p.placement=v+(y?"-"+y:""),p.offsets.popper=V({},p.offsets.popper,T(p.instance.popper,p.offsets.reference,p.placement)),p=A(p.instance.modifiers,p,"flip"))}),p},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,o=n.popper,r=n.reference,a=-1!==["left","right"].indexOf(i),s=-1===["top","left"].indexOf(i);return o[a?"left":"top"]=r[i]-(s?o[a?"width":"height"]:0),t.placement=S(e),t.offsets.popper=x(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!M(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=D(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,o=t.offsets.popper,r=D(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,l=void 0===r?e.gpuAcceleration:r,c=y(b(t.instance.popper)),u={position:o.position},h={left:O(o.left),top:O(o.top),bottom:O(o.bottom),right:O(o.right)},d="bottom"===i?"top":"bottom",f="right"===n?"left":"right",p=E("transform");if(s="bottom"==d?-c.height+h.bottom:h.top,a="right"==f?-c.width+h.right:h.left,l&&p)u[p]="translate3d("+a+"px, "+s+"px, 0)",u[d]=0,u[f]=0,u.willChange="transform";else{var g="bottom"==d?-1:1,m="right"==f?-1:1;u[d]=s*g,u[f]=a*m,u.willChange=d+", "+f}var v={"x-placement":t.placement};return t.attributes=V({},v,t.attributes),t.styles=V({},u,t.styles),t.arrowStyles=V({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return c(t.instance.popper,t.styles),e=t.instance.popper,i=t.attributes,Object.keys(i).forEach(function(t){!1===i[t]?e.removeAttribute(t):e.setAttribute(t,i[t])}),t.arrowElement&&Object.keys(t.arrowStyles).length&&c(t.arrowElement,t.arrowStyles),t;var e,i},onLoad:function(t,e,i,n,o){var r=l(o,e,t,i.positionFixed),a=s(i.placement,r,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",a),c(e,{position:i.positionFixed?"fixed":"absolute"}),i},gpuAcceleration:void 0}}},G}),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(k,t){"use strict";var e=[],C=k.document,n=Object.getPrototypeOf,s=e.slice,g=e.concat,l=e.push,o=e.indexOf,i={},r=i.toString,m=i.hasOwnProperty,a=m.toString,c=a.call(Object),v={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},y=function(t){return null!=t&&t===t.window},u={type:!0,src:!0,noModule:!0};function _(t,e,i){var n,o=(e=e||C).createElement("script");if(o.text=t,i)for(n in u)i[n]&&(o[n]=i[n]);e.head.appendChild(o).parentNode.removeChild(o)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[r.call(t)]||"object":typeof t}var S=function(t,e){return new S.fn.init(t,e)},h=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function d(t){var e=!!t&&"length"in t&&t.length,i=x(t);return!b(t)&&!y(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}S.fn=S.prototype={jquery:"3.3.1",constructor:S,length:0,toArray:function(){return s.call(this)},get:function(t){return null==t?s.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=S.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return S.each(this,t)},map:function(i){return this.pushStack(S.map(this,function(t,e){return i.call(t,e,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},S.extend=S.fn.extend=function(){var t,e,i,n,o,r,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||b(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=a[e],a!==(n=t[e])&&(c&&n&&(S.isPlainObject(n)||(o=Array.isArray(n)))?(r=o?(o=!1,i&&Array.isArray(i)?i:[]):i&&S.isPlainObject(i)?i:{},a[e]=S.extend(c,r,n)):void 0!==n&&(a[e]=n));return a},S.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==r.call(t)||(e=n(t))&&("function"!=typeof(i=m.call(e,"constructor")&&e.constructor)||a.call(i)!==c))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){_(t)},each:function(t,e){var i,n=0;if(d(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(h,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(d(Object(t))?S.merge(i,"string"==typeof t?[t]:t):l.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:o.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n=[],o=0,r=t.length,a=!i;o<r;o++)!e(t[o],o)!==a&&n.push(t[o]);return n},map:function(t,e,i){var n,o,r=0,a=[];if(d(t))for(n=t.length;r<n;r++)null!=(o=e(t[r],r,i))&&a.push(o);else for(r in t)null!=(o=e(t[r],r,i))&&a.push(o);return g.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(S.fn[Symbol.iterator]=e[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var f=function(i){var t,f,_,r,o,p,h,g,x,l,c,w,k,a,C,m,s,u,v,S="sizzle"+1*new Date,b=i.document,T=0,n=0,d=at(),y=at(),D=at(),A=function(t,e){return t===e&&(c=!0),0},E={}.hasOwnProperty,e=[],I=e.pop,M=e.push,P=e.push,N=e.slice,O=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+L+"*("+R+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+L+"*\\]",H=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",j=new RegExp(L+"+","g"),B=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),$=new RegExp("^"+L+"*,"+L+"*"),z=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(H),U=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,J=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),tt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},nt=function(){w()},ot=bt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{P.apply(e=N.call(b.childNodes),b.childNodes),e[b.childNodes.length].nodeType}catch(i){P={apply:e.length?function(t,e){M.apply(t,N.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function rt(t,e,i,n){var o,r,a,s,l,c,u,h=e&&e.ownerDocument,d=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==d&&9!==d&&11!==d)return i;if(!n&&((e?e.ownerDocument||e:b)!==k&&w(e),e=e||k,C)){if(11!==d&&(l=G.exec(t)))if(o=l[1]){if(9===d){if(!(a=e.getElementById(o)))return i;if(a.id===o)return i.push(a),i}else if(h&&(a=h.getElementById(o))&&v(e,a)&&a.id===o)return i.push(a),i}else{if(l[2])return P.apply(i,e.getElementsByTagName(t)),i;if((o=l[3])&&f.getElementsByClassName&&e.getElementsByClassName)return P.apply(i,e.getElementsByClassName(o)),i}if(f.qsa&&!D[t+" "]&&(!m||!m.test(t))){if(1!==d)h=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((s=e.getAttribute("id"))?s=s.replace(et,it):e.setAttribute("id",s=S),r=(c=p(t)).length;r--;)c[r]="#"+s+" "+vt(c[r]);u=c.join(","),h=J.test(t)&>(e.parentNode)||e}if(u)try{return P.apply(i,h.querySelectorAll(u)),i}catch(t){}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace(B,"$1"),e,i,n)}function at(){var n=[];return function t(e,i){return n.push(e+" ")>_.cacheLength&&delete t[n.shift()],t[e+" "]=i}}function st(t){return t[S]=!0,t}function lt(t){var e=k.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),n=i.length;n--;)_.attrHandle[i[n]]=e}function ut(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ht(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function ft(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ot(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pt(a){return st(function(r){return r=+r,st(function(t,e){for(var i,n=a([],t.length,r),o=n.length;o--;)t[i=n[o]]&&(t[i]=!(e[i]=t[i]))})})}function gt(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=rt.support={},o=rt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},w=rt.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:b;return n!==k&&9===n.nodeType&&n.documentElement&&(a=(k=n).documentElement,C=!o(k),b!==k&&(i=k.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",nt,!1):i.attachEvent&&i.attachEvent("onunload",nt)),f.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=lt(function(t){return t.appendChild(k.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=X.test(k.getElementsByClassName),f.getById=lt(function(t){return a.appendChild(t).id=S,!k.getElementsByName||!k.getElementsByName(S).length}),f.getById?(_.filter.ID=function(t){var e=t.replace(Z,tt);return function(t){return t.getAttribute("id")===e}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var i=e.getElementById(t);return i?[i]:[]}}):(_.filter.ID=function(t){var i=t.replace(Z,tt);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}},_.find.ID=function(t,e){if(void 0!==e.getElementById&&C){var i,n,o,r=e.getElementById(t);if(r){if((i=r.getAttributeNode("id"))&&i.value===t)return[r];for(o=e.getElementsByName(t),n=0;r=o[n++];)if((i=r.getAttributeNode("id"))&&i.value===t)return[r]}return[]}}),_.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;i=r[o++];)1===i.nodeType&&n.push(i);return n},_.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&C)return e.getElementsByClassName(t)},s=[],m=[],(f.qsa=X.test(k.querySelectorAll))&&(lt(function(t){a.appendChild(t).innerHTML="<a id='"+S+"'></a><select id='"+S+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+L+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+S+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+S+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=k.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=X.test(u=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&<(function(t){f.disconnectedMatch=u.call(t,"*"),u.call(t,"[s!='']:x"),s.push("!=",H)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),e=X.test(a.compareDocumentPosition),v=e||X.test(a.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===k||t.ownerDocument===b&&v(b,t)?-1:e===k||e.ownerDocument===b&&v(b,e)?1:l?O(l,t)-O(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,o=t.parentNode,r=e.parentNode,a=[t],s=[e];if(!o||!r)return t===k?-1:e===k?1:o?-1:r?1:l?O(l,t)-O(l,e):0;if(o===r)return ut(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)s.unshift(i);for(;a[n]===s[n];)n++;return n?ut(a[n],s[n]):a[n]===b?-1:s[n]===b?1:0}),k},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==k&&w(t),e=e.replace(q,"='$1']"),f.matchesSelector&&C&&!D[e+" "]&&(!s||!s.test(e))&&(!m||!m.test(e)))try{var i=u.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0<rt(e,k,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==k&&w(t),v(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==k&&w(t);var i=_.attrHandle[e.toLowerCase()],n=i&&E.call(_.attrHandle,e.toLowerCase())?i(t,e,!C):void 0;return void 0!==n?n:f.attributes||!C?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},rt.escape=function(t){return(t+"").replace(et,it)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,i=[],n=0,o=0;if(c=!f.detectDuplicates,l=!f.sortStable&&t.slice(0),t.sort(A),c){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)t.splice(i[n],1)}return l=null,t},r=rt.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(_=rt.selectors={cacheLength:50,createPseudo:st,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(Z,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(Z,tt),"~="===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]||rt.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]&&rt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&V.test(i)&&(e=p(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(Z,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=d[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&d(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,o){return function(t){var e=rt.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===o:"!="===n?e!==o:"^="===n?o&&0===e.indexOf(o):"*="===n?o&&-1<e.indexOf(o):"$="===n?o&&e.slice(-o.length)===o:"~="===n?-1<(" "+e.replace(j," ")+" ").indexOf(o):"|="===n&&(e===o||e.slice(0,o.length+1)===o+"-"))}},CHILD:function(p,t,e,g,m){var v="nth"!==p.slice(0,3),b="last"!==p.slice(-4),y="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,i){var n,o,r,a,s,l,c=v!==b?"nextSibling":"previousSibling",u=t.parentNode,h=y&&t.nodeName.toLowerCase(),d=!i&&!y,f=!1;if(u){if(v){for(;c;){for(a=t;a=a[c];)if(y?a.nodeName.toLowerCase()===h:1===a.nodeType)return!1;l=c="only"===p&&!l&&"nextSibling"}return!0}if(l=[b?u.firstChild:u.lastChild],b&&d){for(f=(s=(n=(o=(r=(a=u)[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[p]||[])[0]===T&&n[1])&&n[2],a=s&&u.childNodes[s];a=++s&&a&&a[c]||(f=s=0)||l.pop();)if(1===a.nodeType&&++f&&a===t){o[p]=[T,s,f];break}}else if(d&&(f=s=(n=(o=(r=(a=t)[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[p]||[])[0]===T&&n[1]),!1===f)for(;(a=++s&&a&&a[c]||(f=s=0)||l.pop())&&((y?a.nodeName.toLowerCase()!==h:1!==a.nodeType)||!++f||(d&&((o=(r=a[S]||(a[S]={}))[a.uniqueID]||(r[a.uniqueID]={}))[p]=[T,f]),a!==t)););return(f-=m)===g||f%g==0&&0<=f/g}}},PSEUDO:function(t,r){var e,a=_.pseudos[t]||_.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return a[S]?a(r):1<a.length?(e=[t,t,"",r],_.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,e){for(var i,n=a(t,r),o=n.length;o--;)t[i=O(t,n[o])]=!(e[i]=n[o])}):function(t){return a(t,0,e)}):a}},pseudos:{not:st(function(t){var n=[],o=[],s=h(t.replace(B,"$1"));return s[S]?st(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,e,i){return n[0]=t,s(n,null,i,o),n[0]=null,!o.pop()}}),has:st(function(e){return function(t){return 0<rt(e,t).length}}),contains:st(function(e){return e=e.replace(Z,tt),function(t){return-1<(t.textContent||t.innerText||r(t)).indexOf(e)}}),lang:st(function(i){return U.test(i||"")||rt.error("unsupported lang: "+i),i=i.replace(Z,tt).toLowerCase(),function(t){var e;do{if(e=C?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===i||0===e.indexOf(i+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=i.location&&i.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===a},focus:function(t){return t===k.activeElement&&(!k.hasFocus||k.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:ft(!1),disabled:ft(!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!_.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return K.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:pt(function(){return[0]}),last:pt(function(t,e){return[e-1]}),eq:pt(function(t,e,i){return[i<0?i+e:i]}),even:pt(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:pt(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:pt(function(t,e,i){for(var n=i<0?i+e:i;0<=--n;)t.push(n);return t}),gt:pt(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}}).pseudos.nth=_.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[t]=ht(t);for(t in{submit:!0,reset:!0})_.pseudos[t]=dt(t);function mt(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function bt(s,t,e){var l=t.dir,c=t.next,u=c||l,h=e&&"parentNode"===u,d=n++;return t.first?function(t,e,i){for(;t=t[l];)if(1===t.nodeType||h)return s(t,e,i);return!1}:function(t,e,i){var n,o,r,a=[T,d];if(i){for(;t=t[l];)if((1===t.nodeType||h)&&s(t,e,i))return!0}else for(;t=t[l];)if(1===t.nodeType||h)if(o=(r=t[S]||(t[S]={}))[t.uniqueID]||(r[t.uniqueID]={}),c&&c===t.nodeName.toLowerCase())t=t[l]||t;else{if((n=o[u])&&n[0]===T&&n[1]===d)return a[2]=n[2];if((o[u]=a)[2]=s(t,e,i))return!0}return!1}}function yt(o){return 1<o.length?function(t,e,i){for(var n=o.length;n--;)if(!o[n](t,e,i))return!1;return!0}:o[0]}function _t(t,e,i,n,o){for(var r,a=[],s=0,l=t.length,c=null!=e;s<l;s++)(r=t[s])&&(i&&!i(r,n,o)||(a.push(r),c&&e.push(s)));return a}function xt(f,p,g,m,v,t){return m&&!m[S]&&(m=xt(m)),v&&!v[S]&&(v=xt(v,t)),st(function(t,e,i,n){var o,r,a,s=[],l=[],c=e.length,u=t||function(t,e,i){for(var n=0,o=e.length;n<o;n++)rt(t,e[n],i);return i}(p||"*",i.nodeType?[i]:i,[]),h=!f||!t&&p?u:_t(u,s,f,i,n),d=g?v||(t?f:c||m)?[]:e:h;if(g&&g(h,d,i,n),m)for(o=_t(d,l),m(o,[],i,n),r=o.length;r--;)(a=o[r])&&(d[l[r]]=!(h[l[r]]=a));if(t){if(v||f){if(v){for(o=[],r=d.length;r--;)(a=d[r])&&o.push(h[r]=a);v(null,d=[],o,n)}for(r=d.length;r--;)(a=d[r])&&-1<(o=v?O(t,a):s[r])&&(t[o]=!(e[o]=a))}}else d=_t(d===e?d.splice(c,d.length):d),v?v(null,e,d,n):P.apply(e,d)})}function wt(t){for(var o,e,i,n=t.length,r=_.relative[t[0].type],a=r||_.relative[" "],s=r?1:0,l=bt(function(t){return t===o},a,!0),c=bt(function(t){return-1<O(o,t)},a,!0),u=[function(t,e,i){var n=!r&&(i||e!==x)||((o=e).nodeType?l(t,e,i):c(t,e,i));return o=null,n}];s<n;s++)if(e=_.relative[t[s].type])u=[bt(yt(u),e)];else{if((e=_.filter[t[s].type].apply(null,t[s].matches))[S]){for(i=++s;i<n&&!_.relative[t[i].type];i++);return xt(1<s&&yt(u),1<s&&vt(t.slice(0,s-1).concat({value:" "===t[s-2].type?"*":""})).replace(B,"$1"),e,s<i&&wt(t.slice(s,i)),i<n&&wt(t=t.slice(i)),i<n&&vt(t))}u.push(e)}return yt(u)}return mt.prototype=_.filters=_.pseudos,_.setFilters=new mt,p=rt.tokenize=function(t,e){var i,n,o,r,a,s,l,c=y[t+" "];if(c)return e?0:c.slice(0);for(a=t,s=[],l=_.preFilter;a;){for(r in i&&!(n=$.exec(a))||(n&&(a=a.slice(n[0].length)||a),s.push(o=[])),i=!1,(n=z.exec(a))&&(i=n.shift(),o.push({value:i,type:n[0].replace(B," ")}),a=a.slice(i.length)),_.filter)!(n=Y[r].exec(a))||l[r]&&!(n=l[r](n))||(i=n.shift(),o.push({value:i,type:r,matches:n}),a=a.slice(i.length));if(!i)break}return e?a.length:a?rt.error(t):y(t,s).slice(0)},h=rt.compile=function(t,e){var i,m,v,b,y,n,o=[],r=[],a=D[t+" "];if(!a){for(e||(e=p(t)),i=e.length;i--;)(a=wt(e[i]))[S]?o.push(a):r.push(a);(a=D(t,(m=r,v=o,b=0<v.length,y=0<m.length,n=function(t,e,i,n,o){var r,a,s,l=0,c="0",u=t&&[],h=[],d=x,f=t||y&&_.find.TAG("*",o),p=T+=null==d?1:Math.random()||.1,g=f.length;for(o&&(x=e===k||e||o);c!==g&&null!=(r=f[c]);c++){if(y&&r){for(a=0,e||r.ownerDocument===k||(w(r),i=!C);s=m[a++];)if(s(r,e||k,i)){n.push(r);break}o&&(T=p)}b&&((r=!s&&r)&&l--,t&&u.push(r))}if(l+=c,b&&c!==l){for(a=0;s=v[a++];)s(u,h,e,i);if(t){if(0<l)for(;c--;)u[c]||h[c]||(h[c]=I.call(n));h=_t(h)}P.apply(n,h),o&&!t&&0<h.length&&1<l+v.length&&rt.uniqueSort(n)}return o&&(T=p,x=d),u},b?st(n):n))).selector=t}return a},g=rt.select=function(t,e,i,n){var o,r,a,s,l,c="function"==typeof t&&t,u=!n&&p(t=c.selector||t);if(i=i||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(a=r[0]).type&&9===e.nodeType&&C&&_.relative[r[1].type]){if(!(e=(_.find.ID(a.matches[0].replace(Z,tt),e)||[])[0]))return i;c&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=Y.needsContext.test(t)?0:r.length;o--&&(a=r[o],!_.relative[s=a.type]);)if((l=_.find[s])&&(n=l(a.matches[0].replace(Z,tt),J.test(r[0].type)&>(e.parentNode)||e))){if(r.splice(o,1),!(t=n.length&&vt(r)))return P.apply(i,n),i;break}}return(c||h(t,u))(n,e,!C,i,!e||J.test(t)&>(e.parentNode)||e),i},f.sortStable=S.split("").sort(A).join("")===S,f.detectDuplicates=!!c,w(),f.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(k.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ct("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),f.attributes&<(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ct("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ct(F,function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),rt}(k);S.find=f,S.expr=f.selectors,S.expr[":"]=S.expr.pseudos,S.uniqueSort=S.unique=f.uniqueSort,S.text=f.getText,S.isXMLDoc=f.isXML,S.contains=f.contains,S.escapeSelector=f.escape;var p=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&S(t).is(i))break;n.push(t)}return n},w=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},T=S.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(t,i,n){return b(i)?S.grep(t,function(t,e){return!!i.call(t,e,t)!==n}):i.nodeType?S.grep(t,function(t){return t===i!==n}):"string"!=typeof i?S.grep(t,function(t){return-1<o.call(i,t)!==n}):S.filter(i,t,n)}S.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?S.find.matchesSelector(n,t)?[n]:[]:S.find.matches(t,S.grep(e,function(t){return 1===t.nodeType}))},S.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(S(t).filter(function(){for(e=0;e<n;e++)if(S.contains(o[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)S.find(t,o[e],i);return 1<n?S.uniqueSort(i):i},filter:function(t){return this.pushStack(E(this,t||[],!1))},not:function(t){return this.pushStack(E(this,t||[],!0))},is:function(t){return!!E(this,"string"==typeof t&&T.test(t)?S(t):t||[],!1).length}});var I,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||I,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==i.ready?i.ready(t):t(S):S.makeArray(t,this);if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:M.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof S?e[0]:e,S.merge(this,S.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:C,!0)),A.test(n[1])&&S.isPlainObject(e))for(n in e)b(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=C.getElementById(n[2]))&&(this[0]=o,this.length=1),this}).prototype=S.fn,I=S(C);var P=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function O(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}S.fn.extend({has:function(t){var e=S(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(S.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,r=[],a="string"!=typeof t&&S(t);if(!T.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(a?-1<a.index(i):1===i.nodeType&&S.find.matchesSelector(i,t))){r.push(i);break}return this.pushStack(1<r.length?S.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?o.call(S(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),S.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return p(t,"parentNode")},parentsUntil:function(t,e,i){return p(t,"parentNode",i)},next:function(t){return O(t,"nextSibling")},prev:function(t){return O(t,"previousSibling")},nextAll:function(t){return p(t,"nextSibling")},prevAll:function(t){return p(t,"previousSibling")},nextUntil:function(t,e,i){return p(t,"nextSibling",i)},prevUntil:function(t,e,i){return p(t,"previousSibling",i)},siblings:function(t){return w((t.parentNode||{}).firstChild,t)},children:function(t){return w(t.firstChild)},contents:function(t){return D(t,"iframe")?t.contentDocument:(D(t,"template")&&(t=t.content||t),S.merge([],t.childNodes))}},function(n,o){S.fn[n]=function(t,e){var i=S.map(this,o,t);return"Until"!==n.slice(-5)&&(e=t),e&&"string"==typeof e&&(i=S.filter(e,i)),1<this.length&&(N[n]||S.uniqueSort(i),P.test(n)&&i.reverse()),this.pushStack(i)}});var F=/[^\x20\t\r\n\f]+/g;function L(t){return t}function R(t){throw t}function W(t,e,i,n){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(i):t&&b(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}S.Callbacks=function(n){var t,i;n="string"==typeof n?(t=n,i={},S.each(t.match(F)||[],function(t,e){i[e]=!0}),i):S.extend({},n);var o,e,r,a,s=[],l=[],c=-1,u=function(){for(a=a||n.once,r=o=!0;l.length;c=-1)for(e=l.shift();++c<s.length;)!1===s[c].apply(e[0],e[1])&&n.stopOnFalse&&(c=s.length,e=!1);n.memory||(e=!1),o=!1,a&&(s=e?[]:"")},h={add:function(){return s&&(e&&!o&&(c=s.length-1,l.push(e)),function i(t){S.each(t,function(t,e){b(e)?n.unique&&h.has(e)||s.push(e):e&&e.length&&"string"!==x(e)&&i(e)})}(arguments),e&&!o&&u()),this},remove:function(){return S.each(arguments,function(t,e){for(var i;-1<(i=S.inArray(e,s,i));)s.splice(i,1),i<=c&&c--}),this},has:function(t){return t?-1<S.inArray(t,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=l=[],s=e="",this},disabled:function(){return!s},lock:function(){return a=l=[],e||o||(s=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],l.push(e),o||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!r}};return h},S.extend({Deferred:function(t){var r=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],o="pending",a={state:function(){return o},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return a.then(null,t)},pipe:function(){var o=arguments;return S.Deferred(function(n){S.each(r,function(t,e){var i=b(o[e[4]])&&o[e[4]];s[e[1]](function(){var t=i&&i.apply(this,arguments);t&&b(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[e[0]+"With"](this,i?[t]:arguments)})}),o=null}).promise()},then:function(e,i,n){var l=0;function c(o,r,a,s){return function(){var i=this,n=arguments,t=function(){var t,e;if(!(o<l)){if((t=a.apply(i,n))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?s?e.call(t,c(l,r,L,s),c(l,r,R,s)):(l++,e.call(t,c(l,r,L,s),c(l,r,R,s),c(l,r,L,r.notifyWith))):(a!==L&&(i=void 0,n=[t]),(s||r.resolveWith)(i,n))}},e=s?t:function(){try{t()}catch(t){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(t,e.stackTrace),l<=o+1&&(a!==R&&(i=void 0,n=[t]),r.rejectWith(i,n))}};o?e():(S.Deferred.getStackHook&&(e.stackTrace=S.Deferred.getStackHook()),k.setTimeout(e))}}return S.Deferred(function(t){r[0][3].add(c(0,t,b(n)?n:L,t.notifyWith)),r[1][3].add(c(0,t,b(e)?e:L)),r[2][3].add(c(0,t,b(i)?i:R))}).promise()},promise:function(t){return null!=t?S.extend(t,a):a}},s={};return S.each(r,function(t,e){var i=e[2],n=e[5];a[e[1]]=i.add,n&&i.add(function(){o=n},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),i.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=i.fireWith}),a.promise(s),t&&t.call(s,s),s},when:function(t){var i=arguments.length,e=i,n=Array(e),o=s.call(arguments),r=S.Deferred(),a=function(e){return function(t){n[e]=this,o[e]=1<arguments.length?s.call(arguments):t,--i||r.resolveWith(n,o)}};if(i<=1&&(W(t,r.done(a(e)).resolve,r.reject,!i),"pending"===r.state()||b(o[e]&&o[e].then)))return r.then();for(;e--;)W(o[e],a(e),r.reject);return r.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(t,e){k.console&&k.console.warn&&t&&H.test(t.name)&&k.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},S.readyException=function(t){k.setTimeout(function(){throw t})};var j=S.Deferred();function B(){C.removeEventListener("DOMContentLoaded",B),k.removeEventListener("load",B),S.ready()}S.fn.ready=function(t){return j.then(t).catch(function(t){S.readyException(t)}),this},S.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--S.readyWait:S.isReady)||((S.isReady=!0)!==t&&0<--S.readyWait||j.resolveWith(C,[S]))}}),S.ready.then=j.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?k.setTimeout(S.ready):(C.addEventListener("DOMContentLoaded",B),k.addEventListener("load",B));var $=function(t,e,i,n,o,r,a){var s=0,l=t.length,c=null==i;if("object"===x(i))for(s in o=!0,i)$(t,e,s,i[s],!0,r,a);else if(void 0!==n&&(o=!0,b(n)||(a=!0),c&&(e=a?(e.call(t,n),null):(c=e,function(t,e,i){return c.call(S(t),i)})),e))for(;s<l;s++)e(t[s],i,a?n:n.call(t[s],s,e(t[s],i)));return o?t:c?e.call(t):l?e(t[0],i):r},z=/^-ms-/,q=/-([a-z])/g;function V(t,e){return e.toUpperCase()}function U(t){return t.replace(z,"ms-").replace(q,V)}var Y=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=S.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Y(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[U(e)]=i;else for(n in e)o[U(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][U(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(U):(e=U(e))in n?[e]:e.match(F)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||S.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!S.isEmptyObject(e)}};var Q=new K,X=new K,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(t,e,i){var n,o;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(t){}X.set(t,e,i)}else i=void 0;return i}S.extend({hasData:function(t){return X.hasData(t)||Q.hasData(t)},data:function(t,e,i){return X.access(t,e,i)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,i){return Q.access(t,e,i)},_removeData:function(t,e){Q.remove(t,e)}}),S.fn.extend({data:function(i,t){var e,n,o,r=this[0],a=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){X.set(this,i)}):$(this,function(t){var e;if(r&&void 0===t){if(void 0!==(e=X.get(r,i)))return e;if(void 0!==(e=Z(r,i)))return e}else this.each(function(){X.set(this,i,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=X.get(r),1===r.nodeType&&!Q.get(r,"hasDataAttrs"))){for(e=a.length;e--;)a[e]&&0===(n=a[e].name).indexOf("data-")&&(n=U(n.slice(5)),Z(r,n,o[n]));Q.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){X.remove(this,t)})}}),S.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=Q.get(t,e),i&&(!n||Array.isArray(i)?n=Q.access(t,e,S.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=S.queue(t,e),n=i.length,o=i.shift(),r=S._queueHooks(t,e);"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete r.stop,o.call(t,function(){S.dequeue(t,e)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Q.get(t,i)||Q.access(t,i,{empty:S.Callbacks("once memory").add(function(){Q.remove(t,[e+"queue",i])})})}}),S.fn.extend({queue:function(e,i){var t=2;return"string"!=typeof e&&(i=e,e="fx",t--),arguments.length<t?S.queue(this[0],e):void 0===i?this:this.each(function(){var t=S.queue(this,e,i);S._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&S.dequeue(this,e)})},dequeue:function(t){return this.each(function(){S.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=S.Deferred(),r=this,a=this.length,s=function(){--n||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=Q.get(r[a],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(s));return s(),o.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&S.contains(t.ownerDocument,t)&&"none"===S.css(t,"display")},ot=function(t,e,i,n){var o,r,a={};for(r in e)a[r]=t.style[r],t.style[r]=e[r];for(r in o=i.apply(t,n||[]),e)t.style[r]=a[r];return o};function rt(t,e,i,n){var o,r,a=20,s=n?function(){return n.cur()}:function(){return S.css(t,e,"")},l=s(),c=i&&i[3]||(S.cssNumber[e]?"":"px"),u=(S.cssNumber[e]||"px"!==c&&+l)&&et.exec(S.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)S.style(t,e,u+c),(1-r)*(1-(r=s()/l||.5))<=0&&(a=0),u/=r;u*=2,S.style(t,e,u+c),i=i||[]}return i&&(u=+u||+l||0,o=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=o)),o}var at={};function st(t,e){for(var i,n,o=[],r=0,a=t.length;r<a;r++)(n=t[r]).style&&(i=n.style.display,e?("none"===i&&(o[r]=Q.get(n,"display")||null,o[r]||(n.style.display="")),""===n.style.display&&nt(n)&&(o[r]=(h=c=l=void 0,c=(s=n).ownerDocument,u=s.nodeName,(h=at[u])||(l=c.body.appendChild(c.createElement(u)),h=S.css(l,"display"),l.parentNode.removeChild(l),"none"===h&&(h="block"),at[u]=h)))):"none"!==i&&(o[r]="none",Q.set(n,"display",i)));var s,l,c,u,h;for(r=0;r<a;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}S.fn.extend({show:function(){return st(this,!0)},hide:function(){return st(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){nt(this)?S(this).show():S(this).hide()})}});var lt=/^(?:checkbox|radio)$/i,ct=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ut=/^$|^module$|\/(?:java|ecma)script/i,ht={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function dt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?S.merge([t],i):i}function ft(t,e){for(var i=0,n=t.length;i<n;i++)Q.set(t[i],"globalEval",!e||Q.get(e[i],"globalEval"))}ht.optgroup=ht.option,ht.tbody=ht.tfoot=ht.colgroup=ht.caption=ht.thead,ht.th=ht.td;var pt,gt,mt=/<|&#?\w+;/;function vt(t,e,i,n,o){for(var r,a,s,l,c,u,h=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((r=t[f])||0===r)if("object"===x(r))S.merge(d,r.nodeType?[r]:r);else if(mt.test(r)){for(a=a||h.appendChild(e.createElement("div")),s=(ct.exec(r)||["",""])[1].toLowerCase(),l=ht[s]||ht._default,a.innerHTML=l[1]+S.htmlPrefilter(r)+l[2],u=l[0];u--;)a=a.lastChild;S.merge(d,a.childNodes),(a=h.firstChild).textContent=""}else d.push(e.createTextNode(r));for(h.textContent="",f=0;r=d[f++];)if(n&&-1<S.inArray(r,n))o&&o.push(r);else if(c=S.contains(r.ownerDocument,r),a=dt(h.appendChild(r),"script"),c&&ft(a),i)for(u=0;r=a[u++];)ut.test(r.type||"")&&i.push(r);return h}pt=C.createDocumentFragment().appendChild(C.createElement("div")),(gt=C.createElement("input")).setAttribute("type","radio"),gt.setAttribute("checked","checked"),gt.setAttribute("name","t"),pt.appendChild(gt),v.checkClone=pt.cloneNode(!0).cloneNode(!0).lastChild.checked,pt.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!pt.cloneNode(!0).lastChild.defaultValue;var bt=C.documentElement,yt=/^key/,_t=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function kt(){return!1}function Ct(){try{return C.activeElement}catch(t){}}function St(t,e,i,n,o,r){var a,s;if("object"==typeof e){for(s in"string"!=typeof i&&(n=n||i,i=void 0),e)St(t,s,i,n,e[s],r);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),!1===o)o=kt;else if(!o)return t;return 1===r&&(a=o,(o=function(t){return S().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=S.guid++)),t.each(function(){S.event.add(this,e,o,n,i)})}S.event={global:{},add:function(e,t,i,n,o){var r,a,s,l,c,u,h,d,f,p,g,m=Q.get(e);if(m)for(i.handler&&(i=(r=i).handler,o=r.selector),o&&S.find.matchesSelector(bt,o),i.guid||(i.guid=S.guid++),(l=m.events)||(l=m.events={}),(a=m.handle)||(a=m.handle=function(t){return void 0!==S&&S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(F)||[""]).length;c--;)f=g=(s=xt.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),f&&(h=S.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=S.event.special[f]||{},u=S.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&S.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,p,a)||e.addEventListener&&e.addEventListener(f,a)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),S.event.global[f]=!0)},remove:function(t,e,i,n,o){var r,a,s,l,c,u,h,d,f,p,g,m=Q.hasData(t)&&Q.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(F)||[""]).length;c--;)if(f=g=(s=xt.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),f){for(h=S.event.special[f]||{},d=l[f=(n?h.delegateType:h.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=d.length;r--;)u=d[r],!o&&g!==u.origType||i&&i.guid!==u.guid||s&&!s.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));a&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,p,m.handle)||S.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)S.event.remove(t,f+e[c],i,n,!0);S.isEmptyObject(l)&&Q.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,r,a,s=S.event.fix(t),l=new Array(arguments.length),c=(Q.get(this,"events")||{})[s.type]||[],u=S.event.special[s.type]||{};for(l[0]=s,e=1;e<arguments.length;e++)l[e]=arguments[e];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=S.event.handlers.call(this,s,c),e=0;(o=a[e++])&&!s.isPropagationStopped();)for(s.currentTarget=o.elem,i=0;(r=o.handlers[i++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(r.namespace)||(s.handleObj=r,s.data=r.data,void 0!==(n=((S.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(t,e){var i,n,o,r,a,s=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],a={},i=0;i<l;i++)void 0===a[o=(n=e[i]).selector+" "]&&(a[o]=n.needsContext?-1<S(o,this).index(c):S.find(o,this,null,[c]).length),a[o]&&r.push(n);r.length&&s.push({elem:c,handlers:r})}return c=this,l<e.length&&s.push({elem:c,handlers:e.slice(l)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[S.expando]?t:new S.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ct()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ct()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(t){return D(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},S.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},S.Event=function(t,e){if(!(this instanceof S.Event))return new S.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:kt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&S.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[S.expando]=!0},S.Event.prototype={constructor:S.Event,isDefaultPrevented:kt,isPropagationStopped:kt,isImmediatePropagationStopped:kt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},S.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&_t.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},S.event.addProp),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){S.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,i=t.relatedTarget,n=t.handleObj;return i&&(i===this||S.contains(this,i))||(t.type=n.origType,e=n.handler.apply(this,arguments),t.type=o),e}}}),S.fn.extend({on:function(t,e,i,n){return St(this,t,e,i,n)},one:function(t,e,i,n){return St(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,S(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=kt),this.each(function(){S.event.remove(this,t,i,e)});for(o in t)this.off(o,e,t[o]);return this}});var Tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Dt=/<script|<style|<link/i,At=/checked\s*(?:[^=]|=\s*.checked.)/i,Et=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function It(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&S(t).children("tbody")[0]||t}function Mt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Pt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var i,n,o,r,a,s,l,c;if(1===e.nodeType){if(Q.hasData(t)&&(r=Q.access(t),a=Q.set(e,r),c=r.events))for(o in delete a.handle,a.events={},c)for(i=0,n=c[o].length;i<n;i++)S.event.add(e,o,c[o][i]);X.hasData(t)&&(s=X.access(t),l=S.extend({},s),X.set(e,l))}}function Ot(i,n,o,r){n=g.apply([],n);var t,e,a,s,l,c,u=0,h=i.length,d=h-1,f=n[0],p=b(f);if(p||1<h&&"string"==typeof f&&!v.checkClone&&At.test(f))return i.each(function(t){var e=i.eq(t);p&&(n[0]=f.call(this,t,e.html())),Ot(e,n,o,r)});if(h&&(e=(t=vt(n,i[0].ownerDocument,!1,i,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(s=(a=S.map(dt(t,"script"),Mt)).length;u<h;u++)l=t,u!==d&&(l=S.clone(l,!0,!0),s&&S.merge(a,dt(l,"script"))),o.call(i[u],l,u);if(s)for(c=a[a.length-1].ownerDocument,S.map(a,Pt),u=0;u<s;u++)l=a[u],ut.test(l.type||"")&&!Q.access(l,"globalEval")&&S.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&S._evalUrl(l.src):_(l.textContent.replace(Et,""),c,l))}return i}function Ft(t,e,i){for(var n,o=e?S.filter(e,t):t,r=0;null!=(n=o[r]);r++)i||1!==n.nodeType||S.cleanData(dt(n)),n.parentNode&&(i&&S.contains(n.ownerDocument,n)&&ft(dt(n,"script")),n.parentNode.removeChild(n));return t}S.extend({htmlPrefilter:function(t){return t.replace(Tt,"<$1></$2>")},clone:function(t,e,i){var n,o,r,a,s,l,c,u=t.cloneNode(!0),h=S.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||S.isXMLDoc(t)))for(a=dt(u),n=0,o=(r=dt(t)).length;n<o;n++)s=r[n],l=a[n],void 0,"input"===(c=l.nodeName.toLowerCase())&<.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(e)if(i)for(r=r||dt(t),a=a||dt(u),n=0,o=r.length;n<o;n++)Nt(r[n],a[n]);else Nt(t,u);return 0<(a=dt(u,"script")).length&&ft(a,!h&&dt(t,"script")),u},cleanData:function(t){for(var e,i,n,o=S.event.special,r=0;void 0!==(i=t[r]);r++)if(Y(i)){if(e=i[Q.expando]){if(e.events)for(n in e.events)o[n]?S.event.remove(i,n):S.removeEvent(i,n,e.handle);i[Q.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),S.fn.extend({detach:function(t){return Ft(this,t,!0)},remove:function(t){return Ft(this,t)},text:function(t){return $(this,function(t){return void 0===t?S.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 Ot(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||It(this,t).appendChild(t)})},prepend:function(){return Ot(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=It(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ot(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ot(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&&(S.cleanData(dt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return S.clone(this,t,e)})},html:function(t){return $(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Dt.test(t)&&!ht[(ct.exec(t)||["",""])[1].toLowerCase()]){t=S.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(S.cleanData(dt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var i=[];return Ot(this,arguments,function(t){var e=this.parentNode;S.inArray(this,i)<0&&(S.cleanData(dt(this)),e&&e.replaceChild(t,this))},i)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,a){S.fn[t]=function(t){for(var e,i=[],n=S(t),o=n.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),S(n[r])[a](e),l.apply(i,e.get());return this.pushStack(i)}});var Lt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Rt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=k),e.getComputedStyle(t)},Wt=new RegExp(it.join("|"),"i");function Ht(t,e,i){var n,o,r,a,s=t.style;return(i=i||Rt(t))&&(""!==(a=i.getPropertyValue(e)||i[e])||S.contains(t.ownerDocument,t)||(a=S.style(t,e)),!v.pixelBoxStyles()&&Lt.test(a)&&Wt.test(e)&&(n=s.width,o=s.minWidth,r=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=i.width,s.width=n,s.minWidth=o,s.maxWidth=r)),void 0!==a?a+"":a}function jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(l){s.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",bt.appendChild(s).appendChild(l);var t=k.getComputedStyle(l);i="1%"!==t.top,a=12===e(t.marginLeft),l.style.right="60%",r=36===e(t.right),n=36===e(t.width),l.style.position="absolute",o=36===l.offsetWidth||"absolute",bt.removeChild(s),l=null}}function e(t){return Math.round(parseFloat(t))}var i,n,o,r,a,s=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===l.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),a},scrollboxSize:function(){return t(),o}}))}();var Bt=/^(none|table(?!-c[ea]).+)/,$t=/^--/,zt={position:"absolute",visibility:"hidden",display:"block"},qt={letterSpacing:"0",fontWeight:"400"},Vt=["Webkit","Moz","ms"],Ut=C.createElement("div").style;function Yt(t){var e=S.cssProps[t];return e||(e=S.cssProps[t]=function(t){if(t in Ut)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Vt.length;i--;)if((t=Vt[i]+e)in Ut)return t}(t)||t),e}function Kt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Qt(t,e,i,n,o,r){var a="width"===e?1:0,s=0,l=0;if(i===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===i&&(l+=S.css(t,i+it[a],!0,o)),n?("content"===i&&(l-=S.css(t,"padding"+it[a],!0,o)),"margin"!==i&&(l-=S.css(t,"border"+it[a]+"Width",!0,o))):(l+=S.css(t,"padding"+it[a],!0,o),"padding"!==i?l+=S.css(t,"border"+it[a]+"Width",!0,o):s+=S.css(t,"border"+it[a]+"Width",!0,o));return!n&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-s-.5))),l}function Xt(t,e,i){var n=Rt(t),o=Ht(t,e,n),r="border-box"===S.css(t,"boxSizing",!1,n),a=r;if(Lt.test(o)){if(!i)return o;o="auto"}return a=a&&(v.boxSizingReliable()||o===t.style[e]),("auto"===o||!parseFloat(o)&&"inline"===S.css(t,"display",!1,n))&&(o=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(o=parseFloat(o)||0)+Qt(t,e,i||(r?"border":"content"),a,n,o)+"px"}function Gt(t,e,i,n,o){return new Gt.prototype.init(t,e,i,n,o)}S.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ht(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,a,s=U(e),l=$t.test(e),c=t.style;if(l||(e=Yt(s)),a=S.cssHooks[e]||S.cssHooks[s],void 0===i)return a&&"get"in a&&void 0!==(o=a.get(t,!1,n))?o:c[e];"string"==(r=typeof i)&&(o=et.exec(i))&&o[1]&&(i=rt(t,e,o),r="number"),null!=i&&i==i&&("number"===r&&(i+=o&&o[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),a&&"set"in a&&void 0===(i=a.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var o,r,a,s=U(e);return $t.test(e)||(e=Yt(s)),(a=S.cssHooks[e]||S.cssHooks[s])&&"get"in a&&(o=a.get(t,!0,i)),void 0===o&&(o=Ht(t,e,n)),"normal"===o&&e in qt&&(o=qt[e]),""===i||i?(r=parseFloat(o),!0===i||isFinite(r)?r||0:o):o}}),S.each(["height","width"],function(t,s){S.cssHooks[s]={get:function(t,e,i){if(e)return!Bt.test(S.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Xt(t,s,i):ot(t,zt,function(){return Xt(t,s,i)})},set:function(t,e,i){var n,o=Rt(t),r="border-box"===S.css(t,"boxSizing",!1,o),a=i&&Qt(t,s,i,r,o);return r&&v.scrollboxSize()===o.position&&(a-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(o[s])-Qt(t,s,"border",!1,o)-.5)),a&&(n=et.exec(e))&&"px"!==(n[3]||"px")&&(t.style[s]=e,e=S.css(t,s)),Kt(0,e,a)}}}),S.cssHooks.marginLeft=jt(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ht(t,"marginLeft"))||t.getBoundingClientRect().left-ot(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),S.each({margin:"",padding:"",border:"Width"},function(o,r){S.cssHooks[o+r]={expand:function(t){for(var e=0,i={},n="string"==typeof t?t.split(" "):[t];e<4;e++)i[o+it[e]+r]=n[e]||n[e-2]||n[0];return i}},"margin"!==o&&(S.cssHooks[o+r].set=Kt)}),S.fn.extend({css:function(t,e){return $(this,function(t,e,i){var n,o,r={},a=0;if(Array.isArray(e)){for(n=Rt(t),o=e.length;a<o;a++)r[e[a]]=S.css(t,e[a],!1,n);return r}return void 0!==i?S.style(t,e,i):S.css(t,e)},t,e,1<arguments.length)}}),((S.Tween=Gt).prototype={constructor:Gt,init:function(t,e,i,n,o,r){this.elem=t,this.prop=i,this.easing=o||S.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=r||(S.cssNumber[i]?"":"px")},cur:function(){var t=Gt.propHooks[this.prop];return t&&t.get?t.get(this):Gt.propHooks._default.get(this)},run:function(t){var e,i=Gt.propHooks[this.prop];return this.options.duration?this.pos=e=S.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),i&&i.set?i.set(this):Gt.propHooks._default.set(this),this}}).init.prototype=Gt.prototype,(Gt.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=S.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){S.fx.step[t.prop]?S.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[S.cssProps[t.prop]]&&!S.cssHooks[t.prop]?t.elem[t.prop]=t.now:S.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Gt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},S.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},S.fx=Gt.prototype.init,S.fx.step={};var Jt,Zt,te,ee,ie=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function oe(){Zt&&(!1===C.hidden&&k.requestAnimationFrame?k.requestAnimationFrame(oe):k.setTimeout(oe,S.fx.interval),S.fx.tick())}function re(){return k.setTimeout(function(){Jt=void 0}),Jt=Date.now()}function ae(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)o["margin"+(i=it[n])]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function se(t,e,i){for(var n,o=(le.tweeners[e]||[]).concat(le.tweeners["*"]),r=0,a=o.length;r<a;r++)if(n=o[r].call(i,e,t))return n}function le(r,t,e){var i,a,n=0,o=le.prefilters.length,s=S.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=Jt||re(),e=Math.max(0,c.startTime+c.duration-t),i=1-(e/c.duration||0),n=0,o=c.tweens.length;n<o;n++)c.tweens[n].run(i);return s.notifyWith(r,[c,i,e]),i<1&&o?e:(o||s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c]),!1)},c=s.promise({elem:r,props:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},e),originalProperties:t,originalOptions:e,startTime:Jt||re(),duration:e.duration,tweens:[],createTween:function(t,e){var i=S.Tween(r,c.opts,t,e,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var e=0,i=t?c.tweens.length:0;if(a)return this;for(a=!0;e<i;e++)c.tweens[e].run(1);return t?(s.notifyWith(r,[c,1,0]),s.resolveWith(r,[c,t])):s.rejectWith(r,[c,t]),this}}),u=c.props;for(function(t,e){var i,n,o,r,a;for(i in t)if(o=e[n=U(i)],r=t[i],Array.isArray(r)&&(o=r[1],r=t[i]=r[0]),i!==n&&(t[n]=r,delete t[i]),(a=S.cssHooks[n])&&"expand"in a)for(i in r=a.expand(r),delete t[n],r)i in t||(t[i]=r[i],e[i]=o);else e[n]=o}(u,c.opts.specialEasing);n<o;n++)if(i=le.prefilters[n].call(c,r,u,c.opts))return b(i.stop)&&(S._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return S.map(u,se,c),b(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),S.fx.timer(S.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}S.Animation=S.extend(le,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return rt(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){for(var i,n=0,o=(t=b(t)?(e=t,["*"]):t.match(F)).length;n<o;n++)i=t[n],le.tweeners[i]=le.tweeners[i]||[],le.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,o,r,a,s,l,c,u,h="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&nt(t),m=Q.get(t,"fxshow");for(n in i.queue||(null==(a=S._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,d.always(function(){d.always(function(){a.unqueued--,S.queue(t,"fx").length||a.empty.fire()})})),e)if(o=e[n],ie.test(o)){if(delete e[n],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[n])continue;g=!0}f[n]=m&&m[n]||S.style(t,n)}if((l=!S.isEmptyObject(e))||!S.isEmptyObject(f))for(n in h&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Q.get(t,"display")),"none"===(u=S.css(t,"display"))&&(c?u=c:(st([t],!0),c=t.style.display||c,u=S.css(t,"display"),st([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===S.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]})),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Q.access(t,"fxshow",{display:c}),r&&(m.hidden=!g),g&&st([t],!0),d.done(function(){for(n in g||st([t]),Q.remove(t,"fxshow"),f)S.style(t,n,f[n])})),l=se(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?le.prefilters.unshift(t):le.prefilters.push(t)}}),S.speed=function(t,e,i){var n=t&&"object"==typeof t?S.extend({},t):{complete:i||!i&&e||b(t)&&t,duration:t,easing:i&&e||e&&!b(e)&&e};return S.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in S.fx.speeds?n.duration=S.fx.speeds[n.duration]:n.duration=S.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){b(n.old)&&n.old.call(this),n.queue&&S.dequeue(this,n.queue)},n},S.fn.extend({fadeTo:function(t,e,i,n){return this.filter(nt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(e,t,i,n){var o=S.isEmptyObject(e),r=S.speed(t,i,n),a=function(){var t=le(this,S.extend({},e),r);(o||Q.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===r.queue?this.each(a):this.queue(r.queue,a)},stop:function(o,t,r){var a=function(t){var e=t.stop;delete t.stop,e(r)};return"string"!=typeof o&&(r=t,t=o,o=void 0),t&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",i=S.timers,n=Q.get(this);if(e)n[e]&&n[e].stop&&a(n[e]);else for(e in n)n[e]&&n[e].stop&&ne.test(e)&&a(n[e]);for(e=i.length;e--;)i[e].elem!==this||null!=o&&i[e].queue!==o||(i[e].anim.stop(r),t=!1,i.splice(e,1));!t&&r||S.dequeue(this,o)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var t,e=Q.get(this),i=e[a+"queue"],n=e[a+"queueHooks"],o=S.timers,r=i?i.length:0;for(e.finish=!0,S.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===a&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete e.finish})}}),S.each(["toggle","show","hide"],function(t,n){var o=S.fn[n];S.fn[n]=function(t,e,i){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(ae(n,!0),t,e,i)}}),S.each({slideDown:ae("show"),slideUp:ae("hide"),slideToggle:ae("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,n){S.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),S.timers=[],S.fx.tick=function(){var t,e=0,i=S.timers;for(Jt=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||S.fx.stop(),Jt=void 0},S.fx.timer=function(t){S.timers.push(t),S.fx.start()},S.fx.interval=13,S.fx.start=function(){Zt||(Zt=!0,oe())},S.fx.stop=function(){Zt=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(n,t){return n=S.fx&&S.fx.speeds[n]||n,t=t||"fx",this.queue(t,function(t,e){var i=k.setTimeout(t,n);e.stop=function(){k.clearTimeout(i)}})},te=C.createElement("input"),ee=C.createElement("select").appendChild(C.createElement("option")),te.type="checkbox",v.checkOn=""!==te.value,v.optSelected=ee.selected,(te=C.createElement("input")).value="t",te.type="radio",v.radioValue="t"===te.value;var ce,ue=S.expr.attrHandle;S.fn.extend({attr:function(t,e){return $(this,S.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){S.removeAttr(this,t)})}}),S.extend({attr:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?S.prop(t,e,i):(1===r&&S.isXMLDoc(t)||(o=S.attrHooks[e.toLowerCase()]||(S.expr.match.bool.test(e)?ce:void 0)),void 0!==i?null===i?void S.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=S.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&D(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(F);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),ce={set:function(t,e,i){return!1===e?S.removeAttr(t,i):t.setAttribute(i,i),i}},S.each(S.expr.match.bool.source.match(/\w+/g),function(t,e){var a=ue[e]||S.find.attr;ue[e]=function(t,e,i){var n,o,r=e.toLowerCase();return i||(o=ue[r],ue[r]=n,n=null!=a(t,e,i)?r:null,ue[r]=o),n}});var he=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;function fe(t){return(t.match(F)||[]).join(" ")}function pe(t){return t.getAttribute&&t.getAttribute("class")||""}function ge(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(F)||[]}S.fn.extend({prop:function(t,e){return $(this,S.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[S.propFix[t]||t]})}}),S.extend({prop:function(t,e,i){var n,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&S.isXMLDoc(t)||(e=S.propFix[e]||e,o=S.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=S.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||de.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){S.propFix[this.toLowerCase()]=this}),S.fn.extend({addClass:function(e){var t,i,n,o,r,a,s,l=0;if(b(e))return this.each(function(t){S(this).addClass(e.call(this,t,pe(this)))});if((t=ge(e)).length)for(;i=this[l++];)if(o=pe(i),n=1===i.nodeType&&" "+fe(o)+" "){for(a=0;r=t[a++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");o!==(s=fe(n))&&i.setAttribute("class",s)}return this},removeClass:function(e){var t,i,n,o,r,a,s,l=0;if(b(e))return this.each(function(t){S(this).removeClass(e.call(this,t,pe(this)))});if(!arguments.length)return this.attr("class","");if((t=ge(e)).length)for(;i=this[l++];)if(o=pe(i),n=1===i.nodeType&&" "+fe(o)+" "){for(a=0;r=t[a++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");o!==(s=fe(n))&&i.setAttribute("class",s)}return this},toggleClass:function(o,e){var r=typeof o,a="string"===r||Array.isArray(o);return"boolean"==typeof e&&a?e?this.addClass(o):this.removeClass(o):b(o)?this.each(function(t){S(this).toggleClass(o.call(this,t,pe(this),e),e)}):this.each(function(){var t,e,i,n;if(a)for(e=0,i=S(this),n=ge(o);t=n[e++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==o&&"boolean"!==r||((t=pe(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===o?"":Q.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+fe(pe(i))+" ").indexOf(e))return!0;return!1}});var me=/\r/g;S.fn.extend({val:function(i){var n,t,o,e=this[0];return arguments.length?(o=b(i),this.each(function(t){var e;1===this.nodeType&&(null==(e=o?i.call(this,t,S(this).val()):i)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=S.map(e,function(t){return null==t?"":t+""})),(n=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):e?(n=S.valHooks[e.type]||S.valHooks[e.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(e,"value"))?t:"string"==typeof(t=e.value)?t.replace(me,""):null==t?"":t:void 0}}),S.extend({valHooks:{option:{get:function(t){var e=S.find.attr(t,"value");return null!=e?e:fe(S.text(t))}},select:{get:function(t){var e,i,n,o=t.options,r=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?r+1:o.length;for(n=r<0?l:a?r:0;n<l;n++)if(((i=o[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(e=S(i).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var i,n,o=t.options,r=S.makeArray(e),a=o.length;a--;)((n=o[a]).selected=-1<S.inArray(S.valHooks.option.get(n),r))&&(i=!0);return i||(t.selectedIndex=-1),r}}}}),S.each(["radio","checkbox"],function(){S.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<S.inArray(S(t).val(),e)}},v.checkOn||(S.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in k;var ve=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};S.extend(S.event,{trigger:function(t,e,i,n){var o,r,a,s,l,c,u,h,d=[i||C],f=m.call(t,"type")?t.type:t,p=m.call(t,"namespace")?t.namespace.split("."):[];if(r=h=a=i=i||C,3!==i.nodeType&&8!==i.nodeType&&!ve.test(f+S.event.triggered)&&(-1<f.indexOf(".")&&(f=(p=f.split(".")).shift(),p.sort()),l=f.indexOf(":")<0&&"on"+f,(t=t[S.expando]?t:new S.Event(f,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=p.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:S.makeArray(e,[t]),u=S.event.special[f]||{},n||!u.trigger||!1!==u.trigger.apply(i,e))){if(!n&&!u.noBubble&&!y(i)){for(s=u.delegateType||f,ve.test(s+f)||(r=r.parentNode);r;r=r.parentNode)d.push(r),a=r;a===(i.ownerDocument||C)&&d.push(a.defaultView||a.parentWindow||k)}for(o=0;(r=d[o++])&&!t.isPropagationStopped();)h=r,t.type=1<o?s:u.bindType||f,(c=(Q.get(r,"events")||{})[t.type]&&Q.get(r,"handle"))&&c.apply(r,e),(c=l&&r[l])&&c.apply&&Y(r)&&(t.result=c.apply(r,e),!1===t.result&&t.preventDefault());return t.type=f,n||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!Y(i)||l&&b(i[f])&&!y(i)&&((a=i[l])&&(i[l]=null),S.event.triggered=f,t.isPropagationStopped()&&h.addEventListener(f,be),i[f](),t.isPropagationStopped()&&h.removeEventListener(f,be),S.event.triggered=void 0,a&&(i[l]=a)),t.result}},simulate:function(t,e,i){var n=S.extend(new S.Event,i,{type:t,isSimulated:!0});S.event.trigger(n,null,e)}}),S.fn.extend({trigger:function(t,e){return this.each(function(){S.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return S.event.trigger(t,e,i,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},function(i,n){var o=function(t){S.event.simulate(n,t.target,S.event.fix(t))};S.event.special[n]={setup:function(){var t=this.ownerDocument||this,e=Q.access(t,n);e||t.addEventListener(i,o,!0),Q.access(t,n,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Q.access(t,n)-1;e?Q.access(t,n,e):(t.removeEventListener(i,o,!0),Q.remove(t,n))}}});var ye=k.location,_e=Date.now(),xe=/\?/;S.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new k.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||S.error("Invalid XML: "+t),e};var we=/\[\]$/,ke=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Se=/^(?:input|select|textarea|keygen)/i;function Te(i,t,n,o){var e;if(Array.isArray(t))S.each(t,function(t,e){n||we.test(i)?o(i,e):Te(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,n,o)});else if(n||"object"!==x(t))o(i,t);else for(e in t)Te(i+"["+e+"]",t[e],n,o)}S.param=function(t,e){var i,n=[],o=function(t,e){var i=b(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!S.isPlainObject(t))S.each(t,function(){o(this.name,this.value)});else for(i in t)Te(i,t[i],e,o);return n.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=S.prop(this,"elements");return t?S.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!S(this).is(":disabled")&&Se.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!lt.test(t))}).map(function(t,e){var i=S(this).val();return null==i?null:Array.isArray(i)?S.map(i,function(t){return{name:e.name,value:t.replace(ke,"\r\n")}}):{name:e.name,value:i.replace(ke,"\r\n")}}).get()}});var De=/%20/g,Ae=/#.*$/,Ee=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,Me=/^(?:GET|HEAD)$/,Pe=/^\/\//,Ne={},Oe={},Fe="*/".concat("*"),Le=C.createElement("a");function Re(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var i,n=0,o=t.toLowerCase().match(F)||[];if(b(e))for(;i=o[n++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(e)):(r[i]=r[i]||[]).push(e)}}function We(e,o,r,a){var s={},l=e===Oe;function c(t){var n;return s[t]=!0,S.each(e[t]||[],function(t,e){var i=e(o,r,a);return"string"!=typeof i||l||s[i]?l?!(n=i):void 0:(o.dataTypes.unshift(i),c(i),!1)}),n}return c(o.dataTypes[0])||!s["*"]&&c("*")}function He(t,e){var i,n,o=S.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&S.extend(!0,t,n),t}Le.href=ye.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ye.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?He(He(t,S.ajaxSettings),e):He(S.ajaxSettings,t)},ajaxPrefilter:Re(Ne),ajaxTransport:Re(Oe),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var u,h,d,i,f,n,p,g,o,r,m=S.ajaxSetup({},e),v=m.context||m,b=m.context&&(v.nodeType||v.jquery)?S(v):S.event,y=S.Deferred(),_=S.Callbacks("once memory"),x=m.statusCode||{},a={},s={},l="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(p){if(!i)for(i={};e=Ie.exec(d);)i[e[1].toLowerCase()]=e[2];e=i[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return p?d:null},setRequestHeader:function(t,e){return null==p&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,a[t]=e),this},overrideFileType:function(t){return null==p&&(m.mimeType=t),this},statusCode:function(t){var e;if(t)if(p)w.always(t[w.status]);else for(e in t)x[e]=[x[e],t[e]];return this},abort:function(t){var e=t||l;return u&&u.abort(e),c(0,e),this}};if(y.promise(w),m.url=((t||m.url||ye.href)+"").replace(Pe,ye.protocol+"//"),m.type=e.method||e.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(F)||[""],null==m.crossDomain){n=C.createElement("a");try{n.href=m.url,n.href=n.href,m.crossDomain=Le.protocol+"//"+Le.host!=n.protocol+"//"+n.host}catch(t){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=S.param(m.data,m.traditional)),We(Ne,m,e,w),p)return w;for(o in(g=S.event&&m.global)&&0==S.active++&&S.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Me.test(m.type),h=m.url.replace(Ae,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(De,"+")):(r=m.url.slice(h.length),m.data&&(m.processData||"string"==typeof m.data)&&(h+=(xe.test(h)?"&":"?")+m.data,delete m.data),!1===m.cache&&(h=h.replace(Ee,"$1"),r=(xe.test(h)?"&":"?")+"_="+_e+++r),m.url=h+r),m.ifModified&&(S.lastModified[h]&&w.setRequestHeader("If-Modified-Since",S.lastModified[h]),S.etag[h]&&w.setRequestHeader("If-None-Match",S.etag[h])),(m.data&&m.hasContent&&!1!==m.contentType||e.contentType)&&w.setRequestHeader("Content-Type",m.contentType),w.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Fe+"; q=0.01":""):m.accepts["*"]),m.headers)w.setRequestHeader(o,m.headers[o]);if(m.beforeSend&&(!1===m.beforeSend.call(v,w,m)||p))return w.abort();if(l="abort",_.add(m.complete),w.done(m.success),w.fail(m.error),u=We(Oe,m,e,w)){if(w.readyState=1,g&&b.trigger("ajaxSend",[w,m]),p)return w;m.async&&0<m.timeout&&(f=k.setTimeout(function(){w.abort("timeout")},m.timeout));try{p=!1,u.send(a,c)}catch(t){if(p)throw t;c(-1,t)}}else c(-1,"No Transport");function c(t,e,i,n){var o,r,a,s,l,c=e;p||(p=!0,f&&k.clearTimeout(f),u=void 0,d=n||"",w.readyState=0<t?4:0,o=200<=t&&t<300||304===t,i&&(s=function(t,e,i){for(var n,o,r,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in s)if(s[o]&&s[o].test(n)){l.unshift(o);break}if(l[0]in i)r=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}a||(a=o)}r=r||a}if(r)return r!==l[0]&&l.unshift(r),i[r]}(m,w,i)),s=function(t,e,i,n){var o,r,a,s,l,c={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)c[a.toLowerCase()]=t.converters[a];for(r=u.shift();r;)if(t.responseFields[r]&&(i[t.responseFields[r]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(a=c[l+" "+r]||c["* "+r]))for(o in c)if((s=o.split(" "))[1]===r&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[o]:!0!==c[o]&&(r=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(m,s,w,o),o?(m.ifModified&&((l=w.getResponseHeader("Last-Modified"))&&(S.lastModified[h]=l),(l=w.getResponseHeader("etag"))&&(S.etag[h]=l)),204===t||"HEAD"===m.type?c="nocontent":304===t?c="notmodified":(c=s.state,r=s.data,o=!(a=s.error))):(a=c,!t&&c||(c="error",t<0&&(t=0))),w.status=t,w.statusText=(e||c)+"",o?y.resolveWith(v,[r,c,w]):y.rejectWith(v,[w,c,a]),w.statusCode(x),x=void 0,g&&b.trigger(o?"ajaxSuccess":"ajaxError",[w,m,o?r:a]),_.fireWith(v,[w,c]),g&&(b.trigger("ajaxComplete",[w,m]),--S.active||S.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,i){return S.get(t,e,i,"json")},getScript:function(t,e){return S.get(t,void 0,e,"script")}}),S.each(["get","post"],function(t,o){S[o]=function(t,e,i,n){return b(e)&&(n=n||i,i=e,e=void 0),S.ajax(S.extend({url:t,type:o,dataType:n,data:e,success:i},S.isPlainObject(t)&&t))}}),S._evalUrl=function(t){return S.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},S.fn.extend({wrapAll:function(t){var e;return this[0]&&(b(t)&&(t=t.call(this[0])),e=S(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(i){return b(i)?this.each(function(t){S(this).wrapInner(i.call(this,t))}):this.each(function(){var t=S(this),e=t.contents();e.length?e.wrapAll(i):t.append(i)})},wrap:function(e){var i=b(e);return this.each(function(t){S(this).wrapAll(i?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){S(this).replaceWith(this.childNodes)}),this}}),S.expr.pseudos.hidden=function(t){return!S.expr.pseudos.visible(t)},S.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new k.XMLHttpRequest}catch(t){}};var je={0:200,1223:204},Be=S.ajaxSettings.xhr();v.cors=!!Be&&"withCredentials"in Be,v.ajax=Be=!!Be,S.ajaxTransport(function(o){var r,a;if(v.cors||Be&&!o.crossDomain)return{send:function(t,e){var i,n=o.xhr();if(n.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(i in o.xhrFields)n[i]=o.xhrFields[i];for(i in o.mimeType&&n.overrideFileType&&n.overrideFileType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)n.setRequestHeader(i,t[i]);r=function(t){return function(){r&&(r=a=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===t?n.abort():"error"===t?"number"!=typeof n.status?e(0,"error"):e(n.status,n.statusText):e(je[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=r(),a=n.onerror=n.ontimeout=r("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&k.setTimeout(function(){r&&a()})},r=r("abort");try{n.send(o.hasContent&&o.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),S.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),S.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 S.globalEval(t),t}}}),S.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),S.ajaxTransport("script",function(i){var n,o;if(i.crossDomain)return{send:function(t,e){n=S("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",o=function(t){n.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),C.head.appendChild(n[0])},abort:function(){o&&o()}}});var $e,ze=[],qe=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ze.pop()||S.expando+"_"+_e++;return this[t]=!0,t}}),S.ajaxPrefilter("json jsonp",function(t,e,i){var n,o,r,a=!1!==t.jsonp&&(qe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(qe,"$1"+n):!1!==t.jsonp&&(t.url+=(xe.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||S.error(n+" was not called"),r[0]},t.dataTypes[0]="json",o=k[n],k[n]=function(){r=arguments},i.always(function(){void 0===o?S(k).removeProp(n):k[n]=o,t[n]&&(t.jsonpCallback=e.jsonpCallback,ze.push(n)),r&&b(o)&&o(r[0]),r=o=void 0}),"script"}),v.createHTMLDocument=(($e=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===$e.childNodes.length),S.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(v.createHTMLDocument?((n=(e=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,e.head.appendChild(n)):e=C),r=!i&&[],(o=A.exec(t))?[e.createElement(o[1])]:(o=vt([t],e,r),r&&r.length&&S(r).remove(),S.merge([],o.childNodes)));var n,o,r},S.fn.load=function(t,e,i){var n,o,r,a=this,s=t.indexOf(" ");return-1<s&&(n=fe(t.slice(s)),t=t.slice(0,s)),b(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<a.length&&S.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,a.html(n?S("<div>").append(S.parseHTML(t)).find(n):t)}).always(i&&function(t,e){a.each(function(){i.apply(this,r||[t.responseText,e,t])})}),this},S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){S.fn[e]=function(t){return this.on(e,t)}}),S.expr.pseudos.animated=function(e){return S.grep(S.timers,function(t){return e===t.elem}).length},S.offset={setOffset:function(t,e,i){var n,o,r,a,s,l,c=S.css(t,"position"),u=S(t),h={};"static"===c&&(t.style.position="relative"),s=u.offset(),r=S.css(t,"top"),l=S.css(t,"left"),o=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(a=(n=u.position()).top,n.left):(a=parseFloat(r)||0,parseFloat(l)||0),b(e)&&(e=e.call(t,i,S.extend({},s))),null!=e.top&&(h.top=e.top-s.top+a),null!=e.left&&(h.left=e.left-s.left+o),"using"in e?e.using.call(t,h):u.css(h)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){S.offset.setOffset(this,e,t)});var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],o={top:0,left:0};if("fixed"===S.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===S.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((o=S(t).offset()).top+=S.css(t,"borderTopWidth",!0),o.left+=S.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-S.css(n,"marginTop",!0),left:e.left-o.left-S.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===S.css(t,"position");)t=t.offsetParent;return t||bt})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;S.fn[e]=function(t){return $(this,function(t,e,i){var n;if(y(t)?n=t:9===t.nodeType&&(n=t.defaultView),void 0===i)return n?n[o]:t[e];n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),S.each(["top","left"],function(t,i){S.cssHooks[i]=jt(v.pixelPosition,function(t,e){if(e)return e=Ht(t,i),Lt.test(e)?S(t).position()[i]+"px":e})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(n,r){S.fn[r]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),o=n||(!0===t||!0===e?"margin":"border");return $(this,function(t,e,i){var n;return y(t)?0===r.indexOf("outer")?t["inner"+a]:t.document.documentElement["client"+a]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+a],n["scroll"+a],t.body["offset"+a],n["offset"+a],n["client"+a])):void 0===i?S.css(t,e,o):S.style(t,e,i,o)},s,i?t:void 0,i)}})}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,i){S.fn[i]=function(t,e){return 0<arguments.length?this.on(i,null,t,e):this.trigger(i)}}),S.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),S.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),S.proxy=function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),b(t))return n=s.call(arguments,2),(o=function(){return t.apply(e||this,n.concat(s.call(arguments)))}).guid=t.guid=t.guid||S.guid++,o},S.holdReady=function(t){t?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=D,S.isFunction=b,S.isWindow=y,S.camelCase=U,S.type=x,S.now=Date.now,S.isNumeric=function(t){var e=S.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return S});var Ve=k.jQuery,Ue=k.$;return S.noConflict=function(t){return k.$===S&&(k.$=Ue),t&&k.jQuery===S&&(k.jQuery=Ve),S},t||(k.jQuery=k.$=S),S}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,u){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function a(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function h(){return(h=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}e=e&&e.hasOwnProperty("default")?e.default:e,u=u&&u.hasOwnProperty("default")?u.default:u;var o,i,r,s,l,c,d,f,p,g,m,v,b,y,_,x,w,k,C,S,T,D,A,E,I,M,P,N,O,F,L,R,W,H,j,B,$,z,q,V,U,Y,K,Q,X,G,J,Z,tt,et,it,nt,ot,rt,at,st,lt,ct,ut,ht,dt,ft,pt,gt,mt,vt,bt,yt,_t,xt,wt,kt,Ct,St,Tt,Dt,At,Et,It,Mt,Pt,Nt,Ot,Ft,Lt,Rt,Wt,Ht,jt,Bt,$t,zt,qt,Vt,Ut,Yt,Kt,Qt,Xt,Gt,Jt,Zt,te,ee,ie,ne,oe,re,ae,se,le,ce,ue,he,de,fe,pe,ge,me,ve,be,ye,_e,xe,we,ke,Ce,Se,Te,De,Ae,Ee,Ie,Me,Pe,Ne,Oe,Fe,Le,Re,We,He,je=(Re=e,We=!1,He={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e,i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||""),"#"===i.charAt(0)&&(e=i,i=e="function"==typeof Re.escapeSelector?Re.escapeSelector(e).substr(1):e.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return 0<Re(document).find(i).length?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){Re(t).trigger(We.end)},supportsTransitionEnd:function(){return Boolean(We)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var o=i[n],r=e[n],a=r&&He.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-zA-Z]+)/)[1].toLowerCase());if(!new RegExp(o).test(a))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+o+'".')}var s}},We=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},Re.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return Re(this).one(He.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||He.triggerTransitionEnd(e)},t),this},He.supportsTransitionEnd()&&(Re.event.special[He.TRANSITION_END]={bindType:We.end,delegateType:We.end,handle:function(t){if(Re(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),He),Be=(i="alert",s="."+(r="bs.alert"),l=(o=e).fn[i],c={CLOSE:"close"+s,CLOSED:"closed"+s,CLICK_DATA_API:"click"+s+".data-api"},"alert","fade","show",d=function(){function n(t){this._element=t}var t=n.prototype;return t.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},t.dispose=function(){o.removeData(this._element,r),this._element=null},t._getRootElement=function(t){var e=je.getSelectorFromElement(t),i=!1;return e&&(i=o(e)[0]),i||(i=o(t).closest(".alert")[0]),i},t._triggerCloseEvent=function(t){var e=o.Event(c.CLOSE);return o(t).trigger(e),e},t._removeElement=function(e){var i=this;o(e).removeClass("show"),je.supportsTransitionEnd()&&o(e).hasClass("fade")?o(e).one(je.TRANSITION_END,function(t){return i._destroyElement(e,t)}).emulateTransitionEnd(150):this._destroyElement(e)},t._destroyElement=function(t){o(t).detach().trigger(c.CLOSED).remove()},n._jQueryInterface=function(i){return this.each(function(){var t=o(this),e=t.data(r);e||(e=new n(this),t.data(r,e)),"close"===i&&e[i](this)})},n._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},a(n,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),n}(),o(document).on(c.CLICK_DATA_API,'[data-dismiss="alert"]',d._handleDismiss(new d)),o.fn[i]=d._jQueryInterface,o.fn[i].Constructor=d,o.fn[i].noConflict=function(){return o.fn[i]=l,d._jQueryInterface},d),$e=(p="button",m="."+(g="bs.button"),v=".data-api",b=(f=e).fn[p],y="active","btn",_='[data-toggle^="button"]','[data-toggle="buttons"]',"input",".active",".btn",x={CLICK_DATA_API:"click"+m+v,FOCUS_BLUR_DATA_API:"focus"+m+v+" blur"+m+v},w=function(){function i(t){this._element=t}var t=i.prototype;return t.toggle=function(){var t=!0,e=!0,i=f(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=f(this._element).find("input")[0];if(n){if("radio"===n.type)if(n.checked&&f(this._element).hasClass(y))t=!1;else{var o=f(i).find(".active")[0];o&&f(o).removeClass(y)}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!f(this._element).hasClass(y),f(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!f(this._element).hasClass(y)),t&&f(this._element).toggleClass(y)},t.dispose=function(){f.removeData(this._element,g),this._element=null},i._jQueryInterface=function(e){return this.each(function(){var t=f(this).data(g);t||(t=new i(this),f(this).data(g,t)),"toggle"===e&&t[e]()})},a(i,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),i}(),f(document).on(x.CLICK_DATA_API,_,function(t){t.preventDefault();var e=t.target;f(e).hasClass("btn")||(e=f(e).closest(".btn")),w._jQueryInterface.call(f(e),"toggle")}).on(x.FOCUS_BLUR_DATA_API,_,function(t){var e=f(t.target).closest(".btn")[0];f(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),f.fn[p]=w._jQueryInterface,f.fn[p].Constructor=w,f.fn[p].noConflict=function(){return f.fn[p]=b,w._jQueryInterface},w),ze=(ye="carousel",xe="."+(_e="bs.carousel"),we=(be=e).fn[ye],ke={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},Ce={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},Se="next",Te="prev",De={SLIDE:"slide"+xe,SLID:"slid"+xe,KEYDOWN:"keydown"+xe,MOUSEENTER:"mouseenter"+xe,MOUSELEAVE:"mouseleave"+xe,TOUCHEND:"touchend"+xe,LOAD_DATA_API:"load"+xe+".data-api",CLICK_DATA_API:"click"+xe+".data-api"},Ae="active",Ee=".active",Ie=".active.carousel-item",Me=".carousel-item",Pe=".carousel-item-next, .carousel-item-prev",Ne=".carousel-indicators",Oe="[data-slide], [data-slide-to]",Fe='[data-ride="carousel"]',Le=function(){function r(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=be(t)[0],this._indicatorsElement=be(this._element).find(Ne)[0],this._addEventListeners()}var t=r.prototype;return t.next=function(){this._isSliding||this._slide(Se)},t.nextWhenVisible=function(){!document.hidden&&be(this._element).is(":visible")&&"hidden"!==be(this._element).css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide(Te)},t.pause=function(t){t||(this._isPaused=!0),be(this._element).find(Pe)[0]&&je.supportsTransitionEnd()&&(je.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(t){var e=this;this._activeElement=be(this._element).find(Ie)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)be(this._element).one(De.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i<t?Se:Te;this._slide(n,this._items[t])}},t.dispose=function(){be(this._element).off(xe),be.removeData(this._element,_e),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(t){return t=h({},ke,t),je.typeCheckConfig(ye,t,Ce),t},t._addEventListeners=function(){var e=this;this._config.keyboard&&be(this._element).on(De.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&(be(this._element).on(De.MOUSEENTER,function(t){return e.pause(t)}).on(De.MOUSELEAVE,function(t){return e.cycle(t)}),"ontouchstart"in document.documentElement&&be(this._element).on(De.TOUCHEND,function(){e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval)}))},t._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},t._getItemIndex=function(t){return this._items=be.makeArray(be(t).parent().find(Me)),this._items.indexOf(t)},t._getItemByDirection=function(t,e){var i=t===Se,n=t===Te,o=this._getItemIndex(e),r=this._items.length-1;if((n&&0===o||i&&o===r)&&!this._config.wrap)return e;var a=(o+(t===Te?-1:1))%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},t._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(be(this._element).find(Ie)[0]),o=be.Event(De.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return be(this._element).trigger(o),o},t._setActiveIndicatorElement=function(t){if(this._indicatorsElement){be(this._indicatorsElement).find(Ee).removeClass(Ae);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&be(e).addClass(Ae)}},t._slide=function(t,e){var i,n,o,r=this,a=be(this._element).find(Ie)[0],s=this._getItemIndex(a),l=e||a&&this._getItemByDirection(t,a),c=this._getItemIndex(l),u=Boolean(this._interval);if(o=t===Se?(i="carousel-item-left",n="carousel-item-next","left"):(i="carousel-item-right",n="carousel-item-prev","right"),l&&be(l).hasClass(Ae))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&a&&l){this._isSliding=!0,u&&this.pause(),this._setActiveIndicatorElement(l);var h=be.Event(De.SLID,{relatedTarget:l,direction:o,from:s,to:c});je.supportsTransitionEnd()&&be(this._element).hasClass("slide")?(be(l).addClass(n),je.reflow(l),be(a).addClass(i),be(l).addClass(i),be(a).one(je.TRANSITION_END,function(){be(l).removeClass(i+" "+n).addClass(Ae),be(a).removeClass(Ae+" "+n+" "+i),r._isSliding=!1,setTimeout(function(){return be(r._element).trigger(h)},0)}).emulateTransitionEnd(600)):(be(a).removeClass(Ae),be(l).addClass(Ae),this._isSliding=!1,be(this._element).trigger(h)),u&&this.cycle()}},r._jQueryInterface=function(n){return this.each(function(){var t=be(this).data(_e),e=h({},ke,be(this).data());"object"==typeof n&&(e=h({},e,n));var i="string"==typeof n?n:e.slide;if(t||(t=new r(this,e),be(this).data(_e,t)),"number"==typeof n)t.to(n);else if("string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}else e.interval&&(t.pause(),t.cycle())})},r._dataApiClickHandler=function(t){var e=je.getSelectorFromElement(this);if(e){var i=be(e)[0];if(i&&be(i).hasClass("carousel")){var n=h({},be(i).data(),be(this).data()),o=this.getAttribute("data-slide-to");o&&(n.interval=!1),r._jQueryInterface.call(be(i),n),o&&be(i).data(_e).to(o),t.preventDefault()}}},a(r,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return ke}}]),r}(),be(document).on(De.CLICK_DATA_API,Oe,Le._dataApiClickHandler),be(window).on(De.LOAD_DATA_API,function(){be(Fe).each(function(){var t=be(this);Le._jQueryInterface.call(t,t.data())})}),be.fn[ye]=Le._jQueryInterface,be.fn[ye].Constructor=Le,be.fn[ye].noConflict=function(){return be.fn[ye]=we,Le._jQueryInterface},Le),qe=(oe="collapse",ae="."+(re="bs.collapse"),se=(ne=e).fn[oe],le={toggle:!0,parent:""},ce={toggle:"boolean",parent:"(string|element)"},ue={SHOW:"show"+ae,SHOWN:"shown"+ae,HIDE:"hide"+ae,HIDDEN:"hidden"+ae,CLICK_DATA_API:"click"+ae+".data-api"},he="show",de="collapse",fe="collapsing",pe="collapsed",ge=".show, .collapsing",me='[data-toggle="collapse"]',ve=function(){function s(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=ne.makeArray(ne('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=ne(me),n=0;n<i.length;n++){var o=i[n],r=je.getSelectorFromElement(o);null!==r&&0<ne(r).filter(t).length&&(this._selector=r,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=s.prototype;return t.toggle=function(){ne(this._element).hasClass(he)?this.hide():this.show()},t.show=function(){var t,e,i=this;if(!(this._isTransitioning||ne(this._element).hasClass(he)||(this._parent&&0===(t=ne.makeArray(ne(this._parent).find(ge).filter('[data-parent="'+this._config.parent+'"]'))).length&&(t=null),t&&(e=ne(t).not(this._selector).data(re))&&e._isTransitioning))){var n=ne.Event(ue.SHOW);if(ne(this._element).trigger(n),!n.isDefaultPrevented()){t&&(s._jQueryInterface.call(ne(t).not(this._selector),"hide"),e||ne(t).data(re,null));var o=this._getDimension();ne(this._element).removeClass(de).addClass(fe),(this._element.style[o]=0)<this._triggerArray.length&&ne(this._triggerArray).removeClass(pe).attr("aria-expanded",!0),this.setTransitioning(!0);var r=function(){ne(i._element).removeClass(fe).addClass(de).addClass(he),i._element.style[o]="",i.setTransitioning(!1),ne(i._element).trigger(ue.SHOWN)};if(je.supportsTransitionEnd()){var a="scroll"+(o[0].toUpperCase()+o.slice(1));ne(this._element).one(je.TRANSITION_END,r).emulateTransitionEnd(600),this._element.style[o]=this._element[a]+"px"}else r()}}},t.hide=function(){var t=this;if(!this._isTransitioning&&ne(this._element).hasClass(he)){var e=ne.Event(ue.HIDE);if(ne(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",je.reflow(this._element),ne(this._element).addClass(fe).removeClass(de).removeClass(he),0<this._triggerArray.length)for(var n=0;n<this._triggerArray.length;n++){var o=this._triggerArray[n],r=je.getSelectorFromElement(o);null!==r&&(ne(r).hasClass(he)||ne(o).addClass(pe).attr("aria-expanded",!1))}this.setTransitioning(!0);var a=function(){t.setTransitioning(!1),ne(t._element).removeClass(fe).addClass(de).trigger(ue.HIDDEN)};this._element.style[i]="",je.supportsTransitionEnd()?ne(this._element).one(je.TRANSITION_END,a).emulateTransitionEnd(600):a()}}},t.setTransitioning=function(t){this._isTransitioning=t},t.dispose=function(){ne.removeData(this._element,re),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(t){return(t=h({},le,t)).toggle=Boolean(t.toggle),je.typeCheckConfig(oe,t,ce),t},t._getDimension=function(){return ne(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var i=this,t=null;je.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=ne(this._config.parent)[0];var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return ne(t).find(e).each(function(t,e){i._addAriaAndCollapsedClass(s._getTargetFromElement(e),[e])}),t},t._addAriaAndCollapsedClass=function(t,e){if(t){var i=ne(t).hasClass(he);0<e.length&&ne(e).toggleClass(pe,!i).attr("aria-expanded",i)}},s._getTargetFromElement=function(t){var e=je.getSelectorFromElement(t);return e?ne(e)[0]:null},s._jQueryInterface=function(n){return this.each(function(){var t=ne(this),e=t.data(re),i=h({},le,t.data(),"object"==typeof n&&n);if(!e&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),e||(e=new s(this,i),t.data(re,e)),"string"==typeof n){if(void 0===e[n])throw new TypeError('No method named "'+n+'"');e[n]()}})},a(s,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return le}}]),s}(),ne(document).on(ue.CLICK_DATA_API,me,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var i=ne(this),e=je.getSelectorFromElement(this);ne(e).each(function(){var t=ne(this),e=t.data(re)?"toggle":i.data();ve._jQueryInterface.call(t,e)})}),ne.fn[oe]=ve._jQueryInterface,ne.fn[oe].Constructor=ve,ne.fn[oe].noConflict=function(){return ne.fn[oe]=se,ve._jQueryInterface},ve),Ve=($t="dropdown",qt="."+(zt="bs.dropdown"),Vt=".data-api",Ut=(Bt=e).fn[$t],Yt=new RegExp("38|40|27"),Kt={HIDE:"hide"+qt,HIDDEN:"hidden"+qt,SHOW:"show"+qt,SHOWN:"shown"+qt,CLICK:"click"+qt,CLICK_DATA_API:"click"+qt+Vt,KEYDOWN_DATA_API:"keydown"+qt+Vt,KEYUP_DATA_API:"keyup"+qt+Vt},Qt="disabled",Xt="show",Gt="dropdown-menu-right",Jt='[data-toggle="dropdown"]',Zt=".dropdown-menu",te={offset:0,flip:!0,boundary:"scrollParent"},ee={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},ie=function(){function l(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t=l.prototype;return t.toggle=function(){if(!this._element.disabled&&!Bt(this._element).hasClass(Qt)){var t=l._getParentFromElement(this._element),e=Bt(this._menu).hasClass(Xt);if(l._clearMenus(),!e){var i={relatedTarget:this._element},n=Bt.Event(Kt.SHOW,i);if(Bt(t).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar){if(void 0===u)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var o=this._element;Bt(t).hasClass("dropup")&&(Bt(this._menu).hasClass("dropdown-menu-left")||Bt(this._menu).hasClass(Gt))&&(o=t),"scrollParent"!==this._config.boundary&&Bt(t).addClass("position-static"),this._popper=new u(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===Bt(t).closest(".navbar-nav").length&&Bt("body").children().on("mouseover",null,Bt.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),Bt(this._menu).toggleClass(Xt),Bt(t).toggleClass(Xt).trigger(Bt.Event(Kt.SHOWN,i))}}}},t.dispose=function(){Bt.removeData(this._element,zt),Bt(this._element).off(qt),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;Bt(this._element).on(Kt.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},t._getConfig=function(t){return t=h({},this.constructor.Default,Bt(this._element).data(),t),je.typeCheckConfig($t,t,this.constructor.DefaultType),t},t._getMenuElement=function(){if(!this._menu){var t=l._getParentFromElement(this._element);this._menu=Bt(t).find(Zt)[0]}return this._menu},t._getPlacement=function(){var t=Bt(this._element).parent(),e="bottom-start";return t.hasClass("dropup")?(e="top-start",Bt(this._menu).hasClass(Gt)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":Bt(this._menu).hasClass(Gt)&&(e="bottom-end"),e},t._detectNavbar=function(){return 0<Bt(this._element).closest(".navbar").length},t._getPopperConfig=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=h({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},l._jQueryInterface=function(e){return this.each(function(){var t=Bt(this).data(zt);if(t||(t=new l(this,"object"==typeof e?e:null),Bt(this).data(zt,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},l._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=Bt.makeArray(Bt(Jt)),i=0;i<e.length;i++){var n=l._getParentFromElement(e[i]),o=Bt(e[i]).data(zt),r={relatedTarget:e[i]};if(o){var a=o._menu;if(Bt(n).hasClass(Xt)&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&Bt.contains(n,t.target))){var s=Bt.Event(Kt.HIDE,r);Bt(n).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&Bt("body").children().off("mouseover",null,Bt.noop),e[i].setAttribute("aria-expanded","false"),Bt(a).removeClass(Xt),Bt(n).removeClass(Xt).trigger(Bt.Event(Kt.HIDDEN,r)))}}}},l._getParentFromElement=function(t){var e,i=je.getSelectorFromElement(t);return i&&(e=Bt(i)[0]),e||t.parentNode},l._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||Bt(t.target).closest(Zt).length)):Yt.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!Bt(this).hasClass(Qt))){var e=l._getParentFromElement(this),i=Bt(e).hasClass(Xt);if((i||27===t.which&&32===t.which)&&(!i||27!==t.which&&32!==t.which)){var n=Bt(e).find(".dropdown-menu .dropdown-item:not(.disabled)").get();if(0!==n.length){var o=n.indexOf(t.target);38===t.which&&0<o&&o--,40===t.which&&o<n.length-1&&o++,o<0&&(o=0),n[o].focus()}}else{if(27===t.which){var r=Bt(e).find(Jt)[0];Bt(r).trigger("focus")}Bt(this).trigger("click")}}},a(l,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return te}},{key:"DefaultType",get:function(){return ee}}]),l}(),Bt(document).on(Kt.KEYDOWN_DATA_API,Jt,ie._dataApiKeydownHandler).on(Kt.KEYDOWN_DATA_API,Zt,ie._dataApiKeydownHandler).on(Kt.CLICK_DATA_API+" "+Kt.KEYUP_DATA_API,ie._clearMenus).on(Kt.CLICK_DATA_API,Jt,function(t){t.preventDefault(),t.stopPropagation(),ie._jQueryInterface.call(Bt(this),"toggle")}).on(Kt.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),Bt.fn[$t]=ie._jQueryInterface,Bt.fn[$t].Constructor=ie,Bt.fn[$t].noConflict=function(){return Bt.fn[$t]=Ut,ie._jQueryInterface},ie),Ue=(Tt="."+(St="bs.modal"),Dt=(Ct=e).fn.modal,At={backdrop:!0,keyboard:!0,focus:!0,show:!0},Et={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},It={HIDE:"hide"+Tt,HIDDEN:"hidden"+Tt,SHOW:"show"+Tt,SHOWN:"shown"+Tt,FOCUSIN:"focusin"+Tt,RESIZE:"resize"+Tt,CLICK_DISMISS:"click.dismiss"+Tt,KEYDOWN_DISMISS:"keydown.dismiss"+Tt,MOUSEUP_DISMISS:"mouseup.dismiss"+Tt,MOUSEDOWN_DISMISS:"mousedown.dismiss"+Tt,CLICK_DATA_API:"click"+Tt+".data-api"},Mt="modal-open",Pt="fade",Nt="show",Ot=".modal-dialog",Ft='[data-toggle="modal"]',Lt='[data-dismiss="modal"]',Rt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Wt=".sticky-top",Ht=".navbar-toggler",jt=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=Ct(t).find(Ot)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var t=o.prototype;return t.toggle=function(t){return this._isShown?this.hide():this.show(t)},t.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){je.supportsTransitionEnd()&&Ct(this._element).hasClass(Pt)&&(this._isTransitioning=!0);var i=Ct.Event(It.SHOW,{relatedTarget:t});Ct(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),Ct(document.body).addClass(Mt),this._setEscapeEvent(),this._setResizeEvent(),Ct(this._element).on(It.CLICK_DISMISS,Lt,function(t){return e.hide(t)}),Ct(this._dialog).on(It.MOUSEDOWN_DISMISS,function(){Ct(e._element).one(It.MOUSEUP_DISMISS,function(t){Ct(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},t.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=Ct.Event(It.HIDE);if(Ct(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=je.supportsTransitionEnd()&&Ct(this._element).hasClass(Pt);n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),Ct(document).off(It.FOCUSIN),Ct(this._element).removeClass(Nt),Ct(this._element).off(It.CLICK_DISMISS),Ct(this._dialog).off(It.MOUSEDOWN_DISMISS),n?Ct(this._element).one(je.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},t.dispose=function(){Ct.removeData(this._element,St),Ct(window,document,this._element,this._backdrop).off(Tt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(t){return t=h({},At,t),je.typeCheckConfig("modal",t,Et),t},t._showElement=function(t){var e=this,i=je.supportsTransitionEnd()&&Ct(this._element).hasClass(Pt);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&je.reflow(this._element),Ct(this._element).addClass(Nt),this._config.focus&&this._enforceFocus();var n=Ct.Event(It.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,Ct(e._element).trigger(n)};i?Ct(this._dialog).one(je.TRANSITION_END,o).emulateTransitionEnd(300):o()},t._enforceFocus=function(){var e=this;Ct(document).off(It.FOCUSIN).on(It.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===Ct(e._element).has(t.target).length&&e._element.focus()})},t._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?Ct(this._element).on(It.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||Ct(this._element).off(It.KEYDOWN_DISMISS)},t._setResizeEvent=function(){var e=this;this._isShown?Ct(window).on(It.RESIZE,function(t){return e.handleUpdate(t)}):Ct(window).off(It.RESIZE)},t._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){Ct(document.body).removeClass(Mt),t._resetAdjustments(),t._resetScrollbar(),Ct(t._element).trigger(It.HIDDEN)})},t._removeBackdrop=function(){this._backdrop&&(Ct(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(t){var e=this,i=Ct(this._element).hasClass(Pt)?Pt:"";if(this._isShown&&this._config.backdrop){var n=je.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&Ct(this._backdrop).addClass(i),Ct(this._backdrop).appendTo(document.body),Ct(this._element).on(It.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&je.reflow(this._backdrop),Ct(this._backdrop).addClass(Nt),!t)return;if(!n)return void t();Ct(this._backdrop).one(je.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){Ct(this._backdrop).removeClass(Nt);var o=function(){e._removeBackdrop(),t&&t()};je.supportsTransitionEnd()&&Ct(this._element).hasClass(Pt)?Ct(this._backdrop).one(je.TRANSITION_END,o).emulateTransitionEnd(150):o()}else t&&t()},t._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var o=this;if(this._isBodyOverflowing){Ct(Rt).each(function(t,e){var i=Ct(e)[0].style.paddingRight,n=Ct(e).css("padding-right");Ct(e).data("padding-right",i).css("padding-right",parseFloat(n)+o._scrollbarWidth+"px")}),Ct(Wt).each(function(t,e){var i=Ct(e)[0].style.marginRight,n=Ct(e).css("margin-right");Ct(e).data("margin-right",i).css("margin-right",parseFloat(n)-o._scrollbarWidth+"px")}),Ct(Ht).each(function(t,e){var i=Ct(e)[0].style.marginRight,n=Ct(e).css("margin-right");Ct(e).data("margin-right",i).css("margin-right",parseFloat(n)+o._scrollbarWidth+"px")});var t=document.body.style.paddingRight,e=Ct("body").css("padding-right");Ct("body").data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px")}},t._resetScrollbar=function(){Ct(Rt).each(function(t,e){var i=Ct(e).data("padding-right");void 0!==i&&Ct(e).css("padding-right",i).removeData("padding-right")}),Ct(Wt+", "+Ht).each(function(t,e){var i=Ct(e).data("margin-right");void 0!==i&&Ct(e).css("margin-right",i).removeData("margin-right")});var t=Ct("body").data("padding-right");void 0!==t&&Ct("body").css("padding-right",t).removeData("padding-right")},t._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(i,n){return this.each(function(){var t=Ct(this).data(St),e=h({},o.Default,Ct(this).data(),"object"==typeof i&&i);if(t||(t=new o(this,e),Ct(this).data(St,t)),"string"==typeof i){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i](n)}else e.show&&t.show(n)})},a(o,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return At}}]),o}(),Ct(document).on(It.CLICK_DATA_API,Ft,function(t){var e,i=this,n=je.getSelectorFromElement(this);n&&(e=Ct(n)[0]);var o=Ct(e).data(St)?"toggle":h({},Ct(e).data(),Ct(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var r=Ct(e).one(It.SHOW,function(t){t.isDefaultPrevented()||r.one(It.HIDDEN,function(){Ct(i).is(":visible")&&i.focus()})});jt._jQueryInterface.call(Ct(e),o,this)}),Ct.fn.modal=jt._jQueryInterface,Ct.fn.modal.Constructor=jt,Ct.fn.modal.noConflict=function(){return Ct.fn.modal=Dt,jt._jQueryInterface},jt),Ye=(ct="tooltip",ht="."+(ut="bs.tooltip"),dt=(lt=e).fn[ct],ft=new RegExp("(^|\\s)bs-tooltip\\S+","g"),mt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!(gt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"}),selector:!(pt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"}),placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},bt={HIDE:"hide"+ht,HIDDEN:"hidden"+ht,SHOW:(vt="show")+ht,SHOWN:"shown"+ht,INSERTED:"inserted"+ht,CLICK:"click"+ht,FOCUSIN:"focusin"+ht,FOCUSOUT:"focusout"+ht,MOUSEENTER:"mouseenter"+ht,MOUSELEAVE:"mouseleave"+ht},yt="fade",_t="show",xt="hover",wt="focus",kt=function(){function c(t,e){if(void 0===u)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t=c.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=lt(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),lt(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(lt(this.getTipElement()).hasClass(_t))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),lt.removeData(this.element,this.constructor.DATA_KEY),lt(this.element).off(this.constructor.EVENT_KEY),lt(this.element).closest(".modal").off("hide.bs.modal"),this.tip&<(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===lt(this.element).css("display"))throw new Error("Please use show on visible elements");var t=lt.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){lt(this.element).trigger(t);var i=lt.contains(this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!i)return;var n=this.getTipElement(),o=je.getUID(this.constructor.NAME);n.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&<(n).addClass(yt);var r="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var s=!1===this.config.container?document.body:lt(this.config.container);lt(n).data(this.constructor.DATA_KEY,this),lt.contains(this.element.ownerDocument.documentElement,this.tip)||lt(n).appendTo(s),lt(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new u(this.element,n,{placement:a,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),lt(n).addClass(_t),"ontouchstart"in document.documentElement&<("body").children().on("mouseover",null,lt.noop);var l=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,lt(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};je.supportsTransitionEnd()&<(this.tip).hasClass(yt)?lt(this.tip).one(je.TRANSITION_END,l).emulateTransitionEnd(c._TRANSITION_DURATION):l()}},t.hide=function(t){var e=this,i=this.getTipElement(),n=lt.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==vt&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),lt(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};lt(this.element).trigger(n),n.isDefaultPrevented()||(lt(i).removeClass(_t),"ontouchstart"in document.documentElement&<("body").children().off("mouseover",null,lt.noop),this._activeTrigger.click=!1,this._activeTrigger[wt]=!1,this._activeTrigger[xt]=!1,je.supportsTransitionEnd()&<(this.tip).hasClass(yt)?lt(i).one(je.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(t){lt(this.getTipElement()).addClass("bs-tooltip-"+t)},t.getTipElement=function(){return this.tip=this.tip||lt(this.config.template)[0],this.tip},t.setContent=function(){var t=lt(this.getTipElement());this.setElementContent(t.find(".tooltip-inner"),this.getTitle()),t.removeClass(yt+" "+_t)},t.setElementContent=function(t,e){var i=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?i?lt(e).parent().is(t)||t.empty().append(e):t.text(lt(e).text()):t[i?"html":"text"](e)},t.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},t._getAttachment=function(t){return gt[t.toUpperCase()]},t._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)lt(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if("manual"!==t){var e=t===xt?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===xt?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;lt(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}lt(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})}),this.config.selector?this.config=h({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||lt(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),lt(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?wt:xt]=!0),lt(e.getTipElement()).hasClass(_t)||e._hoverState===vt?e._hoverState=vt:(clearTimeout(e._timeout),e._hoverState=vt,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===vt&&e.show()},e.config.delay.show):e.show())},t._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||lt(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),lt(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?wt:xt]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},t._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},t._getConfig=function(t){return"number"==typeof(t=h({},this.constructor.Default,lt(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),je.typeCheckConfig(ct,t,this.constructor.DefaultType),t},t._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},t._cleanTipClass=function(){var t=lt(this.getTipElement()),e=t.attr("class").match(ft);null!==e&&0<e.length&&t.removeClass(e.join(""))},t._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},t._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(lt(t).removeClass(yt),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},c._jQueryInterface=function(i){return this.each(function(){var t=lt(this).data(ut),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new c(this,e),lt(this).data(ut,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},a(c,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return mt}},{key:"NAME",get:function(){return ct}},{key:"DATA_KEY",get:function(){return ut}},{key:"Event",get:function(){return bt}},{key:"EVENT_KEY",get:function(){return ht}},{key:"DefaultType",get:function(){return pt}}]),c}(),lt.fn[ct]=kt._jQueryInterface,lt.fn[ct].Constructor=kt,lt.fn[ct].noConflict=function(){return lt.fn[ct]=dt,kt._jQueryInterface},kt),Ke=(Z="popover",et="."+(tt="bs.popover"),it=(J=e).fn[Z],nt=new RegExp("(^|\\s)bs-popover\\S+","g"),ot=h({},Ye.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),rt=h({},Ye.DefaultType,{content:"(string|element|function)"}),at={HIDE:"hide"+et,HIDDEN:"hidden"+et,SHOW:"show"+et,SHOWN:"shown"+et,INSERTED:"inserted"+et,CLICK:"click"+et,FOCUSIN:"focusin"+et,FOCUSOUT:"focusout"+et,MOUSEENTER:"mouseenter"+et,MOUSELEAVE:"mouseleave"+et},st=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),(e.prototype.constructor=e).__proto__=i;var o=n.prototype;return o.isWithContent=function(){return this.getTitle()||this._getContent()},o.addAttachmentClass=function(t){J(this.getTipElement()).addClass("bs-popover-"+t)},o.getTipElement=function(){return this.tip=this.tip||J(this.config.template)[0],this.tip},o.setContent=function(){var t=J(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},o._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},o._cleanTipClass=function(){var t=J(this.getTipElement()),e=t.attr("class").match(nt);null!==e&&0<e.length&&t.removeClass(e.join(""))},n._jQueryInterface=function(i){return this.each(function(){var t=J(this).data(tt),e="object"==typeof i?i:null;if((t||!/destroy|hide/.test(i))&&(t||(t=new n(this,e),J(this).data(tt,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return ot}},{key:"NAME",get:function(){return Z}},{key:"DATA_KEY",get:function(){return tt}},{key:"Event",get:function(){return at}},{key:"EVENT_KEY",get:function(){return et}},{key:"DefaultType",get:function(){return rt}}]),n}(Ye),J.fn[Z]=st._jQueryInterface,J.fn[Z].Constructor=st,J.fn[Z].noConflict=function(){return J.fn[Z]=it,st._jQueryInterface},st),Qe=(N="scrollspy",F="."+(O="bs.scrollspy"),L=(P=e).fn[N],R={offset:10,method:"auto",target:""},W={offset:"number",method:"string",target:"(string|element)"},H={ACTIVATE:"activate"+F,SCROLL:"scroll"+F,LOAD_DATA_API:"load"+F+".data-api"},j="active",B='[data-spy="scroll"]',$=".active",z=".nav, .list-group",q=".nav-link",V=".nav-item",U=".list-group-item",Y=".dropdown",K=".dropdown-item",Q=".dropdown-toggle",X="position",G=function(){function i(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+q+","+this._config.target+" "+U+","+this._config.target+" "+K,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,P(this._scrollElement).on(H.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var t=i.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":X,o="auto"===this._config.method?t:this._config.method,r=o===X?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),P.makeArray(P(this._selector)).map(function(t){var e,i=je.getSelectorFromElement(t);if(i&&(e=P(i)[0]),e){var n=e.getBoundingClientRect();if(n.width||n.height)return[P(e)[o]().top+r,i]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},t.dispose=function(){P.removeData(this._element,O),P(this._scrollElement).off(F),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},t._getConfig=function(t){if("string"!=typeof(t=h({},R,t)).target){var e=P(t.target).attr("id");e||(e=je.getUID(N),P(t.target).attr("id",e)),t.target="#"+e}return je.typeCheckConfig(N,t,W),t},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),i<=t){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",");t=t.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=P(t.join(","));i.hasClass("dropdown-item")?(i.closest(Y).find(Q).addClass(j),i.addClass(j)):(i.addClass(j),i.parents(z).prev(q+", "+U).addClass(j),i.parents(z).prev(V).children(q).addClass(j)),P(this._scrollElement).trigger(H.ACTIVATE,{relatedTarget:e})},t._clear=function(){P(this._selector).filter($).removeClass(j)},i._jQueryInterface=function(e){return this.each(function(){var t=P(this).data(O);if(t||(t=new i(this,"object"==typeof e&&e),P(this).data(O,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},a(i,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return R}}]),i}(),P(window).on(H.LOAD_DATA_API,function(){for(var t=P.makeArray(P(B)),e=t.length;e--;){var i=P(t[e]);G._jQueryInterface.call(i,i.data())}}),P.fn[N]=G._jQueryInterface,P.fn[N].Constructor=G,P.fn[N].noConflict=function(){return P.fn[N]=L,G._jQueryInterface},G),Xe=(S="."+(C="bs.tab"),T=(k=e).fn.tab,D={HIDE:"hide"+S,HIDDEN:"hidden"+S,SHOW:"show"+S,SHOWN:"shown"+S,CLICK_DATA_API:"click.bs.tab.data-api"},A="active",E=".active",I="> li > .active",M=function(){function n(t){this._element=t}var t=n.prototype;return t.show=function(){var i=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&k(this._element).hasClass(A)||k(this._element).hasClass("disabled"))){var t,n,e=k(this._element).closest(".nav, .list-group")[0],o=je.getSelectorFromElement(this._element);if(e){var r="UL"===e.nodeName?I:E;n=(n=k.makeArray(k(e).find(r)))[n.length-1]}var a=k.Event(D.HIDE,{relatedTarget:this._element}),s=k.Event(D.SHOW,{relatedTarget:n});if(n&&k(n).trigger(a),k(this._element).trigger(s),!s.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(t=k(o)[0]),this._activate(this._element,e);var l=function(){var t=k.Event(D.HIDDEN,{relatedTarget:i._element}),e=k.Event(D.SHOWN,{relatedTarget:n});k(n).trigger(t),k(i._element).trigger(e)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){k.removeData(this._element,C),this._element=null},t._activate=function(t,e,i){var n=this,o=("UL"===e.nodeName?k(e).find(I):k(e).children(E))[0],r=i&&je.supportsTransitionEnd()&&o&&k(o).hasClass("fade"),a=function(){return n._transitionComplete(t,o,i)};o&&r?k(o).one(je.TRANSITION_END,a).emulateTransitionEnd(150):a()},t._transitionComplete=function(t,e,i){if(e){k(e).removeClass("show "+A);var n=k(e.parentNode).find("> .dropdown-menu .active")[0];n&&k(n).removeClass(A),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(k(t).addClass(A),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),je.reflow(t),k(t).addClass("show"),t.parentNode&&k(t.parentNode).hasClass("dropdown-menu")){var o=k(t).closest(".dropdown")[0];o&&k(o).find(".dropdown-toggle").addClass(A),t.setAttribute("aria-expanded",!0)}i&&i()},n._jQueryInterface=function(i){return this.each(function(){var t=k(this),e=t.data(C);if(e||(e=new n(this),t.data(C,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),n}(),k(document).on(D.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),M._jQueryInterface.call(k(this),"show")}),k.fn.tab=M._jQueryInterface,k.fn.tab.Constructor=M,k.fn.tab.noConflict=function(){return k.fn.tab=T,M._jQueryInterface},M);!function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),t.Util=je,t.Alert=Be,t.Button=$e,t.Carousel=ze,t.Collapse=qe,t.Dropdown=Ve,t.Modal=Ue,t.Popover=Ke,t.Scrollspy=Qe,t.Tab=Xe,t.Tooltip=Ye,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Chart=t()}(function(){return function r(a,s,l){function c(e,t){if(!s[e]){if(!a[e]){var i="function"==typeof require&&require;if(!t&&i)return i(e,!0);if(u)return u(e,!0);var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}var o=s[e]={exports:{}};a[e][0].call(o.exports,function(t){return c(a[e][1][t]||t)},o,o.exports,r,a,s,l)}return s[e].exports}for(var u="function"==typeof require&&require,t=0;t<l.length;t++)c(l[t]);return c}({1:[function(t,e,i){},{}],2:[function(t,e,i){function n(t){if(t){var e=[0,0,0],i=1,n=t.match(/^#([a-fA-F0-9]{3})$/i);if(n)for(n=n[1],o=0;o<e.length;o++)e[o]=parseInt(n[o]+n[o],16);else if(n=t.match(/^#([a-fA-F0-9]{6})$/i))for(n=n[1],o=0;o<e.length;o++)e[o]=parseInt(n.slice(2*o,2*o+2),16);else if(n=t.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=parseInt(n[o+1]);i=parseFloat(n[4])}else if(n=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/i)){for(o=0;o<e.length;o++)e[o]=Math.round(2.55*parseFloat(n[o+1]));i=parseFloat(n[4])}else if(n=t.match(/(\w+)/)){if("transparent"==n[1])return[0,0,0,0];if(!(e=h[n[1]]))return}for(var o=0;o<e.length;o++)e[o]=c(e[o],0,255);return i=i||0==i?c(i,0,1):1,e[3]=i,e}}function o(t){if(t){var e=t.match(/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(i)?1:i,0,1)]}}}function r(t){if(t){var e=t.match(/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/);if(e){var i=parseFloat(e[4]);return[c(parseInt(e[1]),0,360),c(parseFloat(e[2]),0,100),c(parseFloat(e[3]),0,100),c(isNaN(i)?1:i,0,1)]}}}function a(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"rgba("+t[0]+", "+t[1]+", "+t[2]+", "+e+")"}function s(t,e){return"rgba("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%, "+(e||t[3]||1)+")"}function l(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+e+")"}function c(t,e,i){return Math.min(Math.max(e,t),i)}function u(t){var e=t.toString(16).toUpperCase();return e.length<2?"0"+e:e}var h=t(6);e.exports={getRgba:n,getHsla:o,getRgb:function(t){var e=n(t);return e&&e.slice(0,3)},getHsl:function(t){var e=o(t);return e&&e.slice(0,3)},getHwb:r,getAlpha:function(t){var e=n(t);return e?e[3]:(e=o(t))?e[3]:(e=r(t))?e[3]:void 0},hexString:function(t){return"#"+u(t[0])+u(t[1])+u(t[2])},rgbString:function(t,e){return e<1||t[3]&&t[3]<1?a(t,e):"rgb("+t[0]+", "+t[1]+", "+t[2]+")"},rgbaString:a,percentString:function(t,e){return e<1||t[3]&&t[3]<1?s(t,e):"rgb("+Math.round(t[0]/255*100)+"%, "+Math.round(t[1]/255*100)+"%, "+Math.round(t[2]/255*100)+"%)"},percentaString:s,hslString:function(t,e){return e<1||t[3]&&t[3]<1?l(t,e):"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)"},hslaString:l,hwbString:function(t,e){return void 0===e&&(e=void 0!==t[3]?t[3]:1),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+(void 0!==e&&1!==e?", "+e:"")+")"},keyword:function(t){return d[t.slice(0,3)]}};var d={};for(var f in h)d[h[f]]=f},{6:6}],3:[function(t,e,i){var u=t(5),n=t(2),a=function(t){return t instanceof a?t:this instanceof a?(this.valid=!1,this.values={rgb:[0,0,0],hsl:[0,0,0],hsv:[0,0,0],hwb:[0,0,0],cmyk:[0,0,0,0],alpha:1},void("string"==typeof t?(e=n.getRgba(t))?this.setValues("rgb",e):(e=n.getHsla(t))?this.setValues("hsl",e):(e=n.getHwb(t))&&this.setValues("hwb",e):"object"==typeof t&&(void 0!==(e=t).r||void 0!==e.red?this.setValues("rgb",e):void 0!==e.l||void 0!==e.lightness?this.setValues("hsl",e):void 0!==e.v||void 0!==e.value?this.setValues("hsv",e):void 0!==e.w||void 0!==e.whiteness?this.setValues("hwb",e):void 0===e.c&&void 0===e.cyan||this.setValues("cmyk",e)))):new a(t);var e};a.prototype={isValid:function(){return this.valid},rgb:function(){return this.setSpace("rgb",arguments)},hsl:function(){return this.setSpace("hsl",arguments)},hsv:function(){return this.setSpace("hsv",arguments)},hwb:function(){return this.setSpace("hwb",arguments)},cmyk:function(){return this.setSpace("cmyk",arguments)},rgbArray:function(){return this.values.rgb},hslArray:function(){return this.values.hsl},hsvArray:function(){return this.values.hsv},hwbArray:function(){var t=this.values;return 1!==t.alpha?t.hwb.concat([t.alpha]):t.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var t=this.values;return t.rgb.concat([t.alpha])},hslaArray:function(){var t=this.values;return t.hsl.concat([t.alpha])},alpha:function(t){return void 0===t?this.values.alpha:(this.setValues("alpha",t),this)},red:function(t){return this.setChannel("rgb",0,t)},green:function(t){return this.setChannel("rgb",1,t)},blue:function(t){return this.setChannel("rgb",2,t)},hue:function(t){return t&&(t=(t%=360)<0?360+t:t),this.setChannel("hsl",0,t)},saturation:function(t){return this.setChannel("hsl",1,t)},lightness:function(t){return this.setChannel("hsl",2,t)},saturationv:function(t){return this.setChannel("hsv",1,t)},whiteness:function(t){return this.setChannel("hwb",1,t)},blackness:function(t){return this.setChannel("hwb",2,t)},value:function(t){return this.setChannel("hsv",2,t)},cyan:function(t){return this.setChannel("cmyk",0,t)},magenta:function(t){return this.setChannel("cmyk",1,t)},yellow:function(t){return this.setChannel("cmyk",2,t)},black:function(t){return this.setChannel("cmyk",3,t)},hexString:function(){return n.hexString(this.values.rgb)},rgbString:function(){return n.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return n.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return n.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return n.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return n.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return n.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return n.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var t=this.values.rgb;return t[0]<<16|t[1]<<8|t[2]},luminosity:function(){for(var t=this.values.rgb,e=[],i=0;i<t.length;i++){var n=t[i]/255;e[i]=n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}return.2126*e[0]+.7152*e[1]+.0722*e[2]},contrast:function(t){var e=this.luminosity(),i=t.luminosity();return i<e?(e+.05)/(i+.05):(i+.05)/(e+.05)},level:function(t){var e=this.contrast(t);return 7.1<=e?"AAA":4.5<=e?"AA":""},dark:function(){var t=this.values.rgb;return(299*t[0]+587*t[1]+114*t[2])/1e3<128},light:function(){return!this.dark()},negate:function(){for(var t=[],e=0;e<3;e++)t[e]=255-this.values.rgb[e];return this.setValues("rgb",t),this},lighten:function(t){var e=this.values.hsl;return e[2]+=e[2]*t,this.setValues("hsl",e),this},darken:function(t){var e=this.values.hsl;return e[2]-=e[2]*t,this.setValues("hsl",e),this},saturate:function(t){var e=this.values.hsl;return e[1]+=e[1]*t,this.setValues("hsl",e),this},desaturate:function(t){var e=this.values.hsl;return e[1]-=e[1]*t,this.setValues("hsl",e),this},whiten:function(t){var e=this.values.hwb;return e[1]+=e[1]*t,this.setValues("hwb",e),this},blacken:function(t){var e=this.values.hwb;return e[2]+=e[2]*t,this.setValues("hwb",e),this},greyscale:function(){var t=this.values.rgb,e=.3*t[0]+.59*t[1]+.11*t[2];return this.setValues("rgb",[e,e,e]),this},clearer:function(t){var e=this.values.alpha;return this.setValues("alpha",e-e*t),this},opaquer:function(t){var e=this.values.alpha;return this.setValues("alpha",e+e*t),this},rotate:function(t){var e=this.values.hsl,i=(e[0]+t)%360;return e[0]=i<0?360+i:i,this.setValues("hsl",e),this},mix:function(t,e){var i=this,n=t,o=void 0===e?.5:e,r=2*o-1,a=i.alpha()-n.alpha(),s=((r*a==-1?r:(r+a)/(1+r*a))+1)/2,l=1-s;return this.rgb(s*i.red()+l*n.red(),s*i.green()+l*n.green(),s*i.blue()+l*n.blue()).alpha(i.alpha()*o+n.alpha()*(1-o))},toJSON:function(){return this.rgb()},clone:function(){var t,e,i=new a,n=this.values,o=i.values;for(var r in n)n.hasOwnProperty(r)&&(t=n[r],"[object Array]"===(e={}.toString.call(t))?o[r]=t.slice(0):"[object Number]"===e?o[r]=t:console.error("unexpected color value:",t));return i}},a.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},a.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},a.prototype.getValues=function(t){for(var e=this.values,i={},n=0;n<t.length;n++)i[t.charAt(n)]=e[t][n];return 1!==e.alpha&&(i.a=e.alpha),i},a.prototype.setValues=function(t,e){var i,n,o=this.values,r=this.spaces,a=this.maxes,s=1;if(this.valid=!0,"alpha"===t)s=e;else if(e.length)o[t]=e.slice(0,t.length),s=e[t.length];else if(void 0!==e[t.charAt(0)]){for(i=0;i<t.length;i++)o[t][i]=e[t.charAt(i)];s=e.a}else if(void 0!==e[r[t][0]]){var l=r[t];for(i=0;i<t.length;i++)o[t][i]=e[l[i]];s=e.alpha}if(o.alpha=Math.max(0,Math.min(1,void 0===s?o.alpha:s)),"alpha"===t)return!1;for(i=0;i<t.length;i++)n=Math.max(0,Math.min(a[t][i],o[t][i])),o[t][i]=Math.round(n);for(var c in r)c!==t&&(o[c]=u[t][c](o[t]));return!0},a.prototype.setSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i),this)},a.prototype.setChannel=function(t,e,i){var n=this.values[t];return void 0===i?n[e]:(i===n[e]||(n[e]=i,this.setValues(t,n)),this)},"undefined"!=typeof window&&(window.Color=a),e.exports=a},{2:2,5:5}],4:[function(t,e,i){function o(t){var e,i,n=t[0]/255,o=t[1]/255,r=t[2]/255,a=Math.min(n,o,r),s=Math.max(n,o,r),l=s-a;return s==a?e=0:n==s?e=(o-r)/l:o==s?e=2+(r-n)/l:r==s&&(e=4+(n-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(a+s)/2,[e,100*(s==a?0:i<=.5?l/(s+a):l/(2-s-a)),100*i]}function n(t){var e,i,n=t[0],o=t[1],r=t[2],a=Math.min(n,o,r),s=Math.max(n,o,r),l=s-a;return i=0==s?0:l/s*1e3/10,s==a?e=0:n==s?e=(o-r)/l:o==s?e=2+(r-n)/l:r==s&&(e=4+(n-o)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,i,s/255*1e3/10]}function a(t){var e=t[0],i=t[1],n=t[2];return[o(t)[0],1/255*Math.min(e,Math.min(i,n))*100,100*(n=1-1/255*Math.max(e,Math.max(i,n)))]}function s(t){var e,i=t[0]/255,n=t[1]/255,o=t[2]/255;return[100*((1-i-(e=Math.min(1-i,1-n,1-o)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-o-e)/(1-e)||0),100*e]}function l(t){return S[JSON.stringify(t)]}function c(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;return[100*(.4124*(e=.04045<e?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(i=.04045<i?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=.04045<n?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]}function u(t){var e=c(t),i=e[0],n=e[1],o=e[2];return n/=100,o/=108.883,i=.008856<(i/=95.047)?Math.pow(i,1/3):7.787*i+16/116,[116*(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116)-16,500*(i-n),200*(n-(o=.008856<o?Math.pow(o,1/3):7.787*o+16/116))]}function h(t){var e,i,n,o,r,a=t[0]/360,s=t[1]/100,l=t[2]/100;if(0==s)return[r=255*l,r,r];e=2*l-(i=l<.5?l*(1+s):l+s-l*s),o=[0,0,0];for(var c=0;c<3;c++)(n=a+1/3*-(c-1))<0&&n++,1<n&&n--,r=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,o[c]=255*r;return o}function d(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,o=Math.floor(e)%6,r=e-Math.floor(e),a=255*n*(1-i),s=255*n*(1-i*r),l=255*n*(1-i*(1-r));n*=255;switch(o){case 0:return[n,l,a];case 1:return[s,n,a];case 2:return[a,n,l];case 3:return[a,s,n];case 4:return[l,a,n];case 5:return[n,a,s]}}function f(t){var e,i,n,o,a=t[0]/360,s=t[1]/100,l=t[2]/100,c=s+l;switch(1<c&&(s/=c,l/=c),n=6*a-(e=Math.floor(6*a)),0!=(1&e)&&(n=1-n),o=s+n*((i=1-l)-s),e){default:case 6:case 0:r=i,g=o,b=s;break;case 1:r=o,g=i,b=s;break;case 2:r=s,g=i,b=o;break;case 3:r=s,g=o,b=i;break;case 4:r=o,g=s,b=i;break;case 5:r=i,g=s,b=o}return[255*r,255*g,255*b]}function p(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,o=t[3]/100;return[255*(1-Math.min(1,e*(1-o)+o)),255*(1-Math.min(1,i*(1-o)+o)),255*(1-Math.min(1,n*(1-o)+o))]}function m(t){var e,i,n,o=t[0]/100,r=t[1]/100,a=t[2]/100;return i=-.9689*o+1.8758*r+.0415*a,n=.0557*o+-.204*r+1.057*a,e=.0031308<(e=3.2406*o+-1.5372*r+-.4986*a)?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=.0031308<i?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=.0031308<n?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]}function v(t){var e=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,e=.008856<(e/=95.047)?Math.pow(e,1/3):7.787*e+16/116,[116*(i=.008856<i?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(n=.008856<n?Math.pow(n,1/3):7.787*n+16/116))]}function y(t){var e,i,n,o,r=t[0],a=t[1],s=t[2];return o=r<=8?(i=100*r/903.3)/100*7.787+16/116:(i=100*Math.pow((r+16)/116,3),Math.pow(i/100,1/3)),[e=e/95.047<=.008856?e=95.047*(a/500+o-16/116)/7.787:95.047*Math.pow(a/500+o,3),i,n=n/108.883<=.008859?n=108.883*(o-s/200-16/116)/7.787:108.883*Math.pow(o-s/200,3)]}function _(t){var e,i=t[0],n=t[1],o=t[2];return(e=360*Math.atan2(o,n)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(n*n+o*o),e]}function x(t){return m(y(t))}function w(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]}function k(t){return C[t]}e.exports={rgb2hsl:o,rgb2hsv:n,rgb2hwb:a,rgb2cmyk:s,rgb2keyword:l,rgb2xyz:c,rgb2lab:u,rgb2lch:function(t){return _(u(t))},hsl2rgb:h,hsl2hsv:function(t){var e=t[0],i=t[1]/100,n=t[2]/100;return 0===n?[0,0,0]:[e,100*(2*(i*=(n*=2)<=1?n:2-n)/(n+i)),100*((n+i)/2)]},hsl2hwb:function(t){return a(h(t))},hsl2cmyk:function(t){return s(h(t))},hsl2keyword:function(t){return l(h(t))},hsv2rgb:d,hsv2hsl:function(t){var e,i,n=t[0],o=t[1]/100,r=t[2]/100;return e=o*r,[n,100*(e=(e/=(i=(2-o)*r)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return a(d(t))},hsv2cmyk:function(t){return s(d(t))},hsv2keyword:function(t){return l(d(t))},hwb2rgb:f,hwb2hsl:function(t){return o(f(t))},hwb2hsv:function(t){return n(f(t))},hwb2cmyk:function(t){return s(f(t))},hwb2keyword:function(t){return l(f(t))},cmyk2rgb:p,cmyk2hsl:function(t){return o(p(t))},cmyk2hsv:function(t){return n(p(t))},cmyk2hwb:function(t){return a(p(t))},cmyk2keyword:function(t){return l(p(t))},keyword2rgb:k,keyword2hsl:function(t){return o(k(t))},keyword2hsv:function(t){return n(k(t))},keyword2hwb:function(t){return a(k(t))},keyword2cmyk:function(t){return s(k(t))},keyword2lab:function(t){return u(k(t))},keyword2xyz:function(t){return c(k(t))},xyz2rgb:m,xyz2lab:v,xyz2lch:function(t){return _(v(t))},lab2xyz:y,lab2rgb:x,lab2lch:_,lch2lab:w,lch2xyz:function(t){return y(w(t))},lch2rgb:function(t){return x(w(t))}};var C={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],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]},S={};for(var T in C)S[JSON.stringify(C[T])]=T},{}],5:[function(t,e,i){var o=t(4),r=function(){return new c};for(var n in o){r[n+"Raw"]=function(e){return function(t){return"number"==typeof t&&(t=Array.prototype.slice.call(arguments)),o[e](t)}}(n);var a=/(\w+)2(\w+)/.exec(n),s=a[1],l=a[2];(r[s]=r[s]||{})[l]=r[n]=function(n){return function(t){"number"==typeof t&&(t=Array.prototype.slice.call(arguments));var e=o[n](t);if("string"==typeof e||void 0===e)return e;for(var i=0;i<e.length;i++)e[i]=Math.round(e[i]);return e}}(n)}var c=function(){this.convs={}};c.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},c.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},c.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=r[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(e){c.prototype[e]=function(t){return this.routeSpace(e,arguments)}}),e.exports=r},{4:4}],6:[function(t,e,i){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],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 n=t(29)();n.helpers=t(45),t(27)(n),n.defaults=t(25),n.Element=t(26),n.elements=t(40),n.Interaction=t(28),n.platform=t(48),t(31)(n),t(22)(n),t(23)(n),t(24)(n),t(30)(n),t(33)(n),t(32)(n),t(35)(n),t(54)(n),t(52)(n),t(53)(n),t(55)(n),t(56)(n),t(57)(n),t(15)(n),t(16)(n),t(17)(n),t(18)(n),t(19)(n),t(20)(n),t(21)(n),t(8)(n),t(9)(n),t(10)(n),t(11)(n),t(12)(n),t(13)(n),t(14)(n);var o=[];o.push(t(49)(n),t(50)(n),t(51)(n)),n.plugins.register(o),n.platform.initialize(),e.exports=n,"undefined"!=typeof window&&(window.Chart=n),n.canvasHelpers=n.helpers.canvas},{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,35:35,40:40,45:45,48:48,49:49,50:50,51:51,52:52,53:53,54:54,55:55,56:56,57:57,8:8,9:9}],8:[function(t,e,i){"use strict";e.exports=function(i){i.Bar=function(t,e){return e.type="bar",new i(t,e)}}},{}],9:[function(t,e,i){"use strict";e.exports=function(i){i.Bubble=function(t,e){return e.type="bubble",new i(t,e)}}},{}],10:[function(t,e,i){"use strict";e.exports=function(i){i.Doughnut=function(t,e){return e.type="doughnut",new i(t,e)}}},{}],11:[function(t,e,i){"use strict";e.exports=function(i){i.Line=function(t,e){return e.type="line",new i(t,e)}}},{}],12:[function(t,e,i){"use strict";e.exports=function(i){i.PolarArea=function(t,e){return e.type="polarArea",new i(t,e)}}},{}],13:[function(t,e,i){"use strict";e.exports=function(i){i.Radar=function(t,e){return e.type="radar",new i(t,e)}}},{}],14:[function(t,e,i){"use strict";e.exports=function(i){i.Scatter=function(t,e){return e.type="scatter",new i(t,e)}}},{}],15:[function(t,e,i){"use strict";var n=t(25),o=t(40),g=t(45);n._set("bar",{hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,offset:!0,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}}),n._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 0<t.length&&(t[0].yLabel?i=t[0].yLabel:0<e.labels.length&&t[0].index<e.labels.length&&(i=e.labels[t[0].index])),i},label:function(t,e){return(e.datasets[t.datasetIndex].label||"")+": "+t.xLabel}},mode:"index",axis:"y"}}),e.exports=function(e){e.controllers.bar=e.DatasetController.extend({dataElementType:o.Rectangle,initialize:function(){var t;e.DatasetController.prototype.initialize.apply(this,arguments),(t=this.getMeta()).stack=this.getDataset().stack,t.bar=!0},update:function(t){var e,i,n=this.getMeta().data;for(this._ruler=this.getRuler(),e=0,i=n.length;e<i;++e)this.updateElement(n[e],e,t)},updateElement:function(t,e,i){var n=this,o=n.chart,r=n.getMeta(),a=n.getDataset(),s=t.custom||{},l=o.options.elements.rectangle;t._xScale=n.getScaleForId(r.xAxisID),t._yScale=n.getScaleForId(r.yAxisID),t._datasetIndex=n.index,t._index=e,t._model={datasetLabel:a.label,label:o.data.labels[e],borderSkipped:s.borderSkipped?s.borderSkipped:l.borderSkipped,backgroundColor:s.backgroundColor?s.backgroundColor:g.valueAtIndexOrDefault(a.backgroundColor,e,l.backgroundColor),borderColor:s.borderColor?s.borderColor:g.valueAtIndexOrDefault(a.borderColor,e,l.borderColor),borderWidth:s.borderWidth?s.borderWidth:g.valueAtIndexOrDefault(a.borderWidth,e,l.borderWidth)},n.updateElementGeometry(t,e,i),t.pivot()},updateElementGeometry:function(t,e,i){var n=this,o=t._model,r=n.getValueScale(),a=r.getBasePixel(),s=r.isHorizontal(),l=n._ruler||n.getRuler(),c=n.calculateBarValuePixels(n.index,e),u=n.calculateBarIndexPixels(n.index,e,l);o.horizontal=s,o.base=i?a:c.base,o.x=s?i?a:c.head:u.center,o.y=s?u.center:i?a:c.head,o.height=s?u.size:void 0,o.width=s?void 0:u.size},getValueScaleId:function(){return this.getMeta().yAxisID},getIndexScaleId:function(){return this.getMeta().xAxisID},getValueScale:function(){return this.getScaleForId(this.getValueScaleId())},getIndexScale:function(){return this.getScaleForId(this.getIndexScaleId())},getStackCount:function(t){var e,i,n=this.chart,o=this.getIndexScale().options.stacked,r=void 0===t?n.data.datasets.length:t+1,a=[];for(e=0;e<r;++e)(i=n.getDatasetMeta(e)).bar&&n.isDatasetVisible(e)&&(!1===o||!0===o&&-1===a.indexOf(i.stack)||void 0===o&&(void 0===i.stack||-1===a.indexOf(i.stack)))&&a.push(i.stack);return a.length},getStackIndex:function(t){return this.getStackCount(t)-1},getRuler:function(){var t,e,i=this.getIndexScale(),n=this.getStackCount(),o=this.index,r=[],a=i.isHorizontal(),s=a?i.left:i.top,l=s+(a?i.width:i.height);for(t=0,e=this.getMeta().data.length;t<e;++t)r.push(i.getPixelForValue(null,t,o));return{pixels:r,start:s,end:l,stackCount:n,scale:i}},calculateBarValuePixels:function(t,e){var i,n,o,r,a,s,l=this.chart,c=this.getMeta(),u=this.getValueScale(),h=l.data.datasets,d=u.getRightValue(h[t].data[e]),f=u.options.stacked,p=c.stack,g=0;if(f||void 0===f&&void 0!==p)for(i=0;i<t;++i)(n=l.getDatasetMeta(i)).bar&&n.stack===p&&n.controller.getValueScaleId()===u.id&&l.isDatasetVisible(i)&&(o=u.getRightValue(h[i].data[e]),(d<0&&o<0||0<=d&&0<o)&&(g+=o));return r=u.getPixelForValue(g),{size:s=((a=u.getPixelForValue(g+d))-r)/2,base:r,head:a,center:a+s/2}},calculateBarIndexPixels:function(t,e,i){var n,o,r,a,s,l=i.scale.options,c=this.getStackIndex(t),u=i.pixels,h=u[e],d=u.length,f=i.start,p=i.end;return 1===d?(n=f<h?h-f:p-h,o=h<p?p-h:h-f):(0<e&&(n=(h-u[e-1])/2,e===d-1&&(o=n)),e<d-1&&(o=(u[e+1]-h)/2,0===e&&(n=o))),s=(a=((r=n*l.categoryPercentage)+o*l.categoryPercentage)/i.stackCount)*l.barPercentage,h-=r,h+=a*c,{size:s=Math.min(g.valueOrDefault(l.barThickness,s),g.valueOrDefault(l.maxBarThickness,1/0)),base:h+=(a-s)/2,head:h+s,center:h+s/2}},draw:function(){var t=this.chart,e=this.getValueScale(),i=this.getMeta().data,n=this.getDataset(),o=i.length,r=0;for(g.canvas.clipArea(t.ctx,t.chartArea);r<o;++r)isNaN(e.getRightValue(n.data[r]))||i[r].draw();g.canvas.unclipArea(t.ctx)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model;o.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:g.valueAtIndexOrDefault(e.hoverBackgroundColor,i,g.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor?n.hoverBorderColor:g.valueAtIndexOrDefault(e.hoverBorderColor,i,g.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:g.valueAtIndexOrDefault(e.hoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model,r=this.chart.options.elements.rectangle;o.backgroundColor=n.backgroundColor?n.backgroundColor:g.valueAtIndexOrDefault(e.backgroundColor,i,r.backgroundColor),o.borderColor=n.borderColor?n.borderColor:g.valueAtIndexOrDefault(e.borderColor,i,r.borderColor),o.borderWidth=n.borderWidth?n.borderWidth:g.valueAtIndexOrDefault(e.borderWidth,i,r.borderWidth)}}),e.controllers.horizontalBar=e.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{25:25,40:40,45:45}],16:[function(t,e,i){"use strict";var n=t(25),o=t(40),p=t(45);n._set("bubble",{hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-0"}],yAxes:[{type:"linear",position:"left",id:"y-axis-0"}]},tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.datasets[t.datasetIndex].label||"",n=e.datasets[t.datasetIndex].data[t.index];return i+": ("+t.xLabel+", "+t.yLabel+", "+n.r+")"}}}}),e.exports=function(t){t.controllers.bubble=t.DatasetController.extend({dataElementType:o.Point,update:function(i){var n=this,t=n.getMeta().data;p.each(t,function(t,e){n.updateElement(t,e,i)})},updateElement:function(t,e,i){var n=this,o=n.getMeta(),r=t.custom||{},a=n.getScaleForId(o.xAxisID),s=n.getScaleForId(o.yAxisID),l=n._resolveElementOptions(t,e),c=n.getDataset().data[e],u=n.index,h=i?a.getPixelForDecimal(.5):a.getPixelForValue("object"==typeof c?c:NaN,e,u),d=i?s.getBasePixel():s.getPixelForValue(c,e,u);t._xScale=a,t._yScale=s,t._options=l,t._datasetIndex=u,t._index=e,t._model={backgroundColor:l.backgroundColor,borderColor:l.borderColor,borderWidth:l.borderWidth,hitRadius:l.hitRadius,pointStyle:l.pointStyle,radius:i?0:l.radius,skip:r.skip||isNaN(h)||isNaN(d),x:h,y:d},t.pivot()},setHoverStyle:function(t){var e=t._model,i=t._options;e.backgroundColor=p.valueOrDefault(i.hoverBackgroundColor,p.getHoverColor(i.backgroundColor)),e.borderColor=p.valueOrDefault(i.hoverBorderColor,p.getHoverColor(i.borderColor)),e.borderWidth=p.valueOrDefault(i.hoverBorderWidth,i.borderWidth),e.radius=i.radius+i.hoverRadius},removeHoverStyle:function(t){var e=t._model,i=t._options;e.backgroundColor=i.backgroundColor,e.borderColor=i.borderColor,e.borderWidth=i.borderWidth,e.radius=i.radius},_resolveElementOptions:function(t,e){var i,n,o,r=this.chart,a=r.data.datasets[this.index],s=t.custom||{},l=r.options.elements.point,c=p.options.resolve,u=a.data[e],h={},d={chart:r,dataIndex:e,dataset:a,datasetIndex:this.index},f=["backgroundColor","borderColor","borderWidth","hoverBackgroundColor","hoverBorderColor","hoverBorderWidth","hoverRadius","hitRadius","pointStyle"];for(i=0,n=f.length;i<n;++i)h[o=f[i]]=c([s[o],a[o],l[o]],d,e);return h.radius=c([s.radius,u?u.r:void 0,a.radius,l.radius],d,e),h}})}},{25:25,40:40,45:45}],17:[function(t,e,i){"use strict";var n=t(25),o=t(40),I=t(45);n._set("doughnut",{animation:{animateRotate:!0,animateScale:!1},hover:{mode:"single"},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,o=i.labels;if(n.length)for(var r=0;r<n[0].data.length;++r)e.push('<li><span style="background-color:'+n[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(l){var c=l.data;return c.labels.length&&c.datasets.length?c.labels.map(function(t,e){var i=l.getDatasetMeta(0),n=c.datasets[0],o=i.data[e],r=o&&o.custom||{},a=I.valueAtIndexOrDefault,s=l.options.elements.arc;return{text:t,fillStyle:r.backgroundColor?r.backgroundColor:a(n.backgroundColor,e,s.backgroundColor),strokeStyle:r.borderColor?r.borderColor:a(n.borderColor,e,s.borderColor),lineWidth:r.borderWidth?r.borderWidth:a(n.borderWidth,e,s.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,o,r=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;i<n;++i)(o=a.getDatasetMeta(i)).data[r]&&(o.data[r].hidden=!o.data[r].hidden);a.update()}},cutoutPercentage:50,rotation:-.5*Math.PI,circumference:2*Math.PI,tooltips:{callbacks:{title:function(){return""},label:function(t,e){var i=e.labels[t.index],n=": "+e.datasets[t.datasetIndex].data[t.index];return I.isArray(i)?(i=i.slice())[0]+=n:i+=n,i}}}}),n._set("pie",I.clone(n.doughnut)),n._set("pie",{cutoutPercentage:0}),e.exports=function(e){e.controllers.doughnut=e.controllers.pie=e.DatasetController.extend({dataElementType:o.Arc,linkScales:I.noop,getRingIndex:function(t){for(var e=0,i=0;i<t;++i)this.chart.isDatasetVisible(i)&&++e;return e},update:function(i){var n=this,t=n.chart,e=t.chartArea,o=t.options,r=o.elements.arc,a=e.right-e.left-r.borderWidth,s=e.bottom-e.top-r.borderWidth,l=Math.min(a,s),c={x:0,y:0},u=n.getMeta(),h=o.cutoutPercentage,d=o.circumference;if(d<2*Math.PI){var f=o.rotation%(2*Math.PI),p=(f+=2*Math.PI*(f>=Math.PI?-1:f<-Math.PI?1:0))+d,g=Math.cos(f),m=Math.sin(f),v=Math.cos(p),b=Math.sin(p),y=f<=0&&0<=p||f<=2*Math.PI&&2*Math.PI<=p,_=f<=.5*Math.PI&&.5*Math.PI<=p||f<=2.5*Math.PI&&2.5*Math.PI<=p,x=f<=-Math.PI&&-Math.PI<=p||f<=Math.PI&&Math.PI<=p,w=f<=.5*-Math.PI&&.5*-Math.PI<=p||f<=1.5*Math.PI&&1.5*Math.PI<=p,k=h/100,C=x?-1:Math.min(g*(g<0?1:k),v*(v<0?1:k)),S=w?-1:Math.min(m*(m<0?1:k),b*(b<0?1:k)),T=y?1:Math.max(g*(0<g?1:k),v*(0<v?1:k)),D=_?1:Math.max(m*(0<m?1:k),b*(0<b?1:k)),A=.5*(T-C),E=.5*(D-S);l=Math.min(a/A,s/E),c={x:-.5*(T+C),y:-.5*(D+S)}}t.borderWidth=n.getMaxBorderWidth(u.data),t.outerRadius=Math.max((l-t.borderWidth)/2,0),t.innerRadius=Math.max(h?t.outerRadius/100*h:0,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),t.offsetX=c.x*t.outerRadius,t.offsetY=c.y*t.outerRadius,u.total=n.calculateTotal(),n.outerRadius=t.outerRadius-t.radiusLength*n.getRingIndex(n.index),n.innerRadius=Math.max(n.outerRadius-t.radiusLength,0),I.each(u.data,function(t,e){n.updateElement(t,e,i)})},updateElement:function(t,e,i){var n=this.chart,o=n.chartArea,r=n.options,a=r.animation,s=(o.left+o.right)/2,l=(o.top+o.bottom)/2,c=r.rotation,u=r.rotation,h=this.getDataset(),d=i&&a.animateRotate?0:t.hidden?0:this.calculateCircumference(h.data[e])*(r.circumference/(2*Math.PI)),f=i&&a.animateScale?0:this.innerRadius,p=i&&a.animateScale?0:this.outerRadius,g=I.valueAtIndexOrDefault;I.extend(t,{_datasetIndex:this.index,_index:e,_model:{x:s+n.offsetX,y:l+n.offsetY,startAngle:c,endAngle:u,circumference:d,outerRadius:p,innerRadius:f,label:g(h.label,e,n.data.labels[e])}});var m=t._model;this.removeHoverStyle(t),i&&a.animateRotate||(m.startAngle=0===e?r.rotation:this.getMeta().data[e-1]._model.endAngle,m.endAngle=m.startAngle+m.circumference),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var i,n=this.getDataset(),t=this.getMeta(),o=0;return I.each(t.data,function(t,e){i=n.data[e],isNaN(i)||t.hidden||(o+=Math.abs(i))}),o},calculateCircumference:function(t){var e=this.getMeta().total;return 0<e&&!isNaN(t)?2*Math.PI*(t/e):0},getMaxBorderWidth:function(t){for(var e,i,n=0,o=this.index,r=t.length,a=0;a<r;a++)e=t[a]._model?t[a]._model.borderWidth:0,n=(i=t[a]._chart?t[a]._chart.config.data.datasets[o].hoverBorderWidth:0)>(n=n<e?e:n)?i:n;return n}})}},{25:25,40:40,45:45}],18:[function(t,e,i){"use strict";var n=t(25),o=t(40),p=t(45);n._set("line",{showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}}),e.exports=function(t){function d(t,e){return p.valueOrDefault(t.showLine,e.showLines)}t.controllers.line=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,update:function(t){var e,i,n,o=this.getMeta(),r=o.dataset,a=o.data||[],s=this.chart.options,l=s.elements.line,c=this.getScaleForId(o.yAxisID),u=this.getDataset(),h=d(u,s);for(h&&(n=r.custom||{},void 0!==u.tension&&void 0===u.lineTension&&(u.lineTension=u.tension),r._scale=c,r._datasetIndex=this.index,r._children=a,r._model={spanGaps:u.spanGaps?u.spanGaps:s.spanGaps,tension:n.tension?n.tension:p.valueOrDefault(u.lineTension,l.tension),backgroundColor:n.backgroundColor?n.backgroundColor:u.backgroundColor||l.backgroundColor,borderWidth:n.borderWidth?n.borderWidth:u.borderWidth||l.borderWidth,borderColor:n.borderColor?n.borderColor:u.borderColor||l.borderColor,borderCapStyle:n.borderCapStyle?n.borderCapStyle:u.borderCapStyle||l.borderCapStyle,borderDash:n.borderDash?n.borderDash:u.borderDash||l.borderDash,borderDashOffset:n.borderDashOffset?n.borderDashOffset:u.borderDashOffset||l.borderDashOffset,borderJoinStyle:n.borderJoinStyle?n.borderJoinStyle:u.borderJoinStyle||l.borderJoinStyle,fill:n.fill?n.fill:void 0!==u.fill?u.fill:l.fill,steppedLine:n.steppedLine?n.steppedLine:p.valueOrDefault(u.steppedLine,l.stepped),cubicInterpolationMode:n.cubicInterpolationMode?n.cubicInterpolationMode:p.valueOrDefault(u.cubicInterpolationMode,l.cubicInterpolationMode)},r.pivot()),e=0,i=a.length;e<i;++e)this.updateElement(a[e],e,t);for(h&&0!==r._model.tension&&this.updateBezierControlPoints(),e=0,i=a.length;e<i;++e)a[e].pivot()},getPointBackgroundColor:function(t,e){var i=this.chart.options.elements.point.backgroundColor,n=this.getDataset(),o=t.custom||{};return o.backgroundColor?i=o.backgroundColor:n.pointBackgroundColor?i=p.valueAtIndexOrDefault(n.pointBackgroundColor,e,i):n.backgroundColor&&(i=n.backgroundColor),i},getPointBorderColor:function(t,e){var i=this.chart.options.elements.point.borderColor,n=this.getDataset(),o=t.custom||{};return o.borderColor?i=o.borderColor:n.pointBorderColor?i=p.valueAtIndexOrDefault(n.pointBorderColor,e,i):n.borderColor&&(i=n.borderColor),i},getPointBorderWidth:function(t,e){var i=this.chart.options.elements.point.borderWidth,n=this.getDataset(),o=t.custom||{};return isNaN(o.borderWidth)?!isNaN(n.pointBorderWidth)||p.isArray(n.pointBorderWidth)?i=p.valueAtIndexOrDefault(n.pointBorderWidth,e,i):isNaN(n.borderWidth)||(i=n.borderWidth):i=o.borderWidth,i},updateElement:function(t,e,i){var n,o,r=this,a=r.getMeta(),s=t.custom||{},l=r.getDataset(),c=r.index,u=l.data[e],h=r.getScaleForId(a.yAxisID),d=r.getScaleForId(a.xAxisID),f=r.chart.options.elements.point;void 0!==l.radius&&void 0===l.pointRadius&&(l.pointRadius=l.radius),void 0!==l.hitRadius&&void 0===l.pointHitRadius&&(l.pointHitRadius=l.hitRadius),n=d.getPixelForValue("object"==typeof u?u:NaN,e,c),o=i?h.getBasePixel():r.calculatePointY(u,e,c),t._xScale=d,t._yScale=h,t._datasetIndex=c,t._index=e,t._model={x:n,y:o,skip:s.skip||isNaN(n)||isNaN(o),radius:s.radius||p.valueAtIndexOrDefault(l.pointRadius,e,f.radius),pointStyle:s.pointStyle||p.valueAtIndexOrDefault(l.pointStyle,e,f.pointStyle),backgroundColor:r.getPointBackgroundColor(t,e),borderColor:r.getPointBorderColor(t,e),borderWidth:r.getPointBorderWidth(t,e),tension:a.dataset._model?a.dataset._model.tension:0,steppedLine:!!a.dataset._model&&a.dataset._model.steppedLine,hitRadius:s.hitRadius||p.valueAtIndexOrDefault(l.pointHitRadius,e,f.hitRadius)}},calculatePointY:function(t,e,i){var n,o,r,a=this.chart,s=this.getMeta(),l=this.getScaleForId(s.yAxisID),c=0,u=0;if(l.options.stacked){for(n=0;n<i;n++)if(o=a.data.datasets[n],"line"===(r=a.getDatasetMeta(n)).type&&r.yAxisID===l.id&&a.isDatasetVisible(n)){var h=Number(l.getRightValue(o.data[e]));h<0?u+=h||0:c+=h||0}var d=Number(l.getRightValue(t));return d<0?l.getPixelForValue(u+d):l.getPixelForValue(c+d)}return l.getPixelForValue(t)},updateBezierControlPoints:function(){function t(t,e,i){return Math.max(Math.min(t,i),e)}var e,i,n,o,r=this.getMeta(),a=this.chart.chartArea,s=r.data||[];if(r.dataset._model.spanGaps&&(s=s.filter(function(t){return!t._model.skip})),"monotone"===r.dataset._model.cubicInterpolationMode)p.splineCurveMonotone(s);else for(e=0,i=s.length;e<i;++e)n=s[e]._model,o=p.splineCurve(p.previousItem(s,e)._model,n,p.nextItem(s,e)._model,r.dataset._model.tension),n.controlPointPreviousX=o.previous.x,n.controlPointPreviousY=o.previous.y,n.controlPointNextX=o.next.x,n.controlPointNextY=o.next.y;if(this.chart.options.elements.line.capBezierPoints)for(e=0,i=s.length;e<i;++e)(n=s[e]._model).controlPointPreviousX=t(n.controlPointPreviousX,a.left,a.right),n.controlPointPreviousY=t(n.controlPointPreviousY,a.top,a.bottom),n.controlPointNextX=t(n.controlPointNextX,a.left,a.right),n.controlPointNextY=t(n.controlPointNextY,a.top,a.bottom)},draw:function(){var t=this.chart,e=this.getMeta(),i=e.data||[],n=t.chartArea,o=i.length,r=0;for(p.canvas.clipArea(t.ctx,n),d(this.getDataset(),t.options)&&e.dataset.draw(),p.canvas.unclipArea(t.ctx);r<o;++r)i[r].draw(n)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model;o.radius=n.hoverRadius||p.valueAtIndexOrDefault(e.pointHoverRadius,i,this.chart.options.elements.point.hoverRadius),o.backgroundColor=n.hoverBackgroundColor||p.valueAtIndexOrDefault(e.pointHoverBackgroundColor,i,p.getHoverColor(o.backgroundColor)),o.borderColor=n.hoverBorderColor||p.valueAtIndexOrDefault(e.pointHoverBorderColor,i,p.getHoverColor(o.borderColor)),o.borderWidth=n.hoverBorderWidth||p.valueAtIndexOrDefault(e.pointHoverBorderWidth,i,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=t._model;void 0!==e.radius&&void 0===e.pointRadius&&(e.pointRadius=e.radius),o.radius=n.radius||p.valueAtIndexOrDefault(e.pointRadius,i,this.chart.options.elements.point.radius),o.backgroundColor=this.getPointBackgroundColor(t,i),o.borderColor=this.getPointBorderColor(t,i),o.borderWidth=this.getPointBorderWidth(t,i)}})}},{25:25,40:40,45:45}],19:[function(t,e,i){"use strict";var n=t(25),o=t(40),_=t(45);n._set("polarArea",{scale:{type:"radialLinear",angleLines:{display:!1},gridLines:{circular:!0},pointLabels:{display:!1},ticks:{beginAtZero:!0}},animation:{animateRotate:!0,animateScale:!0},startAngle:-.5*Math.PI,legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');var i=t.data,n=i.datasets,o=i.labels;if(n.length)for(var r=0;r<n[0].data.length;++r)e.push('<li><span style="background-color:'+n[0].backgroundColor[r]+'"></span>'),o[r]&&e.push(o[r]),e.push("</li>");return e.push("</ul>"),e.join("")},legend:{labels:{generateLabels:function(s){var l=s.data;return l.labels.length&&l.datasets.length?l.labels.map(function(t,e){var i=s.getDatasetMeta(0),n=l.datasets[0],o=i.data[e].custom||{},r=_.valueAtIndexOrDefault,a=s.options.elements.arc;return{text:t,fillStyle:o.backgroundColor?o.backgroundColor:r(n.backgroundColor,e,a.backgroundColor),strokeStyle:o.borderColor?o.borderColor:r(n.borderColor,e,a.borderColor),lineWidth:o.borderWidth?o.borderWidth:r(n.borderWidth,e,a.borderWidth),hidden:isNaN(n.data[e])||i.data[e].hidden,index:e}}):[]}},onClick:function(t,e){var i,n,o,r=e.index,a=this.chart;for(i=0,n=(a.data.datasets||[]).length;i<n;++i)(o=a.getDatasetMeta(i)).data[r].hidden=!o.data[r].hidden;a.update()}},tooltips:{callbacks:{title:function(){return""},label:function(t,e){return e.labels[t.index]+": "+t.yLabel}}}}),e.exports=function(e){e.controllers.polarArea=e.DatasetController.extend({dataElementType:o.Arc,linkScales:_.noop,update:function(i){var n=this,t=n.chart,e=t.chartArea,o=n.getMeta(),r=t.options,a=r.elements.arc,s=Math.min(e.right-e.left,e.bottom-e.top);t.outerRadius=Math.max((s-a.borderWidth/2)/2,0),t.innerRadius=Math.max(r.cutoutPercentage?t.outerRadius/100*r.cutoutPercentage:1,0),t.radiusLength=(t.outerRadius-t.innerRadius)/t.getVisibleDatasetCount(),n.outerRadius=t.outerRadius-t.radiusLength*n.index,n.innerRadius=n.outerRadius-t.radiusLength,o.count=n.countVisibleElements(),_.each(o.data,function(t,e){n.updateElement(t,e,i)})},updateElement:function(t,e,i){for(var n=this.chart,o=this.getDataset(),r=n.options,a=r.animation,s=n.scale,l=n.data.labels,c=this.calculateCircumference(o.data[e]),u=s.xCenter,h=s.yCenter,d=0,f=this.getMeta(),p=0;p<e;++p)isNaN(o.data[p])||f.data[p].hidden||++d;var g=r.startAngle,m=t.hidden?0:s.getDistanceFromCenterForValue(o.data[e]),v=g+c*d,b=v+(t.hidden?0:c),y=a.animateScale?0:s.getDistanceFromCenterForValue(o.data[e]);_.extend(t,{_datasetIndex:this.index,_index:e,_scale:s,_model:{x:u,y:h,innerRadius:0,outerRadius:i?y:m,startAngle:i&&a.animateRotate?g:v,endAngle:i&&a.animateRotate?g:b,label:_.valueAtIndexOrDefault(l,e,l[e])}}),this.removeHoverStyle(t),t.pivot()},removeHoverStyle:function(t){e.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),t=this.getMeta(),n=0;return _.each(t.data,function(t,e){isNaN(i.data[e])||t.hidden||n++}),n},calculateCircumference:function(t){var e=this.getMeta().count;return 0<e&&!isNaN(t)?2*Math.PI/e:0}})}},{25:25,40:40,45:45}],20:[function(t,e,i){"use strict";var n=t(25),o=t(40),c=t(45);n._set("radar",{scale:{type:"radialLinear"},elements:{line:{tension:0}}}),e.exports=function(t){t.controllers.radar=t.DatasetController.extend({datasetElementType:o.Line,dataElementType:o.Point,linkScales:c.noop,update:function(i){var n=this,t=n.getMeta(),e=t.dataset,o=t.data,r=e.custom||{},a=n.getDataset(),s=n.chart.options.elements.line,l=n.chart.scale;void 0!==a.tension&&void 0===a.lineTension&&(a.lineTension=a.tension),c.extend(t.dataset,{_datasetIndex:n.index,_scale:l,_children:o,_loop:!0,_model:{tension:r.tension?r.tension:c.valueOrDefault(a.lineTension,s.tension),backgroundColor:r.backgroundColor?r.backgroundColor:a.backgroundColor||s.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:a.borderWidth||s.borderWidth,borderColor:r.borderColor?r.borderColor:a.borderColor||s.borderColor,fill:r.fill?r.fill:void 0!==a.fill?a.fill:s.fill,borderCapStyle:r.borderCapStyle?r.borderCapStyle:a.borderCapStyle||s.borderCapStyle,borderDash:r.borderDash?r.borderDash:a.borderDash||s.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:a.borderDashOffset||s.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:a.borderJoinStyle||s.borderJoinStyle}}),t.dataset.pivot(),c.each(o,function(t,e){n.updateElement(t,e,i)},n),n.updateBezierControlPoints()},updateElement:function(t,e,i){var n=t.custom||{},o=this.getDataset(),r=this.chart.scale,a=this.chart.options.elements.point,s=r.getPointPositionForValue(e,o.data[e]);void 0!==o.radius&&void 0===o.pointRadius&&(o.pointRadius=o.radius),void 0!==o.hitRadius&&void 0===o.pointHitRadius&&(o.pointHitRadius=o.hitRadius),c.extend(t,{_datasetIndex:this.index,_index:e,_scale:r,_model:{x:i?r.xCenter:s.x,y:i?r.yCenter:s.y,tension:n.tension?n.tension:c.valueOrDefault(o.lineTension,this.chart.options.elements.line.tension),radius:n.radius?n.radius:c.valueAtIndexOrDefault(o.pointRadius,e,a.radius),backgroundColor:n.backgroundColor?n.backgroundColor:c.valueAtIndexOrDefault(o.pointBackgroundColor,e,a.backgroundColor),borderColor:n.borderColor?n.borderColor:c.valueAtIndexOrDefault(o.pointBorderColor,e,a.borderColor),borderWidth:n.borderWidth?n.borderWidth:c.valueAtIndexOrDefault(o.pointBorderWidth,e,a.borderWidth),pointStyle:n.pointStyle?n.pointStyle:c.valueAtIndexOrDefault(o.pointStyle,e,a.pointStyle),hitRadius:n.hitRadius?n.hitRadius:c.valueAtIndexOrDefault(o.pointHitRadius,e,a.hitRadius)}}),t._model.skip=n.skip?n.skip:isNaN(t._model.x)||isNaN(t._model.y)},updateBezierControlPoints:function(){var o=this.chart.chartArea,r=this.getMeta();c.each(r.data,function(t,e){var i=t._model,n=c.splineCurve(c.previousItem(r.data,e,!0)._model,i,c.nextItem(r.data,e,!0)._model,i.tension);i.controlPointPreviousX=Math.max(Math.min(n.previous.x,o.right),o.left),i.controlPointPreviousY=Math.max(Math.min(n.previous.y,o.bottom),o.top),i.controlPointNextX=Math.max(Math.min(n.next.x,o.right),o.left),i.controlPointNextY=Math.max(Math.min(n.next.y,o.bottom),o.top),t.pivot()})},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,o=t._model;o.radius=i.hoverRadius?i.hoverRadius:c.valueAtIndexOrDefault(e.pointHoverRadius,n,this.chart.options.elements.point.hoverRadius),o.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:c.valueAtIndexOrDefault(e.pointHoverBackgroundColor,n,c.getHoverColor(o.backgroundColor)),o.borderColor=i.hoverBorderColor?i.hoverBorderColor:c.valueAtIndexOrDefault(e.pointHoverBorderColor,n,c.getHoverColor(o.borderColor)),o.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:c.valueAtIndexOrDefault(e.pointHoverBorderWidth,n,o.borderWidth)},removeHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t.custom||{},n=t._index,o=t._model,r=this.chart.options.elements.point;o.radius=i.radius?i.radius:c.valueAtIndexOrDefault(e.pointRadius,n,r.radius),o.backgroundColor=i.backgroundColor?i.backgroundColor:c.valueAtIndexOrDefault(e.pointBackgroundColor,n,r.backgroundColor),o.borderColor=i.borderColor?i.borderColor:c.valueAtIndexOrDefault(e.pointBorderColor,n,r.borderColor),o.borderWidth=i.borderWidth?i.borderWidth:c.valueAtIndexOrDefault(e.pointBorderWidth,n,r.borderWidth)}})}},{25:25,40:40,45:45}],21:[function(t,e,i){"use strict";t(25)._set("scatter",{hover:{mode:"single"},scales:{xAxes:[{id:"x-axis-1",type:"linear",position:"bottom"}],yAxes:[{id:"y-axis-1",type:"linear",position:"left"}]},showLines:!1,tooltips:{callbacks:{title:function(){return""},label:function(t){return"("+t.xLabel+", "+t.yLabel+")"}}}}),e.exports=function(t){t.controllers.scatter=t.controllers.line}},{25:25}],22:[function(t,e,i){"use strict";var n=t(25),o=t(26),r=t(45);n._set("global",{animation:{duration:1e3,easing:"easeOutQuart",onProgress:r.noop,onComplete:r.noop}}),e.exports=function(t){t.Animation=o.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),t.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(t,e,i,n){var o,r,a=this.animations;for(e.chart=t,n||(t.animating=!0),o=0,r=a.length;o<r;++o)if(a[o].chart===t)return void(a[o]=e);a.push(e),1===a.length&&this.requestAnimationFrame()},cancelAnimation:function(e){var t=r.findIndex(this.animations,function(t){return t.chart===e});-1!==t&&(this.animations.splice(t,1),e.animating=!1)},requestAnimationFrame:function(){var t=this;null===t.request&&(t.request=r.requestAnimFrame.call(window,function(){t.request=null,t.startDigest()}))},startDigest:function(){var t=Date.now(),e=0;1<this.dropFrames&&(e=Math.floor(this.dropFrames),this.dropFrames=this.dropFrames%1),this.advance(1+e);var i=Date.now();this.dropFrames+=(i-t)/this.frameDuration,0<this.animations.length&&this.requestAnimationFrame()},advance:function(t){for(var e,i,n=this.animations,o=0;o<n.length;)i=(e=n[o]).chart,e.currentStep=(e.currentStep||0)+t,e.currentStep=Math.min(e.currentStep,e.numSteps),r.callback(e.render,[i,e],i),r.callback(e.onAnimationProgress,[e],i),e.currentStep>=e.numSteps?(r.callback(e.onAnimationComplete,[e],i),i.animating=!1,n.splice(o,1)):++o}},Object.defineProperty(t.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(t.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(t){this.chart=t}})}},{25:25,26:26,45:45}],23:[function(t,e,i){"use strict";var u=t(25),h=t(45),o=t(28),d=t(48);e.exports=function(c){function s(t){return"top"===t||"bottom"===t}var l=c.plugins;c.types={},c.instances={},c.controllers={},h.extend(c.prototype,{construct:function(t,e){var i,n,o=this;(n=(i=(i=e)||{}).data=i.data||{}).datasets=n.datasets||[],n.labels=n.labels||[],i.options=h.configMerge(u.global,u[i.type],i.options||{}),e=i;var r=d.acquireContext(t,e),a=r&&r.canvas,s=a&&a.height,l=a&&a.width;o.id=h.uid(),o.ctx=r,o.canvas=a,o.config=e,o.width=l,o.height=s,o.aspectRatio=s?l/s:null,o.options=e.options,o._bufferedRender=!1,(o.chart=o).controller=o,c.instances[o.id]=o,Object.defineProperty(o,"data",{get:function(){return o.config.data},set:function(t){o.config.data=t}}),r&&a?(o.initialize(),o.update()):console.error("Failed to create chart: can't acquire context from the given item")},initialize:function(){var t=this;return l.notify(t,"beforeInit"),h.retinaScale(t,t.options.devicePixelRatio),t.bindEvents(),t.options.responsive&&t.resize(!0),t.ensureScalesHaveIDs(),t.buildScales(),t.initToolTip(),l.notify(t,"afterInit"),t},clear:function(){return h.canvas.clear(this),this},stop:function(){return c.animationService.cancelAnimation(this),this},resize:function(t){var e=this,i=e.options,n=e.canvas,o=i.maintainAspectRatio&&e.aspectRatio||null,r=Math.max(0,Math.floor(h.getMaximumWidth(n))),a=Math.max(0,Math.floor(o?r/o:h.getMaximumHeight(n)));if((e.width!==r||e.height!==a)&&(n.width=e.width=r,n.height=e.height=a,n.style.width=r+"px",n.style.height=a+"px",h.retinaScale(e,i.devicePixelRatio),!t)){var s={width:r,height:a};l.notify(e,"resize",[s]),e.options.onResize&&e.options.onResize(e,s),e.stop(),e.update(e.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var t=this.options,e=t.scales||{},i=t.scale;h.each(e.xAxes,function(t,e){t.id=t.id||"x-axis-"+e}),h.each(e.yAxes,function(t,e){t.id=t.id||"y-axis-"+e}),i&&(i.id=i.id||"scale")},buildScales:function(){var r=this,t=r.options,a=r.scales={},e=[];t.scales&&(e=e.concat((t.scales.xAxes||[]).map(function(t){return{options:t,dtype:"category",dposition:"bottom"}}),(t.scales.yAxes||[]).map(function(t){return{options:t,dtype:"linear",dposition:"left"}}))),t.scale&&e.push({options:t.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),h.each(e,function(t){var e=t.options,i=h.valueOrDefault(e.type,t.dtype),n=c.scaleService.getScaleConstructor(i);if(n){s(e.position)!==s(t.dposition)&&(e.position=t.dposition);var o=new n({id:e.id,options:e,ctx:r.ctx,chart:r});(a[o.id]=o).mergeTicksOptions(),t.isDefault&&(r.scale=o)}}),c.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var r=this,a=[],s=[];return h.each(r.data.datasets,function(t,e){var i=r.getDatasetMeta(e),n=t.type||r.config.type;if(i.type&&i.type!==n&&(r.destroyDatasetMeta(e),i=r.getDatasetMeta(e)),i.type=n,a.push(i.type),i.controller)i.controller.updateIndex(e);else{var o=c.controllers[i.type];if(void 0===o)throw new Error('"'+i.type+'" is not a chart type.');i.controller=new o(r,e),s.push(i.controller)}},r),s},resetElements:function(){var i=this;h.each(i.data.datasets,function(t,e){i.getDatasetMeta(e).controller.reset()},i)},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]}),(i=(e=n).options).scale?e.scale.options=i.scale:i.scales&&i.scales.xAxes.concat(i.scales.yAxes).forEach(function(t){e.scales[t.id].options=t}),e.tooltip._options=i.tooltips,!1!==l.notify(n,"beforeUpdate")){n.tooltip._data=n.data;var o=n.buildOrUpdateControllers();h.each(n.data.datasets,function(t,e){n.getDatasetMeta(e).controller.buildOrUpdateElements()},n),n.updateLayout(),h.each(o,function(t){t.reset()}),n.updateDatasets(),n.tooltip.initialize(),n.lastActive=[],l.notify(n,"afterUpdate"),n._bufferedRender?n._bufferedRequest={duration:t.duration,easing:t.easing,lazy:t.lazy}:n.render(t)}},updateLayout:function(){!1!==l.notify(this,"beforeLayout")&&(c.layoutService.update(this,this.width,this.height),l.notify(this,"afterScaleUpdate"),l.notify(this,"afterLayout"))},updateDatasets:function(){if(!1!==l.notify(this,"beforeDatasetsUpdate")){for(var t=0,e=this.data.datasets.length;t<e;++t)this.updateDataset(t);l.notify(this,"afterDatasetsUpdate")}},updateDataset:function(t){var e=this.getDatasetMeta(t),i={meta:e,index:t};!1!==l.notify(this,"beforeDatasetUpdate",[i])&&(e.controller.update(),l.notify(this,"afterDatasetUpdate",[i]))},render:function(t){var e=this;t&&"object"==typeof t||(t={duration:t,lazy:arguments[1]});var i=t.duration,n=t.lazy;if(!1!==l.notify(e,"beforeRender")){var o=e.options.animation,r=function(t){l.notify(e,"afterRender"),h.callback(o&&o.onComplete,[t],e)};if(o&&(void 0!==i&&0!==i||void 0===i&&0!==o.duration)){var a=new c.Animation({numSteps:(i||o.duration)/16.66,easing:t.easing||o.easing,render:function(t,e){var i=h.easing.effects[e.easing],n=e.currentStep,o=n/e.numSteps;t.draw(i(o),o,n)},onAnimationProgress:o.onProgress,onAnimationComplete:r});c.animationService.addAnimation(e,a,i,n)}else e.draw(),r(new c.Animation({numSteps:0,chart:e}));return e}},draw:function(t){var e=this;e.clear(),h.isNullOrUndef(t)&&(t=1),e.transition(t),!1!==l.notify(e,"beforeDraw",[t])&&(h.each(e.boxes,function(t){t.draw(e.chartArea)},e),e.scale&&e.scale.draw(),e.drawDatasets(t),e._drawTooltip(t),l.notify(e,"afterDraw",[t]))},transition:function(t){for(var e=0,i=(this.data.datasets||[]).length;e<i;++e)this.isDatasetVisible(e)&&this.getDatasetMeta(e).controller.transition(t);this.tooltip.transition(t)},drawDatasets:function(t){if(!1!==l.notify(this,"beforeDatasetsDraw",[t])){for(var e=(this.data.datasets||[]).length-1;0<=e;--e)this.isDatasetVisible(e)&&this.drawDataset(e,t);l.notify(this,"afterDatasetsDraw",[t])}},drawDataset:function(t,e){var i=this.getDatasetMeta(t),n={meta:i,index:t,easingValue:e};!1!==l.notify(this,"beforeDatasetDraw",[n])&&(i.controller.draw(e),l.notify(this,"afterDatasetDraw",[n]))},_drawTooltip:function(t){var e=this.tooltip,i={tooltip:e,easingValue:t};!1!==l.notify(this,"beforeTooltipDraw",[i])&&(e.draw(),l.notify(this,"afterTooltipDraw",[i]))},getElementAtEvent:function(t){return o.modes.single(this,t)},getElementsAtEvent:function(t){return o.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return o.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,e,i){var n=o.modes[e];return"function"==typeof n?n(this,t,i):[]},getDatasetAtEvent:function(t){return o.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(t){var e=this.data.datasets[t];e._meta||(e._meta={});var i=e._meta[this.id];return i||(i=e._meta[this.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,e=0,i=this.data.datasets.length;e<i;++e)this.isDatasetVisible(e)&&t++;return t},isDatasetVisible:function(t){var e=this.getDatasetMeta(t);return"boolean"==typeof e.hidden?!e.hidden:!this.data.datasets[t].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroyDatasetMeta:function(t){var e=this.id,i=this.data.datasets[t],n=i._meta&&i._meta[e];n&&(n.controller.destroy(),delete i._meta[e])},destroy:function(){var t,e,i=this,n=i.canvas;for(i.stop(),t=0,e=i.data.datasets.length;t<e;++t)i.destroyDatasetMeta(t);n&&(i.unbindEvents(),h.canvas.clear(i),d.releaseContext(i.ctx),i.canvas=null,i.ctx=null),l.notify(i,"destroy"),delete c.instances[i.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){this.tooltip=new c.Tooltip({_chart:this,_chartInstance:this,_data:this.data,_options:this.options.tooltips},this)},bindEvents:function(){var e=this,i=e._listeners={},n=function(){e.eventHandler.apply(e,arguments)};h.each(e.options.events,function(t){d.addEventListener(e,t,n),i[t]=n}),e.options.responsive&&(n=function(){e.resize()},d.addEventListener(e,"resize",n),i.resize=n)},unbindEvents:function(){var i=this,t=i._listeners;t&&(delete i._listeners,h.each(t,function(t,e){d.removeEventListener(i,e,t)}))},updateHoverStyle:function(t,e,i){var n,o,r,a=i?"setHoverStyle":"removeHoverStyle";for(o=0,r=t.length;o<r;++o)(n=t[o])&&this.getDatasetMeta(n._datasetIndex).controller[a](n)},eventHandler:function(t){var e=this,i=e.tooltip;if(!1!==l.notify(e,"beforeEvent",[t])){e._bufferedRender=!0,e._bufferedRequest=null;var n=e.handleEvent(t);n|=i&&i.handleEvent(t),l.notify(e,"afterEvent",[t]);var o=e._bufferedRequest;return o?e.render(o):n&&!e.animating&&(e.stop(),e.render(e.options.hover.animationDuration,!0)),e._bufferedRender=!1,e._bufferedRequest=null,e}},handleEvent:function(t){var e,i=this,n=i.options||{},o=n.hover;return i.lastActive=i.lastActive||[],"mouseout"===t.type?i.active=[]:i.active=i.getElementsAtEventForMode(t,o.mode,o),h.callback(n.onHover||n.hover.onHover,[t.native,i.active],i),"mouseup"!==t.type&&"click"!==t.type||n.onClick&&n.onClick.call(i,t.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,o.mode,!1),i.active.length&&o.mode&&i.updateHoverStyle(i.active,o.mode,!0),e=!h.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,e}}),c.Controller=c}},{25:25,28:28,45:45,48:48}],24:[function(t,e,i){"use strict";var s=t(45);e.exports=function(t){function n(e,t){var i=e._chartjs;if(i){var n=i.listeners,o=n.indexOf(t);-1!==o&&n.splice(o,1),0<n.length||(r.forEach(function(t){delete e[t]}),delete e._chartjs)}}var r=["push","pop","shift","splice","unshift"];t.DatasetController=function(t,e){this.initialize(t,e)},s.extend(t.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(t,e){this.chart=t,this.index=e,this.linkScales(),this.addElements()},updateIndex:function(t){this.index=t},linkScales:function(){var t=this.getMeta(),e=this.getDataset();null===t.xAxisID&&(t.xAxisID=e.xAxisID||this.chart.options.scales.xAxes[0].id),null===t.yAxisID&&(t.yAxisID=e.yAxisID||this.chart.options.scales.yAxes[0].id)},getDataset:function(){return this.chart.data.datasets[this.index]},getMeta:function(){return this.chart.getDatasetMeta(this.index)},getScaleForId:function(t){return this.chart.scales[t]},reset:function(){this.update(!0)},destroy:function(){this._data&&n(this._data,this)},createMetaDataset:function(){var t=this.datasetElementType;return t&&new t({_chart:this.chart,_datasetIndex:this.index})},createMetaData:function(t){var e=this.dataElementType;return e&&new e({_chart:this.chart,_datasetIndex:this.index,_index:t})},addElements:function(){var t,e,i=this.getMeta(),n=this.getDataset().data||[],o=i.data;for(t=0,e=n.length;t<e;++t)o[t]=o[t]||this.createMetaData(t);i.dataset=i.dataset||this.createMetaDataset()},addElementAndReset:function(t){var e=this.createMetaData(t);this.getMeta().data.splice(t,0,e),this.updateElement(e,t,!0)},buildOrUpdateElements:function(){var o,t,e=this.getDataset(),i=e.data||(e.data=[]);this._data!==i&&(this._data&&n(this._data,this),t=this,(o=i)._chartjs?o._chartjs.listeners.push(t):(Object.defineProperty(o,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),r.forEach(function(t){var i="onData"+t.charAt(0).toUpperCase()+t.slice(1),n=o[t];Object.defineProperty(o,t,{configurable:!0,enumerable:!1,value:function(){var e=Array.prototype.slice.call(arguments),t=n.apply(this,e);return s.each(o._chartjs.listeners,function(t){"function"==typeof t[i]&&t[i].apply(t,e)}),t}})})),this._data=i),this.resyncElements()},update:s.noop,transition:function(t){for(var e=this.getMeta(),i=e.data||[],n=i.length,o=0;o<n;++o)i[o].transition(t);e.dataset&&e.dataset.transition(t)},draw:function(){var t=this.getMeta(),e=t.data||[],i=e.length,n=0;for(t.dataset&&t.dataset.draw();n<i;++n)e[n].draw()},removeHoverStyle:function(t,e){var i=this.chart.data.datasets[t._datasetIndex],n=t._index,o=t.custom||{},r=s.valueAtIndexOrDefault,a=t._model;a.backgroundColor=o.backgroundColor?o.backgroundColor:r(i.backgroundColor,n,e.backgroundColor),a.borderColor=o.borderColor?o.borderColor:r(i.borderColor,n,e.borderColor),a.borderWidth=o.borderWidth?o.borderWidth:r(i.borderWidth,n,e.borderWidth)},setHoverStyle:function(t){var e=this.chart.data.datasets[t._datasetIndex],i=t._index,n=t.custom||{},o=s.valueAtIndexOrDefault,r=s.getHoverColor,a=t._model;a.backgroundColor=n.hoverBackgroundColor?n.hoverBackgroundColor:o(e.hoverBackgroundColor,i,r(a.backgroundColor)),a.borderColor=n.hoverBorderColor?n.hoverBorderColor:o(e.hoverBorderColor,i,r(a.borderColor)),a.borderWidth=n.hoverBorderWidth?n.hoverBorderWidth:o(e.hoverBorderWidth,i,a.borderWidth)},resyncElements:function(){var t=this.getMeta(),e=this.getDataset().data,i=t.data.length,n=e.length;n<i?t.data.splice(n,i-n):i<n&&this.insertElements(i,n-i)},insertElements:function(t,e){for(var i=0;i<e;++i)this.addElementAndReset(t+i)},onDataPush:function(){this.insertElements(this.getDataset().data.length-1,arguments.length)},onDataPop:function(){this.getMeta().data.pop()},onDataShift:function(){this.getMeta().data.shift()},onDataSplice:function(t,e){this.getMeta().data.splice(t,e),this.insertElements(t,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),t.DatasetController.extend=s.inherits}},{45:45}],25:[function(t,e,i){"use strict";var n=t(45);e.exports={_set:function(t,e){return n.merge(this[t]||(this[t]={}),e)}}},{45:45}],26:[function(t,e,i){"use strict";var p=t(3),n=t(45),o=function(t){n.extend(this,t),this.initialize.apply(this,arguments)};n.extend(o.prototype,{initialize:function(){this.hidden=!1},pivot:function(){return this._view||(this._view=n.clone(this._model)),this._start={},this},transition:function(t){var e=this._model,i=this._start,n=this._view;return e&&1!==t?(n||(n=this._view={}),i||(i=this._start={}),function(t,e,i,n){var o,r,a,s,l,c,u,h,d,f=Object.keys(i);for(o=0,r=f.length;o<r;++o)if(c=i[a=f[o]],e.hasOwnProperty(a)||(e[a]=c),(s=e[a])!==c&&"_"!==a[0]){if(t.hasOwnProperty(a)||(t[a]=s),(u=typeof c)==typeof(l=t[a]))if("string"===u){if((h=p(l)).valid&&(d=p(c)).valid){e[a]=d.mix(h,n).rgbString();continue}}else if("number"===u&&isFinite(l)&&isFinite(c)){e[a]=l+(c-l)*n;continue}e[a]=c}}(i,n,e,t)):(this._view=e,this._start=null),this},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return n.isNumber(this._model.x)&&n.isNumber(this._model.y)}}),o.extend=n.inherits,e.exports=o},{3:3,45:45}],27:[function(t,e,i){"use strict";var n=t(3),o=t(25),p=t(45);e.exports=function(l){function u(t,e,i){var n;return"string"==typeof t?(n=parseInt(t,10),-1!==t.indexOf("%")&&(n=n/100*e.parentNode[i])):n=t,n}function h(t){return null!=t&&"none"!==t}function e(t,e,i){var n=document.defaultView,o=t.parentNode,r=n.getComputedStyle(t)[e],a=n.getComputedStyle(o)[e],s=h(r),l=h(a),c=Number.POSITIVE_INFINITY;return s||l?Math.min(s?u(r,t,i):c,l?u(a,o,i):c):"none"}p.configMerge=function(){return p.merge(p.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,i,n){var o=e[t]||{},r=i[t];"scales"===t?e[t]=p.scaleMerge(o,r):"scale"===t?e[t]=p.merge(o,[l.scaleService.getScaleDefaults(r.type),r]):p._merger(t,e,i,n)}})},p.scaleMerge=function(){return p.merge(p.clone(arguments[0]),[].slice.call(arguments,1),{merger:function(t,e,i,n){if("xAxes"===t||"yAxes"===t){var o,r,a,s=i[t].length;for(e[t]||(e[t]=[]),o=0;o<s;++o)a=i[t][o],r=p.valueOrDefault(a.type,"xAxes"===t?"category":"linear"),o>=e[t].length&&e[t].push({}),!e[t][o].type||a.type&&a.type!==e[t][o].type?p.merge(e[t][o],[l.scaleService.getScaleDefaults(r),a]):p.merge(e[t][o],a)}else p._merger(t,e,i,n)}})},p.where=function(t,e){if(p.isArray(t)&&Array.prototype.filter)return t.filter(e);var i=[];return p.each(t,function(t){e(t)&&i.push(t)}),i},p.findIndex=Array.prototype.findIndex?function(t,e,i){return t.findIndex(e,i)}:function(t,e,i){i=void 0===i?t:i;for(var n=0,o=t.length;n<o;++n)if(e.call(i,t[n],n,t))return n;return-1},p.findNextWhere=function(t,e,i){p.isNullOrUndef(i)&&(i=-1);for(var n=i+1;n<t.length;n++){var o=t[n];if(e(o))return o}},p.findPreviousWhere=function(t,e,i){p.isNullOrUndef(i)&&(i=t.length);for(var n=i-1;0<=n;n--){var o=t[n];if(e(o))return o}},p.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},p.almostEquals=function(t,e,i){return Math.abs(t-e)<i},p.almostWhole=function(t,e){var i=Math.round(t);return i-e<t&&t<i+e},p.max=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.max(t,e)},Number.NEGATIVE_INFINITY)},p.min=function(t){return t.reduce(function(t,e){return isNaN(e)?t:Math.min(t,e)},Number.POSITIVE_INFINITY)},p.sign=Math.sign?function(t){return Math.sign(t)}:function(t){return 0==(t=+t)||isNaN(t)?t:0<t?1:-1},p.log10=Math.log10?function(t){return Math.log10(t)}:function(t){return Math.log(t)/Math.LN10},p.toRadians=function(t){return t*(Math.PI/180)},p.toDegrees=function(t){return t*(180/Math.PI)},p.getAngleFromPoint=function(t,e){var i=e.x-t.x,n=e.y-t.y,o=Math.sqrt(i*i+n*n),r=Math.atan2(n,i);return r<-.5*Math.PI&&(r+=2*Math.PI),{angle:r,distance:o}},p.distanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},p.aliasPixel=function(t){return t%2==0?0:.5},p.splineCurve=function(t,e,i,n){var o=t.skip?e:t,r=e,a=i.skip?e:i,s=Math.sqrt(Math.pow(r.x-o.x,2)+Math.pow(r.y-o.y,2)),l=Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),c=s/(s+l),u=l/(s+l),h=n*(c=isNaN(c)?0:c),d=n*(u=isNaN(u)?0:u);return{previous:{x:r.x-h*(a.x-o.x),y:r.y-h*(a.y-o.y)},next:{x:r.x+d*(a.x-o.x),y:r.y+d*(a.y-o.y)}}},p.EPSILON=Number.EPSILON||1e-14,p.splineCurveMonotone=function(t){var e,i,n,o,r,a,s,l,c,u=(t||[]).map(function(t){return{model:t._model,deltaK:0,mK:0}}),h=u.length;for(e=0;e<h;++e)if(!(n=u[e]).model.skip){if(i=0<e?u[e-1]:null,(o=e<h-1?u[e+1]:null)&&!o.model.skip){var d=o.model.x-n.model.x;n.deltaK=0!==d?(o.model.y-n.model.y)/d:0}!i||i.model.skip?n.mK=n.deltaK:!o||o.model.skip?n.mK=i.deltaK:this.sign(i.deltaK)!==this.sign(n.deltaK)?n.mK=0:n.mK=(i.deltaK+n.deltaK)/2}for(e=0;e<h-1;++e)n=u[e],o=u[e+1],n.model.skip||o.model.skip||(p.almostEquals(n.deltaK,0,this.EPSILON)?n.mK=o.mK=0:(r=n.mK/n.deltaK,a=o.mK/n.deltaK,(l=Math.pow(r,2)+Math.pow(a,2))<=9||(s=3/Math.sqrt(l),n.mK=r*s*n.deltaK,o.mK=a*s*n.deltaK)));for(e=0;e<h;++e)(n=u[e]).model.skip||(i=0<e?u[e-1]:null,o=e<h-1?u[e+1]:null,i&&!i.model.skip&&(c=(n.model.x-i.model.x)/3,n.model.controlPointPreviousX=n.model.x-c,n.model.controlPointPreviousY=n.model.y-c*n.mK),o&&!o.model.skip&&(c=(o.model.x-n.model.x)/3,n.model.controlPointNextX=n.model.x+c,n.model.controlPointNextY=n.model.y+c*n.mK))},p.nextItem=function(t,e,i){return i?e>=t.length-1?t[0]:t[e+1]:e>=t.length-1?t[t.length-1]:t[e+1]},p.previousItem=function(t,e,i){return i?e<=0?t[t.length-1]:t[e-1]:e<=0?t[0]:t[e-1]},p.niceNum=function(t,e){var i=Math.floor(p.log10(t)),n=t/Math.pow(10,i);return(e?n<1.5?1:n<3?2:n<7?5:10:n<=1?1:n<=2?2:n<=5?5:10)*Math.pow(10,i)},p.requestAnimFrame="undefined"==typeof window?function(t){t()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)},p.getRelativePosition=function(t,e){var i,n,o=t.originalEvent||t,r=t.currentTarget||t.srcElement,a=r.getBoundingClientRect(),s=o.touches;n=s&&0<s.length?(i=s[0].clientX,s[0].clientY):(i=o.clientX,o.clientY);var l=parseFloat(p.getStyle(r,"padding-left")),c=parseFloat(p.getStyle(r,"padding-top")),u=parseFloat(p.getStyle(r,"padding-right")),h=parseFloat(p.getStyle(r,"padding-bottom")),d=a.right-a.left-l-u,f=a.bottom-a.top-c-h;return{x:i=Math.round((i-a.left-l)/d*r.width/e.currentDevicePixelRatio),y:n=Math.round((n-a.top-c)/f*r.height/e.currentDevicePixelRatio)}},p.getConstraintWidth=function(t){return e(t,"max-width","clientWidth")},p.getConstraintHeight=function(t){return e(t,"max-height","clientHeight")},p.getMaximumWidth=function(t){var e=t.parentNode;if(!e)return t.clientWidth;var i=parseInt(p.getStyle(e,"padding-left"),10),n=parseInt(p.getStyle(e,"padding-right"),10),o=e.clientWidth-i-n,r=p.getConstraintWidth(t);return isNaN(r)?o:Math.min(o,r)},p.getMaximumHeight=function(t){var e=t.parentNode;if(!e)return t.clientHeight;var i=parseInt(p.getStyle(e,"padding-top"),10),n=parseInt(p.getStyle(e,"padding-bottom"),10),o=e.clientHeight-i-n,r=p.getConstraintHeight(t);return isNaN(r)?o:Math.min(o,r)},p.getStyle=function(t,e){return t.currentStyle?t.currentStyle[e]:document.defaultView.getComputedStyle(t,null).getPropertyValue(e)},p.retinaScale=function(t,e){var i=t.currentDevicePixelRatio=e||window.devicePixelRatio||1;if(1!==i){var n=t.canvas,o=t.height,r=t.width;n.height=o*i,n.width=r*i,t.ctx.scale(i,i),n.style.height=o+"px",n.style.width=r+"px"}},p.fontString=function(t,e,i){return e+" "+t+"px "+i},p.longestText=function(e,t,i,n){var o=(n=n||{}).data=n.data||{},r=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(o=n.data={},r=n.garbageCollect=[],n.font=t),e.font=t;var a=0;p.each(i,function(t){null!=t&&!0!==p.isArray(t)?a=p.measureText(e,o,r,a,t):p.isArray(t)&&p.each(t,function(t){null==t||p.isArray(t)||(a=p.measureText(e,o,r,a,t))})});var s=r.length/2;if(s>i.length){for(var l=0;l<s;l++)delete o[r[l]];r.splice(0,s)}return a},p.measureText=function(t,e,i,n,o){var r=e[o];return r||(r=e[o]=t.measureText(o).width,i.push(o)),n<r&&(n=r),n},p.numberOfLabelLines=function(t){var e=1;return p.each(t,function(t){p.isArray(t)&&t.length>e&&(e=t.length)}),e},p.color=n?function(t){return t instanceof CanvasGradient&&(t=o.global.defaultColor),n(t)}:function(t){return console.error("Color.js not found!"),t},p.getHoverColor=function(t){return t instanceof CanvasPattern?t:p.color(t).saturate(.5).darken(.1).rgbString()}}},{25:25,3:3,45:45}],28:[function(t,e,i){"use strict";function s(t,e){return t.native?{x:t.x,y:t.y}:o.getRelativePosition(t,e)}function l(t,e){var i,n,o,r,a;for(n=0,r=t.data.datasets.length;n<r;++n)if(t.isDatasetVisible(n))for(o=0,a=(i=t.getDatasetMeta(n)).data.length;o<a;++o){var s=i.data[o];s._view.skip||e(s)}}function c(t,e){var i=[];return l(t,function(t){t.inRange(e.x,e.y)&&i.push(t)}),i}function u(t,n,o,r){var a=Number.POSITIVE_INFINITY,s=[];return l(t,function(t){if(!o||t.inRange(n.x,n.y)){var e=t.getCenterPoint(),i=r(n,e);i<a?(s=[t],a=i):i===a&&s.push(t)}}),s}function h(t){var o=-1!==t.indexOf("x"),r=-1!==t.indexOf("y");return function(t,e){var i=o?Math.abs(t.x-e.x):0,n=r?Math.abs(t.y-e.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))}}function n(n,t,e){var i=s(t,n);e.axis=e.axis||"x";var o=h(e.axis),r=e.intersect?c(n,i):u(n,i,!1,o),a=[];return r.length?(n.data.datasets.forEach(function(t,e){if(n.isDatasetVisible(e)){var i=n.getDatasetMeta(e).data[r[0]._index];i&&!i._view.skip&&a.push(i)}}),a):[]}var o=t(45);e.exports={modes:{single:function(t,e){var i=s(e,t),n=[];return l(t,function(t){if(t.inRange(i.x,i.y))return n.push(t),n}),n.slice(0,1)},label:n,index:n,dataset:function(t,e,i){var n=s(e,t);i.axis=i.axis||"xy";var o=h(i.axis),r=i.intersect?c(t,n):u(t,n,!1,o);return 0<r.length&&(r=t.getDatasetMeta(r[0]._datasetIndex).data),r},"x-axis":function(t,e){return n(t,e,{intersect:!1})},point:function(t,e){return c(t,s(e,t))},nearest:function(t,e,i){var n=s(e,t);i.axis=i.axis||"xy";var o=h(i.axis),r=u(t,n,i.intersect,o);return 1<r.length&&r.sort(function(t,e){var i=t.getArea()-e.getArea();return 0===i&&(i=t._datasetIndex-e._datasetIndex),i}),r.slice(0,1)},x:function(t,e,i){var n=s(e,t),o=[],r=!1;return l(t,function(t){t.inXRange(n.x)&&o.push(t),t.inRange(n.x,n.y)&&(r=!0)}),i.intersect&&!r&&(o=[]),o},y:function(t,e,i){var n=s(e,t),o=[],r=!1;return l(t,function(t){t.inYRange(n.y)&&o.push(t),t.inRange(n.x,n.y)&&(r=!0)}),i.intersect&&!r&&(o=[]),o}}}},{45:45}],29:[function(t,e,i){"use strict";t(25)._set("global",{responsive:!0,responsiveAnimationDuration:0,maintainAspectRatio:!0,events:["mousemove","mouseout","click","touchstart","touchmove"],hover:{onHover:null,mode:"nearest",intersect:!0,animationDuration:400},onClick:null,defaultColor:"rgba(0,0,0,0.1)",defaultFontColor:"#666",defaultFontFamily:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",defaultFontSize:12,defaultFontStyle:"normal",showLines:!0,elements:{},layout:{padding:{top:0,right:0,bottom:0,left:0}}}),e.exports=function(){var t=function(t,e){return this.construct(t,e),this};return t.Chart=t}},{25:25}],30:[function(t,e,i){"use strict";var j=t(45);e.exports=function(t){function W(t,e){return j.where(t,function(t){return t.position===e})}function H(t,o){t.forEach(function(t,e){return t._tmpIndex_=e,t}),t.sort(function(t,e){var i=o?e:t,n=o?t:e;return i.weight===n.weight?i._tmpIndex_-n._tmpIndex_:i.weight-n.weight}),t.forEach(function(t){delete t._tmpIndex_})}t.layoutService={defaults:{},addBox:function(t,e){t.boxes||(t.boxes=[]),e.fullWidth=e.fullWidth||!1,e.position=e.position||"top",e.weight=e.weight||0,t.boxes.push(e)},removeBox:function(t,e){var i=t.boxes?t.boxes.indexOf(e):-1;-1!==i&&t.boxes.splice(i,1)},configure:function(t,e,i){for(var n,o=["fullWidth","position","weight"],r=o.length,a=0;a<r;++a)n=o[a],i.hasOwnProperty(n)&&(e[n]=i[n])},update:function(e,i,t){function n(e){var t=j.findNextWhere(k,function(t){return t.box===e});if(t)if(e.isHorizontal()){var i={left:Math.max(A,C),right:Math.max(E,S),top:0,bottom:0};e.update(e.fullWidth?m:x,v/2,i)}else e.update(t.minSize.width,w)}function o(t){t.isHorizontal()?(t.left=t.fullWidth?s:A,t.right=t.fullWidth?i-l:A+x,t.top=R,t.bottom=R+t.height,R=t.bottom):(t.left=L,t.right=L+t.width,t.top=I,t.bottom=I+w,L=t.right)}if(e){var r=e.options.layout||{},a=j.options.toPadding(r.padding),s=a.left,l=a.right,c=a.top,u=a.bottom,h=W(e.boxes,"left"),d=W(e.boxes,"right"),f=W(e.boxes,"top"),p=W(e.boxes,"bottom"),g=W(e.boxes,"chartArea");H(h,!0),H(d,!1),H(f,!0),H(p,!1);var m=i-s-l,v=t-c-u,b=v/2,y=(i-m/2)/(h.length+d.length),_=(t-b)/(f.length+p.length),x=m,w=v,k=[];j.each(h.concat(d,f,p),function(t){var e,i=t.isHorizontal();i?(e=t.update(t.fullWidth?m:x,_),w-=e.height):(e=t.update(y,b),x-=e.width),k.push({horizontal:i,minSize:e,box:t})});var C=0,S=0,T=0,D=0;j.each(f.concat(p),function(t){if(t.getPadding){var e=t.getPadding();C=Math.max(C,e.left),S=Math.max(S,e.right)}}),j.each(h.concat(d),function(t){if(t.getPadding){var e=t.getPadding();T=Math.max(T,e.top),D=Math.max(D,e.bottom)}});var A=s,E=l,I=c,M=u;j.each(h.concat(d),n),j.each(h,function(t){A+=t.width}),j.each(d,function(t){E+=t.width}),j.each(f.concat(p),n),j.each(f,function(t){I+=t.height}),j.each(p,function(t){M+=t.height}),j.each(h.concat(d),function(e){var t=j.findNextWhere(k,function(t){return t.box===e}),i={left:0,right:0,top:I,bottom:M};t&&e.update(t.minSize.width,w,i)}),A=s,E=l,I=c,M=u,j.each(h,function(t){A+=t.width}),j.each(d,function(t){E+=t.width}),j.each(f,function(t){I+=t.height}),j.each(p,function(t){M+=t.height});var P=Math.max(C-A,0);A+=P,E+=Math.max(S-E,0);var N=Math.max(T-I,0);I+=N,M+=Math.max(D-M,0);var O=t-I-M,F=i-A-E;F===x&&O===w||(j.each(h,function(t){t.height=O}),j.each(d,function(t){t.height=O}),j.each(f,function(t){t.fullWidth||(t.width=F)}),j.each(p,function(t){t.fullWidth||(t.width=F)}),w=O,x=F);var L=s+P,R=c+N;j.each(h.concat(f),o),L+=x,R+=w,j.each(d,o),j.each(p,o),e.chartArea={left:A,top:I,right:A+x,bottom:I+w},j.each(g,function(t){t.left=e.chartArea.left,t.top=e.chartArea.top,t.right=e.chartArea.right,t.bottom=e.chartArea.bottom,t.update(x,w)})}}}}},{45:45}],31:[function(t,e,i){"use strict";var a=t(25),n=t(26),s=t(45);a._set("global",{plugins:{}}),e.exports=function(t){t.plugins={_plugins:[],_cacheId:0,register:function(t){var e=this._plugins;[].concat(t).forEach(function(t){-1===e.indexOf(t)&&e.push(t)}),this._cacheId++},unregister:function(t){var i=this._plugins;[].concat(t).forEach(function(t){var e=i.indexOf(t);-1!==e&&i.splice(e,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(t,e,i){var n,o,r,a,s,l=this.descriptors(t),c=l.length;for(n=0;n<c;++n)if("function"==typeof(s=(r=(o=l[n]).plugin)[e])&&((a=[t].concat(i||[])).push(o.options),!1===s.apply(r,a)))return!1;return!0},descriptors:function(t){var e=t._plugins||(t._plugins={});if(e.id===this._cacheId)return e.descriptors;var n=[],o=[],i=t&&t.config||{},r=i.options&&i.options.plugins||{};return this._plugins.concat(i.plugins||[]).forEach(function(t){if(-1===n.indexOf(t)){var e=t.id,i=r[e];!1!==i&&(!0===i&&(i=s.clone(a.global.plugins[e])),n.push(t),o.push({plugin:t,options:i||{}}))}}),e.descriptors=o,e.id=this._cacheId,o}},t.pluginService=t.plugins,t.PluginBase=n.extend({})}},{25:25,26:26,45:45}],32:[function(t,e,i){"use strict";function C(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(t[e].label);return n}function B(t,e,i){var n=t.getPixelForTick(e);return i&&(n-=0===e?(t.getPixelForTick(1)-n)/2:(n-t.getPixelForTick(e-1))/2),n}var _=t(25),n=t(26),$=t(45),o=t(34);_._set("scale",{display:!0,position:"left",offset:!1,gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{display:!1,labelString:"",lineHeight:1.2,padding:{top:4,bottom:4}},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:o.formatters.values,minor:{},major:{}}}),e.exports=function(t){function x(t,e,i){return $.isArray(e)?$.longestText(t,i,e):t.measureText(e).width}function w(t){var e=$.valueOrDefault,i=_.global,n=e(t.fontSize,i.defaultFontSize),o=e(t.fontStyle,i.defaultFontStyle),r=e(t.fontFamily,i.defaultFontFamily);return{size:n,style:o,family:r,font:$.fontString(n,o,r)}}function k(t){return $.options.toLineHeight($.valueOrDefault(t.lineHeight,1.2),$.valueOrDefault(t.fontSize,_.global.defaultFontSize))}t.Scale=n.extend({getPadding:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}},getTicks:function(){return this._ticks},mergeTicksOptions:function(){var t=this.options.ticks;for(var e in!1===t.minor&&(t.minor={display:!1}),!1===t.major&&(t.major={display:!1}),t)"major"!==e&&"minor"!==e&&(void 0===t.minor[e]&&(t.minor[e]=t[e]),void 0===t.major[e]&&(t.major[e]=t[e]))},beforeUpdate:function(){$.callback(this.options.beforeUpdate,[this])},update:function(t,e,i){var n,o,r,a,s,l,c=this;for(c.beforeUpdate(),c.maxWidth=t,c.maxHeight=e,c.margins=$.extend({left:0,right:0,top:0,bottom:0},i),c.longestTextCache=c.longestTextCache||{},c.beforeSetDimensions(),c.setDimensions(),c.afterSetDimensions(),c.beforeDataLimits(),c.determineDataLimits(),c.afterDataLimits(),c.beforeBuildTicks(),s=c.buildTicks()||[],c.afterBuildTicks(),c.beforeTickToLabelConversion(),r=c.convertTicksToLabels(s)||c.ticks,c.afterTickToLabelConversion(),n=0,o=(c.ticks=r).length;n<o;++n)a=r[n],(l=s[n])?l.label=a:s.push(l={label:a,major:!1});return c._ticks=s,c.beforeCalculateTickRotation(),c.calculateTickRotation(),c.afterCalculateTickRotation(),c.beforeFit(),c.fit(),c.afterFit(),c.afterUpdate(),c.minSize},afterUpdate:function(){$.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){$.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var t=this;t.isHorizontal()?(t.width=t.maxWidth,t.left=0,t.right=t.width):(t.height=t.maxHeight,t.top=0,t.bottom=t.height),t.paddingLeft=0,t.paddingTop=0,t.paddingRight=0,t.paddingBottom=0},afterSetDimensions:function(){$.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){$.callback(this.options.beforeDataLimits,[this])},determineDataLimits:$.noop,afterDataLimits:function(){$.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){$.callback(this.options.beforeBuildTicks,[this])},buildTicks:$.noop,afterBuildTicks:function(){$.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){$.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var t=this.options.ticks;this.ticks=this.ticks.map(t.userCallback||t.callback,this)},afterTickToLabelConversion:function(){$.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){$.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var t=this,e=t.ctx,i=t.options.ticks,n=C(t._ticks),o=w(i);e.font=o.font;var r=i.minRotation||0;if(n.length&&t.options.display&&t.isHorizontal())for(var a,s=$.longestText(e,o.font,n,t.longestTextCache),l=s,c=t.getPixelForTick(1)-t.getPixelForTick(0)-6;c<l&&r<i.maxRotation;){var u=$.toRadians(r);if(a=Math.cos(u),Math.sin(u)*s>t.maxHeight){r--;break}r++,l=a*s}t.labelRotation=r},afterCalculateTickRotation:function(){$.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){$.callback(this.options.beforeFit,[this])},fit:function(){var t=this,e=t.minSize={width:0,height:0},i=C(t._ticks),n=t.options,o=n.ticks,r=n.scaleLabel,a=n.gridLines,s=n.display,l=t.isHorizontal(),c=w(o),u=n.gridLines.tickMarkLength;if(e.width=l?t.isFullWidth()?t.maxWidth-t.margins.left-t.margins.right:t.maxWidth:s&&a.drawTicks?u:0,e.height=l?s&&a.drawTicks?u:0:t.maxHeight,r.display&&s){var h=k(r)+$.options.toPadding(r.padding).height;l?e.height+=h:e.width+=h}if(o.display&&s){var d=$.longestText(t.ctx,c.font,i,t.longestTextCache),f=$.numberOfLabelLines(i),p=.5*c.size,g=t.options.ticks.padding;if(l){t.longestLabelWidth=d;var m=$.toRadians(t.labelRotation),v=Math.cos(m),b=Math.sin(m)*d+c.size*f+p*(f-1)+p;e.height=Math.min(t.maxHeight,e.height+b+g),t.ctx.font=c.font;var y=x(t.ctx,i[0],c.font),_=x(t.ctx,i[i.length-1],c.font);0!==t.labelRotation?(t.paddingLeft="bottom"===n.position?v*y+3:v*p+3,t.paddingRight="bottom"===n.position?v*p+3:v*_+3):(t.paddingLeft=y/2+3,t.paddingRight=_/2+3)}else o.mirror?d=0:d+=g+p,e.width=Math.min(t.maxWidth,e.width+d),t.paddingTop=c.size/2,t.paddingBottom=c.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(){$.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($.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:$.noop,getPixelForValue:$.noop,getValueForPixel:$.noop,getPixelForTick:function(t){var e=this,i=e.options.offset;if(e.isHorizontal()){var n=(e.width-(e.paddingLeft+e.paddingRight))/Math.max(e._ticks.length-(i?0:1),1),o=n*t+e.paddingLeft;return i&&(o+=n/2),e.left+Math.round(o)+(e.isFullWidth()?e.margins.left:0)}var r=e.height-(e.paddingTop+e.paddingBottom);return e.top+t*(r/(e._ticks.length-1))},getPixelForDecimal:function(t){var e=this;if(e.isHorizontal()){var i=(e.width-(e.paddingLeft+e.paddingRight))*t+e.paddingLeft;return e.left+Math.round(i)+(e.isFullWidth()?e.margins.left:0)}return e.top+t*e.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var t=this.min,e=this.max;return this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0},_autoSkip:function(t){var e,i,n,o,r=this,a=r.isHorizontal(),s=r.options.ticks.minor,l=t.length,c=$.toRadians(r.labelRotation),u=Math.cos(c),h=r.longestLabelWidth*u,d=[];for(s.maxTicksLimit&&(o=s.maxTicksLimit),a&&(e=!1,(h+s.autoSkipPadding)*l>r.width-(r.paddingLeft+r.paddingRight)&&(e=1+Math.floor((h+s.autoSkipPadding)*l/(r.width-(r.paddingLeft+r.paddingRight)))),o&&o<l&&(e=Math.max(e,Math.floor(l/o)))),i=0;i<l;i++)n=t[i],(1<e&&0<i%e||i%e==0&&l<=i+e)&&i!==l-1&&delete n.label,d.push(n);return d},draw:function(S){var T=this,D=T.options;if(D.display){var o=T.ctx,A=_.global,E=D.ticks.minor,t=D.ticks.major||E,I=D.gridLines,e=D.scaleLabel,M=0!==T.labelRotation,P=T.isHorizontal(),N=E.autoSkip?T._autoSkip(T.getTicks()):T.getTicks(),r=$.valueOrDefault(E.fontColor,A.defaultFontColor),a=w(E),s=$.valueOrDefault(t.fontColor,A.defaultFontColor),l=w(t),O=I.drawTicks?I.tickMarkLength:0,i=$.valueOrDefault(e.fontColor,A.defaultFontColor),n=w(e),c=$.options.toPadding(e.padding),F=$.toRadians(T.labelRotation),L=[],R="right"===D.position?T.left:T.right-O,W="right"===D.position?T.left+O:T.right,H="bottom"===D.position?T.top:T.bottom-O,j="bottom"===D.position?T.top+O:T.bottom;if($.each(N,function(t,e){if(!$.isNullOrUndef(t.label)){var i,n,o,r,a=t.label;r=e===T.zeroLineIndex&&D.offset===I.offsetGridLines?(i=I.zeroLineWidth,n=I.zeroLineColor,o=I.zeroLineBorderDash,I.zeroLineBorderDashOffset):(i=$.valueAtIndexOrDefault(I.lineWidth,e),n=$.valueAtIndexOrDefault(I.color,e),o=$.valueOrDefault(I.borderDash,A.borderDash),$.valueOrDefault(I.borderDashOffset,A.borderDashOffset));var s,l,c,u,h,d,f,p,g,m,v="middle",b="middle",y=E.padding;if(P){var _=O+y;m="bottom"===D.position?(b=M?"middle":"top",v=M?"right":"center",T.top+_):(b=M?"middle":"bottom",v=M?"left":"center",T.bottom-_);var x=B(T,e,I.offsetGridLines&&1<N.length);x<T.left&&(n="rgba(0,0,0,0)"),x+=$.aliasPixel(i),g=T.getPixelForTick(e)+E.labelOffset,s=c=h=f=x,l=H,u=j,d=S.top,p=S.bottom}else{var w,k="left"===D.position;w=E.mirror?(v=k?"left":"right",y):(v=k?"right":"left",O+y),g=k?T.right-w:T.left+w;var C=B(T,e,I.offsetGridLines&&1<N.length);C<T.top&&(n="rgba(0,0,0,0)"),C+=$.aliasPixel(i),m=T.getPixelForTick(e)+E.labelOffset,s=R,c=W,h=S.left,f=S.right,l=u=d=p=C}L.push({tx1:s,ty1:l,tx2:c,ty2:u,x1:h,y1:d,x2:f,y2:p,labelX:g,labelY:m,glWidth:i,glColor:n,glBorderDash:o,glBorderDashOffset:r,rotation:-1*F,label:a,major:t.major,textBaseline:b,textAlign:v})}}),$.each(L,function(t){if(I.display&&(o.save(),o.lineWidth=t.glWidth,o.strokeStyle=t.glColor,o.setLineDash&&(o.setLineDash(t.glBorderDash),o.lineDashOffset=t.glBorderDashOffset),o.beginPath(),I.drawTicks&&(o.moveTo(t.tx1,t.ty1),o.lineTo(t.tx2,t.ty2)),I.drawOnChartArea&&(o.moveTo(t.x1,t.y1),o.lineTo(t.x2,t.y2)),o.stroke(),o.restore()),E.display){o.save(),o.translate(t.labelX,t.labelY),o.rotate(t.rotation),o.font=t.major?l.font:a.font,o.fillStyle=t.major?s:r,o.textBaseline=t.textBaseline,o.textAlign=t.textAlign;var e=t.label;if($.isArray(e))for(var i=0,n=0;i<e.length;++i)o.fillText(""+e[i],0,n),n+=1.5*a.size;else o.fillText(e,0,0);o.restore()}}),e.display){var u,h,d=0,f=k(e)/2;if(P)u=T.left+(T.right-T.left)/2,h="bottom"===D.position?T.bottom-f-c.bottom:T.top+f+c.top;else{var p="left"===D.position;u=p?T.left+f+c.top:T.right-f-c.top,h=T.top+(T.bottom-T.top)/2,d=p?-.5*Math.PI:.5*Math.PI}o.save(),o.translate(u,h),o.rotate(d),o.textAlign="center",o.textBaseline="middle",o.fillStyle=i,o.font=n.font,o.fillText(e.labelString,0,0),o.restore()}if(I.drawBorder){o.lineWidth=$.valueAtIndexOrDefault(I.lineWidth,0),o.strokeStyle=$.valueAtIndexOrDefault(I.color,0);var g=T.left,m=T.right,v=T.top,b=T.bottom,y=$.aliasPixel(o.lineWidth);P?(v=b="top"===D.position?T.bottom:T.top,v+=y,b+=y):(g=m="left"===D.position?T.right:T.left,g+=y,m+=y),o.beginPath(),o.moveTo(g,v),o.lineTo(m,b),o.stroke()}}}})}},{25:25,26:26,34:34,45:45}],33:[function(t,e,i){"use strict";var n=t(25),o=t(45);e.exports=function(i){i.scaleService={constructors:{},defaults:{},registerScaleType:function(t,e,i){this.constructors[t]=e,this.defaults[t]=o.clone(i)},getScaleConstructor:function(t){return this.constructors.hasOwnProperty(t)?this.constructors[t]:void 0},getScaleDefaults:function(t){return this.defaults.hasOwnProperty(t)?o.merge({},[n.scale,this.defaults[t]]):{}},updateScaleDefaults:function(t,e){this.defaults.hasOwnProperty(t)&&(this.defaults[t]=o.extend(this.defaults[t],e))},addScalesToLayout:function(e){o.each(e.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,i.layoutService.addBox(e,t)})}}}},{25:25,45:45}],34:[function(t,e,i){"use strict";var u=t(45);e.exports={generators:{linear:function(t,e){var i,n=[];if(t.stepSize&&0<t.stepSize)i=t.stepSize;else{var o=u.niceNum(e.max-e.min,!1);i=u.niceNum(o/(t.maxTicks-1),!0)}var r=Math.floor(e.min/i)*i,a=Math.ceil(e.max/i)*i;t.min&&t.max&&t.stepSize&&u.almostWhole((t.max-t.min)/t.stepSize,i/1e3)&&(r=t.min,a=t.max);var s=(a-r)/i;s=u.almostEquals(s,Math.round(s),i/1e3)?Math.round(s):Math.ceil(s),n.push(void 0!==t.min?t.min:r);for(var l=1;l<s;++l)n.push(r+l*i);return n.push(void 0!==t.max?t.max:a),n},logarithmic:function(t,e){var i,n,o=[],r=u.valueOrDefault,a=r(t.min,Math.pow(10,Math.floor(u.log10(e.min)))),s=Math.floor(u.log10(e.max)),l=Math.ceil(e.max/Math.pow(10,s));for(0===a?(i=Math.floor(u.log10(e.minNotZero)),n=Math.floor(e.minNotZero/Math.pow(10,i)),o.push(a),a=n*Math.pow(10,i)):(i=Math.floor(u.log10(a)),n=Math.floor(a/Math.pow(10,i)));o.push(a),10==++n&&(n=1,++i),a=n*Math.pow(10,i),i<s||i===s&&n<l;);var c=r(t.max,a);return o.push(c),o}},formatters:{values:function(t){return u.isArray(t)?t:""+t},linear:function(t,e,i){var n=3<i.length?i[2]-i[1]:i[1]-i[0];1<Math.abs(n)&&t!==Math.floor(t)&&(n=t-Math.floor(t));var o=u.log10(Math.abs(n)),r="";if(0!==t){var a=-1*Math.floor(o);a=Math.max(Math.min(a,20),0),r=t.toFixed(a)}else r="0";return r},logarithmic:function(t,e,i){var n=t/Math.pow(10,Math.floor(u.log10(t)));return 0===t?"0":1===n||2===n||5===n||0===e||e===i.length-1?t.toExponential():""}}}},{45:45}],35:[function(t,e,i){"use strict";var n=t(25),o=t(26),F=t(45);n._set("global",{tooltips:{enabled:!0,custom:null,mode:"nearest",position:"average",intersect:!0,backgroundColor:"rgba(0,0,0,0.8)",titleFontStyle:"bold",titleSpacing:2,titleMarginBottom:6,titleFontColor:"#fff",titleAlign:"left",bodySpacing:2,bodyFontColor:"#fff",bodyAlign:"left",footerFontStyle:"bold",footerSpacing:2,footerMarginTop:6,footerFontColor:"#fff",footerAlign:"left",yPadding:6,xPadding:6,caretPadding:2,caretSize:5,cornerRadius:6,multiKeyBackground:"#fff",displayColors:!0,borderColor:"rgba(0,0,0,0)",borderWidth:0,callbacks:{beforeTitle:F.noop,title:function(t,e){var i="",n=e.labels,o=n?n.length:0;if(0<t.length){var r=t[0];r.xLabel?i=r.xLabel:0<o&&r.index<o&&(i=n[r.index])}return i},afterTitle:F.noop,beforeBody:F.noop,beforeLabel:F.noop,label:function(t,e){var i=e.datasets[t.datasetIndex].label||"";return i&&(i+=": "),i+t.yLabel},labelColor:function(t,e){var i=e.getDatasetMeta(t.datasetIndex).data[t.index]._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},labelTextColor:function(){return this._options.bodyFontColor},afterLabel:F.noop,afterBody:F.noop,beforeFooter:F.noop,footer:F.noop,afterFooter:F.noop}}}),e.exports=function(N){function d(t,e){var i=F.color(t);return i.alpha(e*i.alpha()).rgbaString()}function a(t,e){return e&&(F.isArray(e)?Array.prototype.push.apply(t,e):t.push(e)),t}function O(t){var e=n.global,i=F.valueOrDefault;return{xPadding:t.xPadding,yPadding:t.yPadding,xAlign:t.xAlign,yAlign:t.yAlign,bodyFontColor:t.bodyFontColor,_bodyFontFamily:i(t.bodyFontFamily,e.defaultFontFamily),_bodyFontStyle:i(t.bodyFontStyle,e.defaultFontStyle),_bodyAlign:t.bodyAlign,bodyFontSize:i(t.bodyFontSize,e.defaultFontSize),bodySpacing:t.bodySpacing,titleFontColor:t.titleFontColor,_titleFontFamily:i(t.titleFontFamily,e.defaultFontFamily),_titleFontStyle:i(t.titleFontStyle,e.defaultFontStyle),titleFontSize:i(t.titleFontSize,e.defaultFontSize),_titleAlign:t.titleAlign,titleSpacing:t.titleSpacing,titleMarginBottom:t.titleMarginBottom,footerFontColor:t.footerFontColor,_footerFontFamily:i(t.footerFontFamily,e.defaultFontFamily),_footerFontStyle:i(t.footerFontStyle,e.defaultFontStyle),footerFontSize:i(t.footerFontSize,e.defaultFontSize),_footerAlign:t.footerAlign,footerSpacing:t.footerSpacing,footerMarginTop:t.footerMarginTop,caretSize:t.caretSize,cornerRadius:t.cornerRadius,backgroundColor:t.backgroundColor,opacity:0,legendColorBackground:t.multiKeyBackground,displayColors:t.displayColors,borderColor:t.borderColor,borderWidth:t.borderWidth}}N.Tooltip=o.extend({initialize:function(){this._model=O(this._options),this._lastActive=[]},getTitle:function(){var t=this._options.callbacks,e=t.beforeTitle.apply(this,arguments),i=t.title.apply(this,arguments),n=t.afterTitle.apply(this,arguments),o=[];return a(o=a(o=a(o,e),i),n)},getBeforeBody:function(){var t=this._options.callbacks.beforeBody.apply(this,arguments);return F.isArray(t)?t:void 0!==t?[t]:[]},getBody:function(t,i){var n=this,o=n._options.callbacks,r=[];return F.each(t,function(t){var e={before:[],lines:[],after:[]};a(e.before,o.beforeLabel.call(n,t,i)),a(e.lines,o.label.call(n,t,i)),a(e.after,o.afterLabel.call(n,t,i)),r.push(e)}),r},getAfterBody:function(){var t=this._options.callbacks.afterBody.apply(this,arguments);return F.isArray(t)?t:void 0!==t?[t]:[]},getFooter:function(){var t=this._options.callbacks,e=t.beforeFooter.apply(this,arguments),i=t.footer.apply(this,arguments),n=t.afterFooter.apply(this,arguments),o=[];return a(o=a(o=a(o,e),i),n)},update:function(t){var e,i,n,o,r,a,s,l,c,u,h,d,f,p,g,m,v,b,y,_=this,x=_._options,w=_._model,k=_._model=O(x),C=_._active,S=_._data,T={xAlign:w.xAlign,yAlign:w.yAlign},D={x:w.x,y:w.y},A={width:w.width,height:w.height},E={x:w.caretX,y:w.caretY};if(C.length){k.opacity=1;var I=[],M=[];E=N.Tooltip.positioners[x.position].call(_,C,_._eventPosition);var P=[];for(e=0,i=C.length;e<i;++e)P.push((g=C[e],v=m=void 0,m=g._xScale,v=g._yScale||g._scale,b=g._index,y=g._datasetIndex,{xLabel:m?m.getLabelForIndex(b,y):"",yLabel:v?v.getLabelForIndex(b,y):"",index:b,datasetIndex:y,x:g._model.x,y:g._model.y}));x.filter&&(P=P.filter(function(t){return x.filter(t,S)})),x.itemSort&&(P=P.sort(function(t,e){return x.itemSort(t,e,S)})),F.each(P,function(t){I.push(x.callbacks.labelColor.call(_,t,_._chart)),M.push(x.callbacks.labelTextColor.call(_,t,_._chart))}),k.title=_.getTitle(P,S),k.beforeBody=_.getBeforeBody(P,S),k.body=_.getBody(P,S),k.afterBody=_.getAfterBody(P,S),k.footer=_.getFooter(P,S),k.x=Math.round(E.x),k.y=Math.round(E.y),k.caretPadding=x.caretPadding,k.labelColors=I,k.labelTextColors=M,k.dataPoints=P,o=A=function(t,e){var i=t._chart.ctx,n=2*e.yPadding,o=0,r=e.body,a=r.reduce(function(t,e){return t+e.before.length+e.lines.length+e.after.length},0);a+=e.beforeBody.length+e.afterBody.length;var s=e.title.length,l=e.footer.length,c=e.titleFontSize,u=e.bodyFontSize,h=e.footerFontSize;n+=s*c,n+=s?(s-1)*e.titleSpacing:0,n+=s?e.titleMarginBottom:0,n+=a*u,n+=a?(a-1)*e.bodySpacing:0,n+=l?e.footerMarginTop:0,n+=l*h,n+=l?(l-1)*e.footerSpacing:0;var d=0,f=function(t){o=Math.max(o,i.measureText(t).width+d)};return i.font=F.fontString(c,e._titleFontStyle,e._titleFontFamily),F.each(e.title,f),i.font=F.fontString(u,e._bodyFontStyle,e._bodyFontFamily),F.each(e.beforeBody.concat(e.afterBody),f),d=e.displayColors?u+2:0,F.each(r,function(t){F.each(t.before,f),F.each(t.lines,f),F.each(t.after,f)}),d=0,i.font=F.fontString(h,e._footerFontStyle,e._footerFontFamily),F.each(e.footer,f),{width:o+=2*e.xPadding,height:n}}(this,n=k),r=T=function(t,e){var i=t._model,n=t._chart,o=t._chart.chartArea,r="center",a="center";i.y<e.height?a="top":i.y>n.height-e.height&&(a="bottom");var s,l,c,u,h,d=(o.left+o.right)/2,f=(o.top+o.bottom)/2;l="center"===a?(s=function(t){return t<=d},function(t){return d<t}):(s=function(t){return t<=e.width/2},function(t){return t>=n.width-e.width/2}),c=function(t){return t+e.width>n.width},u=function(t){return t-e.width<0},h=function(t){return t<=f?"top":"bottom"},s(i.x)?(r="left",c(i.x)&&(r="center",a=h(i.y))):l(i.x)&&(r="right",u(i.x)&&(r="center",a=h(i.y)));var p=t._options;return{xAlign:p.xAlign?p.xAlign:r,yAlign:p.yAlign?p.yAlign:a}}(this,A),a=n.x,s=n.y,l=n.caretSize,c=n.caretPadding,u=n.cornerRadius,h=r.xAlign,d=r.yAlign,f=l+c,p=u+c,"right"===h?a-=o.width:"center"===h&&(a-=o.width/2),"top"===d?s+=f:s-="bottom"===d?o.height+f:o.height/2,"center"===d?"left"===h?a+=f:"right"===h&&(a-=f):"left"===h?a-=p:"right"===h&&(a+=p),D={x:a,y:s}}else k.opacity=0;return k.xAlign=T.xAlign,k.yAlign=T.yAlign,k.x=D.x,k.y=D.y,k.width=A.width,k.height=A.height,k.caretX=E.x,k.caretY=E.y,_._model=k,t&&x.custom&&x.custom.call(_,k),_},drawCaret:function(t,e){var i=this._chart.ctx,n=this._view,o=this.getCaretPosition(t,e,n);i.lineTo(o.x1,o.y1),i.lineTo(o.x2,o.y2),i.lineTo(o.x3,o.y3)},getCaretPosition:function(t,e,i){var n,o,r,a,s,l,c=i.caretSize,u=i.cornerRadius,h=i.xAlign,d=i.yAlign,f=t.x,p=t.y,g=e.width,m=e.height;if("center"===d)s=p+m/2,l="left"===h?(o=(n=f)-c,r=n,a=s+c,s-c):(o=(n=f+g)+c,r=n,a=s-c,s+c);else if(r=(n="left"===h?(o=f+u+c)-c:"right"===h?(o=f+g-u-c)-c:(o=f+g/2)-c,o+c),"top"===d)s=(a=p)-c,l=a;else{s=(a=p+m)+c,l=a;var v=r;r=n,n=v}return{x1:n,x2:o,x3:r,y1:a,y2:s,y3:l}},drawTitle:function(t,e,i,n){var o=e.title;if(o.length){i.textAlign=e._titleAlign,i.textBaseline="top";var r,a,s=e.titleFontSize,l=e.titleSpacing;for(i.fillStyle=d(e.titleFontColor,n),i.font=F.fontString(s,e._titleFontStyle,e._titleFontFamily),r=0,a=o.length;r<a;++r)i.fillText(o[r],t.x,t.y),t.y+=s+l,r+1===o.length&&(t.y+=e.titleMarginBottom-l)}},drawBody:function(n,o,r,a){var s=o.bodyFontSize,e=o.bodySpacing,t=o.body;r.textAlign=o._bodyAlign,r.textBaseline="top",r.font=F.fontString(s,o._bodyFontStyle,o._bodyFontFamily);var i=0,l=function(t){r.fillText(t,n.x+i,n.y),n.y+=s+e};r.fillStyle=d(o.bodyFontColor,a),F.each(o.beforeBody,l);var c=o.displayColors;i=c?s+2:0,F.each(t,function(t,e){var i=d(o.labelTextColors[e],a);r.fillStyle=i,F.each(t.before,l),F.each(t.lines,function(t){c&&(r.fillStyle=d(o.legendColorBackground,a),r.fillRect(n.x,n.y,s,s),r.lineWidth=1,r.strokeStyle=d(o.labelColors[e].borderColor,a),r.strokeRect(n.x,n.y,s,s),r.fillStyle=d(o.labelColors[e].backgroundColor,a),r.fillRect(n.x+1,n.y+1,s-2,s-2),r.fillStyle=i),l(t)}),F.each(t.after,l)}),i=0,F.each(o.afterBody,l),n.y-=e},drawFooter:function(e,i,n,t){var o=i.footer;o.length&&(e.y+=i.footerMarginTop,n.textAlign=i._footerAlign,n.textBaseline="top",n.fillStyle=d(i.footerFontColor,t),n.font=F.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),F.each(o,function(t){n.fillText(t,e.x,e.y),e.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(t,e,i,n,o){i.fillStyle=d(e.backgroundColor,o),i.strokeStyle=d(e.borderColor,o),i.lineWidth=e.borderWidth;var r=e.xAlign,a=e.yAlign,s=t.x,l=t.y,c=n.width,u=n.height,h=e.cornerRadius;i.beginPath(),i.moveTo(s+h,l),"top"===a&&this.drawCaret(t,n),i.lineTo(s+c-h,l),i.quadraticCurveTo(s+c,l,s+c,l+h),"center"===a&&"right"===r&&this.drawCaret(t,n),i.lineTo(s+c,l+u-h),i.quadraticCurveTo(s+c,l+u,s+c-h,l+u),"bottom"===a&&this.drawCaret(t,n),i.lineTo(s+h,l+u),i.quadraticCurveTo(s,l+u,s,l+u-h),"center"===a&&"left"===r&&this.drawCaret(t,n),i.lineTo(s,l+h),i.quadraticCurveTo(s,l,s+h,l),i.closePath(),i.fill(),0<e.borderWidth&&i.stroke()},draw:function(){var t=this._chart.ctx,e=this._view;if(0!==e.opacity){var i={width:e.width,height:e.height},n={x:e.x,y:e.y},o=Math.abs(e.opacity<.001)?0:e.opacity,r=e.title.length||e.beforeBody.length||e.body.length||e.afterBody.length||e.footer.length;this._options.enabled&&r&&(this.drawBackground(n,e,t,i,o),n.x+=e.xPadding,n.y+=e.yPadding,this.drawTitle(n,e,t,o),this.drawBody(n,e,t,o),this.drawFooter(n,e,t,o))}},handleEvent:function(t){var e=this,i=e._options,n=!1;if(e._lastActive=e._lastActive||[],"mouseout"===t.type?e._active=[]:e._active=e._chart.getElementsAtEventForMode(t,i.mode,i),!(n=!F.arrayEquals(e._active,e._lastActive)))return!1;if(e._lastActive=e._active,i.enabled||i.custom){e._eventPosition={x:t.x,y:t.y};var o=e._model;e.update(!0),e.pivot(),n|=o.x!==e._model.x||o.y!==e._model.y}return n}}),N.Tooltip.positioners={average:function(t){if(!t.length)return!1;var e,i,n=0,o=0,r=0;for(e=0,i=t.length;e<i;++e){var a=t[e];if(a&&a.hasValue()){var s=a.tooltipPosition();n+=s.x,o+=s.y,++r}}return{x:Math.round(n/r),y:Math.round(o/r)}},nearest:function(t,e){var i,n,o,r=e.x,a=e.y,s=Number.POSITIVE_INFINITY;for(i=0,n=t.length;i<n;++i){var l=t[i];if(l&&l.hasValue()){var c=l.getCenterPoint(),u=F.distanceBetweenPoints(e,c);u<s&&(s=u,o=l)}}if(o){var h=o.tooltipPosition();r=h.x,a=h.y}return{x:r,y:a}}}}},{25:25,26:26,45:45}],36:[function(t,e,i){"use strict";var n=t(25),o=t(26),u=t(45);n._set("global",{elements:{arc:{backgroundColor:n.global.defaultColor,borderColor:"#fff",borderWidth:2}}}),e.exports=o.extend({inLabelRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hoverRadius,2)},inRange:function(t,e){var i=this._view;if(i){for(var n=u.getAngleFromPoint(i,{x:t,y:e}),o=n.angle,r=n.distance,a=i.startAngle,s=i.endAngle;s<a;)s+=2*Math.PI;for(;s<o;)o-=2*Math.PI;for(;o<a;)o+=2*Math.PI;var l=a<=o&&o<=s,c=r>=i.innerRadius&&r<=i.outerRadius;return l&&c}return!1},getCenterPoint:function(){var t=this._view,e=(t.startAngle+t.endAngle)/2,i=(t.innerRadius+t.outerRadius)/2;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},getArea:function(){var t=this._view;return Math.PI*((t.endAngle-t.startAngle)/(2*Math.PI))*(Math.pow(t.outerRadius,2)-Math.pow(t.innerRadius,2))},tooltipPosition:function(){var t=this._view,e=t.startAngle+(t.endAngle-t.startAngle)/2,i=(t.outerRadius-t.innerRadius)/2+t.innerRadius;return{x:t.x+Math.cos(e)*i,y:t.y+Math.sin(e)*i}},draw:function(){var t=this._chart.ctx,e=this._view,i=e.startAngle,n=e.endAngle;t.beginPath(),t.arc(e.x,e.y,e.outerRadius,i,n),t.arc(e.x,e.y,e.innerRadius,n,i,!0),t.closePath(),t.strokeStyle=e.borderColor,t.lineWidth=e.borderWidth,t.fillStyle=e.backgroundColor,t.fill(),t.lineJoin="bevel",e.borderWidth&&t.stroke()}})},{25:25,26:26,45:45}],37:[function(t,e,i){"use strict";var n=t(25),o=t(26),u=t(45),h=n.global;n._set("global",{elements:{line:{tension:.4,backgroundColor:h.defaultColor,borderWidth:3,borderColor:h.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0}}}),e.exports=o.extend({draw:function(){var t,e,i,n,o=this._view,r=this._chart.ctx,a=o.spanGaps,s=this._children.slice(),l=h.elements.line,c=-1;for(this._loop&&s.length&&s.push(s[0]),r.save(),r.lineCap=o.borderCapStyle||l.borderCapStyle,r.setLineDash&&r.setLineDash(o.borderDash||l.borderDash),r.lineDashOffset=o.borderDashOffset||l.borderDashOffset,r.lineJoin=o.borderJoinStyle||l.borderJoinStyle,r.lineWidth=o.borderWidth||l.borderWidth,r.strokeStyle=o.borderColor||h.defaultColor,r.beginPath(),c=-1,t=0;t<s.length;++t)e=s[t],i=u.previousItem(s,t),n=e._view,0===t?n.skip||(r.moveTo(n.x,n.y),c=t):(i=-1===c?i:s[c],n.skip||(c!==t-1&&!a||-1===c?r.moveTo(n.x,n.y):u.canvas.lineTo(r,i._view,e._view),c=t));r.stroke(),r.restore()}})},{25:25,26:26,45:45}],38:[function(t,e,i){"use strict";function n(t){var e=this._view;return!!e&&Math.pow(t-e.x,2)<Math.pow(e.radius+e.hitRadius,2)}var u=t(25),o=t(26),h=t(45),d=u.global.defaultColor;u._set("global",{elements:{point:{radius:3,pointStyle:"circle",backgroundColor:d,borderColor:d,borderWidth:1,hitRadius:1,hoverRadius:4,hoverBorderWidth:1}}}),e.exports=o.extend({inRange:function(t,e){var i=this._view;return!!i&&Math.pow(t-i.x,2)+Math.pow(e-i.y,2)<Math.pow(i.hitRadius+i.radius,2)},inLabelRange:n,inXRange:n,inYRange:function(t){var e=this._view;return!!e&&Math.pow(t-e.y,2)<Math.pow(e.radius+e.hitRadius,2)},getCenterPoint:function(){var t=this._view;return{x:t.x,y:t.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y,padding:t.radius+t.borderWidth}},draw:function(t){var e=this._view,i=this._model,n=this._chart.ctx,o=e.pointStyle,r=e.radius,a=e.x,s=e.y,l=h.color,c=0;e.skip||(n.strokeStyle=e.borderColor||d,n.lineWidth=h.valueOrDefault(e.borderWidth,u.global.elements.point.borderWidth),n.fillStyle=e.backgroundColor||d,void 0!==t&&(i.x<t.left||1.01*t.right<i.x||i.y<t.top||1.01*t.bottom<i.y)&&(i.x<t.left?c=(a-i.x)/(t.left-i.x):1.01*t.right<i.x?c=(i.x-a)/(i.x-t.right):i.y<t.top?c=(s-i.y)/(t.top-i.y):1.01*t.bottom<i.y&&(c=(i.y-s)/(i.y-t.bottom)),c=Math.round(100*c)/100,n.strokeStyle=l(n.strokeStyle).alpha(c).rgbString(),n.fillStyle=l(n.fillStyle).alpha(c).rgbString()),h.canvas.drawPoint(n,o,r,a,s))}})},{25:25,26:26,45:45}],39:[function(t,e,i){"use strict";function l(t){return void 0!==t._view.width}function o(t){var e,i,n,o,r=t._view;if(l(t)){var a=r.width/2;e=r.x-a,i=r.x+a,n=Math.min(r.y,r.base),o=Math.max(r.y,r.base)}else{var s=r.height/2;e=Math.min(r.x,r.base),i=Math.max(r.x,r.base),n=r.y-s,o=r.y+s}return{left:e,top:n,right:i,bottom:o}}var n=t(25),r=t(26);n._set("global",{elements:{rectangle:{backgroundColor:n.global.defaultColor,borderColor:n.global.defaultColor,borderSkipped:"bottom",borderWidth:0}}}),e.exports=r.extend({draw:function(){function t(t){return v[(b+t)%4]}var e,i,n,o,r,a,s,l=this._chart.ctx,c=this._view,u=c.borderWidth;if(s=c.horizontal?(e=c.base,i=c.x,n=c.y-c.height/2,o=c.y+c.height/2,r=e<i?1:-1,a=1,c.borderSkipped||"left"):(e=c.x-c.width/2,i=c.x+c.width/2,n=c.y,r=1,a=(o=c.base)>n?1:-1,c.borderSkipped||"bottom"),u){var h=Math.min(Math.abs(e-i),Math.abs(n-o)),d=(u=h<u?h:u)/2,f=e+("left"!==s?d*r:0),p=i+("right"!==s?-d*r:0),g=n+("top"!==s?d*a:0),m=o+("bottom"!==s?-d*a:0);f!==p&&(n=g,o=m),g!==m&&(e=f,i=p)}l.beginPath(),l.fillStyle=c.backgroundColor,l.strokeStyle=c.borderColor,l.lineWidth=u;var v=[[e,o],[e,n],[i,n],[i,o]],b=["bottom","left","top","right"].indexOf(s,0);-1===b&&(b=0);var y=t(0);l.moveTo(y[0],y[1]);for(var _=1;_<4;_++)y=t(_),l.lineTo(y[0],y[1]);l.fill(),u&&l.stroke()},height:function(){var t=this._view;return t.base-t.y},inRange:function(t,e){var i=!1;if(this._view){var n=o(this);i=t>=n.left&&t<=n.right&&e>=n.top&&e<=n.bottom}return i},inLabelRange:function(t,e){if(!this._view)return!1;var i=o(this);return l(this)?t>=i.left&&t<=i.right:e>=i.top&&e<=i.bottom},inXRange:function(t){var e=o(this);return t>=e.left&&t<=e.right},inYRange:function(t){var e=o(this);return t>=e.top&&t<=e.bottom},getCenterPoint:function(){var t,e,i=this._view;return e=l(this)?(t=i.x,(i.y+i.base)/2):(t=(i.x+i.base)/2,i.y),{x:t,y:e}},getArea:function(){var t=this._view;return t.width*Math.abs(t.y-t.base)},tooltipPosition:function(){var t=this._view;return{x:t.x,y:t.y}}})},{25:25,26:26}],40:[function(t,e,i){"use strict";e.exports={},e.exports.Arc=t(36),e.exports.Line=t(37),e.exports.Point=t(38),e.exports.Rectangle=t(39)},{36:36,37:37,38:38,39:39}],41:[function(t,e,i){"use strict";var n=t(42);i=e.exports={clear:function(t){t.ctx.clearRect(0,0,t.width,t.height)},roundedRect:function(t,e,i,n,o,r){if(r){var a=Math.min(r,n/2),s=Math.min(r,o/2);t.moveTo(e+a,i),t.lineTo(e+n-a,i),t.quadraticCurveTo(e+n,i,e+n,i+s),t.lineTo(e+n,i+o-s),t.quadraticCurveTo(e+n,i+o,e+n-a,i+o),t.lineTo(e+a,i+o),t.quadraticCurveTo(e,i+o,e,i+o-s),t.lineTo(e,i+s),t.quadraticCurveTo(e,i,e+a,i)}else t.rect(e,i,n,o)},drawPoint:function(t,e,i,n,o){var r,a,s,l,c,u;if(!e||"object"!=typeof e||"[object HTMLImageElement]"!==(r=e.toString())&&"[object HTMLCanvasElement]"!==r){if(!(isNaN(i)||i<=0)){switch(e){default:t.beginPath(),t.arc(n,o,i,0,2*Math.PI),t.closePath(),t.fill();break;case"triangle":t.beginPath(),c=(a=3*i/Math.sqrt(3))*Math.sqrt(3)/2,t.moveTo(n-a/2,o+c/3),t.lineTo(n+a/2,o+c/3),t.lineTo(n,o-2*c/3),t.closePath(),t.fill();break;case"rect":u=1/Math.SQRT2*i,t.beginPath(),t.fillRect(n-u,o-u,2*u,2*u),t.strokeRect(n-u,o-u,2*u,2*u);break;case"rectRounded":var h=i/Math.SQRT2,d=n-h,f=o-h,p=Math.SQRT2*i;t.beginPath(),this.roundedRect(t,d,f,p,p,i/2),t.closePath(),t.fill();break;case"rectRot":u=1/Math.SQRT2*i,t.beginPath(),t.moveTo(n-u,o),t.lineTo(n,o+u),t.lineTo(n+u,o),t.lineTo(n,o-u),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(n,o+i),t.lineTo(n,o-i),t.moveTo(n-i,o),t.lineTo(n+i,o),t.closePath();break;case"crossRot":t.beginPath(),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,o-l),t.lineTo(n+s,o+l),t.moveTo(n-s,o+l),t.lineTo(n+s,o-l),t.closePath();break;case"star":t.beginPath(),t.moveTo(n,o+i),t.lineTo(n,o-i),t.moveTo(n-i,o),t.lineTo(n+i,o),s=Math.cos(Math.PI/4)*i,l=Math.sin(Math.PI/4)*i,t.moveTo(n-s,o-l),t.lineTo(n+s,o+l),t.moveTo(n-s,o+l),t.lineTo(n+s,o-l),t.closePath();break;case"line":t.beginPath(),t.moveTo(n-i,o),t.lineTo(n+i,o),t.closePath();break;case"dash":t.beginPath(),t.moveTo(n,o),t.lineTo(n+i,o),t.closePath()}t.stroke()}}else t.drawImage(e,n-e.width/2,o-e.height/2,e.width,e.height)},clipArea:function(t,e){t.save(),t.beginPath(),t.rect(e.left,e.top,e.right-e.left,e.bottom-e.top),t.clip()},unclipArea:function(t){t.restore()},lineTo:function(t,e,i,n){if(i.steppedLine)return"after"===i.steppedLine&&!n||"after"!==i.steppedLine&&n?t.lineTo(e.x,i.y):t.lineTo(i.x,e.y),void t.lineTo(i.x,i.y);i.tension?t.bezierCurveTo(n?e.controlPointPreviousX:e.controlPointNextX,n?e.controlPointPreviousY:e.controlPointNextY,n?i.controlPointNextX:i.controlPointPreviousX,n?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y):t.lineTo(i.x,i.y)}};n.clear=i.clear,n.drawRoundedRectangle=function(t){t.beginPath(),i.roundedRect.apply(i,arguments),t.closePath()}},{42:42}],42:[function(t,e,i){"use strict";var n,u={noop:function(){},uid:(n=0,function(){return n++}),isNullOrUndef:function(t){return null==t},isArray:Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},isObject:function(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)},valueOrDefault:function(t,e){return void 0===t?e:t},valueAtIndexOrDefault:function(t,e,i){return u.valueOrDefault(u.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 o,r,a;if(u.isArray(t))if(r=t.length,n)for(o=r-1;0<=o;o--)e.call(i,t[o],o);else for(o=0;o<r;o++)e.call(i,t[o],o);else if(u.isObject(t))for(r=(a=Object.keys(t)).length,o=0;o<r;o++)e.call(i,t[a[o]],a[o])},arrayEquals:function(t,e){var i,n,o,r;if(!t||!e||t.length!==e.length)return!1;for(i=0,n=t.length;i<n;++i)if(o=t[i],r=e[i],o instanceof Array&&r instanceof Array){if(!u.arrayEquals(o,r))return!1}else if(o!==r)return!1;return!0},clone:function(t){if(u.isArray(t))return t.map(u.clone);if(u.isObject(t)){for(var e={},i=Object.keys(t),n=i.length,o=0;o<n;++o)e[i[o]]=u.clone(t[i[o]]);return e}return t},_merger:function(t,e,i,n){var o=e[t],r=i[t];u.isObject(o)&&u.isObject(r)?u.merge(o,r,n):e[t]=u.clone(r)},_mergerIf:function(t,e,i){var n=e[t],o=i[t];u.isObject(n)&&u.isObject(o)?u.mergeIf(n,o):e.hasOwnProperty(t)||(e[t]=u.clone(o))},merge:function(t,e,i){var n,o,r,a,s,l=u.isArray(e)?e:[e],c=l.length;if(!u.isObject(t))return t;for(n=(i=i||{}).merger||u._merger,o=0;o<c;++o)if(e=l[o],u.isObject(e))for(s=0,a=(r=Object.keys(e)).length;s<a;++s)n(r[s],t,e,i);return t},mergeIf:function(t,e){return u.merge(t,e,{merger:u._mergerIf})},extend:function(i){for(var t=1,e=arguments.length;t<e;++t)u.each(arguments[t],function(t,e){i[e]=t});return i},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=u.inherits,t&&u.extend(i.prototype,t),i.__super__=e.prototype,i}};(e.exports=u).callCallback=u.callback,u.indexOf=function(t,e,i){return Array.prototype.indexOf.call(t,e,i)},u.getValueOrDefault=u.valueOrDefault,u.getValueAtIndexOrDefault=u.valueAtIndexOrDefault},{}],43:[function(t,e,i){"use strict";var n=t(42),o={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 1<=t?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),e=n<1?(n=1,i/4):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),e=n<1?(n=1,i/4):i/(2*Math.PI)*Math.asin(1/n),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},easeInOutElastic:function(t){var e=1.70158,i=0,n=1;return 0===t?0:2==(t/=.5)?1:(i||(i=.45),e=n<1?(n=1,i/4):i/(2*Math.PI)*Math.asin(1/n),t<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.5+1)},easeInBack:function(t){return t*t*(2.70158*t-1.70158)},easeOutBack:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},easeInOutBack:function(t){var e=1.70158;return(t/=.5)<1?t*t*((1+(e*=1.525))*t-e)*.5:.5*((t-=2)*t*((1+(e*=1.525))*t+e)+2)},easeInBounce:function(t){return 1-o.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*o.easeInBounce(2*t):.5*o.easeOutBounce(2*t-1)+.5}};e.exports={effects:o},n.easingEffects=o},{42:42}],44:[function(t,e,i){"use strict";var a=t(42);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,o;return a.isObject(t)?(e=+t.top||0,i=+t.right||0,n=+t.bottom||0,o=+t.left||0):e=i=n=o=+t||0,{top:e,right:i,bottom:n,left:o,height:e+n,width:o+i}},resolve:function(t,e,i){var n,o,r;for(n=0,o=t.length;n<o;++n)if(void 0!==(r=t[n])&&(void 0!==e&&"function"==typeof r&&(r=r(e)),void 0!==i&&a.isArray(r)&&(r=r[i]),void 0!==r))return r}}},{42:42}],45:[function(t,e,i){"use strict";e.exports=t(42),e.exports.easing=t(43),e.exports.canvas=t(41),e.exports.options=t(44)},{41:41,42:42,43:43,44:44}],46:[function(t,e,i){e.exports={acquireContext:function(t){return t&&t.canvas&&(t=t.canvas),t&&t.getContext("2d")||null}}},{}],47:[function(t,e,i){"use strict";function s(t,e){var i=g.getStyle(t,e),n=i&&i.match(/^(\d+)(\.\d+)?px$/);return n?Number(n[1]):void 0}function f(t,e,i){t.addEventListener(e,i,o)}function a(t,e,i){t.removeEventListener(e,i,o)}function p(t,e,i,n,o){return{type:t,chart:e,native:o||null,x:void 0!==i?i:null,y:void 0!==n?n:null}}function n(e,t,i){var n,o,r,a,s,l,c,u,h=e[m]||(e[m]={}),d=h.resizer=function(t){var e=document.createElement("div"),i=v+"size-monitor",n="position:absolute;left:0;top:0;right:0;bottom:0;overflow:hidden;pointer-events:none;visibility:hidden;z-index:-1;";e.style.cssText=n,e.className=i,e.innerHTML='<div class="'+i+'-expand" style="'+n+'"><div style="position:absolute;width:1000000px;height:1000000px;left:0;top:0"></div></div><div class="'+i+'-shrink" style="'+n+'"><div style="position:absolute;width:200%;height:200%;left:0; top:0"></div></div>';var o=e.childNodes[0],r=e.childNodes[1];e._reset=function(){o.scrollLeft=1e6,o.scrollTop=1e6,r.scrollLeft=1e6,r.scrollTop=1e6};var a=function(){e._reset(),t()};return f(o,"scroll",a.bind(o,"expand")),f(r,"scroll",a.bind(r,"shrink")),e}((r=!(n=function(){if(h.resizer)return t(p("resize",i))}),a=[],function(){a=Array.prototype.slice.call(arguments),o=o||this,r||(r=!0,g.requestAnimFrame.call(window,function(){r=!1,n.apply(o,a)}))}));l=function(){if(h.resizer){var t=e.parentNode;t&&t!==d.parentNode&&t.insertBefore(d,t.firstChild),d._reset()}},c=(s=e)[m]||(s[m]={}),u=c.renderProxy=function(t){t.animationName===y&&l()},g.each(_,function(t){f(s,t,u)}),c.reflow=!!s.offsetParent,s.classList.add(b)}function r(t){var e,i,n,o=t[m]||{},r=o.resizer;delete o.resizer,i=(e=t)[m]||{},(n=i.renderProxy)&&(g.each(_,function(t){a(e,t,n)}),delete i.renderProxy),e.classList.remove(b),r&&r.parentNode&&r.parentNode.removeChild(r)}var g=t(45),m="$chartjs",v="chartjs-",b=v+"render-monitor",y=v+"render-animation",_=["animationstart","webkitAnimationStart"],l={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},o=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("e",null,e)}catch(t){}return t}()&&{passive:!0};e.exports={_enabled:"undefined"!=typeof window&&"undefined"!=typeof document,initialize:function(){var t,e,i,n="from{opacity:0.99}to{opacity:1}";e="@-webkit-keyframes "+y+"{"+n+"}@keyframes "+y+"{"+n+"}."+b+"{-webkit-animation:"+y+" 0.001s;animation:"+y+" 0.001s;}",i=(t=this)._style||document.createElement("style"),t._style||(e="/* Chart.js */\n"+e,(t._style=i).setAttribute("type","text/css"),document.getElementsByTagName("head")[0].appendChild(i)),i.appendChild(document.createTextNode(e))},acquireContext:function(t,e){"string"==typeof t?t=document.getElementById(t):t.length&&(t=t[0]),t&&t.canvas&&(t=t.canvas);var i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function(t,e){var i=t.style,n=t.getAttribute("height"),o=t.getAttribute("width");if(t[m]={initial:{height:n,width:o,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",null===o||""===o){var r=s(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 a=s(t,"height");void 0!==r&&(t.height=a)}}(t,e),i):null},releaseContext:function(t){var i=t.canvas;if(i[m]){var n=i[m].initial;["height","width"].forEach(function(t){var e=n[t];g.isNullOrUndef(e)?i.removeAttribute(t):i.setAttribute(t,e)}),g.each(n.style||{},function(t,e){i.style[e]=t}),i.width=i.width,delete i[m]}},addEventListener:function(r,t,a){var e=r.canvas;if("resize"!==t){var i=a[m]||(a[m]={});f(e,t,(i.proxies||(i.proxies={}))[r.id+"_"+t]=function(t){var e,i,n,o;a((i=r,n=l[(e=t).type]||e.type,o=g.getRelativePosition(e,i),p(n,i,o.x,o.y,e)))})}else n(e,a,r)},removeEventListener:function(t,e,i){var n=t.canvas;if("resize"!==e){var o=((i[m]||{}).proxies||{})[t.id+"_"+e];o&&a(n,e,o)}else r(n)}},g.addEvent=f,g.removeEvent=a},{45:45}],48:[function(t,e,i){"use strict";var n=t(45),o=t(46),r=t(47),a=r._enabled?r:o;e.exports=n.extend({initialize:function(){},acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},a)},{45:45,46:46,47:47}],49:[function(t,e,i){"use strict";var c=t(25),m=t(40),u=t(45);c._set("global",{plugins:{filler:{propagate:!0}}}),e.exports=function(){function d(t,e,i){var n,o=t._model||{},r=o.fill;if(void 0===r&&(r=!!o.backgroundColor),!1===r||null===r)return!1;if(!0===r)return"origin";if(n=parseFloat(r,10),isFinite(n)&&Math.floor(n)===n)return"-"!==r[0]&&"+"!==r[0]||(n=e+n),!(n===e||n<0||i<=n)&&n;switch(r){case"bottom":return"start";case"top":return"end";case"zero":return"origin";case"origin":case"start":case"end":return r;default:return!1}}function f(t){var e,i=t.el._model||{},n=t.el._scale||{},o=t.fill,r=null;if(isFinite(o))return null;if("start"===o?r=void 0===i.scaleBottom?n.bottom:i.scaleBottom:"end"===o?r=void 0===i.scaleTop?n.top:i.scaleTop:void 0!==i.scaleZero?r=i.scaleZero:n.getBasePosition?r=n.getBasePosition():n.getBasePixel&&(r=n.getBasePixel()),null!=r){if(void 0!==r.x&&void 0!==r.y)return r;if("number"==typeof r&&isFinite(r))return{x:(e=n.isHorizontal())?r:null,y:e?null:r}}return null}function p(t,e,i){var n,o=t[e].fill,r=[e];if(!i)return o;for(;!1!==o&&-1===r.indexOf(o);){if(!isFinite(o))return o;if(!(n=t[o]))return!1;if(n.visible)return o;r.push(o),o=n.fill}return!1}function y(t){return t&&!t.skip}function _(t,e,i,n,o){var r;if(n&&o){for(t.moveTo(e[0].x,e[0].y),r=1;r<n;++r)u.canvas.lineTo(t,e[r-1],e[r]);for(t.lineTo(i[o-1].x,i[o-1].y),r=o-1;0<r;--r)u.canvas.lineTo(t,i[r],i[r-1],!0)}}var g={dataset:function(t){var e=t.fill,i=t.chart,n=i.getDatasetMeta(e),o=n&&i.isDatasetVisible(e)&&n.dataset._children||[],r=o.length||0;return r?function(t,e){return e<r&&o[e]._view||null}:null},boundary:function(t){var e=t.boundary,i=e?e.x:null,n=e?e.y:null;return function(t){return{x:null===i?t.x:i,y:null===n?t.y:n}}}};return{id:"filler",afterDatasetsUpdate:function(t,e){var i,n,o,r,a,s,l,c=(t.data.datasets||[]).length,u=e.propagate,h=[];for(n=0;n<c;++n)r=null,(o=(i=t.getDatasetMeta(n)).dataset)&&o._model&&o instanceof m.Line&&(r={visible:t.isDatasetVisible(n),fill:d(o,n,c),chart:t,el:o}),i.$filler=r,h.push(r);for(n=0;n<c;++n)(r=h[n])&&(r.fill=p(h,n,u),r.boundary=f(r),r.mapper=(l=void 0,s=(a=r).fill,!(l="dataset")===s?null:(isFinite(s)||(l="boundary"),g[l](a))))},beforeDatasetDraw:function(t,e){var i=e.meta.$filler;if(i){var n=t.ctx,o=i.el,r=o._view,a=o._children||[],s=i.mapper,l=r.backgroundColor||c.global.defaultColor;s&&l&&a.length&&(u.canvas.clipArea(n,t.chartArea),function(t,e,i,n,o,r){var a,s,l,c,u,h,d,f=e.length,p=n.spanGaps,g=[],m=[],v=0,b=0;for(t.beginPath(),a=0,s=f+!!r;a<s;++a)u=i(c=e[l=a%f]._view,l,n),h=y(c),d=y(u),h&&d?(v=g.push(c),b=m.push(u)):v&&b&&(p?(h&&g.push(c),d&&m.push(u)):(_(t,g,m,v,b),v=b=0,g=[],m=[]));_(t,g,m,v,b),t.closePath(),t.fillStyle=o,t.fill()}(n,a,s,r,l,o._loop),u.canvas.unclipArea(n))}}}}},{25:25,40:40,45:45}],50:[function(t,e,i){"use strict";var D=t(25),a=t(26),A=t(45);D._set("global",{legend:{display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(t,e){var i=e.datasetIndex,n=this.chart,o=n.getDatasetMeta(i);o.hidden=null===o.hidden?!n.data.datasets[i].hidden:null,n.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(i){var t=i.data;return A.isArray(t.datasets)?t.datasets.map(function(t,e){return{text:t.label,fillStyle:A.isArray(t.backgroundColor)?t.backgroundColor[0]:t.backgroundColor,hidden:!i.isDatasetVisible(e),lineCap:t.borderCapStyle,lineDash:t.borderDash,lineDashOffset:t.borderDashOffset,lineJoin:t.borderJoinStyle,lineWidth:t.borderWidth,strokeStyle:t.borderColor,pointStyle:t.pointStyle,datasetIndex:e}},this):[]}}},legendCallback:function(t){var e=[];e.push('<ul class="'+t.id+'-legend">');for(var i=0;i<t.data.datasets.length;i++)e.push('<li><span style="background-color:'+t.data.datasets[i].backgroundColor+'"></span>'),t.data.datasets[i].label&&e.push(t.data.datasets[i].label),e.push("</li>");return e.push("</ul>"),e.join("")}}),e.exports=function(n){function T(t,e){return t.usePointStyle?e*Math.SQRT2:t.boxWidth}function o(t,e){var i=new n.Legend({ctx:t.ctx,options:e,chart:t});r.configure(t,i,e),r.addBox(t,i),t.legend=i}var r=n.layoutService,t=A.noop;return n.Legend=a.extend({initialize:function(t){A.extend(this,t),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:t,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:t,beforeSetDimensions:t,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:t,beforeBuildLabels:t,buildLabels:function(){var e=this,i=e.options.labels||{},t=A.callback(i.generateLabels,[e.chart],e)||[];i.filter&&(t=t.filter(function(t){return i.filter(t,e.chart.data)})),e.options.reverse&&t.reverse(),e.legendItems=t},afterBuildLabels:t,beforeFit:t,fit:function(){var n=this,t=n.options,o=t.labels,e=t.display,r=n.ctx,i=D.global,a=A.valueOrDefault,s=a(o.fontSize,i.defaultFontSize),l=a(o.fontStyle,i.defaultFontStyle),c=a(o.fontFamily,i.defaultFontFamily),u=A.fontString(s,l,c),h=n.legendHitBoxes=[],d=n.minSize,f=n.isHorizontal();if(d.height=f?(d.width=n.maxWidth,e?10:0):(d.width=e?10:0,n.maxHeight),e)if(r.font=u,f){var p=n.lineWidths=[0],g=n.legendItems.length?s+o.padding:0;r.textAlign="left",r.textBaseline="top",A.each(n.legendItems,function(t,e){var i=T(o,s)+s/2+r.measureText(t.text).width;p[p.length-1]+i+o.padding>=n.width&&(g+=s+o.padding,p[p.length]=n.left),h[e]={left:0,top:0,width:i,height:s},p[p.length-1]+=i+o.padding}),d.height+=g}else{var m=o.padding,v=n.columnWidths=[],b=o.padding,y=0,_=0,x=s+m;A.each(n.legendItems,function(t,e){var i=T(o,s)+s/2+r.measureText(t.text).width;_+x>d.height&&(b+=y+o.padding,v.push(y),_=y=0),y=Math.max(y,i),_+=x,h[e]={left:0,top:0,width:i,height:s}}),b+=y,v.push(y),d.width+=b}n.width=d.width,n.height=d.height},afterFit:t,isHorizontal:function(){return"top"===this.options.position||"bottom"===this.options.position},draw:function(){var h=this,d=h.options,f=d.labels,p=D.global,g=p.elements.line,m=h.width,v=h.lineWidths;if(d.display){var b,y=h.ctx,_=A.valueOrDefault,t=_(f.fontColor,p.defaultFontColor),x=_(f.fontSize,p.defaultFontSize),e=_(f.fontStyle,p.defaultFontStyle),i=_(f.fontFamily,p.defaultFontFamily),n=A.fontString(x,e,i);y.textAlign="left",y.textBaseline="middle",y.lineWidth=.5,y.strokeStyle=t,y.fillStyle=t,y.font=n;var w=T(f,x),k=h.legendHitBoxes,C=h.isHorizontal();b=C?{x:h.left+(m-v[0])/2,y:h.top+f.padding,line:0}:{x:h.left+f.padding,y:h.top+f.padding,line:0};var S=x+f.padding;A.each(h.legendItems,function(t,e){var i,n,o,r,a,s=y.measureText(t.text).width,l=w+x/2+s,c=b.x,u=b.y;C?m<=c+l&&(u=b.y+=S,b.line++,c=b.x=h.left+(m-v[b.line])/2):u+S>h.bottom&&(c=b.x=c+h.columnWidths[b.line]+f.padding,u=b.y=h.top+f.padding,b.line++),function(t,e,i){if(!(isNaN(w)||w<=0)){y.save(),y.fillStyle=_(i.fillStyle,p.defaultColor),y.lineCap=_(i.lineCap,g.borderCapStyle),y.lineDashOffset=_(i.lineDashOffset,g.borderDashOffset),y.lineJoin=_(i.lineJoin,g.borderJoinStyle),y.lineWidth=_(i.lineWidth,g.borderWidth),y.strokeStyle=_(i.strokeStyle,p.defaultColor);var n=0===_(i.lineWidth,g.borderWidth);if(y.setLineDash&&y.setLineDash(_(i.lineDash,g.borderDash)),d.labels&&d.labels.usePointStyle){var o=x*Math.SQRT2/2,r=o/Math.SQRT2,a=t+r,s=e+r;A.canvas.drawPoint(y,i.pointStyle,o,a,s)}else n||y.strokeRect(t,e,w,x),y.fillRect(t,e,w,x);y.restore()}}(c,u,t),k[e].left=c,k[e].top=u,i=t,n=s,r=w+(o=x/2)+c,a=u+o,y.fillText(i.text,r,a),i.hidden&&(y.beginPath(),y.lineWidth=2,y.moveTo(r,a),y.lineTo(r+n,a),y.stroke()),C?b.x+=l+f.padding:b.y+=S})}},handleEvent:function(t){var e=this,i=e.options,n="mouseup"===t.type?"click":t.type,o=!1;if("mousemove"===n){if(!i.onHover)return}else{if("click"!==n)return;if(!i.onClick)return}var r=t.x,a=t.y;if(r>=e.left&&r<=e.right&&a>=e.top&&a<=e.bottom)for(var s=e.legendHitBoxes,l=0;l<s.length;++l){var c=s[l];if(r>=c.left&&r<=c.left+c.width&&a>=c.top&&a<=c.top+c.height){if("click"===n){i.onClick.call(e,t.native,e.legendItems[l]),o=!0;break}if("mousemove"===n){i.onHover.call(e,t.native,e.legendItems[l]),o=!0;break}}}return o}}),{id:"legend",beforeInit:function(t){var e=t.options.legend;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.legend,i=t.legend;e?(A.mergeIf(e,D.global.legend),i?(r.configure(t,i,e),i.options=e):o(t,e)):i&&(r.removeBox(t,i),delete t.legend)},afterEvent:function(t,e){var i=t.legend;i&&i.handleEvent(e)}}}},{25:25,26:26,45:45}],51:[function(t,e,i){"use strict";var x=t(25),a=t(26),w=t(45);x._set("global",{title:{display:!1,fontStyle:"bold",fullWidth:!0,lineHeight:1.2,padding:10,position:"top",text:"",weight:2e3}}),e.exports=function(n){function o(t,e){var i=new n.Title({ctx:t.ctx,options:e,chart:t});r.configure(t,i,e),r.addBox(t,i),t.titleBlock=i}var r=n.layoutService,t=w.noop;return n.Title=a.extend({initialize:function(t){w.extend(this,t),this.legendHitBoxes=[]},beforeUpdate:t,update:function(t,e,i){var n=this;return n.beforeUpdate(),n.maxWidth=t,n.maxHeight=e,n.margins=i,n.beforeSetDimensions(),n.setDimensions(),n.afterSetDimensions(),n.beforeBuildLabels(),n.buildLabels(),n.afterBuildLabels(),n.beforeFit(),n.fit(),n.afterFit(),n.afterUpdate(),n.minSize},afterUpdate:t,beforeSetDimensions:t,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:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=w.valueOrDefault,e=this.options,i=e.display,n=t(e.fontSize,x.global.defaultFontSize),o=this.minSize,r=w.isArray(e.text)?e.text.length:1,a=w.options.toLineHeight(e.lineHeight,n),s=i?r*a+2*e.padding:0;this.isHorizontal()?(o.width=this.maxWidth,o.height=s):(o.width=s,o.height=this.maxHeight),this.width=o.width,this.height=o.height},afterFit:t,isHorizontal:function(){var t=this.options.position;return"top"===t||"bottom"===t},draw:function(){var t=this.ctx,e=w.valueOrDefault,i=this.options,n=x.global;if(i.display){var o,r,a,s=e(i.fontSize,n.defaultFontSize),l=e(i.fontStyle,n.defaultFontStyle),c=e(i.fontFamily,n.defaultFontFamily),u=w.fontString(s,l,c),h=w.options.toLineHeight(i.lineHeight,s),d=h/2+i.padding,f=0,p=this.top,g=this.left,m=this.bottom,v=this.right;t.fillStyle=e(i.fontColor,n.defaultFontColor),t.font=u,this.isHorizontal()?(r=g+(v-g)/2,a=p+d,o=v-g):(r="left"===i.position?g+d:v-d,a=p+(m-p)/2,o=m-p,f=Math.PI*("left"===i.position?-.5:.5)),t.save(),t.translate(r,a),t.rotate(f),t.textAlign="center",t.textBaseline="middle";var b=i.text;if(w.isArray(b))for(var y=0,_=0;_<b.length;++_)t.fillText(b[_],0,y,o),y+=h;else t.fillText(b,0,0,o);t.restore()}}}),{id:"title",beforeInit:function(t){var e=t.options.title;e&&o(t,e)},beforeUpdate:function(t){var e=t.options.title,i=t.titleBlock;e?(w.mergeIf(e,x.global.title),i?(r.configure(t,i,e),i.options=e):o(t,e)):i&&(n.layoutService.removeBox(t,i),delete t.titleBlock)}}}},{25:25,26:26,45:45}],52:[function(t,e,i){"use strict";e.exports=function(t){var e=t.Scale.extend({getLabels:function(){var t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels},determineDataLimits:function(){var t,e=this,i=e.getLabels();e.minIndex=0,e.maxIndex=i.length-1,void 0!==e.options.ticks.min&&(t=i.indexOf(e.options.ticks.min),e.minIndex=-1!==t?t:e.minIndex),void 0!==e.options.ticks.max&&(t=i.indexOf(e.options.ticks.max),e.maxIndex=-1!==t?t:e.maxIndex),e.min=i[e.minIndex],e.max=i[e.maxIndex]},buildTicks:function(){var t=this.getLabels();this.ticks=0===this.minIndex&&this.maxIndex===t.length-1?t:t.slice(this.minIndex,this.maxIndex+1)},getLabelForIndex:function(t,e){var i=this.chart.data,n=this.isHorizontal();return i.yLabels&&!n?this.getRightValue(i.datasets[e].data[t]):this.ticks[t-this.minIndex]},getPixelForValue:function(t,e){var i,n=this,o=n.options.offset,r=Math.max(n.maxIndex+1-n.minIndex-(o?0:1),1);if(null!=t&&(i=n.isHorizontal()?t.x:t.y),void 0!==i||void 0!==t&&isNaN(e)){t=i||t;var a=n.getLabels().indexOf(t);e=-1!==a?a:e}if(n.isHorizontal()){var s=n.width/r,l=s*(e-n.minIndex);return o&&(l+=s/2),n.left+Math.round(l)}var c=n.height/r,u=c*(e-n.minIndex);return o&&(u+=c/2),n.top+Math.round(u)},getPixelForTick:function(t){return this.getPixelForValue(this.ticks[t],t+this.minIndex,null)},getValueForPixel:function(t){var e=this.options.offset,i=Math.max(this._ticks.length-(e?0:1),1),n=this.isHorizontal(),o=(n?this.width:this.height)/i;return t-=n?this.left:this.top,e&&(t-=o/2),(t<=0?0:Math.round(t/o))+this.minIndex},getBasePixel:function(){return this.bottom}});t.scaleService.registerScaleType("category",e,{position:"bottom"})}},{}],53:[function(t,e,i){"use strict";var n=t(25),h=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.linear}},i=t.LinearScaleBase.extend({determineDataLimits:function(){function a(t){return e?t.xAxisID===s.id:t.yAxisID===s.id}var s=this,l=s.options,c=s.chart,t=c.data.datasets,e=s.isHorizontal();s.min=null,s.max=null;var n=l.stacked;if(void 0===n&&h.each(t,function(t,e){if(!n){var i=c.getDatasetMeta(e);c.isDatasetVisible(e)&&a(i)&&void 0!==i.stack&&(n=!0)}}),l.stacked||n){var u={};h.each(t,function(t,e){var n=c.getDatasetMeta(e),i=[n.type,void 0===l.stacked&&void 0===n.stack?e:"",n.stack].join(".");void 0===u[i]&&(u[i]={positiveValues:[],negativeValues:[]});var o=u[i].positiveValues,r=u[i].negativeValues;c.isDatasetVisible(e)&&a(n)&&h.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||n.data[e].hidden||(o[e]=o[e]||0,r[e]=r[e]||0,l.relativePoints?o[e]=100:i<0?r[e]+=i:o[e]+=i)})}),h.each(u,function(t){var e=t.positiveValues.concat(t.negativeValues),i=h.min(e),n=h.max(e);s.min=null===s.min?i:Math.min(s.min,i),s.max=null===s.max?n:Math.max(s.max,n)})}else h.each(t,function(t,e){var n=c.getDatasetMeta(e);c.isDatasetVisible(e)&&a(n)&&h.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||n.data[e].hidden||(null===s.min?s.min=i:i<s.min&&(s.min=i),null===s.max?s.max=i:i>s.max&&(s.max=i))})});s.min=isFinite(s.min)&&!isNaN(s.min)?s.min:0,s.max=isFinite(s.max)&&!isNaN(s.max)?s.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var t,e=this.options.ticks;if(this.isHorizontal())t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.width/50));else{var i=h.valueOrDefault(e.fontSize,n.global.defaultFontSize);t=Math.min(e.maxTicksLimit?e.maxTicksLimit:11,Math.ceil(this.height/(2*i)))}return t},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForValue:function(t){var e,i=this.start,n=+this.getRightValue(t),o=this.end-i;return e=this.isHorizontal()?this.left+this.width/o*(n-i):this.bottom-this.height/o*(n-i),Math.round(e)},getValueForPixel:function(t){var e=this.isHorizontal(),i=e?this.width:this.height,n=(e?t-this.left:this.bottom-t)/i;return this.start+(this.end-this.start)*n},getPixelForTick:function(t){return this.getPixelForValue(this.ticksAsNumbers[t])}});t.scaleService.registerScaleType("linear",i,e)}},{25:25,34:34,45:45}],54:[function(t,e,i){"use strict";var a=t(45),r=t(34);e.exports=function(e){var t=a.noop;e.LinearScaleBase=e.Scale.extend({getRightValue:function(t){return"string"==typeof t?+t:e.Scale.prototype.getRightValue.call(this,t)},handleTickRangeOptions:function(){var t=this,e=t.options.ticks;if(e.beginAtZero){var i=a.sign(t.min),n=a.sign(t.max);i<0&&n<0?t.max=0:0<i&&0<n&&(t.min=0)}var o=void 0!==e.min||void 0!==e.suggestedMin,r=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)),o!==r&&t.min>=t.max&&(o?t.max=t.min+1:t.min=t.max-1),t.min===t.max&&(t.max++,e.beginAtZero||t.min--)},getTickLimit:t,handleDirectionalChanges:t,buildTicks:function(){var t=this,e=t.options.ticks,i=t.getTickLimit(),n={maxTicks:i=Math.max(2,i),min:e.min,max:e.max,stepSize:a.valueOrDefault(e.fixedStepSize,e.stepSize)},o=t.ticks=r.generators.linear(n,t);t.handleDirectionalChanges(),t.max=a.max(o),t.min=a.min(o),e.reverse?(o.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.ticksAsNumbers=this.ticks.slice(),this.zeroLineIndex=this.ticks.indexOf(0),e.Scale.prototype.convertTicksToLabels.call(this)}})}},{34:34,45:45}],55:[function(t,e,i){"use strict";var h=t(45),o=t(34);e.exports=function(t){var e={position:"left",ticks:{callback:o.formatters.logarithmic}},i=t.Scale.extend({determineDataLimits:function(){function a(t){return n?t.xAxisID===s.id:t.yAxisID===s.id}var s=this,l=s.options,t=l.ticks,c=s.chart,e=c.data.datasets,i=h.valueOrDefault,n=s.isHorizontal();s.min=null,s.max=null,s.minNotZero=null;var o=l.stacked;if(void 0===o&&h.each(e,function(t,e){if(!o){var i=c.getDatasetMeta(e);c.isDatasetVisible(e)&&a(i)&&void 0!==i.stack&&(o=!0)}}),l.stacked||o){var u={};h.each(e,function(t,e){var o=c.getDatasetMeta(e),r=[o.type,void 0===l.stacked&&void 0===o.stack?e:"",o.stack].join(".");c.isDatasetVisible(e)&&a(o)&&(void 0===u[r]&&(u[r]=[]),h.each(t.data,function(t,e){var i=u[r],n=+s.getRightValue(t);isNaN(n)||o.data[e].hidden||(i[e]=i[e]||0,l.relativePoints?i[e]=100:i[e]+=n)}))}),h.each(u,function(t){var e=h.min(t),i=h.max(t);s.min=null===s.min?e:Math.min(s.min,e),s.max=null===s.max?i:Math.max(s.max,i)})}else h.each(e,function(t,e){var n=c.getDatasetMeta(e);c.isDatasetVisible(e)&&a(n)&&h.each(t.data,function(t,e){var i=+s.getRightValue(t);isNaN(i)||n.data[e].hidden||(null===s.min?s.min=i:i<s.min&&(s.min=i),null===s.max?s.max=i:i>s.max&&(s.max=i),0!==i&&(null===s.minNotZero||i<s.minNotZero)&&(s.minNotZero=i))})});s.min=i(t.min,s.min),s.max=i(t.max,s.max),s.min===s.max&&(0!==s.min&&null!==s.min?(s.min=Math.pow(10,Math.floor(h.log10(s.min))-1),s.max=Math.pow(10,Math.floor(h.log10(s.max))+1)):(s.min=1,s.max=10))},buildTicks:function(){var t=this,e=t.options.ticks,i={min:e.min,max:e.max},n=t.ticks=o.generators.logarithmic(i,t);t.isHorizontal()||n.reverse(),t.max=h.max(n),t.min=h.min(n),e.reverse?(n.reverse(),t.start=t.max,t.end=t.min):(t.start=t.min,t.end=t.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),t.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},getPixelForTick:function(t){return this.getPixelForValue(this.tickValues[t])},getPixelForValue:function(t){var e,i,n=this,o=n.start,r=+n.getRightValue(t),a=n.options.ticks;return n.isHorizontal()?(i=h.log10(n.end)-h.log10(o),0===r?n.left:(e=n.width,n.left+e/i*(h.log10(r)-h.log10(o)))):(e=n.height,0!==o||a.reverse?0===n.end&&a.reverse?(i=h.log10(n.start)-h.log10(n.minNotZero),r===n.end?n.top:r===n.minNotZero?n.top+.02*e:n.top+.02*e+.98*e/i*(h.log10(r)-h.log10(n.minNotZero))):0===r?a.reverse?n.top:n.bottom:(i=h.log10(n.end)-h.log10(o),e=n.height,n.bottom-e/i*(h.log10(r)-h.log10(o))):(i=h.log10(n.end)-h.log10(n.minNotZero),r===o?n.bottom:r===n.minNotZero?n.bottom-.02*e:n.bottom-.02*e-.98*e/i*(h.log10(r)-h.log10(n.minNotZero))))},getValueForPixel:function(t){var e,i=h.log10(this.end)-h.log10(this.start);return this.isHorizontal()?(e=this.width,this.start*Math.pow(10,(t-this.left)*i/e)):(e=this.height,Math.pow(10,(this.bottom-t)*i/e)/this.start)}});t.scaleService.registerScaleType("logarithmic",i,e)}},{34:34,45:45}],56:[function(t,e,i){"use strict";var n=t(25),w=t(45),o=t(34);e.exports=function(t){function b(t){var e=t.options;return e.angleLines.display||e.pointLabels.display?t.chart.data.labels.length:0}function y(t){var e=t.options.pointLabels,i=w.valueOrDefault(e.fontSize,x.defaultFontSize),n=w.valueOrDefault(e.fontStyle,x.defaultFontStyle),o=w.valueOrDefault(e.fontFamily,x.defaultFontFamily);return{size:i,style:n,family:o,font:w.fontString(i,n,o)}}function m(t,e,i,n,o){return t===n||t===o?{start:e-i/2,end:e+i/2}:t<n||o<t?{start:e-i-5,end:e}:{start:e,end:e+i+5}}function _(t,e,i,n){if(w.isArray(e))for(var o=i.y,r=1.5*n,a=0;a<e.length;++a)t.fillText(e[a],i.x,o),o+=r;else t.fillText(e,i.x,i.y)}function s(t){return w.isNumber(t)?t:0}var x=n.global,e={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1},gridLines:{circular:!1},ticks:{showLabelBackdrop:!0,backdropColor:"rgba(255,255,255,0.75)",backdropPaddingY:2,backdropPaddingX:2,callback:o.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(t){return t}}},i=t.LinearScaleBase.extend({setDimensions:function(){var t=this,e=t.options,i=e.ticks;t.width=t.maxWidth,t.height=t.maxHeight,t.xCenter=Math.round(t.width/2),t.yCenter=Math.round(t.height/2);var n=w.min([t.height,t.width]),o=w.valueOrDefault(i.fontSize,x.defaultFontSize);t.drawingArea=e.display?n/2-(o/2+i.backdropPaddingY):n/2},determineDataLimits:function(){var o=this,i=o.chart,r=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;w.each(i.data.datasets,function(t,e){if(i.isDatasetVisible(e)){var n=i.getDatasetMeta(e);w.each(t.data,function(t,e){var i=+o.getRightValue(t);isNaN(i)||n.data[e].hidden||(r=Math.min(i,r),a=Math.max(i,a))})}}),o.min=r===Number.POSITIVE_INFINITY?0:r,o.max=a===Number.NEGATIVE_INFINITY?0:a,o.handleTickRangeOptions()},getTickLimit:function(){var t=this.options.ticks,e=w.valueOrDefault(t.fontSize,x.defaultFontSize);return Math.min(t.maxTicksLimit?t.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*e)))},convertTicksToLabels:function(){t.LinearScaleBase.prototype.convertTicksToLabels.call(this),this.pointLabels=this.chart.data.labels.map(this.options.pointLabels.callback,this)},getLabelForIndex:function(t,e){return+this.getRightValue(this.chart.data.datasets[e].data[t])},fit:function(){var t,e;this.options.pointLabels.display?function(t){var e,i,n,o=y(t),r=Math.min(t.height/2,t.width/2),a={r:t.width,l:0,t:t.height,b:0},s={};t.ctx.font=o.font,t._pointLabelSizes=[];var l,c,u,h=b(t);for(e=0;e<h;e++){n=t.getPointPosition(e,r),l=t.ctx,c=o.size,u=t.pointLabels[e]||"",i=w.isArray(u)?{w:w.longestText(l,l.font,u),h:u.length*c+1.5*(u.length-1)*c}:{w:l.measureText(u).width,h:c},t._pointLabelSizes[e]=i;var d=t.getIndexAngle(e),f=w.toDegrees(d)%360,p=m(f,n.x,i.w,0,180),g=m(f,n.y,i.h,90,270);p.start<a.l&&(a.l=p.start,s.l=d),p.end>a.r&&(a.r=p.end,s.r=d),g.start<a.t&&(a.t=g.start,s.t=d),g.end>a.b&&(a.b=g.end,s.b=d)}t.setReductions(r,a,s)}(this):(t=this,e=Math.min(t.height/2,t.width/2),t.drawingArea=Math.round(e),t.setCenterPoint(0,0,0,0))},setReductions:function(t,e,i){var n=e.l/Math.sin(i.l),o=Math.max(e.r-this.width,0)/Math.sin(i.r),r=-e.t/Math.cos(i.t),a=-Math.max(e.b-this.height,0)/Math.cos(i.b);n=s(n),o=s(o),r=s(r),a=s(a),this.drawingArea=Math.min(Math.round(t-(n+o)/2),Math.round(t-(r+a)/2)),this.setCenterPoint(n,o,r,a)},setCenterPoint:function(t,e,i,n){var o=this,r=o.width-e-o.drawingArea,a=t+o.drawingArea,s=i+o.drawingArea,l=o.height-n-o.drawingArea;o.xCenter=Math.round((a+r)/2+o.left),o.yCenter=Math.round((s+l)/2+o.top)},getIndexAngle:function(t){return t*(2*Math.PI/b(this))+(this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0)*Math.PI*2/360},getDistanceFromCenterForValue:function(t){if(null===t)return 0;var e=this.drawingArea/(this.max-this.min);return this.options.ticks.reverse?(this.max-t)*e:(t-this.min)*e},getPointPosition:function(t,e){var i=this.getIndexAngle(t)-Math.PI/2;return{x:Math.round(Math.cos(i)*e)+this.xCenter,y:Math.round(Math.sin(i)*e)+this.yCenter}},getPointPositionForValue:function(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))},getBasePosition:function(){var t=this.min,e=this.max;return this.getPointPositionForValue(0,this.beginAtZero?0:t<0&&e<0?e:0<t&&0<e?t:0)},draw:function(){var r=this,t=r.options,a=t.gridLines,s=t.ticks,l=w.valueOrDefault;if(t.display){var c=r.ctx,u=this.getIndexAngle(0),h=l(s.fontSize,x.defaultFontSize),e=l(s.fontStyle,x.defaultFontStyle),i=l(s.fontFamily,x.defaultFontFamily),d=w.fontString(h,e,i);w.each(r.ticks,function(t,e){if(0<e||s.reverse){var i=r.getDistanceFromCenterForValue(r.ticksAsNumbers[e]);if(a.display&&0!==e&&function(t,e,i,n){var o=t.ctx;if(o.strokeStyle=w.valueAtIndexOrDefault(e.color,n-1),o.lineWidth=w.valueAtIndexOrDefault(e.lineWidth,n-1),t.options.gridLines.circular)o.beginPath(),o.arc(t.xCenter,t.yCenter,i,0,2*Math.PI),o.closePath(),o.stroke();else{var r=b(t);if(0===r)return;o.beginPath();var a=t.getPointPosition(0,i);o.moveTo(a.x,a.y);for(var s=1;s<r;s++)a=t.getPointPosition(s,i),o.lineTo(a.x,a.y);o.closePath(),o.stroke()}}(r,a,i,e),s.display){var n=l(s.fontColor,x.defaultFontColor);if(c.font=d,c.save(),c.translate(r.xCenter,r.yCenter),c.rotate(u),s.showLabelBackdrop){var o=c.measureText(t).width;c.fillStyle=s.backdropColor,c.fillRect(-o/2-s.backdropPaddingX,-i-h/2-s.backdropPaddingY,o+2*s.backdropPaddingX,h+2*s.backdropPaddingY)}c.textAlign="center",c.textBaseline="middle",c.fillStyle=n,c.fillText(t,0,-i),c.restore()}}}),(t.angleLines.display||t.pointLabels.display)&&function(t){var e=t.ctx,i=w.valueOrDefault,n=t.options,o=n.angleLines,r=n.pointLabels;e.lineWidth=o.lineWidth,e.strokeStyle=o.color;var a,s,l,c,u=t.getDistanceFromCenterForValue(n.ticks.reverse?t.min:t.max),h=y(t);e.textBaseline="top";for(var d=b(t)-1;0<=d;d--){if(o.display){var f=t.getPointPosition(d,u);e.beginPath(),e.moveTo(t.xCenter,t.yCenter),e.lineTo(f.x,f.y),e.stroke(),e.closePath()}if(r.display){var p=t.getPointPosition(d,u+5),g=i(r.fontColor,x.defaultFontColor);e.font=h.font,e.fillStyle=g;var m=t.getIndexAngle(d),v=w.toDegrees(m);e.textAlign=0===(c=v)||180===c?"center":c<180?"left":"right",a=v,s=t._pointLabelSizes[d],l=p,90===a||270===a?l.y-=s.h/2:(270<a||a<90)&&(l.y-=s.h),_(e,t.pointLabels[d]||"",p,h.size)}}}(r)}}});t.scaleService.registerScaleType("radialLinear",i,e)}},{25:25,34:34,45:45}],57:[function(t,e,i){"use strict";function p(t,e){return t-e}function g(t){var e,i,n,o={},r=[];for(e=0,i=t.length;e<i;++e)o[n=t[e]]||(o[n]=!0,r.push(n));return r}function y(t,e,i,n){var o=function(t,e,i){for(var n,o,r,a=0,s=t.length-1;0<=a&&a<=s;){if(o=t[(n=a+s>>1)-1]||null,r=t[n],!o)return{lo:null,hi:r};if(r[e]<i)a=n+1;else{if(!(o[e]>i))return{lo:o,hi:r};s=n-1}}return{lo:r,hi:null}}(t,e,i),r=o.lo?o.hi?o.lo:t[t.length-2]:t[0],a=o.lo?o.hi?o.hi:t[t.length-1]:t[1],s=a[e]-r[e],l=s?(i-r[e])/s:0,c=(a[n]-r[n])*l;return r[n]+c}function a(t,e){var i=e.parser,n=e.parser||e.format;return"function"==typeof i?i(t):"string"==typeof t&&"string"==typeof n?k(t,n):(t instanceof k||(t=k(t)),t.isValid()?t:"function"==typeof n?n(t):t)}function _(t,e){if(m.isNullOrUndef(t))return null;var i=e.options.time,n=a(e.getRightValue(t),i);return n.isValid()?(i.round&&n.startOf(i.round),n.valueOf()):null}function x(t){for(var e=S.indexOf(t)+1,i=S.length;e<i;++e)if(C[S[e]].common)return S[e]}function w(t,e,i,n){var o,r=n.time,a=r.unit||function(t,e,i,n){var o,r,a,s=S.length;for(o=S.indexOf(t);o<s-1;++o)if(a=(r=C[S[o]]).steps?r.steps[r.steps.length-1]:b,r.common&&Math.ceil((i-e)/(a*r.size))<=n)return S[o];return S[s-1]}(r.minUnit,t,e,i),s=x(a),l=m.valueOrDefault(r.stepSize,r.unitStepSize),c="week"===a&&r.isoWeekday,u=n.ticks.major.enabled,h=C[a],d=k(t),f=k(e),p=[];for(l||(l=function(t,e,i,n){var o,r,a,s=e-t,l=C[i],c=l.size,u=l.steps;if(!u)return Math.ceil(s/((n||1)*c));for(o=0,r=u.length;o<r&&(a=u[o],!(Math.ceil(s/(c*a))<=n));++o);return a}(t,e,a,i)),c&&(d=d.isoWeekday(c),f=f.isoWeekday(c)),d=d.startOf(c?"day":a),(f=f.startOf(c?"day":a))<e&&f.add(1,a),o=k(d),u&&s&&!c&&!r.round&&(o.startOf(s),o.add(~~((d-o)/(h.size*l))*l,a));o<f;o.add(l,a))p.push(+o);return p.push(+o),p}var k=t(1);k="function"==typeof k?k:window.moment;var s=t(25),m=t(45),v=Number.MIN_SAFE_INTEGER||-9007199254740991,b=Number.MAX_SAFE_INTEGER||9007199254740991,C={millisecond:{common:!0,size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{common:!0,size:1e3,steps:[1,2,5,10,30]},minute:{common:!0,size:6e4,steps:[1,2,5,10,30]},hour:{common:!0,size:36e5,steps:[1,2,3,6,12]},day:{common:!0,size:864e5,steps:[1,2,5]},week:{common:!1,size:6048e5,steps:[1,2,3,4]},month:{common:!0,size:2628e6,steps:[1,2,3]},quarter:{common:!1,size:7884e6,steps:[1,2,3,4]},year:{common:!0,size:3154e7}},S=Object.keys(C);e.exports=function(e){var t=e.Scale.extend({initialize:function(){if(!k)throw new Error("Chart.js - Moment.js could not be found! You must include it before Chart.js to use the time scale. Download at https://momentjs.com");this.mergeTicksOptions(),e.Scale.prototype.initialize.call(this)},update:function(){var t=this.options;return t.time&&t.time.format&&console.warn("options.time.format is deprecated and replaced by options.time.parser."),e.Scale.prototype.update.apply(this,arguments)},getRightValue:function(t){return t&&void 0!==t.t&&(t=t.t),e.Scale.prototype.getRightValue.call(this,t)},determineDataLimits:function(){var t,e,i,n,o,r,a=this,s=a.chart,l=a.options.time,c=b,u=v,h=[],d=[],f=[];for(t=0,i=s.data.labels.length;t<i;++t)f.push(_(s.data.labels[t],a));for(t=0,i=(s.data.datasets||[]).length;t<i;++t)if(s.isDatasetVisible(t))if(o=s.data.datasets[t].data,m.isObject(o[0]))for(d[t]=[],e=0,n=o.length;e<n;++e)r=_(o[e],a),h.push(r),d[t][e]=r;else h.push.apply(h,f),d[t]=f.slice(0);else d[t]=[];f.length&&(f=g(f).sort(p),c=Math.min(c,f[0]),u=Math.max(u,f[f.length-1])),h.length&&(h=g(h).sort(p),c=Math.min(c,h[0]),u=Math.max(u,h[h.length-1])),c=_(l.min,a)||c,u=_(l.max,a)||u,c=c===b?+k().startOf("day"):c,u=u===v?+k().endOf("day")+1:u,a.min=Math.min(c,u),a.max=Math.max(c+1,u),a._horizontal=a.isHorizontal(),a._table=[],a._timestamps={data:h,datasets:d,labels:f}},buildTicks:function(){var t,e,i,n,o,r,a,s,l,c,u,h,d=this,f=d.min,p=d.max,g=d.options,m=g.time,v=[],b=[];switch(g.ticks.source){case"data":v=d._timestamps.data;break;case"labels":v=d._timestamps.labels;break;case"auto":default:v=w(f,p,d.getLabelCapacity(f),g)}for("ticks"===g.bounds&&v.length&&(f=v[0],p=v[v.length-1]),f=_(m.min,d)||f,p=_(m.max,d)||p,t=0,e=v.length;t<e;++t)(i=v[t])>=f&&i<=p&&b.push(i);return d.min=f,d.max=p,d._unit=m.unit||function(t,e,i,n){var o,r,a=k.duration(k(n).diff(k(i)));for(o=S.length-1;o>=S.indexOf(e);o--)if(r=S[o],C[r].common&&a.as(r)>=t.length)return r;return S[e?S.indexOf(e):0]}(b,m.minUnit,d.min,d.max),d._majorUnit=x(d._unit),d._table=function(t,e,i,n){if("linear"===n||!t.length)return[{time:e,pos:0},{time:i,pos:1}];var o,r,a,s,l,c=[],u=[e];for(o=0,r=t.length;o<r;++o)(s=t[o])>e&&s<i&&u.push(s);for(u.push(i),o=0,r=u.length;o<r;++o)l=u[o+1],a=u[o-1],s=u[o],void 0!==a&&void 0!==l&&Math.round((l+a)/2)===s||c.push({time:s,pos:o/(r-1)});return c}(d._timestamps.data,f,p,g.distribution),d._offsets=(n=d._table,o=b,r=f,a=p,h=u=0,(s=g).offset&&o.length&&(s.time.min||(l=1<o.length?o[1]:a,c=o[0],u=(y(n,"time",l,"pos")-y(n,"time",c,"pos"))/2),s.time.max||(l=o[o.length-1],c=1<o.length?o[o.length-2]:r,h=(y(n,"time",l,"pos")-y(n,"time",c,"pos"))/2)),{left:u,right:h}),function(t,e){var i,n,o,r,a=[];for(i=0,n=t.length;i<n;++i)o=t[i],r=!!e&&o===+k(o).startOf(e),a.push({value:o,major:r});return a}(b,d._majorUnit)},getLabelForIndex:function(t,e){var i=this.chart.data,n=this.options.time,o=i.labels&&t<i.labels.length?i.labels[t]:"",r=i.datasets[e].data[t];return m.isObject(r)&&(o=this.getRightValue(r)),n.tooltipFormat&&(o=a(o,n).format(n.tooltipFormat)),o},tickFormatFunction:function(t,e,i,n){var o=this.options,r=t.valueOf(),a=o.time.displayFormats,s=a[this._unit],l=this._majorUnit,c=a[l],u=t.clone().startOf(l).valueOf(),h=o.ticks.major,d=h.enabled&&l&&c&&r===u,f=t.format(n||(d?c:s)),p=d?h:o.ticks.minor,g=m.valueOrDefault(p.callback,p.userCallback);return g?g(f,e,i):f},convertTicksToLabels:function(t){var e,i,n=[];for(e=0,i=t.length;e<i;++e)n.push(this.tickFormatFunction(k(t[e].value),e,t));return n},getPixelForOffset:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,o=y(e._table,"time",t,"pos");return n+i*(e._offsets.left+o)/(e._offsets.left+1+e._offsets.right)},getPixelForValue:function(t,e,i){var n=null;if(void 0!==e&&void 0!==i&&(n=this._timestamps.datasets[i][e]),null===n&&(n=_(t,this)),null!==n)return this.getPixelForOffset(n)},getPixelForTick:function(t){var e=this.getTicks();return 0<=t&&t<e.length?this.getPixelForOffset(e[t].value):null},getValueForPixel:function(t){var e=this,i=e._horizontal?e.width:e.height,n=e._horizontal?e.left:e.top,o=(i?(t-n)/i:0)*(e._offsets.left+1+e._offsets.left)-e._offsets.right,r=y(e._table,"pos",o,"time");return k(r)},getLabelWidth:function(t){var e=this.options.ticks,i=this.ctx.measureText(t).width,n=m.toRadians(e.maxRotation),o=Math.cos(n),r=Math.sin(n);return i*o+m.valueOrDefault(e.fontSize,s.global.defaultFontSize)*r},getLabelCapacity:function(t){var e=this.options.time.displayFormats.millisecond,i=this.tickFormatFunction(k(t),0,[],e),n=this.getLabelWidth(i),o=this.isHorizontal()?this.width:this.height;return Math.floor(o/n)}});e.scaleService.registerScaleType("time",t,{position:"bottom",distribution:"linear",bounds:"data",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm a",hour:"hA",day:"MMM D",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1,source:"auto",major:{enabled:!1}}})}},{1:1,25:25,45:45}]},{},[7])(7)}),function(e){"function"==typeof define&&define.amd?define(["jquery"],function(t){return e(t,document,window,navigator)}):"object"==typeof exports?e(require("jquery"),document,window,navigator):e(jQuery,document,window,navigator)}(function(r,a,s,t,l){var e,i,n=0,o=(e=t.userAgent,i=/msie\s\d+/i,0<e.search(i)&&(e=(e=i.exec(e).toString()).split(" ")[1])<9&&(r("html").addClass("lt-ie9"),!0));Function.prototype.bind||(Function.prototype.bind=function(i){var n=this,o=[].slice;if("function"!=typeof n)throw new TypeError;var r=o.call(arguments,1),a=function(){if(this instanceof a){(t=function(){}).prototype=n.prototype;var t=new t,e=n.apply(t,r.concat(o.call(arguments)));return Object(e)===e?e:t}return n.apply(i,r.concat(o.call(arguments)))};return a}),Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(null==this)throw new TypeError('"this" is null or not defined');var i=Object(this),n=i.length>>>0;if(0===n)return-1;var o=+e||0;if(1/0===Math.abs(o)&&(o=0),n<=o)return-1;for(o=Math.max(0<=o?o:n-Math.abs(o),0);o<n;){if(o in i&&i[o]===t)return o;o++}return-1});var c=function(t,e,i){this.VERSION="2.2.0",this.input=t,this.plugin_count=i,this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0,this.raf_id=this.old_min_interval=null,this.no_diapason=this.force_redraw=this.dragging=!1,this.has_tab_index=!0,this.is_update=this.is_key=!1,this.is_start=!0,this.is_click=this.is_resize=this.is_active=this.is_finish=!1,e=e||{},this.$cache={win:r(s),body:r(a.body),input:r(t),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]},this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]},this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var n,o=this.$cache.input;for(n in t=o.prop("value"),i={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1,keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" — ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null},"INPUT"!==o[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",o[0]),(o={type:o.data("type"),min:o.data("min"),max:o.data("max"),from:o.data("from"),to:o.data("to"),step:o.data("step"),min_interval:o.data("minInterval"),max_interval:o.data("maxInterval"),drag_interval:o.data("dragInterval"),values:o.data("values"),from_fixed:o.data("fromFixed"),from_min:o.data("fromMin"),from_max:o.data("fromMax"),from_shadow:o.data("fromShadow"),to_fixed:o.data("toFixed"),to_min:o.data("toMin"),to_max:o.data("toMax"),to_shadow:o.data("toShadow"),prettify_enabled:o.data("prettifyEnabled"),prettify_separator:o.data("prettifySeparator"),force_edges:o.data("forceEdges"),keyboard:o.data("keyboard"),grid:o.data("grid"),grid_margin:o.data("gridMargin"),grid_num:o.data("gridNum"),grid_snap:o.data("gridSnap"),hide_min_max:o.data("hideMinMax"),hide_from_to:o.data("hideFromTo"),prefix:o.data("prefix"),postfix:o.data("postfix"),max_postfix:o.data("maxPostfix"),decorate_both:o.data("decorateBoth"),values_separator:o.data("valuesSeparator"),input_values_separator:o.data("inputValuesSeparator"),disable:o.data("disable"),block:o.data("block"),extra_classes:o.data("extraClasses")}).values=o.values&&o.values.split(","),o)o.hasOwnProperty(n)&&(o[n]!==l&&""!==o[n]||delete o[n]);t!==l&&""!==t&&((t=t.split(o.input_values_separator||e.input_values_separator||";"))[0]&&t[0]==+t[0]&&(t[0]=+t[0]),t[1]&&t[1]==+t[1]&&(t[1]=+t[1]),e&&e.values&&e.values.length?(i.from=t[0]&&e.values.indexOf(t[0]),i.to=t[1]&&e.values.indexOf(t[1])):(i.from=t[0]&&+t[0],i.to=t[1]&&+t[1])),r.extend(i,e),r.extend(i,o),this.options=i,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};c.prototype={init:function(t){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),t?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+this.plugin_count+" "+this.options.extra_classes+'"></span>'),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()),this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="move")},setTopHandler:function(){var t=this.options.max,e=this.options.to;this.options.from>this.options.min&&e===t?this.$cache.s_from.addClass("type_last"):e<t&&this.$cache.s_to.addClass("type_last")},changeLevel:function(t){switch(t){case"single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake),this.$cache.s_single.addClass("state_hover");break;case"from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.$cache.s_from.addClass("state_hover"),this.$cache.s_from.addClass("type_last"),this.$cache.s_to.removeClass("type_last");break;case"to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake),this.$cache.s_to.addClass("state_hover"),this.$cache.s_to.addClass("type_last"),this.$cache.s_from.removeClass("type_last");break;case"both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>'),this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask"),this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),o&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this)),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),o&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerFocus:function(t){if(!this.target){var e="single"===this.options.type?this.$cache.single:this.$cache.from;t=e.offset().left,t+=e.width()/2-1,this.pointerClick("single",{preventDefault:function(){},pageX:t})}},pointerMove:function(t){this.dragging&&(this.coords.x_pointer=(t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(t){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,o&&r("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(r.contains(this.$cache.cont[0],t.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&("both"===t&&this.setTempMinInterval(),t||(t=this.target||"from"),this.current_plugin=this.plugin_count,this.target=t,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=i-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(t),o&&r("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(t,e){e.preventDefault();var i=e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX;2!==e.button&&(this.current_plugin=this.plugin_count,this.target=t,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(i-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(t,e){if(!(this.current_plugin!==this.plugin_count||e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)){switch(e.which){case 83:case 65:case 40:case 37:e.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:e.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(t){var e=this.coords.p_pointer,i=(this.options.max-this.options.min)/100;i=this.options.step/i;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*(t?e+i:e-i)),this.is_key=!0,this.calc()},setMinMax:function(){if(this.options)if(this.options.hide_min_max)this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none";else{if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var t=this._prettify(this.options.min),e=this._prettify(this.options.max);this.result.min_pretty=t,this.result.max_pretty=e,this.$cache.min.html(this.decorate(t,this.options.min)),this.$cache.max.html(this.decorate(e,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var t=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=t},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(t){if(this.options&&(this.calc_count++,(10===this.calc_count||t)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){switch(this.calcPointerPercent(),t=this.getHandleX(),"both"===this.target&&(this.coords.p_gap=0,t=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,t=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(t)),this.target){case"base":var e=(this.options.max-this.options.min)/100;t=(this.result.from-this.options.min)/e,e=(this.result.to-this.options.min)/e,this.coords.p_single_real=this.toFixed(t),this.coords.p_from_real=this.toFixed(t),this.coords.p_to_real=this.toFixed(e),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(t),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(t),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(t),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both":if(this.options.from_fixed||this.options.to_fixed)break;t=this.toFixed(t+.001*this.coords.p_handle),this.coords.p_from_real=this.convertToRealPercent(t)-this.coords.p_gap_left,this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.convertToRealPercent(t)+this.coords.p_gap_right,this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to"),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case"both_one":if(!this.options.from_fixed&&!this.options.to_fixed){var i=this.convertToRealPercent(t),n=(t=this.result.to_percent-this.result.from_percent)/2;e=i-n,i=i+n;e<0&&(i=(e=0)+t),100<i&&(e=(i=100)-t),this.coords.p_from_real=this.calcWithStep(e),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_real=this.calcWithStep(i),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real,this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty=this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to])),this.calcMinMax(),this.calcLabels()}},calcPointerPercent:function(){this.coords.w_rs?(this.coords.x_pointer<0||isNaN(this.coords.x_pointer)?this.coords.x_pointer=0:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(t){return t/(100-this.coords.p_handle)*100},convertToFakePercent:function(t){return t/100*(100-this.coords.p_handle)},getHandleX:function(){var t=100-this.coords.p_handle,e=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return e<0?e=0:t<e&&(e=t),e},calcHandlePercent:function(){this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(t){return"single"===this.options.type?"single":t>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%":(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click)&&(this.is_click=this.is_key=!1,this.callOnFinish()),this.is_finish=this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var t=this.options.values.length,e=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type){if(t)t=this.decorate(e[this.result.from]);else{var i=this._prettify(this.result.from);t=this.decorate(i,this.result.from)}this.$cache.single.html(t),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?"hidden":"visible"}else{e=t?(this.options.decorate_both?(t=this.decorate(e[this.result.from]),t+=this.options.values_separator,t+=this.decorate(e[this.result.to])):t=this.decorate(e[this.result.from]+this.options.values_separator+e[this.result.to]),i=this.decorate(e[this.result.from]),this.decorate(e[this.result.to])):(i=this._prettify(this.result.from),e=this._prettify(this.result.to),this.options.decorate_both?(t=this.decorate(i,this.result.from),t+=this.options.values_separator,t+=this.decorate(e,this.result.to)):t=this.decorate(i+this.options.values_separator+e,this.result.to),i=this.decorate(i,this.result.from),this.decorate(e,this.result.to)),this.$cache.single.html(t),this.$cache.from.html(i),this.$cache.to.html(e),this.calcLabels(),t=Math.min(this.labels.p_single_left,this.labels.p_from_left),i=this.labels.p_single_left+this.labels.p_single_fake;e=this.labels.p_to_left+this.labels.p_to_fake;var n=Math.max(i,e);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",n=this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",e):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",Math.max(i,e))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=t<this.labels.p_min+1?"hidden":"visible",this.$cache.max[0].style.visibility=n>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var t=this.options,e=this.$cache,i="number"==typeof t.from_min&&!isNaN(t.from_min),n="number"==typeof t.from_max&&!isNaN(t.from_max),o="number"==typeof t.to_min&&!isNaN(t.to_min),r="number"==typeof t.to_max&&!isNaN(t.to_max);"single"===t.type?t.from_shadow&&(i||n)?(i=this.convertToPercent(i?t.from_min:t.min),n=this.convertToPercent(n?t.from_max:t.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,e.shad_single[0].style.display="block",e.shad_single[0].style.left=i+"%",e.shad_single[0].style.width=n+"%"):e.shad_single[0].style.display="none":(t.from_shadow&&(i||n)?(i=this.convertToPercent(i?t.from_min:t.min),n=this.convertToPercent(n?t.from_max:t.max)-i,i=this.toFixed(i-this.coords.p_handle/100*i),n=this.toFixed(n-this.coords.p_handle/100*n),i+=this.coords.p_handle/2,e.shad_from[0].style.display="block",e.shad_from[0].style.left=i+"%",e.shad_from[0].style.width=n+"%"):e.shad_from[0].style.display="none",t.to_shadow&&(o||r)?(o=this.convertToPercent(o?t.to_min:t.min),t=this.convertToPercent(r?t.to_max:t.max)-o,o=this.toFixed(o-this.coords.p_handle/100*o),t=this.toFixed(t-this.coords.p_handle/100*t),o+=this.coords.p_handle/2,e.shad_to[0].style.display="block",e.shad_to[0].style.left=o+"%",e.shad_to[0].style.width=t+"%"):e.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&(this.options.scope?this.options.onStart.call(this.options.scope,this.result):this.options.onStart(this.result))},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&(this.options.scope?this.options.onChange.call(this.options.scope,this.result):this.options.onChange(this.result))},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&(this.options.scope?this.options.onFinish.call(this.options.scope,this.result):this.options.onFinish(this.result))},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&(this.options.scope?this.options.onUpdate.call(this.options.scope,this.result):this.options.onUpdate(this.result))},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input"),this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex"),this.has_tab_index=!this.has_tab_index},convertToPercent:function(t,e){var i=this.options.max-this.options.min;return i?this.toFixed((e?t:t-this.options.min)/(i/100)):(this.no_diapason=!0,0)},convertToValue:function(t){var e,i,n=this.options.min,o=this.options.max,r=n.toString().split(".")[1],a=o.toString().split(".")[1],s=0,l=0;return 0===t?this.options.min:100===t?this.options.max:(r&&(s=e=r.length),a&&(s=i=a.length),e&&i&&(s=i<=e?e:i),n<0&&(n=+(n+(l=Math.abs(n))).toFixed(s),o=+(o+l).toFixed(s)),t=(o-n)/100*t+n,t=(n=this.options.step.toString().split(".")[1])?+t.toFixed(n.length):(t/=this.options.step,+(t*=this.options.step).toFixed(0)),l&&(t-=l),(l=n?+t.toFixed(n.length):this.toFixed(t))<this.options.min?l=this.options.min:l>this.options.max&&(l=this.options.max),l)},calcWithStep:function(t){var e=Math.round(t/this.coords.p_step)*this.coords.p_step;return 100<e&&(e=100),100===t&&(e=100),this.toFixed(e)},checkMinInterval:function(t,e,i){var n=this.options;return n.min_interval?(t=this.convertToValue(t),e=this.convertToValue(e),"from"===i?e-t<n.min_interval&&(t=e-n.min_interval):t-e<n.min_interval&&(t=e+n.min_interval),this.convertToPercent(t)):t},checkMaxInterval:function(t,e,i){var n=this.options;return n.max_interval?(t=this.convertToValue(t),e=this.convertToValue(e),"from"===i?e-t>n.max_interval&&(t=e-n.max_interval):t-e>n.max_interval&&(t=e+n.max_interval),this.convertToPercent(t)):t},checkDiapason:function(t,e,i){t=this.convertToValue(t);var n=this.options;return"number"!=typeof e&&(e=n.min),"number"!=typeof i&&(i=n.max),t<e&&(t=e),i<t&&(t=i),this.convertToPercent(t)},toFixed:function(t){return+(t=t.toFixed(20))},_prettify:function(t){return this.options.prettify_enabled?this.options.prettify&&"function"==typeof this.options.prettify?this.options.prettify(t):this.prettify(t):t},prettify:function(t){return t.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(t,e){return this.options.force_edges&&(t<0?t=0:100-e<t&&(t=100-e)),this.toFixed(t)},validate:function(){var t,e=this.options,i=this.result,n=e.values,o=n.length;if("string"==typeof e.min&&(e.min=+e.min),"string"==typeof e.max&&(e.max=+e.max),"string"==typeof e.from&&(e.from=+e.from),"string"==typeof e.to&&(e.to=+e.to),"string"==typeof e.step&&(e.step=+e.step),"string"==typeof e.from_min&&(e.from_min=+e.from_min),"string"==typeof e.from_max&&(e.from_max=+e.from_max),"string"==typeof e.to_min&&(e.to_min=+e.to_min),"string"==typeof e.to_max&&(e.to_max=+e.to_max),"string"==typeof e.grid_num&&(e.grid_num=+e.grid_num),e.max<e.min&&(e.max=e.min),o)for(e.p_values=[],e.min=0,e.max=o-1,e.step=1,e.grid_num=e.max,e.grid_snap=!0,t=0;t<o;t++){var r=+n[t];r=isNaN(r)?n[t]:(n[t]=r,this._prettify(r)),e.p_values.push(r)}("number"!=typeof e.from||isNaN(e.from))&&(e.from=e.min),("number"!=typeof e.to||isNaN(e.to))&&(e.to=e.max),"single"===e.type?(e.from<e.min&&(e.from=e.min),e.from>e.max&&(e.from=e.max)):(e.from<e.min&&(e.from=e.min),e.from>e.max&&(e.from=e.max),e.to<e.min&&(e.to=e.min),e.to>e.max&&(e.to=e.max),this.update_check.from&&(this.update_check.from!==e.from&&e.from>e.to&&(e.from=e.to),this.update_check.to!==e.to&&e.to<e.from&&(e.to=e.from)),e.from>e.to&&(e.from=e.to),e.to<e.from&&(e.to=e.from)),("number"!=typeof e.step||isNaN(e.step)||!e.step||e.step<0)&&(e.step=1),"number"==typeof e.from_min&&e.from<e.from_min&&(e.from=e.from_min),"number"==typeof e.from_max&&e.from>e.from_max&&(e.from=e.from_max),"number"==typeof e.to_min&&e.to<e.to_min&&(e.to=e.to_min),"number"==typeof e.to_max&&e.from>e.to_max&&(e.to=e.to_max),i&&(i.min!==e.min&&(i.min=e.min),i.max!==e.max&&(i.max=e.max),(i.from<i.min||i.from>i.max)&&(i.from=e.from),(i.to<i.min||i.to>i.max)&&(i.to=e.to)),("number"!=typeof e.min_interval||isNaN(e.min_interval)||!e.min_interval||e.min_interval<0)&&(e.min_interval=0),("number"!=typeof e.max_interval||isNaN(e.max_interval)||!e.max_interval||e.max_interval<0)&&(e.max_interval=0),e.min_interval&&e.min_interval>e.max-e.min&&(e.min_interval=e.max-e.min),e.max_interval&&e.max_interval>e.max-e.min&&(e.max_interval=e.max-e.min)},decorate:function(t,e){var i="",n=this.options;return n.prefix&&(i+=n.prefix),i+=t,n.max_postfix&&(n.values.length&&t===n.p_values[n.max]?(i+=n.max_postfix,n.postfix&&(i+=" ")):e===n.max&&(i+=n.max_postfix,n.postfix&&(i+=" "))),n.postfix&&(i+=n.postfix),i},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.result.from_pretty=this._prettify(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.result.to_pretty=this._prettify(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var t,e=this.options,i=e.max-e.min,n=e.grid_num,o=4,r="";if(this.calcGridMargin(),e.grid_snap)if(50<i){n=50/e.step;var a=this.toFixed(e.step/.5)}else n=i/e.step,a=this.toFixed(e.step/(i/100));else a=this.toFixed(100/n);for(4<n&&(o=3),7<n&&(o=2),14<n&&(o=1),28<n&&(o=0),i=0;i<n+1;i++){var s=o,l=this.toFixed(a*i);100<l&&(l=100);var c=((this.coords.big[i]=l)-a*(i-1))/(s+1);for(t=1;t<=s&&0!==l;t++){r+='<span class="irs-grid-pol small" style="left: '+this.toFixed(l-c*t)+'%"></span>'}r+='<span class="irs-grid-pol" style="left: '+l+'%"></span>',t=this.convertToValue(l),r+='<span class="irs-grid-text js-grid-text-'+i+'" style="left: '+l+'%">'+(t=e.values.length?e.p_values[t]:this._prettify(t))+"</span>"}this.coords.big_num=Math.ceil(n+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(r),this.cacheGridLabels()}},cacheGridLabels:function(){var t,e=this.coords.big_num;for(t=0;t<e;t++){var i=this.$cache.grid.find(".js-grid-text-"+t);this.$cache.grid_labels.push(i)}this.calcGridLabels()},calcGridLabels:function(){var t,e=[],i=[],n=this.coords.big_num;for(t=0;t<n;t++)this.coords.big_w[t]=this.$cache.grid_labels[t].outerWidth(!1),this.coords.big_p[t]=this.toFixed(this.coords.big_w[t]/this.coords.w_rs*100),this.coords.big_x[t]=this.toFixed(this.coords.big_p[t]/2),e[t]=this.toFixed(this.coords.big[t]-this.coords.big_x[t]),i[t]=this.toFixed(e[t]+this.coords.big_p[t]);for(this.options.force_edges&&(e[0]<-this.coords.grid_gap&&(e[0]=-this.coords.grid_gap,i[0]=this.toFixed(e[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),i[n-1]>100+this.coords.grid_gap&&(i[n-1]=100+this.coords.grid_gap,e[n-1]=this.toFixed(i[n-1]-this.coords.big_p[n-1]),this.coords.big_x[n-1]=this.toFixed(this.coords.big_p[n-1]-this.coords.grid_gap))),this.calcGridCollision(2,e,i),this.calcGridCollision(4,e,i),t=0;t<n;t++)e=this.$cache.grid_labels[t][0],this.coords.big_x[t]!==Number.POSITIVE_INFINITY&&(e.style.marginLeft=-this.coords.big_x[t]+"%")},calcGridCollision:function(t,e,i){var n,o=this.coords.big_num;for(n=0;n<o;n+=t){var r=n+t/2;if(o<=r)break;this.$cache.grid_labels[r][0].style.visibility=i[n]<=e[r]?"visible":"hidden"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle="single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[0].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(t){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from=this.result.from,this.update_check.to=this.result.to,this.options=r.extend(this.options,t),this.validate(),this.updateResult(t),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),r.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}},r.fn.ionRangeSlider=function(t){return this.each(function(){r.data(this,"ionRangeSlider")||r.data(this,"ionRangeSlider",new c(this,t,n++))})},function(){for(var r=0,t=["ms","moz","webkit","o"],e=0;e<t.length&&!s.requestAnimationFrame;++e)s.requestAnimationFrame=s[t[e]+"RequestAnimationFrame"],s.cancelAnimationFrame=s[t[e]+"CancelAnimationFrame"]||s[t[e]+"CancelRequestAnimationFrame"];s.requestAnimationFrame||(s.requestAnimationFrame=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-r)),o=s.setTimeout(function(){t(i+n)},n);return r=i+n,o}),s.cancelAnimationFrame||(s.cancelAnimationFrame=function(t){clearTimeout(t)})}()});
|