PageSourceSearch

https://www.palladiumpraha.cz/assets/admin/js/app.min.1743678378.js

js palladiumpraha.cz collected 2026-09-24 10:20:43 UTC 608,518 bytes, 19 lines download raw bytes

vendor: 4,512 bytes, line 1
1if(function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function i(t){var e=t.length,i=J.type(t);return"function"!==i&&!J.isWindow(t)&&(!(1!==t.nodeType||!e)||("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t))}function n(t,e,i){if(J.isFunction(e))return J.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return J.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(at.test(e))return J.filter(e,t,i);e=J.filter(e,t)}return J.grep(t,function(t){return G.call(e,t)>=0!==i})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function o(t){var e=ft[t]={};return J.each(t.match(pt)||[],function(t,i){e[i]=!0}),e}function r(){Q.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1),J.ready()}function a(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=J.expando+a.uid++}function l(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(xt,"-$1").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:bt.test(i)?J.parseJSON(i):i)}catch(s){}yt.set(t,e,i)}else i=void 0;return i}function h(){return!0}function c(){return!1}function u(){try{return Q.activeElement}catch(t){}}function d(t,e){return J.nodeName(t,"table")&&J.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function p(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function f(t){var e=Ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function m(t,e){for(var i=0,n=t.length;i<n;i++)vt.set(t[i],"globalEval",!e||vt.get(e[i],"globalEval"))}function g(t,e){var i,n,s,o,r,a,l,h;if(1===e.nodeType){if(vt.hasData(t)&&(o=vt.access(t),r=vt.set(e,o),h=o.events)){delete r.handle,r.events={};for(s in h)for(i=0,n=h[s].length;i<n;i++)J.event.add(e,s,h[s][i])}yt.hasData(t)&&(a=yt.access(t),l=J.extend({},a),yt.set(e,l))}}function v(t,e){var i=t.getElementsByTagName?t.getElementsByTagName(e||"*"):t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&J.nodeName(t,e)?J.merge([t],i):i}function y(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Ct.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function b(e,i){var n,s=J(i.createElement(e)).appendTo(i.body),o=t.getDefaultComputedStyle&&(n=t.getDefaultComputedStyle(s[0]))?n.display:J.css(s[0],"display");return s.detach(),o}function x(t){var e=Q,i=$t[t];return i||(i=b(t,e),"none"!==i&&i||(Rt=(Rt||J("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=Rt[0].contentDocument,e.write(),e.close(),i=b(t,e),Rt.detach()),$t[t]=i),i}function _(t,e,i){var n,s,o,r,a=t.style;return i=i||Wt(t),i&&(r=i.getPropertyValue(e)||i[e]),i&&(""!==r||J.contains(t.ownerDocument,t)||(r=J.style(t,e)),zt.test(r)&&Ft.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function w(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function k(t,e){if(e in t)return e;for(var i=e[0].toUpperCase()+e.slice(1),n=e,s=Xt.length;s--;)if(e=Xt[s]+i,e in t)return e;return n}function C(t,e,i){var n=Bt.exec(e);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):e}function S(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=J.css(t,i+wt[o],!0,s)),n?("content"===i&&(r-=J.css(t,"padding"+wt[o],!0,s)),"margin"!==i&&(r-=J.css(t,"border"+wt[o]+"Width",!0,s))):(r+=J.css(t,"padding"+wt[o],!0,s),"padding"!==i&&(r+=J.css(t,"border"+wt[o]+"Width",!0,s)));return r}function D(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=Wt(t),r="border-box"===J.css(t,"boxSizing",!1,o);if(s<=0||null==s){if(s=_(t,e,o),(s<0||null==s)&&(s=t.style[e]),zt.test(s))return s;n=r&&(K.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+S(t,e,i||(r?"border":"content"),n,o)+"px"}function T(t,e){for(var i,n,s,o=[],r=0,a=t.length;r<a;r++)n=t[r],n.style&&(o[r]=vt.get(n,"olddisplay"),i=n.style.display,e?(o[r]||"none"!==i||(n.style.display=""),""===n.style.display&&kt(n)&&(o[r]=vt.access(n,"olddisplay",x(n.nodeName)))):(s=kt(n),"none"===i&&s||vt.set(n,"olddisplay",s?i:J.css(n,"dis
1play"))));for(r=0;r<a;r++)n=t[r],n.style&&(e&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=e?o[r]||"":"none"));return t}function M(t,e,i,n,s){return new M.prototype.init(t,e,i,n,s)}function A(){return setTimeout(function(){Kt=void 0}),Kt=J.now()}function P(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)i=wt[n],s["margin"+i]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function O(t,e,i){for(var n,s=(ie[e]||[]).concat(ie["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function L(t,e,i){var n,s,o,r,a,l,h,c,u=this,d={},p=t.style,f=t.nodeType&&kt(t),m=vt.get(t,"fxshow");i.queue||(a=J._queueHooks(t,"fx"),null==a.unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,u.always(function(){u.always(function(){a.unqueued--,J.queue(t,"fx").length||a.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],h=J.css(t,"display"),c="none"===h?vt.get(t,"olddisplay")||x(t.nodeName):h,"inline"===c&&"none"===J.css(t,"float")&&(p.display="inline-block")),i.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}));for(n in e)if(s=e[n],Zt.exec(s)){if(delete e[n],o=o||"toggle"===s,s===(f?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;f=!0}d[n]=m&&m[n]||J.style(t,n)}else h=void 0;if(J.isEmptyObject(d))"inline"===("none"===h?x(t.nodeName):h)&&(p.display=h);else{m?"hidden"in m&&(f=m.hidden):m=vt.access(t,"fxshow",{}),o&&(m.hidden=!f),f?J(t).show():u.done(function(){J(t).hide()}),u.done(function(){var e;vt.remove(t,"fxshow");for(e in d)J.style(t,e,d[e])});for(n in d)r=O(f?m[n]:0,n,u),n in m||(m[n]=r.start,f&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}}function E(t,e){var i,n,s,o,r;for(i in t)if(n=J.camelCase(i),s=e[n],o=t[i],J.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),r=J.cssHooks[n],r&&"expand"in r){o=r.expand(o),delete t[n];for(i in o)i in t||(t[i]=o[i],e[i]=s)}else e[n]=s}function I(t,e,i){var n,s,o=0,r=ee.length,a=J.Deferred().always(function(){delete l.elem}),l=function(){if(s)return!1;for(var e=Kt||A(),i=Math.max(0,h.startTime+h.duration-e),n=i/h.duration||0,o=1-n,r=0,l=h.tweens.length;r<l;r++)h.tweens[r].run(o);return a.notifyWith(t,[h,o,i]),o<1&&l?i:(a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:J.extend({},e),opts:J.extend(!0,{specialEasing:{}},i),originalProperties:e,originalOptions:i,startTime:Kt||A(),duration:i.duration,tweens:[],createTween:function(e,i){var n=J.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)h.tweens[i].run(1);return e?a.resolveWith(t,[h,e]):a.rejectWith(t,[h,e]),this}}),c=h.props;for(E(c,h.opts.specialEasing);o<r;o++)if(n=ee[o].call(h,t,c,h.opts))return n;return J.map(c,O,h),J.isFunction(h.opts.start)&&h.opts.start.call(t,h),J.fx.timer(J.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always)}function N(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match(pt)||[];if(J.isFunction(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function H(t,e,i,n){function s(a){var l;return o[a]=!0,J.each(t[a]||[],function(t,a){var h=a(e,i,n);return"string"!=typeof h||r||o[h]?r?!(l=h):void 0:(e.dataTypes.unshift(h),s(h),!1)}),l}var o={},r=t===be;return s(e.dataTypes[0])||!o["*"]&&s("*")}function Y(t,e){var i,n,s=J.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&J.extend(!0,t,n),t}function j(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}function R(t,e,i,n){var s,o,r,a,l,h={},c=t.dataTypes.slice();if(c[1])for(r in t.converters)h[r.toLowerCase()]=t.converters[r];for(o=c.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(r=h[l+" "+o]||h["* "+o],!r)for(s in h)if(
vendor: 4,819 bytes, line 1
1a=s.split(" "),a[1]===o&&(r=h[l+" "+a[0]]||h["* "+a[0]])){r===!0?r=h[s]:h[s]!==!0&&(o=a[0],c.unshift(a[1]));break}if(r!==!0)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(u){return{state:"parsererror",error:r?u:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}function $(t,e,i,n){var s;if(J.isArray(e))J.each(e,function(e,s){i||Ce.test(t)?n(t,s):$(t+"["+("object"==typeof s?e:"")+"]",s,i,n)});else if(i||"object"!==J.type(e))n(t,e);else for(s in e)$(t+"["+s+"]",e[s],i,n)}function F(t){return J.isWindow(t)?t:9===t.nodeType&&t.defaultView}var z=[],W=z.slice,U=z.concat,B=z.push,G=z.indexOf,V={},q=V.toString,X=V.hasOwnProperty,K={},Q=t.document,Z="2.1.3",J=function(t,e){return new J.fn.init(t,e)},tt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,et=/^-ms-/,it=/-([\da-z])/gi,nt=function(t,e){return e.toUpperCase()};J.fn=J.prototype={jquery:Z,constructor:J,selector:"",length:0,toArray:function(){return W.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:W.call(this)},pushStack:function(t){var e=J.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return J.each(this,t,e)},map:function(t){return this.pushStack(J.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(W.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:z.sort,splice:z.splice},J.extend=J.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[a]||{},a++),"object"==typeof r||J.isFunction(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],n=t[e],r!==n&&(h&&n&&(J.isPlainObject(n)||(s=J.isArray(n)))?(s?(s=!1,o=i&&J.isArray(i)?i:[]):o=i&&J.isPlainObject(i)?i:{},r[e]=J.extend(h,o,n)):void 0!==n&&(r[e]=n));return r},J.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===J.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){return!J.isArray(t)&&t-parseFloat(t)+1>=0},isPlainObject:function(t){return"object"===J.type(t)&&!t.nodeType&&!J.isWindow(t)&&!(t.constructor&&!X.call(t.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?V[q.call(t)]||"object":typeof t},globalEval:function(t){var e,i=eval;t=J.trim(t),t&&(1===t.indexOf("use strict")?(e=Q.createElement("script"),e.text=t,Q.head.appendChild(e).parentNode.removeChild(e)):i(t))},camelCase:function(t){return t.replace(et,"ms-").replace(it,nt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var s,o=0,r=t.length,a=i(t);if(n){if(a)for(;o<r&&(s=e.apply(t[o],n),s!==!1);o++);else for(o in t)if(s=e.apply(t[o],n),s===!1)break}else if(a)for(;o<r&&(s=e.call(t[o],o,t[o]),s!==!1);o++);else for(o in t)if(s=e.call(t[o],o,t[o]),s===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(tt,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(i(Object(t))?J.merge(n,"string"==typeof t?[t]:t):B.call(n,t)),n},inArray:function(t,e,i){return null==e?-1:G.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n,s=[],o=0,r=t.length,a=!i;o<r;o++)n=!e(t[o],o),n!==a&&s.push(t[o]);return s},map:function(t,e,n){var s,o=0,r=t.length,a=i(t),l=[];if(a)for(;o<r;o++)s=e(t[o],o,n),null!=s&&l.push(s);else for(o in t)s=e(t[o],o,n),null!=s&&l.push(s);return U.apply([],l)},guid:1,proxy:function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),J.isFunction(t))return n=W.call(arguments,2),s=function(){return t.apply(e||this,n.concat(W.call(arguments)))},s.guid=t.guid=t.guid||J.guid++,s},now:Date.now,support:K}),J.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){V["[object "+e+"]"]=e.toLowerCase()});var st=function(t){function e(t,e,i,n){var s,o,r,a,l,h,u,p,f,m;if((e?e.ownerDocument||e:$)!==L&&O(e),e=e||L,i=i||[],a=e.nodeType,"string"!=typeof t||!t||1!==a&&9!==a&&11!==a)return i;if(!n&&I){if(11!==a&&(s=yt.exec(t)))if(r=s[1]){if(9===a){if(o=e.getElementById(r),!o||!o.parentNode)return i;if(o.id===r)return i.push(o),i}else if(e.ownerDocument&&(o=e.ownerDocument.getElementById(r))&&j(e,o)&&o.id===r)return i.push(o),i}else{if(s[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((r=s[3])&&_.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(r)),i}
vendor: 4,582 bytes, line 1
1if(_.qsa&&(!N||!N.test(t))){if(p=u=R,f=e,m=1!==a&&t,1===a&&"object"!==e.nodeName.toLowerCase()){for(h=S(t),(u=e.getAttribute("id"))?p=u.replace(xt,"\\$&"):e.setAttribute("id",p),p="[id='"+p+"'] ",l=h.length;l--;)h[l]=p+d(h[l]);f=bt.test(t)&&c(e.parentNode)||e,m=h.join(",")}if(m)try{return Z.apply(i,f.querySelectorAll(m)),i}catch(g){}finally{u||e.removeAttribute("id")}}}return T(t.replace(lt,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>w.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[R]=!0,t}function s(t){var e=L.createElement("div");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function o(t,e){for(var i=t.split("|"),n=t.length;n--;)w.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||V)-(~t.sourceIndex||V);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function a(t){return function(e){var i=e.nodeName.toLowerCase();return"input"===i&&e.type===t}}function l(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function h(t){return n(function(e){return e=+e,n(function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))})})}function c(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function u(){}function d(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function p(t,e,i){var n=e.dir,s=i&&"parentNode"===n,o=z++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,o)}:function(e,i,r){var a,l,h=[F,o];if(r){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,r))return!0}else for(;e=e[n];)if(1===e.nodeType||s){if(l=e[R]||(e[R]={}),(a=l[n])&&a[0]===F&&a[1]===o)return h[2]=a[2];if(l[n]=h,h[2]=t(e,i,r))return!0}}}function f(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var s=0,o=i.length;s<o;s++)e(t,i[s],n);return n}function g(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,h=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),h&&e.push(a)));return r}function v(t,e,i,s,o,r){return s&&!s[R]&&(s=v(s)),o&&!o[R]&&(o=v(o,r)),n(function(n,r,a,l){var h,c,u,d=[],p=[],f=r.length,v=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?v:g(v,d,t,a,l),b=i?o||(n?t:f||s)?[]:r:y;if(i&&i(y,b,a,l),s)for(h=g(b,p),s(h,[],a,l),c=h.length;c--;)(u=h[c])&&(b[p[c]]=!(y[p[c]]=u));if(n){if(o||t){if(o){for(h=[],c=b.length;c--;)(u=b[c])&&h.push(y[c]=u);o(null,b=[],h,l)}for(c=b.length;c--;)(u=b[c])&&(h=o?tt(n,u):d[c])>-1&&(n[h]=!(r[h]=u))}}else b=g(b===r?b.splice(f,b.length):b),o?o(null,r,b,l):Z.apply(r,b)})}function y(t){for(var e,i,n,s=t.length,o=w.relative[t[0].type],r=o||w.relative[" "],a=o?1:0,l=p(function(t){return t===e},r,!0),h=p(function(t){return tt(e,t)>-1},r,!0),c=[function(t,i,n){var s=!o&&(n||i!==M)||((e=i).nodeType?l(t,i,n):h(t,i,n));return e=null,s}];a<s;a++)if(i=w.relative[t[a].type])c=[p(f(c),i)];else{if(i=w.filter[t[a].type].apply(null,t[a].matches),i[R]){for(n=++a;n<s&&!w.relative[t[n].type];n++);return v(a>1&&f(c),a>1&&d(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(lt,"$1"),i,a<n&&y(t.slice(a,n)),n<s&&y(t=t.slice(n)),n<s&&d(t))}c.push(i)}return f(c)}function b(t,i){var s=i.length>0,o=t.length>0,r=function(n,r,a,l,h){var c,u,d,p=0,f="0",m=n&&[],v=[],y=M,b=n||o&&w.find.TAG("*",h),x=F+=null==y?1:Math.random()||.1,_=b.length;for(h&&(M=r!==L&&r);f!==_&&null!=(c=b[f]);f++){if(o&&c){for(u=0;d=t[u++];)if(d(c,r,a)){l.push(c);break}h&&(F=x)}s&&((c=!d&&c)&&p--,n&&m.push(c))}if(p+=f,s&&f!==p){for(u=0;d=i[u++];)d(m,v,r,a);if(n){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=K.call(l));v=g(v)}Z.apply(l,v),h&&!n&&v.length>0&&p+i.length>1&&e.uniqueSort(l)}return h&&(F=x,M=y),m};return s?n(r):r}var x,_,w,k,C,S,D,T,M,A,P,O,L,E,I,N,H,Y,j,R="sizzle"+1*new Date,$=t.document,F=0,z=0,W=i(),U=i(),B=i(),G=function(t,e){return t===e&&(P=!0),0},V=1<<31,q={}.hasOwnProperty,X=[],K=X.pop,Q=X.push,Z=X.push,J=X.slice,tt=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",it="[\\x20\\t\\r\\n\\f]",nt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",st=nt.replace("w","w#"),ot="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+st+"))|)"+it+"*\\]",rt=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",at=new RegExp(it+"+","g"),lt=new RegExp("^"+it
vendor: 5,945 bytes, line 1
1+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),ht=new RegExp("^"+it+"*,"+it+"*"),ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ut=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),dt=new RegExp(rt),pt=new RegExp("^"+st+"$"),ft={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt.replace("w","w*")+")"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+rt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+it+"*(even|odd|(([+-]|)(\\d*)n|)"+it+"*(?:([+-]|)"+it+"*(\\d+)|))"+it+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+it+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+it+"*((?:-\\d)?\\d*)"+it+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,_t=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),wt=function(t,e,i){var n="0x"+e-65536;return n!==n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},kt=function(){O()};try{Z.apply(X=J.call($.childNodes),$.childNodes),X[$.childNodes.length].nodeType}catch(Ct){Z={apply:X.length?function(t,e){Q.apply(t,J.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}_=e.support={},C=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},O=e.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:$;return n!==L&&9===n.nodeType&&n.documentElement?(L=n,E=n.documentElement,i=n.defaultView,i&&i!==i.top&&(i.addEventListener?i.addEventListener("unload",kt,!1):i.attachEvent&&i.attachEvent("onunload",kt)),I=!C(n),_.attributes=s(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=s(function(t){return t.appendChild(n.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=vt.test(n.getElementsByClassName),_.getById=s(function(t){return E.appendChild(t).id=R,!n.getElementsByName||!n.getElementsByName(R).length}),_.getById?(w.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&I){var i=e.getElementById(t);return i&&i.parentNode?[i]:[]}},w.filter.ID=function(t){var e=t.replace(_t,wt);return function(t){return t.getAttribute("id")===e}}):(delete w.find.ID,w.filter.ID=function(t){var e=t.replace(_t,wt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),w.find.TAG=_.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},w.find.CLASS=_.getElementsByClassName&&function(t,e){if(I)return e.getElementsByClassName(t)},H=[],N=[],(_.qsa=vt.test(n.querySelectorAll))&&(s(function(t){E.appendChild(t).innerHTML="<a id='"+R+"'></a><select id='"+R+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&N.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||N.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+R+"-]").length||N.push("~="),t.querySelectorAll(":checked").length||N.push(":checked"),t.querySelectorAll("a#"+R+"+*").length||N.push(".#.+[+~]")}),s(function(t){var e=n.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&N.push("name"+it+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||N.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),N.push(",.*:")})),(_.matchesSelector=vt.test(Y=E.matches||E.webkitMatchesSelector||E.mozMatchesSelector||E.oMatchesSelector||E.msMatchesSelector))&&s(function(t){_.disconnectedMatch=Y.call(t,"div"),Y.call(t,"[s!='']:x"),H.push("!=",rt)}),N=N.length&&new RegExp(N.join("|")),H=H.length&&new RegExp(H.join("|")),e=vt.test(E.compareDocumentPosition),j=e||vt.test(E.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=e?function(t,e){if(t===e)return P=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!_.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===$&&j($,t)?-1:e===n||e.ownerDocument===$&&j($,e)?1:A?tt(A,t)-tt(A,e):0:4&i?-1:1)}:function(t,e){if(t===e)return P=!0,0;var i,s=0,o=t.parentNode,a=e.parentNode,l=[t],h=[e];if(!o||!a)return t===n?-1:e===n?1:o?-1:a?1:A?tt(A,t)-tt(A,e):0;if(o===a)return r(t,e);for(i=t;i=i.parentNode;)l.unshift(i);for(i=e;i=i.parentNode;)h.unshift(i);for(;l[s]===h[s];)s++;return s?r(l[s],h[s]):l[s]===$?-1:h[s]===$?1:0},n):L},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==L&&O(t),i=i.replace(ut,"='$1']"),_.matchesSelector&&I&&(!H||!H.test(i))&&(!N||!N.test(i)))try{var n=Y.call(t,i);if(n||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(s){}return e(i,L,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==L&&O(t),j(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==L&&O(t);var i=w.attrHandle[e.toLowerCase()],n=i&&q.call(w.attrHandle,e.toLowerCase())?i(t,e,!I):void 0;return void 0!==n?n:_.attributes||!I?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,s=0;if(P=!_.detectDuplicates,A=!_.sortStable&&t.slice(0),t.sort(G),P){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)t.splice(i[n],1)}return A=null,t},k=e.getText=function(t){var e,i="",n=0,s=t.nodeType;
vendor: 4,231 bytes, line 1
1if(s){if(1===s||9===s||11===s){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=k(t)}else if(3===s||4===s)return t.nodeValue}else for(;e=t[n++];)i+=k(e);return i},w=e.selectors={cacheLength:50,createPseudo:n,match:ft,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(_t,wt),t[3]=(t[3]||t[4]||t[5]||"").replace(_t,wt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&dt.test(i)&&(e=S(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(_t,wt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=W[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&W(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,i,n){return function(s){var o=e.attr(s,t);return null==o?"!="===i:!i||(o+="","="===i?o===n:"!="===i?o!==n:"^="===i?n&&0===o.indexOf(n):"*="===i?n&&o.indexOf(n)>-1:"$="===i?n&&o.slice(-n.length)===n:"~="===i?(" "+o.replace(at," ")+" ").indexOf(n)>-1:"|="===i&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,p,f,m=o!==r?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a;if(g){if(o){for(;m;){for(u=e;u=u[m];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&y){for(c=g[R]||(g[R]={}),h=c[t]||[],p=h[0]===F&&h[1],d=h[0]===F&&h[2],u=p&&g.childNodes[p];u=++p&&u&&u[m]||(d=p=0)||f.pop();)if(1===u.nodeType&&++d&&u===e){c[t]=[F,p,d];break}}else if(y&&(h=(e[R]||(e[R]={}))[t])&&h[0]===F)d=h[1];else for(;(u=++p&&u&&u[m]||(d=p=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++d||(y&&((u[R]||(u[R]={}))[t]=[F,d]),u!==e)););return d-=s,d===n||d%n===0&&d/n>=0}}},PSEUDO:function(t,i){var s,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return o[R]?o(i):o.length>1?(s=[t,t,"",i],w.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,s=o(t,i),r=s.length;r--;)n=tt(t,s[r]),t[n]=!(e[n]=s[r])}):function(t){return o(t,0,s)}):o}},pseudos:{not:n(function(t){var e=[],i=[],s=D(t.replace(lt,"$1"));return s[R]?n(function(t,e,i,n){for(var o,r=s(t,null,n,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))}):function(t,n,o){return e[0]=t,s(e,null,o,i),e[0]=null,!i.pop()}}),has:n(function(t){return function(i){return e(t,i).length>0}}),contains:n(function(t){return t=t.replace(_t,wt),function(e){return(e.textContent||e.innerText||k(e)).indexOf(t)>-1}}),lang:n(function(t){return pt.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(_t,wt).toLowerCase(),function(e){var i;do if(i=I?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return i=i.toLowerCase(),i===t||0===i.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===E},focus:function(t){return t===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)}
vendor: 26,617 bytes, lines 1-2
1,header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:h(function(){return[0]}),last:h(function(t,e){return[e-1]}),eq:h(function(t,e,i){return[i<0?i+e:i]}),even:h(function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t}),odd:h(function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t}),lt:h(function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t}),gt:h(function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t})}},w.pseudos.nth=w.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[x]=a(x);for(x in{submit:!0,reset:!0})w.pseudos[x]=l(x);return u.prototype=w.filters=w.pseudos,w.setFilters=new u,S=e.tokenize=function(t,i){var n,s,o,r,a,l,h,c=U[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],h=w.preFilter;a;){n&&!(s=ht.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),n=!1,(s=ct.exec(a))&&(n=s.shift(),o.push({value:n,type:s[0].replace(lt," ")}),a=a.slice(n.length));for(r in w.filter)!(s=ft[r].exec(a))||h[r]&&!(s=h[r](s))||(n=s.shift(),o.push({value:n,type:r,matches:s}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):U(t,l).slice(0)},D=e.compile=function(t,e){var i,n=[],s=[],o=B[t+" "];if(!o){for(e||(e=S(t)),i=e.length;i--;)o=y(e[i]),o[R]?n.push(o):s.push(o);o=B(t,b(s,n)),o.selector=t}return o},T=e.select=function(t,e,i,n){var s,o,r,a,l,h="function"==typeof t&&t,u=!n&&S(t=h.selector||t);if(i=i||[],1===u.length){if(o=u[0]=u[0].slice(0),o.length>2&&"ID"===(r=o[0]).type&&_.getById&&9===e.nodeType&&I&&w.relative[o[1].type]){if(e=(w.find.ID(r.matches[0].replace(_t,wt),e)||[])[0],!e)return i;h&&(e=e.parentNode),t=t.slice(o.shift().value.length)}for(s=ft.needsContext.test(t)?0:o.length;s--&&(r=o[s],!w.relative[a=r.type]);)if((l=w.find[a])&&(n=l(r.matches[0].replace(_t,wt),bt.test(o[0].type)&&c(e.parentNode)||e))){if(o.splice(s,1),t=n.length&&d(o),!t)return Z.apply(i,n),i;break}}return(h||D(t,u))(n,e,!I,i,bt.test(t)&&c(e.parentNode)||e),i},_.sortStable=R.split("").sort(G).join("")===R,_.detectDuplicates=!!P,O(),_.sortDetached=s(function(t){return 1&t.compareDocumentPosition(L.createElement("div"))}),s(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||o("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&s(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||o("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),s(function(t){return null==t.getAttribute("disabled")})||o(et,function(t,e,i){var n;if(!i)return t[e]===!0?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null}),e}(t);J.find=st,J.expr=st.selectors,J.expr[":"]=J.expr.pseudos,J.unique=st.uniqueSort,J.text=st.getText,J.isXMLDoc=st.isXML,J.contains=st.contains;var ot=J.expr.match.needsContext,rt=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,at=/^.[^:#\[\.,]*$/;J.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?J.find.matchesSelector(n,t)?[n]:[]:J.find.matches(t,J.grep(e,function(t){return 1===t.nodeType}))},J.fn.extend({find:function(t){var e,i=this.length,n=[],s=this;if("string"!=typeof t)return this.pushStack(J(t).filter(function(){
2for(e=0;e<i;e++)if(J.contains(s[e],this))return!0}));for(e=0;e<i;e++)J.find(t,s[e],n);return n=this.pushStack(i>1?J.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(n(this,t||[],!1))},not:function(t){return this.pushStack(n(this,t||[],!0))},is:function(t){return!!n(this,"string"==typeof t&&ot.test(t)?J(t):t||[],!1).length}});var lt,ht=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ct=J.fn.init=function(t,e){var i,n;if(!t)return this;if("string"==typeof t){if(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:ht.exec(t),!i||!i[1]&&e)return!e||e.jquery?(e||lt).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof J?e[0]:e,J.merge(this,J.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:Q,!0)),rt.test(i[1])&&J.isPlainObject(e))for(i in e)J.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return n=Q.getElementById(i[2]),n&&n.parentNode&&(this.length=1,this[0]=n),this.context=Q,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):J.isFunction(t)?"undefined"!=typeof lt.ready?lt.ready(t):t(J):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),J.makeArray(t,this))};ct.prototype=J.fn,lt=J(Q);var ut=/^(?:parents|prev(?:Until|All))/,dt={children:!0,contents:!0,next:!0,prev:!0};J.extend({dir:function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&J(t).is(i))break;n.push(t)}return n},sibling:function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i}}),J.fn.extend({has:function(t){var e=J(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(J.contains(this,e[t]))return!0})},closest:function(t,e){for(var i,n=0,s=this.length,o=[],r=ot.test(t)||"string"!=typeof t?J(t,e||this.context):0;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&J.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?J.unique(o):o)},index:function(t){return t?"string"==typeof t?G.call(J(t),this[0]):G.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(J.unique(J.merge(this.get(),J(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),J.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return J.dir(t,"parentNode")},parentsUntil:function(t,e,i){return J.dir(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return J.dir(t,"nextSibling")},prevAll:function(t){return J.dir(t,"previousSibling")},nextUntil:function(t,e,i){return J.dir(t,"nextSibling",i)},prevUntil:function(t,e,i){return J.dir(t,"previousSibling",i)},siblings:function(t){return J.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return J.sibling(t.firstChild)},contents:function(t){return t.contentDocument||J.merge([],t.childNodes)}},function(t,e){J.fn[t]=function(i,n){var s=J.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=J.filter(n,s)),this.length>1&&(dt[t]||J.unique(s),ut.test(t)&&s.reverse()),this.pushStack(s)}});var pt=/\S+/g,ft={};J.Callbacks=function(t){t="string"==typeof t?ft[t]||o(t):J.extend({},t);var e,i,n,s,r,a,l=[],h=!t.once&&[],c=function(o){for(e=t.memory&&o,i=!0,a=s||0,s=0,r=l.length,n=!0;l&&a<r;a++)if(l[a].apply(o[0],o[1])===!1&&t.stopOnFalse){e=!1;break}n=!1,l&&(h?h.length&&c(h.shift()):e?l=[]:u.disable())},u={add:function(){if(l){var i=l.length;!function o(e){J.each(e,function(e,i){var n=J.type(i);"function"===n?t.unique&&u.has(i)||l.push(i):i&&i.length&&"string"!==n&&o(i)})}(arguments),n?r=l.length:e&&(s=i,c(e))}return this},remove:function(){return l&&J.each(arguments,function(t,e){for(var i;(i=J.inArray(e,l,i))>-1;)l.splice(i,1),n&&(i<=r&&r--,i<=a&&a--)}),this},has:function(t){return t?J.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],r=0,this},disable:function(){return l=h=e=void 0,this},disabled:function(){return!l},lock:function(){return h=void 0,e||u.disable(),this},locked:function(){return!h},fireWith:function(t,e){return!l||i&&!h||(e=e||[],e=[t,e.slice?e.slice():e],n?h.push(e):c(e)),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},J.extend({Deferred:function(t){var e=[["resolve","done",J.Callbacks("once memory"),"resolved"],["reject","fail",J.Callbacks("once memory"),"rejected"],["notify","progress",J.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var t=arguments;return J.Deferred(function(i){J.each(e,function(e,o){var r=J.isFunction(t[e])&&t[e];s[o[1]](function(){var t=r&&r.apply(this,arguments);t&&J.isFunction(t.promise)?t.promise().done(i.resolve).fail(i.reject).progress(i.notify):i[o[0]+"With"](this===n?i.promise():this,r?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?J.extend(t,n):n}},s={};return n.pipe=n.then,J.each(e,function(t,o){var r=o[2],a=o[3];n[o[1]]=r.add,a&&r.add(function(){i=a},e[1^t][2].disable,e[2][2].lock),s[o[0]]=function(){return s[o[0]+"With"](this===s?n:this,arguments),this},s[o[0]+"With"]=r.fireWith}),n.promise(s),t&&t.call(s,s),s},when:function(t){var e,i,n,s=0,o=W.call(arguments),r=o.length,a=1!==r||t&&J.isFunction(t.promise)?r:0,l=1===a?t:J.Deferred(),h=function(t,i,n){return function(s){i[t]=this,n[t]=arguments.length>1?W.call(arguments):s,n===e?l.notifyWith(i,n):--a||l.resolveWith(i,n)}};if(r>1)for(e=new Array(r),i=new Array(r),n=new Array(r);s<r;s++)o[s]&&J.isFunction(o[s].promise)?o[s].promise().done(h(s,n,o)).fail(l.reject).progress(h(s,i,e)):--a;return a||l.resolveWith(n,o),l.promise()}});var mt;J.fn.ready=function(t){return J.ready.promise().done(t),this},J.extend({isReady:!1,readyWait:1,holdReady:function(t){t?J.readyWait++:J.ready(!0)},ready:function(t){(t===!0?--J.readyWait:J.isReady)||(J.isReady=!0,t!==!0&&--J.readyWait>0||(mt.resolveWith(Q,[J]),J.fn.triggerHandler&&(J(Q).triggerHandler("ready"),J(Q).off("ready"))))}}),J.ready.promise=function(e){return mt||(mt=J.Deferred(),"complete"===Q.readyState?setTimeout(J.ready):(Q.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1))),mt.promise(e)},J.ready.promise();var gt=J.access=function(t,e,i,n,s,o,r){var a=0,l=t.length,h=null==i;if("object"===J.type(i)){s=!0;for(a in i)J.access(t,e,a,i[a],!0,o,r)}else if(void 0!==n&&(s=!0,J.isFunction(n)||(r=!0),h&&(r?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(J(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:h?e.call(t):l?e(t[0],i):o};J.acceptData=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType},a.uid=1,a.accepts=J.acceptData,a.prototype={key:function(t){if(!a.accepts(t))return 0;var e={},i=t[this.expando];if(!i){i=a.uid++;try{e[this.expando]={value:i},Object.defineProperties(t,e)}catch(n){e[this.expando]=i,J.extend(t,e)}}return this.cache[i]||(this.cache[i]={}),i},set:function(t,e,i){var n,s=this.key(t),o=this.cache[s];if("string"==typeof e)o[e]=i;else if(J.isEmptyObject(o))J.extend(this.cache[s],e);else for(n in e)o[n]=e[n];return o},get:function(t,e){var i=this.cache[this.key(t)];return void 0===e?i:i[e]},access:function(t,e,i){var n;return void 0===e||e&&"string"==typeof e&&void 0===i?(n=this.get(t,e),void 0!==n?n:this.get(t,J.camelCase(e))):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n,s,o=this.key(t),r=this.cache[o];if(void 0===e)this.cache[o]={};else{J.isArray(e)?n=e.concat(e.map(J.camelCase)):(s=J.camelCase(e),e in r?n=[e,s]:(n=s,n=n in r?[n]:n.match(pt)||[])),i=n.length;for(;i--;)delete r[n[i]]}},hasData:function(t){return!J.isEmptyObject(this.cache[t[this.expando]]||{})},discard:function(t){t[this.expando]&&delete this.cache[t[this.expando]]}};var vt=new a,yt=new a,bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,xt=/([A-Z])/g;J.extend({hasData:function(t){return yt.hasData(t)||vt.hasData(t)},data:function(t,e,i){return yt.access(t,e,i)},removeData:function(t,e){yt.remove(t,e)},_data:function(t,e,i){return vt.access(t,e,i)},_removeData:function(t,e){vt.remove(t,e)}}),J.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=yt.get(o),1===o.nodeType&&!vt.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=J.camelCase(n.slice(5)),l(o,n,s[n])));vt.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each(function(){yt.set(this,t)}):gt(this,function(e){var i,n=J.camelCase(t);if(o&&void 0===e){if(i=yt.get(o,t),void 0!==i)return i;if(i=yt.get(o,n),void 0!==i)return i;if(i=l(o,n,void 0),void 0!==i)return i}else this.each(function(){var i=yt.get(this,n);yt.set(this,n,e),t.indexOf("-")!==-1&&void 0!==i&&yt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){yt.remove(this,t)})}}),J.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=vt.get(t,e),i&&(!n||J.isArray(i)?n=vt.access(t,e,J.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=J.queue(t,e),n=i.length,s=i.shift(),o=J._queueHooks(t,e),r=function(){J.dequeue(t,e)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,r,o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return vt.get(t,i)||vt.access(t,i,{empty:J.Callbacks("once memory").add(function(){vt.remove(t,[e+"queue",i])})})}}),J.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?J.queue(this[0],t):void 0===e?this:this.each(function(){var i=J.queue(this,t,e);J._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&J.dequeue(this,t)})},dequeue:function(t){return this.each(function(){J.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=J.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)i=vt.get(o[r],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var _t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,wt=["Top","Right","Bottom","Left"],kt=function(t,e){return t=e||t,"none"===J.css(t,"display")||!J.contains(t.ownerDocument,t)},Ct=/^(?:checkbox|radio)$/i;!function(){var t=Q.createDocumentFragment(),e=t.appendChild(Q.createElement("div")),i=Q.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),K.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",K.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var St="undefined";K.focusinBubbles="onfocusin"in t;var Dt=/^key/,Tt=/^(?:mouse|pointer|contextmenu)|click/,Mt=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;J.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,h,c,u,d,p,f,m,g=vt.get(t);if(g)for(i.handler&&(o=i,i=o.handler,s=o.selector),i.guid||(i.guid=J.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(e){return typeof J!==St&&J.event.triggered!==e.type?J.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(pt)||[""],h=e.length;h--;)a=At.exec(e[h])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p&&(u=J.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=J.event.special[p]||{},c=J.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&J.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||(d=l[p]=[],d.delegateCount=0,u.setup&&u.setup.call(t,n,f,r)!==!1||t.addEventListener&&t.addEventListener(p,r,!1)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,c):d.push(c),J.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,h,c,u,d,p,f,m,g=vt.hasData(t)&&vt.get(t);if(g&&(l=g.events)){for(e=(e||"").match(pt)||[""],h=e.length;h--;)if(a=At.exec(e[h])||[],p=m=a[1],f=(a[2]||"").split(".").sort(),p){for(u=J.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,d=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)c=d[o],!s&&m!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));r&&!d.length&&(u.teardown&&u.teardown.call(t,f,g.handle)!==!1||J.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)J.event.remove(t,p+e[h],i,n,!0);J.isEmptyObject(l)&&(delete g.handle,vt.remove(t,"events"))}},trigger:function(e,i,n,s){var o,r,a,l,h,c,u,d=[n||Q],p=X.call(e,"type")?e.type:e,f=X.call(e,"namespace")?e.namespace.split("."):[];if(r=a=n=n||Q,3!==n.nodeType&&8!==n.nodeType&&!Mt.test(p+J.event.triggered)&&(p.indexOf(".")>=0&&(f=p.split("."),p=f.shift(),f.sort()),h=p.indexOf(":")<0&&"on"+p,e=e[J.expando]?e:new J.Event(p,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=f.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:J.makeArray(i,[e]),u=J.event.special[p]||{},s||!u.trigger||u.trigger.apply(n,i)!==!1)){if(!s&&!u.noBubble&&!J.isWindow(n)){for(l=u.delegateType||p,Mt.test(l+p)||(r=r.parentNode);r;r=r.parentNode)d.push(r),a=r;a===(n.ownerDocument||Q)&&d.push(a.defaultView||a.parentWindow||t)}for(o=0;(r=d[o++])&&!e.isPropagationStopped();)e.type=o>1?l:u.bindType||p,c=(vt.get(r,"events")||{})[e.type]&&vt.get(r,"handle"),c&&c.apply(r,i),c=h&&r[h],c&&c.apply&&J.acceptData(r)&&(e.result=c.apply(r,i),e.result===!1&&e.preventDefault());return e.type=p,s||e.isDefaultPrevented()||u._default&&u._default.apply(d.pop(),i)!==!1||!J.acceptData(n)||h&&J.isFunction(n[p])&&!J.isWindow(n)&&(a=n[h],a&&(n[h]=null),J.event.triggered=p,n[p](),J.event.triggered=void 0,a&&(n[h]=a)),e.result}},dispatch:function(t){t=J.event.fix(t);var e,i,n,s,o,r=[],a=W.call(arguments),l=(vt.get(this,"events")||{})[t.type]||[],h=J.event.special[t.type]||{};if(a[0]=t,t.delegateTarget=this,!h.preDispatch||h.preDispatch.call(this,t)!==!1){for(r=J.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.namespace_re&&!t.namespace_re.test(o.namespace)||(t.handleObj=o,t.data=o.data,n=((J.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!==this;l=l.parentNode||this)if(l.disabled!==!0||"click"!==t.type){for(n=[],i=0;i<a;i++)o=e[i],s=o.selector+" ",void 0===n[s]&&(n[s]=o.needsContext?J(s,this).index(l)>=0:J.find(s,this,null,[l]).length),n[s]&&n.push(o);n.length&&r.push({elem:l,handlers:n})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var i,n,s,o=e.button;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||Q,n=i.documentElement,s=i.body,t.pageX=e.clientX+(n&&n.scrollLeft||s&&s.scrollLeft||0)-(n&&n.clientLeft||s&&s.clientLeft||0),t.pageY=e.clientY+(n&&n.scrollTop||s&&s.scrollTop||0)-(n&&n.clientTop||s&&s.clientTop||0)),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},fix:function(t){if(t[J.expando])return t;var e,i,n,s=t.type,o=t,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=Tt.test(s)?this.mouseHooks:Dt.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,t=new J.Event(o),e=n.length;e--;)i=n[e],t[i]=o[i];return t.target||(t.target=Q),3===t.target.nodeType&&(t.target=t.target.parentNode),r.filter?r.filter(t,o):t},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==u()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===u()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&J.nodeName(this,"input"))return this.click(),!1},_default:function(t){return J.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i,n){var s=J.extend(new J.Event,i,{type:t,isSimulated:!0,originalEvent:{}});n?J.event.trigger(s,null,e):J.event.dispatch.call(e,s),s.isDefaultPrevented()&&i.preventDefault()}},J.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i,!1)},J.Event=function(t,e){return this instanceof J.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?h:c):this.type=t,e&&J.extend(this,e),this.timeStamp=t&&t.timeStamp||J.now(),void(this[J.expando]=!0)):new J.Event(t,e)},J.Event.prototype={isDefaultPrevented:c,isPropagationStopped:c,isImmediatePropagationStopped:c,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=h,t&&t.preventDefault&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=h,t&&t.stopPropagation&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},J.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){J.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,s=t.relatedTarget,o=t.handleObj;return s&&(s===n||J.contains(n,s))||(t.type=o.origType,i=o.handler.apply(this,arguments),t.type=e),i}}}),K.focusinBubbles||J.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){J.event.simulate(e,t.target,J.event.fix(t),!0)};J.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=vt.access(n,e);s||n.addEventListener(t,i,!0),vt.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=vt.access(n,e)-1;s?vt.access(n,e,s):(n.removeEventListener(t,i,!0),vt.remove(n,e))}}}),J.fn.extend({on:function(t,e,i,n,s){var o,r;if("object"==typeof t){"string"!=typeof e&&(i=i||e,e=void 0);for(r in t)this.on(r,e,i,t[r],s);return this}if(null==i&&null==n?(n=e,i=e=void 0):null==n&&("string"==typeof e?(n=i,i=void 0):(n=i,i=e,e=void 0)),n===!1)n=c;else if(!n)return this;return 1===s&&(o=n,n=function(t){return J().off(t),o.apply(this,arguments)},n.guid=o.guid||(o.guid=J.guid++)),this.each(function(){J.event.add(this,t,n,i,e)})},one:function(t,e,i,n){return this.on(t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,J(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=c),this.each(function(){J.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){J.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return J.event.trigger(t,e,i,!0)}});var Pt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ot=/<([\w:]+)/,Lt=/<|&#?\w+;/,Et=/<(?:script|style|link)/i,It=/checked\s*(?:[^=]|=\s*.checked.)/i,Nt=/^$|\/(?:java|ecma)script/i,Ht=/^true\/(.*)/,Yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,jt={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,"",""]};jt.optgroup=jt.option,jt.tbody=jt.tfoot=jt.colgroup=jt.caption=jt.thead,jt.th=jt.td,J.extend({clone:function(t,e,i){var n,s,o,r,a=t.cloneNode(!0),l=J.contains(t.ownerDocument,t);if(!(K.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||J.isXMLDoc(t)))for(r=v(a),o=v(t),n=0,s=o.length;n<s;n++)y(o[n],r[n]);if(e)if(i)for(o=o||v(t),r=r||v(a),n=0,s=o.length;n<s;n++)g(o[n],r[n]);else g(t,a);return r=v(a,"script"),r.length>0&&m(r,!l&&v(t,"script")),a},buildFragment:function(t,e,i,n){for(var s,o,r,a,l,h,c=e.createDocumentFragment(),u=[],d=0,p=t.length;d<p;d++)if(s=t[d],s||0===s)if("object"===J.type(s))J.merge(u,s.nodeType?[s]:s);else if(Lt.test(s)){for(o=o||c.appendChild(e.createElement("div")),r=(Ot.exec(s)||["",""])[1].toLowerCase(),a=jt[r]||jt._default,o.innerHTML=a[1]+s.replace(Pt,"<$1></$2>")+a[2],h=a[0];h--;)o=o.lastChild;J.merge(u,o.childNodes),o=c.firstChild,o.textContent=""}else u.push(e.createTextNode(s));for(c.textContent="",d=0;s=u[d++];)if((!n||J.inArray(s,n)===-1)&&(l=J.contains(s.ownerDocument,s),o=v(c.appendChild(s),"script"),l&&m(o),i))for(h=0;s=o[h++];)Nt.test(s.type||"")&&i.push(s);return c},cleanData:function(t){for(var e,i,n,s,o=J.event.special,r=0;void 0!==(i=t[r]);r++){if(J.acceptData(i)&&(s=i[vt.expando],s&&(e=vt.cache[s]))){if(e.events)for(n in e.events)o[n]?J.event.remove(i,n):J.removeEvent(i,n,e.handle);vt.cache[s]&&delete vt.cache[s]}delete yt.cache[i[yt.expando]]}}}),J.fn.extend({text:function(t){return gt(this,function(t){return void 0===t?J.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=d(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var i,n=t?J.filter(t,this):this,s=0;null!=(i=n[s]);s++)e||1!==i.nodeType||J.cleanData(v(i)),i.parentNode&&(e&&J.contains(i.ownerDocument,i)&&m(v(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(J.cleanData(v(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return J.clone(this,t,e)})},html:function(t){return gt(this,function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Et.test(t)&&!jt[(Ot.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Pt,"<$1></$2>");try{for(;i<n;i++)e=this[i]||{}
vendor: 10,442 bytes, lines 2-3
2,1===e.nodeType&&(J.cleanData(v(e,!1)),e.innerHTML=t);e=0}catch(s){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,J.cleanData(v(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=U.apply([],t);var i,n,s,o,r,a,l=0,h=this.length,c=this,u=h-1,d=t[0],m=J.isFunction(d);if(m||h>1&&"string"==typeof d&&!K.checkClone&&It.test(d))return this.each(function(i){var n=c.eq(i);m&&(t[0]=d.call(this,i,n.html())),n.domManip(t,e)});if(h&&(i=J.buildFragment(t,this[0].ownerDocument,!1,this),n=i.firstChild,1===i.childNodes.length&&(i=n),n)){for(s=J.map(v(i,"script"),p),o=s.length;l<h;l++)r=i,l!==u&&(r=J.clone(r,!0,!0),o&&J.merge(s,v(r,"script"))),e.call(this[l],r,l);if(o)for(a=s[s.length-1].ownerDocument,J.map(s,f),l=0;l<o;l++)r=s[l],Nt.test(r.type||"")&&!vt.access(r,"globalEval")&&J.contains(a,r)&&(r.src?J._evalUrl&&J._evalUrl(r.src):J.globalEval(r.textContent.replace(Yt,"")))}return this}}),J.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){J.fn[t]=function(t){for(var i,n=[],s=J(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),J(s[r])[e](i),B.apply(n,i.get());return this.pushStack(n)}});var Rt,$t={},Ft=/^margin/,zt=new RegExp("^("+_t+")(?!px)[a-z%]+$","i"),Wt=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)};!function(){function e(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",r.innerHTML="",s.appendChild(o);var e=t.getComputedStyle(r,null);i="1%"!==e.top,n="4px"===e.width,s.removeChild(o)}var i,n,s=Q.documentElement,o=Q.createElement("div"),r=Q.createElement("div");r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",K.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(r),t.getComputedStyle&&J.extend(K,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return null==n&&e(),n},reliableMarginRight:function(){var e,i=r.appendChild(Q.createElement("div"));return i.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",i.style.marginRight=i.style.width="0",r.style.width="1px",s.appendChild(o),e=!parseFloat(t.getComputedStyle(i,null).marginRight),s.removeChild(o),r.removeChild(i),e}}))}(),J.swap=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];s=i.apply(t,n||[]);for(o in e)t.style[o]=r[o];return s};var Ut=/^(none|table(?!-c[ea]).+)/,Bt=new RegExp("^("+_t+")(.*)$","i"),Gt=new RegExp("^([+-])=("+_t+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},qt={letterSpacing:"0",fontWeight:"400"},Xt=["Webkit","O","Moz","ms"];J.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=_(t,"opacity");return""===i?"1":i}}}},cssNumber:{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(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=J.camelCase(e),l=t.style;return e=J.cssProps[a]||(J.cssProps[a]=k(l,a)),r=J.cssHooks[e]||J.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:l[e]:(o=typeof i,"string"===o&&(s=Gt.exec(i))&&(i=(s[1]+1)*s[2]+parseFloat(J.css(t,e)),o="number"),null!=i&&i===i&&("number"!==o||J.cssNumber[a]||(i+="px"),K.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i)),void 0)}},css:function(t,e,i,n){var s,o,r,a=J.camelCase(e);return e=J.cssProps[a]||(J.cssProps[a]=k(t.style,a)),r=J.cssHooks[e]||J.cssHooks[a],r&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=_(t,e,n)),"normal"===s&&e in qt&&(s=qt[e]),""===i||i?(o=parseFloat(s),i===!0||J.isNumeric(o)?o||0:s):s}}),J.each(["height","width"],function(t,e){J.cssHooks[e]={get:function(t,i,n){if(i)return Ut.test(J.css(t,"display"))&&0===t.offsetWidth?J.swap(t,Vt,function(){return D(t,e,n)}):D(t,e,n)},set:function(t,i,n){var s=n&&Wt(t);return C(t,i,n?S(t,e,n,"border-box"===J.css(t,"boxSizing",!1,s),s):0)}}}),J.cssHooks.marginRight=w(K.reliableMarginRight,function(t,e){if(e)return J.swap(t,{display:"inline-block"},_,[t,"marginRight"])}),J.each({margin:"",padding:"",border:"Width"},function(t,e){J.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+wt[n]+e]=o[n]||o[n-2]||o[0];return s}},Ft.test(t)||(J.cssHooks[t+e].set=C)}),J.fn.extend({css:function(t,e){return gt(this,function(t,e,i){var n,s,o={},r=0;if(J.isArray(e)){for(n=Wt(t),s=e.length;r<s;r++)o[e[r]]=J.css(t,e[r],!1,n);return o}return void 0!==i?J.style(t,e,i):J.css(t,e)},t,e,arguments.length>1)},show:function(){return T(this,!0)},hide:function(){return T(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){kt(this)?J(this).show():J(this).hide()})}}),J.Tween=M,M.prototype={constructor:M,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||"swing",this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(J.cssNumber[i]?"":"px")},cur:function(){var t=M.propHooks[this.prop];return t&&t.get?t.get(this):M.propHooks._default.get(this)},run:function(t){var e,i=M.propHooks[this.prop];return this.options.duration?this.pos=e=J.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):M.propHooks._default.set(this),this}},M.prototype.init.prototype=M.prototype,M.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=J.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){J.fx.step[t.prop]?J.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[J.cssProps[t.prop]]||J.cssHooks[t.prop])?J.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},M.propHooks.scrollTop=M.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},J.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},J.fx=M.prototype.init,J.fx.step={};var Kt,Qt,Zt=/^(?:toggle|show|hide)$/,Jt=new RegExp("^(?:([+-])=|)("+_t+")([a-z%]*)$","i"),te=/queueHooks$/,ee=[L],ie={"*":[function(t,e){var i=this.createTween(t,e),n=i.cur(),s=Jt.exec(e),o=s&&s[3]||(J.cssNumber[t]?"":"px"),r=(J.cssNumber[t]||"px"!==o&&+n)&&Jt.exec(J.css(i.elem,t)),a=1,l=20;if(r&&r[3]!==o){o=o||r[3],s=s||[],r=+n||1;do a=a||".5",r/=a,J.style(i.elem,t,r+o);while(a!==(a=i.cur()/n)&&1!==a&&--l)}return s&&(r=i.start=+r||+n||0,i.unit=o,i.end=s[1]?r+(s[1]+1)*s[2]:+s[2]),i}]};J.Animation=J.extend(I,{tweener:function(t,e){J.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var i,n=0,s=t.length;n<s;n++)i=t[n],ie[i]=ie[i]||[],ie[i].unshift(e)},prefilter:function(t,e){e?ee.unshift(t):ee.push(t)}}),J.speed=function(t,e,i){var n=t&&"object"==typeof t?J.extend({},t):{complete:i||!i&&e||J.isFunction(t)&&t,duration:t,easing:i&&e||e&&!J.isFunction(e)&&e};return n.duration=J.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in J.fx.speeds?J.fx.speeds[n.duration]:J.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){J.isFunction(n.old)&&n.old.call(this),n.queue&&J.dequeue(this,n.queue)},n},J.fn.extend({fadeTo:function(t,e,i,n){return this.filter(kt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=J.isEmptyObject(t),o=J.speed(e,i,n),r=function(){var e=I(this,J.extend({},t),o);(s||vt.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||o.queue===!1?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var e=!0,s=null!=t&&t+"queueHooks",o=J.timers,r=vt.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&te.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||J.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=vt.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=J.timers,r=n?n.length:0;for(i.finish=!0,J.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));
3for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),J.each(["toggle","show","hide"],function(t,e){var i=J.fn[e];J.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(P(e,!0),t,n,s)}}),J.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){J.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),J.timers=[],J.fx.tick=function(){var t,e=0,i=J.timers;for(Kt=J.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||J.fx.stop(),Kt=void 0},J.fx.timer=function(t){J.timers.push(t),t()?J.fx.start():J.timers.pop()},J.fx.interval=13,J.fx.start=function(){Qt||(Qt=setInterval(J.fx.tick,J.fx.interval))},J.fx.stop=function(){clearInterval(Qt),Qt=null},J.fx.speeds={slow:600,fast:200,_default:400},J.fn.delay=function(t,e){return t=J.fx?J.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,i){var n=setTimeout(e,t);i.stop=function(){clearTimeout(n)}})},function(){var t=Q.createElement("input"),e=Q.createElement("select"),i=e.appendChild(Q.createElement("option"));t.type="checkbox",K.checkOn=""!==t.value,K.optSelected=i.selected,e.disabled=!0,K.optDisabled=!i.disabled,t=Q.createElement("input"),t.value="t",t.type="radio",K.radioValue="t"===t.value}();var ne,se,oe=J.expr.attrHandle;J.fn.extend({attr:function(t,e){return gt(this,J.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){J.removeAttr(this,t)})}}
vendor: 4,625 bytes, line 3
3),J.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(t&&3!==o&&8!==o&&2!==o)return typeof t.getAttribute===St?J.prop(t,e,i):(1===o&&J.isXMLDoc(t)||(e=e.toLowerCase(),n=J.attrHooks[e]||(J.expr.match.bool.test(e)?se:ne)),void 0===i?n&&"get"in n&&null!==(s=n.get(t,e))?s:(s=J.find.attr(t,e),null==s?void 0:s):null!==i?n&&"set"in n&&void 0!==(s=n.set(t,i,e))?s:(t.setAttribute(e,i+""),i):void J.removeAttr(t,e))},removeAttr:function(t,e){var i,n,s=0,o=e&&e.match(pt);if(o&&1===t.nodeType)for(;i=o[s++];)n=J.propFix[i]||i,J.expr.match.bool.test(i)&&(t[n]=!1),t.removeAttribute(i)},attrHooks:{type:{set:function(t,e){if(!K.radioValue&&"radio"===e&&J.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}}}),se={set:function(t,e,i){return e===!1?J.removeAttr(t,i):t.setAttribute(i,i),i}},J.each(J.expr.match.bool.source.match(/\w+/g),function(t,e){var i=oe[e]||J.find.attr;oe[e]=function(t,e,n){var s,o;return n||(o=oe[e],oe[e]=s,s=null!=i(t,e,n)?e.toLowerCase():null,oe[e]=o),s}});var re=/^(?:input|select|textarea|button)$/i;J.fn.extend({prop:function(t,e){return gt(this,J.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[J.propFix[t]||t]})}}),J.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,i){var n,s,o,r=t.nodeType;if(t&&3!==r&&8!==r&&2!==r)return o=1!==r||!J.isXMLDoc(t),o&&(e=J.propFix[e]||e,s=J.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){return t.hasAttribute("tabindex")||re.test(t.nodeName)||t.href?t.tabIndex:-1}}}}),K.optSelected||(J.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null}}),J.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){J.propFix[this.toLowerCase()]=this});var ae=/[\t\r\n\f]/g;J.fn.extend({addClass:function(t){var e,i,n,s,o,r,a="string"==typeof t&&t,l=0,h=this.length;if(J.isFunction(t))return this.each(function(e){J(this).addClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];l<h;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):" ")){for(o=0;s=e[o++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");r=J.trim(n),i.className!==r&&(i.className=r)}return this},removeClass:function(t){var e,i,n,s,o,r,a=0===arguments.length||"string"==typeof t&&t,l=0,h=this.length;if(J.isFunction(t))return this.each(function(e){J(this).removeClass(t.call(this,e,this.className))});if(a)for(e=(t||"").match(pt)||[];l<h;l++)if(i=this[l],n=1===i.nodeType&&(i.className?(" "+i.className+" ").replace(ae," "):"")){for(o=0;s=e[o++];)for(;n.indexOf(" "+s+" ")>=0;)n=n.replace(" "+s+" "," ");r=t?J.trim(n):"",i.className!==r&&(i.className=r)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):J.isFunction(t)?this.each(function(i){J(this).toggleClass(t.call(this,i,this.className,e),e)}):this.each(function(){if("string"===i)for(var e,n=0,s=J(this),o=t.match(pt)||[];e=o[n++];)s.hasClass(e)?s.removeClass(e):s.addClass(e);else i!==St&&"boolean"!==i||(this.className&&vt.set(this,"__className__",this.className),this.className=this.className||t===!1?"":vt.get(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",i=0,n=this.length;i<n;i++)if(1===this[i].nodeType&&(" "+this[i].className+" ").replace(ae," ").indexOf(e)>=0)return!0;return!1}});var le=/\r/g;J.fn.extend({val:function(t){var e,i,n,s=this[0];{if(arguments.length)return n=J.isFunction(t),this.each(function(i){var s;1===this.nodeType&&(s=n?t.call(this,i,J(this).val()):t,null==s?s="":"number"==typeof s?s+="":J.isArray(s)&&(s=J.map(s,function(t){return null==t?"":t+""})),e=J.valHooks[this.type]||J.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))});if(s)return e=J.valHooks[s.type]||J.valHooks[s.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:(i=s.value,"string"==typeof i?i.replace(le,""):null==i?"":i)}}}),J.extend({valHooks:{option:{get:function(t){var e=J.find.attr(t,"value");return null!=e?e:J.trim(J.text(t))}},select:{get:function(t){for(var e,i,n=t.options,s=t.selectedIndex,o="select-one"===t.type||s<0,r=o?null:[],a=o?s+1:n.length,l=s<0?a:o?s:0;l<a;l++)if(i=n[l],(i.selected||l===s)&&(K.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!J.nodeName(i.parentNode,"optgroup"))){if(e=J(i).val(),o)return e;r.push(e)}return r}
vendor: 10,305 bytes, line 3
3,set:function(t,e){for(var i,n,s=t.options,o=J.makeArray(e),r=s.length;r--;)n=s[r],(n.selected=J.inArray(n.value,o)>=0)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),J.each(["radio","checkbox"],function(){J.valHooks[this]={set:function(t,e){if(J.isArray(e))return t.checked=J.inArray(J(t).val(),e)>=0}},K.checkOn||(J.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),J.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){J.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),J.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}});var he=J.now(),ce=/\?/;J.parseJSON=function(t){return JSON.parse(t+"")},J.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{i=new DOMParser,e=i.parseFromString(t,"text/xml")}catch(n){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||J.error("Invalid XML: "+t),e};var ue=/#.*$/,de=/([?&])_=[^&]*/,pe=/^(.*?):[ \t]*([^\r\n]*)$/gm,fe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,me=/^(?:GET|HEAD)$/,ge=/^\/\//,ve=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ye={},be={},xe="*/".concat("*"),_e=t.location.href,we=ve.exec(_e.toLowerCase())||[];J.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_e,type:"GET",isLocal:fe.test(we[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xe,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":J.parseJSON,"text xml":J.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Y(Y(t,J.ajaxSettings),e):Y(J.ajaxSettings,t)},ajaxPrefilter:N(ye),ajaxTransport:N(be),ajax:function(t,e){function i(t,e,i,r){var l,c,v,y,x,w=e;2!==b&&(b=2,a&&clearTimeout(a),n=void 0,o=r||"",_.readyState=t>0?4:0,l=t>=200&&t<300||304===t,i&&(y=j(u,_,i)),y=R(u,y,_,l),l?(u.ifModified&&(x=_.getResponseHeader("Last-Modified"),x&&(J.lastModified[s]=x),x=_.getResponseHeader("etag"),x&&(J.etag[s]=x)),204===t||"HEAD"===u.type?w="nocontent":304===t?w="notmodified":(w=y.state,c=y.data,v=y.error,l=!v)):(v=w,!t&&w||(w="error",t<0&&(t=0))),_.status=t,_.statusText=(e||w)+"",l?f.resolveWith(d,[c,w,_]):f.rejectWith(d,[_,w,v]),_.statusCode(g),g=void 0,h&&p.trigger(l?"ajaxSuccess":"ajaxError",[_,u,l?c:v]),m.fireWith(d,[_,w]),h&&(p.trigger("ajaxComplete",[_,u]),--J.active||J.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var n,s,o,r,a,l,h,c,u=J.ajaxSetup({},e),d=u.context||u,p=u.context&&(d.nodeType||d.jquery)?J(d):J.event,f=J.Deferred(),m=J.Callbacks("once memory"),g=u.statusCode||{},v={},y={},b=0,x="canceled",_={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!r)for(r={};e=pe.exec(o);)r[e[1].toLowerCase()]=e[2];e=r[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(t,e){var i=t.toLowerCase();return b||(t=y[i]=y[i]||t,v[t]=e),this},overrideMimeType:function(t){return b||(u.mimeType=t),this},statusCode:function(t){var e;if(t)if(b<2)for(e in t)g[e]=[g[e],t[e]];else _.always(t[_.status]);return this},abort:function(t){var e=t||x;return n&&n.abort(e),i(0,e),this}};if(f.promise(_).complete=m.add,_.success=_.done,_.error=_.fail,u.url=((t||u.url||_e)+"").replace(ue,"").replace(ge,we[1]+"//"),u.type=e.method||e.type||u.method||u.type,u.dataTypes=J.trim(u.dataType||"*").toLowerCase().match(pt)||[""],null==u.crossDomain&&(l=ve.exec(u.url.toLowerCase()),u.crossDomain=!(!l||l[1]===we[1]&&l[2]===we[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(we[3]||("http:"===we[1]?"80":"443")))),u.data&&u.processData&&"string"!=typeof u.data&&(u.data=J.param(u.data,u.traditional)),H(ye,u,e,_),2===b)return _;h=J.event&&u.global,h&&0===J.active++&&J.event.trigger("ajaxStart"),u.type=u.type.toUpperCase(),u.hasContent=!me.test(u.type),s=u.url,u.hasContent||(u.data&&(s=u.url+=(ce.test(s)?"&":"?")+u.data,delete u.data),u.cache===!1&&(u.url=de.test(s)?s.replace(de,"$1_="+he++):s+(ce.test(s)?"&":"?")+"_="+he++)),u.ifModified&&(J.lastModified[s]&&_.setRequestHeader("If-Modified-Since",J.lastModified[s]),J.etag[s]&&_.setRequestHeader("If-None-Match",J.etag[s])),(u.data&&u.hasContent&&u.contentType!==!1||e.contentType)&&_.setRequestHeader("Content-Type",u.contentType),_.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+("*"!==u.dataTypes[0]?", "+xe+"; q=0.01":""):u.accepts["*"]);for(c in u.headers)_.setRequestHeader(c,u.headers[c]);if(u.beforeSend&&(u.beforeSend.call(d,_,u)===!1||2===b))return _.abort();x="abort";for(c in{success:1,error:1,complete:1})_[c](u[c]);if(n=H(be,u,e,_)){_.readyState=1,h&&p.trigger("ajaxSend",[_,u]),u.async&&u.timeout>0&&(a=setTimeout(function(){_.abort("timeout")},u.timeout));try{b=1,n.send(v,i)}catch(w){if(!(b<2))throw w;i(-1,w)}}else i(-1,"No Transport");return _},getJSON:function(t,e,i){return J.get(t,e,i,"json")},getScript:function(t,e){return J.get(t,void 0,e,"script")}}),J.each(["get","post"],function(t,e){J[e]=function(t,i,n,s){return J.isFunction(i)&&(s=s||n,n=i,i=void 0),J.ajax({url:t,type:e,dataType:s,data:i,success:n})}}),J._evalUrl=function(t){return J.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},J.fn.extend({wrapAll:function(t){var e;return J.isFunction(t)?this.each(function(e){J(this).wrapAll(t.call(this,e))}):(this[0]&&(e=J(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this)},wrapInner:function(t){return J.isFunction(t)?this.each(function(e){J(this).wrapInner(t.call(this,e))}):this.each(function(){var e=J(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=J.isFunction(t);return this.each(function(i){J(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){J.nodeName(this,"body")||J(this).replaceWith(this.childNodes)}).end()}}),J.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0},J.expr.filters.visible=function(t){return!J.expr.filters.hidden(t)};var ke=/%20/g,Ce=/\[\]$/,Se=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;J.param=function(t,e){var i,n=[],s=function(t,e){e=J.isFunction(e)?e():null==e?"":e,n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=J.ajaxSettings&&J.ajaxSettings.traditional),J.isArray(t)||t.jquery&&!J.isPlainObject(t))J.each(t,function(){s(this.name,this.value)});else for(i in t)$(i,t[i],e,s);return n.join("&").replace(ke,"+")},J.fn.extend({serialize:function(){return J.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=J.prop(this,"elements");return t?J.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!J(this).is(":disabled")&&Te.test(this.nodeName)&&!De.test(t)&&(this.checked||!Ct.test(t))}).map(function(t,e){var i=J(this).val();return null==i?null:J.isArray(i)?J.map(i,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:i.replace(Se,"\r\n")}}).get()}}),J.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(t){}};var Me=0,Ae={},Pe={0:200,1223:204},Oe=J.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ae)Ae[t]()}),K.cors=!!Oe&&"withCredentials"in Oe,K.ajax=Oe=!!Oe,J.ajaxTransport(function(t){var e;if(K.cors||Oe&&!t.crossDomain)return{send:function(i,n){var s,o=t.xhr(),r=++Me;if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)o.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(delete Ae[r],e=o.onload=o.onerror=null,"abort"===t?o.abort():"error"===t?n(o.status,o.statusText):n(Pe[o.status]||o.status,o.statusText,"string"==typeof o.responseText?{text:o.responseText}:void 0,o.getAllResponseHeaders()))}},o.onload=e(),o.onerror=e("error"),e=Ae[r]=e("abort");try{o.send(t.hasContent&&t.data||null)}catch(a){if(e)throw a}},abort:function(){e&&e()}}}),J.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return J.globalEval(t),t}}}),J.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),J.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,s){e=J("<script>").prop({async:!0,charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&s("error"===t.type?404:200,t.type)}),Q.head.appendChild(e[0])},abort:function(){i&&i()}}}});var Le=[],Ee=/(=)\?(?=&|$)|\?\?/;J.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Le.pop()||J.expando+"_"+he++;return this[t]=!0,t}}),J.ajaxPrefilter("json jsonp",function(e,i,n){var s,o,r,a=e.jsonp!==!1&&(Ee.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ee.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=J.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ee,"$1"+s):e.jsonp!==!1&&(e.url+=(ce.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||J.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){r=arguments},n.always(function(){t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,Le.push(s)),r&&J.isFunction(o)&&o(r[0]),r=o=void 0}),"script"}
3),J.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||Q;var n=rt.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=J.buildFragment([t],e,s),s&&s.length&&J(s).remove(),J.merge([],n.childNodes))};var Ie=J.fn.load;J.fn.load=function(t,e,i){if("string"!=typeof t&&Ie)return Ie.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return a>=0&&(n=J.trim(t.slice(a)),t=t.slice(0,a)),J.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&J.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){o=arguments,r.html(n?J("<div>").append(J.parseHTML(t)).find(n):t)}).complete(i&&function(t,e){r.each(i,o||[t.responseText,e,t])}),this},J.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){J.fn[e]=function(t){return this.on(e,t)}}),J.expr.filters.animated=function(t){return J.grep(J.timers,function(e){return t===e.elem}).length};var Ne=t.document.documentElement;J.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,h,c=J.css(t,"position"),u=J(t),d={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=J.css(t,"top"),l=J.css(t,"left"),h=("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1,h?(n=u.position(),r=n.top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),J.isFunction(e)&&(e=e.call(t,i,a)),null!=e.top&&(d.top=e.top-a.top+r),null!=e.left&&(d.left=e.left-a.left+s),"using"in e?e.using.call(t,d):u.css(d)}},J.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){J.offset.setOffset(this,t,e)});var e,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;if(o)return e=o.documentElement,J.contains(e,n)?(typeof n.getBoundingClientRect!==St&&(s=n.getBoundingClientRect()),i=F(o),{top:s.top+i.pageYOffset-e.clientTop,left:s.left+i.pageXOffset-e.clientLeft}):s},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===J.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),J.nodeName(t[0],"html")||(n=t.offset()),n.top+=J.css(t[0],"borderTopWidth",!0),n.left+=J.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-J.css(i,"marginTop",!0),left:e.left-n.left-J.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||Ne;t&&!J.nodeName(t,"html")&&"static"===J.css(t,"position");)t=t.offsetParent;return t||Ne})}}),J.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,i){var n="pageYOffset"===i;J.fn[e]=function(s){return gt(this,function(e,s,o){var r=F(e);return void 0===o?r?r[i]:e[s]:void(r?r.scrollTo(n?t.pageXOffset:o,n?o:t.pageYOffset):e[s]=o)},e,s,arguments.length,null)}}),J.each(["top","left"],function(t,e){J.cssHooks[e]=w(K.pixelPosition,function(t,i){if(i)return i=_(t,e),zt.test(i)?J(t).position()[e]+"px":i})}),J.each({Height:"height",Width:"width"},function(t,e){J.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){J.fn[n]=function(n,s){var o=arguments.length&&(i||"boolean"!=typeof n),r=i||(n===!0||s===!0?"margin":"border");return gt(this,function(e,i,n){var s;return J.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===n?J.css(e,i,r):J.style(e,i,n,r)},e,o?n:void 0,o,null)}})}),J.fn.size=function(){return this.length},J.fn.andSelf=J.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return J});var He=t.jQuery,Ye=t.$;return J.noConflict=function(e){return t.$===J&&(t.$=Ye),e&&t.jQuery===J&&(t.jQuery=He),J},typeof e===St&&(t.jQuery=t.$=J),J}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.supp
vendor: 4,805 bytes, line 3
3ort.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.7",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){r.detach().trigger("closed.bs.alert").remove()}var s=t(this),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=t("#"===o?[]:o);e&&e.preventDefault(),r.length||(r=s.closest(".alert")),r.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(r.removeClass("in"),t.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.7",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i).prop(i,!1))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target).closest(".btn");e.call(n,"toggle"),t(i.target).is('input[type="radio"], input[type="checkbox"]')||(i.preventDefault(),n.is("input,button")?n.trigger("focus"):n.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):r?s[r]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),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",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e),n="prev"==t&&0===i||"next"==t&&i==this.$items.length-1;if(n&&!this.options.wrap)return e;var s="prev"==t?-1:1,o=(i+s)%this.$items.length;return this.$items.eq(o)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".
3item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){if(!this.sliding)return this.slide("next")},i.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,s),r=this.interval,a="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var h=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:h,direction:a});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,r&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:a});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,s.addClass(a),o.addClass(a),s.one("bsTransitionEnd",function(){o.removeClass([e,a].join(" ")).addClass("active"),s.removeClass(["active",a].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),r&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var r=t.extend({},o.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(o,r),a&&o.data("bs.carousel").to(a),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){var i,n=e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return t(n)}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),s||i.data("bs.collapse",s=new n(this,o)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.7",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"),e&&e.transitioning))){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var a=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return a.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(a,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[r](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var 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;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var o=e(s),r=o.data("bs.collapse"),a=r?"toggle":s.data();i.call(o,a)})}(jQuery),+function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(s).remove(),t(o).each(function(){var n=t(this),s=e(n),o={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.
vendor: 4,666 bytes, lines 3-4
3Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))));
4}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new r(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.3.7",r.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=e(s),r=o.hasClass("open");if(i(),!r){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var a={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},r.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),r=s.hasClass("open");if(!r&&27!=i.which||r&&27==i.which)return 27==i.which&&s.find(o).trigger("focus"),n.trigger("click");var a=" li:not(.disabled):visible a",l=s.find(".dropdown-menu"+a);if(l.length){var h=l.index(i.target);38==i.which&&h>0&&h--,40==i.which&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=n,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",o,r.prototype.toggle).on("keydown.bs.dropdown.data-api",o,r.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var s=t(this),o=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);o||s.data("bs.modal",o=new i(this,r)),"string"==typeof e?o[e](n):r.show&&o.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),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,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.3.7",i.TRANSITION_DURATION=300,i.BACKDROP_TRANSITION_DURATION=150,i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this,s=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(s),this.isShown||s.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"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){n.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(n.$element)&&(n.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&n.$element.hasClass("fade");n.$element.parent().length||n.$element.appendTo(n.$body),n.$element.show().scrollTop(0),n.adjustDialog(),s&&n.$element[0].offsetWidth,n.$element.addClass("in"),n.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});s?n.$dialog.one("bsTransitionEnd",function(){n.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(i.TRANSITION_DURATION):n.$element.trigger("focus").trigger(o)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(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"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(i.TRANSITION_DURATION):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("key
4down.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},i.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var n=this,s=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){n.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(i.BACKDROP_TRANSITION_DURATION):r()}else e&&e()},i.prototype.handleUpdate=function(){this.adjustDialog()},i.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var n=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=n,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var n=t(this),s=n.attr("href"),o=t(n.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},o.data(),n.data());n.is("a")&&i.preventDefault(),o.one("show.bs.modal",function(t){t.isDefaultPrevented()||o.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(o,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tooltip"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.tooltip",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.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}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.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(var s=this.options.trigger.split(" "),o=s.length;o--;){var r=s[o];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);
vendor: 13,115 bytes, line 4
4return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),!i.isInStateTrue())return clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),r=this.getUID(this.type);this.setContent(),o.attr("id",r),this.$element.attr("aria-describedby",r),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,h=l.test(a);h&&(a=a.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),u=o[0].offsetWidth,d=o[0].offsetHeight;if(h){var p=a,f=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+d>f.bottom?"top":"top"==a&&c.top-d<f.top?"bottom":"right"==a&&c.right+u>f.width?"left":"left"==a&&c.left-u<f.left?"right":a,o.removeClass(p).addClass(a)}var m=this.getCalculatedOffset(a,c,u,d);this.applyPlacement(m,a);var g=function(){var t=s.hoverState;s.$element.trigger("shown.bs."+s.type),s.hoverState=null,"out"==t&&s.leave(s)};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(i.TRANSITION_DURATION):g()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),s=n[0].offsetWidth,o=n[0].offsetHeight,r=parseInt(n.css("margin-top"),10),a=parseInt(n.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top+=r,e.left+=a,t.offset.setOffset(n[0],t.extend({using:function(t){n.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),n.addClass("in");var l=n[0].offsetWidth,h=n[0].offsetHeight;"top"==i&&h!=o&&(e.top=e.top+o-h);var c=this.getViewportAdjustedDelta(i,e,l,h);c.left?e.left+=c.left:e.top+=c.top;var u=/top|bottom/.test(i),d=u?2*c.left-s+l:2*c.top-o+h,p=u?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],u)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i?"left":"top",50*(1-t/e)+"%").css(i?"top":"left","")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(e){function n(){"in"!=s.hoverState&&o.detach(),s.$element&&s.$element.removeAttr("aria-describedby").trigger("hidden.bs."+s.type),e&&e()}var s=this,o=t(this.$tip),r=t.Event("hide.bs."+this.type);if(this.$element.trigger(r),!r.isDefaultPrevented())return o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",n).emulateTransitionEnd(i.TRANSITION_DURATION):n(),this.hoverState=null,this},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],n="BODY"==i.tagName,s=i.getBoundingClientRect();null==s.width&&(s=t.extend({},s,{width:s.right-s.left,height:s.bottom-s.top}));var o=window.SVGElement&&i instanceof window.SVGElement,r=n?{top:0,left:0}:o?null:e.offset(),a={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=n?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},s,a,l,r)},i.prototype.getCalculatedOffset=function(t,e,i,n){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-n,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-n/2,left:e.left-i}:{top:e.top+e.height/2-n/2,left:e.left+e.width}},i.prototype.getViewportAdjustedDelta=function(t,e,i,n){var s={top:0,left:0};if(!this.$viewport)return s;var o=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-o-r.scroll,l=e.top+o-r.scroll+n;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-o,c=e.left+o+i;h<r.left?s.left=r.left-h:c>r.right&&(s.left=r.left+r.width-c)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e;!s&&/destroy|hide/.test(e)||(s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.7",i.DEFAULTS=t.extend({},t.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>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.7",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=o[o.length-1])&&this.activate(t);if(r&&e<s[0])return this.activeTarget=null,this.clear();for(t=s.length;t--;)r!=o[t]&&e>=s[t]&&(void 0===s[t+1]||e<s[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var n=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=n,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.tab");s||n.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.3.7",i.TRANSITION_DURATION=150,i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),r=t.Event("show.bs.tab",{relatedTarget:s[0]});if(s.trigger(o),e.trigger(r),!r.isDefaultPrevented()&&!o.isDefaultPrevented()){var a=t(n);this.activate(e.closest("li"),i),this.activate(a,a.parent(),function(){s.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:s[0]})})}}},i.prototype.activate=function(e,n,s){function o(){r.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var r=n.find("> .active"),a=s&&t.support.transition&&(r.length&&r.hasClass("fade")||!!n.find("> .fade").length);r.length&&a?r.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),r.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.7",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window}
4,i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),r=this.$target.height();if(null!=i&&"top"==this.affixed)return s<i&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(s+r<=t-n)&&"bottom";var a=null==this.affixed,l=a?s:o.top,h=a?r:e;return null!=i&&s<=i?"top":null!=n&&l+h>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,r=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var a=this.getState(r,e,s,o);if(this.affixed!=a){null!=this.unpin&&this.$element.css("top","");var l="affix"+(a?"-"+a:""),h=t.Event(l+".bs.affix");if(this.$element.trigger(h),h.isDefaultPrevented())return;this.affixed=a,this.unpin="bottom"==a?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==a&&this.$element.offset({top:r-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function n(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t){return function(){return this[t].apply(this,arguments)}}function o(e,i){function n(t,e){return e.toLowerCase()}var s,o=t(e).data(),r={},a=new RegExp("^"+i.toLowerCase()+"([A-Z])");i=new RegExp("^"+i.toLowerCase());for(var l in o)i.test(l)&&(s=l.replace(a,n),r[s]=o[l]);return r}function r(e){var i={};if(f[e]||(e=e.split("-")[0],f[e])){var n=f[e];return t.each(p,function(t,e){e in n&&(i[e]=n[e])}),i}}var a=t(window),l=function(){var e={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,n=this.length;i<n;i++)if(this[i].valueOf()===e)return i;return-1},remove:function(t){this.splice(t,1)},replace:function(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new l;return t.replace(this),t}};return function(){var i=[];return i.push.apply(i,arguments),t.extend(i,e),i}}(),h=function(e,i){this.dates=new l,this.viewDate=n(),this.focusDate=null,this._process_options(i),this.element=t(e),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .input-group-addon, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=t(m.template),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("tfoot th.today, tfoot th.clear").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this._o.startDate),this.setEndDate(this._o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};h.prototype={constructor:h,_process_options:function(e){this._o=t.extend({},this._o,e);var i=this.o=t.extend({},this._o),n=i.language;switch(f[n]||(n=n.split("-")[0],f[n]||(n=d.language)),i.language=n,i.startView){case 2:case"decade":i.startView=2;break;case 1:case"year":i.startView=1;break;default:i.startView=0}switch(i.minViewMode){case 1:case"months":i.minViewMode=1;break;case 2:case"years":i.minViewMode=2;break;default:i.minViewMode=0}i.startView=Math.max(i.startView,i.minViewMode),i.multidate!==!0&&(i.multidate=Number(i.multidate)||!1,i.multidate!==!1?i.multidate=Math.max(0,i.multidate):i.multidate=1),i.multidateSeparator=String(i.multidateSeparator),i.weekStart%=7,i.weekEnd=(i.weekStart+6)%7;var s=m.parseFormat(i.format);i.startDate!==-(1/0)&&(i.startDate?i.startDate instanceof Date?i.startDate=this._local_to_utc(this._zero_time(i.startDate)):i.startDate=m.parseDate(i.startDate,
4s,i.language):i.startDate=-(1/0)),i.endDate!==1/0&&(i.endDate?i.endDate instanceof Date?i.endDate=this._local_to_utc(this._zero_time(i.endDate)):i.endDate=m.parseDate(i.endDate,s,i.language):i.endDate=1/0),i.daysOfWeekDisabled=i.daysOfWeekDisabled||[],t.isArray(i.daysOfWeekDisabled)||(i.daysOfWeekDisabled=i.daysOfWeekDisabled.split(/[,\s]*/)),i.daysOfWeekDisabled=t.map(i.daysOfWeekDisabled,function(t){return parseInt(t,10)});var o=String(i.orientation).toLowerCase().split(/\s+/g),r=i.orientation.toLowerCase();if(o=t.grep(o,function(t){return/^auto|left|right|top|bottom$/.test(t)}),i.orientation={x:"auto",y:"auto"},r&&"auto"!==r)if(1===o.length)switch(o[0]){case"top":case"bottom":i.orientation.y=o[0];break;case"left":case"right":i.orientation.x=o[0]}else r=t.grep(o,function(t){return/^left|right$/.test(t)}),i.orientation.x=r[0]||"auto",r=t.grep(o,function(t){return/^top|bottom$/.test(t)}),i.orientation.y=r[0]||"auto";else;},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var i,n,s,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(n=e,s=t[o][1]):3===t[o].length&&(n=t[o][1],s=t[o][2]),i.on(s,n)},_unapplyEvents:function(t){for(var i,n,s,o=0;o<t.length;o++)i=t[o][0],2===t[o].length?(s=e,n=t[o][1]):3===t[o].length&&(s=t[o][1],n=t[o][2]),i.off(n,s)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:t.proxy(this.show,this),keyup:t.proxy(function(e){t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:t.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:t.proxy(this.show,this),keyup:t.proxy(function(e){t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:t.proxy(this.keydown,this)}],[this.component,{click:t.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||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(e,i){var n=i||this.dates.get(-1),s=this._utc_to_local(n);this.element.trigger({type:e,date:s,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return m.formatDate(i,e,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.place(),this._attachSecondaryEvents(),this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},_utc_to_local:function(t){return t&&new Date(t.getTime()+6e4*t.getTimezoneOffset())},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){
5return t&&new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()))},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,e),this._trigger("changeDate"),this.setValue()},setUTCDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,t.map(e,this._utc_to_local)),this._trigger("changeDate"),this.setValue()},setDate:s("setDates"),setUTCDate:s("setUTCDates"),setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t).change():this.component&&this.element.find("input").val(t).change()},getFormattedDate:function(i){i===e&&(i=this.o.format);var n=this.o.language;return t.map(this.dates,function(t){return m.formatDate(t,i,n)}).join(this.o.multidateSeparator)},setStartDate:function(t){this._process_options({startDate:t}),this.update(),this.updateNavArrows()},setEndDate:function(t){this._process_options({endDate:t}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var e=this.picker.outerWidth(),i=this.picker.outerHeight(),n=10,s=a.width(),o=a.height(),r=a.scrollTop(),l=[];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==e&&l.push(parseInt(e))});var h=Math.max.apply(Math,l)+10,c=this.component?this.component.parent().offset():this.element.offset(),u=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),p=c.left,f=c.top;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&&(p-=e-d)):(this.picker.addClass("datepicker-orient-left"),c.left<0?p-=c.left-n:c.left+e>s&&(p=s-e-n));var m,g,v=this.o.orientation.y;"auto"===v&&(m=-r+c.top-i,g=r+o-(c.top+u+i),v=Math.max(m,g)===g?"top":"bottom"),this.picker.addClass("datepicker-orient-"+v),"top"===v?f+=u:f-=i+parseInt(this.picker.css("padding-top")),this.picker.css({top:f,left:p,zIndex:h})}},_allow_update:!0,update:function(){if(this._allow_update){var e=this.dates.copy(),i=[],n=!1;arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),n=!0):(i=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),i=i&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return m.parseDate(t,this.o.format,this.o.language)},this)),i=t.grep(i,t.proxy(function(t){return t<this.o.startDate||t>this.o.endDate||!t},this),!0),this.dates.replace(i),this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate)),n?this.setValue():i.length&&String(e)!==String(this.dates)&&this._trigger("changeDate"),!this.dates.length&&e.length&&this._trigger("clearDate"),this.fill()}},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){var i='<th class="cw">&nbsp;</th>';e+=i,this.picker.find(".datepicker-days thead tr:first-child").prepend(i)}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+f[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;
5)t+='<span class="month">'+f[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),o=new Date;return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<s?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>s)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&e.getUTCFullYear()===o.getFullYear()&&e.getUTCMonth()===o.getMonth()&&e.getUTCDate()===o.getDate()&&i.push("today"),this.dates.contains(e)!==-1&&i.push("active"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),t.inArray(e.valueOf(),this.range)!==-1&&i.push("selected")),i},fill:function(){var n,s=new Date(this.viewDate),o=s.getUTCFullYear(),r=s.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),l=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),h=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,u=f[this.o.language].today||f.en.today||"",d=f[this.o.language].clear||f.en.clear||"";if(!isNaN(o)&&!isNaN(r)){this.picker.find(".datepicker-days thead th.datepicker-switch").text(f[this.o.language].months[r]+" "+o),this.picker.find("tfoot th.today").text(u).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(d).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths();var p=i(o,r-1,28),g=m.getDaysInMonth(p.getUTCFullYear(),p.getUTCMonth());p.setUTCDate(g),p.setUTCDate(g-(p.getUTCDay()-this.o.weekStart+7)%7);var v=new Date(p);v.setUTCDate(v.getUTCDate()+42),v=v.valueOf();for(var y,b=[];p.valueOf()<v;){if(p.getUTCDay()===this.o.weekStart&&(b.push("<tr>"),this.o.calendarWeeks)){var x=new Date(+p+(this.o.weekStart-p.getUTCDay()-7)%7*864e5),_=new Date(Number(x)+(11-x.getUTCDay())%7*864e5),w=new Date(Number(w=i(_.getUTCFullYear(),0,1))+(11-w.getUTCDay())%7*864e5),k=(_-w)/864e5/7+1;b.push('<td class="cw">'+k+"</td>")}if(y=this.getClassNames(p),y.push("day"),this.o.beforeShowDay!==t.noop){var C=this.o.beforeShowDay(this._utc_to_local(p));C===e?C={}:"boolean"==typeof C?C={enabled:C}:"string"==typeof C&&(C={classes:C}),C.enabled===!1&&y.push("disabled"),C.classes&&(y=y.concat(C.classes.split(/\s+/))),C.tooltip&&(n=C.tooltip)}y=t.unique(y),b.push('<td class="'+y.join(" ")+'"'+(n?' title="'+n+'"':"")+">"+p.getUTCDate()+"</td>"),n=null,p.getUTCDay()===this.o.weekEnd&&b.push("</tr>"),p.setUTCDate(p.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(b.join(""));var S=this.picker.find(".datepicker-months").find("th:eq(1)").text(o).end().find("span").removeClass("active");t.each(this.dates,function(t,e){e.getUTCFullYear()===o&&S.eq(e.getUTCMonth()).addClass("active")}),(o<a||o>h)&&S.addClass("disabled"),o===a&&S.slice(0,l).addClass("disabled"),o===h&&S.slice(c+1).addClass("disabled"),b="",o=10*parseInt(o/10,10);var D=this.picker.find(".datepicker-years").find("th:eq(1)").text(o+"-"+(o+9)).end().find("td");o-=1;for(var T,M=t.map(this.dates,function(t){return t.getUTCFullYear()}),A=-1;A<11;A++)T=["year"],A===-1?T.push("old"):10===A&&T.push("new"),t.inArray(o,M)!==-1&&T.push("active"),(o<a||o>h)&&T.push("disabled"),b+='<span class="'+T.join(" ")+'">'+o+"</span>",o+=1;D.html(b)}},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-(1/0)&&e<=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&&e>=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:this.o.startDate!==-(1/0)&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(e){e.preventDefault();var n,s,o,r=t(e.target).closest("span, td, th");if(1===r.length)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var a=m.modes[this.viewMode].navStep*("prev"===r[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,a),this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,a),1===this.viewMode&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":var l=new Date;l=i(l.getFullYear(),l.getMonth(),l.getDate(),0,0,0),this.showMode(-2);var h="linked"===this.o.todayBtn?null:"view";this._setDate(l,h);break;case"clear":var c;this.isInput?c=this.element:this.component&&(c=this.element.find("input")),c&&c.val("").change(),this.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()}break;case"span":r.is(".disabled")||(this.viewDate.setUTCDate(1),r.is(".month")?(o=1,s=r.parent().find("span").index(r),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(s),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(i(n,s,o))):(o=1,s=0,n=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(n),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(i(n,s,o))),this.showMode(-1),this.fill());break;case"td":r.is(".day")&&!r.is(".disabled")&&(o=parseInt(r.text(),10)||1,n=this.viewDate.getUTCFullYear(),s=this.viewDate.getUTCMonth(),r.is(".old")?0===s?(s=11,n-=1):s-=1:r.is(".new")&&(11===s?(s=0,n+=1):s+=1),this._setDate(i(n,s,o)))}this.picker.is(":visible")&&this._focused_from&&t(this._focused_from).focus(),delete this._focused_from},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),1===this.o.multidate&&0===e||(e!==-1?this.dates.remove(e):this.dates.push(t)),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),e&&"view"!==e||(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),!this.o.autoclose||e&&"date"!==e||this.hide()},moveMonth:function(t,i){if(!t)return e;if(!i)return t;var n,s,o=new Date(t.valueOf()),r=o.getUTCDate(),a=o.getUTCMonth(),l=Math.abs(i);if(i=i>
50?1:-1,1===l)s=i===-1?function(){return o.getUTCMonth()===a}:function(){return o.getUTCMonth()!==n},n=a+i,o.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var h=0;h<l;h++)o=this.moveMonth(o,i);n=o.getUTCMonth(),o.setUTCDate(r),s=function(){return n!==o.getUTCMonth()}}for(;s();)o.setUTCDate(--r),o.setUTCMonth(n);return o},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))return void(27===t.keyCode&&this.show());var e,i,s,o=!1,r=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||n(),e),s=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||n(),e),s=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||n()),i.setUTCDate(i.getUTCDate()+e),s=new Date(r),s.setUTCDate(r.getUTCDate()+e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=s,this.setValue(),this.fill(),t.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38===t.keyCode?-1:1,t.ctrlKey?(i=this.moveYear(this.dates.get(-1)||n(),e),s=this.moveYear(r,e),this._trigger("changeYear",this.viewDate)):t.shiftKey?(i=this.moveMonth(this.dates.get(-1)||n(),e),s=this.moveMonth(r,e),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||n()),i.setUTCDate(i.getUTCDate()+7*e),s=new Date(r),s.setUTCDate(r.getUTCDate()+7*e)),this.dateWithinRange(i)&&(this.focusDate=this.viewDate=s,this.setValue(),this.fill(),t.preventDefault());break;case 32:break;case 13:r=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(r),o=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}if(o){this.dates.length?this._trigger("changeDate"):this._trigger("clearDate");var a;this.isInput?a=this.element:this.component&&(a=this.element.find("input")),a&&a.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.find(">div").hide().filter(".datepicker-"+m.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var c=function(e,i){this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,t(this.inputs).datepicker(i).bind("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};c.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)})},dateUpdated:function(e){if(!this.updating){this.updating=!0;var i=t(e.target).data("datepicker"),n=i.getUTCDate(),s=t.inArray(e.target,this.inputs),o=this.inputs.length;if(s!==-1){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e.setUTCDate(n)}),n<this.dates[s])for(;s>=0&&n<this.dates[s];)this.pickers[s--].setUTCDate(n);else if(n>this.dates[s])for(;s<o&&n>this.dates[s];)this.pickers[s++].setUTCDate(n);this.updateDates(),delete this.updating}}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var u=t.fn.datepicker;t.fn.datepicker=function(i){var n=Array.apply(null,arguments);n.shift();var s;return this.each(function(){var a=t(this),l=a.data("datepicker"),u="object"==typeof i&&i;if(!l){var p=o(this,"date"),f=t.extend({},d,p,u),m=r(f.language),g=t.extend({},d,m,p,u);if(a.is(".input-daterange")||g.inputs){var v={inputs:g.inputs||a.find("input").toArray()};a.data("datepicker",l=new c(this,t.extend(g,v)))}else a.data("datepicker",l=new h(this,g))}if("string"==typeof i&&"function"==typeof l[i]&&(s=l[i].apply(l,n),s!==e))return!1}),s!==e?s:this};var d=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},p=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=h;var f=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
5ay","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],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"}},m={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getDaysInMonth:function(t,e){return[31,m.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(n,s,o){function r(){var t=this.slice(0,d[c].length),e=d[c].slice(0,t.length);return t===e}if(!n)return e;if(n instanceof Date)return n;"string"==typeof s&&(s=m.parseFormat(s));var a,l,c,u=/([\-+]\d+)([dmwy])/,d=n.match(/([\-+]\d+)([dmwy])/g);if(/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(n)){for(n=new Date,c=0;c<d.length;c++)switch(a=u.exec(d[c]),l=parseInt(a[1]),a[2]){case"d":n.setUTCDate(n.getUTCDate()+l);break;case"m":n=h.prototype.moveMonth.call(h.prototype,n,l);break;case"w":n.setUTCDate(n.getUTCDate()+7*l);break;case"y":n=h.prototype.moveYear.call(h.prototype,n,l)}return i(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),0,0,0)}d=n&&n.match(this.nonpunctuation)||[],n=new Date;var p,g,v={},y=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};b.M=b.MM=b.mm=b.m,b.dd=b.d,n=i(n.getFullYear(),n.getMonth(),n.getDate(),0,0,0);var x=s.parts.slice();if(d.length!==x.length&&(x=t(x).filter(function(e,i){return t.inArray(i,y)!==-1}).toArray()),d.length===x.length){var _;for(c=0,_=x.length;c<_;c++){if(p=parseInt(d[c],10),a=x[c],isNaN(p))switch(a){case"MM":g=t(f[o].months).filter(r),p=t.inArray(g[0],f[o].months)+1;break;case"M":g=t(f[o].monthsShort).filter(r),p=t.inArray(g[0],f[o].monthsShort)+1}v[a]=p}var w,k;for(c=0;c<y.length;c++)k=y[c],k in v&&!isNaN(v[k])&&(w=new Date(n),b[k](w,v[k]),isNaN(w)||(n=w))}return n},formatDate:function(e,i,n){if(!e)return"";"string"==typeof i&&(i=m.parseFormat(i));var s={d:e.getUTCDate(),D:f[n].daysShort[e.getUTCDay()],DD:f[n].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:f[n].monthsShort[e.getUTCMonth()],MM:f[n].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var o=t.extend([],i.separators),r=0,a=i.parts.length;r<=a;r++)o.length&&e.push(o.shift()),e.push(s[i.parts[r]]);return e.join("")},headTemplate:'<thead><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>'};m.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+m.headTemplate+"<tbody></tbody>"+m.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+m.headTemplate+m.contTemplate+m.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=m,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=u,this},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),i.datepicker("show"))}),t(function(){t('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),function(t){t.fn.datepicker.dates["en-GB"]={days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
5ay","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],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",weekStart:1,format:"dd/mm/yyyy"}}(jQuery),function(t){t.fn.datepicker.dates.cs={days:["Neděle","Pondělí","Úterý","Středa","Čtvrtek","Pátek","Sobota","Neděle"],daysShort:["Ned","Pon","Úte","Stř","Čtv","Pát","Sob","Ned"],daysMin:["Ne","Po","Út","St","Čt","Pá","So","Ne"],months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],monthsShort:["Led","Úno","Bře","Dub","Kvě","Čer","Čnc","Srp","Zář","Říj","Lis","Pro"],today:"Dnes",clear:"Vymazat",weekStart:1,format:"d.m.yyyy"}}(jQuery),function(t,e,i){if("function"!=typeof e)return console.error("nette.ajax.js: jQuery 
5is missing, load it please");var n=function(){var t={self:this,initialized:!1,contexts:{},on:{init:{},load:{},prepare:{},before:{},start:{},success:{},complete:{},error:{}},fire:function(){var n=!0,s=Array.prototype.slice.call(arguments),o=s.shift(),r="string"==typeof o?o:o.name,a="object"==typeof o?o.off||{}:{};return s.push(t.self),e.each(t.on[r],function(o,r){if(r===i||e.inArray(o,a)!==-1)return!0;var l=r.apply(t.contexts[o],s);return n=l===i||l}),n},requestHandler:function(e){var i=t.self.ajax({},this,e);if(i&&i._returnFalse)return!1},ext:function(n,s,o){for(;!o;)o="ext_"+Math.random(),t.contexts[o]&&(o=i);e.each(n,function(e,i){t.on[e][o]=i}),t.contexts[o]=e.extend(s?s:{},{name:function(){return o},ext:function(e,i){var n=t.contexts[e];if(!n&&i)throw"Extension '"+this.name()+"' depends on disabled extension '"+e+"'.";return n}})}};this.ext=function(n,s,o){if("object"==typeof n)t.ext(n,s);else{if(s===i)return t.contexts[n];if(s){if("string"==typeof n&&t.contexts[n]!==i)throw"Cannot override already registered nette-ajax extension '"+n+"'.";t.ext(s,o,n)}else e.each(["init","load","prepare","before","start","success","complete","error"],function(e,s){t.on[s][n]=i}),t.contexts[n]=i}return this},this.init=function(e,n){if(t.initialized)throw"Cannot initialize nette-ajax twice.";if("function"==typeof e)this.ext("init",null),this.ext("init",{load:e},n);else if("object"==typeof e)this.ext("init",null),this.ext("init",e,n);else if(e!==i)throw"Argument of init() can be function or function-hash only.";return t.initialized=!0,t.fire("init"),this.load(),this},this.load=function(){return t.fire("load",t.requestHandler),this},this.ajax=function(n,s,o){if(!n.nette&&s&&o){var r,a=e(s),l=n.nette={e:o,ui:s,el:a,isForm:a.is("form"),isSubmit:a.is("input[type=submit]")||a.is("button[type=submit]"),isImage:a.is("input[type=image]"),form:null};if(l.isSubmit||l.isImage?l.form=l.el.closest("form"):l.isForm&&(l.form=l.el),n.url||(n.url=l.form?l.form.attr("action"):s.href),n.type||(n.type=l.form?l.form.attr("method"):"get"),a.is("[data-ajax-off]")){var h=a.attr("data-ajax-off");0===h.indexOf("[")?n.off=a.data("ajaxOff"):h.indexOf(",")!==-1?n.off=h.split(","):h.indexOf(" ")!==-1?n.off=h.split(" "):n.off=h,"string"==typeof n.off&&(n.off=[n.off]),n.off=e.grep(e.each(n.off,function(t){return e.trim(t)}),function(t){return t.length})}}return t.fire({name:"prepare",off:n.off||{}},n),n.prepare&&n.prepare(n),r=n.beforeSend,n.beforeSend=function(e,n){var s=t.fire({name:"before",off:n.off||{}},e,n);return(s||s===i)&&r&&(s=r(e,n)),s},this.handleXHR(e.ajax(n),n)},this.handleXHR=function(e,i){return i=i||{},!e||"undefined"!=typeof e.statusText&&"canceled"===e.statusText||(e.done(function(e,n,s){t.fire({name:"success",off:i.off||{}},e,n,s,i)}).fail(function(e,n,s){t.fire({name:"error",off:i.off||{}},e,n,s,i)}).always(function(e,n){t.fire({name:"complete",off:i.off||{}},e,n,i)}),t.fire({name:"start",off:i.off||{}},e,i),i.start&&i.start(e,i)),e}};e.nette=new(e.extend(n,e.nette?e.nette:{})),e.fn.netteAjax=function(t,i){return e.nette.ajax(i||{},this[0],t)},e.fn.netteAjaxOff=function(){return this.off(".nette")},e.nette.ext("validation",{before:function(t,n){if(!n.nette)return!0;var s=n.nette,o=s.e,r=e.extend({keys:!0,url:!0,form:!0},n.validate||function(){if(s.el.is("[data-ajax-validate]")){var t=s.el.data("ajaxValidate");return t===!1?{keys:!1,url:!1,form:!1}:"object"==typeof t?t:void 0}}()||{}),a=!1;if(s.el.attr("data-ajax-pass")!==i&&(a=s.el.data("ajaxPass"),a="bool"!=typeof a||a),r.keys){var l=o.button||o.ctrlKey||o.shiftKey||o.altKey||o.metaKey;if(s.form){if(l&&s.isSubmit)return this.explicitNoAjax=!0,!1;if(s.isForm&&this.explicitNoAjax)return this.explicitNoAjax=!1,!1}else if(l)return!1}if(r.form&&s.form&&(!s.isSubmit&&!s.isImage||s.el.attr("formnovalidate")===i)){var h=this.ie();if(s.form.get(0).onsubmit&&s.form.get(0).onsubmit("undefined"!=typeof h&&h<9?i:o)===!1)return o.stopImmediatePropagation(),o.preventDefault(),!1}return(!r.url||!/:|^#/.test(s.form?n.url:s.el.attr("href")))&&(a||(o.stopPropagation(),o.preventDefault(),t._returnFalse=!0),!0)}},{explicitNoAjax:!1,ie:function(t){for(var e=3,i=document.createElement("div"),n=i.getElementsByTagName("i");i.innerHTML="<!--[if gt IE "+ ++e+"]><i></i><![endif]-->",n[0];);return e>4?e:t}}),e.nette.ext("forms",{init:function(){var e;t.Nette&&(e=this.ext("snippets"))&&e.after(function(e){e.find("form").each(function(){t.Nette.initForm(this)})})},prepare:function(i){var n=i.nette;if(n&&n.form){var s=n.e,o=i.data||{},r={};if(n.isSubmit)r[n.el.attr("name")]=n.el.val()||"";else if(n.isImage){var a=n.el.offset(),l=n.el.attr("name"),h=[Math.max(0,s.pageX-a.left),Math.max(0,s.pageY-a.top)];l.indexOf("[",0)!==-1?r[l]=h:(r[l+".x"]=h[0],r[l+".y"]=h[1])}if("post"===n.form.attr("method").toLowerCase()&&"FormData"in t){var c=new FormData(n.form[0]);for(var u in r)c.append(u,r[u]);if("string"!=typeof o)for(var u in o)c.append(u,o[u]);i.data=c,i.processData=!1,i.contentType=!1}else"string"!=typeof o&&(o=e.param(o)),r=e.param(r),i.data=n.form.serialize()+(r?"&"+r:"")+"&"+o}}}),e.nette.ext("snippets",{success:function(t){t.snippets&&this.updateSnippets(t.snippets)}},{beforeQueue:e.Callbacks(),afterQueue:e.Callbacks(),completeQueue:e.Callbacks(),before:function(t){this.beforeQueue.add(t)},after:function(t){this.afterQueue.add(t)},complete:function(t){this.completeQueue.add(t)},updateSnippets:function(t,i){var n=this,s=[];for(var o in t){var r=this.getElement(o);r.get(0)&&s.push(r.get(0)),this.updateSnippet(r,t[o],i)}e(s).promise().done(function(){n.completeQueue.fire()})}
5,updateSnippet:function(t,e,i){t.is("title")?document.title=e:(this.beforeQueue.fire(t),this.applySnippet(t,e,i),this.afterQueue.fire(t))},getElement:function(t){return e("#"+this.escapeSelector(t))},applySnippet:function(t,e,i){!i&&t.is("[data-ajax-append]")?t.append(e):!i&&t.is("[data-ajax-prepend]")?t.prepend(e):t.html(e)},escapeSelector:function(t){return t.replace(/[\!"#\$%&'\(\)\*\+,\.\/:;<=>\?@\[\\\]\^`\{\|\}~]/g,"\\$&")}}),e.nette.ext("redirect",{success:function(e){if(e.redirect)return t.location.href=e.redirect,!1}}),e.nette.ext("state",{success:function(t){t.state&&(this.state=t.state)}},{state:null}),e.nette.ext("unique",{start:function(t){this.xhr&&this.xhr.abort(),this.xhr=t},complete:function(){this.xhr=null}},{xhr:null}),e.nette.ext("abort",{init:function(){e("body").keydown(e.proxy(function(t){this.xhr&&"27"===t.keyCode.toString()&&!(t.ctrlKey||t.shiftKey||t.altKey||t.metaKey)&&this.xhr.abort()},this))},start:function(t){this.xhr=t},complete:function(){this.xhr=null}},{xhr:null}),e.nette.ext("load",{success:function(){e.nette.load()}}),e.nette.ext("init",{load:function(t){e(this.linkSelector).off("click.nette",t).on("click.nette",t),e(this.formSelector).off("submit.nette",t).on("submit.nette",t).off("click.nette",":image",t).on("click.nette",":image",t).off("click.nette",":submit",t).on("click.nette",":submit",t),e(this.buttonSelector).closest("form").off("click.nette",this.buttonSelector,t).on("click.nette",this.buttonSelector,t)}},{linkSelector:"a.ajax",formSelector:"form.ajax",buttonSelector:'input.ajax[type="submit"], button.ajax[type="submit"], input.ajax[type="image"]'})}(window,window.jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";function t(){return Zn.apply(null,arguments)}function e(t){Zn=t}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function s(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(s(t,e))return!1;return!0}function r(t){return void 0===t}function a(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function l(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function h(t,e){var i,n=[],s=t.length;for(i=0;i<s;++i)n.push(e(t[i],i));return n}function c(t,e){for(var i in e)s(e,i)&&(t[i]=e[i]);return s(e,"toString")&&(t.toString=e.toString),s(e,"valueOf")&&(t.valueOf=e.valueOf),t}function u(t,e,i,n){return Ce(t,e,i,n,!0).utc()}function d(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function p(t){return null==t._pf&&(t._pf=d()),t._pf}function f(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=p(t),i=Jn.call(e.parsedDateParts,function(t){return null!=t}),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?n:(t._isValid=n,t._isValid)}function m(t){var e=u(NaN);return null!=t?c(p(e),t):p(e).userInvalidated=!0,e}function g(t,e){var i,n,s,o=ts.length;if(r(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),r(e._i)||(t._i=e._i),r(e._f)||(t._f=e._f),r(e._l)||(t._l=e._l),r(e._strict)||(t._strict=e._strict),r(e._tzm)||(t._tzm=e._tzm),r(e._isUTC)||(t._isUTC=e._isUTC),r(e._offset)||(t._offset=e._offset),r(e._pf)||(t._pf=p(e)),r(e._locale)||(t._locale=e._locale),o>0)for(i=0;i<o;i++)n=ts[i],s=e[n],r(s)||(t[n]=s);return t}function v(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),es===!1&&(es=!0,t.updateOffset(this),es=!1)}function y(t){return t instanceof v||null!=t&&null!=t._isAMomentObject}function b(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function x(e,i){var n=!0;return c(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),n){var o,r,a,l=[],h=arguments.length;for(r=0;r<h;
vendor: 17,359 bytes, lines 5-6
5r++){if(o="","object"==typeof arguments[r]){o+="\n["+r+"] ";for(a in arguments[0])s(arguments[0],a)&&(o+=a+": "+arguments[0][a]+", ");o=o.slice(0,-2)}else o=arguments[r];l.push(o)}b(e+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),n=!1}return i.apply(this,arguments)},i)}function _(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),is[e]||(b(i),is[e]=!0)}function w(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function k(t){var e,i;for(i in t)s(t,i)&&(e=t[i],w(e)?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function C(t,e){var i,o=c({},t);for(i in e)s(e,i)&&(n(t[i])&&n(e[i])?(o[i]={},c(o[i],t[i]),c(o[i],e[i])):null!=e[i]?o[i]=e[i]:delete o[i]);
6for(i in t)s(t,i)&&!s(e,i)&&n(t[i])&&(o[i]=c({},o[i]));return o}function S(t){null!=t&&this.set(t)}function D(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return w(n)?n.call(e,i):n}function T(t,e,i){var n=""+Math.abs(t),s=e-n.length,o=t>=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}function M(t,e,i,n){var s=n;"string"==typeof n&&(s=function(){return this[n]()}),t&&(hs[t]=s),e&&(hs[e[0]]=function(){return T(s.apply(this,arguments),e[1],e[2])}),i&&(hs[i]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function A(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function P(t){var e,i,n=t.match(rs);for(e=0,i=n.length;e<i;e++)hs[n[e]]?n[e]=hs[n[e]]:n[e]=A(n[e]);return function(e){var s,o="";for(s=0;s<i;s++)o+=w(n[s])?n[s].call(e,t):n[s];return o}}function O(t,e){return t.isValid()?(e=L(e,t.localeData()),ls[e]=ls[e]||P(e),ls[e](t)):t.localeData().invalidDate()}function L(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(as.lastIndex=0;n>=0&&as.test(t);)t=t.replace(as,i),as.lastIndex=0,n-=1;return t}function E(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(rs).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])}function I(){return this._invalidDate}function N(t){return this._ordinal.replace("%d",t)}function H(t,e,i,n){var s=this._relativeTime[i];return w(s)?s(t,e,i,n):s.replace(/%d/i,t)}function Y(t,e){var i=this._relativeTime[t>0?"future":"past"];return w(i)?i(e):i.replace(/%s/i,e)}function j(t){return"string"==typeof t?ms[t]||ms[t.toLowerCase()]:void 0}function R(t){var e,i,n={};for(i in t)s(t,i)&&(e=j(i),e&&(n[e]=t[i]));return n}function $(t){var e,i=[];for(e in t)s(t,e)&&i.push({unit:e,priority:gs[e]});return i.sort(function(t,e){return t.priority-e.priority}),i}function F(t,e,i){ss[t]=w(e)?e:function(t,n){return t&&i?i:e}}function z(t,e){return s(ss,t)?ss[t](e._strict,e._locale):new RegExp(W(t))}function W(t){return U(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,s){return e||i||n||s}))}function U(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function B(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function G(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=B(e)),i}function V(t,e){var i,n,s=e;for("string"==typeof t&&(t=[t]),a(e)&&(s=function(t,i){i[e]=G(t)}),n=t.length,i=0;i<n;i++)Hs[t[i]]=s}function q(t,e){V(t,function(t,i,n,s){n._w=n._w||{},e(t,n._w,n,s)})}function X(t,e,i){null!=e&&s(Hs,t)&&Hs[t](e,i._a,i,t)}function K(t){return t%4===0&&t%100!==0||t%400===0}function Q(t){return K(t)?366:365}function Z(){return K(this.year())}function J(e,i){return function(n){return null!=n?(et(this,e,n),t.updateOffset(this,i),this):tt(this,e)}}function tt(t,e){if(!t.isValid())return NaN;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function et(t,e,i){var n,s,o,r,a;if(t.isValid()&&!isNaN(i)){switch(n=t._d,s=t._isUTC,e){case"Milliseconds":return void(s?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(s?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(s?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(s?n.setUTCHours(i):n.setHours(i));case"Date":return void(s?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=i,r=t.month(),a=t.date(),a=29!==a||1!==r||K(o)?a:28,void(s?n.setUTCFullYear(o,r,a):n.setFullYear(o,r,a))}}function it(t){return t=j(t),w(this[t])?this[t]():this}function nt(t,e){if("object"==typeof t){t=R(t);var i,n=$(t),s=n.length;for(i=0;i<s;i++)this[n[i].unit](t[n[i].unit])}else if(t=j(t),w(this[t]))return this[t](e);return this}function st(t,e){return(t%e+e)%e}function ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=st(e,12);return t+=(e-i)/12,1===i?K(t)?29:28:31-i%7%2}function rt(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ks).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone}function at(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ks.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function lt(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?(s=Gs.call(this._shortMonthsParse,r),s!==-1?s:null):(s=Gs.call(this._longMonthsParse,r),s!==-1?s:null):"MMM"===e?(s=Gs.call(this._shortMonthsParse,r),s!==-1?s:(s=Gs.call(this._longMonthsParse,r),s!==-1?s:null)):(s=Gs.call(this._longMonthsParse,r),s!==-1?s:(s=Gs.call(this._shortMonthsParse,r),s!==-1?s:null))}function ht(t,e,i){var n,s,o;if(this._monthsParseExact)return lt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=u([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}}function ct(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=G(e);else if(e=t.localeData().monthsParse(e),!a(e))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,ot(t.year(),i)),void(t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n)),t}function ut(e){return null!=e?(ct(this,e),t.updateOffset(this,!0),this):tt(this,"Month")}function dt(){return ot(this.year(),this.month())}function pt(t){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(s(this,"_monthsShortRegex")||(this._monthsShortRegex=Qs),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ft(t){return this._monthsParseExact?(s(this,"_monthsRegex")||mt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(s(this,"_monthsRegex")||(this._monthsRegex=Zs),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function mt(){function t(t,e){return e.length-t.length}var e,i,n,s,o=[],r=[],a=[];for(e=0;e<12;e++)i=u([2e3,e]),n=U(this.monthsShort(i,"")),s=U(this.months(i,"")),o.push(n),r.push(s),a.push(s),a.push(n);o.sort(t),r.sort(t),a.sort(t),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function gt(t,e,i,n,s,o,r){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,s,o,r),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,s,o,r),a}function vt(t){var e,i;return t<100&&t>=0?(i=Array.prototype.slice.call(arguments),i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function yt(t,e,i){var n=7+e-i,s=(7+vt(t,0,n).getUTCDay()-e)%7;return-s+n-1}function bt(t,e,i,n,s){var o,r,a=(7+i-n)%7,l=yt(t,n,s),h=1+7*(e-1)+a+l;return h<=0?(o=t-1,r=Q(o)+h):h>Q(t)?(o=t+1,r=h-Q(t)):(o=t,r=h),{year:o,dayOfYear:r}}function xt(t,e,i){var n,s,o=yt(t.year(),e,i),r=Math.floor((t.dayOfYear()-o-1)/7)+1;return r<1?(s=t.year()-1,n=r+_t(s,e,i)):r>_t(t.year(),e,i)?(n=r-_t(t.year(),e,i),s=t.year()+1):(s=t.year(),n=r),{week:n,year:s}}function _t(t,e,i){var n=yt(t,e,i),s=yt(t+1,e,i);return(Q(t)-n+s)/7}function wt(t){return xt(t,this._week.dow,this._week.doy).week}function kt(){return this._week.dow}function Ct(){return this._week.doy}function St(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Dt(t){var e=xt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Tt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Mt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function At(t,e){return t.slice(e,7).concat(t.slice(0,e))}function Pt(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?At(n,this._week.dow):t?n[t.day()]:n}function Ot(t){return t===!0?At(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Lt(t){return t===!0?At(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function Et(t,e,i){var n,s,o,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?(s=Gs.call(this._weekdaysParse,r),s!==-1?s:null):"ddd"===e?(s=Gs.call(this._shortWeekdaysParse,r),s!==-1?s:null):(s=Gs.call(this._minWeekdaysParse,r),s!==-1?s:null):"dddd"===e?(s=Gs.call(this._weekdaysParse,r),s!==-1?s:(s=Gs.call(this._shortWeekdaysParse,r),s!==-1?s:(s=Gs.call(this._minWeekdaysParse,r),s!==-1?s:null))):"ddd"===e?(s=Gs.call(this._shortWeekdaysParse,r),s!==-1?s:(s=Gs.call(this._weekdaysParse,r),s!==-1?s:(s=Gs.call(this._minWeekdaysParse,r),s!==-1?s:null))):(s=Gs.call(this._minWeekdaysParse,r),s!==-1?s:(s=Gs.call(this._weekdaysParse,r),s!==-1?s:(s=Gs.call(this._shortWeekdaysParse,r),s!==-1?s:null)))}function It(t,e,i){var n,s,o;if(this._weekdaysParseExact)return Et.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=u([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}}function Nt(t){if(!this.isValid())return null!=t?this:NaN;var e=tt(this,"Day");return null!=t?(t=Tt(t,this.localeData()),this.add(t-e,"d")):e}function Ht(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function Yt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Mt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function jt(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(s(this,"_weekdaysRegex")||(this._weekdaysRegex=no),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Rt(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(s(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=so),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function $t(t){return this._weekdaysParseExact?(s(this,"_weekdaysRegex")||Ft.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(s(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=oo),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ft(){function t(t,e){return e.length-t.length}var e,i,n,s,o,r=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=u([2e3,1]).day(e),n=U(this.weekdaysMin(i,"")),s=U(this.weekdaysShort(i,"")),o=U(this.weekdays(i,"")),r.push(n),a.push(s),l.push(o),h.push(n),h.push(s),h.push(o);r.sort(t),a.sort(t),l.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+r.join("|")+")","i")}function zt(){return this.hours()%12||12}function Wt(){return this.hours()||24}function Ut(t,e){M(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Bt(t,e){return e._meridiemParse}function Gt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Vt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function qt(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function Xt(t){return t?t.toLowerCase().replace("_","-"):t}function Kt(t){for(var e,i,n,s,o=0;o<t.length;){for(s=Xt(t[o]).split("-"),e=s.length,i=Xt(t[o+1]),i=i?i.split("-"):null;e>0;){if(n=Zt(s.slice(0,e).join("-")))return n;if(i&&i.length>=e&&qt(s,i)>=e-1)break;e--}o++}return ro}function Qt(t){return!(!t||!t.match("^[^/\\\\]*$"))}function Zt(t){var e,i=null;if(void 0===co[t]&&"undefined"!=typeof module&&module&&module.exports&&Qt(t))try{i=ro._abbr,e=require,e("./locale/"+t),Jt(i)}catch(n){co[t]=null}return co[t]}function Jt(t,e){var i;return t&&(i=r(e)?ie(t):te(t,e),i?ro=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ro._abbr}function te(t,e){if(null!==e){var i,n=ho;if(e.abbr=t,null!=co[t])_("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."),n=co[t]._config;else if(null!=e.parentLocale)if(null!=co[e.parentLocale])n=co[e.parentLocale]._config;else{if(i=Zt(e.parentLocale),null==i)return uo[e.parentLocale]||(uo[e.parentLocale]=[]),uo[e.parentLocale].push({name:t,config:e}),null;n=i._config}return co[t]=new S(C(n,e)),uo[t]&&uo[t].forEach(function(t){te(t.name,t.config)}),Jt(t),co[t]}return delete co[t],null}function ee(t,e){if(null!=e){var i,n,s=ho;null!=co[t]&&null!=co[t].parentLocale?co[t].set(C(co[t]._config,e)):(n=Zt(t),null!=n&&(s=n._config),e=C(s,e),null==n&&(e.abbr=t),i=new S(e),i.parentLocale=co[t],co[t]=i),Jt(t)}else null!=co[t]&&(null!=co[t].parentLocale?(co[t]=co[t].parentLocale,t===Jt()&&Jt(t)):null!=co[t]&&delete co[t]);return co[t]}function ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ro;if(!i(t)){if(e=Zt(t))return e;t=[t]}return Kt(t)}function ne(){return ns(co)}function se(t){var e,i=t._a;return i&&p(t).overflow===-2&&(e=i[js]<0||i[js]>11?js:i[Rs]<1||i[Rs]>ot(i[Ys],i[js])?Rs:i[$s]<0||i[$s]>24||24===i[$s]&&(0!==i[Fs]||0!==i[zs]||0!==i[Ws])?$s:i[Fs]<0||i[Fs]>59?Fs:i[zs]<0||i[zs]>59?zs:i[Ws]<0||i[Ws]>999?Ws:-1,p(t)._overflowDayOfYear&&(e<Ys||e>Rs)&&(e=Rs),p(t)._overflowWeeks&&e===-1&&(e=Us),p(t)._overflowWeekday&&e===-1&&(e=Bs),p(t).overflow=e),t}function oe(t){var e,i,n,s,o,r,a=t._i,l=po.exec(a)||fo.exec(a),h=go.length,c=vo.length;if(l){for(p(t).iso=!0,e=0,i=h;e<i;e++)if(go[e][1].exec(l[1])){s=go[e][0],n=go[e][2]!==!1;break}if(null==s)return void(t._isValid=!1);if(l[3]){for(e=0,i=c;e<i;e++)if(vo[e][1].exec(l[3])){o=(l[2]||" ")+vo[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!mo.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=s+(o||"")+(r||""),ve(t)}
6else t._isValid=!1}function re(t,e,i,n,s,o){var r=[ae(t),Xs.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(s,10)];return o&&r.push(parseInt(o,10)),r}function ae(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function le(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function he(t,e,i){if(t){var n=eo.indexOf(t),s=new Date(e[0],e[1],e[2]).getDay();if(n!==s)return p(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function ce(t,e,i){if(t)return xo[t];if(e)return 0;var n=parseInt(i,10),s=n%100,o=(n-s)/100;return 60*o+s}function ue(t){var e,i=bo.exec(le(t._i));if(i){if(e=re(i[4],i[3],i[2],i[5],i[6],i[7]),!he(i[1],e,t))return;t._a=e,t._tzm=ce(i[8],i[9],i[10]),t._d=vt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function de(e){var i=yo.exec(e._i);return null!==i?void(e._d=new Date((+i[1]))):(oe(e),void(e._isValid===!1&&(delete e._isValid,ue(e),e._isValid===!1&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))))}function pe(t,e,i){return null!=t?t:null!=e?e:i}function fe(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function me(t){var e,i,n,s,o,r=[];if(!t._d){for(n=fe(t),t._w&&null==t._a[Rs]&&null==t._a[js]&&ge(t),null!=t._dayOfYear&&(o=pe(t._a[Ys],n[Ys]),(t._dayOfYear>Q(o)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=vt(o,0,t._dayOfYear),t._a[js]=i.getUTCMonth(),t._a[Rs]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=r[e]=n[e];for(;e<7;e++)t._a[e]=r[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[$s]&&0===t._a[Fs]&&0===t._a[zs]&&0===t._a[Ws]&&(t._nextDay=!0,t._a[$s]=0),t._d=(t._useUTC?vt:gt).apply(null,r),s=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[$s]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==s&&(p(t).weekdayMismatch=!0)}}function ge(t){var e,i,n,s,o,r,a,l,h;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,r=4,i=pe(e.GG,t._a[Ys],xt(Se(),1,4).year),n=pe(e.W,1),s=pe(e.E,1),(s<1||s>7)&&(l=!0)):(o=t._locale._week.dow,r=t._locale._week.doy,h=xt(Se(),o,r),i=pe(e.gg,t._a[Ys],h.year),n=pe(e.w,h.week),null!=e.d?(s=e.d,(s<0||s>6)&&(l=!0)):null!=e.e?(s=e.e+o,(e.e<0||e.e>6)&&(l=!0)):s=o),n<1||n>_t(i,o,r)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(a=bt(i,n,s,o,r),t._a[Ys]=a.year,t._dayOfYear=a.dayOfYear)}function ve(e){if(e._f===t.ISO_8601)return void oe(e);if(e._f===t.RFC_2822)return void ue(e);e._a=[],p(e).empty=!0;var i,n,s,o,r,a,l,h=""+e._i,c=h.length,u=0;for(s=L(e._f,e._locale).match(rs)||[],l=s.length,i=0;i<l;i++)o=s[i],n=(h.match(z(o,e))||[])[0],n&&(r=h.substr(0,h.indexOf(n)),r.length>0&&p(e).unusedInput.push(r),h=h.slice(h.indexOf(n)+n.length),u+=n.length),hs[o]?(n?p(e).empty=!1:p(e).unusedTokens.push(o),X(o,n,e)):e._strict&&!n&&p(e).unusedTokens.push(o);p(e).charsLeftOver=c-u,h.length>0&&p(e).unusedInput.push(h),e._a[$s]<=12&&p(e).bigHour===!0&&e._a[$s]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[$s]=ye(e._locale,e._a[$s],e._meridiem),a=p(e).era,null!==a&&(e._a[Ys]=e._locale.erasConvertYear(a,e._a[Ys])),me(e),se(e)}function ye(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function be(t){var e,i,n,s,o,r,a=!1,l=t._f.length;if(0===l)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(s=0;s<l;s++)o=0,r=!1,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[s],ve(e),f(e)&&(r=!0),o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,a?o<n&&(n=o,i=e):(null==n||o<n||r)&&(n=o,i=e,r&&(a=!0));c(t,i||e)}function xe(t){if(!t._d){var e=R(t._i),i=void 0===e.day?e.date:e.day;t._a=h([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),me(t)}}function _e(t){var e=new v(se(we(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function we(t){var e=t._i,n=t._f;return t._locale=t._locale||ie(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}
vendor: 16,381 bytes, lines 6-7
6):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(se(e)):(l(e)?t._d=e:i(n)?be(t):n?ve(t):ke(t),f(t)||(t._d=null),t))}function ke(e){var s=e._i;r(s)?e._d=new Date(t.now()):l(s)?e._d=new Date(s.valueOf()):"string"==typeof s?de(e):i(s)?(e._a=h(s.slice(0),function(t){return parseInt(t,10)}),me(e)):n(s)?xe(e):a(s)?e._d=new Date(s):t.createFromInputFallback(e)}function Ce(t,e,s,r,a){var l={};return e!==!0&&e!==!1||(r=e,e=void 0),s!==!0&&s!==!1||(r=s,s=void 0),(n(t)&&o(t)||i(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=a,l._l=s,l._i=t,l._f=e,l._strict=r,_e(l)}function Se(t,e,i,n){return Ce(t,e,i,n,!1)}function De(t,e){var n,s;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Se();for(n=e[0],s=1;s<e.length;++s)e[s].isValid()&&!e[s][t](n)||(n=e[s]);return n}function Te(){var t=[].slice.call(arguments,0);return De("isBefore",t)}function Me(){var t=[].slice.call(arguments,0);return De("isAfter",t)}function Ae(t){var e,i,n=!1,o=Co.length;for(e in t)if(s(t,e)&&(Gs.call(Co,e)===-1||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<o;++i)if(t[Co[i]]){if(n)return!1;parseFloat(t[Co[i]])!==G(t[Co[i]])&&(n=!0)}return!0}function Pe(){return this._isValid}function Oe(){return Qe(NaN)}function Le(t){var e=R(t),i=e.year||0,n=e.quarter||0,s=e.month||0,o=e.week||e.isoWeek||0,r=e.day||0,a=e.hour||0,l=e.minute||0,h=e.second||0,c=e.millisecond||0;this._isValid=Ae(e),this._milliseconds=+c+1e3*h+6e4*l+1e3*a*60*60,this._days=+r+7*o,this._months=+s+3*n+12*i,this._data={},this._locale=ie(),this._bubble()}function Ee(t){return t instanceof Le}function Ie(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function Ne(t,e,i){var n,s=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),r=0;for(n=0;n<s;n++)(i&&t[n]!==e[n]||!i&&G(t[n])!==G(e[n]))&&r++;return r+o}function He(t,e){M(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+T(~~(t/60),2)+e+T(~~t%60,2)})}function Ye(t,e){var i,n,s,o=(e||"").match(t);return null===o?null:(i=o[o.length-1]||[],n=(i+"").match(So)||["-",0,0],s=+(60*n[1])+G(n[2]),0===s?0:"+"===n[0]?s:-s)}function je(e,i){var n,s;return i._isUTC?(n=i.clone(),s=(y(e)||l(e)?e.valueOf():Se(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+s),t.updateOffset(n,!1),n):Se(e).local()}function Re(t){return-Math.round(t._d.getTimezoneOffset())}function $e(e,i,n){var s,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(e=Ye(Os,e),null===e)return this}else Math.abs(e)<16&&!n&&(e=60*e);return!this._isUTC&&i&&(s=Re(this)),this._offset=e,this._isUTC=!0,null!=s&&this.add(s,"m"),o!==e&&(!i||this._changeInProgress?ii(this,Qe(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Re(this)}function Fe(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function ze(t){return this.utcOffset(0,t)}function We(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Re(this),"m")),this}function Ue(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ye(Ps,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this}function Be(t){return!!this.isValid()&&(t=t?Se(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function Ge(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ve(){if(!r(this._isDSTShifted))return this._isDSTShifted;var t,e={};return g(e,this),e=we(e),e._a?(t=e._isUTC?u(e._a):Se(e._a),this._isDSTShifted=this.isValid()&&Ne(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Xe(){return!!this.isValid()&&this._isUTC}function Ke(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Qe(t,e){var i,n,o,r=t,l=null;return Ee(t)?r={ms:t._milliseconds,d:t._days,M:t._months}:a(t)||!isNaN(+t)?(r={},e?r[e]=+t:r.milliseconds=+t):(l=Do.exec(t))?(i="-"===l[1]?-1:1,r={y:0,d:G(l[Rs])*i,h:G(l[$s])*i,m:G(l[Fs])*i,s:G(l[zs])*i,ms:G(Ie(1e3*l[Ws]))*i}):(l=To.exec(t))?(i="-"===l[1]?-1:1,r={y:Ze(l[2],i),M:Ze(l[3],i),w:Ze(l[4],i),d:Ze(l[5],i),h:Ze(l[6],i),m:Ze(l[7],i),s:Ze(l[8],i)}):null==r?r={}:"object"==typeof r&&("from"in r||"to"in r)&&(o=ti(Se(r.from),Se(r.to)),r={},r.ms=o.milliseconds,r.M=o.months),n=new Le(r),Ee(t)&&s(t,"_locale")&&(n._locale=t._locale),Ee(t)&&s(t,"_isValid")&&(n._isValid=t._isValid),n}function Ze(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Je(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ti(t,e){var i;return t.isValid()&&e.isValid()?(e=je(e,t),t.isBefore(e)?i=Je(t,e):(i=Je(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function ei(t,e){return function(i,n){var s,o;return null===n||isNaN(+n)||(_(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),s=Qe(i,n),ii(this,s,t),this}}function ii(e,i,n,s){var o=i._milliseconds,r=Ie(i._days),a=Ie(i._months);e.isValid()&&(s=null==s||s,a&&ct(e,tt(e,"Month")+a*n),r&&et(e,"Date",tt(e,"Date")+r*n),o&&e._d.setTime(e._d.valueOf()+o*n),s&&t.updateOffset(e,r||a))}function ni(t){return"string"==typeof t||t instanceof String}function si(t){return y(t)||l(t)||ni(t)||a(t)||ri(t)||oi(t)||null===t||void 0===t}function oi(t){var e,i,r=n(t)&&!o(t),a=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],h=l.length;for(e=0;e<h;e+=1)i=l[e],a=a||s(t,i);return r&&a}function ri(t){var e=i(t),n=!1;return e&&(n=0===t.filter(function(e){return!a(e)&&ni(t)}).length),e&&n}function ai(t){var e,i,r=n(t)&&!o(t),a=!1,l=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<l.length;e+=1)i=l[e],a=a||s(t,i);return r&&a}function li(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"}function hi(e,i){1===arguments.length&&(arguments[0]?si(arguments[0])?(e=arguments[0],i=void 0):ai(arguments[0])&&(i=arguments[0],e=void 0):(e=void 0,i=void 0));var n=e||Se(),s=je(n,this).startOf("day"),o=t.calendarFormat(this,s)||"sameElse",r=i&&(w(i[o])?i[o].call(this,n):i[o]);return this.format(r||this.localeData().calendar(o,this,Se(n)))}function ci(){return new v(this)}function ui(t,e){var i=y(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&(e=j(e)||"millisecond","millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function di(t,e){var i=y(t)?t:Se(t);return!(!this.isValid()||!i.isValid())&&(e=j(e)||"millisecond","millisecond"===e?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function pi(t,e,i,n){var s=y(t)?t:Se(t),o=y(e)?e:Se(e);return!!(this.isValid()&&s.isValid()&&o.isValid())&&(n=n||"()",("("===n[0]?this.isAfter(s,i):!this.isBefore(s,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i)))}function fi(t,e){var i,n=y(t)?t:Se(t);return!(!this.isValid()||!n.isValid())&&(e=j(e)||"millisecond","millisecond"===e?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function mi(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function gi(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function vi(t,e,i){var n,s,o;if(!this.isValid())return NaN;if(n=je(t,this),!n.isValid())return NaN;switch(s=6e4*(n.utcOffset()-this.utcOffset()),e=j(e)){case"year":o=yi(this,n)/12;break;case"month":o=yi(this,n);break;case"quarter":o=yi(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-s)/864e5;break;case"week":o=(this-n-s)/6048e5;break;default:o=this-n}return i?o:B(o)}function yi(t,e){if(t.date()<e.date())return-yi(e,t);var i,n,s=12*(e.year()-t.year())+(e.month()-t.month()),o=t.clone().add(s,"months");return e-o<0?(i=t.clone().add(s-1,"months"),n=(e-o)/(o-i)):(i=t.clone().add(s+1,"months"),n=(e-o)/(i-o)),-(s+n)||0}function bi(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xi(t){if(!this.isValid())return null;var e=t!==!0,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?O(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):w(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",O(i,"Z")):O(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function _i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i,n,s="moment",o="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+s+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",n=o+'[")]',this.format(t+e+i+n)}function wi(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=O(this,e);return this.localeData().postformat(i)}function ki(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Ci(t){return this.from(Se(),t)}function Si(t,e){return this.isValid()&&(y(t)&&t.isValid()||Se(t).isValid())?Qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function Di(t){return this.to(Se(),t)}function Ti(t){var e;return void 0===t?this._locale._abbr:(e=ie(t),null!=e&&(this._locale=e),this)}function Mi(){return this._locale}function Ai(t,e){return(t%e+e)%e}function Pi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Io:new Date(t,e,i).valueOf()}function Oi(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Io:Date.UTC(t,e,i)}function Li(e){var i,n;if(e=j(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Oi:Pi,e){case"year":i=n(this.year(),0,1);break;case"quarter":i=n(this.year(),this.month()-this.month()%3,1);break;case"month":i=n(this.year(),this.month(),1);break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=n(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=Ai(i+(this._isUTC?0:this.utcOffset()*Lo),Eo);break;case"minute":i=this._d.valueOf(),i-=Ai(i,Lo);break;case"second":i=this._d.valueOf(),i-=Ai(i,Oo)}return this._d.setTime(i),t.updateOffset(this,!0),this}function Ei(e){var i,n;if(e=j(e),void 0===e||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?Oi:Pi,e){case"year":i=n(this.year()+1,0,1)-1;break;case"quarter":i=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=n(this.year(),this.month()+1,1)-1;break;case"week":i=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=Eo-Ai(i+(this._isUTC?0:this.utcOffset()*Lo),Eo)-1;break;case"minute":i=this._d.valueOf(),i+=Lo-Ai(i,Lo)-1;
7break;case"second":i=this._d.valueOf(),i+=Oo-Ai(i,Oo)-1}return this._d.setTime(i),t.updateOffset(this,!0),this}function Ii(){return this._d.valueOf()-6e4*(this._offset||0)}function Ni(){return Math.floor(this.valueOf()/1e3)}function Hi(){return new Date(this.valueOf())}function Yi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function ji(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Ri(){return this.isValid()?this.toISOString():null}function $i(){return f(this)}function Fi(){return c({},p(this))}function zi(){return p(this).overflow}function Wi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ui(e,i){var n,s,o,r=this._eras||ie("en")._eras;for(n=0,s=r.length;n<s;++n){switch(typeof r[n].since){case"string":o=t(r[n].since).startOf("day"),r[n].since=o.valueOf()}switch(typeof r[n].until){case"undefined":r[n].until=+(1/0);break;case"string":o=t(r[n].until).startOf("day").valueOf(),r[n].until=o.valueOf()}}return r}function Bi(t,e,i){var n,s,o,r,a,l=this.eras();for(t=t.toUpperCase(),n=0,s=l.length;n<s;++n)if(o=l[n].name.toUpperCase(),r=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(r===t)return l[n];break;case"NNNN":if(o===t)return l[n];break;case"NNNNN":if(a===t)return l[n]}else if([o,r,a].indexOf(t)>=0)return l[n]}function Gi(e,i){var n=e.since<=e.until?1:-1;return void 0===i?t(e.since).year():t(e.since).year()+(i-e.offset)*n}function Vi(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""}function qi(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""}function Xi(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""}function Ki(){var e,i,n,s,o=this.localeData().eras();for(e=0,i=o.length;e<i;++e)if(n=o[e].since<=o[e].until?1:-1,s=this.clone().startOf("day").valueOf(),o[e].since<=s&&s<=o[e].until||o[e].until<=s&&s<=o[e].since)return(this.year()-t(o[e].since).year())*n+o[e].offset;return this.year()}function Qi(t){return s(this,"_erasNameRegex")||on.call(this),t?this._erasNameRegex:this._erasRegex}function Zi(t){return s(this,"_erasAbbrRegex")||on.call(this),t?this._erasAbbrRegex:this._erasRegex}function Ji(t){return s(this,"_erasNarrowRegex")||on.call(this),t?this._erasNarrowRegex:this._erasRegex}function tn(t,e){return e.erasAbbrRegex(t)}function en(t,e){return e.erasNameRegex(t)}function nn(t,e){return e.erasNarrowRegex(t)}function sn(t,e){return e._eraYearOrdinalRegex||Ms}function on(){var t,e,i,n,s,o=[],r=[],a=[],l=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=U(h[t].name),n=U(h[t].abbr),s=U(h[t].narrow),r.push(i),o.push(n),a.push(s),l.push(i),l.push(n),l.push(s);this._erasRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+r.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function rn(t,e){M(0,[t,t.length],0,e)}function an(t){return pn.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function ln(t){return pn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function hn(){return _t(this.year(),1,4)}function cn(){return _t(this.isoWeekYear(),1,4)}function un(){var t=this.localeData()._week;return _t(this.year(),t.dow,t.doy)}function dn(){var t=this.localeData()._week;return _t(this.weekYear(),t.dow,t.doy)}function pn(t,e,i,n,s){var o;return null==t?xt(this,n,s).year:(o=_t(t,n,s),e>o&&(e=o),fn.call(this,t,e,i,n,s))}function fn(t,e,i,n,s){var o=bt(t,e,i,n,s),r=vt(o.year,0,o.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function mn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function gn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function vn(t,e){e[Ws]=G(1e3*("0."+t))}function yn(){return this._isUTC?"UTC":""}function bn(){return this._isUTC?"Coordinated Universal Time":""}function xn(t){return Se(1e3*t)}function _n(){return Se.apply(null,arguments).parseZone()}function wn(t){return t}function kn(t,e,i,n){var s=ie(),o=u().set(n,e);return s[i](o,t)}function Cn(t,e,i){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return kn(t,e,i,"month");var n,s=[];for(n=0;n<12;n++)s[n]=kn(t,n,i,"month");return s}
7function Sn(t,e,i,n){"boolean"==typeof t?(a(e)&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,a(e)&&(i=e,e=void 0),e=e||"");var s,o=ie(),r=t?o._week.dow:0,l=[];if(null!=i)return kn(e,(i+r)%7,n,"day");for(s=0;s<7;s++)l[s]=kn(e,(s+r)%7,n,"day");return l}function Dn(t,e){return Cn(t,e,"months")}function Tn(t,e){return Cn(t,e,"monthsShort")}function Mn(t,e,i){return Sn(t,e,i,"weekdays")}function An(t,e,i){return Sn(t,e,i,"weekdaysShort")}function Pn(t,e,i){return Sn(t,e,i,"weekdaysMin")}function On(){var t=this._data;return this._milliseconds=zo(this._milliseconds),this._days=zo(this._days),this._months=zo(this._months),t.milliseconds=zo(t.milliseconds),t.seconds=zo(t.seconds),t.minutes=zo(t.minutes),t.hours=zo(t.hours),t.months=zo(t.months),t.years=zo(t.years),this}function Ln(t,e,i,n){var s=Qe(e,i);return t._milliseconds+=n*s._milliseconds,t._days+=n*s._days,t._months+=n*s._months,t._bubble()}function En(t,e){return Ln(this,t,e,1)}function In(t,e){return Ln(this,t,e,-1)}function Nn(t){return t<0?Math.floor(t):Math.ceil(t)}function Hn(){var t,e,i,n,s,o=this._milliseconds,r=this._days,a=this._months,l=this._data;return o>=0&&r>=0&&a>=0||o<=0&&r<=0&&a<=0||(o+=864e5*Nn(jn(a)+r),r=0,a=0),l.milliseconds=o%1e3,t=B(o/1e3),l.seconds=t%60,e=B(t/60),l.minutes=e%60,i=B(e/60),l.hours=i%24,r+=B(i/24),s=B(Yn(r)),a+=s,r-=Nn(jn(s)),n=B(a/12),a%=12,l.days=r,l.months=a,l.years=n,this}function Yn(t){return 4800*t/146097}function jn(t){return 146097*t/4800}function Rn(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(t=j(t),"month"===t||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Yn(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(jn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}}function $n(t){return function(){return this.as(t)}}function Fn(){return Qe(this)}function zn(t){return t=j(t),this.isValid()?this[t+"s"]():NaN}function Wn(t){return function(){return this.isValid()?this._data[t]:NaN}}function Un(){return B(this.days()/7)}function Bn(t,e,i,n,s){return s.relativeTime(e||1,!!i,t,n)}function Gn(t,e,i,n){var s=Qe(t).abs(),o=rr(s.as("s")),r=rr(s.as("m")),a=rr(s.as("h")),l=rr(s.as("d")),h=rr(s.as("M")),c=rr(s.as("w")),u=rr(s.as("y")),d=o<=i.ss&&["s",o]||o<i.s&&["ss",o]||r<=1&&["m"]||r<i.m&&["mm",r]||a<=1&&["h"]||a<i.h&&["hh",a]||l<=1&&["d"]||l<i.d&&["dd",l];return null!=i.w&&(d=d||c<=1&&["w"]||c<i.w&&["ww",c]),d=d||h<=1&&["M"]||h<i.M&&["MM",h]||u<=1&&["y"]||["yy",u],d[2]=e,d[3]=+t>0,d[4]=n,Bn.apply(null,d)}function Vn(t){return void 0===t?rr:"function"==typeof t&&(rr=t,!0)}function qn(t,e){return void 0!==ar[t]&&(void 0===e?ar[t]:(ar[t]=e,"s"===t&&(ar.ss=e-1),!0))}function Xn(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,s=!1,o=ar;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(s=t),"object"==typeof e&&(o=Object.assign({},ar,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=this.localeData(),n=Gn(this,!s,o,i),s&&(n=i.pastFuture(+this,n)),i.postformat(n)}function Kn(t){return(t>0)-(t<0)||+t}function Qn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,s,o,r,a,l=lr(this._milliseconds)/1e3,h=lr(this._days),c=lr(this._months),u=this.asSeconds();return u?(t=B(l/60),e=B(t/60),l%=60,t%=60,i=B(c/12),c%=12,n=l?l.toFixed(3).replace(/\.?0+$/,""):"",s=u<0?"-":"",o=Kn(this._months)!==Kn(u)?"-":"",r=Kn(this._days)!==Kn(u)?"-":"",a=Kn(this._milliseconds)!==Kn(u)?"-":"",s+"P"+(i?o+i+"Y":"")+(c?o+c+"M":"")+(h?r+h+"D":"")+(e||t||l?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(l?a+n+"S":"")):"P0D"}var Zn,Jn;Jn=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var ts=t.momentProperties=[],es=!1,is={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var ns;ns=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)s(t,e)&&i.push(e);return i};var ss,os={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},rs=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
vendor: 4,419 bytes, line 7
7|x|X|zz?|ZZ?|.)/g,as=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ls={},hs={},cs={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"},us="Invalid date",ds="%d",ps=/\d{1,2}/,fs={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",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},ms={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"},gs={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},vs=/\d/,ys=/\d\d/,bs=/\d{3}/,xs=/\d{4}/,_s=/[+-]?\d{6}/,ws=/\d\d?/,ks=/\d\d\d\d?/,Cs=/\d\d\d\d\d\d?/,Ss=/\d{1,3}/,Ds=/\d{1,4}/,Ts=/[+-]?\d{1,6}/,Ms=/\d+/,As=/[+-]?\d+/,Ps=/Z|[+-]\d\d:?\d\d/gi,Os=/Z|[+-]\d\d(?::?\d\d)?/gi,Ls=/[+-]?\d+(\.\d{1,3})?/,Es=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Is=/^[1-9]\d?/,Ns=/^([1-9]\d|\d)/;ss={};var Hs={},Ys=0,js=1,Rs=2,$s=3,Fs=4,zs=5,Ws=6,Us=7,Bs=8;M("Y",0,0,function(){var t=this.year();return t<=9999?T(t,4):"+"+t}),M(0,["YY",2],0,function(){return this.year()%100}),M(0,["YYYY",4],0,"year"),M(0,["YYYYY",5],0,"year"),M(0,["YYYYYY",6,!0],0,"year"),F("Y",As),F("YY",ws,ys),F("YYYY",Ds,xs),F("YYYYY",Ts,_s),F("YYYYYY",Ts,_s),V(["YYYYY","YYYYYY"],Ys),V("YYYY",function(e,i){i[Ys]=2===e.length?t.parseTwoDigitYear(e):G(e)}),V("YY",function(e,i){i[Ys]=t.parseTwoDigitYear(e)}),V("Y",function(t,e){e[Ys]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return G(t)+(G(t)>68?1900:2e3)};var Gs,Vs=J("FullYear",!0);Gs=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},M("M",["MM",2],"Mo",function(){return this.month()+1}),M("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),M("MMMM",0,0,function(t){return this.localeData().months(this,t)}),F("M",ws,Is),F("MM",ws,ys),F("MMM",function(t,e){return e.monthsShortRegex(t)}),F("MMMM",function(t,e){return e.monthsRegex(t)}),V(["M","MM"],function(t,e){e[js]=G(t)-1}),V(["MMM","MMMM"],function(t,e,i,n){var s=i._locale.monthsParse(t,n,i._strict);null!=s?e[js]=s:p(i).invalidMonth=t});var qs="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Xs="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ks=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Qs=Es,Zs=Es;M("w",["ww",2],"wo","week"),M("W",["WW",2],"Wo","isoWeek"),F("w",ws,Is),F("ww",ws,ys),F("W",ws,Is),F("WW",ws,ys),q(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=G(t)});var Js={dow:0,doy:6};M("d",0,"do","day"),M("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),M("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),M("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),M("e",0,0,"weekday"),M("E",0,0,"isoWeekday"),F("d",ws),F("e",ws),F("E",ws),F("dd",function(t,e){return e.weekdaysMinRegex(t)}),F("ddd",function(t,e){return e.weekdaysShortRegex(t)}),F("dddd",function(t,e){return e.weekdaysRegex(t)}),q(["dd","ddd","dddd"],function(t,e,i,n){var s=i._locale.weekdaysParse(t,n,i._strict);null!=s?e.d=s:p(i).invalidWeekday=t}),q(["d","e","E"],function(t,e,i,n){e[n]=G(t)});var to="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),eo="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),io="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),no=Es,so=Es,oo=Es;M("H",["HH",2],0,"hour"),M("h",["hh",2],0,zt),M("k",["kk",2],0,Wt),M("hmm",0,0,function(){return""+zt.apply(this)+T(this.minutes(),2)}
7),M("hmmss",0,0,function(){return""+zt.apply(this)+T(this.minutes(),2)+T(this.seconds(),2)}),M("Hmm",0,0,function(){return""+this.hours()+T(this.minutes(),2)}),M("Hmmss",0,0,function(){return""+this.hours()+T(this.minutes(),2)+T(this.seconds(),2)}),Ut("a",!0),Ut("A",!1),F("a",Bt),F("A",Bt),F("H",ws,Ns),F("h",ws,Is),F("k",ws,Is),F("HH",ws,ys),F("hh",ws,ys),F("kk",ws,ys),F("hmm",ks),F("hmmss",Cs),F("Hmm",ks),F("Hmmss",Cs),V(["H","HH"],$s),V(["k","kk"],function(t,e,i){var n=G(t);e[$s]=24===n?0:n}),V(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),V(["h","hh"],function(t,e,i){e[$s]=G(t),p(i).bigHour=!0}),V("hmm",function(t,e,i){var n=t.length-2;e[$s]=G(t.substr(0,n)),e[Fs]=G(t.substr(n)),p(i).bigHour=!0}),V("hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[$s]=G(t.substr(0,n)),e[Fs]=G(t.substr(n,2)),e[zs]=G(t.substr(s)),p(i).bigHour=!0}),V("Hmm",function(t,e,i){var n=t.length-2;e[$s]=G(t.substr(0,n)),e[Fs]=G(t.substr(n))}),V("Hmmss",function(t,e,i){var n=t.length-4,s=t.length-2;e[$s]=G(t.substr(0,n)),e[Fs]=G(t.substr(n,2)),e[zs]=G(t.substr(s))});var ro,ao=/[ap]\.?m?\.?/i,lo=J("Hours",!0),ho={calendar:os,longDateFormat:cs,invalidDate:us,ordinal:ds,dayOfMonthOrdinalParse:ps,relativeTime:fs,months:qs,monthsShort:Xs,week:Js,weekdays:to,weekdaysMin:io,weekdaysShort:eo,meridiemParse:ao},co={},uo={},po=/^\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)?)?$/,fo=/^\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)?)?$/,mo=/Z|[+-]\d\d(?::?\d\d)?/,go=[["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}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],vo=[["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/]],yo=/^\/?Date\((-?\d+)/i,bo=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,xo={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};t.createFromInputFallback=x("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. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var _o=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),wo=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Se.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()}),ko=function(){return Date.now?Date.now():+new Date},Co=["year","quarter","month","week","day","hour","minute","second","millisecond"];He("Z",":"),He("ZZ",""),F("Z",Os),F("ZZ",Os),V(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Ye(Os,t)});var So=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Do=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,To=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Qe.fn=Le.prototype,Qe.invalid=Oe;var Mo=ei(1,"add"),Ao=ei(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Po=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),Oo=1e3,Lo=60*Oo,Eo=60*Lo,Io=3506328*Eo;M("N",0,0,"eraAbbr"),M("NN",0,0,"eraAbbr"),M("NNN",0,0,"eraAbbr"),M("NNNN",0,0,"eraName"),M("NNNNN",0,0,"eraNarrow"),M("y",["y",1],"yo","eraYear"),M("y",["yy",2],0,"eraYear"),M("y",["yyy",3],0,"eraYear"),M("y",["yyyy",4],0,"eraYear"),F("N",tn),F("NN",tn),F("NNN",tn),F("NNNN",en),F("NNNNN",nn),V(["N","NN","NNN","NNNN","NNNNN"],function(t,e,
7i,n){var s=i._locale.erasParse(t,n,i._strict);s?p(i).era=s:p(i).invalidEra=t}),F("y",Ms),F("yy",Ms),F("yyy",Ms),F("yyyy",Ms),F("yo",sn),V(["y","yy","yyy","yyyy"],Ys),V(["yo"],function(t,e,i,n){var s;i._locale._eraYearOrdinalRegex&&(s=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[Ys]=i._locale.eraYearOrdinalParse(t,s):e[Ys]=parseInt(t,10)}),M(0,["gg",2],0,function(){return this.weekYear()%100}),M(0,["GG",2],0,function(){return this.isoWeekYear()%100}),rn("gggg","weekYear"),rn("ggggg","weekYear"),rn("GGGG","isoWeekYear"),rn("GGGGG","isoWeekYear"),F("G",As),F("g",As),F("GG",ws,ys),F("gg",ws,ys),F("GGGG",Ds,xs),F("gggg",Ds,xs),F("GGGGG",Ts,_s),F("ggggg",Ts,_s),q(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=G(t)}),q(["gg","GG"],function(e,i,n,s){i[s]=t.parseTwoDigitYear(e)}),M("Q",0,"Qo","quarter"),F("Q",vs),V("Q",function(t,e){e[js]=3*(G(t)-1)}),M("D",["DD",2],"Do","date"),F("D",ws,Is),F("DD",ws,ys),F("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),V(["D","DD"],Rs),V("Do",function(t,e){e[Rs]=G(t.match(ws)[0])});var No=J("Date",!0);M("DDD",["DDDD",3],"DDDo","dayOfYear"),F("DDD",Ss),F("DDDD",bs),V(["DDD","DDDD"],function(t,e,i){i._dayOfYear=G(t)}),M("m",["mm",2],0,"minute"),F("m",ws,Ns),F("mm",ws,ys),V(["m","mm"],Fs);var Ho=J("Minutes",!1);M("s",["ss",2],0,"second"),F("s",ws,Ns),F("ss",ws,ys),V(["s","ss"],zs);var Yo=J("Seconds",!1);M("S",0,0,function(){return~~(this.millisecond()/100)}),M(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),M(0,["SSS",3],0,"millisecond"),M(0,["SSSS",4],0,function(){return 10*this.millisecond()}),M(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),M(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),M(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),M(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),M(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),F("S",Ss,vs),F("SS",Ss,ys),F("SSS",Ss,bs);var jo,Ro;for(jo="SSSS";jo.length<=9;jo+="S")F(jo,Ms);for(jo="S";jo.length<=9;jo+="S")V(jo,vn);Ro=J("Milliseconds",!1),M("z",0,0,"zoneAbbr"),M("zz",0,0,"zoneName");var $o=v.prototype;$o.add=Mo,$o.calendar=hi,$o.clone=ci,$o.diff=vi,$o.endOf=Ei,$o.format=wi,$o.from=ki,$o.fromNow=Ci,$o.to=Si,$o.toNow=Di,$o.get=it,$o.invalidAt=zi,$o.isAfter=ui,$o.isBefore=di,$o.isBetween=pi,$o.isSame=fi,$o.isSameOrAfter=mi,$o.isSameOrBefore=gi,$o.isValid=$i,$o.lang=Po,$o.locale=Ti,$o.localeData=Mi,$o.max=wo,$o.min=_o,$o.parsingFlags=Fi,$o.set=nt,$o.startOf=Li,$o.subtract=Ao,$o.toArray=Yi,$o.toObject=ji,$o.toDate=Hi,$o.toISOString=xi,$o.inspect=_i,"undefined"!=typeof Symbol&&null!=Symbol["for"]&&($o[Symbol["for"]("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),$o.toJSON=Ri,$o.toString=bi,$o.unix=Ni,$o.valueOf=Ii,$o.creationData=Wi,$o.eraName=Vi,$o.eraNarrow=qi,$o.eraAbbr=Xi,$o.eraYear=Ki,$o.year=Vs,$o.isLeapYear=Z,$o.weekYear=an,$o.isoWeekYear=ln,$o.quarter=$o.quarters=mn,$o.month=ut,$o.daysInMonth=dt,$o.week=$o.weeks=St,$o.isoWeek=$o.isoWeeks=Dt,$o.weeksInYear=un,$o.weeksInWeekYear=dn,$o.isoWeeksInYear=hn,$o.isoWeeksInISOWeekYear=cn,$o.date=No,$o.day=$o.days=Nt,$o.weekday=Ht,$o.isoWeekday=Yt,$o.dayOfYear=gn,$o.hour=$o.hours=lo,$o.minute=$o.minutes=Ho,$o.second=$o.seconds=Yo,$o.millisecond=$o.milliseconds=Ro,$o.utcOffset=$e,$o.utc=ze,$o.local=We,$o.parseZone=Ue,$o.hasAlignedHourOffset=Be,$o.isDST=Ge,$o.isLocal=qe,$o.isUtcOffset=Xe,$o.isUtc=Ke,$o.isUTC=Ke,$o.zoneAbbr=yn,$o.zoneName=bn,$o.dates=x("dates accessor is deprecated. Use date instead.",No),$o.months=x("months accessor is deprecated. Use month instead",ut),$o.years=x("years accessor is deprecated. Use year instead",Vs),$o.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Fe),$o.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ve);var Fo=S.prototype;Fo.calendar=D,Fo.longDateFormat=E,Fo.invalidDate=I,Fo.ordinal=N,Fo.preparse=wn,Fo.postformat=wn,Fo.relativeTime=H,Fo.pastFuture=Y,Fo.set=k,Fo.eras=Ui,Fo.erasParse=Bi,Fo.erasConvertYear=Gi,Fo.erasAbbrRegex=Zi,Fo.erasNameRegex=Qi,Fo.erasNarrowRegex=Ji,Fo.months=rt,Fo.monthsShort=at,Fo.monthsParse=ht,Fo.monthsRegex=ft,Fo.monthsShortRegex=pt,Fo.week=wt,Fo.firstDayOfYear=Ct,Fo.firstDayOfWeek=kt,Fo.weekdays=Pt,Fo.weekdaysMin=Lt,Fo.weekdaysShort=Ot,Fo.weekdaysParse=It,Fo.weekdaysRegex=jt,Fo.weekdaysShortRegex=Rt,Fo.weekdaysMinRegex=$t,Fo.isPM=Gt,Fo.meridiem=Vt,Jt("en",{eras:[{since:"0001-01-01",until:+(1/0),offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-(1/0),offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===G(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),t.lang=x("moment.lang is deprecated. Use moment.locale instead.",Jt),t.langData=x("moment.langData is deprecated. Use moment.localeData instead.",ie);var zo=Math.abs,Wo=$n("ms"),Uo=$n("s"),Bo=$n("m"),Go=$n("h"),Vo=$n("d"),qo=$n("w"),Xo=$n("M"),Ko=$n("Q"),Qo=$n("y"),Zo=Wo,Jo=Wn("milliseconds"),tr=Wn("seconds"),er=Wn("minutes"),ir=Wn("hours"),nr=Wn("days"),sr=Wn("months"),or=Wn("years"),rr=Math.round,ar={ss:44,s:45,m:45,h:22,d:26,w:null,M:11},lr=Math.abs,hr=Le.prototype;return hr.isValid=Pe,hr.abs=On,hr.add=En,hr.subtract=In,hr.as=Rn,hr.asMilliseconds=Wo,hr.asSeconds=Uo,hr.asMinutes=Bo,hr.asHours=Go,hr.asDays=Vo,hr.asWeeks=qo,hr.asMonths=Xo,hr.asQuarters=Ko,hr.asYears=Qo,hr.valueOf=Zo,hr._bubble=Hn,hr.clone=Fn,hr.get=zn,hr.milliseconds=Jo,hr.seconds=tr,hr.minutes=er,hr.hours=ir,hr.days=nr,hr.weeks=Un,hr.months=sr,hr.years=or,hr.humanize=Xn,hr.toISOString=Qn,hr.toString=Qn,hr.toJSON=Qn,hr.locale=Ti,hr.localeData=Mi,hr.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Qn),hr.lang=Po,M("X",0,0,"unix"),M("x",0,0,"valueOf"),F("x",As),F("X",Ls),V("X",function(t,e,
7i){i._d=new Date(1e3*parseFloat(t))}),V("x",function(t,e,i){i._d=new Date(G(t))}),t.version="2.30.1",e(Se),t.fn=$o,t.min=Te,t.max=Me,t.now=ko,t.utc=u,t.unix=xn,t.months=Dn,t.isDate=l,t.locale=Jt,t.invalid=m,t.duration=Qe,t.isMoment=y,t.weekdays=Mn,t.parseZone=_n,t.localeData=ie,t.isDuration=Ee,t.monthsShort=Tn,t.weekdaysMin=Pn,t.defineLocale=te,t.updateLocale=ee,t.locales=ne,t.weekdaysShort=An,t.normalizeUnits=j,t.relativeTimeRounding=Vn,t.relativeTimeThreshold=qn,t.calendarFormat=li,t.prototype=$o,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(t.moment)}(this,function(t){"use strict";var e=t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10,i=1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i},week:{dow:1,doy:4}});return e}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module&&"function"==typeof require?e(require("../moment")):"function"==typeof define&&define.amd?define(["../moment"],e):e(t.moment)}(this,function(t){"use strict";function e(t){return t>1&&t<5&&1!==~~(t/10)}function i(t,i,n,s){var o=t+" ";switch(n){case"s":return i||s?"pár sekund":"pár sekundami";case"ss":return i||s?o+(e(t)?"sekundy":"sekund"):o+"sekundami";case"m":return i?"minuta":s?"minutu":"minutou";case"mm":return i||s?o+(e(t)?"minuty":"minut"):o+"minutami";case"h":return i?"hodina":s?"hodinu":"hodinou";case"hh":return i||s?o+(e(t)?"hodiny":"hodin"):o+"hodinami";case"d":return i||s?"den":"dnem";case"dd":return i||s?o+(e(t)?"dny":"dní"):o+"dny";case"M":return i||s?"měsíc":"měsícem";case"MM":return i||s?o+(e(t)?"měsíce":"měsíců"):o+"měsíci";case"y":return i||s?"rok":"rokem";case"yy":return i||s?o+(e(t)?"roky":"let"):o+"lety"}}var n={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},s="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),o=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,a=t.defineLocale("cs",{months:n,monthsShort:s,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}});return a}),function(t,e){"use strict";var i=t.History=t.History||{},n=t.jQuery;if("undefined"!=typeof i.Adapter)throw new Error("History.js Adapter has already been loaded...");
7i.Adapter={bind:function(t,e,i){n(t).bind(e,i)},trigger:function(t,e,i){n(t).trigger(e,i)},extractEventData:function(t,i,n){var s=i&&i.originalEvent&&i.originalEvent[t]||n&&n[t]||e;return s},onDomLoad:function(t){n(t)}},"undefined"!=typeof i.init&&i.init()}(window),function(t,e){"use strict";var i=t.console||e,n=t.document,s=t.navigator,o=t.sessionStorage||!1,r=t.setTimeout,a=t.clearTimeout,l=t.setInterval,h=t.clearInterval,c=t.JSON,u=t.alert,d=t.History=t.History||{},p=t.history;try{o.setItem("TEST","1"),o.removeItem("TEST")}catch(f){o=!1}if(c.stringify=c.stringify||c.encode,c.parse=c.parse||c.decode,"undefined"!=typeof d.init)throw new Error("History.js Core has already been loaded...");d.init=function(t){return"undefined"!=typeof d.Adapter&&("undefined"!=typeof d.initCore&&d.initCore(),"undefined"!=typeof d.initHtml4&&d.initHtml4(),!0)},d.initCore=function(f){if("undefined"!=typeof d.initCore.initialized)return!1;if(d.initCore.initialized=!0,d.options=d.options||{},d.options.hashChangeInterval=d.options.hashChangeInterval||100,d.options.safariPollInterval=d.options.safariPollInterval||500,d.options.doubleCheckInterval=d.options.doubleCheckInterval||500,d.options.disableSuid=d.options.disableSuid||!1,d.options.storeInterval=d.options.storeInterval||1e3,d.options.busyDelay=d.options.busyDelay||250,d.options.debug=d.options.debug||!1,d.options.initialTitle=d.options.initialTitle||n.title,d.options.html4Mode=d.options.html4Mode||!1,d.options.delayInit=d.options.delayInit||!1,d.intervalList=[],d.clearAllIntervals=function(){var t,e=d.intervalList;if("undefined"!=typeof e&&null!==e){for(t=0;t<e.length;t++)h(e[t]);d.intervalList=null}},d.debug=function(){d.options.debug&&d.log.apply(d,arguments)},d.log=function(){var t,e,s,o,r,a=!("undefined"==typeof i||"undefined"==typeof i.log||"undefined"==typeof i.log.apply),l=n.getElementById("log");for(a?(o=Array.prototype.slice.call(arguments),t=o.shift(),"undefined"!=typeof i.debug?i.debug.apply(i,[t,o]):i.log.apply(i,[t,o])):t="\n"+arguments[0]+"\n",e=1,s=arguments.length;e<s;++e){if(r=arguments[e],"object"==typeof r&&"undefined"!=typeof c)try{r=c.stringify(r)}catch(h){}t+="\n"+r+"\n"}return l?(l.value+=t+"\n-----\n",l.scrollTop=l.scrollHeight-l.clientHeight):a||u(t),
8!0},d.getInternetExplorerMajorVersion=function(){var t=d.getInternetExplorerMajorVersion.cached="undefined"!=typeof d.getInternetExplorerMajorVersion.cached?d.getInternetExplorerMajorVersion.cached:function(){for(var t=3,e=n.createElement("div"),i=e.getElementsByTagName("i");(e.innerHTML="<!--[if gt IE "+ ++t+"]><i></i><![endif]-->")&&i[0];);return t>4&&t}();return t},d.isInternetExplorer=function(){var t=d.isInternetExplorer.cached="undefined"!=typeof d.isInternetExplorer.cached?d.isInternetExplorer.cached:Boolean(d.getInternetExplorerMajorVersion());return t},d.options.html4Mode?d.emulated={pushState:!0,hashChange:!0}
8:d.emulated={pushState:!Boolean(t.history&&t.history.pushState&&t.history.replaceState&&!(/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(s.userAgent)||/AppleWebKit\/5([0-2]|3[0-2])/i.test(s.userAgent))),hashChange:Boolean(!("onhashchange"in t||"onhashchange"in n)||d.isInternetExplorer()&&d.getInternetExplorerMajorVersion()<8)},d.enabled=!d.emulated.pushState,d.bugs={setHash:Boolean(!d.emulated.pushState&&"Apple Computer, Inc."===s.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(s.userAgent)),safariPoll:Boolean(!d.emulated.pushState&&"Apple Computer, Inc."===s.vendor&&/AppleWebKit\/5([0-2]|3[0-3])/.test(s.userAgent)),ieDoubleCheck:Boolean(d.isInternetExplorer()&&d.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(d.isInternetExplorer()&&d.getInternetExplorerMajorVersion()<7)},d.isEmptyObject=function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},d.cloneObject=function(t){var e,i;return t?(e=c.stringify(t),i=c.parse(e)):i={},i},d.getRootUrl=function(){var t=n.location.protocol+"//"+(n.location.hostname||n.location.host);return n.location.port&&(t+=":"+n.location.port),t+="/"},d.getBaseHref=function(){var t=n.getElementsByTagName("base"),e=null,i="";return 1===t.length&&(e=t[0],i=e.href.replace(/[^\/]+$/,"")),i=i.replace(/\/+$/,""),i&&(i+="/"),i},d.getBaseUrl=function(){var t=d.getBaseHref()||d.getBasePageUrl()||d.getRootUrl();return t},d.getPageUrl=function(){var t,e=d.getState(!1,!1),i=(e||{}).url||d.getLocationHref();return t=i.replace(/\/+$/,"").replace(/[^\/]+$/,function(t,e,i){return/\./.test(t)?t:t+"/"})},d.getBasePageUrl=function(){var t=d.getLocationHref().replace(/[#\?].*/,"").replace(/[^\/]+$/,function(t,e,i){return/[^\/]$/.test(t)?"":t}).replace(/\/+$/,"")+"/";return t},d.getFullUrl=function(t,e){var i=t,n=t.substring(0,1);return e="undefined"==typeof e||e,/[a-z]+\:\/\//.test(t)||(i="/"===n?d.getRootUrl()+t.replace(/^\/+/,""):"#"===n?d.getPageUrl().replace(/#.*/,"")+t:"?"===n?d.getPageUrl().replace(/[\?#].*/,"")+t:e?d.getBaseUrl()+t.replace(/^(\.\/)+/,""):d.getBasePageUrl()+t.replace(/^(\.\/)+/,"")),i.replace(/\#$/,"")},d.getShortUrl=function(t){var e=t,i=d.getBaseUrl(),n=d.getRootUrl();return d.emulated.pushState&&(e=e.replace(i,"")),e=e.replace(n,"/"),d.isTraditionalAnchor(e)&&(e="./"+e),e=e.replace(/^(\.\/)+/g,"./").replace(/\#$/,"")},d.getLocationHref=function(t){return t=t||n,t.URL===t.location.href?t.location.href:t.location.href===decodeURIComponent(t.URL)?t.URL:t.location.hash&&decodeURIComponent(t.location.href.replace(/^[^#]+/,""))===t.location.hash?t.location.href:t.URL.indexOf("#")==-1&&t.location.href.indexOf("#")!=-1?t.location.href:t.URL||t.location.href},d.store={},d.idToState=d.idToState||{},d.stateToId=d.stateToId||{},d.urlToId=d.urlToId||{},d.storedStates=d.storedStates||[],d.savedStates=d.savedStates||[],d.normalizeStore=function(){d.store.idToState=d.store.idToState||{},d.store.urlToId=d.store.urlToId||{},d.store.stateToId=d.store.stateToId||{}},d.getState=function(t,e){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=!0);var i=d.getLastSavedState();return!i&&e&&(i=d.createStateObject()),t&&(i=d.cloneObject(i),i.url=i.cleanUrl||i.url),i},d.getIdByState=function(t){var e,i=d.extractId(t.url);if(!i)if(e=d.getStateString(t),"undefined"!=typeof d.stateToId[e])i=d.stateToId[e];else if("undefined"!=typeof d.store.stateToId[e])i=d.store.stateToId[e];else{for(;;)if(i=(new Date).getTime()+String(Math.random()).replace(/\D/g,""),"undefined"==typeof d.idToState[i]&&"undefined"==typeof d.store.idToState[i])break;d.stateToId[e]=i,d.idToState[i]=t}return i},d.normalizeState=function(t){var e,i;return t&&"object"==typeof t||(t={}),"undefined"!=typeof t.normalized?t:(t.data&&"object"==typeof t.data||(t.data={}),e={},e.normalized=!0,e.title=t.title||"",e.url=d.getFullUrl(t.url?t.url:d.getLocationHref()),e.hash=d.getShortUrl(e.url),e.data=d.cloneObject(t.data),e.id=d.getIdByState(e),e.cleanUrl=e.url.replace(/\??\&_suid.*/,""),e.url=e.cleanUrl,i=!d.isEmptyObject(e.data),(e.title||i)&&d.options.disableSuid!==!0&&(e.hash=d.getShortUrl(e.url).replace(/\??\&_suid.*/,""),/\?/.test(e.hash)||(e.hash+="?"),e.hash+="&_suid="+e.id),e.hashedUrl=d.getFullUrl(e.hash),(d.emulated.pushState||d.bugs.safariPoll)&&d.hasUrlDuplicate(e)&&(e.url=e.hashedUrl),e)}
8,d.createStateObject=function(t,e,i){var n={data:t,title:e,url:i};return n=d.normalizeState(n)},d.getStateById=function(t){t=String(t);var i=d.idToState[t]||d.store.idToState[t]||e;return i},d.getStateString=function(t){var e,i,n;return e=d.normalizeState(t),i={data:e.data,title:t.title,url:t.url},n=c.stringify(i)},d.getStateId=function(t){var e,i;return e=d.normalizeState(t),i=e.id},d.getHashByState=function(t){var e,i;return e=d.normalizeState(t),i=e.hash},d.extractId=function(t){var e,i,n,s;return s=t.indexOf("#")!=-1?t.split("#")[0]:t,i=/(.*)\&_suid=([0-9]+)$/.exec(s),n=i?i[1]||t:t,e=i?String(i[2]||""):"",e||!1},d.isTraditionalAnchor=function(t){var e=!/[\/\?\.]/.test(t);return e},d.extractState=function(t,e){var i,n,s=null;return e=e||!1,i=d.extractId(t),i&&(s=d.getStateById(i)),s||(n=d.getFullUrl(t),i=d.getIdByUrl(n)||!1,i&&(s=d.getStateById(i)),s||!e||d.isTraditionalAnchor(t)||(s=d.createStateObject(null,null,n))),s},d.getIdByUrl=function(t){var i=d.urlToId[t]||d.store.urlToId[t]||e;return i},d.getLastSavedState=function(){return d.savedStates[d.savedStates.length-1]||e},d.getLastStoredState=function(){return d.storedStates[d.storedStates.length-1]||e},d.hasUrlDuplicate=function(t){var e,i=!1;return e=d.extractState(t.url),i=e&&e.id!==t.id},d.storeState=function(t){return d.urlToId[t.url]=t.id,d.storedStates.push(d.cloneObject(t)),t},d.isLastSavedState=function(t){var e,i,n,s=!1;return d.savedStates.length&&(e=t.id,i=d.getLastSavedState(),n=i.id,s=e===n),s},d.saveState=function(t){return!d.isLastSavedState(t)&&(d.savedStates.push(d.cloneObject(t)),!0)},d.getStateByIndex=function(t){var e=null;return e="undefined"==typeof t?d.savedStates[d.savedStates.length-1]:t<0?d.savedStates[d.savedStates.length+t]:d.savedStates[t]},d.getCurrentIndex=function(){var t=null;return t=d.savedStates.length<1?0:d.savedStates.length-1},d.getHash=function(t){var e,i=d.getLocationHref(t);return e=d.getHashByUrl(i)},d.unescapeHash=function(t){var e=d.normalizeHash(t);return e=decodeURIComponent(e)},d.normalizeHash=function(t){var e=t.replace(/[^#]*#/,"").replace(/#.*/,"");return e},d.setHash=function(t,e){var i,s;return e!==!1&&d.busy()?(d.pushQueue({scope:d,callback:d.setHash,args:arguments,queue:e}),!1):(d.busy(!0),i=d.extractState(t,!0),i&&!d.emulated.pushState?d.pushState(i.data,i.title,i.url,!1):d.getHash()!==t&&(d.bugs.setHash?(s=d.getPageUrl(),d.pushState(null,null,s+"#"+t,!1)):n.location.hash=t),d)},d.escapeHash=function(e){var i=d.normalizeHash(e);return i=t.encodeURIComponent(i),d.bugs.hashEscape||(i=i.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),i},d.getHashByUrl=function(t){var e=String(t).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return e=d.unescapeHash(e)},d.setTitle=function(t){var e,i=t.title;i||(e=d.getStateByIndex(0),e&&e.url===t.url&&(i=e.title||d.options.initialTitle));try{n.getElementsByTagName("title")[0].innerHTML=i.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(s){}return n.title=i,d},d.queues=[],d.busy=function(t){if("undefined"!=typeof t?d.busy.flag=t:"undefined"==typeof d.busy.flag&&(d.busy.flag=!1),!d.busy.flag){a(d.busy.timeout);var e=function(){var t,i,n;if(!d.busy.flag)for(t=d.queues.length-1;t>=0;--t)i=d.queues[t],0!==i.length&&(n=i.shift(),d.fireQueueItem(n),d.busy.timeout=r(e,d.options.busyDelay))};d.busy.timeout=r(e,d.options.busyDelay)}return d.busy.flag},d.busy.flag=!1,d.fireQueueItem=function(t){return t.callback.apply(t.scope||d,t.args||[])},d.pushQueue=function(t){return d.queues[t.queue||0]=d.queues[t.queue||0]||[],d.queues[t.queue||0].push(t),d},d.queue=function(t,e){return"function"==typeof t&&(t={callback:t}),"undefined"!=typeof e&&(t.queue=e),d.busy()?d.pushQueue(t):d.fireQueueItem(t),d},d.clearQueue=function(){return d.busy.flag=!1,d.queues=[],d},d.stateChanged=!1,d.doubleChecker=!1,d.doubleCheckComplete=function(){return d.stateChanged=!0,d.doubleCheckClear(),d},d.doubleCheckClear=function(){return d.doubleChecker&&(a(d.doubleChecker),d.doubleChecker=!1),d},d.doubleCheck=function(t){return d.stateChanged=!1,d.doubleCheckClear(),d.bugs.ieDoubleCheck&&(d.doubleChecker=r(function(){return d.doubleCheckClear(),d.stateChanged||t(),!0},d.options.doubleCheckInterval)),d},d.safariStatePoll=function(){var e,i=d.extractState(d.getLocationHref());if(!d.isLastSavedState(i))return e=i,e||(e=d.createStateObject()),d.Adapter.trigger(t,"popstate"),d},d.back=function(t){return t!==!1&&d.busy()?(d.pushQueue({scope:d,callback:d.back,args:arguments,queue:t}),!1):(d.busy(!0),d.doubleCheck(function(){d.back(!1)}),p.go(-1),!0)},d.forward=function(t){return t!==!1&&d.busy()?(d.pushQueue({scope:d,callback:d.forward,args:arguments,queue:t}),!1):(d.busy(!0),d.doubleCheck(function(){d.forward(!1)}),p.go(1),!0)},d.go=function(t,e){var i;if(t>0)for(i=1;i<=t;++i)d.forward(e);else{if(!(t<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(i=-1;i>=t;--i)d.back(e)}return d},d.emulated.pushState){var m=function(){};d.pushState=d.pushState||m,d.replaceState=d.replaceState||m}else d.onPopState=function(e,i){var n,s,o=!1,r=!1;return d.doubleCheckComplete(),(n=d.getHash())?(s=d.extractState(n||d.getL
8ocationHref(),!0),s?d.replaceState(s.data,s.title,s.url,!1):(d.Adapter.trigger(t,"anchorchange"),d.busy(!1)),d.expectedStateId=!1,!1):(o=d.Adapter.extractEventData("state",e,i)||!1,r=o?d.getStateById(o):d.expectedStateId?d.getStateById(d.expectedStateId):d.extractState(d.getLocationHref()),r||(r=d.createStateObject(null,null,d.getLocationHref())),d.expectedStateId=!1,d.isLastSavedState(r)?(d.busy(!1),!1):(d.storeState(r),d.saveState(r),d.setTitle(r),d.Adapter.trigger(t,"statechange"),d.busy(!1),!0))},d.Adapter.bind(t,"popstate",d.onPopState),d.pushState=function(e,i,n,s){if(d.getHashByUrl(n)&&d.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(s!==!1&&d.busy())return d.pushQueue({scope:d,callback:d.pushState,args:arguments,queue:s}),!1;d.busy(!0);var o=d.createStateObject(e,i,n);return d.isLastSavedState(o)?d.busy(!1):(d.storeState(o),d.expectedStateId=o.id,p.pushState(o.id,o.title,o.url),d.Adapter.trigger(t,"popstate")),!0},d.replaceState=function(e,i,n,s){if(d.getHashByUrl(n)&&d.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(s!==!1&&d.busy())return d.pushQueue({scope:d,callback:d.replaceState,args:arguments,queue:s}),!1;d.busy(!0);var o=d.createStateObject(e,i,n);return d.isLastSavedState(o)?d.busy(!1):(d.storeState(o),d.expectedStateId=o.id,p.replaceState(o.id,o.title,o.url),d.Adapter.trigger(t,"popstate")),!0};if(o){try{d.store=c.parse(o.getItem("History.store"))||{}}catch(g){d.store={}}d.normalizeStore()}else d.store={},d.normalizeStore();d.Adapter.bind(t,"unload",d.clearAllIntervals),d.saveState(d.storeState(d.extractState(d.getLocationHref(),!0))),o&&(d.onUnload=function(){var t,e,i;try{t=c.parse(o.getItem("History.store"))||{}}catch(n){t={}}t.idToState=t.idToState||{},t.urlToId=t.urlToId||{},t.stateToId=t.stateToId||{};for(e in d.idToState)d.idToState.hasOwnProperty(e)&&(t.idToState[e]=d.idToState[e]);for(e in d.urlToId)d.urlToId.hasOwnProperty(e)&&(t.urlToId[e]=d.urlToId[e]);for(e in d.stateToId)d.stateToId.hasOwnProperty(e)&&(t.stateToId[e]=d.stateToId[e]);d.store=t,d.normalizeStore(),i=c.stringify(t);try{o.setItem("History.store",i)}catch(s){if(s.code!==DOMException.QUOTA_EXCEEDED_ERR)throw s;o.length&&(o.removeItem("History.store"),o.setItem("History.store",i))}},d.intervalList.push(l(d.onUnload,d.options.storeInterval)),d.Adapter.bind(t,"beforeunload",d.onUnload),d.Adapter.bind(t,"unload",d.onUnload)),d.emulated.pushState||(d.bugs.safariPoll&&d.intervalList.push(l(d.safariStatePoll,d.options.safariPollInterval)),"Apple Computer, Inc."!==s.vendor&&"Mozilla"!==(s.appCodeName||"")||(d.Adapter.bind(t,"hashchange",function(){d.Adapter.trigger(t,"popstate")}),d.getHash()&&d.Adapter.onDomLoad(function(){d.Adapter.trigger(t,"hashchange")})))},d.options&&d.options.delayInit||d.init()}(window),function(t){var e=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},isBlankString:function(t){return!t||/^\s*$/.test(t)},escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isArray:t.isArray,isFunction:t.isFunction,isObject:t.isPlainObject,isUndefined:function(t){return"undefined"==typeof t},toStr:function(t){return e.isUndefined(t)||null===t?"":t+""},bind:t.proxy,each:function(e,i){function n(t,e){return i(e,t)}t.each(e,n)},map:t.map,filter:t.grep,every:function(e,i){var n=!0;return e?(t.each(e,function(t,s){if(!(n=i.call(null,s,t,e)))return!1}),!!n):n},some:function(e,i){var n=!1;return e?(t.each(e,function(t,s){if(n=i.call(null,s,t,e))return!1}),!!n):n},mixin:t.extend,getUniqueId:function(){var t=0;return function(){return t++}}(),templatify:function(e){function i(){return String(e)}return t.isFunction(e)?e:i},defer:function(t){setTimeout(t,0)},debounce:function(t,e,i){var n,s;return function(){var o,r,a=this,l=arguments;return o=function(){n=null,i||(s=t.apply(a,l))},r=i&&!n,clearTimeout(n),n=setTimeout(o,e),r&&(s=t.apply(a,l)),s}},throttle:function(t,e){var i,n,s,o,r,a;return r=0,a=function(){r=new Date,s=null,o=t.apply(i,n)},function(){var l=new Date,h=e-(l-r);return i=this,n=arguments,h<=0?(clearTimeout(s),s=null,r=l,o=t.apply(i,n)):s||(s=setTimeout(a,h)),o}},noop:function(){}}}(),i="0.10.5",n=function(){"use strict";function t(t){return t=e.toStr(t),t?t.split(/\s+/):[]}function i(t){return t=e.toStr(t),t?t.split(/\W+/):[]}function n(t){return function(){var i=[].slice.call(arguments,0);return function(n){var s=[];return e.each(i,function(i){s=s.concat(t(e.toStr(n[i])))}),s}}}return{nonword:i,whitespace:t,obj:{nonword:n(i),whitespace:n(t)}}}(),s=function(){"use strict";function i(i){this.maxSize=e.isNumber(i)?i:100,this.reset(),this.maxSize<=0&&(this.set=this.get=t.noop)}function n(){this.head=this.tail=null}function s(t,e){this.key=t,this.val=e,this.prev=this.next=null}return e.mixin(i.prototype,{set:function(t,e){var i,n=this.list.tail;this.size>=this.maxSize&&(this.list.remove(n),delete this.hash[n.key]),(i=this.hash[t])?(i.val=e,this.list.moveToFront(i)):(i=new s(t,e),this.list.add(i),this.hash[t]=i,this.size++)},get:function(t){var e=this.hash[t];if(e)return this.list.moveToFront(e),e.val},reset:function(){this.size=0,this.hash={},this.list=new n}}),e.mixin(n.prototype,{add:function(t){this.head&&(t.next=this.head,this.head.prev=t),this.head=t,this.tail=this.tail||t},remove:function(t){t.prev?t.prev.next=t.next:this.head=t.next,t.next?t.next.prev=t.prev:this.tail=t.prev},moveToFront:function(t){this.remove(t),this.add(t)}}),i}(),o=function(){"use strict";function t(t){this.prefix=["__",t,"__"].join(""),this.ttlKey="__ttl__",this.keyMatcher=new RegExp("^"+e.escapeRegExChars(this.prefix))}function i(){return(new Date).getTime()}function n(t){return JSON.stringify(e.isUndefined(t)?null:t)}function s(t){return JSON.parse(t)}var o,r;try{o=window.localStorage,o.setItem("~~~","!"),o.removeItem("~~~")}catch(a){o=null}return r=o&&window.JSON?{_prefix:function(t){return this.prefix+t},_ttlKey:function(t){return this._prefix(t)+this.ttlKey},get:function(t){return this.isExpired(t)&&this.remove(t),s(o.getItem(this._prefix(t)))},set:function(t,s,r){return e.isNumber(r)?o.setItem(this._ttlKey(t),n(i()+r)):o.removeItem(this._ttlKey(t)),o.setItem(this._prefix(t),n(s))},remove:function(t){return o.removeItem(this._ttlKey(t)),o.removeItem(this._prefix(t)),this},clear:function(){var t,e,i=[],n=o.length;for(t=0;t<n;t++)(e=o.key(t)).match(this.keyMatcher)&&i.push(e.replace(this.keyMatcher,""));for(t=i.length;t--;)this.remove(i[t]);return this},isExpired:function(t){var n=s(o.getItem(this._ttlKey(t)));return!!(e.isNumber(n)&&i()>n)}}:{get:e.noop,set:e.noop,remove:e.noop,clear:e.noop,isExpired:e.noop},e.mixin(t.prototype,r),t}(),r=function(){"use strict";function i(e){e=e||{},this.cancelled=!1,this.lastUrl=null,this._send=e.transport?n(e.transport):t.ajax,this._get=e.rateLimiter?e.rateLimiter(this._get):this._get,this._cache=e.cache===!1?new s(0):l}function n(i){return function(n,s){function o(t){e.defer(function(){a.resolve(t)})}function r(t){e.defer(function(){a.reject(t)})}var a=t.Deferred();return i(n,s,o,r),a}}var o=0,r={},a=6,l=new s(10);
8return i.setMaxPendingRequests=function(t){a=t},i.resetCache=function(){l.reset()},e.mixin(i.prototype,{_get:function(t,e,i){function n(e){i&&i(null,e),c._cache.set(t,e)}function s(){i&&i(!0)}function l(){o--,delete r[t],c.onDeckRequestArgs&&(c._get.apply(c,c.onDeckRequestArgs),c.onDeckRequestArgs=null)}var h,c=this;this.cancelled||t!==this.lastUrl||((h=r[t])?h.done(n).fail(s):o<a?(o++,r[t]=this._send(t,e).done(n).fail(s).always(l)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(t,i,n){var s;return e.isFunction(i)&&(n=i,i={}),this.cancelled=!1,this.lastUrl=t,(s=this._cache.get(t))?e.defer(function(){n&&n(null,s)}):this._get(t,i,n),!!s},cancel:function(){this.cancelled=!0}}),i}(),a=function(){"use strict";function i(e){e=e||{},e.datumTokenizer&&e.queryTokenizer||t.error("datumTokenizer and queryTokenizer are both required"),this.datumTokenizer=e.datumTokenizer,this.queryTokenizer=e.queryTokenizer,this.reset()}function n(t){return t=e.filter(t,function(t){return!!t}),t=e.map(t,function(t){return t.toLowerCase()})}function s(){return{ids:[],children:{}}}function o(t){for(var e={},i=[],n=0,s=t.length;n<s;n++)e[t[n]]||(e[t[n]]=!0,i.push(t[n]));return i}function r(t,e){function i(t,e){return t-e}var n=0,s=0,o=[];t=t.sort(i),e=e.sort(i);for(var r=t.length,a=e.length;n<r&&s<a;)t[n]<e[s]?n++:t[n]>e[s]?s++:(o.push(t[n]),n++,s++);return o}return e.mixin(i.prototype,{bootstrap:function(t){this.datums=t.datums,this.trie=t.trie},add:function(t){var i=this;t=e.isArray(t)?t:[t],e.each(t,function(t){var o,r;o=i.datums.push(t)-1,r=n(i.datumTokenizer(t)),e.each(r,function(t){var e,n,r;for(e=i.trie,n=t.split("");r=n.shift();)e=e.children[r]||(e.children[r]=s()),e.ids.push(o)})})},get:function(t){var i,s,a=this;return i=n(this.queryTokenizer(t)),e.each(i,function(t){var e,i,n,o;if(s&&0===s.length)return!1;for(e=a.trie,i=t.split("");e&&(n=i.shift());)e=e.children[n];return e&&0===i.length?(o=e.ids.slice(0),void(s=s?r(s,o):o)):(s=[],!1)}),s?e.map(o(s),function(t){return a.datums[t]}):[]},reset:function(){this.datums=[],this.trie=s()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),i}(),l=function(){"use strict";function n(t){return t.local||null}function s(n){var s,o;return o={url:null,thumbprint:"",ttl:864e5,filter:null,ajax:{}},(s=n.prefetch||null)&&(s=e.isString(s)?{url:s}:s,s=e.mixin(o,s),s.thumbprint=i+s.thumbprint,s.ajax.type=s.ajax.type||"GET",s.ajax.dataType=s.ajax.dataType||"json",!s.url&&t.error("prefetch requires url to be set")),s}function o(i){function n(t){return function(i){return e.debounce(i,t)}}function s(t){return function(i){return e.throttle(i,t)}}var o,r;return r={url:null,cache:!0,wildcard:"%QUERY",replace:null,rateLimitBy:"debounce",rateLimitWait:300,send:null,filter:null,ajax:{}},(o=i.remote||null)&&(o=e.isString(o)?{url:o}:o,o=e.mixin(r,o),o.rateLimiter=/^throttle$/i.test(o.rateLimitBy)?s(o.rateLimitWait):n(o.rateLimitWait),o.ajax.type=o.ajax.type||"GET",o.ajax.dataType=o.ajax.dataType||"json",delete o.rateLimitBy,delete o.rateLimitWait,!o.url&&t.error("remote requires url to be set")),o}return{local:n,prefetch:s,remote:o}}();!function(i){"use strict";function s(e){e&&(e.local||e.prefetch||e.remote)||t.error("one of local, prefetch, or remote is required"),this.limit=e.limit||5,this.sorter=h(e.sorter),this.dupDetector=e.dupDetector||c,this.local=l.local(e),this.prefetch=l.prefetch(e),this.remote=l.remote(e),this.cacheKey=this.prefetch?this.prefetch.cacheKey||this.prefetch.url:null,this.index=new a({datumTokenizer:e.datumTokenizer,queryTokenizer:e.queryTokenizer}),this.storage=this.cacheKey?new o(this.cacheKey):null}function h(t){function i(e){return e.sort(t)}function n(t){return t}return e.isFunction(t)?i:n}function c(){return!1}var u,d;return u=i.Bloodhound,d={data:"data",protocol:"protocol",thumbprint:"thumbprint"},i.Bloodhound=s,s.noConflict=function(){return i.Bloodhound=u,s},s.tokenizers=n,e.mixin(s.prototype,{_loadPrefetch:function(e){function i(t){o.clear(),o.add(e.filter?e.filter(t):t),o._saveToStorage(o.index.serialize(),e.thumbprint,e.ttl)}var n,s,o=this;return(n=this._readFromStorage(e.thumbprint))?(this.index.bootstrap(n),s=t.Deferred().resolve()):s=t.ajax(e.url,e.ajax).done(i),s},_getFromRemote:function(t,e){function i(t,i){e(t?[]:o.remote.filter?o.remote.filter(i):i)}var n,s,o=this;if(this.transport)return t=t||"",s=encodeURIComponent(t),n=this.remote.replace?this.remote.replace(this.remote.url,t):this.remote.url.replace(this.remote.wildcard,s),this.transport.get(n,this.remote.ajax,i)},_cancelLastRemoteRequest:function(){this.transport&&this.transport.cancel()}
8,_saveToStorage:function(t,e,i){this.storage&&(this.storage.set(d.data,t,i),this.storage.set(d.protocol,location.protocol,i),this.storage.set(d.thumbprint,e,i))},_readFromStorage:function(t){var e,i={};return this.storage&&(i.data=this.storage.get(d.data),i.protocol=this.storage.get(d.protocol),i.thumbprint=this.storage.get(d.thumbprint)),e=i.thumbprint!==t||i.protocol!==location.protocol,i.data&&!e?i.data:null},_initialize:function(){function i(){s.add(e.isFunction(o)?o():o)}var n,s=this,o=this.local;return n=this.prefetch?this._loadPrefetch(this.prefetch):t.Deferred().resolve(),o&&n.done(i),this.transport=this.remote?new r(this.remote):null,this.initPromise=n.promise()},initialize:function(t){return!this.initPromise||t?this._initialize():this.initPromise},add:function(t){this.index.add(t)},get:function(t,i){function n(t){var n=o.slice(0);e.each(t,function(t){var i;return i=e.some(n,function(e){return s.dupDetector(t,e)}),!i&&n.push(t),n.length<s.limit}),i&&i(s.sorter(n))}var s=this,o=[],r=!1;o=this.index.get(t),o=this.sorter(o).slice(0,this.limit),o.length<this.limit?r=this._getFromRemote(t,n):this._cancelLastRemoteRequest(),r||(o.length>0||!this.transport)&&i&&i(o)},clear:function(){this.index.reset()},clearPrefetchCache:function(){this.storage&&this.storage.clear()},clearRemoteCache:function(){this.transport&&r.resetCache()}
8,ttAdapter:function(){return e.bind(this.get,this)}}),s}(this);var h=function(){return{wrapper:'<span class="twitter-typeahead"></span>',dropdown:'<span class="tt-dropdown-menu"></span>',dataset:'<div class="tt-dataset-%CLASS%"></div>',suggestions:'<span class="tt-suggestions"></span>',suggestion:'<div class="tt-suggestion"></div>'}}(),c=function(){"use strict";var t={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"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return e.isMsie()&&e.mixin(t.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),e.isMsie()&&e.isMsie()<=7&&e.mixin(t.input,{marginTop:"-1px"}),t}(),u=function(){"use strict";function i(e){e&&e.el||t.error("EventBus initialized without el"),this.$el=t(e.el)}var n="typeahead:";return e.mixin(i.prototype,{trigger:function(t){var e=[].slice.call(arguments,1);this.$el.trigger(n+t,e)}}),i}(),d=function(){"use strict";function t(t,e,i,n){var s;if(!i)return this;for(e=e.split(l),i=n?a(i,n):i,this._callbacks=this._callbacks||{};s=e.shift();)this._callbacks[s]=this._callbacks[s]||{sync:[],async:[]},this._callbacks[s][t].push(i);return this}function e(e,i,n){return t.call(this,"async",e,i,n)}function i(e,i,n){return t.call(this,"sync",e,i,n)}function n(t){var e;if(!this._callbacks)return this;for(t=t.split(l);e=t.shift();)delete this._callbacks[e];return this}function s(t){var e,i,n,s,r;if(!this._callbacks)return this;for(t=t.split(l),n=[].slice.call(arguments,1);(e=t.shift())&&(i=this._callbacks[e]);)s=o(i.sync,this,[e].concat(n)),r=o(i.async,this,[e].concat(n)),s()&&h(r);return this}function o(t,e,i){function n(){for(var n,s=0,o=t.length;!n&&s<o;s+=1)n=t[s].apply(e,i)===!1;return!n}return n}function r(){var t;return t=window.setImmediate?function(t){setImmediate(function(){t()})}:function(t){setTimeout(function(){t()},0)}}function a(t,e){return t.bind?t.bind(e):function(){t.apply(e,[].slice.call(arguments,0))}}var l=/\s+/,h=r();return{onSync:i,onAsync:e,off:n,trigger:s}}(),p=function(t){"use strict";function i(t,i,n){for(var s,o=[],r=0,a=t.length;r<a;r++)o.push(e.escapeRegExChars(t[r]));return s=n?"\\b("+o.join("|")+")\\b":"("+o.join("|")+")",i?new RegExp(s):new RegExp(s,"i")}var n={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(s){function o(e){var i,n,o;return(i=a.exec(e.data))&&(o=t.createElement(s.tagName),s.className&&(o.className=s.className),n=e.splitText(i.index),n.splitText(i[0].length),o.appendChild(n.cloneNode(!0)),e.parentNode.replaceChild(o,n)),!!i}function r(t,e){for(var i,n=3,s=0;s<t.childNodes.length;s++)i=t.childNodes[s],i.nodeType===n?s+=e(i)?1:0:r(i,e)}var a;s=e.mixin({},n,s),s.node&&s.pattern&&(s.pattern=e.isArray(s.pattern)?s.pattern:[s.pattern],a=i(s.pattern,s.caseSensitive,s.wordsOnly),r(s.node,o))}}(window.document),f=function(){"use strict";function i(i){var s,o,a,l,h=this;i=i||{},i.input||t.error("input is missing"),s=e.bind(this._onBlur,this),o=e.bind(this._onFocus,this),a=e.bind(this._onKeydown,this),l=e.bind(this._onInput,this),this.$hint=t(i.hint),this.$input=t(i.input).on("blur.tt",s).on("focus.tt",o).on("keydown.tt",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=e.noop),e.isMsie()?this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(t){r[t.which||t.keyCode]||e.defer(e.bind(h._onInput,h,t))}):this.$input.on("input.tt",l),this.query=this.$input.val(),this.$overflowHelper=n(this.$input)}function n(e){return t('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:e.css("font-family"),fontSize:e.css("font-size"),fontStyle:e.css("font-style"),fontVariant:e.css("font-variant"),fontWeight:e.css("font-weight"),wordSpacing:e.css("word-spacing"),letterSpacing:e.css("letter-spacing"),textIndent:e.css("text-indent"),textRendering:e.css("text-rendering"),textTransform:e.css("text-transform")}).insertAfter(e)}function s(t,e){return i.normalizeQuery(t)===i.normalizeQuery(e)}function o(t){return t.altKey||t.ctrlKey||t.metaKey||t.shiftKey}var r;return r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(t){return(t||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},e.mixin(i.prototype,d,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(t){var e=r[t.which||t.keyCode];this._managePreventDefault(e,t),e&&this._shouldTrigger(e,t)&&this.trigger(e+"Keyed",t)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(t,e){var i,n,s;switch(t){case"tab":n=this.getHint(),s=this.getInputValue(),i=n&&n!==s&&!o(e);break;case"up":case"down":i=!o(e);break;default:i=!1}i&&e.preventDefault()},_shouldTrigger:function(t,e){var i;switch(t){case"tab":i=!o(e);break;default:i=!0}return i},_checkInputValue:function(){var t,e,i;t=this.getInputValue(),e=s(t,this.query),i=!!e&&this.query.length!==t.length,this.query=t,e?i&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(t){this.query=t},getInputValue:function(){return this.$input.val()},setInputValue:function(t,e){this.$input.val(t),e?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(t){this.$hint.val(t)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var t,e,i,n;
8t=this.getInputValue(),e=this.getHint(),i=t!==e&&0===e.indexOf(t),n=""!==t&&i&&!this.hasOverflow(),!n&&this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var t=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=t},isCursorAtEnd:function(){var t,i,n;return t=this.$input.val().length,i=this.$input[0].selectionStart,e.isNumber(i)?i===t:!document.selection||(n=document.selection.createRange(),n.moveStart("character",-t),t===n.text.length)},destroy:function(){this.$hint.off(".tt"),this.$input.off(".tt"),this.$hint=this.$input=this.$overflowHelper=null}}),i}(),m=function(){"use strict";function i(i){i=i||{},i.templates=i.templates||{},i.source||t.error("missing source"),i.name&&!o(i.name)&&t.error("invalid dataset name: "+i.name),this.query=null,this.highlight=!!i.highlight,this.name=i.name||e.getUniqueId(),this.source=i.source,this.displayFn=n(i.display||i.displayKey),this.templates=s(i.templates,this.displayFn),this.$el=t(h.dataset.replace("%CLASS%",this.name))}function n(t){function i(e){return e[t]}return t=t||"value",e.isFunction(t)?t:i}function s(t,i){function n(t){return"<p>"+i(t)+"</p>"}return{empty:t.empty&&e.templatify(t.empty),header:t.header&&e.templatify(t.header),footer:t.footer&&e.templatify(t.footer),suggestion:t.suggestion||n}}function o(t){return/^[_a-zA-Z0-9-]+$/.test(t)}var r="ttDataset",a="ttValue",l="ttDatum";return i.extractDatasetName=function(e){return t(e).data(r)},i.extractValue=function(e){return t(e).data(a)},i.extractDatum=function(e){return t(e).data(l)},e.mixin(i.prototype,d,{_render:function(i,n){function s(){return m.templates.empty({query:i,isEmpty:!0})}function o(){function s(e){var i;return i=t(h.suggestion).append(m.templates.suggestion(e)).data(r,m.name).data(a,m.displayFn(e)).data(l,e),i.children().each(function(){t(this).css(c.suggestionChild)}),i}var o,u;return o=t(h.suggestions).css(c.suggestions),u=e.map(n,s),o.append.apply(o,u),m.highlight&&p({className:"tt-highlight",node:o[0],pattern:i}),o}function u(){return m.templates.header({query:i,isEmpty:!f})}function d(){return m.templates.footer({query:i,isEmpty:!f})}if(this.$el){var f,m=this;this.$el.empty(),f=n&&n.length,!f&&this.templates.empty?this.$el.html(s()).prepend(m.templates.header?u():null).append(m.templates.footer?d():null):f&&this.$el.html(o()).prepend(m.templates.header?u():null).append(m.templates.footer?d():null),this.trigger("rendered")}},getRoot:function(){return this.$el},update:function(t){
9function e(e){i.canceled||t!==i.query||i._render(t,e)}var i=this;this.query=t,this.canceled=!1,this.source(t,e)},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),i}(),g=function(){"use strict";function i(i){var s,o,r,a=this;i=i||{},i.menu||t.error("menu is required"),this.isOpen=!1,this.isEmpty=!0,this.datasets=e.map(i.datasets,n),s=e.bind(this._onSuggestionClick,this),o=e.bind(this._onSuggestionMouseEnter,this),r=e.bind(this._onSuggestionMouseLeave,this),this.$menu=t(i.menu).on("click.tt",".tt-suggestion",s).on("mouseenter.tt",".tt-suggestion",o).on("mouseleave.tt",".tt-suggestion",r),e.each(this.datasets,function(t){a.$menu.append(t.getRoot()),t.onSync("rendered",a._onRendered,a)})}function n(t){return new m(t)}return e.mixin(i.prototype,d,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",t(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(t(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){function t(t){return t.isEmpty()}this.isEmpty=e.every(this.datasets,t),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block")},_getSuggestions:function(){return this.$menu.find(".tt-suggestion")},_getCursor:function(){return this.$menu.find(".tt-cursor").first()},_setCursor:function(t,e){t.first().addClass("tt-cursor"),!e&&this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("tt-cursor")},_moveCursor:function(t){var e,i,n,s;if(this.isOpen){if(i=this._getCursor(),e=this._getSuggestions(),this._removeCursor(
9),n=e.index(i)+t,n=(n+1)%(e.length+1)-1,n===-1)return void this.trigger("cursorRemoved");n<-1&&(n=e.length-1),this._setCursor(s=e.eq(n)),this._ensureVisible(s)}},_ensureVisible:function(t){var e,i,n,s;e=t.position().top,i=e+t.outerHeight(!0),n=this.$menu.scrollTop(),s=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),e<0?this.$menu.scrollTop(n+e):s<i&&this.$menu.scrollTop(n+(i-s))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,!this.isEmpty&&this._show(),this.trigger("opened"))},setLanguageDirection:function(t){this.$menu.css("ltr"===t?c.ltr:c.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(t){var e=null;return t.length&&(e={raw:m.extractDatum(t),value:m.extractValue(t),datasetName:m.extractDatasetName(t)}),e},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(t){function i(e){e.update(t)}e.each(this.datasets,i)},empty:function(){function t(t){t.clear()}e.each(this.datasets,t),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){function t(t){t.destroy()}this.$menu.off(".tt"),this.$menu=null,e.each(this.datasets,t)}}),i}(),v=function(){"use strict";function i(i){var s,o,r;i=i||{},i.input||t.error("missing input"),this.isActivated=!1,this.autoselect=!!i.autoselect,this.minLength=e.isNumber(i.minLength)?i.minLength:1,this.$node=n(i.input,i.withHint),s=this.$node.find(".tt-dropdown-menu"),o=this.$node.find(".tt-input"),r=this.$node.find(".tt-hint"),o.on("blur.tt",function(t){var i,n,r;i=document.activeElement,n=s.is(i),r=s.has(i).length>0,e.isMsie()&&(n||r)&&(t.preventDefault(),t.stopImmediatePropagation(),e.defer(function(){o.focus()}))}),s.on("mousedown.tt",function(t){t.preventDefault()}),this.eventBus=i.eventBus||new u({el:o}),this.dropdown=new g({menu:s,datasets:i.datasets}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new f({input:o,hint:r}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._setLanguageDirection()}function n(e,i){var n,o,a,l;n=t(e),o=t(h.wrapper).css(c.wrapper),a=t(h.dropdown).css(c.dropdown),l=n.clone().css(c.hint).css(s(n)),l.val("").removeData().addClass("tt-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),n.data(r,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")}),n.addClass("tt-input").attr({autocomplete:"off",spellcheck:!1}).css(i?c.input:c.inputWithNoHint);try{!n.attr("dir")&&n.attr("dir","auto")}catch(u){}return n.wrap(o).parent().prepend(i?l:null).append(a)}function s(t){return{backgroundAttachment:t.css("background-attachment"),backgroundClip:t.css("background-clip"),backgroundColor:t.css("background-color"),backgroundImage:t.css("background-image"),backgroundOrigin:t.css("background-origin"),backgroundPosition:t.css("background-position"),backgroundRepeat:t.css("background-repeat"),backgroundSize:t.css("background-size")}}function o(t){var i=t.find(".tt-input");e.each(i.data(r),function(t,n){e.isUndefined(t)?i.removeAttr(n):i.attr(n,t)}),i.detach().removeData(r).removeClass("tt-input").insertAfter(t),t.remove()}var r="ttAttrs";return e.mixin(i.prototype,{_onSuggestionClicked:function(t,e){var i;(i=this.dropdown.getDatumForSuggestion(e))&&this._select(i)},_onCursorMoved:function(){var t=this.dropdown.getDatumForCursor(
9);this.input.setInputValue(t.value,!0),this.eventBus.trigger("cursorchanged",t.raw,t.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint()},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){this.isActivated=!0,this.dropdown.open()},_onBlurred:function(){this.isActivated=!1,this.dropdown.empty(),this.dropdown.close()},_onEnterKeyed:function(t,e){var i,n;i=this.dropdown.getDatumForCursor(),n=this.dropdown.getDatumForTopSuggestion(),i?(this._select(i),e.preventDefault()):this.autoselect&&n&&(this._select(n),e.preventDefault())},_onTabKeyed:function(t,e){var i;(i=this.dropdown.getDatumForCursor())?(this._select(i),e.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var t=this.input.getQuery();this.dropdown.isEmpty&&t.length>=this.minLength?this.dropdown.update(t):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(t,e){this.input.clearHintIfInvalid(),e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var t;this.dir!==(t=this.input.getLanguageDirection())&&(this.dir=t,this.$node.css("direction",t),this.dropdown.setLanguageDirection(t))},_updateHint:function(){var t,i,n,s,o,r;t=this.dropdown.getDatumForTopSuggestion(),t&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(i=this.input.getInputValue(),n=f.normalizeQuery(i),s=e.escapeRegExChars(n),o=new RegExp("^(?:"+s+")(.+$)","i"),r=o.exec(t.value),r?this.input.setHint(i+r[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(t){var e,i,n,s;e=this.input.getHint(),i=this.input.getQuery(),n=t||this.input.isCursorAtEnd(),e&&i!==e&&n&&(s=this.dropdown.getDatumForTopSuggestion(),s&&this.input.setInputValue(s.value),this.eventBus.trigger("autocompleted",s.raw,s.datasetName))},_select:function(t){this.input.setQuery(t.value),this.input.setInputValue(t.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",t.raw,t.datasetName),this.dropdown.close(),e.defer(e.bind(this.dropdown.empty,this.dropdown))},open:function(){this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(t){t=e.toStr(t),this.isActivated?this.input.setInputValue(t):(this.input.setQuery(t),this.input.setInputValue(t,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){this.input.destroy(),this.dropdown.destroy(),o(this.$node),this.$node=null}}),i}();!function(){"use strict";var i,n,s;i=t.fn.typeahead,n="ttTypeahead",s={initialize:function(i,s){function o(){var o,r,a=t(this);e.each(s,function(t){t.highlight=!!i.highlight}),r=new v({input:a,eventBus:o=new u({el:a}),withHint:!!e.isUndefined(i.hint)||!!i.hint,minLength:i.minLength,autoselect:i.autoselect,datasets:s}),a.data(n,r)}return s=e.isArray(s)?s:[].slice.call(arguments,1),i=i||{},this.each(o)},open:function(){function e(){var e,i=t(this);(e=i.data(n))&&e.open()}return this.each(e)},close:function(){function e(){var e,i=t(this);(e=i.data(n))&&e.close()}return this.each(e)},val:function(e){function i(){var i,s=t(this);(i=s.data(n))&&i.setVal(e)}function s(t){var e,i;return(e=t.data(n))&&(i=e.getVal()),i}return arguments.length?this.each(i):s(this.first())},destroy:function(){function e(){var e,i=t(this);(e=i.data(n))&&(e.destroy(),i.removeData(n))}return this.each(e)}},t.fn.typeahead=function(e){var i;return s[e]&&"initialize"!==e?(i=this.filter(function(){return!!t(this).data(n)}
9),s[e].apply(i,[].slice.call(arguments,1))):s.initialize.apply(this,arguments)},t.fn.typeahead.noConflict=function(){return t.fn.typeahead=i,this}}()}(window.jQuery),function(t,e){if("function"==typeof define&&define.amd)define(["moment","jquery","exports"],function(i,n,s){t.daterangepicker=e(t,s,i,n)});else if("undefined"!=typeof exports){var i,n=require("moment");try{i=require("jquery")}catch(s){if(i=window.jQuery,!i)throw new Error("jQuery dependency not found")}e(t,exports,n,i)}else t.daterangepicker=e(t,{},t.moment||moment,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,n){var s=function(t,e,i){this.parentEl="body",this.element=n(t),this.isShowing=!1;var s='<div class="daterangepicker dropdown-menu"><div class="calendar first left"></div><div class="calendar second right"></div><div class="ranges"><div class="range_inputs"><div class="daterangepicker_start_input"><label for="daterangepicker_start"></label><input class="input-mini" type="text" name="daterangepicker_start" value="" /></div><div class="daterangepicker_end_input"><label for="daterangepicker_end"></label><input class="input-mini" type="text" name="daterangepicker_end" value="" /></div><button class="applyBtn" disabled="disabled" type="button"></button>&nbsp;<button class="cancelBtn" type="button"></button></div></div></div>';"object"==typeof e&&null!==e||(e={}),this.parentEl=n("object"==typeof e&&e.parentEl&&n(e.parentEl).length?e.parentEl:this.parentEl),this.container=n(s).appendTo(this.parentEl),e=n.extend(this.element.data(),e),this.setOptions(e,i),this.container.find(".calendar").on("click.daterangepicker",".prev",n.proxy(this.clickPrev,this)).on("click.daterangepicker",".next",n.proxy(this.clickNext,this)).on("click.daterangepicker","td.available",n.proxy(this.clickDate,this)).on("mouseenter.daterangepicker","td.available",n.proxy(this.hoverDate,this)).on("mouseleave.daterangepicker","td.available",n.proxy(this.updateFormInputs,this)).on("change.daterangepicker","select.yearselect",n.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.monthselect",n.proxy(this.updateMonthYear,this)).on("change.daterangepicker","select.hourselect,select.minuteselect,select.secondselect,select.ampmselect",n.proxy(this.updateTime,this)),this.container.find(".ranges").on("click.daterangepicker","button.applyBtn",n.proxy(this.clickApply,this)).on("click.daterangepicker","button.cancelBtn",n.proxy(this.clickCancel,this)).on("click.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",n.proxy(this.showCalendars,this)).on("change.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",n.proxy(this.inputsChanged,this)).on("keydown.daterangepicker",".daterangepicker_start_input,.daterangepicker_end_input",n.proxy(this.inputsKeydown,this)).on("click.daterangepicker","li",n.proxy(this.clickRange,this)).on("mouseenter.daterangepicker","li",n.proxy(this.enterRange,this)).on("mouseleave.daterangepicker","li",n.proxy(this.updateFormInputs,this)),this.element.is("input")?this.element.on({"click.daterangepicker":n.proxy(this.show,this),"focus.daterangepicker":n.proxy(this.show,this),"keyup.daterangepicker":n.proxy(this.updateFromControl,this),"ke
9ydown.daterangepicker":n.proxy(this.keydown,this)}):this.element.on("click.daterangepicker",n.proxy(this.toggle,this))};s.prototype={constructor:s,setOptions:function(t,e){if(this.startDate=i().startOf("day"),this.endDate=i().endOf("day"),this.timeZone=i().utcOffset(),this.minDate=!1,this.maxDate=!1,this.dateLimit=!1,this.showDropdowns=!1,this.showWeekNumbers=!1,this.timePicker=!1,this.timePickerSeconds=!1,this.timePickerIncrement=30,this.timePicker12Hour=!0,this.autoApply=!1,this.singleDatePicker=!1,this.ranges={},this.opens="right",this.element.hasClass("pull-right")&&(this.opens="left"),this.drops="down",this.element.hasClass("dropup")&&(this.drops="up"),this.buttonClasses=["btn","btn-small btn-sm"],this.applyClass="btn-success",this.cancelClass="btn-default",this.format="MM/DD/YYYY",this.separator=" - ",this.locale={applyLabel:"Apply",cancelLabel:"Cancel",fromLabel:"From",toLabel:"To",weekLabel:"W",customRangeLabel:"Custom Range",daysOfWeek:i.weekdaysMin(),monthNames:i.monthsShort(),firstDay:i.localeData()._week.dow},this.cb=function(){},"string"==typeof t.format&&(this.format=t.format),"string"==typeof t.separator&&(this.separator=t.separator),"string"==typeof t.startDate&&(this.startDate=i(t.startDate,this.format)),"string"==typeof t.endDate&&(this.endDate=i(t.endDate,this.format)),"string"==typeof t.minDate&&(this.minDate=i(t.minDate,this.format)),"string"==typeof t.maxDate&&(this.maxDate=i(t.maxDate,this.format)),"object"==typeof t.startDate&&(this.startDate=i(t.startDate)),"object"==typeof t.endDate&&(this.endDate=i(t.endDate)),"object"==typeof t.minDate&&(this.minDate=i(t.minDate)),"object"==typeof t.maxDate&&(this.maxDate=i(t.maxDate)),"string"==typeof t.applyClass&&(this.applyClass=t.applyClass),"string"==typeof t.cancelClass&&(this.cancelClass=t.cancelClass),"object"==typeof t.dateLimit&&(this.dateLimit=t.dateLimit),"object"==typeof t.locale&&("object"==typeof t.locale.daysOfWeek&&(this.locale.daysOfWeek=t.locale.daysOfWeek.slice()),"object"==typeof t.locale.monthNames&&(this.locale.monthNames=t.locale.monthNames.slice()),"number"==typeof t.locale.firstDay&&(this.locale.firstDay=t.locale.firstDay),"string"==typeof t.locale.applyLabel&&(this.locale.applyLabel=t.locale.applyLabel),"string"==typeof t.locale.cancelLabel&&(this.locale.cancelLabel=t.locale.cancelLabel),"string"==typeof t.locale.fromLabel&&(this.locale.fromLabel=t.locale.fromLabel),"string"==typeof t.locale.toLabel&&(this.locale.toLabel=t.locale.toLabel),"string"==typeof t.locale.weekLabel&&(this.locale.weekLabel=t.locale.weekLabel),"string"==typeof t.locale.customRangeLabel&&(this.locale.customRangeLabel=t.locale.customRangeLabel)),"string"==typeof t.opens&&(this.opens=t.opens),"string"==typeof t.drops&&(this.drops=t.drops),"boolean"==typeof t.showWeekNumbers&&(this.showWeekNumbers=t.showWeekNumbers),"string"==typeof t.buttonClasses&&(this.buttonClasses=[t.buttonClasses]),"object"==typeof t.buttonClasses&&(this.buttonClasses=t.buttonClasses),"boolean"==typeof t.showDropdowns&&(this.showDropdowns=t.showDropdowns),"boolean"==typeof t.singleDatePicker&&(this.singleDatePicker=t.singleDatePicker,this.singleDatePicker&&(this.endDate=this.startDate.clone())),"boolean"==typeof t.timePicker&&(this.timePicker=t.timePicker),"boolean"==typeof t.timePickerSeconds&&(this.timePickerSeconds=t.timePickerSeconds),"number"==typeof t.timePickerIncrement&&(this.timePickerIncrement=t.timePickerIncrement),"boolean"==typeof t.timePicker12Hour&&(this.timePicker12Hour=t.timePicker12Hour),"boolean"==typeof t.autoApply&&(this.autoApply=t.autoApply,this.autoApply&&this.container.find(".applyBtn, .cancelBtn").addClass("hide")),0!=this.locale.firstDay)for(var s=this.locale.firstDay;s>0;)this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift()),s--;var o,r,a;
9if("undefined"==typeof t.startDate&&"undefined"==typeof t.endDate&&n(this.element).is("input[type=text]")){var l=n(this.element).val(),h=l.split(this.separator);o=r=null,2==h.length?(o=i(h[0],this.format),r=i(h[1],this.format)):this.singleDatePicker&&""!==l&&(o=i(l,this.format),r=i(l,this.format)),null!==o&&null!==r&&(this.startDate=o,this.endDate=r)}if("string"==typeof t.timeZone||"number"==typeof t.timeZone?("string"==typeof t.timeZone&&"undefined"!=typeof i.tz?this.timeZone=i.tz.zone(t.timeZone).parse(new Date)*-1:this.timeZone=t.timeZone,this.startDate.utcOffset(this.timeZone),this.endDate.utcOffset(this.timeZone)):this.timeZone=i(this.startDate).utcOffset(),"object"==typeof t.ranges){for(a in t.ranges)o="string"==typeof t.ranges[a][0]?i(t.ranges[a][0],this.format):i(t.ranges[a][0]),r="string"==typeof t.ranges[a][1]?i(t.ranges[a][1],this.format):i(t.ranges[a][1]),this.minDate&&o.isBefore(this.minDate)&&(o=i(this.minDate)),this.maxDate&&r.isAfter(this.maxDate)&&(r=i(this.maxDate)),this.minDate&&r.isBefore(this.minDate)||this.maxDate&&o.isAfter(this.maxDate)||(this.ranges[a]=[o,r]);var c="<ul>";for(a in this.ranges)c+="<li>"+a+"</li>";c+="<li>"+this.locale.customRangeLabel+"</li>",c+="</ul>",this.container.find(".ranges ul").remove(),this.container.find(".ranges").prepend(c)}if("function"==typeof e&&(this.cb=e),this.timePicker||(this.startDate=this.startDate.startOf("day"),this.endDate=this.endDate.endOf("day")),this.singleDatePicker?(this.opens=this.opens||"right",this.container.addClass("single"),this.container.find(".calendar.right").show(),this.container.find(".calendar.left").hide(),this.timePicker?this.container.find(".ranges .daterangepicker_start_input, .ranges .daterangepicker_end_input").hide():this.container.find(".ranges").hide(),this.container.find(".calendar.right").hasClass("single")||this.container.find(".calendar.right").addClass("single")):(this.container.removeClass("single"),this.container.find(".calendar.right").removeClass("single"),this.container.find(".ranges").show()),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.oldChosenLabel=this.chosenLabel,this.leftCalendar={month:i([this.startDate.year(),this.startDate.month(),1,this.startDate.hour(),this.startDate.minute(),this.startDate.second()]),calendar:[]},this.rightCalendar={month:i([this.endDate.year(),this.endDate.month(),1,this.endDate.hour(),this.endDate.minute(),this.endDate.second()]),calendar:[]},"right"==this.opens||"center"==this.opens){var u=this.container.find(".calendar.first"),d=this.container.find(".calendar.second");d.hasClass("single")&&(d.removeClass("single"),u.addClass("single")),u.removeClass("left").addClass("right"),d.removeClass("right").addClass("left"),this.singleDatePicker&&(u.show(),d.hide())}"undefined"!=typeof t.ranges||this.singleDatePicker||this.container.addClass("show-calendar"),this.container.removeClass("opensleft opensright").addClass("opens"+this.opens),this.updateView(),this.updateCalendars();var p=this.container;n.each(this.buttonClasses,function(t,e){p.find("button").addClass(e)}),this.container.find(".daterangepicker_start_input label").html(this.locale.fromLabel),this.container.find(".daterangepicker_end_input label").html(this.locale.toLabel),this.applyClass.length&&this.container.find(".applyBtn").addClass(this.applyClass),this.cancelClass.length&&this.container.find(".cancelBtn").addClass(this.cancelClass),this.container.find(".applyBtn").html(this.locale.applyLabel),this.container.find(".cancelBtn").html(this.locale.cancelLabel)},setStartDate:function(t){"string"==typeof t&&(this.startDate=i(t,this.format).utcOffset(this.timeZone)),"object"==typeof t&&(this.startDate=i(t)),this.timePicker||(this.startDate=this.startDate.startOf("day")),this.oldStartDate=this.startDate.clone(),this.updateView(),this.updateCalendars(),this.updateInputText()},setEndDate:function(t){"string"==typeof t&&(this.endDate=i(t,this.format).utcOffset(this.timeZone)),"object"==typeof t&&(this.endDate=i(t)),this.timePicker||(this.endDate=this.endDate.endOf("day")),this.oldEndDate=this.endDate.clone(),this.updateView(),this.updateCalendars(),this.updateInputText()},updateView:function(){this.leftCalendar.month.month(this.startDate.month()).year
9(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()),this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()),this.updateFormInputs()},updateFormInputs:function(){this.container.find("input[name=daterangepicker_start]").val(this.startDate.format(this.format)),this.container.find("input[name=daterangepicker_end]").val(this.endDate.format(this.format)),this.startDate.isSame(this.endDate)||this.startDate.isBefore(this.endDate)?this.container.find("button.applyBtn").removeAttr("disabled"):this.container.find("button.applyBtn").attr("disabled","disabled")},updateFromControl:function(){if(this.element.is("input")&&this.element.val().length){var t=this.element.val().split(this.separator),e=null,n=null;2===t.length&&(e=i(t[0],this.format).utcOffset(this.timeZone),n=i(t[1],this.format).utcOffset(this.timeZone)),(this.singleDatePicker||null===e||null===n)&&(e=i(this.element.val(),this.format).utcOffset(this.timeZone),n=e),n.isBefore(e)||(this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.startDate=e,this.endDate=n,this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.notify(),this.updateCalendars())}},keydown:function(t){9!==t.keyCode&&13!==t.keyCode||this.hide()},notify:function(){this.updateView(),this.updateInputText(),this.cb(this.startDate,this.endDate,this.chosenLabel)},move:function(){var t,e={top:0,left:0},i=n(window).width();this.parentEl.is("body")||(e={top:this.parentEl.offset().top-this.parentEl.scrollTop(),left:this.parentEl.offset().left-this.parentEl.scrollLeft()},i=this.parentEl[0].clientWidth+this.parentEl.offset().left),t="up"==this.drops?this.element.offset().top-this.container.outerHeight()-e.top:this.element.offset().top+this.element.outerHeight()-e.top,this.container["up"==this.drops?"addClass":"removeClass"]("dropup"),"left"==this.opens?(this.container.css({top:t,right:i-this.element.offset().left-this.element.outerWidth(),left:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):"center"==this.opens?(this.container.css({top:t,left:this.element.offset().left-e.left+this.element.outerWidth()/2-this.container.outerWidth()/2,right:"auto"}),this.container.offset().left<0&&this.container.css({right:"auto",left:9})):(this.container.css({top:t,left:this.element.offset().left-e.left,right:"auto"}),this.container.offset().left+this.container.outerWidth()>n(window).width()&&this.container.css({left:"auto",right:0}))},toggle:function(t){this.element.hasClass("active")?this.hide():this.show()},show:function(t){this.isShowing||(this.element.addClass("active"),this.container.show(),this.move(),this._outsideClickProxy=n.proxy(function(t){this.outsideClick(t)},this),n(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),this.isShowing=!0,this.element.trigger("show.daterangepicker",this))},outsideClick:function(t){var e=n(t.target);"focusin"==t.type||e.closest(this.element).length||e.closest(this.container).length||e.closest(".calendar-date").length||this.hide()},hide:function(t){this.isShowing&&(n(document).off(".daterangepicker"),this.element.removeClass("active"),this.container.hide(),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.notify(),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.isShowing=!1,this.element.trigger("hide.daterangepicker",this))},enterRange:function(t){var e=t.target.innerHTML;if(e==this.locale.customRangeLabel)this.updateView();else{var i=this.ranges[e];this.container.find("input[name=daterangepicker_start]").val(i[0].format(this.format)),this.container.find("input[name=daterangepicker_end]").val(i[1].format(this.format))}},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},inputsChanged:function(t){var e=n(t.target),s=i(e.val(),this.format);if(s.isValid()){var o,r;if("daterangepicker_start"===e.attr("name")){if(o=!1!==this.minDate&&s.isBefore(this.minDate)?this.minDate:s,r=this.endDate,"object"==typeof this.dateLimit){var a=i(o).add(this.dateLimit).endOf("day");r.isAfter(a)&&(r=a)}}else if(o=this.startDate,r=!1!==this.maxDate&&s.isAfter(this.maxDate)?this.maxDate:s.endOf("day"),"object"==typeof this.dateLimit){var l=i(r).subtract(this.dateLimit).startOf("day");o.isBefore(l)&&(o=l)}this.setCustomDates(o,r)}},inputsKeydown:function(t){13===t.keyCode&&(this.inputsChanged(t),this.notify())},updateInputText:function(){this.element.is("input")&&!this.singleDatePicker?(this.element.val(this.startDate.format(this.format)+this.separator+this.endDate.format(this.format)),this.element.trigger("change")):this.element.is("input")&&(this.element.val(this.endDate.format(this.format)),this.element.trigger("change"))},clickRange:function(t){var e=t.target.innerHTML;if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.leftCalendar.month.month(this.startDate.month()).year
9(this.startDate.year()).hour(this.startDate.hour()).minute(this.startDate.minute()),this.rightCalendar.month.month(this.endDate.month()).year(this.endDate.year()).hour(this.endDate.hour()).minute(this.endDate.minute()),this.updateCalendars(),this.updateInputText(),this.hideCalendars(),this.hide(),this.element.trigger("apply.daterangepicker",this),this.autoApply&&this.notify()}},clickPrev:function(t){var e=n(t.target).parents(".calendar");e.hasClass("left")?this.leftCalendar.month.subtract(1,"month"):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){var e=n(t.target).parents(".calendar");e.hasClass("left")?this.leftCalendar.month.add(1,"month"):this.rightCalendar.month.add(1,"month"),this.updateCalendars()},hoverDate:function(t){var e=n(t.target).attr("data-title"),i=e.substr(1,1),s=e.substr(3,1),o=n(t.target).parents(".calendar");o.hasClass("left")?this.container.find("input[name=daterangepicker_start]").val(this.leftCalendar.calendar[i][s].format(this.format)):this.container.find("input[name=daterangepicker_end]").val(this.rightCalendar.calendar[i][s].format(this.format))},setCustomDates:function(t,e){if(this.chosenLabel=this.locale.customRangeLabel,t.isAfter(e)){var n=this.endDate.diff(this.startDate);e=i(t).add(n,"ms"),this.maxDate&&e.isAfter(this.maxDate)&&(e=this.maxDate.clone())}this.startDate=t,this.endDate=e,this.updateView(),this.updateCalendars(),this.autoApply&&(this.notify(),this.element.trigger("apply.daterangepicker",this))},clickDate:function(t){var e,s,o=n(t.target).attr("data-title"),r=o.substr(1,1),a=o.substr(3,1),l=n(t.target).parents(".calendar");if(l.hasClass("left")){if(e=this.leftCalendar.calendar[r][a],s=this.endDate,"object"==typeof this.dateLimit){var h=i(e).add(this.dateLimit).endOf("day");s.isAfter(h)&&(s=h)}}else if(e=this.startDate,s=this.rightCalendar.calendar[r][a],"object"==typeof this.dateLimit){var c=i(s).subtract(this.dateLimit).startOf("day");e.isBefore(c)&&(e=c)}this.singleDatePicker&&l.hasClass("left")?s=e.clone():this.singleDatePicker&&l.hasClass("right")&&(e=s.clone()),l.find("td").removeClass("active"),n(t.target).addClass("active"),this.setCustomDates(e,s),this.timePicker||s.endOf("day"),this.singleDatePicker&&!this.timePicker&&this.clickApply()},clickApply:function(t){this.updateInputText(),this.hide(),this.element.trigger("apply.daterangepicker",this)},clickCancel:function(t){this.startDate=this.oldStartDate,this.endDate=this.oldEndDate,this.chosenLabel=this.oldChosenLabel,this.updateView(),this.updateCalendars(),this.hide(),this.element.trigger("cancel.daterangepicker",this)},updateMonthYear:function(t){var e=n(t.target).closest(".calendar").hasClass("left"),i=e?"left":"right",s=this.container.find(".calendar."+i),o=parseInt(s.find(".monthselect").val(),10),r=s.find(".yearselect").val();e||this.singleDatePicker||(r<this.startDate.year()||r==this.startDate.year()&&o<this.startDate.month())&&(o=this.startDate.month(),r=this.startDate.year()),this.minDate&&(r<this.minDate.year()||r==this.minDate.year()&&o<this.minDate.month())&&(o=this.minDate.month(),r=this.minDate.year()),this.maxDate&&(r>this.maxDate.year()||r==this.maxDate.year()&&o>this.maxDate.month())&&(o=this.maxDate.month(),r=this.maxDate.year()),this[i+"Calendar"].month.month(o).year
9(r),this.updateCalendars()},updateTime:function(t){var e=n(t.target).closest(".calendar"),i=e.hasClass("left"),s=parseInt(e.find(".hourselect").val(),10),o=parseInt(e.find(".minuteselect").val(),10),r=0;if(this.timePickerSeconds&&(r=parseInt(e.find(".secondselect").val(),10)),this.timePicker12Hour){var a=e.find(".ampmselect").val();"PM"===a&&s<12&&(s+=12),"AM"===a&&12===s&&(s=0)}if(i){var l=this.startDate.clone();l.hour(s),l.minute(o),l.second(r),this.startDate=l,this.leftCalendar.month.hour(s).minute(o).second(r),this.singleDatePicker&&(this.endDate=l.clone())}else{var h=this.endDate.clone();h.hour(s),h.minute(o),h.second(r),this.endDate=h,this.singleDatePicker&&(this.startDate=h.clone()),this.rightCalendar.month.hour(s).minute(o).second(r)}this.updateView(),this.updateCalendars(),this.autoApply&&(this.notify(),this.element.trigger("apply.daterangepicker",this))},updateCalendars:function(){this.leftCalendar.calendar=this.buildCalendar(this.leftCalendar.month.month(),this.leftCalendar.month.year(),this.leftCalendar.month.hour(),this.leftCalendar.month.minute(),this.leftCalendar.month.second(),"left"),this.rightCalendar.calendar=this.buildCalendar(this.rightCalendar.month.month(),this.rightCalendar.month.year(),this.rightCalendar.month.hour(),this.rightCalendar.month.minute(),this.rightCalendar.month.second(),"right"),this.container.find(".calendar.left").empty().html(this.renderCalendar(this.leftCalendar.calendar,this.startDate,this.minDate,this.maxDate,"left")),this.container.find(".calendar.right").empty().html(this.renderCalendar(this.rightCalendar.calendar,this.endDate,this.singleDatePicker?this.minDate:this.startDate,this.maxDate,"right")),this.container.find(".ranges li").removeClass("active");
10var t=!0,e=0;for(var i in this.ranges)this.timePicker?this.startDate.isSame(this.ranges[i][0])&&this.endDate.isSame(this.ranges[i][1])&&(t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").html()):this.startDate.format("YYYY-MM-DD")==this.ranges[i][0].format("YYYY-MM-DD")&&this.endDate.format("YYYY-MM-DD")==this.ranges[i][1].format("YYYY-MM-DD")&&(t=!1,this.chosenLabel=this.container.find(".ranges li:eq("+e+")").addClass("active").html()),e++;t&&(this.chosenLabel=this.container.find(".ranges li:last").addClass("active").html(),this.showCalendars())},buildCalendar:function(t,e,n,s,o,r){var a,l=i([e,t]).daysInMonth(),h=i([e,t,1]),c=i([e,t,l]),u=i(h).subtract(1,"month").month(),d=i(h).subtract(1,"month").year(),p=i([d,u]).daysInMonth(),f=h.day(),m=[];for(m.firstDay=h,m.lastDay=c,a=0;a<6;a++)m[a]=[];var g=p-f+this.locale.firstDay+1;g>p&&(g-=7),f==this.locale.firstDay&&(g=p-6);var v,y,b=i([d,u,g,12,s,o]);for(a=0,v=0,y=0;a<42;a++,v++,b=i(b).add(24,"hour"))a>0&&v%7===0&&(v=0,y++),m[y][v]=b.clone().hour(n),b.hour(12),this.minDate&&m[y][v].format("YYYY-MM-DD")==this.minDate.format("YYYY-MM-DD")&&m[y][v].isBefore(this.minDate)&&"left"==r&&(m[y][v]=this.minDate.clone()),this.maxDate&&m[y][v].format("YYYY-MM-DD")==this.maxDate.format("YYYY-MM-DD")&&m[y][v].isAfter(this.maxDate)&&"right"==r&&(m[y][v]=this.maxDate.clone());return m},renderDropdowns:function(t,e,i){for(var n=t.month(),s=t.year(),o=i&&i.year()||s+5,r=e&&e.year()||s-50,a='<select class="monthselect">',l=s==r,h=s==o,c=0;c<12;c++)(!l||c>=e.month())&&(!h||c<=i.month())&&(a+="<option value='"+c+"'"+(c===n?" selected='selected'":"")+">"+this.locale.monthNames[c]+"</option>");a+="</select>";for(var u='<select class="yearselect">',d=r;d<=o;d++)u+='<option value="'+d+'"'+(d===s?' selected="selected"':"")+">"+d+"</option>";return u+="</select>",a+u},renderCalendar:function(t,e,i,s,o){var r='<div class="calendar-date">';r+='<table class="table-condensed">',r+="<thead>",r+="<tr>",this.showWeekNumbers&&(r+="<th></th>"),r+=!i||i.isBefore(t.firstDay)?'<th class="prev available"><i class="fa fa-arrow-left icon icon-arrow-left glyphicon glyphicon-arrow-left"></i></th>':"<th></th>";var a=this.locale.monthNames[t[1][1].month()]+t[1][1].format(" YYYY");this.showDropdowns&&(a=this.renderDropdowns(t[1][1],i,s)),r+='<th colspan="5" class="month">'+a+"</th>",r+=!s||s.isAfter(t.lastDay)?'<th class="next available"><i class="fa fa-arrow-right icon icon-arrow-right glyphicon glyphicon-arrow-right"></i></th>':"<th></th>",r+="</tr>",r+="<tr>",this.showWeekNumbers&&(r+='<th class="week">'+this.locale.weekLabel+"</th>"),n.each(this.locale.daysOfWeek,function(t,e){r+="<th>"+e+"</th>"}),r+="</tr>",r+="</thead>",r+="<tbody>";for(var l=0;l<6;l++){r+="<tr>",this.showWeekNumbers&&(r+='<td class="week">'+t[l][0].week()+"</td>");for(var h=0;h<7;h++){var c="available ";c+=t[l][h].month()==t[1][1].month()?"":"off",t[l][h].isSame(new Date,"day")&&(c+=" today "),i&&t[l][h].isBefore(i,"day")||s&&t[l][h].isAfter(s,"day")?c=" off disabled ":t[l][h].format("YYYY-MM-DD")==e.format("YYYY-MM-DD")?(c+=" active ",t[l][h].format("YYYY-MM-DD")==this.startDate.format("YYYY-MM-DD")&&(c+=" start-date "),t[l][h].format("YYYY-MM-DD")==this.endDate.format("YYYY-MM-DD")&&(c+=" end-date ")):t[l][h]>=this.startDate&&t[l][h]<=this.endDate&&(c+=" in-range ",t[l][h].isSame(this.startDate)&&(c+=" start-date "),t[l][h].isSame(this.endDate)&&(c+=" end-date "));var u="r"+l+"c"+h;r+='<td class="'+c.replace(/\s+/g," ").replace(/^\s?(.*?)\s?$/,"$1")+'" data-title="'+u+'">'+t[l][h].date()+"</td>"}r+="</tr>"}r+="</tbody>",r+="</table>",r+="</div>";var d;
10if(this.timePicker){r+='<div class="calendar-time">',r+='<select class="hourselect">';var p=0,f=23;i&&("left"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD")==i.format("YYYY-MM-DD")&&(p=i.hour(),e.hour()<p&&e.hour(p),this.timePicker12Hour&&p>=12&&e.hour()>=12&&(p-=12),this.timePicker12Hour&&12==p&&(p=1)),s&&("right"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD")==s.format("YYYY-MM-DD")&&(f=s.hour(),e.hour()>f&&e.hour(f),this.timePicker12Hour&&f>=12&&e.hour()>=12&&(f-=12));var m=0,g=23,v=e.hour();for(this.timePicker12Hour&&(m=1,g=12,v>=12&&(v-=12),0===v&&(v=12)),d=m;d<=g;d++)r+=d==v?'<option value="'+d+'" selected="selected">'+d+"</option>":d<p||d>f?'<option value="'+d+'" disabled="disabled" class="disabled">'+d+"</option>":'<option value="'+d+'">'+d+"</option>";r+="</select> : ",r+='<select class="minuteselect">';var y=0,b=59;for(i&&("left"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD h A")==i.format("YYYY-MM-DD h A")&&(y=i.minute(),e.minute()<y&&e.minute(y)),s&&("right"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD h A")==s.format("YYYY-MM-DD h A")&&(b=s.minute(),e.minute()>b&&e.minute(b)),d=0;d<60;d+=this.timePickerIncrement){var x=d;x<10&&(x="0"+x),r+=d==e.minute()?'<option value="'+d+'" selected="selected">'+x+"</option>":d<y||d>b?'<option value="'+d+'" disabled="disabled" class="disabled">'+x+"</option>":'<option value="'+d+'">'+x+"</option>"}if(r+="</select> ",this.timePickerSeconds){for(r+=': <select class="secondselect">',d=0;d<60;d+=this.timePickerIncrement){var x=d;x<10&&(x="0"+x),r+=d==e.second()?'<option value="'+d+'" selected="selected">'+x+"</option>":'<option value="'+d+'">'+x+"</option>"}r+="</select>"}if(this.timePicker12Hour){r+='<select class="ampmselect">';var _="",w="";i&&("left"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD")==i.format("YYYY-MM-DD")&&i.hour()>=12&&(_=' disabled="disabled" class="disabled"'),s&&("right"==o||this.singleDatePicker)&&e.format("YYYY-MM-DD")==s.format("YYYY-MM-DD")&&s.hour()<12&&(w=' disabled="disabled" class="disabled"'),r+=e.hour()>=12?'<option value="AM"'+_+'>AM</option><option value="PM" selected="selected"'+w+">PM</option>":'<option value="AM" selected="selected"'+_+'>AM</option><option value="PM"'+w+">PM</option>",r+="</select>"}r+="</div>"}return r},remove:function(){this.container.remove(),this.element.off(".daterangepicker"),this.element.removeData("daterangepicker")}},n.fn.daterangepicker=function(t,e){return this.each(function(){var i=n(this);i.data("daterangepicker")&&i.data("daterangepicker").remove(),i.data("daterangepicker",new s(i,t,e))}),this}}),function(t,e){function i(e,i){var s,o,r,a=e.nodeName.toLowerCase();return"area"===a?(s=e.parentNode,o=s.name,!(!e.href||!o||"map"!==s.nodeName.toLowerCase())&&(r=t("img[usemap=#"+o+"]")[0],!!r&&n(r))):(/input|select|textarea|button|object/.test(a)?!e.disabled:"a"===a?e.href||i:i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter(function(){return"hidden"===t.css(this,"visibility")}).length}var s=0,o=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each(function(){var e=this;setTimeout(function(){t(e).focus(),n&&n.call(e)},i)}):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))}).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,s,o=t(this[0]);o.length&&o[0]!==document;){if(n=o.css("position"),("absolute"===n||"relative"===n||"fixed"===n)&&(s=parseInt(o.css("zIndex"),10),!isNaN(s)&&0!==s))return s;o=o.parent()}return 0},uniqueId:function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})},removeUniqueId:function(){return this.each(function(){o.test(this.id
10)&&t(this).removeAttr("id")})}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&i(e,!s)}}),t("<a>").outerWidth(1).jquery||t.each(["Width","Height"],function(i,n){function s(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===n?["Left","Right"]:["Top","Bottom"],r=n.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?a["inner"+n].call(this):this.each(function(){t(this).css(r,s(this,i)+"px")})},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?a["outer"+n].call(this,e):this.each(function(){t(this).css(r,s(this,e,!0,i)+"px")})}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(t){t.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(t,e,i){var n,s=t.plugins[e];if(s&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;n<s.length;n++)t.options[s[n][0]]&&s[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;return e[n]>0||(e[n]=1,s=e[n]>0,e[n]=0,s)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,s=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(o){}s(e)},t.widget=function(e,i,n){var s,o,r,a,l={},h=e.split(".")[0];e=e.split(".")[1],s=h+"-"+e,n||(n=i,i=t.Widget),t.expr[":"][s.toLowerCase()]=function(e){return!!t.data(e,s)},t[h]=t[h]||{},o=t[h][e],r=t[h][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new r(t,e)},t.extend(r,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),a=new i,a.options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(l[e]=function(){var t=function(){return i.prototype[e].apply(this,arguments)},s=function(t){return i.prototype[e].apply(this,t)};return function(){var e,i=this._super,o=this._superApply;return this._super=t,this._superApply=s,e=n.apply(this,arguments),this._super=i,this._superApply=o,e}}()):void(l[e]=n)}),r.prototype=t.widget.extend(a,{widgetEventPrefix:o?a.widgetEventPrefix:e},l,{constructor:r,namespace:h,widgetName:e,widgetFullName:s}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete o._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r)},t.widget.extend=function(i){for(var s,o,r=n.call(arguments,1),a=0,l=r.length;a<l;a++)for(s in r[a])o=r[a][s],r[a].hasOwnProperty(s)&&o!==e&&(t.isPlainObject(o)?i[s]=t.isPlainObject(i[s])?t.widget.extend({},i[s],o):t.widget.extend({},o):i[s]=o);return i},t.widget.bridge=function(i,s){var o=s.prototype.widgetFullName||i;t.fn[i]=function(r){var a="string"==typeof r,l=n.call(arguments,1),h=this;return r=!a&&l.length?t.widget.extend.apply(null,[r].concat(l)):r,a?this.each(function(){var n,s=t.data(this,o);return s?t.isFunction(s[r])&&"_"!==r.charAt(0)?(n=s[r].apply(s,l),n!==s&&n!==e?(h=n&&n.jquery?h.pushStack(n.get()):n,!1):void 0):t.error("no such method '"+r+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+r+"'")}):this.each(function(){var e=t.data(this,o);e?e.option(r||{})._init():t.data(this,o,new s(r,this))}),h}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null}
vendor: 15,035 bytes, line 10
10,_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var s,o,r,a=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(a={},s=i.split("."),i=s.shift(),s.length){for(o=a[i]=t.widget.extend({},this.options[i]),r=0;r<s.length-1;r++)o[s[r]]=o[s[r]]||{},o=o[s[r]];if(i=s.pop(),n===e)return o[i]===e?null:o[i];o[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];a[i]=n}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,r){function a(){if(e||o.options.disabled!==!0&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l=n.match(/^(\w+)\s*(.*)$/),h=l[1]+o.eventNamespace,c=l[2];c?s.delegate(c,h,a):i.bind(h,a)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},i=t.Event(i),i.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!(t.isFunction(r)&&r.apply(this.element[0],[i].concat(n))===!1||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,o){"string"==typeof s&&(s={effect:s});var r,a=s?s===!0||"number"==typeof s?i:s.effect||i:e;s=s||{},"number"==typeof s&&(s={duration:s}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue(function(i){t(this)[e](),o&&o.call(n[0]),i()})}})}(jQuery),function(t,e){var i=!1;t(document).mouseup(function(){i=!1}),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).bind("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!i){this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var n=this,s=1===e.which,o=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(s&&!o&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),i=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return t>e&&t<e+i}function n(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||n(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,s=!1,o=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1}),t.data(e.target,o.widgetName+"-item")===o&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,s,o,r=this.options,a=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=a=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=a=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-t(document).scrollTop()<r.scrollSensitivity?a=t(document).scrollTop(t(document).scrollTop()-r.scrollSpeed):t(window).height()-(e.pageY-t(document).scrollTop())<r.scrollSensitivity&&(a=t(document).scrollTop(t(document).scrollTop()+r.scrollSpeed)),e.pageX-t(document).scrollLeft()<r.scrollSensitivity?a=t(document).scrollLeft(t(document).scrollLeft()-r.scrollSpeed):t(window).width()-(e.pageX-t(document).scrollLeft())<r.scrollSensitivity&&(a=t(document).scrollLeft(t(document).scrollLeft()+r.scrollSpeed))),a!==!1&&t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(n=this.items[i],s=n.item[0],o=this._intersectsWithPointer(n),o&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.to
10p,l=a+t.height,h=this.offset.click.top,c=this.offset.click.left,u="x"===this.options.axis||n+h>a&&n+h<l,d="y"===this.options.axis||e+c>o&&e+c<r,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||i(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||i(this.positionAbs.left+this.offset.click.left,t.left,t.width),s=e&&n,o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!s&&(this.floating?r&&"right"===r||"down"===o?2:1:o&&("down"===o?2:1))},_intersectsWithSides:function(t){var e=i(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=i(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),s=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&n||"left"===o&&!n:s&&("down"===s&&e||"up"===s&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,o,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(s=t(l[i]),n=s.length-1;n>=0;n--)o=t.data(s[n],this.widgetFullName),o&&o!==this&&!o.options.disabled&&a.push([t.isFunction(o.options.items)?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);for(a.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(function(){r.push(this)});return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,h,c=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(s=t(d[i]),n=s.length-1;n>=0;n--)o=t.data(s[n],this.widgetFullName),o&&o!==this&&!o.options.disabled&&(u.push([t.isFunction(o.options.items)?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=u.length-1;i>=0;i--)for(r=u[i][1],a=u[i][0],n=0,h=a.length;n<h;n++)l=t(a[n]),l.data(this.widgetName+"-item",r),c.push({item:l,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset());var i,n,s,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],n.instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top);
vendor: 1,123 bytes, lines 10-11
10if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)o=this.containers[i].element.offset(),this.containers[i].containerCache.left=o.left,this.containers[i].containerCache.top=o.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){e=e||this;var i,n=e.options;
11n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),s=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each(function(){t("<td>&#160;</td>",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(s)}):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,s){i&&!n.forcePlaceholderSize||(s.height()||s.height(e.currentItem.innerHe
vendor: 5,242 bytes, line 11
11ight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(e){var s,o,r,a,l,h,c,u,d,p,f=null,m=null;for(s=this.containers.length-1;s>=0;s--)if(!t.contains(this.currentItem[0],this.containers[s].element[0]))if(this._intersectsWith(this.containers[s].containerCache)){if(f&&t.contains(this.containers[s].element[0],f.element[0]))continue;f=this.containers[s],m=s}else this.containers[s].containerCache.over&&(this.containers[s]._trigger("out",e,this._uiHash(this)),this.containers[s].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",e,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(r=1e4,a=null,p=f.floating||n(this.currentItem),l=p?"left":"top",h=p?"width":"height",c=this.positionAbs[l]+this.offset.click[l],o=this.items.length-1;o>=0;o--)t.contains(this.containers[m].element[0],this.items[o].item[0])&&this.items[o].item[0]!==this.currentItem[0]&&(p&&!i(this.positionAbs.top+this.offset.click.top,this.items[o].top,this.items[o].height)||(u=this.items[o].item.offset()[l],d=!1,Math.abs(u-c)>Math.abs(u+this.items[o][h]-c)&&(d=!0,u+=this.items[o][h]),Math.abs(u-c)<r&&(r=Math.abs(u-c),a=this.items[o],this.direction=d?"up":"down")));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;a?this._rearrange(e,a,null,!0):this._rearrange(e,null,this.containers[m].element,!0),this._trigger("change",e,this._uiHash()),this.containers[m]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",e,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===s.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===s.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),
vendor: 4,266 bytes, line 11
1110)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,o=e.pageX,r=e.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}
11.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){t.Widget.prototype._trigger.apply(this,arguments)===!1&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t,e){"object"==typeof module&&module.exports?module.exports=t.document?e(t):function(t){return e(t)}:t.Highcharts=e()}("undefined"!=typeof window?window:this,function(t){function e(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw Error(i);lt.console&&console.log(i)}function i(){var t,e,i=arguments,n={},s=function(t,e){var i,n;"object"!=typeof t&&(t={});for(n in e)e.hasOwnProperty(n)&&(i=e[n],t[n]=i&&"object"==typeof i&&"[object Array]"!==Object.prototype.toString.call(i)&&"renderTo"!==n&&"number"!=typeof i.nodeType?s(t[n]||{},i):e[n]);return t};for(i[0]===!0&&(n=i[1],i=Array.prototype.slice.call(i,2)),e=i.length,t=0;t<e;t++)n=s(n,i[t]);return n}function n(t,e){return parseInt(t,e||10)}function s(t){return"string"==typeof t}function o(t){return t&&"object"==typeof t}function r(t){return"[object Array]"===Object.prototype.toString.call(t)}function a(t){return"number"==typeof t}function l(t){return ct.log(t)/ct.LN10}function h(t){return ct.pow(10,t)}function c(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function u(t){return t!==H&&null!==t}function d(t,e,i){var n,r;if(s(e))u(i)?t.setAttribute(e,i):t&&t.getAttribute&&(r=t.getAttribute(e));else if(u(e)&&o(e))for(n in e)t.setAttribute(n,e[n]);return r}function p(t){return r(t)?t:[t]}function f(t,e,i){return e?setTimeout(t,e,i):void t.call(0,i)}function m(t,e){kt&&!Mt&&e&&e.opacity!==H&&(e.filter="alpha(opacity="+100*e.opacity+")"),$t(t.style,e)}function g(t,e,i,n,s){return t=ht.createElement(t),e&&$t(t,e),s&&m(t,{padding:0,border:"none",margin:0}),i&&m(t,i),n&&n.appendChild(t),t}function v(t,e){var i=function(){};return i.prototype=new t,$t(i.prototype,e),i}function y(t,e){return Array((e||2)+1-String(t).length).join(0)+t}function b(t){return 6e4*(V&&V(t)||G||0)}function x(t,e){for(var i,n,s,o,r,a="{",l=!1,h=[];(a=t.indexOf(a))!==-1;){if(i=t.slice(0,a),l){for(n=i.split(":"),s=n.shift().split("."),r=s.length,i=e,o=0;o<r;o++)i=i[s[o]];n.length&&(n=n.join(":"),s=/\.([0-9])/,o=$.lang,r=void 0,/f$/.test(n)?(r=(r=n.match(s))?r[1]:-1,null!==i&&(i=at.numberFormat(i,r,o.decimalPoint,n.indexOf(",")>-1?o.thousandsSep:""))):i=F(n,i))}h.push(i),t=t.slice(a+1),a=(l=!l)?"}":"{"}return h.push(t),h.join("")}function _(t){return ct.pow(10,dt(ct.log(t)/ct.LN10))}function w(t,e,i,n,s){var o,r=t,i=Ft(i,1);for(o=t/i,e||(e=[1,2,2.5,5,10],n===!1&&(1===i?e=[1,2,5,10]:i<=.1&&(e=[1/i]))),n=0;n<e.length&&(r=e[n],!(s&&r*i>=t||!s&&o<=(e[n]+(e[n+1]||e[n]))/2));n++);return r*=i}function k(t,e){var i,n,s=t.length;for(n=0;n<s;n++)t[n].safeI=n;for(t.sort(function(t,n){return i=e(t,n),0===i?t.safeI-n.safeI:i}),n=0;n<s;n++)delete t[n].safeI}function C(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function S(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function D(t,e){for(var i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function T(t){R||(R=g(Ht)),t&&R.appendChild(t),R.innerHTML=""}function M(t,e){return parseFloat(t.toPrecision(e||14))}function A(t,e){e.renderer.globalAnimation=Ft(t,e.animation)}function P(t){return{init:function(e){var i=t.fx;
11t.extend(t.easing,{easeOutQuad:function(t,e,i,n,s){return-n*(e/=s)*(e-2)+i}}),t.each(["cur","_default","width","height","opacity"],function(e,n){var s,o=i.step;"cur"===n?o=i.prototype:"_default"===n&&t.Tween&&(o=t.Tween.propHooks[n],n="set"),(s=o[n])&&(o[n]=function(t){var i,o;if(o=e?t:this,"align"!==o.prop)return i=o.elem,i.attr?i.attr(o.prop.replace("strokeWidth","stroke-width"),"cur"===n?void 0:o.now):s.apply(this,arguments)})}),zt(t.cssHooks.opacity,"get",function(t,e,i){return e.attr?e.opacity||0:t.call(this,e,i)}),this.addAnimSetter("d",function(t){var i,n=t.elem;t.started||(i=e.init(n,n.d,n.toD),t.start=i[0],t.end=i[1],t.started=!0),n.attr("d",e.step(t.start,t.end,t.pos,n.toD))}),this.each=Array.prototype.forEach?function(t,e){return Array.prototype.forEach.call(t,e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e.call(t[i],t[i],i,t)===!1)return i},t.fn.highcharts=function(){var t,e,i="Chart",n=arguments;return this[0]&&(s(n[0])&&(i=n[0],n=Array.prototype.slice.call(n,1)),t=n[0],t!==H&&(t.chart=t.chart||{},t.chart.renderTo=this[0],new at[i](t,n[1]),e=this),t===H&&(e=It[d(this[0],"data-highcharts-chart")])),e}},addAnimSetter:function(e,i){t.Tween?t.Tween.propHooks[e]={set:i}:t.fx.step[e]=i},getScript:t.getScript,inArray:t.inArray,adapterRun:function(e,i){return t(e)[i]()},grep:t.grep,map:function(t,e){var i,n=[],s=t.length;for(i=0;i<s;i++)n[i]=e.call(t[i],t[i],i,t);return n},offset:function(e){return t(e).offset()},addEvent:function(e,i,n){t(e).bind(i,n)},removeEvent:function(e,i,n){var s=ht.removeEventListener?"removeEventListener":"detachEvent";ht[s]&&e&&!e[s]&&(e[s]=function(){}),t(e).unbind(i,n)},fireEvent:function(e,i,n,s){var o,r=t.Event(i),a="detached"+i;!kt&&n&&(delete n.layerX,delete n.layerY,delete n.returnValue),$t(r,n),e[i]&&(e[a]=e[i],e[i]=null),t.each(["preventDefault","stopPropagation"],function(t,e){var i=r[e];r[e]=function(){try{i.call(r)}catch(t){"preventDefault"===e&&(o=!0)}}}),t(e).trigger(r),e[a]&&(e[i]=e[a],e[a]=null),s&&!r.isDefaultPrevented()&&!o&&s(r)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===H&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(e,i,n){var s=t(e);e.style||(e.style={}),i.d&&(e.toD=i.d,i.d=1),s.stop(),i.opacity!==H&&e.attr&&(i.opacity+="px"),e.hasAnim=1,s.animate(i,n)},stop:function(e){e.hasAnim&&t(e).stop()}}}function O(){var t=$.global,e=t.useUTC,i=e?"getUTC":"get",n=e?"setUTC":"set";U=t.Date||window.Date,G=e&&t.timezoneOffset,V=e&&t.getTimezoneOffset,B=function(t,i,n,s,o,r){var a;return e?(a=U.UTC.apply(0,arguments),a+=b(a)):a=new U(t,i,Ft(n,1),Ft(s,0),Ft(o,0),Ft(r,0)).getTime(),a},q=i+"Minutes",X=i+"Hours",K=i+"Day",Q=i+"Date",Z=i+"Month",J=i+"FullYear",tt=n+"Milliseconds",et=n+"Seconds",it=n+"Minutes",nt=n+"Hours",st=n+"Date",ot=n+"Month",rt=n+"FullYear"}function L(t){return this instanceof L?void this.init(t):new L(t)}function E(){}function I(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,!i&&!n&&this.addLabel()}function N(t,e,i,n,s){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=s,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:Ft(e.y,o?4:i?14:-6),x:Ft(e.x,o?i?-6:6:0)},this.textAlign=e.textAlign||(o?i?"right":"left":"center")}var H,Y,j,R,$,F,z,W,U,B,G,V,q,X,K,Q,Z,J,tt,et,it,nt,st,ot,rt,at,lt=t||window,ht=lt.document,ct=Math,ut=ct.round,dt=ct.floor,pt=ct.ceil,ft=ct.max,mt=ct.min,gt=ct.abs,vt=ct.cos,yt=ct.sin,bt=ct.PI,xt=2*bt/360,_t=navigator.userAgent,wt=lt.opera,kt=/(msie|trident|edge)/i.test(_t)&&!wt,Ct=8===ht.documentMode,St=!kt&&/AppleWebKit/.test(_t),Dt=/Firefox/.test(_t),t=/(Mobile|Android|Windows Phone)/.test(_t),Tt="http://www.w3.org/2000/svg",Mt=!!ht.createElementNS&&!!ht.createElementNS(Tt,"svg").createSVGRect,At=Dt&&parseInt(_t.split("Firefox/")[1],10)<4,Pt=!Mt&&!kt&&!!ht.createElement("canvas").getContext,Ot={},Lt=0,Et=function(){},It=[],Nt=0,Ht="div",Yt=/^[0-9]+$/,jt=["plotTop","marginRight","marginBottom","plotLeft"],Rt={};at=lt.Highcharts?e(16,!0):function(t){return at.loadAdapter(t),at},at.seriesTypes=Rt;var $t=at.extend=function(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t},Ft=at.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if(e=i[t],e!==H&&null!==e)return e}
11,zt=at.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments);return t.unshift(n),i.apply(this,t)}};F=function(t,e,i){if(!u(e)||isNaN(e))return $.lang.invalidDate||"";var n,t=Ft(t,"%Y-%m-%d %H:%M:%S"),s=new U(e-b(e)),o=s[X](),r=s[K](),a=s[Q](),l=s[Z](),h=s[J](),c=$.lang,d=c.weekdays,s=$t({a:d[r].substr(0,3),A:d[r],d:y(a),e:a,w:r,b:c.shortMonths[l],B:c.months[l],m:y(l+1),y:h.toString().substr(2,2),Y:h,H:y(o),k:o,I:y(o%12||12),l:o%12||12,M:y(s[q]()),p:o<12?"AM":"PM",P:o<12?"am":"pm",S:y(s.getSeconds()),L:y(ut(e%1e3),3)},at.dateFormats);for(n in s)for(;t.indexOf("%"+n)!==-1;)t=t.replace("%"+n,"function"==typeof s[n]?s[n](e):s[n]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},W={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},at.numberFormat=function(t,e,i,s){var o=$.lang,t=+t||0,r=e===-1?Math.min((t.toString().split(".")[1]||"").length,20):isNaN(e=Math.abs(e))?2:e,e=void 0===i?o.decimalPoint:i,s=void 0===s?o.thousandsSep:s,o=t<0?"-":"",i=String(n(t=gt(t).toFixed(r))),a=i.length>3?i.length%3:0;return o+(a?i.substr(0,a)+s:"")+i.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+s)+(r?e+gt(t-i).toFixed(r).slice(2):"")},z={init:function(t,e,i){var n,s,o,e=e||"",r=t.shift,a=e.indexOf("C")>-1,l=a?7:3,e=e.split(" "),i=[].concat(i),h=function(t){for(n=t.length;n--;)"M"===t[n]&&t.splice(n+1,0,t[n+1],t[n+2],t[n+1],t[n+2])};if(a&&(h(e),h(i)),t.isArea&&(s=e.splice(e.length-6,6),o=i.splice(i.length-6,6)),r<=i.length/l&&e.length===i.length)for(;r--;)i=[].concat(i).splice(0,l).concat(i);if(t.shift=0,e.length)for(t=i.length;e.length<t;)r=[].concat(e).splice(e.length-l,l),a&&(r[l-6]=r[l-2],r[l-5]=r[l-1]),e=e.concat(r);return s&&(e=e.concat(s),i=i.concat(o)),[e,i]},step:function(t,e,i,n){var s=[],o=t.length;if(1===i)s=n;else if(o===e.length&&i<1)for(;o--;
11)n=parseFloat(t[o]),s[o]=isNaN(n)?t[o]:i*parseFloat(e[o]-n)+n;else s=e;return s}};var Wt,Ut,Bt,Gt,Vt,qt,Xt,Kt,Qt,Zt,Jt,te;at.loadAdapter=function(t){t&&(t.fn&&t.fn.jquery&&(t=P(t)),t.init&&(t.init(z),delete t.init),at.extend(at,t),Wt=at.adapterRun,Ut=at.inArray,Bt=at.each,Gt=at.grep,Vt=at.offset,qt=at.map,Xt=at.addEvent,Kt=at.removeEvent,Qt=at.fireEvent,Zt=at.washMouseEvent,Jt=at.animate,te=at.stop)},at.loadAdapter(lt.HighchartsAdapter||lt.jQuery),$={colors:"#7cb5ec,#434348,#90ed7d,#f7a35c,#8085e9,#f15c80,#e4d354,#2b908f,#f45b5b,#91e8e1".split(","),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),shortMonths:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),weekdays:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),decimalPoint:".",numericSymbols:"k,M,G,T,P,E".split(","),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{useUTC:!0,canvasToolsURL:"http://code.highcharts.com/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.1.10/gfx/vml-radial-gradient.png"},chart:{borderColor:"#4572A7",borderRadius:0,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0",resetZoomButton:{theme:{zIndex:20},position:{align:"right",x:-10,y:10}}},title:{text:"Chart title",align:"center",margin:15,style:{color:"#333333",fontSize:"18px"}},subtitle:{text:"",align:"center",style:{color:"#555555"}},plotOptions:{line:{allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},lineWidth:2,marker:{lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{enabled:!0,lineWidthPlus:1,radiusPlus:2},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":at.numberFormat(this.y,-1)},style:{color:"contrast",fontSize:"11px",fontWeight:"bold",textShadow:"0 0 6px contrast, 0 0 3px contrast"},verticalAlign:"bottom",x:0,y:0,padding:5},cropThreshold:300,pointRange:0,softThreshold:!0,states:{hover:{lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{marker:{}}},stickyTracking:!0,turboThreshold:1e3}},labels:{style:{position:"absolute",color:"#3E576F"}},legend:{enabled:!0,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#909090",borderRadius:0,navigation:{activeColor:"#274b6d",inactiveColor:"#CCC"},shadow:!1,itemStyle:{color:"#333333",fontSize:"12px",fontWeight:"bold"},itemHoverStyle:{color:"#000"},itemHiddenStyle:{color:"#CCC"},itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"white",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:Mt,backgroundColor:"rgba(249, 249, 249, .85)",borderWidth:1,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',shadow:!0,snap:t?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"9px"}}};var ee=$.plotOptions,ie=ee.line;O(),L.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,parse:function(t){return[n(t[1],16),n(t[2],16),n(t[3],16),1]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],init:function(t){var e,i,n,s;if((this.input=t)&&t.stops)this.stops=qt(t.stops,function(t){return new L(t[1])});else for(n=this.parsers.length;n--&&!i;)s=this.parsers[n],(e=s.regex.exec(t))&&(i=s.parse(e));this.rgba=i||[]},get:function(t){var e,n=this.input,s=this.rgba;return this.stops?(e=i(n),e.stops=[].concat(e.stops),Bt(this.stops,function(i,n){e.stops[n]=[e.stops[n][0],i.get(t)]})):e=s&&!isNaN(s[0])?"rgb"===t||!t&&1===s[3]?"rgb("+s[0]+","+s[1]+","+s[2]+")":"a"===t?s[3]:"rgba("+s.join(",")+")":n,e},brighten:function(t){var e,i=this.rgba;if(this.stops)Bt(this.stops,function(e){e.brighten(t)});else if(a(t)&&0!==t)for(e=0;e<3;e++)i[e]+=n(255*t),i[e]<0&&(i[e]=0),i[e]>255&&(i[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this}},E.prototype={opacity:1,textProps:"direction,fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textOverflow,textShadow".split(","),init:function(t,e){this.element="span"===e?g(e):ht.createElementNS(Tt,e),this.renderer=t},animate:function(t,e,n){return e=Ft(e,this.renderer.globalAnimation,!0),te(this),e?(e=i(e,{}),n&&(e.complete=n),Jt(this,t,e)):this.attr(t,null,n),this},colorGradient:function(t,e,n){var s,o,a,l,h,c,d,p,f,m,g,v,y=this.renderer,b=[];if(t.linearGradient?o="linearGradient":t.radialGradient&&(o="radialGradient"),o){a=t[o],h=y.gradients,d=t.stops,m=n.radialReference,r(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===o&&m&&!u(a.gradientUnits)&&(l=a,a=i(a,y.getRadialAttr(m,l),{gradientUnits:"userSpaceOnUse"}));
11for(g in a)"id"!==g&&b.push(g,a[g]);for(g in d)b.push(d[g]);b=b.join(","),h[b]?m=h[b].attr("id"):(a.id=m="highcharts-"+Lt++,h[b]=c=y.createElement(o).attr(a).add(y.defs),c.radAttr=l,c.stops=[],Bt(d,function(t){0===t[1].indexOf("rgba")?(s=L(t[1]),p=s.get("rgb"),f=s.get("a")):(p=t[1],f=1),t=y.createElement("stop").attr({offset:t[0],"stop-color":p,"stop-opacity":f}).add(c),c.stops.push(t)})),v="url("+y.url+"#"+m+")",n.setAttribute(e,v),n.gradient=b,t.toString=function(){return v}}},applyTextShadow:function(t){var e,i=this.element,s=t.indexOf("contrast")!==-1,o={},r=this.renderer.forExport,a=r||i.style.textShadow!==H&&!kt;s&&(o.textShadow=t=t.replace(/contrast/g,this.renderer.getContrast(i.style.fill))),(St||r)&&(o.textRendering="geometricPrecision"),a?this.css(o):(this.fakeTS=!0,this.ySetter=this.xSetter,e=[].slice.call(i.getElementsByTagName("tspan")),Bt(t.split(/\s?,\s?/g),function(t){var s,o,r=i.firstChild,t=t.split(" ");s=t[t.length-1],(o=t[t.length-2])&&Bt(e,function(t,e){var a;0===e&&(t.setAttribute("x",i.getAttribute("x")),e=i.getAttribute("y"),t.setAttribute("y",e||0),null===e&&i.setAttribute("y",0)),a=t.cloneNode(1),d(a,{"class":"highcharts-text-shadow",fill:s,stroke:s,"stroke-opacity":1/ft(n(o),3),"stroke-width":o,"stroke-linejoin":"round"}),i.insertBefore(a,r)})}))},attr:function(t,e,i){var n,s,o,r=this.element,a=this;if("string"==typeof t&&e!==H&&(n=t,t={},t[n]=e),"string"==typeof t)a=(this[t+"Getter"]||this._defaultGetter).call(this,t,r);else{for(n in t)e=t[n],o=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(n)&&(s||(this.symbolAttr(t),s=!0),o=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),o||(this[n+"Setter"]||this._defaultSetter).call(this,e,n,r),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,e);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return i&&i(),a},updateShadows:function(t,e){for(var i=this.shadows,n=i.length;n--;)i[n].setAttribute(t,"height"===t?Math.max(e-(i[n].cutHeight||0),0):"d"===t?this.d:e)},addClass:function(t){var e=this.element,i=d(e,"class")||"";return i.indexOf(t)===-1&&d(e,"class",i+" "+t),this},symbolAttr:function(t){var e=this;Bt("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(i){e[i]=Ft(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t){var e,i,n={},s=t.strokeWidth||this.strokeWidth||0;i=ut(s)%2/2,t.x=dt(t.x||this.x||0)+i,t.y=dt(t.y||this.y||0)+i,t.width=dt((t.width||this.width||0)-2*i),t.height=dt((t.height||this.height||0)-2*i),t.strokeWidth=s;for(e in t)this[e]!==t[e]&&(this[e]=n[e]=t[e]);return n},css:function(t){var e,i,s=this.styles,o={},r=this.element,a="";if(e=!s,t&&t.color&&(t.fill=t.color),s)for(i in t)t[i]!==s[i]&&(o[i]=t[i],e=!0);if(e){if(e=this.textWidth=t&&t.width&&"text"===r.nodeName.toLowerCase()&&n(t.width)||this.textWidth,s&&(t=$t(s,o)),this.styles=t,e&&(Pt||!Mt&&this.renderer.forExport)&&delete t.width,kt&&!Mt)m(this.element,t);else{s=function(t,e){return"-"+e.toLowerCase()};for(i in t)a+=i.replace(/([A-Z])/g,s)+":"+t[i]+";";d(r,"style",a)}e&&this.added&&this.renderer.buildText(this)}return this},on:function(t,e){var i=this,n=i.element;return j&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=U.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(_t.indexOf("Android")===-1||U.now()-(i.touchEventFired||0)>1100)&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(){return this.inverted=!0,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,n=this.scaleY,s=this.inverted,o=this.rotation,r=this.element;s&&(t+=this.attr("width"),e+=this.attr("height")),t=["translate("+t+","+e+")"],s?t.push("rotate(90) scale(-1,1)"):o&&t.push("rotate("+o+" "+(r.getAttribute("x")||0)+" "+(r.getAttribute("y")||0)+")"),(u(i)||u(n))&&t.pu
11sh("scale("+Ft(i,1)+" "+Ft(n,1)+")"),t.length&&r.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,o,r,a,l={};return o=this.renderer,r=o.alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!i||s(i))&&(this.alignTo=n=i||"renderer",c(r,this),r.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=Ft(i,o[n],o),n=t.align,o=t.verticalAlign,r=(i.x||0)+(t.x||0),a=(i.y||0)+(t.y||0),"right"!==n&&"center"!==n||(r+=(i.width-(t.width||0))/{right:1,center:2}[n]),l[e?"translateX":"x"]=ut(r),"bottom"!==o&&"middle"!==o||(a+=(i.height-(t.height||0))/({bottom:1,middle:2}[o]||1)),l[e?"translateY":"y"]=ut(a),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,this},getBBox:function(t,e){var i,n,s,o,r=this.renderer,a=this.element,l=this.styles;n=this.textStr;var h,c,u,d=a.style,p=r.cache,f=r.cacheKeys;if(s=Ft(e,this.rotation),o=s*xt,n!==H&&(u=["",s||0,l&&l.fontSize,a.style.width].join(","),u=""===n||Yt.test(n)?"num:"+n.toString().length+u:n+u),u&&!t&&(i=p[u]),!i){if(a.namespaceURI===Tt||r.forExport){try{
12c=this.fakeTS&&function(t){Bt(a.querySelectorAll(".highcharts-text-shadow"),function(e){e.style.display=t})},Dt&&d.textShadow?(h=d.textShadow,d.textShadow=""):c&&c("none"),i=a.getBBox?$t({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight},h?d.textShadow=h:c&&c("")}catch(m){}(!i||i.width<0)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(r.isSVG&&(r=i.width,n=i.height,kt&&l&&"11px"===l.fontSize&&"16.9"===n.toPrecision(3)&&(i.height=n=14),s&&(i.width=gt(n*yt(o))+gt(r*vt(o)),i.height=gt(n*vt(o))+gt(r*yt(o)))),u){for(;f.length>250;)delete p[f.shift()];p[u]||f.push(u),p[u]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0}
12,{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e,i=this.renderer,n=this.element;return t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(n),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t,e,i=this,n=i.element||{},s=i.shadows,o=i.renderer.isSVG&&"SPAN"===n.nodeName&&i.parentGroup;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,te(i),i.clipPath&&(i.clipPath=i.clipPath.destroy()),i.stops){for(e=0;e<i.stops.length;e++)i.stops[e]=i.stops[e].destroy();i.stops=null}for(i.safeRemoveChild(n),s&&Bt(s,function(t){i.safeRemoveChild(t)});o&&o.div&&0===o.div.childNodes.length;)n=o.parentGroup,i.safeRemoveChild(o.div),delete o.div,o=n;i.alignTo&&c(i.renderer.alignedObjects,i);for(t in i)delete i[t];return null},shadow:function(t,e,i){var n,s,o,r,a,l,h=[],c=this.element;if(t){for(r=Ft(t.width,3),a=(t.opacity||.15)/r,l=this.parentInverted?"(-1,-1)":"("+Ft(t.offsetX,1)+", "+Ft(t.offsetY,1)+")",n=1;n<=r;n++)s=c.cloneNode(0),o=2*r+1-2*n,d(s,{isShadow:"true",stroke:t.color||"black","stroke-opacity":a*n,"stroke-width":o,transform:"translate"+l,fill:"none"}),i&&(d(s,"height",ft(d(s,"height")-o,0)),s.cutHeight=o),e?e.element.appendChild(s):c.parentNode.insertBefore(s,c),h.push(s);this.shadows=h}return this},xGetter:function(t){return"circle"===this.element.nodeName&&(t={x:"cx",y:"cy"}[t]||t),this._defaultGetter(t)},_defaultGetter:function(t){return t=Ft(this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),i.setAttribute(e,t),this[e]=t},dashstyleSetter:function(t){var e;if(t=t&&t.toLowerCase()){for(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(","),e=t.length;e--;)t[e]=n(t[e])*this["stroke-width"];t=t.join(",").replace("NaN","none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){this.element.setAttribute("text-anchor",{left:"start",center:"middle",right:"end"}[t])},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=ht.createElementNS(Tt,"title"),this.element.appendChild(e)),e.appendChild(ht.createTextNode(String(Ft(t),"").replace(/<[^>]*>/g,"")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,this.textStr=t,this.added&&this.renderer.buildText(this))},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.colorGradient(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):i.setAttribute(e,t)},zIndexSetter:function(t,e){var i,s,o,r=this.renderer,a=this.parentGroup,r=(a||r).element||r.box,l=this.element;i=this.added;var h;if(u(t)&&(l.setAttribute(e,t),t=+t,this[e]===t&&(i=!1),this[e]=t),i){for((t=this.zIndex)&&a&&(a.handleZ=!0),a=r.childNodes,h=0;h<a.length&&!o;h++)i=a[h],s=d(i,"zIndex"),i!==l&&(n(s)>t||!u(t)&&u(s))&&(r.insertBefore(l,i),o=!0);o||r.appendChild(l)}return o},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},E.prototype.yGetter=E.prototype.xGetter,E.prototype.translateXSetter=E.prototype.translateYSetter=E.prototype.rotationSetter=E.prototype.verticalAlignSetter=E.prototype.scaleXSetter=E.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},E.prototype["stroke-widthSetter"]=E.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],E.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke&&(i.removeAttribute("stroke"),this.hasStroke=!1)};var ne=function(){this.init.apply(this,arguments)};
12ne.prototype={Element:E,init:function(t,e,i,n,s,o){var r,a=location,n=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(n));r=n.element,t.appendChild(r),t.innerHTML.indexOf("xmlns")===-1&&d(r,"xmlns",Tt),this.isSVG=!0,this.box=r,this.boxWrapper=n,this.alignedObjects=[],this.url=(Dt||St)&&ht.getElementsByTagName("base").length?a.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(ht.createTextNode("Created with Highcharts 4.1.10")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=s,this.gradients={},this.cache={},this.cacheKeys=[],this.setSize(e,i,!1);var l;Dt&&t.getBoundingClientRect&&(this.subPixelFix=e=function(){m(t,{left:0,top:0}),l=t.getBoundingClientRect(),m(t,{left:pt(l.left)-l.left+"px",top:pt(l.top)-l.top+"px"})},e(),Xt(lt,"resize",e))},getStyle:function(t){return this.style=$t({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),D(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&Kt(lt,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},buildText:function(t){for(var e,i,s=t.element,o=this,r=o.forExport,a=Ft(t.textStr,"").toString(),l=a.indexOf("<")!==-1,h=s.childNodes,c=d(s,"x"),u=t.styles,p=t.textWidth,f=u&&u.lineHeight,g=u&&u.textShadow,v=u&&"ellipsis"===u.textOverflow,y=h.length,b=p&&!t.added&&this.box,x=function(t){return f?n(f):o.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:u&&u.fontSize||o.style.fontSize||12,t).h},_=function(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">")};y--;)s.removeChild(h[y]);l||g||v||a.indexOf(" ")!==-1?(e=/<.*style="([^"]+)".*>/,i=/<.*href="(http[^"]+)".*>/,b&&b.appendChild(s),a=l?a.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g):[a],""===a[a.length-1]&&a.pop(),Bt(a,function(n,a){var l,h=0,n=n.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");l=n.split("|||"),Bt(l,function(n){if(""!==n||1===l.length){var f,g={},y=ht.createElementNS(Tt,"tspan");if(e.test(n)&&(f=n.match(e)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),d(y,"style",f)),i.test(n)&&!r&&(d(y,"onclick",'location.href="'+n.match(i)[1]+'"'),m(y,{cursor:"pointer"})),n=_(n.replace(/<(.|\n)*?>/g,"")||" ")," "!==n){if(y.appendChild(ht.createTextNode(n)),h?g.dx=0:a&&null!==c&&(g.x=c),d(y,g),s.appendChild(y),!h&&a&&(!Mt&&r&&m(y,{display:"block"}),d(y,"dy",x(y))),p){for(var b,w,k,g=n.replace(/([^\^])-/g,"$1- ").split(" "),C=l.length>1||a||g.length>1&&"nowrap"!==u.whiteSpace,S=[],D=x(y),T=1,M=t.rotation,A=n,P=A.length;(C||v)&&(g.length||S.length);)t.rotation=0,b=t.getBBox(!0),k=b.width,!Mt&&o.forExport&&(k=o.measureSpanWidth(y.firstChild.data,t.styles)),b=k>p,void 0===w&&(w=b),v&&w?(P/=2,""===A||!b&&P<.5?g=[]:(b&&(w=!0),A=n.substring(0,A.length+(b?-1:1)*pt(P)),g=[A+(p>3?"…":"")],y.removeChild(y.firstChild))):b&&1!==g.length?(y.removeChild(y.firstChild),S.unshift(g.pop())):(g=S,S=[],g.length&&(T++,y=ht.createElementNS(Tt,"tspan"),d(y,{dy:D,x:c}),f&&d(y,"style",f),s.appendChild(y)),k>p&&(p=k)),g.length&&y.appendChild(ht.createTextNode(g.join(" ").replace(/- /g,"-")));w&&t.attr("title",t.textStr),t.rotation=M}h++}}})}),b&&b.removeChild(s),g&&t.applyTextShadow&&t.applyTextShadow(g)):s.appendChild(ht.createTextNode(_(a)))},getContrast:function(t){return t=L(t).rgba,t[0]+t[1]+t[2]>384?"#000000":"#FFFFFF"},button:function(t,e,n,s,o,r,a,l,h){var c,u,d,p,f,m,g=this.label(t,e,n,h,null,null,null,null,"button"),v=0,t={x1:0,y1:0,x2:0,y2:1},o=i({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:t,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},o);return d=o.style,delete o.style,r=i(o,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#FFF"],[1,"#ACF"]]}},r),p=r.style,delete r.style,a=i(o,{stroke:"#68A",fill:{linearGradient:t,stops:[[0,"#9BD"],[1,"#CDF"]]}},a),f=a.style,delete a.style,l=i(o,{style:{color:"#CCC"}}
12,l),m=l.style,delete l.style,Xt(g.element,kt?"mouseover":"mouseenter",function(){3!==v&&g.attr(r).css(p)}),Xt(g.element,kt?"mouseout":"mouseleave",function(){3!==v&&(c=[o,r,a][v],u=[d,p,f][v],g.attr(c).css(u))}),g.setState=function(t){(g.state=v=t)?2===t?g.attr(a).css(f):3===t&&g.attr(l).css(m):g.attr(o).css(d)},g.on("click",function(t){3!==v&&s.call(g,t)}).attr(o).css($t({cursor:"default"},d))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=ut(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=ut(t[2])+e%2/2),t},path:function(t){var e={fill:"none"};return r(t)?e.d=t:o(t)&&$t(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=o(t)?t:{x:t,y:e,r:i},e=this.createElement("circle"),e.xSetter=function(t){this.element.setAttribute("cx",t)},e.ySetter=function(t){this.element.setAttribute("cy",t)},e.attr(t)},arc:function(t,e,i,n,s,r){return o(t)&&(e=t.y,i=t.r,n=t.innerR,s=t.start,r=t.end,t=t.x),t=this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:n||0,start:s||0,end:r||0}),t.r=i,t},rect:function(t,e,i,n,s,r){var s=o(t)?t.r:s,a=this.createElement("rect"),t=o(t)?t:t===H?{}:{x:t,y:e,width:ft(i,0),height:ft(n,0)};return r!==H&&(t.strokeWidth=r,t=a.crisp(t)),s&&(t.r=s),a.rSetter=function(t){d(this.element,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,s=n.length;for(this.width=t,this.height=e,this.boxWrapper[Ft(i,!0)?"animate":"attr"]({width:t,height:e});s--;)n[s].align()},g:function(t){var e=this.createElement("g");return u(t)?e.attr({"class":"highcharts-"+t}):e},image:function(t,e,i,n,s){var o={preserveAspectRatio:"none"};return arguments.length>1&&$t(o,{x:e,y:i,width:n,height:s}),o=this.createElement("image").attr(o),o.element.setAttributeNS?o.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):o.element.setAttribute("hc-svg-href",t),o},symbol:function(t,e,i,n,s,o){var r,a,l,h=this.symbols[t],h=h&&h(ut(e),ut(i),n,s,o),c=/^url\((.*?)\)$/;return h?(r=this.path(h),$t(r,{symbolName:t,x:e,y:i,width:n,height:s}),o&&$t(r,o)):c.test(t)&&(l=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(ut((n-e[0])/2),ut((s-e[1])/2)))},a=t.match(c)[1],t=Ot[a]||o&&o.width&&o.height&&[o.width,o.height],r=this.image(a).attr({x:e,y:i}),r.isImg=!0,t?l(r,t):(r.attr({width:0,height:0}),g("img",{onload:function(){0===this.width&&(m(this,{position:"absolute",top:"-999em"}),document.body.appendChild(this)),l(r,Ot[a]=[this.width,this.height]),this.parentNode&&this.parentNode.removeChild(this)},src:a}))),r},symbols:{circle:function(t,e,i,n){var s=.166*i;return["M",t+i/2,e,"C",t+i+s,e,t+i+s,e+n,t+i/2,e+n,"C",t-s,e+n,t-s,e,t+i/2,e,"Z"]},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,n,s){var o=s.start,i=s.r||i||n,r=s.end-.001,n=s.innerR,a=s.open,l=vt(o),h=yt(o),c=vt(r),r=yt(r),s=s.end-o<bt?0:1;return["M",t+i*l,e+i*h,"A",i,i,0,s,1,t+i*c,e+i*r,a?"M":"L",t+n*c,e+n*r,"A",n,n,0,s,0,t+n*l,e+n*h,a?"":"Z"]},callout:function(t,e,i,n,s){var o,r=mt(s&&s.r||0,i,n),a=r+6,l=s&&s.anchorX,s=s&&s.anchorY;return o=["M",t+r,e,"L",t+i-r,e,"C",t+i,e,t+i,e,t+i,e+r,"L",t+i,e+n-r,"C",t+i,e+n,t+i,e+n,t+i-r,e+n,"L",t+r,e+n,"C",t,e+n,t,e+n,t,e+n-r,"L",t,e+r,"C",t,e,t,e,t+r,e],l&&l>i&&s>e+a&&s<e+n-a?o.splice(13,3,"L",t+i,s-6,t+i+6,s,t+i,s+6,t+i,e+n-r):l&&l<0&&s>e+a&&s<e+n-a?o.splice(33,3,"L",t,s+6,t-6,s,t,s-6,t,e+r):s&&s>n&&l>t+a&&l<t+i-a?o.splice(23,3,"L",l+6,e+n,l,e+n+6,l-6,e+n,t+r,e+n):s&&s<0&&l>t+a&&l<t+i-a&&o.splice(3,3,"L",l-6,e,l,e-6,l+6,e,i-r,e),o}},clipRect:function(t,e,i,n){var s="highcharts-"+Lt++,o=this.createElement("clipPath").attr({id:s}).add(this.defs),t=this.rect(t,e,i,n,0).add(o);return t.id=s,t.clipPath=o,t.count=0,t},text:function(t,e,i,n){var s=Pt||!Mt&&this.forExport,o={};return!n||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),(t||0===t)&&(o.text=t),t=this.createElement("text").attr(o),s&&t.css({position:"absolute"}
12),n||(t.xSetter=function(t,e,i){var n,s,o=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(s=0;s<o.length;s++)n=o[s],n.getAttribute(e)===r&&n.setAttribute(e,t);i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){var i,s,t=t||this.style.fontSize;return!t&&e&&lt.getComputedStyle&&(e=e.element||e,t=(i=lt.getComputedStyle(e,""))&&i.fontSize),t=/px/.test(t)?n(t):/em/.test(t)?12*parseFloat(t):12,i=t<24?t+3:ut(1.2*t),s=ut(.8*i),{h:i,b:s,f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=ft(n*vt(e*xt),4)),{x:-t/3*yt(e*xt),y:n}},label:function(t,e,n,s,o,r,a,l,h){var c,d,p,f,m,g,v,y,b,x,_,w=this,k=w.g(h),C=w.text("",0,0,a).attr({zIndex:1}),S=0,D=3,T=0,M=0,A={};b=function(){var t,e;t=C.element.style,d=(void 0===p||void 0===f||k.styles.textAlign)&&u(C.textStr)&&C.getBBox(),k.width=(p||d.width||0)+2*D+T,k.height=(f||d.height||0)+2*D,v=D+w.fontMetrics(t&&t.fontSize,C).b,y&&(c||(t=M,e=(l?-v:0)+M,k.box=c=s?w.symbol(s,t,e,k.width,k.height,A):w.rect(t,e,k.width,k.height,0,A["stroke-width"]),c.isImg||c.attr("fill","none"),c.add(k)),c.isImg||c.attr($t({width:ut(k.width),height:ut(k.height)},A)),A=null)},x=function(){var t,e=k.styles,e=e&&e.textAlign,i=T+D;t=l?0:v,u(p)&&d&&("center"===e||"right"===e)&&(i+={center:.5,right:1}[e]*(p-d.width)),i===C.x&&t===C.y||(C.attr("x",i),t!==H&&C.attr("y",t)),C.x=i,C.y=t},_=function(t,e){c?c.attr(t,e):A[t]=e},k.onAdd=function(){C.add(k),k.attr({text:t||0===t?t:"",x:e,y:n}),c&&u(o)&&k.attr({anchorX:o,anchorY:r})},k.widthSetter=function(t){p=t},k.heightSetter=function(t){f=t},k.paddingSetter=function(t){u(t)&&t!==D&&(D=k.padding=t,x())},k.paddingLeftSetter=function(t){u(t)&&t!==T&&(T=t,x())},k.alignSetter=function(t){t={left:0,center:.5,right:1}[t],t!==S&&(S=t,d&&k.attr({x:e}))},k.textSetter=function(t){t!==H&&C.textSetter(t),b(),x()},k["stroke-widthSetter"]=function(t,e){t&&(y=!0),M=t%2/2,_(e,t)},k.strokeSetter=k.fillSetter=k.rSetter=function(t,e){"fill"===e&&t&&(y=!0),_(e,t)},k.anchorXSetter=function(t,e){o=t,_(e,ut(t)-M-m)},k.anchorYSetter=function(t,e){r=t,_(e,t-g)},k.xSetter=function(t){k.x=t,S&&(t-=S*((p||d.width)+2*D)),m=ut(t),k.attr("translateX",m)},k.ySetter=function(t){g=k.y=ut(t),k.attr("translateY",g)};var P=k.css;return $t(k,{css:function(t){if(t){var e={},t=i(t);Bt(k.textProps,function(i){t[i]!==H&&(e[i]=t[i],delete t[i])}),C.css(e)}return P.call(k,t)},getBBox:function(){return{width:d.width+2*D,height:d.height+2*D,x:d.x-D,y:d.y-D}},shadow:function(t){return c&&c.shadow(t),k},destroy:function(){Kt(k.element,"mouseenter"),Kt(k.element,"mouseleave"),C&&(C=C.destroy()),c&&(c=c.destroy()),E.prototype.destroy.call(k),k=w=b=x=_=null}})}},Y=ne,$t(E.prototype,{htmlCss:function(t){var e=this.element;return(e=t&&"SPAN"===e.tagName&&t.width)&&(delete t.width,this.textWidth=e,this.updateTransform()),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=$t(this.styles,t),m(this.element,t),this},htmlGetBBox:function(){var t=this.element;return"text"===t.nodeName&&(t.style.position="absolute"),{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,s=this.translateY||0,o=this.x||0,r=this.y||0,a=this.textAlign||"left",l={left:0,center:.5,right:1}[a],h=this.shadows,c=this.styles;if(m(e,{marginLeft:i,marginTop:s}),h&&Bt(h,function(t){m(t,{marginLeft:i+1,marginTop:s+1})}),this.inverted&&Bt(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){var d,p=this.rotation,f=n(this.textWidth),g=[p,a,e.innerHTML,this.textWidth,this.textAlign].join(",");g!==this.cTT&&(d=t.fontMetrics(e.style.fontSize).b,u(p)&&this.setSpanRotation(p,l,d),h=Ft(this.elemWidth,e.offsetWidth),h>f&&/[ \-]/.test(e.textContent||e.innerText)&&(m(e,{width:f+"px",display:"block",whiteSpace:c&&c.whiteSpace||"normal"}
12),h=f),this.getSpanCorrection(h,d,l,p,a)),m(e,{left:o+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),St&&(d=e.offsetHeight),this.cTT=g}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},s=kt?"-ms-transform":St?"-webkit-transform":Dt?"MozTransform":wt?"-o-transform":"";n[s]=n.transform="rotate("+t+"deg)",n[s+(Dt?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",m(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),$t(ne.prototype,{html:function(t,e,i){var n=this.createElement("span"),s=n.element,o=n.renderer;return n.textSetter=function(t){t!==s.innerHTML&&delete this.bBox,s.innerHTML=this.textStr=t,n.htmlUpdateTransform()},n.xSetter=n.ySetter=n.alignSetter=n.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),n[e]=t,n.htmlUpdateTransform()},n.attr({text:t,x:ut(e),y:ut(i)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),s.style.whiteSpace="nowrap",n.css=n.htmlCss,o.isSVG&&(n.add=function(t){var e,i=o.box.parentNode,r=[];if(this.parentGroup=t){if(e=t.div,!e){for(;t;)r.push(t),t=t.parentGroup;Bt(r.reverse(),function(t){var n,s=d(t.element,"class");s&&(s={className:s}),e=t.div=t.div||g(Ht,s,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px"},e||i),n=e.style,$t(t,{translateXSetter:function(e,i){n.left=e+"px",t[i]=e,t.doTransform=!0},translateYSetter:function(e,i){n.top=e+"px",t[i]=e,t.doTransform=!0}}),Bt(["opacity","visibility"],function(e){zt(t,e+"Setter",function(t,e,i,s){t.call(this,e,i,s),n[i]=e})})})}}else e=i;return e.appendChild(s),n.added=!0,n.alignOnAdd&&n.htmlUpdateTransform(),n}),n}});var se;if(!Mt&&!Pt){se={init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],n=["position: ","absolute",";"],s=e===Ht;("shape"===e||s)&&n.push("left:0;top:0;width:1px;height:1px;"),n.push("visibility: ",s?"hidden":"visible"),i.push(' style="',n.join(""),'"/>'),e&&(i=s||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=g(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box,s=t&&t.inverted,n=t?t.element||t:n;return t&&(this.parentGroup=t),s&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:E.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=vt(t*xt),i=yt(t*xt);m(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):"none"})},getSpanCorrection:function(t,e,i,n,s){var o,r=n?vt(n*xt):1,a=n?yt(n*xt):0,l=Ft(this.elemHeight,this.element.offsetHeight);this.xCorr=r<0&&-t,this.yCorr=a<0&&-l,o=r*a<0,this.xCorr+=a*e*(o?1-i:i),this.yCorr-=r*e*(n?o?i:1-i:1),s&&"left"!==s&&(this.xCorr-=t*i*(r<0?-1:1),n&&(this.yCorr-=l*i*(a<0?-1:1)),m(this.element,{textAlign:s}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)a(t[e])?i[e]=ut(10*t[e])-5:"Z"===t[e]?i[e]="x":(i[e]=t[e],!t.isArc||"wa"!==t[e]&&"at"!==t[e]||(i[e+5]===i[e+7]&&(i[e+7]+=t[e+7]>t[e+5]?1:-1),i[e+6]===i[e+8]&&(i[e+8]+=t[e+8]>t[e+6]?1:-1)));return i.join(" ")||"x"},clip:function(t){var e,i=this;return t?(e=t.members,c(e,i),e.push(i),i.destroyClip=function(){c(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:Ct?"inherit":"rect(auto)"}),i.css(t)},css:E.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&T(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),E.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=lt.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,e){var i,t=t.split(/[ ,]/);return i=t.length,9!==i&&11!==i||(t[i-4]=t[i-2]=n(t[i-2])-10*e),t.join(" ")},shadow:function(t,e,i){var s,o,r,a,l,h,c,u=[],d=this.element,p=this.renderer,f=d.style,m=d.path;if(m&&"string"!=typeof m.value&&(m="x"),l=m,t){for(h=Ft(t.width,3),c=(t.opacity||.15)/h,s=1;s<=3;s++)a=2*h+1-2*s,i&&(l=this.cutOffPath(m.value,a+.5)),r=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',l,'" coordsize="10 10" style="',d.style.cssText,'" />'],o=g(p.prepVML(r),null,{left:n(f.left)+Ft(t.offsetX,1),top:n(f.top)+Ft(t.offsetY,1)}),i&&(o.cutOff=a+1),r=['<stroke color="',t.color||"black",'" opacity="',c*s,'"/>
12'],g(p.prepVML(r),null,null,o),e?e.element.appendChild(o):d.parentNode.insertBefore(o,d),u.push(o);this.shadows=u}return this},updateShadows:Et,setAttr:function(t,e){Ct?this.element[t]=e:this.element.setAttribute(t,e)},classSetter:function(t){this.element.className=t},dashstyleSetter:function(t,e,i){(i.getElementsByTagName("stroke")[0]||g(this.renderer.prepVML(["<stroke/>"]),null,null,i))[e]=t||"solid",this[e]=t},dSetter:function(t,e,i){var n=this.shadows,t=t||[];if(this.d=t.join&&t.join(" "),i.path=t=this.pathToVML(t),n)for(i=n.length;i--;)n[i].path=n[i].cutOff?this.cutOffPath(t,n[i].cutOff):t;this.setAttr(e,t)},fillSetter:function(t,e,i){var n=i.nodeName;"SPAN"===n?i.style.color=t:"IMG"!==n&&(i.filled="none"!==t,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},opacitySetter:Et,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-ut(yt(t*xt)+1)+"px",i.top=ut(vt(t*xt))+"px"},strokeSetter:function(t,e,i){this.setAttr("strokecolor",this.renderer.color(t,i,e))},"stroke-widthSetter":function(t,e,i){i.stroked=!!t,this[e]=t,a(t)&&(t+="px"),this.setAttr("strokeweight",t)},titleSetter:function(t,e){this.setAttr(e,t)},visibilitySetter:function(t,e,i){"inherit"===t&&(t="visible"),this.shadows&&Bt(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,Ct||(i.style[e]=t?"visible":"hidden"),e="top"),i.style[e]=t},xSetter:function(t,e,i){this[e]=t,"x"===e?e="left":"y"===e&&(e="top"),this.updateClipping?(this[e]=t,this.updateClipping()):i.style[e]=t},zIndexSetter:function(t,e,i){i.style[e]=t}},at.VMLElement=se=v(E,se),se.prototype.ySetter=se.prototype.widthSetter=se.prototype.heightSetter=se.prototype.xSetter;var oe={Element:se,isIE8:_t.indexOf("MSIE 8.0")>-1,init:function(t,e,i,n){var s;if(this.alignedObjects=[],n=this.createElement(Ht).css($t(this.getStyle(n),{position:"relative"})),s=n.element,t.appendChild(n.element),this.isVML=!0,this.box=s,this.boxWrapper=n,this.gradients={},this.cache={},this.cacheKeys=[],this.setSize(e,i,!1),!ht.namespaces.hcv){ht.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{ht.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(o){ht.styleSheets[0].cssText+="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}}},isHidden:function(){return!this.box.offsetWidth},clipRect:function(t,e,i,n){var s=this.createElement(),r=o(t);return $t(s,{members:[],count:0,left:(r?t.x:t)+1,top:(r?t.y:e)+1,width:(r?t.width:i)-1,height:(r?t.height:n)-1,getCSS:function(t){var e=t.element,i=e.nodeName,t=t.inverted,n=this.top-("shape"===i?e.offsetTop:0),s=this.left,e=s+this.width,o=n+this.height,n={clip:"rect("+ut(t?s:n)+"px,"+ut(t?o:e)+"px,"+ut(t?e:o)+"px,"+ut(t?n:s)+"px)"};return!t&&Ct&&"DIV"===i&&$t(n,{width:e+"px",height:o+"px"}),n},updateClipping:function(){Bt(s.members,function(t){t.element&&t.css(s.getCSS(t))})}})},color:function(t,e,i,n){var s,o,r,a=this,l=/^rgba/,h="none";if(t&&t.linearGradient?r="gradient":t&&t.radialGradient&&(r="pattern"),r){var c,u,d,p,f,m,v,y,b=t.linearGradient||t.radialGradient,x="",t=t.stops,_=[],w=function(){o=['<fill colors="'+_.join(",")+'" opacity="',f,'" o:opacity2="',p,'" type="',r,'" ',x,'focus="100%" method="any" />'],g(a.prepVML(o),null,null,e)};if(d=t[0],y=t[t.length-1],d[0]>0&&t.unshift([0,d[1]]),y[0]<1&&t.push([1,y[1]]),Bt(t,function(t,e){l.test(t[1])?(s=L(t[1]),c=s.get("rgb"),u=s.get("a")):(c=t[1],u=1),_.push(100*t[0]+"% "+c),e?(f=u,m=c):(p=u,v=c)}),"fill"===i)if("gradient"===r)i=b.x1||b[0]||0,t=b.y1||b[1]||0,d=b.x2||b[2]||0,b=b.y2||b[3]||0,x='angle="'+(90-180*ct.atan((b-t)/(d-i))/bt)+'"',w();else{var k,h=b.r,C=2*h,S=2*h,D=b.cx,T=b.cy,M=e.radialReference,h=function(){M&&(k=n.getBBox(),D+=(M[0]-k.x)/k.width-.5,T+=(M[1]-k.y)/k.height-.5,C*=M[2]/k.width,S*=M[2]/k.height),x='src="'+$.global.VMLRadialGradientURL+'" size="'+C+","+S+'" origin="0.5,0.5" position="'+D+","+T+'" color2="'+v+'" ',w()};n.added?h():n.onAdd=h,h=m}else h=c}else l.test(t)&&"IMG"!==e.tagName?(s=L(t),o=["<",i,' opacity="',s.get("a"),'"/>'],g(this.prepVML(o),null,null,e),h=s.get("rgb")):(h=e.getElementsByTagName(i),h.length&&(h[0].opacity=1,h[0].type="solid"),h=t);return h},prepVML:function(t){var e=this.isIE8,t=t.join("");return e?(t=t.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />'),t=t.indexOf('style="')===-1?t.replace("/>",' style="display:inline-block;behavior:url(#default#VML);" />'):t.replace('style="','style="display:inline-block;behavior:url(#default#VML);')):t=t.replace("<","<hcv:"),t},text:ne.prototype.html,path:function(t){var e={coordsize:"10 10"};return r(t)?e.d=t:o(t)&&$t(e,t),this.createElement("shape").attr(e)}
12,circle:function(t,e,i){var n=this.symbol("circle");return o(t)&&(i=t.r,e=t.y,t=t.x),n.isCircle=!0,n.r=i,n.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,"class":"highcharts-"+t}),this.createElement(Ht).attr(e)},image:function(t,e,i,n,s){var o=this.createElement("img").attr({src:t});return arguments.length>1&&o.attr({x:e,y:i,width:n,height:s}),o},createElement:function(t){return"rect"===t?this.symbol(t):ne.prototype.createElement.call(this,t)},invertChild:function(t,e){var i=this,s=e.style,o="IMG"===t.tagName&&t.style;m(t,{flip:"x",left:n(s.width)-(o?n(o.top):1),top:n(s.height)-(o?n(o.left):1),rotation:-90}),Bt(t.childNodes,function(e){i.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,s){var o=s.start,r=s.end,a=s.r||i||n,i=s.innerR,n=vt(o),l=yt(o),h=vt(r),c=yt(r);return r-o===0?["x"]:(o=["wa",t-a,e-a,t+a,e+a,t+a*n,e+a*l,t+a*h,e+a*c],s.open&&!i&&o.push("e","M",t,e),o.push("at",t-i,e-i,t+i,e+i,t+i*h,e+i*c,t+i*n,e+i*l,"x","e"),o.isArc=!0,o)},circle:function(t,e,i,n,s){return s&&(i=n=2*s.r),s&&s.isCircle&&(t-=i/2,e-=n/2),["wa",t,e,t+i,e+n,t+i,e+n/2,t+i,e+n/2,"e"]},rect:function(t,e,i,n,s){return ne.prototype.symbols[u(s)&&s.r?"callout":"square"].call(0,t,e,i,n,s)}}};at.VMLRenderer=se=function(){this.init.apply(this,arguments)},se.prototype=i(ne.prototype,oe),Y=se}ne.prototype.measureSpanWidth=function(t,e){var i,n=ht.createElement("span");return i=ht.createTextNode(t),n.appendChild(i),m(n,e),this.box.appendChild(n),i=n.offsetWidth,T(n),i};var re;Pt&&(at.CanVGRenderer=se=function(){Tt="http://www.w3.org/1999/xhtml"},se.prototype.symbols={},re=function(){function t(){var t,i=e.length;for(t=0;t<i;t++)e[t]();e=[]}var e=[];return{push:function(i,n){0===e.length&&at.getScript(n,t),e.push(i)}}}(),Y=se),I.prototype={addLabel:function(){var t,e=this.axis,n=e.options,s=e.chart,o=e.categories,r=e.names,a=this.pos,l=n.labels,c=e.tickPositions,d=a===c[0],p=a===c[c.length-1],r=o?Ft(o[a],r[a],a):a,o=this.label,c=c.info;e.isDatetimeAxis&&c&&(t=n.dateTimeLabelFormats[c.higherRanks[a]||c.unitName]),this.isFirst=d,this.isLast=p,n=e.labelFormatter.call({axis:e,chart:s,isFirst:d,isLast:p,dateTimeLabelFormat:t,value:e.isLog?M(h(r)):r}),u(o)?o&&o.attr({text:n}):(this.labelLength=(this.label=o=u(n)&&l.enabled?s.renderer.text(n,0,0,l.useHTML).css(i(l.style)).add(e.labelGroup):null)&&o.getBBox().width,this.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e,i=this.axis,n=t.x,s=i.chart.chartWidth,o=i.chart.spacing,r=Ft(i.labelLeft,mt(i.pos,o[3])),o=Ft(i.labelRight,ft(i.pos+i.len,s-o[1])),a=this.label,l=this.rotation,h={left:0,center:.5,right:1}[i.labelAlign],c=a.getBBox().width,u=i.slotWidth,d=1,p={};l?l<0&&n-h*c<r?e=ut(n/vt(l*xt)-r):l>0&&n+h*c>o&&(e=ut((s-n)/vt(l*xt))):(s=n+(1-h)*c,n-h*c<r?u=t.x+u*(1-h)-r:s>o&&(u=o-t.x+u*h,d=-1),u=mt(i.slotWidth,u),u<i.slotWidth&&"center"===i.labelAlign&&(t.x+=d*(i.slotWidth-u-h*(i.slotWidth-mt(c,u)))),(c>u||i.autoRotation&&a.styles.width)&&(e=u)),e&&(p.width=e,i.options.labels.style.textOverflow||(p.textOverflow="ellipsis"),a.css(p))},getPosition:function(t,e,i,n){var s=this.axis,o=s.chart,r=n&&o.oldChartHeight||o.chartHeight;return{x:t?s.translate(e+i,null,null,n)+s.transB:s.left+s.offset+(s.opposite?(n&&o.oldChartWidth||o.chartWidth)-s.right-s.left:0),y:t?r-s.bottom+s.offset-(s.opposite?s.height:0):r-s.translate(e+i,null,null,n)-s.transB}},getLabelPosition:function(t,e,i,n,s,o,r,a){var l=this.axis,h=l.transA,c=l.reversed,d=l.staggerLines,p=l.tickRotCorr||{x:0,y:0},f=s.y;return u(f)||(f=2===l.side?p.y+8:f=vt(i.rotation*xt)*(p.y-i.getBBox(!1,0).height/2)),t=t+s.x+p.x-(o&&n?o*h*(c?-1:1):0),e=e+f-(o&&!n?o*h*(c?1:-1):0),d&&(i=r/(a||1)%d,l.opposite&&(i=d-i-1),e+=i*(l.labelOffset/d)),{x:t,y:ut(e)}},getMarkPath:function(t,e,i,n,s,o){return o.crispLine(["M",t,e,"L",t+(s?0:-i),e+(s?i:0)],n)},render:function(t,e,i){var n=this.axis,s=n.options,o=n.chart.renderer,r=n.horiz,a=this.type,l=this.label,h=this.pos,c=s.labels,u=this.gridLine,d=a?a+"Grid":"grid",p=a?a+"Tick":"tick",f=s[d+"LineWidth"],m=s[d+"LineColor"],g=s[d+"LineDashStyle"],v=s[p+"Length"],d=Ft(s[p+"Width"],!a&&n.isXAxis?1:0),y=s[p+"Color"],b=s[p+"Position"],p=this.mark,x=c.step,_=!0,w=n.tickmarkOffset,k=this.getPosition(r,h,w,e),C=k.x,k=k.y,S=r&&C===n.pos+n.len||!r&&k===n.pos?-1:1,i=Ft(i,1);this.isActive=!0,f&&(h=n.getPlotLinePath(h+w,f*S,e,!0),u===H&&(u={stroke:m,"stroke-width":f},g&&(u.dashstyle=g),a||(u.zIndex=1),e&&(u.opacity=0),this.gridLine=u=f?o.path(h).attr(u).add(n.gridGroup):null),!e&&u&&h&&u[this.isNew?"attr":"animate"]({d:h,opacity:i})),d&&v&&("inside"===b&&(v=-v),n.opposite&&(v=-v),a=this.getMarkPath(C,k,v,d*S,r,o),p?p.animate({d:a,opacity:i}):this.mark=o.path(a).attr({stroke:y,"stroke-width":d,opacity:i}).add(n.axisGroup)),l&&!isNaN(C)&&(l.xy=k=this.getLabelPosition(C,k,l,r,c,w,t,x),this.isFirst&&!this.isLast&&!Ft(s.showFirstLabel,1)||this.isLast&&!this.isFirst&&!Ft(s.showLastLabel,1)?_=!1:r&&!n.isRadial&&!c.step&&!c.rotation&&!e&&0!==i&&this.handleOverflow(k),x&&t%x&&(_=!1),_&&!isNaN(k.y)?(k.opacity=i,l[this.isNew?"attr":"animate"](k),this.isNew=!1):l.attr("y",-9999))},destroy:function(){D(this,this.axis)}},at.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},at.PlotLineOrBand.prototype={render:function(){var t,e=this,n=e.axis,s=n.horiz,o=e.options,r=o.label,a=e.label,h=o.width,c=o.to,d=o.from,p=u(d)&&u(c),f=o.value,m=o.dashStyle,g=e.svgElem,v=[],y=o.color,b=o.zIndex,x=o.events,_={},w=n.chart.renderer;if(n.isLog&&(d=l(d),c=l(c),f=l(f)),h)v=n.getPlotLinePath(f,h),_={stroke:y,"stroke-width":h},m&&(_.dashstyle=m);else{if(!p)return;v=n.getPlotBandPath(d,c,o),y&&(_.fill=y),o.borderWidth&&(_.stroke=o.borderColor,
13_["stroke-width"]=o.borderWidth)}if(u(b)&&(_.zIndex=b),g)v?(g.show(),g.animate({d:v})):(g.hide(),a&&(e.label=a=a.destroy()));else if(v&&v.length&&(e.svgElem=g=w.path(v).attr(_).add(),x))for(t in o=function(t){g.on(t,function(i){x[t].apply(e,[i])})},x)o(t);return r&&u(r.text)&&v&&v.length&&n.width>0&&n.height>0&&!v.flat?(r=i({align:s&&p&&"center",x:s?!p&&4:10,verticalAlign:!s&&p&&"middle",y:s?p?16:10:p?6:-4,rotation:s&&!p&&90},r),a||(_={align:r.textAlign||r.align,rotation:r.rotation},u(b)&&(_.zIndex=b),e.label=a=w.text(r.text,0,0,r.useHTML).attr(_).css(r.style).add()),n=[v[1],v[4],p?v[6]:v[1]],p=[v[2],v[5],p?v[7]:v[2]],v=C(n),s=C(p),a.align(r,!1,{x:v,y:s,width:S(n)-v,height:S(p)-s}),a.show()):a&&a.hide(),e},destroy:function(){c(this.axis.plotLinesAndBands,this),delete this.axis,D(this)}};var ae=at.Axis=function(){this.init.apply(this,arguments)};ae.prototype={defaultOptions:{dateTimeLabelFormats:{millisecond:"%H:%M:%S.%L",second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:!1,gridLineColor:"#D8D8D8",labels:{enabled:!0,style:{color:"#606060",cursor:"default",fontSize:"11px"},x:0,y:15},lineColor:"#C0D0E0",lineWidth:1,minPadding:.01,maxPadding:.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:!1,tickColor:"#C0D0E0",tickLength:10,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",title:{align:"middle",style:{color:"#707070"}},type:"linear"},defaultYAxisOptions:{endOnTick:!0,gridLineWidth:1,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8,y:3},lineWidth:0,maxPadding:.05,minPadding:.05,startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return at.numberFormat(this.total,-1)},style:i(ee.line.dataLabels.style,{color:"#000000"})}},defaultLeftAxisOptions:{labels:{x:-15,y:null},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15,y:null},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0,y:null},title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0,y:-15},title:{rotation:0}},init:function(t,e){var i=e.isX;this.chart=t,this.horiz=t.inverted?!i:i,this.coll=(this.isXAxis=i)?"xAxis":"yAxis",this.opposite=e.opposite,this.side=e.side||(this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var n=this.options,s=n.type;this.labelFormatter=n.labels.formatter||this.defaultLabelFormatter,this.userOptions=e,this.minPixelPadding=0,this.reversed=n.reversed,this.visible=n.visible!==!1,this.zoomEnabled=n.zoomEnabled!==!1,this.categories=n.categories||"category"===s,this.names=this.names||[],this.isLog="logarithmic"===s,this.isDatetimeAxis="datetime"===s,this.isLinked=u(n.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=n.minRange||n.maxZoom,this.range=n.range,this.offset=n.offset||0,this.stacks={},this.oldStacks={},this.stacksTouched=0,this.min=this.max=null,this.crosshair=Ft(n.crosshair,p(t.options.tooltip.crosshairs)[i?0:1],!1);var o,n=this.options.events;Ut(this,t.axes)===-1&&(i&&!this.isColorAxis?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),t[this.coll].push(this)),this.series=this.series||[],t.inverted&&i&&this.reversed===H&&
13(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(o in n)Xt(this,o,n[o]);this.isLog&&(this.val2lin=l,this.lin2val=h)},setOptions:function(t){this.options=i(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],i($[this.coll],t))},defaultLabelFormatter:function(){var t,e=this.axis,i=this.value,n=e.categories,s=this.dateTimeLabelFormat,o=$.lang.numericSymbols,r=o&&o.length,a=e.options.labels.format,e=e.isLog?i:e.tickInterval;if(a)t=x(a,this);else if(n)t=i;else if(s)t=F(s,i);else if(r&&e>=1e3)for(;r--&&t===H;)n=Math.pow(1e3,r+1),e>=n&&10*i%n===0&&null!==o[r]&&(t=at.numberFormat(i/n,-1)+o[r]);return t===H&&(t=gt(i)>=1e4?at.numberFormat(i,-1):at.numberFormat(i,-1,H,"")),t},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.threshold=null,t.softThreshold=!t.isXAxis,t.buildStacks&&t.buildStacks(),Bt(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var n,s=i.options,o=s.threshold;t.hasVisibleSeries=!0,t.isLog&&o<=0&&(o=null),t.isXAxis?(s=i.xData,s.length&&(t.dataMin=mt(Ft(t.dataMin,s[0]),C(s)),t.dataMax=ft(Ft(t.dataMax,s[0]),S(s)))):(i.getExtremes(),n=i.dataMax,i=i.dataMin,u(i)&&u(n)&&(t.dataMin=mt(Ft(t.dataMin,i),i),t.dataMax=ft(Ft(t.dataMax,n),n)),u(o)&&(t.threshold=o),s.softThreshold&&!t.isLog||(t.softThreshold=!1))}})},translate:function(t,e,i,n,s,o){var r=this.linkedParent||this,l=1,h=0,c=n?r.oldTransA:r.transA,n=n?r.oldMin:r.min,u=r.minPixelPadding,s=(r.doPostTranslate||r.isLog&&s)&&r.lin2val;return c||(c=r.transA),i&&(l*=-1,h=r.len),r.reversed&&(l*=-1,h-=l*(r.sector||r.len)),e?(t=t*l+h,t-=u,t=t/c+n,s&&(t=r.lin2val(t))):(s&&(t=r.val2lin(t)),"between"===o&&(o=.5),t=l*(t-n)*c+h+l*u+(a(o)?c*o*r.pointRange:0)),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t,e,i,n,s){var o,r,a,l=this.chart,h=this.left,c=this.top,u=i&&l.oldChartHeight||l.chartHeight,d=i&&l.oldChartWidth||l.chartWidth;o=this.transB;var p=function(t,e,i){return(t<e||t>i)&&(n?t=mt(ft(e,t),i):a=!0),t},s=Ft(s,this.translate(t,null,null,i)),t=i=ut(s+o);return o=r=ut(u-s-o),isNaN(s)?a=!0:this.horiz?(o=c,r=u-this.bottom,t=i=p(t,h,h+this.width)):(t=h,i=d-this.right,o=r=p(o,c,c+this.height)),a&&!n?null:l.renderer.crispLine(["M",t,o,"L",i,r],e||1)},getLinearTickPositions:function(t,e,i){var n,s=M(dt(e/t)*t),o=M(pt(i/t)*t),r=[];if(e===i&&a(e))return[e];for(e=s;e<=o&&(r.push(e),e=M(e+t),e!==n);)n=e;return r},getMinorTickPositions:function(){var t,e=this.options,i=this.tickPositions,n=this.minorTickInterval,s=[],o=this.pointRangePadding||0;t=this.min-o;var o=this.max+o,r=o-t;if(r&&r/n<this.len/3)if(this.isLog)for(o=i.length,t=1;t<o;t++)s=s.concat(this.getLogTickPositions(n,i[t-1],i[t],!0));else if(this.isDatetimeAxis&&"auto"===e.minorTickInterval)s=s.concat(this.getTimeTicks(this.normalizeTimeTickInterval(n),t,o,e.startOfWeek));else for(i=t+(i[0]-t)%n;i<=o;i+=n)s.push(i);return 0!==s.length&&this.trimTicks(s,e.startOnTick,e.endOnTick),s},adjustForMinRange:function(){var t,e,i,n,s,o,r,a=this.options,l=this.min,h=this.max,c=this.dataMax-this.dataMin>=this.minRange;this.isXAxis&&this.minRange===H&&!this.isLog&&(u(a.min)||u(a.max)?this.minRange=null:(Bt(this.series,function(t){for(s=t.xData,i=o=t.xIncrement?1:s.length-1;i>0;i--)n=s[i]-s[i-1],(e===H||n<e)&&(e=n)}),this.minRange=mt(5*e,this.dataMax-this.dataMin))),h-l<this.minRange&&(r=this.minRange,t=(r-h+l)/2,t=[l-t,Ft(a.min,l-t)],c&&(t[2]=this.dataMin),l=S(t),h=[l+r,Ft(a.max,l+r)],c&&(h[2]=this.dataMax),h=C(h),h-l<r&&(t[0]=h-r,t[1]=Ft(a.min,h-r),l=S(t))),this.min=l,this.max=h},setAxisTranslation:function(t){var e,i=this,n=i.max-i.min,o=i.axisPointRange||0,r=0,a=0,l=i.linkedParent,h=!!i.categories,c=i.transA,d=i.isXAxis;(d||h||o)&&(l?(r=l.minPointOffset,a=l.pointRangePadding):(Bt(i.series,function(t){var i=t.closestPointRange;!t.noSharedTooltip&&u(i)&&(e=u(e)?mt(e,i):i)}),Bt(i.series,function(t){var n=h?1:d?Ft(t.options.pointRange,e,0):i.axisPointRange||0,t=t.options.pointPlacement;o=ft(o,n),i.single||(r=ft(r,s(t)?0:n/2),a=ft(a,"on"===t?0:n))})),l=i.ordinalSlope&&e?i.ordinalSlope/e:1,i.minPointOffset=r*=l,i.pointRangePadding=a*=l,i.pointRange=mt(o,n),d&&(i.closestPointRange=e)),t&&(i.oldTransA=c),i.translationSlope=i.transA=c=i.len/(n+a||1),i.transB=i.horiz?i.left
13:i.bottom,i.minPixelPadding=c*r},minFromRange:function(){return this.max-this.range},setTickInterval:function(t){var i,n,s,o,r=this,h=r.chart,c=r.options,d=r.isLog,p=r.isDatetimeAxis,f=r.isXAxis,m=r.isLinked,g=c.maxPadding,v=c.minPadding,y=c.tickInterval,b=c.tickPixelInterval,x=r.categories,k=r.threshold,C=r.softThreshold;!p&&!x&&!m&&this.getTickAmount(),s=Ft(r.userMin,c.min),o=Ft(r.userMax,c.max),m?(r.linkedParent=h[r.coll][c.linkedTo],h=r.linkedParent.getExtremes(),r.min=Ft(h.min,h.dataMin),r.max=Ft(h.max,h.dataMax),c.type!==r.linkedParent.options.type&&e(11,1)):(!C&&u(k)&&(r.dataMin>=k?(i=k,v=0):r.dataMax<=k&&(n=k,g=0)),r.min=Ft(s,i,r.dataMin),r.max=Ft(o,n,r.dataMax)),d&&(!t&&mt(r.min,Ft(r.dataMin,r.min))<=0&&e(10,1),r.min=M(l(r.min),15),r.max=M(l(r.max),15)),r.range&&u(r.max)&&(r.userMin=r.min=s=ft(r.min,r.minFromRange()),r.userMax=o=r.max,r.range=null),r.beforePadding&&r.beforePadding(),r.adjustForMinRange(),x||r.axisPointRange||r.usePercentage||m||!u(r.min)||!u(r.max)||!(h=r.max-r.min)||(!u(s)&&v&&(r.min-=h*v),!u(o)&&g&&(r.max+=h*g)),a(c.floor)&&(r.min=ft(r.min,c.floor)),a(c.ceiling)&&(r.max=mt(r.max,c.ceiling)),C&&u(r.dataMin)&&(k=k||0,!u(s)&&r.min<k&&r.dataMin>=k?r.min=k:!u(o)&&r.max>k&&r.dataMax<=k&&(r.max=k)),r.tickInterval=r.min===r.max||void 0===r.min||void 0===r.max?1:m&&!y&&b===r.linkedParent.options.tickPixelInterval?y=r.linkedParent.tickInterval:Ft(y,this.tickAmount?(r.max-r.min)/ft(this.tickAmount-1,1):void 0,x?1:(r.max-r.min)*b/ft(r.len,b)),f&&!t&&Bt(r.series,function(t){t.processData(r.min!==r.oldMin||r.max!==r.oldMax)}),r.setAxisTranslation(!0),r.beforeSetTickPositions&&r.beforeSetTickPositions(),r.postProcessTickInterval&&(r.tickInterval=r.postProcessTickInterval(r.tickInterval)),r.pointRange&&!y&&(r.tickInterval=ft(r.pointRange,r.tickInterval)),t=Ft(c.minTickInterval,r.isDatetimeAxis&&r.closestPointRange),!y&&r.tickInterval<t&&(r.tickInterval=t),p||d||y||(r.tickInterval=w(r.tickInterval,null,_(r.tickInterval),Ft(c.allowDecimals,!(r.tickInterval>.5&&r.tickInterval<5&&r.max>1e3&&r.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(r.tickInterval=r.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e,i=this.options,n=i.tickPositions,s=i.tickPositioner,o=i.startOnTick,r=i.endOnTick;this.tickmarkOffset=this.categories&&"between"===i.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i.minorTickInterval&&this.tickInterval?this.tickInterval/5:i.minorTickInterval,this.tickPositions=t=n&&n.slice(),!t&&(t=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,i.units),this.min,this.max,i.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),t.length>this.len&&(t=[t[0],t.pop()]),this.tickPositions=t,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=t=s),this.isLinked||(this.trimTicks(t,o,r),this.min===this.max&&u(this.min)&&!this.tickAmount&&(e=!0,this.min-=.5,this.max+=.5),this.single=e,!n&&!s&&this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],s=t[t.length-1],o=this.minPointOffset||0;e?this.min=n:this.min-o>n&&t.shift(),i?this.max=s:this.max+o<s&&t.pop(),0===t.length&&u(n)&&t.push((s+n)/2)},alignToOthers:function(){var t,e={},i=this.options;return this.chart.options.chart.alignTicks!==!1&&i.alignTicks!==!1&&Bt(this.chart[this.coll],function(i){var n=i.options,n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join(",");i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!u(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=pt(this.len/i)+1),e<4&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,s=e&&e.length;if(s<i){for(;e.length<i;)e.push(M(e[e.length-1]+t));this.transA*=(s-1)/(i-1),this.max=e[e.length-1]}else s>i&&(this.tickInterval*=2,this.setTickPositions());if(u(n)){for(t=i=e.length;t--;)(3===n&&t%2===1||n<=2&&t>0&&t<i-1)&&e.splice(t,1);this.finalTickAmt=H}},setScale:function(){var t,e;this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),e=this.len!==this.oldAxisLength,Bt(this.series,function(e){(e.isDirtyData||e.isDirty||e.xAxis.isDirty)&&
13(t=!0)}),e||t||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=e||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks()},setExtremes:function(t,e,i,n,s){var o=this,r=o.chart,i=Ft(i,!0);Bt(o.series,function(t){delete t.kdTree}),s=$t(s,{min:t,max:e}),Qt(o,"setExtremes",s,function(){o.userMin=t,o.userMax=e,o.eventArgs=s,i&&r.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,s=this.options,o=mt(i,Ft(s.min,i)),s=ft(n,Ft(s.max,n));return this.allowZoomOutside||(u(i)&&t<=o&&(t=o),u(n)&&e>=s&&(e=s)),this.displayBtn=t!==H||e!==H,this.setExtremes(t,e,!1,H,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsetLeft||0,n=this.horiz,s=Ft(e.width,t.plotWidth-i+(e.offsetRight||0)),o=Ft(e.height,t.plotHeight),r=Ft(e.top,t.plotTop),e=Ft(e.left,t.plotLeft+i),i=/%$/;i.test(o)&&(o=parseFloat(o)/100*t.plotHeight),i.test(r)&&(r=parseFloat(r)/100*t.plotHeight+t.plotTop),this.left=e,this.top=r,this.width=s,this.height=o,this.bottom=t.chartHeight-o-r,this.right=t.chartWidth-s-e,this.len=ft(n?s:o,0),this.pos=n?e:r},getExtremes:function(){var t=this.isLog;return{min:t?M(h(this.min)):this.min,max:t?M(h(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?h(this.min):this.min,e=e?h(this.max):this.max;return null===t?t=e<0?e:i:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){return t=(Ft(t,0)-90*this.side+720)%360,t>15&&t<165?"right":t>195&&t<345?"left":"center"},unsquish:function(){var t,e,i,n=this.ticks,s=this.options.labels,o=this.horiz,r=this.tickInterval,a=r,l=this.len/(((this.categories?1:0)+this.max-this.min)/r),h=s.rotation,c=this.chart.renderer.fontMetrics(s.style.fontSize,n[0]&&n[0].label),d=Number.MAX_VALUE,p=function(t){return t/=l||1,t=t>1?pt(t):1,t*r};return o?(i=!s.staggerLines&&!s.step&&(u(h)?[h]:l<Ft(s.autoRotationLimit,80)&&s.autoRotation))&&Bt(i,function(i){var n;(i===h||i&&i>=-90&&i<=90)&&(e=p(gt(c.h/yt(xt*i))),n=e+gt(i/360),n<d&&(d=n,t=i,a=e))}):s.step||(a=p(c.h)),this.autoRotation=i,this.labelRotation=Ft(t,h),a},renderUnsquish:function(){var t,e,n,o=this.chart,r=o.renderer,a=this.tickPositions,l=this.ticks,h=this.options.labels,c=this.horiz,u=o.margin,d=this.categories?a.length:a.length-1,u=this.slotWidth=c&&(h.step||0)<2&&!h.rotation&&(this.staggerLines||1)*o.plotWidth/d||!c&&(u[3]&&u[3]-o.spacing[3]||.33*o.chartWidth),p=ft(1,ut(u-2*(h.padding||5))),f={},d=r.fontMetrics(h.style.fontSize,l[0]&&l[0].label),m=h.style.textOverflow,g=0;if(s(h.rotation)||(f.rotation=h.rotation||0),this.autoRotation)Bt(a,function(t){(t=l[t])&&t.labelLength>g&&(g=t.labelLength)}),g>p&&g>d.h?f.rotation=this.labelRotation:this.labelRotation=0;else if(u&&(t={width:p+"px"},!m))for(t.textOverflow="clip",e=a.length;!c&&e--;)n=a[e],(p=l[n].label)&&("ellipsis"===p.styles.textOverflow&&p.css({textOverflow:"clip"}),(p.getBBox().height>this.len/a.length-(d.h-d.f)||l[n].labelLength>u)&&(p.specCss={textOverflow:"ellipsis"}));f.rotation&&(t={width:(g>
13.5*o.chartHeight?.33*o.chartHeight:o.chartHeight)+"px"},!m)&&(t.textOverflow="ellipsis"),this.labelAlign=f.align=h.align||this.autoLabelAlign(this.labelRotation),Bt(a,function(e){var n=(e=l[e])&&e.label;n&&(n.attr(f),t&&n.css(i(t,n.specCss)),delete n.specCss,e.rotation=f.rotation)}),this.tickRotCorr=r.rotCorr(d.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.hasVisibleSeries||u(this.min)&&u(this.max)&&!!this.tickPositions},getOffset:function(){var t,e,i,n,s=this,o=s.chart,r=o.renderer,a=s.options,l=s.tickPositions,h=s.ticks,c=s.horiz,d=s.side,p=o.inverted?[1,0,3,2][d]:d,f=0,m=0,g=a.title,v=a.labels,y=0,b=s.opposite,x=o.axisOffset,o=o.clipOffset,_=[-1,1,1,-1][d],w=s.axisParent;if(t=s.hasData(),s.showAxis=e=t||Ft(a.showEmpty,!0),s.staggerLines=s.horiz&&v.staggerLines,s.axisGroup||(s.gridGroup=r.g("grid").attr({zIndex:a.gridZIndex||1}).add(w),s.axisGroup=r.g("axis").attr({zIndex:a.zIndex||2}).add(w),s.labelGroup=r.g("axis-labels").attr({zIndex:v.zIndex||7}).addClass("highcharts-"+s.coll.toLowerCase()+"-labels").add(w)),t||s.isLinked)Bt(l,function(t){h[t]?h[t].addLabel():h[t]=new I(s,t)}),s.renderUnsquish(),v.reserveSpace!==!1&&(0===d||2===d||{1:"left",3:"right"}[d]===s.labelAlign||"center"===s.labelAlign)&&Bt(l,function(t){y=ft(h[t].getLabelSize(),y)}),s.staggerLines&&(y*=s.staggerLines,s.labelOffset=y*(s.opposite?-1:1));else for(n in h)h[n].destroy(),delete h[n];g&&g.text&&g.enabled!==!1&&(s.axisTitle||(s.axisTitle=r.text(g.text,0,0,g.useHTML).attr({zIndex:7,rotation:g.rotation||0,align:g.textAlign||{low:b?"right":"left",middle:"center",high:b?"left":"right"}[g.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(g.style).add(s.axisGroup),s.axisTitle.isNew=!0),e&&(f=s.axisTitle.getBBox()[c?"height":"width"],i=g.offset,m=u(i)?0:Ft(g.margin,c?5:10)),s.axisTitle[e?"show":"hide"](!0)),s.offset=_*Ft(a.offset,x[d]),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},r=2===d?s.tickRotCorr.y:0,c=Math.abs(y)+m+(y&&_*(c?Ft(v.y,s.tickRotCorr.y+8):v.x)-r),s.axisTitleMargin=Ft(i,c),x[d]=ft(x[d],s.axisTitleMargin+f+_*s.offset,c),a=a.offset?0:2*dt(a.lineWidth/2),o[p]=ft(o[p],a)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,s=this.horiz,o=this.left+(i?this.width:0)+n,n=e.chartHeight-this.bottom-(i?this.height:0)+n;return i&&(t*=-1),e.renderer.crispLine(["M",s?this.left:o,s?n:this.top,"L",s?e.chartWidth-this.right:o,s?n:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,s=this.len,o=this.options.title,r=t?e:i,a=this.opposite,l=this.offset,h=o.x||0,c=o.y||0,u=n(o.style.fontSize||12),s={low:r+(t?0:s),middle:r+s/2,high:r+(t?s:0)}[o.align],e=(t?i+this.height:e)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+(2===this.side?u:0);return{x:t?s+h:e+(a?this.width:0)+l+h,y:t?e+c-(a?this.height:0)+l:s+c}},render:function(){var t,e,i,n=this,s=n.chart,o=s.renderer,r=n.options,a=n.isLog,l=n.isLinked,c=n.tickPositions,d=n.axisTitle,p=n.ticks,m=n.minorTicks,g=n.alternateBands,v=r.stackLabels,y=r.alternateGridColor,b=n.tickmarkOffset,x=r.lineWidth,_=s.hasRendered&&u(n.oldMin)&&!isNaN(n.oldMin),w=n.showAxis,k=o.globalAnimation;n.labelEdge.length=0,n.overlap=!1,Bt([p,m,g],function(t){for(var e in t)t[e].isActive=!1}),(n.hasData()||l)&&(n.minorTickInterval&&!n.categories&&Bt(n.getMinorTickPositions(),function(t){m[t]||(m[t]=new I(n,t,"minor")),_&&m[t].isNew&&m[t].render(null,!0),m[t].render(null,!1,1)}),c.length&&(Bt(c,function(t,e){(!l||t>=n.min&&t<=n.max)&&(p[t]||(p[t]=new I(n,t)),_&&p[t].isNew&&p[t].render(e,!0,.1),p[t].render(e))}),b&&(0===n.min||n.single))&&(p[-1]||(p[-1]=new I(n,(-1),null,(!0))),p[-1].render(-1)),y&&Bt(c,function(t,o){i=c[o+1]!==H?c[o+1]+b:n.max-b,o%2===0&&t<n.max&&i<=n.max+(s.polar?-b:b)&&(g[t]||(g[t]=new at.PlotLineOrBand(n)),e=t+b,g[t].options={from:a?h(e):e,to:a?h(i):i,color:y},g[t].render(),g[t].isActive=!0)}),n._addedPlotLB||(Bt((r.plotLines||[]).concat(r.plotBands||[]),function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),Bt([p,m,g],function(t){var e,i,n=[],o=k?k.duration||500:0;for(e in t)t[e].isActive||(t[e].render(e,!1,0),t[e].isActive=!1,n.push(e));f(function(){for(i=n.length;i--;)t[n[i]]&&!t[n[i]].isActive&&(t[n[i]].destroy(),delete t[n[i]])},t!==g&&s.hasRendered&&o?o:0)}),x&&(t=n.getLinePath(x),n.axisLine?n.axisLine.animate({d:t}):n.axisLine=o.path(t).attr({stroke:r.lineColor,"stroke-width":x,zIndex:7}).add(n.axisGroup),n.axisLine[w?"show":"hide"](!0)),d&&w&&(d[d.isNew?"attr":"animate"](n.getTitlePosition()),d.isNew=!1),v&&v.enabled&&n.renderStackTotals(),n.isDirty=!1},redraw:function(){this.visible&&(this.render(),Bt(this.plotLinesAndBands,function(t){t.render()})),Bt(this.series,function(t){t.isDirty=!0})},destroy:function(t){var e,i=this,n=i.stacks,s=i.plotLinesAndBands;t||Kt(i);for(e in n)D(n[e]),n[e]=null;for(Bt([i.ticks,i.minorTicks,i.alternateBands],function(t){D(t)}),t=s.length;t--;)s[t].destroy();Bt("stackTotalGroup,axisLine,axisTitle,axisGroup,cross,gridGroup,labelGroup".split(","),function(t){i[t]&&(i[t]=i[t].destroy())}),this.cross&&this.cross.destroy()},drawCrosshair:function(t,e){var i,n,s,o=this.crosshair;!this.crosshair||(u(e)||!Ft(o.snap,!0))===!1||e&&e.series&&e.series[this.coll]!==this?this.hideCrosshair():(Ft(o.snap,!0)?u(e)&&(i=this.isXAxis?e.plotX:this.len-e.plotY):i=this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos,i=this.isRadial?this.getPlotLinePath(this.isXAxis?e.x:Ft(e.stackY,e.y))||null:this.getPlotLinePath(null,null,null,null,i)||null,null===i?this.hideCrosshair():(n=this.categories&&!this.isRadial,s=Ft(o.width,n?this.transA:1),this.cross?this.cross.attr({d:i,visibility:"visible","stroke-width":s}):(n={"stroke-width":s,stroke:o.color||(n?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:Ft(o.zIndex,2)},o.dashStyle&&(n.dashstyle=o.dashStyle),this.cross=this.chart.renderer.path(i).attr(n).add())))},hideCrosshair:function(){this.cross&&this.cross.hide()}},$t(ae.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0);return n&&i?(n.flat=n.toString()===i.toString(),n.push(i[4],i[5],i[1],i[2])):n=null,n},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(t,e){var i=new at.PlotLineOrBand(this,t).render(),n=this.userOptions;return i&&(e&&(n[e]=n[e]||[],n[e].push(t)),this.plotLinesAndBands.push(i)),i},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,s=e.length;s--;)e[s].id===t&&e[s].destroy();Bt([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(s=e.length;s--;)e[s].id===t&&c(e,e[s])})}}
13),ae.prototype.getTimeTicks=function(t,e,i,n){var s,o=[],r={},a=$.global.useUTC,l=new U(e-b(e)),h=t.unitRange,c=t.count;if(u(e)){l[tt](h>=W.second?0:c*dt(l.getMilliseconds()/c)),h>=W.second&&l[et](h>=W.minute?0:c*dt(l.getSeconds()/c)),h>=W.minute&&l[it](h>=W.hour?0:c*dt(l[q]()/c)),h>=W.hour&&l[nt](h>=W.day?0:c*dt(l[X]()/c)),h>=W.day&&l[st](h>=W.month?1:c*dt(l[Q]()/c)),h>=W.month&&(l[ot](h>=W.year?0:c*dt(l[Z]()/c)),s=l[J]()),h>=W.year&&(s-=s%c,l[rt](s)),h===W.week&&l[st](l[Q]()-l[K]()+Ft(n,1)),e=1,(G||V)&&(l=l.getTime(),l=new U(l+b(l))),s=l[J]();for(var n=l.getTime(),d=l[Z](),p=l[Q](),f=(W.day+(a?b(l):6e4*l.getTimezoneOffset()))%W.day;n<i;)o.push(n),h===W.year?n=B(s+e*c,0):h===W.month?n=B(s,d+e*c):a||h!==W.day&&h!==W.week?n+=h*c:n=B(s,d,p+e*c*(h===W.day?1:7)),e++;o.push(n),Bt(Gt(o,function(t){return h<=W.hour&&t%W.day===f}),function(t){r[t]="day"})}return o.info=$t(t,{higherRanks:r,totalRange:h*c}),o},ae.prototype.normalizeTimeTickInterval=function(t,e){var i,n=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]],s=n[n.length-1],o=W[s[0]],r=s[1];for(i=0;i<n.length&&(s=n[i],o=W[s[0]],r=s[1],!(n[i+1]&&t<=(o*r[r.length-1]+W[n[i+1][0]])/2));i++);return o===W.year&&t<5*o&&(r=[1,2,5]),n=w(t/o,r,"year"===s[0]?ft(_(t/o),1):1),{unitRange:o,count:n,unitName:s[0]}},ae.prototype.getLogTickPositions=function(t,e,i,n){var s=this.options,o=this.len,r=[];if(n||(this._minorAutoInterval=null),t>=.5)t=ut(t),r=this.getLinearTickPositions(t,e,i);else if(t>=.08)for(var a,c,u,d,p,o=dt(e),s=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];o<i+1&&!p;o++)for(c=s.length,a=0;a<c&&!p;a++)u=l(h(o)*s[a]),u>e&&(!n||d<=i)&&d!==H&&r.push(d),d>i&&(p=!0),d=u;else e=h(e),i=h(i),t=s[n?"minorTickInterval":"tickInterval"],t=Ft("auto"===t?null:t,this._minorAutoInterval,(i-e)*(s.tickPixelInterval/(n?5:1))/((n?o/this.tickPositions.length:o)||1)),t=w(t,null,_(t)),r=qt(this.getLinearTickPositions(t,e,i),l),n||(this._minorAutoInterval=t/5);return n||(this.tickInterval=t),r};var le=at.Tooltip=function(){this.init.apply(this,arguments)};le.prototype={init:function(t,e){var i=e.borderWidth,s=e.style,o=n(s.padding);this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,e.shape||"callout",null,null,e.useHTML,null,"tooltip").attr({padding:o,fill:e.backgroundColor,"stroke-width":i,r:e.borderRadius,zIndex:8}).css(s).css({padding:0}).add().attr({y:-9999}),Pt||this.label.shadow(e.shadow),this.shared=e.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var s=this,o=s.now,r=s.options.animation!==!1&&!s.isHidden&&(gt(t-o.x)>1||gt(e-o.y)>1),a=s.followPointer||s.len>1;$t(o,{x:r?(2*o.x+t)/3:t,y:r?(o.y+e)/2:e,anchorX:a?H:r?(2*o.anchorX+i)/3:i,anchorY:a?H:r?(o.anchorY+n)/2:n}),s.label.attr(o),r&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(t,e,i,n)},32))},hide:function(t){var e=this;clearTimeout(this.hideTimer),t=Ft(t,this.options.hideDelay,500),this.isHidden||(this.hideTimer=f(function(){e.label[t?"fadeOut":"hide"](),e.isHidden=!0},t))},getAnchor:function(t,e){var i,n,s,o=this.chart,r=o.inverted,a=o.plotTop,l=o.plotLeft,h=0,c=0,t=p(t);return i=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===H&&(e=o.pointer.normalize(e)),i=[e.chartX-o.plotLeft,e.chartY-a]),i||(Bt(t,function(t){n=t.series.yAxis,s=t.series.xAxis,h+=t.plotX+(!r&&s?s.left-l:0),c+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!r&&n?n.top-a:0)}),h/=t.length,c/=t.length,i=[r?o.plotWidth-c:h,this.shared&&!r&&t.length>1&&e?e.chartY-a:r?o.plotHeight-h:c]),qt(i,ut)},getPosition:function(t,e,i){var n,s=this.chart,o=this.distance,r={},a=i.h||0,l=["y",s.chartHeight,e,i.plotY+s.plotTop,s.plotTop,s.plotTop+s.plotHeight],h=["x",s.chartWidth,t,i.plotX+s.plotLeft,s.plotLeft,s.plotLeft+s.plotWidth],c=Ft(i.ttBelow,s.inverted&&!i.negative||!s.inverted&&i.negative),u=function(t,e,i,n,s,l){var h=i<n-o,u=n+o+i<e,d=n-o-i;
13if(n+=o,c&&u)r[t]=n;else if(!c&&h)r[t]=d;else if(h)r[t]=mt(l-i,d-a<0?d:d-a);else{if(!u)return!1;r[t]=ft(s,n+a+i>e?n:n+a)}},d=function(t,e,i,n){var s;return n<o||n>e-o?s=!1:r[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2,s},p=function(t){var e=l;l=h,h=e,n=t},f=function(){u.apply(0,l)!==!1?d.apply(0,h)===!1&&!n&&(p(!0),f()):n?r.x=r.y=0:(p(!0),f())};return(s.inverted||this.len>1)&&p(),f(),r},defaultFormatter:function(t){var e,i=this.points||p(this);return e=[t.tooltipFooterHeaderFormatter(i[0])],e=e.concat(t.bodyFormatter(i)),e.push(t.tooltipFooterHeaderFormatter(i[0],!0)),e.join("")},refresh:function(t,e){var i,n,s,o,r=this.chart,a=this.label,l=this.options,h={},c=[];o=l.formatter||this.defaultFormatter;var u,h=r.hoverPoints,d=this.shared;clearTimeout(this.hideTimer),this.followPointer=p(t)[0].series.tooltipOptions.followPointer,s=this.getAnchor(t,e),i=s[0],n=s[1],!d||t.series&&t.series.noSharedTooltip?h=t.getLabelConfig():(r.hoverPoints=t,h&&Bt(h,function(t){t.setState()}),Bt(t,function(t){t.setState("hover"),c.push(t.getLabelConfig())}),h={x:t[0].category,y:t[0].y},h.points=c,this.len=c.length,t=t[0]),o=o.call(h,this),h=t.series,this.distance=Ft(h.tooltipOptions.distance,16),o===!1?this.hide():(this.isHidden&&(te(a),a.attr("opacity",1).show()),a.attr({text:o}),u=l.borderColor||t.color||h.color||"#606060",a.attr({stroke:u}),this.updatePosition({plotX:i,plotY:n,negative:t.negative,ttBelow:t.ttBelow,h:s[2]||0}),this.isHidden=!1),Qt(r,"tooltipRefresh",{text:o,x:i+r.plotLeft,y:n+r.plotTop,borderColor:u})},updatePosition:function(t){var e=this.chart,i=this.label,i=(this.options.positioner||this.getPosition).call(this,i.width,i.height,t);this.move(ut(i.x),ut(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getXDateFormat:function(t,e,i){var n,s,o,e=e.dateTimeLabelFormats,r=i&&i.closestPointRange,a={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";if(r){o=F("%m-%d %H:%M:%S.%L",t.x);for(s in W){if(r===W.week&&+F("%w",t.x)===i.options.startOfWeek&&"00:00:00.000"===o.substr(6)){s="week";break}if(W[s]>r){s=l;break}if(a[s]&&o.substr(a[s])!=="01-01 00:00:00.000".substr(a[s]))break;"week"!==s&&(l=s)}s&&(n=e[s])}else n=e.day;return n||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=t.series,s=n.tooltipOptions,o=s.xDateFormat,r=n.xAxis,l=r&&"datetime"===r.options.type&&a(t.key),i=s[i+"Format"];return l&&!o&&(o=this.getXDateFormat(t,s,r)),l&&o&&(i=i.replace("{point.key}","{point.key:"+o+"}")),x(i,{point:t,series:n})},bodyFormatter:function(t){return qt(t,function(t){var e=t.series.tooltipOptions;return(e.pointFormatter||t.point.tooltipFormatter).call(t.point,e.pointFormat)})}};var he;j=ht.documentElement.ontouchstart!==H;var ce=at.Pointer=function(t,e){this.init(t,e)};if(ce.prototype={init:function(t,e){var i,n=e.chart,s=n.events,o=Pt?"":n.zoomType,n=t.inverted;this.options=e,this.chart=t,this.zoomX=i=/x/.test(o),this.zoomY=o=/y/.test(o),this.zoomHor=i&&!n||o&&n,this.zoomVert=o&&!n||i&&n,this.hasZoom=i||o,this.runChartClick=s&&!!s.click,this.pinchDown=[],this.lastValidTouch={},at.Tooltip&&e.tooltip.enabled&&(t.tooltip=new le(t,e.tooltip),this.followTouchMove=Ft(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,e){var i,n,t=t||window.event,t=Zt(t);return t.target||(t.target=t.srcElement),n=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t,e||(this.chartPosition=e=Vt(this.chart.container)),n.pageX===H?(i=ft(t.x,t.clientX-e.left),n=t.y):(i=n.pageX-e.left,n=n.pageY-e.top),$t(t,{chartX:ut(i),chartY:ut(n)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return Bt(this.chart.axes,function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},runPointActions:function(t){var e,i,n,s,o,r,a=this.chart,l=a.series,h=a.tooltip,c=!!h&&h.shared,u=a.hoverPoint,d=a.hoverSeries,p=Number.MAX_VALUE,f=[];if(!c&&!d)for(e=0;e<l.length;e++)!l[e].directTouch&&l[e].options.stickyTracking||(l=[]);if(d&&(c?d.noSharedTooltip:d.directTouch)&&u?o=u:(Bt(l,function(e){i=e.noSharedTooltip&&c,n=!c&&e.directTouch,e.visible&&!i&&!n&&Ft(e.options.enableMouseTracking,!0)&&(r=e.searchPoint(t,!i&&1===e.kdDimensions))&&f.push(r)}),Bt(f,function(t){s=c||1!==t.series.kdDimensions?t.distX:t.dist,t&&"number"==typeof s&&s<p&&(p=s,o=t)})),o&&(o!==this.prevKDPoint||h&&h.isHidden)){if(c&&!o.series.noSharedTooltip){for(e=f.length;e--;)(f[e].clientX!==o.clientX||f[e].series.noSharedTooltip)&&f.splice(e,1);f.length&&h&&h.refresh(f,t),Bt(f,function(e){e.onMouseOver(t,e!==(d&&d.directTouch&&u||o))})}else h&&h.refresh(o,t),d&&d.directTouch||o.onMouseOver(t);this.prevKDPoint=o}else l=d&&d.tooltipOptions.followPointer,h&&l&&!h.isHidden&&(l=h.getAnchor([{}],t),h.updatePosition({plotX:l[0],plotY:l[1]}));this._onDocumentMouseMove||(this._onDocumentMouseMove=function(t){It[he]&&It[he].pointer.onDocumentMouseMove(t)},Xt(ht,"mousemove",this._onDocumentMouseMove)),Bt(a.axes,function(e){e.drawCrosshair(t,Ft(o,u))})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,s=i.hoverPoint,o=i.hoverPoints,r=i.tooltip,a=r&&r.shared?o:s;(t=t&&r&&a)&&Bt(p(a),function(e){void 0===e.plotX&&(t=!1)}),t?(r.refresh(a),s&&(s.setState(s.state,!0),Bt(i.axes,function(t){Ft(t.options.crosshair&&t.options.crosshair.snap,!0)?t.drawCrosshair(null,s):t.hideCrosshair()}
13))):(s&&s.onMouseOut(),o&&Bt(o,function(t){t.setState()}),n&&n.onMouseOut(),r&&r.hide(e),this._onDocumentMouseMove&&(Kt(ht,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null),Bt(i.axes,function(t){t.hideCrosshair();
14}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;Bt(n.series,function(s){i=t||s.getPlotBox(),s.xAxis&&s.xAxis.zoomEnabled&&(s.group.attr(i),s.markerGroup&&(s.markerGroup.attr(i),s.markerGroup.clip(e?n.clipRect:null)),s.dataLabelsGroup&&s.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e,i=this.chart,n=i.options.chart,s=t.chartX,o=t.chartY,r=this.zoomHor,a=this.zoomVert,l=i.plotLeft,h=i.plotTop,c=i.plotWidth,u=i.plotHeight,d=this.selectionMarker,p=this.mouseDownX,f=this.mouseDownY,m=n.panKey&&t[n.panKey+"Key"];d&&d.touch||(s<l?s=l:s>l+c&&(s=l+c),o<h?o=h:o>h+u&&(o=h+u),this.hasDragged=Math.sqrt(Math.pow(p-s,2)+Math.pow(f-o,2)),this.hasDragged>10&&(e=i.isInsidePlot(p-l,f-h),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!m&&!d&&(this.selectionMarker=d=i.renderer.rect(l,h,r?1:c,a?1:u,0).attr({fill:n.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),d&&r&&(s-=p,d.attr({width:gt(s),x:(s>0?0:s)+p})),d&&a&&(s=o-f,d.attr({height:gt(s),y:(s>0?0:s)+f})),e&&!d&&n.panning&&i.pan(t,n.panning)))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var s,o={xAxis:[],yAxis:[],originalEvent:t.originalEvent||t},r=this.selectionMarker,a=r.attr?r.attr("x"):r.x,l=r.attr?r.attr("y"):r.y,h=r.attr?r.attr("width"):r.width,c=r.attr?r.attr("height"):r.height;(this.hasDragged||n)&&(Bt(i.axes,function(i){if(i.zoomEnabled&&u(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var r=i.horiz,d="touchend"===t.type?i.minPixelPadding:0,p=i.toValue((r?a:l)+d),r=i.toValue((r?a+h:l+c)-d);o[i.coll].push({axis:i,min:mt(p,r),max:ft(p,r)}),s=!0}}),s&&Qt(i,"selection",o,function(t){i.zoom($t(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(m(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){t=this.normalize(t),t.preventDefault&&t.preventDefault(),this.dragStart(t)},onDocumentMouseUp:function(t){It[he]&&It[he].pointer.drop(t)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition,t=this.normalize(t,i);i&&!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)&&this.reset()},onContainerMouseLeave:function(){var t=It[he];t&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;he=e.index,t=this.normalize(t),t.returnValue=!1,"mousedown"===e.mouseIsDown&&this.drag(t),(this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop))&&!e.openMenu&&this.runPointActions(t)},inClass:function(t,e){for(var i;t;){if(i=d(t,"class")){if(i.indexOf(e)!==-1)return!0;if(i.indexOf("highcharts-container")!==-1)return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,t=t.relatedTarget||t.toElement;!e||e.options.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,s=e.plotTop,t=this.normalize(t);t.originalEvent=t,e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(Qt(i.series,"click",$t(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):($t(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-s)&&Qt(e,"click",t)))},setDOMEvents:function(){var t=this,e=t.chart.container;e.onmousedown=function(e){t.onContainerMouseDown(e)},e.onmousemove=function(e){t.onContainerMouseMove(e)},e.onclick=function(e){t.onContainerClick(e)},Xt(e,"mouseleave",t.onContainerMouseLeave),1===Nt&&Xt(ht,"mouseup",t.onDocumentMouseUp),j&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===Nt&&Xt(ht,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;Kt(this.chart.container,"mouseleave",this.onContainerMouseLeave),Nt||(Kt(ht,"mouseup",this.onDocumentMouseUp),Kt(ht,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(t in this)this[t]=null}}
14,$t(at.Pointer.prototype,{pinchTranslate:function(t,e,i,n,s,o){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,i,n,s,o),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,i,n,s,o)},pinchTranslateDirection:function(t,e,i,n,s,o,r,a){var l,h,c,u=this.chart,d=t?"x":"y",p=t?"X":"Y",f="chart"+p,m=t?"width":"height",g=u["plot"+(t?"Left":"Top")],v=a||1,y=u.inverted,b=u.bounds[t?"h":"v"],x=1===e.length,_=e[0][f],w=i[0][f],k=!x&&e[1][f],C=!x&&i[1][f],i=function(){!x&&gt(_-k)>20&&(v=a||gt(w-C)/gt(_-k)),h=(g-w)/v+_,l=u["plot"+(t?"Width":"Height")]/v};i(),e=h,e<b.min?(e=b.min,c=!0):e+l>b.max&&(e=b.max-l,c=!0),c?(w-=.8*(w-r[d][0]),x||(C-=.8*(C-r[d][1])),i()):r[d]=[w,C],y||(o[d]=h-g,o[m]=l),o=y?1/v:v,s[m]=l,s[d]=e,n[y?t?"scaleY":"scaleX":"scale"+p]=v,n["translate"+p]=o*g+(w-o*_)},pinch:function(t){var e=this,i=e.chart,n=e.pinchDown,s=t.touches,o=s.length,r=e.lastValidTouch,a=e.hasZoom,l=e.selectionMarker,h={},c=1===o&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),u={};o>1&&(e.initiated=!0),a&&e.initiated&&!c&&t.preventDefault(),qt(s,function(t){return e.normalize(t)}),"touchstart"===t.type?(Bt(s,function(t,e){n[e]={chartX:t.chartX,chartY:t.chartY}}),r.x=[n[0].chartX,n[1]&&n[1].chartX],r.y=[n[0].chartY,n[1]&&n[1].chartY],Bt(i.axes,function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,s=t.toPixels(Ft(t.options.min,t.dataMin)),o=t.toPixels(Ft(t.options.max,t.dataMax)),r=mt(s,o),s=ft(s,o);e.min=mt(t.pos,r-n),e.max=ft(t.pos+t.len,s+n)}}),e.res=!0):n.length&&(l||(e.selectionMarker=l=$t({destroy:Et,touch:!0},i.plotBox)),e.pinchTranslate(n,s,h,l,u,r),e.hasPinched=a,e.scaleGroups(h,u),!a&&e.followTouchMove&&1===o?this.runPointActions(e.normalize(t)):e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(t,e){var i=this.chart;he=i.index,1===t.touches.length?(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu?(e&&this.runPointActions(t),this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)},onContainerTouchStart:function(t){this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(t){It[he]&&It[he].pointer.drop(t)}}),lt.PointerEvent||lt.MSPointerEvent){var ue={},de=!!lt.PointerEvent,pe=function(){var t,e=[];e.item=function(t){return this[t]};for(t in ue)ue.hasOwnProperty(t)&&e.push({pageX:ue[t].pageX,pageY:ue[t].pageY,target:ue[t].target});return e},fe=function(t,e,i,n){t=t.originalEvent||t,"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!It[he]||(n(t),n=It[he].pointer,n[e]({type:i,target:t.currentTarget,preventDefault:Et,touches:pe()}))};$t(ce.prototype,{onContainerPointerDown:function(t){fe(t,"onContainerTouchStart","touchstart",function(t){ue[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){fe(t,"onContainerTouchMove","touchmove",function(t){ue[t.pointerId]={pageX:t.pageX,pageY:t.pageY},ue[t.pointerId].target||(ue[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){fe(t,"onDocumentTouchEnd","touchend",function(t){delete ue[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,de?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,de?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(ht,de?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),zt(ce.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&m(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),zt(ce.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Xt)}),zt(ce.prototype,"destroy",function(t){this.batchMSEvents(Kt),t.call(this)})}var me=at.Legend=function(t,e){this.init(t,e)};me.prototype={init:function(t,e){var n=this,s=e.itemStyle,o=e.itemMarginTop||0;this.options=e,e.enabled&&(n.itemStyle=s,n.itemHiddenStyle=i(s,e.itemHiddenStyle),n.itemMarginTop=o,n.padding=s=Ft(e.padding,8),n.initialItemX=s,n.initialItemY=s-5,n.maxItemWidth=0,n.chart=t,n.itemHeight=0,n.symbolWidth=Ft(e.symbolWidth,16),n.pages=[],n.render(),Xt(n.chart,"endResize",function(){n.positionCheckboxes()}))},colorizeItem:function(t,e){var i,n=this.options,s=t.legendItem,o=t.legendLine,r=t.legendSymbol,a=this.itemHiddenStyle.color,n=e?n.itemStyle.color:a,l=e?t.legendColor||t.color||"#CCC":a,a=t.options&&t.options.marker,h={fill:l};if(s&&s.css({fill:n,color:n}),o&&o.attr({stroke:l}),r){if(a&&r.isMarker)for(i in h.stroke=l,a=t.convertAttribs(a))s=a[i],s!==H&&(h[i]=s);r.attr(h)}},positionItem:function(t){var e=this.options,i=e.symbolPadding,e=!e.rtl,n=t._legendItemPos,s=n[0],n=n[1],o=t.checkbox;(t=t.legendGroup)&&t.element&&t.translate(e?s:this.legendWidth-s-2*i-4,n),o&&(o.x=s,o.y=n)},destroyItem:function(t){var e=t.checkbox;Bt(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&T(t.checkbox)},destroy:function(){var t=this.group,e=this.box;e&&(this.box=e.destroy()),t&&(this.group=t.destroy())},positionCheckboxes:function(t){var e,i=this.group.alignAttr,n=this.clipHeight||this.legendHeight;i&&(e=i.translateY,Bt(this.allItems,function(s){var o,r=s.checkbox;r&&(o=e+r.y+(t||0)+3,m(r,{left:i.translateX+s.checkboxOffset+r.x-20+"px",top:o+"px",display:o>e-6&&o<e+n-6?"":"none"}))}))},renderTitle:function(){var t=this.padding,e=this.options.title,i=0;e.text&&(this.title||(this.title=this.chart.renderer.label(e.text,t-3,t-4,null,null,null,null,null,"legend-title").attr({zIndex:1}).css(e.style).add(this.group)),t=this.title.getBBox(),i=t.height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},setText:function(t){var e=this.options;t.legendItem.attr({text:e.labelFormat?x(e.labelFormat,t):e.labelFormatter.call(t)})},renderItem:function(t){var e=this.chart,n=e.renderer,s=this.options,o="horizontal"===s.layout,r=this.symbolWi
14dth,a=s.symbolPadding,l=this.itemStyle,h=this.itemHiddenStyle,c=this.padding,u=o?Ft(s.itemDistance,20):0,d=!s.rtl,p=s.width,f=s.itemMarginBottom||0,m=this.itemMarginTop,g=this.initialItemX,v=t.legendItem,y=t.series&&t.series.drawLegendSymbol?t.series:t,b=y.options,b=this.createCheckboxForItem&&b&&b.showCheckbox,x=s.useHTML;v||(t.legendGroup=n.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),t.legendItem=v=n.text("",d?r+a:-a,this.baseline||0,x).css(i(t.visible?l:h)).attr({align:d?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(l.fontSize,v),this.baseline=this.fontMetrics.f+3+m,v.attr("y",this.baseline)),y.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,v,x,l,h),this.colorizeItem(t,t.visible),b&&this.createCheckboxForItem(t)),this.setText(t),n=v.getBBox(),r=t.checkboxOffset=s.itemWidth||t.legendItemWidth||r+a+n.width+u+(b?20:0),this.itemHeight=a=ut(t.legendItemHeight||n.height),o&&this.itemX-g+r>(p||e.chartWidth-2*c-g-s.x)&&(this.itemX=g,this.itemY+=m+this.lastLineHeight+f,this.lastLineHeight=0),this.maxItemWidth=ft(this.maxItemWidth,r),this.lastItemY=m+this.itemY+f,this.lastLineHeight=ft(a,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],o?this.itemX+=r:(this.itemY+=m+a+f,this.lastLineHeight=a),this.offsetWidth=p||ft((o?this.itemX-g-u:r)+c,this.offsetWidth)},getAllItems:function(){var t=[];return Bt(this.chart.series,function(e){var i=e.options;Ft(i.showInLegend,!u(i.linkedTo)&&H,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,s=n.align.charAt(0)+n.verticalAlign.charAt(0)+n.layout.charAt(0);this.display&&!n.floating&&Bt([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(o,r){o.test(s)&&!u(t[r])&&(i[jt[r]]=ft(i[jt[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*n[r%2?"x":"y"]+Ft(n.margin,12)+e[r]))})},render:function(){var t,e,i,n,s=this,o=s.chart,r=o.renderer,a=s.group,l=s.box,h=s.options,c=s.padding,u=h.borderWidth,d=h.backgroundColor;s.itemX=s.initialItemX,s.itemY=s.initialItemY,s.offsetWidth=0,s.lastItemY=0,a||(s.group=a=r.g("legend").attr({zIndex:7}).add(),s.contentGroup=r.g().attr({zIndex:1}).add(a),s.scrollGroup=r.g().add(s.contentGroup)),s.renderTitle(),t=s.getAllItems(),k(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),h.reversed&&t.reverse(),s.allItems=t,s.display=e=!!t.length,s.lastLineHeight=0,Bt(t,function(t){s.renderItem(t)}),i=(h.width||s.offsetWidth)+c,n=s.lastItemY+s.lastLineHeight+s.titleHeight,n=s.handleOverflow(n),n+=c,(u||d)&&(l?i>0&&n>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:i,height:n})),l.isNew=!1):(s.box=l=r.rect(0,0,i,n,h.borderRadius,u||0).attr({stroke:h.borderColor,"stroke-width":u||0,fill:d||"none"}).add(a).shadow(h.shadow),l.isNew=!0),l[e?"show":"hide"]()),s.legendWidth=i,s.legendHeight=n,Bt(t,function(t){s.positionItem(t)}),e&&a.align($t({width:i,height:n},h),!0,"spacingBox"),o.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,s=this.chart,o=s.renderer,r=this.options,a=r.y,a=s.spacingBox.height+("top"===r.verticalAlign?-a:a)-this.padding,l=r.maxHeight,h=this.clipRect,c=r.navigation,u=Ft(c.animation,!0),d=c.arrowSize||12,p=this.nav,f=this.pages,m=this.padding,g=this.allItems,v=function(t){h.attr({height:t}),n.contentGroup.div&&(n.contentGroup.div.style.clip="rect("+m+"px,9999px,"+(m+t)+"px,0)")};
14return"horizontal"===r.layout&&(a/=2),l&&(a=mt(a,l)),f.length=0,t>a?(this.clipHeight=e=ft(a-20-this.titleHeight-m,0),this.currentPage=Ft(this.currentPage,1),this.fullHeight=t,Bt(g,function(t,n){var s=t._legendItemPos[1],o=ut(t.legendItem.getBBox().height),r=f.length;(!r||s-f[r-1]>e&&(i||s)!==f[r-1])&&(f.push(i||s),r++),n===g.length-1&&s+o-f[r-1]>e&&f.push(s),s!==i&&(i=s)}),h||(h=n.clipRect=o.clipRect(0,m,9999,0),n.contentGroup.clip(h)),v(e),p||(this.nav=p=o.g().attr({zIndex:1}).add(this.group),this.up=o.symbol("triangle",0,0,d,d).on("click",function(){n.scroll(-1,u)}).add(p),this.pager=o.text("",15,10).css(c.style).add(p),this.down=o.symbol("triangle-down",0,0,d,d).on("click",function(){n.scroll(1,u)}).add(p)),n.scroll(0),t=a):p&&(v(s.chartHeight),p.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length,s=this.currentPage+t,o=this.clipHeight,r=this.options.navigation,a=r.activeColor,r=r.inactiveColor,l=this.pager,h=this.padding;s>n&&(s=n),s>0&&(e!==H&&A(e,this.chart),this.nav.attr({translateX:h,translateY:o+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===s?r:a}).css({cursor:1===s?"default":"pointer"}),l.attr({text:s+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,fill:s===n?r:a}).css({cursor:s===n?"default":"pointer"}),i=-i[s-1]+this.initialItemY,this.scrollGroup.animate({translateY:i}),this.currentPage=s,this.positionCheckboxes(i))}},oe=at.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.options.symbolHeight||t.fontMetrics.f;e.legendSymbol=this.chart.renderer.rect(0,t.baseline-i+1,t.symbolWidth,i,t.options.symbolRadius||0).attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e,i=this.options,n=i.marker;e=t.symbolWidth;var s,o=this.chart.renderer,r=this.legendGroup,t=t.baseline-ut(.3*t.fontMetrics.b);i.lineWidth&&(s={"stroke-width":i.lineWidth},i.dashStyle&&(s.dashstyle=i.dashStyle),this.legendLine=o.path(["M",0,t,"L",e,t]).attr(s).add(r)),n&&n.enabled!==!1&&(i=n.radius,this.legendSymbol=e=o.symbol(this.symbol,e/2-i,t-i,2*i,2*i).add(r),e.isMarker=!0)}},(/Trident\/7\.0/.test(_t)||Dt)&&zt(me.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)}),se=at.Chart=function(){this.init.apply(this,arguments)},se.prototype={callbacks:[],init:function(t,e){var n,s=t.series;t.series=null,n=i($,t),n.series=t.series=s,this.userOptions=t,s=n.chart,this.margin=this.splashArray("margin",s),this.spacing=this.splashArray("spacing",s);var o=s.events;this.bounds={h:{},v:{}},this.callback=e,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=s.showAxes;var r,a=this;if(a.index=It.length,It.push(a),Nt++,s.reflow!==!1&&Xt(a,"load",function(){a.initReflow()}),o)for(r in o)Xt(a,r,o[r]);a.xAxis=[],a.yAxis=[],a.animation=!Pt&&Ft(s.animation,!0),a.pointCount=a.colorCounter=a.symbolCounter=0,a.firstRender()},initSeries:function(t){var i=this.options.chart;return(i=Rt[t.type||i.type||i.defaultSeriesType])||e(17,!0),i=new i,i.init(this,t),i},isInsidePlot:function(t,e,i){var n=i?e:t,t=i?t:e;return n>=0&&n<=this.plotWidth&&t>=0&&t<=this.plotHeight},redraw:function(t){var e,i,n=this.axes,s=this.series,o=this.pointer,r=this.legend,a=this.isDirtyLegend,l=this.hasCartesianSeries,h=this.isDirtyBox,c=s.length,u=c,d=this.renderer,p=d.isHidden(),f=[];for(A(t,this),p&&this.cloneRenderTo(),this.layOutTitles();u--;)if(t=s[u],t.options.stacking&&(e=!0,t.isDirty)){i=!0;break}if(i)for(u=c;u--;)t=s[u],t.options.stacking&&(t.isDirty=!0);Bt(s,function(t){t.isDirty&&"point"===t.options.legendType&&(t.updateTotals&&t.updateTotals(),a=!0)}),a&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),e&&this.getStacks(),l&&!this.isResizing&&(this.maxTicks=null,Bt(n,function(t){t.setScale()})),this.getMargins(),l&&(Bt(n,function(t){t.isDirty&&(h=!0)}),Bt(n,function(t){var i=t.min+","+t.max;t.extKey!==i&&(t.extKey=i,f.push(function(){Qt(t,"afterSetExtremes",$t(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(h||e)&&t.redraw()})),h&&this.drawChartBox(),Bt(s,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),o&&o.reset(!0),d.draw(),Qt(this,"redraw"),p&&this.cloneRenderTo(!0),Bt(f,function(t){t.call()})},get:function(t){var e,i,n=this.axes,s=this.series;for(e=0;e<n.length;e++)if(n[e].options.id===t)return n[e];for(e=0;e<s.length;e++)if(s[e].options.id===t)return s[e];for(e=0;e<s.length;e++)for(i=s[e].points||[],n=0;n<i.length;n++)if(i[n].id===t)return i[n];return null},getAxes:function(){var t=this,e=this.options,i=e.xAxis=p(e.xAxis||{}),e=e.yAxis=p(e.yAxis||{});Bt(i,function(t,e){t.index=e,t.isX=!0}
14),Bt(e,function(t,e){t.index=e}),i=i.concat(e),Bt(i,function(e){new ae(t,e)})},getSelectedPoints:function(){var t=[];return Bt(this.series,function(e){t=t.concat(Gt(e.points||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return Gt(this.series,function(t){return t.selected})},setTitle:function(t,e,n){var s,o,r=this,a=r.options;o=a.title=i(a.title,t),s=a.subtitle=i(a.subtitle,e),a=s,Bt([["title",t,o],["subtitle",e,a]],function(t){var e=t[0],i=r[e],n=t[1],t=t[2];i&&n&&(r[e]=i=i.destroy()),t&&t.text&&!i&&(r[e]=r.renderer.text(t.text,0,0,t.useHTML).attr({align:t.align,"class":"highcharts-"+e,zIndex:t.zIndex||4}).css(t.style).add())}),r.layOutTitles(n)},layOutTitles:function(t){var e=0,i=this.title,n=this.subtitle,s=this.options,o=s.title,s=s.subtitle,r=this.renderer,a=this.spacingBox.width-44;!i||(i.css({width:(o.width||a)+"px"}).align($t({y:r.fontMetrics(o.style.fontSize,i).b-3},o),!1,"spacingBox"),o.floating||o.verticalAlign)||(e=i.getBBox().height),n&&(n.css({width:(s.width||a)+"px"}).align($t({y:e+(o.margin-13)+r.fontMetrics(s.style.fontSize,i).b},s),!1,"spacingBox"),!s.floating&&!s.verticalAlign&&(e=pt(e+n.getBBox().height))),i=this.titleOffset!==e,this.titleOffset=e,!this.isDirtyBox&&i&&(this.isDirtyBox=i,this.hasRendered&&Ft(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=this.options.chart,e=t.width,t=t.height,i=this.renderToClone||this.renderTo;u(e)||(this.containerWidth=Wt(i,"width")),u(t)||(this.containerHeight=Wt(i,"height")),this.chartWidth=ft(0,e||this.containerWidth||600),this.chartHeight=ft(0,Ft(t,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),T(e),delete this.renderToClone):(i&&i.parentNode===this.renderTo&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),m(e,{position:"absolute",top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),ht.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var t,i,o,r,a=this.options,l=a.chart;this.renderTo=t=l.renderTo,r="highcharts-"+Lt++,s(t)&&(this.renderTo=t=ht.getElementById(t)),t||e(13,!0),i=n(d(t,"data-highcharts-chart")),!isNaN(i)&&It[i]&&It[i].hasRendered&&It[i].destroy(),d(t,"data-highcharts-chart",this.index),t.innerHTML="",!l.skipClone&&!t.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),i=this.chartWidth,o=this.chartHeight,this.container=t=g(Ht,{className:"highcharts-container"+(l.className?" "+l.className:""),id:r},$t({position:"relative",overflow:"hidden",width:i+"px",height:o+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},l.style),this.renderToClone||t),this._cursor=t.style.cursor,this.renderer=new(at[l.renderer]||Y)(t,i,o,l.style,l.forExport,a.exporting&&a.exporting.allowHTML),Pt&&this.renderer.create(this,t,i,o),this.renderer.chartIndex=this.index},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n&&!u(i[0])&&(this.plotTop=ft(this.plotTop,n+this.options.title.margin+e[0])),this.legend.adjustMargins(i,e),this.extraBottomMargin&&(this.marginBottom+=this.extraBottomMargin),this.extraTopMargin&&(this.plotTop+=this.extraTopMargin),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.margin;t.hasCartesianSeries&&Bt(t.axes,function(t){t.visible&&t.getOffset()}),Bt(jt,function(n,s){u(i[s])||(t[n]+=e[s])}),t.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,s=i.width||Wt(n,"width"),o=i.height||Wt(n,"height"),i=t?t.target:lt;e.hasUserSize||e.isPrinting||!s||!o||i!==lt&&i!==ht||(s===e.containerWidth&&o===e.containerHeight||(clearTimeout(e.reflowTimeout),e.reflowTimeout=f(function(){e.container&&(e.setSize(s,o,!1),e.hasUserSize=null)},t?100:0)),e.containerWidth=s,e.containerHeight=o)},initReflow:function(){var t=this,e=function(e){t.reflow(e)};Xt(lt,"resize",e),Xt(t,"destroy",function(){Kt(lt,"resize",e)})},setSize:function(t,e,i){var n,s,o=this,r=o.renderer;
14o.isResizing+=1,A(i,o),o.oldChartHeight=o.chartHeight,o.oldChartWidth=o.chartWidth,u(t)&&(o.chartWidth=n=ft(0,ut(t)),o.hasUserSize=!!n),u(e)&&(o.chartHeight=s=ft(0,ut(e))),t=r.globalAnimation,(t?Jt:m)(o.container,{width:n+"px",height:s+"px"},t),o.setChartSize(!0),r.setSize(n,s,i),o.maxTicks=null,Bt(o.axes,function(t){t.isDirty=!0,t.setScale()}),Bt(o.series,function(t){t.isDirty=!0}),o.isDirtyLegend=!0,o.isDirtyBox=!0,o.layOutTitles(),o.getMargins(),o.redraw(i),o.oldChartHeight=null,Qt(o,"resize"),t=r.globalAnimation,f(function(){o&&Qt(o,"endResize",null,function(){o.isResizing-=1})},t===!1?0:t&&t.duration||500)},setChartSize:function(t){var e,i,n,s,o=this.inverted,r=this.renderer,a=this.chartWidth,l=this.chartHeight,h=this.options.chart,c=this.spacing,u=this.clipOffset;this.plotLeft=e=ut(this.plotLeft),this.plotTop=i=ut(this.plotTop),this.plotWidth=n=ft(0,ut(a-e-this.marginRight)),this.plotHeight=s=ft(0,ut(l-i-this.marginBottom)),this.plotSizeX=o?s:n,this.plotSizeY=o?n:s,this.plotBorderWidth=h.plotBorderWidth||0,this.spacingBox=r.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=r.plotBox={x:e,y:i,width:n,height:s},a=2*dt(this.plotBorderWidth/2),o=pt(ft(a,u[3])/2),r=pt(ft(a,u[0])/2),this.clipBox={x:o,y:r,width:dt(this.plotSizeX-ft(a,u[1])/2-o),height:ft(0,dt(this.plotSizeY-ft(a,u[2])/2-r))},t||Bt(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this;Bt(jt,function(e,i){t[e]=Ft(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,s=this.chartHeight,o=this.chartBackground,r=this.plotBackgroun
14d,a=this.plotBorder,l=this.plotBGImage,h=e.borderWidth||0,c=e.backgroundColor,u=e.plotBackgroundColor,d=e.plotBackgroundImage,p=e.plotBorderWidth||0,f=this.plotLeft,m=this.plotTop,g=this.plotWidth,v=this.plotHeight,y=this.plotBox,b=this.clipRect,x=this.clipBox;t=h+(e.shadow?8:0),(h||c)&&(o?o.animate(o.crisp({width:n-t,height:s-t})):(o={fill:c||"none"},h&&(o.stroke=e.borderColor,o["stroke-width"]=h),this.chartBackground=i.rect(t/2,t/2,n-t,s-t,e.borderRadius,h).attr(o).addClass("highcharts-background").add().shadow(e.shadow))),u&&(r?r.animate(y):this.plotBackground=i.rect(f,m,g,v,0).attr({fill:u}).add().shadow(e.plotShadow)),d&&(l?l.animate(y):this.plotBGImage=i.image(d,f,m,g,v).add()),b?b.animate({width:x.width,height:x.height}):this.clipRect=i.clipRect(x),p&&(a?a.animate(a.crisp({x:f,y:m,width:g,height:v,strokeWidth:-p})):this.plotBorder=i.rect(f,m,g,v,0,-p).attr({stroke:e.plotBorderColor,"stroke-width":p,fill:"none",zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,s=n.options.chart,o=n.options.series;Bt(["inverted","angular","polar"],function(r){for(t=Rt[s.type||s.defaultSeriesType],i=n[r]||s[r]||t&&t.prototype[r],e=o&&o.length;!i&&e--;)(t=Rt[o[e].type])&&t.prototype[r]&&(i=!0);n[r]=i})},linkSeries:function(){var t=this,e=t.series;Bt(e,function(t){t.linkedSeries.length=0}),Bt(e,function(e){var i=e.options.linkedTo;s(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=Ft(e.options.visible,i.options.visible,e.visible))})},renderSeries:function(){Bt(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&Bt(e.items,function(i){var s=$t(e.style,i.style),o=n(s.left)+t.plotLeft,r=n(s.top)+t.plotTop+12;delete s.left,delete s.top,t.renderer.text(i.html,o,r).attr({zIndex:2}).css(s).add()})},render:function(){var t,e,i,n,s=this.axes,o=this.renderer,r=this.options;this.setTitle(),this.legend=new me(this,r.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),t=this.plotWidth,e=this.plotHeight-=21,Bt(s,function(t){t.setScale()}),this.getAxisMargins(),i=t/this.plotWidth>1.1,n=e/this.plotHeight>1.05,(i||n)&&(this.maxTicks=null,Bt(s,function(t){(t.horiz&&i||!t.horiz&&n)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Bt(s,function(t){t.visible&&t.render()}),this.seriesGroup||(this.seriesGroup=o.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.showCredits(r.credits),this.hasRendered=!0},showCredits:function(t){t.enabled&&!this.credits&&(this.credits=this.renderer.text(t.text,0,0).on("click",function(){t.href&&(location.href=t.href)}).attr({align:t.position.align,zIndex:8}).css(t.style).add().align(t.position))},destroy:function(){var t,e=this,i=e.axes,n=e.series,s=e.container,o=s&&s.parentNode;for(Qt(e,"destroy"),It[e.index]=H,Nt--,e.renderTo.removeAttribute("data-highcharts-chart"),Kt(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();
14Bt("title,subtitle,chartBackground,plotBackground,plotBGImage,plotBorder,seriesGroup,clipRect,credits,pointer,scroller,rangeSelector,legend,resetZoomButton,tooltip,renderer".split(","),function(t){var i=e[t];i&&i.destroy&&(e[t]=i.destroy())}),s&&(s.innerHTML="",Kt(s),o&&T(s));for(t in e)delete e[t]},isReadyToRender:function(){var t=this;return!(!Mt&&lt==lt.top&&"complete"!==ht.readyState||Pt&&!lt.canvg)||(Pt?re.push(function(){t.firstRender()},t.options.global.canvasToolsURL):ht.attachEvent("onreadystatechange",function(){ht.detachEvent("onreadystatechange",t.firstRender),"complete"===ht.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options,i=t.callback;t.isReadyToRender()&&(t.getContainer(),Qt(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),Bt(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),Qt(t,"beforeRender"),at.Pointer&&(t.pointer=new ce(t,e)),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),Bt(t.callbacks,function(e){t.index!==H&&e.apply(t,[t])}),Qt(t,"load"),t.cloneRenderTo(!0))},splashArray:function(t,e){var i=e[t],i=o(i)?i:[i,i,i,i];return[Ft(e[t+"Top"],i[0]),Ft(e[t+"Right"],i[1]),Ft(e[t+"Bottom"],i[2]),Ft(e[t+"Left"],i[3])]}};var ge=at.CenteredSeriesMixin={getCenter:function(){var t,e,i=this.options,n=this.chart,s=2*(i.slicedOffset||0),o=n.plotWidth-2*s,n=n.plotHeight-2*s,r=i.center,r=[Ft(r[0],"50%"),Ft(r[1],"50%"),i.size||"100%",i.innerSize||0],a=mt(o,n);for(t=0;t<4;++t)e=r[t],i=t<2||2===t&&/%$/.test(e),r[t]=(/%$/.test(e)?[o,n,a,r[2]][t]*parseFloat(e)/100:parseFloat(e))+(i?s:0);return r[3]>r[2]&&(r[3]=r[2]),r}},ve=function(){};ve.prototype={init:function(t,e,i){return this.series=t,this.color=t.color,this.applyOptions(e,i),this.pointAttr={},t.options.colorByPoint&&(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter++],t.colorCounter===e.length)&&(t.colorCounter=0),t.chart.pointCount++,this},applyOptions:function(t,e){var i=this.series,n=i.options.pointValKey||i.pointValKey,t=ve.prototype.optionsToObject.call(this,t);return $t(this,t),this.options=this.options?$t(this.options,t):t,n&&(this.y=this[n]),this.x===H&&i&&(this.x=e===H?i.autoIncrement():e),this},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,s=n||i.pointArrayMap||["y"],o=s.length,a=0,l=0;if("number"==typeof t||null===t)e[s[0]]=t;else if(r(t))for(!n&&t.length>o&&(i=typeof t[0],"string"===i?e.name=t[0]:"number"===i&&(e.x=t[0]),a++);l<o;)n&&void 0===t[a]||(e[s[l]]=t[a]),a++,l++;else"object"==typeof t&&(e=t,t.dataLabels&&(i._hasPointLabels=!0),t.marker&&(i._hasPointMarkers=!0));return e},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;e.pointCount--,i&&(this.setState(),c(i,this),!i.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Kt(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this);for(t in this)this[t]=null},destroyElements:function(){for(var t,e=["graphic","dataLabel","dataLabelUpper","connector","shadowGroup"],i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=Ft(i.valueDecimals,""),s=i.valuePrefix||"",o=i.valueSuffix||"";return Bt(e.pointArrayMap||["y"],function(e){e="{point."+e,(s||o)&&(t=t.replace(e+"}",s+e+"}"+o)),t=t.replace(e+"}",e+":,."+n+"f}")}),x(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,s=this.series.options;(s.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&s.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),Qt(this,t,e,i)},visible:!0};var ye=at.Series=function(){};ye.prototype={isCartesian:!0,type:"line",pointClass:ve,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},directTouch:!1,axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(t,e){var i,n,s=this,o=t.series,r=function(t,e){return Ft(t.options.index,t._i)-Ft(e.options.index,e._i)};s.chart=t,s.options=e=s.setOptions(e),s.linkedSeries=[],s.bindAxes(),$t(s,{name:e.name,state:"",pointAttr:{},visible:e.visible!==!1,selected:e.selected===!0}),Pt&&(e.animation=!1),n=e.events;for(i in n)Xt(s,i,n[i]);(n&&n.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),s.getColor(),s.getSymbol(),Bt(s.parallelArrays,function(t){s[t+"Data"]=[]}),s.setData(e.data,!1),s.isCartesian&&(t.hasCartesianSeries=!0),o.push(s),s._i=o.length-1,k(o,r),this.yAxis&&k(this.yAxis.series,r),Bt(o,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1);
15})},bindAxes:function(){var t,i=this,n=i.options,s=i.chart;
15Bt(i.axisTypes||[],function(o){Bt(s[o],function(e){t=e.options,(n[o]===t.index||n[o]!==H&&n[o]===t.id||n[o]===H&&0===t.index)&&(e.series.push(i),i[o]=e,e.isDirty=!0)}),!i[o]&&i.optionalAxis!==o&&e(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments;Bt(i.parallelArrays,"number"==typeof e?function(n){var s="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=s}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))})},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,i=Ft(i,e.pointStart,0);return this.pointInterval=t=Ft(this.pointInterval,e.pointInterval,1),"month"!==n&&"year"!==n||(e=new U(i),e="month"===n?+e[ot](e[Z]()+t):+e[rt](e[J]()+t),t=e-i),this.xIncrement=i+t,i},getSegments:function(){var t,e=-1,i=[],n=this.points,s=n.length;if(s)if(this.options.connectNulls){for(t=s;t--;)null===n[t].y&&n.splice(t,1);n.length&&(i=[n])}else Bt(n,function(t,o){null===t.y?(o>e+1&&i.push(n.slice(e+1,o)),e=o):o===s-1&&i.push(n.slice(e+1,o+1))});this.segments=i},setOptions:function(t){var e=this.chart,n=e.options.plotOptions,e=e.userOptions||{},s=e.plotOptions||{},o=n[this.type];return this.userOptions=t,n=i(o,n.series,t),this.tooltipOptions=i($.tooltip,$.plotOptions[this.type].tooltip,e.tooltip,s.series&&s.series.tooltip,s[this.type]&&s[this.type].tooltip,t.tooltip),null===o.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,t=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||t.push({value:n[this.zoneAxis+"Threshold"]||n.threshold||0,color:n.negativeColor,fillColor:n.negativeFillColor}),t.length&&u(t[t.length-1].value)&&t.push({color:this.color,fillColor:this.fillColor}),n},getCyclic:function(t,e,i){var n=this.userOptions,s="_"+t+"Index",o=t+"Counter";e||(u(n[s])?e=n[s]:(n[s]=e=this.chart[o]%i.length,this.chart[o]+=1),e=i[e]),this[t]=e},getColor:function(){this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||ee[this.type].color,this.chart.options.colors)},getSymbol:function(){var t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols),/^url/.test(this.symbol)&&(t.radius=0)},drawLegendSymbol:oe.drawLineMarker,setData:function(t,i,n,o){var l,h=this,c=h.points,d=c&&c.length||0,p=h.options,f=h.chart,m=null,g=h.xAxis,v=g&&!!g.categories,y=p.turboThreshold,b=this.xData,x=this.yData,_=(l=h.pointArrayMap)&&l.length,t=t||[];if(l=t.length,i=Ft(i,!0),o!==!1&&l&&d===l&&!h.cropped&&!h.hasGroupedData&&h.visible)Bt(t,function(t,e){c[e].update&&t!==p.data[e]&&c[e].update(t,!1,null,!1)});else{if(h.xIncrement=null,h.colorCounter=0,Bt(this.parallelArrays,function(t){h[t+"Data"].length=0}),y&&l>y){for(n=0;null===m&&n<l;)m=t[n],n++;if(a(m)){for(v=Ft(p.pointStart,0),m=Ft(p.pointInterval,1),n=0;n<l;n++)b[n]=v,x[n]=t[n],v+=m;h.xIncrement=v}else if(r(m))if(_)for(n=0;n<l;n++)m=t[n],b[n]=m[0],x[n]=m.slice(1,_+1);else for(n=0;n<l;n++)m=t[n],b[n]=m[0],x[n]=m[1];else e(12)}else for(n=0;n<l;n++)t[n]!==H&&(m={series:h},h.pointClass.prototype.applyOptions.apply(m,[t[n]]),h.updateParallelArrays(m,n),v&&u(m.name))&&(g.names[m.x]=m.name);for(s(x[0])&&e(14,!0),h.data=[],h.options.data=t,n=d;n--;)c[n]&&c[n].destroy&&c[n].destroy();g&&(g.minRange=g.userMinRange),h.isDirty=h.isDirtyData=f.isDirtyBox=!0,n=!1}"point"===p.legendType&&(this.processData(),this.generatePoints()),i&&f.redraw(n)},processData:function(t){var i,n=this.xData,s=this.yData,o=n.length;i=0;var r,a,l,h=this.xAxis,c=this.options;l=c.cropThreshold;var u,d,c=this.getExtremesFromAll||c.getExtremesFromAll,p=this.isCartesian;if(p&&!this.isDirty&&!h.isDirty&&!this.yAxis.isDirty&&!t)return!1;for(h&&(t=h.getExtremes(),u=t.min,d=t.max),p&&this.sorted&&!c&&(!l||o>l||this.forceCrop)&&(n[o-1]<u||n[0]>d?(n=[],s=[]):(n[0]<u||n[o-1]>d)&&(i=this.cropData(this.xData,this.yData,u,d),n=i.xData,s=i.yData,i=i.start,r=!0)),l=n.length-1;l>=0;l--)o=n[l]-n[l-1],o>0&&(a===H||o<a)?a=o:o<0&&this.requireSorting&&e(15);this.cropped=r,this.cropStart=i,this.processedXData=n,this.processedYData=s,this.closestPointRange=a},cropData:function(t,e,i,n){var s,o=t.length,r=0,a=o,l=Ft(this.cropShoulder,1);for(s=0;s<o;s++)if(t[s]>=i){r=ft(0,s-l);break}for(i=s;i<o;i++)if(t[i]>n){a=i+l;break}return{xData:t.slice(r,a),yData:e.slice(r,a),start:r,end:a}},generatePoints:function(){var t,e,i,n,s=this.options.data,o=this.data,r=this.processedXData,a=this.processedYData,l=this.pointClass,h=r.length,c=this.cropStart||0,u=this.hasGroupedData,d=[];for(o||u||(o=[],o.length=s.length,o=this.data=o),n=0;n<h;
15n++)e=c+n,u?d[n]=(new l).init(this,[r[n]].concat(p(a[n]))):(o[e]?i=o[e]:s[e]!==H&&(o[e]=i=(new l).init(this,s[e],r[n])),d[n]=i),d[n].index=e;if(o&&(h!==(t=o.length)||u))for(n=0;n<t;n++)n===c&&!u&&(n+=h),o[n]&&(o[n].destroyElements(),o[n].plotX=H);this.data=o,this.points=d},getExtremes:function(t){var e,i=this.yAxis,n=this.processedXData,s=[],o=0;e=this.xAxis.getExtremes();var r,a,l,h,c=e.min,u=e.max,t=t||this.stackedYData||this.processedYData;for(e=t.length,h=0;h<e;h++)if(a=n[h],l=t[h],r=null!==l&&l!==H&&(!i.isLog||l.length||l>0),a=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(n[h+1]||a)>=c&&(n[h-1]||a)<=u,r&&a)if(r=l.length)for(;r--;)null!==l[r]&&(s[o++]=l[r]);else s[o++]=l;this.dataMin=C(s),this.dataMax=S(s)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,i,n,s,o=this.options,r=o.stacking,l=this.xAxis,h=l.categories,c=this.yAxis,d=this.points,p=d.length,f=!!this.modifyValue,m=o.pointPlacement,g="between"===m||a(m),v=o.threshold,y=o.startFromThreshold?v:0,b=Number.MAX_VALUE,o=0;o<p;o++){var x=d[o],_=x.x,w=x.y;i=x.low;var k=r&&c.stacks[(this.negStacks&&w<(y?0:v)?"-":"")+this.stackKey];c.isLog&&null!==w&&w<=0&&(x.y=w=null,e(10)),x.plotX=t=mt(ft(-1e5,l.translate(_,0,0,0,1,m,"flags"===this.type)),1e5),r&&this.visible&&k&&k[_]&&(s=this.getStackIndicator(s,_,this.index),k=k[_],w=k.points[s.key],i=w[0],w=w[1],i===y&&(i=Ft(v,c.min)),c.isLog&&i<=0&&(i=null),x.total=x.stackTotal=k.total,x.percentage=k.total&&x.y/k.total*100,x.stackY=w,k.setOffset(this.pointXOffset||0,this.barW||0)),x.yBottom=u(i)?c.translate(i,0,1,0,1):null,f&&(w=this.modifyValue(w,x)),x.plotY=i="number"==typeof w&&w!==1/0?mt(ft(-1e5,c.translate(w,0,1,0,1)),1e5):H,x.isInside=i!==H&&i>=0&&i<=c.len&&t>=0&&t<=l.len,x.clientX=g?l.translate(_,0,0,0,1):t,x.negative=x.y<(v||0),x.category=h&&h[x.x]!==H?h[x.x]:x.x,o&&(b=mt(b,gt(t-n))),n=t}this.closestPointRangePx=b,this.getSegments()},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,s=e.inverted,o=this.clipBox,r=o||e.clipBox,a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,r.height,i.xAxis,i.yAxis].join(","),l=e[a],h=e[a+"m"];l||(t&&(r.width=0,e[a+"m"]=h=n.clipRect(-99,s?-e.plotLeft:-e.plotTop,99,s?e.chartWidth:e.chartHeight)),e[a]=l=n.clipRect(r)),t&&(l.count+=1),i.clip!==!1&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count-=1,l.count<=0&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e,i=this.chart,n=this.options.animation;n&&!o(n)&&(n=ee[this.type].animation),t?this.setClip(n):(e=this.sharedClipKey,(t=i[e])&&t.animate({width:i.plotSizeX},n),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99},n),this.animate=null)},afterAnimate:function(){this.setClip(),Qt(this,"afterAnimate")},drawPoints:function(){var t,e,i,n,s,o,r,a,l,h,c,u,d=this.points,p=this.chart,f=this.options.marker,m=this.pointAttr[""],g=this.markerGroup,v=Ft(f.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*f.radius);if(f.enabled!==!1||this._hasPointMarkers)for(n=d.length;n--;)s=d[n],e=dt(s.plotX),i=s.plotY,l=s.graphic,h=s.marker||{},c=!!s.marker,t=v&&h.enabled===H||h.enabled,u=s.isInside,t&&i!==H&&!isNaN(i)&&null!==s.y?(t=s.pointAttr[s.selected?"select":""]||m,o=t.r,r=Ft(h.symbol,this.symbol),a=0===r.indexOf("url"),l?l[u?"show":"hide"](!0).animate($t({x:e-o,y:i-o},l.symbolName?{width:2*o,height:2*o}:{})):u&&(o>0||a)&&(s.graphic=p.renderer.symbol(r,e-o,i-o,2*o,2*o,c?h:f).attr(t).add(g))):l&&(s.graphic=l.destroy())},convertAttribs:function(t,e,i,n){var s,o,r=this.pointAttrToOptions,a={},t=t||{},e=e||{},i=i||{},n=n||{};for(s in r)o=r[s],a[s]=Ft(t[o],e[s],i[s],n[s]);return a},getAttribs:function(){var t,e=this,i=e.options,n=ee[e.type].marker?i.marker:i,s=n.states,o=s.hover,r=e.color,a=e.options.negativeColor;t={stroke:r,fill:r};var l,h,c=e.points||[],d=[],p=e.pointAttrToOptions;l=e.hasPointSpecificOptions;var f=n.lineColor,m=n.fillColor;h=i.turboThreshold;var g,v=e.zones,y=e.zoneAxis||"y";if(i.marker?(o.radius=o.radius||n.radius+o.radiusPlus,o.lineWidth=o.lineWidth||n.lineWidth+o.lineWidthPlus):(o.c
15olor=o.color||L(o.color||r).brighten(o.brightness).get(),o.negativeColor=o.negativeColor||L(o.negativeColor||a).brighten(o.brightness).get()),d[""]=e.convertAttribs(n,t),Bt(["hover","select"],function(t){d[t]=e.convertAttribs(s[t],d[""])}),e.pointAttr=d,r=c.length,!h||r<h||l)for(;r--;){if(h=c[r],(n=h.options&&h.options.marker||h.options)&&n.enabled===!1&&(n.radius=0),v.length){for(l=0,t=v[l];h[y]>=t.value;)t=v[++l];h.color=h.fillColor=Ft(t.color,e.color)}if(l=i.colorByPoint||h.color,h.options)for(g in p)u(n[p[g]])&&(l=!0);l?(n=n||{},l=[],s=n.states||{},t=s.hover=s.hover||{},i.marker&&(!h.negative||t.fillColor||o.fillColor)||(t[e.pointAttrToOptions.fill]=t.color||!h.options.color&&o[h.negative&&a?"negativeColor":"color"]||L(h.color).brighten(t.brightness||o.brightness).get()),t={color:h.color},m||(t.fillColor=h.color),f||(t.lineColor=h.color),n.hasOwnProperty("color")&&!n.color&&delete n.color,l[""]=e.convertAttribs($t(t,n),d[""]),l.hover=e.convertAttribs(s.hover,d.hover,l[""]),l.select=e.convertAttribs(s.select,d.select,l[""])):l=d,h.pointAttr=l}},destroy:function(){var t,e,i,n,s=this,o=s.chart,r=/AppleWebKit\/533/.test(_t),a=s.data||[];for(Qt(s,"destroy"),Kt(s),Bt(s.axisTypes||[],function(t){(n=s[t])&&(c(n.series,s),n.isDirty=n.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),t=a.length;t--;)(e=a[t])&&e.destroy&&e.destroy();s.points=null,clearTimeout(s.animationTimeout);for(i in s)s[i]instanceof E&&!s[i].survive&&(t=r&&"group"===i?"hide":"destroy",s[i][t]());o.hoverSeries===s&&(o.hoverSeries=null),c(o.series,s);for(i in s)delete s[i]},getSegmentPath:function(t){var e=this,i=[],n=e.options.step;return Bt(t,function(s,o){var r,a=s.plotX,l=s.plotY;e.getPointSpline?i.push.apply(i,e.getPointSpline(t,s,o)):(i.push(o?"L":"M"),n&&o&&(r=t[o-1],"right"===n?i.push(r.plotX,l,"L"):"center"===n?i.push((r.plotX+a)/2,r.plotY,"L",(r.plotX+a)/2,l,"L"):i.push(a,r.plotY,"L")),i.push(s.plotX,s.plotY))}),i},getGraphPath:function(){var t,e=this,i=[],n=[];return Bt(e.segments,function(s){t=e.getSegmentPath(s),s.length>1?i=i.concat(t):n.push(s[0])}),e.singlePoints=n,e.graphPath=i},drawGraph:function(){var t=this,e=this.options,i=[["graph",e.lineColor||this.color,e.dashStyle]],n=e.lineWidth,s="square"!==e.linecap,o=this.getGraphPath(),r=this.fillGraph&&this.color||"none";Bt(this.zones,function(n,s){i.push(["zoneGraph"+s,n.color||t.color,n.dashStyle||e.dashStyle])}),Bt(i,function(i,a){var l=i[0],h=t[l];h?h.animate({d:o}):(n||r)&&o.length&&(h={stroke:i[1],"stroke-width":n,fill:r,zIndex:1},i[2]?h.dashstyle=i[2]:s&&(h["stroke-linecap"]=h["stroke-linejoin"]="round"),t[l]=t.chart.renderer.path(o).attr(h).add(t.group).shadow(a<2&&e.shadow))})},applyZones:function(){var t,e,i,n,s,o,r,a=this,l=this.chart,h=l.renderer,c=this.zones,u=this.clips||[],d=this.graph,p=this.area,f=ft(l.chartWidth,l.chartHeight),m=this[(this.zoneAxis||"y")+"Axis"],g=m.reversed,v=l.inverted,y=m.horiz,b=!1;c.length&&(d||p)&&m.min!==H&&(d&&d.hide(),p&&p.hide(),n=m.getExtremes(),Bt(c,function(c,x){t=g?y?l.plotWidth:0:y?0:m.toPixels(n.min),t=mt(ft(Ft(e,t),0),f),e=mt(ft(ut(m.toPixels(Ft(c.value,n.max),!0)),0),f),b&&(t=e=m.toPixels(n.max)),s=Math.abs(t-e),o=mt(t,e),r=ft(t,e),m.isXAxis?(i={x:v?r:o,y:0,width:s,height:f},y||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?r:o,width:f,height:s},y&&(i.y=l.plotWidth-i.y)),l.inverted&&h.isVML&&(i=m.isXAxis?{x:0,y:g?o:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}
15),u[x]?u[x].animate(i):(u[x]=h.clipRect(i),d&&a["zoneGraph"+x].clip(u[x]),p&&a["zoneArea"+x].clip(u[x])),b=c.value>n.max}),this.clips=u)},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};Bt(["group","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;e.xAxis&&(Xt(i,"resize",t),Xt(e,"destroy",function(){Kt(i,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,i,n,s){var o=this[t],r=!o;return r&&(this[t]=o=this.chart.renderer.g(e).attr({visibility:i,zIndex:n||.1}).add(s),o.addClass("highcharts-series-"+this.index)),o[r?"attr":"animate"](this.getPlotBox()),o},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t,e=this,i=e.chart,n=e.options,s=(t=n.animation)&&!!e.animate&&i.renderer.isSVG&&Ft(t.duration,500)||0,o=e.visible?"inherit":"hidden",r=n.zIndex,a=e.hasRendered,l=i.seriesGroup;t=e.plotGroup("group","series",o,r,l),e.markerGroup=e.plotGroup("markerGroup","markers",o,r,l),s&&e.animate(!0),e.getAttribs(),t.inverted=!!e.isCartesian&&i.inverted,e.drawGraph&&(e.drawGraph(),e.applyZones()),Bt(e.points,function(t){t.redraw&&t.redraw()}),e.drawDataLabels&&e.drawDataLabels(),e.visible&&e.drawPoints(),e.drawTracker&&e.options.enableMouseTracking!==!1&&e.drawTracker(),i.inverted&&e.invertGroups(),n.clip!==!1&&!e.sharedClipKey&&!a&&t.clip(i.clipRect),s&&e.animate(),a||(e.animationTimeout=f(function(){e.afterAnimate()},s)),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirtyData,i=this.isDirty,n=this.group,s=this.xAxis,o=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:Ft(s&&s.left,t.plotLeft),translateY:Ft(o&&o.top,t.plotTop)})),this.translate(),this.render(),e&&Qt(this,"updatedData"),(i||e)&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,s=this.chart.inverted;return this.searchKDTree({clientX:s?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:s?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){function t(i,n,s){var o,r;if(r=i&&i.length)return o=e.kdAxisArray[n%s],i.sort(function(t,e){return t[o]-e[o]}),r=Math.floor(r/2),{point:i[r],left:t(i.slice(0,r),n+1,s),right:t(i.slice(r+1),n+1,s)}}var e=this,i=e.kdDimensions;delete e.kdTree,f(function(){var n=Gt(e.points||[],function(t){return null!==t.y});e.kdTree=t(n,i,i)},e.options.kdNow?0:1)},searchKDTree:function(t,e){function i(t,e,a,l){var h,c,d=e.point,p=n.kdAxisArray[a%l],f=d;return c=u(t[s])&&u(d[s])?Math.pow(t[s]-d[s],2):null,h=u(t[o])&&u(d[o])?Math.pow(t[o]-d[o],2):null,h=(c||0)+(h||0),d.dist=u(h)?Math.sqrt(h):Number.MAX_VALUE,d.distX=u(c)?Math.sqrt(c):Number.MAX_VALUE,p=t[p]-d[p],h=p<0?"left":"right",c=p<0?"right":"left",e[h]&&(h=i(t,e[h],a+1,l),f=h[r]<f[r]?h:d),e[c]&&Math.sqrt(p*p)<f[r]&&(t=i(t,e[c],a+1,l),f=t[r]<f[r]?t:f),f}var n=this,s=this.kdAxisArray[0],o=this.kdAxisArray[1],r=e?"distX":"dist";if(this.kdTree||this.buildKDTree(),this.kdTree)return i(t,this.kdTree,this.kdDimensions,this.kdDimensions)}},N.prototype={destroy:function(){D(this,this.axis)},render:function(t){var e=this.options,i=e.format,i=i?x(i,this):e.formatter.call(this);this.label?this.label.attr({text:i,visibility:"hidden"}):this.label=this.axis.chart.renderer.text(i,null,null,e.useHTML).css(e.style).attr({align:this.textAlign,rotation:e.rotation,visibility:"hidden"}).add(t)},setOffset:function(t,e){var i=this.axis,n=i.chart,s=n.inverted,o=i.reversed,o=this.isNegative&&!o||!this.isNegative&&o,r=i.translate(i.usePercentage?100:this.total,0,0,0,1),i=i.translate(0),i=gt(r-i),a=n.xAxis[0].translate(this.x)+t,l=n.plotHeight,o={x:s?o?r:r-i:a,y:s?l-a-e:o?l-r-i:l-r,width:s?i:e,height:s?e:i};(s=this.label)&&(s.align(this.alignOptions,null,o),o=s.alignAttr,s[this.options.crop===!1||n.isInsidePlot(o.x,o.y)?"show":"hide"](!0))}},se.prototype.getStacks=function(){var t=this;Bt(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),Bt(t.series,function(e){!e.options.stacking||e.visible!==!0&&t.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=e.type+Ft(e.options.stack,""))})},ae.prototype.buildStacks=function(){var t=this.series,e=Ft(this.options.reversedStacks,!0),i=t.length;if(!this.isXAxis){for(this.usePercentage=!1;i--;)t[e?i:t.length-i-1].setStackedPoints();if(this.usePercentage)for(i=0;i<t.length;i++)t[i].setPercentStacks()}},ae.prototype.renderStackTotals=function(){var t,e,i=this.chart,n=i.renderer,s=this.stacks,o=this.stackTotalGroup;o||(this.stackTotalGroup=o=n.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),o.translate(i.plotLeft,i.plotTop);for(t in s)for(e in i=s[t])i[e].render(o)},ae.prototype.resetStacks=function(){var t,e,i=this.stacks;if(!this.isXAxis)for(t in i)for(e in i[t])i[t][e].touched<this.stacksTouched?(i[t][e].destroy(),delete i[t][e]):(i[t][e].total=null,i[t][e].cum=0)},ae.prototype.cleanStacks=function(){var t,e,i;if(!this.isXAxis){this.oldStacks&&(t=this.stacks=this.oldStacks);for(e in t)for(i in t[e])t[e][i].cum=t[e][i].total}},ye.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var t,e,i,n,s,o,r,a=this.processedXData,l=this.processedYData,h=[],c=l.length,u=this.options,d=u.threshold,p=u.startFromThreshold?d:0,f=u.stack,u=u.stacking,m=this.stackKey,g="-"+m,v=this.negStacks,y=this.yAxis,b=y.stacks,x=y.oldStacks;for(y.stacksTouched+=1,s=0;s<c;s++)o=a[s],r=l[s],t=this.getStackIndicator(t,o,this.index),n=t.key,i=(e=v&&r<(p?0:d))?g:m,b[i]||(b[i]={}),b[i][o]||(x[i]&&x[i][o]?(b[i][o]=x[i][o],b[i][o].total=null):b[i][o]=new N(y,y.options.stackLabels,e,o,f)),i=b[i][o],i.points[n]=[Ft(i.cum,p)],i.touched=y.stacksTouched,t.index>0&&this.singleStacks===!1&&(i.points[n][0]=i.points[this.index+","+o+",0"][0]),"percent"===u?(e=e?m:g,v&&b[e]&&b[e][o]?(e=b[e][o],i.total=e.total=ft(e.total,i.total)+gt(r)||0):i.total=M(i.total+(gt(r)||0))):i.total=M(i.total+(r||0)),i.cum=Ft(i.cum,p)+(r||0),i.points[n].push(i.cum),h[s]=i.cum;"percent"===u&&(y.usePercentage=!0),this.stackedYData=h,y.oldStacks={}}},ye.prototype.setPercentStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacks,s=e.processedXData;Bt([i,"-"+i],function(i){for(var o,r,a,l=s.length;l--;)r=s[l],t=e.getStackIndicator(t,r,e.index),o=(a=n[i]&&n[i][r])&&a.points[t.key],(r=o)&&(a=a.total?100/a.total:0,r[0]=M(r[0]*a),r[1]=M(r[1]*a),e.stackedYData[l]=r[1])})}
15,ye.prototype.getStackIndicator=function(t,e,i){return u(t)&&t.x===e?t.index++:t={x:e,index:0},t.key=[i,e,t.index].join(","),t},$t(se.prototype,{addSeries:function(t,e,i){var n,s=this;return t&&(e=Ft(e,!0),Qt(s,"addSeries",{options:t},function(){n=s.initSeries(t),s.isDirtyLegend=!0,s.linkSeries(),e&&s.redraw(i)})),n},addAxis:function(t,e,n,s){var o=e?"xAxis":"yAxis",r=this.options;new ae(this,i(t,{index:this[o].length,isX:e})),r[o]=p(r[o]||{}),r[o].push(t),Ft(n,!0)&&this.redraw(s)},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,s=i.loading,o=function(){n&&m(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=g(Ht,{className:"highcharts-loading"},$t(s.style,{zIndex:10,display:"none"}),e.container),e.loadingSpan=g("span",null,s.labelStyle,n),Xt(e,"redraw",o)),e.loadingSpan.innerHTML=t||i.lang.loading,e.loadingShown||(m(n,{opacity:0,display:""}),Jt(n,{opacity:s.style.opacity},{duration:s.showDuration||0}),e.loadingShown=!0),o()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&Jt(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){m(e,{display:"none"})}}),this.loadingShown=!1}}),$t(ve.prototype,{update:function(t,e,i,n){function s(){l.applyOptions(t),null===l.y&&c&&(l.graphic=c.destroy()),o(t)&&!r(t)&&(l.redraw=function(){c&&c.element&&t&&t.marker&&t.marker.symbol&&(l.graphic=c.destroy()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),a=l.index,h.updateParallelArrays(l,a),p&&l.name&&(p[l.x]=l.name),d.data[a]=o(d.data[a])?l.options:t,h.isDirty=h.isDirtyData=!0,!h.fixedBox&&h.hasCartesianSeries&&(u.isDirtyBox=!0),"point"===d.legendT
15ype&&(u.isDirtyLegend=!0),e&&u.redraw(i)}var a,l=this,h=l.series,c=l.graphic,u=h.chart,d=h.options,p=h.xAxis&&h.xAxis.names,e=Ft(e,!0);n===!1?s():l.firePointEvent("update",{options:t},s)},remove:function(t,e){this.series.removePoint(Ut(this,this.series.data),t,e)}}),$t(ye.prototype,{addPoint:function(t,e,i,n){var s,o=this,r=o.options,a=o.data,l=o.graph,h=o.area,c=o.chart,u=o.xAxis&&o.xAxis.names,d=l&&l.shift||0,p=["graph","area"],l=r.data,f=o.xData;if(A(n,c),i){for(n=o.zones.length;n--;)p.push("zoneGraph"+n,"zoneArea"+n);Bt(p,function(t){o[t]&&(o[t].shift=d+(r.step?2:1))})}if(h&&(h.isArea=!0),e=Ft(e,!0),h={series:o},o.pointClass.prototype.applyOptions.apply(h,[t]),p=h.x,n=f.length,o.requireSorting&&p<f[n-1])for(s=!0;n&&f[n-1]>p;)n--;o.updateParallelArrays(h,"splice",n,0,0),o.updateParallelArrays(h,n),u&&h.name&&(u[p]=h.name),l.splice(n,0,t),s&&(o.data.splice(n,0,null),o.processData()),"point"===r.legendType&&o.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),o.updateParallelArrays(h,"shift"),l.shift())),o.isDirty=!0,o.isDirtyData=!0,e&&(o.getAttribs(),c.redraw())},removePoint:function(t,e,i){var n=this,s=n.data,o=s[t],r=n.points,a=n.chart,l=function(){s.length===r.length&&r.splice(t,1),s.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};A(i,a),e=Ft(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e){var i=this,n=i.chart,t=Ft(t,!0);i.isRemoving||(i.isRemoving=!0,Qt(i,"remove",null,function(){i.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),t&&n.redraw(e)})),i.isRemoving=!1},update:function(t,e){var n,s=this,o=this.chart,r=this.userOptions,a=this.type,l=Rt[a].prototype,h=["group","markerGroup","dataLabelsGroup"];(t.type&&t.type!==a||void 0!==t.zIndex)&&(h.length=0),Bt(h,function(t){h[t]=s[t],delete s[t]}),t=i(r,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},t),this.remove(!1);for(n in l)this[n]=H;$t(this,Rt[t.type||a].prototype),Bt(h,function(t){s[t]=h[t]}),this.init(o,t),o.linkSeries(),Ft(e,!0)&&o.redraw(!1)}}),$t(ae.prototype,{update:function(t,e){var n=this.chart,t=n.options[this.coll][this.options.index]=i(this.userOptions,t);this.destroy(!0),this._addedPlotLB=this.chart._labelPanes=H,this.init(n,$t(t,{events:H})),n.isDirtyBox=!0,Ft(e,!0)&&n.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,s=n.length;s--;)n[s]&&n[s].remove(!1);c(e.axes,this),c(e[i],this),e.options[i].splice(this.options.index,1),Bt(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,Ft(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}});var be=v(ye);Rt.line=be,ee.area=i(ie,{softThreshold:!1,threshold:0});var xe=v(ye,{type:"area",singleStacks:!1,getSegments:function(){var t,e,i,n,s,o=this,r=[],a=[],l=[],h=this.xAxis,c=this.yAxis,u=c.stacks[this.stackKey],d={},p=this.points,f=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(n=0;n<p.length;n++)d[p[n].x]=p[n];for(s in u)null!==u[s].total&&l.push(+s);l.sort(function(t,e){return t-e}),Bt(l,function(s){var r,l=null;if(!f||d[s]&&null!==d[s].y)if(d[s])a.push(d[s]);else{for(n=o.index;n<=c.series.length;n++)if(i=o.getStackIndicator(null,s,n),r=u[s].points[i.key]){l=r[1];break}t=h.translate(s),e=c.getThreshold(l),a.push({y:null,plotX:t,clientX:t,plotY:e,yBottom:e,onMouseOver:Et})}}),a.length&&r.push(a)}else ye.prototype.getSegments.call(this),r=this.segments;this.segments=r},getSegmentPath:function(t){var e,i=ye.prototype.getSegmentPath.call(this,t),n=[].concat(i),s=this.options;e=i.length;var o,r=this.yAxis.getThreshold(s.threshold);if(3===e&&n.push("L",i[1],i[2]),s.stacking&&!this.closedStacks)for(e=t.length-1;e>=0;e--)o=Ft(t[e].yBottom,r),e<t.length-1&&s.step&&n.push(t[e+1].plotX,o),n.push(t[e].plotX,o);else this.closeSegment(n,t,r);return this.areaPath=this.areaPath.concat(n),i},closeSegment:function(t,e,i){t.push("L",e[e.length-1].plotX,i,"L",e[0].plotX,i)},drawGraph:function(){this.areaPath=[],ye.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,n=[["area",this.color,i.fillColor]];Bt(this.zones,function(e,s){n.push(["zoneArea"+s,e.color||t.color,e.fillColor||i.fillColor])}),Bt(n,function(n){var s=n[0],o=t[s];o?o.animate({d:e}):t[s]=t.chart.renderer.path(e).attr({fill:Ft(n[2],L(n[1]).setOpacity(Ft(i.fillOpacity,.75)).get()),zIndex:0}).add(t.group)})},drawLegendSymbol:oe.drawRectangle});return Rt.area=xe,ee.spline=i(ie),be=v(ye,{type:"spline",getPointSpline:function(t,e,
15i){var n,s,o,r,a=e.plotX,l=e.plotY,h=t[i-1],c=t[i+1];if(h&&c){t=h.plotY,o=c.plotX;var u,c=c.plotY;n=(1.5*a+h.plotX)/2.5,s=(1.5*l+t)/2.5,o=(1.5*a+o)/2.5,r=(1.5*l+c)/2.5,u=(r-s)*(o-a)/(o-n)+l-r,s+=u,r+=u,s>t&&s>l?(s=ft(t,l),r=2*l-s):s<t&&s<l&&(s=mt(t,l),r=2*l-s),r>c&&r>l?(r=ft(c,l),s=2*l-r):r<c&&r<l&&(r=mt(c,l),s=2*l-r),e.rightContX=o,e.rightContY=r}return i?(e=["C",h.rightContX||h.plotX,h.rightContY||h.plotY,n||a,s||l,a,l],h.rightContX=h.rightContY=null):e=["M",a,l],e}}),Rt.spline=be,ee.areaspline=i(ee.area),xe=xe.prototype,be=v(be,{type:"areaspline",closedStacks:!0,getSegmentPath:xe.getSegmentPath,closeSegment:xe.closeSegment,drawGraph:xe.drawGraph,drawLegendSymbol:oe.drawRectangle}),Rt.areaspline=be,ee.column=i(ie,{borderColor:"#FFFFFF",borderRadius:0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{brightness:.1,shadow:!1,halo:!1},select:{color:"#C0C0C0",borderColor:"#000000",shadow:!1}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0}),be=v(ye,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){ye.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&Bt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e,i=this,n=i.options,s=i.xAxis,o=i.yAxis,r=s.reversed,a={},l=0;n.grouping===!1?l=1:Bt(i.chart.series,function(n){var s=n.options,r=n.yAxis;n.type===i.type&&n.visible&&o.len===r.len&&o.pos===r.pos&&(s.stacking?(t=n.stackKey,a[t]===H&&(a[t]=l++),e=a[t]):s.grouping!==!1&&(e=l++),n.columnIndex=e)});var h=mt(gt(s.transA)*(s.ordinalSlope||n.pointRange||s.closestPointRange||s.tickInterval||1),s.len),c=h*n.groupPadding,u=(h-2*c)/l,n=mt(n.maxPointWidth||s.len,Ft(n.pointWidth,u*(1-2*n.pointPadding)));return i.columnMetrics={width:n,offset:(u-n)/2+(c+((i.columnIndex||0)+(r?1:0))*u-h/2)*(r?-1:1)},i.columnMetrics},crispCol:function(t,e,i,n){var s=this.chart,o=this.borderWidth,r=-(o%2?.5:0),o=o%2?.5:1;return s.inverted&&s.renderer.isVML&&(o+=1),i=Math.round(t+i)+r,t=Math.round(t)+r,i-=t,n=Math.round(e+n)+o,r=gt(e)<=.5&&n>.5,e=Math.round(e)+o,n-=e,r&&(e-=1,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,i=t.options,n=t.borderWidth=Ft(i.borderWidth,t.closestPointRange*t.xAxis.transA<2?0:1),s=t.yAxis,o=t.translatedThreshold=s.getThreshold(i.threshold),r=Ft(i.minPointLength,5),a=t.getColumnMetrics(),l=a.width,h=t.barW=ft(l,1+2*n),c=t.pointXOffset=a.offset;e.inverted&&(o-=.5),i.pointPadding&&(h=pt(h)),ye.prototype.translate.apply(t),Bt(t.points,function(i){var n,a=mt(Ft(i.yBottom,o),9e4),u=999+gt(a),u=mt(ft(-u,i.plotY),s.len+u),d=i.plotX+c,p=h,f=mt(u,a),m=ft(u,a)-f;gt(m)<r&&r&&(m=r,n=!s.reversed&&!i.negative||s.reversed&&i.negative,f=gt(f-o)>r?a-r:o-(n?r:0)),i.barX=d,i.pointWidth=l,i.tooltipPos=e.inverted?[s.len+s.pos-e.plotLeft-u,t.xAxis.len-d-p/2,m]:[d+p/2,u+s.pos-e.plotTop,m],i.shapeType="rect",i.shapeArgs=t.crispCol(d,f,p,m)})},getSymbol:Et,drawLegendSymbol:oe.drawRectangle,drawGraph:Et,drawPoints:function(){var t,e,n=this,s=this.chart,o=n.options,r=s.renderer,a=o.animationLimit||250;Bt(n.points,function(l){var h=l.plotY,c=l.graphic;h===H||isNaN(h)||null===l.y?c&&(l.graphic=c.destroy()):(t=l.shapeArgs,h=u(n.borderWidth)?{"stroke-width":n.borderWidth}:{},e=l.pointAttr[l.selected?"select":""]||n.pointAttr[""],c?(te(c),c.attr(h).attr(e)[s.pointCount<a?"animate":"attr"](i(t))):l.graphic=r[l.shapeType](t).attr(h).attr(e).add(l.group||n.group).shadow(o.shadow,null,o.stacking&&!o.borderRadius))})},animate:function(t){var e=this.yAxis,i=this.options,n=this.chart.inverted,s={};Mt&&(t?(s.scaleY=.001,t=mt(e.pos+e.len,ft(e.pos,e.toPixels(i.threshold))),n?s.translateX=t-e.len:s.translateY=t,this.group.attr(s)):(s.scaleY=1,s[n?"translateX":"translateY"]=e.pos,this.group.animate(s,this.options.animation),this.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&Bt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),ye.prototype.remove.apply(t,arguments)}}),Rt.column=be,ee.bar=i(ee.column),xe=v(be,{type:"bar",inverted:!0}),Rt.bar=xe,ee.scatter=i(ie,{lineWidth:0,marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),xe=v(ye,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&ye.prototype.drawGraph.call(this)}}),Rt.scatter=xe,ee.pie=i(ie,{borderColor:"#FFFFFF",borderWidth:1,center:[null,
15null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return null===this.y?void 0:this.point.name},x:0},ignoreHiddenPoint:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,states:{hover:{brightness:.1,shadow:!1}},stickyTracking:!1,tooltip:{followPointer:!0}}),ie={type:"pie",isCartesian:!1,pointClass:v(ve,{init:function(){ve.prototype.init.apply(this,arguments);var t,e=this;return e.name=Ft(e.name,"Slice"),t=function(t){e.slice("select"===t.type)},Xt(e,"select",t),Xt(e,"unselect",t),e},setVisible:function(t,e){var i=this,n=i.series,s=n.chart,o=n.options.ignoreHiddenPoint,e=Ft(e,o);t!==i.visible&&(i.visible=i.options.visible=t=t===H?!i.visible:t,n.options.data[Ut(i,n.data)]=i.options,Bt(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&s.legend.colorizeItem(i,t),!t&&"hover"===i.state&&i.setState(""),o&&(n.isDirty=!0),e&&s.redraw())},slice:function(t,e,i){var n=this.series;A(i,n.chart),Ft(e,!0),this.sliced=this.options.sliced=t=u(t)?t:!this.sliced,n.options.data[Ut(this,n.data)]=this.options,t=t?this.slicedTranslation:{translateX:0,translateY:0},this.graphic.animate(t),this.shadowGroup&&this.shadowGroup.animate(t)},haloPath:function(t){var e=this.shapeArgs,i=this.series.chart;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(i.plotLeft+e.x,i.plotTop+e.y,e.r+t,e.r+t,{innerR:this.shapeArgs.r,start:e.start,end:e.end})}}),requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(Bt(i,function(t){var i=t.graphic,s=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:s.r,start:s.start,end:s.end},e.options.animation))}),e.animate=null)},updateTotals:function(){var t,e,i=0,n=this.points,s=n.length,o=this.options.ignoreHiddenPoint;for(t=0;t<s;t++)e=n[t],i+=o&&!e.visible?0:e.y;for(this.total=i,t=0;t<s;t++)e=n[t],e.percentage=i>0&&(e.visible||!o)?e.y/i*100:0,
16e.total=i},generatePoints:function(){ye.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,s,o,r=0,a=this.options,l=a.slicedOffset,h=l+a.borderWidth,c=a.startAngle||0,u=this.startAngleRad=bt/180*(c-90),c=(this.endAngleRad=bt/180*(Ft(a.endAngle,c+360)-90))-u,d=this.points,p=a.dataLabels.distance,a=a.ignoreHiddenPoint,f=d.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i){return n=ct.asin(mt((e-t[1])/(t[2]/2+p),1)),t[0]+(i?-1:1)*vt(n)*(t[2]/2+p)},s=0;s<f;s++)o=d[s],e=u+r*c,a&&!o.visible||(r+=o.percentage/100),i=u+r*c,o.shapeType="arc",o.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:ut(1e3*e)/1e3,end:ut(1e3*i)/1e3},n=(i+e)/2,n>1.5*bt?n-=2*bt:n<-bt/2&&(n+=2*bt),o.slicedTranslation={translateX:ut(vt(n)*l),translateY:ut(yt(n)*l)},e=vt(n)*t[2]/2,i=yt(n)*t[2]/2,o.tooltipPos=[t[0]+.7*e,t[1]+.7*i],o.half=n<-bt/2||n>bt/2?1:0,o.angle=n,h=mt(h,p/2),o.labelPos=[t[0]+e+vt(n)*p,t[1]+i+yt(n)*p,t[0]+e+vt(n)*h,t[1]+i+yt(n)*h,t[0]+e,t[1]+i,p<0?"center":o.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,n,s,o,r=this,a=r.chart.renderer,l=r.options.shadow;l&&!r.shadowGroup&&(r.shadowGroup=a.g("shadow").add(r.group)),Bt(r.points,function(h){null!==h.y&&(e=h.graphic,s=h.shapeArgs,i=h.shadowGroup,n=h.pointAttr[h.selected?"select":""],n.stroke||(n.stroke=n.fill),l&&!i&&(i=h.shadowGroup=a.g("shadow").add(r.shadowGroup)),t=h.sliced?h.slicedTranslation:{translateX:0,translateY:0},i&&i.attr(t),e?e.setRadialReference(r.center).attr(n).animate($t(s,t)):(o={"stroke-linejoin":"round"},h.visible||(o.visibility="hidden"),h.graphic=e=a[h.shapeType](s).setRadialReference(r.center).attr(n).attr(o).attr(t).add(r.group).shadow(l,i)))})},searchPoint:Et,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:oe.drawRectangle,getCenter:ge.getCenter,getSymbol:Et},ie=v(ye,ie),Rt.pie=ie,ye.prototype.drawDataLabels=function(){var t,e,n,s,o=this,r=o.options,a=r.cursor,l=r.dataLabels,h=o.points,c=o.hasRendered||0,d=o.chart.renderer;(l.enabled||o._hasPointLabels)&&(o.dlProcessOptions&&o.dlProcessOptions(l),s=o.plotGroup("dataLabelsGroup","data-labels",l.defer?"hidden":"visible",l.zIndex||6),Ft(l.defer,!0)&&(s.attr({opacity:+c}),c||Xt(o,"afterAnimate",function(){o.visible&&s.show(),s[r.animation?"animate":"attr"]({opacity:1},{duration:200})})),e=l,Bt(h,function(h){var c,p,f,m,g=h.dataLabel,v=h.connector,y=!0,b={};if(t=h.dlOptions||h.options&&h.options.dataLabels,c=Ft(t&&t.enabled,e.enabled)&&null!==h.y,g&&!c)h.dataLabel=g.destroy();else if(c){if(l=i(e,t),m=l.style,c=l.rotation,p=h.getLabelConfig(),n=l.format?x(l.format,p):l.formatter.call(p,l),m.color=Ft(l.color,m.color,o.color,"black"),g)u(n)?(g.attr({text:n}),y=!1):(h.dataLabel=g=g.destroy(),v&&(h.connector=v.destroy()));else if(u(n)){g={fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth,r:l.borderRadius||0,rotation:c,padding:l.padding,zIndex:1},"contrast"===m.color&&(b.color=l.inside||l.distance<0||r.stacking?d.getContrast(h.c
16olor||o.color):"#000000"),a&&(b.cursor=a);for(f in g)g[f]===H&&delete g[f];g=h.dataLabel=d[c?"text":"label"](n,0,-9999,l.shape,null,null,l.useHTML).attr(g).css($t(m,b)).add(s).shadow(l.shadow)}g&&o.alignDataLabel(h,g,l,null,y)}}))},ye.prototype.alignDataLabel=function(t,e,i,n,s){var o=this.chart,r=o.inverted,a=Ft(t.plotX,-9999),l=Ft(t.plotY,-9999),h=e.getBBox(),c=o.renderer.fontMetrics(i.style.fontSize).b,u=this.visible&&(t.series.forceDL||o.isInsidePlot(a,ut(l),r)||n&&o.isInsidePlot(a,r?n.x+1:n.y+n.height-1,r));u&&(n=$t({x:r?o.plotWidth-l:a,y:ut(r?o.plotHeight-a:l),width:0,height:0},n),$t(i,{width:h.width,height:h.height}),i.rotation?(t=o.renderer.rotCorr(c,i.rotation),e[s?"attr":"animate"]({x:n.x+i.x+n.width/2+t.x,y:n.y+i.y+n.height/2}).attr({align:i.align})):(e.align(i,null,n),r=e.alignAttr,"justify"===Ft(i.overflow,"justify")?this.justifyDataLabel(e,i,r,h,n,s):Ft(i.crop,!0)&&(u=o.isInsidePlot(r.x,r.y)&&o.isInsidePlot(r.x+h.width,r.y+h.height)),i.shape&&e.attr({anchorX:t.plotX,anchorY:t.plotY}))),u||(te(e),e.attr({y:-9999}),e.placed=!1)},ye.prototype.justifyDataLabel=function(t,e,i,n,s,o){var r,a,l=this.chart,h=e.align,c=e.verticalAlign,u=t.box?0:t.padding||0;r=i.x+u,r<0&&("right"===h?e.align="left":e.x=-r,a=!0),r=i.x+n.width-u,r>l.plotWidth&&("left"===h?e.align="right":e.x=l.plotWidth-r,a=!0),r=i.y+u,r<0&&("bottom"===c?e.verticalAlign="top":e.y=-r,a=!0),r=i.y+n.height-u,r>l.plotHeight&&("top"===c?e.verticalAlign="bottom":e.y=l.plotHeight-r,a=!0),a&&(t.placed=!o,t.align(e,null,s))},Rt.pie&&(Rt.pie.prototype.drawDataLabels=function(){var t,e,i,n,s,o,r,a,l,h,c,u=this,d=u.data,p=u.chart,f=u.options.dataLabels,m=Ft(f.connectorPadding,10),g=Ft(f.connectorWidth,1),v=p.plotWidth,y=p.plotHeight,b=Ft(f.softConnector,!0),x=f.distance,_=u.center,w=_[2]/2,k=_[1],C=x>0,D=[[],[]],T=[0,0,0,0],M=function(t,e){return e.y-t.y};if(u.visible&&(f.enabled||u._hasPointLabels)){for(ye.prototype.drawDataLabels.apply(u),Bt(d,function(t){t.dataLabel&&t.visible&&D[t.half].push(t)}),h=2;h--;){var A,P=[],O=[],L=D[h],E=L.length;if(E){for(u.sortByAngle(L,h-.5),c=d=0;!d&&L[c];)d=L[c]&&L[c].dataLabel&&(L[c].dataLabel.getBBox().height||21),c++;if(x>0){for(s=mt(k+w+x,p.plotHeight),c=ft(0,k-w-x);c<=s;c+=d)P.push(c);if(s=P.length,E>s){for(t=[].concat(L),t.sort(M),c=E;c--;)t[c].rank=c;for(c=E;c--;)L[c].rank>=s&&L.splice(c,1);E=L.length}for(c=0;c<E;c++){t=L[c],o=t.labelPos,t=9999;var I,N;for(N=0;N<s;N++)I=gt(P[N]-o[1]),I<t&&(t=I,A=N);if(A<c&&null!==P[c])A=c;else for(s<E-c+A&&null!==P[c]&&(A=s-E+c);null===P[A];)A++;O.push({i:A,y:P[A]}),P[A]=null}O.sort(M)}for(c=0;c<E;c++)t=L[c],o=t.labelPos,n=t.dataLabel,l=t.visible===!1?"hidden":"inherit",t=o[1],x>0?(s=O.pop(),A=s.i,a=s.y,(t>a&&null!==P[A+1]||t<a&&null!==P[A-1])&&(a=mt(ft(0,t),p.plotHeight))):a=t,r=f.justify?_[0]+(h?-1:1)*(w+x):u.getX(a===k-w-x||a===k+w+x?t:a,h),n._attr={visibility:l,align:o[6]},n._pos={x:r+f.x+({left:m,right:-m}[o[6]]||0),y:a+f.y-10},n.connX=r,n.connY=a,null===this.options.size&&(s=n.width,r-s<m?T[3]=ft(ut(s-r+m),T[3]):r+s>v-m&&(T[1]=ft(ut(r+s-v+m),T[1])),a-d/2<0?T[0]=ft(ut(-a+d/2),T[0]):a+d/2>y&&(T[2]=ft(ut(a+d/2-y),T[2])))}}(0===S(T)||this.verifyDataLabelOverflow(T))&&(this.placeDataLabels(),C&&g&&Bt(this.points,function(t){e=t.connector,o=t.labelPos,(n=t.dataLabel)&&n._pos&&t.visible?(l=n._attr.visibility,r=n.connX,a=n.connY,i=b?["M",r+("left"===o[6]?5:-5),a,"C",r,a,2*o[2]-o[4],2*o[3]-o[5],o[2],o[3],"L",o[4],o[5]]:["M",r+("left"===o[6]?5:-5),a,"L",o[2],o[3],"L",o[4],o[5]],e?(e.animate({d:i}),e.attr("visibility",l)):t.connector=e=u.chart.renderer.path(i).attr({"stroke-width":g,stroke:f.connectorColor||t.color||"#606060",visibility:l}).add(u.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},Rt.pie.prototype.placeDataLabels=function(){Bt(this.points,function(t){var e=t.dataLabel;e&&t.visible&&((t=e._pos)?(e.attr(e._attr),e[e.moved?"animate":"attr"](t),e.moved=!0):e&&e.attr({y:-9999}))})},Rt.pie.prototype.alignDataLabel=Et,Rt.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,s=n.center,o=n.minSize||80,r=o;return null!==s[0]?r=ft(i[2]-ft(t[1],t[3]),o):(r=ft(i[2]-t[1]-t[3],o),i[0]+=(t[3]-t[1])/2),null!==s[1]?r=ft(mt(r,i[2]-ft(t[0],t[2])),o):(r=ft(mt(r,i[2]-t[0]-t[2]),o),i[1]+=(t[0]-t[2])/2),r<i[2]?(i[2]=r,i[3]=Math.min(/%$/.test(n.innerSize||0)?r*parseFloat(n.innerSize||0)/100:parseFloat(n.innerSize||0),r),this.translate(i),Bt(this.points,function(t){t.dataLabel&&(t.dataLabel._pos=null)}),this.drawDataLabels&&this.drawDataLabels()):e=!0,e}),Rt.column&&(Rt.column.prototype.alignDataLabel=function(t,e,n,s,o){var r=this.chart.inverted,a=t.series,l=t.dlBox||t.shapeArgs,h=Ft(t.below,t.plotY>Ft(this.translatedThreshold,a.yAxis.len)),c=Ft(n.inside,!!this.options.stacking);l&&(s=i(l),s.y<0&&(s.height+=s.y,s.y=0),l=s.y+s.height-a.yAxis.len,l>0&&(s.height-=l),r&&(s={x:a.yAxis.len-s.y-s.height,y:a.xAxis.len-s.x-s.width,width:s.height,height:s.width}
16),c||(r?(s.x+=h?0:s.width,s.width=0):(s.y+=h?s.height:0,s.height=0))),n.align=Ft(n.align,!r||c?"center":h?"right":"left"),n.verticalAlign=Ft(n.verticalAlign,r||c?"middle":h?"top":"bottom"),ye.prototype.alignDataLabel.call(this,t,e,n,s,o)}),function(t){var e=t.Chart,i=t.each,n=t.pick,s=t.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.series,function(t){var s=t.options.dataLabels,o=t.dataLabelCollections||["dataLabel"];(s.enabled||t._hasPointLabels)&&!s.allowOverlap&&t.visible&&i(o,function(s){i(t.points,function(t){t[s]&&(t[s].labelrank=n(t.labelrank,t.shapeArgs&&t.shapeArgs.height),e.push(t[s]))})})}),t.hideOverlappingLabels(e)}e(),s(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,n,s,o,r,a,l,h=t.length;for(n=0;n<h;n++)(e=t[n])&&(e.oldOpacity=e.opacity,e.newOpacity=1);for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),n=0;n<h;n++)for(s=t[n],e=n+1;e<h;++e)o=t[e],s&&o&&s.placed&&o.placed&&0!==s.newOpacity&&0!==o.newOpacity&&(r=s.alignAttr,a=o.alignAttr,l=2*(s.box?0:s.padding),r=!(a.x>r.x+(s.width-l)||a.x+(o.width-l)<r.x||a.y>r.y+(s.height-l)||a.y+(o.height-l)<r.y))&&((s.labelrank<o.labelrank?s:o).newOpacity=0);i(t,function(t){var e,i;t&&(i=t.newOpacity,t.oldOpacity!==i&&t.placed&&(i?t.show(!0):e=function(){t.hide()},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e)),t.isOld=!0)})}}(at),ie=at.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart,i=e.pointer,n=t.options.cursor,s=n&&{cursor:n},o=function(t){for(var i,n=t.target;n&&!i;)i=n.point,n=n.parentNode;i!==H&&i!==e.hoverPoint&&i.onMouseOver(t)};Bt(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.element.point=t)}),t._hasTracking||(Bt(t.trackerGroups,function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(s),j)&&t[e].on("touchstart",o)}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,s=[].concat(n?e.areaPath:e.graphPath),o=s.length,r=e.chart,a=r.pointer,l=r.renderer,h=r.options.tooltip.snap,c=e.tracker,u=i.cursor,d=u&&{cursor:u},u=e.singlePoints,p=function(){r.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(Mt?1e-4:.002)+")";if(o&&!n)for(t=o+1;t--;)"M"===s[t]&&s.splice(t+1,0,s[t+1]-h,s[t+2],"L"),(t&&"M"===s[t]||t===o)&&s.splice(t,0,"L",s[t-2]+h,s[t-1]);for(t=0;t<u.length;t++)o=u[t],s.push("M",o.plotX-h,o.plotY,"L",o.plotX+h,o.plotY);c?c.attr({d:s}):(e.tracker=l.path(s).attr({"stroke-linejoin":"round",visibility:e.visible?"visible":"hidden",stroke:f,fill:n?f:"none","stroke-width":i.lineWidth+(n?0:2*h),zIndex:2}).add(e.group),Bt([e.tracker,e.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(t){a.onTrackerMouseOut(t)}).css(d),j&&t.on("touchstart",p)}))}},Rt.column&&(be.prototype.drawTracker=ie.drawTrackerPoint),Rt.pie&&(Rt.pie.prototype.drawTracker=ie.drawTrackerPoint),Rt.scatter&&(xe.prototype.drawTracker=ie.drawTrackerPoint),$t(me.prototype,{setItemEvents:function(t,e,i,n,s){var o=this;(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),e.css(o.options.itemHoverStyle)}).on("mouseout",function(){e.css(t.visible?n:s),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible()},e={browserEvent:e};t.firePointEvent?t.firePointEvent("legendItemClick",e,i):Qt(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=g("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Xt(t.checkbox,"click",function(e){Qt(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),$.legend.itemStyle.cursor="pointer",$t(se.prototype,{showResetZoom:function(){var t=this,e=$.lang,i=t.options.chart.resetZoomButton,n=i.theme,s=n.states,o="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,s&&s.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,o)},zoomOut:function(){var t=this;Qt(t,"selection",{resetSelection:!0}
16,function(){t.zoom()})},zoom:function(t){var e,i,n=this.pointer,s=!1;!t||t.resetSelection?Bt(this.axes,function(t){e=t.zoom()}):Bt(t.xAxis.concat(t.yAxis),function(t){var i=t.axis,o=i.isXAxis;(n[o?"zoomX":"zoomY"]||n[o?"pinchX":"pinchY"])&&(e=i.zoom(t.min,t.max),i.displayBtn&&(s=!0))}),i=this.resetZoomButton,s&&!i?this.showResetZoom():!s&&o(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw(Ft(this.options.chart.animation,t&&t.animation,this.pointCount<100))},pan:function(t,e){var i,n=this,s=n.hoverPoints;s&&Bt(s,function(t){t.setState()}),Bt("xy"===e?[1,0]:[1],function(e){var s=t[e?"chartX":"chartY"],o=n[e?"xAxis":"yAxis"][0],r=n[e?"mouseDownX":"mouseDownY"],a=(o.pointRange||0)/2,l=o.getExtremes(),h=o.toValue(r-s,!0)+a,a=o.toValue(r+n[e?"plotWidth":"plotHeight"]-s,!0)-a,r=r>s;o.series.length&&(r||h>mt(l.dataMin,l.min))&&(!r||a<ft(l.dataMax,l.max))&&(o.setExtremes(h,a,!1,!1,{trigger:"pan"}),i=!0),n[e?"mouseDownX":"mouseDownY"]=s}),i&&n.redraw(!1),m(n.container,{cursor:"move"})}}),$t(ve.prototype,{select:function(t,e){var i=this,n=i.series,s=n.chart,t=Ft(t,!i.selected);i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[Ut(i,n.data)]=i.options,i.setState(t&&"select"),e||Bt(s.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[Ut(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t,e){var i=this.series,n=i.chart,s=n.tooltip,o=n.hoverPoint;n.hoverSeries!==i&&i.onMouseOver(),o&&o!==this&&o.onMouseOut(),this.series&&(this.firePointEvent("mouseOver"),s&&(!s.shared||i.noSharedTooltip)&&s.refresh(this,t),this.setState("hover"),!e)&&(n.hoverPoint=this)},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;this.firePointEvent("mouseOut"),e&&Ut(this,e)!==-1||(this.setState(),t.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var t,e=i(this.series.options.point,this.options).events;this.events=e;for(t in e)Xt(this,t,e[t]);this.hasImportedEvents=!0}},setState:function(t,e){var n,s=dt(this.plotX),o=this.plotY,r=this.series,a=r.options.states,l=ee[r.type].marker&&r.options.marker,h=l&&!l.enabled,c=l&&l.states[t],u=c&&c.enabled===!1,d=r.stateMarkerGraphic,p=this.marker||{},f=r.chart,m=r.halo,t=t||"";n=this.pointAttr[t]||r.pointAttr[t],t===this.state&&!e||this.selected&&"select"!==t||a[t]&&a[t].enabled===!1||t&&(u||h&&c.enabled===!1)||t&&p.states&&p.states[t]&&p.states[t].enabled===!1||(this.graphic?(l=l&&this.graphic.symbolName&&n.r,this.graphic.attr(i(n,l?{x:s-l,y:o-l,width:2*l,height:2*l}:{})),d&&d.hide()):(t&&c&&(l=c.radius,p=p.symbol||r.symbol,d&&d.currentSymbol!==p&&(d=d.destroy()),d?d[e?"animate":"attr"]({x:s-l,y:o-l}):p&&(r.stateMarkerGraphic=d=f.renderer.symbol(p,s-l,o-l,2*l,2*l).attr(n).add(r.markerGroup),d.currentSymbol=p)),d&&(
16d[t&&f.isInsidePlot(s,o,f.inverted)?"show":"hide"](),d.element.point=this)),(s=a[t]&&a[t].halo)&&s.size?(m||(r.halo=m=f.renderer.path().add(f.seriesGroup)),m.attr($t(Mt?{fill:this.color||r.color,"fill-opacity":s.opacity}:{fill:L(this.color||r.color).setOpacity(s.opacity).get()},s.attributes))[e?"animate":"attr"]({d:this.haloPath(s.size)})):m&&m.attr({d:[]}),this.state=t)},haloPath:function(t){var e=this.series,i=e.chart,n=e.getPlotBox(),s=i.inverted,o=Math.floor(this.plotX);return i.renderer.symbols.circle(n.translateX+(s?e.yAxis.len-this.plotY:o)-t,n.translateY+(s?e.xAxis.len-o:this.plotY)-t,2*t,2*t)}}),$t(ye.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&Qt(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&Qt(this,"mouseOut"),i&&!t.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),this.setState()},setState:function(t){var e=this.options,i=this.graph,n=e.states,s=e.lineWidth,e=0,t=t||"";if(this.state!==t&&(this.state=t,!(n[t]&&n[t].enabled===!1)&&(t&&(s=n[t].lineWidth||s+(n[t].lineWidthPlus||0)),i&&!i.dashstyle)))for(t={"stroke-width":s},i.attr(t);this["zoneGraph"+e];)this["zoneGraph"+e].attr(t),e+=1},setVisible:function(t,e){var i,n=this,s=n.chart,o=n.legendItem,r=s.options.chart.ignoreHiddenSeries,a=n.visible;i=(n.visible=t=n.userOptions.visible=t===H?!a:t)?"show":"hide",Bt(["group","dataLabelsGroup","markerGroup","tracker"],function(t){n[t]&&n[t][i]()}),s.hoverSeries!==n&&(s.hoverPoint&&s.hoverPoint.series)!==n||n.onMouseOut(),o&&s.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&Bt(s.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),Bt(n.linkedSeries,function(e){e.setVisible(t,!1)}),r&&(s.isDirtyBox=!0),e!==!1&&s.redraw(),Qt(n,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===H?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),Qt(this,t?"select":"unselect")},drawTracker:ie.drawTrackerGraph}),$t(at,{Color:L,Point:ve,Tick:I,Renderer:Y,SVGElement:E,SVGRenderer:ne,arrayMin:C,arrayMax:S,charts:It,dateFormat:F,error:e,format:x,pathAnim:z,getOptions:function(){return $},hasBidiBug:At,isTouchDevice:t,setOptions:function(t){return $=i(!0,$,t),O(),$},addEvent:Xt,removeEvent:Kt,createElement:g,discardElement:T,css:m,each:Bt,map:qt,merge:i,splat:p,stableSort:k,extendClass:v,pInt:n,svg:Mt,canvas:Pt,vml:!Mt&&!Pt,product:"Highcharts",version:"4.1.10"}),at}),function(t){"use strict";function e(t,e){t.className+=" "+e}function i(t,e){for(var i=e.split(" "),n=0;n<i.length;n+=1)t.className=t.className.replace(" "+i[n],"")}function n(){return"rtl"===t.getComputedStyle(document.body).direction}function s(){return document.documentElement&&document.documentElement.scrollTop||document.body.scrollTop}function o(){return document.documentElement&&document.documentElement.scrollLeft||document.body.scrollLeft}function r(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function a(t,e){return function(){if(arguments.length>0){for(var i=[],n=0;n<arguments.length;n+=1)i.push(arguments[n]);return i.push(t),e.apply(t,i)}return e.apply(t,[null,t])}}function l(t,e){return{index:t,button:e,cancel:!1}}function h(){function t(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function e(t){var e=n[t].dialog;return e&&"function"==typeof e.__init&&e.__init(e),e}function i(e,i,s,o){var r={dialog:null,factory:i};return void 0!==o&&(r.factory=function(){return t(new n[o].factory,new i)}),s||(r.dialog=t(new r.factory,g)),n[e]=r}var n={};return{defaults:u,dialog:function(n,s,o,r){if("function"!=typeof s)return e(n);if(this.hasOwnProperty(n))throw new Error("alertify.dialog: name already exists");var a=i(n,s,o,r);o?this[n]=function(){if(0===arguments.length)return a.dialog;var e=t(new a.factory,g);return e&&"function"==typeof e.__init&&e.__init(e),e.main.apply(e,arguments),e.show.apply(e)}:this[n]=function(){if(a.dialog&&"function"==typeof a.dialog.__init&&a.dialog.__init(a.dialog),0===arguments.length)return a.dialog;var t=a.dialog;return t.main.apply(a.dialog,arguments),t.show.apply(a.dialog)}},closeAll:function(t){for(var e=d.slice(0),i=0;i<e.length;i+=1){var n=e[i];void 0!==t&&t===n||n.close()}},setting:function(t,i,n){if("notifier"===t)return v.setting(i,n);var s=e(t);return s?s.setting(i,n):void 0}
vendor: 9,910 bytes, line 16
16,set:function(t,e,i){return this.setting(t,e,i)},get:function(t,e){return this.setting(t,e)},notify:function(t,e,i,n){return v.create(e,n).push(t,i)},message:function(t,e,i){return v.create(null,i).push(t,e)},success:function(t,e,i){return v.create("success",i).push(t,e)},error:function(t,e,i){return v.create("error",i).push(t,e)},warning:function(t,e,i){return v.create("warning",i).push(t,e)},dismissAll:function(){v.dismissAll()}}}var c={ENTER:13,ESC:27,F1:112,F12:123,LEFT:37,RIGHT:39},u={modal:!0,basic:!1,frameless:!1,movable:!0,resizable:!0,closable:!0,closableByDimmer:!0,maximizable:!0,startMaximized:!1,pinnable:!0,pinned:!0,padding:!0,overflow:!0,maintainFocus:!0,transition:"pulse",autoReset:!0,notifier:{delay:5,position:"bottom-right"},glossary:{title:"AlertifyJS",ok:"OK",cancel:"Cancel",acccpt:"Accept",deny:"Deny",confirm:"Confirm",decline:"Decline",close:"Close",maximize:"Maximize",restore:"Restore"},theme:{input:"ajs-input",ok:"ajs-ok",cancel:"ajs-cancel"}},d=[],p=function(){return document.addEventListener?function(t,e,i,n){t.addEventListener(e,i,n===!0)}:document.attachEvent?function(t,e,i){t.attachEvent("on"+e,i)}:void 0}(),f=function(){return document.removeEventListener?function(t,e,i,n){t.removeEventListener(e,i,n===!0)}:document.detachEvent?function(t,e,i){t.detachEvent("on"+e,i)}:void 0}(),m=function(){var t,e,i=!1,n={animation:"animationend",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"};for(t in n)if(void 0!==document.documentElement.style[t]){e=n[t],i=!0;break}return{type:e,supported:i}}(),g=function(){function h(t){if(!t.__internal){delete t.__init,null===xt&&document.body.setAttribute("tabindex","0");var i;"function"==typeof t.setup?(i=t.setup(),i.options=i.options||{},i.focus=i.focus||{}):i={buttons:[],focus:{element:null,select:!1},options:{}},"object"!=typeof t.hooks&&(t.hooks={});var n=[];if(Array.isArray(i.buttons))for(var s=0;s<i.buttons.length;s+=1){var o=i.buttons[s],r={};for(var l in o)o.hasOwnProperty(l)&&(r[l]=o[l]);n.push(r)}var h=t.__internal={isOpen:!1,activeElement:document.body,timerIn:void 0,timerOut:void 0,buttons:n,focus:i.focus,options:{title:void 0,modal:void 0,basic:void 0,frameless:void 0,pinned:void 0,movable:void 0,resizable:void 0,autoReset:void 0,closable:void 0,closableByDimmer:void 0,maximizable:void 0,startMaximized:void 0,pinnable:void 0,transition:void 0,padding:void 0,overflow:void 0,onshow:void 0,onclose:void 0,onfocus:void 0},resetHandler:void 0,beginMoveHandler:void 0,beginResizeHandler:void 0,bringToFrontHandler:void 0,modalClickHandler:void 0,buttonsClickHandler:void 0,commandsClickHandler:void 0,transitionInHandler:void 0,transitionOutHandler:void 0},c={};c.root=document.createElement("div"),c.root.className=kt.base+" "+kt.hidden+" ",c.root.innerHTML=wt.dimmer+wt.modal,c.dimmer=c.root.firstChild,c.modal=c.root.lastChild,c.modal.innerHTML=wt.dialog,c.dialog=c.modal.firstChild,c.dialog.innerHTML=wt.reset+wt.commands+wt.header+wt.body+wt.footer+wt.resizeHandle+wt.reset,c.reset=[],c.reset.push(c.dialog.firstChild),c.reset.push(c.dialog.lastChild),c.commands={},c.commands.container=c.reset[0].nextSibling,c.commands.pin=c.commands.container.firstChild,c.commands.maximize=c.commands.pin.nextSibling,c.commands.close=c.commands.maximize.nextSibling,c.header=c.commands.container.nextSibling,c.body=c.header.nextSibling,c.body.innerHTML=wt.content,c.content=c.body.firstChild,c.footer=c.body.nextSibling,c.footer.innerHTML=wt.buttons.auxiliary+wt.buttons.primary,c.resizeHandle=c.footer.nextSibling,c.buttons={},c.buttons.auxiliary=c.footer.firstChild,c.buttons.primary=c.buttons.auxiliary.nextSibling,c.buttons.primary.innerHTML=wt.button,c.buttonTemplate=c.buttons.primary.firstChild,c.buttons.primary.removeChild(c.buttonTemplate);for(var u=0;u<t.__internal.buttons.length;u+=1){var d=t.__internal.buttons[u];bt.indexOf(d.key)<0&&bt.push(d.key),d.element=c.buttonTemplate.cloneNode(),d.element.innerHTML=d.text,"string"==typeof d.className&&""!==d.className&&e(d.element,d.className);for(var p in d.attrs)"className"!==p&&d.attrs.hasOwnProperty(p)&&d.element.setAttribute(p,d.attrs[p]);"auxiliary"===d.scope?c.buttons.auxiliary.appendChild(d.element):c.buttons.primary.appendChild(d.element)}t.elements=c,h.resetHandler=a(t,B),h.beginMoveHandler=a(t,X),h.beginResizeHandler=a(t,et),h.bringToFrontHandler=a(t,k),h.modalClickHandler=a(t,R),h.buttonsClickHandler=a(t,F),h.commandsClickHandler=a(t,T),h.transitionInHandler=a(t,G),h.transitionOutHandler=a(t,V),t.set("title",void 0===i.options.title?y.defaults.glossary.title:i.options.title),t.set("modal",void 0===i.options.modal?y.defaults.modal:i.options.modal),t.set("basic",void 0===i.options.basic?y.defaults.basic:i.options.basic),t.set("frameless",void 0===i.options.frameless?y.defaults.frameless:i.options.frameless),t.set("movable",void 0===i.options.movable?y.defaults.movable:i.options.movable),t.set("resizable",void 0===i.options.resizable?y.defaults.resizable:i.options.resizable),t.set("autoReset",void 0===i.options.autoReset?y.defaults.autoReset:i.options.autoReset),t.set("closable",void 0===i.options.closable?y.defaults.closable:i.options.closable),t.set("closableByDimmer",void 0===i.options.closableByDimmer?y.defaults.closableByDimmer:i.options.closableByDimmer),t.set("maximizable",void 0===i.options.maximizable?y.defaults.maximizable:i.options.maximizable),t.set("startMaximized",void 0===i.options.startMaximized?y.defaults.startMaximized:i.options.startMaximized),t.set("pinnable",void 0===i.options.pinnable?y.defaults.pinnable:i.options.pinnable),t.set("pinned",void 0===i.options.pinned?y.defaults.pinned:i.options.pinned),t.set("transition",void 0===i.options.transition?y.defaults.transition:i.options.transition),t.set("padding",void 0===i.options.padding?y.defaults.padding:i.options.padding),t.set("overflow",void 0===i.options.overflow?y.defaults.overflow:i.options.overflow),"function"==typeof t.build&&t.build()}document.body.appendChild(t.elements.root)}function u(){vt=t.scrollX,yt=t.scrollY}function g(){t.scrollTo(vt,yt)}function v(){for(var t=0,n=0;n<d.length;n+=1){var s=d[n];(s.isModal()||s.isMaximized())&&(t+=1)}0===t?i(document.body,kt.noOverflow):t>0&&document.body.className.indexOf(kt.noOverflow)<0&&e(document.body,kt.noOverflow)}function b(t,n,s){"string"==typeof s&&i(t.elements.root,kt.prefix+s),e(t.elements.root,kt.prefix+n),xt=t.elements.root.offsetWidth}function x(t){t.get("modal")?(i(t.elements.root,kt.modeless),t.isOpen()&&(ct(t),N(t),v())):(e(t.elements.root,kt.modeless),t.isOpen()&&(ht(t),N(t),v()))}function _(t){t.get("basic")?e(t.elements.root,kt.basic):i(t.elements.root,kt.basic)}function w(t){t.get("frameless")?e(t.elements.root,kt.frameless):i(t.elements.root,kt.frameless)}function k(t,e){for(var i=d.indexOf(e),n=i+1;n<d.length;n+=1)if(d[n].isModal())return;return document.body.lastChild!==e.elements.root&&(document.body.appendChild(e.elements.root),d.splice(d.indexOf(e),1),d.push(e),U(e)),!1}function C(t,n,s,o){switch(n){case"title":t.setHeader(o);break;case"modal":x(t);break;case"basic":_(t);break;case"frameless":w(t);break;case"pinned":H(t);break;case"closable":j(t);break;case"maximizable":Y(t);break;case"pinnable":L(t);break;case"movable":J(t);break;case"resizable":ot(t);break;case"transition":b(t,o,s);break;case"padding":o?i(t.elements.root,kt.noPadding):t.elements.root.className.indexOf(kt.noPadding)<0&&e(t.elements.root,kt.noPadding);break;case"overflow":o?i(t.elements.root,kt.noOverflow):t.elements.root.className.indexOf(kt.noOverflow)<0&&e(t.elements.root,kt.noOverflow);break;case"transition":b(t,o,s)}"function"==typeof t.hooks.onupdate&&t.hooks.onupdate.call(t,n,s,o)}function S(t,e,i,n,s){var o={op:void 0,items:[]};if("undefined"==typeof s&&"string"==typeof n)o.op="get",e.hasOwnProperty(n)?(o.found=!0,o.value=e[n]):(o.found=!1,o.value=void 0);else{var r;if(o.op="set","object"==typeof n){var a=n;for(var l in a)e.hasOwnProperty(l)?(e[l]!==a[l]&&(r=e[l],e[l]=a[l],i.call(t,l,r,a[l])),o.items.push({key:l,value:a[l],found:!0})):o.items.push({key:l,value:a[l],found:!1})}else{if("string"!=typeof n)throw new Error("args must be a string or object");e.hasOwnProperty(n)?(e[n]!==s&&(r=e[n],e[n]=s,i.call(t,n,r,s)),o.items.push({key:n,value:s,found:!0})):o.items.push({key:n,value:s,found:!1})}}return o}function D(t){var e;$(t,function(t){return e=t.invokeOnClose===!0}),!e&&t.isOpen()&&t.close()}function T(t,e){var i=t.srcElement||t.target;switch(i){case e.elements.commands.pin:e.isPinned()?A(e):M(e);break;case e.elements.commands.maximize:e.isMaximized()?O(e):P(e);break;case e.elements.commands.close:D(e)}return!1}function M(t){t.set("pinned",!0)}function A(t){t.set("pinned",!1)}function P(t){e(t.elements.root,kt.maximized),t.isOpen()&&v()}function O(t){i(t.elements.root,kt.maximized),t.isOpen()&&v()}function L(t){t.get("pinnable")?e(t.elements.root,kt.pinnable):i(t.elements.root,kt.pinnable)}function E(t){var e=o();t.elements.modal.style.marginTop=s()+"px",t.elements.modal.style.marginLeft=e+"px",t.elements.modal.style.marginRight=-e+"px"}function I(t){var e=parseInt(t.elements.modal.style.marginTop,10),i=parseInt(t.elements.modal.style.marginLeft,10);if(t.elements.modal.style.marginTop="",t.elements.modal.style.marginLeft="",t.elements.modal.style.marginRight="",t.isOpen()){var n=0,r=0;""!==t.elements.dialog.style.top&&(n=parseInt(t.elements.dialog.style.top,10)),t.elements.dialog.style.top=n+(e-s())+"px",""!==t.elements.dialog.style.left&&(r=parseInt(t.elements.dialog.style.left,10)),t.elements.dialog.style.left=r+(i-o())+"px"}}function N(t){t.get("modal")||t.get("pinned")?I(t):E(t)}function H(t){t.get("pinned")?(i(t.elements.root,kt.unpinned),t.isOpen()&&I(t)):(e(t.elements.root,kt.unpinned),t.isOpen()&&!t.isModal()&&E(t))}function Y(t){t.get("maximizable")?e(t.elements.root,kt.maximizable):i(t.elements.root,kt.maximizable)}
16function j(t){t.get("closable")?(e(t.elements.root,kt.closable),mt(t)):(i(t.elements.root,kt.closable),gt(t))}function R(t,e){var i=t.srcElement||t.target;return Ct||i!==e.elements.modal||e.get("closableByDimmer")!==!0||D(e),Ct=!1,!1}function $(t,e){for(var i=0;i<t.__internal.buttons.length;i+=1){var n=t.__internal.buttons[i];if(!n.element.disabled&&e(n)){var s=l(i,n);"function"==typeof t.callback&&t.callback.apply(t,[s]),s.cancel===!1&&t.close();break}}}function F(t,e){var i=t.srcElement||t.target;$(e,function(t){return t.element===i&&(St=!0)})}function z(t){if(St)return void(St=!1);var e=d[d.length-1],i=t.keyCode;return 0===e.__internal.buttons.length&&i===c.ESC&&e.get("closable")===!0?(D(e),!1):bt.indexOf(i)>-1?($(e,function(t){return t.key===i}),!1):void 0}function W(t){var e=d[d.length-1],i=t.keyCode;if(i===c.LEFT||i===c.RIGHT){for(var n=e.__internal.buttons,s=0;s<n.length;s+=1)if(document.activeElement===n[s].element)switch(i){case c.LEFT:return void n[(s||n.length)-1].element.focus();case c.RIGHT:return void n[(s+1)%n.length].element.focus()}}else if(i<c.F12+1&&i>c.F1-1&&bt.indexOf(i)>-1)return t.preventDefault(),t.stopPropagation(),$(e,function(t){return t.key===i}),!1}function U(t,e){if(e)e.focus();else{var i=t.__internal.focus,n=i.element;switch(typeof i.element){case"number":t.__internal.buttons.length>i.element&&(n=t.get("basic")===!0?t.elements.reset[0]:t.__internal.buttons[i.element].element);break;case"string":n=t.elements.body.querySelector(i.element);break;case"function":n=i.element.call(t)}"undefined"!=typeof n&&null!==n||0!==t.__internal.buttons.length||(n=t.elements.reset[0]),n&&n.focus&&(n.focus(),i.select&&n.select&&n.select())}}function B(t,e){if(!e)for(var i=d.length-1;i>-1;i-=1)if(d[i].isModal()){e=d[i];break}if(e&&e.isModal()){var n,s=t.srcElement||t.target,o=s===e.elements.reset[1]||0===e.__internal.buttons.length&&s===document.body;o&&(e.get("maximizable")?n=e.elements.commands.maximize:e.get("closable")&&(n=e.elements.commands.close)),void 0===n&&("number"==typeof e.__internal.focus.element?s===e.elements.reset[0]?n=e.elements.buttons.auxiliary.firstChild||e.elements.buttons.primary.firstChild:o&&(n=e.elements.reset[0]):s===e.elements.reset[0]&&(n=e.elements.buttons.primary.lastChild||e.elements.buttons.auxiliary.lastChild)),U(e,n)}}function G(t,e){clearTimeout(e.__internal.timerIn),U(e),g(),St=!1,"function"==typeof e.get("onfocus")&&e.get("onfocus").call(e),f(e.elements.dialog,m.type,e.__internal.transitionInHandler),i(e.elements.root,kt.animationIn)}function V(t,e){clearTimeout(e.__internal.timerOut),f(e.elements.dialog,m.type,e.__internal.transitionOutHandler),
17Z(e),st(e),e.isMaximized()&&!e.get("startMaximized")&&O(e),y.defaults.maintainFocus&&e.__internal.activeElement&&(e.__internal.activeElement.focus(),e.__internal.activeElement=null)}function q(t,e){e.style.left=t[At]-Tt+"px",e.style.top=t[Pt]-Mt+"px"}function X(t,i){if(null===Ot&&!i.isMaximized()&&i.get("movable")){var n;if("touchstart"===t.type?(t.preventDefault(),n=t.targetTouches[0],At="clientX",Pt="clientY"):0===t.button&&(n=t),n){Dt=i,Tt=n[At],Mt=n[Pt];var s=i.elements.dialog;return e(s,kt.capture),s.style.left&&(Tt-=parseInt(s.style.left,10)),s.style.top&&(Mt-=parseInt(s.style.top,10)),q(n,s),e(document.body,kt.noSelection),!1}}}function K(t){if(Dt){var e;"touchmove"===t.type?(t.preventDefault(),e=t.targetTouches[0]):0===t.button&&(e=t),e&&q(e,Dt.elements.dialog)}}function Q(){if(Dt){var t=Dt.elements.dialog;Dt=null,i(document.body,kt.noSelection),i(t,kt.capture)}}function Z(t){Dt=null;var e=t.elements.dialog;e.style.left=e.style.top=""}function J(t){t.get("movable")?(e(t.elements.root,kt.movable),t.isOpen()&&ut(t)):(Z(t),i(t.elements.root,kt.movable),t.isOpen()&&dt(t))}function tt(t,e,i){var s=e,o=0,r=0;do o+=s.offsetLeft,r+=s.offsetTop;while(s=s.offsetParent);var a,l;i===!0?(a=t.pageX,l=t.pageY):(a=t.clientX,l=t.clientY);var h=n();if(h&&(a=document.body.offsetWidth-a,isNaN(Lt)||(o=document.body.offsetWidth-o-e.offsetWidth)),e.style.height=l-r+Nt+"px",e.style.width=a-o+Nt+"px",!isNaN(Lt)){var c=.5*Math.abs(e.offsetWidth-Et);h&&(c*=-1),e.offsetWidth>Et?e.style.left=Lt+c+"px":e.offsetWidth>=It&&(e.style.left=Lt-c+"px")}}function et(t,i){if(!i.isMaximized()){var n;if("touchstart"===t.type?(t.preventDefault(),n=t.targetTouches[0]):0===t.button&&(n=t),n){Ot=i,Nt=i.elements.resizeHandle.offsetHeight/2;var s=i.elements.dialog;return e(s,kt.capture),Lt=parseInt(s.style.left,10),s.style.height=s.offsetHeight+"px",s.style.minHeight=i.elements.header.offsetHeight+i.elements.footer.offsetHeight+"px",s.style.width=(Et=s.offsetWidth)+"px","none"!==s.style.maxWidth&&(s.style.minWidth=(It=s.offsetWidth)+"px"),s.style.maxWidth="none",e(document.body,kt.noSelection),!1}}}function it(t){if(Ot){var e;"touchmove"===t.type?(t.preventDefault(),e=t.targetTouches[0]):0===t.button&&(e=t),e&&tt(e,Ot.elements.dialog,!Ot.get("modal")&&!Ot.get("pinned"))}}function nt(){if(Ot){var t=Ot.elements.dialog;Ot=null,i(document.body,kt.noSelection),i(t,kt.capture),Ct=!0}}function st(t){Ot=null;var e=t.elements.dialog;
vendor: 15,203 bytes, line 17
17"none"===e.style.maxWidth&&(e.style.maxWidth=e.style.minWidth=e.style.width=e.style.height=e.style.minHeight=e.style.left="",Lt=Number.Nan,Et=It=Nt=0)}function ot(t){t.get("resizable")?(e(t.elements.root,kt.resizable),t.isOpen()&&pt(t)):(st(t),i(t.elements.root,kt.resizable),t.isOpen()&&ft(t))}function rt(){for(var t=0;t<d.length;t+=1){var e=d[t];e.get("autoReset")&&(Z(e),st(e))}}function at(e){1===d.length&&(p(t,"resize",rt),p(document.body,"keyup",z),p(document.body,"keydown",W),p(document.body,"focus",B),p(document.documentElement,"mousemove",K),p(document.documentElement,"touchmove",K),p(document.documentElement,"mouseup",Q),p(document.documentElement,"touchend",Q),p(document.documentElement,"mousemove",it),p(document.documentElement,"touchmove",it),p(document.documentElement,"mouseup",nt),p(document.documentElement,"touchend",nt)),p(e.elements.commands.container,"click",e.__internal.commandsClickHandler),p(e.elements.footer,"click",e.__internal.buttonsClickHandler),p(e.elements.reset[0],"focus",e.__internal.resetHandler),p(e.elements.reset[1],"focus",e.__internal.resetHandler),St=!0,p(e.elements.dialog,m.type,e.__internal.transitionInHandler),e.get("modal")||ht(e),e.get("resizable")&&pt(e),e.get("movable")&&ut(e)}function lt(e){1===d.length&&(f(t,"resize",rt),f(document.body,"keyup",z),f(document.body,"keydown",W),f(document.body,"focus",B),f(document.documentElement,"mousemove",K),f(document.documentElement,"mouseup",Q),f(document.documentElement,"mousemove",it),f(document.documentElement,"mouseup",nt)),f(e.elements.commands.container,"click",e.__internal.commandsClickHandler),f(e.elements.footer,"click",e.__internal.buttonsClickHandler),f(e.elements.reset[0],"focus",e.__internal.resetHandler),f(e.elements.reset[1],"focus",e.__internal.resetHandler),p(e.elements.dialog,m.type,e.__internal.transitionOutHandler),e.get("modal")||ct(e),e.get("movable")&&dt(e),e.get("resizable")&&ft(e)}function ht(t){p(t.elements.dialog,"focus",t.__internal.bringToFrontHandler,!0)}function ct(t){f(t.elements.dialog,"focus",t.__internal.bringToFrontHandler,!0)}function ut(t){p(t.elements.header,"mousedown",t.__internal.beginMoveHandler),p(t.elements.header,"touchstart",t.__internal.beginMoveHandler)}function dt(t){f(t.elements.header,"mousedown",t.__internal.beginMoveHandler),f(t.elements.header,"touchstart",t.__internal.beginMoveHandler)}function pt(t){p(t.elements.resizeHandle,"mousedown",t.__internal.beginResizeHandler),p(t.elements.resizeHandle,"touchstart",t.__internal.beginResizeHandler)}function ft(t){f(t.elements.resizeHandle,"mousedown",t.__internal.beginResizeHandler),f(t.elements.resizeHandle,"touchstart",t.__internal.beginResizeHandler)}function mt(t){p(t.elements.modal,"click",t.__internal.modalClickHandler)}function gt(t){f(t.elements.modal,"click",t.__internal.modalClickHandler)}var vt,yt,bt=[],xt=null,_t=t.navigator.userAgent.indexOf("Safari")>-1&&t.navigator.userAgent.indexOf("Chrome")<0,wt={dimmer:'<div class="ajs-dimmer"></div>',modal:'<div class="ajs-modal" tabindex="0"></div>',dialog:'<div class="ajs-dialog" tabindex="0"></div>',reset:'<button class="ajs-reset"></button>',commands:'<div class="ajs-commands"><button class="ajs-pin"></button><button class="ajs-maximize"></button><button class="ajs-close"></button></div>',header:'<div class="ajs-header"></div>',body:'<div class="ajs-body"></div>',content:'<div class="ajs-content"></div>',footer:'<div class="ajs-footer"></div>',buttons:{primary:'<div class="ajs-primary ajs-buttons"></div>',auxiliary:'<div class="ajs-auxiliary ajs-buttons"></div>'},button:'<button class="ajs-button"></button>',resizeHandle:'<div class="ajs-handle"></div>'},kt={base:"alertify",prefix:"ajs-",hidden:"ajs-hidden",noSelection:"ajs-no-selection",noOverflow:"ajs-no-overflow",noPadding:"ajs-no-padding",modeless:"ajs-modeless",movable:"ajs-movable",resizable:"ajs-resizable",capture:"ajs-capture",fixed:"ajs-fixed",closable:"ajs-closable",maximizable:"ajs-maximizable",maximize:"ajs-maximize",restore:"ajs-restore",pinnable:"ajs-pinnable",unpinned:"ajs-unpinned",pin:"ajs-pin",maximized:"ajs-maximized",animationIn:"ajs-in",animationOut:"ajs-out",shake:"ajs-shake",basic:"ajs-basic",frameless:"ajs-frameless"},Ct=!1,St=!1,Dt=null,Tt=0,Mt=0,At="pageX",Pt="pageY",Ot=null,Lt=Number.Nan,Et=0,It=0,Nt=0;return{__init:h,isOpen:function(){return this.__internal.isOpen},isModal:function(){return this.elements.root.className.indexOf(kt.modeless)<0},isMaximized:function(){return this.elements.root.className.indexOf(kt.maximized)>-1},isPinned:function(){return this.elements.root.className.indexOf(kt.unpinned)<0},maximize:function(){return this.isMaximized()||P(this),this},restore:function(){return this.isMaximized()&&O(this),this},pin:function(){return this.isPinned()||M(this),this},unpin:function(){return this.isPinned()&&A(this),this},moveTo:function(t,e){if(!isNaN(t)&&!isNaN(e)){var i=this.elements.dialog,s=i,o=0,r=0;i.style.left&&(o-=parseInt(i.style.left,10)),i.style.top&&(r-=parseInt(i.style.top,10));do o+=s.offsetLeft,r+=s.offsetTop;while(s=s.offsetParent);var a=t-o,l=e-r;n()&&(a*=-1),i.style.left=a+"px",i.style.top=l+"px"}return this},resizeTo:function(t,e){var i=parseFloat(t),n=parseFloat(e),s=/(\d*\.\d+|\d+)%/;if(!isNaN(i)&&!isNaN(n)&&this.get("resizable")===!0){(""+t).match(s)&&(i=i/100*document.documentElement.clientWidth),(""+e).match(s)&&(n=n/100*document.documentElement.clientHeight);var o=this.elements.dialog;"none"!==o.style.maxWidth&&(o.style.minWidth=(It=o.offsetWidth)+"px"),o.style.maxWidth="none",o.style.minHeight=this.elements.header.offsetHeight+this.elements.footer.offsetHeight+"px",o.style.width=i+"px",o.style.height=n+"px"}return this},setting:function(t,e){var i=this,n=S(this,this.__internal.options,function(t,e,n){C(i,t,e,n)},t,e);if("get"===n.op)return n.found?n.value:"undefined"!=typeof this.settings?S(this,this.settings,this.settingUpdated||function(){},t,e).value:void 0;if("set"===n.op){if(n.items.length>0)for(var s=this.settingUpdated||function(){},o=0;o<n.items.length;o+=1){var r=n.items[o];r.found||"undefined"==typeof this.settings||S(this,this.settings,s,r.key,r.value)}return this}},set:function(t,e){return this.setting(t,e),this},get:function(t){return this.setting(t)},setHeader:function(e){return"string"==typeof e?(r(this.elements.header),this.elements.header.innerHTML=e):e instanceof t.HTMLElement&&this.elements.header.firstChild!==e&&(r(this.elements.header),this.elements.header.appendChild(e)),this},setContent:function(e){return"string"==typeof e?(r(this.elements.content),this.elements.content.innerHTML=e):e instanceof t.HTMLElement&&this.elements.content.firstChild!==e&&(r(this.elements.content),this.elements.content.appendChild(e)),this},showModal:function(t){return this.show(!0,t)},show:function(t,n){if(h(this),this.__internal.isOpen){Z(this),st(this),e(this.elements.dialog,kt.shake);var s=this;setTimeout(function(){i(s.elements.dialog,kt.shake)},200)}else{if(this.__internal.isOpen=!0,d.push(this),y.defaults.maintainFocus&&(this.__internal.activeElement=document.activeElement),"function"==typeof this.prepare&&this.prepare(),at(this),void 0!==t&&this.set("modal",t),u(),v(),"string"==typeof n&&""!==n&&(this.__internal.className=n,e(this.elements.root,n)),this.get("startMaximized")?this.maximize():this.isMaximized()&&O(this),N(this),i(this.elements.root,kt.animationOut),e(this.elements.root,kt.animationIn),clearTimeout(this.__internal.timerIn),this.__internal.timerIn=setTimeout(this.__internal.transitionInHandler,m.supported?1e3:100),_t){var o=this.elements.root;o.style.display="none",setTimeout(function(){o.style.display="block"},0)}xt=this.elements.root.offsetWidth,i(this.elements.root,kt.hidden),"function"==typeof this.hooks.onshow&&this.hooks.onshow.call(this),"function"==typeof this.get("onshow")&&this.get("onshow").call(this)}return this},close:function(){return this.__internal.isOpen&&(lt(this),i(this.elements.root,kt.animationIn),e(this.elements.root,kt.animationOut),clearTimeout(this.__internal.timerOut),this.__internal.timerOut=setTimeout(this.__internal.transitionOutHandler,m.supported?1e3:100),e(this.elements.root,kt.hidden),xt=this.elements.modal.offsetWidth,"undefined"!=typeof this.__internal.className&&""!==this.__internal.className&&i(this.elements.root,this.__internal.className),"function"==typeof this.hooks.onclose&&this.hooks.onclose.call(this),"function"==typeof this.get("onclose")&&this.get("onclose").call(this),d.splice(d.indexOf(this),1),this.__internal.isOpen=!1,v()),this},closeOthers:function(){return y.closeAll(this),this}}}(),v=function(){function n(t){t.__internal||(t.__internal={position:y.defaults.notifier.position,delay:y.defaults.notifier.delay},u=document.createElement("DIV"),l(t)),u.parentNode!==document.body&&document.body.appendChild(u)}function s(t){t.__internal.pushed=!0,d.push(t)}function o(t){d.splice(d.indexOf(t),1),t.__internal.pushed=!1}function l(t){switch(u.className=g.base,t.__internal.position){case"top-right":e(u,g.top+" "+g.right);break;case"top-left":e(u,g.top+" "+g.left);break;case"bottom-left":e(u,g.bottom+" "+g.left);break;default:case"bottom-right":e(u,g.bottom+" "+g.right)}}function h(n,l){function h(t,e){e.dismiss(!0)}function d(t,e){f(e.element,m.type,d),u.removeChild(e.element)}function y(t){return t.__internal||(t.__internal={pushed:!1,delay:void 0,timer:void 0,clickHandler:void 0,transitionEndHandler:void 0,transitionTimeout:void 0},t.__internal.clickHandler=a(t,h),t.__internal.transitionEndHandler=a(t,d)),t}function b(t){clearTimeout(t.__internal.timer),clearTimeout(t.__internal.transitionTimeout)}return y({element:n,push:function(t,i){if(!this.__internal.pushed){s(this),b(this);var n,o;switch(arguments.length){case 0:o=this.__internal.delay;break;case 1:"number"==typeof t?o=t:(n=t,o=this.__internal.delay);break;case 2:n=t,o=i}return"undefined"!=typeof n&&this.setContent(n),v.__internal.position.indexOf("top")<0?u.appendChild(this.element):u.insertBefore(this.element,u.firstChild),c=this.element.offsetWidth,e(this.element,g.visible),p(this.element,"click",this.__internal.clickHandler),this.delay(o)}return this},ondismiss:function(){},callback:l,dismiss:function(t){return this.__internal.pushed&&(b(this),"function"==typeof this.ondismiss&&this.ondismiss.call(this)===!1||(f(this.element,"click",this.__internal.clickHandler),"undefined"!=typeof this.element&&this.element.parentNode===u&&(this.__internal.transitionTimeout=setTimeout(this.__internal.transitionEndHandler,m.supported?1e3:100),i(this.element,g.visible),"function"==typeof this.callback&&this.callback.call(this,t)),o(this))),this},delay:function(t){if(b(this),this.__internal.delay="undefined"==typeof t||isNaN(+t)?v.__internal.delay:+t,this.__internal.delay>0){var e=this;this.__internal.timer=setTimeout(function(){e.dismiss()},1e3*this.__internal.delay)}return this},setContent:function(e){return"string"==typeof e?(r(this.element),this.element.innerHTML=e):e instanceof t.HTMLElement&&this.element.firstChild!==e&&(r(this.element),this.element.appendChild(e)),this},dismissOthers:function(){return v.dismissAll(this),this}})}var c,u,d=[],g={base:"alertify-notifier",message:"ajs-message",top:"ajs-top",right:"ajs-right",bottom:"ajs-bottom",left:"ajs-left",visible:"ajs-visible",hidden:"ajs-hidden"};return{setting:function(t,e){if(n(this),"undefined"==typeof e)return this.__internal[t];switch(t){case"position":this.__internal.position=e,l(this);break;case"delay":this.__internal.delay=e}return this},set:function(t,e){return this.setting(t,e),this},get:function(t){return this.setting(t)},create:function(t,e){n(this);var i=document.createElement("div");return i.className=g.message+("string"==typeof t&&""!==t?" ajs-"+t:""),h(i,e)},dismissAll:function(t){for(var e=d.slice(0),i=0;i<e.length;i+=1){var n=e[i];void 0!==t&&t===n||n.dismiss()}}}}(),y=new h;y.dialog("alert",function(){return{main:function(t,e,i){var n,s,o;switch(arguments.length){case 1:s=t;break;case 2:"function"==typeof e?(s=t,o=e):(n=t,s=e);break;case 3:n=t,s=e,o=i}return this.set("title",n),this.set("message",s),this.set("onok",o),this},setup:function(){return{buttons:[{text:y.defaults.glossary.ok,key:c.ESC,invokeOnClose:!0,className:y.defaults.theme.ok}],focus:{element:0,select:!1},options:{maximizable:!1,resizable:!1}}},build:function(){},prepare:function(){},setMessage:function(t){this.setContent(t)},settings:{message:void 0,onok:void 0,label:void 0},settingUpdated:function(t,e,i){switch(t){case"message":this.setMessage(i);break;case"label":this.__internal.buttons[0].element&&(this.__internal.buttons[0].element.innerHTML=i)}},callback:function(t){if("function"==typeof this.get("onok")){var e=this.get("onok").call(this,t);"undefined"!=typeof e&&(t.cancel=!e)}}}}),y.dialog("confirm",function(){function t(t){null!==i.timer&&(clearInterval(i.timer),i.timer=null,t.__internal.buttons[i.index].element.innerHTML=i.text)}function e(e,n,s){t(e),i.duration=s,i.index=n,i.text=e.__internal.buttons[n].element.innerHTML,i.timer=setInterval(a(e,i.task),1e3),i.task(null,e)}var i={timer:null,index:null,text:null,duration:null,task:function(e,n){if(n.isOpen()){if(n.__internal.buttons[i.index].element.innerHTML=i.text+" (&#8207;"+i.duration+"&#8207;) ",i.duration-=1,i.duration===-1){t(n);var s=n.__internal.buttons[i.index],o=l(i.index,s);"function"==typeof n.callback&&n.callback.apply(n,[o]),o.close!==!1&&n.close()}}else t(n)}};return{main:function(t,e,i,n){var s,o,r,a;switch(arguments.length){case 1:o=t;break;case 2:o=t,r=e;break;case 3:o=t,r=e,a=i;break;case 4:s=t,o=e,r=i,a=n}return this.set("title",s),this.set("message",o),this.set("onok",r),this.set("oncancel",a),this},setup:function(){return{buttons:[{text:y.defaults.glossary.ok,key:c.ENTER,className:y.defaults.theme.ok},{text:y.defaults.glossary.cancel,key:c.ESC,invokeOnClose:!0,className:y.defaults.theme.cancel}],focus:{element:0,select:!1},options:{maximizable:!1,resizable:!1}}},build:function(){},prepare:function(){},setMessage:function(t){this.setContent(t)},settings:{message:null,labels:null,onok:null,oncancel:null,defaultFocus:null,reverseButtons:null},settingUpdated:function(t,e,i){switch(t){case"message":this.setMessage(i);break;case"labels":"ok"in i&&this.__internal.buttons[0].element&&(this.__internal.buttons[0].text=i.ok,this.__internal.buttons[0].element.innerHTML=i.ok),"cancel"in i&&this.__internal.buttons[1].element&&(this.__internal.buttons[1].text=i.cancel,this.__internal.buttons[1].element.innerHTML=i.cancel);break;case"reverseButtons":i===!0?this.elements.buttons.primary.appendChild(this.__internal.buttons[0].element):this.elements.buttons.primary.appendChild(this.__internal.buttons[1].element);break;case"defaultFocus":this.__internal.focus.element="ok"===i?0:1}},callback:function(e){t(this);var i;switch(e.index){case 0:"function"==typeof this.get("onok")&&(i=this.get("onok").call(this,e),"undefined"!=typeof i&&(e.cancel=!i));break;case 1:"function"==typeof this.get("oncancel")&&(i=this.get("oncancel").call(this,e),"undefined"!=typeof i&&(e.cancel=!i))}},autoOk:function(t){return e(this,0,t),this},autoCancel:function(t){return e(this,1,t),this}}}),y.dialog("prompt",function(){var e=document.createElement("INPUT"),i=document.createElement("P");
17return{main:function(t,e,i,n,s){var o,r,a,l,h;switch(arguments.length){case 1:r=t;break;case 2:r=t,a=e;break;case 3:r=t,a=e,l=i;break;case 4:r=t,a=e,l=i,h=n;break;case 5:o=t,r=e,a=i,l=n,h=s}return this.set("title",o),this.set("message",r),this.set("value",a),this.set("onok",l),this.set("oncancel",h),this},setup:function(){return{buttons:[{text:y.defaults.glossary.ok,key:c.ENTER,className:y.defaults.theme.ok},{text:y.defaults.glossary.cancel,key:c.ESC,invokeOnClose:!0,className:y.defaults.theme.cancel}],focus:{element:e,select:!0},options:{maximizable:!1,resizable:!1}}},build:function(){e.className=y.defaults.theme.input,e.setAttribute("type","text"),e.value=this.get("value"),this.elements.content.appendChild(i),this.elements.content.appendChild(e)},prepare:function(){},setMessage:function(e){"string"==typeof e?(r(i),i.innerHTML=e):e instanceof t.HTMLElement&&i.firstChild!==e&&(r(i),i.appendChild(e))},settings:{message:void 0,labels:void 0,onok:void 0,oncancel:void 0,value:"",type:"text",reverseButtons:void 0},settingUpdated:function(t,i,n){switch(t){case"message":this.setMessage(n);break;case"value":e.value=n;break;case"type":switch(n){case"text":case"color":case"date":case"datetime-local":case"email":case"month":case"number":case"password":case"search":case"tel":case"time":case"week":e.type=n;break;default:e.type="text"}break;case"labels":n.ok&&this.__internal.buttons[0].element&&(this.__internal.buttons[0].element.innerHTML=n.ok),n.cancel&&this.__internal.buttons[1].element&&(this.__internal.buttons[1].element.innerHTML=n.cancel);break;case"reverseButtons":n===!0?this.elements.buttons.primary.appendChild(this.__internal.buttons[0].element):this.elements.buttons.primary.appendChild(this.__internal.buttons[1].element)}},callback:function(t){var i;switch(t.index){case 0:this.settings.value=e.value,"function"==typeof this.get("onok")&&(i=this.get("onok").call(this,t,this.settings.value),"undefined"!=typeof i&&(t.cancel=!i));break;case 1:"function"==typeof this.get("oncancel")&&(i=this.get("oncancel").call(this,t),"undefined"!=typeof i&&(t.cancel=!i))}}}}),"object"==typeof module&&"object"==typeof module.exports?module.exports=y:"function"==typeof define&&define.amd?define([],function(){return y}):t.alertify||(t.alertify=y)}("undefined"!=typeof window?window:this),function(t,e,i,n,s){"use strict";var o=o||{};o.Grid=function(e,i){this.$element=e,this.$table=t("table",e),this.name=this.$table.attr("id"),this.options=t.extend(t.fn.grido.defaults,i,this.$table.data("grido-options")||{})},o.Grid.prototype={operation:null,onInit:[],init:function(){this.ajax=new o.Ajax(this).init(),this.operation=new o.Operation(this).init(),this.initFilters(),this.initItemsPerPage(),this.initActions(),this.initPagePrompt(),this.initCheckNumeric(),this.initEditable();for(var t in this.onInit)this.onInit[t](this);return this},initFilters:function(){t(".filter select, .filter [type=checkbox]",this.$element).off("change.grido").on("change.grido",t.proxy(this.sendFilterForm,this))},initItemsPerPage:function(){t("[name=count]",this.$table).off("change.grido").on("change.grido",function(){t(this).next().trigger("click")})},initActions:function(){var e=this;t(".actions a",this.$table).off("click.nette").off("click.grido").on("click.grido",function(i){var n=t(this).hasClass("ajax")&&e.ajax,s=t(this).data("grido-confirm"),o=function(t){t.preventDefault(),t.stopImmediatePropagation()};s&&confirm(s)?n&&(e.ajax.doRequest(this.href,this,i)||o(i)):s?o(i):n&&(e.ajax.doRequest(this.href,this,i)||o(i))})},initPagePrompt:function(){var i=this;t(".paginator .prompt",this.$table).off("click.grido").on("click.grido",function(){var n=parseInt(prompt(t(this).data("grido-prompt")),10);if(n&&n>0&&n<=parseInt(t(".paginator a.btn:last",i.element).prev().text(),10)){var s=t(this).data("grido-link").replace("page=0","page="+n);e.location=i.options.ajax?s.replace("?","#"):s}})},initCheckNumeric:function(){t(".filter input.number",this.$element).off("keyup.grido").on("keyup.grido",function(){var e=t(this).val(),i=new RegExp(/[^<>=\\.\\,\-0-9]+/g);i.test(e)&&t(this).val(e.replace(i,""))})},initEditable:function(){var e=this;t('td[class*="grid-cell-"]',this.$element).off("dblclick.grido").on("dblclick.grido",function(i){r.isCtrl(i)&&!t(this).hasClass("edit")&&(this.editable=new o.Editable(e).init(t(this)))})},sendFilterForm:function(){t('.filter [name="buttons[search]"]',this.$element).click()}},o.Operation=function(t){this.grido=t},o.Operation.prototype={selector:"td.checker [type=checkbox]",$last:null,init:function(){return t("th.checker",this.grido.$table).length?(this.initSelectState(),this.bindClickOnCheckbox(),this.bindClickOnRow(),this.bindClickOnInvertor(),this.bindChangeOnCheckbox(),this.bindChangeOnSelect(),this.bindClickOnButton(),this):null},initSelectState:function(){0===t(this.selector+":checked",this.grido.$table).length&&this.controlState("disabled")},bindClickOnCheckbox:function(){var e=this;
17t(this.selector,this.grido.$table).off("click.grido").on("click.grido",function(i,n){if(i.shiftKey||n&&n.shiftKey){var s=t(e.selector,e.grido.$table),o=s.index(this),r=s.index(e.$last);s.slice(Math.min(o,r),Math.max(o,r)).attr("checked",e.$last.checked).trigger("change")}e.$last=this})},bindClickOnRow:function(){var e=this;t("tbody td:not(.checker,.actions a)",this.grido.$table).off("click.grido").on("click.grido",function(i){t(this).hasClass("edit")||(i.shiftKey&&e.disableSelection.call(e),t(e.selector,t(this).closest("tr")).click(),i.shiftKey&&e.enableSelection.call(e))})},bindClickOnInvertor:function(){var e=this;t("th.checker [type=checkbox]",this.grido.$table).off("click.grido").on("click.grido",function(){return t(e.selector,e.grido.$table).each(function(){var i=t(this).prop("checked");t(this).prop("checked",!i),e.changeRow(t(this).closest("tr"),!i)}),!1})},bindChangeOnCheckbox:function(){var e=this;t(this.selector,this.grido.$table).off("change.grido").on("change.grido",function(){t.proxy(e.changeRow,e)(t(this).closest("tr"),t(this).prop("checked"))})},bindChangeOnSelect:function(){var e=this;t('.operations [name="operations[operations]"]',this.grido.$table).off("change.grido").on("change.grido",function(){t(this).val()&&t(".operations [type=submit]",e.grido.$table).click()})},bindClickOnButton:function(){t(".operations [type=submit]",this.grido.$table).off("click.grido").on("click.grido",t.proxy(this.onSubmit,this))},disableSelection:function(){this.grido.$table.attr("unselectable","on").css("user-select","none")},enableSelection:function(){if(e.getSelection){var t=e.getSelection();t.removeAllRanges&&t.removeAllRanges()}else i.selection&&i.selection.empty();this.grido.$table.attr("unselectable","off").attr("style",null)},getSelect:function(){return t('.operations [name="operations[operations]"]',this.grido.$table)},changeRow:function(e,i){i?e.addClass("active"):e.removeClass("active"),0===t(this.selector+":checked",this.grido.$table).length?this.controlState("disabled"):this.controlState("enabled")},onSubmit:function(){var e=this.getSelect().attr("data-grido-confirm-"+this.getSelect().val());return!e||(!!confirm(e.replace(/%i/g,t(this.selector+":checked",this.grido.$table).length))||(this.getSelect().val(""),!1))},controlState:function(e){var i=t('[name="buttons[operations]"]',this.grido.$table);"disabled"===e?(this.getSelect().attr("disabled","disabled").addClass("disabled"),i.addClass("disabled")):(this.getSelect().removeAttr("disabled").removeClass("disabled"),i.removeClass("disabled"))}},o.Ajax=function(t){this.grido=t},o.Ajax.prototype={init:function(){return this.grido.options.ajax?(this.registerSuccessEvent(),this.registerPopState(),this):null},registerSuccessEvent:function(){var e=this;this.grido.$element.off("success.ajax.grido").on("success.ajax.grido",function(i,n){t.proxy(e.handleSuccessEvent,e)(n),i.stopImmediatePropagation()})},registerPopState:function(){var i=this;t(e).off("popstate.ajax.grido").on("popstate.ajax.grido",function(e){t.proxy(i.onPopState,i)(e),e.stopImmediatePropagation()})},handleSuccessEvent:function(e){var n=this,s={},o="snippet-"+this.grido.name+"-grid";if(e&&e.snippets&&e.snippets[o]&&e.state){t.each(e.state,function(t,e){(e||0===e)&&t.indexOf(""+n.grido.name+"-")>=0&&(s[t]=e)});var r=this.getQueryString(s);t.data(i,this.grido.name+"-query",r),this.onSuccessEvent(s,r)}},getQueryString:function(i){var n;if(t.isEmptyObject(i)){var s={},o=this.getQueryParams();for(var r in o)0!==r.indexOf(this.grido.name)&&(s[r]=o[r]);n=t.isEmptyObject(s)?e.location.pathname:"?"+t.param(s)}else n="?"+t.param(t.extend(this.getQueryParams(),i));return this.coolUri(n)},onSuccessEvent:function(t,n){e.history.pushState(t,i.title,n)},onPopState:function(s){var o=t.data(i,this.grido.name+"-query")||"",r=e.location.search;if(o!==r){var a=n.toString();a+=a.indexOf("?")===-1?"?":"&",this.doRequest(a+"do="+this.grido.name+"-refresh")}},doRequest:function(e){t.get(e)},coolUri:function(e){var i=e,n={"%5B":"[","%5D":"]","%E2%86%91":"↑","%E2%86%93":"↓"};return t.each(n,function(t,e){i=i.replace(new RegExp(t,"g"),e)}),i},getQueryParams:function(){for(var t,i=function(t){return decodeURIComponent(t).replace(/\+/g," ")},n=e.location.search.substring(1),s=/([^&=]+)=?([^&]*)/g,o={};t=s.exec(n);)if(t[1].indexOf("[")===-1)o[i(t[1])]=i(t[2]);else{var r=t[1].indexOf("["),a=t[1].slice(r+1,t[1].indexOf("]",r)),l=i(t[1].slice(0,r));"object"!=typeof o[l]&&(o[i(l)]={}),a?o[i(l)][i(a)]=i(t[2]):Array.prototype.push.call(o[i(l)],i(t[2]))}return o}},o.Editable=function(t){this.grido=t},o.Editable.prototype={init:function(t){return this.grido.options.ajax!==!0||this.grido.options.editable!==!0?null:(this.td=t.addClass("edit"),this.th=this.getColumnHeader(this.td),this.getEditHandlerUrl(this.th)&&(this.value=this.getValue(this.td),this.oldValue=this.getOldValue(this.td),this.primaryKey=this.getPrimaryKeyValue(this.td.parent()),this.componentName=this.getComponentName(this.th),this.editControlHtml=this.getEditControl(this.componentName,this.getEditControlHandlerUrl(this.th)),this.renderEditControl(this.td,this.editControlHtml),this.editControlObject=this.getEditControlObject(this.td),this.setFocus(this.editControlObject),this.initBindings(this.editControlObject)),this)},getColumnHeader:function(e){for(var i,n=e.attr("class").replace("cell","header").split(/\s+/),s=0;s<n.length;s++)n[s].indexOf("-header-")!==-1&&(i=n[s]);return t('th[class~="'+i+'"]')},getPrimaryKeyValue:function(t){return t.attr("class").match(/[grid\-row\-]([0-9]+)/)[1]},getComponentName:function(t){var e=this.getEditControlHandlerUrl(t).replace("/[.d]*/g","");return e=e.match(/[\??\&?](do=)+(.*)/)[2],e.match(/(.*)\-edit/)[1]},getEditHandlerUrl:function(t){return t.data("grido-editable-handler")},getEditControlHandlerUrl:function(t){return t.data("grido-editablecontrol-handler")},getValue:function(t){return t.data("grido-editable-value")},getOldValue:function(t){return t.children().length>0?t.children():t.text().trim()},getEditControl:function(e,i){var n,s={};return s[e+"-value"]=this.value,t.ajax({type:"GET",url:i,data:s,async:!1}).success(function(t){n=t}),n},renderEditControl:function(t,e){t.html(e)},getEditControlObject:function(t){return t.children()},setFocus:function(t){"text"===t[0].type&&t.focus()},saveData:function(e,i,n,s,o,r){var a={},l=this,h=t("[type=checkbox]",this.editControlObject).length?~~+t("[type=checkbox]",this.editControlObject).is(":checked"):this.editControlObject.val();return h===e?void o.html(r):(a[i+"-id"]=n,a[i+"-newValue"]=h,a[i+"-oldValue"]=e,void t.ajax({type:"POST",url:this.getEditHandlerUrl(s),data:a,async:!0}).success(function(t){t.updated===!0?(t.html?o.html(t.html):o.html(h),o.data("grido-editable-value",h),l.oldValue=h,l.flashSuccess(o)):(l.flashError(o),l.revertChanges(o))}))},revertChanges:function(t){t.html(this.oldValue)},flashSuccess:function(t){var e=0,i=1,n=setInterval(function(){e+=.01*i,t.css("background","rgba(196,234,195,"+e+")"),e>=1&&(i=-1),e<=0&&(clearInterval(n),t.css("background",""))},1)},flashError:function(t){var e=0,i=1,n=setInterval(function(){e+=.01*i,t.css("background","rgba(240,54,69,"+e+")"),e>=1&&(i=-1),e<=0&&(clearInterval(n),t.css("background",""))},1)},initBindings:function(t){var i=this,n=function(t){if(13===t.keyCode){if("TEXTAREA"===this.tagName)return;return o(this),t.preventDefault(),!1}},s=function(t){return 27===t.keyCode?(i.revertChanges(i.td),i.td.removeClass("edit"),t.preventDefault(),!1):r.isCtrl(t)&&
1713===t.keyCode?(o(this),t.preventDefault(),!1):void 0},o=function(t){return!("object"==typeof e.Nette&&!e.Nette.validateControl(t))&&(i.saveData(i.value,i.componentName,i.primaryKey,i.th,i.td,i.oldValue),void i.td.removeClass("edit"))};t.off("keypress.grido").on("keypress.grido",n).off("keydown.grido").on("keydown.grido",s)}};var r={isCtrl:function(t){return(t.ctrlKey||t.metaKey)&&!t.altKey}},a=t.fn.grido;return t.fn.grido=function(e){return this.each(function(){var i=t(this);i.data("grido")||i.data("grido",new o.Grid(i,e).init())})},t.fn.grido.noConflict=function(){return t.fn.grido=a,this},t.fn.grido.defaults={ajax:!0,datepicker:{mask:"99.99.9999",format:"dd.mm.yyyy"}},e.Grido=o,o}(jQuery,window,document,location,navigator),function(){var t=$("#frm-openingHours");0!==t.length&&t.on("submit",function(e){$reachedLimits=t.find(".cke_wordcountLimitReached"),$reachedLimits.length>0&&(alert("Překročen maximální počet znaků v textech."),e.preventDefault())})}(),function(){var t=$("#frm-specialOffer");0!==t.length&&t.on("submit",function(e){var i=t[0].querySelector("input[name='en']");if(i&&i.checked){var n=Array.from(t[0].querySelectorAll("[data-nette-rules]")),s=0===n.filter(function(t){return t.dataset.netteRules.includes('"control":"en"')}).filter(function(t){return!t.value}).length;s||(e.preventDefault(),alert("Máte zapnutou anglickou verzi. Vyplňte všechny textové položky."))}})}(),function(){var t,e,i,n,s,o={}.hasOwnProperty,r=function(t,e){function i(){this.constructor=t}for(var n in e)o.call(e,n)&&(t[n]=e[n]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t};n=function(){function t(){this.options_index=0,this.parsed=[]}return t.prototype.add_node=function(t){return"OPTGROUP"===t.nodeName.toUpperCase()?this.add_group(t):this.add_option(t)},t.prototype.add_group=function(t){var e,i,n,s,o,r;for(e=this.parsed.length,this.parsed.push({array_index:e,group:!0,label:this.escapeExpression(t.label),title:t.title?t.title:void 0,
18children:0,disabled:t.disabled,classes:t.className}),o=t.childNodes,r=[],n=0,s=o.length;s>n;n++)i=o[n],r.push(this.add_option(i,e,t.disabled));return r},t.prototype.add_option=function(t,e,i){return"OPTION"===t.nodeName.toUpperCase()?(""!==t.text?(null!=e&&(this.parsed[e].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:t.value,text:t.text,html:t.innerHTML,title:t.title?t.title:void 0,selected:t.selected,disabled:i===!0?i:t.disabled,group_array_index:e,group_label:null!=e?this.parsed[e].label:null,classes:t.className,style:t.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1):void 0},t.prototype.escapeExpression=function(t){var e,i;return null==t||t===!1?"":/[\&\<\>\"\'\`]/.test(t)?(e={"<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},i=/&(?!\w+;)|[\<\>\"\'\`]/g,t.replace(i,function(t){return e[t]||"&amp;"})):t},t}(),n.select_to_array=function(t){var e,i,s,o,r;for(i=new n,r=t.childNodes,s=0,o=r.length;o>s;s++)e=r[s],i.add_node(e);return i.parsed},e=function(){function t(e,i){this.form_field=e,this.options=null!=i?i:{},t.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return t.prototype.set_default_values=function(){var t=this;return this.click_test_action=function(e){return t.test_active_click(e)},this.activate_action=function(e){return t.activate_field(e)},this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1},t.prototype.set_default_text=function(){return this.default_text=this.form_field.getAttribute("data-placeholder")?this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.options.placeholder_text_multiple||this.options.placeholder_text||t.default_multiple_text:this.options.placeholder_text_single||this.options.placeholder_text||t.default_single_text,this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||t.default_no_result_text},t.prototype.choice_label=function(t){return this.include_group_label_in_selected&&null!=t.group_label?"<b class='group-name'>"+t.group_label+"</b>"+t.html:t.html},t.prototype.mouse_enter=function(){return this.mouse_on_container=!0},t.prototype.mouse_leave=function(){return this.mouse_on_container=!1},t.prototype.input_focus=function(){var t=this;if(this.is_multiple){if(!this.active_field)return setTimeout(function(){return t.container_mousedown()},50)}else if(!this.active_field)return this.activate_field()},t.prototype.input_blur=function(){var t=this;return this.mouse_on_container?void 0:(this.active_field=!1,setTimeout(function(){return t.blur_test()},100))},t.prototype.results_option_build=function(t){var e,i,n,s,o;for(e="",o=this.results_data,n=0,s=o.length;s>n;n++)i=o[n],e+=i.group?this.result_add_group(i):this.result_add_option(i),(null!=t?t.first:void 0)&&(i.selected&&this.is_multiple?this.choice_build(i):i.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(i)));return e},t.prototype.result_add_option=function(t){var e,i;return t.search_match&&this.include_option_in_results(t)?(e=[],t.disabled||t.selected&&this.is_multiple||e.push("active-result"),!t.disabled||t.selected&&this.is_multiple||e.push("disabled-result"),t.selected&&e.push("result-selected"),null!=t.group_array_index&&e.push("group-option"),""!==t.classes&&e.push(t.classes),i=document.createElement("li"),i.className=e.join(" "),i.style.cssText=t.style,i.setAttribute("data-option-array-index",t.array_index),i.innerHTML=t.search_text,t.title&&(i.title=t.title),this.outerHTML(i)):""},t.prototype.result_add_group=function(t){var e,i;return(t.search_match||t.group_match)&&t.active_options>0?(e=[],e.push("group-result"),t.classes&&e.push(t.classes),i=document.createElement("li"),i.className=e.join(" "),i.innerHTML=t.search_text,t.title&&(i.title=t.title),this.outerHTML(i)):""},t.prototype.results_update_field=function(){return this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing?this.winnow_results():void 0},t.prototype.reset_single_select_options=function(){var t,e,i,n,s;for(n=this.results_data,s=[],e=0,i=n.length;i>e;e++)t=n[e],s.push(t.selected?t.selected=!1:void 0);return s},t.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},t.prototype.results_search=function(){return this.results_showing?this.winnow_results():this.results_show()},t.prototype.winnow_results=function(){var t,e,i,n,s,o,r,a,l,h,c,u;for(this.no_results_clear(),n=0,o=this.get_search_text(),t=o.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),l=new RegExp(t,"i"),i=this.get_search_regex(t),u=this.results_data,h=0,c=u.length;c>h;h++)e=u[h],e.search_match=!1,s=null,this.include_option_in_results(e)&&(e.group&&(e.group_match=!1,e.active_options=0),null!=e.group_array_index&&this.results_data[e.group_array_index]&&(s=this.results_data[e.group_array_index],0===s.active_options&&s.search_match&&(n+=1),s.active_options+=1),e.search_text=e.group?e.label:e.html,(!e.group||this.group_search)&&(e.search_match=this.search_string_match(e.search_text,i),e.search_match&&!e.group&&(n+=1),e.search_match?(o.length&&(r=e.search_text.search(l),a=e.search_text.substr(0,r+o.length)+"</em>"+e.search_text.substr(r+o.length),e.search_text=a.substr(0,r)+"<em>"+a.substr(r)),null!=s&&(s.group_match=!0)):null!=e.group_array_index&&this.results_data[e.group_array_index].search_match&&(e.search_match=!0)));return this.result_clear_highlight(),1>n&&o.length?(this.update_results_content(""),this.no_results(o)):(this.update_results_content(this.results_option_build()),this.winnow_results_set_highlight())},t.prototype.get_search_regex=function(t){var e;return e=this.search_contains?"":"^",new RegExp(e+t,"i")},t.prototype.search_string_match=function(t,e){var i,n,s,o;if(e.test(t))return!0;
18if(this.enable_split_word_search&&(t.indexOf(" ")>=0||0===t.indexOf("["))&&(n=t.replace(/\[|\]/g,"").split(" "),n.length))for(s=0,o=n.length;o>s;s++)if(i=n[s],e.test(i))return!0},t.prototype.choices_count=function(){var t,e,i,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,n=this.form_field.options,e=0,i=n.length;i>e;e++)t=n[e],t.selected&&(this.selected_option_count+=1);return this.selected_option_count},t.prototype.choices_click=function(t){return t.preventDefault(),this.results_showing||this.is_disabled?void 0:this.results_show()},t.prototype.keyup_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),e){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0)return this.keydown_backstroke();if(!this.pending_backstroke)return this.result_clear_highlight(),this.results_search();break;case 13:if(t.preventDefault(),this.results_showing)return this.result_select(t);break;case 27:return this.results_showing&&this.results_hide(),!0;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search()}},t.prototype.clipboard_event_checker=function(){var t=this;return setTimeout(function(){return t.results_search()},50)},t.prototype.container_width=function(){return null!=this.options.width?this.options.width:""+this.form_field.offsetWidth+"px"},t.prototype.include_option_in_results=function(t){return!(this.is_multiple&&!this.display_selected_options&&t.selected)&&(!(!this.display_disabled_options&&t.disabled)&&!t.empty)},t.prototype.search_results_touchstart=function(t){return this.touch_started=!0,this.search_results_mouseover(t)},t.prototype.search_results_touchmove=function(t){return this.touch_started=!1,this.search_results_mouseout(t)},t.prototype.search_results_touchend=function(t){return this.touch_started?this.search_results_mouseup(t):void 0},t.prototype.outerHTML=function(t){var e;return t.outerHTML?t.outerHTML:(e=document.createElement("div"),e.appendChild(t),e.innerHTML)},t.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!/iP(od|hone)/i.test(window.navigator.userAgent)&&(!/Android/i.test(window.navigator.userAgent)||!/Mobile/i.test(window.navigator.userAgent))},t.default_multiple_text="Select Some Options",t.default_single_text="Select an Option",t.default_no_result_text="No results match",t}(),t=jQuery,t.fn.extend({chosen:function(n){return e.browser_is_supported()?this.each(function(){var e,s;e=t(this),s=e.data("chosen"),"destroy"===n&&s instanceof i?s.destroy():s instanceof i||e.data("chosen",new i(this,n))}):this}}),i=function(e){function i(){return s=i.__super__.constructor.apply(this,arguments)}return r(i,e),i.prototype.setup=function(){return this.form_field_jq=t(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex,this.is_rtl=this.form_field_jq.hasClass("chosen-rtl")},i.prototype.set_up_html=function(){var e,i;return e=["chosen-container"],e.push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&e.push(this.form_field.className),this.is_rtl&&e.push("chosen-rtl"),i={"class":e.join(" "),style:"width: "+this.container_width()+";",title:this.form_field.title},this.form_field.id.length&&(i.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=t("<div />",i),this.container.html(this.is_multiple?'<ul class="chosen-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>':'<a class="chosen-single chosen-default" tabindex="-1"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>'),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},i.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},i.prototype.register_observers=function(){var t=this;return this.container.bind("touchstart.chosen",function(e){return t.container_mousedown(e),e.preventDefault()}),this.container.bind("touchend.chosen",function(e){return t.container_mouseup(e),e.preventDefault()}),this.container.bind("mousedown.chosen",function(e){t.container_mousedown(e)}),this.container.bind("mouseup.chosen",function(e){t.container_mouseup(e)}),this.container.bind("mouseenter.chosen",function(e){t.mouse_enter(e)}),this.container.bind("mouseleave.chosen",function(e){t.mouse_leave(e)}),this.search_results.bind("mouseup.chosen",function(e){t.search_results_mouseup(e)}),this.search_results.bind("mouseover.chosen",function(e){t.search_results_mouseover(e)}),this.search_results.bind("mouseout.chosen",function(e){t.search_results_mouseout(e)}),this.search_results.bind("mousewheel.chosen DOMMouseScroll.chosen",function(e){t.search_results_mousewheel(e)}),this.search_results.bind("touchstart.chosen",function(e){t.search_results_touchstart(e)}),this.search_results.bind("touchmove.chosen",function(e){t.search_results_touchmove(e)}),this.search_results.bind("touchend.chosen",function(e){t.search_results_touchend(e)}),this.form_field_jq.bind("chosen:updated.chosen",function(e){t.results_update_field(e)}),this.form_field_jq.bind("chosen:activate.chosen",function(e){t.activate_field(e)}),this.form_field_jq.bind("chosen:open.chosen",function(e){t.container_mousedown(e)}),this.form_field_jq.bind("chosen:close.chosen",function(e){t.input_blur(e)}),this.search_field.bind("blur.chosen",function(e){t.input_blur(e)}
18),this.search_field.bind("keyup.chosen",function(e){t.keyup_checker(e)}),this.search_field.bind("keydown.chosen",function(e){t.keydown_checker(e)}),this.search_field.bind("focus.chosen",function(e){t.input_focus(e)}),this.search_field.bind("cut.chosen",function(e){t.clipboard_event_checker(e)}),this.search_field.bind("paste.chosen",function(e){t.clipboard_event_checker(e)}),this.is_multiple?this.search_choices.bind("click.chosen",function(e){t.choices_click(e)}):this.container.bind("click.chosen",function(t){t.preventDefault()})},i.prototype.destroy=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},i.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field_jq[0].disabled,this.is_disabled?(this.container.addClass("chosen-disabled"),this.search_field[0].disabled=!0,this.is_multiple||this.selected_item.unbind("focus.chosen",this.activate_action),this.close_field()):(this.container.removeClass("chosen-disabled"),this.search_field[0].disabled=!1,this.is_multiple?void 0:this.selected_item.bind("focus.chosen",this.activate_action))},i.prototype.container_mousedown=function(e){return this.is_disabled||(e&&"mousedown"===e.type&&!this.results_showing&&e.preventDefault(),null!=e&&t(e.target).hasClass("search-choice-close"))?void 0:(this.active_field?this.is_multiple||!e||t(e.target)[0]!==this.selected_item[0]&&!t(e.target).parents("a.chosen-single").length||(e.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),t(this.container[0].ownerDocument).bind("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},i.prototype.container_mouseup=function(t){return"ABBR"!==t.target.nodeName||this.is_disabled?void 0:this.results_reset(t)},i.prototype.search_results_mousewheel=function(t){var e;return t.originalEvent&&(e=t.originalEvent.deltaY||-t.originalEvent.wheelDelta||t.originalEvent.detail),null!=e?(t.preventDefault(),"DOMMouseScroll"===t.type&&(e=40*e),this.search_results.scrollTop(e+this.search_results.scrollTop())):void 0},i.prototype.blur_test=function(){return!this.active_field&&this.container.hasClass("chosen-container-active")?this.close_field():void 0},i.prototype.close_field=function(){return t(this.container[0].ownerDocument).unbind("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale()},i.prototype.activate_field=function(){return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},i.prototype.test_active_click=function(e){var i;return i=t(e.target).closest(".chosen-container"),i.length&&this.container[0]===i[0]?this.active_field=!0:this.close_field()},i.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=n.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():this.is_multiple||(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},i.prototype.result_do_highlight=function(t){var e,i,n,s,o;if(t.length){if(this.result_clear_highlight(),this.result_highlight=t,this.result_highlight.addClass("highlighted"),n=parseInt(this.search_results.css("maxHeight"),10),o=this.search_results.scrollTop(),s=n+o,i=this.result_highlight.position().top+this.search_results.scrollTop(),e=i+this.result_highlight.outerHeight(),e>=s)return this.search_results.scrollTop(e-n>0?e-n:0);if(o>i)return this.search_results.scrollTop(i)}},i.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},i.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.search_field.val()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},i.prototype.update_results_content=function(t){return this.search_results.html(t)},i.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},i.prototype.set_tab_index=function(){var t;return this.form_field.tabIndex?(t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t):void 0},i.prototype.set_label_behavior=function(){var e=this;return this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=t("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0?this.form_field_label.bind("click.chosen",function(t){return e.is_multiple?e.container_mousedown(t):e.activate_field()}):void 0},i.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},i.prototype.search_results_mouseup=function(e){var i;return i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),i.length?(this.result_highlight=i,this.result_select(e),this.search_field.focus()):void 0},i.prototype.search_results_mouseover=function(e){var i;return i=t(e.target).hasClass("active-result")?t(e.target):t(e.target).parents(".active-result").first(),i?this.result_do_highlight(i):void 0},i.prototype.search_results_mouseout=function(e){return t(e.target).hasClass("active-result")?this.result_clear_highlight():void 0},i.prototype.choice_build=function(e){var i,n,s=this;return i=t("<li />",{"class":"search-choice"}).html("<span>"+this.choice_label(e)+"</span>
18"),e.disabled?i.addClass("search-choice-disabled"):(n=t("<a />",{"class":"search-choice-close","data-option-array-index":e.array_index}),n.bind("click.chosen",function(t){return s.choice_destroy_link_click(t)}),i.append(n)),this.search_container.before(i)},i.prototype.choice_destroy_link_click=function(e){return e.preventDefault(),e.stopPropagation(),this.is_disabled?void 0:this.choice_destroy(t(e.target))},i.prototype.choice_destroy=function(t){return this.result_deselect(t[0].getAttribute("data-option-array-index"))?(this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.search_field.val().length<1&&this.results_hide(),t.parents("li").first().remove(),this.search_field_scale()):void 0},i.prototype.results_reset=function(){return this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.form_field_jq.trigger("change"),this.active_field?this.results_hide():void 0},i.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},i.prototype.result_select=function(t){var e,i;return this.result_highlight?(e=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?e.removeClass("active-result"):this.reset_single_select_options(),e.addClass("result-selected"),i=this.results_data[e[0].getAttribute("data-option-array-index")],i.selected=!0,this.form_field.options[i.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(i):this.single_set_selected_text(this.choice_label(i)),(t.metaKey||t.ctrlKey)&&this.is_multiple||this.results_hide(),this.search_field.val(""),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.form_field_jq.trigger("change",{selected:this.form_field.options[i.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,t.preventDefault(),this.search_field_scale())):void 0},i.prototype.single_set_selected_text=function(t){return null==t&&(t=this.default_text),t===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(t)},i.prototype.result_deselect=function(t){var e;return e=this.results_data[t],!this.form_field.options[e.options_index].disabled&&(e.selected=!1,this.form_field.options[e.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.form_field_jq.trigger("change",{deselected:this.form_field.options[e.options_index].value}),this.search_field_scale(),!0)},i.prototype.single_deselect_control_build=function(){return this.allow_single_deselect?(this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")):void 0},i.prototype.get_search_text=function(){return t("<div/>").text(t.trim(this.search_field.val())).html()},i.prototype.winnow_results_set_highlight=function(){var t,e;return e=this.is_multiple?[]:this.search_results.find(".result-selected.active-result"),t=e.length?e.first():this.search_results.find(".active-result").first(),null!=t?this.result_do_highlight(t):void 0},i.prototype.no_results=function(e){var i;return i=t('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>'),i.find("span").first().html(e),this.search_results.append(i),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},i.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},i.prototype.keydown_arrow=function(){var t;return this.results_showing&&this.result_highlight?(t=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(t):void 0:this.results_show()},i.prototype.keyup_arrow=function(){var t;return this.results_showing||this.is_multiple?this.result_highlight?(t=this.result_highlight.prevAll("li.active-result"),t.length?this.result_do_highlight(t.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight())):void 0:this.results_show()},i.prototype.keydown_backstroke=function(){var t;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(t=this.search_container.siblings("li.search-choice").last(),t.length&&!t.hasClass("search-choice-disabled")?(this.pending_backstroke=t,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0)},i.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},i.prototype.keydown_checker=function(t){var e,i;switch(e=null!=(i=t.which)?i:t.keyCode,this.search_field_scale(),8!==e&&this.pending_backstroke&&this.clear_backstroke(),e){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(t),this.mouse_on_container=!1;break;case 13:this.results_showing&&t.preventDefault();break;case 32:this.disable_search&&t.preventDefault();break;case 38:t.preventDefault(),this.keyup_arrow();break;case 40:t.preventDefault(),this.keydown_arrow()}},i.prototype.search_field_scale=function(){var e,i,n,s,o,r,a,l,h;if(this.is_multiple){for(n=0,a=0,o="position:absolute; left: -1000px; top: -1000px; display:none;",r=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"],l=0,h=r.length;h>l;l++)s=r[l],o+=s+":"+this.search_field.css(s)+";";return e=t("<div />",{style:o}),e.text(this.search_field.val()),t("body").append(e),a=e.width()+25,e.remove(),i=this.container.outerWidth(),a>i-10&&(a=i-10),this.search_field.css({width:a+"px"})}},i}(e)}.call(this),+function(t){"use strict";var e="Microsoft Internet Explorer"==window.navigator.appName,i=function(e,i){if(this.$element=t(e),this.$input
18=this.$element.find(":file"),0!==this.$input.length){this.name=this.$input.attr("name")||i.name,this.$hidden=this.$element.find('input[type=hidden][name="'+this.name+'"]'),0===this.$hidden.length&&(this.$hidden=t('<input type="hidden">').insertBefore(this.$input)),this.$preview=this.$element.find(".fileinput-preview");var n=this.$preview.css("height");"inline"!==this.$preview.css("display")&&"0px"!==n&&"none"!==n&&this.$preview.css("line-height",n),this.original={exists:this.$element.hasClass("fileinput-exists"),preview:this.$preview.html(),hiddenVal:this.$hidden.val()},this.listen()}};i.prototype.listen=function(){this.$input.on("change.bs.fileinput",t.proxy(this.change,this)),t(this.$input[0].form).on("reset.bs.fileinput",t.proxy(this.reset,this)),this.$element.find('[data-trigger="fileinput"]').on("click.bs.fileinput",t.proxy(this.trigger,this)),this.$element.find('[data-dismiss="fileinput"]').on("click.bs.fileinput",t.proxy(this.clear,this))},i.prototype.change=function(e){var i=void 0===e.target.files?e.target&&e.target.value?[{name:e.target.value.replace(/^.+\\/,"")}]:[]:e.target.files;if(e.stopPropagation(),0===i.length)return void this.clear();this.$hidden.val(""),this.$hidden.attr("name",""),this.$input.attr("name",this.name);var n=i[0];if(this.$preview.length>0&&("undefined"!=typeof n.type?n.type.match(/^image\/(gif|png|jpeg)$/):n.name.match(/\.(gif|png|jpe?g)$/i))&&"undefined"!=typeof FileReader){var s=new FileReader,o=this.$preview,r=this.$element;s.onload=function(e){var s=t("<img>");s[0].src=e.target.result,i[0].result=e.target.result,r.find(".fileinput-filename").text(n.name),"none"!=o.css("max-height")&&s.css("max-height",parseInt(o.css("max-height"),10)-parseInt(o.css("padding-top"),10)-parseInt(o.css("padding-bottom"),10)-parseInt(o.css("border-top"),10)-parseInt(o.css("border-bottom"),10)),o.html(s),r.addClass("fileinput-exists").removeClass("fileinput-new"),r.trigger("change.bs.fileinput",i)},s.readAsDataURL(n)}else this.$element.find(".fileinput-filename").text(n.name),this.$preview.text(n.name),this.$element.addClass("fileinput-exists").removeClass("fileinput-new"),this.$element.trigger("change.bs.fileinput")},i.prototype.clear=function(t){if(t&&t.preventDefault(),this.$hidden.val(""),this.$hidden.attr("name",this.name),this.$input.attr("name",""),e){var i=this.$input.clone(!0);this.$input.after(i),this.$input.remove(),this.$input=i}else this.$input.val("");this.$preview.html(""),this.$element.find(".fileinput-filename").text(""),this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),void 0!==t&&(this.$input.trigger("change"),this.$element.trigger("clear.bs.fileinput"))},i.prototype.reset=function(){this.clear(),this.$hidden.val(this.original.hiddenVal),this.$preview.html(this.original.preview),this.$element.find(".fileinput-filename").text(""),this.original.exists?this.$element.addClass("fileinput-exists").removeClass("fileinput-new"):this.$element.addClass("fileinput-new").removeClass("fileinput-exists"),this.$element.trigger("reset.bs.fileinput")},i.prototype.trigger=function(t){this.$input.trigger("click"),t.preventDefault()};var n=t.fn.fileinput;t.fn.fileinput=function(e){return this.each(function(){var n=t(this),s=n.data("bs.fileinput");s||n.data("bs.fileinput",s=new i(this,e)),"string"==typeof e&&s[e]()})},t.fn.fileinput.Constructor=i,t.fn.fileinput.noConflict=function(){return t.fn.fileinput=n,this},t(document).on("click.fileinput.data-api",'[data-provides="fileinput"]',function(e){var i=t(this);if(!i.data("bs.fileinput")){i.fileinput(i.data());var n=t(e.target).closest('[data-dismiss="fileinput"],[data-trigger="fileinput"]');n.length>0&&(e.preventDefault(),n.trigger("click.bs.fileinput"))}})}(window.jQuery);var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),"colors"in i&&"string"==typeof i.colors&&(i.colors=[r.colors[0],i.colors]),this.options=t.extend({},r,i),this.options.id||this.scope.id||(this.options.id=this.scope.id="circle-chart-"+a++),this._defaults=r,this._name=o,this.circle=Circles.create(this.options)}var o="circleChart",r=(t(e),{id:null,percentage:0,radius:80,width:7,number:!1,text:" %",colors:["#ECF0F5","#76BDF1"],duration:null}),a=0;t.fn[o]=function(e){return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),i={},n="";o in e&&(n=e[o],"object"===t.type(n)&&(i=n)),t.each(r,function(t,n){var s=o+t.substr(0,1).toUpperCase()+t.substr(1);s in e&&(i[t]=e[s])}),t.data(this,"plugin-"+o,new s(this,i))}})},t.fn[o].defaults=r,t(i).on("change:dom",function(e){t("[data-circle-chart]",e.target).circleChart()}),t("[data-circle-chart]").circleChart(),Giant.CircleChart=s}(jQuery,window,document);var Giant=Giant||{};
18!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},a,i),this._defaults=a,this._name=o,this.init()}if("undefined"!=typeof CKEDITOR){var o="giantCKEditor",r="ckeditor",a=(t(e),{toolbar:"Narrow"});s.prototype={init:function(){return CKEDITOR.replace(this.scope,this.options),this}},t.fn[o]=function(e){var i=r.length;return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),n={},a="";o in e&&(a=e[o],"object"===t.type(a)&&(n=a)),t.each(e,function(t,e){if(t.substr(0,i)===r&&t!==r){var s=t.substr(i);s=s.substr(0,1).toLowerCase()+s.substr(1),n[s]=e}}),t.data(this,"plugin-"+o,new s(this,n))}})},t.fn[o].defaults=a,t(i).on("change:dom",function(e){t("[data-ckeditor]",e.target).giantCKEditor()}),t("[data-ckeditor]").giantCKEditor(),Giant.CKEditor=s}}(jQuery,window,document);
19var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},r,i),this.$emmiter=t({}),this._defaults=r,this._name="cloner",this.init()}var o="cloner",r={item:"tr",target:"tbody",position:"append",template:".template",min:0,max:null,indexType:"time",indexName:"index",confirm:"Opravdu chcete odebrat tuto položku?"};t({}),t(e);s.SILENT=!0,s.prototype={positions:["after","before","append","prepend"],init:function(){var e=this;this.$emmiter.on("add",e.add.bind(e)).on("remove",function(t,i){e.remove(i)}).on("removeExisting",function(t,i){e.removeExisting(i)});var i=this.$scope.find(this.options.template);if("script"===i.prop("tagName").toLowerCase())this.template=i.text();else{i.remove().removeClass("template");var n=t("<"+("tr"===i.prop("tagName")?"tbody":"div")+">");this.template=n.append(i).html()}return this.$target=this.$scope.find(this.options.target),this.check(),this},emmit:function(t,e){return this.$emmiter.trigger(t,e),this},off:function(){return this.$scope.off(".cloner"),this},add:function(e){var i=this.template,n=new RegExp("{"+this.options.indexName+"}","g"),s=t.inArray(this.options.position,this.positions)?this.options.position:"append";"time"===this.options.indexType&&(i=this.template.replace(n,Date.now()));var o=t(i);return this.$target[s](o),this.$scope.trigger("cloneradd",o),this.$scope.trigger("clonerchange"),o.trigger("change:dom"),e||this.check(),this},getItem:function(e){return t(e).closest(this.options.item)},remove:function(e){var i=t(e).data("confirm")||this.options.confirm,n=this.getItem(e);return confirm(i)?(this.$scope.trigger("clonerremove",n.detach()),this.$scope.trigger("clonerchange")):this.$scope.trigger("clonercancel",n),this.check(),this},removeExisting:function(e){var i=t(e).data("cloner-confirm")||this.options.confirm,n=this.getItem(e);if(confirm(i)){var s=n.find("input");s.replaceWith(t('<input type="hidden" value="1" name="'+s.attr("name")+'">')),n.hide(),this.$scope.trigger("clonerremove",n),this.$scope.trigger("clonerchange")}else this.$scope.trigger("clonercancel");return this},check:function(){var t=this.$target.find(this.options.item).length;if(this.options.min&&(t>this.options.min?this.$scope.removeClass("cloner-min"):this.$scope.addClass("cloner-min"),t<this.options.min))for(var e=0;e<this.options.min;e++)this.add(s.SILENT);return this.options.max&&(t<this.options.max?this.$scope.removeClass("cloner-max"):this.$scope.addClass("cloner-max")),this}},t.fn[o]=function(e){return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),i={};o in e&&"object"===t.type(e[o])&&(i=e[o]),t.each(r,function(t,n){var s=o+t.substr(0,1).toUpperCase()+t.substr(1);s in e&&(i[t]=e[s])}),"min"in i&&(i.min=parseInt(i.min,10)),"max"in i&&(i.max=parseInt(i.max,10)),t.data(this,"plugin-"+o,new s(this,i))}})},t.fn[o].defaults=r,t(i).on("click.cloner","[data-cloner-action]",function(e){e.preventDefault();var i=t(this),n=i.closest("[data-cloner]").cloner().data("plugin-cloner");n.emmit(i.data("cloner-action"),i)}).on("change:dom",function(e){t("[data-cloner]",e.target).cloner()}),t("[data-cloner]").cloner(),Giant.Cloner=s}(jQuery,window,document);var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},r,i),this._defaults=r,this._name=o,this.init()}var o="counter",r=(t(e),{limit:50,target:null});s.prototype={init:function(){var t=this;
19return this.$input=this.$scope.find("input"),this.options.limit=this.$input.attr("maxlength"),this.$target=this.$scope.find(this.options.target),this.$input.on("keyup",function(){t.$target.text(t.options.limit-this.value.length)}),this}},t.fn[o]=function(e){return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),i={},n="";o in e&&(n=e[o],"object"===t.type(n)&&(i=n)),t.each(r,function(t,n){var s=o+t.substr(0,1).toUpperCase()+t.substr(1);s in e&&(i[t]=e[s])}),t.data(this,"plugin-"+o,new s(this,i))}})},t.fn[o].defaults=r,t(i).on("change:dom",function(e){t("[data-counter]",e.target).counter()}),t("[data-counter]").counter(),Giant.Counter=s}(jQuery,window,document);var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},r,i),this._defaults=r,this._name=o,this.init()}var o="giantDatepicker",r=(t(e),{language:i.documentElement.lang||"en",addon:".input-group-addon",autoclose:!0});s.prototype={init:function(){return this.$scope.datepicker(this.options),this.$addon=this.$scope.next(this.options.addon),this.attach(),this},attach:function(){var t=this;return this.$addon.on("click.giantDatepicker",function(){t.$scope.focus()}),this},detach:function(){return this.$addon.off(".giantDatepicker"),this}},t.fn[o]=function(e){return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),i={},n="";o in e&&(n=e[o],"object"===t.type(n)&&(i=n)),t.each(r,function(t,n){var s=o+t.substr(0,1).toUpperCase()+t.substr(1);s in e&&(i[t]=e[s])}),t.data(this,"plugin-"+o,new s(this,i))}})},t.fn[o].defaults=r,t(i).on("change:dom",function(e){t("[data-datepicker]",e.target).giantDatepicker()}),t("[data-datepicker]").giantDatepicker(),Giant.Datepicker=s}(jQuery,window,document);var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},r,i),this._defaults=r,this._name=o,this.init()}var o="showIf",r=(t(e),{field:null,value:"",valueType:"string",remove:!1,parent:null,detach:!1,condition:"=="});s.prototype={init:function(){var e=this,n=i.getElementById(this.options.field.replace("#",""));return n||(n=t('[name="'+this.options.field+'"]')),this.$field=t(n),this.$field.on("change ifChanged",e.render.bind(e)),t.isArray(this.options.value)||(this.options.value=[this.options.value]),this.options.value=this.options.value.map(function(t){return e.formatValue(t)}),this.$buffer=null,this.render(),this},render:function(){var t=!1,e=this.formatValue(this.$field.val());switch("checkbox"===this.$field.attr("type")&&(e=this.$field.is(":checked")?"checked":""),"radio"===this.$field.attr("type")&&(e=this.$field.filter(":checked").val()),this.options.condition){case"==":t=this.options.value.indexOf(e)>-1;break;case"!=":t=!(this.options.value.indexOf(e)>-1);break;default:throw new Error("ShowIf: Unknown condition")}t?this.show():this.hide()},attach:function(){return null!==this.$buffer&&(this.$buffer.appendTo(this.$scope),this.$buffer=null,this.$scope.trigger("change:dom")),this},detach:function(){return null===this.$buffer&&(this.$buffer=this.$scope.children().detach()),this},show:function(){return this.options.detach&&this.attach(),this.$scope.show(),this},hide:function(){return this.$scope.hide(),this.options.detach&&this.detach(),this},formatValue:function(t){var e=t;switch(this.options.valueType){case"integer":e=parseInt(t,10);break;case"boolean":e=!!t;break;default:e=t+""}return e}},t.fn[o]=function(e){return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),i={},n="";if(o in e&&(n=e[o],"object"===t.type(n)&&(i=n),"string"===t.type(n)&&""!==n)){var a=e[o].match(/(.*)(!=|==)(.*)/);i.field=a[1],i.condition=a[2],i.value=a[3].split(",")}t.each(r,function(t,n){var s=o+t.substr(0,1).toUpperCase()+t.substr(1);s in e&&(i[t]=e[s])}),t.data(this,"plugin-"+o,new s(this,i))}})},t.fn[o].defaults=r,t(i).on("change:dom",function(e){t("[data-show-if]",e.target).showIf()}),t("[data-show-if]").showIf(),Giant.ShowIf=s}(jQuery,window,document);var Giant=Giant||{};!function(t,e,i,n){function s(e,i){this.scope=e,this.$scope=t(e),this.options=t.extend({},a,i),this._defaults=a,this._name=o,this.init()}var o="giantSortable",r="sortable",a=(t(e),{handle:".handle",placeholder:"sortable-placeholder",item:"tr",data:{}});s.prototype={init:function(){return this.options.helper=function(e,i){return i.children().each(function(){t(this).width(t(this).width())}),i},this.options.update=this.save.bind(this),this.attach(),this},save:function(){if(!this.options.url)return this;var e=this.$scope.find(this.options.item).toArray().map(function(e){return t(e).data("id")}),i=t.extend({},this.options.data,{order:e});return t.ajax({url:this.options.url,data:i,error:function(){alert("Pořadí se nepodařilo uložit. Zkuste stránku obnovit a akci opakovat.")}}),this},attach:function(){this.$scope.sortable(this.options)},detach:function(){}},t.fn[o]=function(e){var i=r.length;return this.each(function(){if(!t.data(this,"plugin-"+o)){var e=t(this).data(),n={},a="";o in e&&(a=e[o],"object"===t.type(a)&&(n=a)),t.each(e,function(t,e){if(t.substr(0,i)===r&&t!==r){var s=t.substr(i);s=s.substr(0,1).toLowerCase()+s.substr(1),n[s]=e}}),t.data(this,"plugin-"+o,new s(this,n))}})},t.fn[o].defaults=a,t(i).on("change:dom",function(e){t("[data-sortable]",e.target).giantSortable()}),t("[data-sortable]").giantSortable(),Giant.Sortable=s}
19(jQuery,window,document),function(t,e,i){"use strict";e.Grido.Grid.prototype.onInit.push(function(n){if(t.fn.daterangepicker===i)return void console.error('Plugin "bootstrap-daterangepicker.js" is missing! Run `bower install bootstrap-daterangepicker` and load it.');if(e.moment===i)return void console.error('Plugin "moment.js" required by "bootstrap-daterangepicker.js" is missing!');var s=n.options.datepicker.format.toUpperCase();n.$element.on("focus","input.date",function(){t(this).daterangepicker({singleDatePicker:!0,showDropdowns:!0,format:s,startDate:e.moment().subtract(29,"days"),endDate:e.moment()})})})}(jQuery,window),function(t,e,i){"use strict";e.Grido.Grid.prototype.onInit.push(function(n){if(t.fn.daterangepicker===i)return void console.error('Plugin "bootstrap-daterangepicker.js" is missing! Run `bower install bootstrap-daterangepicker` and load it.');if(e.moment===i)return void console.error('Plugin "moment.js" required by "bootstrap-daterangepicker.js" is missing!');var s=n.options.datepicker.format.toUpperCase();n.$element.on("focus","input.daterange",function(){t(this).daterangepicker({format:s,showDropdowns:!0,ranges:{Today:[e.moment(),e.moment()],Yesterday:[e.moment().subtract(1,"days"),e.moment().subtract(1,"days")],"Last 7 Days":[e.moment().subtract(6,"days"),e.moment()],"Last 30 Days":[e.moment().subtract(29,"days"),e.moment()],"This Month":[e.moment().startOf("month"),e.moment().endOf("month")],"Last Month":[e.moment().subtract(1,"month").startOf("month"),e.moment().subtract(1,"month").endOf("month")]},startDate:e.moment().subtract(29,"days"),endDate:e.moment()})})})}(jQuery,window),function(t,e,i,n){"use strict";e.Grido.Ajax.prototype.onSuccessEvent=function(s,o){return t.fn.typeahead===n?void console.error('Plugin "history.js" is missing! Run `bower install history.js` and load it.'):void e.History.pushState(s,i.title,o)}}(jQuery,window,document),function(t,e,i){"use strict";e.Grido.Ajax.prototype.doRequest=function(e,n,s){return t.fn.netteAjax===i?void console.error('Plugin "nette.ajax.js" is missing! Run `bower install nette.ajax.js` and load it.'):void t.nette.ajax({url:e},n,s)}}(jQuery,window),function(t){"use strict";t.nette.ext("grido",{load:function(){this.selector=t(".grido"),this.selector.grido(),this.selector.trigger("change:dom")},success:function(t){t.grido&&this.selector.trigger("success.ajax.grido",t)}})}(jQuery),function(t,e,i){"use strict";e.Grido.Grid.prototype.onInit.push(function(n){if(t.fn.typeahead===i)return void console.error('Plugin "typeahead.js" is missing! Run `bower install typeahead.js` and load bundled version.');if(e.Bloodhound===i)return void console.error('Plugin "Bloodhound" required by "typeahead.js" is missing!');var s=n;n.$element.find("input.suggest").each(function(){var n=t(this).data("grido-suggest-handler"),o=t(this).data("grido-suggest-replacement"),r={limit:t(this).data("grido-suggest-limit"),datumTokenizer:e.Bloodhound.tokenizers.obj.whitespace("value"),queryTokenizer:e.Bloodhound.tokenizers.whitespace,remote:{url:n.replace(o,"%QUERY")}};e.NProgress!==i&&(r.remote.ajax={beforeSend:t.proxy(e.NProgress.start),complete:t.proxy(e.NProgress.done)});var a=new e.Bloodhound(r);a.initialize(),t(this).typeahead(null,{displayKey:function(t){return t},source:a.ttAdapter()}),t(this).on("typeahead:selected",function(){s.sendFilterForm()})})})}(jQuery,window),$.substitute=function(t,e){return t.replace(/\{(.+?)\}/g,function(t,i){return i in e?e[i]:t})},function(){function t(e){var i=t.modules[e];if(!i)throw new Error('failed to require "'+e+'"');return"exports"in i||"function"!=typeof i.definition||(i.client=i.component=!0,i.definition.call(this,i.exports={},i),delete i.definition),i.exports}t.loader="component",t.helper={},t.helper.semVerSort=function(t,e){for(var i=t.version.split("."),n=e.version.split("."),s=0;s<i.length;++s){var o=parseInt(i[s],10),r=parseInt(n[s],10);if(o!==r)return o>r?1:-1;var a=i[s].substr((""+o).length),l=n[s].substr((""+r).length);if(""===a&&""!==l)return 1;if(""!==a&&""===l)return-1;if(""!==a&&""!==l)return a>l?1:-1}return 0},t.latest=function(e,i){function n(t){throw new Error('failed to find latest module of "'+t+'"')}var s=/(.*)~(.*)@v?(\d+\.\d+\.\d+[^\/]*)$/,o=/(.*)~(.*)/;o.test(e)||n(e);for(var r=Object.keys(t.modules),a=[],l=[],h=0;h<r.length;h++){var c=r[h];if(new RegExp(e+"@").test(c)){var u=c.substr(e.length+1),d=s.exec(c);null!=d?a.push({version:u,name:c}
19):l.push({version:u,name:c})}}if(0===a.concat(l).length&&n(e),a.length>0){var p=a.sort(t.helper.semVerSort).pop().name;return i===!0?p:t(p)}var p=l.pop().name;return i===!0?p:t(p)},t.modules={},t.register=function(e,i){t.modules[e]={definition:i}},t.define=function(e,i){t.modules[e]={exports:i}},t.register("[email protected]",function(t,e){function i(t,e){return this instanceof i?(this.element=t,this.props=e||{},void this.init()):new i(t,e)}e.exports=i,i.prototype.isSafari=function(){return/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor)},i.prototype.init=function(){var t=[];for(var e in this.props)t.push(e+" "+this.props[e]);this.element.style.transition=t.join(", "),this.isSafari()&&(this.element.style.webkitTransition=t.join(", "))}}),t.register("[email protected]",function(t,e){function i(t){"use strict";var e,n=this;if(this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=10,this.layer=t,!t||!t.nodeType)throw new TypeError("Layer must be a document node");this.onClick=function(){return i.prototype.onClick.apply(n,arguments)},this.onMouse=function(){return i.prototype.onMouse.apply(n,arguments)},this.onTouchStart=function(){return i.prototype.onTouchStart.apply(n,arguments)},this.onTouchMove=function(){return i.prototype.onTouchMove.apply(n,arguments)},this.onTouchEnd=function(){return i.prototype.onTouchEnd.apply(n,arguments)},this.onTouchCancel=function(){return i.prototype.onTouchCancel.apply(n,arguments)},i.notNeeded(t)||(this.deviceIsAndroid&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,i,n){var s=Node.prototype.removeEventListener;"click"===e?s.call(t,e,i.hijacked||i,n):s.call(t,e,i,n)},t.addEventListener=function(e,i,n){var s=Node.prototype.addEventListener;"click"===e?s.call(t,e,i.hijacked||(i.hijacked=function(t){t.propagationStopped||i(t)}),n):s.call(t,e,i,n)}),"function"==typeof t.onclick&&(e=t.onclick,t.addEventListener("click",function(t){e(t)},!1),t.onclick=null))}i.prototype.deviceIsAndroid=navigator.userAgent.indexOf("Android")>0,i.prototype.deviceIsIOS=/iP(ad|hone|od)/.test(navigator.userAgent),i.prototype.deviceIsIOS4=i.prototype.deviceIsIOS&&/OS 4_\d(_\d)?/.test(navigator.userAgent),i.prototype.deviceIsIOSWithBadTarget=i.prototype.deviceIsIOS&&/OS ([6-9]|\d{2})_\d/.test(navigator.userAgent),i.prototype.needsClick=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(this.deviceIsIOS&&"file"===t.type||t.disabled)return!0;break;case"label":case"video":return!0}return/\bneedsclick\b/.test(t.className)},i.prototype.needsFocus=function(t){"use strict";switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!this.deviceIsAndroid;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},i.prototype.sendClick=function(t,e){"use strict";var i,n;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),n=e.changedTouches[0],i=document.createEvent("MouseEvents"),i.initMouseEvent(this.determineEventType(t),!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),i.forwardedTouchEvent=!0,t.dispatchEvent(i)},i.prototype.determineEventType=function(t){"use strict";return this.deviceIsAndroid&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},i.prototype.focus=function(t){"use strict";var e;this.deviceIsIOS&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},i.prototype.updateScrollParent=function(t){"use strict";var e,i;if(e=t.fastClickScrollParent,!e||!e.contains(t)){i=t;do{if(i.scrollHeight>i.offsetHeight){e=i,t.fastClickScrollParent=i;break}i=i.parentElement}while(i)}e&&(e.fastClickLastScrollTop=e.scrollTop)},i.prototype.getTargetElementFromEventTarget=function(t){"use strict";return t.nodeType===Node.TEXT_NODE?t.parentNode:t},i.prototype.onTouchStart=function(t){"use strict";var e,i,n;if(t.targetTouches.length>1)return!0;
19if(e=this.getTargetElementFromEventTarget(t.target),i=t.targetTouches[0],this.deviceIsIOS){if(n=window.getSelection(),n.rangeCount&&!n.isCollapsed)return!0;if(!this.deviceIsIOS4){if(i.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=i.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=i.pageX,this.touchStartY=i.pageY,t.timeStamp-this.lastClickTime<200&&t.preventDefault(),!0},i.prototype.touchHasMoved=function(t){"use strict";var e=t.changedTouches[0],i=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>i||Math.abs(e.pageY-this.touchStartY)>i},i.prototype.onTouchMove=function(t){"use strict";return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},i.prototype.findControl=function(t){"use strict";return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},i.prototype.onTouchEnd=function(t){"use strict";var e,i,n,s,o,r=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<200)return this.cancelNextClick=!0,!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,i=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,this.deviceIsIOSWithBadTarget&&(o=t.changedTouches[0],r=document.elementFromPoint(o.pageX-window.pageXOffset,o.pageY-window.pageYOffset)||r,r.fastClickScrollParent=this.targetElement.fastClickScrollParent),n=r.tagName.toLowerCase(),"label"===n){if(e=this.findControl(r)){if(this.focus(r),this.deviceIsAndroid)return!1;r=e}}else if(this.needsFocus(r))return t.timeStamp-i>100||this.deviceIsIOS&&window.top!==window&&"input"===n?(this.targetElement=null,!1):(this.focus(r),this.deviceIsIOS4&&"select"===n||(this.targetElement=null,t.preventDefault()),!1);return!(!this.deviceIsIOS||this.deviceIsIOS4||(s=r.fastClickScrollParent,!s||s.fastClickLastScrollTop===s.scrollTop))||(this.needsClick(r)||(t.preventDefault(),this.sendClick(r,t)),!1)},i.prototype.onTouchCancel=function(){"use strict";this.trackingClick=!1,this.targetElement=null},i.prototype.onMouse=function(t){"use strict";return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},i.prototype.onClick=function(t){"use strict";var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||(e=this.onMouse(t),e||(this.targetElement=null),e)},i.prototype.destroy=function(){"use strict";var t=this.layer;this.deviceIsAndroid&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},i.notNeeded=function(t){"use strict";var e,n;if("undefined"==typeof window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!i.prototype.deviceIsAndroid)return!0;if(e=document.querySelector("meta[name=viewport]")){if(e.content.indexOf("user-scalable=no")!==-1)return!0;if(n>31&&window.innerWidth<=window.screen.width)return!0}}return"none"===t.style.msTouchAction},i.attach=function(t){"use strict";return new i(t)},"undefined"!=typeof define&&define.amd?define(function(){"use strict";return i}):"undefined"!=typeof e&&e.exports?(e.exports=i.attach,e.exports.FastClick=i):window.FastClick=i}),t.register("[email protected]",function(t,e){e.exports=function(t,e){if(t.indexOf)return t.indexOf(e);for(var i=0;i<t.length;++i)if(t[i]===e)return i;return-1}}),t.register("[email protected]",function(e,i){function n(t){if(!t)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}var s=t("[email protected]"),o=/\s+/,r=Object.prototype.toString;i.exports=function(t){return new n(t)},n.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array(),i=s(e,t);return~i||e.push(t),this.el.className=e.join(" "),this},n.prototype.remove=function(t){if("[object RegExp]"==r.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),i=s(e,t);return~i&&e.splice(i,1),this.el.className=e.join(" "),this},n.prototype.removeMatching=function(t){for(var e=this.array(),i=0;i<e.length;i++)t.test(e[i])&&this.remove(e[i]);return this},n.prototype.toggle=function(t,e){return this.list?("undefined"!=typeof e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):("undefined"!=typeof e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},n.prototype.array=function(){var t=this.el.className.replace(/^\s+|\s+$/g,""),e=t.split(o);return""===e[0]&&e.shift(),e},n.prototype.has=n.prototype.contains=function(t){return this.list?this.list.contains(t):!!~s(this.array(),t)}}),t.register("switchery",function(e,i){function n(t,e){if(!(this instanceof n))return new n(t,e);this.element=t,this.options=e||{};for(var i in a)null==this.options[i]&&(this.options[i]=a[i]);null!=this.element&&"checkbox"==this.element.type&&this.init()}var s=t("[email protected]"),o=t("[email protected]"),r=t("[email protected]");i.exports=n;var a={color:"#64bd63",secondaryColor:"#dfdfdf",jackColor:"#fff",className:"switchery",disabled:!1,disabledOpacity:.5,speed:"0.4s",size:"default"};n.prototype.hide=function(){this.element.style.display="none"},n.prototype.show=function(){var t=this.create();this.insertAfter(this.element,t)},n.prototype.create=function(){return this.switcher=document.createElement("span"),this.jack=document.createElement("small"),this.switcher.appendChild(this.jack),this.switcher.className=this.options.className,this.switcher},n.prototype.insertAfter=function(t,e){t.parentNode.insertBefore(e,t.nextSibling)},n.prototype.isChecked=function(){return this.element.checked},n.prototype.isDisabled=function(){return this.options.disabled||this.element.disabled||this.element.readOnly},n.prototype.setPosition=function(t){var e=this.isChecked(),i=this.switcher,n=this.jack;t&&e?e=!1:t&&!e&&(e=!0),e===!0?(this.element.checked=!0,window.getComputedStyle?n.style.left=parseInt(window.getComputedStyle(i).width)-p
19arseInt(window.getComputedStyle(n).width)+"px":n.style.left=parseInt(i.currentStyle.width)-parseInt(n.currentStyle.width)+"px",this.options.color&&this.colorize(),this.setSpeed()):(n.style.left=0,this.element.checked=!1,this.switcher.style.boxShadow="inset 0 0 0 0 "+this.options.secondaryColor,this.switcher.style.borderColor=this.options.secondaryColor,this.switcher.style.backgroundColor=this.options.secondaryColor!==a.secondaryColor?this.options.secondaryColor:"#fff",this.jack.style.backgroundColor=this.options.jackColor,this.setSpeed())},n.prototype.setSpeed=function(){var t={},e={left:this.options.speed.replace(/[a-z]/,"")/2+"s"};t=this.isChecked()?{border:this.options.speed,"box-shadow":this.options.speed,"background-color":3*this.options.speed.replace(/[a-z]/,"")+"s"}:{border:this.options.speed,"box-shadow":this.options.speed},s(this.switcher,t),s(this.jack,e)},n.prototype.setSize=function(){var t="switchery-small",e="switchery-default",i="switchery-large";switch(this.options.size){case"small":r(this.switcher).add(t);break;case"large":r(this.switcher).add(i);break;default:r(this.switcher).add(e)}},n.prototype.colorize=function(){var t=this.switcher.offsetHeight/2;this.switcher.style.backgroundColor=this.options.color,this.switcher.style.borderColor=this.options.color,this.switcher.style.boxShadow="inset 0 0 0 "+t+"px "+this.options.color,this.jack.style.backgroundColor=this.options.jackColor},n.prototype.handleOnchange=function(t){if(document.dispatchEvent){var e=document.createEvent("HTMLEvents");e.initEvent("change",!0,!0),this.element.dispatchEvent(e)}else this.element.fireEvent("onchange")},n.prototype.handleChange=function(){var t=this,e=this.element;e.addEventListener?e.addEventListener("change",function(){t.setPosition()}):e.attachEvent("onchange",function(){t.setPosition()})},n.prototype.handleClick=function(){var t=this,e=this.switcher,i=t.element.parentNode.tagName.toLowerCase(),n="label"!==i;this.isDisabled()===!1?(o(e),e.addEventListener?e.addEventListener("click",function(e){t.setPosition(n),t.handleOnchange(t.element.checked)}):e.attachEvent("onclick",function(){t.setPosition(n),t.handleOnchange(t.element.checked)})):(this.element.disabled=!0,this.switcher.style.opacity=this.options.disabledOpacity)},n.prototype.markAsSwitched=function(){this.element.setAttribute("data-switchery",!0)},n.prototype.markedAsSwitched=function(){return this.element.getAttribute("data-switchery")},n.prototype.init=function(){this.hide(),this.show(),this.setSize(),this.setPosition(),this.markAsSwitched(),this.handleChange(),this.handleClick()}}),"object"==typeof exports?module.exports=t("switchery"):"function"==typeof define&&define.amd?define("Switchery",[],function(){return t("switchery")}):(this||window).Switchery=t("switchery")}(),function(){var t=null;$(document).on("change","select[data-autosubmit]",function(){$(this).closest("form").submit()}).on("keyup","input[data-autosubmit], textarea[data-autosubmit]",function(){clearTimeout(t);
19var e=$(this);t=setTimeout(function(){e.closest("form").submit()},200)})}(),function(){function t(){o.each(function(){this.checked||(l++,this.checked=!0)})}function e(){o.each(function(){this.checked&&(l--,this.checked=!1)})}function i(){r.attr("disabled",!l),o.length&&s.attr("checked",!(l!==o.length))}var n=$(".form-list");if(0!==n.length){var s=n.find("thead input[type=checkbox]"),o=n.find("tbody input[type=checkbox]"),r=n.find(".batch-operation select, .batch-operation button"),a=n.find("table"),l=0;a.on("click","input[type=checkbox]",function(n){var s=$(this),o=this;"undefined"==typeof s.data("master")?o.checked?l++:l--:o.checked?t():e(),i()}),i()}}(),function(){var t=$("input[type=checkbox][data-toggle]");0!==t.length&&t.on("change",function(t){var e=$(this),i=$(e.data("toggle")),n=e.data("toggle-confirm"),s=e.data("toggle-confirm-state")||!1,o=!0;if(n&&s===this.checked&&!confirm(n)){o=!1,this.checked=!this.checked;var r=$(this).data("plugin_switchery");r.handleOnchange(this.checked)}o&&(this.checked?i.collapse("show"):i.collapse("hide"))})}(),function(){function t(){n.on({"mousedown.cropWrapper":function(t){t.preventDefault(),r=!0,a=i.offset().top,c.position=n.position().top,l=c.position,c.height=n.outerHeight(),h=t.pageY},"mousemove.cropWrapper":function(t){r&&(l=Math.min(Math.max(c.position+t.pageY-h,u-c.height),0),n[0].style.top=l+"px")}})}var e=$("#crop-dialog");if(0!==e.length){var i=e.find(".crop-wrapper"),n=null,s=null,o=null,r=!1,a=0,l=0,h=0,c={position:0,height:0,originHeight:0},u=i.height(),d=null;$(document.body).on("mouseup",function(){r=!1}),e.on("shown.bs.modal",function(e){s=$(e.relatedTarget),o=s.closest(".fileinput").find(".thumbnail img"),d=s.closest(".fileinput").find(".crop-offset");var r=new Image;r.onload=function(){c.originHeight=r.height,n=i.append(r),n=i.find("img");var e=n.height(),s=d.val();s=""===s||null===s?Math.max((e-u)/2,0):s*e/c.originHeight,n.css("top",-s),t(),l=parseInt(n.css("top"),10),isNaN(l)&&(l=0)},r.src=o.data("origin")||o.attr("src")}),e.on("hidden.bs.modal",function(t){i.empty()}),e.on("click",".btn-primary",function(){d.val(Math.round(-l*c.originHeight/n.height())),e.modal("hide"),n=null}),$(".fileinput").on("change.bs.fileinput clear.bs.fileinput reset.bs.fileinput",function(){$(this).find(".crop-offset").val("")})}}(),function(){$(document).on("click","[data-confirm]",function(t){confirm($(this).data("confirm"))||t.preventDefault()})}(),function(){function t(t){var e=t.find(".form-group").toArray().map(function(t){var e=$(t),i=e.find(".form-control"),n="";return"select"===i[0].tagName.toLowerCase()?(i=i.find(":selected"),n=i.val()?i.text():""):n=i.val(),{label:e.find(".control-label").text().replace(":",""),value:n}}).filter(function(t){return""!==t.value});return e}var e='<span class="filter-settings-item"><strong>{label}:</strong> <span>{value}</span></span>';$(document).on({"show.bs.collapse":function(t){var e=$(t.target);e.hasClass("filter-content")&&$("#filter-wrapper .filter-settings").fadeOut()},"hide.bs.collapse":function(i){var n=$(i.target);if(n.hasClass("filter-content")){var s=$("#filter-wrapper"),o=s.find(".filter-settings"),r="";t(s).forEach(function(t){r+=$.substitute(e,t)}),o.html(r).fadeIn()}$("#filter-wrapper .filter-settings").fadeIn()}}),$(document).on("click","#filter-toggle",function(){var t=$("#filter-wrapper");t.find(".filter-settings");t.hasClass("is-filtered")?t.find(".box-content-wrapper").collapse("toggle"):t.collapse("toggle")}),$(document).on("click",".link-reset-filter",function(t){t.preventDefault(),$(".btn.reset-filter").click()});var i=$("#frm-search"),n=i.find(".form-control-search");n.val()&&i.submit()}(),function(){var t=$(".navbar-main .nav-root");t.on("show.bs.collapse",function(e){t.find("> .active").removeClass("active"),$(e.target).closest("li").addClass("active"),t.find(".collapse.in").collapse("hide")}).on("hide.bs.collapse",function(t){$(t.target).closest("li").removeClass("active")})}(),function(){$(".js-switch").each(function(){var t=new Switchery(this,{color:"#1c84c6",size:"small"});$(this).data("plugin_switchery",t)}),$(document).on("change:dom",function(t){$(".js-switch",t.target).each(function(){var t=new Switchery(this,{color:"#1c84c6",size:"small"});$(this).data("plugin_switchery",t)})}),$(".chosen-select").chosen()}(),$.nette&&$.nette.init();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.