function _extends(){return(_extends=Object.assign||function(e){for(var t=1;t>10|55296,1023&i|56320)}function r(){x()}var e,f,w,o,s,p,d,g,b,l,c,x,C,a,E,m,u,v,y,T="sizzle"+1*new Date,_=n.document,S=0,i=0,D=se(),A=se(),I=se(),k=function(e,t){return e===t&&(c=!0),0},N={}.hasOwnProperty,t=[],O=t.pop,L=t.push,P=t.push,j=t.slice,H=function(e,t){for(var n=0,i=e.length;n+~]|"+z+")"+z+"*"),K=new RegExp("="+z+"*([^\\]'\"]*?)"+z+"*\\]","g"),Q=new RegExp(W),V=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+q),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+z+"*(even|odd|(([+-]|)(\\d*)n|)"+z+"*(?:([+-]|)"+z+"*(\\d+)|))"+z+"*\\)|)","i"),bool:new RegExp("^(?:"+M+")$","i"),needsContext:new RegExp("^"+z+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+z+"*((?:-\\d)?\\d*)"+z+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\([\\da-f]{1,6}"+z+"?|("+z+")|.)","ig"),ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{P.apply(t=j.call(_.childNodes),_.childNodes),t[_.childNodes.length].nodeType}catch(n){P={apply:t.length?function(e,t){L.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,n,i){var r,o,s,a,l,c,u,h=t&&t.ownerDocument,d=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return n;if(!i&&((t?t.ownerDocument||t:_)!==C&&x(t),t=t||C,E)){if(11!==d&&(l=J.exec(e)))if(r=l[1]){if(9===d){if(!(s=t.getElementById(r)))return n;if(s.id===r)return n.push(s),n}else if(h&&(s=h.getElementById(r))&&y(t,s)&&s.id===r)return n.push(s),n}else{if(l[2])return P.apply(n,t.getElementsByTagName(e)),n;if((r=l[3])&&f.getElementsByClassName&&t.getElementsByClassName)return P.apply(n,t.getElementsByClassName(r)),n}if(f.qsa&&!I[e+" "]&&(!m||!m.test(e))){if(1!==d)h=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(ne,ie):t.setAttribute("id",a=T),o=(c=p(e)).length;o--;)c[o]="#"+a+" "+ve(c[o]);u=c.join(","),h=ee.test(e)&&ge(t.parentNode)||t}if(u)try{return P.apply(n,h.querySelectorAll(u)),n}catch(e){}finally{a===T&&t.removeAttribute("id")}}}return g(e.replace($,"$1"),t,n,i)}function se(){var i=[];return function e(t,n){return i.push(t+" ")>w.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function ae(e){return e[T]=!0,e}function le(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function fe(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&re(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(s){return ae(function(o){return o=+o,ae(function(e,t){for(var n,i=s([],e.length,o),r=i.length;r--;)e[n=i[r]]&&(e[n]=!(t[n]=e[n]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in f=oe.support={},s=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},x=oe.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:_;return i!==C&&9===i.nodeType&&i.documentElement&&(a=(C=i).documentElement,E=!s(C),_!==C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",r,!1):n.attachEvent&&n.attachEvent("onunload",r)),f.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),f.getElementsByTagName=le(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),f.getElementsByClassName=G.test(C.getElementsByClassName),f.getById=le(function(e){return a.appendChild(e).id=T,!C.getElementsByName||!C.getElementsByName(T).length}),f.getById?(w.filter.ID=function(e){var t=e.replace(te,h);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(w.filter.ID=function(e){var n=e.replace(te,h);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&E){var n,i,r,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(r=t.getElementsByName(e),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),w.find.TAG=f.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):f.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;n=o[r++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=f.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&E)return t.getElementsByClassName(e)},u=[],m=[],(f.qsa=G.test(C.querySelectorAll))&&(le(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+z+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+z+"*(?:value|"+M+")"),e.querySelectorAll("[id~="+T+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+T+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+z+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(f.matchesSelector=G.test(v=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&le(function(e){f.disconnectedMatch=v.call(e,"*"),v.call(e,"[s!='']:x"),u.push("!=",W)}),m=m.length&&new RegExp(m.join("|")),u=u.length&&new RegExp(u.join("|")),t=G.test(a.compareDocumentPosition),y=t||G.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},k=t?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!f.sortDetached&&t.compareDocumentPosition(e)===n?e===C||e.ownerDocument===_&&y(_,e)?-1:t===C||t.ownerDocument===_&&y(_,t)?1:l?H(l,e)-H(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===C?-1:t===C?1:r?-1:o?1:l?H(l,e)-H(l,t):0;if(r===o)return ue(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ue(s[i],a[i]):s[i]===_?-1:a[i]===_?1:0}),C},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==C&&x(e),t=t.replace(K,"='$1']"),f.matchesSelector&&E&&!I[t+" "]&&(!u||!u.test(t))&&(!m||!m.test(t)))try{var n=v.call(e,t);if(n||f.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,h),e[3]=(e[3]||e[4]||e[5]||"").replace(te,h),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||oe.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return Y.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&Q.test(n)&&(t=p(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,h).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=D[e+" "];return t||(t=new RegExp("(^|"+z+")"+e+"("+z+"|$)"))&&D(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,r){return function(e){var t=oe.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===r:"!="===i?t!==r:"^="===i?r&&0===t.indexOf(r):"*="===i?r&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(e,n,i){return _(n)?T.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?T.grep(e,function(e){return e===n!==i}):"string"!=typeof n?T.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||k,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):_(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:N.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),A.test(i[1])&&T.isPlainObject(t))for(i in t)_(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=E.getElementById(i[2]))&&(this[0]=r,this.length=1),this}).prototype=T.fn,k=T(E);var O=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ue=/^$|^module$|\/(?:java|ecma)script/i,he={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function de(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?T.merge([e],n):n}function fe(e,t){for(var n=0,i=e.length;nx",y.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ye=E.documentElement,_e=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,be=/^([^.]*)(?:\.(.+)|)/;function xe(){return!0}function Ce(){return!1}function Ee(){try{return E.activeElement}catch(e){}}function Te(e,t,n,i,r,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Te(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Ce;else if(!r)return e;return 1===o&&(s=r,(r=function(e){return T().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),e.each(function(){T.event.add(this,t,r,i,n)})}T.event={global:{},add:function(t,e,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,m=Y.get(t);if(m)for(n.handler&&(n=(o=n).handler,r=o.selector),r&&T.find.matchesSelector(ye,r),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(j)||[""]).length;c--;)f=g=(a=be.exec(e[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=T.event.special[f]||{},f=(r?h.delegateType:h.bindType)||f,h=T.event.special[f]||{},u=T.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:p.join(".")},o),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(f,s)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),r?d.splice(d.delegateCount++,0,u):d.push(u),T.event.global[f]=!0)},remove:function(e,t,n,i,r){var o,s,a,l,c,u,h,d,f,p,g,m=Y.hasData(e)&&Y.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(f=g=(a=be.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=T.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)u=d[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||T.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)T.event.remove(e,f+t[c],n,i,!0);T.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,o,s,a=T.event.fix(e),l=new Array(arguments.length),c=(Y.get(this,"events")||{})[a.type]||[],u=T.event.special[a.type]||{};for(l[0]=a,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,De=/\s*$/g;function ke(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Oe(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Le(e,t){var n,i,r,o,s,a,l,c;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),s=Y.set(t,o),c=o.events))for(r in delete s.handle,s.events={},c)for(n=0,i=c[r].length;n")},clone:function(e,t,n){var i,r,o,s,a,l,c,u=e.cloneNode(!0),h=T.contains(e.ownerDocument,e);if(!(y.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(s=de(u),i=0,r=(o=de(e)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",r=function(e){i.remove(),r=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(i[0])},abort:function(){r&&r()}}});var Zt,Gt=[],Jt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||T.expando+"_"+It++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",function(e,t,n){var i,r,o,s=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=_(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(kt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return o||T.error(i+" was not called"),o[0]},e.dataTypes[0]="json",r=C[i],C[i]=function(){o=arguments},n.always(function(){void 0===r?T(C).removeProp(i):C[i]=r,e[i]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(i)),o&&_(r)&&r(o[0]),o=r=void 0}),"script"}),y.createHTMLDocument=((Zt=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Zt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((i=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(i)):t=E),o=!n&&[],(r=A.exec(e))?[t.createElement(r[1])]:(r=ve([e],t,o),o&&o.length&&T(o).remove(),T.merge([],r.childNodes)));var i,r,o},T.fn.load=function(e,t,n){var i,r,o,s=this,a=e.indexOf(" ");return-1").append(T.parseHTML(e)).find(i):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){T.fn[t]=function(e){return this.on(t,e)}}),T.expr.pseudos.animated=function(t){return T.grep(T.timers,function(e){return t===e.elem}).length},T.offset={setOffset:function(e,t,n){var i,r,o,s,a,l,c=T.css(e,"position"),u=T(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),o=T.css(e,"top"),l=T.css(e,"left"),r=("absolute"===c||"fixed"===c)&&-1<(o+l).indexOf("auto")?(s=(i=u.position()).top,i.left):(s=parseFloat(o)||0,parseFloat(l)||0),_(t)&&(t=t.call(e,n,T.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):u.css(h)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){T.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===T.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(i,"marginTop",!0),left:t.left-r.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ye})}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,r){var o="pageYOffset"===r;T.fn[t]=function(e){return F(this,function(e,t,n){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[r]:e[t];i?i.scrollTo(o?i.pageXOffset:n,o?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),T.each(["top","left"],function(e,n){T.cssHooks[n]=Ye(y.pixelPosition,function(e,t){if(t)return t=Ve(e,n),$e.test(t)?T(e).position()[n]+"px":t})}),T.each({Height:"height",Width:"width"},function(s,a){T.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,o){T.fn[o]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),r=i||(!0===e||!0===t?"margin":"border");return F(this,function(e,t,n){var i;return g(e)?0===o.indexOf("outer")?e["inner"+s]:e.document.documentElement["client"+s]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+s],i["scroll"+s],e.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?T.css(e,t,r):T.style(e,t,n,r)},a,n?e:void 0,n)}})}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){T.fn[n]=function(e,t){return 0").addClass("nice-select").addClass(e.attr("class")||"").addClass(e.attr("disabled")?"disabled":"").attr("tabindex",e.attr("disabled")?null:"0").html('
    '));var i=e.next(),t=e.find("option"),n=e.find("option:selected");i.find(".current").html(n.data("display")||n.text()),t.each(function(e){var t=o(this),n=t.data("display");i.find("ul").append(o("
  • ").attr("data-value",t.val()).attr("data-display",n||null).addClass("option"+(t.is(":selected")?" selected":"")+(t.is(":disabled")?" disabled":"")).html(t.text()))})}this.hide(),this.each(function(){var e=o(this);e.next().hasClass("nice-select")||i(e)}),o(document).off(".nice_select"),o(document).on("click.nice_select",".nice-select",function(e){var t=o(this);o(".nice-select").not(t).removeClass("open"),t.toggleClass("open"),t.hasClass("open")?(t.find(".option"),t.find(".focus").removeClass("focus"),t.find(".selected").addClass("focus")):t.focus()}),o(document).on("click.nice_select",function(e){0===o(e.target).closest(".nice-select").length&&o(".nice-select").removeClass("open").find(".option")}),o(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(e){var t=o(this),n=t.closest(".nice-select");n.find(".selected").removeClass("selected"),t.addClass("selected");var i=t.data("display")||t.text();n.find(".current").text(i),n.prev("select").val(t.data("value")).trigger("change")}),o(document).on("keydown.nice_select",".nice-select",function(e){var t=o(this),n=o(t.find(".focus")||t.find(".list .option.selected"));if(32==e.keyCode||13==e.keyCode)return t.hasClass("open")?n.trigger("click"):t.trigger("click"),!1;if(40==e.keyCode){if(t.hasClass("open")){var i=n.nextAll(".option:not(.disabled)").first();0",a)||this.op(t,"<",s)&&this.op(t,">",a))&&l.push(n);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],c.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=l("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(l("
    ",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},c.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map(function(e){return l(e)}),this._mergers=this._items.map(function(){return 1}),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},c.prototype.initialize=function(){var e,t,n;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(e=this.$element.find("img"),t=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:a,n=this.$element.children(t).width(),e.length&&n<=0&&this.preloadAutoWidthImages(e));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},c.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},c.prototype.setup=function(){var t=this.viewport(),e=this.options.responsive,n=-1,i=null;e?(l.each(e,function(e){e<=t&&n").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:t.data}),t.data},c.prototype.update=function(){for(var e=0,t=this._pipe.length,n=l.proxy(function(e){return this[e]},this._invalidated),i={};e",s[e+1]!==a?s[e+1]:t-o)&&(r="left"===i?e+1:e),-1===r},this)),this.settings.loop||(this.op(n,">",s[this.minimum()])?r=n=this.minimum():this.op(n,"<",s[this.maximum()])&&(r=n=this.maximum())),r},c.prototype.animate=function(e){var t=0s/2&&(r+=-1*o*s),(i=(((e=n+r)-a)%s+s)%s+a)!==e&&i-r<=l&&0":return i?e=":return i?e<=n:n<=e;case"<=":return i?n<=e:e<=n}},c.prototype.on=function(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on"+t,n)},c.prototype.off=function(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on"+t,n)},c.prototype.trigger=function(e,t,n,i,r){var o={item:{count:this._items.length,index:this.current()}},s=l.camelCase(l.grep(["on",e,n],function(e){return e}).join("-").toLowerCase()),a=l.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),l.extend({relatedTarget:this},o,t));return this._supress[e]||(l.each(this._plugins,function(e,t){t.onTrigger&&t.onTrigger(a)}),this.register({type:c.Type.Event,name:e}),this.$element.trigger(a),this.settings&&"function"==typeof this.settings[s]&&this.settings[s].call(this,a)),a},c.prototype.enter=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]===a&&(this._states.current[t]=0),this._states.current[t]++},this))},c.prototype.leave=function(e){l.each([e].concat(this._states.tags[e]||[]),l.proxy(function(e,t){this._states.current[t]--},this))},c.prototype.register=function(n){if(n.type===c.Type.Event){if(l.event.special[n.name]||(l.event.special[n.name]={}),!l.event.special[n.name].owl){var t=l.event.special[n.name]._default;l.event.special[n.name]._default=function(e){return!t||!t.apply||e.namespace&&-1!==e.namespace.indexOf("owl")?e.namespace&&-1",{class:"owl-video-tn "+l,srcType:e}):u("
    ",{class:"owl-video-tn",style:"opacity:1;background-image:url("+e+")"}),t.after(i),t.after('
    ')}var i,r,o=e.width&&e.height?"width:"+e.width+"px;height:"+e.height+"px;":"",s=t.find("img"),a="src",l="",c=this._core.settings;if(t.wrap(u("
    ",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),s.length)return n(s.attr(a)),s.remove(),!1;"youtube"===e.type?(r="//img.youtube.com/vi/"+e.id+"/hqdefault.jpg",n(r)):"vimeo"===e.type?u.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e[0].thumbnail_large,n(r)}}):"vzaar"===e.type&&u.ajax({type:"GET",url:"//vzaar.com/api/videos/"+e.id+".json",jsonp:"callback",dataType:"jsonp",success:function(e){r=e.framegrab_url,n(r)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var t,n=u(e.target).closest("."+this._core.settings.itemClass),i=this._videos[n.attr("data-video")],r=i.width||"100%",o=i.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(t=u('')).attr("height",o),t.attr("width",r),"youtube"===i.type?t.attr("src","//www.youtube.com/embed/"+i.id+"?autoplay=1&rel=0&v="+i.id):"vimeo"===i.type?t.attr("src","//player.vimeo.com/video/"+i.id+"?autoplay=1"):"vzaar"===i.type&&t.attr("src","//view.vzaar.com/"+i.id+"/player?autoplay=true"),u(t).wrap('
    ').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=t.fullscreenElement||t.mozFullScreenElement||t.webkitFullscreenElement;return e&&u(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var e,t;for(e in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},u.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(s){var t=function(e){this.core=e,this.core.options=s.extend({},t.Defaults,this.core.options),this.swapping=!0,this.previous=void 0,this.next=void 0,this.handlers={"change.owl.carousel":s.proxy(function(e){e.namespace&&"position"==e.property.name&&(this.previous=this.core.current(),this.next=e.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":s.proxy(function(e){e.namespace&&(this.swapping="translated"==e.type)},this),"translate.owl.carousel":s.proxy(function(e){e.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};t.Defaults={animateOut:!1,animateIn:!1},t.prototype.swap=function(){if(1===this.core.settings.items&&s.support.animation&&s.support.transition){this.core.speed(0);var e,t=s.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),i=this.core.$stage.children().eq(this.next),r=this.core.settings.animateIn,o=this.core.settings.animateOut;this.core.current()!==this.previous&&(o&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(s.support.animation.end,t).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(o)),r&&i.one(s.support.animation.end,t).addClass("animated owl-animated-in").addClass(r))}},t.prototype.clear=function(e){s(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},t.prototype.destroy=function(){var e,t;for(e in this.handlers)this.core.$element.off(e,this.handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},s.fn.owlCarousel.Constructor.Plugins.Animate=t}(window.Zepto||window.jQuery,window,document),function(i,r,t){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":i.proxy(function(e){e.namespace&&"settings"===e.property.name?this._core.settings.autoplay?this.play():this.stop():e.namespace&&"position"===e.property.name&&this._paused&&(this._time=0)},this),"initialized.owl.carousel":i.proxy(function(e){e.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":i.proxy(function(e,t,n){e.namespace&&this.play(t,n)},this),"stop.owl.autoplay":i.proxy(function(e){e.namespace&&this.stop()},this),"mouseover.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this),"touchstart.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"touchend.owl.core":i.proxy(function(){this._core.settings.autoplayHoverPause&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=i.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(e){this._call=r.setTimeout(i.proxy(this._next,this,e),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||t.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(e,t){var n;this._core.is("rotating")||this._core.enter("rotating"),e=e||this._core.settings.autoplayTimeout,n=Math.min(this._time%(this._timeout||e),e),this._paused?(this._time=this.read(),this._paused=!1):r.clearTimeout(this._call),this._time+=this.read()%e-n,this._timeout=e,this._call=r.setTimeout(i.proxy(this._next,this,t),e-n)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,r.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,r.clearTimeout(this._call))},n.prototype.destroy=function(){var e,t;for(e in this.stop(),this._handlers)this._core.$element.off(e,this._handlers[e]);for(t in Object.getOwnPropertyNames(this))"function"!=typeof this[t]&&(this[t]=null)},i.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(o){"use strict";var t=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('
    '+o(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"
    ")},this),"added.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,0,this._templates.pop())},this),"remove.owl.carousel":o.proxy(function(e){e.namespace&&this._core.settings.dotsData&&this._templates.splice(e.position,1)},this),"changed.owl.carousel":o.proxy(function(e){e.namespace&&"position"==e.property.name&&this.draw()},this),"initialized.owl.carousel":o.proxy(function(e){e.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))},this),"refreshed.owl.carousel":o.proxy(function(e){e.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=o.extend({},t.Defaults,this._core.options),this.$element.on(this._handlers)};t.Defaults={nav:!1,navText:['',''],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},t.prototype.initialize=function(){var e,n=this._core.settings;for(e in this._controls.$relative=(n.navContainer?o(n.navContainer):o("
    ").addClass(n.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=o("<"+n.navElement+">").addClass(n.navClass[0]).html(n.navText[0]).prependTo(this._controls.$relative).on("click",o.proxy(function(e){this.prev(n.navSpeed)},this)),this._controls.$next=o("<"+n.navElement+">").addClass(n.navClass[1]).html(n.navText[1]).appendTo(this._controls.$relative).on("click",o.proxy(function(e){this.next(n.navSpeed)},this)),n.dotsData||(this._templates=[o('',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},u.fn.magnificPopup=function(e){o();var t=u(this);if("string"==typeof e)if("open"===e){var n,i=w?t.data("magnificPopup"):t[0].magnificPopup,r=parseInt(arguments[1],10)||0;n=i.items?i.items[r]:(n=t,i.delegate&&(n=n.find(i.delegate)),n.eq(r)),g._openClick({mfpEl:n},t,i)}else g.isOpen&&g[e].apply(g,Array.prototype.slice.call(arguments,1));else e=u.extend(!0,{},e),w?t.data("magnificPopup",e):t[0].magnificPopup=e,g.addGroup(t,e);return t};function x(){T&&(E.after(T.addClass(C)).detach(),T=null)}var C,E,T,S="inline";u.magnificPopup.registerModule(S,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){g.types.push(S),h(a+"."+S,function(){x()})},getInline:function(e,t){if(x(),e.src){var n=g.st.inline,i=u(e.src);if(i.length){var r=i[0].parentNode;r&&r.tagName&&(E||(C=n.hiddenClass,E=d(C),C="mfp-"+C),T=i.after(E).detach().removeClass(C)),g.updateStatus("ready")}else g.updateStatus("error",n.tNotFound),i=u("
    ");return e.inlineElement=i}return g.updateStatus("ready"),g._parseMarkup(t,{},e),t}}});function D(){I&&u(document.body).removeClass(I)}function A(){D(),g.req&&g.req.abort()}var I,k="ajax";u.magnificPopup.registerModule(k,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'The content could not be loaded.'},proto:{initAjax:function(){g.types.push(k),I=g.st.ajax.cursor,h(a+"."+k,A),h("BeforeChange.ajax",A)},getAjax:function(r){I&&u(document.body).addClass(I),g.updateStatus("loading");var e=u.extend({url:r.src,success:function(e,t,n){var i={data:e,xhr:n};f("ParseAjax",i),g.appendContent(u(i.data),k),r.finished=!0,D(),g._setFocus(),setTimeout(function(){g.wrap.addClass(_)},16),g.updateStatus("ready"),f("AjaxContentAdded")},error:function(){D(),r.finished=r.loadError=!0,g.updateStatus("error",g.st.ajax.tError.replace("%url%",r.src))}},g.st.ajax.settings);return g.req=u.ajax(e),""}}});var N;u.magnificPopup.registerModule("image",{options:{markup:'
    ',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'The image could not be loaded.'},proto:{initImage:function(){var e=g.st.image,t=".image";g.types.push("image"),h("Open"+t,function(){"image"===g.currItem.type&&e.cursor&&u(document.body).addClass(e.cursor)}),h(a+t,function(){e.cursor&&u(document.body).removeClass(e.cursor),b.off("resize.mfp")}),h("Resize"+t,g.resizeImage),g.isLowIE&&h("AfterChange",g.resizeImage)},resizeImage:function(){var e=g.currItem;if(e&&e.img&&g.st.image.verticalFit){var t=0;g.isLowIE&&(t=parseInt(e.img.css("padding-top"),10)+parseInt(e.img.css("padding-bottom"),10)),e.img.css("max-height",g.wH-t)}},_onImageHasSize:function(e){e.img&&(e.hasSize=!0,N&&clearInterval(N),e.isCheckingImgSize=!1,f("ImageHasSize",e),e.imgHidden&&(g.content&&g.content.removeClass("mfp-loading"),e.imgHidden=!1))},findImageSize:function(t){var n=0,i=t.img[0],r=function(e){N&&clearInterval(N),N=setInterval(function(){0
    ',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){g.types.push(P),h("BeforeChange",function(e,t,n){t!==n&&(t===P?L():n===P&&L(!0))}),h(a+"."+P,function(){L()})},getIframe:function(e,t){var n=e.src,i=g.st.iframe;u.each(i.patterns,function(){if(-1',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var o=g.st.gallery,e=".mfp-gallery";if(g.direction=!0,!o||!o.enabled)return!1;v+=" mfp-gallery",h("Open"+e,function(){o.navigateByImgClick&&g.wrap.on("click"+e,".mfp-img",function(){if(1=g.index,g.index=e,g.updateItemHTML()},preloadNearbyImages:function(){var e,t=g.st.gallery.preload,n=Math.min(t[0],g.items.length),i=Math.min(t[1],g.items.length);for(e=1;e<=(g.direction?i:n);e++)g._preloadItem(g.index+e);for(e=1;e<=(g.direction?n:i);e++)g._preloadItem(g.index-e)},_preloadItem:function(e){if(e=j(e),!g.items[e].preloaded){var t=g.items[e];t.parsed||(t=g.parseEl(e)),f("LazyLoad",t),"image"===t.type&&(t.img=u('').on("load.mfploader",function(){t.hasSize=!0}).on("error.mfploader",function(){t.hasSize=!0,t.loadError=!0,f("LazyLoadError",t)}).attr("src",t.src)),t.preloaded=!0}}}});var M="retina";u.magnificPopup.registerModule(M,{options:{replaceSrc:function(e){return e.src.replace(/\.\w+$/,function(e){return"@2x"+e})},ratio:1},proto:{initRetina:function(){if(1',className:"hideShowPassword-toggle",touchSupport:"undefined"!=typeof Modernizr&&Modernizr.touchevents,attachToEvent:"click.hideShowPassword",attachToTouchEvent:"touchstart.hideShowPassword mousedown.hideShowPassword",attachToKeyEvent:"keyup",attachToKeyCodes:!0,styles:{position:"absolute"},touchStyles:{pointerEvents:"none"},position:"infer",verticalAlign:"middle",offset:0,attr:{role:"button","aria-label":"Show Password",title:"Show Password",tabIndex:0}},wrapper:{element:"
    ",className:"hideShowPassword-wrapper",enforceWidth:!1,styles:{position:"relative"},inheritStyles:["display","verticalAlign","marginTop","marginRight","marginBottom","marginLeft"],innerElementStyles:{marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},states:{shown:{className:"hideShowPassword-shown",changeEvent:"passwordShown",props:{type:"text"},toggle:{className:"hideShowPassword-toggle-hide",content:"Hide",attr:{"aria-pressed":"true",title:"Hide Password"}}},hidden:{className:"hideShowPassword-hidden",changeEvent:"passwordHidden",props:{type:"password"},toggle:{className:"hideShowPassword-toggle-show",content:"Show",attr:{"aria-pressed":"false",title:"Show Password"}}}}};function s(e,t){this.element=o(e),this.wrapperElement=o(),this.toggleElement=o(),this.init(t)}s.prototype={init:function(e){this.update(e,t)&&(this.element.addClass(this.options.className),this.options.innerToggle&&(this.wrapElement(this.options.wrapper),this.initToggle(this.options.toggle),"string"==typeof this.options.innerToggle&&(this.toggleElement.hide(),this.element.one(this.options.innerToggle,o.proxy(function(){this.toggleElement.show()},this)))),this.element.trigger(this.options.initEvent,[this]))},update:function(e,t){return this.options=this.prepareOptions(e,t),this.updateElement()&&this.element.trigger(this.options.changeEvent,[this]).trigger(this.state().changeEvent,[this]),this.options.enable},toggle:function(e){return e=e||"toggle",this.update({show:e})},prepareOptions:function(e,t){var n,i=e||{},r=[];if(t=t||this.options,e=o.extend(!0,{},t,e),i.hasOwnProperty("wrapper")&&i.wrapper.hasOwnProperty("inheritStyles")&&(e.wrapper.inheritStyles=i.wrapper.inheritStyles),e.enable&&("toggle"===e.show?e.show=this.isType("hidden",e.states):"infer"===e.show&&(e.show=this.isType("shown",e.states)),"infer"===e.toggle.position&&(e.toggle.position="rtl"===this.element.css("text-direction")?"left":"right"),!o.isArray(e.toggle.attachToKeyCodes))){if(!0===e.toggle.attachToKeyCodes)switch((n=o(e.toggle.element)).prop("tagName").toLowerCase()){case"button":case"input":break;case"a":if(n.filter("[href]").length){r.push(32);break}default:r.push(32,13)}e.toggle.attachToKeyCodes=r}return e},updateElement:function(){return!(!this.options.enable||this.isType())&&(this.element.prop(o.extend({},this.options.props,this.state().props)).addClass(this.state().className).removeClass(this.otherState().className),this.options.triggerOnToggle&&this.element.trigger(this.options.triggerOnToggle,[this]),this.updateToggle(),!0)},isType:function(e,t){return(t=t||this.options.states)[e=e||this.state(i,i,t).props.type]&&(e=t[e].props.type),this.element.prop("type")===e},state:function(e,t,n){return n=n||this.options.states,e===i&&(e=this.options.show),"boolean"==typeof e&&(e=e?"shown":"hidden"),t&&(e="shown"===e?"hidden":"shown"),n[e]},otherState:function(e){return this.state(e,!0)},wrapElement:function(n){var e,t=n.enforceWidth;return this.wrapperElement.length||(e=this.element.outerWidth(),o.each(n.inheritStyles,o.proxy(function(e,t){n.styles[t]=this.element.css(t)},this)),this.element.css(n.innerElementStyles).wrap(o(n.element).addClass(n.className).css(n.styles)),this.wrapperElement=this.element.parent(),!0===t&&(t=this.wrapperElement.outerWidth()!==e&&e),!1!==t&&this.wrapperElement.css("width",t)),this.wrapperElement},initToggle:function(e){return this.toggleElement.length||(this.toggleElement=o(e.element).attr(e.attr).addClass(e.className).css(e.styles).appendTo(this.wrapperElement),this.updateToggle(),this.positionToggle(e.position,e.verticalAlign,e.offset),e.touchSupport?(this.toggleElement.css(e.touchStyles),this.element.on(e.attachToTouchEvent,o.proxy(this.toggleTouchEvent,this))):this.toggleElement.on(e.attachToEvent,o.proxy(this.toggleEvent,this)),e.attachToKeyCodes.length&&this.toggleElement.on(e.attachToKeyEvent,o.proxy(this.toggleKeyEvent,this))),this.toggleElement},positionToggle:function(e,t,n){var i={};switch(i[e]=n,t){case"top":case"bottom":i[t]=n;break;case"middle":i.top="50%",i.marginTop=this.toggleElement.outerHeight()/-2}return this.toggleElement.css(i)},updateToggle:function(e,t){var n,i;return this.toggleElement.length&&(n="padding-"+this.options.toggle.position,e=e||this.state().toggle,t=t||this.otherState().toggle,this.toggleElement.attr(e.attr).addClass(e.className).removeClass(t.className).html(e.content),i=this.toggleElement.outerWidth()+2*this.options.toggle.offset,this.element.css(n)!==i&&this.element.css(n,i)),this.toggleElement},toggleEvent:function(e){e.preventDefault(),this.toggle()},toggleKeyEvent:function(n){o.each(this.options.toggle.attachToKeyCodes,o.proxy(function(e,t){if(n.which===t)return this.toggleEvent(n),!1},this))},toggleTouchEvent:function(e){var t,n,i,r=this.toggleElement.offset().left;r&&(t=e.pageX||e.originalEvent.pageX,i="left"===this.options.toggle.position?(n=t,r+=this.toggleElement.outerWidth()):(n=r,t),n<=i&&this.toggleEvent(e))}},o.fn.hideShowPassword=function(){var i={};return o.each(arguments,function(e,t){var n={};if("object"==typeof t)n=t;else{if(!r[e])return!1;n[r[e]]=t}o.extend(!0,i,n)}),this.each(function(){var e=o(this),t=e.data(n);t?t.update(i):e.data(n,new s(this,i))})},o.each({show:!0,hide:!1,toggle:"toggle"},function(e,n){o.fn[e+"Password"]=function(e,t){return this.hideShowPassword(n,e,t)}})});// Carousel Home Page $("#carousel-home .owl-carousel").on("initialized.owl.carousel", function() { setTimeout(function() { $("#carousel-home .owl-carousel .owl-item.active .owl-slide-animated").addClass("is-transitioned"); $("section").show(); }, 200); }); const $owlCarousel = $("#carousel-home .owl-carousel").owlCarousel({ items: 1, loop: true, nav: false, autoplay:true, autoplayTimeout:3000, autoplayHoverPause:true, dots:true, responsive:{ 0:{ dots:false }, 767:{ dots:false }, 768:{ dots:true } } }); $owlCarousel.on("changed.owl.carousel", function(e) { $(".owl-slide-animated").removeClass("is-transitioned"); const $currentOwlItem = $(".owl-item").eq(e.item.index); $currentOwlItem.find(".owl-slide-animated").addClass("is-transitioned"); }); $owlCarousel.on("resize.owl.carousel", function() { setTimeout(function() { }, 50); }); (function ($) { "use strict"; // Lazy load var lazyLoadInstance = new LazyLoad({ elements_selector: ".lazy" }); // Jquery select $('.custom_select select').niceSelect(); // Carousel categories home page $('.categories_carousel').owlCarousel({ center: false, items: 2, loop: false, margin: 20, dots:false, nav: true, lazyLoad:true, navText: ["",""], responsive: { 0: { nav: false, dots:true, items: 1 }, 480: { nav: false, dots:true, items: 2 }, 768: { nav: false, dots:true, items: 3 }, 1025: { nav: false, dots:true, items: 4 }, 1340: { nav: true, dots:false, items: 5 } } }); // Carousel single slide $('.carousel_1').owlCarousel({ items: 1, loop: false, lazyLoad:true, margin: 0, dots:true, nav:false }); // Carousel home page $('.carousel_4').owlCarousel({ items: 4, loop: false, margin: 20, dots:false, lazyLoad:true, navText: ["",""], nav:true, responsive: { 0: { items: 1, nav: false, dots:true }, 560: { items: 2, nav: false, dots:true }, 768: { items: 2, nav: false, dots:true }, 991: { items: 3, nav: true, dots:false }, 1230: { items: 4, nav: true, dots:false } } }); // Sticky nav $(window).on('scroll', function () { if ($(this).scrollTop() > 1) { $('.element_to_stick').addClass("sticky"); } else { $('.element_to_stick').removeClass("sticky"); } }); $(window).scroll(); // Header background $('.background-image').each(function(){ $(this).css('background-image', $(this).attr('data-background')); }); // Rotate icons $(".categories_carousel .item a").hover( function(){$(this).find("i").toggleClass("rotate-x");} ); // Menu $('a.open_close').on("click", function () { $('.main-menu').toggleClass('show'); $('.layer').toggleClass('layer-is-visible'); }); $('a.show-submenu').on("click", function () { $(this).next().toggleClass("show_normal"); }); // Opacity mask $('.opacity-mask').each(function(){ $(this).css('background-color', $(this).attr('data-opacity-mask')); }); // Scroll to top var pxShow = 800; // height on which the button will show var scrollSpeed = 500; // how slow / fast you want the button to scroll to top. $(window).scroll(function(){ if($(window).scrollTop() >= pxShow){ $("#toTop").addClass('visible'); } else { $("#toTop").removeClass('visible'); } }); $('#toTop').on('click', function(){ $('html, body').animate({scrollTop:0}, scrollSpeed); return false; }); //Footer collapse var $headingFooter = $('footer h3'); $(window).resize(function() { if($(window).width() <= 768) { $headingFooter.attr("data-toggle","collapse"); } else { $headingFooter.removeAttr("data-toggle","collapse"); } }).resize(); $headingFooter.on("click", function () { $(this).toggleClass('opened'); }); // Scroll to position $('a[href^="#"].btn_scroll').on('click', function (e) { e.preventDefault(); var target = this.hash; var $target = $(target); $('html, body').stop().animate({ 'scrollTop': $target.offset().top }, 800, 'swing', function () { window.location.hash = target; }); }); // Like Icon $('.btn_hero.wishlist').on('click', function(e){ e.preventDefault(); $(this).toggleClass('liked'); }); // Modal Sign In $('#sign-in').magnificPopup({ type: 'inline', fixedContentPos: true, fixedBgPos: true, overflowY: 'auto', closeBtnInside: true, preloader: false, midClick: true, removalDelay: 300, closeMarkup: '', mainClass: 'my-mfp-zoom-in' }); // Show hide password $('#password, #password_sign').hidePassword('focus', { toggle: { className: 'my-toggle' } }); })(window.jQuery); /* ') .attr('disabled', 'disabled'); $.post(action, { email_newsletter: $('#email_newsletter').val() }, function (data) { document.getElementById('message-newsletter').innerHTML = data; $('#message-newsletter').slideDown('slow'); $('#newsletter_form .loader').fadeOut('slow', function () { $(this).remove() }); $('#submit-newsletter').removeAttr('disabled'); if (data.match('success') != null) $('#newsletter_form').slideUp('slow'); } ); }); return false; }); // Jquery validate form register $('#register').submit(function(){ var action = $(this).attr('action'); $("#message-register").slideUp(750,function() { $('#message-register').hide(); $('#submit-register') .after('') .attr('disabled','disabled'); $.post(action, { name_register: $('#name_register').val(), email_register: $('#email_register').val(), restaurantname_register: $('#restaurantname_register').val(), address_register: $('#address_register').val(), city_register: $('#city_register').val(), country_register: $('#country_register').val(), verify_register: $('#verify_register').val() }, function(data){ document.getElementById('message-register').innerHTML = data; $('#message-register').slideDown('slow'); $('#register .loader').fadeOut('slow',function(){$(this).remove()}); $('#submit-register').removeAttr('disabled'); if(data.match('success') != null) $('#register').slideUp('slow'); } ); }); return false; }); // Jquery validate form contact $('#contactform').submit(function () { var action = $(this).attr('action'); $("#message-contact").slideUp(750, function () { $('#message-contact').hide(); $('#submit-contact') .after('') .attr('disabled', 'disabled'); $.post(action, { name_contact: $('#name_contact').val(), email_contact: $('#email_contact').val(), message_contact: $('#message_contact').val(), verify_contact: $('#verify_contact').val() }, function (data) { document.getElementById('message-contact').innerHTML = data; $('#message-contact').slideDown('slow'); $('#contactform .loader').fadeOut('slow', function () { $(this).remove() }); $('#submit-contact').removeAttr('disabled'); if (data.match('success') != null) $('#contactform').slideUp('slow'); } ); }); return false; }); /* ]]> */