text: /*!
   * jQuery JavaScript Library v1.11.3
   * http://jquery.com/
   *
   * Includes Sizzle.js
   * http://sizzlejs.com/
   *
   * Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2015-04-28T16:19Z
   */
  !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e="length"in t&&t.length,n=ot.type(t);return"function"===n||ot.isWindow(t)?!1:1===t.nodeType&&e?!0:"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t}function i(t,e,n){if(ot.isFunction(e))return ot.grep(t,function(t,i){return!!e.call(t,i,t)!==n});if(e.nodeType)return ot.grep(t,function(t){return t===e!==n});if("string"==typeof e){if(ht.test(e))return ot.filter(e,t,n);e=ot.filter(e,t)}return ot.grep(t,function(t){return ot.inArray(t,e)>=0!==n})}function o(t,e){do t=t[e];while(t&&1!==t.nodeType);return t}function s(t){var e=xt[t]={};return ot.each(t.match(bt)||[],function(t,n){e[n]=!0}),e}function a(){pt.addEventListener?(pt.removeEventListener("DOMContentLoaded",r,!1),t.removeEventListener("load",r,!1)):(pt.detachEvent("onreadystatechange",r),t.detachEvent("onload",r))}function r(){(pt.addEventListener||"load"===event.type||"complete"===pt.readyState)&&(a(),ot.ready())}function l(t,e,n){if(void 0===n&&1===t.nodeType){var i="data-"+e.replace(Tt,"-$1").toLowerCase();if(n=t.getAttribute(i),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:kt.test(n)?ot.parseJSON(n):n}catch(o){}ot.data(t,e,n)}else n=void 0}return n}function u(t){var e;for(e in t)if(("data"!==e||!ot.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0}function d(t,e,n,i){if(ot.acceptData(t)){var o,s,a=ot.expando,r=t.nodeType,l=r?ot.cache:t,u=r?t[a]:t[a]&&a;if(u&&l[u]&&(i||l[u].data)||void 0!==n||"string"!=typeof e)return u||(u=r?t[a]=Y.pop()||ot.guid++:a),l[u]||(l[u]=r?{}:{toJSON:ot.noop}),("object"==typeof e||"function"==typeof e)&&(i?l[u]=ot.extend(l[u],e):l[u].data=ot.extend(l[u].data,e)),s=l[u],i||(s.data||(s.data={}),s=s.data),void 0!==n&&(s[ot.camelCase(e)]=n),"string"==typeof e?(o=s[e],null==o&&(o=s[ot.camelCase(e)])):o=s,o}}function c(t,e,n){if(ot.acceptData(t)){var i,o,s=t.nodeType,a=s?ot.cache:t,r=s?t[ot.expando]:ot.expando;if(a[r]){if(e&&(i=n?a[r]:a[r].data)){ot.isArray(e)?e=e.concat(ot.map(e,ot.camelCase)):e in i?e=[e]:(e=ot.camelCase(e),e=e in i?[e]:e.split(" ")),o=e.length;for(;o--;)delete i[e[o]];if(n?!u(i):!ot.isEmptyObject(i))return}(n||(delete a[r].data,u(a[r])))&&(s?ot.cleanData([t],!0):nt.deleteExpando||a!=a.window?delete a[r]:a[r]=null)}}}function h(){return!0}function f(){return!1}function p(){try{return pt.activeElement}catch(t){}}function m(t){var e=Ht.split("|"),n=t.createDocumentFragment();if(n.createElement)for(;e.length;)n.createElement(e.pop());return n}function g(t,e){var n,i,o=0,s=typeof t.getElementsByTagName!==Ct?t.getElementsByTagName(e||"*"):typeof t.querySelectorAll!==Ct?t.querySelectorAll(e||"*"):void 0;if(!s)for(s=[],n=t.childNodes||t;null!=(i=n[o]);o++)!e||ot.nodeName(i,e)?s.push(i):ot.merge(s,g(i,e));return void 0===e||e&&ot.nodeName(t,e)?ot.merge([t],s):s}function v(t){Dt.test(t.type)&&(t.defaultChecked=t.checked)}function y(t,e){return ot.nodeName(t,"table")&&ot.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function b(t){return t.type=(null!==ot.find.attr(t,"type"))+"/"+t.type,t}function x(t){var e=Ut.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function w(t,e){for(var n,i=0;null!=(n=t[i]);i++)ot._data(n,"globalEval",!e||ot._data(e[i],"globalEval"))}function _(t,e){if(1===e.nodeType&&ot.hasData(t)){var n,i,o,s=ot._data(t),a=ot._data(e,s),r=s.events;if(r){delete a.handle,a.events={};for(n in r)for(i=0,o=r[n].length;o>i;i++)ot.event.add(e,n,r[n][i])}a.data&&(a.data=ot.extend({},a.data))}}function C(t,e){var n,i,o;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!nt.noCloneEvent&&e[ot.expando]){o=ot._data(e);for(i in o.events)ot.removeEvent(e,i,o.handle);e.removeAttribute(ot.expando)}"script"===n&&e.text!==t.text?(b(e).text=t.text,x(e)):"object"===n?(e.parentNode&&(e.outerHTML=t.outerHTML),nt.html5Clone&&t.innerHTML&&!ot.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===n&&Dt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===n?e.defaultSelected=e.selected=t.defaultSelected:("input"===n||"textarea"===n)&&(e.defaultValue=t.defaultValue)}}function k(e,n){var i,o=ot(n.createElement(e)).appendTo(n.body),s=t.getDefaultComputedStyle&&(i=t.getDefaultComputedStyle(o[0]))?i.display:ot.css(o[0],"display");return o.detach(),s}function T(t){var e=pt,n=Jt[t];return n||(n=k(t,e),"none"!==n&&n||(Vt=(Vt||ot("<iframe frameborder='0' width='0' height='0'/>")).appendTo(e.documentElement),e=(Vt[0].contentWindow||Vt[0].contentDocument).document,e.write(),e.close(),n=k(t,e),Vt.detach()),Jt[t]=n),n}function $(t,e){return{get:function(){var n=t();if(null!=n)return n?void delete this.get:(this.get=e).apply(this,arguments)}}}function E(t,e){if(e in t)return e;for(var n=e.charAt(0).toUpperCase()+e.slice(1),i=e,o=he.length;o--;)if(e=he[o]+n,e in t)return e;return i}function F(t,e){for(var n,i,o,s=[],a=0,r=t.length;r>a;a++)i=t[a],i.style&&(s[a]=ot._data(i,"olddisplay"),n=i.style.display,e?(s[a]||"none"!==n||(i.style.display=""),""===i.style.display&&Ft(i)&&(s[a]=ot._data(i,"olddisplay",T(i.nodeName)))):(o=Ft(i),(n&&"none"!==n||!o)&&ot._data(i,"olddisplay",o?n:ot.css(i,"display"))));for(a=0;r>a;a++)i=t[a],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[a]||"":"none"));return t}function S(t,e,n){var i=le.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e}function D(t,e,n,i,o){for(var s=n===(i?"border":"content")?4:"width"===e?1:0,a=0;4>s;s+=2)"margin"===n&&(a+=ot.css(t,n+Et[s],!0,o)),i?("content"===n&&(a-=ot.css(t,"padding"+Et[s],!0,o)),"margin"!==n&&(a-=ot.css(t,"border"+Et[s]+"Width",!0,o))):(a+=ot.css(t,"padding"+Et[s],!0,o),"padding"!==n&&(a+=ot.css(t,"border"+Et[s]+"Width",!0,o)));return a}function A(t,e,n){var i=!0,o="width"===e?t.offsetWidth:t.offsetHeight,s=te(t),a=nt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,s);if(0>=o||null==o){if(o=ee(t,e,s),(0>o||null==o)&&(o=t.style[e]),ie.test(o))return o;i=a&&(nt.boxSizingReliable()||o===t.style[e]),o=parseFloat(o)||0}return o+D(t,e,n||(a?"border":"content"),i,s)+"px"}function j(t,e,n,i,o){return new j.prototype.init(t,e,n,i,o)}function N(){return setTimeout(function(){fe=void 0}),fe=ot.now()}function z(t,e){var n,i={height:t},o=0;for(e=e?1:0;4>o;o+=2-e)n=Et[o],i["margin"+n]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function O(t,e,n){for(var i,o=(be[e]||[]).concat(be["*"]),s=0,a=o.length;a>s;s++)if(i=o[s].call(n,e,t))return i}function H(t,e,n){var i,o,s,a,r,l,u,d,c=this,h={},f=t.style,p=t.nodeType&&Ft(t),m=ot._data(t,"fxshow");n.queue||(r=ot._queueHooks(t,"fx"),null==r.unqueued&&(r.unqueued=0,l=r.empty.fire,r.empty.fire=function(){r.unqueued||l()}),r.unqueued++,c.always(function(){c.always(function(){r.unqueued--,ot.queue(t,"fx").length||r.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],u=ot.css(t,"display"),d="none"===u?ot._data(t,"olddisplay")||T(t.nodeName):u,"inline"===d&&"none"===ot.css(t,"float")&&(nt.inlineBlockNeedsLayout&&"inline"!==T(t.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",nt.shrinkWrapBlocks()||c.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}));for(i in e)if(o=e[i],me.exec(o)){if(delete e[i],s=s||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;p=!0}h[i]=m&&m[i]||ot.style(t,i)}else u=void 0;if(ot.isEmptyObject(h))"inline"===("none"===u?T(t.nodeName):u)&&(f.display=u);else{m?"hidden"in m&&(p=m.hidden):m=ot._data(t,"fxshow",{}),s&&(m.hidden=!p),p?ot(t).show():c.done(function(){ot(t).hide()}),c.done(function(){var e;ot._removeData(t,"fxshow");for(e in h)ot.style(t,e,h[e])});for(i in h)a=O(p?m[i]:0,i,c),i in m||(m[i]=a.start,p&&(a.end=a.start,a.start="width"===i||"height"===i?1:0))}}function L(t,e){var n,i,o,s,a;for(n in t)if(i=ot.camelCase(n),o=e[i],s=t[n],ot.isArray(s)&&(o=s[1],s=t[n]=s[0]),n!==i&&(t[i]=s,delete t[n]),a=ot.cssHooks[i],a&&"expand"in a){s=a.expand(s),delete t[i];for(n in s)n in t||(t[n]=s[n],e[n]=o)}else e[i]=o}function q(t,e,n){var i,o,s=0,a=ye.length,r=ot.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=fe||N(),n=Math.max(0,u.startTime+u.duration-e),i=n/u.duration||0,s=1-i,a=0,l=u.tweens.length;l>a;a++)u.tweens[a].run(s);return r.notifyWith(t,[u,s,n]),1>s&&l?n:(r.resolveWith(t,[u]),!1)},u=r.promise({elem:t,props:ot.extend({},e),opts:ot.extend(!0,{specialEasing:{}},n),originalProperties:e,originalOptions:n,startTime:fe||N(),duration:n.duration,tweens:[],createTween:function(e,n){var i=ot.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(o)return this;for(o=!0;i>n;n++)u.tweens[n].run(1);return e?r.resolveWith(t,[u,e]):r.rejectWith(t,[u,e]),this}}),d=u.props;for(L(d,u.opts.specialEasing);a>s;s++)if(i=ye[s].call(u,t,d,u.opts))return i;return ot.map(d,O,u),ot.isFunction(u.opts.start)&&u.opts.start.call(t,u),ot.fx.timer(ot.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}function P(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,s=e.toLowerCase().match(bt)||[];if(ot.isFunction(n))for(;i=s[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function M(t,e,n,i){function o(r){var l;return s[r]=!0,ot.each(t[r]||[],function(t,r){var u=r(e,n,i);return"string"!=typeof u||a||s[u]?a?!(l=u):void 0:(e.dataTypes.unshift(u),o(u),!1)}),l}var s={},a=t===Be;return o(e.dataTypes[0])||!s["*"]&&o("*")}function R(t,e){var n,i,o=ot.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:n||(n={}))[i]=e[i]);return n&&ot.extend(!0,t,n),t}function I(t,e,n){for(var i,o,s,a,r=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=t.mimeType||e.getResponseHeader("Content-Type"));if(o)for(a in r)if(r[a]&&r[a].test(o)){l.unshift(a);break}if(l[0]in n)s=l[0];else{for(a in n){if(!l[0]||t.converters[a+" "+l[0]]){s=a;break}i||(i=a)}s=s||i}return s?(s!==l[0]&&l.unshift(s),n[s]):void 0}function B(t,e,n,i){var o,s,a,r,l,u={},d=t.dataTypes.slice();if(d[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(s=d.shift();s;)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=d.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(a=u[l+" "+s]||u["* "+s],!a)for(o in u)if(r=o.split(" "),r[1]===s&&(a=u[l+" "+r[0]]||u["* "+r[0]])){a===!0?a=u[o]:u[o]!==!0&&(s=r[0],d.unshift(r[1]));break}if(a!==!0)if(a&&t["throws"])e=a(e);else try{e=a(e)}catch(c){return{state:"parsererror",error:a?c:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}function W(t,e,n,i){var o;if(ot.isArray(e))ot.each(e,function(e,o){n||Ue.test(t)?i(t,o):W(t+"["+("object"==typeof o?e:"")+"]",o,n,i)});else if(n||"object"!==ot.type(e))i(t,e);else for(o in e)W(t+"["+o+"]",e[o],n,i)}function Q(){try{return new t.XMLHttpRequest}catch(e){}}function X(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function U(t){return ot.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1}var Y=[],G=Y.slice,K=Y.concat,Z=Y.push,V=Y.indexOf,J={},tt=J.toString,et=J.hasOwnProperty,nt={},it="1.11.3",ot=function(t,e){return new ot.fn.init(t,e)},st=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,at=/^-ms-/,rt=/-([\da-z])/gi,lt=function(t,e){return e.toUpperCase()};ot.fn=ot.prototype={jquery:it,constructor:ot,selector:"",length:0,toArray:function(){return G.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:G.call(this)},pushStack:function(t){var e=ot.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return ot.each(this,t,e)},map:function(t){return this.pushStack(ot.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(G.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(0>t?e:0);return this.pushStack(n>=0&&e>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:Z,sort:Y.sort,splice:Y.splice},ot.extend=ot.fn.extend=function(){var t,e,n,i,o,s,a=arguments[0]||{},r=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[r]||{},r++),"object"==typeof a||ot.isFunction(a)||(a={}),r===l&&(a=this,r--);l>r;r++)if(null!=(o=arguments[r]))for(i in o)t=a[i],n=o[i],a!==n&&(u&&n&&(ot.isPlainObject(n)||(e=ot.isArray(n)))?(e?(e=!1,s=t&&ot.isArray(t)?t:[]):s=t&&ot.isPlainObject(t)?t:{},a[i]=ot.extend(u,s,n)):void 0!==n&&(a[i]=n));return a},ot.extend({expando:"jQuery"+(it+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===ot.type(t)},isArray:Array.isArray||function(t){return"array"===ot.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!ot.isArray(t)&&t-parseFloat(t)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==ot.type(t)||t.nodeType||ot.isWindow(t))return!1;try{if(t.constructor&&!et.call(t,"constructor")&&!et.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(nt.ownLast)for(e in t)return et.call(t,e);for(e in t);return void 0===e||et.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?J[tt.call(t)]||"object":typeof t},globalEval:function(e){e&&ot.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(at,"ms-").replace(rt,lt)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,i){var o,s=0,a=t.length,r=n(t);if(i){if(r)for(;a>s&&(o=e.apply(t[s],i),o!==!1);s++);else for(s in t)if(o=e.apply(t[s],i),o===!1)break}else if(r)for(;a>s&&(o=e.call(t[s],s,t[s]),o!==!1);s++);else for(s in t)if(o=e.call(t[s],s,t[s]),o===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(st,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(n(Object(t))?ot.merge(i,"string"==typeof t?[t]:t):Z.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(V)return V.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;n>i;)t[o++]=e[i++];if(n!==n)for(;void 0!==e[i];)t[o++]=e[i++];return t.length=o,t},grep:function(t,e,n){for(var i,o=[],s=0,a=t.length,r=!n;a>s;s++)i=!e(t[s],s),i!==r&&o.push(t[s]);return o},map:function(t,e,i){var o,s=0,a=t.length,r=n(t),l=[];if(r)for(;a>s;s++)o=e(t[s],s,i),null!=o&&l.push(o);else for(s in t)o=e(t[s],s,i),null!=o&&l.push(o);return K.apply([],l)},guid:1,proxy:function(t,e){var n,i,o;return"string"==typeof e&&(o=t[e],e=t,t=o),ot.isFunction(t)?(n=G.call(arguments,2),i=function(){return t.apply(e||this,n.concat(G.call(arguments)))},i.guid=t.guid=t.guid||ot.guid++,i):void 0},now:function(){return+new Date},support:nt}),ot.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()});var ut=/*!
   * Sizzle CSS Selector Engine v2.2.0-pre
   * http://sizzlejs.com/
   *
   * Copyright 2008, 2014 jQuery Foundation, Inc. and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2014-12-16
   */
  function(t){function e(t,e,n,i){var o,s,a,r,l,u,c,f,p,m;if((e?e.ownerDocument||e:M)!==j&&A(e),e=e||j,n=n||[],r=e.nodeType,"string"!=typeof t||!t||1!==r&&9!==r&&11!==r)return n;if(!i&&z){if(11!==r&&(o=yt.exec(t)))if(a=o[1]){if(9===r){if(s=e.getElementById(a),!s||!s.parentNode)return n;if(s.id===a)return n.push(s),n}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(a))&&q(e,s)&&s.id===a)return n.push(s),n}else{if(o[2])return V.apply(n,e.getElementsByTagName(t)),n;if((a=o[3])&&w.getElementsByClassName)return V.apply(n,e.getElementsByClassName(a)),n}if(w.qsa&&(!O||!O.test(t))){if(f=c=P,p=e,m=1!==r&&t,1===r&&"object"!==e.nodeName.toLowerCase()){for(u=T(t),(c=e.getAttribute("id"))?f=c.replace(xt,"\\$&"):e.setAttribute("id",f),f="[id='"+f+"'] ",l=u.length;l--;)u[l]=f+h(u[l]);p=bt.test(t)&&d(e.parentNode)||e,m=u.join(",")}if(m)try{return V.apply(n,p.querySelectorAll(m)),n}catch(g){}finally{c||e.removeAttribute("id")}}}return E(t.replace(lt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>_.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[P]=!0,t}function o(t){var e=j.createElement("div");try{return!!t(e)}catch(n){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function s(t,e){for(var n=t.split("|"),i=t.length;i--;)_.attrHandle[n[i]]=e}function a(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||U)-(~t.sourceIndex||U);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function r(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}}function l(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function u(t){return i(function(e){return e=+e,i(function(n,i){for(var o,s=t([],n.length,e),a=s.length;a--;)n[o=s[a]]&&(n[o]=!(i[o]=n[o]))})})}function d(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}function c(){}function h(t){for(var e=0,n=t.length,i="";n>e;e++)i+=t[e].value;return i}function f(t,e,n){var i=e.dir,o=n&&"parentNode"===i,s=I++;return e.first?function(e,n,s){for(;e=e[i];)if(1===e.nodeType||o)return t(e,n,s)}:function(e,n,a){var r,l,u=[R,s];if(a){for(;e=e[i];)if((1===e.nodeType||o)&&t(e,n,a))return!0}else for(;e=e[i];)if(1===e.nodeType||o){if(l=e[P]||(e[P]={}),(r=l[i])&&r[0]===R&&r[1]===s)return u[2]=r[2];if(l[i]=u,u[2]=t(e,n,a))return!0}}}function p(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function m(t,n,i){for(var o=0,s=n.length;s>o;o++)e(t,n[o],i);return i}function g(t,e,n,i,o){for(var s,a=[],r=0,l=t.length,u=null!=e;l>r;r++)(s=t[r])&&(!n||n(s,i,o))&&(a.push(s),u&&e.push(r));return a}function v(t,e,n,o,s,a){return o&&!o[P]&&(o=v(o)),s&&!s[P]&&(s=v(s,a)),i(function(i,a,r,l){var u,d,c,h=[],f=[],p=a.length,v=i||m(e||"*",r.nodeType?[r]:r,[]),y=!t||!i&&e?v:g(v,h,t,r,l),b=n?s||(i?t:p||o)?[]:a:y;if(n&&n(y,b,r,l),o)for(u=g(b,f),o(u,[],r,l),d=u.length;d--;)(c=u[d])&&(b[f[d]]=!(y[f[d]]=c));if(i){if(s||t){if(s){for(u=[],d=b.length;d--;)(c=b[d])&&u.push(y[d]=c);s(null,b=[],u,l)}for(d=b.length;d--;)(c=b[d])&&(u=s?tt(i,c):h[d])>-1&&(i[u]=!(a[u]=c))}}else b=g(b===a?b.splice(p,b.length):b),s?s(null,a,b,l):V.apply(a,b)})}function y(t){for(var e,n,i,o=t.length,s=_.relative[t[0].type],a=s||_.relative[" "],r=s?1:0,l=f(function(t){return t===e},a,!0),u=f(function(t){return tt(e,t)>-1},a,!0),d=[function(t,n,i){var o=!s&&(i||n!==F)||((e=n).nodeType?l(t,n,i):u(t,n,i));return e=null,o}];o>r;r++)if(n=_.relative[t[r].type])d=[f(p(d),n)];else{if(n=_.filter[t[r].type].apply(null,t[r].matches),n[P]){for(i=++r;o>i&&!_.relative[t[i].type];i++);return v(r>1&&p(d),r>1&&h(t.slice(0,r-1).concat({value:" "===t[r-2].type?"*":""})).replace(lt,"$1"),n,i>r&&y(t.slice(r,i)),o>i&&y(t=t.slice(i)),o>i&&h(t))}d.push(n)}return p(d)}function b(t,n){var o=n.length>0,s=t.length>0,a=function(i,a,r,l,u){var d,c,h,f=0,p="0",m=i&&[],v=[],y=F,b=i||s&&_.find.TAG("*",u),x=R+=null==y?1:Math.random()||.1,w=b.length;for(u&&(F=a!==j&&a);p!==w&&null!=(d=b[p]);p++){if(s&&d){for(c=0;h=t[c++];)if(h(d,a,r)){l.push(d);break}u&&(R=x)}o&&((d=!h&&d)&&f--,i&&m.push(d))}if(f+=p,o&&p!==f){for(c=0;h=n[c++];)h(m,v,a,r);if(i){if(f>0)for(;p--;)m[p]||v[p]||(v[p]=K.call(l));v=g(v)}V.apply(l,v),u&&!i&&v.length>0&&f+n.length>1&&e.uniqueSort(l)}return u&&(R=x,F=y),m};return o?i(a):a}var x,w,_,C,k,T,$,E,F,S,D,A,j,N,z,O,H,L,q,P="sizzle"+1*new Date,M=t.document,R=0,I=0,B=n(),W=n(),Q=n(),X=function(t,e){return t===e&&(D=!0),0},U=1<<31,Y={}.hasOwnProperty,G=[],K=G.pop,Z=G.push,V=G.push,J=G.slice,tt=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},et="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",it="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ot=it.replace("w","w#"),st="\\["+nt+"*("+it+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ot+"))|)"+nt+"*\\]",at=":("+it+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+st+")*)|.*)\\)|)",rt=new RegExp(nt+"+","g"),lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ut=new RegExp("^"+nt+"*,"+nt+"*"),dt=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),ct=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),ht=new RegExp(at),ft=new RegExp("^"+ot+"$"),pt={ID:new RegExp("^#("+it+")"),CLASS:new RegExp("^\\.("+it+")"),TAG:new RegExp("^("+it.replace("w","w*")+")"),ATTR:new RegExp("^"+st),PSEUDO:new RegExp("^"+at),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+et+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,vt=/^[^{]+\{\s*\[native \w/,yt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bt=/[+~]/,xt=/'|\\/g,wt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),_t=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Ct=function(){A()};try{V.apply(G=J.call(M.childNodes),M.childNodes),G[M.childNodes.length].nodeType}catch(kt){V={apply:G.length?function(t,e){Z.apply(t,J.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}w=e.support={},k=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},A=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:M;return i!==j&&9===i.nodeType&&i.documentElement?(j=i,N=i.documentElement,n=i.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),z=!k(i),w.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),w.getElementsByTagName=o(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),w.getElementsByClassName=vt.test(i.getElementsByClassName),w.getById=o(function(t){return N.appendChild(t).id=P,!i.getElementsByName||!i.getElementsByName(P).length}),w.getById?(_.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&z){var n=e.getElementById(t);return n&&n.parentNode?[n]:[]}},_.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){return t.getAttribute("id")===e}}):(delete _.find.ID,_.filter.ID=function(t){var e=t.replace(wt,_t);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),_.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 n,i=[],o=0,s=e.getElementsByTagName(t);if("*"===t){for(;n=s[o++];)1===n.nodeType&&i.push(n);return i}return s},_.find.CLASS=w.getElementsByClassName&&function(t,e){return z?e.getElementsByClassName(t):void 0},H=[],O=[],(w.qsa=vt.test(i.querySelectorAll))&&(o(function(t){N.appendChild(t).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\f]' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+nt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||O.push("\\["+nt+"*(?:value|"+et+")"),t.querySelectorAll("[id~="+P+"-]").length||O.push("~="),t.querySelectorAll(":checked").length||O.push(":checked"),t.querySelectorAll("a#"+P+"+*").length||O.push(".#.+[+~]")}),o(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&O.push("name"+nt+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),O.push(",.*:")})),(w.matchesSelector=vt.test(L=N.matches||N.webkitMatchesSelector||N.mozMatchesSelector||N.oMatchesSelector||N.msMatchesSelector))&&o(function(t){w.disconnectedMatch=L.call(t,"div"),L.call(t,"[s!='']:x"),H.push("!=",at)}),O=O.length&&new RegExp(O.join("|")),H=H.length&&new RegExp(H.join("|")),e=vt.test(N.compareDocumentPosition),q=e||vt.test(N.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},X=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!w.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===M&&q(M,t)?-1:e===i||e.ownerDocument===M&&q(M,e)?1:S?tt(S,t)-tt(S,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,o=0,s=t.parentNode,r=e.parentNode,l=[t],u=[e];if(!s||!r)return t===i?-1:e===i?1:s?-1:r?1:S?tt(S,t)-tt(S,e):0;if(s===r)return a(t,e);for(n=t;n=n.parentNode;)l.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;l[o]===u[o];)o++;return o?a(l[o],u[o]):l[o]===M?-1:u[o]===M?1:0},i):j},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==j&&A(t),n=n.replace(ct,"='$1']"),w.matchesSelector&&z&&(!H||!H.test(n))&&(!O||!O.test(n)))try{var i=L.call(t,n);if(i||w.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(o){}return e(n,j,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==j&&A(t),q(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==j&&A(t);var n=_.attrHandle[e.toLowerCase()],i=n&&Y.call(_.attrHandle,e.toLowerCase())?n(t,e,!z):void 0;return void 0!==i?i:w.attributes||!z?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(D=!w.detectDuplicates,S=!w.sortStable&&t.slice(0),t.sort(X),D){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return S=null,t},C=e.getText=function(t){var e,n="",i=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)n+=C(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=C(e);return n},_=e.selectors={cacheLength:50,createPseudo:i,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(wt,_t),t[3]=(t[3]||t[4]||t[5]||"").replace(wt,_t),"~="===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,n=!t[6]&&t[2];return pt.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ht.test(n)&&(e=T(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(wt,_t).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=B[t+" "];return e||(e=new RegExp("(^|"+nt+")"+t+"("+nt+"|$)"))&&B(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var s=e.attr(o,t);return null==s?"!="===n:n?(s+="","="===n?s===i:"!="===n?s!==i:"^="===n?i&&0===s.indexOf(i):"*="===n?i&&s.indexOf(i)>-1:"$="===n?i&&s.slice(-i.length)===i:"~="===n?(" "+s.replace(rt," ")+" ").indexOf(i)>-1:"|="===n?s===i||s.slice(0,i.length+1)===i+"-":!1):!0}},CHILD:function(t,e,n,i,o){var s="nth"!==t.slice(0,3),a="last"!==t.slice(-4),r="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var u,d,c,h,f,p,m=s!==a?"nextSibling":"previousSibling",g=e.parentNode,v=r&&e.nodeName.toLowerCase(),y=!l&&!r;if(g){if(s){for(;m;){for(c=e;c=c[m];)if(r?c.nodeName.toLowerCase()===v:1===c.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(d=g[P]||(g[P]={}),u=d[t]||[],f=u[0]===R&&u[1],h=u[0]===R&&u[2],c=f&&g.childNodes[f];c=++f&&c&&c[m]||(h=f=0)||p.pop();)if(1===c.nodeType&&++h&&c===e){d[t]=[R,f,h];break}}else if(y&&(u=(e[P]||(e[P]={}))[t])&&u[0]===R)h=u[1];else for(;(c=++f&&c&&c[m]||(h=f=0)||p.pop())&&((r?c.nodeName.toLowerCase()!==v:1!==c.nodeType)||!++h||(y&&((c[P]||(c[P]={}))[t]=[R,h]),c!==e)););return h-=o,h===i||h%i===0&&h/i>=0}}},PSEUDO:function(t,n){var o,s=_.pseudos[t]||_.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return s[P]?s(n):s.length>1?(o=[t,t,"",n],_.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=s(t,n),a=o.length;a--;)i=tt(t,o[a]),t[i]=!(e[i]=o[a])}):function(t){return s(t,0,o)}):s}},pseudos:{not:i(function(t){var e=[],n=[],o=$(t.replace(lt,"$1"));return o[P]?i(function(t,e,n,i){for(var s,a=o(t,null,i,[]),r=t.length;r--;)(s=a[r])&&(t[r]=!(e[r]=s))}):function(t,i,s){return e[0]=t,o(e,null,s,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(wt,_t),function(e){return(e.textContent||e.innerText||C(e)).indexOf(t)>-1}}),lang:i(function(t){return ft.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(wt,_t).toLowerCase(),function(e){var n;do if(n=z?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+"-");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===N},focus:function(t){return t===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!_.pseudos.empty(t)},header:function(t){return gt.test(t.nodeName)},input:function(t){return mt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:u(function(){return[0]}),last:u(function(t,e){return[e-1]}),eq:u(function(t,e,n){return[0>n?n+e:n]}),even:u(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:u(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:u(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:u(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},_.pseudos.nth=_.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})_.pseudos[x]=r(x);for(x in{submit:!0,reset:!0})_.pseudos[x]=l(x);return c.prototype=_.filters=_.pseudos,_.setFilters=new c,T=e.tokenize=function(t,n){var i,o,s,a,r,l,u,d=W[t+" "];if(d)return n?0:d.slice(0);for(r=t,l=[],u=_.preFilter;r;){(!i||(o=ut.exec(r)))&&(o&&(r=r.slice(o[0].length)||r),l.push(s=[])),i=!1,(o=dt.exec(r))&&(i=o.shift(),s.push({value:i,type:o[0].replace(lt," ")}),r=r.slice(i.length));for(a in _.filter)!(o=pt[a].exec(r))||u[a]&&!(o=u[a](o))||(i=o.shift(),s.push({value:i,type:a,matches:o}),r=r.slice(i.length));if(!i)break}return n?r.length:r?e.error(t):W(t,l).slice(0)},$=e.compile=function(t,e){var n,i=[],o=[],s=Q[t+" "];if(!s){for(e||(e=T(t)),n=e.length;n--;)s=y(e[n]),s[P]?i.push(s):o.push(s);s=Q(t,b(o,i)),s.selector=t}return s},E=e.select=function(t,e,n,i){var o,s,a,r,l,u="function"==typeof t&&t,c=!i&&T(t=u.selector||t);if(n=n||[],1===c.length){if(s=c[0]=c[0].slice(0),s.length>2&&"ID"===(a=s[0]).type&&w.getById&&9===e.nodeType&&z&&_.relative[s[1].type]){if(e=(_.find.ID(a.matches[0].replace(wt,_t),e)||[])[0],!e)return n;u&&(e=e.parentNode),t=t.slice(s.shift().value.length)}for(o=pt.needsContext.test(t)?0:s.length;o--&&(a=s[o],!_.relative[r=a.type]);)if((l=_.find[r])&&(i=l(a.matches[0].replace(wt,_t),bt.test(s[0].type)&&d(e.parentNode)||e))){if(s.splice(o,1),t=i.length&&h(s),!t)return V.apply(n,i),n;break}}return(u||$(t,c))(i,e,!z,n,bt.test(t)&&d(e.parentNode)||e),n},w.sortStable=P.split("").sort(X).join("")===P,w.detectDuplicates=!!D,A(),w.sortDetached=o(function(t){return 1&t.compareDocumentPosition(j.createElement("div"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||s("type|href|height|width",function(t,e,n){return n?void 0: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,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||s(et,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(t);ot.find=ut,ot.expr=ut.selectors,ot.expr[":"]=ot.expr.pseudos,ot.unique=ut.uniqueSort,ot.text=ut.getText,ot.isXMLDoc=ut.isXML,ot.contains=ut.contains;var dt=ot.expr.match.needsContext,ct=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ht=/^.[^:#\[\.,]*$/;ot.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?ot.find.matchesSelector(i,t)?[i]:[]:ot.find.matches(t,ot.grep(e,function(t){return 1===t.nodeType}))},ot.fn.extend({find:function(t){var e,n=[],i=this,o=i.length;if("string"!=typeof t)return this.pushStack(ot(t).filter(function(){for(e=0;o>e;e++)if(ot.contains(i[e],this))return!0}));for(e=0;o>e;e++)ot.find(t,i[e],n);return n=this.pushStack(o>1?ot.unique(n):n),n.selector=this.selector?this.selector+" "+t:t,n},filter:function(t){return this.pushStack(i(this,t||[],!1))},not:function(t){return this.pushStack(i(this,t||[],!0))},is:function(t){return!!i(this,"string"==typeof t&&dt.test(t)?ot(t):t||[],!1).length}});var ft,pt=t.document,mt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,gt=ot.fn.init=function(t,e){var n,i;if(!t)return this;if("string"==typeof t){if(n="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:mt.exec(t),!n||!n[1]&&e)return!e||e.jquery?(e||ft).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof ot?e[0]:e,ot.merge(this,ot.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:pt,!0)),ct.test(n[1])&&ot.isPlainObject(e))for(n in e)ot.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}if(i=pt.getElementById(n[2]),i&&i.parentNode){if(i.id!==n[2])return ft.find(t);this.length=1,this[0]=i}return this.context=pt,this.selector=t,this}return t.nodeType?(this.context=this[0]=t,this.length=1,this):ot.isFunction(t)?"undefined"!=typeof ft.ready?ft.ready(t):t(ot):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),ot.makeArray(t,this))};gt.prototype=ot.fn,ft=ot(pt);var vt=/^(?:parents|prev(?:Until|All))/,yt={children:!0,contents:!0,next:!0,prev:!0};ot.extend({dir:function(t,e,n){for(var i=[],o=t[e];o&&9!==o.nodeType&&(void 0===n||1!==o.nodeType||!ot(o).is(n));)1===o.nodeType&&i.push(o),o=o[e];return i},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),ot.fn.extend({has:function(t){var e,n=ot(t,this),i=n.length;return this.filter(function(){for(e=0;i>e;e++)if(ot.contains(this,n[e]))return!0})},closest:function(t,e){for(var n,i=0,o=this.length,s=[],a=dt.test(t)||"string"!=typeof t?ot(t,e||this.context):0;o>i;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&ot.find.matchesSelector(n,t))){s.push(n);break}return this.pushStack(s.length>1?ot.unique(s):s)},index:function(t){return t?"string"==typeof t?ot.inArray(this[0],ot(t)):ot.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(ot.unique(ot.merge(this.get(),ot(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),ot.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return ot.dir(t,"parentNode")},parentsUntil:function(t,e,n){return ot.dir(t,"parentNode",n)},next:function(t){return o(t,"nextSibling")},prev:function(t){return o(t,"previousSibling")},nextAll:function(t){return ot.dir(t,"nextSibling")},prevAll:function(t){return ot.dir(t,"previousSibling")},nextUntil:function(t,e,n){return ot.dir(t,"nextSibling",n)},prevUntil:function(t,e,n){return ot.dir(t,"previousSibling",n)},siblings:function(t){return ot.sibling((t.parentNode||{}).firstChild,t)},children:function(t){return ot.sibling(t.firstChild)},contents:function(t){return ot.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:ot.merge([],t.childNodes)}},function(t,e){ot.fn[t]=function(n,i){var o=ot.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ot.filter(i,o)),this.length>1&&(yt[t]||(o=ot.unique(o)),vt.test(t)&&(o=o.reverse())),this.pushStack(o)}});var bt=/\S+/g,xt={};ot.Callbacks=function(t){t="string"==typeof t?xt[t]||s(t):ot.extend({},t);var e,n,i,o,a,r,l=[],u=!t.once&&[],d=function(s){for(n=t.memory&&s,i=!0,a=r||0,r=0,o=l.length,e=!0;l&&o>a;a++)if(l[a].apply(s[0],s[1])===!1&&t.stopOnFalse){n=!1;break}e=!1,l&&(u?u.length&&d(u.shift()):n?l=[]:c.disable())},c={add:function(){if(l){var i=l.length;!function s(e){ot.each(e,function(e,n){var i=ot.type(n);"function"===i?t.unique&&c.has(n)||l.push(n):n&&n.length&&"string"!==i&&s(n)})}(arguments),e?o=l.length:n&&(r=i,d(n))}return this},remove:function(){return l&&ot.each(arguments,function(t,n){for(var i;(i=ot.inArray(n,l,i))>-1;)l.splice(i,1),e&&(o>=i&&o--,a>=i&&a--)}),this},has:function(t){return t?ot.inArray(t,l)>-1:!(!l||!l.length)},empty:function(){return l=[],o=0,this},disable:function(){return l=u=n=void 0,this},disabled:function(){return!l},lock:function(){return u=void 0,n||c.disable(),this},locked:function(){return!u},fireWith:function(t,n){return!l||i&&!u||(n=n||[],n=[t,n.slice?n.slice():n],e?u.push(n):d(n)),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ot.extend({Deferred:function(t){var e=[["resolve","done",ot.Callbacks("once memory"),"resolved"],["reject","fail",ot.Callbacks("once memory"),"rejected"],["notify","progress",ot.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var t=arguments;return ot.Deferred(function(n){ot.each(e,function(e,s){var a=ot.isFunction(t[e])&&t[e];o[s[1]](function(){var t=a&&a.apply(this,arguments);t&&ot.isFunction(t.promise)?t.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[s[0]+"With"](this===i?n.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?ot.extend(t,i):i}},o={};return i.pipe=i.then,ot.each(e,function(t,s){var a=s[2],r=s[3];i[s[1]]=a.add,r&&a.add(function(){n=r},e[1^t][2].disable,e[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?i:this,arguments),this},o[s[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e,n,i,o=0,s=G.call(arguments),a=s.length,r=1!==a||t&&ot.isFunction(t.promise)?a:0,l=1===r?t:ot.Deferred(),u=function(t,n,i){return function(o){n[t]=this,i[t]=arguments.length>1?G.call(arguments):o,i===e?l.notifyWith(n,i):--r||l.resolveWith(n,i)}};if(a>1)for(e=new Array(a),n=new Array(a),i=new Array(a);a>o;o++)s[o]&&ot.isFunction(s[o].promise)?s[o].promise().done(u(o,i,s)).fail(l.reject).progress(u(o,n,e)):--r;return r||l.resolveWith(i,s),l.promise()}});var wt;ot.fn.ready=function(t){return ot.ready.promise().done(t),this},ot.extend({isReady:!1,readyWait:1,holdReady:function(t){t?ot.readyWait++:ot.ready(!0)},ready:function(t){if(t===!0?!--ot.readyWait:!ot.isReady){if(!pt.body)return setTimeout(ot.ready);ot.isReady=!0,t!==!0&&--ot.readyWait>0||(wt.resolveWith(pt,[ot]),ot.fn.triggerHandler&&(ot(pt).triggerHandler("ready"),ot(pt).off("ready")))}}}),ot.ready.promise=function(e){if(!wt)if(wt=ot.Deferred(),"complete"===pt.readyState)setTimeout(ot.ready);else if(pt.addEventListener)pt.addEventListener("DOMContentLoaded",r,!1),t.addEventListener("load",r,!1);else{pt.attachEvent("onreadystatechange",r),t.attachEvent("onload",r);var n=!1;try{n=null==t.frameElement&&pt.documentElement}catch(i){}n&&n.doScroll&&!function o(){if(!ot.isReady){try{n.doScroll("left")}catch(t){return setTimeout(o,50)}a(),ot.ready()}}()}return wt.promise(e)};var _t,Ct="undefined";for(_t in ot(nt))break;nt.ownLast="0"!==_t,nt.inlineBlockNeedsLayout=!1,ot(function(){var t,e,n,i;n=pt.getElementsByTagName("body")[0],n&&n.style&&(e=pt.createElement("div"),i=pt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==Ct&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",nt.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild(i))}),function(){var t=pt.createElement("div");if(null==nt.deleteExpando){nt.deleteExpando=!0;try{delete t.test}catch(e){nt.deleteExpando=!1}}t=null}(),ot.acceptData=function(t){var e=ot.noData[(t.nodeName+" ").toLowerCase()],n=+t.nodeType||1;return 1!==n&&9!==n?!1:!e||e!==!0&&t.getAttribute("classid")===e};var kt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Tt=/([A-Z])/g;ot.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?ot.cache[t[ot.expando]]:t[ot.expando],!!t&&!u(t)},data:function(t,e,n){return d(t,e,n)},removeData:function(t,e){return c(t,e)},_data:function(t,e,n){return d(t,e,n,!0)},_removeData:function(t,e){return c(t,e,!0)}}),ot.fn.extend({data:function(t,e){var n,i,o,s=this[0],a=s&&s.attributes;if(void 0===t){if(this.length&&(o=ot.data(s),1===s.nodeType&&!ot._data(s,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=ot.camelCase(i.slice(5)),l(s,i,o[i])));ot._data(s,"parsedAttrs",!0)}return o}return"object"==typeof t?this.each(function(){ot.data(this,t)}):arguments.length>1?this.each(function(){ot.data(this,t,e)}):s?l(s,t,ot.data(s,t)):void 0},removeData:function(t){return this.each(function(){ot.removeData(this,t)})}}),ot.extend({queue:function(t,e,n){var i;return t?(e=(e||"fx")+"queue",i=ot._data(t,e),n&&(!i||ot.isArray(n)?i=ot._data(t,e,ot.makeArray(n)):i.push(n)),i||[]):void 0},dequeue:function(t,e){e=e||"fx";var n=ot.queue(t,e),i=n.length,o=n.shift(),s=ot._queueHooks(t,e),a=function(){ot.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete s.stop,o.call(t,a,s)),!i&&s&&s.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return ot._data(t,n)||ot._data(t,n,{empty:ot.Callbacks("once memory").add(function(){ot._removeData(t,e+"queue"),ot._removeData(t,n)})})}}),ot.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?ot.queue(this[0],t):void 0===e?this:this.each(function(){var n=ot.queue(this,t,e);ot._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&ot.dequeue(this,t)})},dequeue:function(t){return this.each(function(){ot.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=ot.Deferred(),s=this,a=this.length,r=function(){--i||o.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)n=ot._data(s[a],t+"queueHooks"),n&&n.empty&&(i++,n.empty.add(r));return r(),o.promise(e)}});var $t=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Et=["Top","Right","Bottom","Left"],Ft=function(t,e){return t=e||t,"none"===ot.css(t,"display")||!ot.contains(t.ownerDocument,t)},St=ot.access=function(t,e,n,i,o,s,a){var r=0,l=t.length,u=null==n;if("object"===ot.type(n)){o=!0;for(r in n)ot.access(t,e,r,n[r],!0,s,a)}else if(void 0!==i&&(o=!0,ot.isFunction(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(ot(t),n)})),e))for(;l>r;r++)e(t[r],n,a?i:i.call(t[r],r,e(t[r],n)));return o?t:u?e.call(t):l?e(t[0],n):s},Dt=/^(?:checkbox|radio)$/i;!function(){var t=pt.createElement("input"),e=pt.createElement("div"),n=pt.createDocumentFragment();if(e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",nt.leadingWhitespace=3===e.firstChild.nodeType,nt.tbody=!e.getElementsByTagName("tbody").length,nt.htmlSerialize=!!e.getElementsByTagName("link").length,nt.html5Clone="<:nav></:nav>"!==pt.createElement("nav").cloneNode(!0).outerHTML,t.type="checkbox",t.checked=!0,n.appendChild(t),nt.appendChecked=t.checked,e.innerHTML="<textarea>x</textarea>",nt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,n.appendChild(e),e.innerHTML="<input type='radio' checked='checked' name='t'/>",nt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,nt.noCloneEvent=!0,e.attachEvent&&(e.attachEvent("onclick",function(){nt.noCloneEvent=!1}),e.cloneNode(!0).click()),null==nt.deleteExpando){nt.deleteExpando=!0;try{delete e.test}catch(i){nt.deleteExpando=!1}}}(),function(){var e,n,i=pt.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(nt[e+"Bubbles"]=n in t)||(i.setAttribute(n,"t"),nt[e+"Bubbles"]=i.attributes[n].expando===!1);i=null}();var At=/^(?:input|select|textarea)$/i,jt=/^key/,Nt=/^(?:mouse|pointer|contextmenu)|click/,zt=/^(?:focusinfocus|focusoutblur)$/,Ot=/^([^.]*)(?:\.(.+)|)$/;ot.event={global:{},add:function(t,e,n,i,o){var s,a,r,l,u,d,c,h,f,p,m,g=ot._data(t);if(g){for(n.handler&&(l=n,n=l.handler,o=l.selector),n.guid||(n.guid=ot.guid++),(a=g.events)||(a=g.events={}),(d=g.handle)||(d=g.handle=function(t){return typeof ot===Ct||t&&ot.event.triggered===t.type?void 0:ot.event.dispatch.apply(d.elem,arguments)},d.elem=t),e=(e||"").match(bt)||[""],r=e.length;r--;)s=Ot.exec(e[r])||[],f=m=s[1],p=(s[2]||"").split(".").sort(),f&&(u=ot.event.special[f]||{},f=(o?u.delegateType:u.bindType)||f,u=ot.event.special[f]||{},c=ot.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ot.expr.match.needsContext.test(o),namespace:p.join(".")},l),(h=a[f])||(h=a[f]=[],h.delegateCount=0,u.setup&&u.setup.call(t,i,p,d)!==!1||(t.addEventListener?t.addEventListener(f,d,!1):t.attachEvent&&t.attachEvent("on"+f,d))),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,c):h.push(c),ot.event.global[f]=!0);t=null}},remove:function(t,e,n,i,o){var s,a,r,l,u,d,c,h,f,p,m,g=ot.hasData(t)&&ot._data(t);if(g&&(d=g.events)){for(e=(e||"").match(bt)||[""],u=e.length;u--;)if(r=Ot.exec(e[u])||[],f=m=r[1],p=(r[2]||"").split(".").sort(),f){for(c=ot.event.special[f]||{},f=(i?c.delegateType:c.bindType)||f,h=d[f]||[],r=r[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=s=h.length;s--;)a=h[s],!o&&m!==a.origType||n&&n.guid!==a.guid||r&&!r.test(a.namespace)||i&&i!==a.selector&&("**"!==i||!a.selector)||(h.splice(s,1),a.selector&&h.delegateCount--,c.remove&&c.remove.call(t,a));l&&!h.length&&(c.teardown&&c.teardown.call(t,p,g.handle)!==!1||ot.removeEvent(t,f,g.handle),delete d[f])}else for(f in d)ot.event.remove(t,f+e[u],n,i,!0);ot.isEmptyObject(d)&&(delete g.handle,ot._removeData(t,"events"))}},trigger:function(e,n,i,o){var s,a,r,l,u,d,c,h=[i||pt],f=et.call(e,"type")?e.type:e,p=et.call(e,"namespace")?e.namespace.split("."):[];if(r=d=i=i||pt,3!==i.nodeType&&8!==i.nodeType&&!zt.test(f+ot.event.triggered)&&(f.indexOf(".")>=0&&(p=f.split("."),f=p.shift(),p.sort()),a=f.indexOf(":")<0&&"on"+f,e=e[ot.expando]?e:new ot.Event(f,"object"==typeof e&&e),
  e.isTrigger=o?2:3,e.namespace=p.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:ot.makeArray(n,[e]),u=ot.event.special[f]||{},o||!u.trigger||u.trigger.apply(i,n)!==!1)){if(!o&&!u.noBubble&&!ot.isWindow(i)){for(l=u.delegateType||f,zt.test(l+f)||(r=r.parentNode);r;r=r.parentNode)h.push(r),d=r;d===(i.ownerDocument||pt)&&h.push(d.defaultView||d.parentWindow||t)}for(c=0;(r=h[c++])&&!e.isPropagationStopped();)e.type=c>1?l:u.bindType||f,s=(ot._data(r,"events")||{})[e.type]&&ot._data(r,"handle"),s&&s.apply(r,n),s=a&&r[a],s&&s.apply&&ot.acceptData(r)&&(e.result=s.apply(r,n),e.result===!1&&e.preventDefault());if(e.type=f,!o&&!e.isDefaultPrevented()&&(!u._default||u._default.apply(h.pop(),n)===!1)&&ot.acceptData(i)&&a&&i[f]&&!ot.isWindow(i)){d=i[a],d&&(i[a]=null),ot.event.triggered=f;try{i[f]()}catch(m){}ot.event.triggered=void 0,d&&(i[a]=d)}return e.result}},dispatch:function(t){t=ot.event.fix(t);var e,n,i,o,s,a=[],r=G.call(arguments),l=(ot._data(this,"events")||{})[t.type]||[],u=ot.event.special[t.type]||{};if(r[0]=t,t.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,t)!==!1){for(a=ot.event.handlers.call(this,t,l),e=0;(o=a[e++])&&!t.isPropagationStopped();)for(t.currentTarget=o.elem,s=0;(i=o.handlers[s++])&&!t.isImmediatePropagationStopped();)(!t.namespace_re||t.namespace_re.test(i.namespace))&&(t.handleObj=i,t.data=i.data,n=((ot.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,r),void 0!==n&&(t.result=n)===!1&&(t.preventDefault(),t.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,t),t.result}},handlers:function(t,e){var n,i,o,s,a=[],r=e.delegateCount,l=t.target;if(r&&l.nodeType&&(!t.button||"click"!==t.type))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==t.type)){for(o=[],s=0;r>s;s++)i=e[s],n=i.selector+" ",void 0===o[n]&&(o[n]=i.needsContext?ot(n,this).index(l)>=0:ot.find(n,this,null,[l]).length),o[n]&&o.push(i);o.length&&a.push({elem:l,handlers:o})}return r<e.length&&a.push({elem:this,handlers:e.slice(r)}),a},fix:function(t){if(t[ot.expando])return t;var e,n,i,o=t.type,s=t,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Nt.test(o)?this.mouseHooks:jt.test(o)?this.keyHooks:{}),i=a.props?this.props.concat(a.props):this.props,t=new ot.Event(s),e=i.length;e--;)n=i[e],t[n]=s[n];return t.target||(t.target=s.srcElement||pt),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,a.filter?a.filter(t,s):t},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,i,o,s=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(i=t.target.ownerDocument||pt,o=i.documentElement,n=i.body,t.pageX=e.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==p()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===p()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return ot.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return ot.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,n,i){var o=ot.extend(new ot.Event,n,{type:t,isSimulated:!0,originalEvent:{}});i?ot.event.trigger(o,null,e):ot.event.dispatch.call(e,o),o.isDefaultPrevented()&&n.preventDefault()}},ot.removeEvent=pt.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n,!1)}:function(t,e,n){var i="on"+e;t.detachEvent&&(typeof t[i]===Ct&&(t[i]=null),t.detachEvent(i,n))},ot.Event=function(t,e){return this instanceof ot.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?h:f):this.type=t,e&&ot.extend(this,e),this.timeStamp=t&&t.timeStamp||ot.now(),void(this[ot.expando]=!0)):new ot.Event(t,e)},ot.Event.prototype={isDefaultPrevented:f,isPropagationStopped:f,isImmediatePropagationStopped:f,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=h,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=h,t&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=h,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},ot.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){ot.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,s=t.handleObj;return(!o||o!==i&&!ot.contains(i,o))&&(t.type=s.origType,n=s.handler.apply(this,arguments),t.type=e),n}}}),nt.submitBubbles||(ot.event.special.submit={setup:function(){return ot.nodeName(this,"form")?!1:void ot.event.add(this,"click._submit keypress._submit",function(t){var e=t.target,n=ot.nodeName(e,"input")||ot.nodeName(e,"button")?e.form:void 0;n&&!ot._data(n,"submitBubbles")&&(ot.event.add(n,"submit._submit",function(t){t._submit_bubble=!0}),ot._data(n,"submitBubbles",!0))})},postDispatch:function(t){t._submit_bubble&&(delete t._submit_bubble,this.parentNode&&!t.isTrigger&&ot.event.simulate("submit",this.parentNode,t,!0))},teardown:function(){return ot.nodeName(this,"form")?!1:void ot.event.remove(this,"._submit")}}),nt.changeBubbles||(ot.event.special.change={setup:function(){return At.test(this.nodeName)?(("checkbox"===this.type||"radio"===this.type)&&(ot.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._just_changed=!0)}),ot.event.add(this,"click._change",function(t){this._just_changed&&!t.isTrigger&&(this._just_changed=!1),ot.event.simulate("change",this,t,!0)})),!1):void ot.event.add(this,"beforeactivate._change",function(t){var e=t.target;At.test(e.nodeName)&&!ot._data(e,"changeBubbles")&&(ot.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||ot.event.simulate("change",this.parentNode,t,!0)}),ot._data(e,"changeBubbles",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return ot.event.remove(this,"._change"),!At.test(this.nodeName)}}),nt.focusinBubbles||ot.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){ot.event.simulate(e,t.target,ot.event.fix(t),!0)};ot.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=ot._data(i,e);o||i.addEventListener(t,n,!0),ot._data(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=ot._data(i,e)-1;o?ot._data(i,e,o):(i.removeEventListener(t,n,!0),ot._removeData(i,e))}}}),ot.fn.extend({on:function(t,e,n,i,o){var s,a;if("object"==typeof t){"string"!=typeof e&&(n=n||e,e=void 0);for(s in t)this.on(s,e,n,t[s],o);return this}if(null==n&&null==i?(i=e,n=e=void 0):null==i&&("string"==typeof e?(i=n,n=void 0):(i=n,n=e,e=void 0)),i===!1)i=f;else if(!i)return this;return 1===o&&(a=i,i=function(t){return ot().off(t),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ot.guid++)),this.each(function(){ot.event.add(this,t,i,n,e)})},one:function(t,e,n,i){return this.on(t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,ot(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this}return(e===!1||"function"==typeof e)&&(n=e,e=void 0),n===!1&&(n=f),this.each(function(){ot.event.remove(this,t,n,e)})},trigger:function(t,e){return this.each(function(){ot.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];return n?ot.event.trigger(t,e,n,!0):void 0}});var Ht="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Lt=/ jQuery\d+="(?:null|\d+)"/g,qt=new RegExp("<(?:"+Ht+")[\\s/>]","i"),Pt=/^\s+/,Mt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Rt=/<([\w:]+)/,It=/<tbody/i,Bt=/<|&#?\w+;/,Wt=/<(?:script|style|link)/i,Qt=/checked\s*(?:[^=]|=\s*.checked.)/i,Xt=/^$|\/(?:java|ecma)script/i,Ut=/^true\/(.*)/,Yt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Gt={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:nt.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},Kt=m(pt),Zt=Kt.appendChild(pt.createElement("div"));Gt.optgroup=Gt.option,Gt.tbody=Gt.tfoot=Gt.colgroup=Gt.caption=Gt.thead,Gt.th=Gt.td,ot.extend({clone:function(t,e,n){var i,o,s,a,r,l=ot.contains(t.ownerDocument,t);if(nt.html5Clone||ot.isXMLDoc(t)||!qt.test("<"+t.nodeName+">")?s=t.cloneNode(!0):(Zt.innerHTML=t.outerHTML,Zt.removeChild(s=Zt.firstChild)),!(nt.noCloneEvent&&nt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||ot.isXMLDoc(t)))for(i=g(s),r=g(t),a=0;null!=(o=r[a]);++a)i[a]&&C(o,i[a]);if(e)if(n)for(r=r||g(t),i=i||g(s),a=0;null!=(o=r[a]);a++)_(o,i[a]);else _(t,s);return i=g(s,"script"),i.length>0&&w(i,!l&&g(t,"script")),i=r=o=null,s},buildFragment:function(t,e,n,i){for(var o,s,a,r,l,u,d,c=t.length,h=m(e),f=[],p=0;c>p;p++)if(s=t[p],s||0===s)if("object"===ot.type(s))ot.merge(f,s.nodeType?[s]:s);else if(Bt.test(s)){for(r=r||h.appendChild(e.createElement("div")),l=(Rt.exec(s)||["",""])[1].toLowerCase(),d=Gt[l]||Gt._default,r.innerHTML=d[1]+s.replace(Mt,"<$1></$2>")+d[2],o=d[0];o--;)r=r.lastChild;if(!nt.leadingWhitespace&&Pt.test(s)&&f.push(e.createTextNode(Pt.exec(s)[0])),!nt.tbody)for(s="table"!==l||It.test(s)?"<table>"!==d[1]||It.test(s)?0:r:r.firstChild,o=s&&s.childNodes.length;o--;)ot.nodeName(u=s.childNodes[o],"tbody")&&!u.childNodes.length&&s.removeChild(u);for(ot.merge(f,r.childNodes),r.textContent="";r.firstChild;)r.removeChild(r.firstChild);r=h.lastChild}else f.push(e.createTextNode(s));for(r&&h.removeChild(r),nt.appendChecked||ot.grep(g(f,"input"),v),p=0;s=f[p++];)if((!i||-1===ot.inArray(s,i))&&(a=ot.contains(s.ownerDocument,s),r=g(h.appendChild(s),"script"),a&&w(r),n))for(o=0;s=r[o++];)Xt.test(s.type||"")&&n.push(s);return r=null,h},cleanData:function(t,e){for(var n,i,o,s,a=0,r=ot.expando,l=ot.cache,u=nt.deleteExpando,d=ot.event.special;null!=(n=t[a]);a++)if((e||ot.acceptData(n))&&(o=n[r],s=o&&l[o])){if(s.events)for(i in s.events)d[i]?ot.event.remove(n,i):ot.removeEvent(n,i,s.handle);l[o]&&(delete l[o],u?delete n[r]:typeof n.removeAttribute!==Ct?n.removeAttribute(r):n[r]=null,Y.push(o))}}}),ot.fn.extend({text:function(t){return St(this,function(t){return void 0===t?ot.text(this):this.empty().append((this[0]&&this[0].ownerDocument||pt).createTextNode(t))},null,t,arguments.length)},append:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.appendChild(t)}})},prepend:function(){return this.domManip(arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=y(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return this.domManip(arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},remove:function(t,e){for(var n,i=t?ot.filter(t,this):this,o=0;null!=(n=i[o]);o++)e||1!==n.nodeType||ot.cleanData(g(n)),n.parentNode&&(e&&ot.contains(n.ownerDocument,n)&&w(g(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var t,e=0;null!=(t=this[e]);e++){for(1===t.nodeType&&ot.cleanData(g(t,!1));t.firstChild;)t.removeChild(t.firstChild);t.options&&ot.nodeName(t,"select")&&(t.options.length=0)}return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return ot.clone(this,t,e)})},html:function(t){return St(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t)return 1===e.nodeType?e.innerHTML.replace(Lt,""):void 0;if("string"==typeof t&&!Wt.test(t)&&(nt.htmlSerialize||!qt.test(t))&&(nt.leadingWhitespace||!Pt.test(t))&&!Gt[(Rt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Mt,"<$1></$2>");try{for(;i>n;n++)e=this[n]||{},1===e.nodeType&&(ot.cleanData(g(e,!1)),e.innerHTML=t);e=0}catch(o){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=arguments[0];return this.domManip(arguments,function(e){t=this.parentNode,ot.cleanData(g(this)),t&&t.replaceChild(e,this)}),t&&(t.length||t.nodeType)?this:this.remove()},detach:function(t){return this.remove(t,!0)},domManip:function(t,e){t=K.apply([],t);var n,i,o,s,a,r,l=0,u=this.length,d=this,c=u-1,h=t[0],f=ot.isFunction(h);if(f||u>1&&"string"==typeof h&&!nt.checkClone&&Qt.test(h))return this.each(function(n){var i=d.eq(n);f&&(t[0]=h.call(this,n,i.html())),i.domManip(t,e)});if(u&&(r=ot.buildFragment(t,this[0].ownerDocument,!1,this),n=r.firstChild,1===r.childNodes.length&&(r=n),n)){for(s=ot.map(g(r,"script"),b),o=s.length;u>l;l++)i=r,l!==c&&(i=ot.clone(i,!0,!0),o&&ot.merge(s,g(i,"script"))),e.call(this[l],i,l);if(o)for(a=s[s.length-1].ownerDocument,ot.map(s,x),l=0;o>l;l++)i=s[l],Xt.test(i.type||"")&&!ot._data(i,"globalEval")&&ot.contains(a,i)&&(i.src?ot._evalUrl&&ot._evalUrl(i.src):ot.globalEval((i.text||i.textContent||i.innerHTML||"").replace(Yt,"")));r=n=null}return this}}),ot.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){ot.fn[t]=function(t){for(var n,i=0,o=[],s=ot(t),a=s.length-1;a>=i;i++)n=i===a?this:this.clone(!0),ot(s[i])[e](n),Z.apply(o,n.get());return this.pushStack(o)}});var Vt,Jt={};!function(){var t;nt.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=pt.getElementsByTagName("body")[0],n&&n.style?(e=pt.createElement("div"),i=pt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),typeof e.style.zoom!==Ct&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(pt.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var te,ee,ne=/^margin/,ie=new RegExp("^("+$t+")(?!px)[a-z%]+$","i"),oe=/^(top|right|bottom|left)$/;t.getComputedStyle?(te=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):t.getComputedStyle(e,null)},ee=function(t,e,n){var i,o,s,a,r=t.style;return n=n||te(t),a=n?n.getPropertyValue(e)||n[e]:void 0,n&&(""!==a||ot.contains(t.ownerDocument,t)||(a=ot.style(t,e)),ie.test(a)&&ne.test(e)&&(i=r.width,o=r.minWidth,s=r.maxWidth,r.minWidth=r.maxWidth=r.width=a,a=n.width,r.width=i,r.minWidth=o,r.maxWidth=s)),void 0===a?a:a+""}):pt.documentElement.currentStyle&&(te=function(t){return t.currentStyle},ee=function(t,e,n){var i,o,s,a,r=t.style;return n=n||te(t),a=n?n[e]:void 0,null==a&&r&&r[e]&&(a=r[e]),ie.test(a)&&!oe.test(e)&&(i=r.left,o=t.runtimeStyle,s=o&&o.left,s&&(o.left=t.currentStyle.left),r.left="fontSize"===e?"1em":a,a=r.pixelLeft+"px",r.left=i,s&&(o.left=s)),void 0===a?a:a+""||"auto"}),function(){function e(){var e,n,i,o;n=pt.getElementsByTagName("body")[0],n&&n.style&&(e=pt.createElement("div"),i=pt.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),e.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s=a=!1,l=!0,t.getComputedStyle&&(s="1%"!==(t.getComputedStyle(e,null)||{}).top,a="4px"===(t.getComputedStyle(e,null)||{width:"4px"}).width,o=e.appendChild(pt.createElement("div")),o.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",o.style.marginRight=o.style.width="0",e.style.width="1px",l=!parseFloat((t.getComputedStyle(o,null)||{}).marginRight),e.removeChild(o)),e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",o=e.getElementsByTagName("td"),o[0].style.cssText="margin:0;border:0;padding:0;display:none",r=0===o[0].offsetHeight,r&&(o[0].style.display="",o[1].style.display="none",r=0===o[0].offsetHeight),n.removeChild(i))}var n,i,o,s,a,r,l;n=pt.createElement("div"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",o=n.getElementsByTagName("a")[0],i=o&&o.style,i&&(i.cssText="float:left;opacity:.5",nt.opacity="0.5"===i.opacity,nt.cssFloat=!!i.cssFloat,n.style.backgroundClip="content-box",n.cloneNode(!0).style.backgroundClip="",nt.clearCloneStyle="content-box"===n.style.backgroundClip,nt.boxSizing=""===i.boxSizing||""===i.MozBoxSizing||""===i.WebkitBoxSizing,ot.extend(nt,{reliableHiddenOffsets:function(){return null==r&&e(),r},boxSizingReliable:function(){return null==a&&e(),a},pixelPosition:function(){return null==s&&e(),s},reliableMarginRight:function(){return null==l&&e(),l}}))}(),ot.swap=function(t,e,n,i){var o,s,a={};for(s in e)a[s]=t.style[s],t.style[s]=e[s];o=n.apply(t,i||[]);for(s in e)t.style[s]=a[s];return o};var se=/alpha\([^)]*\)/i,ae=/opacity\s*=\s*([^)]*)/,re=/^(none|table(?!-c[ea]).+)/,le=new RegExp("^("+$t+")(.*)$","i"),ue=new RegExp("^([+-])=("+$t+")","i"),de={position:"absolute",visibility:"hidden",display:"block"},ce={letterSpacing:"0",fontWeight:"400"},he=["Webkit","O","Moz","ms"];ot.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=ee(t,"opacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":nt.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,s,a,r=ot.camelCase(e),l=t.style;if(e=ot.cssProps[r]||(ot.cssProps[r]=E(l,r)),a=ot.cssHooks[e]||ot.cssHooks[r],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(t,!1,i))?o:l[e];if(s=typeof n,"string"===s&&(o=ue.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(ot.css(t,e)),s="number"),null!=n&&n===n&&("number"!==s||ot.cssNumber[r]||(n+="px"),nt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(t,n,i)))))try{l[e]=n}catch(u){}}},css:function(t,e,n,i){var o,s,a,r=ot.camelCase(e);return e=ot.cssProps[r]||(ot.cssProps[r]=E(t.style,r)),a=ot.cssHooks[e]||ot.cssHooks[r],a&&"get"in a&&(s=a.get(t,!0,n)),void 0===s&&(s=ee(t,e,i)),"normal"===s&&e in ce&&(s=ce[e]),""===n||n?(o=parseFloat(s),n===!0||ot.isNumeric(o)?o||0:s):s}}),ot.each(["height","width"],function(t,e){ot.cssHooks[e]={get:function(t,n,i){return n?re.test(ot.css(t,"display"))&&0===t.offsetWidth?ot.swap(t,de,function(){return A(t,e,i)}):A(t,e,i):void 0},set:function(t,n,i){var o=i&&te(t);return S(t,n,i?D(t,e,i,nt.boxSizing&&"border-box"===ot.css(t,"boxSizing",!1,o),o):0)}}}),nt.opacity||(ot.cssHooks.opacity={get:function(t,e){return ae.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var n=t.style,i=t.currentStyle,o=ot.isNumeric(e)?"alpha(opacity="+100*e+")":"",s=i&&i.filter||n.filter||"";n.zoom=1,(e>=1||""===e)&&""===ot.trim(s.replace(se,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===e||i&&!i.filter)||(n.filter=se.test(s)?s.replace(se,o):s+" "+o)}}),ot.cssHooks.marginRight=$(nt.reliableMarginRight,function(t,e){return e?ot.swap(t,{display:"inline-block"},ee,[t,"marginRight"]):void 0}),ot.each({margin:"",padding:"",border:"Width"},function(t,e){ot.cssHooks[t+e]={expand:function(n){for(var i=0,o={},s="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+Et[i]+e]=s[i]||s[i-2]||s[0];return o}},ne.test(t)||(ot.cssHooks[t+e].set=S)}),ot.fn.extend({css:function(t,e){return St(this,function(t,e,n){var i,o,s={},a=0;if(ot.isArray(e)){for(i=te(t),o=e.length;o>a;a++)s[e[a]]=ot.css(t,e[a],!1,i);return s}return void 0!==n?ot.style(t,e,n):ot.css(t,e)},t,e,arguments.length>1)},show:function(){return F(this,!0)},hide:function(){return F(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Ft(this)?ot(this).show():ot(this).hide()})}}),ot.Tween=j,j.prototype={constructor:j,init:function(t,e,n,i,o,s){this.elem=t,this.prop=n,this.easing=o||"swing",this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=s||(ot.cssNumber[n]?"":"px")},cur:function(){var t=j.propHooks[this.prop];return t&&t.get?t.get(this):j.propHooks._default.get(this)},run:function(t){var e,n=j.propHooks[this.prop];return this.options.duration?this.pos=e=ot.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),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(t){var e;return null==t.elem[t.prop]||t.elem.style&&null!=t.elem.style[t.prop]?(e=ot.css(t.elem,t.prop,""),e&&"auto"!==e?e:0):t.elem[t.prop]},set:function(t){ot.fx.step[t.prop]?ot.fx.step[t.prop](t):t.elem.style&&(null!=t.elem.style[ot.cssProps[t.prop]]||ot.cssHooks[t.prop])?ot.style(t.elem,t.prop,t.now+t.unit):t.elem[t.prop]=t.now}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},ot.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2}},ot.fx=j.prototype.init,ot.fx.step={};var fe,pe,me=/^(?:toggle|show|hide)$/,ge=new RegExp("^(?:([+-])=|)("+$t+")([a-z%]*)$","i"),ve=/queueHooks$/,ye=[H],be={"*":[function(t,e){var n=this.createTween(t,e),i=n.cur(),o=ge.exec(e),s=o&&o[3]||(ot.cssNumber[t]?"":"px"),a=(ot.cssNumber[t]||"px"!==s&&+i)&&ge.exec(ot.css(n.elem,t)),r=1,l=20;if(a&&a[3]!==s){s=s||a[3],o=o||[],a=+i||1;do r=r||".5",a/=r,ot.style(n.elem,t,a+s);while(r!==(r=n.cur()/i)&&1!==r&&--l)}return o&&(a=n.start=+a||+i||0,n.unit=s,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};ot.Animation=ot.extend(q,{tweener:function(t,e){ot.isFunction(t)?(e=t,t=["*"]):t=t.split(" ");for(var n,i=0,o=t.length;o>i;i++)n=t[i],be[n]=be[n]||[],be[n].unshift(e)},prefilter:function(t,e){e?ye.unshift(t):ye.push(t)}}),ot.speed=function(t,e,n){var i=t&&"object"==typeof t?ot.extend({},t):{complete:n||!n&&e||ot.isFunction(t)&&t,duration:t,easing:n&&e||e&&!ot.isFunction(e)&&e};return i.duration=ot.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ot.fx.speeds?ot.fx.speeds[i.duration]:ot.fx.speeds._default,(null==i.queue||i.queue===!0)&&(i.queue="fx"),i.old=i.complete,i.complete=function(){ot.isFunction(i.old)&&i.old.call(this),i.queue&&ot.dequeue(this,i.queue)},i},ot.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Ft).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=ot.isEmptyObject(t),s=ot.speed(e,n,i),a=function(){var e=q(this,ot.extend({},t),s);(o||ot._data(this,"finish"))&&e.stop(!0)};return a.finish=a,o||s.queue===!1?this.each(a):this.queue(s.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=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=ot.timers,a=ot._data(this);if(o)a[o]&&a[o].stop&&i(a[o]);else for(o in a)a[o]&&a[o].stop&&ve.test(o)&&i(a[o]);for(o=s.length;o--;)s[o].elem!==this||null!=t&&s[o].queue!==t||(s[o].anim.stop(n),e=!1,s.splice(o,1));(e||!n)&&ot.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,n=ot._data(this),i=n[t+"queue"],o=n[t+"queueHooks"],s=ot.timers,a=i?i.length:0;for(n.finish=!0,ot.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;a>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),ot.each(["toggle","show","hide"],function(t,e){var n=ot.fn[e];ot.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(z(e,!0),t,i,o)}}),ot.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){ot.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),ot.timers=[],ot.fx.tick=function(){var t,e=ot.timers,n=0;for(fe=ot.now();n<e.length;n++)t=e[n],t()||e[n]!==t||e.splice(n--,1);e.length||ot.fx.stop(),fe=void 0},ot.fx.timer=function(t){ot.timers.push(t),t()?ot.fx.start():ot.timers.pop()},ot.fx.interval=13,ot.fx.start=function(){pe||(pe=setInterval(ot.fx.tick,ot.fx.interval))},ot.fx.stop=function(){clearInterval(pe),pe=null},ot.fx.speeds={slow:600,fast:200,_default:400},ot.fn.delay=function(t,e){return t=ot.fx?ot.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=setTimeout(e,t);n.stop=function(){clearTimeout(i)}})},function(){var t,e,n,i,o;e=pt.createElement("div"),e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i=e.getElementsByTagName("a")[0],n=pt.createElement("select"),o=n.appendChild(pt.createElement("option")),t=e.getElementsByTagName("input")[0],i.style.cssText="top:1px",nt.getSetAttribute="t"!==e.className,nt.style=/top/.test(i.getAttribute("style")),nt.hrefNormalized="/a"===i.getAttribute("href"),nt.checkOn=!!t.value,nt.optSelected=o.selected,nt.enctype=!!pt.createElement("form").enctype,n.disabled=!0,nt.optDisabled=!o.disabled,t=pt.createElement("input"),t.setAttribute("value",""),nt.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),nt.radioValue="t"===t.value}();var xe=/\r/g;ot.fn.extend({val:function(t){var e,n,i,o=this[0];{if(arguments.length)return i=ot.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,ot(this).val()):t,null==o?o="":"number"==typeof o?o+="":ot.isArray(o)&&(o=ot.map(o,function(t){return null==t?"":t+""})),e=ot.valHooks[this.type]||ot.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))});if(o)return e=ot.valHooks[o.type]||ot.valHooks[o.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(xe,""):null==n?"":n)}}}),ot.extend({valHooks:{option:{get:function(t){var e=ot.find.attr(t,"value");return null!=e?e:ot.trim(ot.text(t))}},select:{get:function(t){for(var e,n,i=t.options,o=t.selectedIndex,s="select-one"===t.type||0>o,a=s?null:[],r=s?o+1:i.length,l=0>o?r:s?o:0;r>l;l++)if(n=i[l],(n.selected||l===o)&&(nt.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ot.nodeName(n.parentNode,"optgroup"))){if(e=ot(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,s=ot.makeArray(e),a=o.length;a--;)if(i=o[a],ot.inArray(ot.valHooks.option.get(i),s)>=0)try{i.selected=n=!0}catch(r){i.scrollHeight}else i.selected=!1;return n||(t.selectedIndex=-1),o}}}}),ot.each(["radio","checkbox"],function(){ot.valHooks[this]={set:function(t,e){return ot.isArray(e)?t.checked=ot.inArray(ot(t).val(),e)>=0:void 0}},nt.checkOn||(ot.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var we,_e,Ce=ot.expr.attrHandle,ke=/^(?:checked|selected)$/i,Te=nt.getSetAttribute,$e=nt.input;ot.fn.extend({attr:function(t,e){return St(this,ot.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){ot.removeAttr(this,t)})}}),ot.extend({attr:function(t,e,n){var i,o,s=t.nodeType;if(t&&3!==s&&8!==s&&2!==s)return typeof t.getAttribute===Ct?ot.prop(t,e,n):(1===s&&ot.isXMLDoc(t)||(e=e.toLowerCase(),i=ot.attrHooks[e]||(ot.expr.match.bool.test(e)?_e:we)),void 0===n?i&&"get"in i&&null!==(o=i.get(t,e))?o:(o=ot.find.attr(t,e),null==o?void 0:o):null!==n?i&&"set"in i&&void 0!==(o=i.set(t,n,e))?o:(t.setAttribute(e,n+""),n):void ot.removeAttr(t,e))},removeAttr:function(t,e){var n,i,o=0,s=e&&e.match(bt);if(s&&1===t.nodeType)for(;n=s[o++];)i=ot.propFix[n]||n,ot.expr.match.bool.test(n)?$e&&Te||!ke.test(n)?t[i]=!1:t[ot.camelCase("default-"+n)]=t[i]=!1:ot.attr(t,n,""),t.removeAttribute(Te?n:i)},attrHooks:{type:{set:function(t,e){if(!nt.radioValue&&"radio"===e&&ot.nodeName(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}}}),_e={set:function(t,e,n){return e===!1?ot.removeAttr(t,n):$e&&Te||!ke.test(n)?t.setAttribute(!Te&&ot.propFix[n]||n,n):t[ot.camelCase("default-"+n)]=t[n]=!0,n}},ot.each(ot.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Ce[e]||ot.find.attr;Ce[e]=$e&&Te||!ke.test(e)?function(t,e,i){var o,s;return i||(s=Ce[e],Ce[e]=o,o=null!=n(t,e,i)?e.toLowerCase():null,Ce[e]=s),o}:function(t,e,n){return n?void 0:t[ot.camelCase("default-"+e)]?e.toLowerCase():null}}),$e&&Te||(ot.attrHooks.value={set:function(t,e,n){return ot.nodeName(t,"input")?void(t.defaultValue=e):we&&we.set(t,e,n)}}),Te||(we={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},Ce.id=Ce.name=Ce.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},ot.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:we.set},ot.attrHooks.contenteditable={set:function(t,e,n){we.set(t,""===e?!1:e,n)}},ot.each(["width","height"],function(t,e){ot.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),nt.style||(ot.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var Ee=/^(?:input|select|textarea|button|object)$/i,Fe=/^(?:a|area)$/i;ot.fn.extend({prop:function(t,e){return St(this,ot.prop,t,e,arguments.length>1)},removeProp:function(t){return t=ot.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),ot.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(t,e,n){var i,o,s,a=t.nodeType;if(t&&3!==a&&8!==a&&2!==a)return s=1!==a||!ot.isXMLDoc(t),s&&(e=ot.propFix[e]||e,o=ot.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=ot.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||Fe.test(t.nodeName)&&t.href?0:-1}}}}),nt.hrefNormalized||ot.each(["href","src"],function(t,e){ot.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),nt.optSelected||(ot.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null}}),ot.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ot.propFix[this.toLowerCase()]=this}),nt.enctype||(ot.propFix.enctype="encoding");var Se=/[\t\r\n\f]/g;ot.fn.extend({addClass:function(t){var e,n,i,o,s,a,r=0,l=this.length,u="string"==typeof t&&t;if(ot.isFunction(t))return this.each(function(e){ot(this).addClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(bt)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):" ")){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=ot.trim(i),n.className!==a&&(n.className=a)}return this},removeClass:function(t){var e,n,i,o,s,a,r=0,l=this.length,u=0===arguments.length||"string"==typeof t&&t;if(ot.isFunction(t))return this.each(function(e){ot(this).removeClass(t.call(this,e,this.className))});if(u)for(e=(t||"").match(bt)||[];l>r;r++)if(n=this[r],i=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(Se," "):"")){
  for(s=0;o=e[s++];)for(;i.indexOf(" "+o+" ")>=0;)i=i.replace(" "+o+" "," ");a=t?ot.trim(i):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(t,e){var n=typeof t;return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):ot.isFunction(t)?this.each(function(n){ot(this).toggleClass(t.call(this,n,this.className,e),e)}):this.each(function(){if("string"===n)for(var e,i=0,o=ot(this),s=t.match(bt)||[];e=s[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else(n===Ct||"boolean"===n)&&(this.className&&ot._data(this,"__className__",this.className),this.className=this.className||t===!1?"":ot._data(this,"__className__")||"")})},hasClass:function(t){for(var e=" "+t+" ",n=0,i=this.length;i>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Se," ").indexOf(e)>=0)return!0;return!1}}),ot.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){ot.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),ot.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)},bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}});var De=ot.now(),Ae=/\?/,je=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ot.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var n,i=null,o=ot.trim(e+"");return o&&!ot.trim(o.replace(je,function(t,e,o,s){return n&&e&&(i=0),0===i?t:(n=o||e,i+=!s-!o,"")}))?Function("return "+o)():ot.error("Invalid JSON: "+e)},ot.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(i=new DOMParser,n=i.parseFromString(e,"text/xml")):(n=new ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(e))}catch(o){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ot.error("Invalid XML: "+e),n};var Ne,ze,Oe=/#.*$/,He=/([?&])_=[^&]*/,Le=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,qe=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Pe=/^(?:GET|HEAD)$/,Me=/^\/\//,Re=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Ie={},Be={},We="*/".concat("*");try{ze=location.href}catch(Qe){ze=pt.createElement("a"),ze.href="",ze=ze.href}Ne=Re.exec(ze.toLowerCase())||[],ot.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ze,type:"GET",isLocal:qe.test(Ne[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":We,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":ot.parseJSON,"text xml":ot.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?R(R(t,ot.ajaxSettings),e):R(ot.ajaxSettings,t)},ajaxPrefilter:P(Ie),ajaxTransport:P(Be),ajax:function(t,e){function n(t,e,n,i){var o,d,v,y,x,_=e;2!==b&&(b=2,r&&clearTimeout(r),u=void 0,a=i||"",w.readyState=t>0?4:0,o=t>=200&&300>t||304===t,n&&(y=I(c,w,n)),y=B(c,y,w,o),o?(c.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(ot.lastModified[s]=x),x=w.getResponseHeader("etag"),x&&(ot.etag[s]=x)),204===t||"HEAD"===c.type?_="nocontent":304===t?_="notmodified":(_=y.state,d=y.data,v=y.error,o=!v)):(v=_,(t||!_)&&(_="error",0>t&&(t=0))),w.status=t,w.statusText=(e||_)+"",o?p.resolveWith(h,[d,_,w]):p.rejectWith(h,[w,_,v]),w.statusCode(g),g=void 0,l&&f.trigger(o?"ajaxSuccess":"ajaxError",[w,c,o?d:v]),m.fireWith(h,[w,_]),l&&(f.trigger("ajaxComplete",[w,c]),--ot.active||ot.event.trigger("ajaxStop")))}"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,o,s,a,r,l,u,d,c=ot.ajaxSetup({},e),h=c.context||c,f=c.context&&(h.nodeType||h.jquery)?ot(h):ot.event,p=ot.Deferred(),m=ot.Callbacks("once memory"),g=c.statusCode||{},v={},y={},b=0,x="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(2===b){if(!d)for(d={};e=Le.exec(a);)d[e[1].toLowerCase()]=e[2];e=d[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return 2===b?a:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return b||(t=y[n]=y[n]||t,v[t]=e),this},overrideMimeType:function(t){return b||(c.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>b)for(e in t)g[e]=[g[e],t[e]];else w.always(t[w.status]);return this},abort:function(t){var e=t||x;return u&&u.abort(e),n(0,e),this}};if(p.promise(w).complete=m.add,w.success=w.done,w.error=w.fail,c.url=((t||c.url||ze)+"").replace(Oe,"").replace(Me,Ne[1]+"//"),c.type=e.method||e.type||c.method||c.type,c.dataTypes=ot.trim(c.dataType||"*").toLowerCase().match(bt)||[""],null==c.crossDomain&&(i=Re.exec(c.url.toLowerCase()),c.crossDomain=!(!i||i[1]===Ne[1]&&i[2]===Ne[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(Ne[3]||("http:"===Ne[1]?"80":"443")))),c.data&&c.processData&&"string"!=typeof c.data&&(c.data=ot.param(c.data,c.traditional)),M(Ie,c,e,w),2===b)return w;l=ot.event&&c.global,l&&0===ot.active++&&ot.event.trigger("ajaxStart"),c.type=c.type.toUpperCase(),c.hasContent=!Pe.test(c.type),s=c.url,c.hasContent||(c.data&&(s=c.url+=(Ae.test(s)?"&":"?")+c.data,delete c.data),c.cache===!1&&(c.url=He.test(s)?s.replace(He,"$1_="+De++):s+(Ae.test(s)?"&":"?")+"_="+De++)),c.ifModified&&(ot.lastModified[s]&&w.setRequestHeader("If-Modified-Since",ot.lastModified[s]),ot.etag[s]&&w.setRequestHeader("If-None-Match",ot.etag[s])),(c.data&&c.hasContent&&c.contentType!==!1||e.contentType)&&w.setRequestHeader("Content-Type",c.contentType),w.setRequestHeader("Accept",c.dataTypes[0]&&c.accepts[c.dataTypes[0]]?c.accepts[c.dataTypes[0]]+("*"!==c.dataTypes[0]?", "+We+"; q=0.01":""):c.accepts["*"]);for(o in c.headers)w.setRequestHeader(o,c.headers[o]);if(c.beforeSend&&(c.beforeSend.call(h,w,c)===!1||2===b))return w.abort();x="abort";for(o in{success:1,error:1,complete:1})w[o](c[o]);if(u=M(Be,c,e,w)){w.readyState=1,l&&f.trigger("ajaxSend",[w,c]),c.async&&c.timeout>0&&(r=setTimeout(function(){w.abort("timeout")},c.timeout));try{b=1,u.send(v,n)}catch(_){if(!(2>b))throw _;n(-1,_)}}else n(-1,"No Transport");return w},getJSON:function(t,e,n){return ot.get(t,e,n,"json")},getScript:function(t,e){return ot.get(t,void 0,e,"script")}}),ot.each(["get","post"],function(t,e){ot[e]=function(t,n,i,o){return ot.isFunction(n)&&(o=o||i,i=n,n=void 0),ot.ajax({url:t,type:e,dataType:o,data:n,success:i})}}),ot._evalUrl=function(t){return ot.ajax({url:t,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},ot.fn.extend({wrapAll:function(t){if(ot.isFunction(t))return this.each(function(e){ot(this).wrapAll(t.call(this,e))});if(this[0]){var e=ot(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstChild&&1===t.firstChild.nodeType;)t=t.firstChild;return t}).append(this)}return this},wrapInner:function(t){return ot.isFunction(t)?this.each(function(e){ot(this).wrapInner(t.call(this,e))}):this.each(function(){var e=ot(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=ot.isFunction(t);return this.each(function(n){ot(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(){return this.parent().each(function(){ot.nodeName(this,"body")||ot(this).replaceWith(this.childNodes)}).end()}}),ot.expr.filters.hidden=function(t){return t.offsetWidth<=0&&t.offsetHeight<=0||!nt.reliableHiddenOffsets()&&"none"===(t.style&&t.style.display||ot.css(t,"display"))},ot.expr.filters.visible=function(t){return!ot.expr.filters.hidden(t)};var Xe=/%20/g,Ue=/\[\]$/,Ye=/\r?\n/g,Ge=/^(?:submit|button|image|reset|file)$/i,Ke=/^(?:input|select|textarea|keygen)/i;ot.param=function(t,e){var n,i=[],o=function(t,e){e=ot.isFunction(e)?e():null==e?"":e,i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=ot.ajaxSettings&&ot.ajaxSettings.traditional),ot.isArray(t)||t.jquery&&!ot.isPlainObject(t))ot.each(t,function(){o(this.name,this.value)});else for(n in t)W(n,t[n],e,o);return i.join("&").replace(Xe,"+")},ot.fn.extend({serialize:function(){return ot.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=ot.prop(this,"elements");return t?ot.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!ot(this).is(":disabled")&&Ke.test(this.nodeName)&&!Ge.test(t)&&(this.checked||!Dt.test(t))}).map(function(t,e){var n=ot(this).val();return null==n?null:ot.isArray(n)?ot.map(n,function(t){return{name:e.name,value:t.replace(Ye,"\r\n")}}):{name:e.name,value:n.replace(Ye,"\r\n")}}).get()}}),ot.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return!this.isLocal&&/^(get|post|head|put|delete|options)$/i.test(this.type)&&Q()||X()}:Q;var Ze=0,Ve={},Je=ot.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in Ve)Ve[t](void 0,!0)}),nt.cors=!!Je&&"withCredentials"in Je,Je=nt.ajax=!!Je,Je&&ot.ajaxTransport(function(t){if(!t.crossDomain||nt.cors){var e;return{send:function(n,i){var o,s=t.xhr(),a=++Ze;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)s[o]=t.xhrFields[o];t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(o in n)void 0!==n[o]&&s.setRequestHeader(o,n[o]+"");s.send(t.hasContent&&t.data||null),e=function(n,o){var r,l,u;if(e&&(o||4===s.readyState))if(delete Ve[a],e=void 0,s.onreadystatechange=ot.noop,o)4!==s.readyState&&s.abort();else{u={},r=s.status,"string"==typeof s.responseText&&(u.text=s.responseText);try{l=s.statusText}catch(d){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=u.text?200:404}u&&i(r,l,u,s.getAllResponseHeaders())},t.async?4===s.readyState?setTimeout(e):s.onreadystatechange=Ve[a]=e:e()},abort:function(){e&&e(void 0,!0)}}}}),ot.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(t){return ot.globalEval(t),t}}}),ot.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),ot.ajaxTransport("script",function(t){if(t.crossDomain){var e,n=pt.head||ot("head")[0]||pt.documentElement;return{send:function(i,o){e=pt.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},n.insertBefore(e,n.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var tn=[],en=/(=)\?(?=&|$)|\?\?/;ot.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=tn.pop()||ot.expando+"_"+De++;return this[t]=!0,t}}),ot.ajaxPrefilter("json jsonp",function(e,n,i){var o,s,a,r=e.jsonp!==!1&&(en.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&en.test(e.data)&&"data");return r||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=ot.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(en,"$1"+o):e.jsonp!==!1&&(e.url+=(Ae.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||ot.error(o+" was not called"),a[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},i.always(function(){t[o]=s,e[o]&&(e.jsonpCallback=n.jsonpCallback,tn.push(o)),a&&ot.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),ot.parseHTML=function(t,e,n){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(n=e,e=!1),e=e||pt;var i=ct.exec(t),o=!n&&[];return i?[e.createElement(i[1])]:(i=ot.buildFragment([t],e,o),o&&o.length&&ot(o).remove(),ot.merge([],i.childNodes))};var nn=ot.fn.load;ot.fn.load=function(t,e,n){if("string"!=typeof t&&nn)return nn.apply(this,arguments);var i,o,s,a=this,r=t.indexOf(" ");return r>=0&&(i=ot.trim(t.slice(r,t.length)),t=t.slice(0,r)),ot.isFunction(e)?(n=e,e=void 0):e&&"object"==typeof e&&(s="POST"),a.length>0&&ot.ajax({url:t,type:s,dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?ot("<div>").append(ot.parseHTML(t)).find(i):t)}).complete(n&&function(t,e){a.each(n,o||[t.responseText,e,t])}),this},ot.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){ot.fn[e]=function(t){return this.on(e,t)}}),ot.expr.filters.animated=function(t){return ot.grep(ot.timers,function(e){return t===e.elem}).length};var on=t.document.documentElement;ot.offset={setOffset:function(t,e,n){var i,o,s,a,r,l,u,d=ot.css(t,"position"),c=ot(t),h={};"static"===d&&(t.style.position="relative"),r=c.offset(),s=ot.css(t,"top"),l=ot.css(t,"left"),u=("absolute"===d||"fixed"===d)&&ot.inArray("auto",[s,l])>-1,u?(i=c.position(),a=i.top,o=i.left):(a=parseFloat(s)||0,o=parseFloat(l)||0),ot.isFunction(e)&&(e=e.call(t,n,r)),null!=e.top&&(h.top=e.top-r.top+a),null!=e.left&&(h.left=e.left-r.left+o),"using"in e?e.using.call(t,h):c.css(h)}},ot.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ot.offset.setOffset(this,t,e)});var e,n,i={top:0,left:0},o=this[0],s=o&&o.ownerDocument;if(s)return e=s.documentElement,ot.contains(e,o)?(typeof o.getBoundingClientRect!==Ct&&(i=o.getBoundingClientRect()),n=U(s),{top:i.top+(n.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(n.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):i},position:function(){if(this[0]){var t,e,n={top:0,left:0},i=this[0];return"fixed"===ot.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),ot.nodeName(t[0],"html")||(n=t.offset()),n.top+=ot.css(t[0],"borderTopWidth",!0),n.left+=ot.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-ot.css(i,"marginTop",!0),left:e.left-n.left-ot.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||on;t&&!ot.nodeName(t,"html")&&"static"===ot.css(t,"position");)t=t.offsetParent;return t||on})}}),ot.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n=/Y/.test(e);ot.fn[t]=function(i){return St(this,function(t,i,o){var s=U(t);return void 0===o?s?e in s?s[e]:s.document.documentElement[i]:t[i]:void(s?s.scrollTo(n?ot(s).scrollLeft():o,n?o:ot(s).scrollTop()):t[i]=o)},t,i,arguments.length,null)}}),ot.each(["top","left"],function(t,e){ot.cssHooks[e]=$(nt.pixelPosition,function(t,n){return n?(n=ee(t,e),ie.test(n)?ot(t).position()[e]+"px":n):void 0})}),ot.each({Height:"height",Width:"width"},function(t,e){ot.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){ot.fn[i]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(i===!0||o===!0?"margin":"border");return St(this,function(e,n,i){var o;return ot.isWindow(e)?e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===i?ot.css(e,n,a):ot.style(e,n,i,a)},e,s?i:void 0,s,null)}})}),ot.fn.size=function(){return this.length},ot.fn.andSelf=ot.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return ot});var sn=t.jQuery,an=t.$;return ot.noConflict=function(e){return t.$===ot&&(t.$=an),e&&t.jQuery===ot&&(t.jQuery=sn),ot},typeof e===Ct&&(t.jQuery=t.$=ot),ot}),function(t,e){"use strict";t.rails!==e&&t.error("jquery-ujs has already been loaded!");var n,i=t(document);t.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote], a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not(form button), button[data-confirm]:not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input[type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return t("meta[name=csrf-token]").attr("content")},csrfParam:function(){return t("meta[name=csrf-param]").attr("content")},CSRFProtection:function(t){var e=n.csrfToken();e&&t.setRequestHeader("X-CSRF-Token",e)},refreshCSRFTokens:function(){t('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(e,n,i){var o=t.Event(n);return e.trigger(o,i),o.result!==!1},confirm:function(t){return confirm(t)},ajax:function(e){return t.ajax(e)},href:function(t){return t[0].href},isRemote:function(t){return t.data("remote")!==e&&t.data("remote")!==!1},handleRemote:function(i){var o,s,a,r,l,u;if(n.fire(i,"ajax:before")){if(r=i.data("with-credentials")||null,l=i.data("type")||t.ajaxSettings&&t.ajaxSettings.dataType,i.is("form")){o=i.attr("method"),s=i.attr("action"),a=i.serializeArray();var d=i.data("ujs:submit-button");d&&(a.push(d),i.data("ujs:submit-button",null))}else i.is(n.inputChangeSelector)?(o=i.data("method"),s=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(o=i.data("method")||"get",s=i.data("url"),a=i.serialize(),i.data("params")&&(a=a+"&"+i.data("params"))):(o=i.data("method"),s=n.href(i),a=i.data("params")||null);return u={type:o||"GET",data:a,dataType:l,beforeSend:function(t,o){return o.dataType===e&&t.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),n.fire(i,"ajax:beforeSend",[t,o])?void i.trigger("ajax:send",t):!1},success:function(t,e,n){i.trigger("ajax:success",[t,e,n])},complete:function(t,e){i.trigger("ajax:complete",[t,e])},error:function(t,e,n){i.trigger("ajax:error",[t,e,n])},crossDomain:n.isCrossDomain(s)},r&&(u.xhrFields={withCredentials:r}),s&&(u.url=s),n.ajax(u)}return!1},isCrossDomain:function(t){var e=document.createElement("a");e.href=location.href;var n=document.createElement("a");try{return n.href=t,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||e.protocol+"//"+e.host==n.protocol+"//"+n.host)}catch(i){return!0}},handleMethod:function(i){var o=n.href(i),s=i.data("method"),a=i.attr("target"),r=n.csrfToken(),l=n.csrfParam(),u=t('<form method="post" action="'+o+'"></form>'),d='<input name="_method" value="'+s+'" type="hidden" />';l===e||r===e||n.isCrossDomain(o)||(d+='<input name="'+l+'" value="'+r+'" type="hidden" />'),a&&u.attr("target",a),u.hide().append(d).appendTo("body"),u.submit()},formElements:function(e,n){return e.is("form")?t(e[0].elements).filter(n):e.find(n)},disableFormElements:function(e){n.formElements(e,n.disableSelector).each(function(){n.disableFormElement(t(this))})},disableFormElement:function(t){var n,i;n=t.is("button")?"html":"val",i=t.data("disable-with"),t.data("ujs:enable-with",t[n]()),i!==e&&t[n](i),t.prop("disabled",!0)},enableFormElements:function(e){n.formElements(e,n.enableSelector).each(function(){n.enableFormElement(t(this))})},enableFormElement:function(t){var e=t.is("button")?"html":"val";"undefined"!=typeof t.data("ujs:enable-with")&&t[e](t.data("ujs:enable-with")),t.prop("disabled",!1)},allowAction:function(t){var e,i=t.data("confirm"),o=!1;if(!i)return!0;if(n.fire(t,"confirm")){try{o=n.confirm(i)}catch(s){(console.error||console.log).call(console,s.stack||s)}e=n.fire(t,"confirm:complete",[o])}return o&&e},blankInputs:function(e,n,i){var o,s,a=t(),r=n||"input,textarea",l=e.find(r);return l.each(function(){if(o=t(this),s=o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val(),s===i){if(o.is("input[type=radio]")&&l.filter('input[type=radio]:checked[name="'+o.attr("name")+'"]').length)return!0;a=a.add(o)}}),a.length?a:!1},nonBlankInputs:function(t,e){return n.blankInputs(t,e,!0)},stopEverything:function(e){return t(e.target).trigger("ujs:everythingStopped"),e.stopImmediatePropagation(),!1},disableElement:function(t){var i=t.data("disable-with");t.data("ujs:enable-with",t.html()),i!==e&&t.html(i),t.bind("click.railsDisable",function(t){return n.stopEverything(t)})},enableElement:function(t){t.data("ujs:enable-with")!==e&&(t.html(t.data("ujs:enable-with")),t.removeData("ujs:enable-with")),t.unbind("click.railsDisable")}},n.fire(i,"rails:attachBindings")&&(t.ajaxPrefilter(function(t,e,i){t.crossDomain||n.CSRFProtection(i)}),t(window).on("pageshow.rails",function(){t(t.rails.enableSelector).each(function(){var e=t(this);e.data("ujs:enable-with")&&t.rails.enableFormElement(e)}),t(t.rails.linkDisableSelector).each(function(){var e=t(this);e.data("ujs:enable-with")&&t.rails.enableElement(e)})}),i.delegate(n.linkDisableSelector,"ajax:complete",function(){n.enableElement(t(this))}),i.delegate(n.buttonDisableSelector,"ajax:complete",function(){n.enableFormElement(t(this))}),i.delegate(n.linkClickSelector,"click.rails",function(e){var i=t(this),o=i.data("method"),s=i.data("params"),a=e.metaKey||e.ctrlKey;if(!n.allowAction(i))return n.stopEverything(e);if(!a&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(a&&(!o||"GET"===o)&&!s)return!0;var r=n.handleRemote(i);return r===!1?n.enableElement(i):r.fail(function(){n.enableElement(i)}),!1}return o?(n.handleMethod(i),!1):void 0}),i.delegate(n.buttonClickSelector,"click.rails",function(e){var i=t(this);if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(e);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var o=n.handleRemote(i);return o===!1?n.enableFormElement(i):o.fail(function(){n.enableFormElement(i)}),!1}),i.delegate(n.inputChangeSelector,"change.rails",function(e){var i=t(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(e)}),i.delegate(n.formSubmitSelector,"submit.rails",function(i){var o,s,a=t(this),r=n.isRemote(a);if(!n.allowAction(a))return n.stopEverything(i);if(a.attr("novalidate")===e&&(o=n.blankInputs(a,n.requiredInputSelector,!1),o&&n.fire(a,"ajax:aborted:required",[o])))return n.stopEverything(i);if(r){if(s=n.nonBlankInputs(a,n.fileInputSelector)){setTimeout(function(){n.disableFormElements(a)},13);var l=n.fire(a,"ajax:aborted:file",[s]);return l||setTimeout(function(){n.enableFormElements(a)},13),l}return n.handleRemote(a),!1}setTimeout(function(){n.disableFormElements(a)},13)}),i.delegate(n.formInputClickSelector,"click.rails",function(e){var i=t(this);if(!n.allowAction(i))return n.stopEverything(e);var o=i.attr("name"),s=o?{name:o,value:i.val()}:null;i.closest("form").data("ujs:submit-button",s)}),i.delegate(n.formSubmitSelector,"ajax:send.rails",function(e){this===e.target&&n.disableFormElements(t(this))}),i.delegate(n.formSubmitSelector,"ajax:complete.rails",function(e){this===e.target&&n.enableFormElements(t(this))}),t(function(){n.refreshCSRFTokens()}))}(jQuery),!function(t){"use strict";function e(t){if(void 0===Function.prototype.name){var e=/function\s([^(]{1,})\(/,n=e.exec(t.toString());return n&&n.length>1?n[1].trim():""}return void 0===t.prototype?t.constructor.name:t.prototype.constructor.name}function n(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}var i="6.0.1",o={version:i,_plugins:{},_uuids:[],_activePlugins:{},rtl:function(){return"rtl"===t("html").attr("dir")},plugin:function(t,i){var o=i||e(t),s=n(o);this._plugins[s]=this[o]=t},registerPlugin:function(t){var n=e(t.constructor).toLowerCase();t.uuid=this.GetYoDigits(6,n),t.$element.attr("data-"+n,t.uuid).trigger("init.zf."+n),this._activePlugins[t.uuid]=t},unregisterPlugin:function(t){var n=e(t.constructor).toLowerCase();delete this._activePlugins[t.uuid],t.$element.removeAttr("data-"+n).trigger("destroyed.zf."+n)},_reflow:function(t){var e=Object.keys(this._activePlugins),n=this;if(t){if("string"==typeof t){var i=t.split("-")[1];i?this._activePlugins[t]._init():(i=new RegExp(t,"i"),e.filter(function(t){return i.test(t)}).forEach(function(t){n._activePlugins[t]._init()}))}}else e.forEach(function(t){n._activePlugins[t]._init()})},GetYoDigits:function(t,e){return t=t||6,Math.round(Math.pow(36,t+1)-Math.random()*Math.pow(36,t)).toString(36).slice(1)+(e?"-"+e:"")},reflow:function(e,n){"undefined"==typeof n?n=Object.keys(this._plugins):"string"==typeof n&&(n=[n]);var i=this;t.each(n,function(n,o){var s=i._plugins[o],a=t(e).find("[data-"+o+"]").addBack("*");a.each(function(){return t(this).attr("zf-plugin")?void console.warn("Tried to initialize "+o+" on an element that already has a Foundation plugin."):void t(this).data("zf-plugin",new s(t(this)))})})},getFnName:e,transitionend:function(t){var e,n={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"otransitionend"},i=document.createElement("div");for(var o in n)"undefined"!=typeof i.style[o]&&(e=n[o]);return e?e:(e=setTimeout(function(){t.triggerHandler("transitionend",[t])},1),"transitionend")}};o.util={throttle:function(t,e){var n=null;return function(){var i=this,o=arguments;null===n&&(n=setTimeout(function(){t.apply(i,o),n=null},e))}}};var s=function(n){var i=typeof n,s=t("meta.foundation-mq"),a=t(".no-js");if(s.length||t('<meta class="foundation-mq">').appendTo(document.head),a.length&&a.removeClass("no-js"),"undefined"===i)o.MediaQuery._init(),o.reflow(this);else{if("string"!==i)throw new TypeError("We're sorry, '"+i+"' is not a valid parameter. You must use a string representing the method you wish to invoke.");var r=Array.prototype.slice.call(arguments,1),l=this.data("zfPlugin");if(void 0===l||void 0===l[n])throw new ReferenceError("We're sorry, '"+n+"' is not an available method for "+(l?e(l):"this element")+".");1===this.length?l[n].apply(l,r):this.each(function(e,i){l[n].apply(t(i).data("zfPlugin"),r)})}return this};window.Foundation=o,t.fn.foundation=s,function(){Date.now&&window.Date.now||(window.Date.now=Date.now=function(){return(new Date).getTime()});for(var t=["webkit","moz"],e=0;e<t.length&&!window.requestAnimationFrame;++e){var n=t[e];window.requestAnimationFrame=window[n+"RequestAnimationFrame"],window.cancelAnimationFrame=window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"]}if(/iP(ad|hone|od).*OS 6/.test(window.navigator.userAgent)||!window.requestAnimationFrame||!window.cancelAnimationFrame){var i=0;window.requestAnimationFrame=function(t){var e=Date.now(),n=Math.max(i+16,e);return setTimeout(function(){t(i=n)},n-e)},window.cancelAnimationFrame=clearTimeout}window.performance&&window.performance.now||(window.performance={start:Date.now(),now:function(){return Date.now()-this.start}})}(),Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,i=function(){},o=function(){return n.apply(this instanceof i?this:t,e.concat(Array.prototype.slice.call(arguments)))};return this.prototype&&(i.prototype=this.prototype),o.prototype=new i,o})}(jQuery),!function(t,e){var n=function(t,e,n,o){var s,a,r,l,u=i(t);if(e){var d=i(e);a=u.offset.top+u.height<=d.height+d.offset.top,s=u.offset.top>=d.offset.top,r=u.offset.left>=d.offset.left,l=u.offset.left+u.width<=d.width}else a=u.offset.top+u.height<=u.windowDims.height+u.windowDims.offset.top,s=u.offset.top>=u.windowDims.offset.top,r=u.offset.left>=u.windowDims.offset.left,l=u.offset.left+u.width<=u.windowDims.width;var c=[a,s,r,l];return n?r===l==!0:o?s===a==!0:-1===c.indexOf(!1)},i=function(t,n){if(t=t.length?t[0]:t,t===e||t===document)throw new Error("I'm sorry, Dave. I'm afraid I can't do that.");var i=t.getBoundingClientRect(),o=t.parentNode.getBoundingClientRect(),s=document.body.getBoundingClientRect(),a=e.pageYOffset,r=e.pageXOffset;return{width:i.width,height:i.height,offset:{top:i.top+a,left:i.left+r},parentDims:{width:o.width,height:o.height,offset:{top:o.top+a,left:o.left+r}},windowDims:{width:s.width,height:s.height,offset:{top:a,left:r}}}},o=function(t,e,n,o,s,a){var r=i(t),l=e?i(e):null;switch(n){case"top":return{left:l.offset.left,top:l.offset.top-(r.height+o)};case"left":return{left:l.offset.left-(r.width+s),top:l.offset.top};case"right":return{left:l.offset.left+l.width+s,top:l.offset.top};case"center top":return{left:l.offset.left+l.width/2-r.width/2,top:l.offset.top-(r.height+o)};case"center bottom":return{left:a?s:l.offset.left+l.width/2-r.width/2,top:l.offset.top+l.height+o};case"center left":return{left:l.offset.left-(r.width+s),top:l.offset.top+l.height/2-r.height/2};case"center right":return{left:l.offset.left+l.width+s+1,top:l.offset.top+l.height/2-r.height/2};case"center":return{left:r.windowDims.offset.left+r.windowDims.width/2-r.width/2,top:r.windowDims.offset.top+r.windowDims.height/2-r.height/2};case"reveal":return{left:(r.windowDims.width-r.width)/2,top:r.windowDims.offset.top+o};case"reveal full":return{left:r.windowDims.offset.left,top:r.windowDims.offset.top};default:return{left:l.offset.left,top:l.offset.top+l.height+o}}};t.Box={ImNotTouchingYou:n,GetDimensions:i,GetOffsets:o}}(window.Foundation,window),!function(t,e){"use strict";e.Keyboard={};var n={9:"TAB",13:"ENTER",27:"ESCAPE",32:"SPACE",37:"ARROW_LEFT",38:"ARROW_UP",39:"ARROW_RIGHT",40:"ARROW_DOWN"},i=function(t){var e={};for(var n in t)e[t[n]]=t[n];return e}(n);e.Keyboard.keys=i;var o=function(t){var e=n[t.which||t.keyCode]||String.fromCharCode(t.which).toUpperCase();return t.shiftKey&&(e="SHIFT_"+e),t.ctrlKey&&(e="CTRL_"+e),t.altKey&&(e="ALT_"+e),e};e.Keyboard.parseKey=o;var s={},a=function(n,i,a){var r,l,u,d=s[e.getFnName(i)],c=o(n);return d?(r="undefined"==typeof d.ltr?d:e.rtl()?t.extend({},d.ltr,d.rtl):t.extend({},d.rtl,d.ltr),l=r[c],u=a[l],void(u&&"function"==typeof u?(u.apply(i),(a.handled||"function"==typeof a.handled)&&a.handled.apply(i)):(a.unhandled||"function"==typeof a.unhandled)&&a.unhandled.apply(i))):console.warn("Component not defined!")};e.Keyboard.handleKey=a;var r=function(e){return e.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!t(this).is(":visible")||t(this).attr("tabindex")<0?!1:!0})};e.Keyboard.findFocusable=r;var l=function(t,e){s[t]=e};e.Keyboard.register=l}(jQuery,window.Foundation),!function(t,e){function n(t){var e={};return"string"!=typeof t?e:(t=t.trim().slice(1,-1))?e=t.split("&").reduce(function(t,e){var n=e.replace(/\+/g," ").split("="),i=n[0],o=n[1];return i=decodeURIComponent(i),o=void 0===o?null:decodeURIComponent(o),t.hasOwnProperty(i)?Array.isArray(t[i])?t[i].push(o):t[i]=[t[i],o]:t[i]=o,t},{}):e}var i={queries:[],current:"",atLeast:function(t){var e=this.get(t);return e?window.matchMedia(e).matches:!1},get:function(t){for(var e in this.queries){var n=this.queries[e];if(t===n.name)return n.value}return null},_init:function(){var e,i=this,o=t(".foundation-mq").css("font-family");e=n(o);for(var s in e)i.queries.push({name:s,value:"only screen and (min-width: "+e[s]+")"});this.current=this._getCurrentSize(),this._watcher()},_getCurrentSize:function(){var t;for(var e in this.queries){var n=this.queries[e];window.matchMedia(n.value).matches&&(t=n)}return"object"==typeof t?t.name:t},_watcher:function(){var e=this;t(window).on("resize.zf.mediaquery",function(){var n=e._getCurrentSize();n!==e.current&&(t(window).trigger("changed.zf.mediaquery",[n,e.current]),e.current=n)})}};e.MediaQuery=i,
  // Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas, David Knight. Dual MIT/BSD license
  window.matchMedia||(window.matchMedia=function(){"use strict";var t=window.styleMedia||window.media;if(!t){var e=document.createElement("style"),n=document.getElementsByTagName("script")[0],i=null;e.type="text/css",e.id="matchmediajs-test",n.parentNode.insertBefore(e,n),i="getComputedStyle"in window&&window.getComputedStyle(e,null)||e.currentStyle,t={matchMedium:function(t){var n="@media "+t+"{ #matchmediajs-test { width: 1px; } }";return e.styleSheet?e.styleSheet.cssText=n:e.textContent=n,"1px"===i.width}}}return function(e){return{matches:t.matchMedium(e||"all"),media:e||"all"}}}())}(jQuery,Foundation),!function(t,e){function n(n,s,a,r){function l(){n||s.hide(),u(),r&&r.apply(s)}function u(){s[0].style.transitionDuration=0,s.removeClass(d+" "+c+" "+a)}if(s=t(s).eq(0),s.length){var d=n?i[0]:i[1],c=n?o[0]:o[1];u(),s.addClass(a).css("transition","none"),requestAnimationFrame(function(){s.addClass(d),n&&s.show()}),requestAnimationFrame(function(){s[0].offsetWidth,s.css("transition",""),s.addClass(c)}),s.one(e.transitionend(s),l)}}var i=["mui-enter","mui-leave"],o=["mui-enter-active","mui-leave-active"],s={animateIn:function(t,e,i){n(!0,t,e,i)},animateOut:function(t,e,i){n(!1,t,e,i)}},a=function(t,e,n){function i(r){a||(a=window.performance.now()),s=r-a,n.apply(e),t>s?o=window.requestAnimationFrame(i,e):(window.cancelAnimationFrame(o),e.trigger("finished.zf.animate",[e]).triggerHandler("finished.zf.animate",[e]))}var o,s,a=null;o=window.requestAnimationFrame(i)};e.Move=a,e.Motion=s}(jQuery,Foundation),!function(t,e){"use strict";e.Nest={Feather:function(e,n){e.attr("role","menubar"),n=n||"zf";var i=e.find("li").attr({role:"menuitem"}),o="is-"+n+"-submenu",s=o+"-item",a="is-"+n+"-submenu-parent";i.each(function(){var e=t(this),n=e.children("ul");n.length&&(e.addClass("has-submenu "+a),n.addClass("submenu "+o).attr("data-submenu","")),e.parent("[data-submenu]").length&&e.addClass("is-submenu-item "+s)})},Burn:function(t,e){var n=(t.find("li").removeAttr("tabindex"),"is-"+e+"-submenu"),i=n+"-item",o="is-"+e+"-submenu-parent";t.find("*").removeClass(n+" "+i+" "+o+" has-submenu is-submenu-item submenu is-active").removeAttr("data-submenu").css("display","")}}}(jQuery,window.Foundation),!function(t,e){"use strict";var n=function(t,e,n){var i,o,s=this,a=e.duration,r=Object.keys(t.data())[0]||"timer",l=-1;this.restart=function(){l=-1,clearTimeout(o),this.start()},this.start=function(){clearTimeout(o),l=0>=l?a:l,t.data("paused",!1),i=Date.now(),o=setTimeout(function(){e.infinite&&s.restart(),n()},l),t.trigger("timerstart.zf."+r)},this.pause=function(){clearTimeout(o),t.data("paused",!0);var e=Date.now();l-=e-i,t.trigger("timerpaused.zf."+r)}},i=function(e,n){var i=e.length;0===i&&n();var o=function(){i--,0===i&&n()};e.each(function(){this.complete?o():"undefined"!=typeof this.naturalWidth&&this.naturalWidth>0?o():t(this).one("load",function(){o()})})};e.Timer=n,e.onImagesLoaded=i}(jQuery,window.Foundation),function(t){function e(){this.removeEventListener("touchmove",n),this.removeEventListener("touchend",e),u=!1}function n(n){if(t.spotSwipe.preventDefault&&n.preventDefault(),u){var i,o=n.touches[0].pageX,d=n.touches[0].pageY,c=s-o,h=a-d;l=(new Date).getTime()-r,Math.abs(c)>=t.spotSwipe.moveThreshold&&l<=t.spotSwipe.timeThreshold?i=c>0?"left":"right":Math.abs(h)>=t.spotSwipe.moveThreshold&&l<=t.spotSwipe.timeThreshold&&(i=h>0?"down":"up"),i&&(e.call(this),t(this).trigger("swipe",i).trigger("swipe"+i))}}function i(t){1==t.touches.length&&(s=t.touches[0].pageX,a=t.touches[0].pageY,u=!0,r=(new Date).getTime(),this.addEventListener("touchmove",n,!1),this.addEventListener("touchend",e,!1))}function o(){this.addEventListener&&this.addEventListener("touchstart",i,!1)}t.spotSwipe={version:"1.0.0",enabled:"ontouchstart"in document.documentElement,preventDefault:!0,moveThreshold:75,timeThreshold:200};var s,a,r,l,u=!1;t.event.special.swipe={setup:o},t.each(["left","up","down","right"],function(){t.event.special["swipe"+this]={setup:function(){t(this).on("swipe",t.noop)}}})}(jQuery),!function(t){t.fn.addTouch=function(){this.each(function(n,i){t(i).bind("touchstart touchmove touchend touchcancel",function(){e(event)})});var e=function(t){var e=t.changedTouches,n=e[0],i={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup"},o=i[t.type],s=document.createEvent("MouseEvent");s.initMouseEvent(o,!0,!0,window,1,n.screenX,n.screenY,n.clientX,n.clientY,!1,!1,!1,!1,0,null),n.target.dispatchEvent(s)}}}(jQuery),!function(t,e){"use strict";e(document).on("click.zf.trigger","[data-open]",function(){var t=e(this).data("open");e("#"+t).triggerHandler("open.zf.trigger",[e(this)])}),e(document).on("click.zf.trigger","[data-close]",function(){var t=e(this).data("close");t?e("#"+t).triggerHandler("close.zf.trigger",[e(this)]):e(this).trigger("close.zf.trigger")}),e(document).on("click.zf.trigger","[data-toggle]",function(){var t=e(this).data("toggle");e("#"+t).triggerHandler("toggle.zf.trigger",[e(this)])}),e(document).on("close.zf.trigger","[data-closable]",function(){var n=e(this).data("closable")||"fade-out";t.Motion?t.Motion.animateOut(e(this),n,function(){e(this).trigger("closed.zf")}):e(this).fadeOut().trigger("closed.zf")});var n=function(){for(var t=["WebKit","Moz","O","Ms",""],e=0;e<t.length;e++)if(t[e]+"MutationObserver"in window)return window[t[e]+"MutationObserver"];return!1}(),i=function(){r(),s(),a(),o()};e(window).load(function(){i()});var o=function(t){var n=e("[data-yeti-box]"),i=["dropdown","tooltip","reveal"];if(t&&("string"==typeof t?i.push(t):"object"==typeof t&&"string"==typeof t[0]?i.concat(t):console.error("Plugin names must be strings")),n.length){var o=i.map(function(t){return"closeme.zf."+t}).join(" ");e(window).off(o).on(o,function(t,n){var i=t.namespace.split(".")[0],o=e("[data-"+i+"]").not('[data-yeti-box="'+n+'"]');o.each(function(){var t=e(this);t.triggerHandler("close.zf.trigger",[t])})})}},s=function(t){var i,o=e("[data-resize]");o.length&&e(window).off("resize.zf.trigger").on("resize.zf.trigger",function(s){i&&clearTimeout(i),i=setTimeout(function(){n||o.each(function(){e(this).triggerHandler("resizeme.zf.trigger")}),o.attr("data-events","resize")},t||10)})},a=function(t){var i,o=e("[data-scroll]");o.length&&e(window).off("scroll.zf.trigger").on("scroll.zf.trigger",function(s){i&&clearTimeout(i),i=setTimeout(function(){n||o.each(function(){e(this).triggerHandler("scrollme.zf.trigger")}),o.attr("data-events","scroll")},t||10)})},r=function(){if(!n)return!1;var t=document.querySelectorAll("[data-resize], [data-scroll], [data-mutate]"),i=function(t){var n=e(t[0].target);switch(n.attr("data-events")){case"resize":n.triggerHandler("resizeme.zf.trigger",[n]);break;case"scroll":n.triggerHandler("scrollme.zf.trigger",[n,window.pageYOffset]);break;default:return!1}};if(t.length)for(var o=0;o<=t.length-1;o++){var s=new n(i);s.observe(t[o],{attributes:!0,childList:!1,characterData:!1,subtree:!1,attributeFilter:["data-events"]})}};t.IHearYou=i}(window.Foundation,window.jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,this.$element.data(),o),this.$window=e(window),this.name="Abide",this.attr="data-abide",this._init(),this._events(),t.registerPlugin(this)}n.defaults={validateOn:"fieldChange",labelErrorClass:"is-invalid-label",inputErrorClass:"is-invalid-input",formErrorSelector:".form-error",formErrorClass:"is-visible",patterns:{alpha:/^[a-zA-Z]+$/,alpha_numeric:/^[a-zA-Z0-9]+$/,integer:/^[-+]?\d+$/,number:/^[-+]?\d*(?:[\.\,]\d+)?$/,card:/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,cvv:/^([0-9]){3,4}$/,email:/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,url:/^(https?|ftp|file|ssh):\/\/(((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-zA-Z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/,domain:/^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,datetime:/^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,date:/(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,time:/^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,dateISO:/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,month_day_year:/^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,day_month_year:/^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,color:/^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/},validators:{equalTo:function(t,e,n){var i=document.getElementById(t.getAttribute(this.add_namespace("data-equalto"))).value,o=t.value,s=i===o;return s}}},n.prototype._init=function(){},n.prototype._events=function(){var t=this;this.$element.off(".abide").on("reset.fndtn.abide",function(n){t.resetForm(e(this))}).on("submit.fndtn.abide",function(e){e.preventDefault(),t.validateForm(t.$element)}).find("input, textarea, select").off(".abide").on("blur.fndtn.abide change.fndtn.abide",function(n){"fieldChange"===t.options.validateOn&&t.validateInput(e(n.target),t.$element)}).on("keydown.fndtn.abide",function(t){})},n.prototype._reflow=function(){},n.prototype.requiredCheck=function(t){switch(t[0].type){case"text":return t.attr("required")&&!t.val()?!1:!0;case"checkbox":return t.attr("required")&&!t.is(":checked")?!1:!0;case"radio":return t.attr("required")&&!t.is(":checked")?!1:!0;default:return!t.attr("required")||t.val()&&t.val().length&&!t.is(":empty")?!0:!1}},n.prototype.findLabel=function(t){return t.next("label").length?t.next("label"):t.closest("label")},n.prototype.addErrorClasses=function(t){var e=this,n=e.findLabel(t),i=t.next(e.options.formErrorSelector)||t.find(e.options.formErrorSelector);n&&n.addClass(e.options.labelErrorClass),i&&i.addClass(e.options.formErrorClass),t.addClass(e.options.inputErrorClass)},n.prototype.removeErrorClasses=function(t){var e=this,n=e.findLabel(t),i=t.next(e.options.formErrorSelector)||t.find(e.options.formErrorSelector);n&&n.hasClass(e.options.labelErrorClass)&&n.removeClass(e.options.labelErrorClass),i&&i.hasClass(e.options.formErrorClass)&&i.removeClass(e.options.formErrorClass),t.hasClass(e.options.inputErrorClass)&&t.removeClass(e.options.inputErrorClass)},n.prototype.validateInput=function(t,n){var i,o,s=this;n.find('input[type="text"]'),n.find('input[type="checkbox"]');"text"===t[0].type?s.requiredCheck(t)&&s.validateText(t)?(s.removeErrorClasses(t),t.trigger("valid.fndtn.abide",t[0])):(s.addErrorClasses(t),t.trigger("invalid.fndtn.abide",t[0])):"radio"===t[0].type?(o=t.attr("name"),i=t.siblings("label"),s.validateRadio(o)?(e(i).each(function(){e(this).hasClass(s.options.labelErrorClass)&&e(this).removeClass(s.options.labelErrorClass)}),t.trigger("valid.fndtn.abide",t[0])):(e(i).each(function(){e(this).addClass(s.options.labelErrorClass)}),t.trigger("invalid.fndtn.abide",t[0]))):"checkbox"===t[0].type?s.requiredCheck(t)?(s.removeErrorClasses(t),t.trigger("valid.fndtn.abide",t[0])):(s.addErrorClasses(t),t.trigger("invalid.fndtn.abide",t[0])):s.requiredCheck(t)&&s.validateText(t)?(s.removeErrorClasses(t),t.trigger("valid.fndtn.abide",t[0])):(s.addErrorClasses(t),t.trigger("invalid.fndtn.abide",t[0]))},n.prototype.validateForm=function(t){for(var n=this,i=t.find("input"),o=t.find("input").length,s=0;o>s;)n.validateInput(e(i[s]),t),s++;t.find(".form-error.is-visible").length||t.find(".is-invalid-label").length?t.find("[data-abide-error]").css("display","block"):t.find("[data-abide-error]").css("display","none")},n.prototype.validateText=function(t){var n=this.options.patterns,i=e(t).val(),o=e(t).attr("pattern");return 0===i.length?!0:i.match(n[o])?!0:!1},n.prototype.validateRadio=function(t){var n=this,i=(e(':radio[name="'+t+'"]').siblings("label"),0);return e(':radio[name="'+t+'"]').each(function(){n.requiredCheck(e(this))||i++,e(this).is(":checked")&&(i=0)}),i>0?!1:!0},n.prototype.matchValidation=function(t,e){},n.prototype.resetForm=function(t){var n=this,i="data-invalid";e("["+n.invalidAttr+"]",t).removeAttr(i),e("."+n.options.labelErrorClass,t).not("small").removeClass(n.options.labelErrorClass),e("."+n.options.inputErrorClass,t).not("small").removeClass(n.options.inputErrorClass),e(".form-error.is-visible").removeClass("is-visible"),t.find("[data-abide-error]").css("display","none"),e(":input",t).not(":button, :submit, :reset, :hidden, [data-abide-ignore]").val("").removeAttr(i)},n.prototype.destroy=function(){},t.plugin(n,"Abide"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this),e.Keyboard.register("Accordion",{ENTER:"toggle",SPACE:"toggle",ARROW_DOWN:"next",ARROW_UP:"previous"})}n.defaults={slideSpeed:250,multiExpand:!1,allowAllClosed:!1},n.prototype._init=function(){this.$element.attr("role","tablist"),this.$tabs=this.$element.children("li"),this.$tabs.each(function(n,i){var o=t(i),s=o.find("[data-tab-content]"),a=s[0].id||e.GetYoDigits(6,"accordion"),r=i.id||a+"-label";o.find("a:first").attr({"aria-controls":a,role:"tab",id:r,"aria-expanded":!1,"aria-selected":!1}),s.attr({role:"tabpanel","aria-labelledby":r,"aria-hidden":!0,id:a})});var n=this.$element.find(".is-active").children("[data-tab-content]");n.length&&this.down(n,!0),this._events()},n.prototype._events=function(){var n=this;this.$tabs.each(function(){var i=t(this),o=i.children("[data-tab-content]");o.length&&i.children("a").off("click.zf.accordion keydown.zf.accordion").on("click.zf.accordion",function(t){t.preventDefault(),i.hasClass("is-active")?(n.options.allowAllClosed||i.siblings().hasClass("is-active"))&&n.up(o):n.down(o)}).on("keydown.zf.accordion",function(t){e.Keyboard.handleKey(t,n,{toggle:function(){n.toggle(o)},next:function(){i.next().find("a").focus().trigger("click.zf.accordion")},previous:function(){i.prev().find("a").focus().trigger("click.zf.accordion")},handled:function(){t.preventDefault(),t.stopPropagation()}})})})},n.prototype.toggle=function(t){if(t.parent().hasClass("is-active")){if(!this.options.allowAllClosed&&!t.parent().siblings().hasClass("is-active"))return;this.up(t)}else this.down(t)},n.prototype.down=function(n,i){var o=this;if(!this.options.multiExpand&&!i){var s=this.$element.find(".is-active").children("[data-tab-content]");s.length&&this.up(s)}n.attr("aria-hidden",!1).parent("[data-tab-content]").addBack().parent().addClass("is-active"),e.Move(o.options.slideSpeed,n,function(){n.slideDown(o.options.slideSpeed)}),i||e._reflow(this.$element.attr("data-accordion")),t("#"+n.attr("aria-labelledby")).attr({"aria-expanded":!0,"aria-selected":!0}),this.$element.trigger("down.zf.accordion",[n])},n.prototype.up=function(n){var i=n.parent().siblings(),o=this,s=this.options.multiExpand?i.hasClass("is-active"):n.parent().hasClass("is-active");(this.options.allowAllClosed||s)&&(e.Move(this.options.slideSpeed,n,function(){n.slideUp(o.options.slideSpeed)}),n.attr("aria-hidden",!0).parent().removeClass("is-active"),t("#"+n.attr("aria-labelledby")).attr({"aria-expanded":!1,"aria-selected":!1}),this.$element.trigger("up.zf.accordion",[n]))},n.prototype.destroy=function(){this.$element.find("[data-tab-content]").slideUp(0).css("display",""),this.$element.find("a").off(".zf.accordion"),e.unregisterPlugin(this)},e.plugin(n,"Accordion")}(jQuery,window.Foundation),!function(t){"use strict";function e(n,i){this.$element=n,this.options=t.extend({},e.defaults,this.$element.data(),i),Foundation.Nest.Feather(this.$element,"accordion"),this._init(),Foundation.registerPlugin(this),Foundation.Keyboard.register("AccordionMenu",{ENTER:"toggle",SPACE:"toggle",ARROW_RIGHT:"open",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"close",ESCAPE:"closeAll",TAB:"down",SHIFT_TAB:"up"})}e.defaults={slideSpeed:250,multiOpen:!0},e.prototype._init=function(){this.$element.find("[data-submenu]").not(".is-active").slideUp(0),this.$element.attr({role:"tablist","aria-multiselectable":this.options.multiOpen}),this.$menuLinks=this.$element.find(".has-submenu"),this.$menuLinks.each(function(){var e=this.id||Foundation.GetYoDigits(6,"acc-menu-link"),n=t(this),i=n.children("[data-submenu]"),o=i[0].id||Foundation.GetYoDigits(6,"acc-menu"),s=i.hasClass("is-active");n.attr({"aria-controls":o,"aria-expanded":s,"aria-selected":!1,role:"tab",id:e}),i.attr({"aria-labelledby":e,"aria-hidden":!s,role:"tabpanel",id:o})});var e=this.$element.find(".is-active");if(e.length){var n=this;e.each(function(){n.down(t(this))})}this._events()},e.prototype._events=function(){var e=this;this.$element.find("li").each(function(){var n=t(this).children("[data-submenu]");n.length&&t(this).children("a").off("click.zf.accordionmenu").on("click.zf.accordionmenu",function(t){t.preventDefault(),e.toggle(n)})}).on("keydown.zf.accordionmenu",function(n){var i,o,s=t(this),a=s.parent("ul").children("li"),r=s.children("[data-submenu]");a.each(function(e){return t(this).is(s)?(i=a.eq(Math.max(0,e-1)),o=a.eq(Math.min(e+1,a.length-1)),t(this).children("[data-submenu]:visible").length&&(o=s.find("li:first-child")),t(this).is(":first-child")?i=s.parents("li").first():i.children("[data-submenu]:visible").length&&(i=i.find("li:last-child")),void(t(this).is(":last-child")&&(o=s.parents("li").first().next("li")))):void 0}),Foundation.Keyboard.handleKey(n,e,{open:function(){r.is(":hidden")&&(e.down(r),r.find("li").first().focus())},close:function(){r.length&&!r.is(":hidden")?e.up(r):s.parent("[data-submenu]").length&&(e.up(s.parent("[data-submenu]")),s.parents("li").first().focus())},up:function(){i.focus()},down:function(){o.focus()},toggle:function(){s.children("[data-submenu]").length&&e.toggle(s.children("[data-submenu]"))},closeAll:function(){e.hideAll()},handled:function(){n.preventDefault(),n.stopImmediatePropagation()}})})},e.prototype.hideAll=function(){this.$element.find("[data-submenu]").slideUp(this.options.slideSpeed)},e.prototype.toggle=function(t){t.is(":hidden")?this.down(t):this.up(t)},e.prototype.down=function(t){var e=this;console.log(t),this.options.multiOpen||this.up(this.$element.find(".is-active").not(t.parentsUntil(this.$element))),t.addClass("is-active").attr({"aria-hidden":!1}).parent(".has-submenu").attr({"aria-expanded":!0,"aria-selected":!0}),Foundation.Move(this.options.slideSpeed,t,function(){t.slideDown(e.options.slideSpeed)}),this.$element.trigger("down.zf.accordionMenu",[t])},e.prototype.up=function(t){var e=this;Foundation.Move(this.options.slideSpeed,t,function(){t.slideUp(e.options.slideSpeed)}),t.attr("aria-hidden",!0).find("[data-submenu]").slideUp(0).attr("aria-hidden",!0).end().parent(".has-submenu").attr({"aria-expanded":!1,"aria-selected":!1}),this.$element.trigger("up.zf.accordionMenu",[t])},e.prototype.destroy=function(){this.$element.find("[data-submenu]").slideDown(0).css("display",""),this.$element.find("a").off("click.zf.accordionMenu"),Foundation.Nest.Burn(this.$element,"accordion"),Foundation.unregisterPlugin(this)},Foundation.plugin(e,"AccordionMenu")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),e.Nest.Feather(this.$element,"drilldown"),this._init(),e.registerPlugin(this),e.Keyboard.register("Drilldown",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close",TAB:"down",SHIFT_TAB:"up"})}n.defaults={backButton:'<li class="js-drilldown-back" tabindex="0"><a>Back</a></li>',wrapper:"<div></div>",closeOnClick:!1},n.prototype._init=function(){this.$submenuAnchors=this.$element.find("li.has-submenu"),this.$submenus=this.$submenuAnchors.children("[data-submenu]").addClass("is-drilldown-sub"),this.$menuItems=this.$element.find("li").not(".js-drilldown-back").attr("role","menuitem"),this._prepareMenu(),this._keyboardEvents()},n.prototype._prepareMenu=function(){var e=this;this.$submenuAnchors.each(function(){var n=t(this);n.find("a")[0].removeAttribute("href"),n.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:0,role:"menu"}),e._events(n)}),this.$submenus.each(function(){var n=t(this),i=n.find(".js-drilldown-back");i.length||(n.prepend(e.options.backButton),e._back(n))}),this.$element.parent().hasClass("is-drilldown")||(this.$wrapper=t(this.options.wrapper).addClass("is-drilldown").css(this._getMaxDims()),this.$element.wrap(this.$wrapper))},n.prototype._events=function(e){var n=this;e.off("click.zf.drilldown").on("click.zf.drilldown",function(i){if(i.stopImmediatePropagation(),i.preventDefault(),i.target!==i.currentTarget.firstElementChild)return!1;if(n._show(e),n.options.closeOnClick){var o=t("body").not(n.$wrapper);o.off(".zf.drilldown").on("click.zf.drilldown",function(t){t.preventDefault(),n._hideAll(),o.off(".zf.drilldown")})}})},n.prototype._keyboardEvents=function(){var n=this;this.$menuItems.add(this.$element.find(".js-drilldown-back")).on("keydown.zf.drilldown",function(i){var o,s,a=t(this),r=a.parent("ul").children("li");r.each(function(e){return t(this).is(a)?(o=r.eq(Math.max(0,e-1)),void(s=r.eq(Math.min(e+1,r.length-1)))):void 0}),e.Keyboard.handleKey(i,n,{next:function(){a.is(n.$submenuAnchors)&&(n._show(a),a.on(e.transitionend(a),function(){a.find("ul li").filter(n.$menuItems).first().focus()}))},previous:function(){n._hide(a.parent("ul")),a.parent("ul").on(e.transitionend(a),function(){setTimeout(function(){a.parent("ul").parent("li").focus()},1)})},up:function(){o.focus()},down:function(){s.focus()},close:function(){n._back()},open:function(){a.is(n.$menuItems)?a.is(n.$submenuAnchors)&&(n._show(a),setTimeout(function(){a.find("ul li").filter(n.$menuItems).first().focus()},1)):(n._hide(a.parent("ul")),setTimeout(function(){a.parent("ul").parent("li").focus()},1))},handled:function(){i.preventDefault(),i.stopImmediatePropagation()}})})},n.prototype._hideAll=function(){var t=this.$element.find(".is-drilldown-sub.is-active").addClass("is-closing");t.one(e.transitionend(t),function(e){t.removeClass("is-active is-closing")}),this.$element.trigger("closed.zf.drilldown")},n.prototype._back=function(t){var e=this;t.off("click.zf.drilldown"),t.children(".js-drilldown-back").on("click.zf.drilldown",function(n){n.stopImmediatePropagation(),e._hide(t)})},n.prototype._menuLinkEvents=function(){var t=this;this.$menuItems.not(".has-submenu").off("click.zf.drilldown").on("click.zf.drilldown",function(e){setTimeout(function(){t._hideAll()},0)})},n.prototype._show=function(t){t.children("[data-submenu]").addClass("is-active"),this.$element.trigger("open.zf.drilldown",[t])},n.prototype._hide=function(t){t.addClass("is-closing").one(e.transitionend(t),function(){t.removeClass("is-active is-closing")}),t.trigger("hide.zf.drilldown",[t])},n.prototype._getMaxDims=function(){var e=0,n={};return this.$submenus.add(this.$element).each(function(){var n=t(this).children("li").length;e=n>e?n:e}),n.height=e*this.$menuItems[0].getBoundingClientRect().height+"px",n.width=this.$element[0].getBoundingClientRect().width+"px",n},n.prototype.destroy=function(){this._hideAll(),e.Nest.Burn(this.$element,"drilldown"),this.$element.unwrap().find(".js-drilldown-back").remove().end().find(".is-active, .is-closing, .is-drilldown-sub").removeClass("is-active is-closing is-drilldown-sub").end().find("[data-submenu]").removeAttr("aria-hidden tabindex role").off(".zf.drilldown").end().off("zf.drilldown"),e.unregisterPlugin(this)},e.plugin(n,"Drilldown")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this),e.Keyboard.register("Dropdown",{ENTER:"open",SPACE:"open",ESCAPE:"close",TAB:"tab_forward",SHIFT_TAB:"tab_backward"})}n.defaults={hoverDelay:250,hover:!1,vOffset:1,hOffset:1,positionClass:"",trapFocus:!1},n.prototype._init=function(){var n=this.$element.attr("id");this.$anchor=t('[data-toggle="'+n+'"]')||t('[data-open="'+n+'"]'),this.$anchor.attr({"aria-controls":n,"data-is-focus":!1,"data-yeti-box":n,"aria-haspopup":!0,"aria-expanded":!1}),this.options.positionClass=this.getPositionClass(),this.counter=4,this.usedPositions=[],this.$element.attr({"aria-hidden":"true","data-yeti-box":n,"data-resize":n,"aria-labelledby":this.$anchor[0].id||e.GetYoDigits(6,"dd-anchor")}),this._events()},n.prototype.getPositionClass=function(){var t=this.$element[0].className.match(/(top|left|right)/g);return t=t?t[0]:""},n.prototype._reposition=function(t){this.usedPositions.push(t?t:"bottom"),!t&&this.usedPositions.indexOf("top")<0?this.$element.addClass("top"):"top"===t&&this.usedPositions.indexOf("bottom")<0?this.$element.removeClass(t):"left"===t&&this.usedPositions.indexOf("right")<0?this.$element.removeClass(t).addClass("right"):"right"===t&&this.usedPositions.indexOf("left")<0?this.$element.removeClass(t).addClass("left"):!t&&this.usedPositions.indexOf("top")>-1&&this.usedPositions.indexOf("left")<0?this.$element.addClass("left"):"top"===t&&this.usedPositions.indexOf("bottom")>-1&&this.usedPositions.indexOf("left")<0?this.$element.removeClass(t).addClass("left"):"left"===t&&this.usedPositions.indexOf("right")>-1&&this.usedPositions.indexOf("bottom")<0?this.$element.removeClass(t):"right"===t&&this.usedPositions.indexOf("left")>-1&&this.usedPositions.indexOf("bottom")<0?this.$element.removeClass(t):this.$element.removeClass(t),this.classChanged=!0,this.counter--},n.prototype._setPosition=function(){if("false"===this.$anchor.attr("aria-expanded"))return!1;var t=this.getPositionClass(),n=e.Box.GetDimensions(this.$element),i=(e.Box.GetDimensions(this.$anchor),"left"===t?"left":"right"===t?"left":"top"),o="top"===i?"height":"width";"height"===o?this.options.vOffset:this.options.hOffset;if(n.width>=n.windowDims.width||!this.counter&&!e.Box.ImNotTouchingYou(this.$element))return this.$element.offset(e.Box.GetOffsets(this.$element,this.$anchor,"center bottom",this.options.vOffset,this.options.hOffset,!0)).css({width:n.windowDims.width-2*this.options.hOffset,height:"auto"}),this.classChanged=!0,!1;for(this.$element.offset(e.Box.GetOffsets(this.$element,this.$anchor,t,this.options.vOffset,this.options.hOffset));!e.Box.ImNotTouchingYou(this.$element)&&this.counter;)this._reposition(t),this._setPosition()},n.prototype._events=function(){var t=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":this._setPosition.bind(this)}),this.options.hover&&(clearTimeout(t.timeout),this.$anchor.on("mouseenter.zf.dropdown mouseleave.zf.dropdown",function(){t.timeOut=setTimeout(function(){t.toggle()},t.options.hoverDelay)})),this.$anchor.add(this.$element).on("keydown.zf.dropdown",function(n){var i=e.Keyboard.findFocusable(t.$element);e.Keyboard.handleKey(n,t,{tab_forward:function(){this.$element.find(":focus").is(i.eq(-1))&&(this.options.trapFocus?(i.eq(0).focus(),n.preventDefault()):this.close())},tab_backward:function(){(this.$element.find(":focus").is(i.eq(0))||this.$element.is(":focus"))&&(this.options.trapFocus?(i.eq(-1).focus(),n.preventDefault()):this.close())},open:function(){t.open(),t.$element.attr("tabindex",-1).focus()},close:function(){t.close(),t.$anchor.focus()}})})},n.prototype.open=function(){this.$element.trigger("closeme.zf.dropdown",this.$element.attr("id")),this.$anchor.addClass("hover").attr({"aria-expanded":!0}),this._setPosition(),this.$element.addClass("is-open").attr({"aria-hidden":!1}),this.$element.trigger("show.zf.dropdown",[this.$element])},n.prototype.close=function(){if(!this.$element.hasClass("is-open"))return!1;if(this.$element.removeClass("is-open").attr({"aria-hidden":!0}),this.$anchor.removeClass("hover").attr("aria-expanded",!1),this.classChanged){var t=this.getPositionClass();t&&this.$element.removeClass(t),this.$element.addClass(this.options.positionClass).css({height:"",width:""}),this.classChanged=!1,this.counter=4,this.usedPositions.length=0}this.$element.trigger("hide.zf.dropdown",[this.$element])},n.prototype.toggle=function(){this.$element.hasClass("is-open")?this.close():this.open()},n.prototype.destroy=function(){this.$element.off(".zf.trigger").hide(),this.$anchor.off(".zf.dropdown"),e.unregisterPlugin(this)},e.plugin(n,"Dropdown")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,this.$element.data(),o),t.Nest.Feather(this.$element,"dropdown"),this._init(),t.registerPlugin(this),t.Keyboard.register("DropdownMenu",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"up",ARROW_DOWN:"down",ARROW_LEFT:"previous",ESCAPE:"close"})}n.defaults={clickOpen:!0,closeOnClick:!1,disableHover:!1,autoclose:!0,hoverDelay:150,closingTime:500,alignment:"left",verticalClass:"vertical",rightClass:"align-right"},n.prototype._init=function(){this.$element.hasClass(this.options.verticalClass)&&(this.vertical=!0),this._prepareMenu()},n.prototype._prepareMenu=function(){var t=this;this.$tabs=this.$element.children("li.has-submenu"),this.$tabs.children("[data-submenu]").addClass("first-sub"),this.$submenus=this.$element.find("li.has-submenu"),this.$menuItems=this.$element.find("li").attr({role:"menuitem",tabindex:0}),this.$menuItems.children("a").attr("tabindex",-1),this.$element.hasClass(this.options.rightClass)?(this.options.alignment="right",this.$submenus.addClass("is-left-arrow opens-left")):this.$submenus.addClass("is-right-arrow opens-right"),this.vertical||this.$tabs.removeClass("is-right-arrow is-left-arrow opens-left opens-right").addClass("is-down-arrow"),this.$tabs.each(function(){var t=e(this);t.attr({role:"menuitem",tabindex:0,"aria-label":t.children("a:first-child").text()}).children("a").attr("tabindex",-1),t.children("[data-submenu]")&&t.attr("aria-haspopup",!0)}),this.$submenus.each(function(){var n=e(this);n.children("[data-submenu]").attr({"aria-hidden":!0,tabindex:-1,role:"menu"}).addClass("vertical"),t._events(n)})},n.prototype._events=function(n){var i=this,o=void 0!==window.ontouchstart;(this.options.clickOpen||o)&&n.off("click.zf.dropdownmenu").on("click.zf.dropdownmenu",function(t){if(e(this).hasClass("is-dropdown-submenu-parent")){var s=n.data("isClick");o&&s||(t.preventDefault(),t.stopPropagation(),n.data("isClick")?i._hide(n):(i._hideOthers(n),i._show(n),n.data("isClick",!0).parentsUntil("[data-dropdown-menu]",".is-dropdown-submenu-parent").data("isClick",!0),i.options.closeOnClick&&i._addBodyHandler()))}}),this.options.disableHover||(this.$menuItems.on("mouseenter.zf.dropdownmenu",function(t){var n=e(this);n.hasClass("is-active")||i._hideOthers(n)}),n.on("mouseenter.zf.dropdownmenu",function(t){clearTimeout(n.closeTimer),n.hasClass("is-active")||(n.openTimer=setTimeout(function(){i._show(n)},i.options.hoverDelay))}).on("mouseleave.zf.dropdownmenu",function(t){!n.data("isClick")&&i.options.autoclose&&(clearTimeout(n.openTimer),n.closeTimer=setTimeout(function(){i._hide(n)},i.options.closingTime))})),this.$menuItems.on("keydown.zf.dropdownmenu",function(n){var o,s,a=e(this),r=i.$element.children("li"),l=a.is(r),u=l?r:a.parents("li").first().add(a.parent("ul").children("li"));u.each(function(t){return e(this).is(a)?(o=u.eq(t-1),void(s=u.eq(t+1))):void 0});var d=function(){a.is(":last-child")||s.focus()},c=function(){o.focus()},h=function(){a.has("ul").length&&(i._show(a),a.find("li").first().focus())},f=function(){a.parents("li").first().focus(),i._hide(a.parents("li").first())},p={open:h,close:function(){
  i._hideAll(),i.$menuItems.first().focus()},handled:function(){n.preventDefault(),n.stopImmediatePropagation()}};l?i.vertical?"left"===i.options.alignment?e.extend(p,{down:d,up:c,next:h,previous:f}):e.extend(p,{down:d,up:c,next:f,previous:h}):e.extend(p,{next:d,previous:c,down:h,up:f}):"left"===i.options.alignment?e.extend(p,{next:h,previous:f,down:d,up:c}):e.extend(p,{next:f,previous:h,down:d,up:c}),t.Keyboard.handleKey(n,i,p)})},n.prototype._toggle=function(t){t.hasClass("is-active")?this._hide(t):this._show(t)},n.prototype._addBodyHandler=function(){var t=e("body"),n=this;t.not(n.$element).on("click.zf.dropdownmenu tap.zf.dropdownmenu touchend.zf.dropdownmenu",function(e){n._hideAll(),t.off("click.zf.dropdownmenu tap.zf.dropdownmenu touchend.zf.dropdownmenu")})},n.prototype._show=function(e){this._hideOthers(e),e.focus();var n=e.children("[data-submenu]:first-of-type");e.addClass("is-active"),n.css("visibility","hidden").addClass("js-dropdown-active").attr("aria-hidden",!1);var i=t.Box.ImNotTouchingYou(n,null,!0);i||("left"===this.options.alignment?e.removeClass("opens-left").addClass("opens-right"):e.removeClass("opens-right").addClass("opens-left"),this.changed=!0,i=t.Box.ImNotTouchingYou(n,null,!0),i||(e.removeClass("opens-left opens-right").addClass("opens-inner"),this.changed=!0)),n.css("visibility",""),this.$element.trigger("show.zf.dropdownmenu",[e])},n.prototype._hide=function(t){this._hideSome(t)},n.prototype._hideSome=function(t){t.length&&(t.removeClass("is-active opens-inner").data("isClick",!1).find(".is-active").removeClass("is-active").data("isClick",!1).end().find(".js-dropdown-active").removeClass("js-dropdown-active").attr("aria-hidden",!0),t.parent(".has-submenu").removeClass("is-active"),this.changed&&("left"===this.options.alignment?t.find(".opens-left").removeClass("opens-left").addClass("opens-right"):t.find(".opens-right").removeClass("opens-right").addClass("opens-left")),this.$element.trigger("hide.zf.dropdownmenu"))},n.prototype._hideOthers=function(t){this._hideSome(t.siblings(".has-submenu.is-active"))},n.prototype._hideAll=function(){this._hideSome(this.$element)},n.prototype.destroy=function(){this._hideAll(),this.$element.removeData("zf-plugin").find("li").removeClass("js-dropdown-nohover is-right-arrow is-left-arrow opens-left opens-inner opens-right").add("a").off(".zf.dropdownmenu").end().find("ul").removeClass("first-sub"),t.Nest.Burn(this.$element,"dropdown"),t.unregisterPlugin(this)},t.plugin(n,"DropdownMenu")}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,this.$element.data(),o),this.$window=e(window),this.name="equalizer",this.attr="data-equalizer",this._init(),this._events(),t.registerPlugin(this)}n.defaults={equalizeOnStack:!0,throttleInterval:50},n.prototype._init=function(){this._reflow()},n.prototype._events=function(){var e=this;this.$window.off(".equalizer").on("resize.fndtn.equalizer",t.util.throttle(function(){e._reflow()},e.options.throttleInterval))},n.prototype._killswitch=function(){},n.prototype._reflow=function(){var n=this;e("["+this.attr+"]").each(function(){var i=e(this),o=[],s=i.find("img");s.length?t.onImagesLoaded(s,function(){o=n.getHeights(i),n.applyHeight(i,o)}):(o=n.getHeights(i),n.applyHeight(i,o))})},n.prototype.getHeights=function(t){var n,i=t.data("equalizer"),o=i?t.find("["+this.attr+'-watch="'+i+'"]:visible'):t.find("["+this.attr+"-watch]:visible");return o.height("inherit"),n=o.map(function(){return e(this).outerHeight(!1)}).get(),console.log(n),n},n.prototype.applyHeight=function(t,n){var i=t.data("equalizer"),o=i?t.find("["+this.attr+'-watch="'+i+'"]:visible'):t.find("["+this.attr+"-watch]:visible"),s=Math.max.apply(null,n);t.trigger("preEqualized.zf.Equalizer");for(var a=0;a<o.length;a++)e(o[a]).css("height",s);t.trigger("postEqualized.zf.Equalizer")},n.prototype.destroy=function(){},t.plugin(n,"Equalizer"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,o),this.rules=[],this.currentPath="",this._init(),this._events(),t.registerPlugin(this)}n.defaults={rules:null},n.SPECIAL_QUERIES={landscape:"screen and (orientation: landscape)",portrait:"screen and (orientation: portrait)",retina:"only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min--moz-device-pixel-ratio: 2), only screen and (-o-min-device-pixel-ratio: 2/1), only screen and (min-device-pixel-ratio: 2), only screen and (min-resolution: 192dpi), only screen and (min-resolution: 2dppx)"},n.prototype._init=function(){this._addBreakpoints(),this._generateRules(),this._reflow()},n.prototype._events=function(){e(window).on("resize.fndtn.interchange",t.util.throttle(this._reflow.bind(this),50))},n.prototype._reflow=function(){var t;for(var e in this.rules){var n=this.rules[e];window.matchMedia(n.query).matches&&(t=n)}t&&this.replace(t.path)},n.prototype._addBreakpoints=function(){for(var e in t.MediaQuery.queries){var i=t.MediaQuery.queries[e];n.SPECIAL_QUERIES[i.name]=i.value}},n.prototype._generateRules=function(){var t,e=[];t=this.options.rules?this.options.rules:this.$element.data("interchange").match(/\[.*?\]/g);for(var i in t){var o=t[i].slice(1,-1).split(", "),s=o.slice(0,-1).join(""),a=o[o.length-1];n.SPECIAL_QUERIES[a]&&(a=n.SPECIAL_QUERIES[a]),e.push({path:s,query:a})}this.rules=e},n.prototype.replace=function(t){if(this.currentPath!==t){var n=this;"IMG"===this.$element[0].nodeName?this.$element.attr("src",t).load(function(){n.$element.trigger("replaced.zf.interchange"),n.currentPath=t}):t.match(/\.(gif|jpg|jpeg|tiff|png)([?#].*)?/i)?this.$element.css({"background-image":"url("+t+")"}):e.get(t,function(e){n.$element.html(e),n.$element.trigger("replaced.zf.interchange"),n.currentPath=t})}},n.prototype.destroy=function(){},t.plugin(n,"Interchange"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,o),this._init(),t.registerPlugin(this)}n.defaults={animationDuration:500,animationEasing:"linear",threshold:50,activeClass:"active",deepLinking:!1},n.prototype._init=function(){var n=this.$element[0].id||t.GetYoDigits(6,"magellan");this.$targets=e("[data-magellan-target]"),this.$links=this.$element.find("a"),this.$element.attr({"data-resize":n,"data-scroll":n,id:n}),this.$active=e(),this.scrollPos=parseInt(window.pageYOffset,10),this._events()},n.prototype.calcPoints=function(){var t=this,n=document.body,i=document.documentElement;this.points=[],this.winHeight=Math.round(Math.max(window.innerHeight,document.body.clientHeight)),this.docHeight=Math.round(Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)),this.$targets.each(function(){var n=e(this),i=Math.round(n.offset().top-t.options.threshold);n.targetPoint=i,t.points.push(i)})},n.prototype._events=function(){var t=this,n=e("html, body"),i={duration:t.options.animationDuration,easing:t.options.animationEasing};e(window).one("load",function(){t.calcPoints(),t._updateActive()}),this.$element.on({"resizeme.zf.trigger":this.reflow.bind(this),"scrollme.zf.trigger":this._updateActive.bind(this)}).on("click.zf.magellan",'a[href^="#"]',function(o){o.preventDefault();var s=this.getAttribute("href"),a=e(s).offset().top-t.options.threshold/2;n.stop(!0).animate({scrollTop:a},i)})},n.prototype.reflow=function(){this.calcPoints(),this._updateActive()},n.prototype._updateActive=function(){var t,e=parseInt(window.pageYOffset,10);if(e+this.winHeight===this.docHeight)t=this.points.length-1;else if(e<this.points[0])t=0;else{var n=this.scrollPos<e,i=this,o=this.points.filter(function(t,o){return n?e>=t:t-i.options.threshold<=e});t=o.length?o.length-1:0}if(this.$active.removeClass(this.options.activeClass),this.$active=this.$links.eq(t).addClass(this.options.activeClass),this.options.deepLinking){var s=this.$active[0].getAttribute("href");window.history.pushState?window.history.pushState(null,null,s):window.location.hash=s}this.scrollPos=e,this.$element.trigger("update.zf.magellan",[this.$active])},n.prototype.destroy=function(){this.$element.off(".zf.trigger .zf.magellan").find("."+this.options.activeClass).removeClass(this.options.activeClass);var e=this.$active[0].getAttribute("href");window.location.hash.replace(e,""),t.unregisterPlugin(this)},t.plugin(n,"Magellan"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this.$lastTrigger=t(),this._init(),this._events(),e.registerPlugin(this)}n.defaults={closeOnClick:!0,transitionTime:0,position:"left",forceTop:!0,isRevealed:!1,revealOn:null,autoFocus:!0,revealClass:"reveal-for-"},n.prototype._init=function(){var e=this.$element.attr("id");if(this.$element.attr("aria-hidden","true"),t(document).find('[data-open="'+e+'"], [data-close="'+e+'"], [data-toggle="'+e+'"]').attr("aria-expanded","false").attr("aria-controls",e),this.options.closeOnClick)if(t(".js-off-canvas-exit").length)this.$exiter=t(".js-off-canvas-exit");else{var n=document.createElement("div");n.setAttribute("class","js-off-canvas-exit"),t("[data-off-canvas-content]").append(n),this.$exiter=t(n)}this.options.isRevealed=this.options.isRevealed||new RegExp(this.options.revealClass,"g").test(this.$element[0].className),this.options.isRevealed&&(this.options.revealOn=this.options.revealOn||this.$element[0].className.match(/(reveal-for-medium|reveal-for-large)/g)[0].split("-")[2],this._setMQChecker()),this.options.transitionTime||(this.options.transitionTime=1e3*parseFloat(window.getComputedStyle(t("[data-off-canvas-wrapper]")[0]).transitionDuration))},n.prototype._events=function(){if(this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"keydown.zf.offcanvas":this._handleKeyboard.bind(this)}),this.$exiter.length){this.$exiter.on({"click.zf.offcanvas":this.close.bind(this)})}},n.prototype._setMQChecker=function(){var n=this;t(window).on("changed.zf.mediaquery",function(){e.MediaQuery.atLeast(n.options.revealOn)?n.reveal(!0):n.reveal(!1)}).one("load.zf.offcanvas",function(){e.MediaQuery.atLeast(n.options.revealOn)&&n.reveal(!0)})},n.prototype.reveal=function(t){var e=this.$element.find("[data-close]");t?e.length&&e.hide():e.length&&e.show()},n.prototype.open=function(n,i){if(!this.$element.hasClass("is-open")){var o=this;t(document.body);t("body").scrollTop(0),e.Move(this.options.transitionTime,this.$element,function(){t("[data-off-canvas-wrapper]").addClass("is-off-canvas-open is-open-"+o.options.position),o.$element.addClass("is-open").attr("aria-hidden","false").trigger("opened.zf.offcanvas")}),i&&(this.$lastTrigger=i.attr("aria-expanded","true")),this.options.autoFocus&&this.$element.one("finished.zf.animate",function(){o.$element.find("a, button").eq(0).focus()})}},n.prototype.close=function(){if(this.$element.hasClass("is-open")){var n=this;e.Move(this.options.transitionTime,this.$element,function(){t("[data-off-canvas-wrapper]").removeClass("is-off-canvas-open is-open-"+n.options.position),n.$element.removeClass("is-open")}),this.$element.attr("aria-hidden","true").trigger("closed.zf.offcanvas"),this.$lastTrigger.attr("aria-expanded","false")}},n.prototype.toggle=function(t,e){this.$element.hasClass("is-open")?this.close(t,e):this.open(t,e)},n.prototype._handleKeyboard=function(t){27===t.which&&(t.stopPropagation(),t.preventDefault(),this.close(),this.$lastTrigger.focus())},n.prototype.destroy=function(){},e.plugin(n,"OffCanvas")}(jQuery,Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this),e.Keyboard.register("Orbit",{ltr:{ARROW_RIGHT:"next",ARROW_LEFT:"previous"},rtl:{ARROW_LEFT:"next",ARROW_RIGHT:"previous"}})}n.defaults={bullets:!0,navButtons:!0,animInFromRight:"slide-in-right",animOutToRight:"slide-out-right",animInFromLeft:"slide-in-left",animOutToLeft:"slide-out-left",autoPlay:!0,timerDelay:5e3,infiniteWrap:!0,swipe:!0,pauseOnHover:!0,accessible:!0,containerClass:"orbit-container",slideClass:"orbit-slide",boxOfBullets:"orbit-bullets",nextClass:"orbit-next",prevClass:"orbit-previous"},n.prototype._init=function(){this.$wrapper=this.$element.find("."+this.options.containerClass),this.$slides=this.$element.find("."+this.options.slideClass);var t=this.$element.find("img"),n=this.$slides.filter(".is-active");n.length||this.$slides.eq(0).addClass("is-active"),t.length?e.onImagesLoaded(t,this._prepareForOrbit.bind(this)):this._prepareForOrbit(),this.options.bullets&&this._loadBullets(),this._events(),this.options.autoPlay&&this.geoSync(),this.options.accessible&&this.$wrapper.attr("tabindex",0)},n.prototype._loadBullets=function(){this.$bullets=this.$element.find("."+this.options.boxOfBullets).find("button")},n.prototype.geoSync=function(){var t=this;this.timer=new e.Timer(this.$element,{duration:this.options.timerDelay,infinite:!1},function(){t.changeSlide(!0)}),this.timer.start()},n.prototype._prepareForOrbit=function(){var t=this;this._setWrapperHeight(function(e){t._setSlideHeight(e)})},n.prototype._setWrapperHeight=function(e){var n,i=0,o=0;this.$slides.each(function(){n=this.getBoundingClientRect().height,t(this).attr("data-slide",o),o&&t(this).css({position:"relative",display:"none"}),i=n>i?n:i,o++}),o===this.$slides.length&&(this.$wrapper.css({height:i}),e(i))},n.prototype._setSlideHeight=function(e){this.$slides.each(function(){t(this).css("max-height",e)})},n.prototype._events=function(){var n=this;if(this.options.swipe&&this.$slides.off("swipeleft.zf.orbit swiperight.zf.orbit").on("swipeleft.zf.orbit",function(t){t.preventDefault(),n.changeSlide(!0)}).on("swiperight.zf.orbit",function(t){t.preventDefault(),n.changeSlide(!1)}),this.options.autoPlay&&(this.$slides.on("click.zf.orbit",function(){n.$element.data("clickedOn",n.$element.data("clickedOn")?!1:!0),n.timer[n.$element.data("clickedOn")?"pause":"start"]()}),this.options.pauseOnHover&&this.$element.on("mouseenter.zf.orbit",function(){n.timer.pause()}).on("mouseleave.zf.orbit",function(){n.$element.data("clickedOn")||n.timer.start()})),this.options.navButtons){var i=this.$element.find("."+this.options.nextClass+", ."+this.options.prevClass);i.attr("tabindex",0).on("click.zf.orbit touchend.zf.orbit",function(){n.changeSlide(t(this).hasClass(n.options.nextClass))})}this.options.bullets&&this.$bullets.on("click.zf.orbit touchend.zf.orbit",function(){if(/is-active/g.test(this.className))return!1;var e=t(this).data("slide"),i=e>n.$slides.filter(".is-active").data("slide"),o=n.$slides.eq(e);n.changeSlide(i,o,e)}),this.$wrapper.add(this.$bullets).on("keydown.zf.orbit",function(i){e.Keyboard.handleKey(i,n,{next:function(){n.changeSlide(!0)},previous:function(){n.changeSlide(!1)},handled:function(){t(i.target).is(n.$bullets)&&n.$bullets.filter(".is-active").focus()}})})},n.prototype.changeSlide=function(t,n,i){var o=this.$slides.filter(".is-active").eq(0);if(/mui/g.test(o[0].className))return!1;var s,a=this.$slides.first(),r=this.$slides.last(),l=t?"Right":"Left",u=t?"Left":"Right",d=this;s=n?n:t?this.options.infiniteWrap?o.next("."+this.options.slideClass).length?o.next("."+this.options.slideClass):a:o.next("."+this.options.slideClass):this.options.infiniteWrap?o.prev("."+this.options.slideClass).length?o.prev("."+this.options.slideClass):r:o.prev("."+this.options.slideClass),s.length&&(this.options.bullets&&(i=i||this.$slides.index(s),this._updateBullets(i)),e.Motion.animateIn(s.addClass("is-active").css({position:"absolute",top:0}),this.options["animInFrom"+l],function(){s.css({position:"relative",display:"block"}).attr("aria-live","polite")}),e.Motion.animateOut(o.removeClass("is-active"),this.options["animOutTo"+u],function(){o.removeAttr("aria-live"),d.options.autoPlay&&d.timer.restart(),d.$element.trigger("slidechange.zf.orbit",[s])}))},n.prototype._updateBullets=function(t){var e=this.$element.find("."+this.options.boxOfBullets).find(".is-active").removeClass("is-active").blur(),n=e.find("span:last").detach();this.$bullets.eq(t).addClass("is-active").append(n)},n.prototype.destroy=function(){delete this.timer,this.$element.off(".zf.orbit").find("*").off(".zf.orbit").end().hide(),e.unregisterPlugin(this)},e.plugin(n,"Orbit")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(n){this.$element=e(n),this.rules=this.$element.data("responsive-menu"),this.currentMq=null,this.currentPlugin=null,this._init(),this._events(),t.registerPlugin(this)}var i={dropdown:{cssClass:"dropdown",plugin:t._plugins["dropdown-menu"]||null},drilldown:{cssClass:"drilldown",plugin:t._plugins.drilldown||null},accordion:{cssClass:"accordion-menu",plugin:t._plugins["accordion-menu"]||null}};n.defaults={},n.prototype._init=function(){for(var t={},n=this.rules.split(" "),o=0;o<n.length;o++){var s=n[o].split("-"),a=s.length>1?s[0]:"small",r=s.length>1?s[1]:s[0];null!==i[r]&&(t[a]=i[r])}this.rules=t,e.isEmptyObject(t)||this._checkMediaQueries()},n.prototype._events=function(){var t=this;e(window).on("changed.zf.mediaquery",function(){t._checkMediaQueries()})},n.prototype._checkMediaQueries=function(){var n,o=this;e.each(this.rules,function(e){t.MediaQuery.atLeast(e)&&(n=e)}),n&&(this.currentPlugin instanceof this.rules[n].plugin||(e.each(i,function(t,e){o.$element.removeClass(e.cssClass)}),this.$element.addClass(this.rules[n].cssClass),this.currentPlugin&&this.currentPlugin.destroy(),this.currentPlugin=new this.rules[n].plugin(this.$element,{})))},n.prototype.destroy=function(){this.currentPlugin.destroy(),e(window).off(".zf.ResponsiveMenu"),t.unregisterPlugin(this)},t.plugin(n,"ResponsiveMenu")}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=t(i),this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),this._events(),e.registerPlugin(this)}n.defaults={hideFor:"medium"},n.prototype._init=function(){var e=this.$element.data("responsive-toggle");e||console.error("Your tab bar needs an ID of a Menu as the value of data-tab-bar."),this.$targetMenu=t("#"+e),this.$toggler=this.$element.find("[data-toggle]"),this._update()},n.prototype._events=function(){t(window).on("changed.zf.mediaquery",this._update.bind(this)),this.$toggler.on("click.zf.responsiveToggle",this.toggleMenu.bind(this))},n.prototype._update=function(){e.MediaQuery.atLeast(this.options.hideFor)?(this.$element.hide(),this.$targetMenu.show()):(this.$element.show(),this.$targetMenu.hide())},n.prototype.toggleMenu=function(){e.MediaQuery.atLeast(this.options.hideFor)||(this.$targetMenu.toggle(0),this.$element.trigger("toggled.zf.responsiveToggle"))},n.prototype.destroy=function(){},e.plugin(n,"ResponsiveToggle")}(jQuery,Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,this.$element.data(),o),this._init(),t.registerPlugin(this),t.Keyboard.register("Reveal",{ENTER:"open",SPACE:"open",ESCAPE:"close",TAB:"tab_forward",SHIFT_TAB:"tab_backward"})}n.defaults={animationIn:"",animationOut:"",showDelay:0,hideDelay:0,closeOnClick:!0,closeOnEsc:!0,multipleOpened:!1,vOffset:100,hOffset:0,fullScreen:!1,btmOffsetPct:10,overlay:!0,resetOnClose:!1},n.prototype._init=function(){if(this.id=this.$element.attr("id"),this.isActive=!1,this.$anchor=e(e('[data-open="'+this.id+'"]').length?'[data-open="'+this.id+'"]':'[data-toggle="'+this.id+'"]'),this.$anchor.length){var n=this.$anchor[0].id||t.GetYoDigits(6,"reveal");this.$anchor.attr({"aria-controls":this.id,id:n,"aria-haspopup":!0,tabindex:0}),this.$element.attr({"aria-labelledby":n})}(this.options.fullScreen||this.$element.hasClass("full"))&&(this.options.fullScreen=!0,this.options.overlay=!1),this.options.overlay&&(this.$overlay=this._makeOverlay(this.id)),this.$element.attr({role:"dialog","aria-hidden":!0,"data-yeti-box":this.id,"data-resize":this.id}),this._events()},n.prototype._makeOverlay=function(t){var n=e("<div></div>").addClass("reveal-overlay").attr({tabindex:-1,"aria-hidden":!0}).appendTo("body");return this.options.closeOnClick&&n.attr({"data-close":t}),n},n.prototype._events=function(){var t=this;this.$element.on({"open.zf.trigger":this.open.bind(this),"close.zf.trigger":this.close.bind(this),"toggle.zf.trigger":this.toggle.bind(this),"resizeme.zf.trigger":function(){t.$element.is(":visible")&&t._setPosition(function(){})}}),this.$anchor.length&&this.$anchor.on("keydown.zf.reveal",function(e){(13===e.which||32===e.which)&&(e.stopPropagation(),e.preventDefault(),t.open())}),this.options.closeOnClick&&this.options.overlay&&this.$overlay.off(".zf.reveal").on("click.zf.reveal",this.close.bind(this))},n.prototype._setPosition=function(e){var n=t.Box.GetDimensions(this.$element),i=this.options.fullScreen?"reveal full":n.height>=.5*n.windowDims.height?"reveal":"center";"reveal full"===i?(console.log("full"),this.$element.offset(t.Box.GetOffsets(this.$element,null,i,this.options.vOffset)).css({height:n.windowDims.height,width:n.windowDims.width})):t.MediaQuery.atLeast("medium")&&t.Box.ImNotTouchingYou(this.$element,null,!0,!1)?this.$element.css({"max-height":n.windowDims.height-this.options.vOffset*(this.options.btmOffsetPct/100+1),width:""}).offset(t.Box.GetOffsets(this.$element,null,i,this.options.vOffset)):(this.$element.css({width:n.windowDims.width-2*this.options.hOffset}).offset(t.Box.GetOffsets(this.$element,null,"center",this.options.vOffset,this.options.hOffset)),this.changedSize=!0),e()},n.prototype.open=function(){var n=this;this.isActive=!0,this.$element.css({visibility:"hidden"}).show().scrollTop(0),this._setPosition(function(){n.$element.hide().css({visibility:""}),n.options.multipleOpened||n.$element.trigger("closeme.zf.reveal",n.id),n.options.animationIn?n.options.overlay?t.Motion.animateIn(n.$overlay,"fade-in",function(){t.Motion.animateIn(n.$element,n.options.animationIn,function(){})}):t.Motion.animateIn(n.$element,n.options.animationIn,function(){}):n.options.overlay?n.$overlay.show(0,function(){n.$element.show(n.options.showDelay,function(){})}):n.$element.show(n.options.showDelay,function(){})}),this.$element.attr({"aria-hidden":!1}).attr("tabindex",-1).focus().trigger("open.zf.reveal"),e("body").addClass("is-reveal-open").attr({"aria-hidden":this.options.overlay||this.options.fullScreen?!0:!1}),setTimeout(function(){n._extraHandlers()},0)},n.prototype._extraHandlers=function(){var n=this,i=this.$element.find("a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, *[tabindex], *[contenteditable]").filter(function(){return!e(this).is(":visible")||e(this).attr("tabindex")<0?!1:!0});this.options.overlay||!this.options.closeOnClick||this.options.fullScreen||e("body").on("click.zf.reveal",function(t){n.close()}),this.options.closeOnEsc&&e(window).on("keydown.zf.reveal",function(e){0===i.length&&e.preventDefault(),t.Keyboard.handleKey(e,n,{close:function(){this.options.closeOnEsc&&this.close()}})}),this.$element.on("keydown.zf.reveal",function(o){var s=e(this);t.Keyboard.handleKey(o,n,{tab_forward:function(){this.$element.find(":focus").is(i.eq(-1))&&(i.eq(0).focus(),o.preventDefault())},tab_backward:function(){(this.$element.find(":focus").is(i.eq(0))||this.$element.is(":focus"))&&(i.eq(-1).focus(),o.preventDefault())},open:function(){s.is(i)&&this.open()},close:function(){this.options.closeOnEsc&&this.close()}}),0===i.length&&o.preventDefault()})},n.prototype.close=function(){if(!this.isActive||!this.$element.is(":visible"))return!1;var n=this;this.options.animationOut?t.Motion.animateOut(this.$element,this.options.animationOut,function(){n.options.overlay&&t.Motion.animateOut(n.$overlay,"fade-out",function(){})}):this.$element.hide(n.options.hideDelay,function(){n.options.overlay&&n.$overlay.hide(0,function(){})}),this.options.closeOnEsc&&e(window).off("keydown.zf.reveal"),!this.options.overlay&&this.options.closeOnClick&&e("body").off("click.zf.reveal"),this.$element.off("keydown.zf.reveal"),this.changedSize&&this.$element.css({height:"",width:""}),e("body").removeClass("is-reveal-open").attr({"aria-hidden":!1,tabindex:""}),this.options.resetOnClose&&this.$element.html(this.$element.html()),this.isActive=!1,this.$element.attr({"aria-hidden":!0}).trigger("closed.zf.reveal")},n.prototype.toggle=function(){this.isActive?this.close():this.open()},n.prototype.destroy=function(){this.options.overlay&&this.$overlay.hide().off().remove(),this.$element.hide(),this.$anchor.off(),t.unregisterPlugin(this)},t.plugin(n,"Reveal"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this),e.Keyboard.register("Slider",{ltr:{ARROW_RIGHT:"increase",ARROW_UP:"increase",ARROW_DOWN:"decrease",ARROW_LEFT:"decrease",SHIFT_ARROW_RIGHT:"increase_fast",SHIFT_ARROW_UP:"increase_fast",SHIFT_ARROW_DOWN:"decrease_fast",SHIFT_ARROW_LEFT:"decrease_fast"},rtl:{ARROW_LEFT:"increase",ARROW_RIGHT:"decrease",SHIFT_ARROW_LEFT:"increase_fast",SHIFT_ARROW_RIGHT:"decrease_fast"}})}function i(t,e){return t/e}function o(t,e,n,i){return Math.abs(t.position()[e]+t[i]()/2-n)}n.defaults={start:0,end:100,step:1,initialStart:0,initialEnd:100,binding:!1,clickSelect:!0,vertical:!1,draggable:!0,disabled:!1,doubleSided:!1,decimal:2,moveTime:200,disabledClass:"disabled"},n.prototype._init=function(){this.inputs=this.$element.find("input"),this.handles=this.$element.find("[data-slider-handle]"),this.$handle=this.handles.eq(0),this.$input=this.inputs.length?this.inputs.eq(0):t("#"+this.$handle.attr("aria-controls")),this.$fill=this.$element.find("[data-slider-fill]").css(this.options.vertical?"height":"width",0);var e=!1,n=this;(this.options.disabled||this.$element.hasClass(this.options.disabledClass))&&(this.options.disabled=!0,this.$element.addClass(this.options.disabledClass)),this.inputs.length||(this.inputs=t().add(this.$input),this.options.binding=!0),this._setInitAttr(0),this._events(this.$handle),this.handles[1]&&(this.options.doubleSided=!0,this.$handle2=this.handles.eq(1),this.$input2=this.inputs.length?this.inputs.eq(1):t("#"+this.$handle2.attr("aria-controls")),this.inputs[1]||(this.inputs=this.inputs.add(this.$input2)),e=!0,this._setHandlePos(this.$handle,this.options.initialStart,!0,function(){n._setHandlePos(n.$handle2,n.options.initialEnd)}),this._setInitAttr(1),this._events(this.$handle2)),e||this._setHandlePos(this.$handle,this.options.initialStart,!0)},n.prototype._setHandlePos=function(t,n,o,s){n=parseFloat(n),n<this.options.start?n=this.options.start:n>this.options.end&&(n=this.options.end);var a=this.options.doubleSided;if(a)if(0===this.handles.index(t)){var r=parseFloat(this.$handle2.attr("aria-valuenow"));n=n>=r?r-this.options.step:n}else{var l=parseFloat(this.$handle.attr("aria-valuenow"));n=l>=n?l+this.options.step:n}this.options.vertical&&!o&&(n=this.options.end-n);var u=this,d=this.options.vertical,c=d?"height":"width",h=d?"top":"left",f=t[0].getBoundingClientRect()[c]/2,p=this.$element[0].getBoundingClientRect()[c],m=i(n,this.options.end).toFixed(this.options.decimal),g=(p-f)*m,v=(100*i(g,p)).toFixed(this.options.decimal),n=n>0?parseFloat(n.toFixed(this.options.decimal)):0,y={};if(this._setValues(t,n),this.options.doubleSided){var b,x=0===this.handles.index(t);this.handles.index(t);x?(y[h]=(m>0?100*m:0)+"%",b=(100*(i(this.$handle2.position()[h]+f,p)-parseFloat(m))).toFixed(this.options.decimal)+"%",y["min-"+c]=b,s&&"function"==typeof s&&s()):(n=(100>n?n:100)-(parseFloat(this.$handle[0].style.left)||this.options.end-n),y["min-"+c]=n+"%")}this.$element.one("finished.zf.animate",function(){u.animComplete=!0,u.$element.trigger("moved.zf.slider",[t])});var w=u.$element.data("dragging")?1e3/60:u.options.moveTime;e.Move(w,t,function(){t.css(h,v+"%"),u.options.doubleSided?u.$fill.css(y):u.$fill.css(c,100*m+"%")})},n.prototype._setInitAttr=function(t){var n=this.inputs.eq(t).attr("id")||e.GetYoDigits(6,"slider");this.inputs.eq(t).attr({id:n,max:this.options.end,min:this.options.start}),this.handles.eq(t).attr({role:"slider","aria-controls":n,"aria-valuemax":this.options.end,"aria-valuemin":this.options.start,"aria-valuenow":0===t?this.options.initialStart:this.options.initialEnd,"aria-orientation":this.options.vertical?"vertical":"horizontal",tabindex:0})},n.prototype._setValues=function(t,e){var n=this.options.doubleSided?this.handles.index(t):0;this.inputs.eq(n).val(e),t.attr("aria-valuenow",e)},n.prototype._handleEvent=function(t,e,n){var s,a;if(n)s=n,a=!0;else{t.preventDefault();var r=this.options.vertical,l=r?"height":"width",u=r?"top":"left",d=r?t.pageY:t.pageX,c=this.$handle[0].getBoundingClientRect()[l]/2,h=this.$element[0].getBoundingClientRect()[l],f=this.$element.offset()[u]-d,p=f>0?-c:-h>f-c?h:Math.abs(f),m=i(p,h);if(s=(this.options.end-this.options.start)*m,a=!1,!e){var g=o(this.$handle,u,p,l),v=o(this.$handle2,u,p,l);e=v>=g?this.$handle:this.$handle2}}this._setHandlePos(e,s,a)},n.prototype._events=function(n){if(this.options.disabled)return!1;var i,o=this;if(this.inputs.off("change.zf.slider").on("change.zf.slider",function(e){var n=o.inputs.index(t(this));o._handleEvent(e,o.handles.eq(n),t(this).val())}),this.options.clickSelect&&this.$element.off("click.zf.slider").on("click.zf.slider",function(t){return o.$element.data("dragging")?!1:(o.animComplete=!1,void(o.options.doubleSided?o._handleEvent(t):o._handleEvent(t,o.$handle)))}),this.options.draggable){this.handles.addTouch();var s=t("body");n.off("mousedown.zf.slider").on("mousedown.zf.slider",function(e){n.addClass("is-dragging"),o.$fill.addClass("is-dragging"),o.$element.data("dragging",!0),o.animComplete=!1,i=t(e.currentTarget),s.on("mousemove.zf.slider",function(t){t.preventDefault(),o._handleEvent(t,i)}).on("mouseup.zf.slider",function(t){o.animComplete=!0,o._handleEvent(t,i),n.removeClass("is-dragging"),o.$fill.removeClass("is-dragging"),o.$element.data("dragging",!1),s.off("mousemove.zf.slider mouseup.zf.slider")})})}n.off("keydown.zf.slider").on("keydown.zf.slider",function(n){var i,s=o.options.doubleSided?o.handles.index(t(this)):0,a=parseFloat(o.inputs.eq(s).val()),r=t(this);e.Keyboard.handleKey(n,o,{decrease:function(){i=a-o.options.step},increase:function(){i=a+o.options.step},decrease_fast:function(){i=a-10*o.options.step},increase_fast:function(){i=a+10*o.options.step},handled:function(){n.preventDefault(),o._setHandlePos(r,i,!0)}})})},n.prototype.destroy=function(){this.handles.off(".zf.slider"),this.inputs.off(".zf.slider"),this.$element.off(".zf.slider"),e.unregisterPlugin(this)},e.plugin(n,"Slider")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this)}function i(t){return parseInt(window.getComputedStyle(document.body,null).fontSize,10)*t}n.defaults={container:"<div data-sticky-container></div>",stickTo:"top",anchor:"",topAnchor:"",btmAnchor:"",marginTop:1,marginBottom:1,stickyOn:"medium",stickyClass:"sticky",containerClass:"sticky-container",checkEvery:-1},n.prototype._init=function(){var n=this.$element.parent("[data-sticky-container]"),i=this.$element[0].id||e.GetYoDigits(6,"sticky"),o=this;n.length||(this.wasWrapped=!0),this.$container=n.length?n:t(this.options.container).wrapInner(this.$element),this.$container.addClass(this.options.containerClass),this.$element.addClass(this.options.stickyClass).attr({"data-resize":i}),this.scrollCount=this.options.checkEvery,this.isStuck=!1,""!==this.options.topAnchor?this._parsePoints():this.$anchor=t(this.options.anchor?"#"+this.options.anchor:document.body),this._setSizes(function(){o._calc(!1)}),this._events(i.split("-").reverse().join("-"))},n.prototype._parsePoints=function(){for(var e=this.options.topAnchor,n=this.options.btmAnchor,i=[e,n],o={},s=0,a=i.length;a>s&&i[s];s++){var r;if("number"==typeof i[s])r=i[s];else{var l=i[s].split(":"),u=t("#"+l[0]);r=u.offset().top,l[1]&&"bottom"===l[1].toLowerCase()&&(r+=u[0].getBoundingClientRect().height)}o[s]=r}this.points=o},n.prototype._events=function(e){var n=this,i="scroll.zf."+e;this.isOn||(this.canStick&&(this.isOn=!0,
  t(window).off(i).on(i,function(t){0===n.scrollCount?(n.scrollCount=n.options.checkEvery,n._setSizes(function(){n._calc(!1,window.pageYOffset)})):(n.scrollCount--,n._calc(!1,window.pageYOffset))})),this.$element.off("resizeme.zf.trigger").on("resizeme.zf.trigger",function(t,o){n._setSizes(function(){n._calc(!1),n.canStick?n.isOn||n._events(e):n.isOn&&n._pauseListeners(i)})}))},n.prototype._pauseListeners=function(e){this.isOn=!1,t(window).off(e),this.$element.trigger("pause.zf.sticky")},n.prototype._calc=function(t,e){return t&&this._setSizes(),this.canStick?(e||(e=window.pageYOffset),void(e>=this.topPoint?e<=this.bottomPoint?this.isStuck||this._setSticky():this.isStuck&&this._removeSticky(!1):this.isStuck&&this._removeSticky(!0))):(this.isStuck&&this._removeSticky(!0),!1)},n.prototype._setSticky=function(){var t=this.options.stickTo,e="top"===t?"marginTop":"marginBottom",n="top"===t?"bottom":"top",i={};i[e]=this.options[e]+"em",i[t]=0,i[n]="auto",i.left=this.$container.offset().left+parseInt(window.getComputedStyle(this.$container[0])["padding-left"],10),this.isStuck=!0,this.$element.removeClass("is-anchored is-at-"+n).addClass("is-stuck is-at-"+t).css(i).trigger("sticky.zf.stuckto:"+t)},n.prototype._removeSticky=function(t){var e,n,i=this.options.stickTo,o="top"===i,s={},a=(this.points?this.points[1]-this.points[0]:this.anchorHeight)-this.elemHeight;e=o?"marginTop":"marginBottom",n=o?"bottom":"top",s[e]=0,t&&!o||o&&!t?(s[i]=a,s[n]=0):(s[i]=0,s[n]=a),s.left="",this.isStuck=!1,this.$element.removeClass("is-stuck is-at-"+i).addClass("is-anchored is-at-"+(t?"top":"bottom")).css(s).trigger("top")},n.prototype._setSizes=function(t){this.canStick=e.MediaQuery.atLeast(this.options.stickyOn),this.canStick||t();var n=this.$container[0].getBoundingClientRect().width,i=window.getComputedStyle(this.$container[0]),o=parseInt(i["padding-right"],10);this.$anchor&&this.$anchor.length?this.anchorHeight=this.$anchor[0].getBoundingClientRect().height:this._parsePoints(),this.$element.css({"max-width":n-o+"px"});var s=this.$element[0].getBoundingClientRect().height||this.containerHeight;this.containerHeight=s,this.$container.css({height:s}),this.elemHeight=s,this.isStuck&&this.$element.css({left:this.$container.offset().left+parseInt(i["padding-left"],10)}),this._setBreakPoints(s,function(){t&&t()})},n.prototype._setBreakPoints=function(t,e){if(!this.canStick){if(!e)return!1;e()}var n=i(this.options.marginTop),o=i(this.options.marginBottom),s=this.points?this.points[0]:this.$anchor.offset().top,a=this.points?this.points[1]:s+this.anchorHeight,r=window.innerHeight;"top"===this.options.stickTo?(s-=n,a-=t+n):"bottom"===this.options.stickTo&&(s-=r-(t+o),a-=r-o),this.topPoint=s,this.bottomPoint=a,e&&e()},n.prototype.destroy=function(){this._removeSticky(!0),this.$element.removeClass(this.options.stickyClass+" is-anchored is-at-top").css({height:"",top:"",bottom:"","max-width":""}).off("resizeme.zf.trigger"),this.$anchor.off("change.zf.sticky"),t(window).off("scroll.zf.sticky"),this.wasWrapped?this.$element.unwrap():this.$container.removeClass(this.options.containerClass).css({height:""}),e.unregisterPlugin(this)},e.plugin(n,"Sticky")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=t.extend({},n.defaults,this.$element.data(),o),this._init(),e.registerPlugin(this),e.Keyboard.register("Tabs",{ENTER:"open",SPACE:"open",ARROW_RIGHT:"next",ARROW_UP:"previous",ARROW_DOWN:"next",ARROW_LEFT:"previous"})}n.defaults={autoFocus:!1,wrapOnKeys:!0,matchHeight:!1,linkClass:"tabs-title",panelClass:"tabs-panel"},n.prototype._init=function(){var n=this;if(this.$tabTitles=this.$element.find("."+this.options.linkClass),this.$tabContent=t('[data-tabs-content="'+this.$element[0].id+'"]'),this.$tabTitles.each(function(){var e=t(this),i=e.find("a"),o=e.hasClass("is-active"),s=i.attr("href").slice(1),a=s+"-label",r=t(s);e.attr({role:"presentation"}),i.attr({role:"tab","aria-controls":s,"aria-selected":o,id:a}),r.attr({role:"tabpanel","aria-hidden":!o,"aria-labelledby":a}),o&&n.options.autoFocus&&i.focus()}),this.options.matchHeight){var i=this.$tabContent.find("img");i.length?e.onImagesLoaded(i,this._setHeight.bind(this)):this._setHeight()}this._events()},n.prototype._events=function(){this._addKeyHandler(),this._addClickHandler(),this.options.matchHeight&&t(window).on("changed.zf.mediaquery",this._setHeight.bind(this))},n.prototype._addClickHandler=function(){var e=this;this.$tabTitles.off("click.zf.tabs").on("click.zf.tabs",function(n){n.preventDefault(),n.stopPropagation(),t(this).hasClass("is-active")||e._handleTabChange(t(this))})},n.prototype._addKeyHandler=function(){var n=this;n.$element.find("li:first-of-type"),n.$element.find("li:last-of-type");this.$tabTitles.off("keydown.zf.tabs").on("keydown.zf.tabs",function(i){i.stopPropagation(),i.preventDefault();var o,s,a=t(this),r=a.parent("ul").children("li");r.each(function(e){return t(this).is(a)?void(n.options.wrapOnKeys?(o=0===e?r.last():r.eq(e-1),s=e===r.length-1?r.first():r.eq(e+1)):(o=r.eq(Math.max(0,e-1)),s=r.eq(Math.min(e+1,r.length-1)))):void 0}),e.Keyboard.handleKey(i,n,{open:function(){a.find('[role="tab"]').focus(),n._handleTabChange(a)},previous:function(){o.find('[role="tab"]').focus(),n._handleTabChange(o)},next:function(){s.find('[role="tab"]').focus(),n._handleTabChange(s)}})})},n.prototype._handleTabChange=function(e){var n=e.find('[role="tab"]'),i=n.attr("href"),o=t(i),s=this.$element.find("."+this.options.linkClass+".is-active").removeClass("is-active").find('[role="tab"]').attr({"aria-selected":"false"}).attr("href");t(s).removeClass("is-active").attr({"aria-hidden":"true"}),e.addClass("is-active"),n.attr({"aria-selected":"true"}),o.addClass("is-active").attr({"aria-hidden":"false"}),this.$element.trigger("change.zf.tabs",[e])},n.prototype.selectTab=function(t){var e;e="object"==typeof t?t[0].id:t,e.indexOf("#")<0&&(e="#"+e);var n=this.$tabTitles.find('[href="'+e+'"]').parent("."+this.options.linkClass);this._handleTabChange(n)},n.prototype._setHeight=function(){var e=0;this.$tabContent.find("."+this.options.panelClass).css("height","").each(function(){var n=t(this),i=n.hasClass("is-active");i||n.css({visibility:"hidden",display:"block"});var o=this.getBoundingClientRect().height;i||n.css({visibility:"",display:""}),e=o>e?o:e}).css("height",e+"px")},n.prototype.destroy=function(){this.$element.find("."+this.options.linkClass).off(".zf.tabs").hide().end().find("."+this.options.panelClass).hide(),this.options.matchHeight&&t(window).off("changed.zf.mediaquery"),e.unregisterPlugin(this)},e.plugin(n,"Tabs")}(jQuery,window.Foundation),!function(t,e){"use strict";function n(i,o){this.$element=i,this.options=e.extend({},n.defaults,i.data(),o),this.className="",this._init(),this._events(),t.registerPlugin(this)}n.defaults={animate:!1},n.prototype._init=function(){var t;this.options.animate?(t=this.options.animate.split(" "),this.animationIn=t[0],this.animationOut=t[1]||null):(t=this.$element.data("toggler"),"."===t[0]?this.className=t.slice(1):this.className=t);var n=this.$element[0].id;e('[data-open="'+n+'"], [data-close="'+n+'"], [data-toggle="'+n+'"]').attr("aria-controls",n),this.$element.is(":hidden")&&this.$element.attr("aria-expanded","false")},n.prototype._events=function(){var t=this;this.$element.on("toggle.zf.trigger",function(){return t.toggle(),!1})},n.prototype.toggle=function(){this.options.animate?this._toggleAnimate():this._toggleClass()},n.prototype._toggleClass=function(){var t=this;this.$element.toggleClass(this.className),this.$element.hasClass(this.className)?this.$element.trigger("on.zf.toggler"):this.$element.trigger("off.zf.toggler"),t._updateARIA()},n.prototype._toggleAnimate=function(){var e=this;this.$element.is(":hidden")?t.Motion.animateIn(this.$element,this.animationIn,function(){this.trigger("on.zf.toggler"),e._updateARIA()}):t.Motion.animateOut(this.$element,this.animationOut,function(){this.trigger("off.zf.toggler"),e._updateARIA()})},n.prototype._updateARIA=function(){this.$element.is(":hidden")?this.$element.attr("aria-expanded","false"):this.$element.attr("aria-expanded","true")},n.prototype.destroy=function(){this.$element.off(".zf.toggler"),t.unregisterPlugin(this)},t.plugin(n,"Toggler"),"undefined"!=typeof module&&"undefined"!=typeof module.exports&&(module.exports=n),"function"==typeof define&&define(["foundation"],function(){return n})}(Foundation,jQuery),!function(t,e,n){"use strict";function i(e,o){this.$element=e,this.options=t.extend({},i.defaults,this.$element.data(),o),this.isActive=!1,this.isClick=!1,this._init(),n.registerPlugin(this)}i.defaults={disableForTouch:!1,hoverDelay:200,fadeInDuration:150,fadeOutDuration:150,disableHover:!1,templateClasses:"",tooltipClass:"tooltip",triggerClass:"has-tip",showOn:"small",template:"",tipText:"",touchCloseText:"Tap to close.",clickOpen:!0,positionClass:"",vOffset:10,hOffset:12},i.prototype._init=function(){var i=this.$element.attr("aria-describedby")||n.GetYoDigits(6,"tooltip");this.options.positionClass=this._getPositionClass(this.$element),this.options.tipText=this.options.tipText||this.$element.attr("title"),this.template=this.options.template?t(this.options.template):this._buildTemplate(i),this.template.appendTo(e.body).text(this.options.tipText).hide(),this.$element.attr({title:"","aria-describedby":i,"data-yeti-box":i,"data-toggle":i,"data-resize":i}).addClass(this.triggerClass),this.usedPositions=[],this.counter=4,this.classChanged=!1,this._events()},i.prototype._getPositionClass=function(t){if(!t)return"";var e=t[0].className.match(/(top|left|right)/g);return e=e?e[0]:""},i.prototype._buildTemplate=function(e){var n=(this.options.tooltipClass+" "+this.options.positionClass).trim(),i=t("<div></div>").addClass(n).attr({role:"tooltip","aria-hidden":!0,"data-is-active":!1,"data-is-focus":!1,id:e});return i},i.prototype._reposition=function(t){this.usedPositions.push(t?t:"bottom"),!t&&this.usedPositions.indexOf("top")<0?this.template.addClass("top"):"top"===t&&this.usedPositions.indexOf("bottom")<0?this.template.removeClass(t):"left"===t&&this.usedPositions.indexOf("right")<0?this.template.removeClass(t).addClass("right"):"right"===t&&this.usedPositions.indexOf("left")<0?this.template.removeClass(t).addClass("left"):!t&&this.usedPositions.indexOf("top")>-1&&this.usedPositions.indexOf("left")<0?this.template.addClass("left"):"top"===t&&this.usedPositions.indexOf("bottom")>-1&&this.usedPositions.indexOf("left")<0?this.template.removeClass(t).addClass("left"):"left"===t&&this.usedPositions.indexOf("right")>-1&&this.usedPositions.indexOf("bottom")<0?this.template.removeClass(t):"right"===t&&this.usedPositions.indexOf("left")>-1&&this.usedPositions.indexOf("bottom")<0?this.template.removeClass(t):this.template.removeClass(t),this.classChanged=!0,this.counter--},i.prototype._setPosition=function(){var t=this._getPositionClass(this.template),e=n.Box.GetDimensions(this.template),i=n.Box.GetDimensions(this.$element),o="left"===t?"left":"right"===t?"left":"top",s="top"===o?"height":"width";"height"===s?this.options.vOffset:this.options.hOffset;if(e.width>=e.windowDims.width||!this.counter&&!n.Box.ImNotTouchingYou(this.template))return this.template.offset(n.Box.GetOffsets(this.template,this.$element,"center bottom",this.options.vOffset,this.options.hOffset,!0)).css({width:i.windowDims.width-2*this.options.hOffset,height:"auto"}),!1;for(this.template.offset(n.Box.GetOffsets(this.template,this.$element,"center "+(t||"bottom"),this.options.vOffset,this.options.hOffset));!n.Box.ImNotTouchingYou(this.template)&&this.counter;)this._reposition(t),this._setPosition()},i.prototype.show=function(){if("all"!==this.options.showOn&&!n.MediaQuery.atLeast(this.options.showOn))return!1;var t=this;this.template.css("visibility","hidden").show(),this._setPosition(),this.$element.trigger("closeme.zf.tooltip",this.template.attr("id")),this.template.attr({"data-is-active":!0,"aria-hidden":!1}),t.isActive=!0,this.template.stop().hide().css("visibility","").fadeIn(this.options.fadeInDuration,function(){}),this.$element.trigger("show.zf.tooltip")},i.prototype.hide=function(){var t=this;this.template.stop().attr({"aria-hidden":!0,"data-is-active":!1}).fadeOut(this.options.fadeOutDuration,function(){t.isActive=!1,t.isClick=!1,t.classChanged&&(t.template.removeClass(t._getPositionClass(t.template)).addClass(t.options.positionClass),t.usedPositions=[],t.counter=4,t.classChanged=!1)}),this.$element.trigger("hide.zf.tooltip")},i.prototype._events=function(){var t=this,e=(this.template,!1);this.options.disableHover||this.$element.on("mouseenter.zf.tooltip",function(e){t.isActive||(t.timeout=setTimeout(function(){t.show()},t.options.hoverDelay))}).on("mouseleave.zf.tooltip",function(n){clearTimeout(t.timeout),(!e||!t.isClick&&t.options.clickOpen)&&t.hide()}),this.options.clickOpen&&this.$element.on("mousedown.zf.tooltip",function(e){e.stopImmediatePropagation(),t.isClick?t.hide():(t.isClick=!0,!t.options.disableHover&&t.$element.attr("tabindex")||t.isActive||t.show())}),this.options.disableForTouch||this.$element.on("tap.zf.tooltip touchend.zf.tooltip",function(e){t.isActive?t.hide():t.show()}),this.$element.on({"close.zf.trigger":this.hide.bind(this)}),this.$element.on("focus.zf.tooltip",function(n){return e=!0,console.log(t.isClick),t.isClick?!1:void t.show()}).on("focusout.zf.tooltip",function(n){e=!1,t.isClick=!1,t.hide()}).on("resizeme.zf.trigger",function(){t.isActive&&t._setPosition()})},i.prototype.toggle=function(){this.isActive?this.hide():this.show()},i.prototype.destroy=function(){this.$element.attr("title",this.template.text()).off(".zf.trigger .zf.tootip").removeAttr("aria-describedby").removeAttr("data-yeti-box").removeAttr("data-toggle").removeAttr("data-resize"),this.template.remove(),n.unregisterPlugin(this)},n.plugin(i,"Tooltip")}(jQuery,window.document,window.Foundation),function(){$(document).ready(function(){return $(".addToggle").click(function(){return $(this).next().toggle(500)}),$(".help_toggle").mouseenter(function(){return $(this).next().show()}),$(".help_toggle").mouseleave(function(){return $(this).next().hide()}),$("#layout_set").change(function(){return $("#set_layout form").submit()}),$(".tinymce").length>0&&tinymce.init({mode:"specific_textareas",editor_selector:"tinymce",plugins:"link image"}),$("#carousel").length>0&&$("#carousel").infiniteCarousel({}),$("#accordion").length>0&&$("#accordion").accordion(),$(".fancybox").length>0?$(".fancybox").fancybox():void 0})}.call(this),/*!
   * jQuery Upload File Plugin
   * version: 4.0.8
   * @requires jQuery v1.5 or later & form plugin
   * Copyright (c) 2013 Ravishanker Kusuma
   * http://hayageek.com/
   */
  function(t){void 0==t.fn.ajaxForm&&t.getScript(("https:"==document.location.protocol?"https://":"http://")+"malsup.github.io/jquery.form.js");var e={};e.fileapi=void 0!==t("<input type='file'/>").get(0).files,e.formdata=void 0!==window.FormData,t.fn.uploadFile=function(n){function i(){C||(C=!0,function t(){if(v.sequential||(v.sequentialCount=99999),0==w.length&&0==_.length)v.afterUploadAll&&v.afterUploadAll(b),C=!1;else{if(_.length<v.sequentialCount){var e=w.shift();void 0!=e&&(_.push(e),e.submit())}window.setTimeout(t,100)}}())}function o(e,n,i){i.on("dragenter",function(e){e.stopPropagation(),e.preventDefault(),t(this).addClass(n.dragDropHoverClass)}),i.on("dragover",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);i.hasClass(n.dragDropContainerClass)&&!i.hasClass(n.dragDropHoverClass)&&i.addClass(n.dragDropHoverClass)}),i.on("drop",function(i){i.preventDefault(),t(this).removeClass(n.dragDropHoverClass),e.errorLog.html("");var o=i.originalEvent.dataTransfer.files;return!n.multiple&&o.length>1?void(n.showError&&t("<div class='"+n.errorClass+"'>"+n.multiDragErrorStr+"</div>").appendTo(e.errorLog)):void(0!=n.onSelect(o)&&r(n,e,o))}),i.on("dragleave",function(e){t(this).removeClass(n.dragDropHoverClass)}),t(document).on("dragenter",function(t){t.stopPropagation(),t.preventDefault()}),t(document).on("dragover",function(e){e.stopPropagation(),e.preventDefault();var i=t(this);i.hasClass(n.dragDropContainerClass)||i.removeClass(n.dragDropHoverClass)}),t(document).on("drop",function(e){e.stopPropagation(),e.preventDefault(),t(this).removeClass(n.dragDropHoverClass)})}function s(t){var e="",n=t/1024;if(parseInt(n)>1024){var i=n/1024;e=i.toFixed(2)+" MB"}else e=n.toFixed(2)+" KB";return e}function a(e){var n=[];n="string"==jQuery.type(e)?e.split("&"):t.param(e).split("&");var i,o,s=n.length,a=[];for(i=0;s>i;i++)n[i]=n[i].replace(/\+/g," "),o=n[i].split("="),a.push([decodeURIComponent(o[0]),decodeURIComponent(o[1])]);return a}function r(e,n,i){for(var o=0;o<i.length;o++)if(l(n,e,i[o].name))if(e.allowDuplicates||!u(n,i[o].name))if(-1!=e.maxFileSize&&i[o].size>e.maxFileSize)e.showError&&t("<div class='"+e.errorClass+"'><b>"+i[o].name+"</b> "+e.sizeErrorStr+s(e.maxFileSize)+"</div>").appendTo(n.errorLog);else if(-1!=e.maxFileCount&&n.selectedFiles>=e.maxFileCount)e.showError&&t("<div class='"+e.errorClass+"'><b>"+i[o].name+"</b> "+e.maxFileCountErrorStr+e.maxFileCount+"</div>").appendTo(n.errorLog);else{n.selectedFiles++,n.existingFileNames.push(i[o].name);var r=e,d=new FormData,c=e.fileName.replace("[]","");d.append(c,i[o]);var h=e.formData;if(h)for(var f=a(h),p=0;p<f.length;p++)f[p]&&d.append(f[p][0],f[p][1]);r.fileData=d;var v=new m(n,e),y="";y=e.showFileCounter?n.fileCounter+e.fileCounterStyle+i[o].name:i[o].name,e.showFileSize&&(y+=" ("+s(i[o].size)+")"),v.filename.html(y);var b=t("<form style='display:block; position:absolute;left: 150px;' class='"+n.formGroup+"' method='"+e.method+"' action='"+e.url+"' enctype='"+e.enctype+"'></form>");b.appendTo("body");var x=[];x.push(i[o].name),g(b,r,v,x,n,i[o]),n.fileCounter++}else e.showError&&t("<div class='"+e.errorClass+"'><b>"+i[o].name+"</b> "+e.duplicateErrorStr+"</div>").appendTo(n.errorLog);else e.showError&&t("<div class='"+e.errorClass+"'><b>"+i[o].name+"</b> "+e.extErrorStr+e.allowedTypes+"</div>").appendTo(n.errorLog)}function l(t,e,n){var i=e.allowedTypes.toLowerCase().split(/[\s,]+/g),o=n.split(".").pop().toLowerCase();return"*"!=e.allowedTypes&&jQuery.inArray(o,i)<0?!1:!0}function u(t,e){var n=!1;if(t.existingFileNames.length)for(var i=0;i<t.existingFileNames.length;i++)(t.existingFileNames[i]==e||v.duplicateStrict&&t.existingFileNames[i].toLowerCase()==e.toLowerCase())&&(n=!0);return n}function d(t,e){if(t.existingFileNames.length)for(var n=0;n<e.length;n++){var i=t.existingFileNames.indexOf(e[n]);-1!=i&&t.existingFileNames.splice(i,1)}}function c(t,e){if(t){e.show();var n=new FileReader;n.onload=function(t){e.attr("src",t.target.result)},n.readAsDataURL(t)}}function h(e,n){if(e.showFileCounter){var i=t(n.container).find(".ajax-file-upload-filename").length;n.fileCounter=i+1,t(n.container).find(".ajax-file-upload-filename").each(function(n,o){var s=t(this).html().split(e.fileCounterStyle),a=(parseInt(s[0])-1,i+e.fileCounterStyle+s[1]);t(this).html(a),i--})}}function f(n,i,o,s){var a="ajax-upload-id-"+(new Date).getTime(),u=t("<form method='"+o.method+"' action='"+o.url+"' enctype='"+o.enctype+"'></form>"),d="<input type='file' id='"+a+"' name='"+o.fileName+"' accept='"+o.acceptFiles+"'/>";o.multiple&&(o.fileName.indexOf("[]")!=o.fileName.length-2&&(o.fileName+="[]"),d="<input type='file' id='"+a+"' name='"+o.fileName+"' accept='"+o.acceptFiles+"' multiple/>");var c=t(d).appendTo(u);c.change(function(){n.errorLog.html("");var a=(o.allowedTypes.toLowerCase().split(","),[]);if(this.files){for(y=0;y<this.files.length;y++)a.push(this.files[y].name);if(0==o.onSelect(this.files))return}else{var d=t(this).val(),c=[];if(a.push(d),!l(n,o,d))return void(o.showError&&t("<div class='"+o.errorClass+"'><b>"+d+"</b> "+o.extErrorStr+o.allowedTypes+"</div>").appendTo(n.errorLog));if(c.push({name:d,size:"NA"}),0==o.onSelect(c))return}if(h(o,n),s.unbind("click"),u.hide(),f(n,i,o,s),u.addClass(i),o.serialize&&e.fileapi&&e.formdata){u.removeClass(i);var p=this.files;u.remove(),r(o,n,p)}else{for(var v="",y=0;y<a.length;y++)v+=o.showFileCounter?n.fileCounter+o.fileCounterStyle+a[y]+"<br>":a[y]+"<br>",n.fileCounter++;if(-1!=o.maxFileCount&&n.selectedFiles+a.length>o.maxFileCount)return void(o.showError&&t("<div class='"+o.errorClass+"'><b>"+v+"</b> "+o.maxFileCountErrorStr+o.maxFileCount+"</div>").appendTo(n.errorLog));n.selectedFiles+=a.length;var b=new m(n,o);b.filename.html(v),g(u,o,b,a,n,null)}}),o.nestedForms?(u.css({margin:0,padding:0}),s.css({position:"relative",overflow:"hidden",cursor:"default"}),c.css({position:"absolute",cursor:"pointer",top:"0px",width:"100%",height:"100%",left:"0px","z-index":"100",opacity:"0.0",filter:"alpha(opacity=0)","-ms-filter":"alpha(opacity=0)","-khtml-opacity":"0.0","-moz-opacity":"0.0"}),u.appendTo(s)):(u.appendTo(t("body")),u.css({margin:0,padding:0,display:"block",position:"absolute",left:"-250px"}),-1!=navigator.appVersion.indexOf("MSIE ")?s.attr("for",a):s.click(function(){c.click()}))}function p(e,n){return this.statusbar=t("<div class='ajax-file-upload-statusbar'></div>").width(n.statusBarWidth),this.preview=t("<img class='ajax-file-upload-preview' />").width(n.previewWidth).height(n.previewHeight).appendTo(this.statusbar).hide(),this.filename=t("<div class='ajax-file-upload-filename'></div>").appendTo(this.statusbar),this.progressDiv=t("<div class='ajax-file-upload-progress'>").appendTo(this.statusbar).hide(),this.progressbar=t("<div class='ajax-file-upload-bar'></div>").appendTo(this.progressDiv),this.abort=t("<div>"+n.abortStr+"</div>").appendTo(this.statusbar).hide(),this.cancel=t("<div>"+n.cancelStr+"</div>").appendTo(this.statusbar).hide(),this.done=t("<div>"+n.doneStr+"</div>").appendTo(this.statusbar).hide(),this.download=t("<div>"+n.downloadStr+"</div>").appendTo(this.statusbar).hide(),this.del=t("<div>"+n.deletelStr+"</div>").appendTo(this.statusbar).hide(),this.abort.addClass("ajax-file-upload-red"),this.done.addClass("ajax-file-upload-green"),this.download.addClass("ajax-file-upload-green"),this.cancel.addClass("ajax-file-upload-red"),this.del.addClass("ajax-file-upload-red"),this}function m(e,n){var i=null;return i=n.customProgressBar?new n.customProgressBar(e,n):new p(e,n),i.abort.addClass(e.formGroup),i.abort.addClass(n.abortButtonClass),i.cancel.addClass(e.formGroup),i.cancel.addClass(n.cancelButtonClass),n.extraHTML&&(i.extraHTML=t("<div class='extrahtml'>"+n.extraHTML()+"</div>").insertAfter(i.filename)),"bottom"==n.uploadQueuOrder?t(e.container).append(i.statusbar):t(e.container).prepend(i.statusbar),i}function g(n,o,s,r,l,u){var f={cache:!1,contentType:!1,processData:!1,forceSync:!1,type:o.method,data:o.formData,formData:o.fileData,dataType:o.returnType,beforeSubmit:function(e,i,u){if(0!=o.onSubmit.call(this,r)){if(o.dynamicFormData){var c=a(o.dynamicFormData());if(c)for(var f=0;f<c.length;f++)c[f]&&(void 0!=o.fileData?u.formData.append(c[f][0],c[f][1]):u.data[c[f][0]]=c[f][1])}return o.extraHTML&&t(s.extraHTML).find("input,select,textarea").each(function(e,n){void 0!=o.fileData?u.formData.append(t(this).attr("name"),t(this).val()):u.data[t(this).attr("name")]=t(this).val()}),!0}return s.statusbar.append("<div class='"+o.errorClass+"'>"+o.uploadErrorStr+"</div>"),s.cancel.show(),n.remove(),s.cancel.click(function(){w.splice(w.indexOf(n),1),d(l,r),s.statusbar.remove(),o.onCancel.call(l,r,s),l.selectedFiles-=r.length,h(o,l)}),!1},beforeSend:function(t,n){s.progressDiv.show(),s.cancel.hide(),s.done.hide(),o.showAbort&&(s.abort.show(),s.abort.click(function(){d(l,r),t.abort(),l.selectedFiles-=r.length,o.onAbort.call(l,r,s)})),e.formdata?s.progressbar.width("1%"):s.progressbar.width("5%")},uploadProgress:function(t,e,n,i){i>98&&(i=98);var a=i+"%";i>1&&s.progressbar.width(a),o.showProgress&&(s.progressbar.html(a),s.progressbar.css("text-align","center"))},success:function(e,i,a){if(s.cancel.remove(),_.pop(),"json"==o.returnType&&"object"==t.type(e)&&e.hasOwnProperty(o.customErrorKeyStr)){s.abort.hide();var u=e[o.customErrorKeyStr];return o.onError.call(this,r,200,u,s),o.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("<span class='"+o.errorClass+"'>ERROR: "+u+"</span>")):(s.statusbar.hide(),s.statusbar.remove()),l.selectedFiles-=r.length,void n.remove()}l.responses.push(e),s.progressbar.width("100%"),o.showProgress&&(s.progressbar.html("100%"),s.progressbar.css("text-align","center")),s.abort.hide(),o.onSuccess.call(this,r,e,a,s),o.showStatusAfterSuccess?(o.showDone?(s.done.show(),s.done.click(function(){s.statusbar.hide("slow"),s.statusbar.remove()})):s.done.hide(),o.showDelete?(s.del.show(),s.del.click(function(){s.statusbar.hide().remove(),o.deleteCallback&&o.deleteCallback.call(this,e,s),l.selectedFiles-=r.length,h(o,l)})):s.del.hide()):(s.statusbar.hide("slow"),s.statusbar.remove()),o.showDownload&&(s.download.show(),s.download.click(function(){o.downloadCallback&&o.downloadCallback(e)})),n.remove()},error:function(t,e,i){s.cancel.remove(),_.pop(),s.abort.hide(),"abort"==t.statusText?(s.statusbar.hide("slow").remove(),h(o,l)):(o.onError.call(this,r,e,i,s),o.showStatusAfterError?(s.progressDiv.hide(),s.statusbar.append("<span class='"+o.errorClass+"'>ERROR: "+i+"</span>")):(s.statusbar.hide(),s.statusbar.remove()),l.selectedFiles-=r.length),n.remove()}};o.showPreview&&null!=u&&"image"==u.type.toLowerCase().split("/").shift()&&c(u,s.preview),o.autoSubmit?(n.ajaxForm(f),w.push(n),i()):(o.showCancel&&(s.cancel.show(),s.cancel.click(function(){w.splice(w.indexOf(n),1),d(l,r),n.remove(),s.statusbar.remove(),o.onCancel.call(l,r,s),l.selectedFiles-=r.length,h(o,l)})),n.ajaxForm(f))}var v=t.extend({url:"",method:"POST",enctype:"multipart/form-data",returnType:null,allowDuplicates:!0,duplicateStrict:!1,allowedTypes:"*",acceptFiles:"*",fileName:"file",formData:!1,dynamicFormData:!1,maxFileSize:-1,maxFileCount:-1,multiple:!0,dragDrop:!0,autoSubmit:!0,showCancel:!0,showAbort:!0,showDone:!1,showDelete:!1,showError:!0,showStatusAfterSuccess:!0,showStatusAfterError:!0,showFileCounter:!0,fileCounterStyle:"). ",showFileSize:!0,showProgress:!1,nestedForms:!0,showDownload:!1,onLoad:function(t){},onSelect:function(t){return!0},onSubmit:function(t,e){},onSuccess:function(t,e,n,i){},onError:function(t,e,n,i){},onCancel:function(t,e){},onAbort:function(t,e){},downloadCallback:!1,deleteCallback:!1,afterUploadAll:!1,serialize:!0,sequential:!1,sequentialCount:2,customProgressBar:!1,abortButtonClass:"ajax-file-upload-abort",cancelButtonClass:"ajax-file-upload-cancel",dragDropContainerClass:"ajax-upload-dragdrop",dragDropHoverClass:"state-hover",errorClass:"ajax-file-upload-error",uploadButtonClass:"ajax-file-upload",dragDropStr:"<span><b>Drag &amp; Drop Files</b></span>",uploadStr:"Upload",abortStr:"Abort",cancelStr:"Cancel",deletelStr:"Delete",doneStr:"Done",multiDragErrorStr:"Multiple File Drag &amp; Drop is not allowed.",extErrorStr:"is not allowed. Allowed extensions: ",duplicateErrorStr:"is not allowed. File already exists.",sizeErrorStr:"is not allowed. Allowed Max size: ",uploadErrorStr:"Upload is not allowed",maxFileCountErrorStr:" is not allowed. Maximum allowed files are:",downloadStr:"Download",customErrorKeyStr:"jquery-upload-file-error",showQueueDiv:!1,statusBarWidth:400,dragdropWidth:400,showPreview:!1,previewHeight:"auto",previewWidth:"100%",extraHTML:!1,uploadQueuOrder:"top"},n);this.fileCounter=1,this.selectedFiles=0;var y="ajax-file-upload-"+(new Date).getTime();this.formGroup=y,this.errorLog=t("<div></div>"),this.responses=[],this.existingFileNames=[],e.formdata||(v.dragDrop=!1),e.formdata||(v.multiple=!1),t(this).html("");var b=this,x=t("<div>"+v.uploadStr+"</div>");t(x).addClass(v.uploadButtonClass),function k(){if(t.fn.ajaxForm){if(v.dragDrop){var e=t('<div class="'+v.dragDropContainerClass+'" style="vertical-align:top;"></div>').width(v.dragdropWidth);t(b).append(e),t(e).append(x),t(e).append(t(v.dragDropStr)),o(b,v,e)}else t(b).append(x);t(b).append(b.errorLog),v.showQueueDiv?b.container=t("#"+v.showQueueDiv):b.container=t("<div class='ajax-file-upload-container'></div>").insertAfter(t(b)),v.onLoad.call(this,b),f(b,y,v,x)}else window.setTimeout(k,10)}(),this.startUpload=function(){t("form").each(function(e,n){t(this).hasClass(b.formGroup)&&w.push(t(this))}),w.length>=1&&i()},this.getFileCount=function(){return b.selectedFiles},this.stopUpload=function(){t("."+v.abortButtonClass).each(function(e,n){t(this).hasClass(b.formGroup)&&t(this).click()}),t("."+v.cancelButtonClass).each(function(e,n){t(this).hasClass(b.formGroup)&&t(this).click()})},this.cancelAll=function(){t("."+v.cancelButtonClass).each(function(e,n){t(this).hasClass(b.formGroup)&&t(this).click()})},this.update=function(e){v=t.extend(v,e)},this.reset=function(t){b.fileCounter=1,b.selectedFiles=0,b.errorLog.html(""),0!=t&&b.container.html("")},this.remove=function(){b.container.html(""),t(b).remove()},this.createProgress=function(t,e,n){var i=new m(this,v);i.progressDiv.show(),i.progressbar.width("100%");var o="";o=v.showFileCounter?b.fileCounter+v.fileCounterStyle+t:t,v.showFileSize&&(o+=" ("+s(n)+")"),i.filename.html(o),b.fileCounter++,b.selectedFiles++,v.showPreview&&(i.preview.attr("src",e),i.preview.show()),v.showDownload&&(i.download.show(),i.download.click(function(){v.downloadCallback&&v.downloadCallback.call(b,[t])})),v.showDelete&&(i.del.show(),i.del.click(function(){i.statusbar.hide().remove();var e=[t];v.deleteCallback&&v.deleteCallback.call(this,e,i),b.selectedFiles-=1,h(v,b)}))},this.getResponses=function(){return this.responses};var w=[],_=[],C=!1;return this}}(jQuery),$(document).ready(function(){$(".manager-photos--subform").length>0&&$("#upload_another_image").click(function(){var t={};t.photo=new FormData,t.photo.append("file",$("input#photo")[0].files[0]),$(".manager-photos--subform .questset-id")&&(t.questset_id=$(".manager-photos--subform .questset-id").attr("questset-id")),$(".manager-photos--subform .merit-badge-id")&&(t.merit_badge_id=$(".manager-photos--subform .merit-badge-id").attr("merit-badge-id")),$.post("/manager/photos",t).done(function(t){$(".manager-photos--subform .response").html(t)})}),$("#fileuploader").uploadFile({url:"/manager/photos",fileName:"file",formData:{questset_id:$(".questset-id").attr("questset-id"),merit_badge_id:$(".merit-badge-id").attr("merit-badge-id")},onSuccess:function(t,e,n,i){console.log("data is",e.photo),$(".manager-photos--subform .response").append('<li><img src="'+e.photo.thumb_url+"\" alt='' /> "+e.photo.original_path+"</li>")}}),$(".manager-tasks--form").length>0&&($("#new_task").on("ajax:success",function(t,e,n,i){$(".video-task-new-status").html(e.status)}),$(".edit_task").on("ajax:success",function(t,e,n,i){$(".video-task-"+e.id+"-status").html(e.status)}))});