PageSourceSearch

https://www.ateliernoun.be/src/main/build/js/lib-9c27852e36.min.js

js ateliernoun.be collected 2026-09-27 02:59:49 UTC 770,569 bytes, 25 lines download raw bytes

1function getIntValueFromZeroPaddedString(t){for(t=$.trim(t);t&&"0"===t.substr(0,1);)t=t.substr(1);return parseInt(t)}function getInputValueAsDMY(t){var e=t.split("-");return 3!==e.length?"":getIntValueFromZeroPaddedString(e[0])<1900?"":$.trim(e[2])+"/"+$.trim(e[1])+"/"+$.trim(e[0])}function getInputValueAsDMYHM(t,e){e=e||!1;var i=t.split(/[\sT]/);if(2!==i.length)return"";var n=getInputValueAsDMY(i[0]);if(!n)return"";var o=getInputValueAsHM(i[1],e);return o?n+" "+o:""}function getInputValueAsHM(t,e){e=e||!1;var i=t.split(/[:\.]/);if(i.length<2)return"";var n=i[0]+":"+i[1];return e?i.length<3?n+":00":n+":"+i[2]:n}function getDatepickerValue(t){return t.match(/^[0-9]{4}-[0-9]{2}-[0-9]{2}/)?t.indexOf(":")>-1?getInputValueAsDMYHM(t):getInputValueAsDMY(t):t.match(/^[0-9]{2}:[0-9]{2}/)?getInputValueAsHM(t):""}function getDateFromString(t){if(t.match(/^[0-9]{2}\/[0-9]{1,2}\/[0-9]{1,2}/))return t.indexOf(":")>-1?getDateFromStringDMYHM(t):getDateFromStringDMY(t,0,0,0);if(t.match(/^[0-9]{2}:[0-9]{2}/)){var e=new Date,i=getHourAndMinutesFromStringHM(t);return e.setUTCHours(i[0]),e.setUTCMinutes(i[1]),e.setUTCSeconds(i[2]),e}}function getDateFromStringDMY(t,e,i,n){e=e||0,i=i||0,n=n||0;var o=t.split("/");if(3===o.length&&!(getIntValueFromZeroPaddedString(o[2])<1900))return new Date(Date.UTC(parseInt($.trim(o[2])),parseInt($.trim(o[1]))-1,parseInt($.trim(o[0])),e,i,n,0))}function getDateFromStringDMYHM(t){var e=t.split(/[\sT]/);if(2===e.length){var i=getHourAndMinutesFromStringHM(e[1]);return getDateFromStringDMY(e[0],i[0],i[1],i[2])}}function getHourAndMinutesFromStringHM(t){var e=t.split(/[:\.]/);if(e.length<2)return[0,0,0];var i=[parseInt($.trim(e[0])),parseInt($.trim(e[1]))];return e.length>3?i.push(parseInt($.trim(e[2]))):i.push(0),i}function setInputDateValue(t,e){switch(t.attr("type")){case"datetime-local":t.val(getDateIsoStringValue(e,!0,!0,!0,!0,!0,!0));break;case"date":t.val(getDateIsoStringValue(e,!0,!0,!0));break;case"time":t.val(getDateIsoStringValue(e,!1,!1,!1,!0,!0,!1))}}function getDateIsoStringValue(t,e,i,n,o,s,r){e=e||!1,i=i||!1,n=n||!1,o=o||!1,s=s||!1,r=r||!1;var a=[],l=[];return e&&a.push(t.getUTCFullYear()),i&&a.push(getZeroPaddedInteger(t.getMonth()+1,2)),n&&a.push(getZeroPaddedInteger(t.getDate(),2)),o&&l.push(getZeroPaddedInteger(t.getUTCHours(),2)),s&&l.push(getZeroPaddedInteger(t.getUTCMinutes(),2)),r&&l.push(getZeroPaddedInteger(t.getUTCSeconds(),2)),out=a.join("-"),a.length>0&&l.length>0&&(out+="T"),out+=l.join(":"),out}function getZeroPaddedInteger(t,e){for(t=t.toString();t.length<e;)t="0"+t;return t}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e){e=e||J;var i=e.createElement("script");i.text=t,e.head.appendChild(i).parentNode.removeChild(i)}function n(t){var e=!!t&&"length"in t&&t.length,i=ut.type(t);return"function"!==i&&!ut.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function o(t,e,i){if(ut.isFunction(e))return ut.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return ut.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(wt.test(e))return ut.filter(e,t,i);e=ut.filter(e,t)}return ut.grep(t,function(t){return ot.call(e,t)>-1!==i&&1===t.nodeType})}function s(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function r(t){var e={};return ut.each(t.match(Et)||[],function(t,i){e[i]=!0}),e}function a(t){return t}function l(t){throw t}function c(t,e,i){var n;try{t&&ut.isFunction(n=t.promise)?n.call(t).done(e).fail(i):t&&ut.isFunction(n=t.then)?n.call(t,e,i):e.call(void 0,t)}catch(t){i.call(void 0,t)}}function h(){J.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),ut.ready()}function d(){this.expando=ut.expando+d.uid++}function u(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Rt,"-$&").toLowerCase(),i=t.getAttribute(n),"string"==typeof i){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:It.test(i)?JSON.parse(i):i)}catch(o){}Lt.set(t,e,i)}else i=void 0;return i}
vendor: 4,779 bytes, line 1
1function p(t,e,i,n){var o,s=1,r=20,a=n?function(){return n.cur()}:function(){return ut.css(t,e,"")},l=a(),c=i&&i[3]||(ut.cssNumber[e]?"":"px"),h=(ut.cssNumber[e]||"px"!==c&&+l)&&Ht.exec(ut.css(t,e));if(h&&h[3]!==c){c=c||h[3],i=i||[],h=+l||1;do s=s||".5",h/=s,ut.style(t,e,h+c);while(s!==(s=a()/l)&&1!==s&&--r)}return i&&(h=+h||+l||0,o=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=o)),o}function f(t){var e,i=t.ownerDocument,n=t.nodeName,o=jt[n];return o?o:(e=i.body.appendChild(i.createElement(n)),o=ut.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),jt[n]=o,o)}function g(t,e){for(var i,n,o=[],s=0,r=t.length;s<r;s++)n=t[s],n.style&&(i=n.style.display,e?("none"===i&&(o[s]=$t.get(n,"display")||null,o[s]||(n.style.display="")),""===n.style.display&&Bt(n)&&(o[s]=f(n))):"none"!==i&&(o[s]="none",$t.set(n,"display",i)));for(s=0;s<r;s++)null!=o[s]&&(t[s].style.display=o[s]);return t}function m(t,e){var i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&ut.nodeName(t,e)?ut.merge([t],i):i}function v(t,e){for(var i=0,n=t.length;i<n;i++)$t.set(t[i],"globalEval",!e||$t.get(e[i],"globalEval"))}function y(t,e,i,n,o){for(var s,r,a,l,c,h,d=e.createDocumentFragment(),u=[],p=0,f=t.length;p<f;p++)if(s=t[p],s||0===s)if("object"===ut.type(s))ut.merge(u,s.nodeType?[s]:s);else if(Gt.test(s)){for(r=r||d.appendChild(e.createElement("div")),a=(Yt.exec(s)||["",""])[1].toLowerCase(),l=qt[a]||qt._default,r.innerHTML=l[1]+ut.htmlPrefilter(s)+l[2],h=l[0];h--;)r=r.lastChild;ut.merge(u,r.childNodes),r=d.firstChild,r.textContent=""}else u.push(e.createTextNode(s));for(d.textContent="",p=0;s=u[p++];)if(n&&ut.inArray(s,n)>-1)o&&o.push(s);else if(c=ut.contains(s.ownerDocument,s),r=m(d.appendChild(s),"script"),c&&v(r),i)for(h=0;s=r[h++];)Ut.test(s.type||"")&&i.push(s);return d}function b(){return!0}function x(){return!1}function k(){try{return J.activeElement}catch(t){}}function w(t,e,i,n,o,s){var r,a;if("object"==typeof e){"string"!=typeof i&&(n=n||i,i=void 0);for(a in e)w(t,a,i,n,e[a],s);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=i,i=void 0)),o===!1)o=x;else if(!o)return t;return 1===s&&(r=o,o=function(t){return ut().off(t),r.apply(this,arguments)},o.guid=r.guid||(r.guid=ut.guid++)),t.each(function(){ut.event.add(this,e,o,n,i)})}function T(t,e){return ut.nodeName(t,"table")&&ut.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t:t}function C(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function S(t){var e=ee.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function _(t,e){var i,n,o,s,r,a,l,c;if(1===e.nodeType){if($t.hasData(t)&&(s=$t.access(t),r=$t.set(e,s),c=s.events)){delete r.handle,r.events={};for(o in c)for(i=0,n=c[o].length;i<n;i++)ut.event.add(e,o,c[o][i])}Lt.hasData(t)&&(a=Lt.access(t),l=ut.extend({},a),Lt.set(e,l))}}function A(t,e){var i=e.nodeName.toLowerCase();"input"===i&&Wt.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function E(t,e,n,o){e=it.apply([],e);var s,r,a,l,c,h,d=0,u=t.length,p=u-1,f=e[0],g=ut.isFunction(f);if(g||u>1&&"string"==typeof f&&!ht.checkClone&&te.test(f))return t.each(function(i){var s=t.eq(i);g&&(e[0]=f.call(this,i,s.html())),E(s,e,n,o)});if(u&&(s=y(e,t[0].ownerDocument,!1,t,o),r=s.firstChild,1===s.childNodes.length&&(s=r),r||o)){for(a=ut.map(m(s,"script"),C),l=a.length;d<u;d++)c=s,d!==p&&(c=ut.clone(c,!0,!0),l&&ut.merge(a,m(c,"script"))),n.call(t[d],c,d);if(l)for(h=a[a.length-1].ownerDocument,ut.map(a,S),d=0;d<l;d++)c=a[d],Ut.test(c.type||"")&&!$t.access(c,"globalEval")&&ut.contains(h,c)&&(c.src?ut._evalUrl&&ut._evalUrl(c.src):i(c.textContent.replace(ie,""),h))}return t}function P(t,e,i){for(var n,o=e?ut.filter(e,t):t,s=0;null!=(n=o[s]);s++)i||1!==n.nodeType||ut.cleanData(m(n)),n.parentNode&&(i&&ut.contains(n.ownerDocument,n)&&v(m(n,"script")),n.parentNode.removeChild(n));return t}function M(t,e,i){var n,o,s,r,a=t.style;return i=i||se(t),i&&(r=i.getPropertyValue(e)||i[e],""!==r||ut.contains(t.ownerDocument,t)||(r=ut.style(t,e)),!ht.pixelMarginRight()&&oe.test(r)&&ne.test(e)&&(n=a.width,o=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=o,a.maxWidth=s)),void 0!==r?r+"":r}function D(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function O(t){if(t in he)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=ce.length;i--;)if(t=ce[i]+e,t in he)return t}function $(t,e,i){var n=Ht.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function L(t,e,i,n,o){for(var s=i===(n?"border":"content")?4:"width"===e?1:0,r=0;
vendor: 1,525 bytes, line 1
1s<4;s+=2)"margin"===i&&(r+=ut.css(t,i+Nt[s],!0,o)),n?("content"===i&&(r-=ut.css(t,"padding"+Nt[s],!0,o)),"margin"!==i&&(r-=ut.css(t,"border"+Nt[s]+"Width",!0,o))):(r+=ut.css(t,"padding"+Nt[s],!0,o),"padding"!==i&&(r+=ut.css(t,"border"+Nt[s]+"Width",!0,o)));return r}function I(t,e,i){var n,o=!0,s=se(t),r="border-box"===ut.css(t,"boxSizing",!1,s);if(t.getClientRects().length&&(n=t.getBoundingClientRect()[e]),n<=0||null==n){if(n=M(t,e,s),(n<0||null==n)&&(n=t.style[e]),oe.test(n))return n;o=r&&(ht.boxSizingReliable()||n===t.style[e]),n=parseFloat(n)||0}return n+L(t,e,i||(r?"border":"content"),o,s)+"px"}function R(t,e,i,n,o){return new R.prototype.init(t,e,i,n,o)}function F(){ue&&(t.requestAnimationFrame(F),ut.fx.tick())}function H(){return t.setTimeout(function(){de=void 0}),de=ut.now()}function N(t,e){var i,n=0,o={height:t};for(e=e?1:0;n<4;n+=2-e)i=Nt[n],o["margin"+i]=o["padding"+i]=t;return e&&(o.opacity=o.width=t),o}function B(t,e,i){for(var n,o=(W.tweeners[e]||[]).concat(W.tweeners["*"]),s=0,r=o.length;s<r;s++)if(n=o[s].call(i,e,t))return n}function z(t,e,i){var n,o,s,r,a,l,c,h,d="width"in e||"height"in e,u=this,p={},f=t.style,m=t.nodeType&&Bt(t),v=$t.get(t,"fxshow");i.queue||(r=ut._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,ut.queue(t,"fx").length||r.empty.fire()})}));for(n in e)if(o=e[n],pe.test(o)){if(delete e[n],s=s||"toggle"===o,o===(m?"hide":"show")){if("show"!==o||
vendor: 6,422 bytes, line 1
1!v||void 0===v[n])continue;m=!0}p[n]=v&&v[n]||ut.style(t,n)}if(l=!ut.isEmptyObject(e),l||!ut.isEmptyObject(p)){d&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],c=v&&v.display,null==c&&(c=$t.get(t,"display")),h=ut.css(t,"display"),"none"===h&&(c?h=c:(g([t],!0),c=t.style.display||c,h=ut.css(t,"display"),g([t]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===ut.css(t,"float")&&(l||(u.done(function(){f.display=c}),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1;for(n in p)l||(v?"hidden"in v&&(m=v.hidden):v=$t.access(t,"fxshow",{display:c}),s&&(v.hidden=!m),m&&g([t],!0),u.done(function(){m||g([t]),$t.remove(t,"fxshow");for(n in p)ut.style(t,n,p[n])})),l=B(m?v[n]:0,n,u),n in v||(v[n]=l.start,m&&(l.end=l.start,l.start=0))}}function j(t,e){var i,n,o,s,r;for(i in t)if(n=ut.camelCase(i),o=e[n],s=t[i],ut.isArray(s)&&(o=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),r=ut.cssHooks[n],r&&"expand"in r){s=r.expand(s),delete t[n];for(i in s)i in t||(t[i]=s[i],e[i]=o)}else e[n]=o}function W(t,e,i){var n,o,s=0,r=W.prefilters.length,a=ut.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=de||H(),i=Math.max(0,c.startTime+c.duration-e),n=i/c.duration||0,s=1-n,r=0,l=c.tweens.length;r<l;r++)c.tweens[r].run(s);return a.notifyWith(t,[c,s,i]),s<1&&l?i:(a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:ut.extend({},e),opts:ut.extend(!0,{specialEasing:{},easing:ut.easing._default},i),originalProperties:e,originalOptions:i,startTime:de||H(),duration:i.duration,tweens:[],createTween:function(e,i){var n=ut.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(o)return this;for(o=!0;i<n;i++)c.tweens[i].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),h=c.props;for(j(h,c.opts.specialEasing);s<r;s++)if(n=W.prefilters[s].call(c,t,h,c.opts))return ut.isFunction(n.stop)&&(ut._queueHooks(c.elem,c.opts.queue).stop=ut.proxy(n.stop,n)),n;return ut.map(h,B,c),ut.isFunction(c.opts.start)&&c.opts.start.call(t,c),ut.fx.timer(ut.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function Y(t){return t.getAttribute&&t.getAttribute("class")||""}function U(t,e,i,n){var o;if(ut.isArray(e))ut.each(e,function(e,o){i||_e.test(t)?n(t,o):U(t+"["+("object"==typeof o&&null!=o?e:"")+"]",o,i,n)});else if(i||"object"!==ut.type(e))n(t,e);else for(o in e)U(t+"["+o+"]",e[o],i,n)}function q(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,o=0,s=e.toLowerCase().match(Et)||[];if(ut.isFunction(i))for(;n=s[o++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function G(t,e,i,n){function o(a){var l;return s[a]=!0,ut.each(t[a]||[],function(t,a){var c=a(e,i,n);return"string"!=typeof c||r||s[c]?r?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var s={},r=t===He;return o(e.dataTypes[0])||!s["*"]&&o("*")}function V(t,e){var i,n,o=ut.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&ut.extend(!0,t,n),t}function X(t,e,i){for(var n,o,s,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(o in a)if(a[o]&&a[o].test(n)){l.unshift(o);break}if(l[0]in i)s=l[0];else{for(o in i){if(!l[0]||t.converters[o+" "+l[0]]){s=o;break}r||(r=o)}s=s||r}if(s)return s!==l[0]&&l.unshift(s),i[s]}function K(t,e,i,n){var o,s,r,a,l,c={},h=t.dataTypes.slice();if(h[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(s=h.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=h.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(r=c[l+" "+s]||c["* "+s],!r)for(o in c)if(a=o.split(" "),a[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){r===!0?r=c[o]:c[o]!==!0&&(s=a[0],h.unshift(a[1]));break}if(r!==!0)if(r&&t["throws"])e=r(e);else try{e=r(e)}catch(d){return{state:"parsererror",error:r?d:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function Q(t){return ut.isWindow(t)?t:9===t.nodeType&&t.defaultView}var Z=[],J=t.document,tt=Object.getPrototypeOf,et=Z.slice,it=Z.concat,nt=Z.push,ot=Z.indexOf,st={},rt=st.toString,at=st.hasOwnProperty,lt=at.toString,ct=lt.call(Object),ht={},dt="3.1.0",ut=function(t,e){return new ut.fn.init(t,e)},pt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ft=/^-ms-/,gt=/-([a-z])/g,mt=function(t,e){return e.toUpperCase()};ut.fn=ut.prototype={jquery:dt,constructor:ut,length:0,toArray:function(){return et.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:et.call(this)},pushStack:function(t){var e=ut.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return ut.each(this,t)},map:function(t){return this.pushStack(ut.map(this,function(e,i){return t.call(e,i,e)}))},slice:function(){return this.pushStack(et.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()},push:nt,sort:Z.sort,splice:Z.splice},ut.extend=ut.fn.extend=function(){var t,e,i,n,o,s,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||ut.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&&(c&&n&&(ut.isPlainObject(n)||(o=ut.isArray(n)))?(o?(o=!1,s=i&&ut.isArray(i)?i:[]):s=i&&ut.isPlainObject(i)?i:{},r[e]=ut.extend(c,s,n)):void 0!==n&&(r[e]=n));return r},ut.extend({expando:"jQuery"+(dt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ut.type(t)},isArray:Array.isArray,isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=ut.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==rt.call(t)||(e=tt(t))&&(i=at.call(e,"constructor")&&e.constructor,"function"!=typeof i||lt.call(i)!==ct))},isEmptyObject:function(t){var e;
vendor: 4,474 bytes, line 1
1for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?st[rt.call(t)]||"object":typeof t},globalEval:function(t){i(t)},camelCase:function(t){return t.replace(ft,"ms-").replace(gt,mt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,o=0;if(n(t))for(i=t.length;o<i&&e.call(t[o],o,t[o])!==!1;o++);else for(o in t)if(e.call(t[o],o,t[o])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(pt,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ut.merge(i,"string"==typeof t?[t]:t):nt.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:ot.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,o=t.length;n<i;n++)t[o++]=e[n];return t.length=o,t},grep:function(t,e,i){for(var n,o=[],s=0,r=t.length,a=!i;s<r;s++)n=!e(t[s],s),n!==a&&o.push(t[s]);return o},map:function(t,e,i){var o,s,r=0,a=[];if(n(t))for(o=t.length;r<o;r++)s=e(t[r],r,i),null!=s&&a.push(s);else for(r in t)s=e(t[r],r,i),null!=s&&a.push(s);return it.apply([],a)},guid:1,proxy:function(t,e){var i,n,o;if("string"==typeof e&&(i=t[e],e=t,t=i),ut.isFunction(t))return n=et.call(arguments,2),o=function(){return t.apply(e||this,n.concat(et.call(arguments)))},o.guid=t.guid=t.guid||ut.guid++,o},now:Date.now,support:ht}),"function"==typeof Symbol&&(ut.fn[Symbol.iterator]=Z[Symbol.iterator]),ut.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){st["[object "+e+"]"]=e.toLowerCase()});var vt=function(t){function e(t,e,i,n){var o,s,r,a,l,c,h,u=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!n&&((e?e.ownerDocument||e:z)!==$&&O(e),e=e||$,I)){if(11!==f&&(l=vt.exec(t)))if(o=l[1]){if(9===f){if(!(r=e.getElementById(o)))return i;if(r.id===o)return i.push(r),i}else if(u&&(r=u.getElementById(o))&&N(e,r)&&r.id===o)return i.push(r),i}else{if(l[2])return Z.apply(i,e.getElementsByTagName(t)),i;if((o=l[3])&&w.getElementsByClassName&&e.getElementsByClassName)return Z.apply(i,e.getElementsByClassName(o)),i}if(w.qsa&&!q[t+" "]&&(!R||!R.test(t))){if(1!==f)u=e,h=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(kt,wt):e.setAttribute("id",a=B),c=_(t),s=c.length;s--;)c[s]="#"+a+" "+p(c[s]);h=c.join(","),u=yt.test(t)&&d(e.parentNode)||e}if(h)try{return Z.apply(i,u.querySelectorAll(h)),i}catch(g){}finally{a===B&&e.removeAttribute("id")}}}return E(t.replace(at,"$1"),e,i,n)}function i(){function t(i,n){return e.push(i+" ")>T.cacheLength&&delete t[e.shift()],t[i+" "]=n}var e=[];return t}function n(t){return t[B]=!0,t}function o(t){var e=$.createElement("fieldset");try{return!!t(e)}catch(i){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var i=t.split("|"),n=i.length;n--;)T.attrHandle[i[n]]=e}function r(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function 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 c(t){return function(e){return"label"in e&&e.disabled===t||"form"in e&&e.disabled===t||"form"in e&&e.disabled===!1&&(e.isDisabled===t||e.isDisabled!==!t&&("label"in e||!Ct(e))!==t)}}function h(t){return n(function(e){return e=+e,n(function(i,n){for(var o,s=t([],i.length,e),r=s.length;r--;)i[o=s[r]]&&(i[o]=!(n[o]=i[o]))})})}function d(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function u(){}function p(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function f(t,e,i){var n=e.dir,o=e.next,s=o||n,r=i&&"parentNode"===s,a=W++;return e.first?function(e,i,o){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,o)}:function(e,i,l){var c,h,d,u=[j,a];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(d=e[B]||(e[B]={}),h=d[e.uniqueID]||(d[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=h[s])&&c[0]===j&&c[1]===a)return u[2]=c[2];if(h[s]=u,u[2]=t(e,i,l))return!0}}}function g(t){return t.length>1?function(e,i,n){for(var o=t.length;o--;)if(!t[o](e,i,n))return!1;return!0}:t[0]}function m(t,i,n){for(var o=0,s=i.length;o<s;o++)e(t,i[o],n);return n}function v(t,e,i,n,o){for(var s,r=[],a=0,l=t.length,c=null!=e;a<l;
vendor: 2,597 bytes, line 1
1a++)(s=t[a])&&(i&&!i(s,n,o)||(r.push(s),c&&e.push(a)));return r}function y(t,e,i,o,s,r){return o&&!o[B]&&(o=y(o)),s&&!s[B]&&(s=y(s,r)),n(function(n,r,a,l){var c,h,d,u=[],p=[],f=r.length,g=n||m(e||"*",a.nodeType?[a]:a,[]),y=!t||!n&&e?g:v(g,u,t,a,l),b=i?s||(n?t:f||o)?[]:r:y;if(i&&i(y,b,a,l),o)for(c=v(b,p),o(c,[],a,l),h=c.length;h--;)(d=c[h])&&(b[p[h]]=!(y[p[h]]=d));if(n){if(s||t){if(s){for(c=[],h=b.length;h--;)(d=b[h])&&c.push(y[h]=d);s(null,b=[],c,l)}for(h=b.length;h--;)(d=b[h])&&(c=s?tt(n,d):u[h])>-1&&(n[c]=!(r[c]=d))}}else b=v(b===r?b.splice(f,b.length):b),s?s(null,r,b,l):Z.apply(r,b)})}function b(t){for(var e,i,n,o=t.length,s=T.relative[t[0].type],r=s||T.relative[" "],a=s?1:0,l=f(function(t){return t===e},r,!0),c=f(function(t){return tt(e,t)>-1},r,!0),h=[function(t,i,n){var o=!s&&(n||i!==P)||((e=i).nodeType?l(t,i,n):c(t,i,n));return e=null,o}];a<o;a++)if(i=T.relative[t[a].type])h=[f(g(h),i)];else{if(i=T.filter[t[a].type].apply(null,t[a].matches),i[B]){for(n=++a;n<o&&!T.relative[t[n].type];n++);return y(a>1&&g(h),a>1&&p(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(at,"$1"),i,a<n&&b(t.slice(a,n)),n<o&&b(t=t.slice(n)),n<o&&p(t))}h.push(i)}return g(h)}function x(t,i){var o=i.length>0,s=t.length>0,r=function(n,r,a,l,c){var h,d,u,p=0,f="0",g=n&&[],m=[],y=P,b=n||s&&T.find.TAG("*",c),x=j+=null==y?1:Math.random()||.1,k=b.length;for(c&&(P=r===$||r||c);f!==k&&null!=(h=b[f]);f++){if(s&&h){for(d=0,r||h.ownerDocument===$||(O(h),a=!I);u=t[d++];)if(u(h,r||$,a)){l.push(h);break}c&&(j=x)}o&&((h=!u&&h)&&p--,n&&g.push(h))}if(p+=f,o&&f!==p){for(d=0;u=i[d++];)u(g,m,r,a);if(n){if(p>0)for(;f--;)g[f]||m[f]||(m[f]=K.call(l));m=v(m)}Z.apply(l,m),c&&!n&&m.length>0&&p+i.length>1&&e.uniqueSort(l)}return c&&(j=x,P=y),g};return o?n(r):r}var k,w,T,C,S,_,A,E,P,M,D,O,$,L,I,R,F,H,N,B="sizzle"+1*new Date,z=t.document,j=0,W=0,Y=i(),U=i(),q=i(),G=function(t,e){return t===e&&(D=!0),0},V={}.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-]|[^\0-\\xa0])+",ot="\\["+it+"*("+nt+")(?:"+it+"*([*^$|!~]?=)"+it+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+nt+"))|)"+it+"*\\]",st=":("+nt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ot+")*)|.*)\\)|)",rt=new RegExp(it+"+","g"),at=new RegExp("^"+it+"+|((?:^|[^\\\\])(?:\\\\.)*)"+it+"+$","g"),lt=new RegExp("^"+it+"*,"+it+"*"),
vendor: 8,083 bytes, lines 1-2
1ct=new RegExp("^"+it+"*([>+~]|"+it+")"+it+"*"),ht=new RegExp("="+it+"*([^\\]'\"]*?)"+it+"*\\]","g"),dt=new RegExp(st),ut=new RegExp("^"+nt+"$"),pt={ID:new RegExp("^#("+nt+")"),CLASS:new RegExp("^\\.("+nt+")"),TAG:new RegExp("^("+nt+"|[*])"),ATTR:new RegExp("^"+ot),PSEUDO:new RegExp("^"+st),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")},ft=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,mt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,bt=new RegExp("\\\\([\\da-f]{1,6}"+it+"?|("+it+")|.)","ig"),xt=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=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,wt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Tt=function(){O()},Ct=f(function(t){return t.disabled===!0},{dir:"parentNode",next:"legend"});try{Z.apply(X=J.call(z.childNodes),z.childNodes),X[z.childNodes.length].nodeType}catch(St){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}}}w=e.support={},S=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:z;return n!==$&&9===n.nodeType&&n.documentElement?($=n,L=$.documentElement,I=!S($),z!==$&&(i=$.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",Tt,!1):i.attachEvent&&i.attachEvent("onunload",Tt)),w.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=o(function(t){return t.appendChild($.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=mt.test($.getElementsByClassName),w.getById=o(function(t){return L.appendChild(t).id=B,!$.getElementsByName||!$.getElementsByName(B).length}),w.getById?(T.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&I){var i=e.getElementById(t);return i?[i]:[]}},T.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){return t.getAttribute("id")===e}}):(delete T.find.ID,T.filter.ID=function(t){var e=t.replace(bt,xt);return function(t){var i="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}}),T.find.TAG=w.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):w.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],o=0,s=e.getElementsByTagName(t);if("*"===t){for(;i=s[o++];)1===i.nodeType&&n.push(i);return n}return s},T.find.CLASS=w.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&I)return e.getElementsByClassName(t)},F=[],R=[],(w.qsa=mt.test($.querySelectorAll))&&(o(function(t){L.appendChild(t).innerHTML="<a id='"+B+"'></a><select id='"+B+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&R.push("[*^$]="+it+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||R.push("\\["+it+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+B+"-]").length||R.push("~="),t.querySelectorAll(":checked").length||R.push(":checked"),t.querySelectorAll("a#"+B+"+*").length||R.push(".#.+[+~]")}),o(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=$.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&R.push("name"+it+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&R.push(":enabled",":disabled"),L.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&R.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),R.push(",.*:")})),(w.matchesSelector=mt.test(H=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&o(function(t){w.disconnectedMatch=H.call(t,"*"),H.call(t,"[s!='']:x"),F.push("!=",st)}),R=R.length&&new RegExp(R.join("|")),F=F.length&&new RegExp(F.join("|")),e=mt.test(L.compareDocumentPosition),N=e||mt.test(L.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 D=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!w.sortDetached&&e.compareDocumentPosition(t)===i?t===$||t.ownerDocument===z&&N(z,t)?-1:e===$||e.ownerDocument===z&&N(z,e)?1:M?tt(M,t)-tt(M,e):0:4&i?-1:1)}:function(t,e){if(t===e)return D=!0,0;var i,n=0,o=t.parentNode,s=e.parentNode,a=[t],l=[e];if(!o||!s)return t===$?-1:e===$?1:o?-1:s?1:M?tt(M,t)-tt(M,e):0;if(o===s)return r(t,e);for(i=t;i=i.parentNode;)a.unshift(i);for(i=e;i=i.parentNode;)l.unshift(i);for(;a[n]===l[n];)n++;return n?r(a[n],l[n]):a[n]===z?-1:l[n]===z?1:0},$):$},e.matches=function(t,i){return e(t,null,null,i)},e.matchesSelector=function(t,i){if((t.ownerDocument||t)!==$&&O(t),i=i.replace(ht,"='$1']"),w.matchesSelector&&I&&!q[i+" "]&&(!F||!F.test(i))&&(!R||!R.test(i)))try{var n=H.call(t,i);if(n||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(o){}return e(i,$,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==$&&O(t),N(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==$&&O(t);var i=T.attrHandle[e.toLowerCase()],n=i&&V.call(T.attrHandle,e.toLowerCase())?i(t,e,!I):void 0;return void 0!==n?n:w.attributes||!I?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},e.escape=function(t){return(t+"").replace(kt,wt)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,i=[],n=0,o=0;if(D=!w.detectDuplicates,M=!w.sortStable&&t.slice(0),t.sort(G),D){for(;e=t[o++];)e===t[o]&&(n=i.push(o));for(;n--;)t.splice(i[n],1)}return M=null,t},C=e.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=C(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=C(e);return i},T=e.selectors={cacheLength:50,createPseudo:n,match:pt,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(bt,xt),t[3]=(t[3]||t[4]||t[5]||"").replace(bt,xt),"~="===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 pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&dt.test(i)&&(e=_(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(bt,xt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=Y[t+" "];return e||(e=new RegExp("(^|"+it+")"+t+"("+it+"|$)"))&&Y(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(o){var s=e.attr(o,t);return null==s?"!="===i:!i||(s+="","="===i?s===n:"!="===i?s!==n:"^="===i?n&&0===s.indexOf(n):"*="===i?n&&s.indexOf(n)>-1:"$="===i?n&&s.slice(-n.length)===n:"~="===i?(" "+s.replace(rt," ")+" ").indexOf(n)>-1:"|="===i&&(s===n||s.slice(0,n.length+1)===n+"-"));
2}}
vendor: 5,778 bytes, line 2
2,CHILD:function(t,e,i,n,o){var s="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===o?function(t){return!!t.parentNode}:function(e,i,l){var c,h,d,u,p,f,g=s!==r?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(s){for(;g;){for(u=e;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&y){for(u=m,d=u[B]||(u[B]={}),h=d[u.uniqueID]||(d[u.uniqueID]={}),c=h[t]||[],p=c[0]===j&&c[1],b=p&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(b=p=0)||f.pop();)if(1===u.nodeType&&++b&&u===e){h[t]=[j,p,b];break}}else if(y&&(u=e,d=u[B]||(u[B]={}),h=d[u.uniqueID]||(d[u.uniqueID]={}),c=h[t]||[],p=c[0]===j&&c[1],b=p),b===!1)for(;(u=++p&&u&&u[g]||(b=p=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++b||(y&&(d=u[B]||(u[B]={}),h=d[u.uniqueID]||(d[u.uniqueID]={}),h[t]=[j,b]),u!==e)););return b-=o,b===n||b%n===0&&b/n>=0}}},PSEUDO:function(t,i){var o,s=T.pseudos[t]||T.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[B]?s(i):s.length>1?(o=[t,t,"",i],T.setFilters.hasOwnProperty(t.toLowerCase())?n(function(t,e){for(var n,o=s(t,i),r=o.length;r--;)n=tt(t,o[r]),t[n]=!(e[n]=o[r])}):function(t){return s(t,0,o)}):s}},pseudos:{not:n(function(t){var e=[],i=[],o=A(t.replace(at,"$1"));return o[B]?n(function(t,e,i,n){for(var s,r=o(t,null,n,[]),a=t.length;a--;)(s=r[a])&&(t[a]=!(e[a]=s))}):function(t,n,s){return e[0]=t,o(e,null,s,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(bt,xt),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:n(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(bt,xt).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===L},focus:function(t){return t===$.activeElement&&(!$.hasFocus||$.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:c(!1),disabled:c(!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!T.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return ft.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})}},T.pseudos.nth=T.pseudos.eq;for(k in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[k]=a(k);for(k in{submit:!0,reset:!0})T.pseudos[k]=l(k);return u.prototype=T.filters=T.pseudos,T.setFilters=new u,_=e.tokenize=function(t,i){var n,o,s,r,a,l,c,h=U[t+" "];if(h)return i?0:h.slice(0);for(a=t,l=[],c=T.preFilter;a;){n&&!(o=lt.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(s=[])),n=!1,(o=ct.exec(a))&&(n=o.shift(),s.push({value:n,type:o[0].replace(at," ")}),a=a.slice(n.length));for(r in T.filter)!(o=pt[r].exec(a))||c[r]&&!(o=c[r](o))||(n=o.shift(),s.push({value:n,type:r,matches:o}),a=a.slice(n.length));if(!n)break}return i?a.length:a?e.error(t):U(t,l).slice(0)},A=e.compile=function(t,e){var i,n=[],o=[],s=q[t+" "];if(!s){for(e||(e=_(t)),i=e.length;i--;)s=b(e[i]),s[B]?n.push(s):o.push(s);s=q(t,x(o,n)),s.selector=t}return s},E=e.select=function(t,e,i,n){var o,s,r,a,l,c="function"==typeof t&&t,h=!n&&_(t=c.selector||t);if(i=i||[],1===h.length){if(s=h[0]=h[0].slice(0),s.length>2&&"ID"===(r=s[0]).type&&w.getById&&9===e.nodeType&&I&&T.relative[s[1].type]){if(e=(T.find.ID(r.matches[0].replace(bt,xt),e)||[])[0],!e)return i;c&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=pt.needsContext.test(t)?0:s.length;o--&&(r=s[o],!T.relative[a=r.type]);)if((l=T.find[a])&&(n=l(r.matches[0].replace(bt,xt),yt.test(s[0].type)&&d(e.parentNode)||e))){if(s.splice(o,1),t=n.length&&p(s),!t)return Z.apply(i,n),i;break}}return(c||A(t,h))(n,e,!I,i,!e||yt.test(t)&&d(e.parentNode)||e),i},w.sortStable=B.split("").sort(G).join("")===B,w.detectDuplicates=!!D,O(),w.sortDetached=o(function(t){return 1&t.compareDocumentPosition($.createElement("fieldset"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),w.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||s("value",function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||s(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);ut.find=vt,ut.expr=vt.selectors,ut.expr[":"]=ut.expr.pseudos,ut.uniqueSort=ut.unique=vt.uniqueSort,ut.text=vt.getText,ut.isXMLDoc=vt.isXML,ut.contains=vt.contains,ut.escapeSelector=vt.escape;
vendor: 5,519 bytes, line 2
2var yt=function(t,e,i){for(var n=[],o=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&ut(t).is(i))break;n.push(t)}return n},bt=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},xt=ut.expr.match.needsContext,kt=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,wt=/^.[^:#\[\.,]*$/;ut.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?ut.find.matchesSelector(n,t)?[n]:[]:ut.find.matches(t,ut.grep(e,function(t){return 1===t.nodeType}))},ut.fn.extend({find:function(t){var e,i,n=this.length,o=this;if("string"!=typeof t)return this.pushStack(ut(t).filter(function(){for(e=0;e<n;e++)if(ut.contains(o[e],this))return!0}));for(i=this.pushStack([]),e=0;e<n;e++)ut.find(t,o[e],i);return n>1?ut.uniqueSort(i):i},filter:function(t){return this.pushStack(o(this,t||[],!1))},not:function(t){return this.pushStack(o(this,t||[],!0))},is:function(t){return!!o(this,"string"==typeof t&&xt.test(t)?ut(t):t||[],!1).length}});var Tt,Ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,St=ut.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||Tt,"string"==typeof t){if(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Ct.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ut?e[0]:e,ut.merge(this,ut.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:J,!0)),kt.test(n[1])&&ut.isPlainObject(e))for(n in e)ut.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return o=J.getElementById(n[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ut.isFunction(t)?void 0!==i.ready?i.ready(t):t(ut):ut.makeArray(t,this)};St.prototype=ut.fn,Tt=ut(J);var _t=/^(?:parents|prev(?:Until|All))/,At={children:!0,contents:!0,next:!0,prev:!0};ut.fn.extend({has:function(t){var e=ut(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(ut.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,s=[],r="string"!=typeof t&&ut(t);if(!xt.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&ut.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?ut.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?ot.call(ut(t),this[0]):ot.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ut.uniqueSort(ut.merge(this.get(),ut(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ut.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return yt(t,"parentNode")},parentsUntil:function(t,e,i){return yt(t,"parentNode",i)},next:function(t){return s(t,"nextSibling")},prev:function(t){return s(t,"previousSibling")},nextAll:function(t){return yt(t,"nextSibling")},prevAll:function(t){return yt(t,"previousSibling")},nextUntil:function(t,e,i){return yt(t,"nextSibling",i)},prevUntil:function(t,e,i){return yt(t,"previousSibling",i)},siblings:function(t){return bt((t.parentNode||{}).firstChild,t)},children:function(t){return bt(t.firstChild)},contents:function(t){return t.contentDocument||ut.merge([],t.childNodes)}},function(t,e){ut.fn[t]=function(i,n){var o=ut.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=ut.filter(n,o)),this.length>1&&(At[t]||ut.uniqueSort(o),_t.test(t)&&o.reverse()),this.pushStack(o)}});var Et=/\S+/g;ut.Callbacks=function(t){t="string"==typeof t?r(t):ut.extend({},t);var e,i,n,o,s=[],a=[],l=-1,c=function(){for(o=t.once,n=e=!0;a.length;l=-1)for(i=a.shift();++l<s.length;)s[l].apply(i[0],i[1])===!1&&t.stopOnFalse&&(l=s.length,i=!1);t.memory||(i=!1),e=!1,o&&(s=i?[]:"")},h={add:function(){return s&&(i&&!e&&(l=s.length-1,a.push(i)),function n(e){ut.each(e,function(e,i){ut.isFunction(i)?t.unique&&h.has(i)||s.push(i):i&&i.length&&"string"!==ut.type(i)&&n(i)})}(arguments),i&&!e&&c()),this},remove:function(){return ut.each(arguments,function(t,e){for(var i;(i=ut.inArray(e,s,i))>-1;)s.splice(i,1),i<=l&&l--}),this},has:function(t){return t?ut.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return o=a=[],s=i="",this},disabled:function(){return!s},lock:function(){return o=a=[],i||e||(s=i=""),this},locked:function(){return!!o},fireWith:function(t,i){return o||(i=i||[],i=[t,i.slice?i.slice():i],a.push(i),e||c()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},ut.extend({Deferred:function(e){var i=[["notify","progress",ut.Callbacks("memory"),ut.Callbacks("memory"),2],["resolve","done",ut.Callbacks("once memory"),ut.Callbacks("once memory"),0,"resolved"],["reject","fail",ut.Callbacks("once memory"),ut.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(t){return o.then(null,t)},pipe:function(){var t=arguments;return ut.Deferred(function(e){ut.each(i,function(i,n){var o=ut.isFunction(t[n[4]])&&t[n[4]];s[n[1]](function(){var t=o&&o.apply(this,arguments);t&&ut.isFunction(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(e,n,o){function s(e,i,n,o){return function(){var c=this,h=arguments,d=function(){var t,d;if(!(e<r)){if(t=n.apply(c,h),t===i.promise())throw new TypeError("Thenable self
2-resolution");d=t&&("object"==typeof t||"function"==typeof t)&&t.then,ut.isFunction(d)?o?d.call(t,s(r,i,a,o),s(r,i,l,o)):(r++,d.call(t,s(r,i,a,o),s(r,i,l,o),s(r,i,a,i.notifyWith))):(n!==a&&(c=void 0,h=[t]),(o||i.resolveWith)(c,h))}},u=o?d:function(){try{d()}catch(t){ut.Deferred.exceptionHook&&ut.Deferred.exceptionHook(t,u.stackTrace),e+1>=r&&(n!==l&&(c=void 0,h=[t]),i.rejectWith(c,h))}};e?u():(ut.Deferred.getStackHook&&(u.stackTrace=ut.Deferred.getStackHook()),t.setTimeout(u))}}var r=0;return ut.Deferred(function(t){i[0][3].add(s(0,t,ut.isFunction(o)?o:a,t.notifyWith)),i[1][3].add(s(0,t,ut.isFunction(e)?e:a)),i[2][3].add(s(0,t,ut.isFunction(n)?n:l))}).promise()},promise:function(t){return null!=t?ut.extend(t,o):o}},s={};return ut.each(i,function(t,e){var r=e[2],a=e[5];o[e[1]]=r.add,a&&r.add(function(){n=a},i[3-t][2].disable,i[0][2].lock),r.add(e[3].fire),s[e[0]]=function(){return s[e[0]+"With"](this===s?void 0:this,arguments),this},s[e[0]+"With"]=r.fireWith}),o.promise(s),e&&e.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),o=et.call(arguments),s=ut.Deferred(),r=function(t){return function(i){n[t]=this,o[t]=arguments.length>1?et.call(arguments):i,--e||s.resolveWith(n,o)}};if(e<=1&&(c(t,s.done(r(i)).resolve,s.reject),"pending"===s.state()||ut.isFunction(o[i]&&o[i].then)))return s.then();for(;i--;)c(o[i],r(i),s.reject);return s.promise()}});var Pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ut.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&Pt.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},ut.readyException=function(e){t.setTimeout(function(){throw e})};var Mt=ut.Deferred();ut.fn.ready=function(t){return Mt.then(t)["catch"](function(t){ut.readyException(t)}),this},ut.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ut.readyWait++:ut.ready(!0)},ready:function(t){(t===!0?--ut.readyWait:ut.isReady)||(ut.isReady=!0,t!==!0&&--ut.readyWait>0||Mt.resolveWith(J,[ut]))}}),ut.ready.then=Mt.then,"complete"===J.readyState||"loading"!==J.readyState&&!J.documentElement.doScroll?t.setTimeout(ut.ready):(J.addEventListener("DOMContentLoaded",h),t.addEventListener("load",h));var Dt=function(t,e,i,n,o,s,r){var a=0,l=t.length,c=null==i;if("object"===ut.type(i)){o=!0;for(a in i)Dt(t,e,a,i[a],!0,s,r)}else if(void 0!==n&&(o=!0,ut.isFunction(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(ut(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return o?t:c?e.call(t):l?e(t[0],i):s},Ot=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};d.uid=1,d.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Ot(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,o=this.cache(t);if("string"==typeof e)o[ut.camelCase(e)]=i;else for(n in e)o[ut.camelCase(n)]=e[n];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][ut.camelCase(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){ut.isArray(e)?e=e.map(ut.camelCase):(e=ut.camelCase(e),e=e in n?[e]:e.match(Et)||[]),i=e.length;for(;i--;)delete n[e[i]]}
vendor: 4,892 bytes, line 2
2(void 0===e||ut.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!ut.isEmptyObject(e)}};var $t=new d,Lt=new d,It=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Rt=/[A-Z]/g;ut.extend({hasData:function(t){return Lt.hasData(t)||$t.hasData(t)},data:function(t,e,i){return Lt.access(t,e,i)},removeData:function(t,e){Lt.remove(t,e)},_data:function(t,e,i){return $t.access(t,e,i)},_removeData:function(t,e){$t.remove(t,e)}}),ut.fn.extend({data:function(t,e){var i,n,o,s=this[0],r=s&&s.attributes;if(void 0===t){if(this.length&&(o=Lt.get(s),1===s.nodeType&&!$t.get(s,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&(n=r[i].name,0===n.indexOf("data-")&&(n=ut.camelCase(n.slice(5)),u(s,n,o[n])));$t.set(s,"hasDataAttrs",!0)}return o}return"object"==typeof t?this.each(function(){Lt.set(this,t)}):Dt(this,function(e){var i;if(s&&void 0===e){if(i=Lt.get(s,t),void 0!==i)return i;if(i=u(s,t),void 0!==i)return i}else this.each(function(){Lt.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Lt.remove(this,t)})}}),ut.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=$t.get(t,e),i&&(!n||ut.isArray(i)?n=$t.access(t,e,ut.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=ut.queue(t,e),n=i.length,o=i.shift(),s=ut._queueHooks(t,e),r=function(){ut.dequeue(t,e)};"inprogress"===o&&(o=i.shift(),n--),o&&("fx"===e&&i.unshift("inprogress"),delete s.stop,o.call(t,r,s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return $t.get(t,i)||$t.access(t,i,{empty:ut.Callbacks("once memory").add(function(){$t.remove(t,[e+"queue",i])})})}}),ut.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?ut.queue(this[0],t):void 0===e?this:this.each(function(){var i=ut.queue(this,t,e);ut._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&ut.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ut.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,o=ut.Deferred(),s=this,r=this.length,a=function(){--n||o.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)i=$t.get(s[r],t+"queueHooks"),i&&i.empty&&(n++,i.empty.add(a));return a(),o.promise(e)}});var Ft=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Ht=new RegExp("^(?:([+-])=|)("+Ft+")([a-z%]*)$","i"),Nt=["Top","Right","Bottom","Left"],Bt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&ut.contains(t.ownerDocument,t)&&"none"===ut.css(t,"display")},zt=function(t,e,i,n){var o,s,r={};for(s in e)r[s]=t.style[s],t.style[s]=e[s];o=i.apply(t,n||[]);for(s in e)t.style[s]=r[s];return o},jt={};ut.fn.extend({show:function(){return g(this,!0)},hide:function(){return g(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Bt(this)?ut(this).show():ut(this).hide()})}});var Wt=/^(?:checkbox|radio)$/i,Yt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Ut=/^$|\/(?:java|ecma)script/i,qt={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,"",""]};qt.optgroup=qt.option,qt.tbody=qt.tfoot=qt.colgroup=qt.caption=qt.thead,qt.th=qt.td;var Gt=/<|&#?\w+;/;!function(){var t=J.createDocumentFragment(),e=t.appendChild(J.createElement("div")),i=J.createElement("input");i.setAttribute("type","radio"),i.setAttribute("checked","checked"),i.setAttribute("name","t"),e.appendChild(i),ht.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",ht.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var Vt=J.documentElement,Xt=/^key/,Kt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qt=/^([^.]*)(?:\.(.+)|)/;ut.event={global:{},add:function(t,e,i,n,o){var s,r,a,l,c,h,d,u,p,f,g,m=$t.get(t);if(m)for(i.handler&&(s=i,i=s.handler,o=s.selector),o&&ut.find.matchesSelector(Vt,o),i.guid||(i.guid=ut.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(e){return"undefined"!=typeof ut&&ut.event.triggered!==e.type?ut.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(Et)||[""],c=e.length;c--;)a=Qt.exec(e[c])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p&&(d=ut.event.special[p]||{},p=(o?d.delegateType:d.bindType)||p,d=ut.event.special[p]||{},h=ut.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:o,needsContext:o&&ut.expr.match.needsContext.test(o),namespace:f.join(".")},s),(u=l[p])||(u=l[p]=[],u.delegateCount=0,d.setup&&d.setup.call(t,n,f,r)!==!1||t.addEventListener&&t.addEventListener(p,r)),d.add&&(d.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),o?u.splice(u.delegateCount++,0,h):u.push(h),ut.event.global[p]=!0)}
vendor: 4,374 bytes, line 2
2,remove:function(t,e,i,n,o){var s,r,a,l,c,h,d,u,p,f,g,m=$t.hasData(t)&&$t.get(t);if(m&&(l=m.events)){for(e=(e||"").match(Et)||[""],c=e.length;c--;)if(a=Qt.exec(e[c])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p){for(d=ut.event.special[p]||{},p=(n?d.delegateType:d.bindType)||p,u=l[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=u.length;s--;)h=u[s],!o&&g!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(u.splice(s,1),h.selector&&u.delegateCount--,d.remove&&d.remove.call(t,h));r&&!u.length&&(d.teardown&&d.teardown.call(t,f,m.handle)!==!1||ut.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)ut.event.remove(t,p+e[c],i,n,!0);ut.isEmptyObject(l)&&$t.remove(t,"handle events")}},dispatch:function(t){var e,i,n,o,s,r,a=ut.event.fix(t),l=new Array(arguments.length),c=($t.get(this,"events")||{})[a.type]||[],h=ut.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!h.preDispatch||h.preDispatch.call(this,a)!==!1){for(r=ut.event.handlers.call(this,a,c),e=0;(o=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,i=0;(s=o.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,n=((ut.event.special[s.origType]||{}).handle||s.handler).apply(o.elem,l),void 0!==n&&(a.result=n)===!1&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,o,s,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(n=[],i=0;i<a;i++)s=e[i],o=s.selector+" ",void 0===n[o]&&(n[o]=s.needsContext?ut(o,this).index(l)>-1:ut.find(o,this,null,[l]).length),n[o]&&n.push(s);n.length&&r.push({elem:l,handlers:n})}return a<e.length&&r.push({elem:this,handlers:e.slice(a)}),r},addProp:function(t,e){Object.defineProperty(ut.Event.prototype,t,{enumerable:!0,configurable:!0,get:ut.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[ut.expando]?t:new ut.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==k()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===k()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&ut.nodeName(this,"input"))return this.click(),!1},_default:function(t){return ut.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},ut.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},ut.Event=function(t,e){return this instanceof ut.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?b:x,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&ut.extend(this,e),this.timeStamp=t&&t.timeStamp||ut.now(),void(this[ut.expando]=!0)):new ut.Event(t,e)},ut.Event.prototype={constructor:ut.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=b,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=b,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=b,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},ut.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;
vendor: 5,351 bytes, line 2
2return null==t.which&&Xt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&Kt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},ut.event.addProp),ut.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ut.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=this,o=t.relatedTarget,s=t.handleObj;return o&&(o===n||ut.contains(n,o))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}}),ut.fn.extend({on:function(t,e,i,n){return w(this,t,e,i,n)},one:function(t,e,i,n){return w(this,t,e,i,n,1)},off:function(t,e,i){var n,o;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,ut(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=x),this.each(function(){ut.event.remove(this,t,i,e)})}});var Zt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Jt=/<script|<style|<link/i,te=/checked\s*(?:[^=]|=\s*.checked.)/i,ee=/^true\/(.*)/,ie=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;ut.extend({htmlPrefilter:function(t){return t.replace(Zt,"<$1></$2>")},clone:function(t,e,i){var n,o,s,r,a=t.cloneNode(!0),l=ut.contains(t.ownerDocument,t);if(!(ht.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ut.isXMLDoc(t)))for(r=m(a),s=m(t),n=0,o=s.length;n<o;n++)A(s[n],r[n]);if(e)if(i)for(s=s||m(t),r=r||m(a),n=0,o=s.length;n<o;n++)_(s[n],r[n]);else _(t,a);return r=m(a,"script"),r.length>0&&v(r,!l&&m(t,"script")),a},cleanData:function(t){for(var e,i,n,o=ut.event.special,s=0;void 0!==(i=t[s]);s++)if(Ot(i)){if(e=i[$t.expando]){if(e.events)for(n in e.events)o[n]?ut.event.remove(i,n):ut.removeEvent(i,n,e.handle);i[$t.expando]=void 0}i[Lt.expando]&&(i[Lt.expando]=void 0)}}}),ut.fn.extend({detach:function(t){return P(this,t,!0)},remove:function(t){return P(this,t)},text:function(t){return Dt(this,function(t){return void 0===t?ut.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 E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=T(this,t);e.appendChild(t)}})},prepend:function(){return E(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=T(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return E(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(ut.cleanData(m(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return ut.clone(this,t,e)})},html:function(t){return Dt(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&&!Jt.test(t)&&!qt[(Yt.exec(t)||["",""])[1].toLowerCase()]){t=ut.htmlPrefilter(t);try{for(;i<n;i++)e=this[i]||{},1===e.nodeType&&(ut.cleanData(m(e,!1)),e.innerHTML=t);e=0}catch(o){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return E(this,arguments,function(e){var i=this.parentNode;ut.inArray(this,t)<0&&(ut.cleanData(m(this)),i&&i.replaceChild(e,this))},t)}}),ut.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ut.fn[t]=function(t){for(var i,n=[],o=ut(t),s=o.length-1,r=0;r<=s;r++)i=r===s?this:this.clone(!0),ut(o[r])[e](i),nt.apply(n,i.get());return this.pushStack(n)}});var ne=/^margin/,oe=new RegExp("^("+Ft+")(?!px)[a-z%]+$","i"),se=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)};!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",Vt.appendChild(r);var e=t.getComputedStyle(a);i="1%"!==e.top,s="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",o="4px"===e.marginRight,Vt.removeChild(r),a=null}}var i,n,o,s,r=J.createElement("div"),a=J.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",ht.clearCloneStyle="content-box"===a.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(a),ut.extend(ht,{pixelPosition:function(){return e(),i},boxSizingReliable:function(){return e(),n},pixelMarginRight:function(){return e(),o},reliableMarginLeft:function(){return e(),s}}))}();var re=/^(none|table(?!-c[ea]).+)/,ae={position:"absolute",visibility:"hidden",display:"block"},le={letterSpacing:"0",fontWeight:"400"},ce=["Webkit","Moz","ms"],he=J.createElement("div").style;ut.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=M(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"}
vendor: 4,191 bytes, lines 2-3
2,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,r,a=ut.camelCase(e),l=t.style;return e=ut.cssProps[a]||(ut.cssProps[a]=O(a)||a),r=ut.cssHooks[e]||ut.cssHooks[a],void 0===i?r&&"get"in r&&void 0!==(o=r.get(t,!1,n))?o:l[e]:(s=typeof i,"string"===s&&(o=Ht.exec(i))&&o[1]&&(i=p(t,e,o),s="number"),void(null!=i&&i===i&&("number"===s&&(i+=o&&o[3]||(ut.cssNumber[a]?"":"px")),ht.clearCloneStyle||""!==i||0!==e.indexOf("background")||(l[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l[e]=i))))}},css:function(t,e,i,n){var o,s,r,a=ut.camelCase(e);return e=ut.cssProps[a]||(ut.cssProps[a]=O(a)||a),r=ut.cssHooks[e]||ut.cssHooks[a],r&&"get"in r&&(o=r.get(t,!0,i)),void 0===o&&(o=M(t,e,n)),"normal"===o&&e in le&&(o=le[e]),""===i||i?(s=parseFloat(o),i===!0||isFinite(s)?s||0:o):o}}),ut.each(["height","width"],function(t,e){ut.cssHooks[e]={get:function(t,i,n){if(i)return!re.test(ut.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?I(t,e,n):zt(t,ae,function(){return I(t,e,n)})},set:function(t,i,n){var o,s=n&&se(t),r=n&&L(t,e,n,"border-box"===ut.css(t,"boxSizing",!1,s),s);return r&&(o=Ht.exec(i))&&"px"!==(o[3]||"px")&&(t.style[e]=i,i=ut.css(t,e)),$(t,i,r)}}}),ut.cssHooks.marginLeft=D(ht.reliableMarginLeft,function(t,e){if(e)return(parseFloat(M(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),ut.each({margin:"",padding:"",border:"Width"},function(t,e){ut.cssHooks[t+e]={expand:function(i){for(var n=0,o={},s="string"==typeof i?i.split(" "):[i];n<4;n++)o[t+Nt[n]+e]=s[n]||s[n-2]||s[0];return o}},ne.test(t)||(ut.cssHooks[t+e].set=$)}),ut.fn.extend({css:function(t,e){return Dt(this,function(t,e,i){var n,o,s={},r=0;if(ut.isArray(e)){for(n=se(t),o=e.length;r<o;r++)s[e[r]]=ut.css(t,e[r],!1,n);return s}return void 0!==i?ut.style(t,e,i):ut.css(t,e)},t,e,arguments.length>1)}}),ut.Tween=R,R.prototype={constructor:R,init:function(t,e,i,n,o,s){this.elem=t,this.prop=i,this.easing=o||ut.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(ut.cssNumber[i]?"":"px")},cur:function(){var t=R.propHooks[this.prop];return t&&t.get?t.get(this):R.propHooks._default.get(this)},run:function(t){var e,i=R.propHooks[this.prop];return this.options.duration?this.pos=e=ut.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):R.propHooks._default.set(this),this}},R.prototype.init.prototype=R.prototype,R.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=ut.css(t.elem,t.prop,""),
3e&&"auto"!==e?e:0)},set:function(t){ut.fx.step[t.prop]?ut.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[ut.cssProps[t.prop]]&&!ut.cssHooks[t.prop]?t.elem[t.prop]=t.now:ut.style(t.elem,t.prop,t.now+t.unit)}}},R.propHooks.scrollTop=R.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ut.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},ut.fx=R.prototype.init,ut.fx.step={};var de,ue,pe=/^(?:toggle|show|hide)$/,fe=/queueHooks$/;ut.Animation=ut.extend(W,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return p(i.elem,t,Ht.exec(e),i),i}]},tweener:function(t,e){ut.isFunction(t)?(e=t,t=["*"]):t=t.match(Et);for(var i,n=0,o=t.length;n<o;n++)i=t[n],W.tweeners[i]=W.tweeners[i]||[],W.tweeners[i].unshift(e)},prefilters:[z],prefilter:function(t,e){e?W.prefilters.unshift(t):W.prefilters.push(t)}}),ut.speed=function(t,e,i){var n=t&&"object"==typeof t?ut.extend({},t):{complete:i||!i&&e||ut.isFunction(t)&&t,duration:t,easing:i&&e||e&&!ut.isFunction(e)&&e};return ut.fx.off||J.hidden?n.duration=0:n.duration="number"==typeof n.duration?n.duration:n.duration in ut.fx.speeds?ut.fx.speeds[n.duration]:ut.fx.speeds._default,null!=n.queue&&n.queue!==!0||(n.queue="fx"),n.old=n.complete,n.complete=function(){ut.isFunction(n.old)&&n.old.call(this),n.queue&&ut.dequeue(this,n.queue)},n}
vendor: 4,244 bytes, line 3
3,ut.fn.extend({fadeTo:function(t,e,i,n){return this.filter(Bt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var o=ut.isEmptyObject(t),s=ut.speed(e,i,n),r=function(){var e=W(this,ut.extend({},t),s);(o||$t.get(this,"finish"))&&e.stop(!0)};return r.finish=r,o||s.queue===!1?this.each(r):this.queue(s.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,o=null!=t&&t+"queueHooks",s=ut.timers,r=$t.get(this);if(o)r[o]&&r[o].stop&&n(r[o]);else for(o in r)r[o]&&r[o].stop&&fe.test(o)&&n(r[o]);for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(i),e=!1,s.splice(o,1));!e&&i||ut.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,i=$t.get(this),n=i[t+"queue"],o=i[t+"queueHooks"],s=ut.timers,r=n?n.length:0;for(i.finish=!0,ut.queue(this,t,[]),o&&o.stop&&o.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish})}}),ut.each(["toggle","show","hide"],function(t,e){var i=ut.fn[e];ut.fn[e]=function(t,n,o){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(N(e,!0),t,n,o)}}),ut.each({slideDown:N("show"),slideUp:N("hide"),slideToggle:N("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ut.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}}),ut.timers=[],ut.fx.tick=function(){var t,e=0,i=ut.timers;for(de=ut.now();e<i.length;e++)t=i[e],t()||i[e]!==t||i.splice(e--,1);i.length||ut.fx.stop(),de=void 0},ut.fx.timer=function(t){ut.timers.push(t),t()?ut.fx.start():ut.timers.pop()},ut.fx.interval=13,ut.fx.start=function(){ue||(ue=t.requestAnimationFrame?t.requestAnimationFrame(F):t.setInterval(ut.fx.tick,ut.fx.interval))},ut.fx.stop=function(){t.cancelAnimationFrame?t.cancelAnimationFrame(ue):t.clearInterval(ue),ue=null},ut.fx.speeds={slow:600,fast:200,_default:400},ut.fn.delay=function(e,i){return e=ut.fx?ut.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(i,n){var o=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(o)}})},function(){var t=J.createElement("input"),e=J.createElement("select"),i=e.appendChild(J.createElement("option"));t.type="checkbox",ht.checkOn=""!==t.value,ht.optSelected=i.selected,t=J.createElement("input"),t.value="t",t.type="radio",ht.radioValue="t"===t.value}();var ge,me=ut.expr.attrHandle;ut.fn.extend({attr:function(t,e){return Dt(this,ut.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ut.removeAttr(this,t)})}}),ut.extend({attr:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof t.getAttribute?ut.prop(t,e,i):(1===s&&ut.isXMLDoc(t)||(o=ut.attrHooks[e.toLowerCase()]||(ut.expr.match.bool.test(e)?ge:void 0)),void 0!==i?null===i?void ut.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:(n=ut.find.attr(t,e),null==n?void 0:n))},attrHooks:{type:{set:function(t,e){if(!ht.radioValue&&"radio"===e&&ut.nodeName(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(Et);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),ge={set:function(t,e,i){return e===!1?ut.removeAttr(t,i):t.setAttribute(i,i),i}},ut.each(ut.expr.match.bool.source.match(/\w+/g),function(t,e){var i=me[e]||ut.find.attr;me[e]=function(t,e,n){var o,s,r=e.toLowerCase();return n||(s=me[r],me[r]=o,o=null!=i(t,e,n)?r:null,me[r]=s),o}});var ve=/^(?:input|select|textarea|button)$/i,ye=/^(?:a|area)$/i;ut.fn.extend({prop:function(t,e){return Dt(this,ut.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[ut.propFix[t]||t]})}}),ut.extend({prop:function(t,e,i){var n,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&ut.isXMLDoc(t)||(e=ut.propFix[e]||e,o=ut.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=ut.find.attr(t,"tabindex");
vendor: 4,183 bytes, line 3
3return e?parseInt(e,10):ve.test(t.nodeName)||ye.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ht.optSelected||(ut.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),ut.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ut.propFix[this.toLowerCase()]=this});var be=/[\t\r\n\f]/g;ut.fn.extend({addClass:function(t){var e,i,n,o,s,r,a,l=0;if(ut.isFunction(t))return this.each(function(e){ut(this).addClass(t.call(this,e,Y(this)))});if("string"==typeof t&&t)for(e=t.match(Et)||[];i=this[l++];)if(o=Y(i),n=1===i.nodeType&&(" "+o+" ").replace(be," ")){for(r=0;s=e[r++];)n.indexOf(" "+s+" ")<0&&(n+=s+" ");a=ut.trim(n),o!==a&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,o,s,r,a,l=0;if(ut.isFunction(t))return this.each(function(e){ut(this).removeClass(t.call(this,e,Y(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(Et)||[];i=this[l++];)if(o=Y(i),n=1===i.nodeType&&(" "+o+" ").replace(be," ")){for(r=0;s=e[r++];)for(;n.indexOf(" "+s+" ")>-1;)n=n.replace(" "+s+" "," ");a=ut.trim(n),o!==a&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):ut.isFunction(t)?this.each(function(i){ut(this).toggleClass(t.call(this,i,Y(this),e),e)}):this.each(function(){var e,n,o,s;if("string"===i)for(n=0,o=ut(this),s=t.match(Et)||[];e=s[n++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||(e=Y(this),e&&$t.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||t===!1?"":$t.get(this,"__className__")||""))})},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+Y(i)+" ").replace(be," ").indexOf(e)>-1)return!0;return!1}});var xe=/\r/g,ke=/[\x20\t\r\n\f]+/g;ut.fn.extend({val:function(t){var e,i,n,o=this[0];return arguments.length?(n=ut.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(o=n?t.call(this,i,ut(this).val()):t,null==o?o="":"number"==typeof o?o+="":ut.isArray(o)&&(o=ut.map(o,function(t){return null==t?"":t+""})),e=ut.valHooks[this.type]||ut.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))})):o?(e=ut.valHooks[o.type]||ut.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(o,"value"))?i:(i=o.value,"string"==typeof i?i.replace(xe,""):null==i?"":i)):void 0}}),ut.extend({valHooks:{option:{get:function(t){var e=ut.find.attr(t,"value");return null!=e?e:ut.trim(ut.text(t)).replace(ke," ")}},select:{get:function(t){for(var e,i,n=t.options,o=t.selectedIndex,s="select-one"===t.type,r=s?null:[],a=s?o+1:n.length,l=o<0?a:s?o:0;l<a;l++)if(i=n[l],(i.selected||l===o)&&!i.disabled&&(!i.parentNode.disabled||!ut.nodeName(i.parentNode,"optgroup"))){if(e=ut(i).val(),s)return e;r.push(e)}return r},set:function(t,e){for(var i,n,o=t.options,s=ut.makeArray(e),r=o.length;r--;)n=o[r],(n.selected=ut.inArray(ut.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),ut.each(["radio","checkbox"],function(){ut.valHooks[this]={set:function(t,e){if(ut.isArray(e))return t.checked=ut.inArray(ut(t).val(),e)>-1}},ht.checkOn||(ut.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var we=/^(?:focusinfocus|focusoutblur)$/;ut.extend(ut.event,{trigger:function(e,i,n,o){var s,r,a,l,c,h,d,u=[n||J],p=at.call(e,"type")?e.type:e,f=at.call(e,"namespace")?e.namespace.split("."):[];if(r=a=n=n||J,3!==n.nodeType&&8!==n.nodeType&&!we.test(p+ut.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),c=p.indexOf(":")<0&&"on"+p,e=e[ut.expando]?e:new ut.Event(p,"object"==typeof e&&e),e.isTrigger=o?2:3,e.namespace=f.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:ut.makeArray(i,[e]),d=ut.event.special[p]||{}
vendor: 10,957 bytes, line 3
3,o||!d.trigger||d.trigger.apply(n,i)!==!1)){if(!o&&!d.noBubble&&!ut.isWindow(n)){for(l=d.delegateType||p,we.test(l+p)||(r=r.parentNode);r;r=r.parentNode)u.push(r),a=r;a===(n.ownerDocument||J)&&u.push(a.defaultView||a.parentWindow||t)}for(s=0;(r=u[s++])&&!e.isPropagationStopped();)e.type=s>1?l:d.bindType||p,h=($t.get(r,"events")||{})[e.type]&&$t.get(r,"handle"),h&&h.apply(r,i),h=c&&r[c],h&&h.apply&&Ot(r)&&(e.result=h.apply(r,i),e.result===!1&&e.preventDefault());return e.type=p,o||e.isDefaultPrevented()||d._default&&d._default.apply(u.pop(),i)!==!1||!Ot(n)||c&&ut.isFunction(n[p])&&!ut.isWindow(n)&&(a=n[c],a&&(n[c]=null),ut.event.triggered=p,n[p](),ut.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(t,e,i){var n=ut.extend(new ut.Event,i,{type:t,isSimulated:!0});ut.event.trigger(n,null,e)}}),ut.fn.extend({trigger:function(t,e){return this.each(function(){ut.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];if(i)return ut.event.trigger(t,e,i,!0)}}),ut.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){ut.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}),ut.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),ht.focusin="onfocusin"in t,ht.focusin||ut.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){ut.event.simulate(e,t.target,ut.event.fix(t))};ut.event.special[e]={setup:function(){var n=this.ownerDocument||this,o=$t.access(n,e);o||n.addEventListener(t,i,!0),$t.access(n,e,(o||0)+1)},teardown:function(){var n=this.ownerDocument||this,o=$t.access(n,e)-1;o?$t.access(n,e,o):(n.removeEventListener(t,i,!0),$t.remove(n,e))}}});var Te=t.location,Ce=ut.now(),Se=/\?/;ut.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(n){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||ut.error("Invalid XML: "+e),i};var _e=/\[\]$/,Ae=/\r?\n/g,Ee=/^(?:submit|button|image|reset|file)$/i,Pe=/^(?:input|select|textarea|keygen)/i;ut.param=function(t,e){var i,n=[],o=function(t,e){var i=ut.isFunction(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(ut.isArray(t)||t.jquery&&!ut.isPlainObject(t))ut.each(t,function(){o(this.name,this.value)});else for(i in t)U(i,t[i],e,o);return n.join("&")},ut.fn.extend({serialize:function(){return ut.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ut.prop(this,"elements");return t?ut.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ut(this).is(":disabled")&&Pe.test(this.nodeName)&&!Ee.test(t)&&(this.checked||!Wt.test(t))}).map(function(t,e){var i=ut(this).val();return null==i?null:ut.isArray(i)?ut.map(i,function(t){return{name:e.name,value:t.replace(Ae,"\r\n")}}):{name:e.name,value:i.replace(Ae,"\r\n")}}).get()}});var Me=/%20/g,De=/#.*$/,Oe=/([?&])_=[^&]*/,$e=/^(.*?):[ \t]*([^\r\n]*)$/gm,Le=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ie=/^(?:GET|HEAD)$/,Re=/^\/\//,Fe={},He={},Ne="*/".concat("*"),Be=J.createElement("a");Be.href=Te.href,ut.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Te.href,type:"GET",isLocal:Le.test(Te.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":ut.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?V(V(t,ut.ajaxSettings),e):V(ut.ajaxSettings,t)},ajaxPrefilter:q(Fe),ajaxTransport:q(He),ajax:function(e,i){function n(e,i,n,a){var c,u,p,x,k,w=i;h||(h=!0,l&&t.clearTimeout(l),o=void 0,r=a||"",T.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(x=X(f,T,n)),x=K(f,x,T,c),c?(f.ifModified&&(k=T.getResponseHeader("Last-Modified"),k&&(ut.lastModified[s]=k),k=T.getResponseHeader("etag"),k&&(ut.etag[s]=k)),204===e||"HEAD"===f.type?w="nocontent":304===e?w="notmodified":(w=x.state,u=x.data,p=x.error,c=!p)):(p=w,!e&&w||(w="error",e<0&&(e=0))),T.status=e,T.statusText=(i||w)+"",c?v.resolveWith(g,[u,w,T]):v.rejectWith(g,[T,w,p]),T.statusCode(b),b=void 0,d&&m.trigger(c?"ajaxSuccess":"ajaxError",[T,f,c?u:p]),y.fireWith(g,[T,w]),d&&(m.trigger("ajaxComplete",[T,f]),--ut.active||ut.event.trigger("ajaxStop")))}"object"==typeof e&&(i=e,e=void 0),i=i||{};var o,s,r,a,l,c,h,d,u,p,f=ut.ajaxSetup({},i),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?ut(g):ut.event,v=ut.Deferred(),y=ut.Callbacks("once memory"),b=f.statusCode||{},x={},k={},w="canceled",T={readyState:0,getResponseHeader:function(t){var e;if(h){if(!a)for(a={};e=$e.exec(r);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return h?r:null},setRequestHeader:function(t,e){return null==h&&(t=k[t.toLowerCase()]=k[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)T.always(t[T.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||w;return o&&o.abort(e),n(0,e),this}};if(v.promise(T),f.url=((e||f.url||Te.href)+"").replace(Re,Te.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Et)||[""],null==f.crossDomain){c=J.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Be.protocol+"//"+Be.host!=c.protocol+"//"+c.host}catch(C){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ut.param(f.data,f.traditional)),G(Fe,f,i,T),h)return T;d=ut.event&&f.global,d&&0===ut.active++&&ut.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ie.test(f.type),s=f.url.replace(De,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Me,"+")):(p=f.url.slice(s.length),f.data&&(s+=(Se.test(s)?"&":"?")+f.data,delete f.data),f.cache===!1&&(s=s.replace(Oe,""),p=(Se.test(s)?"&":"?")+"_="+Ce++ +p),f.url=s+p),f.ifModified&&(ut.lastModified[s]&&T.setRequestHeader("If-Modified-Since",ut.lastModified[s]),ut.etag[s]&&T.setRequestHeader("If-None-Match",ut.etag[s])),(f.data&&f.hasContent&&f.contentType!==!1||i.contentType)&&T.setRequestHeader("Content-Type",f.contentType),T.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ne+"; q=0.01":""):f.accepts["*"]);for(u in f.headers)T.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(f.beforeSend.call(g,T,f)===!1||h))return T.abort();if(w="abort",y.add(f.complete),T.done(f.success),T.fail(f.error),o=G(He,f,i,T)){if(T.readyState=1,d&&m.trigger("ajaxSend",[T,f]),h)return T;f.async&&f.timeout>0&&(l=t.setTimeout(function(){T.abort("timeout")},f.timeout));try{h=!1,o.send(x,n)}catch(C){if(h)throw C;n(-1,C)}}else n(-1,"No Transport");return T},getJSON:function(t,e,i){return ut.get(t,e,i,"json")},getScript:function(t,e){return ut.get(t,void 0,e,"script")}}),ut.each(["get","post"],function(t,e){ut[e]=function(t,i,n,o){return ut.isFunction(i)&&(o=o||n,n=i,i=void 0),ut.ajax(ut.extend({url:t,type:e,dataType:o,data:i,success:n},ut.isPlainObject(t)&&t))}}),ut._evalUrl=function(t){return ut.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},ut.fn.extend({wrapAll:function(t){var e;return this[0]&&(ut.isFunction(t)&&(t=t.call(this[0])),e=ut(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 ut.isFunction(t)?this.each(function(e){ut(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ut(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=ut.isFunction(t);return this.each(function(i){ut(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){ut(this).replaceWith(this.childNodes)}),this}}),ut.expr.pseudos.hidden=function(t){return!ut.expr.pseudos.visible(t)},ut.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},ut.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var ze={0:200,1223:204},je=ut.ajaxSettings.xhr();ht.cors=!!je&&"withCredentials"in je,ht.ajax=je=!!je,ut.ajaxTransport(function(e){var i,n;if(ht.cors||je&&!e.crossDomain)return{send:function(o,s){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest");for(r in o)a.setRequestHeader(r,o[r]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(ze[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout(function(){i&&n()})},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(l){if(i)throw l}},abort:function(){i&&i()}}}),ut.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),ut.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return ut.globalEval(t),t}}}),ut.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),ut.ajaxTransport("script",function(t){if(t.crossDomain){var e,i;return{send:function(n,o){e=ut("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),J.head.appendChild(e[0])},abort:function(){i&&i()}}}});var We=[],Ye=/(=)\?(?=&|$)|\?\?/;ut.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=We.pop()||ut.expando+"_"+Ce++;return this[t]=!0,t}}),ut.ajaxPrefilter("json jsonp",function(e,i,n){var o,s,r,a=e.jsonp!==!1&&(Ye.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ye.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=ut.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ye,"$1"+
vendor: 4,077 bytes, line 3
3o):e.jsonp!==!1&&(e.url+=(Se.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return r||ut.error(o+" was not called"),r[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){r=arguments},n.always(function(){void 0===s?ut(t).removeProp(o):t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,We.push(o)),r&&ut.isFunction(s)&&s(r[0]),r=s=void 0}),"script"}),ht.createHTMLDocument=function(){var t=J.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),ut.parseHTML=function(t,e,i){if("string"!=typeof t)return[];"boolean"==typeof e&&(i=e,e=!1);var n,o,s;return e||(ht.createHTMLDocument?(e=J.implementation.createHTMLDocument(""),n=e.createElement("base"),n.href=J.location.href,e.head.appendChild(n)):e=J),o=kt.exec(t),s=!i&&[],o?[e.createElement(o[1])]:(o=y([t],e,s),s&&s.length&&ut(s).remove(),ut.merge([],o.childNodes))},ut.fn.load=function(t,e,i){var n,o,s,r=this,a=t.indexOf(" ");return a>-1&&(n=ut.trim(t.slice(a)),t=t.slice(0,a)),ut.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(o="POST"),r.length>0&&ut.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){s=arguments,r.html(n?ut("<div>").append(ut.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,s||[t.responseText,e,t])})}),this},ut.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ut.fn[e]=function(t){return this.on(e,t)}}),ut.expr.pseudos.animated=function(t){return ut.grep(ut.timers,function(e){return t===e.elem}).length},ut.offset={setOffset:function(t,e,i){var n,o,s,r,a,l,c,h=ut.css(t,"position"),d=ut(t),u={};"static"===h&&(t.style.position="relative"),a=d.offset(),s=ut.css(t,"top"),l=ut.css(t,"left"),c=("absolute"===h||"fixed"===h)&&(s+l).indexOf("auto")>-1,c?(n=d.position(),r=n.top,o=n.left):(r=parseFloat(s)||0,o=parseFloat(l)||0),ut.isFunction(e)&&(e=e.call(t,i,ut.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+o),"using"in e?e.using.call(t,u):d.css(u)}},ut.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ut.offset.setOffset(this,t,e)});var e,i,n,o,s=this[0];return s?s.getClientRects().length?(n=s.getBoundingClientRect(),n.width||n.height?(o=s.ownerDocument,i=Q(o),e=o.documentElement,{top:n.top+i.pageYOffset-e.clientTop,left:n.left+i.pageXOffset-e.clientLeft}):n):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===ut.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ut.nodeName(t[0],"html")||(n=t.offset()),n={top:n.top+ut.css(t[0],"borderTopWidth",!0),left:n.left+ut.css(t[0],"borderLeftWidth",!0)}),{top:e.top-n.top-ut.css(i,"marginTop",!0),left:e.left-n.left-ut.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===ut.css(t,"position");)t=t.offsetParent;return t||Vt})}}),ut.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i="pageYOffset"===e;ut.fn[t]=function(n){return Dt(this,function(t,n,o){var s=Q(t);return void 0===o?s?s[e]:t[n]:void(s?s.scrollTo(i?s.pageXOffset:o,i?o:s.pageYOffset):t[n]=o)},t,n,arguments.length)}}),ut.each(["top","left"],function(t,e){ut.cssHooks[e]=D(ht.pixelPosition,function(t,i){if(i)return i=M(t,e),oe.test(i)?ut(t).position()[e]+"px":i})}),ut.each({Height:"height",Width:"width"},function(t,e){ut.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,n){ut.fn[n]=function(o,s){var r=arguments.length&&(i||"boolean"!=typeof o),a=i||(o===!0||s===!0?"margin":"border");return Dt(this,function(e,i,o){var s;return ut.isWindow(e)?0===n.indexOf("outer")?e["inner"+t]: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===o?ut.css(e,i,a):ut.style(e,i,o,a)},e,r?o:void 0,r)}})}),ut.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)}
vendor: 10,744 bytes, lines 3-4
3,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)}}),ut.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ut});var Ue=t.jQuery,qe=t.$;return ut.noConflict=function(e){return t.$===ut&&(t.$=qe),e&&t.jQuery===ut&&(t.jQuery=Ue),ut},e||(t.jQuery=t.$=ut),ut}),+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 o=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(o,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.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),o=i.data("bs.alert");o||i.data("bs.alert",o=new n(this)),"string"==typeof e&&o[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.2.0",n.prototype.close=function(e){function i(){s.detach().trigger("closed.bs.alert").remove()}var n=t(this),o=n.attr("data-target");o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var s=t(o);e&&e.preventDefault(),s.length||(s=n.hasClass("alert")?n:n.parent()),s.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(s.removeClass("in"),t.support.transition&&s.hasClass("fade")?s.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var o=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=o,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),o=n.data("bs.button"),s="object"==typeof e&&e;o||n.data("bs.button",o=new i(this,s)),"toggle"==e?o.toggle():e&&o.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",s=n.data();e+="Text",null==s.resetText&&n.data("resetText",n[o]()),n[o](null==s[e]?this.options[e]:s[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},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")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&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);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),i.preventDefault()})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.carousel"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),r="string"==typeof e?e:s.slide;o||n.data("bs.carousel",o=new i(this,s)),"number"==typeof e?o.to(e):r?o[r]():s.interval&&o.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){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.to=function(e){var i=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",t(this.$items[e]))},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,i){var n=this.$element.find(".item.active"),o=i||n[e](),s=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[a]()}if(o.hasClass("active"))return this.sliding=!1;var c=o[0],h=t.Event("slide.bs.carousel",{relatedTarget:c,direction:r});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,s&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var u=t.Event("slid.bs.carousel",{relatedTarget:c,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,n.addClass(r),o.addClass(r),n.one("bsTransitionEnd",function(){o.removeClass([e,r].join(" ")).addClass("active"),n.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(u)},0)}).emulateTransitionEnd(1e3*n.css("transition-duration").slice(0,-1))):(n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(u)),s&&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},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var n,o=t(this),s=t(o.attr("data-target")||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(s.hasClass("carousel")){var r=t.extend({},s.data(),o.data()),a=o.attr("data-slide-to");a&&(r.interval=!1),e.call(s,r),a&&s.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){
4"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.collapse"),s=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e);!o&&s.toggle&&"show"==e&&(e=!e),o||n.data("bs.collapse",o=new i(this,s)),"string"==typeof e&&o[e]()})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var n=this.$parent&&this.$parent.find("> .panel > .in");if(n&&n.length){var o=n.data("bs.collapse");if(o&&o.transitioning)return;e.call(n,"hide"),o||n.data("bs.collapse",null)}var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var a=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[s](this.$element[0][a])}}},i.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").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(n,this)).emulateTransitionEnd(350):n.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var n=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=n,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var n,o=t(this),s=o.attr("data-target")||i.preventDefault()||(n=o.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=t(s),a=r.data("bs.collapse"),l=a?"toggle":o.data(),c=o.attr("data-parent"),h=c&&t(c);a&&a.transitioning||(h&&h.find('[data-toggle="collapse"][data-parent="'+c+'"]').not(o).addClass("collapsed"),o[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(o).remove(),t(s).each(function(){var n=i(t(this)),o={relatedTarget:this};n.hasClass("open")&&(n.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||n.removeClass("open").trigger("hidden.bs.dropdown",o))}))}function i(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 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 o=".dropdown-backdrop",s='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!s.closest(".
4navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(s.trigger(n=t.Event("show.bs.dropdown",a)),n.isDefaultPrevented())return;o.trigger("focus"),s.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var n=t(this);if(e.preventDefault(),e.stopPropagation(),!n.is(".disabled, :disabled")){var o=i(n),r=o.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&o.find(s).trigger("focus"),n.trigger("click");var a=" li:not(.divider):visible a",l=o.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var c=l.index(l.filter(":focus"));38==e.keyCode&&c>0&&c--,40==e.keyCode&&c<l.length-1&&c++,~c||(c=0),l.eq(c).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",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",s,r.prototype.toggle).on("keydown.bs.dropdown.data-api",s+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e,n){return this.each(function(){var o=t(this),s=o.data("bs.modal"),r=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e);s||o.data("bs.modal",s=new i(this,r)),"string"==typeof e?s[e](n):r.show&&s.show(n)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,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.2.0",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 i=this,n=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var n=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),n&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:e});n?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(300):i.$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.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){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("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&n;if(this.$backdrop=t('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;o?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var s=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",s).emulateTransitionEnd(150):s()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},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),o=n.attr("href"),s=t(n.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),r=s.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},s.data(),n.data());n.is("a")&&i.preventDefault(),s.one("show.bs.modal",function(t){t.isDefaultPrevented()||s.one("hidden.bs.modal",function(){n.is(":visible")&&n.trigger("focus")})}),e.call(s,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.tooltip"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.tooltip",o=new i(this,s)),"string"==typeof e&&o[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",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){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s];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,621 bytes, line 4
4return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),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.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),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 i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var n=this,o=this.tip(),s=this.getUID(this.type);this.setContent(),o.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element);var c=this.getPosition(),h=o[0].offsetWidth,d=o[0].offsetHeight;if(l){var u=r,p=this.$element.parent(),f=this.getPosition(p);r="bottom"==r&&c.top+c.height+d-f.scroll>f.height?"top":"top"==r&&c.top-f.scroll-d<0?"bottom":"right"==r&&c.right+h>f.width?"left":"left"==r&&c.left-h<f.left?"right":r,o.removeClass(u).addClass(r)}var g=this.getCalculatedOffset(r,c,h,d);this.applyPlacement(g,r);var m=function(){n.$element.trigger("shown.bs."+n.type),n.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",m).emulateTransitionEnd(150):m()}},i.prototype.applyPlacement=function(e,i){var n=this.tip(),o=n[0].offsetWidth,s=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=e.top+r,e.left=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,c=n[0].offsetHeight;"top"==i&&c!=s&&(e.top=e.top+s-c);var h=this.getViewportAdjustedDelta(i,e,l,c);h.left?e.left+=h.left:e.top+=h.top;var d=h.left?2*h.left-o+l:2*h.top-s+c,u=h.left?"left":"top",p=h.left?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(d,n[0][p],u)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},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(){function e(){"in"!=i.hoverState&&n.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,n=this.tip(),o=t.Event("hide.bs."+this.type);if(this.$element.removeAttr("aria-describedby"),this.$element.trigger(o),!o.isDefaultPrevented())return n.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?n.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),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;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:n?t(window).width():e.outerWidth(),height:n?t(window).height():e.outerHeight()},n?{top:0,left:0}:e.offset())},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 o={top:0,left:0};if(!this.$viewport)return o;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-s-r.scroll,l=e.top+s-r.scroll+n;a<r.top?o.top=r.top-a:l>r.top+r.height&&(o.top=r.top+r.height-l)}else{var c=e.left-s,h=e.left+s+i;c<r.left?o.left=r.left-c:h>r.width&&(o.left=r.left+r.width-h)}return o},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(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},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))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};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),o=n.data("bs.popover"),s="object"==typeof e&&e;(o||"destroy"!=e)&&(o||n.data("bs.popover",o=new i(this,s)),"string"==typeof e&&o[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.2.0",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").empty()[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")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};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){var o=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("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",o),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),o=n.data("bs.scrollspy"),s="object"==typeof i&&i;o||n.data("bs.scrollspy",o=new e(this,s)),"string"==typeof i&&o[i]()})}e.VERSION="3.2.0",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="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var n=this;this.$body.find(this.selector).map(function(){var n=t(this),o=n.data("target")||n.attr("href"),s=/^#./.test(o)&&t(o);return s&&s.length&&s.is(":visible")&&[[s[e]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){n.offsets.push(this[0]),n.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(),o=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return r!=(t=s[s.length-1])&&this.activate(t);if(r&&e<=o[0])return r!=(t=s[0])&&this.activate(t);for(t=o.length;t--;)r!=s[t]&&e>=o[t]&&(!o[t+1]||e<=o[t+1])&&this.activate(s[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");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")};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),o=n.data("bs.tab");o||n.data("bs.tab",o=new i(this)),"string"==typeof e&&o[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",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 o=i.find(".active:last a")[0],s=t.Event("show.bs.tab",{relatedTarget:o});if(e.trigger(s),!s.isDefaultPrevented()){var r=t(n);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},i.prototype.activate=function(e,i,n){function o(){s.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),n&&n()}var s=i.find("> .active"),r=n&&t.support.transition&&s.hasClass("fade");r?s.one("bsTransitionEnd",o).emulateTransitionEnd(150):o(),s.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},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.affix"),s="object"==typeof e&&e;o||n.data("bs.affix",o=new i(this,s)),"string"==typeof e&&o[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=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},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=t(document).height(),n=this.$target.scrollTop(),o=this.$element.offset(),s=this.options.offset,r=s.top,a=s.bottom;"object"!=typeof s&&(a=r=s),"function"==typeof r&&(r=s.top(this.$element)),"function"==typeof a&&(a=s.bottom(this.$element));var l=!(null!=this.unpin&&n+this.unpin<=o.top)&&(null!=a&&o.top+this.$element.height()>=e-a?"bottom":null!=r&&n<=r&&"top");if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var c="affix"+(l?"-"+l:""),h=t.Event(c+".bs.affix");this.$element.trigger(h),h.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(c).trigger(t.Event(c.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}};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||{},n.offsetBottom&&(n.offset.bottom=n.offsetBottom),n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t){"use strict";function e(t,i){return new e.prototype.init(t,i)}Function.prototype.bind||(Function.prototype.bind=function(t){var e=this;return function(){return e.apply(t)}});
4var i=0,n=/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube\.com\S*[^\w\-\s])([\w\-]{11})(?=[^\w\-]|$)(?![?=&+%\w.\-]*(?:['"][^<>]*>|<\/a>))[?=&+%\w.-]*/gi,o=/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;t.fn.redactor=function(i){var n=[],o=Array.prototype.slice.call(arguments,1);return"string"==typeof i?this.each(function(){var e,s=t.data(this,"redactor");if("-1"!=i.search(/\./)?(e=i.split("."),"undefined"!=typeof s[e[0]]&&(e=s[e[0]][e[1]])):e=s[i],"undefined"!=typeof s&&t.isFunction(e)){var r=e.apply(s,o);void 0!==r&&r!==s&&n.push(r)}else t.error('No such method "'+i+'" for Redactor')}):this.each(function(){t.data(this,"redactor",{}),t.data(this,"redactor",e(this,i))}),0===n.length?this:1===n.length?n[0]:n},t.Redactor=e,t.Redactor.VERSION="10.0.2",t.Redactor.modules=["core","build","lang","toolbar","button","dropdown","code","clean","tidy","paragraphize","tabifier","focus","placeholder","autosave","buffer","indent","alignment","paste","keydown","keyup","shortcuts","line","list","block","inline","insert","caret","selection","observe","link","image","file","modal","progress","upload","utils"],t.Redactor.opts={lang:"en",direction:"ltr",plugins:!1,focus:!1,focusEnd:!1,placeholder:!1,visual:!0,tabindex:!1,minHeight:!1,maxHeight:!1,linebreaks:!1,replaceDivs:!0,paragraphize:!0,cleanStyleOnEnter:!1,enterKey:!0,cleanOnPaste:!0,cleanSpaces:!0,pastePlainText:!1,autosave:!1,autosaveName:!1,autosaveInterval:60,autosaveOnChange:!1,linkTooltip:!0,linkProtocol:"http",linkNofollow:!1,linkSize:50,imageEditable:!0,imageLink:!0,imagePosition:!0,imageFloatMargin:"10px",imageResizable:!0,imageUpload:!1,imageUploadParam:"file",uploadImageField:!1,dragImageUpload:!0,fileUpload:!1,fileUploadParam:"file",dragFileUpload:!0,s3:!1,convertLinks:!0,convertUrlLinks:!0,convertImageLinks:!0,convertVideoLinks:!0,preSpaces:4,tabAsSpaces:!1,tabFocus:!0,scrollTarget:!1,toolbar:!0,toolbarFixed:!0,toolbarFixedTarget:document,toolbarFixedTopOffset:0,toolbarExternal:!1,toolbarOverflow:!1,buttonSource:!1,buttons:["html","formatting","bold","italic","deleted","unorderedlist","orderedlist","outdent","indent","image","file","link","alignment","horizontalrule"],buttonsHide:[],buttonsHideOnMobile:[],formatting:["p","blockquote","pre","h1","h2","h3","h4","h5","h6"],formattingAdd:!1,tabifier:!0,deniedTags:["html","head","link","body","meta","script","style","applet"],allowedTags:!1,removeComments:!1,replaceTags:[["strike","del"]],replaceStyles:[["font-weight:\\s?bold","strong"],["font-style:\\s?italic","em"],["text-decoration:\\s?underline","u"],["text-decoration:\\s?line-through","del"]],removeDataAttr:!1,removeAttr:!1,allowedAttr:!1,removeWithoutAttr:["span"],removeEmpty:["p"],activeButtons:["deleted","italic","bold","underline","unorderedlist","orderedlist","alignleft","aligncenter","alignright","justify"],activeButtonsStates:{b:"bold",strong:"bold",i:"italic",em:"italic",del:"deleted",strike:"deleted",ul:"unorderedlist",ol:"orderedlist",u:"underline"},shortcuts:{"ctrl+shift+m, meta+shift+m":{func:"inline.removeFormat"},"ctrl+b, meta+b":{func:"inline.format",params:["bold"]},"ctrl+i, meta+i":{func:"inline.format",params:["italic"]},"ctrl+h, meta+h":{func:"inline.format",params:["superscript"]},"ctrl+l, meta+l":{func:"inline.format",params:["subscript"]},"ctrl+k, meta+k":{func:"link.show"},"ctrl+shift+7":{func:"list.toggle",params:["orderedlist"]},"ctrl+shift+8":{func:"list.toggle",params:["unorderedlist"]}},shortcutsAdd:!1,buffer:[],rebuffer:[],emptyHtml:"<p>&#x200b;</p>",invisibleSpace:"&#x200b;",imageTypes:["image/png","image/jpeg","image/gif"],indentValue:20,verifiedTags:["a","img","b","strong","sub","sup","i","em","u","small","strike","del","cite","ul","ol","li"],inlineTags:["strong","b","u","em","i","code","del","ins","samp","kbd","sup","sub","mark","var","cite","small"],alignmentTags:["P","H1","H2","H3","H4","H5","H6","DL","DT","DD","DIV","TD","BLOCKQUOTE","O
4UTPUT","FIGCAPTION","ADDRESS","SECTION","HEADER","FOOTER","ASIDE","ARTICLE"],blockLevelElements:["PRE","UL","OL","LI"],langs:{en:{html:"HTML",video:"Insert Video",image:"Insert Image",table:"Table",link:"Link",link_insert:"Insert link",link_edit:"Edit link",unlink:"Unlink",formatting:"Formatting",paragraph:"Normal text",quote:"Quote",code:"Code",header1:"Header 1",header2:"Header 2",header3:"Header 3",header4:"Header 4",header5:"Header 5",bold:"Bold",italic:"Italic",fontcolor:"Font Color",backcolor:"Back Color",unorderedlist:"Unordered List",orderedlist:"Ordered List",outdent:"Outdent",indent:"Indent",cancel:"Cancel",insert:"Insert",save:"Save",_delete:"Delete",insert_table:"Insert Table",insert_row_above:"Add Row Above",insert_row_below:"Add Row Below",insert_column_left:"Add Column Left",insert_column_right:"Add Column Right",delete_column:"Delete Column",delete_row:"Delete Row",delete_table:"Delete Table",rows:"Rows",columns:"Columns",add_head:"Add Head",delete_head:"Delete Head",title:"Title",image_position:"Position",none:"None",left:"Left",right:"Right",center:"Center",image_web_link:"Image Web Link",text:"Text",mailto:"Email",web:"URL",video_html_code:"Video Embed Code or Youtube/Vimeo Link",file:"Insert File",upload:"Upload",download:"Download",choose:"Choose",or_choose:"Or choose",drop_file_here:"Drop file here",align_left:"Align text to the left",align_center:"Center text",align_right:"Align text to the right",align_justify:"Justify text",horizontalrule:"Insert Horizontal Rule",deleted:"Deleted",anchor:"Anchor",link_new_tab:"Open link in new tab",underline:"Underline",alignment:"Alignment",filename:"Name (optional)",edit:"Edit"}}},e.fn=t.Redactor.prototype={keyCode:{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,SPACE:32,ESC:27,TAB:9,CTRL:17,META:91,SHIFT:16,ALT:18,LEFT:37,LEFT_WIN:91},init:function(e,n){this.$element=t(e),this.uuid=i++,this.rtePaste=!1,this.$pasteBox=!1,this.loadOptions(n),this.loadModules(),this.formatting={},t.merge(this.opts.blockLevelElements,this.opts.alignmentTags),this.reIsBlock=new RegExp("^("+this.opts.blockLevelElements.join("|")+")$","i"),this.tidy.setupAllowed(),this.lang.load(),t.extend(this.opts.shortcuts,this.opts.shortcutsAdd),this.core.setCallback("start"),this.start=!0,this.build.run()},loadOptions:function(e){this.opts=t.extend({},t.extend(!0,{},t.Redactor.opts),this.$element.data(),e)},getModuleMethods:function(t){return Object.getOwnPropertyNames(t).filter(function(e){return"function"==typeof t[e]})},loadModules:function(){for(var e=t.Redactor.modules.length,i=0;i<e;i++)this.bindModuleMethods(t.Redactor.modules[i])},bindModuleMethods:function(t){if("undefined"!=typeof this[t]){this[t]=this[t]();for(var e=this.getModuleMethods(this[t]),i=e.length,n=0;n<i;n++)this[t][e[n]]=this[t][e[n]].bind(this)}},core:function(){return{getObject:function(){return t.extend({},this)},getEditor:function(){return this.$editor},getBox:function(){return this.$box},getElement:function(){return this.$element},getTextarea:function(){return this.$textarea},getToolbar:function(){return!!this.$toolbar&&this.$toolbar},addEvent:function(t){this.core.event=t},getEvent:function(){
5return this.core.event},setCallback:function(e,i,n){var o=this.opts[e+"Callback"];return t.isFunction(o)?"undefined"==typeof n?o.call(this,i):o.call(this,i,n):"undefined"==typeof n?i:n},destroy:function(){this.core.setCallback("destroy"),this.$element.off(".redactor").removeData("redactor"),this.$editor.off(".redactor"),this.$editor.removeClass("redactor-editor redactor-linebreaks redactor-placeholder"),this.$editor.removeAttr("contenteditable");var e=this.code.get();this.build.isTextarea()?(this.$box.after(this.$element),this.$box.remove(),this.$element.val(e).show()):(this.$box.after(this.$editor),this.$box.remove(),this.$element.html(e).show()),this.$pasteBox&&this.$pasteBox.remove(),this.$modalBox&&this.$modalBox.remove(),this.$modalOverlay&&this.$modalOverlay.remove(),t(".redactor-toolbar-tooltip").remove(),clearInterval(this.autosaveInterval)}}},build:function(){return{run:function(){this.build.createContainerBox(),this.build.loadContent(),this.build.loadEditor(),this.build.enableEditor(),this.build.setCodeAndCall()},isTextarea:function(){return"TEXTAREA"===this.$element[0].tagName},createContainerBox:function(){this.$box=t('<div class="redactor-box" />')},createTextarea:function(){this.$textarea=t("<textarea />").attr("name",this.build.getTextareaName())},getTextareaName:function(){var t=this.$element.attr("id");return"undefined"==typeof t&&(t="content-"+this.uuid),t},loadContent:function(){var e=this.build.isTextarea()?"val":"html";this.content=t.trim(this.$element[e]())},enableEditor:function(){this.$editor.attr({contenteditable:!0,dir:this.opts.direction})},loadEditor:function(){var t=this.build.isTextarea()?"fromTextarea":"fromElement";this.build[t]()},fromTextarea:function(){this.$editor=t("<div />"),this.$textarea=this.$element,this.$box.insertAfter(this.$element).append(this.$editor).append(this.$element),this.$editor.addClass("redactor-editor"),this.$element.hide()},fromElement:function(){this.$editor=this.$element,this.build.createTextarea(),this.$box.insertAfter(this.$editor).append(this.$editor).append(this.$textarea),this.$editor.addClass("redactor-editor"),this.$textarea.hide()}
5,setCodeAndCall:function(){this.code.set(this.content),this.build.setOptions(),this.build.callEditor(),this.opts.visual||setTimeout(t.proxy(this.code.showCode,this),200)},callEditor:function(){this.build.disableMozillaEditing(),this.build.setEvents(),this.build.setHelpers(),this.opts.toolbar&&(this.opts.toolbar=this.toolbar.init(),this.toolbar.build()),this.modal.loadTemplates(),this.build.plugins(),setTimeout(t.proxy(this.observe.load,this),4),this.core.setCallback("init")},setOptions:function(){t(this.$textarea).attr("dir",this.opts.direction),this.opts.linebreaks&&this.$editor.addClass("redactor-linebreaks"),this.opts.tabindex&&this.$editor.attr("tabindex",this.opts.tabindex),this.opts.minHeight&&this.$editor.css("minHeight",this.opts.minHeight),this.opts.maxHeight&&this.$editor.css("maxHeight",this.opts.maxHeight)},setEvents:function(){this.$editor.on("drop.redactor",t.proxy(function(e){if(e=e.originalEvent||e,void 0===window.FormData||!e.dataTransfer)return!0;var i=e.dataTransfer.files.length;if(0===i)return!0;if(e.preventDefault(),this.opts.dragImageUpload||this.opts.dragFileUpload){var n=e.dataTransfer.files;this.upload.directUpload(n[0],e)}setTimeout(t.proxy(this.clean.clearUnverified,this),1),this.core.setCallback("drop",e)},this)),this.$editor.on("click.redactor",t.proxy(function(t){var e="click";"click"!=this.core.getEvent()&&"arrow"!=this.core.getEvent()||(e=!1),this.core.addEvent(e),this.utils.disableSelectAll(),this.core.setCallback("click",t)},this)),this.$editor.on("paste.redactor",t.proxy(this.paste.init,this)),this.$editor.on("keydown.redactor",t.proxy(this.keydown.init,this)),this.$editor.on("keyup.redactor",t.proxy(this.keyup.init,this)),t.isFunction(this.opts.codeKeydownCallback)&&this.$textarea.on("keydown.redactor-textarea",t.proxy(this.opts.codeKeydownCallback,this)),t.isFunction(this.opts.codeKeyupCallback)&&this.$textarea.on("keyup.redactor-textarea",t.proxy(this.opts.codeKeyupCallback,this)),t.isFunction(this.opts.focusCallback)&&this.$editor.on("focus.redactor",t.proxy(this.opts.focusCallback,this));var e;t(document).on("mousedown",function(i){e=t(i.target)}),this.$editor.on("blur.redactor",t.proxy(function(i){if(!this.rtePaste){var n=t(e);n.hasClass("redactor-toolbar, redactor-dropdown")||n.is("#redactor-modal")||0!==n.parents(".redactor-toolbar, .redactor-dropdown, #redactor-modal").length||(this.utils.disableSelectAll(),t.isFunction(this.opts.blurCallback)&&this.core.setCallback("blur",i))}},this))},setHelpers:function(){this.autosave.enable(),this.placeholder.enable(),this.opts.focus&&setTimeout(t.proxy(this.focus.setStart,this),100),this.opts.focusEnd&&setTimeout(t.proxy(this.focus.setEnd,this),100)},plugins:function(){this.opts.plugins&&RedactorPlugins&&t.each(this.opts.plugins,t.proxy(function(e,i){if(RedactorPlugins[i]){if(!t.isFunction(RedactorPlugins[i]))return;this[i]=RedactorPlugins[i]();for(var n=this.getModuleMethods(this[i]),o=n.length,s=0;s<o;s++)this[i][n[s]]=this[i][n[s]].bind(this);t.isFunction(this[i].init)&&this[i].init()}},this))},disableMozillaEditing:function(){if(this.utils.browser("mozilla"))try{document.execCommand("enableObjectResizing",!1,!1),document.execCommand("enableInlineTableEditing",!1,!1)}catch(t){}}}},lang:function(){return{load:function(){this.opts.curLang=this.opts.langs[this.opts.lang]},get:function(t){return"undefined"!=typeof this.opts.curLang[t]?this.opts.curLang[t]:""}}},toolbar:function(){return{init:function(){return{html:{title:this.lang.get("html"),func:"code.toggle"},formatting:{title:this.lang.get("formatting"),dropdown:{p:{title:this.lang.get("paragraph"),func:"block.format"},blockquote:{title:this.lang.get("quote"),func:"block.format"},pre:{title:this.lang.get("code"),func:"block.format"},h1:{title:this.lang.get("header1"),func:"block.format"},h2:{title:this.lang.get("header2"),func:"block.format"},h3:{title:this.lang.get("header3"),func:"block.format"},h4:{title:this.lang.get("header4"),func:"block.format"},h5:{title:this.lang.get("header5"),func:"block.format"}}},bold:{title:this.lang.get("bold"),func:"inline.format"},italic:{title:this.lang.get("italic"),func:"inline.format"},deleted:{title:this.lang.get("deleted"),func:"inline.format"},underline:{title:this.lang.get("underline"),func:"inline.format"},unorderedlist:{title:"&bull; "+this.lang.get("unorderedlist"),func:"list.toggle"},orderedlist:{title:"1. "+this.lang.get("orderedlist"),func:"list.toggle"},outdent:{title:"< "+this.lang.get("outdent"),func:"indent.decrease"},indent:{title:"> "+this.lang.get("indent"),func:"indent.increase"}
5,image:{title:this.lang.get("image"),func:"image.show"},file:{title:this.lang.get("file"),func:"file.show"},link:{title:this.lang.get("link"),dropdown:{link:{title:this.lang.get("link_insert"),func:"link.show"},unlink:{title:this.lang.get("unlink"),func:"link.unlink"}}},alignment:{title:this.lang.get("alignment"),dropdown:{left:{title:this.lang.get("align_left"),func:"alignment.left"},center:{title:this.lang.get("align_center"),func:"alignment.center"},right:{title:this.lang.get("align_right"),func:"alignment.right"},justify:{title:this.lang.get("align_justify"),func:"alignment.justify"}}},horizontalrule:{title:this.lang.get("horizontalrule"),func:"line.insert"}}},build:function(){this.toolbar.hideButtons(),this.toolbar.hideButtonsOnMobile(),this.toolbar.isButtonSourceNeeded(),0!==this.opts.buttons.length&&(this.$toolbar=this.toolbar.createContainer(),this.toolbar.setOverflow(),this.toolbar.append(),this.toolbar.setFormattingTags(),this.toolbar.loadButtons(),this.toolbar.setTabindex(),this.toolbar.setFixed(),this.opts.activeButtons&&this.$editor.on("mouseup.redactor keyup.redactor focus.redactor",t.proxy(this.observe.buttons,this)))},createContainer:function(){return t("<ul>").addClass("redactor-toolbar").attr("id","redactor-toolbar-"+this.uuid)},setFormattingTags:function(){t.each(this.opts.toolbar.formatting.dropdown,t.proxy(function(e,i){t.inArray(e,this.opts.formatting)==-1&&delete this.opts.toolbar.formatting.dropdown[e]},this))},loadButtons:function(){t.each(this.opts.buttons,t.proxy(function(e,i){if(this.opts.toolbar[i]){if(this.opts.fileUpload===!1&&"file"===i)return!0;if(this.opts.imageUpload===!1&&this.opts.s3===!1&&"image"===i)return!0;var n=this.opts.toolbar[i];this.$toolbar.append(t("<li>").append(this.button.build(i,n)))}},this))},append:function(){this.opts.toolbarExternal?(this.$toolbar.addClass("redactor-toolbar-external"),t(this.opts.toolbarExternal).html(this.$toolbar)):this.$box.prepend(this.$toolbar)},setFixed:function(){this.utils.isMobile()||this.opts.toolbarExternal||this.opts.toolbarFixed&&(this.toolbar.observeScroll(),t(this.opts.toolbarFixedTarget).on("scroll.redactor",t.proxy(this.toolbar.observeScroll,this)))},setTabindex:function(){this.$toolbar.find("a").attr("tabindex","-1")},setOverflow:function(){this.utils.isMobile()&&this.opts.toolbarOverflow&&this.$toolbar.addClass("redactor-toolbar-overflow")},isButtonSourceNeeded:function(){if(!this.opts.buttonSource){var t=this.opts.buttons.indexOf("html");t!==-1&&this.opts.buttons.splice(t,1)}},hideButtons:function(){0!==this.opts.buttonsHide.length&&t.each(this.opts.buttonsHide,t.proxy(function(t,e){var i=this.opts.buttons.indexOf(e);this.opts.buttons.splice(i,1)},this))},hideButtonsOnMobile:function(){(this.utils.isMobile()||0!==this.opts.buttonsHideOnMobile.length)&&t.each(this.opts.buttonsHideOnMobile,t.proxy(function(t,e){var i=this.opts.buttons.indexOf(e);this.opts.buttons.splice(i,1)},this))},observeScroll:function(){var e=t(this.opts.toolbarFixedTarget).scrollTop(),i=1;this.opts.toolbarFixedTarget===document&&(i=this.$box.offset().top),e>i?this.toolbar.observeScrollEnable(e,i):this.toolbar.observeScrollDisable()},observeScrollEnable:function(t,e){var i=this.opts.toolbarFixedTopOffset+t-e,n=0,o=e+this.$box.height()+30,s=this.$box.innerWidth();this.$toolbar.addClass("toolbar-fixed-box"),this.$toolbar.css({position:"absolute",width:s,top:i+"px",left:n}),this.toolbar.setDropdownsFixed(),this.$toolbar.css("visibility",t<o?"visible":"hidden")},observeScrollDisable:function(){this.$toolbar.css({position:"relative",width:"auto",top:0,left:0,visibility:"visible"}),this.toolbar.unsetDropdownsFixed(),this.$toolbar.removeClass("toolbar-fixed-box")},setDropdownsFixed:function(){var e=this;t(".redactor-dropdown").each(function(){t(this).css({position:"fixed",top:e.$toolbar.innerHeight()+e.opts.toolbarFixedTopOffset})})},unsetDropdownsFixed:function(){var e=this;t(".redactor-dropdown").each(function(){var i=e.$toolbar.innerHeight()+e.$toolbar.offset().top+"px";t(this).css({position:"absolute",top:i})})}}},button:function(){return{build:function(e,i){var n=t('<a href="#" class="re-icon re-'+e+'" rel="'+e+'" />');if((i.func||i.command||i.dropdown)&&n.on("touchstart click",t.proxy(function(t){if(n.hasClass("redactor-button-disabled"))return!1;var o="func",s=i.func;i.command?(o="command",s=i.command):i.dropdown&&(o="dropdown",s=!1),this.button.onClick(t,e,o,s)},this)),i.dropdown){var o=t('<div class="redactor-dropdown redactor-dropdown-box-'+e+'" style="display: none;">');n.data("dropdown",o),this.dropdown.build(e,o,i.dropdown)}return this.utils.isDesktop()&&this.button.createTooltip(n,e,i.title),n},createTooltip:function(e,i,n){var o=t("<span>").addClass("redactor-toolbar-tooltip redactor-toolbar-tooltip-"+i).hide().html(n);o.appendTo("body"),e.on("mouseover",function(){if(!t(this).hasClass("redactor-button-disabled")){var i=e.offset(),n=e.innerHe
5ight(),s=e.innerWidth();o.show(),o.css({top:i.top+n+"px",left:i.left+s/2-o.innerWidth()/2+"px"})}}),e.on("mouseout",function(){o.hide()})},onClick:function(e,i,n,o){if(e.preventDefault(),this.utils.browser("msie")&&(e.returnValue=!1),"command"==n)this.inline.format(o);else if("dropdown"==n)this.dropdown.show(e,i);else{var s;t.isFunction(o)?(o.call(this,i),this.observe.buttons(e,i)):"-1"!=o.search(/\./)?(s=o.split("."),"undefined"!=typeof this[s[0]]&&(this[s[0]][s[1]](i),this.observe.buttons(e,i))):(this[o](i),this.observe.buttons(e,i))}},get:function(t){return this.$toolbar.find("a.re-"+t)},setActive:function(t){this.button.get(t).addClass("redactor-act")},setInactive:function(t){this.button.get(t).removeClass("redactor-act")},setInactiveAll:function(t){"undefined"==typeof t?this.$toolbar.find("a.re-icon").removeClass("redactor-act"):this.$toolbar.find("a.re-icon").not(".re-"+t).removeClass("redactor-act")},setActiveInVisual:function(){this.$toolbar.find("a.re-icon").not("a.re-html").removeClass("redactor-button-disabled")},setInactiveInCode:function(){this.$toolbar.find("a.re-icon").not("a.re-html").addClass("redactor-button-disabled")},changeIcon:function(t,e){this.button.get(t).addClass("re-"+e)},removeIcon:function(t,e){this.button.get(t).removeClass("re-"+e)},setAwesome:function(t,e){var i=this.button.get(t);i.removeClass("redactor-btn-image").addClass("fa-redactor-btn"),i.html('<i class="fa '+e+'"></i>')},addCallback:function(e,i){var n="dropdown"==i?"dropdown":"func",o=e.attr("rel");e.on("touchstart click",t.proxy(function(t){return!e.hasClass("redactor-button-disabled")&&void this.button.onClick(t,o,n,i)},this))},addDropdown:function(e,i){var n=e.attr("rel");this.button.addCallback(e,"dropdown");var o=t('<div class="redactor-dropdown redactor-dropdown-box-'+n+'" style="display: none;">');return e.data("dropdown",o),i&&this.dropdown.build(n,o,i),o},add:function(e,i){if(this.opts.toolbar){var n=this.button.build(e,{title:i});return n.addClass("redactor-btn-image"),this.$toolbar.append(t("<li>").append(n)),n}},addFirst:function(e,i){if(this.opts.toolbar){var n=this.button.build(e,{title:i});return this.$toolbar.prepend(t("<li>").append(n)),n}},addAfter:function(e,i,n){if(this.opts.toolbar){var o=this.button.build(i,{title:n}),s=this.button.get(e);return 0!==s.length?s.parent().after(t("<li>").append(o)):this.$toolbar.append(t("<li>").append(o)),o}},addBefore:function(e,i,n){if(this.opts.toolbar){var o=this.button.build(i,{title:n}),s=this.button.get(e);return 0!==s.length?s.parent().before(t("<li>").append(o)):this.$toolbar.append(t("<li>").append(o)),o}},remove:function(t){this.button.get(t).remove()}}},dropdown:function(){return{build:function(e,i,n){"formatting"==e&&this.opts.formattingAdd&&t.each(this.opts.formattingAdd,t.proxy(function(t,e){var i=e.tag;"undefined"!=typeof e["class"]&&(i=i+"-"+e["class"]),e.type=this.utils.isBlockTag(e.tag)?"block":"inline";var o="inline"==e.type?"inline.formatting":"block.formatting";this.opts.linebreaks&&"block"==e.type&&"p"==e.tag||(this.formatting[i]={tag:e.tag,style:e.style,"class":e["class"],attr:e.attr,data:e.data},n[i]={func:o,title:e.title})},this)),t.each(n,t.proxy(function(n,o){var s=t('<a href="#" class="redactor-dropdown-'+n+'">'+o.title+"</a>");"formatting"==e&&s.addClass("redactor-formatting-"+n),s.on("click",t.proxy(function(t){var e="func",i=o.func;o.command?(e="command",i=o.command):o.dropdown&&(e="dropdown",i=o.dropdown),this.button.onClick(t,n,e,i)},this)),i.append(s)},this))},show:function(e,i){if(!this.opts.visual)return e.preventDefault(),!1;var n=this.button.get(i),o=n.data("dropdown").appendTo(document.body);if(n.hasClass("dropact"))this.dropdown.hideAll();else{this.dropdown.hideAll(),this.core.setCallback("dropdownShow",{dropdown:o,key:i,button:n}),this.button.setActive(i),n.addClass("dropact");var s=n.offset(),r=o.width();s.left+r>t(document).width()&&(s.left-=r);var a=s.left+"px";if(this.$toolbar.hasClass("toolbar-fixed-box"))o.css({position:"fixed",left:a,top:this.$toolbar.innerHeight()+this.opts.toolbarFixedTopOffset}).show();else{var l=n.innerHeight()+s.top+"px";o.css({position:"absolute",left:a,top:l}).show()}this.core.setCallback("dropdownShown",{dropdown:o,key:i,button:n})}t(document).one("click",t.proxy(this.dropdown.hide,this)),this.$editor.one("click",t.proxy(this.dropdown.hide,this)),o.on("mouseover",function(){t("html").css("overflow","hidden")}),o.on("mouseout",function(){t("html").css("overflow","")}),e.stopPropagation()},hideAll:function(){this.$toolbar.find("a.dropact").removeClass("redactor-act").removeClass("dropact"),t(".redactor-dropdown").hide(),this.core.setCallback("dropdownHide")},hide:function(e){var i=t(e.target);i.hasClass("dropact")||(i.removeClass("dropact"),this.dropdown.hideAll())}}},code:function(){return{set:function(e){e=t.trim(e.toString()),e=this.clean.onSet(e),this.$editor.html(e),this.code.sync(),setTimeout(t.proxy(this.buffer.add,this),15),this.start===!1&&this.observe.load()},get:function(){var t=this.$textarea.val();return t=this.tabifier.get(t)},sync:function(){setTimeout(t.proxy(this.code.startSync,this),10)},startSync:function(){var t=this.$editor.html();
5this.code.syncCode&&this.code.syncCode==t||(this.code.syncCode=t,t=this.core.setCallback("syncBefore",t),t=this.clean.onSync(t),this.$textarea.val(t),this.core.setCallback("sync",t),this.start===!1&&this.core.setCallback("change",t),this.start=!1,this.autosave.onChange())},toggle:function(){this.opts.visual?this.code.showCode():this.code.showVisual()},showCode:function(){this.code.offset=this.caret.getOffset();var e=t(window).scrollTop(),i=this.$editor.innerHeight();this.$editor.hide();var n=this.$textarea.val();this.modified=this.clean.removeSpaces(n),n=this.tabifier.get(n),this.$textarea.val(n).height(i).show().focus(),this.$textarea.on("keydown.redactor-textarea-indenting",this.code.textareaIndenting),t(window).scrollTop(e),this.opts.visual=!1,this.button.setInactiveInCode(),this.button.setActive("html"),this.core.setCallback("source",n)},showVisual:function(){if(!this.opts.visual){var t=this.$textarea.hide().val();this.modified!==this.clean.removeSpaces(t)&&this.code.set(t),this.$editor.show(),this.utils.isEmpty(t)||this.placeholder.remove(),this.caret.setOffset(this.code.offset),this.$textarea.off("keydown.redactor-textarea-indenting"),this.button.setActiveInVisual(),this.button.setInactive("html"),this.observe.load(),this.opts.visual=!0}},textareaIndenting:function(t){if(9!==t.keyCode)return!0;var e=this.$textarea,i=e.get(0).selectionStart;return e.val(e.val().substring(0,i)+"\t"+e.val().substring(e.get(0).selectionEnd)),e.get(0).selectionStart=e.get(0).selectionEnd=i+1,!1}}},clean:function(){return{onSet:function(t){return t=this.clean.savePreCode(t),t=t.replace(/\$/g,"&#36;"),t=t.replace(/”/g,'"'),t=t.replace(/‘/g,"'"),t=t.replace(/’/g,"'"),this.opts.replaceDivs&&(t=this.clean.replaceDivs(t)),this.opts.linebreaks&&(t=this.clean.replaceParagraphsToBr(t)),t=this.clean.saveFormTags(t),t=t.replace(/<font(.*?)style="(.*?)"(.*?)>([\w\W]*?)<\/font>/gi,'<span style="$2">$4</span>'),t=t.replace(/<font(.*?[^<])>/gi,""),t=t.replace(/<\/font>/gi,""),t=this.tidy.load(t),this.opts.paragraphize&&(t=this.paragraphize.load(t)),t=this.clean.setVerified(t),t=this.clean.convertInline(t)},onSync:function(e){if(e=e.replace(/[\u200B-\u200D\uFEFF]/g,""),e=e.replace(/&#x200b;/gi,""),e=e.replace(/&nbsp;/gi," "),e.search(/^<p>(||\s||&nbsp;)<\/p>$/i)!=-1)return"";e=this.clean.restoreFormTags(e);var i={"™":"&trade;","©":"&copy;","…":"&hellip;","—":"&mdash;","‐":"&dash;"};return t.each(i,function(t,i){e=e.replace(new RegExp(t,"g"),i)}),e=e.replace(new RegExp("<br\\s?/?></li>","gi"),"</li>"),e=e.replace(new RegExp("</li><br\\s?/?>","gi"),"</li>"),e=e.replace(new RegExp('<div(.*?) data-tagblock="redactor"(.*?[^>])>',"gi"),"<div$1$2>"),e=e.replace(new RegExp('<(.*?) data-verified="redactor"(.*?[^>])>',"gi"),"<$1$2>"),e=e.replace(new RegExp('<span(.*?) rel="(.*?)"(.*?[^>])>',"gi"),"<span$1$3>"),e=e.replace(new RegExp('<img(.*?) rel="(.*?)"(.*?[^>])>',"gi"),"<img$1$3>"),e=e.replace(new RegExp('<span class="redactor-invisible-space">(.*?)</span>',"gi"),"$1"),e=e.replace(/ data-save-url="(.*?[^>])"/gi,""),e=e.replace(/<span(.*?)id="redactor-image-box"(.*?[^>])>([\w\W]*?)<img(.*?)><\/span>/gi,"$3<img$4>"),e=e.replace(/<span(.*?)id="redactor-image-resizer"(.*?[^>])>(.*?)<\/span>/gi,""),e=e.replace(/<span(.*?)id="redactor-image-editter"(.*?[^>])>(.*?)<\/span>/gi,""),e=this.tidy.load(e),this.opts.linkNofollow&&(e=e.replace(/<a(.*?)rel="nofollow"(.*?[^>])>/gi,"<a$1$2>"),e=e.replace(/<a(.*?[^>])>/gi,'<a$1 rel="nofollow">')),e=e.replace(/<(.*?) data-redactor-tag="(.*?)"(.*?[^>])>/gi,"<$1$3>"),e=e.replace(/<(.*?) data-redactor-class="(.*?)"(.*?[^>])>/gi,"<$1$3>"),e=e.replace(/<(.*?) data-redactor-style="(.*?)"(.*?[^>])>/gi,"<$1$3>"),e=e.replace(new RegExp('<(.*?) data-verified="redactor"(.*?[^>])>',"gi"),"<$1$2>"),e=e.replace(new RegExp('<(.*?) data-verified="redactor">',"gi"),"<$1>")},onPaste:function(e,i){if(e=t.trim(e),e=e.replace(/\$/g,"&#36;"),e=e.replace(/”/g,'"'),e=e.replace(/“/g,'"'),e=e.replace(/‘/g,"'"),e=e.replace(/’/g,"'"),e=e.replace(/<span class="Apple-converted-space">&nbsp;<\/span>/gi," "),e=e.replace(/<span class="Apple-tab-span"[^>]*>\t<\/span>/gi,"\t"),e=e.replace(/<span[^>]*>(\s|&nbsp;)<\/span>/gi," "),this.opts.pastePlainText)return this.clean.getPlainText(e);if(!this.utils.isSelectAll()&&"undefined"==typeof i){if(this.utils.isCurrentOrParent(["FIGCAPTION","A"]))return this.clean.getPlainText(e,!1);if(this.utils.isCurrentOrParent("PRE"))return this.clean.getPreCode(e);if(this.utils.isCurrentOrParent(["BLOCKQUOTE","H1","H2","H3","H4","H5","H6"])){if(e=this.clean.getOnlyImages(e),!this.utils.browser("msie")){var n=this.selection.getBlock();n&&"P"==n.tagName&&(e=e.replace(/<img(.*?)>/gi,"<p><img$1></p>"))}return e}if(this.utils.isCurrentOrParent(["TD"]))return e=this.clean.onPasteTidy(e,"td"),this.opts.linebreaks&&(e=this.clean.replaceParagraphsToBr(e)),e=this.clean.replaceDivsToBr(e);if(this.utils.isCurrentOrParent(["LI"]))return this.clean.onPasteTidy(e,"li")}return e=this.clean.isSingleLine(e,i),this.clean.singleLine||(this.opts.linebreaks&&(e=this.clean.replaceParagraphsToBr(e)),this.opts.replaceDivs&&(e=this.clean.replaceDivs(e)),e=this.clean.saveFormTags(e)),e=this.clean.onPasteIeFixLinks(e),e=this.clean.onPasteWord(e),e=this.clean.onPasteExtra(e),e=this.clean.onPasteTidy(e,"all"),!this.clean.singleLine&&this.opts.paragraphize&&(e=this.paragraphize.load(e)),e=this.clean.removeDirtyStyles(e),e=this.clean.onPasteRemoveSpans(e),e=this.clean.onPasteRemoveEmpty(e),e=this.clean.convertInline(e)},onPasteWord:function(t){return t=t.replace(/<!--[\s\S]*?-->/gi,""),t=t.replace(/<style[^>]*>[\s\S]*?<\/style>/gi,""),t=t.replace(/<img(.*?)v:shapes=(.*?)>/gi,""),t=t.replace(/src="file\:\/\/(.*?)"/,'src=""'),t=t.replace(/<p(.*?)class="MsoListParagraphCxSpFirst"([\w\W]*?)<\/p>/gi,"<ul><li$2</li>"),t=t.replace(/<p(.*?)class="MsoListParagraphCxSpMiddle"([\w\W]*?)<\/p>/gi,"<li$2</li>"),t=t.replace(/<p(.*?)class="MsoListParagraphCxSpLast"([\w\W]*?)<\/p>/gi,"<li$2</li></ul>"),t=t.replace(/<p(.*?)class="MsoListParagraph"([\w\W]*?)<\/p>/gi,"<ul><li$2</li></ul>"),t=t.replace(/·/g,""),t=t.replace(/<p class="Mso(.*?)"/gi,"<p"),t=t.replace(/ class=\"(mso[^\"]*)\"/gi,""),t=t.replace(/ class=(mso\w+)/gi,""),t=t.replace(/<o:p(.*?)>([\w\W]*?)<\/o:p>/gi,"$2"),this.opts.cleanSpaces&&(t=t.replace(/(\s|&nbsp;)+/g," ")),t=t.replace(/\n/g," "),t=t.replace(/<p>\n?<li>/gi,"<li>")},onPasteExtra:function(t){return t=t.replace(/<b\sid="internal-source-marker(.*?)">([\w\W]*?)<\/b>/gi,"$2"),t=t.replace(/<b(.*?)id="docs-internal-guid(.*?)">([\w\W]*?)<\/b>/gi,"$3"),t=t.replace(/<span[^>]*(font-style: italic; font-weight: bold|font-weight: bold; font-style: italic)[^>]*>/gi,'<span style="font-weight: bold;"><span style="font-style: italic;">'),t=t.replace(/<span[^>]*font-style: italic[^>]*>/gi,'<span style="font-style: italic;">'),t=t.replace(/<span[^>
5]*font-weight: bold[^>]*>/gi,'<span style="font-weight: bold;">'),t=t.replace(/<span[^>]*text-decoration: underline[^>]*>/gi,'<span style="text-decoration: underline;">'),t=t.replace(/<img>/gi,""),t=t.replace(/\n{3,}/gi,"\n"),t=t.replace(/<font(.*?)>([\w\W]*?)<\/font>/gi,"$2"),t=t.replace(/<p><p>/gi,"<p>"),t=t.replace(/<\/p><\/p>/gi,"</p>"),t=t.replace(/<li>(\s*|\t*|\n*)<p>/gi,"<li>"),t=t.replace(/<\/p>(\s*|\t*|\n*)<\/li>/gi,"</li>"),t=t.replace(/<\/p>\s<p/gi,"</p><p"),t=t.replace(/<img src="webkit-fake-url\:\/\/(.*?)"(.*?)>/gi,""),t=t.replace(/<p>•([\w\W]*?)<\/p>/gi,"<li>$1</li>"),this.utils.browser("mozilla")&&(t=t.replace(/<br\s?\/?>$/gi,"")),t},onPasteTidy:function(t,e){var i=["span","a","pre","blockquote","small","em","strong","code","kbd","mark","address","cite","var","samp","dfn","sup","sub","b","i","u","del","ol","ul","li","dl","dt","dd","p","br","video","audio","embed","param","object","img","table","td","th","tr","tbody","tfoot","thead","h1","h2","h3","h4","h5","h6"],n=!1,o=[["a","*"],["img",["src","alt"]],["span",["class","rel","data-verified"]],["video","*"],["audio","*"],["embed","*"],["object","*"],["param","*"],["source","*"]];"all"==e?(n=["p","span","h1","h2","h3","h4","h5","h6"],o=[["table","class"],["td",["colspan","rowspan"]],["a","*"],["img",["src","alt","data-redactor-inserted-image"]],["span",["class","rel","data-verified"]],["video","*"],["audio","*"],["embed","*"],["object","*"],["param","*"],["source","*"]]):"td"==e?i=["ul","ol","li","span","a","small","em","strong","code","kbd","mark","cite","var","samp","dfn","sup","sub","b","i","u","del","ol","ul","li","dl","dt","dd","br","video","audio","embed","param","object","img","h1","h2","h3","h4","h5","h6"]:"li"==e&&(i=["ul","ol","li","span","a","small","em","strong","code","kbd","mark","cite","var","samp","dfn","sup","sub","b","i","u","del","br","video","audio","embed","param","object","img"]);var s={deniedTags:!1,allowedTags:i,removeComments:!0,removePhp:!0,removeAttr:!1,allowedAttr:o,removeEmpty:n};return this.tidy.load(t,s)},onPasteRemoveEmpty:function(t){return t=t.replace(/<(p|h[1-6])>(|\s|\n|\t|<br\s?\/?>)<\/(p|h[1-6])>/gi,""),this.opts.linebreaks||(t=t.replace(/<br>$/i,"")),t},onPasteRemoveSpans:function(t){return t=t.replace(/<span>(.*?)<\/span>/gi,"$1"),t=t.replace(/<span[^>]*>\s|&nbsp;<\/span>/gi," ")},onPasteIeFixLinks:function(e){if(!this.utils.browser("msie"))return e;var i=t.trim(e);return 0===i.search(/^<a(.*?)>(.*?)<\/a>$/i)&&(e=e.replace(/^<a(.*?)>(.*?)<\/a>$/i,"$2")),e},isSingleLine:function(t,e){if(this.clean.singleLine=!1,!this.utils.isSelectAll()&&"undefined"==typeof e){var i=this.opts.blockLevelElements.join("|").replace("P|","").replace("DIV|",""),n=t.match(new RegExp("</("+i+")>","gi")),o=t.match(/<\/(p|div)>/gi);if(!n&&(null===o||o&&o.length<=1)){var s=t.match(/<br\s?\/?>/gi),r=t.match(/<img(.*?[^>])>/gi);s||r||(this.clean.singleLine=!0,t=t.replace(/<\/?(p|div)(.*?)>/gi,""))}}return t},stripTags:function(t,e){e=(((e||"")+"").toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join("");var i=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi;return t.replace(i,function(t,i){return e.indexOf("<"+i.toLowerCase()+">")>-1?t:""})},savePreCode:function(e){var i=e.match(/<(pre|code)(.*?)>([\w\W]*?)<\/(pre|code)>/gi);return null!==i&&t.each(i,t.proxy(function(t,i){var n=i.match(/<(pre|code)(.*?)>([\w\W]*?)<\/(pre|code)>/i);n[3]=n[3].replace(/<br\s?\/?>/g,"\n"),n[3]=n[3].replace(/&nbsp;/g," "),this.opts.preSpaces&&(n[3]=n[3].replace(/\t/g,Array(this.opts.preSpaces+1).join(" "))),n[3]=this.clean.encodeEntities(n[3]),n[3]=n[3].replace(/\$/g,"&#36;"),e=e.replace(i,"<"+n[1]+n[2]+">"+n[3]+"</"+n[1]+">")},this)),e},getTextFromHtml:function(e){e=e.replace(/<br\s?\/?>|<\/H[1-6]>|<\/p>|<\/div>|<\/li>|<\/td>/gi,"\n");var i=document.createElement("div");return i.innerHTML=e,e=i.textContent||i.innerText,t.trim(e)},getPlainText:function(t,e){return t=this.clean.getTextFromHtml(t),t=t.replace(/\n/g,"<br />"),this.opts.paragraphize&&"undefined"==typeof e&&(t=this.paragraphize.load(t)),t},getPreCode:function(t){return t=t.replace(/<img(.*?) style="(.*?)"(.*?[^>])>/gi,"<img$1$3>"),t=t.replace(/<img(.*?)>/gi,"&lt;img$1&gt;"),t=this.clean.getTextFromHtml(t),this.opts.preSpaces&&(t=t.replace(/\t/g,Array(this.opts.preSpaces+1).join(" "))),t=this.clean.encodeEntities(t)},getOnlyImages:function(t){return t=t.replace(/<img(.*?)>/gi,"[img$1]"),t=t.replace(/<(.*?)>/gi,""),t=t.replace(/\[img(.*?)\]/gi,"<img$1>")},getOnlyLinksAndImages:function(t){return t=t.replace(/<a(.*?)href="(.*?)"(.*?)>([\w\W]*?)<\/a>/gi,'[a href="$2"]$4[/a]'),t=t.replace(/<img(.*?)>/gi,"[img$1]"),t=t.replace(/<(.*?)>/gi,""),t=t.replace(/\[a href="(.*?)"\]([\w\W]*?)\[\/a\]/gi,'<a href="$1">$2</a>'),t=t.replace(/\[img(.*?)\]/gi,"<img$1>")},encodeEntities:function(t){return t=String(t).replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"'),t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},removeDirtyStyles:function(e){if(this.utils.browser("msie"))return e;var i=document.createElement("div");return i.innerHTML=e,this.clean.clearUnverifiedRemove(t(i)),e=i.innerHTML,t(i).remove(),e},clearUnverified:function(){if(!this.utils.browser("msie")){this.clean.clearUnverifiedRemove(this.$editor);var t=this.$editor.find("h1, h2, h3, h4, h5, h6");t.find("span").removeAttr("style"),t.find(this.opts.verifiedTags.join(", ")).removeAttr("style"),this.code.sync()}},clearUnverifiedRemove:function(e){e.find(this.opts.verifiedTags.join(", ")).removeAttr("style"),e.find("span").not('[data-verified="redactor"]').removeAttr("style"),e.find('span[data-verified="redactor"], img[data-verified="redactor"]').each(function(e,i){var n=t(i);n.attr("style",n.attr("rel"))})},setVerified:function(t){if(this.utils.browser("msie"))return t;t=t.replace(new RegExp("<img(.*?[^>])>","gi"),'<img$1 data-verified="redactor">'),t=t.replace(new RegExp("<span(.*?)>","gi"),'<span$1 data-verified="redactor">');var e=t.match(new RegExp('<(span|img)(.*?)style="(.*?)"(.*?[^>])>',"gi"));if(e)for(var i=e.length,n=0;n<i;n++){var o=e[n].replace(/style="(.*?)"/i,'style="$1" rel="$1"');t=t.replace(new RegExp(e[n],"gi"),o)}return t},convertInline:function(e){var i=t("<div />").html(e),n=this.opts.inlineTags;return n.push("span"),i.find(n.join(",")).each(function(){var e=t(this),i=this.tagName.toLowerCase();e.attr("data-redactor-tag",i),"span"==i&&(e.attr("style")?e.attr("data-redactor-style",e.attr("style")):e.attr("class")&&e.attr("data-redactor-class",e.attr("class")))}),e=i.html(),i.remove(),e},normalizeLists:function(){this.$editor.find("li").each(function(e,i){var n=t(i).next();0===n.length||"UL"!=n[0].tagName&&"OL"!=n[0].tagName||t(i).append(n)})},removeSpaces:function(t){return t=t.replace(/\n/g,""),t=t.replace(/[\t]*/g,""),t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/^[\s\n]*/g," "),t=t.replace(/[\s\n]*$/g," "),t=t.replace(/>\s{2,}</g,"> <"),t=t.replace(/\n\n/g,"\n"),t=t.replace(/[\u200B-\u200D\uFEFF]/g,"")},replaceDivs:function(t){return this.opts.linebreaks?(t=t.replace(/<div><br\s?\/?><\/div>/gi,"<br />"),t=t.replace(/<div(.*?)>([\w\W]*?)<\/div>/gi,"$2<br />")):t=t.replace(/<div(.*?)>([\w\W]*?)<\/div>/gi,"<p$1>$2</p>"),t},replaceDivsToBr:function(t){return t=t.replace(/<div\s(.*?)>/gi,"<p>"),t=t.replace(/<div><br\s?\/?><\/div>/gi,"<br /><br />"),t=t.replace(/<div>([\w\W]*?)<\/div>/gi,"$1<br /><br />")},replaceParagraphsToBr:function(t){return t=t.replace(/<p\s(.*?)>/gi,"<p>"),t=t.replace(/<p><br\s?\/?><\/p>/gi,"<br />"),t=t.replace(/<p>([\w\W]*?)<\/p>/gi,"$1<br /><br />"),t=t.replace(/(<br\s?\/?>){1,}\n?<\/blockquote>/gi,"</blockquote>")},saveFormTags:function(t){return t.replace(/<form(.*?)>([\w\W]*?)<\/form>/gi,'<section$1 rel="redactor-form-tag">$2</section>')},restoreFormTags:function(t){return t.replace(/<section(.*?) rel="redactor-form-tag"(.*?)>([\w\W]*?)<\/section>/gi,"<form$1$2>$3</form>")}}},tidy:function(){return{setupAllowed:function(){if(this.opts.allowedTags&&(this.opts.deniedTags=!1),this.opts.allowedAttr&&(this.opts.removeAttr=!1),!this.opts.linebreaks){var t=["p","section"];this.opts.allowedTags&&this.tidy.addToAllowed(t),this.opts.deniedTags&&this.tidy.removeFromDenied(t)}},addToAllowed:function(e){for(var i=e.length,n=0;n<i;n++)t.inArray(e[n],this.opts.allowedTags)==-1&&this.opts.allowedTags.push(e[n])},removeFromDenied:function(e){for(var i=e.length,n=0;n<i;n++){var o=t.inArray(e[n],this.opts.deniedTags);o!=-1&&this.opts.deniedTags.splice(o,1);
6}},load:function(e,i){return this.tidy.settings={deniedTags:this.opts.deniedTags,allowedTags:this.opts.allowedTags,removeComments:this.opts.removeComments,replaceTags:this.opts.replaceTags,replaceStyles:this.opts.replaceStyles,removeDataAttr:this.opts.removeDataAttr,removeAttr:this.opts.removeAttr,allowedAttr:this.opts.allowedAttr,removeWithoutAttr:this.opts.removeWithoutAttr,removeEmpty:this.opts.removeEmpty},t.extend(this.tidy.settings,i),e=this.tidy.removeComments(e),e=this.tidy.replaceTags(e),this.tidy.$div=t("<div />").append(e),this.tidy.replaceStyles(),this.tidy.removeTags(),this.tidy.removeAttr(),this.tidy.removeEmpty(),this.tidy.removeParagraphsInLists(),this.tidy.removeDataAttr(),this.tidy.removeWithoutAttr(),e=this.tidy.$div.html(),this.tidy.$div.remove(),e},removeComments:function(t){return this.tidy.settings.removeComments?t.replace(/<!--[\s\S]*?-->/gi,""):t},replaceTags:function(t){if(!this.tidy.settings.replaceTags)return t;for(var e=this.tidy.settings.replaceTags.length,i=0;i<e;i++){var n=new RegExp("<"+this.tidy.settings.replaceTags[i][0]+"(.*?[^>])>","gi");t=t.replace(n,"<"+this.tidy.settings.replaceTags[i][1]+"$1>"),n=new RegExp("</"+this.tidy.settings.replaceTags[i][0]+">","gi"),t=t.replace(n,"</"+this.tidy.settings.replaceTags[i][1]+">")}return t},replaceStyles:function(){if(this.tidy.settings.replaceStyles){var e=this.tidy.settings.replaceStyles.length;this.tidy.$div.find("span").each(t.proxy(function(i,n){for(var o=t(n),s=o.attr("style"),r=0;r<e;r++)if(s&&s.match(new RegExp("^"+this.tidy.settings.replaceStyles[r][0],"i"))){var a=this.tidy.settings.replaceStyles[r][1];o.replaceWith(function(){var e=document.createElement(a);return t(e).append(t(this).contents())})}},this))}},removeTags:function(){!this.tidy.settings.deniedTags&&this.tidy.settings.allowedTags&&this.tidy.$div.find("*").not(this.tidy.settings.allowedTags.join(",")).contents().unwrap(),this.tidy.settings.deniedTags&&this.tidy.$div.find(this.tidy.settings.deniedTags.join(",")).contents().unwrap()},removeAttr:function(){var e;if(!this.tidy.settings.removeAttr&&this.tidy.settings.allowedAttr){var i=[],n=[];e=this.tidy.settings.allowedAttr.length;for(var o=0;o<e;o++)i.push(this.tidy.settings.allowedAttr[o][0]),n.push(this.tidy.settings.allowedAttr[o][1]);this.tidy.$div.find("*").each(t.proxy(function(e,o){var s=t(o),r=t.inArray(s[0].tagName.toLowerCase(),i),a=this.tidy.removeAttrGetRemoves(r,n,s);a&&t.each(a,function(t,e){s.removeAttr(e)})},this))}if(this.tidy.settings.removeAttr){e=this.tidy.settings.removeAttr.length;for(var o=0;o<e;o++){var s=this.tidy.settings.removeAttr[o][1];t.isArray(s)&&(s=s.join(" ")),this.tidy.$div.find(this.tidy.settings.removeAttr[o][0]).removeAttr(s)}}},removeAttrGetRemoves:function(e,i,n){var o=[];return e==-1?t.each(n[0].attributes,function(t,e){o.push(e.name)}):"*"==i[e]?o=[]:t.each(n[0].attributes,function(n,s){t.isArray(i[e])?t.inArray(s.name,i[e])==-1&&o.push(s.name):i[e]!=s.name&&o.push(s.name)}),o},removeAttrs:function(e,i){return i=new RegExp(i,"g"),e.each(function(){for(var e=t
6(this),n=this.attributes.length-1,o=n;o>=0;o--){var s=this.attributes[o];s&&s.specified&&s.name.search(i)>=0&&e.removeAttr(s.name)}})},removeEmpty:function(){this.tidy.settings.removeEmpty&&this.tidy.$div.find(this.tidy.settings.removeEmpty.join(",")).each(function(){var e=t(this),i=e.text();i=i.replace(/[\u200B-\u200D\uFEFF]/g,""),i=i.replace(/&nbsp;/gi,""),i=i.replace(/\s/g,""),""===i&&0===e.children().length&&e.remove()})},removeParagraphsInLists:function(){this.tidy.$div.find("li p").contents().unwrap()},removeDataAttr:function(){if(this.tidy.settings.removeDataAttr){var e=this.tidy.settings.removeDataAttr;t.isArray(this.tidy.settings.removeDataAttr)&&(e=this.tidy.settings.removeDataAttr.join(",")),this.tidy.removeAttrs(this.tidy.$div.find(e),"^(data-)")}},removeWithoutAttr:function(){this.tidy.settings.removeWithoutAttr&&this.tidy.$div.find(this.tidy.settings.removeWithoutAttr.join(",")).each(function(){0===this.attributes.length&&t(this).contents().unwrap()})}}},paragraphize:function(){return{load:function(e){return this.opts.linebreaks?e:""===e||"<p></p>"===e?this.opts.emptyHtml:(this.paragraphize.blocks=["table","div","pre","form","ul","ol","h1","h2","h3","h4","h5","h6","dl","blockquote","figcaption","address","section","header","footer","aside","article","object","style","script","iframe","select","input","textarea","button","option","map","area","math","hr","fieldset","legend","hgroup","nav","figure","details","menu","summary","p"],e+="\n",this.paragraphize.safes=[],this.paragraphize.z=0,e=e.replace(/(<br\s?\/?>){1,}\n?<\/blockquote>/gi,"</blockquote>"),e=this.paragraphize.getSafes(e),e=this.paragraphize.getSafesComments(e),e=this.paragraphize.replaceBreaksToNewLines(e),e=this.paragraphize.replaceBreaksToParagraphs(e),e=this.paragraphize.clear(e),e=this.paragraphize.restoreSafes(e),e=e.replace(new RegExp("<br\\s?/?>\n?<("+this.paragraphize.blocks.join("|")+")(.*?[^>])>","gi"),"<p><br /></p>\n<$1$2>"),t.trim(e))},getSafes:function(e){var i=t("<div />").append(e);return i.find("blockquote p").replaceWith(function(){return t(this).append("<br />").contents()}),e=i.html(),i.find(this.paragraphize.blocks.join(", ")).each(t.proxy(function(t,i){this.paragraphize.z++,this.paragraphize.safes[this.paragraphize.z]=i.outerHTML,e=e.replace(i.outerHTML,"\n{replace"+this.paragraphize.z+"}")},this)),e},getSafesComments:function(e){var i=e.match(/<!--([\w\W]*?)-->/gi);return i?(t.each(i,t.proxy(function(t,i){this.paragraphize.z++,this.paragraphize.safes[this.paragraphize.z]=i,e=e.replace(i,"\n{replace"+this.paragraphize.z+"}")},this)),e):e},restoreSafes:function(e){return t.each(this.paragraphize.safes,function(t,i){e=e.replace("{replace"+t+"}",i)}),e},replaceBreaksToParagraphs:function(t){var e=t.split(new RegExp("\n","g"),-1);if(t="",e)for(var i=e.length,n=0;n<i;n++){if(!e.hasOwnProperty(n))return;e[n].search("{replace")==-1?(e[n]=e[n].replace(/<p>\n\t?<\/p>/gi,""),e[n]=e[n].replace(/<p><\/p>/gi,""),""!==e[n]&&(t+="<p>"+e[n].replace(/^\n+|\n+$/g,"")+"</p>")):t+=e[n]}return t},replaceBreaksToNewLines:function(t){return t=t.replace(/<br \/>\s*<br \/>/gi,"\n\n"),t=t.replace(/<br\s?\/?>\n?<br\s?\/?>/gi,"\n<br /><br />"),t=t.replace(new RegExp("\r\n","g"),"\n"),t=t.replace(new RegExp("\r","g"),"\n"),t=t.replace(new RegExp("/\n\n+/"),"g","\n\n")},clear:function(t){return t=t.replace(new RegExp("</blockquote></p>","gi"),"</blockquote>"),t=t.replace(new RegExp("<p></blockquote>","gi"),"</blockquote>"),t=t.replace(new RegExp("<p><blockquote>","gi"),"<blockquote>"),t=t.replace(new RegExp("<blockquote></p>","gi"),"<blockquote>"),t=t.replace(new RegExp("<p><p ","gi"),"<p "),t=t.replace(new RegExp("<p><p>","gi"),"<p>"),t=t.replace(new RegExp("</p></p>","gi"),"</p>"),t=t.replace(new RegExp("<p>\\s?</p>","gi"),""),t=t.replace(new RegExp("\n</p>","gi"),"</p>"),t=t.replace(new RegExp("<p>\t?\t?\n?<p>","gi"),"<p>"),t=t.replace(new RegExp("<p>\t*</p>","gi"),"")}}},tabifier:function(){return{get:function(t){if(!this.opts.tabifier)return t;var e=["area","body","head","hr","i?frame","link","meta","noscript","style","script","table","tbody","thead","tfoot"],i=["li","dt","dt","h[1-6]","option","script"],n=["blockquote","div","dl","fieldset","form","frameset","map","ol","p","pre","select","td","th","tr","ul"];this.tabifier.lineBefore=new RegExp("^<(/?"+e.join("|/?")+"|"+i.join("|")+")[ >]"),this.tabifier.lineAfter=new RegExp("^<(br|/?"+e.join("|/?")+"|/"+i.join("|/")+")[ >]"),this.tabifier.newLevel=new RegExp("^</?("+n.join("|")+")[ >]");var o=0,s=t.length,r=0,a=null,l=null,c="",h="",d="";for(this.tabifier.cleanlevel=0;o<s;o++){if(r=o,-1==t.substr(o).indexOf("<"))return h+=t.substr(o),this.tabifier.finish(h);for(;r<s&&"<"!=t.charAt(r);)r++;for(o!=r&&(d=t.substr(o,r-o),d.match(/^\s{2,}
6$/g)||("\n"==h.charAt(h.length-1)?h+=this.tabifier.getTabs():"\n"==d.charAt(0)&&(h+="\n"+this.tabifier.getTabs(),d=d.replace(/^\s+/,"")),h+=d),d.match(/\n/)&&(h+="\n"+this.tabifier.getTabs())),a=r;r<s&&">"!=t.charAt(r);)r++;c=t.substr(a,r-a),o=r;var u;if("!--"==c.substr(1,3)){if(!c.match(/--$/)){for(;"-->"!=t.substr(r,3);)r++;r+=2,c=t.substr(a,r-a),o=r}"\n"!=h.charAt(h.length-1)&&(h+="\n"),h+=this.tabifier.getTabs(),h+=c+">\n"}else"!"==c[1]?h=this.tabifier.placeTag(c+">",h):"?"==c[1]?h+=c+">\n":(u=c.match(/^<(script|style|pre)/i))?(u[1]=u[1].toLowerCase(),c=this.tabifier.cleanTag(c),h=this.tabifier.placeTag(c,h),l=String(t.substr(o+1)).toLowerCase().indexOf("</"+u[1]),l&&(d=t.substr(o+1,l),o+=l,h+=d)):(c=this.tabifier.cleanTag(c),h=this.tabifier.placeTag(c,h))}return this.tabifier.finish(h)},getTabs:function(){for(var t="",e=0;e<this.tabifier.cleanlevel;e++)t+="\t";return t},finish:function(t){return t=t.replace(/\n\s*\n/g,"\n"),t=t.replace(/^[\s\n]*/,""),t=t.replace(/[\s\n]*$/,""),t=t.replace(/<script(.*?)>\n<\/script>/gi,"<script$1></script>"),this.tabifier.cleanlevel=0,t},cleanTag:function(t){var e="";t=t.replace(/\n/g," "),t=t.replace(/\s{2,}/g," "),t=t.replace(/^\s+|\s+$/g," ");var i="";t.match(/\/$/)&&(i="/",t=t.replace(/\/+$/,""));for(var n;n=/\s*([^= ]+)(?:=((['"']).*?\3|[^ ]+))?/.exec(t);)n[2]?e+=n[1].toLowerCase()+"="+n[2]:n[1]&&(e+=n[1].toLowerCase()),e+=" ",t=t.substr(n[0].length);return e.replace(/\s*$/,"")+i+">"},placeTag:function(t,e){var i=t.match(this.tabifier.newLevel);return(t.match(this.tabifier.lineBefore)||i)&&(e=e.replace(/\s*$/,""),e+="\n"),i&&"/"==t.charAt(1)&&this.tabifier.cleanlevel--,"\n"==e.charAt(e.length-1)&&(e+=this.tabifier.getTabs()),i&&"/"!=t.charAt(1)&&this.tabifier.cleanlevel++,e+=t,(t.match(this.tabifier.lineAfter)||t.match(this.tabifier.newLevel))&&(e=e.replace(/ *$/,""),e+="\n"),e}}},focus:function(){return{setStart:function(){this.$editor.focus();var t=this.$editor.children().first();if(0!==t.length&&0!==t[0].length&&"BR"!=t[0].tagName&&3!=t[0].nodeType){if("UL"==t[0].tagName||"OL"==t[0].tagName){t=t.find("li").first();var e=t.children().first();if(!this.utils.isBlock(e)&&""==e.text())return void this.caret.setStart(e)}return this.opts.linebreaks&&!this.utils.isBlockTag(t[0].tagName)?(this.selection.get(),this.range.setStart(this.$editor[0],0),this.range.setEnd(this.$editor[0],0),void this.selection.addRange()):void this.caret.setStart(t)}},setEnd:function(){if(this.utils.browser("mozilla")||this.utils.browser("msie")){var t=this.$editor.children().last();this.caret.setEnd(t)}else{this.selection.get();try{this.range.selectNodeContents(this.$editor[0]),this.range.collapse(!1),this.selection.addRange()}catch(e){}}},isFocused:function(){var e=document.getSelection().focusNode;return null!==e&&(!(!this.opts.linebreaks||!t(e.parentNode).hasClass("redactor-linebreaks"))||!!this.utils.isRedactorParent(e.parentNode)&&this.$editor.is(":focus"))}}},placeholder:function(){return{enable:function(){this.placeholder.is()&&(this.$editor.attr("placeholder",this.$element.attr("placeholder")),this.placeholder.toggle(),this.$editor.on("keyup.redactor-placeholder",t.proxy(this.placeholder.toggle,this)))},toggle:function(){var t="removeClass";this.utils.isEmpty(this.$editor.html(),!1)&&(t="addClass"),this.$editor[t]("redactor-placeholder")},remove:function(){this.$editor.removeClass("redactor-placeholder")},is:function(){return this.opts.placeholder?this.$element.attr("placeholder",this.opts.placeholder):!("undefined"==typeof this.$element.attr("placeholder")||""===this.$element.attr("placeholder"))}}},autosave:function(){return{enable:function(){this.opts.autosave&&(this.autosave.html=!1,this.autosave.name=this.opts.autosaveName?this.opts.autosaveName:this.$textarea.attr("name"),this.opts.autosaveOnChange||(this.autosaveInterval=setInterval(t.proxy(this.autosave.load,this),1e3*this.opts.autosaveInterval)))},onChange:function(){this.opts.autosaveOnChange&&this.autosave.load()},load:function(){var e=this.code.get();this.autosave.html!==e&&(this.utils.isEmpty(e)||t.ajax({url:this.opts.autosave,type:"post",data:"name="+this.autosave.name+"&"+this.autosave.name+"="+escape(encodeURIComponent(e)),success:t.proxy(function(t){this.autosave.success(t,e)},this)}))},success:function(e,i){var n;try{n=t.parseJSON(e)}catch(o){n=e}var s="undefined"==typeof n.error?"autosave":"autosaveError";this.core.setCallback(s,this.autosave.name,n),this.autosave.html=i},disable:function(){clearInterval(this.autosaveInterval)}}},buffer:function(){return{set:function(t){"undefined"==typeof t||"undo"==t?this.buffer.setUndo():this.buffer.setRedo()},setUndo:function(){this.selection.save(),this.opts.buffer.push(this.$editor.html()),this.selection.restore(
6)},setRedo:function(){this.selection.save(),this.opts.rebuffer.push(this.$editor.html()),this.selection.restore()},getUndo:function(){this.$editor.html(this.opts.buffer.pop())},getRedo:function(){this.$editor.html(this.opts.rebuffer.pop())},add:function(){this.opts.buffer.push(this.$editor.html())},undo:function(){0!==this.opts.buffer.length&&(this.buffer.set("redo"),this.buffer.getUndo(),this.selection.restore(),setTimeout(t.proxy(this.observe.load,this),50))},redo:function(){0!==this.opts.rebuffer.length&&(this.buffer.set("undo"),this.buffer.getRedo(),this.selection.restore(),setTimeout(t.proxy(this.observe.load,this),50))}}},indent:function(){return{increase:function(){this.utils.browser("msie")||this.$editor.focus(),this.buffer.set(),this.selection.save();var t=this.selection.getBlock();t&&"LI"==t.tagName?this.indent.increaseLists():t===!1&&this.opts.linebreaks?this.indent.increaseText():this.indent.increaseBlocks(),this.selection.restore(),this.code.sync()},increaseLists:function(){document.execCommand("indent"),this.indent.fixEmptyIndent(),this.clean.normalizeLists(),this.clean.clearUnverified()},increaseBlocks:function(){t.each(this.selection.getBlocks(),t.proxy(function(t,e){if("TD"!==e.tagName&&"TH"!==e.tagName){var i=this.utils.getAlignmentElement(e),n=this.utils.normalize(i.css("margin-left"))+this.opts.indentValue;i.css("margin-left",n+"px")}},this))},increaseText:function(){var e=this.selection.wrap("div");t(e).attr("data-tagblock","redactor"),t(e).css("margin-left",this.opts.indentValue+"px")},decrease:function(){this.buffer.set(),this.selection.save();var t=this.selection.getBlock();t&&"LI"==t.tagName?this.indent.decreaseLists():this.indent.decreaseBlocks(),this.selection.restore(),this.code.sync()},decreaseLists:function(){document.execCommand("outdent");var e=this.selection.getCurrent(),i=t(e).closest("li"),n=i.parent();0!==i.length&&0!==n.length&&"LI"==n[0].tagName&&n.after(i),this.indent.fixEmptyIndent(),this.opts.linebreaks||0!==i.length||(document.execCommand("formatblock",!1,"p"),this.$editor.find("ul, ol, blockquote, p").each(t.proxy(this.utils.removeEmpty,this))),this.clean.clearUnverified()},decreaseBlocks:function(){t.each(this.selection.getBlocks(),t.proxy(function(t,e){var i=this.utils.getAlignmentElement(e),n=this.utils.normalize(i.css("margin-left"))-this.opts.indentValue;n<=0?this.opts.linebreaks&&"undefined"!=typeof i.data("tagblock")?i.replaceWith(i.html()+"<br />"):(i.css("margin-left",""),this.utils.removeEmptyAttr(i,"style")):i.css("margin-left",n+"px")},this))},fixEmptyIndent:function(){var e=this.selection.getBlock();if(this.range.collapsed&&e&&"LI"==e.tagName&&this.utils.isEmpty(t(e).text())){var i=t(e);i.find("span").not(".redactor-selection-marker").contents().unwrap(),i.append("<br>")}}}},alignment:function(){return{left:function(){this.alignment.set("")},right:function(){this.alignment.set("right")},center:function(){this.alignment.set("center")},justify:function(){this.alignment.set("justify")},set:function(t){this.utils.browser("msie")||this.$editor.focus(),this.buffer.set(),this.selection.save(),this.alignment.blocks=this.selection.getBlocks(),this.opts.linebreaks&&this.alignment.blocks[0]===!1?this.alignment.setText(t):this.alignment.setBlocks(t),this.selection.restore(),this.code.sync()},setText:function(e){var i=this.selection.wrap("div");t(i).attr("data-tagblock","redactor"),t(i).css("text-align",e)},setBlocks:function(e){t.each(this.alignment.blocks,t.proxy(function(t,i){var n=this.utils.getAlignmentElement(i);n&&(""===e&&"undefined"!=typeof n.data("tagblock")?n.replaceWith(n.html()):(n.css("text-align",e),this.utils.removeEmptyAttr(n,"style")))},this))}}},paste:function(){return{init:function(e){this.opts.cleanOnPaste&&(this.rtePaste=!0,this.buffer.set(),this.selection.save(),this.utils.saveScroll(),this.paste.createPasteBox(),t(window).on("scroll.redactor-freeze",t.proxy(function(){t(window).scrollTop(this.saveBodyScroll)},this)),setTimeout(t.proxy(function(){var e=this.$pasteBox.html();this.$pasteBox.remove(),this.selection.restore(),this.utils.restoreScroll(),this.paste.insert(e),t(window).off("scroll.redactor-freeze")},this),1))},createPasteBox:function(){this.$pasteBox=t("<div>").html(" ").attr("contenteditable","true").css({position:"fixed",width:0,top:0,left:"-9999px"}),t(document.body).append(this.$pasteBox),this.$pasteBox.focus()},insert:function(e){e=this.core.setCallback("pasteBefore",e),e=this.utils.isSelectAll()?this.clean.onPaste(e,!1):this.clean.onPaste(e),e=this.core.setCallback("paste",e),this.utils.isSelectAll()?this.insert.set(e,!1):this.insert.html(e,!1),this.utils.disableSelectAll(),this.rtePaste=!1,setTimeout(t.proxy(this.clean.clearUnverified,this),10)}}},keydown:function(){return{init:function(e){if(!this.rtePaste){var i=e.which,n=i>=37&&i<=40;this.keydown.ctrl=e.ctrlKey||e.metaKey,this.keydown.current=this.selection.getCurrent(),this.keydown.parent=this.selection.getParent(),this.keydown.block=this.selection.getBlock(),this.keydown.pre=this.utils.isTag(this.keydown.current,"pre"),this.keydown.blockquote=this.utils.isTag(this.keydown.current,"blockquote"),this.keydown.figcaption=this.utils.isTag(this.keydown.current,"figcaption"),this.shortcuts.init(e,i),this.keydown.checkEvents(n,i),this.keydown.setupBuffer(e,i),this.keydown.addArrowsEvent(n),this.keydown.setupSelectAll(e,i);var o=this.core.setCallback("keydown",e);if(o===!1)return e.preventDefault(),!1;if(this.opts.enterKey&&i===this.keyCode.DOWN&&this.keydown.onArrowDown(),!this.opts.enterKey&&i===this.keyCode.ENTER)return e.preventDefault(),void(this.range.collapsed||this.range.deleteContents());if(i==this.keyCode.ENTER&&!e.shiftKey&&!e.ctrlKey&&!e.metaKey){var s=this.core.setCallback("enter",e);if(s===!1)return e.preventDefault(),!1;if(this.keydown.blockquote&&this.keydown.exitFromBlockquote(e)===!0)return!1;var r,a;if(this.keydown.pre)return this.keydown.insertNewLine(e);if(this.keydown.blockquote||this.keydown.figcaption)return r=this.selection.getCurrent(),a=t(r).next(),0!==a.length&&"BR"==a[0].tagName?this.keydown.insertBreakLine(e):this.utils.isEndOfElement()&&r&&"SPAN"!=r?this.keydown.insertDblBreakLine(e):this.keydown.insertBreakLine(e);if(this.opts.linebreaks&&!this.keydown.block)return r=this.selection.getCurrent(),a=t(this.keydown.current).next(),r!==!1&&t(r).hasClass("redactor-invisible-space")?(t(r).remove(),this.keydown.insertDblBreakLine(e)):0===a.length&&r===!1&&"undefined"!=typeof a.context?this.keydown.insertDblBreakLine(e):this.keydown.insertBreakLine(e);if(this.opts.linebreaks&&this.keydown.block)setTimeout(t.proxy(this.keydown.replaceDivToBreakLine,this),1);else if(!this.opts.linebreaks&&this.keydown.block&&"LI"!==this.keydown.block.tagName)setTimeout(t.proxy(this.keydown.replaceDivToParagraph,this),1);else if(!this.opts.linebreaks&&!this.keydown.block)return this.keydown.insertParagraph(e)}if(i===this.keyCode.ENTER&&(e.ctrlKey||e.shiftKey))return this.keydown.onShiftEnter(e);if(i===this.keyCode.TAB||e.metaKey&&221===i||e.metaKey&&219===i)return this.keydown.onTab(e,i);if(i===this.keyCode.BACKSPACE||i===this.keyCode.DELETE){var l=this.selection.getNodes();if(l)for(var c,h=l.length,d=0;d<h;d++){var u=t(l[d]).children("img");if(0!==u.length){var p=this;t.each(u,function(e,i){var n=t(i);"none"==n.css("float")&&(p.core.setCallback("imageDelete",i.src,n),c=i)})}
6else"IMG"==l[d].tagName&&c!=l[d]&&(this.core.setCallback("imageDelete",l[d].src,t(l[d])),c=l[d])}}i===this.keyCode.BACKSPACE&&(this.keydown.removeInvisibleSpace(),this.keydown.removeEmptyListInTable(e)),this.code.sync()}},checkEvents:function(t,e){t||"click"!=this.core.getEvent()&&"arrow"!=this.core.getEvent()||(this.core.addEvent(!1),this.keydown.checkKeyEvents(e)&&this.buffer.set())},checkKeyEvents:function(e){var i=this.keyCode,n=[i.BACKSPACE,i.DELETE,i.ENTER,i.SPACE,i.ESC,i.TAB,i.CTRL,i.META,i.ALT,i.SHIFT];return t.inArray(e,n)==-1},addArrowsEvent:function(t){if(t)return"click"==this.core.getEvent()||"arrow"==this.core.getEvent()?void this.core.addEvent(!1):void this.core.addEvent("arrow")},setupBuffer:function(t,e){return this.keydown.ctrl&&90===e&&!t.shiftKey&&!t.altKey&&this.opts.buffer.length?(t.preventDefault(),void this.buffer.undo()):this.keydown.ctrl&&90===e&&t.shiftKey&&!t.altKey&&0!==this.opts.rebuffer.length?(t.preventDefault(),void this.buffer.redo()):void(this.keydown.ctrl||e!=this.keyCode.BACKSPACE&&e!=this.keyCode.DELETE&&(e!=this.keyCode.ENTER||t.ctrlKey||t.shiftKey)&&e!=this.keyCode.SPACE||this.buffer.set())},setupSelectAll:function(t,e){this.keydown.ctrl&&65===e?this.utils.enableSelectAll():e==this.keyCode.LEFT_WIN||this.keydown.ctrl||this.utils.disableSelectAll()},onArrowDown:function(){for(var t=[this.keydown.blockquote,this.keydown.pre,this.keydown.figcaption],e=0;e<t.length;e++)if(t[e])return this.keydown.insertAfterLastElement(t[e]),!1},onShiftEnter:function(t){return this.buffer.set(),this.keydown.blockquote&&this.utils.isEndOfElement()?this.keydown.insertDblBreakLine(t):this.keydown.insertBreakLine(t)},onTab:function(t,e){if(!this.opts.tabFocus)return!0;if(this.utils.isEmpty(this.code.get())&&this.opts.tabAsSpaces===!1)return!0;t.preventDefault();var i;return this.keydown.pre&&!t.shiftKey?(i=this.opts.preSpaces?document.createTextNode(Array(this.opts.preSpaces+1).join(" ")):document.createTextNode("\t"),this.insert.node(i),this.code.sync()):this.opts.tabAsSpaces!==!1?(i=document.createTextNode(Array(this.opts.tabAsSpaces+1).join(" ")),this.insert.node(i),this.code.sync()):t.metaKey&&219===e?this.indent.decrease():t.metaKey&&221===e?this.indent.increase():t.shiftKey?this.indent.decrease():this.indent.increase(),!1},replaceDivToBreakLine:function(){var e=this.selection.getBlock(),i=e.innerHTML.replace(/<br\s?\/?>/gi,"");if(("DIV"===e.tagName||"P"===e.tagName)&&""===i&&!t(e).hasClass("redactor-editor")){var n=document.createElement("br");return t(e).replaceWith(n),this.caret.setBefore(n),this.code.sync(),!1}},replaceDivToParagraph:function(){var e=this.selection.getBlock(),i=e.innerHTML.replace(/<br\s?\/?>/gi,"");if("DIV"===e.tagName&&""===i&&!t(e).hasClass("redactor-editor")){var n=document.createElement("p");return n.innerHTML=this.opts.invisibleSpace,t(e).replaceWith(n),this.caret.setStart(n),this.code.sync(),!1}this.opts.cleanStyleOnEnter&&"P"==e.tagName&&t(e).removeAttr("class").removeAttr("style")},insertParagraph:function(t){t.preventDefault(),this.selection.get();var e=document.createElement("p");return e.innerHTML=this.opts.invisibleSpace,this.range.deleteContents(),this.range.insertNode(e),this.caret.setStart(e),this.code.sync(),!1},exitFromBlockquote:function(e){if(this.utils.isEndOfElement()){var i=t.trim(t(this.keydown.block).html());if(i.search(/(<br\s?\/?>){2}$/i)!=-1){if(e.preventDefault(),this.opts.linebreaks){var n=document.createElement("br");t(this.keydown.blockquote).after(n),this.caret.setBefore(n),t(this.keydown.block).html(i.replace(/<br\s?\/?>$/i,""))}else{var o=t(this.opts.emptyHtml);t(this.keydown.blockquote).after(o),this.caret.setStart(o)}return!0}}},insertAfterLastElement:function(e){if(this.utils.isEndOfElement())if(this.buffer.set(),this.opts.linebreaks){var i=t("<div>").append(t.trim(this.$editor.html())).contents(),n=i.last()[0];if("SPAN"==n.tagName&&""===n.innerHTML&&(n=i.prev()[0]),this.utils.getOuterHtml(n)!=this.utils.getOuterHtml(e))return;var o=document.createElement("br");t(e).after(o),this.caret.setAfter(o)}else{if(this.$editor.contents().last()[0]!==e)return;var s=t(this.opts.emptyHtml);t(e).after(s),this.caret.setStart(s)}},insertNewLine:function(t){t.preventDefault();var e=document.createTextNode("\n");return this.selection.get(),this.range.deleteContents(),this.range.insertN
6ode(e),this.caret.setAfter(e),this.code.sync(),!1},insertBreakLine:function(t){return this.keydown.insertBreakLineProcessing(t)},insertDblBreakLine:function(t){return this.keydown.insertBreakLineProcessing(t,!0)},insertBreakLineProcessing:function(t,e){t.stopPropagation(),this.selection.get();var i=document.createElement("br");if(this.range.deleteContents(),this.range.insertNode(i),e===!0){var n=document.createElement("br");this.range.insertNode(n),this.caret.setAfter(n)}else this.caret.setAfter(i);return this.code.sync(),!1},removeInvisibleSpace:function(){var e=t(this.keydown.current);0===e.text().search(/^\u200B$/g)&&e.remove()},removeEmptyListInTable:function(e){var i=t(this.keydown.current),n=t(this.keydown.parent),o=i.closest("td");if(0!==o.length&&i.closest("li")&&1===n.children("li").length){if(!this.utils.isEmpty(i.text()))return;e.preventDefault(),i.remove(),n.remove(),this.caret.setStart(o)}}}},keyup:function(){return{init:function(e){if(!this.rtePaste){var i=e.which;this.keyup.current=this.selection.getCurrent(),this.keyup.parent=this.selection.getParent();var n=this.utils.isRedactorParent(t(this.keyup.parent).parent()),o=this.core.setCallback("keyup",e);return o===!1?(e.preventDefault(),!1):(!this.opts.linebreaks&&3==this.keyup.current.nodeType&&this.keyup.current.length<=1&&(this.keyup.parent===!1||"BODY"==this.keyup.parent.tagName)&&this.keyup.replaceToParagraph(),!t(this.keyup.parent).hasClass("redactor-invisible-space")||n!==!1&&"BODY"!=n[0].tagName||(t(this.keyup.parent).contents().unwrap(),this.keyup.replaceToParagraph()),this.opts.convertLinks&&(this.opts.convertUrlLinks||this.opts.convertImageLinks||this.opts.convertVideoLinks)&&i===this.keyCode.ENTER&&(this.formatLinkify(this.opts.linkProtocol,this.opts.convertLinks,this.opts.convertUrlLinks,this.opts.convertImageLinks,this.opts.convertVideoLinks,this.opts.linkSize),this.observe.load(),this.code.sync()),i===this.keyCode.DELETE||i===this.keyCode.BACKSPACE?(this.clean.clearUnverified(),this.observe.image?(e.preventDefault(),this.image.hideResize(),this.buffer.set(),this.image.remove(this.observe.image),this.observe.image=!1,!1):(this.$editor.find("p").each(t.proxy(this.utils.removeEmpty,this)),this.keyup.current&&"DIV"==this.keyup.current.tagName&&this.utils.isEmpty(this.keyup.current.innerHTML)&&this.opts.linebreaks&&(t(this.keyup.current).after(this.selection.getMarkerAsHtml()),this.selection.restore(),t(this.keyup.current).remove()),this.keyup.formatEmpty(e))):void 0)}},replaceToParagraph:function(){var e=t(this.keyup.current),i=t("<p>").append(e.clone());e.replaceWith(i);var n=t(i).next();"undefined"!=typeof n[0]&&"BR"==n[0].tagName&&n.remove(),this.caret.setEnd(i)},formatEmpty:function(e){var i=t.trim(this.$editor.html());if(this.utils.isEmpty(i))return e.preventDefault(),this.opts.linebreaks?(this.$editor.html(this.selection.getMarkerAsHtml()),this.selection.restore()):(i="<p><br /></p>",this.$editor.html(i),this.focus.setStart()),this.code.sync(),!1}}},shortcuts:function(){return{init:function(e,i){return this.opts.shortcuts?void t.each(this.opts.shortcuts,t.proxy(function(i,n){for(var o=i.split(","),s=o.length,r=0;r<s;r++)"string"==typeof o[r]&&this.shortcuts.handler(e,t.trim(o[r]),t.proxy(function(){var t;"-1"!=n.func.search(/\./)?(t=n.func.split("."),"undefined"!=typeof this[t[0]]&&this[t[0]][t[1]].apply(this,n.params)):this[n.func].apply(this,n.params)},this))},this)):(!e.ctrlKey&&!e.metaKey||66!==i&&73!==i||e.preventDefault(),!1)},handler:function(e,i,n){var o={8:"backspace",9:"tab",10:"return",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},s={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":": ","'":'"',",":"<",".":">","/":"?","\\":"|"};i=i.toLowerCase().split(" ");var r=o[e.keyCode],a=String.fromCharCode(e.which).toLowerCase(),l="",c={};t.each(["alt","ctrl","meta","shift"],function(t,i){e[i+"Key"]&&r!==i&&(l+=i+"+")}),r&&(c[l+r]=!0),a&&(c[l+a]=!0,c[l+s[a]]=!0,"shift+"===l&&(c[s[a]]=!0));for(var h=0,d=i.length;h<d;h++)if(c[i[h]])return e.preventDefault(),n.apply(this,arguments)}}},line:function(){return{insert:function(){this.buffer.set();var t=this.selection.getBlocks();return t[0]!==!1&&this.line.isExceptLastOrFirst(t)?void(this.utils.browser("msie")||this.$editor.focus()):void(this.utils.browser("msie")?this.line.insertInIe():this.line.insertInOthersBrowsers())},isExceptLastOrFirst:function(e){var i=["li","td","th","blockquote","figcaption","pre","dl","dt","dd"],n=e[0].tagName.toLowerCase(),o=this.selection.getLastBlock();o="undefined"==typeof o?n:o.tagName.toLowerCase();var s=t.inArray(n,i)!=-1,r=t.inArray(o,i)!=-1;if(s&&r||s)return!0},insertInIe:function(){this.utils.saveScroll(),this.buffer.set(),this.insert.node(document.createElement("hr")),this.utils.restoreScroll(),this.code.sync()},insertInOthersBrowsers:function(){this.buffer.set();var t='<p id="redactor-insert-line"><br /></p>';this.opts.linebreaks&&(t='<br id="redactor-insert-line">'),document.execCommand("insertHTML",!1,"<hr>"+t),this.line.setFocus(),this.code.sync()},setFocus:function(){var e=this.$editor.find("#redactor-insert-line"),i=t(e).next()[0];i?(this.caret.setAfter(e),e.remove()):e.removeAttr("id")}}},list:function(){return{toggle:function(e){this.utils.browser("msie")||this.$editor.focus(),this.buffer.set(),this.selection.save();var i=this.selection.getParent(),n=t(i).closest("ol, ul");this.utils.isRedactorParent(n)||0===n.length||(n=!1);var o,s,r=!1;if(n&&n.length){r=!0;var a=n[0].tagName;o="orderedlist"===e&&"UL"===a,s="unorderedlist"===e&&"OL"===a}o?this.utils.replaceToTag(n,"ol"):s?this.utils.replaceToTag(n,"ul"):r?this.list.remove(e):this.list.insert(e),this.selection.restore(
6),this.code.sync()},insert:function(e){this.utils.browser("msie")&&this.opts.linebreaks?this.list.insertInIe(e):document.execCommand("insert"+e);var i=this.selection.getParent(),n=t(i).closest("ol, ul");if(this.utils.isEmpty(n.find("li").text())){var o=n.children("li");o.find("br").remove(),o.append(this.selection.getMarkerAsHtml())}if(n.length){var s=n.parent();this.utils.isRedactorParent(s)&&"LI"!=s[0].tagName&&this.utils.isBlock(s[0])&&s.replaceWith(s.contents())}this.utils.browser("msie")||this.$editor.focus(),this.clean.clearUnverified()},insertInIe:function(e){var i=this.selection.wrap("div"),n=t(i).html(),o=t("orderedlist"==e?"<ol>":"<ul>"),s=t("<li>");if(""===t.trim(n))s.append(this.selection.getMarkerAsHtml()),o.append(s),this.$editor.find("#selection-marker-1").replaceWith(o);else{var r=n.split(/<br\s?\/?>/gi);if(r)for(var a=0;a<r.length;a++)""!==t.trim(r[a])&&o.append(t("<li>").html(r[a]));else s.append(n),o.append(s);t(i).replaceWith(o)}},remove:function(e){document.execCommand("insert"+e);var i=t(this.selection.getCurrent());this.indent.fixEmptyIndent(),this.opts.linebreaks||0!==i.closest("li, th, td").length||(document.execCommand("formatblock",!1,"p"),this.$editor.find("ul, ol, blockquote, p").each(t.proxy(this.utils.removeEmpty,this)));var n=t(this.selection.getCurrent()).closest("table"),o=n.prev();this.opts.linebreaks||0===n.length||0===o.length||"BR"!=o[0].tagName||o.remove(),this.clean.clearUnverified()}}},block:function(){return{formatting:function(t){var e,i;"undefined"!=typeof this.formatting[t].data?e="data":"undefined"!=typeof this.formatting[t].attr?e="attr":"undefined"!=typeof this.formatting[t]["class"]&&(e="class"),
7e&&(i=this.formatting[t][e]),this.block.format(this.formatting[t].tag,e,i)},format:function(e,i,n){"quote"==e&&(e="blockquote");var o=["p","pre","blockquote","h1","h2","h3","h4","h5","h6"];t.inArray(e,o)!=-1&&(this.block.isRemoveInline="pre"==e||e.search(/h[1-6]/i)!=-1,this.utils.browser("msie")||this.$editor.focus(),this.block.blocks=this.selection.getBlocks(),this.block.blocksSize=this.block.blocks.length,this.block.type=i,this.block.value=n,this.buffer.set(),this.selection.save(),this.block.set(e),this.selection.restore(),this.code.sync())},set:function(t){this.selection.get(),this.block.containerTag=this.range.commonAncestorContainer.tagName,this.range.collapsed?this.block.setCollapsed(t):this.block.setMultiple(t)},setCollapsed:function(e){var i=this.block.blocks[0];if(i!==!1){if("LI"==i.tagName){if("blockquote"!=e)return;return void this.block.formatListToBlockquote()}var n="TD"==this.block.containerTag||"TH"==this.block.containerTag;if(n)this.opts.linebreaks||"p"!=e||(document.execCommand("formatblock",!1,"<"+e+">"),i=this.selection.getBlock(),this.block.toggle(t(i)));else if(i.tagName.toLowerCase()!=e)if(this.opts.linebreaks&&"p"==e)t(i).prepend("<br>").append("<br>"),this.utils.replaceWithContents(i);else{var o=this.utils.replaceToTag(i,e);this.block.toggle(o),"p"!=e&&"blockquote"!=e&&o.find("img").remove(),this.block.isRemoveInline&&this.utils.removeInlineTags(o),("p"==e||this.block.headTag)&&o.find("p").contents().unwrap()}else if("blockquote"==e&&i.tagName.toLowerCase()==e)if(this.opts.linebreaks)t(i).prepend("<br>").append("<br>"),this.utils.replaceWithContents(i);else{var s=this.utils.replaceToTag(i,"p");this.block.toggle(s)}else i.tagName.toLowerCase()==e&&this.block.toggle(t(i))}},setMultiple:function(e){var i=this.block.blocks[0],n="TD"==this.block.containerTag||"TH"==this.block.containerTag;if(i!==!1&&1===this.block.blocksSize)if(i.tagName.toLowerCase()==e&&"blockquote"==e)if(this.opts.linebreaks)t(i).prepend("<br>").append("<br>"),this.utils.replaceWithContents(i);else{var o=this.utils.replaceToTag(i,"p");this.block.toggle(o)}else if("LI"==i.tagName){if("blockquote"!=e)return;this.block.formatListToBlockquote()}else if("BLOCKQUOTE"==this.block.containerTag)this.block.formatBlockquote(e);else if(this.opts.linebreaks&&(n||this.range.commonAncestorContainer!=i))this.block.formatWrap(e);else if(this.opts.linebreaks&&"p"==e)t(i).prepend("<br>").append("<br>"),this.utils.replaceWithContents(i);else{var s=this.utils.replaceToTag(i,e);this.block.toggle(s),this.block.isRemoveInline&&this.utils.removeInlineTags(s),("p"==e||this.block.headTag)&&s.find("p").contents().unwrap()}else if(this.opts.linebreaks||"p"!=e){if("blockquote"==e){for(var r=0,a=0;a<this.block.blocksSize;a++)"BLOCKQUOTE"==this.block.blocks[a].tagName&&r++;if(r==this.block.blocksSize)return void t.each(this.block.blocks,t.proxy(function(e,i){this.opts.linebreaks?(t(i).prepend("<br>").append("<br>"),this.utils.replaceWithContents(i)):this.utils.replaceToTag(i,"p")},this))}this.block.formatWrap(e)}else{var l=0,c=!1;"class"==this.block.type&&(c="toggle",l=t(this.block.blocks).filter("."+this.block.value).length,this.block.blocksSize==l?c="toggle":this.block.blocksSize>l?c="set":0===l&&(c="set"));var h=["ul","ol","li","td","th","dl","dt","dd"];t.each(this.block.blocks,t.proxy(function(i,n){if(t.inArray(n.tagName.toLowerCase(),h)==-1){var o=this.utils.replaceToTag(n,e);c?"toggle"==c?this.block.toggle(o):"remove"==c?this.block.remove(o):"set"==c&&this.block.set2(o):this.block.toggle(o),"p"!=e&&"blockquote"!=e&&o.find("img").remove(),this.block.isRemoveInline&&this.utils.removeInlineTags(o),("p"==e||this.block.headTag)&&o.find("p").contents().unwrap()}},this))}},toggle:function(t){return"class"==this.block.type?void t.toggleClass(this.block.value):"attr"==this.block.type||"data"==this.block.type?void(t.attr(this.block.value.name)==this.block.value.value?t.removeAttr(this.block.value.name):t.attr(this.block.value.name,this.block.value.value)):void t.removeAttr("style class")},remove:function(t){t.removeClass(this.block.value)},formatListToBlockquote:function(){var e=t(this.block.blocks[0]).closest("ul, ol");t(e).find("ul, ol").contents().unwrap(),t(e).find("li").append(t("<br>")).contents().unwrap();var i=this.utils.replaceToTag(e,"blockquote");this.block.toggle(i)}
7,formatBlockquote:function(e){document.execCommand("outdent"),document.execCommand("formatblock",!1,e),this.clean.clearUnverified(),this.$editor.find("p:empty").remove();var i=this.selection.getBlock();"p"!=e&&t(i).find("img").remove(),this.opts.linebreaks||this.block.toggle(t(i)),this.$editor.find("ul, ol, tr, blockquote, p").each(t.proxy(this.utils.removeEmpty,this)),this.opts.linebreaks&&"p"==e&&this.utils.replaceWithContents(i)},formatWrap:function(e){if("UL"==this.block.containerTag||"OL"==this.block.containerTag){if("blockquote"!=e)return;this.block.formatListToBlockquote()}var i=this.selection.wrap(e);if(i!==!1){var n=t(i);this.block.formatTableWrapping(n);var o=n.find(this.opts.blockLevelElements.join(",")+", td, table, thead, tbody, tfoot, th, tr");(this.opts.linebreaks&&"p"==e||"pre"==e||"blockquote"==e)&&o.append("<br />"),o.contents().unwrap(),"p"!=e&&"blockquote"!=e&&n.find("img").remove(),t.each(this.block.blocks,t.proxy(this.utils.removeEmpty,this)),n.append(this.selection.getMarker(2)),this.opts.linebreaks||this.block.toggle(n),this.$editor.find("ul, ol, tr, blockquote, p").each(t.proxy(this.utils.removeEmpty,this)),n.find("blockquote:empty").remove(),this.block.isRemoveInline&&this.utils.removeInlineTags(n),this.opts.linebreaks&&"p"==e&&this.utils.replaceWithContents(n)}},formatTableWrapping:function(t){0!==t.closest("table").length&&(0===t.closest("tr").length&&t.wrap("<tr>"),0===t.closest("td").length&&t.wrap("<td>"))},removeData:function(e,i){var n=this.selection.getBlocks();t(n).removeAttr("data-"+e),this.code.sync()},setData:function(e,i){var n=this.selection.getBlocks();t(n).attr("data-"+e,i),this.code.sync()},toggleData:function(e,i){var n=this.selection.getBlocks();t.each(n,function(){t(this).attr("data-"+e)?t(this).removeAttr("data-"+e):t(this).attr("data-"+e,i)})},removeAttr:function(e,i){var n=this.selection.getBlocks();t(n).removeAttr(e),this.code.sync()},setAttr:function(e,i){var n=this.selection.getBlocks();t(n).attr(e,i),this.code.sync()},toggleAttr:function(e,i){var n=this.selection.getBlocks();t.each(n,function(){t(this).attr(name)?t(this).removeAttr(name):t(this).attr(name,i)})},removeClass:function(e){var i=this.selection.getBlocks();t(i).removeClass(e),this.utils.removeEmptyAttr(i,"class"),this.code.sync()},setClass:function(e){var i=this.selection.getBlocks();t(i).addClass(e),this.code.sync()},toggleClass:function(e){var i=this.selection.getBlocks();t(i).toggleClass(e),this.code.sync()}}},inline:function(){return{formatting:function(t){var e,i;"undefined"!=typeof this.formatting[t].style?e="style":"undefined"!=typeof this.formatting[t]["class"]&&(e="class"),e&&(i=this.formatting[t][e]),this.inline.format(this.formatting[t].tag,e,i)},format:function(t,e,i){if(!this.utils.isCurrentOrParent("PRE")){for(var n=["b","bold","i","italic","underline","strikethrough","deleted","superscript","subscript"],o=["strong","strong","em","em","u","del","del","sup","sub"],s=0;s<n.length;s++)t==n[s]&&(t=o[s]);this.inline.type=e||!1,this.inline.value=i||!1,this.buffer.set(),this.$editor.focus(),this.selection.get(),this.range.collapsed?this.inline.formatCollapsed(t):this.inline.formatMultiple(t)}},formatCollapsed:function(e){var i=this.selection.getCurrent(),n=t(i).closest(e+"[data-redactor-tag="+e+"]");if(0!==n.length)return this.caret.setAfter(n[0]),this.utils.isEmpty(n.text())&&n.remove(),void this.code.sync();var o=t("<"+e+">").attr("data-verified","redactor").attr("data-redactor-tag",e);o.html(this.opts.invisibleSpace),o=this.inline.setFormat(o),this.insert.node(o),this.caret.setEnd(o),this.code.sync()},formatMultiple:function(e){if(this.inline.formatConvert(e),this.selection.save(),document.execCommand("strikethrough"),this.$editor.find("strike").each(t.proxy(function(i,n){var o=t(n);this.inline.formatRemoveSameChildren(o,e);var s;if(this.inline.type?(s=t("<span>").attr("data-redactor-tag",e).attr("data-verified","redactor"),s=this.inline.setFormat(s)):s=t("<"+e+">").attr("data-redactor-tag",e).attr("data-verified","redactor"),o.replaceWith(s.html(o.contents())),"span"==e){var r=s.parent();
7if(r&&"SPAN"==r[0].tagName&&"style"==this.inline.type)for(var a=this.inline.value.split(";"),l=0;l<a.length;l++){if(""===a[l])return;var c=a[l].split(":");r.css(c[0],""),this.utils.removeEmptyAttr(r,"style")&&r.replaceWith(r.contents())}}},this)),"del"!=e){var i=this;this.$editor.find("inline").each(function(t,e){i.utils.replaceToTag(e,"del")})}this.selection.restore(),this.code.sync()},formatRemoveSameChildren:function(e,i){e.children(i).each(function(){var e=t(this);e.hasClass("redactor-selection-marker")||e.contents().unwrap()})},formatConvert:function(e){this.selection.save();var i="";if("class"==this.inline.type?i="[data-redactor-class="+this.inline.value+"]":"style"==this.inline.type&&(i='[data-redactor-style="'+this.inline.value+'"]'),"del"!=e){var n=this;this.$editor.find("del").each(function(t,e){n.utils.replaceToTag(e,"inline")})}this.$editor.find('[data-redactor-tag="'+e+'"]'+i).each(function(){if(""!==i||"span"!=e||this.tagName.toLowerCase()!=e){var n=t(this);n.replaceWith(t("<strike />").html(n.contents()))}}),this.selection.restore()},setFormat:function(t){switch(this.inline.type){case"class":t.hasClass(this.inline.value)?(t.removeClass(this.inline.value),t.removeAttr("data-redactor-class")):(t.addClass(this.inline.value),t.attr("data-redactor-class",this.inline.value));break;case"style":t[0].style.cssText=this.inline.value,t.attr("data-redactor-style",this.inline.value)}return t},removeStyle:function(){this.buffer.set();var e=this.selection.getCurrent(),i=this.selection.getInlines();if(this.selection.save(),e&&"SPAN"===e.tagName){var n=t(e);n.removeAttr("style"),0===n[0].attributes.length&&n.replaceWith(n.contents())}t.each(i,t.proxy(function(e,i){var n=t(i);t.inArray(i.tagName.toLowerCase(),this.opts.inlineTags)==-1||n.hasClass("redactor-selection-marker")||(n.removeAttr("style"),0===n[0].attributes.length&&n.replaceWith(n.contents()))},this)),this.selection.restore(),this.code.sync()},removeStyleRule:function(e){this.buffer.set();var i=this.selection.getParent(),n=this.selection.getInlines();if(this.selection.save(),i&&"SPAN"===i.tagName){var o=t(i);o.css(e,""),this.utils.removeEmptyAttr(o,"style"),0===o[0].attributes.length&&o.replaceWith(o.contents())}t.each(n,t.proxy(function(i,n){var o=t(n);t.inArray(n.tagName.toLowerCase(),this.opts.inlineTags)==-1||o.hasClass("redactor-selection-marker")||(o.css(e,""),this.utils.removeEmptyAttr(o,"style"),0===o[0].attributes.length&&o.replaceWith(o.contents()))},this)),this.selection.restore(),this.code.sync()},removeFormat:function(){this.buffer.set();var e=this.selection.getCurrent();this.selection.save(),document.execCommand("removeFormat"),e&&"SPAN"===e.tagName&&t(e).replaceWith(t(e).contents()),t.each(this.selection.getNodes(),t.proxy(function(e,i){var n=t(i);t.inArray(i.tagName.toLowerCase(),this.opts.inlineTags)==-1||n.hasClass("redactor-selection-marker")||n.replaceWith(n.contents())},this)),this.selection.restore(),this.code.sync()},toggleClass:function(t){this.inline.format("span","class",t)},toggleStyle:function(t){this.inline.format("span","style",t)}}},insert:function(){return{set:function(e,i){this.placeholder.remove(),e=this.clean.setVerified(e),"undefined"==typeof i&&(e=this.clean.onPaste(e,!1)),this.$editor.html(e),this.selection.remove(),this.focus.setEnd(),this.clean.normalizeLists(),this.code.sync(),this.observe.load(),"undefined"==typeof i&&setTimeout(t.proxy(this.clean.clearUnverified,this),10)},text:function(e){if(this.placeholder.remove(),e=e.toString(),e=t.trim(e),e=this.clean.getPlainText(e,!1),this.$editor.focus(),this.utils.browser("msie"))this.insert.htmlIe(e);else{this.selection.get(),this.range.deleteContents();var i=document.createElement("div");i.innerHTML=e;for(var n,o,s=document.createDocumentFragment();n=i.firstChild;)o=s.appendChild(n);if(this.range.insertNode(s),o){var r=this.range.cloneRange();r.setStartAfter(o),r.collapse(!0),this.sel.removeAllRanges(),this.sel.addRange(r)}}this.code.sync(),this.clean.clearUnverified()},html:function(e,i){this.placeholder.remove(),"undefined"==typeof i&&(i=!0),this.$editor.focus(),e=this.clean.setVerified(e),i&&(e=this.clean.onPaste(e)),this.utils.browser("msie")?this.insert.htmlIe(e):(this.clean.singleLine?this.insert.execHtml(e):document.execCommand("insertHTML",null,e),this.insert.htmlFixMozilla()),this.clean.normalizeLists(),this.opts.linebreaks||this.$editor.find("p").each(t.proxy(this.utils.removeEmpty,this)),this.code.sync(),this.observe.load(),i&&this.clean.clearUnverified()},htmlFixMozilla:function(){if(this.utils.browser("mozilla")){var e=t(this.selection.getBlock()).next();e.length>0&&"P"==e[0].tagName&&""===e.html()&&e.remove()}},htmlIe:function(e){if(this.utils.isIe11()){var i=this.utils.isCurrentOrParent("P"),n=t("<div>").append(e),o=n.contents().is("p, :header, dl, ul, ol, div, table, td, blockquote, pre, address, section, header, footer, aside, article");return void(i&&o?this.insert.ie11FixInserting(i,e):this.insert.ie11PasteFrag(e))}document.selection.createRange().pasteHTML(e)},execHtml:function(t){t=this.clean.setVerified(t),this.selection.get(),this.range.deleteContents();var e=document.createElement("div");e.innerHTML=t;for(var i,n,o=document.createDocumentFragment();i=e.firstChild;)n=o.appendChild(i);
7this.range.insertNode(o),this.range.collapse(!0),this.caret.setAfter(n)},node:function(t){return t=t[0]||t,this.selection.get(),this.range.deleteContents(),this.range.insertNode(t),this.range.collapse(!1),this.selection.addRange(),t},nodeToPoint:function(t,e,i){t=t[0]||t,this.selection.get();var n;if(document.caretPositionFromPoint){var o=document.caretPositionFromPoint(e,i);this.range.setStart(o.offsetNode,o.offset),this.range.collapse(!0),this.range.insertNode(t)}else if(document.caretRangeFromPoint)n=document.caretRangeFromPoint(e,i),n.insertNode(t);else if("undefined"!=typeof document.body.createTextRange){n=document.body.createTextRange(),n.moveToPoint(e,i);var s=n.duplicate();s.moveToPoint(e,i),n.setEndPoint("EndToEnd",s),n.select()}},nodeToCaretPositionFromPoint:function(t,e){e=e[0]||e;var i,n=t.clientX,o=t.clientY;if(document.caretPositionFromPoint){var s=document.caretPositionFromPoint(n,o),r=document.getSelection();i=r.getRangeAt(0),i.setStart(s.offsetNode,s.offset),i.collapse(!0),i.insertNode(e)}else if(document.caretRangeFromPoint)i=document.caretRangeFromPoint(n,o),i.insertNode(e);else if("undefined"!=typeof document.body.createTextRange){i=document.body.createTextRange(),i.moveToPoint(n,o);var a=i.duplicate();a.moveToPoint(n,o),i.setEndPoint("EndToEnd",a),i.select()}},ie11FixInserting:function(e,i){var n=document.createElement("span");n.className="redactor-ie-paste",this.insert.node(n);var o=t(e).html();o="<p>"+o.replace(/<span class="redactor-ie-paste"><\/span>/gi,"</p>"+i+"<p>")+"</p>",t(e).replaceWith(o)},ie11PasteFrag:function(t){this.selection.get(),this.range.deleteContents();var e=document.createElement("div");e.innerHTML=t;for(var i,n,o=document.createDocumentFragment();i=e.firstChild;)n=o.appendChild(i);this.range.insertNode(o)}}},caret:function(){return{setStart:function(e){if(this.utils.isBlock(e))this.caret.set(e,0,e,0);else{var i=this.utils.createSpaceElement();t(e).prepend(i),this.caret.setEnd(i)}},setEnd:function(t){this.caret.set(t,1,t,1)},set:function(e,i,n,o){if(this.utils.browser("msie")||this.$editor.focus(),e=e[0]||e,n=n[0]||n,this.utils.isBlockTag(e.tagName)&&""===e.innerHTML&&(e.innerHTML=this.opts.invisibleSpace),"BR"==e.tagName&&this.opts.linebreaks===!1){var s=t(this.opts.emptyHtml)[0];t(e).replaceWith(s),e=s,n=e}this.selection.get();try{this.range.setStart(e,i),this.range.setEnd(n,o)}catch(r){}this.selection.addRange()},setAfter:function(e){var i=t(e)[0].tagName;if("BR"==i||this.utils.isBlock(e))"BR"!=i&&this.utils.browser("msie")?this.caret.setStart(t(e).next()):this.caret.setAfterOrBefore(e,"after");else{var n=this.utils.createSpaceElement();t(e).after(n),this.caret.setEnd(n)}},setBefore:function(e){this.utils.isBlock(e)?this.caret.setEnd(t(e).prev()):this.caret.setAfterOrBefore(e,"before")},setAfterOrBefore:function(t,e){if(this.utils.browser("msie")||this.$editor.focus(),t=t[0]||t,this.selection.get(),"after"==e)try{this.range.setStartAfter(t),this.range.setEndAfter(t)}catch(i){}else try{this.range.setStartBefore(t),this.range.setEndBefore(t)}catch(i){}this.range.collapse(!1),this.selection.addRange()},getOffsetOfElement:function(e){e=e[0]||e,this.selection.get();var i=this.range.cloneRange();return i.selectNodeContents(e),i.setEnd(this.range.endContainer,this.range.endOffset),t.trim(i.toString()).length},getOffset:function(){var t=0,e=window.getSelection();if(e.rangeCount>0){var i=window.getSelection().getRangeAt(0),n=i.cloneRange();n.selectNodeContents(this.$editor[0]),n.setEnd(i.endContainer,i.endOffset),t=n.toString().length}return t},setOffset:function(t,e){"undefined"==typeof e&&(e=t),this.focus.isFocused()||this.focus.setStart();for(var i,n=document.createRange(),o=document.getSelection(),s=0,r=document.createTreeWalker(this.$editor[0],NodeFilter.SHOW_TEXT,null,null);i=r.nextNode();)if(s+=i.nodeValue.length,s>t&&(n.setStart(i,i.nodeValue.length+t-s),t=1/0),s>=e){n.setEnd(i,i.nodeValue.length+e-s);break}o.removeAllRanges(),o.addRange(n)},setToPoint:function(t,e){this.caret.setOffset(t,e)},getCoords:function(){return this.caret.getOffset()}}},selection:function(){return{get:function(){this.sel=document.getSelection(),document.getSelection&&this.sel.getRangeAt&&this.sel.rangeCount?this.range=this.sel.getRangeAt(0):this.range=document.createRange()},addRange:function(){try{this.sel.removeAllRanges()}catch(t){}this.sel.addRange(this.range)},getCurrent:function(){var t=!1;return this.selection.get(),this.sel&&this.sel.rangeCount>0&&(t=this.sel.getRangeAt(0).startContainer),this.utils.isRedactorParent(t)},getParent:function(e){return e=e||this.selection.getCurrent(),!!e&&this.utils.isRedactorParent(t(e).parent()[0])},getBlock:function(e){for(e=e||this.selection.getCurrent();e;){if(this.utils.isBlockTag(e.tagName))return!t(e).hasClass("redactor-editor")&&e;e=e.parentNode}return!1},getInlines:function(e){if(this.selection.get(),this.range&&this.range.collapsed)return!1;var i=[];e="undefined"==typeof e?this.selection.getNodes():e;var n=this.opts.inlineTags;return n.push("span"),t.each(e,t.proxy(function(e,o){t.inArray(o.tagName.toLowerCase(),n)!=-1&&i.push(o)},this)),0!==i.length&&i},getBlocks:function(e){if(this.selection.get(),this.range&&this.range.collapsed)return[this.selection.getBlock()];var i=[];return e="undefined"==typeof e?this.selection.getNodes():e,t.each(e,t.proxy(function(t,e){this.utils.isBlock(e)&&(this.selection.lastBlock=e,i.push(e))},this)),0===i.length?[this.selection.getBlock()]:i},getLastBlock:function(){return this.selection.lastBlock},getNodes:function(){this.selection.get();var e=this.selection.getNodesMarker(1),i=this.selection.getNodesMarker(2);this.selection.setNodesMarker(this.range,e,!0),this.range.collapsed===!1?this.selection.setNodesMarker(this.range,i,!1):i=e;var n=[],o=0,s=this;this.$editor.find("*").each(function(){if(this==e){var r=t(this).parent();0!==r.length&&"BODY"!=r[0].tagName&&s.utils.isRedactorParent(r[0])&&n.push(r[0]),n.push(this),o=1}else o>0&&(n.push(this),o+=1);if(this==i)return!1});for(var r=[],a=n.length,l=0;l<a;l++)"nodes-marker-1"!=n[l].id&&"nodes-marker-2"!=n[l].id&&r.push(n[l]);return this.selection.removeNodesMarkers(),r},getNodesMarker:function(e){return t('<span id="nodes-marker-'+e+'" class="redactor-nodes-marker" data-verified="redactor">'+this.opts.invisibleSpace+"</span>")[0]}
7,setNodesMarker:function(t,e,i){t=t.cloneRange();try{t.collapse(i),t.insertNode(e)}catch(n){}},removeNodesMarkers:function(){t(document).find("span.redactor-nodes-marker").remove(),this.$editor.find("span.redactor-nodes-marker").remove()},fromPoint:function(t,e){this.caret.setOffset(t,e)},wrap:function(t){if(this.selection.get(),this.range.collapsed)return!1;var e=document.createElement(t);return e.appendChild(this.range.extractContents()),this.range.insertNode(e),e},selectElement:function(t){this.caret.set(t,0,t,1)},selectAll:function(){this.selection.get(),this.range.selectNodeContents(this.$editor[0]),this.selection.addRange()},remove:function(){this.selection.get(),this.sel.removeAllRanges()},save:function(){this.selection.createMarkers()},createMarkers:function(){this.selection.get();var t=this.selection.getMarker(1);if(this.selection.setMarker(this.range,t,!0),this.range.collapsed===!1){var e=this.selection.getMarker(2);this.selection.setMarker(this.range,e,!1)}this.savedSel=this.$editor.html()},getMarker:function(e){return"undefined"==typeof e&&(e=1),t('<span id="selection-marker-'+e+'" class="redactor-selection-marker"  data-verified="redactor">'+this.opts.invisibleSpace+"</span>")[0]},getMarkerAsHtml:function(t){return this.utils.getOuterHtml(this.selection.getMarker(t))},setMarker:function(t,e,i){t=t.cloneRange();
7try{t.collapse(i),t.insertNode(e)}catch(n){this.focus.setStart()}},restore:function(){var t=this.$editor.find("span#selection-marker-1"),e=this.$editor.find("span#selection-marker-2");0!==t.length&&0!==e.length?this.caret.set(t,0,e,0):0!==t.length?this.caret.set(t,0,t,0):this.$editor.focus(),this.selection.removeMarkers(),this.savedSel=!1},removeMarkers:function(){this.$editor.find("span.redactor-selection-marker").remove()},getText:function(){return this.selection.get(),this.sel.toString()},getHtml:function(){var t="";if(this.selection.get(),this.sel.rangeCount){for(var e=document.createElement("div"),i=this.sel.rangeCount,n=0;n<i;++n)e.appendChild(this.sel.getRangeAt(n).cloneContents());t=e.innerHTML}return this.clean.onSync(t)}}},observe:function(){return{load:function(){this.observe.images(),this.observe.links()},buttons:function(e,i){var n=this.selection.getCurrent(),o=this.selection.getParent();if(this.button.setInactiveAll(i),e===!1&&"html"!==i)return void(t.inArray(i,this.opts.activeButtons)!=-1&&this.button.toggleActive(i));var s=this.utils.isCurrentOrParent("A")?this.lang.get("link_edit"):this.lang.get("link_insert");t("body").find("a.redactor-dropdown-link").text(s),t.each(this.opts.activeButtonsStates,t.proxy(function(e,i){var s=t(o).closest(e),r=t(n).closest(e);this.utils.isRedactorParent(s)&&this.utils.isRedactorParent(r)&&(0===s.length&&0===r.closest(e).length||this.button.setActive(i))},this));var r=t(o).closest(this.opts.alignmentTags.toString().toLowerCase());if(this.utils.isRedactorParent(o)&&r.length){var a=""===r.css("text-align")?"left":r.css("text-align");this.button.setActive("align"+a)}},addButton:function(t,e){this.opts.activeButtons.push(e),this.opts.activeButtonsStates[t]=e},images:function(){this.$editor.find("img").each(t.proxy(function(e,i){var n=t(i);n.closest("a").on("click",function(t){t.preventDefault()}),this.utils.browser("msie")&&n.attr("unselectable","on"),this.image.setEditable(n)},this)),t(document).on("click.redactor-image-delete",t.proxy(function(t){this.observe.image=!1,"IMG"==t.target.tagName&&this.utils.isRedactorParent(t.target)&&(this.observe.image=(!this.observe.image||this.observe.image!=t.target)&&t.target)},this))},links:function(){this.opts.linkTooltip&&(this.$editor.find("a").on("touchstart click",t.proxy(this.observe.showTooltip,this)),this.$editor.on("touchstart click.redactor",t.proxy(this.observe.closeTooltip,this)),t(document).on("touchstart click.redactor",t.proxy(this.observe.closeTooltip,this)))},getTooltipPosition:function(t){return t.offset()},showTooltip:function(e){var i=t(e.target);if(0!==i.length&&"A"===i[0].tagName){var n=this.observe.getTooltipPosition(i),o=t('<span class="redactor-link-tooltip"></span>'),s=i.attr("href");void 0===s&&(s=""),s.length>24&&(s=s.substring(0,24)+"...");var r=t('<a href="'+i.attr("href")+'" target="_blank" />').html(s).addClass("redactor-link-tooltip-action"),a=t('<a href="#" />').html(this.lang.get("edit")).on("click",t.proxy(this.link.show,this)).addClass("redactor-link-tooltip-action"),l=t('<a href="#" />').html(this.lang.get("unlink")).on("click",t.proxy(this.link.unlink,this)).addClass("redactor-link-tooltip-action");o.append(r).append(" | ").append(a).append(" | ").append(l),o.css({top:n.top+20+"px",left:n.left+"px"}),t(".redactor-link-tooltip").remove(),t("body").append(o)}},closeTooltip:function(e){e=e.originalEvent||e,"A"==e.target.tagName&&!t(e.target).hasClass("redactor-link-tooltip-action")&&this.utils.isRedactorParent(e.target)||t(".redactor-link-tooltip").remove()}}},link:function(){return{show:function(e){"undefined"!=typeof e&&e.preventDefault&&e.preventDefault(),this.modal.load("link",this.lang.get("link_insert"),600),this.modal.createCancelButton(),this.link.buttonInsert=this.modal.createActionButton(this.lang.get("insert")),this.selection.get(),this.link.getData(),this.link.cleanUrl(),"_blank"==this.link.target&&t("#redactor-link-blank").prop("checked",!0),this.link.$inputUrl=t("#redactor-link-url"),this.link.$inputText=t("#redactor-link-url-text"),this.link.$inputText.val(this.link.text),this.link.$inputUrl.val(this.link.url),this.link.buttonInsert.on("click",t.proxy(this.link.insert,this)),this.selection.save(),this.modal.show(),this.link.$inputUrl.focus()},cleanUrl:function(){var t=self.location.href.replace(/\/$/i,"");if(this.link.url=this.link.url.replace(t,""),this.link.url=this.link.url.replace(/^\/#/,"#"),this.link.url=this.link.url.replace("mailto:",""),!this.opts.linkProtocol){var e=new RegExp("^(http|ftp|https)://"+self.location.host,"i");this.link.url=this.link.url.replace(e,"")}},getData:function(){this.link.$node=!1;var e=t(this.selection.getCurrent()).closest("a");0!==e.length&&"A"===e[0].tagName?(this.link.$node=e,this.link.url=e.attr("href"),this.link.text=e.text(),this.link.target=e.attr("target")):(this.link.text=this.sel.toString(),this.link.url="",this.link.target="")},insert:function(){var e="",i=this.link.$inputUrl.val(),n=this.link.$inputText.val();if(""===t.trim(i))return void this.link.$inputUrl.addClass("redactor-input-error").on("keyup",function(){t(this).removeClass("redactor-input-error"),t(this).off("keyup")});if(i.search("@")!=-1&&/(http|ftp|https):\/\//i.test(i)===!1)i="mailto:"+i;else if(0!==i.search("#")){t("#redactor-link-blank").prop("checked")&&(e="_blank");var o="((xn--)?[a-z0-9]+(-[a-z0-9]+)*\\.)+[a-z]{2,}",s=new RegExp("^(http|ftp|https)://"+o,"i"),r=new RegExp("^"+o,"i");i.search(s)==-1&&0===i.search(r)&&this.opts.linkProtocol&&(i=this.opts.linkProtocol+"://"+i)}this.link.set(n,i,e),this.modal.close()},set:function(e,i,n){if(e=t.trim(e.replace(/<|>
7/g,"")),this.selection.restore(),""!==e||""!==i){if(""===e&&""!==i&&(e=i),this.link.$node)this.buffer.set(),this.link.$node.text(e).attr("href",i),""!==n?this.link.$node.attr("target",n):this.link.$node.removeAttr("target"),this.code.sync();else{if(this.utils.browser("mozilla")&&""===this.link.text){var o=t("<a />").attr("href",i).text(e);""!==n&&o.attr("target",n),this.insert.node(o),this.selection.selectElement(o)}else{document.execCommand("createLink",!1,i);var o=t(this.selection.getCurrent()).closest("a");""!==n&&o.attr("target",n),o.removeAttr("style"),""===this.link.text&&(o.text(e),this.selection.selectElement(o))}this.code.sync(),this.core.setCallback("insertedLink",o)}setTimeout(t.proxy(function(){this.observe.links()},this),5)}},unlink:function(e){"undefined"!=typeof e&&e.preventDefault&&e.preventDefault();var i=this.selection.getNodes();if(i){this.buffer.set();for(var n=i.length,o=0;o<n;o++)if("A"==i[o].tagName){var s=t(i[o]);s.replaceWith(s.contents())}t(".redactor-link-tooltip").remove(),this.code.sync()}}}},image:function(){return{show:function(){this.modal.load("image",this.lang.get("image"),700),this.upload.init("#redactor-modal-image-droparea",this.opts.imageUpload,this.image.insert),this.selection.save(),this.modal.show()},showEdit:function(e){var i=e.closest("a");if(this.modal.load("imageEdit",this.lang.get("edit"),705),this.modal.createCancelButton(),this.image.buttonDelete=this.modal.createDeleteButton(this.lang.get("_delete")),this.image.buttonSave=this.modal.createActionButton(this.lang.get("save")),this.image.buttonDelete.on("click",t.proxy(function(){this.image.remove(e)},this)),this.image.buttonSave.on("click",t.proxy(function(){this.image.update(e)},this)),t("#redactor-image-title").val(e.attr("alt")),this.opts.imageLink){var n=t("#redactor-image-link");n.attr("href",e.attr("src")),0!==i.length&&(n.val(i.attr("href")),"_blank"==i.attr("target")&&t("#redactor-image-link-blank").prop("checked",!0))}else t(".redactor-image-link-option").hide();if(this.opts.imagePosition){var o="block"==e.css("display")&&"none"==e.css("float")?"center":e.css("float");t("#redactor-image-align").val(o)}else t(".redactor-image-position-option").hide();this.modal.show()},setFloating:function(e){var i=t("#redactor-image-align").val(),n="",o="",s="";switch(i){case"left":n="left",s="0 "+this.opts.imageFloatMargin+" "+this.opts.imageFloatMargin+" 0";break;case"right":n="right",s="0 0 "+this.opts.imageFloatMargin+" "+this.opts.imageFloatMargin;break;case"center":o="block",s="auto"}e.css({"float":n,display:o,margin:s}),e.attr("rel",e.attr("style"))},update:function(e){this.image.hideResize(),this.buffer.set();var i=e.closest("a");e.attr("alt",t("#redactor-image-title").val()),this.image.setFloating(e);var n=t.trim(t("#redactor-image-link").val());if(""!==n){var o=!!t("#redactor-image-link-blank").prop("checked");if(0===i.length){var s=t('<a href="'+n+'">'+this.utils.getOuterHtml(e)+"</a>");o&&s.attr("target","_blank"),e.replaceWith(s)}else i.attr("href",n),o?i.attr("target","_blank"):i.removeAttr("target")}else 0!==i.length&&i.replaceWith(this.utils.getOuterHtml(e));this.modal.close(),this.observe.images(),this.code.sync()},setEditable:function(e){this.opts.imageEditable&&(e.on("dragstart",t.proxy(this.image.onDrag,this)),e.on("mousedown",t.proxy(this.image.hideResize,this)),e.on("click touchstart",t.proxy(function(i){return this.observe.image=e,0===this.$editor.find("#redactor-image-box").length&&(this.image.resizer=this.image.loadEditableControls(e),t(document).on("click.redactor-image-resize-hide",t.proxy(this.image.hideResize,this)),this.$editor.on("click.redactor-image-resize-hide",t.proxy(this.image.hideResize,this)),void(this.opts.imageResizable&&this.image.resizer.on("mousedown.redactor touchstart.redactor",t.proxy(function(t){t.preventDefault(),this.image.resizeHandle={x:t.pageX,y:t.pageY,el:e,ratio:e.width()/e.height(),h:e.height()},t=t.originalEvent||t,t.targetTouches&&(this.image.resizeHandle.x=t.targetTouches[0].pageX,this.image.resizeHandle.y=t.targetTouches[0].pageY),this.image.startResize()},this))))},this)))},startResize:function(){t(document).on("mousemove.redactor-image-resize touchmove.redactor-image-resize",t.proxy(this.image.moveResize,this)),t(document).on("mouseup.redactor-image-resize touchend.redactor-image-resize",t.proxy(this.image.stopResize,this))},moveResize:function(t){t.preventDefault(),t=t.originalEvent||t;var e=this.image.resizeHandle.h;e+=t.targetTouches?t.targetTouches[0].pageY-this.image.resizeHandle.y:t.pageY-this.image.resizeHandle.y;var i=Math.round(e*this.image.resizeHandle.ratio);e<50||i<100||(this.image.resizeHandle.el.height(e),this.image.resizeHandle.el.width(i),this.code.sync())},stopResize:function(){this.handle=!1,t(document).off(".redactor-image-resize"),this.image.hideResize()},onDrag:function(e){return 0!==this.$editor.find("#redactor-image-box").length?(e.preventDefault(),!1):void this.$editor.on("drop.redactor-image-inside-
7drop",t.proxy(function(){setTimeout(t.proxy(this.image.onDrop,this),1)},this))},onDrop:function(){this.image.fixImageSourceAfterDrop(),this.observe.images(),
8this.$editor.off("drop.redactor-image-inside-drop"),this.clean.clearUnverified(),this.code.sync()},fixImageSourceAfterDrop:function(){this.$editor.find("img[data-save-url]").each(function(){var e=t(this);e.attr("src",e.attr("data-save-url")),e.removeAttr("data-save-url")})},hideResize:function(e){if(!e||0===t(e.target).closest("#redactor-image-box").length){if(e&&"IMG"==e.target.tagName){var i=t(e.target);i.attr("data-save-url",i.attr("src"))}var n=this.$editor.find("#redactor-image-box");0!==n.length&&(this.image.editter.remove(),t(this.image.resizer).remove(),n.find("img").css({marginTop:n[0].style.marginTop,marginBottom:n[0].style.marginBottom,marginLeft:n[0].style.marginLeft,marginRight:n[0].style.marginRight}),n.css("margin",""),n.find("img").css("opacity",""),n.replaceWith(function(){return t(this).contents()}),t(document).off("click.redactor-image-resize-hide"),this.$editor.off("click.redactor-image-resize-hide"),this.code.sync())}},loadEditableControls:function(e){var i=t('<span id="redactor-image-box" data-redactor="verified">');i.css("float",e.css("float")).attr("contenteditable",!1),"auto"!=e[0].style.margin?(i.css({marginTop:e[0].style.marginTop,marginBottom:e[0].style.marginBottom,marginLeft:e[0].style.marginLeft,marginRight:e[0].style.marginRight}),e.css("margin","")):i.css({display:"block",margin:"auto"}),e.css("opacity",".5").after(i),this.image.editter=t('<span id="redactor-image-editter" data-redactor="verified">'+this.lang.get("edit")+"</span>"),this.image.editter.attr("contenteditable",!1),this.image.editter.on("click",t.proxy(function(){this.image.showEdit(e)},this)),i.append(this.image.editter);var n=this.image.editter.innerWidth();if(this.image.editter.css("margin-left","-"+n/2+"px"),this.opts.imageResizable&&!this.utils.isMobile()){var o=t('<span id="redactor-image-resizer" data-redactor="verified"></span>');return this.utils.isDesktop()||o.css({width:"15px",height:"15px"}),o.attr("contenteditable",!1),i.append(o),i.append(e),o}return i.append(e),!1},remove:function(e){var i=t(e),n=i.closest("a"),o=i.closest("figure"),s=i.parent();0!==t("#redactor-image-box").length&&(s=t("#redactor-image-box").parent());var r;0!==o.length?(r=o.next(),o.remove()):0!==n.length?(s=n.parent(),n.remove()):i.remove(),t("#redactor-image-box").remove(),0!==o.length?this.caret.setStart(r):this.caret.setStart(s),this.core.setCallback("imageDelete",i[0].src,i),this.modal.close(),this.code.sync()},insert:function(e,i,n){if("undefined"!=typeof e.error)return this.modal.close(),this.selection.restore(),void this.core.setCallback("imageUploadError",e);var o;"string"==typeof e?o=t(e).attr("data-redactor-inserted-image","true"):(o=t("<img>"),o.attr("src",e.filelink).attr("data-redactor-inserted-image","true"));var s=o,r=this.utils.isCurrentOrParent("P");if(r&&(s=t("<blockquote />").append(o)),i){this.selection.removeMarkers();var a=this.selection.getMarker();this.insert.nodeToCaretPositionFromPoint(n,a)}else this.modal.close();this.selection.restore(),this.buffer.set(),this.insert.html(this.utils.getOuterHtml(s),!1);var l=this.$editor.find("img[data-redactor-inserted-image=true]").removeAttr("data-redactor-inserted-image");r?l.parent().contents().unwrap().wrap("<p />"):this.opts.linebreaks&&l.before("<br>").after("<br>"),"string"!=typeof e&&this.core.setCallback("imageUpload",l,e)}}},file:function(){return{show:function(){this.modal.load("file",this.lang.get("file"),700),this.upload.init("#redactor-modal-file-upload",this.opts.fileUpload,this.file.insert),this.selection.save(),this.selection.get();var e=this.sel.toString();t("#redactor-filename").val(e),this.modal.show()},insert:function(e,i,n){if("undefined"!=typeof e.error)return this.modal.close(),this.selection.restore(),void this.core.setCallback("fileUploadError",e);var o;if("string"==typeof e)o=e;else{var s=t("#redactor-filename").val();"undefined"!=typeof s&&""!==s||(s=e.filename),o='<a href="'+e.filelink+'" id="filelink-marker">'+s+"</a>"}if(i){this.selection.removeMarkers();var r=this.selection.getMarker();this.insert.nodeToCaretPositionFromPoint(n,r)}else this.modal.close();
8if(this.selection.restore(),this.buffer.set(),this.insert.html(o),"string"!=typeof e){var a=t(this.$editor.find("a#filelink-marker"));0!==a.length?a.removeAttr("id"):a=!1,this.core.setCallback("fileUpload",a,e)}}}},modal:function(){return{callbacks:{},loadTemplates:function(){this.opts.modal={imageEdit:String()+'<section id="redactor-modal-image-edit"><label>'+this.lang.get("title")+'</label><input type="text" id="redactor-image-title" /><label class="redactor-image-link-option">'+this.lang.get("link")+'</label><input type="text" id="redactor-image-link" class="redactor-image-link-option" /><label class="redactor-image-link-option"><input type="checkbox" id="redactor-image-link-blank"> '+this.lang.get("link_new_tab")+'</label><label class="redactor-image-position-option">'+this.lang.get("image_position")+'</label><select class="redactor-image-position-option" id="redactor-image-align"><option value="none">'+this.lang.get("none")+'</option><option value="left">'+this.lang.get("left")+'</option><option value="center">'+this.lang.get("center")+'</option><option value="right">'+this.lang.get("right")+"</option></select></section>",image:String()+'<section id="redactor-modal-image-insert"><div id="redactor-modal-image-droparea"></div></section>',file:String()+'<section id="redactor-modal-file-insert"><div id="redactor-modal-file-upload-box"><label>'+this.lang.get("filename")+'</label><input type="text" id="redactor-filename" /><br><br><div id="redactor-modal-file-upload"></div></div></section>',link:String()+'<section id="redactor-modal-link-insert"><label>URL</label><input type="url" id="redactor-link-url" /><label>'+this.lang.get("text")+'</label><input type="text" id="redactor-link-url-text" /><label><input type="checkbox" id="redactor-link-blank"> '+this.lang.get("link_new_tab")+"</label></section>"},t.extend(this.opts,this.opts.modal)},addCallback:function(t,e){this.modal.callbacks[t]=e}
8,createTabber:function(e){this.modal.$tabber=t("<div>").attr("id","redactor-modal-tabber"),e.prepend(this.modal.$tabber)},addTab:function(e,i,n){var o=t('<a href="#" rel="tab'+e+'">').text(i);n&&o.addClass("active");var s=this;o.on("click",function(e){e.preventDefault(),t(".redactor-tab").hide(),t(".redactor-"+t(this).attr("rel")).show(),s.modal.$tabber.find("a").removeClass("active"),t(this).addClass("active")}),this.modal.$tabber.append(o)},addTemplate:function(t,e){this.opts.modal[t]=e},getTemplate:function(t){return this.opts.modal[t]},getModal:function(){return this.$modalBody.find("section")},load:function(t,e,i){this.modal.templateName=t,this.modal.width=i,this.modal.build(),this.modal.enableEvents(),this.modal.setTitle(e),this.modal.setDraggable(),this.modal.setContent(),"undefined"!=typeof this.modal.callbacks[t]&&this.modal.callbacks[t].call(this)},show:function(){this.modal.bodyOveflow=t(document.body).css("overflow"),t(document.body).css("overflow","hidden"),this.utils.isMobile()?this.modal.showOnMobile():this.modal.showOnDesktop(),this.$modalOverlay.show(),this.$modalBox.show(),this.modal.setButtonsWidth(),this.utils.saveScroll(),this.utils.isMobile()||(setTimeout(t.proxy(this.modal.showOnDesktop,this),0),t(window).on("resize.redactor-modal",t.proxy(this.modal.resize,this))),this.core.setCallback("modalOpened",this.modal.templateName,this.$modal),t(document).off("focusin.modal"),this.$modal.find("input[type=text]").on("keypress.redactor-modal",t.proxy(this.modal.setEnter,this))},showOnDesktop:function(){var e=this.$modal.outerHeight(),i=t(window).height(),n=t(window).width();return this.modal.width>n?void this.$modal.css({width:"96%",marginTop:i/2-e/2+"px"}):void(e>i?this.$modal.css({width:this.modal.width+"px",marginTop:"20px"}):this.$modal.css({width:this.modal.width+"px",marginTop:i/2-e/2+"px"}))},showOnMobile:function(){this.$modal.css({width:"96%",marginTop:"2%"})},resize:function(){this.utils.isMobile()?this.modal.showOnMobile():this.modal.showOnDesktop()},setTitle:function(t){this.$modalHeader.html(t)},setContent:function(){this.$modalBody.html(this.modal.getTemplate(this.modal.templateName))},setDraggable:function(){"undefined"!=typeof t.fn.draggable&&(this.$modal.draggable({handle:this.$modalHeader}),this.$modalHeader.css("cursor","move"))},setEnter:function(t){13==t.which&&(t.preventDefault(),this.$modal.find("button.redactor-modal-action-btn").click())},createCancelButton:function(){var e=t("<button>").addClass("redactor-modal-btn redactor-modal-close-btn").html(this.lang.get("cancel"));e.on("click",t.proxy(this.modal.close,this)),this.$modalFooter.append(e)},createDeleteButton:function(t){return this.modal.createButton(t,"delete")},createActionButton:function(t){return this.modal.createButton(t,"action")},createButton:function(e,i){var n=t("<button>").addClass("redactor-modal-btn").addClass("redactor-modal-"+i+"-btn").html(e);return this.$modalFooter.append(n),n},setButtonsWidth:function(){var t=this.$modalFooter.find("button"),e=t.length;0!==e&&t.css("width",100/e+"%")},build:function(){this.modal.buildOverlay(),this.$modalBox=t('<div id="redactor-modal-box" />').hide(),this.$modal=t('<div id="redactor-modal" />'),this.$modalHeader=t("<header />"),this.$modalClose=t('<span id="redactor-modal-close" />').html("&times;"),this.$modalBody=t('<div id="redactor-modal-body" />'),this.$modalFooter=t("<footer />"),this.$modal.append(this.$modalHeader),this.$modal.append(this.$modalClose),this.$modal.append(this.$modalBody),this.$modal.append(this.$modalFooter),this.$modalBox.append(this.$modal),this.$modalBox.appendTo(document.body)},buildOverlay:function(){this.$modalOverlay=t('<div id="redactor-modal-overlay">').hide(),t("body").prepend(this.$modalOverlay)},enableEvents:function(){this.$modalClose.on("click.redactor-modal",t.proxy(this.modal.close,this)),t(document).on("keyup.redactor-modal",t.proxy(this.modal.closeHandler,this)),this.$editor.on("keyup.redactor-modal",t.proxy(this.modal.closeHandler,this)),this.$modalBox.on("click.redactor-modal",t.proxy(this.modal.close,this))},disableEvents:function(){this.$modalClose.off("click.redactor-modal"),t(document).off("keyup.redactor-modal"),this.$editor.off("keyup.redactor-modal"),this.$modalBox.off("click.redactor-modal"),t(window).off("resize.redactor-modal")},closeHandler:function(t){t.which==this.keyCode.ESC&&this.modal.close(!1)},close:function(e){if(e){if(!t(e.target).hasClass("redactor-modal-close-btn")&&e.target!=this.$modalClose[0]&&e.target!=this.$modalBox[0])return;e.preventDefault()}this.$modalBox&&(this.modal.disableEvents(),this.$modalOverlay.remove(),this.$modalBox.fadeOut("fast",t.proxy(function(){this.$modalBox.remove(),setTimeout(t.proxy(this.utils.restoreScroll,this),0),void 0!==e&&this.selection.restore(
8),t(document.body).css("overflow",this.modal.bodyOveflow),this.core.setCallback("modalClosed",this.modal.templateName)},this)))}}},progress:function(){return{show:function(){t(document.body).append(t('<div id="redactor-progress"><span></span></div>')),t("#redactor-progress").fadeIn()},hide:function(){t("#redactor-progress").fadeOut(1500,function(){t(this).remove()})}}},upload:function(){return{init:function(e,i,n){this.upload.direct=!1,this.upload.callback=n,this.upload.url=i,this.upload.$el=t(e),this.upload.$droparea=t('<div id="redactor-droparea" />'),this.upload.$placeholdler=t('<div id="redactor-droparea-placeholder" />').text("Drop file here or "),this.upload.$input=t('<input type="file" name="file" />'),this.upload.$placeholdler.append(this.upload.$input),this.upload.$droparea.append(this.upload.$placeholdler),this.upload.$el.append(this.upload.$droparea),this.upload.$droparea.off("redactor.upload"),this.upload.$input.off("redactor.upload"),this.upload.$droparea.on("dragover.redactor.upload",t.proxy(this.upload.onDrag,this)),this.upload.$droparea.on("dragleave.redactor.upload",t.proxy(this.upload.onDragLeave,this)),this.upload.$input.on("change.redactor.upload",t.proxy(function(t){t=t.originalEvent||t,this.upload.traverseFile(this.upload.$input[0].files[0],t)},this)),this.upload.$droparea.on("drop.redactor.upload",t.proxy(function(t){t.preventDefault(),this.upload.$droparea.removeClass("drag-hover").addClass("drag-drop"),this.upload.onDrop(t)},this))},directUpload:function(t,e){this.upload.direct=!0,this.upload.traverseFile(t,e)},onDrop:function(t){t=t.originalEvent||t;var e=t.dataTransfer.files;this.upload.traverseFile(e[0],t)},traverseFile:function(t,e){if(this.opts.s3)return this.upload.setConfig(t),void this.upload.s3uploadFile(t);var i=window.FormData?new FormData:null;if(window.FormData){this.upload.setConfig(t);var n="image"==this.upload.type?this.opts.imageUploadParam:this.opts.fileUploadParam;i.append(n,t)}this.progress.show(),this.upload.sendData(i,e)},setConfig:function(t){this.upload.getType(t),this.upload.direct&&(this.upload.url="image"==this.upload.type?this.opts.imageUpload:this.opts.fileUpload,this.upload.callback="image"==this.upload.type?this.image.insert:this.file.insert)},getType:function(t){this.upload.type="image",this.opts.imageTypes.indexOf(t.type)==-1&&(this.upload.type="file")},getHiddenFields:function(e,i){return e===!1||"object"!=typeof e?i:(t.each(e,t.proxy(function(e,n){
8null!==n&&0===n.toString().indexOf("#")&&(n=t(n).val()),i.append(e,n)},this)),i)},sendData:function(e,i){"image"==this.upload.type?(e=this.upload.getHiddenFields(this.opts.uploadImageFields,e),e=this.upload.getHiddenFields(this.upload.imageFields,e)):(e=this.upload.getHiddenFields(this.opts.uploadFileFields,e),e=this.upload.getHiddenFields(this.upload.fileFields,e));var n=new XMLHttpRequest;n.open("POST",this.upload.url),n.onreadystatechange=t.proxy(function(){if(4==n.readyState){var e=n.responseText;e=e.replace(/^\[/,""),e=e.replace(/\]$/,"");var o;try{o="string"==typeof e?t.parseJSON(e):e}catch(s){o={error:!0}}this.progress.hide(),this.upload.direct||this.upload.$droparea.removeClass("drag-drop"),this.upload.callback(o,this.upload.direct,i)}},this),n.send(e)},onDrag:function(t){t.preventDefault(),this.upload.$droparea.addClass("drag-hover")},onDragLeave:function(t){t.preventDefault(),this.upload.$droparea.removeClass("drag-hover")},clearImageFields:function(){this.upload.imageFields={}},addImageFields:function(t,e){this.upload.imageFields[t]=e},removeImageFields:function(t){delete this.upload.imageFields[t]},clearFileFields:function(){this.upload.fileFields={}},addFileFields:function(t,e){this.upload.fileFields[t]=e},removeFileFields:function(t){delete this.upload.fileFields[t]},s3uploadFile:function(e){this.upload.s3executeOnSignedUrl(e,t.proxy(function(t){this.upload.s3uploadToS3(e,t)},this))},s3executeOnSignedUrl:function(t,e){var i=new XMLHttpRequest,n="?";"-1"!=this.opts.s3.search(/\?/)&&(n="&"),i.open("GET",this.opts.s3+n+"name="+t.name+"&type="+t.type,!0),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined");var o=this;i.onreadystatechange=function(t){4==this.readyState&&200==this.status?(o.progress.show(),e(decodeURIComponent(this.responseText))):4==this.readyState&&200!=this.status},i.send()},s3createCORSRequest:function(t,e){var i=new XMLHttpRequest;return"withCredentials"in i?i.open(t,e,!0):"undefined"!=typeof XDomainRequest?(i=new XDomainRequest,i.open(t,e)):i=null,i},s3uploadToS3:function(e,i){var n=this.upload.s3createCORSRequest("PUT",i);n&&(n.onload=t.proxy(function(){if(200==n.status){this.progress.hide();var t=i.split("?");if(!t[0])return!1;this.upload.direct||this.upload.$droparea.removeClass("drag-drop");var e={filelink:t[0]};if("file"==this.upload.type){var o=t[0].split("/");e.filename=o[o.length-1]}this.upload.callback(e,this.upload.direct,!1)}},this),n.onerror=function(){},n.upload.onprogress=function(t){},n.setRequestHeader("Content-Type",e.type),n.setRequestHeader("x-amz-acl","public-read"),n.send(e))}}},utils:function(){return{isMobile:function(){return/(iPhone|iPod|BlackBerry|Android)/.test(navigator.userAgent)},isDesktop:function(){return!/(iPhone|iPod|iPad|BlackBerry|Android)/.test(navigator.userAgent)},isString:function(t){return"[object String]"==Object.prototype.toString.call(t)},isEmpty:function(e,i){return e=e.replace(/[\u200B-\u200D\uFEFF]/g,""),e=e.replace(/&nbsp;/gi,""),e=e.replace(/<\/?br\s?\/?>/g,""),e=e.replace(/\s/g,""),e=e.replace(/^<p>[^\W\w\D\d]*?<\/p>$/i,""),i!==!1&&(e=e.replace(/<[^\/>][^>]*><\/[^>]+>/gi,""),e=e.replace(/<[^\/>][^>]*><\/[^>]+>/gi,"")),e=t.trim(e),""===e},normalize:function(t){return"undefined"==typeof t?0:parseInt(t.replace("px",""),10)},hexToRgb:function(t){if("undefined"!=typeof t){if(t.search(/^#/)==-1)return t;var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,i,n){return e+e+i+i+n+n});var i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return"rgb("+parseInt(i[1],16)+", "+parseInt(i[2],16)+", "+parseInt(i[3],16)+")"}},getOuterHtml:function(e){return t("<div>").append(t(e).eq(0).clone()).html()},getAlignmentElement:function(e){return t.inArray(e.tagName,this.opts.alignmentTags)!==-1?t(e):t(e).closest(this.opts.alignmentTags.toString().toLowerCase(),this.$editor[0])},removeEmptyAttr:function(e,i){var n=t(e);return"undefined"==typeof n.attr(i)||""===n.attr(i)&&(n.removeAttr(i),!0)},removeEmpty:function(e,i){var n=t(i);if(n.find(".redactor-invisible-space").replaceWith(function(){return t(this).contents()}),0===n.find("hr, br, img").length){var o=t.trim(n.text());this.utils.isEmpty(o,!1)&&n.remove()}},saveScroll:function(){this.utils.isSelectAll()||(this.saveEditorScroll=this.$editor.scrollTop(),this.saveBodyScroll=t(window).scrollTop(),this.opts.scrollTarget&&(this.saveTargetScroll=t(this.opts.scrollTarget).scrollTop()))},restoreScroll:function(){"undefined"==typeof this.saveScroll&&"undefined"==typeof this.saveBodyScroll||(t(window).scrollTop(this.saveBodyScroll),this.$editor.scrollTop(this.saveEditorScroll),this.opts.scrollTarget&&t(this.opts.scrollTarget).scrollTop(this.saveTargetScroll))},createSpaceElement:function(){var t=document.createElement("span");return t.className="redactor-invisible-space",t.innerHTML=this.opts.invisibleSpace,t},removeInlineTags:function(e){var i=this.opts.inlineTags;i.push("span"),"PRE"==e.tagName&&i.push("a"),t(e).find(i.join(",")).not("span.redactor-selection-marker").contents().unwrap()},replaceWithContents:function(e,i){var n=this;t(e).replaceWith(function(){return i===!0&&n.utils.removeInlineTags(this),t(this).contents()})},replaceToTag:function(e,i,n){var o,s=this;return t(e).replaceWith(function(){o=t("<"+i+" />").append(t(this).contents());for(var e=0;e<this.attributes.length;e++)o.attr(this.attributes[e].name,this.attributes[e].value);return n===!0&&s.utils.removeInlineTags(o),o}),o},isStartOfElement:function(){var t=this.selection.getBlock();if(!t)return!1;var e=this.caret.getOffsetOfElement(t);return 0===e},isEndOfElement:function(){var e=this.selection.getBlock();if(!e)return!1;var i=this.caret.getOffsetOfElement(e),n=t.trim(t(e).text()).replace(/\n\r\n/g,"");return i==n.length},isBlock:function(t){return t=t[0]||t,t&&this.utils.isBlockTag(t.tagName)},isBlockTag:function(t){return"undefined"!=typeof t&&this.reIsBlock.test(t)},isTag:function(e,i){var n=t(e).closest(i);return 1==n.length&&n[0]},isSelectAll:function(){return this.selectAll},enableSelectAll:function(){this.selectAll=!0},disableSelectAll:function(){this.selectAll=!1},isRedactorParent:function(e){return!!e&&0!==t(e).parents(".redactor-editor").length&&!t(e).hasClass("redactor-editor")&&e},isCurrentOrParent:function(e){var i=this.selection.getParent(),n=this.selection.getCurrent();if(t.isArray(e)){var o=0;return t.each(e,t.proxy(function(t,e){this.utils.isCurrentOrParentOne(n,i,e)&&o++},this)),0!==o}return this.utils.isCurrentOrParentOne(n,i,e)}
8,isCurrentOrParentOne:function(t,e,i){return e&&e.tagName===i?e:!(!t||t.tagName!==i)&&t},isOldIe:function(){return!!(this.utils.browser("msie")&&parseInt(this.utils.browser("version"),10)<9)},isLessIe10:function(){return!!(this.utils.browser("msie")&&parseInt(this.utils.browser("version"),10)<10)},isIe11:function(){return!!navigator.userAgent.match(/Trident\/7\./)},browser:function(t){var e=navigator.userAgent.toLowerCase(),i=/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return"version"==t?i[2]:"webkit"==t?"chrome"==i[1]||"webkit"==i[1]:"rv"==i[1]?"msie"==t:"opr"==i[1]?"webkit"==t:t==i[1]}}}},e.prototype.init.prototype=e.prototype,t.Redactor.fn.formatLinkify=function(e,i,s,r,a,l){for(var c="((?:http[s]?:\\/\\/(?:www\\.)?|www\\.){1}(?:[0-9A-Za-z\\-%_]+\\.)+[a-zA-Z]{2,}(?::[0-9]+)?(?:(?:/[0-9A-Za-z\\-\\.%_]*)+)?(?:\\?(?:[0-9A-Za-z\\-\\.%_]+(?:=[0-9A-Za-z\\-\\.%_\\+]*)?)?(?:&(?:[0-9A-Za-z\\-\\.%_]+(?:=[0-9A-Za-z\\-\\.%_\\+]*)?)?)*)?(?:#[0-9A-Za-z\\-\\.%_\\+=\\?&;]*)?)",h=new RegExp(c,"gi"),d=/(https?|ftp):\/\//i,u=/(https?:\/\/.*\.(?:png|jpg|jpeg|gif))/gi,p=(this.$editor?this.$editor[0]:this).childNodes,f=p.length;f--;){var g=p[f];if(3===g.nodeType){var m=g.nodeValue;if(a&&m){var v='<iframe width="500" height="281" src="',y='" frameborder="0" allowfullscreen></iframe>';m.match(n)?(m=m.replace(n,v+"//www.youtube.com/embed/$1"+y),t(g).after(m).remove()):m.match(o)&&(m=m.replace(o,v+"//player.vimeo.com/video/$2"+y),t(g).after(m).remove())}if(r&&m&&m.match(u))return m=m.replace(u,'<img src="$1" />'),void t(g).after(m).remove();m.search(/\$/g)!=-1&&(m=m.replace(/\$/g,"&#36;"));var b=m.match(h);if(s&&m&&b){for(var x=b.length,k=0;k<x;k++){null!==b[k].match(/\.$/)&&(b[k]=b[k].replace(/\.$/,""));var w=b[k],T=w,C="";null!==w.match(/\s$/)&&(C=" ");var S=e+"://";null!==w.match(d)&&(S=""),T.length>l&&(T=T.substring(0,l)+"..."),T=T.replace(/&#36;/g,"$").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),m=m.replace(w,'<a href="'+S+t.trim(w)+'">'+t.trim(T)+"</a>"+C)}t(g).after(m).remove()}}else 1!==g.nodeType||/^(a|button|textarea)$/i.test(g.tagName)||t.Redactor.fn.formatLinkify.call(g,e,i,s,r,a,l)}}}(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 pn.apply(null,arguments)}function e(t){pn=t}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function n(t){return"[object Object]"===Object.prototype.toString.call(t)}function o(t){var e;for(e in t)return!1;return!0}function s(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function r(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function l(t,e){for(var i in e)a(e,i)&&(t[i]=e[i]);return a(e,"toString")&&(t.toString=e.toString),a(e,"valueOf")&&(t.valueOf=e.valueOf),t}function c(t,e,i,n){return me(t,e,i,n,!0).utc()}function h(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null}}function d(t){return null==t._pf&&(t._pf=h()),t._pf}function u(t){if(null==t._isValid){var e=d(t),i=fn.call(e.parsedDateParts,function(t){return null!=t});t._isValid=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(t._isValid=t._isValid&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)}return t._isValid}function p(t){var e=c(NaN);return null!=t?l(d(e),t):d(e).userInvalidated=!0,e}function f(t){return void 0===t}function g(t,e){var i,n,o;if(f(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),f(e._i)||(t._i=e._i),f(e._f)||(t._f=e._f),f(e._l)||(t._l=e._l),f(e._strict)||(t._strict=e._strict),f(e._tzm)||(t._tzm=e._tzm),f(e._isUTC)||(t._isUTC=e._isUTC),f(e._offset)||(t._offset=e._offset),f(e._pf)||(t._pf=d(e)),f(e._locale)||(t._locale=e._locale),gn.length>0)for(i in gn)n=gn[i],o=e[n],f(o)||(t[n]=o);return t}function m(e){g(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),mn===!1&&(mn=!0,t.updateOffset(this),mn=!1)}function v(t){return t instanceof m||null!=t&&null!=t._isAMomentObject}function y(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function b(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=y(e)),i}function x(t,e,i){var n,o=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),r=0;for(n=0;n<o;n++)(i&&t[n]!==e[n]||!i&&b(t[n])!==b(e[n]))&&r++;return r+s}function k(e){t.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function w(e,i){var n=!0;return l(function(){return null!=t.deprecationHandler&&t.deprecationHandler(null,e),n&&(k(e+"\nArguments: "+Array.prototype.slice.call(arguments).join(", ")+"\n"+(new Error).stack),n=!1),i.apply(this,arguments)},i)}function T(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i
vendor: 42,912 bytes, lines 8-10
8),vn[e]||(k(i),vn[e]=!0)}function C(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t){var e,i;for(i in t)e=t[i],C(e)?this[i]=e:this["_"+i]=e;this._config=t,this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)}function _(t,e){var i,o=l({},t);for(i in e)a(e,i)&&(n(t[i])&&n(e[i])?(o[i]={},l(o[i],t[i]),l(o[i],e[i])):null!=e[i]?o[i]=e[i]:delete o[i]);for(i in t)a(t,i)&&!a(e,i)&&n(t[i])&&(o[i]=l({},o[i]));return o}function A(t){null!=t&&this.set(t)}function E(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return C(n)?n.call(e,i):n}function P(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])}function M(){return this._invalidDate}function D(t){return this._ordinal.replace("%d",t)}function O(t,e,i,n){var o=this._relativeTime[i];return C(o)?o(t,e,i,n):o.replace(/%d/i,t)}function $(t,e){var i=this._relativeTime[t>0?"future":"past"];return C(i)?i(e):i.replace(/%s/i,e)}function L(t,e){var i=t.toLowerCase();_n[i]=_n[i+"s"]=_n[e]=t}function I(t){return"string"==typeof t?_n[t]||_n[t.toLowerCase()]:void 0}function R(t){var e,i,n={};for(i in t)a(t,i)&&(e=I(i),e&&(n[e]=t[i]));return n}function F(t,e){An[t]=e}function H(t){var e=[];for(var i in t)e.push({unit:i,priority:An[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}function N(e,i){return function(n){return null!=n?(z(this,e,n),t.updateOffset(this,i),this):B(this,e)}}function B(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function z(t,e,i){t.isValid()&&t._d["set"+(t._isUTC?"UTC":"")+e](i)}function j(t){return t=I(t),C(this[t])?this[t]():this}function W(t,e){if("object"==typeof t){t=R(t);for(var i=H(t),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(t=I(t),C(this[t]))return this[t](e);return this}function Y(t,e,i){var n=""+Math.abs(t),o=e-n.length,s=t>=0;return(s?i?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+n}function U(t,e,i,n){var o=n;"string"==typeof n&&(o=function(){return this[n]()}),t&&(Dn[t]=o),e&&(Dn[e[0]]=function(){return Y(o.apply(this,arguments),e[1],e[2])}),i&&(Dn[i]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function q(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function G(t){var e,i,n=t.match(En);for(e=0,i=n.length;e<i;e++)Dn[n[e]]?n[e]=Dn[n[e]]:n[e]=q(n[e]);return function(e){var o,s="";for(o=0;o<i;o++)s+=n[o]instanceof Function?n[o].call(e,t):n[o];return s}}function V(t,e){return t.isValid()?(e=X(e,t.localeData()),Mn[e]=Mn[e]||G(e),Mn[e](t)):t.localeData().invalidDate()}function X(t,e){function i(t){return e.longDateFormat(t)||t}var n=5;for(Pn.lastIndex=0;n>=0&&Pn.test(t);)t=t.replace(Pn,i),Pn.lastIndex=0,n-=1;return t}function K(t,e,i){Xn[t]=C(e)?e:function(t,n){return t&&i?i:e}}function Q(t,e){return a(Xn,t)?Xn[t](e._strict,e._locale):new RegExp(Z(t))}function Z(t){return J(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,o){return e||i||n||o}))}function J(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function tt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),"number"==typeof e&&(n=function(t,i){i[e]=b(t)}),i=0;i<t.length;i++)Kn[t[i]]=n}function et(t,e){tt(t,function(t,i,n,o){n._w=n._w||{},e(t,n._w,n,o)})}function it(t,e,i){null!=e&&a(Kn,t)&&Kn[t](e,i._a,i,t)}function nt(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function ot(t,e){return i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ro).test(e)?"format":"standalone"][t.month()]}function st(t,e){return i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ro.test(e)?"format":"standalone"][t.month()]}function rt(t,e,i){var n,o,s,r=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=c([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?(o=bn.call(this._shortMonthsParse,r),o!==-1?o:null):(o=bn.call(this._longMonthsParse,r),o!==-1?o:null):"MMM"===e?(o=bn.call(this._shortMonthsParse,r),o!==-1?o:(o=bn.call(this._longMonthsParse,r),o!==-1?o:null)):(o=bn.call(this._longMonthsParse,r),o!==-1?o:(o=bn.call(this._shortMonthsParse,r),o!==-1?o:null))}function at(t,e,i){var n,o,s;if(this._monthsParseExact)return rt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(o=c([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[n]=new RegExp(s.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 lt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=b(e);else if(e=t.localeData().monthsParse(e),"number"!=typeof e)return t;return i=Math.min(t.date(),nt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ct(e){return null!=e?(lt(this,e),t.updateOffset(this,!0),this):B(this,"Month")}function ht(){return nt(this.year(),this.month())}function dt(t){return this._monthsParseExact?(a(this,"_monthsRegex")||pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=co),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function ut(t){return this._monthsParseExact?(a(this,"_monthsRegex")||pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=ho),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function pt(){function t(t,e){return e.length-t.length}var e,i,n=[],o=[],s=[];for(e=0;e<12;e++)i=c([2e3,e]),n.push(this.monthsShort(i,"")),o.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),o.sort(t),s.sort(t),e=0;e<12;e++)n[e]=J(n[e]),o[e]=J(o[e]);for(e=0;e<24;e++)s[e]=J(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function ft(t){return gt(t)?366:365}function gt(t){return t%4===0&&t%100!==0||t%400===0}function mt(){return gt(this.year())}function vt(t,e,i,n,o,s,r){var a=new Date(t,e,i,n,o,s,r);return t<100&&t>=0&&isFinite(a.getFullYear())&&a.setFullYear(t),
9a}function yt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function bt(t,e,i){var n=7+e-i,o=(7+yt(t,0,n).getUTCDay()-e)%7;return-o+n-1}function xt(t,e,i,n,o){var s,r,a=(7+i-n)%7,l=bt(t,n,o),c=1+7*(e-1)+a+l;return c<=0?(s=t-1,r=ft(s)+c):c>ft(t)?(s=t+1,r=c-ft(t)):(s=t,r=c),{year:s,dayOfYear:r}}function kt(t,e,i){var n,o,s=bt(t.year(),e,i),r=Math.floor((t.dayOfYear()-s-1)/7)+1;return r<1?(o=t.year()-1,n=r+wt(o,e,i)):r>wt(t.year(),e,i)?(n=r-wt(t.year(),e,i),o=t.year()+1):(o=t.year(),n=r),{week:n,year:o}}function wt(t,e,i){var n=bt(t,e,i),o=bt(t+1,e,i);return(ft(t)-n+o)/7}function Tt(t){return kt(t,this._week.dow,this._week.doy).week}function Ct(){return this._week.dow}function St(){return this._week.doy}function _t(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function At(t){var e=kt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Et(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Pt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Mt(t,e){return i(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]}function Dt(t){return this._weekdaysShort[t.day()]}function Ot(t){return this._weekdaysMin[t.day()]}function $t(t,e,i){var n,o,s,r=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=c([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?(o=bn.call(this._weekdaysParse,r),o!==-1?o:null):"ddd"===e?(o=bn.call(this._shortWeekdaysParse,r),o!==-1?o:null):(o=bn.call(this._minWeekdaysParse,r),o!==-1?o:null):"dddd"===e?(o=bn.call(this._weekdaysParse,r),o!==-1?o:(o=bn.call(this._shortWeekdaysParse,r),o!==-1?o:(o=bn.call(this._minWeekdaysParse,r),o!==-1?o:null))):"ddd"===e?(o=bn.call(this._shortWeekdaysParse,r),o!==-1?o:(o=bn.call(this._weekdaysParse,r),o!==-1?o:(o=bn.call(this._minWeekdaysParse,r),o!==-1?o:null))):(o=bn.call(this._minWeekdaysParse,r),o!==-1?o:(o=bn.call(this._weekdaysParse,r),o!==-1?o:(o=bn.call(this._shortWeekdaysParse,r),o!==-1?o:null)))}function Lt(t,e,i){var n,o,s;if(this._weekdaysParseExact)return $t.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(o=c([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[n]=new RegExp(s.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 It(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Et(t,this.localeData()),this.add(t-e,"d")):e}function Rt(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 Ft(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Ht(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=vo),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Nt(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=yo),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bt(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=bo),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zt(){function t(t,e){return e.length-t.length}var e,i,n,o,s,r=[],a=[],l=[],h=[];for(e=0;e<7;e++)i=c([2e3,1]).day(e),n=this.weekdaysMin(i,""),o=this.weekdaysShort(i,""),s=this.weekdays(i,""),r.push(n),a.push(o),l.push(s),h.push(n),h.push(o),h.push(s);for(r.sort(t),a.sort(t),l.sort(t),h.sort(t),e=0;e<7;e++)a[e]=J(a[e]),l[e]=J(l[e]),h[e]=J(h[e]);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 jt(){return this.hours()%12||12}function Wt(){return this.hours()||24}function Yt(t,e){U(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function Ut(t,e){return e._meridiemParse}function qt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Gt(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"}function Vt(t){return t?t.toLowerCase().replace("_","-"):t}function Xt(t){for(var e,i,n,o,s=0;s<t.length;){for(o=Vt(t[s]).split("-"),e=o.length,i=Vt(t[s+1]),i=i?i.split("-"):null;e>0;){if(n=Kt(o.slice(0,e).join("-")))return n;if(i&&i.length>=e&&x(o,i,!0)>=e-1)break;e--}s++}return null}function Kt(t){var e=null;if(!Co[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=xo._abbr,require("./locale/"+t),Qt(e)}catch(i){}return Co[t]}function Qt(t,e){var i;return t&&(i=f(e)?te(t):Zt(t,e),i&&(xo=i)),xo._abbr}function Zt(t,e){if(null!==e){var i=To;return e.abbr=t,null!=Co[t]?(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."),i=Co[t]._config):null!=e.parentLocale&&(null!=Co[e.parentLocale]?i=Co[e.parentLocale]._config:T("parentLocaleUndefined","specified parentLocale is not defined yet. See http://momentjs.com/guides/#/warnings/parent-locale/")),Co[t]=new A(_(i,e)),Qt(t),Co[t]}return delete Co[t],null}function Jt(t,e){if(null!=e){var i,n=To;null!=Co[t]&&(n=Co[t]._config),e=_(n,e),i=new A(e),i.parentLocale=Co[t],Co[t]=i,Qt(t)}else null!=Co[t]&&(null!=Co[t].parentLocale?Co[t]=Co[t].parentLocale:null!=Co[t]&&delete Co[t]);return Co[t]}function te(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return xo;if(!i(t)){if(e=Kt(t))return e;t=[t]}return Xt(t)}function ee(){return yn(Co)}function ie(t){var e,i=t._a;return i&&d(t).overflow===-2&&(e=i[Zn]<0||i[Zn]>11?Zn:i[Jn]<1||i[Jn]>nt(i[Qn],i[Zn])?Jn:i[to]<0||i[to]>24||24===i[to]&&(0!==i[eo]||0!==i[io]||0!==i[no])?to:i[eo]<0||i[eo]>59?eo:i[io]<0||i[io]>59?io:i[no]<0||i[no]>999?no:-1,d(t)._overflowDayOfYear&&(e<Qn||e>Jn)&&(e=Jn),d(t)._overflowWeeks&&e===-1&&(e=oo),d(t)._overflowWeekday&&e===-1&&(e=so),d(t).overflow=e),t}function ne(t){var e,i,n,o,s,r,a=t._i,l=So.exec(a)||_o.exec(a);if(l){for(d(t).iso=!0,e=0,i=Eo.length;e<i;e++)if(Eo[e][1].exec(l[1])){o=Eo[e][0],n=Eo[e][2]!==!1;break}if(null==o)return void(t._isValid=!1);if(l[3]){for(e=0,i=Po.length;e<i;e++)if(Po[e][1].exec(l[3])){s=(l[2]||" ")+Po[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(l[4]){if(!Ao.exec(l[4]))return void(t._isValid=!1);r="Z"}t._f=o+(s||"")+(r||""),ce(t)}else t._isValid=!1}function oe(e){var i=Mo.exec(e._i);return null!==i?void(e._d=new Date((+i[1]))):(ne(e),void(e._isValid===!1&&(delete e._isValid,t.createFromInputFallback(e))))}function se(t,e,i){return null!=t?t:null!=e?e:i}function re(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ae(t){var e,i,n,o,s=[];if(!t._d){for(n=re(t),t._w&&null==t._a[Jn]&&null==t._a[Zn]&&le(t),t._dayOfYear&&(o=se(t._a[Qn],n[Qn]),t._dayOfYear>ft(o)&&(d(t)._overflowDayOfYear=!0),i=yt(o,0,t._dayOfYear),t._a[Zn]=i.getUTCMonth(),t._a[Jn]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[to]&&0===t._a[eo]&&0===t._a[io]&&0===t._a[no]&&(t._nextDay=!0,t._a[to]=0),t._d=(t._useUTC?yt:vt).apply(null,s),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[to]=24)}}function le(t){var e,i,n,o,s,r,a,l;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(s=1,r=4,i=se(e.GG,t._a[Qn],kt(ve(),1,4).year),n=se(e.W,1),o=se(e.E,1),(o<1||o>7)&&(l=!0)):(s=t._locale._week.dow,r=t._locale._week.doy,i=se(e.gg,t._a[Qn],kt(ve(),s,r).year),n=se(e.w,1),null!=e.d?(o=e.d,(o<0||o>6)&&(l=!0)):null!=e.e?(o=e.e+s,(e.e<0||e.e>6)&&(l=!0)):o=s),n<1||n>wt(i,s,r)?d(t)._overflowWeeks=!0:null!=l?d(t)._overflowWeekday=!0:(a=xt(i,n,o,s,r),t._a[Qn]=a.year,t._dayOfYear=a.dayOfYear)}function ce(e){if(e._f===t.ISO_8601)return void ne(e);e._a=[],d(e).empty=!0;var i,n,o,s,r,a=""+e._i,l=a.length,c=0;for(o=X(e._f,e._locale).match(En)||[],i=0;i<o.length;i++)s=o[i],n=(a.match(Q(s,e))||[])[0],n&&(r=a.substr(0,a.indexOf(n)),r.length>0&&d(e).unusedInput.push(r),a=a.slice(a.indexOf(n)+n.length),c+=n.length),Dn[s]?(n?d(e).empty=!1:d(e).unusedTokens.push(s),it(s,n,e)):e._strict&&!n&&d(e).unusedTokens.push(s);d(e).charsLeftOver=l-c,a.length>0&&d(e).unusedInput.push(a),e._a[to]<=12&&d(e).bigHour===!0&&e._a[to]>0&&(d(e).bigHour=void 0),d(e).parsedDateParts=e._a.slice(0),d(e).meridiem=e._meridiem,e._a[to]=he(e._locale,e._a[to],e._meridiem),ae(e),ie(e)}function he(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 de(t){var e,i,n,o,s;if(0===t._f.length)return d(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<t._f.length;o++)s=0,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],ce(e),u(e)&&(s+=d(e).charsLeftOver,s+=10*d(e).unusedTokens.length,d(e).score=s,(null==n||s<n)&&(n=s,i=e));l(t,i||e)}function ue(t){if(!t._d){var e=R(t._i);t._a=r([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ae(t)}}function pe(t){var e=new m(ie(fe(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function fe(t){var e=t._i,n=t._f;return t._locale=t._locale||te(t._l),null===e||void 0===n&&""===e?p({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),v(e)?new m(ie(e)):(i(n)?de(t):s(e)?t._d=e:n?ce(t):ge(t),u(t)||(t._d=null),t))}function ge(e){var n=e._i;void 0===n?e._d=new Date(t.now()):s(n)?e._d=new Date(n.valueOf()):"string"==typeof n?oe(e):i(n)?(e._a=r(n.slice(0),function(t){return parseInt(t,10)}),ae(e)):"object"==typeof n?ue(e):"number"==typeof n?e._d=new Date(n):t.createFromInputFallback(e)}function me(t,e,s,r,a){var l={};return"boolean"==typeof s&&(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,pe(l)}function ve(t,e,i,n){return me(t,e,i,n,!1)}function ye(t,e){var n,o;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return ve();for(n=e[0],o=1;o<e.length;++o)e[o].isValid()&&!e[o][t](n)||(n=e[o]);return n}function be(){var t=[].slice.call(arguments,0);return ye("isBefore",t)}function xe(){var t=[].slice.call(arguments,0);return ye("isAfter",t)}function ke(t){var e=R(t),i=e.year||0,n=e.quarter||0,o=e.month||0,s=e.week||0,r=e.day||0,a=e.hour||0,l=e.minute||0,c=e.second||0,h=e.millisecond||0;this._milliseconds=+h+1e3*c+6e4*l+1e3*a*60*60,this._days=+r+7*s,this._months=+o+3*n+12*i,this._data={},this._locale=te(),this._bubble()}function we(t){return t instanceof ke}function Te(t,e){U(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Y(~~(t/60),2)+e+Y(~~t%60,2)})}function Ce(t,e){var i=(e||"").match(t)||[],n=i[i.length-1]||[],o=(n+"").match(Lo)||["-",0,0],s=+(60*o[1])+b(o[2]);return"+"===o[0]?s:-s}function Se(e,i){var n,o;return i._isUTC?(n=i.clone(),o=(v(e)||s(e)?e.valueOf():ve(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+o),t.updateOffset(n,!1),n):ve(e).local()}function _e(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Ae(e,i){var n,o=this._offset||0;return this.isValid()?null!=e?("string"==typeof e?e=Ce(qn,e):Math.abs(e)<16&&(e=60*e),!this._isUTC&&i&&(n=_e(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==e&&(!i||this._changeInProgress?Ye(this,He(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?o:_e(this):null!=e?this:NaN}function Ee(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function Pe(t){return this.utcOffset(0,t)}function Me(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(_e(this),"m")),this}function De(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(Ce(Un,this._i)),this}function Oe(t){return!!this.isValid()&&(t=t?ve(t).utcOffset():0,(this.utcOffset()-t)%60===0)}function $e(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Le(){if(!f(this._isDSTShifted))return this._isDSTShifted;var t={};if(g(t,this),t=fe(t),t._a){var e=t._isUTC?c(t._a):ve(t._a);this._isDSTShifted=this.isValid()&&x(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function Ie(){return!!this.isValid()&&!this._isUTC}function Re(){return!!this.isValid()&&this._isUTC}function Fe(){return!!this.isValid()&&this._isUTC&&0===this._offset}function He(t,e){var i,n,o,s=t,r=null;return we(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(r=Io.exec(t))?(i="-"===r[1]?-1:1,s={y:0,d:b(r[Jn])*i,h:b(r[to])*i,m:b(r[eo])*i,s:b(r[io])*i,ms:b(r[no])*i}):(r=Ro.exec(t))?(i="-"===r[1]?-1:1,s={y:Ne(r[2],i),M:Ne(r[3],i),w:Ne(r[4],i),d:Ne(r[5],i),h:Ne(r[6],i),m:Ne(r[7],i),s:Ne(r[8],i)}):null==s?s={}:"object"==typeof s&&("from"in s||"to"in s)&&(o=ze(ve(s.from),ve(s.to)),s={},s.ms=o.milliseconds,s.M=o.months),n=new ke(s),we(t)&&a(t,"_locale")&&(n._locale=t._locale),n}function Ne(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Be(t,e){var i={milliseconds:0,months:0};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 ze(t,e){var i;return t.isValid()&&e.isValid()?(e=Se(e,t),t.isBefore(e)?i=Be(t,e):(i=Be(e,t),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function je(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function We(t,e){return function(i,n){var o,s;return null===n||isNaN(+n)||(T(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."),s=i,i=n,n=s),i="string"==typeof i?+i:i,o=He(i,n),Ye(this,o,t),this}}function Ye(e,i,n,o){var s=i._milliseconds,r=je(i._days),a=je(i._months);e.isValid()&&(o=null==o||o,s&&e._d.setTime(e._d.valueOf()+s*n),r&&z(e,"Date",B(e,"Date")+r*n),a&&lt(e,B(e,"Month")+a*n),o&&t.updateOffset(e,r||a))}function Ue(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 qe(e,i){var n=e||ve(),o=Se(n,this).startOf("day"),s=t.calendarFormat(this,o)||"sameElse",r=i&&(C(i[s])?i[s].call(this,n):i[s]);return this.format(r||this.localeData().calendar(s,this,ve(n)))}function Ge(){return new m(this)}function Ve(t,e){var i=v(t)?t:ve(t);return!(!this.isValid()||!i.isValid())&&(e=I(f(e)?"millisecond":e),"millisecond"===e?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())}function Xe(t,e){var i=v(t)?t:ve(t);return!(!this.isValid()||!i.isValid())&&(e=I(f(e)?"millisecond":e),"millisecond"===e?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())}function Ke(t,e,i,n){return n=n||"()",("("===n[0]?this.isAfter(t,i):!this.isBefore(t,i))&&(")"===n[1]?this.isBefore(e,i):!this.isAfter(e,i))}function Qe(t,e){var i,n=v(t)?t:ve(t);return!(!this.isValid()||!n.isValid())&&(e=I(e||"millisecond"),"millisecond"===e?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))}function Ze(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function Je(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function ti(t,e,i){var n,o,s,r;return this.isValid()?(n=Se(t,this),n.isValid()?(o=6e4*(n.utcOffset()-this.utcOffset()),e=I(e),"year"===e||"month"===e||"quarter"===e?(r=ei(this,n),"quarter"===e?r/=3:"year"===e&&(r/=12)):(s=this-n,r="second"===e?s/1e3:"minute"===e?s/6e4:"hour"===e?s/36e5:"day"===e?(s-o)/864e5:"week"===e?(s-o)/6048e5:s),i?r:y(r)):NaN):NaN}function ei(t,e){var i,n,o=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(o,"months");return e-s<0?(i=t.clone().add(o-1,"months"),n=(e-s)/(s-i)):(i=t.clone().add(o+1,"months"),n=(e-s)/(i-s)),-(o+n)||0}function ii(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ni(){var t=this.clone().utc();return 0<t.year()&&t.year()<=9999?C(Date.prototype.toISOString)?this.toDate().toISOString():V(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):V(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function oi(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=V(this,e);return this.localeData().postformat(i)}function si(t,e){return this.isValid()&&(v(t)&&t.isValid()||ve(t).isValid())?He({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function ri(t){return this.from(ve(),t)}function ai(t,e){return this.isValid()&&(v(t)&&t.isValid()||ve(t).isValid())?He({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function li(t){return this.to(ve(),t)}function ci(t){var e;return void 0===t?this._locale._abbr:(e=te(t),null!=e&&(this._locale=e),this)}function hi(){return this._locale}function di(t){switch(t=I(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function ui(t){return t=I(t),void 0===t||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function pi(){return this._d.valueOf()-6e4*(this._offset||0)}function fi(){return Math.floor(this.valueOf()/1e3)}function gi(){return new Date(this.valueOf())}function mi(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function vi(){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 yi(){return this.isValid()?this.toISOString():null}function bi(){return u(this)}function xi(){return l({},d(this))}function ki(){return d(this).overflow}function wi(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ti(t,e){U(0,[t,t.length],0,e)}function Ci(t){return Ei.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Si(t){return Ei.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function _i(){return wt(this.year(),1,4)}function Ai(){var t=this.localeData()._week;return wt(this.year(),t.dow,t.doy)}function Ei(t,e,i,n,o){var s;return null==t?kt(this,n,o).year:(s=wt(t,n,o),e>s&&(e=s),Pi.call(this,t,e,i,n,o))}function Pi(t,e,i,n,o){var s=xt(t,e,i,n,o),r=yt(s.year,0,s.dayOfYear);return this.year(r.getUTCFullYear()),this.month(r.getUTCMonth()),this.date(r.getUTCDate()),this}function Mi(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Di(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 Oi(t,e){e[no]=b(1e3*("0."+t))}function $i(){return this._isUTC?"UTC":""}function Li(){return this._isUTC?"Coordinated Universal Time":""}function Ii(t){return ve(1e3*t)}function Ri(){return ve.apply(null,arguments).parseZone()}function Fi(t){return t}function Hi(t,e,i,n){var o=te(),s=c().set(n,e);return o[i](s,t)}function Ni(t,e,i){if("number"==typeof t&&(e=t,t=void 0),t=t||"",null!=e)return Hi(t,e,i,"month");var n,o=[];for(n=0;n<12;n++)o[n]=Hi(t,n,i,"month");return o}function Bi(t,e,i,n){"boolean"==typeof t?("number"==typeof e&&(i=e,e=void 0),e=e||""):(e=t,i=e,t=!1,"number"==typeof e&&(i=e,e=void 0),e=e||"");var o=te(),s=t?o._week.dow:0;if(null!=i)return Hi(e,(i+s)%7,n,"day");var r,a=[];for(r=0;r<7;r++)a[r]=Hi(e,(r+s)%7,n,"day");return a}function zi(t,e){return Ni(t,e,"months")}function ji(t,e){return Ni(t,e,"monthsShort")}function Wi(t,e,i){return Bi(t,e,i,"weekdays")}function Yi(t,e,i){return Bi(t,e,i,"weekdaysShort")}function Ui(t,e,i){return Bi(t,e,i,"weekdaysMin")}function qi(){var t=this._data;return this._milliseconds=Vo(this._milliseconds),this._days=Vo(this._days),this._months=Vo(this._months),t.milliseconds=Vo(t.milliseconds),t.seconds=Vo(t.seconds),t.minutes=Vo(t.minutes),t.hours=Vo(t.hours),t.months=Vo(t.months),t.years=Vo(t.years),this}function Gi(t,e,i,n){var o=He(e,i);return t._milliseconds+=n*o._milliseconds,t._days+=n*o._days,t._months+=n*o._months,t._bubble()}function Vi(t,e){return Gi(this,t,e,1)}function Xi(t,e){return Gi(this,t,e,-1)}function Ki(t){return t<0?Math.floor(t):Math.ceil(t)}function Qi(){var t,e,i,n,o,s=this._milliseconds,r=this._days,a=this._months,l=this._data;return s>=0&&r>=0&&a>=0||s<=0&&r<=0&&a<=0||(s+=864e5*Ki(Ji(a)+r),r=0,a=0),l.milliseconds=s%1e3,t=y(s/1e3),l.seconds=t%60,e=y(t/60),l.minutes=e%60,i=y(e/60),l.hours=i%24,r+=y(i/24),o=y(Zi(r)),a+=o,r-=Ki(Ji(o)),n=y(a/12),a%=12,l.days=r,l.months=a,l.years=n,this}function Zi(t){return 4800*t/146097}function Ji(t){return 146097*t/4800}function tn(t){var e,i,n=this._milliseconds;if(t=I(t),"month"===t||"year"===t)return e=this._days+n/864e5,i=this._months+Zi(e),"month"===t?i:i/12;switch(e=this._days+Math.round(Ji(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 en(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*b(this._months/12)}function nn(t){return function(){return this.as(t)}}function on(t){return t=I(t),this[t+"s"]()}function sn(t){return function(){return this._data[t]}}function rn(){return y(this.days()/7)}function an(t,e,i,n,o){return o.relativeTime(e||1,!!i,t,n)}function ln(t,e,i){var n=He(t).abs(),o=hs(n.as("s")),s=hs(n.as("m")),r=hs(n.as("h")),a=hs(n.as("d")),l=hs(n.as("M")),c=hs(n.as("y")),h=o<ds.s&&["s",o]||s<=1&&["m"]||s<ds.m&&["mm",s]||r<=1&&["h"]||r<ds.h&&["hh",r]||a<=1&&["d"]||a<ds.d&&["dd",a]||l<=1&&["M"]||l<ds.M&&["MM",l]||c<=1&&["y"]||["yy",c];return h[2]=e,h[3]=+t>0,h[4]=i,an.apply(null,h)}function cn(t){return void 0===t?hs:"function"==typeof t&&(hs=t,!0)}function hn(t,e){return void 0!==ds[t]&&(void 0===e?ds[t]:(ds[t]=e,!0))}function dn(t){var e=this.localeData(),i=ln(this,!t,e);return t&&(i=e.pastFuture(+this,i)),e.postformat(i)}function un(){var t,e,i,n=us(this._milliseconds)/1e3,o=us(this._days),s=us(this._months);t=y(n/60),e=y(t/60),n%=60,t%=60,i=y(s/12),s%=12;var r=i,a=s,l=o,c=e,h=t,d=n,u=this.asSeconds();return u?(u<0?"-":"")+"P"+(r?r+"Y":"")+(a?a+"M":"")+(l?l+"D":"")+(c||h||d?"T":"")+(c?c+"H":"")+(h?h+"M":"")+(d?d+"S":""):"P0D"}var pn,fn;fn=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var gn=t.momentProperties=[],mn=!1,vn={};t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var yn;yn=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)a(t,e)&&i.push(e);return i};var bn,xn={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},kn={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"},wn="Invalid date",Tn="%d",Cn=/\d{1,2}/,Sn={future:"in %s",past:"%s ago",s:"a few 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"},_n={},An={},En=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pn=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Mn={},Dn={},On=/\d/,$n=/\d\d/,Ln=/\d{3}/,In=/\d{4}/,Rn=/[+-]?\d{6}/,Fn=/\d\d?/,Hn=/\d\d\d\d?/,Nn=/\d\d\d\d\d\d?/,Bn=/\d{1,3}/,zn=/\d{1,4}/,jn=/[+-]?\d{1,6}/,Wn=/\d+/,Yn=/[+-]?\d+/,Un=/Z|[+-]\d\d:?\d\d/gi,qn=/Z|[+-]\d\d(?::?\d\d)?/gi,Gn=/[+-]?\d+(\.\d{1,3})?/,Vn=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Xn={},Kn={},Qn=0,Zn=1,Jn=2,to=3,eo=4,io=5,no=6,oo=7,so=8;bn=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},U("M",["MM",2],"Mo",function(){return this.month()+1}),U("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),U("MMMM",0,0,function(t){return this.localeData().months(this,t)}),L("month","M"),F("month",8),K("M",Fn),K("MM",Fn,$n),K("MMM",function(t,e){return e.monthsShortRegex(t)}),K("MMMM",function(t,e){return e.monthsRegex(t)}),tt(["M","MM"],function(t,e){e[Zn]=b(t)-1}),tt(["MMM","MMMM"],function(t,e,i,n){var o=i._locale.monthsParse(t,n,i._strict);null!=o?e[Zn]=o:d(i).invalidMonth=t});var ro=/D[oD]?(\[[^\[\]]*\]|\s+)+MMMM?/,ao="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),lo="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),co=Vn,ho=Vn;U("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),U(0,["YY",2],0,function(){return this.year()%100}),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),L("year","y"),F("year",1),K("Y",Yn),K("YY",Fn,$n),K("YYYY",zn,In),K("YYYYY",jn,Rn),K("YYYYYY",jn,Rn),tt(["YYYYY","YYYYYY"],Qn),tt("YYYY",function(e,i){i[Qn]=2===e.length?t.parseTwoDigitYear(e):b(e)}),tt("YY",function(e,i){i[Qn]=t.parseTwoDigitYear(e)}),tt("Y",function(t,e){e[Qn]=parseInt(t,10)}),t.parseTwoDigitYear=function(t){return b(t)+(b(t)>68?1900:2e3)};var uo=N("FullYear",!0);U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),L("week","w"),L("isoWeek","W"),F("week",5),F("isoWeek",5),K("w",Fn),K("ww",Fn,$n),K("W",Fn),K("WW",Fn,$n),et(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=b(t)});var po={dow:0,doy:6};U("d",0,"do","day"),U("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),U("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),U("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),L("day","d"),L("weekday","e"),L("isoWeekday","E"),F("day",11),F("weekday",11),F("isoWeekday",11),K("d",Fn),K("e",Fn),K("E",Fn),K("dd",function(t,e){return e.weekdaysMinRegex(t)}),K("ddd",function(t,e){return e.weekdaysShortRegex(t)}),K("dddd",function(t,e){return e.weekdaysRegex(t)}),et(["dd","ddd","dddd"],function(t,e,i,n){var o=i._locale.weekdaysParse(t,n,i._strict);null!=o?e.d=o:d(i).invalidWeekday=t}),et(["d","e","E"],function(t,e,i,n){e[n]=b(t)});var fo="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),go="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mo="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),vo=Vn,yo=Vn,bo=Vn;U("H",["HH",2],0,"hour"),U("h",["hh",2],0,jt),U("k",["kk",2],0,Wt),U("hmm",0,0,function(){return""+jt.apply(this)+Y(this.minutes(),2)}),U("hmmss",0,0,function(){return""+jt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)}),U("Hmm",0,0,function(){return""+this.hours()+Y(this.minutes(),2)}),U("Hmmss",0,0,function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)}),Yt("a",!0),Yt("A",!1),L("hour","h"),F("hour",13),K("a",Ut),K("A",Ut),K("H",Fn),K("h",Fn),K("HH",Fn,$n),K("hh",Fn,$n),K("hmm",Hn),K("hmmss",Nn),K("Hmm",Hn),K("Hmmss",Nn),tt(["H","HH"],to),tt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),tt(["h","hh"],function(t,e,i){e[to]=b(t),d(i).bigHour=!0}),tt("hmm",function(t,e,i){var n=t.length-2;e[to]=b(t.substr(0,n)),e[eo]=b(t.substr(n)),d(i).bigHour=!0}),tt("hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[to]=b(t.substr(0,n)),e[eo]=b(t.substr(n,2)),e[io]=b(t.substr(o)),d(i).bigHour=!0}),tt("Hmm",function(t,e,i){var n=t.length-2;e[to]=b(t.substr(0,n)),e[eo]=b(t.substr(n))}),tt("Hmmss",function(t,e,i){var n=t.length-4,o=t.length-2;e[to]=b(t.substr(0,n)),e[eo]=b(t.substr(n,2)),e[io]=b(t.substr(o))});var xo,ko=/[ap]\.?m?\.?/i,wo=N("Hours",!0),To={calendar:xn,longDateFormat:kn,invalidDate:wn,ordinal:Tn,ordinalParse:Cn,relativeTime:Sn,months:ao,monthsShort:lo,week:po,weekdays:fo,weekdaysMin:mo,weekdaysShort:go,meridiemParse:ko},Co={},So=/^\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)?)?/,_o=/^\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)?)?/,Ao=/Z|[+-]\d\d(?::?\d\d)?/,Eo=[["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}/]],Po=[["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/]],Mo=/^\/?Date\((\-?\d+)/i;t.createFromInputFallback=w("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. 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(){};var Do=w("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ve.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:p()}),Oo=w("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=ve.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:p()}),$o=function(){return Date.now?Date.now():+new Date};Te("Z",":"),Te("ZZ",""),K("Z",qn),K("ZZ",qn),tt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=Ce(qn,t)});var Lo=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Io=/^(\-)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?\d*)?$/,Ro=/^(-)?P(?:(-?[0-9,.]*)Y)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)W)?(?:(-?[0-9,.]*)D)?(?:T(?:(-?[0-9,.]*)H)?(?:(-?[0-9,.]*)M)?(?:(-?[0-9,.]*)S)?)?$/;
10He.fn=ke.prototype;var Fo=We(1,"add"),Ho=We(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var No=w("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)});U(0,["gg",2],0,function(){return this.weekYear()%100}),U(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Ti("gggg","weekYear"),Ti("ggggg","weekYear"),Ti("GGGG","isoWeekYear"),Ti("GGGGG","isoWeekYear"),L("weekYear","gg"),L("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),K("G",Yn),K("g",Yn),K("GG",Fn,$n),K("gg",Fn,$n),K("GGGG",zn,In),K("gggg",zn,In),K("GGGGG",jn,Rn),K("ggggg",jn,Rn),et(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=b(t)}),et(["gg","GG"],function(e,i,n,o){i[o]=t.parseTwoDigitYear(e)}),U("Q",0,"Qo","quarter"),L("quarter","Q"),F("quarter",7),K("Q",On),tt("Q",function(t,e){e[Zn]=3*(b(t)-1)}),U("D",["DD",2],"Do","date"),L("date","D"),F("date",9),K("D",Fn),K("DD",Fn,$n),K("Do",function(t,e){return t?e._ordinalParse:e._ordinalParseLenient}),tt(["D","DD"],Jn),tt("Do",function(t,e){e[Jn]=b(t.match(Fn)[0],10)});var Bo=N("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),L("dayOfYear","DDD"),F("dayOfYear",4),K("DDD",Bn),K("DDDD",Ln),tt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=b(t)}),U("m",["mm",2],0,"minute"),L("minute","m"),F("minute",14),K("m",Fn),K("mm",Fn,$n),tt(["m","mm"],eo);var zo=N("Minutes",!1);U("s",["ss",2],0,"second"),L("second","s"),F("second",15),K("s",Fn),K("ss",Fn,$n),tt(["s","ss"],io);var jo=N("Seconds",!1);U("S",0,0,function(){return~~(this.millisecond()/100)}),U(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,function(){return 10*this.millisecond()}),U(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),U(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),U(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),U(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),U(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),L("millisecond","ms"),F("millisecond",16),K("S",Bn,On),K("SS",Bn,$n),K("SSS",Bn,Ln);var Wo;for(Wo="SSSS";Wo.length<=9;Wo+="S")K(Wo,Wn);for(Wo="S";Wo.length<=9;Wo+="S")tt(Wo,Oi);var Yo=N("Milliseconds",!1);U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Uo=m.prototype;Uo.add=Fo,Uo.calendar=qe,Uo.clone=Ge,Uo.diff=ti,Uo.endOf=ui,Uo.format=oi,Uo.from=si,Uo.fromNow=ri,Uo.to=ai,Uo.toNow=li,Uo.get=j,Uo.invalidAt=ki,Uo.isAfter=Ve,Uo.isBefore=Xe,Uo.isBetween=Ke,Uo.isSame=Qe,Uo.isSameOrAfter=Ze,Uo.isSameOrBefore=Je,Uo.isValid=bi,Uo.lang=No,Uo.locale=ci,Uo.localeData=hi,Uo.max=Oo,Uo.min=Do,Uo.parsingFlags=xi,Uo.set=W,Uo.startOf=di,Uo.subtract=Ho,Uo.toArray=mi,Uo.toObject=vi,Uo.toDate=gi,Uo.toISOString=ni,Uo.toJSON=yi,Uo.toString=ii,Uo.unix=fi,Uo.valueOf=pi,Uo.creationData=wi,Uo.year=uo,Uo.isLeapYear=mt,Uo.weekYear=Ci,Uo.isoWeekYear=Si,Uo.quarter=Uo.quarters=Mi,Uo.month=ct,Uo.daysInMonth=ht,Uo.week=Uo.weeks=_t,Uo.isoWeek=Uo.isoWeeks=At,Uo.weeksInYear=Ai,Uo.isoWeeksInYear=_i,Uo.date=Bo,Uo.day=Uo.days=It,Uo.weekday=Rt,Uo.isoWeekday=Ft,Uo.dayOfYear=Di,Uo.hour=Uo.hours=wo,Uo.minute=Uo.minutes=zo,Uo.second=Uo.seconds=jo,Uo.millisecond=Uo.milliseconds=Yo,Uo.utcOffset=Ae,Uo.utc=Pe,Uo.local=Me,Uo.parseZone=De,Uo.hasAlignedHourOffset=Oe,Uo.isDST=$e,Uo.isLocal=Ie,Uo.isUtcOffset=Re,Uo.isUtc=Fe,Uo.isUTC=Fe,Uo.zoneAbbr=$i,Uo.zoneName=Li,Uo.dates=w("dates accessor is deprecated. Use date instead.",Bo),Uo.months=w("months accessor is deprecated. Use month instead",ct),Uo.years=w("years accessor is deprecated. Use year instead",uo),Uo.zone=w("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ee),Uo.isDSTShifted=w("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Le);var qo=Uo,Go=A.prototype;
10Go.calendar=E,Go.longDateFormat=P,Go.invalidDate=M,Go.ordinal=D,Go.preparse=Fi,Go.postformat=Fi,Go.relativeTime=O,Go.pastFuture=$,Go.set=S,Go.months=ot,Go.monthsShort=st,Go.monthsParse=at,Go.monthsRegex=ut,Go.monthsShortRegex=dt,Go.week=Tt,Go.firstDayOfYear=St,Go.firstDayOfWeek=Ct,Go.weekdays=Mt,Go.weekdaysMin=Ot,Go.weekdaysShort=Dt,Go.weekdaysParse=Lt,Go.weekdaysRegex=Ht,Go.weekdaysShortRegex=Nt,Go.weekdaysMinRegex=Bt,Go.isPM=qt,Go.meridiem=Gt,Qt("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,i=1===b(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+i}}),t.lang=w("moment.lang is deprecated. Use moment.locale instead.",Qt),t.langData=w("moment.langData is deprecated. Use moment.localeData instead.",te);var Vo=Math.abs,Xo=nn("ms"),Ko=nn("s"),Qo=nn("m"),Zo=nn("h"),Jo=nn("d"),ts=nn("w"),es=nn("M"),is=nn("y"),ns=sn("milliseconds"),os=sn("seconds"),ss=sn("minutes"),rs=sn("hours"),as=sn("days"),ls=sn("months"),cs=sn("years"),hs=Math.round,ds={s:45,m:45,h:22,d:26,M:11},us=Math.abs,ps=ke.prototype;ps.abs=qi,ps.add=Vi,ps.subtract=Xi,ps.as=tn,ps.asMilliseconds=Xo,ps.asSeconds=Ko,ps.asMinutes=Qo,ps.asHours=Zo,ps.asDays=Jo,ps.asWeeks=ts,ps.asMonths=es,ps.asYears=is,ps.valueOf=en,ps._bubble=Qi,ps.get=on,ps.milliseconds=ns,ps.seconds=os,ps.minutes=ss,ps.hours=rs,ps.days=as,ps.weeks=rn,ps.months=ls,ps.years=cs,ps.humanize=dn,ps.toISOString=un,ps.toString=un,ps.toJSON=un,ps.locale=ci,ps.localeData=hi,ps.toIsoString=w("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",un),ps.lang=No,U("X",0,0,"unix"),U("x",0,0,"valueOf"),K("x",Yn),K("X",Gn),tt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),tt("x",function(t,e,i){i._d=new Date(b(t))}),t.version="2.14.1",e(ve),t.fn=qo,t.min=be,t.max=xe,t.now=$o,t.utc=c,t.unix=Ii,t.months=zi,t.isDate=s,t.locale=Qt,t.invalid=p,t.duration=He,t.isMoment=v,t.weekdays=Wi,t.parseZone=Ri,t.localeData=te,t.isDuration=we,t.monthsShort=ji,t.weekdaysMin=Ui,t.defineLocale=Zt,t.updateLocale=Jt,t.locales=ee,t.weekdaysShort=Yi,t.normalizeUnits=I,t.relativeTimeRounding=cn,t.relativeTimeThreshold=hn,t.calendarFormat=Ue,t.prototype=qo;var fs=t;return fs}),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="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),i="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),n=t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,n){return/-MMM-/.test(n)?i[t.month()]:e[t.month()]},monthsParseExact:!0,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"Zo_Ma_Di_Wo_Do_Vr_Za".split("_"),weekdaysParseExact:!0,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:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},ordinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}});return n}),function(t,e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)e(require("jquery"),require("moment"));else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker requires moment.js to be loaded first");e(t.jQuery,moment)}}(this,function(t,e){"use strict";if("undefined"==typeof e)throw new Error("momentjs is required");var i=0,n=function(n,o){var s,r=t.fn.datetimepicker.defaults,a={time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down"},l=this,c=!1,h=function(){var s,c,h=!1;if(l.options=t.extend({}
10,r,o),l.options.icons=t.extend({},a,l.options.icons),l.element=t(n),u(),!l.options.pickTime&&!l.options.pickDate)throw new Error("Must choose at least one picker");if(l.id=i++,e.locale(l.options.language),l.date=e(),l.unset=!1,l.isInput=l.element.is("input"),l.component=!1,l.element.hasClass("input-group")&&(0===l.element.find(".datepickerbutton").size()?l.component=l.element.find('[class^="input-group-"]'):l.component=l.element.find(".datepickerbutton")),l.format=l.options.format,s=e().localeData(),l.format||(l.format=l.options.pickDate?s.longDateFormat("L"):"",l.options.pickDate&&l.options.pickTime&&(l.format+=" "),l.format+=l.options.pickTime?s.longDateFormat("LT"):"",l.options.useSeconds&&(s.longDateFormat("LT").indexOf(" A")!==-1?l.format=l.format.split(" A")[0]+":ss A":l.format+=":ss")),l.use24hours=l.format.toLowerCase().indexOf("a")<0&&l.format.indexOf("h")<0,l.component&&(h=l.component.find("span")),l.options.pickTime&&h&&h.addClass(l.options.icons.time),l.options.pickDate&&h&&(h.removeClass(l.options.icons.time),h.addClass(l.options.icons.date)),l.options.widgetParent="string"==typeof l.options.widgetParent&&l.options.widgetParent||l.element.parents().filter(function(){return"scroll"===t(this).css("overflow-y")}).get(0)||"body",l.widget=t(j()).appendTo(l.options.widgetParent),l.minViewMode=l.options.minViewMode||0,"string"==typeof l.minViewMode)switch(l.minViewMode){case"months":l.minViewMode=1;break;case"years":l.minViewMode=2;break;default:l.minViewMode=0}if(l.viewMode=l.options.viewMode||0,"string"==typeof l.viewMode)switch(l.viewMode){case"months":l.viewMode=1;break;case"years":l.viewMode=2;break;default:l.viewMode=0}l.viewMode=Math.max(l.viewMode,l.minViewMode),l.options.disabledDates=B(l.options.disabledDates),l.options.enabledDates=B(l.options.enabledDates),l.startViewMode=l.viewMode,l.setMinDate(l.options.minDate),l.setMaxDate(l.options.maxDate),v(),y(),x(),k(),w(),m(),M(),d().prop("disabled")||D(),""!==l.options.defaultDate&&""===d().val()&&l.setValue(l.options.defaultDate),1!==l.options.minuteStepping&&(c=l.options.minuteStepping,l.date.minutes(Math.round(l.date.minutes()/c)*c%60).seconds(0))},d=function(){var t;if(l.isInput)return l.element;if(t=l.element.find(".datepickerinput"),0===t.size())t=l.element.find("input");else if(!t.is("input"))throw new Error('CSS class "datepickerinput" cannot be applied to non input element');return t},u=function(){var t;t=l.element.is("input")?l.element.data():l.element.find("input").data(),void 0!==t.dateFormat&&(l.options.format=t.dateFormat),void 0!==t.datePickdate&&(l.options.pickDate=t.datePickdate),void 0!==t.datePicktime&&(l.options.pickTime=t.datePicktime),void 0!==t.dateUseminutes&&(l.options.useMinutes=t.dateUseminutes),void 0!==t.dateUseseconds&&(l.options.useSeconds=t.dateUseseconds),void 0!==t.dateUsecurrent&&(l.options.useCurrent=t.dateUsecurrent),void 0!==t.calendarWeeks&&(l.options.calendarWeeks=t.calendarWeeks),void 0!==t.dateMinutestepping&&(l.options.minuteStepping=t.dateMinutestepping),void 0!==t.dateMindate&&(l.options.minDate=t.dateMindate),void 0!==t.dateMaxdate&&(l.options.maxDate=t.dateMaxdate),void 0!==t.dateShowtoday&&(l.options.showToday=t.dateShowtoday),void 0!==t.dateCollapse&&(l.options.collapse=t.dateCollapse),void 0!==t.dateLanguage&&(l.options.language=t.dateLanguage),void 0!==t.dateDefaultdate&&(l.options.defaultDate=t.dateDefaultdate),void 0!==t.dateDisableddates&&(l.options.disabledDates=t.dateDisableddates),void 0!==t.dateEnableddates&&(l.options.enabledDates=t.dateEnableddates),void 0!==t.dateIcons&&(l.options.icons=t.dateIcons),void 0!==t.dateUsestrict&&(l.options.useStrict=t.dateUsestrict),void 0!==t.dateDirection&&(l.options.direction=t.dateDirection),void 0!==t.dateSidebyside&&(l.options.sideBySide=t.dateSidebyside),void 0!==t.dateDaysofweekdisabled&&(l.options.daysOfWeekDisabled=t.dateDaysofweekdisabled)},p=function(){var e,i="absolute",n=l.component?l.component.offset():l.element.offset(),o=t(window);l.width=l.component?l.component.outerWidth():l.element.outerWidth(),n.top=n.top+l.element.outerHeight(),"up"===l.options.direction?e="top":"bottom"===l.options.direction?e="bottom":"auto"===l.options.direction&&(e=n.top+l.widget.height()>o.height()+o.scrollTop()&&l.widget.height()+l.element.outerHeight()<n.top?"to
10p":"bottom"),"top"===e?(n.top=n.top-l.element.outerHeight()-l.widget.height()-13,l.widget.addClass("top").removeClass("bottom")):(n.top+=1,l.widget.addClass("bottom").removeClass("top")),void 0!==l.options.width&&l.widget.width(l.options.width),"left"===l.options.orientation&&(l.widget.addClass("left-oriented"),n.left=n.left-l.widget.width()+20),I()&&(i="fixed",n.top-=o.scrollTop(),n.left-=o.scrollLeft()),o.width()<n.left+l.widget.outerWidth()?(n.right=o.width()-n.left-l.width,n.left="auto",l.widget.addClass("pull-right")):(n.right="auto",l.widget.removeClass("pull-right")),"top"===e?l.widget.css({position:i,bottom:"auto",top:n.top,left:n.left,right:n.right}):l.widget.css({position:i,top:n.top,bottom:"auto",left:n.left,right:n.right})},f=function(t,i){e(l.date).isSame(e(t))&&!c||(c=!1,l.element.trigger({type:"dp.change",date:e(l.date),oldDate:e(t)}),"change"!==i&&l.element.change())},g=function(t){c=!0,l.element.trigger({type:"dp.error",date:e(t,l.format,l.options.useStrict)})},m=function(t){e.locale(l.options.language);var i=t;i||(i=d().val(),i&&(l.date=e(i,l.format,l.options.useStrict)),l.date||(l.date=e())),l.viewDate=e(l.date).startOf("month"),b(),T()},v=function(){e.locale(l.options.language);var i,n=t("<tr>"),o=e.weekdaysMin();if(l.options.calendarWeeks===!0&&n.append('<th class="cw">#</th>'),0===e().localeData()._week.dow)for(i=0;i<7;i++)n.append('<th class="dow">'+o[i]+"</th>");else for(i=1;i<8;i++)7===i?n.append('<th class="dow">'+o[0]+"</th>"):n.append('<th class="dow">'+o[i]+"</th>");l.widget.find(".datepicker-days thead").append(n)},y=function(){e.locale(l.options.language);var t,i="",n=e.monthsShort();for(t=0;t<12;t++)i+='<span class="month">'+n[t]+"</span>";l.widget.find(".datepicker-months td").append(i)},b=function(){if(l.options.pickDate){e.locale(l.options.language);var i,n,o,s,r,a,c,h,d,u=l.viewDate.year(),p=l.viewDate.month(),f=l.options.minDate.year(),g=l.options.minDate.month(),m=l.options.maxDate.year(),v=l.options.maxDate.month(),y=[],b=e.months();for(l.widget.find(".datepicker-days").find(".disabled").removeClass("disabled"),l.widget.find(".datepicker-months").find(".disabled").removeClass("disabled"),l.widget.find(".datepicker-years").find(".disabled").removeClass("disabled"),l.widget.find(".datepicker-days th:eq(1)").text(b[p]+" "+u),n=e(l.viewDate,l.format,l.options.useStrict).subtract(1,"months"),c=n.daysInMonth(),n.date(c).startOf("week"),(u===f&&p<=g||u<f)&&l.widget.find(".datepicker-days th:eq(0)").addClass("disabled"),(u===m&&p>=v||u>m)&&l.widget.find(".datepicker-days th:eq(2)").addClass("disabled"),o=e(n).add(42,"d");n.isBefore(o);){if(n.weekday()===e().startOf("week").weekday()&&(s=t("<tr>"),y.push(s),l.options.calendarWeeks===!0&&s.append('<td class="cw">'+n.week()+"</td>")),r="",n.year()<u||n.year()===u&&n.month()<p?r+=" old":(n.year()>u||n.year()===u&&n.month()>p)&&(r+=" new"),n.isSame(e({y:l.date.year(),M:l.date.month(),d:l.date.date()}))&&(r+=" active"),!H(n,"day")&&N(n)||(r+=" disabled"),l.options.showToday===!0&&n.isSame(e(),"day")&&(r+=" today"),l.options.daysOfWeekDisabled)for(a=0;a<l.options.daysOfWeekDisabled.length;a++)if(n.day()===l.options.daysOfWeekDisabled[a]){r+=" disabled";break}s.append('<td class="day'+r+'">'+n.date()+"</td>"),i=n.date(),n.add(1,"d"),i===n.date()&&n.add(1,"d")}for(l.widget.find(".datepicker-days tbody").empty().append(y),d=l.date.year(),b=l.widget.find(".datepicker-months").find("th:eq(1)").text(u).end().find("span").removeClass("active"),d===u&&b.eq(l.date.month()).addClass("active"),u-1<f&&l.widget.find(".datepicker-months th:eq(0)").addClass("disabled"),u+1>m&&l.widget.find(".datepicker-months th:eq(2)").addClass("disabled"),a=0;a<12;a++)u===f&&g>a||u<f?t(b[a]).addClass("disabled"):(u===m&&v<a||u>m)&&t(b[a]).addClass("disabled");for(y="",u=10*parseInt(u/10,10),h=l.widget.find(".datepicker-years").find("th:eq(1)").text(u+"-"+(u+9)).parents("table").find("td"),l.widget.find(".datepicker-years").find("th").removeClass("disabled"),f>u&&l.widget.find(".datepicker-years").find("th:eq(0)").addClass("disabled"),m<u+9&&l.widget.find(".datepicker-years").find("th:eq(2)").addClass("disabled"),u-=1,a=-1;a<11;a++)y+='<span class="year'+(a===-1||10===a?" old":"")+(d===u?" active":"")+(u<f||u>m?" disabled":"")+'">'+u+"</span>",u+=1;h.html(y)}},x=function(){e.locale(l.options.language);var t,i,n,o=l.widget.find(".timepicker .timepicker-hours table"),s="";if(o.parent().hide(),l.use24hours)for(t=0,i=0;i<6;i+=1){for(s+="<tr>",n=0;n<4;n+=1)s+='<td class="hour">'+z(t.toString())+"</td>",t++;s+="</tr>"}else for(t=1,i=0;i<3;i+=1){for(s+="<tr>",n=0;n<4;n+=1)s+='<td class="hour">'+z(t.toString())+"</td>",t++;s+="</tr>"}o.html(s)},k=function(){var t,e,i=l.widget.find(".timepicker .timepicker-minutes table"),n="",o=0,s=l.options.minuteStepping;
10for(i.parent().hide(),1===s&&(s=5),t=0;t<Math.ceil(60/s/4);t++){for(n+="<tr>",e=0;e<4;e+=1)o<60?(n+='<td class="minute">'+z(o.toString())+"</td>",o+=s):n+="<td></td>";n+="</tr>"}i.html(n)},w=function(){var t,e,i=l.widget.find(".timepicker .timepicker-seconds table"),n="",o=0;for(i.parent().hide(),t=0;t<3;t++){for(n+="<tr>",e=0;e<4;e+=1)n+='<td class="second">'+z(o.toString())+"</td>",o+=5;n+="</tr>"}i.html(n)},T=function(){if(l.date){var t=l.widget.find(".timepicker span[data-time-component]"),e=l.date.hours(),i=l.date.format("A");l.use24hours||(0===e?e=12:12!==e&&(e%=12),l.widget.find(".timepicker [data-action=togglePeriod]").text(i)),t.filter("[data-time-component=hours]").text(z(e)),t.filter("[data-time-component=minutes]").text(z(l.date.minutes())),t.filter("[data-time-component=seconds]").text(z(l.date.second()))}},C=function(i){i.stopPropagation(),i.preventDefault(),l.unset=!1;var n,o,s,r,a=t(i.target).closest("span, td, th"),c=e(l.date);if(1===a.length&&!a.is(".disabled"))switch(a[0].nodeName.toLowerCase()){case"th":switch(a[0].className){case"picker-switch":M(1);break;case"prev":case"next":s=W.modes[l.viewMode].navStep,"prev"===a[0].className&&(s*=-1),l.viewDate.add(s,W.modes[l.viewMode].navFnc),b()}break;case"span":a.is(".month")?(n=a.parent().find("span").index(a),l.viewDate.month(n)):(o=parseInt(a.text(),10)||0,l.viewDate.year(o)),l.viewMode===l.minViewMode&&(l.date=e({y:l.viewDate.year(),M:l.viewDate.month(),d:l.viewDate.date(),h:l.date.hours(),m:l.date.minutes(),s:l.date.seconds()}),R(),f(c,i.type)),M(-1),b();break;case"td":a.is(".day")&&(r=parseInt(a.text(),10)||1,n=l.viewDate.month(),o=l.viewDate.year(),a.is(".old")?0===n?(n=11,o-=1):n-=1:a.is(".new")&&(11===n?(n=0,o+=1):n+=1),l.date=e({y:o,M:n,d:r,h:l.date.hours(),m:l.date.minutes(),s:l.date.seconds()}),l.viewDate=e({y:o,M:n,d:Math.min(28,r)}),b(),R(),f(c,i.type))}},S={incrementHours:function(){F("add","hours",1)},incrementMinutes:function(){F("add","minutes",l.options.minuteStepping)},incrementSeconds:function(){F("add","seconds",1)},decrementHours:function(){F("subtract","hours",1)},decrementMinutes:function(){F("subtract","minutes",l.options.minuteStepping)},decrementSeconds:function(){F("subtract","seconds",1)},togglePeriod:function(){var t=l.date.hours();t>=12?t-=12:t+=12,l.date.hours(t)},showPicker:function(){l.widget.find(".timepicker > div:not(.timepicker-picker)").hide(),l.widget.find(".timepicker .timepicker-picker").show()},showHours:function(){l.widget.find(".timepicker .timepicker-picker").hide(),l.widget.find(".timepicker .timepicker-hours").show()},showMinutes:function(){l.widget.find(".timepicker .timepicker-picker").hide(),l.widget.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){l.widget.find(".timepicker .timepicker-picker").hide(),l.widget.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var i=parseInt(t(e.target).text(),10);l.use24hours||(l.date.hours()>=12?12!==i&&(i+=12):12===i&&(i=0)),l.date.hours(i),S.showPicker.call(l)},selectMinute:function(e){l.date.minutes(parseInt(t(e.target).text(),10)),S.showPicker.call(l)},selectSecond:function(e){l.date.seconds(parseInt(t(e.target).text(),10)),S.showPicker.call(l)}},_=function(i){var n=e(l.date),o=t(i.currentTarget).data("action"),s=S[o].apply(l,arguments);return A(i),l.date||(l.date=e({y:1970})),R(),T(),f(n,i.type),s},A=function(t){t.stopPropagation(),t.preventDefault()},E=function(t){27===t.keyCode&&l.hide()},P=function(i){e.locale(l.options.language);var n=t(i.target),o=e(l.date),s=e(n.val(),l.format,l.options.useStrict);s.isValid()&&!H(s)&&N(s)?(m(),l.setValue(s),f(o,i.type),R()):(l.viewDate=o,l.unset=!0,f(o,i.type),g(s))},M=function(t){t&&(l.viewMode=Math.max(l.minViewMode,Math.min(2,l.viewMode+t))),l.widget.find(".datepicker > div").hide().filter(".datepicker-"+W.modes[l.viewMode].clsName).show()},D=function(){var e,i,n,o,s;l.widget.on("click",".datepicker *",t.proxy(C,this)),l.widget.on("click","[data-action]",t.proxy(_,this)),l.widget.on("mousedown",t.proxy(A,this)),l.element.on("keydown",t.proxy(E,this)),l.options.pickDate&&l.options.pickTime&&l.widget.on("click.togglePicker",".accordion-toggle",function(r){if(r.stopPropagation(),e=t(this),i=e.closest("ul"),n=i.find(".in"),o=i.find(".collapse:not(.in)"),n&&n.length){if(s=n.data("c
10ollapse"),s&&s.transitioning)return;n.collapse("hide"),o.collapse("show"),e.find("span").toggleClass(l.options.icons.time+" "+l.options.icons.date),l.component&&l.component.find("span").toggleClass(l.options.icons.time+" "+l.options.icons.date)}}),l.isInput?l.element.on({click:t.proxy(l.show,this),focus:t.proxy(l.show,this),change:t.proxy(P,this),blur:t.proxy(l.hide,this)}):(l.element.on({change:t.proxy(P,this)},"input"),l.component?(l.component.on("click",t.proxy(l.show,this)),l.component.on("mousedown",t.proxy(A,this))):l.element.on("click",t.proxy(l.show,this)))},O=function(){t(window).on("resize.datetimepicker"+l.id,t.proxy(p,this)),l.isInput||t(document).on("mousedown.datetimepicker"+l.id,t.proxy(l.hide,this))},$=function(){l.widget.off("click",".datepicker *",l.click),l.widget.off("click","[data-action]"),l.widget.off("mousedown",l.stopEvent),l.options.pickDate&&l.options.pickTime&&l.widget.off("click.togglePicker"),l.isInput?l.element.off({focus:l.show,change:P,click:l.show,blur:l.hide}):(l.element.off({change:P},"input"),l.component?(l.component.off("click",l.show),l.component.off("mousedown",l.stopEvent)):l.element.off("click",l.show))},L=function(){t(window).off("resize.datetimepicker"+l.id),l.isInput||t(document).off("mousedown.datetimepicker"+l.id)},I=function(){if(l.element){var e,i=l.element.parents(),n=!1;for(e=0;e<i.length;e++)if("fixed"===t(i[e]).css("position")){n=!0;break}return n}return!1},R=function(){e.locale(l.options.language);var t="";l.unset||(t=e(l.date).format(l.format)),d().val(t),l.element.data("date",t),l.options.pickTime||l.hide()},F=function(t,i,n){e.locale(l.options.language);var o;return"add"===t?(o=e(l.date),23===o.hours()&&o.add(n,i),o.add(n,i)):o=e(l.date).subtract(n,i),H(e(o.subtract(n,i)))||H(o)?void g(o.format(l.format)):("add"===t?l.date.add(n,i):l.date.subtract(n,i),void(l.unset=!1))},H=function(t,i){e.locale(l.options.language);var n=e(l.options.maxDate,l.format,l.options.useStrict),o=e(l.options.minDate,l.format,l.options.useStrict);return i&&(n=n.endOf(i),o=o.startOf(i)),!(!t.isAfter(n)&&!t.isBefore(o))||l.options.disabledDates!==!1&&l.options.disabledDates[t.format("YYYY-MM-DD")]===!0},N=function(t){return e.locale(l.options.language),l.options.enabledDates===!1||l.options.enabledDates[t.format("YYYY-MM-DD")]===!0},B=function(t){var i,n={},o=0;for(i=0;i<t.length;i++)s=e.isMoment(t[i])||t[i]instanceof Date?e(t[i]):e(t[i],l.format,l.options.useStrict),s.isValid()&&(n[s.format("YYYY-MM-DD")]=!0,o++);return o>0&&n},z=function(t){return t=t.toString(),t.length>=2?t:"0"+t},j=function(){var t='<thead><tr><th class="prev">&lsaquo;</th><th colspan="'+(l.options.calendarWeeks?"6":"5")+'" class="picker-switch"></th><th class="next">&rsaquo;</th></tr></thead>',e='<tbody><tr><td colspan="'+(l.options.calendarWeeks?"8":"7")+'"></td></tr></tbody>',i='<div class="datepicker-days"><table class="table-condensed">'+t+'<tbody></tbody></table></div><div class="datepicker-months"><table class="table-condensed">'+t+e+'</table></div><div class="datepicker-years"><table class="table-condensed">'+t+e+"</table></div>",n="";return l.options.pickDate&&l.options.pickTime?(n='<div class="bootstrap-datetimepicker-widget'+(l.options.sideBySide?" timepicker-sbs":"")+(l.use24hours?" usetwentyfour":"")+' dropdown-menu" style="z-index:9999 !important;">',n+=l.options.sideBySide?'<div class="row"><div class="col-sm-6 datepicker">'+i+'</div><div class="col-sm-6 timepicker">'+Y.getTemplate()+"</div></div>":'<ul class="list-unstyled"><li'+(l.options.collapse?' class="collapse in"':"")+'><div class="datepicker">'+i+'</div></li><li class="picker-switch accordion-toggle"><a class="btn" style="width:100%"><span class="'+l.options.icons.time+'"></span></a></li><li'+(l.options.collapse?' class="collapse"':"")+'><div class="timepicker">'+Y.getTemplate()+"</div></li></ul>",n+="</div>"):l.options.pickTime?'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="timepicker">'+Y.getTemplate()+"</div></div>":'<div class="bootstrap-datetimepicker-widget dropdown-menu"><div class="datepicker">'+i+"</div></div>"},W={modes:[{clsName:"days",navFnc:"month",navStep:1},{clsName:"months",navFnc:"year",navStep:1},{clsName:"years",navFnc:"year",navStep:10}]},Y={hourTemplate:'<span data-action="showHours"   data-time-component="hours"   class="timepicker-hour"></span>',minuteTemplate:'<span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute"></span>',secondTemplate:'<span data-action="showSeconds"  data-time-component="seconds" class="timepicker-second"></span>'};Y.getTemplate=function(){return'<div class="timepicker-picker"><table class="table-condensed"><tr><td><a href="#" class="btn" data-action="incrementHours"><span class="'+l.options.icons.up+'"></span></a></td><td class="separator"></td><td>'+(l.options.useMinutes?'<a href="#" class="btn" data-action="incrementMinutes"><span class="'+l.options.icons.up+'"></span></a>':"")+"</td>"+(l.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><span class="'+l.options.icons.up+'"></span></a></td>':"")+(l.use24hours?"":'<td class="separator"></td>')+"</tr><tr><td>"+Y.hourTemplate+'</td> <td class="separator">:</td><td>'+(l.options.useMinutes?Y.minuteTemplate:'<span class="timepicker-minute">00</span>')+"</td> "+(l.options.useSeconds?'<td class="separator">:</td><td>'+Y.secondTemplate+"</td>":"")+(l.use24hours?"":'<td class="separator"></td><td><button type="button" class="btn btn-primary" data-action="togglePeriod"></button></td>')+'</tr><tr><td><a href="#" class="btn" data-action="decrementHours"><span class="'+l.options.icons.down+'"></span></a></td><td class="separator"></td><td>'+(l.options.useMinutes?'<a href="#" class="btn" data-action="decrementMinutes"><span class="'+l.options.icons.down+'"></span></a>':"")+"</td>"+(l.options.useSeconds?'<td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><span class="'+l.options.icons.down+'"></span></a></td>':"")+(l.use24hours?"":'<td class="separator"></td>')+'</tr></table></div><div class="timepicker-hours" data-action="selectHour"><table class="table-condensed"></table></div><div class="timepicker-minutes" data-action="selectMinute"><table class="table-condensed"></table></div>'+(l.options.useSeconds?'<div class="timepicker-seconds" data-action="selectSecond"><table class="table-condensed"></table></div>':"")},l.destroy=function(){$(),L(),l.widget.remove(),l.element.removeData("DateTimePicker"),l.component&&l.component.removeData("DateTimePicker")},l.show=function(t){if(!d().prop("disabled")){if(l.options.useCurrent&&""===d().val()){if(1!==l.options.minuteStepping){var i=e(),n=l.options.minuteStepping;i.minutes(Math.round(i.minutes()/n)*n%60).seconds(0),l.setValue(i.format(l.format))}else l.setValue(e().format(l.format));f("",t.type)}t&&"click"===t.type&&l.isInput&&l.widget.hasClass("picker-open")||(l.widget.hasClass("picker-open")?(l.widget.hide(),l.widget.removeClass("picker-open")):(l.widget.show(),l.widget.addClass("picker-open")),l.height=l.component?l.component.outerHeight():l.element.outerHeight(),p(),l.element.trigger({type:"dp.show",date:e(l.date)}),O(),t&&A(t))}},l.disable=function(){var t=d();t.prop("disabled")||(t.prop("disabled",!0),$())},l.enable=function(){var t=d();t.prop("disabled")&&(t.prop("disabled",!1),D())},l.hide=function(){var t,i,n=l.widget.find(".collapse");for(t=0;t<n.length;
10t++)if(i=n.eq(t).data("collapse"),i&&i.transitioning)return;l.widget.hide(),l.widget.removeClass("picker-open"),l.viewMode=l.startViewMode,M(),l.element.trigger({type:"dp.hide",date:e(l.date)}),L()},l.setValue=function(t){e.locale(l.options.language),t?l.unset=!1:(l.unset=!0,R()),t=e.isMoment(t)?t.locale(l.options.language):t instanceof Date?e(t):e(t,l.format,l.options.useStrict),t.isValid()?(l.date=t,R(),l.viewDate=e({y:l.date.year(),M:l.date.month()}),b(),T()):g(t)},l.getDate=function(){return l.unset?null:e(l.date)},l.setDate=function(t){var i=e(l.date);t?l.setValue(t):l.setValue(null),f(i,"function")},l.setDisabledDates=function(t){l.options.disabledDates=B(t),l.viewDate&&m()},l.setEnabledDates=function(t){l.options.enabledDates=B(t),l.viewDate&&m()},l.setMaxDate=function(t){void 0!==t&&(e.isMoment(t)||t instanceof Date?l.options.maxDate=e(t):l.options.maxDate=e(t,l.format,l.options.useStrict),l.viewDate&&m())},l.setMinDate=function(t){void 0!==t&&(e.isMoment(t)||t instanceof Date?l.options.minDate=e(t):l.options.minDate=e(t,l.format,l.options.useStrict),l.viewDate&&m())},h()};t.fn.datetimepicker=function(e){return this.each(function(){var i=t(this),o=i.data("DateTimePicker");o||i.data("DateTimePicker",new n(this,e))})},t.fn.datetimepicker.defaults={format:!1,pickDate:!0,pickTime:!0,useMinutes:!0,useSeconds:!1,useCurrent:!0,calendarWeeks:!1,minuteStepping:1,minDate:e({y:1900}),maxDate:e().add(100,"y"),showToday:!0,collapse:!0,language:e.locale(),defaultDate:"",disabledDates:!1,enabledDates:!1,icons:{},useStrict:!1,direction:"auto",sideBySide:!1,daysOfWeekDisabled:[],widgetParent:!1}}),+function(t){"use strict";function e(e){return this.each(function(){var n=t(this),o=n.data("bs.toggle"),s="object"==typeof e&&e;o||n.data("bs.toggle",o=new i(this,s)),"string"==typeof e&&o[e]&&o[e]()})}var i=function(e,i){this.$element=t(e),this.options=t.extend({},this.defaults(),i),this.render()};i.VERSION="2.2.0",i.DEFAULTS={on:"On",off:"Off",onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null},i.prototype.defaults=function(){return{on:this.$element.attr("data-on")||i.DEFAULTS.on,off:this.$element.attr("data-off")||i.DEFAULTS.off,onstyle:this.$element.attr("data-onstyle")||i.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||i.DEFAULTS.offstyle,size:this.$element.attr("data-size")||i.DEFAULTS.size,style:this.$element.attr("data-style")||i.DEFAULTS.style,width:this.$element.attr("data-width")||i.DEFAULTS.width,height:this.$element.attr("data-height")||i.DEFAULTS.height}},i.prototype.render=function(){this._onstyle="btn-"+this.options.onstyle,this._offstyle="btn-"+this.options.offstyle;var e="large"===this.options.size?"btn-lg":"small"===this.options.size?"btn-sm":"mini"===this.options.size?"btn-xs":"",i=t('<label class="btn">').html(this.options.on).addClass(this._onstyle+" "+e),n=t('<label class="btn">').html(this.options.off).addClass(this._offstyle+" "+e+" active"),o=t('<span class="toggle-handle btn btn-default">').addClass(e),s=t('<div class="toggle-group">').append(i,n,o),r=t('<div class="toggle btn" data-toggle="toggle">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(e).addClass(this.options.style);
11this.$element.wrap(r),t.extend(this,{$toggle:this.$element.parent(),$toggleOn:i,$toggleOff:n,$toggleGroup:s}),this.$toggle.append(s);var a=this.options.width||Math.max(i.outerWidth(),n.outerWidth())+o.outerWidth()/2,l=this.options.height||Math.max(i.outerHeight(),n.outerHeight());i.addClass("toggle-on"),n.addClass("toggle-off"),this.$toggle.css({width:a,height:l}),this.options.height&&(i.css("line-height",i.height()+"px"),n.css("line-height",n.height()+"px")),this.update(!0),this.trigger(!0)},i.prototype.toggle=function(){this.$element.prop("checked")?this.off():this.on()},i.prototype.on=function(t){return!this.$element.prop("disabled")&&(this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle),this.$element.prop("checked",!0),void(t||this.trigger()))},i.prototype.off=function(t){return!this.$element.prop("disabled")&&(this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off"),this.$element.prop("checked",!1),void(t||this.trigger()))},i.prototype.enable=function(){this.$toggle.removeAttr("disabled"),this.$element.prop("disabled",!1)},i.prototype.disable=function(){this.$toggle.attr("disabled","disabled"),this.$element.prop("disabled",!0)},i.prototype.update=function(t){this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked")?this.on(t):this.off(t)},i.prototype.trigger=function(e){this.$element.off("change.bs.toggle"),e||this.$element.change(),this.$element.on("change.bs.toggle",t.proxy(function(){this.update()},this))},i.prototype.destroy=function(){this.$element.off("change.bs.toggle"),this.$toggleGroup.remove(),this.$element.removeData("bs.toggle"),this.$element.unwrap()};var n=t.fn.bootstrapToggle;t.fn.bootstrapToggle=e,t.fn.bootstrapToggle.Constructor=i,t.fn.toggle.noConflict=function(){return t.fn.bootstrapToggle=n,this},t(function(){t("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()}),t(document).on("click.bs.toggle","div[data-toggle^=toggle]",function(e){var i=t(this).find("input[type=checkbox]");i.bootstrapToggle("toggle"),e.preventDefault()})}(jQuery),function(){function t(t){function e(e,i,n,o,s,r){for(;s>=0&&s<r;s+=t){var a=o?o[s]:s;n=i(n,e[a],a,e)}return n}return function(i,n,o,s){n=b(n,s,4);var r=!_(i)&&y.keys(i),a=(r||i).length,l=t>0?0:a-1;return arguments.length<3&&(o=i[r?r[l]:l],l+=t),e(i,n,o,r,l,a)}}function e(t){return function(e,i,n){i=x(i,n);for(var o=S(e),s=t>0?0:o-1;s>=0&&s<o;s+=t)if(i(e[s],s,e))return s;return-1}}function i(t,e,i){return function(n,o,s){var r=0,a=S(n);if("number"==typeof s)t>0?r=s>=0?s:Math.max(s+a,r):a=s>=0?Math.min(s+1,a):s+a+1;else if(i&&s&&a)return s=i(n,o),n[s]===o?s:-1;if(o!==o)return s=e(h.call(n,r,a),y.isNaN),s>=0?s+r:-1;for(s=t>0?r:a-1;s>=0&&s<a;s+=t)if(n[s]===o)return s;return-1}}function n(t,e){var i=D.length,n=t.constructor,o=y.isFunction(n)&&n.prototype||a,s="constructor";for(y.has(t,s)&&!y.contains(e,s)&&e.push(s);i--;)s=D[i],s in t&&t[s]!==o[s]&&!y.contains(e,s)&&e.push(s)}var o=this,s=o._,r=Array.prototype,a=Object.prototype,l=Function.prototype,c=r.push,h=r.
vendor: 8,547 bytes, line 11
11slice,d=a.toString,u=a.hasOwnProperty,p=Array.isArray,f=Object.keys,g=l.bind,m=Object.create,v=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=y),exports._=y):o._=y,y.VERSION="1.8.3";var b=function(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,o){return t.call(e,i,n,o)};case 4:return function(i,n,o,s){return t.call(e,i,n,o,s)}}return function(){return t.apply(e,arguments)}},x=function(t,e,i){return null==t?y.identity:y.isFunction(t)?b(t,e,i):y.isObject(t)?y.matcher(t):y.property(t)};y.iteratee=function(t,e){return x(t,e,1/0)};var k=function(t,e){return function(i){var n=arguments.length;if(n<2||null==i)return i;for(var o=1;o<n;o++)for(var s=arguments[o],r=t(s),a=r.length,l=0;l<a;l++){var c=r[l];e&&void 0!==i[c]||(i[c]=s[c])}return i}},w=function(t){if(!y.isObject(t))return{};if(m)return m(t);v.prototype=t;var e=new v;return v.prototype=null,e},T=function(t){return function(e){return null==e?void 0:e[t]}},C=Math.pow(2,53)-1,S=T("length"),_=function(t){var e=S(t);return"number"==typeof e&&e>=0&&e<=C};y.each=y.forEach=function(t,e,i){e=b(e,i);var n,o;if(_(t))for(n=0,o=t.length;n<o;n++)e(t[n],n,t);else{var s=y.keys(t);for(n=0,o=s.length;n<o;n++)e(t[s[n]],s[n],t)}return t},y.map=y.collect=function(t,e,i){e=x(e,i);for(var n=!_(t)&&y.keys(t),o=(n||t).length,s=Array(o),r=0;r<o;r++){var a=n?n[r]:r;s[r]=e(t[a],a,t)}return s},y.reduce=y.foldl=y.inject=t(1),y.reduceRight=y.foldr=t(-1),y.find=y.detect=function(t,e,i){var n;if(n=_(t)?y.findIndex(t,e,i):y.findKey(t,e,i),void 0!==n&&n!==-1)return t[n]},y.filter=y.select=function(t,e,i){var n=[];return e=x(e,i),y.each(t,function(t,i,o){e(t,i,o)&&n.push(t)}),n},y.reject=function(t,e,i){return y.filter(t,y.negate(x(e)),i)},y.every=y.all=function(t,e,i){e=x(e,i);for(var n=!_(t)&&y.keys(t),o=(n||t).length,s=0;s<o;s++){var r=n?n[s]:s;if(!e(t[r],r,t))return!1}return!0},y.some=y.any=function(t,e,i){e=x(e,i);for(var n=!_(t)&&y.keys(t),o=(n||t).length,s=0;s<o;s++){var r=n?n[s]:s;if(e(t[r],r,t))return!0}return!1},y.contains=y.includes=y.include=function(t,e,i,n){return _(t)||(t=y.values(t)),("number"!=typeof i||n)&&(i=0),y.indexOf(t,e,i)>=0},y.invoke=function(t,e){var i=h.call(arguments,2),n=y.isFunction(e);return y.map(t,function(t){var o=n?e:t[e];return null==o?o:o.apply(t,i)})},y.pluck=function(t,e){return y.map(t,y.property(e))},y.where=function(t,e){return y.filter(t,y.matcher(e))},y.findWhere=function(t,e){return y.find(t,y.matcher(e))},y.max=function(t,e,i){var n,o,s=-(1/0),r=-(1/0);if(null==e&&null!=t){t=_(t)?t:y.values(t);for(var a=0,l=t.length;a<l;a++)n=t[a],n>s&&(s=n)}else e=x(e,i),y.each(t,function(t,i,n){o=e(t,i,n),(o>r||o===-(1/0)&&s===-(1/0))&&(s=t,r=o)});return s},y.min=function(t,e,i){var n,o,s=1/0,r=1/0;if(null==e&&null!=t){t=_(t)?t:y.values(t);for(var a=0,l=t.length;a<l;a++)n=t[a],n<s&&(s=n)}else e=x(e,i),y.each(t,function(t,i,n){o=e(t,i,n),(o<r||o===1/0&&s===1/0)&&(s=t,r=o)});return s},y.shuffle=function(t){for(var e,i=_(t)?t:y.values(t),n=i.length,o=Array(n),s=0;s<n;s++)e=y.random(0,s),e!==s&&(o[s]=o[e]),o[e]=i[s];return o},y.sample=function(t,e,i){return null==e||i?(_(t)||(t=y.values(t)),t[y.random(t.length-1)]):y.shuffle(t).slice(0,Math.max(0,e))},y.sortBy=function(t,e,i){return e=x(e,i),y.pluck(y.map(t,function(t,i,n){return{value:t,index:i,criteria:e(t,i,n)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index}),"value")};var A=function(t){return function(e,i,n){var o={};return i=x(i,n),y.each(e,function(n,s){var r=i(n,s,e);t(o,n,r)}),o}};y.groupBy=A(function(t,e,i){y.has(t,i)?t[i].push(e):t[i]=[e]}),y.indexBy=A(function(t,e,i){t[i]=e}),y.countBy=A(function(t,e,i){y.has(t,i)?t[i]++:t[i]=1}),y.toArray=function(t){return t?y.isArray(t)?h.call(t):_(t)?y.map(t,y.identity):y.values(t):[]},y.size=function(t){return null==t?0:_(t)?t.length:y.keys(t).length},y.partition=function(t,e,i){e=x(e,i);var n=[],o=[];return y.each(t,function(t,i,s){(e(t,i,s)?n:o).push(t)}),[n,o]},y.first=y.head=y.take=function(t,e,i){if(null!=t)return null==e||i?t[0]:y.initial(t,t.length-e)},y.initial=function(t,e,i){return h.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))},y.last=function(t,e,i){if(null!=t)return null==e||i?t[t.length-1]:y.rest(t,Math.max(0,t.length-e))},y.rest=y.tail=y.drop=function(t,e,i){return h.call(t,null==e||i?1:e)},y.compact=function(t){return y.filter(t,y.identity)};var E=function(t,e,i,n){for(var o=[],s=0,r=n||0,a=S(t);r<a;r++){var l=t[r];if(_(l)&&(y.isArray(l)||y.isArguments(l))){e||(l=E(l,e,i));var c=0,h=l.length;for(o.length+=h;c<h;)o[s++]=l[c++]}else i||(o[s++]=l)}return o};y.flatten=function(t,e){return E(t,e,!1)},y.without=function(t){return y.difference(t,h.call(arguments,1))},y.uniq=y.unique=function(t,e,i,n){y.isBoolean(e)||(n=i,i=e,e=!1),null!=i&&(i=x(i,n));for(var o=[],s=[],r=0,a=S(t);r<a;r++){var l=t[r],c=i?i(l,r,t):l;e?(r&&s===c||o.push(l),s=c):i?y.contains(s,c)||(s.push(c),o.push(l)):y.contains(o,l)||o.push(l)}return o},y.union=function(){return y.uniq(E(arguments,!0,!0))},y.intersection=function(t){for(var e=[],i=arguments.length,n=0,o=S(t);n<o;n++){var s=t[n];if(!y.contains(e,s)){for(var r=1;r<i&&y.contains(arguments[r],s);r++);r===i&&e.push(s)}}return e},y.difference=function(t){var e=E(arguments,!0,!0,1);return y.filter(t,function(t){return!y.contains(e,t)})},y.zip=function(){return y.unzip(arguments)},y.unzip=function(t){for(var e=t&&y.max(t,S).length||0,i=Array(e),n=0;n<e;n++)i[n]=y.pluck(t,n);return i},y.object=function(t,e){for(var i={},n=0,o=S(t);n<o;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i},y.findIndex=e(1),y.findLastIndex=e(-1),y.sortedIndex=function(t,e,i,n){i=x(i,n,1);for(var o=i(e),s=0,r=S(t);s<r;){var a=Math.floor((s+r)/2);i(t[a])<o?s=a+1:r=a}return s},y.indexOf=i(1,y.findIndex,y.sortedIndex),y.lastIndexOf=i(-1,y.findLastIndex),y.range=function(t,e,i){null==e&&(e=t||0,t=0),i=i||1;for(var n=Math.max(Math.ceil((e-t)/i),0),o=Array(n),s=0;s<n;s++,t+=i)o[s]=t;return o};var P=function(t,e,i,n,o){if(!(n instanceof e))return t.apply(i,o);var s=w(t.prototype),r=t.apply(s,o);return y.isObject(r)?r:s};y.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,h.call(arguments,1));if(!y.isFunction(t))throw new TypeError("Bind must be called on a function");var i=h.call(arguments,2),n=function(){return P(t,n,e,this,i.concat(h.call(arguments)))};return n},y.partial=function(t){var e=h.call(arguments,1),i=function(){for(var n=0,o=e.length,s=Array(o),r=0;r<o;r++)s[r]=e[r]===y?arguments[n++]:e[r];for(;n<arguments.length;)s.push(arguments[n++]);return P(t,i,this,this,s)};return i},y.bindAll=function(t){var e,i,n=arguments.length;if(n<=1)throw new Error("bindAll must be passed function names");for(e=1;e<n;e++)i=arguments[e],t[i]=y.bind(t[i],t);return t},y.memoize=function(t,e){var i=function(n){var o=i.cache,s=""+(e?e.apply(this,arguments):n);return y.has(o,s)||(o[s]=t.apply(this,arguments)),o[s]};return i.cache={},i},y.delay=function(t,e){var i=h.call(arguments,2);return setTimeout(function(){return t.apply(null,i)},e)},y.defer=y.partial(y.delay,y,1),y.throttle=function(t,e,i){var n,o,s,r=null,a=0;i||(i={});var l=function(){a=i.leading===!1?0:y.now(),r=null,s=t.apply(n,o),r||(n=o=null)};return function(){var c=y.now();a||i.leading!==!1||(a=c);var h=e-(c-a);return n=this,o=arguments,h<=0||h>e?(r&&(clearTimeout(r),r=null),a=c,s=t.apply(n,o),r||(n=o=null)):r||i.trailing===!1||(r=setTimeout(l,h)),s}},y.debounce=function(t,e,i){var n,o,s,r,a,l=function(){var c=y.now()-r;c<e&&c>=0?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(s,o),n||(s=o=null)))};return function(){s=this,o=arguments,r=y.now();var c=i&&!n;return n||(n=setTimeout(l,e)),c&&(a=t.apply(s,o),s=o=null),a}},y.wrap=function(t,e){return y.partial(e,t)},y.negate=function(t){return function(){return!t.apply(this,arguments)}},y.compose=function(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}},y.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},y.before=function(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}},y.once=y.partial(y.before,2);var M=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleStr
11ing"];y.keys=function(t){if(!y.isObject(t))return[];if(f)return f(t);var e=[];for(var i in t)y.has(t,i)&&e.push(i);return M&&n(t,e),e},y.allKeys=function(t){if(!y.isObject(t))return[];var e=[];for(var i in t)e.push(i);return M&&n(t,e),e},y.values=function(t){for(var e=y.keys(t),i=e.length,n=Array(i),o=0;o<i;o++)n[o]=t[e[o]];return n},y.mapObject=function(t,e,i){e=x(e,i);for(var n,o=y.keys(t),s=o.length,r={},a=0;a<s;a++)n=o[a],r[n]=e(t[n],n,t);return r},y.pairs=function(t){for(var e=y.keys(t),i=e.length,n=Array(i),o=0;o<i;o++)n[o]=[e[o],t[e[o]]];return n},y.invert=function(t){for(var e={},i=y.keys(t),n=0,o=i.length;n<o;n++)e[t[i[n]]]=i[n];return e},y.functions=y.methods=function(t){var e=[];for(var i in t)y.isFunction(t[i])&&e.push(i);return e.sort()},y.extend=k(y.allKeys),y.extendOwn=y.assign=k(y.keys),y.findKey=function(t,e,i){e=x(e,i);for(var n,o=y.keys(t),s=0,r=o.length;s<r;s++)if(n=o[s],e(t[n],n,t))return n},y.pick=function(t,e,i){var n,o,s={},r=t;if(null==r)return s;y.isFunction(e)?(o=y.allKeys(r),n=b(e,i)):(o=E(arguments,!1,!1,1),n=function(t,e,i){return e in i},r=Object(r));for(var a=0,l=o.length;a<l;a++){var c=o[a],h=r[c];n(h,c,r)&&(s[c]=h)}return s},y.omit=function(t,e,i){if(y.isFunction(e))e=y.negate(e);else{var n=y.map(E(arguments,!1,!1,1),String);e=function(t,e){return!y.contains(n,e)}}return y.pick(t,e,i)},y.defaults=k(y.allKeys,!0),y.create=function(t,e){var i=w(t);return e&&y.extendOwn(i,e),i},y.clone=function(t){return y.isObject(t)?y.isArray(t)?t.slice():y.extend({},t):t},y.tap=function(t,e){return e(t),t},y.isMatch=function(t,e){var i=y.keys(e),n=i.length;if(null==t)return!n;for(var o=Object(t),s=0;s<n;s++){var r=i[s];if(e[r]!==o[r]||!(r in o))return!1}return!0};var O=function(t,e,i,n){if(t===e)return 0!==t||1/t===1/e;if(null==t||null==e)return t===e;t instanceof y&&(t=t._wrapped),e instanceof y&&(e=e._wrapped);var o=d.call(t);if(o!==d.call(e))return!1;switch(o){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!==+t?+e!==+e:0===+t?1/+t===1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e}var s="[object Array]"===o;if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var r=t.constructor,a=e.constructor;if(r!==a&&!(y.isFunction(r)&&r instanceof r&&y.isFunction(a)&&a instanceof a)&&"constructor"in t&&"constructor"in e)return!1}i=i||[],n=n||[];for(var l=i.length;l--;)if(i[l]===t)return n[l]===e;if(i.push(t),n.push(e),s){if(l=t.length,l!==e.length)return!1;for(;l--;)if(!O(t[l],e[l],i,n))return!1}else{var c,h=y.keys(t);if(l=h.length,y.keys(e).length!==l)return!1;for(;l--;)if(c=h[l],!y.has(e,c)||!O(t[c],e[c],i,n))return!1}return i.pop(),n.pop(),!0};y.isEqual=function(t,e){return O(t,e)},y.isEmpty=function(t){return null==t||(_(t)&&(y.isArray(t)||y.isString(t)||y.isArguments(t))?0===t.length:0===y.keys(t).length)},y.isElement=function(t){return!(!t||1!==t.nodeType)},y.isArray=p||function(t){return"[object Array]"===d.call(t)},y.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},y.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){y["is"+t]=function(e){return d.call(e)==="[object "+t+"]"}}),y.isArguments(arguments)||(y.isArguments=function(t){return y.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(y.isFunction=function(t){return"function"==typeof t||!1}),y.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&t!==+t},y.isBoolean=function(t){return t===!0||t===!1||"[object Boolean]"===d.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){return null!=t&&u.call(t,e)},y.noConflict=function(){return o._=s,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=T,y.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,i){var n=Array(Math.max(0,t));e=b(e,i,1);for(var o=0;o<t;o++)n[o]=e(o);return n},y.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},y.now=Date.now||function(){return(new Date).getTime()};var $={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},L=y.invert($),I=function(t){var e=function(e){return t[e]},i="(?:"+y.keys(t).join("|")+")",n=RegExp(i),o=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(o,e):t}};
11y.escape=I($),y.unescape=I(L),y.result=function(t,e,i){var n=null==t?void 0:t[e];return void 0===n&&(n=i),y.isFunction(n)?n.call(t):n};var R=0;y.uniqueId=function(t){var e=++R+"";return t?t+e:e},y.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var F=/(.)^/,H={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},N=/\\|'|\r|\n|\u2028|\u2029/g,B=function(t){return"\\"+H[t]};y.template=function(t,e,i){!e&&i&&(e=i),e=y.defaults({},e,y.templateSettings);var n=RegExp([(e.escape||F).source,(e.interpolate||F).source,(e.evaluate||F).source].join("|")+"|$","g"),o=0,s="__p+='";t.replace(n,function(e,i,n,r,a){return s+=t.slice(o,a).replace(N,B),o=a+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":r&&(s+="';\n"+r+"\n__p+='"),e}),s+="';\n",e.variable||(s="with(obj||{}){\n"+s+"}\n"),s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{var r=new Function(e.variable||"obj","_",s)}catch(a){throw a.source=s,a}var l=function(t){return r.call(this,t,y)},c=e.variable||"obj";return l.source="function("+c+"){\n"+s+"}",l},y.chain=function(t){var e=y(t);return e._chain=!0,e};var z=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){y.each(y.functions(t),function(e){var i=y[e]=t[e];y.prototype[e]=function(){var t=[this._wrapped];return c.apply(t,arguments),z(this,i.apply(y,t))}})},y.mixin(y),y.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];y.prototype[t]=function(){var i=this._wrapped;return e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0],z(this,i)}}),y.each(["concat","join","slice"],function(t){var e=r[t];y.prototype[t]=function(){return z(this,e.apply(this._wrapped,arguments))}}),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return""+this._wrapped},"function"==typeof define&&define.amd&&define("underscore",[],function(){return y})}.call(this),function(t,e){if("function"==typeof define&&define.amd)define(["underscore","jquery","exports"],function(i,n,o){t.Backbone=e(t,o,i,n)});else if("undefined"!=typeof exports){var i=require("underscore");e(t,exports,i)}else t.Backbone=e(t,{},t._,t.jQuery||t.Zepto||t.ender||t.$)}(this,function(t,e,i,n){var o=t.Backbone,s=[],r=(s.push,s.slice);s.splice,e.VERSION="1.1.2",e.$=n,e.noConflict=function(){return t.Backbone=o,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a=e.Events={on:function(t,e,i){if(!c(this,"on",t,[e,i])||!e)return this;this._events||(this._events={});var n=this._events[t]||(this._events[t]=[]);return n.push({callback:e,context:i,ctx:i||this}),this},once:function(t,e,n){if(!c(this,"once",t,[e,n])||!e)return this;var o=this,s=i.once(function(){o.off(t,s),e.apply(this,arguments)});return s._callback=e,this.on(t,s,n)},off:function(t,e,n){var o,s,r,a,l,h,d,u;if(!this._events||!c(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(a=t?[t]:i.keys(this._events),l=0,h=a.length;l<h;l++)if(t=a[l],r=this._events[t]){if(this._events[t]=o=[],e||n)for(d=0,u=r.length;d<u;d++)s=r[d],(e&&e!==s.callback&&e!==s.callback._callback||n&&n!==s.context)&&o.push(s);o.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!c(this,"trigger",t,e))return this;var i=this._events[t],n=this._events.all;return i&&h(i,e),n&&h(n,arguments),this},stopListening:function(t,e,n){var o=this._listeningTo;if(!o)return this;var s=!e&&!n;n||"object"!=typeof e||(n=this),t&&((o={})[t._listenId]=t);for(var r in o)t=o[r],t.off(e,n,this),(s||i.isEmpty(t._events))&&delete this._listeningTo[r];return this}},l=/\s+/,c=function(t,e,i,n){if(!i)return!0;if("object"==typeof i){for(var o in i)t[e].apply(t,[o,i[o]].concat(n));return!1}if(l.test(i)){for(var s=i.split(l),r=0,a=s.length;r<a;r++)t[e].apply(t,[s[r]].concat(n));return!1}return!0},h=function(t,e){var i,n=-1,o=t.length,s=e[0],r=e[1],a=e[2];switch(e.length){case 0:for(;++n<o;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<o;)(i=t[n]).callback.call(i.ctx,s);return;case 2:for(;++n<o;)(i=t[n]).callback.call(i.ctx,s,r);return;case 3:for(;++n<o;)(i=t[n]).callback.call(i.ctx,s,r,a);return;default:for(;++n<o;)(i=t[n]).callback.apply(i.ctx,e);return}},d={listenTo:"on",listenToOnce:"once"};i.each(d,function(t,e){a[e]=function(e,n,o){var s=this._listeningTo||(this._listeningTo={}),r=e._listenId||(e._listenId=i.uniqueId("l"));return s[r]=e,o||"object"!=typeof n||(o=this),e[t](n,o,this),this}}),a.bind=a.on,a.unbind=a.off,i.extend(e,a);var u=e.Model=function(t,e){var n=t||{};e||(e={}),this.cid=i.uniqueId("c"),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{}),n=i.defaults({},n,i.result(this,"defaults")),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(u.prototype,a,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},set:function(t,e,n){var o,s,r,a,l,c,h,d;if(null==t)return this;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}
11),!this._validate(s,n))return!1;r=n.unset,l=n.silent,a=[],c=this._changing,this._changing=!0,c||(this._previousAttributes=i.clone(this.attributes),this.changed={}),d=this.attributes,h=this._previousAttributes,this.idAttribute in s&&(this.id=s[this.idAttribute]);for(o in s)e=s[o],i.isEqual(d[o],e)||a.push(o),i.isEqual(h[o],e)?delete this.changed[o]:this.changed[o]=e,r?delete d[o]:d[o]=e;if(!l){a.length&&(this._pending=n);for(var u=0,p=a.length;u<p;u++)this.trigger("change:"+a[u],this,d[a[u]],n)}if(c)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e,n=!1,o=this._changing?this._previousAttributes:this.attributes;for(var s in t)i.isEqual(o[s],e=t[s])||((n||(n={}))[s]=e);return n},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=this,n=t.success;return t.success=function(i){return!!e.set(e.parse(i,t),t)&&(n&&n(e,i,t),void e.trigger("sync",e,i,t))},F(this,t),this.sync("read",this,t)},save:function(t,e,n){var o,s,r,a=this.attributes;if(null==t||"object"==typeof t?(o=t,n=e):(o={})[t]=e,n=i.extend({validate:!0},n),o&&!n.wait){if(!this.set(o,n))return!1}else if(!this._validate(o,n))return!1;o&&n.wait&&(this.attributes=i.extend({},a,o)),void 0===n.parse&&(n.parse=!0);var l=this,c=n.success;return n.success=function(t){l.attributes=a;var e=l.parse(t,n);return n.wait&&(e=i.extend(o||{},e)),!(i.isObject(e)&&!l.set(e,n))&&(c&&c(l,t,n),void l.trigger("sync",l,t,n))},F(this,n),s=this.isNew()?"create":n.patch?"patch":"update","patch"===s&&(n.attrs=o),r=this.sync(s,this,n),o&&n.wait&&(this.attributes=a),r},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,o=function(){e.trigger("destroy",e,e.collection,t)};if(t.success=function(i){(t.wait||e.isNew())&&o(),n&&n(e,i,t),e.isNew()||e.trigger("sync",e,i,t)},this.isNew())return t.success(),!1;F(this,t);var s=this.sync("delete",this,t);return t.wait||o(),s},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||R();return this.isNew()?t:t.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend(t||{},{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});var p=["keys","values","pairs","invert","pick","omit"];i.each(p,function(t){u.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.attributes),i[t].apply(i,e)}});var f=e.Collection=function(t,e){e||(e={}),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},g={add:!0,remove:!0,merge:!0},m={add:!0,remove:!1};i.extend(f.prototype,a,{model:u,initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,m))},remove:function(t,e){var n=!i.isArray(t);t=n?[t]:i.clone(t),e||(e={});var o,s,r,a;for(o=0,s=t.length;o<s;o++)a=t[o]=this.get(t[o]),a&&(delete this._byId[a.id],delete this._byId[a.cid],r=this.indexOf(a),this.models.splice(r,1),this.length--,e.silent||(e.index=r,a.trigger("remove",a,this,e)),this._removeReference(a,e));return n?t[0]:t},set:function(t,e){e=i.defaults({},e,g),e.parse&&(t=this.parse(t,e));var n=!i.isArray(t);t=n?t?[t]:[]:i.clone(t);var o,s,r,a,l,c,h,d=e.at,p=this.model,f=this.comparator&&null==d&&e.sort!==!1,m=i.isString(this.comparator)?this.comparator:null,v=[],y=[],b={},x=e.add,k=e.merge,w=e.remove,T=!(f||!x||!w)&&[];for(o=0,s=t.length;o<s;o++){if(l=t[o]||{},r=l instanceof u?a=l:l[p.prototype.idAttribute||"id"],c=this.get(r))w&&(b[c.cid]=!0),k&&(l=l===a?a.attributes:l,e.parse&&(l=c.parse(l,e)),c.set(l,e),f&&!h&&c.hasChanged(m)&&(h=!0)),t[o]=c;else if(x){if(a=t[o]=this._prepareModel(l,e),!a)continue;v.push(a),this._addReference(a,e)}a=c||a,!T||!a.isNew()&&b[a.id]||T.push(a),b[a.id]=!0}if(w){for(o=0,s=this.length;o<s;++o)b[(a=this.models[o]).cid]||y.push(a);y.length&&this.remove(y,e)}if(v.length||T&&T.length)if(f&&(h=!0),this.length+=v.length,null!=d)for(o=0,s=v.length;o<s;
11o++)this.models.splice(d+o,0,v[o]);else{T&&(this.models.length=0);var C=T||v;for(o=0,s=C.length;o<s;o++)this.models.push(C[o])}if(h&&this.sort({silent:!0}),!e.silent){for(o=0,s=v.length;o<s;o++)(a=v[o]).trigger("add",a,this,e);(h||T&&T.length)&&this.trigger("sort",this,e)}return n?t[0]:t},reset:function(t,e){e||(e={});for(var n=0,o=this.models.length;n<o;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t),e},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t),e},slice:function(){return r.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[t.id]||this._byId[t.cid]},at:function(t){return this.models[t]},where:function(t,e){return i.isEmpty(t)?e?void 0:[]:this[e?"find":"filter"](function(e){for(var i in t)if(t[i]!==e.get(i))return!1;return!0})},findWhere:function(t){return this.where(t,!0)},sort:function(t){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return t||(t={}),i.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(i.bind(this.comparator,this)),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return i.invoke(this.models,"get",t)},fetch:function(t){t=t?i.clone(t):{},void 0===t.parse&&(t.parse=!0);var e=t.success,n=this;return t.success=function(i){var o=t.reset?"reset":"set";n[o](i,t),e&&e(n,i,t),n.trigger("sync",n,i,t)},F(this,t),this.sync("read",this,t)},create:function(t,e){if(e=e?i.clone(e):{},!(t=this._prepareModel(t,e)))return!1;e.wait||this.add(t,e);var n=this,o=e.success;return e.success=function(t,i){e.wait&&n.add(t,e),o&&o(t,i,e)},t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){if(t instanceof u)return t;e=e?i.clone(e):{},e.collection=this;var n=new this.model(t,e);return n.validationError?(this.trigger("invalid",this,n.validationError,e),!1):n},_addReference:function(t,e){this._byId[t.cid]=t,null!=t.id&&(this._byId[t.id]=t),t.collection||(t.collection=this),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){("add"!==t&&"remove"!==t||i===this)&&("destroy"===t&&this.remove(e,n),e&&t==="change:"+e.idAttribute&&(delete this._byId[e.previous(e.idAttribute)],null!=e.id&&(this._byId[e.id]=e)),this.trigger.apply(this,arguments))}});var v=["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"];i.each(v,function(t){f.prototype[t]=function(){var e=r.call(arguments);return e.unshift(this.models),i[t].apply(i,e)}});var y=["groupBy","countBy","sortBy","indexBy"];i.each(y,function(t){f.prototype[t]=function(e,n){var o=i.isFunction(e)?e:function(t){return t.get(e)};return i[t](this.models,o,n)}});var b=e.View=function(t){this.cid=i.uniqueId("view"),t||(t={}),i.extend(this,i.pick(t,k)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},x=/^(\S+)\s*(.*)$/,k=["model","collection","el","id","attributes","className","tagName","events"];i.extend(b.prototype,a,{tagName:"div",$:function(t){return this.$el.find(t)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(t,i){return this.$el&&this.undelegateEvents(),this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0],i!==!1&&this.delegateEvents(),this},delegateEvents:function(t){if(!t&&!(t=i.result(this,"events")))return this;this.undelegateEvents();for(var e in t){var n=t[e];if(i.isFunction(n)||(n=this[t[e]]),n){var o=e.match(x),s=o[1],r=o[2];n=i.bind(n,this),s+=".delegateEvents"+this.cid,""===r?this.$el.on(s,n):this.$el.on(s,r,n)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"),!1);else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t["class"]=i.result(this,"className"));var n=e.$("<"+i.result(this,"tagName")+">").attr(t);this.setElement(n,!1)}}}),e.sync=function(t,n,o){var s=T[t];i.defaults(o||(o={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var r={type:s,dataType:"json"};if(o.url||(r.url=i.result(n,"url")||R()),null!=o.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(r.contentType="application/json",r.data=JSON.stringify(o.attrs||n.toJSON(o))),o.emulateJSON&&(r.contentType="application/x-www-form-urlencoded",r.data=r.data?{model:r.data}:{}),o.emulateHTTP&&("PUT"===s||"DELETE"===s||"PATCH"===s)){r.type="POST",o.emulateJSON&&(r.data._method=s);var a=o.beforeSend;o.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",s),a)return a.apply(this,arguments);
12}}"GET"===r.type||o.emulateJSON||(r.processData=!1),"PATCH"===r.type&&w&&(r.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var l=o.xhr=e.ajax(i.extend(r,o));return n.trigger("request",n,l,o),l};var w=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),T={create:"POST",update:"PUT",patch:"PATCH","delete":"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};
12var C=e.Router=function(t){t||(t={}),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},S=/\((.*?)\)/g,_=/(\(\?)?:\w+/g,A=/\*\w+/g,E=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(C.prototype,a,{initialize:function(){},route:function(t,n,o){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(o=n,n=""),o||(o=this[n]);var s=this;return e.history.route(t,function(i){var r=s._extractParameters(t,i);s.execute(o,r),s.trigger.apply(s,["route:"+n].concat(r)),s.trigger("route",n,r),e.history.trigger("route",s,n,r)}),this},execute:function(t,e){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(E,"\\$&").replace(S,"(?:$1)?").replace(_,function(t,e){return e?t:"([^/?]+)"}).replace(A,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var P=e.History=function(){this.handlers=[],i.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},M=/^[#\/]|\s+$/g,D=/^\/+|\/+$/g,O=/msie [\w.]+/,$=/\/$/,L=/#.*$/;P.started=!1,i.extend(P.prototype,a,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getFragment:function(t,e){if(null==t)if(this._hasPushState||!this._wantsHashChange||e){t=decodeURI(this.location.pathname+this.location.search);var i=this.root.replace($,"");t.indexOf(i)||(t=t.slice(i.length))}else t=this.getHash();return t.replace(M,"")},start:function(t){if(P.started)throw new Error("Backbone.history has already been started");P.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._wantsHashChange=this.options.hashChange!==!1,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var n=this.getFragment(),o=document.documentMode,s=O.exec(navigator.userAgent.toLowerCase())&&(!o||o<=7);if(this.root=("/"+this.root+"/").replace(D,"/"),s&&this._wantsHashChange){var r=e.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=r.hide().appendTo("body")[0].contentWindow,this.navigate(n)}this._hasPushState?e.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!s?e.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=n;var a=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&a.hash&&(this.fragment=this.getHash().replace(M,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){e.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),P.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();return e===this.fragment&&this.iframe&&(e=this.getFragment(this.getHash(this.iframe))),e!==this.fragment&&(this.iframe&&this.navigate(e),void this.loadUrl())},loadUrl:function(t){return t=this.fragment=this.getFragment(t),i.any(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})},navigate:function(t,e){if(!P.started)return!1;e&&e!==!0||(e={trigger:!!e});var i=this.root+(t=this.getFragment(t||""));if(t=t.replace(L,""),this.fragment!==t){if(this.fragment=t,""===t&&"/"!==i&&(i=i.slice(0,-1)),this._hasPushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,i);else{if(!this._wantsHashChange)return this.location.assign(i);this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getFragment(this.getHash(this.iframe))&&(e.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,t,e.replace))}return e.trigger?this.loadUrl(t):void 0}}
12,_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new P;var I=function(t,e){var n,o=this;n=t&&i.has(t,"constructor")?t.constructor:function(){return o.apply(this,arguments)},i.extend(n,o,e);var s=function(){this.constructor=n};return s.prototype=o.prototype,n.prototype=new s,t&&i.extend(n.prototype,t),n.__super__=o.prototype,n};u.extend=f.extend=C.extend=b.extend=P.extend=I;var R=function(){throw new Error('A "url" property or function must be specified')},F=function(t,e){var i=e.error;e.error=function(n){i&&i(t,n,e),t.trigger("error",t,n,e)}};return e}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,o){return jQuery.easing[jQuery.easing.def](t,e,i,n,o)},easeInQuad:function(t,e,i,n,o){return n*(e/=o)*e+i},easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i},easeInOutQuad:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,o){return n*(e/=o)*e*e+i},easeOutCubic:function(t,e,i,n,o){return n*((e=e/o-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,o){return n*(e/=o)*e*e*e+i},easeOutQuart:function(t,e,i,n,o){return-n*((e=e/o-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,o){return n*(e/=o)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,o){return n*((e=e/o-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,o){return-n*Math.cos(e/o*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,o){return n*Math.sin(e/o*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,o){return-n/2*(Math.cos(Math.PI*e/o)-1)+i},easeInExpo:function(t,e,i,n,o){return 0==e?i:n*Math.pow(2,10*(e/o-1))+i},easeOutExpo:function(t,e,i,n,o){return e==o?i+n:n*(-Math.pow(2,-10*e/o)+1)+i},easeInOutExpo:function(t,e,i,n,o){return 0==e?i:e==o?i+n:(e/=o/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(-Math.pow(2,-10*--e)+2)+i},easeInCirc:function(t,e,i,n,o){return-n*(Math.sqrt(1-(e/=o)*e)-1)+i},easeOutCirc:function(t,e,i,n,o){return n*Math.sqrt(1-(e=e/o-1)*e)+i},easeInOutCirc:function(t,e,i,n,o){return(e/=o/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,o){var s=1.70158,r=0,a=n;if(0==e)return i;if(1==(e/=o))return i+n;if(r||(r=.3*o),a<Math.abs(n)){a=n;var s=r/4}else var s=r/(2*Math.PI)*Math.asin(n/a);return-(a*Math.pow(2,10*(e-=1))*Math.sin((e*o-s)*(2*Math.PI)/r))+i},easeOutElastic:function(t,e,i,n,o){var s=1.70158,r=0,a=n;if(0==e)return i;if(1==(e/=o))return i+n;if(r||(r=.3*o),a<Math.abs(n)){a=n;var s=r/4}else var s=r/(2*Math.PI)*Math.asin(n/a);return a*Math.pow(2,-10*e)*Math.sin((e*o-s)*(2*Math.PI)/r)+n+i},easeInOutElastic:function(t,e,i,n,o){var s=1.70158,r=0,a=n;if(0==e)return i;if(2==(e/=o/2))return i+n;if(r||(r=o*(.3*1.5)),a<Math.abs(n)){a=n;var s=r/4}else var s=r/(2*Math.PI)*Math.asin(n/a);return e<1?-.5*(a*Math.pow(2,10*(e-=1))*Math.sin((e*o-s)*(2*Math.PI)/r))+i:a*Math.pow(2,-10*(e-=1))*Math.sin((e*o-s)*(2*Math.PI)/r)*.5+n+i},easeInBack:function(t,e,i,n,o,s){return void 0==s&&(s=1.70158),n*(e/=o)*e*((s+1)*e-s)+i},easeOutBack:function(t,e,i,n,o,s){return void 0==s&&(s=1.70158),n*((e=e/o-1)*e*((s+1)*e+s)+1)+i},easeInOutBack:function(t,e,i,n,o,s){return void 0==s&&(s=1.70158),(e/=o/2)<1?n/2*(e*e*(((s*=1.525)+1)*e-s))+i:n/2*((e-=2)*e*(((s*=1.525)+1)*e+s)+2)+i},easeInBounce:function(t,e,i,n,o){return n-jQuery.easing.easeOutBounce(t,o-e,0,n,o)+i},easeOutBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,n,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,n,o)+i:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,n,o)+.5*n+i}}),function(t){function e(e){var i,n="",o=0;n+='<div class="'+e.filterBarClass+'">',n+='<a href="javascript:return;" class="remove pull-right">',n+='<i class="fa fa-remove"></i>',n+="</a>",n+='<div class="filter-step step-0">
12',n+='<select class="control-select form-control">',n+='<option value="-">',n+=t.Ai_TranslatedString("Kies een filter"),n+="</option>";for(i in e.filters)n+='<option value="'+o++ +'">',n+=e.filters[i],n+="</option>";return n+="</select>",n+="</div>",n+='<div class="clear clearfix"><!-- --></div>',n+="</div>",t(n)}function i(e,i){t(".remove",e).click(function(t){f(e,i),t.preventDefault()})}function n(e,i,n){var o=t(".step-"+i,e);if(o.length<1)return null;var s;return s=0==i?t("select",o):t('input[type="text"], input[type="checkbox"], select',o),s.length<1?null:s}function o(e,i,o){var s=n(e,i,o);s&&(0==i?s.change(function(){r(e,i,o,"FilterSelect")}):s.is("input")?"text"==s.attr("type")?(s.Ai_KeyCombo(["enter"],function(t){return r(e,i,o,"EnterKey"),t.preventDefault(),!1}),s.keypress(function(){t.Ai_ContextWindowEachActive(function(t){t.Ai_ContextWindowHide()})})):"checkbox"==s.attr("type")?s.click(function(){r(e,i,o,"CheckboxClick")}):s.change(function(){r(e,i,o,"Change")}):s.is("select")&&s.change(function(){r(e,i,o,"Change")}))}function s(t,e,i,o){var s=n(t,e,o);s&&s.val(i)}function r(t,e,i,s){var a=l(t,e,i);if(a){m(i,t,e,"ChangeValue",!1);var h=e+1,p=n(t,h,i),f=p&&p.is('input[type="text"]')?p.val():null;u(t,h,i);var g=i.onGetField(parseInt(l(t,0,i)),h,l(t,e,i),c(i));if(g){if(d(t,h,g,i,f),o(t,h,i),f){var v=n(t,h,i);v&&v.val(f)}r(t,h,i,s)}else{var y=i.updateLive||"undefined"!=typeof i["updateOn"+s]&&i["updateOn"+s];m(i,t,e,"Update",y)}}}function a(t,e){var i,n,o={},s=0;for(i in t){if(o["f"+s]=t[i][0],t[i].length>1)for(o["v"+s]={},n=1;n<t[i].length;n++)o["v"+s][n-1]=t[i][n];else o["v"+s]="";s++}return o}function l(t,e,i){var o=n(t,e,i);if(o){var s=o.val();return 0==e&&"-"==s?null:s}return null}function c(e){if("undefined"==typeof e.filterInterfaceContainer)return new Array;var i=new Array;return t("."+e.filterBarClass,t(e.filterInterfaceContainer)).each(function(){for(var n=new Array,o=0,s=l(t(this),o,e);null!=s;)n[o]=s,s=l(t(this),++o,e);n.length>0&&(i[i.length]=n)}),i}function h(e,i){if("undefined"!=typeof i.filterInterfaceContainer)return t(".filter").index(e)}function d(e,i,n,o){t("div.step-"+(i-1),e).after('<div class="filter-step step-'+i+'"></div>');var s=t(".step-"+i,e);s.html(n.hide()),t(o.filterInterfaceContainer).trigger("Ai_FilterInterface_Field",[o,n,e,i]),o.animate?n.stop().fadeTo(o.duration,1,o.easing,function(){}):n.show()}function u(e,i,n){for(var o=t(".step-"+i,e);o.length>0;)o.remove(),o=t(".step-"+ ++i,e)}function p(n,s){if("undefined"!=typeof n.filterInterfaceContainer){var r=e(n);return t(n.filterInterfaceContainer).append(r.hide()),g(n),o(r,0,n),i(r,n),r.addClass(h(r,n)%2==0?n.filterBarClassOdd:n.filterBarClassEven),!n.animate||"undefined"!=typeof s&&0==s?r.show():r.stop().slideDown(n.duration,n.easing),r}}function f(t,e){var i=function(){t.remove();var i=e.updateLive||e.updateOnRemoveFilter;m(e,null,null,"Remove",i),g(e)};e.animate?t.slideUp(e.duration,function(){i()},e.easing?e.easing:null):i()}function g(e){e.maximumFilters&&t("."+e.filterBarClass,t(e.filterInterfaceContainer)).length==e.maximumFilters?t(e.addButton).hide():t(e.addButton).show()}function m(e,i,n,o,s){var r=c(e),a=[];if("undefined"!=typeof i){var l=h(i,e);"undefined"!=typeof r[l]&&(a=r[l])}var d="on"+o;if("function"==typeof e[d]){var u=e[d];u(r,a,i,n)}t(e.filterInterfaceContainer).trigger("Ai_FilterInterface_"+o,[e,r,a,i,n]),s&&y(r,e)}function v(e,i,o,s){t.ajax({url:i.validateURL,data:a(e),dataType:i.validateURLDataType,success:function(e){var r,a,l=0;for(var c in e.validations)if(!e.validations[c].outcome&&(l+=1,r=t("."+i.filterBarClass+":eq("+e.validations[c].indexInSelection+")",t(i.filterInterfaceContainer)),r&&(a=n(r,parseInt(e.validations[c].step)+1,i),a.length>0))){a.Ai_ContextWindow({onGetElement:function(){var i="";return i+='<div class="popover">',i+='<div class="arrow"></div>',i+='<div class="popover-content">
12',i+=e.validations[c].error,i+="</div>",i+="</div>",t(i)},hideOnScroll:!0,hideOnClickOutside:!0,hideForOtherWindows:!0,hideOnWindowResize:!0,hideOnClick:!0,position:{positionY:["top","bottom","alignCenters"],animate:{easing:"easeOutElastic",duration:600,properties:{moveX:50,moveY:50},callback:function(){}},positionClasses:{top:"top",right:"right",bottom:"bottom",left:"left"}}});break}l>0?"function"==typeof s&&s():"function"==typeof o&&o()}})}function y(e,i){var n=function(){i.onApply(e),t(i.filterInterfaceContainer).trigger("Ai_FilterInterface_Apply",[e]),t(i.filterInterfaceContainer).data("Ai_FilterInterfaceValues",e),t.ajax({url:i.updateURL,data:a(e),dataType:i.updateURLDataType,success:function(e){i.onApplied(e),t(i.filterInterfaceContainer).trigger("Ai_FilterInterface_Applied",[i,e])}})};i.validateURL?v(e,i,function(){n()}):n()}function b(t,e){return t.attr(e.hintAttribute)}function x(e,i){""==e.val()&&(i.clearHintOnFocus?e.addClass(i.hintClass).val(b(e,i)):(t("."+i.hintClass,e.parent()).remove(),e.after('<div class="'+i.hintClass+'">'+b(e,i)+"</div>")))}function k(e,i){if(i.clearHintOnFocus)e.hasClass(i.hintClass)&&e.removeClass(i.hintClass).val("");else{var n=t("."+i.hintClass,e.parent());n.length>0&&n.stop().fadeTo(150,0,function(){t(this).remove()})}}function w(e,i){var n,o,s,r,a,l,c=[-1,""];for(n=0,o=0,s=i.mask.length;n<s;n++)a=i.mask.charAt(n),l="undefined"!=typeof i.rules[a],r=e.charAt(o),r?l?i.rules[a].test(r)?(c[1]+=r,o++):i.showPlaceholders&&r==i.placeholder?(c[1]+=i.placeholder,c[0]==-1&&(c[0]=n)):t.Ai_Console("invalid character"):(c[1]+=a,r==a&&o++):l?(c[1]+=i.placeholder,c[0]==-1&&(c[0]=n)):c[1]+=a;return c[0]==-1&&(c[0]=n),c}function T(t){var e=t.data();return"object"!=typeof e.M_KeyCombos?new Array:e.M_KeyCombos}function C(t,e){t.data("M_KeyCombos",e)}function S(e){if("undefined"!=typeof t.Ai_Registry.ContextWindowRegistry){var i=e.attr("id");i&&delete t.Ai_Registry.ContextWindowRegistry[i]}e.removeData("Ai_ContextWindowOptions")}function _(){t.Ai_Registry.paper&&t.Ai_Registry.paper.setSize(t(window).width(),t(document).height())}function A(t,e){var i=t.data("Ai_GuidedTour_Options");return"undefined"==typeof i?null:i}function E(t,e){return"undefined"==typeof e&&(e=t._currentSlide),"undefined"==typeof t.slides||"undefined"==typeof t.slides[e]?null:(t.slides[e].slideId=e,t.slides[e])}function P(t,e){return E(t,t._currentSlide+parseInt(e))}function M(e){var i=t("#tour-info-bar");i.length>0?i.css({position:"absolute",top:t(window).scrollTop()+"px",left:"0px",width:t(window).width(),"z-index":20052}):"undefined"!=typeof e&&(t(window).unbind("resize",M),t(window).unbind("scroll",M))}function D(){var e=t(this).data("Ai_GuidedTour_Interval");e&&(clearTimeout(e),t(this).removeData("Ai_GuidedTour_Interval"))}function O(e,i){t(this).data("Ai_GuidedTour_Interval",setTimeout(i,e))}function $(e){return e.Ai_Equals(t(window))||e.Ai_Equals(t(document))}function L(){return"M0 0H"+t(window).width()+"V"+t(document).height()+"H0V0"}function I(e,i,n){n=t.extend({left:0,right:0,top:0,bottom:0},n);var o=e.Ai_Offset(),s={x1:o.left,y1:o.top,x2:o.left+e.outerWidth(),y2:o.top+e.outerHeight()},r={x1:s.x1-i.padding.left-n.left,x2:s.x2+i.padding.right+n.right,y1:s.y1-i.padding.top-n.top,y2:s.y2+i.padding.bottom+n.bottom},a="";return a+="M"+r.x1+" "+s.y2,a+="C"+r.x1+","+r.y2+" ",a+=r.x1+","+r.y2+" ",a+=s.x1+","+r.y2,a+="H"+s.x2,a+="C"+r.x2+","+r.y2+" ",a+=r.x2+","+r.y2+" ",a+=r.x2+","+s.y2,a+="V"+s.y1,a+="C"+r.x2+","+r.y1+" ",a+=r.x2+","+r.y1+" ",a+=s.x2+","+r.y1,a+="H"+s.x1,a+="C"+r.x1+","+r.y1+" ",a+=r.x1+","+r.y1+" ",a+=r.x1+","+s.y1,a+="V"+s.y2,a+="z"}t.Ai_Registry={},t.Ai_TranslatedString=function(t){return t},t.Ai_Console=function(t){window.console&&window.console.log&&window.console.log(t)},t.fn.Ai_AssignId=function(){return"undefined"==typeof t.Ai_Registry.AssignIdCounter&&(t.Ai_Registry.AssignIdCounter=0),this.each(function(){var e=t(this).attr("id");e||t(this).attr("id","Auto-ID-"+ ++t.Ai_Registry.AssignIdCounter)}),this},t.Ai_Cookie=function(e,i,n){if(!(arguments.length>1&&"object"!=typeof i)){n=t.extend({},t.Ai_Cookie.defaults,i);var o,s=n.raw?function(t){return t}:decodeURIComponent;return(o=new RegExp("(?:^|; )"+encodeURIComponent(e)+"=([^;]*)").exec(document.cookie))?s(o[1]):null}if(n=t.extend({},t.Ai_Cookie.defaults,n),null===i||void 0===i)n.expires=-1;else{var r=t.trim(n.expireString);if(r){var a=r.split(" ");if(2==a.length){var l="a"==a[0]||"an"==a[0]?1:parseInt(a[0]);switch(a[1].toString().toLowerCase()){case"second":case"seconds":l*=1e3;break;case"minute":case"minutes":l*=6e4;break;case"hour":case"hours":l*=36e5;break;case"day":case"days":l*=864e5;break;case"week":case"weeks":l*=6048e5;break;case"month":case"months":l*=2629744e3;break;case"year":case"years":l*=31556926e3}n.expires=new Date,n.expires.setTime(n.expires.getTime()+l)}}}i=String(i),document.cookie=[encodeURIComponent(e),"=",n.raw?i:encodeURIComponent(i),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")},t.Ai_Cookie.remove=function(e){t.Ai_Cookie(e,null)},t.Ai_Cookie.defaults={expires:null,expireString:"",path:null,domain:null,secure:!1,raw:!1},t.fn.Ai_Selectables=function(e){return e=t.extend({},t.fn.Ai_Selectables.defaults,e),t(this).click(function(i){var n=e.getHighlighted(t(this),e);if(!n||n&&0==n.length)return!0;var o;o=!n.hasClass(e.highlightedClass),o?(n.addClass(e.highlightedClass),e.onSelect(t(this),n,e)):(n.removeClass(e.highlightedClass),e.onUnselect(t(this),n,e))}),this},t.fn.Ai_Selectables.defaults={getHighlighted:function(t,e){return t},highlightedClass:"selected",onSelect:function(t,e){},onUnselect:function(t,e){}},t.fn.Ai_FilterInterface=function(e){if(e=t.extend({},t.fn.Ai_FilterInterface.defaults,e),e.filterInterfaceContainer=this,e.addButton){var i=t(e.addButton);i.length>0&&i.click(function(t){p(e),t.preventDefault()})}if(e.applyButton){var n=t(e.applyButton);n.length>0&&n.click(function(t){y(c(e),e),t.preventDefault()})}var r,a,h;
12for(r in e.initValues)for(h=p(e,!1),s(h,0,e.initValues[r][0],e),m(e,h,0,"InitValue",!1),a=1;a<e.initValues[r].length;a++){var u=e.onGetField(parseInt(l(h,0,e)),a,l(h,a-1,e),c(e));u&&(d(h,a,u,e),s(h,a,e.initValues[r][a],e),o(h,a,e),m(e,h,a,"InitValue",!1))}return t(this).data("Ai_FilterInterfaceValues",c(e)),m(e,h,0,"InitValues",!1),this},t.fn.Ai_FilterInterfaceValues=function(){var e=t(this).data("Ai_FilterInterfaceValues");return e?e:[]},t.fn.Ai_FilterInterfaceQueryVariables=function(){return a(t(this).Ai_FilterInterfaceValues())},t.fn.Ai_FilterInterface.defaults={maximumFilters:null,filters:[],animate:!0,easing:null,duration:200,filterBarClass:"filter",filterBarClassOdd:"odd",filterBarClassEven:"even",addButton:null,onGetField:function(t,e,i,n){return null},onShowField:function(){},onShowFilterBar:function(t){},onUpdate:function(t,e,i,n){},onInitValue:function(t,e,i,n){},onChangeValue:function(t,e,i,n){},onRemove:function(t){},onInteraction:function(){},updateURL:"",updateURLDataType:"json",updateLive:!1,updateOnEnterKey:!0,updateOnRemoveFilter:!1,updateButton:null,validateURL:"",validateURLDataType:"json",onApply:function(t){},onApplied:function(t){},initValues:[]},t.fn.Ai_InputHint=function(e){return e=t.extend({},t.fn.Ai_InputHint.defaults,e),t(this).filter(function(){var i=t(this).attr(e.hintAttribute);return"undefined"!=typeof i&&""!=jQuery.trim(i)}).each(function(){t(this).blur(function(){x(t(this),e)}),t(this).bind(e.clearHintOnFocus?"focus":"keydown",function(){k(t(this),e)}),x(t(this),e);var i=t(this);t(this.form).submit(function(){k(i,e)})}),this.end()},t.fn.Ai_InputHint.defaults={hintClass:"hint",hintAttribute:"title",clearHintOnFocus:!1},t.fn.Ai_CaretPosition=function(e,i){this.focus();var n=t(this)[0];if("undefined"==typeof i&&(i=e),n.createTextRange){var o=n.createTextRange();o.collapse(!0),o.move("character",e),o.moveEnd("character",e),o.moveStart("character",i),o.select()}else n.setSelectionRange&&n.setSelectionRange(e,i);return this},t.fn.Ai_InputMask=function(e){e=t.extend({},t.fn.Ai_InputMask.defaults,e),e.rules=t.extend({},e.rules,{0:/[0]/,1:/[0-1]/,2:/[0-2]/,3:/[0-3]/,4:/[0-4]/,5:/[0-5]/,6:/[0-6]/,7:/[0-7]/,8:/[0-8]/,9:/[0-9]/}),t(this).keyup(function(){var i=w(t(this).val(),e);t(this).val(i[1]),t(this).Ai_CaretPosition(i[0])}),t(this).bind("paste",function(t){});var i=w("",e);t(this).val(i[1])},t.fn.Ai_InputMask.defaults={mask:null,rules:{z:/[a-z]/,Z:/[A-Z]/,a:/[a-zA-Z]/,"*":/[0-9a-zA-Z]/},showPlaceholders:!0,placeholder:"_",autoTab:!0},t.fn.Ai_KeyCombo=function(e,i){return 0==e.length?this:(t(this).each(function(){var n=T(t(this));0==n.length&&t(this).keypress(function(e){var i,n,o=T(t(this)),s=t.fn.Ai_KeyCombo.keycodes(),r=!0;for(i=0;i<o.length;i++){if(1==o[i][0].length)r="undefined"!=typeof s[o[i][0][0]]&&s[o[i][0][0]]==e.keyCode;else for(n=0;n<o[i][0].length;n++)r="ctrl"==o[i][0][n]?r&&e.ctrlKey:"shift"==o[i][0][n]?r&&e.shiftKey:"alt"==o[i][0][n]?r&&e.altKey:r&&"undefined"!=typeof s[o[i][0][n]]&&s[o[i][0][n]]==e.keyCode;r&&o[i][1](e,t(this))}}),n.push([e,i]),C(t(this),n)}),this)},t.fn.Ai_KeyCombo.keycodes=function(){return{backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,option:18,escape:27,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,"delete":46,"numpad 0":96,"numpad 1":97,"numpad 2":98,"numpad 3":99,"numpad 4":100,"numpad 5":101,"numpad 6":102,"numpad 7":103,"numpad 8":104,"numpad 9":105,"*":106,multiply:106,"+":107,add:107,"-":109,subtract:109,".":110,decimal:110,"/":111,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,semicolon:186,"=":187,equals:187,",":188,comma:188,"-":189,dash:189,".":190,period:190,"/":191,slash:191,backslash:220,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90}},t.fn.Ai_ContextWindow=function(e){if(e=t.extend({},t.fn.Ai_ContextWindow.defaults,e),t(this).Ai_ContextWindowIsActive())return this;t(this).Ai_ContextWindowHide(!1),t.Ai_ContextWindowEach(function(t,e,i){i.hideForOtherWindows&&t.Ai_ContextWindowHide()});var i=e.onGetElement(t(this));if(i.selector?e.removeOnHide=!1:(t("body").append(i.hide()),e.removeOnHide=!0),i.length>0){if(i.css({"z-index":e.zIndex,opacity:1}),e.hideOnClick){var n=t(this);i.Ai_BindOnce("click",function(){n.Ai_ContextWindowHide()})}i.Ai_TooltipPosition(t.extend({},e.position,{relativeTo:t(this)})),i.show(),"function"==typeof e.onShow&&e.onShow(t(this),i,e)}return"undefined"==typeof t.Ai_Registry.ContextWindowRegistry&&(t.Ai_Registry.ContextWindowRegistry={},t(window).Ai_BindOnce("resize",function(){t.Ai_ContextWindowEach(function(e,i,n){n.hideOnWindowResize?e.Ai_ContextWindowHide():i.Ai_TooltipPosition(t.extend({},n.position,{relativeTo:e,animate:!1}))})}),t(window).Ai_BindOnce("scroll",function(){t.Ai_ContextWindowEach(function(e,i,n){n.hideOnScroll?e.Ai_ContextWindowHide():n.positionOnScroll&&i.Ai_TooltipPosition(t.extend({},n.position,{relativeTo:e,animate:!1}))})}),t(document).Ai_BindOnce("mousedown",function(e){t.Ai_ContextWindowEach(function(t,i,n){var o=!1;n.hideOnClickOutside&&!i.Ai_HitTestXY(e.pageX,e.pageY)&&(!n.hideOnClickTrigger&&t.Ai_HitTestXY(e.pageX,e.pageY)||(o=!0)),o||n.hideOnClickTrigger&&t.Ai_HitTestXY(e.pageX,e.pageY)&&(o=!0),o&&t.Ai_ContextWindowHide()})}),t(document).Ai_BindOnce("keypress",function(e){t.Ai_ContextWindowEach(function(t,e,
12i){i.hideOnKeyPress&&t.Ai_ContextWindowHide()})})),e.contextWindowElement=i.Ai_AssignId().attr("id"),t(this).data("Ai_ContextWindowOptions",e),t.Ai_Registry.ContextWindowRegistry[t(this).Ai_AssignId().attr("id")]=i.attr("id"),this},t.fn.Ai_ContextWindowUpdateContents=function(t){},t.fn.Ai_ContextWindowHide=function(e){var i=t(this).data("Ai_ContextWindowOptions");if(!i)return this;var n=t("#"+i.contextWindowElement);0==n.length&&S(t(this));var o=function(t,e,i){"function"==typeof i.onHide&&i.onHide(t,e,i),i.removeOnHide?e.remove():e.hide(),S(t)};return o(t(this),n,i),this},t.fn.Ai_ContextWindowIsActive=function(){var e=!1,i=t(this);return t.Ai_ContextWindowEach(function(t,n,o){!e&&t.Ai_Equals(i)&&(e=!0)}),e},t.Ai_ContextWindowEach=function(e){if("undefined"!=typeof t.Ai_Registry.ContextWindowRegistry)for(var i in t.Ai_Registry.ContextWindowRegistry){var n=t("#"+i),o=t("#"+t.Ai_Registry.ContextWindowRegistry[i]);0==n.length||0==o.length?(o.remove(),n.length>0?S(n):delete t.Ai_Registry.ContextWindowRegistry[i]):e(n,o,n.data("Ai_ContextWindowOptions"))}},t.Ai_ContextWindowEachActive=function(e){"undefined"!=typeof t.Ai_Registry.ContextWindowRegistry&&t.Ai_ContextWindowEach(function(t,i,n){i.is(":visible")&&e(t,i,n)})},t.Ai_ContextWindowActiveCount=function(){var e=0;return t.Ai_ContextWindowEachActive(function(){e++}),e},t.fn.Ai_ContextWindow.defaults={onGetElement:function(e){return t("<div>float element</div>")},hideOnWindowResize:!0,hideForOtherWindows:!0,hideOnClick:!0,hideOnClickOutside:!0,hideOnClickTrigger:!0,hideOnMouseOut:!0,hideOnScroll:!0,hideOnKeyPress:!0,hideOnTimeout:null,positionOnScroll:!0,onShow:function(t,e,i){},onHide:function(t,e,i){},zIndex:10001,position:{positionX:["alignCenters"],positionY:["top","bottom"],margin:{top:10,right:0,bottom:10,left:0}}},t.fn.Ai_TooltipPosition=function(e){var e=t.extend({container:t(window),containerPadding:{top:10,right:10,bottom:10,left:10},relativeTo:t(this).prev(),positionY:["bottom","top","alignCenters"],positionX:["alignCenters","right","left","alignLeftEdges","alignRightEdges"],positionClasses:{top:"position-bottom",right:"position-left",bottom:"position-top",left:"position-right",alignTopEdges:"position-top-edge",alignBottomEdges:"position-bottom-edge",alignLeftEdges:"position-left-edge",alignRightEdges:"position-right-edge"},allowOverlap:!0,margin:{top:10,right:10,bottom:10,left:10},animate:!1},e),i=!1,n=!1,o=0,s=0,r=null,a=null,l=0,c=0,h=0,d=t(e.relativeTo);if(0==d.length)return this;var u=d.Ai_Offset();if(!u)return this;for(h=0;h<e.positionY.length&&!n;h++){switch(e.positionY[h]){case"top":a=e.positionClasses.top,s=u.top-t(this).outerHeight(!1)-e.margin.bottom,n=s>e.container.scrollTop()+e.containerPadding.top,c=1;break;case"bottom":a=e.positionClasses.bottom,s=u.top+d.outerHeight(!1)+e.margin.top,n=s+t(this).outerHeight(!1)<e.container.height()+e.container.scrollTop()-e.containerPadding.bottom,c=-1;break;case"alignCenters":a=e.positionClasses.yCenter,s=u.top+Math.round((d.outerHeight(!1)-t(this).outerHeight(!1))/2),n=!0,c=0;break;case"alignTopEdges":a=e.positionClasses.alignTopEdges,s=u.top+e.margin.top,n=s+t(this).outerHeight(!1)<e.container.height()+e.container.scrollTop()-e.containerPadding.bottom,n=n&&s>e.container.scrollTop()+e.containerPadding.top,c=0;break;case"alignBottomEdges":a=e.positionClasses.alignBottomEdges,s=u.top+d.outerWidth(!1)-t(this).outerWidth(!1)-e.margin.bottom,n=s+t(this).outerHeight(!1)<e.container.height()+e.container.scrollTop()-e.containerPadding.bottom,n=n&&s>e.container.scrollTop()+e.containerPadding.top,c=0}n&&!e.allowOverlap&&t(this).Ai_IsOverlapping(d,{positionY:s})&&(n=!1)}for(h=0;h<e.positionX.length&&!i;h++){switch(e.positionX[h]){case"left":r=e.positionClasses.left,o=u.left-t(this).outerWidth(!1)-e.margin.right,i=o>e.container.scrollLeft()+e.containerPadding.left,l=-1;break;case"right":r=e.positionClasses.right,o=u.left+d.outerWidth(!1)+e.margin.left,i=o+t(this).outerWidth(!1)<e.container.width()+e.container.scrollLeft()-e.containerPadding.right,l=1;break;case"alignCenters":r=e.positionClasses.xCenter,o=u.left+Math.round((d.outerWidth(!1)-t(this).outerWidth(!1))/2),i=o+t(this).outerWidth(!1)<e.container.width()+e.container.scrollLeft()-e.containerPadding.right,i=i&&o>e.container.scrollLeft()+e.containerPadding.left,l=0;break;case"alignLeftEdges":r=e.positionClasses.alignLeftEdges,o=u.left+e.margin.left,i=o+t(this).outerWidth(!1)<e.container.width()+e.container.scrollLeft()-e.containerPadding.right,l=0;break;case"alignRightEdges":r=e.positionClasses.alignRightEdges,o=u.left+d.outerWidth(!1)-t(this).outerWidth(!1)-e.margin.right,i=o>e.container.scrollLeft()+e.containerPadding.left,l=0}i&&!e.allowOverlap&&t(this).Ai_IsOverlapping(d,{positionX:o,positionY:s})&&(i=!1)}
12for(h in e.positionClasses)e.positionClasses[h]!=r&&e.positionClasses[h]!=a?t(this).removeClass(e.positionClasses[h]):t(this).addClass(e.positionClasses[h]);return e.animate&&"object"==typeof e.animate.properties&&(void 0!=typeof e.animate.properties.moveX&&0!=l&&(e.animate.properties.left=o,o+=e.animate.properties.moveX*l),void 0!=typeof e.animate.properties.moveY&&0!=c&&(e.animate.properties.top=s,s+=e.animate.properties.moveY*c)),t(this).css({position:"absolute",left:o+"px",top:s+"px"}),e.animate&&t(this).animate(e.animate.properties,e.animate.duration,e.animate.easing,function(){"function"==typeof e.animate.callback&&e.animate.callback()}),this},t.fn.Ai_IsPositionedWithStyle=function(e,i){if(t(this).css("position")==e)return!0;if(i)for(var n=t(this).parent();n&&n.length>0;){if("undefined"==typeof n.get(0).tagName||"BODY"==n.get(0).tagName.toString().toUpperCase())return!1;if(n.css("position")==e)return!0;n=n.parent()}return!1},t.fn.Ai_Offset=function(){var e=t(this).offset();if(!e)return null;var i=t(document).scrollTop();return i?(t(this).Ai_IsPositionedWithStyle("fixed",!0)&&(e.top-=i,e.left-=t(document).scrollLeft()),e):e},t.Ai_Canvas=function(){return t.Ai_Registry.paper||(t.Ai_Registry.paper=Raphael(0,0,t(window).width(),t(document).height()),t("svg:last").css({"z-index":20050}),t(window).bind("resize",_)),t.Ai_Registry.paper},t.Ai_CanvasRemove=function(){t.Ai_Registry.paper&&(t.Ai_Registry.paper.remove(),t.Ai_Registry.paper=null,t(window).unbind("resize",_))},t.fn.Ai_BindOnce=function(e,i){var n=t(this).data("events");return n&&"undefined"!=typeof n[e]&&jQuery.each(n[e],function(n,o){o.handler.toString()==i.toString()&&t(this).unbind(e,o.handler)}),t(this).bind(e,i),this},t.fn.Ai_Highlight=function(e){var i=t.extend({},t.fn.Ai_Highlight.defaults,e);if(i.padding=t.extend({},t.fn.Ai_Highlight.defaults.padding,i.padding),!t(this).Ai_IsInsideViewport({complete:!0,margin:[100,100,100,100]})){var n=t(this).Ai_Offset();n&&t(window).scrollTop(n.top-t(window).height()/2-t(this).height()/2)}t("body").css("overflow","hidden").attr("scroll","no"),t("html").css("overflow","hidden");var o=L(),s=I(t(this),i,{left:30,right:30,top:30,bottom:30}),r=t.Ai_Canvas().path(o+s).attr({"stroke-width":0,fill:i.overlayColor,"fill-opacity":i.overlayOpacity}),a=t.Ai_Canvas().path(s).attr({"stroke-width":i.borderThickness,stroke:i.borderColor,"stroke-opacity":i.borderOpacity});if(s=I(t(this),i,{}),r.animate({path:o+s},i.speed,i.easing),a.animate({path:s},i.speed,i.easing),i.infoTitle||i.infoHtml){var l="";l+='<div class="highlight-info" style="position: absolute; top: 0; left: 0;">',i.infoTitle&&(l+='<div class="title">'+i.infoTitle+"</div>"),i.infoHtml&&(l+='<div class="html">'+i.infoHtml+"</div>"),l+="</div>",t("body").append(l),t(".highlight-info").css({"z-index":20051}).Ai_TooltipPosition({relativeTo:t(this),margin:{left:2*i.padding.left,right:2*i.padding.right,top:2*i.padding.top,
13bottom:2*i.padding.bottom},containerPadding:{top:80,right:10,bottom:10,left:10},positionX:["alignCenters","left","right"],positionY:["top","bottom","alignCenters"]}
13)}var c=t(this),h=function(){var e=t(".highlight-info");e.length>0&&e.Ai_TooltipPosition({relativeTo:c,margin:{left:2*i.padding.left,right:2*i.padding.right,top:2*i.padding.top,bottom:2*i.padding.bottom},containerPadding:{top:80,right:10,bottom:10,left:10},positionX:["alignCenters","left","right"],positionY:["top","bottom","alignCenters"],allowOverlap:!1})};return t(window).Ai_BindOnce("resize",function(){var e=t.Ai_HighlightedElement();if(e){var n=I(c,i);r.attr({path:L()+n}),a.attr({path:n}),h()}}),t(window).Ai_BindOnce("scroll",function(){h()}),t.Ai_Registry.HighlightedElement=t(this),this},t.Ai_HighlightRemove=function(e){t("body").css("overflow","inherit").removeAttr("scroll"),t("html").css("overflow","inherit"),t.Ai_Canvas().clear(),t(".highlight-info").remove(),t.Ai_Registry.HighlightedElement=null,e&&t.Ai_CanvasRemove()},t.Ai_HighlightedElement=function(){return t.Ai_Registry.HighlightedElement},t.fn.Ai_Highlight.defaults={padding:{top:20,right:20,bottom:20,left:20},overlayColor:"#000000",overlayOpacity:.75,borderColor:"#008fd4",borderThickness:3,borderOpacity:1,infoTitle:null,infoHtml:null,infoMaxWidth:500,easing:"easeInOutLinear",speed:250},t.fn.Ai_GuidedTour=function(e){return e._currentSlide=0,t(this).data("Ai_GuidedTour_Options",e),t(this).click(function(i){t(this).Ai_GuidedTourShowSlide(e._currentSlide,!0);var n="";n+='<div id="tour-info-bar">',n+='<a href="" id="tour-previous">',n+="Previous slide",n+="</a>",n+='<a href="" id="tour-next">',n+="Next slide",n+="</a>",n+='<a href="#" id="tour-close">',n+="Close",n+="</a>",n+="</div>",t("body").append(n);var o=t(this);t("#tour-previous").click(function(){return o.Ai_GuidedTourMove(-1,!1),!1}),t("#tour-next").click(function(){return o.Ai_GuidedTourMove(1,!0),!1}),t("#tour-close").click(function(){return o.Ai_GuidedTourClose(),!1}),M(),t(window).Ai_BindOnce("resize",M),t(window).Ai_BindOnce("scroll",M),i.preventDefault()}),this},t.fn.Ai_GuidedTourShowSlide=function(e,i){D(),t.Ai_HighlightRemove(!1);var n=A(t(this));if(!n)return this;var o=E(n,e);if(!o)return this;"function"==typeof o.onInit&&o.onInit();var s=t(o.highlight);if(s.length>0&&s.Ai_Highlight(t.extend({},o.highlightOptions)),i){var r=t(this);if(n.autoPlay){var a="undefined"!=typeof o.slideDuration?parseInt(o.slideDuration):n.slideDuration;O(a,function(){r.Ai_GuidedTourMove(1,!0)})}}return"undefined"!=typeof o.highlightOptions.infoTitle&&t("#tour-title").html(o.highlightOptions.infoTitle),o=P(n,-1),o?"undefined"!=typeof o.highlightOptions.infoTitle&&t("#tour-previous").show().html(o.highlightOptions.infoTitle):t("#tour-previous").hide(),o=P(n,1),o?"undefined"!=typeof o.highlightOptions.infoTitle&&t("#tour-next").show().html(o.highlightOptions.infoTitle):t("#tour-next").hide(),this},t.fn.Ai_GuidedTourMove=function(e,i){var n=A(t(this));if(!n)return this;var o=P(n,e);return o?(n._currentSlide=o.slideId,t(this).Ai_GuidedTourShowSlide(o.slideId,i),this):(t(this).Ai_GuidedTourClose(),this)},t.fn.Ai_GuidedTourClose=function(){D();var e=t(this).data("Ai_GuidedTour_Options");return"undefined"==typeof e?this:(t.Ai_HighlightRemove(!0),t("#tour-info-bar").remove(),e._currentSlide=0,this)},t.fn.Ai_HitTestXY=function(e,i){var n=!1,o=t(this).Ai_Offset();return n=e>=o.left&&e<=o.left+t(this).outerWidth(!1),n=n&&i>=o.top&&i<=o.top+t(this).outerHeight(!1)},t.fn.Ai_IsInsideViewport=function(e){var e=t.extend({},t.fn.Ai_IsInsideViewport.defaults,e),i=t(this).Ai_BoundingBox({padding:e.margin}),n=e.viewport?t(e.viewport).Ai_BoundingBox():t.Ai_BoundingBoxWindowViewport(),o=!0;return o=o&&i.left>=n.left&&i.left<n.right,o=o&&i.top>=n.top&&i.top<n.bottom,o&&e.complete&&(o=o&&i.right>=n.left&&i.right<n.right,o=o&&i.bottom>=n.top&&i.bottom<n.bottom),o},t.fn.Ai_IsInsideViewport.defaults={viewport:null,complete:!1,margin:[0,0,0,0]},t.fn.Ai_IsOverlapping=function(e,i){var i=t.extend({},t.fn.Ai_IsOverlapping.defaults,i),n=t(this).Ai_BoundingBox({padding:i.boundingBoxPadding}),o=e.Ai_BoundingBox(),s=0;return"undefined"!=typeof i.positionX&&(s=n.left-parseInt(i.positionX),n.left+=s,n.right+=s),"undefined"!=typeof i.positionY&&(s=n.top-parseInt(i.positionY),n.top+=s,n.bottom+=s),!(n.right<=o.left||n.left>=o.right||n.bottom<=o.top||n.top>=o.bottom)},t.fn.Ai_IsOverlapping.defaults={boundingBoxPadding:[0,0,0,0],positionX:null,positionY:null},t.fn.Ai_BoundingBox=function(e){var e=t.extend({},t.fn.Ai_BoundingBox.defaults,e),i=t(this).Ai_Offset(),n={top:i&&!isNaN(i.top)?i.top:0,left:i&&!isNaN(i.left)?i.left:0};return n.right=n.left+parseInt(t(this).outerWidth()),n.bottom=n.top+t(this).outerHeight(),n.top-=parseInt(e.padding[0]),n.right+=parseInt(e.padding[1]),n.bottom+=parseInt(e.padding[2]),n.left-=parseInt(e.padding[3]),n},t.fn.Ai_BoundingBox.defaults={padding:[0,0,0,0]},t.Ai_BoundingBoxWindowViewport=function(){var e=t(window).scrollTop(),i=t(window).scrollLeft();return{top:e,left:i,right:t(window).width()+i,bottom:t(window).height()+e}},t.fn.Ai_Equals=function(e){return e.get(0)==t(this).get(0)},t.fn.Ai_ShowLoading=function(e){var e=t.extend({loading:!0,forceOverlay:!1,message:"",timeout:200,loadingClass:"loading",idleClass:null},e);"undefined"==typeof t.Ai_Registry.LoadingIntervalIds&&(t.Ai_Registry.LoadingIntervalIds=new Array);var i=$(t(this))?"__global":t(this).Ai_AssignId().attr("id");"undefined"!=typeof t.Ai_Registry.LoadingIntervalIds[i]&&clearTimeout(t.Ai_Registry.LoadingIntervalIds[i]);var n=t(this);e.loading?t.Ai_Registry.LoadingIntervalIds[i]=setTimeout(function(){if($(n)||e.forceOverlay){var i,o,s,r,a=t('<div id="loading-overlay"><div id="loading-message">'+e.message+"</div></div>");if($(n))i=0,o=0,s=t(document).width(),r=t(document).height();else{var l=n.Ai_Offset();l&&(i=l.left,o=l.top,s=n.outerWidth(!0),r=n.outerHeight(!0))}a.css({opacity:.7,position:"absolute",width:s+"px",height:r+"px",left:i+"px",top:o+"px","z-index":1e4}),t("body").append(a)}else n.addClass(e.loadingClass),e.idleClass&&n.removeClass(e.idleClass)},e.timeout):$(n)||e.forceOverlay?t("#loading-overlay").remove():(n.removeClass(e.loadingClass),e.idleClass&&!n.hasClass(e.idleClass)&&n.addClass(e.idleClass))},t.fn.Ai_ProgressBar=function(e){var e=t.extend({},t.fn.Ai_ProgressBar.defaults,e);
13if(0==t(".progress-bar",t(this)).length){var i="";e.skin&&(i+='<div class="'+e.skin+'">'),i+='<div class="progress-bar">',i+='<div class="bar">',i+="<!-- -->",i+="</div>",i+="</div>",e.skin&&(i+="</div>"),t(this).html(i),t(this).Ai_ProgressBar.update(e)}},t.fn.Ai_ProgressBar.update=function(e){var e=t.extend({},t.fn.Ai_ProgressBar.defaults,e),i=Math.floor(t(".progress-bar",t(this)).width()*(e.percentage/100)),n=t(".bar",t(this));e.animate?n.animate({width:i},e.duration,e.easing):n.css("width",i+"px"),e.showPercentage&&n.html('<span class="percentage">'+e.percentage+"%</span>")},t.fn.Ai_ProgressBar.defaults={skin:"progress-bar-default",percentage:0,showPercentage:!1,animate:!0,easing:null,duration:200},t.fn.Ai_Suckerfish=function(e){var e=t.extend({trigger:"hover",showOnHoverSiblings:!1,timeout:150,onShow:function(t,e){},onHide:function(t,e){},onGetMenu:function(t){return t.next()},hideOnClick:!0,zIndex:1001,position:{positionX:["alignLeftEdges","alignRightEdges"],positionY:["bottom","top"],margin:{top:0,right:0,bottom:0,left:0}}},e);switch(e.trigger){case"hover":alert("Suckerfish with hover() event temporarily not available!");break;case"click":t(this).click(function(i){return t(this).Ai_ContextWindow({onGetElement:function(t){return e.onGetMenu(t)},onShow:function(t,i){"function"==typeof e.onShow&&e.onShow(t,i)},onHide:function(t,i){"function"==typeof e.onHide&&e.onHide(t,i)},position:e.position,zIndex:e.zIndex,hideOnWindowResize:!0,hideForOtherWindows:!0,hideOnClick:!0,hideOnClickOutside:!0,hideOnClickTrigger:!1,hideOnMouseOut:!1,hideOnScroll:!0,hideOnTimeout:null,positionOnScroll:!1}),i.preventDefault(),!1}),e.showOnHoverSiblings&&t(this).each(function(i){t(this).hover(function(){var i=t(this).Ai_AssignId();t.Ai_ContextWindowEachActive(function(t,n,o){t.Ai_AssignId().attr("id")!=i.attr("id")&&i.Ai_ContextWindow({onGetElement:function(t){return e.onGetMenu(t)},onShow:function(t,i){"function"==typeof e.onShow&&e.onShow(t,i)},onHide:function(t,i){"function"==typeof e.onHide&&e.onHide(t,i)},position:e.position,zIndex:e.zIndex,hideOnWindowResize:!0,hideForOtherWindows:!0,hideOnClick:!0,hideOnClickOutside:!0,hideOnClickTrigger:!1,hideOnMouseOut:!1,hideOnScroll:!0,hideOnTimeout:null,positionOnScroll:!1})})})})}return this}}(jQuery),function(){"use strict";var t,e;t=jQuery,e=function(e,i){var n,o,s,r=this;return this.options=t.extend({title:null,footer:null,remote:null},t.fn.ekkoLightbox.defaults,i||{}),this.$element=t(e),n="",this.modal_id=this.options.modal_id?this.options.modal_id:"ekkoLightbox-"+Math.floor(1e3*Math.random()+1),s='<div class="modal-header"'+(this.options.title||this.options.always_show_close?"":' style="display:none"')+'><button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button><h4 class="modal-title">'+(this.options.title||"&nbsp;")+"</h4></div>",o='<div class="modal-footer"'+(this.options.footer?"":' style="display:none"')+">"+this.options.footer+"</div>",t(document.body).append('<div id="'+this.modal_id+'" class="ekko-lightbox modal fade" tabindex="-1"><div class="modal-dialog"><div class="modal-content">'+s+'<div class="modal-body"><div class="ekko-lightbox-container"><div></div></div></div>'+o+"</div></div></div>"),this.modal=t("#"+this.modal_id),this.modal_dialog=this.modal.find(".modal-dialog").first(),this.modal_content=this.modal.find(".modal-content").first(),this.modal_body=this.modal.find(".modal-body").first(),this.lightbox_container=this.modal_body.find(".ekko-lightbox-container").first(),this.lightbox_body=this.lightbox_container.find(">
13 div:first-child").first(),this.showLoading(),this.modal_arrows=null,this.border={top:parseFloat(this.modal_dialog.css("border-top-width"))+parseFloat(this.modal_content.css("border-top-width"))+parseFloat(this.modal_body.css("border-top-width")),right:parseFloat(this.modal_dialog.css("border-right-width"))+parseFloat(this.modal_content.css("border-right-width"))+parseFloat(this.modal_body.css("border-right-width")),bottom:parseFloat(this.modal_dialog.css("border-bottom-width"))+parseFloat(this.modal_content.css("border-bottom-width"))+parseFloat(this.modal_body.css("border-bottom-width")),left:parseFloat(this.modal_dialog.css("border-left-width"))+parseFloat(this.modal_content.css("border-left-width"))+parseFloat(this.modal_body.css("border-left-width"))},this.padding={top:parseFloat(this.modal_dialog.css("padding-top"))+parseFloat(this.modal_content.css("padding-top"))+parseFloat(this.modal_body.css("padding-top")),right:parseFloat(this.modal_dialog.css("padding-right"))+parseFloat(this.modal_content.css("padding-right"))+parseFloat(this.modal_body.css("padding-right")),bottom:parseFloat(this.modal_dialog.css("padding-bottom"))+parseFloat(this.modal_content.css("padding-bottom"))+parseFloat(this.modal_body.css("padding-bottom")),left:parseFloat(this.modal_dialog.css("padding-left"))+parseFloat(this.modal_content.css("padding-left"))+parseFloat(this.modal_body.css("padding-left"))},this.modal.on("show.bs.modal",this.options.onShow.bind(this)).on("shown.bs.modal",function(){return r.modal_shown(),r.options.onShown.call(r)}).on("hide.bs.modal",this.options.onHide.bind(this)).on("hidden.bs.modal",function(){return r.gallery&&t(document).off("keydown.ekkoLightbox"),r.modal.remove(),r.options.onHidden.call(r)}).modal("show",i),this.modal},e.prototype={modal_shown:function(){var e,i=this;return this.options.remote?(this.gallery=this.$element.data("gallery"),this.gallery&&("document.body"===this.options.gallery_parent_selector||""===this.options.gallery_parent_selector?this.gallery_items=t(document.body).find('*[data-toggle="lightbox"][data-gallery="'+this.gallery+'"]'):this.gallery_items=this.$element.parents(this.options.gallery_parent_selector).first().find('*[data-toggle="lightbox"][data-gallery="'+this.gallery+'"]'),this.gallery_index=this.gallery_items.index(this.$element),t(document).on("keydown.ekkoLightbox",this.navigate.bind(this)),this.options.directional_arrows&&this.gallery_items.length>1&&(this.lightbox_container.append('<div class="ekko-lightbox-nav-overlay"><a href="#" class="'+this.strip_stops(this.options.left_arrow_class)+'"></a><a href="#" class="'+this.strip_stops(this.options.right_arrow_class)+'"></a></div>'),this.modal_arrows=this.lightbox_container.find("div.ekko-lightbox-nav-overlay").first(),this.lightbox_container.find("a"+this.strip_spaces(this.options.left_arrow_class)).on("click",function(t){return t.preventDefault(),i.navigate_left()}),this.lightbox_container.find("a"+this.strip_spaces(this.options.right_arrow_class)).on("click",function(t){return t.preventDefault(),i.navigate_right()}))),this.options.type?"image"===this.options.type?this.preloadImage(this.options.remote,!0):"youtube"===this.options.type&&(e=this.getYoutubeId(this.options.remote))?this.showYoutubeVideo(e):"vimeo"===this.options.type?this.showVimeoVideo(this.options.remote):"instagram"===this.options.type?this.showInstagramVideo(this.options.remote):"url"===this.options.type?this.loadRemoteContent(this.options.remote):"video"===this.options.type?this.showVideoIframe(this.options.remote):this.error('Could not detect remote target type. Force the type using data-type="image|youtube|vimeo|instagram|url|video"'):this.detectRemoteType(this.options.remote)):this.error("No remote target given")},strip_stops:function(t){return t.replace(/\./g,"")},strip_spaces:function(t){return t.replace(/\s/g,"")},isImage:function(t){return t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSwf:function(t){return t.match(/\.(swf)((\?|#).*)?$/i)},getYoutubeId:function(t){var e;return e=t.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/),!(!e||11!==e[2].length)&&e[2]},getVimeoId:function(t){return t.indexOf("vimeo")>0&&t},getInstagramId:function(t){return t.indexOf("instagram")>0&&t},navigate:function(t){if(t=t||window.event,39===t.keyCode||37===t.keyCode){if(39===t.keyCode)return this.navigate_right();if(37===t.keyCode)return this.navigate_left()}},navigateTo:function(e){var i,n;return e<0||e>this.gallery_items.length-1?this:(this.showLoading(),this.gallery_index=e,this.$element=t(this.gallery_items.get(this.gallery_index)),this.updateTitleAndFooter(),n=this.$element.attr("data-remote")||this.$element.attr("href"),this.detectRemoteType(n,this.$element.attr("data-type")||!1),this.gallery_index+1<this.gallery_items.length&&(i=t(this.gallery_items.get(this.gallery_index+1),!1),n=i.attr("data-remote")||i.attr("href"),"image"===i.attr("data-type")||this.isImage(n))?this.preloadImage(n,!1):void 0)},navigate_left:function(){if(1!==this.gallery_items.length)return 0===this.gallery_index?this.gallery_index=this.gallery_items.length-1:this.gallery_index--,this.options.onNavigate.call(this,"left",this.gallery_index),this.navigateTo(this.gallery_index)},navigate_right:function(){if(1!==this.gallery_items.length)return this.gallery_index===this.gallery_items.length-1?this.gallery_index=0:this.gallery_index++,this.options.onNavigate.call(this,"right",this.gallery_index),this.navigateTo(this.gallery_index)},detectRemoteType:function(t,e){var i;return e=e||!1,"image"===e||this.isImage(t)?(this.options.type="image",this.preloadImage(t,!0)):"youtube"===e||(i=this.getYoutubeId(t))?(this.options.type="youtube",this.showYoutubeVideo(i)):"vimeo"===e||(i=this.getVimeoId(t))?(this.options.type="vimeo",this.showVimeoVideo(i)):"instagram"===e||(i=this.getInstagramId(t))?(this.options.type="instagram",this.showInstagramVideo(i)):"video"===e?(this.options.type="video",this.showVideoIframe(i)):(this.options.type="url",this.loadRemoteContent(t))},updateTitleAndFooter:function(){var t,e,i,n;
13return i=this.modal_content.find(".modal-header"),e=this.modal_content.find(".modal-footer"),n=this.$element.data("title")||"",t=this.$element.data("footer")||"",n||this.options.always_show_close?i.css("display","").find(".modal-title").html(n||"&nbsp;"):i.css("display","none"),t?e.css("display","").html(t):e.css("display","none"),this},showLoading:function(){return this.lightbox_body.html('<div class="modal-loading">'+this.options.loadingMessage+"</div>"),this},showYoutubeVideo:function(t){var e,i;return i=this.checkDimensions(this.$element.data("width")||560),e=i/(560/315),this.showVideoIframe("//www.youtube.com/embed/"+t+"?badge=0&autoplay=1&html5=1",i,e)},showVimeoVideo:function(t){var e,i;return i=this.checkDimensions(this.$element.data("width")||560),e=i/(500/281),this.showVideoIframe(t+"?autoplay=1",i,e)},showInstagramVideo:function(t){var e,i;if(i=this.checkDimensions(this.$element.data("width")||612),this.resize(i),e=i+80,this.lightbox_body.html('<iframe width="'+i+'" height="'+e+'" src="'+this.addTrailingSlash(t)+'embed/" frameborder="0" allowfullscreen></iframe>'),this.options.onContentLoaded.call(this),this.modal_arrows)return this.modal_arrows.css("display","none")},showVideoIframe:function(t,e,i){return i=i||e,this.resize(e),this.lightbox_body.html('<div class="embed-responsive embed-responsive-16by9"><iframe width="'+e+'" height="'+i+'" src="'+t+'" frameborder="0" allowfullscreen class="embed-responsive-item"></iframe></div>'),this.options.onContentLoaded.call(this),this.modal_arrows&&this.modal_arrows.css("display","none"),this},loadRemoteContent:function(e){var i,n,o=this;return n=this.$element.data("width")||560,this.resize(n),i=this.$element.data("disableExternalCheck")||!1,i||this.isExternal(e)?(this.lightbox_body.html('<iframe width="'+n+'" height="'+n+'" src="'+e+'" frameborder="0" allowfullscreen></iframe>'),this.options.onContentLoaded.call(this)):this.lightbox_body.load(e,t.proxy(function(){return o.$element.trigger("loaded.bs.modal")})),this.modal_arrows&&this.modal_arrows.css("display","none"),this},isExternal:function(t){var e;return e=t.match(/^([^:\/?#]+:)?(?:\/\/([^\/?#]*))?([^?#]+)?(\?[^#]*)?(#.*)?/),"string"==typeof e[1]&&e[1].length>0&&e[1].toLowerCase()!==location.protocol||"string"==typeof e[2]&&e[2].length>0&&e[2].replace(new RegExp(":("+{"http:":80,"https:":443}[location.protocol]+")?$"),"")!==location.host},error:function(t){return this.lightbox_body.html(t),this},preloadImage:function(e,i){var n,o=this;return n=new Image,null!=i&&i!==!0||(n.onload=function(){var e;return e=t("<img />"),e.attr("src",n.src),e.addClass("img-responsive"),o.lightbox_body.html(e),o.modal_arrows&&o.modal_arrows.css("display","block"),e.load(function(){return o.resize(n.width),o.options.onContentLoaded.call(o)})},n.onerror=function(){return o.error("Failed to load image: "+e)}),n.src=e,n},resize:function(e){var i;return i=e+this.border.left+this.padding.left+this.padding.right+this.border.right,this.modal_dialog.css("width","auto").css("max-width",i),this.lightbox_container.find("a").css("line-height",function(){return t(this).parent().height()+"px"}),this},checkDimensions:function(t){var e,i;return i=t+this.border.left+this.padding.left+this.padding.right+this.border.right,e=document.body.clientWidth,i>e&&(t=this.modal_body.width()),t},close:function(){return this.modal.modal("hide")},addTrailingSlash:function(t){return"/"!==t.substr(-1)&&(t+="/"),t}},t.fn.ekkoLightbox=function(i){return this.each(function(){var n;return n=t(this),i=t.extend({remote:n.attr("data-remote")||n.attr("href"),gallery_parent_selector:n.attr("data-parent"),type:n.attr("data-type")},i,n.data()),new e(this,i),this})},t.fn.ekkoLightbox.defaults={gallery_parent_selector:"document.body",left_arrow_class:".glyphicon .glyphicon-chevron-left",right_arrow_class:".glyphicon .glyphicon-chevron-right",directional_arrows:!0,type:null,always_show_close:!0,loadingMessage:"Loading...",onShow:function(){},onShown:function(){},onHide:function(){},onHidden:function(){},onNavigate:function(){},onContentLoaded:function(){}}}.call(this),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports&&"object"==typeof module?module.exports=t:t(jQuery)}(function(t,e){"use strict";function i(e,i,n,o){for(var s=[],r=0;r<e.length;r++){var a=e[r];if(a){var l=tinycolor(a),c=l.toHsl().l<.5?"sp-thumb-el sp-thumb-dark":"sp-thumb-el sp-thumb-light";c+=tinycolor.equals(i,a)?" sp-thumb-active":"";var h=l.toString(o.preferredFormat||"rgb"),d=m?"background-color:"+l.toRgbString():"filter:"+l.toFilter();s.push('<span title="'+h+'" data-color="'+l.toRgbString()+'" class="'+c+'"><span class="sp-thumb-inner" style="'+d+';" /></span>')}else{var u="sp-clear-display";s.push(t("<div />").append(t('<span data-color="" style="background-color:transparent;" class="'+u+'"></span>').attr("title",o.noColorSelectedText)).html())}}return"<div class='sp-cf "+n+"'>"+s.join("")+"</div>"}function n(){for(var t=0;t<f.length;t++)f[t]&&f[t].hide()}function o(e,i){var n=t.extend({},p,e);return n.callbacks={move:c(n.move,i),change:c(n.change,i),show:c(n.show,i),hide:c(n.hide,i),beforeShow:c(n.beforeShow,i)},n}function s(s,a){function c(){if(q.showPaletteOnly&&(q.showPalette=!0),Ht.text(q.showPaletteOnly?q.togglePaletteMoreText:q.togglePaletteLessText),q.palette){pt=q.palette.slice(0),ft=t.isArray(pt[0])?pt:[pt],gt={};for(var e=0;e<ft.length;e++)for(var i=0;i<ft[e].length;i++){var n=tinycolor(ft[e][i]).toRgbString();gt[n]=!0}}Tt.toggleClass("sp-flat",G),Tt.toggleClass("sp-input-disabled",!q.showInput),Tt.toggleClass("sp-alpha-enabled",q.showAlpha),Tt.toggleClass("sp-clear-enabled",Qt),Tt.toggleClass("sp-buttons-disabled",!q.showButtons),Tt.toggleClass("sp-palette-buttons-disabled",!q.togglePaletteOnly),Tt.toggleClass("sp-palette-disabled",!q.showPalette),Tt.toggleClass("sp-palette-only",q.showPaletteOnly),Tt.toggleClass("sp-initial-disabled",!q.showInitial),Tt.addClass(q.className).addClass(q.containerClassName),B()}function p(){function e(e){return e.data&&e.data.ignore?($(t(e.target).closest(".sp-thumb-el").data("c
13olor")),R()):($(t(e.target).closest(".sp-thumb-el").data("color")),R(),N(!0),q.hideAfterPaletteSelect&&D()),!1}if(g&&Tt.find("*:not(input)").attr("unselectable","on"),c(),zt&&kt.after(jt).hide(),Qt||Rt.hide(),G)kt.after(Tt).hide();else{var i="parent"===q.appendTo?kt.parent():t(q.appendTo);1!==i.length&&(i=t("body")),i.append(Tt)}b(),Wt.bind("click.spectrum touchstart.spectrum",function(e){wt||A(),e.stopPropagation(),t(e.target).is("input")||e.preventDefault()}),(kt.is(":disabled")||q.disabled===!0)&&Y(),Tt.click(l),Ot.change(_),Ot.bind("paste",function(){setTimeout(_,1)}),Ot.keydown(function(t){13==t.keyCode&&_()}),It.text(q.cancelText),It.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),O(),D()}),Rt.attr("title",q.clearText),Rt.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),Kt=!0,R(),G&&N(!0)}),Ft.text(q.chooseText),Ft.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),g&&Ot.is(":focus")&&Ot.trigger("change"),I()&&(N(!0),D())}),Ht.text(q.showPaletteOnly?q.togglePaletteMoreText:q.togglePaletteLessText),Ht.bind("click.spectrum",function(t){t.stopPropagation(),t.preventDefault(),q.showPaletteOnly=!q.showPaletteOnly,q.showPaletteOnly||G||Tt.css("left","-="+(Ct.outerWidth(!0)+5)),c()}),h(Mt,function(t,e,i){ut=t/rt,Kt=!1,i.shiftKey&&(ut=Math.round(10*ut)/10),R()},C,S),h(At,function(t,e){ct=parseFloat(e/ot),Kt=!1,q.showAlpha||(ut=1),R()},C,S),h(St,function(t,e,i){if(i.shiftKey){if(!bt){var n=ht*et,o=it-dt*it,s=Math.abs(t-n)>Math.abs(e-o);bt=s?"x":"y"}}else bt=null;var r=!bt||"x"===bt,a=!bt||"y"===bt;r&&(ht=parseFloat(t/et)),a&&(dt=parseFloat((it-e)/it)),Kt=!1,q.showAlpha||(ut=1),R()},C,S),Ut?($(Ut),F(),Vt=Gt||tinycolor(Ut).format,x(Ut)):F(),G&&E();var n=g?"mousedown.spectrum":"click.spectrum touchstart.spectrum";$t.delegate(".sp-thumb-el",n,e),Lt.delegate(".sp-thumb-el:nth-child(1)",n,{ignore:!0},e)}function b(){if(X&&window.localStorage){try{var e=window.localStorage[X].split(",#");e.length>1&&(delete window.localStorage[X],t.each(e,function(t,e){x(e)}))}catch(i){}try{mt=window.localStorage[X].split(";")}catch(i){}}}function x(e){if(V){var i=tinycolor(e).toRgbString();if(!gt[i]&&t.inArray(i,mt)===-1)for(mt.push(i);mt.length>vt;)mt.shift();if(X&&window.localStorage)try{window.localStorage[X]=mt.join(";")}catch(n){}}}function k(){var t=[];if(q.showPalette)for(var e=0;e<mt.length;e++){var i=tinycolor(mt[e]).toRgbString();gt[i]||t.push(mt[e])}return t.reverse().slice(0,q.maxSelectionSize)}function w(){var e=L(),n=t.map(ft,function(t,n){return i(t,e,"sp-palette-row sp-palette-row-"+n,q)});b(),mt&&n.push(i(k(),e,"sp-palette-row sp-palette-row-selection",q)),$t.html(n.join(""))}function T(){if(q.showInitial){var t=qt,e=L();Lt.html(i([t,e],e,"sp-palette-row-initial",q))}}function C(){(it<=0||et<=0||ot<=0)&&B(),tt=!0,Tt.addClass(yt),bt=null,kt.trigger("dragstart.spectrum",[L()])}function S(){tt=!1,Tt.removeClass(yt),kt.trigger("dragstop.spectrum",[L()])}function _(){var t=Ot.val();if(null!==t&&""!==t||!Qt){var e=tinycolor(t);e.isValid()?($(e),N(!0)):Ot.addClass("sp-validation-error")}else $(null),N(!0)}function A(){J?D():E()}function E(){var e=t.Event("beforeShow.spectrum");return J?void B():(kt.trigger(e,[L()]),void(Q.beforeShow(L())===!1||e.isDefaultPrevented()||(n(),J=!0,t(xt).bind("keydown.spectrum",P),t(xt).bind("click.spectrum",M),t(window).bind("resize.spectrum",Z),jt.addClass("sp-active"),Tt.removeClass("sp-hidden"),B(),F(),qt=L(),T(),Q.show(qt),kt.trigger("show.spectrum",[qt]))))}function P(t){27===t.keyCode&&D()}function M(t){2!=t.button&&(tt||(Xt?N(!0):O(),D()))}function D(){J&&!G&&(J=!1,t(xt).unbind("keydown.spectrum",P),t(xt).unbind("click.spectrum",M),t(window).unbind("resize.spectrum",Z),jt.removeClass("sp-active"),Tt.addClass("sp-hidden"),Q.hide(L()),kt.trigger("hide.spectrum",[L()]))}function O(){$(qt,!0)}function $(t,e){if(tinycolor.equals(t,L()))return void F();var i,n;!t&&Qt?Kt=!0:(Kt=!1,i=tinycolor(t),n=i.toHsv(),ct=n.h%360/360,ht=n.s,dt=n.v,ut=n.a),F(),i&&i.isValid()&&!e&&(Vt=Gt||i.getFormat())}function L(t){return t=t||{},Qt&&Kt?null:tinycolor.fromRatio({h:ct,s:ht,v:dt,a:Math.round(100*ut)/100},{format:t.format||Vt})}function I(){return!Ot.hasClass("sp-validation-error")}function R(){F(),Q.move(L()),kt.trigger("move.spectrum",[L()])}function F(){Ot.removeClass("sp-validation-error"),H();var t=tinycolor.fromRatio({h:ct,s:1,v:1});St.css("background-color",t.toHexString());var e=Vt;ut<1&&(0!==ut||"name"!==e)&&("hex"!==e&&"hex3"!==e&&"hex6"!==e&&"name"!==e||(e="rgb"));var i=L({format:e}),n="";if(Yt.removeClass("sp-clear-display"),Yt.css("background-color","transparent"),!i&&Qt)Yt.addClass("sp-clear-display");else{var o=i.toHexString(),s=i.toRgbString();if(m||1===i.alpha?Yt.css("background-color",s):(Yt.css("background-color","transparent"),Yt.css("filter",i.toFilter())),q.showAlpha){var r=i.toRgb();r.a=0;var a=tinycolor(r).toRgbString(),l="linear-gradient(left, "+a+", "+o+")";g?Pt.css("filter",tinycolor(a).toFilter({gradientType:1},o)):(Pt.css("background","-webkit-"+l),Pt.css("background","-moz-"+l),Pt.css("background","-ms-"+l),Pt.css("background","linear-gradient(to right, "+a+", "+o+")"))}n=i.toString(e)}q.showInput&&Ot.val(n),q.showPalette&&w(),T()}function H(){var t=ht,e=dt;if(Qt&&Kt)Dt.hide(),Et.hide(),_t.hide();else{Dt.show(),Et.show(),_t.show();var i=t*et,n=it-e*it;i=Math.max(-nt,Math.min(et-nt,i-nt)),n=Math.max(-nt,Math.min(it-nt,n-nt)),_t.css({top:n+"px",left:i+"px"});var o=ut*rt;Dt.css({left:o-at/2+"px"});var s=ct*ot;Et.css({top:s-lt+"px"})}}function N(t){var e=L(),i="",n=!tinycolor.equals(e,qt);e&&(i=e.toString(Vt),x(e)),Nt&&kt.val(i),t&&n&&(Q.change(e),kt.trigger("change",[e]))}function B(){et=St.width(),it=St.height(),nt=_t.height(),st=At.width(),ot=At.height(),lt=Et.height(),rt=Mt.width(),at=Dt.width(),G||(Tt.css("position","absolute"),q.offset?Tt.offset(q.offset):Tt.offset(r(Tt,Wt))),H(),q.showPalette&&w(),kt.trigger("reflow.spectrum")}function z(){kt.show(),Wt.unbind("click.spectrum touchstart.spectrum"),Tt.remove(),jt.remove(),f[Zt.id]=null}function j(i,n){return i===e?t.extend({},q):n===e?q[i]:(q[i]=n,void c())}function W(){wt=!1,kt.attr("disabled",!1),Wt.removeClass("sp-disabled")}function Y(){D(),wt=!0,kt.attr("disabled",!0),Wt.addClass("sp-disabled")}function U(t){q.offset=t,B()}var q=o(a,s),G=q.flat,V=q.showSelectionPalette,X=q.localStorageKey,K=q.theme,Q=q.callbacks,Z=d(B,10),J=!1,tt=!1,et=0,it=0,nt=0,ot=0,st=0,rt=0,at=0,lt=0,ct=0,ht=0,dt=0,ut=1,pt=[],ft=[],gt={},mt=q.selectionPalette.slice(0),vt=q.maxSelectionSize,yt="sp-dragging",bt=null,xt=s.ownerDocument,kt=(xt.body,t(s)),wt=!1,Tt=t(y,xt).addClass(K),Ct=Tt.find(".sp-picker-container"),St=Tt.find(".sp-color"),_t=Tt.find(".sp-dragger"),At=Tt.find(".sp-hue"),Et=Tt.find(".sp-slider"),Pt
13=Tt.find(".sp-alpha-inner"),Mt=Tt.find(".sp-alpha"),Dt=Tt.find(".sp-alpha-handle"),Ot=Tt.find(".sp-input"),$t=Tt.find(".sp-palette"),Lt=Tt.find(".sp-initial"),It=Tt.find(".sp-cancel"),Rt=Tt.find(".sp-clear"),Ft=Tt.find(".sp-choose"),Ht=Tt.find(".sp-palette-toggle"),Nt=kt.is("input"),Bt=Nt&&"color"===kt.attr("type")&&u(),zt=Nt&&!G,jt=zt?t(v).addClass(K).addClass(q.className).addClass(q.replacerClassName):t([]),Wt=zt?jt:kt,Yt=jt.find(".sp-preview-inner"),Ut=q.color||Nt&&kt.val(),qt=!1,Gt=q.preferredFormat,Vt=Gt,Xt=!q.showButtons||q.clickoutFiresChange,Kt=!Ut,Qt=q.allowEmpty&&!Bt;p();var Zt={show:E,hide:D,toggle:A,reflow:B,option:j,enable:W,disable:Y,offset:U,set:function(t){$(t),N()},get:L,destroy:z,container:Tt};return Zt.id=f.push(Zt)-1,Zt}function r(e,i){var n=0,o=e.outerWidth(),s=e.outerHeight(),r=i.outerHeight(),a=e[0].ownerDocument,l=a.documentElement,c=l.clientWidth+t(a).scrollLeft(),h=l.clientHeight+t(a).scrollTop(),d=i.offset();return d.top+=r,d.left-=Math.min(d.left,d.left+o>c&&c>o?Math.abs(d.left+o-c):0),d.top-=Math.min(d.top,d.top+s>h&&h>s?Math.abs(s+r-n):n),d}function a(){}function l(t){t.stopPropagation()}function c(t,e){var i=Array.prototype.slice,n=i.call(arguments,2);return function(){return t.apply(e,n.concat(i.call(arguments)))}}function h(e,i,n,o){function s(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),t.returnValue=!1}function r(t){if(h){if(g&&c.documentMode<9&&!t.button)return l();var n=t.originalEvent&&t.originalEvent.touches&&t.originalEvent.touches[0],o=n&&n.pageX||t.pageX,r=n&&n.pageY||t.pageY,a=Math.max(0,Math.min(o-d.left,p)),m=Math.max(0,Math.min(r-d.top,u));f&&s(t),i.apply(e,[a,m,t])}}function a(i){var o=i.which?3==i.which:2==i.button;o||h||n.apply(e,arguments)!==!1&&(h=!0,u=t(e).height(),p=t(e).width(),d=t(e).offset(),t(c).bind(m),t(c.body).addClass("sp-dragging"),r(i),s(i))}function l(){h&&(t(c).unbind(m),t(c.body).removeClass("sp-dragging"),setTimeout(function(){o.apply(e,arguments)},0)),h=!1}i=i||function(){},n=n||function(){},o=o||function(){};var c=document,h=!1,d={},u=0,p=0,f="ontouchstart"in window,m={};m.selectstart=s,m.dragstart=s,m["touchmove mousemove"]=r,m["touchend mouseup"]=l,t(e).bind("touchstart mousedown",a)}function d(t,e,i){var n;return function(){var o=this,s=arguments,r=function(){n=null,t.apply(o,s)};i&&clearTimeout(n),!i&&n||(n=setTimeout(r,e))}}function u(){return t.fn.spectrum.inputTypeColorSupport()}var p={beforeShow:a,move:a,change:a,show:a,hide:a,color:!1,flat:!1,showInput:!1,allowEmpty:!1,showButtons:!0,clickoutFiresChange:!0,showInitial:!1,showPalette:!1,showPaletteOnly:!1,hideAfterPaletteSelect:!1,togglePaletteOnly:!1,showSelectionPalette:!0,localStorageKey:!1,appendTo:"body",maxSelectionSize:7,cancelText:"cancel",chooseText:"choose",togglePaletteMoreText:"more",togglePaletteLessText:"less",clearText:"Clear Color Selection",noColorSelectedText:"No Color Selected",preferredFormat:!1,className:"",containerClassName:"",replacerClassName:"",showAlpha:!1,theme:"sp-light",palette:[["#ffffff","#000000","#ff0000","#ff8000","#ffff00","#008000","#0000ff","#4b0082","#9400d3"]],selectionPalette:[],disabled:!1,
14offset:null},f=[],g=!!/msie/i.exec(window.navigator.userAgent),m=function(){function t(t,e){return!!~(""+t).indexOf(e)}var e=document.createElement("div"),i=e.style;return i.cssText="background-color:rgba(0,0,0,.5)",t(i.backgroundColor,"rgba")||t(i.backgroundColor,"hsla")}(),v=["<div class='sp-replacer'>","<div class='sp-preview'><div class='sp-preview-inner'></div></div>","<div class='sp-dd'>&#9660;</div>","</div>"].join(""),y=function(){var t="";if(g)for(var e=1;e<=6;e++)t+="<div class='sp-"+e+"'></div>";return["<div class='sp-container sp-hidden'>","<div class='sp-palette-container'>","<div class='sp-palette sp-thumb sp-cf'></div>","<div class='sp-palette-button-container sp-cf'>","<button type='button' class='sp-palette-toggle'></button>","</div>","</div>","<div class='sp-picker-container'>","<div class='sp-top sp-cf'>","<div class='sp-fill'></div>","<div class='sp-top-inner'>","<div class='sp-color'>","<div class='sp-sat'>","<div class='sp-val'>","<div class='sp-dragger'></div>","</div>","</div>","</div>","<div class='sp-clear sp-clear-display'>","</div>","<div class='sp-hue'>","<div class='sp-slider'></div>",t,"</div>","</div>","<div class='sp-alpha'><div class='sp-alpha-inner'><div class='sp-alpha-handle'></div></div></div>","</div>","<div class='sp-input-container sp-cf'>","<input class='sp-input' type='text' spellcheck='false'  />","</div>","<div class='sp-initial sp-thumb sp-cf'></div>","<div class='sp-button-container sp-cf'>","<a class='sp-cancel' href='#'></a>","<button type='button' class='sp-choose'></button>","</div>","</div>","</div>"].join("")}(),b="spectrum.id";t.fn.spectrum=function(e,i){if("string"==typeof e){var n=this,o=Array.prototype.slice.call(arguments,1
vendor: 4,547 bytes, line 14
14);return this.each(function(){var i=f[t(this).data(b)];if(i){var s=i[e];if(!s)throw new Error("Spectrum: no such method: '"+e+"'");"get"==e?n=i.get():"container"==e?n=i.container:"option"==e?n=i.option.apply(i,o):"destroy"==e?(i.destroy(),t(this).removeData(b)):s.apply(i,o)}}),n}return this.spectrum("destroy").each(function(){var i=t.extend({},e,t(this).data()),n=s(this,i);t(this).data(b,n.id)})},t.fn.spectrum.load=!0,t.fn.spectrum.loadOpts={},t.fn.spectrum.draggable=h,t.fn.spectrum.defaults=p,t.fn.spectrum.inputTypeColorSupport=function x(){if("undefined"==typeof x._cachedResult){var e=t("<input type='color'/>")[0];x._cachedResult="color"===e.type&&""!==e.value}return x._cachedResult},t.spectrum={},t.spectrum.localization={},t.spectrum.palettes={},t.fn.spectrum.processNativeColorInputs=function(){var e=t("input[type=color]");e.length&&!u()&&e.spectrum({preferredFormat:"hex6"})},function(){function t(t){var i={r:0,g:0,b:0},o=1,r=!1,a=!1;return"string"==typeof t&&(t=O(t)),"object"==typeof t&&(t.hasOwnProperty("r")&&t.hasOwnProperty("g")&&t.hasOwnProperty("b")?(i=e(t.r,t.g,t.b),r=!0,a="%"===String(t.r).substr(-1)?"prgb":"rgb"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("v")?(t.s=P(t.s),t.v=P(t.v),i=s(t.h,t.s,t.v),r=!0,a="hsv"):t.hasOwnProperty("h")&&t.hasOwnProperty("s")&&t.hasOwnProperty("l")&&(t.s=P(t.s),t.l=P(t.l),i=n(t.h,t.s,t.l),r=!0,a="hsl"),t.hasOwnProperty("a")&&(o=t.a)),o=w(o),{ok:r,format:t.format||a,r:H(255,N(i.r,0)),g:H(255,N(i.g,0)),b:H(255,N(i.b,0)),a:o}}function e(t,e,i){return{r:255*T(t,255),g:255*T(e,255),b:255*T(i,255)}}function i(t,e,i){t=T(t,255),e=T(e,255),i=T(i,255);var n,o,s=N(t,e,i),r=H(t,e,i),a=(s+r)/2;if(s==r)n=o=0;else{var l=s-r;switch(o=a>.5?l/(2-s-r):l/(s+r),s){case t:n=(e-i)/l+(e<i?6:0);break;case e:n=(i-t)/l+2;break;case i:n=(t-e)/l+4}n/=6}return{h:n,s:o,l:a}}function n(t,e,i){function n(t,e,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+(e-t)*(2/3-i)*6:t}var o,s,r;if(t=T(t,360),e=T(e,100),i=T(i,100),0===e)o=s=r=i;else{var a=i<.5?i*(1+e):i+e-i*e,l=2*i-a;o=n(l,a,t+1/3),s=n(l,a,t),r=n(l,a,t-1/3)}return{r:255*o,g:255*s,b:255*r}}function o(t,e,i){t=T(t,255),e=T(e,255),i=T(i,255);var n,o,s=N(t,e,i),r=H(t,e,i),a=s,l=s-r;if(o=0===s?0:l/s,s==r)n=0;else{switch(s){case t:n=(e-i)/l+(e<i?6:0);break;case e:n=(i-t)/l+2;break;case i:n=(t-e)/l+4}n/=6}return{h:n,s:o,v:a}}function s(t,e,i){t=6*T(t,360),e=T(e,100),i=T(i,100);var n=R.floor(t),o=t-n,s=i*(1-e),r=i*(1-o*e),a=i*(1-(1-o)*e),l=n%6,c=[i,r,s,s,a,i][l],h=[a,i,i,r,s,s][l],d=[s,s,a,i,i,r][l];return{r:255*c,g:255*h,b:255*d}}function r(t,e,i,n){var o=[E(F(t).toString(16)),E(F(e).toString(16)),E(F(i).toString(16))];return n&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function a(t,e,i,n){var o=[E(M(n)),E(F(t).toString(16)),E(F(e).toString(16)),E(F(i).toString(16))];return o.join("")}function l(t,e){e=0===e?0:e||10;var i=z(t).toHsl();return i.s-=e/100,i.s=C(i.s),z(i)}function c(t,e){e=0===e?0:e||10;var i=z(t).toHsl();return i.s+=e/100,i.s=C(i.s),z(i)}function h(t){return z(t).desaturate(100)}function d(t,e){e=0===e?0:e||10;var i=z(t).toHsl();return i.l+=e/100,i.l=C(i.l),z(i)}function u(t,e){e=0===e?0:e||10;var i=z(t).toRgb();return i.r=N(0,H(255,i.r-F(255*-(e/100)))),i.g=N(0,H(255,i.g-F(255*-(e/100)))),i.b=N(0,H(255,i.b-F(255*-(e/100)))),z(i)}function p(t,e){e=0===e?0:e||10;var i=z(t).toHsl();return i.l-=e/100,i.l=C(i.l),z(i)}function f(t,e){var i=z(t).toHsl(),n=(F(i.h)+e)%360;return i.h=n<0?360+n:n,z(i)}function g(t){var e=z(t).toHsl();return e.h=(e.h+180)%360,z(e)}function m(t){var e=z(t).toHsl(),i=e.h;return[z(t),z({h:(i+120)%360,s:e.s,l:e.l}),z({h:(i+240)%360,s:e.s,l:e.l})]}function v(t){var e=z(t).toHsl(),i=e.h;return[z(t),z({h:(i+90)%360,s:e.s,l:e.l}),z({h:(i+180)%360,s:e.s,l:e.l}),z({h:(i+270)%360,s:e.s,l:e.l})]}function y(t){var e=z(t).toHsl(),i=e.h;return[z(t),z({h:(i+72)%360,s:e.s,l:e.l}),z({h:(i+216)%360,s:e.s,l:e.l})]}function b(t,e,i){e=e||6,i=i||30;var n=z(t).toHsl(),o=360/i,s=[z(t)];for(n.h=(n.h-(o*e>>1)+720)%360;--e;)n.h=(n.h+o)%360,s.push(z(n));return s}function x(t,e){e=e||6;for(var i=z(t).toHsv(),n=i.h,o=i.s,s=i.v,r=[],a=1/e;e--;)r.push(z({h:n,s:o,v:s})),s=(s+a)%1;return r}function k(t){var e={};for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e}function w(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function T(t,e){_(t)&&(t="100%");var i=A(t);return t=H(e,N(0,parseFloat(t))),i&&(t=parseInt(t*e,10)/100),R.abs(t-e)<1e-6?1:t
vendor: 5,668 bytes, line 14
14%e/parseFloat(e)}function C(t){return H(1,N(0,t))}function S(t){return parseInt(t,16)}function _(t){return"string"==typeof t&&t.indexOf(".")!=-1&&1===parseFloat(t)}function A(t){return"string"==typeof t&&t.indexOf("%")!=-1}function E(t){return 1==t.length?"0"+t:""+t}function P(t){return t<=1&&(t=100*t+"%"),t}function M(t){return Math.round(255*parseFloat(t)).toString(16)}function D(t){return S(t)/255}function O(t){t=t.replace($,"").replace(L,"").toLowerCase();var e=!1;if(j[t])t=j[t],e=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};var i;return(i=Y.rgb.exec(t))?{r:i[1],g:i[2],b:i[3]}:(i=Y.rgba.exec(t))?{r:i[1],g:i[2],b:i[3],a:i[4]}:(i=Y.hsl.exec(t))?{h:i[1],s:i[2],l:i[3]}:(i=Y.hsla.exec(t))?{h:i[1],s:i[2],l:i[3],a:i[4]}:(i=Y.hsv.exec(t))?{h:i[1],s:i[2],v:i[3]}:(i=Y.hsva.exec(t))?{h:i[1],s:i[2],v:i[3],a:i[4]}:(i=Y.hex8.exec(t))?{a:D(i[1]),r:S(i[2]),g:S(i[3]),b:S(i[4]),format:e?"name":"hex8"}:(i=Y.hex6.exec(t))?{r:S(i[1]),g:S(i[2]),b:S(i[3]),format:e?"name":"hex"}:!!(i=Y.hex3.exec(t))&&{r:S(i[1]+""+i[1]),g:S(i[2]+""+i[2]),b:S(i[3]+""+i[3]),format:e?"name":"hex"}}var $=/^[\s,#]+/,L=/\s+$/,I=0,R=Math,F=R.round,H=R.min,N=R.max,B=R.random,z=function(e,i){if(e=e?e:"",i=i||{},e instanceof z)return e;if(!(this instanceof z))return new z(e,i);var n=t(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=F(100*this._a)/100,this._format=i.format||n.format,this._gradientType=i.gradientType,this._r<1&&(this._r=F(this._r)),this._g<1&&(this._g=F(this._g)),this._b<1&&(this._b=F(this._b)),this._ok=n.ok,this._tc_id=I++};z.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},setAlpha:function(t){return this._a=w(t),this._roundA=F(100*this._a)/100,this},toHsv:function(){var t=o(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=o(this._r,this._g,this._b),e=F(360*t.h),i=F(100*t.s),n=F(100*t.v);return 1==this._a?"hsv("+e+", "+i+"%, "+n+"%)":"hsva("+e+", "+i+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=i(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=i(this._r,this._g,this._b),e=F(360*t.h),n=F(100*t.s),o=F(100*t.l);return 1==this._a?"hsl("+e+", "+n+"%, "+o+"%)":"hsla("+e+", "+n+"%, "+o+"%, "+this._roundA+")"},toHex:function(t){return r(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(){return a(this._r,this._g,this._b,this._a)},toHex8String:function(){return"#"+this.toHex8()},toRgb:function(){return{r:F(this._r),g:F(this._g),b:F(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+F(this._r)+", "+F(this._g)+", "+F(this._b)+")":"rgba("+F(this._r)+", "+F(this._g)+", "+F(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:F(100*T(this._r,255))+"%",g:F(100*T(this._g,255))+"%",b:F(100*T(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+F(100*T(this._r,255))+"%, "+F(100*T(this._g,255))+"%, "+F(100*T(this._b,255))+"%)":"rgba("+F(100*T(this._r,255))+"%, "+F(100*T(this._g,255))+"%, "+F(100*T(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(W[r(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+a(this._r,this._g,this._b,this._a),i=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var o=z(t);i=o.toHex8String()}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+i+")"},toString:function(t){var e=!!t;t=t||this._format;var i=!1,n=this._a<1&&this._a>=0,o=!e&&n&&("hex"===t||"hex6"===t||"hex3"===t||"name"===t);return o?"name"===t&&0===this._a?this.toName():this.toRgbString():("rgb"===t&&(i=this.toRgbString()),"prgb"===t&&(i=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(i=this.toHexString()),"hex3"===t&&(i=this.toHexString(!0)),"hex8"===t&&(i=this.toHex8String()),"name"===t&&(i=this.toName()),"hsl"===t&&(i=this.toHslString()),"hsv"===t&&(i=this.toHsvString()),i||this.toHexString())},_applyModification:function(t,e){var i=t.apply(null,[this].concat([].slice.call(e)));return this._r=i._r,this._g=i._g,this._b=i._b,this.setAlpha(i._a),this},lighten:function(){return this._applyModification(d,arguments)},brighten:function(){return this._applyModification(u,arguments)},darken:function(){return this._applyModification(p,arguments)},desaturate:function(){return this._applyModification(l,arguments)},saturate:function(){return this._applyModification(c,arguments)},greyscale:function(){return this._applyModification(h,arguments)},spin:function(){return this._applyModification(f,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(b,arguments)},complement:function(){return this._applyCombination(g,arguments)},monochromatic:function(){return this._applyCombination(x,arguments)},splitcomplement:function(){return this._applyCombination(y,arguments)},triad:function(){return this._applyCombination(m,arguments)},tetrad:function(){return this._applyCombination(v,arguments)}},z.fromRatio=function(t,e){if("object"==typeof t){var i={};for(var n in t)t.hasOwnProperty(n)&&("a"===n?i[n]=t[n]:i[n]=P(t[n]));t=i}return z(t,e)},z.equals=function(t,e){return!(!t||!e)&&z(t).toRgbString()==z(e).toRgbString()},z.random=function(){return z.fromRatio({r:B(),g:B(),b:B()})}
14,z.mix=function(t,e,i){i=0===i?0:i||50;var n,o=z(t).toRgb(),s=z(e).toRgb(),r=i/100,a=2*r-1,l=s.a-o.a;n=a*l==-1?a:(a+l)/(1+a*l),n=(n+1)/2;var c=1-n,h={r:s.r*n+o.r*c,g:s.g*n+o.g*c,b:s.b*n+o.b*c,a:s.a*r+o.a*(1-r)};return z(h)},z.readability=function(t,e){var i=z(t),n=z(e),o=i.toRgb(),s=n.toRgb(),r=i.getBrightness(),a=n.getBrightness(),l=Math.max(o.r,s.r)-Math.min(o.r,s.r)+Math.max(o.g,s.g)-Math.min(o.g,s.g)+Math.max(o.b,s.b)-Math.min(o.b,s.b);return{brightness:Math.abs(r-a),color:l}},z.isReadable=function(t,e){var i=z.readability(t,e);return i.brightness>125&&i.color>500},z.mostReadable=function(t,e){for(var i=null,n=0,o=!1,s=0;s<e.length;s++){var r=z.readability(t,e[s]),a=r.brightness>125&&r.color>500,l=3*(r.brightness/125)+r.color/500;(a&&!o||a&&o&&l>n||!a&&!o&&l>n)&&(o=a,n=l,i=z(e[s]))}return i};var j=z.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee9
140",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},W=z.hexNames=k(j),Y=function(){var t="[-\\+]?\\d+%?",e="[-\\+]?\\d*\\.\\d+%?",i="(?:"+e+")|(?:"+t+")",n="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?",o="[\\s|\\(]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")[,|\\s]+("+i+")\\s*\\)?";return{rgb:new RegExp("rgb"+n),rgba:new RegExp("rgba"+o),hsl:new RegExp("hsl"+n),hsla:new RegExp("hsla"+o),hsv:new RegExp("hsv"+n),hsva:new RegExp("hsva"
14+o),hex3:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex8:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();window.tinycolor=z}(),t(function(){t.fn.spectrum.load&&t.fn.spectrum.processNativeColorInputs()})}),function(t){if("function"==typeof define&&define.amd)define(t);else if("object"==typeof exports)module.exports=t();else{var e=window.Cookies,i=window.Cookies=t();i.noConflict=function(){return window.Cookies=e,i}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}function e(i){function n(e,o,s){var r;if(arguments.length>1){if(s=t({path:"/"},n.defaults,s),"number"==typeof s.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*s.expires),s.expires=a}try{r=JSON.stringify(o),/^[\{\[]/.test(r)&&(o=r)}catch(l){}return o=encodeURIComponent(String(o)),o=o.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,s.expires&&"; expires="+s.expires.toUTCString(),s.path&&"; path="+s.path,s.domain&&"; domain="+s.domain,s.secure?"; secure":""].join("")}e||(r={});for(var c=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,d=0;d<c.length;d++){var u=c[d].split("="),p=u[0].replace(h,decodeURIComponent),f=u.slice(1).join("=");'"'===f.charAt(0)&&(f=f.slice(1,-1));try{if(f=i&&i(f,p)||f.replace(h,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(l){}if(e===p){r=f;break}e||(r[p]=f)}catch(l){}}return r}return n.get=n.set=n,n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(e,i){n(e,"",t(i,{expires:-1}))},n.withConverter=e,n}return e()}),function(){function t(){var t,e,i=arguments,n={},o=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?o(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=o(n,i[t]);return n}function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function n(t){return t&&"object"==typeof t}function o(t){return"[object Array]"===Object.prototype.toString.call(t)}function s(t){return"number"==typeof t}function r(t){return at.log(t)/at.LN10}function a(t){return at.pow(10,t)}function l(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}}function c(t){return t!==O&&null!==t}function h(t,e,o){var s,r;if(i(e))c(o)?t.setAttribute(e,o):t&&t.getAttribute&&(r=t.getAttribute(e));else if(c(e)&&n(e))for(s in e)t.setAttribute(s,e[s]);return r}function d(t){return o(t)?t:[t]}function u(t,e){xt&&!_t&&e&&e.opacity!==O&&(e.filter="alpha(opacity="+100*e.opacity+")"),Bt(t.style,e)}function p(t,e,i,n,o){return t=st.createElement(t),e&&Bt(t,e),o&&u(t,{padding:0,border:It,margin:0}),i&&u(t,i),n&&n.appendChild(t),t}function f(t,e){var i=function(){return O};return i.prototype=new t,Bt(i.prototype,e),i}function g(t,e){return Array((e||2)+1-String(t).length).join(0)+t}function m(t){return 6e4*(Y&&Y(t)||W||0)}function v(t,e){for(var i,n,o,s,r,a="{",l=!1,c=[];(a=t.indexOf(a))!==-1;){if(i=t.slice(0,a),l){for(n=i.split(":"),o=n.shift().split("."),r=o.length,i=e,s=0;s<r;s++)i=i[o[s]];n.length&&(n=n.join(":"),o=/\.([0-9])/,s=R.lang,r=void 0,/f$/.test(n)?(r=(r=n.match(o))?r[1]:-1,null!==i&&(i=ot.numberFormat(i,r,s.decimalPoint,n.indexOf(",")>-1?s.thousandsSep:""))):i=F(n,i))}c.push(i),t=t.slice(a+1),a=(l=!l)?"}":"{"}return c.push(t),c.join("")}function y(t){return at.pow(10,ct(at.log(t)/at.LN10))}function b(t,e,i,n,o){var s,r=t,i=zt(i,1);for(s=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],!(o&&r*i>=t||!o&&s<=(e[n]+(e[n+1]||e[n]))/2));n++);return r*=i}function x(t,e){var i,n,o=t.length;for(n=0;n<o;n++)t[n].ss_i=n;for(t.sort(function(t,n){return i=e(t,n),0===i?t.ss_i-n.ss_i:i}
14),n=0;n<o;n++)delete t[n].ss_i}function k(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i}function w(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i}function T(t,e){for(var i in t)t[i]&&t[i]!==e&&t[i].destroy&&t[i].destroy(),delete t[i]}function C(t){I||(I=p(Lt)),t&&I.appendChild(t),I.innerHTML=""}function S(t,e){var i="Highcharts error #"+t+": www.highcharts.com/errors/"+t;if(e)throw i;rt.console&&console.log(i)}function _(t){return parseFloat(t.toPrecision(14))}function A(t,e){H=zt(t,e.animation)}function E(){var t=R.global,e=t.useUTC,i=e?"getUTC":"get",n=e?"setUTC":"set";z=t.Date||window.Date,W=e&&t.timezoneOffset,Y=e&&t.getTimezoneOffset,j=function(t,i,n,o,s,r){var a;return e?(a=z.UTC.apply(0,arguments),a+=m(a)):a=new z(t,i,zt(n,1),zt(o,0),zt(s,0),zt(r,0)).getTime(),a},U=i+"Minutes",q=i+"Hours",G=i+"Day",V=i+"Date",X=i+"Month",K=i+"FullYear",Q=n+"Milliseconds",Z=n+"Seconds",J=n+"Minutes",tt=n+"Hours",et=n+"Date",it=n+"Month",nt=n+"FullYear"}function P(){}function M(t,e,i,n){this.axis=t,this.pos=e,this.type=i||"",this.isNew=!0,!i&&!n&&this.addLabel()}function D(t,e,i,n,o){var s=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e,this.x=n,this.total=null,this.points={},this.stack=o,this.alignOptions={align:e.align||(s?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(s?"middle":i?"bottom":"top"),y:zt(e.y,s?4:i?14:-6),x:zt(e.x,s?i?-6:6:0)},this.textAlign=e.textAlign||(s?i?"right":"left":"center")}
14var O,$,L,I,R,F,H,N,B,z,j,W,Y,U,q,G,V,X,K,Q,Z,J,tt,et,it,nt,ot,st=document,rt=window,at=Math,lt=at.round,ct=at.floor,ht=at.ceil,dt=at.max,ut=at.min,pt=at.abs,ft=at.cos,gt=at.sin,mt=at.PI,vt=2*mt/360,yt=navigator.userAgent,bt=rt.opera,xt=/(msie|trident)/i.test(yt)&&!bt,kt=8===st.documentMode,wt=/AppleWebKit/.test(yt),Tt=/Firefox/.test(yt),Ct=/(Mobile|Android|Windows Phone)/.test(yt),St="http://www.w3.org/2000/svg",_t=!!st.createElementNS&&!!st.createElementNS(St,"svg").createSVGRect,At=Tt&&parseInt(yt.split("Firefox/")[1],10)<4,Et=!_t&&!xt&&!!st.createElement("canvas").getContext,Pt={},Mt=0,Dt=function(){return O},Ot=[],$t=0,Lt="div",It="none",Rt=/^[0-9]+$/,Ft=["plotTop","marginRight","marginBottom","plotLeft"],Ht="stroke-width",Nt={};ot=rt.Highcharts=rt.Highcharts?S(16,!0):{},ot.seriesTypes=Nt;var Bt=ot.extend=function(t,e){var i;t||(t={});for(i in e)t[i]=e[i];return t},zt=ot.pick=function(){var t,e,i=arguments,n=i.length;for(t=0;t<n;t++)if(e=i[t],e!==O&&null!==e)return e},jt=ot.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(!c(e)||isNaN(e))return"Invalid date";var n,t=zt(t,"%Y-%m-%d %H:%M:%S"),o=new z(e-m(e)),s=o[q](),r=o[G](),a=o[V](),l=o[X](),h=o[K](),d=R.lang,u=d.weekdays,o=Bt({a:u[r].substr(0,3),A:u[r],d:g(a),e:a,w:r,b:d.shortMonths[l],B:d.months[l],m:g(l+1),y:h.toString().substr(2,2),Y:h,H:g(s),I:g(s%12||12),l:s%12||12,M:g(o[U]()),p:s<12?"AM":"PM",P:s<12?"am":"pm",S:g(o.getSeconds()),L:g(lt(e%1e3),3)},ot.dateFormats);for(n in o)for(;t.indexOf("%"+n)!==-1;)t=t.replace("%"+n,"function"==typeof o[n]?o[n](e):o[n]);return i?t.substr(0,1).toUpperCase()+t.substr(1):t},B={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ot.numberFormat=function(t,i,n,o){var s=R.lang,t=+t||0,r=i===-1?ut((t.toString().split(".")[1]||"").length,20):isNaN(i=pt(i))?2:i,i=void 0===n?s.decimalPoint:n,o=void 0===o?s.thousandsSep:o,s=t<0?"-":"",n=String(e(t=pt(t).toFixed(r))),a=n.length>3?n.length%3:0;return s+(a?n.substr(0,a)+o:"")+n.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+o)+(r?i+pt(t-n).toFixed(r).slice(2):"")},N={init:function(t,e,i){var n,o,s,e=e||"",r=t.shift,a=e.indexOf("C")>-1,l=a?7:3,e=e.split(" "),i=[].concat(i),c=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&&(c(e),c(i)),t.isArea&&(o=e.splice(e.length-6,6),s=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 o&&(e=e.concat(o),i=i.concat(s)),[e,i]},step:function(t,e,i,n){var o=[],s=t.length;if(1===i)o=n;else if(s===e.length&&i<1)for(;s--;)n=parseFloat(t[s]),o[s]=isNaN(n)?t[s]:i*parseFloat(e[s]-n)+n;else o=e;return o}},function(t){rt.HighchartsAdapter=rt.HighchartsAdapter||t&&{init:function(e){var n=t.fx;t.extend(t.easing,{easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i}}),t.each(["cur","_default","width","height","opacity"],function(e,i){var o,s=n.step;"cur"===i?s=n.prototype:"_default"===i&&t.Tween&&(s=t.Tween.propHooks[i],i="set"),(o=s[i])&&(s[i]=function(t){var n,t=e?t:this;if("align"!==t.prop)return n=t.elem,n.attr?n.attr(t.prop,"cur"===i?O:t.now):o.apply(this,arguments)})}),jt(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,n="Chart",o=arguments;return this[0]&&(i(o[0])&&(n=o[0],o=Array.prototype.slice.call(o,1)),t=o[0],t!==O&&(t.chart=t.chart||{},t.chart.renderTo=this[0],new ot[n](t,o[1]),e=this),t===O&&(e=Ot[h(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){for(var i=[],n=0,o=t.length;n<o;n++)i[n]=e.call(t[n],t[n],n,t);return i},offset:function(e){return t(e).offset()},addEvent:function(e,i,n){t(e).bind(i,n)},removeEvent:function(e,i,n){var o=st.removeEventListener?"removeEventListener":"detachEvent";
14st[o]&&e&&!e[o]&&(e[o]=function(){}),t(e).unbind(i,n)},fireEvent:function(e,i,n,o){var s,r=t.Event(i),a="detached"+i;!xt&&n&&(delete n.layerX,delete n.layerY,delete n.returnValue),Bt(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&&(s=!0)}}}),t(e).trigger(r),e[a]&&(e[i]=e[a],e[a]=null),o&&!r.isDefaultPrevented()&&!s&&o(r)},washMouseEvent:function(t){var e=t.originalEvent||t;return e.pageX===O&&(e.pageX=t.pageX,e.pageY=t.pageY),e},animate:function(e,i,n){var o=t(e);e.style||(e.style={}),i.d&&(e.toD=i.d,i.d=1),o.stop(),i.opacity!==O&&e.attr&&(i.opacity+="px"),e.hasAnim=1,o.animate(i,n)},stop:function(e){e.hasAnim&&t(e).stop()}}}(rt.jQuery);var Wt=rt.HighchartsAdapter,Yt=Wt||{};Wt&&Wt.init.call(Wt,N);var Ut=Yt.adapterRun,qt=Yt.getScript,Gt=Yt.inArray,Vt=ot.each=Yt.each,Xt=Yt.grep,Kt=Yt.offset,Qt=Yt.map,Zt=Yt.addEvent,Jt=Yt.removeEvent,te=Yt.fireEvent,ee=Yt.washMouseEvent,ie=Yt.animate,ne=Yt.stop;R={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/4.1.7/modules/canvas-tools.js",VMLRadialGradientURL:"http://code.highcharts.com/4.1.7/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?"":ot.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,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:_t,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:Ct?25:10,style:{color:"#333333",cursor:"default",fontSize:"12px",padding:"8px",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 oe=R.plotOptions,Wt=oe.line;E();var se=/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*\)/,re=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,ae=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,le=function(i){var n,o,r=[];return function(t){t&&t.stops?o=Qt(t.stops,function(t){return le(t[1])}):(n=se.exec(t))?r=[e(n[1]),e(n[2]),e(n[3]),parseFloat(n[4],10)]:(n=re.exec(t))?r=[e(n[1],16),e(n[2],16),e(n[3],16),1]:(n=ae.exec(t))&&(r=[e(n[1]),e(n[2]),e(n[3]),1])}(i),{get:function(e){var n;return o?(n=t(i),n.stops=[].concat(n.stops),Vt(o,function(t,i){n.stops[i]=[n.stops[i][0],t.get(e)]})):n=r&&!isNaN(r[0])?"rgb"===e?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===e?r[3]:"rgba("+r.join(",")+")":i,n},brighten:function(t){if(o)Vt(o,function(e){e.brighten(t)});else if(s(t)&&0!==t){var i;for(i=0;i<3;i++)r[i]+=e(255*t),r[i]<0&&(r[i]=0),r[i]>255&&(r[i]=255)}return this},rgba:r,setOpacity:function(t){return r[3]=t,this},raw:i}};P.prototype={opacity:1,textProps:"fontSize,fontWeight,fontFamily,fontStyle,color,lineHeight,width,textDecoration,textShadow".split(","),init:function(t,e){this.element="span"===e?p(e):st.createElementNS(St,e),this.renderer=t},animate:function(e,i,n){return i=zt(i,H,!0),ne(this),i?(i=t(i,{}),n&&(i.complete=n),ie(this,e,i)):(this.attr(e),n&&n()),this},colorGradient:function(e,i,n){var s,r,a,l,h,d,u,p,f,g,m=this.renderer,v=[];if(e.linearGradient?r="linearGradient":e.radialGradient&&(r="radialGradient"),r){a=e[r],l=m.gradients,d=e.stops,f=n.radialReference,o(a)&&(e[r]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"
15}),"radialGradient"===r&&f&&!c(a.gradientUnits)&&(a=t(a,{cx:f[0]-f[2]/2+a.cx*f[2],cy:f[1]-f[2]/2+a.cy*f[2],r:a.r*f[2],gradientUnits:"userSpaceOnUse"}));for(g in a)"id"!==g&&v.push(g,a[g]);for(g in d)v.push(d[g]);v=v.join(","),l[v]?e=l[v].attr("id"):(a.id=e="highcharts-"+Mt++,l[v]=h=m.createElement(r).attr(a).add(m.defs),h.stops=[],Vt(d,function(t){0===t[1].indexOf("rgba")?(s=le(t[1]),u=s.get("rgb"),p=s.get("a")):(u=t[1],p=1),t=m.createElement("stop").attr({offset:t[0],"stop-color":u,"stop-opacity":p}).add(h),h.stops.push(t)})),n.setAttribute(i,"url("+m.url+"#"+e+")")}},applyTextShadow:function(t){var i,n=this.element,o=t.indexOf("contrast")!==-1,s={},r=this.renderer.forExport||n.style.textShadow!==O&&!xt;o&&(s.textShadow=t=t.replace(/contrast/g,this.renderer.getContrast(n.style.fill))),wt&&(s.textRendering="geometricPrecision"),r?u(n,s):(this.fakeTS=!0,this.ySetter=this.xSetter,i=[].slice.call(n.getElementsByTagName("tspan")),Vt(t.split(/\s?,\s?/g),function(t){var o,s,r=n.firstChild,t=t.split(" ");o=t[t.length-1],(s=t[t.length-2])&&Vt(i,function(t,i){var a;0===i&&(t.setAttribute("x",n.getAttribute("x")),i=n.getAttribute("y"),t.setAttribute("y",i||0),null===i&&n.setAttribute("y",0)),a=t.cloneNode(1),h(a,{"class":"highcharts-text-shadow",fill:o,stroke:o,"stroke-opacity":1/dt(e(s),3),"stroke-width":s,"stroke-linejoin":"round"}),n.insertBefore(a,r)})}))},attr:function(t,e){var i,n,o,s,r=this.element,a=this;if("string"==typeof t&&e!==O&&(i=t,t={},t[i]=e),"string"==typeof t)a=(this[t+"Getter"]||this._defaultGetter).call(this,t,r);else{for(i in t)n=t[i],s=!1,this.symbolName&&/^(x|y|width|height|r|start|end|innerR|anchorX|anchorY)/.test(i)&&(o||(this.symbolAttr(t),o=!0),s=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),s||(this[i+"Setter"]||this._defaultSetter).call(this,n,i,r),this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(i)&&this.updateShadows(i,n);this.doTransform&&(this.updateTransform(),this.doTransform=!1)}return a},updateShadows:function(t,e){for(var i=this.shadows,n=i.length;n--;)i[n].setAttribute(t,"height"===t?dt(e-(i[n].cutHeight||0),0):"d"===t?this.d:e)},addClass:function(t){var e=this.element,i=h(e,"class")||"";return i.indexOf(t)===-1&&h(e,"class",i+" "+t),this},symbolAttr:function(t){var e=this;Vt("x,y,r,start,end,width,height,innerR,anchorX,anchorY".split(","),function(i){e[i]=zt(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+")":It)},crisp:function(t){var e,i,n={},o=t.strokeWidth||this.strokeWidth||0;i=lt(o)%2/2,t.x=ct(t.x||this.x||0)+i,t.y=ct(t.y||this.y||0)+i,t.width=ct((t.width||this.width||0)-2*i),t.height=ct((t.height||this.height||0)-2*i),t.strokeWidth=o;for(e in t)this[e]!==t[e]&&(this[e]=n[e]=t[e]);return n},css:function(t){var i,n,o=this.styles,s={},r=this.element,a="";if(i=!o,t&&t.color&&(t.fill=t.color),o)for(n in t)t[n]!==o[n]&&(s[n]=t[n],i=!0);if(i){if(i=this.textWidth=t&&t.width&&"text"===r.nodeName.toLowerCase()&&e(t.width)||this.textWidth,o&&(t=Bt(o,s)),this.styles=t,i&&(Et||!_t&&this.renderer.forExport)&&delete t.width,xt&&!_t)u(this.element,t);else{o=function(t,e){return"-"+e.toLowerCase()};for(n in t)a+=n.replace(/([A-Z])/g,o)+":"+t[n]+";";h(r,"style",a)}i&&this.added&&this.renderer.buildText(this)}return this},on:function(t,e){var i=this,n=i.element;return L&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=z.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(yt.indexOf("Android")===-1||z.now()-(i.touchEventFired||0)>1100)&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){return this.element.radialReference=t,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,o=this.inverted,s=this.rotation,r=this.element;o&&(t+=this.attr("width"),e+=this.attr("height")),t=["translate("+t+","+e+")"],o?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+(r.getAttribute("x")||0)+" "+(r.getAttribute("y")||0)+")"),(c(i)||c(n))&&t.pu
15sh("scale("+zt(i,1)+" "+zt(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,n){var o,s,r,a,c={};return s=this.renderer,r=s.alignedObjects,t?(this.alignOptions=t,this.alignByTranslate=e,(!n||i(n))&&(this.alignTo=o=n||"renderer",l(r,this),r.push(this),n=null)):(t=this.alignOptions,e=this.alignByTranslate,o=this.alignTo),n=zt(n,s[o],s),o=t.align,s=t.verticalAlign,r=(n.x||0)+(t.x||0),a=(n.y||0)+(t.y||0),"right"!==o&&"center"!==o||(r+=(n.width-(t.width||0))/{right:1,center:2}[o]),c[e?"translateX":"x"]=lt(r),"bottom"!==s&&"middle"!==s||(a+=(n.height-(t.height||0))/({bottom:1,middle:2}[s]||1)),c[e?"translateY":"y"]=lt(a),this[this.placed?"animate":"attr"](c),this.placed=!0,this.alignAttr=c,this},getBBox:function(t){var e,i,n=this.renderer,o=this.rotation,s=this.element,r=this.styles,a=o*vt;i=this.textStr;var l,c,h,d=s.style;if(i!==O&&(h=["",o||0,r&&r.fontSize,s.style.width].join(","),h=""===i||Rt.test(i)?"num:"+i.toString().length+h:i+h),h&&!t&&(e=n.cache[h]),!e){if(s.namespaceURI===St||n.forExport){try{c=this.fakeTS&&function(t){Vt(s.querySelectorAll(".highcharts-text-shadow"),function(e){e.style.display=t})},Tt&&d.textShadow?(l=d.textShadow,d.textShadow=""):c&&c(It),e=s.getBBox?Bt({},s.getBBox()):{width:s.offsetWidth,height:s.offsetHeight},l?d.textShadow=l:c&&c("")}catch(u){}(!e||e.width<0)&&(e={width:0,height:0})}else e=this.htmlGetBBox();n.isSVG&&(t=e.width,i=e.height,xt&&r&&"11px"===r.fontSize&&"16.9"===i.toPrecision(3)&&(e.height=i=14),o&&(e.width=pt(i*gt(a))+pt(t*ft(a)),e.height=pt(i*ft(a))+pt(t*gt(a)))),n.cache[h]=e}return e},show:function(t){return t&&this.element.namespaceURI===St?this.element.removeAttribute("visibility"):this.attr({visibility:t?"inherit":"visible"}),this},hide:function(){return this.attr({visibility:"hidden"})},fadeOut:function(t){var e=this;e.animate({opacity:0}
15,{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||{},o=i.shadows,s=i.renderer.isSVG&&"SPAN"===n.nodeName&&i.parentGroup;if(n.onclick=n.onmouseout=n.onmouseover=n.onmousemove=n.point=null,ne(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),o&&Vt(o,function(t){i.safeRemoveChild(t)});s&&s.div&&0===s.div.childNodes.length;)n=s.parentGroup,i.safeRemoveChild(s.div),delete s.div,s=n;i.alignTo&&l(i.renderer.alignedObjects,i);for(t in i)delete i[t];return null},shadow:function(t,e,i){var n,o,s,r,a,l,c=[],d=this.element;if(t){for(r=zt(t.width,3),a=(t.opacity||.15)/r,l=this.parentInverted?"(-1,-1)":"("+zt(t.offsetX,1)+", "+zt(t.offsetY,1)+")",n=1;n<=r;n++)o=d.cloneNode(0),s=2*r+1-2*n,h(o,{isShadow:"true",stroke:t.color||"black","stroke-opacity":a*n,"stroke-width":s,transform:"translate"+l,fill:It}),i&&(h(o,"height",dt(h(o,"height")-s,0)),o.cutHeight=s),e?e.element.appendChild(o):d.parentNode.insertBefore(o,d),c.push(o);this.shadows=c}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=zt(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 i;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(","),i=t.length;i--;)t[i]=e(t[i])*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=st.createElementNS(St,"title"),this.element.appendChild(e)),e.appendChild(st.createTextNode(String(zt(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)},zIndexSetter:function(t,i){var n,o,s,r=this.renderer,a=this.parentGroup,r=(a||r).element||r.box,l=this.element;n=this.added;var d;if(c(t)&&(l.setAttribute(i,t),t=+t,this[i]===t&&(n=!1),this[i]=t),n){for((t=this.zIndex)&&a&&(a.handleZ=!0),a=r.childNodes,d=0;d<a.length&&!s;d++)n=a[d],o=h(n,"zIndex"),n!==l&&(e(o)>t||!c(t)&&c(o))&&(r.insertBefore(l,n),s=!0);s||r.appendChild(l)}return s},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}},P.prototype.yGetter=P.prototype.xGetter,P.prototype.translateXSetter=P.prototype.translateYSetter=P.prototype.rotationSetter=P.prototype.verticalAlignSetter=P.prototype.scaleXSetter=P.prototype.scaleYSetter=function(t,e){this[e]=t,this.doTransform=!0},P.prototype["stroke-widthSetter"]=P.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(this.strokeWidth=this["stroke-width"],P.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 ce=function(){this.init.apply(this,arguments)};if(ce.prototype={Element:P,init:function(t,e,i,n,o){var s,r=location,n=this.createElement("svg").attr({version:"1.1"}).css(this.getStyle(n));s=n.element,t.appendChild(s),t.innerHTML.indexOf("xmlns")===-1&&h(s,"xmlns",St),this.isSVG=!0,this.box=s,this.boxWrapper=n,this.alignedObjects=[],this.url=(Tt||wt)&&st.getElementsByTagName("base").length?r.href.replace(/#.*?$/,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(st.createTextNode("Created with Highcharts 4.1.7")),this.defs=this.createElement("defs").add(),this.forExport=o,this.gradients={},this.cache={},this.setSize(e,i,!1);var a;Tt&&t.getBoundingClientRect&&(this.subPixelFix=e=function(){u(t,{left:0,top:0}),a=t.getBoundingClientRect(),u(t,{left:ht(a.left)-a.left+"px",to
15p:ht(a.top)-a.top+"px"})},e(),Zt(rt,"resize",e))},getStyle:function(t){return this.style=Bt({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(),T(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.subPixelFix&&Jt(rt,"resize",this.subPixelFix),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:function(){},buildText:function(t){for(var i,n,o=t.element,s=this,r=s.forExport,a=zt(t.textStr,"").toString(),l=a.indexOf("<")!==-1,c=o.childNodes,d=h(o,"x"),p=t.styles,f=t.textWidth,g=p&&p.lineHeight,m=p&&p.textShadow,v=p&&"ellipsis"===p.textOverflow,y=c.length,b=f&&!t.added&&this.box,x=function(t){return g?e(g):s.fontMetrics(/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:p&&p.fontSize||s.style.fontSize||12,t).h},k=function(t){return t.replace(/&lt;/g,"<").replace(/&gt;/g,">")};y--;)o.removeChild(c[y]);l||m||v||a.indexOf(" ")!==-1?(i=/<.*style="([^"]+)".*>/,n=/<.*href="(http[^"]+)".*>/,b&&b.appendChild(o),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(),Vt(a,function(e,a){var l,c=0,e=e.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");l=e.split("|||"),Vt(l,function(e){if(""!==e||1===l.length){var g,m={},y=st.createElementNS(St,"tspan");if(i.test(e)&&(g=e.match(i)[1].replace(/(;| |^)color([ :])/,"$1fill$2"),h(y,"style",g)),n.test(e)&&!r&&(h(y,"onclick",'location.href="'+e.match(n)[1]+'"'),u(y,{cursor:"pointer"})),e=k(e.replace(/<(.|\n)*?>/g,"")||" ")," "!==e){if(y.appendChild(st.createTextNode(e)),c?m.dx=0:a&&null!==d&&(m.x=d),h(y,m),o.appendChild(y),!c&&a&&(!_t&&r&&u(y,{display:"block"}),h(y,"dy",x(y))),f){for(var b,w,T,m=e.replace(/([^\^])-/g,"$1- ").split(" "),C=l.length>1||a||m.length>1&&"nowrap"!==p.whiteSpace,S=[],_=x(y),A=1,E=t.rotation,P=e,M=P.length;(C||v)&&(m.length||S.length);)t.rotation=0,b=t.getBBox(!0),T=b.width,!_t&&s.forExport&&(T=s.measureSpanWidth(y.firstChild.data,t.styles)),b=T>f,void 0===w&&(w=b),v&&w?(M/=2,""===P||!b&&M<.5?m=[]:(b&&(w=!0),P=e.substring(0,P.length+(b?-1:1)*ht(M)),m=[P+(f>3?"…":"")],y.removeChild(y.firstChild))):b&&1!==m.length?(y.removeChild(y.firstChild),S.unshift(m.pop())):(m=S,S=[],m.length&&(A++,y=st.createElementNS(St,"tspan"),h(y,{dy:_,x:d}),g&&h(y,"style",g),o.appendChild(y)),T>f&&(f=T)),m.length&&y.appendChild(st.createTextNode(m.join(" ").replace(/- /g,"-")));w&&t.attr("title",t.textStr),t.rotation=E}c++}}})}),b&&b.removeChild(o),m&&t.applyTextShadow&&t.applyTextShadow(m)):o.appendChild(st.createTextNode(k(a)))},getContrast:function(t){return t=le(t).rgba,t[0]+t[1]+t[2]>384?"#000000":"#FFFFFF"},button:function(e,i,n,o,s,r,a,l,c){var h,d,u,p,f,g,m=this.label(e,i,n,c,null,null,null,null,"button"),v=0,e={x1:0,y1:0,x2:0,y2:1},s=t({"stroke-width":1,stroke:"#CCCCCC",fill:{linearGradient:e,stops:[[0,"#FEFEFE"],[1,"#F6F6F6"]]},r:2,padding:5,style:{color:"black"}},s);return u=s.style,delete s.style,r=t(s,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#FFF"],[1,"#ACF"]]}},r),p=r.style,delete r.style,a=t(s,{stroke:"#68A",fill:{linearGradient:e,stops:[[0,"#9BD"],[1,"#CDF"]]}},a),f=a.style,delete a.style,l=t(s,{style:{color:"#CCC"}},l),g=l.style,delete l.style,Zt(m.element,xt?"mouseover":"mouseenter",function(){3!==v&&m.attr(r).css(p)}),Zt(m.element,xt?"mouseout":"mouseleave",function(){3!==v&&(h=[s,r,a][v],d=[u,p,f][v],m.attr(h).css(d))}),m.setState=function(t){(m.state=v=t)?2===t?m.attr(a).css(f):3===t&&m.attr(l).css(g):m.attr(s).css(u)},m.on("click",function(){3!==v&&o.call(m)}).attr(s).css(Bt({cursor:"default"},u))},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=lt(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=lt(t[2])+e%2/2),t},path:function(t){var e={fill:It};return o(t)?e.d=t:n(t)&&Bt(e,t),this.createElement("path").attr(e)}
15,circle:function(t,e,i){return t=n(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,o,s,r){return n(t)&&(e=t.y,i=t.r,o=t.innerR,s=t.start,r=t.end,t=t.x),t=this.symbol("arc",t||0,e||0,i||0,i||0,{innerR:o||0,start:s||0,end:r||0}),t.r=i,t},rect:function(t,e,i,o,s,r){var s=n(t)?t.r:s,a=this.createElement("rect"),t=n(t)?t:t===O?{}:{x:t,y:e,width:dt(i,0),height:dt(o,0)};return r!==O&&(t.strokeWidth=r,t=a.crisp(t)),s&&(t.r=s),a.rSetter=function(t){h(this.element,{rx:t,ry:t})},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,o=n.length;for(this.width=t,this.height=e,this.boxWrapper[zt(i,!0)?"animate":"attr"]({width:t,height:e});o--;)n[o].align()},g:function(t){var e=this.createElement("g");return c(t)?e.attr({"class":"highcharts-"+t}):e},image:function(t,e,i,n,o){var s={preserveAspectRatio:It};return arguments.length>1&&Bt(s,{x:e,y:i,width:n,height:o}),s=this.createElement("image").attr(s),s.element.setAttributeNS?s.element.setAttributeNS("http://www.w3.org/1999/xlink","href",t):s.element.setAttribute("hc-svg-href",t),s},symbol:function(t,e,i,n,o,s){var r,a,l,c=this.symbols[t],c=c&&c(lt(e),lt(i),n,o,s),h=/^url\((.*?)\)$/;return c?(r=this.path(c),Bt(r,{symbolName:t,x:e,y:i,width:n,height:o}),s&&Bt(r,s)):h.test(t)&&(l=function(t,e){t.element&&(t.attr({width:e[0],height:e[1]}),t.alignByTranslate||t.translate(lt((n-e[0])/2),lt((o-e[1])/2)))},a=t.match(h)[1],t=Pt[a]||s&&s.width&&s.height&&[s.width,s.height],r=this.image(a).attr({x:e,y:i}),r.isImg=!0,t?l(r,t):(r.attr({width:0,height:0}),p("img",{onload:function(){l(r,Pt[a]=[this.width,this.height])},src:a}))),r},symbols:{circle:function(t,e,i,n){var o=.166*i;return["M",t+i/2,e,"C",t+i+o,e,t+i+o,e+n,t+i/2,e+n,"C",t-o,e+n,t-o,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,o){var s=o.start,i=o.r||i||n,r=o.end-.001,n=o.innerR,a=o.open,l=ft(s),c=gt(s),h=ft(r),r=gt(r),o=o.end-s<mt?0:1;return["M",t+i*l,e+i*c,"A",i,i,0,o,1,t+i*h,e+i*r,a?"M":"L",t+n*h,e+n*r,"A",n,n,0,o,0,t+n*l,e+n*c,a?"":"Z"]},callout:function(t,e,i,n,o){var s,r=ut(o&&o.r||0,i,n),a=r+6,l=o&&o.anchorX,o=o&&o.anchorY;return s=["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&&o>e+a&&o<e+n-a?s.splice(13,3,"L",t+i,o-6,t+i+6,o,t+i,o+6,t+i,e+n-r):l&&l<0&&o>e+a&&o<e+n-a?s.splice(33,3,"L",t,o+6,t-6,o,t,o-6,t,e+r):o&&o>n&&l>t+a&&l<t+i-a?s.splice(23,3,"L",l+6,e+n,l,e+n+6,l-6,e+n,t+r,e+n):o&&o<0&&l>t+a&&l<t+i-a&&s.splice(3,3,"L",l-6,e,l,e-6,l+6,e,i-r,e),s}},clipRect:function(t,e,i,n){var o="highcharts-"+Mt++,s=this.createElement("clipPath").attr({id:o}).add(this.defs),t=this.rect(t,e,i,n,0).add(s);return t.id=o,t.clipPath=s,t.count=0,t},text:function(t,e,i,n){var o=Et||!_t&&this.forExport,s={};return n&&!this.forExport?this.html(t,e,i):(s.x=Math.round(e||0),i&&(s.y=Math.round(i)),(t||0===t)&&(s.text=t),t=this.createElement("text").attr(s),o&&t.css({position:"absolute"}),n||(t.xSetter=function(t,e,i){var n,o,s=i.getElementsByTagName("tspan"),r=i.getAttribute(e);for(o=0;o<s.length;o++)n=s[o],n.getAttribute(e)===r&&n.setAttribute(e,t);i.setAttribute(e,t)}),t)},fontMetrics:function(t,i){var n,o,t=t||this.style.fontSize;return i&&rt.getComputedStyle&&(i=i.element||i,t=(n=rt.getComputedStyle(i,""))&&n.fontSize),t=/px/.test(t)?e(t):/em/.test(t)?12*parseFloat(t):12,n=t<24?t+3:lt(1.2*t),o=lt(.8*n),{h:n,b:o,f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=dt(n*ft(e*vt),4)),{x:-t/3*gt(e*vt),y:n}},label:function(e,i,n,o,s,r,a,l,h){function d(){var t,e;t=C.element.style,g=(void 0===m||void 0===v||T.styles.textAlign)&&c(C.textStr)&&C.getBBox(),T.width=(m||g.width||0)+2*_+A,T.height=(v||g.height||0)+2*_,x=_+w.fontMetrics(t&&t.fontSize,C).b,k&&(f||(t=lt(-S*_)+E,e=(l?-x:0)+E,T.box=f=o?w.symbol(o,t,e,T.width,T.height,M):w.rect(t,e,T.width,T.height,0,M[Ht]),f.attr("fill",It).add(T)),f.isImg||f.attr(Bt({width:lt(T.width),height:lt(T.height)},M)),M=null)}function u(){var t,e=T.styles,e=e&&e.textAlign,i=A+_*(1-S);t=l?0:x,c(m)&&g&&("center"===e||"right"===e)&&(i+={center:.5,right:1}[e]*(m-g.width)),i===C.x&&t===C.y||(C.attr("x",i),t!==O&&C.attr("y",t)),C.x=i,C.y=t}function p(t,e){f?f.attr(t,e):M[t]=e}var f,g,m,v,y,b,x,k,w=this,T=w.g(h),C=w.text("",0,0,a).attr({zIndex:1}),S=0,_=3,A=0,E=0,M={};T.onAdd=function(){C.add(T),T.attr({text:e||0===e?e:"",x:i,y:n}),f&&c(s)&&T.attr({anchorX:s,anchorY:r})},T.widthSetter=function(t){m=t},T.heightSetter=function(t){v=t},T.paddingSetter=function(t){c(t)&&t!==_&&(_=T.padding=t,u())},T.paddingLeftSetter=function(t){c(t)&&t!==A&&(A=t,u())},T.alignSetter=function(t){S={left:0,center:.5,right:1}[t]},T.textSetter=function(t){t!==O&&C.textSetter(t),d(),u()},T["stroke-widthSetter"]=function(t,e){t&&(k=!0),E=t%2/2,p(e,t)},T.strokeSetter=T.fillSetter=T.rSetter=function(t,e){"fill"===e&&t&&(k=!0),p(e,t)},T.anchorXSetter=function(t,e){s=t,p(e,lt(t)-E-y)},T.anchorYSetter=function(t,e){r=t,p(e,t-b)},T.xSetter=function(t){T.x=t,S&&(t-=S*((m||g.width)+_)),y=lt(t),T.attr("translateX",y)},T.ySetter=function(t){b=T.y=lt(t),T.attr("translateY",b)};var D=T.css;return Bt(T,{css:function(e){if(e){var i={},e=t(e);Vt(T.textProps,function(t){e[t]!==O&&(i[t]=e[t],delete e[t])}),C.css(i)}return D.call(T,e)},getBBox:function(){return{width:g.width+2*_,height:g.height+2*_,x:g.x-_,y:g.y-_}},shadow:function(t){return f&&f.shadow(t),T},destroy:function(){Jt(T.element,"mouseenter"),Jt(T.element,"mouseleave"),C&&(C=C.destroy()),f&&(f=f.destroy()),P.prototype.destroy.call(T),T=w=d=u=p=null}})}},$=ce,Bt(P.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=Bt(this.styles,t),u(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,i=this.element,n=this.translateX||0,o=this.translateY||0,s=this.x||0,r=this.y||0,a=this.textAlign||"left",l={left:0,center:.5,right:1}[a],h=this.shadows,d=this.styles;if(u(i,{marginLeft:n,marginTop:o}),h&&Vt(h,function(t){u(t,{marginLeft:n+1,marginTop:o+1})}),this.inverted&&Vt(i.childNodes,function(e){t.invertChild(e,i)}),"SPAN"===i.tagName){var p,f=this.rotation,g=e(this.textWidth),m=[f,a,i.innerHTML,this.textWidth].join(",");m!==this.cTT&&(p=t.fontMetrics(i.style.fontSize).b,c(f)&&this.setSpanRotation(f,l,p),h=zt(this.elemWidth,i.offsetWidth),h>g&&/[ \-]/.test(i.textContent||i.innerText)&&(u(i,{width:g+"px",display:"block",whiteSpace:d&&d.whiteSpace||"normal"}
15),h=g),this.getSpanCorrection(h,p,l,f,a)),u(i,{left:s+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),wt&&(p=i.offsetHeight),this.cTT=m}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},o=xt?"-ms-transform":wt?"-webkit-transform":Tt?"MozTransform":bt?"-o-transform":"";n[o]=n.transform="rotate("+t+"deg)",n[o+(Tt?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",u(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),Bt(ce.prototype,{html:function(t,e,i){var n=this.createElement("span"),o=n.element,s=n.renderer;return n.textSetter=function(t){t!==o.innerHTML&&delete this.bBox,o.innerHTML=this.textStr=t},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:lt(e),y:lt(i)}).css({position:"absolute",fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),o.style.whiteSpace="nowrap",n.css=n.htmlCss,s.isSVG&&(n.add=function(t){var e,i=s.box.parentNode,r=[];if(this.parentGroup=t){if(e=t.div,!e){for(;t;)r.push(t),t=t.parentGroup;Vt(r.reverse(),function(t){var n,o=h(t.element,"class");o&&(o={className:o}),e=t.div=t.div||p(Lt,o,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px"},e||i),n=e.style,Bt(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},visibilitySetter:function(t,e){n[e]=t}})})}}else e=i;return e.appendChild(o),n.added=!0,n.alignOnAdd&&n.htmlUpdateTransform(),n}),n}}),!_t&&!Et){Yt={init:function(t,e){var i=["<",e,' filled="f" stroked="f"'],n=["position: ","absolute",";"],o=e===Lt;("shape"===e||o)&&n.push("left:0;top:0;width:1px;height:1px;"),n.push("visibility: ",o?"hidden":"visible"),i.push(' style="',n.join(""),'"/>'),e&&(i=o||"span"===e||"img"===e?i.join(""):t.prepVML(i),this.element=p(i)),this.renderer=t},add:function(t){var e=this.renderer,i=this.element,n=e.box,n=t?t.element||t:n;return t&&t.inverted&&e.invertChild(i,n),n.appendChild(i),this.added=!0,this.alignOnAdd&&!this.deferUpdateTransform&&this.updateTransform(),this.onAdd&&this.onAdd(),this},updateTransform:P.prototype.htmlUpdateTransform,setSpanRotation:function(){var t=this.rotation,e=ft(t*vt),i=gt(t*vt);u(this.element,{filter:t?["progid:DXImageTransform.Microsoft.Matrix(M11=",e,", M12=",-i,", M21=",i,", M22=",e,", sizingMethod='auto expand')"].join(""):It})},getSpanCorrection:function(t,e,i,n,o){var s,r=n?ft(n*vt):1,a=n?gt(n*vt):0,l=zt(this.elemHeight,this.element.offsetHeight);this.xCorr=r<0&&-t,this.yCorr=a<0&&-l,s=r*a<0,this.xCorr+=a*e*(s?1-i:i),this.yCorr-=r*e*(n?s?i:1-i:1),o&&"left"!==o&&(this.xCorr-=t*i*(r<0?-1:1),n&&(this.yCorr-=l*i*(a<0?-1:1)),u(this.element,{textAlign:o}))},pathToVML:function(t){for(var e=t.length,i=[];e--;)s(t[e])?i[e]=lt(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,l(e,i),e.push(i),i.destroyClip=function(){l(e,i)},t=t.getCSS(i)):(i.destroyClip&&i.destroyClip(),t={clip:kt?"inherit":"rect(auto)"}),i.css(t)},css:P.prototype.htmlCss,safeRemoveChild:function(t){t.parentNode&&C(t)},destroy:function(){return this.destroyClip&&this.destroyClip(),P.prototype.destroy.apply(this)},on:function(t,e){return this.element["on"+t]=function(){var t=rt.event;t.target=t.srcElement,e(t)},this},cutOffPath:function(t,i){var n,t=t.split(/[ ,]/);return n=t.length,9!==n&&11!==n||(t[n-4]=t[n-2]=e(t[n-2])-10*i),t.join(" ")},shadow:function(t,i,n){var o,s,r,a,l,c,h,d=[],u=this.element,f=this.renderer,g=u.style,m=u.path;if(m&&"string"!=typeof m.value&&(m="x"),l=m,t){for(c=zt(t.width,3),h=(t.opacity||.15)/c,o=1;o<=3;o++)a=2*c+1-2*o,n&&(l=this.cutOffPath(m.value,a+.5)),r=['<shape isShadow="true" strokeweight="',a,'" filled="false" path="',l,'" coordsize="10 10" style="',u.style.cssText,'" />'],s=p(f.prepVML(r),null,{left:e(g.left)+zt(t.offsetX,1),top:e(g.top)+zt(t.offsetY,1)}),n&&(s.cutOff=a+1),r=['<stroke color="',t.color||"black",'" opacity="',h*o,'"/>
15'],p(f.prepVML(r),null,null,s),i?i.element.appendChild(s):u.parentNode.insertBefore(s,u),d.push(s);this.shadows=d}return this},updateShadows:Dt,setAttr:function(t,e){kt?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]||p(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=t!==It,this.setAttr("fillcolor",this.renderer.color(t,i,e,this)))},opacitySetter:Dt,rotationSetter:function(t,e,i){i=i.style,this[e]=i[e]=t,i.left=-lt(gt(t*vt)+1)+"px",i.top=lt(ft(t*vt))+"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,s(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&&Vt(this.shadows,function(i){i.style[e]=t}),"DIV"===i.nodeName&&(t="hidden"===t?"-999em":0,kt||(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}},ot.VMLElement=Yt=f(P,Yt),Yt.prototype.ySetter=Yt.prototype.widthSetter=Yt.prototype.heightSetter=Yt.prototype.xSetter;var he={Element:Yt,isIE8:yt.indexOf("MSIE 8.0")>-1,init:function(t,e,i,n){var o;if(this.alignedObjects=[],n=this.createElement(Lt).css(Bt(this.getStyle(n),{position:"relative"})),o=n.element,t.appendChild(n.element),this.isVML=!0,this.box=o,this.boxWrapper=n,this.cache={},this.setSize(e,i,!1),!st.namespaces.hcv){st.namespaces.add("hcv","urn:schemas-microsoft-com:vml");try{st.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}catch(s){st.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,o){var s=this.createElement(),r=n(t);return Bt(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:o)-1,getCSS:function(t){var e=t.element,i=e.nodeName,t=t.inverted,n=this.top-("shape"===i?e.offsetTop:0),o=this.left,e=o+this.width,s=n+this.height,n={clip:"rect("+lt(t?o:n)+"px,"+lt(t?s:e)+"px,"+lt(t?e:s)+"px,"+lt(t?n:o)+"px)"};return!t&&kt&&"DIV"===i&&Bt(n,{width:e+"px",height:s+"px"}),n},updateClipping:function(){Vt(s.members,function(t){t.element&&t.css(s.getCSS(t))})}})},color:function(t,e,i,n){var o,s,r,a=this,l=/^rgba/,c=It;if(t&&t.linearGradient?r="gradient":t&&t.radialGradient&&(r="pattern"),r){var h,d,u,f,g,m,v,y,b=t.linearGradient||t.radialGradient,x="",t=t.stops,k=[],w=function(){s=['<fill colors="'+k.join(",")+'" opacity="',g,'" o:opacity2="',f,'" type="',r,'" ',x,'focus="100%" method="any" />'],p(a.prepVML(s),null,null,e)};if(u=t[0],y=t[t.length-1],u[0]>0&&t.unshift([0,u[1]]),y[0]<1&&t.push([1,y[1]]),Vt(t,function(t,e){l.test(t[1])?(o=le(t[1]),h=o.get("rgb"),d=o.get("a")):(h=t[1],d=1),k.push(100*t[0]+"% "+h),e?(g=d,m=h):(f=d,v=h)}),"fill"===i)if("gradient"===r)i=b.x1||b[0]||0,t=b.y1||b[1]||0,u=b.x2||b[2]||0,b=b.y2||b[3]||0,x='angle="'+(90-180*at.atan((b-t)/(u-i))/mt)+'"',w();else{var T,c=b.r,C=2*c,S=2*c,_=b.cx,A=b.cy,E=e.radialReference,c=function(){E&&(T=n.getBBox(),_+=(E[0]-T.x)/T.width-.5,A+=(E[1]-T.y)/T.height-.5,C*=E[2]/T.width,S*=E[2]/T.height),x='src="'+R.global.VMLRadialGradientURL+'" size="'+C+","+S+'" origin="0.5,0.5" position="'+_+","+A+'" color2="'+v+'" ',w()};n.added?c():n.onAdd=c,c=m}else c=h}else l.test(t)&&"IMG"!==e.tagName?(o=le(t),s=["<",i,' opacity="',o.get("a"),'"/>'],p(this.prepVML(s),null,null,e),c=o.get("rgb")):(c=e.getElementsByTagName(i),c.length&&(c[0].opacity=1,c[0].type="solid"),c=t);return c},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:ce.prototype.html,path:function(t){var e={coordsize:"10 10"};return o(t)?e.d=t:n(t)&&Bt(e,t),this.createElement("shape").attr(e)}
15,circle:function(t,e,i){var o=this.symbol("circle");return n(t)&&(i=t.r,e=t.y,t=t.x),o.isCircle=!0,o.r=i,o.attr({x:t,y:e})},g:function(t){var e;return t&&(e={className:"highcharts-"+t,"class":"highcharts-"+t}),this.createElement(Lt).attr(e)},image:function(t,e,i,n,o){var s=this.createElement("img").attr({src:t});return arguments.length>1&&s.attr({x:e,y:i,width:n,height:o}),s},createElement:function(t){return"rect"===t?this.symbol(t):ce.prototype.createElement.call(this,t)},invertChild:function(t,i){var n=this,o=i.style,s="IMG"===t.tagName&&t.style;u(t,{flip:"x",left:e(o.width)-(s?e(s.top):1),top:e(o.height)-(s?e(s.left):1),rotation:-90}),Vt(t.childNodes,function(e){n.invertChild(e,t)})},symbols:{arc:function(t,e,i,n,o){var s=o.start,r=o.end,a=o.r||i||n,i=o.innerR,n=ft(s),l=gt(s),c=ft(r),h=gt(r);return r-s===0?["x"]:(s=["wa",t-a,e-a,t+a,e+a,t+a*n,e+a*l,t+a*c,e+a*h],o.open&&!i&&s.push("e","M",t,e),s.push("at",t-i,e-i,t+i,e+i,t+i*c,e+i*h,t+i*n,e+i*l,"x","e"),s.isArc=!0,s)},circle:function(t,e,i,n,o){
16return o&&(i=n=2*o.r),o&&o.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,o){return ce.prototype.symbols[c(o)&&o.r?"callout":"square"].call(0,t,e,i,n,o)}}};ot.VMLRenderer=Yt=function(){this.init.apply(this,arguments)},Yt.prototype=t(ce.prototype,he),$=Yt}ce.prototype.measureSpanWidth=function(t,e){var i,n=st.createElement("span");return i=st.createTextNode(t),n.appendChild(i),u(n,e),this.box.appendChild(n),i=n.offsetWidth,C(n),i};var de;Et&&(ot.CanVGRenderer=Yt=function(){St="http://www.w3.org/1999/xhtml"},Yt.prototype.symbols={},de=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&&qt(n,t),e.push(i)}}}(),$=Yt),M.prototype={addLabel:function(){var e,i=this.axis,n=i.options,o=i.chart,s=i.categories,r=i.names,l=this.pos,h=n.labels,d=i.tickPositions,u=l===d[0],p=l===d[d.length-1],r=s?zt(s[l],r[l],l):l,s=this.label,d=d.info;i.isDatetimeAxis&&d&&(e=n.dateTimeLabelFormats[d.higherRanks[l]||d.unitName]),this.isFirst=u,this.isLast=p,n=i.labelFormatter.call({axis:i,chart:o,isFirst:u,isLast:p,dateTimeLabelFormat:e,value:i.isLog?_(a(r)):r}),c(s)?s&&s.attr({text:n}):(this.labelLength=(this.label=s=c(n)&&h.enabled?o.renderer.text(n,0,0,h.useHTML).css(t(h.style)).add(i.labelGroup):null)&&s.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,o=i.chart.chartWidth,s=i.chart.spacing,r=zt(i.labelLeft,ut(i.pos,s[3])),s=zt(i.labelRight,dt(i.pos+i.len,o-s[1])),a=this.label,l=this.rotation,c={left:0,center:.5,right:1}[i.labelAlign],h=a.getBBox().width,d=i.slotWidth,u=1,p={};l?l<0&&n-c*h<r?e=lt(n/ft(l*vt)-r):l>0&&n+c*h>s&&(e=lt((o-n)/ft(l*vt))):(o=n+(1-c)*h,n-c*h<r?d=t.x+d*(1-c)-r:o>s&&(d=s-t.x+d*c,u=-1),d=ut(i.slotWidth,d),d<i.slotWidth&&"center"===i.labelAlign&&(t.x+=u*(i.slotWidth-d-c*(i.slotWidth-ut(h,d)))),(h>d||i.autoRotation&&a.styles.width)&&(e=d)),e&&(p.width=e,i.options.labels.style.textOverflow||(p.textOverflow="ellipsis"),a.css(p))},getPosition:function(t,e,i,n){var o=this.axis,s=o.chart,r=n&&s.oldChartHeight||s.chartHeight;return{x:t?o.translate(e+i,null,null,n)+o.transB:o.left+o.offset+(o.opposite?(n&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:t?r-o.bottom+o.offset-(o.opposite?o.height:0):r-o.translate(e+i,null,null,n)-o.transB}},getLabelPosition:function(t,e,i,n,o,s,r,a){var l=this.axis,c=l.transA,h=l.reversed,d=l.staggerLines,u=l.tickRotCorr||{x:0,y:0},i=zt(o.y,u.y+(2===l.side?8:-(i.getBBox().height/2))),t=t+o.x+u.x-(s&&n?s*c*(h?-1:1):0),e=e+i-(s&&!n?s*c*(h?1:-1):0);return d&&(e+=r/(a||1)%d*(l.labelOffset/d)),{x:t,y:lt(e)}},getMarkPath:function(t,e,i,n,o,s){return s.crispLine(["M",t,e,"L",t+(o?0:-i),e+(o?i:0)],n)},render:function(t,e,i){var n=this.axis,o=n.options,s=n.chart.renderer,r=n.horiz,a=this.type,l=this.label,c=this.pos,h=o.labels,d=this.gridLine,u=a?a+"Grid":"grid",p=a?a+"Tick":"tick",f=o[u+"LineWidth"],g=o[u+"LineColor"],m=o[u+"LineDashStyle"],v=o[p+"Length"],u=o[p+"Width"]||0,y=o[p+"Color"],b=o[p+"Position"],p=this.mark,x=h.step,k=!0,w=n.tickmarkOffset,T=this.getPosition(r,c,w,e),C=T.x,T=T.y,S=r&&C===n.pos+n.len||!r&&T===n.pos?-1:1,i=zt(i,1);this.isActive=!0,f&&(c=n.getPlotLinePath(c+w,f*S,e,!0),d===O&&(d={stroke:g,"stroke-width":f}
16,m&&(d.dashstyle=m),a||(d.zIndex=1),e&&(d.opacity=0),this.gridLine=d=f?s.path(c).attr(d).add(n.gridGroup):null),!e&&d&&c&&d[this.isNew?"attr":"animate"]({d:c,opacity:i})),u&&v&&("inside"===b&&(v=-v),n.opposite&&(v=-v),a=this.getMarkPath(C,T,v,u*S,r,s),p?p.animate({d:a,opacity:i}):this.mark=s.path(a).attr({stroke:y,"stroke-width":u,opacity:i}).add(n.axisGroup)),l&&!isNaN(C)&&(l.xy=T=this.getLabelPosition(C,T,l,r,h,w,t,x),this.isFirst&&!this.isLast&&!zt(o.showFirstLabel,1)||this.isLast&&!this.isFirst&&!zt(o.showLastLabel,1)?k=!1:r&&!n.isRadial&&!h.step&&!h.rotation&&!e&&0!==i&&this.handleOverflow(T),x&&t%x&&(k=!1),k&&!isNaN(T.y)?(T.opacity=i,l[this.isNew?"attr":"animate"](T),this.isNew=!1):l.attr("y",-9999))},destroy:function(){T(this,this.axis)}},ot.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},ot.PlotLineOrBand.prototype={render:function(){var e,i=this,n=i.axis,o=n.horiz,s=i.options,a=s.label,l=i.label,h=s.width,d=s.to,u=s.from,p=c(u)&&c(d),f=s.value,g=s.dashStyle,m=i.svgElem,v=[],y=s.color,b=s.zIndex,x=s.events,T={},C=n.chart.renderer;if(n.isLog&&(u=r(u),d=r(d),f=r(f)),h)v=n.getPlotLinePath(f,h),T={stroke:y,"stroke-width":h},g&&(T.dashstyle=g);else{if(!p)return;v=n.getPlotBandPath(u,d,s),y&&(T.fill=y),s.borderWidth&&(T.stroke=s.borderColor,T["stroke-width"]=s.borderWidth)}if(c(b)&&(T.zIndex=b),m)v?m.animate({d:v},null,m.onGetPath):(m.hide(),m.onGetPath=function(){m.show()},l&&(i.label=l=l.destroy()));else if(v&&v.length&&(i.svgElem=m=C.path(v).attr(T).add(),x))for(e in s=function(t){m.on(t,function(e){x[t].apply(i,[e])})},x)s(e);return a&&c(a.text)&&v&&v.length&&n.width>0&&n.height>0?(a=t({align:o&&p&&"center",x:o?!p&&4:10,verticalAlign:!o&&p&&"middle",y:o?p?16:10:p?6:-4,rotation:o&&!p&&90},a),l||(T={align:a.textAlign||a.align,rotation:a.rotation},c(b)&&(T.zIndex=b),i.label=l=C.text(a.text,0,0,a.useHTML).attr(T).css(a.style).add()),n=[v[1],v[4],p?v[6]:v[1]],p=[v[2],v[5],p?v[7]:v[2]],v=k(n),o=k(p),l.align(a,!1,{x:v,y:o,width:w(n)-v,height:w(p)-o}),l.show()):l&&l.hide(),i},destroy:function(){l(this.axis.plotLinesAndBands,this),delete this.axis,T(this)}};var ue=ot.Axis=function(){this.init.apply(this,arguments)};ue.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",tickWidth:1,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,tickWidth:0,title:{rotation:270,text:"Values"},stackLabels:{enabled:!1,formatter:function(){return ot.numberFormat(this.total,-1)},style:t(oe.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.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,o=n.type;this.labelFormatter=n.labels.formatter||this.defaultLabelFormatter,this.userOptions=e,this.minPixelPadding=0,this.chart=t,this.reversed=n.reversed,this.zoomEnabled=n.zoomEnabled!==!1,this.categories=n.categories||"category"===o,this.names=this.names||[],this.isLog="logarithmic"===o,this.isDatetimeAxis="datetime"===o,this.isLinked=c(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.min=this.max=null,this.crosshair=zt(n.crosshair,d(t.options.tooltip.crosshairs)[i?0:1],!1);var s,n=this.options.events;Gt(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===O&&(this.reversed=!0),this.removePlotLine=this.removePlotBand=this.removePlotBandOrLine;for(s in n)Zt(this,s,n[s]);this.isLog&&(this.val2lin=r,this.lin2val=a)},setOptions:function(e){this.options=t(this.defaultOptions,this.isXAxis?{}:this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],t(R[this.coll],e))},defaultLabelFormatter:function(){var t,e=this.axis,i=this.value,
16n=e.categories,o=this.dateTimeLabelFormat,s=R.lang.numericSymbols,r=s&&s.length,a=e.options.labels.format,e=e.isLog?i:e.tickInterval;if(a)t=v(a,this);else if(n)t=i;else if(o)t=F(o,i);else if(r&&e>=1e3)for(;r--&&t===O;)n=Math.pow(1e3,r+1),e>=n&&10*i%n===0&&null!==s[r]&&(t=ot.numberFormat(i/n,-1)+s[r]);return t===O&&(t=pt(i)>=1e4?ot.numberFormat(i,-1):ot.numberFormat(i,-1,O,"")),t},getSeriesExtremes:function(){var t=this,e=t.chart;t.hasVisibleSeries=!1,t.dataMin=t.dataMax=t.ignoreMinPadding=t.ignoreMaxPadding=null,t.buildStacks&&t.buildStacks(),Vt(t.series,function(i){if(i.visible||!e.options.chart.ignoreHiddenSeries){var n;n=i.options.threshold;var o;t.hasVisibleSeries=!0,t.isLog&&n<=0&&(n=null),t.isXAxis?(n=i.xData,n.length&&(t.dataMin=ut(zt(t.dataMin,n[0]),k(n)),t.dataMax=dt(zt(t.dataMax,n[0]),w(n)))):(i.getExtremes(),o=i.dataMax,i=i.dataMin,c(i)&&c(o)&&(t.dataMin=ut(zt(t.dataMin,i),i),t.dataMax=dt(zt(t.dataMax,o),o)),c(n)&&(t.dataMin>=n?(t.dataMin=n,t.ignoreMinPadding=!0):t.dataMax<n&&(t.dataMax=n,t.ignoreMaxPadding=!0)))}})},translate:function(t,e,i,n,o,r){var a=this.linkedParent||this,l=1,c=0,h=n?a.oldTransA:a.transA,n=n?a.oldMin:a.min,d=a.minPixelPadding,o=(a.doPostTranslate||a.isLog&&o)&&a.lin2val;return h||(h=a.transA),i&&(l*=-1,c=a.len),a.reversed&&(l*=-1,c-=l*(a.sector||a.len)),e?(t=t*l+c,t-=d,t=t/h+n,o&&(t=a.lin2val(t))):(o&&(t=a.val2lin(t)),"between"===r&&(r=.5),t=l*(t-n)*h+c+l*d+(s(r)?h*r*a.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,o){var s,r,a,l=this.chart,c=this.left,h=this.top,d=i&&l.oldChartHeight||l.chartHeight,u=i&&l.oldChartWidth||l.chartWidth;s=this.transB;var p=function(t,e,i){return(t<e||t>i)&&(n?t=ut(dt(e,t),i):a=!0),t},o=zt(o,this.translate(t,null,null,i)),t=i=lt(o+s);return s=r=lt(d-o-s),isNaN(o)?a=!0:this.horiz?(s=h,r=d-this.bottom,t=i=p(t,c,c+this.width)):(t=c,i=u-this.right,s=r=p(s,h,h+this.height)),a&&!n?null:l.renderer.crispLine(["M",t,s,"L",i,r],e||1)},getLinearTickPositions:function(t,e,i){var n,o=_(ct(e/t)*t),r=_(ht(i/t)*t),a=[];if(e===i&&s(e))return[e];for(e=o;e<=r&&(a.push(e),e=_(e+t),e!==n);)n=e;return a},getMinorTickPositions:function(){var t,e=this.options,i=this.tickPositions,n=this.minorTickInterval,o=[],s=this.min;t=this.max;var r=t-s;if(r&&r/n<this.len/3)if(this.isLog)for(e=i.length,t=1;t<e;t++)o=o.concat(this.getLogTickPositions(n,i[t-1],i[t],!0));else if(this.isDatetimeAxis&&"auto"===e.minorTickInterval)o=o.concat(this.getTimeTicks(this.normalizeTimeTickInterval(n),s,t,e.startOfWeek));else for(i=s+(i[0]-s)%n;i<=t;i+=n)o.push(i);return this.trimTicks(o),o},adjustForMinRange:function(){var t,e,i,n,o,s,r=this.options,a=this.min,l=this.max,h=this.dataMax-this.dataMin>=this.minRange;if(this.isXAxis&&this.minRange===O&&!this.isLog&&(c(r.min)||c(r.max)?this.minRange=null:(Vt(this.series,function(t){for(o=t.xData,i=s=t.xIncrement?1:o.length-1;i>0;i--)n=o[i]-o[i-1],(e===O||n<e)&&(e=n)}),this.minRange=ut(5*e,this.dataMax-this.dataMin))),l-a<this.minRange){var d=this.minRange;t=(d-l+a)/2,t=[a-t,zt(r.min,a-t)],h&&(t[2]=this.dataMin),a=w(t),l=[a+d,zt(r.max,a+d)],h&&(l[2]=this.dataMax),l=k(l),l-a<d&&(t[0]=l-d,t[1]=zt(r.min,l-d),a=w(t))}this.min=a,this.max=l},setAxisTranslation:function(t){var e,n=this,o=n.max-n.min,s=n.axisPointRange||0,r=0,a=0,l=n.linkedParent,h=!!n.categories,d=n.transA,u=n.isXAxis;(u||h||s)&&(l?(r=l.minPointOffset,a=l.pointRangePadding):Vt(n.series,function(t){var l=h?1:u?t.pointRange:n.axisPointRange||0,d=t.options.pointPlacement,p=t.closestPointRange;l>o&&(l=0),s=dt(s,l),n.single||(r=dt(r,i(d)?0:l/2),a=dt(a,"on"===d?0:l)),!t.noSharedTooltip&&c(p)&&(e=c(e)?ut(e,p):p)}),l=n.ordinalSlope&&e?n.ordinalSlope/e:1,n.minPointOffset=r*=l,n.pointRangePadding=a*=l,n.pointRange=ut(s,o),u&&(n.closestPointRange=e)),t&&(n.oldTransA=d),n.translationSlope=n.transA=d=n.len/(o+a||1),n.transB=n.horiz?n.left:n.bottom,n.minPixelPadding=d*r},setTickInterval:function(t){var e=this,i=e.chart,n=e.options,o=e.isLog,a=e.isDatetimeAxis,l=e.isXAxis,h=e.isLinked,d=n.maxPadding,u=n.minPadding,p=n.tickInterval,f=n.tickPixelInterval,g=e.categories;!a&&!g&&!h&&this.getTickAmount(),h?(e.linkedParent=i[e.coll][n.linkedTo],i=e.linkedParent.getExtremes(),e.min=zt(i.min,i.dataMin),e.max=zt(i.max,i.dataMax),n.type!==e.linkedParent.options.type&&S(11,1)):(e.min=zt(e.userMin,n.min,e.dataMin),e.max=zt(e.userMax,n.max,e.dataMax)),o&&(!t&&ut(e.min,zt(e.dataMin,e.min))<=0&&S(10,1),e.min=_(r(e.min)),e.max=_(r(e.max))),e.range&&c(e.max)&&(e.userMin=e.min=dt(e.min,e.max-e.range),e.userMax=e.max,e.range=null),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),g||e.axisPointRange||e.usePercentage||h||!c(e.min)||!c(e.max)||!(i=e.max-e.min)||(c(n.min)||c(e.userMin)||!u||!(e.dataMin<0)&&e.ignoreMinPadding||(e.min-=i*u),c(n.max)||c(e.userMax)||!d||!(e.dataMax>0)&&e.ignoreMaxPadding||(e.max+=i*d)),s(n.floor)&&(e.min=dt(e.min,n.floor)),s(n.ceiling)&&(e.max=ut(e.max,n.ceiling)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:h&&!p&&f===e.linkedParent.options.tickPixelInterval?p=e.linkedParent.tickInterval:zt(p,this.tickAmount?(e.max-e.min)/dt(this.tickAmount-1,1):void 0,g?1:(e.max-e.min)*f/dt(e.len,f)),l&&!t&&Vt(e.series,function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)}),e.setAxisTranslation(!0),e.beforeSetTickPositions&&e.beforeSetTickPositions(),e.postProcessTickInterval&&(e.tickInterval=e.postProcessTickInterval(e.tickInterval)),e.pointRange&&(e.tickInterval=dt(e.pointRange,e.tickInterval)),t=zt(n.minTickInterval,e.isDatetimeAxis&&e.closestPointRange),!p&&e.tickInterval<t&&(e.tickInterval=t),a||o||p||(e.tickInterval=b(e.tickInterval,null,y(e.tickInterval),zt(n.allowDecimals,!(e.tickInterval>.5&&e.tickInterval<5&&e.max>1e3&&e.max<9999)),!!this.tickAmount)),!this.tickAmount&&this.len&&(e.tickInterval=e.unsquish()),this.setTickPositions()},setTickPositions:function(){var t,e,i=this.options,n=i.tickPositions,o=i.tickPositioner,s=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&&(this.tickPositions=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),o&&(o=o.apply(this,[this.min,this.max])))&&
16(this.tickPositions=t=o),this.isLinked||(this.trimTicks(t,s,r),this.min===this.max&&c(this.min)&&!this.tickAmount&&(e=!0,this.min-=.5,this.max+=.5),this.single=e,!n&&!o&&this.adjustTickAmount())},trimTicks:function(t,e,i){var n=t[0],o=t[t.length-1],s=this.minPointOffset||0;e?this.min=n:this.min-s>n&&t.shift(),i?this.max=o:this.max+s<o&&t.pop(),0===t.length&&c(n)&&t.push((o+n)/2)},getTickAmount:function(){var t,e={},i=this.options,n=i.tickAmount,o=i.tickPixelInterval;!c(i.tickInterval)&&this.len<o&&!this.isRadial&&!this.isLog&&i.startOnTick&&i.endOnTick&&(n=2),!n&&this.chart.options.chart.alignTicks!==!1&&i.alignTicks!==!1&&(Vt(this.chart[this.coll],function(i){var n=i.options,o=i.horiz,n=[o?n.left:n.top,o?n.width:n.height,n.pane].join(",");e[n]?i.series.length&&(t=!0):e[n]=1}),t&&(n=ht(this.len/o)+1)),n<4&&(this.finalTickAmt=n,n=5),this.tickAmount=n},adjustTickAmount:function(){var t=this.tickInterval,e=this.tickPositions,i=this.tickAmount,n=this.finalTickAmt,o=e&&e.length;if(o<i){for(;e.length<i;)e.push(_(e[e.length-1]+t));this.transA*=(o-1)/(i-1),this.max=e[e.length-1]}else o>i&&(this.tickInterval*=2,this.setTickPositions());if(c(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=O}},setScale:function(){var t,e,i,n,o=this.stacks;if(this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),n=this.len!==this.oldAxisLength,Vt(this.series,function(t){(t.isDirtyData||t.isDirty||t.xAxis.isDirty)&&(i=!0)}),n||i||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax){if(!this.isXAxis)for(t in o)for(e in o[t])o[t][e].total=null,o[t][e].cum=0;this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=n||this.min!==this.oldMin||this.max!==this.oldMax)}else if(!this.isXAxis){this.oldStacks&&(o=this.stacks=this.oldStacks);for(t in o)for(e in o[t])o[t][e].cum=o[t][e].total}},setExtremes:function(t,e,i,n,o){var s=this,r=s.chart,i=zt(i,!0);Vt(s.series,function(t){delete t.kdTree}),o=Bt(o,{min:t,max:e}),te(s,"setExtremes",o,function(){s.userMin=t,s.userMax=e,s.eventArgs=o,s.isDirtyExtremes=!0,i&&r.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,o=this.options;return this.allowZoomOutside||(c(i)&&t<=ut(i,zt(o.min,i))&&(t=O),c(n)&&e>=dt(n,zt(o.max,n))&&(e=O)),this.displayBtn=t!==O||e!==O,this.setExtremes(t,e,!1,O,{trigger:"zoom"}),!0},setAxisSize:function(){var t=this.chart,e=this.options,i=e.offsetLeft||0,n=this.horiz,o=zt(e.width,t.plotWidth-i+(e.offsetRight||0)),s=zt(e.height,t.plotHeight),r=zt(e.top,t.plotTop),e=zt(e.left,t.plotLeft+i),i=/%$/;i.test(s)&&(s=parseFloat(s)/100*t.plotHeight),i.test(r)&&(r=parseFloat(r)/100*t.plotHeight+t.plotTop),this.left=e,this.top=r,this.width=o,this.height=s,this.bottom=t.chartHeight-s-r,this.right=t.chartWidth-o-e,this.len=dt(n?o:s,0),this.pos=n?e:r},getExtremes:function(){var t=this.isLog;return{min:t?_(a(this.min)):this.min,max:t?_(a(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?a(this.min):this.min,e=e?a(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=(zt(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,o=this.options.labels,s=this.horiz,r=this.tickInterval,a=r,l=this.len/(((this.categories?1:0)+this.max-this.min)/r),h=o.rotation,d=this.chart.renderer.fontMetrics(o.style.fontSize,n[0]&&n[0].label),u=Number.MAX_VALUE,p=function(t){return t/=l||1,t=t>1?ht(t):1,t*r};return s?(i=c(h)?[h]:l<zt(o.autoRotationLimit,80)&&!o.staggerLines&&!o.step&&o.autoRotation)&&Vt(i,function(i){var n;(i===h||i&&i>=-90&&i<=90)&&(e=p(pt(d.h/gt(vt*i))),n=e+pt(i/360),n<u&&(u=n,t=i,a=e))}):a=p(d.h),this.autoRotation=i,this.labelRotation=t,a},renderUnsquish:function(){var e,n=this.chart,o=n.renderer,s=this.tickPositions,r=this.ticks,a=this.options.labels,l=this.horiz,c=n.margin,h=this.categories?s.length:s.length-1,d=this.slotWidth=l&&!a.step&&!a.rotation&&(this.staggerLines||1)*n.plotWidth/h||!l&&(c[3]&&c[3]-n.spacing[3]||.33*n.chartWidth),u=dt(1,lt(d-2*(a.padding||5))),p={},c=o.fontMetrics(a.style.fontSize,r[0]&&r[0].label),h=a.style.textOverflow,f=0;if(i(a.rotation)||(p.rotation=a.rotation),this.autoRotation)Vt(s,function(t){(t=r[t])&&t.labelLength>f&&(f=t.labelLength)}),f>u&&f>c.h?p.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(e={width:u+"px"},!h))for(e.textOverflow="clip",d=s.length;!l&&d--;)u=s[d],(u=r[u].label)&&("ellipsis"===u.styles.textOverflow&&u.css({textOverflow:"clip"}),u.getBBox().height>this.len/s.length-(c.h-c.f)&&(u.specCss={textOverflow:"ellipsis"}));p.rotation&&(e={width:(f>
16.5*n.chartHeight?.33*n.chartHeight:n.chartHeight)+"px"},!h)&&(e.textOverflow="ellipsis"),this.labelAlign=p.align=a.align||this.autoLabelAlign(this.labelRotation),Vt(s,function(i){var n=(i=r[i])&&i.label;n&&(e&&n.css(t(e,n.specCss)),delete n.specCss,n.attr(p),i.rotation=p.rotation)}),this.tickRotCorr=o.rotCorr(c.b,this.labelRotation||0,2===this.side)},hasData:function(){return this.hasVisibleSeries||c(this.min)&&c(this.max)&&!!this.tickPositions},getOffset:function(){var t,e,i,n,o=this,s=o.chart,r=s.renderer,a=o.options,l=o.tickPositions,h=o.ticks,d=o.horiz,u=o.side,p=s.inverted?[1,0,3,2][u]:u,f=0,g=0,m=a.title,v=a.labels,y=0,b=s.axisOffset,s=s.clipOffset,x=[-1,1,1,-1][u];if(t=o.hasData(),o.showAxis=e=t||zt(a.showEmpty,!0),o.staggerLines=o.horiz&&v.staggerLines,o.axisGroup||(o.gridGroup=r.g("grid").attr({zIndex:a.gridZIndex||1}).add(),o.axisGroup=r.g("axis").attr({zIndex:a.zIndex||2}).add(),o.labelGroup=r.g("axis-labels").attr({zIndex:v.zIndex||7}).addClass("highcharts-"+o.coll.toLowerCase()+"-labels").add()),t||o.isLinked)Vt(l,function(t){h[t]?h[t].addLabel():h[t]=new M(o,t)}),o.renderUnsquish(),Vt(l,function(t){0!==u&&2!==u&&{1:"left",3:"right"}[u]!==o.labelAlign||(y=dt(h[t].getLabelSize(),y))}),o.staggerLines&&(y*=o.staggerLines,o.labelOffset=y);else for(n in h)h[n].destroy(),delete h[n];m&&m.text&&m.enabled!==!1&&(o.axisTitle||(o.axisTitle=r.text(m.text,0,0,m.useHTML).attr({zIndex:7,rotation:m.rotation||0,align:m.textAlign||{low:"left",middle:"center",high:"right"}[m.align]}).addClass("highcharts-"+this.coll.toLowerCase()+"-title").css(m.style).add(o.axisGroup),o.axisTitle.isNew=!0),e&&(f=o.axisTitle.getBBox()[d?"height":"width"],i=m.offset,g=c(i)?0:zt(m.margin,d?5:10)),o.axisTitle[e?"show":"hide"]()),o.offset=x*zt(a.offset,b[u]),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},r=2===u?o.tickRotCorr.y:0,d=y+g+(y&&x*(d?zt(v.y,o.tickRotCorr.y+8):v.x)-r),o.axisTitleMargin=zt(i,d),b[u]=dt(b[u],o.axisTitleMargin+f+x*o.offset,d),f=2*ct(a.lineWidth/2),a.offset&&(f=dt(0,f-a.offset)),s[p]=dt(s[p],f)},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,o=this.horiz,s=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",o?this.left:s,o?n:this.top,"L",o?e.chartWidth-this.right:s,o?n:e.chartHeight-this.bottom],t)},getTitlePosition:function(){var t=this.horiz,i=this.left,n=this.top,o=this.len,s=this.options.title,r=t?i:n,a=this.opposite,l=this.offset,c=s.x||0,h=s.y||0,d=e(s.style.fontSize||12),o={low:r+(t?0:o),middle:r+o/2,high:r+(t?o:0)}[s.align],i=(t?n+this.height:i)+(t?1:-1)*(a?-1:1)*this.axisTitleMargin+(2===this.side?d:0);return{x:t?o+c:i+(a?this.width:0)+l+c,y:t?i+h-(a?this.height:0)+l:o+h}},render:function(){var t,e,i,n=this,o=n.chart,s=o.renderer,r=n.options,l=n.isLog,h=n.isLinked,d=n.tickPositions,u=n.axisTitle,p=n.ticks,f=n.minorTicks,g=n.alternateBands,m=r.stackLabels,v=r.alternateGridColor,y=n.tickmarkOffset,b=r.lineWidth,x=o.hasRendered&&c(n.oldMin)&&!isNaN(n.oldMin),k=n.showAxis;n.labelEdge.length=0,n.overlap=!1,Vt([p,f,g],function(t){for(var e in t)t[e].isActive=!1}),(n.hasData()||h)&&(n.minorTickInterval&&!n.categories&&Vt(n.getMinorTickPositions(),function(t){f[t]||(f[t]=new M(n,t,"minor")),x&&f[t].isNew&&f[t].render(null,!0),f[t].render(null,!1,1)}),d.length&&(Vt(d,function(t,e){(!h||t>=n.min&&t<=n.max)&&(p[t]||(p[t]=new M(n,t)),x&&p[t].isNew&&p[t].render(e,!0,.1),p[t].render(e))}),y&&(0===n.min||n.single))&&(p[-1]||(p[-1]=new M(n,(-1),null,(!0))),p[-1].render(-1)),v&&Vt(d,function(t,o){o%2===0&&t<n.max&&(g[t]||(g[t]=new ot.PlotLineOrBand(n)),e=t+y,i=d[o+1]!==O?d[o+1]+y:n.max,g[t].options={from:l?a(e):e,to:l?a(i):i,color:v},g[t].render(),g[t].isActive=!0)}),n._addedPlotLB||(Vt((r.plotLines||[]).concat(r.plotBands||[]),function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),Vt([p,f,g],function(t){var e,i,n=[],s=H?H.duration||500:0,r=function(){for(i=n.length;i--;)t[n[i]]&&!t[n[i]].isActive&&(t[n[i]].destroy(),delete t[n[i]])};for(e in t)t[e].isActive||(t[e].render(e,!1,0),t[e].isActive=!1,n.push(e));t!==g&&o.hasRendered&&s?s&&setTimeout(r,s):r()}),b&&(t=n.getLinePath(b),n.axisLine?n.axisLine.animate({d:t}):n.axisLine=s.path(t).attr({stroke:r.lineColor,"stroke-width":b,zIndex:7}).add(n.axisGroup),n.axisLine[k?"show":"hide"]()),u&&k&&(u[u.isNew?"attr":"animate"](n.getTitlePosition()),u.isNew=!1),m&&m.enabled&&n.renderStackTotals(),n.isDirty=!1},redraw:function(){this.render(),Vt(this.plotLinesAndBands,function(t){t.render()}),Vt(this.series,function(t){t.isDirty=!0})},destroy:function(t){var e,i=this,n=i.stacks,o=i.plotLinesAndBands;t||Jt(i);for(e in n)T(n[e]),n[e]=null;for(Vt([i.ticks,i.minorTicks,i.alternateBands],function(t){T(t)}),t=o.length;t--;)o[t].destroy();Vt("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=this.crosshair,o=n.animation;!this.crosshair||(c(e)||!zt(this.crosshair.snap,!0))===!1||e&&e.series&&e.series[this.coll]!==this?this.hideCrosshair():(zt(n.snap,!0)?c(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:zt(e.stackY,e.y))||null:this.getPlotLinePath(null,null,null,null,i)||null,null===i?this.hideCrosshair():this.cross?this.cross.attr({visibility:"visible"})[o?"animate":"attr"]({d:i},o):(o=this.categories&&!this.isRadial,o={"stroke-width":n.width||(o?this.transA:1),stroke:n.color||(o?"rgba(155,200,255,0.2)":"#C0C0C0"),zIndex:n.zIndex||2},n.dashStyle&&(o.dashstyle=n.dashStyle),this.cross=this.chart.renderer.path(i).attr(o).add()))},hideCrosshair:function(){this.cross&&this.cross.hide()}},Bt(ue.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath(e,null,null,!0),n=this.getPlotLinePath(t,null,null,!0);return n&&i&&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 ot.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,o=e.length;o--;
16)e[o].id===t&&e[o].destroy();Vt([i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]],function(e){for(o=e.length;o--;)e[o].id===t&&l(e,e[o])})}}),ue.prototype.getTimeTicks=function(t,e,i,n){var o,s=[],r={},a=R.global.useUTC,l=new z(e-m(e)),h=t.unitRange,d=t.count;if(c(e)){l[Q](h>=B.second?0:d*ct(l.getMilliseconds()/d)),h>=B.second&&l[Z](h>=B.minute?0:d*ct(l.getSeconds()/d)),h>=B.minute&&l[J](h>=B.hour?0:d*ct(l[U]()/d)),h>=B.hour&&l[tt](h>=B.day?0:d*ct(l[q]()/d)),h>=B.day&&l[et](h>=B.month?1:d*ct(l[V]()/d)),h>=B.month&&(l[it](h>=B.year?0:d*ct(l[X]()/d)),o=l[K]()),h>=B.year&&(o-=o%d,l[nt](o)),h===B.week&&l[et](l[V]()-l[G]()+zt(n,1)),e=1,(W||Y)&&(l=l.getTime(),l=new z(l+m(l))),o=l[K]();for(var n=l.getTime(),u=l[X](),p=l[V](),f=(B.day+(a?m(l):6e4*l.getTimezoneOffset()))%B.day;n<i;)s.push(n),h===B.year?n=j(o+e*d,0):h===B.month?n=j(o,u+e*d):a||h!==B.day&&h!==B.week?n+=h*d:n=j(o,u,p+e*d*(h===B.day?1:7)),e++;s.push(n),Vt(Xt(s,function(t){return h<=B.hour&&t%B.day===f}),function(t){r[t]="day"})}return s.info=Bt(t,{higherRanks:r,totalRange:h*d}),s},ue.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]],o=n[n.length-1],s=B[o[0]],r=o[1];for(i=0;i<n.length&&(o=n[i],s=B[o[0]],r=o[1],!(n[i+1]&&t<=(s*r[r.length-1]+B[n[i+1][0]])/2));i++);return s===B.year&&t<5*s&&(r=[1,2,5]),n=b(t/s,r,"year"===o[0]?dt(y(t/s),1):1),{unitRange:s,count:n,unitName:o[0]}},ue.prototype.getLogTickPositions=function(t,e,i,n){var o=this.options,s=this.len,l=[];if(n||(this._minorAutoInterval=null),t>=.5)t=lt(t),l=this.getLinearTickPositions(t,e,i);else if(t>=.08)for(var c,h,d,u,p,s=ct(e),o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];s<i+1&&!p;s++)for(h=o.length,c=0;c<h&&!p;c++)d=r(a(s)*o[c]),d>e&&(!n||u<=i)&&u!==O&&l.push(u),u>i&&(p=!0),u=d;else e=a(e),i=a(i),t=o[n?"minorTickInterval":"tickInterval"],t=zt("auto"===t?null:t,this._minorAutoInterval,(i-e)*(o.tickPixelInterval/(n?5:1))/((n?s/this.tickPositions.length:s)||1)),t=b(t,null,y(t)),l=Qt(this.getLinearTickPositions(t,e,i),r),n||(this._minorAutoInterval=t/5);return n||(this.tickInterval=t),l};var pe=ot.Tooltip=function(){this.init.apply(this,arguments)};pe.prototype={init:function(t,i){var n=i.borderWidth,o=i.style,s=e(o.padding);this.chart=t,this.options=i,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.label=t.renderer.label("",0,0,i.shape||"callout",null,null,i.useHTML,null,"tooltip").attr({padding:s,fill:i.backgroundColor,"stroke-width":n,r:i.borderRadius,zIndex:8}).css(o).css({padding:0}).add().attr({y:-9999}),Et||this.label.shadow(i.shadow),this.shared=i.shared},destroy:function(){this.label&&(this.label=this.label.destroy()),clearTimeout(this.hideTimer),clearTimeout(this.tooltipTimeout)},move:function(t,e,i,n){var o=this,s=o.now,r=o.options.animation!==!1&&!o.isHidden&&(pt(t-s.x)>1||pt(e-s.y)>1),a=o.followPointer||o.len>1;Bt(s,{x:r?(2*s.x+t)/3:t,y:r?(s.y+e)/2:e,anchorX:a?O:r?(2*s.anchorX+i)/3:i,anchorY:a?O:r?(s.anchorY+n)/2:n}),o.label.attr(s),r&&(clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){o&&o.move(t,e,i,n)},32))},hide:function(t){var e=this;clearTimeout(this.hideTimer),this.isHidden||(this.hideTimer=setTimeout(function(){e.label.fadeOut(),e.isHidden=!0},zt(t,this.options.hideDelay,500)))},getAnchor:function(t,e){var i,n,o,s=this.chart,r=s.inverted,a=s.plotTop,l=s.plotLeft,c=0,h=0,t=d(t);return i=t[0].tooltipPos,this.followPointer&&e&&(e.chartX===O&&(e=s.pointer.normalize(e)),i=[e.chartX-s.plotLeft,e.chartY-a]),i||(Vt(t,function(t){n=t.series.yAxis,o=t.series.xAxis,c+=t.plotX+(!r&&o?o.left-l:0),h+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!r&&n?n.top-a:0)}),c/=t.length,h/=t.length,i=[r?s.plotWidth-h:c,this.shared&&!r&&t.length>1&&e?e.chartY-a:r?s.plotHeight-c:h]),Qt(i,lt)},getPosition:function(t,e,i){var n,o=this.chart,s=this.distance,r={},a=i.h||0,l=["y",o.chartHeight,e,i.plotY+o.plotTop],c=["x",o.chartWidth,t,i.plotX+o.plotLeft],h=zt(i.ttBelow,o.inverted&&!i.negative||!o.inverted&&i.negative),d=function(t,e,
16i,n){var o=i<n-s,l=n+s+i<e,c=n-s-i;if(n+=s,h&&l)r[t]=n;else if(!h&&o)r[t]=c;else if(o)r[t]=c-a<0?c:c-a;else{if(!l)return!1;r[t]=n+a+i>e?n:n+a}},u=function(t,e,i,n){return!(n<s||n>e-s)&&void(r[t]=n<i/2?1:n>e-i/2?e-i-2:n-i/2)},p=function(t){var e=l;l=c,c=e,n=t},f=function(){d.apply(0,l)!==!1?u.apply(0,c)===!1&&!n&&(p(!0),f()):n?r.x=r.y=0:(p(!0),f())};return(o.inverted||this.len>1)&&p(),f(),r},defaultFormatter:function(t){var e,i=this.points||d(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,o,s,r=this.chart,a=this.label,l=this.options,c={},h=[];s=l.formatter||this.defaultFormatter;var u,c=r.hoverPoints,p=this.shared;clearTimeout(this.hideTimer),this.followPointer=d(t)[0].series.tooltipOptions.followPointer,o=this.getAnchor(t,e),i=o[0],n=o[1],!p||t.series&&t.series.noSharedTooltip?c=t.getLabelConfig():(r.hoverPoints=t,c&&Vt(c,function(t){t.setState()}),Vt(t,function(t){t.setState("hover"),h.push(t.getLabelConfig())}),c={x:t[0].category,y:t[0].y},c.points=h,this.len=h.length,t=t[0]),s=s.call(c,this),c=t.series,this.distance=zt(c.tooltipOptions.distance,16),s===!1?this.hide():(this.isHidden&&(ne(a),a.attr("opacity",1).show()),a.attr({text:s}),u=l.borderColor||t.color||c.color||"#606060",a.attr({stroke:u}),this.updatePosition({plotX:i,plotY:n,negative:t.negative,
17ttBelow:t.ttBelow,h:o[2]||0}),this.isHidden=!1),te(r,"tooltipRefresh",{text:s,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(lt(i.x),lt(i.y||0),t.plotX+e.plotLeft,t.plotY+e.plotTop)},getXDateFormat:function(t,e,i){var n,o,s,e=e.dateTimeLabelFormats,r=i&&i.closestPointRange,a={millisecond:15,second:12,minute:9,hour:6,day:3},l="millisecond";if(r){s=F("%m-%d %H:%M:%S.%L",t.x);for(o in B){if(r===B.week&&+F("%w",t.x)===i.options.startOfWeek&&"00:00:00.000"===s.substr(6)){o="week";break}if(B[o]>r){o=l;break}if(a[o]&&s.substr(a[o])!=="01-01 00:00:00.000".substr(a[o]))break;"week"!==o&&(l=o)}o&&(n=e[o])}else n=e.day;return n||e.year},tooltipFooterHeaderFormatter:function(t,e){var i=e?"footer":"header",n=t.series,o=n.tooltipOptions,r=o.xDateFormat,a=n.xAxis,l=a&&"datetime"===a.options.type&&s(t.key),i=o[i+"Format"];return l&&!r&&(r=this.getXDateFormat(t,o,a)),l&&r&&(i=i.replace("{point.key}","{point.key:"+r+"}")),v(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 fe;L=st.documentElement.ontouchstart!==O;var ge=ot.Pointer=function(t,e){this.init(t,e)};if(ge.prototype={init:function(t,e){var i,n=e.chart,o=n.events,s=Et?"":n.zoomType,n=t.inverted;this.options=e,this.chart=t,this.zoomX=i=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=i&&!n||s&&n,this.zoomVert=s&&!n||i&&n,this.hasZoom=i||s,this.runChartClick=o&&!!o.click,this.pinchDown=[],this.lastValidTouch={},ot.Tooltip&&e.tooltip.enabled&&(t.tooltip=new pe(t,e.tooltip),this.followTouchMove=zt(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},normalize:function(t,e){var i,n,t=t||window.event,t=ee(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=Kt(this.chart.container)),n.pageX===O?(i=dt(t.x,t.clientX-e.left),n=t.y):(i=n.pageX-e.left,n=n.pageY-e.top),Bt(t,{chartX:lt(i),chartY:lt(n)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return Vt(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,o,s,r=this.chart,a=r.series,l=r.tooltip,c=!!l&&l.shared,h=r.hoverPoint,d=r.hoverSeries,u=r.chartWidth,p=[];if(!c&&!d)for(e=0;e<a.length;e++)!a[e].directTouch&&a[e].options.stickyTracking||(a=[]);if(!c&&d&&d.directTouch&&h?o=h:(Vt(a,function(e){i=e.noSharedTooltip&&c,n=!c&&e.directTouch,e.visible&&!i&&!n&&zt(e.options.enableMouseTracking,!0)&&(s=e.searchPoint(t,!i&&1===e.kdDimensions))&&p.push(s)}),Vt(p,function(t){t&&"number"==typeof t.dist&&t.dist<u&&(u=t.dist,o=t)}
17)),o&&(o!==this.prevKDPoint||l&&l.isHidden)){if(c&&!o.series.noSharedTooltip){for(e=p.length;e--;)(p[e].clientX!==o.clientX||p[e].series.noSharedTooltip)&&p.splice(e,1);p.length&&l&&l.refresh(p,t),Vt(p,function(e){e!==o&&e.onMouseOver(t)}),(d&&d.directTouch&&h||o).onMouseOver(t)}else l&&l.refresh(o,t),o.onMouseOver(t);this.prevKDPoint=o}else a=d&&d.tooltipOptions.followPointer,l&&a&&!l.isHidden&&(a=l.getAnchor([{}],t),l.updatePosition({plotX:a[0],plotY:a[1]}));l&&!this._onDocumentMouseMove&&(this._onDocumentMouseMove=function(t){Ot[fe]&&Ot[fe].pointer.onDocumentMouseMove(t)},Zt(st,"mousemove",this._onDocumentMouseMove)),Vt(r.axes,function(e){e.drawCrosshair(t,zt(o,h))})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,o=i.hoverPoint,s=i.hoverPoints,r=i.tooltip,a=r&&r.shared?s:o;(t=t&&r&&a)&&d(a)[0].plotX===O&&(t=!1),t?(r.refresh(a),o&&(o.setState(o.state,!0),Vt(i.axes,function(t){zt(t.options.crosshair&&t.options.crosshair.snap,!0)?t.drawCrosshair(null,o):t.hideCrosshair()}))):(o&&o.onMouseOut(),s&&Vt(s,function(t){t.setState()}),n&&n.onMouseOut(),r&&r.hide(e),this._onDocumentMouseMove&&(Jt(st,"mousemove",this._onDocumentMouseMove),this._onDocumentMouseMove=null),Vt(i.axes,function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;Vt(n.series,function(o){i=t||o.getPlotBox(),o.xAxis&&o.xAxis.zoomEnabled&&(o.group.attr(i),o.markerGroup&&(o.markerGroup.attr(i),o.markerGroup.clip(e?n.clipRect:null)),o.dataLabelsGroup&&o.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,o=t.chartX,s=t.chartY,r=this.zoomHor,a=this.zoomVert,l=i.plotLeft,c=i.plotTop,h=i.plotWidth,d=i.plotHeight,u=this.mouseDownX,p=this.mouseDownY,f=n.panKey&&t[n.panKey+"Key"];o<l?o=l:o>l+h&&(o=l+h),s<c?s=c:s>c+d&&(s=c+d),this.hasDragged=Math.sqrt(Math.pow(u-o,2)+Math.pow(p-s,2)),this.hasDragged>10&&(e=i.isInsidePlot(u-l,p-c),i.hasCartesianSeries&&(this.zoomX||this.zoomY)&&e&&!f&&!this.selectionMarker&&(this.selectionMarker=i.renderer.rect(l,c,r?1:h,a?1:d,0).attr({fill:n.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()),this.selectionMarker&&r&&(o-=u,this.selectionMarker.attr({width:pt(o),x:(o>0?0:o)+u})),this.selectionMarker&&a&&(o=s-p,this.selectionMarker.attr({height:pt(o),y:(o>0?0:o)+p})),e&&!this.selectionMarker&&n.panning&&i.pan(t,n.panning))},drop:function(t){var e=this,i=this.chart,n=this.hasPinched;if(this.selectionMarker){var o,s={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,d=r.attr?r.attr("height"):r.height;(this.hasDragged||n)&&(Vt(i.axes,function(i){if(i.zoomEnabled&&c(i.min)&&(n||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var r=i.horiz,u="touchend"===t.type?i.minPixelPadding:0,p=i.toValue((r?a:l)+u),r=i.toValue((r?a+h:l+d)-u);s[i.coll].push({axis:i,min:ut(p,r),max:dt(p,r)}),o=!0}}),o&&te(i,"selection",s,function(t){i.zoom(Bt(t,n?{animation:!1}:null))})),this.selectionMarker=this.selectionMarker.destroy(),n&&this.scaleGroups()}i&&(u(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){Ot[fe]&&Ot[fe].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=Ot[fe];t&&(t.pointer.reset(),t.pointer.chartPosition=null)},onContainerMouseMove:function(t){var e=this.chart;fe=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=h(t,"class")){if(i.indexOf(e)!==-1)return!0;
17if(i.indexOf("highcharts-container")!==-1)return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries,i=(t=t.relatedTarget||t.toElement)&&t.point&&t.point.series;!e||e.options.stickyTracking||this.inClass(t,"highcharts-tooltip")||i===e||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,o=e.plotTop,t=this.normalize(t);t.originalEvent=t,e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(te(i.series,"click",Bt(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(Bt(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-o)&&te(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)},Zt(e,"mouseleave",t.onContainerMouseLeave),1===$t&&Zt(st,"mouseup",t.onDocumentMouseUp),L&&(e.ontouchstart=function(e){t.onContainerTouchStart(e)},e.ontouchmove=function(e){t.onContainerTouchMove(e)},1===$t&&Zt(st,"touchend",t.onDocumentTouchEnd))},destroy:function(){var t;Jt(this.chart.container,"mouseleave",this.onContainerMouseLeave),$t||(Jt(st,"mouseup",this.onDocumentMouseUp),Jt(st,"touchend",this.onDocumentTouchEnd)),clearInterval(this.tooltipTimeout);for(t in this)this[t]=null}},Bt(ot.Pointer.prototype,{pinchTranslate:function(t,e,i,n,o,s){(this.zoomHor||this.pinchHor)&&this.pinchTranslateDirection(!0,t,e,i,n,o,s),(this.zoomVert||this.pinchVert)&&this.pinchTranslateDirection(!1,t,e,i,n,o,s)},pinchTranslateDirection:function(t,e,i,n,o,s,r,a){var l,c,h,d=this.chart,u=t?"x":"y",p=t?"X":"Y",f="chart"+p,g=t?"width":"height",m=d["plot"+(t?"Left":"Top")],v=a||1,y=d.inverted,b=d.bounds[t?"h":"v"],x=1===e.length,k=e[0][f],w=i[0][f],T=!x&&e[1][f],C=!x&&i[1][f],i=function(){!x&&pt(k-T)>20&&(v=a||pt(w-C)/pt(k-T)),c=(m-w)/v+k,l=d["plot"+(t?"Width":"Height")]/v};i(),e=c,e<b.min?(e=b.min,h=!0):e+l>b.max&&(e=b.max-l,h=!0),h?(w-=.8*(w-r[u][0]),x||(C-=.8*(C-r[u][1])),i()):r[u]=[w,C],y||(s[u]=c-m,s[g]=l),s=y?1/v:v,o[g]=l,o[u]=e,n[y?t?"scaleY":"scaleX":"scale"+p]=v,n["translate"+p]=s*m+(w-s*k)},pinch:function(t){var e=this,i=e.chart,n=e.pinchDown,o=t.touches,s=o.length,r=e.lastValidTouch,a=e.hasZoom,l=e.selectionMarker,c={},h=1===s&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),d={};s>1&&(e.initiated=!0),a&&e.initiated&&!h&&t.preventDefault(),Qt(o,function(t){return e.normalize(t)}),"touchstart"===t.type?(Vt(o,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],Vt(i.axes,function(t){if(t.zoomEnabled){var e=i.bounds[t.horiz?"h":"v"],n=t.minPixelPadding,o=t.toPixels(zt(t.options.min,t.dataMin)),s=t.toPixels(zt(t.options.max,t.dataMax)),r=ut(o,s),o=dt(o,s);e.min=ut(t.pos,r-n),e.max=dt(t.pos+t.len,o+n)}}),e.res=!0):n.length&&(l||(e.selectionMarker=l=Bt({destroy:Dt},i.plotBox)),e.pinchTranslate(n,o,c,l,d,r),e.hasPinched=a,e.scaleGroups(c,d),!a&&e.followTouchMove&&1===s?this.runPointActions(e.normalize(t)):e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(t,e){var i=this.chart;fe=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){Ot[fe]&&Ot[fe].pointer.drop(t)}}),rt.PointerEvent||rt.MSPointerEvent){var me={},ve=!!rt.PointerEvent,ye=function(){var t,e=[];e.item=function(t){return this[t]};for(t in me)me.hasOwnProperty(t)&&e.push({pageX:me[t].pageX,pageY:me[t].pageY,target:me[t].target});return e},be=function(t,e,i,n){t=t.originalEvent||t,"touch"!==t.pointerType&&t.pointerType!==t.MSPOINTER_TYPE_TOUCH||!Ot[fe]||(n(t),n=Ot[fe].pointer,n[e]({type:i,target:t.currentTarget,preventDefault:Dt,touches:ye()}))};Bt(ge.prototype,{onContainerPointerDown:function(t){be(t,"onContainerTouchStart","touchstart",function(t){me[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){be(t,"onContainerTouchMove","touchmove",function(t){me[t.pointerId]={pageX:t.pageX,pageY:t.pageY},me[t.pointerId].target||(me[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){be(t,"onDocumentTouchEnd","touchend",function(t){delete me[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,ve?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,ve?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(st,ve?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}
17),jt(ge.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&u(e.container,{"-ms-touch-action":It,"touch-action":It})}),jt(ge.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(Zt)}),jt(ge.prototype,"destroy",function(t){this.batchMSEvents(Jt),t.call(this)})}var xe=ot.Legend=function(t,e){this.init(t,e)};xe.prototype={init:function(e,i){var n=this,o=i.itemStyle,s=i.itemMarginTop||0;this.options=i,i.enabled&&(n.itemStyle=o,n.itemHiddenStyle=t(o,i.itemHiddenStyle),n.itemMarginTop=s,n.padding=o=zt(i.padding,8),n.initialItemX=o,n.initialItemY=o-5,n.maxItemWidth=0,n.chart=e,n.itemHeight=0,n.symbolWidth=zt(i.symbolWidth,16),n.pages=[],n.render(),Zt(n.chart,"endResize",function(){n.positionCheckboxes()}))},colorizeItem:function(t,e){var i,n=this.options,o=t.legendItem,s=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,c={fill:l};if(o&&o.css({fill:n,color:n}),s&&s.attr({stroke:l}),r){if(a&&r.isMarker)for(i in c.stroke=l,a=t.convertAttribs(a))o=a[i],o!==O&&(c[i]=o);r.attr(c)}},positionItem:function(t){var e=this.options,i=e.symbolPadding,e=!e.rtl,n=t._legendItemPos,o=n[0],n=n[1],s=t.checkbox;(t=t.legendGroup)&&t.element&&t.translate(e?o:this.legendWidth-o-2*i-4,n),s&&(s.x=o,s.y=n)},destroyItem:function(t){var e=t.checkbox;Vt(["legendItem","legendLine","legendSymbol","legendGroup"],function(e){t[e]&&(t[e]=t[e].destroy())}),e&&C(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,Vt(this.allItems,function(o){var s,r=o.checkbox;r&&(s=e+r.y+(t||0)+3,u(r,{left:i.translateX+o.checkboxOffset+r.x-20+"px",top:s+"px",display:s>e-6&&s<e+n-6?"":It}))}))},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?v(e.labelFormat,t):e.labelFormatter.call(t)})},renderItem:function(e){var i=this.chart,n=i.renderer,o=this.options,s="horizontal"===o.layout,r=this.symbolWidth,a=o.symbolPadding,l=this.itemStyle,c=this.itemHiddenStyle,h=this.padding,d=s?zt(o.itemDistance,20):0,u=!o.rtl,p=o.width,f=o.itemMarginBottom||0,g=this.itemMarginTop,m=this.initialItemX,v=e.legendItem,y=e.series&&e.series.drawLegendSymbol?e.series:e,b=y.options,b=this.createCheckboxForItem&&b&&b.showCheckbox,x=o.useHTML;v||(e.legendGroup=n.g("legend-item").attr({zIndex:1}).add(this.scrollGroup),e.legendItem=v=n.text("",u?r+a:-a,this.baseline||0,x).css(t(e.visible?l:c)).attr({align:u?"left":"right",zIndex:2}).add(e.legendGroup),this.baseline||(this.fontMetrics=n.fontMetrics(l.fontSize,v),this.baseline=this.fontMetrics.f+3+g,v.attr("y",this.baseline)),y.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,v,x,l,c),this.colorizeItem(e,e.visible),b&&this.createCheckboxForItem(e)),this.setText(e),n=v.getBBox(),r=e.checkboxOffset=o.itemWidth||e.legendItemWidth||r+a+n.width+d+(b?20:0),this.itemHeight=a=lt(e.legendItemHeight||n.height),s&&this.itemX-m+r>(p||i.chartWidth-2*h-m-o.x)&&(this.itemX=m,this.itemY+=g+this.lastLineHeight+f,this.lastLineHeight=0),this.maxItemWidth=dt(this.maxItemWidth,r),this.lastItemY=g+this.itemY+f,this.lastLineHeight=dt(a,this.lastLineHeight),e._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=r:(this.itemY+=g+a+f,this.lastLineHeight=a),this.offsetWidth=p||dt((s?this.itemX-m-d:r)+h,this.offsetWidth)},getAllItems:function(){var t=[];return Vt(this.chart.series,function(e){var i=e.options;zt(i.showInLegend,!c(i.linkedTo)&&O,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))}),t},adjustMargins:function(t,e){var i=this.chart,n=this.options,o=n.align[0]+n.verticalAlign[0]+n.layout[0];this.display&&!n.floating&&Vt([/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/],function(s,r){s.test(o)&&!c(t[r])&&(i[Ft[r]]=dt(i[Ft[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*n[r%2?"x":"y"]+zt(n.margin,12)+e[r]))})},render:function(){var t,e,i,n,o=this,s=o.chart,r=s.renderer,a=o.group,l=o.box,c=o.options,h=o.padding,d=c.borderWidth,u=c.backgroundColor;o.itemX=o.initialItemX,o.itemY=o.initialItemY,o.offsetWidth=0,o.lastItemY=0,a||(o.group=a=r.g("legend").attr({zIndex:7}).add(),o.contentGroup=r.g().attr({zIndex:1}).add(a),o.scrollGroup=r.g().add(o.contentGroup)),o.renderTitle(),t=o.getAllItems(),x(t,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),c.reversed&&t.reverse(),o.allItems=t,o.display=e=!!t.length,o.lastLineHeight=0,Vt(t,function(t){o.renderItem(t)}),i=(c.width||o.offsetWidth)+h,n=o.lastItemY+o.lastLineHeight+o.titleHeight,n=o.handleOverflow(n),n+=h,(d||u)&&(l?i>0&&n>0&&(l[l.isNew?"attr":"animate"](l.crisp({width:i,height:n})),l.isNew=!1):(o.box=l=r.rect(0,0,i,n,c.borderRadius,d||0).attr({stroke:c.borderColor,"stroke-width":d||0,fill:u||It}).add(a).shadow(c.shadow),l.isNew=!0),l[e?"show":"hide"]()),o.legendWidth=i,o.legendHeight=n,Vt(t,function(t){o.positionItem(t)}),e&&a.align(Bt({width:i,height:n},c),!0,"spacingBox"),s.isResizing||this.positionCheckboxes()},handleOverflow:function(t){var e,i,n=this,o=this.chart,s=o.renderer,r=this.options,a=r.y,a=o.spacingBox.height+("top"===r.verticalAlign?-a:a)-this.padding,l=r.maxHeight,c=this.clipRect,h=r.navigation,d=zt(h.animation,!0),u=h.arrowSize||12,p=this.nav,f=this.pages,g=this.padding,m=this.allItems,v=function(t){c.attr({height:t}),n.contentGroup.div&&(n.contentGroup.div.style.clip="rect("+g+"px,9999px,"+(g+t)+"px,0)")};
17return"horizontal"===r.layout&&(a/=2),l&&(a=ut(a,l)),f.length=0,t>a?(this.clipHeight=e=dt(a-20-this.titleHeight-g,0),this.currentPage=zt(this.currentPage,1),this.fullHeight=t,Vt(m,function(t,n){var o=t._legendItemPos[1],s=lt(t.legendItem.getBBox().height),r=f.length;(!r||o-f[r-1]>e&&(i||o)!==f[r-1])&&(f.push(i||o),r++),n===m.length-1&&o+s-f[r-1]>e&&f.push(o),o!==i&&(i=o)}),c||(c=n.clipRect=s.clipRect(0,g,9999,0),n.contentGroup.clip(c)),v(e),p||(this.nav=p=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,u,u).on("click",function(){n.scroll(-1,d)}).add(p),this.pager=s.text("",15,10).css(h.style).add(p),this.down=s.symbol("triangle-down",0,0,u,u).on("click",function(){n.scroll(1,d)}).add(p)),n.scroll(0),t=a):p&&(v(o.chartHeight),p.hide(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length,o=this.currentPage+t,s=this.clipHeight,r=this.options.navigation,a=r.activeColor,r=r.inactiveColor,l=this.pager,c=this.padding;o>n&&(o=n),o>0&&(e!==O&&A(e,this.chart),this.nav.attr({translateX:c,translateY:s+this.padding+7+this.titleHeight,visibility:"visible"}),this.up.attr({fill:1===o?r:a}).css({cursor:1===o?"default":"pointer"}),l.attr({text:o+"/"+n}),this.down.attr({x:18+this.pager.getBBox().width,fill:o===n?r:a}).css({cursor:o===n?"default":"pointer"}),i=-i[o-1]+this.initialItemY,this.scrollGroup.animate({translateY:i}),this.currentPage=o,this.positionCheckboxes(i))}},he=ot.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 o,s=this.chart.renderer,r=this.legendGroup,t=t.baseline-lt(.3*t.fontMetrics.b);i.lineWidth&&(o={"stroke-width":i.lineWidth},i.dashStyle&&(o.dashstyle=i.dashStyle),this.legendLine=s.path(["M",0,t,"L",e,t]).attr(o).add(r)),n&&n.enabled!==!1&&(i=n.radius,this.legendSymbol=e=s.symbol(this.symbol,e/2-i,t-i,2*i,2*i).add(r),e.isMarker=!0)}},(/Trident\/7\.0/.test(yt)||Tt)&&jt(xe.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),setTimeout(n)}),Yt=ot.Chart=function(){this.init.apply(this,arguments)},Yt.prototype={callbacks:[],init:function(e,i){var n,o=e.series;e.series=null,n=t(R,e),n.series=e.series=o,this.userOptions=e,o=n.chart,this.margin=this.splashArray("margin",o),this.spacing=this.splashArray("spacing",o);var s=o.events;this.bounds={h:{},v:{}},this.callback=i,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.hasCartesianSeries=o.showAxes;var r,a=this;if(a.index=Ot.length,Ot.push(a),$t++,o.reflow!==!1&&Zt(a,"load",function(){a.initReflow()}),s)for(r in s)Zt(a,r,s[r]);a.xAxis=[],a.yAxis=[],a.animation=!Et&&zt(o.animation,!0),a.pointCount=a.colorCounter=a.symbolCounter=0,a.firstRender()},initSeries:function(t){var e=this.options.chart;return(e=Nt[t.type||e.type||e.defaultSeriesType])||S(17,!0),e=new e,e.init(this,t),e},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,o=this.series,s=this.pointer,r=this.legend,a=this.isDirtyLegend,l=this.hasCartesianSeries,c=this.isDirtyBox,h=o.length,d=h,u=this.renderer,p=u.isHidden(),f=[];for(A(t,this),p&&this.cloneRenderTo(),this.layOutTitles();d--;)if(t=o[d],t.options.stacking&&(e=!0,t.isDirty)){i=!0;break}if(i)for(d=h;d--;)t=o[d],t.options.stacking&&(t.isDirty=!0);Vt(o,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,Vt(n,function(t){t.setScale()})),this.getMargins(),l&&(Vt(n,function(t){t.isDirty&&(c=!0)}),Vt(n,function(t){t.isDirtyExtremes&&(t.isDirtyExtremes=!1,f.push(function(){te(t,"afterSetExtremes",Bt(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(c||e)&&t.redraw()})),c&&this.drawChartBox(),Vt(o,function(t){t.isDirty&&t.visible&&(!t.isCartesian||t.xAxis)&&t.redraw()}),s&&s.reset(!0),u.draw(),te(this,"redraw"),p&&this.cloneRenderTo(!0),Vt(f,function(t){t.call()})},get:function(t){var e,i,n=this.axes,o=this.series;for(e=0;e<n.length;e++)if(n[e].options.id===t)return n[e];for(e=0;e<o.length;e++)if(o[e].options.id===t)return o[e];for(e=0;e<o.length;e++)for(i=o[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=d(e.xAxis||{}),e=e.yAxis=d(e.yAxis||{});Vt(i,function(t,e){t.index=e,t.isX=!0}
17),Vt(e,function(t,e){t.index=e}),i=i.concat(e),Vt(i,function(e){new ue(t,e)})},getSelectedPoints:function(){var t=[];return Vt(this.series,function(e){t=t.concat(Xt(e.points||[],function(t){return t.selected}))}),t},getSelectedSeries:function(){return Xt(this.series,function(t){return t.selected})},getStacks:function(){var t=this;Vt(t.yAxis,function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),Vt(t.series,function(e){!e.options.stacking||e.visible!==!0&&t.options.chart.ignoreHiddenSeries!==!1||(e.stackKey=e.type+zt(e.options.stack,""))})},setTitle:function(e,i,n){var o,s,r=this,a=r.options;s=a.title=t(a.title,e),o=a.subtitle=t(a.subtitle,i),a=o,Vt([["title",e,s],["subtitle",i,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,o=this.options,s=o.title,o=o.subtitle,r=this.renderer,a=this.spacingBox.width-44;!i||(i.css({width:(s.width||a)+"px"}).align(Bt({y:r.fontMetrics(s.style.fontSize,i).b-3},s),!1,"spacingBox"),s.floating||s.verticalAlign)||(e=i.getBBox().height),n&&(n.css({width:(o.width||a)+"px"}).align(Bt({y:e+(s.margin-13)+r.fontMetrics(s.style.fontSize,n).b},o),!1,"spacingBox"),!o.floating&&!o.verticalAlign&&(e=ht(e+n.getBBox().height))),i=this.titleOffset!==e,this.titleOffset=e,!this.isDirtyBox&&i&&(this.isDirtyBox=i,this.hasRendered&&zt(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var t=this.options.chart,e=t.width,t=t.height,i=this.renderToClone||this.renderTo;c(e)||(this.containerWidth=Ut(i,"width")),c(t)||(this.containerHeight=Ut(i,"height")),this.chartWidth=dt(0,e||this.containerWidth||600),this.chartHeight=dt(0,zt(t,this.containerHeight>19?this.containerHeight:400))},cloneRenderTo:function(t){var e=this.renderToClone,i=this.container;t?e&&(this.renderTo.appendChild(i),C(e),delete this.renderToClone):(i&&i.parentNode===this.renderTo&&this.renderTo.removeChild(i),this.renderToClone=e=this.renderTo.cloneNode(0),u(e,{position:"absolute",top:"-9999px",display:"block"}),e.style.setProperty&&e.style.setProperty("display","block","important"),st.body.appendChild(e),i&&e.appendChild(i))},getContainer:function(){var t,n,o,s,r=this.options.chart;this.renderTo=t=r.renderTo,s="highcharts-"+Mt++,i(t)&&(this.renderTo=t=st.getElementById(t)),t||S(13,!0),n=e(h(t,"data-highcharts-chart")),!isNaN(n)&&Ot[n]&&Ot[n].hasRendered&&Ot[n].destroy(),h(t,"data-highcharts-chart",this.index),t.innerHTML="",!r.skipClone&&!t.offsetWidth&&this.cloneRenderTo(),this.getChartSize(),n=this.chartWidth,o=this.chartHeight,this.container=t=p(Lt,{className:"highcharts-container"+(r.className?" "+r.className:""),id:s},Bt({position:"relative",overflow:"hidden",width:n+"px",height:o+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},r.style),this.renderToClone||t),this._cursor=t.style.cursor,this.renderer=r.forExport?new ce(t,n,o,r.style,(!0)):new $(t,n,o,r.style),Et&&this.renderer.create(this,t,n,o),this.renderer.chartIndex=this.index},getMargins:function(t){var e=this.spacing,i=this.margin,n=this.titleOffset;this.resetMargins(),n&&!c(i[0])&&(this.plotTop=dt(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&&Vt(t.axes,function(t){t.getOffset()}),Vt(Ft,function(n,o){c(i[o])||(t[n]+=e[o])}),t.setChartSize()},reflow:function(t){var e=this,i=e.options.chart,n=e.renderTo,o=i.width||Ut(n,"width"),s=i.height||Ut(n,"height"),i=t?t.target:rt,n=function(){e.container&&(e.setSize(o,s,!1),e.hasUserSize=null)};e.hasUserSize||e.isPrinting||!o||!s||i!==rt&&i!==st||(o===e.containerWidth&&s===e.containerHeight||(clearTimeout(e.reflowTimeout),t?e.reflowTimeout=setTimeout(n,100):n()),e.containerWidth=o,e.containerHeight=s)},initReflow:function(){var t=this,e=function(e){t.reflow(e)};
17Zt(rt,"resize",e),Zt(t,"destroy",function(){Jt(rt,"resize",e)})},setSize:function(t,e,i){var n,o,s,r=this;r.isResizing+=1,s=function(){r&&te(r,"endResize",null,function(){r.isResizing-=1})},A(i,r),r.oldChartHeight=r.chartHeight,r.oldChartWidth=r.chartWidth,c(t)&&(r.chartWidth=n=dt(0,lt(t)),r.hasUserSize=!!n),c(e)&&(r.chartHeight=o=dt(0,lt(e))),(H?ie:u)(r.container,{width:n+"px",height:o+"px"},H),r.setChartSize(!0),r.renderer.setSize(n,o,i),r.maxTicks=null,Vt(r.axes,function(t){t.isDirty=!0,t.setScale()}),Vt(r.series,function(t){t.isDirty=!0}),r.isDirtyLegend=!0,r.isDirtyBox=!0,r.layOutTitles(),r.getMargins(),r.redraw(i),r.oldChartHeight=null,te(r,"resize"),H===!1?s():setTimeout(s,H&&H.duration||500)},setChartSize:function(t){var e,i,n,o,s=this.inverted,r=this.renderer,a=this.chartWidth,l=this.chartHeight,c=this.options.chart,h=this.spacing,d=this.clipOffset;this.plotLeft=e=lt(this.plotLeft),this.plotTop=i=lt(this.plotTop),this.plotWidth=n=dt(0,lt(a-e-this.marginRight)),this.plotHeight=o=dt(0,lt(l-i-this.marginBottom)),this.plotSizeX=s?o:n,this.plotSizeY=s?n:o,this.plotBorderWidth=c.plotBorderWidth||0,this.spacingBox=r.spacingBox={x:h[3],y:h[0],width:a-h[3]-h[1],height:l-h[0]-h[2]},this.plotBox=r.plotBox={x:e,y:i,width:n,height:o},a=2*ct(this.plotBorderWidth/2),s=ht(dt(a,d[3])/2),r=ht(dt(a,d[0])/2),this.clipBox={x:s,y:r,width:ct(this.plotSizeX-dt(a,d[1])/2-s),height:dt(0,ct(this.plotSizeY-dt(a,d[2])/2-r))},t||Vt(this.axes,function(t){t.setAxisSize(),t.setAxisTranslation()})},resetMargins:function(){var t=this;Vt(Ft,function(e,i){t[e]=zt(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,o=this.chartHeight,s=this.chartBackground,r=this.plotBackgroun
17d,a=this.plotBorder,l=this.plotBGImage,c=e.borderWidth||0,h=e.backgroundColor,d=e.plotBackgroundColor,u=e.plotBackgroundImage,p=e.plotBorderWidth||0,f=this.plotLeft,g=this.plotTop,m=this.plotWidth,v=this.plotHeight,y=this.plotBox,b=this.clipRect,x=this.clipBox;t=c+(e.shadow?8:0),(c||h)&&(s?s.animate(s.crisp({width:n-t,height:o-t})):(s={fill:h||It},c&&(s.stroke=e.borderColor,s["stroke-width"]=c),this.chartBackground=i.rect(t/2,t/2,n-t,o-t,e.borderRadius,c).attr(s).addClass("highcharts-background").add().shadow(e.shadow))),d&&(r?r.animate(y):this.plotBackground=i.rect(f,g,m,v,0).attr({fill:d}).add().shadow(e.plotShadow)),u&&(l?l.animate(y):this.plotBGImage=i.image(u,f,g,m,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:g,width:m,height:v,strokeWidth:-p})):this.plotBorder=i.rect(f,g,m,v,0,-p).attr({stroke:e.plotBorderColor,"stroke-width":p,fill:It,zIndex:1}).add()),this.isDirtyBox=!1},propFromSeries:function(){var t,e,i,n=this,o=n.options.chart,s=n.options.series;Vt(["inverted","angular","polar"],function(r){for(t=Nt[o.type||o.defaultSeriesType],i=n[r]||o[r]||t&&t.prototype[r],e=s&&s.length;!i&&e--;)(t=Nt[s[e].type])&&t.prototype[r]&&(i=!0);n[r]=i})},linkSeries:function(){var t=this,e=t.series;Vt(e,function(t){t.linkedSeries.length=0}),Vt(e,function(e){var n=e.options.linkedTo;i(n)&&(n=":previous"===n?t.series[e.index-1]:t.get(n))&&(n.linkedSeries.push(e),e.linkedParent=n)})},renderSeries:function(){Vt(this.series,function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,i=t.options.labels;i.items&&Vt(i.items,function(n){var o=Bt(i.style,n.style),s=e(o.left)+t.plotLeft,r=e(o.top)+t.plotTop+12;delete o.left,delete o.top,t.renderer.text(n.html,s,r).attr({zIndex:2}).css(o).add()})},render:function(){var t,e,i,n,o=this.axes,s=this.renderer,r=this.options;this.setTitle(),this.legend=new xe(this,r.legend),this.getStacks(),this.getMargins(!0),this.setChartSize(),t=this.plotWidth,e=this.plotHeight-=13,Vt(o,function(t){t.setScale()}),this.getAxisMargins(),i=t/this.plotWidth>1.1,n=e/this.plotHeight>1.1,(i||n)&&(this.maxTicks=null,Vt(o,function(t){(t.horiz&&i||!t.horiz&&n)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries&&Vt(o,function(t){t.render()}),this.seriesGroup||(this.seriesGroup=s.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,o=e.container,s=o&&o.parentNode;for(te(e,"destroy"),Ot[e.index]=O,$t--,e.renderTo.removeAttribute("data-highcharts-chart"),Jt(e),t=i.length;t--;)i[t]=i[t].destroy();for(t=n.length;t--;)n[t]=n[t].destroy();
17Vt("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())}),o&&(o.innerHTML="",Jt(o),s&&C(o));for(t in e)delete e[t]},isReadyToRender:function(){var t=this;return!(!_t&&rt==rt.top&&"complete"!==st.readyState||Et&&!rt.canvg)||(Et?de.push(function(){t.firstRender()},t.options.global.canvasToolsURL):st.attachEvent("onreadystatechange",function(){st.detachEvent("onreadystatechange",t.firstRender),"complete"===st.readyState&&t.firstRender()}),!1)},firstRender:function(){var t=this,e=t.options,i=t.callback;
18t.isReadyToRender()&&(t.getContainer(),te(t,"init"),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),Vt(e.series||[],function(e){t.initSeries(e)}),t.linkSeries(),te(t,"beforeRender"),ot.Pointer&&(t.pointer=new ge(t,e)),t.render(),t.renderer.draw(),i&&i.apply(t,[t]),Vt(t.callbacks,function(e){t.index!==O&&e.apply(t,[t])}),te(t,"load"),t.cloneRenderTo(!0))},splashArray:function(t,e){var i=e[t],i=n(i)?i:[i,i,i,i];return[zt(e[t+"Top"],i[0]),zt(e[t+"Right"],i[1]),zt(e[t+"Bottom"],i[2]),zt(e[t+"Left"],i[3])]}};var ke=ot.CenteredSeriesMixin={getCenter:function(){var t,e,i=this.options,n=this.chart,o=2*(i.slicedOffset||0),s=n.plotWidth-2*o,n=n.plotHeight-2*o,r=i.center,r=[zt(r[0],"50%"),zt(r[1],"50%"),i.size||"100%",i.innerSize||0],a=ut(s,n);for(t=0;t<4;++t)e=r[t],i=t<2||2===t&&/%$/.test(e),r[t]=(/%$/.test(e)?[s,n,a,r[2]][t]*parseFloat(e)/100:parseFloat(e))+(i?o:0);return r}},we=function(){};we.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=we.prototype.optionsToObject.call(this,t);return Bt(this,t),this.options=this.options?Bt(this.options,t):t,n&&(this.y=this[n]),this.x===O&&i&&(this.x=e===O?i.autoIncrement():e),this},optionsToObject:function(t){var e={},i=this.series,n=i.options.keys,s=n||i.pointArrayMap||["y"],r=s.length,a=0,l=0;if("number"==typeof t||null===t)e[s[0]]=t;else if(o(t))for(!n&&t.length>r&&(i=typeof t[0],"string"===i?e.name=t[0]:"number"===i&&(e.x=t[0]),a++);l<r;)e[s[l++]]=t[a++];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(),l(i,this),!i.length)&&(e.hoverPoints=null),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel)&&(Jt(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,group,connector,shadowGroup".split(","),i=6;i--;)t=e[i],this[t]&&(this[t]=this[t].destroy())},getLabelConfig:function(){return{x:this.category,y:this.y,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=zt(i.valueDecimals,""),o=i.valuePrefix||"",s=i.valueSuffix||"";return Vt(e.pointArrayMap||["y"],function(e){e="{point."+e,(o||s)&&(t=t.replace(e+"}",o+e+"}"+s)),t=t.replace(e+"}",e+":,."+n+"f}")}),v(t,{point:this,series:this.series})},firePointEvent:function(t,e,i){var n=this,o=this.series.options;(o.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),te(this,t,e,i)}};var Te=ot.Series=function(){};Te.prototype={isCartesian:!0,type:"line",pointClass:we,sorted:!0,requireSorting:!0,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},axisTypes:["xAxis","yAxis"],colorCounter:0,parallelArrays:["x","y"],init:function(t,e){var i,n,o=this,s=t.series,r=function(t,e){return zt(t.options.index,t._i)-zt(e.options.index,e._i)};o.chart=t,o.options=e=o.setOptions(e),o.linkedSeries=[],o.bindAxes(),Bt(o,{name:e.name,state:"",pointAttr:{},visible:e.visible!==!1,selected:e.selected===!0}),Et&&(e.animation=!1),n=e.events;for(i in n)Zt(o,i,n[i]);(n&&n.click||e.point&&e.point.events&&e.point.events.click||e.allowPointSelect)&&(t.runTrackerClick=!0),o.getColor(),o.getSymbol(),Vt(o.parallelArrays,function(t){o[t+"Data"]=[]}),o.setData(e.data,!1),o.isCartesian&&(t.hasCartesianSeries=!0),s.push(o),o._i=s.length-1,x(s,r),this.yAxis&&x(this.yAxis.series,r),Vt(s,function(t,e){t.index=e,t.name=t.name||"Series "+(e+1)})},bindAxes:function(){var t,e=this,i=e.options,n=e.chart;
18Vt(e.axisTypes||[],function(o){Vt(n[o],function(n){t=n.options,(i[o]===t.index||i[o]!==O&&i[o]===t.id||i[o]===O&&0===t.index)&&(n.series.push(e),e[o]=n,n.isDirty=!0)}),!e[o]&&e.optionalAxis!==o&&S(18,!0)})},updateParallelArrays:function(t,e){var i=t.series,n=arguments;Vt(i.parallelArrays,"number"==typeof e?function(n){var o="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=o}: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=zt(i,e.pointStart,0);return this.pointInterval=t=zt(this.pointInterval,e.pointInterval,1),"month"!==n&&"year"!==n||(e=new z(i),e="month"===n?+e[it](e[X]()+t):+e[nt](e[K]()+t),t=e-i),this.xIncrement=i+t,i},getSegments:function(){var t,e=-1,i=[],n=this.points,o=n.length;if(o)if(this.options.connectNulls){for(t=o;t--;)null===n[t].y&&n.splice(t,1);n.length&&(i=[n])}else Vt(n,function(t,s){null===t.y?(s>e+1&&i.push(n.slice(e+1,s)),e=s):s===o-1&&i.push(n.slice(e+1,s+1))});this.segments=i},setOptions:function(e){var i=this.chart,n=i.options.plotOptions,i=i.userOptions||{},o=i.plotOptions||{},s=n[this.type];return this.userOptions=e,n=t(s,n.series,e),this.tooltipOptions=t(R.tooltip,R.plotOptions[this.type].tooltip,i.tooltip,o.series&&o.series.tooltip,o[this.type]&&o[this.type].tooltip,e.tooltip),null===s.marker&&delete n.marker,this.zoneAxis=n.zoneAxis,e=this.zones=(n.zones||[]).slice(),!n.negativeColor&&!n.negativeFillColor||n.zones||e.push({value:n[this.zoneAxis+"Threshold"]||n.threshold||0,color:n.negativeColor,fillColor:n.negativeFillColor}),e.length&&c(e[e.length-1].value)&&e.push({color:this.color,fillColor:this.fillColor}),n},getCyclic:function(t,e,i){var n=this.userOptions,o="_"+t+"Index",s=t+"Counter";e||(c(n[o])?e=n[o]:(n[o]=e=this.chart[s]%i.length,this.chart[s]+=1),e=i[e]),this[t]=e},getColor:function(){this.options.colorByPoint||this.getCyclic("color",this.options.color||oe[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:he.drawLineMarker,setData:function(t,e,n,r){var a,l=this,c=l.points,h=c&&c.length||0,d=l.options,u=l.chart,p=null,f=l.xAxis,g=f&&!!f.categories,m=d.turboThreshold,v=this.xData,y=this.yData,b=(a=l.pointArrayMap)&&a.length,t=t||[];if(a=t.length,e=zt(e,!0),r!==!1&&a&&h===a&&!l.cropped&&!l.hasGroupedData&&l.visible)Vt(t,function(t,e){c[e].update&&c[e].update(t,!1,null,!1)});else{if(l.xIncrement=null,l.pointRange=g?1:d.pointRange,l.colorCounter=0,Vt(this.parallelArrays,function(t){l[t+"Data"].length=0}),m&&a>m){for(n=0;null===p&&n<a;)p=t[n],n++;if(s(p)){for(g=zt(d.pointStart,0),d=zt(d.pointInterval,1),n=0;n<a;n++)v[n]=g,y[n]=t[n],g+=d;l.xIncrement=g}else if(o(p))if(b)for(n=0;n<a;n++)d=t[n],v[n]=d[0],y[n]=d.slice(1,b+1);else for(n=0;n<a;n++)d=t[n],v[n]=d[0],y[n]=d[1];else S(12)}else for(n=0;n<a;n++)t[n]!==O&&(d={series:l},l.pointClass.prototype.applyOptions.apply(d,[t[n]]),l.updateParallelArrays(d,n),g&&d.name)&&(f.names[d.x]=d.name);for(i(y[0])&&S(14,!0),l.data=[],l.options.data=t,n=h;n--;)c[n]&&c[n].destroy&&c[n].destroy();f&&(f.minRange=f.userMinRange),l.isDirty=l.isDirtyData=u.isDirtyBox=!0,n=!1}e&&u.redraw(n)},processData:function(t){var e,i=this.xData,n=this.yData,o=i.length;e=0;var s,r,a,l=this.xAxis,c=this.options;a=c.cropThreshold;var h,d,u=this.isCartesian;if(u&&!this.isDirty&&!l.isDirty&&!this.yAxis.isDirty&&!t)return!1;for(l&&(t=l.getExtremes(),h=t.min,d=t.max),u&&this.sorted&&(!a||o>a||this.forceCrop)&&(i[o-1]<h||i[0]>d?(i=[],n=[]):(i[0]<h||i[o-1]>d)&&(e=this.cropData(this.xData,this.yData,h,d),i=e.xData,n=e.yData,e=e.start,s=!0)),a=i.length-1;a>=0;a--)o=i[a]-i[a-1],o>0&&(r===O||o<r)?r=o:o<0&&this.requireSorting&&S(15);this.cropped=s,this.cropStart=e,this.processedXData=i,this.processedYData=n,null===c.pointRange&&(this.pointRange=r||1),this.closestPointRange=r},cropData:function(t,e,i,n){var o,s=t.length,r=0,a=s,l=zt(this.cropShoulder,1);for(o=0;o<s;o++)if(t[o]>=i){r=dt(0,o-l);break}for(;o<s;o++)if(t[o]>n){a=o+l;break}return{xData:t.slice(r,a),yData:e.slice(r,a),start:r,end:a}},generatePoints:function(){var t,e,i,n,o=this.options.data,s=this.data,r=this.processedXData,a=this.processedYData,l=this.pointClass,c=r.length,h=this.cropStart||0,u=this.hasGroupedData,p=[];for(s||u||(s=[],s.length=o.length,s=this.data=s),n=0;n<c;n++)e=h+n,u?p[n]=(new l).init(this,[r[n]].concat(d(a[n]))):(s[e]?i=s[e]:o[e]!==O&&(s[e]=i=(new l).init(this,o[e],r[n])),p[n]=i),p[n].index=e;if(s&&(c!==(t=s.length)||u))for(n=0;n<t;n++)n===h&&!u&&(n+=c),s[n]&&(s[n].destroyElements(),s[n].plotX=O);this.data=s,this.points=p},getExtremes:function(t){var e,i=this.yAxis,n=this.processedXData,o=[],s=0;e=this.xAxis.getExtremes();var r,a,l,c,h=e.min,d=e.max,t=t||this.stackedYData||this.processedYData;for(e=t.length,c=0;c<e;
18c++)if(a=n[c],l=t[c],r=null!==l&&l!==O&&(!i.isLog||l.length||l>0),a=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||(n[c+1]||a)>=h&&(n[c-1]||a)<=d,r&&a)if(r=l.length)for(;r--;)null!==l[r]&&(o[s++]=l[r]);else o[s++]=l;this.dataMin=k(o),this.dataMax=w(o)},translate:function(){this.processedXData||this.processData(),this.generatePoints();for(var t,e,i,n=this.options,o=n.stacking,r=this.xAxis,a=r.categories,l=this.yAxis,h=this.points,d=h.length,u=!!this.modifyValue,p=n.pointPlacement,f="between"===p||s(p),g=n.threshold,m=n.startFromThreshold?g:0,v=Number.MAX_VALUE,n=0;n<d;n++){var y=h[n],b=y.x,x=y.y;e=y.low;var k=o&&l.stacks[(this.negStacks&&x<(m?0:g)?"-":"")+this.stackKey];l.isLog&&null!==x&&x<=0&&(y.y=x=null,S(10)),y.plotX=t=ut(dt(-1e5,r.translate(b,0,0,0,1,p,"flags"===this.type)),1e5),o&&this.visible&&k&&k[b]&&(k=k[b],x=k.points[this.index+","+n],e=x[0],x=x[1],e===m&&(e=zt(g,l.min)),l.isLog&&e<=0&&(e=null),y.total=y.stackTotal=k.total,y.percentage=k.total&&y.y/k.total*100,y.stackY=x,k.setOffset(this.pointXOffset||0,this.barW||0)),y.yBottom=c(e)?l.translate(e,0,1,0,1):null,u&&(x=this.modifyValue(x,y)),y.plotY=e="number"==typeof x&&x!==1/0?ut(dt(-1e5,l.translate(x,0,1,0,1)),1e5):O,y.isInside=e!==O&&e>=0&&e<=l.len&&t>=0&&t<=r.len,y.clientX=f?r.translate(b,0,0,0,1):t,y.negative=y.y<(g||0),y.category=a&&a[y.x]!==O?a[y.x]:y.x,n&&(v=ut(v,pt(t-i))),i=t}this.closestPointRangePx=v,this.getSegments()},setClip:function(t){var e=this.chart,i=e.renderer,n=e.inverted,o=this.clipBox,s=o||e.clipBox,r=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,s.height].join(","),a=e[r],l=e[r+"m"];a||(t&&(s.width=0,e[r+"m"]=l=i.clipRect(-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[r]=a=i.clipRect(s)),t&&(a.count+=1),this.options.clip!==!1&&(this.group.clip(t||o?a:e.clipRect),this.markerGroup.clip(l),this.sharedClipKey=r),t||(a.count-=1,a.count<=0&&r&&e[r]&&(o||(e[r]=e[r].destroy()),e[r+"m"]&&(e[r+"m"]=e[r+"m"].destroy())))},animate:function(t){var e,i=this.chart,o=this.options.animation;o&&!n(o)&&(o=oe[this.type].animation),t?this.setClip(o):(e=this.sharedClipKey,(t=i[e])&&t.animate({width:i.plotSizeX},o),i[e+"m"]&&i[e+"m"].animate({width:i.plotSizeX+99},o),this.animate=null)},afterAnimate:function(){this.setClip(),te(this,"afterAnimate")},drawPoints:function(){var t,e,i,n,o,s,r,a,l,c,h,d,u=this.points,p=this.chart,f=this.options.marker,g=this.pointAttr[""],m=this.markerGroup,v=zt(f.enabled,this.xAxis.isRadial,this.closestPointRangePx>2*f.radius);if(f.enabled!==!1||this._hasPointMarkers)for(n=u.length;n--;)o=u[n],e=ct(o.plotX),i=o.plotY,l=o.graphic,c=o.marker||{},h=!!o.marker,t=v&&c.enabled===O||c.enabled,d=o.isInside,t&&i!==O&&!isNaN(i)&&null!==o.y?(t=o.pointAttr[o.selected?"select":""]||g,s=t.r,r=zt(c.symbol,this.symbol),a=0===r.indexOf("url"),l?l[d?"show":"hide"](!0).animate(Bt({x:e-s,y:i-s},l.symbolName?{width:2*s,height:2*s}:{})):d&&(s>0||a)&&(o.graphic=p.renderer.symbol(r,e-s,i-s,2*s,2*s,h?c:f).attr(t).add(m))):l&&(o.graphic=l.destroy())},convertAttribs:function(t,e,i,n){var o,s,r=this.pointAttrToOptions,a={},t=t||{},e=e||{},i=i||{},n=n||{};for(o in r)s=r[o],a[o]=zt(t[s],e[o],i[o],n[o]);return a},getAttribs:function(){var t,e=this,i=e.options,n=oe[e.type].marker?i.marker:i,o=n.states,s=o.hover,r=e.color,a=e.options.negativeColor;t={stroke:r,fill:r};var l,h,d=e.points||[],u=[],p=e.pointAttrToOptions;h=e.hasPointSpecificOptions;var f=n.lineColor,g=n.fillColor;l=i.turboThreshold;var m,v=e.zones,y=e.zoneAxis||"y";if(i.marker?(s.radius=s.radius||n.radius+s.radiusPlus,s.lineWidth=s.lineWidth||n.lineWidth+s.lineWidthPlus):(s.color=s.color||le(s.color||r).brighten(s.brightness).get(),s.negativeColor=s.negativeColor||le(s.negativeColor||a).brighten(s.brightness).get()),u[""]=e.convertAttribs(n,t),Vt(["hover","select"],function(t){u[t]=e.convertAttribs(o[t],u[""])}),e.pointAttr=u,r=d.length,!l||r<l||h)for(;r--;){if(l=d[r],(n=l.options&&l.options.marker||l.options)&&n.enabled===!1&&(n.radius=0),v.length){for(h=0,t=v[h];l[y]>=t.value;)t=v[++h];l.color=l.fillColor=t.color}if(h=i.colorByPoint||l.color,l.options)for(m in p)c(n[p[m]])&&(h=!0);h?(n=n||{},h=[],o=n.states||{},t=o.hover=o.hover||{},i.marker||(t.color=t.color||!l.options.color&&s[l.negative&&a?"negativeColor":"color"]||le(l.color).brighten(t.brightness||s.brightness).get()),t={color:l.color},g||(t.fillColor=l.color),f||(t.lineColor=l.color),n.hasOwnProperty("color")&&!n.color&&delete n.color,h[""]=e.convertAttribs(Bt(t,n),u[""]),h.hover=e.convertAttribs(o.hover,u.hover,h[""]),h.select=e.convertAttribs(o.select,u.select,h[""])):h=u,l.pointAttr=h}}
18,destroy:function(){var t,e,i,n,o=this,s=o.chart,r=/AppleWebKit\/533/.test(yt),a=o.data||[];for(te(o,"destroy"),Jt(o),Vt(o.axisTypes||[],function(t){(n=o[t])&&(l(n.series,o),n.isDirty=n.forceRedraw=!0)}),o.legendItem&&o.chart.legend.destroyItem(o),t=a.length;t--;)(e=a[t])&&e.destroy&&e.destroy();o.points=null,clearTimeout(o.animationTimeout);for(i in o)o[i]instanceof P&&!o[i].survive&&(t=r&&"group"===i?"hide":"destroy",o[i][t]());s.hoverSeries===o&&(s.hoverSeries=null),l(s.series,o);for(i in o)delete o[i]},getSegmentPath:function(t){var e=this,i=[],n=e.options.step;return Vt(t,function(o,s){var r,a=o.plotX,l=o.plotY;e.getPointSpline?i.push.apply(i,e.getPointSpline(t,o,s)):(i.push(s?"L":"M"),n&&s&&(r=t[s-1],"right"===n?i.push(r.plotX,l):"center"===n?i.push((r.plotX+a)/2,r.plotY,(r.plotX+a)/2,l):i.push(a,r.plotY)),i.push(o.plotX,o.plotY))}),i},getGraphPath:function(){var t,e=this,i=[],n=[];return Vt(e.segments,function(o){t=e.getSegmentPath(o),o.length>1?i=i.concat(t):n.push(o[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,o="square"!==e.linecap,s=this.getGraphPath(),r=this.fillGraph&&this.color||It;Vt(this.zones,function(n,o){i.push(["zoneGraph"+o,n.color||t.color,n.dashStyle||e.dashStyle])}),Vt(i,function(i,a){var l=i[0],c=t[l];c?(ne(c),c.animate({d:s})):(n||r)&&s.length&&(c={stroke:i[1],"stroke-width":n,fill:r,zIndex:1},i[2]?c.dashstyle=i[2]:o&&(c["stroke-linecap"]=c["stroke-linejoin"]="round"),t[l]=t.chart.renderer.path(s).attr(c).add(t.group).shadow(a<2&&e.shadow))})},applyZones:function(){var t,e,i,n,o,s,r,a=this,l=this.chart,c=l.renderer,h=this.zones,d=this.clips||[],u=this.graph,p=this.area,f=dt(l.chartWidth,l.chartHeight),g=this[(this.zoneAxis||"y")+"Axis"],m=g.reversed,v=l.inverted,y=g.horiz,b=!1;h.length&&(u||p)&&(u&&u.hide(),p&&p.hide(),n=g.getExtremes(),Vt(h,function(h,x){t=m?y?l.plotWidth:0:y?0:g.toPixels(n.min),t=ut(dt(zt(e,t),0),f),e=ut(dt(lt(g.toPixels(zt(h.value,n.max),!0)),0),f),b&&(t=e=g.toPixels(n.max)),o=Math.abs(t-e),s=ut(t,e),r=dt(t,e),g.isXAxis?(i={x:v?r:s,y:0,width:o,height:f},y||(i.x=l.plotHeight-i.x)):(i={x:0,y:v?r:s,width:f,height:o},y&&(i.y=l.plotWidth-i.y)),l.inverted&&c.isVML&&(i=g.isXAxis?{x:0,y:m?s:r,height:i.width,width:l.chartWidth}:{x:i.y-l.plotLeft-l.spacingBox.x,y:0,width:i.height,height:l.chartHeight}),d[x]?d[x].animate(i):(d[x]=c.clipRect(i),u&&a["zoneGraph"+x].clip(d[x]),p&&a["zoneArea"+x].clip(d[x])),b=h.value>n.max}),this.clips=d)},invertGroups:function(){function t(){var t={width:e.yAxis.len,height:e.xAxis.len};Vt(["group","markerGroup"],function(i){e[i]&&e[i].attr(t).invert()})}var e=this,i=e.chart;e.xAxis&&(Zt(i,"resize",t),Zt(e,"destroy",function(){Jt(i,"resize",t)}),t(),e.invertGroups=t)},plotGroup:function(t,e,i,n,o){var s=this[t],r=!s;return r&&(this[t]=s=this.chart.renderer.g(e).attr({visibility:i,zIndex:n||.1}).add(o)),s[r?"attr":"animate"](this.getPlotBox()),s},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,o=(t=n.animation)&&!!e.animate&&i.renderer.isSVG&&zt(t.duration,500)||0,s=e.visible?"visible":"hidden",r=n.zIndex,a=e.hasRendered,l=i.seriesGroup;t=e.plotGroup("group","series",s,r,l),e.markerGroup=e.plotGroup("markerGroup","markers",s,r,l),o&&e.animate(!0),e.getAttribs(),t.inverted=!!e.isCartesian&&i.inverted,e.drawGraph&&(e.drawGraph(),e.applyZones()),Vt(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),o&&e.animate(),a||(o?e.animationTimeout=setTimeout(function(){e.afterAnimate()},o):e.afterAnimate()),e.isDirty=e.isDirtyData=!1,e.hasRendered=!0},redraw:function(){var t=this.chart,e=this.isDirtyData,i=this.isDirty,n=this.group,o=this.xAxis,s=this.yAxis;n&&(t.inverted&&n.attr({width:t.plotWidth,height:t.plotHeight}),n.animate({translateX:zt(o&&o.left,t.plotLeft),translateY:zt(s&&s.top,t.plotTop)})),this.translate(),this.render(),e&&te(this,"updatedData"),(i||e)&&delete this.kdTree},kdDimensions:1,kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?n.len-t.chartX+n.pos:t.chartY-n.pos},e)},buildKDTree:function(){function t(e,n,o){var s,r;if(r=e&&e.length)return s=i.kdAxisArray[n%o],e.sort(function(t,e){return t[s]-e[s]}),r=Math.floor(r/2),{point:e[r],left:t(e.slice(0,r),n+1,o),right:t(e.slice(r+1),n+1,o)}}function e(){var e=Xt(i.points,function(t){return null!==t.y});i.kdTree=t(e,n,n)}var i=this,n=i.kdDimensions;delete i.kdTree,i.options.kdSync?e():setTimeout(e)},searchKDTree:function(t,e){function i(t,e,a,l){var h,d,u=e.point,p=n.kdAxisArray[a%l],f=u;
18return d=c(t[o])&&c(u[o])?Math.pow(t[o]-u[o],2):null,h=c(t[s])&&c(u[s])?Math.pow(t[s]-u[s],2):null,h=(d||0)+(h||0),u.dist=c(h)?Math.sqrt(h):Number.MAX_VALUE,u.distX=c(d)?Math.sqrt(d):Number.MAX_VALUE,p=t[p]-u[p],h=p<0?"left":"right",d=p<0?"right":"left",e[h]&&(h=i(t,e[h],a+1,l),f=h[r]<f[r]?h:u),e[d]&&Math.sqrt(p*p)<f[r]&&(t=i(t,e[d],a+1,l),f=t[r]<f[r]?t:f),f}var n=this,o=this.kdAxisArray[0],s=this.kdAxisArray[1],r=e?"distX":"dist";if(this.kdTree||this.buildKDTree(),this.kdTree)return i(t,this.kdTree,this.kdDimensions,this.kdDimensions)}},D.prototype={destroy:function(){T(this,this.axis)},render:function(t){var e=this.options,i=e.format,i=i?v(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,o=n.inverted,s=i.reversed,s=this.isNegative&&!s||!this.isNegative&&s,r=i.translate(i.usePercentage?100:this.total,0,0,0,1),i=i.translate(0),i=pt(r-i),a=n.xAxis[0].translate(this.x)+t,l=n.plotHeight,s={x:o?s?r:r-i:a,y:o?l-a-e:s?l-r-i:l-r,width:o?i:e,height:o?e:i};(o=this.label)&&(o.align(this.alignOptions,null,s),s=o.alignAttr,o[this.options.crop===!1||n.isInsidePlot(s.x,s.y)?"show":"hide"](!0))}},ue.prototype.buildStacks=function(){var t=this.series,e=zt(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()}},ue.prototype.renderStackTotals=function(){var t,e,i=this.chart,n=i.renderer,o=this.stacks,s=this.stackTotalGroup;s||(this.stackTotalGroup=s=n.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),s.translate(i.plotLeft,i.plotTop);for(t in o)for(e in i=o[t])i[e].render(s)},Te.prototype.setStackedPoints=function(){if(this.options.stacking&&(this.visible===!0||this.chart.options.chart.ignoreHiddenSeries===!1)){var t,e,i,n,o,s,r=this.processedXData,a=this.processedYData,l=[],c=a.length,h=this.options,d=h.threshold,u=h.startFromThreshold?d:0,p=h.stack,h=h.stacking,f=this.stackKey,g="-"+f,m=this.negStacks,v=this.yAxis,y=v.stacks,b=v.oldStacks;for(n=0;n<c;n++)o=r[n],s=a[n],i=this.index+","+n,e=(t=m&&s<(u?0:d))?g:f,y[e]||(y[e]={}),y[e][o]||(b[e]&&b[e][o]?(y[e][o]=b[e][o],y[e][o].total=null):y[e][o]=new D(v,v.options.stackLabels,t,o,p)),e=y[e][o],e.points[i]=[zt(e.cum,u)],"percent"===h?(t=t?f:g,m&&y[t]&&y[t][o]?(t=y[t][o],e.total=t.total=dt(t.total,e.total)+pt(s)||0):e.total=_(e.total+(pt(s)||0))):e.total=_(e.total+(s||0)),e.cum=zt(e.cum,u)+(s||0),e.points[i].push(e.cum),l[n]=e.cum;"percent"===h&&(v.usePercentage=!0),this.stackedYData=l,v.oldStacks={}}},Te.prototype.setPercentStacks=function(){var t=this,e=t.stackKey,i=t.yAxis.stacks,n=t.processedXData;Vt([e,"-"+e],function(e){for(var o,s,r,a=n.length;a--;)s=n[a],o=(r=i[e]&&i[e][s])&&r.points[t.index+","+a],(s=o)&&(r=r.total?100/r.total:0,s[0]=_(s[0]*r),s[1]=_(s[1]*r),t.stackedYData[a]=s[1])})},Bt(Yt.prototype,{addSeries:function(t,e,i){var n,o=this;return t&&(e=zt(e,!0),te(o,"addSeries",{options:t},function(){n=o.initSeries(t),o.isDirtyLegend=!0,o.linkSeries(),e&&o.redraw(i)})),n},addAxis:function(e,i,n,o){var s=i?"xAxis":"yAxis",r=this.options;new ue(this,t(e,{index:this[s].length,isX:i})),r[s]=d(r[s]||{}),r[s].push(e),zt(n,!0)&&this.redraw(o)},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,o=i.loading,s=function(){n&&u(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=p(Lt,{className:"highcharts-loading"},Bt(o.style,{zIndex:10,display:It}),e.container),e.loadingSpan=p("span",null,o.labelStyle,n),Zt(e,"redraw",s)),e.loadingSpan.innerHTML=t||i.lang.loading,e.loadingShown||(u(n,{opacity:0,display:""}),ie(n,{opacity:o.style.opacity},{duration:o.showDuration||0}),e.loadingShown=!0),s()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&ie(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){u(e,{display:It})}}),this.loadingShown=!1}}
18),Bt(we.prototype,{update:function(t,e,i,s){function r(){l.applyOptions(t),null===l.y&&h&&(l.graphic=h.destroy()),n(t)&&!o(t)&&(l.redraw=function(){h&&(t&&t.marker&&t.marker.symbol?l.graphic=h.destroy():h.attr(l.pointAttr[l.state||""])[l.visible===!1?"hide":"show"]()),t&&t.dataLabels&&l.dataLabel&&(l.dataLabel=l.dataLabel.destroy()),l.redraw=null}),a=l.index,c.updateParallelArrays(l,a),p&&l.name&&(p[l.x]=l.name),u.data[a]=l.options,c.isDirty=c.isDirtyData=!0,!c.fixedBox&&c.hasCartesianSeries&&(d.isDirtyBox=!0),"point"===u.legendType&&(d.isDirtyLegend=!0),e&&d.redraw(i)}var a,l=this,c=l.series,h=l.graphic,d=c.chart,u=c.options,p=c.xAxis&&c.xAxis.names,e=zt(e,!0);s===!1?r():l.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(Gt(this,this.series.data),t,e)}}),Bt(Te.prototype,{addPoint:function(t,e,i,n){var o,s=this,r=s.options,a=s.data,l=s.graph,c=s.area,h=s.chart,d=s.xAxis&&s.xAxis.names,u=l&&l.shift||0,p=["graph","area"],l=r.data,f=s.xData;if(A(n,h),i){for(n=s.zones.length;n--;)p.push("zoneGraph"+n,"zoneArea"+n);Vt(p,function(t){s[t]&&(s[t].shift=u+1)})}if(c&&(c.isArea=!0),e=zt(e,!0),c={series:s},s.pointClass.prototype.applyOptions.apply(c,[t]),p=c.x,n=f.length,s.requireSorting&&p<f[n-1])for(o=!0;n&&f[n-1]>p;)n--;s.updateParallelArrays(c,"splice",n,0,0),s.updateParallelArrays(c,n),d&&c.name&&(d[p]=c.name),l.splice(n,0,t),o&&(s.data.splice(n,0,null),s.processData()),"point"===r.legendType&&s.generatePoints(),i&&(a[0]&&a[0].remove?a[0].remove(!1):(a.shift(),s.updateParallelArrays(c,"shift"),l.shift())),s.isDirty=!0,s.isDirtyData=!0,e&&(s.getAttribs(),h.redraw())},removePoint:function(t,e,i){var n=this,o=n.data,s=o[t],r=n.points,a=n.chart,l=function(){o.length===r.length&&r.splice(t,1),o.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(s||{series:n},"splice",t,1),s&&s.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};A(i,a),e=zt(e,!0),s?s.firePointEvent("remove",null,l):l()},remove:function(t,e){var i=this,n=i.chart,t=zt(t,!0);i.isRemoving||(i.isRemoving=!0,te(i,"remove",null,function(){i.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,n.linkSeries(),t&&n.redraw(e)})),i.isRemoving=!1},update:function(e,i){var n,o=this,s=this.chart,r=this.userOptions,a=this.type,l=Nt[a].prototype,c=["group","markerGroup","dataLabelsGroup"];(e.type&&e.type!==a||void 0!==e.zIndex)&&(c.length=0),Vt(c,function(t){c[t]=o[t],delete o[t]}),e=t(r,{animation:!1,index:this.index,pointStart:this.xData[0]},{data:this.options.data},e),this.remove(!1);for(n in l)this[n]=O;Bt(this,Nt[e.type||a].prototype),Vt(c,function(t){o[t]=c[t]}),this.init(s,e),s.linkSeries(),zt(i,!0)&&s.redraw(!1)}}),Bt(ue.prototype,{update:function(e,i){var n=this.chart,e=n.options[this.coll][this.options.index]=t(this.userOptions,e);this.destroy(!0),this._addedPlotLB=this.chart._labelPanes=O,this.init(n,Bt(e,{events:O})),n.isDirtyBox=!0,zt(i,!0)&&n.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,n=this.series,o=n.length;o--;)n[o]&&n[o].remove(!1);l(e.axes,this),l(e[i],this),e.options[i].splice(this.options.index,1),Vt(e[i],function(t,e){t.options.index=e}),this.destroy(),e.isDirtyBox=!0,zt(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}});var Ce=f(Te);Nt.line=Ce,oe.area=t(Wt,{threshold:0});var Se=f(Te,{type:"area",getSegments:function(){var t,e,i,n,o=this,s=[],r=[],a=[],l=this.xAxis,c=this.yAxis,h=c.stacks[this.stackKey],d={},u=this.points,p=this.options.connectNulls;if(this.options.stacking&&!this.cropped){for(i=0;i<u.length;i++)d[u[i].x]=u[i];for(n in h)null!==h[n].total&&a.push(+n);a.sort(function(t,e){return t-e}),Vt(a,function(n){var s,a=0;if(!p||d[n]&&null!==d[n].y)if(d[n])r.push(d[n]);else{for(i=o.index;i<=c.series.length;i++)if(s=h[n].points[i+","+n]){a=s[1];break}t=l.translate(n),e=c.toPixels(a,!0),r.push({y:null,plotX:t,clientX:t,plotY:e,yBottom:e,onMouseOver:Dt})}}),r.length&&s.push(r)}else Te.prototype.getSegments.call(this),s=this.segments;this.segments=s},getSegmentPath:function(t){var e,i=Te.prototype.getSegmentPath.call(this,t),n=[].concat(i),o=this.options;e=i.length;var s,r=this.yAxis.getThreshold(o.threshold);if(3===e&&n.push("L",i[1],i[2]),o.stacking&&!this.closedStacks)for(e=t.length-1;e>=0;e--)s=zt(t[e].yBottom,r),e<t.length-1&&o.step&&n.push(t[e+1].plotX,s),n.push(t[e].plotX,s);else this.closeSegment(n,t,r);return this.areaPath=this.areaPath.concat(n),i}
18,closeSegment:function(t,e,i){t.push("L",e[e.length-1].plotX,i,"L",e[0].plotX,i)},drawGraph:function(){this.areaPath=[],Te.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,n=[["area",this.color,i.fillColor]];Vt(this.zones,function(e,o){n.push(["zoneArea"+o,e.color||t.color,e.fillColor||i.fillColor])}),Vt(n,function(n){var o=n[0],s=t[o];s?s.animate({d:e}):t[o]=t.chart.renderer.path(e).attr({fill:zt(n[2],le(n[1]).setOpacity(zt(i.fillOpacity,.75)).get()),zIndex:0}).add(t.group)})},drawLegendSymbol:he.drawRectangle});Nt.area=Se,oe.spline=t(Wt),Ce=f(Te,{type:"spline",getPointSpline:function(t,e,i){var n,o,s,r,a=e.plotX,l=e.plotY,c=t[i-1],h=t[i+1];if(c&&h){t=c.plotY,s=h.plotX;var d,h=h.plotY;n=(1.5*a+c.plotX)/2.5,o=(1.5*l+t)/2.5,s=(1.5*a+s)/2.5,r=(1.5*l+h)/2.5,d=(r-o)*(s-a)/(s-n)+l-r,o+=d,r+=d,o>t&&o>l?(o=dt(t,l),r=2*l-o):o<t&&o<l&&(o=ut(t,l),r=2*l-o),r>h&&r>l?(r=dt(h,l),o=2*l-r):r<h&&r<l&&(r=ut(h,l),o=2*l-r),e.rightContX=s,e.rightContY=r}return i?(e=["C",c.rightContX||c.plotX,c.rightContY||c.plotY,n||a,o||l,a,l],c.rightContX=c.rightContY=null):e=["M",a,l],e}}),Nt.spline=Ce,oe.areaspline=t(oe.area),Se=Se.prototype,Ce=f(Ce,{type:"areaspline",closedStacks:!0,getSegmentPath:Se.getSegmentPath,closeSegment:Se.closeSegment,drawGraph:Se.drawGraph,drawLegendSymbol:he.drawRectangle}),Nt.areaspline=Ce,oe.column=t(Wt,{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},startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0}),Ce=f(Te,{type:"column",pointAttrToOptions:{stroke:"borderColor",fill:"color",r:"borderRadius"},cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){Te.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t,e,i=this,n=i.options,o=i.xAxis,s=i.yAxis,r=o.reversed,a={},l=0;n.grouping===!1?l=1:Vt(i.chart.series,function(n){var o=n.options,r=n.yAxis;n.type===i.type&&n.visible&&s.len===r.len&&s.pos===r.pos&&(o.stacking?(t=n.stackKey,a[t]===O&&(a[t]=l++),e=a[t]):o.grouping!==!1&&(e=l++),n.columnIndex=e)});var o=ut(pt(o.transA)*(o.ordinalSlope||n.pointRange||o.closestPointRange||o.tickInterval||1),o.len),h=o*n.groupPadding,d=(o-2*h)/l,u=n.pointWidth,n=c(u)?(d-u)/2:d*n.pointPadding,u=zt(u,d-2*n);return i.columnMetrics={width:u,offset:n+(h+((r?l-(i.columnIndex||0):i.columnIndex)||0)*d-o/2)*(r?-1:1)}},translate:function(){var t=this,e=t.chart,i=t.options,n=t.borderWidth=zt(i.borderWidth,t.closestPointRange*t.xAxis.transA<2?0:1),o=t.yAxis,s=t.translatedThreshold=o.getThreshold(i.threshold),r=zt(i.minPointLength,5),a=t.getColumnMetrics(),l=a.width,c=t.barW=dt(l,1+2*n),h=t.pointXOffset=a.offset,d=-(n%2?.5:0),u=n%2?.5:1;e.inverted&&(s-=.5,e.renderer.isVML&&(u+=1)),i.pointPadding&&(c=ht(c)),Te.prototype.translate.apply(t),Vt(t.points,function(i){var n,a,p=zt(i.yBottom,s),f=999+pt(p),f=ut(dt(-f,i.plotY),o.len+f),g=i.plotX+h,m=c,v=ut(f,p);n=dt(f,p)-v,pt(n)<r&&r&&(n=r,a=!o.reversed&&!i.negative||o.reversed&&i.negative,v=lt(pt(v-s)>r?p-r:s-(a?r:0))),i.barX=g,i.pointWidth=l,m=lt(g+m)+d,g=lt(g)+d,m-=g,p=pt(v)<.5,n=ut(lt(v+n)+u,9e4),v=lt(v)+u,n-=v,p&&(v-=1,n+=1),i.tooltipPos=e.inverted?[o.len+o.pos-e.plotLeft-f,t.xAxis.len-g-m/2,n]:[g+m/2,f+o.pos-e.plotTop,n],i.shapeType="rect",i.shapeArgs={x:g,y:v,width:m,height:n}})},getSymbol:Dt,drawLegendSymbol:he.drawRectangle,drawGraph:Dt,drawPoints:function(){var e,i,n=this,o=this.chart,s=n.options,r=o.renderer,a=s.animationLimit||250;Vt(n.points,function(l){var h=l.plotY,d=l.graphic;h===O||isNaN(h)||null===l.y?d&&(l.graphic=d.destroy()):(e=l.shapeArgs,h=c(n.borderWidth)?{"stroke-width":n.borderWidth}:{},i=l.pointAttr[l.selected?"select":""]||n.pointAttr[""],d?(ne(d),d.attr(h)[o.pointCount<a?"animate":"attr"](t(e))):l.graphic=r[l.shapeType](e).attr(h).attr(i).add(n.group).shadow(s.shadow,null,s.stacking&&!s.borderRadius))})},animate:function(t){var e=this.yAxis,i=this.options,n=this.chart.inverted,o={};_t&&(t?(o.scaleY=.001,t=ut(e.pos+e.len,dt(e.pos,e.toPixels(i.threshold))),n?o.translateX=t-e.len:o.translateY=t,this.group.attr(o)):(o.scaleY=1,o[n?"translateX":"translateY"]=e.pos,this.group.animate(o,this.options.animation),this.animate=null))},remove:function(){var t=this,e=t.chart;e.hasRendered&&Vt(e.series,function(e){e.type===t.type&&(e.isDirty=!0)}),Te.prototype.remove.apply(t,arguments)}}),Nt.column=Ce,oe.bar=t(oe.column),Se=f(Ce,{type:"bar",inverted:!0}),Nt.bar=Se,oe.scatter=t(Wt,{lineWidth:0,
19marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{series.color}">●</span> <span style="font-size: 10px;"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),Se=f(Te,{type:"scatter",sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,kdDimensions:2,drawGraph:function(){this.options.lineWidth&&Te.prototype.drawGraph.call(this)}}),Nt.scatter=Se,oe.pie=t(Wt,{borderColor:"#FFFFFF",borderWidth:1,center:[null,
19null],clip:!1,colorByPoint:!0,dataLabels:{distance:30,enabled:!0,formatter:function(){return 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}}),Wt={type:"pie",isCartesian:!1,pointClass:f(we,{init:function(){we.prototype.init.apply(this,arguments);var t,e=this;return Bt(e,{visible:e.visible!==!1,name:zt(e.name,"Slice")}),t=function(t){e.slice("select"===t.type)},Zt(e,"select",t),Zt(e,"unselect",t),e},setVisible:function(t,e){var i=this,n=i.series,o=n.chart,s=n.options.ignoreHiddenPoint,e=zt(e,s);t!==i.visible&&(i.visible=i.options.visible=t=t===O?!i.visible:t,n.options.data[Gt(i,n.data)]=i.options,Vt(["graphic","dataLabel","connector","shadowGroup"],function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&o.legend.colorizeItem(i,t),!t&&"hover"===i.state&&i.setState(""),s&&(n.isDirty=!0),e&&o.redraw())},slice:function(t,e,i){var n=this.series;A(i,n.chart),zt(e,!0),this.sliced=this.options.sliced=t=c(t)?t:!this.sliced,n.options.data[Gt(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"},getColor:Dt,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(Vt(i,function(t){var i=t.graphic,o=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))}),e.animate=null)},setData:function(t,e,i,n){Te.prototype.setData.call(this,t,!1,i,n),this.processData(),this.generatePoints(),zt(e,!0)&&this.chart.redraw(i)},updateTotals:function(){var t,e,i=0,n=this.points,o=n.length,s=this.options.ignoreHiddenPoint;for(t=0;t<o;t++)e=n[t],i+=s&&!e.visible?0:e.y;for(this.total=i,t=0;t<o;t++)e=n[t],e.percentage=i>0&&(e.visible||!s)?e.y/i*100:0,e.total=i},generatePoints:function(){Te.prototype.generatePoints.call(this),this.updateTotals()},translate:function(t){this.generatePoints();var e,i,n,o,s,r=0,a=this.options,l=a.slicedOffset,c=l+a.borderWidth,h=a.startAngle||0,d=this.startAngleRad=mt/180*(h-90),h=(this.endAngleRad=mt/180*(zt(a.endAngle,h+360)-90))-d,u=this.points,p=a.dataLabels.distance,a=a.ignoreHiddenPoint,f=u.length;for(t||(this.center=t=this.getCenter()),this.getX=function(e,i){return n=at.asin(ut((e-t[1])/(t[2]/2+p),1)),t[0]+(i?-1:1)*ft(n)*(t[2]/2+p)},o=0;o<f;o++)s=u[o],e=d+r*h,a&&!s.visible||(r+=s.percentage/100),i=d+r*h,s.shapeType="arc",s.shapeArgs={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:lt(1e3*e)/1e3,end:lt(1e3*i)/1e3},n=(i+e)/2,n>1.5*mt?n-=2*mt:n<-mt/2&&(n+=2*mt),s.slicedTranslation={translateX:lt(ft(n)*l),translateY:lt(gt(n)*l)},e=ft(n)*t[2]/2,i=gt(n)*t[2]/2,s.tooltipPos=[t[0]+.7*e,t[1]+.7*i],s.half=n<-mt/2||n>mt/2?1:0,s.angle=n,c=ut(c,p/2),s.labelPos=[t[0]+e+ft(n)*p,t[1]+i+gt(n)*p,t[0]+e+ft(n)*c,t[1]+i+gt(n)*c,t[0]+e,t[1]+i,p<0?"center":s.half?"right":"left",n]},drawGraph:null,drawPoints:function(){var t,e,i,n,o,s=this,r=s.chart.renderer,a=s.options.shadow;a&&!s.shadowGroup&&(s.shadowGroup=r.g("shadow").add(s.group)),Vt(s.points,function(l){e=l.graphic,n=l.shapeArgs,i=l.shadowGroup,a&&!i&&(i=l.shadowGroup=r.g("shadow").add(s.shadowGroup)),t=l.sliced?l.slicedTranslation:{translateX:0,translateY:0},i&&i.attr(t),e?e.animate(Bt(n,t)):(o={"stroke-linejoin":"round"},l.visible||(o.visibility="hidden"),l.graphic=e=r[l.shapeType](n).setRadialReference(s.center).attr(l.pointAttr[l.selected?"select":""]).attr(o).attr(t).add(s.group).shadow(a,i))})},searchPoint:Dt,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:he.drawRectangle,getCenter:ke.getCenter,getSymbol:Dt},Wt=f(Te,Wt),Nt.pie=Wt,Te.prototype.drawDataLabels=function(){var e,i,n,o,s=this,r=s.options,a=r.cursor,l=r.dataLabels,h=s.points,d=s.hasRendered||0,u=s.chart.renderer;(l.enabled||s._hasPointLabels)&&(s.dlProcessOptions&&s.dlProcessOptions(l),o=s.plotGroup("dataLabelsGroup","data-labels",l.defer?"hidden":"visible",l.zIndex||6),zt(l.defer,!0)&&(o.attr({opacity:+d}),d||Zt(s,"afterAnimate",function(){s.visible&&o.show(),o[r.animation?"animate":"attr"]({opacity:1},{duration:200})})),i=l,Vt(h,function(h){var d,p,f,g,m=h.dataLabel,y=h.connector,b=!0,x={};if(e=h.dlOptions||h.options&&h.options.dataLabels,d=zt(e&&e.enabled,i.enabled),m&&!d)h.dataLabel=m.destroy();else if(d){if(l=t(i,e),g=l.style,d=l.rotation,p=h.getLabelConfig(),n=l.format?v(l.format,p):l.formatter.call(p,l),g.color=zt(l.color,g.color,s.color,"black"),m)c(n)?(m.attr({text:n}),b=!1):(h.dataLabel=m=m.destroy(),y&&(h.connector=y.destroy()));else if(c(n)){m={fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth,r:l.borderRadius||0,rotation:d,padding:l.padding,zIndex:1},"contrast"===g.color&&(x.color=l.inside||l.distance<0||r.stacking?u.getContrast(h.c
19olor||s.color):"#000000"),a&&(x.cursor=a);for(f in m)m[f]===O&&delete m[f];m=h.dataLabel=u[d?"text":"label"](n,0,-999,l.shape,null,null,l.useHTML).attr(m).css(Bt(g,x)).add(o).shadow(l.shadow)}m&&s.alignDataLabel(h,m,l,null,b)}}))},Te.prototype.alignDataLabel=function(t,e,i,n,o){var s=this.chart,r=s.inverted,a=zt(t.plotX,-999),l=zt(t.plotY,-999),c=e.getBBox(),h=s.renderer.fontMetrics(i.style.fontSize).b,d=this.visible&&(t.series.forceDL||s.isInsidePlot(a,lt(l),r)||n&&s.isInsidePlot(a,r?n.x+1:n.y+n.height-1,r));d&&(n=Bt({x:r?s.plotWidth-l:a,y:lt(r?s.plotHeight-a:l),width:0,height:0},n),Bt(i,{width:c.width,height:c.height}),i.rotation?(t=s.renderer.rotCorr(h,i.rotation),e[o?"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"===zt(i.overflow,"justify")?this.justifyDataLabel(e,i,r,c,n,o):zt(i.crop,!0)&&(d=s.isInsidePlot(r.x,r.y)&&s.isInsidePlot(r.x+c.width,r.y+c.height)),i.shape&&e.attr({anchorX:t.plotX,anchorY:t.plotY}))),d||(e.attr({y:-999}),e.placed=!1)},Te.prototype.justifyDataLabel=function(t,e,i,n,o,s){var r,a,l=this.chart,c=e.align,h=e.verticalAlign,d=t.box?0:t.padding||0;r=i.x+d,r<0&&("right"===c?e.align="left":e.x=-r,a=!0),r=i.x+n.width-d,r>l.plotWidth&&("left"===c?e.align="right":e.x=l.plotWidth-r,a=!0),r=i.y+d,r<0&&("bottom"===h?e.verticalAlign="top":e.y=-r,a=!0),r=i.y+n.height-d,r>l.plotHeight&&("top"===h?e.verticalAlign="bottom":e.y=l.plotHeight-r,a=!0),a&&(t.placed=!s,t.align(e,null,o))},Nt.pie&&(Nt.pie.prototype.drawDataLabels=function(){var t,e,i,n,o,s,r,a,l,c,h,d=this,u=d.data,p=d.chart,f=d.options.dataLabels,g=zt(f.connectorPadding,10),m=zt(f.connectorWidth,1),v=p.plotWidth,y=p.plotHeight,b=zt(f.softConnector,!0),x=f.distance,k=d.center,T=k[2]/2,C=k[1],S=x>0,_=[[],[]],A=[0,0,0,0],E=function(t,e){return e.y-t.y};if(d.visible&&(f.enabled||d._hasPointLabels)){for(Te.prototype.drawDataLabels.apply(d),Vt(u,function(t){t.dataLabel&&t.visible&&_[t.half].push(t)}),c=2;c--;){var P,M=[],D=[],O=_[c],$=O.length;if($){for(d.sortByAngle(O,c-.5),h=u=0;!u&&O[h];)u=O[h]&&O[h].dataLabel&&(O[h].dataLabel.getBBox().height||21),h++;if(x>0){for(o=ut(C+T+x,p.plotHeight),h=dt(0,C-T-x);h<=o;h+=u)M.push(h);if(o=M.length,$>o){for(t=[].concat(O),t.sort(E),h=$;h--;)t[h].rank=h;for(h=$;h--;)O[h].rank>=o&&O.splice(h,1);$=O.length}for(h=0;h<$;h++){t=O[h],s=t.labelPos,t=9999;var L,I;for(I=0;I<o;I++)L=pt(M[I]-s[1]),L<t&&(t=L,P=I);if(P<h&&null!==M[h])P=h;else for(o<$-h+P&&null!==M[h]&&(P=o-$+h);null===M[P];)P++;D.push({i:P,y:M[P]}),M[P]=null}D.sort(E)}for(h=0;h<$;h++)t=O[h],s=t.labelPos,n=t.dataLabel,l=t.visible===!1?"hidden":"inherit",t=s[1],x>0?(o=D.pop(),P=o.i,a=o.y,(t>a&&null!==M[P+1]||t<a&&null!==M[P-1])&&(a=ut(dt(0,t),p.plotHeight))):a=t,r=f.justify?k[0]+(c?-1:1)*(T+x):d.getX(a===C-T-x||a===C+T+x?t:a,c),n._attr={visibility:l,align:s[6]},n._pos={x:r+f.x+({left:g,right:-g}[s[6]]||0),y:a+f.y-10},n.connX=r,n.connY=a,null===this.options.size&&(o=n.width,r-o<g?A[3]=dt(lt(o-r+g),A[3]):r+o>v-g&&(A[1]=dt(lt(r+o-v+g),A[1])),a-u/2<0?A[0]=dt(lt(-a+u/2),A[0]):a+u/2>y&&(A[2]=dt(lt(a+u/2-y),A[2])))}}(0===w(A)||this.verifyDataLabelOverflow(A))&&(this.placeDataLabels(),S&&m&&Vt(this.points,function(t){e=t.connector,s=t.labelPos,(n=t.dataLabel)&&n._pos&&t.visible?(l=n._attr.visibility,r=n.connX,a=n.connY,i=b?["M",r+("left"===s[6]?5:-5),a,"C",r,a,2*s[2]-s[4],2*s[3]-s[5],s[2],s[3],"L",s[4],s[5]]:["M",r+("left"===s[6]?5:-5),a,"L",s[2],s[3],"L",s[4],s[5]],e?(e.animate({d:i}),e.attr("visibility",l)):t.connector=e=d.chart.renderer.path(i).attr({"stroke-width":m,stroke:f.connectorColor||t.color||"#606060",visibility:l}).add(d.dataLabelsGroup)):e&&(t.connector=e.destroy())}))}},Nt.pie.prototype.placeDataLabels=function(){Vt(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:-999}))})},Nt.pie.prototype.alignDataLabel=Dt,Nt.pie.prototype.verifyDataLabelOverflow=function(t){var e,i=this.center,n=this.options,o=n.center,s=n.minSize||80,r=s;return null!==o[0]?r=dt(i[2]-dt(t[1],t[3]),s):(r=dt(i[2]-t[1]-t[3],s),i[0]+=(t[3]-t[1])/2),null!==o[1]?r=dt(ut(r,i[2]-dt(t[0],t[2])),s):(r=dt(ut(r,i[2]-t[0]-t[2]),s),i[1]+=(t[0]-t[2])/2),r<i[2]?(i[2]=r,i[3]=/%$/.test(n.innerSize||0)?r*parseFloat(n.innerSize||0)/100:parseFloat(n.innerSize||0),this.translate(i),Vt(this.points,function(t){t.dataLabel&&(t.dataLabel._pos=null)}),this.drawDataLabels&&this.drawDataLabels()):e=!0,e}),Nt.column&&(Nt.column.prototype.alignDataLabel=function(e,i,n,o,s){var r=this.chart.inverted,a=e.series,l=e.dlBox||e.shapeArgs,c=zt(e.below,e.plotY>zt(this.translatedThreshold,a.yAxis.len)),h=zt(n.inside,!!this.options.stacking);l&&(o=t(l),r&&(o={x:a.yAxis.len-o.y-o.height,y:a.xAxis.len-o.x-o.width,width:o.height,height:o.width}),!h)&&(r?(o.x+=c?0:o.width,o.width=0):(o.y+=c?o.height:0,o.height=0)),n.align=zt(n.align,!r||h?"center":c?"right":"left"),n.verticalAlign=zt(n.verticalAlign,r||h?"middle":c?"top":"bottom"),Te.prototype.alignDataLabel.call(this,e,i,n,o,s)}),function(t){var e=t.Chart,i=t.each,n=t.pick,o=HighchartsAdapter.addEvent;e.prototype.callbacks.push(function(t){function e(){var e=[];i(t.series,function(t){var o=t.options.dataLabels;(o.enabled||t._hasPointLabels)&&!o.allowOverlap&&t.visible&&i(t.points,function(t){t.dataLabel&&(t.dataLabel.labelrank=n(t.labelrank,t.shapeArgs&&t.shapeArgs.height),e.push(t.dataLabel))})}),t.hideOverlappingLabels(e)}e(),o(t,"redraw",e)}),e.prototype.hideOverlappingLabels=function(t){var e,i,n,o,s=t.length;for(i=0;i<s;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1);for(t.sort(function(t,e){return e.labelrank-t.labelrank}),i=0;i<s;i++)for(n=t[i],e=i+1;e<s;++e)o=t[e],n&&o&&n.placed&&o.placed&&0!==n.newOpacity&&0!==o.newOpacity&&!(o.alignAttr.x>n.alignAttr.x+n.width||o.alignAttr.x+o.width<n.alignAttr.x||o.alignAttr.y>n.alignAttr.y+n.height||o.alignAttr.y+o.height<n.alignAttr.y)&&((n.labelrank<o.labelrank?n:o).newOpacity=0);for(i=0;i<s;i++)(e=t[i])&&(e.oldOpacity!==e.newOpacity&&e.placed&&(e.alignAttr.opacity=e.newOpacity,e[e.isOld&&e.newOpacity?"animate":"attr"](e.alignAttr)),e.isOld=!0)}}(ot),Wt=ot.TrackerMixin={drawTrackerPoint:function(){var t=this,e=t.chart,i=e.pointer,n=t.options.cursor,o=n&&{cursor:n},s=function(t){for(var i,n=t.target;
19n&&!i;)i=n.point,n=n.parentNode;i!==O&&i!==e.hoverPoint&&i.onMouseOver(t)};Vt(t.points,function(t){t.graphic&&(t.graphic.element.point=t),t.dataLabel&&(t.dataLabel.element.point=t)}),t._hasTracking||(Vt(t.trackerGroups,function(e){t[e]&&(t[e].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(t){i.onTrackerMouseOut(t)}).css(o),L)&&t[e].on("touchstart",s)}),t._hasTracking=!0)},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,o=[].concat(n?e.areaPath:e.graphPath),s=o.length,r=e.chart,a=r.pointer,l=r.renderer,c=r.options.tooltip.snap,h=e.tracker,d=i.cursor,u=d&&{cursor:d},d=e.singlePoints,p=function(){r.hoverSeries!==e&&e.onMouseOver()},f="rgba(192,192,192,"+(_t?1e-4:.002)+")";if(s&&!n)for(t=s+1;t--;)"M"===o[t]&&o.splice(t+1,0,o[t+1]-c,o[t+2],"L"),(t&&"M"===o[t]||t===s)&&o.splice(t,0,"L",o[t-2]+c,o[t-1]);for(t=0;t<d.length;t++)s=d[t],o.push("M",s.plotX-c,s.plotY,"L",s.plotX+c,s.plotY);h?h.attr({d:o}):(e.tracker=l.path(o).attr({"stroke-linejoin":"round",visibility:e.visible?"visible":"hidden",stroke:f,fill:n?f:It,"stroke-width":i.lineWidth+(n?0:2*c),zIndex:2}).add(e.group),Vt([e.tracker,e.markerGroup],function(t){t.addClass("highcharts-tracker").on("mouseover",p).on("mouseout",function(t){a.onTrackerMouseOut(t)}).css(u),L&&t.on("touchstart",p)}))}},Nt.column&&(Ce.prototype.drawTracker=Wt.drawTrackerPoint),Nt.pie&&(Nt.pie.prototype.drawTracker=Wt.drawTrackerPoint),Nt.scatter&&(Se.prototype.drawTracker=Wt.drawTrackerPoint),Bt(xe.prototype,{setItemEvents:function(t,e,i,n,o){var s=this;(i?e:t.legendGroup).on("mouseover",function(){t.setState("hover"),e.css(s.options.itemHoverStyle)}).on("mouseout",function(){e.css(t.visible?n:o),t.setState()}).on("click",function(e){var i=function(){t.setVisible()},e={browserEvent:e};t.firePointEvent?t.firePointEvent("legendItemClick",e,i):te(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=p("input",{type:"checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),Zt(t.checkbox,"click",function(e){te(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),R.legend.itemStyle.cursor="pointer",Bt(Yt.prototype,{showResetZoom:function(){var t=this,e=R.lang,i=t.options.chart.resetZoomButton,n=i.theme,o=n.states,s="chart"===i.relativeTo?null:"plotBox";this.resetZoomButton=t.renderer.button(e.resetZoom,null,null,function(){t.zoomOut()},n,o&&o.hover).attr({align:i.position.align,title:e.resetZoomTitle}).add().align(i.position,!1,s)},zoomOut:function(){var t=this;te(t,"selection",{resetSelection:!0}
19,function(){t.zoom()})},zoom:function(t){var e,i,o=this.pointer,s=!1;!t||t.resetSelection?Vt(this.axes,function(t){e=t.zoom()}):Vt(t.xAxis.concat(t.yAxis),function(t){var i=t.axis,n=i.isXAxis;(o[n?"zoomX":"zoomY"]||o[n?"pinchX":"pinchY"])&&(e=i.zoom(t.min,t.max),i.displayBtn&&(s=!0))}),i=this.resetZoomButton,s&&!i?this.showResetZoom():!s&&n(i)&&(this.resetZoomButton=i.destroy()),e&&this.redraw(zt(this.options.chart.animation,t&&t.animation,this.pointCount<100))},pan:function(t,e){var i,n=this,o=n.hoverPoints;o&&Vt(o,function(t){t.setState()}),Vt("xy"===e?[1,0]:[1],function(e){var o=t[e?"chartX":"chartY"],s=n[e?"xAxis":"yAxis"][0],r=n[e?"mouseDownX":"mouseDownY"],a=(s.pointRange||0)/2,l=s.getExtremes(),c=s.toValue(r-o,!0)+a,a=s.toValue(r+n[e?"plotWidth":"plotHeight"]-o,!0)-a,r=r>o;s.series.length&&(r||c>ut(l.dataMin,l.min))&&(!r||a<dt(l.dataMax,l.max))&&(s.setExtremes(c,a,!1,!1,{trigger:"pan"}),i=!0),n[e?"mouseDownX":"mouseDownY"]=o}),i&&n.redraw(!1),u(n.container,{cursor:"move"})}}),Bt(we.prototype,{select:function(t,e){var i=this,n=i.series,o=n.chart,t=zt(t,!i.selected);i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[Gt(i,n.data)]=i.options,i.setState(t&&"select"),e||Vt(o.getSelectedPoints(),function(t){t.selected&&t!==i&&(t.selected=t.options.selected=!1,n.options.data[Gt(t,n.data)]=t.options,t.setState(""),t.firePointEvent("unselect"))})})},onMouseOver:function(t){var e=this.series,i=e.chart,n=i.tooltip,o=i.hoverPoint;i.hoverSeries!==e&&e.onMouseOver(),o&&o!==this&&o.onMouseOut(),this.series&&(this.firePointEvent("mouseOver"),n&&(!n.shared||e.noSharedTooltip)&&n.refresh(this,t),this.setState("hover"),i.hoverPoint=this)},onMouseOut:function(){var t=this.series.chart,e=t.hoverPoints;this.firePointEvent("mouseOut"),e&&Gt(this,e)!==-1||(this.setState(),t.hoverPoint=null)},importEvents:function(){if(!this.hasImportedEvents){var e,i=t(this.series.options.point,this.options).events;this.events=i;for(e in i)Zt(this,e,i[e]);this.hasImportedEvents=!0}},setState:function(e,i){var n,o=this.plotX,s=this.plotY,r=this.series,a=r.options.states,l=oe[r.type].marker&&r.options.marker,c=l&&!l.enabled,h=l&&l.states[e],d=h&&h.enabled===!1,u=r.stateMarkerGraphic,p=this.marker||{},f=r.chart,g=r.halo,e=e||"";n=this.pointAttr[e]||r.pointAttr[e],e===this.state&&!i||this.selected&&"select"!==e||a[e]&&a[e].enabled===!1||e&&(d||c&&h.enabled===!1)||e&&p.states&&p.states[e]&&p.states[e].enabled===!1||(this.graphic?(l=l&&this.graphic.symbolName&&n.r,this.graphic.attr(t(n,l?{x:o-l,y:s-l,width:2*l,height:2*l}:{})),u&&u.hide()):(e&&h&&(l=h.radius,p=p.symbol||r.symbol,u&&u.currentSymbol!==p&&(u=u.destroy()),u?u[i?"animate":"attr"]({x:o-l,y:s-l}):p&&(r.stateMarkerGraphic=u=f.renderer.symbol(p,o-l,s-l,2*l,2*l).attr(n).add(r.markerGroup),u.currentSymbol=p)),u&&(u[e&&f.isInsidePlot(o,s,f.inverted)?"show":"hide"](),u.element.point=this)),(o=a[e]&&a[e].halo)&&o.size?(g||(r.halo=g=f.renderer.path().add(f.seriesGroup)),g.attr(Bt({fill:le(this.color||r.color).setOpacity(o.opacity).get()},o.attributes))[i?"animate":"attr"]({d:this.haloPath(o.size)})):g&&g.attr({d:[]}),this.state=e)},haloPath:function(t){var e=this.series,i=e.chart,n=e.getPlotBox(),o=i.inverted;return i.renderer.symbols.circle(n.translateX+(o?e.yAxis.len-this.plotY:this.plotX)-t,n.translateY+(o?e.xAxis.len-this.plotX:this.plotY)-t,2*t,2*t)}}),Bt(Te.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&te(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&&te(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,o=e.lineWidth,e=0,t=t||"";if(this.state!==t&&(this.state=t,!(n[t]&&n[t].enabled===!1)&&(t&&(o=n[t].lineWidth||o+(n[t].lineWidthPlus||0)),i&&!i.dashstyle)))for(t={"stroke-width":o},i.attr(t);this["zoneGraph"+e];)this["zoneGraph"+e].attr(t),e+=1},setVisible:function(t,e){var i,n=this,o=n.chart,s=n.legendItem,r=o.options.chart.ignoreHiddenSeries,a=n.visible;i=(n.visible=t=n.userOptions.visible=t===O?!a:t)?"show":"hide",Vt(["group","dataLabelsGroup","markerGroup","tracker"],function(t){n[t]&&n[t][i]()}),o.hoverSeries!==n&&(o.hoverPoint&&o.hoverPoint.series)!==n||n.onMouseOut(),s&&o.legend.colorizeItem(n,t),n.isDirty=!0,n.options.stacking&&Vt(o.series,function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),Vt(n.linkedSeries,function(e){e.setVisible(t,!1)}),r&&(o.isDirtyBox=!0),e!==!1&&o.redraw(),te(n,i)},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=t===O?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),te(this,t?"select":"unselect")},drawTracker:Wt.drawTrackerGraph}),Bt(ot,{Color:le,Point:we,Tick:M,Renderer:$,SVGElement:P,SVGRenderer:ce,arrayMin:k,arrayMax:w,charts:Ot,dateFormat:F,error:S,format:v,pathAnim:N,getOptions:function(){return R},hasBidiBug:At,isTouchDevice:Ct,setOptions:function(e){return R=t(!0,R,e),E(),R},addEvent:Zt,removeEvent:Jt,createElement:p,discardElement:C,css:u,each:Vt,map:Qt,merge:t,splat:d,extendClass:f,pInt:e,svg:_t,canvas:Et,vml:!_t&&!Et,product:"Highcharts",ver
19sion:"4.1.7"})}(),function(t){var e,i=t.each,n=t.pick,o=HighchartsAdapter.inArray,s=t.splat,r=function(t,e){this.init(t,e)};t.extend(r.prototype,{init:function(t,e){this.options=t,this.chartOptions=e,this.columns=t.columns||this.rowsToColumns(t.rows)||[],this.firstRowAsNames=n(t.firstRowAsNames,!0),this.decimalRegex=t.decimalPoint&&RegExp("^([0-9]+)"+t.decimalPoint+"([0-9]+)$"),this.rawColumns=[],this.columns.length?this.dataFound():(this.parseCSV(),this.parseTable(),this.parseGoogleSpreadsheet())},getColumnDistribution:function(){var n,o=this.chartOptions,s=this.options,r=[],a=function(e){return(t.seriesTypes[e||"line"].prototype.pointArrayMap||[0]).length},l=o&&o.chart&&o.chart.type,c=[],h=[],d=0;i(o&&o.series||[],function(t){c.push(a(t.type||l))}),i(s&&s.seriesMapping||[],function(t){r.push(t.x||0)}),0===r.length&&r.push(0),i(s&&s.seriesMapping||[],function(i){var s,r=new e,u=c[d]||a(l),p=t.seriesTypes[((o&&o.series||[])[d]||{}).type||l||"line"].prototype.pointArrayMap||["y"];r.addColumnReader(i.x,"x");for(s in i)i.hasOwnProperty(s)&&"x"!==s&&r.addColumnReader(i[s],s);for(n=0;n<u;n++)r.hasReader(p[n])||r.addColumnReader(void 0,p[n]);h.push(r),d++}),s=t.seriesTypes[l||"line"].prototype.pointArrayMap,void 0===s&&(s=["y"]),this.valueCount={global:a(l),xColumns:r,individual:c,seriesBuilders:h,globalPointArrayMap:s}},dataFound:function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},parseCSV:function(){var t,e,n=this,o=this.options,s=o.csv,r=this.columns,a=o.startRow||0,l=o.endRow||Number.MAX_VALUE,c=o.startColumn||0,h=o.endColumn||Number.MAX_VALUE,d=0;s&&(e=s.replace(/\r\n/g,"\n").replace(/\r/g,"\n").split(o.lineDelimiter||"\n"),t=o.itemDelimiter||(s.indexOf("\t")!==-1?"\t":","),i(e,function(e,o){var s=n.trim(e),u=0===s.indexOf("#");o>=a&&o<=l&&!u&&""!==s&&(s=e.split(t),i(s,function(t,e){e>=c&&e<=h&&(r[e-c]||(r[e-c]=[]),r[e-c][d]=t)}),d+=1)}),this.dataFound())},parseTable:function(){var t=this.options,e=t.table,n=this.columns,o=t.startRow||0,s=t.endRow||Number.MAX_VALUE,r=t.startColumn||0,a=t.endColumn||Number.MAX_VALUE;e&&("string"==typeof e&&(e=document.getElementById(e)),i(e.getElementsByTagName("tr"),function(t,e){e>=o&&e<=s&&i(t.children,function(t,i){("TD"===t.tagName||"TH"===t.tagName)&&i>=r&&i<=a&&(n[i-r]||(n[i-r]=[]),n[i-r][e-o]=t.innerHTML)})}),this.dataFound())},parseGoogleSpreadsheet:function(){var t,e,i=this,n=this.options,o=n.googleSpreadsheetKey,s=this.columns,r=n.startRow||0,a=n.endRow||Number.MAX_VALUE,l=n.startColumn||0,c=n.endColumn||Number.MAX_VALUE;o&&jQuery.ajax({dataType:"json",url:"https://spreadsheets.google.com/feeds/cells/"+o+"/"+(n.googleSpreadsheetWorksheet||"od6")+"/public/values?alt=json-in-script&callback=?",error:n.error,success:function(n){var o,h,n=n.feed.entry,d=n.length,u=0,p=0;for(h=0;h<d;h++)o=n[h],u=Math.max(u,o.gs$cell.col),p=Math.max(p,o.gs$cell.row);for(h=0;h<u;h++)h>=l&&h<=c&&(s[h-l]=[],s[h-l].length=Math.min(p,a-r));for(h=0;h<d;h++)o=n[h],t=o.gs$cell.row-1,e=o.gs$cell.col-1,e>=l&&e<=c&&t>=r&&t<=a&&(s[e-l][t-r]=o.content.$t);i.dataFound()}})},trim:function(t,e){return"string"==typeof t&&(t=t.replace(/^\s+|\s+$/g,""),e&&/^[0-9\s]+$/.test(t)&&(t=t.replace(/\s/g,"")),this.decimalRegex&&(t=t.replace(this.decimalRegex,"$1.$2"))),t},parseTypes:function(){for(var t=this.columns,e=t.length;e--;)this.parseColumn(t[e],e)},parseColumn:function(t,e){var i,n,r,a,l,c=this.rawColumns,h=this.columns,d=t.length,u=this.firstRowAsNames,p=o(e,this.valueCount.xColumns)!==-1,f=[],g=this.chartOptions,m=(this.options.columnTypes||[])[e],g=p&&(g&&g.xAxis&&"category"===s(g.xAxis)[0].type||"string"===m);for(c[e]||(c[e]=[]);d--;)i=f[d]||t[d],r=this.trim(i),a=this.trim(i,!0),n=parseFloat(a),void 0===c[e][d]&&(c[e][d]=r),g||0===d&&u?t[d]=r:+a===n?(t[d]=n,n>31536e6&&"float"!==m?t.isDatetime=!0:t.isNumeric=!0,void 0!==t[d+1]&&(l=n>t[d+1])):(n=this.parseDate(i),p&&"number"==typeof n&&!isNaN(n)&&"float"!==m?(f[d]=i,t[d]=n,t.isDatetime=!0,void 0!==t[d+1]&&(i=n>t[d+1],i!==l&&void 0!==l&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,d=t.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):t.unsorted=!0),l=i)):(t[d]=""===r?null:r,0!==d&&(t.isDatetime||t.isNumeric)&&(t.mixed=!0)));if(p&&t.mixed&&(h[e]=c[e]),p&&l&&this.options.sort)for(e=0;e<h.length;e++)h[e].reverse(),u&&h[e].unshift(h[e].pop())},dateFormats:{"YYYY-mm-dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{2})[\-\/\.]([0-9]{2})$/,parser:function(t){return Date.UTC(+t[1],t[2]-1,+t[3])}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(t){return Date.UTC(+t[3],t[2]-1,+t[1])},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(t){return Date.UTC(+t[3],t[1]-1,+t[2])}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(t){return Date.UTC(+t[3]+2e3,t[2]-1,+t[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(t){return Date.UTC(+t[3]+2e3,t[1]-1,+t[2])}}}
19,parseDate:function(t){var e,i,n,o=this.options.parseDate,s=this.options.dateFormat||this.dateFormat;if(o)e=o(t);else if("string"==typeof t){if(s)o=this.dateFormats[s],(n=t.match(o.regex))&&(e=o.parser(n));else for(i in this.dateFormats)if(o=this.dateFormats[i],n=t.match(o.regex)){this.dateFormat=i,this.alternativeFormat=o.alternative,e=o.parser(n);break}n||(n=Date.parse(t),"object"==typeof n&&null!==n&&n.getTime?e=n.getTime()-6e4*n.getTimezoneOffset():"number"==typeof n&&!isNaN(n)&&(e=n-6e4*new Date(n).getTimezoneOffset()))}return e},rowsToColumns:function(t){var e,i,n,o,s;if(t)for(s=[],i=t.length,e=0;e<i;e++)for(o=t[e].length,n=0;n<o;n++)s[n]||(s[n]=[]),s[n][e]=t[e][n];return s},parsed:function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},getFreeIndexes:function(t,e){var i,n,o,s=[],r=[];for(n=0;n<t;n+=1)s.push(!0);for(i=0;i<e.length;i+=1)for(o=e[i].getReferencedColumnIndexes(),n=0;n<o.length;n+=1)s[o[n]]=!1;for(n=0;n<s.length;n+=1)s[n]&&r.push(n);return r},complete:function(){var t,i,n,s,r,a,l=this.columns,c=this.options,h=[];if(c.complete||c.afterComplete){for(s=0;s<l.length;s++)this.firstRowAsNames&&(l[s].name=l[s].shift());for(i=[],n=this.getFreeIndexes(l.length,this.valueCount.seriesBuilders),s=0;s<this.valueCount.seriesBuilders.length;s++)a=this.valueCount.seriesBuilders[s],a.populateColumns(n)&&h.push(a);for(;n.length>0;){for(a=new e,a.addColumnReader(0,"x"),s=o(0,n),s!==-1&&n.splice(s,1),s=0;s<this.valueCount.global;s++)a.addColumnReader(void 0,this.valueCount.globalPointArrayMap[s]);a.populateColumns(n)&&h.push(a)}if(h.length>0&&h[0].readers.length>0&&(a=l[h[0].readers[0].columnIndex],void 0!==a&&(a.isDatetime?t="datetime":a.isNumeric||(t="category"))),"category"===t)for(s=0;s<h.length;s++)for(a=h[s],n=0;n<a.readers.length;n++)"x"===a.readers[n].configName&&(a.readers[n].configName="name");for(s=0;s<h.length;s++){for(a=h[s],n=[],r=0;r<l[0].length;r++)n[r]=a.read(l,r);i[s]={data:n},a.name&&(i[s].name=a.name),"category"===t&&(i[s].turboThreshold=0)}l={series:i},t&&(l.xAxis={type:t}),c.complete&&c.complete(l),c.afterComplete&&c.afterComplete(l)}}}),t.Data=r,t.data=function(t,e){return new r(t,e)},t.wrap(t.Chart.prototype,"init",function(e,i,n){var o=this;i&&i.data?t.data(t.extend(i.data,{afterComplete:function(s){var r,a;if(i.hasOwnProperty("series"))if("object"==typeof i.series)for(r=Math.max(i.series.length,s.series.length);r--;)a=i.series[r]||{},i.series[r]=t.merge(a,s.series[r]);else delete i.series;i=t.merge(s,i),e.call(o,i,n)}}),i):e.call(o,i,n)}),e=function(){this.readers=[],this.pointIsArray=!0},e.prototype.populateColumns=function(t){var e=!0;return i(this.readers,function(e){void 0===e.columnIndex&&(e.columnIndex=t.shift())}),i(this.readers,function(t){void 0===t.columnIndex&&(e=!1)}),e},e.prototype.read=function(t,e){var n,o=this.pointIsArray,s=o?[]:{};return i(this.readers,function(i){var n=t[i.columnIndex][e];o?s.push(n):s[i.configName]=n}),void 0===this.name&&this.readers.length>=2&&(n=this.getReferencedColumnIndexes(),n.length>=2)&&(n.shift(),n.sort(),this.name=t[n.shift()].name),s},e.prototype.addColumnReader=function(t,e){this.readers.push({columnIndex:t,configName:e}),"x"!==e&&"y"!==e&&void 0!==e&&(this.pointIsArray=!1)},e.prototype.getReferencedColumnIndexes=function(){var t,e,i=[];for(t=0;t<this.readers.length;t+=1)e=this.readers[t],void 0!==e.columnIndex&&i.push(e.columnIndex);return i},e.prototype.hasReader=function(t){var e,i;for(e=0;e<this.readers.length;e+=1)if(i=this.readers[e],i.configName===t)return!0}}(Highcharts),function(t,e){var i,n=t.jQuery||t.Cowboy||(t.Cowboy={});n.throttle=i=function(t,i,o,s){function r(){function n(){l=+new Date,o.apply(c,d)}function r(){a=e}var c=this,h=+new Date-l,d=arguments;s&&!a&&n(),a&&clearTimeout(a),s===e&&h>t?n():i!==!0&&(a=setTimeout(s?r:n,s===e?t-h:t))}var a,l=0;return"boolean"!=typeof i&&(s=o,o=i,i=e),n.guid&&(r.guid=o.guid=o.guid||n.guid++),r},n.debounce=function(t,n,o){return o===e?i(t,n,!1):i(t,o,n!==!1)}}(this),function(t){function e(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{enumerable:!0,get:n})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}
19),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,i){if(1&i&&(t=e(t)),8&i)return t;if(4&i&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(e.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&i&&"string"!=typeof t)for(var o in t)e.d(n,o,function(e){return t[e]}.bind(null,o));return n},e.n=function(t){var i=t&&t.__esModule?function(){return t["default"]}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{"default":t}}i(1),i(7),i(8);var o=i(2),s=n(o),r=i(3),a=n(r),l=i(4),c=n(l);a["default"]===c["default"]&&i(9),window.Inputmask=s["default"]},function(t,e,i){"use strict";var n,o,s;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},!function(r){o=[i(2)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t){return t.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),t.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(t,e,i,n,o){return i-1>-1&&"."!==e.buffer[i-1]?(t=e.buffer[i-1]+t,t=i-2>-1&&"."!==e.buffer[i-2]?e.buffer[i-2]+t:"0"+t):t="00"+t,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(t)}}},onUnMask:function(t,e,i){return t},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(t,e){return t=t.toLowerCase(),t.replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(t,e,i){return t},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),t})},function(t,e,i){"use strict";var n,o,s,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){
20return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){o=[i(3),i(5),i(6)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t,e,i,n){function o(e,i,r){return this instanceof o?(this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,void(r!==!0&&(t.isPlainObject(e)?i=e:(i=i||{},e&&(i.alias=e)),this.opts=t.extend(!0,{},this.defaults,i),this.noMasksCache=i&&i.definitions!==n,this.userOptions=i||{},this.isRTL=this.opts.numericInput,s(this.opts.alias,i,this.opts)))):new o(e,i,r)}function s(e,i,r){var a=o.prototype.aliases[e];return a?(a.alias&&s(a.alias,n,r),t.extend(!0,r,a),t.extend(!0,r,i),!0):(null===r.mask&&(r.mask=e),!1)}function a(e,i){function s(e,s,r){var a=!1;if(null!==e&&""!==e||(a=null!==r.regex,a?(e=r.regex,e=e.replace(/^(\^)(.*)(\$)$/,"$2")):(a=!0,e=".*")),1===e.length&&r.greedy===!1&&0!==r.repeat&&(r.placeholder=""),r.repeat>0||"*"===r.repeat||"+"===r.repeat){var l="*"===r.repeat?0:"+"===r.repeat?1:r.repeat;e=r.groupmarker[0]+e+r.groupmarker[1]+r.quantifiermarker[0]+l+","+r.repeat+r.quantifiermarker[1]}
20var c,h=a?"regex_"+r.regex:r.numericInput?e.split("").reverse().join(""):e;return o.prototype.masksCache[h]===n||i===!0?(c={mask:e,maskToken:o.prototype.analyseMask(e,a,r),validPositions:{},_buffer:n,buffer:n,tests:{},excludes:{},metadata:s,maskLength:n},i!==!0&&(o.prototype.masksCache[h]=c,c=t.extend(!0,{},o.prototype.masksCache[h]))):c=t.extend(!0,{},o.prototype.masksCache[h]),c}var r;if(t.isFunction(e.mask)&&(e.mask=e.mask(e)),t.isArray(e.mask)){if(e.mask.length>1){if(null===e.keepStatic){e.keepStatic="auto";for(var a=0;a<e.mask.length;a++)if(e.mask[a].charAt(0)!==e.mask[0].charAt(0)){e.keepStatic=!0;break}}var l=e.groupmarker[0];return t.each(e.isRTL?e.mask.reverse():e.mask,function(i,o){l.length>1&&(l+=e.groupmarker[1]+e.alternatormarker+e.groupmarker[0]),l+=o.mask===n||t.isFunction(o.mask)?o:o.mask}),l+=e.groupmarker[1],s(l,e.mask,e)}e.mask=e.mask.pop()}return r=e.mask&&e.mask.mask!==n&&!t.isFunction(e.mask.mask)?s(e.mask.mask,e.mask,e):s(e.mask,e.mask,e)}function l(t){var e=i.createElement("input"),n="on"+t,o=n in e;return o||(e.setAttribute(n,"return;"),o="function"==typeof e[n]),e=null,o}function c(s,a,h){function f(t,e,i,o,s){var r=h.greedy;s&&(h.greedy=!1),e=e||0;var a,l,c,d=[],u=0;v();do{if(t===!0&&g().validPositions[u])c=s&&g().validPositions[u].match.optionality===!0&&g().validPositions[u+1]===n&&(g().validPositions[u].generatedInput===!0||g().validPositions[u].input==h.skipOptionalPartCharacter&&u>0)?x(u,C(u,a,u-1)):g().validPositions[u],l=c.match,a=c.locator.slice(),d.push(i===!0?c.input:i===!1?l.nativeDef:H(u,l));else{c=k(u,a,u-1),l=c.match,a=c.locator.slice();var p=o!==!0&&(h.jitMasking!==!1?h.jitMasking:l.jit);(p===!1||p===n||"number"==typeof p&&isFinite(p)&&p>u)&&d.push(i===!1?l.nativeDef:H(u,l))}"auto"===h.keepStatic&&l.newBlockMarker&&null!==l.fn&&(h.keepStatic=u-1),u++}while((Q===n||u<Q)&&(null!==l.fn||""!==l.def)||e>u);return""===d[d.length-1]&&d.pop(),i===!1&&g().maskLength!==n||(g().maskLength=u-1),h.greedy=r,d}function g(){return a}function m(t){var e=g();e.buffer=n,t!==!0&&(e.validPositions={},e.p=0)}function v(t,e,i){var o=-1,s=-1,r=i||g().validPositions;t===n&&(t=-1);for(var a in r){var l=parseInt(a);r[l]&&(e||r[l].generatedInput!==!0)&&(l<=t&&(o=l),l>=t&&(s=l))}return o===-1||o==t?s:s==-1?o:t-o<s-t?o:s}function y(t){var e=t.locator[t.alternation];return"string"==typeof e&&e.length>0&&(e=e.split(",")[0]),e!==n?e.toString():""}function b(t,e){var i=(t.alternation!=n?t.mloc[y(t)]:t.locator).join("");if(""!==i)for(;i.length<e;)i+="0";return i}function x(t,e){t=t>0?t-1:0;for(var i,o,s,r=w(t),a=b(r),l=0;l<e.length;l++){var c=e[l];i=b(c,a.length);var h=Math.abs(i-a);(o===n||""!==i&&h<o||s&&s.match.optionality&&"master"===s.match.newBlockMarker&&(!c.match.optionality||!c.match.newBlockMarker)||s&&s.match.optionalQuantifier&&!c.match.optionalQuantifier)&&(o=h,s=c)}return s}function k(t,e,i){return g().validPositions[t]||x(t,C(t,e?e.slice():e,i))}function w(t,e){return g().validPositions[t]?g().validPositions[t]:(e||C(t))[0]}function T(t,e){for(var i=!1,n=C(t),o=0;o<n.length;o++)if(n[o].match&&n[o].match.def===e){i=!0;break}return i}function C(e,i,o){function s(i,o,r,l){function d(r,l,v){function y(e,i){var n=0===t.inArray(e,i.matches);return n||t.each(i.matches,function(t,o){if(o.isQuantifier===!0?n=y(e,i.matches[t-1]):o.hasOwnProperty("matches")&&(n=y(e,o)),n)return!1}),n}function b(e,i,o){var s,r;if((g().tests[e]||g().validPositions[e])&&t.each(g().tests[e]||[g().validPositions[e]],function(t,e){if(e.mloc[i])return s=e,!1;var a=o!==n?o:e.alternation,l=e.locator[a]!==n?e.locator[a].toString().indexOf(i):-1;(r===n||l<r)&&l!==-1&&(s=e,r=l)}),s){var a=s.locator[s.alternation],l=s.mloc[i]||s.mloc[a]||s.locator;return l.slice((o!==n?o:s.alternation)+1)}return o!==n?b(e,i):n}function x(t,e){function i(t){for(var e,i,n=[],o=0,s=t.length;o<s;o++)if("-"===t.charAt(o))for(i=t.charCodeAt(o+1);++e<i;)n.push(String.fromCharCode(e));else e=t.charCodeAt(o),n.push(t.charAt(o));return n.join("")}return h.regex&&null!==t.match.fn&&null!==e.match.fn?i(e.match.def.replace(/[\[\]]/g,"")).indexOf(i(t.match.def.replace(/[\[\]]/g,"")))!==-1:t.match.def===e.match.nativeDef}function k(t,i){var n=t.locator.slice(t.alternation).join(""),o=i.locator.slice(i.alternation).join(""),s=n==o,s=!(!s||null!==t.match.fn||null===i.match.fn)&&i.match.fn.test(t.match.def,g(),e,!1,h,!1);return s}function w(t,e){if(e===n||t.alternation===e.alternation&&t.locator[t.alternation].toString().indexOf(e.locator[e.alternation])===-1){t.mloc=t.mloc||{};var i=t.locator[t.alternation];if(i!==n){if("string"==typeof i&&(i=i.split(",")[0]),t.mloc[i]===n&&(t.mloc[i]=t.locator.slice()),e!==n){for(var o in e.mloc)"string"==typeof o&&(o=o.split(",")[0]),t.mloc[o]===n&&(t.mloc[o]=e.mloc[o]);t.locator[t.alternation]=Object.keys(t.mloc).join(",")}return!0}t.alternation=n}return!1}if(c>500&&v!==n)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+g().mask;if(c===e&&r.matches===n)return u.push({match:r,locator:l.reverse(),cd:f,mloc:{}}),!0;if(r.matches!==n){if(r.isGroup&&v!==r){if(r=d(i.matches[t.inArray(r,i.matches)+1],l,v))return!0}else if(r.isOptional){var T=r;if(r=s(r,o,l,v)){if(t.each(u,function(t,e){e.match.optionality=!0}),a=u[u.length-1].match,v!==n||!y(a,T))return!0;p=!0,c=e}}else if(r.isAlternator){var C,S=r,_=[],A=u.slice(),E=l.length,P=o.length>0?o.shift():-1;if(P===-1||"string"==typeof P){var M,D=c,O=o.slice(),$=[];if("string"==typeof P)$=P.split(",");else for(M=0;M<S.matches.length;M++)$.push(M.toString());if(g().excludes[e]){for(var L=$.slice(),I=0,R=g().excludes[e].length;I<R;I++)$.splice($.indexOf(g().excludes[e][I].toString()),1);0===$.length&&(g().excludes[e]=n,$=L)}(h.keepStatic===!0||isFinite(parseInt(h.keepStatic))&&D>
20=h.keepStatic)&&($=$.slice(0,1));for(var F=!1,H=0;H<$.length;H++){M=parseInt($[H]),u=[],o="string"==typeof P?b(c,M,E)||O.slice():O.slice(),S.matches[M]&&d(S.matches[M],[M].concat(l),v)?r=!0:0===H&&(F=!0),C=u.slice(),c=D,u=[];for(var N=0;N<C.length;N++){var B=C[N],z=!1;B.match.jit=B.match.jit||F,B.alternation=B.alternation||E,w(B);for(var j=0;j<_.length;j++){var W=_[j];if("string"!=typeof P||B.alternation!==n&&t.inArray(B.locator[B.alternation].toString(),$)!==-1){if(B.match.nativeDef===W.match.nativeDef){z=!0,w(W,B);break}if(x(B,W)){w(B,W)&&(z=!0,_.splice(_.indexOf(W),0,B));break}if(x(W,B)){w(W,B);break}if(k(B,W)){w(B,W)&&(z=!0,_.splice(_.indexOf(W),0,B));break}}}z||_.push(B)}}u=A.concat(_),c=e,p=u.length>0,r=_.length>0,o=O.slice()}else r=d(S.matches[P]||i.matches[P],[P].concat(l),v);if(r)return!0}else if(r.isQuantifier&&v!==i.matches[t.inArray(r,i.matches)-1])for(var Y=r,U=o.length>0?o.shift():0;U<(isNaN(Y.quantifier.max)?U+1:Y.quantifier.max)&&c<=e;U++){var q=i.matches[t.inArray(Y,i.matches)-1];if(r=d(q,[U].concat(l),q)){if(a=u[u.length-1].match,a.optionalQuantifier=U>Y.quantifier.min-1,a.jit=(U||1)*q.matches.indexOf(a)>=Y.quantifier.jit,a.optionalQuantifier&&y(a,q)){p=!0,c=e;break}if(a.jit&&!a.optionalQuantifier){m=q.matches.indexOf(a),c=e,p=!0;break}return!0}}else if(r=s(r,o,l,v))return!0}else c++}for(var v=o.length>0?o.shift():0;v<i.matches.length;v=v+1+m)if(m=0,i.matches[v].isQuantifier!==!0){var y=d(i.matches[v],[v].concat(r),l);if(y&&c===e)return y;if(c>e)break}}function r(e,i){var o=[];return t.isArray(i)||(i=[i]),i.length>0&&(i[0].alternation===n?(o=x(e,i.slice()).locator.slice(),0===o.length&&(o=i[0].locator.slice())):t.each(i,function(t,e){if(""!==e.def)if(0===o.length)o=e.locator.slice();else for(var i=0;i<o.length;i++)e.locator[i]&&o[i].toString().indexOf(e.locator[i])===-1&&(o[i]+=","+e.locator[i])})),o}var a,l=g().maskToken,c=i?o:0,d=i?i.slice():[0],u=[],p=!1,f=i?i.join(""):"",m=0;if(e>-1){if(i===n){for(var v,y=e-1;(v=g().validPositions[y]||g().tests[y])===n&&y>-1;)y--;v!==n&&y>-1&&(d=r(y,v),f=d.join(""),c=y)}if(g().tests[e]&&g().tests[e][0].cd===f)return g().tests[e];for(var b=d.shift();b<l.length;b++){var k=s(l[b],d,[b]);if(k&&c===e||c>e)break}}return(0===u.length||p)&&u.push({match:{fn:null,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:f}),i!==n&&g().tests[e]?t.extend(!0,[],u):(g().tests[e]=t.extend(!0,[],u),g().tests[e])}function S(){return g()._buffer===n&&(g()._buffer=f(!1,1),g().buffer===n&&(g().buffer=g()._buffer.slice())),g()._buffer}function _(t){return g().buffer!==n&&t!==!0||(g().buffer=f(!0,v(),!0)),g().buffer}function A(t,e,i){var o,s;if(t===!0)m(),t=0,e=i.length;else for(o=t;o<e;o++)delete g().validPositions[o];for(s=t,o=t;o<e;o++)if(m(!0),i[o]!==h.skipOptionalPartCharacter){var r=D(s,i[o],!0,!0);r!==!1&&(m(!0),s=r.caret!==n?r.caret:r.pos+1)}}
20function E(e,i,n){switch(h.casing||i.casing){case"upper":e=e.toUpperCase();break;case"lower":e=e.toLowerCase();break;case"title":var s=g().validPositions[n-1];e=0===n||s&&s.input===String.fromCharCode(o.keyCode.SPACE)?e.toUpperCase():e.toLowerCase();break;default:if(t.isFunction(h.casing)){var r=Array.prototype.slice.call(arguments);r.push(g().validPositions),e=h.casing.apply(this,r)}}return e}function P(e,i,o){for(var s,r=h.greedy?i:i.slice(0,1),a=!1,l=o!==n?o.split(","):[],c=0;c<l.length;c++)(s=e.indexOf(l[c]))!==-1&&e.splice(s,1);for(var d=0;d<e.length;d++)if(t.inArray(e[d],r)!==-1){a=!0;break}return a}function M(e,i,o,s,r){var a,l,c,h,d,u,p,f=t.extend(!0,{},g().validPositions),b=!1,x=r!==n?r:v();if(x===-1&&r===n)a=0,h=w(a),l=h.alternation;else for(;x>=0;x--)if(c=g().validPositions[x],c&&c.alternation!==n){if(h&&h.locator[c.alternation]!==c.locator[c.alternation])break;a=x,l=g().validPositions[a].alternation,h=c}if(l!==n){p=parseInt(a),g().excludes[p]=g().excludes[p]||[],e!==!0&&g().excludes[p].push(y(h));var k=[],T=0;for(d=p;d<v(n,!0)+1;d++)u=g().validPositions[d],u&&u.generatedInput!==!0?k.push(u.input):d<e&&T++,delete g().validPositions[d];for(;g().excludes[p]&&g().excludes[p].length<10;){var C=T*-1,S=k.slice();for(g().tests[p]=n,m(!0),b=!0;S.length>0;){var _=S.shift();if(!(b=D(v(n,!0)+1,_,!1,s,!0)))break}if(b&&i!==n){var A=v(e)+1;for(d=p;d<v()+1;d++)u=g().validPositions[d],(u===n||null==u.match.fn)&&d<e+C&&C++;e+=C,b=D(e>A?A:e,i,o,s,!0)}if(b)break;if(m(),h=w(p),g().validPositions=t.extend(!0,{},f),!g().excludes[p]){b=M(e,i,o,s,p-1);break}var E=y(h);if(g().excludes[p].indexOf(E)!==-1){b=M(e,i,o,s,p-1);break}for(g().excludes[p].push(E),d=p;d<v(n,!0)+1;d++)delete g().validPositions[d]}}return g().excludes[p]=n,b}function D(e,i,o,s,r,a){function l(t){return it?t.begin-t.end>1||t.begin-t.end===1:t.end-t.begin>1||t.end-t.begin===1}function c(i,o,r){var a=!1;return t.each(C(i),function(c,d){var u=d.match;if(_(!0),a=null!=u.fn?u.fn.test(o,g(),i,r,h,l(e)):(o===u.def||o===h.skipOptionalPartCharacter)&&""!==u.def&&{c:H(i,u,!0)||u.def,pos:i},a!==!1){var p=a.c!==n?a.c:o,f=i;return p=p===h.skipOptionalPartCharacter&&null===u.fn?H(i,u,!0)||u.def:p,a.remove!==n&&(t.isArray(a.remove)||(a.remove=[a.remove]),t.each(a.remove.sort(function(t,e){return e-t}),function(t,e){$({begin:e,end:e+1})})),a.insert!==n&&(t.isArray(a.insert)||(a.insert=[a.insert]),t.each(a.insert.sort(function(t,e){return t-e}),function(t,e){D(e.pos,e.c,!0,s)})),a!==!0&&a.pos!==n&&a.pos!==i&&(f=a.pos),(a===!0||a.pos!==n||a.c!==n)&&($(e,t.extend({},d,{input:E(p,u,f)}),s,f)||(a=!1),!1)}}),a}o=o===!0;var d=e;e.begin!==n&&(d=it?e.end:e.begin);var u=!0,p=t.extend(!0,{},g().validPositions);if(t.isFunction(h.preValidation)&&!o&&s!==!0&&a!==!0&&(u=h.preValidation(_(),d,i,l(e),h,g())),u===!0){if(O(n,d,!0),(Q===n||d<Q)&&(u=c(d,i,o),(!o||s===!0)&&u===!1&&a!==!0)){var f=g().validPositions[d];if(!f||null!==f.match.fn||f.match.def!==i&&i!==h.skipOptionalPartCharacter){if((h.insertMode||g().validPositions[I(d)]===n)&&!L(d,!0))for(var v=d+1,y=I(d);v<=y;v++)if(u=c(v,i,o),u!==!1){u=O(d,u.pos!==n?u.pos:v)||u,d=v;break}}else u={caret:I(d)}}u!==!1||h.keepStatic===!1||null!=h.regex&&!Y(_())||o||r===!0||(u=M(d,i,o,s)),u===!0&&(u={pos:d})}if(t.isFunction(h.postValidation)&&u!==!1&&!o&&s!==!0&&a!==!0){var b=h.postValidation(_(!0),e.begin!==n?it?e.end:e.begin:e,u,h);if(b!==n){if(b.refreshFromBuffer&&b.buffer){var x=b.refreshFromBuffer;A(x===!0?x:x.start,x.end,b.buffer)}u=b===!0?u:b}}return u&&u.pos===n&&(u.pos=d),u!==!1&&a!==!0||(m(!0),g().validPositions=t.extend(!0,{},p)),u}function O(e,i,o){var s;if(e===n)for(e=i-1;e>0&&!g().validPositions[e];e--);for(var r=e;r<i;r++)if(g().validPositions[r]===n&&!L(r,!0)){var a=0==r?w(r):g().validPositions[r-1];if(a){var l=C(r).slice();""===l[l.length-1].match.def&&l.pop();var c=x(r,l);if(c=t.extend({},c,{input:H(r,c.match,!0)||c.match.def}),c.generatedInput=!0,$(r,c,!0),o!==!0){var h=g().validPositions[i].input;g().validPositions[i]=n,s=D(i,h,!0,!0)}}}return s}function $(e,i,o,s){function r(t,e,i){var o=e[t];if(o!==n&&(null===o.match.fn&&o.match.optionality!==!0||o.input===h.radixPoint)){var s=i.begin<=t-1?e[t-1]&&null===e[t-1].match.fn&&e[t-1]:e[t-1],r=i.end>
20t+1?e[t+1]&&null===e[t+1].match.fn&&e[t+1]:e[t+1];return s&&r}return!1}var a=e.begin!==n?e.begin:e,l=e.end!==n?e.end:e;if(e.begin>e.end&&(a=e.end,l=e.begin),s=s!==n?s:a,a!==l||h.insertMode&&g().validPositions[s]!==n&&o===n){var c,d=t.extend(!0,{},g().validPositions),u=v(n,!0);for(g().p=a,c=u;c>=a;c--)g().validPositions[c]&&"+"===g().validPositions[c].match.nativeDef&&(h.isNegative=!1),delete g().validPositions[c];var p=!0,f=s,y=(g().validPositions,!1),b=f,c=f;for(i&&(g().validPositions[s]=t.extend(!0,{},i),b++,f++,a<l&&c++);c<=u;c++){var x=d[c];if(x!==n&&(c>=l||c>=a&&x.generatedInput!==!0&&r(c,d,{begin:a,end:l}))){for(;""!==w(b).match.def;){if(y===!1&&d[b]&&d[b].match.nativeDef===x.match.nativeDef)g().validPositions[b]=t.extend(!0,{},d[b]),g().validPositions[b].input=x.input,O(n,b,!0),f=b+1,p=!0;else if(T(b,x.match.def)){var k=D(b,x.input,!0,!0);p=k!==!1,f=k.caret||k.insert?v():b+1,y=!0}else p=x.generatedInput===!0||x.input===h.radixPoint&&h.numericInput===!0;if(p)break;if(!p&&b>l&&L(b,!0)&&(null!==x.match.fn||b>g().maskLength))break;b++}""==w(b).match.def&&(p=!1),b=f}if(!p)break}if(!p)return g().validPositions=t.extend(!0,{},d),m(!0),!1}else i&&(g().validPositions[s]=t.extend(!0,{},i));return m(!0),!0}function L(t,e){var i=k(t).match;if(""===i.def&&(i=w(t).match),null!=i.fn)return i.fn;if(e!==!0&&t>-1){var n=C(t);return n.length>1+(""===n[n.length-1].match.def?1:0)}return!1}function I(t,e){for(var i=t+1;""!==w(i).match.def&&(e===!0&&(w(i).match.newBlockMarker!==!0||!L(i))||e!==!0&&!L(i));)i++;return i}function R(t,e){var i,n=t;if(n<=0)return 0;for(;--n>0&&(e===!0&&w(n).match.newBlockMarker!==!0||e!==!0&&!L(n)&&(i=C(n),i.length<2||2===i.length&&""===i[1].match.def)););return n}function F(e,i,o,s,r){if(s&&t.isFunction(h.onBeforeWrite)){var a=h.onBeforeWrite.call(tt,s,i,o,h);if(a){if(a.refreshFromBuffer){var l=a.refreshFromBuffer;A(l===!0?l:l.start,l.end,a.buffer||i),i=_(!0)}o!==n&&(o=a.caret!==n?a.caret:o)}}if(e!==n&&(e.inputmask._valueSet(i.join("")),o===n||s!==n&&"blur"===s.type?G(e,o,0===i.length):z(e,o),r===!0)){var c=t(e),d=e.inputmask._valueGet();ot=!0,c.trigger("input"),setTimeout(function(){d===S().join("")?c.trigger("cleared"):Y(i)===!0&&c.trigger("complete")},0)}}function H(e,i,o){if(i=i||w(e).match,i.placeholder!==n||o===!0)return t.isFunction(i.placeholder)?i.placeholder(h):i.placeholder;if(null===i.fn){if(e>-1&&g().validPositions[e]===n){var s,r=C(e),a=[];if(r.length>1+(""===r[r.length-1].match.def?1:0))for(var l=0;l<r.length;l++)if(r[l].match.optionality!==!0&&r[l].match.optionalQuantifier!==!0&&(null===r[l].match.fn||s===n||r[l].match.fn.test(s.match.def,g(),e,!0,h)!==!1)&&(a.push(r[l]),null===r[l].match.fn&&(s=r[l]),a.length>1&&/[0-9a-bA-Z]/.test(a[0].match.def)))return h.placeholder.charAt(e%h.placeholder.length)}return i.def}return h.placeholder.charAt(e%h.placeholder.length)}function N(e,i,s,r,a){function l(t,e){var i=f(!0,0,!1).slice(t,I(t)).join("").replace(/'/g,"").indexOf(e);return i!==-1&&!L(t)&&(w(t).match.nativeDef===e.charAt(0)||null===w(t).match.fn&&w(t).match.nativeDef==="'"+e.charAt(0)||" "===w(t).match.nativeDef&&(w(t+1).match.nativeDef===e.charAt(0)||null===w(t+1).match.fn&&w(t+1).match.nativeDef==="'"+e.charAt(0)))}var c=this||e.inputmask,d=r.slice(),u="",p=-1,y=n;if(m(),s||h.autoUnmask===!0)p=I(p);else{var b=S().slice(0,I(-1)).join(""),x=d.join("").match(new RegExp("^"+o.escapeRegex(b),"g"));x&&x.length>0&&(d.splice(0,x.length*b.length),p=I(p))}p===-1?(g().p=I(p),p=0):g().p=p,c.caretPos={begin:p},t.each(d,function(i,o){if(o!==n)if(g().validPositions[i]===n&&d[i]===H(i)&&L(i,!0)&&D(i,d[i],!0,n,n,!0)===!1)g().p++;else{var r=new t.Event("_checkval");r.which=o.charCodeAt(0),u+=o;var a=v(n,!0);l(p,u)?y=lt.keypressEvent.call(e,r,!0,!1,s,a+1):(y=lt.keypressEvent.call(e,r,!0,!1,s,c.caretPos.begin),y&&(p=c.caretPos.begin+1,u="")),y&&(F(n,_(),y.forwardPosition,r,!1),c.caretPos={begin:y.forwardPosition,end:y.forwardPosition})}}),i&&F(e,_(),y?y.forwardPosition:n,a||new t.Event("checkval"),a&&"input"===a.type)}function B(e){if(e){if(e.inputmask===n)return e.value;e.inputmask&&e.inputmask.refreshValue&&lt.setValueEvent.call(e)}var i=[],o=g().validPositions;for(var s in o)o[s].match&&null!=o[s].match.fn&&i.push(o[s].input);var r=0===i.length?"":(it?i.reverse():i).join("");if(t.isFunction(h.onUnMask)){var a=(it?_().slice().reverse():_()).join("");r=h.onUnMask.call(tt,a,r,h)}return r}function z(o,s,r,a){function l(t){return!it||"number"!=typeof t||h.greedy&&""===h.placeholder||!et||(t=et.inputmask._valueGet().length-t),t}var c;if(s===n)return"selectionStart"in o?(s=o.selectionStart,r=o.selectionEnd):e.getSelection?(c=e.getSelection().getRangeAt(0),c.commonAncestorContainer.parentNode!==o&&c.commonAncestorContainer!==o||(s=c.startOffset,r=c.endOffset)):i.selection&&i.selection.createRange&&(c=i.selection.createRange(),s=0-c.duplicate().moveStart("character",-o.inputmask._valueGet().length),r=s+c.text.length),{begin:a?s:l(s),end:a?r:l(r)};if(t.isArray(s)&&(r=it?s[0]:s[1],s=it?s[1]:s[0]),s.begin!==n&&(r=it?s.begin:s.end,s=it?s.end:s.begin),"number"==typeof s){s=a?s:l(s),r=a?r:l(r),r="number"==typeof r?r:s;var d=parseInt(((o.ownerDocument.defaultView||e).getComputedStyle?(o.ownerDocument.defaultView||e).getComputedStyle(o,null):o.currentStyle).fontSize)*r;if(o.scrollLeft=d>o.scrollWidth?d:0,o.inputmask.caretPos={begin:s,end:r},o===i.activeElement){if("selectionStart"in o)o.selectionStart=s,o.selectionEnd=r;else if(e.getSelection){if(c=i.createRange(),o.firstChild===n||null===o.firstChild){var u=i.createTextNode("");o.appendChild(u)}c.setStart(o.firstChild,s<o.inputmask._valueGet().length?s:o.inputmask._valueGet().length),c.setEnd(o.firstChild,r<o.inputmask._valueGet().length?r:o.inputmask._valueGet().length),c.collapse(!0);var p=e.getSelection();p.removeAllRanges(),p.addRange(c)}else o.createTextRange&&(c=o.createTextRange(),c.collapse(!0),c.moveEnd("character",r),c.moveStart("character",s),c.select());G(o,{begin:s,end:r})}}}
20function j(e){var i,o,s=f(!0,v(),!0,!0),r=s.length,a=v(),l={},c=g().validPositions[a],h=c!==n?c.locator.slice():n;for(i=a+1;i<s.length;i++)o=k(i,h,i-1),h=o.locator.slice(),l[i]=t.extend(!0,{},o);var d=c&&c.alternation!==n?c.locator[c.alternation]:n;for(i=r-1;i>a&&(o=l[i],(o.match.optionality||o.match.optionalQuantifier&&o.match.newBlockMarker||d&&(d!==l[i].locator[c.alternation]&&null!=o.match.fn||null===o.match.fn&&o.locator[c.alternation]&&P(o.locator[c.alternation].toString().split(","),d.toString().split(","))&&""!==C(i)[0].def))&&s[i]===H(i,o.match));i--)r--;return e?{l:r,def:l[r]?l[r].match:n}:r}function W(t){t.length=0;for(var e,i=f(!0,0,!0,n,!0);e=i.shift(),e!==n;)t.push(e);return t}function Y(e){if(t.isFunction(h.isComplete))return h.isComplete(e,h);if("*"===h.repeat)return n;var i=!1,o=j(!0),s=R(o.l);if(o.def===n||o.def.newBlockMarker||o.def.optionality||o.def.optionalQuantifier){i=!0;for(var r=0;r<=s;r++){var a=k(r).match;if(null!==a.fn&&g().validPositions[r]===n&&a.optionality!==!0&&a.optionalQuantifier!==!0||null===a.fn&&e[r]!==H(r,a)){i=!1;break}}}return i}function U(t,e,i,s,r){if((h.numericInput||it)&&(e===o.keyCode.BACKSPACE?e=o.keyCode.DELETE:e===o.keyCode.DELETE&&(e=o.keyCode.BACKSPACE),it)){var a=i.end;i.end=i.begin,i.begin=a}if(e===o.keyCode.BACKSPACE&&i.end-i.begin<1?(i.begin=R(i.begin),g().validPositions[i.begin]!==n&&g().validPositions[i.begin].input===h.groupSeparator&&i.begin--):e===o.keyCode.DELETE&&i.begin===i.end&&(i.end=L(i.end,!0)&&g().validPositions[i.end]&&g().validPositions[i.end].input!==h.radixPoint?i.end+1:I(i.end)+1,g().validPositions[i.begin]!==n&&g().validPositions[i.begin].input===h.groupSeparator&&i.end++),$(i),s!==!0&&h.keepStatic!==!1||null!==h.regex){var l=M(!0);if(l){var c=l.caret!==n?l.caret:l.pos?I(l.pos.begin?l.pos.begin:l.pos):v(-1,!0);(e!==o.keyCode.DELETE||i.begin>c)&&i.begin==c}}var d=v(i.begin,!0);if(d<i.begin||i.begin===-1)g().p=I(d);else if(s!==!0&&(g().p=i.begin,r!==!0))for(;g().p<d&&g().validPositions[g().p]===n;)g().p++}function q(n){function o(t){var e,o=i.createElement("span");for(var r in s)isNaN(r)&&r.indexOf("font")!==-1&&(o.style[r]=s[r]);o.style.textTransform=s.textTransform,o.style.letterSpacing=s.letterSpacing,o.style.position="absolute",o.style.height="auto",o.style.width="auto",o.style.visibility="hidden",o.style.whiteSpace="nowrap",i.body.appendChild(o);var a,l=n.inputmask._valueGet(),c=0;for(e=0,a=l.length;e<=a;e++){if(o.innerHTML+=l.charAt(e)||"_",o.offsetWidth>=t){var h=t-c,d=o.offsetWidth-t;o.innerHTML=l.charAt(e),h-=o.offsetWidth/3,e=h<d?e-1:e;break}c=o.offsetWidth}return i.body.removeChild(o),e}var s=(n.ownerDocument.defaultView||e).getComputedStyle(n,null),r=i.createElement("div");r.style.width=s.width,r.style.textAlign=s.textAlign,Z=i.createElement("div"),n.inputmask.colorMask=Z,Z.className="im-colormask",n.parentNode.insertBefore(Z,n),n.parentNode.removeChild(n),Z.appendChild(n),Z.appendChild(r),n.style.left=r.offsetLeft+"px",t(Z).on("mouseleave",function(t){return lt.mouseleaveEvent.call(n,[t])}),t(Z).on("mouseenter",function(t){return lt.mouseenterEvent.call(n,[t])}),t(Z).on("click",function(t){return z(n,o(t.clientX)),lt.clickEvent.call(n,[t])})}function G(t,e,o){function s(t){if(t===n&&(t=""),u||null!==a.fn&&l.input!==n)if(u&&(null!==a.fn&&l.input!==n||""===a.def)){u=!1;var e=d.length;d[e-1]=d[e-1]+"</span>",d.push(t)}else d.push(t);else u=!0,d.push("<span class='im-static'>"+t)}function r(){i.activeElement===t&&(d.splice(e.begin,0,e.begin===e.end||e.end>g().maskLength?'<mark class="im-caret" style="border-right-width: 1px;border-right-style: solid;">':'<mark class="im-caret-select">'),d.splice(e.end+1,0,"</mark>"))}var a,l,c,d=[],u=!1,p=0;if(Z!==n){var f=_();if(e===n?e=z(t):e.begin===n&&(e={begin:e,end:e}),o!==!0){var m=v();do g().validPositions[p]?(l=g().validPositions[p],a=l.match,c=l.locator.slice(),s(f[p])):(l=k(p,c,p-1),a=l.match,c=l.locator.slice(),h.jitMasking===!1||p<m||"number"==typeof h.jitMasking&&isFinite(h.jitMasking)&&h.jitMasking>p?s(H(p,a)):u=!1),p++;while((Q===n||p<Q)&&(null!==a.fn||""!==a.def)||m>p||u);u&&s(),r()}var y=Z.getElementsByTagName("div")[0];y.innerHTML=d.join(""),t.inputmask.positionColorMask(t,y)}}function V(e){function o(e,o){function s(e){function s(e){if(t.valHooks&&(t.valHooks[e]===n||t.valHooks[e].inputmaskpatch!==!0)){var i=t.valHooks[e]&&t.valHooks[e].get?t.valHooks[e].get:function(t){return t.value},s=t.valHooks[e]&&t.valHooks[e].set?t.valHooks[e].set:function(t,e){return t.value=e,t};t.valHooks[e]={get:function(t){if(t.inputmask){if(t.inputmask.opts.autoUnmask)return t.inputmask.unmaskedvalue();var e=i(t);return v(n,n,t.inputmask.maskset.validPositions)!==-1||o.nullable!==!0?e:""}return i(t)},set:function(e,i){var n,o=t(e);return n=s(e,i),e.inputmask&&o.trigger("setvalue",[i]),n},inputmaskpatch:!0}}}function a(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():v()!==-1||o.nullable!==!0?i.activeElement===this&&o.clearMaskOnLostFocus?(it?W(_().slice()).reverse():W(_().slice())).join(""):h.call(this):"":h.call(this)}function l(e){d.call(this,e),this.inputmask&&t(this).trigger("setvalue",[e])}function c(e){at.on(e,"mouseenter",function(e){var i=t(this),n=this,o=n.inputmask._valueGet();o!==_().join("")&&i.trigger("setvalue")})}var h,d;if(!e.inputmask.__valueGet){if(o.noValuePatching!==!0){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"===r("test".__proto__)?function(t){return t.__proto__}:function(t){return t.constructor.prototype});var u=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),"value"):n;u&&u.get&&u.set?(h=u.get,d=u.set,Object.defineProperty(e,"value",{get:a,set:l,configurable:!0})):"INPUT"!==e.tagName&&(h=function(){return this.textContent},d=function(t){this.textContent=t},Object.defineProperty(e,"value",{get:a,set:l,configurable:!0}))}else i.__lookupGetter__&&e.__lookupGetter__("value")&&(h=e.__lookupGetter__("value"),d=e.__lookupSetter__("value"),e.__defineGetter__("value",a),e.__defineSetter__("value",l));e.inputmask.__valueGet=h,e.inputmask.__valueSet=d}e.inputmask._valueGet=function(t){return it&&t!==!0?h.call(this.el).split("").reverse().join(""):h.call(this.el)},e.inputmask._valueSet=function(t,e){d.call(this.el,null===t||t===n?"":e!==!0&&it?t.split("").reverse().join(""):t)},h===n&&(h=function(){return this.value},d=function(t){this.value=t},s(e.type),c(e))}}var a=e.getAttribute("type"),l="INPUT"===e.tagName&&t.inArray(a,o.supportsInputType)!==-1||e.isContentEditable||"TEXTAREA"===e.tagName;if(!l)if("INPUT"===e.tagName){var c=i.createElement("input");c.setAttribute("type",a),l="text"===c.type,c=null}else l="partial";return l!==!1?s(e):e.inputmask=n,l}at.off(e);var s=o(e,h);if(s!==!1&&(et=e,K=t(et),J=et.placeholder,Q=et!==n?et.maxLength:n,Q===-1&&(Q=n),h.colorMask===!0&&q(et),d&&("inputmode"in et&&(et.inputmode=h.inputmode,et.setAttribute("inputmode",h.inputmode)),h.disablePredictiveText===!0&&("autocorrect"in et?et.autocorrect=!1:(h.colorMask!==!0&&q(et),et.type="password"))),s===!0&&(et.setAttribute("im-insert",h.insertMode),at.on(et,"submit",lt.submitEvent),at.on(et,"reset",lt.resetEvent),at.on(et,"blur",lt.blurEvent),at.on(et,"focus",lt.focu
20sEvent),h.colorMask!==!0&&(at.on(et,"click",lt.clickEvent),at.on(et,"mouseleave",lt.mouseleaveEvent),at.on(et,"mouseenter",lt.mouseenterEvent)),at.on(et,"paste",lt.pasteEvent),at.on(et,"cut",lt.cutEvent),at.on(et,"complete",h.oncomplete),at.on(et,"incomplete",h.onincomplete),at.on(et,"cleared",h.oncleared),d||h.inputEventOnly===!0?et.removeAttribute("maxLength"):(at.on(et,"keydown",lt.keydownEvent),at.on(et,"keypress",lt.keypressEvent)),at.on(et,"input",lt.inputFallBackEvent),at.on(et,"beforeinput",lt.beforeInputEvent)),at.on(et,"setvalue",lt.setValueEvent),X=S().join(""),""!==et.inputmask._valueGet(!0)||h.clearMaskOnLostFocus===!1||i.activeElement===et)){var a=t.isFunction(h.onBeforeMask)?h.onBeforeMask.call(tt,et.inputmask._valueGet(!0),h)||et.inputmask._valueGet(!0):et.inputmask._valueGet(!0);""!==a&&N(et,!0,!1,a.split(""));var l=_().slice();X=l.join(""),Y(l)===!1&&h.clearIncomplete&&m(),h.clearMaskOnLostFocus&&i.activeElement!==et&&(v()===-1?l=[]:W(l)),(h.clearMaskOnLostFocus===!1||h.showMaskOnFocus&&i.activeElement===et||""!==et.inputmask._valueGet(!0))&&F(et,l),i.activeElement===et&&z(et,I(v()))}}a=a||this.maskset,h=h||this.opts;var X,K,Q,Z,J,tt=this,et=this.el,it=this.isRTL,nt=!1,ot=!1,st=!1,rt=!1,at={on:function(e,i,s){var r=function(e){var i=this;if(i.inputmask===n&&"FORM"!==this.nodeName){var r=t.data(i,"_inputmask_opts");r?new o(r).mask(i):at.off(i)}else{if("setvalue"===e.type||"FORM"===this.nodeName||!(i.disabled||i.readOnly&&!("keydown"===e.type&&e.ctrlKey&&67===e.keyCode||h.tabThrough===!1&&e.keyCode===o.keyCode.TAB))){switch(e.type){case"input":if(ot===!0)return ot=!1,e.preventDefault();if(d){var a=arguments;return setTimeout(function(){s.apply(i,a),z(i,i.inputmask.caretPos,n,!0)},0),!1}break;case"keydown":nt=!1,ot=!1;break;case"keypress":if(nt===!0)return e.preventDefault();nt=!0;break;case"click":if(u||p){var a=arguments;return setTimeout(function(){s.apply(i,a)},0),!1}}var l=s.apply(i,arguments);return l===!1&&(e.preventDefault(),e.stopPropagation()),l}e.preventDefault()}};e.inputmask.events[i]=e.inputmask.events[i]||[],e.inputmask.events[i].push(r),t.inArray(i,["submit","reset"])!==-1?null!==e.form&&t(e.form).on(i,r):t(e).on(i,r)},off:function(e,i){if(e.inputmask&&e.inputmask.events){var n;i?(n=[],n[i]=e.inputmask.events[i]):n=e.inputmask.events,t.each(n,function(i,n){for(;n.length>0;){var o=n.pop();t.inArray(i,["submit","reset"])!==-1?null!==e.form&&t(e.form).off(i,o):t(e).off(i,o)}delete e.inputmask.events[i]})}}},lt={keydownEvent:function(e){var i=this,n=t(i),s=e.keyCode,r=z(i);if(s===o.keyCode.BACKSPACE||s===o.keyCode.DELETE||p&&s===o.keyCode.BACKSPACE_SAFARI||e.ctrlKey&&s===o.keyCode.X&&!l("cut"))e.preventDefault(),U(i,s,r),F(i,_(!0),g().p,e,i.inputmask._valueGet()!==_().join(""));else if(s===o.keyCode.END||s===o.keyCode.PAGE_DOWN){e.preventDefault();var a=I(v());z(i,e.shiftKey?r.begin:a,a,!0)}else s===o.keyCode.HOME&&!e.shiftKey||s===o.keyCode.PAGE_UP?(e.preventDefault(),z(i,0,e.shiftKey?r.begin:0,!0)):(h.undoOnEscape&&s===o.keyCode.ESCAPE||90===s&&e.ctrlKey)&&e.altKey!==!0?(N(i,!0,!1,X.split("")),n.trigger("click")):s!==o.keyCode.INSERT||e.shiftKey||e.ctrlKey?h.tabThrough===!0&&s===o.keyCode.TAB&&(e.shiftKey===!0?(null===w(r.begin).match.fn&&(r.begin=I(r.begin)),r.end=R(r.begin,!0),r.begin=R(r.end,!0)):(r.begin=I(r.begin,!0),r.end=I(r.begin,!0),r.end<g().maskLength&&r.end--),r.begin<g().maskLength&&(e.preventDefault(),z(i,r.begin,r.end))):(h.insertMode=!h.insertMode,i.setAttribute("im-insert",h.insertMode));h.onKeyDown.call(this,e,_(),z(i).begin,h),st=t.inArray(s,h.ignorables)!==-1},keypressEvent:function(e,i,s,r,a){var l=this,c=t(l),d=e.which||e.charCode||e.keyCode;if(!(i===!0||e.ctrlKey&&e.altKey)&&(e.ctrlKey||e.metaKey||st))return d===o.keyCode.ENTER&&X!==_().join("")&&(X=_().join(""),setTimeout(function(){c.trigger("change")},0)),!0;if(d){46===d&&e.shiftKey===!1&&""!==h.radixPoint&&(d=h.radixPoint.charCodeAt(0));var u,p=i?{begin:a,end:a}:z(l),f=String.fromCharCode(d),v=0;if(h._radixDance&&h.numericInput){var y=_().indexOf(h.radixPoint.charAt(0))+1;p.begin<=y&&(d===h.radixPoint.charCodeAt(0)&&(v=1),p.begin-=1,p.end-=1)}g().writeOutBuffer=!0;var b=D(p,f,r);if(b!==!1&&(m(!0),u=b.caret!==n?b.caret:I(b.pos.begin?b.pos.begin:b.pos),g().p=u),u=(h.numericInput&&b.caret===n?R(u):u)+v,s!==!1&&(setTimeout(function(){h.onKeyValidation.call(l,d,b,h)},0),g().writeOutBuffer&&b!==!1)){var x=_();
20F(l,x,u,e,i!==!0)}if(e.preventDefault(),i)return b!==!1&&(b.forwardPosition=u),b}},pasteEvent:function(i){var n,o=this,s=i.originalEvent||i,r=(t(o),o.inputmask._valueGet(!0)),a=z(o);it&&(n=a.end,a.end=a.begin,a.begin=n);var l=r.substr(0,a.begin),c=r.substr(a.end,r.length);if(l===(it?S().reverse():S()).slice(0,a.begin).join("")&&(l=""),c===(it?S().reverse():S()).slice(a.end).join("")&&(c=""),e.clipboardData&&e.clipboardData.getData)r=l+e.clipboardData.getData("Text")+c;else{
21if(!s.clipboardData||!s.clipboardData.getData)return!0;r=l+s.clipboardData.getData("text/plain")+c}var d=r;if(t.isFunction(h.onBeforePaste)){if(d=h.onBeforePaste.call(tt,r,h),d===!1)return i.preventDefault();d||(d=r)}return N(o,!1,!1,d.toString().split("")),F(o,_(),I(v()),i,X!==_().join("")),i.preventDefault()},inputFallBackEvent:function(e){function i(t,e,i){return"."===e.charAt(i.begin-1)&&""!==h.radixPoint&&(e=e.split(""),e[i.begin-1]=h.radixPoint.charAt(0),e=e.join("")),e}function n(t,e,i){if(u){var n=e.replace(_().join(""),"");if(1===n.length){var o=e.split("");o.splice(i.begin,0,n),e=o.join("")}}return e}var s=this,r=s.inputmask._valueGet();if(_().join("")!==r){var a=z(s);if(r=i(s,r,a),r=n(s,r,a),_().join("")!==r){var l=_().join(""),c=!h.numericInput&&r.length>l.length?-1:0,d=r.substr(0,a.begin),p=r.substr(a.begin),f=l.substr(0,a.begin+c),g=l.substr(a.begin+c),m=a,v="",y=!1;if(d!==f){var b,x=(y=d.length>=f.length)?d.length:f.length;for(b=0;d.charAt(b)===f.charAt(b)&&b<x;b++);y&&(m.begin=b-c,v+=d.slice(b,m.end))}if(p!==g&&(p.length>g.length?v+=p.slice(0,1):p.length<g.length&&(m.end+=g.length-p.length,y||""===h.radixPoint||""!==p||d.charAt(m.begin+c-1)!==h.radixPoint||(m.begin--,v=h.radixPoint))),F(s,_(),{begin:m.begin+c,end:m.end+c}),v.length>0)t.each(v.split(""),function(e,i){var n=new t.Event("keypress");n.which=i.charCodeAt(0),st=!1,lt.keypressEvent.call(s,n)});else{m.begin===m.end-1&&(m.begin=R(m.begin+1),m.begin===m.end-1?z(s,m.begin):z(s,m.begin,m.end));var k=new t.Event("keydown");k.keyCode=h.numericInput?o.keyCode.BACKSPACE:o.keyCode.DELETE,lt.keydownEvent.call(s,k)}e.preventDefault()}}},beforeInputEvent:function(e){if(e.cancelable){var i=this;switch(e.inputType){case"insertText":return t.each(e.data.split(""),function(e,n){var o=new t.Event("keypress");o.which=n.charCodeAt(0),st=!1,lt.keypressEvent.call(i,o)}),e.preventDefault();case"deleteContentBackward":var n=new t.Event("keydown");return n.keyCode=o.keyCode.BACKSPACE,lt.keydownEvent.call(i,n),e.preventDefault();case"deleteContentForward":var n=new t.Event("keydown");return n.keyCode=o.keyCode.DELETE,lt.keydownEvent.call(i,n),e.preventDefault()}}},setValueEvent:function(e){this.inputmask.refreshValue=!1;var i=this,n=e&&e.detail?e.detail[0]:arguments[1],n=n||i.inputmask._valueGet(!0);t.isFunction(h.onBeforeMask)&&(n=h.onBeforeMask.call(tt,n,h)||n),n=n.split(""),N(i,!0,!1,n),X=_().join(""),(h.clearMaskOnLostFocus||h.clearIncomplete)&&i.inputmask._valueGet()===S().join("")&&i.inputmask._valueSet("")},focusEvent:function(t){var e=this,i=e.inputmask._valueGet();h.showMaskOnFocus&&(!h.showMaskOnHover||h.showMaskOnHover&&""===i)&&(e.inputmask._valueGet()!==_().join("")?F(e,_(),I(v())):rt===!1&&z(e,I(v()))),h.positionCaretOnTab===!0&&rt===!1&&lt.clickEvent.apply(e,[t,!0]),X=_().join("")},mouseleaveEvent:function(t){var e=this;rt=!1,h.clearMaskOnLostFocus&&i.activeElement!==e&&(e.placeholder=J,""===e.placeholder&&e.removeAttribute("placeholder"))},clickEvent:function(e,o){function s(e){if(""!==h.radixPoint){var i=g().validPositions;if(i[e]===n||i[e].input===H(e)){if(e<I(-1))return!0;var o=t.inArray(h.radixPoint,_());if(o!==-1){for(var s in i)if(o<s&&i[s].input!==H(s))return!1;return!0}}}return!1}var r=this;setTimeout(function(){if(i.activeElement===r){var t=z(r);if(o&&(it?t.end=t.begin:t.begin=t.end),t.begin===t.end)switch(h.positionCaretOnClick){case"none":break;case"select":z(r,0,_().length);break;case"ignore":z(r,I(v()));break;case"radixFocus":if(s(t.begin)){var e=_().join("").indexOf(h.radixPoint);z(r,h.numericInput?I(e):e);break}default:var a=t.begin,l=v(a,!0),c=I(l);if(a<c)z(r,L(a,!0)||L(a-1,!0)?a:I(a));else{var d=g().validPositions[l],u=k(c,d?d.match.locator:n,d),p=H(c,u.match);if(""!==p&&_()[c]!==p&&u.match.optionalQuantifier!==!0&&u.match.newBlockMarker!==!0||!L(c,h.keepStatic)&&u.match.def===p){var f=I(c);(a>=f||a===c)&&(c=f)}z(r,c)}}}},0)},cutEvent:function(n){var s=this,r=(t(s),z(s)),a=n.originalEvent||n,l=e.clipboardData||a.clipboardData,c=it?_().slice(r.end,r.begin):_().slice(r.begin,r.end);l.setData("text",it?c.reverse().join(""):c.join("")),i.execCommand&&i.execCommand("copy"),U(s,o.keyCode.DELETE,r),F(s,_(),g().p,n,X!==_().join(""))},blurEvent:function(e){var i=t(this),o=this;if(o.inputmask){o.placeholder=J,""===o.placeholder&&o.removeAttribute("placeholder");var s=o.inputmask._valueGet(),r=_().slice();""===s&&Z===n||(h.clearMaskOnLostFocus&&(v()===-1&&s===S().join("")?r=[]:W(r)),Y(r)===!1&&(setTimeout(function(){i.trigger("incomplete")}
21,0),h.clearIncomplete&&(m(),r=h.clearMaskOnLostFocus?[]:S().slice())),F(o,r,n,e)),X!==_().join("")&&(X=r.join(""),i.trigger("change"))}},mouseenterEvent:function(t){var e=this;rt=!0,i.activeElement!==e&&h.showMaskOnHover&&(e.placeholder=(it?_().slice().reverse():_()).join(""))},submitEvent:function(t){X!==_().join("")&&K.trigger("change"),h.clearMaskOnLostFocus&&v()===-1&&et.inputmask._valueGet&&et.inputmask._valueGet()===S().join("")&&et.inputmask._valueSet(""),h.clearIncomplete&&Y(_())===!1&&et.inputmask._valueSet(""),h.removeMaskOnSubmit&&(et.inputmask._valueSet(et.inputmask.unmaskedvalue(),!0),setTimeout(function(){F(et,_())},0))},resetEvent:function(t){et.inputmask.refreshValue=!0,setTimeout(function(){K.trigger("setvalue")},0)}};o.prototype.positionColorMask=function(t,e){t.style.left=e.offsetLeft+"px"};var ct;if(s!==n)switch(s.action){case"isComplete":return et=s.el,Y(_());case"unmaskedvalue":return et!==n&&s.value===n||(ct=s.value,ct=(t.isFunction(h.onBeforeMask)?h.onBeforeMask.call(tt,ct,h)||ct:ct).split(""),N.call(this,n,!1,!1,ct),t.isFunction(h.onBeforeWrite)&&h.onBeforeWrite.call(tt,n,_(),0,h)),B(et);case"mask":V(et);break;case"format":return ct=(t.isFunction(h.onBeforeMask)?h.onBeforeMask.call(tt,s.value,h)||s.value:s.value).split(""),N.call(this,n,!0,!1,ct),s.metadata?{value:it?_().slice().reverse().join(""):_().join(""),metadata:c.call(this,{action:"getmetadata"},a,h)}:it?_().slice().reverse().join(""):_().join("");case"isValid":s.value?(ct=s.value.split(""),N.call(this,n,!0,!0,ct)):s.value=_().join("");for(var ht=_(),dt=j(),ut=ht.length-1;ut>dt&&!L(ut);ut--);return ht.splice(dt,ut+1-dt),Y(ht)&&s.value===_().join("");case"getemptymask":return S().join("");case"remove":if(et&&et.inputmask){t.data(et,"_inputmask_opts",null),K=t(et),et.inputmask._valueSet(h.autoUnmask?B(et):et.inputmask._valueGet(!0)),at.off(et),et.inputmask.colorMask&&(Z=et.inputmask.colorMask,Z.removeChild(et),Z.parentNode.insertBefore(et,Z),Z.parentNode.removeChild(Z));var pt;Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?(pt=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(et),"value"),pt&&et.inputmask.__valueGet&&Object.defineProperty(et,"value",{get:et.inputmask.__valueGet,set:et.inputmask.__valueSet,configurable:!0})):i.__lookupGetter__&&et.__lookupGetter__("value")&&et.inputmask.__valueGet&&(et.__defineGetter__("value",et.inputmask.__valueGet),et.__defineSetter__("value",et.inputmask.__valueSet)),et.inputmask=n}return et;case"getmetadata":if(t.isArray(a.metadata)){var ft=f(!0,0,!1).join("");return t.each(a.metadata,function(t,e){if(e.mask===ft)return ft=e,!1}),ft}return a.metadata}}var h=navigator.userAgent,d=l("touchstart"),u=/iemobile/i.test(h),p=/iphone/i.test(h)&&!u;return o.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:t.noop,onincomplete:t.noop,oncleared:t.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:t.noop,onBeforeMask:null,onBeforePaste:function(e,i){return t.isFunction(i.onBeforeMask)?i.onBeforeMask.call(this,e,i):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:t.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(r){function l(i,o,r,a){if(o.importDataAttributes===!0){var l,c,h,d,u=function(t,o){o=o!==n?o:i.getAttribute(a+"-"+t),null!==o&&("string"==typeof o&&(0===t.indexOf("on")?o=e[o]:"false"===o?o=!1:"true"===o&&(o=!0)),r[t]=o)},p=i.getAttribute(a);if(p&&""!==p&&(p=p.replace(/'/g,'"'),c=JSON.parse("{"+p+"}")),c){h=n;for(d in c)if("alias"===d.toLowerCase()){h=c[d];break}}u("alias",h),r.alias&&s(r.alias,r,o);
21for(l in o){if(c){h=n;for(d in c)if(d.toLowerCase()===l.toLowerCase()){h=c[d];break}}u(l,h)}}return t.extend(!0,o,r),("rtl"===i.dir||o.rightAlign)&&(i.style.textAlign="right"),("rtl"===i.dir||o.numericInput)&&(i.dir="ltr",i.removeAttribute("dir"),o.isRTL=!0),Object.keys(r).length}var h=this;return"string"==typeof r&&(r=i.getElementById(r)||i.querySelectorAll(r)),r=r.nodeName?[r]:r,t.each(r,function(e,i){var s=t.extend(!0,{},h.opts);if(l(i,s,t.extend(!0,{},h.userOptions),h.dataAttribute)){var r=a(s,h.noMasksCache);r!==n&&(i.inputmask!==n&&(i.inputmask.opts.autoUnmask=!0,i.inputmask.remove()),i.inputmask=new o(n,n,(!0)),i.inputmask.opts=s,i.inputmask.noMasksCache=h.noMasksCache,i.inputmask.userOptions=t.extend(!0,{},h.userOptions),i.inputmask.isRTL=s.isRTL||s.numericInput,i.inputmask.el=i,i.inputmask.maskset=r,t.data(i,"_inputmask_opts",s),c.call(i.inputmask,{action:"mask"}))}}),r&&r[0]?r[0].inputmask||this:this},option:function(e,i){return"string"==typeof e?this.opts[e]:"object"===("undefined"==typeof e?"undefined":r(e))?(t.extend(this.userOptions,e),this.el&&i!==!0&&this.mask(this.el),this):void 0},unmaskedvalue:function(t){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"unmaskedvalue",value:t})},remove:function(){return c.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"getmetadata"})},isValid:function(t){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"isValid",value:t})},format:function(t,e){return this.maskset=this.maskset||a(this.opts,this.noMasksCache),c.call(this,{action:"format",value:t,metadata:e})},setValue:function(e){this.el&&t(this.el).trigger("setvalue",[e])},analyseMask:function(e,i,s){function r(t,e,i,n){this.matches=[],this.openGroup=t||!1,this.alternatorGroup=!1,this.isGroup=t||!1,this.isOptional=e||!1,this.isQuantifier=i||!1,this.isAlternator=n||!1,this.quantifier={min:1,max:1}}function a(e,r,a){a=a!==n?a:e.matches.length;var l=e.matches[a-1];if(i)0===r.indexOf("[")||k&&/\\d|\\s|\\w]/i.test(r)||"."===r?e.matches.splice(a++,0,{fn:new RegExp(r,s.casing?"i":""),optionality:!1,newBlockMarker:l===n?"master":l.def!==r,casing:null,def:r,placeholder:n,nativeDef:r}):(k&&(r=r[r.length-1]),t.each(r.split(""),function(t,i){l=e.matches[a-1],e.matches.splice(a++,0,{fn:null,optionality:!1,newBlockMarker:l===n?"master":l.def!==i&&null!==l.fn,casing:null,def:s.staticDefinitionSymbol||i,placeholder:s.staticDefinitionSymbol!==n?i:n,nativeDef:(k?"'":"")+i})})),k=!1;else{var c=(s.definitions?s.definitions[r]:n)||o.prototype.definitions[r];c&&!k?e.matches.splice(a++,0,{fn:c.validator?"string"==typeof c.validator?new RegExp(c.validator,s.casing?"i":""):new function(){this.test=c.validator}:new RegExp("."),optionality:!1,newBlockMarker:l===n?"master":l.def!==(c.definitionSymbol||r),casing:c.casing,def:c.definitionSymbol||r,placeholder:c.placeholder,nativeDef:r}):(e.matches.splice(a++,0,{fn:null,optionality:!1,newBlockMarker:l===n?"master":l.def!==r&&null!==l.fn,casing:null,def:s.staticDefinitionSymbol||r,placeholder:s.staticDefinitionSymbol!==n?r:n,nativeDef:(k?"'":"")+r}),k=!1)}}function l(e){e&&e.matches&&t.each(e.matches,function(t,o){var r=e.matches[t+1];(r===n||r.matches===n||r.isQuantifier===!1)&&o&&o.isGroup&&(o.isGroup=!1,i||(a(o,s.groupmarker[0],0),o.openGroup!==!0&&a(o,s.groupmarker[1]))),l(o)})}function c(){if(T.length>0){if(g=T[T.length-1],a(g,p),g.isAlternator){m=T.pop();for(var t=0;t<m.matches.length;t++)m.matches[t].isGroup&&(m.matches[t].isGroup=!1);T.length>0?(g=T[T.length-1],g.matches.push(m)):w.matches.push(m)}}else a(w,p)}function h(t){function e(t){return t===s.optionalmarker[0]?t=s.optionalmarker[1]:t===s.optionalmarker[1]?t=s.optionalmarker[0]:t===s.groupmarker[0]?t=s.groupmarker[1]:t===s.groupmarker[1]&&(t=s.groupmarker[0]),t}t.matches=t.matches.reverse();for(var i in t.matches)if(t.matches.hasOwnProperty(i)){var o=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[o+1]&&t.matches[o+1].isGroup){var r=t.matches[i];t.matches.splice(i,1),t.matches.splice(o+1,0,r)}t.matches[i].matches!==n?t.matches[i]=h(t.matches[i]):t.matches[i]=e(t.matches[i])}return t}function d(t){var e=new r((!0));return e.openGroup=!1,e.matches=t,e}var u,p,f,g,m,v,y,b=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,x=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,k=!1,w=new r,T=[],C=[];for(i&&(s.optionalmarker[0]=n,s.optionalmarker[1]=n);u=i?x.exec(e):b.exec(e);){if(p=u[0],i)switch(p.charAt(0)){case"?":p="{0,1}";break;case"+":case"*":p="{"+p+"}"}if(k)c();else switch(p.charAt(0)){case"(?=":break;case"(?!":break;case"(?<=":break;case"(?<!":break;case s.escapeChar:k=!0,i&&c();break;case s.optionalmarker[1]:case s.groupmarker[1]:if(f=T.pop(),f.openGroup=!1,f!==n)if(T.length>0){if(g=T[T.length-1],g.matches.push(f),g.isAlternator){m=T.pop();for(var S=0;S<m.matches.length;S++)m.matches[S].isGroup=!1,m.matches[S].alternatorGroup=!1;T.length>0?(g=T[T.length-1],g.matches.push(m)):w.matches.push(m)}}else w.matches.push(f);else c();break;case s.optionalmarker[0]:T.push(new r((!1),(!0)));break;case s.groupmarker[0]:T.push(new r((!0)));break;case s.quantifiermarker[0]:var _=new r((!1),(!1),(!0));p=p.replace(/[{}]/g,"");var A=p.split("|"),E=A[0].split(","),P=isNaN(E[0])?E[0]:parseInt(E[0]),M=1===E.length?P:isNaN(E[1])?E[1]:parseInt(E[1]);"*"!==P&&"+"!==P||(P="*"===M?0:1),_.quantifier={min:P,max:M,jit:A[1]};var D=T.length>0?T[T.length-1].matches:w.matches;if(u=D.pop(),u.isAlternator){D.push(u),D=u.matches;var y=new r((!0)),O=D.pop();D.push(y),D=y.matches,u=O}u.isGroup||(u=d([u])),D.push(u),D.push(_);break;case s.alternatormarker:var $=function(t){var e=t.pop();return e.isQuantifier&&(e=d([t.pop(),e])),e};if(T.length>0){g=T[T.length-1];var L=g.matches[g.matches.length-1];v=g.openGroup&&(L.matches===n||L.isGroup===!1&&L.isAlternator===!1)?T.pop():$(g.matches)}else v=$(w.matches);if(v.isAlternator)T.push(v);else if(v.alternatorGroup?(m=T.pop(),v.alternatorGroup=!1):m=new r((!1),(!1),(!1),(!0)),m.matches.push(v),T.push(m),v.openGroup){v.openGroup=!1;var I=new r((!0));I.alternatorGroup=!0,T.push(I)}break;default:c()}}for(;T.length>0;)f=T.pop(),w.matches.push(f);return w.matches.length>0&&(l(w),C.push(w)),(s.numericInput||s.isRTL)&&h(C[0]),C}},o.extendDefaults=function(e){t.extend(!0,o.prototype.defaults,e)},o.extendDefinitions=function(e){t.extend(!0,o.prototype.definitions,e)},o.extendAliases=function(e){t.extend(!0,o.prototype.aliases,e)}
21,o.format=function(t,e,i){return o(e).format(t,i)},o.unmask=function(t,e){return o(e).unmaskedvalue(t)},o.isValid=function(t,e){return o(e).isValid(t)},o.remove=function(e){"string"==typeof e&&(e=i.getElementById(e)||i.querySelectorAll(e)),e=e.nodeName?[e]:e,t.each(e,function(t,e){e.inputmask&&e.inputmask.remove()})},o.setValue=function(e,n){"string"==typeof e&&(e=i.getElementById(e)||i.querySelectorAll(e)),e=e.nodeName?[e]:e,t.each(e,function(e,i){i.inputmask?i.inputmask.setValue(n):t(i).trigger("setvalue",[n])})},o.escapeRegex=function(t){var e=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return t.replace(new RegExp("(\\"+e.join("|\\")+")","gim"),"\\$1")},o.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},o.dependencyLib=t,o})},function(t,e,i){"use strict";var n,o,s;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},!function(r){o=[i(4)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t){return t})},function(t,e){t.exports=jQuery},function(t,e,i){"use strict";var n;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return window}.call(e,i,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,i){"use strict";var n;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){return document}.call(e,i,e,t),!(void 0!==n&&(t.exports=n))},function(t,e,i){"use strict";var n,o,s,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){o=[i(2)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t){function e(t){if(!t.tokenizer){var e=[];for(var i in c)e.indexOf(i[0])===-1&&e.push(i[0]);t.tokenizer="("+e.join("+|")+")+?|.",t.tokenizer=new RegExp(t.tokenizer,"g")}return t.tokenizer}function i(t,e){return(!isFinite(t.rawday)||"29"==t.day&&!isFinite(t.rawyear)||new Date(t.date.getFullYear(),isFinite(t.rawmonth)?t.month:t.date.getMonth()+1,0).getDate()>=t.day)&&e}function n(t,e){var i=!0;if(e.min){if(t.rawyear){var n=t.rawyear.replace(/[^0-9]/g,""),o=e.min.year.substr(0,n.length);i=o<=n}t.year===t.rawyear&&e.min.date.getTime()===e.min.date.getTime()&&(i=e.min.date.getTime()<=t.date.getTime())}return i&&e.max&&e.max.date.getTime()===e.max.date.getTime()&&(i=e.max.date.getTime()>=t.date.getTime()),i}function o(i,n,o,s){for(var r,a="";r=e(o).exec(i);)if(void 0===n)if(c[r[0]])a+="("+c[r[0]][0]+")";else switch(r[0]){case"[":a+="(";break;case"]":a+=")?";break;default:a+=t.escapeRegex(r[0])}else if(c[r[0]])if(s!==!0&&c[r[0]][3]){var l=c[r[0]][3];a+=l.call(n.date)}else a+=c[r[0]][2]?n["raw"+c[r[0]][2]]:r[0];else a+=r[0];return a}function s(t,e){for(t=String(t),e=e||2;t.length<e;)t="0"+t;return t}function a(t,i,n){function o(t){var e;if(n.min&&n.min[a]||n.max&&n.max[a]){var i=n.min&&n.min[a]||n.max[a],o=n.max&&n.max[a]||n.min[a];for(e=t.replace(/[^0-9]/g,""),e+=(i.indexOf(e)<o.indexOf(e)?o:i).toString().substr(e.length);!new RegExp(d).test(e);)e--}else e=t.replace(/[^0-9]/g,"0");return e}function s(t,e,i){t[a]=o(e),t["raw"+a]=e,void 0!==h&&h.call(t.date,"month"==a?parseInt(t[a])-1:t[a])}var a,l,h,d,u={date:new Date(1,0,1)},p=t;if("string"==typeof p){for(;l=e(n).exec(i);){var f=p.slice(0,l[0].length);c.hasOwnProperty(l[0])&&(d=c[l[0]][0],a=c[l[0]][2],h=c[l[0]][1],s(u,f,n)),p=p.slice(f.length)}return u}if(p&&"object"===("undefined"==typeof p?"undefined":r(p))&&p.hasOwnProperty("date"))return p}var l=t.dependencyLib,c={d:["[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",Date.prototype.getDate],dd:["0[1-9]|[12][0-9]|3[01]",Date.prototype.setDate,"day",function(){return s(Date.prototype.getDate.call(this),2)}],ddd:[""],dddd:[""],m:["[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",Date.prototype.setMonth,"month",function(){return s(Date.prototype.getMonth.call(this)+1,2)}],mmm:[""],mmmm:[""],yy:["[0-9]{2}",Date.prototype.setFullYear,"year",function(){return s(Date.prototype.getFullYear.call(this),2)}],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return s(Date.prototype.getFullYear.call(this),4)}],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return s(Date.prototype.getHours.call(this),2)}],hhh:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["[01][0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return s(Date.prototype.getHours.call(this),2)}],HHH:["[0-9]+",Date.prototype.setHours,"hours",Date.prototype.getHours],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["[0-5][0-9]",Date.prototype.setMinutes,"minutes",function(){return s(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["[0-5][0-9]",Date.prototype.setSeconds,"seconds",function(){return s(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return s(Date.prototype.getMilliseconds.call(this),3)}],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return s(Date.prototype.getMilliseconds.call(this),2)}],t:["[ap]"],tt:["[ap]m"],T:["[AP]"],TT:["[AP]M"],Z:[""],o:[""],S:[""]},h={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};return t.extendAliases({datetime:{mask:function(t){return c.S=t.i18n.ordinalSuffix.join("|"),t.inputFormat=h[t.inputFormat]||t.inputFormat,t.displayFormat=h[t.displayFormat]||t.displayFormat||t.inputFormat,t.outputFormat=h[t.outputFormat]||t.outputFormat||t.inputFormat,t.placeholder=""!==t.placeholder?t.placeholder:t.inputFormat.replace(/[\[\]]/,""),t.regex=o(t.inputFormat,void 0,t),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,i18n:{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Frid
21ay","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]},postValidation:function(t,e,s,r){r.min=a(r.min,r.inputFormat,r),r.max=a(r.max,r.inputFormat,r);var l=s,c=a(t.join(""),r.inputFormat,r);return l&&c.date.getTime()===c.date.getTime()&&(l=i(c,l),l=l&&n(c,r)),e&&l&&s.pos!==e?{buffer:o(r.inputFormat,c,r),refreshFromBuffer:{start:e,end:s.pos}}:l},onKeyDown:function(i,n,o,r){var a=this;if(i.ctrlKey&&i.keyCode===t.keyCode.RIGHT){for(var c,h=new Date,d="";c=e(r).exec(r.inputFormat);)"d"===c[0].charAt(0)?d+=s(h.getDate(),c[0].length):"m"===c[0].charAt(0)?d+=s(h.getMonth()+1,c[0].length):"yyyy"===c[0]?d+=h.getFullYear().toString():"y"===c[0].charAt(0)&&(d+=s(h.getYear(),c[0].length));a.inputmask._valueSet(d),l(a).trigger("setvalue")}},onUnMask:function(t,e,i){return o(i.outputFormat,a(t,i.inputFormat,i),i,!0)},casing:function(t,e,i,n){return 0==e.nativeDef.indexOf("[ap]")?t.toLowerCase():0==e.nativeDef.indexOf("[AP]")?t.toUpperCase():t},insertMode:!1}}),t})},function(t,e,i){"use strict";var n,o,s;"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},!function(r){o=[i(2)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t){function e(e,i){for(var n="",o=0;o<e.length;o++)n+=t.prototype.definitions[e.charAt(o)]||i.definitions[e.charAt(o)]||i.optionalmarker.start===e.charAt(o)||i.optionalmarker.end===e.charAt(o)||i.quantifiermarker.start===e.charAt(o)||i.quantifiermarker.end===e.charAt(o)||i.groupmarker.start===e.charAt(o)||i.groupmarker.end===e.charAt(o)||i.alternatormarker===e.charAt(o)?"\\"+e.charAt(o):e.charAt(o);return n}function i(t,e){if(e.numericInput){var i=n.inArray(e.radixPoint,t);i===-1&&(t.push(e.radixPoint),i=t.length-1);for(var o=1;o<=e.digits;o++)t[i+o]=t[i+o]||"0"}return t}var n=t.dependencyLib;return t.extendAliases({numeric:{mask:function o(t){if(0!==t.repeat&&isNaN(t.integerDigits)&&(t.integerDigits=t.repeat),t.repeat=0,t.groupSeparator===t.radixPoint&&t.digits&&"0"!==t.digits&&("."===t.radixPoint?t.groupSeparator=",":","===t.radixPoint?t.groupSeparator=".":t.groupSeparator="")," "===t.groupSeparator&&(t.skipOptionalPartCharacter=void 0),t.autoGroup=t.autoGroup&&""!==t.groupSeparator,t.autoGroup&&("string"==typeof t.groupSize&&isFinite(t.groupSize)&&(t.groupSize=parseInt(t.groupSize)),isFinite(t.integerDigits))){var i=Math.floor(t.integerDigits/t.groupSize),n=t.integerDigits%t.groupSize;t.integerDigits=parseInt(t.integerDigits)+(0===n?i-1:i),t.integerDigits<1&&(t.integerDigits="*")}t.placeholder.length>1&&(t.placeholder=t.placeholder.charAt(0)),"radixFocus"===t.positionCaretOnClick&&""===t.placeholder&&t.integerOptional===!1&&(t.positionCaretOnClick="lvp"),t.definitions[";"]=t.definitions["~"],t.definitions[";"].definitionSymbol="~",t.numericInput===!0&&(t.positionCaretOnClick="radixFocus"===t.positionCaretOnClick?"lvp":t.positionCaretOnClick,t.digitsOptional=!1,isNaN(t.digits)&&(t.digits=2),t.decimalProtect=!1);var o="[+]";if(o+=e(t.prefix,t),o+=t.integerOptional===!0?"~{1,"+t.integerDigits+"}":"~{"+t.integerDigits+"}",void 0!==t.digits){var s=t.decimalProtect?":":t.radixPoint,r=t.digits.toString().split(",");isFinite(r[0])&&r[1]&&isFinite(r[1])?o+=s+";{"+t.digits+"}":(isNaN(t.digits)||parseInt(t.digits)>0)&&(o+=t.digitsOptional?"["+s+";{1,"+t.digits+"}]":s+";{"+t.digits+"}")}return o+=e(t.suffix,t),o+="[-]",t.greedy=!1,o},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(t,e,
21i,o,s,r){if("-"===i||i===s.negationSymbol.front)return s.allowMinus===!0&&(s.isNegative=void 0===s.isNegative||!s.isNegative,""===t.join("")||{caret:r.validPositions[e]?e:void 0,dopost:!0});if(o===!1&&i===s.radixPoint&&void 0!==s.digits&&(isNaN(s.digits)||parseInt(s.digits)>0)){var a=n.inArray(s.radixPoint,t);if(a!==-1&&void 0!==r.validPositions[a])return s.numericInput===!0?e===a:{caret:a+1}}return!0},postValidation:function(e,i,o,s){function r(t,e){var i="";if(i+="("+e.groupSeparator+"*{"+e.groupSize+"}){*}",""!==e.radixPoint){var n=t.join("").split(e.radixPoint);n[1]&&(i+=e.radixPoint+"*{"+n[1].match(/^\d*\??\d*/)[0].length+"}")}return i}var a=s.suffix.split(""),l=s.prefix.split("");if(void 0===o.pos&&void 0!==o.caret&&o.dopost!==!0)return o;var c=void 0!==o.caret?o.caret:o.pos,h=e.slice();s.numericInput&&(c=h.length-c-1,h=h.reverse());var d=h[c];if(d===s.groupSeparator&&(c+=1,d=h[c]),c===h.length-s.suffix.length-1&&d===s.radixPoint)return o;void 0!==d&&d!==s.radixPoint&&d!==s.negationSymbol.front&&d!==s.negationSymbol.back&&(h[c]="?",s.prefix.length>0&&c>=(s.isNegative===!1?1:0)&&c<s.prefix.length-1+(s.isNegative===!1?1:0)?l[c-(s.isNegative===!1?1:0)]="?":s.suffix.length>0&&c>=h.length-s.suffix.length-(s.isNegative===!1?1:0)&&(a[c-(h.length-s.suffix.length-(s.isNegative===!1?1:0))]="?")),l=l.join(""),a=a.join("");var u=h.join("").replace(l,"");if(u=u.replace(a,""),u=u.replace(new RegExp(t.escapeRegex(s.groupSeparator),"g"),""),u=u.replace(new RegExp("[-"+t.escapeRegex(s.negationSymbol.front)+"]","g"),""),u=u.replace(new RegExp(t.escapeRegex(s.negationSymbol.back)+"$"),""),isNaN(s.placeholder)&&(u=u.replace(new RegExp(t.escapeRegex(s.placeholder),"g"),"")),u.length>1&&1!==u.indexOf(s.radixPoint)&&("0"===d&&(u=u.replace(/^\?/g,"")),u=u.replace(/^0/g,"")),u.charAt(0)===s.radixPoint&&""!==s.radixPoint&&s.numericInput!==!0&&(u="0"+u),""!==u){if(u=u.split(""),(!s.digitsOptional||s.enforceDigitsOnBlur&&"blur"===o.event)&&isFinite(s.digits)){var p=n.inArray(s.radixPoint,u),f=n.inArray(s.radixPoint,h);p===-1&&(u.push(s.radixPoint),p=u.length-1);for(var g=1;g<=s.digits;g++)s.digitsOptional&&(!s.enforceDigitsOnBlur||"blur"!==o.event)||void 0!==u[p+g]&&u[p+g]!==s.placeholder.charAt(0)?f!==-1&&void 0!==h[f+g]&&(u[p+g]=u[p+g]||h[f+g]):u[p+g]=o.placeholder||s.placeholder.charAt(0)}if(s.autoGroup!==!0||""===s.groupSeparator||d===s.radixPoint&&void 0===o.pos&&!o.dopost)u=u.join("");else{var m=u[u.length-1]===s.radixPoint&&o.c===s.radixPoint;u=t(r(u,s),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(u.join("")),m&&(u+=s.radixPoint),u.charAt(0)===s.groupSeparator&&u.substr(1)}}if(s.isNegative&&"blur"===o.event&&(s.isNegative="0"!==u),u=l+u,u+=a,s.isNegative&&(u=s.negationSymbol.front+u,u+=s.negationSymbol.back),u=u.split(""),void 0!==d)if(d!==s.radixPoint&&d!==s.negationSymbol.front&&d!==s.negationSymbol.back)c=n.inArray("?",u),c>-1?u[c]=d:c=o.caret||0;else if(d===s.radixPoint||d===s.negationSymbol.front||d===s.negationSymbol.back){var v=n.inArray(d,u);v!==-1&&(c=v)}s.numericInput&&(c=u.length-c-1,u=u.reverse());var y={caret:void 0!==d&&void 0===o.pos||void 0===c?c:c+(s.numericInput?-1:1),buffer:u,refreshFromBuffer:o.dopost||e.join("")!==u.join("")};return y.refreshFromBuffer?y:o},onBeforeWrite:function(e,i,o,s){function r(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp(t.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp(t.escapeRegex(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}if(e)switch(e.type){case"keydown":return s.postValidation(i,o,{caret:o,dopost:!0},s);case"blur":case"checkval":var a;if(r(s),null!==s.min||null!==s.max){if(a=s.onUnMask(i.join(""),void 0,n.extend({},s,{unmaskAsNumber:!0})),null!==s.min&&a<s.min)return s.isNegative=s.min<0,s.postValidation(s.min.toString().replace(".",s.radixPoint).split(""),o,{caret:o,dopost:!0,placeholder:"0"},s);if(null!==s.max&&a>s.max)return s.isNegative=s.max<0,s.postValidation(s.max.toString().replace(".",s.radixPoint).split(""),o,{caret:o,dopost:!0,placeholder:"0"},s)}return s.postValidation(i,o,{caret:o,placeholder:"0",event:"blur"},s);case"_checkval":return{caret:o}}},regex:{integerPart:function(e,i){return i?new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?"):new RegExp("["+t.escapeRegex(e.negationSymbol.front)+"+]?\\d+")},integerNPart:function(e){return new RegExp("[\\d"+t.escapeRegex(e.groupSeparator)+t.escapeRegex(e.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(e,i,n,o,s,r){var a,l;if("k"===e||"m"===e){a={insert:[],c:0};for(var c=0,l="k"===e?2:5;c<l;c++)a.insert.push({pos:n+c,c:0});return a.pos=n+l,a}if(a=o?new RegExp("[0-9"+t.escapeRegex(s.groupSeparator)+"]").test(e):new RegExp("[0-9]").test(e),a===!0){if(s.numericInput!==!0&&void 0!==i.validPositions[n]&&"~"===i.validPositions[n].match.def&&!r){
22var h=i.buffer.join("");h=h.replace(new RegExp("[-"+t.escapeRegex(s.negationSymbol.front)+"]","g"),""),h=h.replace(new RegExp(t.escapeRegex(s.negationSymbol.back)+"$"),"");var d=h.split(s.radixPoint);d.length>1&&(d[1]=d[1].replace(/0/g,s.placeholder.charAt(0))),"0"===d[0]&&(d[0]=d[0].replace(/0/g,s.placeholder.charAt(0))),h=d[0]+s.radixPoint+d[1]||"";var u=i._buffer.join("");for(h===s.radixPoint&&(h=u);null===h.match(t.escapeRegex(u)+"$");)u=u.slice(1);h=h.replace(u,""),h=h.split(""),a=void 0===h[n]?{pos:n,remove:n}:{pos:n}}}else o||e!==s.radixPoint||void 0!==i.validPositions[n-1]||(a={insert:{pos:n,c:0},pos:n+1});return a},cardinality:1}
22,"+":{validator:function(t,e,i,n,o){return o.allowMinus&&("-"===t||t===o.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(t,e,i,n,o){return o.allowMinus&&t===o.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(e,i,n,o,s){var r="["+t.escapeRegex(s.radixPoint)+"]",a=new RegExp(r).test(e);return a&&i.validPositions[n]&&i.validPositions[n].match.placeholder===s.radixPoint&&(a={caret:n+1}),a},cardinality:1,placeholder:function(t){return t.radixPoint}}},onUnMask:function(e,i,n){if(""===i&&n.nullable===!0)return i;var o=e.replace(n.prefix,"");return o=o.replace(n.suffix,""),o=o.replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(o=o.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&o.indexOf(n.radixPoint)!==-1&&(o=o.replace(t.escapeRegex.call(this,n.radixPoint),".")),o=o.replace(new RegExp("^"+t.escapeRegex(n.negationSymbol.front)),"-"),o=o.replace(new RegExp(t.escapeRegex(n.negationSymbol.back)+"$"),""),Number(o)):o},isComplete:function(e,i){var n=(i.numericInput?e.slice().reverse():e).join("");return n=n.replace(new RegExp("^"+t.escapeRegex(i.negationSymbol.front)),"-"),n=n.replace(new RegExp(t.escapeRegex(i.negationSymbol.back)+"$"),""),n=n.replace(i.prefix,""),n=n.replace(i.suffix,""),n=n.replace(new RegExp(t.escapeRegex(i.groupSeparator)+"([0-9]{3})","g"),"$1"),","===i.radixPoint&&(n=n.replace(t.escapeRegex(i.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,n){if(n.isNegative=void 0,"number"==typeof e&&""!==n.radixPoint&&(e=e.toString().replace(".",n.radixPoint)),e=e.toString().charAt(e.length-1)===n.radixPoint?e.toString().substr(0,e.length-1):e.toString(),""!==n.radixPoint&&isFinite(e)){var o=e.split("."),s=""!==n.groupSeparator?parseInt(n.groupSize):0;2===o.length&&(o[0].length>s||o[1].length>s||o[0].length<=s&&o[1].length<s)&&(e=e.replace(".",n.radixPoint))}var r=e.match(/,/g),a=e.match(/\./g);if(a&&r?a.length>r.length?(e=e.replace(/\./g,""),e=e.replace(",",n.radixPoint)):r.length>a.length?(e=e.replace(/,/g,""),e=e.replace(".",n.radixPoint)):e=e.indexOf(".")<e.indexOf(",")?e.replace(/\./g,""):e.replace(/,/g,""):e=e.replace(new RegExp(t.escapeRegex(n.groupSeparator),"g"),""),0===n.digits&&(e.indexOf(".")!==-1?e=e.substring(0,e.indexOf(".")):e.indexOf(",")!==-1&&(e=e.substring(0,e.indexOf(",")))),""!==n.radixPoint&&isFinite(n.digits)&&e.indexOf(n.radixPoint)!==-1){var l=e.split(n.radixPoint),c=l[1].match(new RegExp("\\d*"))[0];if(parseInt(n.digits)<c.toString().length){var h=Math.pow(10,parseInt(n.digits));e=e.replace(t.escapeRegex(n.radixPoint),"."),e=Math.round(parseFloat(e)*h)/h,e=e.toString().replace(".",n.radixPoint)}}return i(e.toString().split(""),n).join("")},onKeyDown:function(e,i,o,s){var r=n(this);if(e.ctrlKey)switch(e.keyCode){case t.keyCode.UP:r.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(s.step)),r.trigger("setvalue");break;case t.keyCode.DOWN:r.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(s.step)),r.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),t})},function(t,e,i){"use strict";var n,o,s,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};!function(r){o=[i(4),i(2)],n=r,s="function"==typeof n?n.apply(e,o):n,!(void 0!==s&&(t.exports=s))}(function(t,e){return void 0===t.fn.inputmask&&(t.fn.inputmask=function(i,n){var o,s=this[0];if(void 0===n&&(n={}),"string"==typeof i)switch(i){case"unmaskedvalue":return s&&s.inputmask?s.inputmask.unmaskedvalue():t(s).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return s&&s.inputmask?s.inputmask.getemptymask():"";case"hasMaskedValue":return!(!s||!s.inputmask)&&s.inputmask.hasMaskedValue();case"isComplete":return!s||!s.inputmask||s.inputmask.isComplete();case"getmetadata":return s&&s.inputmask?s.inputmask.getmetadata():void 0;case"setvalue":e.setValue(s,n);break;case"option":if("string"!=typeof n)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(n)});if(s&&void 0!==s.inputmask)return s.inputmask.option(n);break;default:return n.alias=i,o=new e(n),this.each(function(){o.mask(this)})}else{if(Array.isArray(i))return n.alias=i,o=new e(n),this.each(function(){o.mask(this)});if("object"==("undefined"==typeof i?"undefined":r(i)))return o=new e(i),void 0===i.mask&&void 0===i.alias?this.each(function(){return void 0!==this.inputmask?this.inputmask.option(i):void o.mask(this)}):this.each(function(){o.mask(this)});if(void 0===i)return this.each(function(){o=new e(n),o.mask(this)})}}),t.fn.inputmask})}]),function(t){"use strict";var e={init:function(i){return this.each(function(){this.self=t(this),e.destroy.call(this.self),this.opt=t.extend(!0,{},t.fn.raty.defaults,i),e._adjustCallback.call(this),e._adjustNumber.call(this),e._adjustHints.call(this),this.opt.score=e._adjustedScore.call(this,this.opt.score),"img"!==this.opt.starType&&e._adjustStarType.call(this),e._adjustPath.call(this),e._createStars.call(this),this.opt.cancel&&e._createCancel.call(this),this.opt.precision&&e._adjustPrecision.call(this),e._createScore.call(this),e._apply.call(this,this.opt.score),e._setTitle.call(this,this.opt.score),e._target.call(this,this.opt.score),this.opt.readOnly?e._lock.call(this):(this.style.cursor="pointer",e._binds.call(this))})},_adjustCallback:function(){for(var t=["number","readOnly","score","scoreName","target"],e=0;e<t.length;e++)"function"==typeof this.opt[t[e]]&&(this.opt[t[e]]=this.opt[t[e]].call(this))},_adjustedScore:function(t){return t?e._between(t,0,this.opt.number):t}
22,_adjustHints:function(){if(this.opt.hints||(this.opt.hints=[]),this.opt.halfShow||this.opt.half)for(var t=this.opt.precision?10:2,e=0;e<this.opt.number;e++){var i=this.opt.hints[e];"[object Array]"!==Object.prototype.toString.call(i)&&(i=[i]),this.opt.hints[e]=[];for(var n=0;n<t;n++){var o=i[n],s=i[i.length-1];void 0===s&&(s=null),this.opt.hints[e][n]=void 0===o?s:o}}},_adjustNumber:function(){this.opt.number=e._between(this.opt.number,1,this.opt.numberMax)},_adjustPath:function(){this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.charAt(this.opt.path.length-1)&&(this.opt.path+="/")},_adjustPrecision:function(){this.opt.half=!0},_adjustStarType:function(){var t=["cancelOff","cancelOn","starHalf","starOff","starOn"];this.opt.path="";for(var e=0;e<t.length;e++)this.opt[t[e]]=this.opt[t[e]].replace(".","-")},_apply:function(t){e._fill.call(this,t),t&&(t>0&&this.score.val(t),e._roundStars.call(this,t))},_between:function(t,e,i){return Math.min(Math.max(parseFloat(t),e),i)},_binds:function(){this.cancel&&(e._bindOverCancel.call(this),e._bindClickCancel.call(this),e._bindOutCancel.call(this)),e._bindOver.call(this),e._bindClick.call(this),e._bindOut.call(this)},_bindClick:function(){var i=this;i.stars.on("click.raty",function(n){var o=!0,s=i.opt.half||i.opt.precision?i.self.data("score"):this.alt||t(this).data("alt");i.opt.click&&(o=i.opt.click.call(i,+s,n)),(o||void 0===o)&&(i.opt.half&&!i.opt.precision&&(s=e._roundHalfScore.call(i,s)),e._apply.call(i,s))})},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",function(e){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,e)})},_bindOut:function(){var t=this;t.self.on("mouseleave.raty",function(i){var n=+t.score.val()||void 0;e._apply.call(t,n),e._target.call(t,n,i),e._resetTitle.call(t),t.opt.mouseout&&t.opt.mouseout.call(t,n,i)})},_bindOutCancel:function(){var t=this;t.cancel.on("mouseleave.raty",function(i){var n=t.opt.cancelOff;if("img"!==t.opt.starType&&(n=t.opt.cancelClass+" "+n),e._setIcon.call(t,this,n),t.opt.mouseout){var o=+t.score.val()||void 0;t.opt.mouseout.call(t,o,i)}})},_bindOver:function(){var t=this,i=t.opt.half?"mousemove.raty":"mouseover.raty";t.stars.on(i,function(i){var n=e._getScoreByPosition.call(t,i,this);e._fill.call(t,n),t.opt.half&&(e._roundStars.call(t,n,i),e._setTitle.call(t,n,i),t.self.data("score",n)),e._target.call(t,n,i),t.opt.mouseover&&t.opt.mouseover.call(t,n,i)})},_bindOverCancel:function(){var t=this;t.cancel.on("mouseover.raty",function(i){var n=t.opt.path+t.opt.starOff,o=t.opt.cancelOn;"img"===t.opt.starType?t.stars.attr("src",n):(o=t.opt.cancelClass+" "+o,t.stars.attr("class",n)),e._setIcon.call(t,this,o),e._target.call(t,null,i),t.opt.mouseover&&t.opt.mouseover.call(t,null)})},_buildScoreField:function(){return t("<input />",{name:this.opt.scoreName,type:"hidden"}).appendTo(this)},_createCancel:function(){var e=this.opt.path+this.opt.cancelOff,i=t("<"+this.opt.starType+" />",{title:this.opt.cancelHint,"class":this.opt.cancelClass});"img"===this.opt.starType?i.attr({src:e,alt:"x"}):i.attr("data-alt","x").addClass(e),"left"===this.opt.cancelPlace?this.self.prepend("&#160;").prepend(i):this.self.append("&#160;").append(i),this.cancel=i},_createScore:function(){var i=t(this.opt.targetScore);this.score=i.length?i:e._buildScoreField.call(this)},_createStars:function(){for(var i=1;i<=this.opt.number;i++){var n=e._nameForIndex.call(this,i),o={alt:i,src:this.opt.path+this.opt[n]};"img"!==this.opt.starType&&(o={"data-alt":i,"class":o.src}),o.title=e._getHint.call(this,i),t("<"+this.opt.starType+" />",o).appendTo(this),this.opt.space&&this.self.append(i<this.opt.number?"&#160;":"")}this.stars=this.self.children(this.opt.starType)},_error:function(e){t(this).text(e),t.error(e)},_fill:function(t){for(var i=0,n=1;n<=this.stars.length;n++){var o,s=this.stars[n-1],r=e._turnOn.call(this,n,t);if(this.opt.iconRange&&this.opt.iconRange.length>i){var a=this.opt.iconRange[i];o=e._getRangeIcon.call(this,a,r),n<=a.range&&e._setIcon.call(this,s,o),n===a.range&&i++}else o=this.opt[r?"starOn":"starOff"],e._setIcon.call(this,s,o)}}
22,_getFirstDecimal:function(t){var e=t.toString().split(".")[1],i=0;return e&&(i=parseInt(e.charAt(0),10),"9999"===e.slice(1,5)&&i++),i},_getRangeIcon:function(t,e){return e?t.on||this.opt.starOn:t.off||this.opt.starOff},_getScoreByPosition:function(i,n){var o=parseInt(n.alt||n.getAttribute("data-alt"),10);if(this.opt.half){var s=e._getWidth.call(this),r=parseFloat((i.pageX-t(n).offset().left)/s);o=o-1+r}return o},_getHint:function(t,i){if(0!==t&&!t)return this.opt.noRatedMsg;var n=e._getFirstDecimal.call(this,t),o=Math.ceil(t),s=this.opt.hints[(o||1)-1],r=s,a=!i||this.move;return this.opt.precision?(a&&(n=0===n?9:n-1),r=s[n]):(this.opt.halfShow||this.opt.half)&&(n=a&&0===n?1:n>5?1:0,r=s[n]),""===r?"":r||t},_getWidth:function(){var t=this.stars[0].width||parseFloat(this.stars.eq(0).css("font-size"));return t||e._error.call(this,"Could not get the icon width!"),t},_lock:function(){var t=e._getHint.call(this,this.score.val());this.style.cursor="",this.title=t,this.score.prop("readonly",!0),this.stars.prop("title",t),this.cancel&&this.cancel.hide(),this.self.data("readonly",!0)},_nameForIndex:function(t){return this.opt.score&&this.opt.score>=t?"starOn":"starOff"},_resetTitle:function(t){for(var i=0;i<this.opt.number;i++)this.stars[i].title=e._getHint.call(this,i+1)},_roundHalfScore:function(t){var i=parseInt(t,10),n=e._getFirstDecimal.call(this,t);return 0!==n&&(n=n>5?1:.5),i+n},_roundStars:function(t,i){var n,o=(t%1).toFixed(2);if(i||this.move?n=o>.5?"starOn":"starHalf":o>this.opt.round.down&&(n="starOn",this.opt.halfShow&&o<this.opt.round.up?n="starHalf":o<this.opt.round.full&&(n="starOff")),n){var s=this.opt[n],r=this.stars[Math.ceil(t)-1];e._setIcon.call(this,r,s)}},_setIcon:function(t,e){t["img"===this.opt.starType?"src":"className"]=this.opt.path+e},_setTarget:function(t,e){e&&(e=this.opt.targetFormat.toString().replace("{score}",e)),t.is(":input")?t.val(e):t.html(e)},_setTitle:function(t,i){if(t){var n=parseInt(Math.ceil(t),10),o=this.stars[n-1];o.title=e._getHint.call(this,t,i)}},_target:function(i,n){if(this.opt.target){var o=t(this.opt.target);o.length||e._error.call(this,"Target selector invalid or missing!");var s=n&&"mouseover"===n.type;if(void 0===i)i=this.opt.targetText;else if(null===i)i=s?this.opt.cancelHint:this.opt.targetText;else{"hint"===this.opt.targetType?i=e._getHint.call(this,i,n):this.opt.precision&&(i=parseFloat(i).toFixed(1));var r=n&&"mousemove"===n.type;s||r||this.opt.targetKeep||(i=this.opt.targetText)}e._setTarget.call(this,o,i)}},_turnOn:function(t,e){return this.opt.single?t===e:t<=e},_unlock:function(){this.style.cursor="pointer",this.removeAttribute("title"),this.score.removeAttr("readonly"),this.self.data("readonly",!1);for(var t=0;t<this.opt.number;t++)this.stars[t].title=e._getHint.call(this,t+1);this.cancel&&this.cancel.css("display","")},cancel:function(i){return this.each(function(){var n=t(this);n.data("readonly")!==!0&&(e[i?"click":"score"].call(n,null),this.score.removeAttr("value"))})},click:function(i){return this.each(function(){t(this).data("readonly")!==!0&&(i=e._adjustedScore.call(this,i),e._apply.call(this,i),this.opt.click&&this.opt.click.call(this,i,t.Event("click")),e._target.call(this,i))})},destroy:function(){return this.each(function(){var e=t(this),i=e.data("raw");i?e.off(".raty").empty().css({cursor:i.style.cursor}).removeData("readonly"):e.data("raw",e.clone()[0])})},getScore:function(){var t,e=[];return this.each(function(){t=this.score.val(),e.push(t?+t:void 0)}),e.length>1?e:e[0]},move:function(i){return this.each(function(){var n=parseInt(i,10),o=e._getFirstDecimal.call(this,i);n>=this.opt.number&&(n=this.opt.number-1,o=10);var s=e._getWidth.call(this),r=s/10,a=t(this.stars[n]),l=a.offset().left+r*o,c=t.Event("mousemove",{pageX:l});this.move=!0,a.trigger(c),this.move=!1})},readOnly:function(i){return this.each(function(){var n=t(this);n.data("readonly")!==i&&(i?(n.off(".raty").children("img").off(".raty"),e._lock.call(this)):(e._binds.call(this),e._unlock.call(this)),n.data("readonly",i))})},reload:function(){return e.set.call(this,{})},score:function(){var i=t(this);return arguments.length?e.setScore.apply(i,arguments):e.getScore.call(i)},set:function(e){return this.each(function(){t(this).raty(t.extend({},this.opt,e))})},setScore:function(i){return this.each(function(){t(this).data("readonly")!==!0&&(i=e._adjustedScore.call(this,i),e._apply.call(this,i),e._target.call(this,i))})}};t.fn.raty=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1
22)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist!"):e.init.apply(this,arguments)},t.fn.raty.defaults={cancel:!1,cancelClass:"raty-cancel",cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:void 0,precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",starType:"img",target:void 0,targetFormat:"{score}",targetKeep:!1,targetScore:void 0,targetText:"",targetType:"hint"}}(jQuery),function(t,e,i,n){function o(e,i){var s=this;"object"==typeof i&&(delete i.refresh,delete i.render,t.extend(this,i)),this.$element=t(e),!this.imageSrc&&this.$element.is("img")&&(this.imageSrc=this.$element.attr("src"));var r=(this.position+"").toLowerCase().match(/\S+/g)||[];if(r.length<1&&r.push("center"),1==r.length&&r.push(r[0]),"top"!=r[0]&&"bottom"!=r[0]&&"left"!=r[1]&&"right"!=r[1]||(r=[r[1],r[0]]),this.positionX!==n&&(r[0]=this.positionX.toLowerCase()),this.positionY!==n&&(r[1]=this.positionY.toLowerCase()),s.positionX=r[0],s.positionY=r[1],"left"!=this.positionX&&"right"!=this.positionX&&(isNaN(parseInt(this.positionX))?this.positionX="center":this.positionX=parseInt(this.positionX)),"top"!=this.positionY&&"bottom"!=this.positionY&&(isNaN(parseInt(this.positionY))?this.positionY="center"
vendor: 7,351 bytes, line 22
22:this.positionY=parseInt(this.positionY)),this.position=this.positionX+(isNaN(this.positionX)?"":"px")+" "+this.positionY+(isNaN(this.positionY)?"":"px"),navigator.userAgent.match(/(iPod123)/))return this.imageSrc&&this.iosFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;if(navigator.userAgent.match(/(Android123)/))return this.imageSrc&&this.androidFix&&!this.$element.is("img")&&this.$element.css({backgroundImage:"url("+this.imageSrc+")",backgroundSize:"cover",backgroundPosition:this.position}),this;this.$mirror=t("<div />").prependTo(this.mirrorContainer);var a=this.$element.find(">.parallax-slider"),l=!1;0==a.length?this.$slider=t("<img />").prependTo(this.$mirror):(this.$slider=a.prependTo(this.$mirror),l=!0),this.$mirror.addClass("parallax-mirror").css({visibility:"hidden",zIndex:this.zIndex,position:"fixed",top:0,left:0,overflow:"hidden"}),this.$slider.addClass("parallax-slider").one("load",function(){s.naturalHeight&&s.naturalWidth||(s.naturalHeight=this.naturalHeight||this.height||1,s.naturalWidth=this.naturalWidth||this.width||1),s.aspectRatio=s.naturalWidth/s.naturalHeight,o.isSetup||o.setup(),o.sliders.push(s),o.isFresh=!1,o.requestRender()}),l||(this.$slider[0].src=this.imageSrc),(this.naturalHeight&&this.naturalWidth||this.$slider[0].complete||a.length>0)&&this.$slider.trigger("load")}function s(n){return this.each(function(){var s=t(this),r="object"==typeof n&&n;this==e||this==i||s.is("body")?o.configure(r):s.data("px.parallax")?"object"==typeof n&&t.extend(s.data("px.parallax"),r):(r=t.extend({},s.data(),r),s.data("px.parallax",new o(this,r))),"string"==typeof n&&("destroy"==n?o.destroy(this):o[n]())})}!function(){for(var t=0,i=["ms","moz","webkit","o"],n=0;n<i.length&&!e.requestAnimationFrame;++n)e.requestAnimationFrame=e[i[n]+"RequestAnimationFrame"],e.cancelAnimationFrame=e[i[n]+"CancelAnimationFrame"]||e[i[n]+"CancelRequestAnimationFrame"];e.requestAnimationFrame||(e.requestAnimationFrame=function(i){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),s=e.setTimeout(function(){i(n+o)},o);return t=n+o,s}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(t){clearTimeout(t)})}(),t.extend(o.prototype,{speed:.2,bleed:0,zIndex:-100,iosFix:!0,androidFix:!0,position:"center",overScrollFix:!1,mirrorContainer:"body",refresh:function(){this.boxWidth=this.$element.outerWidth(),this.boxHeight=this.$element.outerHeight()+2*this.bleed,this.boxOffsetTop=this.$element.offset().top-this.bleed,this.boxOffsetLeft=this.$element.offset().left,this.boxOffsetBottom=this.boxOffsetTop+this.boxHeight;var t,e=o.winHeight,i=o.docHeight,n=Math.min(this.boxOffsetTop,i-e),s=Math.max(this.boxOffsetTop+this.boxHeight-e,0),r=this.boxHeight+(n-s)*(1-this.speed)|0,a=(this.boxOffsetTop-n)*(1-this.speed)|0;r*this.aspectRatio>=this.boxWidth?(this.imageWidth=r*this.aspectRatio|0,this.imageHeight=r,this.offsetBaseTop=a,t=this.imageWidth-this.boxWidth,"left"==this.positionX?this.offsetLeft=0:"right"==this.positionX?this.offsetLeft=-t:isNaN(this.positionX)?this.offsetLeft=-t/2|0:this.offsetLeft=Math.max(this.positionX,-t)):(this.imageWidth=this.boxWidth,this.imageHeight=this.boxWidth/this.aspectRatio|0,this.offsetLeft=0,t=this.imageHeight-r,"top"==this.positionY?this.offsetBaseTop=a:"bottom"==this.positionY?this.offsetBaseTop=a-t:isNaN(this.positionY)?this.offsetBaseTop=a-t/2|0:this.offsetBaseTop=a+Math.max(this.positionY,-t))},render:function(){var t=o.scrollTop,e=o.scrollLeft,i=this.overScrollFix?o.overScroll:0,n=t+o.winHeight;this.boxOffsetBottom>t&&this.boxOffsetTop<=n?(this.visibility="visible",this.mirrorTop=this.boxOffsetTop-t,this.mirrorLeft=this.boxOffsetLeft-e,this.offsetTop=this.offsetBaseTop-this.mirrorTop*(1-this.speed)):this.visibility="hidden",this.$mirror.css({transform:"translate3d("+this.mirrorLeft+"px, "+(this.mirrorTop-i)+"px, 0px)",visibility:this.visibility,height:this.boxHeight,width:this.boxWidth}),this.$slider.css({transform:"translate3d("+this.offsetLeft+"px, "+this.offsetTop+"px, 0px)",position:"absolute",height:this.imageHeight,width:this.imageWidth,maxWidth:"none"})}}),t.extend(o,{scrollTop:0,scrollLeft:0,winHeight:0,winWidth:0,docHeight:1<<30,docWidth:1<<30,sliders:[],isReady:!1,isFresh:!1,isBusy:!1,setup:function(){function n(){return h==e.pageYOffset?(e.requestAnimationFrame(n),!1):(h=e.pageYOffset,s.render(),void e.requestAnimationFrame(n))}if(!this.isReady){var s=this,r=t(i),a=t(e),l=function(){o.winHeight=a.height(),o.winWidth=a.width(),o.docHeight=r.height(),o.docWidth=r.width()},c=function(){var t=a.scrollTop(),e=o.docHeight-o.winHeight,i=o.docWidth-o.winWidth;o.scrollTop=Math.max(0,Math.min(e,t)),o.scrollLeft=Math.max(0,Math.min(i,a.scrollLeft())),o.overScroll=Math.max(t-e,Math.min(t,0))};a.on("resize.px.parallax load.px.parallax",function(){l(),s.refresh(),o.isFresh=!1,o.requestRender()}).on("scroll.px.parallax load.px.parallax",function(){c(),o.requestRender()}),l(),c(),this.isReady=!0;var h=-1;n()}},configure:function(e){"object"==typeof e&&(delete e.refresh,delete e.render,t.extend(this.prototype,e))},refresh:function(){t.each(this.sliders,function(){this.refresh()}),this.isFresh=!0},render:function(){this.isFresh||this.refresh(),t.each(this.sliders,function(){this.render()})},requestRender:function(){var t=this;t.render(),t.isBusy=!1},destroy:function(i){var n,s=t(i).data("px.parallax");for(s.$mirror.remove(),n=0;n<this.sliders.length;n+=1)this.sliders[n]==s&&this.sliders.splice(n,1);t(i).data("px.parallax",!1),0===this.sliders.length&&(t(e).off("scroll.px.parallax resize.px.parallax load.px.parallax"),this.isReady=!1,o.isSetup=!1)}});var r=t.fn.parallax;t.fn.parallax=s,t.fn.parallax.Constructor=o,t.fn.parallax.noConflict=function(){return t.fn.parallax=r,this},t(function(){t('[data-parallax="scroll"]').parallax()})}(jQuery,window,document),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){"use strict";var e=window.Slick||{};e=function(){function e(e,n){var o,s=this;s.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:t(e),appendDots:t(e),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(e,i){return t('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},s.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,
vendor: 10,131 bytes, lines 22-23
22sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},t.extend(s,s.initials),s.activeBreakpoint=null,s.animType=null,s.animProp=null,s.breakpoints=[],s.breakpointSettings=[],s.cssTransitions=!1,s.focussed=!1,s.interrupted=!1,s.hidden="hidden",s.paused=!0,s.positionProp=null,s.respondTo=null,s.rowCount=1,s.shouldClick=!0,s.$slider=t(e),s.$slidesCache=null,s.transformType=null,s.transitionType=null,s.visibilityChange="visibilitychange",s.windowWidth=0,s.windowTimer=null,o=t(e).data("slick")||{},s.options=t.extend({},s.defaults,n,o),s.currentSlide=s.options.initialSlide,s.originalSettings=s.options,"undefined"!=typeof document.mozHidden?(s.hidden="mozHidden",s.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(s.hidden="webkitHidden",s.visibilityChange="webkitvisibilitychange"),s.autoPlay=t.proxy(s.autoPlay,s),s.autoPlayClear=t.proxy(s.autoPlayClear,s),s.autoPlayIterator=t.proxy(s.autoPlayIterator,s),s.changeSlide=t.proxy(s.changeSlide,s),s.clickHandler=t.proxy(s.clickHandler,s),s.selectHandler=t.proxy(s.selectHandler,s),s.setPosition=t.proxy(s.setPosition,s),s.swipeHandler=t.proxy(s.swipeHandler,s),s.dragHandler=t.proxy(s.dragHandler,s),s.keyHandler=t.proxy(s.keyHandler,s),s.instanceUid=i++,s.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,s.registerBreakpoints(),s.init(!0)}var i=0;return e}(),e.prototype.activateADA=function(){var t=this;t.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},e.prototype.addSlide=e.prototype.slickAdd=function(e,i,n){var o=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=o.slideCount)return!1;o.unload(),"number"==typeof i?0===i&&0===o.$slides.length?t(e).appendTo(o.$slideTrack):n?t(e).insertBefore(o.$slides.eq(i)):t(e).insertAfter(o.$slides.eq(i)):n===!0?t(e).prependTo(o.$slideTrack):t(e).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each(function(e,i){t(i).attr("data-slick-index",e)}),o.$slidesCache=o.$slides,o.reinit()},e.prototype.animateHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.animate({height:e},t.options.speed)}},e.prototype.animateSlide=function(e,i){var n={},o=this;o.animateHeight(),o.options.rtl===!0&&o.options.vertical===!1&&(e=-e),o.transformsEnabled===!1?o.options.vertical===!1?o.$slideTrack.animate({left:e},o.options.speed,o.options.easing,i):o.$slideTrack.animate({top:e},o.options.speed,o.options.easing,i):o.cssTransitions===!1?(o.options.rtl===!0&&(o.currentLeft=-o.currentLeft),t({animStart:o.currentLeft}).animate({animStart:e},{duration:o.options.speed,easing:o.options.easing,step:function(t){t=Math.ceil(t),o.options.vertical===!1?(n[o.animType]="translate("+t+"px, 0px)",o.$slideTrack.css(n)):(n[o.animType]="translate(0px,"+t+"px)",o.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(o.applyTransition(),e=Math.ceil(e),o.options.vertical===!1?n[o.animType]="translate3d("+e+"px, 0px, 0px)":n[o.animType]="translate3d(0px,"+e+"px, 0px)",o.$slideTrack.css(n),i&&setTimeout(function(){o.disableTransition(),i.call()},o.options.speed))},e.prototype.getNavTarget=function(){var e=this,i=e.options.asNavFor;return i&&null!==i&&(i=t(i).not(e.$slider)),i},e.prototype.asNavFor=function(e){var i=this,n=i.getNavTarget();null!==n&&"object"==typeof n&&n.each(function(){var i=t(this).slick("getSlick");i.unslicked||i.slideHandler(e,!0)})},e.prototype.applyTransition=function(t){var e=this,i={};e.options.fade===!1?i[e.transitionType]=e.transformType+" "+e.options.speed+"ms "+e.options.cssEase:i[e.transitionType]="opacity "+e.options.speed+"ms "+e.options.cssEase,e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.autoPlay=function(){var t=this;t.autoPlayClear(),t.slideCount>t.options.slidesToShow&&(t.autoPlayTimer=setInterval(t.autoPlayIterator,t.options.autoplaySpeed))},e.prototype.autoPlayClear=function(){var t=this;t.autoPlayTimer&&clearInterval(t.autoPlayTimer)},e.prototype.autoPlayIterator=function(){var t=this,e=t.currentSlide+t.options.slidesToScroll;t.paused||t.interrupted||t.focussed||(t.options.infinite===!1&&(1===t.direction&&t.currentSlide+1===t.slideCount-1?t.direction=0:0===t.direction&&(e=t.currentSlide-t.options.slidesToScroll,t.currentSlide-1===0&&(t.direction=1))),t.slideHandler(e))},e.prototype.buildArrows=function(){var e=this;e.options.arrows===!0&&(e.$prevArrow=t(e.options.prevArrow).addClass("slick-arrow"),e.$nextArrow=t(e.options.nextArrow).addClass("slick-arrow"),e.slideCount>e.options.slidesToShow?(e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.prependTo(e.options.appendArrows),e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.appendTo(e.options.appendArrows),e.options.infinite!==!0&&e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},e.prototype.buildDots=function(){var e,i,n=this;if(n.options.dots===!0&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=t("<ul />").addClass(n.options.dotsClass),e=0;e<=n.getDotCount();e+=1)i.append(t("<li />").append(n.options.customPaging.call(this,n,e)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},e.prototype.buildOut=function(){var e=this;e.$slides=e.$slider.children(e.options.slide+":not(.slick-cloned)").addClass("slick-slide"),e.slideCount=e.$slides.length,e.$slides.each(function(e,i){t(i).attr("data-slick-index",e).data("originalStyling",t(i).attr("style")||"")}),e.$slider.addClass("slick-slider"),e.$slideTrack=0===e.slideCount?t('<div class="slick-track"/>').appendTo(e.$slider):e.$slides.wrapAll('<div class="slick-track"/>').parent(),e.$list=e.$slideTrack.wrap('<div class="slick-list"/>').parent(),e.$slideTrack.css("opacity",0),e.options.centerMode!==!0&&e.options.swipeToSlide!==!0||(e.options.slidesToScroll=1),t("img[data-lazy]",e.$slider).not("[src]").addClass("slick-loading"),e.setupInfinite(),e.buildArrows(),e.buildDots(),e.updateDots(),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.options.draggable===!0&&e.$list.addClass("draggable")},e.prototype.buildRows=function(){var t,e,i,n,o,s,r,a=this;if(n=document.createDocumentFragment(),s=a.$slider.children(),a.options.rows>0){for(r=a.options.slidesPerRow*a.options.rows,o=Math.ceil(s.length/r),t=0;t<o;t++){var l=document.createElement("div");for(e=0;e<a.options.rows;e++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var h=t*r+(e*a.options.slidesPerRow+i);s.get(h)&&c.appendChild(s.get(h))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},e.prototype.checkResponsive=function(e,i){var n,o,s,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||t(window).width();if("window"===r.respondTo?s=c:"slider"===r.respondTo?s=l:"min"===r.respondTo&&(s=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){o=null;for(n in r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(r.originalSettings.mobileFirst===!1?s<r.breakpoints[n]&&(o=r.breakpoints[n]):s>r.breakpoints[n]&&(o=r.breakpoints[n]));null!==o?null!==r.activeBreakpoint?(o!==r.activeBreakpoint||i)&&(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),
23e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):(r.activeBreakpoint=o,"unslick"===r.breakpointSettings[o]?r.unslick(o):(r.options=t.extend({},r.originalSettings,r.breakpointSettings[o]),e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e)),a=o):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,e===!0&&(r.currentSlide=r.options.initialSlide),r.refresh(e),a=o),e||a===!1||r.$slider.trigger("breakpoint",[r,a])}},e.prototype.changeSlide=function(e,i){var n,o,s,r=this,a=t(e.currentTarget);switch(a.is("a")&&e.preventDefault(),a.is("li")||(a=a.closest("li")),s=r.slideCount%r.options.slidesToScroll!==0,n=s?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,e.data.message){case"previous":o=0===n?r.options.slidesToScroll:r.options.slidesToShow-n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,i);break;case"next":o=0===n?r.options.slidesToScroll:n,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,i);break;case"index":var l=0===e.data.index?0:e.data.index||a.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(l),!1,i),a.children().trigger("focus");break;default:return}},e.prototype.checkNavigable=function(t){var e,i,n=this;if(e=n.getNavigableIndexes(),i=0,t>e[e.length-1])t=e[e.length-1];else for(var o in e){if(t<e[o]){t=i;break}i=e[o]}return t},e.prototype.cleanUpEvents=function(){var e=this;e.options.dots&&null!==e.$dots&&(t("li",e.$dots).off("click.slick",e.changeSlide).off("mouseenter.slick",t.proxy(e.interrupt,e,!0)).off("mouseleave.slick",t.proxy(e.interrupt,e,!1)),e.options.accessibility===!0&&e.$dots.off("keydown.slick",e.keyHandler)),e.$slider.off("focus.slick blur.slick"),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow&&e.$prevArrow.off("click.slick",e.changeSlide),e.$nextArrow&&e.$nextArrow.off("click.slick",e.changeSlide),e.options.accessibility===!0&&(e.$prevArrow&&e.$prevArrow.off("keydown.slick",e.keyHandler),e.$nextArrow&&e.$nextArrow.off("keydown.slick",e.keyHandler))),e.$list.off("touchstart.slick mousedown.slick",e.swipeHandler),e.$list.off("touchmove.slick mousemove.slick",e.swipeHandler),e.$list.off("touchend.slick mouseup.slick",e.swipeHandler),e.$list.off("touchcancel.slick mouseleave.
23slick",e.swipeHandler),e.$list.off("click.slick",e.clickHandler),t(document).off(e.visibilityChange,e.visibility),e.cleanUpSlideEvents(),e.options.accessibility===!0&&e.$list.off("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().off("click.slick",e.selectHandler),t(window).off("orientationchange.slick.slick-"+e.instanceUid,e.orientationChange),t(window).off("resize.slick.slick-"+e.instanceUid,e.resize),t("[draggable!=true]",e.$slideTrack).off("dragstart",e.preventDefault),t(window).off("load.slick.slick-"+e.instanceUid,e.setPosition)},e.prototype.cleanUpSlideEvents=function(){var e=this;e.$list.off("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.off("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.cleanUpRows=function(){var t,e=this;e.options.rows>0&&(t=e.$slides.children().children(),t.removeAttr("style"),e.$slider.empty().append(t))},e.prototype.clickHandler=function(t){var e=this;e.shouldClick===!1&&(t.stopImmediatePropagation(),t.stopPropagation(),t.preventDefault())},e.prototype.destroy=function(e){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),t(".slick-cloned",i.$slider).detach(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){t(this).attr("style",t(this).data("originalStyling"))}),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,e||i.$slider.trigger("destroy",[i])},e.prototype.disableTransition=function(t){var e=this,i={};i[e.transitionType]="",e.options.fade===!1?e.$slideTrack.css(i):e.$slides.eq(t).css(i)},e.prototype.fadeSlide=function(t,e){var i=this;i.cssTransitions===!1?(i.$slides.eq(t).css({zIndex:i.options.zIndex}),i.$slides.eq(t).animate({opacity:1},i.options.speed,i.options.easing,e)):(i.applyTransition(t),i.$slides.eq(t).css({opacity:1,zIndex:i.options.zIndex}),e&&setTimeout(function(){i.disableTransition(t),e.call()},i.options.speed))},e.prototype.fadeSlideOut=function(t){var e=this;e.cssTransitions===!1?e.$slides.eq(t).animate({opacity:0,zIndex:e.options.zIndex-2},e.options.speed,e.options.easing):(e.applyTransition(t),e.$slides.eq(t).css({opacity:0,zIndex:e.options.zIndex-2}))},e.prototype.filterSlides=e.prototype.slickFilter=function(t){var e=this;null!==t&&(e.$slidesCache=e.$slides,e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.filter(t).appendTo(e.$slideTrack),e.reinit())},e.prototype.focusHandler=function(){var e=this;e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",function(i){i.stopImmediatePropagation();var n=t(this);setTimeout(function(){e.options.pauseOnFocus&&(e.focussed=n.is(":focus"),e.autoPlay())},0)})},e.prototype.getCurrent=e.prototype.slickCurrentSlide=function(){var t=this;return t.currentSlide},e.prototype.getDotCount=function(){var t=this,e=0,i=0,n=0;if(t.options.infinite===!0)if(t.slideCount<=t.options.slidesToShow)++n;else for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else if(t.options.centerMode===!0)n=t.slideCount;else if(t.options.asNavFor)for(;e<t.slideCount;)++n,e=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;else n=1+Math.ceil((t.slideCount-t.options.slidesToShow)/t.options.slidesToScroll);return n-1},e.prototype.getLeft=function(t){var e,i,n,o,s=this,r=0;return s.slideOffset=0,i=s.$slides.first().outerHeight(!0),s.options.infinite===!0?(s.slideCount>s.options.slidesToShow&&(s.slideOffset=s.slideWidth*s.options.slidesToShow*-1,o=-1,s.options.vertical===!0&&s.options.centerMode===!0&&(2===s.options.slidesToShow?o=-1.5:1===s.options.slidesToShow&&(o=-2)),r=i*s.options.slidesToShow*o),s.slideCount%s.options.slidesToScroll!==0&&t+s.options.slidesToScroll>s.slideCount&&s.slideCount>s.options.slidesToShow&&(t>s.slideCount?(s.slideOffset=(s.options.slidesToShow-(t-s.slideCount))*s.slideWidth*-1,r=(s.options.slidesToShow-(t-s.slideCount))*i*-1):(s.slideOffset=s.slideCount%s.options.slidesToScroll*s.slideWidth*-1,r=s.slideCount%s.options.slidesToScroll*i*-1))):t+s.options.slidesToShow>s.slideCount&&(s.slideOffset=(t+s.options.slidesToShow-s.slideCount)*s.slideWidth,r=(t+s.options.slidesToShow-s.slideCount)*i),s.slideCount<=s.options.slidesToShow&&(s.slideOffset=0,r=0),s.options.centerMode===!0&&s.slideCount<=s.options.slidesToShow?s.slideOffset=s.slideWidth*Math.floor(s.options.slidesToShow)/2-s.slideWidth*s.slideCount/2:s.options.centerMode===!0&&s.options.infinite===!0?s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)-s.slideWidth:s.options.centerMode===!0&&(s.slideOffset=0,s.slideOffset+=s.slideWidth*Math.floor(s.options.slidesToShow/2)),e=s.options.vertical===!1?t*s.slideWidth*-1+s.slideOffset:t*i*-1+r,s.options.variableWidth===!0&&(n=s.slideCount<=s.options.slidesToShow||s.options.infinite===!1?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow),e=s.options.rtl===!0?n[0]?(s.$slideTrack.width()-n[0].offsetLeft-n.width())*-1:0:n[0]?n[0].offsetLeft*-1:0,s.options.centerMode===!0&&(n=s.slideCount<=s.options.slidesToShow||s.options.infinite===!1?s.$slideTrack.children(".slick-slide").eq(t):s.$slideTrack.children(".slick-slide").eq(t+s.options.slidesToShow+1),e=s.options.rtl===!0?n[0]?(s.$slideTrack.width()-n[0].offsetLeft-n.width())*-1:0:n[0]?n[0].offsetLeft*-1:0,e+=(s.$list.width()-n.outerWidth())/2)),e},e.prototype.getOption=e.prototype.slickGetOption=function(t){var e=this;return e.options[t]},e.prototype.getNavigableIndexes=function(){var t,e=this,i=0,n=0,o=[];for(e.options.infinite===!1?t=e.slideCount:(i=e.options.slidesToScroll*-1,n=e.options.slidesToScroll*-1,t=2*e.slideCount);i<t;)o.push(i),i=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;return o},e.prototype.getSlick=function(){return this},e.prototype.getSlideCount=function(){var e,i,n,o=this;return n=o.options.centerMode===!0?o.slideWidth*Math.floor(o.options.slidesToShow/2):0,o.options.swipeToSlide===!0?(o.$slideTrack.find(".slick-slide").each(function(e,s){if(s.offsetLeft-n+t(s).outerWidth()/2>o.swipeLeft*-1)return i=s,!1}),e=Math.abs(t(i).attr("data-slick-index")-o.currentSlide)||1):o.options.slidesToScroll},e.prototype.goTo=e.prototype.slickGoTo=function(t,e){var i=this;
vendor: 22,982 bytes, lines 23-24
23i.changeSlide({data:{message:"index",index:parseInt(t)}},e)},e.prototype.init=function(e){var i=this;t(i.$slider).hasClass("slick-initialized")||(t(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),e&&i.$slider.trigger("init",[i]),i.options.accessibility===!0&&i.initADA(),i.options.autoplay&&(i.paused=!1,i.autoPlay())},e.prototype.initADA=function(){var e=this,i=Math.ceil(e.slideCount/e.options.slidesToShow),n=e.getNavigableIndexes().filter(function(t){return t>=0&&t<e.slideCount});e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==e.$dots&&(e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(i){var o=n.indexOf(i);if(t(this).attr({role:"tabpanel",id:"slick-slide"+e.instanceUid+i,tabindex:-1}),o!==-1){var s="slick-slide-control"+e.instanceUid+o;t("#"+s).length&&t(this).attr({"aria-describedby":s})}}),e.$dots.attr("role","tablist").find("li").each(function(o){var s=n[o];t(this).attr({role:"presentation"}),t(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+e.instanceUid+o,"aria-controls":"slick-slide"+e.instanceUid+s,"aria-label":o+1+" of "+i,"aria-selected":null,tabindex:"-1"})}).eq(e.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var o=e.currentSlide,s=o+e.options.slidesToShow;o<s;o++)e.options.focusOnChange?e.$slides.eq(o).attr({tabindex:"0"}):e.$slides.eq(o).removeAttr("tabindex");e.activateADA()},e.prototype.initArrowEvents=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},t.changeSlide),t.$nextArrow.off("click.slick").on("click.slick",{message:"next"},t.changeSlide),t.options.accessibility===!0&&(t.$prevArrow.on("keydown.slick",t.keyHandler),t.$nextArrow.on("keydown.slick",t.keyHandler)))},e.prototype.initDotEvents=function(){var e=this;e.options.dots===!0&&e.slideCount>e.options.slidesToShow&&(t("li",e.$dots).on("click.slick",{message:"index"},e.changeSlide),e.options.accessibility===!0&&e.$dots.on("keydown.slick",e.keyHandler)),e.options.dots===!0&&e.options.pauseOnDotsHover===!0&&e.slideCount>e.options.slidesToShow&&t("li",e.$dots).on("mouseenter.slick",t.proxy(e.interrupt,e,!0)).on("mouseleave.slick",t.proxy(e.interrupt,e,!1))},e.prototype.initSlideEvents=function(){var e=this;e.options.pauseOnHover&&(e.$list.on("mouseenter.slick",t.proxy(e.interrupt,e,!0)),e.$list.on("mouseleave.slick",t.proxy(e.interrupt,e,!1)))},e.prototype.initializeEvents=function(){var e=this;e.initArrowEvents(),e.initDotEvents(),e.initSlideEvents(),e.$list.on("touchstart.slick mousedown.slick",{action:"start"},e.swipeHandler),e.$list.on("touchmove.slick mousemove.slick",{action:"move"},e.swipeHandler),e.$list.on("touchend.slick mouseup.slick",{action:"end"},e.swipeHandler),e.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},e.swipeHandler),e.$list.on("click.slick",e.clickHandler),t(document).on(e.visibilityChange,t.proxy(e.visibility,e)),e.options.accessibility===!0&&e.$list.on("keydown.slick",e.keyHandler),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),t(window).on("orientationchange.slick.slick-"+e.instanceUid,t.proxy(e.orientationChange,e)),t(window).on("resize.slick.slick-"+e.instanceUid,t.proxy(e.resize,e)),t("[draggable!=true]",e.$slideTrack).on("dragstart",e.preventDefault),t(window).on("load.slick.slick-"+e.instanceUid,e.setPosition),t(e.setPosition)},e.prototype.initUI=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.show(),t.$nextArrow.show()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.show()},e.prototype.keyHandler=function(t){var e=this;t.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===t.keyCode&&e.options.accessibility===!0?e.changeSlide({data:{message:e.options.rtl===!0?"next":"previous"}}):39===t.keyCode&&e.options.accessibility===!0&&e.changeSlide({data:{message:e.options.rtl===!0?"previous":"next"}}))},e.prototype.lazyLoad=function(){function e(e){t("img[data-lazy]",e).each(function(){var e=t(this),i=t(this).attr("data-lazy"),n=t(this).attr("data-srcset"),o=t(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){e.animate({opacity:0},100,function(){n&&(e.attr("srcset",n),o&&e.attr("sizes",o)),e.attr("src",i).animate({opacity:1},200,function(){e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")}),r.$slider.trigger("lazyLoaded",[r,e,i])})},s.onerror=function(){e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,e,i])},s.src=i})}var i,n,o,s,r=this;if(r.options.centerMode===!0?r.options.infinite===!0?(o=r.currentSlide+(r.options.slidesToShow/2+1),s=o+r.options.slidesToShow+2):(o=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),s=2+(r.options.slidesToShow/2+1)+r.currentSlide):(o=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,s=Math.ceil(o+r.options.slidesToShow),r.options.fade===!0&&(o>0&&o--,s<=r.slideCount&&s++)),i=r.$slider.find(".slick-slide").slice(o,s),"anticipated"===r.options.lazyLoad)for(var a=o-1,l=s,c=r.$slider.find(".slick-slide"),h=0;h<r.options.slidesToScroll;h++)a<0&&(a=r.slideCount-1),i=i.add(c.eq(a)),i=i.add(c.eq(l)),a--,l++;e(i),r.slideCount<=r.options.slidesToShow?(n=r.$slider.find(".slick-slide"),e(n)):r.currentSlide>=r.slideCount-r.options.slidesToShow?(n=r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow),e(n)):0===r.currentSlide&&(n=r.$slider.find(".slick-cloned").slice(r.options.slidesToShow*-1),e(n))},e.prototype.loadSlider=function(){var t=this;t.setPosition(),t.$slideTrack.css({opacity:1}),t.$slider.removeClass("slick-loading"),t.initUI(),"progressive"===t.options.lazyLoad&&t.progressiveLazyLoad()},e.prototype.next=e.prototype.slickNext=function(){var t=this;t.changeSlide({data:{message:"next"}})},e.prototype.orientationChange=function(){var t=this;t.checkResponsive(),t.setPosition()},e.prototype.pause=e.prototype.slickPause=function(){var t=this;t.autoPlayClear(),t.paused=!0},e.prototype.play=e.prototype.slickPlay=function(){var t=this;t.autoPlay(),t.options.autoplay=!0,t.paused=!1,t.focussed=!1,t.interrupted=!1},e.prototype.postSlide=function(e){var i=this;if(!i.unslicked&&(i.$slider.trigger("afterChange",[i,e]),i.animating=!1,i.slideCount>i.options.slidesToShow&&i.setPosition(),i.swipeLeft=null,i.options.autoplay&&i.autoPlay(),i.options.accessibility===!0&&(i.initADA(),i.options.focusOnChange))){var n=t(i.$slides.get(i.currentSlide));n.attr("tabindex",0).focus()}},e.prototype.prev=e.prototype.slickPrev=function(){var t=this;t.changeSlide({data:{message:"previous"}})},e.prototype.preventDefault=function(t){t.preventDefault()},e.prototype.progressiveLazyLoad=function(e){e=e||1;var i,n,o,s,r,a=this,l=t("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),o=i.attr("data-srcset"),s=i.attr("data-sizes")||a.$slider.attr("data-sizes"),r=document.createElement("img"),r.onload=function(){o&&(i.attr("srcset",o),s&&i.attr("sizes",s)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),a.options.adaptiveHeight===!0&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){e<3?setTimeout(function(){a.progressiveLazyLoad(e+1)},500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},e.prototype.refresh=function(e){var i,n,o=this;n=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>n&&(o.currentSlide=n),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),i=o.currentSlide,o.destroy(!0),t.extend(o,o.initials,{currentSlide:i}),o.init(),e||o.changeSlide({data:{message:"index",index:i}},!1)},e.prototype.registerBreakpoints=function(){var e,i,n,o=this,s=o.options.responsive||null;if("array"===t.type(s)&&s.length){o.respondTo=o.options.respondTo||"window";for(e in s)if(n=o.breakpoints.length-1,s.hasOwnProperty(e)){for(i=s[e].breakpoint;n>=0;)o.breakpoints[n]&&o.breakpoints[n]===i&&o.breakpoints.splice(n,1),n--;o.breakpoints.push(i),o.breakpointSettings[i]=s[e].settings}o.breakpoints.sort(function(t,e){return o.options.mobileFirst?t-e:e-t})}},e.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.options.focusOnSelect===!0&&t(e.$slideTrack).children().on("click.slick",e.selectHandler),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},e.prototype.resize=function(){var e=this;t(window).width()!==e.windowWidth&&(clearTimeout(e.windowDelay),e.windowDelay=window.setTimeout(function(){e.windowWidth=t(window).width(),e.checkResponsive(),e.unslicked||e.setPosition()},50))},e.prototype.removeSlide=e.prototype.slickRemove=function(t,e,i){var n=this;return"boolean"==typeof t?(e=t,t=e===!0?0:n.slideCount-1):t=e===!0?--t:t,!(n.slideCount<1||t<0||t>n.slideCount-1)&&(n.unload(),i===!0?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(t).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,void n.reinit())},e.prototype.setCSS=function(t){var e,i,n=this,o={};n.options.rtl===!0&&(t=-t),e="left"==n.positionProp?Math.ceil(t)+"px":"0px",i="top"==n.positionProp?Math.ceil(t)+"px":"0px",o[n.positionProp]=t,n.transformsEnabled===!1?n.$slideTrack.css(o):(o={},n.cssTransitions===!1?(o[n.animType]="translate("+e+", "+i+")",n.$slideTrack.css(o)):(o[n.animType]="translate3d("+e+", "+i+", 0px)",n.$slideTrack.css(o)))},e.prototype.setDimensions=function(){var t=this;t.options.vertical===!1?t.options.centerMode===!0&&t.$list.css({padding:"0px "+t.options.centerPadding}):(t.$list.height(t.$slides.first().outerHeight(!0)*t.options.slidesToShow),t.options.centerMode===!0&&t.$list.css({padding:t.options.centerPadding+" 0px"})),t.listWidth=t.$list.width(),t.listHeight=t.$list.height(),t.options.vertical===!1&&t.options.variableWidth===!1?(t.slideWidth=Math.ceil(t.listWidth/t.options.slidesToShow),t.$slideTrack.width(Math.ceil(t.slideWidth*t.$slideTrack.children(".slick-slide").length))):t.options.variableWidth===!0?t.$slideTrack.width(5e3*t.slideCount):(t.slideWidth=Math.ceil(t.listWidth),t.$slideTrack.height(Math.ceil(t.$slides.first().outerHeight(!0)*t.$slideTrack.children(".slick-slide").length)));var e=t.$slides.first().outerWidth(!0)-t.$slides.first().width();t.options.variableWidth===!1&&t.$slideTrack.children(".slick-slide").width(t.slideWidth-e)},e.prototype.setFade=function(){var e,i=this;i.$slides.each(function(n,o){e=i.slideWidth*n*-1,i.options.rtl===!0?t(o).css({position:"relative",right:e,top:0,zIndex:i.options.zIndex-2,opacity:0}):t(o).css({position:"relative",left:e,top:0,zIndex:i.options.zIndex-2,opacity:0})}),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},e.prototype.setHeight=function(){var t=this;if(1===t.options.slidesToShow&&t.options.adaptiveHeight===!0&&t.options.vertical===!1){var e=t.$slides.eq(t.currentSlide).outerHeight(!0);t.$list.css("height",e)}},e.prototype.setOption=e.prototype.slickSetOption=function(){var e,i,n,o,s,r=this,a=!1;if("object"===t.type(arguments[0])?(n=arguments[0],a=arguments[1],s="multiple"):"string"===t.type(arguments[0])&&(n=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===t.type(arguments[1])?s="responsive":"undefined"!=typeof arguments[1]&&(s="single")),"single"===s)r.options[n]=o;else if("multiple"===s)t.each(n,function(t,e){r.options[t]=e});else if("responsive"===s)for(i in o)if("array"!==t.type(r.options.responsive))r.options.responsive=[o[i]];else{for(e=r.options.responsive.length-1;e>=0;)r.options.responsive[e].breakpoint===o[i].breakpoint&&r.options.responsive.splice(e,1),e--;r.options.responsive.push(o[i])}a&&(r.unload(),r.reinit())},e.prototype.setPosition=function(){var t=this;t.setDimensions(),t.setHeight(),t.options.fade===!1?t.setCSS(t.getLeft(t.currentSlide)):t.setFade(),t.$slider.trigger("setPosition",[t])},e.prototype.setProps=function(){var t=this,e=document.body.style;t.positionProp=t.options.vertical===!0?"top":"left","top"===t.positionProp?t.$slider.addClass("slick-vertical"):t.$slider.removeClass("slick-vertical"),void 0===e.WebkitTransition&&void 0===e.MozTransition&&void 0===e.msTransition||t.options.useCSS===!0&&(t.cssTransitions=!0),t.options.fade&&("number"==typeof t.options.zIndex?t.options.zIndex<3&&(t.options.zIndex=3):t.options.zIndex=t.defaults.zIndex),void 0!==e.OTransform&&(t.animType="OTransform",t.transformType="-o-transform",t.transitionType="OTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.MozTransform&&(t.animType="MozTransform",t.transformType="-moz-transform",t.transitionType="MozTransition",void 0===e.perspectiveProperty&&void 0===e.MozPerspective&&(t.animType=!1)),void 0!==e.webkitTransform&&(t.animType="webkitTransform",t.transformType="-webkit-transform",t.transitionType="webkitTransition",void 0===e.perspectiveProperty&&void 0===e.webkitPerspective&&(t.animType=!1)),void 0!==e.msTransform&&(t.animType="msTransform",t.transformType="-ms-transform",t.transitionType="msTransition",void 0===e.msTransform&&(t.animType=!1)),void 0!==e.transform&&t.animType!==!1&&(t.animType="transform",t.transformType="transform",t.transitionType="transition"),t.transformsEnabled=t.options.useTransform&&null!==t.animType&&t.animType!==!1},e.prototype.setSlideClasses=function(t){var e,i,n,o,s=this;if(i=s.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),s.$slides.eq(t).addClass("slick-current"),s.options.centerMode===!0){var r=s.options.slidesToShow%2===0?1:0;e=Math.floor(s.options.slidesToShow/2),s.options.infinite===!0&&(t>=e&&t<=s.slideCount-1-e?s.$slides.slice(t-e+r,t+e+1).addClass("slick-active").attr("aria-hidden","false"):(n=s.options.slidesToShow+t,i.slice(n-e+1+r,n+e+2).addClass("slick-active").attr("aria-hidden","false")),0===t?i.eq(i.length-1-s.options.slidesToShow).addClass("slick-center"):t===s.slideCount-1&&i.eq(s.options.slidesToShow).addClass("slick-center")),s.$slides.eq(t).addClass("slick-center")}else t>=0&&t<=s.slideCount-s.options.slidesToShow?s.$slides.slice(t,t+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):i.length<=s.options.slidesToShow?i.addClass("slick-active").attr("aria-hidden","false"):(o=s.slideCount%s.options.slidesToShow,n=s.options.infinite===!0?s.options.slidesToShow+t:t,s.options.slidesToShow==s.options.slidesToScroll&&s.slideCount-t<s.options.slidesToShow?i.slice(n-(s.options.slidesToShow-o),n+o).addClass("slick-active").attr("aria-hidden","false"):i.slice(n,n+s.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==s.options.lazyLoad&&"anticipated"!==s.options.lazyLoad||s.lazyLoad()},e.prototype.setupInfinite=function(){var e,i,n,o=this;if(o.options.fade===!0&&(o.options.centerMode=!1),o.options.infinite===!0&&o.options.fade===!1&&(i=null,o.slideCount>o.options.slidesToShow)){for(n=o.options.centerMode===!0?o.options.slidesToShow+1:o.options.slidesToShow,e=o.slideCount;e>o.slideCount-n;e-=1)i=e-1,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(e=0;e<n+o.slideCount;e+=1)i=e,t(o.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each(function(){t(this).attr("id","")})}},e.prototype.interrupt=function(t){var e=this;t||e.autoPlay(),e.interrupted=t},e.prototype.selectHandler=function(e){var i=this,n=t(e.target).is(".slick-slide")?t(e.target):t(e.target).parents(".slick-slide"),o=parseInt(n.attr("data-slick-index"));return o||(o=0),i.slideCount<=i.options.slidesToShow?void i.slideHandler(o,!1,!0):void i.slideHandler(o)},e.prototype.slideHandler=function(t,e,i){var n,o,s,r,a,l=null,c=this;if(e=e||!1,!(c.animating===!0&&c.options.waitForAnimate===!0||c.options.fade===!0&&c.currentSlide===t))return e===!1&&c.asNavFor(t),n=t,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,c.options.infinite===!1&&c.options.centerMode===!1&&(t<0||t>c.getDotCount()*c.options.slidesToScroll)?void(c.options.fade===!1&&(n=c.currentSlide,i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n))):c.options.infinite===!1&&c.options.centerMode===!0&&(t<0||t>c.slideCount-c.options.slidesToScroll)?void(c.options.fade===!1&&(n=c.currentSlide,i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,function(){c.postSlide(n)}):c.postSlide(n))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=n<0?c.slideCount%c.options.slidesToScroll!==0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!==0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),s=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=c.getNavTarget(),a=a.slick("getSlick"),a.slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide)),c.updateDots(),c.updateArrows(),c.options.fade===!0?(i!==!0?(c.fadeSlideOut(s),c.fadeSlide(o,function(){c.postSlide(o)})):c.postSlide(o),void c.animateHeight()):void(i!==!0&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,function(){c.postSlide(o)}):c.postSlide(o)))},e.prototype.startLoad=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow.hide(),t.$nextArrow.hide()),t.options.dots===!0&&t.slideCount>t.options.slidesToShow&&t.$dots.hide(),t.$slider.addClass("slick-loading")},e.prototype.swipeDirection=function(){var t,e,i,n,o=this;return t=o.touchObject.startX-o.touchObject.curX,e=o.touchObject.startY-o.touchObject.curY,i=Math.atan2(e,t),n=Math.round(180*i/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0?o.options.rtl===!1?"left":"right":n<=360&&n>=315?o.options.rtl===!1?"left":"right":n>=135&&n<=225?o.options.rtl===!1?"right":"left":o.options.verticalSwiping===!0?n>=35&&n<=135?"down":"up":"vertical"},e.prototype.swipeEnd=function(t){var e,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(n.touchObject.edgeHit===!0&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},e.prototype.swipeHandler=function(t){var e=this;if(!(e.options.swipe===!1||"ontouchend"in document&&e.options.swipe===!1||e.options.draggable===!1&&t.type.indexOf("mouse")!==-1))switch(e.touchObject.fingerCount=t.originalEvent&&void 0!==t.originalEvent.touches?t.originalEvent.touches.length:1,e.touchObject.minSwipe=e.listWidth/e.options.touchThreshold,e.options.verticalSwiping===!0&&(e.touchObject.minSwipe=e.listHeight/e.options.touchThreshold),t.data.action){case"start":e.swipeStart(t);break;case"move":e.swipeMove(t);break;case"end":e.swipeEnd(t)}},e.prototype.swipeMove=function(t){var e,i,n,o,s,r,a=this;return s=void 0!==t.originalEvent?t.originalEvent.touches:null,!(!a.dragging||a.scrolling||s&&1!==s.length)&&(e=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==s?s[0].pageX:t.clientX,a.touchObject.curY=void 0!==s?s[0].pageY:t.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(a.options.verticalSwiping===!0&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==t.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,t.preventDefault()),o=(a.options.rtl===!1?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),a.options.verticalSwiping===!0&&(o=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,a.options.infinite===!1&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),a.options.vertical===!1?a.swipeLeft=e+n*o:a.swipeLeft=e+n*(a.$list.height()/a.listWidth)*o,a.options.verticalSwiping===!0&&(a.swipeLeft=e+n*o),a.options.fade!==!0&&a.options.touchMove!==!1&&(a.animating===!0?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},e.prototype.swipeStart=function(t){var e,i=this;return i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow?(i.touchObject={},!1):(void 0!==t.originalEvent&&void 0!==t.originalEvent.touches&&(e=t.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==e?e.pageX:t.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==e?e.pageY:t.clientY,void(i.dragging=!0))},e.prototype.unfilterSlides=e.prototype.slickUnfilter=function(){var t=this;null!==t.$slidesCache&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),
24t.$slidesCache.appendTo(t.$slideTrack),t.reinit())},e.prototype.unload=function(){var e=this;t(".slick-cloned",e.$slider).remove(),e.$dots&&e.$dots.remove(),e.$prevArrow&&e.htmlExpr.test(e.options.prevArrow)&&e.$prevArrow.remove(),e.$nextArrow&&e.htmlExpr.test(e.options.nextArrow)&&e.$nextArrow.remove(),e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
24,e.prototype.unslick=function(t){var e=this;e.$slider.trigger("unslick",[e,t]),e.destroy()},e.prototype.updateArrows=function(){var t,e=this;t=Math.floor(e.options.slidesToShow/2),e.options.arrows===!0&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-e.options.slidesToShow&&e.options.centerMode===!1?(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):e.currentSlide>=e.slideCount-1&&e.options.centerMode===!0&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},e.prototype.updateDots=function(){var t=this;null!==t.$dots&&(t.$dots.find("li").removeClass("slick-active").end(),t.$dots.find("li").eq(Math.floor(t.currentSlide/t.options.slidesToScroll)).addClass("slick-active"))},e.prototype.visibility=function(){var t=this;t.options.autoplay&&(document[t.hidden]?t.interrupted=!0:t.interrupted=!1)},t.fn.slick=function(){var t,i,n=this,o=arguments[0],s=Array.prototype.slice.call(arguments,1),r=n.length;for(t=0;t<r;t++)if("object"==typeof o||"undefined"==typeof o?n[t].slick=new e(n[t],o):i=n[t].slick[o].apply(n[t].slick,s),"undefined"!=typeof i)return i;return n}}),function(t,e){"function"==typeof define&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("jquery")):t.jQueryBridget=e(t,t.jQuery)}(window,function(t,e){"use strict";function i(i,s,a){function l(t,e,n){var o,s="$()."+i+'("'+e+'")';return t.each(function(t,l){var c=a.data(l,i);if(!c)return void r(i+" not initialized. Cannot call methods, i.e. "+s);var h=c[e];if(!h||"_"==e.charAt(0))return void r(s+" is not a valid method");var d=h.apply(c,n);o=void 0===o?d:o}),void 0!==o?o:t}function c(t,e){t.each(function(t,n){var o=a.data(n,i);o?(o.option(e),o._init()):(o=new s(n,e),a.data(n,i,o))})}a=a||e||t.jQuery,a&&(s.prototype.option||(s.prototype.option=function(t){a.isPlainObject(t)&&(this.options=a.extend(!0,this.options,t))}),a.fn[i]=function(t){if("string"==typeof t){var e=o.call(arguments,1);return l(this,t,e)}return c(this,t),this},n(a))}function n(t){!t||t&&t.bridget||(t.bridget=i)}var o=Array.prototype.slice,s=t.console,r="undefined"==typeof s?function(){}:function(t){s.error(t)};return n(e||t.jQuery),i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o],r=n&&n[s];r&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"function"==typeof define&&define.amd?define("get-size/get-size",e):"object"==typeof module&&module.exports?module.exports=e():t.getSize=e()}(window,function(){"use strict";function t(t){var e=parseFloat(t),i=t.indexOf("%")==-1&&!isNaN(e);return i&&e}function e(){}function i(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<c;e++){var i=l[e];t[i]=0}return t}function n(t){var e=getComputedStyle(t);return e||a("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}function o(){if(!h){h=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var o=n(e);r=200==Math.round(t(o.width)),s.isBoxSizeOuter=r,i.removeChild(e)}}function s(e){if(o(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var s=n(e);if("none"==s.display)return i();var a={};a.width=e.offsetWidth,a.height=e.offsetHeight;for(var h=a.isBorderBox="border-box"==s.boxSizing,d=0;d<c;d++){var u=l[d],p=s[u],f=parseFloat(p);a[u]=isNaN(f)?0:f}var g=a.paddingLeft+a.paddingRight,m=a.paddingTop+a.paddingBottom,v=a.marginLeft+a.marginRight,y=a.marginTop+a.marginBottom,b=a.borderLeftWidth+a.borderRightWidth,x=a.borderTopWidth+a.borderBottomWidth,k=h&&r,w=t(s.width);w!==!1&&(a.width=w+(k?0:g+b));var T=t(s.height);return T!==!1&&(a.height=T+(k?0:m+x)),a.innerWidth=a.width-(g+b),a.innerHeight=a.height-(m+x),a.outerWidth=a.width+v,a.outerHeight=a.height+y,a}}var r,a="undefined"==typeof console?e:function(t){console.error(t)},l=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],c=l.length,h=!1;return s}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("desandro-matches-selector/matches-selector",e):"object"==typeof module&&module.exports?module.exports=e():t.matchesSelector=e()}(window,function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i],o=n+"MatchesSelector";if(t[o])return o}}();return function(e,i){return e[t](i)}}),function(t,e){"function"==typeof define&&define.amd?define("fizzy-ui-utils/utils",["de
24sandro-matches-selector/matches-selector"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("desandro-matches-selector")):t.fizzyUIUtils=e(t,t.matchesSelector)}(window,function(t,e){var i={};i.extend=function(t,e){for(var i in e)t[i]=e[i];return t},i.modulo=function(t,e){return(t%e+e)%e};var n=Array.prototype.slice;i.makeArray=function(t){if(Array.isArray(t))return t;if(null===t||void 0===t)return[];var e="object"==typeof t&&"number"==typeof t.length;return e?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);i!=-1&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var o=[];return t.forEach(function(t){if(t instanceof HTMLElement){if(!n)return void o.push(t);e(t,n)&&o.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)o.push(i[s])}}),o},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],o=e+"Timeout";t.prototype[e]=function(){var t=this[o];clearTimeout(t);var e=arguments,s=this;this[o]=setTimeout(function(){n.apply(s,e),delete s[o]},i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,function(t,e,i){return e+"-"+i}).toLowerCase()};var o=t.console;return i.htmlInit=function(e,n){i.docReady(function(){var s=i.toDashed(n),r="data-"+s,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+s),c=i.makeArray(a).concat(i.makeArray(l)),h=r+"-options",d=t.jQuery;c.forEach(function(t){var i,s=t.getAttribute(r)||t.getAttribute(h);try{i=s&&JSON.parse(s)}catch(a){return void(o&&o.error("Error parsing "+r+" on "+t.className+": "+a))}var l=new e(t,i);d&&d.data(t,n,l)})})},i}),function(t,e){"function"==typeof define&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("ev-emitter"),require("get-size")):(t.Outlayer={},t.Outlayer.Item=e(t.EvEmitter,t.getSize))}(window,function(t,e){"use strict";function i(t){for(var e in t)return!1;return e=null,!0}function n(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}function o(t){return t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var s=document.documentElement.style,r="string"==typeof s.transition?"transition":"WebkitTransition",a="string"==typeof s.transform?"transform":"WebkitTransform",l={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[r],c={transform:a,transition:r,transitionDuration:r+"Duration",transitionProperty:r+"Property",transitionDelay:r+"Delay"},h=n.prototype=Object.create(t.prototype);h.constructor=n,h._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},h.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},h.getSize=function(){this.size=e(this.element)},h.css=function(t){var e=this.element.style;for(var i in t){var n=c[i]||i;e[n]=t[i]}},h.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],o=t[i?"top":"bottom"],s=parseFloat(n),r=parseFloat(o),a=this.layout.size;n.indexOf("%")!=-1&&(s=s/100*a.width),o.indexOf("%")!=-1&&(r=r/100*a.height),s=isNaN(s)?0:s,r=isNaN(r)?0:r,s-=e?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=r},h.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),o=i?"paddingLeft":"paddingRight",s=i?"left":"right",r=i?"right":"left",a=this.position.x+t[o];e[s]=this.getXValue(a),e[r]="";var l=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",h=n?"bottom":"top",d=this.position.y+t[l];e[c]=this.getYValue(d),e[h]="",this.css(e),this.emitEvent("layout",[this])},h.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},h.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},h._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,o=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),o&&!this.isTransitioning)return void this.layoutPosition();var s=t-i,r=e-n,a={};a.transform=this.getTranslate(s,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},h.getTranslate=function(t,e){var i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return t=i?t:-t,e=n?e:-e,"translate3d("+t+"px, "+e+"px, 0)"},h.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},h.moveTo=h._transitionTo,h.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},h._nonTransition=function(t){this.css(t.to),t.isCleaning&&this._removeStyles(t.to);for(var e in t.onTransitionEnd)t.onTransitionEnd[e].call(this)},h.transition=function(t){if(!parseFloat(this.layout.options.transitionDuration))return void this._nonTransition(t);var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);if(t.from){this.css(t.from);var n=this.element.offsetHeight;n=null}this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0};var d="opacity,"+o(a);h.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:d,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(l,this,!1)}},h.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},h.onotransitionend=function(t){this.ontransitionend(t)};var u={"-webkit-transform":"transform"};h.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,n=u[t.propertyName]||t.propertyName;if(delete e.ingProperties[n],i(e.ingProperties)&&this.disableTransition(),n in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[n]),n in e.onEnd){var o=e.onEnd[n];o.call(this),delete e.onEnd[n]}this.emitEvent("transitionEnd",[this])}},h.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(l,this,!1),this.isTransitioning=!1},h._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var p={transitionProperty:"",transitionDuration:"",transitionDelay:""};return h.removeTransitionStyles=function(){this.css(p)},h.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},h.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},h.remove=function(){return r&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",function(){this.removeElem()}),void this.hide()):void this.removeElem()},h.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("visibleStyle");e[i]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},h.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},h.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},h.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={},i=this.getHideRevealTransitionEndProperty("hiddenStyle");e[i]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},h.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},h.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},n}),function(t,e){"use strict";"function"==typeof define&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(i,n,o,s){return e(t,i,n,o,s)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):t.Outlayer=e(t,t.EvEmitter,t.getSize,t.f
vendor: 4,165 bytes, line 24
24izzyUIUtils,t.Outlayer.Item)}(window,function(t,e,i,n,o){"use strict";function s(t,e){var i=n.getQueryElement(t);if(!i)return void(l&&l.error("Bad element for "+this.constructor.namespace+": "+(i||t)));this.element=i,c&&(this.$element=c(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var o=++d;this.element.outlayerGUID=o,u[o]=this,this._create();var s=this._getOption("initLayout");s&&this.layout()}function r(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}function a(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];if(!i.length)return 0;i=parseFloat(i);var o=f[n]||1;return i*o}var l=t.console,c=t.jQuery,h=function(){},d=0,u={};s.namespace="outlayer",s.Item=o,s.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var p=s.prototype;n.extend(p,e.prototype),p.option=function(t){n.extend(this.options,t)},p._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},s.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},p._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},p.reloadItems=function(){this.items=this._itemize(this.element.children)},p._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],o=0;o<e.length;o++){var s=e[o],r=new i(s,this);n.push(r)}return n},p._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},p.getItemElements=function(){return this.items.map(function(t){return t.element})},p.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},p._init=p.layout,p._resetLayout=function(){this.getSize()},p.getSize=function(){this.size=i(this.element)},p._getMeasurement=function(t,e){var n,o=this.options[t];o?("string"==typeof o?n=this.element.querySelector(o):o instanceof HTMLElement&&(n=o),this[t]=n?i(n)[e]:o):this[t]=0},p.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},p._getItemsForLayout=function(t){return t.filter(function(t){return!t.isIgnored})},p._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach(function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)},this),this._processLayoutQueue(i)}},p._getItemLayoutPosition=function(){return{x:0,y:0}},p._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)},this)},p.updateStagger=function(){var t=this.options.stagger;return null===t||void 0===t?void(this.stagger=0):(this.stagger=a(t),this.stagger)},p._positionItem=function(t,e,i,n,o){n?t.goTo(e,i):(t.stagger(o*this.stagger),t.moveTo(e,i))},p._postLayout=function(){this.resizeContainer()},p.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},p._getContainerSize=h,p._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},p._emitCompleteOnItems=function(t,e){function i(){o.dispatchEvent(t+"Complete",null,[e])}function n(){r++,r==s&&i()}var o=this,s=e.length;if(!e||!s)return void i();var r=0;e.forEach(function(e){e.once(t,n)})}
vendor: 5,138 bytes, line 24
24,p.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),c)if(this.$element=this.$element||c(this.element),e){var o=c.Event(e);o.type=t,this.$element.trigger(o,i)}else this.$element.trigger(t,i)},p.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},p.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},p.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},p.unstamp=function(t){t=this._find(t),t&&t.forEach(function(t){n.removeFrom(this.stamps,t),this.unignore(t)},this)},p._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),t=n.makeArray(t)},p._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},p._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},p._manageStamp=h,p._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,o=i(t),s={left:e.left-n.left-o.marginLeft,top:e.top-n.top-o.marginTop,right:n.right-e.right-o.marginRight,bottom:n.bottom-e.bottom-o.marginBottom};return s},p.handleEvent=n.handleEvent,p.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},p.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},p.onresize=function(){this.resize()},n.debounceMethod(s,"onresize",100),p.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},p.needsResizeLayout=function(){var t=i(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},p.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},p.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},p.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},p.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.reveal()})}},p.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach(function(t,i){t.stagger(i*e),t.hide()})}},p.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},p.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},p.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},p.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach(function(t){var i=this.getItem(t);i&&e.push(i)},this),e},p.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach(function(t){t.remove(),n.removeFrom(this.items,t)},this)},p.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach(function(t){t.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,c&&c.removeData(this.element,this.constructor.namespace)},s.data=function(t){t=n.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&u[e]},s.create=function(t,e){var i=r(s);return i.defaults=n.extend({},s.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},s.compatOptions),i.namespace=t,i.data=s.data,i.Item=r(o),n.htmlInit(i,t),c&&c.bridget&&c.bridget(t,i),i};var f={ms:1,s:1e3};return s.Item=o,s}),function(t,e){"function"==typeof define&&define.amd?define(["outlayer/outlayer","get-size/get-size"],e):"object"==typeof module&&module.exports?module.exports=e(require("outlayer"),require("get-size")):t.Masonry=e(t.Outlayer,t.getSize)}(window,function(t,e){var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,o=this.containerWidth+this.gutter,s=o/n,r=n-o%n,a=r&&r<1?"round":"floor";s=Math[a](s),this.cols=Math.max(s,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth"),i=t?this.element.parentNode:this.element,n=e(i);this.containerWidth=n&&n.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=e&&e<1?"round":"ceil",n=Math[i](t.size.outerWidth/this.columnWidth);n=Math.min(n,this.cols);for(var o=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",s=this[o](n,t),r={x:this.columnWidth*s.col,y:s.y},a=s.y+t.size.outerHeight,l=n+s.col,c=s.col;
24c<l;c++)this.colYs[c]=a;return r},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols,n=t>1&&i+t>this.cols;i=n?0:i;var o=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=o?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),o=this._getOption("originLeft"),s=o?n.left:n.right,r=s+i.outerWidth,a=Math.floor(s/this.columnWidth);a=Math.max(0,a);var l=Math.floor(r/this.columnWidth);l-=r%this.columnWidth?0:1,l=Math.min(this.cols-1,l);for(var c=this._getOption("originTop"),h=(c?n.top:n.bottom)+i.outerHeight,d=a;d<=l;d++)this.colYs[d]=Math.max(h,this.colYs[d])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i}),function(t,e){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",e):"object"==typeof module&&module.exports?module.exports=e():t.EvEmitter=e()}("undefined"!=typeof window?window:this,function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return n.indexOf(e)==-1&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{},n=i[t]=i[t]||{};return n[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return n!=-1&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],o=0;o<i.length;o++){var s=i[o],r=n&&n[s];r&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t}),function(t,e){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return e(t,i)}):"object"==typeof module&&module.exports?module.exports=e(t,require("ev-emitter")):t.imagesLoaded=e(t,t.EvEmitter)}("undefined"!=typeof window?window:this,function(t,e){function i(t,e){for(var i in e)t[i]=e[i];return t}function n(t){if(Array.isArray(t))return t;var e="object"==typeof t&&"number"==typeof t.length;return e?c.call(t):[t]}function o(t,e,s){if(!(this instanceof o))return new o(t,e,s);var r=t;return"string"==typeof t&&(r=document.querySelectorAll(t)),r?(this.elements=n(r),this.options=i({},this.options),"function"==typeof e?s=e:i(this.options,e),s&&this.on("always",s),this.getImages(),a&&(this.jqDeferred=new a.Deferred),void setTimeout(this.check.bind(this))):void l.error("Bad element for imagesLoaded "+(r||t))}function s(t){this.img=t}function r(t,e){this.url=t,this.element=e,this.img=new Image}var a=t.jQuery,l=t.console,c=Array.prototype.slice;o.prototype=Object.create(e.prototype),o.prototype.options={},o.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},o.prototype.addElementImages=function(t){"IMG"==t.nodeName&&this.addImage(t),this.options.background===!0&&this.addElementBackgroundImages(t);var e=t.nodeType;if(e&&h[e]){for(var i=t.querySelectorAll("img"),n=0;n<i.length;n++){var o=i[n];this.addImage(o)}if("string"==typeof this.options.background){var s=t.querySelectorAll(this.options.background);for(n=0;n<s.length;n++){var r=s[n];this.addElementBackgroundImages(r)}}}};var h={1:!0,9:!0,11:!0};return o.prototype.addElementBackgroundImages=function(t){var e=getComputedStyle(t);if(e)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(e.backgroundImage);null!==n;){var o=n&&n[2];
24o&&this.addBackground(o,t),n=i.exec(e.backgroundImage)}},o.prototype.addImage=function(t){var e=new s(t);this.images.push(e)},o.prototype.addBackground=function(t,e){var i=new r(t,e);this.images.push(i)},o.prototype.check=function(){function t(t,i,n){setTimeout(function(){e.progress(t,i,n)})}var e=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(e){e.once("progress",t),e.check()}):void this.complete()},o.prototype.progress=function(t,e,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!t.isLoaded,this.emitEvent("progress",[this,t,e]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,t),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&l&&l.log("progress: "+i,t,e)},o.prototype.complete=function(){var t=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(t,[this]),this.emitEvent("always",[this]),this.jqDeferred){var e=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[e](this)}},s.prototype=Object.create(e.prototype),s.prototype.check=function(){var t=this.getIsImageComplete();return t?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},s.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},s.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.img,e])},s.prototype.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},s.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},s.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},s.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype=Object.create(s.prototype),r.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url;var t=this.getIsImageComplete();t&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},r.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},r.prototype.confirm=function(t,e){this.isLoaded=t,this.emitEvent("progress",[this,this.element,e])},o.makeJQueryPlugin=function(e){e=e||t.jQuery,e&&(a=e,a.fn.imagesLoaded=function(t,e){var i=new o(this,t,e);return i.jqDeferred.promise(a(this))})},o.makeJQueryPlugin(),o}),$(document).ready(function(){$(".gallery-slider").slick({infinite:!0,slidesToShow:1.5,centerMode:!0,arrows:!0,variableWidth:!1,responsive:[{breakpoint:992,settings:{slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0}}]});var t=$(".gallery-masonry").masonry({itemSelector:".gallery-masonry__item",gutter:25,percentPosition:!0,transitionDuration:0});t.imagesLoaded().progress(function(){t.masonry("layout")}),$.each($("[data-main-menu]"),function(){new Menu($(this))}),cssVars(),$("#tableFeverWidgetV2").on("load",function(){$(this).height($(this).contents().outerHeight());
25}),$.each($("[data-animate]"),function(t,e){new Animate($(e)).init()}),$("[data-close-announcement]").each(function(){var t=$(this).data("close-announcement"),e=parseInt(Cookies.get("announcement-"+t))||0;Cookies.set("announcement-"+t,e+1)}),$("[data-close-announcement]").on("click",function(){var t=$(this).data("close-announcement");$("#announcement-"+t).hide(),$("#announcement-modal-"+t).modal("hide"),$("#announcement-modal-"+t).hide(),$(window).trigger("resize").trigger("scroll")})});var Menu=function(t){this.$el=t,this.open=!1;var e=this;e.init=function(){e.menuOpen(),e.menuClose()},e.menuOpen=function(){$("body").on("click","[data-main-menu-open]",function(t){return t.preventDefault(),$("[data-main-menu-close]").removeClass("close--hide"),e.navToggle(),!1})},e.menuClose=function(){$("body").on("click","[data-main-menu-close]",function(t){return t.preventDefault(),$(this).addClass("close--hide"),e.navToggle(),!1})},e.navToggle=function(){e.open?(e.$el.removeClass("main-menu--open"),e.open=!1,$("body").removeClass("body-no-scroll")):(e.$el.addClass("main-menu--open"),e.open=!0,$("body").addClass("body-no-scroll"))}
25,e.init()},Animate=function(t){var e=this;e.checkAnimate=function(){var e=t.offset().top+50,i=$(window).scrollTop()+$(window).height();$(".animate-direct")[0]&&t.addClass("animate"),e<i&&!t.hasClass("animate")&&t.addClass("animate")},e.init=function(){$(window).on("scroll",e.checkAnimate),e.checkAnimate()}};

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.