!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var i=[],s=Object.getPrototypeOf,n=i.slice,a=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},r=i.push,o=i.indexOf,l={},c=l.toString,d=l.hasOwnProperty,u=d.toString,h=u.call(Object),p={},f=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},m=function(e){return null!=e&&e===e.window},g=e.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,i){var s,n,a=(i=i||g).createElement("script");if(a.text=e,t)for(s in v)(n=t[s]||t.getAttribute&&t.getAttribute(s))&&a.setAttribute(s,n);i.head.appendChild(a).parentNode.removeChild(a)}function y(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[c.call(e)]||"object":typeof e}var w="3.7.1",_=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,i=y(e);return!f(e)&&!m(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}x.fn=x.prototype={jquery:w,constructor:x,length:0,toArray:function(){return n.call(this)},get:function(e){return null==e?n.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,i){return e.call(t,i,t)}))},slice:function(){return this.pushStack(n.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(x.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:r,sort:i.sort,splice:i.splice},x.extend=x.fn.extend=function(){var e,t,i,s,n,a,r=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[o]||{},o++),"object"==typeof r||f(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)s=e[t],"__proto__"!==t&&r!==s&&(c&&s&&(x.isPlainObject(s)||(n=Array.isArray(s)))?(i=r[t],a=n&&!Array.isArray(i)?[]:n||x.isPlainObject(i)?i:{},n=!1,r[t]=x.extend(c,a,s)):void 0!==s&&(r[t]=s));return r},x.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==c.call(e)||(t=s(e))&&("function"!=typeof(i=d.call(t,"constructor")&&t.constructor)||u.call(i)!==h))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){b(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,s=0;if(k(e))for(i=e.length;s<i&&!1!==t.call(e[s],s,e[s]);s++);else for(s in e)if(!1===t.call(e[s],s,e[s]))break;return e},text:function(e){var t,i="",s=0,n=e.nodeType;if(!n)for(;t=e[s++];)i+=x.text(t);return 1===n||11===n?e.textContent:9===n?e.documentElement.textContent:3===n||4===n?e.nodeValue:i},makeArray:function(e,t){var i=t||[];return null!=e&&(k(Object(e))?x.merge(i,"string"==typeof e?[e]:e):r.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:o.call(t,e,i)},isXMLDoc:function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!_.test(t||i&&i.nodeName||"HTML")},merge:function(e,t){for(var i=+t.length,s=0,n=e.length;s<i;s++)e[n++]=t[s];return e.length=n,e},grep:function(e,t,i){for(var s=[],n=0,a=e.length,r=!i;n<a;n++)!t(e[n],n)!==r&&s.push(e[n]);return s},map:function(e,t,i){var s,n,r=0,o=[];if(k(e))for(s=e.length;r<s;r++)null!=(n=t(e[r],r,i))&&o.push(n);else for(r in e)null!=(n=t(e[r],r,i))&&o.push(n);return a(o)},guid:1,support:p}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=i[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCase()});var C=i.pop,$=i.sort,T=i.splice,E="[\\x20\\t\\r\\n\\f]",D=new RegExp("^"+E+"+|((?:^|[^\\\\])(?:\\\\.)*)"+E+"+$","g");x.contains=function(e,t){var i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(e.contains?e.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))};var M=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}x.escapeSelector=function(e){return(e+"").replace(M,I)};var P=g,A=r;!function(){var t,s,a,r,l,c,u,h,f,m,g=A,v=x.expando,b=0,y=0,w=ee(),_=ee(),k=ee(),M=ee(),I=function(e,t){return e===t&&(l=!0),0},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="(?:\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",z="\\["+E+"*("+N+")(?:"+E+"*([*^$|!~]?=)"+E+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+E+"*\\]",O=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+z+")*)|.*)\\)|)",R=new RegExp(E+"+","g"),j=new RegExp("^"+E+"*,"+E+"*"),B=new RegExp("^"+E+"*([>+~]|"+E+")"+E+"*"),H=new RegExp(E+"|>"),F=new RegExp(O),W=new RegExp("^"+N+"$"),U={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+z),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+E+"*(even|odd|(([+-]|)(\\d*)n|)"+E+"*(?:([+-]|)"+E+"*(\\d+)|))"+E+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+E+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+E+"*((?:-\\d)?\\d*)"+E+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,V=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,X=new RegExp("\\\\[\\da-fA-F]{1,6}"+E+"?|\\\\([^\\r\\n\\f])","g"),J=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},K=function(){le()},Q=he(function(e){return!0===e.disabled&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});try{g.apply(i=n.call(P.childNodes),P.childNodes),i[P.childNodes.length].nodeType}catch(t){g={apply:function(e,t){A.apply(e,n.call(t))},call:function(e){A.apply(e,n.call(arguments,1))}}}function Z(e,t,i,s){var n,a,r,o,l,d,u,m=t&&t.ownerDocument,b=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==b&&9!==b&&11!==b)return i;if(!s&&(le(t),t=t||c,h)){if(11!==b&&(l=V.exec(e)))if(n=l[1]){if(9===b){if(!(r=t.getElementById(n)))return i;if(r.id===n)return g.call(i,r),i}else if(m&&(r=m.getElementById(n))&&Z.contains(t,r)&&r.id===n)return g.call(i,r),i}else{if(l[2])return g.apply(i,t.getElementsByTagName(e)),i;if((n=l[3])&&t.getElementsByClassName)return g.apply(i,t.getElementsByClassName(n)),i}if(!(M[e+" "]||f&&f.test(e))){if(u=e,m=t,1===b&&(H.test(e)||B.test(e))){for((m=G.test(e)&&oe(t.parentNode)||t)==t&&p.scope||((o=t.getAttribute("id"))?o=x.escapeSelector(o):t.setAttribute("id",o=v)),a=(d=de(e)).length;a--;)d[a]=(o?"#"+o:":scope")+" "+ue(d[a]);u=d.join(",")}try{return g.apply(i,m.querySelectorAll(u)),i}catch(t){M(e,!0)}finally{o===v&&t.removeAttribute("id")}}}return be(e.replace(D,"$1"),t,i,s)}function ee(){var e=[];return function t(i,n){return e.push(i+" ")>s.cacheLength&&delete t[e.shift()],t[i+" "]=n}}function te(e){return e[v]=!0,e}function ie(e){var t=c.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function se(e){return function(t){return S(t,"input")&&t.type===e}}function ne(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function ae(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Q(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function re(e){return te(function(t){return t=+t,te(function(i,s){for(var n,a=e([],i.length,t),r=a.length;r--;)i[n=a[r]]&&(i[n]=!(s[n]=i[n]))})})}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var t,i=e?e.ownerDocument||e:P;return i!=c&&9===i.nodeType&&i.documentElement&&(u=(c=i).documentElement,h=!x.isXMLDoc(c),m=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&P!=c&&(t=c.defaultView)&&t.top!==t&&t.addEventListener("unload",K),p.getById=ie(function(e){return u.appendChild(e).id=x.expando,!c.getElementsByName||!c.getElementsByName(x.expando).length}),p.disconnectedMatch=ie(function(e){return m.call(e,"*")}),p.scope=ie(function(){return c.querySelectorAll(":scope")}),p.cssHas=ie(function(){try{return c.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),p.getById?(s.filter.ID=function(e){var t=e.replace(X,J);return function(e){return e.getAttribute("id")===t}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var i=t.getElementById(e);return i?[i]:[]}}):(s.filter.ID=function(e){var t=e.replace(X,J);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},s.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var i,s,n,a=t.getElementById(e);if(a){if((i=a.getAttributeNode("id"))&&i.value===e)return[a];for(n=t.getElementsByName(e),s=0;a=n[s++];)if((i=a.getAttributeNode("id"))&&i.value===e)return[a]}return[]}}),s.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},s.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},f=[],ie(function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||f.push("\\["+E+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+v+"-]").length||f.push("~="),e.querySelectorAll("a#"+v+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll(":checked").length||f.push(":checked"),(t=c.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),(t=c.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+E+"*name"+E+"*="+E+"*(?:''|\"\")")}),p.cssHas||f.push(":has"),f=f.length&&new RegExp(f.join("|")),I=function(e,t){if(e===t)return l=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!p.sortDetached&&t.compareDocumentPosition(e)===i?e===c||e.ownerDocument==P&&Z.contains(P,e)?-1:t===c||t.ownerDocument==P&&Z.contains(P,t)?1:r?o.call(r,e)-o.call(r,t):0:4&i?-1:1)}),c}for(t in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),h&&!M[t+" "]&&(!f||!f.test(t)))try{var i=m.call(e,t);if(i||p.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){M(t,!0)}return 0<Z(t,c,null,[e]).length},Z.contains=function(e,t){return(e.ownerDocument||e)!=c&&le(e),x.contains(e,t)},Z.attr=function(e,t){(e.ownerDocument||e)!=c&&le(e);var i=s.attrHandle[t.toLowerCase()],n=i&&d.call(s.attrHandle,t.toLowerCase())?i(e,t,!h):void 0;return void 0!==n?n:e.getAttribute(t)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,i=[],s=0,a=0;if(l=!p.sortStable,r=!p.sortStable&&n.call(e,0),$.call(e,I),l){for(;t=e[a++];)t===e[a]&&(s=i.push(a));for(;s--;)T.call(e,i[s],1)}return r=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(n.apply(this)))},(s=x.expr={cacheLength:50,createPseudo:te,match:U,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(X,J),e[3]=(e[3]||e[4]||e[5]||"").replace(X,J),"~="===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]||Z.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]&&Z.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&F.test(i)&&(t=de(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(X,J).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+E+")"+e+"("+E+"|$)"))&&w(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,i){return function(s){var n=Z.attr(s,e);return null==n?"!="===t:!t||(n+="","="===t?n===i:"!="===t?n!==i:"^="===t?i&&0===n.indexOf(i):"*="===t?i&&-1<n.indexOf(i):"$="===t?i&&n.slice(-i.length)===i:"~="===t?-1<(" "+n.replace(R," ")+" ").indexOf(i):"|="===t&&(n===i||n.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,s,n){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===s&&0===n?function(e){return!!e.parentNode}:function(t,i,l){var c,d,u,h,p,f=a!==r?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),y=!l&&!o,w=!1;if(m){if(a){for(;f;){for(u=t;u=u[f];)if(o?S(u,g):1===u.nodeType)return!1;p=f="only"===e&&!p&&"nextSibling"}return!0}if(p=[r?m.firstChild:m.lastChild],r&&y){for(w=(h=(c=(d=m[v]||(m[v]={}))[e]||[])[0]===b&&c[1])&&c[2],u=h&&m.childNodes[h];u=++h&&u&&u[f]||(w=h=0)||p.pop();)if(1===u.nodeType&&++w&&u===t){d[e]=[b,h,w];break}}else if(y&&(w=h=(c=(d=t[v]||(t[v]={}))[e]||[])[0]===b&&c[1]),!1===w)for(;(u=++h&&u&&u[f]||(w=h=0)||p.pop())&&((o?!S(u,g):1!==u.nodeType)||!++w||(y&&((d=u[v]||(u[v]={}))[e]=[b,w]),u!==t)););return(w-=n)===s||w%s==0&&0<=w/s}}},PSEUDO:function(e,t){var i,n=s.pseudos[e]||s.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return n[v]?n(t):1<n.length?(i=[e,e,"",t],s.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,i){for(var s,a=n(e,t),r=a.length;r--;)e[s=o.call(e,a[r])]=!(i[s]=a[r])}):function(e){return n(e,0,i)}):n}},pseudos:{not:te(function(e){var t=[],i=[],s=ve(e.replace(D,"$1"));return s[v]?te(function(e,t,i,n){for(var a,r=s(e,null,n,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))}):function(e,n,a){return t[0]=e,s(t,null,a,i),t[0]=null,!i.pop()}}),has:te(function(e){return function(t){return 0<Z(e,t).length}}),contains:te(function(e){return e=e.replace(X,J),function(t){return-1<(t.textContent||x.text(t)).indexOf(e)}}),lang:te(function(e){return W.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(X,J).toLowerCase(),function(t){var i;do{if(i=h?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return c.activeElement}catch(e){}}()&&c.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!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 q.test(e.nodeName)},input:function(e){return Y.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:re(function(){return[0]}),last:re(function(e,t){return[t-1]}),eq:re(function(e,t,i){return[i<0?i+t:i]}),even:re(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:re(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:re(function(e,t,i){var s;for(s=i<0?i+t:t<i?t:i;0<=--s;)e.push(s);return e}),gt:re(function(e,t,i){for(var s=i<0?i+t:i;++s<t;)e.push(s);return e})}}).pseudos.nth=s.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})s.pseudos[t]=se(t);for(t in{submit:!0,reset:!0})s.pseudos[t]=ne(t);function ce(){}function de(e,t){var i,n,a,r,o,l,c,d=_[e+" "];if(d)return t?0:d.slice(0);for(o=e,l=[],c=s.preFilter;o;){for(r in i&&!(n=j.exec(o))||(n&&(o=o.slice(n[0].length)||o),l.push(a=[])),i=!1,(n=B.exec(o))&&(i=n.shift(),a.push({value:i,type:n[0].replace(D," ")}),o=o.slice(i.length)),s.filter)!(n=U[r].exec(o))||c[r]&&!(n=c[r](n))||(i=n.shift(),a.push({value:i,type:r,matches:n}),o=o.slice(i.length));if(!i)break}return t?o.length:o?Z.error(e):_(e,l).slice(0)}function ue(e){for(var t=0,i=e.length,s="";t<i;t++)s+=e[t].value;return s}function he(e,t,i){var s=t.dir,n=t.next,a=n||s,r=i&&"parentNode"===a,o=y++;return t.first?function(t,i,n){for(;t=t[s];)if(1===t.nodeType||r)return e(t,i,n);return!1}:function(t,i,l){var c,d,u=[b,o];if(l){for(;t=t[s];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[s];)if(1===t.nodeType||r)if(d=t[v]||(t[v]={}),n&&S(t,n))t=t[s]||t;else{if((c=d[a])&&c[0]===b&&c[1]===o)return u[2]=c[2];if((d[a]=u)[2]=e(t,i,l))return!0}return!1}}function pe(e){return 1<e.length?function(t,i,s){for(var n=e.length;n--;)if(!e[n](t,i,s))return!1;return!0}:e[0]}function fe(e,t,i,s,n){for(var a,r=[],o=0,l=e.length,c=null!=t;o<l;o++)(a=e[o])&&(i&&!i(a,s,n)||(r.push(a),c&&t.push(o)));return r}function me(e,t,i,s,n,a){return s&&!s[v]&&(s=me(s)),n&&!n[v]&&(n=me(n,a)),te(function(a,r,l,c){var d,u,h,p,f=[],m=[],v=r.length,b=a||function(e,t,i){for(var s=0,n=t.length;s<n;s++)Z(e,t[s],i);return i}(t||"*",l.nodeType?[l]:l,[]),y=!e||!a&&t?b:fe(b,f,e,l,c);if(i?i(y,p=n||(a?e:v||s)?[]:r,l,c):p=y,s)for(d=fe(p,m),s(d,[],l,c),u=d.length;u--;)(h=d[u])&&(p[m[u]]=!(y[m[u]]=h));if(a){if(n||e){if(n){for(d=[],u=p.length;u--;)(h=p[u])&&d.push(y[u]=h);n(null,p=[],d,c)}for(u=p.length;u--;)(h=p[u])&&-1<(d=n?o.call(a,h):f[u])&&(a[d]=!(r[d]=h))}}else p=fe(p===r?p.splice(v,p.length):p),n?n(null,r,p,c):g.apply(r,p)})}function ge(e){for(var t,i,n,r=e.length,l=s.relative[e[0].type],c=l||s.relative[" "],d=l?1:0,u=he(function(e){return e===t},c,!0),h=he(function(e){return-1<o.call(t,e)},c,!0),p=[function(e,i,s){var n=!l&&(s||i!=a)||((t=i).nodeType?u(e,i,s):h(e,i,s));return t=null,n}];d<r;d++)if(i=s.relative[e[d].type])p=[he(pe(p),i)];else{if((i=s.filter[e[d].type].apply(null,e[d].matches))[v]){for(n=++d;n<r&&!s.relative[e[n].type];n++);return me(1<d&&pe(p),1<d&&ue(e.slice(0,d-1).concat({value:" "===e[d-2].type?"*":""})).replace(D,"$1"),i,d<n&&ge(e.slice(d,n)),n<r&&ge(e=e.slice(n)),n<r&&ue(e))}p.push(i)}return pe(p)}function ve(e,t){var i,n,r,o,l,d,u=[],p=[],f=k[e+" "];if(!f){for(t||(t=de(e)),i=t.length;i--;)(f=ge(t[i]))[v]?u.push(f):p.push(f);(f=k(e,(n=p,o=0<(r=u).length,l=0<n.length,d=function(e,t,i,d,u){var p,f,m,v=0,y="0",w=e&&[],_=[],k=a,S=e||l&&s.find.TAG("*",u),$=b+=null==k?1:Math.random()||.1,T=S.length;for(u&&(a=t==c||t||u);y!==T&&null!=(p=S[y]);y++){if(l&&p){for(f=0,t||p.ownerDocument==c||(le(p),i=!h);m=n[f++];)if(m(p,t||c,i)){g.call(d,p);break}u&&(b=$)}o&&((p=!m&&p)&&v--,e&&w.push(p))}if(v+=y,o&&y!==v){for(f=0;m=r[f++];)m(w,_,t,i);if(e){if(0<v)for(;y--;)w[y]||_[y]||(_[y]=C.call(d));_=fe(_)}g.apply(d,_),u&&!e&&0<_.length&&1<v+r.length&&x.uniqueSort(d)}return u&&(b=$,a=k),w},o?te(d):d))).selector=e}return f}function be(e,t,i,n){var a,r,o,l,c,d="function"==typeof e&&e,u=!n&&de(e=d.selector||e);if(i=i||[],1===u.length){if(2<(r=u[0]=u[0].slice(0)).length&&"ID"===(o=r[0]).type&&9===t.nodeType&&h&&s.relative[r[1].type]){if(!(t=(s.find.ID(o.matches[0].replace(X,J),t)||[])[0]))return i;d&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(a=U.needsContext.test(e)?0:r.length;a--&&(o=r[a],!s.relative[l=o.type]);)if((c=s.find[l])&&(n=c(o.matches[0].replace(X,J),G.test(r[0].type)&&oe(t.parentNode)||t))){if(r.splice(a,1),!(e=n.length&&ue(r)))return g.apply(i,n),i;break}}return(d||ve(e,u))(n,t,!h,i,!t||G.test(e)&&oe(t.parentNode)||t),i}ce.prototype=s.filters=s.pseudos,s.setFilters=new ce,p.sortStable=v.split("").sort(I).join("")===v,le(),p.sortDetached=ie(function(e){return 1&e.compareDocumentPosition(c.createElement("fieldset"))}),x.find=Z,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Z.compile=ve,Z.select=be,Z.setDocument=le,Z.tokenize=de,Z.escape=x.escapeSelector,Z.getText=x.text,Z.isXML=x.isXMLDoc,Z.selectors=x.expr,Z.support=x.support,Z.uniqueSort=x.uniqueSort}();var L=function(e,t,i){for(var s=[],n=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(n&&x(e).is(i))break;s.push(e)}return s},N=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},z=x.expr.match.needsContext,O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(e,t,i){return f(t)?x.grep(e,function(e,s){return!!t.call(e,s,e)!==i}):t.nodeType?x.grep(e,function(e){return e===t!==i}):"string"!=typeof t?x.grep(e,function(e){return-1<o.call(t,e)!==i}):x.filter(t,e,i)}x.filter=function(e,t,i){var s=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===s.nodeType?x.find.matchesSelector(s,e)?[s]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,i,s=this.length,n=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<s;t++)if(x.contains(n[t],this))return!0}));for(i=this.pushStack([]),t=0;t<s;t++)x.find(e,n[t],i);return 1<s?x.uniqueSort(i):i},filter:function(e){return this.pushStack(R(this,e||[],!1))},not:function(e){return this.pushStack(R(this,e||[],!0))},is:function(e){return!!R(this,"string"==typeof e&&z.test(e)?x(e):e||[],!1).length}});var j,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,i){var s,n;if(!e)return this;if(i=i||j,"string"==typeof e){if(!(s="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:B.exec(e))||!s[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(s[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(s[1],t&&t.nodeType?t.ownerDocument||t:g,!0)),O.test(s[1])&&x.isPlainObject(t))for(s in t)f(this[s])?this[s](t[s]):this.attr(s,t[s]);return this}return(n=g.getElementById(s[2]))&&(this[0]=n,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):f(e)?void 0!==i.ready?i.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,j=x(g);var H=/^(?:parents|prev(?:Until|All))/,F={children:!0,contents:!0,next:!0,prev:!0};function W(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var i,s=0,n=this.length,a=[],r="string"!=typeof e&&x(e);if(!z.test(e))for(;s<n;s++)for(i=this[s];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?-1<r.index(i):1===i.nodeType&&x.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(1<a.length?x.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?o.call(x(e),this[0]):o.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return L(e,"parentNode")},parentsUntil:function(e,t,i){return L(e,"parentNode",i)},next:function(e){return W(e,"nextSibling")},prev:function(e){return W(e,"previousSibling")},nextAll:function(e){return L(e,"nextSibling")},prevAll:function(e){return L(e,"previousSibling")},nextUntil:function(e,t,i){return L(e,"nextSibling",i)},prevUntil:function(e,t,i){return L(e,"previousSibling",i)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(i,s){var n=x.map(this,t,i);return"Until"!==e.slice(-5)&&(s=i),s&&"string"==typeof s&&(n=x.filter(s,n)),1<this.length&&(F[e]||x.uniqueSort(n),H.test(e)&&n.reverse()),this.pushStack(n)}});var U=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function q(e){throw e}function V(e,t,i,s){var n;try{e&&f(n=e.promise)?n.call(e).done(t).fail(i):e&&f(n=e.then)?n.call(e,t,i):t.apply(void 0,[e].slice(s))}catch(e){i.apply(void 0,[e])}}x.Callbacks=function(e){var t,i;e="string"==typeof e?(t=e,i={},x.each(t.match(U)||[],function(e,t){i[t]=!0}),i):x.extend({},e);var s,n,a,r,o=[],l=[],c=-1,d=function(){for(r=r||e.once,a=s=!0;l.length;c=-1)for(n=l.shift();++c<o.length;)!1===o[c].apply(n[0],n[1])&&e.stopOnFalse&&(c=o.length,n=!1);e.memory||(n=!1),s=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!s&&(c=o.length-1,l.push(n)),function t(i){x.each(i,function(i,s){f(s)?e.unique&&u.has(s)||o.push(s):s&&s.length&&"string"!==y(s)&&t(s)})}(arguments),n&&!s&&d()),this},remove:function(){return x.each(arguments,function(e,t){for(var i;-1<(i=x.inArray(t,o,i));)o.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<x.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return r=l=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=l=[],n||s||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,t){return r||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),s||d()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!a}};return u},x.extend({Deferred:function(t){var i=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],s="pending",n={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return n.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(i,function(i,s){var n=f(e[s[4]])&&e[s[4]];a[s[1]](function(){var e=n&&n.apply(this,arguments);e&&f(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[s[0]+"With"](this,n?[e]:arguments)})}),e=null}).promise()},then:function(t,s,n){var a=0;function r(t,i,s,n){return function(){var o=this,l=arguments,c=function(){var e,c;if(!(t<a)){if((e=s.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,f(c)?n?c.call(e,r(a,i,Y,n),r(a,i,q,n)):(a++,c.call(e,r(a,i,Y,n),r(a,i,q,n),r(a,i,Y,i.notifyWith))):(s!==Y&&(o=void 0,l=[e]),(n||i.resolveWith)(o,l))}},d=n?c:function(){try{c()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,d.error),a<=t+1&&(s!==q&&(o=void 0,l=[e]),i.rejectWith(o,l))}};t?d():(x.Deferred.getErrorHook?d.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(d.error=x.Deferred.getStackHook()),e.setTimeout(d))}}return x.Deferred(function(e){i[0][3].add(r(0,e,f(n)?n:Y,e.notifyWith)),i[1][3].add(r(0,e,f(t)?t:Y)),i[2][3].add(r(0,e,f(s)?s:q))}).promise()},promise:function(e){return null!=e?x.extend(e,n):n}},a={};return x.each(i,function(e,t){var r=t[2],o=t[5];n[t[1]]=r.add,o&&r.add(function(){s=o},i[3-e][2].disable,i[3-e][3].disable,i[0][2].lock,i[0][3].lock),r.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=r.fireWith}),n.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,i=t,s=Array(i),a=n.call(arguments),r=x.Deferred(),o=function(e){return function(i){s[e]=this,a[e]=1<arguments.length?n.call(arguments):i,--t||r.resolveWith(s,a)}};if(t<=1&&(V(e,r.done(o(i)).resolve,r.reject,!t),"pending"===r.state()||f(a[i]&&a[i].then)))return r.then();for(;i--;)V(a[i],o(i),r.reject);return r.promise()}});var G=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,i){e.console&&e.console.warn&&t&&G.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,i)},x.readyException=function(t){e.setTimeout(function(){throw t})};var X=x.Deferred();function J(){g.removeEventListener("DOMContentLoaded",J),e.removeEventListener("load",J),x.ready()}x.fn.ready=function(e){return X.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0)!==e&&0<--x.readyWait||X.resolveWith(g,[x])}}),x.ready.then=X.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?e.setTimeout(x.ready):(g.addEventListener("DOMContentLoaded",J),e.addEventListener("load",J));var K=function(e,t,i,s,n,a,r){var o=0,l=e.length,c=null==i;if("object"===y(i))for(o in n=!0,i)K(e,t,o,i[o],!0,a,r);else if(void 0!==s&&(n=!0,f(s)||(r=!0),c&&(r?(t.call(e,s),t=null):(c=t,t=function(e,t,i){return c.call(x(e),i)})),t))for(;o<l;o++)t(e[o],i,r?s:s.call(e[o],o,t(e[o],i)));return n?e:c?t.call(e):l?t(e[0],i):a},Q=/^-ms-/,Z=/-([a-z])/g;function ee(e,t){return t.toUpperCase()}function te(e){return e.replace(Q,"ms-").replace(Z,ee)}var ie=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=x.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ie(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var s,n=this.cache(e);if("string"==typeof t)n[te(t)]=i;else for(s in t)n[te(s)]=t[s];return n},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][te(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,s=e[this.expando];if(void 0!==s){if(void 0!==t){i=(t=Array.isArray(t)?t.map(te):(t=te(t))in s?[t]:t.match(U)||[]).length;for(;i--;)delete s[t[i]]}(void 0===t||x.isEmptyObject(s))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var ne=new se,ae=new se,re=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,oe=/[A-Z]/g;function le(e,t,i){var s,n;if(void 0===i&&1===e.nodeType)if(s="data-"+t.replace(oe,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(s))){try{i="true"===(n=i)||"false"!==n&&("null"===n?null:n===+n+""?+n:re.test(n)?JSON.parse(n):n)}catch(e){}ae.set(e,t,i)}else i=void 0;return i}x.extend({hasData:function(e){return ae.hasData(e)||ne.hasData(e)},data:function(e,t,i){return ae.access(e,t,i)},removeData:function(e,t){ae.remove(e,t)},_data:function(e,t,i){return ne.access(e,t,i)},_removeData:function(e,t){ne.remove(e,t)}}),x.fn.extend({data:function(e,t){var i,s,n,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(n=ae.get(a),1===a.nodeType&&!ne.get(a,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(s=r[i].name).indexOf("data-")&&(s=te(s.slice(5)),le(a,s,n[s]));ne.set(a,"hasDataAttrs",!0)}return n}return"object"==typeof e?this.each(function(){ae.set(this,e)}):K(this,function(t){var i;if(a&&void 0===t)return void 0!==(i=ae.get(a,e))?i:void 0!==(i=le(a,e))?i:void 0;this.each(function(){ae.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){ae.remove(this,e)})}}),x.extend({queue:function(e,t,i){var s;if(e)return t=(t||"fx")+"queue",s=ne.get(e,t),i&&(!s||Array.isArray(i)?s=ne.access(e,t,x.makeArray(i)):s.push(i)),s||[]},dequeue:function(e,t){t=t||"fx";var i=x.queue(e,t),s=i.length,n=i.shift(),a=x._queueHooks(e,t);"inprogress"===n&&(n=i.shift(),s--),n&&("fx"===t&&i.unshift("inprogress"),delete a.stop,n.call(e,function(){x.dequeue(e,t)},a)),!s&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return ne.get(e,i)||ne.access(e,i,{empty:x.Callbacks("once memory").add(function(){ne.remove(e,[t+"queue",i])})})}}),x.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?x.queue(this[0],e):void 0===t?this:this.each(function(){var i=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,s=1,n=x.Deferred(),a=this,r=this.length,o=function(){--s||n.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=ne.get(a[r],e+"queueHooks"))&&i.empty&&(s++,i.empty.add(o));return o(),n.promise(t)}});var ce=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,de=new RegExp("^(?:([+-])=|)("+ce+")([a-z%]*)$","i"),ue=["Top","Right","Bottom","Left"],he=g.documentElement,pe=function(e){return x.contains(e.ownerDocument,e)},fe={composed:!0};he.getRootNode&&(pe=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(fe)===e.ownerDocument});var me=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&pe(e)&&"none"===x.css(e,"display")};function ge(e,t,i,s){var n,a,r=20,o=s?function(){return s.cur()}:function(){return x.css(e,t,"")},l=o(),c=i&&i[3]||(x.cssNumber[t]?"":"px"),d=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&de.exec(x.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)x.style(e,t,d+c),(1-a)*(1-(a=o()/l||.5))<=0&&(r=0),d/=a;d*=2,x.style(e,t,d+c),i=i||[]}return i&&(d=+d||+l||0,n=i[1]?d+(i[1]+1)*i[2]:+i[2],s&&(s.unit=c,s.start=d,s.end=n)),n}var ve={};function be(e,t){for(var i,s,n,a,r,o,l,c=[],d=0,u=e.length;d<u;d++)(s=e[d]).style&&(i=s.style.display,t?("none"===i&&(c[d]=ne.get(s,"display")||null,c[d]||(s.style.display="")),""===s.style.display&&me(s)&&(c[d]=(l=r=a=void 0,r=(n=s).ownerDocument,o=n.nodeName,(l=ve[o])||(a=r.body.appendChild(r.createElement(o)),l=x.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),ve[o]=l)))):"none"!==i&&(c[d]="none",ne.set(s,"display",i)));for(d=0;d<u;d++)null!=c[d]&&(e[d].style.display=c[d]);return e}x.fn.extend({show:function(){return be(this,!0)},hide:function(){return be(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?x(this).show():x(this).hide()})}});var ye,we,_e=/^(?:checkbox|radio)$/i,xe=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ke=/^$|^module$|\/(?:java|ecma)script/i;ye=g.createDocumentFragment().appendChild(g.createElement("div")),(we=g.createElement("input")).setAttribute("type","radio"),we.setAttribute("checked","checked"),we.setAttribute("name","t"),ye.appendChild(we),p.checkClone=ye.cloneNode(!0).cloneNode(!0).lastChild.checked,ye.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!ye.cloneNode(!0).lastChild.defaultValue,ye.innerHTML="<option></option>",p.option=!!ye.lastChild;var Se={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ce(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?x.merge([e],i):i}function $e(e,t){for(var i=0,s=e.length;i<s;i++)ne.set(e[i],"globalEval",!t||ne.get(t[i],"globalEval"))}Se.tbody=Se.tfoot=Se.colgroup=Se.caption=Se.thead,Se.th=Se.td,p.option||(Se.optgroup=Se.option=[1,"<select multiple='multiple'>","</select>"]);var Te=/<|&#?\w+;/;function Ee(e,t,i,s,n){for(var a,r,o,l,c,d,u=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if((a=e[p])||0===a)if("object"===y(a))x.merge(h,a.nodeType?[a]:a);else if(Te.test(a)){for(r=r||u.appendChild(t.createElement("div")),o=(xe.exec(a)||["",""])[1].toLowerCase(),l=Se[o]||Se._default,r.innerHTML=l[1]+x.htmlPrefilter(a)+l[2],d=l[0];d--;)r=r.lastChild;x.merge(h,r.childNodes),(r=u.firstChild).textContent=""}else h.push(t.createTextNode(a));for(u.textContent="",p=0;a=h[p++];)if(s&&-1<x.inArray(a,s))n&&n.push(a);else if(c=pe(a),r=Ce(u.appendChild(a),"script"),c&&$e(r),i)for(d=0;a=r[d++];)ke.test(a.type||"")&&i.push(a);return u}var De=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function Ie(){return!1}function Pe(e,t,i,s,n,a){var r,o;if("object"==typeof t){for(o in"string"!=typeof i&&(s=s||i,i=void 0),t)Pe(e,o,i,s,t[o],a);return e}if(null==s&&null==n?(n=i,s=i=void 0):null==n&&("string"==typeof i?(n=s,s=void 0):(n=s,s=i,i=void 0)),!1===n)n=Ie;else if(!n)return e;return 1===a&&(r=n,(n=function(e){return x().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=x.guid++)),e.each(function(){x.event.add(this,t,n,s,i)})}function Ae(e,t,i){i?(ne.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var i,s=ne.get(this,t);if(1&e.isTrigger&&this[t]){if(s)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(s=n.call(arguments),ne.set(this,t,s),this[t](),i=ne.get(this,t),ne.set(this,t,!1),s!==i)return e.stopImmediatePropagation(),e.preventDefault(),i}else s&&(ne.set(this,t,x.event.trigger(s[0],s.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ne.get(e,t)&&x.event.add(e,t,Me)}x.event={global:{},add:function(e,t,i,s,n){var a,r,o,l,c,d,u,h,p,f,m,g=ne.get(e);if(ie(e))for(i.handler&&(i=(a=i).handler,n=a.selector),n&&x.find.matchesSelector(he,n),i.guid||(i.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(r=g.handle)||(r=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(U)||[""]).length;c--;)p=m=(o=De.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p&&(u=x.event.special[p]||{},p=(n?u.delegateType:u.bindType)||p,u=x.event.special[p]||{},d=x.extend({type:p,origType:m,data:s,handler:i,guid:i.guid,selector:n,needsContext:n&&x.expr.match.needsContext.test(n),namespace:f.join(".")},a),(h=l[p])||((h=l[p]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,s,f,r)||e.addEventListener&&e.addEventListener(p,r)),u.add&&(u.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),n?h.splice(h.delegateCount++,0,d):h.push(d),x.event.global[p]=!0)},remove:function(e,t,i,s,n){var a,r,o,l,c,d,u,h,p,f,m,g=ne.hasData(e)&&ne.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(U)||[""]).length;c--;)if(p=m=(o=De.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p){for(u=x.event.special[p]||{},h=l[p=(s?u.delegateType:u.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=a=h.length;a--;)d=h[a],!n&&m!==d.origType||i&&i.guid!==d.guid||o&&!o.test(d.namespace)||s&&s!==d.selector&&("**"!==s||!d.selector)||(h.splice(a,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||x.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)x.event.remove(e,p+t[c],i,s,!0);x.isEmptyObject(l)&&ne.remove(e,"handle events")}},dispatch:function(e){var t,i,s,n,a,r,o=new Array(arguments.length),l=x.event.fix(e),c=(ne.get(this,"events")||Object.create(null))[l.type]||[],d=x.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(r=x.event.handlers.call(this,l,c),t=0;(n=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=n.elem,i=0;(a=n.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(s=((x.event.special[a.origType]||{}).handle||a.handler).apply(n.elem,o))&&!1===(l.result=s)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,s,n,a,r,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],r={},i=0;i<l;i++)void 0===r[n=(s=t[i]).selector+" "]&&(r[n]=s.needsContext?-1<x(n,this).index(c):x.find(n,this,null,[c]).length),r[n]&&a.push(s);a.length&&o.push({elem:c,handlers:a})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:f(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return _e.test(t.type)&&t.click&&S(t,"input")&&Ae(t,"click",!0),!1},trigger:function(e){var t=this||e;return _e.test(t.type)&&t.click&&S(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return _e.test(t.type)&&t.click&&S(t,"input")&&ne.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:Ie,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Ie,isPropagationStopped:Ie,isImmediatePropagationStopped:Ie,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},function(e,t){function i(e){if(g.documentMode){var i=ne.get(this,"handle"),s=x.event.fix(e);s.type="focusin"===e.type?"focus":"blur",s.isSimulated=!0,i(e),s.target===s.currentTarget&&i(s)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var s;if(Ae(this,e,!0),!g.documentMode)return!1;(s=ne.get(this,t))||this.addEventListener(t,i),ne.set(this,t,(s||0)+1)},trigger:function(){return Ae(this,e),!0},teardown:function(){var e;if(!g.documentMode)return!1;(e=ne.get(this,t)-1)?ne.set(this,t,e):(this.removeEventListener(t,i),ne.remove(this,t))},_default:function(t){return ne.get(t.target,e)},delegateType:t},x.event.special[t]={setup:function(){var s=this.ownerDocument||this.document||this,n=g.documentMode?this:s,a=ne.get(n,t);a||(g.documentMode?this.addEventListener(t,i):s.addEventListener(e,i,!0)),ne.set(n,t,(a||0)+1)},teardown:function(){var s=this.ownerDocument||this.document||this,n=g.documentMode?this:s,a=ne.get(n,t)-1;a?ne.set(n,t,a):(g.documentMode?this.removeEventListener(t,i):s.removeEventListener(e,i,!0),ne.remove(n,t))}}}),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,s=e.relatedTarget,n=e.handleObj;return s&&(s===this||x.contains(this,s))||(e.type=n.origType,i=n.handler.apply(this,arguments),e.type=t),i}}}),x.fn.extend({on:function(e,t,i,s){return Pe(this,e,t,i,s)},one:function(e,t,i,s){return Pe(this,e,t,i,s,1)},off:function(e,t,i){var s,n;if(e&&e.preventDefault&&e.handleObj)return s=e.handleObj,x(e.delegateTarget).off(s.namespace?s.origType+"."+s.namespace:s.origType,s.selector,s.handler),this;if("object"==typeof e){for(n in e)this.off(n,t,e[n]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Ie),this.each(function(){x.event.remove(this,e,i,t)})}});var Le=/<script|<style|<link/i,Ne=/checked\s*(?:[^=]|=\s*.checked.)/i,ze=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Oe(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function Re(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function je(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var i,s,n,a,r,o;if(1===t.nodeType){if(ne.hasData(e)&&(o=ne.get(e).events))for(n in ne.remove(t,"handle events"),o)for(i=0,s=o[n].length;i<s;i++)x.event.add(t,n,o[n][i]);ae.hasData(e)&&(a=ae.access(e),r=x.extend({},a),ae.set(t,r))}}function He(e,t,i,s){t=a(t);var n,r,o,l,c,d,u=0,h=e.length,m=h-1,g=t[0],v=f(g);if(v||1<h&&"string"==typeof g&&!p.checkClone&&Ne.test(g))return e.each(function(n){var a=e.eq(n);v&&(t[0]=g.call(this,n,a.html())),He(a,t,i,s)});if(h&&(r=(n=Ee(t,e[0].ownerDocument,!1,e,s)).firstChild,1===n.childNodes.length&&(n=r),r||s)){for(l=(o=x.map(Ce(n,"script"),Re)).length;u<h;u++)c=n,u!==m&&(c=x.clone(c,!0,!0),l&&x.merge(o,Ce(c,"script"))),i.call(e[u],c,u);if(l)for(d=o[o.length-1].ownerDocument,x.map(o,je),u=0;u<l;u++)c=o[u],ke.test(c.type||"")&&!ne.access(c,"globalEval")&&x.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):b(c.textContent.replace(ze,""),c,d))}return e}function Fe(e,t,i){for(var s,n=t?x.filter(t,e):e,a=0;null!=(s=n[a]);a++)i||1!==s.nodeType||x.cleanData(Ce(s)),s.parentNode&&(i&&pe(s)&&$e(Ce(s,"script")),s.parentNode.removeChild(s));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var s,n,a,r,o,l,c,d=e.cloneNode(!0),u=pe(e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(r=Ce(d),s=0,n=(a=Ce(e)).length;s<n;s++)o=a[s],"input"===(c=(l=r[s]).nodeName.toLowerCase())&&_e.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(t)if(i)for(a=a||Ce(e),r=r||Ce(d),s=0,n=a.length;s<n;s++)Be(a[s],r[s]);else Be(e,d);return 0<(r=Ce(d,"script")).length&&$e(r,!u&&Ce(e,"script")),d},cleanData:function(e){for(var t,i,s,n=x.event.special,a=0;void 0!==(i=e[a]);a++)if(ie(i)){if(t=i[ne.expando]){if(t.events)for(s in t.events)n[s]?x.event.remove(i,s):x.removeEvent(i,s,t.handle);i[ne.expando]=void 0}i[ae.expando]&&(i[ae.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return K(this,function(e){return void 0===e?x.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return He(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Oe(this,e).appendChild(e)})},prepend:function(){return He(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Oe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return He(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(Ce(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return K(this,function(e){var t=this[0]||{},i=0,s=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!Se[(xe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;i<s;i++)1===(t=this[i]||{}).nodeType&&(x.cleanData(Ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return He(this,arguments,function(t){var i=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Ce(this)),i&&i.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var i,s=[],n=x(e),a=n.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),x(n[o])[t](i),r.apply(s,i.get());return this.pushStack(s)}});var We=new RegExp("^("+ce+")(?!px)[a-z%]+$","i"),Ue=/^--/,Ye=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},qe=function(e,t,i){var s,n,a={};for(n in t)a[n]=e.style[n],e.style[n]=t[n];for(n in s=i.call(e),t)e.style[n]=a[n];return s},Ve=new RegExp(ue.join("|"),"i");function Ge(e,t,i){var s,n,a,r,o=Ue.test(t),l=e.style;return(i=i||Ye(e))&&(r=i.getPropertyValue(t)||i[t],o&&r&&(r=r.replace(D,"$1")||void 0),""!==r||pe(e)||(r=x.style(e,t)),!p.pixelBoxStyles()&&We.test(r)&&Ve.test(t)&&(s=l.width,n=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=r,r=i.width,l.width=s,l.minWidth=n,l.maxWidth=a)),void 0!==r?r+"":r}function Xe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",he.appendChild(c).appendChild(d);var t=e.getComputedStyle(d);s="1%"!==t.top,l=12===i(t.marginLeft),d.style.right="60%",r=36===i(t.right),n=36===i(t.width),d.style.position="absolute",a=12===i(d.offsetWidth/3),he.removeChild(c),d=null}}function i(e){return Math.round(parseFloat(e))}var s,n,a,r,o,l,c=g.createElement("div"),d=g.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===d.style.backgroundClip,x.extend(p,{boxSizingReliable:function(){return t(),n},pixelBoxStyles:function(){return t(),r},pixelPosition:function(){return t(),s},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),a},reliableTrDimensions:function(){var t,i,s,n;return null==o&&(t=g.createElement("table"),i=g.createElement("tr"),s=g.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="box-sizing:content-box;border:1px solid",i.style.height="1px",s.style.height="9px",s.style.display="block",he.appendChild(t).appendChild(i).appendChild(s),n=e.getComputedStyle(i),o=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===i.offsetHeight,he.removeChild(t)),o}}))}();var Je=["Webkit","Moz","ms"],Ke=g.createElement("div").style,Qe={};function Ze(e){return x.cssProps[e]||Qe[e]||(e in Ke?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Je.length;i--;)if((e=Je[i]+t)in Ke)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},it={letterSpacing:"0",fontWeight:"400"};function st(e,t,i){var s=de.exec(t);return s?Math.max(0,s[2]-(i||0))+(s[3]||"px"):t}function nt(e,t,i,s,n,a){var r="width"===t?1:0,o=0,l=0,c=0;if(i===(s?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(c+=x.css(e,i+ue[r],!0,n)),s?("content"===i&&(l-=x.css(e,"padding"+ue[r],!0,n)),"margin"!==i&&(l-=x.css(e,"border"+ue[r]+"Width",!0,n))):(l+=x.css(e,"padding"+ue[r],!0,n),"padding"!==i?l+=x.css(e,"border"+ue[r]+"Width",!0,n):o+=x.css(e,"border"+ue[r]+"Width",!0,n));return!s&&0<=a&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-o-.5))||0),l+c}function at(e,t,i){var s=Ye(e),n=(!p.boxSizingReliable()||i)&&"border-box"===x.css(e,"boxSizing",!1,s),a=n,r=Ge(e,t,s),o="offset"+t[0].toUpperCase()+t.slice(1);if(We.test(r)){if(!i)return r;r="auto"}return(!p.boxSizingReliable()&&n||!p.reliableTrDimensions()&&S(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===x.css(e,"display",!1,s))&&e.getClientRects().length&&(n="border-box"===x.css(e,"boxSizing",!1,s),(a=o in e)&&(r=e[o])),(r=parseFloat(r)||0)+nt(e,t,i||(n?"border":"content"),a,s,r)+"px"}function rt(e,t,i,s,n){return new rt.prototype.init(e,t,i,s,n)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ge(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,i,s){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var n,a,r,o=te(t),l=Ue.test(t),c=e.style;if(l||(t=Ze(o)),r=x.cssHooks[t]||x.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(n=r.get(e,!1,s))?n:c[t];"string"==(a=typeof i)&&(n=de.exec(i))&&n[1]&&(i=ge(e,t,n),a="number"),null!=i&&i==i&&("number"!==a||l||(i+=n&&n[3]||(x.cssNumber[o]?"":"px")),p.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,s))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,s){var n,a,r,o=te(t);return Ue.test(t)||(t=Ze(o)),(r=x.cssHooks[t]||x.cssHooks[o])&&"get"in r&&(n=r.get(e,!0,i)),void 0===n&&(n=Ge(e,t,s)),"normal"===n&&t in it&&(n=it[t]),""===i||i?(a=parseFloat(n),!0===i||isFinite(a)?a||0:n):n}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,i,s){if(i)return!et.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?at(e,t,s):qe(e,tt,function(){return at(e,t,s)})},set:function(e,i,s){var n,a=Ye(e),r=!p.scrollboxSize()&&"absolute"===a.position,o=(r||s)&&"border-box"===x.css(e,"boxSizing",!1,a),l=s?nt(e,t,s,o,a):0;return o&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-nt(e,t,"border",!1,a)-.5)),l&&(n=de.exec(i))&&"px"!==(n[3]||"px")&&(e.style[t]=i,i=x.css(e,t)),st(0,i,l)}}}),x.cssHooks.marginLeft=Xe(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(i){for(var s=0,n={},a="string"==typeof i?i.split(" "):[i];s<4;s++)n[e+ue[s]+t]=a[s]||a[s-2]||a[0];return n}},"margin"!==e&&(x.cssHooks[e+t].set=st)}),x.fn.extend({css:function(e,t){return K(this,function(e,t,i){var s,n,a={},r=0;if(Array.isArray(t)){for(s=Ye(e),n=t.length;r<n;r++)a[t[r]]=x.css(e,t[r],!1,s);return a}return void 0!==i?x.style(e,t,i):x.css(e,t)},e,t,1<arguments.length)}}),((x.Tween=rt).prototype={constructor:rt,init:function(e,t,i,s,n,a){this.elem=e,this.prop=i,this.easing=n||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=s,this.unit=a||(x.cssNumber[i]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,i=rt.propHooks[this.prop];return this.options.duration?this.pos=t=x.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),i&&i.set?i.set(this):rt.propHooks._default.set(this),this}}).init.prototype=rt.prototype,(rt.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=rt.prototype.init,x.fx.step={};var ot,lt,ct,dt,ut=/^(?:toggle|show|hide)$/,ht=/queueHooks$/;function pt(){lt&&(!1===g.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(pt):e.setTimeout(pt,x.fx.interval),x.fx.tick())}function ft(){return e.setTimeout(function(){ot=void 0}),ot=Date.now()}function mt(e,t){var i,s=0,n={height:e};for(t=t?1:0;s<4;s+=2-t)n["margin"+(i=ue[s])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function gt(e,t,i){for(var s,n=(vt.tweeners[t]||[]).concat(vt.tweeners["*"]),a=0,r=n.length;a<r;a++)if(s=n[a].call(i,t,e))return s}function vt(e,t,i){var s,n,a=0,r=vt.prefilters.length,o=x.Deferred().always(function(){delete l.elem}),l=function(){if(n)return!1;for(var t=ot||ft(),i=Math.max(0,c.startTime+c.duration-t),s=1-(i/c.duration||0),a=0,r=c.tweens.length;a<r;a++)c.tweens[a].run(s);return o.notifyWith(e,[c,s,i]),s<1&&r?i:(r||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},i),originalProperties:t,originalOptions:i,startTime:ot||ft(),duration:i.duration,tweens:[],createTween:function(t,i){var s=x.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(s),s},stop:function(t){var i=0,s=t?c.tweens.length:0;if(n)return this;for(n=!0;i<s;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var i,s,n,a,r;for(i in e)if(n=t[s=te(i)],a=e[i],Array.isArray(a)&&(n=a[1],a=e[i]=a[0]),i!==s&&(e[s]=a,delete e[i]),(r=x.cssHooks[s])&&"expand"in r)for(i in a=r.expand(a),delete e[s],a)i in e||(e[i]=a[i],t[i]=n);else t[s]=n}(d,c.opts.specialEasing);a<r;a++)if(s=vt.prefilters[a].call(c,e,d,c.opts))return f(s.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=s.stop.bind(s)),s;return x.map(d,gt,c),f(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(vt,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ge(i.elem,e,de.exec(t),i),i}]},tweener:function(e,t){f(e)?(t=e,e=["*"]):e=e.match(U);for(var i,s=0,n=e.length;s<n;s++)i=e[s],vt.tweeners[i]=vt.tweeners[i]||[],vt.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var s,n,a,r,o,l,c,d,u="width"in t||"height"in t,h=this,p={},f=e.style,m=e.nodeType&&me(e),g=ne.get(e,"fxshow");for(s in i.queue||(null==(r=x._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,o=r.empty.fire,r.empty.fire=function(){r.unqueued||o()}),r.unqueued++,h.always(function(){h.always(function(){r.unqueued--,x.queue(e,"fx").length||r.empty.fire()})})),t)if(n=t[s],ut.test(n)){if(delete t[s],a=a||"toggle"===n,n===(m?"hide":"show")){if("show"!==n||!g||void 0===g[s])continue;m=!0}p[s]=g&&g[s]||x.style(e,s)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(p))for(s in u&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=ne.get(e,"display")),"none"===(d=x.css(e,"display"))&&(c?d=c:(be([e],!0),c=e.style.display||c,d=x.css(e,"display"),be([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===x.css(e,"float")&&(l||(h.done(function(){f.display=c}),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",h.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ne.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&be([e],!0),h.done(function(){for(s in m||be([e]),ne.remove(e,"fxshow"),p)x.style(e,s,p[s])})),l=gt(m?g[s]:0,s,h),s in g||(g[s]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?vt.prefilters.unshift(e):vt.prefilters.push(e)}}),x.speed=function(e,t,i){var s=e&&"object"==typeof e?x.extend({},e):{complete:i||!i&&t||f(e)&&e,duration:e,easing:i&&t||t&&!f(t)&&t};return x.fx.off?s.duration=0:"number"!=typeof s.duration&&(s.duration in x.fx.speeds?s.duration=x.fx.speeds[s.duration]:s.duration=x.fx.speeds._default),null!=s.queue&&!0!==s.queue||(s.queue="fx"),s.old=s.complete,s.complete=function(){f(s.old)&&s.old.call(this),s.queue&&x.dequeue(this,s.queue)},s},x.fn.extend({fadeTo:function(e,t,i,s){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,i,s)},animate:function(e,t,i,s){var n=x.isEmptyObject(e),a=x.speed(t,i,s),r=function(){var t=vt(this,x.extend({},e),a);(n||ne.get(this,"finish"))&&t.stop(!0)};return r.finish=r,n||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,i){var s=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",a=x.timers,r=ne.get(this);if(n)r[n]&&r[n].stop&&s(r[n]);else for(n in r)r[n]&&r[n].stop&&ht.test(n)&&s(r[n]);for(n=a.length;n--;)a[n].elem!==this||null!=e&&a[n].queue!==e||(a[n].anim.stop(i),t=!1,a.splice(n,1));!t&&i||x.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,i=ne.get(this),s=i[e+"queue"],n=i[e+"queueHooks"],a=x.timers,r=s?s.length:0;for(i.finish=!0,x.queue(this,e,[]),n&&n.stop&&n.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)s[t]&&s[t].finish&&s[t].finish.call(this);delete i.finish})}}),x.each(["toggle","show","hide"],function(e,t){var i=x.fn[t];x.fn[t]=function(e,s,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(mt(t,!0),e,s,n)}}),x.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){x.fn[e]=function(e,i,s){return this.animate(t,e,i,s)}}),x.timers=[],x.fx.tick=function(){var e,t=0,i=x.timers;for(ot=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||x.fx.stop(),ot=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){lt||(lt=!0,pt())},x.fx.stop=function(){lt=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(t,i){return t=x.fx&&x.fx.speeds[t]||t,i=i||"fx",this.queue(i,function(i,s){var n=e.setTimeout(i,t);s.stop=function(){e.clearTimeout(n)}})},ct=g.createElement("input"),dt=g.createElement("select").appendChild(g.createElement("option")),ct.type="checkbox",p.checkOn=""!==ct.value,p.optSelected=dt.selected,(ct=g.createElement("input")).value="t",ct.type="radio",p.radioValue="t"===ct.value;var bt,yt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return K(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,i){var s,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?x.prop(e,t,i):(1===a&&x.isXMLDoc(e)||(n=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?bt:void 0)),void 0!==i?null===i?void x.removeAttr(e,t):n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:(e.setAttribute(t,i+""),i):n&&"get"in n&&null!==(s=n.get(e,t))?s:null==(s=x.find.attr(e,t))?void 0:s)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&S(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,s=0,n=t&&t.match(U);if(n&&1===e.nodeType)for(;i=n[s++];)e.removeAttribute(i)}}),bt={set:function(e,t,i){return!1===t?x.removeAttr(e,i):e.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var i=yt[t]||x.find.attr;yt[t]=function(e,t,s){var n,a,r=t.toLowerCase();return s||(a=yt[r],yt[r]=n,n=null!=i(e,t,s)?r:null,yt[r]=a),n}});var wt=/^(?:input|select|textarea|button)$/i,_t=/^(?:a|area)$/i;function xt(e){return(e.match(U)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function St(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(U)||[]}x.fn.extend({prop:function(e,t){return K(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,i){var s,n,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&x.isXMLDoc(e)||(t=x.propFix[t]||t,n=x.propHooks[t]),void 0!==i?n&&"set"in n&&void 0!==(s=n.set(e,i,t))?s:e[t]=i:n&&"get"in n&&null!==(s=n.get(e,t))?s:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||_t.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,i,s,n,a,r;return f(e)?this.each(function(t){x(this).addClass(e.call(this,t,kt(this)))}):(t=St(e)).length?this.each(function(){if(s=kt(this),i=1===this.nodeType&&" "+xt(s)+" "){for(a=0;a<t.length;a++)n=t[a],i.indexOf(" "+n+" ")<0&&(i+=n+" ");r=xt(i),s!==r&&this.setAttribute("class",r)}}):this},removeClass:function(e){var t,i,s,n,a,r;return f(e)?this.each(function(t){x(this).removeClass(e.call(this,t,kt(this)))}):arguments.length?(t=St(e)).length?this.each(function(){if(s=kt(this),i=1===this.nodeType&&" "+xt(s)+" "){for(a=0;a<t.length;a++)for(n=t[a];-1<i.indexOf(" "+n+" ");)i=i.replace(" "+n+" "," ");r=xt(i),s!==r&&this.setAttribute("class",r)}}):this:this.attr("class","")},toggleClass:function(e,t){var i,s,n,a,r=typeof e,o="string"===r||Array.isArray(e);return f(e)?this.each(function(i){x(this).toggleClass(e.call(this,i,kt(this),t),t)}):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(i=St(e),this.each(function(){if(o)for(a=x(this),n=0;n<i.length;n++)s=i[n],a.hasClass(s)?a.removeClass(s):a.addClass(s);else void 0!==e&&"boolean"!==r||((s=kt(this))&&ne.set(this,"__className__",s),this.setAttribute&&this.setAttribute("class",s||!1===e?"":ne.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,s=0;for(t=" "+e+" ";i=this[s++];)if(1===i.nodeType&&-1<(" "+xt(kt(i))+" ").indexOf(t))return!0;return!1}});var Ct=/\r/g;x.fn.extend({val:function(e){var t,i,s,n=this[0];return arguments.length?(s=f(e),this.each(function(i){var n;1===this.nodeType&&(null==(n=s?e.call(this,i,x(this).val()):e)?n="":"number"==typeof n?n+="":Array.isArray(n)&&(n=x.map(n,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,n,"value")||(this.value=n))})):n?(t=x.valHooks[n.type]||x.valHooks[n.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(n,"value"))?i:"string"==typeof(i=n.value)?i.replace(Ct,""):null==i?"":i:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.text(e))}},select:{get:function(e){var t,i,s,n=e.options,a=e.selectedIndex,r="select-one"===e.type,o=r?null:[],l=r?a+1:n.length;for(s=a<0?l:r?a:0;s<l;s++)if(((i=n[s]).selected||s===a)&&!i.disabled&&(!i.parentNode.disabled||!S(i.parentNode,"optgroup"))){if(t=x(i).val(),r)return t;o.push(t)}return o},set:function(e,t){for(var i,s,n=e.options,a=x.makeArray(t),r=n.length;r--;)((s=n[r]).selected=-1<x.inArray(x.valHooks.option.get(s),a))&&(i=!0);return i||(e.selectedIndex=-1),a}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},p.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var $t=e.location,Tt={guid:Date.now()},Et=/\?/;x.parseXML=function(t){var i,s;if(!t||"string"!=typeof t)return null;try{i=(new e.DOMParser).parseFromString(t,"text/xml")}catch(t){}return s=i&&i.getElementsByTagName("parsererror")[0],i&&!s||x.error("Invalid XML: "+(s?x.map(s.childNodes,function(e){return e.textContent}).join("\n"):t)),i};var Dt=/^(?:focusinfocus|focusoutblur)$/,Mt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,i,s,n){var a,r,o,l,c,u,h,p,v=[s||g],b=d.call(t,"type")?t.type:t,y=d.call(t,"namespace")?t.namespace.split("."):[];if(r=p=o=s=s||g,3!==s.nodeType&&8!==s.nodeType&&!Dt.test(b+x.event.triggered)&&(-1<b.indexOf(".")&&(b=(y=b.split(".")).shift(),y.sort()),c=b.indexOf(":")<0&&"on"+b,(t=t[x.expando]?t:new x.Event(b,"object"==typeof t&&t)).isTrigger=n?2:3,t.namespace=y.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=s),i=null==i?[t]:x.makeArray(i,[t]),h=x.event.special[b]||{},n||!h.trigger||!1!==h.trigger.apply(s,i))){if(!n&&!h.noBubble&&!m(s)){for(l=h.delegateType||b,Dt.test(l+b)||(r=r.parentNode);r;r=r.parentNode)v.push(r),o=r;o===(s.ownerDocument||g)&&v.push(o.defaultView||o.parentWindow||e)}for(a=0;(r=v[a++])&&!t.isPropagationStopped();)p=r,t.type=1<a?l:h.bindType||b,(u=(ne.get(r,"events")||Object.create(null))[t.type]&&ne.get(r,"handle"))&&u.apply(r,i),(u=c&&r[c])&&u.apply&&ie(r)&&(t.result=u.apply(r,i),!1===t.result&&t.preventDefault());return t.type=b,n||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),i)||!ie(s)||c&&f(s[b])&&!m(s)&&((o=s[c])&&(s[c]=null),x.event.triggered=b,t.isPropagationStopped()&&p.addEventListener(b,Mt),s[b](),t.isPropagationStopped()&&p.removeEventListener(b,Mt),x.event.triggered=void 0,o&&(s[c]=o)),t.result}},simulate:function(e,t,i){var s=x.extend(new x.Event,i,{type:e,isSimulated:!0});x.event.trigger(s,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return x.event.trigger(e,t,i,!0)}});var It=/\[\]$/,Pt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function Nt(e,t,i,s){var n;if(Array.isArray(t))x.each(t,function(t,n){i||It.test(e)?s(e,n):Nt(e+"["+("object"==typeof n&&null!=n?t:"")+"]",n,i,s)});else if(i||"object"!==y(t))s(e,t);else for(n in t)Nt(e+"["+n+"]",t[n],i,s)}x.param=function(e,t){var i,s=[],n=function(e,t){var i=f(t)?t():t;s[s.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){n(this.name,this.value)});else for(i in e)Nt(i,e[i],t,n);return s.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&Lt.test(this.nodeName)&&!At.test(e)&&(this.checked||!_e.test(e))}).map(function(e,t){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,function(e){return{name:t.name,value:e.replace(Pt,"\r\n")}}):{name:t.name,value:i.replace(Pt,"\r\n")}}).get()}});var zt=/%20/g,Ot=/#.*$/,Rt=/([?&])_=[^&]*/,jt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Bt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Ft={},Wt={},Ut="*/".concat("*"),Yt=g.createElement("a");function qt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var s,n=0,a=t.toLowerCase().match(U)||[];if(f(i))for(;s=a[n++];)"+"===s[0]?(s=s.slice(1)||"*",(e[s]=e[s]||[]).unshift(i)):(e[s]=e[s]||[]).push(i)}}function Vt(e,t,i,s){var n={},a=e===Wt;function r(o){var l;return n[o]=!0,x.each(e[o]||[],function(e,o){var c=o(t,i,s);return"string"!=typeof c||a||n[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)}),l}return r(t.dataTypes[0])||!n["*"]&&r("*")}function Gt(e,t){var i,s,n=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((n[i]?e:s||(s={}))[i]=t[i]);return s&&x.extend(!0,e,s),e}Yt.href=$t.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:$t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test($t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ut,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,x.ajaxSettings),t):Gt(x.ajaxSettings,e)},ajaxPrefilter:qt(Ft),ajaxTransport:qt(Wt),ajax:function(t,i){"object"==typeof t&&(i=t,t=void 0),i=i||{};var s,n,a,r,o,l,c,d,u,h,p=x.ajaxSetup({},i),f=p.context||p,m=p.context&&(f.nodeType||f.jquery)?x(f):x.event,v=x.Deferred(),b=x.Callbacks("once memory"),y=p.statusCode||{},w={},_={},k="canceled",S={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=jt.exec(a);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=_[e.toLowerCase()]=_[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)S.always(e[S.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return s&&s.abort(t),C(0,t),this}};if(v.promise(S),p.url=((t||p.url||$t.href)+"").replace(Ht,$t.protocol+"//"),p.type=i.method||i.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(U)||[""],null==p.crossDomain){l=g.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=x.param(p.data,p.traditional)),Vt(Ft,p,i,S),c)return S;for(u in(d=x.event&&p.global)&&0==x.active++&&x.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Bt.test(p.type),n=p.url.replace(Ot,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(zt,"+")):(h=p.url.slice(n.length),p.data&&(p.processData||"string"==typeof p.data)&&(n+=(Et.test(n)?"&":"?")+p.data,delete p.data),!1===p.cache&&(n=n.replace(Rt,"$1"),h=(Et.test(n)?"&":"?")+"_="+Tt.guid+++h),p.url=n+h),p.ifModified&&(x.lastModified[n]&&S.setRequestHeader("If-Modified-Since",x.lastModified[n]),x.etag[n]&&S.setRequestHeader("If-None-Match",x.etag[n])),(p.data&&p.hasContent&&!1!==p.contentType||i.contentType)&&S.setRequestHeader("Content-Type",p.contentType),S.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ut+"; q=0.01":""):p.accepts["*"]),p.headers)S.setRequestHeader(u,p.headers[u]);if(p.beforeSend&&(!1===p.beforeSend.call(f,S,p)||c))return S.abort();if(k="abort",b.add(p.complete),S.done(p.success),S.fail(p.error),s=Vt(Wt,p,i,S)){if(S.readyState=1,d&&m.trigger("ajaxSend",[S,p]),c)return S;p.async&&0<p.timeout&&(o=e.setTimeout(function(){S.abort("timeout")},p.timeout));try{c=!1,s.send(w,C)}catch(t){if(c)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,i,r,l){var u,h,g,w,_,k=i;c||(c=!0,o&&e.clearTimeout(o),s=void 0,a=l||"",S.readyState=0<t?4:0,u=200<=t&&t<300||304===t,r&&(w=function(e,t,i){for(var s,n,a,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=e.mimeType||t.getResponseHeader("Content-Type"));if(s)for(n in o)if(o[n]&&o[n].test(s)){l.unshift(n);break}if(l[0]in i)a=l[0];else{for(n in i){if(!l[0]||e.converters[n+" "+l[0]]){a=n;break}r||(r=n)}a=a||r}if(a)return a!==l[0]&&l.unshift(a),i[a]}(p,S,r)),!u&&-1<x.inArray("script",p.dataTypes)&&x.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),w=function(e,t,i,s){var n,a,r,o,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=d.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&s&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=d.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(n in c)if((o=n.split(" "))[1]===a&&(r=c[l+" "+o[0]]||c["* "+o[0]])){!0===r?r=c[n]:!0!==c[n]&&(a=o[0],d.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(p,w,S,u),u?(p.ifModified&&((_=S.getResponseHeader("Last-Modified"))&&(x.lastModified[n]=_),(_=S.getResponseHeader("etag"))&&(x.etag[n]=_)),204===t||"HEAD"===p.type?k="nocontent":304===t?k="notmodified":(k=w.state,h=w.data,u=!(g=w.error))):(g=k,!t&&k||(k="error",t<0&&(t=0))),S.status=t,S.statusText=(i||k)+"",u?v.resolveWith(f,[h,k,S]):v.rejectWith(f,[S,k,g]),S.statusCode(y),y=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[S,p,u?h:g]),b.fireWith(f,[S,k]),d&&(m.trigger("ajaxComplete",[S,p]),--x.active||x.event.trigger("ajaxStop")))}return S},getJSON:function(e,t,i){return x.get(e,t,i,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,t){x[t]=function(e,i,s,n){return f(i)&&(n=n||s,s=i,i=void 0),x.ajax(x.extend({url:e,type:t,dataType:n,data:i,success:s},x.isPlainObject(e)&&e))}}),x.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),x._evalUrl=function(e,t,i){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,i)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(f(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return f(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=f(e);return this.each(function(i){x(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Jt=x.ajaxSettings.xhr();p.cors=!!Jt&&"withCredentials"in Jt,p.ajax=Jt=!!Jt,x.ajaxTransport(function(t){var i,s;if(p.cors||Jt&&!t.crossDomain)return{send:function(n,a){var r,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(r in t.xhrFields)o[r]=t.xhrFields[r];for(r in t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)o.setRequestHeader(r,n[r]);i=function(e){return function(){i&&(i=s=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Xt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),s=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=s:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){i&&s()})},i=i("abort");try{o.send(t.hasContent&&t.data||null)}catch(n){if(i)throw n}},abort:function(){i&&i()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(s,n){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&n("error"===e.type?404:200,e.type)}),g.head.appendChild(t[0])},abort:function(){i&&i()}}});var Kt,Qt=[],Zt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||x.expando+"_"+Tt.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(t,i,s){var n,a,r,o=!1!==t.jsonp&&(Zt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return n=t.jsonpCallback=f(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Zt,"$1"+n):!1!==t.jsonp&&(t.url+=(Et.test(t.url)?"&":"?")+t.jsonp+"="+n),t.converters["script json"]=function(){return r||x.error(n+" was not called"),r[0]},t.dataTypes[0]="json",a=e[n],e[n]=function(){r=arguments},s.always(function(){void 0===a?x(e).removeProp(n):e[n]=a,t[n]&&(t.jsonpCallback=i.jsonpCallback,Qt.push(n)),r&&f(a)&&a(r[0]),r=a=void 0}),"script"}),p.createHTMLDocument=((Kt=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Kt.childNodes.length),x.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(p.createHTMLDocument?((s=(t=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,t.head.appendChild(s)):t=g),a=!i&&[],(n=O.exec(e))?[t.createElement(n[1])]:(n=Ee([e],t,a),a&&a.length&&x(a).remove(),x.merge([],n.childNodes)));var s,n,a},x.fn.load=function(e,t,i){var s,n,a,r=this,o=e.indexOf(" ");return-1<o&&(s=xt(e.slice(o)),e=e.slice(0,o)),f(t)?(i=t,t=void 0):t&&"object"==typeof t&&(n="POST"),0<r.length&&x.ajax({url:e,type:n||"GET",dataType:"html",data:t}).done(function(e){a=arguments,r.html(s?x("<div>").append(x.parseHTML(e)).find(s):e)}).always(i&&function(e,t){r.each(function(){i.apply(this,a||[e.responseText,t,e])})}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,function(t){return e===t.elem}).length},x.offset={setOffset:function(e,t,i){var s,n,a,r,o,l,c=x.css(e,"position"),d=x(e),u={};"static"===c&&(e.style.position="relative"),o=d.offset(),a=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&-1<(a+l).indexOf("auto")?(r=(s=d.position()).top,n=s.left):(r=parseFloat(a)||0,n=parseFloat(l)||0),f(t)&&(t=t.call(e,i,x.extend({},o))),null!=t.top&&(u.top=t.top-o.top+r),null!=t.left&&(u.left=t.left-o.left+n),"using"in t?t.using.call(e,u):d.css(u)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,i,s=this[0];return s?s.getClientRects().length?(t=s.getBoundingClientRect(),i=s.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,s=this[0],n={top:0,left:0};if("fixed"===x.css(s,"position"))t=s.getBoundingClientRect();else{for(t=this.offset(),i=s.ownerDocument,e=s.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==s&&1===e.nodeType&&((n=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),n.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-n.top-x.css(s,"marginTop",!0),left:t.left-n.left-x.css(s,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||he})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i="pageYOffset"===t;x.fn[e]=function(s){return K(this,function(e,s,n){var a;if(m(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===n)return a?a[t]:e[s];a?a.scrollTo(i?a.pageXOffset:n,i?n:a.pageYOffset):e[s]=n},e,s,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=Xe(p.pixelPosition,function(e,i){if(i)return i=Ge(e,t),We.test(i)?x(e).position()[t]+"px":i})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,s){x.fn[s]=function(n,a){var r=arguments.length&&(i||"boolean"!=typeof n),o=i||(!0===n||!0===a?"margin":"border");return K(this,function(t,i,n){var a;return m(t)?0===s.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===n?x.css(t,i,o):x.style(t,i,n,o)},t,r?n:void 0,r)}})}),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,s){return this.on(t,e,i,s)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,i){return 0<arguments.length?this.on(t,null,e,i):this.trigger(t)}});var ei=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var i,s,a;if("string"==typeof t&&(i=e[t],t=e,e=i),f(e))return s=n.call(arguments,2),(a=function(){return e.apply(t||this,s.concat(n.call(arguments)))}).guid=e.guid=e.guid||x.guid++,a},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=S,x.isFunction=f,x.isWindow=m,x.camelCase=te,x.type=y,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(ei,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var ti=e.jQuery,ii=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=ii),t&&e.jQuery===x&&(e.jQuery=ti),x},void 0===t&&(e.jQuery=e.$=x),x}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){e.ui=e.ui||{},e.ui.version="1.14.0";var t,i,s,n,a,r=0,o=Array.prototype.hasOwnProperty,l=Array.prototype.slice,c=(e.cleanData=(t=e.cleanData,function(i){for(var s,n,a=0;null!=(n=i[a]);a++)(s=e._data(n,"events"))&&s.remove&&e(n).triggerHandler("remove");t(i)}),e.widget=function(t,i,s){var n,a,r,o={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return s||(s=i,i=e.Widget),Array.isArray(s)&&(s=e.extend.apply(null,[{}].concat(s))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},n=e[l][t],a=e[l][t]=function(e,t){if(!this||!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,n,{version:s.version,_proto:e.extend({},s),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(s,function(e,t){function s(){return i.prototype[e].apply(this,arguments)}function n(t){return i.prototype[e].apply(this,t)}o[e]="function"!=typeof t?t:function(){var e,i=this._super,a=this._superApply;return this._super=s,this._superApply=n,e=t.apply(this,arguments),this._super=i,this._superApply=a,e}}),a.prototype=e.widget.extend(r,{widgetEventPrefix:n&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:c}),n?(e.each(n._childConstructors,function(t,i){var s=i.prototype;e.widget(s.namespace+"."+s.widgetName,a,i._proto)}),delete n._childConstructors):i._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,s,n=l.call(arguments,1),a=0,r=n.length;a<r;a++)for(i in n[a])s=n[a][i],o.call(n[a],i)&&void 0!==s&&(e.isPlainObject(s)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],s):e.widget.extend({},s):t[i]=s);return t},e.widget.bridge=function(t,i){var s=i.prototype.widgetFullName||t;e.fn[t]=function(n){var a="string"==typeof n,r=l.call(arguments,1),o=this;return a?this.length||"instance"!==n?this.each(function(){var i,a=e.data(this,s);return"instance"===n?(o=a,!1):a?"function"!=typeof a[n]||"_"===n.charAt(0)?e.error("no such method '"+n+"' for "+t+" widget instance"):(i=a[n].apply(a,r))!==a&&void 0!==i?(o=i&&i.jquery?o.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+n+"'")}):o=void 0:(r.length&&(n=e.widget.extend.apply(null,[n].concat(r))),this.each(function(){var t=e.data(this,s);t?(t.option(n||{}),t._init&&t._init()):e.data(this,s,new i(n,this))})),o}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=r++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var s,n,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},t=(s=t.split(".")).shift(),s.length){for(n=r[t]=e.widget.extend({},this.options[t]),a=0;a<s.length-1;a++)n[s[a]]=n[s[a]]||{},n=n[s[a]];if(t=s.pop(),1===arguments.length)return void 0===n[t]?null:n[t];n[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){for(var t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,s,n;for(i in t)n=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&n&&n.length&&(s=e(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var i=[],s=this;function n(n,a){for(var r,o=0;o<n.length;o++)r=s.classesElementLookup[n[o]]||e(),r=t.add?(function(){var i=[];t.element.each(function(t,n){e.map(s.classesElementLookup,function(e){return e}).some(function(e){return e.is(n)})||i.push(n)}),s._on(e(i),{remove:"_untrackClassesElement"})}(),e(e.uniqueSort(r.get().concat(t.element.get())))):e(r.not(t.element).get()),s.classesElementLookup[n[o]]=r,i.push(n[o]),a&&t.classes[n[o]]&&i.push(t.classes[n[o]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&n(t.keys.match(/\S+/g)||[],!0),t.extra&&n(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(s,n){-1!==e.inArray(t.target,n)&&(i.classesElementLookup[s]=e(n.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,s){var n="string"==typeof e||null===e;return(t={extra:n?t:i,keys:n?e:t,element:n?this.element:e,add:s="boolean"==typeof s?s:i}).element.toggleClass(this._classes(t),s),this},_on:function(t,i,s){var n,a=this;"boolean"!=typeof t&&(s=i,i=t,t=!1),s?(i=n=e(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),e.each(s,function(s,r){function o(){if(t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var l=(s=s.match(/^([\w:-]*)\s*(.*)$/))[1]+a.eventNamespace;(s=s[2])?n.on(l,s,o):i.on(l,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,s){var n,a,r=this.options[t];if(s=s||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(n in a)n in i||(i[n]=a[n]);return this.element.trigger(i,s),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(s,n,a){var r,o=(n="string"==typeof n?{effect:n}:n)?!0!==n&&"number"!=typeof n&&n.effect||i:t;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),r=!e.isEmptyObject(n),n.complete=a,n.delay&&s.delay(n.delay),r&&e.effects&&e.effects.effect[o]?s[t](n):o!==t&&s[o]?s[o](n.duration,n.easing,a):s.queue(function(i){e(this)[t](),a&&a.call(s[0]),i()})}}),e.widget,e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}})}),e.fn.extend({disableSelection:(i="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(i+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},e.fn.scrollParent=function(t){var i=this.css("position"),s="absolute"===i,n=t?/(auto|scroll|hidden)/:/(auto|scroll)/;t=this.parents().filter(function(){var t=e(this);return(!s||"static"!==t.css("position"))&&n.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&t.length?t:e(this[0].ownerDocument||document)},e.fn.extend({uniqueId:(s=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++s)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")})}}),!1);function d(e,t,i){return t<=e&&e<t+i}function u(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=h(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function h(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,p)}function p(){e.datepicker._isDisabledDatepicker((n.inline?n.dpDiv.parent():n.input)[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function f(t,i){for(var s in e.extend(t,i),i)null==i[s]&&(t[s]=i[s])}e(document).on("mouseup",function(){c=!1}),e.widget("ui.mouse",{version:"1.14.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(t){var i,s,n;if(!c)return this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),s=1===(this._mouseDownEvent=t).which,n="string"==typeof(i=this).options.cancel&&e(t.target).closest(this.options.cancel).length,s&&!n&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?t.preventDefault():(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),c=!0)),!0},_mouseMove:function(e){if(this._mouseMoved&&!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e);return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,c=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,s){var n,a=e.ui[t].prototype;for(n in s)a.plugins[n]=a.plugins[n]||[],a.plugins[n].push([i,s[n]])},call:function(e,t,i,s){var n,a=e.plugins[t];if(a&&(s||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(n=0;n<a.length;n++)e.options[a[n][0]]&&a[n][1].apply(e.element,i)}},e.widget("ui.draggable",e.ui.mouse,{version:"1.14.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||0<e(t.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(t),!this.handle)||(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0].activeElement;e(t.target).closest(i).length||e(i).trigger("blur")},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){if(i=this._uiHash(),!1===this._trigger("drag",t,i))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,s=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(s=e.ui.ddmanager.drop(this,t)),this.dropped&&(s=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!s||"valid"===this.options.revert&&s||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,s)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,s="function"==typeof i.helper;return(t=s?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||t.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),s&&t[0]===this.element[0]&&this._setPositionRelative(),t[0]===this.element[0]||/(fixed|absolute)/.test(t.css("position"))||t.css("position","absolute"),t},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=Array.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this._isRootNode(this.offsetParent[0])?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var e,t;return"relative"!==this.cssPosition?{top:0,left:0}:(e=this.element.position(),t=this._isRootNode(this.scrollParent[0]),{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())})},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i=this.options,s=this.document[0];this.relativeContainer=null,i.containment?"window"===i.containment?this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:"document"===i.containment?this.containment=[0,0,e(s).width()-this.helperProportions.width-this.margins.left,(e(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:i.containment.constructor===Array?this.containment=i.containment:("parent"===i.containment&&(i.containment=this.helper[0].parentNode),(i=(s=e(i.containment))[0])&&(t=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(t?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=null},_convertPositionTo:function(e,t){t=t||this.position;e="absolute"===e?1:-1;var i=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*e+this.offset.parent.top*e-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*e,left:t.left+this.offset.relative.left*e+this.offset.parent.left*e-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*e}},_generatePosition:function(e,t){var i,s=this.options,n=this._isRootNode(this.scrollParent[0]),a=e.pageX,r=e.pageY;return n&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),{top:(r=t&&(this.containment&&(i=this.relativeContainer?(t=this.relativeContainer.offset(),[this.containment[0]+t.left,this.containment[1]+t.top,this.containment[2]+t.left,this.containment[3]+t.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(a=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(a=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3])&&(r=i[3]+this.offset.click.top),s.grid&&(t=s.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,r=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-s.grid[1]:t+s.grid[1],e=s.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,a=!i||e-this.offset.click.left>=i[0]||e-this.offset.click.left>i[2]?e:e-this.offset.click.left>=i[0]?e-s.grid[0]:e+s.grid[0]),"y"===s.axis&&(a=this.originalPageX),"x"===s.axis)?this.originalPageY:r)-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,s){return s=s||this._uiHash(),e.ui.plugin.call(this,t,[i,s,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,s){var n=e.extend({},i,{item:s.element});s.sortables=[],e(s.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(s.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,n))})},stop:function(t,i,s){var n=e.extend({},i,{item:s.element});s.cancelHelperRemoval=!1,e.each(s.sortables,function(){var e=this;e.isOver?(s.cancelHelperRemoval=!(e.isOver=0),e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(t,i,s){e.each(s.sortables,function(){var n=!1,a=this;a.positionAbs=s.positionAbs,a.helperProportions=s.helperProportions,a.offset.click=s.offset.click,a._intersectsWith(a.containerCache)&&(n=!0,e.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,n=(this===a||!this._intersectsWith(this.containerCache)||!e.contains(a.element[0],this.element[0]))&&n})),n?(a.isOver||(a.isOver=1,s._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=s.offset.click.top,a.offset.click.left=s.offset.click.left,a.offset.parent.left-=s.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=s.offset.parent.top-a.offset.parent.top,s._trigger("toSortable",t),s.dropped=a.element,e.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,a.fromOutside=s),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(s._parent),s._refreshOffsets(t),i.position=s._generatePosition(t,!0),s._trigger("fromSortable",t),s.dropped=!1,e.each(s.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,s){var n=e("body");s=s.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(t,i,s){(s=s.options)._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,s){i=e(i.helper),s=s.options,i.css("opacity")&&(s._opacity=i.css("opacity")),i.css("opacity",s.opacity)},stop:function(t,i,s){(s=s.options)._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,s){var n=s.options,a=!1,r=s.scrollParentNotHidden[0],o=s.document[0];r!==o&&"HTML"!==r.tagName?(n.axis&&"x"===n.axis||(s.overflowOffset.top+r.offsetHeight-t.pageY<n.scrollSensitivity?r.scrollTop=a=r.scrollTop+n.scrollSpeed:t.pageY-s.overflowOffset.top<n.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(s.overflowOffset.left+r.offsetWidth-t.pageX<n.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+n.scrollSpeed:t.pageX-s.overflowOffset.left<n.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(t.pageY-e(o).scrollTop()<n.scrollSensitivity?a=e(o).scrollTop(e(o).scrollTop()-n.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<n.scrollSensitivity&&(a=e(o).scrollTop(e(o).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(t.pageX-e(o).scrollLeft()<n.scrollSensitivity?a=e(o).scrollLeft(e(o).scrollLeft()-n.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<n.scrollSensitivity&&(a=e(o).scrollLeft(e(o).scrollLeft()+n.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!n.dropBehaviour&&e.ui.ddmanager.prepareOffsets(s,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,s){var n=s.options;s.snapElements=[],e(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var t=e(this),i=t.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,s){for(var n,a,r,o,l,c,d,u,h,p=s.options,f=p.snapTolerance,m=i.offset.left,g=m+s.helperProportions.width,v=i.offset.top,b=v+s.helperProportions.height,y=s.snapElements.length-1;0<=y;y--)c=(l=s.snapElements[y].left-s.margins.left)+s.snapElements[y].width,u=(d=s.snapElements[y].top-s.margins.top)+s.snapElements[y].height,g<l-f||c+f<m||b<d-f||u+f<v||!e.contains(s.snapElements[y].item.ownerDocument,s.snapElements[y].item)?(s.snapElements[y].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[y].item})),s.snapElements[y].snapping=!1):("inner"!==p.snapMode&&(n=Math.abs(d-b)<=f,a=Math.abs(u-v)<=f,r=Math.abs(l-g)<=f,o=Math.abs(c-m)<=f,n&&(i.position.top=s._convertPositionTo("relative",{top:d-s.helperProportions.height,left:0}).top),a&&(i.position.top=s._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),o)&&(i.position.left=s._convertPositionTo("relative",{top:0,left:c}).left),h=n||a||r||o,"outer"!==p.snapMode&&(n=Math.abs(d-v)<=f,a=Math.abs(u-b)<=f,r=Math.abs(l-m)<=f,o=Math.abs(c-g)<=f,n&&(i.position.top=s._convertPositionTo("relative",{top:d,left:0}).top),a&&(i.position.top=s._convertPositionTo("relative",{top:u-s.helperProportions.height,left:0}).top),r&&(i.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),o)&&(i.position.left=s._convertPositionTo("relative",{top:0,left:c-s.helperProportions.width}).left),!s.snapElements[y].snapping&&(n||a||r||o||h)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,t,e.extend(s._uiHash(),{snapItem:s.snapElements[y].item})),s.snapElements[y].snapping=n||a||r||o||h)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,s){var n;s=s.options;(s=e.makeArray(e(s.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)})).length&&(n=parseInt(e(s[0]).css("zIndex"),10)||0,e(s).each(function(t){e(this).css("zIndex",n+t)}),this.css("zIndex",n+s.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,s){i=e(i.helper),s=s.options,i.css("zIndex")&&(s._zIndex=i.css("zIndex")),i.css("zIndex",s.zIndex)},stop:function(t,i,s){(s=s.options)._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable,e.widget("ui.droppable",{version:"1.14.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e=e||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){var s;"accept"===t?this.accept="function"==typeof i?i:function(e){return e.is(i)}:"scope"===t&&(s=e.ui.ddmanager.droppables[this.options.scope],this._splice(s),this._addToManager(i)),this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var s=i||e.ui.ddmanager.current,n=!1;return!(!s||(s.currentItem||s.element)[0]===this.element[0]||(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===s.options.scope&&i.accept.call(i.element[0],s.currentItem||s.element)&&e.ui.intersect(s,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return!(n=!0)}),n)||!this.accept.call(this.element[0],s.currentItem||s.element))&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(s)),this.element)},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(e,t,i,s){if(!t.offset)return!1;var n=(e.positionAbs||e.position.absolute).left+e.margins.left,a=(e.positionAbs||e.position.absolute).top+e.margins.top,r=n+e.helperProportions.width,o=a+e.helperProportions.height,l=t.offset.left,c=t.offset.top,u=l+t.proportions().width,h=c+t.proportions().height;switch(i){case"fit":return l<=n&&r<=u&&c<=a&&o<=h;case"intersect":return l<n+e.helperProportions.width/2&&r-e.helperProportions.width/2<u&&c<a+e.helperProportions.height/2&&o-e.helperProportions.height/2<h;case"pointer":return d(s.pageY,c,t.proportions().height)&&d(s.pageX,l,t.proportions().width);case"touch":return(c<=a&&a<=h||c<=o&&o<=h||a<c&&h<o)&&(l<=n&&n<=u||l<=r&&r<=u||n<l&&u<r);default:return!1}},e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var s,n,a=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(s=0;s<a.length;s++)if(!(a[s].options.disabled||t&&!a[s].accept.call(a[s].element[0],t.currentItem||t.element))){for(n=0;n<o.length;n++)if(o[n]===a[s].element[0]){a[s].proportions().height=0;continue e}a[s].visible="none"!==a[s].element.css("display"),a[s].visible&&("mousedown"===r&&a[s]._activate.call(a[s],i),a[s].offset=a[s].element.offset(),a[s].proportions({width:a[s].element[0].offsetWidth,height:a[s].element[0].offsetHeight}))}},drop:function(t,i){var s=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(s=this._drop.call(this,i)||s),!this.options.disabled)&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i))}),s},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)})},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],function(){var s,n,a,r;this.options.disabled||this.greedyChild||!this.visible||(r=!(r=e.ui.intersect(t,this,this.options.tolerance,i))&&this.isover?"isout":r&&!this.isover?"isover":null)&&(this.options.greedy&&(n=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter(function(){return e(this).droppable("instance").options.scope===n})).length)&&((s=e(a[0]).droppable("instance")).greedyChild="isover"===r),s&&"isover"===r&&(s.isover=!1,s.isout=!0,s._out.call(s,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),s)&&"isout"===r&&(s.isout=!1,s.isover=!0,s._over.call(s,i))})},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},!0===e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable,e.widget("ui.resizable",e.ui.mouse,{version:"1.14.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var s=!1;if(0<t[i=i&&"left"===i?"scrollLeft":"scrollTop"])return!0;try{t[i]=1,s=0<t[i],t[i]=0}catch(t){}return s},_create:function(){var t,i=this.options,s=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",function(){i.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())}).on("mouseleave",function(){i.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())}),this._mouseInit()},_destroy:function(){function t(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")}var i;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(t(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,i,s,n,a,r=this.options,o=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},i=0;i<s.length;i++)n="ui-resizable-"+(t=String.prototype.trim.call(s[i])),a=e("<div>"),this._addClass(a,"ui-resizable-handle "+n),a.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(a),this._addedHandles=this._addedHandles.add(a));this._renderAxis=function(t){var i,s,n;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),n=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(s,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){o.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=a&&a[1]?a[1]:"se")}),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,s,n=!1;for(i in this.handles)(s=e(this.handles[i])[0])!==t.target&&!e.contains(s,t.target)||(n=!0);return!this.options.disabled&&n},_mouseStart:function(t){var i,s,n=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),n.containment&&(i+=e(n.containment).scrollLeft()||0,s+=e(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:s},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,a=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===a?this.axis+"-resize":a),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i=this.originalMousePosition,s=this.axis,n=t.pageX-i.left||0;i=t.pageY-i.top||0,s=this._change[s];return this._updatePrevProperties(),s&&(s=s.apply(this,[t,n,i]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(s=this._updateRatio(s,t)),s=this._respectSize(s,t),this._updateCache(s),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges())),!1},_mouseStop:function(t){this.resizing=!1;var i,s,n,a=this.options,r=this;return this._helper&&(s=(i=(s=this._proportionallyResizeElements).length&&/textarea/i.test(s[0].nodeName))&&this._hasScroll(s[0],"left")?0:r.sizeDiff.height,i=i?0:r.sizeDiff.width,i={width:r.helper.width()-i,height:r.helper.height()-s},s=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,n=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,a.animate||this.element.css(e.extend(i,{top:n,left:s})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper)&&!a.animate&&this._proportionallyResize(),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.helper.css(e),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px",this.helper.width(e.width)),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px",this.helper.height(e.height)),e},_updateVirtualBoundaries:function(e){var t,i,s,n=this.options;n={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||e)&&(e=n.minHeight*this.aspectRatio,i=n.minWidth/this.aspectRatio,t=n.maxHeight*this.aspectRatio,s=n.maxWidth/this.aspectRatio,n.minWidth<e&&(n.minWidth=e),n.minHeight<i&&(n.minHeight=i),t<n.maxWidth&&(n.maxWidth=t),s<n.maxHeight)&&(n.maxHeight=s),this._vBoundaries=n},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,s=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===s&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===s&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,s=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,n=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i);i=/nw|ne|n/.test(i);return a&&(e.width=t.minWidth),r&&(e.height=t.minHeight),s&&(e.width=t.maxWidth),n&&(e.height=t.maxHeight),a&&c&&(e.left=o-t.minWidth),s&&c&&(e.left=o-t.maxWidth),r&&i&&(e.top=l-t.minHeight),n&&i&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],s=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],n=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(s[t])||0,i[t]+=parseFloat(n[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var s=this.originalSize;return{top:this.originalPosition.top+i,height:s.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},sw:function(t,i,s){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,s]))},ne:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,s]))},nw:function(t,i,s){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,s]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),s=i.options,n=i._proportionallyResizeElements,a=(r=n.length&&/textarea/i.test(n[0].nodeName))&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,r=r?0:i.sizeDiff.width,o=(r={width:i.size.width-r,height:i.size.height-a},a=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null);i.element.animate(e.extend(r,o&&a?{top:o,left:a}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};n&&n.length&&e(n[0]).css({width:s.width,height:s.height}),i._updateCache(s),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,s,n,a=e(this).resizable("instance"),r=a.options,o=a.element;(o=(r=r.containment)instanceof e?r.get(0):/parent/.test(r)?o.parent().get(0):r)&&(a.containerElement=e(o),/document/.test(r)||r===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(o),i=[],e(["Top","Right","Left","Bottom"]).each(function(e,s){i[e]=a._num(t.css("padding"+s))}),a.containerOffset=t.offset(),a.containerPosition=t.position(),a.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},r=a.containerOffset,n=a.containerSize.height,s=a.containerSize.width,s=a._hasScroll(o,"left")?o.scrollWidth:s,n=a._hasScroll(o)?o.scrollHeight:n,a.parentData={element:o,left:r.left,top:r.top,width:s,height:n}))},resize:function(t){var i=e(this).resizable("instance"),s=i.options,n=i.containerOffset,a=i.position,r=(t=i._aspectRatio||t.shiftKey,{top:0,left:0}),o=i.containerElement,l=!0;o[0]!==document&&/static/.test(o.css("position"))&&(r=n),a.left<(i._helper?n.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-n.left:i.position.left-r.left),t&&(i.size.height=i.size.width/i.aspectRatio,l=!1),i.position.left=s.helper?n.left:0),a.top<(i._helper?n.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-n.top:i.position.top),t&&(i.size.width=i.size.height*i.aspectRatio,l=!1),i.position.top=i._helper?n.top:0),o=i.containerElement.get(0)===i.element.parent().get(0),s=/relative|absolute/.test(i.containerElement.css("position")),o&&s?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),a=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-r.left:i.offset.left-n.left)),o=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-r.top:i.offset.top-n.top)),a+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-a,t)&&(i.size.height=i.size.width/i.aspectRatio,l=!1),o+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-o,t)&&(i.size.width=i.size.height*i.aspectRatio,l=!1),l||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,s=t.containerOffset,n=t.containerPosition,a=t.containerElement,r=(l=e(t.helper)).offset(),o=l.outerWidth()-t.sizeDiff.width,l=l.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:o,height:l}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:r.left-n.left-s.left,width:o,height:l})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each(function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.css("width")),height:parseFloat(t.css("height")),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})})},resize:function(t,i){var s=e(this).resizable("instance"),n=s.options,a=s.originalSize,r=s.originalPosition,o={height:s.size.height-a.height||0,width:s.size.width-a.width||0,top:s.position.top-r.top||0,left:s.position.left-r.left||0};e(n.alsoResize).each(function(){var t=e(this),s=e(this).data("ui-resizable-alsoresize"),n={},a=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(a,function(e,t){var i=(s[t]||0)+(o[t]||0);i&&0<=i&&(n[t]=i||null)}),t.css(n)})},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!0===e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),s=i.options,n=i.size,a=i.originalSize,r=i.originalPosition,o=i.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,c=l[0]||1,d=l[1]||1,u=Math.round((n.width-a.width)/c)*c,h=(n=Math.round((n.height-a.height)/d)*d,a.width+u),p=a.height+n,f=s.maxWidth&&s.maxWidth<h,m=s.maxHeight&&s.maxHeight<p,g=s.minWidth&&s.minWidth>h,v=s.minHeight&&s.minHeight>p;s.grid=l,g&&(h+=c),v&&(p+=d),f&&(h-=c),m&&(p-=d),/^(se|s|e)$/.test(o)?(i.size.width=h,i.size.height=p):/^(ne)$/.test(o)?(i.size.width=h,i.size.height=p,i.position.top=r.top-n):/^(sw)$/.test(o)?(i.size.width=h,i.size.height=p,i.position.left=r.left-u):((p-d<=0||h-c<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),0<p-d?(i.size.height=p,i.position.top=r.top-n):(p=d-t.height,i.size.height=p,i.position.top=r.top+a.height-p),0<h-c?(i.size.width=h,i.position.left=r.left-u):(h=c-t.width,i.size.width=h,i.position.left=r.left+a.width-h))}}),e.ui.resizable,e.widget("ui.sortable",e.ui.mouse,{version:"1.14.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return t<=e&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var s=null,n=!1,a=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return s=e(this),!1}),!(s=e.data(t.target,a.widgetName+"-item")===a?e(t.target):s))||this.options.handle&&!i&&(e(this.options.handle,s).find("*").addBack().each(function(){this===t.target&&(n=!0)}),!n)||(this.currentItem=s,this._removeCurrentsFromItems(),0))},_mouseStart:function(t,i,s){var n,a,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this._storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!s)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,s,n,a,r=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager)&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;0<=i;i--)if(n=(s=this.items[i]).item[0],(a=this._intersectsWithPointer(s))&&s.instance===this.currentContainer&&!(n===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===n||e.contains(this.placeholder[0],n)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],n))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(s))break;this._rearrange(t,s),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){var s,n,a,r;if(t)return e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert?(n=(s=this).placeholder.offset(),r={},(a=this.options.axis)&&"x"!==a||(r.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){s._clear(t)})):this._clear(t,i),!1},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;0<=t;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&s.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!s.length&&t.key&&s.push(t.key+"="),s.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),s=[];return t=t||{},i.each(function(){s.push(e(t.item||this).attr(t.attribute||"id")||"")}),s},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,s=this.positionAbs.top,n=s+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,d=this.offset.click.left;c="x"===this.options.axis||o<s+c&&s+c<l,d="y"===this.options.axis||a<t+d&&t+d<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?c&&d:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<s+this.helperProportions.height/2&&n-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!t||!e)&&(t=this.dragDirection.vertical,e=this.dragDirection.horizontal,this.floating?"right"===e||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=(e=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),this.dragDirection.vertical),s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&e||"left"===s&&!e:i&&("down"===i&&t||"up"===i&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!=e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!=e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,s,n,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;0<=i;i--)for(s=(n=e(l[i],this.document[0])).length-1;0<=s;s--)(a=e.data(n[s],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push(["function"==typeof a.options.items?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function c(){r.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;0<=i;i--)o[i][0].each(c);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,s,n,a,r,o,l,c,d=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;0<=i;i--)for(s=(n=e(h[i],this.document[0])).length-1;0<=s;s--)(a=e.data(n[s],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=u.length-1;0<=i;i--)for(r=u[i][1],c=(o=u[i][s=0]).length;s<c;s++)(l=e(o[s])).data(this.widgetName+"-item",r),d.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){for(var i,s,n=this.items.length-1;0<=n;n--)i=this.items[n],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,i.item):i.item,t||(i.width=s.outerWidth(),i.height=s.outerHeight()),s=s.offset(),i.left=s.left,i.top=s.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,s,n=(t=t||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,s=t.currentItem[0].nodeName.toLowerCase(),n.placeholder={element:function(){var n=e("<"+s+">",t.document[0]);return t._addClass(n,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(n,"ui-sortable-helper"),"tbody"===s?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(n)):"tr"===s?t._createTrPlaceholder(t.currentItem,n):"img"===s&&n.attr("src",t.currentItem.attr("src")),i||n.css("visibility","hidden"),n},update:function(e,a){i&&!n.forcePlaceholderSize||(a.height()&&(!n.forcePlaceholderSize||"tbody"!==s&&"tr"!==s)||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width())||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10))}}),t.placeholder=e(n.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),n.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var s=this;t.children().each(function(){e("<td>&#160;</td>",s.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){for(var i,s,n,a,r,o,l,c,d,u=null,h=null,p=this.containers.length-1;0<=p;p--)e.contains(this.currentItem[0],this.containers[p].element[0])||(this._intersectsWith(this.containers[p].containerCache)?u&&e.contains(this.containers[p].element[0],u.element[0])||(u=this.containers[p],h=p):this.containers[p].containerCache.over&&(this.containers[p]._trigger("out",t,this._uiHash(this)),this.containers[p].containerCache.over=0));if(u)if(1===this.containers.length)this.containers[h].containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1);else{for(s=1e4,n=null,a=(c=u.floating||this._isFloating(this.currentItem))?"left":"top",r=c?"width":"height",d=c?"pageX":"pageY",i=this.items.length-1;0<=i;i--)e.contains(this.containers[h].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(o=this.items[i].item.offset()[a],l=!1,t[d]-o>this.items[i][r]/2&&(l=!0),Math.abs(t[d]-o)<s)&&(s=Math.abs(t[d]-o),n=this.items[i],this.direction=l?"up":"down");(n||this.options.dropOnEmpty)&&(this.currentContainer===this.containers[h]?this.currentContainer.containerCache.over||(this.containers[h]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1):(n?this._rearrange(t,n,null,!0):this._rearrange(t,null,this.containers[h].element,!0),this._trigger("change",t,this._uiHash()),this.containers[h]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[h],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[h]._trigger("over",t,this._uiHash(this)),this.containers[h].containerCache.over=1))}},_createHelper:function(t){var i=this.options;return(t="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(t[0]),t[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),t[0].style.width&&!i.forceHelperSize||t.width(this.currentItem.width()),t[0].style.height&&!i.forceHelperSize||t.height(this.currentItem.height()),t},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),"left"in(e=Array.isArray(e)?{left:+e[0],top:+e[1]||0}:e)&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),{top:(t=this.offsetParent[0]===this.document[0].body?{top:0,left:0}:t).top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){var e;return"relative"===this.cssPosition?{top:(e=this.currentItem.position()).top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}:{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],s=e(s.containment).offset(),i="hidden"!==e(t).css("overflow"),this.containment=[s.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,s.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,s.left+(i?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,s.top+(i?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i=i||this.position;t="absolute"===t?1:-1;var s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,n=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*t+this.offset.parent.top*t-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():n?0:s.scrollTop())*t,left:i.left+this.offset.relative.left*t+this.offset.parent.left*t-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():n?0:s.scrollLeft())*t}},_generatePosition:function(t){var i=this.options,s=t.pageX,n=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(a[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(n=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3])&&(n=this.containment[3]+this.offset.click.top),i.grid)&&(t=this.originalPageY+Math.round((n-this.originalPageY)/i.grid[1])*i.grid[1],n=!this.containment||t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-i.grid[1]:t+i.grid[1],t=this.originalPageX+Math.round((s-this.originalPageX)/i.grid[0])*i.grid[0],s=!this.containment||t-this.offset.click.left>=this.containment[0]&&t-this.offset.click.left<=this.containment[2]?t:t-this.offset.click.left>=this.containment[0]?t-i.grid[0]:t+i.grid[0]),{top:n-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:a.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:a.scrollLeft())}},_rearrange:function(e,t,i,s){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var n=this.counter;this._delay(function(){n===this.counter&&this.refreshPositions(!s)})},_clear:function(e,t){this.reverting=!1;var i,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function n(e,t,i){return function(s){i._trigger(e,s,t._uiHash(t))}}for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this===this.currentContainer||t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer))),i=this.containers.length-1;0<=i;i--)t||s.push(n("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(s.push(n("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<s.length;i++)s[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),e.extend(e.ui,{datepicker:{version:"1.14.0"}}),e.extend(u.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return f(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var s,n=t.nodeName.toLowerCase(),a="div"===n||"span"===n;t.id||(this.uuid+=1,t.id="dp"+this.uuid),(s=this._newInst(e(t),a)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,s):a&&this._inlineDatepicker(t,s)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?h(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var s=e(t);i.append=e([]),i.trigger=e([]),s.hasClass(this.markerClassName)||(this._attachments(s,i),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var s,n=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),n&&(i.append=e("<span>").addClass(this._appendClass).text(n),t[a?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(n=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:s,alt:n,title:n}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),s?i.trigger.html(e("<img>").attr({src:s,alt:n,title:n})):i.trigger.text(n)),t[a?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(e){var t,i,s,n,a,r;this._get(e,"autoSize")&&!e.inline&&(a=new Date(2009,11,20),(r=this._get(e,"dateFormat")).match(/[DM]/)&&(a.setMonth((t=function(e){for(n=s=i=0;n<e.length;n++)e[n].length>i&&(i=e[n].length,s=n);return s})(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length))},_inlineDatepicker:function(t,i){var s=e(t);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,s,n,a){var r,o=this._dialogInst;return o||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(o=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",o)),f(o.settings,n||{}),i=i&&i.constructor===Date?this._formatDate(o,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(r=document.documentElement.clientWidth,n=document.documentElement.clientHeight,i=document.documentElement.scrollLeft||document.body.scrollLeft,a=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+i,n/2-150+a]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),o.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",o),this},_destroyDatepicker:function(t){var i,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||s.removeClass(this.markerClassName).empty(),e.datepicker._hideDatepicker(),n===a)&&(n=null,this._curInst=null)},_enableDatepicker:function(t){var i,s=e(t),n=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,n.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,s=e(t),n=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,n.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(e)for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,s){var n,a,r=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):r?"all"===i?e.extend({},r.settings):this._get(r,i):null;n=i||{},"string"==typeof i&&((n={})[i]=s),r&&(this._curInst===r&&this._hideDatepicker(),i=this._getDateDatepicker(t,!0),s=this._getMinMaxDate(r,"min"),a=this._getMinMaxDate(r,"max"),f(r.settings,n),null!==s&&void 0!==n.dateFormat&&void 0===n.minDate&&(r.settings.minDate=this._formatDate(r,s)),null!==a&&void 0!==n.dateFormat&&void 0===n.maxDate&&(r.settings.maxDate=this._formatDate(r,a)),"disabled"in n&&(n.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),r),this._autoSize(r),this._setDate(r,i),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){(e=this._getInst(e))&&this._updateDatepicker(e)},_setDateDatepicker:function(e,t){(e=this._getInst(e))&&(this._setDate(e,t),this._updateDatepicker(e),this._updateAlternate(e))},_getDateDatepicker:function(e,t){return(e=this._getInst(e))&&!e.inline&&this._setDateFromField(e,t),e?this._getDate(e):null},_doKeyDown:function(t){var i,s,n=e.datepicker._getInst(t.target),a=!0,r=n.dpDiv.is(".ui-datepicker-rtl");if(n._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),a=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",n.dpDiv))[0]&&e.datepicker._selectDay(t.target,n.selectedMonth,n.selectedYear,s[0]),(s=e.datepicker._get(n,"onSelect"))?(i=e.datepicker._formatDate(n),s.apply(n.input?n.input[0]:null,[i,n])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(n,"stepBigMonths"):-e.datepicker._get(n,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,r?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(n,"stepBigMonths"):+e.datepicker._get(n,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return s=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),i=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||i<" "||!s||-1<s.indexOf(i)},_doKeyUp:function(t){if((t=e.datepicker._getInst(t.target)).input.val()!==t.lastVal)try{e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,e.datepicker._getFormatConfig(t))&&(e.datepicker._setDateFromField(t),e.datepicker._updateAlternate(t),e.datepicker._updateDatepicker(t))}catch(t){}return!0},_showDatepicker:function(t){var i,s,n,a;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(a=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==a&&(e.datepicker._curInst.dpDiv.stop(!0,!0),a)&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0]),!1===(s=(s=e.datepicker._get(a,"beforeShow"))?s.apply(t,[t,a]):{}))||(f(a.settings,s),a.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(a),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),i=!1,e(t).parents().each(function(){return!(i|="fixed"===e(this).css("position"))}),s={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,a.dpDiv.empty(),a.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(a),s=e.datepicker._checkOffset(a,s,i),a.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":i?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),a.inline)||(s=e.datepicker._get(a,"showAnim"),n=e.datepicker._get(a,"duration"),a.dpDiv.css("z-index",function(e){for(var t;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(t=parseInt(e.css("zIndex"),10),!isNaN(t))&&0!==t)return t;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[s]?a.dpDiv.show(s,e.datepicker._get(a,"showOptions"),n):a.dpDiv[s||"show"](s?n:null),e.datepicker._shouldFocusInput(a)&&a.input.trigger("focus"),e.datepicker._curInst=a)},_updateDatepicker:function(t){this.maxRows=4,(n=t).dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,s=this._getNumberOfMonths(t),a=s[1],r=t.dpDiv.find("."+this._dayOverClass+" a"),o=e.datepicker._get(t,"onUpdateDatepicker");0<r.length&&p.apply(r.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<a&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),t.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout(function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),i=t.yearshtml=null},0)),o&&o.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(t,i,s){var n=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(s?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?n-r:0,i.left-=s&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=s&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,l<i.left+n&&n<l?Math.abs(i.left+n-l):0),i.top-=Math.min(i.top,c<i.top+a&&a<c?Math.abs(a+o):0),i},_findPos:function(t){for(var i=this._getInst(t),s=this._get(i,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,s,n=this._curInst;!n||t&&n!==e.data(t,"datepicker")||this._datepickerShowing&&(t=this._get(n,"showAnim"),s=this._get(n,"duration"),i=function(){e.datepicker._tidyDialog(n)},e.effects&&e.effects.effect[t]?n.dpDiv.hide(t,e.datepicker._get(n,"showOptions"),s,i):n.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?s:null,i),t||i(),this._datepickerShowing=!1,(s=this._get(n,"onClose"))&&s.apply(n.input?n.input[0]:null,[n.input?n.input.val():"",n]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI)&&(e.unblockUI(),e("body").append(this.dpDiv)),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){var i;e.datepicker._curInst&&(t=e(t.target),i=e.datepicker._getInst(t[0]),!(t[0].id===e.datepicker._mainDivId||0!==t.parents("#"+e.datepicker._mainDivId).length||t.hasClass(e.datepicker.markerClassName)||t.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)||t.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==i)&&e.datepicker._hideDatepicker()},_adjustDate:function(t,i,s){t=e(t);var n=this._getInst(t[0]);this._isDisabledDatepicker(t[0])||(this._adjustInstDate(n,i,s),this._updateDatepicker(n))},_gotoToday:function(t){t=e(t);var i,s=this._getInst(t[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(t)},_selectMonthYear:function(t,i,s){t=e(t);var n=this._getInst(t[0]);n["selected"+("M"===s?"Month":"Year")]=n["draw"+("M"===s?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(n),this._adjustDate(t)},_selectDay:function(t,i,s,n){var a=e(t);e(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((a=this._getInst(a[0])).selectedDay=a.currentDay=parseInt(e("a",n).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=s,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){t=e(t),this._selectDate(t,"")},_selectDate:function(t,i){var s;t=e(t),t=this._getInst(t[0]);i=null!=i?i:this._formatDate(t),t.input&&t.input.val(i),this._updateAlternate(t),(s=this._get(t,"onSelect"))?s.apply(t.input?t.input[0]:null,[i,t]):t.input&&t.input.trigger("change"),t.inline?this._updateDatepicker(t):(this._hideDatepicker(),this._lastInput=t.input[0],"object"!=typeof t.input[0]&&t.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,s,n=this._get(t,"altField");n&&(s=this._get(t,"altFormat")||this._get(t,"dateFormat"),i=this._getDate(t),s=this.formatDate(s,i,this._getFormatConfig(t)),e(document).find(n).val(s))},noWeekends:function(e){return[0<(e=e.getDay())&&e<6,""]},iso8601Week:function(e){var t;return(e=new Date(e.getTime())).setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(t,i,s){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;for(var n,a,r=0,o="string"!=typeof(o=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff)?o:(new Date).getFullYear()%100+parseInt(o,10),l=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,c=(s?s.dayNames:null)||this._defaults.dayNames,d=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,u=(s?s.monthNames:null)||this._defaults.monthNames,h=-1,p=-1,f=-1,m=-1,g=!1,v=function(e){return(e=_+1<t.length&&t.charAt(_+1)===e)&&_++,e},b=function(e){var t=v(e);t="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,e=new RegExp("^\\d{"+("y"===e?t:1)+","+t+"}");if(t=i.substring(r).match(e))return r+=t[0].length,parseInt(t[0],10);throw"Missing number at position "+r},y=function(t,s,n){var a=-1;t=e.map(v(t)?n:s,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(t,function(e,t){var s=t[1];if(i.substr(r,s.length).toLowerCase()===s.toLowerCase())return a=t[0],r+=s.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+r},w=function(){if(i.charAt(r)!==t.charAt(_))throw"Unexpected literal at position "+r;r++},_=0;_<t.length;_++)if(g)"'"!==t.charAt(_)||v("'")?w():g=!1;else switch(t.charAt(_)){case"d":f=b("d");break;case"D":y("D",l,c);break;case"o":m=b("o");break;case"m":p=b("m");break;case"M":p=y("M",d,u);break;case"y":h=b("y");break;case"@":h=(a=new Date(b("@"))).getFullYear(),p=a.getMonth()+1,f=a.getDate();break;case"!":h=(a=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),p=a.getMonth()+1,f=a.getDate();break;case"'":v("'")?w():g=!0;break;default:w()}if(r<i.length&&(s=i.substr(r),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===h?h=(new Date).getFullYear():h<100&&(h+=(new Date).getFullYear()-(new Date).getFullYear()%100+(h<=o?0:-100)),-1<m)for(p=1,f=m;!(f<=(n=this._getDaysInMonth(h,p-1)));)p++,f-=n;if((a=this._daylightSavingAdjust(new Date(h,p-1,f))).getFullYear()!==h||a.getMonth()+1!==p||a.getDate()!==f)throw"Invalid date";return a},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";function s(e,t,i){var s=""+t;if(d(e))for(;s.length<i;)s="0"+s;return s}function n(e,t,i,s){return(d(e)?s:i)[t]}var a,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,c=(i?i.monthNames:null)||this._defaults.monthNames,d=function(t){return(t=a+1<e.length&&e.charAt(a+1)===t)&&a++,t},u="",h=!1;if(t)for(a=0;a<e.length;a++)if(h)"'"!==e.charAt(a)||d("'")?u+=e.charAt(a):h=!1;else switch(e.charAt(a)){case"d":u+=s("d",t.getDate(),2);break;case"D":u+=n("D",t.getDay(),r,o);break;case"o":u+=s("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=s("m",t.getMonth()+1,2);break;case"M":u+=n("M",t.getMonth(),l,c);break;case"y":u+=d("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":d("'")?u+="'":h=!0;break;default:u+=e.charAt(a)}return u},_possibleChars:function(e){for(var t="",i=!1,s=function(t){return(t=n+1<e.length&&e.charAt(n+1)===t)&&n++,t},n=0;n<e.length;n++)if(i)"'"!==e.charAt(n)||s("'")?t+=e.charAt(n):i=!1;else switch(e.charAt(n)){case"d":case"m":case"y":case"@":t+="0123456789";break;case"D":case"M":return null;case"'":s("'")?t+="'":i=!0;break;default:t+=e.charAt(n)}return t},_get:function(e,t){return(void 0!==e.settings[t]?e.settings:this._defaults)[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),s=e.lastVal=e.input?e.input.val():null,n=this._getDefaultDate(e),a=n,r=this._getFormatConfig(e);try{a=this.parseDate(i,s,r)||n}catch(e){s=t?"":s}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=s?a.getDate():0,e.currentMonth=s?a.getMonth():0,e.currentYear=s?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,s){var n,a=null==i||""===i?s:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(i){}for(var s=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,n=s.getFullYear(),a=s.getMonth(),r=s.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(n,a));break;case"y":case"Y":n+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(n,a))}l=o.exec(i)}return new Date(n,a,r)}(i):"number"==typeof i?isNaN(i)?s:(a=i,(n=new Date).setDate(n.getDate()+a),n):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?s:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var s=!t,n=e.selectedMonth,a=e.selectedYear;t=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=t.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=t.getMonth(),e.drawYear=e.selectedYear=e.currentYear=t.getFullYear(),n===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(s?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),s="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(s,-i,"M")},next:function(){e.datepicker._adjustDate(s,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(s)},selectDay:function(){return e.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(s,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,s,n,a,r,o,l,c,d,u,h,p,f,m,g,v,b,y,w,_,x,k,S,C,$,T,E,D,M,I,P,A,L=new Date,N=this._daylightSavingAdjust(new Date(L.getFullYear(),L.getMonth(),L.getDate())),z=this._get(t,"isRTL"),O=(L=this._get(t,"showButtonPanel"),this._get(t,"hideIfNoPrevNext")),R=this._get(t,"navigationAsDateFormat"),j=this._getNumberOfMonths(t),B=this._get(t,"showCurrentAtPos"),H=this._get(t,"stepMonths"),F=1!==j[0]||1!==j[1],W=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),U=this._getMinMaxDate(t,"min"),Y=this._getMinMaxDate(t,"max"),q=t.drawMonth-B,V=t.drawYear;if(q<0&&(q+=12,V--),Y)for(i=this._daylightSavingAdjust(new Date(Y.getFullYear(),Y.getMonth()-j[0]*j[1]+1,Y.getDate())),i=U&&i<U?U:i;this._daylightSavingAdjust(new Date(V,q,1))>i;)--q<0&&(q=11,V--);for(t.drawMonth=q,t.drawYear=V,B=this._get(t,"prevText"),B=R?this.formatDate(B,this._daylightSavingAdjust(new Date(V,q-H,1)),this._getFormatConfig(t)):B,s=this._canAdjustMonth(t,-1,V,q)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(z?"e":"w")).text(B))[0].outerHTML:O?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(z?"e":"w")).text(B))[0].outerHTML,B=this._get(t,"nextText"),B=R?this.formatDate(B,this._daylightSavingAdjust(new Date(V,q+H,1)),this._getFormatConfig(t)):B,n=this._canAdjustMonth(t,1,V,q)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:B}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(z?"w":"e")).text(B))[0].outerHTML:O?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:B}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(z?"w":"e")).text(B))[0].outerHTML,H=this._get(t,"currentText"),O=this._get(t,"gotoCurrent")&&t.currentDay?W:N,H=R?this.formatDate(H,O,this._getFormatConfig(t)):H,B="",t.inline||(B=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),R="",L&&(R=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(z?B:"").append(this._isInRange(t,O)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(H):"").append(z?"":B)[0].outerHTML),a=parseInt(this._get(t,"firstDay"),10),a=isNaN(a)?0:a,r=this._get(t,"showWeek"),o=this._get(t,"dayNames"),l=this._get(t,"dayNamesMin"),c=this._get(t,"monthNames"),d=this._get(t,"monthNamesShort"),u=this._get(t,"beforeShowDay"),h=this._get(t,"showOtherMonths"),p=this._get(t,"selectOtherMonths"),f=this._getDefaultDate(t),m="",v=0;v<j[0];v++){for(b="",this.maxRows=4,y=0;y<j[1];y++){if(w=this._daylightSavingAdjust(new Date(V,q,t.selectedDay)),_=" ui-corner-all",x="",F){if(x+="<div class='ui-datepicker-group",1<j[1])switch(y){case 0:x+=" ui-datepicker-group-first",_=" ui-corner-"+(z?"right":"left");break;case j[1]-1:x+=" ui-datepicker-group-last",_=" ui-corner-"+(z?"left":"right");break;default:x+=" ui-datepicker-group-middle",_=""}x+="'>"}for(x+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+_+"'>"+(/all|left/.test(_)&&0===v?z?n:s:"")+(/all|right/.test(_)&&0===v?z?s:n:"")+this._generateMonthYearHeader(t,q,V,U,Y,0<v||0<y,c,d)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",g=0;g<7;g++)k+="<th scope='col'"+(5<=(g+a+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+o[S=(g+a)%7]+"'>"+l[S]+"</span></th>";for(x+=k+"</tr></thead><tbody>",$=this._getDaysInMonth(V,q),V===t.selectedYear&&q===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,$)),C=(this._getFirstDayOfMonth(V,q)-a+7)%7,$=Math.ceil((C+$)/7),T=F&&this.maxRows>$?this.maxRows:$,this.maxRows=T,E=this._daylightSavingAdjust(new Date(V,q,1-C)),D=0;D<T;D++){for(x+="<tr>",M=r?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(E)+"</td>":"",g=0;g<7;g++)I=u?u.apply(t.input?t.input[0]:null,[E]):[!0,""],A=(P=E.getMonth()!==q)&&!p||!I[0]||U&&E<U||Y&&Y<E,M+="<td class='"+(5<=(g+a+6)%7?" ui-datepicker-week-end":"")+(P?" ui-datepicker-other-month":"")+(E.getTime()===w.getTime()&&q===t.selectedMonth&&t._keyEvent||f.getTime()===E.getTime()&&f.getTime()===w.getTime()?" "+this._dayOverClass:"")+(A?" "+this._unselectableClass+" ui-state-disabled":"")+(P&&!h?"":" "+I[1]+(E.getTime()===W.getTime()?" "+this._currentClass:"")+(E.getTime()===N.getTime()?" ui-datepicker-today":""))+"'"+(P&&!h||!I[2]?"":" title='"+I[2].replace(/'/g,"&#39;")+"'")+(A?"":" data-handler='selectDay' data-event='click' data-month='"+E.getMonth()+"' data-year='"+E.getFullYear()+"'")+">"+(P&&!h?"&#xa0;":A?"<span class='ui-state-default'>"+E.getDate()+"</span>":"<a class='ui-state-default"+(E.getTime()===N.getTime()?" ui-state-highlight":"")+(E.getTime()===W.getTime()?" ui-state-active":"")+(P?" ui-priority-secondary":"")+"' href='#' aria-current='"+(E.getTime()===W.getTime()?"true":"false")+"' data-date='"+E.getDate()+"'>"+E.getDate()+"</a>")+"</td>",E.setDate(E.getDate()+1),E=this._daylightSavingAdjust(E);x+=M+"</tr>"}11<++q&&(q=0,V++),b+=x+="</tbody></table>"+(F?"</div>"+(0<j[0]&&y===j[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}m+=b}return m+=R,t._keyEvent=!1,m},_generateMonthYearHeader:function(e,t,i,s,n,a,r,o){var l,c,d,u,h,p,f=this._get(e,"changeMonth"),m=this._get(e,"changeYear"),g=this._get(e,"showMonthAfterYear"),v=this._get(e,"selectMonthLabel"),b=this._get(e,"selectYearLabel"),y="<div class='ui-datepicker-title'>",w="";if(a||!f)w+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=s&&s.getFullYear()===i,c=n&&n.getFullYear()===i,w+="<select class='ui-datepicker-month' aria-label='"+v+"' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=s.getMonth())&&(!c||d<=n.getMonth())&&(w+="<option value='"+d+"'"+(d===t?" selected='selected'":"")+">"+o[d]+"</option>");w+="</select>"}if(g||(y+=w+(!a&&f&&m?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!m)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(e,"yearRange").split(":"),u=(new Date).getFullYear(),h=(v=function(e){return e=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?u+parseInt(e,10):parseInt(e,10),isNaN(e)?u:e})(r[0]),p=Math.max(h,v(r[1]||"")),h=s?Math.max(h,s.getFullYear()):h,p=n?Math.min(p,n.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+b+"' data-handler='selectYear' data-event='change'>";h<=p;h++)e.yearshtml+="<option value='"+h+"'"+(h===i?" selected='selected'":"")+">"+h+"</option>";e.yearshtml+="</select>",y+=e.yearshtml,e.yearshtml=null}return y+=this._get(e,"yearSuffix"),g&&(y+=(!a&&f&&m?"":"&#xa0;")+w),y+"</div>"},_adjustInstDate:function(e,t,i){var s=e.selectedYear+("Y"===i?t:0),n=e.selectedMonth+("M"===i?t:0);t=Math.min(e.selectedDay,this._getDaysInMonth(s,n))+("D"===i?t:0),s=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(s,n,t)));e.selectedDay=s.getDate(),e.drawMonth=e.selectedMonth=s.getMonth(),e.drawYear=e.selectedYear=s.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=(i=this._getMinMaxDate(e,"min"))&&t<i?i:t;return(e=this._getMinMaxDate(e,"max"))&&e<i?e:i},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){return null==(e=this._get(e,"numberOfMonths"))?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,s){var n=this._getNumberOfMonths(e);i=this._daylightSavingAdjust(new Date(i,s+(t<0?t:n[0]*n[1]),1));return t<0&&i.setDate(this._getDaysInMonth(i.getFullYear(),i.getMonth())),this._isInRange(e,i)},_isInRange:function(e,t){var i,s=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),a=null,r=null;return(e=this._get(e,"yearRange"))&&(e=e.split(":"),i=(new Date).getFullYear(),a=parseInt(e[0],10),r=parseInt(e[1],10),e[0].match(/[+\-].*/)&&(a+=i),e[1].match(/[+\-].*/))&&(r+=i),(!s||t.getTime()>=s.getTime())&&(!n||t.getTime()<=n.getTime())&&(!a||t.getFullYear()>=a)&&(!r||t.getFullYear()<=r)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:"string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,s){return t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear),s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(s,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay)),this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})},e.datepicker=new u,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.14.0",e.widget("ui.slider",e.ui.mouse,{version:"1.14.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i=this.options,s=this.element.find(".ui-slider-handle"),n=[],a=i.values&&i.values.length||1;for(s.length>a&&(s.slice(a).remove(),s=s.slice(0,a)),t=s.length;t<a;t++)n.push("<span tabindex='0'></span>");this.handles=s.add(e(n.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)})},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,s,n,a,r,o,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),r={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(r),s=this._valueMax()-this._valueMin()+1,this.handles.each(function(t){var r=Math.abs(i-l.values(t));(r<s||s===r&&(t===l._lastChangedValue||l.values(t)===c.min))&&(s=r,n=e(this),a=t)}),!1!==this._start(t,a))&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(n,null,"ui-state-active"),n.trigger("focus"),r=n.offset(),o=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=o?{left:0,top:0}:{left:t.pageX-r.left-n.width()/2,top:t.pageY-r.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,a,i),this._animateOff=!0)},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY};t=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,t),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t;return(e=1<(e=(e="horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/t)?1:e)<0&&(e=0),"vertical"===this.orientation&&(e=1-e),t=this._valueMax()-this._valueMin(),e=this._valueMin()+e*t,this._trimAlignValue(e)},_uiHash:function(e,t,i){var s={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(s.value=void 0!==t?t:this.values(e),s.values=i||this.values()),s},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var s,n=this.value(),a=this.values();this._hasMultipleValues()&&(s=this.values(t?0:1),n=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(s,i):Math.max(s,i)),a[t]=i),i!==n&&!1!==this._trigger("slide",e,this._uiHash(t,i,a))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){if(!arguments.length)return this._value();this.options.value=this._trimAlignValue(e),this._refreshValue(),this._change(null,0)},values:function(e,t){var i,s,n;if(1<arguments.length)this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),this._change(null,e);else{if(!arguments.length)return this._values();if(!Array.isArray(e))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,s=e,n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(s[n]),this._change(null,n);this._refreshValue()}},_setOption:function(e,t){var i,s=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(s=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=s-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i;if(arguments.length)return e=this.options.values[e],this._trimAlignValue(e);if(this._hasMultipleValues()){for(t=this.options.values.slice(),i=0;i<t.length;i+=1)t[i]=this._trimAlignValue(t[i]);return t}return[]},_trimAlignValue:function(e){var t,i;return e<=this._valueMin()?this._valueMin():e>=this._valueMax()?this._valueMax():(t=0<this.options.step?this.options.step:1,i=e-(e=(e-this._valueMin())%t),2*Math.abs(e)>=t&&(i+=0<e?t:-t),parseFloat(i.toFixed(5)))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(e,this._precisionOf(this.options.min)):e},_precisionOf:function(e){var t=(e=e.toString()).indexOf(".");return-1===t?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,s,n,a,r=this.options.range,o=this.options,l=this,c=!this._animateOff&&o.animate,d={};this._hasMultipleValues()?this.handles.each(function(s){i=(l.values(s)-l._valueMin())/(l._valueMax()-l._valueMin())*100,d["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](d,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===s&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},o.animate),1===s&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===s&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},o.animate),1===s&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i}):(s=this.value(),n=this._valueMin(),a=this._valueMax(),i=a!==n?(s-n)/(a-n)*100:0,d["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](d,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},o.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},o.animate))},_handleEvents:{keydown:function(t){var i,s,n,a=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),this._keySliding||(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1!==this._start(t,a)))break;return}switch(n=this.options.step,i=s=this._hasMultipleValues()?this.values(a):this.value(),t.keyCode){case e.ui.keyCode.HOME:s=this._valueMin();break;case e.ui.keyCode.END:s=this._valueMax();break;case e.ui.keyCode.PAGE_UP:s=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:s=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;s=this._trimAlignValue(i+n);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;s=this._trimAlignValue(i-n)}this._slide(t,a,s)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.tabs",{version:"1.14.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(a=/#.*$/,function(e){var t=e.href.replace(a,""),i=location.href.replace(a,"");try{t=decodeURIComponent(t)}catch(e){}try{i=decodeURIComponent(i)}catch(e){}return 1<e.hash.length&&t===i}),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),Array.isArray(i.disabled)&&(i.disabled=e.uniqueSort(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,s=location.hash.substring(1);return null===t&&(s&&this.tabs.each(function(i,n){if(e(n).attr("aria-controls")===s)return t=i,!1}),null!==(t=null===t?this.tabs.index(this.tabs.filter(".ui-tabs-active")):t)&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),t=!i&&!1===t&&this.anchors.length?0:t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(this.document[0].activeElement).closest("li"),s=this.tabs.index(i),n=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:s++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:n=!1,s--;break;case e.ui.keyCode.END:s=this.anchors.length-1;break;case e.ui.keyCode.HOME:s=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(s!==this.options.active&&s);default:return}t.preventDefault(),clearTimeout(this.activating),s=this._focusNextTab(s,n),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(s).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",s)},this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){for(var s=this.tabs.length-1;-1!==e.inArray(t=(t=s<t?0:t)<0?s:t,this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"===e?this._activate(t):(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),function(e){return i.index(e)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,s=this.anchors,n=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return e("a",this)[0]}).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each(function(i,s){var n,a,r,o=e(s).uniqueId().attr("id"),l=e(s).closest("li"),c=l.attr("aria-controls");t._isLocal(s)?(r=(n=s.hash).substring(1),a=t.element.find(t._sanitizeSelector(n))):(r=l.attr("aria-controls")||e({}).uniqueId()[0].id,(a=t.element.find(n="#"+r)).length||(a=t._createPanel(r)).insertAfter(t.panels[i-1]||t.tablist),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":o}),a.attr("aria-labelledby",o)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(s.not(this.anchors)),this._off(n.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,s;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;i=this.tabs[s];s++)i=e(i),!0===t||-1!==e.inArray(s,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,s=this.element.parent();"fill"===t?(i=s.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=e(this),s=t.css("position");"absolute"!==s&&"fixed"!==s&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=e(this).outerHeight(!0)}),this.panels.each(function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,e(this).height("").height())}).height(i))},_eventHandler:function(t){var i=this.options,s=this.active,n=e(t.currentTarget).closest("li"),a=n[0]===s[0],r=a&&i.collapsible,o=r?e():this._getPanelForTab(n),l=s.length?this._getPanelForTab(s):e();s={oldTab:s,oldPanel:l,newTab:r?e():n,newPanel:o};t.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||!1===this._trigger("beforeActivate",t,s)||(i.active=!r&&this.tabs.index(n),this.active=a?e():n,this.xhr&&this.xhr.abort(),l.length||o.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(n),t),this._toggle(t,s))},_toggle:function(t,i){var s=this,n=i.newPanel,a=i.oldPanel;function r(){s.running=!1,s._trigger("activate",t,i)}function o(){s._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),n.length&&s.options.show?s._show(n,s.options.show,r):(n.show(),r())}this.running=!0,a.length&&this.options.hide?this._hide(a,this.options.hide,function(){s._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a.hide(),o()),a.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),n.length&&a.length?i.oldTab.attr("tabIndex",-1):n.length&&this.tabs.filter(function(){return 0===e(this).attr("tabIndex")}).attr("tabIndex",-1),n.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){(t=this._findActive(t))[0]!==this.active[0]&&(t=(t=t.length?t:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(e){return"string"==typeof e?this.anchors.index(this.anchors.filter("[href$='"+CSS.escape(e)+"']")):e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(i=void 0!==t&&(t=this._getIndex(t),Array.isArray(i)?e.map(i,function(e){return e!==t?e:null}):e.map(this.tabs,function(e,i){return i!==t?i:null})),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=Array.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){function s(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(a,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr}t=this._getIndex(t);var n=this,a=this.tabs.eq(t),r=(t=a.find(".ui-tabs-anchor"),this._getPanelForTab(a)),o={tab:a,panel:r};this._isLocal(t[0])||(this.xhr=e.ajax(this._ajaxSettings(t,i,o)),"canceled"!==this.xhr.statusText&&(this._addClass(a,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(e,t,a){r.html(e),n._trigger("load",i,o),s(a,t)}).fail(function(e,t){s(e,t)})))},_ajaxSettings:function(t,i,s){var n=this;return{url:t.attr("href"),beforeSend:function(t,a){return n._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},s))}}},_getPanelForTab:function(t){return t=e(t).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+t))}}),!0===e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs}),function(e){e.fn.hoverIntent=function(t,i,s){var n,a,r,o,l={interval:100,sensitivity:6,timeout:0};l="object"==typeof t?e.extend(l,t):e.isFunction(i)?e.extend(l,{over:t,out:i,selector:s}):e.extend(l,{over:t,out:t,selector:i});var c=function(e){n=e.pageX,a=e.pageY},d=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.sqrt((r-n)*(r-n)+(o-a)*(o-a))<l.sensitivity)return e(i).off("mousemove.hoverIntent",c),i.hoverIntent_s=!0,l.over.apply(i,[t]);r=n,o=a,i.hoverIntent_t=setTimeout(function(){d(t,i)},l.interval)},u=function(t){var i=e.extend({},t),s=this;s.hoverIntent_t&&(s.hoverIntent_t=clearTimeout(s.hoverIntent_t)),"mouseenter"===t.type?(r=i.pageX,o=i.pageY,e(s).on("mousemove.hoverIntent",c),s.hoverIntent_s||(s.hoverIntent_t=setTimeout(function(){d(i,s)},l.interval))):(e(s).off("mousemove.hoverIntent",c),s.hoverIntent_s&&(s.hoverIntent_t=setTimeout(function(){!function(e,t){t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=!1,l.out.apply(t,[e])}(i,s)},l.timeout)))};return this.on({"mouseenter.hoverIntent":u,"mouseleave.hoverIntent":u},l.selector)}}(jQuery),function(e,t){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",t):"object"==typeof module&&module.exports?module.exports=t():e.EvEmitter=t()}("undefined"!=typeof window?window:this,function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},s=i[e]=i[e]||[];return-1==s.indexOf(t)&&s.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var s=i.indexOf(t);return-1!=s&&i.splice(s,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var s=this._onceEvents&&this._onceEvents[e],n=0;n<i.length;n++){var a=i[n];s&&s[a]&&(this.off(e,a),delete s[a]),a.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e}),function(e,t){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(i){return t(e,i)}):"object"==typeof module&&module.exports?module.exports=t(e,require("ev-emitter")):e.imagesLoaded=t(e,e.EvEmitter)}("undefined"!=typeof window?window:this,function(e,t){function i(e,t){for(var i in t)e[i]=t[i];return e}function s(e,t,n){if(!(this instanceof s))return new s(e,t,n);var a=e;return"string"==typeof e&&(a=document.querySelectorAll(e)),a?(this.elements=function(e){return Array.isArray(e)?e:"object"==typeof e&&"number"==typeof e.length?l.call(e):[e]}(a),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),r&&(this.jqDeferred=new r.Deferred),void setTimeout(this.check.bind(this))):void o.error("Bad element for imagesLoaded "+(a||e))}function n(e){this.img=e}function a(e,t){this.url=e,this.element=t,this.img=new Image}var r=e.jQuery,o=e.console,l=Array.prototype.slice;s.prototype=Object.create(t.prototype),s.prototype.options={},s.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},s.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&c[t]){for(var i=e.querySelectorAll("img"),s=0;s<i.length;s++){var n=i[s];this.addImage(n)}if("string"==typeof this.options.background){var a=e.querySelectorAll(this.options.background);for(s=0;s<a.length;s++){var r=a[s];this.addElementBackgroundImages(r)}}}};var c={1:!0,9:!0,11:!0};return s.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,s=i.exec(t.backgroundImage);null!==s;){var n=s&&s[2];n&&this.addBackground(n,e),s=i.exec(t.backgroundImage)}},s.prototype.addImage=function(e){var t=new n(e);this.images.push(t)},s.prototype.addBackground=function(e,t){var i=new a(e,t);this.images.push(i)},s.prototype.check=function(){function e(e,i,s){setTimeout(function(){t.progress(e,i,s)})}var t=this;return this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?void this.images.forEach(function(t){t.once("progress",e),t.check()}):void this.complete()},s.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&o&&o.log("progress: "+i,e,t)},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},n.prototype=Object.create(t.prototype),n.prototype.check=function(){return this.getIsImageComplete()?void this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),void(this.proxyImage.src=this.img.src))},n.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},n.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},n.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},n.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},n.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},n.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype=Object.create(n.prototype),a.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},a.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},a.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},s.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((r=t).fn.imagesLoaded=function(e,t){return new s(this,e,t).jqDeferred.promise(r(this))})},s.makeJQueryPlugin(),s}),function(e){function t(e,t){if(!(e.originalEvent.touches.length>1)){e.preventDefault();var i=e.originalEvent.changedTouches[0],s=document.createEvent("MouseEvents");s.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(s)}}if(e.support.touch="ontouchend"in document,e.support.touch){var i,s=e.ui.mouse.prototype,n=s._mouseInit,a=s._mouseDestroy;s._touchStart=function(e){!i&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(i=!0,this._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"))},s._touchMove=function(e){i&&(this._touchMoved=!0,t(e,"mousemove"))},s._touchEnd=function(e){i&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),i=!1)},s._mouseInit=function(){var t=this;t.element.bind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),n.call(t)},s._mouseDestroy=function(){var t=this;t.element.unbind({touchstart:e.proxy(t,"_touchStart"),touchmove:e.proxy(t,"_touchMove"),touchend:e.proxy(t,"_touchEnd")}),a.call(t)}}}(jQuery);var js_unicoderegex=function(){var e={Pi:"[«‘‛“‟‹⸂⸄⸉⸌⸜]",Sk:"[^`¨¯´¸˂-˅˒-˟˥-˭˯-˿ʹ͵΄΅᾽᾿-῁῍-῏῝-῟῭-`´῾゛゜꜀-꜖꜠꜡^` ̄]",Sm:"[+<->|~¬±×÷϶⁄⁒⁺-⁼₊-₌⅀-⅄⅋←-↔↚↛↠↣↦↮⇎⇏⇒⇔⇴-⋿⌈-⌋⌠⌡⍼⎛-⎳⏜-⏡▷◁◸-◿♯⟀-⟄⟇-⟊⟐-⟥⟰-⟿⤀-⦂⦙-⧗⧜-⧻⧾-⫿﬩﹢﹤-﹦+<->|~¬←-↓]",So:"[¦§©®°¶҂؎؏۩۽۾߶৺୰௳-௸௺ೱೲ༁-༃༓-༗༚-༟༴༶༸྾-࿅࿇-࿌࿏፠᎐-᎙᥀᧠-᧿᭡-᭪᭴-᭼℀℁℃-℆℈℉℔№-℘℞-℣℥℧℩℮℺℻⅊⅌⅍↕-↙↜-↟↡↢↤↥↧-↭↯-⇍⇐⇑⇓⇕-⇳⌀-⌇⌌-⌟⌢-⌨⌫-⍻⍽-⎚⎴-⏛⏢-⏧␀-␦⑀-⑊⒜-ⓩ─-▶▸-◀◂-◷☀-♮♰-⚜⚠-⚲✁-✄✆-✉✌-✧✩-❋❍❏-❒❖❘-❞❡-❧➔➘-➯➱-➾⠀-⣿⬀-⬚⬠-⬣⳥-⳪⺀-⺙⺛-⻳⼀-⿕⿰-⿻〄〒〓〠〶〷〾〿㆐㆑㆖-㆟㇀-㇏㈀-㈞㈪-㉃㉐㉠-㉿㊊-㊰㋀-㋾㌀-㏿䷀-䷿꒐-꓆꠨-꠫﷽¦│■○�]",Po:"[!-#%-'*,./:;?@\\¡·¿;·՚-՟։־׀׃׆׳״،؍؛؞؟٪-٭۔܀-܍߷-߹।॥॰෴๏๚๛༄-༒྅࿐࿑၊-၏჻፡-፨᙭᙮᛫-᛭᜵᜶។-៖៘-៚᠀-᠅᠇-᠊᥄᥅᧞᧟᨞᨟᭚-᭠‖‗†-‧‰-‸※-‾⁁-⁃⁇-⁑⁓⁕-⁞⳹-⳼⳾⳿⸀⸁⸆-⸈⸋⸎-⸖、-〃〽・꡴-꡷︐-︖︙︰﹅﹆﹉-﹌﹐-﹒﹔-﹗﹟-﹡﹨﹪﹫!-#%-'*,./:;?@\。、・]",Mn:"[̀-ͯ҃-֑҆-ׇֽֿׁׂׅׄؐ-ًؕ-ٰٞۖ-ۜ۟-۪ۤۧۨ-ܑۭܰ-݊ަ-ް߫-߳ँं़ु-ै्॑-॔ॢॣঁ়ু-ৄ্ৢৣਁਂ਼ੁੂੇੈੋ-੍ੰੱઁં઼ુ-ૅેૈ્ૢૣଁ଼ିୁ-ୃ୍ୖஂீ்ా-ీె-ైొ-಼్ౕౖಿೆೌ್ೢೣു-ൃ്්ි-ුූัิ-ฺ็-๎ັິ-ູົຼ່-ໍཱ༹༘༙༵༷-ཾྀ-྄྆྇ྐ-ྗྙ-ྼ࿆ိ-ူဲံ့္ၘၙ፟ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧᤨᤲ᤹-᤻ᨘᨗᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳᷀-᷊᷿᷾⃐-⃥⃜⃡-〪⃯-゙゚꠆〯ꠋꠥꠦﬞ︀-️︠-︣]",Ps:"[([{༺༼᚛‚„⁅⁽₍〈❨❪❬❮❰❲❴⟅⟦⟨⟪⦃⦅⦇⦉⦋⦍⦏⦑⦓⦕⦗⧘⧚⧼〈《「『【〔〖〘〚〝﴾︗︵︷︹︻︽︿﹁﹃﹇﹙﹛﹝([{⦅「]",Cc:"[\0--Ÿ]",Cf:"[­؀-؃۝܏឴឵​-‏‪-‮⁠-⁣-\ufeff-]",Ll:"[a-zªµºß-öø-ÿāăąćĉċčďđēĕėęěĝğġģĥħĩīĭįıijĵķĸĺļľŀłńņňʼnŋōŏőœŕŗřśŝşšţťŧũūŭůűųŵŷźżž-ƀƃƅƈƌƍƒƕƙ-ƛƞơƣƥƨƪƫƭưƴƶƹƺƽ-ƿdžljnjǎǐǒǔǖǘǚǜǝǟǡǣǥǧǩǫǭǯǰdzǵǹǻǽǿȁȃȅȇȉȋȍȏȑȓȕȗșțȝȟȡȣȥȧȩȫȭȯȱȳ-ȹȼȿɀɂɇɉɋɍɏ-ʓʕ-ʯͻ-ͽΐά-ώϐϑϕ-ϗϙϛϝϟϡϣϥϧϩϫϭϯ-ϳϵϸϻϼа-џѡѣѥѧѩѫѭѯѱѳѵѷѹѻѽѿҁҋҍҏґғҕҗҙқҝҟҡңҥҧҩҫҭүұҳҵҷҹһҽҿӂӄӆӈӊӌӎӏӑӓӕӗәӛӝӟӡӣӥӧөӫӭӯӱӳӵӷӹӻӽӿԁԃԅԇԉԋԍԏԑԓա-ևᴀ-ᴫᵢ-ᵷᵹ-ᶚḁḃḅḇḉḋḍḏḑḓḕḗḙḛḝḟḡḣḥḧḩḫḭḯḱḳḵḷḹḻḽḿṁṃṅṇṉṋṍṏṑṓṕṗṙṛṝṟṡṣṥṧṩṫṭṯṱṳṵṷṹṻṽṿẁẃẅẇẉẋẍẏẑẓẕ-ẛạảấầẩẫậắằẳẵặẹẻẽếềểễệỉịọỏốồổỗộớờởỡợụủứừửữựỳỵỷỹἀ-ἇἐ-ἕἠ-ἧἰ-ἷὀ-ὅὐ-ὗὠ-ὧὰ-ώᾀ-ᾇᾐ-ᾗᾠ-ᾧᾰ-ᾴᾶᾷιῂ-ῄῆῇῐ-ΐῖῗῠ-ῧῲ-ῴῶῷⁱⁿℊℎℏℓℯℴℹℼℽⅆ-ⅉⅎↄⰰ-ⱞⱡⱥⱦⱨⱪⱬⱴⱶⱷⲁⲃⲅⲇⲉⲋⲍⲏⲑⲓⲕⲗⲙⲛⲝⲟⲡⲣⲥⲧⲩⲫⲭⲯⲱⲳⲵⲷⲹⲻⲽⲿⳁⳃⳅⳇⳉⳋⳍⳏⳑⳓⳕⳗⳙⳛⳝⳟⳡⳣⳤⴀ-ⴥff-stﬓ-ﬗa-z]",Lm:"[ʰ-ˁˆ-ˑˠ-ˤˮͺՙـۥۦߴߵߺๆໆჼៗᡃᴬ-ᵡᵸᶛ-ᶿₐ-ₔⵯ々〱-〵〻ゝゞー-ヾꀕꜗ-ꜚー゙゚]",Lo:"[ƻǀ-ǃʔא-תװ-ײء-غف-يٮٯٱ-ۓەۮۯۺ-ۼۿܐܒ-ܯݍ-ݭހ-ޥޱߊ-ߪऄ-हऽॐक़-ॡॻ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹఅ-ఌఎ-ఐఒ-నప-ళవ-హౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡഅ-ഌഎ-ഐഒ-നപ-ഹൠൡඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๅກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໜໝༀཀ-ཇཉ-ཪྈ-ྋက-အဣ-ဧဩဪၐ-ၕა-ჺᄀ-ᅙᅟ-ᆢᆨ-ᇹሀ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙶᚁ-ᚚᚠ-ᛪᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៜᠠ-ᡂᡄ-ᡷᢀ-ᢨᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦩᧁ-ᧇᨀ-ᨖᬅ-ᬳᭅ-ᭋℵ-ℸⴰ-ⵥⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ〆〼ぁ-ゖゟァ-ヺヿㄅ-ㄬㄱ-ㆎㆠ-ㆷㇰ-ㇿ㐀䶵一龻ꀀ-ꀔꀖ-ꒌꠀꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳ가힣豈-鶴侮-頻並-龎יִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼヲ-ッア-ンᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ]",Co:"[]",Nd:"[0-9٠-٩۰-۹߀-߉०-९০-৯੦-੯૦-૯୦-୯௦-௯౦-౯೦-೯൦-൯๐-๙໐-໙༠-༩၀-၉០-៩᠐-᠙᥆-᥏᧐-᧙᭐-᭙0-9]",Lt:"[DžLjNjDzᾈ-ᾏᾘ-ᾟᾨ-ᾯᾼῌῼ]",Lu:"[A-ZÀ-ÖØ-ÞĀĂĄĆĈĊČĎĐĒĔĖĘĚĜĞĠĢĤĦĨĪĬĮİIJĴĶĹĻĽĿŁŃŅŇŊŌŎŐŒŔŖŘŚŜŞŠŢŤŦŨŪŬŮŰŲŴŶŸŹŻŽƁƂƄƆƇƉ-ƋƎ-ƑƓƔƖ-ƘƜƝƟƠƢƤƦƧƩƬƮƯƱ-ƳƵƷƸƼDŽLJNJǍǏǑǓǕǗǙǛǞǠǢǤǦǨǪǬǮDZǴǶ-ǸǺǼǾȀȂȄȆȈȊȌȎȐȒȔȖȘȚȜȞȠȢȤȦȨȪȬȮȰȲȺȻȽȾɁɃ-ɆɈɊɌɎΆΈ-ΊΌΎΏΑ-ΡΣ-Ϋϒ-ϔϘϚϜϞϠϢϤϦϨϪϬϮϴϷϹϺϽ-ЯѠѢѤѦѨѪѬѮѰѲѴѶѸѺѼѾҀҊҌҎҐҒҔҖҘҚҜҞҠҢҤҦҨҪҬҮҰҲҴҶҸҺҼҾӀӁӃӅӇӉӋӍӐӒӔӖӘӚӜӞӠӢӤӦӨӪӬӮӰӲӴӶӸӺӼӾԀԂԄԆԈԊԌԎԐԒԱ-ՖႠ-ჅḀḂḄḆḈḊḌḎḐḒḔḖḘḚḜḞḠḢḤḦḨḪḬḮḰḲḴḶḸḺḼḾṀṂṄṆṈṊṌṎṐṒṔṖṘṚṜṞṠṢṤṦṨṪṬṮṰṲṴṶṸṺṼṾẀẂẄẆẈẊẌẎẐẒẔẠẢẤẦẨẪẬẮẰẲẴẶẸẺẼẾỀỂỄỆỈỊỌỎỐỒỔỖỘỚỜỞỠỢỤỦỨỪỬỮỰỲỴỶỸἈ-ἏἘ-ἝἨ-ἯἸ-ἿὈ-ὍὙὛὝὟὨ-ὯᾸ-ΆῈ-ΉῘ-ΊῨ-ῬῸ-Ώℂℇℋ-ℍℐ-ℒℕℙ-ℝℤΩℨK-ℭℰ-ℳℾℿⅅↃⰀ-ⰮⱠⱢ-ⱤⱧⱩⱫⱵⲀⲂⲄⲆⲈⲊⲌⲎⲐⲒⲔⲖⲘⲚⲜⲞⲠⲢⲤⲦⲨⲪⲬⲮⲰⲲⲴⲶⲸⲺⲼⲾⳀⳂⳄⳆⳈⳊⳌⳎⳐⳒⳔⳖⳘⳚⳜⳞⳠⳢA-Z]",Cs:"[\ud800\udb7f\udb80􏰀\udfff]",Zl:"[\u2028]",Nl:"[ᛮ-ᛰⅠ-ↂ〇〡-〩〸-〺]",Zp:"[\u2029]",No:"[²³¹¼-¾৴-৹௰-௲༪-༳፩-፼៰-៹⁰⁴-⁹₀-₉⅓-⅟①-⒛⓪-⓿❶-➓⳽㆒-㆕㈠-㈩㉑-㉟㊀-㊉㊱-㊿]",Zs:"[   ᠎ -    ]",Sc:"[$¢-¥؋৲৳૱௹฿៛₠-₵﷼﹩$¢£¥₩]",Pc:"[_‿⁀⁔︳︴﹍-﹏_]",Pd:"[-֊᠆‐-―⸗〜〰゠︱︲﹘﹣-]",Pe:"[)]}༻༽᚜⁆⁾₎〉❩❫❭❯❱❳❵⟆⟧⟩⟫⦄⦆⦈⦊⦌⦎⦐⦒⦔⦖⦘⧙⧛⧽〉》」』】〕〗〙〛〞〟﴿︘︶︸︺︼︾﹀﹂﹄﹈﹚﹜﹞)]}⦆」]",Pf:"[»’”›⸃⸅⸊⸍⸝]",Me:"[҈҉۞⃝-⃠⃢-⃤]",Mc:"[ःा-ीॉ-ौংঃা-ীেৈোৌৗਃਾ-ੀઃા-ીૉોૌଂଃାୀେୈୋୌୗாிுூெ-ைொ-ௌௗఁ-ఃు-ౄಂಃಾೀ-ೄೇೈೊೋೕೖംഃാ-ീെ-ൈൊ-ൌൗංඃා-ෑෘ-ෟෲෳ༾༿ཿာေးၖၗាើ-ៅះៈᤣ-ᤦᤩ-ᤫᤰᤱᤳ-ᤸᦰ-ᧀᧈᧉᨙ-ᨛᬄᬵᬻᬽ-ᭁᭃ᭄ꠂꠣꠤꠧ]"},t={};for(var i in e)t[i[0]]?t[i[0]]=e[i].substring(0,e[i].length-1)+t[i[0]].substring(1):t[i[0]]=e[i];for(var i in t)e[i]=t[i];return function(t){var i="";return t instanceof RegExp&&(i=(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":""),t=t.source),t=t.replace(/\\p\{(..?)\}/g,function(t,i){return e[i]||t}),new RegExp(t,i)}}();!function(e){"use strict";e.fn.selectOrDie=function(t){var i,s,n={customID:null,customClass:"",placeholder:null,placeholderOption:!1,prefix:null,cycle:!1,stripEmpty:!1,links:!1,linksExternal:!1,size:0,tabIndex:0,onChange:e.noop},a={},r=!1,o={initSoD:function(t){return a=e.extend({},n,t),this.each(function(){if(e(this).parent().hasClass("sod_select"))console.log("Select or Die: It looks like the SoD already exists");else{var t,i,s,n=e(this),r=n.data("custom-id")?n.data("custom-id"):a.customID,l=n.data("custom-class")?n.data("custom-class"):a.customClass,c=n.data("prefix")?n.data("prefix"):a.prefix,d=n.data("placeholder")?n.data("placeholder"):a.placeholder,u=n.data("placeholder-option")?n.data("placeholder-option"):a.placeholderOption,h=n.data("cycle")?n.data("cycle"):a.cycle,p=n.data("links")?n.data("links"):a.links,f=n.data("links-external")?n.data("links-external"):a.linksExternal,m=parseInt(n.data("size"))?n.data("size"):a.size,g=parseInt(n.data("tabindex"))?n.data("tabindex"):a.tabIndex?a.tabIndex:n.attr("tabindex")?n.attr("tabindex"):a.tabIndex,v=n.data("strip-empty")?n.data("strip-empty"):a.stripEmpty,b=n.prop("title")?n.prop("title"):null,y=n.is(":disabled")?" disabled":"",w="",_="",x=0;c&&(w='<span class="sod_prefix">'+c+"</span> "),t=e("<span/>",{id:r,class:"sod_select "+l+y,title:b,tabindex:g,html:_+=d&&!c?'<span class="sod_label sod_placeholder">'+d+"</span>":'<span class="sod_label">'+w+"</span>","data-cycle":h,"data-links":p,"data-links-external":f,"data-placeholder":d,"data-placeholder-option":u,"data-prefix":c,"data-filter":""}).insertAfter(this),o.isTouch()&&t.addClass("touch"),i=e("<span/>",{class:"sod_list_wrapper"}).appendTo(t),s=e("<span/>",{class:"sod_list"}).appendTo(i),e("option, optgroup",n).each(function(i){var n=e(this);v&&!e.trim(n.text())?n.remove():0===i&&u&&!w?o.populateSoD(n,s,t,!0):o.populateSoD(n,s,t,!1)}),m&&(i.show(),e(".sod_option:lt("+m+")",s).each(function(){x+=e(this).outerHeight()}),i.removeAttr("style"),s.css({"max-height":x})),n.appendTo(t),t.on("focusin",o.focusSod).on("click",o.triggerSod).on("click",".sod_option",o.optionClick).on("mousemove",".sod_option",o.optionHover).on("keydown",o.keyboardUse),n.on("change",o.selectChange),e(document).on("click","label[for='"+n.attr("id")+"']",function(e){e.preventDefault(),t.focus()})}})},populateSoD:function(t,i,s,n){var a=s.data("placeholder"),r=s.data("placeholder-option"),o=s.data("prefix"),l=s.find(".sod_label"),c=t.parent(),d=t.text(),u=t.val(),h=t.data("custom-id")?t.data("custom-id"):null,p=t.data("custom-class")?t.data("custom-class"):"",f=t.is(":disabled")?" disabled ":"",m=t.is(":selected")?" selected active ":"",g=t.data("link")?" link ":"",v=t.data("link-external")?" linkexternal":"",b=t.prop("label");t.is("option")?(e("<span/>",{class:"sod_option "+p+f+m+g+v,id:h,title:d,html:d,"data-value":u}).appendTo(i),n&&!o?(s.data("label",d),s.data("placeholder",d),t.prop("disabled",!0),i.find(".sod_option:last").addClass("is-placeholder disabled"),m&&l.addClass("sod_placeholder")):m&&a&&!r&&!o?s.data("label",a):m&&s.data("label",d),(m&&!a||m&&r||m&&o)&&l.append(d),c.is("optgroup")&&(i.find(".sod_option:last").addClass("groupchild"),c.is(":disabled")&&i.find(".sod_option:last").addClass("disabled"))):e("<span/>",{class:"sod_option optgroup "+f,title:b,html:b,"data-label":b}).appendTo(i)},focusSod:function(){var t=e(this);t.hasClass("disabled")?o.blurSod(t):(o.blurSod(e(".sod_select.focus").not(t)),t.addClass("focus"),e("html").on("click.sodBlur",function(){o.blurSod(t)}))},triggerSod:function(t){t.stopPropagation();var i=e(this),n=i.find(".sod_list"),a=i.data("placeholder"),r=i.find(".active"),l=i.find(".selected");i.hasClass("disabled")||i.hasClass("open")||i.hasClass("touch")?(clearTimeout(s),i.removeClass("open"),a&&(i.find(".sod_label").get(0).lastChild.nodeValue=r.text())):(i.addClass("open"),a&&!i.data("prefix")&&i.find(".sod_label").addClass("sod_placeholder").html(a),o.listScroll(n,l),o.checkViewport(i,n))},keyboardUse:function(t){var s,n,a,l=e(this),c=l.find(".sod_list"),d=l.find(".sod_option"),u=l.find(".sod_label"),h=l.data("cycle"),p=d.filter(".active");return t.which>36&&t.which<41?(37===t.which||38===t.which?(n=p.prevAll(":not('.disabled, .optgroup')").first(),a=d.not(".disabled, .optgroup").last()):(39===t.which||40===t.which)&&(n=p.nextAll(":not('.disabled, .optgroup')").first(),a=d.not(".disabled, .optgroup").first()),!n.hasClass("sod_option")&&h&&(n=a),(n.hasClass("sod_option")||h)&&(p.removeClass("active"),n.addClass("active"),u.get(0).lastChild.nodeValue=n.text(),o.listScroll(c,n),l.hasClass("open")||(r=!0)),!1):(13===t.which||32===t.which&&l.hasClass("open")&&(" "===l.data("filter")[0]||""===l.data("filter"))?(t.preventDefault(),p.click()):32!==t.which||l.hasClass("open")||" "!==l.data("filter")[0]&&""!==l.data("filter")?27===t.which&&o.blurSod(l):(t.preventDefault(),r=!1,l.click()),void(0!==t.which&&(clearTimeout(i),l.data("filter",l.data("filter")+String.fromCharCode(t.which)),s=d.filter(function(){return 0===e(this).text().toLowerCase().indexOf(l.data("filter").toLowerCase())}).not(".disabled, .optgroup").first(),s.length&&(p.removeClass("active"),s.addClass("active"),o.listScroll(c,s),u.get(0).lastChild.nodeValue=s.text(),l.hasClass("open")||(r=!0)),i=setTimeout(function(){l.data("filter","")},500))))},optionHover:function(){var t=e(this);t.hasClass("disabled")||t.hasClass("optgroup")||t.siblings().removeClass("active").end().addClass("active")},optionClick:function(t){t.stopPropagation();var i=e(this),n=i.closest(".sod_select"),a=i.hasClass("disabled"),r=i.hasClass("optgroup"),o=n.find(".sod_option:not('.optgroup')").index(this);n.hasClass("touch")||(a||r||(n.find(".selected, .sod_placeholder").removeClass("selected sod_placeholder"),i.addClass("selected"),n.find("select option")[o].selected=!0,n.find("select").change()),clearTimeout(s),n.removeClass("open"))},selectChange:function(){var t=e(this),i=t.find(":selected"),s=i.text(),n=t.closest(".sod_select");n.find(".sod_label").get(0).lastChild.nodeValue=s,n.data("label",s),a.onChange.call(this),!n.data("links")&&!i.data("link")||i.data("link-external")?(n.data("links-external")||i.data("link-external"))&&window.open(i.val(),"_blank"):window.location.href=i.val()},blurSod:function(t){if(e("body").find(t).length){var i=t.data("label"),n=t.data("placeholder"),a=t.find(".active"),o=t.find(".selected"),l=!1;clearTimeout(s),r&&!a.hasClass("selected")?(a.click(),l=!0):a.hasClass("selected")||(a.removeClass("active"),o.addClass("active")),!l&&n?t.find(".sod_label").get(0).lastChild.nodeValue=o.text():l||(t.find(".sod_label").get(0).lastChild.nodeValue=i),r=!1,t.removeClass("open focus"),t.blur(),e("html").off(".sodBlur")}},checkViewport:function(t,i){var n=t[0].getBoundingClientRect(),a=i.outerHeight();n.bottom+a+10>e(window).height()&&n.top-a>10?t.addClass("above"):t.removeClass("above"),s=setTimeout(function(){o.checkViewport(t,i)},200)},listScroll:function(e,t){var i=e[0].getBoundingClientRect(),s=t[0].getBoundingClientRect();i.top>s.top?e.scrollTop(e.scrollTop()-i.top+s.top):i.bottom<s.bottom&&e.scrollTop(e.scrollTop()-i.bottom+s.bottom)},isTouch:function(){return"ontouchstart"in window||navigator.MaxTouchPoints>0||navigator.msMaxTouchPoints>0}},l={destroy:function(){return this.each(function(){var t=e(this),i=t.parent();i.hasClass("sod_select")?(t.off("change"),i.find("span").remove(),t.unwrap()):console.log("Select or Die: There's no SoD to destroy")})},update:function(){return this.each(function(){var t=e(this),i=t.parent(),s=i.find(".sod_list:first");i.hasClass("sod_select")?(s.empty(),i.find(".sod_label").get(0).lastChild.nodeValue="",t.is(":disabled")&&i.addClass("disabled"),e("option, optgroup",t).each(function(){o.populateSoD(e(this),s,i)})):console.log("Select or Die: There's no SoD to update")})},disable:function(t){return this.each(function(){var i=e(this),s=i.parent();s.hasClass("sod_select")?void 0!==t?(s.find(".sod_list:first .sod_option[data-value='"+t+"']").addClass("disabled"),s.find(".sod_list:first .sod_option[data-label='"+t+"']").nextUntil(":not(.groupchild)").addClass("disabled"),e("option[value='"+t+"'], optgroup[label='"+t+"']",this).prop("disabled",!0)):s.hasClass("sod_select")&&(s.addClass("disabled"),i.prop("disabled",!0)):console.log("Select or Die: There's no SoD to disable")})},enable:function(t){return this.each(function(){var i=e(this),s=i.parent();s.hasClass("sod_select")?void 0!==t?(s.find(".sod_list:first .sod_option[data-value='"+t+"']").removeClass("disabled"),s.find(".sod_list:first .sod_option[data-label='"+t+"']").nextUntil(":not(.groupchild)").removeClass("disabled"),e("option[value='"+t+"'], optgroup[label='"+t+"']",this).prop("disabled",!1)):s.hasClass("sod_select")&&(s.removeClass("disabled"),i.prop("disabled",!1)):console.log("Select or Die: There's no SoD to enable")})}};return l[t]?l[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error('Select or Die: Oh no! No such method "'+t+'" for the SoD instance'):o.initSoD.apply(this,arguments)}}(jQuery);var Swiper=function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Object}function t(i,s){void 0===i&&(i={}),void 0===s&&(s={}),Object.keys(s).forEach(n=>{void 0===i[n]?i[n]=s[n]:e(s[n])&&e(i[n])&&Object.keys(s[n]).length>0&&t(i[n],s[n])})}const i={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function s(){const e="undefined"!=typeof document?document:{};return t(e,i),e}const n={document:i,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:e=>"undefined"==typeof setTimeout?(e(),null):setTimeout(e,0),cancelAnimationFrame(e){"undefined"!=typeof setTimeout&&clearTimeout(e)}};function a(){const e="undefined"!=typeof window?window:{};return t(e,n),e}function r(e){return void 0===e&&(e=""),e.trim().split(" ").filter(e=>!!e.trim())}function o(e,t){return void 0===t&&(t=0),setTimeout(e,t)}function l(){return Date.now()}function c(e,t){void 0===t&&(t="x");const i=a();let s,n,r;const o=function(e){const t=a();let i;return t.getComputedStyle&&(i=t.getComputedStyle(e,null)),!i&&e.currentStyle&&(i=e.currentStyle),i||(i=e.style),i}(e);return i.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map(e=>e.replace(",",".")).join(", ")),r=new i.WebKitCSSMatrix("none"===n?"":n)):s=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=i.WebKitCSSMatrix?r.m41:16===s.length?parseFloat(s[12]):parseFloat(s[4])),"y"===t&&(n=i.WebKitCSSMatrix?r.m42:16===s.length?parseFloat(s[13]):parseFloat(s[5])),n||0}function d(e){return"object"==typeof e&&null!==e&&e.constructor&&"Object"===Object.prototype.toString.call(e).slice(8,-1)}function u(){const e=Object(arguments.length<=0?void 0:arguments[0]),t=["__proto__","constructor","prototype"];for(let s=1;s<arguments.length;s+=1){const n=s<0||arguments.length<=s?void 0:arguments[s];if(null!=n&&(i=n,!("undefined"!=typeof window&&void 0!==window.HTMLElement?i instanceof HTMLElement:i&&(1===i.nodeType||11===i.nodeType)))){const i=Object.keys(Object(n)).filter(e=>t.indexOf(e)<0);for(let t=0,s=i.length;t<s;t+=1){const s=i[t],a=Object.getOwnPropertyDescriptor(n,s);void 0!==a&&a.enumerable&&(d(e[s])&&d(n[s])?n[s].__swiper__?e[s]=n[s]:u(e[s],n[s]):!d(e[s])&&d(n[s])?(e[s]={},n[s].__swiper__?e[s]=n[s]:u(e[s],n[s])):e[s]=n[s])}}}var i;return e}function h(e,t,i){e.style.setProperty(t,i)}function p(e){let{swiper:t,targetPosition:i,side:s}=e;const n=a(),r=-t.translate;let o,l=null;const c=t.params.speed;t.wrapperEl.style.scrollSnapType="none",n.cancelAnimationFrame(t.cssModeFrameID);const d=i>r?"next":"prev",u=(e,t)=>"next"===d&&e>=t||"prev"===d&&e<=t,h=()=>{o=(new Date).getTime(),null===l&&(l=o);const e=Math.max(Math.min((o-l)/c,1),0),a=.5-Math.cos(e*Math.PI)/2;let d=r+a*(i-r);if(u(d,i)&&(d=i),t.wrapperEl.scrollTo({[s]:d}),u(d,i))return t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.scrollSnapType="",setTimeout(()=>{t.wrapperEl.style.overflow="",t.wrapperEl.scrollTo({[s]:d})}),void n.cancelAnimationFrame(t.cssModeFrameID);t.cssModeFrameID=n.requestAnimationFrame(h)};h()}function f(e){return e.querySelector(".swiper-slide-transform")||e.shadowRoot&&e.shadowRoot.querySelector(".swiper-slide-transform")||e}function m(e,t){void 0===t&&(t="");const i=[...e.children];return e instanceof HTMLSlotElement&&i.push(...e.assignedElements()),t?i.filter(e=>e.matches(t)):i}function g(e){try{return void console.warn(e)}catch(e){}}function v(e,t){void 0===t&&(t=[]);const i=document.createElement(e);return i.classList.add(...Array.isArray(t)?t:r(t)),i}function b(e){const t=a(),i=s(),n=e.getBoundingClientRect(),r=i.body,o=e.clientTop||r.clientTop||0,l=e.clientLeft||r.clientLeft||0,c=e===t?t.scrollY:e.scrollTop,d=e===t?t.scrollX:e.scrollLeft;return{top:n.top+c-o,left:n.left+d-l}}function y(e,t){return a().getComputedStyle(e,null).getPropertyValue(t)}function w(e){let t,i=e;if(i){for(t=0;null!==(i=i.previousSibling);)1===i.nodeType&&(t+=1);return t}}function _(e,t){const i=[];let s=e.parentElement;for(;s;)t?s.matches(t)&&i.push(s):i.push(s),s=s.parentElement;return i}function x(e,t){t&&e.addEventListener("transitionend",function i(s){s.target===e&&(t.call(e,s),e.removeEventListener("transitionend",i))})}function k(e,t,i){const s=a();return i?e["width"===t?"offsetWidth":"offsetHeight"]+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-right":"margin-top"))+parseFloat(s.getComputedStyle(e,null).getPropertyValue("width"===t?"margin-left":"margin-bottom")):e.offsetWidth}function S(e){return(Array.isArray(e)?e:[e]).filter(e=>!!e)}function C(e){return t=>Math.abs(t)>0&&e.browser&&e.browser.need3dFix&&Math.abs(t)%90==0?t+.001:t}let $,T,E;function D(){return $||($=function(){const e=a(),t=s();return{smoothScroll:t.documentElement&&t.documentElement.style&&"scrollBehavior"in t.documentElement.style,touch:!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch)}}()),$}function M(e){return void 0===e&&(e={}),T||(T=function(e){let{userAgent:t}=void 0===e?{}:e;const i=D(),s=a(),n=s.navigator.platform,r=t||s.navigator.userAgent,o={ios:!1,android:!1},l=s.screen.width,c=s.screen.height,d=r.match(/(Android);?[\s\/]+([\d.]+)?/);let u=r.match(/(iPad).*OS\s([\d_]+)/);const h=r.match(/(iPod)(.*OS\s([\d_]+))?/),p=!u&&r.match(/(iPhone\sOS|iOS)\s([\d_]+)/),f="Win32"===n;let m="MacIntel"===n;return!u&&m&&i.touch&&["1024x1366","1366x1024","834x1194","1194x834","834x1112","1112x834","768x1024","1024x768","820x1180","1180x820","810x1080","1080x810"].indexOf(`${l}x${c}`)>=0&&((u=r.match(/(Version)\/([\d.]+)/))||(u=[0,1,"13_0_0"]),m=!1),d&&!f&&(o.os="android",o.android=!0),(u||p||h)&&(o.os="ios",o.ios=!0),o}(e)),T}function I(){return E||(E=function(){const e=a(),t=M();let i=!1;function s(){const t=e.navigator.userAgent.toLowerCase();return t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0}if(s()){const t=String(e.navigator.userAgent);if(t.includes("Version/")){const[e,s]=t.split("Version/")[1].split(" ")[0].split(".").map(e=>Number(e));i=e<16||16===e&&s<2}}const n=/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent),r=s();return{isSafari:i||r,needPerspectiveFix:i,need3dFix:r||n&&t.ios,isWebView:n}}()),E}const P=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},A=(e,t,i)=>{t&&!e.classList.contains(i)?e.classList.add(i):!t&&e.classList.contains(i)&&e.classList.remove(i)},L=(e,t)=>{if(!e||e.destroyed||!e.params)return;const i=t.closest(e.isElement?"swiper-slide":`.${e.params.slideClass}`);if(i){let t=i.querySelector(`.${e.params.lazyPreloaderClass}`);!t&&e.isElement&&(i.shadowRoot?t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`):requestAnimationFrame(()=>{i.shadowRoot&&((t=i.shadowRoot.querySelector(`.${e.params.lazyPreloaderClass}`))&&t.remove())})),t&&t.remove()}},N=(e,t)=>{if(!e.slides[t])return;const i=e.slides[t].querySelector('[loading="lazy"]');i&&i.removeAttribute("loading")},z=e=>{if(!e||e.destroyed||!e.params)return;let t=e.params.lazyPreloadPrevNext;const i=e.slides.length;if(!i||!t||t<0)return;t=Math.min(t,i);const s="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():Math.ceil(e.params.slidesPerView),n=e.activeIndex;if(e.params.grid&&e.params.grid.rows>1){const i=n,a=[i-t];return a.push(...Array.from({length:t}).map((e,t)=>i+s+t)),void e.slides.forEach((t,i)=>{a.includes(t.column)&&N(e,i)})}const a=n+s-1;if(e.params.rewind||e.params.loop)for(let s=n-t;s<=a+t;s+=1){const t=(s%i+i)%i;(t<n||t>a)&&N(e,t)}else for(let s=Math.max(n-t,0);s<=Math.min(a+t,i-1);s+=1)s!==n&&(s>a||s<n)&&N(e,s)};function O(e){let{swiper:t,runCallbacks:i,direction:s,step:n}=e;const{activeIndex:a,previousIndex:r}=t;let o=s;if(o||(o=a>r?"next":a<r?"prev":"reset"),t.emit(`transition${n}`),i&&a!==r){if("reset"===o)return void t.emit(`slideResetTransition${n}`);t.emit(`slideChangeTransition${n}`),"next"===o?t.emit(`slideNextTransition${n}`):t.emit(`slidePrevTransition${n}`)}}function R(e,t,i){const s=a(),{params:n}=e,r=n.edgeSwipeDetection,o=n.edgeSwipeThreshold;return!r||!(i<=o||i>=s.innerWidth-o)||"prevent"===r&&(t.preventDefault(),!0)}function j(){const e=this,{params:t,el:i}=e;if(i&&0===i.offsetWidth)return;t.breakpoints&&e.setBreakpoint();const{allowSlideNext:s,allowSlidePrev:n,snapGrid:a}=e,r=e.virtual&&e.params.virtual.enabled;e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),e.updateSlidesClasses();const o=r&&t.loop;!("auto"===t.slidesPerView||t.slidesPerView>1)||!e.isEnd||e.isBeginning||e.params.centeredSlides||o?e.params.loop&&!r?e.slideToLoop(e.realIndex,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0):e.slideTo(e.slides.length-1,0,!1,!0),e.autoplay&&e.autoplay.running&&e.autoplay.paused&&(clearTimeout(e.autoplay.resizeTimeout),e.autoplay.resizeTimeout=setTimeout(()=>{e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.resume()},500)),e.allowSlidePrev=n,e.allowSlideNext=s,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}const B=(e,t)=>{const i=s(),{params:n,el:a,wrapperEl:r,device:o}=e,l=!!n.nested,c="on"===t?"addEventListener":"removeEventListener",d=t;a&&"string"!=typeof a&&(i[c]("touchstart",e.onDocumentTouchStart,{passive:!1,capture:l}),a[c]("touchstart",e.onTouchStart,{passive:!1}),a[c]("pointerdown",e.onTouchStart,{passive:!1}),i[c]("touchmove",e.onTouchMove,{passive:!1,capture:l}),i[c]("pointermove",e.onTouchMove,{passive:!1,capture:l}),i[c]("touchend",e.onTouchEnd,{passive:!0}),i[c]("pointerup",e.onTouchEnd,{passive:!0}),i[c]("pointercancel",e.onTouchEnd,{passive:!0}),i[c]("touchcancel",e.onTouchEnd,{passive:!0}),i[c]("pointerout",e.onTouchEnd,{passive:!0}),i[c]("pointerleave",e.onTouchEnd,{passive:!0}),i[c]("contextmenu",e.onTouchEnd,{passive:!0}),(n.preventClicks||n.preventClicksPropagation)&&a[c]("click",e.onClick,!0),n.cssMode&&r[c]("scroll",e.onScroll),n.updateOnWindowResize?e[d](o.ios||o.android?"resize orientationchange observerUpdate":"resize observerUpdate",j,!0):e[d]("observerUpdate",j,!0),a[c]("load",e.onLoad,{capture:!0}))},H=(e,t)=>e.grid&&t.grid&&t.grid.rows>1;var F={init:!0,direction:"horizontal",oneWayMovement:!1,swiperElementNodeName:"SWIPER-CONTAINER",touchEventsTarget:"wrapper",initialSlide:0,speed:300,cssMode:!1,updateOnWindowResize:!0,resizeObserver:!0,nested:!1,createElements:!1,eventsPrefix:"swiper",enabled:!0,focusableElements:"input, select, option, textarea, button, video, label",width:null,height:null,preventInteractionOnTransition:!1,userAgent:null,url:null,edgeSwipeDetection:!1,edgeSwipeThreshold:20,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsBase:"window",spaceBetween:0,slidesPerView:1,slidesPerGroup:1,slidesPerGroupSkip:0,slidesPerGroupAuto:!1,centeredSlides:!1,centeredSlidesBounds:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:5,touchMoveStopPropagation:!1,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,loop:!1,loopAddBlankSlides:!0,loopAdditionalSlides:0,loopPreventsSliding:!0,rewind:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,maxBackfaceHiddenSlides:10,containerModifierClass:"swiper-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-blank",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideFullyVisibleClass:"swiper-slide-fully-visible",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",lazyPreloaderClass:"swiper-lazy-preloader",lazyPreloadPrevNext:0,runCallbacksOnInit:!0,_emitClasses:!1};function W(e,t){return function(i){void 0===i&&(i={});const s=Object.keys(i)[0],n=i[s];"object"==typeof n&&null!==n?(!0===e[s]&&(e[s]={enabled:!0}),"navigation"===s&&e[s]&&e[s].enabled&&!e[s].prevEl&&!e[s].nextEl&&(e[s].auto=!0),["pagination","scrollbar"].indexOf(s)>=0&&e[s]&&e[s].enabled&&!e[s].el&&(e[s].auto=!0),s in e&&"enabled"in n?("object"!=typeof e[s]||"enabled"in e[s]||(e[s].enabled=!0),e[s]||(e[s]={enabled:!1}),u(t,i)):u(t,i)):u(t,i)}}const U={eventsEmitter:{on(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;const n=i?"unshift":"push";return e.split(" ").forEach(e=>{s.eventsListeners[e]||(s.eventsListeners[e]=[]),s.eventsListeners[e][n](t)}),s},once(e,t,i){const s=this;if(!s.eventsListeners||s.destroyed)return s;if("function"!=typeof t)return s;function n(){s.off(e,n),n.__emitterProxy&&delete n.__emitterProxy;for(var i=arguments.length,a=new Array(i),r=0;r<i;r++)a[r]=arguments[r];t.apply(s,a)}return n.__emitterProxy=t,s.on(e,n,i)},onAny(e,t){const i=this;if(!i.eventsListeners||i.destroyed)return i;if("function"!=typeof e)return i;const s=t?"unshift":"push";return i.eventsAnyListeners.indexOf(e)<0&&i.eventsAnyListeners[s](e),i},offAny(e){const t=this;if(!t.eventsListeners||t.destroyed)return t;if(!t.eventsAnyListeners)return t;const i=t.eventsAnyListeners.indexOf(e);return i>=0&&t.eventsAnyListeners.splice(i,1),t},off(e,t){const i=this;return!i.eventsListeners||i.destroyed?i:i.eventsListeners?(e.split(" ").forEach(e=>{void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].forEach((s,n)=>{(s===t||s.__emitterProxy&&s.__emitterProxy===t)&&i.eventsListeners[e].splice(n,1)})}),i):i},emit(){const e=this;if(!e.eventsListeners||e.destroyed)return e;if(!e.eventsListeners)return e;let t,i,s;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];return"string"==typeof a[0]||Array.isArray(a[0])?(t=a[0],i=a.slice(1,a.length),s=e):(t=a[0].events,i=a[0].data,s=a[0].context||e),i.unshift(s),(Array.isArray(t)?t:t.split(" ")).forEach(t=>{e.eventsAnyListeners&&e.eventsAnyListeners.length&&e.eventsAnyListeners.forEach(e=>{e.apply(s,[t,...i])}),e.eventsListeners&&e.eventsListeners[t]&&e.eventsListeners[t].forEach(e=>{e.apply(s,i)})}),e}},update:{updateSize:function(){const e=this;let t,i;const s=e.el;t=void 0!==e.params.width&&null!==e.params.width?e.params.width:s.clientWidth,i=void 0!==e.params.height&&null!==e.params.height?e.params.height:s.clientHeight,0===t&&e.isHorizontal()||0===i&&e.isVertical()||(t=t-parseInt(y(s,"padding-left")||0,10)-parseInt(y(s,"padding-right")||0,10),i=i-parseInt(y(s,"padding-top")||0,10)-parseInt(y(s,"padding-bottom")||0,10),Number.isNaN(t)&&(t=0),Number.isNaN(i)&&(i=0),Object.assign(e,{width:t,height:i,size:e.isHorizontal()?t:i}))},updateSlides:function(){const e=this;function t(t,i){return parseFloat(t.getPropertyValue(e.getDirectionLabel(i))||0)}const i=e.params,{wrapperEl:s,slidesEl:n,size:a,rtlTranslate:r,wrongRTL:o}=e,l=e.virtual&&i.virtual.enabled,c=l?e.virtual.slides.length:e.slides.length,d=m(n,`.${e.params.slideClass}, swiper-slide`),u=l?e.virtual.slides.length:d.length;let p=[];const f=[],g=[];let v=i.slidesOffsetBefore;"function"==typeof v&&(v=i.slidesOffsetBefore.call(e));let b=i.slidesOffsetAfter;"function"==typeof b&&(b=i.slidesOffsetAfter.call(e));const w=e.snapGrid.length,_=e.slidesGrid.length;let x=i.spaceBetween,S=-v,C=0,$=0;if(void 0===a)return;"string"==typeof x&&x.indexOf("%")>=0?x=parseFloat(x.replace("%",""))/100*a:"string"==typeof x&&(x=parseFloat(x)),e.virtualSize=-x,d.forEach(e=>{r?e.style.marginLeft="":e.style.marginRight="",e.style.marginBottom="",e.style.marginTop=""}),i.centeredSlides&&i.cssMode&&(h(s,"--swiper-centered-offset-before",""),h(s,"--swiper-centered-offset-after",""));const T=i.grid&&i.grid.rows>1&&e.grid;let E;T?e.grid.initSlides(d):e.grid&&e.grid.unsetSlides();const D="auto"===i.slidesPerView&&i.breakpoints&&Object.keys(i.breakpoints).filter(e=>void 0!==i.breakpoints[e].slidesPerView).length>0;for(let s=0;s<u;s+=1){let n;if(E=0,d[s]&&(n=d[s]),T&&e.grid.updateSlide(s,n,d),!d[s]||"none"!==y(n,"display")){if("auto"===i.slidesPerView){D&&(d[s].style[e.getDirectionLabel("width")]="");const a=getComputedStyle(n),r=n.style.transform,o=n.style.webkitTransform;if(r&&(n.style.transform="none"),o&&(n.style.webkitTransform="none"),i.roundLengths)E=e.isHorizontal()?k(n,"width",!0):k(n,"height",!0);else{const e=t(a,"width"),i=t(a,"padding-left"),s=t(a,"padding-right"),r=t(a,"margin-left"),o=t(a,"margin-right"),l=a.getPropertyValue("box-sizing");if(l&&"border-box"===l)E=e+r+o;else{const{clientWidth:t,offsetWidth:a}=n;E=e+i+s+r+o+(a-t)}}r&&(n.style.transform=r),o&&(n.style.webkitTransform=o),i.roundLengths&&(E=Math.floor(E))}else E=(a-(i.slidesPerView-1)*x)/i.slidesPerView,i.roundLengths&&(E=Math.floor(E)),d[s]&&(d[s].style[e.getDirectionLabel("width")]=`${E}px`);d[s]&&(d[s].swiperSlideSize=E),g.push(E),i.centeredSlides?(S=S+E/2+C/2+x,0===C&&0!==s&&(S=S-a/2-x),0===s&&(S=S-a/2-x),Math.abs(S)<.001&&(S=0),i.roundLengths&&(S=Math.floor(S)),$%i.slidesPerGroup==0&&p.push(S),f.push(S)):(i.roundLengths&&(S=Math.floor(S)),($-Math.min(e.params.slidesPerGroupSkip,$))%e.params.slidesPerGroup==0&&p.push(S),f.push(S),S=S+E+x),e.virtualSize+=E+x,C=E,$+=1}}if(e.virtualSize=Math.max(e.virtualSize,a)+b,r&&o&&("slide"===i.effect||"coverflow"===i.effect)&&(s.style.width=`${e.virtualSize+x}px`),i.setWrapperSize&&(s.style[e.getDirectionLabel("width")]=`${e.virtualSize+x}px`),T&&e.grid.updateWrapperSize(E,p),!i.centeredSlides){const t=[];for(let s=0;s<p.length;s+=1){let n=p[s];i.roundLengths&&(n=Math.floor(n)),p[s]<=e.virtualSize-a&&t.push(n)}p=t,Math.floor(e.virtualSize-a)-Math.floor(p[p.length-1])>1&&p.push(e.virtualSize-a)}if(l&&i.loop){const t=g[0]+x;if(i.slidesPerGroup>1){const s=Math.ceil((e.virtual.slidesBefore+e.virtual.slidesAfter)/i.slidesPerGroup),n=t*i.slidesPerGroup;for(let e=0;e<s;e+=1)p.push(p[p.length-1]+n)}for(let s=0;s<e.virtual.slidesBefore+e.virtual.slidesAfter;s+=1)1===i.slidesPerGroup&&p.push(p[p.length-1]+t),f.push(f[f.length-1]+t),e.virtualSize+=t}if(0===p.length&&(p=[0]),0!==x){const t=e.isHorizontal()&&r?"marginLeft":e.getDirectionLabel("marginRight");d.filter((e,t)=>!(i.cssMode&&!i.loop)||t!==d.length-1).forEach(e=>{e.style[t]=`${x}px`})}if(i.centeredSlides&&i.centeredSlidesBounds){let e=0;g.forEach(t=>{e+=t+(x||0)});const t=(e-=x)>a?e-a:0;p=p.map(e=>e<=0?-v:e>t?t+b:e)}if(i.centerInsufficientSlides){let e=0;g.forEach(t=>{e+=t+(x||0)}),e-=x;const t=(i.slidesOffsetBefore||0)+(i.slidesOffsetAfter||0);if(e+t<a){const i=(a-e-t)/2;p.forEach((e,t)=>{p[t]=e-i}),f.forEach((e,t)=>{f[t]=e+i})}}if(Object.assign(e,{slides:d,snapGrid:p,slidesGrid:f,slidesSizesGrid:g}),i.centeredSlides&&i.cssMode&&!i.centeredSlidesBounds){h(s,"--swiper-centered-offset-before",-p[0]+"px"),h(s,"--swiper-centered-offset-after",e.size/2-g[g.length-1]/2+"px");const t=-e.snapGrid[0],i=-e.slidesGrid[0];e.snapGrid=e.snapGrid.map(e=>e+t),e.slidesGrid=e.slidesGrid.map(e=>e+i)}if(u!==c&&e.emit("slidesLengthChange"),p.length!==w&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),f.length!==_&&e.emit("slidesGridLengthChange"),i.watchSlidesProgress&&e.updateSlidesOffset(),e.emit("slidesUpdated"),!(l||i.cssMode||"slide"!==i.effect&&"fade"!==i.effect)){const t=`${i.containerModifierClass}backface-hidden`,s=e.el.classList.contains(t);u<=i.maxBackfaceHiddenSlides?s||e.el.classList.add(t):s&&e.el.classList.remove(t)}},updateAutoHeight:function(e){const t=this,i=[],s=t.virtual&&t.params.virtual.enabled;let n,a=0;"number"==typeof e?t.setTransition(e):!0===e&&t.setTransition(t.params.speed);const r=e=>s?t.slides[t.getSlideIndexByData(e)]:t.slides[e];if("auto"!==t.params.slidesPerView&&t.params.slidesPerView>1)if(t.params.centeredSlides)(t.visibleSlides||[]).forEach(e=>{i.push(e)});else for(n=0;n<Math.ceil(t.params.slidesPerView);n+=1){const e=t.activeIndex+n;if(e>t.slides.length&&!s)break;i.push(r(e))}else i.push(r(t.activeIndex));for(n=0;n<i.length;n+=1)if(void 0!==i[n]){const e=i[n].offsetHeight;a=e>a?e:a}(a||0===a)&&(t.wrapperEl.style.height=`${a}px`)},updateSlidesOffset:function(){const e=this,t=e.slides,i=e.isElement?e.isHorizontal()?e.wrapperEl.offsetLeft:e.wrapperEl.offsetTop:0;for(let s=0;s<t.length;s+=1)t[s].swiperSlideOffset=(e.isHorizontal()?t[s].offsetLeft:t[s].offsetTop)-i-e.cssOverflowAdjustment()},updateSlidesProgress:function(e){void 0===e&&(e=this&&this.translate||0);const t=this,i=t.params,{slides:s,rtlTranslate:n,snapGrid:a}=t;if(0===s.length)return;void 0===s[0].swiperSlideOffset&&t.updateSlidesOffset();let r=-e;n&&(r=e),t.visibleSlidesIndexes=[],t.visibleSlides=[];let o=i.spaceBetween;"string"==typeof o&&o.indexOf("%")>=0?o=parseFloat(o.replace("%",""))/100*t.size:"string"==typeof o&&(o=parseFloat(o));for(let e=0;e<s.length;e+=1){const l=s[e];let c=l.swiperSlideOffset;i.cssMode&&i.centeredSlides&&(c-=s[0].swiperSlideOffset);const d=(r+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),u=(r-a[0]+(i.centeredSlides?t.minTranslate():0)-c)/(l.swiperSlideSize+o),h=-(r-c),p=h+t.slidesSizesGrid[e],f=h>=0&&h<=t.size-t.slidesSizesGrid[e],m=h>=0&&h<t.size-1||p>1&&p<=t.size||h<=0&&p>=t.size;m&&(t.visibleSlides.push(l),t.visibleSlidesIndexes.push(e)),P(l,m,i.slideVisibleClass),P(l,f,i.slideFullyVisibleClass),l.progress=n?-d:d,l.originalProgress=n?-u:u}},updateProgress:function(e){const t=this;if(void 0===e){const i=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*i||0}const i=t.params,s=t.maxTranslate()-t.minTranslate();let{progress:n,isBeginning:a,isEnd:r,progressLoop:o}=t;const l=a,c=r;if(0===s)n=0,a=!0,r=!0;else{n=(e-t.minTranslate())/s;const i=Math.abs(e-t.minTranslate())<1,o=Math.abs(e-t.maxTranslate())<1;a=i||n<=0,r=o||n>=1,i&&(n=0),o&&(n=1)}if(i.loop){const i=t.getSlideIndexByData(0),s=t.getSlideIndexByData(t.slides.length-1),n=t.slidesGrid[i],a=t.slidesGrid[s],r=t.slidesGrid[t.slidesGrid.length-1],l=Math.abs(e);(o=l>=n?(l-n)/r:(l+r-a)/r)>1&&(o-=1)}Object.assign(t,{progress:n,progressLoop:o,isBeginning:a,isEnd:r}),(i.watchSlidesProgress||i.centeredSlides&&i.autoHeight)&&t.updateSlidesProgress(e),a&&!l&&t.emit("reachBeginning toEdge"),r&&!c&&t.emit("reachEnd toEdge"),(l&&!a||c&&!r)&&t.emit("fromEdge"),t.emit("progress",n)},updateSlidesClasses:function(){const e=this,{slides:t,params:i,slidesEl:s,activeIndex:n}=e,a=e.virtual&&i.virtual.enabled,r=e.grid&&i.grid&&i.grid.rows>1,o=e=>m(s,`.${i.slideClass}${e}, swiper-slide${e}`)[0];let l,c,d;if(a)if(i.loop){let t=n-e.virtual.slidesBefore;t<0&&(t=e.virtual.slides.length+t),t>=e.virtual.slides.length&&(t-=e.virtual.slides.length),l=o(`[data-swiper-slide-index="${t}"]`)}else l=o(`[data-swiper-slide-index="${n}"]`);else r?(l=t.filter(e=>e.column===n)[0],d=t.filter(e=>e.column===n+1)[0],c=t.filter(e=>e.column===n-1)[0]):l=t[n];l&&(r||(d=function(e,t){const i=[];for(;e.nextElementSibling;){const s=e.nextElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&!d&&(d=t[0]),c=function(e,t){const i=[];for(;e.previousElementSibling;){const s=e.previousElementSibling;t?s.matches(t)&&i.push(s):i.push(s),e=s}return i}(l,`.${i.slideClass}, swiper-slide`)[0],i.loop&&0===!c&&(c=t[t.length-1]))),t.forEach(e=>{A(e,e===l,i.slideActiveClass),A(e,e===d,i.slideNextClass),A(e,e===c,i.slidePrevClass)}),e.emitSlidesClasses()},updateActiveIndex:function(e){const t=this,i=t.rtlTranslate?t.translate:-t.translate,{snapGrid:s,params:n,activeIndex:a,realIndex:r,snapIndex:o}=t;let l,c=e;const d=e=>{let i=e-t.virtual.slidesBefore;return i<0&&(i=t.virtual.slides.length+i),i>=t.virtual.slides.length&&(i-=t.virtual.slides.length),i};if(void 0===c&&(c=function(e){const{slidesGrid:t,params:i}=e,s=e.rtlTranslate?e.translate:-e.translate;let n;for(let e=0;e<t.length;e+=1)void 0!==t[e+1]?s>=t[e]&&s<t[e+1]-(t[e+1]-t[e])/2?n=e:s>=t[e]&&s<t[e+1]&&(n=e+1):s>=t[e]&&(n=e);return i.normalizeSlideIndex&&(n<0||void 0===n)&&(n=0),n}(t)),s.indexOf(i)>=0)l=s.indexOf(i);else{const e=Math.min(n.slidesPerGroupSkip,c);l=e+Math.floor((c-e)/n.slidesPerGroup)}if(l>=s.length&&(l=s.length-1),c===a&&!t.params.loop)return void(l!==o&&(t.snapIndex=l,t.emit("snapIndexChange")));if(c===a&&t.params.loop&&t.virtual&&t.params.virtual.enabled)return void(t.realIndex=d(c));const u=t.grid&&n.grid&&n.grid.rows>1;let h;if(t.virtual&&n.virtual.enabled&&n.loop)h=d(c);else if(u){const e=t.slides.filter(e=>e.column===c)[0];let i=parseInt(e.getAttribute("data-swiper-slide-index"),10);Number.isNaN(i)&&(i=Math.max(t.slides.indexOf(e),0)),h=Math.floor(i/n.grid.rows)}else if(t.slides[c]){const e=t.slides[c].getAttribute("data-swiper-slide-index");h=e?parseInt(e,10):c}else h=c;Object.assign(t,{previousSnapIndex:o,snapIndex:l,previousRealIndex:r,realIndex:h,previousIndex:a,activeIndex:c}),t.initialized&&z(t),t.emit("activeIndexChange"),t.emit("snapIndexChange"),(t.initialized||t.params.runCallbacksOnInit)&&(r!==h&&t.emit("realIndexChange"),t.emit("slideChange"))},updateClickedSlide:function(e,t){const i=this,s=i.params;let n=e.closest(`.${s.slideClass}, swiper-slide`);!n&&i.isElement&&t&&t.length>1&&t.includes(e)&&[...t.slice(t.indexOf(e)+1,t.length)].forEach(e=>{!n&&e.matches&&e.matches(`.${s.slideClass}, swiper-slide`)&&(n=e)});let a,r=!1;if(n)for(let e=0;e<i.slides.length;e+=1)if(i.slides[e]===n){r=!0,a=e;break}if(!n||!r)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=n,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(n.getAttribute("data-swiper-slide-index"),10):i.clickedIndex=a,s.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},translate:{getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");const{params:t,rtlTranslate:i,translate:s,wrapperEl:n}=this;if(t.virtualTranslate)return i?-s:s;if(t.cssMode)return s;let a=c(n,e);return a+=this.cssOverflowAdjustment(),i&&(a=-a),a||0},setTranslate:function(e,t){const i=this,{rtlTranslate:s,params:n,wrapperEl:a,progress:r}=i;let o,l=0,c=0;i.isHorizontal()?l=s?-e:e:c=e,n.roundLengths&&(l=Math.floor(l),c=Math.floor(c)),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?l:c,n.cssMode?a[i.isHorizontal()?"scrollLeft":"scrollTop"]=i.isHorizontal()?-l:-c:n.virtualTranslate||(i.isHorizontal()?l-=i.cssOverflowAdjustment():c-=i.cssOverflowAdjustment(),a.style.transform=`translate3d(${l}px, ${c}px, 0px)`);const d=i.maxTranslate()-i.minTranslate();(o=0===d?0:(e-i.minTranslate())/d)!==r&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]},translateTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0),void 0===s&&(s=!0);const a=this,{params:r,wrapperEl:o}=a;if(a.animating&&r.preventInteractionOnTransition)return!1;const l=a.minTranslate(),c=a.maxTranslate();let d;if(d=s&&e>l?l:s&&e<c?c:e,a.updateProgress(d),r.cssMode){const e=a.isHorizontal();if(0===t)o[e?"scrollLeft":"scrollTop"]=-d;else{if(!a.support.smoothScroll)return p({swiper:a,targetPosition:-d,side:e?"left":"top"}),!0;o.scrollTo({[e?"left":"top"]:-d,behavior:"smooth"})}return!0}return 0===t?(a.setTransition(0),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionEnd"))):(a.setTransition(t),a.setTranslate(d),i&&(a.emit("beforeTransitionStart",t,n),a.emit("transitionStart")),a.animating||(a.animating=!0,a.onTranslateToWrapperTransitionEnd||(a.onTranslateToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onTranslateToWrapperTransitionEnd),a.onTranslateToWrapperTransitionEnd=null,delete a.onTranslateToWrapperTransitionEnd,a.animating=!1,i&&a.emit("transitionEnd"))}),a.wrapperEl.addEventListener("transitionend",a.onTranslateToWrapperTransitionEnd))),!0}},transition:{setTransition:function(e,t){const i=this;i.params.cssMode||(i.wrapperEl.style.transitionDuration=`${e}ms`,i.wrapperEl.style.transitionDelay=0===e?"0ms":""),i.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;s.cssMode||(s.autoHeight&&i.updateAutoHeight(),O({swiper:i,runCallbacks:e,direction:t,step:"Start"}))},transitionEnd:function(e,t){void 0===e&&(e=!0);const i=this,{params:s}=i;i.animating=!1,s.cssMode||(i.setTransition(0),O({swiper:i,runCallbacks:e,direction:t,step:"End"}))}},slide:{slideTo:function(e,t,i,s,n){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const a=this;let r=e;r<0&&(r=0);const{params:o,snapGrid:l,slidesGrid:c,previousIndex:d,activeIndex:u,rtlTranslate:h,wrapperEl:f,enabled:m}=a;if(!m&&!s&&!n||a.destroyed||a.animating&&o.preventInteractionOnTransition)return!1;void 0===t&&(t=a.params.speed);const g=Math.min(a.params.slidesPerGroupSkip,r);let v=g+Math.floor((r-g)/a.params.slidesPerGroup);v>=l.length&&(v=l.length-1);const b=-l[v];if(o.normalizeSlideIndex)for(let e=0;e<c.length;e+=1){const t=-Math.floor(100*b),i=Math.floor(100*c[e]),s=Math.floor(100*c[e+1]);void 0!==c[e+1]?t>=i&&t<s-(s-i)/2?r=e:t>=i&&t<s&&(r=e+1):t>=i&&(r=e)}if(a.initialized&&r!==u){if(!a.allowSlideNext&&(h?b>a.translate&&b>a.minTranslate():b<a.translate&&b<a.minTranslate()))return!1;if(!a.allowSlidePrev&&b>a.translate&&b>a.maxTranslate()&&(u||0)!==r)return!1}let y;r!==(d||0)&&i&&a.emit("beforeSlideChangeStart"),a.updateProgress(b),y=r>u?"next":r<u?"prev":"reset";const w=a.virtual&&a.params.virtual.enabled;if((!w||!n)&&(h&&-b===a.translate||!h&&b===a.translate))return a.updateActiveIndex(r),o.autoHeight&&a.updateAutoHeight(),a.updateSlidesClasses(),"slide"!==o.effect&&a.setTranslate(b),"reset"!==y&&(a.transitionStart(i,y),a.transitionEnd(i,y)),!1;if(o.cssMode){const e=a.isHorizontal(),i=h?b:-b;if(0===t)w&&(a.wrapperEl.style.scrollSnapType="none",a._immediateVirtual=!0),w&&!a._cssModeVirtualInitialSet&&a.params.initialSlide>0?(a._cssModeVirtualInitialSet=!0,requestAnimationFrame(()=>{f[e?"scrollLeft":"scrollTop"]=i})):f[e?"scrollLeft":"scrollTop"]=i,w&&requestAnimationFrame(()=>{a.wrapperEl.style.scrollSnapType="",a._immediateVirtual=!1});else{if(!a.support.smoothScroll)return p({swiper:a,targetPosition:i,side:e?"left":"top"}),!0;f.scrollTo({[e?"left":"top"]:i,behavior:"smooth"})}return!0}return a.setTransition(t),a.setTranslate(b),a.updateActiveIndex(r),a.updateSlidesClasses(),a.emit("beforeTransitionStart",t,s),a.transitionStart(i,y),0===t?a.transitionEnd(i,y):a.animating||(a.animating=!0,a.onSlideToWrapperTransitionEnd||(a.onSlideToWrapperTransitionEnd=function(e){a&&!a.destroyed&&e.target===this&&(a.wrapperEl.removeEventListener("transitionend",a.onSlideToWrapperTransitionEnd),a.onSlideToWrapperTransitionEnd=null,delete a.onSlideToWrapperTransitionEnd,a.transitionEnd(i,y))}),a.wrapperEl.addEventListener("transitionend",a.onSlideToWrapperTransitionEnd)),!0},slideToLoop:function(e,t,i,s){void 0===e&&(e=0),void 0===i&&(i=!0),"string"==typeof e&&(e=parseInt(e,10));const n=this;if(n.destroyed)return;void 0===t&&(t=n.params.speed);const a=n.grid&&n.params.grid&&n.params.grid.rows>1;let r=e;if(n.params.loop)if(n.virtual&&n.params.virtual.enabled)r+=n.virtual.slidesBefore;else{let e;if(a){const t=r*n.params.grid.rows;e=n.slides.filter(e=>1*e.getAttribute("data-swiper-slide-index")===t)[0].column}else e=n.getSlideIndexByData(r);const t=a?Math.ceil(n.slides.length/n.params.grid.rows):n.slides.length,{centeredSlides:i}=n.params;let o=n.params.slidesPerView;"auto"===o?o=n.slidesPerViewDynamic():(o=Math.ceil(parseFloat(n.params.slidesPerView,10)),i&&o%2==0&&(o+=1));let l=t-e<o;if(i&&(l=l||e<Math.ceil(o/2)),s&&i&&"auto"!==n.params.slidesPerView&&!a&&(l=!1),l){const s=i?e<n.activeIndex?"prev":"next":e-n.activeIndex-1<n.params.slidesPerView?"next":"prev";n.loopFix({direction:s,slideTo:!0,activeSlideIndex:"next"===s?e+1:e-t+1,slideRealIndex:"next"===s?n.realIndex:void 0})}if(a){const e=r*n.params.grid.rows;r=n.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0].column}else r=n.getSlideIndexByData(r)}return requestAnimationFrame(()=>{n.slideTo(r,t,i,s)}),n},slideNext:function(e,t,i){void 0===t&&(t=!0);const s=this,{enabled:n,params:a,animating:r}=s;if(!n||s.destroyed)return s;void 0===e&&(e=s.params.speed);let o=a.slidesPerGroup;"auto"===a.slidesPerView&&1===a.slidesPerGroup&&a.slidesPerGroupAuto&&(o=Math.max(s.slidesPerViewDynamic("current",!0),1));const l=s.activeIndex<a.slidesPerGroupSkip?1:o,c=s.virtual&&a.virtual.enabled;if(a.loop){if(r&&!c&&a.loopPreventsSliding)return!1;if(s.loopFix({direction:"next"}),s._clientLeft=s.wrapperEl.clientLeft,s.activeIndex===s.slides.length-1&&a.cssMode)return requestAnimationFrame(()=>{s.slideTo(s.activeIndex+l,e,t,i)}),!0}return a.rewind&&s.isEnd?s.slideTo(0,e,t,i):s.slideTo(s.activeIndex+l,e,t,i)},slidePrev:function(e,t,i){void 0===t&&(t=!0);const s=this,{params:n,snapGrid:a,slidesGrid:r,rtlTranslate:o,enabled:l,animating:c}=s;if(!l||s.destroyed)return s;void 0===e&&(e=s.params.speed);const d=s.virtual&&n.virtual.enabled;if(n.loop){if(c&&!d&&n.loopPreventsSliding)return!1;s.loopFix({direction:"prev"}),s._clientLeft=s.wrapperEl.clientLeft}function u(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}const h=u(o?s.translate:-s.translate),p=a.map(e=>u(e));let f=a[p.indexOf(h)-1];if(void 0===f&&n.cssMode){let e;a.forEach((t,i)=>{h>=t&&(e=i)}),void 0!==e&&(f=a[e>0?e-1:e])}let m=0;if(void 0!==f&&((m=r.indexOf(f))<0&&(m=s.activeIndex-1),"auto"===n.slidesPerView&&1===n.slidesPerGroup&&n.slidesPerGroupAuto&&(m=m-s.slidesPerViewDynamic("previous",!0)+1,m=Math.max(m,0))),n.rewind&&s.isBeginning){const n=s.params.virtual&&s.params.virtual.enabled&&s.virtual?s.virtual.slides.length-1:s.slides.length-1;return s.slideTo(n,e,t,i)}return n.loop&&0===s.activeIndex&&n.cssMode?(requestAnimationFrame(()=>{s.slideTo(m,e,t,i)}),!0):s.slideTo(m,e,t,i)},slideReset:function(e,t,i){void 0===t&&(t=!0);const s=this;if(!s.destroyed)return void 0===e&&(e=s.params.speed),s.slideTo(s.activeIndex,e,t,i)},slideToClosest:function(e,t,i,s){void 0===t&&(t=!0),void 0===s&&(s=.5);const n=this;if(n.destroyed)return;void 0===e&&(e=n.params.speed);let a=n.activeIndex;const r=Math.min(n.params.slidesPerGroupSkip,a),o=r+Math.floor((a-r)/n.params.slidesPerGroup),l=n.rtlTranslate?n.translate:-n.translate;if(l>=n.snapGrid[o]){const e=n.snapGrid[o];l-e>(n.snapGrid[o+1]-e)*s&&(a+=n.params.slidesPerGroup)}else{const e=n.snapGrid[o-1];l-e<=(n.snapGrid[o]-e)*s&&(a-=n.params.slidesPerGroup)}return a=Math.max(a,0),a=Math.min(a,n.slidesGrid.length-1),n.slideTo(a,e,t,i)},slideToClickedSlide:function(){const e=this;if(e.destroyed)return;const{params:t,slidesEl:i}=e,s="auto"===t.slidesPerView?e.slidesPerViewDynamic():t.slidesPerView;let n,a=e.clickedIndex;const r=e.isElement?"swiper-slide":`.${t.slideClass}`;if(t.loop){if(e.animating)return;n=parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10),t.centeredSlides?a<e.loopedSlides-s/2||a>e.slides.length-e.loopedSlides+s/2?(e.loopFix(),a=e.getSlideIndex(m(i,`${r}[data-swiper-slide-index="${n}"]`)[0]),o(()=>{e.slideTo(a)})):e.slideTo(a):a>e.slides.length-s?(e.loopFix(),a=e.getSlideIndex(m(i,`${r}[data-swiper-slide-index="${n}"]`)[0]),o(()=>{e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}},loop:{loopCreate:function(e){const t=this,{params:i,slidesEl:s}=t;if(!i.loop||t.virtual&&t.params.virtual.enabled)return;const n=()=>{m(s,`.${i.slideClass}, swiper-slide`).forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t)})},a=t.grid&&i.grid&&i.grid.rows>1,r=i.slidesPerGroup*(a?i.grid.rows:1),o=t.slides.length%r!=0,l=a&&t.slides.length%i.grid.rows!=0,c=e=>{for(let s=0;s<e;s+=1){const e=t.isElement?v("swiper-slide",[i.slideBlankClass]):v("div",[i.slideClass,i.slideBlankClass]);t.slidesEl.append(e)}};o?(i.loopAddBlankSlides?(c(r-t.slides.length%r),t.recalcSlides(),t.updateSlides()):g("Swiper Loop Warning: The number of slides is not even to slidesPerGroup, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),n()):l?(i.loopAddBlankSlides?(c(i.grid.rows-t.slides.length%i.grid.rows),t.recalcSlides(),t.updateSlides()):g("Swiper Loop Warning: The number of slides is not even to grid.rows, loop mode may not function properly. You need to add more slides (or make duplicates, or empty slides)"),n()):n(),t.loopFix({slideRealIndex:e,direction:i.centeredSlides?void 0:"next"})},loopFix:function(e){let{slideRealIndex:t,slideTo:i=!0,direction:s,setTranslate:n,activeSlideIndex:a,byController:r,byMousewheel:o}=void 0===e?{}:e;const l=this;if(!l.params.loop)return;l.emit("beforeLoopFix");const{slides:c,allowSlidePrev:d,allowSlideNext:u,slidesEl:h,params:p}=l,{centeredSlides:f}=p;if(l.allowSlidePrev=!0,l.allowSlideNext=!0,l.virtual&&p.virtual.enabled)return i&&(p.centeredSlides||0!==l.snapIndex?p.centeredSlides&&l.snapIndex<p.slidesPerView?l.slideTo(l.virtual.slides.length+l.snapIndex,0,!1,!0):l.snapIndex===l.snapGrid.length-1&&l.slideTo(l.virtual.slidesBefore,0,!1,!0):l.slideTo(l.virtual.slides.length,0,!1,!0)),l.allowSlidePrev=d,l.allowSlideNext=u,void l.emit("loopFix");let m=p.slidesPerView;"auto"===m?m=l.slidesPerViewDynamic():(m=Math.ceil(parseFloat(p.slidesPerView,10)),f&&m%2==0&&(m+=1));const v=p.slidesPerGroupAuto?m:p.slidesPerGroup;let b=v;b%v!=0&&(b+=v-b%v),b+=p.loopAdditionalSlides,l.loopedSlides=b;const y=l.grid&&p.grid&&p.grid.rows>1;c.length<m+b?g("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters"):y&&"row"===p.grid.fill&&g("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");const w=[],_=[];let x=l.activeIndex;void 0===a?a=l.getSlideIndex(c.filter(e=>e.classList.contains(p.slideActiveClass))[0]):x=a;const k="next"===s||!s,S="prev"===s||!s;let C=0,$=0;const T=y?Math.ceil(c.length/p.grid.rows):c.length,E=(y?c[a].column:a)+(f&&void 0===n?-m/2+.5:0);if(E<b){C=Math.max(b-E,v);for(let e=0;e<b-E;e+=1){const t=e-Math.floor(e/T)*T;if(y){const e=T-t-1;for(let t=c.length-1;t>=0;t-=1)c[t].column===e&&w.push(t)}else w.push(T-t-1)}}else if(E+m>T-b){$=Math.max(E-(T-2*b),v);for(let e=0;e<$;e+=1){const t=e-Math.floor(e/T)*T;y?c.forEach((e,i)=>{e.column===t&&_.push(i)}):_.push(t)}}if(l.__preventObserver__=!0,requestAnimationFrame(()=>{l.__preventObserver__=!1}),S&&w.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.prepend(c[e]),c[e].swiperLoopMoveDOM=!1}),k&&_.forEach(e=>{c[e].swiperLoopMoveDOM=!0,h.append(c[e]),c[e].swiperLoopMoveDOM=!1}),l.recalcSlides(),"auto"===p.slidesPerView?l.updateSlides():y&&(w.length>0&&S||_.length>0&&k)&&l.slides.forEach((e,t)=>{l.grid.updateSlide(t,e,l.slides)}),p.watchSlidesProgress&&l.updateSlidesOffset(),i)if(w.length>0&&S){if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x+C]-e;o?l.setTranslate(l.translate-t):(l.slideTo(x+Math.ceil(C),0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else if(n){const e=y?w.length/p.grid.rows:w.length;l.slideTo(l.activeIndex+e,0,!1,!0),l.touchEventsData.currentTranslate=l.translate}}else if(_.length>0&&k)if(void 0===t){const e=l.slidesGrid[x],t=l.slidesGrid[x-$]-e;o?l.setTranslate(l.translate-t):(l.slideTo(x-$,0,!1,!0),n&&(l.touchEventsData.startTranslate=l.touchEventsData.startTranslate-t,l.touchEventsData.currentTranslate=l.touchEventsData.currentTranslate-t))}else{const e=y?_.length/p.grid.rows:_.length;l.slideTo(l.activeIndex-e,0,!1,!0)}if(l.allowSlidePrev=d,l.allowSlideNext=u,l.controller&&l.controller.control&&!r){const e={slideRealIndex:t,direction:s,setTranslate:n,activeSlideIndex:a,byController:!0};Array.isArray(l.controller.control)?l.controller.control.forEach(t=>{!t.destroyed&&t.params.loop&&t.loopFix({...e,slideTo:t.params.slidesPerView===p.slidesPerView&&i})}):l.controller.control instanceof l.constructor&&l.controller.control.params.loop&&l.controller.control.loopFix({...e,slideTo:l.controller.control.params.slidesPerView===p.slidesPerView&&i})}l.emit("loopFix")},loopDestroy:function(){const e=this,{params:t,slidesEl:i}=e;if(!t.loop||e.virtual&&e.params.virtual.enabled)return;e.recalcSlides();const s=[];e.slides.forEach(e=>{const t=void 0===e.swiperSlideIndex?1*e.getAttribute("data-swiper-slide-index"):e.swiperSlideIndex;s[t]=e}),e.slides.forEach(e=>{e.removeAttribute("data-swiper-slide-index")}),s.forEach(e=>{i.append(e)}),e.recalcSlides(),e.slideTo(e.realIndex,0)}},grabCursor:{setGrabCursor:function(e){const t=this;if(!t.params.simulateTouch||t.params.watchOverflow&&t.isLocked||t.params.cssMode)return;const i="container"===t.params.touchEventsTarget?t.el:t.wrapperEl;t.isElement&&(t.__preventObserver__=!0),i.style.cursor="move",i.style.cursor=e?"grabbing":"grab",t.isElement&&requestAnimationFrame(()=>{t.__preventObserver__=!1})},unsetGrabCursor:function(){const e=this;e.params.watchOverflow&&e.isLocked||e.params.cssMode||(e.isElement&&(e.__preventObserver__=!0),e["container"===e.params.touchEventsTarget?"el":"wrapperEl"].style.cursor="",e.isElement&&requestAnimationFrame(()=>{e.__preventObserver__=!1}))}},events:{attachEvents:function(){const e=this,{params:t}=e;e.onTouchStart=function(e){const t=this,i=s();let n=e;n.originalEvent&&(n=n.originalEvent);const r=t.touchEventsData;if("pointerdown"===n.type){if(null!==r.pointerId&&r.pointerId!==n.pointerId)return;r.pointerId=n.pointerId}else"touchstart"===n.type&&1===n.targetTouches.length&&(r.touchId=n.targetTouches[0].identifier);if("touchstart"===n.type)return void R(t,n,n.targetTouches[0].pageX);const{params:o,touches:c,enabled:d}=t;if(!d)return;if(!o.simulateTouch&&"mouse"===n.pointerType)return;if(t.animating&&o.preventInteractionOnTransition)return;!t.animating&&o.cssMode&&o.loop&&t.loopFix();let u=n.target;if("wrapper"===o.touchEventsTarget&&!function(e,t){const i=t.contains(e);return!i&&t instanceof HTMLSlotElement?[...t.assignedElements()].includes(e):i}(u,t.wrapperEl))return;if("which"in n&&3===n.which)return;if("button"in n&&n.button>0)return;if(r.isTouched&&r.isMoved)return;const h=!!o.noSwipingClass&&""!==o.noSwipingClass,p=n.composedPath?n.composedPath():n.path;h&&n.target&&n.target.shadowRoot&&p&&(u=p[0]);const f=o.noSwipingSelector?o.noSwipingSelector:`.${o.noSwipingClass}`,m=!(!n.target||!n.target.shadowRoot);if(o.noSwiping&&(m?function(e,t){return void 0===t&&(t=this),function t(i){if(!i||i===s()||i===a())return null;i.assignedSlot&&(i=i.assignedSlot);const n=i.closest(e);return n||i.getRootNode?n||t(i.getRootNode().host):null}(t)}(f,u):u.closest(f)))return void(t.allowClick=!0);if(o.swipeHandler&&!u.closest(o.swipeHandler))return;c.currentX=n.pageX,c.currentY=n.pageY;const g=c.currentX,v=c.currentY;if(!R(t,n,g))return;Object.assign(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),c.startX=g,c.startY=v,r.touchStartTime=l(),t.allowClick=!0,t.updateSize(),t.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1);let b=!0;u.matches(r.focusableElements)&&(b=!1,"SELECT"===u.nodeName&&(r.isTouched=!1)),i.activeElement&&i.activeElement.matches(r.focusableElements)&&i.activeElement!==u&&("mouse"===n.pointerType||"mouse"!==n.pointerType&&!u.matches(r.focusableElements))&&i.activeElement.blur();const y=b&&t.allowTouchMove&&o.touchStartPreventDefault;!o.touchStartForcePreventDefault&&!y||u.isContentEditable||n.preventDefault(),o.freeMode&&o.freeMode.enabled&&t.freeMode&&t.animating&&!o.cssMode&&t.freeMode.onTouchStart(),t.emit("touchStart",n)}.bind(e),e.onTouchMove=function(e){const t=s(),i=this,n=i.touchEventsData,{params:a,touches:r,rtlTranslate:o,enabled:c}=i;if(!c)return;if(!a.simulateTouch&&"mouse"===e.pointerType)return;let d,u=e;if(u.originalEvent&&(u=u.originalEvent),"pointermove"===u.type){if(null!==n.touchId)return;if(u.pointerId!==n.pointerId)return}if("touchmove"===u.type){if(!(d=[...u.changedTouches].filter(e=>e.identifier===n.touchId)[0])||d.identifier!==n.touchId)return}else d=u;if(!n.isTouched)return void(n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",u));const h=d.pageX,p=d.pageY;if(u.preventedByNestedSwiper)return r.startX=h,void(r.startY=p);if(!i.allowTouchMove)return u.target.matches(n.focusableElements)||(i.allowClick=!1),void(n.isTouched&&(Object.assign(r,{startX:h,startY:p,currentX:h,currentY:p}),n.touchStartTime=l()));if(a.touchReleaseOnEdges&&!a.loop)if(i.isVertical()){if(p<r.startY&&i.translate<=i.maxTranslate()||p>r.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(h<r.startX&&i.translate<=i.maxTranslate()||h>r.startX&&i.translate>=i.minTranslate())return;if(t.activeElement&&t.activeElement.matches(n.focusableElements)&&t.activeElement!==u.target&&"mouse"!==u.pointerType&&t.activeElement.blur(),t.activeElement&&u.target===t.activeElement&&u.target.matches(n.focusableElements))return n.isMoved=!0,void(i.allowClick=!1);n.allowTouchCallbacks&&i.emit("touchMove",u),r.previousX=r.currentX,r.previousY=r.currentY,r.currentX=h,r.currentY=p;const f=r.currentX-r.startX,m=r.currentY-r.startY;if(i.params.threshold&&Math.sqrt(f**2+m**2)<i.params.threshold)return;if(void 0===n.isScrolling){let e;i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:f*f+m*m>=25&&(e=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,n.isScrolling=i.isHorizontal()?e>a.touchAngle:90-e>a.touchAngle)}if(n.isScrolling&&i.emit("touchMoveOpposite",u),void 0===n.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling||"touchmove"===u.type&&n.preventTouchMoveFromPointerMove)return void(n.isTouched=!1);if(!n.startMoving)return;i.allowClick=!1,!a.cssMode&&u.cancelable&&u.preventDefault(),a.touchMoveStopPropagation&&!a.nested&&u.stopPropagation();let g=i.isHorizontal()?f:m,v=i.isHorizontal()?r.currentX-r.previousX:r.currentY-r.previousY;a.oneWayMovement&&(g=Math.abs(g)*(o?1:-1),v=Math.abs(v)*(o?1:-1)),r.diff=g,g*=a.touchRatio,o&&(g=-g,v=-v);const b=i.touchesDirection;i.swipeDirection=g>0?"prev":"next",i.touchesDirection=v>0?"prev":"next";const y=i.params.loop&&!a.cssMode,w="next"===i.touchesDirection&&i.allowSlideNext||"prev"===i.touchesDirection&&i.allowSlidePrev;if(!n.isMoved){if(y&&w&&i.loopFix({direction:i.swipeDirection}),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating){const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0,detail:{bySwiperTouchMove:!0}});i.wrapperEl.dispatchEvent(e)}n.allowMomentumBounce=!1,!a.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",u)}if((new Date).getTime(),n.isMoved&&n.allowThresholdMove&&b!==i.touchesDirection&&y&&w&&Math.abs(g)>=1)return Object.assign(r,{startX:h,startY:p,currentX:h,currentY:p,startTranslate:n.currentTranslate}),n.loopSwapReset=!0,void(n.startTranslate=n.currentTranslate);i.emit("sliderMove",u),n.isMoved=!0,n.currentTranslate=g+n.startTranslate;let _=!0,x=a.resistanceRatio;if(a.touchReleaseOnEdges&&(x=0),g>0?(y&&w&&n.allowThresholdMove&&n.currentTranslate>(a.centeredSlides?i.minTranslate()-i.slidesSizesGrid[i.activeIndex+1]-("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.activeIndex+1]+i.params.spaceBetween:0)-i.params.spaceBetween:i.minTranslate())&&i.loopFix({direction:"prev",setTranslate:!0,activeSlideIndex:0}),n.currentTranslate>i.minTranslate()&&(_=!1,a.resistance&&(n.currentTranslate=i.minTranslate()-1+(-i.minTranslate()+n.startTranslate+g)**x))):g<0&&(y&&w&&n.allowThresholdMove&&n.currentTranslate<(a.centeredSlides?i.maxTranslate()+i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween+("auto"!==a.slidesPerView&&i.slides.length-a.slidesPerView>=2?i.slidesSizesGrid[i.slidesSizesGrid.length-1]+i.params.spaceBetween:0):i.maxTranslate())&&i.loopFix({direction:"next",setTranslate:!0,activeSlideIndex:i.slides.length-("auto"===a.slidesPerView?i.slidesPerViewDynamic():Math.ceil(parseFloat(a.slidesPerView,10)))}),n.currentTranslate<i.maxTranslate()&&(_=!1,a.resistance&&(n.currentTranslate=i.maxTranslate()+1-(i.maxTranslate()-n.startTranslate-g)**x))),_&&(u.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),i.allowSlidePrev||i.allowSlideNext||(n.currentTranslate=n.startTranslate),a.threshold>0){if(!(Math.abs(g)>a.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}a.followFinger&&!a.cssMode&&((a.freeMode&&a.freeMode.enabled&&i.freeMode||a.watchSlidesProgress)&&(i.updateActiveIndex(),i.updateSlidesClasses()),a.freeMode&&a.freeMode.enabled&&i.freeMode&&i.freeMode.onTouchMove(),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}.bind(e),e.onTouchEnd=function(e){const t=this,i=t.touchEventsData;let s,n=e;if(n.originalEvent&&(n=n.originalEvent),"touchend"===n.type||"touchcancel"===n.type){if(!(s=[...n.changedTouches].filter(e=>e.identifier===i.touchId)[0])||s.identifier!==i.touchId)return}else{if(null!==i.touchId)return;if(n.pointerId!==i.pointerId)return;s=n}if(["pointercancel","pointerout","pointerleave","contextmenu"].includes(n.type)&&(!["pointercancel","contextmenu"].includes(n.type)||!t.browser.isSafari&&!t.browser.isWebView))return;i.pointerId=null,i.touchId=null;const{params:a,touches:r,rtlTranslate:c,slidesGrid:d,enabled:u}=t;if(!u)return;if(!a.simulateTouch&&"mouse"===n.pointerType)return;if(i.allowTouchCallbacks&&t.emit("touchEnd",n),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&a.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);a.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);const h=l(),p=h-i.touchStartTime;if(t.allowClick){const e=n.path||n.composedPath&&n.composedPath();t.updateClickedSlide(e&&e[0]||n.target,e),t.emit("tap click",n),p<300&&h-i.lastClickTime<300&&t.emit("doubleTap doubleClick",n)}if(i.lastClickTime=l(),o(()=>{t.destroyed||(t.allowClick=!0)}),!i.isTouched||!i.isMoved||!t.swipeDirection||0===r.diff&&!i.loopSwapReset||i.currentTranslate===i.startTranslate&&!i.loopSwapReset)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);let f;if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,f=a.followFinger?c?t.translate:-t.translate:-i.currentTranslate,a.cssMode)return;if(a.freeMode&&a.freeMode.enabled)return void t.freeMode.onTouchEnd({currentPos:f});const m=f>=-t.maxTranslate()&&!t.params.loop;let g=0,v=t.slidesSizesGrid[0];for(let e=0;e<d.length;e+=e<a.slidesPerGroupSkip?1:a.slidesPerGroup){const t=e<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;void 0!==d[e+t]?(m||f>=d[e]&&f<d[e+t])&&(g=e,v=d[e+t]-d[e]):(m||f>=d[e])&&(g=e,v=d[d.length-1]-d[d.length-2])}let b=null,y=null;a.rewind&&(t.isBeginning?y=a.virtual&&a.virtual.enabled&&t.virtual?t.virtual.slides.length-1:t.slides.length-1:t.isEnd&&(b=0));const w=(f-d[g])/v,_=g<a.slidesPerGroupSkip-1?1:a.slidesPerGroup;if(p>a.longSwipesMs){if(!a.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(w>=a.longSwipesRatio?t.slideTo(a.rewind&&t.isEnd?b:g+_):t.slideTo(g)),"prev"===t.swipeDirection&&(w>1-a.longSwipesRatio?t.slideTo(g+_):null!==y&&w<0&&Math.abs(w)>a.longSwipesRatio?t.slideTo(y):t.slideTo(g))}else{if(!a.shortSwipes)return void t.slideTo(t.activeIndex);!t.navigation||n.target!==t.navigation.nextEl&&n.target!==t.navigation.prevEl?("next"===t.swipeDirection&&t.slideTo(null!==b?b:g+_),"prev"===t.swipeDirection&&t.slideTo(null!==y?y:g)):n.target===t.navigation.nextEl?t.slideTo(g+_):t.slideTo(g)}}.bind(e),e.onDocumentTouchStart=function(){const e=this;e.documentTouchHandlerProceeded||(e.documentTouchHandlerProceeded=!0,e.params.touchReleaseOnEdges&&(e.el.style.touchAction="auto"))}.bind(e),t.cssMode&&(e.onScroll=function(){const e=this,{wrapperEl:t,rtlTranslate:i,enabled:s}=e;if(!s)return;let n;e.previousTranslate=e.translate,e.isHorizontal()?e.translate=-t.scrollLeft:e.translate=-t.scrollTop,0===e.translate&&(e.translate=0),e.updateActiveIndex(),e.updateSlidesClasses();const a=e.maxTranslate()-e.minTranslate();(n=0===a?0:(e.translate-e.minTranslate())/a)!==e.progress&&e.updateProgress(i?-e.translate:e.translate),e.emit("setTranslate",e.translate,!1)}.bind(e)),e.onClick=function(e){const t=this;t.enabled&&(t.allowClick||(t.params.preventClicks&&e.preventDefault(),t.params.preventClicksPropagation&&t.animating&&(e.stopPropagation(),e.stopImmediatePropagation())))}.bind(e),e.onLoad=function(e){const t=this;L(t,e.target),t.params.cssMode||"auto"!==t.params.slidesPerView&&!t.params.autoHeight||t.update()}.bind(e),B(e,"on")},detachEvents:function(){B(this,"off")}},breakpoints:{setBreakpoint:function(){const e=this,{realIndex:t,initialized:i,params:s,el:n}=e,a=s.breakpoints;if(!a||a&&0===Object.keys(a).length)return;const r=e.getBreakpoint(a,e.params.breakpointsBase,e.el);if(!r||e.currentBreakpoint===r)return;const o=(r in a?a[r]:void 0)||e.originalParams,l=H(e,s),c=H(e,o),d=e.params.grabCursor,h=o.grabCursor,p=s.enabled;l&&!c?(n.classList.remove(`${s.containerModifierClass}grid`,`${s.containerModifierClass}grid-column`),e.emitContainerClasses()):!l&&c&&(n.classList.add(`${s.containerModifierClass}grid`),(o.grid.fill&&"column"===o.grid.fill||!o.grid.fill&&"column"===s.grid.fill)&&n.classList.add(`${s.containerModifierClass}grid-column`),e.emitContainerClasses()),d&&!h?e.unsetGrabCursor():!d&&h&&e.setGrabCursor(),["navigation","pagination","scrollbar"].forEach(t=>{if(void 0===o[t])return;const i=s[t]&&s[t].enabled,n=o[t]&&o[t].enabled;i&&!n&&e[t].disable(),!i&&n&&e[t].enable()});const f=o.direction&&o.direction!==s.direction,m=s.loop&&(o.slidesPerView!==s.slidesPerView||f),g=s.loop;f&&i&&e.changeDirection(),u(e.params,o);const v=e.params.enabled,b=e.params.loop;Object.assign(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),p&&!v?e.disable():!p&&v&&e.enable(),e.currentBreakpoint=r,e.emit("_beforeBreakpoint",o),i&&(m?(e.loopDestroy(),e.loopCreate(t),e.updateSlides()):!g&&b?(e.loopCreate(t),e.updateSlides()):g&&!b&&e.loopDestroy()),e.emit("breakpoint",o)},getBreakpoint:function(e,t,i){if(void 0===t&&(t="window"),!e||"container"===t&&!i)return;let s=!1;const n=a(),r="window"===t?n.innerHeight:i.clientHeight,o=Object.keys(e).map(e=>{if("string"==typeof e&&0===e.indexOf("@")){const t=parseFloat(e.substr(1));return{value:r*t,point:e}}return{value:e,point:e}});o.sort((e,t)=>parseInt(e.value,10)-parseInt(t.value,10));for(let e=0;e<o.length;e+=1){const{point:a,value:r}=o[e];"window"===t?n.matchMedia(`(min-width: ${r}px)`).matches&&(s=a):r<=i.clientWidth&&(s=a)}return s||"max"}},checkOverflow:{checkOverflow:function(){const e=this,{isLocked:t,params:i}=e,{slidesOffsetBefore:s}=i;if(s){const t=e.slides.length-1,i=e.slidesGrid[t]+e.slidesSizesGrid[t]+2*s;e.isLocked=e.size>i}else e.isLocked=1===e.snapGrid.length;!0===i.allowSlideNext&&(e.allowSlideNext=!e.isLocked),!0===i.allowSlidePrev&&(e.allowSlidePrev=!e.isLocked),t&&t!==e.isLocked&&(e.isEnd=!1),t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock")}},classes:{addClasses:function(){const e=this,{classNames:t,params:i,rtl:s,el:n,device:a}=e,r=function(e,t){const i=[];return e.forEach(e=>{"object"==typeof e?Object.keys(e).forEach(s=>{e[s]&&i.push(t+s)}):"string"==typeof e&&i.push(t+e)}),i}(["initialized",i.direction,{"free-mode":e.params.freeMode&&i.freeMode.enabled},{autoheight:i.autoHeight},{rtl:s},{grid:i.grid&&i.grid.rows>1},{"grid-column":i.grid&&i.grid.rows>1&&"column"===i.grid.fill},{android:a.android},{ios:a.ios},{"css-mode":i.cssMode},{centered:i.cssMode&&i.centeredSlides},{"watch-progress":i.watchSlidesProgress}],i.containerModifierClass);t.push(...r),n.classList.add(...t),e.emitContainerClasses()},removeClasses:function(){const{el:e,classNames:t}=this;e&&"string"!=typeof e&&(e.classList.remove(...t),this.emitContainerClasses())}}},Y={};class q{constructor(){let e,t;for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];1===n.length&&n[0].constructor&&"Object"===Object.prototype.toString.call(n[0]).slice(8,-1)?t=n[0]:[e,t]=n,t||(t={}),t=u({},t),e&&!t.el&&(t.el=e);const r=s();if(t.el&&"string"==typeof t.el&&r.querySelectorAll(t.el).length>1){const e=[];return r.querySelectorAll(t.el).forEach(i=>{const s=u({},t,{el:i});e.push(new q(s))}),e}const o=this;o.__swiper__=!0,o.support=D(),o.device=M({userAgent:t.userAgent}),o.browser=I(),o.eventsListeners={},o.eventsAnyListeners=[],o.modules=[...o.__modules__],t.modules&&Array.isArray(t.modules)&&o.modules.push(...t.modules);const l={};o.modules.forEach(e=>{e({params:t,swiper:o,extendParams:W(t,l),on:o.on.bind(o),once:o.once.bind(o),off:o.off.bind(o),emit:o.emit.bind(o)})});const c=u({},F,l);return o.params=u({},c,Y,t),o.originalParams=u({},o.params),o.passedParams=u({},t),o.params&&o.params.on&&Object.keys(o.params.on).forEach(e=>{o.on(e,o.params.on[e])}),o.params&&o.params.onAny&&o.onAny(o.params.onAny),Object.assign(o,{enabled:o.params.enabled,el:e,classNames:[],slides:[],slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:()=>"horizontal"===o.params.direction,isVertical:()=>"vertical"===o.params.direction,activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,cssOverflowAdjustment(){return Math.trunc(this.translate/2**23)*2**23},allowSlideNext:o.params.allowSlideNext,allowSlidePrev:o.params.allowSlidePrev,touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,focusableElements:o.params.focusableElements,lastClickTime:0,clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,startMoving:void 0,pointerId:null,touchId:null},allowClick:!0,allowTouchMove:o.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),o.emit("_swiper"),o.params.init&&o.init(),o}getDirectionLabel(e){return this.isHorizontal()?e:{width:"height","margin-top":"margin-left","margin-bottom ":"margin-right","margin-left":"margin-top","margin-right":"margin-bottom","padding-left":"padding-top","padding-right":"padding-bottom",marginRight:"marginBottom"}[e]}getSlideIndex(e){const{slidesEl:t,params:i}=this,s=w(m(t,`.${i.slideClass}, swiper-slide`)[0]);return w(e)-s}getSlideIndexByData(e){return this.getSlideIndex(this.slides.filter(t=>1*t.getAttribute("data-swiper-slide-index")===e)[0])}recalcSlides(){const{slidesEl:e,params:t}=this;this.slides=m(e,`.${t.slideClass}, swiper-slide`)}enable(){const e=this;e.enabled||(e.enabled=!0,e.params.grabCursor&&e.setGrabCursor(),e.emit("enable"))}disable(){const e=this;e.enabled&&(e.enabled=!1,e.params.grabCursor&&e.unsetGrabCursor(),e.emit("disable"))}setProgress(e,t){const i=this;e=Math.min(Math.max(e,0),1);const s=i.minTranslate(),n=(i.maxTranslate()-s)*e+s;i.translateTo(n,void 0===t?0:t),i.updateActiveIndex(),i.updateSlidesClasses()}emitContainerClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=e.el.className.split(" ").filter(t=>0===t.indexOf("swiper")||0===t.indexOf(e.params.containerModifierClass));e.emit("_containerClasses",t.join(" "))}getSlideClasses(e){const t=this;return t.destroyed?"":e.className.split(" ").filter(e=>0===e.indexOf("swiper-slide")||0===e.indexOf(t.params.slideClass)).join(" ")}emitSlidesClasses(){const e=this;if(!e.params._emitClasses||!e.el)return;const t=[];e.slides.forEach(i=>{const s=e.getSlideClasses(i);t.push({slideEl:i,classNames:s}),e.emit("_slideClass",i,s)}),e.emit("_slideClasses",t)}slidesPerViewDynamic(e,t){void 0===e&&(e="current"),void 0===t&&(t=!1);const{params:i,slides:s,slidesGrid:n,slidesSizesGrid:a,size:r,activeIndex:o}=this;let l=1;if("number"==typeof i.slidesPerView)return i.slidesPerView;if(i.centeredSlides){let e,t=s[o]?Math.ceil(s[o].swiperSlideSize):0;for(let i=o+1;i<s.length;i+=1)s[i]&&!e&&(l+=1,(t+=Math.ceil(s[i].swiperSlideSize))>r&&(e=!0));for(let i=o-1;i>=0;i-=1)s[i]&&!e&&(l+=1,(t+=s[i].swiperSlideSize)>r&&(e=!0))}else if("current"===e)for(let e=o+1;e<s.length;e+=1)(t?n[e]+a[e]-n[o]<r:n[e]-n[o]<r)&&(l+=1);else for(let e=o-1;e>=0;e-=1)n[o]-n[e]<r&&(l+=1);return l}update(){const e=this;if(!e||e.destroyed)return;const{snapGrid:t,params:i}=e;function s(){const t=e.rtlTranslate?-1*e.translate:e.translate,i=Math.min(Math.max(t,e.maxTranslate()),e.minTranslate());e.setTranslate(i),e.updateActiveIndex(),e.updateSlidesClasses()}let n;if(i.breakpoints&&e.setBreakpoint(),[...e.el.querySelectorAll('[loading="lazy"]')].forEach(t=>{t.complete&&L(e,t)}),e.updateSize(),e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),i.freeMode&&i.freeMode.enabled&&!i.cssMode)s(),i.autoHeight&&e.updateAutoHeight();else{if(("auto"===i.slidesPerView||i.slidesPerView>1)&&e.isEnd&&!i.centeredSlides){const t=e.virtual&&i.virtual.enabled?e.virtual.slides:e.slides;n=e.slideTo(t.length-1,0,!1,!0)}else n=e.slideTo(e.activeIndex,0,!1,!0);n||s()}i.watchOverflow&&t!==e.snapGrid&&e.checkOverflow(),e.emit("update")}changeDirection(e,t){void 0===t&&(t=!0);const i=this,s=i.params.direction;return e||(e="horizontal"===s?"vertical":"horizontal"),e===s||"horizontal"!==e&&"vertical"!==e||(i.el.classList.remove(`${i.params.containerModifierClass}${s}`),i.el.classList.add(`${i.params.containerModifierClass}${e}`),i.emitContainerClasses(),i.params.direction=e,i.slides.forEach(t=>{"vertical"===e?t.style.width="":t.style.height=""}),i.emit("changeDirection"),t&&i.update()),i}changeLanguageDirection(e){const t=this;t.rtl&&"rtl"===e||!t.rtl&&"ltr"===e||(t.rtl="rtl"===e,t.rtlTranslate="horizontal"===t.params.direction&&t.rtl,t.rtl?(t.el.classList.add(`${t.params.containerModifierClass}rtl`),t.el.dir="rtl"):(t.el.classList.remove(`${t.params.containerModifierClass}rtl`),t.el.dir="ltr"),t.update())}mount(e){const t=this;if(t.mounted)return!0;let i=e||t.params.el;if("string"==typeof i&&(i=document.querySelector(i)),!i)return!1;i.swiper=t,i.parentNode&&i.parentNode.host&&i.parentNode.host.nodeName===t.params.swiperElementNodeName.toUpperCase()&&(t.isElement=!0);const s=()=>`.${(t.params.wrapperClass||"").trim().split(" ").join(".")}`;let n=(()=>i&&i.shadowRoot&&i.shadowRoot.querySelector?i.shadowRoot.querySelector(s()):m(i,s())[0])();return!n&&t.params.createElements&&(n=v("div",t.params.wrapperClass),i.append(n),m(i,`.${t.params.slideClass}`).forEach(e=>{n.append(e)})),Object.assign(t,{el:i,wrapperEl:n,slidesEl:t.isElement&&!i.parentNode.host.slideSlots?i.parentNode.host:n,hostEl:t.isElement?i.parentNode.host:i,mounted:!0,rtl:"rtl"===i.dir.toLowerCase()||"rtl"===y(i,"direction"),rtlTranslate:"horizontal"===t.params.direction&&("rtl"===i.dir.toLowerCase()||"rtl"===y(i,"direction")),wrongRTL:"-webkit-box"===y(n,"display")}),!0}init(e){const t=this;if(t.initialized)return t;if(!1===t.mount(e))return t;t.emit("beforeInit"),t.params.breakpoints&&t.setBreakpoint(),t.addClasses(),t.updateSize(),t.updateSlides(),t.params.watchOverflow&&t.checkOverflow(),t.params.grabCursor&&t.enabled&&t.setGrabCursor(),t.params.loop&&t.virtual&&t.params.virtual.enabled?t.slideTo(t.params.initialSlide+t.virtual.slidesBefore,0,t.params.runCallbacksOnInit,!1,!0):t.slideTo(t.params.initialSlide,0,t.params.runCallbacksOnInit,!1,!0),t.params.loop&&t.loopCreate(),t.attachEvents();const i=[...t.el.querySelectorAll('[loading="lazy"]')];return t.isElement&&i.push(...t.hostEl.querySelectorAll('[loading="lazy"]')),i.forEach(e=>{e.complete?L(t,e):e.addEventListener("load",e=>{L(t,e.target)})}),z(t),t.initialized=!0,z(t),t.emit("init"),t.emit("afterInit"),t}destroy(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);const i=this,{params:s,el:n,wrapperEl:a,slides:r}=i;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),s.loop&&i.loopDestroy(),t&&(i.removeClasses(),n&&"string"!=typeof n&&n.removeAttribute("style"),a&&a.removeAttribute("style"),r&&r.length&&r.forEach(e=>{e.classList.remove(s.slideVisibleClass,s.slideFullyVisibleClass,s.slideActiveClass,s.slideNextClass,s.slidePrevClass),e.removeAttribute("style"),e.removeAttribute("data-swiper-slide-index")})),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(e=>{i.off(e)}),!1!==e&&(i.el&&"string"!=typeof i.el&&(i.el.swiper=null),function(e){const t=i;Object.keys(t).forEach(e=>{try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}})}()),i.destroyed=!0),null}static extendDefaults(e){u(Y,e)}static get extendedDefaults(){return Y}static get defaults(){return F}static installModule(e){q.prototype.__modules__||(q.prototype.__modules__=[]);const t=q.prototype.__modules__;"function"==typeof e&&t.indexOf(e)<0&&t.push(e)}static use(e){return Array.isArray(e)?(e.forEach(e=>q.installModule(e)),q):(q.installModule(e),q)}}function V(e,t,i,s){return e.params.createElements&&Object.keys(s).forEach(n=>{if(!i[n]&&!0===i.auto){let a=m(e.el,`.${s[n]}`)[0];a||((a=v("div",s[n])).className=s[n],e.el.append(a)),i[n]=a,t[n]=a}}),i}function G(e){return void 0===e&&(e=""),`.${e.trim().replace(/([\.:!+\/])/g,"\\$1").replace(/ /g,".")}`}function X(e){const t=this,{params:i,slidesEl:s}=t;i.loop&&t.loopDestroy();const n=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,s.append(t.children[0]),t.innerHTML=""}else s.append(e)};if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&n(e[t]);else n(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update()}function J(e){const t=this,{params:i,activeIndex:s,slidesEl:n}=t;i.loop&&t.loopDestroy();let a=s+1;const r=e=>{if("string"==typeof e){const t=document.createElement("div");t.innerHTML=e,n.prepend(t.children[0]),t.innerHTML=""}else n.prepend(e)};if("object"==typeof e&&"length"in e){for(let t=0;t<e.length;t+=1)e[t]&&r(e[t]);a=s+e.length}else r(e);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),t.slideTo(a,0,!1)}function K(e,t){const i=this,{params:s,activeIndex:n,slidesEl:a}=i;let r=n;s.loop&&(r-=i.loopedSlides,i.loopDestroy(),i.recalcSlides());const o=i.slides.length;if(e<=0)return void i.prependSlide(t);if(e>=o)return void i.appendSlide(t);let l=r>e?r+1:r;const c=[];for(let t=o-1;t>=e;t-=1){const e=i.slides[t];e.remove(),c.unshift(e)}if("object"==typeof t&&"length"in t){for(let e=0;e<t.length;e+=1)t[e]&&a.append(t[e]);l=r>e?r+t.length:r}else a.append(t);for(let e=0;e<c.length;e+=1)a.append(c[e]);i.recalcSlides(),s.loop&&i.loopCreate(),s.observer&&!i.isElement||i.update(),s.loop?i.slideTo(l+i.loopedSlides,0,!1):i.slideTo(l,0,!1)}function Q(e){const t=this,{params:i,activeIndex:s}=t;let n=s;i.loop&&(n-=t.loopedSlides,t.loopDestroy());let a,r=n;if("object"==typeof e&&"length"in e){for(let i=0;i<e.length;i+=1)a=e[i],t.slides[a]&&t.slides[a].remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=e,t.slides[a]&&t.slides[a].remove(),a<r&&(r-=1),r=Math.max(r,0);t.recalcSlides(),i.loop&&t.loopCreate(),i.observer&&!t.isElement||t.update(),i.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)}function Z(){const e=this,t=[];for(let i=0;i<e.slides.length;i+=1)t.push(i);e.removeSlide(t)}function ee(e){const{effect:t,swiper:i,on:s,setTranslate:n,setTransition:a,overwriteParams:r,perspective:o,recreateShadows:l,getEffectParams:c}=e;let d;s("beforeInit",()=>{if(i.params.effect!==t)return;i.classNames.push(`${i.params.containerModifierClass}${t}`),o&&o()&&i.classNames.push(`${i.params.containerModifierClass}3d`);const e=r?r():{};Object.assign(i.params,e),Object.assign(i.originalParams,e)}),s("setTranslate",()=>{i.params.effect===t&&n()}),s("setTransition",(e,s)=>{i.params.effect===t&&a(s)}),s("transitionEnd",()=>{if(i.params.effect===t&&l){if(!c||!c().slideShadows)return;i.slides.forEach(e=>{e.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(e=>e.remove())}),l()}}),s("virtualUpdate",()=>{i.params.effect===t&&(i.slides.length||(d=!0),requestAnimationFrame(()=>{d&&i.slides&&i.slides.length&&(n(),d=!1)}))})}function te(e,t){const i=f(t);return i!==t&&(i.style.backfaceVisibility="hidden",i.style["-webkit-backface-visibility"]="hidden"),i}function ie(e){let{swiper:t,duration:i,transformElements:s,allSlides:n}=e;const{activeIndex:a}=t;if(t.params.virtualTranslate&&0!==i){let e,i=!1;(e=n?s:s.filter(e=>{const i=e.classList.contains("swiper-slide-transform")?(e=>e.parentElement?e.parentElement:t.slides.filter(t=>t.shadowRoot&&t.shadowRoot===e.parentNode)[0])(e):e;return t.getSlideIndex(i)===a})).forEach(e=>{x(e,()=>{if(i)return;if(!t||t.destroyed)return;i=!0,t.animating=!1;const e=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});t.wrapperEl.dispatchEvent(e)})})}}function se(e,t,i){const s=`swiper-slide-shadow${i?`-${i}`:""}${e?` swiper-slide-shadow-${e}`:""}`,n=f(t);let a=n.querySelector(`.${s.split(" ").join(".")}`);return a||(a=v("div",s.split(" ")),n.append(a)),a}Object.keys(U).forEach(e=>{Object.keys(U[e]).forEach(t=>{q.prototype[t]=U[e][t]})}),q.use([function(e){let{swiper:t,on:i,emit:s}=e;const n=a();let r=null,o=null;const l=()=>{t&&!t.destroyed&&t.initialized&&(s("beforeResize"),s("resize"))},c=()=>{t&&!t.destroyed&&t.initialized&&s("orientationchange")};i("init",()=>{t.params.resizeObserver&&void 0!==n.ResizeObserver?t&&!t.destroyed&&t.initialized&&(r=new ResizeObserver(e=>{o=n.requestAnimationFrame(()=>{const{width:i,height:s}=t;let n=i,a=s;e.forEach(e=>{let{contentBoxSize:i,contentRect:s,target:r}=e;r&&r!==t.el||(n=s?s.width:(i[0]||i).inlineSize,a=s?s.height:(i[0]||i).blockSize)}),n===i&&a===s||l()})})).observe(t.el):(n.addEventListener("resize",l),n.addEventListener("orientationchange",c))}),i("destroy",()=>{o&&n.cancelAnimationFrame(o),r&&r.unobserve&&t.el&&(r.unobserve(t.el),r=null),n.removeEventListener("resize",l),n.removeEventListener("orientationchange",c)})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r=[],o=a(),l=function(e,i){void 0===i&&(i={});const s=new(o.MutationObserver||o.WebkitMutationObserver)(e=>{if(t.__preventObserver__)return;if(1===e.length)return void n("observerUpdate",e[0]);const i=function(){n("observerUpdate",e[0])};o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0)});s.observe(e,{attributes:void 0===i.attributes||i.attributes,childList:t.isElement||(void 0===i.childList||i).childList,characterData:void 0===i.characterData||i.characterData}),r.push(s)};i({observer:!1,observeParents:!1,observeSlideChildren:!1}),s("init",()=>{if(t.params.observer){if(t.params.observeParents){const e=_(t.hostEl);for(let t=0;t<e.length;t+=1)l(e[t])}l(t.hostEl,{childList:t.params.observeSlideChildren}),l(t.wrapperEl,{attributes:!1})}}),s("destroy",()=>{r.forEach(e=>{e.disconnect()}),r.splice(0,r.length)})}]);const ne=[function(e){let t,{swiper:i,extendParams:n,on:a,emit:r}=e;n({virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,renderExternalUpdate:!0,addSlidesBefore:0,addSlidesAfter:0}});const o=s();i.virtual={cache:{},from:void 0,to:void 0,slides:[],offset:0,slidesGrid:[]};const l=o.createElement("div");function c(e,t){const s=i.params.virtual;if(s.cache&&i.virtual.cache[t])return i.virtual.cache[t];let n;return s.renderSlide?"string"==typeof(n=s.renderSlide.call(i,e,t))&&(l.innerHTML=n,n=l.children[0]):n=i.isElement?v("swiper-slide"):v("div",i.params.slideClass),n.setAttribute("data-swiper-slide-index",t),s.renderSlide||(n.innerHTML=e),s.cache&&(i.virtual.cache[t]=n),n}function d(e,t){const{slidesPerView:s,slidesPerGroup:n,centeredSlides:a,loop:o,initialSlide:l}=i.params;if(t&&!o&&l>0)return;const{addSlidesBefore:d,addSlidesAfter:u}=i.params.virtual,{from:h,to:p,slides:f,slidesGrid:g,offset:v}=i.virtual;i.params.cssMode||i.updateActiveIndex();const b=i.activeIndex||0;let y,w,_;y=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",a?(w=Math.floor(s/2)+n+u,_=Math.floor(s/2)+n+d):(w=s+(n-1)+u,_=(o?s:n)+d);let x=b-_,k=b+w;o||(x=Math.max(x,0),k=Math.min(k,f.length-1));let S=(i.slidesGrid[x]||0)-(i.slidesGrid[0]||0);function C(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),r("virtualUpdate")}if(o&&b>=_?(x-=_,a||(S+=i.slidesGrid[0])):o&&b<_&&(x=-_,a&&(S+=i.slidesGrid[0])),Object.assign(i.virtual,{from:x,to:k,offset:S,slidesGrid:i.slidesGrid,slidesBefore:_,slidesAfter:w}),h===x&&p===k&&!e)return i.slidesGrid!==g&&S!==v&&i.slides.forEach(e=>{e.style[y]=S-Math.abs(i.cssOverflowAdjustment())+"px"}),i.updateProgress(),void r("virtualUpdate");if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:S,from:x,to:k,slides:function(){const e=[];for(let t=x;t<=k;t+=1)e.push(f[t]);return e}()}),void(i.params.virtual.renderExternalUpdate?C():r("virtualUpdate"));const $=[],T=[],E=e=>{let t=e;return e<0?t=f.length+e:t>=f.length&&(t-=f.length),t};if(e)i.slides.filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`)).forEach(e=>{e.remove()});else for(let e=h;e<=p;e+=1)if(e<x||e>k){const t=E(e);i.slides.filter(e=>e.matches(`.${i.params.slideClass}[data-swiper-slide-index="${t}"], swiper-slide[data-swiper-slide-index="${t}"]`)).forEach(e=>{e.remove()})}const D=o?-f.length:0,M=o?2*f.length:f.length;for(let t=D;t<M;t+=1)if(t>=x&&t<=k){const i=E(t);void 0===p||e?T.push(i):(t>p&&T.push(i),t<h&&$.push(i))}if(T.forEach(e=>{i.slidesEl.append(c(f[e],e))}),o)for(let e=$.length-1;e>=0;e-=1){const t=$[e];i.slidesEl.prepend(c(f[t],t))}else $.sort((e,t)=>t-e),$.forEach(e=>{i.slidesEl.prepend(c(f[e],e))});m(i.slidesEl,".swiper-slide, swiper-slide").forEach(e=>{e.style[y]=S-Math.abs(i.cssOverflowAdjustment())+"px"}),C()}a("beforeInit",()=>{if(!i.params.virtual.enabled)return;let e;if(void 0===i.passedParams.virtual.slides){const t=[...i.slidesEl.children].filter(e=>e.matches(`.${i.params.slideClass}, swiper-slide`));t&&t.length&&(i.virtual.slides=[...t],e=!0,t.forEach((e,t)=>{e.setAttribute("data-swiper-slide-index",t),i.virtual.cache[t]=e,e.remove()}))}e||(i.virtual.slides=i.params.virtual.slides),i.classNames.push(`${i.params.containerModifierClass}virtual`),i.params.watchSlidesProgress=!0,i.originalParams.watchSlidesProgress=!0,d(!1,!0)}),a("setTranslate",()=>{i.params.virtual.enabled&&(i.params.cssMode&&!i._immediateVirtual?(clearTimeout(t),t=setTimeout(()=>{d()},100)):d())}),a("init update resize",()=>{i.params.virtual.enabled&&i.params.cssMode&&h(i.wrapperEl,"--swiper-virtual-size",`${i.virtualSize}px`)}),Object.assign(i.virtual,{appendSlide:function(e){if("object"==typeof e&&"length"in e)for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.push(e[t]);else i.virtual.slides.push(e);d(!0)},prependSlide:function(e){const t=i.activeIndex;let s=t+1,n=1;if(Array.isArray(e)){for(let t=0;t<e.length;t+=1)e[t]&&i.virtual.slides.unshift(e[t]);s=t+e.length,n=e.length}else i.virtual.slides.unshift(e);if(i.params.virtual.cache){const e=i.virtual.cache,t={};Object.keys(e).forEach(i=>{const s=e[i],a=s.getAttribute("data-swiper-slide-index");a&&s.setAttribute("data-swiper-slide-index",parseInt(a,10)+n),t[parseInt(i,10)+n]=s}),i.virtual.cache=t}d(!0),i.slideTo(s,0)},removeSlide:function(e){if(null==e)return;let t=i.activeIndex;if(Array.isArray(e))for(let s=e.length-1;s>=0;s-=1)i.params.virtual.cache&&(delete i.virtual.cache[e[s]],Object.keys(i.virtual.cache).forEach(t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e[s],1),e[s]<t&&(t-=1),t=Math.max(t,0);else i.params.virtual.cache&&(delete i.virtual.cache[e],Object.keys(i.virtual.cache).forEach(t=>{t>e&&(i.virtual.cache[t-1]=i.virtual.cache[t],i.virtual.cache[t-1].setAttribute("data-swiper-slide-index",t-1),delete i.virtual.cache[t])})),i.virtual.slides.splice(e,1),e<t&&(t-=1),t=Math.max(t,0);d(!0),i.slideTo(t,0)},removeAllSlides:function(){i.virtual.slides=[],i.params.virtual.cache&&(i.virtual.cache={}),d(!0),i.slideTo(0,0)},update:d})},function(e){let{swiper:t,extendParams:i,on:n,emit:r}=e;const o=s(),l=a();function c(e){if(!t.enabled)return;const{rtlTranslate:i}=t;let s=e;s.originalEvent&&(s=s.originalEvent);const n=s.keyCode||s.charCode,a=t.params.keyboard.pageUpDown,c=a&&33===n,d=a&&34===n,u=37===n,h=39===n,p=38===n,f=40===n;if(!t.allowSlideNext&&(t.isHorizontal()&&h||t.isVertical()&&f||d))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&u||t.isVertical()&&p||c))return!1;if(!(s.shiftKey||s.altKey||s.ctrlKey||s.metaKey||o.activeElement&&o.activeElement.nodeName&&("input"===o.activeElement.nodeName.toLowerCase()||"textarea"===o.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(c||d||u||h||p||f)){let e=!1;if(_(t.el,`.${t.params.slideClass}, swiper-slide`).length>0&&0===_(t.el,`.${t.params.slideActiveClass}`).length)return;const s=t.el,n=s.clientWidth,a=s.clientHeight,r=l.innerWidth,o=l.innerHeight,c=b(s);i&&(c.left-=s.scrollLeft);const d=[[c.left,c.top],[c.left+n,c.top],[c.left,c.top+a],[c.left+n,c.top+a]];for(let t=0;t<d.length;t+=1){const i=d[t];if(i[0]>=0&&i[0]<=r&&i[1]>=0&&i[1]<=o){if(0===i[0]&&0===i[1])continue;e=!0}}if(!e)return}t.isHorizontal()?((c||d||u||h)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),((d||h)&&!i||(c||u)&&i)&&t.slideNext(),((c||u)&&!i||(d||h)&&i)&&t.slidePrev()):((c||d||p||f)&&(s.preventDefault?s.preventDefault():s.returnValue=!1),(d||f)&&t.slideNext(),(c||p)&&t.slidePrev()),r("keyPress",n)}}function d(){t.keyboard.enabled||(o.addEventListener("keydown",c),t.keyboard.enabled=!0)}function u(){t.keyboard.enabled&&(o.removeEventListener("keydown",c),t.keyboard.enabled=!1)}t.keyboard={enabled:!1},i({keyboard:{enabled:!1,onlyInViewport:!0,pageUpDown:!0}}),n("init",()=>{t.params.keyboard.enabled&&d()}),n("destroy",()=>{t.keyboard.enabled&&u()}),Object.assign(t.keyboard,{enable:d,disable:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r=a();let c;i({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),t.mousewheel={enabled:!1};let d,u=l();const h=[];function p(){t.enabled&&(t.mouseEntered=!0)}function f(){t.enabled&&(t.mouseEntered=!1)}function m(e){return!(t.params.mousewheel.thresholdDelta&&e.delta<t.params.mousewheel.thresholdDelta||t.params.mousewheel.thresholdTime&&l()-u<t.params.mousewheel.thresholdTime||!(e.delta>=6&&l()-u<60)&&(e.direction<0?t.isEnd&&!t.params.loop||t.animating||(t.slideNext(),n("scroll",e.raw)):t.isBeginning&&!t.params.loop||t.animating||(t.slidePrev(),n("scroll",e.raw)),u=(new r.Date).getTime(),1))}function g(e){let i=e,s=!0;if(!t.enabled)return;if(e.target.closest(`.${t.params.mousewheel.noMousewheelClass}`))return;const a=t.params.mousewheel;t.params.cssMode&&i.preventDefault();let r=t.el;"container"!==t.params.mousewheel.eventsTarget&&(r=document.querySelector(t.params.mousewheel.eventsTarget));const u=r&&r.contains(i.target);if(!t.mouseEntered&&!u&&!a.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);let p=0;const f=t.rtlTranslate?-1:1,g=function(e){let t=0,i=0,s=0,n=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),s=10*t,n=10*i,"deltaY"in e&&(n=e.deltaY),"deltaX"in e&&(s=e.deltaX),e.shiftKey&&!s&&(s=n,n=0),(s||n)&&e.deltaMode&&(1===e.deltaMode?(s*=40,n*=40):(s*=800,n*=800)),s&&!t&&(t=s<1?-1:1),n&&!i&&(i=n<1?-1:1),{spinX:t,spinY:i,pixelX:s,pixelY:n}}(i);if(a.forceToAxis)if(t.isHorizontal()){if(!(Math.abs(g.pixelX)>Math.abs(g.pixelY)))return!0;p=-g.pixelX*f}else{if(!(Math.abs(g.pixelY)>Math.abs(g.pixelX)))return!0;p=-g.pixelY}else p=Math.abs(g.pixelX)>Math.abs(g.pixelY)?-g.pixelX*f:-g.pixelY;if(0===p)return!0;a.invert&&(p=-p);let v=t.getTranslate()+p*a.sensitivity;if(v>=t.minTranslate()&&(v=t.minTranslate()),v<=t.maxTranslate()&&(v=t.maxTranslate()),(s=!!t.params.loop||!(v===t.minTranslate()||v===t.maxTranslate()))&&t.params.nested&&i.stopPropagation(),t.params.freeMode&&t.params.freeMode.enabled){const e={time:l(),delta:Math.abs(p),direction:Math.sign(p)},s=d&&e.time<d.time+500&&e.delta<=d.delta&&e.direction===d.direction;if(!s){d=void 0;let r=t.getTranslate()+p*a.sensitivity;const l=t.isBeginning,u=t.isEnd;if(r>=t.minTranslate()&&(r=t.minTranslate()),r<=t.maxTranslate()&&(r=t.maxTranslate()),t.setTransition(0),t.setTranslate(r),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses(),(!l&&t.isBeginning||!u&&t.isEnd)&&t.updateSlidesClasses(),t.params.loop&&t.loopFix({direction:e.direction<0?"next":"prev",byMousewheel:!0}),t.params.freeMode.sticky){clearTimeout(c),c=void 0,h.length>=15&&h.shift();const i=h.length?h[h.length-1]:void 0,s=h[0];if(h.push(e),i&&(e.delta>i.delta||e.direction!==i.direction))h.splice(0);else if(h.length>=15&&e.time-s.time<500&&s.delta-e.delta>=1&&e.delta<=6){const i=p>0?.8:.2;d=e,h.splice(0),c=o(()=>{!t.destroyed&&t.params&&t.slideToClosest(t.params.speed,!0,void 0,i)},0)}c||(c=o(()=>{!t.destroyed&&t.params&&(d=e,h.splice(0),t.slideToClosest(t.params.speed,!0,void 0,.5))},500))}if(s||n("scroll",i),t.params.autoplay&&t.params.autoplayDisableOnInteraction&&t.autoplay.stop(),a.releaseOnEdges&&(r===t.minTranslate()||r===t.maxTranslate()))return!0}}else{const i={time:l(),delta:Math.abs(p),direction:Math.sign(p),raw:e};h.length>=2&&h.shift();const s=h.length?h[h.length-1]:void 0;if(h.push(i),s?(i.direction!==s.direction||i.delta>s.delta||i.time>s.time+150)&&m(i):m(i),function(e){const i=t.params.mousewheel;if(e.direction<0){if(t.isEnd&&!t.params.loop&&i.releaseOnEdges)return!0}else if(t.isBeginning&&!t.params.loop&&i.releaseOnEdges)return!0;return!1}(i))return!0}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1}function v(e){let i=t.el;"container"!==t.params.mousewheel.eventsTarget&&(i=document.querySelector(t.params.mousewheel.eventsTarget)),i[e]("mouseenter",p),i[e]("mouseleave",f),i[e]("wheel",g)}function b(){return t.params.cssMode?(t.wrapperEl.removeEventListener("wheel",g),!0):!t.mousewheel.enabled&&(v("addEventListener"),t.mousewheel.enabled=!0,!0)}function y(){return t.params.cssMode?(t.wrapperEl.addEventListener(event,g),!0):!!t.mousewheel.enabled&&(v("removeEventListener"),t.mousewheel.enabled=!1,!0)}s("init",()=>{!t.params.mousewheel.enabled&&t.params.cssMode&&y(),t.params.mousewheel.enabled&&b()}),s("destroy",()=>{t.params.cssMode&&b(),t.mousewheel.enabled&&y()}),Object.assign(t.mousewheel,{enable:b,disable:y})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;function a(e){let i;return e&&"string"==typeof e&&t.isElement&&(i=t.el.querySelector(e)||t.hostEl.querySelector(e))?i:(e&&("string"==typeof e&&(i=[...document.querySelectorAll(e)]),t.params.uniqueNavElements&&"string"==typeof e&&i&&i.length>1&&1===t.el.querySelectorAll(e).length?i=t.el.querySelector(e):i&&1===i.length&&(i=i[0])),e&&!i?e:i)}function r(e,i){const s=t.params.navigation;(e=S(e)).forEach(e=>{e&&(e.classList[i?"add":"remove"](...s.disabledClass.split(" ")),"BUTTON"===e.tagName&&(e.disabled=i),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](s.lockClass))})}function o(){const{nextEl:e,prevEl:i}=t.navigation;if(t.params.loop)return r(i,!1),void r(e,!1);r(i,t.isBeginning&&!t.params.rewind),r(e,t.isEnd&&!t.params.rewind)}function l(e){e.preventDefault(),(!t.isBeginning||t.params.loop||t.params.rewind)&&(t.slidePrev(),n("navigationPrev"))}function c(e){e.preventDefault(),(!t.isEnd||t.params.loop||t.params.rewind)&&(t.slideNext(),n("navigationNext"))}function d(){const e=t.params.navigation;if(t.params.navigation=V(t,t.originalParams.navigation,t.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!e.nextEl&&!e.prevEl)return;let i=a(e.nextEl),s=a(e.prevEl);Object.assign(t.navigation,{nextEl:i,prevEl:s}),i=S(i),s=S(s);const n=(i,s)=>{i&&i.addEventListener("click","next"===s?c:l),!t.enabled&&i&&i.classList.add(...e.lockClass.split(" "))};i.forEach(e=>n(e,"next")),s.forEach(e=>n(e,"prev"))}function u(){let{nextEl:e,prevEl:i}=t.navigation;e=S(e),i=S(i);const s=(e,i)=>{e.removeEventListener("click","next"===i?c:l),e.classList.remove(...t.params.navigation.disabledClass.split(" "))};e.forEach(e=>s(e,"next")),i.forEach(e=>s(e,"prev"))}i({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),t.navigation={nextEl:null,prevEl:null},s("init",()=>{!1===t.params.navigation.enabled?h():(d(),o())}),s("toEdge fromEdge lock unlock",()=>{o()}),s("destroy",()=>{u()}),s("enable disable",()=>{let{nextEl:e,prevEl:i}=t.navigation;e=S(e),i=S(i),t.enabled?o():[...e,...i].filter(e=>!!e).forEach(e=>e.classList.add(t.params.navigation.lockClass))}),s("click",(e,i)=>{let{nextEl:s,prevEl:a}=t.navigation;s=S(s),a=S(a);const r=i.target;let o=a.includes(r)||s.includes(r);if(t.isElement&&!o){const e=i.path||i.composedPath&&i.composedPath();e&&(o=e.find(e=>s.includes(e)||a.includes(e)))}if(t.params.navigation.hideOnClick&&!o){if(t.pagination&&t.params.pagination&&t.params.pagination.clickable&&(t.pagination.el===r||t.pagination.el.contains(r)))return;let e;s.length?e=s[0].classList.contains(t.params.navigation.hiddenClass):a.length&&(e=a[0].classList.contains(t.params.navigation.hiddenClass)),n(!0===e?"navigationShow":"navigationHide"),[...s,...a].filter(e=>!!e).forEach(e=>e.classList.toggle(t.params.navigation.hiddenClass))}});const h=()=>{t.el.classList.add(...t.params.navigation.navigationDisabledClass.split(" ")),u()};Object.assign(t.navigation,{enable:()=>{t.el.classList.remove(...t.params.navigation.navigationDisabledClass.split(" ")),d(),o()},disable:h,update:o,init:d,destroy:u})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const a="swiper-pagination";let r;i({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:e=>e,formatFractionTotal:e=>e,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),t.pagination={el:null,bullets:[]};let o=0;function l(){return!t.params.pagination.el||!t.pagination.el||Array.isArray(t.pagination.el)&&0===t.pagination.el.length}function c(e,i){const{bulletActiveClass:s}=t.params.pagination;e&&(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&(e.classList.add(`${s}-${i}`),(e=e[("prev"===i?"previous":"next")+"ElementSibling"])&&e.classList.add(`${s}-${i}-${i}`))}function d(e){const i=e.target.closest(G(t.params.pagination.bulletClass));if(!i)return;e.preventDefault();const s=w(i)*t.params.slidesPerGroup;if(t.params.loop){if(t.realIndex===s)return;const e=(n=t.realIndex,a=s,(a%=r=t.slides.length)==1+(n%=r)?"next":a===n-1?"previous":void 0);"next"===e?t.slideNext():"previous"===e?t.slidePrev():t.slideToLoop(s)}else t.slideTo(s);var n,a,r}function u(){const e=t.rtl,i=t.params.pagination;if(l())return;let s,a,d=t.pagination.el;d=S(d);const u=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,h=t.params.loop?Math.ceil(u/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?(a=t.previousRealIndex||0,s=t.params.slidesPerGroup>1?Math.floor(t.realIndex/t.params.slidesPerGroup):t.realIndex):void 0!==t.snapIndex?(s=t.snapIndex,a=t.previousSnapIndex):(a=t.previousIndex||0,s=t.activeIndex||0),"bullets"===i.type&&t.pagination.bullets&&t.pagination.bullets.length>0){const n=t.pagination.bullets;let l,u,h;if(i.dynamicBullets&&(r=k(n[0],t.isHorizontal()?"width":"height",!0),d.forEach(e=>{e.style[t.isHorizontal()?"width":"height"]=r*(i.dynamicMainBullets+4)+"px"}),i.dynamicMainBullets>1&&void 0!==a&&((o+=s-(a||0))>i.dynamicMainBullets-1?o=i.dynamicMainBullets-1:o<0&&(o=0)),l=Math.max(s-o,0),h=((u=l+(Math.min(n.length,i.dynamicMainBullets)-1))+l)/2),n.forEach(e=>{const t=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(e=>`${i.bulletActiveClass}${e}`)].map(e=>"string"==typeof e&&e.includes(" ")?e.split(" "):e).flat();e.classList.remove(...t)}),d.length>1)n.forEach(e=>{const n=w(e);n===s?e.classList.add(...i.bulletActiveClass.split(" ")):t.isElement&&e.setAttribute("part","bullet"),i.dynamicBullets&&(n>=l&&n<=u&&e.classList.add(...`${i.bulletActiveClass}-main`.split(" ")),n===l&&c(e,"prev"),n===u&&c(e,"next"))});else{const e=n[s];if(e&&e.classList.add(...i.bulletActiveClass.split(" ")),t.isElement&&n.forEach((e,t)=>{e.setAttribute("part",t===s?"bullet-active":"bullet")}),i.dynamicBullets){const e=n[l],t=n[u];for(let e=l;e<=u;e+=1)n[e]&&n[e].classList.add(...`${i.bulletActiveClass}-main`.split(" "));c(e,"prev"),c(t,"next")}}if(i.dynamicBullets){const s=Math.min(n.length,i.dynamicMainBullets+4),a=(r*s-r)/2-h*r,o=e?"right":"left";n.forEach(e=>{e.style[t.isHorizontal()?o:"top"]=`${a}px`})}}d.forEach((e,a)=>{if("fraction"===i.type&&(e.querySelectorAll(G(i.currentClass)).forEach(e=>{e.textContent=i.formatFractionCurrent(s+1)}),e.querySelectorAll(G(i.totalClass)).forEach(e=>{e.textContent=i.formatFractionTotal(h)})),"progressbar"===i.type){let n;n=i.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";const a=(s+1)/h;let r=1,o=1;"horizontal"===n?r=a:o=a,e.querySelectorAll(G(i.progressbarFillClass)).forEach(e=>{e.style.transform=`translate3d(0,0,0) scaleX(${r}) scaleY(${o})`,e.style.transitionDuration=`${t.params.speed}ms`})}"custom"===i.type&&i.renderCustom?(e.innerHTML=i.renderCustom(t,s+1,h),0===a&&n("paginationRender",e)):(0===a&&n("paginationRender",e),n("paginationUpdate",e)),t.params.watchOverflow&&t.enabled&&e.classList[t.isLocked?"add":"remove"](i.lockClass)})}function h(){const e=t.params.pagination;if(l())return;const i=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.grid&&t.params.grid.rows>1?t.slides.length/Math.ceil(t.params.grid.rows):t.slides.length;let s=t.pagination.el;s=S(s);let a="";if("bullets"===e.type){let s=t.params.loop?Math.ceil(i/t.params.slidesPerGroup):t.snapGrid.length;t.params.freeMode&&t.params.freeMode.enabled&&s>i&&(s=i);for(let i=0;i<s;i+=1)e.renderBullet?a+=e.renderBullet.call(t,i,e.bulletClass):a+=`<${e.bulletElement} ${t.isElement?'part="bullet"':""} class="${e.bulletClass}"></${e.bulletElement}>`}"fraction"===e.type&&(a=e.renderFraction?e.renderFraction.call(t,e.currentClass,e.totalClass):`<span class="${e.currentClass}"></span> / <span class="${e.totalClass}"></span>`),"progressbar"===e.type&&(a=e.renderProgressbar?e.renderProgressbar.call(t,e.progressbarFillClass):`<span class="${e.progressbarFillClass}"></span>`),t.pagination.bullets=[],s.forEach(i=>{"custom"!==e.type&&(i.innerHTML=a||""),"bullets"===e.type&&t.pagination.bullets.push(...i.querySelectorAll(G(e.bulletClass)))}),"custom"!==e.type&&n("paginationRender",s[0])}function p(){t.params.pagination=V(t,t.originalParams.pagination,t.params.pagination,{el:"swiper-pagination"});const e=t.params.pagination;if(!e.el)return;let i;"string"==typeof e.el&&t.isElement&&(i=t.el.querySelector(e.el)),i||"string"!=typeof e.el||(i=[...document.querySelectorAll(e.el)]),i||(i=e.el),i&&0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&Array.isArray(i)&&i.length>1&&((i=[...t.el.querySelectorAll(e.el)]).length>1&&(i=i.filter(e=>_(e,".swiper")[0]===t.el)[0])),Array.isArray(i)&&1===i.length&&(i=i[0]),Object.assign(t.pagination,{el:i}),(i=S(i)).forEach(i=>{"bullets"===e.type&&e.clickable&&i.classList.add(...(e.clickableClass||"").split(" ")),i.classList.add(e.modifierClass+e.type),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass),"bullets"===e.type&&e.dynamicBullets&&(i.classList.add(`${e.modifierClass}${e.type}-dynamic`),o=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.classList.add(e.progressbarOppositeClass),e.clickable&&i.addEventListener("click",d),t.enabled||i.classList.add(e.lockClass)}))}function f(){const e=t.params.pagination;if(l())return;let i=t.pagination.el;i&&(i=S(i)).forEach(i=>{i.classList.remove(e.hiddenClass),i.classList.remove(e.modifierClass+e.type),i.classList.remove(t.isHorizontal()?e.horizontalClass:e.verticalClass),e.clickable&&(i.classList.remove(...(e.clickableClass||"").split(" ")),i.removeEventListener("click",d))}),t.pagination.bullets&&t.pagination.bullets.forEach(t=>t.classList.remove(...e.bulletActiveClass.split(" ")))}s("changeDirection",()=>{if(!t.pagination||!t.pagination.el)return;const e=t.params.pagination;let{el:i}=t.pagination;(i=S(i)).forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),s("init",()=>{!1===t.params.pagination.enabled?m():(p(),h(),u())}),s("activeIndexChange",()=>{void 0===t.snapIndex&&u()}),s("snapIndexChange",()=>{u()}),s("snapGridLengthChange",()=>{h(),u()}),s("destroy",()=>{f()}),s("enable disable",()=>{let{el:e}=t.pagination;e&&(e=S(e)).forEach(e=>e.classList[t.enabled?"remove":"add"](t.params.pagination.lockClass))}),s("lock unlock",()=>{u()}),s("click",(e,i)=>{const s=i.target,a=S(t.pagination.el);if(t.params.pagination.el&&t.params.pagination.hideOnClick&&a&&a.length>0&&!s.classList.contains(t.params.pagination.bulletClass)){if(t.navigation&&(t.navigation.nextEl&&s===t.navigation.nextEl||t.navigation.prevEl&&s===t.navigation.prevEl))return;const e=a[0].classList.contains(t.params.pagination.hiddenClass);n(!0===e?"paginationShow":"paginationHide"),a.forEach(e=>e.classList.toggle(t.params.pagination.hiddenClass))}});const m=()=>{t.el.classList.add(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=S(e)).forEach(e=>e.classList.add(t.params.pagination.paginationDisabledClass)),f()};Object.assign(t.pagination,{enable:()=>{t.el.classList.remove(t.params.pagination.paginationDisabledClass);let{el:e}=t.pagination;e&&(e=S(e)).forEach(e=>e.classList.remove(t.params.pagination.paginationDisabledClass)),p(),h(),u()},disable:m,render:h,update:u,init:p,destroy:f})},function(e){let{swiper:t,extendParams:i,on:n,emit:a}=e;const l=s();let c,d,u,h,p=!1,f=null,m=null;function g(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e,rtlTranslate:i}=t,{dragEl:s,el:n}=e,a=t.params.scrollbar,r=t.params.loop?t.progressLoop:t.progress;let o=d,l=(u-d)*r;i?(l=-l)>0?(o=d-l,l=0):-l+d>u&&(o=u+l):l<0?(o=d+l,l=0):l+d>u&&(o=u-l),t.isHorizontal()?(s.style.transform=`translate3d(${l}px, 0, 0)`,s.style.width=`${o}px`):(s.style.transform=`translate3d(0px, ${l}px, 0)`,s.style.height=`${o}px`),a.hide&&(clearTimeout(f),n.style.opacity=1,f=setTimeout(()=>{n.style.opacity=0,n.style.transitionDuration="400ms"},1e3))}function y(){if(!t.params.scrollbar.el||!t.scrollbar.el)return;const{scrollbar:e}=t,{dragEl:i,el:s}=e;i.style.width="",i.style.height="",u=t.isHorizontal()?s.offsetWidth:s.offsetHeight,h=t.size/(t.virtualSize+t.params.slidesOffsetBefore-(t.params.centeredSlides?t.snapGrid[0]:0)),d="auto"===t.params.scrollbar.dragSize?u*h:parseInt(t.params.scrollbar.dragSize,10),t.isHorizontal()?i.style.width=`${d}px`:i.style.height=`${d}px`,s.style.display=h>=1?"none":"",t.params.scrollbar.hide&&(s.style.opacity=0),t.params.watchOverflow&&t.enabled&&e.el.classList[t.isLocked?"add":"remove"](t.params.scrollbar.lockClass)}function w(e){return t.isHorizontal()?e.clientX:e.clientY}function _(e){const{scrollbar:i,rtlTranslate:s}=t,{el:n}=i;let a;a=(w(e)-b(n)[t.isHorizontal()?"left":"top"]-(null!==c?c:d/2))/(u-d),a=Math.max(Math.min(a,1),0),s&&(a=1-a);const r=t.minTranslate()+(t.maxTranslate()-t.minTranslate())*a;t.updateProgress(r),t.setTranslate(r),t.updateActiveIndex(),t.updateSlidesClasses()}function x(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:r,dragEl:o}=s;p=!0,c=e.target===o?w(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),n.style.transitionDuration="100ms",o.style.transitionDuration="100ms",_(e),clearTimeout(m),r.style.transitionDuration="0ms",i.hide&&(r.style.opacity=1),t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="none"),a("scrollbarDragStart",e)}function k(e){const{scrollbar:i,wrapperEl:s}=t,{el:n,dragEl:r}=i;p&&(e.preventDefault&&e.cancelable?e.preventDefault():e.returnValue=!1,_(e),s.style.transitionDuration="0ms",n.style.transitionDuration="0ms",r.style.transitionDuration="0ms",a("scrollbarDragMove",e))}function C(e){const i=t.params.scrollbar,{scrollbar:s,wrapperEl:n}=t,{el:r}=s;p&&(p=!1,t.params.cssMode&&(t.wrapperEl.style["scroll-snap-type"]="",n.style.transitionDuration=""),i.hide&&(clearTimeout(m),m=o(()=>{r.style.opacity=0,r.style.transitionDuration="400ms"},1e3)),a("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())}function $(e){const{scrollbar:i,params:s}=t,n=i.el;if(!n)return;const a=n,r=!!s.passiveListeners&&{passive:!1,capture:!1},o=!!s.passiveListeners&&{passive:!0,capture:!1};if(!a)return;const c="on"===e?"addEventListener":"removeEventListener";a[c]("pointerdown",x,r),l[c]("pointermove",k,r),l[c]("pointerup",C,o)}function T(){const{scrollbar:e,el:i}=t;t.params.scrollbar=V(t,t.originalParams.scrollbar,t.params.scrollbar,{el:"swiper-scrollbar"});const s=t.params.scrollbar;if(!s.el)return;let n,a;if("string"==typeof s.el&&t.isElement&&(n=t.el.querySelector(s.el)),n||"string"!=typeof s.el)n||(n=s.el);else if(!(n=l.querySelectorAll(s.el)).length)return;t.params.uniqueNavElements&&"string"==typeof s.el&&n.length>1&&1===i.querySelectorAll(s.el).length&&(n=i.querySelector(s.el)),n.length>0&&(n=n[0]),n.classList.add(t.isHorizontal()?s.horizontalClass:s.verticalClass),n&&((a=n.querySelector(G(t.params.scrollbar.dragClass)))||(a=v("div",t.params.scrollbar.dragClass),n.append(a))),Object.assign(e,{el:n,dragEl:a}),s.draggable&&t.params.scrollbar.el&&t.scrollbar.el&&$("on"),n&&n.classList[t.enabled?"remove":"add"](...r(t.params.scrollbar.lockClass))}function E(){const e=t.params.scrollbar,i=t.scrollbar.el;i&&i.classList.remove(...r(t.isHorizontal()?e.horizontalClass:e.verticalClass)),t.params.scrollbar.el&&t.scrollbar.el&&$("off")}i({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),t.scrollbar={el:null,dragEl:null},n("changeDirection",()=>{if(!t.scrollbar||!t.scrollbar.el)return;const e=t.params.scrollbar;let{el:i}=t.scrollbar;(i=S(i)).forEach(i=>{i.classList.remove(e.horizontalClass,e.verticalClass),i.classList.add(t.isHorizontal()?e.horizontalClass:e.verticalClass)})}),n("init",()=>{!1===t.params.scrollbar.enabled?D():(T(),y(),g())}),n("update resize observerUpdate lock unlock changeDirection",()=>{y()}),n("setTranslate",()=>{g()}),n("setTransition",(e,i)=>{!function(e){t.params.scrollbar.el&&t.scrollbar.el&&(t.scrollbar.dragEl.style.transitionDuration=`${e}ms`)}(i)}),n("enable disable",()=>{const{el:e}=t.scrollbar;e&&e.classList[t.enabled?"remove":"add"](...r(t.params.scrollbar.lockClass))}),n("destroy",()=>{E()});const D=()=>{t.el.classList.add(...r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.add(...r(t.params.scrollbar.scrollbarDisabledClass)),E()};Object.assign(t.scrollbar,{enable:()=>{t.el.classList.remove(...r(t.params.scrollbar.scrollbarDisabledClass)),t.scrollbar.el&&t.scrollbar.el.classList.remove(...r(t.params.scrollbar.scrollbarDisabledClass)),T(),y(),g()},disable:D,updateSize:y,setTranslate:g,init:T,destroy:E})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({parallax:{enabled:!1}});const n="[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]",a=(e,i)=>{const{rtl:s}=t,n=s?-1:1,a=e.getAttribute("data-swiper-parallax")||"0";let r=e.getAttribute("data-swiper-parallax-x"),o=e.getAttribute("data-swiper-parallax-y");const l=e.getAttribute("data-swiper-parallax-scale"),c=e.getAttribute("data-swiper-parallax-opacity"),d=e.getAttribute("data-swiper-parallax-rotate");if(r||o?(r=r||"0",o=o||"0"):t.isHorizontal()?(r=a,o="0"):(o=a,r="0"),r=r.indexOf("%")>=0?parseInt(r,10)*i*n+"%":r*i*n+"px",o=o.indexOf("%")>=0?parseInt(o,10)*i+"%":o*i+"px",null!=c){const t=c-(c-1)*(1-Math.abs(i));e.style.opacity=t}let u=`translate3d(${r}, ${o}, 0px)`;null!=l&&(u+=` scale(${l-(l-1)*(1-Math.abs(i))})`),d&&null!=d&&(u+=` rotate(${d*i*-1}deg)`),e.style.transform=u},r=()=>{const{el:e,slides:i,progress:s,snapGrid:r,isElement:o}=t,l=m(e,n);t.isElement&&l.push(...m(t.hostEl,n)),l.forEach(e=>{a(e,s)}),i.forEach((e,i)=>{let o=e.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(o+=Math.ceil(i/2)-s*(r.length-1)),o=Math.min(Math.max(o,-1),1),e.querySelectorAll(`${n}, [data-swiper-parallax-rotate]`).forEach(e=>{a(e,o)})})};s("beforeInit",()=>{t.params.parallax.enabled&&(t.params.watchSlidesProgress=!0,t.originalParams.watchSlidesProgress=!0)}),s("init",()=>{t.params.parallax.enabled&&r()}),s("setTranslate",()=>{t.params.parallax.enabled&&r()}),s("setTransition",(e,i)=>{t.params.parallax.enabled&&function(e){void 0===e&&(e=t.params.speed);const{el:i,hostEl:s}=t,a=[...i.querySelectorAll(n)];t.isElement&&a.push(...s.querySelectorAll(n)),a.forEach(t=>{let i=parseInt(t.getAttribute("data-swiper-parallax-duration"),10)||e;0===e&&(i=0),t.style.transitionDuration=`${i}ms`})}(i)})},function(e){let{swiper:t,extendParams:i,on:s,emit:n}=e;const r=a();i({zoom:{enabled:!1,limitToOriginalSize:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}}),t.zoom={enabled:!1};let o,l,d=1,u=!1;const h=[],p={originX:0,originY:0,slideEl:void 0,slideWidth:void 0,slideHeight:void 0,imageEl:void 0,imageWrapEl:void 0,maxRatio:3},f={isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},g={x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0};let v,y=1;function w(){if(h.length<2)return 1;const e=h[0].pageX,t=h[0].pageY,i=h[1].pageX,s=h[1].pageY;return Math.sqrt((i-e)**2+(s-t)**2)}function x(){const e=t.params.zoom,i=p.imageWrapEl.getAttribute("data-swiper-zoom")||e.maxRatio;if(e.limitToOriginalSize&&p.imageEl&&p.imageEl.naturalWidth){const e=p.imageEl.naturalWidth/p.imageEl.offsetWidth;return Math.min(e,i)}return i}function k(e){const i=t.isElement?"swiper-slide":`.${t.params.slideClass}`;return!!e.target.matches(i)||t.slides.filter(t=>t.contains(e.target)).length>0}function S(e){if("mouse"===e.pointerType&&h.splice(0,h.length),!k(e))return;const i=t.params.zoom;if(o=!1,l=!1,h.push(e),!(h.length<2)){if(o=!0,p.scaleStart=w(),!p.slideEl){p.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`),p.slideEl||(p.slideEl=t.slides[t.activeIndex]);let s=p.slideEl.querySelector(`.${i.containerClass}`);if(s&&(s=s.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=s,p.imageWrapEl=s?_(p.imageEl,`.${i.containerClass}`)[0]:void 0,!p.imageWrapEl)return void(p.imageEl=void 0);p.maxRatio=x()}if(p.imageEl){const[e,t]=function(){if(h.length<2)return{x:null,y:null};const e=p.imageEl.getBoundingClientRect();return[(h[0].pageX+(h[1].pageX-h[0].pageX)/2-e.x-r.scrollX)/d,(h[0].pageY+(h[1].pageY-h[0].pageY)/2-e.y-r.scrollY)/d]}();p.originX=e,p.originY=t,p.imageEl.style.transitionDuration="0ms"}u=!0}}function C(e){if(!k(e))return;const i=t.params.zoom,s=t.zoom,n=h.findIndex(t=>t.pointerId===e.pointerId);n>=0&&(h[n]=e),h.length<2||(l=!0,p.scaleMove=w(),p.imageEl&&(s.scale=p.scaleMove/p.scaleStart*d,s.scale>p.maxRatio&&(s.scale=p.maxRatio-1+(s.scale-p.maxRatio+1)**.5),s.scale<i.minRatio&&(s.scale=i.minRatio+1-(i.minRatio-s.scale+1)**.5),p.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`))}function $(e){if(!k(e))return;if("mouse"===e.pointerType&&"pointerout"===e.type)return;const i=t.params.zoom,s=t.zoom,n=h.findIndex(t=>t.pointerId===e.pointerId);n>=0&&h.splice(n,1),o&&l&&(o=!1,l=!1,p.imageEl&&(s.scale=Math.max(Math.min(s.scale,p.maxRatio),i.minRatio),p.imageEl.style.transitionDuration=`${t.params.speed}ms`,p.imageEl.style.transform=`translate3d(0,0,0) scale(${s.scale})`,d=s.scale,u=!1,s.scale>1&&p.slideEl?p.slideEl.classList.add(`${i.zoomedSlideClass}`):s.scale<=1&&p.slideEl&&p.slideEl.classList.remove(`${i.zoomedSlideClass}`),1===s.scale&&(p.originX=0,p.originY=0,p.slideEl=void 0)))}function T(){t.touchEventsData.preventTouchMoveFromPointerMove=!1}function E(e){if(!k(e)||!function(e){const i=`.${t.params.zoom.containerClass}`;return!!e.target.matches(i)||[...t.hostEl.querySelectorAll(i)].filter(t=>t.contains(e.target)).length>0}(e))return;const i=t.zoom;if(!p.imageEl)return;if(!f.isTouched||!p.slideEl)return;f.isMoved||(f.width=p.imageEl.offsetWidth||p.imageEl.clientWidth,f.height=p.imageEl.offsetHeight||p.imageEl.clientHeight,f.startX=c(p.imageWrapEl,"x")||0,f.startY=c(p.imageWrapEl,"y")||0,p.slideWidth=p.slideEl.offsetWidth,p.slideHeight=p.slideEl.offsetHeight,p.imageWrapEl.style.transitionDuration="0ms");const s=f.width*i.scale,n=f.height*i.scale;if(f.minX=Math.min(p.slideWidth/2-s/2,0),f.maxX=-f.minX,f.minY=Math.min(p.slideHeight/2-n/2,0),f.maxY=-f.minY,f.touchesCurrent.x=h.length>0?h[0].pageX:e.pageX,f.touchesCurrent.y=h.length>0?h[0].pageY:e.pageY,Math.max(Math.abs(f.touchesCurrent.x-f.touchesStart.x),Math.abs(f.touchesCurrent.y-f.touchesStart.y))>5&&(t.allowClick=!1),!f.isMoved&&!u){if(t.isHorizontal()&&(Math.floor(f.minX)===Math.floor(f.startX)&&f.touchesCurrent.x<f.touchesStart.x||Math.floor(f.maxX)===Math.floor(f.startX)&&f.touchesCurrent.x>f.touchesStart.x))return f.isTouched=!1,void T();if(!t.isHorizontal()&&(Math.floor(f.minY)===Math.floor(f.startY)&&f.touchesCurrent.y<f.touchesStart.y||Math.floor(f.maxY)===Math.floor(f.startY)&&f.touchesCurrent.y>f.touchesStart.y))return f.isTouched=!1,void T()}e.cancelable&&e.preventDefault(),e.stopPropagation(),clearTimeout(v),t.touchEventsData.preventTouchMoveFromPointerMove=!0,v=setTimeout(()=>{t.destroyed||T()}),f.isMoved=!0;const a=(i.scale-d)/(p.maxRatio-t.params.zoom.minRatio),{originX:r,originY:o}=p;f.currentX=f.touchesCurrent.x-f.touchesStart.x+f.startX+a*(f.width-2*r),f.currentY=f.touchesCurrent.y-f.touchesStart.y+f.startY+a*(f.height-2*o),f.currentX<f.minX&&(f.currentX=f.minX+1-(f.minX-f.currentX+1)**.8),f.currentX>f.maxX&&(f.currentX=f.maxX-1+(f.currentX-f.maxX+1)**.8),f.currentY<f.minY&&(f.currentY=f.minY+1-(f.minY-f.currentY+1)**.8),f.currentY>f.maxY&&(f.currentY=f.maxY-1+(f.currentY-f.maxY+1)**.8),g.prevPositionX||(g.prevPositionX=f.touchesCurrent.x),g.prevPositionY||(g.prevPositionY=f.touchesCurrent.y),g.prevTime||(g.prevTime=Date.now()),g.x=(f.touchesCurrent.x-g.prevPositionX)/(Date.now()-g.prevTime)/2,g.y=(f.touchesCurrent.y-g.prevPositionY)/(Date.now()-g.prevTime)/2,Math.abs(f.touchesCurrent.x-g.prevPositionX)<2&&(g.x=0),Math.abs(f.touchesCurrent.y-g.prevPositionY)<2&&(g.y=0),g.prevPositionX=f.touchesCurrent.x,g.prevPositionY=f.touchesCurrent.y,g.prevTime=Date.now(),p.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}function D(){const e=t.zoom;p.slideEl&&t.activeIndex!==t.slides.indexOf(p.slideEl)&&(p.imageEl&&(p.imageEl.style.transform="translate3d(0,0,0) scale(1)"),p.imageWrapEl&&(p.imageWrapEl.style.transform="translate3d(0,0,0)"),p.slideEl.classList.remove(`${t.params.zoom.zoomedSlideClass}`),e.scale=1,d=1,p.slideEl=void 0,p.imageEl=void 0,p.imageWrapEl=void 0,p.originX=0,p.originY=0)}function M(e){const i=t.zoom,s=t.params.zoom;if(!p.slideEl){e&&e.target&&(p.slideEl=e.target.closest(`.${t.params.slideClass}, swiper-slide`)),p.slideEl||(t.params.virtual&&t.params.virtual.enabled&&t.virtual?p.slideEl=m(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:p.slideEl=t.slides[t.activeIndex]);let i=p.slideEl.querySelector(`.${s.containerClass}`);i&&(i=i.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=i,p.imageWrapEl=i?_(p.imageEl,`.${s.containerClass}`)[0]:void 0}if(!p.imageEl||!p.imageWrapEl)return;let n,a,o,l,c,u,h,g,v,y,w,k,S,C,$,T,E,D;t.params.cssMode&&(t.wrapperEl.style.overflow="hidden",t.wrapperEl.style.touchAction="none"),p.slideEl.classList.add(`${s.zoomedSlideClass}`),void 0===f.touchesStart.x&&e?(n=e.pageX,a=e.pageY):(n=f.touchesStart.x,a=f.touchesStart.y);const M="number"==typeof e?e:null;1===d&&M&&(n=void 0,a=void 0,f.touchesStart.x=void 0,f.touchesStart.y=void 0);const I=x();i.scale=M||I,d=M||I,!e||1===d&&M?(h=0,g=0):(E=p.slideEl.offsetWidth,D=p.slideEl.offsetHeight,c=(o=b(p.slideEl).left+r.scrollX)+E/2-n,u=(l=b(p.slideEl).top+r.scrollY)+D/2-a,v=p.imageEl.offsetWidth||p.imageEl.clientWidth,y=p.imageEl.offsetHeight||p.imageEl.clientHeight,w=v*i.scale,k=y*i.scale,$=-(S=Math.min(E/2-w/2,0)),T=-(C=Math.min(D/2-k/2,0)),(h=c*i.scale)<S&&(h=S),h>$&&(h=$),(g=u*i.scale)<C&&(g=C),g>T&&(g=T)),M&&1===i.scale&&(p.originX=0,p.originY=0),p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform=`translate3d(${h}px, ${g}px,0)`,p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform=`translate3d(0,0,0) scale(${i.scale})`}function I(){const e=t.zoom,i=t.params.zoom;if(!p.slideEl){t.params.virtual&&t.params.virtual.enabled&&t.virtual?p.slideEl=m(t.slidesEl,`.${t.params.slideActiveClass}`)[0]:p.slideEl=t.slides[t.activeIndex];let e=p.slideEl.querySelector(`.${i.containerClass}`);e&&(e=e.querySelectorAll("picture, img, svg, canvas, .swiper-zoom-target")[0]),p.imageEl=e,p.imageWrapEl=e?_(p.imageEl,`.${i.containerClass}`)[0]:void 0}p.imageEl&&p.imageWrapEl&&(t.params.cssMode&&(t.wrapperEl.style.overflow="",t.wrapperEl.style.touchAction=""),e.scale=1,d=1,f.touchesStart.x=void 0,f.touchesStart.y=void 0,p.imageWrapEl.style.transitionDuration="300ms",p.imageWrapEl.style.transform="translate3d(0,0,0)",p.imageEl.style.transitionDuration="300ms",p.imageEl.style.transform="translate3d(0,0,0) scale(1)",p.slideEl.classList.remove(`${i.zoomedSlideClass}`),p.slideEl=void 0,p.originX=0,p.originY=0)}function P(e){const i=t.zoom;i.scale&&1!==i.scale?I():M(e)}function A(){return{passiveListener:!!t.params.passiveListeners&&{passive:!0,capture:!1},activeListenerWithCapture:!t.params.passiveListeners||{passive:!1,capture:!0}}}function L(){const e=t.zoom;if(e.enabled)return;e.enabled=!0;const{passiveListener:i,activeListenerWithCapture:s}=A();t.wrapperEl.addEventListener("pointerdown",S,i),t.wrapperEl.addEventListener("pointermove",C,s),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.addEventListener(e,$,i)}),t.wrapperEl.addEventListener("pointermove",E,s)}function N(){const e=t.zoom;if(!e.enabled)return;e.enabled=!1;const{passiveListener:i,activeListenerWithCapture:s}=A();t.wrapperEl.removeEventListener("pointerdown",S,i),t.wrapperEl.removeEventListener("pointermove",C,s),["pointerup","pointercancel","pointerout"].forEach(e=>{t.wrapperEl.removeEventListener(e,$,i)}),t.wrapperEl.removeEventListener("pointermove",E,s)}Object.defineProperty(t.zoom,"scale",{get:()=>y,set(e){if(y!==e){const t=p.imageEl,i=p.slideEl;n("zoomChange",e,t,i)}y=e}}),s("init",()=>{t.params.zoom.enabled&&L()}),s("destroy",()=>{N()}),s("touchStart",(e,i)=>{t.zoom.enabled&&function(e){const i=t.device;if(!p.imageEl)return;if(f.isTouched)return;i.android&&e.cancelable&&e.preventDefault(),f.isTouched=!0;const s=h.length>0?h[0]:e;f.touchesStart.x=s.pageX,f.touchesStart.y=s.pageY}(i)}),s("touchEnd",(e,i)=>{t.zoom.enabled&&function(){const e=t.zoom;if(!p.imageEl)return;if(!f.isTouched||!f.isMoved)return f.isTouched=!1,void(f.isMoved=!1);f.isTouched=!1,f.isMoved=!1;let i=300,s=300;const n=g.x*i,a=f.currentX+n,r=g.y*s,o=f.currentY+r;0!==g.x&&(i=Math.abs((a-f.currentX)/g.x)),0!==g.y&&(s=Math.abs((o-f.currentY)/g.y));const l=Math.max(i,s);f.currentX=a,f.currentY=o;const c=f.width*e.scale,d=f.height*e.scale;f.minX=Math.min(p.slideWidth/2-c/2,0),f.maxX=-f.minX,f.minY=Math.min(p.slideHeight/2-d/2,0),f.maxY=-f.minY,f.currentX=Math.max(Math.min(f.currentX,f.maxX),f.minX),f.currentY=Math.max(Math.min(f.currentY,f.maxY),f.minY),p.imageWrapEl.style.transitionDuration=`${l}ms`,p.imageWrapEl.style.transform=`translate3d(${f.currentX}px, ${f.currentY}px,0)`}()}),s("doubleTap",(e,i)=>{!t.animating&&t.params.zoom.enabled&&t.zoom.enabled&&t.params.zoom.toggle&&P(i)}),s("transitionEnd",()=>{t.zoom.enabled&&t.params.zoom.enabled&&D()}),s("slideChange",()=>{t.zoom.enabled&&t.params.zoom.enabled&&t.params.cssMode&&D()}),Object.assign(t.zoom,{enable:L,disable:N,in:M,out:I,toggle:P})},function(e){let{swiper:t,extendParams:i,on:s}=e;function n(e,t){const i=function(){let e,t,i;return(s,n)=>{for(t=-1,e=s.length;e-t>1;)s[i=e+t>>1]<=n?t=i:e=i;return e}}();let s,n;return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(n=i(this.x,e),s=n-1,(e-this.x[s])*(this.y[n]-this.y[s])/(this.x[n]-this.x[s])+this.y[s]):0},this}function a(){t.controller.control&&t.controller.spline&&(t.controller.spline=void 0,delete t.controller.spline)}i({controller:{control:void 0,inverse:!1,by:"slide"}}),t.controller={control:void 0},s("beforeInit",()=>{"undefined"!=typeof window&&("string"==typeof t.params.controller.control||t.params.controller.control instanceof HTMLElement)?("string"==typeof t.params.controller.control?[...document.querySelectorAll(t.params.controller.control)]:[t.params.controller.control]).forEach(e=>{if(t.controller.control||(t.controller.control=[]),e&&e.swiper)t.controller.control.push(e.swiper);else if(e){const i=`${t.params.eventsPrefix}init`,s=n=>{t.controller.control.push(n.detail[0]),t.update(),e.removeEventListener(i,s)};e.addEventListener(i,s)}}):t.controller.control=t.params.controller.control}),s("update",()=>{a()}),s("resize",()=>{a()}),s("observerUpdate",()=>{a()}),s("setTranslate",(e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTranslate(i,s)}),s("setTransition",(e,i,s)=>{t.controller.control&&!t.controller.control.destroyed&&t.controller.setTransition(i,s)}),Object.assign(t.controller,{setTranslate:function(e,i){const s=t.controller.control;let a,r;const o=t.constructor;function l(e){if(e.destroyed)return;const i=t.rtlTranslate?-t.translate:t.translate;"slide"===t.params.controller.by&&(function(e){t.controller.spline=t.params.loop?new n(t.slidesGrid,e.slidesGrid):new n(t.snapGrid,e.snapGrid)}(e),r=-t.controller.spline.interpolate(-i)),r&&"container"!==t.params.controller.by||(a=(e.maxTranslate()-e.minTranslate())/(t.maxTranslate()-t.minTranslate()),!Number.isNaN(a)&&Number.isFinite(a)||(a=1),r=(i-t.minTranslate())*a+e.minTranslate()),t.params.controller.inverse&&(r=e.maxTranslate()-r),e.updateProgress(r),e.setTranslate(r,t),e.updateActiveIndex(),e.updateSlidesClasses()}if(Array.isArray(s))for(let e=0;e<s.length;e+=1)s[e]!==i&&s[e]instanceof o&&l(s[e]);else s instanceof o&&i!==s&&l(s)},setTransition:function(e,i){const s=t.constructor,n=t.controller.control;let a;function r(i){i.destroyed||(i.setTransition(e,t),0!==e&&(i.transitionStart(),i.params.autoHeight&&o(()=>{i.updateAutoHeight()}),x(i.wrapperEl,()=>{n&&i.transitionEnd()})))}if(Array.isArray(n))for(a=0;a<n.length;a+=1)n[a]!==i&&n[a]instanceof s&&r(n[a]);else n instanceof s&&i!==n&&r(n)}})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",slideLabelMessage:"{{index}} / {{slidesLength}}",containerMessage:null,containerRoleDescriptionMessage:null,containerRole:null,itemRoleDescriptionMessage:null,slideRole:"group",id:null,scrollOnFocus:!0}}),t.a11y={clicked:!1};let a,r,o=null,l=(new Date).getTime();function c(e){const t=o;0!==t.length&&(t.innerHTML="",t.innerHTML=e)}function d(e){(e=S(e)).forEach(e=>{e.setAttribute("tabIndex","0")})}function u(e){(e=S(e)).forEach(e=>{e.setAttribute("tabIndex","-1")})}function h(e,t){(e=S(e)).forEach(e=>{e.setAttribute("role",t)})}function p(e,t){(e=S(e)).forEach(e=>{e.setAttribute("aria-roledescription",t)})}function f(e,t){(e=S(e)).forEach(e=>{e.setAttribute("aria-label",t)})}function m(e){(e=S(e)).forEach(e=>{e.setAttribute("aria-disabled",!0)})}function g(e){(e=S(e)).forEach(e=>{e.setAttribute("aria-disabled",!1)})}function b(e){if(13!==e.keyCode&&32!==e.keyCode)return;const i=t.params.a11y,s=e.target;if(!t.pagination||!t.pagination.el||s!==t.pagination.el&&!t.pagination.el.contains(e.target)||e.target.matches(G(t.params.pagination.bulletClass))){if(t.navigation&&t.navigation.prevEl&&t.navigation.nextEl){const e=S(t.navigation.prevEl);S(t.navigation.nextEl).includes(s)&&(t.isEnd&&!t.params.loop||t.slideNext(),t.isEnd?c(i.lastSlideMessage):c(i.nextSlideMessage)),e.includes(s)&&(t.isBeginning&&!t.params.loop||t.slidePrev(),t.isBeginning?c(i.firstSlideMessage):c(i.prevSlideMessage))}t.pagination&&s.matches(G(t.params.pagination.bulletClass))&&s.click()}}function y(){return t.pagination&&t.pagination.bullets&&t.pagination.bullets.length}function _(){return y()&&t.params.pagination.clickable}const x=(e,t,i)=>{d(e),"BUTTON"!==e.tagName&&(h(e,"button"),e.addEventListener("keydown",b)),f(e,i),function(e,t){(e=S(e)).forEach(e=>{e.setAttribute("aria-controls",t)})}(e,t)},k=e=>{r&&r!==e.target&&!r.contains(e.target)&&(a=!0),t.a11y.clicked=!0},C=()=>{a=!1,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t.destroyed||(t.a11y.clicked=!1)})})},$=e=>{l=(new Date).getTime()},T=e=>{if(t.a11y.clicked||!t.params.a11y.scrollOnFocus)return;if((new Date).getTime()-l<100)return;const i=e.target.closest(`.${t.params.slideClass}, swiper-slide`);if(!i||!t.slides.includes(i))return;r=i;const s=t.slides.indexOf(i)===t.activeIndex,n=t.params.watchSlidesProgress&&t.visibleSlides&&t.visibleSlides.includes(i);s||n||e.sourceCapabilities&&e.sourceCapabilities.firesTouchEvents||(t.isHorizontal()?t.el.scrollLeft=0:t.el.scrollTop=0,requestAnimationFrame(()=>{a||(t.params.loop?t.slideToLoop(parseInt(i.getAttribute("data-swiper-slide-index")),0):t.slideTo(t.slides.indexOf(i),0),a=!1)}))},E=()=>{const e=t.params.a11y;e.itemRoleDescriptionMessage&&p(t.slides,e.itemRoleDescriptionMessage),e.slideRole&&h(t.slides,e.slideRole);const i=t.slides.length;e.slideLabelMessage&&t.slides.forEach((s,n)=>{const a=t.params.loop?parseInt(s.getAttribute("data-swiper-slide-index"),10):n;f(s,e.slideLabelMessage.replace(/\{\{index\}\}/,a+1).replace(/\{\{slidesLength\}\}/,i))})};n("beforeInit",()=>{(o=v("span",t.params.a11y.notificationClass)).setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true")}),n("afterInit",()=>{t.params.a11y.enabled&&(()=>{const e=t.params.a11y;t.el.append(o);const i=t.el;e.containerRoleDescriptionMessage&&p(i,e.containerRoleDescriptionMessage),e.containerMessage&&f(i,e.containerMessage),e.containerRole&&h(i,e.containerRole);const n=t.wrapperEl,a=e.id||n.getAttribute("id")||`swiper-wrapper-${r=16,void 0===r&&(r=16),"x".repeat(r).replace(/x/g,()=>Math.round(16*Math.random()).toString(16))}`;var r;const l=t.params.autoplay&&t.params.autoplay.enabled?"off":"polite";var c;c=a,S(n).forEach(e=>{e.setAttribute("id",c)}),function(e,t){S(n).forEach(e=>{e.setAttribute("aria-live",t)})}(0,l),E();let{nextEl:d,prevEl:u}=t.navigation?t.navigation:{};d=S(d),u=S(u),d&&d.forEach(t=>x(t,a,e.nextSlideMessage)),u&&u.forEach(t=>x(t,a,e.prevSlideMessage)),_()&&S(t.pagination.el).forEach(e=>{e.addEventListener("keydown",b)}),s().addEventListener("visibilitychange",$),t.el.addEventListener("focus",T,!0),t.el.addEventListener("focus",T,!0),t.el.addEventListener("pointerdown",k,!0),t.el.addEventListener("pointerup",C,!0)})()}),n("slidesLengthChange snapGridLengthChange slidesGridLengthChange",()=>{t.params.a11y.enabled&&E()}),n("fromEdge toEdge afterInit lock unlock",()=>{t.params.a11y.enabled&&function(){if(t.params.loop||t.params.rewind||!t.navigation)return;const{nextEl:e,prevEl:i}=t.navigation;i&&(t.isBeginning?(m(i),u(i)):(g(i),d(i))),e&&(t.isEnd?(m(e),u(e)):(g(e),d(e)))}()}),n("paginationUpdate",()=>{t.params.a11y.enabled&&function(){const e=t.params.a11y;y()&&t.pagination.bullets.forEach(i=>{t.params.pagination.clickable&&(d(i),t.params.pagination.renderBullet||(h(i,"button"),f(i,e.paginationBulletMessage.replace(/\{\{index\}\}/,w(i)+1)))),i.matches(G(t.params.pagination.bulletActiveClass))?i.setAttribute("aria-current","true"):i.removeAttribute("aria-current")})}()}),n("destroy",()=>{t.params.a11y.enabled&&function(){o&&o.remove();let{nextEl:e,prevEl:i}=t.navigation?t.navigation:{};e=S(e),i=S(i),e&&e.forEach(e=>e.removeEventListener("keydown",b)),i&&i.forEach(e=>e.removeEventListener("keydown",b)),_()&&S(t.pagination.el).forEach(e=>{e.removeEventListener("keydown",b)}),s().removeEventListener("visibilitychange",$),t.el&&"string"!=typeof t.el&&(t.el.removeEventListener("focus",T,!0),t.el.removeEventListener("pointerdown",k,!0),t.el.removeEventListener("pointerup",C,!0))}()})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({history:{enabled:!1,root:"",replaceState:!1,key:"slides",keepQuery:!1}});let n=!1,r={};const o=e=>e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,""),l=e=>{const t=a();let i;const s=(i=e?new URL(e):t.location).pathname.slice(1).split("/").filter(e=>""!==e),n=s.length;return{key:s[n-2],value:s[n-1]}},c=(e,i)=>{const s=a();if(!n||!t.params.history.enabled)return;let r;r=t.params.url?new URL(t.params.url):s.location;const l=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${i}"]`):t.slides[i];let c=o(l.getAttribute("data-history"));if(t.params.history.root.length>0){let i=t.params.history.root;"/"===i[i.length-1]&&(i=i.slice(0,i.length-1)),c=`${i}/${e?`${e}/`:""}${c}`}else r.pathname.includes(e)||(c=`${e?`${e}/`:""}${c}`);t.params.history.keepQuery&&(c+=r.search);const d=s.history.state;d&&d.value===c||(t.params.history.replaceState?s.history.replaceState({value:c},null,c):s.history.pushState({value:c},null,c))},d=(e,i,s)=>{if(i)for(let n=0,a=t.slides.length;n<a;n+=1){const a=t.slides[n];if(o(a.getAttribute("data-history"))===i){const i=t.getSlideIndex(a);t.slideTo(i,e,s)}}else t.slideTo(0,e,s)},u=()=>{r=l(t.params.url),d(t.params.speed,r.value,!1)};s("init",()=>{t.params.history.enabled&&(()=>{const e=a();if(t.params.history){if(!e.history||!e.history.pushState)return t.params.history.enabled=!1,void(t.params.hashNavigation.enabled=!0);n=!0,(r=l(t.params.url)).key||r.value?(d(0,r.value,t.params.runCallbacksOnInit),t.params.history.replaceState||e.addEventListener("popstate",u)):t.params.history.replaceState||e.addEventListener("popstate",u)}})()}),s("destroy",()=>{t.params.history.enabled&&(()=>{const e=a();t.params.history.replaceState||e.removeEventListener("popstate",u)})()}),s("transitionEnd _freeModeNoMomentumRelease",()=>{n&&c(t.params.history.key,t.activeIndex)}),s("slideChange",()=>{n&&t.params.cssMode&&c(t.params.history.key,t.activeIndex)})},function(e){let{swiper:t,extendParams:i,emit:n,on:r}=e,o=!1;const l=s(),c=a();i({hashNavigation:{enabled:!1,replaceState:!1,watchState:!1,getSlideIndex(e,i){if(t.virtual&&t.params.virtual.enabled){const e=t.slides.filter(e=>e.getAttribute("data-hash")===i)[0];return e?parseInt(e.getAttribute("data-swiper-slide-index"),10):0}return t.getSlideIndex(m(t.slidesEl,`.${t.params.slideClass}[data-hash="${i}"], swiper-slide[data-hash="${i}"]`)[0])}}});const d=()=>{n("hashChange");const e=l.location.hash.replace("#",""),i=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex];if(e!==(i?i.getAttribute("data-hash"):"")){const i=t.params.hashNavigation.getSlideIndex(t,e);if(void 0===i||Number.isNaN(i))return;t.slideTo(i)}},u=()=>{if(!o||!t.params.hashNavigation.enabled)return;const e=t.virtual&&t.params.virtual.enabled?t.slidesEl.querySelector(`[data-swiper-slide-index="${t.activeIndex}"]`):t.slides[t.activeIndex],i=e?e.getAttribute("data-hash")||e.getAttribute("data-history"):"";t.params.hashNavigation.replaceState&&c.history&&c.history.replaceState?(c.history.replaceState(null,null,`#${i}`||""),n("hashSet")):(l.location.hash=i||"",n("hashSet"))};r("init",()=>{t.params.hashNavigation.enabled&&(()=>{if(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)return;o=!0;const e=l.location.hash.replace("#","");if(e){const i=0,s=t.params.hashNavigation.getSlideIndex(t,e);t.slideTo(s||0,i,t.params.runCallbacksOnInit,!0)}t.params.hashNavigation.watchState&&c.addEventListener("hashchange",d)})()}),r("destroy",()=>{t.params.hashNavigation.enabled&&t.params.hashNavigation.watchState&&c.removeEventListener("hashchange",d)}),r("transitionEnd _freeModeNoMomentumRelease",()=>{o&&u()}),r("slideChange",()=>{o&&t.params.cssMode&&u()})},function(e){let t,i,{swiper:n,extendParams:a,on:r,emit:o,params:l}=e;n.autoplay={running:!1,paused:!1,timeLeft:0},a({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let c,d,u,h,p,f,m,g,v=l&&l.autoplay?l.autoplay.delay:3e3,b=l&&l.autoplay?l.autoplay.delay:3e3,y=(new Date).getTime();function w(e){n&&!n.destroyed&&n.wrapperEl&&e.target===n.wrapperEl&&(n.wrapperEl.removeEventListener("transitionend",w),g||e.detail&&e.detail.bySwiperTouchMove||$())}const _=()=>{if(n.destroyed||!n.autoplay.running)return;n.autoplay.paused?d=!0:d&&(b=c,d=!1);const e=n.autoplay.paused?c:y+b-(new Date).getTime();n.autoplay.timeLeft=e,o("autoplayTimeLeft",e,e/v),i=requestAnimationFrame(()=>{_()})},x=e=>{if(n.destroyed||!n.autoplay.running)return;cancelAnimationFrame(i),_();let s=void 0===e?n.params.autoplay.delay:e;v=n.params.autoplay.delay,b=n.params.autoplay.delay;const a=(()=>{let e;if(e=n.virtual&&n.params.virtual.enabled?n.slides.filter(e=>e.classList.contains("swiper-slide-active"))[0]:n.slides[n.activeIndex])return parseInt(e.getAttribute("data-swiper-autoplay"),10)})();!Number.isNaN(a)&&a>0&&void 0===e&&(s=a,v=a,b=a),c=s;const r=n.params.speed,l=()=>{n&&!n.destroyed&&(n.params.autoplay.reverseDirection?!n.isBeginning||n.params.loop||n.params.rewind?(n.slidePrev(r,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(n.slides.length-1,r,!0,!0),o("autoplay")):!n.isEnd||n.params.loop||n.params.rewind?(n.slideNext(r,!0,!0),o("autoplay")):n.params.autoplay.stopOnLastSlide||(n.slideTo(0,r,!0,!0),o("autoplay")),n.params.cssMode&&(y=(new Date).getTime(),requestAnimationFrame(()=>{x()})))};return s>0?(clearTimeout(t),t=setTimeout(()=>{l()},s)):requestAnimationFrame(()=>{l()}),s},k=()=>{y=(new Date).getTime(),n.autoplay.running=!0,x(),o("autoplayStart")},S=()=>{n.autoplay.running=!1,clearTimeout(t),cancelAnimationFrame(i),o("autoplayStop")},C=(e,i)=>{if(n.destroyed||!n.autoplay.running)return;clearTimeout(t),e||(m=!0);const s=()=>{o("autoplayPause"),n.params.autoplay.waitForTransition?n.wrapperEl.addEventListener("transitionend",w):$()};if(n.autoplay.paused=!0,i)return f&&(c=n.params.autoplay.delay),f=!1,void s();const a=c||n.params.autoplay.delay;c=a-((new Date).getTime()-y),n.isEnd&&c<0&&!n.params.loop||(c<0&&(c=0),s())},$=()=>{n.isEnd&&c<0&&!n.params.loop||n.destroyed||!n.autoplay.running||(y=(new Date).getTime(),m?(m=!1,x(c)):x(),n.autoplay.paused=!1,o("autoplayResume"))},T=()=>{if(n.destroyed||!n.autoplay.running)return;const e=s();"hidden"===e.visibilityState&&(m=!0,C(!0)),"visible"===e.visibilityState&&$()},E=e=>{"mouse"===e.pointerType&&(m=!0,g=!0,n.animating||n.autoplay.paused||C(!0))},D=e=>{"mouse"===e.pointerType&&(g=!1,n.autoplay.paused&&$())};r("init",()=>{n.params.autoplay.enabled&&(n.params.autoplay.pauseOnMouseEnter&&(n.el.addEventListener("pointerenter",E),n.el.addEventListener("pointerleave",D)),s().addEventListener("visibilitychange",T),k())}),r("destroy",()=>{n.el&&"string"!=typeof n.el&&(n.el.removeEventListener("pointerenter",E),n.el.removeEventListener("pointerleave",D)),s().removeEventListener("visibilitychange",T),n.autoplay.running&&S()}),r("_freeModeStaticRelease",()=>{(h||m)&&$()}),r("_freeModeNoMomentumRelease",()=>{n.params.autoplay.disableOnInteraction?S():C(!0,!0)}),r("beforeTransitionStart",(e,t,i)=>{!n.destroyed&&n.autoplay.running&&(i||!n.params.autoplay.disableOnInteraction?C(!0,!0):S())}),r("sliderFirstMove",()=>{!n.destroyed&&n.autoplay.running&&(n.params.autoplay.disableOnInteraction?S():(u=!0,h=!1,m=!1,p=setTimeout(()=>{m=!0,h=!0,C(!0)},200)))}),r("touchEnd",()=>{if(!n.destroyed&&n.autoplay.running&&u){if(clearTimeout(p),clearTimeout(t),n.params.autoplay.disableOnInteraction)return h=!1,void(u=!1);h&&n.params.cssMode&&$(),h=!1,u=!1}}),r("slideChange",()=>{!n.destroyed&&n.autoplay.running&&(f=!0)}),Object.assign(n.autoplay,{start:k,stop:S,pause:C,resume:$})},function(e){let{swiper:t,extendParams:i,on:n}=e;i({thumbs:{swiper:null,multipleActiveThumbs:!0,autoScrollOffset:0,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-thumbs"}});let a=!1,r=!1;function o(){const e=t.thumbs.swiper;if(!e||e.destroyed)return;const i=e.clickedIndex,s=e.clickedSlide;if(s&&s.classList.contains(t.params.thumbs.slideThumbActiveClass))return;if(null==i)return;let n;n=e.params.loop?parseInt(e.clickedSlide.getAttribute("data-swiper-slide-index"),10):i,t.params.loop?t.slideToLoop(n):t.slideTo(n)}function l(){const{thumbs:e}=t.params;if(a)return!1;a=!0;const i=t.constructor;if(e.swiper instanceof i)t.thumbs.swiper=e.swiper,Object.assign(t.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),Object.assign(t.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper.update();else if(d(e.swiper)){const s=Object.assign({},e.swiper);Object.assign(s,{watchSlidesProgress:!0,slideToClickedSlide:!1}),t.thumbs.swiper=new i(s),r=!0}return t.thumbs.swiper.el.classList.add(t.params.thumbs.thumbsContainerClass),t.thumbs.swiper.on("tap",o),!0}function c(e){const i=t.thumbs.swiper;if(!i||i.destroyed)return;const s="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;let n=1;const a=t.params.thumbs.slideThumbActiveClass;if(t.params.slidesPerView>1&&!t.params.centeredSlides&&(n=t.params.slidesPerView),t.params.thumbs.multipleActiveThumbs||(n=1),n=Math.floor(n),i.slides.forEach(e=>e.classList.remove(a)),i.params.loop||i.params.virtual&&i.params.virtual.enabled)for(let e=0;e<n;e+=1)m(i.slidesEl,`[data-swiper-slide-index="${t.realIndex+e}"]`).forEach(e=>{e.classList.add(a)});else for(let e=0;e<n;e+=1)i.slides[t.realIndex+e]&&i.slides[t.realIndex+e].classList.add(a);const r=t.params.thumbs.autoScrollOffset,o=r&&!i.params.loop;if(t.realIndex!==i.realIndex||o){const n=i.activeIndex;let a,l;if(i.params.loop){const e=i.slides.filter(e=>e.getAttribute("data-swiper-slide-index")===`${t.realIndex}`)[0];a=i.slides.indexOf(e),l=t.activeIndex>t.previousIndex?"next":"prev"}else l=(a=t.realIndex)>t.previousIndex?"next":"prev";o&&(a+="next"===l?r:-1*r),i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(a)<0&&(i.params.centeredSlides?a=a>n?a-Math.floor(s/2)+1:a+Math.floor(s/2)-1:a>n&&i.params.slidesPerGroup,i.slideTo(a,e?0:void 0))}}t.thumbs={swiper:null},n("beforeInit",()=>{const{thumbs:e}=t.params;if(e&&e.swiper)if("string"==typeof e.swiper||e.swiper instanceof HTMLElement){const i=s(),n=()=>{const s="string"==typeof e.swiper?i.querySelector(e.swiper):e.swiper;if(s&&s.swiper)e.swiper=s.swiper,l(),c(!0);else if(s){const i=`${t.params.eventsPrefix}init`,n=a=>{e.swiper=a.detail[0],s.removeEventListener(i,n),l(),c(!0),e.swiper.update(),t.update()};s.addEventListener(i,n)}return s},a=()=>{t.destroyed||n()||requestAnimationFrame(a)};requestAnimationFrame(a)}else l(),c(!0)}),n("slideChange update resize observerUpdate",()=>{c()}),n("setTransition",(e,i)=>{const s=t.thumbs.swiper;s&&!s.destroyed&&s.setTransition(i)}),n("beforeDestroy",()=>{const e=t.thumbs.swiper;e&&!e.destroyed&&r&&e.destroy()}),Object.assign(t.thumbs,{init:l,update:c})},function(e){let{swiper:t,extendParams:i,emit:s,once:n}=e;i({freeMode:{enabled:!1,momentum:!0,momentumRatio:1,momentumBounce:!0,momentumBounceRatio:1,momentumVelocityRatio:1,sticky:!1,minimumVelocity:.02}}),Object.assign(t,{freeMode:{onTouchStart:function(){if(t.params.cssMode)return;const e=t.getTranslate();t.setTranslate(e),t.setTransition(0),t.touchEventsData.velocities.length=0,t.freeMode.onTouchEnd({currentPos:t.rtl?t.translate:-t.translate})},onTouchMove:function(){if(t.params.cssMode)return;const{touchEventsData:e,touches:i}=t;0===e.velocities.length&&e.velocities.push({position:i[t.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:i[t.isHorizontal()?"currentX":"currentY"],time:l()})},onTouchEnd:function(e){let{currentPos:i}=e;if(t.params.cssMode)return;const{params:a,wrapperEl:r,rtlTranslate:o,snapGrid:c,touchEventsData:d}=t,u=l()-d.touchStartTime;if(i<-t.minTranslate())t.slideTo(t.activeIndex);else if(i>-t.maxTranslate())t.slides.length<c.length?t.slideTo(c.length-1):t.slideTo(t.slides.length-1);else{if(a.freeMode.momentum){if(d.velocities.length>1){const e=d.velocities.pop(),i=d.velocities.pop(),s=e.position-i.position,n=e.time-i.time;t.velocity=s/n,t.velocity/=2,Math.abs(t.velocity)<a.freeMode.minimumVelocity&&(t.velocity=0),(n>150||l()-e.time>300)&&(t.velocity=0)}else t.velocity=0;t.velocity*=a.freeMode.momentumVelocityRatio,d.velocities.length=0;let e=1e3*a.freeMode.momentumRatio;const i=t.velocity*e;let u=t.translate+i;o&&(u=-u);let h,p=!1;const f=20*Math.abs(t.velocity)*a.freeMode.momentumBounceRatio;let m;if(u<t.maxTranslate())a.freeMode.momentumBounce?(u+t.maxTranslate()<-f&&(u=t.maxTranslate()-f),h=t.maxTranslate(),p=!0,d.allowMomentumBounce=!0):u=t.maxTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(u>t.minTranslate())a.freeMode.momentumBounce?(u-t.minTranslate()>f&&(u=t.minTranslate()+f),h=t.minTranslate(),p=!0,d.allowMomentumBounce=!0):u=t.minTranslate(),a.loop&&a.centeredSlides&&(m=!0);else if(a.freeMode.sticky){let e;for(let t=0;t<c.length;t+=1)if(c[t]>-u){e=t;break}u=-(u=Math.abs(c[e]-u)<Math.abs(c[e-1]-u)||"next"===t.swipeDirection?c[e]:c[e-1])}if(m&&n("transitionEnd",()=>{t.loopFix()}),0!==t.velocity){if(e=o?Math.abs((-u-t.translate)/t.velocity):Math.abs((u-t.translate)/t.velocity),a.freeMode.sticky){const i=Math.abs((o?-u:u)-t.translate),s=t.slidesSizesGrid[t.activeIndex];e=i<s?a.speed:i<2*s?1.5*a.speed:2.5*a.speed}}else if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode.momentumBounce&&p?(t.updateProgress(h),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating=!0,x(r,()=>{t&&!t.destroyed&&d.allowMomentumBounce&&(s("momentumBounce"),t.setTransition(a.speed),setTimeout(()=>{t.setTranslate(h),x(r,()=>{t&&!t.destroyed&&t.transitionEnd()})},0))})):t.velocity?(s("_freeModeNoMomentumRelease"),t.updateProgress(u),t.setTransition(e),t.setTranslate(u),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,x(r,()=>{t&&!t.destroyed&&t.transitionEnd()}))):t.updateProgress(u),t.updateActiveIndex(),t.updateSlidesClasses()}else{if(a.freeMode.sticky)return void t.slideToClosest();a.freeMode&&s("_freeModeNoMomentumRelease")}(!a.freeMode.momentum||u>=a.longSwipesMs)&&(s("_freeModeStaticRelease"),t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}}}})},function(e){let t,i,s,n,{swiper:a,extendParams:r,on:o}=e;r({grid:{rows:1,fill:"column"}});const l=()=>{let e=a.params.spaceBetween;return"string"==typeof e&&e.indexOf("%")>=0?e=parseFloat(e.replace("%",""))/100*a.size:"string"==typeof e&&(e=parseFloat(e)),e};o("init",()=>{n=a.params.grid&&a.params.grid.rows>1}),o("update",()=>{const{params:e,el:t}=a,i=e.grid&&e.grid.rows>1;n&&!i?(t.classList.remove(`${e.containerModifierClass}grid`,`${e.containerModifierClass}grid-column`),s=1,a.emitContainerClasses()):!n&&i&&(t.classList.add(`${e.containerModifierClass}grid`),"column"===e.grid.fill&&t.classList.add(`${e.containerModifierClass}grid-column`),a.emitContainerClasses()),n=i}),a.grid={initSlides:e=>{const{slidesPerView:n}=a.params,{rows:r,fill:o}=a.params.grid,l=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:e.length;s=Math.floor(l/r),t=Math.floor(l/r)===l/r?l:Math.ceil(l/r)*r,"auto"!==n&&"row"===o&&(t=Math.max(t,n*r)),i=t/r},unsetSlides:()=>{a.slides&&a.slides.forEach(e=>{e.swiperSlideGridSet&&(e.style.height="",e.style[a.getDirectionLabel("margin-top")]="")})},updateSlide:(e,n,r)=>{const{slidesPerGroup:o}=a.params,c=l(),{rows:d,fill:u}=a.params.grid,h=a.virtual&&a.params.virtual.enabled?a.virtual.slides.length:r.length;let p,f,m;if("row"===u&&o>1){const i=Math.floor(e/(o*d)),s=e-d*o*i,a=0===i?o:Math.min(Math.ceil((h-i*d*o)/d),o);p=(f=s-(m=Math.floor(s/a))*a+i*o)+m*t/d,n.style.order=p}else"column"===u?(m=e-(f=Math.floor(e/d))*d,(f>s||f===s&&m===d-1)&&((m+=1)>=d&&(m=0,f+=1))):f=e-(m=Math.floor(e/i))*i;n.row=m,n.column=f,n.style.height=`calc((100% - ${(d-1)*c}px) / ${d})`,n.style[a.getDirectionLabel("margin-top")]=0!==m?c&&`${c}px`:"",n.swiperSlideGridSet=!0},updateWrapperSize:(e,i)=>{const{centeredSlides:s,roundLengths:n}=a.params,r=l(),{rows:o}=a.params.grid;if(a.virtualSize=(e+r)*t,a.virtualSize=Math.ceil(a.virtualSize/o)-r,a.params.cssMode||(a.wrapperEl.style[a.getDirectionLabel("width")]=`${a.virtualSize+r}px`),s){const e=[];for(let t=0;t<i.length;t+=1){let s=i[t];n&&(s=Math.floor(s)),i[t]<a.virtualSize+i[0]&&e.push(s)}i.splice(0,i.length),i.push(...e)}}}},function(e){let{swiper:t}=e;Object.assign(t,{appendSlide:X.bind(t),prependSlide:J.bind(t),addSlide:K.bind(t),removeSlide:Q.bind(t),removeAllSlides:Z.bind(t)})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({fadeEffect:{crossFade:!1}}),ee({effect:"fade",swiper:t,on:s,setTranslate:()=>{const{slides:e}=t;t.params.fadeEffect;for(let i=0;i<e.length;i+=1){const e=t.slides[i];let s=-e.swiperSlideOffset;t.params.virtualTranslate||(s-=t.translate);let n=0;t.isHorizontal()||(n=s,s=0);const a=t.params.fadeEffect.crossFade?Math.max(1-Math.abs(e.progress),0):1+Math.min(Math.max(e.progress,-1),0),r=te(0,e);r.style.opacity=a,r.style.transform=`translate3d(${s}px, ${n}px, 0px)`}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`}),ie({swiper:t,duration:e,transformElements:i,allSlides:!0})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}});const n=(e,t,i)=>{let s=i?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=i?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"left":"top")).split(" ")),e.append(s)),n||(n=v("div",("swiper-slide-shadow-cube swiper-slide-shadow-"+(i?"right":"bottom")).split(" ")),e.append(n)),s&&(s.style.opacity=Math.max(-t,0)),n&&(n.style.opacity=Math.max(t,0))};ee({effect:"cube",swiper:t,on:s,setTranslate:()=>{const{el:e,wrapperEl:i,slides:s,width:a,height:r,rtlTranslate:o,size:l,browser:c}=t,d=C(t),u=t.params.cubeEffect,h=t.isHorizontal(),p=t.virtual&&t.params.virtual.enabled;let f,m=0;u.shadow&&(h?((f=t.wrapperEl.querySelector(".swiper-cube-shadow"))||(f=v("div","swiper-cube-shadow"),t.wrapperEl.append(f)),f.style.height=`${a}px`):(f=e.querySelector(".swiper-cube-shadow"))||(f=v("div","swiper-cube-shadow"),e.append(f)));for(let e=0;e<s.length;e+=1){const t=s[e];let i=e;p&&(i=parseInt(t.getAttribute("data-swiper-slide-index"),10));let a=90*i,r=Math.floor(a/360);o&&(a=-a,r=Math.floor(-a/360));const c=Math.max(Math.min(t.progress,1),-1);let f=0,g=0,v=0;i%4==0?(f=4*-r*l,v=0):(i-1)%4==0?(f=0,v=4*-r*l):(i-2)%4==0?(f=l+4*r*l,v=l):(i-3)%4==0&&(f=-l,v=3*l+4*l*r),o&&(f=-f),h||(g=f,f=0);const b=`rotateX(${d(h?0:-a)}deg) rotateY(${d(h?a:0)}deg) translate3d(${f}px, ${g}px, ${v}px)`;c<=1&&c>-1&&(m=90*i+90*c,o&&(m=90*-i-90*c)),t.style.transform=b,u.slideShadows&&n(t,c,h)}if(i.style.transformOrigin=`50% 50% -${l/2}px`,i.style["-webkit-transform-origin"]=`50% 50% -${l/2}px`,u.shadow)if(h)f.style.transform=`translate3d(0px, ${a/2+u.shadowOffset}px, ${-a/2}px) rotateX(89.99deg) rotateZ(0deg) scale(${u.shadowScale})`;else{const e=Math.abs(m)-90*Math.floor(Math.abs(m)/90),t=1.5-(Math.sin(2*e*Math.PI/360)/2+Math.cos(2*e*Math.PI/360)/2),i=u.shadowScale,s=u.shadowScale/t,n=u.shadowOffset;f.style.transform=`scale3d(${i}, 1, ${s}) translate3d(0px, ${r/2+n}px, ${-r/2/s}px) rotateX(-89.99deg)`}const g=(c.isSafari||c.isWebView)&&c.needPerspectiveFix?-l/2:0;i.style.transform=`translate3d(0px,0,${g}px) rotateX(${d(t.isHorizontal()?0:m)}deg) rotateY(${d(t.isHorizontal()?-m:0)}deg)`,i.style.setProperty("--swiper-cube-translate-z",`${g}px`)},setTransition:e=>{const{el:i,slides:s}=t;if(s.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),t.params.cubeEffect.shadow&&!t.isHorizontal()){const t=i.querySelector(".swiper-cube-shadow");t&&(t.style.transitionDuration=`${e}ms`)}},recreateShadows:()=>{const e=t.isHorizontal();t.slides.forEach(t=>{const i=Math.max(Math.min(t.progress,1),-1);n(t,i,e)})},getEffectParams:()=>t.params.cubeEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({flipEffect:{slideShadows:!0,limitRotation:!0}});const n=(e,i)=>{let s=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-left"):e.querySelector(".swiper-slide-shadow-top"),n=t.isHorizontal()?e.querySelector(".swiper-slide-shadow-right"):e.querySelector(".swiper-slide-shadow-bottom");s||(s=se("flip",e,t.isHorizontal()?"left":"top")),n||(n=se("flip",e,t.isHorizontal()?"right":"bottom")),s&&(s.style.opacity=Math.max(-i,0)),n&&(n.style.opacity=Math.max(i,0))};ee({effect:"flip",swiper:t,on:s,setTranslate:()=>{const{slides:e,rtlTranslate:i}=t,s=t.params.flipEffect,a=C(t);for(let r=0;r<e.length;r+=1){const o=e[r];let l=o.progress;t.params.flipEffect.limitRotation&&(l=Math.max(Math.min(o.progress,1),-1));const c=o.swiperSlideOffset;let d=-180*l,u=0,h=t.params.cssMode?-c-t.translate:-c,p=0;t.isHorizontal()?i&&(d=-d):(p=h,h=0,u=-d,d=0),o.style.zIndex=-Math.abs(Math.round(l))+e.length,s.slideShadows&&n(o,l);const f=`translate3d(${h}px, ${p}px, 0px) rotateX(${a(u)}deg) rotateY(${a(d)}deg)`;te(0,o).style.transform=f}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),ie({swiper:t,duration:e,transformElements:i})},recreateShadows:()=>{t.params.flipEffect,t.slides.forEach(e=>{let i=e.progress;t.params.flipEffect.limitRotation&&(i=Math.max(Math.min(e.progress,1),-1)),n(e,i)})},getEffectParams:()=>t.params.flipEffect,perspective:()=>!0,overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({coverflowEffect:{rotate:50,stretch:0,depth:100,scale:1,modifier:1,slideShadows:!0}}),ee({effect:"coverflow",swiper:t,on:s,setTranslate:()=>{const{width:e,height:i,slides:s,slidesSizesGrid:n}=t,a=t.params.coverflowEffect,r=t.isHorizontal(),o=t.translate,l=r?e/2-o:i/2-o,c=r?a.rotate:-a.rotate,d=a.depth,u=C(t);for(let e=0,t=s.length;e<t;e+=1){const t=s[e],i=n[e],o=(l-t.swiperSlideOffset-i/2)/i,h="function"==typeof a.modifier?a.modifier(o):o*a.modifier;let p=r?c*h:0,f=r?0:c*h,m=-d*Math.abs(h),g=a.stretch;"string"==typeof g&&-1!==g.indexOf("%")&&(g=parseFloat(a.stretch)/100*i);let v=r?0:g*h,b=r?g*h:0,y=1-(1-a.scale)*Math.abs(h);Math.abs(b)<.001&&(b=0),Math.abs(v)<.001&&(v=0),Math.abs(m)<.001&&(m=0),Math.abs(p)<.001&&(p=0),Math.abs(f)<.001&&(f=0),Math.abs(y)<.001&&(y=0);const w=`translate3d(${b}px,${v}px,${m}px)  rotateX(${u(f)}deg) rotateY(${u(p)}deg) scale(${y})`;if(te(0,t).style.transform=w,t.style.zIndex=1-Math.abs(Math.round(h)),a.slideShadows){let e=r?t.querySelector(".swiper-slide-shadow-left"):t.querySelector(".swiper-slide-shadow-top"),i=r?t.querySelector(".swiper-slide-shadow-right"):t.querySelector(".swiper-slide-shadow-bottom");e||(e=se("coverflow",t,r?"left":"top")),i||(i=se("coverflow",t,r?"right":"bottom")),e&&(e.style.opacity=h>0?h:0),i&&(i.style.opacity=-h>0?-h:0)}}},setTransition:e=>{t.slides.map(e=>f(e)).forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(t=>{t.style.transitionDuration=`${e}ms`})})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({creativeEffect:{limitProgress:1,shadowPerProgress:!1,progressMultiplier:1,perspective:!0,prev:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1},next:{translate:[0,0,0],rotate:[0,0,0],opacity:1,scale:1}}});const n=e=>"string"==typeof e?e:`${e}px`;ee({effect:"creative",swiper:t,on:s,setTranslate:()=>{const{slides:e,wrapperEl:i,slidesSizesGrid:s}=t,a=t.params.creativeEffect,{progressMultiplier:r}=a,o=t.params.centeredSlides,l=C(t);if(o){const e=s[0]/2-t.params.slidesOffsetBefore||0;i.style.transform=`translateX(calc(50% - ${e}px))`}for(let i=0;i<e.length;i+=1){const s=e[i],c=s.progress,d=Math.min(Math.max(s.progress,-a.limitProgress),a.limitProgress);let u=d;o||(u=Math.min(Math.max(s.originalProgress,-a.limitProgress),a.limitProgress));const h=s.swiperSlideOffset,p=[t.params.cssMode?-h-t.translate:-h,0,0],f=[0,0,0];let m=!1;t.isHorizontal()||(p[1]=p[0],p[0]=0);let g={translate:[0,0,0],rotate:[0,0,0],scale:1,opacity:1};d<0?(g=a.next,m=!0):d>0&&(g=a.prev,m=!0),p.forEach((e,t)=>{p[t]=`calc(${e}px + (${n(g.translate[t])} * ${Math.abs(d*r)}))`}),f.forEach((e,t)=>{let i=g.rotate[t]*Math.abs(d*r);f[t]=i}),s.style.zIndex=-Math.abs(Math.round(c))+e.length;const v=p.join(", "),b=`rotateX(${l(f[0])}deg) rotateY(${l(f[1])}deg) rotateZ(${l(f[2])}deg)`,y=u<0?`scale(${1+(1-g.scale)*u*r})`:`scale(${1-(1-g.scale)*u*r})`,w=u<0?1+(1-g.opacity)*u*r:1-(1-g.opacity)*u*r,_=`translate3d(${v}) ${b} ${y}`;if(m&&g.shadow||!m){let e=s.querySelector(".swiper-slide-shadow");if(!e&&g.shadow&&(e=se("creative",s)),e){const t=a.shadowPerProgress?d*(1/a.limitProgress):d;e.style.opacity=Math.min(Math.max(Math.abs(t),0),1)}}const x=te(0,s);x.style.transform=_,x.style.opacity=w,g.origin&&(x.style.transformOrigin=g.origin)}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),ie({swiper:t,duration:e,transformElements:i,allSlides:!0})},perspective:()=>t.params.creativeEffect.perspective,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})},function(e){let{swiper:t,extendParams:i,on:s}=e;i({cardsEffect:{slideShadows:!0,rotate:!0,perSlideRotate:2,perSlideOffset:8}}),ee({effect:"cards",swiper:t,on:s,setTranslate:()=>{const{slides:e,activeIndex:i,rtlTranslate:s}=t,n=t.params.cardsEffect,{startTranslate:a,isTouched:r}=t.touchEventsData,o=s?-t.translate:t.translate;for(let l=0;l<e.length;l+=1){const c=e[l],d=c.progress,u=Math.min(Math.max(d,-4),4);let h=c.swiperSlideOffset;t.params.centeredSlides&&!t.params.cssMode&&(t.wrapperEl.style.transform=`translateX(${t.minTranslate()}px)`),t.params.centeredSlides&&t.params.cssMode&&(h-=e[0].swiperSlideOffset);let p=t.params.cssMode?-h-t.translate:-h,f=0;const m=-100*Math.abs(u);let g=1,v=-n.perSlideRotate*u,b=n.perSlideOffset-.75*Math.abs(u);const y=t.virtual&&t.params.virtual.enabled?t.virtual.from+l:l,w=(y===i||y===i-1)&&u>0&&u<1&&(r||t.params.cssMode)&&o<a,_=(y===i||y===i+1)&&u<0&&u>-1&&(r||t.params.cssMode)&&o>a;if(w||_){const e=(1-Math.abs((Math.abs(u)-.5)/.5))**.5;v+=-28*u*e,g+=-.5*e,b+=96*e,f=-25*e*Math.abs(u)+"%"}if(p=u<0?`calc(${p}px ${s?"-":"+"} (${b*Math.abs(u)}%))`:u>0?`calc(${p}px ${s?"-":"+"} (-${b*Math.abs(u)}%))`:`${p}px`,!t.isHorizontal()){const e=f;f=p,p=e}const x=u<0?""+(1+(1-g)*u):""+(1-(1-g)*u),k=`\n        translate3d(${p}, ${f}, ${m}px)\n        rotateZ(${n.rotate?s?-v:v:0}deg)\n        scale(${x})\n      `;if(n.slideShadows){let e=c.querySelector(".swiper-slide-shadow");e||(e=se("cards",c)),e&&(e.style.opacity=Math.min(Math.max((Math.abs(u)-.5)/.5,0),1))}c.style.zIndex=-Math.abs(Math.round(d))+e.length,te(0,c).style.transform=k}},setTransition:e=>{const i=t.slides.map(e=>f(e));i.forEach(t=>{t.style.transitionDuration=`${e}ms`,t.querySelectorAll(".swiper-slide-shadow").forEach(t=>{t.style.transitionDuration=`${e}ms`})}),ie({swiper:t,duration:e,transformElements:i})},perspective:()=>!0,overwriteParams:()=>({watchSlidesProgress:!0,virtualTranslate:!t.params.cssMode})})}];return q.use(ne),q}(),voucherCodeVal;function clearCountyValue(e){$("#"+e+"UKCountySelector").val(0).change(),$("#"+e+"irishCountySelector").val(0).change(),$("#"+e+"USAStateSelector").val(0).change(),$("#"+e+"addCounty").val("")}function checkoutCountryChange(e){if($("#"+e+"addCountry").length){var t=$("#"+e+"addCountry").val();southAmericaDeliveryWarningToggle($("#"+e+"addCountry").val()),""==e&&("BR"==t||"AR"==t?$(".field-tax-payer-id").removeClass("hidden"):$(".field-tax-payer-id").addClass("hidden")),"GB"==t||"IE"==t||"US"==t?($("#"+e+"countyDiv").hide(),"GB"==t?($("#"+e+"UKCountySelector").closest(".sod_select").length?$("#"+e+"UKCountySelector").closest(".sod_select").show():$("#"+e+"UKCountySelector").css("display","inline"),$("#"+e+"irishCountySelector").closest(".sod_select").length?$("#"+e+"irishCountySelector").closest(".sod_select").hide():$("#"+e+"irishCountySelector").css("display","none"),$("#"+e+"USAStateSelector").closest(".sod_select").length?$("#"+e+"USAStateSelector").closest(".sod_select").hide():$("#"+e+"USAStateSelector").css("display","none"),$("#"+e+"addCounty").closest(".field-county").show()):"IE"==t?($("#"+e+"UKCountySelector").closest(".sod_select").length?$("#"+e+"UKCountySelector").closest(".sod_select").hide():$("#"+e+"UKCountySelector").css("display","none"),$("#"+e+"irishCountySelector").closest(".sod_select").length?$("#"+e+"irishCountySelector").closest(".sod_select").show():$("#"+e+"irishCountySelector").css("display","inline"),$("#"+e+"USAStateSelector").closest(".sod_select").length?$("#"+e+"USAStateSelector").closest(".sod_select").hide():$("#"+e+"USAStateSelector").css("display","none"),$("#"+e+"addCounty").closest(".field-county").show()):"US"==t&&($("#"+e+"UKCountySelector").closest(".sod_select").length?$("#"+e+"UKCountySelector").closest(".sod_select").hide():$("#"+e+"UKCountySelector").css("display","none"),$("#"+e+"irishCountySelector").closest(".sod_select").length?$("#"+e+"irishCountySelector").closest(".sod_select").hide():$("#"+e+"irishCountySelector").css("display","none"),$("#"+e+"USAStateSelector").closest(".sod_select").length?$("#"+e+"USAStateSelector").closest(".sod_select").show():$("#"+e+"USAStateSelector").css("display","inline"),$("#"+e+"addCounty").closest(".field-county").show())):($("#"+e+"addCounty").closest(".field-county").show(),$("#"+e+"countyDiv").show(),$("#"+e+"UKCountySelector").closest(".sod_select").length?$("#"+e+"UKCountySelector").closest(".sod_select").hide():$("#"+e+"UKCountySelector").length&&(document.getElementById(e+"UKCountySelector").style.display="none"),$("#"+e+"irishCountySelector").closest(".sod_select").length?$("#"+e+"irishCountySelector").closest(".sod_select").hide():$("#"+e+"irishCountySelector").length&&(document.getElementById(e+"irishCountySelector").style.display="none"),$("#"+e+"USAStateSelector").closest(".sod_select").length?$("#"+e+"USAStateSelector").closest(".sod_select").hide():$("#"+e+"USAStateSelector").length&&(document.getElementById(e+"USAStateSelector").style.display="none")),"GB"==t||"IE"==t?($("#"+e+"countyFieldText").length&&(document.getElementById(e+"countyFieldText").innerHTML=jslocalstrings.County+" *"),$("#"+e+"postcodeFieldText").length&&(document.getElementById(e+"postcodeFieldText").innerHTML=jslocalstrings.Postcode+" *")):"US"==t?($("#"+e+"countyFieldText").length&&(document.getElementById(e+"countyFieldText").innerHTML=jslocalstrings.State+" *"),$("#"+e+"postcodeFieldText").length&&(document.getElementById(e+"postcodeFieldText").innerHTML=jslocalstrings["Zip Code"]+" *")):($("#"+e+"countyFieldText").length&&(document.getElementById(e+"countyFieldText").innerHTML=jslocalstrings.Region+" *"),$("#"+e+"postcodeFieldText").length&&(document.getElementById(e+"postcodeFieldText").innerHTML=jslocalstrings.Postcode+" *")),"GB"==t?$("#"+e+"addPostcodeSearchForm").show():$("#"+e+"addPostcodeSearchForm").hide(),$("#in_useBillingForDelivery").length&&!e&&document.getElementById("in_useBillingForDelivery").value}}function cordovaDeviceReady(){"ios"===device.platform.toLowerCase().replace(/[\W]+/g,"_")&&$("body.ios .home-page-main-banner").find(".vimeo-wrapper").closest(".main-banner-item").remove()}function toggleBasketUpdateBox(e){if(e.closest(".basket-item").find(".basketEditItemBlock").is(":hidden")){$(".basketEditItemBlock").css("display","none"),$(".basketEditItemBlock").html(""),$(".toggleBasketUpdateBox").find(".plus").show(),$(".toggleBasketUpdateBox").find(".minus").hide(),$(".toggleBasketUpdateBox").addClass("active"),addToCartSize="",$(".editItemBlock_"+e.attr("data-toggle-block")).css("display","block"),showAnimatedSpinner(".editItemBlock_"+e.attr("data-toggle-block"),"DARK");var t=e.attr("data-item-data");$.ajax({url:skinJS_SiteURL+"/cgi-bin/ajax-loadbasketupdateitemform.cgi",data:{itemData:t},success:function(i){$(".editItemBlock_"+e.attr("data-toggle-block")).html(i),forCart("size",t.split("~")[1],1),"function"==typeof $("select").selectOrDie&&$("select").selectOrDie(),$(".variants-list .orderButtonSelected").length&&$(".variants-list").find(".select-variants-header").text($(".variants-list .orderButtonSelected span").text());$(".basketEditItemBlock .qty-select").append('<ul class="quantity-dropdown"><li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li><li>7</li><li>8</li><li>9</li><li>10</li></ul>'),LovellPersn.init()},error:function(e,t,i){}})}else $(".editItemBlock_"+e.attr("data-toggle-block")).html(""),$(".basketEditItemBlock").css("display","none"),$(".toggleBasketUpdateBox").removeClass("active");e.find(".plus").toggle(),e.find(".minus").toggle()}function displayNoOfItemsBadge(e){e?$("#basket-total-items").text(e):$("#basket-total-items").length&&(e=$("#basket-total-items").text()),parseInt(e)>0?($("#btn-basket").append('<div class="items-badge">'+e+"</div>"),$("#btn-checkout").css("background-color","#1b8a0d"),$("#basket-total-items").show()):$("#basket-total-items").hide()}function deleteCompactBasketItem(e){document.getElementById(e)&&(document.getElementById(e).value=0,document.forms.updateCompactBasketForm.submit())}function updateBasket(e,t,i,s){e||(e=getVal("ba_ProductID")),t||(t=getVal("ba_Size"));var n=getVal("ba_ProductName")||"",a="";document.getElementById("itemGivenPrice")&&(a=getVal("itemGivenPrice"));var r=$("input[type=hidden][name=isSDPersn]").val()?LovellPersn.getServiceValuesString():"",o=$(".size-block").length;if(i||(i=$(".quantity-selector").length?1:getVal("ba_Quantity")),e&&i&&(t||!o)){if(document.cookie.match(/\baddItemToExistingOrder=\d+\b/)){$("#addThisProductToBasket").append("<p>Added product: "+e+" ("+t+") x"+i+"</p>");try{window.opener.postMessage({ProductID:e,Quantity:i,Size:t,Personalisation:r,Price:a},"*")}catch(e){throw new Error("Couldn't reach return func on parent window")}return}basketUpdate(e+"~"+i+"~"+t+"~"+r+"~"+a,s),$("#basketInfo").html(""),updateCompactBasket(),i%2==0||$(".add-another").is(":visible")?$(".add-another").hide():$(".add-another").show(),analyticsAddRemoveFromCart({id:e,quantity:i,price:$(".price-main").first().text().replace(/[^\d\.]/g,""),variant:t,productName:n},"add")}else t||$("#addThisProductToBasket .noSizeSelectedWarning").fadeIn("fast")}!function(e){e.fn.lc_txt_shortener=function(t,i,s){var n=e(this);if("undefined"==typeof lcts_data&&(lcts_data={}),void 0===t&&(t=".."),void 0===s)s=["br"];else{var a=["br"],r=["a","strong","em","p"],o=s.split(",");e.each(o,function(t,i){-1!==e.inArray(e.trim(i),r)&&a.push(e.trim(i))}),s=a}var l=function(a){n.each(function(){var n=e(this),r=e(this).attr("lcts-id");if(void 0!==a&&void 0===r)return!0;void 0===r?(r=Math.round((new Date).getTime()+100*Math.random()),e(this).attr("lcts-id",r),lcts_data[r]={orig_txt:n.html(),end_txt:t,allowed_tags:s}):(n.html(lcts_data[r].orig_txt),n.removeClass("lcnb_shorten")),n.find("*:empty").not("br, img, i").remove();var o=n.outerHeight(!0),l=void 0!==i&&i?parseInt(i):n.parent().height();if(l<o){n.html(),n.addClass("lcnb_shorten"),n.find("*").lcts_remove_all_attr(),n.find("*").not(lcts_data[r].allowed_tags.join(",")).each(function(){var t=e(this).contents();e(this).replaceWith(t)});for(var c=e.trim(n.html().replace(/(\r\n|\n|\r)/gm,"")).split(" "),d="",u="",h=o=0;o<l&&h<c.length;)void 0!==c[h]&&(u=d,d=d+c[h]+" ",n.html(d+' <span class="lcts_end_txt">'+lcts_data[r].end_txt+"</span>"),o=n.outerHeight(!0),h++);if(null!=u.match("<br>","g"))for(;"<br>"==u.slice(-5);)u=e.trim(u.slice(0,-4));var p=lcts_data[r].allowed_tags;e.each(p,function(i,s){if("br"!=s){var a=u.match("<"+s,"g"),r=u.match("</"+s,"g");null!=a&&(null!=a&&null==r||a.length>r.length)&&(u=u+"</"+s+">")}i==p.length-1&&(n.html(e.trim(u)+' <span class="lcts_end_txt">'+t+"</span>"),n.find("*:empty").not("br").remove())}),n.find("p").last().css("display","inline")}})};return e.fn.lcts_remove_all_attr=function(){return this.each(function(){var t=e.map(this.attributes,function(e){return e.name}),i=e(this);e.each(t,function(e,t){"href"!=t&&"target"!=t&&i.removeAttr(t)})})},e(window).resize(function(){"undefined"!=typeof lcts_debounce&&clearTimeout(lcts_debounce),lcts_debounce=setTimeout(function(){n.trigger("lcts_resize")},75)}),n.unbind("lcts_resize"),n.bind("lcts_resize",function(){l(!0)}),l()},e.fn.lc_txt_unshorten=function(){return this.each(function(){var t=e(this).attr("lcts-id");if(void 0===t)return!0;e(this).html(lcts_data[t].orig_txt),e(this).unbind("lcts_resize"),e(this).removeClass("lcnb_shorten").removeAttr("lcts-id"),lcts_data[t]=!1})}}(jQuery),function(){"use strict";var e=this,t=function(){this.buttons=[],!0===this.isIos&&this.cntLdd(window,this.crBtn)};t.prototype.isIos=!(!navigator.userAgent.match(/Android|iPhone/i)||navigator.userAgent.match(/iPod|iPad/i)),t.prototype.cntLdd=function(e,t){var i=!1,s=!0,n=e.document,a=n.documentElement,r=n.addEventListener?"addEventListener":"attachEvent",o=n.addEventListener?"removeEventListener":"detachEvent",l=n.addEventListener?"":"on",c=function(s){("readystatechange"!==s.type||"complete"===n.readyState)&&(("load"===s.type?e:n)[o](l+s.type,c,!1),!i&&(i=!0)&&t.call(e,s.type||s))},d=function(){try{a.doScroll("left")}catch(e){return void setTimeout(d,50)}c("poll")};if("complete"===n.readyState)t.call(e,"lazy");else{if(n.createEventObject&&a.doScroll){try{s=!e.frameElement}catch(e){}s&&d()}n[r](l+"DOMContentLoaded",c,!1),n[r](l+"readystatechange",c,!1),e[r](l+"load",c,!1)}},t.prototype.addStyling=function(){var e=document.createElement("style"),t="body,html{padding:0;margin:0;height:100%;width:100%}.wa_btn{background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkViZW5lXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4Ig0KCSB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnPg0KCTxnPg0KCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0ZGRkZGRiIgZD0iTTguMTI5LDAuOTQ1Yy0zLjc5NSwwLTYuODcyLDMuMDc3LTYuODcyLDYuODczDQoJCQljMCwxLjI5OCwwLjM2LDIuNTEyLDAuOTg2LDMuNTQ5bC0xLjI0LDMuNjg4bDMuODA1LTEuMjE5YzAuOTg0LDAuNTQ0LDIuMTE2LDAuODU0LDMuMzIxLDAuODU0YzMuNzk1LDAsNi44NzEtMy4wNzUsNi44NzEtNi44NzENCgkJCVMxMS45MjQsMC45NDUsOC4xMjksMC45NDV6IE04LjEyOSwxMy41MzhjLTEuMTYyLDAtMi4yNDQtMC4zNDgtMy4xNDctMC45NDZsLTIuMTk4LDAuNzA1bDAuNzE1LTIuMTI0DQoJCQljLTAuNjg2LTAuOTQ0LTEuMDktMi4xMDMtMS4wOS0zLjM1NGMwLTMuMTU1LDIuNTY2LTUuNzIyLDUuNzIxLTUuNzIyczUuNzIxLDIuNTY2LDUuNzIxLDUuNzIyUzExLjI4MywxMy41MzgsOC4xMjksMTMuNTM4eg0KCQkJIE0xMS4zNTIsOS4zNzljLTAuMTc0LTAuMDk0LTEuMDItMC41NS0xLjE3OC0wLjYxNUMxMC4wMTQsOC43LDkuODk4LDguNjY2LDkuNzc1LDguODM3QzkuNjUyLDkuMDA3LDkuMzAxLDkuMzksOS4xOTMsOS41MDUNCgkJCUM5LjA4OCw5LjYxNyw4Ljk4NCw5LjYyOSw4LjgxMiw5LjUzM2MtMC4xNzEtMC4wOTYtMC43My0wLjMtMS4zNzgtMC45MjNjLTAuNTA0LTAuNDg0LTAuODM0LTEuMDcyLTAuOTMtMS4yNTINCgkJCWMtMC4wOTUtMC4xOCwwLTAuMjcxLDAuMDkxLTAuMzU0QzYuNjc3LDYuOTI4LDYuNzc4LDYuODA1LDYuODcsNi43MDZjMC4wOTEtMC4xLDAuMTI0LTAuMTcxLDAuMTg3LTAuMjg2DQoJCQljMC4wNjItMC4xMTUsMC4wMzgtMC4yMTgtMC4wMDMtMC4zMDhDNy4wMTIsNi4wMjMsNi42OTQsNS4xNDYsNi41NjEsNC43OUM2LjQyOCw0LjQzNCw2LjI4LDQuNDg2LDYuMTc3LDQuNDgyDQoJCQlDNi4wNzUsNC40NzksNS45NTgsNC40NTksNS44NDEsNC40NTZDNS43MjQsNC40NTEsNS41MzMsNC40ODcsNS4zNjYsNC42NTdjLTAuMTY3LDAuMTctMC42MzcsMC41NzYtMC42NjksMS40MzkNCgkJCXMwLjU2NSwxLjcyMiwwLjY0OCwxLjg0MWMwLjA4NCwwLjEyMSwxLjE0LDEuOTkxLDIuODk3LDIuNzYyYzEuNzU2LDAuNzcsMS43NjYsMC41MzQsMi4wODgsMC41MTgNCgkJCWMwLjMyMi0wLjAxOCwxLjA1NS0wLjM4NiwxLjIxNS0wLjc4OWMwLjE2Mi0wLjQwNSwwLjE3Ni0wLjc1NSwwLjEzNS0wLjgzMUMxMS42MzksOS41MjEsMTEuNTIzLDkuNDc1LDExLjM1Miw5LjM3OXoiLz4NCgk8L2c+DQo8L2c+DQo8L3N2Zz4NCg==);border:1px solid rgba(0,0,0,.1);display:inline-block!important;position:relative;font-family:Arial,sans-serif;letter-spacing:.4px;cursor:pointer;font-weight:400;text-transform:none;color:#fff;border-radius:2px;background-color:#5cbe4a;background-repeat:no-repeat;line-height:1.2;text-decoration:none;text-align:left}.wa_btn_s{font-size:12px;background-size:16px;background-position:5px 2px;padding:3px 6px 3px 25px}.wa_btn_m{font-size:16px;background-size:20px;background-position:4px 2px;padding:4px 6px 4px 30px}.wa_btn_l{font-size:16px;background-size:20px;background-position:5px 5px;padding:8px 6px 8px 30px}";return e.type="text/css",e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),e},t.prototype.setButtonAttributes=function(e){var t=e.getAttribute("data-href"),i="?text="+encodeURIComponent(e.getAttribute("data-text"))+(e.getAttribute("data-text")?"%20":"");return i+=encodeURIComponent(t||document.URL),e.setAttribute("target","_top"),e.setAttribute("href",e.getAttribute("href")+i),e.setAttribute("onclick","window.parent."+e.getAttribute("onclick")),e},t.prototype.setIframeAttributes=function(t){var i=document.createElement("iframe");return i.width=1,i.height=1,i.button=t,i.style.border=0,i.style.overflow="hidden",i.border=0,i.setAttribute("scrolling","no"),i.addEventListener("load",e.WASHAREBTN.iFrameOnload()),i},t.prototype.iFrameOnload=function(){return function(){this.contentDocument.body.appendChild(this.button),this.contentDocument.getElementsByTagName("head")[0].appendChild(e.WASHAREBTN.addStyling());var t=document.createElement("meta");t.setAttribute("charset","utf-8"),this.contentDocument.getElementsByTagName("head")[0].appendChild(t),this.width=Math.ceil(this.contentDocument.getElementsByTagName("a")[0].getBoundingClientRect().width),this.height=Math.ceil(this.contentDocument.getElementsByTagName("a")[0].getBoundingClientRect().height)}},t.prototype.crBtn=function(){for(var t=[].slice.call(document.querySelectorAll(".wa_btn")),i=[],s=0;s<t.length;s++)e.WASHAREBTN.buttons.push(t[s]),t[s]=e.WASHAREBTN.setButtonAttributes(t[s]),i[s]=e.WASHAREBTN.setIframeAttributes(t[s]),t[s].parentNode.insertBefore(i[s],t[s])},e.WASHAREBTN=new t}.call(this),$(document).ready(function(){$(".addresses .edit").on("click",function(){$(".address-display").hide(0);var e=$(".addresses").closest(".account-page__section").offset().top-(parseInt($("body").css("padding-top"))+10);$("html, body").animate({scrollTop:e},500)}),$(".addresses .add").on("click",function(){$(".find-address-button").addClass("disabled"),$("#delivery-address-new-form").show(0),$(".address-display").hide(0);var e=$("#delivery-address-new-form").closest(".account-page__section").offset().top-(parseInt($("body").css("padding-top"))+10);$("html, body").animate({scrollTop:e},500),$(".back-to-home").hide(0),$("#delivery-address-new-form .update-button").toggle(0)}),$(".postcode").on("input propertychange paste",function(){$(this).val().length>5?$(".find-address-button").removeClass("disabled"):$(".find-address-button").addClass("disabled")}),$(".find-address-button").on("click",function(e){e.preventDefault();var t=$(this).data("addressid");searchPAFAddresses($("#del_add_"+t+"_Postcode").val(),$("#del_add_"+t+"_Building").val(),"del_add_"+t+"_",1)}),$(".full-address-link").on("click",function(){$(".full-address-link").hide(),$(".find-address").hide(),$(".optional-house").hide(),$(".postcode-search-link").show(),$(".full-address").show()}),$(".postcode-search-link").on("click",function(){$(".full-address-link").show(),$(".find-address").show(),$(".optional-house").show(),$(".postcode-search-link").hide(),$(".full-address").hide()})}),$(document).ready(function(){document.addEventListener("deviceready",cordovaDeviceReady,!1),document.querySelector(".banner .swiper")&&$(".banner .main-banner-item:first").imagesLoaded(function(){new Swiper(".banner .swiper",{loop:!0,slidesPerView:1,autoHeight:!1,lazyPreloadPrevNext:1,autoplay:{delay:7e3,pauseOnMouseEnter:!0},pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},on:{slideChange:function(){var e,t;t=(e=this).slides[e.activeIndex],$(t).find("iframe").length&&e.autoplay.stop()},init:function(){}}})}),$(".splash-header").length&&$(".splash-header").css("background-color","#"+$(".splash-page-banner").attr("data-bg-color")),$(".splash-header-text").length&&$(".main-banner-elements").length&&($(".main-banner-elements").attr("data-title-color").length&&$(".splash-header-text h1").css("color","#"+$(".main-banner-elements").attr("data-title-color")),$(".main-banner-elements").attr("data-body-color").length&&$(".splash-header-text .group-text").css("color","#"+$(".main-banner-elements").attr("data-body-color")),$(".main-banner-elements").attr("data-links_color").length&&$(".splash-header-text .group-text a").css("color","#"+$(".main-banner-elements").attr("data-links_color"))),$(".splash-header .group-text").length&&"mobile"==getDeviceType()&&$(".splash-page-banner").length&&($(".splash-header .group-text h1").length&&$(".splash-header .group-text h1").prependTo(".splash-header-text"),$(".splash-header .group-text").lc_txt_shortener('<span class="ellipses">...</span>',80,"p, strong, a, h1, h2, h3")),$(".group-text").hasClass("lcnb_shorten")?$(".splash-header-readmore").removeClass("hidden"):$(".splash-header-readmore").addClass("hidden"),$(".splash-header-readmore").on("click",function(){$(".group-text").hasClass("lcnb_shorten")?($(".splash-header .group-text").lc_txt_unshorten(),$(".splash-header-readmore").addClass("hidden"),$(".splash-header").css("min-height",$(".splash-page-banner .main-banner-image").outerHeight()/2+$(".splash-page-banner .main-banner-elements").outerHeight())):($(".splash-header .group-text").lc_txt_shortener('<span class="ellipses">...</span>',80,"p, strong, a"),$(".splash-header-readmore").removeClass("hidden"))}),$(".splash-header-text").length&&($(".splash-header-text").appendTo(".splash-page-banner .main-banner-elements"),$(".splash-page-banner .main-banner-elements").removeClass("hidden-xs")),$(".splash-page-banner").length?$(".splash-page-banner").imagesLoaded().always(function(){$(".splash-header").css("height","auto").css("opacity",1)}):$(".splash-header").css("height","auto").css("opacity",1),$(".splash-header").length&&$(".splash-header").insertBefore($(".main-container")),$(".chooser-banner").imagesLoaded().always(function(){$(".main-banner-elements").css("opacity",1)})}),$(function(){if($("#offers-banner").length){var e=$(window).width(),t=$("#offers-banner"),i=t.find(".main-banner-image"),s=0;if(i.length&&i.outerWidth()>0){for(;s<=e;){i.clone().appendTo(t);s+=i.outerWidth(!0),e=$(window).width()}$("#offers-banner .main-banner-image").css("animation-play-state","running")}}}),$(function(){"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||$(".basket-price-history").each(function(){$(this).prev(".basket-data").children(".basket-data-inner").append($(this))}),$(".basket-spend-more-message").length&&$(".suggested-items__title").length&&$(".suggested-items__title").after("<p>"+$(".basket-spend-more-message").html()+"</p>"),$(".btn-basket-checkout").on("click",function(e){if(document.cookie.match(/\baddExchangeOrder=\d+\b/))try{var t=$("#exchangeinorder").val();window.opener.postMessage(t,"*"),deleteCookie("addExchangeOrder"),self.close()}catch(e){throw new Error("Couldn't reach return func on parent window")}else;}),$(".header-pre-order").length&&$(".header-in-stock").length&&($(".header-in-stock").show(),$(".header-pre-order").show()),displayNoOfItemsBadge(),$(document).on("click",".basket-voucher-header",function(e){$(this).find("img").toggle(),$(this).toggleClass("open").closest(".basket-voucher").find(".basket-voucher-content").slideToggle("fast")}),$(document).on("click",".basket-footer-item-header",function(e){$(this).find("img").toggle(),$(this).toggleClass("open").closest(".basket-footer-item").find(".basket-footer-item-content").slideToggle("fast"),$(window).resize()}),voucherCodeVal=$(".mediacode").val(),$(".mediacode").focus(function(){$(this).val("").css("color","#333")}),$(".mediacode").focusout(function(){""==$(this).val()&&$(this).val(voucherCodeVal).css("color","#999")}),$(document).on("click",".toggleBasketUpdateBox",function(e){var t=$(e.target);t.is("img")&&(t=t.parent()),toggleBasketUpdateBox(t)}),$(".basket-footer-items").length&&$(".delivery-options").is(":empty")&&$(".basket-summary").css("border-top","none"),$(".del-date").on("click",function(){$(this).prev(".btn-del-option").click()}),$(document).on("click",".selected-delivery-option",function(){var e=$(this),t=!1;e.hasClass("active")||(e.addClass("active"),t=!0),$(".delivery-options-select").slideToggle("fast",function(){t||e.removeClass("active")})}),$(".basket-note-order-before").insertBefore("h1.basket-title"),basketFormatUpdate(),$(".basket-note.basket-note-order-before").length>1&&$(".basket-note.basket-note-order-before").not(":first-child").remove(),$(document).on("click",".qty-select",function(){$(this).find(".quantity-dropdown").toggleClass("active")}),$(document).on("click",".quantity-dropdown li",function(){var e=parseInt($("#ba_Quantity").val());forCart("qty",parseInt($(this).text())-e)}),$(".selected-delivery-option .delivery-option").each(function(e,t){$(this).removeAttr("onclick")})}),$(document).on("basketUpdate",function(){basketFormatUpdate()});var displayBasketMessage=function(e){e.addClass("active"),setTimeout(function(){e.removeClass("active")},4e3)};function displayBasketSuccess(){var e=$("#add-to-basket-success");displayBasketMessage(e)}function displayBasketWarning(e){var t=$("#add-to-basket-warning");$("#add-to-basket-warning .text").html(e),displayBasketMessage(t)}function setAddToCartLoading(e){var t=$("#addToCartLink");$(e).length&&(t=$(e));var i=jslocalstrings["Adding to basket..."];t.data({loading:!0,previousText:t.text()}).html(i+'<span class="loader"></span>')}function setAddToCartLoaded(e){var t=$("#addToCartLink");$(e).length&&(t=$(e));var i=t.data("previousText");t.data({loading:!1,previousText:null}).html(i).removeClass("active")}function hideBasketMessages(){var e=$("#add-to-basket-success"),t=$("#add-to-basket-warning");e.removeClass("active"),t.removeClass("active")}function basketUpdate(){var e=arguments;hideBasketMessages(),setAddToCartLoading(e[1]),$.ajax({url:skinJS_SiteURL+"/cgi-bin/basketupdate.cgi",data:{basketData:e[0],isPhoneOrder:$(".isPhoneOrder").val(),isTradeAccount:$(".isTradeAccount").val()},success:function(t){$("#basketSummary").html(t),displayNoOfItemsBadge(),setAddToCartLoaded(e[1]);var i=$(".basketUpdate .warning");i.length?displayBasketWarning(i.html()):displayBasketSuccess()},error:function(){setAddToCartLoaded(e[1]),displayBasketWarning(jslocalstrings["Failed to add the item to the basket"])}})}var ba_ProductID="",ba_oldSize="",ba_oldColour="",ba_oldPersn="",ba_oldPrice="";function updateBasketItem(e,t,i,s,n){var a=$("#ba_Size").val(),r=$("#ba_Quantity").val(),o=LovellPersn.getServiceValuesString(),l=$("#orderLimit").val();e||(e=ba_ProductID),t||(t=ba_oldSize),i||(i=ba_oldColour),s||(s=ba_oldPersn),n||(n=ba_oldPrice),parseInt(l)&&r>l&&(r=l);var c=e+"~"+t+"~"+i+"~"+s+"~"+n+"~"+a+"~"+r+"~"+o+"~"+skinJS_SiteCode;$.ajax({url:skinJS_SiteURL+"/cgi-bin/ajax-updateiteminbasket.cgi",data:{basketData:c},success:function(e){var t=e.split("~~||~~");$(".contentBox").html(t[0]),$("#basketSummary").html(t[1]),"function"==typeof $(".slider select").selectOrDie&&$(".slider select").selectOrDie(),hideSliderPlaceholders(),applySliderButtonCSS(),updateCompactBasket(),basketConfig(),$(document).trigger(new $.Event("basketUpdate"))},error:function(e,t,i){}})}function prepareBasketDisplay(){"function"==typeof $("#mini-basket-panel .media-list").imagesLoaded&&$("#mini-basket-panel .media-list").imagesLoaded().always(function(){var e=0;$("#mini-basket-panel .media-list .basket-item").each(function(t){t<2&&(e+=$(this).outerHeight(!0))}),$("#mini-basket-panel .media-list").css("height",e)})}function updateCompactBasket(e){"use strict";var t=document.getElementById("newBasket"),i=document.getElementById("mini-basket-panel");if(t&&t.innerHTML)if(t.innerHTML===jslocalstrings["Updated currency"]||t.innerHTML===jslocalstrings["Updated delivery address"])setTimeout("window.location.reload()",250);else if(t.innerHTML===jslocalstrings["Updated language"]){var s=document.getElementById("newURL").innerHTML;setTimeout('top.location="'+skinJS_SiteURL+"/"+s+'"',1200)}else i&&(i.innerHTML='<div class="basketInfo">'+t.innerHTML+"</div>"),prepareBasketDisplay(),t.innerHTML="",1==e&&setTimeout("window.location.reload()",250);else e?setTimeout("updateCompactBasket(1)",100):setTimeout("updateCompactBasket()",100),i&&(i.innerHTML=jslocalstrings["Updating..."])}function freeItemClick(e){var t=$(e),i=t.data("product-id"),s=(t.data("product-sizes")+"").split(","),n=t.data("product-name"),a=t.data("offer-id");$("#freeitemproductid"+a).val(i),$("#modal-free-item-product-image").attr({src:skinJS_SiteURL+"/"+t.data("product-image"),alt:n,width:t.data("product-image-width"),height:t.data("product-image-height")}),$("#modal-free-item-product-name").text(n),$("#modal-free-item-product-desc").html(t.data("product-desc")),$("#modal-free-item-variation-name").text(t.data("variation-name")),$("#modal-free-item-rrp").text(t.data("rrp")),$("#modal-free-item-price").text(t.data("price"));var r="";if(t.data("product-sizes"))for(var o=0;o<s.length;o++)r+='<div class="orderButtonDiv"><a class="orderButton size" data-offer-id='+a+"><span>"+s[o]+"</span></a></div>";1==s.length?($("#freeitemsize"+a).val(s),r=r.replace(/orderButton\s/,"orderButtonSelected ")):$("#freeitemsize"+a).val(""),$("#modal-free-item-variant-select .size-grid").html(r),$("#modal-free-item-variant-select .size-grid .size").click(freeItemSizeClick),$("#modal-free-item-variant-select").modal()}function freeItemSizeClick(e){$("#modal-free-item-variant-select .size-grid .size").removeClass("orderButtonSelected").addClass("orderButton"),$(e.currentTarget).addClass("orderButtonSelected");var t=$(e.currentTarget).data("offer-id");$("#freeitemsize"+t).val($(e.currentTarget).text())}function freeItemConfirm(e){if(!$("#freeitemsize"+e).val().length||!$("#freeitemproductid"+e).val().length)return window.event.preventDefault(),!1}function toggleGroupSubOrders(e,t){doAjaxAction({action:"TOGGLE_GROUP_SUB_ORDERS",groupSubOrders:t,visitCode:e},updateBasketItem())}function basketConfig(){$(".basket-stock-warning").each(function(){$(this).closest(".basket-data-inner").find(".basket-item-title").append(this)}),$("#basket-tables .delivery-options").appendTo(".basket-footer-item.basket-carriage"),$("#basket-tables .delivery-options .basket-note").appendTo(".basket-carriage"),$("#basket-tables .delivery-options").prepend('<div class="selected-delivery-option"></div><div class="delivery-options-select"></div>'),$("#basket-tables .delivery-options .delivery-option").appendTo(".delivery-options-select"),$("#basket-tables .delivery-options .delivery-option .colour-selected").parent().appendTo(".selected-delivery-option"),$("#basket-tables .basket-footer-item.basket-giftorder").insertAfter(".basket-footer-item.basket-carriage"),$("#basket-tables .basket-footer-item.basket-voucher").insertAfter(".basket-footer-item.basket-carriage"),$("#basket-tables .basket-footer-item.basket-po-reference").insertAfter(".basket-footer-item.basket-carriage"),$("#basket-tables .basket-footer-item.basket-associate-club").insertAfter(".basket-footer-item.basket-giftorder"),$("#basket-tables .selected-delivery-option .delivery-option").removeAttr("onclick"),$("#basket-tables .basket-footer-item.basket-carriage .label").text(jslocalstrings.Delivery).show(),$("#basket-tables .basket-note").prependTo("#basket-table"),"desktop"!=getDeviceType()&&"wide"!=getDeviceType()||($("#basket-tables .basket-column--2").insertAfter("#basket-table"),$("#basket-tables .basket-title").prependTo("#basket-table"),$("#checkout-side-basket .basket-title").prependTo("#basket-table")),$(".baskettables.multi-order").length&&($("#basket-tables-inner").prepend('<div class="basket-main"></div>'),$("#basket-tables-inner > div").not(".suggested-items").not(".stock-message").not(".mciMessage").appendTo(".basket-main"),$(".basket-column--2").insertAfter(".basket-main"),$(".stock-message").insertBefore(".basket-main"),$(".mciMessage").insertBefore(".basket-main"),$('<div class="basket-footer-item basket-carriage"></div>').insertBefore(".basket-footer-item.basket-total"),$(".baskettables.multi-order .delivery-options").appendTo(".basket-column--2 .basket-carriage"),$(".baskettables .delivery-options").prepend('<div class="selected-delivery-option"></div><div class="delivery-options-select"></div>'),$(".baskettables .delivery-options .delivery-option").appendTo(".delivery-options-select"),$(".baskettables .delivery-options .delivery-option .colour-selected").parent().appendTo(".selected-delivery-option"),$(".baskettables .selected-delivery-option .btn-del-option").removeAttr("onclick"),$(".baskettables .basket-footer-item.basket-giftorder").insertAfter(".basket-footer-item.basket-carriage"),$(".baskettables .basket-footer-item.basket-voucher").insertAfter(".basket-footer-item.basket-carriage"),$("#basket-tables .basket-footer-item.basket-po-reference").insertAfter(".basket-footer-item.basket-carriage"),$("#basket-tables .basket-footer-item.basket-carriage .label").text(jslocalstrings.Delivery).show(),"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||$("#checkout-side-basket .basket-column--2").appendTo(".basket-footer-items-inner")),$(".basket-column .delivery-options-select").text()||$(".basket-column .basket-carriage").addClass("one-option"),$(".offer-chooser").not(".free-item-chooser").prependTo("#basket-table"),$(".offer-chooser__options").append('<select name="offer-chooser__size-select" class="offer-chooser__size-select"><option value="">'+jslocalstrings["Select size"]+"</option></select>"),$(".offer-chooser__options-buttons .btn-free-item-variant").not(".offer-chooser__no-thanks").each(function(){var e=makeValidId($(this).val());$(this).addClass("offer-chooser__size-"+e),$(".offer-chooser__size-select").append('<option value="offer-chooser__size-'+e+'">'+$(this).val()+"</option>")}),$(".offer-chooser__size-select").selectOrDie(),$(".offer-chooser__options").append('<a class="offer-chooser__no-thanks-link">'+jslocalstrings["No thanks"]+"</a>"),$(document).on("change",".offer-chooser__size-select",function(){if($(this).val()){var e=makeValidId($(this).val());$("input."+e).click()}}),$(".offer-chooser__body-options-wrapper").each(function(){var e=$(this),t=e.find(".offer-chooser__price"),i=e.find(".offer-chooser__options"),s=e.find(".offer-chooser__body");t.insertBefore(s),i.insertAfter(s)}),$(document).on("click",".offer-chooser__no-thanks-link",function(){$(".offer-chooser__no-thanks").click()}),"desktop"!==getDeviceType()&&"wide"!==getDeviceType()||($(".baskettables.multi-order").length?$(".basket-title").prependTo(".basket-main").first():$(".basket-title").prependTo(".basketTable")),$(".basket-note-order-before").insertBefore("h1.basket-title"),function(e){var t=[];return e.each(function(){var e,i=$(this).text();t.forEach(function(t){t.message===i&&(e=t)}),e?e.elements.push(this):t.push({message:i,elements:[this]})}),t}($(".baskettables .mciMessage, .baskettables .carriageMessage")).reverse().forEach(function(e){e.elements.forEach(function(e,t){0===t?$(e).prependTo(".baskettables"):$(e).remove()})})}function basketFormatUpdate(){$(".header-pre-order").length&&$(".header-pre-order").each(function(){var e=$(this).closest(".basketTable").data("order");$(".basket-expected[data-order="+e+"]").appendTo(this)}),$(".preorder-available").each(function(){var e=$(this).data("order");$(this).prependTo($(".preorder-available").closest(".basketTable[data-order="+e+"]").find(".basket-data:first"))}),$(".header-in-stock").length&&$(".header-in-stock").each(function(){var e=$(this).closest(".basketTable").data("order");$(".basket-expected[data-order="+e+"]").appendTo(this)}),$(".product-status-wrapper").each(function(){$(this).insertBefore($(this).closest(".basketTable").find(".basket-item:first"))}),$(".stock-message-wrapper .read-more").on("click",function(){$(this).hide().next(".stock-message-small").fadeIn()}),$(".stock-message-wrapper").insertBefore("h1.basket-title"),$(".mciMessage").insertBefore("h1.basket-title")}function validateGuestPassword(e){$("#save-guest-password .field-error").remove(),$("#save-guest-password #save-password").css("border-color","#b3b3b3"),$("#save-guest-password #repeat-password").css("border-color","#b3b3b3");var t=!1;if($("#save-guest-password #save-password").val()||($("#save-guest-password #save-password").css("border-color","red"),$("#save-guest-password #save-password").closest(".field").before('<div class="field-error red" style="text-align: left; margin-left: 40%;">Please enter a password</div>'),t=!0),$("#save-guest-password #repeat-password").val()||($("#save-guest-password #repeat-password").css("border-color","red"),$("#save-guest-password #repeat-password").closest(".field").before('<div class="field-error red" style="text-align: left; margin-left: 40%;">Please repeat your password</div>'),t=!0),$("#save-guest-password #save-password").val()!=$("#save-guest-password #repeat-password").val()&&$("#save-guest-password #repeat-password").val()&&($("#save-guest-password #repeat-password").css("border-color","red"),$("#save-guest-password #repeat-password").closest(".field").before('<div class="field-error red" style="text-align: left; margin-left: 40%;">Passwords do not match</div>'),t=!0),t)return!1}function southAmericaDeliveryWarningToggle(e){"UY"==e?$("#uruguayDeliveryWarning").show():$("#uruguayDeliveryWarning").hide(),e&&e.match(/^(BO|CO|EC|GY|PY|PE|SR|UY|VE)$/)?$("#southAmericaDeliveryWarning").show():$("#southAmericaDeliveryWarning").hide()}function setFavouritedItems(){var e=localStorage.getItem("favourites")||"";$(".item-image").each(function(){var t=$(this).find(".wishlist-button"),i=t.attr("data-productid"),s=new RegExp("\\b"+i+"\\b","i");i&&e.match(s)&&!t.hasClass("active")&&t.addClass("active")})}$(function(){$(".btn-basket-checkout a").on("click",function(e){if($("input[name=partnerclub]").length&&$("input[name=partnerclub]").val().length){e.preventDefault();var t=$(this).attr("href"),i=$("input[name=partnerclub]").val();doAjaxAction({action:"PARTNER_CLUB_EXISTS",clubname:i},function(e){e?(createCookie("partnerclub",i,30),$(".partner-club-error").remove(),window.location.href=t):(createCookie("partnerclub","",30),$("input[name=partnerclub]").css("border-color","red"),$(".field-associate-club").parent().prepend('<div class="partner-club-error">Partner club not found</div>').show(),$(".field-associate-club").closest(".basket-footer-item").find(".basket-footer-item-header").addClass("open"))})}}),$(".alt-address .address-ref h3").on("click",function(){$(this).closest(".alt-address").toggleClass("collapsed")}),$("#UKCountySelector").is(":hidden")&&$("#UKCountySelector").closest(".sod_select").hide(),$("#del_UKCountySelector").is(":hidden")&&$("#del_UKCountySelector").closest(".sod_select").hide(),$("#irishCountySelector").is(":hidden")&&$("#irishCountySelector").closest(".sod_select").hide(),$("#del_irishCountySelector").is(":hidden")&&$("#del_irishCountySelector").closest(".sod_select").hide(),$(".sod_select").each(function(){$(".sod_label",this).text()||$(".sod_label").text($(this).find(".sod_option:first-child").text())}),$("#USAStateSelector").is(":hidden")&&$("#USAStateSelector").closest(".sod_select").hide(),$("#del_USAStateSelector").is(":hidden")&&$("#del_USAStateSelector").closest(".sod_select").hide(),$("#btn-register").on("click",function(){$(".registration-form").slideToggle("fast")}),$("#register-email").on("input",function(){emailIsValid($("#register-email").val())?$("#btn-continue-register").css("background-color","#009a20"):$("#btn-continue-register").css("background-color","#585858")}),$(".add_hideAddressInputsLink").on("click",function(){$(".add_AddressInputs").slideDown("fast"),$("#addPostcodeSearchForm").hide(),$(this).hide(),$(".use-billing-as-delivery").show()}),$(".del_add_hideAddressInputsLink").on("click",function(){$(".del_add_AddressInputs").slideDown("fast"),$("#del_addPostcodeSearchForm").hide(),$(this).hide()}),setTimeout(function(){setFieldValid($("#addCountry")),setFieldValid($("#del_addCountry"))},1e3),$("#club-search").focus(function(){$("body").addClass("icr-club-search-active")}),$("#club-search").on("input",function(e){$(this).closest(".basket-footer-item-content").find(".partner-club-error").remove(),$(this).css("border-color","#b3b3b3")}),$("#club-search").blur(function(){$("body").removeClass("icr-club-search-active")}),$(".field-associate-club").on("click",".taglink a",function(e){e.preventDefault(),$("#club-search").val($(this).text().trim()),$("#club-search").closest(".basket-footer-item-content").find(".partner-club-error").remove(),$("#club-search").css("border-color","#b3b3b3"),closeLiveSearch()}),southAmericaDeliveryWarningToggle($("#addCountry").val()),$(".login-tab").on("click",function(){$(".login-tab").removeClass("active"),$(this).addClass("active"),$(".panel").removeClass("active"),$("."+$(this).data("panel")).addClass("active")}),$(".field-control input").change()}),$(function(){setFavouritedItems()});var skinJS_SiteCode="LR",skinJS_SiteBase="LR",skinJS_SiteURL="www.lovell-rugby.co.uk",skinJS_SecureServer="https://www.lovell-rugby.co.uk",skinJS_RunningOn="WEB",skinJS_Language="EN",jslocalstrings=[],gaData;function setJSLang(e){for(var t in void 0===e&&(e="EN"),e=e.match(/^(EN|FR|ES)$/i)?e.toUpperCase():"EN",jslocalisedstrings.localstrings)jslocalstrings[t]=jslocalisedstrings.localstrings[t][e];"FR"==e&&"www.lovell-rugby.co.uk"==skinJS_SiteURL&&(skinJS_SiteURL="www.lovellrugby.fr")}function skinJSVariables(e){if(!skinJS_SiteURL){var t="https:"==window.location.protocol?"https:":"http:";skinJS_SiteURL=t+"//"+window.location.hostname}setJSLang(skinJS_Language),skinJS_SiteCode=e,skinJS_SiteBase=e,"LR"==e?skinJS_SiteURL||(skinJS_SiteURL="http://www.lovell-rugby.co.uk"):"LS"==e?skinJS_SiteURL||(skinJS_SiteURL="http://www.lovellsoccer.co.uk"):"SON"==e?skinJS_SiteURL||(skinJS_SiteURL="http://www.sondico.com"):"GUL"==e?skinJS_SiteURL||(skinJS_SiteURL="https://www.gul.com"):"LSP"==e&&(skinJS_SiteURL||(skinJS_SiteURL="https://www.lovellsports.com/")),skinJS_SecureServer=skinJS_SiteURL.replace("http:","https:")}function getDeviceWidth(){return containerWidth=parseInt($(window).width()),containerWidth}function getDeviceType(){var e="";return window.matchMedia?e=window.matchMedia("(max-width: 599px)").matches?"mobile":window.matchMedia("(max-width: 1079px)").matches?"tablet":window.matchMedia("(max-width: 1399px)").matches?"desktop":"wide":(containerWidth=getDeviceWidth(),containerWidth>1399&&(e="wide"),containerWidth<=1399&&(e="desktop"),containerWidth<=1079&&(e="tablet"),containerWidth<=599&&(e="mobile")),e}analyticsInit(),$(function(){var e;$("body").addClass(skinJS_Language),$(window).on("resize",function(){clearTimeout(e),e=setTimeout(function(){"mobile"!=getDeviceType()&&$("body").css("overflow-y","auto"),swapResponsiveImages("img[data-srcxs], img[data-srcsm], img[data-srcmd], img[data-srclg]"),swapResponsiveVideo("video[data-srcxs], video[data-srcsm], video[data-srcmd], video[data-srclg]"),swapResponsiveIframe("div.vimeo-wrapper[data-srcxs][data-srcsm][data-srcmd][data-srclg]")},250)}).resize(),"function"==typeof $("select").selectOrDie&&$("select:not(.newselect-searchable, .newselect)").selectOrDie();var t=skinJS_SiteURL+"/responsive-images/checkbox-on.svg",i=skinJS_SiteURL+"/responsive-images/checkbox-off.svg";$(".checkbox-wrapper").length&&$(".sleeve-patch .checkbox-wrapper").remove(),$(".checkbox-input:checked").after('<div class="checkbox-wrapper"><img class="checkbox-image" src="'+t+'" border="0" height="39" width="39"></div>'),$(".checkbox-input:not(:checked)").after('<div class="checkbox-wrapper"><img class="checkbox-image" src="'+i+'" border="0" height="39" width="39"></div>'),$(".checkbox-input").hide(0),$(".checkbox-image").on("click",function(){switchCheckboxImage(this)}),setUpScrollBars(),$(".addCountry").each(function(){checkoutCountryChange($(this).attr("id").replace("addCountry",""))}),$(".addCountry").change(function(){var e=$(this).attr("id").replace("addCountry","");checkoutCountryChange(e),clearCountyValue(e)}),$(".UKCountySelector").change(function(){var e=$(this).attr("id").replace("UKCountySelector","");0!=$(this).val()?$("#"+e+"addCounty").val($(this).val()):$("#"+e+"addCounty").val(""),$("#countyDiv .field-error").hide(),removeFieldError($("#"+e+"addCounty"))}),$(".irishCountySelector").change(function(){var e=$(this).attr("id").replace("irishCountySelector","");0!=$(this).val()?$("#"+e+"addCounty").val($(this).val()):$("#"+e+"addCounty").val(""),$("#countyDiv .field-error").hide(),removeFieldError($("#"+e+"addCounty"))}),$(".USAStateSelector").change(function(){var e=$(this).attr("id").replace("USAStateSelector","");0!=$(this).val()?$("#"+e+"addCounty").val($(this).val()):$("#"+e+"addCounty").val(""),$("#countyDiv .field-error").hide(),removeFieldError($("#"+e+"addCounty"))}),"mobile"==getDeviceType()&&($(".form-error-field").length?$(window).scrollTop($(".form-error-field").position().top-10):$(".page-scroll-target").length&&$(window).scrollTop($(".page-scroll-target").position().top-10)),$("input[type=text],input[type=tel],input[type=email]").on("change",function(e){validateCharactersInField($(this),!0)&&removeFieldError($(this))}),$("input[type=checkbox]").change(function(){$(this).is(":checked")&&removeCheckboxError($(this))}),$("body").on("click",function(e){handleClickScroll(e)}),$('.field-control input:not(input[name="order_is_gift_message"]):not(input[name="partnerclub"]), .field-control textarea, #countyDiv, #add_searchPostcode, .del_add_AddressInputs input').on("change keyup input propertychange",function(){checkFieldValid($(this))}),$(".lovell-form select").on("change propertychange",function(){checkFieldValid($(this))}),$("input[type='text'][maxlength]").on("keyup",function(){var e=this.getAttribute("maxlength");this.value.length>e&&(this.value=this.value.substring(0,e))}),$(".cookie-notice__accept").on("click",function(){$(this).closest(".cookie-notice").addClass("accepted")}),$(".btn-load-on-click").on("click",function(e){startLoading(e.currentTarget)}),$(".newselect-searchable, .newselect").each(function(e,t){$(t).select2({closeOnSelect:!1,multiple:!0,width:"style",allowClear:!0,scrollAfterSelect:!0})});var s=$(".newselect").parent().find(".select2-search__field");s.prop("disabled",!0),s.hide(),$(".newselect, .newselect-searchable").on("change",function(e){if($(this).hasClass("newselect")){var t=$(this).parent().find(".select2-search__field");t.prop("disabled",!0),t.hide()}$(this).val()?$(this).addClass("optionselected"):$(this).removeClass("optionselected")}),$(".newselect-searchable").on("select2:select",function(e){$(this).parent().find(".select2-search__field").val("")}),$("a").each(function(){var e=$(this).attr("href");void 0!==e&&0!=e&&-1!==e.indexOf("tel:")&&(e=e.substring(e.indexOf("tel:")),$(this).attr("href",e))})}),document.addEventListener("touchstart",function(){},!1);var cmdIsPressed=!1;function swapResponsiveImages(e){$(e).each(function(){var e=$(this).attr("src"),t=getDeviceType();"mobile"==t?void 0!==$(this).attr("data-srcxs")&&(e=$(this).attr("data-srcxs")):"tablet"==t?void 0!==$(this).attr("data-srcsm")&&(e=$(this).attr("data-srcsm")):"desktop"==t?void 0!==$(this).attr("data-srcmd")&&(e=$(this).attr("data-srcmd")):"wide"==t&&void 0!==$(this).attr("data-srclg")&&(e=$(this).attr("data-srclg")),$(this).attr("src",e).data("src",e).removeClass("hide")})}function swapResponsiveVideo(e){var t;$(e).each(function(){if("mobile"==getDeviceType()){if(void 0!==$(this).attr("data-srcxs")){if($(this).find("source").attr("src")==$(this).attr("data-srcxs"))return;t=$(this).attr("data-srcxs")}}else if("tablet"==getDeviceType()){if(void 0!==$(this).attr("data-srcsm")){if($(this).find("source").attr("src")==$(this).attr("data-srcsm"))return;t=$(this).attr("data-srcsm")}}else if("desktop"==getDeviceType()){if(void 0!==$(this).attr("data-srcmd")){if($(this).find("source").attr("src")==$(this).attr("data-srcmd"))return;t=$(this).attr("data-srcmd")}}else if("wide"==getDeviceType()&&void 0!==$(this).attr("data-srclg")){if($(this).find("source").attr("src")==$(this).attr("data-srclg"))return;t=$(this).attr("data-srclg")}$(this).find("source").attr("src",t),$(this)[0].load(),$(this).trigger("play"),$(this).removeClass("hide")})}function swapResponsiveIframe(e){var t;$(e).each(function(){"mobile"==getDeviceType()?void 0!==$(this).attr("data-srcxs")&&(t=$(this).attr("data-srcxs")):"tablet"==getDeviceType()?void 0!==$(this).attr("data-srcsm")&&(t=$(this).attr("data-srcsm")):"desktop"==getDeviceType()?void 0!==$(this).attr("data-srcmd")&&(t=$(this).attr("data-srcmd")):"wide"==getDeviceType()&&void 0!==$(this).attr("data-srclg")&&(t=$(this).attr("data-srclg")),$(this).attr("src",t)})}$(document).keydown(function(e){"91"!=e.which&&"93"!=e.which||(cmdIsPressed=!0)}),$(document).keyup(function(){cmdIsPressed=!1});var sizesData={},sizesList={},PAFSearchTimeout;function formatDisplaySize(e,t){return e&&(e=(e=(e=(e=e.toString()).replace(/\.5/g,"&frac12;")).replace(/\.3/g,"&frac13;")).replace(/\.7/g,"&frac23;"),t&&(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace(/^XSB$/i,jslocalstrings["Extra Small Boys"])).replace(/^SB$/i,jslocalstrings["Small Boys"])).replace(/^MB$/i,jslocalstrings["Medium Boys"])).replace(/^LB$/i,jslocalstrings["Large Boys"])).replace(/^XLB$/i,jslocalstrings["Extra Large Boys"])).replace(/^XS$/i,jslocalstrings["Extra Small"])).replace(/^S$/i,jslocalstrings.Small)).replace(/^M$/i,jslocalstrings.Medium)).replace(/^L$/i,jslocalstrings.Large)).replace(/^XL$/i,jslocalstrings["Extra Large"])).replace(/^XXL$/i,jslocalstrings["2X Large"])).replace(/^(\d)XL$/i,"$1"+jslocalstrings["X Large"]))),e}function makeValidId(e){return e=(e=(e=e.toString().replace(/[^a-z0-9_\-]/gi,"-")).replace(/^([0-9]|$)/i,"a$1")).toLowerCase()}function screenSize(){var e=0,t=0;"number"==typeof window.innerWidth?(e=window.innerWidth,t=window.innerHeight):document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)?(e=document.documentElement.clientWidth,t=document.documentElement.clientHeight):document.body&&(document.body.clientWidth||document.body.clientHeight)&&(e=document.body.clientWidth,t=document.body.clientHeight);var i=0,s=0;return"number"==typeof window.pageYOffset?(s=window.pageYOffset,i=window.pageXOffset):document.body&&(document.body.scrollLeft||document.body.scrollTop)?(s=document.body.scrollTop,i=document.body.scrollLeft):document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)&&(s=document.documentElement.scrollTop,i=document.documentElement.scrollLeft),e+","+t+","+i+","+s}function searchPAFAddresses(e,t,i,s){fieldEmpty(i+"_searchPostcode",jslocalstrings["Please enter your postcode"])||(clearTimeout(PAFSearchTimeout),PAFSearchTimeout=setTimeout(doSearchPAFAddresses({postCode:e,houseNameOrNumber:t,targetPrefix:i,language:skinJS_Language,multiSelect:s}),300))}function loadPAFAddressResults(e){var t=e.substring(0,e.indexOf("~~"));e=e.substring(e.indexOf("~~")+2,e.length),$("#searchResults_"+t).html(e),$("#searchResults_"+t+" select").selectOrDie()}function doSearchPAFAddresses(e){$.ajax({type:"POST",url:skinJS_SiteURL+"/cgi-bin/ajax-postcodelookup.cgi",data:e,error:function(e,t,i){},success:function(e){loadPAFAddressResults(e)}})}function choosePAFAddress(e,t){var i=t.value;$("."+e+"_AddressInputs").show(),$("."+e+"_hideAddressInputsLink").css("visibility","hidden");var s=i.split("~");if(s[0])$("#"+e+"Building").val(s[0]),$("#"+e+"Street").val(s[1]);else{var n=parseInt(s[1]);if(n){$("#"+e+"Building").val(n);var a=s[1].replace(/[0-9]/g,"");$("#"+e+"Street").val(a)}else $("#"+e+"Building").val(s[1]),$("#"+e+"Street").val("")}var r=s[3].toUpperCase();r.match(/ /)||(r=r.replace(/(.{3})$/," $1")),$("#"+e+"Town").val(s[2]),$("#"+e+"Postcode").val(r),$("#"+e+"County").val(""),$("#"+e+"Country").val("GB"),$(".update-button").removeClass("disabled"),"del_add_new_"!=e&&"del_add__"!=e||($(".full-address-link").hide(),$(".find-address").hide(),$(".optional-house").hide(),$(".update-button").removeClass("disabled"),$(".postcode-search-link").show(),$(".full-address").show())}function analyticsInit(){gaData={impressions:{},allowedImpressions:""},$(document).ready(function(){$("body").on("click",".ga-banner-click",function(e){if("undefined"==typeof gtag)return;if(e.button>1)return;let t=$(e.currentTarget),i=t.data("ga-event-category"),s=t.data("ga-event-label");gtag("event","click_banner",{bannerType:i,bannerName:s})}),$("body").on("click",".ga-menu-click",function(e){if("undefined"==typeof gtag)return;if(e.button>1)return;let t=$(e.currentTarget),i=t.attr("href"),s=t.data("ga-event-section");gtag("event","click_menu_link",{link:i,menuSection:s})})})}function analyticsNewsSubscribe(e,t){"undefined"!=typeof gtag&&gtag("event","update_newsletter_subscription",{newsletter_source:t,action:e})}function analyticsProductClick(e,t,i){if("undefined"!=typeof gtag&&e.item_id&&!(window.event.button>1)){if(t){var s=new Date((new Date).getTime()+12e4);document.cookie="gaListTypeClick="+t+"; expires="+s.toString()+"; path=/; secure; samesite=lax"}gtag("event","select_item",{item_list_id:i,item_list_name:t,items:[e]})}}function analyticsAddRemoveFromCart(e,t){if("undefined"!=typeof gtag&&e.id&&e.quantity&&t){var i=t.match(/add/i)?"add_to_cart":"remove_from_cart",s=e.productName;s=s.substring(0,99),gtag("event",i,{currency:skinJS_Currency,value:e.price,items:[{item_id:e.id,item_variant:e.variant,quantity:e.quantity,item_name:s}]})}}function analyticsAddAllowedImpressions(e){gaData.allowedImpressions.match(new RegExp("\\b"+e+"\\b"))||(gaData.allowedImpressions+=e+",")}function analyticsSendImpressions(){if("undefined"!=typeof gtag){var e=gaData.allowedImpressions.split(",");for(var t in e)null!=gaData.impressions[e[t]]&&gtag("event","view_item_list",gaData.impressions[e[t]])}}function toggleShowAddressInputs(e,t,i){("none"==$(t).css("display")||i)&&($(t).show(),$(e).css("visibility","hidden"))}function setUpScrollBars(){$(".scroll-bar").remove();var e,t,i,s,n,a,r,o=skinJS_SiteURL+"/responsive-images/CTA-down-arrow.svg";$(".scrollable").each(function(l,c){e=c.id,a=$("#"+e).find("div").outerHeight(),r=$("#"+e).children().length,c.className.split(" ").forEach(function(e){"scroll-"==e.slice(0,7)&&(i=e.split("-")[1],s=e,n=i-50)}),t='<div id="scroll-bar-'+e+'" class="scroll-bar '+s+'">',t+='<img id="scroll-up-'+e+'" class="scroll-up" src="'+o+'" />',t+='<img id="scroll-down-'+e+'" src="'+o+'" />',t+="</div>",a*r>i&&$(".scrollable."+s).before(t),$("#"+e).css({"overflow-y":"hidden"}),$(".scroll-bar").css({width:"20px",float:"right"}),$(".scroll-bar img").css({width:"20px",cursor:"pointer"}),$("#scroll-up-"+e).css({"margin-top":"10px","margin-bottom":n+"px",opacity:"0.2","-ms-transform":"rotate(180deg)","-webkit-transform":"rotate(180deg)",transform:"rotate(180deg)"})})}function handleClickScroll(e){var t,i,s,n=e.target.id.slice(0,9);"scroll-up"!=n&&"scroll-do"!=n||("scroll-up"==n?(t=e.target.id.slice(10),i="up"):"scroll-do"==n&&(t=e.target.id.slice(12),i="down"),document.getElementById("scroll-bar-"+t).className.split(" ").forEach(function(e){"scroll-"==e.slice(0,7)&&(s=e.split("-")[1])}),verticalScroll(t,i,s))}function verticalScroll(e,t,i){var s,n=$("#"+e).find("div").outerHeight();"up"==t&&((s=$("#"+e).scrollTop())%n==0&&($("#scroll-down-"+e).css({opacity:1}),$("#"+e).animate({scrollTop:s-i},400).promise().done(function(){0==(s=$("#"+e).scrollTop())&&$("#scroll-up-"+e).css({opacity:.2})})));"down"==t&&((s=$("#"+e).scrollTop())%n==0&&($("#"+e).animate({scrollTop:s+parseInt(i)},400).promise().done(function(){var t=$("#"+e).children();(s=$("#"+e).scrollTop())==n*(t.length-i/n)&&$("#scroll-down-"+e).css({opacity:.2})}),$("#scroll-up-"+e).css({opacity:1})))}var posleft=0,postop=0;function findPos(e){var t=curtop=0;if(e){var i=e.getBoundingClientRect();t=i.left,curtop=i.top}posleft=Math.floor(t),postop=Math.floor(curtop)}var curlight="";function hideVideo(e){e&&(curlight=e),document.getElementById("light"+curlight).style.display="none",document.getElementById("fade").style.display="none"}function moveVideo(e){e&&(curlight=e);var t=screenSize(),i=new Array;i=t.split(",");var s=Math.floor(i[0]),n=Math.floor(i[1]),a=Math.floor(i[2]),r=Math.floor(i[3]);vidX=Math.floor(s/2-213.5+a),vidY=Math.floor(n/2-130+r),curlight&&vidX&&vidY&&(document.getElementById("light"+curlight).style.left=vidX+"px",document.getElementById("light"+curlight).style.top=vidY+"px"),document.getElementById("fade").style.top=r+"px"}function fieldEmpty(e,t){var i;if($("input[name="+e+"]").length?i=$("input[name="+e+"]"):$("textarea[name="+e+"]").length?i=$("textarea[name="+e+"]"):$("#"+e).length&&(i=$("#"+e)),i)return i.val().length&&0!=i.val()?(t&&removeFieldError(i),!1):(t?setFieldError(i,t):removeFieldError(i),!0)}function checkboxIsChecked(e){return!!$("input[name="+e+"]").is(":checked")}function checkDateValid(e){return/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/.test(e)?1:0}function checkFieldValid(e){var t=!1;if("email"==e.attr("type"))emailIsValid(e.val())&&(t=!0);else if("tel"==e.attr("type"))phoneIsValid(e.val())&&(t=!0);else if("addPostcode"==e.attr("id")){var i=e.val().replace(/ +/g,"");"GB"==$("#addCountry").val()&&ukPostcodeRegExp.test(i)?t=!0:"FR"==$("#addCountry").val()&&frPostcodeRegExp.test(i)?t=!0:"ES"==$("#addCountry").val()&&esPostcodeRegExp.test(i)&&(t=!0)}else if("del_addPostcode"==e.attr("id")){i=e.val().replace(/ +/g,"");"GB"==$("#del_addCountry").val()&&ukPostcodeRegExp.test(i)?t=!0:"FR"==$("#del_addCountry").val()&&frPostcodeRegExp.test(i)?t=!0:"ES"==$("#del_addCountry").val()&&esPostcodeRegExp.test(i)&&(t=!0)}else if("add_searchPostcode"==e.attr("id")){i=e.val().replace(/ +/g,"");ukPostcodeRegExp.test(i)&&(t=!0)}else"SELECT"==e.prop("nodeName")?e.hasClass("newselect-searchable")||e.hasClass("newselect")?0!=e.val()&&"Please select"!=e.val()&&"None"!=e.val()&&(t=!0):0!=e.val()&&"Please select"!=e.val().trim()&&"None"!=e.val().trim()&&(t=!0):"newsletter-dob"==e.attr("id")?checkDateValid($("input#newsletter-dob").val())&&(t=!0):e.val().trim().length>0&&(t=!0);return t?(setFieldValid(e),removeFieldError(e)):removeFieldValid(e),t}function setFieldValid(e){"SELECT"==e.prop("nodeName")?e.closest(".sod_select").addClass("is-valid"):e.closest(".field-control").addClass("is-valid")}function removeFieldValid(e){"SELECT"==e.prop("nodeName")?e.closest(".sod_select").removeClass("is-valid"):e.closest(".field-control").removeClass("is-valid")}function setFieldError(e,t){var i=e;removeFieldError(e),"addCounty"!=e.attr("id")&&"del_addCounty"!=e.attr("id")||e.is(":visible")||(t="",e=e.closest(".field-county").find(".sod_select:visible select")),e.parent().hasClass("sod_select")&&(i=(e=e.parent()).find(".sod_label")),e&&(e.siblings(".field-error").length||e.before('<span class="field-error">'+t+"</span>"),i&&i.closest(".field").addClass("has-error").focus())}function setCheckboxError(e,t){removeCheckboxError(e),t.length&&e.closest("label").append('<span class="field-error">'+t+"</span>"),e.closest("label").addClass("error")}function removeFieldError(e){"addCounty"!=e.attr("id")&&"del_addCounty"!=e.attr("id")||e.is(":visible")||(e=e.closest(".field-county").find(".sod_select:visible select"));var t=e;e.parent().hasClass("sod_select")&&(t=(e=e.parent()).find(".sod_label")),e&&(e.siblings(".field-error").remove(),t.closest(".field").removeClass("has-error"))}function removeCheckboxError(e){e.closest("label").length&&(e.closest("label").removeClass("error"),e.closest("label").find(".field-error").remove())}var ukPostcodeRegExp=/^(BFPO\d+|[a-z]{1,2}\d{1,2}[a-z]?\d[a-z]{2})$/i,frPostcodeRegExp=/^\d{5}$/,esPostcodeRegExp=/^\d{5}$/;function createCookie(e,t,i){if(i){var s=new Date;s.setTime(s.getTime()+24*i*60*60*1e3);var n="; expires="+s.toGMTString()}else n="";document.cookie=e+"="+t+n+"; path=/; secure; samesite=lax"}function deleteCookie(e){createCookie(e,"","-1")}function getCookie(e){for(var t=document.cookie.split(";"),i=0;i<t.length;i++){var s,n;if(s=t[i].substr(0,t[i].indexOf("=")),n=t[i].substr(t[i].indexOf("=")+1),s=s.replace(/^\s+|\s+$/g,""),n=n.replace(/^\s+|\s+$/g,""),s==e)return n}}function emailIsValid(e){return/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e)}function phoneIsValid(e){return!!(/^[0-9\+\-\(\)\s]+$/.test(e)&&e.length>6)}function validCharacters(e){return $("input[type=text],input[type=tel],input[type=email]").each(function(){e=validateCharactersInField($(this),e)}),e}function validateCharactersInField(e,t){var i=e.val();return i&&!/^[\x00-\xFF]+$/i.test(i)&&(setFieldError(e,jslocalstrings["Non-ASCII characters detected"]),t=!1),t}function isScrolledIntoView(e){var t=$(e),i=$(window),s=i.scrollTop(),n=s+i.height(),a=t.offset().top+100;return a+t.height()+100<=n&&a>=s}function getVal(e){if(e.constructor==Function)return e();if("string"!=typeof e)return e;var t=document.getElementById(e);if(!t){for(var i=0;i<document.forms.length&&!(t=document.forms[i].elements[e]);i++);t&&!t.type&&(t=t[0])}if(!t)return alert("ERROR: Cannot find HTML element with id or name: "+e+". Check that an element with name or id="+e+" exists"),0;if("select-one"==t.type){if(-1==t.selectedIndex)return;var s=t[t.selectedIndex];return s.value||s.text}if("select-multiple"==t.type){var n=[],a=0;for(i=0;i<t.length;i++)(t[i].selected||t[i].checked)&&(n[a++]=t[i].value||t[i].text);return n}if("radio"==t.type||"checkbox"==t.type){n=[];var r=document.getElementsByTagName("input"),o=r.length;for(i=0,a=0;a<o;a++)r[a].type!=t.type||!r[a].checked||r[a].id!=e&&r[a].name!=e||(n[i++]=r[a].value);return n}return null==t.value?t.innerHTML:t.value}function doAjaxAction(e,t,i){$.ajax({type:"POST",url:skinJS_SiteURL+"/cgi-bin/ajax-doajaxaction.cgi",data:e,error:function(e,t,s){i&&i(e,t,s)},success:function(e){t&&t(e)}})}function replaceNbsps(e){var t=new RegExp(String.fromCharCode(160),"g");return e.replace(t," ")}function stripAccentedCharacters(e){var t=e;return t.length>0&&(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace(new RegExp("[àáâãäå]","g"),"a")).replace(new RegExp("[ÁÀ]","g"),"A")).replace(new RegExp("æ","g"),"ae")).replace(new RegExp("ç","g"),"c")).replace(new RegExp("[èéêë]","g"),"e")).replace(new RegExp("[ÉÈ]","g"),"E")).replace(new RegExp("[ìíîï]","g"),"i")).replace(new RegExp("ñ","g"),"n")).replace(new RegExp("[òóôõö]","g"),"o")).replace(new RegExp("[ùúûü]","g"),"u")).replace(new RegExp("[ýÿ]","g"),"y")),t}function startLoading(e){$(e).each(function(){var e=$(this);e.data({previousText:e.html()}).addClass("btn-loading").html('loading...<span class="loader"></span>')})}function stopLoading(e,t){$(e).each(function(){var e=$(this);e.removeClass("btn-loading").html(t||e.data("previousText")).data({previousText:""}),e.hasClass("btn-disable-on-click")&&e.prop("disabled",!1)})}function stopAllLoading(){stopLoading($(".btn-loading"))}function warrantyRegistration(){var e=!0,t=document.getElementById("name").value;fieldEmpty("name","Please enter your name")&&(e=!1);var i=document.getElementById("email").value;fieldEmpty("email","Please enter your email address")?e=!1:emailIsValid(i)||(setFieldError($("#email"),"Not a valid email address"),e=!1);var s=document.getElementById("purchasedFrom").value;fieldEmpty("purchasedFrom","Please tell us where you purchased the product")&&(e=!1);var n=document.getElementById("description").value;fieldEmpty("description","Please enter the product name, size and colour")&&(e=!1);var a=document.getElementById("sku").value,r=document.getElementById("price").value,o=document.getElementById("purchasedDate").value;e&&doAjaxAction({action:"WARRANTY_FORM",name:t,email:i,sku:a,purchasedDate:o,purchasedFrom:s,price:r,description:n},function(e){$("#warrantyFormFeedback").html(e)})}function loadWishlist(){doAjaxAction({action:"LOAD_WISHLIST",localFavourites:localStorage.getItem("favourites")},function(e){$("#wishlist-block").html(e)})}function updateWishlist(e,t,i,s,n,a){e.preventDefault(),(!i||i<1)&&(i=1);var r,o=localStorage.getItem("favourites")||"";a?(o=(o=(o=o.replace(new RegExp(t+"[^,]+","g"),"")).replace(new RegExp(",+","g"),",")).replace(new RegExp("^,|,$","g"),""),r="REMOVE",localStorage.setItem("favourites",o),n.removeClass("active")):t.match(/^[0-9]+$/)&&i.match(/^[0-9]+$/)&&(o=(o+=","+t+"~"+i).replace(new RegExp("^,|,$","g"),""),localStorage.setItem("favourites",o),r="ADD",n.addClass("active")),s&&doAjaxAction({action:"UPDATE_WISHLIST",wishlistUpdates:t+"~"+i,addOrRemove:r},function(e){e&&!e.match(/^\d+/i)||localStorage.setItem("favourites",e)})}function syncWishlistWithLocalStorage(){doAjaxAction({action:"UPDATE_WISHLIST",wishlistUpdates:localStorage.getItem("favourites"),addOrRemove:"ADD"},function(e){e&&!e.match(/^\d+/i)||localStorage.setItem("favourites",e)})}function updateCustomerPreferences(e){e.preventDefault(),$("#preferences-form-error").hide();var t=$(e.target),i={action:"UPDATE_PREFERENCES"},s=!1;if($("input#newsletter-dob").length&&(dob=$("input#newsletter-dob").val(),dob.length?(removeFieldError($("input#newsletter-dob")),s=!0,checkDateValid(dob)||(setFieldError($("input#newsletter-dob"),"Please enter a valid date of birth (DD/MM/YYYY)"),s=!1)):(setFieldError($("input#newsletter-dob"),"Please enter a valid date of birth (DD/MM/YYYY)"),s=!1)),$("input#newsletter-email").length){var n=$("input#newsletter-email").val();n.length?(removeFieldError($("input#newsletter-email")),s=!0,emailIsValid(n)||(setFieldError($("input#newsletter-email"),jslocalstrings["Please enter a valid email address"]),s=!1)):(setFieldError($("input#newsletter-email"),"Please enter a valid email address"),s=!1)}$("input#newsletter-firstname").length&&($("input#newsletter-firstname").val().length?(removeFieldError($("input#newsletter-firstname")),s=!0):(setFieldError($("input#newsletter-firstname"),"Please enter your first name."),s=!1));$("input#newsletter-surname").length&&($("input#newsletter-surname").val().length?(removeFieldError($("input#newsletter-surname")),s=!0):(setFieldError($("input#newsletter-surname"),"Please enter your surname."),s=!1));t.find("input").each(function(){i[$(this).attr("name")]=$(this).val()}),t.find("select").each(function(){i[$(this).attr("name")]=$(this).val()}),s&&doAjaxAction(i,function(e){"success"==e?($("#preferences-form").hide(),$("#preferences-form-error").hide(),$("#preferences-form-success").show()):($("#preferences-form-error").html(e),$("#preferences-form-error").show())})}function initLazyLoad(){var e;if("IntersectionObserver"in window){e=document.querySelectorAll(".lazy");var t=new IntersectionObserver(function(e,i){e.forEach(function(e){if(e.isIntersecting){var i=e.target;i.dataset.src&&(i.src=i.dataset.src),i.dataset.srcset&&(i.srcset=i.dataset.srcset),i.classList.remove("lazy");var s=i.parentNode.querySelector(".loader, .loader-dark");isElement(s)&&(s.style.display="none"),t.unobserve(i)}})});e.forEach(function(e){t.observe(e)})}else{var i;function s(){i&&clearTimeout(i),i=setTimeout(function(){var t=window.pageYOffset;e.forEach(function(e){e.offsetTop<window.innerHeight+t&&(e.dataset.src&&(e.src=e.dataset.src),e.dataset.srcset&&(e.srcset=e.dataset.srcset),e.classList.remove("lazy"))}),0==e.length&&(document.removeEventListener("scroll",s),window.removeEventListener("resize",s),window.removeEventListener("orientationChange",s))},20)}e=document.querySelectorAll(".lazy"),document.addEventListener("scroll",s),window.addEventListener("resize",s),window.addEventListener("orientationChange",s)}}function isElement(e){try{return e instanceof HTMLElement}catch(t){return"object"==typeof e&&1===e.nodeType&&"object"==typeof e.style&&"object"==typeof e.ownerDocument}}function clamp(e,t,i){return t=t||Number.MIN_SAFE_INTEGER,e>(i=i||Number.MAX_SAFE_INTEGER)?i:e<t?t:e}document.addEventListener("DOMContentLoaded",initLazyLoad),$(function(){$(".truncate").each(function(e,t){Math.round($(t).height())<Math.round(t.scrollHeight)&&($('<div class="readmore truncate-link">Read More</div>').insertAfter(t),$(t).css("border-bottom","none"))}),$(document).on("click",".readmore",function(){$(this).prev(".truncate").css("display","block"),$(this).removeClass("readmore").addClass("readless").text("Read Less")}),$(document).on("click",".readless",function(){$(this).prev(".truncate").css("display","-webkit-box"),$(this).removeClass("readless").addClass("readmore").text("Read More")})});var maxScrollProgress=0;function showAnimatedSpinner(e,t){var i="loader";t&&(i=" loader-dark");var s='<div class="'+i+'">Loading...</div>';$(e).css("position","relative").prepend(s)}function disableImageZoom(){$("#img-zoomed").remove(),$(".ZoomContainer").remove(),$(".main-images-wrapper img").removeData("ez-plus"),$(".magnifier").removeClass("active")}function textIsAllowed(e){for(var t=!0,i=0,s=e.length;i<s;i++)(67==e.charCodeAt(i)&&85==e.charCodeAt(i+1)&&78==e.charCodeAt(i+2)&&84==e.charCodeAt(i+3)&&"SCUNTHORPE"!==e||70==e.charCodeAt(i)&&85==e.charCodeAt(i+1)&&67==e.charCodeAt(i+2)&&75==e.charCodeAt(i+3)||78==e.charCodeAt(i)&&73==e.charCodeAt(i+1)&&71==e.charCodeAt(i+2)&&71==e.charCodeAt(i+3)&&69==e.charCodeAt(i+4)&&82==e.charCodeAt(i+5)||78==e.charCodeAt(i)&&73==e.charCodeAt(i+1)&&71==e.charCodeAt(i+2)&&71==e.charCodeAt(i+3)&&65==e.charCodeAt(i+4))&&(t=!1);return t||alert("Sorry, that text is not allowed.  Please try something else."),t}function switchCheckboxImage(e){var t=$(e),i=t.parent().prev(".checkbox-input");if(!i.prop("disabled")){var s=!i.prop("checked"),n=s?"on":"off",a=t.attr("src").replace(/-(on|off)\.svg/,`-${n}.svg`),r="?q="+Math.random();t.attr("src",a+r),i.prop("checked",s)}}function loadCookieConsent(){var e=initCookieConsent(),t={LR:"Lovell Rugby Cookie Policy",LS:"Lovell Soccer Cookie Policy",LSP:"Lovell Sports Cookie Policy",SON:"Sondico Cookie Policy",GUL:"Gul Watersports Cookie Policy"},i={autorun:!0,current_lang:"en",autoclear_cookies:!0,page_scripts:!0,onAccept:function(e){var t="denied",i="denied";if("undefined"!==e.categories)for(var s in e.categories)"analytics"==e.categories[s]?t="granted":"advertising"==e.categories[s]&&(i="granted");"undefined"!=typeof gtag&&gtag("consent","update",{ad_storage:i,ad_user_data:i,ad_personalization:i,analytics_storage:t})},languages:{en:{consent_modal:{title:"Our cookies",description:'Hi, this website uses essential cookies to ensure its proper operation and tracking cookies to understand how you interact with it. The latter will be set only upon approval. <a aria-label="'+t[skinJS_SiteCode]+'" class="cc-link" href="/cookies#how-we-use">'+t[skinJS_SiteCode]+"</a>",primary_btn:{text:"Accept",role:"accept_all"},secondary_btn:{text:"Settings",role:"settings"}},settings_modal:{title:"Cookie preferences",save_settings_btn:"Save settings",accept_all_btn:"Accept all",reject_all_btn:"Reject all",cookie_table_headers:[{col1:"Name"},{col2:"Domain"},{col3:"Expiration"},{col4:"Description"}],blocks:[{title:"Cookie usage",description:"We use cookies, which are small text files, to improve your experience on our website and to show you personalised content. You can allow all or manage them individually."},{title:"Strictly necessary cookies",description:"These cookies are essential for the proper functioning of this website. Without these cookies, the website would not work properly.",toggle:{value:"necessary",enabled:!0,readonly:!0},cookie_table:[{col1:"ID",col2:skinJS_SiteURL,col3:"1 Day",col4:"Used to uniquely identify a visitor to keep track of information for the session such as basket contents."},{col1:"CID",col2:skinJS_SiteURL,col3:"1 Year",col4:"Used to uniquely identify a customer."},{col1:"NEWSLETTERPOPUP",col2:skinJS_SiteURL,col3:"30 days",col4:"Sets a flag noting that the site newsletter offer popup has been displayed"},{col1:"CONSENT",col2:"google.com",col3:"2 Years",col4:"Used to store a user’s state regarding their cookies choices."},{col1:"cc_cookie",col2:skinJS_SiteURL,col3:"6 Months",col4:"Used to store a user’s cookie choices."},{col1:"rmStoreGateway",col2:skinJS_SiteURL,col3:"30 Days",col4:"Used to store information about affilates."},{col1:"referrer",col2:skinJS_SiteURL,col3:"30 Days",col4:"Used to store information about the referrer to the user's website visit."},{col1:"__stripe_mid",col2:skinJS_SiteURL,col3:"1 Year",col4:"Used to store identifier regarding Stripe payment after an order."},{col1:"__stripe_sid",col2:skinJS_SiteURL,col3:"Session",col4:"Used to store session identifier regarding Stripe payment after an order."}]},{title:"Analytics cookies",description:"These cookies collect information about how you use the website, which pages you visited and which links you clicked on. All of the data is anonymized and cannot be used to identify you.",toggle:{value:"analytics",enabled:!1,readonly:!1},cookie_table:[{col1:"_ga",col2:"google.com",col3:"2 years",col4:"Records a particular ID used to come up with data about website usage by the user"},{col1:"_gid",col2:"google.com",col3:"Session",col4:"Keeps an entry of unique ID which is then used to come up with statistical data on website usage by visitors. It is a HTTP cookie type and expires after a browsing session."},{col1:"gaListTypeClick",col2:"google.com",col3:"Session",col4:"Records that the user has clicked on a tracked product listing."},{col1:"OTZ",col2:"google.com",col3:"30 Days",col4:"Used by Google Analytics that provides an aggregate analysis of Website visitors. The “S” cookie may collect certain information used to help improve services, including the pages users visit most often and whether users get error messages from certain pages."},{col1:"SOCS",col2:"google.com",col3:"13 Months",col4:"Used to store a user's state regarding their cookies choices."}]},{title:"Functional cookies",description:"While not strictly necessary for the operation of the services, functional cookies are used to help improve the user experience, optimize services, and collect diagnostic information. If you disable these cookies, we will not be able to learn how you utilize our services, and our ability to improve the content and operation of our services will be impaired.",toggle:{value:"functional",enabled:!1,readonly:!1},cookie_table:[{col1:"__Secure-ENID",col2:"google.com",col3:"13 Months",col4:"This cookie is used to remember your preferences and other information, such as your preferred language, how many results you prefer to display on a search results page (for example, 10 or 20) and whether you want Google's SafeSearch filter to be activated."},{col1:"AEC",col2:"google.com",col3:"6 Months",col4:"AEC cookies ensure that requests within a browsing session are made by the user, and not by other sites. These cookies prevent malicious sites from acting on behalf of a user without that user's knowledge."},{col1:"BVBRANDSID",col2:"bazaarvoice.com",col3:"Session",col4:"Allows internal Bazaarvoice web analytics to be correlated to the same user browsing session for interactions within a particular client domain."},{col1:"BVImplmain_site",col2:"bazaarvoice.com",col3:"2 Hours",col4:"Used for client-driven A/B tests."},{col1:"joe-chnlcustid",col2:"cdn.freshbots.ai",col3:"1 Year",col4:"Used to enable you to interact with the chatbot hosted by Freshdesk, remembering you by storing a unique ID."},{col1:"spd-custhash",col2:"cdn.freshbots.ai",col3:"1 Year",col4:"Used to enable you to interact with the chatbot by Freshdesk, remembering you by storing a unique ID."}]},{title:"Advertising cookies",description:"Advertising cookies are specifically designed to gather information from you on your device to display advertisements to you based on relevant topics that interest you. Advertisers will place these cookies on a website with the website operator's permission. The information the cookies gather on you can be shared with other advertisers to measure the performance of their advertisements. Additionally, another purpose of targeting and advertising cookies is to build user profiles from visitors to the website to gather statistics on the performance of the advertisements that can carry across many websites.",toggle:{value:"advertising",enabled:!1,readonly:!1},cookie_table:[{col1:"_ttp",col2:"tiktok.com",col3:"13 Months",col4:"To measure and improve the performance of your advertising campaigns and to personalize the user's experience (including ads) on TikTok"},{col1:"_fbp",col2:"facebook.com",col3:"Session",col4:"Facebook tracking pixel used to identify visitors for personalized advertising."},{col1:"scarab.visitor",col2:"emarsys.com",col3:"1 Year",col4:"This cookie stores the visitor id which will identify the visitor through sessions."},{col1:"_tt_enable_cookie",col2:"tiktok.com",col3:"13 Months",col4:"This cookie is used as a means of tracking your website activity to help us optimise our advertising."},{col1:"tta_attr_id",col2:"tiktok.com",col3:"364 Days",col4:"Used by TikTok to deliver a series of advertisement products such as real time bidding from 3rd party advertisers."},{col1:"tta_attr_id_mirror",col2:"tiktok.com",col3:"1 year",col4:"To measure and improve the performance of advertising campaigns and to personalize the user’s experience (including ads) on TikTok."},{col1:"s",col2:"facebook.com",col3:"Session",col4:"Facebook browser identification, authentication, marketing, and other Facebook-specific function cookies."},{col1:"DV",col2:"google.com",col3:"1 day",col4:"To provide ad delivery or retargeting."}]}]}}},gui_options:{consent_modal:{layout:"cloud",position:"bottom center",transition:"slide",swap_buttons:!1},settings_modal:{layout:"box",position:"left",transition:"slide"}}};e.run(i)}document.addEventListener("DOMContentLoaded",function(){var e=document.querySelector(".navbar-header");window.addEventListener("scroll",function(){e.length&&(e.getBoundingClientRect().top<=0?document.body.classList.add("navbar-fixed"):document.body.classList.remove("navbar-fixed"));if("undefined"!=typeof gtag){var t=$(window).scrollTop()/($(document).height()-$(window).height())*100;if(t>maxScrollProgress){var i=0;t>25&&maxScrollProgress<25?i=25:t>50&&maxScrollProgress<50?i=50:t>75&&maxScrollProgress<75&&(i=75),maxScrollProgress=t,i&&gtag("event","scroll",{percent_scrolled:i})}}})});var skinJS_SiteCode="LR",skinJS_Language="en",jslocalstrings=[],screenWidth=$(window).width();$(function(){$("#search-form input").on("click",function(e){e.stopPropagation()}),$(".header-search").on("click",function(){"mobile"==getDeviceType()||"tablet"==getDeviceType()?($("#navbar").hasClass("active")&&($("#menu-close").toggleClass("hidden"),$("#menu-open").toggleClass("hidden"),$("#navbar").removeClass("active"),$("nav.navbar").removeClass("open"),"tablet"==getDeviceType()&&$("nav.navbar").siblings("div").css("opacity","1")),$("#search-bar").toggleClass("active"),$("body").toggleClass("search-active"),$("body").hasClass("search-active")?($("#drop-down-search").focus(),$("#search").focus()):($("#drop-down-search").blur(),$("#search").blur())):$(this).closest(".header-services").toggleClass("search-active").find("#search").focus()})});var searchIsOn=0,currentSearchPhrase;function doLiveSearch(e){var t=e.target.id;13===e.keyCode?searchRedirect(t):38==e.keyCode||40==e.keyCode?liveSearchScroll(e.target,"livesearch",e):(searchIsOn&&clearTimeout(searchIsOn),searchIsOn=setTimeout("liveSearchLookup('"+t+"')",250),"desktop"!=getDeviceType()&&"wide"!=getDeviceType()&&"club-search"!=$(e.target).attr("id")||$("#livesearchresults").insertAfter($(e.target).parent()))}function liveSearchLookup(e){var t;if(document.getElementById(e)&&(t=document.getElementById(e).value),t.length<=2)closeSearchBox(t.length<1);else if(t!=currentSearchPhrase&&t!=currentSearchPhrase+" "&&t+" "!=currentSearchPhrase){var i=getVal(e);livesearch(i=encodeURI(i),["livesearchresults"])}currentSearchPhrase=t}function closeSearchBox(e){var t=document.getElementById("livesearchresults");t&&(t.innerHTML=e?"":'<div id="livesearchtable"><div class="empty-text">'+jslocalstrings["Please enter some search text"]+".</div></div>")}function livesearch(){var e=arguments;doAjaxAction({action:"dolivesearch",search:e[0],sitecode:skinJS_SiteCode},function(t){$("#"+e[1][0]).html(t)}),$("#setUpScrollBars").remove();var t=setInterval(function(){$("#setUpScrollBars").length&&($("#live-search-list").css({"padding-right":"10px"}),setUpScrollBars(),clearInterval(t))},200)}var currentlyFocused=0;function liveSearchScroll(e,t,i){var s,n,a;"livesearch"==t?(s="search",n="livesearchtable",a="livesearch"):"deliveryaddress"==t&&(s="deliveryInputHeader",n="autoCompleteResultsHeader",a="autoCompleteLinks");var r,o=0;if("keydown"==i.type&&(o=i.keyCode),38==o||40==o||"deliveryaddress"==t&&e.id==s&&13==o)i.preventDefault?i.preventDefault():i.returnValue=!1;else if("keydown"==i.type||"keyup"==i.type)return;var l=document.getElementById(n),c=[];if($(l).find("a").length)for(var d=l.getElementsByTagName("a"),u=0;u<d.length;u++)d[u].className==a&&c.push(d[u]);e.id==s&&40==o?(r=c[0],currentlyFocused=0):e.id==s&&38==o?(r=c[c.length-1],currentlyFocused=c.length-1):e.id==s&&c[0]&&13==o?window.location=c[0].href:40==o&&null==c[currentlyFocused+1]||38==o&&currentlyFocused-1<0?(r=document.getElementById(s),currentlyFocused=0):"mouseover"==i.type?(currentlyFocused=Array.prototype.indexOf.call(c,e),r=e):40==o?r=c[++currentlyFocused]:38==o&&(r=c[--currentlyFocused]),r&&(r.focus(),"livesearch"==t?($("#"+n).find("div.media-body").css("background-color","#ffffff"),r.id!=s&&$(r).parent().css("background-color","#f2fbfe")):($("#"+n).find("a").css("background-color","transparent"),r.id!=s&&$(r).css("background-color","#f2fbfe")))}function closeLiveSearch(){var e=document.getElementById("livesearchresults");e&&(e.innerHTML="")}function searchPos(){var e,t;document.getElementById?e=document.getElementById("search"):document.all?e=document.all.search:document.layers&&(e=document.layers.search),document.getElementById?t=document.getElementById("livesearchresults"):document.all?t=document.all.livesearchresults:document.layers&&(t=document.layers.livesearchresults),findPos(e);var i=0,s=24;"LS"==skinJS_SiteCode&&(i=81,s=30),t&&(t.style.left=posleft-i+"px",t.style.top=postop+s+"px")}function searchRedirect(e){if(!$("#search").hasClass("club-search")){var t=document.getElementById(e).value,i=t.replace(/^\s*/,"").replace(/\s*$/,"");i=(i=i.replace(/\s{2,}/," ")).replace(/[-]/g," ");var s=js_unicoderegex(/[^\p{Lu}0-9 :\/\.,]/g).source;s="["+(s=s.replace(/[\[\]]/g,""))+"]";var n=new RegExp(s,"gi");i=(i=(i=(i=(i=i.replace(n,"")).replace(/[\s]/g,"-")).replace(/-{2,}/g,"-")).replace(/-{2,}/g,"-")).replace(/\//g,"%252F"),t.length>1&&i.match(/\w/)&&(window.location=skinJS_SiteURL+"/search/"+i)}}function changeCurrency(e){var t=location.hash.replace(/^#/,"");if(t)for(var i=t.split(","),s=/pricerange=[0-9\.]+~[0-9\.]+/,n=0;n<i.length;n++){if(s.test(i[n]))i.splice(n,1);location.hash="#"+i.join(",")}doUpdateCurrency(e,"basketSummary"),updateCompactBasket()}function doUpdateCurrency(){var e=doUpdateCurrency.arguments;doAjaxAction({action:"currencyUpdate",currencyData:e[0]},function(t){$("#"+e[1]).html(t)})}function printResponsiveMegaMenus(){try{for(var e=1;e<=megaMenuItems.length-1;e++)printResponsiveMegaMenu(e)}catch(e){console.error("No menus!")}}function printResponsiveMegaMenu(e){var t="";"mobile"==getDeviceType()||"tablet"==getDeviceType()?t+='<ul id="menu'+e+'" class="dropdown-menu" role="menu">':t+='<div id="menu'+e+'" class="dropdown-menu">';for(var i="",s=0,n=0,a=0,r=0;r<megaMenuItems[e].length;r++){var o=new Array,l=megaMenuItems[e][r+1],c="";if(l)c=l.split("~")[2];if((o=newStyleMegaMenuLineResponsive(megaMenuItems[e][r],s,n,a,c))[4]){i+=o[0],s=o[1];var d=o[2];a=o[3],d&&n++}}t+=i,"mobile"==getDeviceType()||"tablet"==getDeviceType()?t+="</ul>":(t+="    </div>",t+="</div>"),$("#tab"+e).html(t)}function newStyleMegaMenuLineResponsive(e,t,i,s,n){var a,r="",o=" submenu"+i,l=0,c=(a=e.split("~"))[0],d=a[1],u=a[2],h=a[3],p=a[4],f=a[5];"undefined"==f&&(f="");var m=1;if("mobile"!=p&&"desktop"!=p||(m=0,("mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||"mobile"!=p)&&("desktop"!=getDeviceType()&&"wide"!=getDeviceType()||"desktop"!=p)||(m=1)),m)if("BLANKLINE"==c)"desktop"!=getDeviceType()&&"wide"!=getDeviceType()||(r+='<span class="newline">&nbsp;<br /></span>');else if("NEWCOLUMN"==c||"NEWCOLUMN"==d)"desktop"!=getDeviceType()&&"wide"!=getDeviceType()||(t&&(r+="</div>"),r+='<div class="megaMenuContentBlock menu-column">',t=1),s=0;else if("B"==c&&d)s||(t&&(r+="</div>"),r+='<div class="megaMenuContentBlock menu-column menu-banner-column">'),r+='<div class="ffBanner">'+d+"</div>",s=1,t=1;else if("P"==c&&d)s||(t&&(r+="</div>"),r+='<div class="megaMenuContentBlock menu-column menu-page-column">'),r=(r+='<div class="ffPage">'+d+"</div>").replace('href="','href="'+skinJS_SiteURL+"/"),s=1,t=1;else if("sH"==c&&d)h=h?'<a data-content="'+d+'" href="'+skinJS_SiteURL+"/"+h+'" class="ga-menu-click" data-ga-event-section="'+f+'">'+d+"</a>":d,"mobile"==getDeviceType()||"tablet"==getDeviceType()?(h.match(/^<a /)||(h="<span>"+h+"</span>"),1==n&&1!=u?(l=1,r+='<li class="dropdown-header'+o+'" data-menuid="submenu'+ ++i+'"><span class="back-button" style="display:none"><ion-icon class="arrow-left" name="chevron-back-outline"></ion-icon></span><span>'+d+'</span><ion-icon class="arrow-right" name="chevron-forward-outline"></ion-icon></span></li>'):r+=1!=n&&1!=u?'<li class="shopAll">'+h+"</li>":'<li class="ffSubHeading'+o+'">'+h+"</li>"):r+='<strong class="ffSubHeading">'+d+"</strong>",s=0;else if("H"==c&&d)o="",d!=jslocalstrings.Sale&&d!=jslocalstrings["Special Offers"]&&d!=jslocalstrings.Outlet&&d!=jslocalstrings.Christmas||(o=" saleHeading"),h=h?'<a data-content="'+d+'" href="'+skinJS_SiteURL+"/"+h+'" class="ga-menu-click" data-ga-event-section="'+f+'">'+d+"</a>":d,"mobile"==getDeviceType()||"tablet"==getDeviceType()?(h.match(/^<a /)||(h="<span>"+h+"</span>"),1==n&&1!=u?(l=1,r+='<li class="dropdown-header'+o+'" data-menuid="submenu'+ ++i+'"><span class="back-button" style="display:none"><ion-icon class="arrow-left" name="chevron-back-outline"></ion-icon></span><span>'+d+'</span><ion-icon class="arrow-right" name="chevron-forward-outline"></ion-icon></span></li>'):r+=1!=n&&1!=u?'<li class="shopAll">'+h+"</li>":'<li class="ffHeading'+(o+=" submenu"+i)+'">'+h+"</li>"):r+='<div class="megamenu-section-heading"><strong class="ffHeading '+o+'">'+h+"</strong></div>",s=0;else{var g=skinJS_SiteURL+"/";"eL"==c&&(g=""),"mobile"==getDeviceType()||"tablet"==getDeviceType()?1==n&&1!=u?(l=1,r+='<li class="dropdown-header" data-menuid="submenu'+ ++i+'"><span class="back-button" style="display:none"><ion-icon class="arrow-left" name="chevron-back-outline"></ion-icon></span><span>'+d+'</span><ion-icon class="arrow-right" name="chevron-forward-outline"></ion-icon></span></li>'):r+=1!=n&&1!=u?'<li class="shopAll"><a data-content="'+d+'" href="'+g+h+'" class="mmLink ga-menu-click" data-ga-event-section="'+f+'">'+d+"</a></li>":'<li class="'+o+'"><a data-content="'+d+'" href="'+g+h+'" class="mmLink ga-menu-click" data-ga-event-section="'+f+'">'+d+"</a></li>":r+='<a data-content="'+d+'" href="'+g+h+'" class="mmLink'+o+' ga-menu-click" data-ga-event-section="'+f+'">'+d+"</a>",s=0}return[r,t,l,s,m]}function showNewsletterSelectionModal(e,t){var i=validateNewsletterEmail(e);i&&doAjaxAction({action:"GET_MERGED_SITE_NEWSLETTERS"},function(e){var s=getNewsletterSelectionModalHTML(e);$("#newsletterModal").remove(),$("body").append(s),$("#newsletterModal").modal("show"),$("#confirm-newsletters").on("click",function(e){confirmNewsletterSelection(i,t)})})}function getNewsletterSelectionModalHTML(e){return'<div class="modal fade" id="newsletterModal" tabindex="-1" role="dialog" aria-labelledby="Newsletter Signup" aria-hidden="true">\n        <div class="modal-dialog" role="document">\n            <div class="modal-content">\n                <div class="modal-header">\n                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">\n                        <span aria-hidden="true">&times;</span>\n                    </button>\n                </div>\n                <div class="modal-body">\n                \n                  \n                  <div class="content-wrapper">\n                    <div class="image">\n                      <img src ="https://cdn.lovellsports.com/images/newsletters/LSP/our-newsletters.jpg" alt="Our Newsletters" class="img" />\n                    </div>\n                    <div class="content">\n                      <h4 class="modal-title">Our Newsletters</h4>\n                      <p>Please select the newsletters that you would like to subscribe to</p>'+e+'\n                      <div class="newsletter-agree field my-30-xs">\n                        <label class="lovell-checkbox">\n                          <input type="checkbox" id="newsletter-agree-terms" value="1">\n                          <span class="agree-message">You will be signed up to our newsletters. Please tick to confirm that you understand.</span>\n                        </label>\n                      </div>\n                      <div id="newsSignupFeedback"></div>\n                      <div class="button-wrapper button-wrapper--centred">\n                        <button id="confirm-newsletters" type="button" class="button mb-10-xs mb-0-sm">Confirm Choices</button>\n                        <button type="button" class="button ml-10-sm button--secondary" data-dismiss="modal">Cancel</button>\n                      </div>\n                    </div>\n                  </div>\n\n                </div>\n            </div>\n        </div>\n    </div>\n  '}function confirmNewsletterSelection(e,t){var i=document.querySelectorAll('.newsletter-signup__select input[type="checkbox"]');if(!$("#newsletter-agree-terms").prop("checked"))return $("#newsSignupFeedback").html('<p class="alert alert--info">Please tick the box to confirm you understand that you will be signed up to our newsletter.</p>'),!1;i.forEach(function(i){if(i.checked){var s={NewsID:i.name,email:e,SiteCode:skinJS_SiteCode,subscribedFrom:"email",CSRFToken:t,agree:$("#newsletter-agree-terms").prop("checked")};$("select.customerpreference").each(function(){s[$(this).attr("name")]=$(this).val()}),doNewsletterSignup(s)}})}function doNewsletterSignup(data){$.ajax({type:"POST",url:skinJS_SiteURL+"/cgi-bin/ajax-newslettersignup.cgi",data:data,error:function(e,t,i){},success:function(newData){var jsonData=JSON.parse(newData);jsonData.message&&("Popup"==data.subscribedFrom?newData.indexOf("modal-header")>=0?$("#modal-news-signup .modal-content").html(jsonData.message):$("#modal-newsletter-response").html(jsonData.message):$("#newsSignupFeedback").html(jsonData.message)),jsonData.analyticsJS&&eval(jsonData.analyticsJS)}})}function validateNewsletterEmail(e){var t;t="Popup"==e?"modal-email":"email";var i=document.getElementById(t).value;if($("#signup-form .error-message").remove(),!i||!emailIsValid(i)){return $("#signup-form .form").after('<div class="error-message" style="color: red; margin-top: 10px;">Please enter a valid email address</div>'),!1}return i}function newsletterSignup(e,t,i){var s=!0,n="",a="",r=validateNewsletterEmail(t);$('#modal-news-signup input[name="name"]').length&&(n=$('#modal-news-signup input[name="name"]').val()),$('input[name="newsletter-agree-terms"]').length&&(checkboxIsChecked("newsletter-agree-terms")||(setCheckboxError($('input[name="newsletter-agree-terms"]'),""),s=!1)),$("input#newsletter-dob").length&&(a=$("input#newsletter-dob").val(),removeFieldError($("input#newsletter-dob")),a.length&&(checkDateValid(a)||(setFieldError($("input#newsletter-dob"),""),s=!1)));var o="";if($("input[name=gender]:checked").val()&&"null"!=$("input[name=gender]:checked").val()&&(o=$("input[name=gender]:checked").val()),s&&r){var l={NewsID:e,email:r,name:n,dob:a,gender:o,SiteCode:skinJS_SiteCode,subscribedFrom:t,CSRFToken:i,agree:$("#newsletter-agree-terms").prop("checked")};return $("select.customerpreference").each(function(){l[$(this).attr("name")]=$(this).val()}),doNewsletterSignup(l),!0}}function teacherSignup(NewsID){var formOk=!0,email=$("#teacher-signup-email").val(),name=$("#name").val(),schoolName=$("#school-name").val(),CSRFToken=$("#teacher-csrf-token").val(),subscribeToNewsletter="";$("#subscribeToNewsletter").is(":checked")&&(subscribeToNewsletter=$("#subscribeToNewsletter").val()),schoolName||(setFieldError($("#school-name"),"Please enter the name of your school"),formOk=!1),email&&emailIsValid(email)||(setFieldError($("#teacher-signup-email"),"Please enter an email address"),formOk=!1),formOk&&doAjaxAction({action:"TEACHER_SIGNUP",email:email,teacherName:name,schoolName:schoolName,NewsID:NewsID,subscribeToNewsletter:subscribeToNewsletter,CSRFToken:CSRFToken},function(newData){var jsonData=JSON.parse(newData);jsonData.message&&$("#teacherSignupFeedback").html(jsonData.message),jsonData.analyticsJS&&eval(jsonData.analyticsJS),$(".teacherForm").hide(600)})}function resizeSliders(e){if(e&&e.is(":visible")){var t=0,i=0,s=0,n=0,a=!1;$(".owl-item",e).each(function(e,r){$(".slider__item-cost.now",r).length&&(a=!0),(i=$(".slider__item-title",r).outerHeight())>t&&(t=i),(n=$(".slider__item-image img",r).outerHeight())>s&&(s=n)}),$(".slider__item-title",e).css("min-height",t),$(".slider__item-image",e).css("min-height",s),a&&$(".slider__item-cost",e).not(".now").not(".rrp").css("margin-bottom","34px"),e.hasClass("slider--suggesteditemsslider")&&($(document).outerWidth()>=960&&$(e).find(".owl-item").length<=4||$(document).outerWidth()>=1400&&$(e).find(".owl-item").length<=5?$(e).addClass("no-padding"):$(e).removeClass("no-padding"))}}function applySliderButtonCSS(){$("[data-slider-button-bg]").each(function(e){$(this).find(".slider__item-button--view-product").css("background-color",$(this).attr("data-slider-button-bg"))})}function hideSliderPlaceholders(){$(".slider-panel").each(function(){$(this).text().indexOf("FEATURESLIDER")>=0?$(this).addClass("hidden"):$(this).removeClass("hidden")})}function dateTextFormat(e){var t=$(e.target);t.val(t.val().replace(/^(\d\d)(\d)$/g,"$1/$2").replace(/^(\d\d\/\d\d)(\d+)$/g,"$1/$2").replace(/[^\d\/]/g,""))}function resizeProductSizeSelectButtons(){var e=0;$(".orderButtonDiv").each(function(){$("a",this).text().length>e&&(e=$("a",this).text().length)}),e>5&&$(".orderButtonDiv").addClass("col-2")}function updateOrderInfo(e,t){$(".orderButtonSelected").length==$(".size-block").length&&$("#addToCartLink").addClass("active").removeClass("pre-order").html(jslocalstrings["Add to basket"]);var i,s=e.match(/PREORDER/);s?(e=e.replace("PREORDER",""),document.getElementById("dueDate")&&(document.getElementById("dueDate").innerHTML=document.getElementById("dueDate").innerHTML=e),$("#preorderwarningpanel").removeClass("hidden"),$("#addToCartLink").addClass("pre-order").removeClass("active").html(jslocalstrings["Pre-order now"]),$("#preorderwarningpanel").removeClass("available-soon")):($("#preorderwarningpanel").removeClass("available-soon"),$("#preorderwarningpanel").addClass("hidden")),t?$("#floatStockWarning").removeClass("hidden"):$("#floatStockWarning").addClass("hidden"),$("#free-uk-express-message").length&&(i=1,$("#free-uk-express-message").closest(".product-messages").appendTo(".size-block"),s||t?$("#free-uk-express-message").addClass("hidden"):$("#free-uk-express-message").removeClass("hidden")),s||t||i?$("#ready-for-dispatch-message").addClass("hidden"):$("#ready-for-dispatch-message").removeClass("hidden"),$(".noSizeSelectedWarning").hide()}function personaliseProduct(e){if("block"!=$(".noSizeSelectedWarning").css("display")&&!isAddToCartLoading())if($("input[type=hidden][name=isSDPersn]").val()){var t=LovellPersn.getFormSubmitErrorMessage();if(t)$(".persn-message__invalid-persn").css("display","block").find(".persn-message__message-content").text(t);else{var i=LovellPersn.getServiceValuesString();i?textIsAllowed(i)&&LovellPersn.showPersonalisationTermsModal():addProductToBasket(e)}}else addProductToBasket(e)}function addProductToBasket(e){"BASKET_PAGE"==e?updateBasketItem():updateBasket("","","")}function noPersnButton(){$("#pText1").val(""),$("#pText2").val(""),$("#prsnl-confirm-panel").modal("hide")}$(function(){if($("#modal-competition").length&&setTimeout(function(){$("#modal-competition").modal();var e=$("#modal-competition").data("competitionid");e&&createCookie("COMPETITIONPOPUP-"+e,"1",30)},5e3),$("#modal-generic").length){var e=5e3;setTimeout(function(){$("#modal-generic").modal(),createCookie("GENERICMODAL",1,"+30d")},e)}else if($("#modal-news-signup").length){e=5e3;setTimeout(function(){$("#modal-news-signup").modal(),createCookie("NEWSLETTERPOPUP",1,"+30d")},e)}$("#modal-email").keydown(function(e){$(this).val().length&&13==e.which&&$("#modal-signup-submit").click()})}),$(document).ready(function(){$(window).on("resize",function(){screenWidth!=$(window).width()&&(screenWidth=$(window).width(),t())}),t();var e={over:function(e){"desktop"!=getDeviceType()&&"wide"!=getDeviceType()||(disableImageZoom(),$(this).addClass("active"))},timeout:300,out:function(){"desktop"!=getDeviceType()&&"wide"!=getDeviceType()||($(this).removeClass("active"),$("body").css("overflow","auto"))}};function t(){printResponsiveMegaMenus(),function(){$("ul.nav li").removeClass("current"),$("a.mainNav").removeClass("active"),$("div.mainNav").removeClass("active"),$(".mainNav").show(),$("nav.navbar").siblings("div").css("opacity","1"),"mobile"==getDeviceType()||"tablet"==getDeviceType()?($("ul.nav li:not('.dropdown-header')").css("display","block"),$("#menu-close").addClass("hidden"),$("#menu-open").removeClass("hidden"),$(".mainNav").find(".arrow-right").show(),$(".mainNav").find(".back-button").hide(),$(".dropdown-menu").find("li:not(.dropdown-header)").hide(),$("#navbar").removeClass("active"),$("nav.navbar").removeClass("open")):$("#navbar").show();$("li.shopAll").show()}()}$("#navbar ul.nav > li").hoverIntent(e),$("#menu-close").on("click",function(){$(this).toggleClass("hidden"),$("#menu-open").toggleClass("hidden"),$("#navbar").removeClass("active"),$("nav.navbar").removeClass("open"),"tablet"==getDeviceType()&&$("nav.navbar").siblings("div").css("opacity","1"),"tablet"!=getDeviceType()&&"mobile"!=getDeviceType()||($("body").css("overflow-y","auto"),$("html").css("overflow-y","auto"))}),$("nav.navbar").siblings("div").on("click",function(e){"tablet"==getDeviceType()&&$("#navbar").hasClass("active")&&(e.preventDefault(),$("#menu-close").toggleClass("hidden"),$("#menu-open").toggleClass("hidden"),$("#navbar").removeClass("active"),$(this).css("opacity","1"),$(this).siblings("div").css("opacity","1"),$("body").css("overflow-y","auto"))}),$(".add-another a").on("click",function(){$("#ba_Quantity").val(1)}),$(document).on("click","a.mainNav, div.mainNav",function(e){var t=0;$(this).parent().find("div .dropdown-menu").children().length&&(t=1),"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||1!=t||(e.preventDefault(),$(this).parent().siblings().toggle(),$(this).find(".back-button").toggle(),$(this).find(".arrow-right").toggle(),$(this).parent().toggleClass("current"),$(this).parent().find("div .dropdown-menu").is(":visible")?$(this).find(".mainNavText").css("text-align","center"):$(this).find(".mainNavText").css("text-align","left"),$(this).parent().find("div .dropdown-menu").toggle()),$(this).toggleClass("active")}),$("ul.nav li").on("click","div ul.dropdown-menu li.dropdown-header",function(e){if("mobile"==getDeviceType()||"tablet"==getDeviceType()){e.preventDefault();var t=$(this).data("menuid");$(this).siblings("."+t+":visible").length>0?($(this).siblings("."+t).hide(),$(this).siblings("li.dropdown-header").show(),$(this).siblings("li.shopAll").show(),$(this).find(".back-button").hide(),$(this).find(".arrow-right").show(),$(this).removeClass("current"),$(this).parent().parent().parent().find("> a").show()):($(this).siblings("."+t).show(),$(this).siblings("li.dropdown-header").hide(),$(this).siblings("li.shopAll").hide(),$(this).find(".back-button").show(),$(this).find(".arrow-right").hide(),$(this).addClass("current"),$(this).parent().parent().parent().find("> a").hide())}}),$("#footer-menu").addClass("is-loaded"),$("#footer-menu ul.top-menu > li > div.menu-header").on("click",function(e){"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||(e.preventDefault(),$(this).closest("li").find(".footer-sub-menu").slideToggle("fast"),$(this).toggleClass("expanded"),$(this).find(".plus").toggle(0),$(this).find(".minus").toggle(0))}),$("#megaMenuTabs ul.nav li a br").replaceWith(" "),$(".dropdown-menu").each(function(){""==$.trim($(this).html())&&$(this).remove()})}),function(e){"use strict";var t=function(t,i){this.options=i,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function i(i,s){return this.each(function(){var n=e(this),a=n.data("bs.modal"),r=e.extend({},t.DEFAULTS,n.data(),"object"==typeof i&&i);a||n.data("bs.modal",a=new t(this,r)),"string"==typeof i?a[i](s):r.show&&a.show(s)})}t.VERSION="3.3.4",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(i){var s=this,n=e.Event("show.bs.modal",{relatedTarget:i});this.$element.trigger(n),this.isShown||n.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){s.$element.one("mouseup.dismiss.bs.modal",function(t){e(t.target).is(s.$element)&&(s.ignoreBackdropClick=!0)})}),this.backdrop(function(){var n=e.support.transition&&s.$element.hasClass("fade");s.$element.parent().length||s.$element.appendTo(s.$body),s.$element.show().scrollTop(0),s.adjustDialog(),n&&s.$element[0].offsetWidth,s.$element.addClass("in").attr("aria-hidden",!1),s.enforceFocus();var a=e.Event("shown.bs.modal",{relatedTarget:i});n?s.$dialog.one("bsTransitionEnd",function(){s.$element.trigger("focus").trigger(a)}).emulateTransitionEnd(t.TRANSITION_DURATION):s.$element.trigger("focus").trigger(a)}))},t.prototype.hide=function(i){i&&i.preventDefault(),i=e.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(e){this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(i){var s=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var a=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),a&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;a?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var r=function(){s.removeBackdrop(),i&&i()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):r()}else i&&i()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",e+this.scrollbarWidth)},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var s=e.fn.modal;e.fn.modal=i,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=s,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var s=e(this),n=s.attr("href"),a=e(s.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(n)&&n},a.data(),s.data());s.is("a")&&t.preventDefault(),a.one("show.bs.modal",function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",function(){s.is(":visible")&&s.trigger("focus")})}),i.call(a,r,this)})}(jQuery),$(function(){$("#email").on("click",function(){"Enter Email Address"==$(this).val()&&$(this).val("")});var e=$("#newsSignupFeedback"),t=new MutationObserver(function(e){$("#newsSignupFeedback").removeClass("hidden"),$("#newsSignupFeedback").find("div.success").length&&($("#newsSignupFeedback").removeClass("error"),$(".form").hide(600),$(".preference-form").hide(600)),$("#newsSignupFeedback").find("div.error").length&&$("#newsSignupFeedback").addClass("error")});e.each(function(){t.observe(this,{attributes:!0,childList:!0,characterData:!0})})}),window.LovellPersn=function(){return new function(){var e=this;this.personalisationInputs={},this.relationships={},this.serviceData={},this.setRelationships=function(t){e.relationships=t||{}},this.setServiceData=function(t){e.serviceData=t||{}},this._onPersnInputChange=function(t){e._updateInputsStatus(),$(".persn-message__invalid-persn").css("display","none")},this._setInputDisabled=function(t,i){var s=e.personalisationInputs[t];s.attr("disabled",!!i&&"disabled")[(i?"remove":"add")+"Class"]("persn-service__input--satisfied").parent(".personalisation-input")[(i?"remove":"add")+"Class"]("personalisation-input--disabled"),s[0].tagName.match(/select/i)&&(s.parents(".sod_select")[(i?"add":"remove")+"Class"]("disabled"),i&&$(s[0].options[0]).prop("selected",!0))},this._getPersnInputVal=function(t){var i=e.personalisationInputs[t];if(!i)return console.error("Invalid input for ServiceID "+t+" // ",i),"";if(i.is(":disabled")||(i.attr("type")||"").match(/radio|checkbox/i)&&!i.is(":checked"))return"";var s=i.val()||"";return i[0].tagName.match(/select/i)?s="custom"==s.toLowerCase()?$(".persn-service__custom-input-"+t).slideDown().val():$(i[0].options[i[0].selectedIndex]).attr("value")||"":i.attr("type").match(/text/i)&&(s=s.toUpperCase()),s},this._getServiceOption=function(t,i){if(e.serviceData[t].FieldType.match(/select/i)){var s=e.serviceData[t].Options||[];for(var n in s)if(s[n].ID===i)return s[n]}},this._updateInputsStatus=function(){for(var i in e.relationships){var s=e.getServiceConstraintsSatisfiedBool(i,t.ENABLE);e._setInputDisabled(i,!s)}},this.getAllServiceConstraintsSatisfied=function(){return!!this._getServiceFailingConstraint()},this.getFormSubmitErrorMessage=function(){var e=this._getServiceFailingConstraint();if(e){var t="An unknown error occurred with your chosen personalisation",i=this.serviceData[e.ServiceID].Title,s=this.serviceData[e.RelatedServiceID].Title;switch(e.RelationshipType.toUpperCase()){case"REQUIRES":t="You must enter "+s;break;case"MUTUAL":t="You must enter "+s+" and "+i;break;case"UNIQUE":t="You can only choose one out of "+relatedTitle+" and "+i}return t}return!1},this._getServiceFailingConstraint=function(){for(var i in e.relationships){var s=e.getServiceConstraintsSatisfied(i,t.SUBMIT);if(!0!==s)return s}return!1},this.getServiceConstraintsSatisfiedBool=function(e,t){return!0===this.getServiceConstraintsSatisfied(e,t)},this.getServiceConstraintsSatisfied=function(i,s){if(!i)return!1;if(!e.relationships[i])return!0;for(var n in s=s||t.SUBMIT,e.relationships[i])for(var a in e.relationships[i][n]){var r=e.relationships[i][n][a];if(!e._getConstraintSatisfied(i,r,n,s))return{ServiceID:i,RelatedServiceID:r,RelationshipType:n}}return!0};var t={ENABLE:1,SUBMIT:2};this._getConstraintSatisfied=function(i,s,n,a){if(!i||!n||!s)return!1;n=n.toUpperCase(),a=a||t.SUBMIT;var r=!1,o=e._getPersnInputVal(i),l=e._getPersnInputVal(s);return a==t.ENABLE?r=this._getInputCanBeEnabled(o,l,n):a==t.SUBMIT&&(r=this._getInputCanBeSubmitted(o,l,n)),r},this._getInputCanBeEnabled=function(e,t,i){var s=!1;switch(i){case"REQUIRES":s=t.length>0;break;case"UNIQUE":s=0==t;break;case"MUTUAL":s=!0}return s},this._getInputCanBeSubmitted=function(e,t,i){var s=!1;switch(i){case"REQUIRES":s=!0;break;case"UNIQUE":s=e&&!t||!e&&t||!e&&!t;break;case"MUTUAL":s=e&&t||!e&&!t}return s},this.getServiceValues=function(){var t={};for(var i in e.personalisationInputs){var s=e._getPersnInputVal(i);e.getServiceConstraintsSatisfied(i)&&s&&(t[i]=s)}return t},this.getServiceValuesString=function(){var e=this.getServiceValues(),t=Object.keys(e).sort(),i="";for(var s in t)i+=t[s]+":"+e[t[s]]+",";return i.replace(/,+$/,"")},this.showPersonalisationTermsModal=function(){var t=$("#prsnl-confirm-panel"),i=t.find(".prsnl-confirm-panel__options"),s=t.find(".confirm-field-size"),n=[],a=e.getServiceValues(),r=Object.keys(a).sort();for(var o in r){var l=r[o],c=a[l];if(c.match(/^\d+$/)){var d=e.serviceData[l].FieldType;if(d.match(/select/i)){var u=e._getServiceOption(l,c);u&&(c=u.OptionText)}else d.match(/check/i)&&(c='<ion-icon name="checkmark-outline"></ion-icon>')}n.push($("<div>").addClass("confirm-field confirm-field-"+(o+1)).append($("<div>").css("text-align","center").addClass("small").text(e.serviceData[l].Title+":"),$("<span>").html(c)))}i.html($("<div>").addClass("confirm-row").append(n)),s.text($("#ba_Size").val()),t.modal()},this._modalAcceptPersonalisation=function(){var e;$("#prsnl-confirm-panel").modal("hide"),window.location.href.match(/\/(update|show)?basket\b/)&&(e="BASKET_PAGE"),addProductToBasket(e)},this.getServiceCost=function(t,i){var s=e.serviceData[t],n=parseFloat(s.BasePrice||0);return s.PerItemPrice&&(n+=i.replace(/\s+/g,"").length*parseFloat(s.PerItemPrice)),n},this.getTotalCost=function(){var t=e.getServiceValues(),i=0;for(var s in t)i+=e.getServiceCost(s,t[s]);return i},this._checkTextInput=function(t,i){var s=(i=!!i&&$(i))&&i.attr("type").match(/number/i)?"0-9":"a-z0-9\\s\\.\\'";if(!new RegExp("^["+s+"]*$","i").test(t))return t.replace(new RegExp("[^"+s+"]","gi"),"");if(i){var n=$("#ba_Size").val();if(n&&n.match(/:/)&&n.match(/,$/)){var a=i.closest(".size-block").find("input.productID").val(),r=n.match(new RegExp("\\b"+a+":([\\w\\._]+),"));n=r?match[1]:""}if(!n)return $(".noSizeSelectedWarning").show(),!1;var o=i.data("service-id"),l=e.serviceData[o].LengthLimit;if("object"==typeof l&&(l=l[n]),t.length>l)return t.substr(0,l)}return t},this.init=function(){e.personalisationInputs={},$("#persn-relationships").val()&&e.setRelationships(JSON.parse($("#persn-relationships").val())),$("#service-data").val()&&e.setServiceData(JSON.parse($("#service-data").val())),$(".persn-service__input").on("change keyup input",e._onPersnInputChange).each(function(){var t=$(this).data("service-id");if(e.personalisationInputs[t]=$(this),this.tagName.match(/select/i))for(var i=e.serviceData[t].Options||[],s=$(this).closest(".sod_select"),n=0;n<i.length;n++){var a=i[n];a&&a.OptionImage&&s.find(".sod_option[data-value='"+a.ID+"']").css({"background-image":"url("+skinJS_SiteURL+"/responsive-images/"+a.OptionImage+")","background-size":"40px 24px","background-position":"88% 50%","background-repeat":"no-repeat"})}}),$(".persn-service__input[type='text'], .persn-service__input[type='number']").on("input change",function(t){t.target.value=e._checkTextInput(t.target.value,t.target)||""}),e._updateInputsStatus()},$(function(){e.init()})}}(),$(function(){hideSliderPlaceholders(),applySliderButtonCSS(),$(".feature-slider").length&&$(".feature-slider").each(function(e,t){$(t).find(".swiper-button-next").addClass("swiper-button-next-"+e),$(t).find(".swiper-button-prev").addClass("swiper-button-prev-"+e);new Swiper($(t).find(".swiper")[0],{loop:!1,spaceBetween:10,slidesOffsetAfter:10,slidesOffsetBefore:10,centerInsufficientSlides:!0,navigation:{nextEl:".swiper-button-next-"+e,prevEl:".swiper-button-prev-"+e,enabled:!1},breakpoints:{320:{slidesPerView:2.4,slidesPerGroup:2},480:{slidesPerView:2.4,slidesPerGroup:2},640:{slidesPerView:3.4,slidesPerGroup:3},860:{slidesPerView:4.4,slidesPerGroup:4,slidesOffsetAfter:10,slidesOffsetBefore:10,spaceBetween:10,navigation:{enabled:!1}},1080:{slidesPerView:4,slidesPerGroup:4,slidesOffsetAfter:0,slidesOffsetBefore:0,spaceBetween:30,navigation:{enabled:!0}},1300:{slidesPerView:5,slidesPerGroup:5,slidesOffsetAfter:0,slidesOffsetBefore:0,spaceBetween:30,navigation:{enabled:!0}}}})}),$(".grid-panel--slider").length&&$(".grid-panel--slider").each(function(e,t){$(t).find(".swiper-scrollbar").addClass("swiper-scrollbar-"+e),$(t).find(".swiper-scrollbar").addClass("swiper-scrollbar-"+e);new Swiper($(t).find(".swiper")[0],{loop:!1,spaceBetween:10,scrollbar:{el:".swiper-scrollbar-"+e,snapOnRelease:!0,draggable:!0,hide:!1,enabled:!0},breakpoints:{320:{slidesPerView:1.2,slidesPerGroup:1},480:{slidesPerView:1.3,slidesPerGroup:1},600:{slidesPerView:2.2,slidesPerGroup:2},860:{slidesPerView:3.2,slidesPerGroup:3,spaceBetween:10},1080:{slidesPerView:3.2,slidesPerGroup:3,spaceBetween:20},1300:{slidesPerView:3.2,slidesPerGroup:3,spaceBetween:30}}})}),$(document).on("click",".tabbed-sliders__header-item",function(){var e=$(this).index();$(".tabbed-sliders__header-item").removeClass("is-active"),$(this).closest(".tabbed-sliders__header").find(".tabbed-sliders__header-items").each(function(t){$(".tabbed-sliders__header-item",this).eq(e).addClass("is-active")}),$(this).closest(".tabbed-sliders").find(".tabbed-sliders__slider-item").removeClass("is-active"),$(this).closest(".tabbed-sliders").find(".tabbed-sliders__slider-item").eq(e).addClass("is-active")}),$(".tabbed-sliders__header-items--full .tabbed-sliders__header-item").each(function(e,t){var i=$(".tabbed-sliders__slider-item").eq(e).find(".slider__item").length;$(this).find("span").remove(),$(this).append(' <span class="tabbed-sliders__header-item-count">('+i+")</span>")})}),$(function(){var e;$(".header-currency .current-currency").on("click",function(){$(".header-currency .locale").toggleClass("active")}),$(".header-currency .locale .currency-options__option").on("click",function(){$(this).data("value").indexOf("https://")>=0&&(window.location.href=$(this).data("value")),$(this).data("value")!==$(".header-currency .current-currency .currency-display").data("value")&&(changeCurrency($(this).data("value")),$(".header-currency .locale").toggleClass("active"))}),$(".header-currency .locale .currency-options__option").each(function(){$(this).data("value")==$(".header-currency .current-currency .currency-display").data("value")&&$(this).remove().prependTo(".header-currency .locale .currency-options")}),($(".checkout-panel").length||$(".lovell-form").length)&&$(".field").each(function(e,t){var i=$(t).find(".field-name").text(),s='input[type="number"],input[type="text"],input[type="email"],input[type="tel"],input[type="password"]';i=i.replace(":",""),$("<label>"+i+"</label>").insertAfter($(t).find(s)),$('<label for="'+$(t).find("textarea").attr("id")+'">'+i+"</label>").insertAfter($(t).find("textarea")),$("<label>"+i+"</label>").insertAfter($(t).find(".sod_label")),$(t).find(s).attr("placeholder"," ")}),$(".field-control label").on("click",function(){$(this).closest(".field-control").find('input[type="text"],input[type="email"],input[type="tel"],input[type="number"]').focus()}),$(document).on("click",".main-nav-currency a",function(){$(".locale").toggleClass("active")}),$(".locale .currency-options__option").on("click",function(){changeCurrency($(this).data("value"))}),"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||($(document).on("click","a.mainNav:not(.active), div.mainNav:not(.active)",function(e){$(this).parent().hasClass("main-nav-your-account")||$(this).parent().hasClass("main-nav-currency")||!$(this).parent().find("div .dropdown-menu").children().length||($(".navbar-title .navbar-title__text").hide(),$(".navbar-title").find("a.mainNav").remove(),$(".navbar-title").find("div.mainNav").remove(),$("a.mainNav.active").clone().appendTo(".navbar-title"),$("div.mainNav.active").clone().appendTo(".navbar-title"),$("ul.nav a.mainNav.active").hide(),$("ul.nav div.mainNav.active").hide(),$(".main-nav-your-account,.main-nav-currency").hide(),$(".navbar-back").show())}),$(document).on("click",".navbar-title a.mainNav, .navbar-title div.mainNav",function(e){e.preventDefault(),$("ul.nav a.mainNav.active, ul.nav div.mainNav.active").click().show(),$(".navbar-title a.mainNav").remove(),$(".navbar-title div.mainNav").remove(),$(".navbar-title .navbar-title__text").show(),$(".navbar-user-wrapper").show(),$("#megaMenuTabs").css("height","calc(90vh - 60px)"),$(".navbar-back").hide()})),$("ul.nav li").on("click","div ul.dropdown-menu li.dropdown-header",function(e){"mobile"!=getDeviceType()&&"tablet"!=getDeviceType()||($(".navbar-title .navbar-title__text").hide(),$(".navbar-title").find("a.mainNav").remove(),$(".navbar-title").find("div.mainNav").remove(),$("ul.dropdown-menu li.dropdown-header.current").clone().appendTo(".navbar-title"),$(".navbar-title li.dropdown-header.current .back-button").wrap('<a href="javascript:void(0);"></a>'),$("ul.dropdown-menu li.dropdown-header.current").hide())}),$(document).on("click",".navbar-title .dropdown-header",function(e){$("ul.nav li div ul.dropdown-menu li.dropdown-header.current").click().show(),$("a.mainNav.active").clone().appendTo(".navbar-title"),$("div.mainNav.active").clone().appendTo(".navbar-title"),$("ul.nav a.mainNav.active").hide(),$("ul.nav div.mainNav.active").hide(),$(".navbar-title .dropdown-header").remove()}),$(document).on("click",".currency-select-option",function(){changeCurrency($(this).data("value"))}),$(document).on("click","#menu-open",function(){e=$(window).scrollTop(),$("#navbar").addClass("active"),$("body").addClass("navbar-open"),$("body").css("top",-1*e)}),$(document).on("click",".navbar-close, .navbar-mask",function(t){t.preventDefault(),$("#navbar").removeClass("active"),$("body").removeClass("navbar-open"),$(".locale").removeClass("active"),$("body").css("top",""),$(window).scrollTop(e)}),$(document).on("click",".navbar-back",function(e){$(".navbar-title a.mainNav").click(),$(".navbar-title div.mainNav").click(),$(".navbar-title .dropdown-header").click()}),$(".ios input, .ios select").on("focus",function(){$(".header-mobile, #search-bar").css("position","absolute")}),$(".ios input, .ios select").on("blur",function(){$(".header-mobile, #search-bar").css("position","fixed")}),$("body").on("click",function(e){$(e.target).closest(".header-currency").length||$(".header-currency .locale").removeClass("active"),$(e.target).closest(".filter-item").length||$(".showQuickSearchItem").removeClass("active"),$(e.target).closest(".chooser-filters").length||"0px"!=$(".chooser-filters").css("left")||(closeFilters(),e.preventDefault())}),$("#header-basket, #basket-total-items").on("mouseover",function(e){prepareBasketDisplay("#mini-basket-panel"),$("#mini-basket-panel").addClass("active"),closeLiveSearch(),$(".header-currency .locale").removeClass("active")}),$("#basket-total-items").on("click",function(e){$(document).find(".mini-basket-button-basket").click()}),$("#header-basket").mouseleave(function(){$("#mini-basket-panel").removeClass("active")}),$("#search-bar").on("click",".close-search",function(){$("#search-bar").removeClass("active")}),$(".slider__item-cost.now").each(function(e){$(this).text($(this).text().replace("Now: ",""))}),$(window).resize(function(){if("mobile"==getDeviceType()||"tablet"==getDeviceType()){var e='<li class="main-nav-your-account"><a class="mainNav" href="'+skinJS_SiteURL+'/login"><span class="mainNavText">'+jslocalstrings["Your Account"]+"</span></a></li>";if($("nav.navbar #megaMenuTabs ul.nav .main-nav-your-account").remove(),$("nav.navbar #megaMenuTabs ul.nav").append(e),"LR"==skinJS_SiteCode||"LS"==skinJS_SiteCode){var t='<li class="main-nav-blog"><a class="mainNav" href="'+skinJS_SiteURL+'/blog"><span class="mainNavText">Blog</span></a></li>';$("nav.navbar #megaMenuTabs ul.nav .main-nav-blog").remove(),$("nav.navbar #megaMenuTabs ul.nav").append(t)}var i=$(".header-currency .currency-display").first().text(),s=$(".header-currency .currency-display").data("value"),n="";$(".header-currency .locale .sod_select .sod_list .sod_option").each(function(){n+='<li class="currency-select-option shopAll" data-value="'+$(this).data("value")+'"><a href="#">'+$(this).text()+"</a></li>"});var a='<li class="main-nav-currency"><a href="#" class="mainNav"><span class="mainNavText"><span class="currency-flag"><img src="'+skinJS_SiteURL+"/images/flag-icons/"+s+'.png" alt="'+i+": "+jslocalstrings["Change currency"]+'"/></span> '+i+'</span></a><div id="tab11"><ul id="menu11" class="dropdown-menu" role="menu">'+n+"</ul</div></li>";$("nav.navbar #megaMenuTabs ul.nav .main-nav-currency").remove(),$("nav.navbar #megaMenuTabs ul.nav").append(a)}else{$("nav.navbar ul.nav li.main-nav-your-account").remove(),$("nav.navbar ul.nav li.main-nav-blog").remove(),$("nav.navbar ul.nav li.main-nav-currency").remove();for(var r=!1,o=0,l=0;!r;)o=0,$("ul.nav li:visible").each(function(){o+=$(this).outerWidth(!0)}),l=$("#navbar").outerWidth(),listLength=$("ul.nav li:visible").length,o>l?$("ul.nav li").eq(listLength-1).addClass("hide"):r=!0}}).resize(),$(".splash-page .tile, .splash-page .full-tile").on("touchstart",function(e){$(this).removeClass("tile-pseudo-hover"),$(this).addClass("tile-touch-hover")}),$(".splash-page .tile, .splash-page .full-tile").on("touchend",function(e){$(this).removeClass("tile-touch-hover")}),$(".splash-page .tile, .splash-page .full-tile").on("mouseenter",function(e){$(this).removeClass("tile-touch-hover"),$(this).addClass("tile-pseudo-hover")}),$(".splash-page .tile, .splash-page .full-tile").on("mouseleave",function(e){$(this).removeClass("tile-pseudo-hover")}),basketConfig(),$(".container").on("click","a.pgr",function(e){$(this).hasClass("showall")||$("html, body").animate({scrollTop:0},1e3)})}),$(function(){$(document).on("click",".product-focus__region",function(){if(!cmdIsPressed&&!$(this).find(".editing").length){$(".product-focus__region").removeClass("active").addClass("collapsed"),$(this).addClass("active").removeClass("collapsed");var e=$(this).index();$(this).closest(".product-focus").find(".product-focus__image-main").addClass("inactive"),$(this).closest(".product-focus").find(".product-focus__region-image").removeClass("active"),$(this).closest(".product-focus").find(".product-focus__region-image").eq(e).addClass("active")}}),$(document).on("click",".product-focus__expand-button",function(e){cmdIsPressed||$(this).closest(".product-focus__region").hasClass("active")&&($(".product-focus__region").removeClass("active").removeClass("collapsed"),$(this).closest(".product-focus").find(".product-focus__image-main").removeClass("inactive"),$(this).closest(".product-focus").find(".product-focus__region-image").removeClass("active"),e.stopPropagation())})}),$(window).on("load",function(){$(".product-focus-2__panel").on("click",function(){$(".product-focus-2__panel").removeClass("active"),$(this).addClass("active")})}),$(function(){$(".orderButtonDiv, .preOrderButtonDiv").on("click",function(){$(".no-stock-message").remove(),$(".personalisation__message").hide()}),$(".noLongerStockedButtonDiv").on("click",function(){$(".no-stock-message").remove(),$("#floatStockWarning").addClass("hidden"),$("#free-uk-express-message").addClass("hidden"),$("#ready-for-dispatch-message").addClass("hidden"),$(this).closest(".select-item-size-buttons").after('<div class="no-stock-message">'+jslocalstrings["This option is out of stock"]+"</div>")}),$(".noDeliveryButtonDiv").on("click",function(){$(".no-delivery-variant-selected").addClass("no-delivery-variant"),$(".no-delivery-variant-selected").removeClass("no-delivery-variant-selected"),$(this).find(".no-delivery-variant").addClass("no-delivery-variant-selected"),$(this).find(".no-delivery-variant").removeClass("no-delivery-variant"),$(".no-stock-message").remove(),$("#floatStockWarning").addClass("hidden"),$("#free-uk-express-message").addClass("hidden"),$("#ready-for-dispatch-message").addClass("hidden"),$(this).closest(".select-item-size-buttons").after('<div class="no-stock-message">'+jslocalstrings["Only available for purchase in store, please call 01935 414142 for more information."]+"</div>")}),$(".orderButtonDiv, .preOrderButtonDiv").on("click",function(){$("#add-to-basket-success").removeClass("active"),$("#add-to-basket-warning").removeClass("active")}),$(".orderButtonSelected").length==$(".size-block").length&&$("#addToCartLink").addClass("active").removeClass("pre-order").html(jslocalstrings["Add to basket"]),resizeProductSizeSelectButtons(),$(document).on("click",".select-variants-header",function(){$(this).next(".select-item-size-buttons").toggleClass("active")}),$(document).on("click",".select-item-size-buttons a",function(){$(this).closest(".variants-list").find(".select-variants-header").text($("span",this).text()),$(this).closest(".select-item-size-buttons").removeClass("active")}),$(".select-item-size-buttons .orderButtonDiv a").on("click",function(){$(".add-to-basket-product__size").find(".add-basket-price-value").remove(),$(".add-to-basket-product__size").append('<span class="add-basket-price-value">'+$(this).find("span").text()+"</span>")})});var limit=new Array,available=new Array,inStock=new Array,stockDate=new Array,addToCartSize="";function forCart(e,t,i){var s="&nbsp;",n=makeValidId("s_"+addToCartSize);if($("#product-stock-warning").hide(),"size"==e){addToCartSize&&($("#size-block-"+i+" .orderButtonSelected").addClass("orderButton"),$("#size-block-"+i+" .orderButtonSelected").removeClass("orderButtonSelected"),$("#size-block-"+i+" .no-longer-stocked-variant-selected").removeClass("no-longer-stocked-variant-selected")),n=makeValidId("s_"+(addToCartSize=t)),$("#size-block-"+i+" #"+n).hasClass("no-longer-stocked-variant")?$("#size-block-"+i+" #"+n).addClass("no-longer-stocked-variant-selected"):($("#size-block-"+i+" #"+n).addClass("orderButtonSelected"),$("#size-block-"+i+" #"+n).removeClass("orderButton"));var a=t;$("#ba_Size").val(a)}checkSizesSelected()?$("#addToCartLink").addClass("active").html(jslocalstrings["Add to basket"]):$("#addToCartLink").removeClass("active").removeClass("pre-order");var r=parseInt($("#ba_Quantity").val());r||(r=1),"qty"==e&&(r+=t),r<1&&(r=1);var o=999,l=999,c=999;$(".size-block").each(function(e){var t=e+1,i=$(this).find(".orderButtonSelected").attr("id");c=limit[t+"-"+i];var s=available[t+"-"+i],n=inStock[t+"-"+i];s<o&&(o=s),n<l&&(l=n)});var d=stockDate[n],u=parseInt($("#heldInStock").val());(document.getElementById("ba_Quantity")&&(document.getElementById("ba_Quantity").className="orderInput"),r>l&&r<=o&&r>1&&u)&&(document.getElementById("ba_Quantity").className="orderInputAlert",s="",s+=l<1?jslocalstrings.None:jslocalstrings.Only+" "+l,s+=1==l?" "+jslocalstrings["is available now in size"]:" "+jslocalstrings["are available now in size"],s+=" "+(p=document.getElementById(n).innerHTML)+". "+jslocalstrings["New stock, expected"]+" "+d+", "+jslocalstrings["can be pre-ordered."]);o<0&&(o=0);var h=$("tradeAccount").val();if(r>o&&u){if(document.getElementById("ba_Quantity").className="orderInputAlert",o){s+=1==o?jslocalstrings["There is only"]:jslocalstrings["There are only"];var p=document.getElementById(n).innerHTML;$(".size-block").length>1?s+=" "+o+" "+jslocalstrings["of this item available for the sizes selected."]:s+=" "+o+" "+jslocalstrings["of this item available in size"]+" "+p+"."}else s=jslocalstrings["This item is out of stock in size"]+" "+addToCartSize.replace(/\.5/g,"&frac12")+".";r=o,o!=c||h?$("#product-stock-warning .text").html(s):$("#product-stock-warning .text").html(jslocalstrings["Please contact us for larger orders"]+"."),$("#product-stock-warning").css("display","flex")}document.getElementById("ba_Quantity")&&(document.getElementById("ba_Quantity").value=r)}function canAdd(e){checkSizesSelected()||(e?$("#addThisProductToBasket .noSizeSelectedWarning").show():$(".noSizeSelectedWarning").hide())}function checkSizesSelected(){var e=$(".orderButtonSelected").length,t=$(".size-block").length,i=0;return $(".size-block").each(function(){var e=$(this).find(".bundle-quantity").val();e>1&&(t-=1,e!=$(this).find(".total").html().split(" ")[0]&&(i=1,$(this).find(".total").css("color","#e86107")))}),e!=t||i?0:1}function isAddToCartLoading(){return $("#addToCartLink").data("loading")}function changeUnits(e,t,i){for(var s=0;s<unitsList.length;s++){var n=$("#"+makeValidId("unitSelector-"+unitsList[s]));unitsList[s]==e?(n.addClass(sizeUnitData.unitsButtonClass_selected),$("currentSizeScale").val(e)):n.addClass(sizeUnitData.unitsButtonClass).removeClass(sizeUnitData.unitsButtonClass_selected)}var a=sizeUnitData.itemType;$("#addToCartLink").attr("href",sizeUnitData.javascriptLink),"Boots"!=a&&"Running Shoes"!=a&&"Trainers"!=a||doAjaxAction({action:"UPDATE_VISIT_SIZE_SCALE",ItemType:a,SizeScale:e});var r=sizesData[i],o=sizesList[i];$("#"+t+" .size").each(function(t){var i=$(this),s=$("#"+makeValidId("stockSize_"+o[t]));if(i.length){var n="";n=formatDisplaySize(n=r[o[t]+":"+e]?r[o[t]+":"+e]:"UK"==e?o[t]:(i.html().match(new RegExp("^"+sizeUnitData.originalUnit+":")),o[t]),0),i.html(n),s.html(n)}})}
//# sourceMappingURL=lovell-scripts.min.js.map