Difference between revisions of "Team:Valencia UPV/pruebaWeb2"

Line 10: Line 10:
 
{{Valencia_UPV/scripts.js}}
 
{{Valencia_UPV/scripts.js}}
 
{{Valencia_UPV/smoothscroll.min.js}}
 
{{Valencia_UPV/smoothscroll.min.js}}
 +
{{Valencia_UPV/jquery3.1.1.min.js}}
  
 
<html>
 
<html>

Revision as of 08:02, 27 June 2018

function mr_parallax(){"use strict";function a(a){for(var b=0;b<a.length;b++)if("undefined"!=typeof document.body.style[a[b]])return a[b];return null}function b(){var a,b=0;return f()?(b=jQuery(".viu").find("nav:first").outerHeight(!0),a=jQuery(".viu").find("nav:first").css("position"),("absolute"===a||"fixed"===a)&&(b=0)):b=jQuery(document).find("nav:first").outerHeight(!0),Math.floor(b)}function c(){return/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)?screen.height*window.devicePixelRatio:/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)?0===window.orientation&&screen.height>screen.width?screen.height:screen.width:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}function d(){p===!1&&(p=!0,h(q.mr_parallaxBackground))}function e(a){var b={};return a&&"[object Function]"===b.toString.call(a)}function f(){return"undefined"==typeof window.mr_variant?!1:!0}var g,h=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,i=["transform","msTransform","webkitTransform","mozTransform","oTransform"],j=a(i),k="translate3d(0,",l="px,0)",m=c(),n=0,o=window,p=(f(),!1),q=this;jQuery(document).ready(function(){q.documentReady()}),jQuery(window).on("load",function(){q.windowLoad()}),this.documentReady=function(a){return m=c(),jQuery("body").hasClass("parallax-2d")&&(k="translate(0,",l="px)"),h&&(q.profileParallaxElements(),q.setupParallax()),e(a)?void a():void 0},this.windowLoad=function(){m=c(),n=b(),window.mr_parallax.profileParallaxElements()},this.setupParallax=function(){f()&&(o=jQuery(".viu").get(0)),"undefined"!=typeof o&&(("undefined"==typeof window.mr||f())&&(o.onscroll=d),window.addEventListener("resize",function(){m=c(),n=b(),q.profileParallaxElements(),q.mr_parallaxBackground()},!1),window.addEventListener("orientationchange",function(){},!1),q.mr_parallaxBackground())},this.profileParallaxElements=function(){var a;g=[],m=c(),n=b();var d=".parallax > .background-image-holder, .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder";f()&&(d=".viu .parallax > .background-image-holder, .viu .parallax ul.slides > li > .background-image-holder, .parallax ul.slides .owl-item > li > .background-image-holder"),a=jQuery(d),/Android|iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(a=a.not(".parallax-disable-mobile .background-image-holder, body.parallax-disable-mobile *")),jQuery(a).each(function(a){var b=jQuery(this).closest(".parallax"),c=f()?b.position().top:b.offset().top,d=screen.height,e=screen.width;g.push({section:b.get(0),outerHeight:b.outerHeight(),elemTop:c,elemBottom:c+b.outerHeight(),isFirstSection:b.is(":nth-of-type(1)")?!0:!1,imageHolder:jQuery(this).get(0)}),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width<1024&&(0===window.orientation&&d>e?(jQuery(this).css("top","-"+d/2+"px"),jQuery(this).css({"min-height":b.is(":nth-of-type(1)")?1.5*d:1.2*d})):(jQuery(this).css("top","-"+e/2+"px"),jQuery(this).css({"min-height":b.is(":nth-of-type(1)")?1.5*e:1.2*e}))),/iPad|iPhone|iPod/i.test(navigator.userAgent||navigator.vendor||window.opera)&&screen.width>=1024&&(0===window.orientation&&d>e?(jQuery(this).css("top","-"+d/2+"px"),jQuery(this).css({"min-height":b.is(":nth-of-type(1)")?1.5*d:1.2*d})):(jQuery(this).css("top","-"+e/2+"px"),jQuery(this).css({"min-height":b.is(":nth-of-type(1)")?1.5*e:1.2*e}))),/Android/i.test(navigator.userAgent||navigator.vendor||window.opera)&&(jQuery(this).css({top:"-"+d*window.devicePixelRatio/(b.is(":nth-of-type(1)")?8:2)+"px"}),jQuery(this).css({"min-height":b.is(":nth-of-type(1)")?1.5*d:1.2*d})),f()?f()&&(b.is(":nth-of-type(1)")?q.mr_setTranslate3DTransform(jQuery(this).get(0),0===q.mr_getScrollPosition()?0:q.mr_getScrollPosition()/2):q.mr_setTranslate3DTransform(jQuery(this).get(0),(q.mr_getScrollPosition()-c-n)/2)):b.is(":nth-of-type(1)")?q.mr_setTranslate3DTransform(jQuery(this).get(0),0===q.mr_getScrollPosition()?0:q.mr_getScrollPosition()/2):q.mr_setTranslate3DTransform(jQuery(this).get(0),(q.mr_getScrollPosition()+m-c)/2)})},this.mr_parallaxBackground=function(){for(var a,b=g.length,c="undefined"==typeof mr||f()?q.mr_getScrollPosition():mr.scroll.y;b--;)a=g[b],f()?c+m-n>a.elemTop&&c-n<a.elemBottom&&(a.isFirstSection?a.imageHolder.style[j]=k+c/2+l:a.imageHolder.style[j]=k+(c-a.elemTop-n)/2+l):c+m>=a.elemTop&&c<=a.elemBottom&&(a.isFirstSection?a.imageHolder.style[j]=k+c/2+l:a.imageHolder.style[j]=k+(c+m-a.elemTop)/2+l);p=!1},this.mr_setTranslate3DTransform=function(a,b){a.style[j]=k+b+l},this.mr_getScrollPosition=function(){return o!==window?o.scrollTop:0===document.documentElement.scrollTop?document.body.scrollTop:document.documentElement.scrollTop}}window.mr_parallax=new mr_parallax;

