/*!
 * jQuery JavaScript Library v3.1.1
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2016-09-22T22:30Z
 */
function MarkerClusterer(n,t,i){var r,u;this.extend(MarkerClusterer,google.maps.OverlayView),this.map_=n,this.markers_=[],this.clusters_=[],this.sizes=[53,56,66,78,90],this.styles_=[],this.ready_=!1,r=i||{},this.gridSize_=r.gridSize||60,this.minClusterSize_=r.minimumClusterSize||2,this.maxZoom_=r.maxZoom||null,this.styles_=r.styles||[],this.imagePath_=r.imagePath||this.MARKER_CLUSTER_IMAGE_PATH_,this.imageExtension_=r.imageExtension||this.MARKER_CLUSTER_IMAGE_EXTENSION_,this.zoomOnClick_=!0,r.zoomOnClick!=undefined&&(this.zoomOnClick_=r.zoomOnClick),this.averageCenter_=!1,r.averageCenter!=undefined&&(this.averageCenter_=r.averageCenter),this.setupStyles_(),this.setMap(n),this.prevZoom_=this.map_.getZoom(),u=this,google.maps.event.addListener(this.map_,"zoom_changed",function(){var n=u.map_.getZoom(),t=u.map_.minZoom||0,i=Math.min(u.map_.maxZoom||100,u.map_.mapTypes[u.map_.getMapTypeId()].maxZoom);n=Math.min(Math.max(n,t),i),u.prevZoom_!=n&&(u.prevZoom_=n,u.resetViewport())}),google.maps.event.addListener(this.map_,"idle",function(){u.redraw()}),t&&(t.length||Object.keys(t).length)&&this.addMarkers(t,!1)}function Cluster(n){this.markerClusterer_=n,this.map_=n.getMap(),this.gridSize_=n.getGridSize(),this.minClusterSize_=n.getMinClusterSize(),this.averageCenter_=n.isAverageCenter(),this.center_=null,this.markers_=[],this.bounds_=null,this.clusterIcon_=new ClusterIcon(this,n.getStyles(),n.getGridSize())}function ClusterIcon(n,t,i){n.getMarkerClusterer().extend(ClusterIcon,google.maps.OverlayView),this.styles_=t,this.padding_=i||0,this.cluster_=n,this.center_=null,this.map_=n.getMap(),this.div_=null,this.sums_=null,this.visible_=!1,this.setMap(this.map_)}function render(n,t){for(var r=document.getElementById(n).innerHTML,u=r.match(/\{\{([a-zA-Z\d:\-_]+)\}\}/g),f,e,o,h,s,i=0;i<u.length;i++){if(f=u[i].slice(2,u[i].length-2),e="",t.hasOwnProperty(f))e=t[f];else if(o=f.split(":"),o.length==3)for(h=t[o[1]],s=0;s<h.length;s++)e+=render(o[2],h[s]);r=r.split(u[i]).join(e)}return r}function queueLoad(){loadCounter+=1,$("#js-general-loading").show()}function dequeueLoad(){loadCounter-=1,loadCounter<=0&&(loadCounter=0,$("#js-general-loading").hide())}function queueRecommendedLoad(){recommendedLoadCounter+=1,$(".js-recommended-loading").show()}function dequeueRecommendedLoad(){recommendedLoadCounter-=1,recommendedLoadCounter<=0&&(recommendedLoadCounter=0,$(".js-recommended-loading").hide())}function getQueryArg(n){n=n.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]").toLowerCase();var i="[\\?&]"+n+"=([^&#]*)",r=new RegExp(i),t=r.exec(window.location.href.toLowerCase());return t==null?"":decodeURIComponent(t[1].replace(/\+/g," "))}var loadCounter,recommendedLoadCounter;(function(n,t){"use strict";typeof module=="object"&&typeof module.exports=="object"?module.exports=n.document?t(n,!0):function(n){if(!n.document)throw new Error("jQuery requires a window with a document");return t(n)}:t(n)})(typeof window!="undefined"?window:this,function(n,t){"use strict";function gi(n,t){t=t||u;var i=t.createElement("script");i.text=n,t.head.appendChild(i).parentNode.removeChild(i)}function ui(n){var t=!!n&&"length"in n&&n.length,r=i.type(n);return r==="function"||i.isWindow(n)?!1:r==="array"||t===0||typeof t=="number"&&t>0&&t-1 in n}function fi(n,t,r){return i.isFunction(t)?i.grep(n,function(n,i){return!!t.call(n,i,n)!==r}):t.nodeType?i.grep(n,function(n){return n===t!==r}):typeof t!="string"?i.grep(n,function(n){return ot.call(t,n)>-1!==r}):df.test(t)?i.filter(t,n,r):(t=i.filter(t,n),i.grep(n,function(n){return ot.call(t,n)>-1!==r&&n.nodeType===1}))}function hr(n,t){while((n=n[t])&&n.nodeType!==1);return n}function gf(n){var t={};return i.each(n.match(h)||[],function(n,i){t[i]=!0}),t}function g(n){return n}function pt(n){throw n;}function cr(n,t,r){var u;try{n&&i.isFunction(u=n.promise)?u.call(n).done(t).fail(r):n&&i.isFunction(u=n.then)?u.call(n,t,r):t.call(undefined,n)}catch(n){r.call(undefined,n)}}function bt(){u.removeEventListener("DOMContentLoaded",bt),n.removeEventListener("load",bt),i.ready()}function ht(){this.expando=i.expando+ht.uid++}function ie(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:ne.test(n)?JSON.parse(n):n}function ar(n,t,i){var r;if(i===undefined&&n.nodeType===1)if(r="data-"+t.replace(te,"-$&").toLowerCase(),i=n.getAttribute(r),typeof i=="string"){try{i=ie(i)}catch(u){}e.set(n,t,i)}else i=undefined;return i}function pr(n,t,r,u){var h,e=1,l=20,c=u?function(){return u.cur()}:function(){return i.css(n,t,"")},s=c(),o=r&&r[3]||(i.cssNumber[t]?"":"px"),f=(i.cssNumber[t]||o!=="px"&&+s)&&ct.exec(i.css(n,t));if(f&&f[3]!==o){o=o||f[3],r=r||[],f=+s||1;do e=e||".5",f=f/e,i.style(n,t,f+o);while(e!==(e=c()/s)&&e!==1&&--l)}return r&&(f=+f||+s||0,h=r[1]?f+(r[1]+1)*r[2]:+r[2],u&&(u.unit=o,u.start=f,u.end=h)),h}function re(n){var r,f=n.ownerDocument,u=n.nodeName,t=ei[u];return t?t:(r=f.body.appendChild(f.createElement(u)),t=i.css(r,"display"),r.parentNode.removeChild(r),t==="none"&&(t="block"),ei[u]=t,t)}function nt(n,t){for(var e,u,f=[],i=0,o=n.length;i<o;i++)(u=n[i],u.style)&&(e=u.style.display,t?(e==="none"&&(f[i]=r.get(u,"display")||null,f[i]||(u.style.display="")),u.style.display===""&&kt(u)&&(f[i]=re(u))):e!=="none"&&(f[i]="none",r.set(u,"display",e)));for(i=0;i<o;i++)f[i]!=null&&(n[i].style.display=f[i]);return n}function o(n,t){var r;return(r=typeof n.getElementsByTagName!="undefined"?n.getElementsByTagName(t||"*"):typeof n.querySelectorAll!="undefined"?n.querySelectorAll(t||"*"):[],t===undefined||t&&i.nodeName(n,t))?i.merge([n],r):r}function oi(n,t){for(var i=0,u=n.length;i<u;i++)r.set(n[i],"globalEval",!t||r.get(t[i],"globalEval"))}function gr(n,t,r,u,f){for(var e,s,p,a,w,v,h=t.createDocumentFragment(),y=[],l=0,b=n.length;l<b;l++)if(e=n[l],e||e===0)if(i.type(e)==="object")i.merge(y,e.nodeType?[e]:e);else if(dr.test(e)){for(s=s||h.appendChild(t.createElement("div")),p=(br.exec(e)||["",""])[1].toLowerCase(),a=c[p]||c._default,s.innerHTML=a[1]+i.htmlPrefilter(e)+a[2],v=a[0];v--;)s=s.lastChild;i.merge(y,s.childNodes),s=h.firstChild,s.textContent=""}else y.push(t.createTextNode(e));for(h.textContent="",l=0;e=y[l++];){if(u&&i.inArray(e,u)>-1){f&&f.push(e);continue}if(w=i.contains(e.ownerDocument,e),s=o(h.appendChild(e),"script"),w&&oi(s),r)for(v=0;e=s[v++];)kr.test(e.type||"")&&r.push(e)}return h}function gt(){return!0}function tt(){return!1}function tu(){try{return u.activeElement}catch(n){}}function si(n,t,r,u,f,e){var o,s;if(typeof t=="object"){typeof r!="string"&&(u=u||r,r=undefined);for(s in t)si(n,s,r,u,t[s],e);return n}if(u==null&&f==null?(f=r,u=r=undefined):f==null&&(typeof r=="string"?(f=u,u=undefined):(f=u,u=r,r=undefined)),f===!1)f=tt;else if(!f)return n;return e===1&&(o=f,f=function(n){return i().off(n),o.apply(this,arguments)},f.guid=o.guid||(o.guid=i.guid++)),n.each(function(){i.event.add(this,t,f,u,r)})}function iu(n,t){return i.nodeName(n,"table")&&i.nodeName(t.nodeType!==11?t:t.firstChild,"tr")?n.getElementsByTagName("tbody")[0]||n:n}function le(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function ae(n){var t=he.exec(n.type);return t?n.type=t[1]:n.removeAttribute("type"),n}function ru(n,t){var f,c,o,s,h,l,a,u;if(t.nodeType===1){if(r.hasData(n)&&(s=r.access(n),h=r.set(t,s),u=s.events,u)){delete h.handle,h.events={};for(o in u)for(f=0,c=u[o].length;f<c;f++)i.event.add(t,o,u[o][f])}e.hasData(n)&&(l=e.access(n),a=i.extend({},l),e.set(t,a))}}function ve(n,t){var i=t.nodeName.toLowerCase();i==="input"&&wr.test(n.type)?t.checked=n.checked:(i==="input"||i==="textarea")&&(t.defaultValue=n.defaultValue)}function it(n,t,u,e){t=bi.apply([],t);var l,p,c,a,s,w,h=0,v=n.length,k=v-1,y=t[0],b=i.isFunction(y);if(b||v>1&&typeof y=="string"&&!f.checkClone&&se.test(y))return n.each(function(i){var r=n.eq(i);b&&(t[0]=y.call(this,i,r.html())),it(r,t,u,e)});if(v&&(l=gr(t,n[0].ownerDocument,!1,n,e),p=l.firstChild,l.childNodes.length===1&&(l=p),p||e)){for(c=i.map(o(l,"script"),le),a=c.length;h<v;h++)s=l,h!==k&&(s=i.clone(s,!0,!0),a&&i.merge(c,o(s,"script"))),u.call(n[h],s,h);if(a)for(w=c[c.length-1].ownerDocument,i.map(c,ae),h=0;h<a;h++)s=c[h],kr.test(s.type||"")&&!r.access(s,"globalEval")&&i.contains(w,s)&&(s.src?i._evalUrl&&i._evalUrl(s.src):gi(s.textContent.replace(ce,""),w))}return n}function uu(n,t,r){for(var u,e=t?i.filter(t,n):n,f=0;(u=e[f])!=null;f++)r||u.nodeType!==1||i.cleanData(o(u)),u.parentNode&&(r&&i.contains(u.ownerDocument,u)&&oi(o(u,"script")),u.parentNode.removeChild(u));return n}function lt(n,t,r){var o,s,h,u,e=n.style;return r=r||ni(n),r&&(u=r.getPropertyValue(t)||r[t],u!==""||i.contains(n.ownerDocument,n)||(u=i.style(n,t)),!f.pixelMarginRight()&&hi.test(u)&&fu.test(t)&&(o=e.width,s=e.minWidth,h=e.maxWidth,e.minWidth=e.maxWidth=e.width=u,u=r.width,e.width=o,e.minWidth=s,e.maxWidth=h)),u!==undefined?u+"":u}function eu(n,t){return{get:function(){if(n()){delete this.get;return}return(this.get=t).apply(this,arguments)}}}function cu(n){if(n in hu)return n;for(var i=n[0].toUpperCase()+n.slice(1),t=su.length;t--;)if(n=su[t]+i,n in hu)return n}function lu(n,t,i){var r=ct.exec(t);return r?Math.max(0,r[2]-(i||0))+(r[3]||"px"):t}function au(n,t,r,u,f){for(var o=0,e=r===(u?"border":"content")?4:t==="width"?1:0;e<4;e+=2)r==="margin"&&(o+=i.css(n,r+w[e],!0,f)),u?(r==="content"&&(o-=i.css(n,"padding"+w[e],!0,f)),r!=="margin"&&(o-=i.css(n,"border"+w[e]+"Width",!0,f))):(o+=i.css(n,"padding"+w[e],!0,f),r!=="padding"&&(o+=i.css(n,"border"+w[e]+"Width",!0,f)));return o}function vu(n,t,r){var u,o=!0,e=ni(n),s=i.css(n,"boxSizing",!1,e)==="border-box";if(n.getClientRects().length&&(u=n.getBoundingClientRect()[t]),u<=0||u==null){if(u=lt(n,t,e),(u<0||u==null)&&(u=n.style[t]),hi.test(u))return u;o=s&&(f.boxSizingReliable()||u===n.style[t]),u=parseFloat(u)||0}return u+au(n,t,r||(s?"border":"content"),o,e)+"px"}function s(n,t,i,r,u){return new s.prototype.init(n,t,i,r,u)}function wu(){ut&&(n.requestAnimationFrame(wu),i.fx.tick())}function bu(){return n.setTimeout(function(){rt=undefined}),rt=i.now()}function ti(n,t){var r,u=0,i={height:n};for(t=t?1:0;u<4;u+=2-t)r=w[u],i["margin"+r]=i["padding"+r]=n;return t&&(i.opacity=i.width=n),i}function ku(n,t,i){for(var u,f=(l.tweeners[t]||[]).concat(l.tweeners["*"]),r=0,e=f.length;r<e;r++)if(u=f[r].call(i,t,n))return u}function we(n,t,u){var f,y,w,c,b,s,o,l,k="width"in t||"height"in t,v=this,p={},h=n.style,a=n.nodeType&&kt(n),e=r.get(n,"fxshow");u.queue||(c=i._queueHooks(n,"fx"),c.unqueued==null&&(c.unqueued=0,b=c.empty.fire,c.empty.fire=function(){c.unqueued||b()}),c.unqueued++,v.always(function(){v.always(function(){c.unqueued--,i.queue(n,"fx").length||c.empty.fire()})}));for(f in t)if(y=t[f],yu.test(y)){if(delete t[f],w=w||y==="toggle",y===(a?"hide":"show"))if(y==="show"&&e&&e[f]!==undefined)a=!0;else continue;p[f]=e&&e[f]||i.style(n,f)}if(s=!i.isEmptyObject(t),s||!i.isEmptyObject(p)){k&&n.nodeType===1&&(u.overflow=[h.overflow,h.overflowX,h.overflowY],o=e&&e.display,o==null&&(o=r.get(n,"display")),l=i.css(n,"display"),l==="none"&&(o?l=o:(nt([n],!0),o=n.style.display||o,l=i.css(n,"display"),nt([n]))),(l==="inline"||l==="inline-block"&&o!=null)&&i.css(n,"float")==="none"&&(s||(v.done(function(){h.display=o}),o==null&&(l=h.display,o=l==="none"?"":l)),h.display="inline-block")),u.overflow&&(h.overflow="hidden",v.always(function(){h.overflow=u.overflow[0],h.overflowX=u.overflow[1],h.overflowY=u.overflow[2]})),s=!1;for(f in p)s||(e?"hidden"in e&&(a=e.hidden):e=r.access(n,"fxshow",{display:o}),w&&(e.hidden=!a),a&&nt([n],!0),v.done(function(){a||nt([n]),r.remove(n,"fxshow");for(f in p)i.style(n,f,p[f])})),s=ku(a?e[f]:0,f,v),f in e||(e[f]=s.start,a&&(s.end=s.start,s.start=0))}}function be(n,t){var r,f,e,u,o;for(r in n)if(f=i.camelCase(r),e=t[f],u=n[r],i.isArray(u)&&(e=u[1],u=n[r]=u[0]),r!==f&&(n[f]=u,delete n[r]),o=i.cssHooks[f],o&&"expand"in o){u=o.expand(u),delete n[f];for(r in u)r in n||(n[r]=u[r],t[r]=e)}else t[f]=e}function l(n,t,r){var f,o,s=0,a=l.prefilters.length,e=i.Deferred().always(function(){delete c.elem}),c=function(){if(o)return!1;for(var s=rt||bu(),t=Math.max(0,u.startTime+u.duration-s),h=t/u.duration||0,i=1-h,r=0,f=u.tweens.length;r<f;r++)u.tweens[r].run(i);return e.notifyWith(n,[u,i,t]),i<1&&f?t:(e.resolveWith(n,[u]),!1)},u=e.promise({elem:n,props:i.extend({},t),opts:i.extend(!0,{specialEasing:{},easing:i.easing._default},r),originalProperties:t,originalOptions:r,startTime:rt||bu(),duration:r.duration,tweens:[],createTween:function(t,r){var f=i.Tween(n,u.opts,t,r,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(f),f},stop:function(t){var i=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;i<r;i++)u.tweens[i].run(1);return t?(e.notifyWith(n,[u,1,0]),e.resolveWith(n,[u,t])):e.rejectWith(n,[u,t]),this}}),h=u.props;for(be(h,u.opts.specialEasing);s<a;s++)if(f=l.prefilters[s].call(u,n,h,u.opts),f)return i.isFunction(f.stop)&&(i._queueHooks(u.elem,u.opts.queue).stop=i.proxy(f.stop,f)),f;return i.map(h,ku,u),i.isFunction(u.opts.start)&&u.opts.start.call(n,u),i.fx.timer(i.extend(c,{elem:n,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function b(n){var t=n.match(h)||[];return t.join(" ")}function k(n){return n.getAttribute&&n.getAttribute("class")||""}function ai(n,t,r,u){var f;if(i.isArray(t))i.each(t,function(t,i){r||ke.test(n)?u(n,i):ai(n+"["+(typeof i=="object"&&i!=null?t:"")+"]",i,r,u)});else if(r||i.type(t)!=="object")u(n,t);else for(f in t)ai(n+"["+f+"]",t[f],r,u)}function of(n){return function(t,r){typeof t!="string"&&(r=t,t="*");var u,f=0,e=t.toLowerCase().match(h)||[];if(i.isFunction(r))while(u=e[f++])u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(r)):(n[u]=n[u]||[]).push(r)}}function sf(n,t,r,u){function e(s){var h;return f[s]=!0,i.each(n[s]||[],function(n,i){var s=i(t,r,u);if(typeof s!="string"||o||f[s]){if(o)return!(h=s)}else return t.dataTypes.unshift(s),e(s),!1}),h}var f={},o=n===vi;return e(t.dataTypes[0])||!f["*"]&&e("*")}function pi(n,t){var r,u,f=i.ajaxSettings.flatOptions||{};for(r in t)t[r]!==undefined&&((f[r]?n:u||(u={}))[r]=t[r]);return u&&i.extend(!0,n,u),n}function eo(n,t,i){for(var e,u,f,o,s=n.contents,r=n.dataTypes;r[0]==="*";)r.shift(),e===undefined&&(e=n.mimeType||t.getResponseHeader("Content-Type"));if(e)for(u in s)if(s[u]&&s[u].test(e)){r.unshift(u);break}if(r[0]in i)f=r[0];else{for(u in i){if(!r[0]||n.converters[u+" "+r[0]]){f=u;break}o||(o=u)}f=f||o}if(f)return f!==r[0]&&r.unshift(f),i[f]}function oo(n,t,i,r){var h,u,f,s,e,o={},c=n.dataTypes.slice();if(c[1])for(f in n.converters)o[f.toLowerCase()]=n.converters[f];for(u=c.shift();u;)if(n.responseFields[u]&&(i[n.responseFields[u]]=t),!e&&r&&n.dataFilter&&(t=n.dataFilter(t,n.dataType)),e=u,u=c.shift(),u)if(u==="*")u=e;else if(e!=="*"&&e!==u){if(f=o[e+" "+u]||o["* "+u],!f)for(h in o)if(s=h.split(" "),s[1]===u&&(f=o[e+" "+s[0]]||o["* "+s[0]],f)){f===!0?f=o[h]:o[h]!==!0&&(u=s[0],c.unshift(s[1]));break}if(f!==!0)if(f&&n.throws)t=f(t);else try{t=f(t)}catch(l){return{state:"parsererror",error:f?l:"No conversion from "+e+" to "+u}}}return{state:"success",data:t}}function cf(n){return i.isWindow(n)?n:n.nodeType===9&&n.defaultView}var y=[],u=n.document,vf=Object.getPrototypeOf,p=y.slice,bi=y.concat,ri=y.push,ot=y.indexOf,vt={},ki=vt.toString,yt=vt.hasOwnProperty,di=yt.toString,yf=di.call(Object),f={},nr="3.1.1",i=function(n,t){return new i.fn.init(n,t)},pf=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,wf=/^-ms-/,bf=/-([a-z])/g,kf=function(n,t){return t.toUpperCase()},v,ur,fr,er,or,sr,h,lr,wt,a,st,ei,dr,rt,ut,yu,pu,du,ft,gu,nf,tf,ci,hf,et,wi,ii,lf,af;i.fn=i.prototype={jquery:nr,constructor:i,length:0,toArray:function(){return p.call(this)},get:function(n){return n==null?p.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var t=i.merge(this.constructor(),n);return t.prevObject=this,t},each:function(n){return i.each(this,n)},map:function(n){return this.pushStack(i.map(this,function(t,i){return n.call(t,i,t)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(n){var i=this.length,t=+n+(n<0?i:0);return this.pushStack(t>=0&&t<i?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:ri,sort:y.sort,splice:y.splice},i.extend=i.fn.extend=function(){var e,f,r,t,o,s,n=arguments[0]||{},u=1,c=arguments.length,h=!1;for(typeof n=="boolean"&&(h=n,n=arguments[u]||{},u++),typeof n=="object"||i.isFunction(n)||(n={}),u===c&&(n=this,u--);u<c;u++)if((e=arguments[u])!=null)for(f in e)(r=n[f],t=e[f],n!==t)&&(h&&t&&(i.isPlainObject(t)||(o=i.isArray(t)))?(o?(o=!1,s=r&&i.isArray(r)?r:[]):s=r&&i.isPlainObject(r)?r:{},n[f]=i.extend(h,s,t)):t!==undefined&&(n[f]=t));return n},i.extend({expando:"jQuery"+(nr+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n);},noop:function(){},isFunction:function(n){return i.type(n)==="function"},isArray:Array.isArray,isWindow:function(n){return n!=null&&n===n.window},isNumeric:function(n){var t=i.type(n);return(t==="number"||t==="string")&&!isNaN(n-parseFloat(n))},isPlainObject:function(n){var t,i;return!n||ki.call(n)!=="[object Object]"?!1:(t=vf(n),!t)?!0:(i=yt.call(t,"constructor")&&t.constructor,typeof i=="function"&&di.call(i)===yf)},isEmptyObject:function(n){var t;for(t in n)return!1;return!0},type:function(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?vt[ki.call(n)]||"object":typeof n},globalEval:function(n){gi(n)},camelCase:function(n){return n.replace(wf,"ms-").replace(bf,kf)},nodeName:function(n,t){return n.nodeName&&n.nodeName.toLowerCase()===t.toLowerCase()},each:function(n,t){var r,i=0;if(ui(n)){for(r=n.length;i<r;i++)if(t.call(n[i],i,n[i])===!1)break}else for(i in n)if(t.call(n[i],i,n[i])===!1)break;return n},trim:function(n){return n==null?"":(n+"").replace(pf,"")},makeArray:function(n,t){var r=t||[];return n!=null&&(ui(Object(n))?i.merge(r,typeof n=="string"?[n]:n):ri.call(r,n)),r},inArray:function(n,t,i){return t==null?-1:ot.call(t,n,i)},merge:function(n,t){for(var u=+t.length,i=0,r=n.length;i<u;i++)n[r++]=t[i];return n.length=r,n},grep:function(n,t,i){for(var u,f=[],r=0,e=n.length,o=!i;r<e;r++)u=!t(n[r],r),u!==o&&f.push(n[r]);return f},map:function(n,t,i){var e,u,r=0,f=[];if(ui(n))for(e=n.length;r<e;r++)u=t(n[r],r,i),u!=null&&f.push(u);else for(r in n)u=t(n[r],r,i),u!=null&&f.push(u);return bi.apply([],f)},guid:1,proxy:function(n,t){var u,f,r;return(typeof t=="string"&&(u=n[t],t=n,n=u),!i.isFunction(n))?undefined:(f=p.call(arguments,2),r=function(){return n.apply(t||this,f.concat(p.call(arguments)))},r.guid=n.guid=n.guid||i.guid++,r)},now:Date.now,support:f}),typeof Symbol=="function"&&(i.fn[Symbol.iterator]=y[Symbol.iterator]),i.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,t){vt["[object "+t+"]"]=t.toLowerCase()}),v=function(n){function u(n,t,r,u){var s,w,l,a,d,y,g,p=t&&t.ownerDocument,v=t?t.nodeType:9;if(r=r||[],typeof n!="string"||!n||v!==1&&v!==9&&v!==11)return r;if(!u&&((t?t.ownerDocument||t:c)!==i&&b(t),t=t||i,h)){if(v!==11&&(d=cr.exec(n)))if(s=d[1]){if(v===9)if(l=t.getElementById(s)){if(l.id===s)return r.push(l),r}else return r;else if(p&&(l=p.getElementById(s))&&et(t,l)&&l.id===s)return r.push(l),r}else{if(d[2])return k.apply(r,t.getElementsByTagName(n)),r;if((s=d[3])&&e.getElementsByClassName&&t.getElementsByClassName)return k.apply(r,t.getElementsByClassName(s)),r}if(e.qsa&&!lt[n+" "]&&(!o||!o.test(n))){if(v!==1)p=t,g=n;else if(t.nodeName.toLowerCase()!=="object"){for((a=t.getAttribute("id"))?a=a.replace(vi,yi):t.setAttribute("id",a=f),y=ft(n),w=y.length;w--;)y[w]="#"+a+" "+yt(y[w]);g=y.join(","),p=ni.test(n)&&ri(t.parentNode)||t}if(g)try{return k.apply(r,p.querySelectorAll(g)),r}catch(nt){}finally{a===f&&t.removeAttribute("id")}}}return si(n.replace(at,"$1"),t,r,u)}function ti(){function n(r,u){return i.push(r+" ")>t.cacheLength&&delete n[i.shift()],n[r+" "]=u}var i=[];return n}function l(n){return n[f]=!0,n}function a(n){var t=i.createElement("fieldset");try{return!!n(t)}catch(r){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ii(n,i){for(var r=n.split("|"),u=r.length;u--;)t.attrHandle[r[u]]=i}function wi(n,t){var i=t&&n,r=i&&n.nodeType===1&&t.nodeType===1&&n.sourceIndex-t.sourceIndex;if(r)return r;if(i)while(i=i.nextSibling)if(i===t)return-1;return n?1:-1}function ar(n){return function(t){var i=t.nodeName.toLowerCase();return i==="input"&&t.type===n}}function vr(n){return function(t){var i=t.nodeName.toLowerCase();return(i==="input"||i==="button")&&t.type===n}}function bi(n){return function(t){return"form"in t?t.parentNode&&t.disabled===!1?"label"in t?"label"in t.parentNode?t.parentNode.disabled===n:t.disabled===n:t.isDisabled===n||t.isDisabled!==!n&&lr(t)===n:t.disabled===n:"label"in t?t.disabled===n:!1}}function it(n){return l(function(t){return t=+t,l(function(i,r){for(var u,f=n([],i.length,t),e=f.length;e--;)i[u=f[e]]&&(i[u]=!(r[u]=i[u]))})})}function ri(n){return n&&typeof n.getElementsByTagName!="undefined"&&n}function ki(){}function yt(n){for(var t=0,r=n.length,i="";t<r;t++)i+=n[t].value;return i}function pt(n,t,i){var r=t.dir,u=t.next,e=u||r,o=i&&e==="parentNode",s=di++;return t.first?function(t,i,u){while(t=t[r])if(t.nodeType===1||o)return n(t,i,u);return!1}:function(t,i,h){var c,l,a,y=[v,s];if(h){while(t=t[r])if((t.nodeType===1||o)&&n(t,i,h))return!0}else while(t=t[r])if(t.nodeType===1||o)if(a=t[f]||(t[f]={}),l=a[t.uniqueID]||(a[t.uniqueID]={}),u&&u===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=l[e])&&c[0]===v&&c[1]===s)return y[2]=c[2];if(l[e]=y,y[2]=n(t,i,h))return!0}return!1}}function ui(n){return n.length>1?function(t,i,r){for(var u=n.length;u--;)if(!n[u](t,i,r))return!1;return!0}:n[0]}function yr(n,t,i){for(var r=0,f=t.length;r<f;r++)u(n,t[r],i);return i}function wt(n,t,i,r,u){for(var e,o=[],f=0,s=n.length,h=t!=null;f<s;f++)(e=n[f])&&(!i||i(e,r,u))&&(o.push(e),h&&t.push(f));return o}function fi(n,t,i,r,u,e){return r&&!r[f]&&(r=fi(r)),u&&!u[f]&&(u=fi(u,e)),l(function(f,e,o,s){var l,c,a,p=[],y=[],w=e.length,b=f||yr(t||"*",o.nodeType?[o]:o,[]),v=n&&(f||!t)?wt(b,p,n,o,s):b,h=i?u||(f?n:w||r)?[]:e:v;if(i&&i(v,h,o,s),r)for(l=wt(h,y),r(l,[],o,s),c=l.length;c--;)(a=l[c])&&(h[y[c]]=!(v[y[c]]=a));if(f){if(u||n){if(u){for(l=[],c=h.length;c--;)(a=h[c])&&l.push(v[c]=a);u(null,h=[],l,s)}for(c=h.length;c--;)(a=h[c])&&(l=u?nt(f,a):p[c])>-1&&(f[l]=!(e[l]=a))}}else h=wt(h===e?h.splice(w,h.length):h),u?u(null,e,h,s):k.apply(e,h)})}function ei(n){for(var o,u,r,s=n.length,h=t.relative[n[0].type],c=h||t.relative[" "],i=h?1:0,l=pt(function(n){return n===o},c,!0),a=pt(function(n){return nt(o,n)>-1},c,!0),e=[function(n,t,i){var r=!h&&(i||t!==ht)||((o=t).nodeType?l(n,t,i):a(n,t,i));return o=null,r}];i<s;i++)if(u=t.relative[n[i].type])e=[pt(ui(e),u)];else{if(u=t.filter[n[i].type].apply(null,n[i].matches),u[f]){for(r=++i;r<s;r++)if(t.relative[n[r].type])break;return fi(i>1&&ui(e),i>1&&yt(n.slice(0,i-1).concat({value:n[i-2].type===" "?"*":""})).replace(at,"$1"),u,i<r&&ei(n.slice(i,r)),r<s&&ei(n=n.slice(r)),r<s&&yt(n))}e.push(u)}return ui(e)}function pr(n,r){var f=r.length>0,e=n.length>0,o=function(o,s,c,l,a){var y,nt,d,g=0,p="0",tt=o&&[],w=[],it=ht,rt=o||e&&t.find.TAG("*",a),ut=v+=it==null?1:Math.random()||.1,ft=rt.length;for(a&&(ht=s===i||s||a);p!==ft&&(y=rt[p])!=null;p++){if(e&&y){for(nt=0,s||y.ownerDocument===i||(b(y),c=!h);d=n[nt++];)if(d(y,s||i,c)){l.push(y);break}a&&(v=ut)}f&&((y=!d&&y)&&g--,o&&tt.push(y))}if(g+=p,f&&p!==g){for(nt=0;d=r[nt++];)d(tt,w,s,c);if(o){if(g>0)while(p--)tt[p]||w[p]||(w[p]=nr.call(l));w=wt(w)}k.apply(l,w),a&&!o&&w.length>0&&g+r.length>1&&u.uniqueSort(l)}return a&&(v=ut,ht=it),tt};return f?l(o):o}var rt,e,t,st,oi,ft,bt,si,ht,w,ut,b,i,s,h,o,d,ct,et,f="sizzle"+1*new Date,c=n.document,v=0,di=0,hi=ti(),ci=ti(),lt=ti(),kt=function(n,t){return n===t&&(ut=!0),0},gi={}.hasOwnProperty,g=[],nr=g.pop,tr=g.push,k=g.push,li=g.slice,nt=function(n,t){for(var i=0,r=n.length;i<r;i++)if(n[i]===t)return i;return-1},dt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",tt="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",ai="\\["+r+"*("+tt+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+tt+"))|)"+r+"*\\]",gt=":("+tt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ai+")*)|.*)\\)|)",ir=new RegExp(r+"+","g"),at=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),rr=new RegExp("^"+r+"*,"+r+"*"),ur=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),fr=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),er=new RegExp(gt),or=new RegExp("^"+tt+"$"),vt={ID:new RegExp("^#("+tt+")"),CLASS:new RegExp("^\\.("+tt+")"),TAG:new RegExp("^("+tt+"|[*])"),ATTR:new RegExp("^"+ai),PSEUDO:new RegExp("^"+gt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+dt+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},sr=/^(?:input|select|textarea|button)$/i,hr=/^h\d$/i,ot=/^[^{]+\{\s*\[native \w/,cr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ni=/[+~]/,y=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),p=function(n,t,i){var r="0x"+t-65536;return r!==r||i?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)},vi=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yi=function(n,t){return t?n==="\0"?"�":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n},pi=function(){b()},lr=pt(function(n){return n.disabled===!0&&("form"in n||"label"in n)},{dir:"parentNode",next:"legend"});try{k.apply(g=li.call(c.childNodes),c.childNodes),g[c.childNodes.length].nodeType}catch(wr){k={apply:g.length?function(n,t){tr.apply(n,li.call(t))}:function(n,t){for(var i=n.length,r=0;n[i++]=t[r++];);n.length=i-1}}}e=u.support={},oi=u.isXML=function(n){var t=n&&(n.ownerDocument||n).documentElement;return t?t.nodeName!=="HTML":!1},b=u.setDocument=function(n){var v,u,l=n?n.ownerDocument||n:c;return l===i||l.nodeType!==9||!l.documentElement?i:(i=l,s=i.documentElement,h=!oi(i),c!==i&&(u=i.defaultView)&&u.top!==u&&(u.addEventListener?u.addEventListener("unload",pi,!1):u.attachEvent&&u.attachEvent("onunload",pi)),e.attributes=a(function(n){return n.className="i",!n.getAttribute("className")}),e.getElementsByTagName=a(function(n){return n.appendChild(i.createComment("")),!n.getElementsByTagName("*").length}),e.getElementsByClassName=ot.test(i.getElementsByClassName),e.getById=a(function(n){return s.appendChild(n).id=f,!i.getElementsByName||!i.getElementsByName(f).length}),e.getById?(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){return n.getAttribute("id")===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i=t.getElementById(n);return i?[i]:[]}}):(t.filter.ID=function(n){var t=n.replace(y,p);return function(n){var i=typeof n.getAttributeNode!="undefined"&&n.getAttributeNode("id");return i&&i.value===t}},t.find.ID=function(n,t){if(typeof t.getElementById!="undefined"&&h){var i,u,f,r=t.getElementById(n);if(r){if(i=r.getAttributeNode("id"),i&&i.value===n)return[r];for(f=t.getElementsByName(n),u=0;r=f[u++];)if(i=r.getAttributeNode("id"),i&&i.value===n)return[r]}return[]}}),t.find.TAG=e.getElementsByTagName?function(n,t){return typeof t.getElementsByTagName!="undefined"?t.getElementsByTagName(n):e.qsa?t.querySelectorAll(n):void 0}:function(n,t){var i,r=[],f=0,u=t.getElementsByTagName(n);if(n==="*"){while(i=u[f++])i.nodeType===1&&r.push(i);return r}return u},t.find.CLASS=e.getElementsByClassName&&function(n,t){if(typeof t.getElementsByClassName!="undefined"&&h)return t.getElementsByClassName(n)},d=[],o=[],(e.qsa=ot.test(i.querySelectorAll))&&(a(function(n){s.appendChild(n).innerHTML="<a id='"+f+"'><\/a><select id='"+f+"-\r\\' msallowcapture=''><option selected=''><\/option><\/select>",n.querySelectorAll("[msallowcapture^='']").length&&o.push("[*^$]="+r+"*(?:''|\"\")"),n.querySelectorAll("[selected]").length||o.push("\\["+r+"*(?:value|"+dt+")"),n.querySelectorAll("[id~="+f+"-]").length||o.push("~="),n.querySelectorAll(":checked").length||o.push(":checked"),n.querySelectorAll("a#"+f+"+*").length||o.push(".#.+[+~]")}),a(function(n){n.innerHTML="<a href='' disabled='disabled'><\/a><select disabled='disabled'><option/><\/select>";var t=i.createElement("input");t.setAttribute("type","hidden"),n.appendChild(t).setAttribute("name","D"),n.querySelectorAll("[name=d]").length&&o.push("name"+r+"*[*^$|!~]?="),n.querySelectorAll(":enabled").length!==2&&o.push(":enabled",":disabled"),s.appendChild(n).disabled=!0,n.querySelectorAll(":disabled").length!==2&&o.push(":enabled",":disabled"),n.querySelectorAll("*,:x"),o.push(",.*:")})),(e.matchesSelector=ot.test(ct=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&a(function(n){e.disconnectedMatch=ct.call(n,"*"),ct.call(n,"[s!='']:x"),d.push("!=",gt)}),o=o.length&&new RegExp(o.join("|")),d=d.length&&new RegExp(d.join("|")),v=ot.test(s.compareDocumentPosition),et=v||ot.test(s.contains)?function(n,t){var r=n.nodeType===9?n.documentElement:n,i=t&&t.parentNode;return n===i||!!(i&&i.nodeType===1&&(r.contains?r.contains(i):n.compareDocumentPosition&&n.compareDocumentPosition(i)&16))}:function(n,t){if(t)while(t=t.parentNode)if(t===n)return!0;return!1},kt=v?function(n,t){if(n===t)return ut=!0,0;var r=!n.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(n.ownerDocument||n)===(t.ownerDocument||t)?n.compareDocumentPosition(t):1,r&1||!e.sortDetached&&t.compareDocumentPosition(n)===r)?n===i||n.ownerDocument===c&&et(c,n)?-1:t===i||t.ownerDocument===c&&et(c,t)?1:w?nt(w,n)-nt(w,t):0:r&4?-1:1}:function(n,t){if(n===t)return ut=!0,0;var r,u=0,o=n.parentNode,s=t.parentNode,f=[n],e=[t];if(o&&s){if(o===s)return wi(n,t)}else return n===i?-1:t===i?1:o?-1:s?1:w?nt(w,n)-nt(w,t):0;for(r=n;r=r.parentNode;)f.unshift(r);for(r=t;r=r.parentNode;)e.unshift(r);while(f[u]===e[u])u++;return u?wi(f[u],e[u]):f[u]===c?-1:e[u]===c?1:0},i)},u.matches=function(n,t){return u(n,null,null,t)},u.matchesSelector=function(n,t){if((n.ownerDocument||n)!==i&&b(n),t=t.replace(fr,"='$1']"),e.matchesSelector&&h&&!lt[t+" "]&&(!d||!d.test(t))&&(!o||!o.test(t)))try{var r=ct.call(n,t);if(r||e.disconnectedMatch||n.document&&n.document.nodeType!==11)return r}catch(f){}return u(t,i,null,[n]).length>0},u.contains=function(n,t){return(n.ownerDocument||n)!==i&&b(n),et(n,t)},u.attr=function(n,r){(n.ownerDocument||n)!==i&&b(n);var f=t.attrHandle[r.toLowerCase()],u=f&&gi.call(t.attrHandle,r.toLowerCase())?f(n,r,!h):undefined;return u!==undefined?u:e.attributes||!h?n.getAttribute(r):(u=n.getAttributeNode(r))&&u.specified?u.value:null},u.escape=function(n){return(n+"").replace(vi,yi)},u.error=function(n){throw new Error("Syntax error, unrecognized expression: "+n);},u.uniqueSort=function(n){var r,u=[],t=0,i=0;if(ut=!e.detectDuplicates,w=!e.sortStable&&n.slice(0),n.sort(kt),ut){while(r=n[i++])r===n[i]&&(t=u.push(i));while(t--)n.splice(u[t],1)}return w=null,n},st=u.getText=function(n){var r,i="",u=0,t=n.nodeType;if(t){if(t===1||t===9||t===11){if(typeof n.textContent=="string")return n.textContent;for(n=n.firstChild;n;n=n.nextSibling)i+=st(n)}else if(t===3||t===4)return n.nodeValue}else while(r=n[u++])i+=st(r);return i},t=u.selectors={cacheLength:50,createPseudo:l,match:vt,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(n){return n[1]=n[1].replace(y,p),n[3]=(n[3]||n[4]||n[5]||"").replace(y,p),n[2]==="~="&&(n[3]=" "+n[3]+" "),n.slice(0,4)},CHILD:function(n){return n[1]=n[1].toLowerCase(),n[1].slice(0,3)==="nth"?(n[3]||u.error(n[0]),n[4]=+(n[4]?n[5]+(n[6]||1):2*(n[3]==="even"||n[3]==="odd")),n[5]=+(n[7]+n[8]||n[3]==="odd")):n[3]&&u.error(n[0]),n},PSEUDO:function(n){var i,t=!n[6]&&n[2];return vt.CHILD.test(n[0])?null:(n[3]?n[2]=n[4]||n[5]||"":t&&er.test(t)&&(i=ft(t,!0))&&(i=t.indexOf(")",t.length-i)-t.length)&&(n[0]=n[0].slice(0,i),n[2]=t.slice(0,i)),n.slice(0,3))}},filter:{TAG:function(n){var t=n.replace(y,p).toLowerCase();return n==="*"?function(){return!0}:function(n){return n.nodeName&&n.nodeName.toLowerCase()===t}},CLASS:function(n){var t=hi[n+" "];return t||(t=new RegExp("(^|"+r+")"+n+"("+r+"|$)"))&&hi(n,function(n){return t.test(typeof n.className=="string"&&n.className||typeof n.getAttribute!="undefined"&&n.getAttribute("class")||"")})},ATTR:function(n,t,i){return function(r){var f=u.attr(r,n);return f==null?t==="!=":t?(f+="",t==="="?f===i:t==="!="?f!==i:t==="^="?i&&f.indexOf(i)===0:t==="*="?i&&f.indexOf(i)>-1:t==="$="?i&&f.slice(-i.length)===i:t==="~="?(" "+f.replace(ir," ")+" ").indexOf(i)>-1:t==="|="?f===i||f.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(n,t,i,r,u){var s=n.slice(0,3)!=="nth",o=n.slice(-4)!=="last",e=t==="of-type";return r===1&&u===0?function(n){return!!n.parentNode}:function(t,i,h){var p,w,y,c,a,b,k=s!==o?"nextSibling":"previousSibling",d=t.parentNode,nt=e&&t.nodeName.toLowerCase(),g=!h&&!e,l=!1;if(d){if(s){while(k){for(c=t;c=c[k];)if(e?c.nodeName.toLowerCase()===nt:c.nodeType===1)return!1;b=k=n==="only"&&!b&&"nextSibling"}return!0}if(b=[o?d.firstChild:d.lastChild],o&&g){for(c=d,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a&&p[2],c=a&&d.childNodes[a];c=++a&&c&&c[k]||(l=a=0)||b.pop();)if(c.nodeType===1&&++l&&c===t){w[n]=[v,a,l];break}}else if(g&&(c=t,y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),p=w[n]||[],a=p[0]===v&&p[1],l=a),l===!1)while(c=++a&&c&&c[k]||(l=a=0)||b.pop())if((e?c.nodeName.toLowerCase()===nt:c.nodeType===1)&&++l&&(g&&(y=c[f]||(c[f]={}),w=y[c.uniqueID]||(y[c.uniqueID]={}),w[n]=[v,l]),c===t))break;return l-=u,l===r||l%r==0&&l/r>=0}}},PSEUDO:function(n,i){var e,r=t.pseudos[n]||t.setFilters[n.toLowerCase()]||u.error("unsupported pseudo: "+n);return r[f]?r(i):r.length>1?(e=[n,n,"",i],t.setFilters.hasOwnProperty(n.toLowerCase())?l(function(n,t){for(var u,f=r(n,i),e=f.length;e--;)u=nt(n,f[e]),n[u]=!(t[u]=f[e])}):function(n){return r(n,0,e)}):r}},pseudos:{not:l(function(n){var t=[],r=[],i=bt(n.replace(at,"$1"));return i[f]?l(function(n,t,r,u){for(var e,o=i(n,null,u,[]),f=n.length;f--;)(e=o[f])&&(n[f]=!(t[f]=e))}):function(n,u,f){return t[0]=n,i(t,null,f,r),t[0]=null,!r.pop()}}),has:l(function(n){return function(t){return u(n,t).length>0}}),contains:l(function(n){return n=n.replace(y,p),function(t){return(t.textContent||t.innerText||st(t)).indexOf(n)>-1}}),lang:l(function(n){return or.test(n||"")||u.error("unsupported lang: "+n),n=n.replace(y,p).toLowerCase(),function(t){var i;do if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return i=i.toLowerCase(),i===n||i.indexOf(n+"-")===0;while((t=t.parentNode)&&t.nodeType===1);return!1}}),target:function(t){var i=n.location&&n.location.hash;return i&&i.slice(1)===t.id},root:function(n){return n===s},focus:function(n){return n===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(n.type||n.href||~n.tabIndex)},enabled:bi(!1),disabled:bi(!0),checked:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&!!n.checked||t==="option"&&!!n.selected},selected:function(n){return n.parentNode&&n.parentNode.selectedIndex,n.selected===!0},empty:function(n){for(n=n.firstChild;n;n=n.nextSibling)if(n.nodeType<6)return!1;return!0},parent:function(n){return!t.pseudos.empty(n)},header:function(n){return hr.test(n.nodeName)},input:function(n){return sr.test(n.nodeName)},button:function(n){var t=n.nodeName.toLowerCase();return t==="input"&&n.type==="button"||t==="button"},text:function(n){var t;return n.nodeName.toLowerCase()==="input"&&n.type==="text"&&((t=n.getAttribute("type"))==null||t.toLowerCase()==="text")},first:it(function(){return[0]}),last:it(function(n,t){return[t-1]}),eq:it(function(n,t,i){return[i<0?i+t:i]}),even:it(function(n,t){for(var i=0;i<t;i+=2)n.push(i);return n}),odd:it(function(n,t){for(var i=1;i<t;i+=2)n.push(i);return n}),lt:it(function(n,t,i){for(var r=i<0?i+t:i;--r>=0;)n.push(r);return n}),gt:it(function(n,t,i){for(var r=i<0?i+t:i;++r<t;)n.push(r);return n})}},t.pseudos.nth=t.pseudos.eq;for(rt in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[rt]=ar(rt);for(rt in{submit:!0,reset:!0})t.pseudos[rt]=vr(rt);return ki.prototype=t.filters=t.pseudos,t.setFilters=new ki,ft=u.tokenize=function(n,i){var e,f,s,o,r,h,c,l=ci[n+" "];if(l)return i?0:l.slice(0);for(r=n,h=[],c=t.preFilter;r;){(!e||(f=rr.exec(r)))&&(f&&(r=r.slice(f[0].length)||r),h.push(s=[])),e=!1,(f=ur.exec(r))&&(e=f.shift(),s.push({value:e,type:f[0].replace(at," ")}),r=r.slice(e.length));for(o in t.filter)(f=vt[o].exec(r))&&(!c[o]||(f=c[o](f)))&&(e=f.shift(),s.push({value:e,type:o,matches:f}),r=r.slice(e.length));if(!e)break}return i?r.length:r?u.error(n):ci(n,h).slice(0)},bt=u.compile=function(n,t){var r,u=[],e=[],i=lt[n+" "];if(!i){for(t||(t=ft(n)),r=t.length;r--;)i=ei(t[r]),i[f]?u.push(i):e.push(i);i=lt(n,pr(e,u)),i.selector=n}return i},si=u.select=function(n,i,r,u){var o,f,e,l,a,c=typeof n=="function"&&n,s=!u&&ft(n=c.selector||n);if(r=r||[],s.length===1){if(f=s[0]=s[0].slice(0),f.length>2&&(e=f[0]).type==="ID"&&i.nodeType===9&&h&&t.relative[f[1].type]){if(i=(t.find.ID(e.matches[0].replace(y,p),i)||[])[0],i)c&&(i=i.parentNode);else return r;n=n.slice(f.shift().value.length)}for(o=vt.needsContext.test(n)?0:f.length;o--;){if(e=f[o],t.relative[l=e.type])break;if((a=t.find[l])&&(u=a(e.matches[0].replace(y,p),ni.test(f[0].type)&&ri(i.parentNode)||i))){if(f.splice(o,1),n=u.length&&yt(f),!n)return k.apply(r,u),r;break}}}return(c||bt(n,s))(u,i,!h,r,!i||ni.test(n)&&ri(i.parentNode)||i),r},e.sortStable=f.split("").sort(kt).join("")===f,e.detectDuplicates=!!ut,b(),e.sortDetached=a(function(n){return n.compareDocumentPosition(i.createElement("fieldset"))&1}),a(function(n){return n.innerHTML="<a href='#'><\/a>",n.firstChild.getAttribute("href")==="#"})||ii("type|href|height|width",function(n,t,i){if(!i)return n.getAttribute(t,t.toLowerCase()==="type"?1:2)}),e.attributes&&a(function(n){return n.innerHTML="<input/>",n.firstChild.setAttribute("value",""),n.firstChild.getAttribute("value")===""})||ii("value",function(n,t,i){if(!i&&n.nodeName.toLowerCase()==="input")return n.defaultValue}),a(function(n){return n.getAttribute("disabled")==null})||ii(dt,function(n,t,i){var r;if(!i)return n[t]===!0?t.toLowerCase():(r=n.getAttributeNode(t))&&r.specified?r.value:null}),u}(n),i.find=v,i.expr=v.selectors,i.expr[":"]=i.expr.pseudos,i.uniqueSort=i.unique=v.uniqueSort,i.text=v.getText,i.isXMLDoc=v.isXML,i.contains=v.contains,i.escapeSelector=v.escape;var d=function(n,t,r){for(var u=[],f=r!==undefined;(n=n[t])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&i(n).is(r))break;u.push(n)}return u},tr=function(n,t){for(var i=[];n;n=n.nextSibling)n.nodeType===1&&n!==t&&i.push(n);return i},ir=i.expr.match.needsContext,rr=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,df=/^.[^:#\[\.,]*$/;i.filter=function(n,t,r){var u=t[0];return(r&&(n=":not("+n+")"),t.length===1&&u.nodeType===1)?i.find.matchesSelector(u,n)?[u]:[]:i.find.matches(n,i.grep(t,function(n){return n.nodeType===1}))},i.fn.extend({find:function(n){var t,r,u=this.length,f=this;if(typeof n!="string")return this.pushStack(i(n).filter(function(){for(t=0;t<u;t++)if(i.contains(f[t],this))return!0}));for(r=this.pushStack([]),t=0;t<u;t++)i.find(n,f[t],r);return u>1?i.uniqueSort(r):r},filter:function(n){return this.pushStack(fi(this,n||[],!1))},not:function(n){return this.pushStack(fi(this,n||[],!0))},is:function(n){return!!fi(this,typeof n=="string"&&ir.test(n)?i(n):n||[],!1).length}}),fr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,er=i.fn.init=function(n,t,r){var f,e;if(!n)return this;if(r=r||ur,typeof n=="string"){if(f=n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?[null,n,null]:fr.exec(n),f&&(f[1]||!t)){if(f[1]){if(t=t instanceof i?t[0]:t,i.merge(this,i.parseHTML(f[1],t&&t.nodeType?t.ownerDocument||t:u,!0)),rr.test(f[1])&&i.isPlainObject(t))for(f in t)i.isFunction(this[f])?this[f](t[f]):this.attr(f,t[f]);return this}return e=u.getElementById(f[2]),e&&(this[0]=e,this.length=1),this}return!t||t.jquery?(t||r).find(n):this.constructor(t).find(n)}return n.nodeType?(this[0]=n,this.length=1,this):i.isFunction(n)?r.ready!==undefined?r.ready(n):n(i):i.makeArray(n,this)},er.prototype=i.fn,ur=i(u),or=/^(?:parents|prev(?:Until|All))/,sr={children:!0,contents:!0,next:!0,prev:!0},i.fn.extend({has:function(n){var t=i(n,this),r=t.length;return this.filter(function(){for(var n=0;n<r;n++)if(i.contains(this,t[n]))return!0})},closest:function(n,t){var r,f=0,o=this.length,u=[],e=typeof n!="string"&&i(n);if(!ir.test(n))for(;f<o;f++)for(r=this[f];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(e?e.index(r)>-1:r.nodeType===1&&i.find.matchesSelector(r,n))){u.push(r);break}return this.pushStack(u.length>1?i.uniqueSort(u):u)},index:function(n){return n?typeof n=="string"?ot.call(i(n),this[0]):ot.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,t){return this.pushStack(i.uniqueSort(i.merge(this.get(),i(n,t))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}}),i.each({parent:function(n){var t=n.parentNode;return t&&t.nodeType!==11?t:null},parents:function(n){return d(n,"parentNode")},parentsUntil:function(n,t,i){return d(n,"parentNode",i)},next:function(n){return hr(n,"nextSibling")},prev:function(n){return hr(n,"previousSibling")},nextAll:function(n){return d(n,"nextSibling")},prevAll:function(n){return d(n,"previousSibling")},nextUntil:function(n,t,i){return d(n,"nextSibling",i)},prevUntil:function(n,t,i){return d(n,"previousSibling",i)},siblings:function(n){return tr((n.parentNode||{}).firstChild,n)},children:function(n){return tr(n.firstChild)},contents:function(n){return n.contentDocument||i.merge([],n.childNodes)}},function(n,t){i.fn[n]=function(r,u){var f=i.map(this,t,r);return n.slice(-5)!=="Until"&&(u=r),u&&typeof u=="string"&&(f=i.filter(u,f)),this.length>1&&(sr[n]||i.uniqueSort(f),or.test(n)&&f.reverse()),this.pushStack(f)}}),h=/[^\x20\t\r\n\f]+/g,i.Callbacks=function(n){n=typeof n=="string"?gf(n):i.extend({},n);var f,r,h,e,t=[],o=[],u=-1,c=function(){for(e=n.once,h=f=!0;o.length;u=-1)for(r=o.shift();++u<t.length;)t[u].apply(r[0],r[1])===!1&&n.stopOnFalse&&(u=t.length,r=!1);n.memory||(r=!1),f=!1,e&&(t=r?[]:"")},s={add:function(){return t&&(r&&!f&&(u=t.length-1,o.push(r)),function e(r){i.each(r,function(r,u){i.isFunction(u)?n.unique&&s.has(u)||t.push(u):u&&u.length&&i.type(u)!=="string"&&e(u)})}(arguments),r&&!f&&c()),this},remove:function(){return i.each(arguments,function(n,r){for(var f;(f=i.inArray(r,t,f))>-1;)t.splice(f,1),f<=u&&u--}),this},has:function(n){return n?i.inArray(n,t)>-1:t.length>0},empty:function(){return t&&(t=[]),this},disable:function(){return e=o=[],t=r="",this},disabled:function(){return!t},lock:function(){return e=o=[],r||f||(t=r=""),this},locked:function(){return!!e},fireWith:function(n,t){return e||(t=t||[],t=[n,t.slice?t.slice():t],o.push(t),f||c()),this},fire:function(){return s.fireWith(this,arguments),this},fired:function(){return!!h}};return s},i.extend({Deferred:function(t){var u=[["notify","progress",i.Callbacks("memory"),i.Callbacks("memory"),2],["resolve","done",i.Callbacks("once memory"),i.Callbacks("once memory"),0,"resolved"],["reject","fail",i.Callbacks("once memory"),i.Callbacks("once memory"),1,"rejected"]],e="pending",f={state:function(){return e},always:function(){return r.done(arguments).fail(arguments),this},"catch":function(n){return f.then(null,n)},pipe:function(){var n=arguments;return i.Deferred(function(t){i.each(u,function(u,f){var e=i.isFunction(n[f[4]])&&n[f[4]];r[f[1]](function(){var n=e&&e.apply(this,arguments);n&&i.isFunction(n.promise)?n.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[f[0]+"With"](this,e?[n]:arguments)})}),n=null}).promise()},then:function(t,r,f){function o(t,r,u,f){return function(){var s=this,h=arguments,l=function(){var n,c;if(!(t<e)){if(n=u.apply(s,h),n===r.promise())throw new TypeError("Thenable self-resolution");c=n&&(typeof n=="object"||typeof n=="function")&&n.then,i.isFunction(c)?f?c.call(n,o(e,r,g,f),o(e,r,pt,f)):(e++,c.call(n,o(e,r,g,f),o(e,r,pt,f),o(e,r,g,r.notifyWith))):(u!==g&&(s=undefined,h=[n]),(f||r.resolveWith)(s,h))}},c=f?l:function(){try{l()}catch(n){i.Deferred.exceptionHook&&i.Deferred.exceptionHook(n,c.stackTrace),t+1>=e&&(u!==pt&&(s=undefined,h=[n]),r.rejectWith(s,h))}};t?c():(i.Deferred.getStackHook&&(c.stackTrace=i.Deferred.getStackHook()),n.setTimeout(c))}}var e=0;return i.Deferred(function(n){u[0][3].add(o(0,n,i.isFunction(f)?f:g,n.notifyWith)),u[1][3].add(o(0,n,i.isFunction(t)?t:g)),u[2][3].add(o(0,n,i.isFunction(r)?r:pt))}).promise()},promise:function(n){return n!=null?i.extend(n,f):f}},r={};return i.each(u,function(n,t){var i=t[2],o=t[5];f[t[1]]=i.add,o&&i.add(function(){e=o},u[3-n][2].disable,u[0][2].lock),i.add(t[3].fire),r[t[0]]=function(){return r[t[0]+"With"](this===r?undefined:this,arguments),this},r[t[0]+"With"]=i.fireWith}),f.promise(r),t&&t.call(r,r),r},when:function(n){var f=arguments.length,t=f,e=Array(t),u=p.call(arguments),r=i.Deferred(),o=function(n){return function(t){e[n]=this,u[n]=arguments.length>1?p.call(arguments):t,--f||r.resolveWith(e,u)}};if(f<=1&&(cr(n,r.done(o(t)).resolve,r.reject),r.state()==="pending"||i.isFunction(u[t]&&u[t].then)))return r.then();while(t--)cr(u[t],o(t),r.reject);return r.promise()}}),lr=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,i.Deferred.exceptionHook=function(t,i){n.console&&n.console.warn&&t&&lr.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},i.readyException=function(t){n.setTimeout(function(){throw t;})},wt=i.Deferred(),i.fn.ready=function(n){return wt.then(n).catch(function(n){i.readyException(n)}),this},i.extend({isReady:!1,readyWait:1,holdReady:function(n){n?i.readyWait++:i.ready(!0)},ready:function(n){(n===!0?--i.readyWait:i.isReady)||(i.isReady=!0,n!==!0&&--i.readyWait>0)||wt.resolveWith(u,[i])}}),i.ready.then=wt.then,u.readyState!=="complete"&&(u.readyState==="loading"||u.documentElement.doScroll)?(u.addEventListener("DOMContentLoaded",bt),n.addEventListener("load",bt)):n.setTimeout(i.ready),a=function(n,t,r,u,f,e,o){var s=0,c=n.length,h=r==null;if(i.type(r)==="object"){f=!0;for(s in r)a(n,t,s,r[s],!0,e,o)}else if(u!==undefined&&(f=!0,i.isFunction(u)||(o=!0),h&&(o?(t.call(n,u),t=null):(h=t,t=function(n,t,r){return h.call(i(n),r)})),t))for(;s<c;s++)t(n[s],r,o?u:u.call(n[s],s,t(n[s],r)));return f?n:h?t.call(n):c?t(n[0],r):e},st=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType},ht.uid=1,ht.prototype={cache:function(n){var t=n[this.expando];return t||(t={},st(n)&&(n.nodeType?n[this.expando]=t:Object.defineProperty(n,this.expando,{value:t,configurable:!0}))),t},set:function(n,t,r){var u,f=this.cache(n);if(typeof t=="string")f[i.camelCase(t)]=r;else for(u in t)f[i.camelCase(u)]=t[u];return f},get:function(n,t){return t===undefined?this.cache(n):n[this.expando]&&n[this.expando][i.camelCase(t)]},access:function(n,t,i){return t===undefined||t&&typeof t=="string"&&i===undefined?this.get(n,t):(this.set(n,t,i),i!==undefined?i:t)},remove:function(n,t){var u,r=n[this.expando];if(r!==undefined){if(t!==undefined)for(i.isArray(t)?t=t.map(i.camelCase):(t=i.camelCase(t),t=t in r?[t]:t.match(h)||[]),u=t.length;u--;)delete r[t[u]];(t===undefined||i.isEmptyObject(r))&&(n.nodeType?n[this.expando]=undefined:delete n[this.expando])}},hasData:function(n){var t=n[this.expando];return t!==undefined&&!i.isEmptyObject(t)}};var r=new ht,e=new ht,ne=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;i.extend({hasData:function(n){return e.hasData(n)||r.hasData(n)},data:function(n,t,i){return e.access(n,t,i)},removeData:function(n,t){e.remove(n,t)},_data:function(n,t,i){return r.access(n,t,i)},_removeData:function(n,t){r.remove(n,t)}}),i.fn.extend({data:function(n,t){var o,f,s,u=this[0],h=u&&u.attributes;if(n===undefined){if(this.length&&(s=e.get(u),u.nodeType===1&&!r.get(u,"hasDataAttrs"))){for(o=h.length;o--;)h[o]&&(f=h[o].name,f.indexOf("data-")===0&&(f=i.camelCase(f.slice(5)),ar(u,f,s[f])));r.set(u,"hasDataAttrs",!0)}return s}return typeof n=="object"?this.each(function(){e.set(this,n)}):a(this,function(t){var i;if(u&&t===undefined)return(i=e.get(u,n),i!==undefined)?i:(i=ar(u,n),i!==undefined)?i:void 0;this.each(function(){e.set(this,n,t)})},null,t,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){e.remove(this,n)})}}),i.extend({queue:function(n,t,u){var f;if(n)return t=(t||"fx")+"queue",f=r.get(n,t),u&&(!f||i.isArray(u)?f=r.access(n,t,i.makeArray(u)):f.push(u)),f||[]},dequeue:function(n,t){t=t||"fx";var r=i.queue(n,t),e=r.length,u=r.shift(),f=i._queueHooks(n,t),o=function(){i.dequeue(n,t)};u==="inprogress"&&(u=r.shift(),e--),u&&(t==="fx"&&r.unshift("inprogress"),delete f.stop,u.call(n,o,f)),!e&&f&&f.empty.fire()},_queueHooks:function(n,t){var u=t+"queueHooks";return r.get(n,u)||r.access(n,u,{empty:i.Callbacks("once memory").add(function(){r.remove(n,[t+"queue",u])})})}}),i.fn.extend({queue:function(n,t){var r=2;return(typeof n!="string"&&(t=n,n="fx",r--),arguments.length<r)?i.queue(this[0],n):t===undefined?this:this.each(function(){var r=i.queue(this,n,t);i._queueHooks(this,n),n==="fx"&&r[0]!=="inprogress"&&i.dequeue(this,n)})},dequeue:function(n){return this.each(function(){i.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,t){var u,e=1,o=i.Deferred(),f=this,s=this.length,h=function(){--e||o.resolveWith(f,[f])};for(typeof n!="string"&&(t=n,n=undefined),n=n||"fx";s--;)u=r.get(f[s],n+"queueHooks"),u&&u.empty&&(e++,u.empty.add(h));return h(),o.promise(t)}});var vr=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ct=new RegExp("^(?:([+-])=|)("+vr+")([a-z%]*)$","i"),w=["Top","Right","Bottom","Left"],kt=function(n,t){return n=t||n,n.style.display==="none"||n.style.display===""&&i.contains(n.ownerDocument,n)&&i.css(n,"display")==="none"},yr=function(n,t,i,r){var f,u,e={};for(u in t)e[u]=n.style[u],n.style[u]=t[u];f=i.apply(n,r||[]);for(u in t)n.style[u]=e[u];return f};ei={},i.fn.extend({show:function(){return nt(this,!0)},hide:function(){return nt(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){kt(this)?i(this).show():i(this).hide()})}});var wr=/^(?:checkbox|radio)$/i,br=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,kr=/^$|\/(?:java|ecma)script/i,c={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,"",""]};c.optgroup=c.option,c.tbody=c.tfoot=c.colgroup=c.caption=c.thead,c.th=c.td,dr=/<|&#?\w+;/,function(){var i=u.createDocumentFragment(),n=i.appendChild(u.createElement("div")),t=u.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),n.appendChild(t),f.checkClone=n.cloneNode(!0).cloneNode(!0).lastChild.checked,n.innerHTML="<textarea>x<\/textarea>",f.noCloneChecked=!!n.cloneNode(!0).lastChild.defaultValue}();var dt=u.documentElement,ue=/^key/,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,nu=/^([^.]*)(?:\.(.+)|)/;i.event={global:{},add:function(n,t,u,f,e){var v,y,w,p,b,c,s,l,o,k,d,a=r.get(n);if(a)for(u.handler&&(v=u,u=v.handler,e=v.selector),e&&i.find.matchesSelector(dt,e),u.guid||(u.guid=i.guid++),(p=a.events)||(p=a.events={}),(y=a.handle)||(y=a.handle=function(t){return typeof i!="undefined"&&i.event.triggered!==t.type?i.event.dispatch.apply(n,arguments):undefined}),t=(t||"").match(h)||[""],b=t.length;b--;)(w=nu.exec(t[b])||[],o=d=w[1],k=(w[2]||"").split(".").sort(),o)&&(s=i.event.special[o]||{},o=(e?s.delegateType:s.bindType)||o,s=i.event.special[o]||{},c=i.extend({type:o,origType:d,data:f,handler:u,guid:u.guid,selector:e,needsContext:e&&i.expr.match.needsContext.test(e),namespace:k.join(".")},v),(l=p[o])||(l=p[o]=[],l.delegateCount=0,s.setup&&s.setup.call(n,f,k,y)!==!1||n.addEventListener&&n.addEventListener(o,y)),s.add&&(s.add.call(n,c),c.handler.guid||(c.handler.guid=u.guid)),e?l.splice(l.delegateCount++,0,c):l.push(c),i.event.global[o]=!0)},remove:function(n,t,u,f,e){var y,k,c,v,p,s,l,a,o,b,d,w=r.hasData(n)&&r.get(n);if(w&&(v=w.events)){for(t=(t||"").match(h)||[""],p=t.length;p--;){if(c=nu.exec(t[p])||[],o=d=c[1],b=(c[2]||"").split(".").sort(),!o){for(o in v)i.event.remove(n,o+t[p],u,f,!0);continue}for(l=i.event.special[o]||{},o=(f?l.delegateType:l.bindType)||o,a=v[o]||[],c=c[2]&&new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"),k=y=a.length;y--;)s=a[y],(e||d===s.origType)&&(!u||u.guid===s.guid)&&(!c||c.test(s.namespace))&&(!f||f===s.selector||f==="**"&&s.selector)&&(a.splice(y,1),s.selector&&a.delegateCount--,l.remove&&l.remove.call(n,s));k&&!a.length&&(l.teardown&&l.teardown.call(n,b,w.handle)!==!1||i.removeEvent(n,o,w.handle),delete v[o])}i.isEmptyObject(v)&&r.remove(n,"handle events")}},dispatch:function(n){var t=i.event.fix(n),u,c,s,e,f,l,h=new Array(arguments.length),a=(r.get(this,"events")||{})[t.type]||[],o=i.event.special[t.type]||{};for(h[0]=t,u=1;u<arguments.length;u++)h[u]=arguments[u];if(t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){for(l=i.event.handlers.call(this,t,a),u=0;(e=l[u++])&&!t.isPropagationStopped();)for(t.currentTarget=e.elem,c=0;(f=e.handlers[c++])&&!t.isImmediatePropagationStopped();)(!t.rnamespace||t.rnamespace.test(f.namespace))&&(t.handleObj=f,t.data=f.data,s=((i.event.special[f.origType]||{}).handle||f.handler).apply(e.elem,h),s!==undefined&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()));return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(n,t){var f,e,u,o,s,c=[],h=t.delegateCount,r=n.target;if(h&&r.nodeType&&!(n.type==="click"&&n.button>=1))for(;r!==this;r=r.parentNode||this)if(r.nodeType===1&&!(n.type==="click"&&r.disabled===!0)){for(o=[],s={},f=0;f<h;f++)e=t[f],u=e.selector+" ",s[u]===undefined&&(s[u]=e.needsContext?i(u,this).index(r)>-1:i.find(u,this,null,[r]).length),s[u]&&o.push(e);o.length&&c.push({elem:r,handlers:o})}return r=this,h<t.length&&c.push({elem:r,handlers:t.slice(h)}),c},addProp:function(n,t){Object.defineProperty(i.Event.prototype,n,{enumerable:!0,configurable:!0,get:i.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(t){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(n){return n[i.expando]?n:new i.Event(n)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==tu()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===tu()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(this.type==="checkbox"&&this.click&&i.nodeName(this,"input"))return this.click(),!1},_default:function(n){return i.nodeName(n.target,"a")}},beforeunload:{postDispatch:function(n){n.result!==undefined&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}},i.removeEvent=function(n,t,i){n.removeEventListener&&n.removeEventListener(t,i)},i.Event=function(n,t){if(!(this instanceof i.Event))return new i.Event(n,t);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===undefined&&n.returnValue===!1?gt:tt,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,t&&i.extend(this,t),this.timeStamp=n&&n.timeStamp||i.now(),this[i.expando]=!0},i.Event.prototype={constructor:i.Event,isDefaultPrevented:tt,isPropagationStopped:tt,isImmediatePropagationStopped:tt,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=gt,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=gt,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=gt,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},i.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(n){var t=n.button;return n.which==null&&ue.test(n.type)?n.charCode!=null?n.charCode:n.keyCode:!n.which&&t!==undefined&&fe.test(n.type)?t&1?1:t&2?3:t&4?2:0:n.which}},i.event.addProp),i.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,t){i.event.special[n]={delegateType:t,bindType:t,handle:function(n){var u,f=this,r=n.relatedTarget,e=n.handleObj;return r&&(r===f||i.contains(f,r))||(n.type=e.origType,u=e.handler.apply(this,arguments),n.type=t),u}}}),i.fn.extend({on:function(n,t,i,r){return si(this,n,t,i,r)},one:function(n,t,i,r){return si(this,n,t,i,r,1)},off:function(n,t,r){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,i(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,t,n[f]);return this}return(t===!1||typeof t=="function")&&(r=t,t=undefined),r===!1&&(r=tt),this.each(function(){i.event.remove(this,n,r,t)})}});var ee=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,oe=/<script|<style|<link/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,he=/^true\/(.*)/,ce=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;i.extend({htmlPrefilter:function(n){return n.replace(ee,"<$1><\/$2>")},clone:function(n,t,r){var u,c,s,e,h=n.cloneNode(!0),l=i.contains(n.ownerDocument,n);if(!f.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!i.isXMLDoc(n))for(e=o(h),s=o(n),u=0,c=s.length;u<c;u++)ve(s[u],e[u]);if(t)if(r)for(s=s||o(n),e=e||o(h),u=0,c=s.length;u<c;u++)ru(s[u],e[u]);else ru(n,h);return e=o(h,"script"),e.length>0&&oi(e,!l&&o(n,"script")),h},cleanData:function(n){for(var u,t,f,s=i.event.special,o=0;(t=n[o])!==undefined;o++)if(st(t)){if(u=t[r.expando]){if(u.events)for(f in u.events)s[f]?i.event.remove(t,f):i.removeEvent(t,f,u.handle);t[r.expando]=undefined}t[e.expando]&&(t[e.expando]=undefined)}}}),i.fn.extend({detach:function(n){return uu(this,n,!0)},remove:function(n){return uu(this,n)},text:function(n){return a(this,function(n){return n===undefined?i.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=n)})},null,n,arguments.length)},append:function(){return it(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=iu(this,n);t.appendChild(n)}})},prepend:function(){return it(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=iu(this,n);t.insertBefore(n,t.firstChild)}})},before:function(){return it(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return it(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,t=0;(n=this[t])!=null;t++)n.nodeType===1&&(i.cleanData(o(n,!1)),n.textContent="");return this},clone:function(n,t){return n=n==null?!1:n,t=t==null?n:t,this.map(function(){return i.clone(this,n,t)})},html:function(n){return a(this,function(n){var t=this[0]||{},r=0,u=this.length;if(n===undefined&&t.nodeType===1)return t.innerHTML;if(typeof n=="string"&&!oe.test(n)&&!c[(br.exec(n)||["",""])[1].toLowerCase()]){n=i.htmlPrefilter(n);try{for(;r<u;r++)t=this[r]||{},t.nodeType===1&&(i.cleanData(o(t,!1)),t.innerHTML=n);t=0}catch(f){}}t&&this.empty().append(n)},null,n,arguments.length)},replaceWith:function(){var n=[];return it(this,arguments,function(t){var r=this.parentNode;i.inArray(this,n)<0&&(i.cleanData(o(this)),r&&r.replaceChild(t,this))},n)}}),i.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,t){i.fn[n]=function(n){for(var u,f=[],e=i(n),o=e.length-1,r=0;r<=o;r++)u=r===o?this:this.clone(!0),i(e[r])[t](u),ri.apply(f,u.get());return this.pushStack(f)}});var fu=/^margin/,hi=new RegExp("^("+vr+")(?!px)[a-z%]+$","i"),ni=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=n),i.getComputedStyle(t)};(function(){function r(){if(t){t.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",t.innerHTML="",dt.appendChild(e);var i=n.getComputedStyle(t);o=i.top!=="1%",c=i.marginLeft==="2px",s=i.width==="4px",t.style.marginRight="50%",h=i.marginRight==="4px",dt.removeChild(e),t=null}}var o,s,h,c,e=u.createElement("div"),t=u.createElement("div");t.style&&(t.style.backgroundClip="content-box",t.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle=t.style.backgroundClip==="content-box",e.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.appendChild(t),i.extend(f,{pixelPosition:function(){return r(),o},boxSizingReliable:function(){return r(),s},pixelMarginRight:function(){return r(),h},reliableMarginLeft:function(){return r(),c}}))})();var ye=/^(none|table(?!-c[ea]).+)/,pe={position:"absolute",visibility:"hidden",display:"block"},ou={letterSpacing:"0",fontWeight:"400"},su=["Webkit","Moz","ms"],hu=u.createElement("div").style;i.extend({cssHooks:{opacity:{get:function(n,t){if(t){var i=lt(n,"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:{float:"cssFloat"},style:function(n,t,r,u){if(n&&n.nodeType!==3&&n.nodeType!==8&&n.style){var e,h,o,s=i.camelCase(t),c=n.style;if(t=i.cssProps[s]||(i.cssProps[s]=cu(s)||s),o=i.cssHooks[t]||i.cssHooks[s],r!==undefined){if(h=typeof r,h==="string"&&(e=ct.exec(r))&&e[1]&&(r=pr(n,t,e),h="number"),r==null||r!==r)return;h==="number"&&(r+=e&&e[3]||(i.cssNumber[s]?"":"px")),f.clearCloneStyle||r!==""||t.indexOf("background")!==0||(c[t]="inherit"),o&&"set"in o&&(r=o.set(n,r,u))===undefined||(c[t]=r)}else return o&&"get"in o&&(e=o.get(n,!1,u))!==undefined?e:c[t]}},css:function(n,t,r,u){var f,s,o,e=i.camelCase(t);return(t=i.cssProps[e]||(i.cssProps[e]=cu(e)||e),o=i.cssHooks[t]||i.cssHooks[e],o&&"get"in o&&(f=o.get(n,!0,r)),f===undefined&&(f=lt(n,t,u)),f==="normal"&&t in ou&&(f=ou[t]),r===""||r)?(s=parseFloat(f),r===!0||isFinite(s)?s||0:f):f}}),i.each(["height","width"],function(n,t){i.cssHooks[t]={get:function(n,r,u){if(r)return ye.test(i.css(n,"display"))&&(!n.getClientRects().length||!n.getBoundingClientRect().width)?yr(n,pe,function(){return vu(n,t,u)}):vu(n,t,u)},set:function(n,r,u){var f,e=u&&ni(n),o=u&&au(n,t,u,i.css(n,"boxSizing",!1,e)==="border-box",e);return o&&(f=ct.exec(r))&&(f[3]||"px")!=="px"&&(n.style[t]=r,r=i.css(n,t)),lu(n,r,o)}}}),i.cssHooks.marginLeft=eu(f.reliableMarginLeft,function(n,t){if(t)return(parseFloat(lt(n,"marginLeft"))||n.getBoundingClientRect().left-yr(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"}),i.each({margin:"",padding:"",border:"Width"},function(n,t){i.cssHooks[n+t]={expand:function(i){for(var r=0,f={},u=typeof i=="string"?i.split(" "):[i];r<4;r++)f[n+w[r]+t]=u[r]||u[r-2]||u[0];return f}},fu.test(n)||(i.cssHooks[n+t].set=lu)}),i.fn.extend({css:function(n,t){return a(this,function(n,t,r){var f,e,o={},u=0;if(i.isArray(t)){for(f=ni(n),e=t.length;u<e;u++)o[t[u]]=i.css(n,t[u],!1,f);return o}return r!==undefined?i.style(n,t,r):i.css(n,t)},n,t,arguments.length>1)}}),i.Tween=s,s.prototype={constructor:s,init:function(n,t,r,u,f,e){this.elem=n,this.prop=r,this.easing=f||i.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=u,this.unit=e||(i.cssNumber[r]?"":"px")},cur:function(){var n=s.propHooks[this.prop];return n&&n.get?n.get(this):s.propHooks._default.get(this)},run:function(n){var t,r=s.propHooks[this.prop];return this.pos=this.options.duration?t=i.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):t=n,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):s.propHooks._default.set(this),this}},s.prototype.init.prototype=s.prototype,s.propHooks={_default:{get:function(n){var t;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(t=i.css(n.elem,n.prop,""),!t||t==="auto"?0:t)},set:function(n){i.fx.step[n.prop]?i.fx.step[n.prop](n):n.elem.nodeType===1&&(n.elem.style[i.cssProps[n.prop]]!=null||i.cssHooks[n.prop])?i.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}},s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},i.easing={linear:function(n){return n},swing:function(n){return.5-Math.cos(n*Math.PI)/2},_default:"swing"},i.fx=s.prototype.init,i.fx.step={},yu=/^(?:toggle|show|hide)$/,pu=/queueHooks$/,i.Animation=i.extend(l,{tweeners:{"*":[function(n,t){var i=this.createTween(n,t);return pr(i.elem,n,ct.exec(t),i),i}]},tweener:function(n,t){i.isFunction(n)?(t=n,n=["*"]):n=n.match(h);for(var r,u=0,f=n.length;u<f;u++)r=n[u],l.tweeners[r]=l.tweeners[r]||[],l.tweeners[r].unshift(t)},prefilters:[we],prefilter:function(n,t){t?l.prefilters.unshift(n):l.prefilters.push(n)}}),i.speed=function(n,t,r){var f=n&&typeof n=="object"?i.extend({},n):{complete:r||!r&&t||i.isFunction(n)&&n,duration:n,easing:r&&t||t&&!i.isFunction(t)&&t};return i.fx.off||u.hidden?f.duration=0:typeof f.duration!="number"&&(f.duration=f.duration in i.fx.speeds?i.fx.speeds[f.duration]:i.fx.speeds._default),(f.queue==null||f.queue===!0)&&(f.queue="fx"),f.old=f.complete,f.complete=function(){i.isFunction(f.old)&&f.old.call(this),f.queue&&i.dequeue(this,f.queue)},f},i.fn.extend({fadeTo:function(n,t,i,r){return this.filter(kt).css("opacity",0).show().end().animate({opacity:t},n,i,r)},animate:function(n,t,u,f){var s=i.isEmptyObject(n),o=i.speed(t,u,f),e=function(){var t=l(this,i.extend({},n),o);(s||r.get(this,"finish"))&&t.stop(!0)};return e.finish=e,s||o.queue===!1?this.each(e):this.queue(o.queue,e)},stop:function(n,t,u){var f=function(n){var t=n.stop;delete n.stop,t(u)};return typeof n!="string"&&(u=t,t=n,n=undefined),t&&n!==!1&&this.queue(n||"fx",[]),this.each(function(){var s=!0,t=n!=null&&n+"queueHooks",o=i.timers,e=r.get(this);if(t)e[t]&&e[t].stop&&f(e[t]);else for(t in e)e[t]&&e[t].stop&&pu.test(t)&&f(e[t]);for(t=o.length;t--;)o[t].elem===this&&(n==null||o[t].queue===n)&&(o[t].anim.stop(u),s=!1,o.splice(t,1));(s||!u)&&i.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var t,e=r.get(this),u=e[n+"queue"],o=e[n+"queueHooks"],f=i.timers,s=u?u.length:0;for(e.finish=!0,i.queue(this,n,[]),o&&o.stop&&o.stop.call(this,!0),t=f.length;t--;)f[t].elem===this&&f[t].queue===n&&(f[t].anim.stop(!0),f.splice(t,1));for(t=0;t<s;t++)u[t]&&u[t].finish&&u[t].finish.call(this);delete e.finish})}}),i.each(["toggle","show","hide"],function(n,t){var r=i.fn[t];i.fn[t]=function(n,i,u){return n==null||typeof n=="boolean"?r.apply(this,arguments):this.animate(ti(t,!0),n,i,u)}}),i.each({slideDown:ti("show"),slideUp:ti("hide"),slideToggle:ti("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,t){i.fn[n]=function(n,i,r){return this.animate(t,n,i,r)}}),i.timers=[],i.fx.tick=function(){var r,n=0,t=i.timers;for(rt=i.now();n<t.length;n++)r=t[n],r()||t[n]!==r||t.splice(n--,1);t.length||i.fx.stop(),rt=undefined},i.fx.timer=function(n){i.timers.push(n),n()?i.fx.start():i.timers.pop()},i.fx.interval=13,i.fx.start=function(){ut||(ut=n.requestAnimationFrame?n.requestAnimationFrame(wu):n.setInterval(i.fx.tick,i.fx.interval))},i.fx.stop=function(){n.cancelAnimationFrame?n.cancelAnimationFrame(ut):n.clearInterval(ut),ut=null},i.fx.speeds={slow:600,fast:200,_default:400},i.fn.delay=function(t,r){return t=i.fx?i.fx.speeds[t]||t:t,r=r||"fx",this.queue(r,function(i,r){var u=n.setTimeout(i,t);r.stop=function(){n.clearTimeout(u)}})},function(){var n=u.createElement("input"),t=u.createElement("select"),i=t.appendChild(u.createElement("option"));n.type="checkbox",f.checkOn=n.value!=="",f.optSelected=i.selected,n=u.createElement("input"),n.value="t",n.type="radio",f.radioValue=n.value==="t"}(),ft=i.expr.attrHandle,i.fn.extend({attr:function(n,t){return a(this,i.attr,n,t,arguments.length>1)},removeAttr:function(n){return this.each(function(){i.removeAttr(this,n)})}}),i.extend({attr:function(n,t,r){var u,f,e=n.nodeType;if(e!==3&&e!==8&&e!==2){if(typeof n.getAttribute=="undefined")return i.prop(n,t,r);if(e===1&&i.isXMLDoc(n)||(f=i.attrHooks[t.toLowerCase()]||(i.expr.match.bool.test(t)?du:undefined)),r!==undefined){if(r===null){i.removeAttr(n,t);return}return f&&"set"in f&&(u=f.set(n,r,t))!==undefined?u:(n.setAttribute(t,r+""),r)}return f&&"get"in f&&(u=f.get(n,t))!==null?u:(u=i.find.attr(n,t),u==null?undefined:u)}},attrHooks:{type:{set:function(n,t){if(!f.radioValue&&t==="radio"&&i.nodeName(n,"input")){var r=n.value;return n.setAttribute("type",t),r&&(n.value=r),t}}}},removeAttr:function(n,t){var i,u=0,r=t&&t.match(h);if(r&&n.nodeType===1)while(i=r[u++])n.removeAttribute(i)}}),du={set:function(n,t,r){return t===!1?i.removeAttr(n,r):n.setAttribute(r,r),r}},i.each(i.expr.match.bool.source.match(/\w+/g),function(n,t){var r=ft[t]||i.find.attr;ft[t]=function(n,t,i){var f,e,u=t.toLowerCase();return i||(e=ft[u],ft[u]=f,f=r(n,t,i)!=null?u:null,ft[u]=e),f}}),gu=/^(?:input|select|textarea|button)$/i,nf=/^(?:a|area)$/i,i.fn.extend({prop:function(n,t){return a(this,i.prop,n,t,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[i.propFix[n]||n]})}}),i.extend({prop:function(n,t,r){var f,u,e=n.nodeType;if(e!==3&&e!==8&&e!==2)return(e===1&&i.isXMLDoc(n)||(t=i.propFix[t]||t,u=i.propHooks[t]),r!==undefined)?u&&"set"in u&&(f=u.set(n,r,t))!==undefined?f:n[t]=r:u&&"get"in u&&(f=u.get(n,t))!==null?f:n[t]},propHooks:{tabIndex:{get:function(n){var t=i.find.attr(n,"tabindex");return t?parseInt(t,10):gu.test(n.nodeName)||nf.test(n.nodeName)&&n.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),f.optSelected||(i.propHooks.selected={get:function(n){var t=n.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(n){var t=n.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),i.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){i.propFix[this.toLowerCase()]=this}),i.fn.extend({addClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).addClass(n.call(this,t,k(this)))});if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&" "+b(u)+" ",t){for(s=0;f=o[s++];)t.indexOf(" "+f+" ")<0&&(t+=f+" ");e=b(t),u!==e&&r.setAttribute("class",e)}return this},removeClass:function(n){var o,r,t,u,f,s,e,c=0;if(i.isFunction(n))return this.each(function(t){i(this).removeClass(n.call(this,t,k(this)))});if(!arguments.length)return this.attr("class","");if(typeof n=="string"&&n)for(o=n.match(h)||[];r=this[c++];)if(u=k(r),t=r.nodeType===1&&" "+b(u)+" ",t){for(s=0;f=o[s++];)while(t.indexOf(" "+f+" ")>-1)t=t.replace(" "+f+" "," ");e=b(t),u!==e&&r.setAttribute("class",e)}return this},toggleClass:function(n,t){var u=typeof n;return typeof t=="boolean"&&u==="string"?t?this.addClass(n):this.removeClass(n):i.isFunction(n)?this.each(function(r){i(this).toggleClass(n.call(this,r,k(this),t),t)}):this.each(function(){var t,e,f,o;if(u==="string")for(e=0,f=i(this),o=n.match(h)||[];t=o[e++];)f.hasClass(t)?f.removeClass(t):f.addClass(t);else(n===undefined||u==="boolean")&&(t=k(this),t&&r.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||n===!1?"":r.get(this,"__className__")||""))})},hasClass:function(n){for(var t,r=0,i=" "+n+" ";t=this[r++];)if(t.nodeType===1&&(" "+b(k(t))+" ").indexOf(i)>-1)return!0;return!1}}),tf=/\r/g,i.fn.extend({val:function(n){var t,r,f,u=this[0];return arguments.length?(f=i.isFunction(n),this.each(function(r){var u;this.nodeType===1&&(u=f?n.call(this,r,i(this).val()):n,u==null?u="":typeof u=="number"?u+="":i.isArray(u)&&(u=i.map(u,function(n){return n==null?"":n+""})),t=i.valHooks[this.type]||i.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&t.set(this,u,"value")!==undefined||(this.value=u))})):u?(t=i.valHooks[u.type]||i.valHooks[u.nodeName.toLowerCase()],t&&"get"in t&&(r=t.get(u,"value"))!==undefined)?r:(r=u.value,typeof r=="string")?r.replace(tf,""):r==null?"":r:void 0}}),i.extend({valHooks:{option:{get:function(n){var t=i.find.attr(n,"value");return t!=null?t:b(i.text(n))}},select:{get:function(n){for(var e,t,o=n.options,u=n.selectedIndex,f=n.type==="select-one",s=f?null:[],h=f?u+1:o.length,r=u<0?h:f?u:0;r<h;r++)if(t=o[r],(t.selected||r===u)&&!t.disabled&&(!t.parentNode.disabled||!i.nodeName(t.parentNode,"optgroup"))){if(e=i(t).val(),f)return e;s.push(e)}return s},set:function(n,t){for(var u,r,f=n.options,e=i.makeArray(t),o=f.length;o--;)r=f[o],(r.selected=i.inArray(i.valHooks.option.get(r),e)>-1)&&(u=!0);return u||(n.selectedIndex=-1),e}}}}),i.each(["radio","checkbox"],function(){i.valHooks[this]={set:function(n,t){if(i.isArray(t))return n.checked=i.inArray(i(n).val(),t)>-1}},f.checkOn||(i.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})}),ci=/^(?:focusinfocus|focusoutblur)$/,i.extend(i.event,{trigger:function(t,f,e,o){var w,s,c,b,a,v,l,p=[e||u],h=yt.call(t,"type")?t.type:t,y=yt.call(t,"namespace")?t.namespace.split("."):[];if((s=c=e=e||u,e.nodeType!==3&&e.nodeType!==8)&&!ci.test(h+i.event.triggered)&&(h.indexOf(".")>-1&&(y=h.split("."),h=y.shift(),y.sort()),a=h.indexOf(":")<0&&"on"+h,t=t[i.expando]?t:new i.Event(h,typeof t=="object"&&t),t.isTrigger=o?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=undefined,t.target||(t.target=e),f=f==null?[t]:i.makeArray(f,[t]),l=i.event.special[h]||{},o||!l.trigger||l.trigger.apply(e,f)!==!1)){if(!o&&!l.noBubble&&!i.isWindow(e)){for(b=l.delegateType||h,ci.test(b+h)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(e.ownerDocument||u)&&p.push(c.defaultView||c.parentWindow||n)}for(w=0;(s=p[w++])&&!t.isPropagationStopped();)t.type=w>1?b:l.bindType||h,v=(r.get(s,"events")||{})[t.type]&&r.get(s,"handle"),v&&v.apply(s,f),v=a&&s[a],v&&v.apply&&st(s)&&(t.result=v.apply(s,f),t.result===!1&&t.preventDefault());return t.type=h,o||t.isDefaultPrevented()||(!l._default||l._default.apply(p.pop(),f)===!1)&&st(e)&&a&&i.isFunction(e[h])&&!i.isWindow(e)&&(c=e[a],c&&(e[a]=null),i.event.triggered=h,e[h](),i.event.triggered=undefined,c&&(e[a]=c)),t.result}},simulate:function(n,t,r){var u=i.extend(new i.Event,r,{type:n,isSimulated:!0});i.event.trigger(u,null,t)}}),i.fn.extend({trigger:function(n,t){return this.each(function(){i.event.trigger(n,t,this)})},triggerHandler:function(n,t){var r=this[0];if(r)return i.event.trigger(n,t,r,!0)}}),i.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(n,t){i.fn[t]=function(n,i){return arguments.length>0?this.on(t,null,n,i):this.trigger(t)}}),i.fn.extend({hover:function(n,t){return this.mouseenter(n).mouseleave(t||n)}}),f.focusin="onfocusin"in n,f.focusin||i.each({focus:"focusin",blur:"focusout"},function(n,t){var u=function(n){i.event.simulate(t,n.target,i.event.fix(n))};i.event.special[t]={setup:function(){var i=this.ownerDocument||this,f=r.access(i,t);f||i.addEventListener(n,u,!0),r.access(i,t,(f||0)+1)},teardown:function(){var i=this.ownerDocument||this,f=r.access(i,t)-1;f?r.access(i,t,f):(i.removeEventListener(n,u,!0),r.remove(i,t))}}});var at=n.location,rf=i.now(),li=/\?/;i.parseXML=function(t){var r;if(!t||typeof t!="string")return null;try{r=(new n.DOMParser).parseFromString(t,"text/xml")}catch(u){r=undefined}return(!r||r.getElementsByTagName("parsererror").length)&&i.error("Invalid XML: "+t),r};var ke=/\[\]$/,uf=/\r?\n/g,de=/^(?:submit|button|image|reset|file)$/i,ge=/^(?:input|select|textarea|keygen)/i;i.param=function(n,t){var r,u=[],f=function(n,t){var r=i.isFunction(t)?t():t;u[u.length]=encodeURIComponent(n)+"="+encodeURIComponent(r==null?"":r)};if(i.isArray(n)||n.jquery&&!i.isPlainObject(n))i.each(n,function(){f(this.name,this.value)});else for(r in n)ai(r,n[r],t,f);return u.join("&")},i.fn.extend({serialize:function(){return i.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=i.prop(this,"elements");return n?i.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!i(this).is(":disabled")&&ge.test(this.nodeName)&&!de.test(n)&&(this.checked||!wr.test(n))}).map(function(n,t){var r=i(this).val();return r==null?null:i.isArray(r)?i.map(r,function(n){return{name:t.name,value:n.replace(uf,"\r\n")}}):{name:t.name,value:r.replace(uf,"\r\n")}}).get()}});var no=/%20/g,to=/#.*$/,io=/([?&])_=[^&]*/,ro=/^(.*?):[ \t]*([^\r\n]*)$/mg,uo=/^(?:GET|HEAD)$/,fo=/^\/\//,ff={},vi={},ef="*/".concat("*"),yi=u.createElement("a");return yi.href=at.href,i.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:at.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(at.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ef,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":i.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,t){return t?pi(pi(n,i.ajaxSettings),t):pi(i.ajaxSettings,n)},ajaxPrefilter:of(ff),ajaxTransport:of(vi),ajax:function(t,r){function b(t,r,u,h){var y,rt,g,p,b,a=r;s||(s=!0,d&&n.clearTimeout(d),l=undefined,k=h||"",e.readyState=t>0?4:0,y=t>=200&&t<300||t===304,u&&(p=eo(f,e,u)),p=oo(f,p,e,y),y?(f.ifModified&&(b=e.getResponseHeader("Last-Modified"),b&&(i.lastModified[o]=b),b=e.getResponseHeader("etag"),b&&(i.etag[o]=b)),t===204||f.type==="HEAD"?a="nocontent":t===304?a="notmodified":(a=p.state,rt=p.data,g=p.error,y=!g)):(g=a,(t||!a)&&(a="error",t<0&&(t=0))),e.status=t,e.statusText=(r||a)+"",y?tt.resolveWith(c,[rt,a,e]):tt.rejectWith(c,[e,a,g]),e.statusCode(w),w=undefined,v&&nt.trigger(y?"ajaxSuccess":"ajaxError",[e,f,y?rt:g]),it.fireWith(c,[e,a]),v&&(nt.trigger("ajaxComplete",[e,f]),--i.active||i.event.trigger("ajaxStop")))}typeof t=="object"&&(r=t,t=undefined),r=r||{};var l,o,k,y,d,a,s,v,g,p,f=i.ajaxSetup({},r),c=f.context||f,nt=f.context&&(c.nodeType||c.jquery)?i(c):i.event,tt=i.Deferred(),it=i.Callbacks("once memory"),w=f.statusCode||{},rt={},ut={},ft="canceled",e={readyState:0,getResponseHeader:function(n){var t;if(s){if(!y)for(y={};t=ro.exec(k);)y[t[1].toLowerCase()]=t[2];t=y[n.toLowerCase()]}return t==null?null:t},getAllResponseHeaders:function(){return s?k:null},setRequestHeader:function(n,t){return s==null&&(n=ut[n.toLowerCase()]=ut[n.toLowerCase()]||n,rt[n]=t),this},overrideMimeType:function(n){return s==null&&(f.mimeType=n),this},statusCode:function(n){var t;if(n)if(s)e.always(n[e.status]);else for(t in n)w[t]=[w[t],n[t]];return this},abort:function(n){var t=n||ft;return l&&l.abort(t),b(0,t),this}};if(tt.promise(e),f.url=((t||f.url||at.href)+"").replace(fo,at.protocol+"//"),f.type=r.method||r.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(h)||[""],f.crossDomain==null){a=u.createElement("a");try{a.href=f.url,a.href=a.href,f.crossDomain=yi.protocol+"//"+yi.host!=a.protocol+"//"+a.host}catch(et){f.crossDomain=!0}}if(f.data&&f.processData&&typeof f.data!="string"&&(f.data=i.param(f.data,f.traditional)),sf(ff,f,r,e),s)return e;v=i.event&&f.global,v&&i.active++==0&&i.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!uo.test(f.type),o=f.url.replace(to,""),f.hasContent?f.data&&f.processData&&(f.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(f.data=f.data.replace(no,"+")):(p=f.url.slice(o.length),f.data&&(o+=(li.test(o)?"&":"?")+f.data,delete f.data),f.cache===!1&&(o=o.replace(io,"$1"),p=(li.test(o)?"&":"?")+"_="+rf+++p),f.url=o+p),f.ifModified&&(i.lastModified[o]&&e.setRequestHeader("If-Modified-Since",i.lastModified[o]),i.etag[o]&&e.setRequestHeader("If-None-Match",i.etag[o])),(f.data&&f.hasContent&&f.contentType!==!1||r.contentType)&&e.setRequestHeader("Content-Type",f.contentType),e.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+(f.dataTypes[0]!=="*"?", "+ef+"; q=0.01":""):f.accepts["*"]);for(g in f.headers)e.setRequestHeader(g,f.headers[g]);if(f.beforeSend&&(f.beforeSend.call(c,e,f)===!1||s))return e.abort();if(ft="abort",it.add(f.complete),e.done(f.success),e.fail(f.error),l=sf(vi,f,r,e),l){if(e.readyState=1,v&&nt.trigger("ajaxSend",[e,f]),s)return e;f.async&&f.timeout>0&&(d=n.setTimeout(function(){e.abort("timeout")},f.timeout));try{s=!1,l.send(rt,b)}catch(et){if(s)throw et;b(-1,et)}}else b(-1,"No Transport");return e},getJSON:function(n,t,r){return i.get(n,t,r,"json")},getScript:function(n,t){return i.get(n,undefined,t,"script")}}),i.each(["get","post"],function(n,t){i[t]=function(n,r,u,f){return i.isFunction(r)&&(f=f||u,u=r,r=undefined),i.ajax(i.extend({url:n,type:t,dataType:f,data:r,success:u},i.isPlainObject(n)&&n))}}),i._evalUrl=function(n){return i.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},i.fn.extend({wrapAll:function(n){var t;return this[0]&&(i.isFunction(n)&&(n=n.call(this[0])),t=i(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var n=this;n.firstElementChild;)n=n.firstElementChild;return n}).append(this)),this},wrapInner:function(n){return i.isFunction(n)?this.each(function(t){i(this).wrapInner(n.call(this,t))}):this.each(function(){var t=i(this),r=t.contents();r.length?r.wrapAll(n):t.append(n)})},wrap:function(n){var t=i.isFunction(n);return this.each(function(r){i(this).wrapAll(t?n.call(this,r):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){i(this).replaceWith(this.childNodes)}),this}}),i.expr.pseudos.hidden=function(n){return!i.expr.pseudos.visible(n)},i.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},i.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}},hf={0:200,1223:204},et=i.ajaxSettings.xhr(),f.cors=!!et&&"withCredentials"in et,f.ajax=et=!!et,i.ajaxTransport(function(t){var i,r;if(f.cors||et&&!t.crossDomain)return{send:function(u,f){var o,e=t.xhr();if(e.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)e[o]=t.xhrFields[o];t.mimeType&&e.overrideMimeType&&e.overrideMimeType(t.mimeType),t.crossDomain||u["X-Requested-With"]||(u["X-Requested-With"]="XMLHttpRequest");for(o in u)e.setRequestHeader(o,u[o]);i=function(n){return function(){i&&(i=r=e.onload=e.onerror=e.onabort=e.onreadystatechange=null,n==="abort"?e.abort():n==="error"?typeof e.status!="number"?f(0,"error"):f(e.status,e.statusText):f(hf[e.status]||e.status,e.statusText,(e.responseType||"text")!=="text"||typeof e.responseText!="string"?{binary:e.response}:{text:e.responseText},e.getAllResponseHeaders()))}},e.onload=i(),r=e.onerror=i("error"),e.onabort!==undefined?e.onabort=r:e.onreadystatechange=function(){e.readyState===4&&n.setTimeout(function(){i&&r()})},i=i("abort");try{e.send(t.hasContent&&t.data||null)}catch(s){if(i)throw s;}},abort:function(){i&&i()}}}),i.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),i.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return i.globalEval(n),n}}}),i.ajaxPrefilter("script",function(n){n.cache===undefined&&(n.cache=!1),n.crossDomain&&(n.type="GET")}),i.ajaxTransport("script",function(n){if(n.crossDomain){var r,t;return{send:function(f,e){r=i("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",t=function(n){r.remove(),t=null,n&&e(n.type==="error"?404:200,n.type)}),u.head.appendChild(r[0])},abort:function(){t&&t()}}}}),wi=[],ii=/(=)\?(?=&|$)|\?\?/,i.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=wi.pop()||i.expando+"_"+rf++;return this[n]=!0,n}}),i.ajaxPrefilter("json jsonp",function(t,r,u){var f,e,o,s=t.jsonp!==!1&&(ii.test(t.url)?"url":typeof t.data=="string"&&(t.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ii.test(t.data)&&"data");if(s||t.dataTypes[0]==="jsonp")return f=t.jsonpCallback=i.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(ii,"$1"+f):t.jsonp!==!1&&(t.url+=(li.test(t.url)?"&":"?")+t.jsonp+"="+f),t.converters["script json"]=function(){return o||i.error(f+" was not called"),o[0]},t.dataTypes[0]="json",e=n[f],n[f]=function(){o=arguments},u.always(function(){e===undefined?i(n).removeProp(f):n[f]=e,t[f]&&(t.jsonpCallback=r.jsonpCallback,wi.push(f)),o&&i.isFunction(e)&&e(o[0]),o=e=undefined}),"script"}),f.createHTMLDocument=function(){var n=u.implementation.createHTMLDocument("").body;return n.innerHTML="<form><\/form><form><\/form>",n.childNodes.length===2}(),i.parseHTML=function(n,t,r){if(typeof n!="string")return[];typeof t=="boolean"&&(r=t,t=!1);var s,e,o;return(t||(f.createHTMLDocument?(t=u.implementation.createHTMLDocument(""),s=t.createElement("base"),s.href=u.location.href,t.head.appendChild(s)):t=u),e=rr.exec(n),o=!r&&[],e)?[t.createElement(e[1])]:(e=gr([n],t,o),o&&o.length&&i(o).remove(),i.merge([],e.childNodes))},i.fn.load=function(n,t,r){var u,o,s,f=this,e=n.indexOf(" ");return e>-1&&(u=b(n.slice(e)),n=n.slice(0,e)),i.isFunction(t)?(r=t,t=undefined):t&&typeof t=="object"&&(o="POST"),f.length>0&&i.ajax({url:n,type:o||"GET",dataType:"html",data:t}).done(function(n){s=arguments,f.html(u?i("<div>").append(i.parseHTML(n)).find(u):n)}).always(r&&function(n,t){f.each(function(){r.apply(this,s||[n.responseText,t,n])})}),this},i.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,t){i.fn[t]=function(n){return this.on(t,n)}}),i.expr.pseudos.animated=function(n){return i.grep(i.timers,function(t){return n===t.elem}).length},i.offset={setOffset:function(n,t,r){var e,o,s,h,u,c,v,l=i.css(n,"position"),a=i(n),f={};l==="static"&&(n.style.position="relative"),u=a.offset(),s=i.css(n,"top"),c=i.css(n,"left"),v=(l==="absolute"||l==="fixed")&&(s+c).indexOf("auto")>-1,v?(e=a.position(),h=e.top,o=e.left):(h=parseFloat(s)||0,o=parseFloat(c)||0),i.isFunction(t)&&(t=t.call(n,r,i.extend({},u))),t.top!=null&&(f.top=t.top-u.top+h),t.left!=null&&(f.left=t.left-u.left+o),"using"in t?t.using.call(n,f):a.css(f)}},i.fn.extend({offset:function(n){if(arguments.length)return n===undefined?this:this.each(function(t){i.offset.setOffset(this,n,t)});var u,f,t,e,r=this[0];if(r)return r.getClientRects().length?(t=r.getBoundingClientRect(),t.width||t.height)?(e=r.ownerDocument,f=cf(e),u=e.documentElement,{top:t.top+f.pageYOffset-u.clientTop,left:t.left+f.pageXOffset-u.clientLeft}):t:{top:0,left:0}},position:function(){if(this[0]){var t,r,u=this[0],n={top:0,left:0};return i.css(u,"position")==="fixed"?r=u.getBoundingClientRect():(t=this.offsetParent(),r=this.offset(),i.nodeName(t[0],"html")||(n=t.offset()),n={top:n.top+i.css(t[0],"borderTopWidth",!0),left:n.left+i.css(t[0],"borderLeftWidth",!0)}),{top:r.top-n.top-i.css(u,"marginTop",!0),left:r.left-n.left-i.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&i.css(n,"position")==="static";)n=n.offsetParent;return n||dt})}}),i.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,t){var r="pageYOffset"===t;i.fn[n]=function(i){return a(this,function(n,i,u){var f=cf(n);if(u===undefined)return f?f[t]:n[i];f?f.scrollTo(r?f.pageXOffset:u,r?u:f.pageYOffset):n[i]=u},n,i,arguments.length)}}),i.each(["top","left"],function(n,t){i.cssHooks[t]=eu(f.pixelPosition,function(n,r){if(r)return r=lt(n,t),hi.test(r)?i(n).position()[t]+"px":r})}),i.each({Height:"height",Width:"width"},function(n,t){i.each({padding:"inner"+n,content:t,"":"outer"+n},function(r,u){i.fn[u]=function(f,e){var o=arguments.length&&(r||typeof f!="boolean"),s=r||(f===!0||e===!0?"margin":"border");return a(this,function(t,r,f){var e;return i.isWindow(t)?u.indexOf("outer")===0?t["inner"+n]:t.document.documentElement["client"+n]:t.nodeType===9?(e=t.documentElement,Math.max(t.body["scroll"+n],e["scroll"+n],t.body["offset"+n],e["offset"+n],e["client"+n])):f===undefined?i.css(t,r,s):i.style(t,r,f,s)},t,o?f:undefined,o)}})}),i.fn.extend({bind:function(n,t,i){return this.on(n,null,t,i)},unbind:function(n,t){return this.off(n,null,t)},delegate:function(n,t,i,r){return this.on(t,n,i,r)},undelegate:function(n,t,i){return arguments.length===1?this.off(n,"**"):this.off(t,n||"**",i)}}),i.parseJSON=JSON.parse,typeof define=="function"&&define.amd&&define("jquery",[],function(){return i}),lf=n.jQuery,af=n.$,i.noConflict=function(t){return n.$===i&&(n.$=af),t&&n.jQuery===i&&(n.jQuery=lf),i},t||(n.jQuery=n.$=i),i});
/*!
 * Bootstrap v3.3.7 (http://getbootstrap.com)
 * Copyright 2011-2016 Twitter, Inc.
 * Licensed under the MIT license
 */
if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery),+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n;for(n in t)if(i.style[n]!==undefined)return{end:t[n]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this},n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this)),typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.prototype.close=function(i){function e(){r.detach().trigger("closed.bs.alert").remove()}var f=n(this),u=f.attr("data-target"),r;(u||(u=f.attr("href"),u=u&&u.replace(/.*(?=#[^\s]*$)/,"")),r=n(u==="#"?[]:u),i&&i.preventDefault(),r.length||(r=f.closest(".alert")),r.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())},r=n.fn.alert,n.fn.alert=u,n.fn.alert.Constructor=t,n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f)),i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.isLoading=!1},r;t.VERSION="3.3.7",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text",u.resetText==null&&r.data("resetText",r[f]()),setTimeout(n.proxy(function(){r[f](u[t]==null?this.options[t]:u[t]),t=="loadingText"?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))},r=n.fn.button,n.fn.button=i,n.fn.button.Constructor=t,n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle"),n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f)),typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this)),this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.3.7",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)},t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))},t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active"),e.removeClass(["active",f].join(" ")),a.sliding=!1,setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)},u=n.fn.carousel,n.fn.carousel=i,n.fn.carousel.Constructor=t,n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this},r=function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1),r||u.data("bs.collapse",r=new t(this,f)),typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i),this.options=n.extend({},t.DEFAULTS,r),this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()},u;t.VERSION="3.3.7",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"},t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-")),this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}},t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return n(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()},t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i),t.toggleClass("collapsed",!i).attr("aria-expanded",i)},u=n.fn.collapse,n.fn.collapse=i,n.fn.collapse.Constructor=t,n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery),+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea/i.test(t.target.tagName)&&n.contains(i[0],t.target)||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this)),typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.3.7",t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}},t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}},f=n.fn.dropdown,n.fn.dropdown=o,n.fn.dropdown.Constructor=t,n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery),+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e)),typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i,this.$body=n(document.body),this.$element=n(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.3.7",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)},t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),f&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus(),u=n.Event("shown.bs.modal",{relatedTarget:i}),f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}},t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var n=this;this.$element.hide(),this.backdrop(function(){n.$body.removeClass("modal-open"),n.resetAdjustments(),n.resetScrollbar(),n.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f,this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop(),i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left)),this.bodyIsOverflowing=document.body.clientWidth<n,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",n+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t},r=n.fn.modal,n.fn.modal=i,n.fn.modal.Constructor=t,n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",n,t)},i;t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin",s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t},t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1},t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)}},t.prototype.show=function(){var c=n.Event("show.bs."+this.type),l,p,e,w,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,r=this.tip(),a=this.getUID(this.type);this.setContent(),r.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&r.addClass("fade");var i=typeof this.options.placement=="function"?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(i);y&&(i=i.replace(v,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(i).data("bs."+this.type,this),this.options.container?r.appendTo(this.options.container):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=r[0].offsetWidth,s=r[0].offsetHeight;y&&(p=i,e=this.getPosition(this.$viewport),i=i=="bottom"&&f.bottom+s>e.bottom?"top":i=="top"&&f.top-s<e.top?"bottom":i=="right"&&f.right+o>e.width?"left":i=="left"&&f.left-o<e.left?"right":i,r.removeClass(p).addClass(i)),w=this.getCalculatedOffset(i,f,o,s),this.applyPlacement(w,i),h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type),u.hoverState=null,n=="out"&&u.leave(u)},n.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",h).emulateTransitionEnd(t.TRANSITION_DURATION):h()}},t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0),isNaN(s)&&(s=0),t.top+=o,t.left+=s,n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0),r.addClass("in"),h=r[0].offsetWidth,f=r[0].offsetHeight,i=="top"&&f!=e&&(t.top=t.top+e-f),u=this.getViewportAdjustedDelta(i,t,h,f),u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(a,r[0][v],c)},t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")},t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t),n.removeClass("fade in top bottom left right")},t.prototype.hide=function(i){function e(){r.hoverState!="in"&&u.detach(),r.$element&&r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),i&&i()}var r=this,u=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this},t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")},t.prototype.hasContent=function(){return this.getTitle()},t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],u=r.tagName=="BODY",i=r.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=window.SVGElement&&r instanceof window.SVGElement,e=u?{top:0,left:0}:f?null:t.offset(),o={scroll:u?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=u?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,o,s,e)},t.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f},t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)},t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n},t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},t.prototype.enable=function(){this.enabled=!0},t.prototype.disable=function(){this.enabled=!1},t.prototype.toggleEnabled=function(){this.enabled=!this.enabled},t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i))),t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout),this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type),n.$tip&&n.$tip.detach(),n.$tip=null,n.$arrow=null,n.$viewport=null,n.$element=null})},i=n.fn.tooltip,n.fn.tooltip=r,n.fn.tooltip.Constructor=t,n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.3.7",t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'}),t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype),t.prototype.constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i),n.find(".popover-content").children().detach().end()[this.options.html?typeof t=="string"?"html":"append":"text"](t),n.removeClass("fade top bottom left right in"),n.find(".popover-title").html()||n.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i=n.fn.popover,n.fn.popover=r,n.fn.popover.Constructor=t,n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery),+function(n){"use strict";function t(i,r){this.$body=n(document.body),this.$scrollElement=n(i).is(document.body)?n(window):n(i),this.options=n.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh(),this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f)),typeof i=="string"&&r[i]()})}t.VERSION="3.3.7",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]),t.targets.push(this[1])})},t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i,n.fn.scrollspy.Constructor=t,n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery),+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this)),typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.3.7",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}},t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),i.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade"),i.parent(".dropdown-menu").length&&i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o(),f.removeClass("in")},u=n.fn.tab,n.fn.tab=r,n.fn.tab.Constructor=t,n.fn.tab.noConflict=function(){return n.fn.tab=u,this},i=function(t){t.preventDefault(),r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery),+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f)),typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r),this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this)),this.$element=n(i),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()},r;t.VERSION="3.3.7",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n},t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i,this.unpin=i=="bottom"?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}},r=n.fn.affix,n.fn.affix=i,n.fn.affix.Constructor=t,n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{},t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom),t.offsetTop!=null&&(t.offset.top=t.offsetTop),i.call(r,t)})})}(jQuery);
/*!
 * Datepicker for Bootstrap v1.6.4 (https://github.com/eternicode/bootstrap-datepicker)
 *
 * Copyright 2012 Stefan Petre
 * Improvements by Andrew Rowls
 * Licensed under the Apache License v2.0 (http://www.apache.org/licenses/LICENSE-2.0)
 */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function h(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function y(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function c(n){return function(){return this[n].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;r>t;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){n(t).data("datepicker",this),this._process_options(r),this.dates=new l,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=n(t),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .btn"):!1,this.hasInput=this.component&&this.inputField.length,this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=n(i.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return parseInt(t)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.setDaysOfWeekHighlighted(this.o.daysOfWeekHighlighted),this.setDatesDisabled(this.o.datesDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()},o,a,e,s,v,r,i;f.prototype={constructor:f,_resolveViewName:function(n,i){return 0===n||"days"===n||"month"===n?0:1===n||"months"===n||"year"===n?1:2===n||"years"===n||"decade"===n?2:3===n||"decades"===n||"century"===n?3:4===n||"centuries"===n||"millennium"===n?4:i===t?!1:i},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(u){return!1}},_process_options:function(t){var f,o,l,e,c;if(this._o=n.extend({},this._o,t),f=this.o=n.extend({},this._o),o=f.language,r[o]||(o=o.split("-")[0],r[o]||(o=s.language)),f.language=o,f.startView=this._resolveViewName(f.startView,0),f.minViewMode=this._resolveViewName(f.minViewMode,0),f.maxViewMode=this._resolveViewName(f.maxViewMode,4),f.startView=Math.min(f.startView,f.maxViewMode),f.startView=Math.max(f.startView,f.minViewMode),f.multidate!==!0&&(f.multidate=Number(f.multidate)||!1,f.multidate!==!1&&(f.multidate=Math.max(0,f.multidate))),f.multidateSeparator=String(f.multidateSeparator),f.weekStart%=7,f.weekEnd=(f.weekStart+6)%7,l=i.parseFormat(f.format),f.startDate!==-(1/0)&&(f.startDate=f.startDate?f.startDate instanceof Date?this._local_to_utc(this._zero_time(f.startDate)):i.parseDate(f.startDate,l,f.language,f.assumeNearbyYear):-(1/0)),f.endDate!==1/0&&(f.endDate=f.endDate?f.endDate instanceof Date?this._local_to_utc(this._zero_time(f.endDate)):i.parseDate(f.endDate,l,f.language,f.assumeNearbyYear):1/0),f.daysOfWeekDisabled=f.daysOfWeekDisabled||[],n.isArray(f.daysOfWeekDisabled)||(f.daysOfWeekDisabled=f.daysOfWeekDisabled.split(/[,\s]*/)),f.daysOfWeekDisabled=n.map(f.daysOfWeekDisabled,function(n){return parseInt(n,10)}),f.daysOfWeekHighlighted=f.daysOfWeekHighlighted||[],n.isArray(f.daysOfWeekHighlighted)||(f.daysOfWeekHighlighted=f.daysOfWeekHighlighted.split(/[,\s]*/)),f.daysOfWeekHighlighted=n.map(f.daysOfWeekHighlighted,function(n){return parseInt(n,10)}),f.datesDisabled=f.datesDisabled||[],n.isArray(f.datesDisabled)||(f.datesDisabled=[f.datesDisabled]),f.datesDisabled=n.map(f.datesDisabled,function(n){return i.parseDate(n,l,f.language,f.assumeNearbyYear)}),e=String(f.orientation).toLowerCase().split(/\s+/g),c=f.orientation.toLowerCase(),e=n.grep(e,function(n){return/^auto|left|right|top|bottom$/.test(n)}),f.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===e.length)switch(e[0]){case"top":case"bottom":f.orientation.y=e[0];break;case"left":case"right":f.orientation.x=e[0]}else c=n.grep(e,function(n){return/^left|right$/.test(n)}),f.orientation.x=c[0]||"auto",c=n.grep(e,function(n){return/^top|bottom$/.test(n)}),f.orientation.y=c[0]||"auto";if(f.defaultViewDate){var a=f.defaultViewDate.year||(new Date).getFullYear(),v=f.defaultViewDate.month||0,y=f.defaultViewDate.day||1;f.defaultViewDate=u(a,v,y)}else f.defaultViewDate=h()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){-1===n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this)),this._events=this.isInput?[[this.element,t]]:this.component&&this.hasInput?[[this.inputField,t],[this.component,{click:n.proxy(this.show,this)}]]:[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]),this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{mousedown:n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1),t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!this.inputField.prop("disabled")&&(!this.inputField.prop("readonly")||this.o.enableOnReadonly!==!1))return(this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this)},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&-1!==n.inArray("text/plain",t.originalEvent.clipboardData.types))i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),t.preventDefault()},_utc_to_local:function(n){return n&&new Date(n.getTime()+6e4*n.getTimezoneOffset())},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return"undefined"!=typeof n?new Date(n):null},clearDates:function(){this.inputField&&this.inputField.val(""),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n.map(t,this._utc_to_local)),this._trigger("changeDate"),this.setValue(),this},setDate:c("setDates"),setUTCDate:c("setUTCDates"),remove:c("destroy"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){this._process_options({datesDisabled:n}),this.update(),this.updateNavArrows()},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==t&&a.push(parseInt(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=0>y?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var r=this.dates.copy(),t=[],u=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i)),t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate,u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&r.length&&this._trigger("clearDate"),this.fill(),this.element.change(),this},fillDow:function(){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(this.picker.find(".datepicker-days .datepicker-switch").attr("colspan",function(n,t){return parseInt(t)+1}),t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',n.inArray(i,this.o.daysOfWeekDisabled)>-1&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>",this.picker.find(".datepicker-days thead").append(t)},fillMonths:function(){for(var u,t=this._utc_to_local(this.viewDate),i="",n=0;12>n;)u=t&&t.getMonth()===n?" focused":"",i+='<span class="month'+u+'">'+r[this.o.language].monthsShort[n++]+"<\/span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range,this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),-1!==this.dates.contains(t)&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),-1!==n.inArray(t.valueOf(),this.range)&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s,h){var w,b,y,k,d,g,a,v,l,p,c;for(w="",b=this.picker.find(i),y=parseInt(e/u,10)*u,d=parseInt(o/f,10)*f,g=parseInt(s/f,10)*f,k=n.map(this.dates,function(n){return parseInt(n.getUTCFullYear()/f,10)*f}),b.find(".datepicker-switch").text(y+"-"+(y+9*f)),a=y-f,v=-1;11>v;v+=1)l=[r],p=null,-1===v?l.push("old"):10===v&&l.push("new"),-1!==n.inArray(a,k)&&l.push("active"),(d>a||a>g)&&l.push("disabled"),a===this.viewDate.getFullYear()&&l.push("focused"),h!==n.noop&&(c=h(new Date(a,0,1)),c===t?c={}:"boolean"==typeof c?c={enabled:c}:"string"==typeof c&&(c={classes:c}),c.enabled===!1&&l.push("disabled"),c.classes&&(l=l.concat(c.classes.split(/\s+/))),c.tooltip&&(p=c.tooltip)),w+='<span class="'+l.join(" ")+'"'+(p?' title="'+p+'"':"")+">"+a+"<\/span>",a+=f;b.find("td").html(w)},fill:function(){var y,e,p=new Date(this.viewDate),o=p.getUTCFullYear(),k=p.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),it=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),v=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,rt=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,ut=r[this.o.language].today||r.en.today||"",ft=r[this.o.language].clear||r.en.clear||"",et=r[this.o.language].titleFormat||r.en.titleFormat,f,w,h,s,c,nt,l,tt;if(!isNaN(o)&&!isNaN(k)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(p,et,this.o.language)),this.picker.find("tfoot .today").text(ut).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot .clear").text(ft).toggle(this.o.clearBtn!==!1),this.picker.find("thead .datepicker-title").text(this.o.title).toggle(""!==this.o.title),this.updateNavArrows(),this.fillMonths(),f=u(o,k-1,28),w=i.getDaysInMonth(f.getUTCFullYear(),f.getUTCMonth()),f.setUTCDate(w),f.setUTCDate(w-(f.getUTCDay()-this.o.weekStart+7)%7),h=new Date(f),f.getUTCFullYear()<100&&h.setUTCFullYear(f.getUTCFullYear()),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),c=[];f.valueOf()<h;){if(f.getUTCDay()===this.o.weekStart&&(c.push("<tr>"),this.o.calendarWeeks)){var d=new Date(+f+(this.o.weekStart-f.getUTCDay()-7)%7*864e5),g=new Date(Number(d)+(11-d.getUTCDay())%7*864e5),b=new Date(Number(b=u(g.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ot=(g-b)/6048e5+1;c.push('<td class="cw">'+ot+"<\/td>")}s=this.getClassNames(f),s.push("day"),this.o.beforeShowDay!==n.noop&&(e=this.o.beforeShowDay(this._utc_to_local(f)),e===t?e={}:"boolean"==typeof e?e={enabled:e}:"string"==typeof e&&(e={classes:e}),e.enabled===!1&&s.push("disabled"),e.classes&&(s=s.concat(e.classes.split(/\s+/))),e.tooltip&&(y=e.tooltip)),s=n.isFunction(n.uniqueSort)?n.uniqueSort(s):n.unique(s),c.push('<td class="'+s.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+f.getUTCDate()+"<\/td>"),y=null,f.getUTCDay()===this.o.weekEnd&&c.push("<\/tr>"),f.setUTCDate(f.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(c.join("")),nt=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months",l=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?nt:o).end().find("span").removeClass("active"),(n.each(this.dates,function(n,t){t.getUTCFullYear()===o&&l.eq(t.getUTCMonth()).addClass("active")}),(a>o||o>v)&&l.addClass("disabled"),o===a&&l.slice(0,it).addClass("disabled"),o===v&&l.slice(rt+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(tt=this,n.each(l,function(i,r){var f=new Date(o,i,1),u=tt.o.beforeShowMonth(f);u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),u.enabled!==!1||n(r).hasClass("disabled")||n(r).addClass("disabled"),u.classes&&n(r).addClass(u.classes),u.tooltip&&n(r).prop("title",u.tooltip)})),this._fill_yearsView(".datepicker-years","year",10,1,o,a,v,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,10,o,a,v,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,100,o,a,v,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:case 3:case 4:this.o.startDate!==-(1/0)&&n<=this.o.startDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&n>=this.o.endDate.getUTCFullYear()||this.o.maxViewMode<2?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var r,c,o,e,f,s,l,a;t.preventDefault(),t.stopPropagation(),r=n(t.target),r.hasClass("datepicker-switch")&&this.showMode(1),a=r.closest(".prev, .next"),a.length>0&&(c=i.modes[this.viewMode].navStep*(a.hasClass("prev")?-1:1),0===this.viewMode?(this.viewDate=this.moveMonth(this.viewDate,c),this._trigger("changeMonth",this.viewDate)):(this.viewDate=this.moveYear(this.viewDate,c),1===this.viewMode&&this._trigger("changeYear",this.viewDate)),this.fill()),r.hasClass("today")&&!r.hasClass("day")&&(this.showMode(-2),this._setDate(h(),"linked"===this.o.todayBtn?null:"view")),r.hasClass("clear")&&this.clearDates(),r.hasClass("disabled")||(r.hasClass("day")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.hasClass("old")&&(0===f?(f=11,e-=1,s=!0,l=!0):(f-=1,s=!0)),r.hasClass("new")&&(11===f?(f=0,e+=1,s=!0,l=!0):(f+=1,s=!0)),this._setDate(u(e,f,o)),l&&this._trigger("changeYear",this.viewDate),s&&this._trigger("changeMonth",this.viewDate)),r.hasClass("month")&&(this.viewDate.setUTCDate(1),o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode?(this._setDate(u(e,f,o)),this.showMode()):this.showMode(-1),this.fill()),(r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),r.hasClass("year")&&(this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(u(e,f,o))),r.hasClass("decade")&&(this._trigger("changeDecade",this.viewDate),3===this.o.minViewMode&&this._setDate(u(e,f,o))),r.hasClass("century")&&(this._trigger("changeCentury",this.viewDate),4===this.o.minViewMode&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill())),this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),-1!==t?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n)),t&&"view"!==t||(this.viewDate=n&&new Date(n)),this.fill(),this.setValue(),t&&"view"===t||this._trigger("changeDate"),this.inputField&&this.inputField.change(),!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=-1===t?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),(0>r||r>11)&&(r=(r+12)%12);else{for(f=0;s>f;f++)i=this.moveMonth(i,t);r=i.getUTCMonth(),i.setUTCDate(e),u=function(){return r!==i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return-1!==n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return y(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){if(!this.picker.is(":visible"))return void((40===n.keyCode||27===n.keyCode)&&(this.show(),n.stopPropagation()));var t,i,u=!1,r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),n.preventDefault(),n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;t=37===n.keyCode||38===n.keyCode?-1:1,0===this.viewMode?n.ctrlKey?(i=this.moveAvailableDate(r,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveAvailableDate(r,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):37===n.keyCode||39===n.keyCode?i=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,t,"moveWeek")):1===this.viewMode?((38===n.keyCode||40===n.keyCode)&&(t=4*t),i=this.moveAvailableDate(r,t,"moveMonth")):2===this.viewMode&&((38===n.keyCode||40===n.keyCode)&&(t=4*t),i=this.moveAvailableDate(r,t,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),u=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}u&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField&&this.inputField.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,this.viewMode+n))),this.picker.children("div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).show(),this.updateNavArrows()}},o=function(t,i){n(t).data("datepicker",this),this.element=n(t),this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n}),delete i.inputs,e.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this)),this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")}),this.updateDates()},o.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()}),this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){var f;if(!this.updating&&(this.updating=!0,f=n(t.target).data("datepicker"),"undefined"!=typeof f)){var i=f.getUTCDate(),e=n.inArray(t.target,this.inputs),r=e-1,u=e+1,o=this.inputs.length;if(-1!==e){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(i)}),i<this.dates[r])for(;r>=0&&i<this.dates[r];)this.pickers[r--].setUTCDate(i);else if(i>this.dates[u])for(;o>u&&i>this.dates[u];)this.pickers[u++].setUTCDate(i);this.updateDates(),delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()}),delete this.element.data().datepicker}},a=n.fn.datepicker,e=function(i){var u=Array.apply(null,arguments),r;if(u.shift(),this.each(function(){var h=n(this),t=h.data("datepicker"),c="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},s,l,c),v=b(a.language),e=n.extend({},s,v,l,c);h.hasClass("input-daterange")||e.inputs?(n.extend(e,{inputs:e.inputs||h.find("input").toArray()}),t=new o(this,e)):t=new f(this,e),h.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,u))}),r===t||r instanceof f||r instanceof o)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r},n.fn.datepicker=e,s=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&laquo;",rightArrow:"&raquo;"}},v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"],n.fn.datepicker.Constructor=f,r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}},i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10},{clsName:"decades",navFnc:"FullDecade",navStep:100},{clsName:"centuries",navFnc:"FullCentury",navStep:1e3}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\x00").split("\x00"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s,c){function rt(n,t){return t===!0&&(t=10),100>n&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function ut(){var n=this.slice(0,a[l].length),t=a[l].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var p,st,tt,b;if(!e)return t;if(e instanceof Date)return e;if("string"==typeof o&&(o=i.parseFormat(o)),o.toValue)return o.toValue(e,o,s);var v,k,l,d,ft=/([\-+]\d+)([dmwy])/,a=e.match(/([\-+]\d+)([dmwy])/g),et={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},ot={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,l=0;l<a.length;l++)v=ft.exec(a[l]),k=parseInt(v[1]),d=et[v[2]],e=f.prototype[d](e,k);return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}if("undefined"!=typeof ot[e]&&(e=ot[e],a=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e))){for(e=new Date,l=0;l<a.length;l++)v=ft.exec(a[l]),k=parseInt(v[1]),d=et[v[2]],e=f.prototype[d](e,k);return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())}a=e&&e.match(this.nonpunctuation)||[],e=new Date;var w,g,nt={},it=["yyyy","yy","M","MM","m","mm","d","dd"],y={yyyy:function(n,t){return n.setUTCFullYear(c?rt(t,c):t)},yy:function(n,t){return n.setUTCFullYear(c?rt(t,c):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;0>t;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(y.M=y.MM=y.mm=y.m,y.dd=y.d,e=h(),p=o.parts.slice(),a.length!==p.length&&(p=n(p).filter(function(t,i){return-1!==n.inArray(i,it)}).toArray()),a.length===p.length){for(l=0,st=p.length;st>l;l++){if(w=parseInt(a[l],10),v=p[l],isNaN(w))switch(v){case"MM":g=n(r[s].months).filter(ut),w=n.inArray(g[0],r[s].months)+1;break;case"M":g=n(r[s].monthsShort).filter(ut),w=n.inArray(g[0],r[s].monthsShort)+1}nt[v]=w}for(l=0;l<it.length;l++)b=it[l],b in nt&&!isNaN(nt[b])&&(tt=new Date(e),y[b](tt,nt[b]),isNaN(tt)||(e=tt))}return e},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;h>=o;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">&laquo;<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">&raquo;<\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'},i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>",n.fn.datepicker.DPGlobal=i,n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this},n.fn.datepicker.version="1.6.4",n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),e.call(i,"show"))}),n(function(){e.call(n('[data-provide="datepicker-inline"]'))})});
/*!
 * jQuery Validation Plugin v1.16.0
 *
 * http://jqueryvalidation.org/
 *
 * Copyright (c) 2016 Jörn Zaefferer
 * Released under the MIT license
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=n(require("jquery")):n(jQuery)})(function(n){n.extend(n.fn,{validate:function(t){if(!this.length){t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.");return}var i=n.data(this[0],"validator");if(i)return i;if(this.attr("novalidate","novalidate"),i=new n.validator(t,this[0]),n.data(this[0],"validator",i),i.settings.onsubmit){this.on("click.validate",":submit",function(t){i.settings.submitHandler&&(i.submitButton=t.target),n(this).hasClass("cancel")&&(i.cancelSubmit=!0),n(this).attr("formnovalidate")!==undefined&&(i.cancelSubmit=!0)});this.on("submit.validate",function(t){function r(){var u,r;return i.settings.submitHandler?(i.submitButton&&(u=n("<input type='hidden'/>").attr("name",i.submitButton.name).val(n(i.submitButton).val()).appendTo(i.currentForm)),r=i.settings.submitHandler.call(i,i.currentForm,t),i.submitButton&&u.remove(),r!==undefined)?r:!1:!0}return(i.settings.debug&&t.preventDefault(),i.cancelSubmit)?(i.cancelSubmit=!1,r()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):r():(i.focusInvalid(),!1)})}return i},valid:function(){var t,i,r;return n(this[0]).is("form")?t=this.validate().form():(r=[],t=!0,i=n(this[0].form).validate(),this.each(function(){t=i.element(this)&&t,t||(r=r.concat(i.errorList))}),i.errorList=r),t},rules:function(t,i){var r=this[0],e,s,f,u,o,h;if(r!=null&&r.form!=null){if(t){e=n.data(r.form,"validator").settings,s=e.rules,f=n.validator.staticRules(r);switch(t){case"add":n.extend(f,n.validator.normalizeRule(i)),delete f.messages,s[r.name]=f,i.messages&&(e.messages[r.name]=n.extend(e.messages[r.name],i.messages));break;case"remove":return i?(h={},n.each(i.split(/\s/),function(t,i){h[i]=f[i],delete f[i],i==="required"&&n(r).removeAttr("aria-required")}),h):(delete s[r.name],f)}}return u=n.validator.normalizeRules(n.extend({},n.validator.classRules(r),n.validator.attributeRules(r),n.validator.dataRules(r),n.validator.staticRules(r)),r),u.required&&(o=u.required,delete u.required,u=n.extend({required:o},u),n(r).attr("aria-required","true")),u.remote&&(o=u.remote,delete u.remote,u=n.extend(u,{remote:o})),u}}}),n.extend(n.expr.pseudos||n.expr[":"],{blank:function(t){return!n.trim(""+n(t).val())},filled:function(t){var i=n(t).val();return i!==null&&!!n.trim(""+i)},unchecked:function(t){return!n(t).prop("checked")}}),n.validator=function(t,i){this.settings=n.extend(!0,{},n.validator.defaults,t),this.currentForm=i,this.init()},n.validator.format=function(t,i){return arguments.length===1?function(){var i=n.makeArray(arguments);return i.unshift(t),n.validator.format.apply(this,i)}:i===undefined?t:(arguments.length>2&&i.constructor!==Array&&(i=n.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),n.each(i,function(n,i){t=t.replace(new RegExp("\\{"+n+"\\}","g"),function(){return i})}),t)},n.extend(n.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:n([]),errorLabelContainer:n([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(n){this.lastActive=n,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,n,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(n)))},onfocusout:function(n){!this.checkable(n)&&(n.name in this.submitted||!this.optional(n))&&this.element(n)},onkeyup:function(t,i){(i.which!==9||this.elementValue(t)!=="")&&n.inArray(i.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])===-1&&(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(n){n.name in this.submitted?this.element(n):n.parentNode.name in this.submitted&&this.element(n.parentNode)},highlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).addClass(i).removeClass(r):n(t).addClass(i).removeClass(r)},unhighlight:function(t,i,r){t.type==="radio"?this.findByName(t.name).removeClass(i).addClass(r):n(t).removeClass(i).addClass(r)}},setDefaults:function(t){n.extend(n.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:n.validator.format("Please enter no more than {0} characters."),minlength:n.validator.format("Please enter at least {0} characters."),rangelength:n.validator.format("Please enter a value between {0} and {1} characters long."),range:n.validator.format("Please enter a value between {0} and {1}."),max:n.validator.format("Please enter a value less than or equal to {0}."),min:n.validator.format("Please enter a value greater than or equal to {0}."),step:n.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function i(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0]);var r=n.data(this.form,"validator"),u="on"+t.type.replace(/^validate/,""),i=r.settings;i[u]&&!n(this).is(i.ignore)&&i[u].call(r,this,t)}this.labelContainer=n(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||n(this.currentForm),this.containers=n(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var r=this.groups={},t;n.each(this.settings.groups,function(t,i){typeof i=="string"&&(i=i.split(/\s/)),n.each(i,function(n,i){r[i]=t})}),t=this.settings.rules,n.each(t,function(i,r){t[i]=n.validator.normalizeRule(r)});n(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",i).on("click.validate","select, option, [type='radio'], [type='checkbox']",i);if(this.settings.invalidHandler)n(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);n(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),n.extend(this.submitted,this.errorMap),this.invalid=n.extend({},this.errorMap),this.valid()||n(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var n=0,t=this.currentElements=this.elements();t[n];n++)this.check(t[n]);return this.valid()},element:function(t){var i=this.clean(t),r=this.validationTargetFor(i),u=this,f=!0,e,o;return r===undefined?delete this.invalid[i.name]:(this.prepareElement(r),this.currentElements=n(r),o=this.groups[r.name],o&&n.each(this.groups,function(n,t){t===o&&n!==r.name&&(i=u.validationTargetFor(u.clean(u.findByName(n))),i&&i.name in u.invalid&&(u.currentElements.push(i),f=u.check(i)&&f))}),e=this.check(r)!==!1,f=f&&e,this.invalid[r.name]=e?!1:!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),n(t).attr("aria-invalid",!e)),f},showErrors:function(t){if(t){var i=this;n.extend(this.errorMap,t),this.errorList=n.map(this.errorMap,function(n,t){return{message:n,element:i.findByName(t)[0]}}),this.successList=n.grep(this.successList,function(n){return!(n.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){n.fn.resetForm&&n(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(n){var t;if(this.settings.unhighlight)for(t=0;n[t];t++)this.settings.unhighlight.call(this,n[t],this.settings.errorClass,""),this.findByName(n[t].name).removeClass(this.settings.validClass);else n.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(n){var t=0,i;for(i in n)n[i]&&t++;return t},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(n){n.not(this.containers).text(""),this.addWrapper(n).hide()},valid:function(){return this.size()===0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{n(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var t=this.lastActive;return t&&n.grep(this.errorList,function(n){return n.element.name===t.name}).length===1&&t},elements:function(){var t=this,i={};return n(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var r=this.name||n(this).attr("name");return(!r&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=n(this).closest("form")[0]),r in i||!t.objectLength(n(this).rules()))?!1:(i[r]=!0,!0)})},clean:function(t){return n(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return n(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=n([]),this.toHide=n([])},reset:function(){this.resetInternals(),this.currentElements=n([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(n){this.reset(),this.toHide=this.errorsFor(n)},elementValue:function(t){var f=n(t),u=t.type,i,r;return u==="radio"||u==="checkbox"?this.findByName(t.name).filter(":checked").val():u==="number"&&typeof t.validity!="undefined"?t.validity.badInput?"NaN":f.val():(i=t.hasAttribute("contenteditable")?f.text():f.val(),u==="file")?i.substr(0,12)==="C:\\fakepath\\"?i.substr(12):(r=i.lastIndexOf("/"),r>=0)?i.substr(r+1):(r=i.lastIndexOf("\\"),r>=0)?i.substr(r+1):i:typeof i=="string"?i.replace(/\r/g,""):i},check:function(t){t=this.validationTargetFor(this.clean(t));var i=n(t).rules(),h=n.map(i,function(n,t){return t}).length,s=!1,u=this.elementValue(t),f,e,r;if(typeof i.normalizer=="function"){if(u=i.normalizer.call(t,u),typeof u!="string")throw new TypeError("The normalizer should return a string value.");delete i.normalizer}for(e in i){r={method:e,parameters:i[e]};try{if(f=n.validator.methods[e].call(this,u,t,r.parameters),f==="dependency-mismatch"&&h===1){s=!0;continue}if(s=!1,f==="pending"){this.toHide=this.toHide.not(this.errorsFor(t));return}if(!f)return this.formatAndAdd(t,r),!1}catch(o){this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",o),o instanceof TypeError&&(o.message+=".  Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.");throw o;}}if(!s)return this.objectLength(i)&&this.successList.push(t),!0},customDataMessage:function(t,i){return n(t).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||n(t).data("msg")},customMessage:function(n,t){var i=this.settings.messages[n];return i&&(i.constructor===String?i:i[t])},findDefined:function(){for(var n=0;n<arguments.length;n++)if(arguments[n]!==undefined)return arguments[n];return undefined},defaultMessage:function(t,i){typeof i=="string"&&(i={method:i});var r=this.findDefined(this.customMessage(t.name,i.method),this.customDataMessage(t,i.method),!this.settings.ignoreTitle&&t.title||undefined,n.validator.messages[i.method],"<strong>Warning: No message defined for "+t.name+"<\/strong>"),u=/\$?\{(\d+)\}/g;return typeof r=="function"?r=r.call(this,i.parameters,t):u.test(r)&&(r=n.validator.format(r.replace(u,"{$1}"),i.parameters)),r},formatAndAdd:function(n,t){var i=this.defaultMessage(n,t);this.errorList.push({message:i,element:n,method:t.method}),this.errorMap[n.name]=i,this.submitted[n.name]=i},addWrapper:function(n){return this.settings.wrapper&&(n=n.add(n.parent(this.settings.wrapper))),n},defaultShowErrors:function(){for(var i,t,n=0;this.errorList[n];n++)t=this.errorList[n],this.settings.highlight&&this.settings.highlight.call(this,t.element,this.settings.errorClass,this.settings.validClass),this.showLabel(t.element,t.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(n=0;this.successList[n];n++)this.showLabel(this.successList[n]);if(this.settings.unhighlight)for(n=0,i=this.validElements();i[n];n++)this.settings.unhighlight.call(this,i[n],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return n(this.errorList).map(function(){return this.element})},showLabel:function(t,i){var u,s,e,o,r=this.errorsFor(t),h=this.idOrName(t),f=n(t).attr("aria-describedby");r.length?(r.removeClass(this.settings.validClass).addClass(this.settings.errorClass),r.html(i)):(r=n("<"+this.settings.errorElement+">").attr("id",h+"-error").addClass(this.settings.errorClass).html(i||""),u=r,this.settings.wrapper&&(u=r.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(u):this.settings.errorPlacement?this.settings.errorPlacement.call(this,u,n(t)):u.insertAfter(t),r.is("label")?r.attr("for",h):r.parents("label[for='"+this.escapeCssMeta(h)+"']").length===0&&(e=r.attr("id"),f?f.match(new RegExp("\\b"+this.escapeCssMeta(e)+"\\b"))||(f+=" "+e):f=e,n(t).attr("aria-describedby",f),s=this.groups[t.name],s&&(o=this,n.each(o.groups,function(t,i){i===s&&n("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",r.attr("id"))})))),!i&&this.settings.success&&(r.text(""),typeof this.settings.success=="string"?r.addClass(this.settings.success):this.settings.success(r,t)),this.toShow=this.toShow.add(r)},errorsFor:function(t){var r=this.escapeCssMeta(this.idOrName(t)),u=n(t).attr("aria-describedby"),i="label[for='"+r+"'], label[for='"+r+"'] *";return u&&(i=i+", #"+this.escapeCssMeta(u).replace(/\s+/g,", #")),this.errors().filter(i)},escapeCssMeta:function(n){return n.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(n){return this.groups[n.name]||(this.checkable(n)?n.name:n.id||n.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),n(t).not(this.settings.ignore)[0]},checkable:function(n){return/radio|checkbox/i.test(n.type)},findByName:function(t){return n(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,i){switch(i.nodeName.toLowerCase()){case"select":return n("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return t.length},depend:function(n,t){return this.dependTypes[typeof n]?this.dependTypes[typeof n](n,t):!0},dependTypes:{boolean:function(n){return n},string:function(t,i){return!!n(t,i.form).length},"function":function(n,t){return n(t)}},optional:function(t){var i=this.elementValue(t);return!n.validator.methods.required.call(this,i,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,n(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],n(t).removeClass(this.settings.pendingClass),i&&this.pendingRequest===0&&this.formSubmitted&&this.form()?(n(this.currentForm).submit(),this.formSubmitted=!1):!i&&this.pendingRequest===0&&this.formSubmitted&&(n(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,i){return i=typeof i=="string"&&i||"remote",n.data(t,"previousValue")||n.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:i})})},destroy:function(){this.resetForm(),n(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,i){t.constructor===String?this.classRuleSettings[t]=i:n.extend(this.classRuleSettings,t)},classRules:function(t){var i={},r=n(t).attr("class");return r&&n.each(r.split(" "),function(){this in n.validator.classRuleSettings&&n.extend(i,n.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(n,t,i,r){/min|max|step/.test(i)&&(t===null||/number|range|text/.test(t))&&(r=Number(r),isNaN(r)&&(r=undefined)),r||r===0?n[i]=r:t===i&&t!=="range"&&(n[i]=!0)},attributeRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),u,i;for(u in n.validator.methods)u==="required"?(i=t.getAttribute(u),i===""&&(i=!0),i=!!i):i=f.attr(u),this.normalizeAttributeRule(r,e,u,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var r={},f=n(t),e=t.getAttribute("type"),i,u;for(i in n.validator.methods)u=f.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(r,e,i,u);return r},staticRules:function(t){var i={},r=n.data(t.form,"validator");return r.settings.rules&&(i=n.validator.normalizeRule(r.settings.rules[t.name])||{}),i},normalizeRules:function(t,i){return n.each(t,function(r,u){if(u===!1){delete t[r];return}if(u.param||u.depends){var f=!0;switch(typeof u.depends){case"string":f=!!n(u.depends,i.form).length;break;case"function":f=u.depends.call(i,i)}f?t[r]=u.param!==undefined?u.param:!0:(n.data(i.form,"validator").resetElements(n(i)),delete t[r])}}),n.each(t,function(r,u){t[r]=n.isFunction(u)&&r!=="normalizer"?u(i):u}),n.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),n.each(["rangelength","range"],function(){var i;t[this]&&(n.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:typeof t[this]=="string"&&(i=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(i[0]),Number(i[1])]))}),n.validator.autoCreateRanges&&(t.min!=null&&t.max!=null&&(t.range=[t.min,t.max],delete t.min,delete t.max),t.minlength!=null&&t.maxlength!=null&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if(typeof t=="string"){var i={};n.each(t.split(/\s/),function(){i[this]=!0}),t=i}return t},addMethod:function(t,i,r){n.validator.methods[t]=i,n.validator.messages[t]=r!==undefined?r:n.validator.messages[t],i.length<3&&n.validator.addClassRules(t,n.validator.normalizeRule(t))},methods:{required:function(t,i,r){if(!this.depend(r,i))return"dependency-mismatch";if(i.nodeName.toLowerCase()==="select"){var u=n(i).val();return u&&u.length>0}return this.checkable(i)?this.getLength(t,i)>0:t.length>0},email:function(n,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(n)},url:function(n,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)},date:function(n,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(n).toString())},dateISO:function(n,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(n)},number:function(n,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(n)},digits:function(n,t){return this.optional(t)||/^\d+$/.test(n)},minlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r},maxlength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u<=r},rangelength:function(t,i,r){var u=n.isArray(t)?t.length:this.getLength(t,i);return this.optional(i)||u>=r[0]&&u<=r[1]},min:function(n,t,i){return this.optional(t)||n>=i},max:function(n,t,i){return this.optional(t)||n<=i},range:function(n,t,i){return this.optional(t)||n>=i[0]&&n<=i[1]},step:function(t,i,r){var u=n(i).attr("type"),h="Step attribute on input type "+u+" is not supported.",c=new RegExp("\\b"+u+"\\b"),l=u&&!c.test("text,number,range"),e=function(n){var t=(""+n).match(/(?:\.(\d+))?$/);return t?t[1]?t[1].length:0:0},o=function(n){return Math.round(n*Math.pow(10,f))},s=!0,f;if(l)throw new Error(h);return f=e(r),(e(t)>f||o(t)%o(r)!=0)&&(s=!1),this.optional(i)||s},equalTo:function(t,i,r){var u=n(r);if(this.settings.onfocusout&&u.not(".validate-equalTo-blur").length)u.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){n(i).valid()});return t===u.val()},remote:function(t,i,r,u){if(this.optional(i))return"dependency-mismatch";u=typeof u=="string"&&u||"remote";var e=this.previousValue(i,u),f,o,s;return(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),e.originalMessage=e.originalMessage||this.settings.messages[i.name][u],this.settings.messages[i.name][u]=e.message,r=typeof r=="string"&&{url:r}||r,s=n.param(n.extend({data:t},r.data)),e.old===s)?e.valid:(e.old=s,f=this,this.startRequest(i),o={},o[i.name]=t,n.ajax(n.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:f.currentForm,success:function(n){var r=n===!0||n==="true",o,s,h;f.settings.messages[i.name][u]=e.originalMessage,r?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(i),f.formSubmitted=h,f.successList.push(i),f.invalid[i.name]=!1,f.showErrors()):(o={},s=n||f.defaultMessage(i,{method:u,parameters:t}),o[i.name]=e.message=s,f.invalid[i.name]=!0,f.showErrors(o)),e.valid=r,f.stopRequest(i,r)}},r)),"pending")}}});var t={},i;return n.ajaxPrefilter?n.ajaxPrefilter(function(n,i,r){var u=n.port;n.mode==="abort"&&(t[u]&&t[u].abort(),t[u]=r)}):(i=n.ajax,n.ajax=function(r){var f=("mode"in r?r:n.ajaxSettings).mode,u=("port"in r?r:n.ajaxSettings).port;return f==="abort"?(t[u]&&t[u].abort(),t[u]=i.apply(this,arguments),t[u]):i.apply(this,arguments)}),n}),MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_PATH_="../images/m",MarkerClusterer.prototype.MARKER_CLUSTER_IMAGE_EXTENSION_="png",MarkerClusterer.prototype.extend=function(n,t){return function(n){for(var t in n.prototype)this.prototype[t]=n.prototype[t];return this}.apply(n,[t])},MarkerClusterer.prototype.onAdd=function(){this.setReady_(!0)},MarkerClusterer.prototype.draw=function(){},MarkerClusterer.prototype.setupStyles_=function(){if(!this.styles_.length)for(var n=0,t;t=this.sizes[n];n++)this.styles_.push({url:this.imagePath_+(n+1)+"."+this.imageExtension_,height:t,width:t})},MarkerClusterer.prototype.fitMapToMarkers=function(){for(var r=this.getMarkers(),t=new google.maps.LatLngBounds,i,n=0;i=r[n];n++)t.extend(i.getPosition());this.map_.fitBounds(t)},MarkerClusterer.prototype.setStyles=function(n){this.styles_=n},MarkerClusterer.prototype.getStyles=function(){return this.styles_},MarkerClusterer.prototype.isZoomOnClick=function(){return this.zoomOnClick_},MarkerClusterer.prototype.isAverageCenter=function(){return this.averageCenter_},MarkerClusterer.prototype.getMarkers=function(){return this.markers_},MarkerClusterer.prototype.getTotalMarkers=function(){return this.markers_.length},MarkerClusterer.prototype.setMaxZoom=function(n){this.maxZoom_=n},MarkerClusterer.prototype.getMaxZoom=function(){return this.maxZoom_},MarkerClusterer.prototype.calculator_=function(n,t){for(var i=0,u=n.length,r=u;r!==0;)r=parseInt(r/10,10),i++;return i=Math.min(i,t),{text:u,index:i}},MarkerClusterer.prototype.setCalculator=function(n){this.calculator_=n},MarkerClusterer.prototype.getCalculator=function(){return this.calculator_},MarkerClusterer.prototype.addMarkers=function(n,t){var r,i;if(n.length)for(r=0;i=n[r];r++)this.pushMarkerTo_(i);else if(Object.keys(n).length)for(i in n)this.pushMarkerTo_(n[i]);t||this.redraw()},MarkerClusterer.prototype.pushMarkerTo_=function(n){if(n.isAdded=!1,n.draggable){var t=this;google.maps.event.addListener(n,"dragend",function(){n.isAdded=!1,t.repaint()})}this.markers_.push(n)},MarkerClusterer.prototype.addMarker=function(n,t){this.pushMarkerTo_(n),t||this.redraw()},MarkerClusterer.prototype.removeMarker_=function(n){var t=-1,i,r;if(this.markers_.indexOf)t=this.markers_.indexOf(n);else for(i=0;r=this.markers_[i];i++)if(r==n){t=i;break}return t==-1?!1:(n.setMap(null),this.markers_.splice(t,1),!0)},MarkerClusterer.prototype.removeMarker=function(n,t){var i=this.removeMarker_(n);return!t&&i?(this.resetViewport(),this.redraw(),!0):!1},MarkerClusterer.prototype.removeMarkers=function(n,t){for(var i=!1,u,f,r=0;u=n[r];r++)f=this.removeMarker_(u),i=i||f;if(!t&&i)return this.resetViewport(),this.redraw(),!0},MarkerClusterer.prototype.setReady_=function(n){this.ready_||(this.ready_=n,this.createClusters_())},MarkerClusterer.prototype.getTotalClusters=function(){return this.clusters_.length},MarkerClusterer.prototype.getMap=function(){return this.map_},MarkerClusterer.prototype.setMap=function(n){this.map_=n},MarkerClusterer.prototype.getGridSize=function(){return this.gridSize_},MarkerClusterer.prototype.setGridSize=function(n){this.gridSize_=n},MarkerClusterer.prototype.getMinClusterSize=function(){return this.minClusterSize_},MarkerClusterer.prototype.setMinClusterSize=function(n){this.minClusterSize_=n},MarkerClusterer.prototype.getExtendedBounds=function(n){var t=this.getProjection(),e=new google.maps.LatLng(n.getNorthEast().lat(),n.getNorthEast().lng()),o=new google.maps.LatLng(n.getSouthWest().lat(),n.getSouthWest().lng()),r=t.fromLatLngToDivPixel(e),i,u,f;return r.x+=this.gridSize_,r.y-=this.gridSize_,i=t.fromLatLngToDivPixel(o),i.x-=this.gridSize_,i.y+=this.gridSize_,u=t.fromDivPixelToLatLng(r),f=t.fromDivPixelToLatLng(i),n.extend(u),n.extend(f),n},MarkerClusterer.prototype.isMarkerInBounds_=function(n,t){return t.contains(n.getPosition())},MarkerClusterer.prototype.clearMarkers=function(){this.resetViewport(!0),this.markers_=[]},MarkerClusterer.prototype.resetViewport=function(n){for(var r,i,t=0;r=this.clusters_[t];t++)r.remove();for(t=0;i=this.markers_[t];t++)i.isAdded=!1,n&&i.setMap(null);this.clusters_=[]},MarkerClusterer.prototype.repaint=function(){var n=this.clusters_.slice();this.clusters_.length=0,this.resetViewport(),this.redraw(),window.setTimeout(function(){for(var t=0,i;i=n[t];t++)i.remove()},0)},MarkerClusterer.prototype.redraw=function(){this.createClusters_()},MarkerClusterer.prototype.distanceBetweenPoints_=function(n,t){if(!n||!t)return 0;var i=(t.lat()-n.lat())*Math.PI/180,r=(t.lng()-n.lng())*Math.PI/180,u=Math.sin(i/2)*Math.sin(i/2)+Math.cos(n.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2),f=2*Math.atan2(Math.sqrt(u),Math.sqrt(1-u));return 6371*f},MarkerClusterer.prototype.addToClosestCluster_=function(n){for(var e=4e4,i=null,o=n.getPosition(),u,f,t,r=0;t=this.clusters_[r];r++)u=t.getCenter(),u&&(f=this.distanceBetweenPoints_(u,n.getPosition()),f<e&&(e=f,i=t));i&&i.isMarkerInClusterBounds(n)?i.addMarker(n):(t=new Cluster(this),t.addMarker(n),this.clusters_.push(t))},MarkerClusterer.prototype.createClusters_=function(){var i,r,t,n;if(this.ready_)for(i=new google.maps.LatLngBounds(this.map_.getBounds().getSouthWest(),this.map_.getBounds().getNorthEast()),r=this.getExtendedBounds(i),t=0;n=this.markers_[t];t++)!n.isAdded&&this.isMarkerInBounds_(n,r)&&this.addToClosestCluster_(n)},Cluster.prototype.isMarkerAlreadyAdded=function(n){if(this.markers_.indexOf)return this.markers_.indexOf(n)!=-1;for(var t=0,i;i=this.markers_[t];t++)if(i==n)return!0;return!1},Cluster.prototype.addMarker=function(n){var t,r;if(this.isMarkerAlreadyAdded(n))return!1;if(this.center_){if(this.averageCenter_){var i=this.markers_.length+1,u=(this.center_.lat()*(i-1)+n.getPosition().lat())/i,f=(this.center_.lng()*(i-1)+n.getPosition().lng())/i;this.center_=new google.maps.LatLng(u,f),this.calculateBounds_()}}else this.center_=n.getPosition(),this.calculateBounds_();if(n.isAdded=!0,this.markers_.push(n),t=this.markers_.length,t<this.minClusterSize_&&n.getMap()!=this.map_&&n.setMap(this.map_),t==this.minClusterSize_)for(r=0;r<t;r++)this.markers_[r].setMap(null);return t>=this.minClusterSize_&&n.setMap(null),this.updateIcon(),!0},Cluster.prototype.getMarkerClusterer=function(){return this.markerClusterer_},Cluster.prototype.getBounds=function(){for(var t=new google.maps.LatLngBounds(this.center_,this.center_),r=this.getMarkers(),i,n=0;i=r[n];n++)t.extend(i.getPosition());return t},Cluster.prototype.remove=function(){this.clusterIcon_.remove(),this.markers_.length=0,delete this.markers_},Cluster.prototype.getSize=function(){return this.markers_.length},Cluster.prototype.getMarkers=function(){return this.markers_},Cluster.prototype.getCenter=function(){return this.center_},Cluster.prototype.calculateBounds_=function(){var n=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(n)},Cluster.prototype.isMarkerInClusterBounds=function(n){return this.bounds_.contains(n.getPosition())},Cluster.prototype.getMap=function(){return this.map_},Cluster.prototype.updateIcon=function(){var f=this.map_.getZoom(),t=this.markerClusterer_.getMaxZoom(),n,i,r,u;if(t&&f>t){for(n=0;i=this.markers_[n];n++)i.setMap(this.map_);return}if(this.markers_.length<this.minClusterSize_){this.clusterIcon_.hide();return}r=this.markerClusterer_.getStyles().length,u=this.markerClusterer_.getCalculator()(this.markers_,r),this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.setSums(u),this.clusterIcon_.show()},ClusterIcon.prototype.triggerClusterClick=function(){var n=this.cluster_.getMarkerClusterer();google.maps.event.trigger(n,"clusterclick",this.cluster_),n.isZoomOnClick()&&this.map_.fitBounds(this.cluster_.getBounds())},ClusterIcon.prototype.onAdd=function(){var n,t,i;this.div_=document.createElement("DIV"),this.visible_&&(n=this.getPosFromLatLng_(this.center_),this.div_.style.cssText=this.createCss(n),this.div_.innerHTML=this.sums_.text),t=this.getPanes(),t.overlayMouseTarget.appendChild(this.div_),i=this,google.maps.event.addDomListener(this.div_,"click",function(){i.triggerClusterClick()})},ClusterIcon.prototype.getPosFromLatLng_=function(n){var t=this.getProjection().fromLatLngToDivPixel(n);return t.x-=parseInt(this.width_/2,10),t.y-=parseInt(this.height_/2,10),t},ClusterIcon.prototype.draw=function(){if(this.visible_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.top=n.y+"px",this.div_.style.left=n.x+"px"}},ClusterIcon.prototype.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},ClusterIcon.prototype.show=function(){if(this.div_){var n=this.getPosFromLatLng_(this.center_);this.div_.style.cssText=this.createCss(n),this.div_.style.display=""}this.visible_=!0},ClusterIcon.prototype.remove=function(){this.setMap(null)},ClusterIcon.prototype.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),this.div_.parentNode.removeChild(this.div_),this.div_=null)},ClusterIcon.prototype.setSums=function(n){this.sums_=n,this.text_=n.text,this.index_=n.index,this.div_&&(this.div_.innerHTML=n.text),this.useStyle()},ClusterIcon.prototype.useStyle=function(){var t=Math.max(0,this.sums_.index-1),n;t=Math.min(this.styles_.length-1,t),n=this.styles_[t],this.url_=n.url,this.height_=n.height,this.width_=n.width,this.textColor_=n.textColor,this.anchor_=n.anchor,this.textSize_=n.textSize,this.backgroundPosition_=n.backgroundPosition},ClusterIcon.prototype.setCenter=function(n){this.center_=n},ClusterIcon.prototype.createCss=function(n){var t=[],i,r,u;return t.push("background-image:url("+this.url_+");"),i=this.backgroundPosition_?this.backgroundPosition_:"0 0",t.push("background-position:"+i+";"),typeof this.anchor_=="object"?(typeof this.anchor_[0]=="number"&&this.anchor_[0]>0&&this.anchor_[0]<this.height_?t.push("height:"+(this.height_-this.anchor_[0])+"px; padding-top:"+this.anchor_[0]+"px;"):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px;"),typeof this.anchor_[1]=="number"&&this.anchor_[1]>0&&this.anchor_[1]<this.width_?t.push("width:"+(this.width_-this.anchor_[1])+"px; padding-left:"+this.anchor_[1]+"px;"):t.push("width:"+this.width_+"px; text-align:center;")):t.push("height:"+this.height_+"px; line-height:"+this.height_+"px; width:"+this.width_+"px; text-align:center;"),r=this.textColor_?this.textColor_:"black",u=this.textSize_?this.textSize_:11,t.push("cursor:pointer; top:"+n.y+"px; left:"+n.x+"px; color:"+r+"; position:absolute; font-size:"+u+"px; font-family:Arial,sans-serif; font-weight:bold"),t.join("")};
/*!
** Unobtrusive validation support library for jQuery and jQuery Validate
** Copyright (C) Microsoft Corporation. All rights reserved.
*/
(function(n){function i(n,t,i){n.rules[t]=i,n.message&&(n.messages[t]=n.message)}function h(n){return n.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(n){return n.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function e(n){return n.substr(0,n.lastIndexOf(".")+1)}function o(n,t){return n.indexOf("*.")===0&&(n=n.replace("*.",t)),n}function c(t,i){var r=n(this).find("[data-valmsg-for='"+f(i[0].name)+"']"),u=r.attr("data-valmsg-replace"),e=u?n.parseJSON(u)!==!1:null;r.removeClass("field-validation-valid").addClass("field-validation-error"),t.data("unobtrusiveContainer",r),e?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function l(t,i){var u=n(this).find("[data-valmsg-summary=true]"),r=u.find("ul");r&&r.length&&i.errorList.length&&(r.empty(),u.addClass("validation-summary-errors").removeClass("validation-summary-valid"),n.each(i.errorList,function(){n("<li />").html(this.message).appendTo(r)}))}function a(t){var i=t.data("unobtrusiveContainer"),r=i.attr("data-valmsg-replace"),u=r?n.parseJSON(r):null;i&&(i.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),u&&i.empty())}function v(){var t=n(this),i="__jquery_unobtrusive_validation_form_reset";if(!t.data(i)){t.data(i,!0);try{t.data("validator").resetForm()}finally{t.removeData(i)}t.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),t.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function s(t){var i=n(t),f=i.data(u),s=n.proxy(v,t),e=r.unobtrusive.options||{},o=function(i,r){var u=e[i];u&&n.isFunction(u)&&u.apply(t,r)};return f||(f={options:{errorClass:e.errorClass||"input-validation-error",errorElement:e.errorElement||"span",errorPlacement:function(){c.apply(t,arguments),o("errorPlacement",arguments)},invalidHandler:function(){l.apply(t,arguments),o("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments),o("success",arguments)}},attachValidation:function(){i.off("reset."+u,s).on("reset."+u,s).validate(this.options)},validate:function(){return i.validate(),i.valid()}},i.data(u,f)),f}var r=n.validator,t,u="unobtrusiveValidation";r.unobtrusive={adapters:[],parseElement:function(t,i){var u=n(t),f=u.parents("form")[0],r,e,o;f&&(r=s(f),r.options.rules[t.name]=e={},r.options.messages[t.name]=o={},n.each(this.adapters,function(){var i="data-val-"+this.name,r=u.attr(i),s={};r!==undefined&&(i+="-",n.each(this.params,function(){s[this]=u.attr(i+this)}),this.adapt({element:t,form:f,message:r,params:s,rules:e,messages:o}))}),n.extend(e,{__dummy__:!0}),i||r.attachValidation())},parse:function(t){var i=n(t),u=i.parents().addBack().filter("form").add(i.find("form")).has("[data-val=true]");i.find("[data-val=true]").each(function(){r.unobtrusive.parseElement(this,!0)}),u.each(function(){var n=s(this);n&&n.attachValidation()})}},t=r.unobtrusive.adapters,t.add=function(n,t,i){return i||(i=t,t=[]),this.push({name:n,params:t,adapt:i}),this},t.addBool=function(n,t){return this.add(n,function(r){i(r,t||n,!0)})},t.addMinMax=function(n,t,r,u,f,e){return this.add(n,[f||"min",e||"max"],function(n){var f=n.params.min,e=n.params.max;f&&e?i(n,u,[f,e]):f?i(n,t,f):e&&i(n,r,e)})},t.addSingleVal=function(n,t,r){return this.add(n,[t||"val"],function(u){i(u,r||n,u.params[t])})},r.addMethod("__dummy__",function(){return!0}),r.addMethod("regex",function(n,t,i){var r;return this.optional(t)?!0:(r=new RegExp(i).exec(n),r&&r.index===0&&r[0].length===n.length)}),r.addMethod("nonalphamin",function(n,t,i){var r;return i&&(r=n.match(/\W/g),r=r&&r.length>=i),r}),r.methods.extension?(t.addSingleVal("accept","mimtype"),t.addSingleVal("extension","extension")):t.addSingleVal("extension","extension","accept"),t.addSingleVal("regex","pattern"),t.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),t.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),t.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),t.add("equalto",["other"],function(t){var r=e(t.element.name),u=t.params.other,s=o(u,r),h=n(t.form).find(":input").filter("[name='"+f(s)+"']")[0];i(t,"equalTo",h)}),t.add("required",function(n){(n.element.tagName.toUpperCase()!=="INPUT"||n.element.type.toUpperCase()!=="CHECKBOX")&&i(n,"required",!0)}),t.add("remote",["url","type","additionalfields"],function(t){var r={url:t.params.url,type:t.params.type||"GET",data:{}},u=e(t.element.name);n.each(h(t.params.additionalfields||t.element.name),function(i,e){var s=o(e,u);r.data[s]=function(){var i=n(t.form).find(":input").filter("[name='"+f(s)+"']");return i.is(":checkbox")?i.filter(":checked").val()||i.filter(":hidden").val()||"":i.is(":radio")?i.filter(":checked").val()||"":i.val()}}),i(t,"remote",r)}),t.add("password",["min","nonalphamin","regex"],function(n){n.params.min&&i(n,"minlength",n.params.min),n.params.nonalphamin&&i(n,"nonalphamin",n.params.nonalphamin),n.params.regex&&i(n,"regex",n.params.regex)}),n(function(){r.unobtrusive.parse(document)})})(jQuery);
/*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */
/*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */
(function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(n.document)})(this);
/*! matchMedia() polyfill addListener/removeListener extension. Author & copyright (c) 2012: Scott Jehl. Dual MIT/BSD license */
(function(n){"use strict";if(n.matchMedia&&n.matchMedia("all").addListener)return!1;var i=n.matchMedia,f=i("only all").matches,r=!1,u=0,t=[],e=function(){n.clearTimeout(u),u=n.setTimeout(function(){for(var f,h,r=0,e=t.length;r<e;r++){var u=t[r].mql,o=t[r].listeners||[],s=i(u.media).matches;if(s!==u.matches)for(u.matches=s,f=0,h=o.length;f<h;f++)o[f].call(n,u)}},30)};n.matchMedia=function(u){var s=i(u),o=[],h=0;return s.addListener=function(i){f&&(r||(r=!0,n.addEventListener("resize",e,!0)),h===0&&(h=t.push({mql:s,listeners:o})),o.push(i))},s.removeListener=function(n){for(var t=0,i=o.length;t<i;t++)o[t]===n&&o.splice(t,1)},s}})(this);
/*! Respond.js v1.4.0: min/max-width media query polyfill. (c) Scott Jehl. MIT Lic. j.mp/respondjs  */
(function(n){"use strict";function nt(){y(!0)}var t={};n.respond=t,t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),p=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)};if(t.ajax=p,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all")!==null&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var i=n.document,r=i.documentElement,e=[],o=[],u=[],c={},w=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),l,b,a,v=function(){var f,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,u=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=u=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),u&&r.insertBefore(n,r.firstChild),f=t.offsetWidth,u?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),a=parseFloat(f)},y=function(t){var rt="clientWidth",ut=r[rt],ft=i.compatMode==="CSS1Compat"&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&l&&et-l<w){n.clearTimeout(b),b=n.setTimeout(y,w);return}l=et;for(tt in e)if(e.hasOwnProperty(tt)){var c=e[tt],k=c.minw,d=c.maxw,ot=k===null,st=d===null,ht="em";!k||(k=parseFloat(k)*(k.indexOf(ht)>-1?a||v():1)),!d||(d=parseFloat(d)*(d.indexOf(ht)>-1?a||v():1)),c.hasquery&&(ot&&st||!(ot||ft>=k)||!(st||ft<=d))||(p[c.media]||(p[c.media]=[]),p[c.media].push(o[c.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},k=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;f<c;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;s<w;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},d=function(){if(f.length){var t=f.shift();p(t.href,function(i){k(i,t.href,t.media),c[t.href]=!0,n.setTimeout(function(){d()},0)})}},g=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&i.rel.toLowerCase()==="stylesheet";!t||!e||c[t]||(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,t,u),c[t]=!0):(/^([a-zA-Z:]*\/\/)/.test(t)||it)&&t.replace(RegExp.$1,"").split("/")[0]!==n.location.host||(t.substring(0,2)==="//"&&(t=n.location.protocol+t),f.push({href:t,media:u})))}d()};g(),t.update=g,t.getEmValue=v,n.addEventListener?n.addEventListener("resize",nt,!1):n.attachEvent&&n.attachEvent("onresize",nt)}})(this),!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&"object"==typeof module.exports?module.exports=n(require("jquery")):n(jQuery)}(function(n){return function(t){"use strict";var i=t.tablesorter={version:"2.28.15",parsers:[],widgets:[],defaults:{theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,resort:!0,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",duplicateSpan:!0,textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,initWidgets:!0,widgetClass:"widget-{name}",widgets:[],widgetOptions:{zebra:["even","odd"]},initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssInfoBlock:"tablesorter-infoOnly",cssNoSort:"tablesorter-noSort",cssIgnoreRow:"tablesorter-ignoreRow",cssIcon:"tablesorter-icon",cssIconNone:"",cssIconAsc:"",cssIconDesc:"",cssIconDisabled:"",pointerClick:"click",pointerDown:"mousedown",pointerUp:"mouseup",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[],globalize:0,imgAttr:0},css:{table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",colgroup:"tablesorter-colgroup",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},language:{sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",sortDisabled:"sorting is disabled",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},regex:{templateContent:/\{content\}/g,templateIcon:/\{icon\}/g,templateName:/\{name\}/i,spaces:/\s+/g,nonWord:/\W/g,formElements:/(input|select|button|textarea)/i,chunk:/(^([+\-]?(?:\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i,comma:/,/g,digitNonUS:/[\s|\.]/g,digitNegativeTest:/^\s*\([.\d]+\)/,digitNegativeReplace:/^\s*\(([.\d]+)\)/,digitTest:/^[\-+(]?\d+[)]?$/,digitReplace:/[,.'"\s]/g},string:{max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,"null":0,top:!0,bottom:!1},keyCodes:{enter:13},dates:{},instanceMethods:{},setup:function(n,r){if(n&&n.tHead&&0!==n.tBodies.length&&!0!==n.hasInitialized){var f="",u=t(n),e=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=r,t.data(n,"tablesorter",r),r.debug&&(console[console.group?"group":"log"]("Initializing tablesorter v"+i.version),t.data(n,"startoveralltimer",new Date)),r.supportsDataObject=function(n){return n[0]=parseInt(n[0],10),n[0]>1||1===n[0]&&parseInt(n[1],10)>=4}(t.fn.jquery.split(".")),r.emptyTo=r.emptyTo.toLowerCase(),r.stringTo=r.stringTo.toLowerCase(),r.last={sortList:[],clickedIndex:-1},/tablesorter\-/.test(u.attr("class"))||(f=""!==r.theme?" tablesorter-"+r.theme:""),r.namespace=r.namespace?"."+r.namespace.replace(i.regex.nonWord,""):".tablesorter"+Math.random().toString(16).slice(2),r.table=n,r.$table=u.addClass(i.css.table+" "+r.tableClass+f+" "+r.namespace.slice(1)).attr("role","grid"),r.$headers=u.find(r.selectorHeaders),r.$table.children().children("tr").attr("role","row"),r.$tbodies=u.children("tbody:not(."+r.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),r.$table.children("caption").length&&((f=r.$table.children("caption")[0]).id||(f.id=r.namespace.slice(1)+"caption"),r.$table.attr("aria-labelledby",f.id)),r.widgetInit={},r.textExtraction=r.$table.attr("data-text-extraction")||r.textExtraction||"basic",i.buildHeaders(r),i.fixColumnWidth(n),i.addWidgetFromClass(n),i.applyWidgetOptions(n),i.setupParsers(r),r.totalRows=0,i.validateOptions(r),r.delayInit||i.buildCache(r),i.bindEvents(n,r.$headers,!0),i.bindMethods(r),r.supportsDataObject&&void 0!==u.data().sortlist?r.sortList=u.data().sortlist:e&&u.metadata()&&u.metadata().sortlist&&(r.sortList=u.metadata().sortlist),i.applyWidget(n,!0),r.sortList.length>0?i.sortOn(r,r.sortList,{},!r.initWidgets):(i.setHeadersCss(r),r.initWidgets&&i.applyWidget(n,!1)),r.showProcessing&&u.unbind("sortBegin"+r.namespace+" sortEnd"+r.namespace).bind("sortBegin"+r.namespace+" sortEnd"+r.namespace,function(t){clearTimeout(r.timerProcessing),i.isProcessing(n),"sortBegin"===t.type&&(r.timerProcessing=setTimeout(function(){i.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,r.debug&&(console.log("Overall initialization time:"+i.benchmark(t.data(n,"startoveralltimer"))),r.debug&&console.groupEnd&&console.groupEnd()),u.triggerHandler("tablesorter-initialized",n),"function"==typeof r.initialized&&r.initialized(n)}else r.debug&&(n.hasInitialized?console.warn("Stopping initialization. Tablesorter has already been initialized"):console.error("Stopping initialization! No table, thead or tbody",n))},bindMethods:function(n){var u=n.$table,r=n.namespace,f="sortReset update updateRows updateAll updateHeaders addRows updateCell updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(r+" ");u.unbind(f.replace(i.regex.spaces," ")).bind("sortReset"+r,function(n,t){n.stopPropagation(),i.sortReset(this.config,function(n){n.isApplyingWidgets?setTimeout(function(){i.applyWidget(n,"",t)},100):i.applyWidget(n,"",t)})}).bind("updateAll"+r,function(n,t,r){n.stopPropagation(),i.updateAll(this.config,t,r)}).bind("update"+r+" updateRows"+r,function(n,t,r){n.stopPropagation(),i.update(this.config,t,r)}).bind("updateHeaders"+r,function(n,t){n.stopPropagation(),i.updateHeaders(this.config,t)}).bind("updateCell"+r,function(n,t,r,u){n.stopPropagation(),i.updateCell(this.config,t,r,u)}).bind("addRows"+r,function(n,t,r,u){n.stopPropagation(),i.addRows(this.config,t,r,u)}).bind("updateComplete"+r,function(){this.isUpdating=!1}).bind("sorton"+r,function(n,t,r,u){n.stopPropagation(),i.sortOn(this.config,t,r,u)}).bind("appendCache"+r,function(n,r,u){n.stopPropagation(),i.appendCache(this.config,u),t.isFunction(r)&&r(this)}).bind("updateCache"+r,function(n,t,r){n.stopPropagation(),i.updateCache(this.config,t,r)}).bind("applyWidgetId"+r,function(n,t){n.stopPropagation(),i.applyWidgetId(this,t)}).bind("applyWidgets"+r,function(n,t){n.stopPropagation(),i.applyWidget(this,t)}).bind("refreshWidgets"+r,function(n,t,r){n.stopPropagation(),i.refreshWidgets(this,t,r)}).bind("removeWidget"+r,function(n,t,r){n.stopPropagation(),i.removeWidget(this,t,r)}).bind("destroy"+r,function(n,t,r){n.stopPropagation(),i.destroy(this,t,r)}).bind("resetToLoadState"+r,function(r){r.stopPropagation(),i.removeWidget(this,!0,!1);var u=t.extend(!0,{},n.originalSettings);(n=t.extend(!0,{},i.defaults,u)).originalSettings=u,this.hasInitialized=!1,i.setup(this,n)})},bindEvents:function(n,r,u){var e,f=(n=t(n)[0]).config,o=f.namespace,s=null;!0!==u&&(r.addClass(o.slice(1)+"_extra_headers"),(e=t.fn.closest?r.closest("table")[0]:r.parents("table")[0])&&"TABLE"===e.nodeName&&e!==n&&t(e).addClass(o.slice(1)+"_extra_table")),e=(f.pointerDown+" "+f.pointerUp+" "+f.pointerClick+" sort keyup ").replace(i.regex.spaces," ").split(" ").join(o+" "),r.find(f.selectorSort).add(r.filter(f.selectorSort)).unbind(e).bind(e,function(n,u){var c,l,e,h=t(n.target),o=" "+n.type+" ";if(!(1!==(n.which||n.button)&&!o.match(" "+f.pointerClick+" | sort | keyup ")||" keyup "===o&&n.which!==i.keyCodes.enter||o.match(" "+f.pointerClick+" ")&&void 0!==n.which||o.match(" "+f.pointerUp+" ")&&s!==n.target&&!0!==u)){if(o.match(" "+f.pointerDown+" "))return s=n.target,void("1"===(e=h.jquery.split("."))[0]&&e[1]<4&&n.preventDefault());if(s=null,i.regex.formElements.test(n.target.nodeName)||h.hasClass(f.cssNoSort)||h.parents("."+f.cssNoSort).length>0||h.parents("button").length>0)return!f.cancelSelection;f.delayInit&&i.isEmptyObject(f.cache)&&i.buildCache(f),c=t.fn.closest?t(this).closest("th, td"):/TH|TD/.test(this.nodeName)?t(this):t(this).parents("th, td"),e=r.index(c),f.last.clickedIndex=e<0?c.attr("data-column"):e,(l=f.$headers[f.last.clickedIndex])&&!l.sortDisabled&&i.initSort(f,l,n)}}),f.cancelSelection&&r.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},buildHeaders:function(n){var u,f,e,r;for(n.headerList=[],n.headerContent=[],n.sortVars=[],n.debug&&(e=new Date),n.columns=i.computeColumnIndex(n.$table.children("thead, tfoot").children("tr")),f=n.cssIcon?'<i class="'+(n.cssIcon===i.css.icon?i.css.icon:n.cssIcon+" "+i.css.icon)+'"><\/i>':"",n.$headers=t(t.map(n.$table.find(n.selectorHeaders),function(r,u){var c,l,o,h,s,e=t(r);if(!e.parent().hasClass(n.cssIgnoreRow))return c=i.getColumnData(n.table,n.headers,u,!0),n.headerContent[u]=e.html(),""===n.headerTemplate||e.find("."+i.css.headerIn).length||(h=n.headerTemplate.replace(i.regex.templateContent,e.html()).replace(i.regex.templateIcon,e.find("."+i.css.icon).length?"":f),n.onRenderTemplate&&(l=n.onRenderTemplate.apply(e,[u,h]))&&"string"==typeof l&&(h=l),e.html('<div class="'+i.css.headerIn+'">'+h+"<\/div>")),n.onRenderHeader&&n.onRenderHeader.apply(e,[u,n,n.$table]),o=parseInt(e.attr("data-column"),10),r.column=o,s=i.getOrder(i.getData(e,c,"sortInitialOrder")||n.sortInitialOrder),n.sortVars[o]={count:-1,order:s?n.sortReset?[1,0,2]:[1,0]:n.sortReset?[0,1,2]:[0,1],lockedOrder:!1},void 0!==(s=i.getData(e,c,"lockedOrder")||!1)&&!1!==s&&(n.sortVars[o].lockedOrder=!0,n.sortVars[o].order=i.getOrder(s)?[1,1]:[0,0]),n.headerList[u]=r,e.addClass(i.css.header+" "+n.cssHeader).parent().addClass(i.css.headerRow+" "+n.cssHeaderRow).attr("role","row"),n.tabIndex&&e.attr("tabindex",0),r})),n.$headerIndexed=[],r=0;r<n.columns;r++)i.isEmptyObject(n.sortVars[r])&&(n.sortVars[r]={}),u=n.$headers.filter('[data-column="'+r+'"]'),n.$headerIndexed[r]=u.length?u.not(".sorter-false").length?u.not(".sorter-false").filter(":last"):u.filter(":last"):t();n.$table.find(n.selectorHeaders).attr({scope:"col",role:"columnheader"}),i.updateHeader(n),n.debug&&(console.log("Built headers:"+i.benchmark(e)),console.log(n.$headers))},addInstanceMethods:function(n){t.extend(i.instanceMethods,n)},setupParsers:function(n,t){var w,f,e,c,r,l,u,h,b,o,s,k,a,v,d=n.table,y=0,p={};if(n.$tbodies=n.$table.children("tbody:not(."+n.cssInfoBlock+")"),a=void 0===t?n.$tbodies:t,0===(v=a.length))return n.debug?console.warn("Warning: *Empty table!* Not building a parser cache"):"";for(n.debug&&(k=new Date,console[console.group?"group":"log"]("Detecting parsers for each column")),f={extractors:[],parsers:[]};y<v;){if((w=a[y].rows).length)for(r=0,c=n.columns,l=0;l<c;l++){if((u=n.$headerIndexed[r])&&u.length&&(h=i.getColumnData(d,n.headers,r),s=i.getParserById(i.getData(u,h,"extractor")),o=i.getParserById(i.getData(u,h,"sorter")),b="false"===i.getData(u,h,"parser"),n.empties[r]=(i.getData(u,h,"empty")||n.emptyTo||(n.emptyToBottom?"bottom":"top")).toLowerCase(),n.strings[r]=(i.getData(u,h,"string")||n.stringTo||"max").toLowerCase(),b&&(o=i.getParserById("no-parser")),s||(s=!1),o||(o=i.detectParserForColumn(n,w,-1,r)),n.debug&&(p["("+r+") "+u.text()]={parser:o.id,extractor:s?s.id:"none",string:n.strings[r],empty:n.empties[r]}),f.parsers[r]=o,f.extractors[r]=s,(e=u[0].colSpan-1)>0))for(r+=e,c+=e;e+1>0;)f.parsers[r-e]=o,f.extractors[r-e]=s,e--;r++}y+=f.parsers.length?v:1}n.debug&&(i.isEmptyObject(p)?console.warn("  No parsers detected!"):console[console.table?"table":"log"](p),console.log("Completed detecting parsers"+i.benchmark(k)),console.groupEnd&&console.groupEnd()),n.parsers=f.parsers,n.extractors=f.extractors},addParser:function(n){for(var u=i.parsers.length,r=!0,t=0;t<u;t++)i.parsers[t].id.toLowerCase()===n.id.toLowerCase()&&(r=!1);r&&(i.parsers[i.parsers.length]=n)},getParserById:function(n){if("false"==n)return!1;for(var r=i.parsers.length,t=0;t<r;t++)if(i.parsers[t].id.toLowerCase()===n.toString().toLowerCase())return i.parsers[t];return!1},detectParserForColumn:function(n,r,u,f){for(var e,h,c,l=i.parsers.length,o=!1,s="",a=!0;""===s&&a;)(c=r[++u])&&u<50?c.className.indexOf(i.cssIgnoreRow)<0&&(o=r[u].cells[f],s=i.getElementText(n,o,f),h=t(o),n.debug&&console.log("Checking if value was empty on row "+u+", column: "+f+': "'+s+'"')):a=!1;for(;--l>=0;)if((e=i.parsers[l])&&"text"!==e.id&&e.is&&e.is(s,n.table,o,h))return e;return i.getParserById("text")},getElementText:function(n,r,u){if(!r)return"";var o,e=n.textExtraction||"",f=r.jquery?r:t(r);return"string"==typeof e?"basic"===e&&void 0!==(o=f.attr(n.textAttribute))?t.trim(o):t.trim(r.textContent||f.text()):"function"==typeof e?t.trim(e(f[0],n.table,u)):"function"==typeof(o=i.getColumnData(n.table,e,u))?t.trim(o(f[0],n.table,u)):t.trim(f[0].textContent||f.text())},getParsedText:function(n,t,r,u){void 0===u&&(u=i.getElementText(n,t,r));var f=""+u,e=n.parsers[r],o=n.extractors[r];return e&&(o&&"function"==typeof o.format&&(u=o.format(u,n.table,t,r)),f="no-parser"===e.id?"":e.format(""+u,n.table,t,r),n.ignoreCase&&"string"==typeof f&&(f=f.toLowerCase())),f},buildCache:function(n,r,u){var l,o,w,a,e,v,d,s,g,it,h,ft,et,b,nt,tt,y,f,ot,k,c,p,rt=n.table,ut=n.parsers;if(n.$tbodies=n.$table.children("tbody:not(."+n.cssInfoBlock+")"),d=void 0===u?n.$tbodies:u,n.cache={},n.totalRows=0,!ut)return n.debug?console.warn("Warning: *Empty table!* Not building a cache"):"";for(n.debug&&(ft=new Date),n.showProcessing&&i.isProcessing(rt,!0),v=0;v<d.length;v++){for(tt=[],l=n.cache[v]={normalized:[]},et=d[v]&&d[v].rows.length||0,a=0;a<et;++a)if(b={child:[],raw:[]},s=t(d[v].rows[a]),g=[],!s.hasClass(n.selectorRemove.slice(1)))if(s.hasClass(n.cssChildRow)&&0!==a)for(c=l.normalized.length-1,(nt=l.normalized[c][n.columns]).$row=nt.$row.add(s),s.prev().hasClass(n.cssChildRow)||s.prev().addClass(i.css.cssHasChild),it=s.children("th, td"),c=nt.child.length,nt.child[c]=[],f=0,k=n.columns,e=0;e<k;e++)(h=it[e])&&(nt.child[c][e]=i.getParsedText(n,h,e),(y=it[e].colSpan-1)>0&&(f+=y,k+=y)),f++;else{for(b.$row=s,b.order=a,f=0,k=n.columns,e=0;e<k;++e){if((h=s[0].cells[e])&&f<n.columns&&(!(ot=void 0!==ut[f])&&n.debug&&console.warn("No parser found for row: "+a+", column: "+e+'; cell containing: "'+t(h).text()+'"; does it have a header?'),o=i.getElementText(n,h,f),b.raw[f]=o,w=i.getParsedText(n,h,f,o),g[f]=w,ot&&"numeric"===(ut[f].type||"").toLowerCase()&&(tt[f]=Math.max(Math.abs(w)||0,tt[f]||0)),(y=h.colSpan-1)>0)){for(p=0;p<=y;)w=n.duplicateSpan||0===p?o:"string"!=typeof n.textExtraction?i.getElementText(n,h,f+p)||"":"",b.raw[f+p]=w,g[f+p]=w,p++;f+=y,k+=y}f++}g[n.columns]=b,l.normalized[l.normalized.length]=g}l.colMax=tt,n.totalRows+=l.normalized.length}if(n.showProcessing&&i.isProcessing(rt),n.debug){for(c=Math.min(5,n.cache[0].normalized.length),console[console.group?"group":"log"]("Building cache for "+n.totalRows+" rows (showing "+c+" rows in log) and "+n.columns+" columns"+i.benchmark(ft)),o={},e=0;e<n.columns;e++)for(f=0;f<c;f++)o["row: "+f]||(o["row: "+f]={}),o["row: "+f][n.$headerIndexed[e].text()]=n.cache[0].normalized[f][e];console[console.table?"table":"log"](o),console.groupEnd&&console.groupEnd()}t.isFunction(r)&&r(rt)},getColumnText:function(n,r,u,f){var h,c,w,e,b,k,l,a,v,y,d="function"==typeof u,p="all"===r,o={raw:[],parsed:[],$cell:[]},s=(n=t(n)[0]).config;if(!i.isEmptyObject(s)){for(b=s.$tbodies.length,h=0;h<b;h++)for(k=(w=s.cache[h].normalized).length,c=0;c<k;c++)e=w[c],f&&!e[s.columns].$row.is(f)||(y=!0,a=p?e.slice(0,s.columns):e[r],e=e[s.columns],l=p?e.raw:e.raw[r],v=p?e.$row.children():e.$row.children().eq(r),d&&(y=u({tbodyIndex:h,rowIndex:c,parsed:a,raw:l,$row:e.$row,$cell:v})),!1!==y&&(o.parsed[o.parsed.length]=a,o.raw[o.raw.length]=l,o.$cell[o.$cell.length]=v));return o}s.debug&&console.warn("No cache found - aborting getColumnText function!")},setHeadersCss:function(n){var r,e,u=n.sortList,o=u.length,c=i.css.sortNone+" "+n.cssNone,s=[i.css.sortAsc+" "+n.cssAsc,i.css.sortDesc+" "+n.cssDesc],h=[n.cssIconAsc,n.cssIconDesc,n.cssIconNone],l=n.$table.find("tfoot tr").children("td, th").add(t(n.namespace+"_extra_headers")).removeClass(s.join(" ")),f=n.$headers.add(t("thead "+n.namespace+"_extra_headers")).removeClass(s.join(" ")).addClass(c).attr("aria-sort","none").find("."+i.css.icon).removeClass(h.join(" ")).end();for(f.not(".sorter-false").find("."+i.css.icon).addClass(h[2]),n.cssIconDisabled&&f.filter(".sorter-false").find("."+i.css.icon).addClass(n.cssIconDisabled),r=0;r<o;r++)if(2!==u[r][1]&&(f=n.$headers.filter(function(t){for(var r=!0,f=n.$headers.eq(t),u=parseInt(f.attr("data-column"),10),e=u+n.$headers[t].colSpan;u<e;u++)r=!!r&&(r||i.isValueInArray(u,n.sortList)>-1);return r}),(f=f.not(".sorter-false").filter('[data-column="'+u[r][0]+'"]'+(1===o?":last":""))).length)){for(e=0;e<f.length;e++)f[e].sortDisabled||f.eq(e).removeClass(c).addClass(s[u[r][1]]).attr("aria-sort",["ascending","descending"][u[r][1]]).find("."+i.css.icon).removeClass(h[2]).addClass(h[u[r][1]]);l.length&&l.filter('[data-column="'+u[r][0]+'"]').removeClass(c).addClass(s[u[r][1]])}for(o=n.$headers.length,r=0;r<o;r++)i.setColumnAriaLabel(n,n.$headers.eq(r))},setColumnAriaLabel:function(n,r,u){if(r.length){var s=parseInt(r.attr("data-column"),10),f=n.sortVars[s],e=r.hasClass(i.css.sortAsc)?"sortAsc":r.hasClass(i.css.sortDesc)?"sortDesc":"sortNone",o=t.trim(r.text())+": "+i.language[e];r.hasClass("sorter-false")||!1===u?o+=i.language.sortDisabled:(e=(f.count+1)%f.order.length,u=f.order[e],o+=i.language[0===u?"nextAsc":1===u?"nextDesc":"nextNone"]),r.attr("aria-label",o)}},updateHeader:function(n){for(var f,r,u,e=n.table,o=n.$headers.length,t=0;t<o;t++)r=n.$headers.eq(t),u=i.getColumnData(e,n.headers,t,!0),f="false"===i.getData(r,u,"sorter")||"false"===i.getData(r,u,"parser"),i.setColumnSort(n,r,f)},setColumnSort:function(n,t,i){var r=n.table.id;t[0].sortDisabled=i,t[i?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+i),n.tabIndex&&(i?t.removeAttr("tabindex"):t.attr("tabindex","0")),r&&(i?t.removeAttr("aria-controls"):t.attr("aria-controls",r))},updateHeaderSortCount:function(n,r){var e,u,s,o,h,l,c,f,a=r||n.sortList,v=a.length;for(n.sortList=[],o=0;o<v;o++)if(c=a[o],(e=parseInt(c[0],10))<n.columns){switch(n.sortVars[e].order||(f=i.getOrder(n.sortInitialOrder)?n.sortReset?[1,0,2]:[1,0]:n.sortReset?[0,1,2]:[0,1],n.sortVars[e].order=f,n.sortVars[e].count=0),f=n.sortVars[e].order,u=(""+c[1]).match(/^(1|d|s|o|n)/),u=u?u[0]:""){case"1":case"d":u=1;break;case"s":u=h||0;break;case"o":u=0===(l=f[(h||0)%f.length])?1:1===l?0:2;break;case"n":u=f[++n.sortVars[e].count%f.length];break;default:u=0}h=0===o?u:h,s=[e,parseInt(u,10)||0],n.sortList[n.sortList.length]=s,u=t.inArray(s[1],f),n.sortVars[e].count=u>=0?u:s[1]%f.length}},updateAll:function(n,t,r){var u=n.table;u.isUpdating=!0,i.refreshWidgets(u,!0,!0),i.buildHeaders(n),i.bindEvents(u,n.$headers,!0),i.bindMethods(n),i.commonUpdate(n,t,r)},update:function(n,t,r){n.table.isUpdating=!0,i.updateHeader(n),i.commonUpdate(n,t,r)},updateHeaders:function(n,t){n.table.isUpdating=!0,i.buildHeaders(n),i.bindEvents(n.table,n.$headers,!0),i.resortComplete(n,t)},updateCell:function(n,r,u,f){if(t(r).closest("tr").hasClass(n.cssChildRow))console.warn('Tablesorter Warning! "updateCell" for child row content has been disabled, use "update" instead');else{if(i.isEmptyObject(n.cache))return i.updateHeader(n),void i.commonUpdate(n,u,f);n.table.isUpdating=!0,n.$table.find(n.selectorRemove).remove();var e,h,p,o,l,w,a=n.$tbodies,s=t(r),v=a.index(t.fn.closest?s.closest("tbody"):s.parents("tbody").filter(":first")),y=n.cache[v],c=t.fn.closest?s.closest("tr"):s.parents("tr").filter(":first");if(r=s[0],a.length&&v>=0){if(p=a.eq(v).find("tr").not("."+n.cssChildRow).index(c),l=y.normalized[p],(w=c[0].cells.length)!==n.columns)for(o=0,e=!1,h=0;h<w;h++)e||c[0].cells[h]===r?e=!0:o+=c[0].cells[h].colSpan;else o=s.index();e=i.getElementText(n,r,o),l[n.columns].raw[o]=e,e=i.getParsedText(n,r,o,e),l[o]=e,"numeric"===(n.parsers[o].type||"").toLowerCase()&&(y.colMax[o]=Math.max(Math.abs(e)||0,y.colMax[o]||0)),!1!==(e="undefined"!==u?u:n.resort)?i.checkResort(n,e,f):i.resortComplete(n,f)}else n.debug&&console.error("updateCell aborted, tbody missing or not within the indicated table"),n.table.isUpdating=!1}},addRows:function(r,u,f,e){var v,y,h,s,b,c,k,p,o,w,l,a,d,g="string"==typeof u&&1===r.$tbodies.length&&/<tr/.test(u||""),nt=r.table;if(g)u=t(u),r.$tbodies.append(u);else if(!(u&&u instanceof n&&(t.fn.closest?u.closest("table")[0]:u.parents("table")[0])===r.table))return r.debug&&console.error("addRows method requires (1) a jQuery selector reference to rows that have already been added to the table, or (2) row HTML string to be added to a table with only one tbody"),!1;if(nt.isUpdating=!0,i.isEmptyObject(r.cache))i.updateHeader(r),i.commonUpdate(r,f,e);else{for(b=u.filter("tr").attr("role","row").length,h=r.$tbodies.index(u.parents("tbody").filter(":first")),r.parsers&&r.parsers.length||i.setupParsers(r),s=0;s<b;s++){for(o=0,k=u[s].cells.length,p=r.cache[h].normalized.length,l=[],w={child:[],raw:[],$row:u.eq(s),order:p},c=0;c<k;c++)a=u[s].cells[c],v=i.getElementText(r,a,o),w.raw[o]=v,y=i.getParsedText(r,a,o,v),l[o]=y,"numeric"===(r.parsers[o].type||"").toLowerCase()&&(r.cache[h].colMax[o]=Math.max(Math.abs(y)||0,r.cache[h].colMax[o]||0)),(d=a.colSpan-1)>0&&(o+=d),o++;l[r.columns]=w,r.cache[h].normalized[p]=l}i.checkResort(r,f,e)}},updateCache:function(n,t,r){n.parsers&&n.parsers.length||i.setupParsers(n,r),i.buildCache(n,t,r)},appendCache:function(n,t){var o,h,c,s,u,f,l,r=n.table,y=n.widgetOptions,a=n.$tbodies,e=[],v=n.cache;if(i.isEmptyObject(v))return n.appender?n.appender(r,e):r.isUpdating?n.$table.triggerHandler("updateComplete",r):"";for(n.debug&&(l=new Date),f=0;f<a.length;f++)if((c=a.eq(f)).length){for(s=i.processTbody(r,c,!0),h=(o=v[f].normalized).length,u=0;u<h;u++)e[e.length]=o[u][n.columns].$row,n.appender&&(!n.pager||n.pager.removeRows&&y.pager_removeRows||n.pager.ajax)||s.append(o[u][n.columns].$row);i.processTbody(r,s,!1)}n.appender&&n.appender(r,e),n.debug&&console.log("Rebuilt table"+i.benchmark(l)),t||n.appender||i.applyWidget(r),r.isUpdating&&n.$table.triggerHandler("updateComplete",r)},commonUpdate:function(n,t,r){n.$table.find(n.selectorRemove).remove(),i.setupParsers(n),i.buildCache(n),i.checkResort(n,t,r)},initSort:function(n,r,u){if(n.table.isUpdating)return setTimeout(function(){i.initSort(n,r,u)},50);var s,f,l,o,y,h,v,p=!u[n.sortMultiSortKey],a=n.table,w=n.$headers.length,e=parseInt(t(r).attr("data-column"),10),c=n.sortVars[e].order;if(n.$table.triggerHandler("sortStart",a),h=(n.sortVars[e].count+1)%c.length,n.sortVars[e].count=u[n.sortResetKey]?2:h,n.sortRestart)for(l=0;l<w;l++)v=n.$headers.eq(l),e!==(h=parseInt(v.attr("data-column"),10))&&(p||v.hasClass(i.css.sortNone))&&(n.sortVars[h].count=-1);if(p){if(n.sortList=[],n.last.sortList=[],null!==n.sortForce)for(s=n.sortForce,f=0;f<s.length;f++)s[f][0]!==e&&(n.sortList[n.sortList.length]=s[f]);if((o=c[n.sortVars[e].count])<2&&(n.sortList[n.sortList.length]=[e,o],r.colSpan>1))for(f=1;f<r.colSpan;f++)n.sortList[n.sortList.length]=[e+f,o],n.sortVars[e+f].count=t.inArray(o,c)}else if(n.sortList=t.extend([],n.last.sortList),i.isValueInArray(e,n.sortList)>=0)for(f=0;f<n.sortList.length;f++)(h=n.sortList[f])[0]===e&&(h[1]=c[n.sortVars[e].count],2===h[1]&&(n.sortList.splice(f,1),n.sortVars[e].count=-1));else if((o=c[n.sortVars[e].count])<2&&(n.sortList[n.sortList.length]=[e,o],r.colSpan>1))for(f=1;f<r.colSpan;f++)n.sortList[n.sortList.length]=[e+f,o],n.sortVars[e+f].count=t.inArray(o,c);if(n.last.sortList=t.extend([],n.sortList),n.sortList.length&&n.sortAppend&&(s=t.isArray(n.sortAppend)?n.sortAppend:n.sortAppend[n.sortList[0][0]],!i.isEmptyObject(s)))for(f=0;f<s.length;f++)if(s[f][0]!==e&&i.isValueInArray(s[f][0],n.sortList)<0){if(o=s[f][1],y=(""+o).match(/^(a|d|s|o|n)/))switch(h=n.sortList[0][1],y[0]){case"d":o=1;break;case"s":o=h;break;case"o":o=0===h?1:0;break;case"n":o=(h+1)%c.length;break;default:o=0}n.sortList[n.sortList.length]=[s[f][0],o]}n.$table.triggerHandler("sortBegin",a),setTimeout(function(){i.setHeadersCss(n),i.multisort(n),i.appendCache(n),n.$table.triggerHandler("sortBeforeEnd",a),n.$table.triggerHandler("sortEnd",a)},1)},multisort:function(n){var u,h,r,c,f=n.table,s=[],t=0,e=n.textSorter||"",o=n.sortList,l=o.length,a=n.$tbodies.length;if(!n.serverSideSorting&&!i.isEmptyObject(n.cache)){if(n.debug&&(h=new Date),"object"==typeof e)for(r=n.columns;r--;)"function"==typeof(c=i.getColumnData(f,e,r))&&(s[r]=c);for(u=0;u<a;u++)r=n.cache[u].colMax,n.cache[u].normalized.sort(function(u,h){for(var v,c,b,y,p,w,a=0;a<l;a++){if(c=o[a][0],b=o[a][1],t=0===b,n.sortStable&&u[c]===h[c]&&1===l)return u[n.columns].order-h[n.columns].order;if(v=/n/i.test(i.getSortType(n.parsers,c)),v&&n.strings[c]?(v="boolean"==typeof i.string[n.strings[c]]?(t?1:-1)*(i.string[n.strings[c]]?-1:1):n.strings[c]?i.string[n.strings[c]]||0:0,y=n.numberSorter?n.numberSorter(u[c],h[c],t,r[c],f):i["sortNumeric"+(t?"Asc":"Desc")](u[c],h[c],v,r[c],c,n)):(p=t?u:h,w=t?h:u,y="function"==typeof e?e(p[c],w[c],t,c,f):"function"==typeof s[c]?s[c](p[c],w[c],t,c,f):i["sortNatural"+(t?"Asc":"Desc")](u[c],h[c],c,n)),y)return y}return u[n.columns].order-h[n.columns].order});n.debug&&console.log("Applying sort "+o.toString()+i.benchmark(h))}},resortComplete:function(n,i){n.table.isUpdating&&n.$table.triggerHandler("updateComplete",n.table),t.isFunction(i)&&i(n.table)},checkResort:function(n,r,u){var f=t.isArray(r)?r:n.sortList;!1===(void 0===r?n.resort:r)||n.serverSideSorting||n.table.isProcessing?(i.resortComplete(n,u),i.applyWidget(n.table,!1)):f.length?i.sortOn(n,f,function(){i.resortComplete(n,u)},!0):i.sortReset(n,function(){i.resortComplete(n,u),i.applyWidget(n.table,!1)})},sortOn:function(n,r,u,f){var e=n.table;n.$table.triggerHandler("sortStart",e),i.updateHeaderSortCount(n,r),i.setHeadersCss(n),n.delayInit&&i.isEmptyObject(n.cache)&&i.buildCache(n),n.$table.triggerHandler("sortBegin",e),i.multisort(n),i.appendCache(n,f),n.$table.triggerHandler("sortBeforeEnd",e),n.$table.triggerHandler("sortEnd",e),i.applyWidget(e),t.isFunction(u)&&u(e)},sortReset:function(n,r){n.sortList=[],i.setHeadersCss(n),i.multisort(n),i.appendCache(n);for(var u=0;u<n.columns;u++)n.sortVars[u].count=-1;t.isFunction(r)&&r(n.table)},getSortType:function(n,t){return n&&n[t]?n[t].type||"":""},getOrder:function(n){return/^d/i.test(n)||1===n},sortNatural:function(n,t){if(n===t)return 0;n=n.toString(),t=t.toString();var u,f,e,s,r,h,o=i.regex;if(o.hex.test(t)){if(u=parseInt((n||"").match(o.hex),16),f=parseInt((t||"").match(o.hex),16),u<f)return-1;if(u>f)return 1}for(u=(n||"").replace(o.chunk,"\\0$1\\0").replace(o.chunks,"").split("\\0"),f=(t||"").replace(o.chunk,"\\0$1\\0").replace(o.chunks,"").split("\\0"),h=Math.max(u.length,f.length),r=0;r<h;r++){if(e=isNaN(u[r])?u[r]||0:parseFloat(u[r])||0,s=isNaN(f[r])?f[r]||0:parseFloat(f[r])||0,isNaN(e)!==isNaN(s))return isNaN(e)?1:-1;if(typeof e!=typeof s&&(e+="",s+=""),e<s)return-1;if(e>s)return 1}return 0},sortNaturalAsc:function(n,t,r,u){if(n===t)return 0;var f=i.string[u.empties[r]||u.emptyTo];return""===n&&0!==f?"boolean"==typeof f?f?-1:1:-f||-1:""===t&&0!==f?"boolean"==typeof f?f?1:-1:f||1:i.sortNatural(n,t)},sortNaturalDesc:function(n,t,r,u){if(n===t)return 0;var f=i.string[u.empties[r]||u.emptyTo];return""===n&&0!==f?"boolean"==typeof f?f?-1:1:f||1:""===t&&0!==f?"boolean"==typeof f?f?1:-1:-f||-1:i.sortNatural(t,n)},sortText:function(n,t){return n>t?1:n<t?-1:0},getTextValue:function(n,t,i){if(i){for(var f=n?n.length:0,u=i+t,r=0;r<f;r++)u+=n.charCodeAt(r);return t*u}return 0},sortNumericAsc:function(n,t,r,u,f,e){if(n===t)return 0;var o=i.string[e.empties[f]||e.emptyTo];return""===n&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:o||1:(isNaN(n)&&(n=i.getTextValue(n,r,u)),isNaN(t)&&(t=i.getTextValue(t,r,u)),n-t)},sortNumericDesc:function(n,t,r,u,f,e){if(n===t)return 0;var o=i.string[e.empties[f]||e.emptyTo];return""===n&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===t&&0!==o?"boolean"==typeof o?o?1:-1:-o||-1:(isNaN(n)&&(n=i.getTextValue(n,r,u)),isNaN(t)&&(t=i.getTextValue(t,r,u)),t-n)},sortNumeric:function(n,t){return n-t},addWidget:function(n){n.id&&!i.isEmptyObject(i.getWidgetById(n.id))&&console.warn('"'+n.id+'" widget was loaded more than once!'),i.widgets[i.widgets.length]=n},hasWidget:function(n,i){return(n=t(n)).length&&n[0].config&&n[0].config.widgetInit[i]||!1},getWidgetById:function(n){for(var r,u=i.widgets.length,t=0;t<u;t++)if((r=i.widgets[t])&&r.id&&r.id.toLowerCase()===n.toLowerCase())return r},applyWidgetOptions:function(n){var r,u,e,f=n.config,o=f.widgets.length;if(o)for(r=0;r<o;r++)(u=i.getWidgetById(f.widgets[r]))&&u.options&&(e=t.extend(!0,{},u.options),f.widgetOptions=t.extend(!0,e,f.widgetOptions),t.extend(!0,i.defaults.widgetOptions,u.options))},addWidgetFromClass:function(n){var f,t,u=n.config,o="^"+u.widgetClass.replace(i.regex.templateName,"(\\S+)+")+"$",e=new RegExp(o,"g"),r=(n.className||"").split(i.regex.spaces);if(r.length)for(f=r.length,t=0;t<f;t++)r[t].match(e)&&(u.widgets[u.widgets.length]=r[t].replace(e,"$1"))},applyWidgetId:function(n,r,u){var s,h,e,f=(n=t(n)[0]).config,c=f.widgetOptions,o=i.getWidgetById(r);o&&(e=o.id,s=!1,t.inArray(e,f.widgets)<0&&(f.widgets[f.widgets.length]=e),f.debug&&(h=new Date),!u&&f.widgetInit[e]||(f.widgetInit[e]=!0,n.hasInitialized&&i.applyWidgetOptions(n),"function"==typeof o.init&&(s=!0,f.debug&&console[console.group?"group":"log"]("Initializing "+e+" widget"),o.init(n,o,f,c))),u||"function"!=typeof o.format||(s=!0,f.debug&&console[console.group?"group":"log"]("Updating "+e+" widget"),o.format(n,f,c,!1)),f.debug&&s&&(console.log("Completed "+(u?"initializing ":"applying ")+e+" widget"+i.benchmark(h)),console.groupEnd&&console.groupEnd()))},applyWidget:function(n,r,u){var o,s,c,e,l,f=(n=t(n)[0]).config,h=[];if(!1===r||!n.hasInitialized||!n.isApplyingWidgets&&!n.isUpdating){if(f.debug&&(l=new Date),i.addWidgetFromClass(n),clearTimeout(f.timerReady),f.widgets.length){for(n.isApplyingWidgets=!0,f.widgets=t.grep(f.widgets,function(n,i){return t.inArray(n,f.widgets)===i}),s=(c=f.widgets||[]).length,o=0;o<s;o++)(e=i.getWidgetById(c[o]))&&e.id?(e.priority||(e.priority=10),h[o]=e):f.debug&&console.warn('"'+c[o]+'" widget code does not exist!');for(h.sort(function(n,t){return n.priority<t.priority?-1:n.priority===t.priority?0:1}),s=h.length,f.debug&&console[console.group?"group":"log"]("Start "+(r?"initializing":"applying")+" widgets"),o=0;o<s;o++)(e=h[o])&&e.id&&i.applyWidgetId(n,e.id,r);f.debug&&console.groupEnd&&console.groupEnd()}f.timerReady=setTimeout(function(){n.isApplyingWidgets=!1,t.data(n,"lastWidgetApplication",new Date),f.$table.triggerHandler("tablesorter-ready"),r||"function"!=typeof u||u(n),f.debug&&(e=f.widgets.length,console.log("Completed "+(!0===r?"initializing ":"applying ")+e+" widget"+(1!==e?"s":"")+i.benchmark(l)))},10)}},removeWidget:function(n,r,u){var f,e,o,h,s=(n=t(n)[0]).config;if(!0===r)for(r=[],h=i.widgets.length,o=0;o<h;o++)(e=i.widgets[o])&&e.id&&(r[r.length]=e.id);else r=(t.isArray(r)?r.join(","):r||"").toLowerCase().split(/[\s,]+/);for(h=r.length,f=0;f<h;f++)e=i.getWidgetById(r[f]),(o=t.inArray(r[f],s.widgets))>=0&&!0!==u&&s.widgets.splice(o,1),e&&e.remove&&(s.debug&&console.log((u?"Refreshing":"Removing")+' "'+r[f]+'" widget'),e.remove(n,s,s.widgetOptions,u),s.widgetInit[r[f]]=!1)},refreshWidgets:function(n,r,u){for(var e,c=(n=t(n)[0]).config.widgets,h=i.widgets,l=h.length,o=[],s=function(n){t(n).triggerHandler("refreshComplete")},f=0;f<l;f++)(e=h[f])&&e.id&&(r||t.inArray(e.id,c)<0)&&(o[o.length]=e.id);i.removeWidget(n,o.join(","),!0),!0!==u?(i.applyWidget(n,r||!1,s),r&&i.applyWidget(n,!1,s)):s(n)},benchmark:function(n){return" ("+((new Date).getTime()-n.getTime())+" ms)"},log:function(){console.log(arguments)},isEmptyObject:function(n){for(var t in n)return!1;return!0},isValueInArray:function(n,t){for(var r=t&&t.length||0,i=0;i<r;i++)if(t[i][0]===n)return i;return-1},formatFloat:function(n,r){if("string"!=typeof n||""===n)return n;var u;return n=(r&&r.config?!1!==r.config.usNumberFormat:void 0===r||r)?n.replace(i.regex.comma,""):n.replace(i.regex.digitNonUS,"").replace(i.regex.comma,"."),i.regex.digitNegativeTest.test(n)&&(n=n.replace(i.regex.digitNegativeReplace,"-$1")),u=parseFloat(n),isNaN(u)?t.trim(n):u},isDigit:function(n){return isNaN(n)?i.regex.digitTest.test(n.toString().replace(i.regex.digitReplace,"")):""!==n},computeColumnIndex:function(n,r){for(var c,u,l,o,v,e,y,p,s,w=r&&r.columns||0,f=[],a=new Array(w),h=0;h<n.length;h++)for(v=n[h].cells,c=0;c<v.length;c++){for(e=h,y=(o=v[c]).rowSpan||1,p=o.colSpan||1,void 0===f[e]&&(f[e]=[]),u=0;u<f[e].length+1;u++)if(void 0===f[e][u]){s=u;break}for(w&&o.cellIndex===s||(o.setAttribute?o.setAttribute("data-column",s):t(o).attr("data-column",s)),u=e;u<e+y;u++)for(void 0===f[u]&&(f[u]=[]),a=f[u],l=s;l<s+p;l++)a[l]="x"}return i.checkColumnCount(n,f,a.length),a.length},checkColumnCount:function(n,t,i){for(var f,e=!0,u=[],r=0;r<t.length;r++)if(t[r]&&(f=t[r].length,t[r].length!==i)){e=!1;break}e||(n.each(function(n,t){var i=t.parentElement.nodeName;u.indexOf(i)<0&&u.push(i)}),console.error("Invalid or incorrect number of columns in the "+u.join(" or ")+"; expected "+i+", but found "+f+" columns"))},fixColumnWidth:function(n){var e,o,s,h,f,r=(n=t(n)[0]).config,u=r.$table.children("colgroup");if(u.length&&u.hasClass(i.css.colgroup)&&u.remove(),r.widthFixed&&0===r.$table.children("colgroup").length){for(u=t('<colgroup class="'+i.css.colgroup+'">'),e=r.$table.width(),h=(s=r.$tbodies.find("tr:first").children(":visible")).length,f=0;f<h;f++)o=parseInt(s.eq(f).width()/e*1e3,10)/10+"%",u.append(t("<col>").css("width",o));r.$table.prepend(u)}},getData:function(n,i,r){var e,o,f="",u=t(n);return u.length?(e=!!t.metadata&&u.metadata(),o=" "+(u.attr("class")||""),void 0!==u.data(r)||void 0!==u.data(r.toLowerCase())?f+=u.data(r)||u.data(r.toLowerCase()):e&&void 0!==e[r]?f+=e[r]:i&&void 0!==i[r]?f+=i[r]:" "!==o&&o.match(" "+r+"-")&&(f=o.match(new RegExp("\\s"+r+"-([\\w-]+)"))[1]||""),t.trim(f)):""},getColumnData:function(n,i,r,u,f){if("object"!=typeof i||null===i)return i;var e,o=(n=t(n)[0]).config,h=f||o.$headers,s=o.$headerIndexed&&o.$headerIndexed[r]||h.filter('[data-column="'+r+'"]:last');if(void 0!==i[r])return u?i[r]:i[h.index(s)];for(e in i)if("string"==typeof e&&s.filter(e).add(s.find(e)).length)return i[e]},isProcessing:function(n,r,u){var f=(n=t(n))[0].config,e=u||n.find("."+i.css.header);r?(void 0!==u&&f.sortList.length>0&&(e=e.filter(function(){return!this.sortDisabled&&i.isValueInArray(parseFloat(t(this).attr("data-column")),f.sortList)>=0})),n.add(e).addClass(i.css.processing+" "+f.cssProcessing)):n.add(e).removeClass(i.css.processing+" "+f.cssProcessing)},processTbody:function(n,i,r){if(n=t(n)[0],r)return n.isProcessing=!0,i.before('<colgroup class="tablesorter-savemyplace"/>'),t.fn.detach?i.detach():i.remove();var u=t(n).find("colgroup.tablesorter-savemyplace");i.insertAfter(u),u.remove(),n.isProcessing=!1},clearTableBody:function(n){t(n)[0].config.$tbodies.children().detach()},characterEquivalents:{a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõöō",O:"ÓÒÔÕÖŌ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},replaceAccents:function(n){var t,u="[",r=i.characterEquivalents;if(!i.characterRegex){i.characterRegexArray={};for(t in r)"string"==typeof t&&(u+=r[t],i.characterRegexArray[t]=new RegExp("["+r[t]+"]","g"));i.characterRegex=new RegExp(u+"]")}if(i.characterRegex.test(n))for(t in r)"string"==typeof t&&(n=n.replace(i.characterRegexArray[t],t));return n},validateOptions:function(n){var r,f,u,o,s="headers sortForce sortList sortAppend widgets".split(" "),e=n.originalSettings;if(e){n.debug&&(o=new Date);for(r in e)if("undefined"==(u=typeof i.defaults[r]))console.warn('Tablesorter Warning! "table.config.'+r+'" option not recognized');else if("object"===u)for(f in e[r])u=i.defaults[r]&&typeof i.defaults[r][f],t.inArray(r,s)<0&&"undefined"===u&&console.warn('Tablesorter Warning! "table.config.'+r+"."+f+'" option not recognized');n.debug&&console.log("validate options time:"+i.benchmark(o))}},restoreHeaders:function(n){for(var f,u=t(n)[0].config,e=u.$table.find(u.selectorHeaders),o=e.length,r=0;r<o;r++)(f=e.eq(r)).find("."+i.css.headerIn).length&&f.html(u.headerContent[r])},destroy:function(n,r,u){if((n=t(n)[0]).hasInitialized){i.removeWidget(n,!0,!1);var o,e=t(n),f=n.config,c=f.debug,s=e.find("thead:first"),h=s.find("tr."+i.css.headerRow).removeClass(i.css.headerRow+" "+f.cssHeaderRow),l=e.find("tfoot:first > tr").children("th, td");!1===r&&t.inArray("uitheme",f.widgets)>=0&&(e.triggerHandler("applyWidgetId",["uitheme"]),e.triggerHandler("applyWidgetId",["zebra"])),s.find("tr").not(h).remove(),o="sortReset update updateRows updateAll updateHeaders updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets removeWidget destroy mouseup mouseleave "+"keypress sortBegin sortEnd resetToLoadState ".split(" ").join(f.namespace+" "),e.removeData("tablesorter").unbind(o.replace(i.regex.spaces," ")),f.$headers.add(l).removeClass([i.css.header,f.cssHeader,f.cssAsc,f.cssDesc,i.css.sortAsc,i.css.sortDesc,i.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),h.find(f.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(f.namespace+" ").replace(i.regex.spaces," ")),i.restoreHeaders(n),e.toggleClass(i.css.table+" "+f.tableClass+" tablesorter-"+f.theme,!1===r),e.removeClass(f.namespace.slice(1)),n.hasInitialized=!1,delete n.config.cache,"function"==typeof u&&u(n),c&&console.log("tablesorter has been removed")}}};t.fn.tablesorter=function(n){return this.each(function(){var r=this,u=t.extend(!0,{},i.defaults,n,i.instanceMethods);u.originalSettings=n,!r.hasInitialized&&i.buildTable&&"TABLE"!==this.nodeName?i.buildTable(r,u):i.setup(r,u)})},window.console&&window.console.log||(i.logs=[],console={},console.log=console.warn=console.error=console.table=function(){var n=arguments.length>1?arguments:arguments[0];i.logs[i.logs.length]={date:Date.now(),log:n}}),i.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),i.addParser({id:"text",is:function(){return!0},format:function(n,r){var u=r.config;return n&&(n=t.trim(u.ignoreCase?n.toLocaleLowerCase():n),n=u.sortLocaleCompare?i.replaceAccents(n):n),n},type:"text"}),i.regex.nondigit=/[^\w,. \-()]/g,i.addParser({id:"digit",is:function(n){return i.isDigit(n)},format:function(n,r){var u=i.formatFloat((n||"").replace(i.regex.nondigit,""),r);return n&&"number"==typeof u?u:n?t.trim(n&&r.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"}),i.regex.currencyReplace=/[+\-,. ]/g,i.regex.currencyTest=/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/,i.addParser({id:"currency",is:function(n){return n=(n||"").replace(i.regex.currencyReplace,""),i.regex.currencyTest.test(n)},format:function(n,r){var u=i.formatFloat((n||"").replace(i.regex.nondigit,""),r);return n&&"number"==typeof u?u:n?t.trim(n&&r.config.ignoreCase?n.toLocaleLowerCase():n):n},type:"numeric"}),i.regex.urlProtocolTest=/^(https?|ftp|file):\/\//,i.regex.urlProtocolReplace=/(https?|ftp|file):\/\/(www\.)?/,i.addParser({id:"url",is:function(n){return i.regex.urlProtocolTest.test(n)},format:function(n){return n?t.trim(n.replace(i.regex.urlProtocolReplace,"")):n},type:"text"}),i.regex.dash=/-/g,i.regex.isoDate=/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/,i.addParser({id:"isoDate",is:function(n){return i.regex.isoDate.test(n)},format:function(n){var t=n?new Date(n.replace(i.regex.dash,"/")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"}),i.regex.percent=/%/g,i.regex.percentTest=/(\d\s*?%|%\s*?\d)/,i.addParser({id:"percent",is:function(n){return i.regex.percentTest.test(n)&&n.length<15},format:function(n,t){return n?i.formatFloat(n.replace(i.regex.percent,""),t):n},type:"numeric"}),i.addParser({id:"image",is:function(n,t,i,r){return r.find("img").length>0},format:function(n,i,r){return t(r).find("img").attr(i.config.imgAttr||"alt")||n},parsed:!0,type:"text"}),i.regex.dateReplace=/(\S)([AP]M)$/i,i.regex.usLongDateTest1=/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i,i.regex.usLongDateTest2=/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i,i.addParser({id:"usLongDate",is:function(n){return i.regex.usLongDateTest1.test(n)||i.regex.usLongDateTest2.test(n)},format:function(n){var t=n?new Date(n.replace(i.regex.dateReplace,"$1 $2")):n;return t instanceof Date&&isFinite(t)?t.getTime():n},type:"numeric"}),i.regex.shortDateTest=/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/,i.regex.shortDateReplace=/[\-.,]/g,i.regex.shortDateXXY=/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,i.regex.shortDateYMD=/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,i.convertFormat=function(n,t){n=(n||"").replace(i.regex.spaces," ").replace(i.regex.shortDateReplace,"/"),"mmddyyyy"===t?n=n.replace(i.regex.shortDateXXY,"$3/$1/$2"):"ddmmyyyy"===t?n=n.replace(i.regex.shortDateXXY,"$3/$2/$1"):"yyyymmdd"===t&&(n=n.replace(i.regex.shortDateYMD,"$1/$2/$3"));var r=new Date(n);return r instanceof Date&&isFinite(r)?r.getTime():""},i.addParser({id:"shortDate",is:function(n){return n=(n||"").replace(i.regex.spaces," ").replace(i.regex.shortDateReplace,"/"),i.regex.shortDateTest.test(n)},format:function(n,t,r,u){if(n){var e=t.config,f=e.$headerIndexed[u],o=f.length&&f.data("dateFormat")||i.getData(f,i.getColumnData(t,e.headers,u),"dateFormat")||e.dateFormat;return f.length&&f.data("dateFormat",o),i.convertFormat(n,o)||n}return n},type:"numeric"}),i.regex.timeTest=/^(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i,i.regex.timeMatch=/(0?[1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i,i.addParser({id:"time",is:function(n){return i.regex.timeTest.test(n)},format:function(n){var f,e=(n||"").match(i.regex.timeMatch),t=new Date(n),u=n&&(null!==e?e[0]:"00:00 AM"),r=u?new Date("2000/01/01 "+u.replace(i.regex.dateReplace,"$1 $2")):u;return r instanceof Date&&isFinite(r)?(f=t instanceof Date&&isFinite(t)?t.getTime():0,f?parseFloat(r.getTime()+"."+t.getTime()):r.getTime()):n},type:"numeric"}),i.addParser({id:"metadata",is:function(){return!1},format:function(n,i,r){var u=i.config,f=u.parserMetadataName?u.parserMetadataName:"sortValue";return t(r).metadata()[f]},type:"numeric"}),i.addWidget({id:"zebra",priority:90,format:function(n,i,r){for(var h,e,o,s,f,c,a=new RegExp(i.cssChildRow,"i"),l=i.$tbodies.add(t(i.namespace+"_extra_table").children("tbody:not(."+i.cssInfoBlock+")")),u=0;u<l.length;u++)for(o=0,c=(h=l.eq(u).children("tr:visible").not(i.selectorRemove)).length,f=0;f<c;f++)e=h.eq(f),a.test(e[0].className)||o++,s=o%2==0,e.removeClass(r.zebra[s?1:0]).addClass(r.zebra[s?0:1])},remove:function(n,t,r,u){if(!u)for(var e,o=t.$tbodies,s=(r.zebra||["even","odd"]).join(" "),f=0;f<o.length;f++)(e=i.processTbody(n,o.eq(f),!0)).children().removeClass(s),i.processTbody(n,e,!1)}})}(n),n.tablesorter});
/*!
 * Select2 4.0.3
 * https://select2.github.io
 *
 * Released under the MIT license
 * https://github.com/select2/select2/blob/master/LICENSE.md
 */
(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)})(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};
/**
 * @license almond 0.3.1 Copyright (c) 2011-2014, The Dojo Foundation All Rights Reserved.
 * Available via the MIT or new BSD license.
 * see: http://github.com/jrburke/almond for details
 */
var n,i,r;(function(t){function e(n,t){return k.call(n,t)}function l(n,t){var o,s,r,u,h,y,c,b,i,l,w,e=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n&&n.charAt(0)===".")if(t){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&p.test(n[h])&&(n[h]=n[h].replace(p,"")),n=e.slice(0,e.length-1).concat(n),i=0;i<n.length;i+=1)if(w=n[i],w===".")n.splice(i,1),i-=1;else if(w==="..")if(i===1&&(n[2]===".."||n[0]===".."))break;else i>0&&(n.splice(i-1,2),i-=2);n=n.join("/")}else n.indexOf("./")===0&&(n=n.substring(2));if((e||v)&&a){for(o=n.split("/"),i=o.length;i>0;i-=1){if(s=o.slice(0,i).join("/"),e)for(l=e.length;l>0;l-=1)if(r=a[e.slice(0,l).join("/")],r&&(r=r[s],r)){u=r,y=i;break}if(u)break;!c&&v&&v[s]&&(c=v[s],b=i)}!u&&c&&(u=c,y=b),u&&(o.splice(0,y,u),n=o.join("/"))}return n}function w(n,i){return function(){var r=d.call(arguments,0);return typeof r[0]!="string"&&r.length===1&&r.push(null),o.apply(t,r.concat([n,i]))}}function g(n){return function(t){return l(t,n)}}function nt(n){return function(t){u[n]=t}}function a(n){if(e(h,n)){var i=h[n];delete h[n],y[n]=!0,c.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function b(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function tt(n){return function(){return f&&f.config&&f.config[n]||{}}}var c,o,v,s,u={},h={},f={},y={},k=Object.prototype.hasOwnProperty,d=[].slice,p=/\.js$/;v=function(n,t){var r,u=b(n),i=u[0];return n=u[1],i&&(i=l(i,t),r=a(i)),i?n=r&&r.normalize?r.normalize(n,g(t)):l(n,t):(n=l(n,t),u=b(n),i=u[0],n=u[1],i&&(r=a(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}},s={require:function(n){return w(n)},exports:function(n){var t=u[n];return typeof t!="undefined"?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:tt(n)}}},c=function(n,i,r,f){var p,o,k,b,c,l=[],d=typeof r,g;if(f=f||n,d==="undefined"||d==="function"){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(b=v(i[c],f),o=b.f,o==="require")l[c]=s.require(n);else if(o==="exports")l[c]=s.exports(n),g=!0;else if(o==="module")p=l[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))l[c]=a(o);else if(b.p)b.p.load(b.n,w(f,!0),nt(o),{}),l[c]=u[o];else throw new Error(n+" missing "+o);k=r?r.apply(u[n],l):undefined,n&&(p&&p.exports!==t&&p.exports!==u[n]?u[n]=p.exports:k===t&&g||(u[n]=k))}else n&&(u[n]=r)},n=i=o=function(n,i,r,u,e){if(typeof n=="string")return s[n]?s[n](i):a(v(n,i).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},typeof r=="function"&&(r=u,u=e),u?c(t,n,i,r):setTimeout(function(){c(t,n,i,r)},4),o},o.config=function(n){return o(n)},n._defined=u,r=function(n,t,i){if(typeof n!="string")throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]),e(u,n)||e(h,n)||(h[n]=[n,t,i])},r.amd={jQuery:!0}})(),t.requirejs=n,t.require=i,t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return t==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function r(n){var i=n.prototype,r=[],t,u;for(t in i)(u=i[t],typeof u=="function")&&t!=="constructor"&&r.push(t);return r}var t={},i;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty,i;for(i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor),i.apply(this,arguments)}function l(){this.constructor=i}var s=r(t),h=r(n),u,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,u=0;u<h.length;u++)e=h[u],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{},n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{},t==null&&(t=[]),t.length===0&&t.push({}),t[0]._type=n,n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;i<r;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var i="",r,t=0;t<n;t++)r=Math.floor(Math.random()*36),i+=r.toString(36);return i},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,r.length!==1){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f===r&&(r==="hidden"||r==="visible")?!1:f==="scroll"||r==="scroll"?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof n!="string"?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if(n.fn.jquery.substr(0,3)==="1.7"){var r=n();n.map(i,function(n){r=r.add(n)}),i=r}t.append(i)},t}),t.define("select2/results",["jquery","./utils"],function(n,t){function i(n,t,r){this.$element=n,this.data=r,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<ul class="select2-results__options" role="tree"><\/ul>');return this.options.get("multiple")&&t.attr("aria-multiselectable","true"),this.$results=t,t},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),i,r;this.clear(),this.hideLoading(),i=n('<li role="treeitem" aria-live="assertive" class="select2-results__option"><\/li>'),r=this.options.get("translations").get(t.message),i.append(u(r(t.args))),i[0].className+=" select2-results__message",this.$results.append(i)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],n.results==null||n.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},i.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},i.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},i.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(i){var r=n.map(i,function(n){return n.id.toString()}),u=t.$results.find(".select2-results__option[aria-selected]");u.each(function(){var i=n(this),t=n.data(this,"data"),u=""+t.id;t.element!=null&&t.element.selected||t.element==null&&n.inArray(u,r)>-1?i.attr("aria-selected","true"):i.attr("aria-selected","false")})})},i.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r={disabled:!0,loading:!0,text:i(n)},t=this.option(r);t.className+=" loading-results",this.$results.prepend(t)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(t){var r=document.createElement("li"),i,e,c,o,u,v,s,f,l,a,h;r.className="select2-results__option",i={role:"treeitem","aria-selected":"false"},t.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),t.id==null&&delete i["aria-selected"],t._resultId!=null&&(r.id=t._resultId),t.title&&(r.title=t.title),t.children&&(i.role="group",i["aria-label"]=t.text,delete i["aria-selected"]);for(e in i)c=i[e],r.setAttribute(e,c);if(t.children){for(o=n(r),u=document.createElement("strong"),u.className="select2-results__group",v=n(u),this.template(t,u),s=[],f=0;f<t.children.length;f++)l=t.children[f],a=this.option(l),s.push(a);h=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested"}),h.append(s),o.append(u),o.append(h)}else this.template(t,r);return n.data(r,"data",t),r},i.prototype.bind=function(t){var i=this,r=t.id+"-results";this.$results.attr("id",r);t.on("results:all",function(n){i.clear(),i.append(n.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("results:append",function(n){i.append(n.data),t.isOpen()&&i.setClasses()});t.on("query",function(n){i.hideMessages(),i.showLoading(n)});t.on("select",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.highlightFirstItem())});t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()});t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")});t.on("results:toggle",function(){var n=i.getHighlightedResults();n.length!==0&&n.trigger("mouseup")});t.on("results:select",function(){var n=i.getHighlightedResults(),t;n.length!==0&&(t=n.data("data"),n.attr("aria-selected")=="true"?i.trigger("close",{}):i.trigger("select",{data:t}))});t.on("results:previous",function(){var r=i.getHighlightedResults(),u=i.$results.find("[aria-selected]"),f=u.index(r),n,t;if(f!==0){n=f-1,r.length===0&&(n=0),t=u.eq(n),t.trigger("mouseenter");var e=i.$results.offset().top,o=t.offset().top,s=i.$results.scrollTop()+(o-e);n===0?i.$results.scrollTop(0):o-e<0&&i.$results.scrollTop(s)}});t.on("results:next",function(){var e=i.getHighlightedResults(),t=i.$results.find("[aria-selected]"),o=t.index(e),r=o+1,n;if(!(r>=t.length)){n=t.eq(r),n.trigger("mouseenter");var u=i.$results.offset().top+i.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=i.$results.scrollTop()+f-u;r===0?i.$results.scrollTop(0):f>u&&i.$results.scrollTop(s)}});t.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});t.on("results:message",function(n){i.displayMessage(n)});if(n.fn.mousewheel)this.$results.on("mousewheel",function(n){var t=i.$results.scrollTop(),r=i.$results.get(0).scrollHeight-t+n.deltaY,u=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&r<=i.$results.height();u?(i.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(t){var r=n(this),u=r.data("data");if(r.attr("aria-selected")==="true"){i.options.get("multiple")?i.trigger("unselect",{originalEvent:t,data:u}):i.trigger("close",{});return}i.trigger("select",{originalEvent:t,data:u})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var t=n(this).data("data");i.getHighlightedResults().removeClass("select2-results__option--highlighted"),i.trigger("results:focus",{data:t,element:n(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(n.length!==0){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=n.outerHeight(!1)*2,e<=2?this.$results.scrollTop(0):(u>this.$results.outerHeight()||u<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);r==null?i.style.display="none":typeof r=="string"?i.innerHTML=f(r):n(i).append(r)},i}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"><\/span>');return this._tabindex=0,this.$element.data("old-tabindex")!=null?this._tabindex=this.$element.data("old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t,t},r.prototype.bind=function(n){var t=this,u=n.id+"-container",r=n.id+"-results";this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n),n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-expanded","true"),t.$selection.attr("aria-owns",r),t._attachCloseHandler(n)});n.on("close",function(){t.$selection.attr("aria-expanded","false"),t.$selection.removeAttr("aria-activedescendant"),t.$selection.removeAttr("aria-owns"),t.$selection.focus(),t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex)});n.on("disable",function(){t.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(t){var i=this;n(document.body).on("mousedown.select2."+t.id,function(t){var i=n(t.target),r=i.closest(".select2"),u=n(".select2.select2-container--open");u.each(function(){var i=n(this),t;this!=r[0]&&(t=i.data("element"),t.select2("close"))})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single"),n.html('<span class="select2-selection__rendered"><\/span><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var t=this,i;r.__super__.bind.apply(this,arguments),i=n.id+"-container",this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i);this.$selection.on("mousedown",function(n){n.which===1&&t.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||t.$selection.focus()});n.on("selection:update",function(n){t.update(n.data)})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){if(n.length===0){this.clear();return}var t=n[0],i=this.$selection.find(".select2-selection__rendered"),r=this.display(t,i);i.empty().append(r),i.prop("title",t.title||t.text)},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple"),n.html('<ul class="select2-selection__rendered"><\/ul>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!t.options.get("disabled")){var r=n(this),u=r.parent(),f=u.data("data");t.trigger("unselect",{originalEvent:i,data:f})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;<\/span><\/li>')},r.prototype.update=function(n){var f,r,e;if(this.clear(),n.length!==0){for(f=[],r=0;r<n.length;r++){var u=n[r],t=this.selectionContainer(),o=this.display(u,t);t.append(o),t.prop("title",u.title||u.text),t.data("data",u),f.push(t)}e=this.$selection.find(".select2-selection__rendered"),i.appendMany(e,f)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=t.length==1&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear(),i=this.createPlaceholder(this.placeholder),this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys"],function(n,t){function i(){}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},i.prototype._handleClear=function(n,t){var r,u,i,f;if(!this.options.get("disabled")&&(r=this.$selection.find(".select2-selection__clear"),r.length!==0)){for(t.stopPropagation(),u=r.data("data"),i=0;i<u.length;i++)if(f={data:u[i]},this.trigger("unselect",f),f.prevented)return;this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}},i.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(t,i){if(t.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0)&&i.length!==0){var r=n('<span class="select2-selection__clear">&times;<\/span>');r.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(r)}},i}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /><\/li>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=t.call(this),this._transferTabIndex(),r},r.prototype.bind=function(n,t,r){var u=this,f,e;n.call(this,t,r);t.on("open",function(){u.$search.trigger("focus")});t.on("close",function(){u.$search.val(""),u.$search.removeAttr("aria-activedescendant"),u.$search.trigger("focus")});t.on("enable",function(){u.$search.prop("disabled",!1),u._transferTabIndex()});t.on("disable",function(){u.$search.prop("disabled",!0)});t.on("focus",function(){u.$search.trigger("focus")});t.on("results:focus",function(n){u.$search.attr("aria-activedescendant",n.id)});this.$selection.on("focusin",".select2-search--inline",function(n){u.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){u._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var r,t,f;n.stopPropagation(),u.trigger("keypress",n),u._keyUpPrevented=n.isDefaultPrevented(),r=n.which,r===i.BACKSPACE&&u.$search.val()===""&&(t=u.$searchContainer.prev(".select2-selection__choice"),t.length>0&&(f=t.data("data"),u.searchRemoveChoice(f),n.preventDefault()))});f=document.documentMode,e=f&&f<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){if(e){u.$selection.off("input.search input.searchcheck");return}u.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(e&&n.type==="input"){u.$selection.off("input.search input.searchcheck");return}var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&u.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),n.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px"),n="",this.$search.attr("placeholder")!==""?n=this.$selection.find(".select2-selection__rendered").innerWidth():(t=this.$search.val().length+1,n=t*.75+"em"),this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],e=["opening","closing","selecting","unselecting"];t.call(this,i,r);i.on("*",function(t,i){if(n.inArray(t,f)!==-1){i=i||{};var r=n.Event("select2:"+t,{params:i});(u.$element.trigger(r),n.inArray(t,e)!==-1)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(i.id!=null?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n,this.options=t,r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)}),n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option")){n.element.selected=!0,this.$element.trigger("change");return}this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,i.inArray(e,f)===-1&&f.push(e);t.$element.val(f),t.$element.trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple")){if(n.selected=!1,i(n.element).is("option")){n.element.selected=!1,this.$element.trigger("change");return}this.current(function(r){for(var e=[],f,u=0;u<r.length;u++)f=r[u].id,f!==n.id&&i.inArray(f,e)===-1&&e.push(f);t.$element.val(e),t.$element.trigger("change")})}},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){i.removeData(this,"data")})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),f!==null&&r.push(f))}),t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var t,u,r;return n.children?(t=document.createElement("optgroup"),t.label=n.text):(t=document.createElement("option"),t.textContent!==undefined?t.textContent=n.text:t.innerText=n.text),n.id&&(t.value=n.id),n.disabled&&(t.disabled=!0),n.selected&&(t.selected=!0),n.title&&(t.title=n.title),u=i(t),r=this._normalizeItem(n),r.element=t,i.data(t,"data",r),u},r.prototype.item=function(n){var t={},u,f,r,e,o;if(t=i.data(n[0],"data"),t!=null)return t;if(n.is("option"))t={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){for(t={text:n.prop("label"),children:[],title:n.prop("title")},u=n.children("option"),f=[],r=0;r<u.length;r++)e=i(u[r]),o=this.item(e),f.push(o);t.children=f}return t=this._normalizeItem(t),t.element=n[0],i.data(n[0],"data",t),t},r.prototype._normalizeItem=function(n){i.isPlainObject(n)||(n={id:n,text:n}),n=i.extend({},{text:""},n);return n.id!=null&&(n.id=n.id.toString()),n.text!=null&&(n.text=n.text.toString()),n._resultId==null&&n.id&&this.container!=null&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){var i=t.get("data")||[];r.__super__.constructor.call(this,n,t),this.addOptions(this.convertToOptions(i))}return t.Extend(r,n),r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});t.length===0&&(t=this.option(n),this.addOptions(t)),r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function a(n){return function(){return i(this).val()==n.id}}for(var c=this,e=this.$element.find("option"),l=e.map(function(){return c.item(i(this)).id}).get(),o=[],r,f,h,u=0;u<n.length;u++){if(r=this._normalizeItem(n[u]),i.inArray(r.id,l)>=0){var s=e.filter(a(r)),v=this.item(s),y=i.extend(!0,{},r,v),p=this.option(y);s.replaceWith(p);continue}f=this.option(r),r.children&&(h=this.convertToOptions(r.children),t.appendMany(f,h)),o.push(f)}return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),t(f)},function(){f.status&&f.status==="0"||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;this._request!=null&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null),r=i.extend({type:"GET"},this.ajaxOptions),typeof r.url=="function"&&(r.url=r.url.call(this.$element,n)),typeof r.data=="function"&&(r.data=r.data.call(this.$element,n)),this.ajaxOptions.delay&&n.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(o!==undefined&&(this.createTag=o),e=r.get("insertTag"),e!==undefined&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var e=n.results,s,c,o=0;o<e.length;o++){var h=e[o],l=h.children!=null&&!u({results:h.children},!0),a=h.text===t.term;if(a||l){if(f)return!1;n.data=e,i(n);return}}if(f)return!0;s=r.createTag(t),s!=null&&(c=r.option(s),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,s)),n.results=e,i(n)}var r=this;if(this._removeOldTags(),t.term==null||t.page!=null){n.call(this,t,i);return}n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return r===""?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var i=this._lastTag,t=this.$element.find("option[data-select2-tag]");t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");r!==undefined&&(this.tokenizer=r),n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i),this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r])),o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"",f=this.tokenizer(i,this.options,e),f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.focus()),i.term=f.term),t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}},o;f<e.length;){if(o=e[f],n.inArray(o,h)===-1){f++;continue}var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);if(s==null){f++;continue}u(s),e=e.substr(f+1)||"",f=0}return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength"),n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",t.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength"),n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),n.call(this,t,i)}return n.prototype.query=function(n,t,i){var r=this;this.current(function(u){var f=u!=null?u.length:0;if(r.maximumSelectionLength>0&&f>=r.maximumSelectionLength){r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}});return}n.call(r,t,i)})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n,this.options=t,i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var r=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /><\/span>');return this.$searchContainer=i,this.$search=i.find("input"),r.prepend(i),r},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n),u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0),u.$search.focus(),window.setTimeout(function(){u.$search.focus()},0)});i.on("close",function(){u.$search.attr("tabindex",-1),u.$search.val("")});i.on("focus",function(){i.isOpen()&&u.$search.focus()});i.on("results:all",function(n){if(n.query.term==null||n.query.term===""){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results),n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var r=t.slice(0),u,i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={},n.call(this,t,i,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove(),this.loading=!1,n.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},t.prototype.bind=function(t,i,r){var u=this;t.call(this,i,r);i.on("query",function(n){u.lastParams=n,u.loading=!0});i.on("query:append",function(n){u.lastParams=n,u.loading=!0});this.$results.on("scroll",function(){var r=n.contains(document.documentElement,u.$loadingMore[0]),t,i;!u.loading&&r&&(t=u.$results.offset().top+u.$results.outerHeight(!1),i=u.$loadingMore.offset().top+u.$loadingMore.outerHeight(!1),t+50>=i&&u.loadMore())})},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++,this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=r.get("dropdownParent")||n(document.body),t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this,u=!1;n.call(this,t,i);t.on("open",function(){if(r._showDropdown(),r._attachPositioningHandler(t),!u){u=!0;t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()});t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()})}});t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){n(this).data("select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var t=n(this).data("select2-scroll-position");n(this).scrollTop(t.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown(),u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u),n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),u=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,o;i.bottom=i.top+this.$container.outerHeight(!1),r={height:this.$container.outerHeight(!1)},r.top=i.top,r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,f={left:i.left,top:r.bottom},e=this.$dropdownParent;e.css("position")==="static"&&(e=e.offsetParent()),o=e.offset(),f.top-=o.top,f.left-=o.left,u||v||(t="below"),a||!l||u?!l&&a&&u&&(t="below"):t="above",(t=="above"||u&&t!=="below")&&(f.top=r.top-o.top-h.height),t!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t)),this.$dropdownContainer.css(f)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto"),this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var r=0,u,i=0;i<t.length;i++)u=t[i],u.children?r+=n(u.children):r++;return r}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity),n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},n.prototype._handleSelectOnClose=function(n,t){var r,u,i;t&&t.originalSelect2Event!=null&&(r=t.originalSelect2Event,r._type==="select"||r._type==="unselect")||(u=this.getHighlightedResults(),u.length<1)||(i=u.data("data"),i.element!=null&&i.element.selected||i.element==null&&i.selected)||this.trigger("select",{data:i})},n}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return t!=1&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return n.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et,ot){function st(){this.reset()}st.prototype.apply=function(l){var vt,yt,pt,wt,bt,kt,dt,ct,lt,st,ot,ht,gt,at;if(l=n.extend(!0,{},this.defaults,l),l.dataAdapter==null&&(l.dataAdapter=l.ajax!=null?y:l.data!=null?v:a,l.minimumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,b)),l.maximumInputLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,k)),l.maximumSelectionLength>0&&(l.dataAdapter=h.Decorate(l.dataAdapter,d)),l.tags&&(l.dataAdapter=h.Decorate(l.dataAdapter,p)),(l.tokenSeparators!=null||l.tokenizer!=null)&&(l.dataAdapter=h.Decorate(l.dataAdapter,w)),l.query!=null&&(vt=t(l.amdBase+"compat/query"),l.dataAdapter=h.Decorate(l.dataAdapter,vt)),l.initSelection!=null&&(yt=t(l.amdBase+"compat/initSelection"),l.dataAdapter=h.Decorate(l.dataAdapter,yt))),l.resultsAdapter==null&&(l.resultsAdapter=i,l.ajax!=null&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,it)),l.placeholder!=null&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,tt)),l.selectOnClose&&(l.resultsAdapter=h.Decorate(l.resultsAdapter,ft))),l.dropdownAdapter==null&&(l.multiple?l.dropdownAdapter=g:(pt=h.Decorate(g,nt),l.dropdownAdapter=pt),l.minimumResultsForSearch!==0&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,ut)),l.closeOnSelect&&(l.dropdownAdapter=h.Decorate(l.dropdownAdapter,et)),(l.dropdownCssClass!=null||l.dropdownCss!=null||l.adaptDropdownCssClass!=null)&&(wt=t(l.amdBase+"compat/dropdownCss"),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,wt)),l.dropdownAdapter=h.Decorate(l.dropdownAdapter,rt)),l.selectionAdapter==null&&(l.selectionAdapter=l.multiple?u:r,l.placeholder!=null&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,e)),l.multiple&&(l.selectionAdapter=h.Decorate(l.selectionAdapter,o)),(l.containerCssClass!=null||l.containerCss!=null||l.adaptContainerCssClass!=null)&&(bt=t(l.amdBase+"compat/containerCss"),l.selectionAdapter=h.Decorate(l.selectionAdapter,bt)),l.selectionAdapter=h.Decorate(l.selectionAdapter,s)),typeof l.language=="string"&&(l.language.indexOf("-")>0?(kt=l.language.split("-"),dt=kt[0],l.language=[l.language,dt]):l.language=[l.language]),n.isArray(l.language)){for(ct=new c,l.language.push("en"),lt=l.language,st=0;st<lt.length;st++){ot=lt[st],ht={};try{ht=c.loadPath(ot)}catch(ni){try{ot=this.defaults.amdLanguageBase+ot,ht=c.loadPath(ot)}catch(ti){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ot+'" could not be automatically loaded. A fallback will be used instead.');continue}}ct.extend(ht)}l.translations=ct}else gt=c.loadPath(this.defaults.amdLanguageBase+"en"),at=new c(l.language),at.extend(gt),l.translations=at;return l},st.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(n.trim(r.term)==="")return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),s==null&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return(h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1)?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:ot,matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}},st.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i,u=h._convertData(r),n.extend(this.defaults,u)};return new st}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,u!=null&&this.fromElement(u),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){var f,u,i;this.options.multiple==null&&(this.options.multiple=n.prop("multiple")),this.options.disabled==null&&(this.options.disabled=n.prop("disabled")),this.options.language==null&&(n.prop("lang")?this.options.language=n.prop("lang").toLowerCase():n.closest("[lang]").prop("lang")&&(this.options.language=n.closest("[lang]").prop("lang"))),this.options.dir==null&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr"),n.prop("disabled",this.options.disabled),n.prop("multiple",this.options.multiple),n.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),n.data("data",n.data("select2Tags")),n.data("tags",!0)),n.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",n.data("ajaxUrl")),n.data("ajax--url",n.data("ajaxUrl"))),f={},f=t.fn.jquery&&t.fn.jquery.substr(0,2)=="1."&&n[0].dataset?t.extend(!0,{},n[0].dataset,n.data()):n.data(),u=t.extend(!0,{},f),u=r._convertData(u);for(i in u)t.inArray(i,["select2"])>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,i){var f,e,r,o,s,h,c;n.data("select2")!=null&&n.data("select2").destroy(),this.$element=n,this.id=this._generateId(n),i=i||{},this.options=new t(i,n),u.__super__.constructor.call(this),f=n.attr("tabindex")||0,n.data("old-tabindex",f),n.attr("tabindex","-1"),e=this.options.get("dataAdapter"),this.dataAdapter=new e(n,this.options),r=this.render(),this._placeContainer(r),o=this.options.get("selectionAdapter"),this.selection=new o(n,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r),s=this.options.get("dropdownAdapter"),this.dropdown=new s(n,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r),h=this.options.get("resultsAdapter"),this.results=new h(n,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),c=this,this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(n){c.trigger("selection:update",{data:n})}),n.addClass("select2-hidden-accessible"),n.attr("aria-hidden","true"),this._syncAttributes(),n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=n.attr("id")!=null?n.attr("id"):n.attr("name")!=null?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),"select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));t!=null&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var u,f,e,o,i,s,h,r;if(t=="resolve")return(u=this._resolveWidth(n,"style"),u!=null)?u:this._resolveWidth(n,"element");if(t=="element")return(f=n.outerWidth(!1),f<=0)?"auto":f+"px";if(t=="style"){if(e=n.attr("style"),typeof e!="string")return null;for(o=e.split(";"),i=0,s=o.length;i<s;i=i+1)if(h=o[i].replace(/\s/g,""),r=h.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),r!==null&&r.length>=1)return r[1];return null}return t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var t=this,r;this.$element.on("change.select2",function(){t.dataAdapter.current(function(n){t.trigger("selection:update",{data:n})})});this.$element.on("focus.select2",function(n){t.trigger("focus",n)});this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA),r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,r!=null?(this._observer=new r(function(i){n.each(i,t._syncA),n.each(i,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){n.inArray(r,i)===-1&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.TAB||i===r.UP&&t.altKey?(n.close(),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._syncSubtree=function(n,t){var i=!1,f=this,r,u;if(!n||!n.target||n.target.nodeName==="OPTION"||n.target.nodeName==="OPTGROUP"){if(t)if(t.addedNodes&&t.addedNodes.length>0)for(r=0;r<t.addedNodes.length;r++)u=t.addedNodes[r],u.selected&&(i=!0);else t.removedNodes&&t.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current(function(n){f.trigger("selection:update",{data:n})})}},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"},e,i;if(t===undefined&&(t={}),n in f&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented)){t.prevented=!0;return}r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.trigger("query",{})},u.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(n==null||n.length===0)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),t==null||t.length===0)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()})),this.$element.val(i).trigger("change")},u.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),this._observer!=null?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),t.data("element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(n){return n}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(n,t,i,r){if(n.fn.select2==null){var u=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},typeof t=="object")return this.each(function(){var r=n.extend(!0,{},t),u=new i(n(this),r)}),this;if(typeof t=="string"){var r,f=Array.prototype.slice.call(arguments,1);return(this.each(function(){var i=n(this).data("select2");i==null&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),r=i[t].apply(i,f)}),n.inArray(t,u)>-1)?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return n.fn.select2.defaults==null&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i}),loadCounter=0,recommendedLoadCounter=0,$(document).ready(function(){var n,t;for($(".input-validation-error").closest(".form-group").addClass("error"),$(".field-validation-error").closest(".form-group").addClass("error"),n=0;n<$(".main-nav > li a").length;n++)t=$(".main-nav > li a")[n],$(t).prop("href").toLowerCase()===location.href.toLowerCase()&&$(t).closest("li").addClass("active");$(".mobile-table").length&&($(".mobile-table .scroll-helper").scroll(function(){$(".mobile-table .table-wrapper").scrollLeft($(".mobile-table .scroll-helper").scrollLeft())}),$(".mobile-table .table-wrapper").scroll(function(){$(".mobile-table .scroll-helper").scrollLeft($(".mobile-table .table-wrapper").scrollLeft())})),$('[data-toggle="tooltip"]').tooltip(),$(".home-page .js-fullpage-view").fullpage({scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:2e3,verticalCentered:!0,controlArrows:!1,paddingTop:"40px",paddingBottom:"40px",responsiveWidth:768}),$(".btn-prev").click(function(){$.fn.fullpage.moveSectionUp()}),$(".btn-next").click(function(){$.fn.fullpage.moveSectionDown()}),$(".btn-features").click(function(){$.fn.fullpage.moveSectionDown()})}),Function.prototype.bind||(Function.prototype.bind=function(n){if(typeof this!="function")throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var r=Array.prototype.slice.call(arguments,1),u=this,t=function(){},i=function(){return u.apply(this instanceof t?this:n,r.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(t.prototype=this.prototype),i.prototype=new t,i});
/*!
 * Chart.js
 * http://chartjs.org/
 * Version: 2.6.0
 *
 * Copyright 2017 Nick Downie
 * Released under the MIT license
 * https://github.com/chartjs/Chart.js/blob/master/LICENSE.md
 */
(function(n){if(typeof exports=="object"&&typeof module!="undefined")module.exports=n();else if(typeof define=="function"&&define.amd)define([],n);else{var t;t=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:this,t.Chart=n()}})(function(){return function n(t,i,r){function f(u,o){var h,c,s;if(!i[u]){if(!t[u]){if(h=typeof require=="function"&&require,!o&&h)return h(u,!0);if(e)return e(u,!0);c=new Error("Cannot find module '"+u+"'");throw c.code="MODULE_NOT_FOUND",c;}s=i[u]={exports:{}},t[u][0].call(s.exports,function(n){var i=t[u][1][n];return f(i?i:n)},s,s.exports,n,t,i,r)}return i[u].exports}for(var e=typeof require=="function"&&require,u=0;u<r.length;u++)f(r[u]);return f}({1:[function(){},{}],2:[function(n,t){function u(n){var t;if(n){var f=[0,0,0],e=1,u=n.match(/^#([a-fA-F0-9]{3})$/);if(u)for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u[t]+u[t],16);else if(u=n.match(/^#([a-fA-F0-9]{6})$/))for(u=u[1],t=0;t<f.length;t++)f[t]=parseInt(u.slice(t*2,t*2+2),16);else if(u=n.match(/^rgba?\(\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*,\s*([+-]?\d+)\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<f.length;t++)f[t]=parseInt(u[t+1]);e=parseFloat(u[4])}else if(u=n.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*,\s*([+-]?[\d\.]+)\%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)$/)){for(t=0;t<f.length;t++)f[t]=Math.round(parseFloat(u[t+1])*2.55);e=parseFloat(u[4])}else if(u=n.match(/(\w+)/)){if(u[1]=="transparent")return[0,0,0,0];if(f=r[u[1]],!f)return}for(t=0;t<f.length;t++)f[t]=i(f[t],0,255);return e=e||e==0?i(e,0,1):1,f[3]=e,f}}function f(n){var r,t;if(n&&(r=/^hsla?\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function h(n){var r,t;if(n&&(r=/^hwb\(\s*([+-]?\d+)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?[\d\.]+)\s*)?\)/,t=n.match(r),t)){var u=parseFloat(t[4]),f=i(parseInt(t[1]),0,360),e=i(parseFloat(t[2]),0,100),o=i(parseFloat(t[3]),0,100),s=i(isNaN(u)?1:u,0,1);return[f,e,o,s]}}function v(n){var t=u(n);return t&&t.slice(0,3)}function y(n){var t=f(n);return t&&t.slice(0,3)}function p(n){var t=u(n);return t?t[3]:(t=f(n))||(t=h(n))?t[3]:void 0}function w(n){return"#"+e(n[0])+e(n[1])+e(n[2])}function b(n,t){return t<1||n[3]&&n[3]<1?c(n,t):"rgb("+n[0]+", "+n[1]+", "+n[2]+")"}function c(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"rgba("+n[0]+", "+n[1]+", "+n[2]+", "+t+")"}function k(n,t){if(t<1||n[3]&&n[3]<1)return l(n,t);var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgb("+i+"%, "+r+"%, "+u+"%)"}function l(n,t){var i=Math.round(n[0]/255*100),r=Math.round(n[1]/255*100),u=Math.round(n[2]/255*100);return"rgba("+i+"%, "+r+"%, "+u+"%, "+(t||n[3]||1)+")"}function d(n,t){return t<1||n[3]&&n[3]<1?a(n,t):"hsl("+n[0]+", "+n[1]+"%, "+n[2]+"%)"}function a(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hsla("+n[0]+", "+n[1]+"%, "+n[2]+"%, "+t+")"}function g(n,t){return t===undefined&&(t=n[3]!==undefined?n[3]:1),"hwb("+n[0]+", "+n[1]+"%, "+n[2]+"%"+(t!==undefined&&t!==1?", "+t:"")+")"}function nt(n){return o[n.slice(0,3)]}function i(n,t,i){return Math.min(Math.max(t,n),i)}function e(n){var t=n.toString(16).toUpperCase();return t.length<2?"0"+t:t}var r=n(6),o,s;t.exports={getRgba:u,getHsla:f,getRgb:v,getHsl:y,getHwb:h,getAlpha:p,hexString:w,rgbString:b,rgbaString:c,percentString:k,percentaString:l,hslString:d,hslaString:a,hwbString:g,keyword:nt},o={};for(s in r)o[r[s]]=s},{"6":6}],3:[function(n,t){var u=n(5),r=n(2),i=function(n){if(n instanceof i)return n;if(!(this instanceof i))return new i(n);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};var t;typeof n=="string"?(t=r.getRgba(n),t?this.setValues("rgb",t):(t=r.getHsla(n))?this.setValues("hsl",t):(t=r.getHwb(n))&&this.setValues("hwb",t)):typeof n=="object"&&(t=n,t.r!==undefined||t.red!==undefined?this.setValues("rgb",t):t.l!==undefined||t.lightness!==undefined?this.setValues("hsl",t):t.v!==undefined||t.value!==undefined?this.setValues("hsv",t):t.w!==undefined||t.whiteness!==undefined?this.setValues("hwb",t):(t.c!==undefined||t.cyan!==undefined)&&this.setValues("cmyk",t))};i.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 n=this.values;return n.alpha!==1?n.hwb.concat([n.alpha]):n.hwb},cmykArray:function(){return this.values.cmyk},rgbaArray:function(){var n=this.values;return n.rgb.concat([n.alpha])},hslaArray:function(){var n=this.values;return n.hsl.concat([n.alpha])},alpha:function(n){return n===undefined?this.values.alpha:(this.setValues("alpha",n),this)},red:function(n){return this.setChannel("rgb",0,n)},green:function(n){return this.setChannel("rgb",1,n)},blue:function(n){return this.setChannel("rgb",2,n)},hue:function(n){return n&&(n%=360,n=n<0?360+n:n),this.setChannel("hsl",0,n)},saturation:function(n){return this.setChannel("hsl",1,n)},lightness:function(n){return this.setChannel("hsl",2,n)},saturationv:function(n){return this.setChannel("hsv",1,n)},whiteness:function(n){return this.setChannel("hwb",1,n)},blackness:function(n){return this.setChannel("hwb",2,n)},value:function(n){return this.setChannel("hsv",2,n)},cyan:function(n){return this.setChannel("cmyk",0,n)},magenta:function(n){return this.setChannel("cmyk",1,n)},yellow:function(n){return this.setChannel("cmyk",2,n)},black:function(n){return this.setChannel("cmyk",3,n)},hexString:function(){return r.hexString(this.values.rgb)},rgbString:function(){return r.rgbString(this.values.rgb,this.values.alpha)},rgbaString:function(){return r.rgbaString(this.values.rgb,this.values.alpha)},percentString:function(){return r.percentString(this.values.rgb,this.values.alpha)},hslString:function(){return r.hslString(this.values.hsl,this.values.alpha)},hslaString:function(){return r.hslaString(this.values.hsl,this.values.alpha)},hwbString:function(){return r.hwbString(this.values.hwb,this.values.alpha)},keyword:function(){return r.keyword(this.values.rgb,this.values.alpha)},rgbNumber:function(){var n=this.values.rgb;return n[0]<<16|n[1]<<8|n[2]},luminosity:function(){for(var r=this.values.rgb,t=[],i,n=0;n<r.length;n++)i=r[n]/255,t[n]=i<=.03928?i/12.92:Math.pow((i+.055)/1.055,2.4);return.2126*t[0]+.7152*t[1]+.0722*t[2]},contrast:function(n){var t=this.luminosity(),i=n.luminosity();return t>i?(t+.05)/(i+.05):(i+.05)/(t+.05)},level:function(n){var t=this.contrast(n);return t>=7.1?"AAA":t>=4.5?"AA":""},dark:function(){var n=this.values.rgb,t=(n[0]*299+n[1]*587+n[2]*114)/1e3;return t<128},light:function(){return!this.dark()},negate:function(){for(var t=[],n=0;n<3;n++)t[n]=255-this.values.rgb[n];return this.setValues("rgb",t),this},lighten:function(n){var t=this.values.hsl;return t[2]+=t[2]*n,this.setValues("hsl",t),this},darken:function(n){var t=this.values.hsl;return t[2]-=t[2]*n,this.setValues("hsl",t),this},saturate:function(n){var t=this.values.hsl;return t[1]+=t[1]*n,this.setValues("hsl",t),this},desaturate:function(n){var t=this.values.hsl;return t[1]-=t[1]*n,this.setValues("hsl",t),this},whiten:function(n){var t=this.values.hwb;return t[1]+=t[1]*n,this.setValues("hwb",t),this},blacken:function(n){var t=this.values.hwb;return t[2]+=t[2]*n,this.setValues("hwb",t),this},greyscale:function(){var n=this.values.rgb,t=n[0]*.3+n[1]*.59+n[2]*.11;return this.setValues("rgb",[t,t,t]),this},clearer:function(n){var t=this.values.alpha;return this.setValues("alpha",t-t*n),this},opaquer:function(n){var t=this.values.alpha;return this.setValues("alpha",t+t*n),this},rotate:function(n){var t=this.values.hsl,i=(t[0]+n)%360;return t[0]=i<0?360+i:i,this.setValues("hsl",t),this},mix:function(n,t){var i=this,r=n,e=t===undefined?.5:t,u=2*e-1,o=i.alpha()-r.alpha(),f=((u*o==-1?u:(u+o)/(1+u*o))+1)/2,s=1-f;return this.rgb(f*i.red()+s*r.red(),f*i.green()+s*r.green(),f*i.blue()+s*r.blue()).alpha(i.alpha()*e+r.alpha()*(1-e))},toJSON:function(){return this.rgb()},clone:function(){var f=new i,r=this.values,e=f.values,n,u,t;for(t in r)r.hasOwnProperty(t)&&(n=r[t],u={}.toString.call(n),u==="[object Array]"?e[t]=n.slice(0):u==="[object Number]"?e[t]=n:console.error("unexpected color value:",n));return f}},i.prototype.spaces={rgb:["red","green","blue"],hsl:["hue","saturation","lightness"],hsv:["hue","saturation","value"],hwb:["hue","whiteness","blackness"],cmyk:["cyan","magenta","yellow","black"]},i.prototype.maxes={rgb:[255,255,255],hsl:[360,100,100],hsv:[360,100,100],hwb:[360,100,100],cmyk:[100,100,100,100]},i.prototype.getValues=function(n){for(var i=this.values,r={},t=0;t<n.length;t++)r[n.charAt(t)]=i[n][t];return i.alpha!==1&&(r.a=i.alpha),r},i.prototype.setValues=function(n,t){var r=this.values,o=this.spaces,c=this.maxes,f=1,i,s,h,e;if(this.valid=!0,n==="alpha")f=t;else if(t.length)r[n]=t.slice(0,n.length),f=t[n.length];else if(t[n.charAt(0)]!==undefined){for(i=0;i<n.length;i++)r[n][i]=t[n.charAt(i)];f=t.a}else if(t[o[n][0]]!==undefined){for(s=o[n],i=0;i<n.length;i++)r[n][i]=t[s[i]];f=t.alpha}if(r.alpha=Math.max(0,Math.min(1,f===undefined?r.alpha:f)),n==="alpha")return!1;for(i=0;i<n.length;i++)h=Math.max(0,Math.min(c[n][i],r[n][i])),r[n][i]=Math.round(h);for(e in o)e!==n&&(r[e]=u[n][e](r[n]));return!0},i.prototype.setSpace=function(n,t){var i=t[0];return i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i),this)},i.prototype.setChannel=function(n,t,i){var r=this.values[n];return i===undefined?r[t]:i===r[t]?this:(r[t]=i,this.setValues(n,r),this)},typeof window!="undefined"&&(window.Color=i),t.exports=i},{"2":2,"5":5}],4:[function(n,t){function u(n){var u=n[0]/255,f=n[1]/255,e=n[2]/255,r=Math.min(u,f,e),t=Math.max(u,f,e),o=t-r,i,h,s;return t==r?i=0:u==t?i=(f-e)/o:f==t?i=2+(e-u)/o:e==t&&(i=4+(u-f)/o),i=Math.min(i*60,360),i<0&&(i+=360),s=(r+t)/2,h=t==r?0:s<=.5?o/(t+r):o/(2-t-r),[i,h*100,s*100]}function c(n){var r=n[0],u=n[1],f=n[2],o=Math.min(r,u,f),i=Math.max(r,u,f),e=i-o,t,s,h;return s=i==0?0:e/i*100,i==o?t=0:r==i?t=(u-f)/e:u==i?t=2+(f-r)/e:f==i&&(t=4+(r-u)/e),t=Math.min(t*60,360),t<0&&(t+=360),h=i/255*100,[t,s,h]}function f(n){var i=n[0],r=n[1],t=n[2],f=u(n)[0],e=1/255*Math.min(i,Math.min(r,t)),t=1-1/255*Math.max(i,Math.max(r,t));return[f,e*100,t*100]}function e(n){var i=n[0]/255,r=n[1]/255,u=n[2]/255,f,e,o,t;return t=Math.min(1-i,1-r,1-u),f=(1-i-t)/(1-t)||0,e=(1-r-t)/(1-t)||0,o=(1-u-t)/(1-t)||0,[f*100,e*100,o*100,t*100]}function o(n){return nt[JSON.stringify(n)]}function y(n){var t=n[0]/255,i=n[1]/255,r=n[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;var u=t*.4124+i*.3576+r*.1805,f=t*.2126+i*.7152+r*.0722,e=t*.0193+i*.1192+r*.9505;return[u*100,f*100,e*100]}function p(n){var u=y(n),i=u[0],t=u[1],r=u[2],f,e,o;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,f=116*t-16,e=500*(i-t),o=200*(t-r),[f,e,o]}function ft(n){return k(p(n))}function l(n){var h=n[0]/360,o=n[1]/100,i=n[2]/100,r,f,t,s,u,e;if(o==0)return u=i*255,[u,u,u];for(f=i<.5?i*(1+o):i+o-i*o,r=2*i-f,s=[0,0,0],e=0;e<3;e++)t=h+1/3*-(e-1),t<0&&t++,t>1&&t--,u=6*t<1?r+(f-r)*6*t:2*t<1?f:3*t<2?r+(f-r)*(2/3-t)*6:r,s[e]=u*255;return s}function et(n){var f=n[0],i=n[1]/100,t=n[2]/100,r,u;return t===0?[0,0,0]:(t*=2,i*=t<=1?t:2-t,u=(t+i)/2,r=2*i/(t+i),[f,r*100,u*100])}function ot(n){return f(l(n))}function st(n){return e(l(n))}function ht(n){return o(l(n))}function a(n){var r=n[0]/60,u=n[1]/100,t=n[2]/100,s=Math.floor(r)%6,o=r-Math.floor(r),i=255*t*(1-u),f=255*t*(1-u*o),e=255*t*(1-u*(1-o)),t=255*t;switch(s){case 0:return[t,e,i];case 1:return[f,t,i];case 2:return[i,t,e];case 3:return[i,f,t];case 4:return[e,i,t];case 5:return[t,i,f]}}function ct(n){var f=n[0],r=n[1]/100,u=n[2]/100,i,t;return t=(2-r)*u,i=r*u,i/=t<=1?t:2-t,i=i||0,t/=2,[f,i*100,t*100]}function lt(n){return f(a(n))}function at(n){return e(a(n))}function vt(n){return o(a(n))}function s(n){var h=n[0]/360,t=n[1]/100,o=n[2]/100,s=t+o,f,i,e,u;s>1&&(t/=s,o/=s),f=Math.floor(6*h),i=1-o,e=6*h-f,(f&1)!=0&&(e=1-e),u=t+e*(i-t);switch(f){default:case 6:case 0:r=i,g=u,b=t;break;case 1:r=u,g=i,b=t;break;case 2:r=t,g=i,b=u;break;case 3:r=t,g=u,b=i;break;case 4:r=u,g=t,b=i;break;case 5:r=i,g=t,b=u}return[r*255,g*255,b*255]}function yt(n){return u(s(n))}function pt(n){return c(s(n))}function wt(n){return e(s(n))}function bt(n){return o(s(n))}function h(n){var f=n[0]/100,e=n[1]/100,o=n[2]/100,t=n[3]/100,i,r,u;return i=1-Math.min(1,f*(1-t)+t),r=1-Math.min(1,e*(1-t)+t),u=1-Math.min(1,o*(1-t)+t),[i*255,r*255,u*255]}function kt(n){return u(h(n))}function dt(n){return c(h(n))}function gt(n){return f(h(n))}function ni(n){return o(h(n))}function it(n){var u=n[0]/100,f=n[1]/100,e=n[2]/100,t,i,r;return t=u*3.2406+f*-1.5372+e*-.4986,i=u*-.9689+f*1.8758+e*.0415,r=u*.0557+f*-.204+e*1.057,t=t>.0031308?1.055*Math.pow(t,1/2.4)-.055:t=t*12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i=i*12.92,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:r=r*12.92,t=Math.min(Math.max(0,t),1),i=Math.min(Math.max(0,i),1),r=Math.min(Math.max(0,r),1),[t*255,i*255,r*255]}function rt(n){var i=n[0],t=n[1],r=n[2],u,f,e;return i/=95.047,t/=100,r/=108.883,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,u=116*t-16,f=500*(i-t),e=200*(t-r),[u,f,e]}function ti(n){return k(rt(n))}function w(n){var f=n[0],e=n[1],o=n[2],r,i,u,t;return f<=8?(i=f*100/903.3,t=7.787*(i/100)+16/116):(i=100*Math.pow((f+16)/116,3),t=Math.pow(i/100,1/3)),r=r/95.047<=.008856?r=95.047*(e/500+t-16/116)/7.787:95.047*Math.pow(e/500+t,3),u=u/108.883<=.008859?u=108.883*(t-o/200-16/116)/7.787:108.883*Math.pow(t-o/200,3),[r,i,u]}function k(n){var e=n[0],i=n[1],r=n[2],u,t,f;return u=Math.atan2(r,i),t=u*180/Math.PI,t<0&&(t+=360),f=Math.sqrt(i*i+r*r),[e,f,t]}function ut(n){return it(w(n))}function d(n){var f=n[0],i=n[1],e=n[2],r,u,t;return t=e/180*Math.PI,r=i*Math.cos(t),u=i*Math.sin(t),[f,r,u]}function ii(n){return w(d(n))}function ri(n){return ut(d(n))}function i(n){return v[n]}function ui(n){return u(i(n))}function fi(n){return c(i(n))}function ei(n){return f(i(n))}function oi(n){return e(i(n))}function si(n){return p(i(n))}function hi(n){return y(i(n))}var v,nt,tt;t.exports={rgb2hsl:u,rgb2hsv:c,rgb2hwb:f,rgb2cmyk:e,rgb2keyword:o,rgb2xyz:y,rgb2lab:p,rgb2lch:ft,hsl2rgb:l,hsl2hsv:et,hsl2hwb:ot,hsl2cmyk:st,hsl2keyword:ht,hsv2rgb:a,hsv2hsl:ct,hsv2hwb:lt,hsv2cmyk:at,hsv2keyword:vt,hwb2rgb:s,hwb2hsl:yt,hwb2hsv:pt,hwb2cmyk:wt,hwb2keyword:bt,cmyk2rgb:h,cmyk2hsl:kt,cmyk2hsv:dt,cmyk2hwb:gt,cmyk2keyword:ni,keyword2rgb:i,keyword2hsl:ui,keyword2hsv:fi,keyword2hwb:ei,keyword2cmyk:oi,keyword2lab:si,keyword2xyz:hi,xyz2rgb:it,xyz2lab:rt,xyz2lch:ti,lab2xyz:w,lab2rgb:ut,lab2lch:k,lch2lab:d,lch2xyz:ii,lch2rgb:ri},v={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]},nt={};for(tt in v)nt[JSON.stringify(v[tt])]=tt},{}],5:[function(n,t){var f=n(4),i=function(){return new u},r,u;for(r in f){i[r+"Raw"]=function(n){return function(t){return typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),f[n](t)}}(r);var o=/(\w+)2(\w+)/.exec(r),e=o[1],s=o[2];i[e]=i[e]||{},i[e][s]=i[r]=function(n){return function(t){var i,r;if(typeof t=="number"&&(t=Array.prototype.slice.call(arguments)),i=f[n](t),typeof i=="string"||i===undefined)return i;for(r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(r)}u=function(){this.convs={}},u.prototype.routeSpace=function(n,t){var i=t[0];return i===undefined?this.getValues(n):(typeof i=="number"&&(i=Array.prototype.slice.call(t)),this.setValues(n,i))},u.prototype.setValues=function(n,t){return this.space=n,this.convs={},this.convs[n]=t,this},u.prototype.getValues=function(n){var t=this.convs[n],r,u;return t||(r=this.space,u=this.convs[r],t=i[r][n](u),this.convs[n]=t),t},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(n){u.prototype[n]=function(){return this.routeSpace(n,arguments)}}),t.exports=i},{"4":4}],6:[function(n,t){t.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(n,t){var i=n(28)(),r;n(26)(i),n(40)(i),n(22)(i),n(25)(i),n(30)(i),n(21)(i),n(23)(i),n(24)(i),n(29)(i),n(32)(i),n(33)(i),n(31)(i),n(27)(i),n(34)(i),n(35)(i),n(36)(i),n(37)(i),n(38)(i),n(46)(i),n(44)(i),n(45)(i),n(47)(i),n(48)(i),n(49)(i),n(15)(i),n(16)(i),n(17)(i),n(18)(i),n(19)(i),n(20)(i),n(8)(i),n(9)(i),n(10)(i),n(11)(i),n(12)(i),n(13)(i),n(14)(i),r=[],r.push(n(41)(i),n(42)(i),n(43)(i)),i.plugins.register(r),t.exports=i,typeof window!="undefined"&&(window.Chart=i)},{"10":10,"11":11,"12":12,"13":13,"14":14,"15":15,"16":16,"17":17,"18":18,"19":19,"20":20,"21":21,"22":22,"23":23,"24":24,"25":25,"26":26,"27":27,"28":28,"29":29,"30":30,"31":31,"32":32,"33":33,"34":34,"35":35,"36":36,"37":37,"38":38,"40":40,"41":41,"42":42,"43":43,"44":44,"45":45,"46":46,"47":47,"48":48,"49":49,"8":8,"9":9}],8:[function(n,t){"use strict";t.exports=function(n){n.Bar=function(t,i){return i.type="bar",new n(t,i)}}},{}],9:[function(n,t){"use strict";t.exports=function(n){n.Bubble=function(t,i){return i.type="bubble",new n(t,i)}}},{}],10:[function(n,t){"use strict";t.exports=function(n){n.Doughnut=function(t,i){return i.type="doughnut",new n(t,i)}}},{}],11:[function(n,t){"use strict";t.exports=function(n){n.Line=function(t,i){return i.type="line",new n(t,i)}}},{}],12:[function(n,t){"use strict";t.exports=function(n){n.PolarArea=function(t,i){return i.type="polarArea",new n(t,i)}}},{}],13:[function(n,t){"use strict";t.exports=function(n){n.Radar=function(t,i){return i.type="radar",new n(t,i)}}},{}],14:[function(n,t){"use strict";t.exports=function(n){var t={hover:{mode:"single"},scales:{xAxes:[{type:"linear",position:"bottom",id:"x-axis-1"}],yAxes:[{type:"linear",position:"left",id:"y-axis-1"}]},tooltips:{callbacks:{title:function(){return""},label:function(n){return"("+n.xLabel+", "+n.yLabel+")"}}}};n.defaults.scatter=t,n.controllers.scatter=n.controllers.line,n.Scatter=function(t,i){return i.type="scatter",new n(t,i)}}},{}],15:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.bar={hover:{mode:"label"},scales:{xAxes:[{type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}],yAxes:[{type:"linear"}]}},n.controllers.bar=n.DatasetController.extend({dataElementType:n.elements.Rectangle,initialize:function(){var t=this,i;n.DatasetController.prototype.initialize.apply(t,arguments),i=t.getMeta(),i.stack=t.getDataset().stack,i.bar=!0},update:function(n){var i=this,r=i.getMeta().data,t,u;for(i._ruler=i.getRuler(),t=0,u=r.length;t<u;++t)i.updateElement(r[t],t,n)},updateElement:function(n,i,r){var f=this,s=f.chart,h=f.getMeta(),e=f.getDataset(),u=n.custom||{},o=s.options.elements.rectangle;n._xScale=f.getScaleForId(h.xAxisID),n._yScale=f.getScaleForId(h.yAxisID),n._datasetIndex=f.index,n._index=i,n._model={datasetLabel:e.label,label:s.data.labels[i],borderSkipped:u.borderSkipped?u.borderSkipped:o.borderSkipped,backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(e.backgroundColor,i,o.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(e.borderColor,i,o.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(e.borderWidth,i,o.borderWidth)},f.updateElementGeometry(n,i,r),n.pivot()},updateElementGeometry:function(n,t,i){var r=this,u=n._model,h=r.getValueScale(),o=h.getBasePixel(),f=h.isHorizontal(),c=r._ruler||r.getRuler(),s=r.calculateBarValuePixels(r.index,t),e=r.calculateBarIndexPixels(r.index,t,c);u.horizontal=f,u.base=i?o:s.base,u.x=f?i?o:s.head:e.center,u.y=f?e.center:i?o:s.head,u.height=f?e.size:undefined,u.width=f?undefined:e.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(n){for(var e=this,u=e.chart,o=e.getIndexScale(),f=o.options.stacked,s=n===undefined?u.data.datasets.length:n+1,r=[],t,i=0;i<s;++i)t=u.getDatasetMeta(i),t.bar&&u.isDatasetVisible(i)&&(f===!1||f===!0&&r.indexOf(t.stack)===-1||f===undefined&&(t.stack===undefined||r.indexOf(t.stack)===-1))&&r.push(t.stack);return r.length},getStackIndex:function(n){return this.getStackCount(n)-1},getRuler:function(){var o=this,n=o.getIndexScale(),i=n.options,s=o.getStackCount(),h=n.isHorizontal()?n.width:n.height,u=h/n.ticks.length,f=u*i.categoryPercentage,e=f/s,r=e*i.barPercentage;return r=Math.min(t.getValueOrDefault(i.barThickness,r),t.getValueOrDefault(i.maxBarThickness,Infinity)),{stackCount:s,tickSize:u,categorySize:f,categorySpacing:u-f,fullBarSize:e,barSize:r,barSpacing:e-r,scale:n}},calculateBarValuePixels:function(n,t){var o=this,s=o.chart,w=o.getMeta(),r=o.getValueScale(),v=s.data.datasets,h=Number(v[n].data[t]),y=r.options.stacked,p=w.stack,c=0,i,u,f,l,e,a;if(y||y===undefined&&p!==undefined)for(i=0;i<n;++i)u=s.getDatasetMeta(i),u.bar&&u.stack===p&&u.controller.getValueScaleId()===r.id&&s.isDatasetVisible(i)&&(f=Number(v[i].data[t]),(h<0&&f<0||h>=0&&f>0)&&(c+=f));return l=r.getPixelForValue(c),e=r.getPixelForValue(c+h),a=(e-l)/2,{size:a,base:l,head:e,center:e+a/2}},calculateBarIndexPixels:function(n,t,i){var f=this,o=i.scale,e=f.chart.isCombo,s=f.getStackIndex(n),r=o.getPixelForValue(null,t,n,e),u=i.barSize;return r-=e?i.tickSize/2:0,r+=i.fullBarSize*s,r+=i.categorySpacing/2,r+=i.barSpacing/2,{size:u,base:r,head:r+u,center:r+u/2}},draw:function(){var r=this,u=r.chart,f=r.getMeta().data,e=r.getDataset(),o=f.length,n=0,i;for(t.canvas.clipArea(u.ctx,u.chartArea);n<o;++n)i=e.data[n],i===null||i===undefined||isNaN(i)||f[n].draw();t.canvas.unclipArea(u.ctx)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.hoverBackgroundColor,f,t.getHoverColor(r.backgroundColor)),r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.hoverBorderColor,f,t.getHoverColor(r.borderColor)),r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.hoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,i=n.custom||{},f=n._model,e=this.chart.options.elements.rectangle;f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.backgroundColor,u,e.backgroundColor),f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.borderColor,u,e.borderColor),f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.borderWidth,u,e.borderWidth)}}),n.defaults.horizontalBar={hover:{mode:"label"},scales:{xAxes:[{type:"linear",position:"bottom"}],yAxes:[{position:"left",type:"category",categoryPercentage:.8,barPercentage:.9,gridLines:{offsetGridLines:!0}}]},elements:{rectangle:{borderSkipped:"left"}},tooltips:{callbacks:{title:function(n,t){var i="";return n.length>0&&(n[0].yLabel?i=n[0].yLabel:t.labels.length>0&&n[0].index<t.labels.length&&(i=t.labels[n[0].index])),i},label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i+": "+n.xLabel}}}},n.controllers.horizontalBar=n.controllers.bar.extend({getValueScaleId:function(){return this.getMeta().xAxisID},getIndexScaleId:function(){return this.getMeta().yAxisID}})}},{}],16:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.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(n,t){var i=t.datasets[n.datasetIndex].label||"",r=t.datasets[n.datasetIndex].data[n.index];return i+": ("+n.xLabel+", "+n.yLabel+", "+r.r+")"}}}},n.controllers.bubble=n.DatasetController.extend({dataElementType:n.elements.Point,update:function(n){var i=this,r=i.getMeta(),u=r.data;t.each(u,function(t,r){i.updateElement(t,r,n)})},updateElement:function(i,r,u){var f=this,a=f.getMeta(),h=f.getScaleForId(a.xAxisID),c=f.getScaleForId(a.yAxisID),e=i.custom||{},v=f.getDataset(),o=v.data[r],y=f.chart.options.elements.point,l=f.index,s;t.extend(i,{_xScale:h,_yScale:c,_datasetIndex:l,_index:r,_model:{x:u?h.getPixelForDecimal(.5):h.getPixelForValue(typeof o=="object"?o:NaN,r,l,f.chart.isCombo),y:u?c.getBasePixel():c.getPixelForValue(o,r,l),radius:u?0:e.radius?e.radius:f.getRadius(o),hitRadius:e.hitRadius?e.hitRadius:t.getValueAtIndexOrDefault(v.hitRadius,r,y.hitRadius)}}),n.DatasetController.prototype.removeHoverStyle.call(f,i,y),s=i._model,s.skip=e.skip?e.skip:isNaN(s.x)||isNaN(s.y),i.pivot()},getRadius:function(n){return n.r||this.chart.options.elements.point.radius},setHoverStyle:function(i){var r=this;n.DatasetController.prototype.setHoverStyle.call(r,i);var u=r.chart.data.datasets[i._datasetIndex],f=i._index,e=i.custom||{},o=i._model;o.radius=e.hoverRadius?e.hoverRadius:t.getValueAtIndexOrDefault(u.hoverRadius,f,r.chart.options.elements.point.hoverRadius)+r.getRadius(u.data[f])},removeHoverStyle:function(t){var i=this;n.DatasetController.prototype.removeHoverStyle.call(i,t,i.chart.options.elements.point);var u=i.chart.data.datasets[t._datasetIndex].data[t._index],r=t.custom||{},f=t._model;f.radius=r.radius?r.radius:i.getRadius(u)}})}},{}],17:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.defaults;i.doughnut={animation:{animateRotate:!0,animateScale:!1},aspectRatio:1,hover:{mode:"single"},legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c&&c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var u=t.index,f=this.chart,r,i=0,e=(f.data.datasets||[]).length;i<e;++i)r=f.getDatasetMeta(i),r.data[u]&&(r.data[u].hidden=!r.data[u].hidden);f.update()}},cutoutPercentage:50,rotation:Math.PI*-.5,circumference:Math.PI*2,tooltips:{callbacks:{title:function(){return""},label:function(n,i){var r=i.labels[n.index],u=": "+i.datasets[n.datasetIndex].data[n.index];return t.isArray(r)?(r=r.slice(),r[0]+=u):r+=u,r}}}},i.pie=t.clone(i.doughnut),t.extend(i.pie,{cutoutPercentage:0}),n.controllers.doughnut=n.controllers.pie=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,getRingIndex:function(n){for(var i=0,t=0;t<n;++t)this.chart.isDatasetVisible(t)&&++i;return i},update:function(n){var u=this,i=u.chart,h=i.chartArea,c=i.options,w=c.elements.arc,b=h.right-h.left-w.borderWidth,k=h.bottom-h.top-w.borderWidth,d=Math.min(b,k),v={x:0,y:0},y=u.getMeta(),p=c.cutoutPercentage,g=c.circumference,r;if(g<Math.PI*2){r=c.rotation%(Math.PI*2)+Math.PI*2*(r>=Math.PI?-1:r<-Math.PI?1:0);var f=r+g,e={x:Math.cos(r),y:Math.sin(r)},o={x:Math.cos(f),y:Math.sin(f)},tt=r<=0&&0<=f||r<=Math.PI*2&&Math.PI*2<=f,it=r<=Math.PI*.5&&Math.PI*.5<=f||r<=Math.PI*2.5&&Math.PI*2.5<=f,rt=r<=-Math.PI&&-Math.PI<=f||r<=Math.PI&&Math.PI<=f,ut=r<=-Math.PI*.5&&-Math.PI*.5<=f||r<=Math.PI*1.5&&Math.PI*1.5<=f,s=p/100,l={x:rt?-1:Math.min(e.x*(e.x<0?1:s),o.x*(o.x<0?1:s)),y:ut?-1:Math.min(e.y*(e.y<0?1:s),o.y*(o.y<0?1:s))},a={x:tt?1:Math.max(e.x*(e.x>0?1:s),o.x*(o.x>0?1:s)),y:it?1:Math.max(e.y*(e.y>0?1:s),o.y*(o.y>0?1:s))},nt={width:(a.x-l.x)*.5,height:(a.y-l.y)*.5};d=Math.min(b/nt.width,k/nt.height),v={x:(a.x+l.x)*-.5,y:(a.y+l.y)*-.5}}i.borderWidth=u.getMaxBorderWidth(y.data),i.outerRadius=Math.max((d-i.borderWidth)/2,0),i.innerRadius=Math.max(p?i.outerRadius/100*p:0,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),i.offsetX=v.x*i.outerRadius,i.offsetY=v.y*i.outerRadius,y.total=u.calculateTotal(),u.outerRadius=i.outerRadius-i.radiusLength*u.getRingIndex(u.index),u.innerRadius=Math.max(u.outerRadius-i.radiusLength,0),t.each(y.data,function(t,i){u.updateElement(t,i,n)})},updateElement:function(n,i,r){var u=this,f=u.chart,s=f.chartArea,e=f.options,h=e.animation,l=(s.left+s.right)/2,a=(s.top+s.bottom)/2,v=e.rotation,y=e.rotation,c=u.getDataset(),p=r&&h.animateRotate?0:n.hidden?0:u.calculateCircumference(c.data[i])*(e.circumference/(2*Math.PI)),w=r&&h.animateScale?0:u.innerRadius,b=r&&h.animateScale?0:u.outerRadius,k=t.getValueAtIndexOrDefault,o;t.extend(n,{_datasetIndex:u.index,_index:i,_model:{x:l+f.offsetX,y:a+f.offsetY,startAngle:v,endAngle:y,circumference:p,outerRadius:b,innerRadius:w,label:k(c.label,i,f.data.labels[i])}}),o=n._model,this.removeHoverStyle(n),r&&h.animateRotate||(o.startAngle=i===0?e.rotation:u.getMeta().data[i-1]._model.endAngle,o.endAngle=o.startAngle+o.circumference),n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},calculateTotal:function(){var r=this.getDataset(),u=this.getMeta(),i=0,n;return t.each(u.data,function(t,u){n=r.data[u],isNaN(n)||t.hidden||(i+=Math.abs(n))}),i},calculateCircumference:function(n){var t=this.getMeta().total;return t>0&&!isNaN(n)?Math.PI*2*(n/t):0},getMaxBorderWidth:function(n){for(var t=0,f=this.index,e=n.length,r,u,i=0;i<e;i++)r=n[i]._model?n[i]._model.borderWidth:0,u=n[i]._chart?n[i]._chart.config.data.datasets[f].hoverBorderWidth:0,t=r>t?r:t,t=u>t?u:t;return t}})}},{}],18:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.getValueOrDefault(n.showLine,i.showLines)}var t=n.helpers;n.defaults.line={showLines:!0,spanGaps:!1,hover:{mode:"label"},scales:{xAxes:[{type:"category",id:"x-axis-0"}],yAxes:[{type:"linear",id:"y-axis-0"}]}},n.controllers.line=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,update:function(n){var o=this,l=o.getMeta(),s=l.dataset,h=l.data||[],a=o.chart.options,f=a.elements.line,y=o.getScaleForId(l.yAxisID),e,c,r,u=o.getDataset(),v=i(u,a);for(v&&(r=s.custom||{},u.tension!==undefined&&u.lineTension===undefined&&(u.lineTension=u.tension),s._scale=y,s._datasetIndex=o.index,s._children=h,s._model={spanGaps:u.spanGaps?u.spanGaps:a.spanGaps,tension:r.tension?r.tension:t.getValueOrDefault(u.lineTension,f.tension),backgroundColor:r.backgroundColor?r.backgroundColor:u.backgroundColor||f.backgroundColor,borderWidth:r.borderWidth?r.borderWidth:u.borderWidth||f.borderWidth,borderColor:r.borderColor?r.borderColor:u.borderColor||f.borderColor,borderCapStyle:r.borderCapStyle?r.borderCapStyle:u.borderCapStyle||f.borderCapStyle,borderDash:r.borderDash?r.borderDash:u.borderDash||f.borderDash,borderDashOffset:r.borderDashOffset?r.borderDashOffset:u.borderDashOffset||f.borderDashOffset,borderJoinStyle:r.borderJoinStyle?r.borderJoinStyle:u.borderJoinStyle||f.borderJoinStyle,fill:r.fill?r.fill:u.fill!==undefined?u.fill:f.fill,steppedLine:r.steppedLine?r.steppedLine:t.getValueOrDefault(u.steppedLine,f.stepped),cubicInterpolationMode:r.cubicInterpolationMode?r.cubicInterpolationMode:t.getValueOrDefault(u.cubicInterpolationMode,f.cubicInterpolationMode)},s.pivot()),e=0,c=h.length;e<c;++e)o.updateElement(h[e],e,n);for(v&&s._model.tension!==0&&o.updateBezierControlPoints(),e=0,c=h.length;e<c;++e)h[e].pivot()},getPointBackgroundColor:function(n,i){var r=this.chart.options.elements.point.backgroundColor,u=this.getDataset(),f=n.custom||{};return f.backgroundColor?r=f.backgroundColor:u.pointBackgroundColor?r=t.getValueAtIndexOrDefault(u.pointBackgroundColor,i,r):u.backgroundColor&&(r=u.backgroundColor),r},getPointBorderColor:function(n,i){var r=this.chart.options.elements.point.borderColor,u=this.getDataset(),f=n.custom||{};return f.borderColor?r=f.borderColor:u.pointBorderColor?r=t.getValueAtIndexOrDefault(u.pointBorderColor,i,r):u.borderColor&&(r=u.borderColor),r},getPointBorderWidth:function(n,i){var r=this.chart.options.elements.point.borderWidth,u=this.getDataset(),f=n.custom||{};return isNaN(f.borderWidth)?isNaN(u.pointBorderWidth)?isNaN(u.borderWidth)||(r=u.borderWidth):r=t.getValueAtIndexOrDefault(u.pointBorderWidth,i,r):r=f.borderWidth,r},updateElement:function(n,i,r){var f=this,e=f.getMeta(),o=n.custom||{},u=f.getDataset(),s=f.index,h=u.data[i],v=f.getScaleForId(e.yAxisID),y=f.getScaleForId(e.xAxisID),c=f.chart.options.elements.point,l,a,p=f.chart.data.labels||[],w=p.length===1||u.data.length===1||f.chart.isCombo;u.radius!==undefined&&u.pointRadius===undefined&&(u.pointRadius=u.radius),u.hitRadius!==undefined&&u.pointHitRadius===undefined&&(u.pointHitRadius=u.hitRadius),l=y.getPixelForValue(typeof h=="object"?h:NaN,i,s,w),a=r?v.getBasePixel():f.calculatePointY(h,i,s),n._xScale=y,n._yScale=v,n._datasetIndex=s,n._index=i,n._model={x:l,y:a,skip:o.skip||isNaN(l)||isNaN(a),radius:o.radius||t.getValueAtIndexOrDefault(u.pointRadius,i,c.radius),pointStyle:o.pointStyle||t.getValueAtIndexOrDefault(u.pointStyle,i,c.pointStyle),backgroundColor:f.getPointBackgroundColor(n,i),borderColor:f.getPointBorderColor(n,i),borderWidth:f.getPointBorderWidth(n,i),tension:e.dataset._model?e.dataset._model.tension:0,steppedLine:e.dataset._model?e.dataset._model.steppedLine:!1,hitRadius:o.hitRadius||t.getValueAtIndexOrDefault(u.pointHitRadius,i,c.hitRadius)}},calculatePointY:function(n,t,i){var o=this,s=o.chart,v=o.getMeta(),r=o.getScaleForId(v.yAxisID),c=0,l=0,u,a,h,f,e;if(r.options.stacked){for(u=0;u<i;u++)a=s.data.datasets[u],h=s.getDatasetMeta(u),h.type==="line"&&h.yAxisID===r.id&&s.isDatasetVisible(u)&&(f=Number(r.getRightValue(a.data[t])),f<0?l+=f||0:c+=f||0);return(e=Number(r.getRightValue(n)),e<0)?r.getPixelForValue(l+e):r.getPixelForValue(c+e)}return r.getPixelForValue(n)},updateBezierControlPoints:function(){function s(n,t,i){return Math.max(Math.min(n,i),t)}var h=this,e=h.getMeta(),u=h.chart.chartArea,r=e.data||[],i,o,c,n,f;if(e.dataset._model.spanGaps&&(r=r.filter(function(n){return!n._model.skip})),e.dataset._model.cubicInterpolationMode==="monotone")t.splineCurveMonotone(r);else for(i=0,o=r.length;i<o;++i)c=r[i],n=c._model,f=t.splineCurve(t.previousItem(r,i)._model,n,t.nextItem(r,i)._model,e.dataset._model.tension),n.controlPointPreviousX=f.previous.x,n.controlPointPreviousY=f.previous.y,n.controlPointNextX=f.next.x,n.controlPointNextY=f.next.y;if(h.chart.options.elements.line.capBezierPoints)for(i=0,o=r.length;i<o;++i)n=r[i]._model,n.controlPointPreviousX=s(n.controlPointPreviousX,u.left,u.right),n.controlPointPreviousY=s(n.controlPointPreviousY,u.top,u.bottom),n.controlPointNextX=s(n.controlPointNextX,u.left,u.right),n.controlPointNextY=s(n.controlPointNextY,u.top,u.bottom)},draw:function(){var r=this,t=r.chart,f=r.getMeta(),e=f.data||[],o=t.chartArea,s=e.length,u=0;for(n.canvasHelpers.clipArea(t.ctx,o),i(r.getDataset(),t.options)&&f.dataset.draw(),n.canvasHelpers.unclipArea(t.ctx);u<s;++u)e[u].draw(o)},setHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],u=n._index,f=n.custom||{},i=n._model;i.radius=f.hoverRadius||t.getValueAtIndexOrDefault(r.pointHoverRadius,u,this.chart.options.elements.point.hoverRadius),i.backgroundColor=f.hoverBackgroundColor||t.getValueAtIndexOrDefault(r.pointHoverBackgroundColor,u,t.getHoverColor(i.backgroundColor)),i.borderColor=f.hoverBorderColor||t.getValueAtIndexOrDefault(r.pointHoverBorderColor,u,t.getHoverColor(i.borderColor)),i.borderWidth=f.hoverBorderWidth||t.getValueAtIndexOrDefault(r.pointHoverBorderWidth,u,i.borderWidth)},removeHoverStyle:function(n){var i=this,r=i.chart.data.datasets[n._datasetIndex],u=n._index,e=n.custom||{},f=n._model;r.radius!==undefined&&r.pointRadius===undefined&&(r.pointRadius=r.radius),f.radius=e.radius||t.getValueAtIndexOrDefault(r.pointRadius,u,i.chart.options.elements.point.radius),f.backgroundColor=i.getPointBackgroundColor(n,u),f.borderColor=i.getPointBorderColor(n,u),f.borderWidth=i.getPointBorderWidth(n,u)}})}},{}],19:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.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,aspectRatio:1,legendCallback:function(n){var t=[],i;t.push('<ul class="'+n.id+'-legend">');var u=n.data,r=u.datasets,f=u.labels;if(r.length)for(i=0;i<r[0].data.length;++i)t.push('<li><span style="background-color:'+r[0].backgroundColor[i]+'"><\/span>'),f[i]&&t.push(f[i]),t.push("<\/li>");return t.push("<\/ul>"),t.join("")},legend:{labels:{generateLabels:function(n){var i=n.data;return i.labels.length&&i.datasets.length?i.labels.map(function(r,u){var h=n.getDatasetMeta(0),e=i.datasets[0],c=h.data[u],f=c.custom||{},o=t.getValueAtIndexOrDefault,s=n.options.elements.arc,l=f.backgroundColor?f.backgroundColor:o(e.backgroundColor,u,s.backgroundColor),a=f.borderColor?f.borderColor:o(e.borderColor,u,s.borderColor),v=f.borderWidth?f.borderWidth:o(e.borderWidth,u,s.borderWidth);return{text:r,fillStyle:l,strokeStyle:a,lineWidth:v,hidden:isNaN(e.data[u])||h.data[u].hidden,index:u}}):[]}},onClick:function(n,t){for(var f=t.index,r=this.chart,u,i=0,e=(r.data.datasets||[]).length;i<e;++i)u=r.getDatasetMeta(i),u.data[f].hidden=!u.data[f].hidden;r.update()}},tooltips:{callbacks:{title:function(){return""},label:function(n,t){return t.labels[n.index]+": "+n.yLabel}}}},n.controllers.polarArea=n.DatasetController.extend({dataElementType:n.elements.Arc,linkScales:t.noop,update:function(n){var r=this,i=r.chart,u=i.chartArea,e=r.getMeta(),f=i.options,o=f.elements.arc,s=Math.min(u.right-u.left,u.bottom-u.top);i.outerRadius=Math.max((s-o.borderWidth/2)/2,0),i.innerRadius=Math.max(f.cutoutPercentage?i.outerRadius/100*f.cutoutPercentage:1,0),i.radiusLength=(i.outerRadius-i.innerRadius)/i.getVisibleDatasetCount(),r.outerRadius=i.outerRadius-i.radiusLength*r.index,r.innerRadius=r.outerRadius-i.radiusLength,e.count=r.countVisibleElements(),t.each(e.data,function(t,i){r.updateElement(t,i,n)})},updateElement:function(n,i,r){for(var u=this,s=u.chart,o=u.getDataset(),l=s.options,h=l.animation,f=s.scale,w=t.getValueAtIndexOrDefault,a=s.data.labels,v=u.calculateCircumference(o.data[i]),b=f.xCenter,k=f.yCenter,y=0,d=u.getMeta(),e=0;e<i;++e)isNaN(o.data[e])||d.data[e].hidden||++y;var c=l.startAngle,g=n.hidden?0:f.getDistanceFromCenterForValue(o.data[i]),p=c+v*y,nt=p+(n.hidden?0:v),tt=h.animateScale?0:f.getDistanceFromCenterForValue(o.data[i]);t.extend(n,{_datasetIndex:u.index,_index:i,_scale:f,_model:{x:b,y:k,innerRadius:0,outerRadius:r?tt:g,startAngle:r&&h.animateRotate?c:p,endAngle:r&&h.animateRotate?c:nt,label:w(a,i,a[i])}}),u.removeHoverStyle(n),n.pivot()},removeHoverStyle:function(t){n.DatasetController.prototype.removeHoverStyle.call(this,t,this.chart.options.elements.arc)},countVisibleElements:function(){var i=this.getDataset(),r=this.getMeta(),n=0;return t.each(r.data,function(t,r){isNaN(i.data[r])||t.hidden||n++}),n},calculateCircumference:function(n){var t=this.getMeta().count;return t>0&&!isNaN(n)?2*Math.PI/t:0}})}},{}],20:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.radar={aspectRatio:1,scale:{type:"radialLinear"},elements:{line:{tension:0}}},n.controllers.radar=n.DatasetController.extend({datasetElementType:n.elements.Line,dataElementType:n.elements.Point,linkScales:t.noop,update:function(n){var f=this,e=f.getMeta(),s=e.dataset,o=e.data,i=s.custom||{},r=f.getDataset(),u=f.chart.options.elements.line,h=f.chart.scale;r.tension!==undefined&&r.lineTension===undefined&&(r.lineTension=r.tension),t.extend(e.dataset,{_datasetIndex:f.index,_scale:h,_children:o,_loop:!0,_model:{tension:i.tension?i.tension:t.getValueOrDefault(r.lineTension,u.tension),backgroundColor:i.backgroundColor?i.backgroundColor:r.backgroundColor||u.backgroundColor,borderWidth:i.borderWidth?i.borderWidth:r.borderWidth||u.borderWidth,borderColor:i.borderColor?i.borderColor:r.borderColor||u.borderColor,fill:i.fill?i.fill:r.fill!==undefined?r.fill:u.fill,borderCapStyle:i.borderCapStyle?i.borderCapStyle:r.borderCapStyle||u.borderCapStyle,borderDash:i.borderDash?i.borderDash:r.borderDash||u.borderDash,borderDashOffset:i.borderDashOffset?i.borderDashOffset:r.borderDashOffset||u.borderDashOffset,borderJoinStyle:i.borderJoinStyle?i.borderJoinStyle:r.borderJoinStyle||u.borderJoinStyle}}),e.dataset.pivot(),t.each(o,function(t,i){f.updateElement(t,i,n)},f),f.updateBezierControlPoints()},updateElement:function(n,i,r){var o=this,u=n.custom||{},f=o.getDataset(),s=o.chart.scale,e=o.chart.options.elements.point,h=s.getPointPositionForValue(i,f.data[i]);f.radius!==undefined&&f.pointRadius===undefined&&(f.pointRadius=f.radius),f.hitRadius!==undefined&&f.pointHitRadius===undefined&&(f.pointHitRadius=f.hitRadius),t.extend(n,{_datasetIndex:o.index,_index:i,_scale:s,_model:{x:r?s.xCenter:h.x,y:r?s.yCenter:h.y,tension:u.tension?u.tension:t.getValueOrDefault(f.lineTension,o.chart.options.elements.line.tension),radius:u.radius?u.radius:t.getValueAtIndexOrDefault(f.pointRadius,i,e.radius),backgroundColor:u.backgroundColor?u.backgroundColor:t.getValueAtIndexOrDefault(f.pointBackgroundColor,i,e.backgroundColor),borderColor:u.borderColor?u.borderColor:t.getValueAtIndexOrDefault(f.pointBorderColor,i,e.borderColor),borderWidth:u.borderWidth?u.borderWidth:t.getValueAtIndexOrDefault(f.pointBorderWidth,i,e.borderWidth),pointStyle:u.pointStyle?u.pointStyle:t.getValueAtIndexOrDefault(f.pointStyle,i,e.pointStyle),hitRadius:u.hitRadius?u.hitRadius:t.getValueAtIndexOrDefault(f.pointHitRadius,i,e.hitRadius)}}),n._model.skip=u.skip?u.skip:isNaN(n._model.x)||isNaN(n._model.y)},updateBezierControlPoints:function(){var n=this.chart.chartArea,i=this.getMeta();t.each(i.data,function(r,u){var f=r._model,e=t.splineCurve(t.previousItem(i.data,u,!0)._model,f,t.nextItem(i.data,u,!0)._model,f.tension);f.controlPointPreviousX=Math.max(Math.min(e.previous.x,n.right),n.left),f.controlPointPreviousY=Math.max(Math.min(e.previous.y,n.bottom),n.top),f.controlPointNextX=Math.max(Math.min(e.next.x,n.right),n.left),f.controlPointNextY=Math.max(Math.min(e.next.y,n.bottom),n.top),r.pivot()})},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},f=n._index,r=n._model;r.radius=i.hoverRadius?i.hoverRadius:t.getValueAtIndexOrDefault(u.pointHoverRadius,f,this.chart.options.elements.point.hoverRadius),r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:t.getValueAtIndexOrDefault(u.pointHoverBackgroundColor,f,t.getHoverColor(r.backgroundColor)),r.borderColor=i.hoverBorderColor?i.hoverBorderColor:t.getValueAtIndexOrDefault(u.pointHoverBorderColor,f,t.getHoverColor(r.borderColor)),r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:t.getValueAtIndexOrDefault(u.pointHoverBorderWidth,f,r.borderWidth)},removeHoverStyle:function(n){var r=this.chart.data.datasets[n._datasetIndex],i=n.custom||{},u=n._index,f=n._model,e=this.chart.options.elements.point;f.radius=i.radius?i.radius:t.getValueAtIndexOrDefault(r.pointRadius,u,e.radius),f.backgroundColor=i.backgroundColor?i.backgroundColor:t.getValueAtIndexOrDefault(r.pointBackgroundColor,u,e.backgroundColor),f.borderColor=i.borderColor?i.borderColor:t.getValueAtIndexOrDefault(r.pointBorderColor,u,e.borderColor),f.borderWidth=i.borderWidth?i.borderWidth:t.getValueAtIndexOrDefault(r.pointBorderWidth,u,e.borderWidth)}})}},{}],21:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.animation={duration:1e3,easing:"easeOutQuart",onProgress:t.noop,onComplete:t.noop},n.Animation=n.Element.extend({chart:null,currentStep:0,numSteps:60,easing:"",render:null,onAnimationProgress:null,onAnimationComplete:null}),n.animationService={frameDuration:17,animations:[],dropFrames:0,request:null,addAnimation:function(n,t,i,r){var u=this.animations,f,e;for(t.chart=n,r||(n.animating=!0),f=0,e=u.length;f<e;++f)if(u[f].chart===n){u[f]=t;return}u.push(t),u.length===1&&this.requestAnimationFrame()},cancelAnimation:function(n){var i=t.findIndex(this.animations,function(t){return t.chart===n});i!==-1&&(this.animations.splice(i,1),n.animating=!1)},requestAnimationFrame:function(){var n=this;n.request===null&&(n.request=t.requestAnimFrame.call(window,function(){n.request=null,n.startDigest()}))},startDigest:function(){var n=this,r=Date.now(),t=0,i;n.dropFrames>1&&(t=Math.floor(n.dropFrames),n.dropFrames=n.dropFrames%1),n.advance(1+t),i=Date.now(),n.dropFrames+=(i-r)/n.frameDuration,n.animations.length>0&&n.requestAnimationFrame()},advance:function(n){for(var f=this.animations,i,r,u=0;u<f.length;)i=f[u],r=i.chart,i.currentStep=(i.currentStep||0)+n,i.currentStep=Math.min(i.currentStep,i.numSteps),t.callback(i.render,[r,i],r),t.callback(i.onAnimationProgress,[i],r),i.currentStep>=i.numSteps?(t.callback(i.onAnimationComplete,[i],r),r.animating=!1,f.splice(u,1)):++u}},Object.defineProperty(n.Animation.prototype,"animationObject",{get:function(){return this}}),Object.defineProperty(n.Animation.prototype,"chartInstance",{get:function(){return this.chart},set:function(n){this.chart=n}})}},{}],22:[function(n,t){"use strict";t.exports=function(n){var t=n.canvasHelpers={};t.drawPoint=function(t,i,r,u,f){var l,h,o,s,c,e;if(typeof i=="object"&&(l=i.toString(),l==="[object HTMLImageElement]"||l==="[object HTMLCanvasElement]")){t.drawImage(i,u-i.width/2,f-i.height/2,i.width,i.height);return}if(!isNaN(r)&&!(r<=0)){switch(i){default:t.beginPath(),t.arc(u,f,r,0,Math.PI*2),t.closePath(),t.fill();break;case"triangle":t.beginPath(),h=3*r/Math.sqrt(3),c=h*Math.sqrt(3)/2,t.moveTo(u-h/2,f+c/3),t.lineTo(u+h/2,f+c/3),t.lineTo(u,f-2*c/3),t.closePath(),t.fill();break;case"rect":e=1/Math.SQRT2*r,t.beginPath(),t.fillRect(u-e,f-e,2*e,2*e),t.strokeRect(u-e,f-e,2*e,2*e);break;case"rectRounded":var a=r/Math.SQRT2,y=u-a,p=f-a,v=Math.SQRT2*r;n.helpers.drawRoundedRectangle(t,y,p,v,v,r/2),t.fill();break;case"rectRot":e=1/Math.SQRT2*r,t.beginPath(),t.moveTo(u-e,f),t.lineTo(u,f+e),t.lineTo(u+e,f),t.lineTo(u,f-e),t.closePath(),t.fill();break;case"cross":t.beginPath(),t.moveTo(u,f+r),t.lineTo(u,f-r),t.moveTo(u-r,f),t.lineTo(u+r,f),t.closePath();break;case"crossRot":t.beginPath(),o=Math.cos(Math.PI/4)*r,s=Math.sin(Math.PI/4)*r,t.moveTo(u-o,f-s),t.lineTo(u+o,f+s),t.moveTo(u-o,f+s),t.lineTo(u+o,f-s),t.closePath();break;case"star":t.beginPath(),t.moveTo(u,f+r),t.lineTo(u,f-r),t.moveTo(u-r,f),t.lineTo(u+r,f),o=Math.cos(Math.PI/4)*r,s=Math.sin(Math.PI/4)*r,t.moveTo(u-o,f-s),t.lineTo(u+o,f+s),t.moveTo(u-o,f+s),t.lineTo(u+o,f-s),t.closePath();break;case"line":t.beginPath(),t.moveTo(u-r,f),t.lineTo(u+r,f),t.closePath();break;case"dash":t.beginPath(),t.moveTo(u,f),t.lineTo(u+r,f),t.closePath()}t.stroke()}},t.clipArea=function(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()},t.unclipArea=function(n){n.restore()},t.lineTo=function(n,t,i,r){if(i.steppedLine){i.steppedLine==="after"?n.lineTo(t.x,i.y):n.lineTo(i.x,t.y),n.lineTo(i.x,i.y);return}if(!i.tension){n.lineTo(i.x,i.y);return}n.bezierCurveTo(r?t.controlPointPreviousX:t.controlPointNextX,r?t.controlPointPreviousY:t.controlPointNextY,r?i.controlPointNextX:i.controlPointPreviousX,r?i.controlPointNextY:i.controlPointPreviousY,i.x,i.y)},n.helpers.canvas=t}},{}],23:[function(n,t){"use strict";t.exports=function(n){function f(i){i=i||{};var r=i.data=i.data||{};return r.datasets=r.datasets||[],r.labels=r.labels||[],i.options=t.configMerge(n.defaults.global,n.defaults[i.type],i.options||{}),i}function e(n){var t=n.options;t.scale?n.scale.options=t.scale:t.scales&&t.scales.xAxes.concat(t.scales.yAxes).forEach(function(t){n.scales[t.id].options=t}),n.tooltip._options=t.tooltips}function u(n){return n==="top"||n==="bottom"}var t=n.helpers,i=n.plugins,r=n.platform;n.types={},n.instances={},n.controllers={},t.extend(n.prototype,{construct:function(i,u){var e=this;u=f(u);var s=r.acquireContext(i,u),o=s&&s.canvas,h=o&&o.height,c=o&&o.width;if(e.id=t.uid(),e.ctx=s,e.canvas=o,e.config=u,e.width=c,e.height=h,e.aspectRatio=h?c/h:null,e.options=u.options,e._bufferedRender=!1,e.chart=e,e.controller=e,n.instances[e.id]=e,Object.defineProperty(e,"data",{get:function(){return e.config.data},set:function(n){e.config.data=n}}),!s||!o){console.error("Failed to create chart: can't acquire context from the given item");return}e.initialize(),e.update()},initialize:function(){var n=this;return i.notify(n,"beforeInit"),t.retinaScale(n),n.bindEvents(),n.options.responsive&&n.resize(!0),n.ensureScalesHaveIDs(),n.buildScales(),n.initToolTip(),i.notify(n,"afterInit"),n},clear:function(){return t.clear(this),this},stop:function(){return n.animationService.cancelAnimation(this),this},resize:function(n){var r=this,h=r.options,u=r.canvas,s=h.maintainAspectRatio&&r.aspectRatio||null,f=Math.floor(t.getMaximumWidth(u)),e=Math.floor(s?f/s:t.getMaximumHeight(u)),o;if((r.width!==f||r.height!==e)&&(u.width=r.width=f,u.height=r.height=e,u.style.width=f+"px",u.style.height=e+"px",t.retinaScale(r),!n)){if(o={width:f,height:e},i.notify(r,"resize",[o]),r.options.onResize)r.options.onResize(r,o);r.stop(),r.update(r.options.responsiveAnimationDuration)}},ensureScalesHaveIDs:function(){var i=this.options,r=i.scales||{},n=i.scale;t.each(r.xAxes,function(n,t){n.id=n.id||"x-axis-"+t}),t.each(r.yAxes,function(n,t){n.id=n.id||"y-axis-"+t}),n&&(n.id=n.id||"scale")},buildScales:function(){var i=this,r=i.options,e=i.scales={},f=[];r.scales&&(f=f.concat((r.scales.xAxes||[]).map(function(n){return{options:n,dtype:"category",dposition:"bottom"}}),(r.scales.yAxes||[]).map(function(n){return{options:n,dtype:"linear",dposition:"left"}}))),r.scale&&f.push({options:r.scale,dtype:"radialLinear",isDefault:!0,dposition:"chartArea"}),t.each(f,function(r){var f=r.options,h=t.getValueOrDefault(f.type,r.dtype),s=n.scaleService.getScaleConstructor(h),o;s&&(u(f.position)!==u(r.dposition)&&(f.position=r.dposition),o=new s({id:f.id,options:f,ctx:i.ctx,chart:i}),e[o.id]=o,r.isDefault&&(i.scale=o))}),n.scaleService.addScalesToLayout(this)},buildOrUpdateControllers:function(){var i=this,r=[],f=[],u;if(t.each(i.data.datasets,function(t,u){var e=i.getDatasetMeta(u),o;if(e.type||(e.type=t.type||i.config.type),r.push(e.type),e.controller)e.controller.updateIndex(u);else{if(o=n.controllers[e.type],o===undefined)throw new Error('"'+e.type+'" is not a chart type.');e.controller=new o(i,u),f.push(e.controller)}},i),r.length>1)for(u=1;u<r.length;u++)if(r[u]!==r[u-1]){i.isCombo=!0;break}return f},resetElements:function(){var n=this;t.each(n.data.datasets,function(t,i){n.getDatasetMeta(i).controller.reset()},n)},reset:function(){this.resetElements(),this.tooltip.initialize()},update:function(n,r){var u=this,f;(e(u),i.notify(u,"beforeUpdate")!==!1)&&(u.tooltip._data=u.data,f=u.buildOrUpdateControllers(),t.each(u.data.datasets,function(n,t){u.getDatasetMeta(t).controller.buildOrUpdateElements()},u),u.updateLayout(),t.each(f,function(n){n.reset()}),u.updateDatasets(),i.notify(u,"afterUpdate"),u._bufferedRender?u._bufferedRequest={lazy:r,duration:n}:u.render(n,r))},updateLayout:function(){var t=this;i.notify(t,"beforeLayout")!==!1&&(n.layoutService.update(this,this.width,this.height),i.notify(t,"afterScaleUpdate"),i.notify(t,"afterLayout"))},updateDatasets:function(){var n=this,t,r;if(i.notify(n,"beforeDatasetsUpdate")!==!1){for(t=0,r=n.data.datasets.length;t<r;++t)n.updateDataset(t);i.notify(n,"afterDatasetsUpdate")}},updateDataset:function(n){var t=this,r=t.getDatasetMeta(n),u={meta:r,index:n};i.notify(t,"beforeDatasetUpdate",[u])!==!1&&(r.controller.update(),i.notify(t,"afterDatasetUpdate",[u]))},render:function(r,u){var f=this,e,o,s;if(i.notify(f,"beforeRender")!==!1)return e=f.options.animation,o=function(n){i.notify(f,"afterRender"),t.callback(e&&e.onComplete,[n],f)},e&&(typeof r!="undefined"&&r!==0||typeof r=="undefined"&&e.duration!==0)?(s=new n.Animation({numSteps:(r||e.duration)/16.66,easing:e.easing,render:function(n,i){var f=t.easingEffects[i.easing],r=i.currentStep,u=r/i.numSteps;n.draw(f(u),u,r)},onAnimationProgress:e.onProgress,onAnimationComplete:o}),n.animationService.addAnimation(f,s,r,u)):(f.draw(),o(new n.Animation({numSteps:0,chart:f}))),f},draw:function(n){var r=this;(r.clear(),(n===undefined||n===null)&&(n=1),r.transition(n),i.notify(r,"beforeDraw",[n])!==!1)&&(t.each(r.boxes,function(n){n.draw(r.chartArea)},r),r.scale&&r.scale.draw(),r.drawDatasets(n),r.tooltip.draw(),i.notify(r,"afterDraw",[n]))},transition:function(n){for(var i=this,t=0,r=(i.data.datasets||[]).length;t<r;++t)i.isDatasetVisible(t)&&i.getDatasetMeta(t).controller.transition(n);i.tooltip.transition(n)},drawDatasets:function(n){var t=this,r;if(i.notify(t,"beforeDatasetsDraw",[n])!==!1){for(r=(t.data.datasets||[]).length-1;r>=0;--r)t.isDatasetVisible(r)&&t.drawDataset(r,n);i.notify(t,"afterDatasetsDraw",[n])}},drawDataset:function(n,t){var r=this,u=r.getDatasetMeta(n),f={meta:u,index:n,easingValue:t};i.notify(r,"beforeDatasetDraw",[f])!==!1&&(u.controller.draw(t),i.notify(r,"afterDatasetDraw",[f]))},getElementAtEvent:function(t){return n.Interaction.modes.single(this,t)},getElementsAtEvent:function(t){return n.Interaction.modes.label(this,t,{intersect:!0})},getElementsAtXAxis:function(t){return n.Interaction.modes["x-axis"](this,t,{intersect:!0})},getElementsAtEventForMode:function(t,i,r){var u=n.Interaction.modes[i];return typeof u=="function"?u(this,t,r):[]},getDatasetAtEvent:function(t){return n.Interaction.modes.dataset(this,t,{intersect:!0})},getDatasetMeta:function(n){var r=this,t=r.data.datasets[n],i;return t._meta||(t._meta={}),i=t._meta[r.id],i||(i=t._meta[r.id]={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null}),i},getVisibleDatasetCount:function(){for(var t=0,n=0,i=this.data.datasets.length;n<i;++n)this.isDatasetVisible(n)&&t++;return t},isDatasetVisible:function(n){var t=this.getDatasetMeta(n);return typeof t.hidden=="boolean"?!t.hidden:!this.data.datasets[n].hidden},generateLegend:function(){return this.options.legendCallback(this)},destroy:function(){var u=this,s=u.canvas,f,e,o;for(u.stop(),e=0,o=u.data.datasets.length;e<o;++e)f=u.getDatasetMeta(e),f.controller&&(f.controller.destroy(),f.controller=null);s&&(u.unbindEvents(),t.clear(u),r.releaseContext(u.ctx),u.canvas=null,u.ctx=null),i.notify(u,"destroy"),delete n.instances[u.id]},toBase64Image:function(){return this.canvas.toDataURL.apply(this.canvas,arguments)},initToolTip:function(){var t=this;t.tooltip=new n.Tooltip({_chart:t,_chartInstance:t,_data:t.data,_options:t.options.tooltips},t),t.tooltip.initialize()},bindEvents:function(){var n=this,u=n._listeners={},i=function(){n.eventHandler.apply(n,arguments)};t.each(n.options.events,function(t){r.addEventListener(n,t,i),u[t]=i}),n.options.responsive&&(i=function(){n.resize()},r.addEventListener(n,"resize",i),u.resize=i)},unbindEvents:function(){var n=this,i=n._listeners;i&&(delete n._listeners,t.each(i,function(t,i){r.removeEventListener(n,i,t)}))},updateHoverStyle:function(n,t,i){for(var e=i?"setHoverStyle":"removeHoverStyle",r,u=0,f=n.length;u<f;++u)r=n[u],r&&this.getDatasetMeta(r._datasetIndex).controller[e](r)},eventHandler:function(n){var t=this,f=t.tooltip,u,r;if(i.notify(t,"beforeEvent",[n])!==!1)return t._bufferedRender=!0,t._bufferedRequest=null,u=t.handleEvent(n),u|=f&&f.handleEvent(n),i.notify(t,"afterEvent",[n]),r=t._bufferedRequest,r?t.render(r.duration,r.lazy):u&&!t.animating&&(t.stop(),t.render(t.options.hover.animationDuration,!0)),t._bufferedRender=!1,t._bufferedRequest=null,t},handleEvent:function(n){var i=this,u=i.options||{},r=u.hover,f=!1;return i.lastActive=i.lastActive||[],i.active=n.type==="mouseout"?[]:i.getElementsAtEventForMode(n,r.mode,r),r.onHover&&r.onHover.call(i,n.native,i.active),(n.type==="mouseup"||n.type==="click")&&u.onClick&&u.onClick.call(i,n.native,i.active),i.lastActive.length&&i.updateHoverStyle(i.lastActive,r.mode,!1),i.active.length&&r.mode&&i.updateHoverStyle(i.active,r.mode,!0),f=!t.arrayEquals(i.active,i.lastActive),i.lastActive=i.active,f}}),n.Controller=n}},{}],24:[function(n,t){"use strict";t.exports=function(n){function u(n,r){if(n._chartjs){n._chartjs.listeners.push(r);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),i.forEach(function(i){var r="onData"+i.charAt(0).toUpperCase()+i.slice(1),u=n[i];Object.defineProperty(n,i,{configurable:!0,enumerable:!1,value:function(){var i=Array.prototype.slice.call(arguments),f=u.apply(this,i);return t.each(n._chartjs.listeners,function(n){typeof n[r]=="function"&&n[r].apply(n,i)}),f}})})}function r(n,t){var f=n._chartjs,r,u;f&&((r=f.listeners,u=r.indexOf(t),u!==-1&&r.splice(u,1),r.length>0)||(i.forEach(function(t){delete n[t]}),delete n._chartjs))}var t=n.helpers,i=["push","pop","shift","splice","unshift"];n.DatasetController=function(n,t){this.initialize(n,t)},t.extend(n.DatasetController.prototype,{datasetElementType:null,dataElementType:null,initialize:function(n,t){var i=this;i.chart=n,i.index=t,i.linkScales(),i.addElements()},updateIndex:function(n){this.index=n},linkScales:function(){var n=this,t=n.getMeta(),i=n.getDataset();t.xAxisID===null&&(t.xAxisID=i.xAxisID||n.chart.options.scales.xAxes[0].id),t.yAxisID===null&&(t.yAxisID=i.yAxisID||n.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(n){return this.chart.scales[n]},reset:function(){this.update(!0)},destroy:function(){this._data&&r(this._data,this)},createMetaDataset:function(){var n=this,t=n.datasetElementType;return t&&new t({_chart:n.chart,_datasetIndex:n.index})},createMetaData:function(n){var t=this,i=t.dataElementType;return i&&new i({_chart:t.chart,_datasetIndex:t.index,_index:n})},addElements:function(){for(var t=this,i=t.getMeta(),f=t.getDataset().data||[],r=i.data,n=0,u=f.length;n<u;++n)r[n]=r[n]||t.createMetaData(n);i.dataset=i.dataset||t.createMetaDataset()},addElementAndReset:function(n){var t=this.createMetaData(n);this.getMeta().data.splice(n,0,t),this.updateElement(t,n,!0)},buildOrUpdateElements:function(){var n=this,i=n.getDataset(),t=i.data||(i.data=[]);n._data!==t&&(n._data&&r(n._data,n),u(t,n),n._data=t),n.resyncElements()},update:t.noop,transition:function(n){for(var t=this.getMeta(),r=t.data||[],u=r.length,i=0;i<u;++i)r[i].transition(n);t.dataset&&t.dataset.transition(n)},draw:function(){var n=this.getMeta(),i=n.data||[],r=i.length,t=0;for(n.dataset&&n.dataset.draw();t<r;++t)i[t].draw()},removeHoverStyle:function(n,i){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,r=n.custom||{},e=t.getValueAtIndexOrDefault,o=n._model;o.backgroundColor=r.backgroundColor?r.backgroundColor:e(u.backgroundColor,f,i.backgroundColor),o.borderColor=r.borderColor?r.borderColor:e(u.borderColor,f,i.borderColor),o.borderWidth=r.borderWidth?r.borderWidth:e(u.borderWidth,f,i.borderWidth)},setHoverStyle:function(n){var u=this.chart.data.datasets[n._datasetIndex],f=n._index,i=n.custom||{},e=t.getValueAtIndexOrDefault,o=t.getHoverColor,r=n._model;r.backgroundColor=i.hoverBackgroundColor?i.hoverBackgroundColor:e(u.hoverBackgroundColor,f,o(r.backgroundColor)),r.borderColor=i.hoverBorderColor?i.hoverBorderColor:e(u.hoverBorderColor,f,o(r.borderColor)),r.borderWidth=i.hoverBorderWidth?i.hoverBorderWidth:e(u.hoverBorderWidth,f,r.borderWidth)},resyncElements:function(){var i=this,r=i.getMeta(),u=i.getDataset().data,n=r.data.length,t=u.length;t<n?r.data.splice(t,n-t):t>n&&i.insertElements(n,t-n)},insertElements:function(n,t){for(var i=0;i<t;++i)this.addElementAndReset(n+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(n,t){this.getMeta().data.splice(n,t),this.insertElements(n,arguments.length-2)},onDataUnshift:function(){this.insertElements(0,arguments.length)}}),n.DatasetController.extend=t.inherits}},{}],25:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function r(n,t,r,u){for(var v=Object.keys(r),f,c,o,e,h,l,a,s=0,y=v.length;s<y;++s)if(f=v[s],e=r[f],t.hasOwnProperty(f)||(t[f]=e),c=t[f],c!==e&&f[0]!=="_"){if(n.hasOwnProperty(f)||(n[f]=c),o=n[f],h=typeof e,h===typeof o)if(h==="string"){if(l=i(o),l.valid&&(a=i(e),a.valid)){t[f]=a.mix(l,u).rgbString();continue}}else if(h==="number"&&isFinite(o)&&isFinite(e)){t[f]=o+(e-o)*u;continue}t[f]=e}}var t=n.helpers;n.elements={},n.Element=function(n){t.extend(this,n),this.initialize.apply(this,arguments)},t.extend(n.Element.prototype,{initialize:function(){this.hidden=!1},pivot:function(){var n=this;return n._view||(n._view=t.clone(n._model)),n._start={},n},transition:function(n){var t=this,i=t._model,u=t._start,f=t._view;return!i||n===1?(t._view=i,t._start=null,t):(f||(f=t._view={}),u||(u=t._start={}),r(u,f,i,n),t)},tooltipPosition:function(){return{x:this._model.x,y:this._model.y}},hasValue:function(){return t.isNumber(this._model.x)&&t.isNumber(this._model.y)}}),n.Element.extend=t.inherits}},{"3":3}],26:[function(n,t){"use strict";var i=n(3);t.exports=function(n){function u(n,t,i){var r;return typeof n=="string"?(r=parseInt(n,10),n.indexOf("%")!==-1&&(r=r/100*t.parentNode[i])):r=n,r}function f(n){return n!==undefined&&n!==null&&n!=="none"}function e(n,t,i){var r=document.defaultView,e=n.parentNode,o=r.getComputedStyle(n)[t],s=r.getComputedStyle(e)[t],h=f(o),c=f(s),l=Number.POSITIVE_INFINITY;return h||c?Math.min(h?u(o,n,i):l,c?u(s,e,i):l):"none"}var t=n.helpers={},r;t.each=function(n,i,r,u){var f,e,o;if(t.isArray(n))if(e=n.length,u)for(f=e-1;f>=0;f--)i.call(r,n[f],f);else for(f=0;f<e;f++)i.call(r,n[f],f);else if(typeof n=="object")for(o=Object.keys(n),e=o.length,f=0;f<e;f++)i.call(r,n[o[f]],o[f])},t.clone=function(n){var i={};return t.each(n,function(n,r){i[r]=t.isArray(n)?n.slice(0):typeof n=="object"&&n!==null?t.clone(n):n}),i},t.extend=function(n){for(var u=function(t,i){n[i]=t},i=1,r=arguments.length;i<r;i++)t.each(arguments[i],u);return n},t.configMerge=function(i){var r=t.clone(i);return t.each(Array.prototype.slice.call(arguments,1),function(i){t.each(i,function(i,u){var e=r.hasOwnProperty(u),f=e?r[u]:{};r[u]=u==="scales"?t.scaleMerge(f,i):u==="scale"?t.configMerge(f,n.scaleService.getScaleDefaults(i.type),i):!e||typeof f!="object"||t.isArray(f)||f===null||typeof i!="object"||t.isArray(i)?i:t.configMerge(f,i)})}),r},t.scaleMerge=function(i,r){var u=t.clone(i);return t.each(r,function(i,r){r==="xAxes"||r==="yAxes"?u.hasOwnProperty(r)?t.each(i,function(i,f){var o=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear"),e=n.scaleService.getScaleDefaults(o);f>=u[r].length||!u[r][f].type?u[r].push(t.configMerge(e,i)):u[r][f]=i.type&&i.type!==u[r][f].type?t.configMerge(u[r][f],e,i):t.configMerge(u[r][f],i)}):(u[r]=[],t.each(i,function(i){var f=t.getValueOrDefault(i.type,r==="xAxes"?"category":"linear");u[r].push(t.configMerge(n.scaleService.getScaleDefaults(f),i))})):u[r]=u.hasOwnProperty(r)&&typeof u[r]=="object"&&u[r]!==null&&typeof i=="object"?t.configMerge(u[r],i):i}),u},t.getValueAtIndexOrDefault=function(n,i,r){return n===undefined||n===null?r:t.isArray(n)?i<n.length?n[i]:r:n},t.getValueOrDefault=function(n,t){return n===undefined?t:n},t.indexOf=Array.prototype.indexOf?function(n,t){return n.indexOf(t)}:function(n,t){for(var i=0,r=n.length;i<r;++i)if(n[i]===t)return i;return-1},t.where=function(n,i){if(t.isArray(n)&&Array.prototype.filter)return n.filter(i);var r=[];return t.each(n,function(n){i(n)&&r.push(n)}),r},t.findIndex=Array.prototype.findIndex?function(n,t,i){return n.findIndex(t,i)}:function(n,t,i){i=i===undefined?n:i;for(var r=0,u=n.length;r<u;++r)if(t.call(i,n[r],r,n))return r;return-1},t.findNextWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=-1),r=i+1;r<n.length;r++)if(u=n[r],t(u))return u},t.findPreviousWhere=function(n,t,i){var r,u;for((i===undefined||i===null)&&(i=n.length),r=i-1;r>=0;r--)if(u=n[r],t(u))return u},t.inherits=function(n){var r=this,i=n&&n.hasOwnProperty("constructor")?n.constructor:function(){return r.apply(this,arguments)},u=function(){this.constructor=i};return u.prototype=r.prototype,i.prototype=new u,i.extend=t.inherits,n&&t.extend(i.prototype,n),i.__super__=r.prototype,i},t.noop=function(){},t.uid=function(){var n=0;return function(){return n++}}(),t.isNumber=function(n){return!isNaN(parseFloat(n))&&isFinite(n)},t.almostEquals=function(n,t,i){return Math.abs(n-t)<i},t.almostWhole=function(n,t){var i=Math.round(n);return i-t<n&&i+t>n},t.max=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.max(n,t)},Number.NEGATIVE_INFINITY)},t.min=function(n){return n.reduce(function(n,t){return isNaN(t)?n:Math.min(n,t)},Number.POSITIVE_INFINITY)},t.sign=Math.sign?function(n){return Math.sign(n)}:function(n){return(n=+n,n===0||isNaN(n))?n:n>0?1:-1},t.log10=Math.log10?function(n){return Math.log10(n)}:function(n){return Math.log(n)/Math.LN10},t.toRadians=function(n){return n*(Math.PI/180)},t.toDegrees=function(n){return n*(180/Math.PI)},t.getAngleFromPoint=function(n,t){var i=t.x-n.x,r=t.y-n.y,f=Math.sqrt(i*i+r*r),u=Math.atan2(r,i);return u<-.5*Math.PI&&(u+=2*Math.PI),{angle:u,distance:f}},t.distanceBetweenPoints=function(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))},t.aliasPixel=function(n){return n%2==0?0:.5},t.splineCurve=function(n,t,i,r){var f=n.skip?t:n,u=t,e=i.skip?t:i,h=Math.sqrt(Math.pow(u.x-f.x,2)+Math.pow(u.y-f.y,2)),c=Math.sqrt(Math.pow(e.x-u.x,2)+Math.pow(e.y-u.y,2)),o=h/(h+c),s=c/(h+c),l,a;return o=isNaN(o)?0:o,s=isNaN(s)?0:s,l=r*o,a=r*s,{previous:{x:u.x-l*(e.x-f.x),y:u.y-l*(e.y-f.y)},next:{x:u.x+a*(e.x-f.x),y:u.y+a*(e.y-f.y)}}},t.EPSILON=Number.EPSILON||1e-14,t.splineCurveMonotone=function(n){for(var e=(n||[]).map(function(n){return{model:n._model,deltaK:0,mK:0}}),s=e.length,f,i,u,h,c,l,a,v,o,r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,u&&!u.model.skip&&(h=u.model.x-i.model.x,i.deltaK=h!==0?(u.model.y-i.model.y)/h:0),i.mK=!f||f.model.skip?i.deltaK:!u||u.model.skip?f.deltaK:this.sign(f.deltaK)!==this.sign(i.deltaK)?0:(f.deltaK+i.deltaK)/2);for(r=0;r<s-1;++r)if(i=e[r],u=e[r+1],!i.model.skip&&!u.model.skip){if(t.almostEquals(i.deltaK,0,this.EPSILON)){i.mK=u.mK=0;continue}(c=i.mK/i.deltaK,l=u.mK/i.deltaK,v=Math.pow(c,2)+Math.pow(l,2),v<=9)||(a=3/Math.sqrt(v),i.mK=c*a*i.deltaK,u.mK=l*a*i.deltaK)}for(r=0;r<s;++r)(i=e[r],i.model.skip)||(f=r>0?e[r-1]:null,u=r<s-1?e[r+1]:null,f&&!f.model.skip&&(o=(i.model.x-f.model.x)/3,i.model.controlPointPreviousX=i.model.x-o,i.model.controlPointPreviousY=i.model.y-o*i.mK),u&&!u.model.skip&&(o=(u.model.x-i.model.x)/3,i.model.controlPointNextX=i.model.x+o,i.model.controlPointNextY=i.model.y+o*i.mK))},t.nextItem=function(n,t,i){return i?t>=n.length-1?n[0]:n[t+1]:t>=n.length-1?n[n.length-1]:n[t+1]},t.previousItem=function(n,t,i){return i?t<=0?n[n.length-1]:n[t-1]:t<=0?n[0]:n[t-1]},t.niceNum=function(n,i){var u=Math.floor(t.log10(n)),r=n/Math.pow(10,u),f;return f=i?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,f*Math.pow(10,u)},r=t.easingEffects={linear:function(n){return n},easeInQuad:function(n){return n*n},easeOutQuad:function(n){return-1*n*(n-2)},easeInOutQuad:function(n){return(n/=1/2)<1?1/2*n*n:-1/2*(--n*(n-2)-1)},easeInCubic:function(n){return n*n*n},easeOutCubic:function(n){return 1*((n=n/1-1)*n*n+1)},easeInOutCubic:function(n){return(n/=1/2)<1?1/2*n*n*n:1/2*((n-=2)*n*n+2)},easeInQuart:function(n){return n*n*n*n},easeOutQuart:function(n){return-1*((n=n/1-1)*n*n*n-1)},easeInOutQuart:function(n){return(n/=1/2)<1?1/2*n*n*n*n:-1/2*((n-=2)*n*n*n-2)},easeInQuint:function(n){return 1*(n/=1)*n*n*n*n},easeOutQuint:function(n){return 1*((n=n/1-1)*n*n*n*n+1)},easeInOutQuint:function(n){return(n/=1/2)<1?1/2*n*n*n*n*n:1/2*((n-=2)*n*n*n*n+2)},easeInSine:function(n){return-1*Math.cos(n/1*(Math.PI/2))+1},easeOutSine:function(n){return 1*Math.sin(n/1*(Math.PI/2))},easeInOutSine:function(n){return-1/2*(Math.cos(Math.PI*n/1)-1)},easeInExpo:function(n){return n===0?1:1*Math.pow(2,10*(n/1-1))},easeOutExpo:function(n){return n===1?1:1*(-Math.pow(2,-10*n)+1)},easeInOutExpo:function(n){return n===0?0:n===1?1:(n/=1/2)<1?1/2*Math.pow(2,10*(n-1)):1/2*(-Math.pow(2,-10*--n)+2)},easeInCirc:function(n){return n>=1?n:-1*(Math.sqrt(1-(n/=1)*n)-1)},easeOutCirc:function(n){return 1*Math.sqrt(1-(n=n/1-1)*n)},easeInOutCirc:function(n){return(n/=1/2)<1?-1/2*(Math.sqrt(1-n*n)-1):1/2*(Math.sqrt(1-(n-=2)*n)+1)},easeInElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),-(i*Math.pow(2,10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t)))},easeOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1)==1?1:(t||(t=1*.3),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),i*Math.pow(2,-10*n)*Math.sin((n*1-r)*2*Math.PI/t)+1)},easeInOutElastic:function(n){var r=1.70158,t=0,i=1;return n===0?0:(n/=1/2)==2?1:(t||(t=1*.3*1.5),i<Math.abs(1)?(i=1,r=t/4):r=t/(2*Math.PI)*Math.asin(1/i),n<1)?-.5*i*Math.pow(2,10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t):i*Math.pow(2,-10*(n-=1))*Math.sin((n*1-r)*2*Math.PI/t)*.5+1},easeInBack:function(n){var t=1.70158;return 1*(n/=1)*n*((t+1)*n-t)},easeOutBack:function(n){var t=1.70158;return 1*((n=n/1-1)*n*((t+1)*n+t)+1)},easeInOutBack:function(n){var t=1.70158;return(n/=1/2)<1?1/2*n*n*(((t*=1.525)+1)*n-t):1/2*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:function(n){return 1-r.easeOutBounce(1-n)},easeOutBounce:function(n){return(n/=1)<1/2.75?1*7.5625*n*n:n<2/2.75?1*(7.5625*(n-=1.5/2.75)*n+.75):n<2.5/2.75?1*(7.5625*(n-=2.25/2.75)*n+.9375):1*(7.5625*(n-=2.625/2.75)*n+.984375)},easeInOutBounce:function(n){return n<1/2?r.easeInBounce(n*2)*.5:r.easeOutBounce(n*2-1)*.5+1*.5}},t.requestAnimFrame=function(){return typeof window=="undefined"?function(n){n()}:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(n){return window.setTimeout(n,1e3/60)}}(),t.getRelativePosition=function(n,i){var f,e,s=n.originalEvent||n,r=n.currentTarget||n.srcElement,u=r.getBoundingClientRect(),o=s.touches;o&&o.length>0?(f=o[0].clientX,e=o[0].clientY):(f=s.clientX,e=s.clientY);var h=parseFloat(t.getStyle(r,"padding-left")),c=parseFloat(t.getStyle(r,"padding-top")),l=parseFloat(t.getStyle(r,"padding-right")),a=parseFloat(t.getStyle(r,"padding-bottom")),v=u.right-u.left-h-l,y=u.bottom-u.top-c-a;return f=Math.round((f-u.left-h)/v*r.width/i.currentDevicePixelRatio),e=Math.round((e-u.top-c)/y*r.height/i.currentDevicePixelRatio),{x:f,y:e}},t.addEvent=function(n,t,i){n.addEventListener?n.addEventListener(t,i):n.attachEvent?n.attachEvent("on"+t,i):n["on"+t]=i},t.removeEvent=function(n,i,r){n.removeEventListener?n.removeEventListener(i,r,!1):n.detachEvent?n.detachEvent("on"+i,r):n["on"+i]=t.noop},t.getConstraintWidth=function(n){return e(n,"max-width","clientWidth")},t.getConstraintHeight=function(n){return e(n,"max-height","clientHeight")},t.getMaximumWidth=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-left"),10),e=parseInt(t.getStyle(i,"padding-right"),10),r=i.clientWidth-f-e,u=t.getConstraintWidth(n);return isNaN(u)?r:Math.min(r,u)},t.getMaximumHeight=function(n){var i=n.parentNode,f=parseInt(t.getStyle(i,"padding-top"),10),e=parseInt(t.getStyle(i,"padding-bottom"),10),r=i.clientHeight-f-e,u=t.getConstraintHeight(n);return isNaN(u)?r:Math.min(r,u)},t.getStyle=function(n,t){return n.currentStyle?n.currentStyle[t]:document.defaultView.getComputedStyle(n,null).getPropertyValue(t)},t.retinaScale=function(n){var t=n.currentDevicePixelRatio=window.devicePixelRatio||1;if(t!==1){var i=n.canvas,r=n.height,u=n.width;i.height=r*t,i.width=u*t,n.ctx.scale(t,t),i.style.height=r+"px",i.style.width=u+"px"}},t.clear=function(n){n.ctx.clearRect(0,0,n.width,n.height)},t.fontString=function(n,t,i){return t+" "+n+"px "+i},t.longestText=function(n,i,r,u){var o,f,e,s,h;if(u=u||{},o=u.data=u.data||{},f=u.garbageCollect=u.garbageCollect||[],u.font!==i&&(o=u.data={},f=u.garbageCollect=[],u.font=i),n.font=i,e=0,t.each(r,function(i){i!==undefined&&i!==null&&t.isArray(i)!==!0?e=t.measureText(n,o,f,e,i):t.isArray(i)&&t.each(i,function(i){i===undefined||i===null||t.isArray(i)||(e=t.measureText(n,o,f,e,i))})}),s=f.length/2,s>r.length){for(h=0;h<s;h++)delete o[f[h]];f.splice(0,s)}return e},t.measureText=function(n,t,i,r,u){var f=t[u];return f||(f=t[u]=n.measureText(u).width,i.push(u)),f>r&&(r=f),r},t.numberOfLabelLines=function(n){var i=1;return t.each(n,function(n){t.isArray(n)&&n.length>i&&(i=n.length)}),i},t.drawRoundedRectangle=function(n,t,i,r,u,f){n.beginPath(),n.moveTo(t+f,i),n.lineTo(t+r-f,i),n.quadraticCurveTo(t+r,i,t+r,i+f),n.lineTo(t+r,i+u-f),n.quadraticCurveTo(t+r,i+u,t+r-f,i+u),n.lineTo(t+f,i+u),n.quadraticCurveTo(t,i+u,t,i+u-f),n.lineTo(t,i+f),n.quadraticCurveTo(t,i,t+f,i),n.closePath()},t.color=i?function(t){return t instanceof CanvasGradient&&(t=n.defaults.global.defaultColor),i(t)}:function(n){return console.error("Color.js not found!"),n},t.isArray=Array.isArray?function(n){return Array.isArray(n)}:function(n){return Object.prototype.toString.call(n)==="[object Array]"},t.arrayEquals=function(n,i){var r,e,u,f;if(!n||!i||n.length!==i.length)return!1;for(r=0,e=n.length;r<e;++r)if(u=n[r],f=i[r],u instanceof Array&&f instanceof Array){if(!t.arrayEquals(u,f))return!1}else if(u!==f)return!1;return!0},t.callback=function(n,t,i){n&&typeof n.call=="function"&&n.apply(i,t)},t.getHoverColor=function(n){return n instanceof CanvasPattern?n:t.color(n).saturate(.5).darken(.1).rgbString()},t.callCallback=t.callback}},{"3":3}],27:[function(n,t){"use strict";t.exports=function(n){function t(n,t){return n.native?{x:n.x,y:n.y}:e.getRelativePosition(n,t)}function i(n,t){for(var s=n.data.datasets,u,r,o,f,i=0,e=s.length;i<e;++i)if(n.isDatasetVisible(i))for(u=n.getDatasetMeta(i),r=0,o=u.data.length;r<o;++r)f=u.data[r],f._view.skip||t(f)}function r(n,t){var r=[];return i(n,function(n){n.inRange(t.x,t.y)&&r.push(n)}),r}function u(n,t,r,u){var f=Number.POSITIVE_INFINITY,o=[];return u||(u=e.distanceBetweenPoints),i(n,function(n){if(!r||n.inRange(t.x,t.y)){var e=n.getCenterPoint(),i=u(t,e);i<f?(o=[n],f=i):i===f&&o.push(n)}}),o}function f(n,i,f){var e=t(i,n),h=function(n,t){return Math.abs(n.x-t.x)},o=f.intersect?r(n,e):u(n,e,!1,h),s=[];return o.length?(n.data.datasets.forEach(function(t,i){if(n.isDatasetVisible(i)){var u=n.getDatasetMeta(i),r=u.data[o[0]._index];r&&!r._view.skip&&s.push(r)}}),s):[]}var e=n.helpers;n.Interaction={modes:{single:function(n,r){var f=t(r,n),u=[];return i(n,function(n){if(n.inRange(f.x,f.y))return u.push(n),u}),u.slice(0,1)},label:f,index:f,dataset:function(n,i,f){var o=t(i,n),e=f.intersect?r(n,o):u(n,o,!1);return e.length>0&&(e=n.getDatasetMeta(e[0]._datasetIndex).data),e},"x-axis":function(n,t){return f(n,t,!0)},point:function(n,i){var u=t(i,n);return r(n,u)},nearest:function(n,i,r){var e=t(i,n),f=u(n,e,r.intersect);return f.length>1&&f.sort(function(n,t){var r=n.getArea(),u=t.getArea(),i=r-u;return i===0&&(i=n._datasetIndex-t._datasetIndex),i}),f.slice(0,1)},x:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inXRange(f.x)&&e.push(n),n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e},y:function(n,r,u){var f=t(r,n),e=[],o=!1;return i(n,function(n){n.inYRange(f.y)&&e.push(n),n.inRange(f.x,f.y)&&(o=!0)}),u.intersect&&!o&&(e=[]),e}}}}},{}],28:[function(n,t){"use strict";t.exports=function(){var n=function(n,t){return this.construct(n,t),this};return n.defaults={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:{},legendCallback:function(n){var t=[],i;for(t.push('<ul class="'+n.id+'-legend">'),i=0;i<n.data.datasets.length;i++)t.push('<li><span style="background-color:'+n.data.datasets[i].backgroundColor+'"><\/span>'),n.data.datasets[i].label&&t.push(n.data.datasets[i].label),t.push("<\/li>");return t.push("<\/ul>"),t.join("")}}},n.Chart=n,n}},{}],29:[function(n,t){"use strict";t.exports=function(n){function i(n,i){return t.where(n,function(n){return n.position===i})}function r(n,t){n.forEach(function(n,t){return n._tmpIndex_=t,n}),n.sort(function(n,i){var r=t?i:n,u=t?n:i;return r.weight===u.weight?r._tmpIndex_-u._tmpIndex_:r.weight-u.weight}),n.forEach(function(n){delete n._tmpIndex_})}var t=n.helpers;n.layoutService={defaults:{},addBox:function(n,t){n.boxes||(n.boxes=[]),t.fullWidth=t.fullWidth||!1,t.position=t.position||"top",t.weight=t.weight||0,n.boxes.push(t)},removeBox:function(n,t){var i=n.boxes?n.boxes.indexOf(t):-1;i!==-1&&n.boxes.splice(i,1)},configure:function(n,t,i){for(var f=["fullWidth","position","weight"],e=f.length,u=0,r;u<e;++u)r=f[u],i.hasOwnProperty(r)&&(t[r]=i[r])},update:function(n,u,f){function ni(n){var t,i=n.isHorizontal();i?(t=n.update(n.fullWidth?ut:v,gt),y-=t.height):(t=n.update(dt,pt),v-=t.width),st.push({horizontal:i,minSize:t,box:n})}function wt(n){var i=t.findNextWhere(st,function(t){return t.box===n}),r;i&&(n.isHorizontal()?(r={left:Math.max(e,ft),right:Math.max(w,et),top:0,bottom:0},n.update(n.fullWidth?ut:v,ot/2,r)):n.update(i.minSize.width,y))}function ti(n){var i=t.findNextWhere(st,function(t){return t.box===n}),r={left:0,right:0,top:o,bottom:b};i&&n.update(i.minSize.width,y,r)}function vt(n){n.isHorizontal()?(n.left=n.fullWidth?p:e,n.right=n.fullWidth?u-k:e+v,n.top=rt,n.bottom=rt+n.height,rt=n.bottom):(n.left=it,n.right=it+n.width,n.top=o,n.bottom=o+y,it=n.right)}var lt,at,nt,tt,it,rt;if(n){var yt=n.options.layout,c=yt?yt.padding:null,p=0,k=0,d=0,g=0;isNaN(c)?(p=c.left||0,k=c.right||0,d=c.top||0,g=c.bottom||0):(p=c,k=c,d=c,g=c);var s=i(n.boxes,"left"),h=i(n.boxes,"right"),l=i(n.boxes,"top"),a=i(n.boxes,"bottom"),bt=i(n.boxes,"chartArea");r(s,!0),r(h,!1),r(l,!0),r(a,!1);var ut=u-p-k,ot=f-d-g,kt=ut/2,pt=ot/2,dt=(u-kt)/(s.length+h.length),gt=(f-pt)/(l.length+a.length),v=ut,y=ot,st=[];t.each(s.concat(h,l,a),ni);var ft=0,et=0,ht=0,ct=0;t.each(l.concat(a),function(n){if(n.getPadding){var t=n.getPadding();ft=Math.max(ft,t.left),et=Math.max(et,t.right)}}),t.each(s.concat(h),function(n){if(n.getPadding){var t=n.getPadding();ht=Math.max(ht,t.top),ct=Math.max(ct,t.bottom)}});var e=p,w=k,o=d,b=g;t.each(s.concat(h),wt),t.each(s,function(n){e+=n.width}),t.each(h,function(n){w+=n.width}),t.each(l.concat(a),wt),t.each(l,function(n){o+=n.height}),t.each(a,function(n){b+=n.height}),t.each(s.concat(h),ti),e=p,w=k,o=d,b=g,t.each(s,function(n){e+=n.width}),t.each(h,function(n){w+=n.width}),t.each(l,function(n){o+=n.height}),t.each(a,function(n){b+=n.height}),lt=Math.max(ft-e,0),e+=lt,w+=Math.max(et-w,0),at=Math.max(ht-o,0),o+=at,b+=Math.max(ct-b,0),nt=f-o-b,tt=u-e-w,(tt!==v||nt!==y)&&(t.each(s,function(n){n.height=nt}),t.each(h,function(n){n.height=nt}),t.each(l,function(n){n.fullWidth||(n.width=tt)}),t.each(a,function(n){n.fullWidth||(n.width=tt)}),y=nt,v=tt),it=p+lt,rt=d+at,t.each(s.concat(l),vt),it+=v,rt+=y,t.each(h,vt),t.each(a,vt),n.chartArea={left:e,top:o,right:e+v,bottom:o+y},t.each(bt,function(t){t.left=n.chartArea.left,t.top=n.chartArea.top,t.right=n.chartArea.right,t.bottom=n.chartArea.bottom,t.update(v,y)})}}}}},{}],30:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.defaults.global.plugins={},n.plugins={_plugins:[],_cacheId:0,register:function(n){var t=this._plugins;[].concat(n).forEach(function(n){t.indexOf(n)===-1&&t.push(n)}),this._cacheId++},unregister:function(n){var t=this._plugins;[].concat(n).forEach(function(n){var i=t.indexOf(n);i!==-1&&t.splice(i,1)}),this._cacheId++},clear:function(){this._plugins=[],this._cacheId++},count:function(){return this._plugins.length},getAll:function(){return this._plugins},notify:function(n,t,i){for(var s=this.descriptors(n),h=s.length,u,f,e,o,r=0;r<h;++r)if(u=s[r],f=u.plugin,o=f[t],typeof o=="function"&&(e=[n].concat(i||[]),e.push(u.options),o.apply(f,e)===!1))return!1;return!0},descriptors:function(i){var r=i._plugins||(i._plugins={});if(r.id===this._cacheId)return r.descriptors;var e=[],u=[],f=i&&i.config||{},o=n.defaults.global.plugins,s=f.options&&f.options.plugins||{};return this._plugins.concat(f.plugins||[]).forEach(function(n){var f=e.indexOf(n),r,i;f===-1&&(r=n.id,i=s[r],i!==!1)&&(i===!0&&(i=t.clone(o[r])),e.push(n),u.push({plugin:n,options:i||{}}))}),r.descriptors=u,r.id=this._cacheId,u}},n.pluginService=n.plugins,n.PluginBase=n.Element.extend({})}},{}],31:[function(n,t){"use strict";t.exports=function(n){function r(n,i,r){return t.isArray(i)?t.longestText(n,r,i):n.measureText(i).width}function i(i){var r=t.getValueOrDefault,u=n.defaults.global,f=r(i.fontSize,u.defaultFontSize),e=r(i.fontStyle,u.defaultFontStyle),o=r(i.fontFamily,u.defaultFontFamily);return{size:f,style:e,family:o,font:t.fontString(f,e,o)}}var t=n.helpers;n.defaults.scale={display:!0,position:"left",gridLines:{display:!0,color:"rgba(0, 0, 0, 0.1)",lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickMarkLength:10,zeroLineWidth:1,zeroLineColor:"rgba(0,0,0,0.25)",zeroLineBorderDash:[],zeroLineBorderDashOffset:0,offsetGridLines:!1,borderDash:[],borderDashOffset:0},scaleLabel:{labelString:"",display:!1},ticks:{beginAtZero:!1,minRotation:0,maxRotation:50,mirror:!1,padding:0,reverse:!1,display:!0,autoSkip:!0,autoSkipPadding:0,labelOffset:0,callback:n.Ticks.formatters.values}},n.Scale=n.Element.extend({getPadding:function(){var n=this;return{left:n.paddingLeft||0,top:n.paddingTop||0,right:n.paddingRight||0,bottom:n.paddingBottom||0}},beforeUpdate:function(){t.callback(this.options.beforeUpdate,[this])},update:function(n,i,r){var u=this;return u.beforeUpdate(),u.maxWidth=n,u.maxHeight=i,u.margins=t.extend({left:0,right:0,top:0,bottom:0},r),u.longestTextCache=u.longestTextCache||{},u.beforeSetDimensions(),u.setDimensions(),u.afterSetDimensions(),u.beforeDataLimits(),u.determineDataLimits(),u.afterDataLimits(),u.beforeBuildTicks(),u.buildTicks(),u.afterBuildTicks(),u.beforeTickToLabelConversion(),u.convertTicksToLabels(),u.afterTickToLabelConversion(),u.beforeCalculateTickRotation(),u.calculateTickRotation(),u.afterCalculateTickRotation(),u.beforeFit(),u.fit(),u.afterFit(),u.afterUpdate(),u.minSize},afterUpdate:function(){t.callback(this.options.afterUpdate,[this])},beforeSetDimensions:function(){t.callback(this.options.beforeSetDimensions,[this])},setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height),n.paddingLeft=0,n.paddingTop=0,n.paddingRight=0,n.paddingBottom=0},afterSetDimensions:function(){t.callback(this.options.afterSetDimensions,[this])},beforeDataLimits:function(){t.callback(this.options.beforeDataLimits,[this])},determineDataLimits:t.noop,afterDataLimits:function(){t.callback(this.options.afterDataLimits,[this])},beforeBuildTicks:function(){t.callback(this.options.beforeBuildTicks,[this])},buildTicks:t.noop,afterBuildTicks:function(){t.callback(this.options.afterBuildTicks,[this])},beforeTickToLabelConversion:function(){t.callback(this.options.beforeTickToLabelConversion,[this])},convertTicksToLabels:function(){var n=this,t=n.options.ticks;n.ticks=n.ticks.map(t.userCallback||t.callback)},afterTickToLabelConversion:function(){t.callback(this.options.afterTickToLabelConversion,[this])},beforeCalculateTickRotation:function(){t.callback(this.options.beforeCalculateTickRotation,[this])},calculateTickRotation:function(){var n=this,o=n.ctx,u=n.options.ticks,s=i(u),r,e;if(o.font=s.font,r=u.minRotation||0,n.options.display&&n.isHorizontal())for(var f=t.longestText(o,s.font,n.ticks,n.longestTextCache),h=f,c,l,a=n.getPixelForTick(1)-n.getPixelForTick(0)-6;h>a&&r<u.maxRotation;){if(e=t.toRadians(r),c=Math.cos(e),l=Math.sin(e),l*f>n.maxHeight){r--;break}r++,h=c*f}n.labelRotation=r},afterCalculateTickRotation:function(){t.callback(this.options.afterCalculateTickRotation,[this])},beforeFit:function(){t.callback(this.options.beforeFit,[this])},fit:function(){var n=this,u=n.minSize={width:0,height:0},e=n.options,l=e.ticks,v=e.scaleLabel,y=e.gridLines,s=e.display,h=n.isHorizontal(),f=i(l),p=i(v).size*1.5,w=e.gridLines.tickMarkLength;if(u.width=h?n.isFullWidth()?n.maxWidth-n.margins.left-n.margins.right:n.maxWidth:s&&y.drawTicks?w:0,u.height=h?s&&y.drawTicks?w:0:n.maxHeight,v.display&&s&&(h?u.height+=p:u.width+=p),l.display&&s){var o=t.longestText(n.ctx,f.font,n.ticks,n.longestTextCache),b=t.numberOfLabelLines(n.ticks),a=f.size*.5;if(h){n.longestLabelWidth=o;var k=t.toRadians(n.labelRotation),c=Math.cos(k),nt=Math.sin(k),tt=nt*o+f.size*b+a*b;u.height=Math.min(n.maxHeight,u.height+tt),n.ctx.font=f.font;var it=n.ticks[0],d=r(n.ctx,it,f.font),rt=n.ticks[n.ticks.length-1],g=r(n.ctx,rt,f.font);n.labelRotation!==0?(n.paddingLeft=e.position==="bottom"?c*d+3:c*a+3,n.paddingRight=e.position==="bottom"?c*a+3:c*g+3):(n.paddingLeft=d/2+3,n.paddingRight=g/2+3)}else l.mirror?o=0:o+=n.options.ticks.padding,u.width=Math.min(n.maxWidth,u.width+o),n.paddingTop=f.size/2,n.paddingBottom=f.size/2}n.handleMargins(),n.width=u.width,n.height=u.height},handleMargins:function(){var n=this;n.margins&&(n.paddingLeft=Math.max(n.paddingLeft-n.margins.left,0),n.paddingTop=Math.max(n.paddingTop-n.margins.top,0),n.paddingRight=Math.max(n.paddingRight-n.margins.right,0),n.paddingBottom=Math.max(n.paddingBottom-n.margins.bottom,0))},afterFit:function(){t.callback(this.options.afterFit,[this])},isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},isFullWidth:function(){return this.options.fullWidth},getRightValue:function(n){return n===null||typeof n=="undefined"?NaN:typeof n=="number"&&!isFinite(n)?NaN:typeof n=="object"?n instanceof Date||n.isValid?n:this.getRightValue(this.isHorizontal()?n.x:n.y):n},getLabelForIndex:t.noop,getPixelForValue:t.noop,getValueForPixel:t.noop,getPixelForTick:function(n,t){var i=this,f,e;if(i.isHorizontal()){var o=i.width-(i.paddingLeft+i.paddingRight),r=o/Math.max(i.ticks.length-(i.options.gridLines.offsetGridLines?0:1),1),u=r*n+i.paddingLeft;return t&&(u+=r/2),f=i.left+Math.round(u),f+(i.isFullWidth()?i.margins.left:0)}return e=i.height-(i.paddingTop+i.paddingBottom),i.top+n*(e/(i.ticks.length-1))},getPixelForDecimal:function(n){var t=this;if(t.isHorizontal()){var i=t.width-(t.paddingLeft+t.paddingRight),r=i*n+t.paddingLeft,u=t.left+Math.round(r);return u+(t.isFullWidth()?t.margins.left:0)}return t.top+n*t.height},getBasePixel:function(){return this.getPixelForValue(this.getBaseValue())},getBaseValue:function(){var n=this,t=n.min,i=n.max;return n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0},draw:function(r){var u=this,o=u.options,k,d,g,nt,tt;if(o.display){var f=u.ctx,a=n.defaults.global,h=o.ticks,e=o.gridLines,v=o.scaleLabel,y=u.labelRotation!==0,s,ht=h.autoSkip,p=u.isHorizontal(),w;h.maxTicksLimit&&(w=h.maxTicksLimit);var ct=t.getValueOrDefault(h.fontColor,a.defaultFontColor),et=i(h),c=e.drawTicks?e.tickMarkLength:0,lt=t.getValueOrDefault(v.fontColor,a.defaultFontColor),l=i(v),ot=t.toRadians(u.labelRotation),at=Math.cos(ot),st=u.longestLabelWidth*at;if(f.fillStyle=ct,k=[],p){if(s=!1,(st+h.autoSkipPadding)*u.ticks.length>u.width-(u.paddingLeft+u.paddingRight)&&(s=1+Math.floor((st+h.autoSkipPadding)*u.ticks.length/(u.width-(u.paddingLeft+u.paddingRight)))),w&&u.ticks.length>w)while(!s||u.ticks.length/(s||1)>w)s||(s=1),s+=1;ht||(s=!1)}var vt=o.position==="right"?u.left:u.right-c,yt=o.position==="right"?u.left+c:u.right,pt=o.position==="bottom"?u.top:u.bottom-c,wt=o.position==="bottom"?u.top+c:u.bottom;if(t.each(u.ticks,function(n,i){var kt,dt,l,g,nt,tt,it,rt,ut,ft,et,st,ht,ct,lt,v,f,w,gt,b,at,d,bt;n!==undefined&&n!==null&&(kt=u.ticks.length===i+1,dt=s>1&&i%s>0||i%s==0&&i+s>=u.ticks.length,(!dt||kt)&&n!==undefined&&n!==null)&&(i===(typeof u.zeroLineIndex!="undefined"?u.zeroLineIndex:0)?(l=e.zeroLineWidth,g=e.zeroLineColor,nt=e.zeroLineBorderDash,tt=e.zeroLineBorderDashOffset):(l=t.getValueAtIndexOrDefault(e.lineWidth,i),g=t.getValueAtIndexOrDefault(e.color,i),nt=t.getValueOrDefault(e.borderDash,a.borderDash),tt=t.getValueOrDefault(e.borderDashOffset,a.borderDashOffset)),f="middle",w="middle",p?(o.position==="bottom"?(w=y?"middle":"top",f=y?"right":"center",v=u.top+c):(w=y?"middle":"bottom",f=y?"left":"center",v=u.bottom-c),gt=u.getPixelForTick(i)+t.aliasPixel(l),lt=u.getPixelForTick(i,e.offsetGridLines)+h.labelOffset,it=ut=et=ht=gt,rt=pt,ft=wt,st=r.top,ct=r.bottom):(b=o.position==="left",at=h.padding,h.mirror?(f=b?"left":"right",d=at):(f=b?"right":"left",d=c+at),lt=b?u.right-d:u.left+d,bt=u.getPixelForTick(i),bt+=t.aliasPixel(l),v=u.getPixelForTick(i,e.offsetGridLines),it=vt,ut=yt,et=r.left,ht=r.right,rt=ft=st=ct=bt),k.push({tx1:it,ty1:rt,tx2:ut,ty2:ft,x1:et,y1:st,x2:ht,y2:ct,labelX:lt,labelY:v,glWidth:l,glColor:g,glBorderDash:nt,glBorderDashOffset:tt,rotation:-1*ot,label:n,textBaseline:w,textAlign:f}))}),t.each(k,function(n){var i,r,u;if(e.display&&(f.save(),f.lineWidth=n.glWidth,f.strokeStyle=n.glColor,f.setLineDash&&(f.setLineDash(n.glBorderDash),f.lineDashOffset=n.glBorderDashOffset),f.beginPath(),e.drawTicks&&(f.moveTo(n.tx1,n.ty1),f.lineTo(n.tx2,n.ty2)),e.drawOnChartArea&&(f.moveTo(n.x1,n.y1),f.lineTo(n.x2,n.y2)),f.stroke(),f.restore()),h.display){if(f.save(),f.translate(n.labelX,n.labelY),f.rotate(n.rotation),f.font=et.font,f.textBaseline=n.textBaseline,f.textAlign=n.textAlign,i=n.label,t.isArray(i))for(r=0,u=0;r<i.length;++r)f.fillText(""+i[r],0,u),u+=et.size*1.5;else f.fillText(i,0,0);f.restore()}}),v.display&&(nt=0,p?(d=u.left+(u.right-u.left)/2,g=o.position==="bottom"?u.bottom-l.size/2:u.top+l.size/2):(tt=o.position==="left",d=tt?u.left+l.size/2:u.right-l.size/2,g=u.top+(u.bottom-u.top)/2,nt=tt?-.5*Math.PI:.5*Math.PI),f.save(),f.translate(d,g),f.rotate(nt),f.textAlign="center",f.textBaseline="middle",f.fillStyle=lt,f.font=l.font,f.fillText(v.labelString,0,0),f.restore()),e.drawBorder){f.lineWidth=t.getValueAtIndexOrDefault(e.lineWidth,0),f.strokeStyle=t.getValueAtIndexOrDefault(e.color,0);var it=u.left,rt=u.right,ut=u.top,ft=u.bottom,b=t.aliasPixel(f.lineWidth);p?(ut=ft=o.position==="top"?u.bottom:u.top,ut+=b,ft+=b):(it=rt=o.position==="left"?u.right:u.left,it+=b,rt+=b),f.beginPath(),f.moveTo(it,ut),f.lineTo(rt,ft),f.stroke()}}}})}},{}],32:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.scaleService={constructors:{},defaults:{},registerScaleType:function(n,i,r){this.constructors[n]=i,this.defaults[n]=t.clone(r)},getScaleConstructor:function(n){return this.constructors.hasOwnProperty(n)?this.constructors[n]:undefined},getScaleDefaults:function(i){return this.defaults.hasOwnProperty(i)?t.scaleMerge(n.defaults.scale,this.defaults[i]):{}},updateScaleDefaults:function(n,i){var r=this.defaults;r.hasOwnProperty(n)&&(r[n]=t.extend(r[n],i))},addScalesToLayout:function(i){t.each(i.scales,function(t){t.fullWidth=t.options.fullWidth,t.position=t.options.position,t.weight=t.options.weight,n.layoutService.addBox(i,t)})}}}},{}],33:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers;n.Ticks={generators:{linear:function(n,i){var e=[],r,h,f,o,u,s;for(n.stepSize&&n.stepSize>0?r=n.stepSize:(h=t.niceNum(i.max-i.min,!1),r=t.niceNum(h/(n.maxTicks-1),!0)),f=Math.floor(i.min/r)*r,o=Math.ceil(i.max/r)*r,n.min&&n.max&&n.stepSize&&t.almostWhole((n.max-n.min)/n.stepSize,r/1e3)&&(f=n.min,o=n.max),u=(o-f)/r,u=t.almostEquals(u,Math.round(u),r/1e3)?Math.round(u):Math.ceil(u),e.push(n.min!==undefined?n.min:f),s=1;s<u;++s)e.push(f+s*r);return e.push(n.max!==undefined?n.max:o),e},logarithmic:function(n,i){var e=[],s=t.getValueOrDefault,u=s(n.min,Math.pow(10,Math.floor(t.log10(i.min)))),o=Math.floor(t.log10(i.max)),c=Math.ceil(i.max/Math.pow(10,o)),r,f,h;u===0?(r=Math.floor(t.log10(i.minNotZero)),f=Math.floor(i.minNotZero/Math.pow(10,r)),e.push(u),u=f*Math.pow(10,r)):(r=Math.floor(t.log10(u)),f=Math.floor(u/Math.pow(10,r)));do e.push(u),++f,f===10&&(f=1,++r),u=f*Math.pow(10,r);while(r<o||r===o&&f<c);return h=s(n.max,u),e.push(h),e}},formatters:{values:function(n){return t.isArray(n)?n:""+n},linear:function(n,i,r){var e=r.length>3?r[2]-r[1]:r[1]-r[0],o,u,f;return Math.abs(e)>1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),o=t.log10(Math.abs(e)),u="",n!==0?(f=-1*Math.floor(o),f=Math.max(Math.min(f,20),0),u=n.toFixed(f)):u="0",u},logarithmic:function(n,i,r){var u=n/Math.pow(10,Math.floor(t.log10(n)));return n===0?"0":u===1||u===2||u===5||i===0||i===r.length-1?n.toExponential():""}}}}},{}],34:[function(n,t){"use strict";t.exports=function(n){function r(n,i){var r=t.color(n);return r.alpha(i*r.alpha()).rgbaString()}function i(n,i){return i&&(t.isArray(i)?Array.prototype.push.apply(n,i):n.push(i)),n}function f(n){var r=n._xScale,u=n._yScale||n._scale,t=n._index,i=n._datasetIndex;return{xLabel:r?r.getLabelForIndex(t,i):"",yLabel:u?u.getLabelForIndex(t,i):"",index:t,datasetIndex:i,x:n._model.x,y:n._model.y}}function u(i){var r=n.defaults.global,u=t.getValueOrDefault;return{xPadding:i.xPadding,yPadding:i.yPadding,xAlign:i.xAlign,yAlign:i.yAlign,bodyFontColor:i.bodyFontColor,_bodyFontFamily:u(i.bodyFontFamily,r.defaultFontFamily),_bodyFontStyle:u(i.bodyFontStyle,r.defaultFontStyle),_bodyAlign:i.bodyAlign,bodyFontSize:u(i.bodyFontSize,r.defaultFontSize),bodySpacing:i.bodySpacing,titleFontColor:i.titleFontColor,_titleFontFamily:u(i.titleFontFamily,r.defaultFontFamily),_titleFontStyle:u(i.titleFontStyle,r.defaultFontStyle),titleFontSize:u(i.titleFontSize,r.defaultFontSize),_titleAlign:i.titleAlign,titleSpacing:i.titleSpacing,titleMarginBottom:i.titleMarginBottom,footerFontColor:i.footerFontColor,_footerFontFamily:u(i.footerFontFamily,r.defaultFontFamily),_footerFontStyle:u(i.footerFontStyle,r.defaultFontStyle),footerFontSize:u(i.footerFontSize,r.defaultFontSize),_footerAlign:i.footerAlign,footerSpacing:i.footerSpacing,footerMarginTop:i.footerMarginTop,caretSize:i.caretSize,cornerRadius:i.cornerRadius,backgroundColor:i.backgroundColor,opacity:0,legendColorBackground:i.multiKeyBackground,displayColors:i.displayColors,borderColor:i.borderColor,borderWidth:i.borderWidth}}function e(n,i){var f=n._chart.ctx,r=i.yPadding*2,e=0,a=i.body,o=a.reduce(function(n,t){return n+t.before.length+t.lines.length+t.after.length},0),c,u;o+=i.beforeBody.length+i.afterBody.length;var s=i.title.length,h=i.footer.length,v=i.titleFontSize,l=i.bodyFontSize,y=i.footerFontSize;return r+=s*v,r+=s?(s-1)*i.titleSpacing:0,r+=s?i.titleMarginBottom:0,r+=o*l,r+=o?(o-1)*i.bodySpacing:0,r+=h?i.footerMarginTop:0,r+=h*y,r+=h?(h-1)*i.footerSpacing:0,c=0,u=function(n){e=Math.max(e,f.measureText(n).width+c)},f.font=t.fontString(v,i._titleFontStyle,i._titleFontFamily),t.each(i.title,u),f.font=t.fontString(l,i._bodyFontStyle,i._bodyFontFamily),t.each(i.beforeBody.concat(i.afterBody),u),c=i.displayColors?l+2:0,t.each(a,function(n){t.each(n.before,u),t.each(n.lines,u),t.each(n.after,u)}),c=0,f.font=t.fontString(y,i._footerFontStyle,i._footerFontFamily),t.each(i.footer,u),e+=2*i.xPadding,{width:e,height:r}}function o(n,t){var i=n._model,o=n._chart,e=n._chart.chartArea,u="center",r="center",s,h,a,v,c,l,y,f;return i.y<t.height?r="top":i.y>o.height-t.height&&(r="bottom"),l=(e.left+e.right)/2,y=(e.top+e.bottom)/2,r==="center"?(s=function(n){return n<=l},h=function(n){return n>l}):(s=function(n){return n<=t.width/2},h=function(n){return n>=o.width-t.width/2}),a=function(n){return n+t.width>o.width},v=function(n){return n-t.width<0},c=function(n){return n<=y?"top":"bottom"},s(i.x)?(u="left",a(i.x)&&(u="center",r=c(i.y))):h(i.x)&&(u="right",v(i.x)&&(u="center",r=c(i.y))),f=n._options,{xAlign:f.xAlign?f.xAlign:u,yAlign:f.yAlign?f.yAlign:r}}function s(n,t,i){var r=n.x,e=n.y,c=n.caretSize,s=n.caretPadding,l=n.cornerRadius,u=i.xAlign,o=i.yAlign,f=c+s,h=l+s;return u==="right"?r-=t.width:u==="center"&&(r-=t.width/2),o==="top"?e+=f:e-=o==="bottom"?t.height+f:t.height/2,o==="center"?u==="left"?r+=f:u==="right"&&(r-=f):u==="left"?r-=h:u==="right"&&(r+=h),{x:r,y:e}}var t=n.helpers;n.defaults.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:t.noop,title:function(n,t){var r="",u=t.labels,f=u?u.length:0,i;return n.length>0&&(i=n[0],i.xLabel?r=i.xLabel:f>0&&i.index<f&&(r=u[i.index])),r},afterTitle:t.noop,beforeBody:t.noop,beforeLabel:t.noop,label:function(n,t){var i=t.datasets[n.datasetIndex].label||"";return i&&(i+=": "),i+n.yLabel},labelColor:function(n,t){var r=t.getDatasetMeta(n.datasetIndex),u=r.data[n.index],i=u._view;return{borderColor:i.borderColor,backgroundColor:i.backgroundColor}},afterLabel:t.noop,afterBody:t.noop,beforeFooter:t.noop,footer:t.noop,afterFooter:t.noop}},n.Tooltip=n.Element.extend({initialize:function(){this._model=u(this._options)},getTitle:function(){var t=this,u=t._options,r=u.callbacks,f=r.beforeTitle.apply(t,arguments),e=r.title.apply(t,arguments),o=r.afterTitle.apply(t,arguments),n=[];return n=i(n,f),n=i(n,e),i(n,o)},getBeforeBody:function(){var n=this._options.callbacks.beforeBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getBody:function(n,r){var u=this,f=u._options.callbacks,e=[];return t.each(n,function(n){var t={before:[],lines:[],after:[]};i(t.before,f.beforeLabel.call(u,n,r)),i(t.lines,f.label.call(u,n,r)),i(t.after,f.afterLabel.call(u,n,r)),e.push(t)}),e},getAfterBody:function(){var n=this._options.callbacks.afterBody.apply(this,arguments);return t.isArray(n)?n:n!==undefined?[n]:[]},getFooter:function(){var t=this,r=t._options.callbacks,u=r.beforeFooter.apply(t,arguments),f=r.footer.apply(t,arguments),e=r.afterFooter.apply(t,arguments),n=[];return n=i(n,u),n=i(n,f),i(n,e)},update:function(i){var h=this,l=h._options,a=h._model,r=h._model=u(l),w=h._active,v=h._data,b={xAlign:a.xAlign,yAlign:a.yAlign},d={x:a.x,y:a.y},y={width:a.width,height:a.height},p={x:a.caretX,y:a.caretY},k,nt,g,c;if(w.length){for(r.opacity=1,g=[],p=n.Tooltip.positioners[l.position](w,h._eventPosition),c=[],k=0,nt=w.length;k<nt;++k)c.push(f(w[k]));l.filter&&(c=c.filter(function(n){return l.filter(n,v)})),l.itemSort&&(c=c.sort(function(n,t){return l.itemSort(n,t,v)})),t.each(c,function(n){g.push(l.callbacks.labelColor.call(h,n,h._chart))}),r.title=h.getTitle(c,v),r.beforeBody=h.getBeforeBody(c,v),r.body=h.getBody(c,v),r.afterBody=h.getAfterBody(c,v),r.footer=h.getFooter(c,v),r.x=Math.round(p.x),r.y=Math.round(p.y),r.caretPadding=l.caretPadding,r.labelColors=g,r.dataPoints=c,y=e(this,r),b=o(this,y),d=s(r,y,b)}else r.opacity=0;return r.xAlign=b.xAlign,r.yAlign=b.yAlign,r.x=d.x,r.y=d.y,r.width=y.width,r.height=y.height,r.caretX=p.x,r.caretY=p.y,h._model=r,i&&l.custom&&l.custom.call(h,r),h},drawCaret:function(n,t){var r=this._chart.ctx,u=this._view,i=this.getCaretPosition(n,t,u);r.lineTo(i.x1,i.y1),r.lineTo(i.x2,i.y2),r.lineTo(i.x3,i.y3)},getCaretPosition:function(n,t,i){var u,f,o,e,s,h,r=i.caretSize,y=i.cornerRadius,l=i.xAlign,p=i.yAlign,c=n.x,a=n.y,v=t.width,w=t.height,b;return p==="center"?(s=a+w/2,l==="left"?(u=c,f=u-r,o=u,e=s+r,h=s-r):(u=c+v,f=u+r,o=u,e=s-r,h=s+r)):(l==="left"?(f=c+y+r,u=f-r,o=f+r):l==="right"?(f=c+v-y-r,u=f-r,o=f+r):(f=c+v/2,u=f-r,o=f+r),p==="top"?(e=a,s=e-r,h=e):(e=a+w,s=e+r,h=e,b=o,o=u,u=b)),{x1:u,x2:f,x3:o,y1:e,y2:s,y3:h}},drawTitle:function(n,i,u,f){var o=i.title,s,h,e,c;if(o.length)for(u.textAlign=i._titleAlign,u.textBaseline="top",s=i.titleFontSize,h=i.titleSpacing,u.fillStyle=r(i.titleFontColor,f),u.font=t.fontString(s,i._titleFontStyle,i._titleFontFamily),e=0,c=o.length;e<c;++e)u.fillText(o[e],n.x,n.y),n.y+=s+h,e+1===o.length&&(n.y+=i.titleMarginBottom-h)},drawBody:function(n,i,u,f){var e=i.bodyFontSize,l=i.bodySpacing,a=i.body,h,s,o,c;u.textAlign=i._bodyAlign,u.textBaseline="top",h=r(i.bodyFontColor,f),u.fillStyle=h,u.font=t.fontString(e,i._bodyFontStyle,i._bodyFontFamily),s=0,o=function(t){u.fillText(t,n.x+s,n.y),n.y+=e+l},t.each(i.beforeBody,o),c=i.displayColors,s=c?e+2:0,t.each(a,function(s,l){t.each(s.before,o),t.each(s.lines,function(t){c&&(u.fillStyle=r(i.legendColorBackground,f),u.fillRect(n.x,n.y,e,e),u.strokeStyle=r(i.labelColors[l].borderColor,f),u.strokeRect(n.x,n.y,e,e),u.fillStyle=r(i.labelColors[l].backgroundColor,f),u.fillRect(n.x+1,n.y+1,e-2,e-2),u.fillStyle=h),o(t)}),t.each(s.after,o)}),s=0,t.each(i.afterBody,o),n.y-=l},drawFooter:function(n,i,u,f){var e=i.footer;e.length&&(n.y+=i.footerMarginTop,u.textAlign=i._footerAlign,u.textBaseline="top",u.fillStyle=r(i.footerFontColor,f),u.font=t.fontString(i.footerFontSize,i._footerFontStyle,i._footerFontFamily),t.each(e,function(t){u.fillText(t,n.x,n.y),n.y+=i.footerFontSize+i.footerSpacing}))},drawBackground:function(n,t,i,u,f){i.fillStyle=r(t.backgroundColor,f),i.strokeStyle=r(t.borderColor,f),i.lineWidth=t.borderWidth;var a=t.xAlign,l=t.yAlign,e=n.x,o=n.y,h=u.width,c=u.height,s=t.cornerRadius;i.beginPath(),i.moveTo(e+s,o),l==="top"&&this.drawCaret(n,u),i.lineTo(e+h-s,o),i.quadraticCurveTo(e+h,o,e+h,o+s),l==="center"&&a==="right"&&this.drawCaret(n,u),i.lineTo(e+h,o+c-s),i.quadraticCurveTo(e+h,o+c,e+h-s,o+c),l==="bottom"&&this.drawCaret(n,u),i.lineTo(e+s,o+c),i.quadraticCurveTo(e,o+c,e,o+c-s),l==="center"&&a==="left"&&this.drawCaret(n,u),i.lineTo(e,o+s),i.quadraticCurveTo(e,o,e+s,o),i.closePath(),i.fill(),t.borderWidth>0&&i.stroke()},draw:function(){var i=this._chart.ctx,n=this._view;if(n.opacity!==0){var u={width:n.width,height:n.height},t={x:n.x,y:n.y},r=Math.abs(n.opacity<.001)?0:n.opacity,f=n.title.length||n.beforeBody.length||n.body.length||n.afterBody.length||n.footer.length;this._options.enabled&&f&&(this.drawBackground(t,n,i,u,r),t.x+=n.xPadding,t.y+=n.yPadding,this.drawTitle(t,n,i,r),this.drawBody(t,n,i,r),this.drawFooter(t,n,i,r))}},handleEvent:function(n){var i=this,r=i._options,u=!1,f;return(i._lastActive=i._lastActive||[],i._active=n.type==="mouseout"?[]:i._chart.getElementsAtEventForMode(n,r.mode,r),u=!t.arrayEquals(i._active,i._lastActive),!u)?!1:(i._lastActive=i._active,(r.enabled||r.custom)&&(i._eventPosition={x:n.x,y:n.y},f=i._model,i.update(!0),i.pivot(),u|=f.x!==i._model.x||f.y!==i._model.y),u)}}),n.Tooltip.positioners={average:function(n){var i,u;if(!n.length)return!1;for(var e=0,o=0,r=0,t=0,f=n.length;t<f;++t)i=n[t],i&&i.hasValue()&&(u=i.tooltipPosition(),e+=u.x,o+=u.y,++r);return{x:Math.round(e/r),y:Math.round(o/r)}},nearest:function(n,i){for(var s=i.x,h=i.y,f,c=Number.POSITIVE_INFINITY,r,a,e,o,u=0,l=n.length;u<l;++u)r=n[u],r&&r.hasValue()&&(a=r.getCenterPoint(),e=t.distanceBetweenPoints(i,a),e<c&&(c=e,f=r));return f&&(o=f.tooltipPosition(),s=o.x,h=o.y),{x:s,y:h}}}}},{}],35:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;t.elements.arc={backgroundColor:t.defaultColor,borderColor:"#fff",borderWidth:2},n.elements.Arc=n.Element.extend({inLabelRange:function(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hoverRadius,2):!1},inRange:function(n,t){var r=this._view,h,c;if(r){for(var o=i.getAngleFromPoint(r,{x:n,y:t}),u=o.angle,s=o.distance,e=r.startAngle,f=r.endAngle;f<e;)f+=2*Math.PI;while(u>f)u-=2*Math.PI;while(u<e)u+=2*Math.PI;return h=u>=e&&u<=f,c=s>=r.innerRadius&&s<=r.outerRadius,h&&c}return!1},getCenterPoint:function(){var n=this._view,t=(n.startAngle+n.endAngle)/2,i=(n.innerRadius+n.outerRadius)/2;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},getArea:function(){var n=this._view;return Math.PI*((n.endAngle-n.startAngle)/(2*Math.PI))*(Math.pow(n.outerRadius,2)-Math.pow(n.innerRadius,2))},tooltipPosition:function(){var n=this._view,t=n.startAngle+(n.endAngle-n.startAngle)/2,i=(n.outerRadius-n.innerRadius)/2+n.innerRadius;return{x:n.x+Math.cos(t)*i,y:n.y+Math.sin(t)*i}},draw:function(){var t=this._chart.ctx,n=this._view,i=n.startAngle,r=n.endAngle;t.beginPath(),t.arc(n.x,n.y,n.outerRadius,i,r),t.arc(n.x,n.y,n.innerRadius,r,i,!0),t.closePath(),t.strokeStyle=n.borderColor,t.lineWidth=n.borderWidth,t.fillStyle=n.backgroundColor,t.fill(),t.lineJoin="bevel",n.borderWidth&&t.stroke()}})}},{}],36:[function(n,t){"use strict";t.exports=function(n){var i=n.helpers,t=n.defaults.global;n.defaults.global.elements.line={tension:.4,backgroundColor:t.defaultColor,borderWidth:3,borderColor:t.defaultColor,borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",capBezierPoints:!0,fill:!0},n.elements.Line=n.Element.extend({draw:function(){var h=this,u=h._view,n=h._chart.ctx,a=u.spanGaps,f=h._children.slice(),s=t.elements.line,e=-1,r,l,c,o;for(h._loop&&f.length&&f.push(f[0]),n.save(),n.lineCap=u.borderCapStyle||s.borderCapStyle,n.setLineDash&&n.setLineDash(u.borderDash||s.borderDash),n.lineDashOffset=u.borderDashOffset||s.borderDashOffset,n.lineJoin=u.borderJoinStyle||s.borderJoinStyle,n.lineWidth=u.borderWidth||s.borderWidth,n.strokeStyle=u.borderColor||t.defaultColor,n.beginPath(),e=-1,r=0;r<f.length;++r)l=f[r],c=i.previousItem(f,r),o=l._view,r===0?o.skip||(n.moveTo(o.x,o.y),e=r):(c=e===-1?c:f[e],o.skip||((e===r-1||a)&&e!==-1?i.canvas.lineTo(n,c._view,l._view):n.moveTo(o.x,o.y),e=r));n.stroke(),n.restore()}})}},{}],37:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=this._view;return t?Math.pow(n-t.x,2)<Math.pow(t.radius+t.hitRadius,2):!1}function f(n){var t=this._view;return t?Math.pow(n-t.y,2)<Math.pow(t.radius+t.hitRadius,2):!1}var u=n.helpers,i=n.defaults.global,t=i.defaultColor;i.elements.point={radius:3,pointStyle:"circle",backgroundColor:t,borderWidth:1,borderColor:t,hitRadius:1,hoverRadius:4,hoverBorderWidth:1},n.elements.Point=n.Element.extend({inRange:function(n,t){var i=this._view;return i?Math.pow(n-i.x,2)+Math.pow(t-i.y,2)<Math.pow(i.hitRadius+i.radius,2):!1},inLabelRange:r,inXRange:r,inYRange:f,getCenterPoint:function(){var n=this._view;return{x:n.x,y:n.y}},getArea:function(){return Math.PI*Math.pow(this._view.radius,2)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y,padding:n.radius+n.borderWidth}},draw:function(r){var e=this._view,f=this._model,o=this._chart.ctx,v=e.pointStyle,y=e.radius,c=e.x,l=e.y,a=n.helpers.color,h=1.01,s=0;e.skip||(o.strokeStyle=e.borderColor||t,o.lineWidth=u.getValueOrDefault(e.borderWidth,i.elements.point.borderWidth),o.fillStyle=e.backgroundColor||t,r!==undefined&&(f.x<r.left||r.right*h<f.x||f.y<r.top||r.bottom*h<f.y)&&(f.x<r.left?s=(c-f.x)/(r.left-f.x):r.right*h<f.x?s=(f.x-c)/(f.x-r.right):f.y<r.top?s=(l-f.y)/(r.top-f.y):r.bottom*h<f.y&&(s=(f.y-l)/(f.y-r.bottom)),s=Math.round(s*100)/100,o.strokeStyle=a(o.strokeStyle).alpha(s).rgbString(),o.fillStyle=a(o.fillStyle).alpha(s).rgbString()),n.canvasHelpers.drawPoint(o,v,y,c,l))}})}},{}],38:[function(n,t){"use strict";t.exports=function(n){function r(n){return n._view.width!==undefined}function t(n){var t=n._view,i,u,f,e,o,s;return r(n)?(o=t.width/2,i=t.x-o,u=t.x+o,f=Math.min(t.y,t.base),e=Math.max(t.y,t.base)):(s=t.height/2,i=Math.min(t.x,t.base),u=Math.max(t.x,t.base),f=t.y-s,e=t.y+s),{left:i,top:f,right:u,bottom:e}}var i=n.defaults.global;i.elements.rectangle={backgroundColor:i.defaultColor,borderWidth:0,borderColor:i.defaultColor,borderSkipped:"bottom"},n.elements.Rectangle=n.Element.extend({draw:function(){function d(n){return g[(y+n)%4]}var t=this._chart.ctx,n=this._view,i,r,u,f,h,c,e,o=n.borderWidth,v,s,a;if(n.horizontal?(i=n.base,r=n.x,u=n.y-n.height/2,f=n.y+n.height/2,h=r>i?1:-1,c=1,e=n.borderSkipped||"left"):(i=n.x-n.width/2,r=n.x+n.width/2,u=n.y,f=n.base,h=1,c=f>u?1:-1,e=n.borderSkipped||"bottom"),o){v=Math.min(Math.abs(i-r),Math.abs(u-f)),o=o>v?v:o;var l=o/2,p=i+(e!=="left"?l*h:0),w=r+(e!=="right"?-l*h:0),b=u+(e!=="top"?l*c:0),k=f+(e!=="bottom"?-l*c:0);p!==w&&(u=b,f=k),b!==k&&(i=p,r=w)}t.beginPath(),t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,t.lineWidth=o;var g=[[i,f],[i,u],[r,u],[r,f]],y=["bottom","left","top","right"].indexOf(e,0);for(y===-1&&(y=0),s=d(0),t.moveTo(s[0],s[1]),a=1;a<4;a++)s=d(a),t.lineTo(s[0],s[1]);t.fill(),o&&t.stroke()},height:function(){var n=this._view;return n.base-n.y},inRange:function(n,i){var u=!1,r;return this._view&&(r=t(this),u=n>=r.left&&n<=r.right&&i>=r.top&&i<=r.bottom),u},inLabelRange:function(n,i){var f=this,e,u;return f._view?(e=!1,u=t(f),r(f)?n>=u.left&&n<=u.right:i>=u.top&&i<=u.bottom):!1},inXRange:function(n){var i=t(this);return n>=i.left&&n<=i.right},inYRange:function(n){var i=t(this);return n>=i.top&&n<=i.bottom},getCenterPoint:function(){var n=this._view,t,i;return r(this)?(t=n.x,i=(n.y+n.base)/2):(t=(n.x+n.base)/2,i=n.y),{x:t,y:i}},getArea:function(){var n=this._view;return n.width*Math.abs(n.y-n.base)},tooltipPosition:function(){var n=this._view;return{x:n.x,y:n.y}}})}},{}],39:[function(n,t){"use strict";t.exports=function(n){function i(n,i){var r=t.getStyle(n,i),u=r&&r.match(/^(\d+)(\.\d+)?px$/);return u?Number(u[1]):undefined}function f(n,t){var r=n.style,f=n.getAttribute("height"),e=n.getAttribute("width"),u,o;return n._chartjs={initial:{height:f,width:e,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",(e===null||e==="")&&(u=i(n,"width"),u!==undefined&&(n.width=u)),(f===null||f==="")&&(n.style.height===""?n.height=n.width/(t.options.aspectRatio||2):(o=i(n,"height"),u!==undefined&&(n.height=o))),n}function r(n,t,i,r,u){return{type:n,chart:t,"native":u||null,x:i!==undefined?i:null,y:r!==undefined?r:null}}function e(n,i){var e=u[n.type]||n.type,f=t.getRelativePosition(n,i);return r(e,i,f.x,f.y,n)}function o(n){var i=document.createElement("iframe");return i.className="chartjs-hidden-iframe",i.style.cssText="display:block;overflow:hidden;border:0;margin:0;top:0;left:0;bottom:0;right:0;height:100%;width:100%;position:absolute;pointer-events:none;z-index:-1;",i.tabIndex=-1,t.addEvent(i,"load",function(){t.addEvent(i.contentWindow||i,"resize",n),n()}),i}function s(n,i,u){var f=n._chartjs={ticking:!1},e=function(){f.ticking||(f.ticking=!0,t.requestAnimFrame.call(window,function(){if(f.resizer)return f.ticking=!1,i(r("resize",u))}))};f.resizer=o(e),n.insertBefore(f.resizer,n.firstChild)}function h(n){if(n&&n._chartjs){var t=n._chartjs.resizer;t&&(t.parentNode.removeChild(t),n._chartjs.resizer=null),delete n._chartjs}}var t=n.helpers,u={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"};return{acquireContext:function(n,t){typeof n=="string"?n=document.getElementById(n):n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas);var i=n&&n.getContext&&n.getContext("2d");return i&&i.canvas===n?(f(n,t),i):null},releaseContext:function(n){var i=n.canvas,r;i._chartjs&&(r=i._chartjs.initial,["height","width"].forEach(function(n){var t=r[n];t===undefined||t===null?i.removeAttribute(n):i.setAttribute(n,t)}),t.each(r.style||{},function(n,t){i.style[t]=n}),i.width=i.width,delete i._chartjs)},addEventListener:function(n,i,r){var u=n.canvas;if(i==="resize"){s(u.parentNode,r,n);return}var f=r._chartjs||(r._chartjs={}),o=f.proxies||(f.proxies={}),h=o[n.id+"_"+i]=function(t){r(e(t,n))};t.addEvent(u,i,h)},removeEventListener:function(n,i,r){var u=n.canvas;if(i==="resize"){h(u.parentNode,r);return}var e=r._chartjs||{},o=e.proxies||{},f=o[n.id+"_"+i];f&&t.removeEvent(u,i,f)}}}},{}],40:[function(n,t){"use strict";var i=n(39);t.exports=function(n){n.platform={acquireContext:function(){},releaseContext:function(){},addEventListener:function(){},removeEventListener:function(){}},n.helpers.extend(n.platform,i(n))}},{"39":39}],41:[function(n,t){"use strict";t.exports=function(n){function e(n,t,i){var f=n._model||{},r=f.fill,u;if(r===undefined&&(r=!!f.backgroundColor),r===!1||r===null)return!1;if(r===!0)return"origin";if(u=parseFloat(r,10),isFinite(u)&&Math.floor(u)===u)return((r[0]==="-"||r[0]==="+")&&(u=t+u),u===t||u<0||u>=i)?!1:u;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 o(n){var r=n.el._model||{},i=n.el._scale||{},u=n.fill,t=null,f;if(isFinite(u))return null;if(u==="start"?t=r.scaleBottom===undefined?i.bottom:r.scaleBottom:u==="end"?t=r.scaleTop===undefined?i.top:r.scaleTop:r.scaleZero!==undefined?t=r.scaleZero:i.getBasePosition?t=i.getBasePosition():i.getBasePixel&&(t=i.getBasePixel()),t!==undefined&&t!==null){if(t.x!==undefined&&t.y!==undefined)return t;if(typeof t=="number"&&isFinite(t))return f=i.isHorizontal(),{x:f?t:null,y:f?null:t}}return null}function s(n,t,i){var e=n[t],r=e.fill,f=[t],u;if(!i)return r;while(r!==!1&&f.indexOf(r)===-1){if(!isFinite(r))return r;if(u=n[r],!u)return!1;if(u.visible)return r;f.push(r),r=u.fill}return!1}function h(n){var t=n.fill,i="dataset";return t===!1?null:(isFinite(t)||(i="boundary"),f[i](n))}function i(n){return n&&!n.skip}function r(n,i,r,u,f){var e;if(u&&f){for(n.moveTo(i[0].x,i[0].y),e=1;e<u;++e)t.canvas.lineTo(n,i[e-1],i[e]);for(n.lineTo(r[f-1].x,r[f-1].y),e=f-1;e>0;--e)t.canvas.lineTo(n,r[e],r[e-1],!0)}}function c(n,t,u,f,e,o){var k=t.length,g=f.spanGaps,s=[],h=[],c=0,l=0,v,d,p,a,y,w,b;for(n.beginPath(),v=0,d=k+!!o;v<d;++v)p=v%k,a=t[p]._view,y=u(a,p,f),w=i(a),b=i(y),w&&b?(c=s.push(a),l=h.push(y)):c&&l&&(g?(w&&s.push(a),b&&h.push(y)):(r(n,s,h,c,l),c=l=0,s=[],h=[]));r(n,s,h,c,l),n.closePath(),n.fillStyle=e,n.fill()}n.defaults.global.plugins.filler={propagate:!0};var u=n.defaults,t=n.helpers,f={dataset:function(n){var t=n.fill,i=n.chart,r=i.getDatasetMeta(t),f=r&&i.isDatasetVisible(t),u=f&&r.dataset._children||[];return u.length?function(n,t){return u[t]._view||null}:null},boundary:function(n){var t=n.boundary,i=t?t.x:null,r=t?t.y:null;return function(n){return{x:i===null?n.x:i,y:r===null?n.y:r}}}};return{id:"filler",afterDatasetsUpdate:function(t,i){for(var c=(t.data.datasets||[]).length,v=i.propagate,l=[],a,f,u,r=0;r<c;++r)a=t.getDatasetMeta(r),f=a.dataset,u=null,f&&f._model&&f instanceof n.elements.Line&&(u={visible:t.isDatasetVisible(r),fill:e(f,r,c),chart:t,el:f}),a.$filler=u,l.push(u);for(r=0;r<c;++r)(u=l[r],u)&&(u.fill=s(l,r,v),u.boundary=o(u),u.mapper=h(u))},beforeDatasetDraw:function(n,t){var i=t.meta.$filler;if(i){var r=i.el,f=r._view,e=r._children||[],o=i.mapper,s=f.backgroundColor||u.global.defaultColor;o&&s&&e.length&&c(n.ctx,e,o,f,s,r._loop)}}}}},{}],42:[function(n,t){"use strict";t.exports=function(n){function u(n,t){return n.usePointStyle?t*Math.SQRT2:n.boxWidth}function f(t,i){var u=new n.Legend({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i),r.addBox(t,u),t.legend=u}var t=n.helpers,r=n.layoutService,i=t.noop;return n.defaults.global.legend={display:!0,position:"top",fullWidth:!0,reverse:!1,weight:1e3,onClick:function(n,t){var r=t.datasetIndex,i=this.chart,u=i.getDatasetMeta(r);u.hidden=u.hidden===null?!i.data.datasets[r].hidden:null,i.update()},onHover:null,labels:{boxWidth:40,padding:10,generateLabels:function(n){var i=n.data;return t.isArray(i.datasets)?i.datasets.map(function(i,r){return{text:i.label,fillStyle:t.isArray(i.backgroundColor)?i.backgroundColor[0]:i.backgroundColor,hidden:!n.isDatasetVisible(r),lineCap:i.borderCapStyle,lineDash:i.borderDash,lineDashOffset:i.borderDashOffset,lineJoin:i.borderJoinStyle,lineWidth:i.borderWidth,strokeStyle:i.borderColor,pointStyle:i.pointStyle,datasetIndex:r}},this):[]}}},n.Legend=n.Element.extend({initialize:function(n){t.extend(this,n),this.legendHitBoxes=[],this.doughnutMode=!1},beforeUpdate:i,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:i,beforeSetDimensions:i,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height),n.paddingLeft=0,n.paddingTop=0,n.paddingRight=0,n.paddingBottom=0,n.minSize={width:0,height:0}},afterSetDimensions:i,beforeBuildLabels:i,buildLabels:function(){var n=this,i=n.options.labels,t=i.generateLabels.call(n,n.chart);i.filter&&(t=t.filter(function(t){return i.filter(t,n.chart.data)})),n.options.reverse&&t.reverse(),n.legendItems=t},afterBuildLabels:i,beforeFit:i,fit:function(){var i=this,w=i.options,r=w.labels,c=w.display,h=i.ctx,l=n.defaults.global,a=t.getValueOrDefault,f=a(r.fontSize,l.defaultFontSize),nt=a(r.fontStyle,l.defaultFontStyle),tt=a(r.fontFamily,l.defaultFontFamily),it=t.fontString(f,nt,tt),b=i.legendHitBoxes=[],e=i.minSize,k=i.isHorizontal(),o,v;if(k?(e.width=i.maxWidth,e.height=c?10:0):(e.width=c?10:0,e.height=i.maxHeight),c)if(h.font=it,k)o=i.lineWidths=[0],v=i.legendItems.length?f+r.padding:0,h.textAlign="left",h.textBaseline="top",t.each(i.legendItems,function(n,t){var s=u(r,f),e=s+f/2+h.measureText(n.text).width;o[o.length-1]+e+r.padding>=i.width&&(v+=f+r.padding,o[o.length]=i.left),b[t]={left:0,top:0,width:e,height:f},o[o.length-1]+=e+r.padding}),e.height+=v;else{var rt=r.padding,d=i.columnWidths=[],y=r.padding,s=0,p=0,g=f+rt;t.each(i.legendItems,function(n,t){var o=u(r,f),i=o+f/2+h.measureText(n.text).width;p+g>e.height&&(y+=s+r.padding,d.push(s),s=0,p=0),s=Math.max(s,i),p+=g,b[t]={left:0,top:0,width:i,height:f}}),y+=s,d.push(s),e.width+=y}i.width=e.width,i.height=e.height},afterFit:i,isHorizontal:function(){return this.options.position==="top"||this.options.position==="bottom"},draw:function(){var r=this,a=r.options,e=a.labels,c=n.defaults.global,l=c.elements.line,y=r.width,w=r.lineWidths,v;if(a.display){var i=r.ctx,f,o=t.getValueOrDefault,b=o(e.fontColor,c.defaultFontColor),s=o(e.fontSize,c.defaultFontSize),d=o(e.fontStyle,c.defaultFontStyle),g=o(e.fontFamily,c.defaultFontFamily),nt=t.fontString(s,d,g);i.textAlign="left",i.textBaseline="top",i.lineWidth=.5,i.strokeStyle=b,i.fillStyle=b,i.font=nt;var h=u(e,s),k=r.legendHitBoxes,tt=function(t,r,u){var f;if(!isNaN(h)&&!(h<=0)){if(i.save(),i.fillStyle=o(u.fillStyle,c.defaultColor),i.lineCap=o(u.lineCap,l.borderCapStyle),i.lineDashOffset=o(u.lineDashOffset,l.borderDashOffset),i.lineJoin=o(u.lineJoin,l.borderJoinStyle),i.lineWidth=o(u.lineWidth,l.borderWidth),i.strokeStyle=o(u.strokeStyle,c.defaultColor),f=o(u.lineWidth,l.borderWidth)===0,i.setLineDash&&i.setLineDash(o(u.lineDash,l.borderDash)),a.labels&&a.labels.usePointStyle){var e=s*Math.SQRT2/2,v=e/Math.SQRT2,y=t+v,p=r+v;n.canvasHelpers.drawPoint(i,u.pointStyle,e,y,p)}else f||i.strokeRect(t,r,h,s),i.fillRect(t,r,h,s);i.restore()}},it=function(n,t,r,u){i.fillText(r.text,h+s/2+n,t),r.hidden&&(i.beginPath(),i.lineWidth=2,i.moveTo(h+s/2+n,t+s/2),i.lineTo(h+s/2+n+u,t+s/2),i.stroke())},p=r.isHorizontal();f=p?{x:r.left+(y-w[0])/2,y:r.top+e.padding,line:0}:{x:r.left+e.padding,y:r.top+e.padding,line:0},v=s+e.padding,t.each(r.legendItems,function(n,t){var c=i.measureText(n.text).width,l=h+s/2+c,u=f.x,o=f.y;p?u+l>=y&&(o=f.y+=v,f.line++,u=f.x=r.left+(y-w[f.line])/2):o+v>r.bottom&&(u=f.x=u+r.columnWidths[f.line]+e.padding,o=f.y=r.top+e.padding,f.line++),tt(u,o,n),k[t].left=u,k[t].top=o,it(u,o,n,c),p?f.x+=l+e.padding:f.y+=v})}},handleEvent:function(n){var t=this,e=t.options,o=n.type==="mouseup"?"click":n.type,s=!1,u,f,h,r,i;if(o==="mousemove"){if(!e.onHover)return}else if(o==="click"){if(!e.onClick)return}else return;if(u=n.x,f=n.y,u>=t.left&&u<=t.right&&f>=t.top&&f<=t.bottom)for(h=t.legendHitBoxes,r=0;r<h.length;++r)if(i=h[r],u>=i.left&&u<=i.left+i.width&&f>=i.top&&f<=i.top+i.height)if(o==="click"){e.onClick.call(t,n.native,t.legendItems[r]),s=!0;break}else if(o==="mousemove"){e.onHover.call(t,n.native,t.legendItems[r]),s=!0;break}return s}}),{id:"legend",beforeInit:function(n){var t=n.options.legend;t&&f(n,t)},beforeUpdate:function(i){var u=i.options.legend,e=i.legend;u?(u=t.configMerge(n.defaults.global.legend,u),e?(r.configure(i,e,u),e.options=u):f(i,u)):e&&(r.removeBox(i,e),delete i.legend)},afterEvent:function(n,t){var i=n.legend;i&&i.handleEvent(t)}}}},{}],43:[function(n,t){"use strict";t.exports=function(n){function u(t,i){var u=new n.Title({ctx:t.ctx,options:i,chart:t});r.configure(t,u,i),r.addBox(t,u),t.titleBlock=u}var i=n.helpers,r=n.layoutService,t=i.noop;return n.defaults.global.title={display:!1,position:"top",fullWidth:!0,weight:2e3,fontStyle:"bold",padding:10,text:""},n.Title=n.Element.extend({initialize:function(n){var t=this;i.extend(t,n),t.legendHitBoxes=[]},beforeUpdate:t,update:function(n,t,i){var r=this;return r.beforeUpdate(),r.maxWidth=n,r.maxHeight=t,r.margins=i,r.beforeSetDimensions(),r.setDimensions(),r.afterSetDimensions(),r.beforeBuildLabels(),r.buildLabels(),r.afterBuildLabels(),r.beforeFit(),r.fit(),r.afterFit(),r.afterUpdate(),r.minSize},afterUpdate:t,beforeSetDimensions:t,setDimensions:function(){var n=this;n.isHorizontal()?(n.width=n.maxWidth,n.left=0,n.right=n.width):(n.height=n.maxHeight,n.top=0,n.bottom=n.height),n.paddingLeft=0,n.paddingTop=0,n.paddingRight=0,n.paddingBottom=0,n.minSize={width:0,height:0}},afterSetDimensions:t,beforeBuildLabels:t,buildLabels:t,afterBuildLabels:t,beforeFit:t,fit:function(){var t=this,o=i.getValueOrDefault,u=t.options,s=n.defaults.global,f=u.display,e=o(u.fontSize,s.defaultFontSize),r=t.minSize;t.isHorizontal()?(r.width=t.maxWidth,r.height=f?e+u.padding*2:0):(r.width=f?e+u.padding*2:0,r.height=t.maxHeight),t.width=r.width,t.height=r.height},afterFit:t,isHorizontal:function(){var n=this.options.position;return n==="top"||n==="bottom"},draw:function(){var u=this,t=u.ctx,e=i.getValueOrDefault,r=u.options,o=n.defaults.global;if(r.display){var h=e(r.fontSize,o.defaultFontSize),w=e(r.fontStyle,o.defaultFontStyle),b=e(r.fontFamily,o.defaultFontFamily),k=i.fontString(h,w,b),p=0,c,l,f=u.top,s=u.left,a=u.bottom,v=u.right,y;t.fillStyle=e(r.fontColor,o.defaultFontColor),t.font=k,u.isHorizontal()?(c=s+(v-s)/2,l=f+(a-f)/2,y=v-s):(c=r.position==="left"?s+h/2:v-h/2,l=f+(a-f)/2,y=a-f,p=Math.PI*(r.position==="left"?-.5:.5)),t.save(),t.translate(c,l),t.rotate(p),t.textAlign="center",t.textBaseline="middle",t.fillText(r.text,0,0,y),t.restore()}}}),{id:"title",beforeInit:function(n){var t=n.options.title;t&&u(n,t)},beforeUpdate:function(t){var f=t.options.title,e=t.titleBlock;f?(f=i.configMerge(n.defaults.global.title,f),e?(r.configure(t,e,f),e.options=f):u(t,f)):e&&(n.layoutService.removeBox(t,e),delete t.titleBlock)}}}},{}],44:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=n.Scale.extend({getLabels:function(){var n=this.chart.data;return(this.isHorizontal()?n.xLabels:n.yLabels)||n.labels},determineDataLimits:function(){var n=this,r=n.getLabels(),i;n.minIndex=0,n.maxIndex=r.length-1,n.options.ticks.min!==undefined&&(i=t.indexOf(r,n.options.ticks.min),n.minIndex=i!==-1?i:n.minIndex),n.options.ticks.max!==undefined&&(i=t.indexOf(r,n.options.ticks.max),n.maxIndex=i!==-1?i:n.maxIndex),n.min=r[n.minIndex],n.max=r[n.maxIndex]},buildTicks:function(){var n=this,t=n.getLabels();n.ticks=n.minIndex===0&&n.maxIndex===t.length-1?t:t.slice(n.minIndex,n.maxIndex+1)},getLabelForIndex:function(n,t){var i=this,r=i.chart.data,u=i.isHorizontal();return r.yLabels&&!u?i.getRightValue(r.datasets[t].data[n]):i.ticks[n-i.minIndex]},getPixelForValue:function(n,t,i,r){var u=this,l=Math.max(u.maxIndex+1-u.minIndex-(u.options.gridLines.offsetGridLines?0:1),1),f,a,e,o,s,h,c;return(n!==undefined&&n!==null&&(f=u.isHorizontal()?n.x:n.y),(f!==undefined||n!==undefined&&isNaN(t))&&(a=u.getLabels(),n=f||n,e=a.indexOf(n),t=e!==-1?e:t),u.isHorizontal())?(o=u.width/l,s=o*(t-u.minIndex),(u.options.gridLines.offsetGridLines&&r||u.maxIndex===u.minIndex&&r)&&(s+=o/2),u.left+Math.round(s)):(h=u.height/l,c=h*(t-u.minIndex),u.options.gridLines.offsetGridLines&&r&&(c+=h/2),u.top+Math.round(c))},getPixelForTick:function(n,t){return this.getPixelForValue(this.ticks[n],n+this.minIndex,null,t)},getValueForPixel:function(n){var t=this,u=Math.max(t.ticks.length-(t.options.gridLines.offsetGridLines?0:1),1),i=t.isHorizontal(),r=(i?t.width:t.height)/u;return n-=i?t.left:t.top,t.options.gridLines.offsetGridLines&&(n-=r/2),n<=0?0:Math.round(n/r)},getBasePixel:function(){return this.bottom}});n.scaleService.registerScaleType("category",i,{position:"bottom"})}},{}],45:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.linear}},r=n.LinearScaleBase.extend({determineDataLimits:function(){function o(t){return h?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,f=n.options,i=n.chart,s=i.data,e=s.datasets,h=n.isHorizontal(),u,r;n.min=null,n.max=null,u=f.stacked,u===undefined&&t.each(e,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&o(r)&&r.stack!==undefined&&(u=!0)}}),f.stacked||u?(r={},t.each(e,function(u,e){var s=i.getDatasetMeta(e),c=[s.type,f.stacked===undefined&&s.stack===undefined?e:"",s.stack].join("."),h,l;r[c]===undefined&&(r[c]={positiveValues:[],negativeValues:[]}),h=r[c].positiveValues,l=r[c].negativeValues,i.isDatasetVisible(e)&&o(s)&&t.each(u.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||s.data[i].hidden||(h[i]=h[i]||0,l[i]=l[i]||0,f.relativePoints?h[i]=100:r<0?l[i]+=r:h[i]+=r)})}),t.each(r,function(i){var r=i.positiveValues.concat(i.negativeValues),u=t.min(r),f=t.max(r);n.min=n.min===null?u:Math.min(n.min,u),n.max=n.max===null?f:Math.max(n.max,f)})):t.each(e,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&o(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r))})}),n.min=isFinite(n.min)?n.min:0,n.max=isFinite(n.max)?n.max:1,this.handleTickRangeOptions()},getTickLimit:function(){var u,r=this,i=r.options.ticks,f;return r.isHorizontal()?u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.width/50)):(f=t.getValueOrDefault(i.fontSize,n.defaults.global.defaultFontSize),u=Math.min(i.maxTicksLimit?i.maxTicksLimit:11,Math.ceil(r.height/(2*f)))),u},handleDirectionalChanges:function(){this.isHorizontal()||this.ticks.reverse()},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForValue:function(n){var t=this,r=t.start,u=+t.getRightValue(n),i,f=t.end-r;return t.isHorizontal()?(i=t.left+t.width/f*(u-r),Math.round(i)):(i=t.bottom-t.height/f*(u-r),Math.round(i))},getValueForPixel:function(n){var t=this,i=t.isHorizontal(),r=i?t.width:t.height,u=(i?n-t.left:t.bottom-n)/r;return t.start+(t.end-t.start)*u},getPixelForTick:function(n){return this.getPixelForValue(this.ticksAsNumbers[n])}});n.scaleService.registerScaleType("linear",r,i)}},{}],46:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i=t.noop;n.LinearScaleBase=n.Scale.extend({handleTickRangeOptions:function(){var n=this,f=n.options,i=f.ticks,r,u;i.beginAtZero&&(r=t.sign(n.min),u=t.sign(n.max),r<0&&u<0?n.max=0:r>0&&u>0&&(n.min=0)),i.min!==undefined?n.min=i.min:i.suggestedMin!==undefined&&(n.min=n.min===null?i.suggestedMin:Math.min(n.min,i.suggestedMin)),i.max!==undefined?n.max=i.max:i.suggestedMax!==undefined&&(n.max=n.max===null?i.suggestedMax:Math.max(n.max,i.suggestedMax)),n.min===n.max&&(n.max++,i.beginAtZero||n.min--)},getTickLimit:i,handleDirectionalChanges:i,buildTicks:function(){var i=this,o=i.options,r=o.ticks,f=i.getTickLimit(),e,u;f=Math.max(2,f),e={maxTicks:f,min:r.min,max:r.max,stepSize:t.getValueOrDefault(r.fixedStepSize,r.stepSize)},u=i.ticks=n.Ticks.generators.linear(e,i),i.handleDirectionalChanges(),i.max=t.max(u),i.min=t.min(u),r.reverse?(u.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){var t=this;t.ticksAsNumbers=t.ticks.slice(),t.zeroLineIndex=t.ticks.indexOf(0),n.Scale.prototype.convertTicksToLabels.call(t)}})}},{}],47:[function(n,t){"use strict";t.exports=function(n){var t=n.helpers,i={position:"left",ticks:{callback:n.Ticks.formatters.logarithmic}},r=n.Scale.extend({determineDataLimits:function(){function o(t){return l?t.xAxisID===n.id:t.yAxisID===n.id}var n=this,r=n.options,s=r.ticks,i=n.chart,c=i.data,e=c.datasets,h=t.getValueOrDefault,l=n.isHorizontal(),u,f;n.min=null,n.max=null,n.minNotZero=null,u=r.stacked,u===undefined&&t.each(e,function(n,t){if(!u){var r=i.getDatasetMeta(t);i.isDatasetVisible(t)&&o(r)&&r.stack!==undefined&&(u=!0)}}),r.stacked||u?(f={},t.each(e,function(u,e){var s=i.getDatasetMeta(e),h=[s.type,r.stacked===undefined&&s.stack===undefined?e:"",s.stack].join(".");i.isDatasetVisible(e)&&o(s)&&(f[h]===undefined&&(f[h]=[]),t.each(u.data,function(t,i){var u=f[h],e=+n.getRightValue(t);isNaN(e)||s.data[i].hidden||(u[i]=u[i]||0,r.relativePoints?u[i]=100:u[i]+=e)}))}),t.each(f,function(i){var r=t.min(i),u=t.max(i);n.min=n.min===null?r:Math.min(n.min,r),n.max=n.max===null?u:Math.max(n.max,u)})):t.each(e,function(r,u){var f=i.getDatasetMeta(u);i.isDatasetVisible(u)&&o(f)&&t.each(r.data,function(t,i){var r=+n.getRightValue(t);isNaN(r)||f.data[i].hidden||(n.min===null?n.min=r:r<n.min&&(n.min=r),n.max===null?n.max=r:r>n.max&&(n.max=r),r!==0&&(n.minNotZero===null||r<n.minNotZero)&&(n.minNotZero=r))})}),n.min=h(s.min,n.min),n.max=h(s.max,n.max),n.min===n.max&&(n.min!==0&&n.min!==null?(n.min=Math.pow(10,Math.floor(t.log10(n.min))-1),n.max=Math.pow(10,Math.floor(t.log10(n.max))+1)):(n.min=1,n.max=10))},buildTicks:function(){var i=this,f=i.options,u=f.ticks,e={min:u.min,max:u.max},r=i.ticks=n.Ticks.generators.logarithmic(e,i);i.isHorizontal()||r.reverse(),i.max=t.max(r),i.min=t.min(r),u.reverse?(r.reverse(),i.start=i.max,i.end=i.min):(i.start=i.min,i.end=i.max)},convertTicksToLabels:function(){this.tickValues=this.ticks.slice(),n.Scale.prototype.convertTicksToLabels.call(this)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},getPixelForTick:function(n){return this.getPixelForValue(this.tickValues[n])},getPixelForValue:function(n){var i=this,r,e,o=i.start,u=+i.getRightValue(n),f,h=i.options,s=h.ticks;return i.isHorizontal()?(f=t.log10(i.end)-t.log10(o),u===0?e=i.left:(r=i.width,e=i.left+r/f*(t.log10(u)-t.log10(o)))):(r=i.height,o!==0||s.reverse?i.end===0&&s.reverse?(f=t.log10(i.start)-t.log10(i.minNotZero),e=u===i.end?i.top:u===i.minNotZero?i.top+r*.02:i.top+r*.02+r*.98/f*(t.log10(u)-t.log10(i.minNotZero))):u===0?e=s.reverse?i.top:i.bottom:(f=t.log10(i.end)-t.log10(o),r=i.height,e=i.bottom-r/f*(t.log10(u)-t.log10(o))):(f=t.log10(i.end)-t.log10(i.minNotZero),e=u===o?i.bottom:u===i.minNotZero?i.bottom-r*.02:i.bottom-r*.02-r*.98/f*(t.log10(u)-t.log10(i.minNotZero)))),e},getValueForPixel:function(n){var i=this,f=t.log10(i.end)-t.log10(i.start),u,r;return i.isHorizontal()?(r=i.width,u=i.start*Math.pow(10,(n-i.left)*f/r)):(r=i.height,u=Math.pow(10,(i.bottom-n)*f/r)/i.start),u}});n.scaleService.registerScaleType("logarithmic",r,i)}},{}],48:[function(n,t){"use strict";t.exports=function(n){function r(n){var t=n.options;return t.angleLines.display||t.pointLabels.display?n.chart.data.labels.length:0}function f(n){var r=n.options.pointLabels,u=t.getValueOrDefault(r.fontSize,i.defaultFontSize),f=t.getValueOrDefault(r.fontStyle,i.defaultFontStyle),e=t.getValueOrDefault(r.fontFamily,i.defaultFontFamily),o=t.fontString(u,f,e);return{size:u,style:f,family:e,font:o}}function s(n,i,r){return t.isArray(r)?{w:t.longestText(n,n.font,r),h:r.length*i+(r.length-1)*1.5*i}:{w:n.measureText(r).width,h:i}}function e(n,t,i,r,u){return n===r||n===u?{start:t-i/2,end:t+i/2}:n<r||n>u?{start:t-i-5,end:t}:{start:t,end:t+i+5}}function h(n){var y=f(n),p=Math.min(n.height/2,n.width/2),i={r:n.width,l:0,t:n.height,b:0},o={},u,c,v,w;for(n.ctx.font=y.font,n._pointLabelSizes=[],w=r(n),u=0;u<w;u++){v=n.getPointPosition(u,p),c=s(n.ctx,y.size,n.pointLabels[u]||""),n._pointLabelSizes[u]=c;var h=n.getIndexAngle(u),b=t.toDegrees(h)%360,l=e(b,v.x,c.w,0,180),a=e(b,v.y,c.h,90,270);l.start<i.l&&(i.l=l.start,o.l=h),l.end>i.r&&(i.r=l.end,o.r=h),a.start<i.t&&(i.t=a.start,o.t=h),a.end>i.b&&(i.b=a.end,o.b=h)}n.setReductions(p,i,o)}function c(n){var t=Math.min(n.height/2,n.width/2);n.drawingArea=Math.round(t),n.setCenterPoint(0,0,0,0)}function l(n){return n===0||n===180?"center":n<180?"left":"right"}function a(n,i,r,u){var e,o,f;if(t.isArray(i))for(e=r.y,o=1.5*u,f=0;f<i.length;++f)n.fillText(i[f],r.x,e),e+=o;else n.fillText(i,r.x,r.y)}function v(n,t,i){n===90||n===270?i.y-=t.h/2:(n>270||n<90)&&(i.y-=t.h)}function y(n){var u=n.ctx,g=t.getValueOrDefault,o=n.options,s=o.angleLines,b=o.pointLabels,h,c,e,y,p,k,d,w;for(u.lineWidth=s.lineWidth,u.strokeStyle=s.color,h=n.getDistanceFromCenterForValue(o.reverse?n.min:n.max),c=f(n),u.textBaseline="top",e=r(n)-1;e>=0;e--)s.display&&(y=n.getPointPosition(e,h),u.beginPath(),u.moveTo(n.xCenter,n.yCenter),u.lineTo(y.x,y.y),u.stroke(),u.closePath()),b.display&&(p=n.getPointPosition(e,h+5),k=g(b.fontColor,i.defaultFontColor),u.font=c.font,u.fillStyle=k,d=n.getIndexAngle(e),w=t.toDegrees(d),u.textAlign=l(w),v(w,n._pointLabelSizes[e],p),a(u,n.pointLabels[e]||"",p,c.size))}function p(n,i,u,f){var e=n.ctx,h,o,s;if(e.strokeStyle=t.getValueAtIndexOrDefault(i.color,f-1),e.lineWidth=t.getValueAtIndexOrDefault(i.lineWidth,f-1),n.options.gridLines.circular)e.beginPath(),e.arc(n.xCenter,n.yCenter,u,0,Math.PI*2),e.closePath(),e.stroke();else{if(h=r(n),h===0)return;for(e.beginPath(),o=n.getPointPosition(0,u),e.moveTo(o.x,o.y),s=1;s<h;s++)o=n.getPointPosition(s,u),e.lineTo(o.x,o.y);e.closePath(),e.stroke()}}function u(n){return t.isNumber(n)?n:0}var t=n.helpers,i=n.defaults.global,o={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:n.Ticks.formatters.linear},pointLabels:{display:!0,fontSize:10,callback:function(n){return n}}},w=n.LinearScaleBase.extend({setDimensions:function(){var n=this,u=n.options,f=u.ticks,r,e;n.width=n.maxWidth,n.height=n.maxHeight,n.xCenter=Math.round(n.width/2),n.yCenter=Math.round(n.height/2),r=t.min([n.height,n.width]),e=t.getValueOrDefault(f.fontSize,i.defaultFontSize),n.drawingArea=u.display?r/2-(e/2+f.backdropPaddingY):r/2},determineDataLimits:function(){var n=this,u=n.chart,i=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;t.each(u.data.datasets,function(f,e){if(u.isDatasetVisible(e)){var o=u.getDatasetMeta(e);t.each(f.data,function(t,u){var f=+n.getRightValue(t);isNaN(f)||o.data[u].hidden||(i=Math.min(f,i),r=Math.max(f,r))})}}),n.min=i===Number.POSITIVE_INFINITY?0:i,n.max=r===Number.NEGATIVE_INFINITY?0:r,n.handleTickRangeOptions()},getTickLimit:function(){var n=this.options.ticks,r=t.getValueOrDefault(n.fontSize,i.defaultFontSize);return Math.min(n.maxTicksLimit?n.maxTicksLimit:11,Math.ceil(this.drawingArea/(1.5*r)))},convertTicksToLabels:function(){var t=this;n.LinearScaleBase.prototype.convertTicksToLabels.call(t),t.pointLabels=t.chart.data.labels.map(t.options.pointLabels.callback,t)},getLabelForIndex:function(n,t){return+this.getRightValue(this.chart.data.datasets[t].data[n])},fit:function(){this.options.pointLabels.display?h(this):c(this)},setReductions:function(n,t,i){var r=this,f=t.l/Math.sin(i.l),e=Math.max(t.r-r.width,0)/Math.sin(i.r),o=-t.t/Math.cos(i.t),s=-Math.max(t.b-r.height,0)/Math.cos(i.b);f=u(f),e=u(e),o=u(o),s=u(s),r.drawingArea=Math.min(Math.round(n-(f+e)/2),Math.round(n-(o+s)/2)),r.setCenterPoint(f,e,o,s)},setCenterPoint:function(n,t,i,r){var u=this,f=u.width-t-u.drawingArea,e=n+u.drawingArea,o=i+u.drawingArea,s=u.height-r-u.drawingArea;u.xCenter=Math.round((e+f)/2+u.left),u.yCenter=Math.round((o+s)/2+u.top)},getIndexAngle:function(n){var t=Math.PI*2/r(this),i=this.chart.options&&this.chart.options.startAngle?this.chart.options.startAngle:0,u=i*Math.PI/180;return n*t+u},getDistanceFromCenterForValue:function(n){var t=this,i;return n===null?0:(i=t.drawingArea/(t.max-t.min),t.options.reverse)?(t.max-n)*i:(n-t.min)*i},getPointPosition:function(n,t){var i=this,r=i.getIndexAngle(n)-Math.PI/2;return{x:Math.round(Math.cos(r)*t)+i.xCenter,y:Math.round(Math.sin(r)*t)+i.yCenter}},getPointPositionForValue:function(n,t){return this.getPointPosition(n,this.getDistanceFromCenterForValue(t))},getBasePosition:function(){var n=this,t=n.min,i=n.max;return n.getPointPositionForValue(0,n.beginAtZero?0:t<0&&i<0?i:t>0&&i>0?t:0)},draw:function(){var r=this,f=r.options,s=f.gridLines,n=f.ticks,e=t.getValueOrDefault;if(f.display){var u=r.ctx,o=e(n.fontSize,i.defaultFontSize),h=e(n.fontStyle,i.defaultFontStyle),c=e(n.fontFamily,i.defaultFontFamily),l=t.fontString(o,h,c);t.each(r.ticks,function(t,h){var c,a,y,v;(h>0||f.reverse)&&(c=r.getDistanceFromCenterForValue(r.ticksAsNumbers[h]),a=r.yCenter-c,s.display&&h!==0&&p(r,s,c,h),n.display&&(y=e(n.fontColor,i.defaultFontColor),u.font=l,n.showLabelBackdrop&&(v=u.measureText(t).width,u.fillStyle=n.backdropColor,u.fillRect(r.xCenter-v/2-n.backdropPaddingX,a-o/2-n.backdropPaddingY,v+n.backdropPaddingX*2,o+n.backdropPaddingY*2)),u.textAlign="center",u.textBaseline="middle",u.fillStyle=y,u.fillText(t,r.xCenter,a)))}),(f.angleLines.display||f.pointLabels.display)&&y(r)}}});n.scaleService.registerScaleType("radialLinear",w,o)}},{}],49:[function(n,t){"use strict";var i=n(1);i=typeof i=="function"?i:window.moment,t.exports=function(n){function r(n,t){var r=n.options.time,u;return typeof r.parser=="string"?i(t,r.parser):typeof r.parser=="function"?r.parser(t):typeof t.getMonth=="function"||typeof t=="number"?i(t):t.isValid&&t.isValid()?t:(u=r.format,typeof u!="string"&&u.call)?(console.warn("options.time.format is deprecated and replaced by options.time.parser."),u(t)):i(t,u)}function e(n,t,i,r){for(var o=Object.keys(u),s,c=o.length,f,h,e=o.indexOf(n);e<c;e++)if(s=o[e],f=u[s],h=f.steps&&f.steps[f.steps.length-1]||f.maxStep,h===undefined||Math.ceil((i-t)/(h*f.size))<=r)break;return s}function o(n,t,i,r){var e=u[i],h=e.size,o=Math.ceil((t-n)/h),f=1,c=t-n,l,s;if(e.steps)for(l=e.steps.length,s=0;s<l&&o>r;s++)f=e.steps[s],o=Math.ceil(c/(h*f));else while(o>r&&r>0)++f,o=Math.ceil(c/(h*f));return f}function s(n,t,r){var u=[],o,f,e;if(n.maxTicks){for(o=n.stepSize,u.push(n.min!==undefined?n.min:r.min),f=i(r.min);f.add(o,n.unit).valueOf()<r.max;)u.push(f.valueOf());e=n.max||r.max,u[u.length-1]!==e&&u.push(e)}return u}var t=n.helpers,u={millisecond:{size:1,steps:[1,2,5,10,20,50,100,250,500]},second:{size:1e3,steps:[1,2,5,10,30]},minute:{size:6e4,steps:[1,2,5,10,30]},hour:{size:36e5,steps:[1,2,3,6,12]},day:{size:864e5,steps:[1,2,5]},week:{size:6048e5,maxStep:4},month:{size:2628e6,maxStep:3},quarter:{size:7884e6,maxStep:4},year:{size:3154e7,maxStep:!1}},f;n.Ticks.generators.time=function(n,t){var u,r,f=n.isoWeekday;return n.unit==="week"&&f!==!1?(u=i(t.min).startOf("isoWeek").isoWeekday(f).valueOf(),r=i(t.max).startOf("isoWeek").isoWeekday(f),t.max-r>0&&r.add(1,"week"),r=r.valueOf()):(u=i(t.min).startOf(n.unit).valueOf(),r=i(t.max).startOf(n.unit),t.max-r>0&&r.add(1,n.unit),r=r.valueOf()),s(n,t,{min:u,max:r})},f=n.Scale.extend({initialize:function(){if(!i)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");n.Scale.prototype.initialize.call(this)},determineDataLimits:function(){var n=this,e=n.options.time,u=Number.MAX_SAFE_INTEGER,f=Number.MIN_SAFE_INTEGER,s=n.chart.data,o={labels:[],datasets:[]},i;t.each(s.labels,function(t,s){var h=r(n,t);h.isValid()&&(e.round&&h.startOf(e.round),i=h.valueOf(),u=Math.min(i,u),f=Math.max(i,f),o.labels[s]=i)}),t.each(s.datasets,function(s,h){var c=[];typeof s.data[0]=="object"&&s.data[0]!==null&&n.chart.isDatasetVisible(h)?t.each(s.data,function(t,o){var s=r(n,n.getRightValue(t));s.isValid()&&(e.round&&s.startOf(e.round),i=s.valueOf(),u=Math.min(i,u),f=Math.max(i,f),c[o]=i)}):c=o.labels.slice(),o.datasets[h]=c}),n.dataMin=u,n.dataMax=f,n._parsedData=o},buildTicks:function(){var i=this,u=i.options.time,f,s,h=i.dataMin,a=i.dataMax,v,c,l,y;u.min&&(v=r(i,u.min),u.round&&v.round(u.round),f=v.valueOf()),u.max&&(s=r(i,u.max).valueOf()),c=i.getLabelCapacity(f||h),l=u.unit||e(u.minUnit,f||h,s||a,c),i.displayFormat=u.displayFormats[l],y=u.stepSize||o(f||h,s||a,l,c),i.ticks=n.Ticks.generators.time({maxTicks:c,min:f,max:s,stepSize:y,unit:l,isoWeekday:u.isoWeekday},{min:h,max:a}),i.max=t.max(i.ticks),i.min=t.min(i.ticks)},getLabelForIndex:function(n,t){var i=this,u=i.chart.data.labels&&n<i.chart.data.labels.length?i.chart.data.labels[n]:"",f=i.chart.data.datasets[t].data[n];return f!==null&&typeof f=="object"&&(u=i.getRightValue(f)),i.options.time.tooltipFormat&&(u=r(i,u).format(i.options.time.tooltipFormat)),u},tickFormatFunction:function(n,i,r){var u=n.format(this.displayFormat),f=this.options.ticks,e=t.getValueOrDefault(f.callback,f.userCallback);return e?e(u,i,r):u},convertTicksToLabels:function(){var n=this;n.ticksAsTimestamps=n.ticks,n.ticks=n.ticks.map(function(n){return i(n)}).map(n.tickFormatFunction,n)},getPixelForOffset:function(n){var t=this,i=t.max-t.min,r=i?(n-t.min)/i:0,u,f;return t.isHorizontal()?(u=t.width*r,t.left+Math.round(u)):(f=t.height*r,t.top+Math.round(f))},getPixelForValue:function(n,t,i){var f=this,u=null;return t!==undefined&&i!==undefined&&(u=f._parsedData.datasets[i][t]),u===null&&(n&&n.isValid||(n=r(f,f.getRightValue(n))),n&&n.isValid&&n.isValid()&&(u=n.valueOf())),u!==null?f.getPixelForOffset(u):void 0},getPixelForTick:function(n){return this.getPixelForOffset(this.ticksAsTimestamps[n])},getValueForPixel:function(n){var t=this,r=t.isHorizontal()?t.width:t.height,u=(n-(t.isHorizontal()?t.left:t.top))/r;return i(t.min+u*(t.max-t.min))},getLabelWidth:function(i){var u=this,r=u.options.ticks,f=u.ctx.measureText(i).width,e=Math.cos(t.toRadians(r.maxRotation)),o=Math.sin(t.toRadians(r.maxRotation)),s=t.getValueOrDefault(r.fontSize,n.defaults.global.defaultFontSize);return f*e+s*o},getLabelCapacity:function(n){var t=this;t.displayFormat=t.options.time.displayFormats.millisecond;var r=t.tickFormatFunction(i(n),0,[]),u=t.getLabelWidth(r),f=t.isHorizontal()?t.width:t.height;return f/u}}),n.scaleService.registerScaleType("time",f,{position:"bottom",time:{parser:!1,format:!1,unit:!1,round:!1,displayFormat:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{millisecond:"h:mm:ss.SSS a",second:"h:mm:ss a",minute:"h:mm:ss a",hour:"MMM D, hA",day:"ll",week:"ll",month:"MMM YYYY",quarter:"[Q]Q - YYYY",year:"YYYY"}},ticks:{autoSkip:!1}})}},{"1":1}]},{},[7])(7)});
//! moment.js
//! version : 2.18.1
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
(function(n,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):n.moment=t()})(this,function(){"use strict";function t(){return ef.apply(null,arguments)}function gs(n){ef=n}function tt(n){return n instanceof Array||Object.prototype.toString.call(n)==="[object Array]"}function ci(n){return n!=null&&Object.prototype.toString.call(n)==="[object Object]"}function nh(n){var t;for(t in n)return!1;return!0}function p(n){return n===void 0}function dt(n){return typeof n=="number"||Object.prototype.toString.call(n)==="[object Number]"}function bi(n){return n instanceof Date||Object.prototype.toString.call(n)==="[object Date]"}function of(n,t){for(var r=[],i=0;i<n.length;++i)r.push(t(n[i],i));return r}function l(n,t){return Object.prototype.hasOwnProperty.call(n,t)}function yt(n,t){for(var i in t)l(t,i)&&(n[i]=t[i]);return l(t,"toString")&&(n.toString=t.toString),l(t,"valueOf")&&(n.valueOf=t.valueOf),n}function ft(n,t,i,r){return yo(n,t,i,r,!0).utc()}function th(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function u(n){return n._pf==null&&(n._pf=th()),n._pf}function kr(n){if(n._isValid==null){var t=u(n),r=hf.call(t.parsedDateParts,function(n){return n!=null}),i=!isNaN(n._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidMonth&&!t.invalidWeekday&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(n._strict&&(i=i&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===undefined),Object.isFrozen!=null&&Object.isFrozen(n))return i;n._isValid=i}return n._isValid}function ki(n){var t=ft(NaN);return n!=null?yt(u(t),n):u(t).userInvalidated=!0,t}function dr(n,t){var i,r,f;if(p(t._isAMomentObject)||(n._isAMomentObject=t._isAMomentObject),p(t._i)||(n._i=t._i),p(t._f)||(n._f=t._f),p(t._l)||(n._l=t._l),p(t._strict)||(n._strict=t._strict),p(t._tzm)||(n._tzm=t._tzm),p(t._isUTC)||(n._isUTC=t._isUTC),p(t._offset)||(n._offset=t._offset),p(t._pf)||(n._pf=u(t)),p(t._locale)||(n._locale=t._locale),di.length>0)for(i=0;i<di.length;i++)r=di[i],f=t[r],p(f)||(n[r]=f);return n}function li(n){dr(this,n),this._d=new Date(n._d!=null?n._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),gi===!1&&(gi=!0,t.updateOffset(this),gi=!1)}function pt(n){return n instanceof li||n!=null&&n._isAMomentObject!=null}function d(n){return n<0?Math.ceil(n)||0:Math.floor(n)}function f(n){var t=+n,i=0;return t!==0&&isFinite(t)&&(i=d(t)),i}function cf(n,t,i){for(var e=Math.min(n.length,t.length),o=Math.abs(n.length-t.length),u=0,r=0;r<e;r++)(i&&n[r]!==t[r]||!i&&f(n[r])!==f(t[r]))&&u++;return u+o}function lf(n){t.suppressDeprecationWarnings===!1&&typeof console!="undefined"&&console.warn&&console.warn("Deprecation warning: "+n)}function g(n,i){var r=!0;return yt(function(){var e,u,f,o;if(t.deprecationHandler!=null&&t.deprecationHandler(null,n),r){for(e=[],f=0;f<arguments.length;f++){if(u="",typeof arguments[f]=="object"){u+="\n["+f+"] ";for(o in arguments[0])u+=o+": "+arguments[0][o]+", ";u=u.slice(0,-2)}else u=arguments[f];e.push(u)}lf(n+"\nArguments: "+Array.prototype.slice.call(e).join("")+"\n"+(new Error).stack),r=!1}return i.apply(this,arguments)},i)}function af(n,i){t.deprecationHandler!=null&&t.deprecationHandler(n,i),gr[n]||(lf(i),gr[n]=!0)}function et(n){return n instanceof Function||Object.prototype.toString.call(n)==="[object Function]"}function ih(n){var t,i;for(i in n)t=n[i],et(t)?this[i]=t:this["_"+i]=t;this._config=n,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function vf(n,t){var r=yt({},n),i;for(i in t)l(t,i)&&(ci(n[i])&&ci(t[i])?(r[i]={},yt(r[i],n[i]),yt(r[i],t[i])):t[i]!=null?r[i]=t[i]:delete r[i]);for(i in n)l(n,i)&&!l(t,i)&&ci(n[i])&&(r[i]=yt({},r[i]));return r}function nu(n){n!=null&&this.set(n)}function rh(n,t,i){var r=this._calendar[n]||this._calendar.sameElse;return et(r)?r.call(t,i):r}function uh(n){var t=this._longDateFormat[n],i=this._longDateFormat[n.toUpperCase()];return t||!i?t:(this._longDateFormat[n]=i.replace(/MMMM|MM|DD|dddd/g,function(n){return n.slice(1)}),this._longDateFormat[n])}function fh(){return this._invalidDate}function eh(n){return this._ordinal.replace("%d",n)}function oh(n,t,i,r){var u=this._relativeTime[i];return et(u)?u(n,t,i,r):u.replace(/%d/i,n)}function sh(n,t){var i=this._relativeTime[n>0?"future":"past"];return et(i)?i(t):i.replace(/%s/i,t)}function w(n,t){var i=n.toLowerCase();ui[i]=ui[i+"s"]=ui[t]=n}function nt(n){return typeof n=="string"?ui[n]||ui[n.toLowerCase()]:undefined}function tu(n){var r={},i,t;for(t in n)l(n,t)&&(i=nt(t),i&&(r[i]=n[t]));return r}function b(n,t){iu[n]=t}function hh(n){var t=[],i;for(i in n)t.push({unit:i,priority:iu[i]});return t.sort(function(n,t){return n.priority-t.priority}),t}function fi(n,i){return function(r){return r!=null?(te(this,n,r),t.updateOffset(this,i),this):nr(this,n)}}function nr(n,t){return n.isValid()?n._d["get"+(n._isUTC?"UTC":"")+t]():NaN}function te(n,t,i){n.isValid()&&n._d["set"+(n._isUTC?"UTC":"")+t](i)}function ch(n){return(n=nt(n),et(this[n]))?this[n]():this}function lh(n,t){var r,i;if(typeof n=="object")for(n=tu(n),r=hh(n),i=0;i<r.length;i++)this[r[i].unit](n[r[i].unit]);else if(n=nt(n),et(this[n]))return this[n](t);return this}function ct(n,t,i){var r=""+Math.abs(n),u=t-r.length,f=n>=0;return(f?i?"+":"":"-")+Math.pow(10,Math.max(0,u)).toString().substr(1)+r}function r(n,t,i,r){var u=r;typeof r=="string"&&(u=function(){return this[r]()}),n&&(ei[n]=u),t&&(ei[t[0]]=function(){return ct(u.apply(this,arguments),t[1],t[2])}),i&&(ei[i]=function(){return this.localeData().ordinal(u.apply(this,arguments),n)})}function ah(n){return n.match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"")}function vh(n){for(var t=n.match(ie),i=0,r=t.length;i<r;i++)t[i]=ei[t[i]]?ei[t[i]]:ah(t[i]);return function(i){for(var f="",u=0;u<r;u++)f+=et(t[u])?t[u].call(i,n):t[u];return f}}function uu(n,t){return n.isValid()?(t=re(t,n.localeData()),ru[t]=ru[t]||vh(t),ru[t](n)):n.localeData().invalidDate()}function re(n,t){function r(n){return t.longDateFormat(n)||n}var i=5;for(tr.lastIndex=0;i>=0&&tr.test(n);)n=n.replace(tr,r),tr.lastIndex=0,i-=1;return n}function i(n,t,i){ou[n]=et(t)?t:function(n){return n&&i?i:t}}function ph(n,t){return l(ou,n)?ou[n](t._strict,t._locale):new RegExp(wh(n))}function wh(n){return gt(n.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(n,t,i,r,u){return t||i||r||u}))}function gt(n){return n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function h(n,t){var i,r=t;for(typeof n=="string"&&(n=[n]),dt(t)&&(r=function(n,i){i[t]=f(n)}),i=0;i<n.length;i++)or[n[i]]=r}function vi(n,t){h(n,function(n,i,r,u){r._w=r._w||{},t(n,r._w,r,u)})}function bh(n,t,i){t!=null&&l(or,n)&&or[n](t,i._a,i,n)}function su(n,t){return new Date(Date.UTC(n,t+1,0)).getUTCDate()}function gh(n,t){return n?tt(this._months)?this._months[n.month()]:this._months[(this._months.isFormat||hu).test(t)?"format":"standalone"][n.month()]:tt(this._months)?this._months:this._months.standalone}function nc(n,t){return n?tt(this._monthsShort)?this._monthsShort[n.month()]:this._monthsShort[hu.test(t)?"format":"standalone"][n.month()]:tt(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function tc(n,t,i){var u,r,e,f=n.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],u=0;u<12;++u)e=ft([2e3,u]),this._shortMonthsParse[u]=this.monthsShort(e,"").toLocaleLowerCase(),this._longMonthsParse[u]=this.months(e,"").toLocaleLowerCase();return i?t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1?r:null):t==="MMM"?(r=y.call(this._shortMonthsParse,f),r!==-1)?r:(r=y.call(this._longMonthsParse,f),r!==-1?r:null):(r=y.call(this._longMonthsParse,f),r!==-1)?r:(r=y.call(this._shortMonthsParse,f),r!==-1?r:null)}function ic(n,t,i){var r,u,f;if(this._monthsParseExact)return tc.call(this,n,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++)if((u=ft([2e3,r]),i&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(u,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(u,"").replace(".","")+"$","i")),i||this._monthsParse[r]||(f="^"+this.months(u,"")+"|^"+this.monthsShort(u,""),this._monthsParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="MMMM"&&this._longMonthsParse[r].test(n))||i&&t==="MMM"&&this._shortMonthsParse[r].test(n)||!i&&this._monthsParse[r].test(n))return r}function le(n,t){var i;if(!n.isValid())return n;if(typeof t=="string")if(/^\d+$/.test(t))t=f(t);else if(t=n.localeData().monthsParse(t),!dt(t))return n;return i=Math.min(n.date(),su(n.year(),t)),n._d["set"+(n._isUTC?"UTC":"")+"Month"](t,i),n}function ae(n){return n!=null?(le(this,n),t.updateOffset(this,!0),this):nr(this,"Month")}function rc(){return su(this.year(),this.month())}function uc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),n?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=ve),this._monthsShortStrictRegex&&n?this._monthsShortStrictRegex:this._monthsShortRegex)}function fc(n){return this._monthsParseExact?(l(this,"_monthsRegex")||pe.call(this),n?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=ye),this._monthsStrictRegex&&n?this._monthsStrictRegex:this._monthsRegex)}function pe(){function f(n,t){return t.length-n.length}for(var i=[],r=[],t=[],u,n=0;n<12;n++)u=ft([2e3,n]),i.push(this.monthsShort(u,"")),r.push(this.months(u,"")),t.push(this.months(u,"")),t.push(this.monthsShort(u,""));for(i.sort(f),r.sort(f),t.sort(f),n=0;n<12;n++)i[n]=gt(i[n]),r[n]=gt(r[n]);for(n=0;n<24;n++)t[n]=gt(t[n]);this._monthsRegex=new RegExp("^("+t.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function yi(n){return we(n)?366:365}function we(n){return n%4==0&&n%100!=0||n%400==0}function ec(){return we(this.year())}function oc(n,t,i,r,u,f,e){var o=new Date(n,t,i,r,u,f,e);return n<100&&n>=0&&isFinite(o.getFullYear())&&o.setFullYear(n),o}function sr(n){var t=new Date(Date.UTC.apply(null,arguments));return n<100&&n>=0&&isFinite(t.getUTCFullYear())&&t.setUTCFullYear(n),t}function hr(n,t,i){var r=7+t-i,u=(7+sr(n,0,r).getUTCDay()-t)%7;return-u+r-1}function be(n,t,i,r,u){var s=(7+i-r)%7,h=hr(n,r,u),f=1+7*(t-1)+s+h,e,o;return f<=0?(e=n-1,o=yi(e)+f):f>yi(n)?(e=n+1,o=f-yi(n)):(e=n,o=f),{year:e,dayOfYear:o}}function pi(n,t,i){var e=hr(n.year(),t,i),r=Math.floor((n.dayOfYear()-e-1)/7)+1,f,u;return r<1?(u=n.year()-1,f=r+ti(u,t,i)):r>ti(n.year(),t,i)?(f=r-ti(n.year(),t,i),u=n.year()+1):(u=n.year(),f=r),{week:f,year:u}}function ti(n,t,i){var r=hr(n,t,i),u=hr(n+1,t,i);return(yi(n)-r+u)/7}function sc(n){return pi(n,this._week.dow,this._week.doy).week}function hc(){return this._week.dow}function cc(){return this._week.doy}function lc(n){var t=this.localeData().week(this);return n==null?t:this.add((n-t)*7,"d")}function ac(n){var t=pi(this,1,4).week;return n==null?t:this.add((n-t)*7,"d")}function vc(n,t){return typeof n!="string"?n:isNaN(n)?(n=t.weekdaysParse(n),typeof n=="number")?n:null:parseInt(n,10)}function yc(n,t){return typeof n=="string"?t.weekdaysParse(n)%7||7:isNaN(n)?null:n}function pc(n,t){return n?tt(this._weekdays)?this._weekdays[n.day()]:this._weekdays[this._weekdays.isFormat.test(t)?"format":"standalone"][n.day()]:tt(this._weekdays)?this._weekdays:this._weekdays.standalone}function wc(n){return n?this._weekdaysShort[n.day()]:this._weekdaysShort}function bc(n){return n?this._weekdaysMin[n.day()]:this._weekdaysMin}function kc(n,t,i){var f,r,e,u=n.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],f=0;f<7;++f)e=ft([2e3,1]).day(f),this._minWeekdaysParse[f]=this.weekdaysMin(e,"").toLocaleLowerCase(),this._shortWeekdaysParse[f]=this.weekdaysShort(e,"").toLocaleLowerCase(),this._weekdaysParse[f]=this.weekdays(e,"").toLocaleLowerCase();return i?t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="dddd"?(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):t==="ddd"?(r=y.call(this._shortWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._minWeekdaysParse,u),r!==-1?r:null):(r=y.call(this._minWeekdaysParse,u),r!==-1)?r:(r=y.call(this._weekdaysParse,u),r!==-1)?r:(r=y.call(this._shortWeekdaysParse,u),r!==-1?r:null)}function dc(n,t,i){var r,u,f;if(this._weekdaysParseExact)return kc.call(this,n,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++)if((u=ft([2e3,1]).day(r),i&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(u,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(u,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(u,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(f="^"+this.weekdays(u,"")+"|^"+this.weekdaysShort(u,"")+"|^"+this.weekdaysMin(u,""),this._weekdaysParse[r]=new RegExp(f.replace(".",""),"i")),i&&t==="dddd"&&this._fullWeekdaysParse[r].test(n))||i&&t==="ddd"&&this._shortWeekdaysParse[r].test(n)||i&&t==="dd"&&this._minWeekdaysParse[r].test(n)||!i&&this._weekdaysParse[r].test(n))return r}function gc(n){if(!this.isValid())return n!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return n!=null?(n=vc(n,this.localeData()),this.add(n-t,"d")):t}function nl(n){if(!this.isValid())return n!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return n==null?t:this.add(n-t,"d")}function tl(n){if(!this.isValid())return n!=null?this:NaN;if(n!=null){var t=yc(n,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function il(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=to),this._weekdaysStrictRegex&&n?this._weekdaysStrictRegex:this._weekdaysRegex)}function rl(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=io),this._weekdaysShortStrictRegex&&n?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ul(n){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||lu.call(this),n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ro),this._weekdaysMinStrictRegex&&n?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function lu(){function u(n,t){return t.length-n.length}for(var e=[],i=[],r=[],t=[],f,o,s,h,n=0;n<7;n++)f=ft([2e3,1]).day(n),o=this.weekdaysMin(f,""),s=this.weekdaysShort(f,""),h=this.weekdays(f,""),e.push(o),i.push(s),r.push(h),t.push(o),t.push(s),t.push(h);for(e.sort(u),i.sort(u),r.sort(u),t.sort(u),n=0;n<7;n++)i[n]=gt(i[n]),r[n]=gt(r[n]),t[n]=gt(t[n]);this._weekdaysRegex=new RegExp("^("+t.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function au(){return this.hours()%12||12}function fl(){return this.hours()||24}function uo(n,t){r(n,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function fo(n,t){return t._meridiemParse}function el(n){return(n+"").toLowerCase().charAt(0)==="p"}function ol(n,t,i){return n>11?i?"pm":"PM":i?"am":"AM"}function so(n){return n?n.toLowerCase().replace("_","-"):n}function hl(n){for(var r=0,i,t,f,u;r<n.length;){for(u=so(n[r]).split("-"),i=u.length,t=so(n[r+1]),t=t?t.split("-"):null;i>0;){if(f=ho(u.slice(0,i).join("-")),f)return f;if(t&&t.length>=i&&cf(u,t,!0)>=i-1)break;i--}r++}return null}function ho(n){var t=null;if(!a[n]&&typeof module!="undefined"&&module&&module.exports)try{t=cr._abbr,require("./locale/"+n),oi(t)}catch(i){}return a[n]}function oi(n,t){var i;return n&&(i=p(t)?wt(n):vu(n,t),i&&(cr=i)),cr._abbr}function vu(n,t){if(t!==null){var i=oo;if(t.abbr=n,a[n]!=null)af("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=a[n]._config;else if(t.parentLocale!=null)if(a[t.parentLocale]!=null)i=a[t.parentLocale]._config;else return wi[t.parentLocale]||(wi[t.parentLocale]=[]),wi[t.parentLocale].push({name:n,config:t}),null;return a[n]=new nu(vf(i,t)),wi[n]&&wi[n].forEach(function(n){vu(n.name,n.config)}),oi(n),a[n]}return delete a[n],null}function cl(n,t){if(t!=null){var i,r=oo;a[n]!=null&&(r=a[n]._config),t=vf(r,t),i=new nu(t),i.parentLocale=a[n],a[n]=i,oi(n)}else a[n]!=null&&(a[n].parentLocale!=null?a[n]=a[n].parentLocale:a[n]!=null&&delete a[n]);return a[n]}function wt(n){var t;if(n&&n._locale&&n._locale._abbr&&(n=n._locale._abbr),!n)return cr;if(!tt(n)){if(t=ho(n),t)return t;n=[n]}return hl(n)}function ll(){return pf(a)}function yu(n){var i,t=n._a;return t&&u(n).overflow===-2&&(i=t[lt]<0||t[lt]>11?lt:t[ot]<1||t[ot]>su(t[it],t[lt])?ot:t[v]<0||t[v]>24||t[v]===24&&(t[rt]!==0||t[at]!==0||t[ni]!==0)?v:t[rt]<0||t[rt]>59?rt:t[at]<0||t[at]>59?at:t[ni]<0||t[ni]>999?ni:-1,u(n)._overflowDayOfYear&&(i<it||i>ot)&&(i=ot),u(n)._overflowWeeks&&i===-1&&(i=kh),u(n)._overflowWeekday&&i===-1&&(i=dh),u(n).overflow=i),n}function co(n){var t,r,o=n._i,i=al.exec(o)||vl.exec(o),s,e,f,h;if(i){for(u(n).iso=!0,t=0,r=lr.length;t<r;t++)if(lr[t][1].exec(i[1])){e=lr[t][0],s=lr[t][2]!==!1;break}if(e==null){n._isValid=!1;return}if(i[3]){for(t=0,r=pu.length;t<r;t++)if(pu[t][1].exec(i[3])){f=(i[2]||" ")+pu[t][0];break}if(f==null){n._isValid=!1;return}}if(!s&&f!=null){n._isValid=!1;return}if(i[4])if(yl.exec(i[4]))h="Z";else{n._isValid=!1;return}n._f=e+(f||"")+(h||""),ar(n)}else n._isValid=!1}function ao(n){var f,t,e,o,s,h,c={" GMT":" +0000"," EDT":" -0400"," EST":" -0500"," CDT":" -0500"," CST":" -0600"," MDT":" -0600"," MST":" -0700"," PDT":" -0700"," PST":" -0800"},i,r,l,a;if(f=n._i.replace(/\([^\)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s|\s$/g,""),t=lo.exec(f),t){if(e=t[1]?"ddd"+(t[1].length===5?", ":" "):"",o="D MMM "+(t[2].length>10?"YYYY ":"YY "),s="HH:mm"+(t[4]?":ss":""),t[1]&&(l=new Date(t[2]),a=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"][l.getDay()],t[1].substr(0,3)!==a)){u(n).weekdayMismatch=!0,n._isValid=!1;return}switch(t[5].length){case 2:r===0?i=" +0000":(r="YXWVUTSRQPONZABCDEFGHIKLM".indexOf(t[5][1].toUpperCase())-12,i=(r<0?" -":" +")+(""+r).replace(/^-?/,"0").match(/..$/)[0]+"00");break;case 4:i=c[t[5]];break;default:i=c[" GMT"]}t[5]=i,n._i=t.splice(1).join(""),h=" ZZ",n._f=e+o+s+h,ar(n),u(n).rfc2822=!0}else n._isValid=!1}function wl(n){var i=pl.exec(n._i);if(i!==null){n._d=new Date(+i[1]);return}if(co(n),n._isValid===!1)delete n._isValid;else return;if(ao(n),n._isValid===!1)delete n._isValid;else return;t.createFromInputFallback(n)}function si(n,t,i){return n!=null?n:t!=null?t:i}function bl(n){var i=new Date(t.now());return n._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function wu(n){var t,i,r=[],f,e;if(!n._d){for(f=bl(n),n._w&&n._a[ot]==null&&n._a[lt]==null&&kl(n),n._dayOfYear!=null&&(e=si(n._a[it],f[it]),(n._dayOfYear>yi(e)||n._dayOfYear===0)&&(u(n)._overflowDayOfYear=!0),i=sr(e,0,n._dayOfYear),n._a[lt]=i.getUTCMonth(),n._a[ot]=i.getUTCDate()),t=0;t<3&&n._a[t]==null;++t)n._a[t]=r[t]=f[t];for(;t<7;t++)n._a[t]=r[t]=n._a[t]==null?t===2?1:0:n._a[t];n._a[v]===24&&n._a[rt]===0&&n._a[at]===0&&n._a[ni]===0&&(n._nextDay=!0,n._a[v]=0),n._d=(n._useUTC?sr:oc).apply(null,r),n._tzm!=null&&n._d.setUTCMinutes(n._d.getUTCMinutes()-n._tzm),n._nextDay&&(n._a[v]=24)}}function kl(n){var t,o,f,i,r,e,h,s,l;t=n._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,e=4,o=si(t.GG,n._a[it],pi(c(),1,4).year),f=si(t.W,1),i=si(t.E,1),(i<1||i>7)&&(s=!0)):(r=n._locale._week.dow,e=n._locale._week.doy,l=pi(c(),r,e),o=si(t.gg,n._a[it],l.year),f=si(t.w,l.week),t.d!=null?(i=t.d,(i<0||i>6)&&(s=!0)):t.e!=null?(i=t.e+r,(t.e<0||t.e>6)&&(s=!0)):i=r),f<1||f>ti(o,r,e)?u(n)._overflowWeeks=!0:s!=null?u(n)._overflowWeekday=!0:(h=be(o,f,i,r,e),n._a[it]=h.year,n._dayOfYear=h.dayOfYear)}function ar(n){if(n._f===t.ISO_8601){co(n);return}if(n._f===t.RFC_2822){ao(n);return}n._a=[],u(n).empty=!0;for(var i=""+n._i,r,f,s,c=i.length,h=0,o=re(n._f,n._locale).match(ie)||[],e=0;e<o.length;e++)f=o[e],r=(i.match(ph(f,n))||[])[0],r&&(s=i.substr(0,i.indexOf(r)),s.length>0&&u(n).unusedInput.push(s),i=i.slice(i.indexOf(r)+r.length),h+=r.length),ei[f]?(r?u(n).empty=!1:u(n).unusedTokens.push(f),bh(f,r,n)):n._strict&&!r&&u(n).unusedTokens.push(f);u(n).charsLeftOver=c-h,i.length>0&&u(n).unusedInput.push(i),n._a[v]<=12&&u(n).bigHour===!0&&n._a[v]>0&&(u(n).bigHour=undefined),u(n).parsedDateParts=n._a.slice(0),u(n).meridiem=n._meridiem,n._a[v]=dl(n._locale,n._a[v],n._meridiem),wu(n),yu(n)}function dl(n,t,i){var r;return i==null?t:n.meridiemHour!=null?n.meridiemHour(t,i):n.isPM!=null?(r=n.isPM(i),r&&t<12&&(t+=12),r||t!==12||(t=0),t):t}function gl(n){var t,e,f,r,i;if(n._f.length===0){u(n).invalidFormat=!0,n._d=new Date(NaN);return}for(r=0;r<n._f.length;r++)(i=0,t=dr({},n),n._useUTC!=null&&(t._useUTC=n._useUTC),t._f=n._f[r],ar(t),kr(t))&&(i+=u(t).charsLeftOver,i+=u(t).unusedTokens.length*10,u(t).score=i,(f==null||i<f)&&(f=i,e=t));yt(n,e||t)}function na(n){if(!n._d){var t=tu(n._i);n._a=of([t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),wu(n)}}function ta(n){var t=new li(yu(vo(n)));return t._nextDay&&(t.add(1,"d"),t._nextDay=undefined),t}function vo(n){var t=n._i,i=n._f;return(n._locale=n._locale||wt(n._l),t===null||i===undefined&&t==="")?ki({nullInput:!0}):(typeof t=="string"&&(n._i=t=n._locale.preparse(t)),pt(t))?new li(yu(t)):(bi(t)?n._d=t:tt(i)?gl(n):i?ar(n):ia(n),kr(n)||(n._d=null),n)}function ia(n){var i=n._i;p(i)?n._d=new Date(t.now()):bi(i)?n._d=new Date(i.valueOf()):typeof i=="string"?wl(n):tt(i)?(n._a=of(i.slice(0),function(n){return parseInt(n,10)}),wu(n)):ci(i)?na(n):dt(i)?n._d=new Date(i):t.createFromInputFallback(n)}function yo(n,t,i,r,u){var f={};return(i===!0||i===!1)&&(r=i,i=undefined),(ci(n)&&nh(n)||tt(n)&&n.length===0)&&(n=undefined),f._isAMomentObject=!0,f._useUTC=f._isUTC=u,f._l=i,f._i=n,f._f=t,f._strict=r,ta(f)}function c(n,t,i,r){return yo(n,t,i,r,!1)}function bo(n,t){var r,i;if(t.length===1&&tt(t[0])&&(t=t[0]),!t.length)return c();for(r=t[0],i=1;i<t.length;++i)(!t[i].isValid()||t[i][n](r))&&(r=t[i]);return r}function ra(){var n=[].slice.call(arguments,0);return bo("isBefore",n)}function ua(){var n=[].slice.call(arguments,0);return bo("isAfter",n)}function fa(n){var i,r,t;for(i in n)if(!(hi.indexOf(i)!==-1&&(n[i]==null||!isNaN(n[i]))))return!1;for(r=!1,t=0;t<hi.length;++t)if(n[hi[t]]){if(r)return!1;parseFloat(n[hi[t]])!==f(n[hi[t]])&&(r=!0)}return!0}function ea(){return this._isValid}function oa(){return st(NaN)}function vr(n){var t=tu(n),i=t.year||0,r=t.quarter||0,u=t.month||0,f=t.week||0,e=t.day||0,o=t.hour||0,s=t.minute||0,h=t.second||0,c=t.millisecond||0;this._isValid=fa(t),this._milliseconds=+c+h*1e3+s*6e4+o*36e5,this._days=+e+f*7,this._months=+u+r*3+i*12,this._data={},this._locale=wt(),this._bubble()}function bu(n){return n instanceof vr}function ku(n){return n<0?Math.round(-1*n)*-1:Math.round(n)}function go(n,t){r(n,0,0,function(){var n=this.utcOffset(),i="+";return n<0&&(n=-n,i="-"),i+ct(~~(n/60),2)+t+ct(~~n%60,2)})}function du(n,t){var i=(t||"").match(n);if(i===null)return null;var e=i[i.length-1]||[],r=(e+"").match(ns)||["-",0,0],u=+(r[1]*60)+f(r[2]);return u===0?0:r[0]==="+"?u:-u}function gu(n,i){var r,u;return i._isUTC?(r=i.clone(),u=(pt(n)||bi(n)?n.valueOf():c(n).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+u),t.updateOffset(r,!1),r):c(n).local()}function nf(n){return-Math.round(n._d.getTimezoneOffset()/15)*15}function sa(n,i,r){var u=this._offset||0,f;if(!this.isValid())return n!=null?this:NaN;if(n!=null){if(typeof n=="string"){if(n=du(er,n),n===null)return this}else Math.abs(n)<16&&!r&&(n=n*60);return!this._isUTC&&i&&(f=nf(this)),this._offset=n,this._isUTC=!0,f!=null&&this.add(f,"m"),u!==n&&(!i||this._changeInProgress?es(this,st(n-u,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?u:nf(this)}function ha(n,t){return n!=null?(typeof n!="string"&&(n=-n),this.utcOffset(n,t),this):-this.utcOffset()}function ca(n){return this.utcOffset(0,n)}function la(n){return this._isUTC&&(this.utcOffset(0,n),this._isUTC=!1,n&&this.subtract(nf(this),"m")),this}function aa(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var n=du(yh,this._i);n!=null?this.utcOffset(n):this.utcOffset(0,!0)}return this}function va(n){return this.isValid()?(n=n?c(n).utcOffset():0,(this.utcOffset()-n)%60==0):!1}function ya(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function pa(){var n,t;return p(this._isDSTShifted)?(n={},dr(n,this),n=vo(n),n._a?(t=n._isUTC?ft(n._a):c(n._a),this._isDSTShifted=this.isValid()&&cf(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted):this._isDSTShifted}function wa(){return this.isValid()?!this._isUTC:!1}function ba(){return this.isValid()?this._isUTC:!1}function ts(){return this.isValid()?this._isUTC&&this._offset===0:!1}function st(n,t){var i=n,r=null,u,e,o;return bu(n)?i={ms:n._milliseconds,d:n._days,M:n._months}:dt(n)?(i={},t?i[t]=n:i.milliseconds=n):(r=is.exec(n))?(u=r[1]==="-"?-1:1,i={y:0,d:f(r[ot])*u,h:f(r[v])*u,m:f(r[rt])*u,s:f(r[at])*u,ms:f(ku(r[ni]*1e3))*u}):(r=rs.exec(n))?(u=r[1]==="-"?-1:1,i={y:ii(r[2],u),M:ii(r[3],u),w:ii(r[4],u),d:ii(r[5],u),h:ii(r[6],u),m:ii(r[7],u),s:ii(r[8],u)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(o=ka(c(i.from),c(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),e=new vr(i),bu(n)&&l(n,"_locale")&&(e._locale=n._locale),e}function ii(n,t){var i=n&&parseFloat(n.replace(",","."));return(isNaN(i)?0:i)*t}function us(n,t){var i={milliseconds:0,months:0};return i.months=t.month()-n.month()+(t.year()-n.year())*12,n.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+n.clone().add(i.months,"M"),i}function ka(n,t){var i;return(n.isValid()&&t.isValid())?(t=gu(t,n),n.isBefore(t)?i=us(n,t):(i=us(t,n),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function fs(n,t){return function(i,r){var u,f;return r===null||isNaN(+r)||(af(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),f=i,i=r,r=f),i=typeof i=="string"?+i:i,u=st(i,r),es(this,u,n),this}}function es(n,i,r,u){var o=i._milliseconds,f=ku(i._days),e=ku(i._months);n.isValid()&&(u=u==null?!0:u,o&&n._d.setTime(n._d.valueOf()+o*r),f&&te(n,"Date",nr(n,"Date")+f*r),e&&le(n,nr(n,"Month")+e*r),u&&t.updateOffset(n,f||e))}function da(n,t){var i=n.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function ga(n,i){var u=n||c(),f=gu(u,this).startOf("day"),r=t.calendarFormat(this,f)||"sameElse",e=i&&(et(i[r])?i[r].call(this,u):i[r]);return this.format(e||this.localeData().calendar(r,this,c(u)))}function nv(){return new li(this)}function tv(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf()):!1}function iv(n,t){var i=pt(n)?n:c(n);return(this.isValid()&&i.isValid())?(t=nt(p(t)?"millisecond":t),t==="millisecond"?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf()):!1}function rv(n,t,i,r){return r=r||"()",(r[0]==="("?this.isAfter(n,i):!this.isBefore(n,i))&&(r[1]===")"?this.isBefore(t,i):!this.isAfter(t,i))}function uv(n,t){var i=pt(n)?n:c(n),r;return(this.isValid()&&i.isValid())?(t=nt(t||"millisecond"),t==="millisecond"?this.valueOf()===i.valueOf():(r=i.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function fv(n,t){return this.isSame(n,t)||this.isAfter(n,t)}function ev(n,t){return this.isSame(n,t)||this.isBefore(n,t)}function ov(n,t,i){var f,e,u,r;return this.isValid()?(f=gu(n,this),!f.isValid())?NaN:(e=(f.utcOffset()-this.utcOffset())*6e4,t=nt(t),t==="year"||t==="month"||t==="quarter"?(r=sv(this,f),t==="quarter"?r=r/3:t==="year"&&(r=r/12)):(u=this-f,r=t==="second"?u/1e3:t==="minute"?u/6e4:t==="hour"?u/36e5:t==="day"?(u-e)/864e5:t==="week"?(u-e)/6048e5:u),i?r:d(r)):NaN}function sv(n,t){var r=(t.year()-n.year())*12+(t.month()-n.month()),i=n.clone().add(r,"months"),u,f;return t-i<0?(u=n.clone().add(r-1,"months"),f=(t-i)/(i-u)):(u=n.clone().add(r+1,"months"),f=(t-i)/(u-i)),-(r+f)||0}function hv(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function cv(){if(!this.isValid())return null;var n=this.clone().utc();return n.year()<0||n.year()>9999?uu(n,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):et(Date.prototype.toISOString)?this.toDate().toISOString():uu(n,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function lv(){var n,t;if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";n="moment",t="",this.isLocal()||(n=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z");var i="["+n+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",u=t+'[")]';return this.format(i+r+"-MM-DD[T]HH:mm:ss.SSS"+u)}function av(n){n||(n=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=uu(this,n);return this.localeData().postformat(i)}function vv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?st({to:this,from:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function yv(n){return this.from(c(),n)}function pv(n,t){return this.isValid()&&(pt(n)&&n.isValid()||c(n).isValid())?st({from:this,to:n}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function wv(n){return this.to(c(),n)}function hs(n){var t;return n===undefined?this._locale._abbr:(t=wt(n),t!=null&&(this._locale=t),this)}function cs(){return this._locale}function bv(n){n=nt(n);switch(n){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return n==="week"&&this.weekday(0),n==="isoWeek"&&this.isoWeekday(1),n==="quarter"&&this.month(Math.floor(this.month()/3)*3),this}function kv(n){return(n=nt(n),n===undefined||n==="millisecond")?this:(n==="date"&&(n="day"),this.startOf(n).add(1,n==="isoWeek"?"week":n).subtract(1,"ms"))}function dv(){return this._d.valueOf()-(this._offset||0)*6e4}function gv(){return Math.floor(this.valueOf()/1e3)}function ny(){return new Date(this.valueOf())}function ty(){var n=this;return[n.year(),n.month(),n.date(),n.hour(),n.minute(),n.second(),n.millisecond()]}function iy(){var n=this;return{years:n.year(),months:n.month(),date:n.date(),hours:n.hours(),minutes:n.minutes(),seconds:n.seconds(),milliseconds:n.milliseconds()}}function ry(){return this.isValid()?this.toISOString():null}function uy(){return kr(this)}function fy(){return yt({},u(this))}function ey(){return u(this).overflow}function oy(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function yr(n,t){r(0,[n,n.length],0,t)}function sy(n){return ls.call(this,n,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function hy(n){return ls.call(this,n,this.isoWeek(),this.isoWeekday(),1,4)}function cy(){return ti(this.year(),1,4)}function ly(){var n=this.localeData()._week;return ti(this.year(),n.dow,n.doy)}function ls(n,t,i,r,u){var f;return n==null?pi(this,r,u).year:(f=ti(n,r,u),t>f&&(t=f),ay.call(this,n,t,i,r,u))}function ay(n,t,i,r,u){var e=be(n,t,i,r,u),f=sr(e.year,0,e.dayOfYear);return this.year(f.getUTCFullYear()),this.month(f.getUTCMonth()),this.date(f.getUTCDate()),this}function vy(n){return n==null?Math.ceil((this.month()+1)/3):this.month((n-1)*3+this.month()%3)}function yy(n){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return n==null?t:this.add(n-t,"d")}function py(n,t){t[ni]=f(("0."+n)*1e3)}function wy(){return this._isUTC?"UTC":""}function by(){return this._isUTC?"Coordinated Universal Time":""}function ky(n){return c(n*1e3)}function dy(){return c.apply(null,arguments).parseZone()}function ps(n){return n}function pr(n,t,i,r){var u=wt(),f=ft().set(r,t);return u[i](f,n)}function ws(n,t,i){if(dt(n)&&(t=n,n=undefined),n=n||"",t!=null)return pr(n,t,i,"month");for(var u=[],r=0;r<12;r++)u[r]=pr(n,r,i,"month");return u}function uf(n,t,i,r){var o,f,u,e;if(typeof n=="boolean"?(dt(t)&&(i=t,t=undefined),t=t||""):(t=n,i=t,n=!1,dt(t)&&(i=t,t=undefined),t=t||""),o=wt(),f=n?o._week.dow:0,i!=null)return pr(t,(i+f)%7,r,"day");for(e=[],u=0;u<7;u++)e[u]=pr(t,(u+f)%7,r,"day");return e}function gy(n,t){return ws(n,t,"months")}function np(n,t){return ws(n,t,"monthsShort")}function tp(n,t,i){return uf(n,t,i,"weekdays")}function ip(n,t,i){return uf(n,t,i,"weekdaysShort")}function rp(n,t,i){return uf(n,t,i,"weekdaysMin")}function up(){var n=this._data;return this._milliseconds=ht(this._milliseconds),this._days=ht(this._days),this._months=ht(this._months),n.milliseconds=ht(n.milliseconds),n.seconds=ht(n.seconds),n.minutes=ht(n.minutes),n.hours=ht(n.hours),n.months=ht(n.months),n.years=ht(n.years),this}function bs(n,t,i,r){var u=st(t,i);return n._milliseconds+=r*u._milliseconds,n._days+=r*u._days,n._months+=r*u._months,n._bubble()}function fp(n,t){return bs(this,n,t,1)}function ep(n,t){return bs(this,n,t,-1)}function ks(n){return n<0?Math.floor(n):Math.ceil(n)}function op(){var r=this._milliseconds,n=this._days,t=this._months,i=this._data,u,f,e,s,o;return r>=0&&n>=0&&t>=0||r<=0&&n<=0&&t<=0||(r+=ks(ff(t)+n)*864e5,n=0,t=0),i.milliseconds=r%1e3,u=d(r/1e3),i.seconds=u%60,f=d(u/60),i.minutes=f%60,e=d(f/60),i.hours=e%24,n+=d(e/24),o=d(ds(n)),t+=o,n-=ks(ff(o)),s=d(t/12),t%=12,i.days=n,i.months=t,i.years=s,this}function ds(n){return n*4800/146097}function ff(n){return n*146097/4800}function sp(n){if(!this.isValid())return NaN;var t,r,i=this._milliseconds;if(n=nt(n),n==="month"||n==="year")return t=this._days+i/864e5,r=this._months+ds(t),n==="month"?r:r/12;t=this._days+Math.round(ff(this._months));switch(n){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+n);}}function hp(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+f(this._months/12)*31536e6:NaN}function kt(n){return function(){return this.as(n)}}function kp(n){return n=nt(n),this.isValid()?this[n+"s"]():NaN}function ri(n){return function(){return this.isValid()?this._data[n]:NaN}}function fw(){return d(this.days()/7)}function ew(n,t,i,r,u){return u.relativeTime(t||1,!!i,n,r)}function ow(n,t,i){var r=st(n).abs(),u=vt(r.as("s")),e=vt(r.as("m")),o=vt(r.as("h")),s=vt(r.as("d")),h=vt(r.as("M")),c=vt(r.as("y")),f=u<=ut.ss&&["s",u]||u<ut.s&&["ss",u]||e<=1&&["m"]||e<ut.m&&["mm",e]||o<=1&&["h"]||o<ut.h&&["hh",o]||s<=1&&["d"]||s<ut.d&&["dd",s]||h<=1&&["M"]||h<ut.M&&["MM",h]||c<=1&&["y"]||["yy",c];return f[2]=t,f[3]=+n>0,f[4]=i,ew.apply(null,f)}function sw(n){return n===undefined?vt:typeof n=="function"?(vt=n,!0):!1}function hw(n,t){return ut[n]===undefined?!1:t===undefined?ut[n]:(ut[n]=t,n==="s"&&(ut.ss=t-1),!0)}function cw(n){if(!this.isValid())return this.localeData().invalidDate();var t=this.localeData(),i=ow(this,!n,t);return n&&(i=t.pastFuture(+this,i)),t.postformat(i)}function br(){if(!this.isValid())return this.localeData().invalidDate();var t=wr(this._milliseconds)/1e3,a=wr(this._days),i=wr(this._months),n,e,o;n=d(t/60),e=d(n/60),t%=60,n%=60,o=d(i/12),i%=12;var s=o,h=i,c=a,r=e,u=n,f=t,l=this.asSeconds();return l?(l<0?"-":"")+"P"+(s?s+"Y":"")+(h?h+"M":"")+(c?c+"D":"")+(r||u||f?"T":"")+(r?r+"H":"")+(u?u+"M":"")+(f?f+"S":""):"P0D"}var ef,sf,hf,di,gi,gr,yf,pf,wf,bf,kf,df,gf,ne,ui,iu,or,y,hu,he,ce,ve,ye,cu,ke,de,ge,no,to,io,ro,eo,lo,po,wo,ko,hi,ns,is,rs,os,ss,tf,rf,as,vs,bt,ys,n,o,ht,vt,ut,wr,e;sf=Array.prototype.some?Array.prototype.some:function(n){for(var i=Object(this),r=i.length>>>0,t=0;t<r;t++)if(t in i&&n.call(this,i[t],t,i))return!0;return!1},hf=sf,di=t.momentProperties=[],gi=!1,gr={},t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,yf=Object.keys?Object.keys:function(n){var t,i=[];for(t in n)l(n,t)&&i.push(t);return i},pf=yf,wf={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},bf={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},kf="Invalid date",df="%d",gf=/\d{1,2}/,ne={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ui={},iu={};var ie=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,tr=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ru={},ei={};var ue=/\d/,k=/\d\d/,fe=/\d{3}/,fu=/\d{4}/,ir=/[+-]?\d{6}/,s=/\d\d?/,ee=/\d\d\d\d?/,oe=/\d\d\d\d\d\d?/,rr=/\d{1,3}/,eu=/\d{1,4}/,ur=/[+-]?\d{1,6}/,fr=/[+-]?\d+/,yh=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ai=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,ou={};or={};var it=0,lt=1,ot=2,v=3,rt=4,at=5,ni=6,kh=7,dh=8,se;se=Array.prototype.indexOf?Array.prototype.indexOf:function(n){for(var t=0;t<this.length;++t)if(this[t]===n)return t;return-1},y=se,r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(n){return this.localeData().monthsShort(this,n)}),r("MMMM",0,0,function(n){return this.localeData().months(this,n)}),w("month","M"),b("month",8),i("M",s),i("MM",s,k),i("MMM",function(n,t){return t.monthsShortRegex(n)}),i("MMMM",function(n,t){return t.monthsRegex(n)}),h(["M","MM"],function(n,t){t[lt]=f(n)-1}),h(["MMM","MMMM"],function(n,t,i,r){var f=i._locale.monthsParse(n,r,i._strict);f!=null?t[lt]=f:u(i).invalidMonth=n}),hu=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,he="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ce="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ve=ai,ye=ai,r("Y",0,0,function(){var n=this.year();return n<=9999?""+n:"+"+n}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),w("year","y"),b("year",1),i("Y",fr),i("YY",s,k),i("YYYY",eu,fu),i("YYYYY",ur,ir),i("YYYYYY",ur,ir),h(["YYYYY","YYYYYY"],it),h("YYYY",function(n,i){i[it]=n.length===2?t.parseTwoDigitYear(n):f(n)}),h("YY",function(n,i){i[it]=t.parseTwoDigitYear(n)}),h("Y",function(n,t){t[it]=parseInt(n,10)}),t.parseTwoDigitYear=function(n){return f(n)+(f(n)>68?1900:2e3)},cu=fi("FullYear",!0),r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),w("week","w"),w("isoWeek","W"),b("week",5),b("isoWeek",5),i("w",s),i("ww",s,k),i("W",s),i("WW",s,k),vi(["w","ww","W","WW"],function(n,t,i,r){t[r.substr(0,1)]=f(n)}),ke={dow:0,doy:6},r("d",0,"do","day"),r("dd",0,0,function(n){return this.localeData().weekdaysMin(this,n)}),r("ddd",0,0,function(n){return this.localeData().weekdaysShort(this,n)}),r("dddd",0,0,function(n){return this.localeData().weekdays(this,n)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),w("day","d"),w("weekday","e"),w("isoWeekday","E"),b("day",11),b("weekday",11),b("isoWeekday",11),i("d",s),i("e",s),i("E",s),i("dd",function(n,t){return t.weekdaysMinRegex(n)}),i("ddd",function(n,t){return t.weekdaysShortRegex(n)}),i("dddd",function(n,t){return t.weekdaysRegex(n)}),vi(["dd","ddd","dddd"],function(n,t,i,r){var f=i._locale.weekdaysParse(n,r,i._strict);f!=null?t.d=f:u(i).invalidWeekday=n}),vi(["d","e","E"],function(n,t,i,r){t[r]=f(n)}),de="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ge="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),no="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),to=ai,io=ai,ro=ai,r("H",["HH",2],0,"hour"),r("h",["hh",2],0,au),r("k",["kk",2],0,fl),r("hmm",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)}),r("hmmss",0,0,function(){return""+au.apply(this)+ct(this.minutes(),2)+ct(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+ct(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+ct(this.minutes(),2)+ct(this.seconds(),2)}),uo("a",!0),uo("A",!1),w("hour","h"),b("hour",13),i("a",fo),i("A",fo),i("H",s),i("h",s),i("k",s),i("HH",s,k),i("hh",s,k),i("kk",s,k),i("hmm",ee),i("hmmss",oe),i("Hmm",ee),i("Hmmss",oe),h(["H","HH"],v),h(["k","kk"],function(n,t){var i=f(n);t[v]=i===24?0:i}),h(["a","A"],function(n,t,i){i._isPm=i._locale.isPM(n),i._meridiem=n}),h(["h","hh"],function(n,t,i){t[v]=f(n),u(i).bigHour=!0}),h("hmm",function(n,t,i){var r=n.length-2;t[v]=f(n.substr(0,r)),t[rt]=f(n.substr(r)),u(i).bigHour=!0}),h("hmmss",function(n,t,i){var r=n.length-4,e=n.length-2;t[v]=f(n.substr(0,r)),t[rt]=f(n.substr(r,2)),t[at]=f(n.substr(e)),u(i).bigHour=!0}),h("Hmm",function(n,t){var i=n.length-2;t[v]=f(n.substr(0,i)),t[rt]=f(n.substr(i))}),h("Hmmss",function(n,t){var i=n.length-4,r=n.length-2;t[v]=f(n.substr(0,i)),t[rt]=f(n.substr(i,2)),t[at]=f(n.substr(r))}),eo=/[ap]\.?m?\.?/i;var sl=fi("Hours",!0),oo={calendar:wf,longDateFormat:bf,invalidDate:kf,ordinal:df,dayOfMonthOrdinalParse:gf,relativeTime:ne,months:he,monthsShort:ce,week:ke,weekdays:de,weekdaysMin:no,weekdaysShort:ge,meridiemParse:eo},a={},wi={},cr;var al=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vl=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yl=/Z|[+-]\d\d(?::?\d\d)?/,lr=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],pu=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],pl=/^\/?Date\((\-?\d+)/i;for(lo=/^((?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d?\d\s(?:Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(?:\d\d)?\d\d\s)(\d\d:\d\d)(\:\d\d)?(\s(?:UT|GMT|[ECMP][SD]T|[A-IK-Za-ik-z]|[+-]\d{4}))$/,t.createFromInputFallback=g("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(n){n._d=new Date(n._i+(n._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){},po=g("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n<this?this:n:ki()}),wo=g("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var n=c.apply(null,arguments);return this.isValid()&&n.isValid()?n>this?this:n:ki()}),ko=function(){return Date.now?Date.now():+new Date},hi=["year","quarter","month","week","day","hour","minute","second","millisecond"],go("Z",":"),go("ZZ",""),i("Z",er),i("ZZ",er),h(["Z","ZZ"],function(n,t,i){i._useUTC=!0,i._tzm=du(er,n)}),ns=/([\+\-]|\d\d)/gi,t.updateOffset=function(){},is=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,rs=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/,st.fn=vr.prototype,st.invalid=oa,os=fs(1,"add"),ss=fs(-1,"subtract"),t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",tf=g("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(n){return n===undefined?this.localeData():this.locale(n)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),yr("gggg","weekYear"),yr("ggggg","weekYear"),yr("GGGG","isoWeekYear"),yr("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),b("weekYear",1),b("isoWeekYear",1),i("G",fr),i("g",fr),i("GG",s,k),i("gg",s,k),i("GGGG",eu,fu),i("gggg",eu,fu),i("GGGGG",ur,ir),i("ggggg",ur,ir),vi(["gggg","ggggg","GGGG","GGGGG"],function(n,t,i,r){t[r.substr(0,2)]=f(n)}),vi(["gg","GG"],function(n,i,r,u){i[u]=t.parseTwoDigitYear(n)}),r("Q",0,"Qo","quarter"),w("quarter","Q"),b("quarter",7),i("Q",ue),h("Q",function(n,t){t[lt]=(f(n)-1)*3}),r("D",["DD",2],"Do","date"),w("date","D"),b("date",9),i("D",s),i("DD",s,k),i("Do",function(n,t){return n?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),h(["D","DD"],ot),h("Do",function(n,t){t[ot]=f(n.match(s)[0],10)}),rf=fi("Date",!0),r("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),b("dayOfYear",4),i("DDD",rr),i("DDDD",fe),h(["DDD","DDDD"],function(n,t,i){i._dayOfYear=f(n)}),r("m",["mm",2],0,"minute"),w("minute","m"),b("minute",14),i("m",s),i("mm",s,k),h(["m","mm"],rt),as=fi("Minutes",!1),r("s",["ss",2],0,"second"),w("second","s"),b("second",15),i("s",s),i("ss",s,k),h(["s","ss"],at),vs=fi("Seconds",!1),r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return this.millisecond()*10}),r(0,["SSSSS",5],0,function(){return this.millisecond()*100}),r(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),r(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),r(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),r(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),w("millisecond","ms"),b("millisecond",16),i("S",rr,ue),i("SS",rr,k),i("SSS",rr,fe),bt="SSSS";bt.length<=9;bt+="S")i(bt,/\d+/);for(bt="S";bt.length<=9;bt+="S")h(bt,py);ys=fi("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName"),n=li.prototype,n.add=os,n.calendar=ga,n.clone=nv,n.diff=ov,n.endOf=kv,n.format=av,n.from=vv,n.fromNow=yv,n.to=pv,n.toNow=wv,n.get=ch,n.invalidAt=ey,n.isAfter=tv,n.isBefore=iv,n.isBetween=rv,n.isSame=uv,n.isSameOrAfter=fv,n.isSameOrBefore=ev,n.isValid=uy,n.lang=tf,n.locale=hs,n.localeData=cs,n.max=wo,n.min=po,n.parsingFlags=fy,n.set=lh,n.startOf=bv,n.subtract=ss,n.toArray=ty,n.toObject=iy,n.toDate=ny,n.toISOString=cv,n.inspect=lv,n.toJSON=ry,n.toString=hv,n.unix=gv,n.valueOf=dv,n.creationData=oy,n.year=cu,n.isLeapYear=ec,n.weekYear=sy,n.isoWeekYear=hy,n.quarter=n.quarters=vy,n.month=ae,n.daysInMonth=rc,n.week=n.weeks=lc,n.isoWeek=n.isoWeeks=ac,n.weeksInYear=ly,n.isoWeeksInYear=cy,n.date=rf,n.day=n.days=gc,n.weekday=nl,n.isoWeekday=tl,n.dayOfYear=yy,n.hour=n.hours=sl,n.minute=n.minutes=as,n.second=n.seconds=vs,n.millisecond=n.milliseconds=ys,n.utcOffset=sa,n.utc=ca,n.local=la,n.parseZone=aa,n.hasAlignedHourOffset=va,n.isDST=ya,n.isLocal=wa,n.isUtcOffset=ba,n.isUtc=ts,n.isUTC=ts,n.zoneAbbr=wy,n.zoneName=by,n.dates=g("dates accessor is deprecated. Use date instead.",rf),n.months=g("months accessor is deprecated. Use month instead",ae),n.years=g("years accessor is deprecated. Use year instead",cu),n.zone=g("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",ha),n.isDSTShifted=g("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",pa),o=nu.prototype,o.calendar=rh,o.longDateFormat=uh,o.invalidDate=fh,o.ordinal=eh,o.preparse=ps,o.postformat=ps,o.relativeTime=oh,o.pastFuture=sh,o.set=ih,o.months=gh,o.monthsShort=nc,o.monthsParse=ic,o.monthsRegex=fc,o.monthsShortRegex=uc,o.week=sc,o.firstDayOfYear=cc,o.firstDayOfWeek=hc,o.weekdays=pc,o.weekdaysMin=bc,o.weekdaysShort=wc,o.weekdaysParse=dc,o.weekdaysRegex=il,o.weekdaysShortRegex=rl,o.weekdaysMinRegex=ul,o.isPM=el,o.meridiem=ol,oi("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(n){var t=n%10,i=f(n%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return n+i}}),t.lang=g("moment.lang is deprecated. Use moment.locale instead.",oi),t.langData=g("moment.langData is deprecated. Use moment.localeData instead.",wt),ht=Math.abs;var cp=kt("ms"),lp=kt("s"),ap=kt("m"),vp=kt("h"),yp=kt("d"),pp=kt("w"),wp=kt("M"),bp=kt("y");var dp=ri("milliseconds"),gp=ri("seconds"),nw=ri("minutes"),tw=ri("hours"),iw=ri("days"),rw=ri("months"),uw=ri("years");return vt=Math.round,ut={ss:44,s:45,m:45,h:22,d:26,M:11},wr=Math.abs,e=vr.prototype,e.isValid=ea,e.abs=up,e.add=fp,e.subtract=ep,e.as=sp,e.asMilliseconds=cp,e.asSeconds=lp,e.asMinutes=ap,e.asHours=vp,e.asDays=yp,e.asWeeks=pp,e.asMonths=wp,e.asYears=bp,e.valueOf=hp,e._bubble=op,e.get=kp,e.milliseconds=dp,e.seconds=gp,e.minutes=nw,e.hours=tw,e.days=iw,e.weeks=fw,e.months=rw,e.years=uw,e.humanize=cw,e.toISOString=br,e.toString=br,e.toJSON=br,e.locale=hs,e.localeData=cs,e.toIsoString=g("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",br),e.lang=tf,r("X",0,0,"unix"),r("x",0,0,"valueOf"),i("x",fr),i("X",/[+-]?\d+(\.\d{1,3})?/),h("X",function(n,t,i){i._d=new Date(parseFloat(n,10)*1e3)}),h("x",function(n,t,i){i._d=new Date(f(n))}),t.version="2.18.1",gs(c),t.fn=n,t.min=ra,t.max=ua,t.now=ko,t.utc=ft,t.unix=ky,t.months=gy,t.isDate=bi,t.locale=oi,t.invalid=ki,t.duration=st,t.isMoment=pt,t.weekdays=tp,t.parseZone=dy,t.localeData=wt,t.isDuration=bu,t.monthsShort=np,t.weekdaysMin=rp,t.defineLocale=vu,t.updateLocale=cl,t.locales=ll,t.weekdaysShort=ip,t.normalizeUnits=nt,t.relativeTimeRounding=sw,t.relativeTimeThreshold=hw,t.calendarFormat=da,t.prototype=n,t});
/*!
 * fullPage 2.9.2
 * https://github.com/alvarotrigo/fullPage.js
 * @license MIT licensed
 *
 * Copyright (C) 2015 alvarotrigo.com - A project by Alvaro Trigo
 */
!function(n,t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(i){return t(i,n,n.document,n.Math)}):"object"==typeof exports&&exports?module.exports=t(require("jquery"),n,n.document,n.Math):t(jQuery,n,n.document,n.Math)}("undefined"!=typeof window?window:this,function(n,t,i,r,u){"use strict";var pt="fullpage-wrapper",d="."+pt,wt="fp-scrollable",y="."+wt,g="fp-responsive",ft="fp-notransition",et="fp-destroyed",nt="fp-enabled",ot="fp-viewing",o="active",b="."+o,p="fp-completely",ui="."+p,fi=".section",tt="fp-section",f="."+tt,e=f+b,ei=f+":first",oi=f+":last",bt="fp-tableCell",it="."+bt,si="fp-auto-height",hi="fp-normal-scroll",kt="fp-nav",h="#"+kt,dt="fp-tooltip",ci="."+dt,li="fp-show-active",ai=".slide",st="fp-slide",c="."+st,l=c+b,gt="fp-slides",a="."+gt,ht="fp-slidesContainer",ct="."+ht,lt="fp-table",ni="fp-slidesNav",rt="."+ni,ti=rt+" a",at="fp-controlArrow",k="."+at,vt="fp-prev",vi="."+vt,yi=at+" "+vt,yt=k+vi,ii="fp-next",pi="."+ii,wi=at+" "+ii,ri=k+pi,s=n(t),w=n(i),ut={scrollbars:!0,mouseWheel:!0,hideScrollbars:!1,fadeScrollbars:!1,disableMouse:!0,interactiveScrollbars:!0},v;n.fn.fullpage=function(y){function er(t,i){t||lr(0),eu("autoScrolling",t,i);var r=n(e);y.autoScrolling&&!y.scrollBar?(gi.css({overflow:"hidden",height:"100%"}),vu(tr.recordHistory,"internal"),at.css({"-ms-touch-action":"none","touch-action":"none"}),r.length&&lr(r.position().top)):(gi.css({overflow:"visible",height:"initial"}),vu(!1,"internal"),at.css({"-ms-touch-action":"","touch-action":""}),r.length&&gi.scrollTop(r.position().top))}function vu(n,t){eu("recordHistory",n,t)}function or(n,t){eu("scrollingSpeed",n,t)}function yu(n,t){eu("fitToSection",n,t)}function fo(n){y.lockAnchors=n}function sr(n){n?(eh(),oh()):(fh(),sh())}function pr(t,i){"undefined"!=typeof i?(i=i.replace(/ /g,"").split(","),n.each(i,function(n,i){ge(t,i,"m")})):t?(sr(!0),hh()):(sr(!1),ch())}function pu(t,i){"undefined"!=typeof i?(i=i.replace(/ /g,"").split(","),n.each(i,function(n,i){ge(t,i,"k")})):y.keyboardScrolling=t}function hr(){var t=n(e).prev(f);!t.length&&(y.loopTop||y.continuousVertical)&&(t=n(f).last()),t.length&&rr(t,null,!0)}function wr(){var t=n(e).next(f);!t.length&&(y.loopBottom||y.continuousVertical)&&(t=n(f).first()),t.length&&rr(t,null,!1)}function wu(n,t){or(0,"internal"),br(n,t),or(tr.scrollingSpeed,"internal")}function br(n,t){var i=ye(n);"undefined"!=typeof t?rf(n,t):i.length>0&&rr(i)}function kr(n){gf("right",n)}function dr(n){gf("left",n)}function bu(t){if(!at.hasClass(et)){bi=!0,pi=s.height(),n(f).each(function(){var i=n(this).find(a),t=n(this).find(c);y.verticalCentered&&n(this).find(it).css("height",ae(n(this))+"px"),n(this).css("height",pi+"px"),y.scrollOverflow&&(t.length?t.each(function(){fu(n(this))}):fu(n(this))),t.length>1&&cr(i,i.find(l))});var r=n(e),i=r.index(f);i&&wu(i+1),bi=!1,n.isFunction(y.afterResize)&&t&&y.afterResize.call(at),n.isFunction(y.afterReBuild)&&!t&&y.afterReBuild.call(at)}}function gr(t){var i=vi.hasClass(g);t?i||(er(!1,"internal"),yu(!1,"internal"),n(h).hide(),vi.addClass(g),n.isFunction(y.afterResponsive)&&y.afterResponsive.call(at,t)):i&&(er(tr.autoScrolling,"internal"),yu(tr.autoScrolling,"internal"),n(h).show(),vi.removeClass(g),n.isFunction(y.afterResponsive)&&y.afterResponsive.call(at,t))}function eo(){y.css3&&(y.css3=uh()),y.scrollBar=y.scrollBar||y.hybrid,so(),ho(),pr(!0),er(y.autoScrolling,"internal");var t=n(e).find(l);t.length&&(0!==n(e).index(f)||0===n(e).index(f)&&0!==t.index())&&of(t),se(),we(),"complete"===i.readyState&&ie(),s.on("load",ie)}function oo(){s.on("scroll",kf).on("hashchange",re).blur(vs).resize(oe),w.keydown(hs).keyup(ls).on("click touchstart",h+" a",ys).on("click touchstart",ti,ps).on("click",ci,cs),n(f).on("click touchstart",k,as),y.normalScrollElements&&(w.on("mouseenter",y.normalScrollElements,function(){sr(!1)}),w.on("mouseleave",y.normalScrollElements,function(){sr(!0)}))}function so(){var t=at.find(y.sectionSelector);y.anchors.length||(y.anchors=t.filter("[data-anchor]").map(function(){return n(this).data("anchor").toString()}).get()),y.navigationTooltips.length||(y.navigationTooltips=t.filter("[data-tooltip]").map(function(){return n(this).data("tooltip").toString()}).get())}function ho(){at.css({height:"100%",position:"relative"}),at.addClass(pt),n("html").addClass(nt),pi=s.height(),at.removeClass(et),vo(),n(f).each(function(t){var i=n(this),r=i.find(c),u=r.length;lo(i,t),ao(i,t),u>0?co(i,r,u):y.verticalCentered&&le(i)}),y.fixedElements&&y.css3&&n(y.fixedElements).appendTo(vi),y.navigation&&po(),wo(),y.scrollOverflow?("complete"===i.readyState&&wf(),s.on("load",wf)):bf()}function co(t,i,r){var s=100*r,h=100/r,u;i.wrapAll('<div class="'+ht+'" />'),i.parent().wrap('<div class="'+gt+'" />'),t.find(ct).css("width",s+"%"),r>1&&(y.controlArrows&&yo(t),y.slidesNavigation&&rh(t,r)),i.each(function(){n(this).css("width",h+"%"),y.verticalCentered&&le(n(this))}),u=t.find(l),u.length&&(0!==n(e).index(f)||0===n(e).index(f)&&0!==u.index())?of(u):i.eq(0).addClass(o)}function lo(t,i){i||0!==n(e).length||t.addClass(o),t.css("height",pi+"px"),y.paddingTop&&t.css("padding-top",y.paddingTop),y.paddingBottom&&t.css("padding-bottom",y.paddingBottom),"undefined"!=typeof y.sectionsColor[i]&&t.css("background-color",y.sectionsColor[i]),"undefined"!=typeof y.anchors[i]&&t.attr("data-anchor",y.anchors[i])}function ao(t,i){"undefined"!=typeof y.anchors[i]&&t.hasClass(o)&&nf(y.anchors[i],i),y.menu&&y.css3&&n(y.menu).closest(d).length&&n(y.menu).appendTo(vi)}function vo(){at.find(y.sectionSelector).addClass(tt),at.find(y.slideSelector).addClass(st)}function yo(n){n.find(a).after('<div class="'+yi+'"><\/div><div class="'+wi+'"><\/div>'),"#fff"!=y.controlArrowColor&&(n.find(ri).css("border-color","transparent transparent transparent "+y.controlArrowColor),n.find(yt).css("border-color","transparent "+y.controlArrowColor+" transparent transparent")),y.loopHorizontal||n.find(yt).hide()}function po(){var u,t,s,i,r;for(vi.append('<div id="'+kt+'"><ul><\/ul><\/div>'),u=n(h),u.addClass(function(){return y.showActiveTooltip?li+" "+y.navigationPosition:y.navigationPosition}),t=0;t<n(f).length;t++)s="",y.anchors.length&&(s=y.anchors[t]),i='<li><a href="#'+s+'"><span><\/span><\/a>',r=y.navigationTooltips[t],"undefined"!=typeof r&&""!==r&&(i+='<div class="'+dt+" "+y.navigationPosition+'">'+r+"<\/div>"),i+="<\/li>",u.find("ul").append(i);n(h).css("margin-top","-"+n(h).height()/2+"px"),n(h).find("li").eq(n(e).index(f)).find("a").addClass(o)}function wf(){n(f).each(function(){var t=n(this).find(c);t.length?t.each(function(){fu(n(this))}):fu(n(this))}),bf()}function wo(){at.find('iframe[src*="youtube.com/embed/"]').each(function(){bo(n(this),"enablejsapi=1")})}function bo(n,t){var i=n.attr("src");n.attr("src",i+ko(i)+t)}function ko(n){return/\?/.test(n)?"&":"?"}function bf(){var t=n(e);t.addClass(p),y.scrollOverflowHandler.afterRender&&y.scrollOverflowHandler.afterRender(t),ru(t),uu(t),y.scrollOverflowHandler.afterLoad(),n.isFunction(y.afterLoad)&&y.afterLoad.call(t,t.data("anchor"),t.index(f)+1),n.isFunction(y.afterRender)&&y.afterRender.call(at)}function kf(){var t,r,k;if(!y.autoScrolling||y.scrollBar){var u=s.scrollTop(),nt=ns(u),h=0,tt=u+s.height()/2,it=vi.height()-s.height()===u,c=i.querySelectorAll(f);if(it)h=c.length-1;else if(u)for(r=0;r<c.length;++r)k=c[r],k.offsetTop<=tt&&(h=r);else h=0;if(go(nt)&&(n(e).hasClass(p)||n(e).addClass(p).siblings().removeClass(p)),t=n(c).eq(h),!t.hasClass(o)){vf=!0;var d,g,w=n(e),rt=w.index(f)+1,ut=tf(t),a=t.data("anchor"),v=t.index(f)+1,b=t.find(l);b.length&&(g=b.data("anchor"),d=b.index()),ki&&(t.addClass(o).siblings().removeClass(o),n.isFunction(y.onLeave)&&y.onLeave.call(w,rt,v,ut),n.isFunction(y.afterLoad)&&y.afterLoad.call(t,a,v),du(w),ru(t),uu(t),nf(a,v-1),y.anchors.length&&(ur=a),uf(d,g,a,v)),clearTimeout(lf),lf=setTimeout(function(){vf=!1},100)}y.fitToSection&&(clearTimeout(af),af=setTimeout(function(){ki&&y.fitToSection&&(n(e).is(t)&&(bi=!0),rr(n(e)),bi=!1)},y.fitToSectionDelay))}}function go(t){var i=n(e).position().top,r=i+s.height();return"up"==t?r>=s.scrollTop()+s.height():i<=s.scrollTop()}function ns(n){var t=n>ro?"down":"up";return ro=n,yf=n,t}function nu(n,t){if(wt.m[n]){var r="down"===n?"bottom":"top",i="down"===n?wr:hr;if(t.length>0){if(!y.scrollOverflowHandler.isScrolled(r,t))return!0;i()}else i()}}function ts(n){var t=n.originalEvent;!ku(n.target)&&y.autoScrolling&&tu(t)&&n.preventDefault()}function is(t){var u=t.originalEvent,i=n(u.target).closest(f),e,o;!ku(t.target)&&tu(u)&&(y.autoScrolling&&t.preventDefault(),e=y.scrollOverflowHandler.scrollable(i),o=ke(u),yr=o.y,lu=o.x,i.find(a).length&&r.abs(cu-lu)>r.abs(vr-yr)?!nr&&r.abs(cu-lu)>s.outerWidth()/100*y.touchSensitivity&&(cu>lu?wt.m.right&&kr(i):wt.m.left&&dr(i)):y.autoScrolling&&ki&&r.abs(vr-yr)>s.height()/100*y.touchSensitivity&&(vr>yr?nu("down",e):yr>vr&&nu("up",e)))}function ku(t,i){i=i||0;var r=n(t).parent();return i<y.normalScrollElementTouchThreshold&&r.is(y.normalScrollElements)?!0:i==y.normalScrollElementTouchThreshold?!1:ku(r,++i)}function tu(n){return"undefined"==typeof n.pointerType||"mouse"!=n.pointerType}function rs(n){var i=n.originalEvent,t;(y.fitToSection&&gi.stop(),tu(i))&&(t=ke(i),vr=t.y,cu=t.x)}function df(n,t){for(var u=0,f=n.slice(r.max(n.length-t,1)),i=0;i<f.length;i++)u+=f[i];return r.ceil(u/t)}function ir(i){var u=(new Date).getTime(),s=n(ui).hasClass(hi);if(y.autoScrolling&&!ou&&!s){i=i||t.event;var f=i.wheelDelta||-i.deltaY||-i.detail,h=r.max(-1,r.min(1,f)),c="undefined"!=typeof i.wheelDeltaX||"undefined"!=typeof i.deltaX,l=r.abs(i.wheelDeltaX)<r.abs(i.wheelDelta)||r.abs(i.deltaX)<r.abs(i.deltaY)||!c;fr.length>149&&fr.shift(),fr.push(r.abs(f)),y.scrollBar&&(i.preventDefault?i.preventDefault():i.returnValue=!1);var a=n(e),o=y.scrollOverflowHandler.scrollable(a),v=u-uo;if(uo=u,v>200&&(fr=[]),ki){var p=df(fr,10),w=df(fr,70),b=p>=w;b&&l&&(0>h?nu("down",o):nu("up",o))}return!1}y.fitToSection&&gi.stop()}function gf(t,i){var o="undefined"==typeof i?n(e):i,f=o.find(a),s=f.find(c).length,r,u;if(!(!f.length||nr||2>s)){if(r=f.find(l),u=null,u="left"===t?r.prev(c):r.next(c),!u.length){if(!y.loopHorizontal)return;u="left"===t?r.siblings(":last"):r.siblings(":first")}nr=!0,cr(f,u,t)}}function ne(){n(l).each(function(){of(n(this),"internal")})}function us(n){var i=n.position(),t=i.top,r=i.top>yf,u=t-pi+n.outerHeight(),f=y.bigSectionsDestination;return n.outerHeight()>pi?(!r&&!f||"bottom"===f)&&(t=u):(r||bi&&n.is(":last-child"))&&(t=u),yf=t,t}function rr(t,i,r){if("undefined"!=typeof t){var h,c,a=us(t),u={element:t,callback:i,isMovementUp:r,dtop:a,yMovement:tf(t),anchorLink:t.data("anchor"),sectionIndex:t.index(f),activeSlide:t.find(l),activeSection:n(e),leavingSection:n(e).index(f)+1,localIsResizing:bi};u.activeSection.is(t)&&!bi||y.scrollBar&&s.scrollTop()===u.dtop&&!t.hasClass(si)||(u.activeSlide.length&&(h=u.activeSlide.data("anchor"),c=u.activeSlide.index()),y.autoScrolling&&y.continuousVertical&&"undefined"!=typeof u.isMovementUp&&(!u.isMovementUp&&"up"==u.yMovement||u.isMovementUp&&"down"==u.yMovement)&&(u=os(u)),(!n.isFunction(y.onLeave)||u.localIsResizing||y.onLeave.call(u.activeSection,u.leavingSection,u.sectionIndex+1,u.yMovement)!==!1)&&(du(u.activeSection),y.scrollOverflowHandler.beforeLeave(),t.addClass(o).siblings().removeClass(o),ru(t),y.scrollOverflowHandler.onLeave(),ki=!1,uf(c,h,u.anchorLink,u.sectionIndex),fs(u),ur=u.anchorLink,nf(u.anchorLink,u.sectionIndex)))}}function fs(t){var u,i;y.css3&&y.autoScrolling&&!y.scrollBar?(u="translate3d(0px, -"+r.round(t.dtop)+"px, 0px)",ve(u,!0),y.scrollingSpeed?(clearTimeout(hu),hu=setTimeout(function(){iu(t)},y.scrollingSpeed)):iu(t)):(i=es(t),n(i.element).animate(i.options,y.scrollingSpeed,y.easing).promise().done(function(){y.scrollBar?setTimeout(function(){iu(t)},30):iu(t)}))}function es(n){var t={};return y.autoScrolling&&!y.scrollBar?(t.options={top:-n.dtop},t.element=d):(t.options={scrollTop:n.dtop},t.element="html, body"),t}function os(t){return t.isMovementUp?n(e).before(t.activeSection.nextAll(f)):n(e).after(t.activeSection.prevAll(f).get().reverse()),lr(n(e).position().top),ne(),t.wrapAroundElements=t.activeSection,t.dtop=t.element.position().top,t.yMovement=tf(t.element),t}function ss(t){t.wrapAroundElements&&t.wrapAroundElements.length&&(t.isMovementUp?n(ei).before(t.wrapAroundElements):n(oi).after(t.wrapAroundElements),lr(n(e).position().top),ne())}function iu(t){ss(t),n.isFunction(y.afterLoad)&&!t.localIsResizing&&y.afterLoad.call(t.element,t.anchorLink,t.sectionIndex+1),y.scrollOverflowHandler.afterLoad(),t.localIsResizing||uu(t.element),t.element.addClass(p).siblings().removeClass(p),ki=!0,n.isFunction(t.callback)&&t.callback.call(this)}function ru(t){if(y.lazyLoading){var i,r=gu(t);r.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){i=n(this),i.attr("src",i.data("src")),i.removeAttr("data-src"),i.is("source")&&i.closest("video").get(0).load()})}}function uu(t){var i=gu(t);i.find("video, audio").each(function(){var t=n(this).get(0);t.hasAttribute("data-autoplay")&&"function"==typeof t.play&&t.play()}),i.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=n(this).get(0);t.hasAttribute("data-autoplay")&&te(t),t.onload=function(){t.hasAttribute("data-autoplay")&&te(t)}})}function te(n){n.contentWindow.postMessage('{"event":"command","func":"playVideo","args":""}',"*")}function du(t){var i=gu(t);i.find("video, audio").each(function(){var t=n(this).get(0);t.hasAttribute("data-keepplaying")||"function"!=typeof t.pause||t.pause()}),i.find('iframe[src*="youtube.com/embed/"]').each(function(){var t=n(this).get(0);/youtube\.com\/embed\//.test(n(this).attr("src"))&&!t.hasAttribute("data-keepplaying")&&n(this).get(0).contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}function gu(t){var i=t.find(l);return i.length&&(t=n(i)),t}function ie(){var i=t.location.hash.replace("#","").split("/"),n=decodeURIComponent(i[0]),r=decodeURIComponent(i[1]);n&&(y.animateAnchor?rf(n,r):wu(n,r))}function re(){if(!vf&&!y.lockAnchors){var r=t.location.hash.replace("#","").split("/"),n=decodeURIComponent(r[0]),i=decodeURIComponent(r[1]),u="undefined"==typeof ur,f="undefined"==typeof ur&&"undefined"==typeof i&&!nr;n.length&&(n&&n!==ur&&!u||f||!nr&&sf!=i)&&rf(n,i)}}function hs(t){var i,r,u;clearTimeout(io),i=n(":focus"),i.is("textarea")||i.is("input")||i.is("select")||"true"===i.attr("contentEditable")||""===i.attr("contentEditable")||!y.keyboardScrolling||!y.autoScrolling||(r=t.which,u=[40,38,32,33,34],n.inArray(r,u)>-1&&t.preventDefault(),ou=t.ctrlKey,io=setTimeout(function(){ws(t)},150))}function cs(){n(this).prev().trigger("click")}function ls(n){to&&(ou=n.ctrlKey)}function ue(n){2==n.which&&(au=n.pageY,at.on("mousemove",bs))}function fe(n){2==n.which&&at.off("mousemove")}function as(){var t=n(this).closest(f);n(this).hasClass(vt)?wt.m.left&&dr(t):wt.m.right&&kr(t)}function vs(){to=!1,ou=!1}function ys(t){t.preventDefault();var i=n(this).parent().index();rr(n(f).eq(i))}function ps(t){t.preventDefault();var i=n(this).closest(f).find(a),r=i.find(c).eq(n(this).closest("li").index());cr(i,r)}function ws(t){var i=t.shiftKey;if(ki||!([37,39].indexOf(t.which)<0))switch(t.which){case 38:case 33:wt.k.up&&hr();break;case 32:if(i&&wt.k.up){hr();break}case 40:case 34:wt.k.down&&wr();break;case 36:wt.k.up&&br(1);break;case 35:wt.k.down&&br(n(f).length);break;case 37:wt.k.left&&dr();break;case 39:wt.k.right&&kr();break;default:return}}function bs(n){ki&&(n.pageY<au&&wt.m.up?hr():n.pageY>au&&wt.m.down&&wr()),au=n.pageY}function cr(t,i,r){var e=t.closest(f),u={slides:t,destiny:i,direction:r,destinyPos:i.position(),slideIndex:i.index(),section:e,sectionIndex:e.index(f),anchorLink:e.data("anchor"),slidesNav:e.find(rt),slideAnchor:ef(i),prevSlide:e.find(l),prevSlideIndex:e.find(l).index(),localIsResizing:bi};return u.xMovement=th(u.prevSlideIndex,u.slideIndex),u.localIsResizing||(ki=!1),y.onSlideLeave&&!u.localIsResizing&&"none"!==u.xMovement&&n.isFunction(y.onSlideLeave)&&y.onSlideLeave.call(u.prevSlide,u.anchorLink,u.sectionIndex+1,u.prevSlideIndex,u.xMovement,u.slideIndex)===!1?void(nr=!1):(i.addClass(o).siblings().removeClass(o),u.localIsResizing||(du(u.prevSlide),ru(i)),!y.loopHorizontal&&y.controlArrows&&(e.find(yt).toggle(0!==u.slideIndex),e.find(ri).toggle(!i.is(":last-child"))),e.hasClass(o)&&uf(u.slideIndex,u.slideAnchor,u.anchorLink,u.sectionIndex),void ks(t,u,!0))}function ee(t){ds(t.slidesNav,t.slideIndex),t.localIsResizing||(n.isFunction(y.afterSlideLoad)&&y.afterSlideLoad.call(t.destiny,t.anchorLink,t.sectionIndex+1,t.slideAnchor,t.slideIndex),ki=!0,uu(t.destiny)),nr=!1}function ks(n,t,i){var u=t.destinyPos,f;y.css3?(f="translate3d(-"+r.round(u.left)+"px, 0px, 0px)",he(n.find(ct)).css(de(f)),cf=setTimeout(function(){i&&ee(t)},y.scrollingSpeed,y.easing)):n.animate({scrollLeft:r.round(u.left)},y.scrollingSpeed,y.easing,function(){i&&ee(t)})}function ds(n,t){n.find(b).removeClass(o),n.find("li").eq(t).find("a").addClass(o)}function oe(){var t,u;(se(),su)?(t=n(i.activeElement),t.is("textarea")||t.is("input")||t.is("select")||(u=s.height(),r.abs(u-pf)>r.max(pf,u)/5&&(bu(!0),pf=u))):(clearTimeout(hf),hf=setTimeout(function(){bu(!0)},350))}function se(){var n=y.responsive||y.responsiveWidth,t=y.responsiveHeight,i=n&&s.outerWidth()<n,r=t&&s.height()<t;n&&t?gr(i||r):n?gr(i):t&&gr(r)}function he(n){var t="all "+y.scrollingSpeed+"ms "+y.easingcss3;return n.removeClass(ft),n.css({"-webkit-transition":t,transition:t})}function ce(n){return n.addClass(ft)}function gs(t,i){y.navigation&&(n(h).find(b).removeClass(o),t?n(h).find('a[href="#'+t+'"]').addClass(o):n(h).find("li").eq(i).find("a").addClass(o))}function nh(t){y.menu&&(n(y.menu).find(b).removeClass(o),n(y.menu).find('[data-menuanchor="'+t+'"]').addClass(o))}function nf(n,t){nh(n),gs(n,t)}function tf(t){var i=n(e).index(f),r=t.index(f);return i==r?"none":i>r?"up":"down"}function th(n,t){return n==t?"none":n>t?"left":"right"}function fu(n){var r;if(!n.hasClass("fp-noscroll")){n.css("overflow","hidden");var i,t=y.scrollOverflowHandler,u=t.wrapContent(),e=n.closest(f),o=t.scrollable(n);o.length?i=t.scrollHeight(n):(i=n.get(0).scrollHeight,y.verticalCentered&&(i=n.find(it).get(0).scrollHeight)),r=pi-parseInt(e.css("padding-bottom"))-parseInt(e.css("padding-top")),i>r?o.length?t.update(n,r):(y.verticalCentered?n.find(it).wrapInner(u):n.wrapInner(u),t.create(n,r)):t.remove(n),n.css("overflow","")}}function le(n){n.hasClass(lt)||n.addClass(lt).wrapInner('<div class="'+bt+'" style="height:'+ae(n)+'px;" />')}function ae(n){var i=pi,t,r;return(y.paddingTop||y.paddingBottom)&&(t=n,t.hasClass(tt)||(t=n.closest(f)),r=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom")),i=pi-r),i}function ve(n,t){t?he(at):ce(at),at.css(de(n)),setTimeout(function(){at.removeClass(ft)},10)}function ye(t){var i=at.find(f+'[data-anchor="'+t+'"]');return i.length||(i=n(f).eq(t-1)),i}function ih(n,t){var r=t.find(a),i=r.find(c+'[data-anchor="'+n+'"]');return i.length||(i=r.find(c).eq(n)),i}function rf(n,t){var i=ye(n);i.length&&("undefined"==typeof t&&(t=0),n===ur||i.hasClass(o)?pe(i,t):rr(i,function(){pe(i,t)}))}function pe(n,t){if("undefined"!=typeof t){var r=n.find(a),i=ih(t,n);i.length&&cr(r,i)}}function rh(n,t){var i,r;for(n.append('<div class="'+ni+'"><ul><\/ul><\/div>'),i=n.find(rt),i.addClass(y.slidesNavPosition),r=0;t>r;r++)i.find("ul").append('<li><a href="#"><span><\/span><\/a><\/li>');i.css("margin-left","-"+i.width()/2+"px"),i.find("li").first().find("a").addClass(o)}function uf(n,t,i){var r="";y.anchors.length&&!y.lockAnchors&&(n?("undefined"!=typeof i&&(r=i),"undefined"==typeof t&&(t=n),sf=t,ff(r+"/"+t)):"undefined"!=typeof n?(sf=t,ff(i)):ff(i)),we()}function ff(n){if(y.recordHistory)location.hash=n;else if(su||ar)t.history.replaceState(u,u,"#"+n);else{var i=t.location.href.split("#")[0];t.location.replace(i+"#"+n)}}function ef(n){var t=n.data("anchor"),i=n.index();return"undefined"==typeof t&&(t=i),t}function we(){var i=n(e),r=i.find(l),f=ef(i),o=ef(r),t=String(f),u;r.length&&(t=t+"-"+o),t=t.replace("/","-").replace("#",""),u=new RegExp("\\b\\s?"+ot+"-[^\\s]+\\b","g"),vi[0].className=vi[0].className.replace(u,""),vi.addClass(ot+"-"+t)}function uh(){var r,n=i.createElement("p"),e={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"},f;i.body.insertBefore(n,null);for(f in e)n.style[f]!==u&&(n.style[f]="translate3d(1px,1px,1px)",r=t.getComputedStyle(n).getPropertyValue(e[f]));return i.body.removeChild(n),r!==u&&r.length>0&&"none"!==r}function fh(){i.addEventListener?(i.removeEventListener("mousewheel",ir,!1),i.removeEventListener("wheel",ir,!1),i.removeEventListener("MozMousePixelScroll",ir,!1)):i.detachEvent("onmousewheel",ir)}function eh(){var n,r="",f;t.addEventListener?n="addEventListener":(n="attachEvent",r="on"),f="onwheel"in i.createElement("div")?"wheel":i.onmousewheel!==u?"mousewheel":"DOMMouseScroll","DOMMouseScroll"==f?i[n](r+"MozMousePixelScroll",ir,!1):i[n](r+f,ir,!1)}function oh(){at.on("mousedown",ue).on("mouseup",fe)}function sh(){at.off("mousedown",ue).off("mouseup",fe)}function hh(){if(su||ar){var t=be();y.autoScrolling&&vi.off("touchmove "+t.move).on("touchmove "+t.move,ts),n(d).off("touchstart "+t.down).on("touchstart "+t.down,rs).off("touchmove "+t.move).on("touchmove "+t.move,is)}}function ch(){if(su||ar){var t=be();n(d).off("touchstart "+t.down).off("touchmove "+t.move)}}function be(){return t.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function ke(n){var t=[];return t.y="undefined"!=typeof n.pageY&&(n.pageY||n.pageX)?n.pageY:n.touches[0].pageY,t.x="undefined"!=typeof n.pageX&&(n.pageY||n.pageX)?n.pageX:n.touches[0].pageX,ar&&tu(n)&&y.scrollBar&&(t.y=n.touches[0].pageY,t.x=n.touches[0].pageX),t}function of(n,t){or(0,"internal"),"undefined"!=typeof t&&(bi=!0),cr(n.closest(a),n),"undefined"!=typeof t&&(bi=!1),or(tr.scrollingSpeed,"internal")}function lr(n){var t=r.round(n),i;y.css3&&y.autoScrolling&&!y.scrollBar?(i="translate3d(0px, -"+t+"px, 0px)",ve(i,!1)):y.autoScrolling&&!y.scrollBar?at.css("top",-t):gi.scrollTop(t)}function de(n){return{"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,transform:n}}function ge(n,t,i){switch(t){case"up":wt[i].up=n;break;case"down":wt[i].down=n;break;case"left":wt[i].left=n;break;case"right":wt[i].right=n;break;case"all":"m"==i?pr(n):pu(n)}}function lh(t){er(!1,"internal"),pr(!1),pu(!1),at.addClass(et),clearTimeout(cf),clearTimeout(hu),clearTimeout(hf),clearTimeout(lf),clearTimeout(af),s.off("scroll",kf).off("hashchange",re).off("resize",oe),w.off("click touchstart",h+" a").off("mouseenter",h+" li").off("mouseleave",h+" li").off("click touchstart",ti).off("mouseover",y.normalScrollElements).off("mouseout",y.normalScrollElements),n(f).off("click touchstart",k),clearTimeout(cf),clearTimeout(hu),t&&ah()}function ah(){lr(0),at.find("img[data-src], source[data-src], audio[data-src], iframe[data-src]").each(function(){n(this).attr("src",n(this).data("src")),n(this).removeAttr("data-src")}),n(h+", "+rt+", "+k).remove(),n(f).css({height:"","background-color":"",padding:""}),n(c).css({width:""}),at.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),gi.css({overflow:"",height:""}),n("html").removeClass(nt),vi.removeClass(g),n.each(vi.get(0).className.split(/\s+/),function(n,t){0===t.indexOf(ot)&&vi.removeClass(t)}),n(f+", "+c).each(function(){y.scrollOverflowHandler.remove(n(this)),n(this).removeClass(lt+" "+o)}),ce(at),at.find(it+", "+ct+", "+a).each(function(){n(this).replaceWith(this.childNodes)}),gi.scrollTop(0);var t=[tt,st,ht];n.each(t,function(t,i){n("."+i).removeClass(i)})}function eu(n,t,i){y[n]=t,"internal"!==i&&(tr[n]=t)}function no(){return n("html").hasClass(nt)?void di("error","Fullpage.js can only be initialized once and you are doing it multiple times!"):(y.continuousVertical&&(y.loopTop||y.loopBottom)&&(y.continuousVertical=!1,di("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),y.scrollBar&&y.scrollOverflow&&di("warn","Option `scrollBar` is mutually exclusive with `scrollOverflow`. Sections with scrollOverflow might not work well in Firefox"),!y.continuousVertical||!y.scrollBar&&y.autoScrolling||(y.continuousVertical=!1,di("warn","Scroll bars (`scrollBar:true` or `autoScrolling:false`) are mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),n.each(["fadingEffect","continuousHorizontal","scrollHorizontally","interlockedSlides","resetSliders","responsiveSlides","offsetSections","dragAndMove","scrollOverflowReset"],function(n,t){y[t]&&di("warn","fullpage.js extensions require jquery.fullpage.extensions.min.js file instead of the usual jquery.fullpage.js. Requested: "+t)}),void n.each(y.anchors,function(t,i){var r=w.find("[name]").filter(function(){return n(this).attr("name")&&n(this).attr("name").toLowerCase()==i.toLowerCase()}),u=w.find("[id]").filter(function(){return n(this).attr("id")&&n(this).attr("id").toLowerCase()==i.toLowerCase()});(u.length||r.length)&&(di("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE)."),u.length&&di("error",'"'+i+'" is is being used by another element `id` property'),r.length&&di("error",'"'+i+'" is is being used by another element `name` property'))}))}function di(n,t){console&&console[n]&&console[n]("fullPage: "+t)}var hf,hu,cf,lf,af,io,tr;if(n("html").hasClass(nt))return void no();var gi=n("html, body"),vi=n("body"),ii=n.fn.fullpage;y=n.extend({menu:!1,anchors:[],lockAnchors:!1,navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,hybrid:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,fitToSectionDelay:1e3,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,continuousHorizontal:!1,scrollHorizontally:!1,interlockedSlides:!1,dragAndMove:!1,offsetSections:!1,resetSliders:!1,fadingEffect:!1,normalScrollElements:null,scrollOverflow:!1,scrollOverflowReset:!1,scrollOverflowHandler:v,scrollOverflowOptions:null,touchSensitivity:5,normalScrollElementTouchThreshold:5,bigSectionsDestination:null,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,responsiveWidth:0,responsiveHeight:0,responsiveSlides:!1,sectionSelector:fi,slideSelector:ai,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null,afterResponsive:null,lazyLoading:!0},y);var ur,sf,ou,nr=!1,su=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),ar="ontouchstart"in t||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,at=n(this),pi=s.height(),bi=!1,to=!0,ki=!0,fr=[],wt={};wt.m={up:!0,down:!0,left:!0,right:!0},wt.k=n.extend(!0,{},wt.m),tr=n.extend(!0,{},y),no(),ut.click=ar,ut=n.extend(ut,y.scrollOverflowOptions),n.extend(n.easing,{easeInOutCubic:function(n,t,i,r,u){return(t/=u/2)<1?r/2*t*t*t+i:r/2*((t-=2)*t*t+2)+i}}),n(this).length&&(ii.setAutoScrolling=er,ii.setRecordHistory=vu,ii.setScrollingSpeed=or,ii.setFitToSection=yu,ii.setLockAnchors=fo,ii.setMouseWheelScrolling=sr,ii.setAllowScrolling=pr,ii.setKeyboardScrolling=pu,ii.moveSectionUp=hr,ii.moveSectionDown=wr,ii.silentMoveTo=wu,ii.moveTo=br,ii.moveSlideRight=kr,ii.moveSlideLeft=dr,ii.reBuild=bu,ii.setResponsive=gr,ii.destroy=lh,eo(),oo());var vf=!1,ro=0,vr=0,cu=0,yr=0,lu=0,uo=(new Date).getTime(),yf=0,au=0,pf=pi},"undefined"!=typeof IScroll&&(IScroll.prototype.wheelOn=function(){this.wrapper.addEventListener("wheel",this),this.wrapper.addEventListener("mousewheel",this),this.wrapper.addEventListener("DOMMouseScroll",this)},IScroll.prototype.wheelOff=function(){this.wrapper.removeEventListener("wheel",this),this.wrapper.removeEventListener("mousewheel",this),this.wrapper.removeEventListener("DOMMouseScroll",this)}),v={refreshId:null,iScrollInstances:[],toggleWheel:function(t){var i=n(e).find(y);i.each(function(){var i=n(this).data("iscrollInstance");"undefined"!=typeof i&&i&&(t?i.wheelOn():i.wheelOff())})},onLeave:function(){v.toggleWheel(!1)},beforeLeave:function(){v.onLeave()},afterLoad:function(){v.toggleWheel(!0)},create:function(t,i){var r=t.find(y);r.height(i),r.each(function(){var i=n(this),t=i.data("iscrollInstance");t&&n.each(v.iScrollInstances,function(){n(this).destroy()}),t=new IScroll(i.get(0),ut),v.iScrollInstances.push(t),t.wheelOff(),i.data("iscrollInstance",t)})},isScrolled:function(n,t){var i=t.data("iscrollInstance");return i?"top"===n?i.y>=0&&!t.scrollTop():"bottom"===n?0-i.y+t.scrollTop()+1+t.innerHeight()>=t[0].scrollHeight:void 0:!0},scrollable:function(n){return n.find(a).length?n.find(l).find(y):n.find(y)},scrollHeight:function(n){return n.find(y).children().first().get(0).scrollHeight},remove:function(n){var t=n.find(y),i;t.length&&(i=t.data("iscrollInstance"),i.destroy(),t.data("iscrollInstance",null)),n.find(y).children().first().children().first().unwrap().unwrap()},update:function(t,i){clearTimeout(v.refreshId),v.refreshId=setTimeout(function(){n.each(v.iScrollInstances,function(){n(this).get(0).refresh()})},150),t.find(y).css("height",i+"px").parent().css("height",i+"px")},wrapContent:function(){return'<div class="'+wt+'"><div class="fp-scroller"><\/div><\/div>'}}});
/*!
 * typeahead.js 0.11.1
 * https://github.com/twitter/typeahead.js
 * Copyright 2013-2016 Twitter, Inc. and other contributors; Licensed MIT
 */
(function(n,t){typeof define=="function"&&define.amd?define("bloodhound",["jquery"],function(i){return n.Bloodhound=t(i)}):typeof exports=="object"?module.exports=t(require("jquery")):n.Bloodhound=t(jQuery)})(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null,i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date,i=null,e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),u="0.11.1",f=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100,this.reset(),this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n,this.val=t,this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var r=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--),(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0,this.hash={},this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n),this.head=n,this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next,n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n),this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix)),this.ls=r||i,this.ls||this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}function o(n){for(var r,u=[],f=i.length,t=0;t<f;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}var i;try{i=window.localStorage,i.setItem("~~~","!"),i.removeItem("~~~")}catch(s){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(i){i.name==="QuotaExceededError"&&(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=o(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return t.isNumber(i)&&u()>i?!0:!1}}),r}(),r=function(){"use strict";function r(n){n=n||{},this.cancelled=!1,this.lastReq=null,this._send=n.transport,this._get=n.limiter?n.limiter(this._get):this._get,this._cache=n.cache===!1?new i(0):o}var u=0,f={},e=6,o=new i(10);return r.setMaxPendingRequests=function(n){e=n},r.resetCache=function(){o.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return t=t||{},t.url+t.type+n.param(t.data||{})},_get:function(n,t){function s(n){t(null,n),i._cache.set(r,n)}function h(){t(!0)}function c(){u--,delete f[r],i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}var i=this,r,o;(r=this._fingerprint(n),this.cancelled||r!==this.lastReq)||((o=f[r])?o.done(s).fail(h):u<e?(u++,f[r]=this._send(n).done(s).fail(h).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop,i=t.isString(i)?{url:i}:i||{},u=this._fingerprint(i),this.cancelled=!1,this.lastReq=u,(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function u(i){i=i||{},i.datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required"),this.identify=i.identify||t.stringify,this.datumTokenizer=i.datumTokenizer,this.queryTokenizer=i.queryTokenizer,this.reset()}function f(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function e(){var n={};return n[r]=[],n[i]={},n}function o(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function s(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}var i="c",r="i";return t.mixin(u.prototype,{bootstrap:function(n){this.datums=n.datums,this.trie=n.trie},add:function(n){var u=this;n=t.isArray(n)?n:[n],t.each(n,function(n){var o,s;u.datums[o=u.identify(n)]=n,s=f(u.datumTokenizer(n)),t.each(s,function(n){for(var f,t=u.trie,s=n.split("");f=s.shift();)t=t[i][f]||(t[i][f]=e()),t[r].push(o)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var e=this,h,u;return h=f(this.queryTokenizer(n)),t.each(h,function(n){var t,f,h,o;if(u&&u.length===0)return!1;for(t=e.trie,f=n.split("");t&&(h=f.shift());)t=t[i][h];if(t&&f.length===0)o=t[r].slice(0),u=u?s(u,o):o;else return u=[],!1}),u?t.map(o(u),function(n){return e.datums[n]}):[]},all:function(){var n=[],t;for(t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={},this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),u}(),s=function(){"use strict";function i(n){this.url=n.url,this.ttl=n.ttl,this.cache=n.cache,this.prepare=n.prepare,this.transform=n.transform,this.transport=n.transport,this.thumbprint=n.thumbprint,this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t={},i;return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){function r(){n(!0)}function u(t){n(null,i.transform(t))}var i=this,t;n&&(t=this.prepare(this._settings()),this.transport(t).fail(r).done(u))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url,this.prepare=n.prepare,this.transform=n.transform,this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){function u(n,i){n?t([]):t(r.transform(i))}var r=this,i;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,u)},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function r(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),r.url||n.error("prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}function f(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.url||n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=e(r),r.limiter=o(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}function e(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return(t=n.prepare,i=n.replace,r=n.wildcard,t)?t:i?u:n.wildcard?f:e}function o(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}function i(i){return function(r){function f(n){t.defer(function(){u.resolve(n)})}function e(n){t.defer(function(){u.reject(n)})}var u=n.Deferred();return i(r,f,e),u}}return function(i){var e,u;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},i=t.mixin(e,i||{}),i.datumTokenizer||n.error("datumTokenizer is required"),i.queryTokenizer||n.error("queryTokenizer is required"),u=i.sorter,i.sorter=u?function(n){return n.sort(u)}:t.identity,i.local=t.isFunction(i.local)?i.local():i.local,i.prefetch=r(i.prefetch),i.remote=f(i.remote),i}}();return function(){"use strict";function i(n){n=c(n),this.sorter=n.sorter,this.identify=n.identify,this.sufficient=n.sufficient,this.local=n.local,this.remote=n.remote?new h(n.remote):null,this.prefetch=n.prefetch?new s(n.prefetch):null,this.index=new o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer}),n.initialize!==!1&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){function t(t,i,r){return n.search(t,i,r)}function i(t,i){return n.search(t,i)}var n=this;return this.remote?t:i},_loadPrefetch:function(){function u(n,r){if(n)return t.reject();i.add(r),i.prefetch.store(i.index.serialize()),t.resolve()}var i=this,t,r;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(u):t.resolve(),t.promise()},_initialize:function(){function t(){n.add(n.local)}var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){function e(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)}),r&&r(i)}var f=this,u;return u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){typeof define=="function"&&define.amd?define("typeahead.js",["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null,i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date,i=null,e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function i(i){var e,o;return o=t.mixin({},n,i),e={css:f(),classes:o,html:r(o),selectors:u(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function r(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function u(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function f(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return i}(),o=function(){"use strict";function u(t){t&&t.el||n.error("EventBus initialized without el"),this.$el=n(t.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(u.prototype,{_trigger:function(t,r){var u;return u=n.Event(i+t),(r=r||[]).unshift(u),this.$el.trigger.apply(this.$el,r),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1)),(t=r[n])&&this._trigger(t,[].slice.call(arguments,1))}}),u}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var u,r=0,f=n.length;!u&&r<f;r+=1)u=n[r].apply(t,i)===!1;return!u}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),s=function(n){"use strict";function r(n,i,r){for(var f=[],e,u=0,o=n.length;u<o;u++)f.push(t.escapeRegExChars(n[u]));return e=r?"\\b("+f.join("|")+")\\b":"("+f.join("|")+")",i?new RegExp(e):new RegExp(e,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,e;return(i=f.exec(t.data))&&(e=n.createElement(u.tagName),u.className&&(e.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),e.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(e,r)),!!i}function e(n,t){for(var r,i=0;i<n.childNodes.length;i++)r=n.childNodes[i],r.nodeType===3?i+=t(r)?1:0:e(r,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),u=function(){"use strict";function i(i,r){i=i||{},i.input||n.error("input is missing"),r.mixin(this),this.$hint=n(i.hint),this.$input=n(i.input),this.query=this.$input.val(),this.queryWhenFocused=this.hasFocus()?this.query:null,this.$overflowHelper=e(this.$input),this._checkLanguageDirection(),this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query,this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n),t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue()),this.clearHintIfInvalid(),this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break;default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query),r=i?this.query.length!==n.length:!1,this.query=n,t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n=this,i,r,f,e;i=t.bind(this._onBlur,this),r=t.bind(this._onFocus,this),f=t.bind(this._onKeydown,this),e=t.bind(this._onInput,this);this.$input.on("blur.tt",i).on("focus.tt",r).on("keydown.tt",f);if(!t.isMsie()||t.isMsie()>9)this.$input.on("input.tt",e);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(i){u[i.which||i.keyCode]||t.defer(t.bind(n._onInput,n,i))});return this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n),this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n),this.clearHintIfInvalid(),this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue(),t=this.getHint(),i=n!==t&&t.indexOf(n)===0,r=n!==""&&i&&!this.hasOverflow(),r||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$overflowHelper.remove(),this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){i=i||{},i.templates=i.templates||{},i.templates.notFound=i.templates.notFound||i.templates.empty,i.source||n.error("missing source"),i.node||n.error("missing node"),i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name),r.mixin(this),this.highlight=!!i.highlight,this.name=i.name||f(),this.limit=i.limit||5,this.displayFn=e(i.display||i.displayKey),this.templates=o(i.templates,this.displayFn),this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source,this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async,this._resetLastSuggestion(),this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(t){return n("<div>").text(r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[],t.length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty(),this.trigger("rendered",this.name,t,!1)},_append:function(n,t){t=t||[],t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n),this.trigger("rendered",this.name,t,!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t),this.$lastSuggestion=i.children().last(),this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t),r=i.children().last(),this.$lastSuggestion.after(i),this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion(),t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion(),t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty(),this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var f=this,e;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t),u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable),e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function e(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}function o(u){u=u||[],!f&&r<i.limit&&(i.cancel=n.noop,r+=u.length,i._append(t,u.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",t))}var i=this,f=!1,u=!1,r=0;this.cancel(),this.cancel=function(){f=!0,i.cancel=n.noop,i.async&&i.trigger("asyncCanceled",t)},this.source(t,e,o),u||e([])},cancel:n.noop,clear:function(){this._empty(),this.cancel(),this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{},i.node||n.error("node is required"),r.mixin(this),this.$node=n(i.node),this.query=null,this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty()),this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function n(n){return n.isEmpty()}return t.every(this.datasets,n)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top,i=t+n.outerHeight(!0),r=this.$node.scrollTop(),u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10),t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var n=this,i=t.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,i);return t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open),this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=t<-1?i.length-1:t,t===-1?null:i.eq(t)},setCursor:function(n){this._removeCursor(),(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n),this.query=null,this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt"),this.$node=n("<div>"),t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return this._allDatasetsEmpty()||this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css(t==="ltr"?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{},r.input||n.error("missing input"),r.menu||n.error("missing menu"),r.eventBus||n.error("missing event bus"),u.mixin(this),this.eventBus=r.eventBus,this.minLength=t.isNumber(r.minLength)?r.minLength:1,this.input=r.input,this.menu=r.menu,this.enabled=!0,this.tabAutocomplete=r.tabAutocomplete===!1?!1:!0,this.active=!1,this.input.hasFocus()&&this.activate(),this.dir=this.input.getLangDir(),this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused"),e=i(this,"deactivate","_onBlurred"),o=i(this,"isActive","isOpen","_onEnterKeyed"),s=i(this,"isActive","isOpen","_onTabKeyed"),h=i(this,"isActive","_onEscKeyed"),c=i(this,"isActive","open","_onUpKeyed"),l=i(this,"isActive","open","_onDownKeyed"),a=i(this,"isActive","isOpen","_onLeftKeyed"),v=i(this,"isActive","isOpen","_onRightKeyed"),y=i(this,"_openIfActive","_onQueryChanged"),p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>"),i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement,f=i.is(u),e=i.has(u).length>0,t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){this._updateHint(),this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():this.tabAutocomplete&&(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable(),i=this.menu.getSelectableData(f),n=this.input.getInputValue(),!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0):!1},autocomplete:function(n){var i,t,r;return(i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj))?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0):!1},moveCursor:function(n){var u,i,t,r,f;return(u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,f=this._minLengthMet()&&this.menu.update(u),!f&&!this.eventBus.before("cursorchange",r))?(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0):!1},destroy:function(){this.input.destroy(),this.menu.destroy()}}),r}();(function(){"use strict";function r(t,i){t.each(function(){var t=n(this),r;(r=t.data(f.typeahead))&&i(r,t)})}function v(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(n)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function y(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")}),n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function p(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function w(n){var r,i;r=n.data(f.www),i=n.parent().filter(r.selectors.wrapper),t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)}),n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input),i.length&&(n.detach().insertAfter(i),i.remove())}function a(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first():[],r.length?r:null}var l,f,s;l=n.fn.typeahead,f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"},s={initialize:function(r,s){function p(){var e,d,p,w,b,k,g,nt,tt,it,rt;t.each(s,function(n){n.highlight=!!r.highlight}),e=n(this),d=n(l.html.wrapper),p=a(r.hint),w=a(r.menu),b=r.hint!==!1&&!p,k=r.menu!==!1&&!w,b&&(p=v(e,l)),k&&(w=n(l.html.menu).css(l.css.menu)),p&&p.val(""),e=y(e,l),(b||k)&&(d.css(l.css.wrapper),e.css(b?l.css.input:l.css.inputWithNoHint),e.wrap(d).parent().prepend(b?p:null).append(k?w:null)),rt=k?h:i,g=new o({el:e}),nt=new u({hint:p,input:e},l),tt=new rt({node:w,datasets:s},l),it=new c({input:nt,menu:tt,eventBus:g,minLength:r.minLength,tabAutocomplete:typeof s[0].tabAutocomplete!="undefined"?!!s[0].tabAutocomplete:!0},l),e.data(f.www,l),e.data(f.typeahead,it)}var l;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},l=e(r.classNames),this.each(p)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var t;return arguments.length?(r(this,function(t){t.setVal(n)}),this):(r(this.first(),function(n){t=n.getVal()}),t)},destroy:function(){return r(this,function(n,t){w(t),n.destroy()}),this}},n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)},n.fn.typeahead.noConflict=function(){return n.fn.typeahead=l,this}})()})