function initRecaptchaCheckCom(){if(0===$(".recaptcha-row").length)return!0;$("#new_lead").submit((function(){if(!grecaptcha.getResponse())return $(".recaptcha-error-text").removeClass("hidden"),!1;$(".recaptcha-error-text").addClass("hidden")}))}function hideRecaptchaErrorCom(){$(".recaptcha-error-text").addClass("hidden")}function initYandexMap(){const e=e=>new ymaps.Placemark(e,{hasBalloon:!1,hasHint:!1},{iconLayout:"default#image",iconImageHref:"/images/pin.png",iconImageSize:[55,55],iconImageOffset:[-25,-60]}),t=e=>{const t=$(window).width();let[n,i]=e;return t>670&&t<1e3?i*=.99979:t<=670&&(n*=.99993),[n,i]},n=[55.736333,37.590456],i=[53.219716,44.999245],o=document.getElementById("contacts-yandex-map"),r=new ymaps.Map(o,{center:t(n),zoom:15}),s=e(i),a=e(n);r.geoObjects.add(s),r.geoObjects.add(a),$(document).on("click","[data-role='yandex-maps-tab']",(function(e){const o=$(e.target).data("office-location");"penza"===o?r.panTo(t(i)):"moscow"===o&&r.panTo(t(n))}))}function init_navi_drop(){var e="header__navi-i_state_down";$(".js-navi").click((function(t){$(window).width()<980&&$(t.target).hasClass("header__navi-link")&&t.preventDefault(),$(this).hasClass(e)?$(this).removeClass(e):$(this).addClass(e)}))}function init_header_toggle(){var e=$(".js-header-toggle"),t=$(".js-header"),n="header_state_active";e.click((function(){t.hasClass(n)?t.removeClass(n):t.addClass(n)}))}function init_select_mobile(){var e="mobile__list-i_state_current";$(".js-select-mobile").mouseenter((function(){const t=$(this).closest(".mobile .mobile__inside");index=$(t).find(".js-select-mobile").index(this),$(t).find(".js-select-mobile").removeClass(e),change_mobile_screen(t,index),$(this).addClass(e)}))}function change_mobile_screen(e,t){var n="mobile__center-screen_state_current";$(e).find(".js-select-mobile-screen").removeClass(n),$(e).find(".js-select-mobile-screen").eq(t).addClass(n)}function init_slider(){$(".js-mobile-slider").slick({slidesToShow:1,slidesToScroll:1,centerMode:!1,infinite:!0,arrows:!0,dots:!0,adaptiveHeight:!1}).on("beforeChange",(function(e,t,n,i){container=$(this).closest(".mobile .mobile__inside"),change_mobile_screen(container,i)}))}function init_report(){var e="report__i_state_current";$(".js-report").click((function(){$(".js-report").removeClass(e),$(this).addClass(e)}))}function init_drag_slider(){$(".js-drag-slider").twentytwenty();var e=function(){$(".js-drag-slider").each((function(){var e=parseFloat($(this).data("h")),t=$(this).width();$(this).css({height:e*t})}))};e(),$(window).resize((function(){e()})),setTimeout((function(){$(window).resize()}),500)}function init_reviews_slider(){$(".js-reviews-slider").slick({slidesToShow:1,slidesToScroll:1,centerMode:!1,infinite:!0,arrows:!0,dots:!1,adaptiveHeight:!1})}function init_handler(){var e="faq__i_state_current";$(".js-acc-handler").click((function(){$el=$(this).parents(".js-acc").first(),$body=$el.find(".js-acc-body"),$el.hasClass(e)?($el.removeClass(e),$body.show().slideUp(200)):($el.addClass(e),$body.hide().slideDown(200))}))}function init_second_navi(){var e=$(".js-second-navi"),t=$(".js-second-navi-list"),n=$(".js-second-navi-prev"),i=$(".js-second-navi-next"),o=0,r=0,s=$(window).width();if(0==e.length||0==t.length)return!1;var a=function(){c(),e.css({height:t.outerHeight()}),$(".js-second-navi-wrap").css({height:t.outerHeight()})},c=function(){o=t.outerWidth(),r=e.outerWidth(),o>r?(n.show(),i.show()):(n.hide(),i.hide()),l=t.position().left,0==l&&i.hide(),l==-o+r&&n.hide()},d=function(e){return l=t.position().left,e>0?l+e<0?l+=e:l=0:l+e>-o+r?l+=e:l=-o+r,l},u=function(){$(window).width()>980||(a(),itemWidth=143,initShift=d(-$(".t-navi__i_state_current").position().left+itemWidth),t.css("left",initShift))};n.click((function(){var e=d(-250);t.animate({left:e},400,(function(){c()}))})),i.click((function(){var e=d(250);t.animate({left:e},400,(function(){c()}))})),setTimeout((function(){a()}),100),$(window).resize((function(){$(this).width()!==s&&(s=$(window).width(),u())})),$(window).scroll((function(){a()})),u()}function init_t_report(){var e="t-reports__i_state_current";$(".js-t-report").click((function(){$(this).parents(".js-t-report-list").first().find(".js-t-report").removeClass(e),$(this).addClass(e)}))}function init_fixed_header(){var e=$(".js-header");if(0==e.length)return!1;var t=$(".js-second-navi-wrap"),n="header_type_fixed",i="t-navi__list-outter_type_fixed",o="t-navi__list-outter_type_hidden",r=$(".js-footer"),s=function(){var s=$(window).scrollTop();s>0?e.addClass(n):e.removeClass(n),0!=t.length&&(s>t.offset().top?t.addClass(i):t.removeClass(i)),r.length>0&&(s>r.offset().top-350?t.addClass(o):t.removeClass(o))};s(),$(window).off("scroll.header").on("scroll.header",(function(){s()}))}function init_comp_fixed(){var e=$(".js-comp-fixed"),t=$(".js-comp-fixed-overflow");if(0==e.length)return!1;var n=$(".js-comp-table"),i="comp__relative_type_fixed",o=n.clone(!0).appendTo(t).find(".js-comp-fixed-title"),r=n.find(".js-comp-title"),s=function(){var s=$(window).scrollTop(),a=n.height(),l=n.offset().top,c=e.find(".comp__row.navigate__buttons:visible").outerHeight(!0);t.css({height:e.find("tr:first td").outerHeight(!0)+1+c}),l<s+75&&s<l+a-75?e.addClass(i).css({width:n.outerWidth(),left:n.offset().left}):e.removeClass(i),r.each((function(){var e=$(this),t=e.offset().top;t<s+100&&s<t+a-100&&o.text(e.text())}))};s(),$(window).off("scroll.comp").on("scroll.comp",(function(){s()})),$(window).off("resize.comp").on("resize.comp",(function(){s()}))}function init_register_placeholders(){if(0==$(".sign .sign__main").length)return!1;var e=$(".sign .sign__main #new_lead #lead_email"),t=$(".sign .sign__main #new_lead #lead_phone"),n=$(document).width()<411?"placeholder-mobile":"placeholder-web";e.attr("placeholder",e.data(n)),t.attr("placeholder",t.data(n))}function init_reach_goal(){$(".page-end-cta").on("click",(function(){return ym(31340958,"reachGoal","page-end-cta"),!0})),$(".features-cta").on("click",(function(){return ym(31340958,"reachGoal","features-cta"),!0})),$(".button.button--small.button--white.area-banner-fill__btn").on("click",(function(){return ym(31340958,"reachGoal","cta-blog-1-click"),!0})),$(document).on("click",'div[data-ym_attr="home-preview-video"]',(()=>(ym(31340958,"reachGoal","homepage-video-click"),!0)))}function js_pie_collection(){pie.start()}function init_form_subscribe(){$(document).on("ajax:success","form.form-subscribe, .form-subscribe form",(function(e,t){if(t&&!t.error&&t.notification){const n=$(e.target);"alert"===t.notification.type?(n.addClass("form-subscribe--error"),$("form").removeClass("form-subscribe--succ over-form-sub--suc")):($("form").removeClass("over-form-sub--error form-subscribe--error"),n.addClass("form-subscribe--succ"),n.find("input").val("")),n.find(".form-info").text(t.notification.message)}}))}function init_over_form(){function e(){o||"true"===i||function(){const e=window.pageYOffset/(Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight)-window.innerHeight);return Math.round(100*e)}()<n||r.removeClass("over-form-sub--hidden")}function t(){const e="over_form_close";let t=window.localStorage.getItem(e);return t||(t=document.cookie.match("(^|;) ?"+e+"=([^;]*)(;|$)"),t?t[2]:null)}const n=60,i=t();let o=!1;const r=$(document).find(".over-form-sub"),s=r.find(".over-form-sub__icon"),a=r.find(".over-form-sub__form");s.on("click",(()=>{r.addClass("over-form-sub--hidden"),null===t()&&function(){var e=new Date;e.setTime(e.getTime()+864e5),document.cookie=`over_form_close=true; expires=${e.toUTCString()}`}(),o=!0})),$(window).on("scroll",(()=>{e()})),$(a).on("ajax:success",(function(e,t){t&&!t.error&&t.notification&&("notice"===t.notification.type?($(r).find(".over-form-sub__successful").text(t.notification.message),r.addClass("over-form-sub--suc"),$("form").removeClass("over-form-sub--error form-subscribe--error"),window.localStorage.setItem("over_form_close","true")):(a.find(".error-form-text").text(t.notification.message),a.addClass("over-form-sub--error"),$("form").removeClass("form-subscribe--succ over-form-sub--suc")))})),setTimeout((()=>{e()}),40)}function hideRecaptchaErrorRu(){$(".registration__capcha").next().addClass("hidden")}function showRecaptchaErrorRu(){$(".registration__capcha").next().removeClass("hidden")}var pie;!function(e,t){"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(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=ae.type(e);return"function"!==n&&!ae.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t,n){if(ae.isFunction(t))return ae.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return ae.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(ge.test(t))return ae.filter(t,e,n);t=ae.filter(t,e)}return ae.grep(e,(function(e){return ae.inArray(e,t)>-1!==n}))}function o(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function r(){K.addEventListener?(K.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(K.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(K.addEventListener||"load"===e.event.type||"complete"===K.readyState)&&(r(),ae.ready())}function a(e,t,n){if(void 0===n&&1===e.nodeType){var i="data-"+t.replace(Ee,"-$1").toLowerCase();if("string"==typeof(n=e.getAttribute(i))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:$e.test(n)?ae.parseJSON(n):n)}catch(e){}ae.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!ae.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,i){if(_e(e)){var o,r,s=ae.expando,a=e.nodeType,l=a?ae.cache:e,c=a?e[s]:e[s]&&s;if(c&&l[c]&&(i||l[c].data)||void 0!==n||"string"!=typeof t)return c||(c=a?e[s]=J.pop()||ae.guid++:s),l[c]||(l[c]=a?{}:{toJSON:ae.noop}),"object"!=typeof t&&"function"!=typeof t||(i?l[c]=ae.extend(l[c],t):l[c].data=ae.extend(l[c].data,t)),r=l[c],i||(r.data||(r.data={}),r=r.data),void 0!==n&&(r[ae.camelCase(t)]=n),"string"==typeof t?null==(o=r[t])&&(o=r[ae.camelCase(t)]):o=r,o}}function d(e,t,n){if(_e(e)){var i,o,r=e.nodeType,s=r?ae.cache:e,a=r?e[ae.expando]:ae.expando;if(s[a]){if(t&&(i=n?s[a]:s[a].data)){o=(t=ae.isArray(t)?t.concat(ae.map(t,ae.camelCase)):t in i||(t=ae.camelCase(t))in i?[t]:t.split(" ")).length;for(;o--;)delete i[t[o]];if(n?!l(i):!ae.isEmptyObject(i))return}(n||(delete s[a].data,l(s[a])))&&(r?ae.cleanData([e],!0):re.deleteExpando||s!=s.window?delete s[a]:s[a]=void 0)}}}function u(e,t,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return ae.css(e,t,"")},l=a(),c=n&&n[3]||(ae.cssNumber[t]?"":"px"),d=(ae.cssNumber[t]||"px"!==c&&+l)&&Le.exec(ae.css(e,t));if(d&&d[3]!==c){c=c||d[3],n=n||[],d=+l||1;do{d/=r=r||".5",ae.style(e,t,d+c)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}function f(e){var t=Pe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function p(e,t){var n,i,o=0,r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!r)for(r=[],n=e.childNodes||e;null!=(i=n[o]);o++)!t||ae.nodeName(i,t)?r.push(i):ae.merge(r,p(i,t));return void 0===t||t&&ae.nodeName(e,t)?ae.merge([e],r):r}function h(e,t){for(var n,i=0;null!=(n=e[i]);i++)ae._data(n,"globalEval",!t||ae._data(t[i],"globalEval"))}function m(e){Oe.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t,n,i,o){for(var r,s,a,l,c,d,u,v=e.length,g=f(t),y=[],b=0;b<v;b++)if((s=e[b])||0===s)if("object"===ae.type(s))ae.merge(y,s.nodeType?[s]:s);else if(Re.test(s)){for(l=l||g.appendChild(t.createElement("div")),c=(He.exec(s)||["",""])[1].toLowerCase(),u=qe[c]||qe._default,l.innerHTML=u[1]+ae.htmlPrefilter(s)+u[2],r=u[0];r--;)l=l.lastChild;if(!re.leadingWhitespace&&ze.test(s)&&y.push(t.createTextNode(ze.exec(s)[0])),!re.tbody)for(r=(s="table"!==c||Me.test(s)?"<table>"!==u[1]||Me.test(s)?0:l:l.firstChild)&&s.childNodes.length;r--;)ae.nodeName(d=s.childNodes[r],"tbody")&&!d.childNodes.length&&s.removeChild(d);for(ae.merge(y,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=g.lastChild}else y.push(t.createTextNode(s));for(l&&g.removeChild(l),re.appendChecked||ae.grep(p(y,"input"),m),b=0;s=y[b++];)if(i&&ae.inArray(s,i)>-1)o&&o.push(s);else if(a=ae.contains(s.ownerDocument,s),l=p(g.appendChild(s),"script"),a&&h(l),n)for(r=0;s=l[r++];)Ie.test(s.type||"")&&n.push(s);return l=null,g}function g(){return!0}function y(){return!1}function b(){try{return K.activeElement}catch(e){}}function w(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)w(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=y;else if(!o)return e;return 1===r&&(s=o,o=function(e){return ae().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=ae.guid++)),e.each((function(){ae.event.add(this,t,o,i,n)}))}function x(e,t){return ae.nodeName(e,"table")&&ae.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function S(e){return e.type=(null!==ae.find.attr(e,"type"))+"/"+e.type,e}function C(e){var t=Qe.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){if(1===t.nodeType&&ae.hasData(e)){var n,i,o,r=ae._data(e),s=ae._data(t,r),a=r.events;if(a)for(n in delete s.handle,s.events={},a)for(i=0,o=a[n].length;i<o;i++)ae.event.add(t,n,a[n][i]);s.data&&(s.data=ae.extend({},s.data))}}function T(e,t){var n,i,o;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!re.noCloneEvent&&t[ae.expando]){for(i in(o=ae._data(t)).events)ae.removeEvent(t,i,o.handle);t.removeAttribute(ae.expando)}"script"===n&&t.text!==e.text?(S(t).text=e.text,C(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),re.html5Clone&&e.innerHTML&&!ae.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Oe.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function _(e,t,n,i){t=Z.apply([],t);var o,r,s,a,l,c,d=0,u=e.length,f=u-1,h=t[0],m=ae.isFunction(h);if(m||u>1&&"string"==typeof h&&!re.checkClone&&Ke.test(h))return e.each((function(o){var r=e.eq(o);m&&(t[0]=h.call(this,o,r.html())),_(r,t,n,i)}));if(u&&(o=(c=v(t,e[0].ownerDocument,!1,e,i)).firstChild,1===c.childNodes.length&&(c=o),o||i)){for(s=(a=ae.map(p(c,"script"),S)).length;d<u;d++)r=c,d!==f&&(r=ae.clone(r,!0,!0),s&&ae.merge(a,p(r,"script"))),n.call(e[d],r,d);if(s)for(l=a[a.length-1].ownerDocument,ae.map(a,C),d=0;d<s;d++)r=a[d],Ie.test(r.type||"")&&!ae._data(r,"globalEval")&&ae.contains(l,r)&&(r.src?ae._evalUrl&&ae._evalUrl(r.src):ae.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Ze,"")));c=o=null}return e}function $(e,t,n){for(var i,o=t?ae.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||ae.cleanData(p(i)),i.parentNode&&(n&&ae.contains(i.ownerDocument,i)&&h(p(i,"script")),i.parentNode.removeChild(i));return e}function E(e,t){var n=ae(t.createElement(e)).appendTo(t.body),i=ae.css(n[0],"display");return n.detach(),i}function A(e){var t=K,n=nt[e];return n||("none"!==(n=E(e,t))&&n||((t=((tt=(tt||ae("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||tt[0].contentDocument).document).write(),t.close(),n=E(e,t),tt.detach()),nt[e]=n),n}function L(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function N(e){if(e in gt)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=vt.length;n--;)if((e=vt[n]+t)in gt)return e}function j(e,t){for(var n,i,o,r=[],s=0,a=e.length;s<a;s++)(i=e[s]).style&&(r[s]=ae._data(i,"olddisplay"),n=i.style.display,t?(r[s]||"none"!==n||(i.style.display=""),""===i.style.display&&je(i)&&(r[s]=ae._data(i,"olddisplay",A(i.nodeName)))):(o=je(i),(n&&"none"!==n||!o)&&ae._data(i,"olddisplay",o?n:ae.css(i,"display"))));for(s=0;s<a;s++)(i=e[s]).style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?r[s]||"":"none"));return e}function D(e,t,n){var i=pt.exec(t);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):t}function O(e,t,n,i,o){for(var r=n===(i?"border":"content")?4:"width"===t?1:0,s=0;r<4;r+=2)"margin"===n&&(s+=ae.css(e,n+Ne[r],!0,o)),i?("content"===n&&(s-=ae.css(e,"padding"+Ne[r],!0,o)),"margin"!==n&&(s-=ae.css(e,"border"+Ne[r]+"Width",!0,o))):(s+=ae.css(e,"padding"+Ne[r],!0,o),"padding"!==n&&(s+=ae.css(e,"border"+Ne[r]+"Width",!0,o)));return s}function H(e,t,n){var i=!0,o="width"===t?e.offsetWidth:e.offsetHeight,r=at(e),s=re.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,r);if(o<=0||null==o){if(((o=lt(e,t,r))<0||null==o)&&(o=e.style[t]),ot.test(o))return o;i=s&&(re.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+O(e,t,n||(s?"border":"content"),i,r)+"px"}function I(e,t,n,i,o){return new I.prototype.init(e,t,n,i,o)}function z(){return e.setTimeout((function(){yt=void 0})),yt=ae.now()}function P(e,t){var n,i={height:e},o=0;for(t=t?1:0;o<4;o+=2-t)i["margin"+(n=Ne[o])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function q(e,t,n){for(var i,o=(R.tweeners[t]||[]).concat(R.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function R(e,t,n){var i,o,r=0,s=R.prefilters.length,a=ae.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=yt||z(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:ae.extend({},t),opts:ae.extend(!0,{specialEasing:{},easing:ae.easing._default},n),originalProperties:t,originalOptions:n,startTime:yt||z(),duration:n.duration,tweens:[],createTween:function(t,n){var i=ae.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=ae.camelCase(n)],r=e[n],ae.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=ae.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(d,c.opts.specialEasing);r<s;r++)if(i=R.prefilters[r].call(c,e,d,c.opts))return ae.isFunction(i.stop)&&(ae._queueHooks(c.elem,c.opts.queue).stop=ae.proxy(i.stop,i)),i;return ae.map(d,q,c),ae.isFunction(c.opts.start)&&c.opts.start.call(e,c),ae.fx.timer(ae.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function M(e){return ae.attr(e,"class")||""}function F(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(ke)||[];if(ae.isFunction(n))for(;i=r[o++];)"+"===i.charAt(0)?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function V(e,t,n,i){function o(a){var l;return r[a]=!0,ae.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)})),l}var r={},s=e===Wt;return o(t.dataTypes[0])||!r["*"]&&o("*")}function W(e,t){var n,i,o=ae.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((o[i]?e:n||(n={}))[i]=t[i]);return n&&ae.extend(!0,e,n),e}function B(e){return e.style&&e.style.display||ae.css(e,"display")}function X(e,t,n,i){var o;if(ae.isArray(t))ae.each(t,(function(t,o){n||Gt.test(e)?i(e,o):X(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==ae.type(t))i(e,t);else for(o in t)X(e+"["+o+"]",t[o],n,i)}function U(){try{return new e.XMLHttpRequest}catch(e){}}function Y(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function G(e){return ae.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var J=[],K=e.document,Q=J.slice,Z=J.concat,ee=J.push,te=J.indexOf,ne={},ie=ne.toString,oe=ne.hasOwnProperty,re={},se="1.12.4",ae=function(e,t){return new ae.fn.init(e,t)},le=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ce=/^-ms-/,de=/-([\da-z])/gi,ue=function(e,t){return t.toUpperCase()};ae.fn=ae.prototype={jquery:se,constructor:ae,selector:"",length:0,toArray:function(){return Q.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:Q.call(this)},pushStack:function(e){var t=ae.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return ae.each(this,e)},map:function(e){return this.pushStack(ae.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(Q.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(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ee,sort:J.sort,splice:J.splice},ae.extend=ae.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||ae.isFunction(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(o=arguments[a]))for(i in o)e=s[i],s!==(n=o[i])&&(c&&n&&(ae.isPlainObject(n)||(t=ae.isArray(n)))?(t?(t=!1,r=e&&ae.isArray(e)?e:[]):r=e&&ae.isPlainObject(e)?e:{},s[i]=ae.extend(c,r,n)):void 0!==n&&(s[i]=n));return s},ae.extend({expando:"jQuery"+(se+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===ae.type(e)},isArray:Array.isArray||function(e){return"array"===ae.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!ae.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==ae.type(e)||e.nodeType||ae.isWindow(e))return!1;try{if(e.constructor&&!oe.call(e,"constructor")&&!oe.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!re.ownFirst)for(t in e)return oe.call(e,t);for(t in e);return void 0===t||oe.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ne[ie.call(e)]||"object":typeof e},globalEval:function(t){t&&ae.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ce,"ms-").replace(de,ue)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var i,o=0;if(n(e))for(i=e.length;o<i&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(le,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(n(Object(e))?ae.merge(i,"string"==typeof e?[e]:e):ee.call(i,e)),i},inArray:function(e,t,n){var i;if(t){if(te)return te.call(t,e,n);for(i=t.length,n=n?n<0?Math.max(0,i+n):n:0;n<i;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;)e[o++]=t[i++];if(n!=n)for(;void 0!==t[i];)e[o++]=t[i++];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,i){var o,r,s=0,a=[];if(n(e))for(o=e.length;s<o;s++)null!=(r=t(e[s],s,i))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,i))&&a.push(r);return Z.apply([],a)},guid:1,proxy:function(e,t){var n,i,o;if("string"==typeof t&&(o=e[t],t=e,e=o),ae.isFunction(e))return n=Q.call(arguments,2),i=function(){return e.apply(t||this,n.concat(Q.call(arguments)))},i.guid=e.guid=e.guid||ae.guid++,i},now:function(){return+new Date},support:re}),"function"==typeof Symbol&&(ae.fn[Symbol.iterator]=J[Symbol.iterator]),ae.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){ne["[object "+t+"]"]=t.toLowerCase()}));var fe=function(e){function t(e,t,n,i){var o,r,s,a,l,c,u,p,h=t&&t.ownerDocument,m=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return n;if(!i&&((t?t.ownerDocument||t:R)!==j&&N(t),t=t||j,O)){if(11!==m&&(c=ge.exec(e)))if(o=c[1]){if(9===m){if(!(s=t.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&P(t,s)&&s.id===o)return n.push(s),n}else{if(c[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&x.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(o)),n}if(x.qsa&&!B[e+" "]&&(!H||!H.test(e))){if(1!==m)h=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(be,"\\$&"):t.setAttribute("id",a=q),r=(u=T(e)).length,l=fe.test(a)?"#"+a:"[id='"+a+"']";r--;)u[r]=l+" "+f(u[r]);p=u.join(","),h=ye.test(e)&&d(t.parentNode)||t}if(p)try{return Q.apply(n,h.querySelectorAll(p)),n}catch(e){}finally{a===q&&t.removeAttribute("id")}}}return $(e.replace(ae,"$1"),t,n,i)}function n(){var e=[];return function t(n,i){return e.push(n+" ")>S.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function i(e){return e[q]=!0,e}function o(e){var t=j.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function r(e,t){for(var n=e.split("|"),i=n.length;i--;)S.attrHandle[n[i]]=t}function s(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||U)-(~e.sourceIndex||U);if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function a(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return i((function(t){return t=+t,i((function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))}))}))}function d(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function f(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function p(e,t,n){var i=t.dir,o=n&&"parentNode"===i,r=F++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var a,l,c,d=[M,r];if(s){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,s))return!0}else for(;t=t[i];)if(1===t.nodeType||o){if((a=(l=(c=t[q]||(t[q]={}))[t.uniqueID]||(c[t.uniqueID]={}))[i])&&a[0]===M&&a[1]===r)return d[2]=a[2];if(l[i]=d,d[2]=e(t,n,s))return!0}}}function h(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function m(e,n,i){for(var o=0,r=n.length;o<r;o++)t(e,n[o],i);return i}function v(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),c&&t.push(a)));return s}function g(e,t,n,o,r,s){return o&&!o[q]&&(o=g(o)),r&&!r[q]&&(r=g(r,s)),i((function(i,s,a,l){var c,d,u,f=[],p=[],h=s.length,g=i||m(t||"*",a.nodeType?[a]:a,[]),y=!e||!i&&t?g:v(g,f,e,a,l),b=n?r||(i?e:h||o)?[]:s:y;if(n&&n(y,b,a,l),o)for(c=v(b,p),o(c,[],a,l),d=c.length;d--;)(u=c[d])&&(b[p[d]]=!(y[p[d]]=u));if(i){if(r||e){if(r){for(c=[],d=b.length;d--;)(u=b[d])&&c.push(y[d]=u);r(null,b=[],c,l)}for(d=b.length;d--;)(u=b[d])&&(c=r?ee(i,u):f[d])>-1&&(i[c]=!(s[c]=u))}}else b=v(b===s?b.splice(h,b.length):b),r?r(null,s,b,l):Q.apply(s,b)}))}function y(e){for(var t,n,i,o=e.length,r=S.relative[e[0].type],s=r||S.relative[" "],a=r?1:0,l=p((function(e){return e===t}),s,!0),c=p((function(e){return ee(t,e)>-1}),s,!0),d=[function(e,n,i){var o=!r&&(i||n!==E)||((t=n).nodeType?l(e,n,i):c(e,n,i));return t=null,o}];a<o;a++)if(n=S.relative[e[a].type])d=[p(h(d),n)];else{if((n=S.filter[e[a].type].apply(null,e[a].matches))[q]){for(i=++a;i<o&&!S.relative[e[i].type];i++);return g(a>1&&h(d),a>1&&f(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(ae,"$1"),n,a<i&&y(e.slice(a,i)),i<o&&y(e=e.slice(i)),i<o&&f(e))}d.push(n)}return h(d)}function b(e,n){var o=n.length>0,r=e.length>0,s=function(i,s,a,l,c){var d,u,f,p=0,h="0",m=i&&[],g=[],y=E,b=i||r&&S.find.TAG("*",c),w=M+=null==y?1:Math.random()||.1,x=b.length;for(c&&(E=s===j||s||c);h!==x&&null!=(d=b[h]);h++){if(r&&d){for(u=0,s||d.ownerDocument===j||(N(d),a=!O);f=e[u++];)if(f(d,s||j,a)){l.push(d);break}c&&(M=w)}o&&((d=!f&&d)&&p--,i&&m.push(d))}if(p+=h,o&&h!==p){for(u=0;f=n[u++];)f(m,g,s,a);if(i){if(p>0)for(;h--;)m[h]||g[h]||(g[h]=J.call(l));g=v(g)}Q.apply(l,g),c&&!i&&g.length>0&&p+n.length>1&&t.uniqueSort(l)}return c&&(M=w,E=y),m};return o?i(s):s}var w,x,S,C,k,T,_,$,E,A,L,N,j,D,O,H,I,z,P,q="sizzle"+1*new Date,R=e.document,M=0,F=0,V=n(),W=n(),B=n(),X=function(e,t){return e===t&&(L=!0),0},U=1<<31,Y={}.hasOwnProperty,G=[],J=G.pop,K=G.push,Q=G.push,Z=G.slice,ee=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",ie="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",oe="\\["+ne+"*("+ie+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ie+"))|)"+ne+"*\\]",re=":("+ie+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+oe+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),ae=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),de=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),ue=new RegExp(re),fe=new RegExp("^"+ie+"$"),pe={ID:new RegExp("^#("+ie+")"),CLASS:new RegExp("^\\.("+ie+")"),TAG:new RegExp("^("+ie+"|[*])"),ATTR:new RegExp("^"+oe),PSEUDO:new RegExp("^"+re),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ve=/^[^{]+\{\s*\[native \w/,ge=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ye=/[+~]/,be=/'|\\/g,we=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),xe=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},Se=function(){N()};try{Q.apply(G=Z.call(R.childNodes),R.childNodes),G[R.childNodes.length].nodeType}catch(e){Q={apply:G.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}for(w in x=t.support={},k=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},N=t.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:R;return i!==j&&9===i.nodeType&&i.documentElement?(D=(j=i).documentElement,O=!k(j),(n=j.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Se,!1):n.attachEvent&&n.attachEvent("onunload",Se)),x.attributes=o((function(e){return e.className="i",!e.getAttribute("className")})),x.getElementsByTagName=o((function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length})),x.getElementsByClassName=ve.test(j.getElementsByClassName),x.getById=o((function(e){return D.appendChild(e).id=q,!j.getElementsByName||!j.getElementsByName(q).length})),x.getById?(S.find.ID=function(e,t){if(void 0!==t.getElementById&&O){var n=t.getElementById(e);return n?[n]:[]}},S.filter.ID=function(e){var t=e.replace(we,xe);return function(e){return e.getAttribute("id")===t}}):(delete S.find.ID,S.filter.ID=function(e){var t=e.replace(we,xe);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),S.find.TAG=x.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):x.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},S.find.CLASS=x.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&O)return t.getElementsByClassName(e)},I=[],H=[],(x.qsa=ve.test(j.querySelectorAll))&&(o((function(e){D.appendChild(e).innerHTML="<a id='"+q+"'></a><select id='"+q+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+q+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+q+"+*").length||H.push(".#.+[+~]")})),o((function(e){var t=j.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")}))),(x.matchesSelector=ve.test(z=D.matches||D.webkitMatchesSelector||D.mozMatchesSelector||D.oMatchesSelector||D.msMatchesSelector))&&o((function(e){x.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),I.push("!=",re)})),H=H.length&&new RegExp(H.join("|")),I=I.length&&new RegExp(I.join("|")),t=ve.test(D.compareDocumentPosition),P=t||ve.test(D.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},X=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)||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===j||e.ownerDocument===R&&P(R,e)?-1:t===j||t.ownerDocument===R&&P(R,t)?1:A?ee(A,e)-ee(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return L=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,a=[e],l=[t];if(!o||!r)return e===j?-1:t===j?1:o?-1:r?1:A?ee(A,e)-ee(A,t):0;if(o===r)return s(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===R?-1:l[i]===R?1:0},j):j},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==j&&N(e),n=n.replace(de,"='$1']"),x.matchesSelector&&O&&!B[n+" "]&&(!I||!I.test(n))&&(!H||!H.test(n)))try{var i=z.call(e,n);if(i||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return t(n,j,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==j&&N(e),P(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==j&&N(e);var n=S.attrHandle[t.toLowerCase()],i=n&&Y.call(S.attrHandle,t.toLowerCase())?n(e,t,!O):void 0;return void 0!==i?i:x.attributes||!O?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],i=0,o=0;if(L=!x.detectDuplicates,A=!x.sortStable&&e.slice(0),e.sort(X),L){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return A=null,e},C=t.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=C(t);return n},S=t.selectors={cacheLength:50,createPseudo:i,match:pe,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(we,xe),e[3]=(e[3]||e[4]||e[5]||"").replace(we,xe),"~="===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]||t.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]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&ue.test(n)&&(t=T(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(we,xe).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=V[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&V(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,n,i){return function(o){var r=t.attr(o,e);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(se," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,d,u,f,p,h,m=r!==s?"nextSibling":"previousSibling",v=t.parentNode,g=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(v){if(r){for(;m;){for(f=t;f=f[m];)if(a?f.nodeName.toLowerCase()===g:1===f.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?v.firstChild:v.lastChild],s&&y){for(b=(p=(c=(d=(u=(f=v)[q]||(f[q]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===M&&c[1])&&c[2],f=p&&v.childNodes[p];f=++p&&f&&f[m]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){d[e]=[M,p,b];break}}else if(y&&(b=p=(c=(d=(u=(f=t)[q]||(f[q]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]||[])[0]===M&&c[1]),!1===b)for(;(f=++p&&f&&f[m]||(b=p=0)||h.pop())&&((a?f.nodeName.toLowerCase()!==g:1!==f.nodeType)||!++b||(y&&((d=(u=f[q]||(f[q]={}))[f.uniqueID]||(u[f.uniqueID]={}))[e]=[M,b]),f!==t)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(e,n){var o,r=S.pseudos[e]||S.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return r[q]?r(n):r.length>1?(o=[e,e,"",n],S.setFilters.hasOwnProperty(e.toLowerCase())?i((function(e,t){for(var i,o=r(e,n),s=o.length;s--;)e[i=ee(e,o[s])]=!(t[i]=o[s])})):function(e){return r(e,0,o)}):r}},pseudos:{not:i((function(e){var t=[],n=[],o=_(e.replace(ae,"$1"));return o[q]?i((function(e,t,n,i){for(var r,s=o(e,null,i,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))})):function(e,i,r){return t[0]=e,o(t,null,r,n),t[0]=null,!n.pop()}})),has:i((function(e){return function(n){return t(e,n).length>0}})),contains:i((function(e){return e=e.replace(we,xe),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}})),lang:i((function(e){return fe.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(we,xe).toLowerCase(),function(t){var n;do{if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===D},focus:function(e){return e===j.activeElement&&(!j.hasFocus||j.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},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!S.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return he.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:c((function(){return[0]})),last:c((function(e,t){return[t-1]})),eq:c((function(e,t,n){return[n<0?n+t:n]})),even:c((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:c((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:c((function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e})),gt:c((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},S.pseudos.nth=S.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})S.pseudos[w]=a(w);for(w in{submit:!0,reset:!0})S.pseudos[w]=l(w);return u.prototype=S.filters=S.pseudos,S.setFilters=new u,T=t.tokenize=function(e,n){var i,o,r,s,a,l,c,d=W[e+" "];if(d)return n?0:d.slice(0);for(a=e,l=[],c=S.preFilter;a;){for(s in i&&!(o=le.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=ce.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(ae," ")}),a=a.slice(i.length)),S.filter)!(o=pe[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?t.error(e):W(e,l).slice(0)},_=t.compile=function(e,t){var n,i=[],o=[],r=B[e+" "];if(!r){for(t||(t=T(e)),n=t.length;n--;)(r=y(t[n]))[q]?i.push(r):o.push(r);(r=B(e,b(o,i))).selector=e}return r},$=t.select=function(e,t,n,i){var o,r,s,a,l,c="function"==typeof e&&e,u=!i&&T(e=c.selector||e);if(n=n||[],1===u.length){if((r=u[0]=u[0].slice(0)).length>2&&"ID"===(s=r[0]).type&&x.getById&&9===t.nodeType&&O&&S.relative[r[1].type]){if(!(t=(S.find.ID(s.matches[0].replace(we,xe),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(o=pe.needsContext.test(e)?0:r.length;o--&&(s=r[o],!S.relative[a=s.type]);)if((l=S.find[a])&&(i=l(s.matches[0].replace(we,xe),ye.test(r[0].type)&&d(t.parentNode)||t))){if(r.splice(o,1),!(e=i.length&&f(r)))return Q.apply(n,i),n;break}}return(c||_(e,u))(i,t,!O,n,!t||ye.test(e)&&d(t.parentNode)||t),n},x.sortStable=q.split("").sort(X).join("")===q,x.detectDuplicates=!!L,N(),x.sortDetached=o((function(e){return 1&e.compareDocumentPosition(j.createElement("div"))})),o((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||r("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),x.attributes&&o((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||r("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),o((function(e){return null==e.getAttribute("disabled")}))||r(te,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),t}(e);ae.find=fe,ae.expr=fe.selectors,ae.expr[":"]=ae.expr.pseudos,ae.uniqueSort=ae.unique=fe.uniqueSort,ae.text=fe.getText,ae.isXMLDoc=fe.isXML,ae.contains=fe.contains;var pe=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&ae(e).is(n))break;i.push(e)}return i},he=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},me=ae.expr.match.needsContext,ve=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,ge=/^.[^:#\[\.,]*$/;ae.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?ae.find.matchesSelector(i,e)?[i]:[]:ae.find.matches(e,ae.grep(t,(function(e){return 1===e.nodeType})))},ae.fn.extend({find:function(e){var t,n=[],i=this,o=i.length;if("string"!=typeof e)return this.pushStack(ae(e).filter((function(){for(t=0;t<o;t++)if(ae.contains(i[t],this))return!0})));for(t=0;t<o;t++)ae.find(e,i[t],n);return(n=this.pushStack(o>1?ae.unique(n):n)).selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&me.test(e)?ae(e):e||[],!1).length}});var ye,be=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(ae.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||ye,"string"==typeof e){if(!(i="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:be.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof ae?t[0]:t,ae.merge(this,ae.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:K,!0)),ve.test(i[1])&&ae.isPlainObject(t))for(i in t)ae.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}if((o=K.getElementById(i[2]))&&o.parentNode){if(o.id!==i[2])return ye.find(e);this.length=1,this[0]=o}return this.context=K,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):ae.isFunction(e)?void 0!==n.ready?n.ready(e):e(ae):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),ae.makeArray(e,this))}).prototype=ae.fn,ye=ae(K);var we=/^(?:parents|prev(?:Until|All))/,xe={children:!0,contents:!0,next:!0,prev:!0};ae.fn.extend({has:function(e){var t,n=ae(e,this),i=n.length;return this.filter((function(){for(t=0;t<i;t++)if(ae.contains(this,n[t]))return!0}))},closest:function(e,t){for(var n,i=0,o=this.length,r=[],s=me.test(e)||"string"!=typeof e?ae(e,t||this.context):0;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&ae.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?ae.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?ae.inArray(this[0],ae(e)):ae.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ae.uniqueSort(ae.merge(this.get(),ae(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ae.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return pe(e,"parentNode")},parentsUntil:function(e,t,n){return pe(e,"parentNode",n)},next:function(e){return o(e,"nextSibling")},prev:function(e){return o(e,"previousSibling")},nextAll:function(e){return pe(e,"nextSibling")},prevAll:function(e){return pe(e,"previousSibling")},nextUntil:function(e,t,n){return pe(e,"nextSibling",n)},prevUntil:function(e,t,n){return pe(e,"previousSibling",n)},siblings:function(e){return he((e.parentNode||{}).firstChild,e)},children:function(e){return he(e.firstChild)},contents:function(e){return ae.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:ae.merge([],e.childNodes)}},(function(e,t){ae.fn[e]=function(n,i){var o=ae.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=ae.filter(i,o)),this.length>1&&(xe[e]||(o=ae.uniqueSort(o)),we.test(e)&&(o=o.reverse())),this.pushStack(o)}}));var Se,Ce,ke=/\S+/g;for(Ce in ae.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return ae.each(e.match(ke)||[],(function(e,n){t[n]=!0})),t}(e):ae.extend({},e);var t,n,i,o,r=[],s=[],a=-1,l=function(){for(o=e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(a=r.length-1,s.push(n)),function t(n){ae.each(n,(function(n,i){ae.isFunction(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==ae.type(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return ae.each(arguments,(function(e,t){for(var n;(n=ae.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(e){return e?ae.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=!0,n||c.disable(),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},ae.extend({Deferred:function(e){var t=[["resolve","done",ae.Callbacks("once memory"),"resolved"],["reject","fail",ae.Callbacks("once memory"),"rejected"],["notify","progress",ae.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return ae.Deferred((function(n){ae.each(t,(function(t,r){var s=ae.isFunction(e[t])&&e[t];o[r[1]]((function(){var e=s&&s.apply(this,arguments);e&&ae.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this===i?n.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?ae.extend(e,i):i}},o={};return i.pipe=i.then,ae.each(t,(function(e,r){var s=r[2],a=r[3];i[r[1]]=s.add,a&&s.add((function(){n=a}),t[1^e][2].disable,t[2][2].lock),o[r[0]]=function(){return o[r[0]+"With"](this===o?i:this,arguments),this},o[r[0]+"With"]=s.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,i,o=0,r=Q.call(arguments),s=r.length,a=1!==s||e&&ae.isFunction(e.promise)?s:0,l=1===a?e:ae.Deferred(),c=function(e,n,i){return function(o){n[e]=this,i[e]=arguments.length>1?Q.call(arguments):o,i===t?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);o<s;o++)r[o]&&ae.isFunction(r[o].promise)?r[o].promise().progress(c(o,n,t)).done(c(o,i,r)).fail(l.reject):--a;return a||l.resolveWith(i,r),l.promise()}}),ae.fn.ready=function(e){return ae.ready.promise().done(e),this},ae.extend({isReady:!1,readyWait:1,holdReady:function(e){e?ae.readyWait++:ae.ready(!0)},ready:function(e){(!0===e?--ae.readyWait:ae.isReady)||(ae.isReady=!0,!0!==e&&--ae.readyWait>0||(Se.resolveWith(K,[ae]),ae.fn.triggerHandler&&(ae(K).triggerHandler("ready"),ae(K).off("ready"))))}}),ae.ready.promise=function(t){if(!Se)if(Se=ae.Deferred(),"complete"===K.readyState||"loading"!==K.readyState&&!K.documentElement.doScroll)e.setTimeout(ae.ready);else if(K.addEventListener)K.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{K.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&K.documentElement}catch(e){}n&&n.doScroll&&function t(){if(!ae.isReady){try{n.doScroll("left")}catch(n){return e.setTimeout(t,50)}r(),ae.ready()}}()}return Se.promise(t)},ae.ready.promise(),ae(re))break;re.ownFirst="0"===Ce,re.inlineBlockNeedsLayout=!1,ae((function(){var e,t,n,i;(n=K.getElementsByTagName("body")[0])&&n.style&&(t=K.createElement("div"),(i=K.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",re.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(i))})),function(){var e=K.createElement("div");re.deleteExpando=!0;try{delete e.test}catch(e){re.deleteExpando=!1}e=null}();var Te,_e=function(e){var t=ae.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||!0!==t&&e.getAttribute("classid")===t)},$e=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ee=/([A-Z])/g;ae.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?ae.cache[e[ae.expando]]:e[ae.expando])&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return d(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return d(e,t,!0)}}),ae.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=ae.data(r),1===r.nodeType&&!ae._data(r,"parsedAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&a(r,i=ae.camelCase(i.slice(5)),o[i]);ae._data(r,"parsedAttrs",!0)}return o}return"object"==typeof e?this.each((function(){ae.data(this,e)})):arguments.length>1?this.each((function(){ae.data(this,e,t)})):r?a(r,e,ae.data(r,e)):void 0},removeData:function(e){return this.each((function(){ae.removeData(this,e)}))}}),ae.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ae._data(e,t),n&&(!i||ae.isArray(n)?i=ae._data(e,t,ae.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=ae.queue(e,t),i=n.length,o=n.shift(),r=ae._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,(function(){ae.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae._data(e,n)||ae._data(e,n,{empty:ae.Callbacks("once memory").add((function(){ae._removeData(e,t+"queue"),ae._removeData(e,n)}))})}}),ae.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?ae.queue(this[0],e):void 0===t?this:this.each((function(){var n=ae.queue(this,e,t);ae._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&ae.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){ae.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=ae.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ae._data(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}}),re.shrinkWrapBlocks=function(){return null!=Te?Te:(Te=!1,(t=K.getElementsByTagName("body")[0])&&t.style?(e=K.createElement("div"),(n=K.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(K.createElement("div")).style.width="5px",Te=3!==e.offsetWidth),t.removeChild(n),Te):void 0);var e,t,n};var Ae=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Le=new RegExp("^(?:([+-])=|)("+Ae+")([a-z%]*)$","i"),Ne=["Top","Right","Bottom","Left"],je=function(e,t){return e=t||e,"none"===ae.css(e,"display")||!ae.contains(e.ownerDocument,e)},De=function(e,t,n,i,o,r,s){var a=0,l=e.length,c=null==n;if("object"===ae.type(n))for(a in o=!0,n)De(e,t,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,ae.isFunction(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(ae(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):r},Oe=/^(?:checkbox|radio)$/i,He=/<([\w:-]+)/,Ie=/^$|\/(?:java|ecma)script/i,ze=/^\s+/,Pe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var e=K.createElement("div"),t=K.createDocumentFragment(),n=K.createElement("input");e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",re.leadingWhitespace=3===e.firstChild.nodeType,re.tbody=!e.getElementsByTagName("tbody").length,re.htmlSerialize=!!e.getElementsByTagName("link").length,re.html5Clone="<:nav></:nav>"!==K.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),re.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",re.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),(n=K.createElement("input")).setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),re.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,re.noCloneEvent=!!e.addEventListener,e[ae.expando]=1,re.attributes=!e.getAttribute(ae.expando)}();var qe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:re.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};qe.optgroup=qe.option,qe.tbody=qe.tfoot=qe.colgroup=qe.caption=qe.thead,qe.th=qe.td;var Re=/<|&#?\w+;/,Me=/<tbody/i;!function(){var t,n,i=K.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(re[t]=n in e)||(i.setAttribute(n,"t"),re[t]=!1===i.attributes[n].expando);i=null}();var Fe=/^(?:input|select|textarea)$/i,Ve=/^key/,We=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Be=/^(?:focusinfocus|focusoutblur)$/,Xe=/^([^.]*)(?:\.(.+)|)/;ae.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,d,u,f,p,h,m,v=ae._data(e);if(v){for(n.handler&&(n=(l=n).handler,o=l.selector),n.guid||(n.guid=ae.guid++),(s=v.events)||(s=v.events={}),(d=v.handle)||(d=v.handle=function(e){return void 0===ae||e&&ae.event.triggered===e.type?void 0:ae.event.dispatch.apply(d.elem,arguments)},d.elem=e),a=(t=(t||"").match(ke)||[""]).length;a--;)p=m=(r=Xe.exec(t[a])||[])[1],h=(r[2]||"").split(".").sort(),p&&(c=ae.event.special[p]||{},p=(o?c.delegateType:c.bindType)||p,c=ae.event.special[p]||{},u=ae.extend({type:p,origType:m,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&ae.expr.match.needsContext.test(o),namespace:h.join(".")},l),(f=s[p])||((f=s[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,h,d)||(e.addEventListener?e.addEventListener(p,d,!1):e.attachEvent&&e.attachEvent("on"+p,d))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),ae.event.global[p]=!0);e=null}},remove:function(e,t,n,i,o){var r,s,a,l,c,d,u,f,p,h,m,v=ae.hasData(e)&&ae._data(e);if(v&&(d=v.events)){for(c=(t=(t||"").match(ke)||[""]).length;c--;)if(p=m=(a=Xe.exec(t[c])||[])[1],h=(a[2]||"").split(".").sort(),p){for(u=ae.event.special[p]||{},f=d[p=(i?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=r=f.length;r--;)s=f[r],!o&&m!==s.origType||n&&n.guid!==s.guid||a&&!a.test(s.namespace)||i&&i!==s.selector&&("**"!==i||!s.selector)||(f.splice(r,1),s.selector&&f.delegateCount--,u.remove&&u.remove.call(e,s));l&&!f.length&&(u.teardown&&!1!==u.teardown.call(e,h,v.handle)||ae.removeEvent(e,p,v.handle),delete d[p])}else for(p in d)ae.event.remove(e,p+t[c],n,i,!0);ae.isEmptyObject(d)&&(delete v.handle,ae._removeData(e,"events"))}},trigger:function(t,n,i,o){var r,s,a,l,c,d,u,f=[i||K],p=oe.call(t,"type")?t.type:t,h=oe.call(t,"namespace")?t.namespace.split("."):[];if(a=d=i=i||K,3!==i.nodeType&&8!==i.nodeType&&!Be.test(p+ae.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),s=p.indexOf(":")<0&&"on"+p,(t=t[ae.expando]?t:new ae.Event(p,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:ae.makeArray(n,[t]),c=ae.event.special[p]||{},o||!c.trigger||!1!==c.trigger.apply(i,n))){if(!o&&!c.noBubble&&!ae.isWindow(i)){for(l=c.delegateType||p,Be.test(l+p)||(a=a.parentNode);a;a=a.parentNode)f.push(a),d=a;d===(i.ownerDocument||K)&&f.push(d.defaultView||d.parentWindow||e)}for(u=0;(a=f[u++])&&!t.isPropagationStopped();)t.type=u>1?l:c.bindType||p,(r=(ae._data(a,"events")||{})[t.type]&&ae._data(a,"handle"))&&r.apply(a,n),(r=s&&a[s])&&r.apply&&_e(a)&&(t.result=r.apply(a,n),!1===t.result&&t.preventDefault());if(t.type=p,!o&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(f.pop(),n))&&_e(i)&&s&&i[p]&&!ae.isWindow(i)){(d=i[s])&&(i[s]=null),ae.event.triggered=p;try{i[p]()}catch(e){}ae.event.triggered=void 0,d&&(i[s]=d)}return t.result}},dispatch:function(e){e=ae.event.fix(e);var t,n,i,o,r,s=[],a=Q.call(arguments),l=(ae._data(this,"events")||{})[e.type]||[],c=ae.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(s=ae.event.handlers.call(this,e,l),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(r.namespace)||(e.handleObj=r,e.data=r.data,void 0!==(i=((ae.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,o,r,s=[],a=t.delegateCount,l=e.target;if(a&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(i=[],n=0;n<a;n++)void 0===i[o=(r=t[n]).selector+" "]&&(i[o]=r.needsContext?ae(o,this).index(l)>-1:ae.find(o,this,null,[l]).length),i[o]&&i.push(r);i.length&&s.push({elem:l,handlers:i})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},fix:function(e){if(e[ae.expando])return e;var t,n,i,o=e.type,r=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=We.test(o)?this.mouseHooks:Ve.test(o)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new ae.Event(r),t=i.length;t--;)e[n=i[t]]=r[n];return e.target||(e.target=r.srcElement||K),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,r):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,o,r=t.button,s=t.fromElement;return null==e.pageX&&null!=t.clientX&&(o=(i=e.target.ownerDocument||K).documentElement,n=i.body,e.pageX=t.clientX+(o&&o.scrollLeft||n&&n.scrollLeft||0)-(o&&o.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||n&&n.scrollTop||0)-(o&&o.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),e.which||void 0===r||(e.which=1&r?1:2&r?3:4&r?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(ae.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return ae.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var i=ae.extend(new ae.Event,n,{type:e,isSimulated:!0});ae.event.trigger(i,null,t),i.isDefaultPrevented()&&n.preventDefault()}},ae.removeEvent=K.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var i="on"+t;e.detachEvent&&(void 0===e[i]&&(e[i]=null),e.detachEvent(i,n))},ae.Event=function(e,t){if(!(this instanceof ae.Event))return new ae.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?g:y):this.type=e,t&&ae.extend(this,t),this.timeStamp=e&&e.timeStamp||ae.now(),this[ae.expando]=!0},ae.Event.prototype={constructor:ae.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=g,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=g,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=g,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},ae.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){ae.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||ae.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),re.submit||(ae.event.special.submit={setup:function(){if(ae.nodeName(this,"form"))return!1;ae.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,n=ae.nodeName(t,"input")||ae.nodeName(t,"button")?ae.prop(t,"form"):void 0;n&&!ae._data(n,"submit")&&(ae.event.add(n,"submit._submit",(function(e){e._submitBubble=!0})),ae._data(n,"submit",!0))}))},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&ae.event.simulate("submit",this.parentNode,e))},teardown:function(){if(ae.nodeName(this,"form"))return!1;ae.event.remove(this,"._submit")}}),re.change||(ae.event.special.change={setup:function(){if(Fe.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(ae.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)})),ae.event.add(this,"click._change",(function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),ae.event.simulate("change",this,e)}))),!1;ae.event.add(this,"beforeactivate._change",(function(e){var t=e.target;Fe.test(t.nodeName)&&!ae._data(t,"change")&&(ae.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||ae.event.simulate("change",this.parentNode,e)})),ae._data(t,"change",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return ae.event.remove(this,"._change"),!Fe.test(this.nodeName)}}),re.focusin||ae.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){ae.event.simulate(t,e.target,ae.event.fix(e))};ae.event.special[t]={setup:function(){var i=this.ownerDocument||this,o=ae._data(i,t);o||i.addEventListener(e,n,!0),ae._data(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=ae._data(i,t)-1;o?ae._data(i,t,o):(i.removeEventListener(e,n,!0),ae._removeData(i,t))}}})),ae.fn.extend({on:function(e,t,n,i){return w(this,e,t,n,i)},one:function(e,t,n,i){return w(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,ae(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=y),this.each((function(){ae.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){ae.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return ae.event.trigger(e,t,n,!0)}});var Ue=/ jQuery\d+="(?:null|\d+)"/g,Ye=new RegExp("<(?:"+Pe+")[\\s/>]","i"),Ge=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Je=/<script|<style|<link/i,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Qe=/^true\/(.*)/,Ze=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,et=f(K).appendChild(K.createElement("div"));ae.extend({htmlPrefilter:function(e){return e.replace(Ge,"<$1></$2>")},clone:function(e,t,n){var i,o,r,s,a,l=ae.contains(e.ownerDocument,e);if(re.html5Clone||ae.isXMLDoc(e)||!Ye.test("<"+e.nodeName+">")?r=e.cloneNode(!0):(et.innerHTML=e.outerHTML,et.removeChild(r=et.firstChild)),!(re.noCloneEvent&&re.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ae.isXMLDoc(e)))for(i=p(r),a=p(e),s=0;null!=(o=a[s]);++s)i[s]&&T(o,i[s]);if(t)if(n)for(a=a||p(e),i=i||p(r),s=0;null!=(o=a[s]);s++)k(o,i[s]);else k(e,r);return(i=p(r,"script")).length>0&&h(i,!l&&p(e,"script")),i=a=o=null,r},cleanData:function(e,t){for(var n,i,o,r,s=0,a=ae.expando,l=ae.cache,c=re.attributes,d=ae.event.special;null!=(n=e[s]);s++)if((t||_e(n))&&(r=(o=n[a])&&l[o])){if(r.events)for(i in r.events)d[i]?ae.event.remove(n,i):ae.removeEvent(n,i,r.handle);l[o]&&(delete l[o],c||void 0===n.removeAttribute?n[a]=void 0:n.removeAttribute(a),J.push(o))}}}),ae.fn.extend({domManip:_,detach:function(e){return $(this,e,!0)},remove:function(e){return $(this,e)},text:function(e){return De(this,(function(e){return void 0===e?ae.text(this):this.empty().append((this[0]&&this[0].ownerDocument||K).createTextNode(e))}),null,e,arguments.length)},append:function(){return _(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,e).appendChild(e)}))},prepend:function(){return _(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return _(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return _(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&ae.cleanData(p(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&ae.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return ae.clone(this,e,t)}))},html:function(e){return De(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ue,""):void 0;if("string"==typeof e&&!Je.test(e)&&(re.htmlSerialize||!Ye.test(e))&&(re.leadingWhitespace||!ze.test(e))&&!qe[(He.exec(e)||["",""])[1].toLowerCase()]){e=ae.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(ae.cleanData(p(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return _(this,arguments,(function(t){var n=this.parentNode;ae.inArray(this,e)<0&&(ae.cleanData(p(this)),n&&n.replaceChild(t,this))}),e)}}),ae.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){ae.fn[e]=function(e){for(var n,i=0,o=[],r=ae(e),s=r.length-1;i<=s;i++)n=i===s?this:this.clone(!0),ae(r[i])[t](n),ee.apply(o,n.get());return this.pushStack(o)}}));var tt,nt={HTML:"block",BODY:"block"},it=/^margin/,ot=new RegExp("^("+Ae+")(?!px)[a-z%]+$","i"),rt=function(e,t,n,i){var o,r,s={};for(r in t)s[r]=e.style[r],e.style[r]=t[r];for(r in o=n.apply(e,i||[]),t)e.style[r]=s[r];return o},st=K.documentElement;!function(){function t(){var t,d,u=K.documentElement;u.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=o=a=!1,i=s=!0,e.getComputedStyle&&(d=e.getComputedStyle(c),n="1%"!==(d||{}).top,a="2px"===(d||{}).marginLeft,o="4px"===(d||{width:"4px"}).width,c.style.marginRight="50%",i="4px"===(d||{marginRight:"4px"}).marginRight,(t=c.appendChild(K.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",c.style.width="1px",s=!parseFloat((e.getComputedStyle(t)||{}).marginRight),c.removeChild(t)),c.style.display="none",(r=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(t=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(r=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",r=0===t[0].offsetHeight)),u.removeChild(l)}var n,i,o,r,s,a,l=K.createElement("div"),c=K.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",re.opacity="0.5"===c.style.opacity,re.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",re.clearCloneStyle="content-box"===c.style.backgroundClip,(l=K.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),re.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,ae.extend(re,{reliableHiddenOffsets:function(){return null==n&&t(),r},boxSizingReliable:function(){return null==n&&t(),o},pixelMarginRight:function(){return null==n&&t(),i},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),s},reliableMarginLeft:function(){return null==n&&t(),a}}))}();var at,lt,ct=/^(top|right|bottom|left)$/;e.getComputedStyle?(at=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},lt=function(e,t,n){var i,o,r,s,a=e.style;return""!==(s=(n=n||at(e))?n.getPropertyValue(t)||n[t]:void 0)&&void 0!==s||ae.contains(e.ownerDocument,e)||(s=ae.style(e,t)),n&&!re.pixelMarginRight()&&ot.test(s)&&it.test(t)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r),void 0===s?s:s+""}):st.currentStyle&&(at=function(e){return e.currentStyle},lt=function(e,t,n){var i,o,r,s,a=e.style;return null==(s=(n=n||at(e))?n[t]:void 0)&&a&&a[t]&&(s=a[t]),ot.test(s)&&!ct.test(t)&&(i=a.left,(r=(o=e.runtimeStyle)&&o.left)&&(o.left=e.currentStyle.left),a.left="fontSize"===t?"1em":s,s=a.pixelLeft+"px",a.left=i,r&&(o.left=r)),void 0===s?s:s+""||"auto"});var dt=/alpha\([^)]*\)/i,ut=/opacity\s*=\s*([^)]*)/i,ft=/^(none|table(?!-c[ea]).+)/,pt=new RegExp("^("+Ae+")(.*)$","i"),ht={position:"absolute",visibility:"hidden",display:"block"},mt={letterSpacing:"0",fontWeight:"400"},vt=["Webkit","O","Moz","ms"],gt=K.createElement("div").style;ae.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=lt(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:re.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=ae.camelCase(t),l=e.style;if(t=ae.cssProps[a]||(ae.cssProps[a]=N(a)||a),s=ae.cssHooks[t]||ae.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:l[t];if("string"==(r=typeof n)&&(o=Le.exec(n))&&o[1]&&(n=u(e,t,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(ae.cssNumber[a]?"":"px")),re.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),!s||!("set"in s)||void 0!==(n=s.set(e,n,i))))try{l[t]=n}catch(e){}}},css:function(e,t,n,i){var o,r,s,a=ae.camelCase(t);return t=ae.cssProps[a]||(ae.cssProps[a]=N(a)||a),(s=ae.cssHooks[t]||ae.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=lt(e,t,i)),"normal"===r&&t in mt&&(r=mt[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),ae.each(["height","width"],(function(e,t){ae.cssHooks[t]={get:function(e,n,i){if(n)return ft.test(ae.css(e,"display"))&&0===e.offsetWidth?rt(e,ht,(function(){return H(e,t,i)})):H(e,t,i)},set:function(e,n,i){var o=i&&at(e);return D(0,n,i?O(e,t,i,re.boxSizing&&"border-box"===ae.css(e,"boxSizing",!1,o),o):0)}}})),re.opacity||(ae.cssHooks.opacity={get:function(e,t){return ut.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,o=ae.isNumeric(t)?"alpha(opacity="+100*t+")":"",r=i&&i.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===ae.trim(r.replace(dt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||i&&!i.filter)||(n.filter=dt.test(r)?r.replace(dt,o):r+" "+o)}}),ae.cssHooks.marginRight=L(re.reliableMarginRight,(function(e,t){if(t)return rt(e,{display:"inline-block"},lt,[e,"marginRight"])})),ae.cssHooks.marginLeft=L(re.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(lt(e,"marginLeft"))||(ae.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-rt(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),ae.each({margin:"",padding:"",border:"Width"},(function(e,t){ae.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+Ne[i]+t]=r[i]||r[i-2]||r[0];return o}},it.test(e)||(ae.cssHooks[e+t].set=D)})),ae.fn.extend({css:function(e,t){return De(this,(function(e,t,n){var i,o,r={},s=0;if(ae.isArray(t)){for(i=at(e),o=t.length;s<o;s++)r[t[s]]=ae.css(e,t[s],!1,i);return r}return void 0!==n?ae.style(e,t,n):ae.css(e,t)}),e,t,arguments.length>1)},show:function(){return j(this,!0)},hide:function(){return j(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){je(this)?ae(this).show():ae(this).hide()}))}}),ae.Tween=I,I.prototype={constructor:I,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||ae.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(ae.cssNumber[n]?"":"px")},cur:function(){var e=I.propHooks[this.prop];return e&&e.get?e.get(this):I.propHooks._default.get(this)},run:function(e){var t,n=I.propHooks[this.prop];return this.options.duration?this.pos=t=ae.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):I.propHooks._default.set(this),this}},I.prototype.init.prototype=I.prototype,I.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=ae.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ae.fx.step[e.prop]?ae.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[ae.cssProps[e.prop]]&&!ae.cssHooks[e.prop]?e.elem[e.prop]=e.now:ae.style(e.elem,e.prop,e.now+e.unit)}}},I.propHooks.scrollTop=I.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ae.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ae.fx=I.prototype.init,ae.fx.step={};var yt,bt,wt=/^(?:toggle|show|hide)$/,xt=/queueHooks$/;ae.Animation=ae.extend(R,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return u(n.elem,e,Le.exec(t),n),n}]},tweener:function(e,t){ae.isFunction(e)?(t=e,e=["*"]):e=e.match(ke);for(var n,i=0,o=e.length;i<o;i++)n=e[i],R.tweeners[n]=R.tweeners[n]||[],R.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,c,d=this,u={},f=e.style,p=e.nodeType&&je(e),h=ae._data(e,"fxshow");for(i in n.queue||(null==(a=ae._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,l=a.empty.fire,a.empty.fire=function(){a.unqueued||l()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,ae.queue(e,"fx").length||a.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],"inline"===("none"===(c=ae.css(e,"display"))?ae._data(e,"olddisplay")||A(e.nodeName):c)&&"none"===ae.css(e,"float")&&(re.inlineBlockNeedsLayout&&"inline"!==A(e.nodeName)?f.zoom=1:f.display="inline-block")),n.overflow&&(f.overflow="hidden",re.shrinkWrapBlocks()||d.always((function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]}))),t)if(o=t[i],wt.exec(o)){if(delete t[i],r=r||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!h||void 0===h[i])continue;p=!0}u[i]=h&&h[i]||ae.style(e,i)}else c=void 0;if(ae.isEmptyObject(u))"inline"===("none"===c?A(e.nodeName):c)&&(f.display=c);else for(i in h?"hidden"in h&&(p=h.hidden):h=ae._data(e,"fxshow",{}),r&&(h.hidden=!p),p?ae(e).show():d.done((function(){ae(e).hide()})),d.done((function(){var t;for(t in ae._removeData(e,"fxshow"),u)ae.style(e,t,u[t])})),u)s=q(p?h[i]:0,i,d),i in h||(h[i]=s.start,p&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}],prefilter:function(e,t){t?R.prefilters.unshift(e):R.prefilters.push(e)}}),ae.speed=function(e,t,n){var i=e&&"object"==typeof e?ae.extend({},e):{complete:n||!n&&t||ae.isFunction(e)&&e,duration:e,easing:n&&t||t&&!ae.isFunction(t)&&t};return i.duration=ae.fx.off?0:"number"==typeof i.duration?i.duration:i.duration in ae.fx.speeds?ae.fx.speeds[i.duration]:ae.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){ae.isFunction(i.old)&&i.old.call(this),i.queue&&ae.dequeue(this,i.queue)},i},ae.fn.extend({fadeTo:function(e,t,n,i){return this.filter(je).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=ae.isEmptyObject(e),r=ae.speed(t,n,i),s=function(){var t=R(this,ae.extend({},e),r);(o||ae._data(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",r=ae.timers,s=ae._data(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&xt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||ae.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae._data(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=ae.timers,s=i?i.length:0;for(n.finish=!0,ae.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),ae.each(["toggle","show","hide"],(function(e,t){var n=ae.fn[t];ae.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(P(t,!0),e,i,o)}})),ae.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){ae.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),ae.timers=[],ae.fx.tick=function(){var e,t=ae.timers,n=0;for(yt=ae.now();n<t.length;n++)(e=t[n])()||t[n]!==e||t.splice(n--,1);t.length||ae.fx.stop(),yt=void 0},ae.fx.timer=function(e){ae.timers.push(e),e()?ae.fx.start():ae.timers.pop()},ae.fx.interval=13,ae.fx.start=function(){bt||(bt=e.setInterval(ae.fx.tick,ae.fx.interval))},ae.fx.stop=function(){e.clearInterval(bt),bt=null},ae.fx.speeds={slow:600,fast:200,_default:400},ae.fn.delay=function(t,n){return t=ae.fx&&ae.fx.speeds[t]||t,n=n||"fx",this.queue(n,(function(n,i){var o=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(o)}}))},function(){var e,t=K.createElement("input"),n=K.createElement("div"),i=K.createElement("select"),o=i.appendChild(K.createElement("option"));(n=K.createElement("div")).setAttribute("className","t"),n.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),(e=n.getElementsByTagName("a")[0]).style.cssText="top:1px",re.getSetAttribute="t"!==n.className,re.style=/top/.test(e.getAttribute("style")),re.hrefNormalized="/a"===e.getAttribute("href"),re.checkOn=!!t.value,re.optSelected=o.selected,re.enctype=!!K.createElement("form").enctype,i.disabled=!0,re.optDisabled=!o.disabled,(t=K.createElement("input")).setAttribute("value",""),re.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),re.radioValue="t"===t.value}();var St=/\r/g,Ct=/[\x20\t\r\n\f]+/g;ae.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=ae.isFunction(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,ae(this).val()):e)?o="":"number"==typeof o?o+="":ae.isArray(o)&&(o=ae.map(o,(function(e){return null==e?"":e+""}))),(t=ae.valHooks[this.type]||ae.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=ae.valHooks[o.type]||ae.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),ae.extend({valHooks:{option:{get:function(e){var t=ae.find.attr(e,"value");return null!=t?t:ae.trim(ae.text(e)).replace(Ct," ")}},select:{get:function(e){for(var t,n,i=e.options,o=e.selectedIndex,r="select-one"===e.type||o<0,s=r?null:[],a=r?o+1:i.length,l=o<0?a:r?o:0;l<a;l++)if(((n=i[l]).selected||l===o)&&(re.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!ae.nodeName(n.parentNode,"optgroup"))){if(t=ae(n).val(),r)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,r=ae.makeArray(t),s=o.length;s--;)if(i=o[s],ae.inArray(ae.valHooks.option.get(i),r)>-1)try{i.selected=n=!0}catch(e){i.scrollHeight}else i.selected=!1;return n||(e.selectedIndex=-1),o}}}}),ae.each(["radio","checkbox"],(function(){ae.valHooks[this]={set:function(e,t){if(ae.isArray(t))return e.checked=ae.inArray(ae(e).val(),t)>-1}},re.checkOn||(ae.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var kt,Tt,_t=ae.expr.attrHandle,$t=/^(?:checked|selected)$/i,Et=re.getSetAttribute,At=re.input;ae.fn.extend({attr:function(e,t){return De(this,ae.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){ae.removeAttr(this,e)}))}}),ae.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?ae.prop(e,t,n):(1===r&&ae.isXMLDoc(e)||(t=t.toLowerCase(),o=ae.attrHooks[t]||(ae.expr.match.bool.test(t)?Tt:kt)),void 0!==n?null===n?void ae.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=ae.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!re.radioValue&&"radio"===t&&ae.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,o=0,r=t&&t.match(ke);if(r&&1===e.nodeType)for(;n=r[o++];)i=ae.propFix[n]||n,ae.expr.match.bool.test(n)?At&&Et||!$t.test(n)?e[i]=!1:e[ae.camelCase("default-"+n)]=e[i]=!1:ae.attr(e,n,""),e.removeAttribute(Et?n:i)}}),Tt={set:function(e,t,n){return!1===t?ae.removeAttr(e,n):At&&Et||!$t.test(n)?e.setAttribute(!Et&&ae.propFix[n]||n,n):e[ae.camelCase("default-"+n)]=e[n]=!0,n}},ae.each(ae.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=_t[t]||ae.find.attr;At&&Et||!$t.test(t)?_t[t]=function(e,t,i){var o,r;return i||(r=_t[t],_t[t]=o,o=null!=n(e,t,i)?t.toLowerCase():null,_t[t]=r),o}:_t[t]=function(e,t,n){if(!n)return e[ae.camelCase("default-"+t)]?t.toLowerCase():null}})),At&&Et||(ae.attrHooks.value={set:function(e,t,n){if(!ae.nodeName(e,"input"))return kt&&kt.set(e,t,n);e.defaultValue=t}}),Et||(kt={set:function(e,t,n){var i=e.getAttributeNode(n);if(i||e.setAttributeNode(i=e.ownerDocument.createAttribute(n)),i.value=t+="","value"===n||t===e.getAttribute(n))return t}},_t.id=_t.name=_t.coords=function(e,t,n){var i;if(!n)return(i=e.getAttributeNode(t))&&""!==i.value?i.value:null},ae.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:kt.set},ae.attrHooks.contenteditable={set:function(e,t,n){kt.set(e,""!==t&&t,n)}},ae.each(["width","height"],(function(e,t){ae.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}}))),re.style||(ae.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Lt=/^(?:input|select|textarea|button|object)$/i,Nt=/^(?:a|area)$/i;ae.fn.extend({prop:function(e,t){return De(this,ae.prop,e,t,arguments.length>1)},removeProp:function(e){return e=ae.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),ae.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&ae.isXMLDoc(e)||(t=ae.propFix[t]||t,o=ae.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=ae.find.attr(e,"tabindex");return t?parseInt(t,10):Lt.test(e.nodeName)||Nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),re.hrefNormalized||ae.each(["href","src"],(function(e,t){ae.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),re.optSelected||(ae.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ae.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){ae.propFix[this.toLowerCase()]=this})),re.enctype||(ae.propFix.enctype="encoding");var jt=/[\t\r\n\f]/g;ae.fn.extend({addClass:function(e){var t,n,i,o,r,s,a,l=0;if(ae.isFunction(e))return this.each((function(t){ae(this).addClass(e.call(this,t,M(this)))}));if("string"==typeof e&&e)for(t=e.match(ke)||[];n=this[l++];)if(o=M(n),i=1===n.nodeType&&(" "+o+" ").replace(jt," ")){for(s=0;r=t[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");o!==(a=ae.trim(i))&&ae.attr(n,"class",a)}return this},removeClass:function(e){var t,n,i,o,r,s,a,l=0;if(ae.isFunction(e))return this.each((function(t){ae(this).removeClass(e.call(this,t,M(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(ke)||[];n=this[l++];)if(o=M(n),i=1===n.nodeType&&(" "+o+" ").replace(jt," ")){for(s=0;r=t[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o!==(a=ae.trim(i))&&ae.attr(n,"class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):ae.isFunction(e)?this.each((function(n){ae(this).toggleClass(e.call(this,n,M(this),t),t)})):this.each((function(){var t,i,o,r;if("string"===n)for(i=0,o=ae(this),r=e.match(ke)||[];t=r[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=M(this))&&ae._data(this,"__className__",t),ae.attr(this,"class",t||!1===e?"":ae._data(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+M(n)+" ").replace(jt," ").indexOf(t)>-1)return!0;return!1}}),ae.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){ae.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),ae.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Dt=e.location,Ot=ae.now(),Ht=/\?/,It=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;ae.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,i=null,o=ae.trim(t+"");return o&&!ae.trim(o.replace(It,(function(e,t,o,r){return n&&t&&(i=0),0===i?e:(n=o||t,i+=!r-!o,"")})))?Function("return "+o)():ae.error("Invalid JSON: "+t)},ae.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{e.DOMParser?n=(new e.DOMParser).parseFromString(t,"text/xml"):((n=new e.ActiveXObject("Microsoft.XMLDOM")).async="false",n.loadXML(t))}catch(e){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||ae.error("Invalid XML: "+t),n};var zt=/#.*$/,Pt=/([?&])_=[^&]*/,qt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Rt=/^(?:GET|HEAD)$/,Mt=/^\/\//,Ft=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Vt={},Wt={},Bt="*/".concat("*"),Xt=Dt.href,Ut=Ft.exec(Xt.toLowerCase())||[];ae.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Xt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ut[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,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":ae.parseJSON,"text xml":ae.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?W(W(e,ae.ajaxSettings),t):W(ae.ajaxSettings,e)},ajaxPrefilter:F(Vt),ajaxTransport:F(Wt),ajax:function(t,n){function i(t,n,i,o){var r,u,y,b,x,C=n;2!==w&&(w=2,l&&e.clearTimeout(l),d=void 0,a=o||"",S.readyState=t>0?4:0,r=t>=200&&t<300||304===t,i&&(b=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(s in a)if(a[s]&&a[s].test(o)){l.unshift(s);break}if(l[0]in n)r=l[0];else{for(s in n){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}i||(i=s)}r=r||i}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,S,i)),b=function(e,t,n,i){var o,r,s,a,l,c={},d=e.dataTypes.slice();if(d[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=d.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=d.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],d.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,b,S,r),r?(f.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(ae.lastModified[s]=x),(x=S.getResponseHeader("etag"))&&(ae.etag[s]=x)),204===t||"HEAD"===f.type?C="nocontent":304===t?C="notmodified":(C=b.state,u=b.data,r=!(y=b.error))):(y=C,!t&&C||(C="error",t<0&&(t=0))),S.status=t,S.statusText=(n||C)+"",r?m.resolveWith(p,[u,C,S]):m.rejectWith(p,[S,C,y]),S.statusCode(g),g=void 0,c&&h.trigger(r?"ajaxSuccess":"ajaxError",[S,f,r?u:y]),v.fireWith(p,[S,C]),c&&(h.trigger("ajaxComplete",[S,f]),--ae.active||ae.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var o,r,s,a,l,c,d,u,f=ae.ajaxSetup({},n),p=f.context||f,h=f.context&&(p.nodeType||p.jquery)?ae(p):ae.event,m=ae.Deferred(),v=ae.Callbacks("once memory"),g=f.statusCode||{},y={},b={},w=0,x="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(2===w){if(!u)for(u={};t=qt.exec(a);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===w?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return w||(e=b[n]=b[n]||e,y[e]=t),this},overrideMimeType:function(e){return w||(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(w<2)for(t in e)g[t]=[g[t],e[t]];else S.always(e[S.status]);return this},abort:function(e){var t=e||x;return d&&d.abort(t),i(0,t),this}};if(m.promise(S).complete=v.add,S.success=S.done,S.error=S.fail,f.url=((t||f.url||Xt)+"").replace(zt,"").replace(Mt,Ut[1]+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=ae.trim(f.dataType||"*").toLowerCase().match(ke)||[""],null==f.crossDomain&&(o=Ft.exec(f.url.toLowerCase()),f.crossDomain=!(!o||o[1]===Ut[1]&&o[2]===Ut[2]&&(o[3]||("http:"===o[1]?"80":"443"))===(Ut[3]||("http:"===Ut[1]?"80":"443")))),f.data&&f.processData&&"string"!=typeof f.data&&(f.data=ae.param(f.data,f.traditional)),V(Vt,f,n,S),2===w)return S;for(r in(c=ae.event&&f.global)&&0==ae.active++&&ae.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Rt.test(f.type),s=f.url,f.hasContent||(f.data&&(s=f.url+=(Ht.test(s)?"&":"?")+f.data,delete f.data),!1===f.cache&&(f.url=Pt.test(s)?s.replace(Pt,"$1_="+Ot++):s+(Ht.test(s)?"&":"?")+"_="+Ot++)),f.ifModified&&(ae.lastModified[s]&&S.setRequestHeader("If-Modified-Since",ae.lastModified[s]),ae.etag[s]&&S.setRequestHeader("If-None-Match",ae.etag[s])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Bt+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(r,f.headers[r]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||2===w))return S.abort();for(r in x="abort",{success:1,error:1,complete:1})S[r](f[r]);if(d=V(Wt,f,n,S)){if(S.readyState=1,c&&h.trigger("ajaxSend",[S,f]),2===w)return S;f.async&&f.timeout>0&&(l=e.setTimeout((function(){S.abort("timeout")}),f.timeout));try{w=1,d.send(y,i)}catch(e){if(!(w<2))throw e;i(-1,e)}}else i(-1,"No Transport");return S},getJSON:function(e,t,n){return ae.get(e,t,n,"json")},getScript:function(e,t){return ae.get(e,void 0,t,"script")}}),ae.each(["get","post"],(function(e,t){ae[t]=function(e,n,i,o){return ae.isFunction(n)&&(o=o||i,i=n,n=void 0),ae.ajax(ae.extend({url:e,type:t,dataType:o,data:n,success:i},ae.isPlainObject(e)&&e))}})),ae._evalUrl=function(e){return ae.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},ae.fn.extend({wrapAll:function(e){if(ae.isFunction(e))return this.each((function(t){ae(this).wrapAll(e.call(this,t))}));if(this[0]){var t=ae(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return ae.isFunction(e)?this.each((function(t){ae(this).wrapInner(e.call(this,t))})):this.each((function(){var t=ae(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=ae.isFunction(e);return this.each((function(n){ae(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){ae.nodeName(this,"body")||ae(this).replaceWith(this.childNodes)})).end()}}),ae.expr.filters.hidden=function(e){return re.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:function(e){if(!ae.contains(e.ownerDocument||K,e))return!0;for(;e&&1===e.nodeType;){if("none"===B(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}(e)},ae.expr.filters.visible=function(e){return!ae.expr.filters.hidden(e)};var Yt=/%20/g,Gt=/\[\]$/,Jt=/\r?\n/g,Kt=/^(?:submit|button|image|reset|file)$/i,Qt=/^(?:input|select|textarea|keygen)/i;ae.param=function(e,t){var n,i=[],o=function(e,t){t=ae.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=ae.ajaxSettings&&ae.ajaxSettings.traditional),ae.isArray(e)||e.jquery&&!ae.isPlainObject(e))ae.each(e,(function(){o(this.name,this.value)}));else for(n in e)X(n,e[n],t,o);return i.join("&").replace(Yt,"+")},ae.fn.extend({serialize:function(){return ae.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=ae.prop(this,"elements");return e?ae.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!ae(this).is(":disabled")&&Qt.test(this.nodeName)&&!Kt.test(e)&&(this.checked||!Oe.test(e))})).map((function(e,t){var n=ae(this).val();return null==n?null:ae.isArray(n)?ae.map(n,(function(e){return{name:t.name,value:e.replace(Jt,"\r\n")}})):{name:t.name,value:n.replace(Jt,"\r\n")}})).get()}}),ae.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?Y():K.documentMode>8?U():/^(get|post|head|put|delete|options)$/i.test(this.type)&&U()||Y()}:U;var Zt=0,en={},tn=ae.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in en)en[e](void 0,!0)})),re.cors=!!tn&&"withCredentials"in tn,(tn=re.ajax=!!tn)&&ae.ajaxTransport((function(t){var n;if(!t.crossDomain||re.cors)return{send:function(i,o){var r,s=t.xhr(),a=++Zt;if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)s[r]=t.xhrFields[r];for(r in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)void 0!==i[r]&&s.setRequestHeader(r,i[r]+"");s.send(t.hasContent&&t.data||null),n=function(e,i){var r,l,c;if(n&&(i||4===s.readyState))if(delete en[a],n=void 0,s.onreadystatechange=ae.noop,i)4!==s.readyState&&s.abort();else{c={},r=s.status,"string"==typeof s.responseText&&(c.text=s.responseText);try{l=s.statusText}catch(e){l=""}r||!t.isLocal||t.crossDomain?1223===r&&(r=204):r=c.text?200:404}c&&o(r,l,c,s.getAllResponseHeaders())},t.async?4===s.readyState?e.setTimeout(n):s.onreadystatechange=en[a]=n:n()},abort:function(){n&&n(void 0,!0)}}})),ae.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 ae.globalEval(e),e}}}),ae.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),ae.ajaxTransport("script",(function(e){if(e.crossDomain){var t,n=K.head||ae("head")[0]||K.documentElement;return{send:function(i,o){(t=K.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||o(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var nn=[],on=/(=)\?(?=&|$)|\?\?/;ae.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=nn.pop()||ae.expando+"_"+Ot++;return this[e]=!0,e}}),ae.ajaxPrefilter("json jsonp",(function(t,n,i){var o,r,s,a=!1!==t.jsonp&&(on.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&on.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return o=t.jsonpCallback=ae.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(on,"$1"+o):!1!==t.jsonp&&(t.url+=(Ht.test(t.url)?"&":"?")+t.jsonp+"="+o),t.converters["script json"]=function(){return s||ae.error(o+" was not called"),s[0]},t.dataTypes[0]="json",r=e[o],e[o]=function(){s=arguments},i.always((function(){void 0===r?ae(e).removeProp(o):e[o]=r,t[o]&&(t.jsonpCallback=n.jsonpCallback,nn.push(o)),s&&ae.isFunction(r)&&r(s[0]),s=r=void 0})),"script"})),ae.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||K;var i=ve.exec(e),o=!n&&[];return i?[t.createElement(i[1])]:(i=v([e],t,o),o&&o.length&&ae(o).remove(),ae.merge([],i.childNodes))};var rn=ae.fn.load;ae.fn.load=function(e,t,n){if("string"!=typeof e&&rn)return rn.apply(this,arguments);var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=ae.trim(e.slice(a,e.length)),e=e.slice(0,a)),ae.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&ae.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){r=arguments,s.html(i?ae("<div>").append(ae.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},ae.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){ae.fn[t]=function(e){return this.on(t,e)}})),ae.expr.filters.animated=function(e){return ae.grep(ae.timers,(function(t){return e===t.elem})).length},ae.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=ae.css(e,"position"),d=ae(e),u={};"static"===c&&(e.style.position="relative"),a=d.offset(),r=ae.css(e,"top"),l=ae.css(e,"left"),("absolute"===c||"fixed"===c)&&ae.inArray("auto",[r,l])>-1?(s=(i=d.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),ae.isFunction(t)&&(t=t.call(e,n,ae.extend({},a))),null!=t.top&&(u.top=t.top-a.top+s),null!=t.left&&(u.left=t.left-a.left+o),"using"in t?t.using.call(e,u):d.css(u)}},ae.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){ae.offset.setOffset(this,e,t)}));var t,n,i={top:0,left:0},o=this[0],r=o&&o.ownerDocument;return r?(t=r.documentElement,ae.contains(t,o)?(void 0!==o.getBoundingClientRect&&(i=o.getBoundingClientRect()),n=G(r),{top:i.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:i.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):i):void 0},position:function(){if(this[0]){var e,t,n={top:0,left:0},i=this[0];return"fixed"===ae.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),ae.nodeName(e[0],"html")||(n=e.offset()),n.top+=ae.css(e[0],"borderTopWidth",!0),n.left+=ae.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-ae.css(i,"marginTop",!0),left:t.left-n.left-ae.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&!ae.nodeName(e,"html")&&"static"===ae.css(e,"position");)e=e.offsetParent;return e||st}))}}),ae.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n=/Y/.test(t);ae.fn[e]=function(i){return De(this,(function(e,i,o){var r=G(e);if(void 0===o)return r?t in r?r[t]:r.document.documentElement[i]:e[i];r?r.scrollTo(n?ae(r).scrollLeft():o,n?o:ae(r).scrollTop()):e[i]=o}),e,i,arguments.length,null)}})),ae.each(["top","left"],(function(e,t){ae.cssHooks[t]=L(re.pixelPosition,(function(e,n){if(n)return n=lt(e,t),ot.test(n)?ae(e).position()[t]+"px":n}))})),ae.each({Height:"height",Width:"width"},(function(e,t){ae.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){ae.fn[i]=function(i,o){var r=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return De(this,(function(t,n,i){var o;return ae.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?ae.css(t,n,s):ae.style(t,n,i,s)}),t,r?i:void 0,r,null)}}))})),ae.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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),ae.fn.size=function(){return this.length},ae.fn.andSelf=ae.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return ae}));var sn=e.jQuery,an=e.$;return ae.noConflict=function(t){return e.$===ae&&(e.$=an),t&&e.jQuery===ae&&(e.jQuery=sn),ae},t||(e.jQuery=e.$=ae),ae})),function(e,t){"use strict";var n;e.rails!==t&&e.error("jquery-ujs has already been loaded!");var i=e(document);e.rails=n={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=n.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+n.csrfParam()+'"]').val(n.csrfToken())},fire:function(t,n,i){var o=e.Event(n);return t.trigger(o,i),!1!==o.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&!1!==e.data("remote")},handleRemote:function(i){var o,r,s,a,l,c;if(n.fire(i,"ajax:before")){if(a=i.data("with-credentials")||null,l=i.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,i.is("form")){o=i.data("ujs:submit-button-formmethod")||i.attr("method"),r=i.data("ujs:submit-button-formaction")||i.attr("action"),s=e(i[0]).serializeArray();var d=i.data("ujs:submit-button");d&&(s.push(d),i.data("ujs:submit-button",null)),i.data("ujs:submit-button-formmethod",null),i.data("ujs:submit-button-formaction",null)}else i.is(n.inputChangeSelector)?(o=i.data("method"),r=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):i.is(n.buttonClickSelector)?(o=i.data("method")||"get",r=i.data("url"),s=i.serialize(),i.data("params")&&(s=s+"&"+i.data("params"))):(o=i.data("method"),r=n.href(i),s=i.data("params")||null);return c={type:o||"GET",data:s,dataType:l,beforeSend:function(e,o){if(o.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+o.accepts.script),!n.fire(i,"ajax:beforeSend",[e,o]))return!1;i.trigger("ajax:send",e)},success:function(e,t,n){i.trigger("ajax:success",[e,t,n])},complete:function(e,t){i.trigger("ajax:complete",[e,t])},error:function(e,t,n){i.trigger("ajax:error",[e,t,n])},crossDomain:n.isCrossDomain(r)},a&&(c.xhrFields={withCredentials:a}),r&&(c.url=r),n.ajax(c)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var n=document.createElement("a");try{return n.href=e,n.href=n.href,!((!n.protocol||":"===n.protocol)&&!n.host||t.protocol+"//"+t.host==n.protocol+"//"+n.host)}catch(e){return!0}},handleMethod:function(i){var o=n.href(i),r=i.data("method"),s=i.attr("target"),a=n.csrfToken(),l=n.csrfParam(),c=e('<form method="post" action="'+o+'"></form>'),d='<input name="_method" value="'+r+'" type="hidden" />';l===t||a===t||n.isCrossDomain(o)||(d+='<input name="'+l+'" value="'+a+'" type="hidden" />'),s&&c.attr("target",s),c.hide().append(d).appendTo("body"),c.submit()},formElements:function(t,n){return t.is("form")?e(t[0].elements).filter(n):t.find(n)},disableFormElements:function(t){n.formElements(t,n.disableSelector).each((function(){n.disableFormElement(e(this))}))},disableFormElement:function(e){var n,i;n=e.is("button")?"html":"val",(i=e.data("disable-with"))!==t&&(e.data("ujs:enable-with",e[n]()),e[n](i)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){n.formElements(t,n.enableSelector).each((function(){n.enableFormElement(e(this))}))},enableFormElement:function(e){var n=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[n](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,i=e.data("confirm"),o=!1;if(!i)return!0;if(n.fire(e,"confirm")){try{o=n.confirm(i)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=n.fire(e,"confirm:complete",[o])}return o&&t},blankInputs:function(t,n,i){var o,r,s,a=e(),l=n||"input,textarea",c=t.find(l),d={};return c.each((function(){(o=e(this)).is("input[type=radio]")?(s=o.attr("name"),d[s]||(0===t.find('input[type=radio]:checked[name="'+s+'"]').length&&(r=t.find('input[type=radio][name="'+s+'"]'),a=a.add(r)),d[s]=s)):(o.is("input[type=checkbox],input[type=radio]")?o.is(":checked"):!!o.val())===i&&(a=a.add(o))})),!!a.length&&a},nonBlankInputs:function(e,t){return n.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var i=e.data("disable-with");i!==t&&(e.data("ujs:enable-with",e.html()),e.html(i)),e.bind("click.railsDisable",(function(e){return n.stopEverything(e)})),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.unbind("click.railsDisable"),e.removeData("ujs:disabled")}},n.fire(i,"rails:attachBindings")&&(e.ajaxPrefilter((function(e,t,i){e.crossDomain||n.CSRFProtection(i)})),e(window).on("pageshow.rails",(function(){e(e.rails.enableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)})),e(e.rails.linkDisableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)}))})),i.on("ajax:complete",n.linkDisableSelector,(function(){n.enableElement(e(this))})),i.on("ajax:complete",n.buttonDisableSelector,(function(){n.enableFormElement(e(this))})),i.on("click.rails",n.linkClickSelector,(function(t){var i=e(this),o=i.data("method"),r=i.data("params"),s=t.metaKey||t.ctrlKey;if(!n.allowAction(i))return n.stopEverything(t);if(!s&&i.is(n.linkDisableSelector)&&n.disableElement(i),n.isRemote(i)){if(s&&(!o||"GET"===o)&&!r)return!0;var a=n.handleRemote(i);return!1===a?n.enableElement(i):a.fail((function(){n.enableElement(i)})),!1}return o?(n.handleMethod(i),!1):void 0})),i.on("click.rails",n.buttonClickSelector,(function(t){var i=e(this);if(!n.allowAction(i)||!n.isRemote(i))return n.stopEverything(t);i.is(n.buttonDisableSelector)&&n.disableFormElement(i);var o=n.handleRemote(i);return!1===o?n.enableFormElement(i):o.fail((function(){n.enableFormElement(i)})),!1})),i.on("change.rails",n.inputChangeSelector,(function(t){var i=e(this);return n.allowAction(i)&&n.isRemote(i)?(n.handleRemote(i),!1):n.stopEverything(t)})),i.on("submit.rails",n.formSubmitSelector,(function(i){var o,r,s=e(this),a=n.isRemote(s);if(!n.allowAction(s))return n.stopEverything(i);if(s.attr("novalidate")===t)if(s.data("ujs:formnovalidate-button")===t){if((o=n.blankInputs(s,n.requiredInputSelector,!1))&&n.fire(s,"ajax:aborted:required",[o]))return n.stopEverything(i)}else s.data("ujs:formnovalidate-button",t);if(a){if(r=n.nonBlankInputs(s,n.fileInputSelector)){setTimeout((function(){n.disableFormElements(s)}),13);var l=n.fire(s,"ajax:aborted:file",[r]);return l||setTimeout((function(){n.enableFormElements(s)}),13),l}return n.handleRemote(s),!1}setTimeout((function(){n.disableFormElements(s)}),13)})),i.on("click.rails",n.formInputClickSelector,(function(t){var i=e(this);if(!n.allowAction(i))return n.stopEverything(t);var o=i.attr("name"),r=o?{name:o,value:i.val()}:null,s=i.closest("form");0===s.length&&(s=e("#"+i.attr("form"))),s.data("ujs:submit-button",r),s.data("ujs:formnovalidate-button",i.attr("formnovalidate")),s.data("ujs:submit-button-formaction",i.attr("formaction")),s.data("ujs:submit-button-formmethod",i.attr("formmethod"))})),i.on("ajax:send.rails",n.formSubmitSelector,(function(t){this===t.target&&n.disableFormElements(e(this))})),i.on("ajax:complete.rails",n.formSubmitSelector,(function(t){this===t.target&&n.enableFormElements(e(this))})),e((function(){n.refreshCSRFTokens()})))}(jQuery),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e,t){function n(e){function t(){i?(n(),$(t),o=!0,i=!1):o=!1}var n=e,i=!1,o=!1;this.kick=function(){i=!0,o||t()},this.end=function(e){var t=n;e&&(o?(n=i?function(){t(),e()}:e,i=!0):e())}}function i(){return!0}function o(){return!1}function r(e){e.preventDefault()}function s(e){E[e.target.tagName.toLowerCase()]||e.preventDefault()}function a(e,t){var n,i;if(e.identifiedTouch)return e.identifiedTouch(t);for(n=-1,i=e.length;++n<i;)if(e[n].identifier===t)return e[n]}function l(e,t){var n=a(e.changedTouches,t.identifier);if(n&&(n.pageX!==t.pageX||n.pageY!==t.pageY))return n}function c(e){m(e,e.data,e,u)}function d(){u()}function u(){T(document,A.move,c),T(document,A.cancel,d)}function f(e){var t=e.data,n=l(e,t);n&&m(e,t,n,h)}function p(e){var t=e.data;a(e.changedTouches,t.identifier)&&h(t.identifier)}function h(e){T(document,"."+e,f),T(document,"."+e,p)}function m(e,t,n,i){var o=n.pageX-t.startX,r=n.pageY-t.startY;o*o+r*r<C*C||function(e,t,n,i,o,r){var s,a;t.target,s=e.targetTouches,a=e.timeStamp-t.timeStamp,t.type="movestart",t.distX=i,t.distY=o,t.deltaX=i,t.deltaY=o,t.pageX=n.pageX,t.pageY=n.pageY,t.velocityX=i/a,t.velocityY=o/a,t.targetTouches=s,t.finger=s?s.length:1,t._handled=v,t._preventTouchmoveDefault=function(){e.preventDefault()},_(t.target,t),r(t.identifier)}(e,t,n,o,r,i)}function v(){return this._handled=i,!1}function g(e){e._handled()}function y(e){var t=e.data.timer;e.data.touch=e,e.data.timeStamp=e.timeStamp,t.kick()}function b(e){var t=e.data.event,n=e.data.timer;T(document,A.move,y),T(document,A.end,b),S(t,n,(function(){setTimeout((function(){T(t.target,"click",o)}),0)}))}function w(e){var t=e.data.event,n=e.data.timer,i=l(e,t);i&&(e.preventDefault(),t.targetTouches=e.targetTouches,e.data.touch=i,e.data.timeStamp=e.timeStamp,n.kick())}function x(e){var t=e.data.event,n=e.data.timer;a(e.changedTouches,t.identifier)&&(function(e){T(document,"."+e.identifier,w),T(document,"."+e.identifier,x)}(t),S(t,n))}function S(e,t,n){t.end((function(){return e.type="moveend",_(e.target,e),n&&n()}))}var C=6,k=e.event.add,T=e.event.remove,_=function(t,n,i){e.event.trigger(n,i,t)},$=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return window.setTimeout((function(){e()}),25)},E={textarea:!0,input:!0,select:!0,button:!0},A={move:"mousemove",cancel:"mouseup dragstart",end:"mouseup"},L={move:"touchmove",cancel:"touchend",end:"touchend"};e.event.special.movestart={setup:function(){return k(this,"movestart.move",g),!0},teardown:function(){return T(this,"dragstart drag",r),T(this,"mousedown touchstart",s),T(this,"movestart",g),!0},add:function(e){"move"!==e.namespace&&"moveend"!==e.namespace&&(k(this,"dragstart."+e.guid+" drag."+e.guid,r,t,e.selector),k(this,"mousedown."+e.guid,s,t,e.selector))},remove:function(e){"move"!==e.namespace&&"moveend"!==e.namespace&&(T(this,"dragstart."+e.guid+" drag."+e.guid),T(this,"mousedown."+e.guid))},_default:function(e){var i,r;e._handled()&&(i={target:e.target,startX:e.startX,startY:e.startY,pageX:e.pageX,pageY:e.pageY,distX:e.distX,distY:e.distY,deltaX:e.deltaX,deltaY:e.deltaY,velocityX:e.velocityX,velocityY:e.velocityY,timeStamp:e.timeStamp,identifier:e.identifier,targetTouches:e.targetTouches,finger:e.finger},r={event:i,timer:new n((function(){(function(e,t,n){var i=n-e.timeStamp;e.type="move",e.distX=t.pageX-e.startX,e.distY=t.pageY-e.startY,e.deltaX=t.pageX-e.pageX,e.deltaY=t.pageY-e.pageY,e.velocityX=.3*e.velocityX+.7*e.deltaX/i,e.velocityY=.3*e.velocityY+.7*e.deltaY/i,e.pageX=t.pageX,e.pageY=t.pageY})(i,r.touch,r.timeStamp),_(e.target,i)})),touch:t,timeStamp:t},e.identifier===t?(k(e.target,"click",o),k(document,A.move,y,r),k(document,A.end,b,r)):(e._preventTouchmoveDefault(),k(document,L.move+"."+e.identifier,w,r),k(document,L.end+"."+e.identifier,x,r)))}},e.event.special.move={setup:function(){k(this,"movestart.move",e.noop)},teardown:function(){T(this,"movestart.move",e.noop)}},e.event.special.moveend={setup:function(){k(this,"movestart.moveend",e.noop)},teardown:function(){T(this,"movestart.moveend",e.noop)}},k(document,"mousedown.move",(function(e){var t;(function(e){return 1===e.which&&!e.ctrlKey&&!e.altKey})(e)&&(t={target:e.target,startX:e.pageX,startY:e.pageY,timeStamp:e.timeStamp},k(document,A.move,c,t),k(document,A.cancel,d,t))})),k(document,"touchstart.move",(function(e){var t,n;E[e.target.tagName.toLowerCase()]||(n={target:(t=e.changedTouches[0]).target,startX:t.pageX,startY:t.pageY,timeStamp:e.timeStamp,identifier:t.identifier},k(document,L.move+"."+t.identifier,f,n),k(document,L.cancel+"."+t.identifier,p,n))})),"function"==typeof Array.prototype.indexOf&&function(e){for(var t=["changedTouches","targetTouches"],n=t.length;n--;)-1===e.event.props.indexOf(t[n])&&e.event.props.push(t[n])}(e)})),function(e){e.fn.twentytwenty=function(t){return t=e.extend({default_offset_pct:.5,orientation:"horizontal"},t),this.each((function(){var n=t.default_offset_pct,i=e(this),o=t.orientation,r="vertical"===o?"down":"left",s="vertical"===o?"up":"right";i.wrap("<div class='twentytwenty-wrapper twentytwenty-"+o+"'></div>"),i.append("<div class='twentytwenty-overlay'></div>");var a=i.find("img:first"),l=i.find("img:last");i.append("<div class='twentytwenty-handle'></div>");var c=i.find(".twentytwenty-handle");c.append("<span class='twentytwenty-"+r+"-arrow'></span>"),c.append("<span class='twentytwenty-"+s+"-arrow'></span>"),i.addClass("twentytwenty-container"),a.addClass("twentytwenty-before"),l.addClass("twentytwenty-after");var d=i.find(".twentytwenty-overlay");d.append("<div class='twentytwenty-before-label'></div>"),d.append("<div class='twentytwenty-after-label'></div>");var u=function(e){var t=function(e){var t=a.width(),n=a.height();return{w:t+"px",h:n+"px",cw:e*t+"px",ch:e*n+"px"}}(e);c.css("vertical"===o?"top":"left","vertical"===o?t.ch:t.cw),function(e){"vertical"===o?a.css("clip","rect(0,"+e.w+","+e.ch+",0)"):a.css("clip","rect(0,"+e.cw+","+e.h+",0)"),i.css("height",e.h)}(t)};e(window).on("resize.twentytwenty",(function(){u(n)}));var f=0,p=0,h=0,m=0;c.on("movestart",(function(e){((e.distX>e.distY&&e.distX<-e.distY||e.distX<e.distY&&e.distX>-e.distY)&&"vertical"!==o||(e.distX<e.distY&&e.distX<-e.distY||e.distX>e.distY&&e.distX>-e.distY)&&"vertical"===o)&&e.preventDefault(),i.addClass("active"),f=i.offset().left,p=i.offset().top,h=a.width(),m=a.height()})),c.on("moveend",(function(){i.removeClass("active")})),c.on("move",(function(e){i.hasClass("active")&&((n="vertical"===o?(e.pageY-p)/m:(e.pageX-f)/h)<0&&(n=0),n>1&&(n=1),u(n))})),i.find("img").on("mousedown",(function(e){e.preventDefault()})),e(window).trigger("resize.twentytwenty")}))}}(jQuery),pie={timer_raial:!1,timer_condition:!1,timer_delay:!1,is_start:!1,is_stop:!0,set_default_value:function(){var e;return e=this,$(".js-pie").each((function(){return e.drow_radial($(this).find(".js-pie-radial"),0),e.set_value($(this).find(".js-pie-value"),0)}))},stop:function(){this.is_start=!1,!1===this.is_stop&&(this.is_stop=!0,clearTimeout(this.timer_raial),clearTimeout(this.timer_condition),clearTimeout(this.timer_delay),this.set_value($(".js-pie-value"),0),this.drow_radial($(".js-pie-radial"),0))},start:function(){if(!1===this.is_start)return this.is_start=!0,this.is_stop=!1,clearTimeout(this.timer_delay),this.timer_delay=setTimeout((e=this,function(){var t,n,i;return i=e,t=n=0,$(".js-pie").each((function(){return i.timer_condition=setTimeout(function(e){return function(){var n;return n=i.get_value($(e)),i.set_condition($(e),n,100,300*(t+1)),t++}}(this),200*n),n++}))}),300);var e},get_value:function(e){return e.find(".js-pie-value").data("value")},set_value:function(e,t){e.html(t+e.data("postfix"))},set_condition:function(e,t){return this.animate_radial(e.find(".js-pie-value"),t,e.find(".js-pie-radial"),0,t)},animate_radial:function(e,t,n,i,o){var r,s;return r=100/(i-o),i>o?s=-1:(s=1,r=-r),this.animate_radial_timer(e,t,n,i,o,r,s)},animate_radial_timer:function(e,t,n,i,o,r,s){if(i<=o&&s>0||i>=o&&s<0)return this.drow_radial(n,i),this.set_value(e,Math.round(t*(i/o))),this.timer_raial=setTimeout((a=this,function(){return a.animate_radial_timer(e,t,n,i+s,o,r,s)}),r);var a},drow_radial:function(e,t){var n,i,o;return i="#47bc63",n="#404247",o=Math.round(360*t/100),t<=50?e.css("background-image","linear-gradient(90deg, "+n+" 50%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0)), linear-gradient("+(90+o)+"deg, "+i+" 50%, "+n+" 50%, "+n+")"):e.css("background-image","linear-gradient("+(o-270)+"deg, "+i+" 50%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0)), linear-gradient(270deg, "+i+" 50%, "+n+" 50%, "+n+")")}},function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof exports?module.exports=e(require("jquery")):e(jQuery)}((function(e){"use strict";var t,n=window.Slick||{};(t=0,n=function(n,i){var o,r=this;r.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(n),appendDots:e(n),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" data-role="none" role="button" tabindex="0" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},r.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(r,r.initials),r.activeBreakpoint=null,r.animType=null,r.animProp=null,r.breakpoints=[],r.breakpointSettings=[],r.cssTransitions=!1,r.focussed=!1,r.interrupted=!1,r.hidden="hidden",r.paused=!0,r.positionProp=null,r.respondTo=null,r.rowCount=1,r.shouldClick=!0,r.$slider=e(n),r.$slidesCache=null,r.transformType=null,r.transitionType=null,r.visibilityChange="visibilitychange",r.windowWidth=0,r.windowTimer=null,o=e(n).data("slick")||{},r.options=e.extend({},r.defaults,i,o),r.currentSlide=r.options.initialSlide,r.originalSettings=r.options,void 0!==document.mozHidden?(r.hidden="mozHidden",r.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(r.hidden="webkitHidden",r.visibilityChange="webkitvisibilitychange"),r.autoPlay=e.proxy(r.autoPlay,r),r.autoPlayClear=e.proxy(r.autoPlayClear,r),r.autoPlayIterator=e.proxy(r.autoPlayIterator,r),r.changeSlide=e.proxy(r.changeSlide,r),r.clickHandler=e.proxy(r.clickHandler,r),r.selectHandler=e.proxy(r.selectHandler,r),r.setPosition=e.proxy(r.setPosition,r),r.swipeHandler=e.proxy(r.swipeHandler,r),r.dragHandler=e.proxy(r.dragHandler,r),r.keyHandler=e.proxy(r.keyHandler,r),r.instanceUid=t++,r.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,r.registerBreakpoints(),r.init(!0)}).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},n.prototype.addSlide=n.prototype.slickAdd=function(t,n,i){var o=this;if("boolean"==typeof n)i=n,n=null;else if(0>n||n>=o.slideCount)return!1;o.unload(),"number"==typeof n?0===n&&0===o.$slides.length?e(t).appendTo(o.$slideTrack):i?e(t).insertBefore(o.$slides.eq(n)):e(t).insertAfter(o.$slides.eq(n)):!0===i?e(t).prependTo(o.$slideTrack):e(t).appendTo(o.$slideTrack),o.$slides=o.$slideTrack.children(this.options.slide),o.$slideTrack.children(this.options.slide).detach(),o.$slideTrack.append(o.$slides),o.$slides.each((function(t,n){e(n).attr("data-slick-index",t)})),o.$slidesCache=o.$slides,o.reinit()},n.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},n.prototype.animateSlide=function(t,n){var i={},o=this;o.animateHeight(),!0===o.options.rtl&&!1===o.options.vertical&&(t=-t),!1===o.transformsEnabled?!1===o.options.vertical?o.$slideTrack.animate({left:t},o.options.speed,o.options.easing,n):o.$slideTrack.animate({top:t},o.options.speed,o.options.easing,n):!1===o.cssTransitions?(!0===o.options.rtl&&(o.currentLeft=-o.currentLeft),e({animStart:o.currentLeft}).animate({animStart:t},{duration:o.options.speed,easing:o.options.easing,step:function(e){e=Math.ceil(e),!1===o.options.vertical?(i[o.animType]="translate("+e+"px, 0px)",o.$slideTrack.css(i)):(i[o.animType]="translate(0px,"+e+"px)",o.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(o.applyTransition(),t=Math.ceil(t),!1===o.options.vertical?i[o.animType]="translate3d("+t+"px, 0px, 0px)":i[o.animType]="translate3d(0px,"+t+"px, 0px)",o.$slideTrack.css(i),n&&setTimeout((function(){o.disableTransition(),n.call()}),o.options.speed))},n.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},n.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)}))},n.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},n.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},n.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},n.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},n.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},n.prototype.buildDots=function(){var t,n,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},n.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),(!0===t.options.centerMode||!0===t.options.swipeToSlide)&&(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},n.prototype.buildRows=function(){var e,t,n,i,o,r,s,a=this;if(i=document.createDocumentFragment(),r=a.$slider.children(),a.options.rows>1){for(s=a.options.slidesPerRow*a.options.rows,o=Math.ceil(r.length/s),e=0;o>e;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(n=0;n<a.options.slidesPerRow;n++){var d=e*s+(t*a.options.slidesPerRow+n);r.get(d)&&c.appendChild(r.get(d))}l.appendChild(c)}i.appendChild(l)}a.$slider.empty().append(i),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},n.prototype.checkResponsive=function(t,n){var i,o,r,s=this,a=!1,l=s.$slider.width(),c=window.innerWidth||e(window).width();if("window"===s.respondTo?r=c:"slider"===s.respondTo?r=l:"min"===s.respondTo&&(r=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in o=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?r<s.breakpoints[i]&&(o=s.breakpoints[i]):r>s.breakpoints[i]&&(o=s.breakpoints[i]));null!==o?null!==s.activeBreakpoint?(o!==s.activeBreakpoint||n)&&(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):(s.activeBreakpoint=o,"unslick"===s.breakpointSettings[o]?s.unslick(o):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[o]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),a=o):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),a=o),t||!1===a||s.$slider.trigger("breakpoint",[s,a])}},n.prototype.changeSlide=function(t,n){var i,o,r=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),i=r.slideCount%r.options.slidesToScroll!=0?0:(r.slideCount-r.currentSlide)%r.options.slidesToScroll,t.data.message){case"previous":o=0===i?r.options.slidesToScroll:r.options.slidesToShow-i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide-o,!1,n);break;case"next":o=0===i?r.options.slidesToScroll:i,r.slideCount>r.options.slidesToShow&&r.slideHandler(r.currentSlide+o,!1,n);break;case"index":var a=0===t.data.index?0:t.data.index||s.index()*r.options.slidesToScroll;r.slideHandler(r.checkNavigable(a),!1,n),s.children().trigger("focus");break;default:return}},n.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},n.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).off("ready.slick.slick-"+t.instanceUid,t.setPosition)},n.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},n.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>1&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},n.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},n.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},n.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},n.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout((function(){n.disableTransition(e),t.call()}),n.options.speed))},n.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},n.prototype.filterSlides=n.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},n.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",(function(n){n.stopImmediatePropagation();var i=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())}),0)}))},n.prototype.getCurrent=n.prototype.slickCurrentSlide=function(){return this.currentSlide},n.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},n.prototype.getLeft=function(e){var t,n,i,o=this,r=0;return o.slideOffset=0,n=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,r=n*o.options.slidesToShow*-1),o.slideCount%o.options.slidesToScroll!=0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,r=(o.options.slidesToShow-(e-o.slideCount))*n*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,r=o.slideCount%o.options.slidesToScroll*n*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,r=(e+o.options.slidesToShow-o.slideCount)*n),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,r=0),!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=!1===o.options.vertical?e*o.slideWidth*-1+o.slideOffset:e*n*-1+r,!0===o.options.variableWidth&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow),t=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===o.options.centerMode&&(i=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow+1),t=!0===o.options.rtl?i[0]?-1*(o.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(o.$list.width()-i.outerWidth())/2)),t},n.prototype.getOption=n.prototype.slickGetOption=function(e){return this.options[e]},n.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,o=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);e>n;)o.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return o},n.prototype.getSlick=function(){return this},n.prototype.getSlideCount=function(){var t,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each((function(o,r){return r.offsetLeft-n+e(r).outerWidth()/2>-1*i.swipeLeft?(t=r,!1):void 0})),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},n.prototype.goTo=n.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},n.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},n.prototype.initADA=function(){var t=this;t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),t.$slideTrack.attr("role","listbox"),t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(n){e(this).attr({role:"option","aria-describedby":"slick-slide"+t.instanceUid+n})})),null!==t.$dots&&t.$dots.attr("role","tablist").find("li").each((function(n){e(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+t.instanceUid+n,id:"slick-slide"+t.instanceUid+n})})).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),t.activateADA()},n.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},n.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},n.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},n.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)},n.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},n.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},n.prototype.lazyLoad=function(){function t(t){e("img[data-lazy]",t).each((function(){var t=e(this),n=e(this).attr("data-lazy"),i=document.createElement("img");i.onload=function(){t.animate({opacity:0},100,(function(){t.attr("src",n).animate({opacity:1},200,(function(){t.removeAttr("data-lazy").removeClass("slick-loading")})),o.$slider.trigger("lazyLoaded",[o,t,n])}))},i.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,t,n])},i.src=n}))}var n,i,o=this;!0===o.options.centerMode?!0===o.options.infinite?i=(n=o.currentSlide+(o.options.slidesToShow/2+1))+o.options.slidesToShow+2:(n=Math.max(0,o.currentSlide-(o.options.slidesToShow/2+1)),i=o.options.slidesToShow/2+1+2+o.currentSlide):(n=o.options.infinite?o.options.slidesToShow+o.currentSlide:o.currentSlide,i=Math.ceil(n+o.options.slidesToShow),!0===o.options.fade&&(n>0&&n--,i<=o.slideCount&&i++)),t(o.$slider.find(".slick-slide").slice(n,i)),o.slideCount<=o.options.slidesToShow?t(o.$slider.find(".slick-slide")):o.currentSlide>=o.slideCount-o.options.slidesToShow?t(o.$slider.find(".slick-cloned").slice(0,o.options.slidesToShow)):0===o.currentSlide&&t(o.$slider.find(".slick-cloned").slice(-1*o.options.slidesToShow))},n.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},n.prototype.next=n.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},n.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},n.prototype.pause=n.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},n.prototype.play=n.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},n.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),!0===t.options.accessibility&&t.initADA())},n.prototype.prev=n.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},n.prototype.preventDefault=function(e){e.preventDefault()},n.prototype.progressiveLazyLoad=function(t){t=t||1;var n,i,o,r=this,s=e("img[data-lazy]",r.$slider);s.length?(n=s.first(),i=n.attr("data-lazy"),(o=document.createElement("img")).onload=function(){n.attr("src",i).removeAttr("data-lazy").removeClass("slick-loading"),!0===r.options.adaptiveHeight&&r.setPosition(),r.$slider.trigger("lazyLoaded",[r,n,i]),r.progressiveLazyLoad()},o.onerror=function(){3>t?setTimeout((function(){r.progressiveLazyLoad(t+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,n,i]),r.progressiveLazyLoad())},o.src=i):r.$slider.trigger("allImagesLoaded",[r])},n.prototype.refresh=function(t){var n,i,o=this;i=o.slideCount-o.options.slidesToShow,!o.options.infinite&&o.currentSlide>i&&(o.currentSlide=i),o.slideCount<=o.options.slidesToShow&&(o.currentSlide=0),n=o.currentSlide,o.destroy(!0),e.extend(o,o.initials,{currentSlide:n}),o.init(),t||o.changeSlide({data:{message:"index",index:n}},!1)},n.prototype.registerBreakpoints=function(){var t,n,i,o=this,r=o.options.responsive||null;if("array"===e.type(r)&&r.length){for(t in o.respondTo=o.options.respondTo||"window",r)if(i=o.breakpoints.length-1,n=r[t].breakpoint,r.hasOwnProperty(t)){for(;i>=0;)o.breakpoints[i]&&o.breakpoints[i]===n&&o.breakpoints.splice(i,1),i--;o.breakpoints.push(n),o.breakpointSettings[n]=r[t].settings}o.breakpoints.sort((function(e,t){return o.options.mobileFirst?e-t:t-e}))}},n.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.options.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},n.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},n.prototype.removeSlide=n.prototype.slickRemove=function(e,t,n){var i=this;return e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,!(i.slideCount<1||0>e||e>i.slideCount-1)&&(i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,void i.reinit())},n.prototype.setCSS=function(e){var t,n,i=this,o={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",o[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(o):(o={},!1===i.cssTransitions?(o[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(o)):(o[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(o)))},n.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},n.prototype.setFade=function(){var t,n=this;n.$slides.each((function(i,o){t=n.slideWidth*i*-1,!0===n.options.rtl?e(o).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}):e(o).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},n.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},n.prototype.setOption=n.prototype.slickSetOption=function(){var t,n,i,o,r,s=this,a=!1;if("object"===e.type(arguments[0])?(i=arguments[0],a=arguments[1],r="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],o=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?r="responsive":void 0!==arguments[1]&&(r="single")),"single"===r)s.options[i]=o;else if("multiple"===r)e.each(i,(function(e,t){s.options[e]=t}));else if("responsive"===r)for(n in o)if("array"!==e.type(s.options.responsive))s.options.responsive=[o[n]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===o[n].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(o[n])}a&&(s.unload(),s.reinit())},n.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},n.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),(void 0!==t.WebkitTransition||void 0!==t.MozTransition||void 0!==t.msTransition)&&!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},n.prototype.setSlideClasses=function(e){var t,n,i,o,r=this;n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),r.$slides.eq(e).addClass("slick-current"),!0===r.options.centerMode?(t=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(e>=t&&e<=r.slideCount-1-t?r.$slides.slice(e-t,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=r.options.slidesToShow+e,n.slice(i-t+1,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-r.options.slidesToShow).addClass("slick-center"):e===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center")),r.$slides.eq(e).addClass("slick-center")):e>=0&&e<=r.slideCount-r.options.slidesToShow?r.$slides.slice(e,e+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=r.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(o=r.slideCount%r.options.slidesToShow,i=!0===r.options.infinite?r.options.slidesToShow+e:e,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-e<r.options.slidesToShow?n.slice(i-(r.options.slidesToShow-o),i+o).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+r.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===r.options.lazyLoad&&r.lazyLoad()},n.prototype.setupInfinite=function(){var t,n,i,o=this;if(!0===o.options.fade&&(o.options.centerMode=!1),!0===o.options.infinite&&!1===o.options.fade&&(n=null,o.slideCount>o.options.slidesToShow)){for(i=!0===o.options.centerMode?o.options.slidesToShow+1:o.options.slidesToShow,t=o.slideCount;t>o.slideCount-i;t-=1)n=t-1,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-o.slideCount).prependTo(o.$slideTrack).addClass("slick-cloned");for(t=0;i>t;t+=1)n=t,e(o.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+o.slideCount).appendTo(o.$slideTrack).addClass("slick-cloned");o.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},n.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},n.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),o=parseInt(i.attr("data-slick-index"));return o||(o=0),n.slideCount<=n.options.slidesToShow?(n.setSlideClasses(o),void n.asNavFor(o)):void n.slideHandler(o)},n.prototype.slideHandler=function(e,t,n){var i,o,r,s,a,l=null,c=this;return t=t||!1,!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e||c.slideCount<=c.options.slidesToShow?void 0:(!1===t&&c.asNavFor(e),i=e,l=c.getLeft(i),s=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(0>e||e>c.getDotCount()*c.options.slidesToScroll)||!1===c.options.infinite&&!0===c.options.centerMode&&(0>e||e>c.slideCount-c.options.slidesToScroll)?void(!1===c.options.fade&&(i=c.currentSlide,!0!==n?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i))):(c.options.autoplay&&clearInterval(c.autoPlayTimer),o=0>i?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,o]),r=c.currentSlide,c.currentSlide=o,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade?(!0!==n?(c.fadeSlideOut(r),c.fadeSlide(o,(function(){c.postSlide(o)}))):c.postSlide(o),void c.animateHeight()):void(!0!==n?c.animateSlide(l,(function(){c.postSlide(o)})):c.postSlide(o))))},n.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},n.prototype.swipeDirection=function(){var e,t,n,i,o=this;return e=o.touchObject.startX-o.touchObject.curX,t=o.touchObject.startY-o.touchObject.curY,n=Math.atan2(t,e),0>(i=Math.round(180*n/Math.PI))&&(i=360-Math.abs(i)),45>=i&&i>=0||360>=i&&i>=315?!1===o.options.rtl?"left":"right":i>=135&&225>=i?!1===o.options.rtl?"right":"left":!0===o.options.verticalSwiping?i>=35&&135>=i?"down":"up":"vertical"},n.prototype.swipeEnd=function(){var e,t,n=this;if(n.dragging=!1,n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(t=n.swipeDirection()){case"left":case"down":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":e=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=t&&(n.slideHandler(e),n.touchObject={},n.$slider.trigger("swipe",[n,t]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},n.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},n.prototype.swipeMove=function(e){var t,n,i,o,r,s=this;return r=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!s.dragging||r&&1!==r.length)&&(t=s.getLeft(s.currentSlide),s.touchObject.curX=void 0!==r?r[0].pageX:e.clientX,s.touchObject.curY=void 0!==r?r[0].pageY:e.clientY,s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curX-s.touchObject.startX,2))),!0===s.options.verticalSwiping&&(s.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(s.touchObject.curY-s.touchObject.startY,2)))),"vertical"!==(n=s.swipeDirection())?(void 0!==e.originalEvent&&s.touchObject.swipeLength>4&&e.preventDefault(),o=(!1===s.options.rtl?1:-1)*(s.touchObject.curX>s.touchObject.startX?1:-1),!0===s.options.verticalSwiping&&(o=s.touchObject.curY>s.touchObject.startY?1:-1),i=s.touchObject.swipeLength,s.touchObject.edgeHit=!1,!1===s.options.infinite&&(0===s.currentSlide&&"right"===n||s.currentSlide>=s.getDotCount()&&"left"===n)&&(i=s.touchObject.swipeLength*s.options.edgeFriction,s.touchObject.edgeHit=!0),!1===s.options.vertical?s.swipeLeft=t+i*o:s.swipeLeft=t+i*(s.$list.height()/s.listWidth)*o,!0===s.options.verticalSwiping&&(s.swipeLeft=t+i*o),!0!==s.options.fade&&!1!==s.options.touchMove&&(!0===s.animating?(s.swipeLeft=null,!1):void s.setCSS(s.swipeLeft))):void 0)},n.prototype.swipeStart=function(e){var t,n=this;return n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow?(n.touchObject={},!1):(void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,void(n.dragging=!0))},n.prototype.unfilterSlides=n.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},n.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},n.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},n.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},n.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},n.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,t,i=this,o=arguments[0],r=Array.prototype.slice.call(arguments,1),s=i.length;for(e=0;s>e;e++)if("object"==typeof o||void 0===o?i[e].slick=new n(i[e],o):t=i[e].slick[o].apply(i[e].slick,r),void 0!==t)return t;return i}})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.lozad=t()}(this,(function(){"use strict";function e(e){e.setAttribute("data-loaded",!0)}var t="undefined"!=typeof document&&document.documentMode,n={rootMargin:"0px",threshold:0,load:function(e){if("picture"===e.nodeName.toLowerCase()){var n=e.querySelector("img"),i=!1;null===n&&(n=document.createElement("img"),i=!0),t&&e.getAttribute("data-iesrc")&&(n.src=e.getAttribute("data-iesrc")),e.getAttribute("data-alt")&&(n.alt=e.getAttribute("data-alt")),i&&e.append(n)}if("video"===e.nodeName.toLowerCase()&&!e.getAttribute("data-src")&&e.children){for(var o=e.children,r=void 0,s=0;s<=o.length-1;s++)(r=o[s].getAttribute("data-src"))&&(o[s].src=r);e.load()}e.getAttribute("data-poster")&&(e.poster=e.getAttribute("data-poster")),e.getAttribute("data-src")&&(e.src=e.getAttribute("data-src")),e.getAttribute("data-srcset")&&e.setAttribute("srcset",e.getAttribute("data-srcset"));var a=",";if(e.getAttribute("data-background-delimiter")&&(a=e.getAttribute("data-background-delimiter")),e.getAttribute("data-background-image"))e.style.backgroundImage="url('"+e.getAttribute("data-background-image").split(a).join("'),url('")+"')";else if(e.getAttribute("data-background-image-set")){var l=e.getAttribute("data-background-image-set").split(a),c=l[0].substr(0,l[0].indexOf(" "))||l[0];c=-1===c.indexOf("url(")?"url("+c+")":c,1===l.length?e.style.backgroundImage=c:e.setAttribute("style",(e.getAttribute("style")||"")+"background-image: "+c+"; background-image: -webkit-image-set("+l+"); background-image: image-set("+l+")")}e.getAttribute("data-toggle-class")&&e.classList.toggle(e.getAttribute("data-toggle-class"))},loaded:function(){}},i=function(e){return"true"===e.getAttribute("data-loaded")},o=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:document;return e instanceof Element?[e]:e instanceof NodeList?e:t.querySelectorAll(e)};return function(){var t,r,s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:".lozad",a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},l=Object.assign({},n,a),c=l.root,d=l.rootMargin,u=l.threshold,f=l.load,p=l.loaded,h=void 0;"undefined"!=typeof window&&window.IntersectionObserver&&(h=new IntersectionObserver((t=f,r=p,function(n,o){n.forEach((function(n){(0<n.intersectionRatio||n.isIntersecting)&&(o.unobserve(n.target),i(n.target)||(t(n.target),e(n.target),r(n.target)))}))}),{root:c,rootMargin:d,threshold:u}));for(var m,v=o(s,c),g=0;g<v.length;g++)(m=v[g]).getAttribute("data-placeholder-background")&&(m.style.background=m.getAttribute("data-placeholder-background"));return{observe:function(){for(var t=o(s,c),n=0;n<t.length;n++)i(t[n])||(h?h.observe(t[n]):(f(t[n]),e(t[n]),p(t[n])))},triggerLoad:function(t){i(t)||(f(t),e(t),p(t))},observer:h}}}));const lazyLoadObserver=lozad(".lozad",{rootMargin:"600px 0px"});$((function(){lazyLoadObserver.observe()})),$(document).ready((function(){init_header_toggle(),init_select_mobile(),init_slider(),init_report(),init_drag_slider(),init_reviews_slider(),pie.set_default_value(),scroll.init(),init_handler(),init_second_navi(),init_t_report(),init_fixed_header(),init_comp_fixed(),init_navi_drop(),init_register_placeholders(),$(".contacts__yandex-map").length>0&&ymaps.ready(initYandexMap),initRecaptchaCheckCom(),init_reach_goal(),js_pie_collection()})),scroll={top_shift:0,init:function(){var e=this;$(document).on("scroll",(function(){e.scroll(e.get_top(),e.get_bottom())})),this.scroll(e.get_top(),e.get_bottom())},get_top:function(){return $(document).scrollTop()+this.top_shift},get_bottom:function(){return this.get_top()+$(window).height()},scroll_toggle:function(e,t,n,i,o,r,s){if(0==n.length)return!1;r||(r=0),s||(s=0);var a=n.offset().top,l=n.height();e<a-r||t>a+l+s?i():o()},scroll:function(e,t){this.scroll_toggle(t,e,$(".js-pie:not([data-not-update])"),(function(){pie.stop()}),(function(){pie.start()}))}},$(document).on("click",".reviews_select__btn",(function(){const e=".m-reviews__sections_block",t="section-navi_item_current",n=$(this).attr("data-section");$(".reviews_select__btn").removeClass(t),$(this).addClass(t),"all"===n?$(e).show():($(e).hide(),$(e+"[data-role='"+n+"']").show())})),function(){$(document).ready((function(){var e,t,n,i,o;if($(".api-container").length>0&&((t=function(e){return $(e).overlayScrollbars({className:"os-theme-minimal-dark",scrollbars:{autoHide:"leave",autoHideDelay:300}})})("nav"),t("section"),(o=$(".api-container nav")).find(".rg-r-a-link").on("click",(function(){var e;return e=$(this).attr("href"),i(e),!1})),i=function(e){var t;return t=e.replace(/!/g,""),$(".api-container .content").find(".resource-group, .resource, .action").addClass("hidden"),$(t).closest(".resource").closest(".resource-group").removeClass("hidden"),$(t).closest(".resource").removeClass("hidden"),$(t).removeClass("hidden"),"function"==typeof window.history.pushState?window.history.pushState(null,e,e):window.location.hash=e},o.find(".rg-r-link").on("click",(function(){return $(this).parent().find("ul li:first-child .rg-r-a-link").click(),!1})),o.find(".rg-link").on("click",(function(){var e;return(e=$(this).closest(".resource-group").find(".collapse-content ul:first-child .rg-r-link")).length>0?e.click():$(this).closest(".resource-group").find(".collapse-content ul li:first-child .rg-r-a-link").click(),!1})),o.find(".resource-group .heading .chevron").on("click",(function(){return $(this).closest(".resource-group").find(".collapse-content").toggleClass("hidden"),$(this).find("i").toggleClass("fa-angle-down"),$(this).find("i").toggleClass("fa-angle-up"),!1})),e=window.location.hash,n=window.location.pathname.split("/").pop(),["sql_apidoc","webhookdoc"].includes(n)&&0===e.length&&(window.location.hostname.endsWith(".ru")?e="#!obshhee-obshhaya-informacziya":window.location.hostname.endsWith(".com")&&(e="#!general-general-information")),e))return i(decodeURIComponent(e))}))}.call(this),function(){$(document).on("ajax:success","#blog-subscription-form, #blog-subscription-small-form",(function(e,t){var n;if(t&&null==t.error&&t.notification&&!(n=$(this).find(".notification-line")).hasClass(t.notification.type))return n.addClass(t.notification.type),n.append(t.notification.message),setTimeout((function(){return n.removeClass(t.notification.type),n.html("")}),5e3)}))}.call(this),$((function(){init_form_subscribe(),init_over_form()})),function(){$(document).on("change paste keyup",".search-form .search-form__input",(function(e){return $(e.target).toggleClass("not-empty-input",e.target.value.length>0)})),$(document).on("click touchstart",".reset-icon",(function(e){if($(e.target).closest(".search-form-input-row").find(".search-form__input").val().length>0)return location.href="/blog"})),$(document).on("ready",(function(){return 0===$(".search-form .search-form__input").length||($(".search-form .search-form__input").val().length>0?($(".search-form").find(".reset-icon").show(),$(".search-form .search-form__input").addClass("not-empty-input")):void 0)}))}.call(this),$(document).on("click","#acceptCookiesBtn",(function(e){document.cookie="cookie_policy_accepted=true;path=/",$(e.target).closest(".cookies-modal").hide()})),$(document).on("click",".comp .navigate_button",(function(){headerSelector="td.comp__cell_type_header",dataSelector="td.comp__cell_type_plan",rows=$(".comp__row"),nthChildAttrbiureOffset=2,firstColumnIndex=2,lastColumnIndex=$(rows[0]).find("td").size(),firstVisibleColumnId=$(".comp__row td.comp__cell_type_plan:visible").first().index(),buttonClass=".scroll_right",tdOffset=firstVisibleColumnId+nthChildAttrbiureOffset,hideNavigateButton=tdOffset>=lastColumnIndex,$(this).hasClass("scroll_left")&&(buttonClass=".scroll_left",tdOffset=firstVisibleColumnId,hideNavigateButton=tdOffset<=firstColumnIndex),$(".navigate_button").removeClass("hidden"),hideNavigateButton&&$(".navigate_button"+buttonClass).addClass("hidden"),rows.find(headerSelector+", "+dataSelector).removeClass("active__cell").addClass("hidden__cell"),rows.find(headerSelector+":nth-child("+tdOffset+"),"+dataSelector+":nth-child("+tdOffset+")").addClass("active__cell").removeClass("hidden__cell")})),$(document).on("blur",".okdesk-com #new_lead #lead_phone",(function(){companyName=$(this).val(),form=$(this).closest("#new_lead"),input=form.find("#lead_account_name"),$(this).data("locale-es")||input.val(companyName).change(),validators=form[0].ClientSideValidations.settings.validators,input.isValid(validators)})),$(document).on("input","#lead_account_name",(function(){$(".sign .form-error-message").html("")})),function(){function e(){return $(".tarif-create__card-translates").data("values")}function t(t){const n=e(),i=n.tariff_names[t.NAME],o=t.fullCost(),r=t.additionalLicenseCount();$(".tarif-create__card-title").text(i),$(".license-count").text(t.DEFAULT_COUNT_LICENSE),r?($(".result-window-license-count").removeClass("mb64"),$(".result-window-add-license-count").show(),$(".add-license-count").text(r)):($(".result-window-license-count").addClass("mb64"),$(".result-window-add-license-count").hide());const s=$(".tarif-create__card .index-ul");s.html(""),n.feature_list[t.NAME].forEach((e=>{s.append(`<div class="index-ul__li">${e}</div>`)})),function(e){const t=$(".tarif-create__card .tarif-create__card-btn"),n=t.data("href");t.attr("href",`${n}?from=${e}`)}(n.params_for_link[t.NAME]),0==o?(tariffFullCostStr=n.price_on_request,$(".without_price").show(),$(".with_price").hide(),$(".tarif-create__card-last").hide(),$(".result-window-license-count").hide()):(tariffFullCostStr=o.toLocaleString("ru"),$(".without_price").hide(),$(".with_price").show(),$(".tarif-create__card-last").show(),$(".result-window-license-count").show()),$(".tarif-create__card-price").text(tariffFullCostStr)}class n{ALL_CASES=["functions_mobile_app","functions_domain_parking","functions_webhooks","functions_dashboards","functions_turnkey_implementation","functions_checklists","functions_warehouse"];constructor(e,t){this.licenseCount=e,this.checkedInputNames=t}tariffCost(){return e().tariff_costs[this.NAME]}additionalLicenseCount(){return 0}additionalLicenseCost(){return 0}additionalFunctionsCost(){return 0}fullCost(){return this.tariffCost()+this.additionalLicenseCost()+this.additionalFunctionsCost()}inRange(e){return e[0]<=this.licenseCount&&this.licenseCount<=e[1]}getIntersectionSize(e){return e.filter((e=>this.checkedInputNames.has(e))).length}differenceWithAllCases(e){return this.ALL_CASES.filter((t=>!e.includes(t)))}}class i extends n{RANGE_LICENSE1=[0,5];RANGE_LICENSE2=[6,7];AVAILABLE_CASES=["functions_dashboards","functions_checklists","functions_mobile_app","functions_warehouse"];NAME="profi";DEFAULT_COUNT_LICENSE=5;constructor(e,t){super(e,t),this.excluded_cases=this.differenceWithAllCases(this.AVAILABLE_CASES)}isSuitable(){return this.caseFirstCondition()||this.caseSecondCondition()}caseFirstCondition(){return this.inRange(this.RANGE_LICENSE1)&&(0==this.checkedInputNames.size||0==this.getIntersectionSize(this.excluded_cases)&&this.commonOptionsCount(this.AVAILABLE_CASES)<=2)}caseSecondCondition(){return this.inRange(this.RANGE_LICENSE2)&&(0==this.checkedInputNames.size||0==this.getIntersectionSize(this.excluded_cases)&&this.commonOptionsCount(this.AVAILABLE_CASES)<=1)}additionalLicenseCount(){const e=this.licenseCount-this.DEFAULT_COUNT_LICENSE;return this.inRange(this.RANGE_LICENSE2)&&e>0?e:0}additionalLicenseCost(){return 1200*this.additionalLicenseCount()}additionalFunctionsCost(){let e=0;return 1==this.getIntersectionSize([this.AVAILABLE_CASES[0]])&&(e+=3e3),1==this.getIntersectionSize([this.AVAILABLE_CASES[1]])&&(e+=4e3),1==this.getIntersectionSize([this.AVAILABLE_CASES[2]])&&(e+=2500),1==this.getIntersectionSize([this.AVAILABLE_CASES[3]])&&(e+=5e3),e}commonOptionsCount(e){const t=e.filter((e=>e!=this.AVAILABLE_CASES[3]));return this.getIntersectionSize(t)}}class o extends n{RANGE_LICENSE=[0,24];AVAILABLE_CASES=["functions_dashboards","functions_mobile_app","functions_webhooks","functions_domain_parking","functions_checklists","functions_warehouse"];NAME="expert";DEFAULT_COUNT_LICENSE=10;constructor(e,t){super(e,t),this.excluded_cases=this.differenceWithAllCases(this.AVAILABLE_CASES)}isSuitable(){return 0==this.getIntersectionSize(this.excluded_cases)&&this.inRange(this.RANGE_LICENSE)}additionalLicenseCount(){const e=this.licenseCount-this.DEFAULT_COUNT_LICENSE;return this.inRange(this.RANGE_LICENSE)&&e>0?e:0}additionalLicenseCost(){return 1500*this.additionalLicenseCount()}additionalFunctionsCost(){let e=0;return 1==this.getIntersectionSize([this.AVAILABLE_CASES[0]])&&(e+=3e3),1==this.getIntersectionSize([this.AVAILABLE_CASES[1]])&&(e+=5e3),1==this.getIntersectionSize([this.AVAILABLE_CASES[4]])&&(e+=2e3),1==this.getIntersectionSize([this.AVAILABLE_CASES[5]])&&(e+=5e3),e}}class r extends n{RANGE_LICENSE=[25,99];AVAILABLE_CASES=["functions_dashboards","functions_mobile_app","functions_webhooks","functions_domain_parking","functions_checklists","functions_warehouse"];NAME="expert30plus";DEFAULT_COUNT_LICENSE=30;constructor(e,t){super(e,t),this.excluded_cases=this.differenceWithAllCases(this.AVAILABLE_CASES)}isSuitable(){return this.inRange(this.RANGE_LICENSE)&&(0==this.checkedInputNames.size||this.getIntersectionSize(this.AVAILABLE_CASES)>=1)&&0==this.getIntersectionSize(this.excluded_cases)}additionalLicenseCount(){const e=this.licenseCount-this.DEFAULT_COUNT_LICENSE;return this.inRange([31,99])&&e>0?e:0}additionalLicenseCost(){return 1300*this.additionalLicenseCount()}additionalFunctionsCost(){let e=0;return 1==this.getIntersectionSize([this.AVAILABLE_CASES[5]])&&(e+=5e3),e}}class s extends n{RANGE_LICENSE=[0,99];NAME="turnkey";DEFAULT_COUNT_LICENSE=20;constructor(e,t){super(e,t)}isSuitable(){return this.inRange(this.RANGE_LICENSE)&&1==this.getIntersectionSize(["functions_turnkey_implementation"])}additionalLicenseCount(){const e=this.licenseCount-this.DEFAULT_COUNT_LICENSE;return this.inRange(this.RANGE_LICENSE)&&e>0?e:0}additionalLicenseCost(){return 2e3*this.additionalLicenseCount()}}class a extends n{RANGE_LICENSE=[100,1/0];NAME="enterprise";constructor(e,t){super(e,t),this.DEFAULT_COUNT_LICENSE=e}isSuitable(){return this.inRange(this.RANGE_LICENSE)}}$(document).on("submit",".tarif-create__form",(()=>{licenseCount=parseInt($(".tarif-create__form-control").val()),isNaN(licenseCount)||(checkedInputNames=new Set,$(".tarif-create__grid-options").find(".checkbox__input:checked").each((function(){checkedInputNames.add($(this).attr("name"))})),tariff=function(e,t){for(tariff of(tariffObjects=[new i(e,t),new o(e,t),new r(e,t),new s(e,t),new a(e,t)],tariffObjects))if(tariff.isSuitable())return tariff;return null}(licenseCount,checkedInputNames),null!==tariff&&t(tariff))}))}(),$(document).on("click","[data-half-period]",(function(e){$currentTarget=$(e.currentTarget),$currentTarget.hasClass("active")||($(".with_discount").hide(),$(".without_discount").removeClass("without_discount").show(),$(".toggle_button").toggleClass("active"))})),$(document).on("click","[data-full-period]",(function(e){$currentTarget=$(e.currentTarget),$currentTarget.hasClass("active")||($(".plan__list-price:not(.with_discount)").addClass("without_discount").show(),$(".with_discount").show(),$(".toggle_button").toggleClass("active"))})),$(document).on("click",".blog-link-info__body a",(function(e){let t;e.preventDefault();let n=$("header").outerHeight(),i=$(this).text();$("h2, h3, h4").each((function(){let e=$(this);$(e).text()==i&&(t=$(e).offset().top-n)})),document.querySelector("html, body").scrollTop=t})),$(document).ready((function(){const e=window.location;if("/blog"!=e.pathname&&"/blog/search"!=e.pathname)return;if("/blog"==e.pathname&&""===e.search)return;const t=$(".blog-listing__grid"),n=$("header").outerHeight(),i=t.offset().top-n-10;$(window).scrollTop(i)})),$((function(){let e=$(".tab-slider__tab--active"),t=e.data("tab-index"),n=$(`[data-tab-index=${t}][data-role="tab_content"]`);const i=$(".button.reviews-page-listing__pag"),o={},r=e=>{o[e].isLoadingReviews=!0,(e=>{const t={current_tab_index:e,count_loaded:n.find(".reviews-page-listing-card").length};return $.get("/customers/reviews",t)})(e).done((t=>{const n=$(`[data-tab-index=${e}][data-role="tab_content"]`),i=t.elements,r=t.isLastPage;i.forEach((e=>{n.append(e)})),o[e].isLastPage=r,s(o[e].isLastPage)})).always((()=>{o[e].isLoadingReviews=!1}))},s=e=>{e?i.addClass("hidden"):i.removeClass("hidden")};$(document).on("click",".tab-slider__tab",(function(){e=$(this),t=e.data("tab-index"),n=$(`[data-tab-index=${t}][data-role="tab_content"]`),o[t]||(o[t]={isLoadingReviews:!1,isLastPage:!0,isActivated:!1}),s(o[t].isLastPage),o[t].isActivated||(r(t),o[t]={isActivated:!0})})),i.on("click",(function(){r(t)})),e.click()})),$((function(){let e=document.querySelectorAll(".youtube-wrapper");for(let t=0;t<e.length;t++)e[t].querySelector(".youtube").addEventListener("click",(function(){let e=document.createElement("iframe");for(let t in this.dataset)e.setAttribute(t,this.dataset[t]);e.setAttribute("src",this.dataset.src+"?rel=0&showinfo=0&autoplay=1"),this.innerHTML="",this.appendChild(e)})),$(e[t]).show()})),$((function(){let e=document.querySelectorAll(".video-tag-wrapper"),t=e=>{let t=e.currentTarget.querySelector(".video-tag"),n=document.createElement("video");for(let e in t.dataset)n.setAttribute(e,t.dataset[e]);e.currentTarget.parentNode.insertBefore(n,e.currentTarget),e.currentTarget.remove()};for(let n=0;n<e.length;n++)e[n].addEventListener("click",t)})),$((function(){$(".registration__capcha").on("checkRegistrationCaptcha",((e,t)=>{grecaptcha.getResponse()?(hideRecaptchaErrorRu(),t(!0)):(showRecaptchaErrorRu(),t(!1))}))})),$((()=>{const e=$("form.registration-new__form"),t=e.find("#lead-continue-button"),n=e.find("#lead-submit-button"),i=e.find("#lead-feilds-step_1"),o=e.find("#lead-feilds-step_2"),r=e.find(".registration-new__steps-num");let s=!1;t.click((async s=>{s.preventDefault();const a=await new Promise((t=>e.trigger("validateStep1",t)));$("#step1_text").hide(),a?(r.text("2"),n.addClass("registration-new__button-link--active"),t.addClass("registration-new__button--hidden"),i.addClass("registration-new__wrapper--hidden"),o.addClass("registration-new__wrapper-two--active")):t.prop("disabled",!0)})),n.click((async t=>{t.preventDefault();const n=await new Promise((t=>e.trigger("validateStep2",t))),i=e.find(".registration__capcha");s=0===i.length||await new Promise((e=>i.trigger("checkRegistrationCaptcha",e))),n&&s&&(e.closest(".registration-new").find(".after-submit-text").show(),e.find("#lead-feilds-step_2").hide(),e.find("#lead-submit-button").hide(),e.submit())})),e.find("input").keydown((e=>{if(t.prop("disabled",!1),13==e.keyCode)return e.preventDefault(),!1}))})),$((()=>{const e=$("form.registration-new__form"),t=(e.find("#lead-continue-button"),e.find("#lead-feilds-step_1")),n=e.find("#lead-feilds-step_2"),i=(e,t,n="")=>{const i="input-new__input--error",o="input-new__icon--error",r=$(e).find(".input-new__text-mistake");return t?($(e).find("input").removeClass(i),$(e).find("img").removeClass(o),r.text("").hide(),!0):($(e).find("input").addClass(i),$(e).find("img").addClass(o),r.text(n).show(),!1)},o=e=>{const t=document.getElementById(e);return"active"===t.getAttribute("data-choose")||($(t).find("button").addClass("dropdown-list__btn--error"),$(t).find("svg").addClass("dropdown-list__img--error"),!1)},r=()=>{const e=$(".registration__checkbox"),t=e.find(".checkbox__box"),n=e.find("input"),i=e.find(".custom-error-text");return n.is(":checked")?(t.removeClass("checkbox__box--error"),i.hide(),!0):(t.addClass("checkbox__box--error"),i.show(),!1)},s=e=>{t.find("[data-validated-field]").each(((t,n)=>{const o=$(n).find("input[id]").attr("id").substr(5);error=e[o],i(n,!error,error)}))};e.on("change","input",(function(){const e=$(this).closest("[data-validated-field]");$(this).hasClass("input-new__input--error")&&i(e,!0),$(this).closest(".registration__checkbox").find(".custom-error-text").hide()})),n.on("click",".dropdown-list__select-label",(function(){const e=$(this).closest(".dropdown-list"),t=e.find(".dropdown-list__title.dropdown-list__title--color").text();e.find('input[type="hidden"]').val(t),e.find("button").removeClass("dropdown-list__btn--error"),e.find("svg").removeClass("dropdown-list__img--error")})),e.on("validateStep1",((t,n)=>{const i=e.serialize();$.get("/leads/validations",i).done((e=>{const{errors:t}=e,i=Object.keys(t).length>0;s(t),n(!i)}))})),e.on("validateStep2",((e,t)=>{const n=$("#lead_additional_params_company"),s=n.closest("label"),a=0!==$(n).val().trim().length;t(![i(s,a,s.data("error")),o("industry-field"),o("employees_count-field"),r()].some((e=>!1===e)))}))})),function(){var e,t,n,i,o=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};(e=jQuery).fn.disableClientSideValidations=function(){return ClientSideValidations.disable(this),this},e.fn.enableClientSideValidations=function(){return this.filter(ClientSideValidations.selectors.forms).each((function(){return ClientSideValidations.enablers.form(this)})),this.filter(ClientSideValidations.selectors.inputs).each((function(){return ClientSideValidations.enablers.input(this)})),this},e.fn.resetClientSideValidations=function(){return this.filter(ClientSideValidations.selectors.forms).each((function(){return ClientSideValidations.reset(this)})),this},e.fn.validate=function(){return this.filter(ClientSideValidations.selectors.forms).each((function(){return e(this).enableClientSideValidations()})),this},e.fn.isValid=function(o){var r;return(r=e(this[0])).is("form")?n(r,o):t(r,i(this[0].name,o))},i=function(e,t){var n,i;if(n=e.match(/\[(\w+_attributes)\].*\[(\w+)\]$/))for(i in t)t[i],i.match("\\["+n[1]+"\\].*\\[\\]\\["+n[2]+"\\]$")&&(e=e.replace(/\[[\da-z_]+\]\[(\w+)\]$/g,"[][$1]"));return t[e]||{}},n=function(t,n){var i;return t.trigger("form:validate:before.ClientSideValidations"),i=!0,t.find(ClientSideValidations.selectors.validate_inputs).each((function(){return e(this).isValid(n)||(i=!1),!0})),i?t.trigger("form:validate:pass.ClientSideValidations"):t.trigger("form:validate:fail.ClientSideValidations"),t.trigger("form:validate:after.ClientSideValidations"),i},t=function(t,n){var i,o,r,s,a,l,c;return t.trigger("element:validate:before.ClientSideValidations"),l=function(){return t.trigger("element:validate:pass.ClientSideValidations").data("valid",null)},s=function(e){return t.trigger("element:validate:fail.ClientSideValidations",e).data("valid",!1),!1},i=function(){return!1!==t.trigger("element:validate:after.ClientSideValidations").data("valid")},r=function(e){var i,o,r,a,l,c,d,u;for(r in d=!0,e)if(i=e[r],n[r]){for(o=0,a=(c=n[r]).length;o<a;o++)if(u=c[o],l=i.call(e,t,u)){d=s(l);break}if(!d)break}return d},t.attr("name").search(/\[([^\]]*?)\]$/)>=0&&(o=t.attr("name").replace(/\[([^\]]*?)\]$/,"[_destroy]"),"1"===e("input[name='"+o+"']").val())?(l(),i()):(!1===t.data("changed")||(t.data("changed",!1),a=ClientSideValidations.validators.local,c=ClientSideValidations.validators.remote,r(a)&&r(c)&&l()),i())},void 0===window.ClientSideValidations&&(window.ClientSideValidations={}),void 0===window.ClientSideValidations.forms&&(window.ClientSideValidations.forms={}),window.ClientSideValidations.selectors={inputs:':input:not(button):not([type="submit"])[name]:visible:enabled',validate_inputs:":input:enabled:visible[data-validate]",forms:"form[data-validate]"},window.ClientSideValidations.reset=function(t){var n,i;for(i in n=e(t),ClientSideValidations.disable(t),t.ClientSideValidations.settings.validators)t.ClientSideValidations.removeError(n.find("[name='"+i+"']"));return ClientSideValidations.enablers.form(t)},window.ClientSideValidations.disable=function(t){var n;return(n=e(t)).off(".ClientSideValidations"),n.is("form")?ClientSideValidations.disable(n.find(":input")):(n.removeData("valid"),n.removeData("changed"),n.filter(":input").each((function(){return e(this).removeAttr("data-validate")})))},window.ClientSideValidations.enablers={form:function(t){var n,i,o,r;for(o in n=e(t),t.ClientSideValidations={settings:window.ClientSideValidations.forms[n.attr("id")],addError:function(e,n){return ClientSideValidations.formBuilders[t.ClientSideValidations.settings.type].add(e,t.ClientSideValidations.settings,n)},removeError:function(e){return ClientSideValidations.formBuilders[t.ClientSideValidations.settings.type].remove(e,t.ClientSideValidations.settings)}},r={"submit.ClientSideValidations":function(e){n.isValid(t.ClientSideValidations.settings.validators)||(e.preventDefault(),e.stopImmediatePropagation())},"ajax:beforeSend.ClientSideValidations":function(e){e.target===this&&n.isValid(t.ClientSideValidations.settings.validators)},"form:validate:after.ClientSideValidations":function(e){ClientSideValidations.callbacks.form.after(n,e)},"form:validate:before.ClientSideValidations":function(e){ClientSideValidations.callbacks.form.before(n,e)},"form:validate:fail.ClientSideValidations":function(e){ClientSideValidations.callbacks.form.fail(n,e)},"form:validate:pass.ClientSideValidations":function(e){ClientSideValidations.callbacks.form.pass(n,e)}})i=r[o],n.on(o,i);return n.find(ClientSideValidations.selectors.inputs).each((function(){return ClientSideValidations.enablers.input(this)}))},input:function(t){var n,i,o,r,s,a;for(r in i=e(t),s=t.form,n=e(s),a={"focusout.ClientSideValidations":function(){e(this).isValid(s.ClientSideValidations.settings.validators)},"change.ClientSideValidations":function(){e(this).data("changed",!0)},"element:validate:after.ClientSideValidations":function(t){ClientSideValidations.callbacks.element.after(e(this),t)},"element:validate:before.ClientSideValidations":function(t){ClientSideValidations.callbacks.element.before(e(this),t)},"element:validate:fail.ClientSideValidations":function(t,n){var i;i=e(this),ClientSideValidations.callbacks.element.fail(i,n,(function(){return s.ClientSideValidations.addError(i,n)}),t)},"element:validate:pass.ClientSideValidations":function(t){var n;n=e(this),ClientSideValidations.callbacks.element.pass(n,(function(){return s.ClientSideValidations.removeError(n)}),t)}})o=a[r],i.filter(":not(:radio):not([id$=_confirmation])").each((function(){return e(this).attr("data-validate",!0)})).on(r,o);return i.filter(":checkbox").on("change.ClientSideValidations",(function(){e(this).isValid(s.ClientSideValidations.settings.validators)})),i.filter("[id$=_confirmation]").each((function(){var t,i,a,l;if(t=e(this),(i=n.find("#"+this.id.match(/(.+)_confirmation/)[1]+":input"))[0]){for(r in l=[],a={"focusout.ClientSideValidations":function(){i.data("changed",!0).isValid(s.ClientSideValidations.settings.validators)},"keyup.ClientSideValidations":function(){i.data("changed",!0).isValid(s.ClientSideValidations.settings.validators)}})o=a[r],l.push(e("#"+t.attr("id")).on(r,o));return l}}))}},window.ClientSideValidations.validators={all:function(){return e.extend({},ClientSideValidations.validators.local,ClientSideValidations.validators.remote)},local:{absence:function(e,t){if(!/^\s*$/.test(e.val()||""))return t.message},presence:function(e,t){if(/^\s*$/.test(e.val()||""))return t.message},acceptance:function(e,t){var n;switch(e.attr("type")){case"checkbox":if(!e.prop("checked"))return t.message;break;case"text":if(e.val()!==((null!=(n=t.accept)?n.toString():void 0)||"1"))return t.message}},format:function(e,t){var n;if(n=this.presence(e,t)){if(!0===t.allow_blank)return;return n}return t.with&&!new RegExp(t.with.source,t.with.options).test(e.val())||t.without&&new RegExp(t.without.source,t.without.options).test(e.val())?t.message:void 0},numericality:function(t,n){var i,o,r,s,a,l;if(l=e.trim(t.val()),!ClientSideValidations.patterns.numericality.test(l)){if(!0===n.allow_blank&&this.presence(t,{message:n.messages.numericality}))return;return n.messages.numericality}if(l=l.replace(new RegExp("\\"+ClientSideValidations.number_format.delimiter,"g"),"").replace(new RegExp("\\"+ClientSideValidations.number_format.separator,"g"),"."),n.only_integer&&!/^[+-]?\d+$/.test(l))return n.messages.only_integer;for(o in i={greater_than:">",greater_than_or_equal_to:">=",equal_to:"==",less_than:"<",less_than_or_equal_to:"<="},s=e(t[0].form),i)if(a=i[o],null!=n[o]){if(null==(r=!isNaN(parseFloat(n[o]))&&isFinite(n[o])?n[o]:1===s.find("[name*="+n[o]+"]").length?s.find("[name*="+n[o]+"]").val():void 0)||""===r)return;if(!new Function("return "+l+" "+a+" "+r)())return n.messages[o]}return!n.odd||parseInt(l,10)%2?n.even&&parseInt(l,10)%2?n.messages.even:void 0:n.messages.odd},length:function(e,t){var n,i,o,r,s,a,l;if(l=t.js_tokenizer||"split('')",a=new Function("element","return (element.val()."+l+" || '').length")(e),n={is:"==",minimum:">=",maximum:"<="},(i={}).message=t.is?t.messages.is:t.minimum?t.messages.minimum:void 0,r=this.presence(e,i)){if(!0===t.allow_blank)return;return r}for(o in n)if(s=n[o],t[o]&&!new Function("return "+a+" "+s+" "+t[o])())return t.messages[o]},exclusion:function(e,t){var n,i,r,s,a;if(i=this.presence(e,t)){if(!0===t.allow_blank)return;return i}return t.in&&(s=e.val(),o.call(function(){var e,n,i,o;for(o=[],e=0,n=(i=t.in).length;e<n;e++)r=i[e],o.push(r.toString());return o}(),s)>=0)||t.range&&(n=t.range[0],a=t.range[1],e.val()>=n&&e.val()<=a)?t.message:void 0},inclusion:function(e,t){var n,i,r,s,a;if(i=this.presence(e,t)){if(!0===t.allow_blank)return;return i}if(t.in){if(s=e.val(),o.call(function(){var e,n,i,o;for(o=[],e=0,n=(i=t.in).length;e<n;e++)r=i[e],o.push(r.toString());return o}(),s)>=0)return;return t.message}if(t.range){if(n=t.range[0],a=t.range[1],e.val()>=n&&e.val()<=a)return;return t.message}},confirmation:function(t,n){if(!new RegExp("^"+t.val()+"$",n.case_sensitive?"":"i").test(e("#"+t.attr("id")+"_confirmation").val()))return n.message},uniqueness:function(t,n){var i,o,r,s,a,l,c;if(r=t.attr("name"),/_attributes\]\[\d/.test(r)&&(s=(o=r.match(/^(.+_attributes\])\[\d+\](.+)$/))[1],a=o[2],c=t.val(),s&&a&&(i=t.closest("form"),l=!0,i.find(':input[name^="'+s+'"][name$="'+a+'"]').each((function(){if(e(this).attr("name")!==r){if(e(this).val()===c)return l=!1,e(this).data("notLocallyUnique",!0);if(e(this).data("notLocallyUnique"))return e(this).removeData("notLocallyUnique").data("changed",!0)}})),!l)))return n.message}},remote:{uniqueness:function(t,n){var i,o,r,s,a,l,c,d;if(r=ClientSideValidations.validators.local.presence(t,n)){if(!0===n.allow_blank)return;return r}if((i={}).case_sensitive=!!n.case_sensitive,n.id&&(i.id=n.id),n.scope)for(o in i.scope={},a=n.scope)l=a[o],d=t.attr("name").replace(/\[\w+\]$/,"["+o+"]"),c=e("[name='"+d+"']"),e("[name='"+d+"']:checkbox").each((function(){if(this.checked)return c=this})),c[0]&&c.val()!==l?(i.scope[o]=c.val(),c.unbind("change."+t.id).bind("change."+t.id,(function(){return t.trigger("change.ClientSideValidations"),t.trigger("focusout.ClientSideValidations")}))):i.scope[o]=l;if(/_attributes\]/.test(t.attr("name"))?(s=t.attr("name").match(/\[\w+_attributes\]/g).pop().match(/\[(\w+)_attributes\]/).pop(),s+=/(\[\w+\])$/.exec(t.attr("name"))[1]):s=t.attr("name"),n.class&&(s=n.class+"["+s.split("[")[1]),i[s]=t.val(),200===e.ajax({url:ClientSideValidations.remote_validators_url_for("uniqueness"),data:i,async:!1,cache:!1}).status)return n.message}}},window.ClientSideValidations.remote_validators_url_for=function(e){return null!=ClientSideValidations.remote_validators_prefix?"//"+window.location.host+"/"+ClientSideValidations.remote_validators_prefix+"/validators/"+e:"//"+window.location.host+"/validators/"+e},window.ClientSideValidations.disableValidators=function(){var e,t,n;if(void 0!==window.ClientSideValidations.disabled_validators){for(n in t=[],e=window.ClientSideValidations.validators.remote)e[n],o.call(window.ClientSideValidations.disabled_validators,n)>=0?t.push(delete window.ClientSideValidations.validators.remote[n]):t.push(void 0);return t}},window.ClientSideValidations.formBuilders={"ActionView::Helpers::FormBuilder":{add:function(t,n,i){var o,r,s,a;return o=e(t[0].form),!1!==t.data("valid")&&null==o.find("label.message[for='"+t.attr("id")+"']")[0]&&(r=e(n.input_tag),a=e(n.label_tag),s=o.find("label[for='"+t.attr("id")+"']:not(.message)"),t.attr("autofocus")&&t.attr("autofocus",!1),t.before(r),r.find("span#input_tag").replaceWith(t),r.find("label.message").attr("for",t.attr("id")),a.find("label.message").attr("for",t.attr("id")),a.insertAfter(s),a.find("label#label_tag").replaceWith(s)),o.find("label.message[for='"+t.attr("id")+"']").text(i)},remove:function(t,n){var i,o,r,s,a;if(o=e(t[0].form),i=e(n.input_tag).attr("class"),r=t.closest("."+i.replace(/\ /g,".")),a=(s=o.find("label[for='"+t.attr("id")+"']:not(.message)")).closest("."+i),r[0])return r.find("#"+t.attr("id")).detach(),r.replaceWith(t),s.detach(),a.replaceWith(s)}}},window.ClientSideValidations.patterns={numericality:/^(-|\+)?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d*)?$/},window.ClientSideValidations.callbacks={element:{after:function(){},before:function(){},fail:function(e,t,n){return n()},pass:function(e,t){return t()}},form:{after:function(){},before:function(){},fail:function(){},pass:function(){}}},window.ClientSideValidations.event=null!=window.Turbolinks&&window.Turbolinks.supported?null!=window.Turbolinks.EVENTS?"page:change":"turbolinks:load":"ready",e(document).bind(window.ClientSideValidations.event,(function(){return ClientSideValidations.disableValidators(),e(ClientSideValidations.selectors.forms).validate()}))}.call(this),function(){window.ClientSideValidations.callbacks.form.before=function(e){return $(e).resetClientSideValidations(),e.attr("data-submit",!0)},window.ClientSideValidations.callbacks.element.fail=function(e,t,n){if(e.closest("form").attr("data-submit")||!e.attr("data-validate-on-submit"))return n()},window.ClientSideValidations.callbacks.form.after=function(e){return e.removeAttr("data-submit")},window.ClientSideValidations.validators.remote.email_domain=function(e,t){var n;if(n=e.attr("data-validation-path"),200!==$.ajax({url:n,data:{email_domain:e.val()},async:!1}).status)return t.message}}.call(this),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],(function(n){return t(e,e.document,void 0,n)})):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(e,e.document,void 0,require("jquery")):t(e,e.document,void 0,e.jQuery)}("undefined"!=typeof window?window:this,(function(e,t,n,i){"use strict";var o,r,s="OverlayScrollbars",a="object",l="function",c="array",d="string",u="boolean",f="number",p="null",h="class",m="style",v="length",g="prototype",y="offsetHeight",b="clientHeight",w="scrollHeight",x="offsetWidth",S="clientWidth",C="scrollWidth",k="hasOwnProperty",T={o:{},u:{},s:["-webkit-","-moz-","-o-","-ms-"],v:["WebKit","Moz","O","MS"],p:function(e){var i=this.u;if(i[e])return i[e];for(var o,r,s=this.s,a=this.m(e),l=t.createElement("div")[m],c=0,d=0;c<s.length;c++)for(r=s[c].replace(/-/g,""),o=[e,s[c]+e,r+a,this.m(r)+a],d=0;d<o[v];d++)if(l[o[d]]!==n)return i[e]=o[d],o[d];return null},g:function(t,n,i){var o=this.v,r=this.o,s=0,a=r[t];if(!a){for(a=e[t];s<o[v];s++)a=a||e[(n?o[s]:o[s].toLowerCase())+this.m(t)];r[t]=a}return a||i},m:function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},_={wW:function(){return e.innerWidth||t.documentElement[S]||t.body[S]},wH:function(){return e.innerHeight||t.documentElement[b]||t.body[b]},mO:function(){return T.g("MutationObserver",!0)},rO:function(){return T.g("ResizeObserver",!0)},rAF:function(){return T.g("requestAnimationFrame",!1,(function(t){return e.setTimeout(t,1e3/60)}))},cAF:function(){return T.g("cancelAnimationFrame",!1,(function(t){return e.clearTimeout(t)}))},now:function(){return Date.now&&Date.now()||(new Date).getTime()},stpP:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},prvD:function(e){e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1},page:function(e){var i="page",o="client",r="X",s=((e=e.originalEvent||e).target||e.srcElement||t).ownerDocument||t,a=s.documentElement,l=s.body;if(e.touches===n)return!e[i+r]&&e[o+r]&&null!=e[o+r]?{x:e[o+r]+(a&&a.scrollLeft||l&&l.scrollLeft||0)-(a&&a.clientLeft||l&&l.clientLeft||0),y:e[o+"Y"]+(a&&a.scrollTop||l&&l.scrollTop||0)-(a&&a.clientTop||l&&l.clientTop||0)}:{x:e[i+r],y:e.pageY};var c=e.touches[0];return{x:c[i+r],y:c.pageY}},mBtn:function(e){var t=e.button;return e.which||t===n?e.which:1&t?1:2&t?3:4&t?2:0},inA:function(e,t){for(var n=0;n<t[v];n++)try{if(t[n]===e)return n}catch(e){}return-1},isA:function(e){var t=Array.isArray;return t?t(e):this.type(e)==c},type:function(e){return e===n||null===e?e+"":Object[g].toString.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase()},bind:function(e,t){if(typeof e!=l)throw"Can't bind function!";var n=g,i=Array[n].slice.call(arguments,2),o=function(){},r=function(){return e.apply(this instanceof o?this:t,i.concat(Array[n].slice.call(arguments)))};return e[n]&&(o[n]=e[n]),r[n]=new o,r}},$=Math,E=i,A=(i.easing,i),L=(o=[],r="__overlayScrollbars__",function(e,t){var n=arguments[v];if(n<1)return o;if(t)e[r]=t,o.push(e);else{var i=_.inA(e,o);if(-1<i){if(!(1<n))return o[i][r];delete e[r],o.splice(i,1)}}}),N=function(){function i(){j||(j=new o(F._)),D||(D=new r(j))}function o(n){function i(e){return{x:e[y]-e[b],y:e[x]-e[S]}}var o=this,r="overflow",s=A("body"),a=A('<div id="os-dummy-scrollbar-size"><div></div></div>'),l=a[0],c=A(a.children("div").eq(0));s.append(a),a.hide().show();var d,u,f,p,h,g,k,E,N,j=i(l),D={x:0===j.x,y:0===j.y};A.extend(o,{defaultOptions:n,autoUpdateLoop:!1,autoUpdateRecommended:!_.mO(),nativeScrollbarSize:j,nativeScrollbarIsOverlaid:D,nativeScrollbarStyling:function(){var t=!1;a.addClass("os-viewport-native-scrollbars-invisible");try{t="none"===a.css("scrollbar-width")||"none"===e.getComputedStyle(l,"::-webkit-scrollbar").getPropertyValue("display")}catch(e){}return t}(),overlayScrollbarDummySize:{x:30,y:30},msie:(u=e.navigator.userAgent,f="indexOf",p="substring",h=u[f]("MSIE "),g=u[f]("Trident/"),k=u[f]("Edge/"),E=u[f]("rv:"),N=parseInt,0<h?d=N(u[p](h+5,u[f](".",h)),10):0<g?d=N(u[p](E+3,u[f](".",E)),10):0<k&&(d=N(u[p](k+5,u[f](".",k)),10)),d),cssCalc:function(){for(var e,n=t.createElement("div")[m],i=-1;i<T.s[v];i++)if(e=i<0?"calc":T.s[i]+"calc",n.cssText="width:"+e+"(1px);",n[v])return e;return null}(),restrictedMeasuring:function(){a.css(r,"hidden");var e=l[C],t=l[w];a.css(r,"visible");var n=l[C],i=l[w];return e-n!=0||t-i!=0}(),rtlScrollBehavior:function(){a.css({"overflow-y":"hidden","overflow-x":"scroll",direction:"rtl"}).scrollLeft(0);var e=a.offset(),t=c.offset();a.scrollLeft(999);var n=c.offset();return{i:e.left===t.left,n:t.left-n.left==0}}(),supportTransform:null!==T.p("transform"),supportTransition:null!==T.p("transition"),supportPassiveEvents:function(){var t=!1;try{e.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){t=!0}}))}catch(e){}return t}(),supportResizeObserver:!!_.rO(),supportMutationObserver:!!_.mO()}),a.removeAttr(m).remove(),function(){function t(){var t=e.screen.deviceXDPI||0,n=e.screen.logicalXDPI||1;return e.devicePixelRatio||t/n}if(!D.x||!D.y){var n=$.abs,r=_.wW(),l=_.wH(),c=t();A(e).on("resize",(function(){if(0<L().length){var e=_.wW(),d=_.wH(),u=e-r,f=d-l;if(0===u&&0===f)return;var p,h=$.round(e/(r/100)),m=$.round(d/(l/100)),v=n(u),g=n(f),y=n(h),b=n(m),w=t(),x=2<v&&2<g,S=!function(e,t){var i=n(e),o=n(t);return!(i===o||i+1===o||i-1===o)}(y,b),C=x&&S&&w!==c&&0<c,k=o.nativeScrollbarSize;C&&(s.append(a),p=o.nativeScrollbarSize=i(a[0]),a.remove(),k.x===p.x&&k.y===p.y||A.each(L(),(function(){L(this)&&L(this).update("zoom")}))),r=e,l=d,c=w}}))}}()}function r(e){var t,i=A.inArray,o=_.now,r=v,s=[],a=[],l=!1,c=33,d=o(),u=function(){if(0<s[r]&&l){t=_.rAF()((function(){u()}));var e,i,f,p,h,m,v=o(),g=v-d;if(c<g){d=v-g%c,e=33;for(var y=0;y<s[r];y++)(i=s[y])!==n&&(p=(f=i.options()).autoUpdate,h=$.max(1,f.autoUpdateInterval),m=o(),(!0===p||null===p)&&m-a[y]>h&&(i.update("auto"),a[y]=new Date(m+=h)),e=$.max(1,$.min(e,h)));c=e}}else c=33};this.add=function(t){-1===i(t,s)&&(s.push(t),a.push(o()),0<s[r]&&!l&&(l=!0,e.autoUpdateLoop=l,u()))},this.remove=function(o){var c=i(o,s);-1<c&&(a.splice(c,1),s.splice(c,1),0===s[r]&&l&&(l=!1,e.autoUpdateLoop=l,t!==n&&(_.cAF()(t),t=-1)))}}function N(i,o,r,p,N){function j(e,t,n,i,o){for(var r=i?"removeEventListener":"addEventListener",s=t.split(yi),a=0;a<s[v];a++)e[0][r](s[a],n,{passive:!o})}function D(e,t){if(e)if(t){var i=3333333,o=_.rO(),r="animationstart mozAnimationStart webkitAnimationStart MSAnimationStart",s="childNodes",l=function(){e[Ci](i)[Si](tt?Ae.n?-i:Ae.i?0:i:i),t()};if(Pe)((H=e.append(pe(no+" observed")).contents()[0])[Di]=new o(l)).observe(H);else if(9<Ne||!Le){e.prepend(pe(no,pe({className:io,dir:"ltr"},pe(io,pe(oo))+pe(io,pe({className:oo,style:"width: 200%; height: 200%"})))));var c,d,u,f,m=e[0][s][0][s][0],v=A(m[s][1]),g=A(m[s][0]),b=A(g[0][s][0]),w=m[x],S=m[y],C=p.nativeScrollbarSize,k=function(){g[Si](i)[Ci](i),v[Si](i)[Ci](i)},T=function(){d=0,c&&(w=u,S=f,l())},$=function(e){return u=m[x],f=m[y],c=u!=w||f!=S,e&&c&&!d?(_.cAF()(d),d=_.rAF()(T)):e||T(),k(),e&&(_.prvD(e),_.stpP(e)),!1},E={},L={};ae(L,di,[-2*(C.y+1),-2*C.x,-2*C.y,-2*(C.x+1)]),A(m).css(L),g.on(pi,$),v.on(pi,$),e.on(r,(function(){$(!1)})),E[ai]=i,E[li]=i,b.css(E),k()}else{var N=Lt.attachEvent,j=Ne!==n;if(N)e.prepend(pe(no)),we(e,gi+no)[0].attachEvent("onresize",l);else{var D=Lt.createElement(a);D.setAttribute("tabindex","-1"),D.setAttribute(h,no),D.onload=function(){var e=this.contentDocument.defaultView;e.addEventListener("resize",l),e.document.documentElement.style.display="none"},D.type="text/html",j&&e.prepend(D),D.data="about:blank",j||e.prepend(D),e.on(r,l)}}if(e[0]===Ot){var O=function(){var t=pt.css("direction"),n={},o=0,r=!1;return t!==Kt&&(o="ltr"===t?(n[oi]=0,n[ni]=ui,i):(n[oi]=ui,n[ni]=0,Ae.n?-i:Ae.i?0:i),mt.children().eq(0).css(n),e[Si](o)[Ci](i),Kt=t,r=!0),r};O(),e.on(pi,(function(e){return O()&&U(),_.prvD(e),_.stpP(e),!1}))}}else if(Pe){var H,I=(H=e.contents()[0])[Di];I&&(I.disconnect(),delete H[Di])}else be(e.children(gi+no).eq(0))}function O(){qe&&!En&&(kn.observe(jt,{attributes:!0,attributeOldValue:!0,attributeFilter:Lo}),Tn.observe(Ve?Nt:zt,{attributes:!0,attributeOldValue:!0,subtree:!Ve,childList:!Ve,characterData:!Ve,attributeFilter:Ve?Ao:Lo}),En=!0)}function H(){qe&&En&&(kn.disconnect(),Tn.disconnect(),En=!1)}function I(){if(!nt){var e,t={w:Ot[C],h:Ot[w]};e=me(t,dn),dn=t,e&&U({L:!0})}}function z(){zn&&ee(!0)}function P(){zn&&!ut.hasClass(xo)&&ee(!1)}function q(){In&&(ee(!0),clearTimeout(jn),jn=setTimeout((function(){In&&!Fe&&ee(!1)}),100))}function R(e){var t=e?"off":"on",n=function(n,i,o){ze?j(n,i,o,e):n[t](i,o)};In&&!e?n(pt,_i,q):(e&&n(pt,_i,q),n(pt,$i,z),n(pt,Ei,P)),Me||e||pt.one("mouseover",z)}function M(e){return _.prvD(e),!1}function V(){U({N:!0})}function W(){var e={};return We&&bt&&(e.w=de(bt.css(ri+ai)),e.h=de(bt.css(ri+li)),e.c=me(e,xn),e.f=!0),!!(xn=e).c}function B(e,t){var i=t!==n&&null!==t?t.split(yi):di,o=e!==n&&null!==e?e.split(yi):di;if(i===di&&o===di)return!1;var r,s,a,l,c,d=function(e,t){var n,i,o=[],r=[];for(n=0;n<e.length;n++)o[e[n]]=!0;for(n=0;n<t.length;n++)o[t[n]]?delete o[t[n]]:o[t[n]]=!0;for(i in o)r.push(i);return r}(o,i),u=!1,f=yn!==n&&null!==yn?yn.split(yi):[di],p=gn!==n&&null!==gn?gn.split(yi):[di],h=Se(So,d);for(-1<h&&d.splice(h,1),s=0;s<d.length;s++)if(0!==(r=d[s]).indexOf(Hi)){for(c=l=!0,a=0;a<f.length;a++)if(r===f[a]){l=!1;break}for(a=0;a<p.length;a++)if(r===p[a]){c=!1;break}if(l&&c){u=!0;break}}return u}function X(){if(!nt){var e,t,n,i,o=!an,r=Gn.w,s=Gn.h,a={},l=Vt||o;return a[ri+ai]=di,a[ri+li]=di,a[ai]=ui,ft.css(a),e=Nt[x],t=l?$.max(e,Nt[C]-1):1,a[ai]=Vt?ui:hi,a[ri+ai]=hi,a[li]=ui,ft.css(a),n=Nt[y],i=$.max(n,Nt[w]-1),a[ai]=t,a[li]=i,xt.css(a),a[ri+ai]=r,a[ri+li]=s,ft.css(a),{X:e,Y:n,$:t,K:i}}}function U(e){clearTimeout(at),e=e||{},To.L|=e.L,To.N|=e.N,To.R|=e.R;var t,i=_.now(),o=!!To.L,r=!!To.N,s=!!To.R,a=e.H,l=0<_o&&Me&&!Fe&&!s&&!a&&i-st<_o&&!Wt&&!Vt;if(l&&(at=setTimeout(U,_o)),!(Fe||l||nt&&!a||Me&&!s&&(t=pt.is(":hidden"))||"inline"===pt.css("display"))){st=i,To={},!je||$e.x&&$e.y?Oe=ve({},p.nativeScrollbarSize):(Oe.x=0,Oe.y=0),Jn={x:3*(Oe.x+($e.x?0:3)),y:3*(Oe.y+($e.y?0:3))};var c=function(){return me.apply(this,[].slice.call(arguments).concat([s]))},d={x:gt[Si](),y:gt[Ci]()},u=rt.scrollbars,f=rt.textarea,h=u.visibility,g=c(h,un),k=u.autoHide,T=c(k,fn),E=u.clickScrolling,L=c(E,pn),I=u.dragScrolling,z=c(I,hn),P=rt.className,q=c(P,gn),M=rt.resize,F=c(M,mn)&&!We,V=rt.paddingAbsolute,B=c(V,Qt),Y=rt.clipAlways,G=c(Y,Zt),J=rt.sizeAutoCapable&&!We,K=c(J,sn),Q=rt.nativeScrollbarsOverlaid.showNativeScrollbars,re=c(Q,on),le=rt.autoUpdate,ce=c(le,rn),ue=rt.overflowBehavior,he=c(ue,tn,s),be=f.dynWidth,we=c(wn,be),xe=f.dynHeight,Se=c(bn,xe);if(On="n"===k,Hn="s"===k,In="m"===k,zn="l"===k,Dn=u.autoHideDelay,yn=gn,Mn="n"===M,Fn="b"===M,Vn="h"===M,Wn="v"===M,vn=rt.normalizeRTL,Q=Q&&$e.x&&$e.y,un=h,fn=k,pn=E,hn=I,gn=P,mn=M,Qt=V,Zt=Y,sn=J,on=Q,rn=le,tn=ve({},ue),wn=be,bn=xe,Mt=Mt||{x:!1,y:!1},q&&(ye(pt,yn+yi+So),ge(pt,P!==n&&null!==P&&0<P.length?P:So)),ce&&(!0===le||null===le&&Le?(H(),N.add(ke)):(N.remove(ke),O())),K)if(J)if(wt?wt.show():(wt=A(pe(eo)),vt.before(wt)),Ye)ht.show();else{ht=A(pe(to)),Dt=ht[0],wt.before(ht);var Ce={w:-1,h:-1};D(ht,(function(){var e={w:Dt[x],h:Dt[y]};me(e,Ce)&&(Me&&Wt&&0<e.h||Vt&&0<e.w||Me&&!Wt&&0===e.h||!Vt&&0===e.w)&&U(),Ce=e})),Ye=!0,null!==De&&ht.css(li,De+"(100% + 1px)")}else Ye&&ht.hide(),wt&&wt.hide();s&&(mt.find("*").trigger(pi),Ye&&ht.find("*").trigger(pi));var Te,_e=c(t=t===n?pt.is(":hidden"):t,Cn),Ne=!!Ve&&"off"!==ft.attr("wrap"),He=c(Ne,an),Ie=pt.css("direction"),Pe=c(Ie,Jt),qe=pt.css("box-sizing"),Be=c(qe,Xt),Xe={c:s,t:de(pt.css(Zn+ti)),r:de(pt.css(Zn+ni)),b:de(pt.css(Zn+ii)),l:de(pt.css(Zn+oi))};try{Te=Ye?Dt.getBoundingClientRect():null}catch(e){return}Ue="border-box"===qe;var it=(tt="rtl"===Ie)?oi:ni,ot=tt?ni:oi,lt=!1,ct=!(!Ye||"none"===pt.css(ci))&&0===$.round(Te.right-Te.left)&&(!!V||0<jt[S]-Ge);if(J&&!ct){var dt=jt[x],ut=wt.css(ai);wt.css(ai,ui);var Ct=jt[x];wt.css(ai,ut),(lt=dt!==Ct)||(wt.css(ai,dt+1),Ct=jt[x],wt.css(ai,ut),lt=dt!==Ct)}var kt=(ct||lt)&&J&&!t,Tt=c(kt,Vt),_t=!kt&&Vt,$t=!(!Ye||!J||t)&&0===$.round(Te.bottom-Te.top),Et=c($t,Wt),At=!$t&&Wt,Lt="-"+ai,Ot=kt&&Ue||!Ue,Kt=$t&&Ue||!Ue,cn={c:s,t:Kt?de(pt.css(ei+ti+Lt),!0):0,r:Ot?de(pt.css(ei+ni+Lt),!0):0,b:Kt?de(pt.css(ei+ii+Lt),!0):0,l:Ot?de(pt.css(ei+oi+Lt),!0):0},dn={c:s,t:de(pt.css(Qn+ti)),r:de(pt.css(Qn+ni)),b:de(pt.css(Qn+ii)),l:de(pt.css(Qn+oi))},Sn={h:String(pt.css(si+li)),w:String(pt.css(si+ai))},kn={},Tn={},_n=function(){return{w:jt[S],h:jt[b]}},$n=function(){return{w:Ht[x]+$.max(0,zt[S]-zt[C]),h:Ht[y]+$.max(0,zt[b]-zt[w])}},An=Ge=Xe.l+Xe.r,Nn=Je=Xe.t+Xe.b;if(An*=V?1:0,Nn*=V?1:0,Xe.c=c(Xe,Ut),Ke=cn.l+cn.r,Qe=cn.t+cn.b,cn.c=c(cn,Yt),Ze=dn.l+dn.r,et=dn.t+dn.b,dn.c=c(dn,Gt),Sn.ih=de(Sn.h),Sn.iw=de(Sn.w),Sn.ch=-1<Sn.h.indexOf("px"),Sn.cw=-1<Sn.w.indexOf("px"),Sn.c=c(Sn,Bt),Cn=t,an=Ne,Jt=Ie,Xt=qe,Vt=kt,Wt=$t,Ut=Xe,Yt=cn,Gt=dn,Bt=Sn,Pe&&Ye&&ht.css(ci,ot),Xe.c||Pe||B||Tt||Et||Be||K){var jn={},Pn={};ae(Tn,Qn,[-Xe.t,-Xe.r,-Xe.b,-Xe.l]),V?(ae(jn,di,[Xe.t,Xe.r,Xe.b,Xe.l]),ae(Ve?Pn:kn,Zn)):(ae(jn,di),ae(Ve?Pn:kn,Zn,[Xe.t,Xe.r,Xe.b,Xe.l])),vt.css(jn),ft.css(Pn)}Gn=$n();var qn=!!Ve&&X(),Rn=Ve&&qn?{w:be?qn.$:qn.X,h:xe?qn.K:qn.Y}:{};if($t&&(Et||B||Be||Sn.c||Xe.c||cn.c)?(kn[si+li]=Sn.ch?Sn.ih-Nn+(Ue?-Qe:Je):di,kn[li]=ui):(Et||B)&&(kn[si+li]=di,kn[li]=hi),kt&&(Tt||B||Be||Sn.c||Xe.c||cn.c||Pe)?(kn[si+ai]=Sn.cw?Sn.iw-An+(Ue?-Ke:Ge)+($e.y?Ee.y:0):di,kn[ai]=ui,Tn[si+ai]=hi):(Tt||B)&&(kn[si+ai]=di,kn[ai]=hi,kn[ci]=di,Tn[si+ai]=di),kt?(Sn.cw||(kn[si+ai]=di),Tn[ai]=ui,kn[ai]=ui,kn[ci]=ot):Tn[ai]=di,Tn[li]=$t?(Sn.ch||(kn[si+li]=di),Rn.h||zt[b]):di,J&&wt.css(Tn),yt.css(kn),kn={},Tn={},o||r||Pe||Be||B||Tt||kt||Et||$t||Sn.c||re||he||G||F||g||T||z||L||we||Se||He){var Un="overflow",Yn=Un+"-x",Kn=Un+"-y",fi=Re?$e.x||$e.y||Gn.w<Jn.y||Gn.h<Jn.x||$t||_e:$t,mi={},vi=Mt.y&&Ft.ys&&!Q?$e.y?gt.css(it):-Oe.y:0,gi=Mt.x&&Ft.xs&&!Q?$e.x?gt.css(ii):-Oe.x:0;ae(mi,di),gt.css(mi),fi&&yt.css(Un,"hidden");var bi=fe(),wi=Re&&!fi?It:bi,xi={w:Rn.w||bi[S],h:Rn.h||bi[b]},Ti=$.max(bi[C],wi[C]),_i=$.max(bi[w],wi[w]);mi[ii]=At?di:gi,mi[it]=_t?di:vi,gt.css(mi),Gn=$n();var $i=_n(),Ei={w:$.max((kt?xi.w:Ti)+An,$i.w),h:$.max(($t?xi.h:_i)+Nn,$i.h)};if(Ei.c=c(Ei,en),en=Ei,J){(Ei.c||$t||kt)&&(Tn[ai]=Ei.w,Tn[li]=Ei.h,Ve||(xi={w:bi[S],h:bi[b]}));var Ai={},Li=function(e){var t=oe(e),n=t.q,i=t.G,o=e?kt:$t,r=e?Ke:Qe,s=e?Ge:Je,a=e?Ze:et,l=Tn[i]+(Ue?r:-s);(!o||!o&&cn.c)&&(Tn[i]=$i[n]-(Ue?0:s+r)-1-a),o&&Sn["c"+n]&&Sn["i"+n]===l&&(Tn[i]=l+(Ue?0:s)+1),o&&xi[n]<Gn[n]&&(!e||Ve&&!Ne)&&(Ve&&(Ai[i]=de(xt.css(i))-1),Tn[i]-=1),0<xi[n]&&(Tn[i]=$.max(1,Tn[i]))};Li(!0),Li(!1),Ve&&xt.css(Ai),wt.css(Tn)}kt&&(kn[ai]=hi),!kt||Ue||En||(kn[ci]="none"),yt.css(kn),kn={};var Ni={w:$.max(bi[C],wi[C]),h:$.max(bi[w],wi[w])};Ni.c=r=c(Ni,qt),qt=Ni,fi&&yt.css(Un,di),Gn=$n(),o=c($i=_n(),Pt),Pt=$i;var ji=Ve&&(0===Gn.w||0===Gn.h),Di=nn,Oi={},Hi={},Ii={},zi={},Pi={},qi={},Xi={},Ui=Ht.getBoundingClientRect(),Yi=function(e){var t=oe(e),n=oe(!e).B,i=t.B,o=t.q,r=t.G,s=pi+t.J+"Max",a=Ui[r]?$.abs(Ui[r]-Gn[o]):0;Oi[i]="v-s"===ue[i],Hi[i]="v-h"===ue[i],Ii[i]="s"===ue[i],zi[i]=$.max(0,$.round(100*(Ni[o]-Gn[o]))/100),zi[i]*=ji||0===It[s]&&0<a&&a<1?0:1,Pi[i]=0<zi[i],qi[i]=Oi[i]||Hi[i]?Pi[n]&&!Oi[n]&&!Hi[n]:Pi[i],qi[i+"s"]=!!qi[i]&&(Ii[i]||Oi[i]),Xi[i]=Pi[i]&&qi[i+"s"]};if(Yi(!0),Yi(!1),zi.c=c(zi,nn),nn=zi,Pi.c=c(Pi,Mt),Mt=Pi,qi.c=c(qi,Ft),Ft=qi,$e.x||$e.y){var Gi,Ki={},Qi={},no=s;(Pi.x||Pi.y)&&(Qi.w=$e.y&&Pi.y?Ni.w+Ee.y:di,Qi.h=$e.x&&Pi.x?Ni.h+Ee.x:di,no=c(Qi,Rt),Rt=Qi),(Pi.c||qi.c||Ni.c||Pe||Tt||Et||kt||$t||re)&&(kn[Qn+ot]=kn[ei+ot]=di,Gi=function(e){var t=oe(e),n=oe(!e),i=t.B,o=e?ii:it,r=e?$t:kt;$e[i]&&Pi[i]&&qi[i+"s"]?(kn[Qn+o]=r?Q?di:Ee[i]:di,kn[ei+o]=e&&r||Q?di:Ee[i]+"px solid transparent"):(Qi[n.q]=kn[Qn+o]=kn[ei+o]=di,no=!0)},je?Q?ye(gt,Ji):ge(gt,Ji):(Gi(!0),Gi(!1))),Q&&(Qi.w=Qi.h=di,no=!0),no&&!je&&(Ki[ai]=qi.y?Qi.w:di,Ki[li]=qi.x?Qi.h:di,bt||(bt=A(pe(Zi)),gt.prepend(bt)),bt.css(Ki)),yt.css(kn)}var io,oo={};if(jn={},(o||Pi.c||qi.c||Ni.c||he||Be||re||Pe||G||Et)&&(oo[ot]=di,(io=function(e){var t=oe(e),n=oe(!e),i=t.B,o=t.Z,r=e?ii:it,s=function(){oo[r]=di,Xn[n.q]=0};Pi[i]&&qi[i+"s"]?(oo[Un+o]=pi,Q||je?s():(oo[r]=-($e[i]?Ee[i]:Oe[i]),Xn[n.q]=$e[i]?Ee[n.B]:0)):(oo[Un+o]=di,s())})(!0),io(!1),!je&&(Gn.h<Jn.x||Gn.w<Jn.y)&&(Pi.x&&qi.x&&!$e.x||Pi.y&&qi.y&&!$e.y)?(oo[Zn+ti]=Jn.x,oo[Qn+ti]=-Jn.x,oo[Zn+ot]=Jn.y,oo[Qn+ot]=-Jn.y):oo[Zn+ti]=oo[Qn+ti]=oo[Zn+ot]=oo[Qn+ot]=di,oo[Zn+it]=oo[Qn+it]=di,Pi.x&&qi.x||Pi.y&&qi.y||ji?Ve&&ji&&(jn[Yn]=jn[Kn]="hidden"):(!Y||Hi.x||Oi.x||Hi.y||Oi.y)&&(Ve&&(jn[Yn]=jn[Kn]=di),oo[Yn]=oo[Kn]="visible"),vt.css(jn),gt.css(oo),oo={},(Pi.c||Be||Tt||Et)&&(!$e.x||!$e.y))){var ro=zt[m];ro.webkitTransform="scale(1)",ro.display="run-in",zt[y],ro.display=di,ro.webkitTransform=di}if(kn={},Pe||Tt||Et)if(tt&&kt){var so=yt.css(ci),ao=$.round(yt.css(ci,di).css(oi,di).position().left);yt.css(ci,so),ao!==$.round(yt.position().left)&&(kn[oi]=ao)}else kn[oi]=di;if(yt.css(kn),Ve&&r){var lo=function(){var e=Nt.selectionStart;if(e!==n){var t,i,o=ft.val(),r=o[v],s=o.split("\n"),a=s[v],l=o.substr(0,e).split("\n"),c=0,d=0,u=l[v],f=l[l[v]-1][v];for(i=0;i<s[v];i++)d<(t=s[i][v])&&(c=i+1,d=t);return{nn:u,tn:f,rn:a,en:d,in:c,an:e,un:r}}}();if(lo){var co=ln===n||lo.rn!==ln.rn,uo=lo.nn,fo=lo.tn,po=lo.in,ho=lo.rn,bo=lo.en,wo=lo.an,xo=lo.un<=wo&&Ln,Co={x:Ne||fo!==bo||uo!==po?-1:nn.x,y:(Ne?xo||co&&Di!==n&&d.y===Di.y:(xo||co)&&uo===ho)?nn.y:-1};d.x=-1<Co.x?tt&&vn&&Ae.i?0:Co.x:d.x,d.y=-1<Co.y?Co.y:d.y}ln=lo}tt&&Ae.i&&$e.y&&Pi.x&&vn&&(d.x+=Xn.w||0),kt&&pt[Si](0),$t&&pt[Ci](0),gt[Si](d.x)[Ci](d.y);var ko="v"===h,$o="h"===h,Eo="a"===h,Ao=_.bind(Z,0,!0,!0,Xi.x),Lo=_.bind(Z,0,!1,!0,Xi.y),No=_.bind(Z,0,!0,!1,Xi.x),jo=_.bind(Z,0,!1,!1,Xi.y);if(qi.x||qi.y?ge(pt,Vi):ye(pt,Vi),qi.x?ge(pt,Wi):ye(pt,Wi),qi.y?ge(pt,Bi):ye(pt,Bi),Pe&&(tt?ge(pt,Ri):ye(pt,Ri)),We&&ge(pt,Mi),F){var Do=function(e){ze?j(St,ki,Bn,e,!0):St[e?"off":"on"](ki,Bn)};ye(St,[Mi,mo,vo,go,yo].join(yi)),Mn?(ge(pt,Mi),Do(!0)):(ge(St,mo),Fn?ge(St,vo):Vn?ge(St,go):Wn&&ge(St,yo),Do(!0),Do())}(g||he||qi.c||Pi.c||re)&&(Q?re&&(ye(pt,Fi),Q&&(No(),jo())):Eo?(Xi.x?Ao():No(),Xi.y?Lo():jo()):ko?(Ao(),Lo()):$o&&(No(),jo())),(T||re)&&(zn||In?(R(!0),R()):R(!0),On?ee(!0):ee(!1,!0)),(o||zi.c||Et||Tt||F||Be||B||re||Pe)&&(te(!0),ne(!0),te(!1),ne(!1)),L&&ie(!0,E),z&&ie(!1,I),Pe&&se("onDirectionChanged",{isRTL:tt,dir:Ie}),o&&se("onHostSizeChanged",{width:Pt.w,height:Pt.h}),r&&se("onContentSizeChanged",{width:qt.w,height:qt.h}),(Pi.c||qi.c)&&se("onOverflowChanged",{x:Pi.x,y:Pi.y,xScrollable:qi.xs,yScrollable:qi.ys,clipped:qi.x||qi.y}),zi.c&&se("onOverflowAmountChanged",{x:zi.x,y:zi.y})}We&&xn&&(Mt.c||xn.c)&&(xn.f||W(),$e.y&&Mt.x&&yt.css(ri+ai,xn.w+Ee.y),$e.x&&Mt.y&&yt.css(ri+li,xn.h+Ee.x),xn.c=!1),se("onUpdated",{forced:s})}}function Y(e){var t=F.T(e,F.S,!0,ot);return ot=ve({},ot,t.O),rt=ve({},rt,t.k),t.k}function G(e){var t=rt.textarea.inheritedAttrs,n={},i=function(){var t=e?ft:pt;Ce(n,(function(e,n){xe(n)==d&&(e==h?t.addClass(n):t.attr(e,n))}))},o=[Hi,Ii,Mi,Ri,zi,Pi,qi,Fi,Vi,Wi,Bi,So,Xi,ro,gn].join(yi);if(t=xe(t)==d?t.split(" "):t,xe(t)==c&&Ce(t,(function(t,i){xe(i)==d&&(n[i]=e?pt.attr(i):ft.attr(i))})),e)yt.contents().unwrap().unwrap().unwrap(),ye(pt,o),Ve?(ft.removeAttr(m),Xe&&i(),ye(ft,o),be(xt),Xe?(ft.unwrap(),be(pt)):ge(pt,Ii)):ye(ft,Hi),We&&ye(dt,Oi),be(mt);else{if(Ve){var r={},s=ft.parent();Xe=!(s.hasClass(Ii)&&1===s.children()[v]),rt.sizeAutoCapable||(r[ai]=ft.css(ai),r[li]=ft.css(li)),Xe&&ft.wrap(pe(Ii)),(pt=ft.parent()).css(r).wrapInner(pe(Qi+yi+ro)).wrapInner(pe(Gi+yi+ro)).wrapInner(pe(Yi+yi+ro)),yt=we(pt,gi+Qi),gt=we(pt,gi+Gi),vt=we(pt,gi+Yi),xt=A(pe(Ui)),yt.prepend(xt),ge(ft,Xi+yi+ro),Xe&&i()}else(pt=ft).wrapInner(pe(Qi)).wrapInner(pe(Gi)).wrapInner(pe(Yi)),yt=we(pt,gi+Qi),gt=we(pt,gi+Gi),vt=we(pt,gi+Yi),ge(ft,Hi);je&&ge(gt,Ji),$e.x&&$e.y&&ge(gt,Ki),We&&ge(dt,Oi),mt=A(pe("os-resize-observer-host")),pt.prepend(mt),Ot=mt[0],jt=pt[0],Ht=vt[0],It=gt[0],zt=yt[0]}}function J(e){var t,i,o,r,s=[112,113,114,115,116,117,118,119,120,121,123,33,34,37,38,39,40,16,17,18,19,20,144],a=[],l=e?"off":"on";!e&&Ve&&(o=function(e){X(),ke.update(ui),e&&clearInterval(t)},(An={})[pi]=function(e){return ft[Si](Ae.i&&vn?9999999:0),ft[Ci](0),_.prvD(e),_.stpP(e),!1},An.drop=function(){setTimeout((function(){Fe||o()}),50)},An.focus=function(){Ln=!0},An.focusout=function(){o(!(Ln=!(a=[])))},9<Ne||!Le?An.input=function(){o()}:(An[Ai]=function(e){var n=e.keyCode;-1<Se(n,s)||(a.length||(o(),t=setInterval(o,1e3/60)),-1===Se(n,a)&&a.push(n))},An[Li]=function(e){var t=e.keyCode,n=Se(t,a);-1<Se(t,s)||(-1<n&&a.splice(n,1),a.length||o(!0))})),Ve?Ce(An,(function(e,t){ft[l](e,t)})):yt[l](ji,(function(e){!0!==rn&&function(e){if(!Me)return!0;var t="flex-grow",n="flex-shrink",i="flex-basis",o=[ai,ri+ai,si+ai,Qn+oi,Qn+ni,oi,ni,"font-weight","word-spacing",t,n,i],r=[Zn+oi,Zn+ni,ei+oi+ai,ei+ni+ai],s=[li,ri+li,si+li,Qn+ti,Qn+ii,ti,ii,"line-height",t,n,i],a=[Zn+ti,Zn+ii,ei+ti+ai,ei+ii+ai],l="s"===tn.x||"v-s"===tn.x,c=!1,d=function(e,t){for(var n=0;n<e[v];n++)if(e[n]===t)return!0;return!1};return("s"===tn.y||"v-s"===tn.y)&&((c=d(s,e))||Ue||(c=d(a,e))),l&&!c&&((c=d(o,e))||Ue||(c=d(r,e))),c}((e=e.originalEvent||e).propertyName)&&ke.update(ui)})),e||(r=function(e){nt||(i!==n?clearTimeout(i):((Hn||In)&&ee(!0),ue()||ge(pt,Fi),se("onScrollStart",e)),qn||(ne(!0),ne(!1)),se("onScroll",e),i=setTimeout((function(){Fe||(clearTimeout(i),i=n,(Hn||In)&&ee(!1),ue()||ye(pt,Fi),se("onScrollStop",e))}),175))},ze?j(gt,pi,r):gt.on(pi,r))}function K(e){e?(be(Ct),be(_t)):(Ct=A(pe(so+yi+bo)),kt=A(pe(ao)),Tt=A(pe(co)),_t=A(pe(so+yi+wo)),$t=A(pe(ao)),Et=A(pe(co)),Ct.append(kt),kt.append(Tt),_t.append($t),$t.append(Et),vt.after(_t),vt.after(Ct))}function Q(e){function t(e,n,i){var o=0;if(xe(n)==c&&xe(i)==c)for(;o<n[v];o++)t(e,n[o],i[o]);else ze?j(e,n,i,!1,!0):e.on(n,i)}function i(e){return Ne&&x?e["screen"+C]:_.page(e)[S]}function o(e){return rt.scrollbars[e]}function r(){A=.5}function s(){A=1}function a(e){-1<Se(e.keyCode,L)&&r()}function l(e){-1<Se(e.keyCode,L)&&s()}function d(e){var t=(e.originalEvent||e).touches!==n;return!(nt||Fe||ue()||!hn||t&&!o("touchSupport"))&&(1===_.mBtn(e)||t)}function u(t){if(d(t)){var n=w.U,o=w.j,r=w.M*((i(t)-g)*y/(n-o));r=isFinite(r)?r:0,tt&&e&&!Ae.i&&(r*=-1),gt[k]($.round(m+r)),qn&&ne(e,m+r),ze||_.prvD(t)}else f(t)}function f(t){if(t=t||t.originalEvent,ct.off(_i,u).off(Ti,f).off(Ai,a).off(Li,l).off(Ni,M),qn&&ne(e,!0),qn=!1,ye(ut,xo),ye(b.ln,T),ye(b.sn,T),ye(b.vn,T),g=m=n,y=1,s(),h!==n&&(ke.scrollStop(),clearTimeout(h),h=n),t){var i=jt.getBoundingClientRect();t.clientX>=i.left&&t.clientX<=i.right&&t.clientY>=i.top&&t.clientY<=i.bottom||P(),(Hn||In)&&ee(!1)}}function p(t){m=gt[k](),m=isNaN(m)?0:m,(tt&&e&&!Ae.n||!tt)&&(m=m<0?0:m),y=le()[S],g=i(t),qn=!o(E),ge(ut,xo),ge(b.ln,T),ge(b.vn,T),ct.on(_i,u).on(Ti,f).on(Ni,M),!Ne&&Be||_.prvD(t),_.stpP(t)}var h,m,g,y,b=oe(e),w=b.cn,x=At.top!==At,S=b.B,C=b.Z,k=pi+b.J,T="active",E="snapHandle",A=1,L=[16,17];t(b.ln,ki,(function(e){d(e)&&p(e)})),t(b.sn,[ki,$i,Ei],[function(t){if(d(t)){var i,s=$.round(Gn[b.q]),c=b.sn.offset()[b.V],u=t.ctrlKey,m=t.shiftKey,v=m&&u,x=!0,C=function(t){qn&&ne(e,t)},L=function(){C(),p(t)},N=function(){if(!Fe){var t=(g-c)*y,o=w.W,r=w.U,a=w.j,l=w.M,d=w.D,u=270*A,f=x?$.max(400,u):u,p=l*((t-a/2)/(r-a)),b=tt&&e&&(!Ae.i&&!Ae.n||vn),T=b?o<t:t<o,_={},E={easing:"linear",step:function(t){qn&&(gt[k](t),ne(e,t))}};p=isFinite(p)?p:0,p=tt&&e&&!Ae.i?l-p:p,m?(gt[k](p),v?(p=gt[k](),gt[k](d),p=b&&Ae.i?l-p:p,p=b&&Ae.n?-p:p,_[S]=p,ke.scroll(_,ve(E,{duration:130,complete:L}))):L()):(i=x?T:i,(b?i?t<=o+a:o<=t:i?o<=t:t<=o+a)?(clearTimeout(h),ke.scrollStop(),h=n,C(!0)):(h=setTimeout(N,f),_[S]=(i?"-=":"+=")+s,ke.scroll(_,ve(E,{duration:u}))),x=!1)}};u&&r(),y=le()[S],g=_.page(t)[S],qn=!o(E),ge(ut,xo),ge(b.sn,T),ge(b.vn,T),ct.on(Ti,f).on(Ai,a).on(Li,l).on(Ni,M),N(),_.prvD(t),_.stpP(t)}},function(){Pn=!0,(Hn||In)&&ee(!0)},function(){Pn=!1,(Hn||In)&&ee(!1)}]),t(b.vn,ki,(function(e){_.stpP(e)})),He&&b.vn.on(ji,(function(t){t.target===b.vn[0]&&(te(e),ne(e))}))}function Z(e,t,n){var i=e?zi:Pi,o=e?Ct:_t;t?ye(pt,i):ge(pt,i),n?ye(o,fo):ge(o,fo)}function ee(e,t){if(clearTimeout(Nn),e)ye(Ct,po),ye(_t,po);else{var n,i=function(){Pn||Fe||(!(n=Tt.hasClass("active")||Et.hasClass("active"))&&(Hn||In||zn)&&ge(Ct,po),!n&&(Hn||In||zn)&&ge(_t,po))};0<Dn&&!0!==t?Nn=setTimeout(i,Dn):i()}}function te(e){var t={},n=oe(e),i=n.cn,o=$.min(1,(Pt[n.q]-(Qt?e?Ge:Je:0))/qt[n.q]);t[n.G]=$.floor(100*o*1e6)/1e6+"%",ue()||n.ln.css(t),i.j=n.ln[0]["offset"+n.dn],i.F=o}function ne(e,t){var i,o,r=xe(t)==u,s=tt&&e,a=oe(e),l=a.cn,c="translate(",d=T.p("transform"),f=T.p("transition"),p=e?gt[Si]():gt[Ci](),h=t===n||r?p:t,m=l.j,g=a.sn[0]["offset"+a.dn],y=g-m,b={},w=(It[pi+a.dn]-It["client"+a.dn])*(Ae.n&&s?-1:1),x=function(e){return isNaN(e/w)?0:$.max(0,$.min(1,e/w))},S=function(e){var t=y*e;return t=isNaN(t)?0:t,t=s&&!Ae.i?g-m-t:t,$.max(0,t)},C=x(p),k=S(x(h)),_=S(C);l.M=w,l.D=p,l.I=C,Ie?(i=s?-(g-m-k):k,o=e?c+i+"px, 0)":c+"0, "+i+"px)",b[d]=o,He&&(b[f]=r&&1<$.abs(k-l.W)?function(e){var t=T.p("transition"),n=e.css(t);if(n)return n;for(var i,o,r,s="\\s*(([^,(]+(\\(.+?\\))?)+)[\\s,]*",a=new RegExp(s),l=new RegExp("^("+s+")+$"),c="property duration timing-function delay".split(" "),d=[],u=0,f=function(e){if(i=[],!e.match(l))return e;for(;e.match(a);)i.push(RegExp.$1),e=e.replace(a,di);return i};u<c[v];u++)for(o=f(e.css(t+"-"+c[u])),r=0;r<o[v];r++)d[r]=(d[r]?d[r]+yi:di)+o[r];return d.join(", ")}(a.ln)+", "+(d+yi+250)+"ms":di)):b[a.V]=k,ue()||(a.ln.css(b),Ie&&He&&r&&a.ln.one(ji,(function(){Fe||a.ln.css(f,di)}))),l.W=k,l.P=_,l.U=g}function ie(e,t){var n=t?"removeClass":"addClass",i=e?$t:Et,o=e?lo:uo;(e?kt:Tt)[n](o),i[n](o)}function oe(e){return{G:e?ai:li,dn:e?"Width":"Height",V:e?oi:ti,J:e?"Left":"Top",B:e?mi:vi,Z:e?"X":"Y",q:e?"w":"h",hn:e?"l":"t",sn:e?kt:$t,ln:e?Tt:Et,vn:e?Ct:_t,cn:e?Un:Yn}}function re(e){e?be(St):(St=A(pe(ho)),pt.append(St))}function se(e,t){if(Me){var n,i=rt.callbacks[e],o=e;"on"===o.substr(0,2)&&(o=o.substr(2,1).toLowerCase()+o.substr(3)),xe(i)==l&&i.call(ke,t),Ce(ko,(function(){xe((n=this).on)==l&&n.on(o,t)}))}else Fe||Co.push({n:e,a:t})}function ae(e,t,i){i===n&&(i=[di,di,di,di]),e[t+ti]=i[0],e[t+ni]=i[1],e[t+ii]=i[2],e[t+oi]=i[3]}function le(){var e=Ht.getBoundingClientRect();return{x:Ie&&1/($.round(e.width)/Ht[x])||1,y:Ie&&1/($.round(e.height)/Ht[y])||1}}function ce(t){var n="ownerDocument",i="HTMLElement",o=t&&t[n]&&t[n].parentWindow||e;return typeof o[i]==a?t instanceof o[i]:t&&typeof t==a&&null!==t&&1===t.nodeType&&typeof t.nodeName==d}function de(e,t){var n=t?parseFloat(e):parseInt(e,10);return isNaN(n)?0:n}function ue(){return on&&$e.x&&$e.y}function fe(){return Ve?xt[0]:zt}function pe(e,t){return"<div "+(e?xe(e)==d?'class="'+e+'"':function(){var t,n="";if(A.isPlainObject(e))for(t in e)n+=("className"===t?"class":t)+'="'+e[t]+'" ';return n}():di)+">"+(t||di)+"</div>"}function he(e,t){for(var n,i=t.split(gi),o=0;o<i.length;o++){if(!e[k](i[o]))return;n=e[i[o]],o<i.length&&xe(n)==a&&(e=n)}return n}function me(e,t,n){if(n)return n;if(xe(e)!=a||xe(t)!=a)return e!==t;for(var i in e)if("c"!==i){if(!e[k](i)||!t[k](i))return!0;if(me(e[i],t[i]))return!0}return!1}function ve(){return A.extend.apply(this,[!0].concat([].slice.call(arguments)))}function ge(e,t){return Te.addClass.call(e,t)}function ye(e,t){return Te.removeClass.call(e,t)}function be(e){return Te.remove.call(e)}function we(e,t){return Te.find.call(e,t).eq(0)}var xe=_.type,Se=A.inArray,Ce=A.each,ke=new e[s],Te=A[g];if(ce(i)){if(L(i)){var _e=L(i);return _e.options(o),_e}var $e,Ee,Ae,Le,Ne,je,De,Oe,He,Ie,ze,Pe,qe,Re,Me,Fe,Ve,We,Be,Xe,Ue,Ye,Ge,Je,Ke,Qe,Ze,et,tt,nt,it,ot,rt,st,at,lt,ct,dt,ut,ft,pt,ht,mt,vt,gt,yt,bt,wt,xt,St,Ct,kt,Tt,_t,$t,Et,At,Lt,Nt,jt,Dt,Ot,Ht,It,zt,Pt,qt,Rt,Mt,Ft,Vt,Wt,Bt,Xt,Ut,Yt,Gt,Jt,Kt,Qt,Zt,en,tn,nn,on,rn,sn,an,ln,cn,dn,un,fn,pn,hn,mn,vn,gn,yn,bn,wn,xn,Sn,Cn,kn,Tn,_n,$n,En,An,Ln,Nn,jn,Dn,On,Hn,In,zn,Pn,qn,Rn,Mn,Fn,Vn,Wn,Bn,Xn={},Un={},Yn={},Gn={},Jn={},Kn="-hidden",Qn="margin-",Zn="padding-",ei="border-",ti="top",ni="right",ii="bottom",oi="left",ri="min-",si="max-",ai="width",li="height",ci="float",di="",ui="auto",fi="sync",pi="scroll",hi="100%",mi="x",vi="y",gi=".",yi=" ",bi="scrollbar",wi="-horizontal",xi="-vertical",Si=pi+"Left",Ci=pi+"Top",ki="mousedown touchstart",Ti="mouseup touchend touchcancel",_i="mousemove touchmove",$i="mouseenter",Ei="mouseleave",Ai="keydown",Li="keyup",Ni="selectstart",ji="transitionend webkitTransitionEnd oTransitionEnd",Di="__overlayScrollbarsRO__",Oi="os-html",Hi="os-host",Ii=Hi+"-textarea",zi=Hi+"-"+bi+wi+Kn,Pi=Hi+"-"+bi+xi+Kn,qi=Hi+"-transition",Ri=Hi+"-rtl",Mi=Hi+"-resize-disabled",Fi=Hi+"-scrolling",Vi=Hi+"-overflow",Wi=Vi+"-x",Bi=Vi+"-y",Xi="os-textarea",Ui=Xi+"-cover",Yi="os-padding",Gi="os-viewport",Ji=Gi+"-native-scrollbars-invisible",Ki=Gi+"-native-scrollbars-overlaid",Qi="os-content",Zi="os-content-arrange",eo="os-content-glue",to="os-size-auto-observer",no="os-resize-observer",io="os-resize-observer-item",oo=io+"-final",ro="os-text-inherit",so="os-"+bi,ao=so+"-track",lo=ao+"-off",co=so+"-handle",uo=co+"-off",fo=so+"-unusable",po=so+"-"+ui+Kn,ho=so+"-corner",mo=ho+"-resize",vo=mo+"-both",go=mo+wi,yo=mo+xi,bo=so+wi,wo=so+xi,xo="os-dragging",So="os-theme-none",Co=[],ko={},To={},_o=42,$o=[],Eo={},Ao=["wrap","cols","rows"],Lo=["id",h,m,"open"];if(ke.sleep=function(){nt=!0},ke.update=function(e){var t,i,o,r,s;return xe(e)==d?e===ui?(t=function(){if(!nt&&!En){var e,t,i,o,r=[{C:pt,A:Lo.concat(":visible")},{C:Ve?ft:n,A:Ao}];return Ce(r,(function(n,r){(t=r.C)&&Ce(r.A,(function(n,r){i=":"===r.charAt(0)?t.is(r):t.attr(r),o=Eo[r],e=e||me(i,o),Eo[r]=i}))})),e}}(),i=function(){if(nt)return!1;var e,t,n,i,o,r=fe(),s=Ve&&Vt&&!an?ft.val().length:0,a=!En&&Vt&&!Ve,l={},c={};return Re&&(l={x:It[C],y:It[w]}),a&&(e=yt.css(ci),c[ci]=tt?ni:oi,c[ai]=ui,yt.css(c)),o={w:r[C]+s,h:r[w]+s},a&&(c[ci]=e,c[ai]=hi,yt.css(c)),t=W(),n=me(o,cn),i=me(l,Sn),cn=o,Sn=l,n||t||i}(),(o=t||i)&&U({N:i,H:Me?n:rt})):e===fi?En?(r=_n(kn.takeRecords()),s=$n(Tn.takeRecords())):r=ke.update(ui):"zoom"===e&&U({L:!0,N:!0}):(e=nt||e,nt=!1,ke.update(fi)&&!e||U({R:e})),Ve||yt.find("img").each((function(e,t){-1===_.inA(t,$o)&&A(t).off("load",V).on("load",V)})),o||r||s},ke.options=function(e,t){var n,i={};if(A.isEmptyObject(e)||!A.isPlainObject(e)){if(xe(e)!=d)return ot;if(!(1<arguments.length))return he(ot,e);!function(e,t,n){for(var i=t.split(gi),o=i.length,r=0,s={},a=s;r<o;r++)s=s[i[r]]=r+1<o?{}:n;A.extend(e,a,!0)}(i,e,t),n=Y(i)}else n=Y(e);A.isEmptyObject(n)||U({H:n})},ke.destroy=function(){for(var e in N.remove(ke),H(),D(mt),D(ht),ko)ke.removeExt(e);R(!0),J(!0),wt&&be(wt),bt&&be(bt),Ye&&be(ht),K(!0),re(!0),G(!0);for(var t=0;t<$o[v];t++)A($o[t]).off("load",V);$o=n,nt=Fe=!0,L(i,0),se("onDestroyed")},ke.scroll=function(e,t,i,o){if(0===arguments.length||e===n){var r=Un,s=Yn,p=vn&&tt&&Ae.i,h=vn&&tt&&Ae.n,m=r.D,g=r.I,b=r.M;return g=p?1-g:g,m=p?b-m:m,b*=h?-1:1,{position:{x:m*=h?-1:1,y:s.D},ratio:{x:g,y:s.I},max:{x:b,y:s.M},handleOffset:{x:r.W,y:s.W},handleLength:{x:r.j,y:s.j},handleLengthRatio:{x:r.F,y:s.F},trackLength:{x:r.U,y:s.U},snappedHandleOffset:{x:r.P,y:s.P},isRTL:tt,isRTLNormalized:vn}}ke.update(fi);var w,S,C,T,_,L,N,j,D,O=vn,H=[mi,oi,"l"],I=[vi,ti,"t"],z=["+=","-=","*=","/="],P=xe(t)==a,q=P?t.complete:o,R={},M={},F="begin",V="nearest",W="never",B="ifneeded",X=v,U=[mi,vi,"xy","yx"],Y=[F,"end","center",V],G=["always",W,B],J=e[k]("el"),K=J?e.el:e,Q=!!(K instanceof A||E)&&K instanceof E,Z=!Q&&ce(K),ee=xe(q)!=l?n:function(){S&&ne(!0),C&&ne(!1),q()},te=function(e,t){for(w=0;w<t[X];w++)if(e===t[w])return!0;return!1},ie=function(e,t){var n=e?H:I;if(t=xe(t)==d||xe(t)==f?[t,t]:t,xe(t)==c)return e?t[0]:t[1];if(xe(t)==a)for(w=0;w<n[X];w++)if(n[w]in t)return t[n[w]]},re=function(e,t){var i,o,r,s,a=xe(t)==d,l=e?Un:Yn,c=l.D,u=l.M,p=tt&&e,h=p&&Ae.n&&!O,m="replace",v=eval;if((o=a?(2<t[X]&&(s=t.substr(0,2),-1<Se(s,z)&&(i=s)),t=(t=i?t.substr(2):t)[m](/min/g,0)[m](/</g,0)[m](/max/g,(h?"-":di)+hi)[m](/>/g,(h?"-":di)+hi)[m](/px/g,di)[m](/%/g," * "+u*(p&&Ae.n?-1:1)/100)[m](/vw/g," * "+Gn.w)[m](/vh/g," * "+Gn.h),de(isNaN(t)?de(v(t),!0).toFixed():t)):t)!==n&&!isNaN(o)&&xe(o)==f){var g=O&&p,y=c*(g&&Ae.n?-1:1),b=g&&Ae.i,w=g&&Ae.n;switch(y=b?u-y:y,i){case"+=":r=y+o;break;case"-=":r=y-o;break;case"*=":r=y*o;break;case"/=":r=y/o;break;default:r=o}r=b?u-r:r,r*=w?-1:1,r=p&&Ae.n?$.min(0,$.max(u,r)):$.max(0,$.min(u,r))}return r===c?n:r},se=function(e,t,n,i){var o,r,s=[n,n],l=xe(e);if(l==t)e=[e,e];else if(l==c){if(2<(o=e[X])||o<1)e=s;else for(1===o&&(e[1]=n),w=0;w<o;w++)if(r=e[w],xe(r)!=t||!te(r,i)){e=s;break}}else e=l==a?[e[mi]||n,e[vi]||n]:s;return{x:e[0],y:e[1]}},ae=function(e){var t,n,i=[],o=[ti,ni,ii,oi];for(w=0;w<e[X]&&w!==o[X];w++)t=e[w],(n=xe(t))==u?i.push(t?de(D.css(Qn+o[w])):0):i.push(n==f?t:0);return i};if(Q||Z){var le,ue=J?e.margin:0,fe=J?e.axis:0,pe=J?e.scroll:0,he=J?e.block:0,me=[0,0,0,0],ve=xe(ue);if(0===(D=Q?K:A(K))[X])return;ue=ve==f||ve==u?ae([ue,ue,ue,ue]):ve==c?2===(le=ue[X])?ae([ue[0],ue[1],ue[0],ue[1]]):4<=le?ae(ue):me:ve==a?ae([ue[ti],ue[ni],ue[ii],ue[oi]]):me,_=te(fe,U)?fe:"xy",L=se(pe,d,"always",G),N=se(he,d,F,Y),j=ue;var ge=Un.D,ye=Yn.D,be=vt.offset(),we=D.offset(),Ce={x:L.x==W||_==vi,y:L.y==W||_==mi};we[ti]-=j[0],we[oi]-=j[3];var Te={x:$.round(we[oi]-be[oi]+ge),y:$.round(we[ti]-be[ti]+ye)};if(tt&&(Ae.n||Ae.i||(Te.x=$.round(be[oi]-we[oi]+ge)),Ae.n&&O&&(Te.x*=-1),Ae.i&&O&&(Te.x=$.round(be[oi]-we[oi]+(Un.M-ge)))),N.x!=F||N.y!=F||L.x==B||L.y==B||tt){var _e=D[0],$e=Ie?_e.getBoundingClientRect():{width:_e[x],height:_e[y]},Ee={w:$e[ai]+j[3]+j[1],h:$e[li]+j[0]+j[2]},Le=function(e){var t=oe(e),n=t.q,i=t.V,o=t.B,r=N[o]==(e&&tt?F:"end"),s="center"==N[o],a=N[o]==V,l=L[o]==W,c=L[o]==B,d=Gn[n],u=be[i],f=Ee[n],p=we[i],h=s?2:1,m=p+f/2,v=u+d/2,g=f<=d&&u<=p&&p+f<=u+d;l?Ce[o]=!0:Ce[o]||((a||c)&&(Ce[o]=!!c&&g,r=f<d?v<m:m<v),Te[o]-=r||s?(d/h-f/h)*(e&&tt&&O?-1:1):0)};Le(!0),Le(!1)}Ce.y&&delete Te.y,Ce.x&&delete Te.x,e=Te}R[Si]=re(!0,ie(!0,e)),R[Ci]=re(!1,ie(!1,e)),S=R[Si]!==n,C=R[Ci]!==n,(S||C)&&(0<t||P)?P?(t.complete=ee,gt.animate(R,t)):(T={duration:t,complete:ee},xe(i)==c||A.isPlainObject(i)?(M[Si]=i[0]||i.x,M[Ci]=i[1]||i.y,T.specialEasing=M):T.easing=i,gt.animate(R,T)):(S&&gt[Si](R[Si]),C&&gt[Ci](R[Ci]))},ke.scrollStop=function(e,t,n){return gt.stop(e,t,n),ke},ke.getElements=function(e){var t={target:Nt,host:jt,padding:Ht,viewport:It,content:zt,scrollbarHorizontal:{scrollbar:Ct[0],track:kt[0],handle:Tt[0]},scrollbarVertical:{scrollbar:_t[0],track:$t[0],handle:Et[0]},scrollbarCorner:St[0]};return xe(e)==d?he(t,e):t},ke.getState=function(e){function t(e){if(!A.isPlainObject(e))return e;var t=ve({},e),n=function(e,n){t[k](e)&&(t[n]=t[e],delete t[e])};return n("w",ai),n("h",li),delete t.c,t}var n={destroyed:!!t(Fe),sleeping:!!t(nt),autoUpdate:t(!En),widthAuto:t(Vt),heightAuto:t(Wt),padding:t(Ut),overflowAmount:t(nn),hideOverflow:t(Ft),hasOverflow:t(Mt),contentScrollSize:t(qt),viewportSize:t(Gn),hostSize:t(Pt),documentMixed:t(Be)};return xe(e)==d?he(n,e):n},ke.ext=function(e){var t,n="added removed on contract".split(" "),i=0;if(xe(e)==d){if(ko[k](e))for(t=ve({},ko[e]);i<n.length;i++)delete t[n[i]]}else for(i in t={},ko)t[i]=ve({},ke.ext(i));return t},ke.addExt=function(t,n){var i,o,r,a,c=e[s].extension(t),d=!0;if(c){if(ko[k](t))return ke.ext(t);if((i=c.extensionFactory.call(ke,ve({},c.defaultOptions),A,_))&&(r=i.contract,xe(r)==l&&(a=r(e),d=xe(a)==u?a:d),d))return o=(ko[t]=i).added,xe(o)==l&&o(n),ke.ext(t)}else console.warn('A extension with the name "'+t+"\" isn't registered.")},ke.removeExt=function(e){var t,n=ko[e];return!!n&&(delete ko[e],t=n.removed,xe(t)==l&&t(),!0)},function(e,i,o){return it=p.defaultOptions,je=p.nativeScrollbarStyling,Oe=ve({},p.nativeScrollbarSize),$e=ve({},p.nativeScrollbarIsOverlaid),Ee=ve({},p.overlayScrollbarDummySize),Ae=ve({},p.rtlScrollBehavior),Y(ve({},it,i)),$e.x&&$e.x&&!rt.nativeScrollbarsOverlaid.initialize?(se("onInitializationWithdrawn"),!1):(De=p.cssCalc,Ne=p.msie,Le=p.autoUpdateRecommended,He=p.supportTransition,Ie=p.supportTransform,ze=p.supportPassiveEvents,Pe=p.supportResizeObserver,qe=p.supportMutationObserver,Re=p.restrictedMeasuring,ct=A(e.ownerDocument),Lt=ct[0],lt=A(Lt.defaultView||Lt.parentWindow),At=lt[0],dt=we(ct,"html"),ut=we(dt,"body"),ft=A(e),Nt=ft[0],Ve=ft.is("textarea"),We=ft.is("body"),Be=Lt!==t,We&&((r={}).l=$.max(ft[Si](),dt[Si](),lt[Si]()),r.t=$.max(ft[Ci](),dt[Ci](),lt[Ci]())),G(),J(),K(),Q(!0),Q(!1),re(),function(){function e(e){if(i(e)){var n=o(e),r={};(Vn||Fn)&&(r[ai]=a.w+(n.x-s.x)*l.x),(Wn||Fn)&&(r[li]=a.h+(n.y-s.y)*l.y),pt.css(r),_.stpP(e)}else t(e)}function t(i){var o=i!==n;ct.off(Ni,M).off(_i,e).off(Ti,t),ye(ut,xo),St.releaseCapture&&St.releaseCapture(),o&&(Rn&&O(),ke.update(ui)),Rn=!1}function i(e){var t=(e.originalEvent||e).touches!==n;return!nt&&!Fe&&(1===_.mBtn(e)||t)}function o(e){return Ne&&r?{x:e.screenX,y:e.screenY}:_.page(e)}var r=At.top!==At,s={},a={},l={};Bn=function(n){i(n)&&(En&&(Rn=!0,H()),s=o(n),a.w=jt[x]-(Ue?0:Ge),a.h=jt[y]-(Ue?0:Je),l=le(),ct.on(Ni,M).on(_i,e).on(Ti,t),ge(ut,xo),St.setCapture&&St.setCapture(),_.prvD(n),_.stpP(n))}}(),function(){if(qe){var e,t,n,i,o,r,s=_.mO(),a=_.now();$n=function(e){var t=!1;return Me&&!nt&&(Ce(e,(function(){return!(t=function(e){var t=e.attributeName,n=e.target,i=e.type,o="closest";if(n===zt)return null===t;if("attributes"===i&&(t===h||t===m)&&!Ve){if(t===h&&A(n).hasClass(Hi))return B(e.oldValue,n.getAttribute(h));if(typeof n[o]!=l)return!0;if(null!==n[o](gi+no)||null!==n[o](gi+so)||null!==n[o](gi+ho))return!1}return!0}(this))})),t&&(i=_.now(),o=Wt||Vt,r=function(){Fe||(a=i,Ve&&X(),o?U():ke.update(ui))},clearTimeout(n),11<i-a||!o?r():n=setTimeout(r,11))),t},kn=new s(_n=function(n){var i,o=!1;return Me&&!nt&&(Ce(n,(function(){if(e=(i=this).target,t=i.attributeName,o=t===h?B(i.oldValue,e.className):t!==m||i.oldValue!==e[m].cssText)return!1})),o&&ke.update(ui)),o}),Tn=new s($n)}}(),We&&(gt[Si](r.l)[Ci](r.t),t.activeElement==e&&It.focus&&(gt.attr("tabindex","-1"),It.focus(),gt.one(ki,(function(){gt.removeAttr("tabindex")})))),D(mt,I),ke.update(ui),Me=!0,se("onInitialized"),Ce(Co,(function(e,t){se(t.n,t.a)})),Co=[],xe(o)==d&&(o=[o]),_.isA(o)?Ce(o,(function(e,t){ke.addExt(t)})):A.isPlainObject(o)&&Ce(o,(function(e,t){ke.addExt(e,t)})),setTimeout((function(){He&&!Fe&&ge(pt,qi)}),333),Me);var r}(i,o,r))return L(i,ke),ke;ke=n}}var j,D,O,H,I,z,P,q,R,M=[],F=(O=_.type,q={className:["os-theme-dark",[p,d]],resize:["none","n:none b:both h:horizontal v:vertical"],sizeAutoCapable:I=[!0,u],clipAlways:I,normalizeRTL:I,paddingAbsolute:z=[!(H=[u,f,d,c,a,l,p]),u],autoUpdate:[null,[p,u]],autoUpdateInterval:[33,f],nativeScrollbarsOverlaid:{showNativeScrollbars:z,initialize:I},overflowBehavior:{x:["scroll","v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"],y:["scroll","v-h:visible-hidden v-s:visible-scroll s:scroll h:hidden"]},scrollbars:{visibility:["auto","v:visible h:hidden a:auto"],autoHide:["never","n:never s:scroll l:leave m:move"],autoHideDelay:[800,f],dragScrolling:I,clickScrolling:z,touchSupport:I,snapHandle:z},textarea:{dynWidth:z,dynHeight:z,inheritedAttrs:[["style","class"],[d,c,p]]},callbacks:{onInitialized:P=[null,[p,l]],onInitializationWithdrawn:P,onDestroyed:P,onScrollStart:P,onScroll:P,onScrollStop:P,onOverflowChanged:P,onOverflowAmountChanged:P,onDirectionChanged:P,onContentSizeChanged:P,onHostSizeChanged:P,onUpdated:P}},{_:(R=function(e){var t=function(n){var i,o,r;for(i in n)n[k](i)&&(o=n[i],(r=O(o))==c?n[i]=o[e?1:0]:r==a&&(n[i]=t(o)));return n};return t(A.extend(!0,{},q))})(),S:R(!0),T:function(t,i,o,r){var s={},l={},u=A.extend(!0,{},t),f=A.inArray,p=A.isEmptyObject,h=function(e,t,i,r,s,l){for(var u in t)if(t[k](u)&&e[k](u)){var m,g,y,b,w,x,S,C,T=!1,_=!1,$=t[u],E=O($),A=E==a,L=O($)!=c?[$]:$,N=i[u],j=e[u],D=O(j),I=l?l+".":"",z='The option "'+I+u+"\" wasn't set, because",P=[],q=[];if(N=N===n?{}:N,A&&D==a)r[u]=s[u]={},h(j,$,N,r[u],s[u],I+u),p(j)&&delete e[u];else if(!A){for(x=0;x<L[v];x++)if(w=L[x],y=(E=O(w))==d&&-1===f(w,H))for(P.push(d),m=w.split(" "),q=q.concat(m),S=0;S<m[v];S++){for(b=(g=m[S].split(":"))[0],C=0;C<g[v];C++)if(j===g[C]){T=!0;break}if(T)break}else if(P.push(w),D===w){T=!0;break}T?((_=j!==N)&&(r[u]=j),(y?f(N,g)<0:_)&&(s[u]=y?b:j)):o&&console.warn(z+" it doesn't accept the type [ "+D.toUpperCase()+' ] with the value of "'+j+'".\r\nAccepted types are: [ '+P.join(", ").toUpperCase()+" ]."+(0<q[length]?"\r\nValid strings are: [ "+q.join(", ").split(":").join(", ")+" ].":"")),delete e[u]}}};return h(u,i,r||{},s,l),!p(u)&&o&&console.warn("The following options are discarded due to invalidity:\r\n"+e.JSON.stringify(u,null,2)),{O:s,k:l}}});return e[s]=function(t,o,r){if(0===arguments[v])return this;var a,c,d=[],u=A.isPlainObject(o);return t?(t=t[v]!=n?t:[t[0]||t],i(),0<t[v]&&(u?A.each(t,(function(e,t){(a=t)!==n&&d.push(N(a,o,r,j,D))})):A.each(t,(function(t,i){a=L(i),("!"===o&&a instanceof e[s]||_.type(o)==l&&o(i,a)||o===n)&&d.push(a)})),c=1===d[v]?d[0]:d),c):u||!o?c:d},e[s].globals=function(){i();var e=A.extend(!0,{},j);return delete e.msie,e},e[s].defaultOptions=function(e){i();var t=j.defaultOptions;if(e===n)return A.extend(!0,{},t);j.defaultOptions=A.extend(!0,{},t,F.T(e,F.S,!0,t).O)},e[s].extension=function(e,t,n){var i=_.type(e)==d,o=arguments[v],r=0;if(o<1||!i)return A.extend(!0,{length:M[v]},M);if(i)if(_.type(t)==l)M.push({name:e,extensionFactory:t,defaultOptions:n});else for(;r<M[v];r++)if(M[r].name===e){if(!(1<o))return A.extend(!0,{},M[r]);M.splice(r,1)}},e[s]}();return E&&E.fn&&(E.fn.overlayScrollbars=function(e,t){return E.isPlainObject(e)?(E.each(this,(function(){N(this,e,t)})),this):N(this,e)}),N}));