window.mr=window.mr||{},mr=function(t,a,e,o){"use strict";var i={documentReady:[],documentReadyDeferred:[],windowLoad:[],windowLoadDeferred:[]};function n(e){e=void 0===e?a:e,i.documentReady.concat(i.documentReadyDeferred).forEach(function(t){t(e)}),t.status.documentReadyRan=!0,t.status.windowLoadPending&&r(t.setContext())}function r(e){t.status.documentReadyRan?(t.status.windowLoadPending=!1,e="object"==typeof e?a:e,i.windowLoad.concat(i.windowLoadDeferred).forEach(function(t){t(e)})):t.status.windowLoadPending=!0}return(t=t||{}).status={documentReadyRan:!1,windowLoadPending:!1},a(o).ready(n),a(e).on("load",r),t.setContext=function(e){return void 0!==e?function(t){return a(e).find(t)}:a},t.components=i,t.documentReady=n,t.windowLoad=r,t}(window.mr,jQuery,window,document),mr=function(t,r,a,e){"use strict";return t.util={},t.util.requestAnimationFrame=a.requestAnimationFrame||a.mozRequestAnimationFrame||a.webkitRequestAnimationFrame||a.msRequestAnimationFrame,t.util.documentReady=function(t){var e=(new Date).getFullYear();t(".update-year").text(e)},t.util.windowLoad=function(e){e("[data-delay-src]").each(function(){var t=e(this);t.attr("src",t.attr("data-delay-src")),t.removeAttr("data-delay-src")})},t.util.getURLParameter=function(t){return decodeURIComponent((new RegExp("[?|&]"+t+"=([^&;]+?)(&|#|;|$)").exec(location.search)||[void 0,""])[1].replace(/\+/g,"%20"))||null},t.util.capitaliseFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},t.util.slugify=function(t,e){return void 0!==e?t.replace(/ +/g,""):t.toLowerCase().replace(/[\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\]\[\}\{\'\"\;\\\:\?\/\>\<\.\,]+/g,"").replace(/ +/g,"-")},t.util.sortChildrenByText=function(t,e){var a=r(t),o=a.children().get(),i=-1,n=1;void 0!==e&&(n=-(i=1)),o.sort(function(t,e){var a=r(t).text(),o=r(e).text();return a<o?i:o<a?n:0}),a.empty(),r(o).each(function(t,e){a.append(e)})},t.util.idleSrc=function(t,e){e=void 0!==e?e:"",(t.is(e+"[src]")?t:t.find(e+"[src]")).each(function(t,e){var a=(e=r(e)).attr("src");void 0===e.attr("data-src")&&e.attr("data-src",a),e.attr("src","")})},t.util.activateIdleSrc=function(t,e){e=void 0!==e?e:"",(t.is(e+"[data-src]")?t:t.find(e+"[data-src]")).each(function(t,e){var a=(e=r(e)).attr("data-src");e.attr("src",a)})},t.util.pauseVideo=function(t){(t.is("video")?t:t.find("video")).each(function(t,e){r(e).get(0).pause()})},t.util.parsePixels=function(t){var e=r(a).height();return/^[1-9]{1}[0-9]*[p][x]$/.test(t)?parseInt(t.replace("px",""),10):/^[1-9]{1}[0-9]*[v][h]$/.test(t)?e*(parseInt(t.replace("vh",""),10)/100):-1},t.util.removeHash=function(){history.pushState("",e.title,a.location.pathname+a.location.search)},t.components.documentReady.push(t.util.documentReady),t.components.windowLoad.push(t.util.windowLoad),t}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.window={},t.window.height=e(a).height(),t.window.width=e(a).width(),e(a).on("resize",function(){t.window.height=e(a).height(),t.window.width=e(a).width()}),t}(mr,jQuery,window,document),mr=function(i,t,n,e){"use strict";i.scroll={};var a=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||n.msRequestAnimationFrame;i.scroll.listeners=[],i.scroll.busy=!1,i.scroll.y=0,i.scroll.x=0;var o=function(t){jQuery(n).off("scroll.mr"),jQuery(n).on("scroll.mr",function(t){!1===i.scroll.busy&&(i.scroll.busy=!0,a(function(t){i.scroll.update(t)})),t.stopPropagation&&t.stopPropagation()})};return i.scroll.update=function(t){var e=void 0!==n.mr_parallax;if(i.scroll.y=e?mr_parallax.mr_getScrollPosition():n.pageYOffset,i.scroll.busy=!1,e&&mr_parallax.mr_parallaxBackground(),0<i.scroll.listeners.length)for(var a=0,o=i.scroll.listeners.length;a<o;a++)i.scroll.listeners[a](t)},i.scroll.documentReady=o,i.components.documentReady.push(o),i}(mr,jQuery,window,document),mr=function(r,e,t,a){"use strict";r.scroll.classModifiers={},r.scroll.classModifiers.rules=[],r.scroll.classModifiers.parseScrollRules=function(n){return n.attr("data-scroll-class").split(";").forEach(function(t){var e,a,o={};if(2===(e=t.replace(/\s/g,"").split(":")).length){if(!(-1<(a=r.util.parsePixels(e[0]))))return!1;if(o.scrollPoint=a,!e[1].length)return!1;var i=e[1];o.toggleClass=i,o.hasClass=n.hasClass(i),o.element=n.get(0),r.scroll.classModifiers.rules.push(o)}}),!!r.scroll.classModifiers.rules.length},r.scroll.classModifiers.update=function(t){for(var e,a=r.scroll.y,o=r.scroll.classModifiers.rules,i=o.length;i--;)a>(e=o[i]).scrollPoint&&!e.hasClass&&(e.element.classList.add(e.toggleClass),e.hasClass=r.scroll.classModifiers.rules[i].hasClass=!0),a<e.scrollPoint&&e.hasClass&&(e.element.classList.remove(e.toggleClass),e.hasClass=r.scroll.classModifiers.rules[i].hasClass=!1)};var o=function(){e('.main-container [data-scroll-class*="pos-fixed"]').each(function(){var t=e(this);t.css("max-width",t.parent().outerWidth()),t.parent().css("min-height",t.outerHeight())})},i=function(e){e("[data-scroll-class]").each(function(){var t=e(this);r.scroll.classModifiers.parseScrollRules(t)||console.log("Error parsing scroll rules on: "+t)}),o(),e(t).on("resize",o),r.scroll.classModifiers.rules.length&&r.scroll.listeners.push(r.scroll.classModifiers.update)};return r.components.documentReady.push(i),r.scroll.classModifiers.documentReady=i,r}(mr,jQuery,window,document),mr=function(o,d,t,c){"use strict";return o.accordions=o.accordions||{},o.accordions.documentReady=function(a){a(".accordion__title").on("click",function(){o.accordions.activatePanel(a(this))}),a(".accordion").each(function(){var t=a(this),e=t.outerHeight(!0);t.css("min-height",e)}),""!==t.location.hash&&"#"!==t.location.hash&&null===t.location.hash.match(/#\/.*/)&&a(".accordion > li > .accordion__title"+t.location.hash).length&&o.accordions.activatePanelById(t.location.hash,!0),jQuery(c).on("click",'a[href^="#"]:not(a[href="#"])',function(){a(".accordion > li > .accordion__title"+a(this).attr("href")).length&&o.accordions.activatePanelById(a(this).attr("href"),!0)})},o.accordions.activatePanel=function(t,e){var a=d(t),o=a.closest(".accordion"),i=a.closest("li"),n=c.createEvent("Event"),r=c.createEvent("Event");if(n.initEvent("panelOpened.accordions.mr",!0,!0),r.initEvent("panelClosed.accordions.mr",!0,!0),i.hasClass("active"))!0!==e&&(i.removeClass("active"),a.trigger("panelClosed.accordions.mr").get(0).dispatchEvent(r));else if(o.hasClass("accordion--oneopen")){var s=o.find("li.active");s.length&&(s.removeClass("active"),s.trigger("panelClosed.accordions.mr").get(0).dispatchEvent(r)),i.addClass("active"),i.trigger("panelOpened.accordions.mr").get(0).dispatchEvent(n)}else i.is(".active")||i.trigger("panelOpened.accordions.mr").get(0).dispatchEvent(n),i.addClass("active")},o.accordions.activatePanelById=function(t,e){var a;""!==t&&"#"!==t&&null===t.match(/#\/.*/)&&(a=d(".accordion > li > .accordion__title#"+t.replace("#",""))).length&&(d("html, body").stop(!0).animate({scrollTop:a.offset().top-50},1200),o.accordions.activatePanel(a,e))},o.components.documentReady.push(o.accordions.documentReady),o}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.alerts=t.alerts||{},t.alerts.documentReady=function(t){t(".alert__close").on("click touchstart",function(){jQuery(this).closest(".alert").addClass("alert--dismissed")})},t.components.documentReady.push(t.alerts.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.backgrounds=t.backgrounds||{},t.backgrounds.documentReady=function(e){e(".background-image-holder").each(function(){var t=e(this).children("img").attr("src");e(this).css("background",'url("'+t+'")').css("background-position","initial").css("opacity","1")})},t.components.documentReady.push(t.backgrounds.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.bars=t.bars||{},t.bars.documentReady=function(a){a('.nav-container .bar[data-scroll-class*="fixed"]:not(.bar--absolute)').each(function(){var t=a(this),e=t.outerHeight(!0);t.closest(".nav-container").css("min-height",e)})},t.components.documentReady.push(t.bars.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,a,s){"use strict";return t.cookies={getItem:function(t){return t&&decodeURIComponent(s.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null},setItem:function(t,e,a,o,i,n){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var r="";if(a)switch(a.constructor){case Number:r=a===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+a;break;case String:r="; expires="+a;break;case Date:r="; expires="+a.toUTCString()}return s.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+r+(i?"; domain="+i:"")+(o?"; path="+o:"")+(n?"; secure":""),!0},removeItem:function(t,e,a){return!!this.hasItem(t)&&(s.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(a?"; domain="+a:"")+(e?"; path="+e:""),!0)},hasItem:function(t){return!!t&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(s.cookie)},keys:function(){for(var t=s.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=t.length,a=0;a<e;a++)t[a]=decodeURIComponent(t[a]);return t}},t}(mr,jQuery,window,document),mr=function(r,t,e,a){"use strict";return r.countdown=r.countdown||{},r.countdown.options=r.countdown.options||{},r.countdown.documentReady=function(n){n(".countdown[data-date]").each(function(){var e,a=n(this),t=a.attr("data-date"),o=void 0!==a.attr("data-days-text")?"%D "+a.attr("data-days-text")+" %H:%M:%S":"%D days %H:%M:%S",i=(o=void 0!==r.countdown.options.format?r.countdown.options.format:o,void 0!==a.attr("data-date-format")?a.attr("data-date-format"):o);void 0!==a.attr("data-date-fallback")&&(e=a.attr("data-date-fallback")||"Timer Done"),a.countdown(t,function(t){t.elapsed?a.text(e):a.text(t.strftime(i))})})},r.components.documentReadyDeferred.push(r.countdown.documentReady),r}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";t.datepicker=t.datepicker||{};var i=t.datepicker.options||{};return t.datepicker.documentReady=function(t){t(".datepicker").length&&t(".datepicker").pickadate(i)},t.components.documentReadyDeferred.push(t.datepicker.documentReady),t}(mr,jQuery,window,document),mr=function(e,t,r,o){"use strict";return e.dropdowns=e.dropdowns||{},e.dropdowns.done=!1,e.dropdowns.documentReady=function(a){var t=!1;a('html[dir="rtl"]').length&&(t=!0),e.dropdowns.done||(jQuery(o).on("click","body:not(.dropdowns--hover) .dropdown, body.dropdowns--hover .dropdown.dropdown--click",function(t){var e=jQuery(this);jQuery(t.target).is(".dropdown--active > .dropdown__trigger")?(e.siblings().removeClass("dropdown--active").find(".dropdown").removeClass("dropdown--active"),e.toggleClass("dropdown--active")):(a(".dropdown--active").removeClass("dropdown--active"),e.addClass("dropdown--active"))}),jQuery(o).on("click touchstart","body:not(.dropdowns--hover)",function(t){jQuery(t.target).is('[class*="dropdown"], [class*="dropdown"] *')||a(".dropdown--active").removeClass("dropdown--active")}),jQuery("body.dropdowns--hover .dropdown").on("click",function(t){t.stopPropagation(),jQuery(this).toggleClass("dropdown--active")}),jQuery("body").append('
'),!1===t?(e.dropdowns.repositionDropdowns(a),jQuery(r).on("resize",function(){e.dropdowns.repositionDropdowns(a)})):(e.dropdowns.repositionDropdownsRtl(a),jQuery(r).on("resize",function(){e.dropdowns.repositionDropdownsRtl(a)})),e.dropdowns.done=!0)},e.dropdowns.repositionDropdowns=function(t){t(".dropdown__container").each(function(){var t,e,a,o;jQuery(this).css("left",""),e=(t=jQuery(this)).offset().left,a=jQuery(".containerMeasure").offset().left,o=t.closest(".dropdown").offset().left,t.css("left",-e+a),t.find('.dropdown__content:not([class*="lg-12"])').length&&t.find(".dropdown__content").css("left",o-a)}),t(".dropdown__content").each(function(){var t,e,a,o,i;a=(t=jQuery(this)).offset().left+(e=t.outerWidth(!0)),o=jQuery(r).outerWidth(!0),i=jQuery(".containerMeasure").outerWidth()-e,o<a&&t.css("left",i)})},e.dropdowns.repositionDropdownsRtl=function(t){var n=jQuery(r).width();t(".dropdown__container").each(function(){var t,e,a,o;jQuery(this).css("left",""),t=jQuery(this),e=n-(t.offset().left+t.outerWidth(!0)),a=jQuery(".containerMeasure").offset().left,o=n-(t.closest(".dropdown").offset().left+t.closest(".dropdown").outerWidth(!0)),t.css("right",-e+a),t.find('.dropdown__content:not([class*="lg-12"])').length&&t.find(".dropdown__content").css("right",o-a)}),t(".dropdown__content").each(function(){var t,e,a,o,i;t=jQuery(this),a=n-(t.offset().left+t.outerWidth(!0))+(e=t.outerWidth(!0)),o=jQuery(r).outerWidth(!0),i=jQuery(".containerMeasure").outerWidth()-e,o<a&&t.css("right",i)})},e.components.documentReady.push(e.dropdowns.documentReady),e}(mr,jQuery,window,document),mr=function(m,p,f,t){"use strict";return m.forms=m.forms||{},m.forms.captcha={},m.forms.captcha.widgets=[],m.forms.captcha.done=!1,m.forms.documentReady=function(i){m.forms.captcha.widgets=[],i('.input-checkbox input[type="checkbox"], .input-radio input[type="radio"]').each(function(t){var e=i(this),a=e.siblings("label"),o="input-assigned-"+t;void 0===e.attr("id")||""===e.attr("id")?e.attr("id",o):o=e.attr("id"),a.attr("for",o)}),i(".input-number__controls > span").off("click.mr").on("click.mr",function(){var t=jQuery(this),e=t.closest(".input-number"),a=e.find('input[type="number"]'),o=a.attr("max"),i=a.attr("min"),n=1,r=parseInt(a.val(),10);e.is("[data-step]")&&(n=parseInt(e.attr("data-step"),10)),t.hasClass("input-number__increase")?r+n<=o&&a.val(r+n):i<=r-n&&a.val(r-n)}),i(".input-file .btn").off("click.mr").on("click.mr",function(){return i(this).siblings("input").trigger("click"),!1}),i('form.form-email, form[action*="list-manage.com"], form[action*="createsend.com"]').attr("novalidate",!0).off("submit").on("submit",m.forms.submit),i(t).on("change, input, paste, keyup",".attempted-submit .field-error",function(){i(this).removeClass("field-error")}),i('form[data-recaptcha-sitekey]:not([data-recaptcha-sitekey=""])').each(function(){var t,e,a,o,i,n=jQuery(this),r=n.find("div.recaptcha");o=void 0!==(o=n.attr("data-recaptcha-theme"))?o:"",i=void 0!==(i=n.attr("data-recaptcha-size"))?i:"",m.forms.captcha.sitekey=n.attr("data-recaptcha-sitekey"),r.length||(t=n.find("button[type=submit]").closest('[class*="col-"]'),r=jQuery("
").addClass("recaptcha"),jQuery("
").addClass("col-12").append(r).insertBefore(t)),e={element:r.get(0),parentForm:n,theme:o,size:i},m.forms.captcha.widgets.push(e),!1===m.forms.captcha.done?jQuery('script[src*="recaptcha/api.js"]').length||("https://www.google.com/recaptcha/api.js?onload=mrFormsCaptchaInit&render=explicit",(a=jQuery("<script async defer>")).attr("src","https://www.google.com/recaptcha/api.js?onload=mrFormsCaptchaInit&render=explicit"),jQuery("body").append(a),m.forms.captcha.done=!0):"undefined"!=typeof grecaptcha&&m.forms.captcha.renderWidgets()})},m.forms.submit=function(t){t.preventDefault?t.preventDefault():t.returnValue=!1;var e,o,i,a,n,r=p("body"),s=p(t.target).closest("form"),d=void 0!==s.attr("action")?s.attr("action"):"",c=s.find('button[type="submit"], input[type="submit"]'),l=s.attr("original-error"),u=!!s.find("div.recaptcha").length;if(r.find(".form-error, .form-success").remove(),c.attr("data-text",c.text()),a=s.attr("data-error")?s.attr("data-error"):"Please fill all fields correctly",n=s.attr("data-success")?s.attr("data-success"):"Thanks, we'll be in touch shortly",r.append('"),r.append('"),o=r.find(".form-error"),i=r.find(".form-success"),s.addClass("attempted-submit"),-1!==d.indexOf("createsend.com")||-1!==d.indexOf("list-manage.com"))if(console.log("Mail list form signup detected."),void 0!==l&&!1!==l&&o.html(l),1!==m.forms.validateFields(s)){s.removeClass("attempted-submit"),o.fadeOut(200),c.addClass("btn--loading");try{p.ajax({url:s.attr("action"),crossDomain:!0,data:s.serialize(),method:"GET",cache:!1,dataType:"json",contentType:"application/json; charset=utf-8",success:function(t){"success"!==t.result&&200!==t.Status?(o.attr("original-error",o.text()),o.html(t.msg).stop(!0).fadeIn(1e3),i.stop(!0).fadeOut(1e3),c.removeClass("btn--loading")):(c.removeClass("btn--loading"),void 0!==(e=s.attr("data-success-redirect"))&&!1!==e&&""!==e?f.location=e:(m.forms.resetForm(s),m.forms.showFormSuccess(i,o,1e3,5e3,500)))}})}catch(t){o.attr("original-error",o.text()),o.html(t.message),m.forms.showFormError(i,o,1e3,5e3,500),c.removeClass("btn--loading")}}else m.forms.showFormError(i,o,1e3,5e3,500);else void 0!==l&&!1!==l&&o.text(l),1===m.forms.validateFields(s)?m.forms.showFormError(i,o,1e3,5e3,500):(s.removeClass("attempted-submit"),o.fadeOut(200),c.addClass("btn--loading"),jQuery.ajax({type:"POST",url:""!==d?d:"mail/mail.php",data:s.serialize()+"&url="+f.location.href+"&captcha="+u,success:function(t){c.removeClass("btn--loading"),p.isNumeric(t)?0<parseInt(t,10)&&(void 0!==(e=s.attr("data-success-redirect"))&&!1!==e&&""!==e&&(f.location=e),m.forms.resetForm(s),m.forms.showFormSuccess(i,o,1e3,5e3,500),m.forms.captcha.resetWidgets()):(o.attr("original-error",o.text()),o.text(t).stop(!0).fadeIn(1e3),i.stop(!0).fadeOut(1e3))},error:function(t,e,a){o.attr("original-error",o.text()),o.text(a).stop(!0).fadeIn(1e3),i.stop(!0).fadeOut(1e3),c.removeClass("btn--loading")}}));return!1},m.forms.validateFields=function(t){var e,a=p(a),o=!1;if((t=p(t)).find('.validate-required[type="checkbox"]').each(function(){var t=p(this);p('[name="'+p(this).attr("name")+'"]:checked').length||(o=1,p(this).attr("data-name")||"check",t.parent().addClass("field-error"))}),t.find(".validate-required, .required, [required]").not('input[type="checkbox"]').each(function(){""===p(this).val()?(p(this).addClass("field-error"),o=1):p(this).removeClass("field-error")}),t.find('.validate-email, .email, [name*="cm-"][type="email"]').each(function(){/(.+)@(.+){2,}\.(.+){2,}/.test(p(this).val())?p(this).removeClass("field-error"):(p(this).addClass("field-error"),o=1)}),t.find(".validate-number-dash").each(function(){/^[0-9][0-9-]+[0-9]$/.test(p(this).val())?p(this).removeClass("field-error"):(p(this).addClass("field-error"),o=1)}),t.find("div.recaptcha").length&&void 0!==t.attr("data-recaptcha-sitekey")&&(e=p(t.find("div.recaptcha")),""!==grecaptcha.getResponse(t.data("recaptchaWidgetID"))?e.removeClass("field-error"):(e.addClass("field-error"),o=1)),t.find(".field-error").length){var i=p(t).find(".field-error:first");i.length&&p("html, body").stop(!0).animate({scrollTop:i.offset().top-100},1200,function(){i.focus()})}else a.find(".form-error").fadeOut(1e3);return o},m.forms.showFormSuccess=function(t,e,a,o,i){t.stop(!0).fadeIn(a),e.stop(!0).fadeOut(a),setTimeout(function(){t.stop(!0).fadeOut(i)},o)},m.forms.showFormError=function(t,e,a,o,i){e.stop(!0).fadeIn(a),t.stop(!0).fadeOut(a),setTimeout(function(){e.stop(!0).fadeOut(i)},o)},m.forms.resetForm=function(t){(t=p(t)).get(0).reset(),t.find(".input-radio, .input-checkbox").removeClass("checked"),t.find("[data-default-value]").filter('[type="text"],[type="number"],[type="email"],[type="url"],[type="search"],[type="tel"]').each(function(){var t=jQuery(this);t.val(t.attr("data-default-value"))})},f.mrFormsCaptchaInit=function(){m.forms.captcha.renderWidgets()},m.forms.captcha.renderWidgets=function(){m.forms.captcha.widgets.forEach(function(t){""===t.element.innerHTML.replace(/[\s\xA0]+/g,"")&&(t.id=grecaptcha.render(t.element,{sitekey:m.forms.captcha.sitekey,theme:t.theme,size:t.size,callback:m.forms.captcha.setHuman}),t.parentForm.data("recaptchaWidgetID",t.id))})},m.forms.captcha.resetWidgets=function(){m.forms.captcha.widgets.forEach(function(t){grecaptcha.reset(t.id)})},m.forms.captcha.setHuman=function(){jQuery("div.recaptcha.field-error").removeClass("field-error")},m.components.documentReadyDeferred.push(m.forms.documentReady),m}(mr,jQuery,window,document),mr=function(p,t,e,a){"use strict";return p.granim=p.granim||{},p.granim.documentReady=function(m){m("[data-gradient-bg]").each(function(t,e){var a,o,i,n,r=m(this),s="granim-"+t,d=r.attr("data-gradient-bg"),c=[],l=[],u={};if(r.prepend('<canvas id="'+s+'"></canvas>'),!0===/^(#[0-9|a-f|A-F]{6}){1}([ ]*,[ ]*#[0-9|a-f|A-F]{6})*$/.test(d)){for((a=(d=(d=d.replace(" ","")).split(",")).length)%2!=0&&d.push(d[a-1]),o=0;o<a/2;o++)(l=[]).push(d.shift()),l.push(d.shift()),c.push(l);u.states={"default-state":{gradients:c}}}i={element:"#"+s,name:"basic-gradient",direction:"left-right",opacity:[1,1],isPausedWhenNotInView:!0,states:{"default-state":{gradients:c}}},n=jQuery.extend({},i,p.granim.options,u),m(this).data("gradientOptions",n);m(this),new Granim(n)})},p.components.documentReadyDeferred.push(p.granim.documentReady),p}(mr,jQuery,window,document),mr=function(d,t,e,a){"use strict";return d.instagram=d.instagram||{},d.instagram.documentReady=function(e){var a,o,i={};if(e(".instafeed").length){var t,n,r="4079540202.b9b1d8a.1d13c245c68d4a17bfbff87919aaeb14",s="b9b1d8ae049d4153b24a6332f0088686";e(".instafeed[data-access-token][data-client-id]").length&&(""!==(t=e(".instafeed[data-access-token][data-client-id]").first().attr("data-access-token"))&&(r=t),""!==(n=e(".instafeed[data-access-token][data-client-id]").first().attr("data-client-id"))&&(s=n)),jQuery.fn.spectragram.accessData={accessToken:r,clientID:s}}e(".instafeed").each(function(){var t=e(this);t.attr("data-user-name");a={query:"mediumrarethemes",max:12},i.max=t.attr("data-amount"),i.query=t.attr("data-user-name"),o=jQuery.extend({},a,d.instagram.options,i),t.append("
    "),t.children("ul").spectragram("getUserFeed",o)})},d.components.documentReadyDeferred.push(d.instagram.documentReady),d}(mr,jQuery,window,document),mr=function(y,t,e,g){"use strict";return y.maps=y.maps||{},y.maps.options=y.maps.options||{},y.maps.documentReady=function(t){t(".map-holder").on("click",function(){t(this).addClass("interact")}).removeClass("interact");var e=t(".map-container[data-maps-api-key]");e.length&&(e.addClass("gmaps-active"),y.maps.initAPI(t),y.maps.init())},y.maps.initAPI=function(t){if(g.querySelector("[data-maps-api-key]")&&!g.querySelector(".gMapsAPI")&&t("[data-maps-api-key]").length){var e=g.createElement("script"),a=t("[data-maps-api-key]:first").attr("data-maps-api-key");""!==(a=void 0!==a?a:"")&&(e.type="text/javascript",e.src="https://maps.googleapis.com/maps/api/js?key="+a+"&callback=mr.maps.init",e.className="gMapsAPI",g.body.appendChild(e))}},y.maps.init=function(){void 0!==e.google&&void 0!==e.google.maps&&(y.maps.instances=[],jQuery(".gmaps-active").each(function(){var a,t,e,o,i,n,r=this,s=jQuery(this),d=766<jQuery(g).width(),c=(s.attr("data-zoom-controls"),void 0!==s.attr("data-zoom-controls")&&s.attr("data-zoom-controls")),l=void 0!==s.attr("data-latlong")&&s.attr("data-latlong"),u=!!l&&1*l.substr(0,l.indexOf(",")),m=!!l&&1*l.substr(l.indexOf(",")+1),p=new google.maps.Geocoder,f=void 0!==s.attr("data-address")?s.attr("data-address").split(";"):[""],h={},v={};(n=g.createEvent("Event")).initEvent("mapCreated.maps.mr",!0,!0),e={disableDefaultUI:!0,draggable:d,scrollwheel:!1,styles:[{featureType:"landscape",stylers:[{saturation:-100},{lightness:65},{visibility:"on"}]},{featureType:"poi",stylers:[{saturation:-100},{lightness:51},{visibility:"simplified"}]},{featureType:"road.highway",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"road.arterial",stylers:[{saturation:-100},{lightness:30},{visibility:"on"}]},{featureType:"road.local",stylers:[{saturation:-100},{lightness:40},{visibility:"on"}]},{featureType:"transit",stylers:[{saturation:-100},{visibility:"simplified"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"on"},{lightness:-25},{saturation:-100}]},{featureType:"water",elementType:"geometry",stylers:[{hue:"#ffff00"},{lightness:-25},{saturation:-97}]}],zoom:17,zoomControl:!1},h.styles=void 0!==s.attr("data-map-style")?JSON.parse(s.attr("data-map-style")):void 0,h.zoom=s.attr("data-map-zoom")?parseInt(s.attr("data-map-zoom"),10):void 0,h.zoomControlOptions=!1!==c?{position:google.maps.ControlPosition[c]}:void 0,t={icon:{url:("undefined"!=typeof mr_variant?"../":"")+"img/mapmarker.png",scaledSize:new google.maps.Size(50,50)},title:"We Are Here",optimised:!1},v.icon=void 0!==s.attr("data-marker-image")?s.attr("data-marker-image"):void 0,v.title=s.attr("data-marker-title"),o=jQuery.extend({},e,y.maps.options.map,h),i=jQuery.extend({},t,y.maps.options.marker,v),void 0!==f&&""!==f[0]?p.geocode({address:f[0].replace("[nomarker]","")},function(t,e){e===google.maps.GeocoderStatus.OK?(a=new google.maps.Map(r,o),y.maps.instances.push(a),jQuery(r).trigger("mapCreated.maps.mr").get(0).dispatchEvent(n),a.setCenter(t[0].geometry.location),f.forEach(function(t){if(/(\-?\d+(\.\d+)?),\s*(\-?\d+(\.\d+)?)/.test(t)){var e=t.split(",");new google.maps.Marker(jQuery.extend({},i,{position:{lat:1*e[0],lng:1*e[1]},map:a}))}else t.indexOf("[nomarker]")<0&&(new google.maps.Geocoder).geocode({address:t.replace("[nomarker]","")},function(t,e){e===google.maps.GeocoderStatus.OK?new google.maps.Marker(jQuery.extend({},i,{map:a,position:t[0].geometry.location})):console.log("Map marker error: "+e)})})):console.log("There was a problem geocoding the address.")}):void 0!==u&&""!==u&&!1!==u&&void 0!==m&&""!==m&&!1!==m&&(o.center={lat:u,lng:m},a=new google.maps.Map(r,o),new google.maps.Marker(jQuery.extend({},i,{position:{lat:u,lng:m},map:a})),y.maps.instances.push(a),jQuery(r).trigger("mapCreated.maps.mr").get(0).dispatchEvent(n))}))},y.components.documentReady.push(y.maps.documentReady),y}(mr,jQuery,window,document),mr=function(n,r,t,e){"use strict";return n.masonry=n.masonry||{},n.masonry.documentReady=function(o){n.masonry.updateFilters(),o(e).on("click touchstart",".masonry__filters li:not(.js-no-action)",function(){var t=o(this),e=t.closest(".masonry").find(".masonry__container"),a="*";"*"!==t.attr("data-masonry-filter")&&(a=".filter-"+t.attr("data-masonry-filter")),t.siblings("li").removeClass("active"),t.addClass("active"),e.removeClass("masonry--animate"),e.on("layoutComplete",function(){o(this).addClass("masonry--active"),"undefined"!=typeof mr_parallax&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),e.isotope({filter:a})})},n.masonry.windowLoad=function(){r(".masonry").each(function(){var t,e=r(this).find(".masonry__container"),a=r(this),o="*",i={};t={itemSelector:".masonry__item",filter:"*",masonry:{columnWidth:".masonry__item"}},a.is("[data-default-filter]")&&(o=".filter-"+(o=a.attr("data-default-filter").toLowerCase()),a.find("li[data-masonry-filter]").removeClass("active"),a.find('li[data-masonry-filter="'+a.attr("data-default-filter").toLowerCase()+'"]').addClass("active")),i.filter="*"!==o?o:void 0,e.on("layoutComplete",function(){e.addClass("masonry--active"),"undefined"!=typeof mr_parallax&&setTimeout(function(){mr_parallax.profileParallaxElements()},100)}),e.isotope(jQuery.extend({},t,n.masonry.options,i))})},n.masonry.updateFilters=function(t){r(t=void 0!==t?t:".masonry").each(function(){var i,a=r(this),t=a.find(".masonry__container"),e=a.find(".masonry__filters"),o=void 0!==e.attr("data-filter-all-text")?e.attr("data-filter-all-text"):"All";a.is(".masonry")&&t.find(".masonry__item[data-masonry-filter]").length&&((i=e.find("> ul")).length||(i=e.append("
      ").find("> ul")),t.find(".masonry__item[data-masonry-filter]").each(function(){var o=r(this),t=o.attr("data-masonry-filter"),e=[];void 0!==t&&""!==t&&(e=t.split(",")),r(e).each(function(t,e){var a=n.util.slugify(e);o.addClass("filter-"+a),i.find('[data-masonry-filter="'+a+'"]').length||i.append('
    • '+e+"
    • ")})}),i.find("[data-masonry-filter]").each(function(){var t=r(this),e=t.text();"*"!==r(this).attr("data-masonry-filter")&&(a.find('.masonry__item[data-masonry-filter*="'+e+'"]').length||t.remove())}),n.util.sortChildrenByText(r(this).find(".masonry__filters ul")),i.find('[data-masonry-filter="*"]').length||i.prepend('
    • '+o+"
    • "))})},n.masonry.updateLayout=function(t){r(t=void 0!==t?t:".masonry").each(function(){var t=r(this),e=t.find(".masonry__item:not([style])"),a=t.find(".masonry__container");t.is(".masonry")&&(e.length&&a.isotope("appended",e).isotope("layout"),a.isotope("layout"))})},n.components.documentReady.push(n.masonry.documentReady),n.components.windowLoad.push(n.masonry.windowLoad),n}(mr,jQuery,window,document),mr=function(n,o,r,s){"use strict";return n.modals=n.modals||{},n.modals.documentReady=function(i){var t='
      ',e=i("div.main-container");if(e.length?(jQuery(t).insertAfter(e),n.modals.allModalsContainer=i("div.all-page-modals")):(jQuery("body").append(t),n.modals.allModalsContainer=jQuery("body div.all-page-modals")),i(".modal-container").each(function(){var t=i(this),e=(i(r),t.find(".modal-content"));if(t.find(".modal-close").length||t.find(".modal-content").append(''),void 0!==e.attr("data-width")){var a=1*e.attr("data-width").substr(0,e.attr("data-width").indexOf("%"));e.css("width",a+"%")}if(void 0!==e.attr("data-height")){var o=1*e.attr("data-height").substr(0,e.attr("data-height").indexOf("%"));e.css("height",o+"%")}n.util.idleSrc(t,"iframe")}),i(".modal-instance").each(function(t){var e=i(this),a=e.find(".modal-container"),o=(e.find(".modal-content"),e.find(".modal-trigger"));o.attr("data-modal-index",t),a.attr("data-modal-index",t),void 0!==a.attr("data-modal-id")&&o.attr("data-modal-id",a.attr("data-modal-id")),a=a.detach(),n.modals.allModalsContainer.append(a)}),i(".modal-trigger").on("click",function(){var t,e,a=i(this);return void 0!==a.attr("data-modal-id")?(t=a.attr("data-modal-id"),e=n.modals.allModalsContainer.find('.modal-container[data-modal-id="'+t+'"]')):(t=i(this).attr("data-modal-index"),e=n.modals.allModalsContainer.find('.modal-container[data-modal-index="'+t+'"]')),n.util.activateIdleSrc(e,"iframe"),n.modals.autoplayVideo(e),n.modals.showModal(e),!1}),jQuery(s).on("click",".modal-close",n.modals.closeActiveModal),jQuery(s).keyup(function(t){27===t.keyCode&&n.modals.closeActiveModal()}),i(".modal-container:not(.modal--prevent-close)").on("click",function(t){t.target===this&&n.modals.closeActiveModal()}),i(".modal-container[data-autoshow]").each(function(){var t=i(this),e=1*t.attr("data-autoshow");n.util.activateIdleSrc(t),n.modals.autoplayVideo(t),void 0!==t.attr("data-cookie")&&n.cookies.hasItem(t.attr("data-cookie"))||n.modals.showModal(t,e)}),i(".modal-container[data-show-on-exit]").each(function(){var t=jQuery(this),e=t.attr("data-show-on-exit"),a=0;t.attr("data-delay")&&(a=parseInt(t.attr("data-delay"),10)||0),i(e).length&&(t.prepend(i('')),jQuery(s).on("mouseleave",e,function(){i(".modal-active").length||void 0!==t.attr("data-cookie")&&n.cookies.hasItem(t.attr("data-cookie"))||n.modals.showModal(t,a)}))}),2===r.location.href.split("#").length){var a=r.location.href.split("#").pop();i('[data-modal-id="'+a+'"]').length&&(n.modals.closeActiveModal(),n.modals.showModal(i('[data-modal-id="'+a+'"]')))}jQuery(s).on("click",'a[href^="#"]',function(){var t=i(this).attr("href").replace("#","");i('[data-modal-id="'+t+'"]').length&&(n.modals.closeActiveModal(),setTimeout(n.modals.showModal,500,'[data-modal-id="'+t+'"]',0))}),jQuery(s).on("wheel mousewheel scroll",".modal-content, .modal-content .scrollable",function(t){t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation(),this.scrollTop+=t.originalEvent.deltaY})},n.modals.showModal=function(e,t){var a=void 0!==t?1*t:0;o(e).length&&setTimeout(function(){var t=s.createEvent("Event");t.initEvent("modalOpened.modals.mr",!0,!0),o(e).addClass("modal-active").trigger("modalOpened.modals.mr").get(0).dispatchEvent(t)},a)},n.modals.closeActiveModal=function(){var t=jQuery("body div.modal-active"),e=s.createEvent("Event");n.util.idleSrc(t,"iframe"),n.util.pauseVideo(t),void 0!==t.attr("data-cookie")&&n.cookies.setItem(t.attr("data-cookie"),"true",1/0,"/"),t.length&&(t.is("[data-modal-id]")&&r.location.hash==="#"+t.attr("data-modal-id")&&n.util.removeHash(),e.initEvent("modalClosed.modals.mr",!0,!0),t.removeClass("modal-active").trigger("modalClosed.modals.mr").get(0).dispatchEvent(e))},n.modals.autoplayVideo=function(t){t.find("video[autoplay]").length&&t.find("video").get(0).play()},n.components.documentReady.push(n.modals.documentReady),n}(mr,jQuery,window,document),mr=function(s,a,t,e){"use strict";return s.newsletters=s.newsletters||{},s.newsletters.documentReady=function(a){var e,t,o,i,n,r;a('form[action*="createsend.com"]').each(function(){(e=a(this)).attr("novalidate","novalidate"),e.is(".form--no-placeholders")?e.find("input[placeholder]").removeAttr("placeholder"):e.find("input:not([checkbox]):not([radio])").each(function(){var t=a(this);void 0!==t.attr("placeholder")?""===t.attr("placeholder")&&t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),e.is(".form--no-labels")&&t.siblings("label").first().remove()):t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),e.is(".form--no-labels")&&t.siblings("label").first().remove()),t.parent().is("p")&&t.unwrap()}),e.find("select").wrap('
      '),e.find('input[type="radio"]').wrap('
      '),e.find('input[type="checkbox"]').each(function(){t=a(this),i=t.attr("id"),(o=e.find("label[for="+i+"]")).length||(o=a('<label for="'+i+'"></label>')),t.before('
      '),a('.input-checkbox[data-id="'+i+'"]').prepend(t),a('.input-checkbox[data-id="'+i+'"]').prepend(o)}),e.find('button[type="submit"]').each(function(){var t=a(this);t.addClass("btn"),t.parent().is("p")&&t.unwrap()}),e.find("[required]").attr("required","required").addClass("validate-required"),e.addClass("form--active"),s.newsletters.prepareAjaxAction(e)}),a('form[action*="list-manage.com"]').each(function(){(e=a(this)).attr("novalidate","novalidate"),e.is(".form--no-placeholders")?e.find("input[placeholder]").removeAttr("placeholder"):e.find("input:not([checkbox]):not([radio])").each(function(){var t=a(this);void 0!==t.attr("placeholder")?""===t.attr("placeholder")&&t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),e.is(".form--no-labels")&&t.siblings("label").first().remove()):t.siblings("label").length&&(t.attr("placeholder",t.siblings("label").first().text()),e.is(".form--no-labels")&&t.siblings("label").first().remove())}),e.is(".form--no-labels")&&e.find("input:not([checkbox]):not([radio])").each(function(){var t=a(this);t.siblings("label").length&&t.siblings("label").first().remove()}),e.find("select").wrap('
      '),e.find('input[type="checkbox"]').each(function(){t=jQuery(this),n=t.parent(),(o=n.find("label")).length||(o=jQuery("<label>")),t.before('
      '),n.find(".input-checkbox").append(t),n.find(".input-checkbox").append(o)}),e.find('input[type="radio"]').each(function(){r=jQuery(this),n=r.closest("li"),(o=n.find("label")).length||(o=jQuery("<label>")),r.before('
      '),n.find(".input-radio").prepend(r),n.find(".input-radio").prepend(o)}),e.find('input[type="submit"]').each(function(){var t=a(this),e=jQuery("<button/>").attr("type","submit").attr("class",t.attr("class")).addClass("btn").text(t.attr("value"));t.parent().is("div.clear")&&t.unwrap(),e.insertBefore(t),t.remove()}),e.find("input").each(function(){var t=a(this);t.hasClass("required")&&t.removeClass("required").addClass("validate-required")}),e.find('input[type="email"]').removeClass("email").addClass("validate-email"),e.find("#mce-responses").remove(),e.find(".mc-field-group").each(function(){a(this).children().first().unwrap()}),e.find("[required]").attr("required","required").addClass("validate-required"),e.addClass("form--active"),s.newsletters.prepareAjaxAction(e)}),s.forms.documentReady(s.setContext("form.form--active"))},s.newsletters.prepareAjaxAction=function(t){var e=a(t).attr("action");/list-manage\.com/.test(e)&&"//"===(e=e.replace("/post?","/post-json?")+"&c=?").substr(0,2)&&(e="http:"+e),/createsend\.com/.test(e)&&(e+="?callback=?"),a(t).attr("action",e)},s.components.documentReady.push(s.newsletters.documentReady),s}(mr,jQuery,window,document),mr=function(r,o,t,s){"use strict";return r.notifications=r.notifications||{},r.notifications.documentReady=function(a){a(".notification").each(function(){var t=a(this);t.find(".notification-close").length||t.append('
      ')}),a(".notification[data-autoshow]").each(function(){var t=a(this),e=parseInt(t.attr("data-autoshow"),10);void 0!==t.attr("data-cookie")&&r.cookies.hasItem(t.attr("data-cookie"))||r.notifications.showNotification(t,e)}),a("[data-notification-link]:not(.notification)").on("click",function(){var t=jQuery(this).attr("data-notification-link"),e=a('.notification[data-notification-link="'+t+'"]');return jQuery(".notification--reveal").addClass("notification--dismissed"),e.removeClass("notification--dismissed"),r.notifications.showNotification(e,0),!1}),a(".notification-close").on("click",function(){var t=jQuery(this);if(r.notifications.closeNotification(t),"#"===t.attr("href"))return!1}),a(".notification .inner-link").on("click",function(){var t=jQuery(this).closest(".notification").attr("data-notification-link");r.notifications.closeNotification(t)})},r.notifications.showNotification=function(t,e){var a=jQuery(t),o=void 0!==e?1*e:0,i=s.createEvent("Event");if(setTimeout(function(){i.initEvent("notificationOpened.notifications.mr",!0,!0),a.addClass("notification--reveal").trigger("notificationOpened.notifications.mr").get(0).dispatchEvent(i),a.closest("nav").addClass("notification--reveal"),a.find("input").length&&a.find("input").first().focus()},o),t.is("[data-autohide]")){var n=parseInt(t.attr("data-autohide"),10);setTimeout(function(){r.notifications.closeNotification(t)},n+o)}},r.notifications.closeNotification=function(t){var e=jQuery(t),a=s.createEvent("Event");t=e.is(".notification")?e:e.is(".notification-close")?e.closest(".notification"):o('.notification[data-notification-link="'+t+'"]'),a.initEvent("notificationClosed.notifications.mr",!0,!0),t.addClass("notification--dismissed").trigger("notificationClosed.notifications.mr").get(0).dispatchEvent(a),t.closest("nav").removeClass("notification--reveal"),void 0!==t.attr("data-cookie")&&r.cookies.setItem(t.attr("data-cookie"),"true",1/0,"/")},r.components.documentReady.push(r.notifications.documentReady),r}(mr,jQuery,window,document),mr=function(t,e,s,a){"use strict";return t.parallax=t.parallax||{},t.parallax.documentReady=function(t){var e=t(s),a=e.width(),o=e.height(),i=t("nav").outerHeight(!0);if(768<a){var n=t(".parallax:nth-of-type(1)"),r=t(".parallax:nth-of-type(1) .background-image-holder");r.css("top",-i),n.outerHeight(!0)===o&&r.css("height",o+i)}},t.parallax.update=function(){"undefined"!=typeof mr_parallax&&(mr_parallax.profileParallaxElements(),mr_parallax.mr_parallaxBackground())},t.components.documentReady.push(t.parallax.documentReady),t}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.progressHorizontal=t.progressHorizontal||{},t.progressHorizontal.documentReady=function(t){var o=[];t(".progress-horizontal").each(function(){var t=jQuery(this).find(".progress-horizontal__bar"),e={},a=jQuery('
      ');t.prepend(a),e.element=t,e.progress=a,e.value=parseInt(t.attr("data-value"),10)+"%",e.offsetTop=t.offset().top,e.animate=!1,jQuery(this).hasClass("progress-horizontal--animate")?e.animate=!0:a.css("width",e.value),o.push(e)})},t.components.documentReady.push(t.progressHorizontal.documentReady),t}(mr,jQuery,window,document),mr=function(n,t,e,a){"use strict";return n.easypiecharts=n.easypiecharts||{},n.easypiecharts.pies=[],n.easypiecharts.options=n.easypiecharts.options||{},n.easypiecharts.documentReady=function(t){t(".radial").each(function(){var t,e,a=jQuery(this),o=110,i={};t={animate:{duration:2e3,enabled:!0},barColor:"#000000",scaleColor:!1,size:o,lineWidth:3},void 0!==n.easypiecharts.options.size&&(o=n.easypiecharts.options.size),void 0!==a.attr("data-timing")&&(i.animate={duration:parseInt(a.attr("data-timing"),10),enabled:!0}),void 0!==a.attr("data-color")&&(i.barColor=a.attr("data-color")),void 0!==a.attr("data-size")&&(o=i.size=parseInt(a.attr("data-size"),10)),void 0!==a.attr("data-bar-width")&&(i.lineWidth=parseInt(a.attr("data-bar-width"),10)),a.css("height",o).css("width",o),"object"==typeof n.easypiecharts.options&&(e=jQuery.extend({},t,n.easypiecharts.options,i)),a.easyPieChart(e),a.data("easyPieChart").update(0)}),t(".radial").length&&(n.easypiecharts.init(),n.easypiecharts.activate(),n.scroll.listeners.push(n.easypiecharts.activate))},n.easypiecharts.init=function(){n.easypiecharts.pies=[],t(".radial").each(function(){var t={},e=jQuery(this);t.element=e,t.value=parseInt(e.attr("data-value"),10),t.top=e.offset().top,t.height=e.height()/2,t.active=!1,n.easypiecharts.pies.push(t)})},n.easypiecharts.activate=function(){n.easypiecharts.pies.forEach(function(t){Math.round(n.scroll.y+n.window.height)>=Math.round(t.top+t.height)&&!1===t.active&&(t.element.data("easyPieChart").enableAnimation(),t.element.data("easyPieChart").update(t.value),t.element.addClass("radial--active"),t.active=!0)})},n.components.documentReadyDeferred.push(n.easypiecharts.documentReady),n}(mr,jQuery,window,document),mr=function(s,t,e,a){"use strict";return s.sliders=s.sliders||{},s.sliders.documentReady=function(r){r(".slider").each(function(t){var a=r(this),e=a.find("ul.slides");e.find(">li").addClass("slide");var o=e.find("li").length,i={cellSelector:".slide",cellAlign:"left",wrapAround:!0,pageDots:!1,prevNextButtons:!1,autoPlay:!0,draggable:!(o<2),imagesLoaded:!0,accessibility:!0,rightToLeft:!1,initialIndex:0,freeScroll:!1},n={};n.pageDots="true"===a.attr("data-paging")&&1<e.find("li").length||void 0,n.prevNextButtons="true"===a.attr("data-arrows")||void 0,n.draggable="false"!==a.attr("data-draggable")&&void 0,n.autoPlay="false"!==a.attr("data-autoplay")&&(a.attr("data-timing")?parseInt(a.attr("data-timing"),10):void 0),n.accessibility="false"!==a.attr("data-accessibility")&&void 0,n.rightToLeft="true"===a.attr("data-rtl")||void 0,n.initialIndex=a.attr("data-initial")?parseInt(a.attr("data-initial"),10):void 0,n.freeScroll="true"===a.attr("data-freescroll")||void 0,a.attr("data-children",o),r(this).data("sliderOptions",jQuery.extend({},i,s.sliders.options,n)),r(e).flickity(r(this).data("sliderOptions")),r(e).on("scroll.flickity",function(t,e){a.find(".is-selected").hasClass("controls--dark")?a.addClass("controls--dark"):a.removeClass("controls--dark")})}),s.parallax.update&&s.parallax.update()},s.components.documentReadyDeferred.push(s.sliders.documentReady),s}(mr,jQuery,window,document),mr=function(n,o,r,t){"use strict";return n.smoothscroll=n.smoothscroll||{},n.smoothscroll.sections=[],n.smoothscroll.init=function(){n.smoothscroll.sections=[],o("a.inner-link").each(function(){var t={},e=o(this),a=e.attr("href");new RegExp("^#[^\r\n\t\f\v#.]+$","gm").test(a)&&o("section"+a).length&&(t.id=a,t.top=Math.round(o(a).offset().top),t.height=Math.round(o(a).outerHeight()),t.link=e.get(0),t.active=!1,n.smoothscroll.sections.push(t))}),n.smoothscroll.highlight()},n.smoothscroll.highlight=function(){n.smoothscroll.sections.forEach(function(t){n.scroll.y>=t.top&&n.scroll.y<t.top+t.height?!1===t.active&&(t.link.classList.add("inner-link--active"),t.active=!0):(t.link.classList.remove("inner-link--active"),t.active=!1)})},n.scroll.listeners.push(n.smoothscroll.highlight),n.smoothscroll.documentReady=function(a){var t,e,o=a("a.inner-link"),i={};e={selector:".inner-link",selectorHeader:null,speed:750,easing:"easeInOutCubic",offset:0},o.length&&(o.each(function(t){var e=a(this);"#"!==e.attr("href").charAt(0)&&e.removeClass("inner-link")}),n.smoothscroll.init(),a(r).on("resize",n.smoothscroll.init),t=0,a("body[data-smooth-scroll-offset]").length&&(t=a("body").attr("data-smooth-scroll-offset"),t*=1),i.offset=0!==t?t:void 0,smoothScroll.init(jQuery.extend({},e,n.smoothscroll.options,i)))},n.components.documentReady.push(n.smoothscroll.documentReady),n.components.windowLoad.push(n.smoothscroll.init),n}(mr,jQuery,window,document),mr=function(a,s,t,d){"use strict";return a.tabs=a.tabs||{},a.tabs.documentReady=function(o){o(".tabs").each(function(){var t=o(this);t.after('
        '),t.find("li").each(function(){var t=o(this),e=t.find(".tab__content").wrap("
      • ").parent(),a=e.clone(!0,!0);e.remove(),t.closest(".tabs-container").find(".tabs-content").append(a)})}),o(".tabs > li").on("click",function(){var t,e=o(this);a.tabs.activateTab(e),e.is("[id]")&&(t="#"+e.attr("id"),history.pushState?history.pushState(null,null,t):location.hash=t)}),o(".tabs li.active").each(function(){a.tabs.activateTab(this)}),""!==t.location.hash&&a.tabs.activateTabById(t.location.hash),o('a[href^="#"]').on("click",function(){a.tabs.activateTabById(o(this).attr("href"))})},a.tabs.activateTab=function(t){var e,a=s(t),o=a.closest(".tabs-container"),i=1*a.index()+1,n=o.find("> .tabs-content > li:nth-of-type("+i+")"),r=d.createEvent("Event");r.initEvent("tabOpened.tabs.mr",!0,!0),o.find("> .tabs > li").removeClass("active"),o.find("> .tabs-content > li").removeClass("active"),a.addClass("active").trigger("tabOpened.tabs.mr").get(0).dispatchEvent(r),n.addClass("active"),(e=n.find("iframe")).length&&e.attr("src",e.attr("src"))},a.tabs.activateTabById=function(t){""!==t&&"#"!==t&&null===t.match(/#\/.*/)&&s(".tabs > li#"+t.replace("#","")).length&&s(".tabs > li#"+t.replace("#","")).click()},a.components.documentReady.push(a.tabs.documentReady),a}(mr,jQuery,window,document),mr=function(t,e,a,o){"use strict";return t.toggleClass=t.toggleClass||{},t.toggleClass.documentReady=function(n){n("[data-toggle-class]").each(function(){var i=n(this),t=i.attr("data-toggle-class").split("|");n(t).each(function(){var t=i,e=[],a="",o="";2===(e=this.split(";")).length?(o=e[0],a=e[1],n(t).on("click",function(){return t.hasClass("toggled-class")?t.removeClass("toggled-class"):t.toggleClass("toggled-class"),n(o).toggleClass(a),!1})):console.log('Error in [data-toggle-class] attribute. This attribute accepts an element, or comma separated elements terminated witha ";" followed by a class name to toggle')})})},t.components.documentReady.push(t.toggleClass.documentReady),t}(mr,jQuery,window,document),mr=function(o,t,e,a){"use strict";return o.typed=o.typed||{},o.typed.documentReady=function(a){a(".typed-text").each(function(){var t=a(this),e=(t.attr("data-typed-strings")&&t.attr("data-typed-strings").split(","),{});e.strings=t.attr("data-typed-strings")?t.attr("data-typed-strings").split(","):void 0,a(t).typed(jQuery.extend({},{strings:[],typeSpeed:100,loop:!0,showCursor:!1},o.typed.options,e))})},o.components.documentReady.push(o.typed.documentReady),o}(mr,jQuery,window,document),mr=function(n,t,e,a){"use strict";return n.twitter=n.twitter||{},n.twitter.options=n.twitter.options||{},n.twitter.documentReady=function(a){a(".tweets-feed").each(function(t){a(this).attr("id","tweets-"+t)}).each(function(t){var i=a("#tweets-"+t),e={domId:"",maxTweets:6,enableLinks:!0,showUser:!0,showTime:!0,dateFunction:"",showRetweet:!1,customCallback:function(t){var e=t.length,a=0,o='
          ';for(;a<e;)o+="
        • "+t[a]+"
        • ",a++;if(o+="
        ",i.html(o),i.closest(".slider").length)return n.sliders.documentReady(n.setContext()),o}};e=jQuery.extend(e,n.twitter.options),void 0!==i.attr("data-widget-id")?e.id=i.attr("data-widget-id"):void 0!==i.attr("data-feed-name")&&""!==i.attr("data-feed-name")?e.profile={screenName:i.attr("data-feed-name").replace("@","")}:void 0!==n.twitter.options.profile?e.profile={screenName:n.twitter.options.profile.replace("@","")}:e.profile={screenName:"twitter"},e.maxTweets=i.attr("data-amount")?i.attr("data-amount"):e.maxTweets,i.closest(".twitter-feed--slider").length&&i.addClass("slider"),twitterFetcher.fetch(e)})},n.components.documentReady.push(n.twitter.documentReady),n}(mr,jQuery,window,document),mr=function(a,t,e,o){"use strict";return a.video=a.video||{},a.video.options=a.video.options||{},a.video.options.ytplayer=a.video.options.ytplayer||{},a.video.documentReady=function(o){o(".youtube-background").length&&o(".youtube-background").each(function(){var t=o(this),e={};e.videoURL=o(this).attr("data-video-url"),e.startAt=o(this).attr("data-start-at")?parseInt(o(this).attr("data-start-at"),10):void 0,t.closest(".videobg").append('
        '),t.YTPlayer(jQuery.extend({},{containment:"self",autoPlay:!0,mute:!0,opacity:1},a.video.options.ytplayer,e)),t.on("YTPStart",function(){t.closest(".videobg").addClass("video-active")})}),o(".videobg").find("video").length&&o(".videobg").find("video").closest(".videobg").addClass("video-active"),o(".video-cover").each(function(){var t=o(this);t.find("iframe[src]").length&&(t.find("iframe").attr("data-src",t.find("iframe").attr("src")),t.find("iframe").attr("src",""))}),o(".video-cover .video-play-icon").on("click",function(){var t=o(this).closest(".video-cover");if(t.find("video").length){var e=t.find("video").get(0);return t.addClass("reveal-video"),e.play(),!1}if(t.find("iframe").length){var a=t.find("iframe");return a.attr("src",a.attr("data-src")),t.addClass("reveal-video"),!1}})},a.components.documentReady.push(a.video.documentReady),a}(mr,jQuery,window,document),mr=function(a,t,e,o){"use strict";return a.wizard=a.wizard||{},a.wizard.documentReady=function(t){t(".wizard").each(function(){var t,e=jQuery(this);t={headerTag:"h5",bodyTag:"section",transitionEffect:"slideLeft",autoFocus:!0},e.is('[role="application"][id^="steps-uid"]')||(e.steps(jQuery.extend({},t,a.wizard.options)),e.addClass("active"))})},a.components.documentReady.push(a.wizard.documentReady),a}(mr,jQuery,window,document);

        !function(a,b){"function"==typeof define&&define.amd?define([],b(a)):"object"==typeof exports?module.exports=b(a):a.smoothScroll=b(a)}("undefined"!=typeof global?global:this.window||this.global,function(a){"use strict";var d,e,f,g,h,i,j,b={},c="querySelector"in document&&"addEventListener"in a,k={selector:"[data-scroll]",selectorHeader:null,speed:500,easing:"easeInOutCubic",offset:0,callback:function(){}},l=function(){var a={},b=!1,c=0,d=arguments.length;"[object Boolean]"===Object.prototype.toString.call(arguments[0])&&(b=arguments[0],c++);for(var e=function(c){for(var d in c)Object.prototype.hasOwnProperty.call(c,d)&&(b&&"[object Object]"===Object.prototype.toString.call(c[d])?a[d]=l(!0,a[d],c[d]):a[d]=c[d])};c<d;c++){var f=arguments[c];e(f)}return a},m=function(a){return Math.max(a.scrollHeight,a.offsetHeight,a.clientHeight)},n=function(a,b){var e,f,c=b.charAt(0),d="classList"in document.documentElement;for("["===c&&(b=b.substr(1,b.length-2),e=b.split("="),e.length>1&&(f=!0,e[1]=e[1].replace(/"/g,"").replace(/'/g,"")));a&&a!==document&&1===a.nodeType;a=a.parentNode){if("."===c)if(d){if(a.classList.contains(b.substr(1)))return a}else if(new RegExp("(^|\\s)"+b.substr(1)+"(\\s|$)").test(a.className))return a;if("#"===c&&a.id===b.substr(1))return a;if("["===c&&a.hasAttribute(e[0])){if(!f)return a;if(a.getAttribute(e[0])===e[1])return a}if(a.tagName.toLowerCase()===b)return a}return null},o=function(a){"#"===a.charAt(0)&&(a=a.substr(1));for(var e,b=String(a),c=b.length,d=-1,f="",g=b.charCodeAt(0);++d<c;){if(e=b.charCodeAt(d),0===e)throw new InvalidCharacterError("Invalid character: the input contains U+0000.");f+=e>=1&&e<=31||127==e||0===d&&e>=48&&e<=57||1===d&&e>=48&&e<=57&&45===g?"\\"+e.toString(16)+" ":e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?b.charAt(d):"\\"+b.charAt(d)}return"#"+f},p=function(a,b){var c;return"easeInQuad"===a&&(c=b*b),"easeOutQuad"===a&&(c=b*(2-b)),"easeInOutQuad"===a&&(c=b<.5?2*b*b:-1+(4-2*b)*b),"easeInCubic"===a&&(c=b*b*b),"easeOutCubic"===a&&(c=--b*b*b+1),"easeInOutCubic"===a&&(c=b<.5?4*b*b*b:(b-1)*(2*b-2)*(2*b-2)+1),"easeInQuart"===a&&(c=b*b*b*b),"easeOutQuart"===a&&(c=1- --b*b*b*b),"easeInOutQuart"===a&&(c=b<.5?8*b*b*b*b:1-8*--b*b*b*b),"easeInQuint"===a&&(c=b*b*b*b*b),"easeOutQuint"===a&&(c=1+--b*b*b*b*b),"easeInOutQuint"===a&&(c=b<.5?16*b*b*b*b*b:1+16*--b*b*b*b*b),c||b},q=function(a,b,c){var d=0;if(a.offsetParent)do d+=a.offsetTop,a=a.offsetParent;while(a);return d=Math.max(d-b-c,0),Math.min(d,s()-r())},r=function(){return Math.max(document.documentElement.clientHeight,a.innerHeight||0)},s=function(){return Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)},t=function(a){return a&&"object"==typeof JSON&&"function"==typeof JSON.parse?JSON.parse(a):{}},u=function(a){return a?m(a)+a.offsetTop:0},v=function(b,c,d){d||(b.focus(),document.activeElement.id!==b.id&&(b.setAttribute("tabindex","-1"),b.focus(),b.style.outline="none"),a.scrollTo(0,c))};b.animateScroll=function(b,c,e){var f=t(c?c.getAttribute("data-options"):null),i=l(d||k,e||{},f),m="[object Number]"===Object.prototype.toString.call(b),n=m||!b.tagName?null:b;if(m||n){var o=a.pageYOffset;i.selectorHeader&&!g&&(g=document.querySelector(i.selectorHeader)),h||(h=u(g));var z,A,r=m?b:q(n,h,parseInt(i.offset,10)),w=r-o,x=s(),y=0,B=function(d,e,f){var g=a.pageYOffset;(d==e||g==e||a.innerHeight+g>=x)&&(clearInterval(f),v(b,e,m),i.callback(b,c))},C=function(){y+=16,z=y/parseInt(i.speed,10),z=z>1?1:z,A=o+w*p(i.easing,z),a.scrollTo(0,Math.floor(A)),B(A,r,j)},D=function(){clearInterval(j),j=setInterval(C,16)};0===a.pageYOffset&&a.scrollTo(0,0),D()}};var w=function(c){a.location.hash;e&&(e.id=e.getAttribute("data-scroll-id"),b.animateScroll(e,f),e=null,f=null)},x=function(b){if(0===b.button&&!b.metaKey&&!b.ctrlKey&&(f=n(b.target,d.selector),f&&"a"===f.tagName.toLowerCase()&&f.hostname===a.location.hostname&&f.pathname===a.location.pathname&&/#/.test(f.href))){var c=o(f.hash);if("#"===c){b.preventDefault(),e=document.body;var g=e.id?e.id:"smooth-scroll-top";return e.setAttribute("data-scroll-id",g),e.id="",void(a.location.hash.substring(1)===g?w():a.location.hash=g)}e=document.querySelector(c),e&&(e.setAttribute("data-scroll-id",e.id),e.id="",f.hash===a.location.hash&&(b.preventDefault(),w()))}},y=function(a){i||(i=setTimeout(function(){i=null,h=u(g)},66))};return b.destroy=function(){d&&(document.removeEventListener("click",x,!1),a.removeEventListener("resize",y,!1),d=null,e=null,f=null,g=null,h=null,i=null,j=null)},b.init=function(e){c&&(b.destroy(),d=l(k,e||{}),g=d.selectorHeader?document.querySelector(d.selectorHeader):null,h=u(g),document.addEventListener("click",x,!1),a.addEventListener("hashchange",w,!1),g&&a.addEventListener("resize",y,!1))},b});

        !function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],E=C.document,r=Object.getPrototypeOf,s=t.slice,g=t.concat,u=t.push,i=t.indexOf,n={},o=n.toString,h=n.hasOwnProperty,a=h.toString,l=a.call(Object),v={};function m(e,t){var n=(t=t||E).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var c="3.1.1",k=function(e,t){return new k.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,d=/-([a-z])/g,y=function(e,t){return t.toUpperCase()};function x(e){var t=!!e&&"length"in e&&e.length,n=k.type(e);return"function"!==n&&!k.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}k.fn=k.prototype={jquery:c,constructor:k,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(n){return this.pushStack(k.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},k.extend=k.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||k.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(l&&r&&(k.isPlainObject(r)||(i=k.isArray(r)))?(i?(i=!1,o=n&&k.isArray(n)?n:[]):o=n&&k.isPlainObject(n)?n:{},a[t]=k.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},k.extend({expando:"jQuery"+(c+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===k.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=k.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==o.call(e)||(t=r(e))&&("function"!=typeof(n=h.call(t,"constructor")&&t.constructor)||a.call(n)!==l))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e},globalEval:function(e){m(e)},camelCase:function(e){return e.replace(p,"ms-").replace(d,y)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,r=0;if(x(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:i.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(x(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g.apply([],a)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),k.isFunction(e))return r=s.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(s.call(arguments)))}).guid=e.guid=e.guid||k.guid++,i},now:Date.now,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=t[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var b=function(n){var e,d,b,o,i,h,f,g,w,u,l,T,C,a,E,v,s,c,m,k="sizzle"+1*new Date,y=n.document,N=0,r=0,p=ae(),x=ae(),S=ae(),D=function(e,t){return e===t&&(l=!0),0},j={}.hasOwnProperty,t=[],A=t.pop,q=t.push,L=t.push,H=t.slice,F=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",P="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+P+"*("+R+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+P+"*\\]",I=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",W=new RegExp(P+"+","g"),$=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g"),B=new RegExp("^"+P+"*,"+P+"*"),_=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),z=new RegExp("="+P+"*([^\\]'\"]*?)"+P+"*\\]","g"),X=new RegExp(I),U=new RegExp("^"+R+"$"),V={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+P+"?|("+P+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){T()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{L.apply(t=H.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){L={apply:t.length?function(e,t){q.apply(e,H.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,n,r){var i,o,a,s,u,l,c,f=t&&t.ownerDocument,p=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==p&&9!==p&&11!==p)return n;if(!r&&((t?t.ownerDocument||t:y)!==C&&T(t),t=t||C,E)){if(11!==p&&(u=J.exec(e)))if(i=u[1]){if(9===p){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&m(t,a)&&a.id===i)return n.push(a),n}else{if(u[2])return L.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return L.apply(n,t.getElementsByClassName(i)),n}if(d.qsa&&!S[e+" "]&&(!v||!v.test(e))){if(1!==p)f=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,ne):t.setAttribute("id",s=k),o=(l=h(e)).length;o--;)l[o]="#"+s+" "+me(l[o]);c=l.join(","),f=K.test(e)&&ge(t.parentNode)||t}if(c)try{return L.apply(n,f.querySelectorAll(c)),n}catch(e){}finally{s===k&&t.removeAttribute("id")}}}return g(e.replace($,"$1"),t,n,r)}function ae(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function se(e){return e[k]=!0,e}function ue(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),r=n.length;r--;)b.attrHandle[n[r]]=t}function ce(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pe(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function de(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ie(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function he(a){return se(function(o){return o=+o,se(function(e,t){for(var n,r=a([],e.length,o),i=r.length;i--;)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=oe.support={},i=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},T=oe.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:y;return r!==C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),y!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",re,!1):n.attachEvent&&n.attachEvent("onunload",re)),d.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ue(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=Q.test(C.getElementsByClassName),d.getById=ue(function(e){return a.appendChild(e).id=k,!C.getElementsByName||!C.getElementsByName(k).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=Q.test(C.querySelectorAll))&&(ue(function(e){a.appendChild(e).innerHTML="<a id='"+k+"'></a><select id='"+k+"-\r\\' msallowcapture=><option selected=></option></select>",e.querySelectorAll("[msallowcapture^=]").length&&v.push("[*^$]="+P+"*(?:|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+P+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+k+"-]").length||v.push("~="),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+k+"+*").length||v.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href= disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+P+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=Q.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ue(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!=]:x"),s.push("!=",I)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=Q.test(a.compareDocumentPosition),m=t||Q.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===y&&m(y,e)?-1:t===C||t.ownerDocument===y&&m(y,t)?1:u?F(u,e)-F(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===C?-1:t===C?1:i?-1:o?1:u?F(u,e)-F(u,t):0;if(i===o)return ce(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ce(a[r],s[r]):a[r]===y?-1:s[r]===y?1:0}),C},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&T(e),t=t.replace(z,"='$1']"),d.matchesSelector&&E&&!S[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0<oe(t,C,null,[e]).length},oe.contains=function(e,t){return(e.ownerDocument||e)!==C&&T(e),m(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==C&&T(e);var n=b.attrHandle[t.toLowerCase()],r=n&&j.call(b.attrHandle,t.toLowerCase())?n(e,t,!E):void 0;return void 0!==r?r:d.attributes||!E?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,n=[],r=0,i=0;if(l=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(D),l){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return u=null,e},o=oe.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},(b=oe.selectors={cacheLength:50,createPseudo:se,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=p[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&p(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=oe.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(W," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(h,e,t,g,v){var m="nth"!==h.slice(0,3),y="last"!==h.slice(-4),x="of-type"===e;return 1===g&&0===v?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u,l=m!==y?"nextSibling":"previousSibling",c=e.parentNode,f=x&&e.nodeName.toLowerCase(),p=!n&&!x,d=!1;if(c){if(m){for(;l;){for(a=e;a=a[l];)if(x?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=l="only"===h&&!u&&"nextSibling"}return!0}if(u=[y?c.firstChild:c.lastChild],y&&p){for(d=(s=(r=(i=(o=(a=c)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===N&&r[1])&&r[2],a=s&&c.childNodes[s];a=++s&&a&&a[l]||(d=s=0)||u.pop();)if(1===a.nodeType&&++d&&a===e){i[h]=[N,s,d];break}}else if(p&&(d=s=(r=(i=(o=(a=e)[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]||[])[0]===N&&r[1]),!1===d)for(;(a=++s&&a&&a[l]||(d=s=0)||u.pop())&&((x?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++d||(p&&((i=(o=a[k]||(a[k]={}))[a.uniqueID]||(o[a.uniqueID]={}))[h]=[N,d]),a!==e)););return(d-=v)===g||d%g==0&&0<=d/g}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[k]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var n,r=a(e,o),i=r.length;i--;)e[n=F(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:se(function(e){var r=[],i=[],s=f(e.replace($,"$1"));return s[k]?se(function(e,t,n,r){for(var i,o=s(e,null,r,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:se(function(t){return function(e){return 0<oe(t,e).length}}),contains:se(function(t){return t=t.replace(Z,ee),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:se(function(n){return U.test(n||"")||oe.error("unsupported lang: "+n),n=n.replace(Z,ee).toLowerCase(),function(e){var t;do{if(t=E?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=n.location&&n.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===a},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;0<=--r;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=pe(e);function ve(){}function me(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(s,e,t){var u=e.dir,l=e.next,c=l||u,f=t&&"parentNode"===c,p=r++;return e.first?function(e,t,n){for(;e=e[u];)if(1===e.nodeType||f)return s(e,t,n);return!1}:function(e,t,n){var r,i,o,a=[N,p];if(n){for(;e=e[u];)if((1===e.nodeType||f)&&s(e,t,n))return!0}else for(;e=e[u];)if(1===e.nodeType||f)if(i=(o=e[k]||(e[k]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[u]||e;else{if((r=i[c])&&r[0]===N&&r[1]===p)return a[2]=r[2];if((i[c]=a)[2]=s(e,t,n))return!0}return!1}}function xe(i){return 1<i.length?function(e,t,n){for(var r=i.length;r--;)if(!i[r](e,t,n))return!1;return!0}:i[0]}function be(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function we(d,h,g,v,m,e){return v&&!v[k]&&(v=we(v)),m&&!m[k]&&(m=we(m,e)),se(function(e,t,n,r){var i,o,a,s=[],u=[],l=t.length,c=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),f=!d||!e&&h?c:be(c,s,d,n,r),p=g?m||(e?d:l||v)?[]:t:f;if(g&&g(f,p,n,r),v)for(i=be(p,u),v(i,[],n,r),o=i.length;o--;)(a=i[o])&&(p[u[o]]=!(f[u[o]]=a));if(e){if(m||d){if(m){for(i=[],o=p.length;o--;)(a=p[o])&&i.push(f[o]=a);m(null,p=[],i,r)}for(o=p.length;o--;)(a=p[o])&&-1<(i=m?F(e,a):s[o])&&(e[i]=!(t[i]=a))}}else p=be(p===t?p.splice(l,p.length):p),m?m(null,t,p,r):L.apply(t,p)})}function Te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=ye(function(e){return e===i},a,!0),l=ye(function(e){return-1<F(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!==w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[ye(xe(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[k]){for(n=++s;n<r&&!b.relative[e[n].type];n++);return we(1<s&&xe(c),1<s&&me(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace($,"$1"),t,s<n&&Te(e.slice(s,n)),n<r&&Te(e=e.slice(n)),n<r&&me(e))}c.push(t)}return xe(c)}return ve.prototype=b.filters=b.pseudos,b.setFilters=new ve,h=oe.tokenize=function(e,t){var n,r,i,o,a,s,u,l=x[e+" "];if(l)return t?0:l.slice(0);for(a=e,s=[],u=b.preFilter;a;){for(o in n&&!(r=B.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=_.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace($," ")}),a=a.slice(n.length)),b.filter)!(r=V[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?oe.error(e):x(e,s).slice(0)},f=oe.compile=function(e,t){var n,v,m,y,x,r,i=[],o=[],a=S[e+" "];if(!a){for(t||(t=h(e)),n=t.length;n--;)(a=Te(t[n]))[k]?i.push(a):o.push(a);(a=S(e,(v=o,y=0<(m=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=N+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t===C||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){for(a=0,t||o.ownerDocument===C||(T(o),n=!E);s=v[a++];)if(s(o,t||C,n)){r.push(o);break}i&&(N=h)}y&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,y&&l!==u){for(a=0;s=m[a++];)s(c,f,t,n);if(e){if(0<u)for(;l--;)c[l]||f[l]||(f[l]=A.call(r));f=be(f)}L.apply(r,f),i&&!e&&0<f.length&&1<u+m.length&&oe.uniqueSort(r)}return i&&(N=h,w=p),c},y?se(r):r))).selector=e}return a},g=oe.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&h(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&E&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(Z,ee),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=V.needsContext.test(e)?0:o.length;i--&&(a=o[i],!b.relative[s=a.type]);)if((u=b.find[s])&&(r=u(a.matches[0].replace(Z,ee),K.test(o[0].type)&&ge(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&me(o)))return L.apply(n,r),n;break}}return(l||f(e,c))(r,t,!E,n,!t||K.test(e)&&ge(t.parentNode)||t),n},d.sortStable=k.split("").sort(D).join("")===k,d.detectDuplicates=!!l,T(),d.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||le("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||le("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||le(O,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(C);k.find=b,k.expr=b.selectors,k.expr[":"]=k.expr.pseudos,k.uniqueSort=k.unique=b.uniqueSort,k.text=b.getText,k.isXMLDoc=b.isXML,k.contains=b.contains,k.escapeSelector=b.escape;var w=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&k(e).is(n))break;r.push(e)}return r},T=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=k.expr.match.needsContext,S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function j(e,n,r){return k.isFunction(n)?k.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?k.grep(e,function(e){return e===n!==r}):"string"!=typeof n?k.grep(e,function(e){return-1<i.call(n,e)!==r}):D.test(n)?k.filter(n,e,r):(n=k.filter(n,e),k.grep(e,function(e){return-1<i.call(n,e)!==r&&1===e.nodeType}))}k.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?k.find.matchesSelector(r,e)?[r]:[]:k.find.matches(e,k.grep(t,function(e){return 1===e.nodeType}))},k.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(k(e).filter(function(){for(t=0;t<r;t++)if(k.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)k.find(e,i[t],n);return 1<r?k.uniqueSort(n):n},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&N.test(e)?k(e):e||[],!1).length}});var A,q=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(k.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||A,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof k?t[0]:t,k.merge(this,k.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),S.test(r[1])&&k.isPlainObject(t))for(r in t)k.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):k.isFunction(e)?void 0!==n.ready?n.ready(e):e(k):k.makeArray(e,this)}).prototype=k.fn,A=k(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}k.fn.extend({has:function(e){var t=k(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(k.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&k(e);if(!N.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&k.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?k.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(k(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(k.uniqueSort(k.merge(this.get(),k(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),k.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return w(e,"parentNode")},parentsUntil:function(e,t,n){return w(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return w(e,"nextSibling")},prevAll:function(e){return w(e,"previousSibling")},nextUntil:function(e,t,n){return w(e,"nextSibling",n)},prevUntil:function(e,t,n){return w(e,"previousSibling",n)},siblings:function(e){return T((e.parentNode||{}).firstChild,e)},children:function(e){return T(e.firstChild)},contents:function(e){return e.contentDocument||k.merge([],e.childNodes)}},function(r,i){k.fn[r]=function(e,t){var n=k.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=k.filter(t,n)),1<this.length&&(H[r]||k.uniqueSort(n),L.test(r)&&n.reverse()),this.pushStack(n)}});var O=/[^\x20\t\r\n\f]+/g;function P(e){return e}function R(e){throw e}function M(e,t,n){var r;try{e&&k.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&k.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}k.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},k.each(e.match(O)||[],function(e,t){n[t]=!0}),n):k.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=r.once,o=i=!0;u.length;l=-1)for(t=u.shift();++l<s.length;)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1);r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){k.each(e,function(e,t){k.isFunction(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==k.type(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return k.each(arguments,function(e,t){for(var n;-1<(n=k.inArray(t,s,n));)s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<k.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},k.extend({Deferred:function(e){var o=[["notify","progress",k.Callbacks("memory"),k.Callbacks("memory"),2],["resolve","done",k.Callbacks("once memory"),k.Callbacks("once memory"),0,"resolved"],["reject","fail",k.Callbacks("once memory"),k.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return k.Deferred(function(r){k.each(o,function(e,t){var n=k.isFunction(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&k.isFunction(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,k.isFunction(t)?s?t.call(e,l(u,o,P,s),l(u,o,R,s)):(u++,t.call(e,l(u,o,P,s),l(u,o,R,s),l(u,o,P,o.notifyWith))):(a!==P&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){k.Deferred.exceptionHook&&k.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==R&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(k.Deferred.getStackHook&&(t.stackTrace=k.Deferred.getStackHook()),C.setTimeout(t))}}return k.Deferred(function(e){o[0][3].add(l(0,e,k.isFunction(r)?r:P,e.notifyWith)),o[1][3].add(l(0,e,k.isFunction(t)?t:P)),o[2][3].add(l(0,e,k.isFunction(n)?n:R))}).promise()},promise:function(e){return null!=e?k.extend(e,a):a}},s={};return k.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[0][2].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=s.call(arguments),o=k.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(M(e,o.done(a(t)).resolve,o.reject),"pending"===o.state()||k.isFunction(i[t]&&i[t].then)))return o.then();for(;t--;)M(i[t],a(t),o.reject);return o.promise()}});var I=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;k.Deferred.exceptionHook=function(e,t){C.console&&C.console.warn&&e&&I.test(e.name)&&C.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},k.readyException=function(e){C.setTimeout(function(){throw e})};var W=k.Deferred();function $(){E.removeEventListener("DOMContentLoaded",$),C.removeEventListener("load",$),k.ready()}k.fn.ready=function(e){return W.then(e).catch(function(e){k.readyException(e)}),this},k.extend({isReady:!1,readyWait:1,holdReady:function(e){e?k.readyWait++:k.ready(!0)},ready:function(e){(!0===e?--k.readyWait:k.isReady)||((k.isReady=!0)!==e&&0<--k.readyWait||W.resolveWith(E,[k]))}}),k.ready.then=W.then,"complete"===E.readyState||"loading"!==E.readyState&&!E.documentElement.doScroll?C.setTimeout(k.ready):(E.addEventListener("DOMContentLoaded",$),C.addEventListener("load",$));var B=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===k.type(n))for(s in i=!0,n)B(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,k.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(k(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},_=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function z(){this.expando=k.expando+z.uid++}z.uid=1,z.prototype={cache:function(e){var t=e[this.expando];return t||(t={},_(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[k.camelCase(t)]=n;else for(r in t)i[k.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][k.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){k.isArray(t)?t=t.map(k.camelCase):t=(t=k.camelCase(t))in r?[t]:t.match(O)||[],n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||k.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!k.isEmptyObject(t)}};var X=new z,U=new z,V=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,G=/[A-Z]/g;function Y(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(G,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:V.test(i)?JSON.parse(i):i)}catch(e){}U.set(e,t,n)}else n=void 0;return n}k.extend({hasData:function(e){return U.hasData(e)||X.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return X.access(e,t,n)},_removeData:function(e,t){X.remove(e,t)}}),k.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=U.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&(0===(r=a[t].name).indexOf("data-")&&(r=k.camelCase(r.slice(5)),Y(o,r,i[r])));X.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){U.set(this,n)}):B(this,function(e){var t;if(o&&void 0===e){if(void 0!==(t=U.get(o,n)))return t;if(void 0!==(t=Y(o,n)))return t}else this.each(function(){U.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){U.remove(this,e)})}}),k.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=X.get(e,t),n&&(!r||k.isArray(n)?r=X.access(e,t,k.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=k.queue(e,t),r=n.length,i=n.shift(),o=k._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){k.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return X.get(e,n)||X.access(e,n,{empty:k.Callbacks("once memory").add(function(){X.remove(e,[t+"queue",n])})})}}),k.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?k.queue(this[0],t):void 0===n?this:this.each(function(){var e=k.queue(this,t,n);k._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&k.dequeue(this,t)})},dequeue:function(e){return this.each(function(){k.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=k.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=X.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var Q=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,J=new RegExp("^(?:([+-])=|)("+Q+")([a-z%]*)$","i"),K=["Top","Right","Bottom","Left"],Z=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&k.contains(e.ownerDocument,e)&&"none"===k.css(e,"display")},ee=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=n.apply(e,r||[]),t)e.style[o]=a[o];return i};function te(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return k.css(e,t,"")},u=s(),l=n&&n[3]||(k.cssNumber[t]?"":"px"),c=(k.cssNumber[t]||"px"!==l&&+u)&&J.exec(k.css(e,t));if(c&&c[3]!==l)for(l=l||c[3],n=n||[],c=+u||1;c/=o=o||".5",k.style(e,t,c+l),o!==(o=s()/u)&&1!==o&&--a;);return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=X.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&Z(r)&&(i[o]=(f=l=u=void 0,l=(s=r).ownerDocument,c=s.nodeName,(f=ne[c])||(u=l.body.appendChild(l.createElement(c)),f=k.css(u,"display"),u.parentNode.removeChild(u),"none"===f&&(f="block"),ne[c]=f)))):"none"!==n&&(i[o]="none",X.set(r,"display",n)));var s,u,l,c,f;for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}k.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Z(this)?k(this).show():k(this).hide()})}});var ie=/^(?:checkbox|radio)$/i,oe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,se={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"","
        "],col:[2,"<colgroup>","</colgroup>
        "],tr:[2,"<tbody>","</tbody>
        "],td:[3,"<tbody>","</tbody>
        "],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&k.nodeName(e,t)?k.merge([e],n):n}function le(e,t){for(var n=0,r=e.length;n<r;n++)X.set(e[n],"globalEval",!t||X.get(t[n],"globalEval"))}se.optgroup=se.option,se.tbody=se.tfoot=se.colgroup=se.caption=se.thead,se.th=se.td;var ce,fe,pe=/<|&#?\w+;/;function de(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===k.type(o))k.merge(p,o.nodeType?[o]:o);else if(pe.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(oe.exec(o)||["",""])[1].toLowerCase(),u=se[s]||se._default,a.innerHTML=u[1]+k.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;k.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&-1<k.inArray(o,r))i&&i.push(o);else if(l=k.contains(o.ownerDocument,o),a=ue(f.appendChild(o),"script"),l&&le(a),n)for(c=0;o=a[c++];)ae.test(o.type||"")&&n.push(o);return f}ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),v.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue;var he=E.documentElement,ge=/^key/,ve=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,me=/^([^.]*)(?:\.(.+)|)/;function ye(){return!0}function xe(){return!1}function be(){try{return E.activeElement}catch(e){}}function we(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)we(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=xe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return k().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=k.guid++)),e.each(function(){k.event.add(this,t,i,r,n)})}k.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=X.get(t);if(v)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&k.find.matchesSelector(he,i),n.guid||(n.guid=k.guid++),(u=v.events)||(u=v.events={}),(a=v.handle)||(a=v.handle=function(e){return void 0!==k&&k.event.triggered!==e.type?k.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(O)||[""]).length;l--;)d=g=(s=me.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=k.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=k.event.special[d]||{},c=k.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&k.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),k.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=X.hasData(e)&&X.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(O)||[""]).length;l--;)if(d=g=(s=me.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=k.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||k.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)k.event.remove(e,d+t[l],n,r,!0);k.isEmptyObject(u)&&X.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=k.event.fix(e),u=new Array(arguments.length),l=(X.get(this,"events")||{})[s.type]||[],c=k.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,s)){for(a=k.event.handlers.call(this,s,l),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((k.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<k(i,this).index(l):k.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(k.Event.prototype,t,{enumerable:!0,configurable:!0,get:k.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[k.expando]?e:new k.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&k.nodeName(this,"input"))return this.click(),!1},_default:function(e){return k.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},k.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},k.Event=function(e,t){return this instanceof k.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ye:xe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&k.extend(this,t),this.timeStamp=e&&e.timeStamp||k.now(),void(this[k.expando]=!0)):new k.Event(e,t)},k.Event.prototype={constructor:k.Event,isDefaultPrevented:xe,isPropagationStopped:xe,isImmediatePropagationStopped:xe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ye,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ye,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ye,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},k.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ge.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ve.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},k.event.addProp),k.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){k.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||k.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),k.fn.extend({on:function(e,t,n,r){return we(this,e,t,n,r)},one:function(e,t,n,r){return we(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,k(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=xe),this.each(function(){k.event.remove(this,e,n,t)})}});var Te=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ne=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Se(e,t){return k.nodeName(e,"table")&&k.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Ae(e,t){var n,r,i,o,a,s,u,l;if(1===t.nodeType){if(X.hasData(e)&&(o=X.access(e),a=X.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n<r;n++)k.event.add(t,i,l[i][n]);U.hasData(e)&&(s=U.access(e),u=k.extend({},s),U.set(t,u))}}function qe(n,r,i,o){r=g.apply([],r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=k.isFunction(d);if(h||1<f&&"string"==typeof d&&!v.checkClone&&Ee.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),qe(t,r,i,o)});if(f&&(t=(e=de(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=k.map(ue(e,"script"),De)).length;c<f;c++)u=e,c!==p&&(u=k.clone(u,!0,!0),s&&k.merge(a,ue(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,k.map(a,je),c=0;c<s;c++)u=a[c],ae.test(u.type||"")&&!X.access(u,"globalEval")&&k.contains(l,u)&&(u.src?k._evalUrl&&k._evalUrl(u.src):m(u.textContent.replace(Ne,""),l))}return n}function Le(e,t,n){for(var r,i=t?k.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||k.cleanData(ue(r)),r.parentNode&&(n&&k.contains(r.ownerDocument,r)&&le(ue(r,"script")),r.parentNode.removeChild(r));return e}k.extend({htmlPrefilter:function(e){return e.replace(Te,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=k.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||k.isXMLDoc(e)))for(a=ue(c),r=0,i=(o=ue(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&ie.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||ue(e),a=a||ue(c),r=0,i=o.length;r<i;r++)Ae(o[r],a[r]);else Ae(e,c);return 0<(a=ue(c,"script")).length&&le(a,!f&&ue(e,"script")),c},cleanData:function(e){for(var t,n,r,i=k.event.special,o=0;void 0!==(n=e[o]);o++)if(_(n)){if(t=n[X.expando]){if(t.events)for(r in t.events)i[r]?k.event.remove(n,r):k.removeEvent(n,r,t.handle);n[X.expando]=void 0}n[U.expando]&&(n[U.expando]=void 0)}}}),k.fn.extend({detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return B(this,function(e){return void 0===e?k.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return qe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Se(this,e).appendChild(e)})},prepend:function(){return qe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Se(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(k.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return k.clone(this,e,t)})},html:function(e){return B(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ce.test(e)&&!se[(oe.exec(e)||["",""])[1].toLowerCase()]){e=k.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(k.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return qe(this,arguments,function(e){var t=this.parentNode;k.inArray(this,n)<0&&(k.cleanData(ue(this)),t&&t.replaceChild(e,this))},n)}}),k.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){k.fn[e]=function(e){for(var t,n=[],r=k(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),k(r[o])[a](t),u.apply(n,t.get());return this.pushStack(n)}});var He=/^margin/,Fe=new RegExp("^("+Q+")(?!px)[a-z%]+$","i"),Oe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=C),t.getComputedStyle(e)};function Pe(e,t,n){var r,i,o,a,s=e.style;return(n=n||Oe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||k.contains(e.ownerDocument,e)||(a=k.style(e,t)),!v.pixelMarginRight()&&Fe.test(a)&&He.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function Re(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function e(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",he.appendChild(o);var e=C.getComputedStyle(a);t="1%"!==e.top,i="2px"===e.marginLeft,n="4px"===e.width,a.style.marginRight="50%",r="4px"===e.marginRight,he.removeChild(o),a=null}}var t,n,r,i,o=E.createElement("div"),a=E.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===a.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(a),k.extend(v,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),n},pixelMarginRight:function(){return e(),r},reliableMarginLeft:function(){return e(),i}}))}();var Me=/^(none|table(?!-c[ea]).+)/,Ie={position:"absolute",visibility:"hidden",display:"block"},We={letterSpacing:"0",fontWeight:"400"},$e=["Webkit","Moz","ms"],Be=E.createElement("div").style;function _e(e){if(e in Be)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in Be)return e}function ze(e,t,n){var r=J.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Xe(e,t,n,r,i){var o,a=0;for(o=n===(r?"border":"content")?4:"width"===t?1:0;o<4;o+=2)"margin"===n&&(a+=k.css(e,n+K[o],!0,i)),r?("content"===n&&(a-=k.css(e,"padding"+K[o],!0,i)),"margin"!==n&&(a-=k.css(e,"border"+K[o]+"Width",!0,i))):(a+=k.css(e,"padding"+K[o],!0,i),"padding"!==n&&(a+=k.css(e,"border"+K[o]+"Width",!0,i)));return a}function Ue(e,t,n){var r,i=!0,o=Oe(e),a="border-box"===k.css(e,"boxSizing",!1,o);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),r<=0||null==r){if(((r=Pe(e,t,o))<0||null==r)&&(r=e.style[t]),Fe.test(r))return r;i=a&&(v.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+Xe(e,t,n||(a?"border":"content"),i,o)+"px"}function Ve(e,t,n,r,i){return new Ve.prototype.init(e,t,n,r,i)}k.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Pe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=k.camelCase(t),u=e.style;return t=k.cssProps[s]||(k.cssProps[s]=_e(s)||s),a=k.cssHooks[t]||k.cssHooks[s],void 0===n?a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t]:("string"===(o=typeof n)&&(i=J.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),void(null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(k.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u[t]=n))))}},css:function(e,t,n,r){var i,o,a,s=k.camelCase(t);return t=k.cssProps[s]||(k.cssProps[s]=_e(s)||s),(a=k.cssHooks[t]||k.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Pe(e,t,r)),"normal"===i&&t in We&&(i=We[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),k.each(["height","width"],function(e,a){k.cssHooks[a]={get:function(e,t,n){if(t)return!Me.test(k.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ue(e,a,n):ee(e,Ie,function(){return Ue(e,a,n)})},set:function(e,t,n){var r,i=n&&Oe(e),o=n&&Xe(e,a,n,"border-box"===k.css(e,"boxSizing",!1,i),i);return o&&(r=J.exec(t))&&"px"!==(r[3]||"px")&&(e.style[a]=t,t=k.css(e,a)),ze(0,t,o)}}}),k.cssHooks.marginLeft=Re(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Pe(e,"marginLeft"))||e.getBoundingClientRect().left-ee(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),k.each({margin:"",padding:"",border:"Width"},function(i,o){k.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+K[t]+o]=r[t]||r[t-2]||r[0];return n}},He.test(i)||(k.cssHooks[i+o].set=ze)}),k.fn.extend({css:function(e,t){return B(this,function(e,t,n){var r,i,o={},a=0;if(k.isArray(t)){for(r=Oe(e),i=t.length;a<i;a++)o[t[a]]=k.css(e,t[a],!1,r);return o}return void 0!==n?k.style(e,t,n):k.css(e,t)},e,t,1<arguments.length)}}),((k.Tween=Ve).prototype={constructor:Ve,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||k.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(k.cssNumber[n]?"":"px")},cur:function(){var e=Ve.propHooks[this.prop];return e&&e.get?e.get(this):Ve.propHooks._default.get(this)},run:function(e){var t,n=Ve.propHooks[this.prop];return this.options.duration?this.pos=t=k.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Ve.propHooks._default.set(this),this}}).init.prototype=Ve.prototype,(Ve.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=k.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){k.fx.step[e.prop]?k.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[k.cssProps[e.prop]]&&!k.cssHooks[e.prop]?e.elem[e.prop]=e.now:k.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ve.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},k.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},k.fx=Ve.prototype.init,k.fx.step={};var Ge,Ye,Qe,Je,Ke=/^(?:toggle|show|hide)$/,Ze=/queueHooks$/;function et(){Ye&&(C.requestAnimationFrame(et),k.fx.tick())}function tt(){return C.setTimeout(function(){Ge=void 0}),Ge=k.now()}function nt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=K[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function rt(e,t,n){for(var r,i=(it.tweeners[t]||[]).concat(it.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function it(o,e,t){var n,a,r=0,i=it.prefilters.length,s=k.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Ge||tt(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:k.extend({},e),opts:k.extend(!0,{specialEasing:{},easing:k.easing._default},t),originalProperties:e,originalOptions:t,startTime:Ge||tt(),duration:t.duration,tweens:[],createTween:function(e,t){var n=k.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=k.camelCase(n)],o=e[n],k.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=k.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=it.prefilters[r].call(l,o,c,l.opts))return k.isFunction(n.stop)&&(k._queueHooks(l.elem,l.opts.queue).stop=k.proxy(n.stop,n)),n;return k.map(c,rt,l),k.isFunction(l.opts.start)&&l.opts.start.call(o,l),k.fx.timer(k.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}k.Animation=k.extend(it,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,J.exec(t),n),n}]},tweener:function(e,t){k.isFunction(e)?(t=e,e=["*"]):e=e.match(O);for(var n,r=0,i=e.length;r<i;r++)n=e[r],it.tweeners[n]=it.tweeners[n]||[],it.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&Z(e),v=X.get(e,"fxshow");for(r in n.queue||(null==(a=k._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,k.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],Ke.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||k.style(e,r)}if((u=!k.isEmptyObject(t))||!k.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=X.get(e,"display")),"none"===(c=k.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=k.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===k.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=X.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),X.remove(e,"fxshow"),d)k.style(e,r,d[r])})),u=rt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?it.prefilters.unshift(e):it.prefilters.push(e)}}),k.speed=function(e,t,n){var r=e&&"object"==typeof e?k.extend({},e):{complete:n||!n&&t||k.isFunction(e)&&e,duration:e,easing:n&&t||t&&!k.isFunction(t)&&t};return k.fx.off||E.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in k.fx.speeds?r.duration=k.fx.speeds[r.duration]:r.duration=k.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){k.isFunction(r.old)&&r.old.call(this),r.queue&&k.dequeue(this,r.queue)},r},k.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Z).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=k.isEmptyObject(t),o=k.speed(e,n,r),a=function(){var e=it(this,k.extend({},t),o);(i||X.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=k.timers,r=X.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&Ze.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||k.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=X.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=k.timers,o=n?n.length:0;for(t.finish=!0,k.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),k.each(["toggle","show","hide"],function(e,r){var i=k.fn[r];k.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(nt(r,!0),e,t,n)}}),k.each({slideDown:nt("show"),slideUp:nt("hide"),slideToggle:nt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){k.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),k.timers=[],k.fx.tick=function(){var e,t=0,n=k.timers;for(Ge=k.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||k.fx.stop(),Ge=void 0},k.fx.timer=function(e){k.timers.push(e),e()?k.fx.start():k.timers.pop()},k.fx.interval=13,k.fx.start=function(){Ye||(Ye=C.requestAnimationFrame?C.requestAnimationFrame(et):C.setInterval(k.fx.tick,k.fx.interval))},k.fx.stop=function(){C.cancelAnimationFrame?C.cancelAnimationFrame(Ye):C.clearInterval(Ye),Ye=null},k.fx.speeds={slow:600,fast:200,_default:400},k.fn.delay=function(r,e){return r=k.fx&&k.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=C.setTimeout(e,r);t.stop=function(){C.clearTimeout(n)}})},Qe=E.createElement("input"),Je=E.createElement("select").appendChild(E.createElement("option")),Qe.type="checkbox",v.checkOn=""!==Qe.value,v.optSelected=Je.selected,(Qe=E.createElement("input")).value="t",Qe.type="radio",v.radioValue="t"===Qe.value;var ot,at=k.expr.attrHandle;k.fn.extend({attr:function(e,t){return B(this,k.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){k.removeAttr(this,e)})}}),k.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?k.prop(e,t,n):(1===o&&k.isXMLDoc(e)||(i=k.attrHooks[t.toLowerCase()]||(k.expr.match.bool.test(t)?ot:void 0)),void 0!==n?null===n?void k.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=k.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&k.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(O);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),ot={set:function(e,t,n){return!1===t?k.removeAttr(e,n):e.setAttribute(n,n),n}},k.each(k.expr.match.bool.source.match(/\w+/g),function(e,t){var a=at[t]||k.find.attr;at[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=at[o],at[o]=r,r=null!=a(e,t,n)?o:null,at[o]=i),r}});var st=/^(?:input|select|textarea|button)$/i,ut=/^(?:a|area)$/i;function lt(e){return(e.match(O)||[]).join(" ")}function ct(e){return e.getAttribute&&e.getAttribute("class")||""}k.fn.extend({prop:function(e,t){return B(this,k.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[k.propFix[e]||e]})}}),k.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&k.isXMLDoc(e)||(t=k.propFix[t]||t,i=k.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=k.find.attr(e,"tabindex");return t?parseInt(t,10):st.test(e.nodeName)||ut.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(k.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),k.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){k.propFix[this.toLowerCase()]=this}),k.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,u=0;if(k.isFunction(t))return this.each(function(e){k(this).addClass(t.call(this,e,ct(this)))});if("string"==typeof t&&t)for(e=t.match(O)||[];n=this[u++];)if(i=ct(n),r=1===n.nodeType&&" "+lt(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=lt(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,u=0;if(k.isFunction(t))return this.each(function(e){k(this).removeClass(t.call(this,e,ct(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(O)||[];n=this[u++];)if(i=ct(n),r=1===n.nodeType&&" "+lt(i)+" "){for(a=0;o=e[a++];)for(;-1<r.indexOf(" "+o+" ");)r=r.replace(" "+o+" "," ");i!==(s=lt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i;return"boolean"==typeof t&&"string"===o?t?this.addClass(i):this.removeClass(i):k.isFunction(i)?this.each(function(e){k(this).toggleClass(i.call(this,e,ct(this),t),t)}):this.each(function(){var e,t,n,r;if("string"===o)for(t=0,n=k(this),r=i.match(O)||[];e=r[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==i&&"boolean"!==o||((e=ct(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":X.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&-1<(" "+lt(ct(n))+" ").indexOf(t))return!0;return!1}});var ft=/\r/g;k.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=k.isFunction(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,k(this).val()):n)?t="":"number"==typeof t?t+="":k.isArray(t)&&(t=k.map(t,function(e){return null==e?"":e+""})),(r=k.valHooks[this.type]||k.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=k.valHooks[t.type]||k.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(ft,""):null==e?"":e:void 0}}),k.extend({valHooks:{option:{get:function(e){var t=k.find.attr(e,"value");return null!=t?t:lt(k.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!k.nodeName(n.parentNode,"optgroup"))){if(t=k(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=k.makeArray(t),a=i.length;a--;)((r=i[a]).selected=-1<k.inArray(k.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),k.each(["radio","checkbox"],function(){k.valHooks[this]={set:function(e,t){if(k.isArray(t))return e.checked=-1<k.inArray(k(e).val(),t)}},v.checkOn||(k.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var pt=/^(?:focusinfocus|focusoutblur)$/;k.extend(k.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f=[n||E],p=h.call(e,"type")?e.type:e,d=h.call(e,"namespace")?e.namespace.split("."):[];if(o=a=n=n||E,3!==n.nodeType&&8!==n.nodeType&&!pt.test(p+k.event.triggered)&&(-1<p.indexOf(".")&&(p=(d=p.split(".")).shift(),d.sort()),u=p.indexOf(":")<0&&"on"+p,(e=e[k.expando]?e:new k.Event(p,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=d.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+d.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:k.makeArray(t,[e]),c=k.event.special[p]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!k.isWindow(n)){for(s=c.delegateType||p,pt.test(s+p)||(o=o.parentNode);o;o=o.parentNode)f.push(o),a=o;a===(n.ownerDocument||E)&&f.push(a.defaultView||a.parentWindow||C)}for(i=0;(o=f[i++])&&!e.isPropagationStopped();)e.type=1<i?s:c.bindType||p,(l=(X.get(o,"events")||{})[e.type]&&X.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&_(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=p,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(f.pop(),t)||!_(n)||u&&k.isFunction(n[p])&&!k.isWindow(n)&&((a=n[u])&&(n[u]=null),n[k.event.triggered=p](),k.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=k.extend(new k.Event,n,{type:e,isSimulated:!0});k.event.trigger(r,null,t)}}),k.fn.extend({trigger:function(e,t){return this.each(function(){k.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return k.event.trigger(e,t,n,!0)}}),k.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){k.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),k.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),v.focusin="onfocusin"in C,v.focusin||k.each({focus:"focusin",blur:"focusout"},function(n,r){var i=function(e){k.event.simulate(r,e.target,k.event.fix(e))};k.event.special[r]={setup:function(){var e=this.ownerDocument||this,t=X.access(e,r);t||e.addEventListener(n,i,!0),X.access(e,r,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=X.access(e,r)-1;t?X.access(e,r,t):(e.removeEventListener(n,i,!0),X.remove(e,r))}}});var dt=C.location,ht=k.now(),gt=/\?/;k.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new C.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||k.error("Invalid XML: "+e),t};var vt=/\[\]$/,mt=/\r?\n/g,yt=/^(?:submit|button|image|reset|file)$/i,xt=/^(?:input|select|textarea|keygen)/i;function bt(n,e,r,i){var t;if(k.isArray(e))k.each(e,function(e,t){r||vt.test(n)?i(n,t):bt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==k.type(e))i(n,e);else for(t in e)bt(n+"["+t+"]",e[t],r,i)}k.param=function(e,t){var n,r=[],i=function(e,t){var n=k.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(k.isArray(e)||e.jquery&&!k.isPlainObject(e))k.each(e,function(){i(this.name,this.value)});else for(n in e)bt(n,e[n],t,i);return r.join("&")},k.fn.extend({serialize:function(){return k.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=k.prop(this,"elements");return e?k.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!k(this).is(":disabled")&&xt.test(this.nodeName)&&!yt.test(e)&&(this.checked||!ie.test(e))}).map(function(e,t){var n=k(this).val();return null==n?null:k.isArray(n)?k.map(n,function(e){return{name:t.name,value:e.replace(mt,"\r\n")}}):{name:t.name,value:n.replace(mt,"\r\n")}}).get()}});var wt=/%20/g,Tt=/#.*$/,Ct=/([?&])_=[^&]*/,Et=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:GET|HEAD)$/,Nt=/^\/\//,St={},Dt={},jt="*/".concat("*"),At=E.createElement("a");function qt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(O)||[];if(k.isFunction(t))for(;n=i[r++];)"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Lt(t,i,o,a){var s={},u=t===Dt;function l(e){var r;return s[e]=!0,k.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ht(e,t){var n,r,i=k.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&k.extend(!0,e,r),e}At.href=dt.href,k.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:dt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(dt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":jt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":k.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ht(Ht(e,k.ajaxSettings),t):Ht(k.ajaxSettings,e)},ajaxPrefilter:qt(St),ajaxTransport:qt(Dt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=k.ajaxSetup({},t),m=v.context||v,y=v.context&&(m.nodeType||m.jquery)?k(m):k.event,x=k.Deferred(),b=k.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=Et.exec(p);)n[t[1].toLowerCase()]=t[2];t=n[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||dt.href)+"").replace(Nt,dt.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(O)||[""],null==v.crossDomain){r=E.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=At.protocol+"//"+At.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=k.param(v.data,v.traditional)),Lt(St,v,t,T),h)return T;for(i in(g=k.event&&v.global)&&0==k.active++&&k.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!kt.test(v.type),f=v.url.replace(Tt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(wt,"+")):(o=v.url.slice(f.length),v.data&&(f+=(gt.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(Ct,"$1"),o=(gt.test(f)?"&":"?")+"_="+ht+++o),v.url=f+o),v.ifModified&&(k.lastModified[f]&&T.setRequestHeader("If-Modified-Since",k.lastModified[f]),k.etag[f]&&T.setRequestHeader("If-None-Match",k.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+jt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(m,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Lt(Dt,v,t,T)){if(T.readyState=1,g&&y.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=C.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&C.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(k.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(k.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(m,[o,l,T]):x.rejectWith(m,[T,l,a]),T.statusCode(w),w=void 0,g&&y.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(m,[T,l]),g&&(y.trigger("ajaxComplete",[T,v]),--k.active||k.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return k.get(e,t,n,"json")},getScript:function(e,t){return k.get(e,void 0,t,"script")}}),k.each(["get","post"],function(e,i){k[i]=function(e,t,n,r){return k.isFunction(t)&&(r=r||n,n=t,t=void 0),k.ajax(k.extend({url:e,type:i,dataType:r,data:t,success:n},k.isPlainObject(e)&&e))}}),k._evalUrl=function(e){return k.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},k.fn.extend({wrapAll:function(e){var t;return this[0]&&(k.isFunction(e)&&(e=e.call(this[0])),t=k(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return k.isFunction(n)?this.each(function(e){k(this).wrapInner(n.call(this,e))}):this.each(function(){var e=k(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=k.isFunction(t);return this.each(function(e){k(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){k(this).replaceWith(this.childNodes)}),this}}),k.expr.pseudos.hidden=function(e){return!k.expr.pseudos.visible(e)},k.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},k.ajaxSettings.xhr=function(){try{return new C.XMLHttpRequest}catch(e){}};var Ft={0:200,1223:204},Ot=k.ajaxSettings.xhr();v.cors=!!Ot&&"withCredentials"in Ot,v.ajax=Ot=!!Ot,k.ajaxTransport(function(i){var o,a;if(v.cors||Ot&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Ft[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&C.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),k.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),k.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return k.globalEval(e),e}}}),k.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),k.ajaxTransport("script",function(n){var r,i;if(n.crossDomain)return{send:function(e,t){r=k("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Pt,Rt=[],Mt=/(=)\?(?=&|$)|\?\?/;function It(e){return k.isWindow(e)?e:9===e.nodeType&&e.defaultView}k.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rt.pop()||k.expando+"_"+ht++;return this[e]=!0,e}}),k.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Mt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Mt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=k.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Mt,"$1"+r):!1!==e.jsonp&&(e.url+=(gt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||k.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?k(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Rt.push(r)),o&&k.isFunction(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Pt=E.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Pt.childNodes.length),k.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=S.exec(e))?[t.createElement(i[1])]:(i=de([e],t,o),o&&o.length&&k(o).remove(),k.merge([],i.childNodes)));var r,i,o},k.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=lt(e.slice(s)),e=e.slice(0,s)),k.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&k.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?k("
        ").append(k.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},k.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){k.fn[t]=function(e){return this.on(t,e)}}),k.expr.pseudos.animated=function(t){return k.grep(k.timers,function(e){return t===e.elem}).length},k.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=k.css(e,"position"),c=k(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=k.css(e,"top"),u=k.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),k.isFunction(t)&&(t=t.call(e,n,k.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},k.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){k.offset.setOffset(this,t,e)});var e,n,r,i,o=this[0];return o?o.getClientRects().length?(r=o.getBoundingClientRect()).width||r.height?(n=It(i=o.ownerDocument),e=i.documentElement,{top:r.top+n.pageYOffset-e.clientTop,left:r.left+n.pageXOffset-e.clientLeft}):r:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===k.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),k.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+k.css(e[0],"borderTopWidth",!0),left:r.left+k.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-k.css(n,"marginTop",!0),left:t.left-r.left-k.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===k.css(e,"position");)e=e.offsetParent;return e||he})}}),k.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;k.fn[t]=function(e){return B(this,function(e,t,n){var r=It(e);return void 0===n?r?r[i]:e[t]:void(r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n)},t,e,arguments.length)}}),k.each(["top","left"],function(e,n){k.cssHooks[n]=Re(v.pixelPosition,function(e,t){if(t)return t=Pe(e,n),Fe.test(t)?k(e).position()[n]+"px":t})}),k.each({Height:"height",Width:"width"},function(a,s){k.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){k.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return B(this,function(e,t,n){var r;return k.isWindow(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?k.css(e,t,i):k.style(e,t,n,i)},s,n?e:void 0,n)}})}),k.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),k.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return k});var Wt=C.jQuery,$t=C.$;return k.noConflict=function(e){return C.$===k&&(C.$=$t),e&&C.jQuery===k&&(C.jQuery=Wt),k},e||(C.jQuery=C.$=k),k}); Stack Multipurpose HTML Template
        image
        image

        Subtítulo de ejemplo de printer

        Printeria

        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis a lorem sed sem euismod euismod in in elit. Etiam eu ullamcorper mi, vel elementum neque. Donec eget tincidunt lectus, vel accumsan odio. Aenean cursus ipsum eget mi pulvinar ultrices. Aliquam congue pellentesque purus commodo fringilla. Sed ultrices leo vel metus hendrerit tincidunt.

        Printeria

        Vivamus euismod, elit id maximus consectetur, lorem nisi semper enim, ac dignissim ligula justo vel quam. Duis lacinia nunc at dictum aliquam. Vivamus congue, sapien condimentum condimentum tempor, nunc tellus iaculis velit, nec sodales nulla tortor sit amet turpis. Nam a accumsan magna, vel dignissim ante.

        Image

        Sed varius commodo iaculis. Sed vitae dictum orci, quis cursus neque. Duis auctor augue nec nibh egestas posuere. Suspendisse eget ex arcu. Nulla elementum nunc sit amet elit lacinia feugiat. Maecenas a gravida libero. Vivamus vitae hendrerit turpis. Maecenas malesuada mi ac diam iaculis elementum.

        Printeria

        Sed varius commodo iaculis. Sed vitae dictum orci, quis cursus neque. Duis auctor augue nec nibh egestas posuere. Suspendisse eget ex arcu. Nulla elementum nunc sit amet elit lacinia feugiat.