function get_cookie(t){var e=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");return e?unescape(e[2]):null}!function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(C,t){var e=[],S=C.document,d=e.slice,g=e.concat,a=e.push,s=e.indexOf,i={},n=i.toString,f=i.hasOwnProperty,m={},T=function(t,e){return new T.fn.init(t,e)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,r=/^-ms-/,l=/-([\da-z])/gi,c=function(t,e){return e.toUpperCase()};function u(t){var e=!!t&&"length"in t&&t.length,i=T.type(t);return"function"!==i&&!T.isWindow(t)&&("array"===i||0===e||"number"==typeof e&&0+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),B=new RegExp(z),V=new RegExp("^"+H+"$"),X={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+z),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=/'|\\/g,tt=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),et=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},it=function(){x()};try{O.apply(e=N.call(w.childNodes),w.childNodes),e[w.childNodes.length].nodeType}catch(i){O={apply:e.length?function(t,e){D.apply(t,N.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function nt(t,e,i,n){var s,o,r,a,l,c,d,u,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return i;if(!n&&((e?e.ownerDocument||e:w)!==C&&x(e),e=e||C,S)){if(11!==p&&(c=G.exec(t)))if(s=c[1]){if(9===p){if(!(r=e.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(h&&(r=h.getElementById(s))&&y(e,r)&&r.id===s)return i.push(r),i}else{if(c[2])return O.apply(i,e.getElementsByTagName(t)),i;if((s=c[3])&&f.getElementsByClassName&&e.getElementsByClassName)return O.apply(i,e.getElementsByClassName(s)),i}if(f.qsa&&!E[t+" "]&&(!v||!v.test(t))){if(1!==p)h=e,u=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(J,"\\$&"):e.setAttribute("id",a=T),o=(d=g(t)).length,l=V.test(a)?"#"+a:"[id='"+a+"']";o--;)d[o]=l+" "+ft(d[o]);u=d.join(","),h=Z.test(t)&&ht(e.parentNode)||e}if(u)try{return O.apply(i,h.querySelectorAll(u)),i}catch(t){}finally{a===T&&e.removeAttribute("id")}}}return m(t.replace(R,"$1"),e,i,n)}function st(){var n=[];return function t(e,i){return n.push(e+" ")>b.cacheLength&&delete t[n.shift()],t[e+" "]=i}}function ot(t){return t[T]=!0,t}function rt(t){var e=C.createElement("div");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var i=t.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=e}function lt(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ct(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function dt(i){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===i}}function ut(r){return ot(function(o){return o=+o,ot(function(t,e){for(var i,n=r([],t.length,o),s=n.length;s--;)t[i=n[s]]&&(t[i]=!(e[i]=t[i]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in f=nt.support={},s=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},x=nt.setDocument=function(t){var e,i,n=t?t.ownerDocument||t:w;return n!==C&&9===n.nodeType&&n.documentElement&&(r=(C=n).documentElement,S=!s(C),(i=C.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",it,!1):i.attachEvent&&i.attachEvent("onunload",it)),f.attributes=rt(function(t){return t.className="i",!t.getAttribute("className")}),f.getElementsByTagName=rt(function(t){return t.appendChild(C.createComment("")),!t.getElementsByTagName("*").length}),f.getElementsByClassName=K.test(C.getElementsByClassName),f.getById=rt(function(t){return r.appendChild(t).id=T,!C.getElementsByName||!C.getElementsByName(T).length}),f.getById?(b.find.ID=function(t,e){if(void 0!==e.getElementById&&S){var i=e.getElementById(t);return i?[i]:[]}},b.filter.ID=function(t){var e=t.replace(tt,et);return function(t){return t.getAttribute("id")===e}}):(delete b.find.ID,b.filter.ID=function(t){var i=t.replace(tt,et);return function(t){var e=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return e&&e.value===i}}),b.find.TAG=f.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):f.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"!==t)return o;for(;i=o[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=f.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&S)return e.getElementsByClassName(t)},a=[],v=[],(f.qsa=K.test(C.querySelectorAll))&&(rt(function(t){r.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||v.push("\\["+L+"*(?:value|"+I+")"),t.querySelectorAll("[id~="+T+"-]").length||v.push("~="),t.querySelectorAll(":checked").length||v.push(":checked"),t.querySelectorAll("a#"+T+"+*").length||v.push(".#.+[+~]")}),rt(function(t){var e=C.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&v.push("name"+L+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||v.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),v.push(",.*:")})),(f.matchesSelector=K.test(d=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector||r.msMatchesSelector))&&rt(function(t){f.disconnectedMatch=d.call(t,"div"),d.call(t,"[s!='']:x"),a.push("!=",z)}),v=v.length&&new RegExp(v.join("|")),a=a.length&&new RegExp(a.join("|")),e=K.test(r.compareDocumentPosition),y=e||K.test(r.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return c=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!f.sortDetached&&e.compareDocumentPosition(t)===i?t===C||t.ownerDocument===w&&y(w,t)?-1:e===C||e.ownerDocument===w&&y(w,e)?1:l?P(l,t)-P(l,e):0:4&i?-1:1)}:function(t,e){if(t===e)return c=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===C?-1:e===C?1:s?-1:o?1:l?P(l,t)-P(l,e):0;if(s===o)return lt(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?lt(r[n],a[n]):r[n]===w?-1:a[n]===w?1:0}),C},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==C&&x(t),e=e.replace(U,"='$1']"),f.matchesSelector&&S&&!E[e+" "]&&(!a||!a.test(e))&&(!v||!v.test(e)))try{var i=d.call(t,e);if(i||f.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(tt,et),t[3]=(t[3]||t[4]||t[5]||"").replace(tt,et),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||nt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&nt.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return X.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&B.test(i)&&(e=g(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(tt,et).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=h[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&h(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(t){var e=nt.attr(t,i);return null==e?"!="===n:!n||(e+="","="===n?e===s:"!="===n?e!==s:"^="===n?s&&0===e.indexOf(s):"*="===n?s&&-1(?:<\/\1>|)$/,b=/^.[^:#\[\.,]*$/;function _(t,i,n){if(T.isFunction(i))return T.grep(t,function(t,e){return!!i.call(t,e,t)!==n});if(i.nodeType)return T.grep(t,function(t){return t===i!==n});if("string"==typeof i){if(b.test(i))return T.filter(i,t,n);i=T.filter(i,t)}return T.grep(t,function(t){return-1)[^>]*|#([\w-]*))$/;(T.fn.init=function(t,e,i){var n,s;if(!t)return this;if(i=i||x,"string"!=typeof t)return t.nodeType?(this.context=this[0]=t,this.length=1,this):T.isFunction(t)?void 0!==i.ready?i.ready(t):t(T):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),T.makeArray(t,this));if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:k.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof T?e[0]:e,T.merge(this,T.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:S,!0)),w.test(n[1])&&T.isPlainObject(e))for(n in e)T.isFunction(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(s=S.getElementById(n[2]))&&s.parentNode&&(this.length=1,this[0]=s),this.context=S,this.selector=t,this}).prototype=T.fn,x=T(S);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function $(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter(function(){for(var t=0;t",""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function K(t,e){var i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&T.nodeName(t,e)?T.merge([t],i):i}function G(t,e){for(var i=0,n=t.length;ix",m.noCloneChecked=!!Z.cloneNode(!0).lastChild.defaultValue;var it=/^key/,nt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,st=/^([^.]*)(?:\.(.+)|)/;function ot(){return!0}function rt(){return!1}function at(){try{return S.activeElement}catch(t){}}function lt(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)lt(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=rt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return T().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=T.guid++)),t.each(function(){T.event.add(this,e,s,n,i)})}T.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,c,d,u,h,p,f,g,m=L.get(e);if(m)for(i.handler&&(i=(o=i).handler,s=o.selector),i.guid||(i.guid=T.guid++),(l=m.events)||(l=m.events={}),(r=m.handle)||(r=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(D)||[""]).length;c--;)p=g=(a=st.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(u=T.event.special[p]||{},p=(s?u.delegateType:u.bindType)||p,u=T.event.special[p]||{},d=T.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&T.expr.match.needsContext.test(s),namespace:f.join(".")},o),(h=l[p])||((h=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),s?h.splice(h.delegateCount++,0,d):h.push(d),T.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,d,u,h,p,f,g,m=L.hasData(t)&&L.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(D)||[""]).length;c--;)if(p=g=(a=st.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=T.event.special[p]||{},h=l[p=(n?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=h.length;o--;)d=h[o],!s&&g!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(h.splice(o,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(t,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(t,f,m.handle)||T.removeEvent(t,p,m.handle),delete l[p])}else for(p in l)T.event.remove(t,p+e[c],i,n,!0);T.isEmptyObject(l)&&L.remove(t,"handle events")}},dispatch:function(t){t=T.event.fix(t);var e,i,n,s,o,r,a=d.call(arguments),l=(L.get(this,"events")||{})[t.type]||[],c=T.event.special[t.type]||{};if((a[0]=t).delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,t)){for(r=T.event.handlers.call(this,t,l),e=0;(s=r[e++])&&!t.isPropagationStopped();)for(t.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!t.isImmediatePropagationStopped();)t.rnamespace&&!t.rnamespace.test(o.namespace)||(t.handleObj=o,t.data=o.data,void 0!==(n=((T.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(t.result=n)&&(t.preventDefault(),t.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,t),t.result}},handlers:function(t,e){var i,n,s,o,r=[],a=e.delegateCount,l=t.target;if(a&&l.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==t.type)){for(n=[],i=0;i]*)\/>/gi,dt=/\s*$/g;function ft(t,e){return T.nodeName(t,"table")&&T.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function gt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function mt(t){var e=ht.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function vt(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(L.hasData(t)&&(o=L.access(t),r=L.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(i=0,n=c[s].length;i")},clone:function(t,e,i){var n,s,o,r,a,l,c,d=t.cloneNode(!0),u=T.contains(t.ownerDocument,t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(r=K(d),n=0,s=(o=K(t)).length;n")).appendTo(e.documentElement))[0].contentDocument).write(),e.close(),i=xt(t,e),bt.detach()),_t[t]=i),i}var St=/^margin/,Tt=new RegExp("^("+R+")(?!px)[a-z%]+$","i"),kt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=C),e.getComputedStyle(t)},Et=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s},jt=S.documentElement;function $t(t,e,i){var n,s,o,r,a=t.style;return""!==(r=(i=i||kt(t))?i.getPropertyValue(e)||i[e]:void 0)&&void 0!==r||T.contains(t.ownerDocument,t)||(r=T.style(t,e)),i&&!m.pixelMarginRight()&&Tt.test(r)&&St.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o),void 0!==r?r+"":r}function At(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){var e,i,n,s,o=S.createElement("div"),r=S.createElement("div");function t(){r.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",r.innerHTML="",jt.appendChild(o);var t=C.getComputedStyle(r);e="1%"!==t.top,s="2px"===t.marginLeft,i="4px"===t.width,r.style.marginRight="50%",n="4px"===t.marginRight,jt.removeChild(o)}r.style&&(r.style.backgroundClip="content-box",r.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===r.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(r),T.extend(m,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return null==i&&t(),i},pixelMarginRight:function(){return null==i&&t(),n},reliableMarginLeft:function(){return null==i&&t(),s},reliableMarginRight:function(){var t,e=r.appendChild(S.createElement("div"));return e.style.cssText=r.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",e.style.marginRight=e.style.width="0",r.style.width="1px",jt.appendChild(o),t=!parseFloat(C.getComputedStyle(e).marginRight),jt.removeChild(o),r.removeChild(e),t}}))}();var Dt=/^(none|table(?!-c[ea]).+)/,Ot={position:"absolute",visibility:"hidden",display:"block"},Nt={letterSpacing:"0",fontWeight:"400"},Pt=["Webkit","O","Moz","ms"],It=S.createElement("div").style;function Lt(t){if(t in It)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Pt.length;i--;)if((t=Pt[i]+e)in It)return t}function Ht(t,e,i){var n=F.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Mt(t,e,i,n,s){for(var o=i===(n?"border":"content")?4:"width"===e?1:0,r=0;o<4;o+=2)"margin"===i&&(r+=T.css(t,i+W[o],!0,s)),n?("content"===i&&(r-=T.css(t,"padding"+W[o],!0,s)),"margin"!==i&&(r-=T.css(t,"border"+W[o]+"Width",!0,s))):(r+=T.css(t,"padding"+W[o],!0,s),"padding"!==i&&(r+=T.css(t,"border"+W[o]+"Width",!0,s)));return r}function zt(t,e,i){var n=!0,s="width"===e?t.offsetWidth:t.offsetHeight,o=kt(t),r="border-box"===T.css(t,"boxSizing",!1,o);if(s<=0||null==s){if(((s=$t(t,e,o))<0||null==s)&&(s=t.style[e]),Tt.test(s))return s;n=r&&(m.boxSizingReliable()||s===t.style[e]),s=parseFloat(s)||0}return s+Mt(t,e,i||(r?"border":"content"),n,o)+"px"}function qt(t,e){for(var i,n,s,o=[],r=0,a=t.length;r").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(t){n.remove(),s=null,t&&e("error"===t.type?404:200,t.type)}),S.head.appendChild(n[0])},abort:function(){s&&s()}}});var De=[],Oe=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=De.pop()||T.expando+"_"+ce++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",function(t,e,i){var n,s,o,r=!1!==t.jsonp&&(Oe.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Oe.test(t.data)&&"data");if(r||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=T.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,r?t[r]=t[r].replace(Oe,"$1"+n):!1!==t.jsonp&&(t.url+=(de.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return o||T.error(n+" was not called"),o[0]},t.dataTypes[0]="json",s=C[n],C[n]=function(){o=arguments},i.always(function(){void 0===s?T(C).removeProp(n):C[n]=s,t[n]&&(t.jsonpCallback=e.jsonpCallback,De.push(n)),o&&T.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),T.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||S;var n=w.exec(t),s=!i&&[];return n?[e.createElement(n[1])]:(n=et([t],e,s),s&&s.length&&T(s).remove(),T.merge([],n.childNodes))};var Ne=T.fn.load;function Pe(t){return T.isWindow(t)?t:9===t.nodeType&&t.defaultView}T.fn.load=function(t,e,i){if("string"!=typeof t&&Ne)return Ne.apply(this,arguments);var n,s,o,r=this,a=t.indexOf(" ");return-1").append(T.parseHTML(t)).find(n):t)}).always(i&&function(t,e){r.each(function(){i.apply(this,o||[t.responseText,e,t])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){T.fn[e]=function(t){return this.on(e,t)}}),T.expr.filters.animated=function(e){return T.grep(T.timers,function(t){return e===t.elem}).length},T.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=T.css(t,"position"),d=T(t),u={};"static"===c&&(t.style.position="relative"),a=d.offset(),o=T.css(t,"top"),l=T.css(t,"left"),s=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(r=(n=d.position()).top,n.left):(r=parseFloat(o)||0,parseFloat(l)||0),T.isFunction(e)&&(e=e.call(t,i,T.extend({},a))),null!=e.top&&(u.top=e.top-a.top+r),null!=e.left&&(u.left=e.left-a.left+s),"using"in e?e.using.call(t,u):d.css(u)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){T.offset.setOffset(this,e,t)});var t,i,n=this[0],s={top:0,left:0},o=n&&n.ownerDocument;return o?(t=o.documentElement,T.contains(t,n)?(s=n.getBoundingClientRect(),i=Pe(o),{top:s.top+i.pageYOffset-t.clientTop,left:s.left+i.pageXOffset-t.clientLeft}):s):void 0},position:function(){if(this[0]){var t,e,i=this[0],n={top:0,left:0};return"fixed"===T.css(i,"position")?e=i.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),T.nodeName(t[0],"html")||(n=t.offset()),n.top+=T.css(t[0],"borderTopWidth",!0),n.left+=T.css(t[0],"borderLeftWidth",!0)),{top:e.top-n.top-T.css(i,"marginTop",!0),left:e.left-n.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||jt})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,s){var o="pageYOffset"===s;T.fn[e]=function(t){return N(this,function(t,e,i){var n=Pe(t);if(void 0===i)return n?n[s]:t[e];n?n.scrollTo(o?n.pageXOffset:i,o?i:n.pageYOffset):t[e]=i},e,t,arguments.length)}}),T.each(["top","left"],function(t,i){T.cssHooks[i]=At(m.pixelPosition,function(t,e){if(e)return e=$t(t,i),Tt.test(e)?T(t).position()[i]+"px":e})}),T.each({Height:"height",Width:"width"},function(o,r){T.each({padding:"inner"+o,content:r,"":"outer"+o},function(n,t){T.fn[t]=function(t,e){var i=arguments.length&&(n||"boolean"!=typeof t),s=n||(!0===t||!0===e?"margin":"border");return N(this,function(t,e,i){var n;return T.isWindow(t)?t.document.documentElement["client"+o]:9===t.nodeType?(n=t.documentElement,Math.max(t.body["scroll"+o],n["scroll"+o],t.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?T.css(t,e,s):T.style(t,e,i,s)},r,i?t:void 0,i,null)}})}),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},size:function(){return this.length}}),T.fn.andSelf=T.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return T});var Ie=C.jQuery,Le=C.$;return T.noConflict=function(t){return C.$===T&&(C.$=Le),t&&C.jQuery===T&&(C.jQuery=Ie),T},t||(C.jQuery=C.$=T),T}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],e):(t=t||self).Tooltip=e(t.jQuery,t.Popper,t.Util)}(this,function(u,h,p){"use strict";function o(t,e){for(var i=0;i
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:t,popperConfig:null},C="show",S="out",T={HIDE:"hide"+m,HIDDEN:"hidden"+m,SHOW:"show"+m,SHOWN:"shown"+m,INSERTED:"inserted"+m,CLICK:"click"+m,FOCUSIN:"focusin"+m,FOCUSOUT:"focusout"+m,MOUSEENTER:"mouseenter"+m,MOUSELEAVE:"mouseleave"+m},k="fade",E="show",j=".tooltip-inner",$=".arrow",A="hover",D="focus",O="click",N="manual",n=function(){function n(t,e){if(void 0===h)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t,e,i,s=n.prototype;return s.enable=function(){this._isEnabled=!0},s.disable=function(){this._isEnabled=!1},s.toggleEnabled=function(){this._isEnabled=!this._isEnabled},s.toggle=function(t){if(this._isEnabled)if(t){var e=this.constructor.DATA_KEY,i=u(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),u(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(u(this.getTipElement()).hasClass(E))return void this._leave(null,this);this._enter(null,this)}},s.dispose=function(){clearTimeout(this._timeout),u.removeData(this.element,this.constructor.DATA_KEY),u(this.element).off(this.constructor.EVENT_KEY),u(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&u(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},s.show=function(){var e=this;if("none"===u(this.element).css("display"))throw new Error("Please use show on visible elements");var t=u.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){u(this.element).trigger(t);var i=p.findShadowRoot(this.element),n=u.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var s=this.getTipElement(),o=p.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&u(s).addClass(k);var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,a=this._getAttachment(r);this.addAttachmentClass(a);var l=this._getContainer();u(s).data(this.constructor.DATA_KEY,this),u.contains(this.element.ownerDocument.documentElement,this.tip)||u(s).appendTo(l),u(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h(this.element,s,this._getPopperConfig(a)),u(s).addClass(E),"ontouchstart"in document.documentElement&&u(document.body).children().on("mouseover",null,u.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,u(e.element).trigger(e.constructor.Event.SHOWN),t===S&&e._leave(null,e)};if(u(this.tip).hasClass(k)){var d=p.getTransitionDurationFromElement(this.tip);u(this.tip).one(p.TRANSITION_END,c).emulateTransitionEnd(d)}else c()}},s.hide=function(t){var e=this,i=this.getTipElement(),n=u.Event(this.constructor.Event.HIDE),s=function(){e._hoverState!==C&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),u(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};if(u(this.element).trigger(n),!n.isDefaultPrevented()){if(u(i).removeClass(E),"ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),this._activeTrigger[O]=!1,this._activeTrigger[D]=!1,this._activeTrigger[A]=!1,u(this.tip).hasClass(k)){var o=p.getTransitionDurationFromElement(i);u(i).one(p.TRANSITION_END,s).emulateTransitionEnd(o)}else s();this._hoverState=""}},s.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},s.isWithContent=function(){return Boolean(this.getTitle())},s.addAttachmentClass=function(t){u(this.getTipElement()).addClass(v+"-"+t)},s.getTipElement=function(){return this.tip=this.tip||u(this.config.template)[0],this.tip},s.setContent=function(){var t=this.getTipElement();this.setElementContent(u(t.querySelectorAll(j)),this.getTitle()),u(t).removeClass(k+" "+E)},s.setElementContent=function(t,e){"object"!=typeof e||!e.nodeType&&!e.jquery?this.config.html?(this.config.sanitize&&(e=a(e,this.config.whiteList,this.config.sanitizeFn)),t.html(e)):t.text(e):this.config.html?u(e).parent().is(t)||t.empty().append(e):t.text(u(e).text())},s.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},s._getPopperConfig=function(t){var e=this;return r({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:$},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}},{},this.config.popperConfig)},s._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},s._getContainer=function(){return!1===this.config.container?document.body:p.isElement(this.config.container)?u(this.config.container):u(document).find(this.config.container)},s._getAttachment=function(t){return _[t.toUpperCase()]},s._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){if("click"===t)u(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)});else if(t!==N){var e=t===A?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,i=t===A?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT;u(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(i,n.config.selector,function(t){return n._leave(t)})}}),this._hideModalHandler=function(){n.element&&n.hide()},u(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},s._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},s._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||u(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),u(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?D:A]=!0),u(e.getTipElement()).hasClass(E)||e._hoverState===C?e._hoverState=C:(clearTimeout(e._timeout),e._hoverState=C,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===C&&e.show()},e.config.delay.show):e.show())},s._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||u(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),u(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?D:A]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=S,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===S&&e.hide()},e.config.delay.hide):e.hide())},s._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},s._getConfig=function(t){var e=u(this.element).data();return Object.keys(e).forEach(function(t){-1!==w.indexOf(t)&&delete e[t]}),"number"==typeof(t=r({},this.constructor.Default,{},e,{},"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),p.typeCheckConfig(l,t,this.constructor.DefaultType),t.sanitize&&(t.template=a(t.template,t.whiteList,t.sanitizeFn)),t},s._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},s._cleanTipClass=function(){var t=u(this.getTipElement()),e=t.attr("class").match(y);null!==e&&e.length&&t.removeClass(e.join(""))},s._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},s._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(u(t).removeClass(k),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},n._jQueryInterface=function(i){return this.each(function(){var t=u(this).data(g),e="object"==typeof i&&i;if((t||!/dispose|hide/.test(i))&&(t||(t=new n(this,e),u(this).data(g,t)),"string"==typeof i)){if(void 0===t[i])throw new TypeError('No method named "'+i+'"');t[i]()}})},t=n,i=[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return x}},{key:"NAME",get:function(){return l}},{key:"DATA_KEY",get:function(){return g}},{key:"Event",get:function(){return T}},{key:"EVENT_KEY",get:function(){return m}},{key:"DefaultType",get:function(){return b}}],(e=null)&&o(t.prototype,e),i&&o(t,i),n}();return u.fn[l]=n._jQueryInterface,u.fn[l].Constructor=n,u.fn[l].noConflict=function(){return u.fn[l]=i,n._jQueryInterface},n}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):(t=t||self).Util=e(t.jQuery)}(this,function(o){"use strict";o=o&&o.hasOwnProperty("default")?o.default:o;var e="transitionend";function t(t){var e=this,i=!1;return o(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(e)},t),this}var l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");if(!e||"#"===e){var i=t.getAttribute("href");e=i&&"#"!==i?i.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;var e=o(t).css("transition-duration"),i=o(t).css("transition-delay"),n=parseFloat(e),s=parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(e)+parseFloat(i))):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){o(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],o=e[n],r=o&&l.isElement(o)?"element":(a=o,{}.toString.call(a).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(r))throw new Error(t.toUpperCase()+': Option "'+n+'" provided type "'+r+'" but expected type "'+s+'".')}var a},findShadowRoot:function(t){if(!document.documentElement.attachShadow)return null;if("function"!=typeof t.getRootNode)return t instanceof ShadowRoot?t:t.parentNode?l.findShadowRoot(t.parentNode):null;var e=t.getRootNode();return e instanceof ShadowRoot?e:null},jQueryDetection:function(){if(void 0===o)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var t=o.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};return l.jQueryDetection(),o.fn.emulateTransitionEnd=t,o.event.special[l.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(o(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},l}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],e):(t=t||self).Modal=e(t.jQuery,t.Util)}(this,function(a,l){"use strict";function o(t,e){for(var i=0;idocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.rightthis._items.length-1||t<0))if(this._isSliding)f(this._element).one(w.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();var n=i=e[i];)i+=1;return i}function o(t,e,i){var n;if("number"==typeof e&&(e=[e]),!Array.isArray(e))throw new Error("noUiSlider ("+ot+"): 'range' contains invalid value.");if(!s(n="min"===t?0:"max"===t?100:parseFloat(t))||!s(e[0]))throw new Error("noUiSlider ("+ot+"): 'range' value isn't numeric.");i.xPct.push(n),i.xVal.push(e[0]),n?i.xSteps.push(!isNaN(e[1])&&e[1]):isNaN(e[1])||(i.xSteps[0]=e[1]),i.xHighestCompleteStep.push(0)}function r(t,e,i){if(e)if(i.xVal[t]!==i.xVal[t+1]){i.xSteps[t]=u([i.xVal[t],i.xVal[t+1]],e)/d(i.xPct[t],i.xPct[t+1]);var n=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],s=Math.ceil(Number(n.toFixed(3))-1),o=i.xVal[t]+i.xNumSteps[t]*s;i.xHighestCompleteStep[t]=o}else i.xSteps[t]=i.xHighestCompleteStep[t]=i.xVal[t]}function i(t,e,i){var n;this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var s=[];for(n in t)t.hasOwnProperty(n)&&s.push([t[n],n]);for(s.length&&"object"==typeof s[0][0]?s.sort(function(t,e){return t[0][0]-e[0][0]}):s.sort(function(t,e){return t[0]-e[0]}),n=0;n=t.slice(-1)[0])return 100;var n,s,o=h(i,t),r=t[o-1],a=t[o],l=e[o-1],c=e[o];return l+(s=i,u(n=[r,a],n[0]<0?s+Math.abs(n[0]):s-n[0])/d(l,c))}(this.xVal,this.xPct,t)},i.prototype.fromStepping=function(t){return function(t,e,i){if(100<=i)return t.slice(-1)[0];var n,s=h(i,e),o=t[s-1],r=t[s],a=e[s-1];return n=[o,r],(i-a)*d(a,e[s])*(n[1]-n[0])/100+n[0]}(this.xVal,this.xPct,t)},i.prototype.getStep=function(t){return function(t,e,i,n){if(100===n)return n;var s,o,r=h(n,t),a=t[r-1],l=t[r];return i?(l-a)/2= 2) required for mode 'count'.");var n=e-1,s=100/n;for(e=[];n--;)e[n]=n*s;e.push(100),t="positions"}return"positions"===t?e.map(function(t){return C.fromStepping(i?C.getStep(t):t)}):"values"===t?i?e.map(function(t){return C.fromStepping(C.getStep(C.toStepping(t)))}):e:void 0}(n,t.values||!1,t.stepped||!1),a=(g=s,m=n,v=r,y={},e=C.xVal[0],i=C.xVal[C.xVal.length-1],b=w=!1,_=0,(v=v.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==e&&(v.unshift(e),w=!0),v[v.length-1]!==i&&(v.push(i),b=!0),v.forEach(function(t,e){var i,n,s,o,r,a,l,c,d,u,h=t,p=v[e+1],f="steps"===m;if(f&&(i=C.xNumSteps[e]),i||(i=p-h),!1!==h&&void 0!==p)for(i=Math.max(i,1e-7),n=h;n<=p;n=(n+i).toFixed(7)/1){for(c=(r=(o=C.toStepping(n))-_)/g,u=r/(d=Math.round(c)),s=1;s<=d;s+=1)y[(a=_+s*u).toFixed(5)]=[C.fromStepping(a),0];l=-1i.stepAfter.startValue&&(s=i.stepAfter.startValue-n),o=n>i.thisStep.startValue?i.thisStep.step:!1!==i.stepBefore.step&&n-i.stepBefore.highestStep,100===e?s=null:0===e&&(o=null);var r=C.countStepDecimals();return null!==s&&!1!==s&&(s=Number(s.toFixed(r))),null!==o&&!1!==o&&(o=Number(o.toFixed(r))),[o,s]}return ut(e=x,h.cssClasses.target),0===h.dir?ut(e,h.cssClasses.ltr):ut(e,h.cssClasses.rtl),0===h.ort?ut(e,h.cssClasses.horizontal):ut(e,h.cssClasses.vertical),l=A(e,h.cssClasses.base),function(t,e){var i=A(e,h.cssClasses.connects);c=[],(r=[]).push(O(i,t[0]));for(var n=0;n",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('
'),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var t=this.$element.find(".owl-item");if(t.length)return this._items=t.get().map(function(t){return l(t)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var e=this.viewport(),t=this.options.responsive,i=-1,n=null;t?(l.each(t,function(t){t<=e&&i").addClass(this.options.itemClass).append(t)),this.trigger("prepared",{content:e.data}),e.data},c.prototype.update=function(){for(var t=0,e=this._pipe.length,i=l.proxy(function(t){return this[t]},this._invalidated),n={};t",r[t+1]!==a?r[t+1]:e-o)&&(s="left"===n?t+1:t),-1===s},this)),this.settings.loop||(this.op(i,">",r[this.minimum()])?s=i=this.minimum():this.op(i,"<",r[this.maximum()])&&(s=i=this.maximum())),s},c.prototype.animate=function(t){var e=0n););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},c.prototype.minimum=function(t){return t?0:this._clones.length/2},c.prototype.items=function(t){return t===a?this._items.slice():(t=this.normalize(t,!0),this._items[t])},c.prototype.mergers=function(t){return t===a?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},c.prototype.clones=function(i){var e=this._clones.length/2,n=e+this._items.length,s=function(t){return t%2==0?n+t/2:e-(t+1)/2};return i===a?l.map(this._clones,function(t,e){return s(e)}):l.map(this._clones,function(t,e){return t===i?s(e):null})},c.prototype.speed=function(t){return t!==a&&(this._speed=t),this._speed},c.prototype.coordinates=function(t){var e,i=1,n=t-1;return t===a?l.map(this._coordinates,l.proxy(function(t,e){return this.coordinates(e)},this)):(this.settings.center?(this.settings.rtl&&(i=-1,n=t+1),e=this._coordinates[t],e+=(this.width()-e+(this._coordinates[n]||0))/2*i):e=this._coordinates[n]||0,e=Math.ceil(e))},c.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},c.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(0r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&0":return n?t=":return n?t<=i:i<=t;case"<=":return n?i<=t:t<=i}},c.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},c.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},c.prototype.trigger=function(t,e,i,n,s){var o={item:{count:this._items.length,index:this.current()}},r=l.camelCase(l.grep(["on",t,i],function(t){return t}).join("-").toLowerCase()),a=l.Event([t,"owl",i||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,e));return this._supress[t]||(l.each(this._plugins,function(t,e){e.onTrigger&&e.onTrigger(a)}),this.register({type:c.Type.Event,name:t}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[r]&&this.settings[r].call(this,a)),a},c.prototype.enter=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]===a&&(this._states.current[e]=0),this._states.current[e]++},this))},c.prototype.leave=function(t){l.each([t].concat(this._states.tags[t]||[]),l.proxy(function(t,e){this._states.current[e]--},this))},c.prototype.register=function(i){if(i.type===c.Type.Event){if(l.event.special[i.name]||(l.event.special[i.name]={}),!l.event.special[i.name].owl){var e=l.event.special[i.name]._default;l.event.special[i.name]._default=function(t){return!e||!e.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&-1
',i=l.lazyLoad?'
':'
',e.after(i),e.after('
')};if(e.wrap('
"),this._core.settings.lazyLoad&&(r="data-src",a="owl-lazy"),o.length)return c(o.attr(r)),o.remove(),!1;"youtube"===t.type?(n="//img.youtube.com/vi/"+t.id+"/hqdefault.jpg",c(n)):"vimeo"===t.type?d.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t[0].thumbnail_large,c(n)}}):"vzaar"===t.type&&d.ajax({type:"GET",url:"//vzaar.com/api/videos/"+t.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){n=t.framegrab_url,c(n)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(t){var e,i=d(t.target).closest("."+this._core.settings.itemClass),n=this._videos[i.attr("data-video")],s=n.width||"100%",o=n.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),i=this._core.items(this._core.relative(i.index())),this._core.reset(i.index()),"youtube"===n.type?e='':"vimeo"===n.type?e='':"vzaar"===n.type&&(e=''),d('
'+e+"
").insertAfter(i.find(".owl-video")),this._playing=i.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var t=e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement;return t&&d(t).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},d.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(r,t,e,i){var n=function(t){this.core=t,this.core.options=r.extend({},n.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":r.proxy(function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":r.proxy(function(t){t.namespace&&(this.swapping="translated"==t.type)},this),"translate.owl.carousel":r.proxy(function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};n.Defaults={animateOut:!1,animateIn:!1},n.prototype.swap=function(){if(1===this.core.settings.items&&r.support.animation&&r.support.transition){this.core.speed(0);var t,e=r.proxy(this.clear,this),i=this.core.$stage.children().eq(this.previous),n=this.core.$stage.children().eq(this.next),s=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(t=this.core.coordinates(this.previous)-this.core.coordinates(this.next),i.one(r.support.animation.end,e).css({left:t+"px"}).addClass("animated owl-animated-out").addClass(o)),s&&n.one(r.support.animation.end,e).addClass("animated owl-animated-in").addClass(s))}},n.prototype.clear=function(t){r(t.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},n.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},r.fn.owlCarousel.Constructor.Plugins.Animate=n}(window.Zepto||window.jQuery,window,document),function(n,s,e,t){var i=function(t){this._core=t,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":n.proxy(function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":n.proxy(function(t){t.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":n.proxy(function(t,e,i){t.namespace&&this.play(e,i)},this),"stop.owl.autoplay":n.proxy(function(t){t.namespace&&this.stop()},this),"mouseover.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":n.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=n.extend({},i.Defaults,this._core.options)};i.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},i.prototype._next=function(t){this._call=s.setTimeout(n.proxy(this._next,this,t),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||e.hidden||this._core.next(t||this._core.settings.autoplaySpeed)},i.prototype.read=function(){return(new Date).getTime()-this._time},i.prototype.play=function(t,e){var i;this._core.is("rotating")||this._core.enter("rotating"),t=t||this._core.settings.autoplayTimeout,i=Math.min(this._time%(this._timeout||t),t),this._paused?(this._time=this.read(),this._paused=!1):s.clearTimeout(this._call),this._time+=this.read()%t-i,this._timeout=t,this._call=s.setTimeout(n.proxy(this._next,this,e),t-i)},i.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,s.clearTimeout(this._call),this._core.leave("rotating"))},i.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,s.clearTimeout(this._call))},i.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},n.fn.owlCarousel.Constructor.Plugins.autoplay=i}(window.Zepto||window.jQuery,window,document),function(o,t,e,i){"use strict";var n=function(t){this._core=t,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.push('
'+o(t.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
")},this),"added.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)},this),"changed.owl.carousel":o.proxy(function(t){t.namespace&&"position"==t.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},n.Defaults,this._core.options),this.$element.on(this._handlers)};n.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},n.prototype.initialize=function(){var t,i=this._core.settings;for(t in this._controls.$relative=(i.navContainer?o(i.navContainer):o("
").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(t){this.prev(i.navSpeed)},this)),this._controls.$next=o("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(t){this.next(i.navSpeed)},this)),i.dotsData||(this._templates=[o('',nextArrow:'',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,e){return c('',nextArrow:'',slidesToShow:1,infinite:!0,draggable:!0,centerMode:!0,centerPadding:"340px",responsive:[{breakpoint:1100,settings:{centerPadding:"240px"}},{breakpoint:992,settings:{centerMode:!1,centerPadding:"0"}},{breakpoint:767,settings:{centerPadding:"0"}}]})},u=function(){if(767 .js-accordion-item-head").on("click",function(){r(this).hasClass("active")?(r(this).removeClass("active"),r(this).siblings(".js-accordion-item-content").slideUp(200),r(this).siblings(".js-accordion-item").css("zIndex","1"),r(this).find(".js-accordion-item-head-text-show").show(),r(this).find(".js-accordion-item-head-text-hide").hide()):(r(".js-accordion .js-accordion-item > .js-accordion-item-head").removeClass("active"),r(this).addClass("active"),r(".js-accordion .js-accordion-item-content").slideUp(200),r(".js-accordion .js-accordion-item-head-text-show").show(),r(".js-accordion .js-accordion-item-head-text-hide").hide(),r(".js-accordion .js-accordion-item").css("zIndex","1"),r(this).siblings(".js-accordion-item-content").slideDown(200),r(this).parent(".js-accordion-item").css("zIndex","5"),r(this).find(".js-accordion-item-head-text-show").hide(),r(this).find(".js-accordion-item-head-text-hide").show())})},y=function(){r(window).width()<=767&&(r(".js-accordion-item-content").hide(),r(".js-accordion-item-head.active").next().show(),r(".js-accordion-footer .js-accordion-item > .js-accordion-item-head").on("click",function(){r(this).hasClass("active")?(r(this).removeClass("active"),r(this).siblings(".js-accordion-item-content").slideUp(200)):(r(".js-accordion-footer .js-accordion-item > .js-accordion-item-head").removeClass("active"),r(this).addClass("active"),r(".js-accordion-footer .js-accordion-item-content").slideUp(200),r(this).siblings(".js-accordion-item-content").slideDown(200))}))},w=function(){r(".js-paliwowa-a-discounts-slider .js-paliwowa-a-discounts-slider-item .js-paliwowa-a-discounts-slider-item-head").on("click",function(){r(this).hasClass("active")?(r(this).removeClass("active"),r(this).siblings(".js-paliwowa-a-discounts-slider-item-content").slideUp(200)):(r(".js-paliwowa-a-discounts-slider .js-paliwowa-a-discounts-slider-item .js-paliwowa-a-discounts-slider-item-head").removeClass("active"),r(this).addClass("active"),r(".js-paliwowa-a-discounts-slider .js-paliwowa-a-discounts-slider-item-content").slideUp(200),r(this).siblings(".js-paliwowa-a-discounts-slider-item-content").slideDown(200))})},b=function(){r(".js-country-button").click(function(){r("#country-button").length&&r('.modal form.js-request-form input[name="comment"]').val(r("#country-button").html())}),r(".js-country-selected").on("click",function(){r(".js-country-selected").hasClass("active")?(r(".js-country-list").hide(),r(".js-country-selected").removeClass("active")):(r(".js-country-list").show(),r(".js-country-selected").addClass("active"))})};function _(t){t.preventDefault(),r("#country-button").length&&r("#country-button").html(r(this).attr("data-name")),r(".js-country-list li").removeClass("active"),r(this).addClass("active"),r(".js-roads-description-item").removeClass("active"),r('.js-roads-description-item[data-country="'+r(this).attr("data-country")+'"]').addClass("active"),r(".js-set-country").html(r(this).attr("data-name")),r(".js-set-country").data("country",r(this).html()),r(".js-country-selected").empty(),r(this).clone().appendTo(".js-country-selected"),r(this).closest("form").find('input[name="country"]').val(r(this).attr("data-name")),r(".js-country-selected").trigger("click")}var x=function(){r(".js-close-forever").on("click",function(){r(".js-default-modal").hide()})},C=function(){r(".js-family-slider").slick({dots:!0,dotsClass:"family-slider-dots",arrows:!0,prevArrow:'',nextArrow:'',slidesToShow:1})},S=function(){r(window).width()<=991?r(".js-family").each(function(){r(this).find(".js-family-order-place").append(r(this).find(".js-family-container-sticky"))}):r(".js-family").each(function(){r(this).find(".js-family-container").append(r(this).find(".js-family-container-sticky"))})},T=function(){r(window).width()<=991&&r("body").each(function(){r(this).find(".js-place-for-paliwowa-order-top").append(r(this).find(".js-paliwowa-order-top"))})},k=function(){r(".js-open-cookie-box").on("click",function(){r(this).hasClass("active")?(r(".js-cookie-box").hide(),r(this).removeClass("active"),r(".js-open-cookie-box-text-open").show(),r(".js-open-cookie-box-text-close").hide()):(r(".js-cookie-box").show(),r(this).addClass("active"),r(".js-open-cookie-box-text-open").hide(),r(".js-open-cookie-box-text-close").show())})},E=function(){r(".js-open-min-popup, .js-min-popup-mask, .js-min-popup-close").on("click",function(){var t=r(this).closest(".js-min-popup-parent"),e=t.find(".js-open-min-popup");t.length&&(e.hasClass("active")?(t.find(".js-min-popup").hide(),e.removeClass("active")):(t.find(".js-min-popup").show(),e.addClass("active")))})},j=function(){r(".js-paliwowa-a-discounts-slider").slick({dots:!1,arrows:!0,prevArrow:'',nextArrow:'',infinite:!0,variableWidth:!0,responsive:[{breakpoint:768,settings:"unslick"}]})},$=function(){r(".js-scrollto").click(function(){var t=r(this).attr("data-id"),e=r(t).offset().top;return jQuery("html:not(:animated),body:not(:animated)").animate({scrollTop:e-60},800),!1})};r(".js-vat-table-more").click(function(){r(this).parent().find(".vat-table__title-text").toggleClass("active"),r(this).parent().find(".vat-table__title-text").hasClass("active")?r(this).text(r(this).attr("data-close")):r(this).text(r(this).attr("data-open"))}),r(".js-line-tab").click(function(){var t=r(this).attr("data-tab"),e=r(this).closest(".line-tabs");e.find(".line-tabs__item").removeClass("line-tabs__item--active"),e.find(".line-tabs__item").each(function(){r(this).attr("data-tab")==t&&r(this).addClass("line-tabs__item--active")})}),r(".js-vat-tab").click(function(){var t=r(this).attr("data-tab"),e=r(this).closest(".vat-tabs");e.find(".vat-tabs__item").removeClass("vat-tabs__item--active"),e.find('.vat-tabs__item[data-tab="'+t+'"]').addClass("vat-tabs__item--active")}),r(".js-multiserwisy-tabs").click(function(){var t=r(this).attr("data-tab"),e=r(this).closest(".multiserwisy-tabs");e.find(".multiserwisy-tabs__item").removeClass("multiserwisy-tabs__item--active"),e.find(".multiserwisy-tabs__item").each(function(){r(this).attr("data-tab")==t&&r(this).addClass("multiserwisy-tabs__item--active")})}),r(".step-form-check").on("input change",function(){var t=r(this).closest(".step-form__step"),e=1;t.find(".step-form-check").each(function(){""==r(this).val()&&(e=0)}),0!=e?t.find(".js-step-form-change-step.step-form__next-step").removeAttr("disabled"):t.find(".js-step-form-change-step.step-form__next-step").attr("disabled","disabled")}),r(".js-step-form-change-step").click(function(){var t=r(this).closest(".step-form__step"),e=+t.attr("data-step"),i=r(this).closest("form");if(r(this).hasClass("step-form__next-step"))var n=e+1;else if(1!=e)n=e-1;if(2==e&&3==n){var s=!1;if(0==t.find("input").length&&(s=!0),t.find("input").each(function(){""==r(this).val()&&(s=!0)}),s)return!1}i.find(".vat-calculator__step").removeClass("active"),i.find(".vat-calculator__step").each(function(){r(this).attr("data-step")>n?r(this).removeClass("active"):r(this).addClass("active")}),i.find(".step-form__step").hide(),i.find('.step-form__step[data-step="'+n+'"]').show()}),r(".js-calc-contries-toggle").click(function(){r(this).toggleClass("active"),r(this).closest(".calc-contries-picker-select").find(".calc-contries-picker-select__body").toggle()}),r(".calc-contries-picker-select__body li").click(function(){var t=r(this).closest(".step-form__step").attr("data-wpis");r(this).toggleClass("selected"),r(".calc-contries-picker-select__flag-list").html(""),r(".calc-contries-picker-list__items").html(""),r(".calc-contries-picker-select__body li.selected").each(function(){r(".calc-contries-picker-select__flag-list").append(''+r(this).attr('),r(".calc-contries-picker-list__items").append('
'+r(this).attr("data-name")+'
")});var e="";r(".calc-contries-picker-select__flag-list img").each(function(){e+=(e?", ":"")+r(this).attr("alt")}),r(r(".calc-contries-picker-select__flag-list").attr("data-input")).val(e),""!=r(".calc-contries-picker-select__flag-list").html()?r(".calc-contries-picker-select__header span").hide():r(".calc-contries-picker-select__header span").show()}),r(document).mouseup(function(t){var e=r(".calc-contries-picker-select");e.is(t.target)||0!==e.has(t.target).length||(r(".js-calc-contries-toggle").removeClass("active"),r(".calc-contries-picker-select__body").hide())}),r(".js-vat-tab").length&&r(".js-vat-tab.vat-tabs__item--active").trigger("click")});