!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="1.12.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?a<0?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;try{if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(!l.ownFirst)for(b in a)return k.call(a,b);for(b in a);return void 0===b||k.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?i[j.call(a)]||"object":typeof a},globalEval:function(b){b&&n.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;d0&&b-1 in a)}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=fa(),z=fa(),A=fa(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;c+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:d<0?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(xa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ea(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+pa(r[h]);s=r.join(","),w=_.test(a)&&na(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function fa(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ga(a){return a[u]=!0,a}function ha(a){var b=n.createElement("div");try{return!!a(b)}catch(xa){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ia(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ja(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ka(a){return function(b){return"input"===b.nodeName.toLowerCase()&&b.type===a}}function la(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function ma(a){return ga(function(b){return b=+b,ga(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function na(a){return a&&void 0!==a.getElementsByTagName&&a}c=ea.support={},f=ea.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ea.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ha(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ha(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ha(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if(void 0!==b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c=void 0!==a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return void 0!==b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){if(void 0!==b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ha(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ha(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ha(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d||(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ja(a,b);c=a;while(c=c.parentNode)g.unshift(c);c=b;while(c=c.parentNode)h.unshift(c);while(g[d]===h[d])d++;return d?ja(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ea.matches=function(a,b){return ea(a,null,null,b)},ea.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(xa){}return ea(b,n,null,[a]).length>0},ea.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ea.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ea.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ea.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ea.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ea.selectors={cacheLength:50,createPseudo:ga,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ea.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ea.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||void 0!==a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ea.attr(d,a);return null==e?"!="===b:!b||(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b&&(e===c||e.slice(0,c.length+1)===c+"-"))}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h,t=!1;if(q){if(f){while(p){m=b;while(m=m[p])if(h?m.nodeName.toLowerCase()===r:1===m.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){m=q,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n&&j[2],m=n&&q.childNodes[n];while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if(1===m.nodeType&&++t&&m===b){k[a]=[w,n,t];break}}else if(s&&(m=b,l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),j=k[a]||[],n=j[0]===w&&j[1],t=n),!1===t)while(m=++n&&m&&m[p]||(t=n=0)||o.pop())if((h?m.nodeName.toLowerCase()===r:1===m.nodeType)&&++t&&(s&&(l=m[u]||(m[u]={}),k=l[m.uniqueID]||(l[m.uniqueID]={}),k[a]=[w,t]),m===b))break;return(t-=e)===d||t%d==0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ea.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ga(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ga(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ga(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ga(function(a){return function(b){return ea(a,b).length>0}}),contains:ga(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ga(function(a){return V.test(a||"")||ea.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do{if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return(c=c.toLowerCase())===a||0===c.indexOf(a+"-")}while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return!1===a.disabled},disabled:function(a){return!0===a.disabled},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,!0===a.selected},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Y.test(a.nodeName)},input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:ma(function(){return[0]}),last:ma(function(a,b){return[b-1]}),eq:ma(function(a,b,c){return[c<0?c+b:c]}),even:ma(function(a,b){for(var c=0;c=0;)a.push(d);return a}),gt:ma(function(a,b,c){for(var d=c<0?c+b:c;++d1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function sa(a,b,c){for(var d=0,e=b.length;d-1&&(f[j]=!(g[j]=l))}}else r=ta(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function va(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=qa(function(a){return a===b},h,!0),l=qa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];i1&&ra(m),i>1&&pa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,i0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ta(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ea.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ga(f):f}return h=ea.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=va(b[c]),f[u]?d.push(f):e.push(f);f=A(a,wa(e,d)),f.selector=a}return f},i=ea.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(!(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0]))return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&na(b.parentNode)||b))){if(j.splice(i,1),!(a=f.length&&pa(j)))return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&na(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ha(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ha(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ia("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ha(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ia("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ha(function(a){return null==a.getAttribute("disabled")})||ia(K,function(a,b,c){var d;if(!c)return!0===a[b]?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ea}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return n.inArray(a,b)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;b1?n.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(!(e="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:B.exec(a))||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}if((f=d.getElementById(e[2]))&&f.parentNode){if(f.id!==e[2])return A.find(a);this.length=1,this[0]=f}return this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))}).prototype=n.fn,A=n(d);var C=/^(?:parents|prev(?:Until|All))/,D={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b,c=n(a,this),d=c.length;return this.filter(function(){for(b=0;b-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?n.inArray(this[0],n(a)):n.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function E(a,b){do{a=a[b]}while(a&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return E(a,"nextSibling")},prev:function(a){return E(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return n.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(D[a]||(e=n.uniqueSort(e)),C.test(a)&&(e=e.reverse())),this.pushStack(e)}});var F=/\S+/g;function G(a){var b={};return n.each(a.match(F)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?G(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=!0,c||j.disable(),this},locked:function(){return!!e},fireWith:function(a,c){return e||(c=c||[],c=[a,c.slice?c.slice():c],g.push(c),b||i()),this},fire:function(){return j.fireWith(this,arguments),this},fired:function(){return!!d}};return j},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);b0||(H.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function I(){d.addEventListener?(d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J)):(d.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(d.addEventListener||"load"===a.event.type||"complete"===d.readyState)&&(I(),n.ready())}n.ready.promise=function(b){if(!H)if(H=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll)a.setTimeout(n.ready);else if(d.addEventListener)d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J);else{d.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&d.documentElement}catch(e){}c&&c.doScroll&&function b(){if(!n.isReady){try{c.doScroll("left")}catch(e){return a.setTimeout(b,50)}I(),n.ready()}}()}return H.promise(b)},n.ready.promise();var K;for(K in n(l))break;l.ownFirst="0"===K,l.inlineBlockNeedsLayout=!1,n(function(){var a,b,c,e;(c=d.getElementsByTagName("body")[0])&&c.style&&(b=d.createElement("div"),e=d.createElement("div"),e.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(e).appendChild(b),void 0!==b.style.zoom&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",l.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(e))}),function(){var a=d.createElement("div");l.deleteExpando=!0;try{delete a.test}catch(b){l.deleteExpando=!1}a=null}();var L=function(a){var b=n.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return(1===c||9===c)&&(!b||!0!==b&&a.getAttribute("classid")===b)},M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if("string"==typeof(c=a.getAttribute(d))){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:M.test(c)?n.parseJSON(c):c)}catch(e){}n.data(a,b,c)}else c=void 0}return c}function P(a){var b ;for(b in a)if(("data"!==b||!n.isEmptyObject(a[b]))&&"toJSON"!==b)return!1;return!0}function Q(a,b,d,e){if(L(a)){var f,g,h=n.expando,i=a.nodeType,j=i?n.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||n.guid++:h),j[k]||(j[k]=i?{}:{toJSON:n.noop}),"object"!=typeof b&&"function"!=typeof b||(e?j[k]=n.extend(j[k],b):j[k].data=n.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[n.camelCase(b)]=d),"string"==typeof b?null==(f=g[b])&&(f=g[n.camelCase(b)]):f=g,f}}function R(a,b,c){if(L(a)){var d,e,f=a.nodeType,g=f?n.cache:a,h=f?a[n.expando]:n.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){n.isArray(b)?b=b.concat(n.map(b,n.camelCase)):b in d?b=[b]:(b=n.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!n.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?n.cleanData([a],!0):l.deleteExpando||g!=g.window?delete g[h]:g[h]=void 0)}}}n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return!!(a=a.nodeType?n.cache[a[n.expando]]:a[n.expando])&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=n.data(f),1===f.nodeType&&!n._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),O(f,d,e[d])));n._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){n.data(this,a)}):arguments.length>1?this.each(function(){n.data(this,a,b)}):f?O(f,a,n.data(f,a)):void 0},removeData:function(a){return this.each(function(){n.removeData(this,a)})}}),n.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=n._data(a,b),c&&(!d||n.isArray(c)?d=n._data(a,b,n.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return n._data(a,c)||n._data(a,c,{empty:n.Callbacks("once memory").add(function(){n._removeData(a,b+"queue"),n._removeData(a,c)})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length
a",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="",l.noCloneChecked=!!a.cloneNode(!0).lastChild.defaultValue,b.appendChild(a),c=d.createElement("input"),c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),a.appendChild(c),l.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,l.noCloneEvent=!!a.addEventListener,a[n.expando]=1,l.attributes=!a.getAttribute(n.expando)}();var ca={option:[1,""],legend:[1,"
","
"],area:[1,"",""],param:[1,"",""],thead:[1,"","
"],tr:[2,"","
"],col:[2,"","
"],td:[3,"","
"],_default:l.htmlSerialize?[0,"",""]:[1,"X
","
"]};ca.optgroup=ca.option,ca.tbody=ca.tfoot=ca.colgroup=ca.caption=ca.thead,ca.th=ca.td;function da(a,b){var c,d,e=0,f=void 0!==a.getElementsByTagName?a.getElementsByTagName(b||"*"):void 0!==a.querySelectorAll?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||n.nodeName(d,b)?f.push(d):n.merge(f,da(d,b));return void 0===b||b&&n.nodeName(a,b)?n.merge([a],f):f}function ea(a,b){for(var c,d=0;null!=(c=a[d]);d++)n._data(c,"globalEval",!b||n._data(b[d],"globalEval"))}var fa=/<|&#?\w+;/,ga=/"!==m[1]||ga.test(g)?0:i:i.firstChild,f=g&&g.childNodes.length;while(f--)n.nodeName(k=g.childNodes[f],"tbody")&&!k.childNodes.length&&g.removeChild(k)}n.merge(q,i.childNodes),i.textContent="";while(i.firstChild)i.removeChild(i.firstChild);i=p.lastChild}else q.push(b.createTextNode(g));i&&p.removeChild(i),l.appendChecked||n.grep(da(q,"input"),ha),r=0;while(g=q[r++])if(d&&n.inArray(g,d)>-1)e&&e.push(g);else if(h=n.contains(g.ownerDocument,g),i=da(p.appendChild(g),"script"),h&&ea(i),c){f=0;while(g=i[f++])$.test(g.type||"")&&c.push(g)}return i=null,p}!function(){var b,c,e=d.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(l[b]=c in a)||(e.setAttribute(c,"t"),l[b]=!1===e.attributes[c].expando);e=null}();var ja=/^(?:input|select|textarea)$/i,ka=/^key/,la=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ma=/^(?:focusinfocus|focusoutblur)$/,na=/^([^.]*)(?:\.(.+)|)/;function oa(){return!0}function pa(){return!1}function qa(){try{return d.activeElement}catch(a){}}function ra(a,b,c,d,e,f){var g,h;if("object"==typeof b){"string"!=typeof c&&(d=d||c,c=void 0);for(h in b)ra(a,h,c,d,b[h],f);return a}if(null==d&&null==e?(e=c,d=c=void 0):null==e&&("string"==typeof c?(e=d,d=void 0):(e=d,d=c,c=void 0)),!1===e)e=pa;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=n.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return void 0===n||a&&n.event.triggered===a.type?void 0:n.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(F)||[""],h=b.length;while(h--)f=na.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=n.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=n.event.special[o]||{},l=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},i),(m=g[o])||(m=g[o]=[],m.delegateCount=0,j.setup&&!1!==j.setup.call(a,d,p,k)||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,l):m.push(l),n.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=n.hasData(a)&&n._data(a);if(r&&(k=r.events)){b=(b||"").match(F)||[""],j=b.length;while(j--)if(h=na.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=m.length;while(f--)g=m[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(m.splice(f,1),g.selector&&m.delegateCount--,l.remove&&l.remove.call(a,g));i&&!m.length&&(l.teardown&&!1!==l.teardown.call(a,p,r.handle)||n.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(k)&&(delete r.handle,n._removeData(a,"events"))}},trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(i=m=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ma.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),h=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),l=n.event.special[q]||{},f||!l.trigger||!1!==l.trigger.apply(e,c))){if(!f&&!l.noBubble&&!n.isWindow(e)){for(j=l.delegateType||q,ma.test(j+q)||(i=i.parentNode);i;i=i.parentNode)p.push(i),m=i;m===(e.ownerDocument||d)&&p.push(m.defaultView||m.parentWindow||a)}o=0;while((i=p[o++])&&!b.isPropagationStopped())b.type=o>1?j:l.bindType||q,g=(n._data(i,"events")||{})[b.type]&&n._data(i,"handle"),g&&g.apply(i,c),(g=h&&i[h])&&g.apply&&L(i)&&(b.result=g.apply(i,c),!1===b.result&&b.preventDefault());if(b.type=q,!f&&!b.isDefaultPrevented()&&(!l._default||!1===l._default.apply(p.pop(),c))&&L(e)&&h&&e[q]&&!n.isWindow(e)){m=e[h],m&&(e[h]=null),n.event.triggered=q;try{e[q]()}catch(s){}n.event.triggered=void 0,m&&(e[h]=m)}return b.result}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(n._data(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||!1!==k.preDispatch.call(this,a)){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,void 0!==(d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i))&&!1===(a.result=d)&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(!0!==i.disabled||"click"!==a.type)){for(d=[],c=0;c-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h]","i"),ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,va=/\s*$/g,za=ba(d),Aa=za.appendChild(d.createElement("div"));function Ba(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function Ca(a){return a.type=(null!==n.find.attr(a,"type"))+"/"+a.type,a}function Da(a){var b=xa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Ea(a,b){if(1===b.nodeType&&n.hasData(a)){var c,d,e,f=n._data(a),g=n._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;d1&&"string"==typeof q&&!l.checkClone&&wa.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),Ga(f,b,c,d)});if(o&&(k=ia(b,a[0].ownerDocument,!1,a,d),e=k.firstChild,1===k.childNodes.length&&(k=e),e||d)){for(i=n.map(da(k,"script"),Ca),h=i.length;m")},clone:function(a,b,c){var d,e,f,g,h,i=n.contains(a.ownerDocument,a);if(l.html5Clone||n.isXMLDoc(a)||!ta.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(Aa.innerHTML=a.outerHTML,Aa.removeChild(f=Aa.firstChild)),!(l.noCloneEvent&&l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(d=da(f),h=da(a),g=0;null!=(e=h[g]);++g)d[g]&&Fa(e,d[g]);if(b)if(c)for(h=h||da(a),d=d||da(f),g=0;null!=(e=h[g]);g++)Ea(e,d[g]);else Ea(a,f);return d=da(f,"script"),d.length>0&&ea(d,!i&&da(a,"script")),d=h=e=null,f},cleanData:function(a,b){for(var d,e,f,g,h=0,i=n.expando,j=n.cache,k=l.attributes,m=n.event.special;null!=(d=a[h]);h++)if((b||L(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)m[e]?n.event.remove(d,e):n.removeEvent(d,e,g.handle);j[f]&&(delete j[f],k||void 0===d.removeAttribute?d[i]=void 0:d.removeAttribute(i),c.push(f))}}}),n.fn.extend({domManip:Ga,detach:function(a){return Ha(this,a,!0)},remove:function(a){return Ha(this,a)},text:function(a){return X(this,function(a){return void 0===a?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||d).createTextNode(a))},null,a,arguments.length)},append:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){Ba(this,a).appendChild(a)}})},prepend:function(){return Ga(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ba(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ga(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&n.cleanData(da(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&n.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return X(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(sa,""):void 0;if("string"==typeof a&&!va.test(a)&&(l.htmlSerialize||!ta.test(a))&&(l.leadingWhitespace||!_.test(a))&&!ca[(Z.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;c")).appendTo(b.documentElement),b=(Ia[0].contentWindow||Ia[0].contentDocument).document,b.write(),b.close(),c=Ka(a,b),Ia.detach()),Ja[a]=c),c}var Ma=/^margin/,Na=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Oa=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e},Pa=d.documentElement;!function(){var b,c,e,f,g,h,i=d.createElement("div"),j=d.createElement("div");function k(){var k,l,m=d.documentElement;m.appendChild(i),j.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",b=e=h=!1,c=g=!0,a.getComputedStyle&&(l=a.getComputedStyle(j),b="1%"!==(l||{}).top,h="2px"===(l||{}).marginLeft,e="4px"===(l||{width:"4px"}).width,j.style.marginRight="50%",c="4px"===(l||{marginRight:"4px"}).marginRight,k=j.appendChild(d.createElement("div")),k.style.cssText=j.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",k.style.marginRight=k.style.width="0",j.style.width="1px",g=!parseFloat((a.getComputedStyle(k)||{}).marginRight),j.removeChild(k)),j.style.display="none",f=0===j.getClientRects().length,f&&(j.style.display="",j.innerHTML="
t
",j.childNodes[0].style.borderCollapse="separate",k=j.getElementsByTagName("td"),k[0].style.cssText="margin:0;border:0;padding:0;display:none",(f=0===k[0].offsetHeight)&&(k[0].style.display="",k[1].style.display="none",f=0===k[0].offsetHeight)),m.removeChild(i)}j.style&&(j.style.cssText="float:left;opacity:.5",l.opacity="0.5"===j.style.opacity,l.cssFloat=!!j.style.cssFloat,j.style.backgroundClip="content-box",j.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===j.style.backgroundClip,i=d.createElement("div"),i.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",j.innerHTML="",i.appendChild(j),l.boxSizing=""===j.style.boxSizing||""===j.style.MozBoxSizing||""===j.style.WebkitBoxSizing,n.extend(l,{reliableHiddenOffsets:function(){return null==b&&k(),f},boxSizingReliable:function(){return null==b&&k(),e},pixelMarginRight:function(){return null==b&&k(),c},pixelPosition:function(){return null==b&&k(),b},reliableMarginRight:function(){return null==b&&k(),g},reliableMarginLeft:function(){return null==b&&k(),h}}))}();var Qa,Ra,Sa=/^(top|right|bottom|left)$/;a.getComputedStyle?(Qa=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Na.test(g)&&Ma.test(b)&&(d=h.width,e=h.minWidth,f=h.maxWidth,h.minWidth=h.maxWidth=h.width=g,g=c.width,h.width=d,h.minWidth=e,h.maxWidth=f),void 0===g?g:g+""}):Pa.currentStyle&&(Qa=function(a){return a.currentStyle},Ra=function(a,b,c){var d,e,f,g,h=a.style;return c=c||Qa(a),g=c?c[b]:void 0,null==g&&h&&h[b]&&(g=h[b]),Na.test(g)&&!Sa.test(b)&&(d=h.left,e=a.runtimeStyle,f=e&&e.left,f&&(e.left=a.currentStyle.left),h.left="fontSize"===b?"1em":g,g=h.pixelLeft+"px",h.left=d,f&&(e.left=f)),void 0===g?g:g+""||"auto"});function Ta(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ua=/alpha\([^)]*\)/i,Va=/opacity\s*=\s*([^)]*)/i,Wa=/^(none|table(?!-c[ea]).+)/,Xa=new RegExp("^("+S+")(.*)$","i"),Ya={position:"absolute",visibility:"hidden",display:"block"},Za={letterSpacing:"0",fontWeight:"400"},$a=["Webkit","O","Moz","ms"],_a=d.createElement("div").style;function ab(a){if(a in _a)return a;var b=a.charAt(0).toUpperCase()+a.slice(1),c=$a.length;while(c--)if((a=$a[c]+b)in _a)return a}function bb(a,b){for(var c,d,e,f=[],g=0,h=a.length;g=1||""===b)&&""===n.trim(f.replace(Ua,""))&&c.removeAttribute&&(c.removeAttribute("filter"),""===b||d&&!d.filter)||(c.filter=Ua.test(f)?f.replace(Ua,e):f+" "+e)}}),n.cssHooks.marginRight=Ta(l.reliableMarginRight,function(a,b){if(b)return Oa(a,{display:"inline-block"},Ra,[a,"marginRight"])}),n.cssHooks.marginLeft=Ta(l.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Ra(a,"marginLeft"))||(n.contains(a.ownerDocument,a)?a.getBoundingClientRect().left-Oa(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}):0))+"px"}),n.each({ margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Ma.test(a)||(n.cssHooks[a+b].set=cb)}),n.fn.extend({css:function(a,b){return X(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Qa(a),e=b.length;g1)},show:function(){return bb(this,!0)},hide:function(){return bb(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function fb(a,b,c,d,e){return new fb.prototype.init(a,b,c,d,e)}n.Tween=fb,fb.prototype={constructor:fb,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=fb.propHooks[this.prop];return a&&a.get?a.get(this):fb.propHooks._default.get(this)},run:function(a){var b,c=fb.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):fb.propHooks._default.set(this),this}},fb.prototype.init.prototype=fb.prototype,fb.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},fb.propHooks.scrollTop=fb.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=fb.prototype.init,n.fx.step={};var gb,hb,ib=/^(?:toggle|show|hide)$/,jb=/queueHooks$/;function kb(){return a.setTimeout(function(){gb=void 0}),gb=n.now()}function lb(a,b){var c,d={height:a},e=0;for(b=b?1:0;e<4;e+=2-b)c=U[e],d["margin"+c]=d["padding"+c]=a;return b&&(d.opacity=d.width=a),d}function mb(a,b,c){for(var d,e=(pb.tweeners[b]||[]).concat(pb.tweeners["*"]),f=0,g=e.length;f
a",a=c.getElementsByTagName("a")[0],b.setAttribute("type","checkbox"),c.appendChild(b),a=c.getElementsByTagName("a")[0],a.style.cssText="top:1px",l.getSetAttribute="t"!==c.className,l.style=/top/.test(a.getAttribute("style")),l.hrefNormalized="/a"===a.getAttribute("href"),l.checkOn=!!b.value,l.optSelected=f.selected,l.enctype=!!d.createElement("form").enctype,e.disabled=!0,l.optDisabled=!f.disabled,b=d.createElement("input"),b.setAttribute("value",""),l.input=""===b.getAttribute("value"),b.value="t",b.setAttribute("type","radio"),l.radioValue="t"===b.value}();var qb=/\r/g,rb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),(b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()])&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return(b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()])&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(qb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(rb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||e<0,g=f?null:[],h=f?e+1:d.length,i=e<0?h:f?e:0;i-1)try{d.selected=c=!0}catch(h){d.scrollHeight}else d.selected=!1;return c||(a.selectedIndex=-1),e}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){if(n.isArray(b))return a.checked=n.inArray(n(a).val(),b)>-1}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb,tb,ub=n.expr.attrHandle,vb=/^(?:checked|selected)$/i,wb=l.getSetAttribute,xb=l.input;n.fn.extend({attr:function(a,b){return X(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return void 0===a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?tb:sb)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(F);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)?xb&&wb||!vb.test(c)?a[d]=!1:a[n.camelCase("default-"+c)]=a[d]=!1:n.attr(a,c,""),a.removeAttribute(wb?c:d)}}),tb={set:function(a,b,c){return!1===b?n.removeAttr(a,c):xb&&wb||!vb.test(c)?a.setAttribute(!wb&&n.propFix[c]||c,c):a[n.camelCase("default-"+c)]=a[c]=!0,c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ub[b]||n.find.attr;xb&&wb||!vb.test(b)?ub[b]=function(a,b,d){var e,f;return d||(f=ub[b],ub[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,ub[b]=f),e}:ub[b]=function(a,b,c){if(!c)return a[n.camelCase("default-"+b)]?b.toLowerCase():null}}),xb&&wb||(n.attrHooks.value={set:function(a,b,c){if(!n.nodeName(a,"input"))return sb&&sb.set(a,b,c);a.defaultValue=b}}),wb||(sb={set:function(a,b,c){var d=a.getAttributeNode(c);if(d||a.setAttributeNode(d=a.ownerDocument.createAttribute(c)),d.value=b+="","value"===c||b===a.getAttribute(c))return b}},ub.id=ub.name=ub.coords=function(a,b,c){var d;if(!c)return(d=a.getAttributeNode(b))&&""!==d.value?d.value:null},n.valHooks.button={get:function(a,b){var c=a.getAttributeNode(b);if(c&&c.specified)return c.value},set:sb.set},n.attrHooks.contenteditable={set:function(a,b,c){sb.set(a,""!==b&&b,c)}},n.each(["width","height"],function(a,b){n.attrHooks[b]={set:function(a,c){if(""===c)return a.setAttribute(b,"auto"),c}}})),l.style||(n.attrHooks.style={get:function(a){return a.style.cssText||void 0},set:function(a,b){return a.style.cssText=b+""}});var yb=/^(?:input|select|textarea|button|object)$/i,zb=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return X(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return a=n.propFix[a]||a,this.each(function(){try{this[a]=void 0,delete this[a]}catch(b){}})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):yb.test(a.nodeName)||zb.test(a.nodeName)&&a.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),l.hrefNormalized||n.each(["href","src"],function(a,b){n.propHooks[b]={get:function(a){return a.getAttribute(b,4)}}}),l.optSelected||(n.propHooks.selected={get:function(a){var b=a.parentNode;return b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex),null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),l.enctype||(n.propFix.enctype="encoding");var Ab=/[\t\r\n\f]/g;function Bb(a){return n.attr(a,"class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,Bb(this)))});if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,Bb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(F)||[];while(c=this[i++])if(e=Bb(c),d=1===c.nodeType&&(" "+e+" ").replace(Ab," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.trim(d),e!==h&&n.attr(c,"class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,Bb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(F)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=Bb(this),b&&n._data(this,"__className__",b),n.attr(this,"class",b||!1===a?"":n._data(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+Bb(c)+" ").replace(Ab," ").indexOf(b)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Cb=a.location,Db=n.now(),Eb=/\?/,Fb=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(b){if(a.JSON&&a.JSON.parse)return a.JSON.parse(b+"");var c,d=null,e=n.trim(b+"");return e&&!n.trim(e.replace(Fb,function(a,b,e,f){return c&&b&&(d=0),0===d?a:(c=e||b,d+=!f-!e,"")}))?Function("return "+e)():n.error("Invalid JSON: "+b)},n.parseXML=function(b){var c,d;if(!b||"string"!=typeof b)return null;try{a.DOMParser?(d=new a.DOMParser,c=d.parseFromString(b,"text/xml")):(c=new a.ActiveXObject("Microsoft.XMLDOM"),c.async="false",c.loadXML(b))}catch(e){c=void 0}return c&&c.documentElement&&!c.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+b),c};var Gb=/#.*$/,Hb=/([?&])_=[^&]*/,Ib=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Jb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kb=/^(?:GET|HEAD)$/,Lb=/^\/\//,Mb=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Nb={},Ob={},Pb="*/".concat("*"),Qb=Cb.href,Rb=Mb.exec(Qb.toLowerCase())||[];function Sb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(F)||[];if(n.isFunction(c))while(d=f[e++])"+"===d.charAt(0)?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Tb(a,b,c,d){var e={},f=a===Ob;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function Ub(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(d in b)void 0!==b[d]&&((e[d]?a:c||(c={}))[d]=b[d]);return c&&n.extend(!0,a,c),a}function Vb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===e&&(e=a.mimeType||b.getResponseHeader("Content-Type"));if(e)for(g in h)if(h[g]&&h[g].test(e)){i.unshift(g);break}if(i[0]in c)f=i[0];else{for(g in c){if(!i[0]||a.converters[g+" "+i[0]]){f=g;break}d||(d=g)}f=f||d}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Wb(a,b,c,d){var e,f,g,h,i,j={},k=a.dataTypes.slice();if(k[1])for(g in a.converters)j[g.toLowerCase()]=a.converters[g];f=k.shift();while(f)if(a.responseFields[f]&&(c[a.responseFields[f]]=b),!i&&d&&a.dataFilter&&(b=a.dataFilter(b,a.dataType)),i=f,f=k.shift())if("*"===f)f=i;else if("*"!==i&&i!==f){if(!(g=j[i+" "+f]||j["* "+f]))for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){!0===g?g=j[e]:!0!==j[e]&&(f=h[0],k.unshift(h[1]));break}if(!0!==g)if(g&&a.throws)b=g(b);else try{b=g(b)}catch(l){return{state:"parsererror",error:g?l:"No conversion from "+i+" to "+f}}}return{state:"success",data:b}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Qb,type:"GET",isLocal:Jb.test(Rb[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Pb,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Ub(Ub(a,n.ajaxSettings),b):Ub(n.ajaxSettings,a)},ajaxPrefilter:Sb(Nb),ajaxTransport:Sb(Ob),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var d,e,f,g,h,i,j,k,l=n.ajaxSetup({},c),m=l.context||l,o=l.context&&(m.nodeType||m.jquery)?n(m):n.event,p=n.Deferred(),q=n.Callbacks("once memory"),r=l.statusCode||{},s={},t={},u=0,v="canceled",w={readyState:0,getResponseHeader:function(a){var b;if(2===u){if(!k){k={};while(b=Ib.exec(g))k[b[1].toLowerCase()]=b[2]}b=k[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===u?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return u||(a=t[c]=t[c]||a,s[a]=b),this},overrideMimeType:function(a){return u||(l.mimeType=a),this},statusCode:function(a){var b;if(a)if(u<2)for(b in a)r[b]=[r[b],a[b]];else w.always(a[w.status]);return this},abort:function(a){var b=a||v;return j&&j.abort(b),x(0,b),this}};if(p.promise(w).complete=q.add,w.success=w.done,w.error=w.fail,l.url=((b||l.url||Qb)+"").replace(Gb,"").replace(Lb,Rb[1]+"//"),l.type=c.method||c.type||l.method||l.type,l.dataTypes=n.trim(l.dataType||"*").toLowerCase().match(F)||[""],null==l.crossDomain&&(d=Mb.exec(l.url.toLowerCase()),l.crossDomain=!(!d||d[1]===Rb[1]&&d[2]===Rb[2]&&(d[3]||("http:"===d[1]?"80":"443"))===(Rb[3]||("http:"===Rb[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=n.param(l.data,l.traditional)),Tb(Nb,l,c,w),2===u)return w;i=n.event&&l.global,i&&0==n.active++&&n.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!Kb.test(l.type),f=l.url,l.hasContent||(l.data&&(f=l.url+=(Eb.test(f)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=Hb.test(f)?f.replace(Hb,"$1_="+Db++):f+(Eb.test(f)?"&":"?")+"_="+Db++)),l.ifModified&&(n.lastModified[f]&&w.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&w.setRequestHeader("If-None-Match",n.etag[f])),(l.data&&l.hasContent&&!1!==l.contentType||c.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+Pb+"; q=0.01":""):l.accepts["*"]);for(e in l.headers)w.setRequestHeader(e,l.headers[e]);if(l.beforeSend&&(!1===l.beforeSend.call(m,w,l)||2===u))return w.abort();v="abort";for(e in{success:1,error:1,complete:1})w[e](l[e]);if(j=Tb(Ob,l,c,w)){if(w.readyState=1,i&&o.trigger("ajaxSend",[w,l]),2===u)return w;l.async&&l.timeout>0&&(h=a.setTimeout(function(){w.abort("timeout")},l.timeout));try{u=1,j.send(s,x)}catch(y){if(!(u<2))throw y;x(-1,y)}}else x(-1,"No Transport");function x(b,c,d,e){var k,s,t,v,x,y=c;2!==u&&(u=2,h&&a.clearTimeout(h),j=void 0,g=e||"",w.readyState=b>0?4:0,k=b>=200&&b<300||304===b,d&&(v=Vb(l,w,d)),v=Wb(l,v,w,k),k?(l.ifModified&&(x=w.getResponseHeader("Last-Modified"),x&&(n.lastModified[f]=x),(x=w.getResponseHeader("etag"))&&(n.etag[f]=x)),204===b||"HEAD"===l.type?y="nocontent":304===b?y="notmodified":(y=v.state,s=v.data,t=v.error,k=!t)):(t=y,!b&&y||(y="error",b<0&&(b=0))),w.status=b,w.statusText=(c||y)+"",k?p.resolveWith(m,[s,y,w]):p.rejectWith(m,[w,y,t]),w.statusCode(r),r=void 0,i&&o.trigger(k?"ajaxSuccess":"ajaxError",[w,l,k?s:t]),q.fireWith(m,[w,y]),i&&(o.trigger("ajaxComplete",[w,l]),--n.active||n.event.trigger("ajaxStop")))}return w},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},n.fn.extend({wrapAll:function(a){if(n.isFunction(a))return this.each(function(b){n(this).wrapAll(a.call(this,b))});if(this[0]){var b=n(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&1===a.firstChild.nodeType)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function Xb(a){return a.style&&a.style.display||n.css(a,"display")}function Yb(a){if(!n.contains(a.ownerDocument||d,a))return!0;while(a&&1===a.nodeType){if("none"===Xb(a)||"hidden"===a.type)return!0;a=a.parentNode}return!1}n.expr.filters.hidden=function(a){return l.reliableHiddenOffsets()?a.offsetWidth<=0&&a.offsetHeight<=0&&!a.getClientRects().length:Yb(a)},n.expr.filters.visible=function(a){return!n.expr.filters.hidden(a)};var Zb=/%20/g,$b=/\[\]$/,_b=/\r?\n/g,ac=/^(?:submit|button|image|reset|file)$/i,bc=/^(?:input|select|textarea|keygen)/i;function cc(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||$b.test(a)?d(a,e):cc(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)cc(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)cc(c,a[c],b,e);return d.join("&").replace(Zb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&bc.test(this.nodeName)&&!ac.test(a)&&(this.checked||!Y.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(_b,"\r\n")}}):{name:b.name,value:c.replace(_b,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==a.ActiveXObject?function(){return this.isLocal?hc():d.documentMode>8?gc():/^(get|post|head|put|delete|options)$/i.test(this.type)&&gc()||hc()}:gc;var dc=0,ec={},fc=n.ajaxSettings.xhr();a.attachEvent&&a.attachEvent("onunload",function(){for(var a in ec)ec[a](void 0,!0)}),l.cors=!!fc&&"withCredentials"in fc,(fc=l.ajax=!!fc)&&n.ajaxTransport(function(b){if(!b.crossDomain||l.cors){var c;return{send:function(d,e){var f,g=b.xhr(),h=++dc;if(g.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(f in b.xhrFields)g[f]=b.xhrFields[f];b.mimeType&&g.overrideMimeType&&g.overrideMimeType(b.mimeType),b.crossDomain||d["X-Requested-With"]||(d["X-Requested-With"]="XMLHttpRequest");for(f in d)void 0!==d[f]&&g.setRequestHeader(f,d[f]+"");g.send(b.hasContent&&b.data||null),c=function(a,d){var f,i,j;if(c&&(d||4===g.readyState))if(delete ec[h],c=void 0,g.onreadystatechange=n.noop,d)4!==g.readyState&&g.abort();else{j={},f=g.status,"string"==typeof g.responseText&&(j.text=g.responseText);try{i=g.statusText}catch(k){i=""}f||!b.isLocal||b.crossDomain?1223===f&&(f=204):f=j.text?200:404}j&&e(f,i,j,g.getAllResponseHeaders())},b.async?4===g.readyState?a.setTimeout(c):g.onreadystatechange=ec[h]=c:c()},abort:function(){c&&c(void 0,!0)}}}});function gc(){try{return new a.XMLHttpRequest}catch(b){}}function hc(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c=d.head||n("head")[0]||d.documentElement;return{send:function(e,f){b=d.createElement("script"),b.async=!0,a.scriptCharset&&(b.charset=a.scriptCharset),b.src=a.url,b.onload=b.onreadystatechange=function(a,c){(c||!b.readyState||/loaded|complete/.test(b.readyState))&&(b.onload=b.onreadystatechange=null,b.parentNode&&b.parentNode.removeChild(b),b=null,c||f(200,"success"))},c.insertBefore(b,c.firstChild)},abort:function(){b&&b.onload(void 0,!0)}}}});var ic=[],jc=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=ic.pop()||n.expando+"_"+Db++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=!1!==b.jsonp&&(jc.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&jc.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(jc,"$1"+e):!1!==b.jsonp&&(b.url+=(Eb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,ic.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ia([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var kc=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&kc)return kc.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h,a.length)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("
").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function lc(a){return n.isWindow(a)?a:9===a.nodeType&&(a.defaultView||a.parentWindow)}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&n.inArray("auto",[f,i])>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d={top:0,left:0},e=this[0],f=e&&e.ownerDocument;if(f)return b=f.documentElement,n.contains(b,e)?(void 0!==e.getBoundingClientRect&&(d=e.getBoundingClientRect()),c=lc(f),{top:d.top+(c.pageYOffset||b.scrollTop)-(b.clientTop||0),left:d.left+(c.pageXOffset||b.scrollLeft)-(b.clientLeft||0)}):d},position:function(){if(this[0]){var a,b,c={top:0,left:0},d=this[0];return"fixed"===n.css(d,"position")?b=d.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(c=a.offset()),c.top+=n.css(a[0],"borderTopWidth",!0),c.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-c.top-n.css(d,"marginTop",!0),left:b.left-c.left-n.css(d,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&!n.nodeName(a,"html")&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Pa})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c=/Y/.test(b);n.fn[a]=function(d){return X(this,function(a,d,e){var f=lc(a);if(void 0===e)return f?b in f?f[b]:f.document.documentElement[d]:a[d];f?f.scrollTo(c?n(f).scrollLeft():e,c?e:n(f).scrollTop()):a[d]=e},a,d,arguments.length,null)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ta(l.pixelPosition,function(a,c){if(c)return c=Ra(a,b),Na.test(c)?n(a).position()[b]+"px":c})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(!0===d||!0===e?"margin":"border") ;return X(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var mc=a.jQuery,nc=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=nc),b&&a.jQuery===n&&(a.jQuery=mc),n},b||(a.jQuery=a.$=n),n}); jQuery.noConflict(); "undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(a,b,c){function d(c){var d=b.console;f[c]||(f[c]=!0,a.migrateWarnings.push(c),d&&d.warn&&!a.migrateMute&&(d.warn("JQMIGRATE: "+c),a.migrateTrace&&d.trace&&d.trace()))}function e(b,c,e,f){if(Object.defineProperty)try{return void Object.defineProperty(b,c,{configurable:!0,enumerable:!0,get:function(){return d(f),e},set:function(a){d(f),e=a}})}catch(g){}a._definePropertyBroken=!0,b[c]=e}a.migrateVersion="1.4.1";var f={};a.migrateWarnings=[],b.console&&b.console.log&&b.console.log("JQMIGRATE: Migrate is installed"+(a.migrateMute?"":" with logging active")+", version "+a.migrateVersion),a.migrateTrace===c&&(a.migrateTrace=!0),a.migrateReset=function(){f={},a.migrateWarnings.length=0},"BackCompat"===document.compatMode&&d("jQuery is not compatible with Quirks Mode");var g=a("",{size:1}).attr("size")&&a.attrFn,h=a.attr,i=a.attrHooks.value&&a.attrHooks.value.get||function(){return null},j=a.attrHooks.value&&a.attrHooks.value.set||function(){return c},k=/^(?:input|button)$/i,l=/^[238]$/,m=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,n=/^(?:checked|selected)$/i;e(a,"attrFn",g||{},"jQuery.attrFn is deprecated"),a.attr=function(b,e,f,i){var j=e.toLowerCase(),o=b&&b.nodeType;return i&&(h.length<4&&d("jQuery.fn.attr(props, pass) is deprecated"),b&&!l.test(o)&&(g?e in g:a.isFunction(a.fn[e])))?a(b)[e](f):("type"===e&&f!==c&&k.test(b.nodeName)&&b.parentNode&&d("Can't change the 'type' of an input or button in IE 6/7/8"),!a.attrHooks[j]&&m.test(j)&&(a.attrHooks[j]={get:function(b,d){var e,f=a.prop(b,d);return f===!0||"boolean"!=typeof f&&(e=b.getAttributeNode(d))&&e.nodeValue!==!1?d.toLowerCase():c},set:function(b,c,d){var e;return c===!1?a.removeAttr(b,d):(e=a.propFix[d]||d,e in b&&(b[e]=!0),b.setAttribute(d,d.toLowerCase())),d}},n.test(j)&&d("jQuery.fn.attr('"+j+"') might use property instead of attribute")),h.call(a,b,e,f))},a.attrHooks.value={get:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?i.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value') no longer gets properties"),b in a?a.value:null)},set:function(a,b){var c=(a.nodeName||"").toLowerCase();return"button"===c?j.apply(this,arguments):("input"!==c&&"option"!==c&&d("jQuery.fn.attr('value', val) no longer sets properties"),void(a.value=b))}};var o,p,q=a.fn.init,r=a.find,s=a.parseJSON,t=/^\s*)([^>]*)$/;a.fn.init=function(b,e,f){var g,h;return b&&"string"==typeof b&&!a.isPlainObject(e)&&(g=w.exec(a.trim(b)))&&g[0]&&(t.test(b)||d("$(html) HTML strings must start with '<' character"),g[3]&&d("$(html) HTML text after last tag is ignored"),"#"===g[0].charAt(0)&&(d("HTML string cannot start with a '#' character"),a.error("JQMIGRATE: Invalid selector string (XSS)")),e&&e.context&&e.context.nodeType&&(e=e.context),a.parseHTML)?q.call(this,a.parseHTML(g[2],e&&e.ownerDocument||e||document,!0),e,f):(h=q.apply(this,arguments),b&&b.selector!==c?(h.selector=b.selector,h.context=b.context):(h.selector="string"==typeof b?b:"",b&&(h.context=b.nodeType?b:e||document)),h)},a.fn.init.prototype=a.fn,a.find=function(a){var b=Array.prototype.slice.call(arguments);if("string"==typeof a&&u.test(a))try{document.querySelector(a)}catch(c){a=a.replace(v,function(a,b,c,d){return"["+b+c+'"'+d+'"]'});try{document.querySelector(a),d("Attribute selector with '#' must be quoted: "+b[0]),b[0]=a}catch(e){d("Attribute selector with '#' was not fixed: "+b[0])}}return r.apply(this,b)};var x;for(x in r)Object.prototype.hasOwnProperty.call(r,x)&&(a.find[x]=r[x]);a.parseJSON=function(a){return a?s.apply(this,arguments):(d("jQuery.parseJSON requires a valid JSON string"),null)},a.uaMatch=function(a){a=a.toLowerCase();var b=/(chrome)[ \/]([\w.]+)/.exec(a)||/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||a.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},a.browser||(o=a.uaMatch(navigator.userAgent),p={},o.browser&&(p[o.browser]=!0,p.version=o.version),p.chrome?p.webkit=!0:p.webkit&&(p.safari=!0),a.browser=p),e(a,"browser",a.browser,"jQuery.browser is deprecated"),a.boxModel=a.support.boxModel="CSS1Compat"===document.compatMode,e(a,"boxModel",a.boxModel,"jQuery.boxModel is deprecated"),e(a.support,"boxModel",a.support.boxModel,"jQuery.support.boxModel is deprecated"),a.sub=function(){function b(a,c){return new b.fn.init(a,c)}a.extend(!0,b,this),b.superclass=this,b.fn=b.prototype=this(),b.fn.constructor=b,b.sub=this.sub,b.fn.init=function(d,e){var f=a.fn.init.call(this,d,e,c);return f instanceof b?f:b(f)},b.fn.init.prototype=b.fn;var c=b(document);return d("jQuery.sub() is deprecated"),b},a.fn.size=function(){return d("jQuery.fn.size() is deprecated; use the .length property"),this.length};var y=!1;a.swap&&a.each(["height","width","reliableMarginRight"],function(b,c){var d=a.cssHooks[c]&&a.cssHooks[c].get;d&&(a.cssHooks[c].get=function(){var a;return y=!0,a=d.apply(this,arguments),y=!1,a})}),a.swap=function(a,b,c,e){var f,g,h={};y||d("jQuery.swap() is undocumented and deprecated");for(g in b)h[g]=a.style[g],a.style[g]=b[g];f=c.apply(a,e||[]);for(g in b)a.style[g]=h[g];return f},a.ajaxSetup({converters:{"text json":a.parseJSON}});var z=a.fn.data;a.fn.data=function(b){var e,f,g=this[0];return!g||"events"!==b||1!==arguments.length||(e=a.data(g,b),f=a._data(g,b),e!==c&&e!==f||f===c)?z.apply(this,arguments):(d("Use of jQuery.fn.data('events') is deprecated"),f)};var A=/\/(java|ecma)script/i;a.clean||(a.clean=function(b,c,e,f){c=c||document,c=!c.nodeType&&c[0]||c,c=c.ownerDocument||c,d("jQuery.clean() is deprecated");var g,h,i,j,k=[];if(a.merge(k,a.buildFragment(b,c).childNodes),e)for(i=function(a){return!a.type||A.test(a.type)?f?f.push(a.parentNode?a.parentNode.removeChild(a):a):e.appendChild(a):void 0},g=0;null!=(h=k[g]);g++)a.nodeName(h,"script")&&i(h)||(e.appendChild(h),"undefined"!=typeof h.getElementsByTagName&&(j=a.grep(a.merge([],h.getElementsByTagName("script")),i),k.splice.apply(k,[g+1,0].concat(j)),g+=j.length));return k});var B=a.event.add,C=a.event.remove,D=a.event.trigger,E=a.fn.toggle,F=a.fn.live,G=a.fn.die,H=a.fn.load,I="ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",J=new RegExp("\\b(?:"+I+")\\b"),K=/(?:^|\s)hover(\.\S+|)\b/,L=function(b){return"string"!=typeof b||a.event.special.hover?b:(K.test(b)&&d("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'"),b&&b.replace(K,"mouseenter$1 mouseleave$1"))};a.event.props&&"attrChange"!==a.event.props[0]&&a.event.props.unshift("attrChange","attrName","relatedNode","srcElement"),a.event.dispatch&&e(a.event,"handle",a.event.dispatch,"jQuery.event.handle is undocumented and deprecated"),a.event.add=function(a,b,c,e,f){a!==document&&J.test(b)&&d("AJAX events should be attached to document: "+b),B.call(this,a,L(b||""),c,e,f)},a.event.remove=function(a,b,c,d,e){C.call(this,a,L(b)||"",c,d,e)},a.each(["load","unload","error"],function(b,c){a.fn[c]=function(){var a=Array.prototype.slice.call(arguments,0);return"load"===c&&"string"==typeof a[0]?H.apply(this,a):(d("jQuery.fn."+c+"() is deprecated"),a.splice(0,0,c),arguments.length?this.bind.apply(this,a):(this.triggerHandler.apply(this,a),this))}}),a.fn.toggle=function(b,c){if(!a.isFunction(b)||!a.isFunction(c))return E.apply(this,arguments);d("jQuery.fn.toggle(handler, handler...) is deprecated");var e=arguments,f=b.guid||a.guid++,g=0,h=function(c){var d=(a._data(this,"lastToggle"+b.guid)||0)%g;return a._data(this,"lastToggle"+b.guid,d+1),c.preventDefault(),e[d].apply(this,arguments)||!1};for(h.guid=f;g 0) ? min:1); }else{ var newQty=1; }; return newQty; }; var wacListenQtyChange=function(){ $(document).on('change', '.qty', function(e){ if($('.bundle_add_to_cart_button').length){ return true; } if($(this).is('select')&&($(this).attr('max') > 0) && (parseInt($(this).val()) > parseInt($(this).attr('max')))){ $(this).val($(this).attr('max')); e.preventDefault(); return false; } return wacChange($(this)); }); }; var wacFindInputQty=function(btn){ var inputQty=btn.parent().parent().parent().find('.qty'); if(!inputQty.length){ inputQty=btn.closest('.cart').find('.qty'); } if(!inputQty.length){ inputQty=btn.closest('.product-quantity').find('.qty'); } return inputQty; }; wacListenQtyButtons=function(){ var fnIncrement=function(e){ if($(this).hasClass('disabled')){ e.preventDefault(); return false; } var inputQty=wacFindInputQty($(this)); inputQty.val(function(i, oldval){ return ++oldval; }); inputQty.trigger('change'); return false; }; var fnDecrement=function(e){ if($(this).hasClass('disabled')){ e.preventDefault(); return false; } var inputQty=wacFindInputQty($(this)); var oldVal=inputQty.val(); if(inputQty.attr('min')!='undefined'&&parseInt(inputQty.attr('min')) >=oldVal){ return false; } inputQty.val(--oldVal); inputQty.trigger('change'); return false; }; if($('.wac-btn-inc').length){ if(!$('#wac-style-prod-qty').length){ $("").appendTo('head'); } $('.wac-btn-inc').off('click.wac2910').on('click.wac2910', fnIncrement); $('.wac-btn-sub').off('click.wac2911').on('click.wac2911', fnDecrement); if($('.grid').length){ setTimeout(wacListenQtyButtons, 500); }} $(document).off('click.wac3000').on('click.wac3000', '.wac-btn-inc', fnIncrement); $(document).off('click.wac3001').on('click.wac3001', '.wac-btn-sub', fnDecrement); }; wacListenQtyChange(); wacListenQtyButtons(); $(document.body).on('wc_fragments_refreshed', function(){ wacListenQtyButtons(); }); $(document.body).on('added_to_cart', function(event, fragments, cart_hash){ if($('.woocommerce-cart-form').length==0){ $('body').append(''); }}); }); !function(){"use strict";function e(e){function t(t,n){var s,h,k=t==window,y=n&&n.message!==undefined?n.message:undefined;if(!(n=e.extend({},e.blockUI.defaults,n||{})).ignoreIfBlocked||!e(t).data("blockUI.isBlocked")){if(n.overlayCSS=e.extend({},e.blockUI.defaults.overlayCSS,n.overlayCSS||{}),s=e.extend({},e.blockUI.defaults.css,n.css||{}),n.onOverlayClick&&(n.overlayCSS.cursor="pointer"),h=e.extend({},e.blockUI.defaults.themedCSS,n.themedCSS||{}),y=y===undefined?n.message:y,k&&p&&o(window,{fadeOut:0}),y&&"string"!=typeof y&&(y.parentNode||y.jquery)){var m=y.jquery?y[0]:y,g={};e(t).data("blockUI.history",g),g.el=m,g.parent=m.parentNode,g.display=m.style.display,g.position=m.style.position,g.parent&&g.parent.removeChild(m)}e(t).data("blockUI.onUnblock",n.onUnblock);var v,I,w,U,x=n.baseZ;v=e(r||n.forceIframe?'':''),I=e(n.theme?'':''),n.theme&&k?(U='"):n.theme?(U='"):U=k?'':'',w=e(U),y&&(n.theme?(w.css(h),w.addClass("ui-widget-content")):w.css(s)),n.theme||I.css(n.overlayCSS),I.css("position",k?"fixed":"absolute"),(r||n.forceIframe)&&v.css("opacity",0);var C=[v,I,w],S=e(k?"body":t);e.each(C,function(){this.appendTo(S)}),n.theme&&n.draggable&&e.fn.draggable&&w.draggable({handle:".ui-dialog-titlebar",cancel:"li"});var O=f&&(!e.support.boxModel||e("object,embed",k?null:t).length>0);if(u||O){if(k&&n.allowBodyStretch&&e.support.boxModel&&e("html,body").css("height","100%"),(u||!e.support.boxModel)&&!k)var E=a(t,"borderTopWidth"),T=a(t,"borderLeftWidth"),M=E?"(0 - "+E+")":0,B=T?"(0 - "+T+")":0;e.each(C,function(e,t){var o=t[0].style;if(o.position="absolute",e<2)k?o.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.support.boxModel?0:"+n.quirksmodeOffsetHack+') + "px"'):o.setExpression("height",'this.parentNode.offsetHeight + "px"'),k?o.setExpression("width",'jQuery.support.boxModel&&document.documentElement.clientWidth||document.body.clientWidth + "px"'):o.setExpression("width",'this.parentNode.offsetWidth + "px"'),B&&o.setExpression("left",B),M&&o.setExpression("top",M);else if(n.centerY)k&&o.setExpression("top",'(document.documentElement.clientHeight||document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah=document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "px"'),o.marginTop=0;else if(!n.centerY&&k){var i="((document.documentElement.scrollTop ? document.documentElement.scrollTop:document.body.scrollTop) + "+(n.css&&n.css.top?parseInt(n.css.top,10):0)+') + "px"';o.setExpression("top",i)}})}if(y&&(n.theme?w.find(".ui-widget-content").append(y):w.append(y),(y.jquery||y.nodeType)&&e(y).show()),(r||n.forceIframe)&&n.showOverlay&&v.show(),n.fadeIn){var j=n.onBlock?n.onBlock:c,H=n.showOverlay&&!y?j:c,z=y?j:c;n.showOverlay&&I._fadeIn(n.fadeIn,H),y&&w._fadeIn(n.fadeIn,z)}else n.showOverlay&&I.show(),y&&w.show(),n.onBlock&&n.onBlock.bind(w)();if(i(1,t,n),k?(p=w[0],b=e(n.focusableElements,p),n.focusInput&&setTimeout(l,20)):d(w[0],n.centerX,n.centerY),n.timeout){var W=setTimeout(function(){k?e.unblockUI(n):e(t).unblock(n)},n.timeout);e(t).data("blockUI.timeout",W)}}}function o(t,o){var s,l=t==window,d=e(t),a=d.data("blockUI.history"),c=d.data("blockUI.timeout");c&&(clearTimeout(c),d.removeData("blockUI.timeout")),o=e.extend({},e.blockUI.defaults,o||{}),i(0,t,o),null===o.onUnblock&&(o.onUnblock=d.data("blockUI.onUnblock"),d.removeData("blockUI.onUnblock"));var r;r=l?e(document.body).children().filter(".blockUI").add("body > .blockUI"):d.find(">.blockUI"),o.cursorReset&&(r.length>1&&(r[1].style.cursor=o.cursorReset),r.length>2&&(r[2].style.cursor=o.cursorReset)),l&&(p=b=null),o.fadeOut?(s=r.length,r.stop().fadeOut(o.fadeOut,function(){0==--s&&n(r,a,o,t)})):n(r,a,o,t)}function n(t,o,n,i){var s=e(i);if(!s.data("blockUI.isBlocked")){t.each(function(e,t){this.parentNode&&this.parentNode.removeChild(this)}),o&&o.el&&(o.el.style.display=o.display,o.el.style.position=o.position,o.el.style.cursor="default",o.parent&&o.parent.appendChild(o.el),s.removeData("blockUI.history")),s.data("blockUI.static")&&s.css("position","static"),"function"==typeof n.onUnblock&&n.onUnblock(i,n);var l=e(document.body),d=l.width(),a=l[0].style.width;l.width(d-1).width(d),l[0].style.width=a}}function i(t,o,n){var i=o==window,l=e(o);if((t||(!i||p)&&(i||l.data("blockUI.isBlocked")))&&(l.data("blockUI.isBlocked",t),i&&n.bindEvents&&(!t||n.showOverlay))){var d="mousedown mouseup keydown keypress keyup touchstart touchend touchmove";t?e(document).bind(d,n,s):e(document).unbind(d,s)}}function s(t){if("keydown"===t.type&&t.keyCode&&9==t.keyCode&&p&&t.data.constrainTabKey){var o=b,n=!t.shiftKey&&t.target===o[o.length-1],i=t.shiftKey&&t.target===o[0];if(n||i)return setTimeout(function(){l(i)},10),!1}var s=t.data,d=e(t.target);return d.hasClass("blockOverlay")&&s.onOverlayClick&&s.onOverlayClick(t),d.parents("div."+s.blockMsgClass).length>0||0===d.parents().children().filter("div.blockUI").length}function l(e){if(b){var t=b[!0===e?b.length-1:0];t&&t.focus()}}function d(e,t,o){var n=e.parentNode,i=e.style,s=(n.offsetWidth-e.offsetWidth)/2-a(n,"borderLeftWidth"),l=(n.offsetHeight-e.offsetHeight)/2-a(n,"borderTopWidth");t&&(i.left=s>0?s+"px":"0"),o&&(i.top=l>0?l+"px":"0")}function a(t,o){return parseInt(e.css(t,o),10)||0}e.fn._fadeIn=e.fn.fadeIn;var c=e.noop||function(){},r=/MSIE/.test(navigator.userAgent),u=/MSIE 6.0/.test(navigator.userAgent)&&!/MSIE 8.0/.test(navigator.userAgent),f=(document.documentMode,e.isFunction(document.createElement("div").style.setExpression));e.blockUI=function(e){t(window,e)},e.unblockUI=function(e){o(window,e)},e.growlUI=function(t,o,n,i){var s=e('
');t&&s.append("

"+t+"

"),o&&s.append("

"+o+"

"),n===undefined&&(n=3e3);var l=function(t){t=t||{},e.blockUI({message:s,fadeIn:"undefined"!=typeof t.fadeIn?t.fadeIn:700,fadeOut:"undefined"!=typeof t.fadeOut?t.fadeOut:1e3,timeout:"undefined"!=typeof t.timeout?t.timeout:n,centerY:!1,showOverlay:!1,onUnblock:i,css:e.blockUI.defaults.growlCSS})};l();s.css("opacity");s.mouseover(function(){l({fadeIn:0,timeout:3e4});var t=e(".blockMsg");t.stop(),t.fadeTo(300,1)}).mouseout(function(){e(".blockMsg").fadeOut(1e3)})},e.fn.block=function(o){if(this[0]===window)return e.blockUI(o),this;var n=e.extend({},e.blockUI.defaults,o||{});return this.each(function(){var t=e(this);n.ignoreIfBlocked&&t.data("blockUI.isBlocked")||t.unblock({fadeOut:0})}),this.each(function(){"static"==e.css(this,"position")&&(this.style.position="relative",e(this).data("blockUI.static",!0)),this.style.zoom=1,t(this,o)})},e.fn.unblock=function(t){return this[0]===window?(e.unblockUI(t),this):this.each(function(){o(this,t)})},e.blockUI.version=2.7,e.blockUI.defaults={message:"

Please wait...

",title:null,draggable:!0,theme:!1,css:{padding:0,margin:0,width:"30%",top:"40%",left:"35%",textAlign:"center",color:"#000",border:"3px solid #aaa",backgroundColor:"#fff",cursor:"wait"},themedCSS:{width:"30%",top:"40%",left:"35%"},overlayCSS:{backgroundColor:"#000",opacity:.6,cursor:"wait"},cursorReset:"default",growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:.6,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:!1,baseZ:1e3,centerX:!0,centerY:!0,allowBodyStretch:!0,bindEvents:!0,constrainTabKey:!0,fadeIn:200,fadeOut:400,timeout:0,showOverlay:!0,focusInput:!0,focusableElements:":input:enabled:visible",onBlock:null,onUnblock:null,onOverlayClick:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:!1};var p=null,b=[]}"function"==typeof define&&define.amd&&define.amd.jQuery?define(["jquery"],e):e(jQuery)}(); !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if("number"==typeof(i=e({path:"/"},t.defaults,i)).expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}i.expires=i.expires?i.expires.toUTCString():"";try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(m){}r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=(n=(n=encodeURIComponent(String(n))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var f="";for(var s in i)i[s]&&(f+="; "+s,!0!==i[s]&&(f+="="+i[s]));return document.cookie=n+"="+r+f}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,u=0;u').prop("id",r).prop("name",a).prop("placeholder",_).attr("data-input-classes",i).addClass("hidden "+i),c.hide().find(".select2-container").remove(),o.replaceWith(e),u(document.body).trigger("country_to_state_changed",[n,t]);else{var l=d[n],p=u('').text(wc_country_select_params.i18n_select_state_text);_||(_=wc_country_select_params.i18n_select_state_text),c.show(),o.is("input")&&(e=u("").prop("id",r).prop("name",a).data("placeholder",_).attr("data-input-classes",i).addClass("state_select "+i),o.replaceWith(e),o=t.find("#billing_state, #shipping_state, #calc_shipping_state")),o.empty().append(p),u.each(l,function(t){var e=u("").prop("value",t).text(l[t]);o.append(e)}),o.val(s).change(),u(document.body).trigger("country_to_state_changed",[n,t])}else o.is('select, input[type="hidden"]')&&(e=u('').prop("id",r).prop("name",a).prop("placeholder",_).attr("data-input-classes",i).addClass("input-text "+i),c.show().find(".select2-container").remove(),o.replaceWith(e),u(document.body).trigger("country_to_state_changed",[n,t]));u(document.body).trigger("country_to_state_changing",[n,t])}),u(document.body).on("wc_address_i18n_ready",function(){u(h).each(function(){var t=u(this).find("#billing_country, #shipping_country, #calc_shipping_country");0!==t.length&&0!==t.val().length&&t.trigger("refresh")})})}); jQuery(function(p){if("undefined"==typeof wc_address_i18n_params)return!1;var e=wc_address_i18n_params.locale.replace(/"/g,'"'),s=p.parseJSON(e);function c(e,a){a?(e.find("label .optional").remove(),e.addClass("validate-required"),0===e.find("label .required").length&&e.find("label").append(' *')):(e.find("label .required").remove(),e.removeClass("validate-required woocommerce-invalid woocommerce-invalid-required-field"),0===e.find("label .optional").length&&e.find("label").append(' ('+wc_address_i18n_params.i18n_optional_text+")"))}p(document.body).bind("country_to_state_changing",function(e,a,i){var t,r=i;t="undefined"!=typeof s[a]?s[a]:s["default"];var d=r.find("#billing_postcode_field, #shipping_postcode_field"),l=r.find("#billing_city_field, #shipping_city_field"),n=r.find("#billing_state_field, #shipping_state_field");d.attr("data-o_class")||(d.attr("data-o_class",d.attr("class")),l.attr("data-o_class",l.attr("class")),n.attr("data-o_class",n.attr("class")));var o=p.parseJSON(wc_address_i18n_params.locale_fields);p.each(o,function(e,a){var i=r.find(a),d=p.extend(!0,{},s["default"][e],t[e]);"undefined"!=typeof d.label&&i.find("label").html(d.label),"undefined"!=typeof d.placeholder&&(i.find(":input").attr("placeholder",d.placeholder),i.find(":input").attr("data-placeholder",d.placeholder),i.find(".select2-selection__placeholder").text(d.placeholder)),"undefined"!=typeof d.placeholder||"undefined"==typeof d.label||i.find("label").length||(i.find(":input").attr("placeholder",d.label),i.find(":input").attr("data-placeholder",d.label),i.find(".select2-selection__placeholder").text(d.label)),"undefined"!=typeof d.required?c(i,d.required):c(i,!1),"undefined"!=typeof d.priority&&i.data("priority",d.priority),"state"!==e&&("undefined"!=typeof d.hidden&&!0===d.hidden?i.hide().find(":input").val(""):i.show())}),p(".woocommerce-billing-fields__field-wrapper,.woocommerce-shipping-fields__field-wrapper,.woocommerce-address-fields__field-wrapper,.woocommerce-additional-fields__field-wrapper .woocommerce-account-fields").each(function(e,a){var i=p(a).find(".form-row"),d=i.first().parent(),t=0;i.each(function(){p(this).data("priority")||p(this).data("priority",t+1),t=p(this).data("priority")}),i.sort(function(e,a){var i=parseInt(p(e).data("priority"),10),d=parseInt(p(a).data("priority"),10);return d'+e.messages+"
"):c.prepend(e),c.find(".input-text, select, input:checkbox").trigger("validate").blur(),v.scroll_to_notices()}v.init_payment_methods(),g(document.body).trigger("updated_checkout",[e])}}})}},blockOnSubmit:function(e){1!==e.data()["blockUI.isBlocked"]&&e.block({message:null,overlayCSS:{background:"#fff",opacity:.6}})},submitOrder:function(){v.blockOnSubmit(g(this))},submit:function(){v.reset_update_checkout_timer();var e=g(this);return e.is(".processing")||!1!==e.triggerHandler("checkout_place_order")&&!1!==e.triggerHandler("checkout_place_order_"+v.get_payment_method())&&(e.addClass("processing"),v.blockOnSubmit(e),g.ajaxSetup({dataFilter:function(e,t){if("json"!==t)return e;if(v.is_valid_json(e))return e;var o=e.match(/{"result.*}/);return null===o?console.log("Unable to fix malformed JSON"):v.is_valid_json(o[0])?(console.log("Fixed malformed JSON. Original:"),console.log(e),e=o[0]):console.log("Unable to fix malformed JSON"),e}}),g.ajax({type:"POST",url:wc_checkout_params.checkout_url,data:e.serialize(),dataType:"json",success:function(e){try{if("success"!==e.result)throw"failure"===e.result?"Result failure":"Invalid response";-1===e.redirect.indexOf("https://")||-1===e.redirect.indexOf("http://")?window.location=e.redirect:window.location=decodeURI(e.redirect)}catch(t){if(!0===e.reload)return void window.location.reload();!0===e.refresh&&g(document.body).trigger("update_checkout"),e.messages?v.submit_error(e.messages):v.submit_error('
'+wc_checkout_params.i18n_checkout_error+"
")}},error:function(e,t,o){v.submit_error('
'+o+"
")}})),!1},submit_error:function(e){g(".woocommerce-NoticeGroup-checkout, .woocommerce-error, .woocommerce-message").remove(),v.$checkout_form.prepend('
'+e+"
"),v.$checkout_form.removeClass("processing").unblock(),v.$checkout_form.find(".input-text, select, input:checkbox").trigger("validate").blur(),v.scroll_to_notices(),g(document.body).trigger("checkout_error")},scroll_to_notices:function(){var e=g(".woocommerce-NoticeGroup-updateOrderReview, .woocommerce-NoticeGroup-checkout");e.length||(e=g(".form.checkout")),g.scroll_to_notices(e)}},e={init:function(){g(document.body).on("click","a.showcoupon",this.show_coupon_form),g(document.body).on("click",".woocommerce-remove-coupon",this.remove_coupon),g("form.checkout_coupon").hide().submit(this.submit)},show_coupon_form:function(){return g(".checkout_coupon").slideToggle(400,function(){g(".checkout_coupon").find(":input:eq(0)").focus()}),!1},submit:function(){var t=g(this);if(t.is(".processing"))return!1;t.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var e={security:wc_checkout_params.apply_coupon_nonce,coupon_code:t.find('input[name="coupon_code"]').val()};return g.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","apply_coupon"),data:e,success:function(e){g(".woocommerce-error, .woocommerce-message").remove(),t.removeClass("processing").unblock(),e&&(t.before(e),t.slideUp(),g(document.body).trigger("update_checkout",{update_shipping_method:!1}))},dataType:"html"}),!1},remove_coupon:function(e){e.preventDefault();var t=g(this).parents(".woocommerce-checkout-review-order"),o=g(this).data("coupon");t.addClass("processing").block({message:null,overlayCSS:{background:"#fff",opacity:.6}});var c={security:wc_checkout_params.remove_coupon_nonce,coupon:o};g.ajax({type:"POST",url:wc_checkout_params.wc_ajax_url.toString().replace("%%endpoint%%","remove_coupon"),data:c,success:function(e){g(".woocommerce-error, .woocommerce-message").remove(),t.removeClass("processing").unblock(),e&&(g("form.woocommerce-checkout").before(e),g(document.body).trigger("update_checkout",{update_shipping_method:!1}),g("form.checkout_coupon").find('input[name="coupon_code"]').val(""))},error:function(e){wc_checkout_params.debug_mode&&console.log(e.responseText)},dataType:"html"})}},t={init:function(){g(document.body).on("click","a.showlogin",this.show_login_form)},show_login_form:function(){return g("form.login, form.woocommerce-form--login").slideToggle(),!1}},o={init:function(){g(document.body).on("click","a.woocommerce-terms-and-conditions-link",this.toggle_terms)},toggle_terms:function(){if(g(".woocommerce-terms-and-conditions").length)return g(".woocommerce-terms-and-conditions").slideToggle(function(){var e=g(".woocommerce-terms-and-conditions-link");g(".woocommerce-terms-and-conditions").is(":visible")?(e.addClass("woocommerce-terms-and-conditions-link--open"),e.removeClass("woocommerce-terms-and-conditions-link--closed")):(e.removeClass("woocommerce-terms-and-conditions-link--open"),e.addClass("woocommerce-terms-and-conditions-link--closed"))}),!1}};v.init(),e.init(),t.init(),o.init()}); jQuery(document).ready(function($){ $(document.body).on('change', 'input[name="payment_method"]', function(){ $('body').trigger('update_checkout'); }); }); jQuery(function(){ jQuery(".wpcf7") .on('wpcf7mailsent', function(e){ var gtm4wp_cf7formid='(not set)'; if(e&&e.detail&&e.detail.contactFormId){ gtm4wp_cf7formid=e.detail.contactFormId; }else if(e&&e.originalEvent&&e.originalEvent.detail&&e.originalEvent.detail.contactFormId){ gtm4wp_cf7formid=e.originalEvent.detail.contactFormId; } var gtm4wp_cf7forminputs=[]; if(e&&e.detail&&e.detail.inputs){ gtm4wp_cf7forminputs=e.detail.inputs; }else if(e&&e.originalEvent&&e.originalEvent.detail&&e.originalEvent.detail.inputs){ gtm4wp_cf7forminputs=e.originalEvent.detail.inputs; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.contactForm7Submitted', 'gtm4wp.cf7formid': gtm4wp_cf7formid, 'gtm4wp.cf7inputs': gtm4wp_cf7forminputs }); }); }); jQuery(function(){ jQuery(":input") .on("focus", function(){ var input=jQuery(this); var inputID=input.attr("id")||"(no input ID)"; var inputName=input.attr("name")||"(no input name)"; var inputClass=input.attr("class")||"(no input class)"; var form=jQuery(this.form); var formID=form.attr("id")||"(no form ID)"; var formName=form.attr("name")||"(no form name)"; var formClass=form.attr("class")||"(no form class)"; window[ gtm4wp_datalayer_name ].push({ 'event':'gtm4wp.formElementEnter', 'inputID':inputID, 'inputName':inputName, 'inputClass': inputClass, 'formID':formID, 'formName':formName, 'formClass': formClass }); }) .on("blur", function(){ var input=jQuery(this); var inputID=input.attr("id")||"(no input ID)"; var inputName=input.attr("name")||"(no input name)"; var inputClass=input.attr("class")||"(no input class)"; var form=jQuery(this.form); var formID=form.attr("id")||"(no form ID)"; var formName=form.attr("name")||"(no form name)"; var formClass=form.attr("class")||"(no form class)"; window[ gtm4wp_datalayer_name ].push({ 'event':'gtm4wp.formElementLeave', 'inputID':inputID, 'inputName':inputName, 'inputClass': inputClass, 'formID':formID, 'formName':formName, 'formClass': formClass }); }); }); var gtm4wp_last_selected_product_variation; var gtm4wp_changedetail_fired_during_pageload=false; function gtm4wp_handle_cart_qty_change(){ jQuery('.product-quantity input.qty').each(function(){ var _original_value=jQuery(this).prop('defaultValue'); var _current_value=parseInt(jQuery(this).val()); if(Number.isNaN(_current_value)){ _current_value=_original_value; } if(_original_value!=_current_value){ var productdata=jQuery(this).closest('.cart_item').find('.remove'); var productprice=productdata.data('gtm4wp_product_price'); if(typeof productprice=="string"){ productprice=parseFloat(productprice); if(isNaN(productprice)){ productprice=0; }}else if(typeof productprice!="number"){ productprice=0; } if(_original_value < _current_value){ window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.addProductToCartEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'add': { 'products': [{ 'name': productdata.data('gtm4wp_product_name'), 'id': productdata.data('gtm4wp_product_id'), 'price': productprice.toFixed(2), 'category': productdata.data('gtm4wp_product_cat'), 'variant': productdata.data('gtm4wp_product_variant'), 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand'), 'quantity': _current_value - _original_value }] }} }); }else{ window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.removeFromCartEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'remove': { 'products': [{ 'name': productdata.data('gtm4wp_product_name'), 'id': productdata.data('gtm4wp_product_id'), 'price': productprice.toFixed(2), 'category': productdata.data('gtm4wp_product_cat'), 'variant': productdata.data('gtm4wp_product_variant'), 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand'), 'quantity': _original_value - _current_value }] }} }); }} }); } jQuery(function(){ var is_cart=jQuery('body').hasClass('woocommerce-cart'); var is_checkout=jQuery('body').hasClass('woocommerce-checkout'); if(jQuery('.gtm4wp_productdata,.widget-product-item').length > 0){ var products=[]; var productdata, productprice=0; jQuery('.gtm4wp_productdata,.widget-product-item').each(function(){ productdata=jQuery(this); productprice=productdata.data('gtm4wp_product_price'); if(typeof productprice=="string"){ productprice=parseFloat(productprice); if(isNaN(productprice)){ productprice=0; }}else if(typeof productprice!="number"){ productprice=0; } products.push({ 'name': productdata.data('gtm4wp_product_name'), 'id': productdata.data('gtm4wp_product_id'), 'price': productprice.toFixed(2), 'category': productdata.data('gtm4wp_product_cat'), 'position': productdata.data('gtm4wp_product_listposition'), 'list': productdata.data('gtm4wp_productlist_name'), 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand') }); }); if(gtm4wp_product_per_impression > 0){ var chunk; while(products.length){ chunk=products.splice(0, gtm4wp_product_per_impression); window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.productImpressionEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'impressions': chunk }}); }}else{ for(var i=0; i 0){ if(gtm4wp_last_selected_product_variation){ gtm4wp_last_selected_product_variation.quantity=jQuery('form.cart:first input[name=quantity]').val(); window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.addProductToCartEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'add': { 'products': [gtm4wp_last_selected_product_variation] }} }); }}else if(_product_is_grouped){ var _products_in_group=jQuery('.grouped_form .gtm4wp_productdata'); var _products_eec=[]; _products_in_group.each(function(){ var productdata=jQuery(this); var product_qty_input=jQuery('input[name=quantity\\[' + productdata.data('gtm4wp_product_id') + '\\]]'); if(product_qty_input.length > 0){ product_qty=product_qty_input.val(); }else{ return; } if(0==product_qty){ return; } _products_eec.push({ 'id': gtm4wp_use_sku_instead ? productdata.data('gtm4wp_product_sku'):productdata.data('gtm4wp_product_id'), 'name': productdata.data('gtm4wp_product_name'), 'price': productdata.data('gtm4wp_product_price'), 'category': productdata.data('gtm4wp_product_cat'), 'quantity': product_qty, 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand') }); }); if(0==_products_eec.length){ return; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.addProductToCartEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'add': { 'products': _products_eec }} }); }else{ window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.addProductToCartEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'add': { 'products': [{ 'id': gtm4wp_use_sku_instead ? jQuery('[name=gtm4wp_sku]', _product_form).val():jQuery('[name=gtm4wp_id]', _product_form).val(), 'name': jQuery('[name=gtm4wp_name]', _product_form).val(), 'price': jQuery('[name=gtm4wp_price]', _product_form).val(), 'category': jQuery('[name=gtm4wp_category]', _product_form).val(), 'quantity': jQuery('form.cart:first input[name=quantity]').val(), 'stocklevel': jQuery('[name=gtm4wp_stocklevel]', _product_form).val(), 'brand': jQuery('[name=gtm4wp_brand]', _product_form).val() }] }} }); }}); jQuery(document).on('click', '.mini_cart_item a.remove,.product-remove a.remove', function(){ var productdata=jQuery(this); var qty=0; var qty_element=jQuery(this).closest('.cart_item').find('.product-quantity input.qty'); if(qty_element.length===0){ qty_element=jQuery(this).closest('.mini_cart_item').find('.quantity'); if(qty_element.length > 0){ qty=parseInt(qty_element.text()); if(Number.isNaN(qty)){ qty=0; }} }else{ qty=qty_element.val(); } if(qty===0){ return true; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.removeFromCartEEC', 'ecommerce': { 'remove': { 'products': [{ 'name': productdata.data('gtm4wp_product_name'), 'id': productdata.data('gtm4wp_product_id'), 'price': productdata.data('gtm4wp_product_price'), 'category': productdata.data('gtm4wp_product_cat'), 'variant': productdata.data('gtm4wp_product_variant'), 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand'), 'quantity': qty }] }} }); }); jQuery(document).on('click', '.products li:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.products>div:not(.product-category) a:not(.add_to_cart_button):not(.quick-view-button),.widget-product-item,.woocommerce-grouped-product-list-item__label a', function(event){ if('undefined'==typeof google_tag_manager){ return true; } var _productdata=jQuery(this).closest('.product'); var productdata=''; if(_productdata.length > 0){ productdata=_productdata.find('.gtm4wp_productdata'); }else{ _productdata=jQuery(this).closest('.products li'); if(_productdata.length > 0){ productdata=_productdata.find('.gtm4wp_productdata'); }else{ _productdata=jQuery(this).closest('.products>div'); if(_productdata.length > 0){ productdata=_productdata.find('.gtm4wp_productdata'); }else{ _productdata=jQuery(this).closest('.woocommerce-grouped-product-list-item__label'); if(_productdata.length > 0){ productdata=_productdata.find('.gtm4wp_productdata'); }else{ productdata=jQuery(this); }} }} if(( 'undefined'==typeof productdata.data('gtm4wp_product_id'))||(''==productdata.data('gtm4wp_product_id'))){ return true; } if(productdata.data('gtm4wp_product_url')!=jQuery(this).attr('href')){ return true; } var ctrl_key_pressed=event.ctrlKey||event.metaKey; event.preventDefault(); if(ctrl_key_pressed){ var _productpage=window.open('about:blank', '_blank'); } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.productClickEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'click': { 'actionField': {'list': productdata.data('gtm4wp_productlist_name')}, 'products': [{ 'id': productdata.data('gtm4wp_product_id'), 'name': productdata.data('gtm4wp_product_name'), 'price': productdata.data('gtm4wp_product_price'), 'category': productdata.data('gtm4wp_product_cat'), 'stocklevel': productdata.data('gtm4wp_product_stocklevel'), 'brand': productdata.data('gtm4wp_product_brand'), 'position': productdata.data('gtm4wp_product_listposition') }] }}, 'eventCallback': function(){ if(ctrl_key_pressed&&_productpage){ _productpage.location.href=productdata.data('gtm4wp_product_url'); }else{ document.location.href=productdata.data('gtm4wp_product_url'); }}, 'eventTimeout': 2000 }); }); jQuery(document).on('found_variation', function(event, product_variation){ if("undefined"==typeof product_variation){ return; } if((document.readyState==="interactive")&>m4wp_changedetail_fired_during_pageload){ return; } var _product_form=event.target; var _product_var_id=jQuery('[name=variation_id]', _product_form); var _product_id=jQuery('[name=gtm4wp_id]', _product_form).val(); var _product_name=jQuery('[name=gtm4wp_name]', _product_form).val(); var _product_sku=jQuery('[name=gtm4wp_sku]', _product_form).val(); var _product_category=jQuery('[name=gtm4wp_category]', _product_form).val(); var _product_price=jQuery('[name=gtm4wp_price]', _product_form).val(); var _product_stocklevel=jQuery('[name=gtm4wp_stocklevel]', _product_form).val(); var _product_brand=jQuery('[name=gtm4wp_brand]', _product_form).val(); var current_product_detail_data={ name: _product_name, id: 0, price: 0, category: _product_category, stocklevel: _product_stocklevel, brand: _product_brand, variant: '' }; current_product_detail_data.id=product_variation.variation_id; if(gtm4wp_use_sku_instead&&product_variation.sku&&(''!==product_variation.sku)){ current_product_detail_data.id=product_variation.sku; } current_product_detail_data.price=product_variation.display_price; var _tmp=[]; for(var attrib_key in product_variation.attributes){ _tmp.push(product_variation.attributes[ attrib_key ]); } current_product_detail_data.variant=_tmp.join(','); gtm4wp_last_selected_product_variation=current_product_detail_data; window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.changeDetailViewEEC', 'ecommerce': { 'currencyCode': gtm4wp_currency, 'detail': { 'products': [current_product_detail_data] }, }, 'ecomm_prodid': gtm4wp_id_prefix + current_product_detail_data.id, 'ecomm_pagetype': 'product', 'ecomm_totalvalue': current_product_detail_data.price, }); if(document.readyState==="interactive"){ gtm4wp_changedetail_fired_during_pageload=true; }}); jQuery('.variations select').trigger('change'); jQuery(document).ajaxSuccess(function(event, xhr, settings){ if(typeof settings!=='undefined'){ if(settings.url.indexOf('wc-api=WC_Quick_View') > -1){ setTimeout(function(){ jQuery(".woocommerce.quick-view").parent().find("script").each(function(i){ eval(jQuery(this).text()); }); }, 500); }} }); if(is_cart){ jQuery(document).on('click', '[name=update_cart]', function(){ gtm4wp_handle_cart_qty_change(); }); jQuery(document).on('keypress', '.woocommerce-cart-form input[type=number]', function(){ gtm4wp_handle_cart_qty_change(); }); } if(is_checkout){ window.gtm4wp_checkout_step_offset=window.gtm4wp_checkout_step_offset||0; window.gtm4wp_checkout_products=window.gtm4wp_checkout_products||[]; var gtm4wp_shipping_payment_method_step_offset=window.gtm4wp_needs_shipping_address ? 0:-1; var gtm4wp_checkout_step_fired=[]; jQuery(document).on('blur', 'input[name^=shipping_]:not(input[name^=shipping_method])', function(){ if(gtm4wp_checkout_step_fired.indexOf('shipping') > -1){ return; } if(jQuery(this).val().trim()==''){ return; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.checkoutStepEEC', 'ecommerce': { 'checkout': { 'actionField': { 'step': 2 + window.gtm4wp_checkout_step_offset }, 'products': window.gtm4wp_checkout_products }} }); gtm4wp_checkout_step_fired.push('shipping'); }); jQuery(document).on('change', 'input[name^=shipping_method]', function(){ if(gtm4wp_checkout_step_fired.indexOf('shipping_method') > -1){ return; } if('complete'!=document.readyState){ return; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.checkoutStepEEC', 'ecommerce': { 'checkout': { 'actionField': { 'step': 3 + window.gtm4wp_checkout_step_offset + gtm4wp_shipping_payment_method_step_offset }, 'products': window.gtm4wp_checkout_products }} }); gtm4wp_checkout_step_fired.push('shipping_method'); }); jQuery(document).on('change', 'input[name=payment_method]', function(){ if(gtm4wp_checkout_step_fired.indexOf('payment_method') > -1){ return; } if('complete'!=document.readyState){ return; } window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.checkoutStepEEC', 'ecommerce': { 'checkout': { 'actionField': { 'step': 4 + window.gtm4wp_checkout_step_offset + gtm4wp_shipping_payment_method_step_offset }, 'products': window.gtm4wp_checkout_products }} }); gtm4wp_checkout_step_fired.push('payment_method'); }); jQuery('form[name=checkout]').on('submit', function(){ if(gtm4wp_checkout_step_fired.indexOf('shipping_method')==-1){ var selected_shipping_method=jQuery('input[name^=shipping_method]:checked'); if(selected_shipping_method.length==0){ selected_shipping_method=jQuery('input[name^=shipping_method]:first'); } if(selected_shipping_method.length > 0){ selected_shipping_method.trigger('change'); }} if(gtm4wp_checkout_step_fired.indexOf('payment_method')==-1){ jQuery('input[name=payment_method]:checked').trigger('change'); } var _shipping_el=jQuery('input[name^=shipping_method]:checked'); if(_shipping_el.length==0){ _shipping_el=jQuery('input[name^=shipping_method]:first'); } if(_shipping_el.length > 0){ window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.checkoutOptionEEC', 'ecommerce': { 'checkout_option': { 'actionField': { 'step': 3 + window.gtm4wp_checkout_step_offset + gtm4wp_shipping_payment_method_step_offset, 'option': 'Shipping: ' + _shipping_el.val() }} }}); } var _payment_el=jQuery('.payment_methods input:checked'); if(_payment_el.length > 0){ window[ gtm4wp_datalayer_name ].push({ 'event': 'gtm4wp.checkoutOptionEEC', 'ecommerce': { 'checkout_option': { 'actionField': { 'step': 4 + window.gtm4wp_checkout_step_offset + gtm4wp_shipping_payment_method_step_offset, 'option': 'Payment: ' + _payment_el.val() }} }}); }}); } if(window.gtm4wp_remarketing&&!is_cart&&!is_checkout){ if(jQuery('.gtm4wp_productdata').length > 0){ for(var i=0; i'+wc_add_to_cart_params.i18n_view_cart+""),o(document.body).trigger("wc_cart_button_updated",[e]))},t.prototype.updateFragments=function(t,a){a&&(o.each(a,function(t){o(t).addClass("updating").fadeTo("400","0.6").block({message:null,overlayCSS:{opacity:.6}})}),o.each(a,function(t,a){o(t).replaceWith(a),o(t).stop(!0).css("opacity","1").unblock()}),o(document.body).trigger("wc_fragments_loaded"))},new t}); window.jQuery(document).ready(function($){ $('body').on('adding_to_cart', function(event, $button, data){ $button&&$button.hasClass('vc_gitem-link')&&$button .addClass('vc-gitem-add-to-cart-loading-btn') .parents('.vc_grid-item-mini') .addClass('vc-woocommerce-add-to-cart-loading') .append($('
')); }).on('added_to_cart', function(event, fragments, cart_hash, $button){ if('undefined'===typeof($button)){ $button=$('.vc-gitem-add-to-cart-loading-btn'); } $button&&$button.hasClass('vc_gitem-link')&&$button .removeClass('vc-gitem-add-to-cart-loading-btn') .parents('.vc_grid-item-mini') .removeClass('vc-woocommerce-add-to-cart-loading') .find('.vc_wc-load-add-to-loader-wrapper').remove(); }); }); (function ($){ $('.tmcp-field.box-header option').each(function (){ }); function getPriceForWeeks(){ let options=$('#tmcp_select_6 option'); } getPriceForWeeks(); })(jQuery); jQuery(document).ready(function($){ var rangeSlider=function(){ var slider=$('.range-slider'), range=$('.input-range'), value=$('.range-value'); slider.each(function(){ value.each(function(){ var value=$(this).prev().attr('value'); $(this).html(value); }); range.on('input', function(){ $(this).next(value).html(this.value); }); }); }; rangeSlider(); }); if(_mpc_vars==undefined){ var _mpc_vars={};} if(typeof _mpc_ajax!='undefined'){ _mpc_vars.ajax_url=_mpc_ajax; } if(typeof _mpc_animations!='undefined'){ _mpc_vars.animations=_mpc_animations==='1'; }else{ _mpc_vars.animations=false; } _mpc_vars.$window=jQuery(window); _mpc_vars.$body=jQuery('body'); _mpc_vars.$document=jQuery(document); _mpc_vars.breakpoints={ 'huge': window.matchMedia('(min-width: 1200px)').matches, 'large': window.matchMedia('(max-width: 1199px) and (min-width: 993px)').matches, 'medium': window.matchMedia('(max-width: 992px) and (min-width: 769px)').matches, 'small': window.matchMedia('(max-width: 768px) and (min-width: 481px)').matches, 'tiny': window.matchMedia('(max-width: 480px)').matches, 'custom': function(_media_query){ if(_media_query!=''){ return window.matchMedia(_media_query).matches }else{ return null; }} }; _mpc_vars.carousel_breakpoints=function($carousel){ var _slick=$carousel.data('mpcslick'), _slides=$carousel.children().length, _toShow=0, _toScroll=0, _unslick=false, _is_odd=_slick.slidesToShow % 2==0 ? 0:1, _breakpoints=[]; if(typeof _slick=='undefined'){ return _breakpoints; } _unslick=_slides <=_slick.slidesToShow; _breakpoints.push({ breakpoint: 9999, settings: _unslick ? 'unslick':{ slidesToShow: _slick.slidesToShow, slidesToScroll: _slick.slidesToScroll }}); _toShow=Math.max(1,(Math.ceil(_slick.slidesToShow * 0.75) - _is_odd)); _toScroll=Math.min(_slick.slidesToScroll, _toShow); _unslick=_slides <=_toShow; _breakpoints.push({ breakpoint: 993, settings: _unslick ? 'unslick':{ slidesToShow: _toShow, slidesToScroll: _toScroll }}); _toShow=Math.max(1,(Math.ceil(_slick.slidesToShow * 0.5) - _is_odd)); _toScroll=Math.min(_slick.slidesToScroll, _toShow); _unslick=_slides <=_toShow; _breakpoints.push({ breakpoint: 768, settings: _unslick ? 'unslick':{ slidesToShow: _toShow, slidesToScroll: _toScroll }}); _toShow=Math.max(1,(Math.ceil(_slick.slidesToShow * 0.25) - _is_odd)); _toScroll=Math.min(_slick.slidesToScroll, _toShow); _unslick=_slides <=_toShow; _breakpoints.push({ breakpoint: 480, settings: _unslick ? 'unslick':{ slidesToShow: _toShow, slidesToScroll: _toScroll }}); return _breakpoints; }; _mpc_vars.rtl={ 'el': function(_el){ var _dir; _el=_el[ 0 ]; if(_el.currentStyle){ _dir=_el.currentStyle[ 'direction' ]; }else if(window.getComputedStyle){ _dir=window.getComputedStyle(_el, null).getPropertyValue('direction'); } return _dir=='rtl'; }, 'global': function(){ var _el=document.getElementsByTagName('html')[ 0 ], _dir; if(_el.currentStyle){ _dir=_el.currentStyle[ 'direction' ]; }else if(window.getComputedStyle){ _dir=window.getComputedStyle(_el, null).getPropertyValue('direction'); } return _dir=='rtl'; }}; (function(){function e(){}function t(e,t){for(var n=e.length;n--;)if(e[n].listener===t)return n;return-1}function n(e){return function(){return this[e].apply(this,arguments)}}var i=e.prototype,r=this,o=r.EventEmitter;i.getListeners=function(e){var t,n,i=this._getEvents();if("object"==typeof e){t={};for(n in i)i.hasOwnProperty(n)&&e.test(n)&&(t[n]=i[n])}else t=i[e]||(i[e]=[]);return t},i.flattenListeners=function(e){var t,n=[];for(t=0;e.length>t;t+=1)n.push(e[t].listener);return n},i.getListenersAsObject=function(e){var t,n=this.getListeners(e);return n instanceof Array&&(t={},t[e]=n),t||n},i.addListener=function(e,n){var i,r=this.getListenersAsObject(e),o="object"==typeof n;for(i in r)r.hasOwnProperty(i)&&-1===t(r[i],n)&&r[i].push(o?n:{listener:n,once:!1});return this},i.on=n("addListener"),i.addOnceListener=function(e,t){return this.addListener(e,{listener:t,once:!0})},i.once=n("addOnceListener"),i.defineEvent=function(e){return this.getListeners(e),this},i.defineEvents=function(e){for(var t=0;e.length>t;t+=1)this.defineEvent(e[t]);return this},i.removeListener=function(e,n){var i,r,o=this.getListenersAsObject(e);for(r in o)o.hasOwnProperty(r)&&(i=t(o[r],n),-1!==i&&o[r].splice(i,1));return this},i.off=n("removeListener"),i.addListeners=function(e,t){return this.manipulateListeners(!1,e,t)},i.removeListeners=function(e,t){return this.manipulateListeners(!0,e,t)},i.manipulateListeners=function(e,t,n){var i,r,o=e?this.removeListener:this.addListener,s=e?this.removeListeners:this.addListeners;if("object"!=typeof t||t instanceof RegExp)for(i=n.length;i--;)o.call(this,t,n[i]);else for(i in t)t.hasOwnProperty(i)&&(r=t[i])&&("function"==typeof r?o.call(this,i,r):s.call(this,i,r));return this},i.removeEvent=function(e){var t,n=typeof e,i=this._getEvents();if("string"===n)delete i[e];else if("object"===n)for(t in i)i.hasOwnProperty(t)&&e.test(t)&&delete i[t];else delete this._events;return this},i.removeAllListeners=n("removeEvent"),i.emitEvent=function(e,t){var n,i,r,o,s=this.getListenersAsObject(e);for(r in s)if(s.hasOwnProperty(r))for(i=s[r].length;i--;)n=s[r][i],n.once===!0&&this.removeListener(e,n.listener),o=n.listener.apply(this,t||[]),o===this._getOnceReturnValue()&&this.removeListener(e,n.listener);return this},i.trigger=n("emitEvent"),i.emit=function(e){var t=Array.prototype.slice.call(arguments,1);return this.emitEvent(e,t)},i.setOnceReturnValue=function(e){return this._onceReturnValue=e,this},i._getOnceReturnValue=function(){return this.hasOwnProperty("_onceReturnValue")?this._onceReturnValue:!0},i._getEvents=function(){return this._events||(this._events={})},e.noConflict=function(){return r.EventEmitter=o,e},"function"==typeof define&&define.amd?define("eventEmitter/EventEmitter",[],function(){return e}):"object"==typeof module&&module.exports?module.exports=e:this.EventEmitter=e}).call(this),function(e){function t(t){var n=e.event;return n.target=n.target||n.srcElement||t,n}var n=document.documentElement,i=function(){};n.addEventListener?i=function(e,t,n){e.addEventListener(t,n,!1)}:n.attachEvent&&(i=function(e,n,i){e[n+i]=i.handleEvent?function(){var n=t(e);i.handleEvent.call(i,n)}:function(){var n=t(e);i.call(e,n)},e.attachEvent("on"+n,e[n+i])});var r=function(){};n.removeEventListener?r=function(e,t,n){e.removeEventListener(t,n,!1)}:n.detachEvent&&(r=function(e,t,n){e.detachEvent("on"+t,e[t+n]);try{delete e[t+n]}catch(i){e[t+n]=void 0}});var o={bind:i,unbind:r};"function"==typeof define&&define.amd?define("eventie/eventie",o):e.eventie=o}(this),function(e,t){"function"==typeof define&&define.amd?define(["eventEmitter/EventEmitter","eventie/eventie"],function(n,i){return t(e,n,i)}):"object"==typeof exports?module.exports=t(e,require("wolfy87-eventemitter"),require("eventie")):e.imagesLoaded=t(e,e.EventEmitter,e.eventie)}(window,function(e,t,n){function i(e,t){for(var n in t)e[n]=t[n];return e}function r(e){return"[object Array]"===d.call(e)}function o(e){var t=[];if(r(e))t=e;else if("number"==typeof e.length)for(var n=0,i=e.length;i>n;n++)t.push(e[n]);else t.push(e);return t}function s(e,t,n){if(!(this instanceof s))return new s(e,t);"string"==typeof e&&(e=document.querySelectorAll(e)),this.elements=o(e),this.options=i({},this.options),"function"==typeof t?n=t:i(this.options,t),n&&this.on("always",n),this.getImages(),a&&(this.jqDeferred=new a.Deferred);var r=this;setTimeout(function(){r.check()})}function f(e){this.img=e}function c(e){this.src=e,v[e]=this}var a=e.jQuery,u=e.console,h=u!==void 0,d=Object.prototype.toString;s.prototype=new t,s.prototype.options={},s.prototype.getImages=function(){this.images=[];for(var e=0,t=this.elements.length;t>e;e++){var n=this.elements[e];"IMG"===n.nodeName&&this.addImage(n);var i=n.nodeType;if(i&&(1===i||9===i||11===i))for(var r=n.querySelectorAll("img"),o=0,s=r.length;s>o;o++){var f=r[o];this.addImage(f)}}},s.prototype.addImage=function(e){var t=new f(e);this.images.push(t)},s.prototype.check=function(){function e(e,r){return t.options.debug&&h&&u.log("confirm",e,r),t.progress(e),n++,n===i&&t.complete(),!0}var t=this,n=0,i=this.images.length;if(this.hasAnyBroken=!1,!i)return this.complete(),void 0;for(var r=0;i>r;r++){var o=this.images[r];o.on("confirm",e),o.check()}},s.prototype.progress=function(e){this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded;var t=this;setTimeout(function(){t.emit("progress",t,e),t.jqDeferred&&t.jqDeferred.notify&&t.jqDeferred.notify(t,e)})},s.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";this.isComplete=!0;var t=this;setTimeout(function(){if(t.emit(e,t),t.emit("always",t),t.jqDeferred){var n=t.hasAnyBroken?"reject":"resolve";t.jqDeferred[n](t)}})},a&&(a.fn.imagesLoaded=function(e,t){var n=new s(this,e,t);return n.jqDeferred.promise(a(this))}),f.prototype=new t,f.prototype.check=function(){var e=v[this.img.src]||new c(this.img.src);if(e.isConfirmed)return this.confirm(e.isLoaded,"cached was confirmed"),void 0;if(this.img.complete&&void 0!==this.img.naturalWidth)return this.confirm(0!==this.img.naturalWidth,"naturalWidth"),void 0;var t=this;e.on("confirm",function(e,n){return t.confirm(e.isLoaded,n),!0}),e.check()},f.prototype.confirm=function(e,t){this.isLoaded=e,this.emit("confirm",this,t)};var v={};return c.prototype=new t,c.prototype.check=function(){if(!this.isChecked){var e=new Image;n.bind(e,"load",this),n.bind(e,"error",this),e.src=this.src,this.isChecked=!0}},c.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},c.prototype.onload=function(e){this.confirm(!0,"onload"),this.unbindProxyEvents(e)},c.prototype.onerror=function(e){this.confirm(!1,"onerror"),this.unbindProxyEvents(e)},c.prototype.confirm=function(e,t){this.isConfirmed=!0,this.isLoaded=e,this.emit("confirm",this,t)},c.prototype.unbindProxyEvents=function(e){n.unbind(e.target,"load",this),n.unbind(e.target,"error",this)},s}); !function(a,b,c){"use strict";function d(c){if(e=b.documentElement,f=b.body,T(),ha=this,c=c||{},ma=c.constants||{},c.easing)for(var d in c.easing)W[d]=c.easing[d];ta=c.edgeStrategy||"set",ka={beforerender:c.beforerender,render:c.render,keyframe:c.keyframe},la=c.forceHeight!==!1,la&&(Ka=c.scale||1),na=c.mobileDeceleration||y,pa=c.smoothScrolling!==!1,qa=c.smoothScrollingDuration||A,ra={targetTop:ha.getScrollTop()},Sa=(c.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||a.opera)})(),Sa?(ja=b.getElementById(c.skrollrBody||z),ja&&ga(),X(),Ea(e,[s,v],[t])):Ea(e,[s,u],[t]),ha.refresh(),wa(a,"resize orientationchange",function(){var a=e.clientWidth,b=e.clientHeight;(b!==Pa||a!==Oa)&&(Pa=b,Oa=a,Qa=!0)});var g=U();return function h(){$(),va=g(h)}(),ha}var e,f,g={get:function(){return ha},init:function(a){return ha||new d(a)},VERSION:"0.6.30"},h=Object.prototype.hasOwnProperty,i=a.Math,j=a.getComputedStyle,k="touchstart",l="touchmove",m="touchcancel",n="touchend",o="skrollable",p=o+"-before",q=o+"-between",r=o+"-after",s="skrollr",t="no-"+s,u=s+"-desktop",v=s+"-mobile",w="linear",x=1e3,y=.004,z="skrollr-body",A=200,B="start",C="end",D="center",E="bottom",F="___skrollable_id",G=/^(?:input|textarea|button|select)$/i,H=/^\s+|\s+$/g,I=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,J=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,K=/^(@?[a-z\-]+)\[(\w+)\]$/,L=/-([a-z0-9_])/g,M=function(a,b){return b.toUpperCase()},N=/[\-+]?[\d]*\.?[\d]+/g,O=/\{\?\}/g,P=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,Q=/[a-z\-]+-gradient/g,R="",S="",T=function(){var a=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(j){var b=j(f,null);for(var c in b)if(R=c.match(a)||+c==c&&b[c].match(a))break;if(!R)return void(R=S="");R=R[0],"-"===R.slice(0,1)?(S=R,R={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[R]):S="-"+R.toLowerCase()+"-"}},U=function(){var b=a.requestAnimationFrame||a[R.toLowerCase()+"RequestAnimationFrame"],c=Ha();return(Sa||!b)&&(b=function(b){var d=Ha()-c,e=i.max(0,1e3/60-d);return a.setTimeout(function(){c=Ha(),b()},e)}),b},V=function(){var b=a.cancelAnimationFrame||a[R.toLowerCase()+"CancelAnimationFrame"];return(Sa||!b)&&(b=function(b){return a.clearTimeout(b)}),b},W={begin:function(){return 0},end:function(){return 1},linear:function(a){return a},quadratic:function(a){return a*a},cubic:function(a){return a*a*a},swing:function(a){return-i.cos(a*i.PI)/2+.5},sqrt:function(a){return i.sqrt(a)},outCubic:function(a){return i.pow(a-1,3)+1},bounce:function(a){var b;if(.5083>=a)b=3;else if(.8489>=a)b=9;else if(.96208>=a)b=27;else{if(!(.99981>=a))return 1;b=91}return 1-i.abs(3*i.cos(a*b*1.028)/b)}};d.prototype.refresh=function(a){var d,e,f=!1;for(a===c?(f=!0,ia=[],Ra=0,a=b.getElementsByTagName("*")):a.length===c&&(a=[a]),d=0,e=a.length;e>d;d++){var g=a[d],h=g,i=[],j=pa,k=ta,l=!1;if(f&&F in g&&delete g[F],g.attributes){for(var m=0,n=g.attributes.length;n>m;m++){var p=g.attributes[m];if("data-anchor-target"!==p.name)if("data-smooth-scrolling"!==p.name)if("data-edge-strategy"!==p.name)if("data-emit-events"!==p.name){var q=p.name.match(I);if(null!==q){var r={props:p.value,element:g,eventType:p.name.replace(L,M)};i.push(r);var s=q[1];s&&(r.constant=s.substr(1));var t=q[2];/p$/.test(t)?(r.isPercentage=!0,r.offset=(0|t.slice(0,-1))/100):r.offset=0|t;var u=q[3],v=q[4]||u;u&&u!==B&&u!==C?(r.mode="relative",r.anchors=[u,v]):(r.mode="absolute",u===C?r.isEnd=!0:r.isPercentage||(r.offset=r.offset*Ka))}}else l=!0;else k=p.value;else j="off"!==p.value;else if(h=b.querySelector(p.value),null===h)throw'Unable to find anchor target "'+p.value+'"'}if(i.length){var w,x,y;!f&&F in g?(y=g[F],w=ia[y].styleAttr,x=ia[y].classAttr):(y=g[F]=Ra++,w=g.style.cssText,x=Da(g)),ia[y]={element:g,styleAttr:w,classAttr:x,anchorTarget:h,keyFrames:i,smoothScrolling:j,edgeStrategy:k,emitEvents:l,lastFrameIndex:-1},Ea(g,[o],[])}}}for(Aa(),d=0,e=a.length;e>d;d++){var z=ia[a[d][F]];z!==c&&(_(z),ba(z))}return ha},d.prototype.relativeToAbsolute=function(a,b,c){var d=e.clientHeight,f=a.getBoundingClientRect(),g=f.top,h=f.bottom-f.top;return b===E?g-=d:b===D&&(g-=d/2),c===E?g+=h:c===D&&(g+=h/2),g+=ha.getScrollTop(),g+.5|0},d.prototype.animateTo=function(a,b){b=b||{};var d=Ha(),e=ha.getScrollTop(),f=b.duration===c?x:b.duration;return oa={startTop:e,topDiff:a-e,targetTop:a,duration:f,startTime:d,endTime:d+f,easing:W[b.easing||w],done:b.done},oa.topDiff||(oa.done&&oa.done.call(ha,!1),oa=c),ha},d.prototype.stopAnimateTo=function(){oa&&oa.done&&oa.done.call(ha,!0),oa=c},d.prototype.isAnimatingTo=function(){return!!oa},d.prototype.isMobile=function(){return Sa},d.prototype.setScrollTop=function(b,c){return sa=c===!0,Sa?Ta=i.min(i.max(b,0),Ja):a.scrollTo(0,b),ha},d.prototype.getScrollTop=function(){return Sa?Ta:a.pageYOffset||e.scrollTop||f.scrollTop||0},d.prototype.getMaxScrollTop=function(){return Ja},d.prototype.on=function(a,b){return ka[a]=b,ha},d.prototype.off=function(a){return delete ka[a],ha},d.prototype.destroy=function(){var a=V();a(va),ya(),Ea(e,[t],[s,u,v]);for(var b=0,d=ia.length;d>b;b++)fa(ia[b].element);e.style.overflow=f.style.overflow="",e.style.height=f.style.height="",ja&&g.setStyle(ja,"transform","none"),ha=c,ja=c,ka=c,la=c,Ja=0,Ka=1,ma=c,na=c,La="down",Ma=-1,Oa=0,Pa=0,Qa=!1,oa=c,pa=c,qa=c,ra=c,sa=c,Ra=0,ta=c,Sa=!1,Ta=0,ua=c};var X=function(){var d,g,h,j,o,p,q,r,s,t,u,v;wa(e,[k,l,m,n].join(" "),function(a){var e=a.changedTouches[0];for(j=a.target;3===j.nodeType;)j=j.parentNode;switch(o=e.clientY,p=e.clientX,t=a.timeStamp,G.test(j.tagName)||a.preventDefault(),a.type){case k:d&&d.blur(),ha.stopAnimateTo(),d=j,g=q=o,h=p,s=t;break;case l:G.test(j.tagName)&&b.activeElement!==j&&a.preventDefault(),r=o-q,v=t-u,ha.setScrollTop(Ta-r,!0),q=o,u=t;break;default:case m:case n:var f=g-o,w=h-p,x=w*w+f*f;if(49>x){if(!G.test(d.tagName)){d.focus();var y=b.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,a.view,1,e.screenX,e.screenY,e.clientX,e.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,null),d.dispatchEvent(y)}return}d=c;var z=r/v;z=i.max(i.min(z,3),-3);var A=i.abs(z/na),B=z*A+.5*na*A*A,C=ha.getScrollTop()-B,D=0;C>Ja?(D=(Ja-C)/B,C=Ja):0>C&&(D=-C/B,C=0),A*=1-D,ha.animateTo(C+.5|0,{easing:"outCubic",duration:A})}}),a.scrollTo(0,0),e.style.overflow=f.style.overflow="hidden"},Y=function(){var a,b,c,d,f,g,h,j,k,l,m,n=e.clientHeight,o=Ba();for(j=0,k=ia.length;k>j;j++)for(a=ia[j],b=a.element,c=a.anchorTarget,d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],l=h.offset,m=o[h.constant]||0,h.frame=l,h.isPercentage&&(l*=n,h.frame=l),"relative"===h.mode&&(fa(b),h.frame=ha.relativeToAbsolute(c,h.anchors[0],h.anchors[1])-l,fa(b,!0)),h.frame+=m,la&&!h.isEnd&&h.frame>Ja&&(Ja=h.frame);for(Ja=i.max(Ja,Ca()),j=0,k=ia.length;k>j;j++){for(a=ia[j],d=a.keyFrames,f=0,g=d.length;g>f;f++)h=d[f],m=o[h.constant]||0,h.isEnd&&(h.frame=Ja-h.offset+m);a.keyFrames.sort(Ia)}},Z=function(a,b){for(var c=0,d=ia.length;d>c;c++){var e,f,i=ia[c],j=i.element,k=i.smoothScrolling?a:b,l=i.keyFrames,m=l.length,n=l[0],s=l[l.length-1],t=ks.frame,v=t?n:s,w=i.emitEvents,x=i.lastFrameIndex;if(t||u){if(t&&-1===i.edge||u&&1===i.edge)continue;switch(t?(Ea(j,[p],[r,q]),w&&x>-1&&(za(j,n.eventType,La),i.lastFrameIndex=-1)):(Ea(j,[r],[p,q]),w&&m>x&&(za(j,s.eventType,La),i.lastFrameIndex=m)),i.edge=t?-1:1,i.edgeStrategy){case"reset":fa(j);continue;case"ease":k=v.frame;break;default:case"set":var y=v.props;for(e in y)h.call(y,e)&&(f=ea(y[e].value),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f));continue}}else 0!==i.edge&&(Ea(j,[o,q],[p,r]),i.edge=0);for(var z=0;m-1>z;z++)if(k>=l[z].frame&&k<=l[z+1].frame){var A=l[z],B=l[z+1];for(e in A.props)if(h.call(A.props,e)){var C=(k-A.frame)/(B.frame-A.frame);C=A.props[e].easing(C),f=da(A.props[e].value,B.props[e].value,C),f=ea(f),0===e.indexOf("@")?j.setAttribute(e.substr(1),f):g.setStyle(j,e,f)}w&&x!==z&&("down"===La?za(j,A.eventType,La):za(j,B.eventType,La),i.lastFrameIndex=z);break}}},$=function(){Qa&&(Qa=!1,Aa());var a,b,d=ha.getScrollTop(),e=Ha();if(oa)e>=oa.endTime?(d=oa.targetTop,a=oa.done,oa=c):(b=oa.easing((e-oa.startTime)/oa.duration),d=oa.startTop+b*oa.topDiff|0),ha.setScrollTop(d,!0);else if(!sa){var f=ra.targetTop-d;f&&(ra={startTop:Ma,topDiff:d-Ma,targetTop:d,startTime:Na,endTime:Na+qa}),e<=ra.endTime&&(b=W.sqrt((e-ra.startTime)/qa),d=ra.startTop+b*ra.topDiff|0)}if(sa||Ma!==d){La=d>Ma?"down":Ma>d?"up":La,sa=!1;var h={curTop:d,lastTop:Ma,maxTop:Ja,direction:La},i=ka.beforerender&&ka.beforerender.call(ha,h);i!==!1&&(Z(d,ha.getScrollTop()),Sa&&ja&&g.setStyle(ja,"transform","translate(0, "+-Ta+"px) "+ua),Ma=d,ka.render&&ka.render.call(ha,h)),a&&a.call(ha,!1)}Na=e},_=function(a){for(var b=0,c=a.keyFrames.length;c>b;b++){for(var d,e,f,g,h=a.keyFrames[b],i={};null!==(g=J.exec(h.props));)f=g[1],e=g[2],d=f.match(K),null!==d?(f=d[1],d=d[2]):d=w,e=e.indexOf("!")?aa(e):[e.slice(1)],i[f]={value:e,easing:W[d]};h.props=i}},aa=function(a){var b=[];return P.lastIndex=0,a=a.replace(P,function(a){return a.replace(N,function(a){return a/255*100+"%"})}),S&&(Q.lastIndex=0,a=a.replace(Q,function(a){return S+a})),a=a.replace(N,function(a){return b.push(+a),"{?}"}),b.unshift(a),b},ba=function(a){var b,c,d={};for(b=0,c=a.keyFrames.length;c>b;b++)ca(a.keyFrames[b],d);for(d={},b=a.keyFrames.length-1;b>=0;b--)ca(a.keyFrames[b],d)},ca=function(a,b){var c;for(c in b)h.call(a.props,c)||(a.props[c]=b[c]);for(c in a.props)b[c]=a.props[c]},da=function(a,b,c){var d,e=a.length;if(e!==b.length)throw"Can't interpolate between \""+a[0]+'" and "'+b[0]+'"';var f=[a[0]];for(d=1;e>d;d++)f[d]=a[d]+(b[d]-a[d])*c;return f},ea=function(a){var b=1;return O.lastIndex=0,a[0].replace(O,function(){return a[b++]})},fa=function(a,b){a=[].concat(a);for(var c,d,e=0,f=a.length;f>e;e++)d=a[e],c=ia[d[F]],c&&(b?(d.style.cssText=c.dirtyStyleAttr,Ea(d,c.dirtyClassAttr)):(c.dirtyStyleAttr=d.style.cssText,c.dirtyClassAttr=Da(d),d.style.cssText=c.styleAttr,Ea(d,c.classAttr)))},ga=function(){ua="translateZ(0)",g.setStyle(ja,"transform",ua);var a=j(ja),b=a.getPropertyValue("transform"),c=a.getPropertyValue(S+"transform"),d=b&&"none"!==b||c&&"none"!==c;d||(ua="")};g.setStyle=function(a,b,c){var d=a.style;if(b=b.replace(L,M).replace("-",""),"zIndex"===b)isNaN(c)?d[b]=c:d[b]=""+(0|c);else if("float"===b)d.styleFloat=d.cssFloat=c;else try{R&&(d[R+b.slice(0,1).toUpperCase()+b.slice(1)]=c),d[b]=c}catch(e){}};var ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa=g.addEvent=function(b,c,d){var e=function(b){return b=b||a.event,b.target||(b.target=b.srcElement),b.preventDefault||(b.preventDefault=function(){b.returnValue=!1,b.defaultPrevented=!0}),d.call(this,b)};c=c.split(" ");for(var f,g=0,h=c.length;h>g;g++)f=c[g],b.addEventListener?b.addEventListener(f,d,!1):b.attachEvent("on"+f,e),Ua.push({element:b,name:f,listener:d})},xa=g.removeEvent=function(a,b,c){b=b.split(" ");for(var d=0,e=b.length;e>d;d++)a.removeEventListener?a.removeEventListener(b[d],c,!1):a.detachEvent("on"+b[d],c)},ya=function(){for(var a,b=0,c=Ua.length;c>b;b++)a=Ua[b],xa(a.element,a.name,a.listener);Ua=[]},za=function(a,b,c){ka.keyframe&&ka.keyframe.call(ha,a,b,c)},Aa=function(){var a=ha.getScrollTop();Ja=0,la&&!Sa&&(f.style.height=""),Y(),la&&!Sa&&(f.style.height=Ja+e.clientHeight+"px"),Sa?ha.setScrollTop(i.min(ha.getScrollTop(),Ja)):ha.setScrollTop(a,!0),sa=!0},Ba=function(){var a,b,c=e.clientHeight,d={};for(a in ma)b=ma[a],"function"==typeof b?b=b.call(ha):/p$/.test(b)&&(b=b.slice(0,-1)/100*c),d[a]=b;return d},Ca=function(){var a,b=0;return ja&&(b=i.max(ja.offsetHeight,ja.scrollHeight)),a=i.max(b,f.scrollHeight,f.offsetHeight,e.scrollHeight,e.offsetHeight,e.clientHeight),a-e.clientHeight},Da=function(b){var c="className";return a.SVGElement&&b instanceof a.SVGElement&&(b=b[c],c="baseVal"),b[c]},Ea=function(b,d,e){var f="className";if(a.SVGElement&&b instanceof a.SVGElement&&(b=b[f],f="baseVal"),e===c)return void(b[f]=d);for(var g=b[f],h=0,i=e.length;i>h;h++)g=Ga(g).replace(Ga(e[h])," ");g=Fa(g);for(var j=0,k=d.length;k>j;j++)-1===Ga(g).indexOf(Ga(d[j]))&&(g+=" "+d[j]);b[f]=Fa(g)},Fa=function(a){return a.replace(H,"")},Ga=function(a){return" "+a+" "},Ha=Date.now||function(){return+new Date},Ia=function(a,b){return a.frame-b.frame},Ja=0,Ka=1,La="down",Ma=-1,Na=Ha(),Oa=0,Pa=0,Qa=!1,Ra=0,Sa=!1,Ta=0,Ua=[];"function"==typeof define&&define.amd?define([],function(){return g}):"undefined"!=typeof module&&module.exports?module.exports=g:a.skrollr=g}(window,document); !function(e){function t(e){var t=e.length,r=$.type(e);return"function"===r||$.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===r||0===t||"number"==typeof t&&t>0&&t-1 in e}if(!e.jQuery){var $=function(e,t){return new $.fn.init(e,t)};$.isWindow=function(e){return null!=e&&e==e.window},$.type=function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?a[o.call(e)]||"object":typeof e},$.isArray=Array.isArray||function(e){return"array"===$.type(e)},$.isPlainObject=function(e){var t;if(!e||"object"!==$.type(e)||e.nodeType||$.isWindow(e))return!1;try{if(e.constructor&&!n.call(e,"constructor")&&!n.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(r){return!1}for(t in e);return void 0===t||n.call(e,t)},$.each=function(e,r,a){var n,o=0,i=e.length,s=t(e);if(a){if(s)for(;i>o&&(n=r.apply(e[o],a),n!==!1);o++);else for(o in e)if(n=r.apply(e[o],a),n===!1)break}else if(s)for(;i>o&&(n=r.call(e[o],o,e[o]),n!==!1);o++);else for(o in e)if(n=r.call(e[o],o,e[o]),n===!1)break;return e},$.data=function(e,t,a){if(void 0===a){var n=e[$.expando],o=n&&r[n];if(void 0===t)return o;if(o&&t in o)return o[t]}else if(void 0!==t){var n=e[$.expando]||(e[$.expando]=++$.uuid);return r[n]=r[n]||{},r[n][t]=a,a}},$.removeData=function(e,t){var a=e[$.expando],n=a&&r[a];n&&$.each(t,function(e,t){delete n[t]})},$.extend=function(){var e,t,r,a,n,o,i=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof i&&(u=i,i=arguments[s]||{},s++),"object"!=typeof i&&"function"!==$.type(i)&&(i={}),s===l&&(i=this,s--);l>s;s++)if(null!=(n=arguments[s]))for(a in n)e=i[a],r=n[a],i!==r&&(u&&r&&($.isPlainObject(r)||(t=$.isArray(r)))?(t?(t=!1,o=e&&$.isArray(e)?e:[]):o=e&&$.isPlainObject(e)?e:{},i[a]=$.extend(u,o,r)):void 0!==r&&(i[a]=r));return i},$.queue=function(e,r,a){function n(e,r){var a=r||[];return null!=e&&(t(Object(e))?!function(e,t){for(var r=+t.length,a=0,n=e.length;r>a;)e[n++]=t[a++];if(r!==r)for(;void 0!==t[a];)e[n++]=t[a++];return e.length=n,e}(a,"string"==typeof e?[e]:e):[].push.call(a,e)),a}if(e){r=(r||"fx")+"queue";var o=$.data(e,r);return a?(!o||$.isArray(a)?o=$.data(e,r,n(a)):o.push(a),o):o||[]}},$.dequeue=function(e,t){$.each(e.nodeType?[e]:e,function(e,r){t=t||"fx";var a=$.queue(r,t),n=a.shift();"inprogress"===n&&(n=a.shift()),n&&("fx"===t&&a.unshift("inprogress"),n.call(r,function(){$.dequeue(r,t)}))})},$.fn=$.prototype={init:function(e){if(e.nodeType)return this[0]=e,this;throw new Error("Not a DOM node.")},offset:function(){var t=this[0].getBoundingClientRect?this[0].getBoundingClientRect():{top:0,left:0};return{top:t.top+(e.pageYOffset||document.scrollTop||0)-(document.clientTop||0),left:t.left+(e.pageXOffset||document.scrollLeft||0)-(document.clientLeft||0)}},position:function(){function e(){for(var e=this.offsetParent||document;e&&"html"===!e.nodeType.toLowerCase&&"static"===e.style.position;)e=e.offsetParent;return e||document}var t=this[0],e=e.apply(t),r=this.offset(),a=/^(?:body|html)$/i.test(e.nodeName)?{top:0,left:0}:$(e).offset();return r.top-=parseFloat(t.style.marginTop)||0,r.left-=parseFloat(t.style.marginLeft)||0,e.style&&(a.top+=parseFloat(e.style.borderTopWidth)||0,a.left+=parseFloat(e.style.borderLeftWidth)||0),{top:r.top-a.top,left:r.left-a.left}}};var r={};$.expando="velocity"+(new Date).getTime(),$.uuid=0;for(var a={},n=a.hasOwnProperty,o=a.toString,i="Boolean Number String Function Array Date RegExp Object Error".split(" "),s=0;sn;++n){var o=u(r,e,a);if(0===o)return r;var i=l(r,e,a)-t;r-=i/o}return r}function p(){for(var t=0;b>t;++t)w[t]=l(t*x,e,a)}function f(t,r,n){var o,i,s=0;do i=r+(n-r)/2,o=l(i,e,a)-t,o>0?n=i:r=i;while(Math.abs(o)>h&&++s=y?c(t,s):0==l?s:f(t,r,r+x)}function g(){V=!0,(e!=r||a!=n)&&p()}var m=4,y=.001,h=1e-7,v=10,b=11,x=1/(b-1),S="Float32Array"in t;if(4!==arguments.length)return!1;for(var P=0;4>P;++P)if("number"!=typeof arguments[P]||isNaN(arguments[P])||!isFinite(arguments[P]))return!1;e=Math.min(e,1),a=Math.min(a,1),e=Math.max(e,0),a=Math.max(a,0);var w=S?new Float32Array(b):new Array(b),V=!1,C=function(t){return V||g(),e===r&&a===n?t:0===t?0:1===t?1:l(d(t),r,n)};C.getControlPoints=function(){return[{x:e,y:r},{x:a,y:n}]};var T="generateBezier("+[e,r,a,n]+")";return C.toString=function(){return T},C}function u(e,t){var r=e;return g.isString(e)?v.Easings[e]||(r=!1):r=g.isArray(e)&&1===e.length?s.apply(null,e):g.isArray(e)&&2===e.length?b.apply(null,e.concat([t])):g.isArray(e)&&4===e.length?l.apply(null,e):!1,r===!1&&(r=v.Easings[v.defaults.easing]?v.defaults.easing:h),r}function c(e){if(e){var t=(new Date).getTime(),r=v.State.calls.length;r>1e4&&(v.State.calls=n(v.State.calls));for(var o=0;r>o;o++)if(v.State.calls[o]){var s=v.State.calls[o],l=s[0],u=s[2],f=s[3],d=!!f,m=null;f||(f=v.State.calls[o][3]=t-16);for(var y=Math.min((t-f)/u.duration,1),h=0,b=l.length;b>h;h++){var S=l[h],w=S.element;if(i(w)){var V=!1;if(u.display!==a&&null!==u.display&&"none"!==u.display){if("flex"===u.display){var C=["-webkit-box","-moz-box","-ms-flexbox","-webkit-flex"];$.each(C,function(e,t){x.setPropertyValue(w,"display",t)})}x.setPropertyValue(w,"display",u.display)}u.visibility!==a&&"hidden"!==u.visibility&&x.setPropertyValue(w,"visibility",u.visibility);for(var T in S)if("element"!==T){var k=S[T],A,F=g.isString(k.easing)?v.Easings[k.easing]:k.easing;if(1===y)A=k.endValue;else{var E=k.endValue-k.startValue;if(A=k.startValue+E*F(y,u,E),!d&&A===k.currentValue)continue}if(k.currentValue=A,"tween"===T)m=A;else{if(x.Hooks.registered[T]){var j=x.Hooks.getRoot(T),H=i(w).rootPropertyValueCache[j];H&&(k.rootPropertyValue=H)}var N=x.setPropertyValue(w,T,k.currentValue+(0===parseFloat(A)?"":k.unitType),k.rootPropertyValue,k.scrollData);x.Hooks.registered[T]&&(i(w).rootPropertyValueCache[j]=x.Normalizations.registered[j]?x.Normalizations.registered[j]("extract",null,N[1]):N[1]),"transform"===N[0]&&(V=!0)}}u.mobileHA&&i(w).transformCache.translate3d===a&&(i(w).transformCache.translate3d="(0px, 0px, 0px)",V=!0),V&&x.flushTransformCache(w)}}u.display!==a&&"none"!==u.display&&(v.State.calls[o][2].display=!1),u.visibility!==a&&"hidden"!==u.visibility&&(v.State.calls[o][2].visibility=!1),u.progress&&u.progress.call(s[1],s[1],y,Math.max(0,f+u.duration-t),f,m),1===y&&p(o)}}v.State.isTicking&&P(c)}function p(e,t){if(!v.State.calls[e])return!1;for(var r=v.State.calls[e][0],n=v.State.calls[e][1],o=v.State.calls[e][2],s=v.State.calls[e][4],l=!1,u=0,c=r.length;c>u;u++){var p=r[u].element;if(t||o.loop||("none"===o.display&&x.setPropertyValue(p,"display",o.display),"hidden"===o.visibility&&x.setPropertyValue(p,"visibility",o.visibility)),o.loop!==!0&&($.queue(p)[1]===a||!/\.velocityQueueEntryFlag/i.test($.queue(p)[1]))&&i(p)){i(p).isAnimating=!1,i(p).rootPropertyValueCache={};var f=!1;$.each(x.Lists.transforms3D,function(e,t){var r=/^scale/.test(t)?1:0,n=i(p).transformCache[t];i(p).transformCache[t]!==a&&new RegExp("^\\("+r+"[^.]").test(n)&&(f=!0,delete i(p).transformCache[t])}),o.mobileHA&&(f=!0,delete i(p).transformCache.translate3d),f&&x.flushTransformCache(p),x.Values.removeClass(p,"velocity-animating")}if(!t&&o.complete&&!o.loop&&u===c-1)try{o.complete.call(n,n)}catch(d){setTimeout(function(){throw d},1)}s&&o.loop!==!0&&s(n),i(p)&&o.loop===!0&&!t&&($.each(i(p).tweensContainer,function(e,t){/^rotate/.test(e)&&360===parseFloat(t.endValue)&&(t.endValue=0,t.startValue=360),/^backgroundPosition/.test(e)&&100===parseFloat(t.endValue)&&"%"===t.unitType&&(t.endValue=0,t.startValue=100)}),v(p,"reverse",{loop:!0,delay:o.delay})),o.queue!==!1&&$.dequeue(p,o.queue)}v.State.calls[e]=!1;for(var g=0,m=v.State.calls.length;m>g;g++)if(v.State.calls[g]!==!1){l=!0;break}l===!1&&(v.State.isTicking=!1,delete v.State.calls,v.State.calls=[])}var f=function(){if(r.documentMode)return r.documentMode;for(var e=7;e>4;e--){var t=r.createElement("div");if(t.innerHTML="",t.getElementsByTagName("span").length)return t=null,e}return a}(),d=function(){var e=0;return t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||function(t){var r=(new Date).getTime(),a;return a=Math.max(0,16-(r-e)),e=r+a,setTimeout(function(){t(r+a)},a)}}(),g={isString:function(e){return"string"==typeof e},isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isFunction:function(e){return"[object Function]"===Object.prototype.toString.call(e)},isNode:function(e){return e&&e.nodeType},isNodeList:function(e){return"object"==typeof e&&/^\[object (HTMLCollection|NodeList|Object)\]$/.test(Object.prototype.toString.call(e))&&e.length!==a&&(0===e.length||"object"==typeof e[0]&&e[0].nodeType>0)},isWrapped:function(e){return e&&(e.jquery||t.Zepto&&t.Zepto.zepto.isZ(e))},isSVG:function(e){return t.SVGElement&&e instanceof t.SVGElement},isEmptyObject:function(e){for(var t in e)return!1;return!0}},$,m=!1;if(e.fn&&e.fn.jquery?($=e,m=!0):$=t.Velocity.Utilities,8>=f&&!m)throw new Error("Velocity: IE8 and below require jQuery to be loaded before Velocity.");if(7>=f)return void(jQuery.fn.velocity=jQuery.fn.animate);var y=400,h="swing",v={State:{isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),isAndroid:/Android/i.test(navigator.userAgent),isGingerbread:/Android 2\.3\.[3-7]/i.test(navigator.userAgent),isChrome:t.chrome,isFirefox:/Firefox/i.test(navigator.userAgent),prefixElement:r.createElement("div"),prefixMatches:{},scrollAnchor:null,scrollPropertyLeft:null,scrollPropertyTop:null,isTicking:!1,calls:[]},CSS:{},Utilities:$,Redirects:{},Easings:{},Promise:t.Promise,defaults:{queue:"",duration:y,easing:h,begin:a,complete:a,progress:a,display:a,visibility:a,loop:!1,delay:!1,mobileHA:!0,_cacheValues:!0},init:function(e){$.data(e,"velocity",{isSVG:g.isSVG(e),isAnimating:!1,computedStyle:null,tweensContainer:null,rootPropertyValueCache:{},transformCache:{}})},hook:null,mock:!1,version:{major:1,minor:2,patch:2},debug:!1};t.pageYOffset!==a?(v.State.scrollAnchor=t,v.State.scrollPropertyLeft="pageXOffset",v.State.scrollPropertyTop="pageYOffset"):(v.State.scrollAnchor=r.documentElement||r.body.parentNode||r.body,v.State.scrollPropertyLeft="scrollLeft",v.State.scrollPropertyTop="scrollTop");var b=function(){function e(e){return-e.tension*e.x-e.friction*e.v}function t(t,r,a){var n={x:t.x+a.dx*r,v:t.v+a.dv*r,tension:t.tension,friction:t.friction};return{dx:n.v,dv:e(n)}}function r(r,a){var n={dx:r.v,dv:e(r)},o=t(r,.5*a,n),i=t(r,.5*a,o),s=t(r,a,i),l=1/6*(n.dx+2*(o.dx+i.dx)+s.dx),u=1/6*(n.dv+2*(o.dv+i.dv)+s.dv);return r.x=r.x+l*a,r.v=r.v+u*a,r}return function a(e,t,n){var o={x:-1,v:0,tension:null,friction:null},i=[0],s=0,l=1e-4,u=.016,c,p,f;for(e=parseFloat(e)||500,t=parseFloat(t)||20,n=n||null,o.tension=e,o.friction=t,c=null!==n,c?(s=a(e,t),p=s/n*u):p=u;;)if(f=r(f||o,p),i.push(1+f.x),s+=16,!(Math.abs(f.x)>l&&Math.abs(f.v)>l))break;return c?function(e){return i[e*(i.length-1)|0]}:s}}();v.Easings={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},spring:function(e){return 1-Math.cos(4.5*e*Math.PI)*Math.exp(6*-e)}},$.each([["ease",[.25,.1,.25,1]],["ease-in",[.42,0,1,1]],["ease-out",[0,0,.58,1]],["ease-in-out",[.42,0,.58,1]],["easeInSine",[.47,0,.745,.715]],["easeOutSine",[.39,.575,.565,1]],["easeInOutSine",[.445,.05,.55,.95]],["easeInQuad",[.55,.085,.68,.53]],["easeOutQuad",[.25,.46,.45,.94]],["easeInOutQuad",[.455,.03,.515,.955]],["easeInCubic",[.55,.055,.675,.19]],["easeOutCubic",[.215,.61,.355,1]],["easeInOutCubic",[.645,.045,.355,1]],["easeInQuart",[.895,.03,.685,.22]],["easeOutQuart",[.165,.84,.44,1]],["easeInOutQuart",[.77,0,.175,1]],["easeInQuint",[.755,.05,.855,.06]],["easeOutQuint",[.23,1,.32,1]],["easeInOutQuint",[.86,0,.07,1]],["easeInExpo",[.95,.05,.795,.035]],["easeOutExpo",[.19,1,.22,1]],["easeInOutExpo",[1,0,0,1]],["easeInCirc",[.6,.04,.98,.335]],["easeOutCirc",[.075,.82,.165,1]],["easeInOutCirc",[.785,.135,.15,.86]]],function(e,t){v.Easings[t[0]]=l.apply(null,t[1])});var x=v.CSS={RegEx:{isHex:/^#([A-f\d]{3}){1,2}$/i,valueUnwrap:/^[A-z]+\((.*)\)$/i,wrappedValueAlreadyExtracted:/[0-9.]+ [0-9.]+ [0-9.]+([0-9.]+)?/,valueSplit:/([A-z]+\(.+\))|(([A-z0-9#-.]+?)(?=\s|$))/gi},Lists:{colors:["fill","stroke","stopColor","color","backgroundColor","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outlineColor"],transformsBase:["translateX","translateY","scale","scaleX","scaleY","skewX","skewY","rotateZ"],transforms3D:["transformPerspective","translateZ","scaleZ","rotateX","rotateY"]},Hooks:{templates:{textShadow:["Color X Y Blur","black 0px 0px 0px"],boxShadow:["Color X Y Blur Spread","black 0px 0px 0px 0px"],clip:["Top Right Bottom Left","0px 0px 0px 0px"],backgroundPosition:["X Y","0% 0%"],transformOrigin:["X Y Z","50% 50% 0px"],perspectiveOrigin:["X Y","50% 50%"]},registered:{},register:function(){for(var e=0;e=f)switch(e){case"name":return"filter";case"extract":var a=r.toString().match(/alpha\(opacity=(.*)\)/i);return r=a?a[1]/100:1;case"inject":return t.style.zoom=1,parseFloat(r)>=1?"":"alpha(opacity="+parseInt(100*parseFloat(r),10)+")"}else switch(e){case"name":return"opacity";case"extract":return r;case"inject":return r}}},register:function(){9>=f||v.State.isGingerbread||(x.Lists.transformsBase=x.Lists.transformsBase.concat(x.Lists.transforms3D));for(var e=0;en&&(n=1),o=!/(\d)$/i.test(n);break;case"skew":o=!/(deg|\d)$/i.test(n);break;case"rotate":o=!/(deg|\d)$/i.test(n)}return o||(i(r).transformCache[t]="("+n+")"),i(r).transformCache[t]}}}();for(var e=0;e=f||3!==o.split(" ").length||(o+=" 1"),o;case"inject":return 8>=f?4===n.split(" ").length&&(n=n.split(/\s+/).slice(0,3).join(" ")):3===n.split(" ").length&&(n+=" 1"),(8>=f?"rgb":"rgba")+"("+n.replace(/\s+/g,",").replace(/\.(\d)+(?=,)/g,"")+")"}}}()}},Names:{camelCase:function(e){return e.replace(/-(\w)/g,function(e,t){return t.toUpperCase()})},SVGAttribute:function(e){var t="width|height|x|y|cx|cy|r|rx|ry|x1|x2|y1|y2";return(f||v.State.isAndroid&&!v.State.isChrome)&&(t+="|transform"),new RegExp("^("+t+")$","i").test(e)},prefixCheck:function(e){if(v.State.prefixMatches[e])return[v.State.prefixMatches[e],!0];for(var t=["","Webkit","Moz","ms","O"],r=0,a=t.length;a>r;r++){var n;if(n=0===r?e:t[r]+e.replace(/^\w/,function(e){return e.toUpperCase()}),g.isString(v.State.prefixElement.style[n]))return v.State.prefixMatches[e]=n,[n,!0]}return[e,!1]}},Values:{hexToRgb:function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,a;return e=e.replace(t,function(e,t,r,a){return t+t+r+r+a+a}),a=r.exec(e),a?[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]:[0,0,0]},isCSSNullValue:function(e){return 0==e||/^(none|auto|transparent|(rgba\(0, ?0, ?0, ?0\)))$/i.test(e)},getUnitType:function(e){return/^(rotate|skew)/i.test(e)?"deg":/(^(scale|scaleX|scaleY|scaleZ|alpha|flexGrow|flexHeight|zIndex|fontWeight)$)|((opacity|red|green|blue|alpha)$)/i.test(e)?"":"px"},getDisplayType:function(e){var t=e&&e.tagName.toString().toLowerCase();return/^(b|big|i|small|tt|abbr|acronym|cite|code|dfn|em|kbd|strong|samp|var|a|bdo|br|img|map|object|q|script|span|sub|sup|button|input|label|select|textarea)$/i.test(t)?"inline":/^(li)$/i.test(t)?"list-item":/^(tr)$/i.test(t)?"table-row":/^(table)$/i.test(t)?"table":/^(tbody)$/i.test(t)?"table-row-group":"block"},addClass:function(e,t){e.classList?e.classList.add(t):e.className+=(e.className.length?" ":"")+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.toString().replace(new RegExp("(^|\\s)"+t.split(" ").join("|")+"(\\s|$)","gi")," ")}},getPropertyValue:function(e,r,n,o){function s(e,r){function n(){u&&x.setPropertyValue(e,"display","none")}var l=0;if(8>=f)l=$.css(e,r);else{var u=!1;if(/^(width|height)$/.test(r)&&0===x.getPropertyValue(e,"display")&&(u=!0,x.setPropertyValue(e,"display",x.Values.getDisplayType(e))),!o){if("height"===r&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var c=e.offsetHeight-(parseFloat(x.getPropertyValue(e,"borderTopWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderBottomWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingTop"))||0)-(parseFloat(x.getPropertyValue(e,"paddingBottom"))||0);return n(),c}if("width"===r&&"border-box"!==x.getPropertyValue(e,"boxSizing").toString().toLowerCase()){var p=e.offsetWidth-(parseFloat(x.getPropertyValue(e,"borderLeftWidth"))||0)-(parseFloat(x.getPropertyValue(e,"borderRightWidth"))||0)-(parseFloat(x.getPropertyValue(e,"paddingLeft"))||0)-(parseFloat(x.getPropertyValue(e,"paddingRight"))||0);return n(),p}}var d;d=i(e)===a?t.getComputedStyle(e,null):i(e).computedStyle?i(e).computedStyle:i(e).computedStyle=t.getComputedStyle(e,null),"borderColor"===r&&(r="borderTopColor"),l=9===f&&"filter"===r?d.getPropertyValue(r):d[r],(""===l||null===l)&&(l=e.style[r]),n()}if("auto"===l&&/^(top|right|bottom|left)$/i.test(r)){var g=s(e,"position");("fixed"===g||"absolute"===g&&/top|left/i.test(r))&&(l=$(e).position()[r]+"px")}return l}var l;if(x.Hooks.registered[r]){var u=r,c=x.Hooks.getRoot(u);n===a&&(n=x.getPropertyValue(e,x.Names.prefixCheck(c)[0])),x.Normalizations.registered[c]&&(n=x.Normalizations.registered[c]("extract",e,n)),l=x.Hooks.extractValue(u,n)}else if(x.Normalizations.registered[r]){var p,d;p=x.Normalizations.registered[r]("name",e),"transform"!==p&&(d=s(e,x.Names.prefixCheck(p)[0]),x.Values.isCSSNullValue(d)&&x.Hooks.templates[r]&&(d=x.Hooks.templates[r][1])),l=x.Normalizations.registered[r]("extract",e,d)}if(!/^[\d-]/.test(l))if(i(e)&&i(e).isSVG&&x.Names.SVGAttribute(r))if(/^(height|width)$/i.test(r))try{l=e.getBBox()[r]}catch(g){l=0}else l=e.getAttribute(r);else l=s(e,x.Names.prefixCheck(r)[0]);return x.Values.isCSSNullValue(l)&&(l=0),v.debug>=2&&console.log("Get "+r+": "+l),l},setPropertyValue:function(e,r,a,n,o){var s=r;if("scroll"===r)o.container?o.container["scroll"+o.direction]=a:"Left"===o.direction?t.scrollTo(a,o.alternateValue):t.scrollTo(o.alternateValue,a);else if(x.Normalizations.registered[r]&&"transform"===x.Normalizations.registered[r]("name",e))x.Normalizations.registered[r]("inject",e,a),s="transform",a=i(e).transformCache[r];else{if(x.Hooks.registered[r]){var l=r,u=x.Hooks.getRoot(r);n=n||x.getPropertyValue(e,u),a=x.Hooks.injectValue(l,a,n),r=u}if(x.Normalizations.registered[r]&&(a=x.Normalizations.registered[r]("inject",e,a),r=x.Normalizations.registered[r]("name",e)),s=x.Names.prefixCheck(r)[0],8>=f)try{e.style[s]=a}catch(c){v.debug&&console.log("Browser does not support ["+a+"] for ["+s+"]")}else i(e)&&i(e).isSVG&&x.Names.SVGAttribute(r)?e.setAttribute(r,a):e.style[s]=a;v.debug>=2&&console.log("Set "+r+" ("+s+"): "+a)}return[s,a]},flushTransformCache:function(e){function t(t){return parseFloat(x.getPropertyValue(e,t))}var r="";if((f||v.State.isAndroid&&!v.State.isChrome)&&i(e).isSVG){var a={translate:[t("translateX"),t("translateY")],skewX:[t("skewX")],skewY:[t("skewY")],scale:1!==t("scale")?[t("scale"),t("scale")]:[t("scaleX"),t("scaleY")],rotate:[t("rotateZ"),0,0]};$.each(i(e).transformCache,function(e){/^translate/i.test(e)?e="translate":/^scale/i.test(e)?e="scale":/^rotate/i.test(e)&&(e="rotate"),a[e]&&(r+=e+"("+a[e].join(" ")+") ",delete a[e])})}else{var n,o;$.each(i(e).transformCache,function(t){return n=i(e).transformCache[t],"transformPerspective"===t?(o=n,!0):(9===f&&"rotateZ"===t&&(t="rotate"),void(r+=t+n+" "))}),o&&(r="perspective"+o+" "+r)}x.setPropertyValue(e,"transform",r)}};x.Hooks.register(),x.Normalizations.register(),v.hook=function(e,t,r){var n=a;return e=o(e),$.each(e,function(e,o){if(i(o)===a&&v.init(o),r===a)n===a&&(n=v.CSS.getPropertyValue(o,t));else{var s=v.CSS.setPropertyValue(o,t,r);"transform"===s[0]&&v.CSS.flushTransformCache(o),n=s}}),n};var S=function(){function e(){return l?T.promise||null:f}function n(){function e(e){function p(e,t){var r=a,i=a,s=a;return g.isArray(e)?(r=e[0],!g.isArray(e[1])&&/^[\d-]/.test(e[1])||g.isFunction(e[1])||x.RegEx.isHex.test(e[1])?s=e[1]:(g.isString(e[1])&&!x.RegEx.isHex.test(e[1])||g.isArray(e[1]))&&(i=t?e[1]:u(e[1],o.duration),e[2]!==a&&(s=e[2]))):r=e,t||(i=i||o.easing),g.isFunction(r)&&(r=r.call(n,w,P)),g.isFunction(s)&&(s=s.call(n,w,P)),[r||0,i,s]}function f(e,t){var r,a;return a=(t||"0").toString().toLowerCase().replace(/[%A-z]+$/,function(e){return r=e,""}),r||(r=x.Values.getUnitType(e)),[a,r]}function d(){var e={myParent:n.parentNode||r.body,position:x.getPropertyValue(n,"position"),fontSize:x.getPropertyValue(n,"fontSize")},a=e.position===N.lastPosition&&e.myParent===N.lastParent,o=e.fontSize===N.lastFontSize;N.lastParent=e.myParent,N.lastPosition=e.position,N.lastFontSize=e.fontSize;var s=100,l={};if(o&&a)l.emToPx=N.lastEmToPx,l.percentToPxWidth=N.lastPercentToPxWidth,l.percentToPxHeight=N.lastPercentToPxHeight;else{var u=i(n).isSVG?r.createElementNS("http://www.w3.org/2000/svg","rect"):r.createElement("div");v.init(u),e.myParent.appendChild(u),$.each(["overflow","overflowX","overflowY"],function(e,t){v.CSS.setPropertyValue(u,t,"hidden")}),v.CSS.setPropertyValue(u,"position",e.position),v.CSS.setPropertyValue(u,"fontSize",e.fontSize),v.CSS.setPropertyValue(u,"boxSizing","content-box"),$.each(["minWidth","maxWidth","width","minHeight","maxHeight","height"],function(e,t){v.CSS.setPropertyValue(u,t,s+"%")}),v.CSS.setPropertyValue(u,"paddingLeft",s+"em"),l.percentToPxWidth=N.lastPercentToPxWidth=(parseFloat(x.getPropertyValue(u,"width",null,!0))||1)/s,l.percentToPxHeight=N.lastPercentToPxHeight=(parseFloat(x.getPropertyValue(u,"height",null,!0))||1)/s,l.emToPx=N.lastEmToPx=(parseFloat(x.getPropertyValue(u,"paddingLeft"))||1)/s,e.myParent.removeChild(u)}return null===N.remToPx&&(N.remToPx=parseFloat(x.getPropertyValue(r.body,"fontSize"))||16),null===N.vwToPx&&(N.vwToPx=parseFloat(t.innerWidth)/100,N.vhToPx=parseFloat(t.innerHeight)/100),l.remToPx=N.remToPx,l.vwToPx=N.vwToPx,l.vhToPx=N.vhToPx,v.debug>=1&&console.log("Unit ratios: "+JSON.stringify(l),n),l}if(o.begin&&0===w)try{o.begin.call(m,m)}catch(y){setTimeout(function(){throw y},1)}if("scroll"===k){var S=/^x$/i.test(o.axis)?"Left":"Top",V=parseFloat(o.offset)||0,C,A,F;o.container?g.isWrapped(o.container)||g.isNode(o.container)?(o.container=o.container[0]||o.container,C=o.container["scroll"+S],F=C+$(n).position()[S.toLowerCase()]+V):o.container=null:(C=v.State.scrollAnchor[v.State["scrollProperty"+S]],A=v.State.scrollAnchor[v.State["scrollProperty"+("Left"===S?"Top":"Left")]],F=$(n).offset()[S.toLowerCase()]+V),s={scroll:{rootPropertyValue:!1,startValue:C,currentValue:C,endValue:F,unitType:"",easing:o.easing,scrollData:{container:o.container,direction:S,alternateValue:A}},element:n},v.debug&&console.log("tweensContainer (scroll): ",s.scroll,n)}else if("reverse"===k){if(!i(n).tweensContainer)return void $.dequeue(n,o.queue);"none"===i(n).opts.display&&(i(n).opts.display="auto"),"hidden"===i(n).opts.visibility&&(i(n).opts.visibility="visible"),i(n).opts.loop=!1,i(n).opts.begin=null,i(n).opts.complete=null,b.easing||delete o.easing,b.duration||delete o.duration,o=$.extend({},i(n).opts,o);var E=$.extend(!0,{},i(n).tweensContainer);for(var j in E)if("element"!==j){var H=E[j].startValue;E[j].startValue=E[j].currentValue=E[j].endValue,E[j].endValue=H,g.isEmptyObject(b)||(E[j].easing=o.easing),v.debug&&console.log("reverse tweensContainer ("+j+"): "+JSON.stringify(E[j]),n)}s=E}else if("start"===k){var E;i(n).tweensContainer&&i(n).isAnimating===!0&&(E=i(n).tweensContainer),$.each(h,function(e,t){if(RegExp("^"+x.Lists.colors.join("$|^")+"$").test(e)){var r=p(t,!0),n=r[0],o=r[1],i=r[2];if(x.RegEx.isHex.test(n)){for(var s=["Red","Green","Blue"],l=x.Values.hexToRgb(n),u=i?x.Values.hexToRgb(i):a,c=0;cO;O++){var z={delay:F.delay,progress:F.progress};O===R-1&&(z.display=F.display,z.visibility=F.visibility,z.complete=F.complete),S(m,"reverse",z)}return e()}};v=$.extend(S,v),v.animate=S;var P=t.requestAnimationFrame||d;return v.State.isMobile||r.hidden===a||r.addEventListener("visibilitychange",function(){r.hidden?(P=function(e){return setTimeout(function(){e(!0)},16)},c()):P=t.requestAnimationFrame||d}),e.Velocity=v,e!==t&&(e.fn.velocity=S,e.fn.velocity.defaults=v.defaults),$.each(["Down","Up"],function(e,t){v.Redirects["slide"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u=l.begin,c=l.complete,p={height:"",marginTop:"",marginBottom:"",paddingTop:"",paddingBottom:""},f={};l.display===a&&(l.display="Down"===t?"inline"===v.CSS.Values.getDisplayType(e)?"inline-block":"block":"none"),l.begin=function(){u&&u.call(i,i);for(var r in p){f[r]=e.style[r];var a=v.CSS.getPropertyValue(e,r);p[r]="Down"===t?[a,0]:[0,a]}f.overflow=e.style.overflow,e.style.overflow="hidden"},l.complete=function(){for(var t in f)e.style[t]=f[t];c&&c.call(i,i),s&&s.resolver(i)},v(e,p,l)}}),$.each(["In","Out"],function(e,t){v.Redirects["fade"+t]=function(e,r,n,o,i,s){var l=$.extend({},r),u={opacity:"In"===t?1:0},c=l.complete;l.complete=n!==o-1?l.begin=null:function(){c&&c.call(i,i),s&&s.resolver(i)},l.display===a&&(l.display="In"===t?"auto":"none"),v(this,u,l)}}),v}(window.jQuery||window.Zepto||window,window,document)}); /* VelocityJS.org UI Pack (5.0.4). (C) 2014 Julian Shapiro. MIT @license: en.wikipedia.org/wiki/MIT_License. Portions copyright Daniel Eden, Christian Pucci. */ !function(t){"function"==typeof require&&"object"==typeof exports?module.exports=t():"function"==typeof define&&define.amd?define(["velocity"],t):t()}(function(){return function(t,a,e,r){function n(t,a){var e=[];return t&&a?($.each([t,a],function(t,a){var r=[];$.each(a,function(t,a){for(;a.toString().length<5;)a="0"+a;r.push(a)}),e.push(r.join(""))}),parseFloat(e[0])>parseFloat(e[1])):!1}if(!t.Velocity||!t.Velocity.Utilities)return void(a.console&&console.log("Velocity UI Pack: Velocity must be loaded first. Aborting."));var i=t.Velocity,$=i.Utilities,s=i.version,o={major:1,minor:1,patch:0};if(n(o,s)){var l="Velocity UI Pack: You need to update Velocity (jquery.velocity.js) to a newer version. Visit http://github.com/julianshapiro/velocity.";throw alert(l),new Error(l)}i.RegisterEffect=i.RegisterUI=function(t,a){function e(t,a,e,r){var n=0,s;$.each(t.nodeType?[t]:t,function(t,a){r&&(e+=t*r),s=a.parentNode,$.each(["height","paddingTop","paddingBottom","marginTop","marginBottom"],function(t,e){n+=parseFloat(i.CSS.getPropertyValue(a,e))})}),i.animate(s,{height:("In"===a?"+":"-")+"="+n},{queue:!1,easing:"ease-in-out",duration:e*("In"===a?.6:1)})}return i.Redirects[t]=function(n,s,o,l,c,u){function f(){s.display!==r&&"none"!==s.display||!/Out$/.test(t)||$.each(c.nodeType?[c]:c,function(t,a){i.CSS.setPropertyValue(a,"display","none")}),s.complete&&s.complete.call(c,c),u&&u.resolver(c||n)}var p=o===l-1;a.defaultDuration="function"==typeof a.defaultDuration?a.defaultDuration.call(c,c):parseFloat(a.defaultDuration);for(var d=0;d1&&($.each(a.reverse(),function(t,e){var r=a[t+1];if(r){var n=e.o||e.options,s=r.o||r.options,o=n&&n.sequenceQueue===!1?"begin":"complete",l=s&&s[o],c={};c[o]=function(){var t=r.e||r.elements,a=t.nodeType?[t]:t;l&&l.call(a,a),i(e)},r.o?r.o=$.extend({},s,c):r.options=$.extend({},s,c)}}),a.reverse()),i(a[0])}}(window.jQuery||window.Zepto||window,window,document)}); !function(){"use strict";function t(o){if(!o)throw new Error("No options passed to MPCwaypoint constructor");if(!o.element)throw new Error("No element option passed to MPCwaypoint constructor");if(!o.handler)throw new Error("No handler option passed to MPCwaypoint constructor");this.key="MPCwaypoint-"+e,this.options=t.Adapter.extend({},t.defaults,o),this.element=this.options.element,this.adapter=new t.Adapter(this.element),this.callback=o.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=t.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=t.Context.findOrCreateByElement(this.options.context),t.offsetAliases[this.options.offset]&&(this.options.offset=t.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),i[this.key]=this,e+=1}var e=0,i={};t.prototype.queueTrigger=function(t){this.group.queueTrigger(this,t)},t.prototype.trigger=function(t){this.enabled&&this.callback&&this.callback.apply(this,t)},t.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete i[this.key]},t.prototype.disable=function(){return this.enabled=!1,this},t.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},t.prototype.next=function(){return this.group.next(this)},t.prototype.previous=function(){return this.group.previous(this)},t.invokeAll=function(t){var e=[];for(var o in i)e.push(i[o]);for(var n=0,r=e.length;r>n;n++)e[n][t]()},t.destroyAll=function(){t.invokeAll("destroy")},t.disableAll=function(){t.invokeAll("disable")},t.enableAll=function(){t.invokeAll("enable")},t.refreshAll=function(){t.Context.refreshAll()},t.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},t.viewportWidth=function(){return document.documentElement.clientWidth},t.adapters=[],t.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},t.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.MPCwaypoint=t}(),function(){"use strict";function t(t){window.setTimeout(t,1e3/60)}function e(t){this.element=t,this.Adapter=n.Adapter,this.adapter=new this.Adapter(t),this.key="MPCwaypoint-context-"+i,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.MPCwaypoints={vertical:{},horizontal:{}},t.MPCwaypointContextKey=this.key,o[t.MPCwaypointContextKey]=this,i+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var i=0,o={},n=window.MPCwaypoint,r=window.onload;e.prototype.add=function(t){var e=t.options.horizontal?"horizontal":"vertical";this.MPCwaypoints[e][t.key]=t,this.refresh()},e.prototype.checkEmpty=function(){var t=this.Adapter.isEmptyObject(this.MPCwaypoints.horizontal),e=this.Adapter.isEmptyObject(this.MPCwaypoints.vertical);t&&e&&(this.adapter.off(".MPCwaypoints"),delete o[this.key])},e.prototype.createThrottledResizeHandler=function(){function t(){e.handleResize(),e.didResize=!1}var e=this;this.adapter.on("resize.MPCwaypoints",function(){e.didResize||(e.didResize=!0,n.requestAnimationFrame(t))})},e.prototype.createThrottledScrollHandler=function(){function t(){e.handleScroll(),e.didScroll=!1}var e=this;this.adapter.on("scroll.MPCwaypoints",function(){(!e.didScroll||n.isTouch)&&(e.didScroll=!0,n.requestAnimationFrame(t))})},e.prototype.handleResize=function(){n.Context.refreshAll()},e.prototype.handleScroll=function(){var t={},e={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var i in e){var o=e[i],n=o.newScroll>o.oldScroll,r=n?o.forward:o.backward;for(var s in this.MPCwaypoints[i]){var a=this.MPCwaypoints[i][s],l=o.oldScroll=a.triggerPoint,p=l&&h,u=!l&&!h;(p||u)&&(a.queueTrigger(r),t[a.group.id]=a.group)}}for(var c in t)t[c].flushTriggers();this.oldScroll={x:e.horizontal.newScroll,y:e.vertical.newScroll}},e.prototype.innerHeight=function(){return this.element==this.element.window?n.viewportHeight():this.adapter.innerHeight()},e.prototype.remove=function(t){delete this.MPCwaypoints[t.axis][t.key],this.checkEmpty()},e.prototype.innerWidth=function(){return this.element==this.element.window?n.viewportWidth():this.adapter.innerWidth()},e.prototype.destroy=function(){var t=[];for(var e in this.MPCwaypoints)for(var i in this.MPCwaypoints[e])t.push(this.MPCwaypoints[e][i]);for(var o=0,n=t.length;n>o;o++)t[o].destroy()},e.prototype.refresh=function(){var t,e=this.element==this.element.window,i=e?void 0:this.adapter.offset(),o={};this.handleScroll(),t={horizontal:{contextOffset:e?0:i.left,contextScroll:e?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:e?0:i.top,contextScroll:e?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}};for(var r in t){var s=t[r];for(var a in this.MPCwaypoints[r]){var l,h,p,u,c,d=this.MPCwaypoints[r][a],f=d.options.offset,w=d.triggerPoint,y=0,g=null==w;d.element!==d.element.window&&(y=d.adapter.offset()[s.offsetProp]),"function"==typeof f?f=f.apply(d):"string"==typeof f&&(f=parseFloat(f),d.options.offset.indexOf("%")>-1&&(f=Math.ceil(s.contextDimension*f/100))),l=s.contextScroll-s.contextOffset,d.triggerPoint=y+l-f,h=w=s.oldScroll,u=h&&p,c=!h&&!p,!g&&u?(d.queueTrigger(s.backward),o[d.group.id]=d.group):!g&&c?(d.queueTrigger(s.forward),o[d.group.id]=d.group):g&&s.oldScroll>=d.triggerPoint&&(d.queueTrigger(s.forward),o[d.group.id]=d.group)}}return n.requestAnimationFrame(function(){for(var t in o)o[t].flushTriggers()}),this},e.findOrCreateByElement=function(t){return e.findByElement(t)||new e(t)},e.refreshAll=function(){for(var t in o)o[t].refresh()},e.findByElement=function(t){return o[t.MPCwaypointContextKey]},window.onload=function(){r&&r(),e.refreshAll()},n.requestAnimationFrame=function(e){var i=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||t;i.call(window,e)},n.Context=e}(),function(){"use strict";function t(t,e){return t.triggerPoint-e.triggerPoint}function e(t,e){return e.triggerPoint-t.triggerPoint}function i(t){this.name=t.name,this.axis=t.axis,this.id=this.name+"-"+this.axis,this.MPCwaypoints=[],this.clearTriggerQueues(),o[this.axis][this.name]=this}var o={vertical:{},horizontal:{}},n=window.MPCwaypoint;i.prototype.add=function(t){this.MPCwaypoints.push(t)},i.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},i.prototype.flushTriggers=function(){for(var i in this.triggerQueues){var o=this.triggerQueues[i],n="up"===i||"left"===i;o.sort(n?e:t);for(var r=0,s=o.length;s>r;r+=1){var a=o[r];(a.options.continuous||r===o.length-1)&&a.trigger([i])}}this.clearTriggerQueues()},i.prototype.next=function(e){this.MPCwaypoints.sort(t);var i=n.Adapter.inArray(e,this.MPCwaypoints),o=i===this.MPCwaypoints.length-1;return o?null:this.MPCwaypoints[i+1]},i.prototype.previous=function(e){this.MPCwaypoints.sort(t);var i=n.Adapter.inArray(e,this.MPCwaypoints);return i?this.MPCwaypoints[i-1]:null},i.prototype.queueTrigger=function(t,e){this.triggerQueues[e].push(t)},i.prototype.remove=function(t){var e=n.Adapter.inArray(t,this.MPCwaypoints);e>-1&&this.MPCwaypoints.splice(e,1)},i.prototype.first=function(){return this.MPCwaypoints[0]},i.prototype.last=function(){return this.MPCwaypoints[this.MPCwaypoints.length-1]},i.findOrCreate=function(t){return o[t.axis][t.name]||new i(t)},n.Group=i}(),function(){"use strict";function t(t){this.$element=e(t)}var e=window.jQuery,i=window.MPCwaypoint;e.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],function(e,i){t.prototype[i]=function(){var t=Array.prototype.slice.call(arguments);return this.$element[i].apply(this.$element,t)}}),e.each(["extend","inArray","isEmptyObject"],function(i,o){t[o]=e[o]}),i.adapters.push({name:"jquery",Adapter:t}),i.Adapter=t}(),function(){"use strict";function t(t){return function(){var i=[],o=arguments[0];return t.isFunction(arguments[0])&&(o=t.extend({},arguments[1]),o.handler=arguments[0]),this.each(function(){var n=t.extend({},o,{element:this});"string"==typeof n.context&&(n.context=t(this).closest(n.context)[0]),i.push(new e(n))}),i}}var e=window.MPCwaypoint;window.jQuery&&(window.jQuery.fn.MPCwaypoint=t(window.jQuery)),window.Zepto&&(window.Zepto.fn.MPCwaypoint=t(window.Zepto))}(); !function(){"use strict";function t(){}function e(t){this.options=i.Adapter.extend({},e.defaults,t),this.axis=this.options.horizontal?"horizontal":"vertical",this.MPCwaypoints=[],this.element=this.options.element,this.createMPCwaypoints()}var i=window.MPCwaypoint;e.prototype.createMPCwaypoints=function(){for(var t={vertical:[{down:"enter",up:"exited",offset:"100%"},{down:"entered",up:"exit",offset:"bottom-in-view"},{down:"exit",up:"entered",offset:0},{down:"exited",up:"enter",offset:function(){return-this.adapter.outerHeight()}}],horizontal:[{right:"enter",left:"exited",offset:"100%"},{right:"entered",left:"exit",offset:"right-in-view"},{right:"exit",left:"entered",offset:0},{right:"exited",left:"enter",offset:function(){return-this.adapter.outerWidth()}}]},e=0,i=t[this.axis].length;i>e;e++){var n=t[this.axis][e];this.createMPCwaypoint(n)}},e.prototype.createMPCwaypoint=function(t){var e=this;this.MPCwaypoints.push(new i({context:this.options.context,element:this.options.element,enabled:this.options.enabled,handler:function(t){return function(i){e.options[t[i]].call(e,i)}}(t),offset:t.offset,horizontal:this.options.horizontal}))},e.prototype.destroy=function(){for(var t=0,e=this.MPCwaypoints.length;e>t;t++)this.MPCwaypoints[t].destroy();this.MPCwaypoints=[]},e.prototype.disable=function(){for(var t=0,e=this.MPCwaypoints.length;e>t;t++)this.MPCwaypoints[t].disable()},e.prototype.enable=function(){for(var t=0,e=this.MPCwaypoints.length;e>t;t++)this.MPCwaypoints[t].enable()},e.defaults={context:window,enabled:!0,enter:t,entered:t,exit:t,exited:t},i.Inview=e}(); !function(a){"use strict";function b(b){var c=a('.mpc-alert__dismiss[data-alert="'+b.data("id")+'"]'),d=c.data("frequency"),e=b;b.parents(".mpc-alert-wrap").length?e=b.parents(".mpc-alert-wrap"):b.parents(".mpc-ribbon-wrap").length&&(e=b.parents(".mpc-ribbon-wrap")),c.on("click",function(){e.css("height",e.height()),e.velocity({opacity:0,height:0,margin:0},{duration:250,complete:function(){e.css("display","none")}}),"always"!=d&&a.post(_mpc_vars.ajax_url,{action:"mpc_set_alert_cookie",id:b.data("cookie"),frequency:d})}),b.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_alert=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-alert");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_alert.__super__.rendered.call(this)}})),a(".mpc-alert").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a,c,d){var e,f=c.eq(d.word_index),g=f.data("parent_block");d.word_index=d.word_index+1,e=setTimeout(function(){(d.word_index=d.words&&d.loop)&&(d.word_index>=d.words&&d.loop&&(d.word_index=0),d.dynamic&&d.words_wrap.stop(!0).animate({width:c.eq(d.word_index).data("width")},d.duration),g.stop(!0).animate({"margin-top":-d.height},{duration:d.duration,complete:function(){g.appendTo(d.words_wrap).css("margin-top",""),b(a,c,d)}}))},d.delay),a.on("mpc.clear",function(){clearTimeout(e)})}function c(a,b,d){var e,f,g,h=b.eq(d.word_index),i=0,j=h.data("default_text"),k=j.length;_mpc_vars.breakpoints.custom("(max-width: 992px)")&&(j=h.data("clear_text")),d.word_index=d.word_index+1,e=setInterval(function(){h.text(h.text()+j[i++]),i>=k&&(clearInterval(e),g=setTimeout(function(){(d.word_index=d.words&&d.loop)&&(d.word_index>=d.words&&d.loop&&(d.word_index=0),f=setInterval(function(){h.text(h.text().slice(0,-1)),--i<0&&(clearInterval(f),c(a,b,d))},d.duration/2))},d.delay))},d.duration),a.on("mpc.clear",function(){clearInterval(e),clearInterval(f),clearTimeout(g)})}function d(d){var e=d.find(".mpc-animated-text"),f=d.find(".mpc-animated-text__word"),g=d.data("options"),h="",i="",j={style:"rotator",duration:1e3,delay:1e3,loop:!0,dynamic:!1,words:f.length,word_index:0,words_wrap:e};void 0===g?g=j:(g=a.extend(j,g),g.duration=parseInt(g.duration),g.delay=parseInt(g.delay)),1==f.length&&"rotator"==g.style||("rotator"==g.style?(g.height=g.default_height=e.height(),e.height(g.height),d.addClass("mpc-loaded"),f.each(function(){var b=a(this);b.data("parent_block",b.parent()),g.dynamic&&b.data("width",b.width())}),g.dynamic&&(e.stop(!0).animate({width:f.eq(0).data("width")},g.duration),_mpc_vars.$window.on("load",function(){f.each(function(){var b=a(this);b.data("width",b.width())})})),b(d,f,g),_mpc_vars.$window.on("mpc.resize",function(){var b=0;f.each(function(){var c=a(this);c[0].scrollHeight>b&&(b=c[0].scrollHeight)}),g.height=b,f.height(g.height),e.height(g.height)})):"typewrite"==g.style&&(f.each(function(){var b=a(this);h=b.text().replace(/ /g," "),b.data("clear_text",b.text()),b.data("default_text",h),i.length'),setTimeout(function(){b.trigger("mpc.init-fast")},20)})}function c(a){return Math.random()*a.children().length}function d(b){if(a.fn.mpcslick&&!b.is(".slick-initialized")){var f="true"==b.data("slick-random")?c(b):b.data("slick-initial");b.mpcslick({prevArrow:'[data-mpcslider="'+b.attr("id")+'"] .mpcslick-prev',nextArrow:'[data-mpcslider="'+b.attr("id")+'"] .mpcslick-next',adaptiveHeight:!0,initialSlide:f,responsive:_mpc_vars.carousel_breakpoints(b),rtl:_mpc_vars.rtl.global()}),e(b)}else setTimeout(function(){d(b)},50)}function e(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_carousel_anything=window.InlineShortcodeViewContainer.extend({events:{"click > .vc_controls .vc_element .vc_control-btn-delete":"destroy","click > .vc_controls .vc_element .vc_control-btn-edit":"edit","click > .vc_controls .vc_element .vc_control-btn-clone":"clone","click > .vc_controls .vc_element .vc_control-btn-prepend":"prependElement","click > .vc_controls .vc_control-btn-append":"appendElement","click > .vc_empty-element":"appendElement","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},initialize:function(a){_.bindAll(this,"mpcUpdate"),window.InlineShortcodeViewContainer.__super__.initialize.call(this,a),this.parent_view=vc.shortcodes.get(this.model.get("parent_id")).view,this.listenTo(this.model,"update",this.mpcUpdate)},rendered:function(){var a=this.$el.find(".mpc-carousel-anything"),c=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[c]),_mpc_vars.$body.trigger("mpc.font-loaded",[c]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a),d(a)},250),window.InlineShortcodeView_mpc_carousel_anything.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-carousel-anything").mpcslick("unslick")},prevSlide:function(){this.$el.find(".mpc-carousel-anything").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-carousel-anything").mpcslick("slickNext")}})),a(".mpc-carousel-anything").each(function(){var c=a(this);b(c),c.one("mpc.init",function(){d(c)})})}(jQuery),function(a){"use strict";function b(b){if(_mpc_vars.breakpoints.custom("(min-width: 1200px)"))return void(b.is(".mpc-layout--classic")?b.css("height",""):b.css("height",b.attr("data-height")));var c=b.find("img"),d=b.height(),e=b.mpcslick("slickCurrentSlide");a.each(c,function(){var c=a(this),e=c.attr("height")/c.attr("width")*.9;b.width() .vc_controls .vc_control-btn-delete":"destroy","click > .vc_controls .vc_control-btn-edit":"edit","click > .vc_controls .vc_control-btn-clone":"clone",mousemove:"checkControlsPosition","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-carousel-image"),b=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[b]),_mpc_vars.$body.trigger("mpc.inited",[a,b]),setTimeout(function(){c(a)},250),window.InlineShortcodeView_mpc_carousel_image.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-carousel-image").mpcslick("unslick"),window.InlineShortcodeView_mpc_carousel_image.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-carousel-image").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-carousel-image").mpcslick("slickNext")}})),a(".mpc-carousel-image").each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})})}(jQuery),function(a){"use strict";function b(d){a.fn.mpcslick&&!d.is(".slick-initialized")?c(d):setTimeout(function(){b(d)},50)}function c(a){a.on("init",function(){setTimeout(function(){mpc_init_lightbox(a,!0)},250)}),a.mpcslick({prevArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-prev',nextArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-next',responsive:_mpc_vars.carousel_breakpoints(a),rtl:_mpc_vars.rtl.global()}),a.on("mouseleave",function(){setTimeout(function(){a.mpcslick("getSlick").options.autoplay&&a.mpcslick("play")},250)}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_carousel_posts=window.InlineShortcodeView.extend({events:{"click > .vc_controls .vc_control-btn-delete":"destroy","click > .vc_controls .vc_control-btn-edit":"edit","click > .vc_controls .vc_control-btn-clone":"clone",mousemove:"checkControlsPosition","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-carousel-posts"),c=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_carousel_posts.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-carousel-posts").mpcslick("unslick"),window.InlineShortcodeView_mpc_carousel_posts.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-carousel-posts").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-carousel-posts").mpcslick("slickNext")}})),a(".mpc-carousel-posts").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(b){if(_mpc_vars.breakpoints.custom("(min-width: 1200px)"))return void b.css("height","");var c=b.find("img"),d=b.height(),e=b.mpcslick("slickCurrentSlide");a.each(c,function(){var c=a(this),e=c.attr("height")/c.attr("width")*.9;b.width() .vc_controls .vc_control-btn-delete":"destroy","click > .vc_controls .vc_control-btn-edit":"edit","click > .vc_controls .vc_control-btn-clone":"clone",mousemove:"checkControlsPosition","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-carousel-slider"),b=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[b]),_mpc_vars.$body.trigger("mpc.inited",[a,b]),setTimeout(function(){c(a)},250),window.InlineShortcodeView_mpc_carousel_slider.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-carousel-slider").mpcslick("unslick"),window.InlineShortcodeView_mpc_carousel_image.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-carousel-slider").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-carousel-slider").mpcslick("slickNext")}})),a(".mpc-carousel-slider").each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})})}(jQuery),function(a){"use strict";function b(d){a.fn.mpcslick&&!d.is(".slick-initialized")?c(d):setTimeout(function(){b(d)},50)}function c(b){var c="admin_frontend_editor"==window.vc_mode?'[data-tag="mpc_testimonial"]':"div";b.children(".mpc-init").removeClass("mpc-init"),b.is(".mpc-carousel--gap")&&b.find(".mpc-testimonial").each(function(){var b=a(this);b.parent().is(".mpc-gap")||b.wrap('
')}),b.mpcslick({slide:c,prevArrow:'[data-mpcslider="'+b.attr("id")+'"] .mpcslick-prev',nextArrow:'[data-mpcslider="'+b.attr("id")+'"] .mpcslick-next',adaptiveHeight:!0,responsive:_mpc_vars.carousel_breakpoints(b,1),rtl:_mpc_vars.rtl.global()}),b.on("mouseleave",function(){setTimeout(function(){b.mpcslick("getSlick").options.autoplay&&b.mpcslick("play")},250)}),b.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_carousel_testimonial=window.InlineShortcodeViewContainer.extend({events:{"click > .vc_controls .vc_element .vc_control-btn-delete":"destroy","click > .vc_controls .vc_element .vc_control-btn-edit":"edit","click > .vc_controls .vc_element .vc_control-btn-clone":"clone","click > .vc_controls .vc_element .vc_control-btn-prepend":"prependElement","click > .vc_controls .vc_control-btn-append":"appendElement","click > .vc_empty-element":"appendElement",mouseenter:"resetActive",mouseleave:"holdActive","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-carousel-testimonial"),c=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[c]),_mpc_vars.$body.trigger("mpc.font-loaded",[c]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_carousel_testimonial.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-carousel-testimonial").mpcslick("unslick"),window.InlineShortcodeView_mpc_carousel_testimonial.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-carousel-testimonial").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-carousel-testimonial").mpcslick("slickNext")}})),a(".mpc-carousel-testimonial").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a,b){return void 0==a.type?(a.type="color",a.color=b?"transparent":"#aaaaaa"):"color"==a.type?void 0!=a.color&&""!=a.color||(a.type="color",a.color=b?"transparent":"#aaaaaa"):"image"==a.type?void 0!=a.image&&""!=a.image||(a.type="color",a.color=b?"transparent":"#aaaaaa"):"gradient"==a.type&&(void 0!=a.gradient&&""!=a.gradient||(a.type="color",a.color=b?"transparent":"#aaaaaa")),a}function c(a,b,c,e){var f=a.width,g=.5*c.width,h=.5*c.height,i=.5*c.width;if("color"==a.type)a.loaded=!0,a.strokeStyle=a.color,e.trigger("mpc.loaded");else if("image"==a.type){var j=new Image;j.onload=function(){a.loaded=!0,a.strokeStyle=b.createPattern(j,a.repeat),e.trigger("mpc.loaded")},j.src=a.image}else if("gradient"==a.type){var k=a.gradient.split("||");if(5==k.length){var l,m=k[2].split(";");if("linear"==k[4]){var n=parseInt(k[3])+180,o=d(g,h,i+.5*f,n),p=d(g,h,i+.5*f,n+180>360?n-180:n+180);l=b.createLinearGradient(o.x,o.y,p.x,p.y)}else l=b.createRadialGradient(g,h,0,g,h,i+.5*f);l.addColorStop(.01*m[0],k[0]),l.addColorStop(.01*m[1],k[1]),a.loaded=!0,a.strokeStyle=l,e.trigger("mpc.loaded")}}}function d(a,b,c,d){return d=(d-90)*Math.PI/180,{x:a+c*Math.cos(d),y:b+c*Math.sin(d)}}function e(a,b,c,e){var f,g,h=.5*-Math.PI,i=Math.PI/180,j=2*Math.PI,k=e.width,l=.5*c.width,m=.5*c.height,n=.5*c.width-.5*k,o=!1!==e.marker,p=3e3;void 0!=e.fast&&(p=0),a.velocity({tween:[0,1]},{easing:[.25,.1,.25,1],duration:p*e.value,progress:function(a,k,p,q,r){f=360*(e.value-e.value*r),g=d(l,m,n,f),b.clearRect(0,0,c.width,c.height),b.lineWidth=e.width-.5,b.strokeStyle=e.chart_back.strokeStyle,b.beginPath(),b.arc(l,m,n,0,j,!1),b.stroke(),b.lineWidth=e.width,b.strokeStyle=e.chart_front.strokeStyle,b.beginPath(),b.arc(l,m,n,h,f*i+h,!1),b.stroke(),o&&e.marker.css({left:g.x,top:g.y})}})}function f(a,d){var f,g=a.find(".mpc-chart__marker"),h=a.find(".mpc-chart__box"),i=a.find(".mpc-chart__inner_circle"),j=a.find(".mpc-chart__outer_circle"),k=a.data("options"),l=a.find("canvas.mpc-chart")[0],m=l.getContext("2d");void 0!==k&&((a.is(".mpc-init--fast")||d)&&(k.fast=!0),k.radius=parseInt(k.radius),k.value=parseInt(k.value)/100,k.width=parseInt(k.width),k.default_radius=k.radius,a.width()<2*k.radius&&(k.radius=Math.floor(a.width()/2),h.width(2*k.radius),i.length&&(f=k.inner_radius*(k.radius/k.default_radius)*2,i.css({width:f,height:f})),j.length&&(f=k.outer_radius*(k.radius/k.default_radius)*2,j.css({width:f,height:f}))),k.width>=k.radius&&(k.width=k.radius-.01),k.marker=!!g.length&&g,l.setAttribute("width",2*k.radius),l.setAttribute("height",2*k.radius),m.lineWidth=k.width,k.chart_back=void 0!=k.chart_back?k.chart_back:{},k.chart_front=void 0!=k.chart_front?k.chart_front:{},k.chart_back.width=k.width,k.chart_back.loaded=!1,k.chart_front.width=k.width,k.chart_front.loaded=!1,k.chart_back=b(k.chart_back,!0),k.chart_front=b(k.chart_front,!1),a.on("mpc.loaded",function(){if(k.chart_front.loaded&&k.chart_back.loaded){var b=a.parents(".mpc-container");a.trigger("mpc.inited"),b.length?a.is(".mpc-parent--init")?b.one("mpc.parent-init",function(){e(h,m,l,k)}):e(h,m,l,k):a.is(".mpc-waypoint--init")?e(h,m,l,k):a.one("mpc.waypoint",function(){e(h,m,l,k)})}}),c(k.chart_back,m,l,a),c(k.chart_front,m,l,a),_mpc_vars.$window.on("mpc.resize",function(){var b=k.radius;a.width()<2*k.radius?(k.radius=Math.floor(a.width()/2),h.width(2*k.radius)):k.radius')})}function e(d){var e=d.find(".mpc-connected-icons__line"),f=""!=d.attr("data-target")?d.attr("data-target"):"icon",g=""!=d.attr("data-layout")?d.attr("data-layout"):"vertical",h="box"==f?d.find(".mpc-icon-column"):d.find(".mpc-icon-column > .mpc-icon"),i=h.length-1;h.each(function(d){if(d>=i)return!0;var h=a(this),j=h.parents(".mpc-connected-icons__item"),k="box"==f?j.next().find(".mpc-icon-column"):j.next().find(".mpc-icon"),l=e.clone(),m="horizontal"==g?e.height():e.width(),n=c(h),o=c(k),p=b(),q={},r={};"horizontal"==g?(p.size.width=o.offset.left-n.offset.left-n.size.width,p.margin.left=n.border.right,p.position.top=.5*(n.size.height-m)-n.border.top,p.position.left=!1,q={top:parseInt(p.position.top),width:parseInt(p.size.width),marginLeft:parseInt(p.margin.left)},r={width:parseInt(p.size.width)}):(p.size.height=o.offset.top-n.offset.top-n.size.height,p.margin.top=n.border.top,p.position.left=.5*(n.size.width-m)-n.border.left,p.position.top=!1,q={left:parseInt(p.position.left),height:parseInt(p.size.height),marginTop:parseInt(p.margin.top)},r={height:parseInt(p.size.height)}),l.css(q).appendTo(h),l.find("span").velocity(r,300)})}function f(a){var b=a.data("ci-cols");a.find(".mpc-connected-icons__item .mpc-connected-icons__line").remove(),(b>=3&&_mpc_vars.breakpoints.custom("(min-width: 992px)")||_mpc_vars.breakpoints.custom("(min-width: 769px)"))&&e(a)}function g(a){(a.data("ci-cols")>=3&&_mpc_vars.breakpoints.custom("(min-width: 992px)")||_mpc_vars.breakpoints.custom("(min-width: 769px)"))&&e(a),a.trigger("mpc.inited")}function h(b){a.fn.imagesLoaded?(b.imagesLoaded().always(function(){e(b)}),b.trigger("mpc.inited")):setTimeout(function(){h(b)},50)}function i(a){a.find(".vc_mpc_icon_column").addClass("mpc-connected-icons__item")}if(void 0!==window.InlineShortcodeViewContainer){var j=a("body");window.InlineShortcodeView_mpc_connected_icons=window.InlineShortcodeViewContainer.extend({initialize:function(a){_.bindAll(this,"holdActive"),window.InlineShortcodeView_mpc_connected_icons.__super__.initialize.call(this,a),this.parent_view=vc.shortcodes.get(this.model.get("parent_id")).view,this.listenTo(this.model,"mpcRender",this.rendered)},rendered:function(){var a=this.$el.find(".mpc-connected-icons");a.addClass("mpc-waypoint--init"),j.trigger("mpc.icon-loaded",[a]),j.trigger("mpc.font-loaded",[a]),j.trigger("mpc.inited",[a]),setTimeout(function(){i(a),a.data("ci-cols")>=3&&_mpc_vars.breakpoints.custom("(min-width: 992px)")||_mpc_vars.breakpoints.custom("(min-width: 769px)")?g(a):a.trigger("mpc.inited")},250),window.InlineShortcodeView_mpc_connected_icons.__super__.rendered.call(this)},render:function(){return window.InlineShortcodeView_mpc_connected_icons.__super__.render.call(this),this.content().addClass("vc_element-container"),this.$el.addClass("vc_container-block"),this},beforeUpdate:function(){this.$el.find(".mpc-icon-column .mpc-connected-icons__line").remove()}})}var k=a(".mpc-connected-icons");d(k),k.each(function(){var b=a(this);b.one("mpc.init",function(){_mpc_vars.breakpoints.custom("(min-width: 769px)")?h(b):b.trigger("mpc.inited")})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(k,function(){f(a(this))})})}(jQuery),function(a){"use strict";function b(a,c){a.countdown?a.countdown({until:new Date(c._until),format:c._format,layout:c._layout,labels:c._labels,labels1:c._labels}):setTimeout(function(){b(a,c)},50)}function c(a){var c=a.find(".mpc-countdown__content"),g=c.attr("data-until"),h=c.attr("data-format"),i=c.attr("data-layout"),j=c.attr("data-labels").split("/"),k="mpc-typography--"+a.attr("data-label-typo"),l="mpc-typography--"+a.attr("data-item-typo");"top"==i?(i=e.replace(//g,''),i=i.replace(/

/g,'

')):(i=f.replace(//g,''),i=i.replace(/

/g,'

')),b(c,{_until:g,_format:h,_layout:i,_labels:j}),c.attr("data-columns",h.length),a.trigger("mpc.inited"),"1"==a.attr("data-square")&&setTimeout(function(){d(a)},10)}function d(b){var c=0,d=0;b.find(".mpc-countdown__section span").each(function(){var b=a(this);b.outerHeight()>b.outerWidth()&&b.outerHeight()>=c?(c=b.outerHeight(),d=b.outerHeight(!0)):b.outerWidth()>=c&&(c=b.outerWidth(),d=b.outerWidth(!0))});var e='.mpc-countdown[id="'+b.attr("id")+'"] .mpc-main { height: '+c+"px; width: "+c+"px; }";e+='.mpc-countdown[id="'+b.attr("id")+'"] .mpc-countdown__section { min-width: '+d+"px; }",b.after("")}var e,f;f='{y<}
{yn}

{yl}

{y>}',f+='{o<}
{on}

{ol}

{o>}',f+='{d<}
{dn}

{dl}

{d>}',f+='{h<}
{hn}

{hl}

{h>}',f+='{m<}
{mn}

{ml}

{m>}',f+='{s<}
{sn}

{sl}

{s>}',e='{y<}

{yl}

{yn}
{y>}',e+='{o<}

{ol}

{on}
{o>}',e+='{d<}

{dl}

{dn}
{d>}',e+='{h<}

{hl}

{hn}
{h>}',e+='{m<}

{ml}

{mn}
{m>}',e+='{s<}

{sl}

{sn}
{s>}',void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_countdown=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-countdown");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),c(a),window.InlineShortcodeView_mpc_countdown.__super__.rendered.call(this)},beforeUpdate:function(){var a=this.$el.find(".mpc-countdown__content");a.countdown("destroy"),a.siblings("style").remove()}})),a(".mpc-countdown").each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})})}(jQuery),function(a){"use strict";function b(a){a.text(a.attr("data-to"))}function c(a){if("undefined"!=typeof CountUp){var b=a.data("options"),d=new CountUp(a[0],parseFloat(b.initial),parseFloat(b.value),parseInt(b.decimals),parseFloat(b.duration),b);parseInt(b.delay)>0?setTimeout(function(){d.start()},parseInt(b.delay)):d.start()}else setTimeout(function(){c(a)},50)}function d(a){a.trigger("mpc.inited")}a(".mpc-counter").each(function(){var e=a(this),f=e.parents(".mpc-container");f.length?f.one("mpc.parent-init",function(){c(e.find(".mpc-counter--target"))}):e.is(".mpc-waypoint--init")?c(e.find(".mpc-counter--target")):e.one("mpc.waypoint",function(){e.is(".mpc-init--fast")||c(e.find(".mpc-counter--target"))}),e.one("mpc.init",function(){e.is(".mpc-init--fast")&&b(e.find(".mpc-counter--target")),d(e)}),e.one("mpc.init-fast",function(){b(e.find(".mpc-counter--target"))})}),void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_counter=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-counter");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),c(a.find(".mpc-counter--target")),window.InlineShortcodeView_mpc_counter.__super__.rendered.call(this)}}))}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_divider=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-divider");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_divider.__super__.rendered.call(this)}})),a(".mpc-divider").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}if(void 0!==window.InlineShortcodeView){var c=a("body");window.InlineShortcodeView_mpc_dropcap=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-dropcap");a.addClass("mpc-waypoint--init"),c.trigger("mpc.icon-loaded",[a]),c.trigger("mpc.font-loaded",[a]),c.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_dropcap.__super__.rendered.call(this)}})}a(".mpc-dropcap").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(b){b.children().each(function(){a(this).addClass("mpc-init--fast").wrap('
')})}function c(b){a.fn.isotope&&a.fn.imagesLoaded?d(b):setTimeout(function(){c(b)},50)}function d(a){var b=a.parents(".mpc-row");a.imagesLoaded().done(function(){a.on("layoutComplete",function(){MPCwaypoint.refreshAll()}),a.trigger("mpc.inited"),a.isotope({itemSelector:".mpc-grid__item",layoutMode:"masonry"}),_mpc_vars.$document.ready(function(){setTimeout(function(){a.data("isotope")&&a.isotope("layout")},250)}),b.on("mpc.rowResize",function(){a.data("isotope")&&a.isotope("layout")})})}a(".mpc-grid-anything").each(function(){var d=a(this);b(d),d.one("mpc.init",function(){c(d)})})}(jQuery),function(a){"use strict";function b(d){a.fn.isotope&&a.fn.imagesLoaded?c(d):setTimeout(function(){b(d)},50)}function c(a){var b=a.parents(".mpc-row");a.imagesLoaded().done(function(){a.on("layoutComplete",function(){MPCwaypoint.refreshAll(),mpc_init_lightbox(a,!0)}),a.isotope({itemSelector:".mpc-item",layoutMode:"masonry"}),b.on("mpc.rowResize",function(){a.data("isotope")&&a.isotope("layout")})}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_grid_images=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-grid-images"),c=a.siblings(".mpc-pagination");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.pagination-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_grid_images.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-grid-images").isotope("destroy"),window.InlineShortcodeView_mpc_grid_images.__super__.beforeUpdate.call(this)}})),a(".mpc-grid-images").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){if(a.is(".mpc-layout--style_4")){var b=a.find(".mpc-post__wrapper > .mpc-post__content"),c=b.eq(1),d=parseInt(-.5*c.outerHeight());b.parents(".mpc-post").css("margin-bottom",d)}}function c(b){a.fn.isotope&&a.fn.imagesLoaded?d(b):setTimeout(function(){c(b)},50)}function d(a){var c=a.parents(".mpc-row");b(a),a.imagesLoaded().done(function(){a.on("layoutComplete",function(){mpc_init_lightbox(a,!0),MPCwaypoint.refreshAll()}),a.isotope({itemSelector:".mpc-post",layoutMode:"masonry",masonry:{columnWidth:".mpc-grid-sizer"}}),c.on("mpc.rowResize",function(){a.data("isotope")&&a.isotope("layout")})}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_grid_posts=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-grid-posts"),b=a.siblings(".mpc-pagination");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,b]),_mpc_vars.$body.trigger("mpc.pagination-loaded",[b]),_mpc_vars.$body.trigger("mpc.inited",[a,b]),setTimeout(function(){c(a)},500),window.InlineShortcodeView_mpc_grid_posts.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-grid-posts").isotope("destroy"),window.InlineShortcodeView_mpc_grid_posts.__super__.beforeUpdate.call(this)}}));var e=a(".mpc-grid-posts");e.each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})}),_mpc_vars.$window.load(function(){e.each(function(){var b=a(this);b.data("isotope")&&setTimeout(function(){b.isotope("layout")},250)})})}(jQuery),function(a){"use strict";function b(a){var b=a.siblings(".mpc-hotspot");a.on("mouseenter mouseover",function(){b.removeClass("mpc-active"),a.addClass("mpc-active")}),a.trigger("mpc.inited"),a.find(".mpc-hotspot__icon").trigger("mpc.inited")}function c(a){var b=a.parents(".vc_mpc_hotspot"),c=a.data("position");b.css({top:c[1]+"%",left:c[0]+"%"})}if(void 0!==window.InlineShortcodeView){var d=a("body");window.InlineShortcodeView_mpc_hotspot=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-hotspot"),e=a.find(".mpc-tooltip");a.addClass("mpc-waypoint--init"),d.trigger("mpc.icon-loaded",[a]),d.trigger("mpc.font-loaded",[a]),d.trigger("mpc.inited",[a,e]),b(a),c(a),window.InlineShortcodeView_mpc_hotspot.__super__.rendered.call(this)}})}a(".mpc-hotspot").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_icon=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-icon");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_icon.__super__.rendered.call(this)}})),a(".mpc-icon").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_icon_list=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-icon-list");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_icon_list.__super__.rendered.call(this)}})),a(".mpc-icon-list").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){var b,c=a.find(".mpc-icon");a.imagesLoaded().always(function(){a.is(".mpc-icon-column--style_2")&&(b=parseInt(.5*c.outerHeight()),c.css("top","-"+b+"px"),a.find(".mpc-icon-column__content-wrap").css("margin-top","-"+b+"px")),a.is(".mpc-icon-column--style_4")&&(b=parseInt(.5*c.outerHeight()),c.css("left","-"+b+"px")),a.is(".mpc-icon-column--style_6")&&(b=parseInt(.5*c.outerHeight()),c.css("right","-"+b+"px"))}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_icon_column=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-icon-column");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_icon_column.__super__.rendered.call(this),this.afterRender()},afterRender:function(){var a=vc.shortcodes.findWhere({id:this.model.get("parent_id")});setTimeout(function(){a.trigger("mpc:forceRender")},250)}})),a(".mpc-icon-column").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){var b="";_mpc_vars.breakpoints.custom("(max-width: 768px)")&&(b=a.width()),a.find(".mpc-ihover-item").css({width:b,height:b})}function c(b){b.trigger("mpc.inited"),b.on("click",".mpc-ihover-item > a",function(b){a(this).is('[href="#"]')&&b.preventDefault()})}void 0!==window.InlineShortcodeViewContainer&&(window.InlineShortcodeView_mpc_ihover=window.InlineShortcodeViewContainer.extend({rendered:function(a){var b=this.$el.find(".mpc-ihover-wrapper");b.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[b]),_mpc_vars.$body.trigger("mpc.font-loaded",[b]),_mpc_vars.$body.trigger("mpc.inited",[b]),c(b),window.InlineShortcodeView_mpc_ihover.__super__.rendered.call(this,a)}}));var d=a(".mpc-ihover-wrapper");d.each(function(){var d=a(this);d.one("mpc.init",function(){c(d),b(d)})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(d,function(){b(a(this))})})}(jQuery),function(a){"use strict";void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_ihover_item=window.InlineShortcodeView.extend({initialize:function(){var a=vc.shortcodes.findWhere({id:this.model.get("parent_id")});this.listenTo(this.model,"destroy",this.removeView),this.listenTo(this.model,"change:params",this.update),this.listenTo(this.model,"change:parent_id",this.changeParentId),this.listenTo(a,"change:params",this.forceUpdate),this.listenTo(this.model,"change:parent_id",this.update),window.InlineShortcodeView_mpc_ihover_item.__super__.initialize.call(this)},clone:function(a){_.isObject(a)&&a.preventDefault()&&a.stopPropagation(),this.forceUpdate(),window.InlineShortcodeView_mpc_ihover_item.__super__.clone.call(this)},rendered:function(){var a=this.model.get("params");delete a.globals,this.model.set("params",a),window.InlineShortcodeView_mpc_ihover_item.__super__.rendered.call(this)},beforeUpdate:function(){var a,b=this.model.get("params"),c=vc.shortcodes.findWhere({id:this.model.get("parent_id")});a={title_font_preset:c.attributes.params.title_font_preset,content_font_preset:c.attributes.params.content_font_preset,shape:c.attributes.params.shape,effect:c.attributes.params.effect,style:c.attributes.params.style},b.globals=encodeURI(JSON.stringify(a)),this.model.set("params",b)},forceUpdate:function(){this.update(this.model)}}))}(jQuery),function(a){"use strict";function b(a){mpc_init_lightbox(a,!1),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_image=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-image"),c=a.closest(".vc_element");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[c]),_mpc_vars.$body.trigger("mpc.font-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_image.__super__.rendered.call(this)}})),a(".mpc-image").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeViewContainer&&(window.InlineShortcodeView_mpc_interactive_image=window.InlineShortcodeViewContainer.extend({rendered:function(){var a=this.$el.find(".mpc-interactive_image");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_interactive_image.__super__.rendered.call(this)}})),a(".mpc-interactive_image").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){mpc_init_lightbox(a,!1),a.trigger("mpc.inited")}if(void 0!==window.InlineShortcodeView){var c=a("body");window.InlineShortcodeView_mpc_lightbox=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-lightbox");a.addClass("mpc-waypoint--init"),c.trigger("mpc.font-loaded",[a]),c.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_lightbox.__super__.rendered.call(this)}})}a(".mpc-lightbox").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited");var b=a.find("select"),c=a.find('input:not([type="submit"], [type="checkbox"], [type="radio"])'),d=a.find('input[type="checkbox"], input[type="radio"]'),e=a.find('input[type="submit"]'),f=a.attr("data-align"),g={label:a.attr("data-typo-label"),input:a.attr("data-typo-input"),radio:a.attr("data-typo-radio"),submit:a.attr("data-typo-submit")};f=void 0==f?"left":f,e.parent().css("text-align",f),d.closest("label").addClass("mpc-input-wrap"),c.length&&b.css("height",c.outerHeight()),void 0!=g.label&&a.find("label:not(.mpc-input-wrap)").addClass(g.label),void 0!=g.input&&(b.addClass(g.input),c.addClass(g.input)),void 0!=g.radio&&a.find("label.mpc-input-wrap").addClass(g.radio),void 0!=g.submit&&e.addClass(g.submit)}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_mailchimp=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-mailchimp");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_mailchimp.__super__.rendered.call(this)}})),a(".mpc-mailchimp").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a,b){new google.maps.Marker({position:a.location,map:b,icon:a.icon_url})}function c(c){if("undefined"==typeof google)return void c.addClass("mpc-empty").find(".mpc-error").show();c.each(function(){var c=a(this),d=c.data("map-options"),f={disable_auto_zoom:!1,zoom:"",disable_auto_location:!1,location:"",disable_ui:!1,disable_scroll_wheel:!1,style:"default",markers:[]};if(void 0!==d&&void 0!==d.markers){a.extend(f,d);var g,h,i,j,k={disableDefaultUI:d.disable_ui,scrollwheel:!d.disable_scroll_wheel};if("custom"==d.style&&void 0!==d.custom_style)try{d.custom_style=JSON.parse(d.custom_style),k.styles=d.custom_style}catch(a){}else"default"!=d.style&&void 0!==e[d.style]&&(k.styles=e[d.style]);d.disable_auto_location&&""!=d.location&&(k.center=new google.maps.LatLng(d.location.latitude,d.location.longitude)),d.disable_auto_zoom&&""!=d.zoom&&(k.zoom=parseInt(d.zoom)),h=new google.maps.Map(c[0],k),i=new google.maps.LatLngBounds;for(g in d.markers)""!=d.markers[g].location&&(d.markers[g].location=new google.maps.LatLng(d.markers[g].location.latitude,d.markers[g].location.longitude),i.extend(d.markers[g].location),b(d.markers[g],h));d.disable_auto_location||(j=google.maps.event.addListener(h,"idle",function(){h.setCenter(i.getCenter()),google.maps.event.removeListener(j)})),d.disable_auto_zoom||h.fitBounds(i)}}),c.trigger("mpc.inited")}var d=a(".mpc-map"),e={blue_water:[{featureType:"administrative",elementType:"labels.text.fill",stylers:[{color:"#444444"}]},{featureType:"landscape",elementType:"all",stylers:[{color:"#f2f2f2"}]},{featureType:"poi",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"all",stylers:[{saturation:-100},{lightness:45}]},{featureType:"road.highway",elementType:"all",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"all",stylers:[{color:"#46bcec"},{visibility:"on"}]}],apple_maps:[{featureType:"landscape.man_made",elementType:"geometry",stylers:[{color:"#f7f1df"}]},{featureType:"landscape.natural",elementType:"geometry",stylers:[{color:"#d0e3b4"}]},{featureType:"landscape.natural.terrain",elementType:"geometry",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi.business",elementType:"all",stylers:[{visibility:"off"}]},{featureType:"poi.medical",elementType:"geometry",stylers:[{color:"#fbd3da"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#bde6ab"}]},{featureType:"road",elementType:"geometry.stroke",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#ffe15f"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#efd151"}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{color:"#ffffff"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{color:"black"}]},{featureType:"transit.station.airport",elementType:"geometry.fill",stylers:[{color:"#cfb2db"}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#a2daf2"}]}],blue_essence:[{featureType:"landscape.natural",elementType:"geometry.fill",stylers:[{visibility:"on"},{color:"#e0efef"}]},{featureType:"poi",elementType:"geometry.fill",stylers:[{visibility:"on"},{hue:"#1900ff"},{color:"#c0e8e8"}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:100},{visibility:"simplified"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit.line",elementType:"geometry",stylers:[{visibility:"on"},{lightness:700}]},{featureType:"water",elementType:"all",stylers:[{color:"#7dcdcd"}]}],cool_grey:[{featureType:"landscape",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"transit",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"water",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{stylers:[{hue:"#00aaff"},{saturation:-100},{gamma:2.15},{lightness:12}]},{featureType:"road",elementType:"labels.text.fill",stylers:[{visibility:"on"},{lightness:24}]},{featureType:"road",elementType:"geometry",stylers:[{lightness:57}]}],shades_of_grey:[{featureType:"all",elementType:"labels.text.fill",stylers:[{saturation:36},{color:"#000000"},{lightness:"56"}]},{featureType:"all",elementType:"labels.text.stroke",stylers:[{visibility:"on"},{color:"#000000"},{lightness:16}]},{featureType:"all",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"administrative",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:"30"}]},{featureType:"administrative",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:"17"},{weight:1.2}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#000000"},{lightness:"26"}]},{featureType:"poi",elementType:"geometry",stylers:[{color:"#000000"},{lightness:21}]},{featureType:"road.highway",elementType:"geometry.fill",stylers:[{color:"#000000"},{lightness:17}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{color:"#000000"},{lightness:29},{weight:.2}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#000000"},{lightness:18}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#000000"},{lightness:16}]},{featureType:"transit",elementType:"geometry",stylers:[{color:"#000000"},{lightness:19}]},{featureType:"water",elementType:"geometry",stylers:[{color:"#000000"},{lightness:17}]}]};void 0!==window.InlineShortcodeViewContainer&&(window.InlineShortcodeView_mpc_map=window.InlineShortcodeViewContainer.extend({initialize:function(a){this.listenTo(this.model,"mpc:forceRender",this.rendered),window.InlineShortcodeView_mpc_map.__super__.initialize.call(this,a)},rendered:function(){var b=this,d=this.$el.find(".mpc-map");d.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.inited",[d]);var e=d.data("map-options"),f=[];setTimeout(function(){b.$el.find(".mpc-markers .mpc-marker").each(function(){f.push(a(this).data("marker-options"))}),f.length&&(e.markers=f,d.data("map-options",e)),c(d),d.closest(".vc_element").find(".mpc-marker-title").first().siblings(".mpc-marker-title").remove()},250),window.InlineShortcodeView_mpc_map.__super__.rendered.call(this)}})),"admin_frontend_editor"!=window.vc_mode&&_mpc_vars.$window.on("load",function(){c(d)})}(jQuery),function(a){"use strict";void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_marker=window.InlineShortcodeView.extend({initialize:function(){this.listenTo(this.model,"update change",this.mpcUpdate),this.$el.find(".vc_element-move").remove(),window.InlineShortcodeView_mpc_marker.__super__.initialize.call(this)},mpcUpdate:function(){vc.shortcodes.findWhere({id:this.model.get("parent_id")}).trigger("mpc:forceRender")}}))}(jQuery),function(a){"use strict";function b(a,b){a.addClass("mpc-visible"),i?b.addClass("mpc-block-scroll-bridge"):b.addClass("mpc-block-scroll"),d(!0)}function c(a){var b=a.find(".mpc-modal__close");if(!a.is(".mpc-close--outside"))return!1;_mpc_vars.breakpoints.custom("(max-width: 768px)")?b.prependTo(a.find(".mpc-modal")):b.prependTo(a)}function d(a){!0===a?h[0].addEventListener("touchmove",j,!1):h[0].removeEventListener("touchmove",j,!1)}function e(d){var e=d.find(".mpc-modal"),f=a('.mpc-modal-waypoint[data-id="'+d.attr("id")+'"]'),g=parseInt(d.attr("data-delay")),i=d.attr("data-frequency");g=isNaN(g)?0:g,void 0!=i&&"onclick"!=i&&a.post(_mpc_vars.ajax_url,{action:"mpc_set_modal_cookie",id:d.attr("id"),frequency:i}),"onclick"==i?d.attr("data-target-id")&&a('a[href="#'+d.attr("data-target-id")+'"]').on("click",function(a){a.preventDefault(),e.trigger("mpc.animation"),b(d,h)}):f.length?f.is(".mpc-waypoint--init")?(e.trigger("mpc.animation"),b(d,h)):f.on("mpc.waypoint",function(){e.trigger("mpc.animation"),b(d,h)}):g>0?setTimeout(function(){e.trigger("mpc.animation"),b(d,h)},1e3*g):e.trigger("mpc.animation"),c(d)}var f=a(".mpc-modal-overlay"),g=a(".mpc-modal__close"),h=a("html, body"),i=h.hasClass("qode-theme-bridge"),j=function(a){a.preventDefault()};f.each(function(){var b=a(this);b.find(".mpc-modal").one("mpc.init",function(){e(b)})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(f,function(){c(a(this))})}),f.on("click",function(b){if(b.target==this){var c=a(this);(c.is(".mpc-close-on-click")||_mpc_vars.breakpoints.custom("(max-width: 768px)"))&&c.find(".mpc-modal__close").trigger("click")}}),g.on("click",function(){a(this).closest(".mpc-modal-overlay").removeClass("mpc-visible"),0==f.filter(".mpc-visible").length&&(i?h.removeClass("mpc-block-scroll-bridge"):h.removeClass("mpc-block-scroll"),d(!1))})}(jQuery),function(a){"use strict";function b(a,b){var c=a.parents(".mpc-carousel__wrapper").find(".mpc-navigation"),d=b.width(),e=_mpc_vars.window_width;b.is(".mpc-carousel--stretched")?(c.addClass("mpc-nav--stretched"),a.is(".mpc-navigation--style_1")||a.is(".mpc-navigation--style_2")||(c.first().css("margin-left",-b.offset().left),c.last().css("margin-right",-(e-(b.offset().left+d))))):a.is(".mpc-navigation--style_6")?(c.first().css("margin-left",-b.offset().left),c.last().css("margin-right",-(e-(b.offset().left+d)))):"true"==b.parents(".mpc-row").attr("data-vc-stretch-content")&&c.addClass("mpc-nav--stretched")}function c(a){if(!a.is(".mpc-inited")){var c=a.siblings('[class^="mpc-carousel-"], .mpc-pricing-box'),d=a.parents(".mpc-carousel__wrapper").find(".mpc-navigation");_mpc_vars.$window.on("load",function(){b(a,c)}),d.trigger("mpc.inited")}}var d=a(".mpc-navigation");d.each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(d,function(){var c=a(this);b(c,c.siblings('[class^="mpc-carousel-"], .mpc-pricing-box'))})})}(jQuery),function(a){"use strict";function b(b){b.is(".mpc--square-init")&&g(b),b.find("li a").on("click",function(b){var c=a(this),d=c.parents(".mpc-pagination"),g=d.attr("data-type"),h=window["_"+d.attr("data-grid")+"_query"],i=parseInt(d.attr("data-current")),j=parseInt(d.attr("data-pages")),k=c.parents("li").attr("data-page");return!(d.is(".mpc-pagination--classic")&&!d.is(".mpc-non-ajax"))||(b.preventDefault(),(i==k||!c.parent(".mpc-pagination").is(".mpc-disabled"))&&(d.addClass("mpc-disabled"),h.paged="prev"==k?i>1&&i-1:"next"==k?i=h||c.is(".mpc-disabled"))return!1;c.addClass("mpc-disabled"),window["_"+d.attr("data-grid")+"_query"].paged=g+1,e(d.attr("data-grid"),f,c)}})}function d(b){b.on("mpc.infinity",function(){var b=a(this);b.is(".mpc-pagination--infinity")&&b.find(".mpc-pagination__link").trigger("click")})}function e(b,c,d){var e=window["_"+b+"_query"],f=window["_"+b+"_atts"];a.post(_mpc_vars.ajax_url,{action:"mpc_pagination_set",type:c,current:e.paged,query:e,atts:f,dataType:"html"},function(e){var f=a("#"+b),g=d.parents(".mpc-pagination"),h=a(e);if("classic"==c&&!g.is(".mpc-append-ajax")){var i=f.children();f.isotope("remove",i)}mpc_init_lightbox(h,!0),f.append(h).isotope("insert",h),f.imagesLoaded().done(function(){f.isotope("layout")});var j=f.find(".mpc-pagination--settings").data("pages"),k=f.find(".mpc-pagination--settings").data("current");f.find(".mpc-pagination--settings").remove(),f.trigger("mpc.loaded"),"infinity"==c&&g.removeClass("mpc-infinity--init"),g.attr("data-current",k).attr("data-pages",j),!g.is(".mpc-pagination--classic")&&j>k?g.removeClass("mpc-disabled"):g.is(".mpc-pagination--classic")&&g.removeClass("mpc-disabled"),g.find(".mpc-current, .mpc-disabled").removeClass("mpc-current mpc-disabled"),g.find('[data-page="'+k+'"]').addClass("mpc-current"),g.is(".mpc-pagination--classic")&&1==k&&g.find(".mpc-pagination__prev").addClass("mpc-disabled"),g.is(".mpc-pagination--classic")&&k==j?g.find(".mpc-pagination__next").addClass("mpc-disabled"):k==j&&g.off().remove()})}function f(c,d){a.post(_mpc_vars.ajax_url,{action:"mpc_pagination_refresh",query:window["_"+d+"_query"],preset:c.data("preset")},function(e){c.after(e.data),c.remove(),b(a('.mpc-pagination[data-grid="'+d+'"]'))})}function g(b){var c=b.find(".mpc-pagination__prev"),d=b.find(".mpc-pagination__next"),e=b.find(".mpc-pagination__link"),f=0;a.each(b.find(".mpc-pagination__link"),function(){var b=a(this);f=Math.max(b.width(),b.height(),f)}),e.css({width:f+"px",height:f+"px","line-height":f+"px"}),c.css({height:f+"px","line-height":f+"px"}),d.css({height:f+"px","line-height":f+"px"}),b.removeClass("mpc--square-init").addClass("mpc--square")}a(".mpc-pagination--infinity").each(function(){var b=a(this);new MPCwaypoint({element:b[0],handler:function(){b.addClass("mpc-infinity-init").trigger("mpc.infinity")},offset:"80%"})}),a(".mpc-pagination").on("mpc.init",function(){var e=a(this);e.is(".mpc--square-init")&&g(e),b(e),c(e),d(e),a("#"+e.data("grid")).on("layoutComplete",function(){MPCwaypoint.refreshAll()}),e.trigger("mpc.inited")})}(jQuery),function(a){"use strict";function b(a,b){b.mpcslick({prevArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-prev',nextArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-next',responsive:[{breakpoint:992,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]})}function c(a){var c=a.find(".mpc-pricing-box__wrapper");a.is(".mpc-init--slick")&&b(a,c),a.trigger("mpc.inited")}function d(b){a.fn.mpcslick&&!b.is(".slick-initialized")?c(b):setTimeout(function(){d(b)},50)}function e(b){b.find(".mpc-pricing-column").each(function(){var b=a(this);b.parents(".vc_mpc_pricing_column").addClass("mpc-pricing-column"),b.removeClass("mpc-pricing-column")})}a(".mpc-pricing-box").each(function(){var b=a(this);b.one("mpc.init",function(){d(b)})}),void 0!==window.InlineShortcodeViewContainer&&(window.InlineShortcodeView_mpc_pricing_box=window.InlineShortcodeViewContainer.extend({events:{"click > .vc_controls .vc_element .vc_control-btn-delete":"destroy","click > .vc_controls .vc_element .vc_control-btn-edit":"edit","click > .vc_controls .vc_element .vc_control-btn-clone":"clone","click > .vc_controls .vc_element .vc_control-btn-prepend":"prependElement","click > .vc_controls .vc_control-btn-append":"appendElement","click > .vc_empty-element":"appendElement",mouseenter:"resetActive",mouseleave:"holdActive","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-pricing-box"),b=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[b]),_mpc_vars.$body.trigger("mpc.inited",[a,b]),setTimeout(function(){c(a),e(a)},250),window.InlineShortcodeView_mpc_pricing_box.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-pricing-box__wrapper").mpcslick("unslick")},prevSlide:function(){this.$el.find(".mpc-pricing-box__wrapper").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-pricing-box__wrapper").mpcslick("slickNext")}}))}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}a(".mpc-pricing-column").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}a(".mpc-pricing-legend").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){var b,c=a.find(".mpc-progress__value"),d=parseInt(a.attr("data-value-text")),e=parseInt(a.attr("data-value")),f=a.attr("data-unit"),g=a.is(".mpc-style--style_5, .mpc-style--style_8");if(g)var h=a.find(".mpc-progress__icon-box");d||(d=e),a.addClass("mpc-anim--init").velocity({tween:[0,e]},{easing:[.25,.1,.25,1],duration:1500,progress:function(a,i){b=parseInt(i*d),c.text(b+f),g&&e>0&&h.slice(0,Math.ceil(i*e/10)).addClass("mpc-filled")}}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_progress=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-progress");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_progress.__super__.rendered.call(this)}})),a(".mpc-progress").each(function(){var c=a(this),d=c.parents(".mpc-container");d.length?d.one("mpc.parent-init",function(){b(c)}):c.is(".mpc-waypoint--init")?b(c):c.one("mpc.waypoint",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){typeof QRCode==typeof Function?c(a):setTimeout(function(){b(a)},50)}function c(a){var b=a.data("qr");new QRCode(a[0],b),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_qrcode=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-qrcode");_mpc_vars.$body.trigger("mpc.inited",[a]),c(a),_mpc_vars.$document.trigger("mpc.init-tooltip",[a.siblings(".mpc-tooltip")]),window.InlineShortcodeView_mpc_qrcode.__super__.rendered.call(this)}})),a(".mpc-qrcode").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}if(void 0!==window.InlineShortcodeView){var c=a("body");window.InlineShortcodeView_mpc_quote=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-quote");a.addClass("mpc-waypoint--init"),c.trigger("mpc.icon-loaded",[a]),c.trigger("mpc.font-loaded",[a]),c.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_quote.__super__.rendered.call(this)}})}a(".mpc-quote").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}a(".mpc-ribbon").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.preventDefault(),a.data.row.velocity("stop").velocity("scroll",{duration:500,easing:"easeOutExpo"})}if("undefined"!=typeof _mpc_scroll_to_id&&1==_mpc_scroll_to_id){a('a[href^="#"], a[href^="'+window.location.origin+window.location.pathname+'#"]').each(function(){var c=a(this),d=c.attr("href").replace("#","");if(""!=d){var e=a('.mpc-row[id="'+d+'"]');e.length&&c.on("click",{row:e},b)}})}}(jQuery),function(a){"use strict";function b(a,b){var c=parseInt(_mpc_vars.$window.width()),d=parseInt(a.width());(a.is(".mpc-stretch")&&"true"===b.attr("data-vc-full-width")||a.is(".mpc-stretch")&&"true"===b.attr("data-mk-full-width"))&&(a.find(".mpc-toggle-row__content").css("max-width",d),a.css({"margin-left":-.5*(c-d),"margin-right":-.5*(c-d)}))}a(".mpc-toggle-row").each(function(){var c,d=a(this),e=d.attr("id"),f=a('.mpc-row[data-row-id="'+e+'"]'),g=!1;b(d,f),_mpc_vars.$window.on("mpc.resize",function(){c=parseInt(f[0].scrollHeight),f.attr("data-height",c),f.is(".mpc-toggled")&&f.css("max-height",c),b(d,f)}),f.imagesLoaded().always(function(){c=parseInt(f[0].scrollHeight),f.attr("data-height",c),g=!0,f.is(".mpc-toggled")?f.css("max-height",c):f.css("max-height",0)}),f.on("mpc.recalc",function(){c=parseInt(f[0].scrollHeight),f.attr("data-height",c),f.is(".mpc-toggled")&&f.velocity({"max-height":c},{duration:150})}),d.on("click",function(){g&&(f.is(".mpc-toggled")?(f.velocity("stop").velocity({"max-height":0},{duration:500}).removeClass("mpc-toggled"),d.removeClass("mpc-toggled")):(f.velocity("stop").velocity({"max-height":c},{duration:500}).addClass("mpc-toggled"),d.addClass("mpc-toggled")))})})}(jQuery),function(a){"use strict";a(".mpc-row").each(function(){var b=a(this),c=b.prevAll(".mpc-row").first(),d=b.nextAll(".mpc-row").first(),e=b.children(".mpc-separator.mpc-separator--top"),f=b.children(".mpc-separator.mpc-separator--bottom"),g=e.attr("data-color"),h=f.attr("data-color"),i=e.is(".mpc-separator--css"),j=f.is(".mpc-separator--css");e.length&&void 0!==g?e.css(i?"border-color":"fill",g):e.length&&c.length?e.css(i?"border-color":"fill",c.css("background-color")):c.length,f.length&&void 0!==h?f.css(j?"border-color":"fill",h):f.length&&d.length?f.css(j?"border-color":"fill",d.css("background-color")):d.length})}(jQuery),function(a){"use strict";function b(){if(void 0!=skrollr){var a=skrollr.get();_mpc_vars.breakpoints.custom("(max-width: 992px)")?void 0!=a&&a.destroy():void 0==a&&skrollr.init({smoothScrolling:!1,forceHeight:!1,mobileCheck:function(){return!1}})}}_mpc_vars.$window.on("load",function(){setTimeout(function(){if(void 0!=skrollr){var a=skrollr.get();_mpc_vars.breakpoints.custom("(max-width: 992px)")?void 0!=a&&a.destroy():void 0!=a?a.refresh():skrollr.init({smoothScrolling:!1,forceHeight:!1,mobileCheck:function(){return!1}})}},10)}).on("mpc.resize",b)}(jQuery),function(a){"use strict";function b(){d=(!_mpc_vars.breakpoints.custom("(max-width: 992px)")||1==_mpc_vars.animations)&&c}var c=!0,d=!0;void 0!=document.hasFocus&&(c=document.hasFocus()),window.onfocus=function(){c=d=!0},window.onblur=function(){c=d=!1},_mpc_vars.$window.on("mpc.resize",b),b(),a(".mpc-overlay.mpc-overlay--scrolling").each(function(){var b=a(this),c=this,e=parseInt(b.attr("data-speed")),f=b.css("background-position").split(" "),g=0;isNaN(e)&&(e=25),f=void 0!=f[1]?f[1]:"50%",c.style.backgroundPosition=g+"px "+f,setTimeout(function(){b.addClass("mpc-overlay--inited")},10),setInterval(function(){d&&(g+=e,c.style.backgroundPosition=g+"px "+f)},1e3)})}(jQuery),function(a){"use strict";function b(a){if(a.is(".mpc-layout--style_4")){var b=a.find(".mpc-post__wrapper > .mpc-post__content");b.css("margin-bottom",parseInt(-.5*b.outerHeight()))}}function c(a){mpc_init_lightbox(a,!1),b(a),a.trigger("mpc.inited")}if(void 0!==window.InlineShortcodeView){var d=a("body");window.InlineShortcodeView_mpc_single_post=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-single-post");a.addClass("mpc-waypoint--init"),d.trigger("mpc.icon-loaded",[a]),d.trigger("mpc.font-loaded",[a]),d.trigger("mpc.inited",[a]),c(a),window.InlineShortcodeView_mpc_single_post.__super__.rendered.call(this)}})}a(".mpc-single-post").each(function(){var b=a(this);b.one("mpc.init",function(){c(b)}),b.on("mpc.resize",function(){})})}(jQuery),function(a){"use strict";var b=a(".mpc-column--sticky");b.each(function(){a(this).before('
')}),_mpc_vars.$window.on("mpc.resize",function(){_mpc_vars.breakpoints.custom("(max-width: 992px)")&&a.each(b,function(){var b=a(this);b.removeAttr("style"),b.prev(".mpc-column--spacer").removeClass("mpc-active")})}),_mpc_vars.$window.on("scroll",function(){b.each(function(){var b,c=a(this),d=c.parents(".mpc-row"),e=""!=c.data("offset")?parseInt(c.data("offset")):0,f=window.pageYOffset;if(_mpc_vars.breakpoints.custom("(max-width: 992px)"))return c.removeAttr("style"),c.prev(".mpc-column--spacer").removeClass("mpc-active"),"";b=f-d.offset().top+e>0?f-d.offset().top+e:0,c.outerHeight()+b>=d.height()?(b=d.height()-c.outerHeight(),c.removeAttr("style").css("top",b),c.prev(".mpc-column--spacer").removeClass("mpc-active")):0==b?(c.removeAttr("style"),c.prev(".mpc-column--spacer").removeClass("mpc-active")):(c.css({position:"fixed",top:e,left:c.offset().left,width:c.outerWidth(!0)}),c.prev(".mpc-column--spacer").css("width",c.outerWidth(!0)).addClass("mpc-active"))})})}(jQuery),function(a){"use strict";function b(a){var b=a.find(".mpc-flipbox__front"),c=a.find(".mpc-flipbox__back");b.outerHeight()>c.outerHeight()?a.height(b.outerHeight()):a.height(c.outerHeight()),b.css("height","100%"),c.css("height","100%"),a.trigger("mpc.inited")}function c(a){var c=a.find(".mpc-flipbox__front"),d=a.find(".mpc-flipbox__back");c.removeAttr("style"),d.removeAttr("style"),b(a)}function d(a){a.is(".mpc-init")&&(a.find("img").length>0?a.imagesLoaded().always(function(){b(a)}):b(a))}var e=a(".mpc-flipbox");e.each(function(){var b=a(this);b.one("mpc.init",function(){d(b)}),b.on("mouseenter",function(){b.find(".mpc-parent--init").length&&(b.find(".mpc-container").trigger("mpc.parent-init"),b.find(".mpc-parent--init").removeClass("mpc-parent--init"))})}),_mpc_vars.$window.on("mpc.resize load",function(){a.each(e,function(){c(a(this))})})}(jQuery),function(a){"use strict";function b(a){var b=a.find(".mpc-cubebox__front .mpc-cubebox-side"),c=a.find(".mpc-cubebox__side .mpc-cubebox-side");b.outerHeight()>c.outerHeight()?a.height(b.outerHeight()):a.height(c.outerHeight()),b.css("height","100%"),c.css("height","100%")}function c(a){var c=a.find(".mpc-cubebox__front"),d=a.find(".mpc-cubebox__side");c.removeAttr("style"),d.removeAttr("style"),b(a)}function d(a){a.is(".mpc-init")&&(a.find("img").length>0?a.imagesLoaded().always(function(){b(a)}):b(a),a.trigger("mpc.inited"))}var e=a(".mpc-cubebox");e.each(function(){var b=a(this);b.one("mpc.init",function(){d(b)}),b.on("mouseenter",function(){b.addClass("mpc-flipped"),b.find(".mpc-parent--init").length&&(b.find(".mpc-container").trigger("mpc.parent-init"),b.find(".mpc-parent--init").removeClass("mpc-parent--init"))}).on("mouseleave",function(){b.removeClass("mpc-flipped")})}),_mpc_vars.$window.on("mpc.resize load",function(){a.each(e,function(){c(a(this))})})}(jQuery),function(a){"use strict";function b(b){var c=a("#"+b.attr("data-tab_id")),d=c.siblings(".mpc-tab");b.siblings().removeClass("mpc-active"),b.addClass("mpc-active"),d.attr("data-active",!1),c.attr("data-active",!0),c.find(".mpc-parent--init").length&&(c.trigger("mpc.parent-init"),c.find(".mpc-parent--init").removeClass("mpc-parent--init"))}function c(a){var b=a.parents(".mpc-column").is(".vc_col-sm-12");if(_mpc_vars.breakpoints.custom("(max-width: 767px)")||_mpc_vars.breakpoints.medium&&!b){if(a.is(".mpc-tabs--left")||a.is(".mpc-tabs--right")){var c=a.is(".mpc-tabs--left")?"left":"right";a.attr("data-nav-position",c).removeClass("mpc-tabs--left mpc-tabs--right").addClass("mpc-tabs--top")}}else if("left"==a.attr("data-nav-position")||"right"==a.attr("data-nav-position")){var d=a.attr("data-nav-position");a.removeClass("mpc-tabs--top").addClass("mpc-tabs--"+d).removeAttr("data-nav-position")}}function d(d){d.find(".mpc-tabs__nav-item").on("click",function(){b(a(this))});var e=d.find('.mpc-tab[data-active="true"]');e.length&&e.find(".mpc-parent--init").length&&(e.trigger("mpc.parent-init"),e.find(".mpc-parent--init").removeClass("mpc-parent--init")),c(d),d.trigger("mpc.inited")}var e=a(".mpc-tabs");e.each(function(){var b=a(this);b.one("mpc.init",function(){d(b)})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(e,function(){c(a(this))})})}(jQuery),function(a){"use strict";function b(b){b.each(function(){var b=a(this).find(".mpc-accordion-item__content");"true"===b.attr("data-active")&&b.removeAttr("style").removeClass("mpc-hidden").css("height",parseInt(b.height())),b.addClass("mpc-hidden")})}function c(c){var e=c.find(".mpc-accordion__item"),f=c.find('[data-active="true"]'),g=c.find(".mpc-accordion-item__heading");f.find(".mpc-parent--init").length&&(f.trigger("mpc.parent-init"),f.find(".mpc-parent--init").removeClass("mpc-parent--init")),b(e),g.on("click",function(){d(a(this))}),setTimeout(function(){b(e)},250),c.trigger("mpc.inited")}function d(a){var b=a.siblings(".mpc-accordion-item__content"),c=a.parents(".mpc-accordion").find('[data-active="true"]'),d=b.find(".mpc-accordion-item__wrapper").outerHeight(!0);a.parents(".mpc-accordion").is(".mpc-accordion--toggle")?b!==c&&(c.velocity("stop").velocity({height:0},300),b.velocity("stop").velocity({height:d},300),c.removeAttr("data-active").siblings(".mpc-accordion-item__heading").removeClass("mpc-active"),b.attr("data-active","true"),a.addClass("mpc-active"),b.find(".mpc-parent--init").length&&(b.trigger("mpc.parent-init"),b.find(".mpc-parent--init").removeClass("mpc-parent--init"))):"true"===b.attr("data-active")?(b.velocity("stop").velocity({height:0},300),b.removeAttr("data-active"),a.removeClass("mpc-active")):(b.velocity("stop").velocity({height:d},300),b.attr("data-active","true"),a.addClass("mpc-active"),b.find(".mpc-parent--init").length&&(b.trigger("mpc.parent-init"),b.find(".mpc-parent--init").removeClass("mpc-parent--init"))),setTimeout(function(){a.parents(".mpc-row").trigger("mpc.recalc")},300)}var e=a(".mpc-accordion");e.each(function(){var b=a(this);b.one("mpc.init",function(){c(b)})}),_mpc_vars.$window.on("mpc.resize",function(){a.each(e,function(){b(a(this).find(".mpc-accordion__item"))})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_testimonial=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-testimonial");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a]),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_testimonial.__super__.rendered.call(this),this.afterRender()},afterRender:function(){var a=vc.shortcodes.findWhere({id:this.model.get("parent_id")});setTimeout(function(){a.trigger("mpc:forceRender")},250)}})),a(".mpc-testimonial").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}if(void 0!==window.InlineShortcodeView){var c=a("body");window.InlineShortcodeView_mpc_textblock=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-textblock");a.addClass("mpc-waypoint--init"),c.trigger("mpc.icon-loaded",[a]),c.trigger("mpc.font-loaded",[a]),c.trigger("mpc.inited",[a]),b(a),window.InlineShortcodeView_mpc_textblock.__super__.rendered.call(this)}})}a(".mpc-textblock").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a,b,c){return a<=c&&c<=b}function c(a,c,d){var e=0;return c.forEach(function(c){return b(c.top,c.bottom,a.top)?e=c.bottom-a.top+5:b(c.top,c.bottom,a.bottom)?e=c.top-a.bottom+5:void 0}),e}function d(a,b,d){var f={top:b.offset().top,bottom:b.offset().top+b.outerHeight()},g={top:a.offset().top,bottom:a.offset().top+a.height()},h=a.attr("data-side"),i=0;return"left"==h?(i=c(f,j.right,g),f=e(b,d,f,i),j.left.push(f),!0):(i=c(f,j.left,g),f=e(b,d,f,i),j.right.push(f),!0)}function e(a,b,c,d){return 0==d?c:(c.top+=d,c.bottom+=d,a.css({"margin-top":parseInt(a.css("margin-top"))+parseInt(d)}),b.css({"margin-top":parseInt(b.css("margin-top"))+parseInt(d)}),c)}function f(b){b.find(".mpc-timeline-item__wrap").each(function(){var c=a(this),e=c.find(".mpc-timeline-item"),f=c.find(".mpc-tl-icon"),g=e.find(".mpc-tl-before"),h=0;b.is(".mpc-layout--left")?c.attr("data-side","right"):b.is(".mpc-layout--right")?c.attr("data-side","left"):"0px"==c.css("left")?c.attr("data-side","left"):c.attr("data-side","right"),g.removeAttr("style"),"left"==c.attr("data-side")&&!b.is(".mpc-layout--right")&&_mpc_vars.breakpoints.custom("(min-width: 767px)")?g.css({"margin-left":parseInt(e.css("border-right-width"))}):g.css({"margin-right":parseInt(e.css("border-left-width"))}),b.is(".mpc-pointer--middle")&&g.css({"margin-top":parseInt(g.css("margin-top"))-parseInt(.5*g.outerHeight())}),h=g.offset().top-c.offset().top-.5*f.height(),b.is(".mpc-pointer--right-triangle")||(h+=.5*g.outerHeight()),f.css({"margin-top":parseInt(h)}),b.is(".mpc-layout--both")&&d(c,f,g)})}function g(a){var b=a.find(".mpc-track__icon"),c=a.find(".mpc-timeline__track");b.css({"margin-left":-parseInt(.5*(b.outerWidth()+c.outerWidth()))})}function h(b){a.fn.isotope&&a.fn.imagesLoaded?i(b):setTimeout(function(){h(b)},50)}function i(b){var c=b.parents(".mpc-row");g(b),b.trigger("mpc.inited");var d={itemSelector:".mpc-timeline-item__wrap",layoutMode:"masonry"};b.is(".mpc-layout--right")&&(d.isOriginLeft=!1),b.imagesLoaded().done(function(){b.on("layoutComplete",function(){j={left:[],right:[]},f(a(this)),MPCwaypoint.refreshAll()}),b.isotope(d),c.on("mpc.rowResize",function(){b.data("isotope")&&b.isotope("layout")}),_mpc_vars.$document.ready(function(){setTimeout(function(){b.data("isotope")&&b.isotope("layout")},50)})})}var j;a(".mpc-timeline-basic").each(function(){var b=a(this);b.one("mpc.init",function(){h(b)})})}(jQuery),function(a){"use strict";function b(a){a.trigger("mpc.inited")}a(".mpc-timeline-item__wrap").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(a,b){var c=a.find(".mpc-arrow");if(b.left<0||b.offset>0){var d=b.left-b.offset;d<0?(b.offset=-1*d,a.css("margin-left",b.offset)):(b.offset=0,a.css("margin-left","")),c.length&&c.css("transform","translateX("+-b.offset+"px)")}else if(b.right>_mpc_vars.window_width||b.offset<0){var e=b.right-b.offset;e>_mpc_vars.window_width?(b.offset=_mpc_vars.window_width-e,a.css("margin-left",b.offset)):(b.offset=0,a.css("margin-left","")),c.length&&c.css("transform","translateX("+-b.offset+"px)")}}function c(a,c){(c.left<0||c.right>_mpc_vars.window_width)&&a.is(".mpc-position--left, .mpc-position--right")?(a.removeClass("mpc-position--left mpc-position--right"),a.addClass("mpc-position--top"),setTimeout(function(){c=a[0].getBoundingClientRect(),c.offset=0,b(a,c)},500)):b(a,c)}function d(a){var b;if(a.imagesLoaded().always(function(){a.length&&(a.is(".mpc-wide")?a.width()>500&&a.addClass("mpc-wrap-content"):a.width()>300&&a.addClass("mpc-wrap-content"),a.addClass("mpc-loaded"),b=a[0].getBoundingClientRect(),b.offset=0,c(a,b))}),!a.is(".mpc-no-arrow")&&"0px"!=a.css("border-width")){var d=a.find(".mpc-arrow");a.is(".mpc-position--top")?d.css("margin-bottom","-"+a.css("border-bottom-width")):a.is(".mpc-position--bottom")?d.css("margin-top","-"+a.css("border-top-width")):a.is(".mpc-position--left")?d.css("margin-right","-"+a.css("border-right-width")):a.is(".mpc-position--right")&&d.css("margin-left","-"+a.css("border-left-width"))}if(a.find("iframe").length){a.find("iframe").wrap('
'),a.addClass("mpc-wrap-content")}a.trigger("mpc.inited"),_mpc_vars.$window.on("load mpc.resize",function(){a.removeClass("mpc-loaded"),setTimeout(function(){if(a.is(".mpc-wide")?a.width()>500&&a.addClass("mpc-wrap-content"):a.width()>300&&a.addClass("mpc-wrap-content"),a.addClass("mpc-loaded"),void 0!=b){var d=b.offset;b=a[0].getBoundingClientRect(),b.offset=d,c(a,b)}},10)}),a.is(".mpc-trigger--click")&&a.parent(".mpc-tooltip-wrap").on("click",function(b){b.preventDefault(),a.toggleClass("mpc-triggered")})}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_tooltip=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-tooltip");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.font-loaded",[a]),_mpc_vars.$body.trigger("mpc.inited",[a]),d(a),window.InlineShortcodeView_mpc_tooltip.__super__.rendered.call(this)}}),_mpc_vars.$document.on("mpc.init-tooltip",function(a,b){d(b)})),a(".mpc-tooltip").each(function(){var b=a(this);b.one("mpc.init",function(){d(b)})})}(jQuery),function(a){"use strict";function b(b){var c=b.parent(".mpc-wc-add_to_cart-wrap"),d=b.find(".mpc-atc__title-hover"),e={left:0,top:0},f={};e.width=b.width(),f.width=d.outerWidth(!0),e.height=b.height(),f.height=d.outerHeight(!0),e.width+10>f.width&&f.widthf.height&&f.height .vc_controls .vc_control-btn-delete":"destroy","click > .vc_controls .vc_control-btn-edit":"edit","click > .vc_controls .vc_control-btn-clone":"clone",mousemove:"checkControlsPosition","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-wc-carousel-categories"),c=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_wc_carousel_categories.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-wc-carousel-categories").mpcslick("unslick"),window.InlineShortcodeView_mpc_wc_carousel_categories.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-wc-carousel-categories").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-wc-carousel-categories").mpcslick("slickNext")}})}a(".mpc-wc-carousel-categories").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(d){a.fn.isotope&&a.fn.imagesLoaded?c(d):setTimeout(function(){b(d)},50)}function c(a){var b=a.parents(".vc_row");a.imagesLoaded().done(function(){a.on("layoutComplete",function(){MPCwaypoint.refreshAll()}),a.isotope({itemSelector:".mpc-wc-category",layoutMode:"masonry"}),b.on("mpc.rowResize",function(){a.data("isotope")&&a.isotope("layout")})}),a.on("mpc.loaded",function(){mpc_init_lightbox(a,!0)}),a.trigger("mpc.inited")}a(".mpc-wc-grid-categories").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(d){a.fn.mpcslick&&!d.is(".slick-initialized")?c(d):setTimeout(function(){b(d)},50)}function c(a){a.on("init",function(){setTimeout(function(){mpc_init_lightbox(a,!0)},250)}),a.mpcslick({prevArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-prev',nextArrow:'[data-mpcslider="'+a.attr("id")+'"] .mpcslick-next',responsive:_mpc_vars.carousel_breakpoints(a),rtl:_mpc_vars.rtl.global()}),a.on("mouseleave",function(){setTimeout(function(){a.mpcslick("getSlick").options.autoplay&&a.mpcslick("play")},250)}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_wc_carousel_products=window.InlineShortcodeView.extend({events:{"click > .vc_controls .vc_control-btn-delete":"destroy","click > .vc_controls .vc_control-btn-edit":"edit","click > .vc_controls .vc_control-btn-clone":"clone",mousemove:"checkControlsPosition","click > .mpc-carousel__wrapper .mpcslick-prev .mpc-nav__icon":"prevSlide","click > .mpc-carousel__wrapper .mpcslick-next .mpc-nav__icon":"nextSlide"},rendered:function(){var a=this.$el.find(".mpc-wc-carousel-products"),c=a.siblings(".mpc-navigation");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.navigation-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},250),window.InlineShortcodeView_mpc_wc_carousel_products.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-wc-carousel-products").mpcslick("unslick"),window.InlineShortcodeView_mpc_wc_carousel_products.__super__.beforeUpdate.call(this)},prevSlide:function(){this.$el.find(".mpc-wc-carousel-products").mpcslick("slickPrev")},nextSlide:function(){this.$el.find(".mpc-wc-carousel-products").mpcslick("slickNext")}})),a(".mpc-wc-carousel-products").each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})})}(jQuery),function(a){"use strict";function b(d){a.fn.isotope&&a.fn.imagesLoaded?c(d):setTimeout(function(){b(d)},50)}function c(a){var b=a.parents(".mpc-row");a.imagesLoaded().done(function(){a.on("layoutComplete",function(){mpc_init_lightbox(a,!0),MPCwaypoint.refreshAll()}),a.isotope({itemSelector:".mpc-wc-product",layoutMode:"masonry",masonry:{columnWidth:".mpc-grid-sizer"}}),b.on("mpc.rowResize",function(){a.data("isotope")&&a.isotope("layout")})}),a.trigger("mpc.inited")}void 0!==window.InlineShortcodeView&&(window.InlineShortcodeView_mpc_wc_grid_products=window.InlineShortcodeView.extend({rendered:function(){var a=this.$el.find(".mpc-wc-grid-products"),c=a.siblings(".mpc-pagination");a.addClass("mpc-waypoint--init"),_mpc_vars.$body.trigger("mpc.icon-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.font-loaded",[a,c]),_mpc_vars.$body.trigger("mpc.pagination-loaded",[c]),_mpc_vars.$body.trigger("mpc.inited",[a,c]),setTimeout(function(){b(a)},500),window.InlineShortcodeView_mpc_wc_grid_products.__super__.rendered.call(this)},beforeUpdate:function(){this.$el.find(".mpc-wc-grid-products").isotope("destroy"),window.InlineShortcodeView_mpc_wc_grid_products.__super__.beforeUpdate.call(this)}}));var d=a(".mpc-wc-grid-products");d.each(function(){var c=a(this);c.one("mpc.init",function(){b(c)})}),_mpc_vars.$window.load(function(){d.data("isotope")&&setTimeout(function(){d.isotope("layout")},250)})}(jQuery),function(a){"use strict";var b=a(".mpc-init"),c=a(".mpc-row.mpc-animation, .mpc-column.mpc-animation, .mpc-toggle-row.mpc-animation");_mpc_vars.$document.ready(function(){b.trigger("mpc.init"),c.trigger("mpc.inited")}),b.one("mpc.inited",function(b){b.stopPropagation();var c=a(this);c.is(".mpc-animation")?c.addClass("mpc-inited").removeClass("mpc-init"):c.velocity({opacity:1},{duration:250,delay:100,begin:function(){c.addClass("mpc-inited").removeClass("mpc-init")}})})}(jQuery),function(a){"use strict";function b(a,b,c,d){""==b||_mpc_vars.breakpoints.custom("(max-width: 768px)")&&!_mpc_vars.animations?(a.css("opacity",1),e(a,c,d)):(a.velocity(b[0],{duration:parseInt(b[1]),delay:parseInt(b[2]),display:null,complete:function(){a.css("transform","")}}),e(a,c,d))}function c(a,b,c,d){if(""==b||_mpc_vars.breakpoints.custom("(max-width: 768px)")&&!_mpc_vars.animations)a.css("opacity",1),e(a,c,d);else{new MPCwaypoint({element:a[0],handler:function(){a.velocity(b[0],{duration:parseInt(b[1]),delay:parseInt(b[2]),display:null,complete:function(){a.css("transform","")}}),e(a,c,d),void 0!==this.destroy&&this.destroy()},offset:parseInt(b[3])+"%"})}}function d(a,b,c,e,f){f&&a._hover?setTimeout(function(){d(a,b,c,e,f)},e):a.velocity(b,{duration:c,display:null,complete:function(){setTimeout(function(){d(a,b,c,e,f)},e)}})}function e(a,b,c){""!=b&&(0==parseInt(b[2])?a.velocity(b[0],{duration:parseInt(b[1]),display:null}):(c&&a.on("mouseenter",function(){a._hover=!0}).on("mouseleave",function(){a._hover=!1}),d(a,b[0],parseInt(b[1]),parseInt(b[2]),c)))}a("body").addClass("mpc-loaded"),a(".mpc-animation").each(function(){var d=a(this),e=d.attr("data-animation-in"),f=d.attr("data-animation-loop"),g=d.attr("data-animation-hover");e=void 0!==e?e.split("||"):"",f=void 0!==f?f.split("||"):"",g=void 0!==g,d.one("mpc.inited",function(){c(d,e,f,g)}),d.on("mpc.animation",function(){b(d,e,f,g)})})}(jQuery),function(a){"use strict";a(".mpc-waypoint").each(function(){var b=a(this),c=new MPCwaypoint.Inview({element:b[0],enter:function(){b.addClass("mpc-waypoint--init").trigger("mpc.waypoint"),setTimeout(function(){c.destroy()},10)}})})}(jQuery),function(a){"use strict";var b;_mpc_vars.window_width=_mpc_vars.$window.width(),_mpc_vars.window_height=_mpc_vars.$window.height(),_mpc_vars.$window.on("resize",function(){clearTimeout(b),b=setTimeout(function(){_mpc_vars.window_width=_mpc_vars.$window.width(),_mpc_vars.window_height=_mpc_vars.$window.height(),_mpc_vars.$window.trigger("mpc.resize")},250)})}(jQuery),function(a){"use strict";function b(a){"true"==a.attr("data-vc-full-width-init")?a.trigger("mpc.rowResize"):setTimeout(function(){b(a)},250)}var c=a('[data-vc-full-width="true"]');a.each(c,function(){b(a(this))})}(jQuery);var mpc_init_lightbox;!function(a){mpc_init_lightbox=function(b,c){var d="",e="";if(b.is(".mpc-pretty-photo")||b.find(".mpc-pretty-photo").length?e="prettyphoto":(b.is(".mpc-magnific-popup")||b.find(".mpc-magnific-popup").length)&&(e="magnificPopup"),""!=e)if(a.fn.prettyPhoto&&"prettyphoto"==e)d=b.is(".mpc-pretty-photo")?b:b.find(".mpc-pretty-photo"),d.prettyPhoto({animationSpeed:"normal",padding:15,opacity:.7,showTitle:!0,allowresize:!1,hideflash:!0,modal:!1,social_tools:"",overlay_gallery:!1,deeplinking:!1,ie6_fallback:!1});else if(a.fn.magnificPopup&&"magnificPopup"==e){d=b.is(".mpc-magnific-popup")?b:b.find(".mpc-magnific-popup");var f,g=/(\.gif|\.jpg|\.jpeg|\.tiff|\.png|lightbox_src)/i.test(d.attr("href"))?"image":"iframe";f={type:g,closeOnContentClick:!0,mainClass:"mfp-img-mobile",image:{verticalFit:!0},callbacks:{beforeOpen:function(){_mpc_vars.$window.trigger("mpc.lightbox.open")},afterClose:function(){_mpc_vars.$window.trigger("mpc.lightbox.close")}},iframe:{patterns:{youtube:{id:function(a){var b=/https?:\/\/(?:[0-9A-Z-]+\.)?(?:youtu\.be\/|youtube(?:-nocookie)?\.com\S*?[^\w\s-])([\w-]{11})(?=[^\w-]|$)(?![?=&+%\w.-]*(?:['"][^<>]*>|<\/a>))([?=&+%\w.-]*)/gi,c=b.exec(a);return a=void 0!==c[1]?c[1]:"",""!==a&&void 0!==c[2]&&(a+="&"==c[2][0]?c[2].replace("&","?"):c[2]),a},src:"//www.youtube.com/embed/%id%?autoplay=1"}}}},c&&(f.gallery={enabled:!0,preload:[0,1],tCounter:""}),d.magnificPopup(f)}else setTimeout(mpc_init_lightbox(b,c),250)}}(jQuery); !function(I){I.fn.hoverIntent=function(e,t,n){function r(e){o=e.pageX,v=e.pageY}var o,v,i,u,s={interval:100,sensitivity:6,timeout:0},s="object"==typeof e?I.extend(s,e):I.isFunction(t)?I.extend(s,{over:e,out:t,selector:n}):I.extend(s,{over:e,out:e,selector:t}),h=function(e,t){if(t.hoverIntent_t=clearTimeout(t.hoverIntent_t),Math.sqrt((i-o)*(i-o)+(u-v)*(u-v)) ul.mega-sub-menu > li.mega-menu-item-has-children," + "li.mega-menu-flyout li.mega-menu-item-has-children", menu); plugin.addAnimatingClass=function(element){ if(plugin.settings.effect==="disabled"){ return; } $(".mega-animating").removeClass("mega-animating"); var timeout=plugin.settings.effect_speed + parseInt(megamenu.timeout, 10); element.addClass("mega-animating"); setTimeout(function(){ element.removeClass("mega-animating"); }, timeout); }; plugin.hideAllPanels=function(){ $(".mega-toggle-on > a.mega-menu-link", $menu).each(function(){ plugin.hidePanel($(this), false); }); }; plugin.hideSiblingPanels=function(anchor, immediate){ anchor.parent().parent().find(".mega-toggle-on").children("a.mega-menu-link").each(function(){ plugin.hidePanel($(this), immediate); }); }; plugin.isDesktopView=function(){ return Math.max(window.outerWidth, $(window).width()) > plugin.settings.breakpoint; }; plugin.isMobileView=function(){ return !plugin.isDesktopView(); }; plugin.showPanel=function(anchor){ anchor.parent().triggerHandler("before_open_panel"); anchor.attr("aria-expanded", "true"); $(".mega-animating").removeClass("mega-animating"); if(plugin.isMobileView()&&anchor.parent().hasClass("mega-hide-sub-menu-on-mobile")){ return; } if(plugin.isDesktopView()&&($menu.hasClass("mega-menu-horizontal")||$menu.hasClass("mega-menu-vertical"))&&!anchor.parent().hasClass("mega-collapse-children")){ plugin.hideSiblingPanels(anchor, true); } if((plugin.isMobileView()&&$menu.hasClass("mega-keyboard-navigation"))||plugin.settings.vertical_behaviour==="accordion"){ plugin.hideSiblingPanels(anchor, false); } plugin.calculateDynamicSubmenuWidths(anchor); if(anchor.parent().hasClass("mega-collapse-children")||plugin.settings.effect==="slide" || (plugin.isMobileView()&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="slide_left"||plugin.settings.effect_mobile==="slide_right")) ){ var speed=plugin.isMobileView() ? plugin.settings.effect_speed_mobile:plugin.settings.effect_speed; anchor.siblings(".mega-sub-menu").css("display", "none").animate({"height":"show", "paddingTop":"show", "paddingBottom":"show", "minHeight":"show"}, speed, function(){ $(this).css("display", ""); }); } anchor.parent().addClass("mega-toggle-on").triggerHandler("open_panel"); }; plugin.hidePanel=function(anchor, immediate){ anchor.parent().triggerHandler("before_close_panel"); anchor.attr("aria-expanded", "false"); if(anchor.parent().hasClass("mega-collapse-children")||(! immediate&&plugin.settings.effect==="slide") || (plugin.isMobileView()&&(plugin.settings.effect_mobile==="slide"||plugin.settings.effect_mobile==="slide_left"||plugin.settings.effect_mobile==="slide_right")) ){ var speed=plugin.isMobileView() ? plugin.settings.effect_speed_mobile:plugin.settings.effect_speed; anchor.siblings(".mega-sub-menu").animate({"height":"hide", "paddingTop":"hide", "paddingBottom":"hide", "minHeight":"hide"}, speed, function(){ anchor.siblings(".mega-sub-menu").css("display", ""); anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel"); }); return; } if(immediate){ anchor.siblings(".mega-sub-menu").css("display", "none").delay(plugin.settings.effect_speed).queue(function(){ $(this).css("display", "").dequeue(); }); } anchor.siblings(".mega-sub-menu").find(".widget_media_video video").each(function(){ this.player.pause(); }); anchor.parent().removeClass("mega-toggle-on").triggerHandler("close_panel"); plugin.addAnimatingClass(anchor.parent()); }; plugin.calculateDynamicSubmenuWidths=function(anchor){ if(anchor.parent().hasClass("mega-menu-megamenu")&&anchor.parent().parent().hasClass("max-mega-menu")&&plugin.settings.panel_width&&$(plugin.settings.panel_width).length > 0){ if(plugin.isDesktopView()){ var submenu_offset=$menu.offset(); var target_offset=$(plugin.settings.panel_width).offset(); anchor.siblings(".mega-sub-menu").css({ width: $(plugin.settings.panel_width).outerWidth(), left: (target_offset.left - submenu_offset.left) + "px" }); }else{ anchor.siblings(".mega-sub-menu").css({ width: "", left: "" }); }} if(anchor.parent().hasClass("mega-menu-megamenu")&&anchor.parent().parent().hasClass("max-mega-menu")&&plugin.settings.panel_inner_width&&$(plugin.settings.panel_inner_width).length > 0){ var target_width=0; if($(plugin.settings.panel_inner_width).length){ target_width=parseInt($(plugin.settings.panel_inner_width).width(), 10); }else{ target_width=parseInt(plugin.settings.panel_inner_width, 10); } var submenu_width=parseInt(anchor.siblings(".mega-sub-menu").innerWidth(), 10); if(plugin.isDesktopView()&&target_width > 0&&target_width < submenu_width){ anchor.siblings(".mega-sub-menu").css({ "paddingLeft": (submenu_width - target_width) / 2 + "px", "paddingRight": (submenu_width - target_width) / 2 + "px" }); }else{ anchor.siblings(".mega-sub-menu").css({ "paddingLeft": "", "paddingRight": "" }); }} }; var bindClickEvents=function(){ var dragging=false; $(document).on({ "touchmove": function(e){ dragging=true; }, "touchstart": function(e){ dragging=false; }}); $(document).on("click touchend", function(e){ if(!dragging&&plugin.settings.document_click==="collapse"&&! $(e.target).closest(".max-mega-menu li").length&&! $(e.target).closest(".mega-menu-toggle").length){ plugin.hideAllPanels(); plugin.hideMobileMenu(); } dragging=false; }); var collapse_children_parents=$("li.mega-menu-megamenu li.mega-menu-item-has-children.mega-collapse-children > a.mega-menu-link"); var clickable_parents=$("> a.mega-menu-link", items_with_submenus).add(collapse_children_parents); clickable_parents.on("touchend.megamenu", function(e){ plugin.unbindHoverEvents(); plugin.unbindHoverIntentEvents(); }); clickable_parents.on("click.megamenu", function(e){ if(plugin.isDesktopView()&&$(this).parent().hasClass("mega-toggle-on")&&$(this).parent().parent().parent().hasClass("mega-menu-tabbed")){ if(plugin.settings.second_click==="go"){ return; }else{ e.preventDefault(); return; }} if(dragging){ return; } if(plugin.isMobileView()&&$(this).parent().hasClass("mega-hide-sub-menu-on-mobile")){ return; } if((plugin.settings.second_click==="go"||$(this).parent().hasClass("mega-click-click-go"))&&$(this).attr("href")!==undefined){ if(!$(this).parent().hasClass("mega-toggle-on")){ e.preventDefault(); plugin.showPanel($(this)); }}else{ e.preventDefault(); if($(this).parent().hasClass("mega-toggle-on")){ plugin.hidePanel($(this), false); }else{ plugin.showPanel($(this)); }} }); }; var bindHoverEvents=function(){ items_with_submenus.on({ "mouseenter.megamenu":function(){ plugin.unbindClickEvents(); if(! $(this).hasClass("mega-toggle-on")){ plugin.showPanel($(this).children("a.mega-menu-link")); }}, "mouseleave.megamenu":function(){ if($(this).hasClass("mega-toggle-on")&&! $(this).hasClass("mega-disable-collapse")&&! $(this).parent().parent().hasClass("mega-menu-tabbed")){ plugin.hidePanel($(this).children("a.mega-menu-link"), false); }} }); }; var bindHoverIntentEvents=function(){ items_with_submenus.hoverIntent({ over: function (){ plugin.unbindClickEvents(); if(! $(this).hasClass("mega-toggle-on")){ plugin.showPanel($(this).children("a.mega-menu-link")); }}, out: function (){ if($(this).hasClass("mega-toggle-on")&&! $(this).hasClass("mega-disable-collapse")&&! $(this).parent().parent().hasClass("mega-menu-tabbed")){ plugin.hidePanel($(this).children("a.mega-menu-link"), false); }}, timeout: megamenu.timeout, interval: megamenu.interval }); }; var bindKeyboardEvents=function(){ var tab_key=9; var escape_key=27; var enter_key=13; var left_arrow_key=37; var right_arrow_key=39; var space_key=32; $menu.parent().on("keyup.megamenu", function(e){ var keyCode=e.keyCode||e.which; if(keyCode===tab_key){ $menu.parent().addClass("mega-keyboard-navigation"); }}); $menu.parent().on("keydown.megamenu", function(e){ var keyCode=e.keyCode||e.which; var active_link=$(e.target); if(keyCode===space_key&&active_link.is(".mega-menu-link")&&$menu.parent().hasClass("mega-keyboard-navigation")){ e.preventDefault(); if(active_link.parent().is(items_with_submenus)){ if(active_link.parent().hasClass("mega-toggle-on")&&! active_link.parent().parent().parent().hasClass("mega-menu-tabbed")){ plugin.hidePanel(active_link); }else{ plugin.showPanel(active_link); }} }}); $menu.parent().on("keyup.megamenu", function(e){ var keyCode=e.keyCode||e.which; var active_link=$(e.target); if(keyCode===tab_key&&$menu.parent().hasClass("mega-keyboard-navigation")){ if(active_link.parent().is(items_with_submenus)&&active_link.is("[href]")!==false){ plugin.showPanel(active_link); }else{ if(! active_link.parent().parent().parent().hasClass("mega-menu-tabbed")){ plugin.hideSiblingPanels(active_link); }} } if(keyCode===escape_key&&$menu.parent().hasClass("mega-keyboard-navigation")){ var submenu_open=$("> .mega-toggle-on", $menu).length!==0; $("> .mega-toggle-on > a.mega-menu-link", $menu).focus(); plugin.hideAllPanels(); if(plugin.isMobileView()&&! submenu_open){ plugin.hideMobileMenu(); $(".mega-menu-toggle-block, button.mega-toggle-animated", $toggle_bar).first().focus(); }} if(keyCode===enter_key&&$menu.parent().hasClass("mega-keyboard-navigation")){ if(active_link.hasClass("mega-menu-toggle-block")){ if($toggle_bar.hasClass("mega-menu-open")){ plugin.hideMobileMenu(); }else{ plugin.showMobileMenu(); }} if(active_link.parent().is(items_with_submenus)&&active_link.is("[href]")===false){ if(active_link.parent().hasClass("mega-toggle-on")&&! active_link.parent().parent().parent().hasClass("mega-menu-tabbed")){ plugin.hidePanel(active_link); }else{ plugin.showPanel(active_link); }} } if(keyCode===right_arrow_key&&plugin.isDesktopView()&&$menu.parent().hasClass("mega-keyboard-navigation")&&$menu.hasClass("mega-menu-horizontal")){ var next_top_level_item=$("> .mega-toggle-on", $menu).nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").first(); if(next_top_level_item.length===0){ next_top_level_item=$(":focus", $menu).parent().nextAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").first(); } next_top_level_item.focus(); if(next_top_level_item.parent().is(items_with_submenus)&&next_top_level_item.is("[href]")!==false){ plugin.showPanel(next_top_level_item); }else{ plugin.hideSiblingPanels(next_top_level_item); }} if(keyCode===left_arrow_key&&plugin.isDesktopView()&&$menu.parent().hasClass("mega-keyboard-navigation")&&$menu.hasClass("mega-menu-horizontal")){ var prev_top_level_item=$("> .mega-toggle-on", $menu).prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").last(); if(prev_top_level_item.length===0){ prev_top_level_item=$(":focus", $menu).parent().prevAll("li.mega-menu-item:visible").find("> a.mega-menu-link, .mega-search input[type=text]").last(); } prev_top_level_item.focus(); if(prev_top_level_item.parent().is(items_with_submenus)&&prev_top_level_item.is("[href]")!==false){ plugin.showPanel(prev_top_level_item); }else{ plugin.hideSiblingPanels(prev_top_level_item); }} }); $menu.parent().on("focusout.megamenu", function(e){ if($menu.parent().hasClass("mega-keyboard-navigation")){ setTimeout(function(){ var menu_has_focus=$menu.parent().find(":focus").length > 0; if(! menu_has_focus){ $menu.parent().removeClass("mega-keyboard-navigation"); plugin.hideAllPanels(); plugin.hideMobileMenu(); }}, 10); }}); }; plugin.unbindAllEvents=function(){ $("ul.mega-sub-menu, li.mega-menu-item, li.mega-menu-row, li.mega-menu-column, a.mega-menu-link, span.mega-indicator", menu).off().unbind(); }; plugin.unbindClickEvents=function(){ $("> a.mega-menu-link", items_with_submenus).off("click.megamenu touchend.megamenu"); }; plugin.unbindHoverEvents=function(){ items_with_submenus.unbind("mouseenter.megamenu mouseleave.megamenu"); }; plugin.unbindHoverIntentEvents=function(){ items_with_submenus.unbind("mouseenter mouseleave").removeProp("hoverIntent_t").removeProp("hoverIntent_s"); }; plugin.unbindKeyboardEvents=function(){ $menu.parent().off("keyup.megamenu keydown.megamenu focusout.megamenu"); }; plugin.unbindMegaMenuEvents=function(){ if(plugin.settings.event==="hover_intent"){ plugin.unbindHoverIntentEvents(); } if(plugin.settings.event==="hover"){ plugin.unbindHoverEvents(); } plugin.unbindClickEvents(); plugin.unbindKeyboardEvents(); }; plugin.bindMegaMenuEvents=function(){ if(plugin.isDesktopView()&&plugin.settings.event==="hover_intent"){ bindHoverIntentEvents(); } if(plugin.isDesktopView()&&plugin.settings.event==="hover"){ bindHoverEvents(); } bindClickEvents(); bindKeyboardEvents(); }; plugin.monitorView=function(){ if(plugin.isDesktopView()){ $menu.data("view", "desktop"); }else{ $menu.data("view", "mobile"); plugin.switchToMobile(); } plugin.checkWidth(); $(window).resize(function(){ plugin.checkWidth(); }); }; plugin.checkWidth=function(){ if(plugin.isMobileView()&&$menu.data("view")==="desktop"){ $menu.data("view", "mobile"); plugin.switchToMobile(); } if(plugin.isDesktopView()&&$menu.data("view")==="mobile"){ $menu.data("view", "desktop"); plugin.switchToDesktop(); } plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu)); }; plugin.reverseRightAlignedItems=function(){ if(! $("body").hasClass("rtl")){ $menu.append($menu.children("li.mega-item-align-right").get().reverse()); }}; plugin.addClearClassesToMobileItems=function(){ $(".mega-menu-row", $menu).each(function(){ $("> .mega-sub-menu > .mega-menu-column:not(.mega-hide-on-mobile)", $(this)).filter(":even").addClass("mega-menu-clear"); }); }; plugin.switchToMobile=function(){ plugin.unbindMegaMenuEvents(); plugin.bindMegaMenuEvents(); plugin.reverseRightAlignedItems(); plugin.addClearClassesToMobileItems(); plugin.hideAllPanels(); }; plugin.switchToDesktop=function(){ plugin.unbindMegaMenuEvents(); plugin.bindMegaMenuEvents(); plugin.reverseRightAlignedItems(); plugin.hideAllPanels(); $menu.css({ width: "", left: "", display: "" }); $toggle_bar.removeClass("mega-menu-open"); }; plugin.initToggleBar=function(){ $toggle_bar.on("click", function(e){ if($(e.target).is(".mega-menu-toggle, .mega-menu-toggle-block, .mega-menu-toggle-animated-block, .mega-menu-toggle-animated-block *, .mega-toggle-blocks-left, .mega-toggle-blocks-center, .mega-toggle-blocks-right, .mega-toggle-label, .mega-toggle-label span")){ if($(this).hasClass("mega-menu-open")){ plugin.hideMobileMenu(); }else{ plugin.showMobileMenu(); }} }); }; plugin.hideMobileMenu=function(){ if(! $toggle_bar.is(":visible")){ return; } html_body_class_timeout=setTimeout(function(){ $("body").removeClass($menu.attr("id") + "-mobile-open"); $("html").removeClass($menu.attr("id") + "-off-canvas-open"); }, plugin.settings.effect_speed_mobile); $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "false"); if(plugin.settings.effect_mobile==="slide"){ $menu.animate({"height":"hide"}, plugin.settings.effect_speed_mobile, function(){ $menu.css({ width: "", left: "", display: "" }); }); } $toggle_bar.removeClass("mega-menu-open"); }; plugin.showMobileMenu=function(){ if(! $toggle_bar.is(":visible")){ return; } clearTimeout(html_body_class_timeout); $("body").addClass($menu.attr("id") + "-mobile-open"); if(plugin.settings.effect_mobile==="slide_left"||plugin.settings.effect_mobile==="slide_right"){ $("html").addClass($menu.attr("id") + "-off-canvas-open"); } $(".mega-toggle-label, .mega-toggle-animated", $toggle_bar).attr("aria-expanded", "true"); plugin.toggleBarForceWidth(); if(plugin.settings.effect_mobile==="slide"){ $menu.animate({"height":"show"}, plugin.settings.effect_speed_mobile); } $toggle_bar.addClass("mega-menu-open"); }; plugin.toggleBarForceWidth=function(){ if($(plugin.settings.mobile_force_width).length&&(plugin.settings.effect_mobile=='slide'||plugin.settings.effect_mobile=='disabled')){ var submenu_offset=$toggle_bar.offset(); var target_offset=$(plugin.settings.mobile_force_width).offset(); $menu.css({ width: $(plugin.settings.mobile_force_width).outerWidth(), left: (target_offset.left - submenu_offset.left) + "px" }); }}; plugin.init=function(){ $menu.triggerHandler("before_mega_menu_init"); plugin.settings=$.extend({}, defaults, options); $menu.removeClass("mega-no-js"); plugin.initToggleBar(); if(plugin.settings.unbind_events==="true"){ plugin.unbindAllEvents(); } $("span.mega-indicator", $menu).on("click.megamenu", function(e){ e.preventDefault(); e.stopPropagation(); if($(this).parent().parent().hasClass("mega-toggle-on")){ if(! $(this).parent().parent().parent().parent().hasClass("mega-menu-tabbed")||plugin.isMobileView()){ plugin.hidePanel($(this).parent(), false); }}else{ plugin.showPanel($(this).parent(), false); }}); $(window).on("load", function(){ plugin.calculateDynamicSubmenuWidths($("> li.mega-menu-megamenu > a.mega-menu-link", $menu)); }); plugin.bindMegaMenuEvents(); plugin.monitorView(); $menu.triggerHandler("after_mega_menu_init"); }; plugin.init(); }; $.fn.maxmegamenu=function(options){ return this.each(function(){ if(undefined===$(this).data("maxmegamenu")){ var plugin=new $.maxmegamenu(this, options); $(this).data("maxmegamenu", plugin); }}); }; $(function(){ $(".max-mega-menu").maxmegamenu(); }); }(jQuery)); var thim_scroll=true; var woof_js_after_ajax_done; (function ($){ "use strict"; if(typeof LearnPress!='undefined'){ if(typeof LearnPress.load_lesson=='undefined'){ LearnPress.load_lesson=function (a, b){ LearnPress.$Course&&LearnPress.$Course.loadLesson(a, b); }} } $.avia_utilities=$.avia_utilities||{}; $.avia_utilities.supported={}; $.avia_utilities.supports=(function (){ var div=document.createElement('div'), vendors=['Khtml', 'Ms', 'Moz', 'Webkit', 'O']; return function (prop, vendor_overwrite){ if(div.style.prop!==undefined){ return ""; } if(vendor_overwrite!==undefined){ vendors=vendor_overwrite; } prop=prop.replace(/^[a-z]/, function (val){ return val.toUpperCase(); }); var len=vendors.length; while (len--){ if(div.style[vendors[len] + prop]!==undefined){ return "-" + vendors[len].toLowerCase() + "-"; }} return false; };}()); (function ($, sr){ var debounce=function (func, threshold, execAsap){ var timeout; return function debounced(){ var obj=this, args=arguments; function delayed(){ if(!execAsap) func.apply(obj, args); timeout=null; } if(timeout) clearTimeout(timeout); else if(execAsap) func.apply(obj, args); timeout=setTimeout(delayed, threshold||100); };}; jQuery.fn[sr]=function (fn){ return fn ? this.bind('resize', debounce(fn)):this.trigger(sr); };})(jQuery, 'smartresize'); var back_to_top=function (){ jQuery(window).scroll(function (){ if(jQuery(this).scrollTop() > 400){ jQuery('#back-to-top').addClass('active'); }else{ jQuery('#back-to-top').removeClass('active'); }}); jQuery('#back-to-top').on('click', function (){ jQuery('html, body').animate({scrollTop: '0px'}, 800); return false; }); }; var thim_SwitchLayout=function (){ var cookie_name='course_switch', archive=$('#thim-course-archive'); if(archive.length > 0){ if(!jQuery.cookie(cookie_name)||jQuery.cookie(cookie_name)=='grid-layout'){ if(archive.hasClass('thim-course-list')){ archive.removeClass('thim-course-list').addClass('thim-course-grid'); } $('.thim-course-switch-layout > a.switchToGrid').addClass('switch-active'); }else{ if(archive.hasClass('thim-course-grid')){ archive.removeClass('thim-course-grid').addClass('thim-course-list'); } $('.thim-course-switch-layout > a.switchToList').addClass('switch-active'); } $('.thim-course-switch-layout > a').on('click', function (event){ var elem=$(this); event.preventDefault(); if(!elem.hasClass('switch-active')){ if(elem.hasClass('switchToGrid')){ $('.thim-course-switch-layout > a').removeClass('switch-active'); elem.addClass('switch-active'); archive.fadeOut(300, function (){ archive.removeClass('thim-course-list').addClass(' thim-course-grid').fadeIn(300); jQuery.cookie(cookie_name, 'grid-layout', {expires: 3, path: '/'}); }); }else{ $('.thim-course-switch-layout > a').removeClass('switch-active'); elem.addClass('switch-active'); archive.fadeOut(300, function (){ archive.removeClass('thim-course-grid').addClass('thim-course-list').fadeIn(300); jQuery.cookie(cookie_name, 'list-layout', {expires: 3, path: '/'}); }); }} }); }}; var thim_Shop_SwitchLayout=function (){ var cookie_name='product_list', archive=$('#thim-product-archive'); if(archive.length > 0){ if(!jQuery.cookie(cookie_name)||jQuery.cookie(cookie_name)=='grid-layout'){ if(archive.hasClass('thim-product-list')){ archive.removeClass('thim-product-list').addClass('thim-product-grid'); } $('.thim-product-switch-layout > a.switch-active').removeClass('switch-active'); $('.thim-product-switch-layout > a.switchToGrid').addClass('switch-active'); }else{ if(archive.hasClass('thim-product-grid')){ archive.removeClass('thim-product-grid').addClass('thim-product-list'); } $('.thim-product-switch-layout > a.switch-active').removeClass('switch-active'); $('.thim-product-switch-layout > a.switchToList').addClass('switch-active'); } $(document).on('click', '.thim-product-switch-layout > a', function (event){ var elem=$(this), archive=$('#thim-product-archive'); event.preventDefault(); if(!elem.hasClass('switch-active')){ if(elem.hasClass('switchToGrid')){ $('.thim-product-switch-layout > a').removeClass('switch-active'); elem.addClass('switch-active'); archive.fadeOut(300, function (){ archive.removeClass('thim-product-list').addClass(' thim-product-grid').fadeIn(300); jQuery.cookie(cookie_name, 'grid-layout', {expires: 3, path: '/'}); }); }else{ $('.thim-product-switch-layout > a').removeClass('switch-active'); elem.addClass('switch-active'); archive.fadeOut(300, function (){ archive.removeClass('thim-product-grid').addClass('thim-product-list').fadeIn(300); jQuery.cookie(cookie_name, 'list-layout', {expires: 3, path: '/'}); }); }} }); }}; var thim_Menu=function (){ var $header=$('#masthead.sticky-header'), off_Top=($('.content-pusher').length > 0) ? $('.content-pusher').offset().top:0, menuH=$header.outerHeight(), latestScroll=0; if($(window).scrollTop() > 2){ $header.removeClass('affix-top').addClass('affix'); } $(window).scroll(function (){ var current=$(this).scrollTop(); if(current > 2){ $header.removeClass('affix-top').addClass('affix'); }else{ $header.removeClass('affix').addClass('affix-top'); } if(current > latestScroll&¤t > menuH + off_Top){ if(!$header.hasClass('menu-hidden')){ $header.addClass('menu-hidden'); }}else{ if($header.hasClass('menu-hidden')){ $header.removeClass('menu-hidden'); }} latestScroll=current; }); $('.wrapper-container:not(.mobile-menu-open) .site-header .navbar-nav >li,.wrapper-container:not(.mobile-menu-open) .site-header .navbar-nav li,.site-header .navbar-nav li ul li').on({ 'mouseenter': function (){ $(this).children('.sub-menu').stop(true, false).fadeIn(250); }, 'mouseleave': function (){ $(this).children('.sub-menu').stop(true, false).fadeOut(250); }}); if($(window).width() > 768){ var menu_active=$('#masthead .navbar-nav>li.menu-item.current-menu-item,#masthead .navbar-nav>li.menu-item.current-menu-parent, #masthead .navbar-nav>li.menu-item.current-menu-ancestor'); if(menu_active.length > 0){ menu_active.before(''); var menu_active_child=menu_active.find('>a,>span.disable_link'), menu_left=menu_active.position().left, menu_child_left=parseInt(menu_active_child.css('padding-left')), magic=$('#magic-line'); magic.width(menu_active_child.width()).css("left", Math.round(menu_child_left + menu_left)).data('magic-width', magic.width()).data('magic-left', magic.position().left); }else{ var first_menu=$('#masthead .navbar-nav>li.menu-item:first-child'); first_menu.before(''); var magic=$('#magic-line'); magic.data('magic-width', 0); } var nav_H=parseInt($('.site-header .navigation').outerHeight()); magic.css('bottom', nav_H - (nav_H - 90) / 2 - 64); $('#masthead .navbar-nav>li.menu-item').on({ 'mouseenter': function (){ var elem=$(this).find('>a,>span.disable_link'), new_width=elem.width(), parent_left=elem.parent().position().left, left=parseInt(elem.css('padding-left')); if(!magic.data('magic-left')){ magic.css('left', Math.round(parent_left + left)); magic.data('magic-left', 'auto'); } magic.stop().animate({ left: Math.round(parent_left + left), width: new_width }); }, 'mouseleave': function (){ magic.stop().animate({ left: magic.data('magic-left'), width: magic.data('magic-width') }); }}); } $('.header_v1 .menu-item.widget_area:not(.dropdown_full_width),.header_v1 .menu-item.multicolumn:not(.dropdown_full_width)').each(function (){ var elem=$(this), elem_Left=elem.offset().left, sub_menu=elem.find('>.sub-menu'); if(sub_menu.length > 0){ var left=(elem.width() - sub_menu.width()) / 2; if(Math.abs(left) > elem_Left){ sub_menu.css('left', elem_Left * Math.abs(left) / left); }else{ sub_menu.css('left', left); }} }); }; var thim_post_audio=function (){ $('.jp-jplayer').each(function (){ var $this=$(this), url=$this.data('audio'), type=url.substr(url.lastIndexOf('.') + 1), player='#' + $this.data('player'), audio={}; audio[type]=url; $this.jPlayer({ ready: function (){ $this.jPlayer('setMedia', audio); }, swfPath: 'jplayer/', cssSelectorAncestor: player }); }); }; var thim_quick_view=function (){ $('.quick-view').on('click', function (e){ $('.quick-view a').css('display', 'none'); $(this).append(''); var product_id=$(this).attr('data-prod'); var data={action: 'jck_quickview', product: product_id}; $.post(ajaxurl, data, function (response){ $.magnificPopup.open({ mainClass: 'my-mfp-zoom-in', items: { src: response, type: 'inline' }}); $('.quick-view a').css('display', 'inline-block'); $('.loading').remove(); $('.product-card .wrapper').removeClass('animate'); setTimeout(function (){ if(typeof wc_add_to_cart_variation_params!=='undefined'){ $('.product-info .variations_form').each(function (){ $(this).wc_variation_form().find('.variations select:eq(0)').change(); }); }}, 600); }); e.preventDefault(); }); }; var thim_miniCartHover=function (){ jQuery(document).on('mouseenter', '.site-header .minicart_hover', function (){ jQuery(this).next('.widget_shopping_cart_content').slideDown(); }).on('mouseleave', '.site-header .minicart_hover', function (){ jQuery(this).next('.widget_shopping_cart_content').delay(100).stop(true, false).slideUp(); }); jQuery(document) .on('mouseenter', '.site-header .widget_shopping_cart_content', function (){ jQuery(this).stop(true, false).show(); }) .on('mouseleave', '.site-header .widget_shopping_cart_content', function (){ jQuery(this).delay(100).stop(true, false).slideUp(); }); }; var thim_carousel=function (){ if(jQuery().owlCarousel){ $(".thim-gallery-images").owlCarousel({ autoPlay: false, singleItem: true, stopOnHover: true, pagination: true, autoHeight: false }); $('.thim-carousel-wrapper').each(function (){ var item_visible=$(this).data('visible') ? parseInt($(this).data('visible')):4, item_desktopsmall=$(this).data('desktopsmall') ? parseInt($(this).data('desktopsmall')):item_visible, itemsTablet=$(this).data('itemtablet') ? parseInt($(this).data('itemtablet')):2, itemsMobile=$(this).data('itemmobile') ? parseInt($(this).data('itemmobile')):1, pagination=$(this).data('pagination') ? true:false, navigation=$(this).data('navigation') ? true:false, autoplay=$(this).data('autoplay') ? parseInt($(this).data('autoplay')):false; $(this).owlCarousel({ items: item_visible, itemsDesktop: [1200, item_visible], itemsDesktopSmall: [1024, item_desktopsmall], itemsTablet: [768, itemsTablet], itemsMobile: [480, itemsMobile], navigation: navigation, pagination: pagination, lazyLoad: true, autoPlay: autoplay, navigationText: [ "", "" ], }); }); $('.thim-carousel-course-categories .thim-course-slider').each(function (){ var item_visible=$(this).data('visible') ? parseInt($(this).data('visible')):7, item_desktopsmall=$(this).data('desktopsmall') ? parseInt($(this).data('desktopsmall')):6, pagination=$(this).data('pagination') ? true:false, navigation=$(this).data('navigation') ? true:false, autoplay=$(this).data('autoplay') ? parseInt($(this).data('autoplay')):false; $(this).owlCarousel({ items: item_visible, itemsDesktopSmall: [1024, item_desktopsmall], itemsTablet: [768, 4], itemsMobile: [480, 2], navigation: navigation, pagination: pagination, autoPlay: autoplay, navigationText: [ "", "" ], }); }); }}; var thim_contentslider=function (){ $('.thim-testimonial-slider').each(function (){ var elem=$(this), item_visible=parseInt(elem.data('visible')), autoplay=elem.data('autoplay') ? true:false, mousewheel=elem.data('mousewheel') ? true:false; var testimonial_slider=$(this).thimContentSlider({ items: elem, itemsVisible: item_visible, mouseWheel: mousewheel, autoPlay: autoplay, itemMaxWidth: 100, itemMinWidth: 100, activeItemRatio: 1.18, activeItemPadding: 0, itemPadding: 15 }); }); }; var thim_course_menu_landing=function (){ if($('.thim-course-menu-landing').length > 0){ var menu_landing=$('.thim-course-menu-landing'), tab_course=$('#course-landing .nav-tabs'), tab_active=tab_course.find('>li.active'), tab_item=tab_course.find('>li>a'), tab_landing=menu_landing.find('.thim-course-landing-tab'), tab_landing_item=tab_landing.find('>li>a'), landing_Top=($('#course-landing').length) > 0 ? $('#course-landing').offset().top:0, checkTop=($(window).height() > landing_Top) ? $(window).height():landing_Top; $('footer#colophon').addClass('has-thim-course-menu'); if(tab_active.length > 0){ var active_href=tab_active.find('>a').attr('href'), landing_active=tab_landing.find('>li>a[href="' + active_href + '"]'); if(landing_active.length > 0){ landing_active.parent().addClass('active'); }} tab_landing_item.on('click', function (event){ event.preventDefault(); var href=$(this).attr('href'), parent=$(this).parent(); $('body, html').animate({ scrollTop: tab_course.offset().top - 50 }, 800); if(!parent.hasClass('active')){ tab_landing.find('li.active').removeClass('active'); parent.addClass('active'); tab_course.find('>li>a[href="' + href + '"]').trigger('click'); }}); tab_item.on('click', function (){ var href=$(this).attr('href'), parent_landing=tab_landing.find('>li>a[href="' + href + '"]').parent(); if(!parent_landing.hasClass('active')){ tab_landing.find('li.active').removeClass('active'); parent_landing.addClass('active'); }}); $(window).scroll(function (){ if($(window).scrollTop() > checkTop){ $('body').addClass('course-landing-active'); }else{ $('body.course-landing-active').removeClass('course-landing-active'); } ; }) }}; var thim_LoginPopup=function (){ if($('#thim-popup-login .thim-login-container').length){ var el=$('#thim-popup-login .thim-login-container'), el_H=el.outerHeight(), win_H=$(window).height(); if(win_H > el_H){ el.css('top',(win_H - el_H) / 2); }} $(document).on('click', 'body:not(".loggen-in") .thim-button-checkout', function (e){ if($(window).width() > 767){ e.preventDefault(); if($('#thim-popup-login').length){ $('body').addClass('thim-popup-active'); $('#thim-popup-login').addClass('active'); }else{ var redirect=$(this).data('redirect'); window.location=redirect; }}else{ e.preventDefault(); var redirect=$(this).data('redirect'); window.location=redirect; }}); $(document).on('click', '#thim-popup-login .close-popup', function (event){ event.preventDefault(); $('body').removeClass('thim-popup-active'); $('#thim-popup-login').removeClass('active'); }); $(document).on('click', '.thim-login-popup .login', function (event){ if($(window).width() > 767){ event.preventDefault(); $('body').addClass('thim-popup-active'); $('#thim-popup-login').addClass('active'); }}); $(document).on('click', '#thim-popup-login', function (e){ if($(e.target).attr('id')=='thim-popup-login'){ $('body').removeClass('thim-popup-active'); $('#thim-popup-login').removeClass('active'); }}); $('#thim-popup-login form[name="loginform"]').submit(function (event){ event.preventDefault(); var elem=$('#thim-popup-login .thim-login-container'), input_username=elem.find('#thim_login').val(), input_password=elem.find('#thim_pass').val(); if(input_username==''||input_password==''){ return; } elem.append('
'); elem.find('.message').slideDown().remove(); var data={ action: 'thim_login_ajax', username: input_username, password: input_password, remember: elem.find('#rememberme').val() }; $.post(ajaxurl, data, function (response){ try { var response=JSON.parse(response); elem.find('.thim-login').append(response.message); if(response.code=='1'){ if(response.redirect){ window.location=response.redirect; }else{ window.location=window.location; }} } catch (e){ return false; } elem.find('.thim-loading-container').remove(); }); return false; }); } $(function (){ back_to_top(); if(typeof jQuery.fn.waypoint!=='undefined'){ jQuery('.wpb_animate_when_almost_visible:not(.wpb_start_animation)').waypoint(function (){ jQuery(this).addClass('wpb_start_animation'); }, {offset: '85%'}); }}); function empty(data){ if(typeof(data)=='number'||typeof(data)=='boolean'){ return false; } if(typeof(data)=='undefined'||data===null){ return true; } if(typeof(data.length)!='undefined'){ return data.length===0; } var count=0; for (var i in data){ if(Object.prototype.hasOwnProperty.call(data, i)){ count++; }} return count===0; } var windowWidth=window.innerWidth, windowHeight=window.innerHeight, $document=$(document), orientation=windowWidth > windowHeight ? 'landscape':'portrait'; var TitleAnimation={ selector: '.article__parallax', initialized: false, animated: false, initialize: function (){ }, update: function (){ }}; $(window).load(function (){ thim_post_audio(); thim_Menu(); thim_quick_view(); thim_miniCartHover(); thim_carousel(); thim_contentslider(); thim_SwitchLayout(); thim_Shop_SwitchLayout(); thim_LoginPopup(); setTimeout(function (){ TitleAnimation.initialize(); thim_course_menu_landing(); }, 400); }); $(window).on("debouncedresize", function (e){ windowWidth=$(window).width(); windowHeight=$(window).height(); TitleAnimation.initialize(); }); $(window).on("orientationchange", function (e){ setTimeout(function (){ TitleAnimation.initialize(); }, 300); }); var latestScrollY=$('html').scrollTop()||$('body').scrollTop(), ticking=false; function updateAnimation(){ ticking=false; TitleAnimation.update(); } function requestScroll(){ if(!ticking){ requestAnimationFrame(updateAnimation); } ticking=true; } $(window).on("scroll", function (){ latestScrollY=$('html').scrollTop()||$('body').scrollTop(); requestScroll(); }); jQuery(function ($){ var adminbar_height=jQuery('#wpadminbar').outerHeight(); jQuery('.navbar-nav li a,.arrow-scroll > a').on('click', function (e){ if(parseInt(jQuery(window).scrollTop(), 10) < 2){ var height=47; } else height=0; var sticky_height=jQuery('#masthead').outerHeight(); var menu_anchor=jQuery(this).attr('href'); if(menu_anchor&&menu_anchor.indexOf("#")==0&&menu_anchor.length > 1){ e.preventDefault(); $('html,body').animate({ scrollTop: jQuery(menu_anchor).offset().top - adminbar_height - sticky_height + height }, 850); }}); }); jQuery(document).on('click', '.menu-mobile-effect', function (e){ e.stopPropagation(); jQuery('.wrapper-container').toggleClass('mobile-menu-open'); }); jQuery(document).on('click', '.mobile-menu-open #main-content', function (){ jQuery('.wrapper-container.mobile-menu-open').removeClass('mobile-menu-open'); }); function mobilecheck(){ var check=false; (function (a){ if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(a.substr(0, 4)))check=true })(navigator.userAgent||navigator.vendor||window.opera); return check; } if(mobilecheck()){ window.addEventListener('load', function (){ var main_content=document.getElementById('main-content'); if(main_content){ main_content.addEventListener("touchstart", function (e){ jQuery('.wrapper-container').removeClass('mobile-menu-open'); }); }}, false); } ; if(jQuery(window).width() > 768){ jQuery('.navbar-nav>li.menu-item-has-children >a,.navbar-nav>li.menu-item-has-children >span').after(''); }else{ jQuery('.navbar-nav>li.menu-item-has-children:not(.current-menu-parent) >a,.navbar-nav>li.menu-item-has-children:not(.current-menu-parent) >span').after(''); jQuery('.navbar-nav>li.menu-item-has-children.current-menu-parent >a,.navbar-nav>li.menu-item-has-children.current-menu-parent >span').after(''); } jQuery('.navbar-nav>li.menu-item-has-children .icon-toggle').on('click', function (){ if(jQuery(this).next('ul.sub-menu').is(':hidden')){ jQuery(this).next('ul.sub-menu').slideDown(500, 'linear'); jQuery(this).html(''); }else{ jQuery(this).next('ul.sub-menu').slideUp(500, 'linear'); jQuery(this).html(''); }}); })(jQuery); (function ($){ var thim_quiz_index=function (){ var question_index=$('.single-quiz .index-question'), quiz_total_text=$('.single-quiz .quiz-total .quiz-text'); if(question_index.length > 0){ quiz_total_text.html(question_index.html()); }}; jQuery(function ($){ $('.video-container').on('click', '.beauty-intro .btns', function (){ var iframe=''; $(this).closest(".video-container").find(".yt-player").replaceWith(iframe); $(this).closest(".video-container").find('.hideClick:first').css('display', 'none'); }); }); jQuery(function ($){ if(!$('.add-review').length){ return; } var $star=$('.add-review .filled'); var $review=$('#review-course-value'); $star.find('li').on('mouseover', function (){ $(this).nextAll().find('span').removeClass('fa-star').addClass('fa-star-o'); $(this).prevAll().find('span').removeClass('fa-star-o').addClass('fa-star'); $(this).find('span').removeClass('fa-star-o').addClass('fa-star'); $review.val($(this).index() + 1); } ); }); jQuery(function ($){ return; $('form.purchase-course').submit(function (){ var $button=$('.purchase-course button.purchase-button'), $view_cart=$('.purchase-course .view-cart-button'); $button.removeClass('added').addClass('loading').html($(this).data('loading-text')||'Processing').attr('disabled', true); $.ajax({ url: $('input[name="_wp_http_referer"]', this).val() + '?lp-ajax=add-to-cart', data: $(this).serialize(), error: function (){ $button.removeClass('loading'); }, dataType: 'html', success: function (response){ $button.addClass('added').removeClass('loading'); $view_cart.removeClass('hide-if-js'); }}); return false; }); }); jQuery(function ($){ $('.login-username [name="log"]').attr('placeholder', thim_js_translate.login); $('.login-password [name="pwd"]').attr('placeholder', thim_js_translate.password); }); jQuery(function ($){ if(typeof LearnPress!='undefined'){ LearnPress.Hook .addFilter('learn_press_before_next_question', _before_loading_quiz) .addAction('learn_press_next_question', _after_update_quiz_content) .addFilter('learn_press_before_prev_question', _before_loading_quiz) .addAction('learn_press_previous_question', _after_update_quiz_content) .addFilter('learn_press_before_select_question', _before_loading_quiz) .addFilter('learn_press_before_start_quiz', _before_loading_quiz) .addAction('learn_press_start_quiz', _after_start_quiz) .addFilter('learn_press_before_check_question', _before_loading_quiz) .addAction('learn_press_check_question', _after_update_quiz_content) .addFilter('learn_press_before_finish_quiz', _before_finish_quiz) .addFilter('learn_press_before_retake_quiz', _before_retake_quiz) .removeAction('learn_press_user_completed_lesson') .addAction('learn_press_user_completed_lesson', _user_complete_lesson); LearnPress.Hook .addAction('learn_press_update_question_content', function ($a, $b, $c){ var id=$c.model.current().get('id'), pos=$.inArray(id, single_quiz_params.questions) if(pos!=-1){ $('.single-quiz .quiz-text .number').html((pos + 1) + '/' + single_quiz_params.questions.length); } _after_update_quiz_content(); }); function _after_start_quiz(){ var $iframe=$(".thim-iframe-quiz iframe", parent.document.body); $iframe.css('min-height', $('body').outerHeight()); _after_update_quiz_content(); } function _user_complete_lesson(response, that){ if(response&&response.result=='success'){ var $button=that.$('.complete-lesson-button'), $complete_text=$button.data('completed-text'); if(!$button.hasClass('completed')){ $button.addClass('completed').prop('disabled', true).html($complete_text); $('.course-item-' + response.id).addClass('item-completed'); if(response.course_result){ if(response.can_finish){ $('#learn-press-finish-course').removeClass('hide-if-js'); LearnPress.Hook.doAction('learn_press_user_passed_course_condition', response, that); } if(response.message){ $(response.message).insertBefore($button); } LearnPress.$Course.updateProgress(response); $('.lp-course-progress .result').html(response.course_result + '%'); _after_update_lesson(); }} }} function _after_update_lesson(){ var $course_lesson=$('#learn-press-course-lesson'), $course_content=$('.course-content'), $content_height=$course_content.outerHeight(), $lesson_height=$course_lesson.outerHeight() + 150; if($content_height < $lesson_height){ $course_content.addClass('loading').animate({ height: $lesson_height }, 400, function (){ var position=$course_content.parent().position()||{top: 0, left: 0}; $course_content.find('.popup-title').css({ 'left': position.left, 'top': position.top + parseInt($('html', window.parent.document).css('margin-top')), 'width': $course_content.innerWidth() }); $course_content.removeClass('loading'); }); }} function _before_retake_quiz($return, that){ var $retake_top=$('.button-retake-quiz').length ? $('.button-retake-quiz').offset().top:0; setTimeout(function (){ var $pop_height=$('#popup_container').height(); $('#popup_container').css('top', parseInt($retake_top - $pop_height / 2)); $('#popup_container').fadeIn(); }, 300); LearnPress.confirm(single_quiz_localize.confirm_retake_quiz, function (confirm){ if(!confirm){ return; } _before_loading_quiz(); that.retakeQuiz({ complete: function (response){ LearnPress.Hook.doAction('learn_press_user_retaken_quiz', response, that); }}); }) $return=false; return $return; } function _before_finish_quiz($return, that){ var $retake_top=$('.button-finish-quiz').length ? $('.button-finish-quiz').offset().top:0; setTimeout(function (){ var $pop_height=$('#popup_container').height(); $('#popup_container').css('top', parseInt($retake_top - $pop_height / 2)); $('#popup_container').fadeIn(); }, 300); LearnPress.confirm(single_quiz_localize.confirm_finish_quiz, function (confirm){ if(!confirm){ return; } _before_loading_quiz(); that.$buttons.next.prop('disabled', true); that.$buttons.prev.prop('disabled', true); that.$buttons.finish.prop('disabled', true); that.finishQuiz({ data: { save_id: that.model.get('question_id'), question_answer: that.$('form').serialize(), time_remaining: that.model.get('time_remaining') }, complete: function (response){ LearnPress.MessageBox.hide(); LearnPress.Hook.doAction('learn_press_user_finished_quiz', response, that); }}); }); $return=false; return $return; } function _before_loading_quiz(){ var $course_quiz=$(".course-content", parent.document.body); $course_quiz.prepend('
'); } function _after_update_quiz_content(){ var iframe=$(".thim-iframe-quiz iframe", parent.document.body), iframe_H=iframe.contents().find('body').height(), $course_content=iframe.parents('.course-content'), $thim_loading=$course_content.find('.thim-loading-container'); if($thim_loading.length > 0){ $thim_loading.remove(); } thim_quiz_index(); $course_content.addClass('loading').animate({ height: iframe_H + 150 }, 400, function (){ var position=$course_content.parent().position()||{top: 0, left: 0}; $course_content.find('.popup-title').css({ 'left': position.left, 'top': position.top + parseInt($('html', window.parent.document).css('margin-top')), 'width': $course_content.innerWidth() }); $course_content.removeClass('loading'); }); } function _show_popup($content){ $.magnificPopup.open({ closeOnBgClick: false, preloader: false, showCloseBtn: false, items: { src: $content||$('.course-content'), type: 'inline' }, mainClass: 'mfp-with-fade', removalDelay: 300, callbacks: { open: function (){ thim_scroll=false; if($('.thim-course-menu-landing').length > 0){ $('.thim-course-menu-landing').addClass('thim-hidden'); } $.magnificPopup.instance.close=function (){ if($('.thim-loading-container').length > 0){ return; } thim_scroll=true; $('.thim-course-menu-landing.thim-hidden').removeClass('thim-hidden'); $.magnificPopup.proto.close.call(this); $('.course-content').removeClass('rendered'); }; this.container.css('padding-top', 0).parent().css({ top: $('html').css('margin-top'), height: 'auto', bottom: 0 }) }, resize: function (){ var $courseContent=$('.course-content'), $title=$courseContent.find('.popup-title'), position=$('.mfp-content').position()||{top: 0, left: 0}, htmlPadding=parseInt($('html').css('margin-top')); $title.css({ 'left': position.left, 'top': position.top + htmlPadding, 'width': $courseContent.innerWidth() }); }} }); } function _before_load_lesson($view){ LearnPress.Hook.removeFilter('learn_press_before_load_item'); var $courseContent=$('.course-content'), winH=$(window).outerHeight(), content_H=$('.mfp-content').length > 0 ? $courseContent.outerHeight():winH * 3 / 4; content_H=(content_H > winH) ? winH + 1:content_H; _show_popup(); if(!$view.model.get('content')){ $courseContent.html('
'); }else{ $courseContent.html(''); } $courseContent.outerHeight(content_H); LearnPress.Hook.addFilter('learn_press_before_load_item', _before_load_lesson); if($view.model.get('type')=='lp_quiz'){ var href=$('.course-item-' + $view.model.get('id') + ' a').prop('href'), quiz_index=$('.course-item-' + $view.model.get('id') + ' .index').html(), quiz_title=$('.course-item-' + $view.model.get('id') + ' a').html(), $lesson=$('
'), $main=$lesson.find('.thim-iframe-quiz'), $iframe=$('