vendor: 4,613 bytes, lines 1-3
1// source --> https://seventrieste.com/wp-includes/js/jquery/jquery.js?ver=1.12.4-wp 2/*! jQuery v1.12.4 | (c) jQuery Foundation | jquery.org/license | WordPress 2019-05-16 */ 3!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<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],"__proto__"!==d&&g!==c&&(j&&c&&(n.isPlainObject(c)||(b=n.isArray(c)))?(b?(b=!1,f=a&&n.isArray(a)?a:[]):f=a&&n.isPlainObject(a)?a:{},g[d]=n.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray||function(a){return"array"===n.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=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;d<c;d++)if(!1===b.call(a[d],d,a[d]))break}else for(d in a)if(!1===b.call(a[d],d,a[d]))break;return a},trim:function(a){return null==a?"":(a+"").replace(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(h)return h.call(b,a,c);for(d=b.length,c=c?c<0?Math.max(0,d+c):c:0;c<d;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(d<c)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)(d=!b(a[f],f))!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;g<d;g++)null!=(e=b(a[g],g,c))&&h.push(e);else for(g in a)null!=(e=b(a[g],g,c))&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;if("string"==typeof b&&(f=a[b],b=a,a=f),n.isFunction(a))return c=e.call(arguments,2),d=function(){return a.apply(b||this,c.concat(e.call(arguments)))},d.guid=a.guid=a.guid||n.guid++,d},now:function(){return+new Date},support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"!==c&&!n.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&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*ne
vendor: 3,069 bytes, line 3
3w 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<d;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+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}
vendor: 4,944 bytes, line 3
3function 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 id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",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);
vendor: 4,933 bytes, line 3
3var 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)}
vendor: 30,632 bytes, lines 3-4
3,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<b;c+=2)a.push(c);return a}),odd:ma(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:ma(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:ma(function(a,b,c){for(var d=c<0?c+b:c;++d<b;)a.push(d);return a})}},d.pseudos.nth=d.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})d.pseudos[b]=ka(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=la(b);function oa(){}oa.prototype=d.filters=d.pseudos,d.setFilters=new oa,g=ea.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?ea.error(a):z(a,i).slice(0)};function pa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function qa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function ra(a){return a.length>1?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<e;d++)ea(a,b[d],c);return c}function ta(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;h<i;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function ua(a,b,c,d,e,f){return d&&!d[u]&&(d=ua(d)),e&&!e[u]&&(e=ua(e,f)),ga(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||sa(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ta(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ta(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-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}];i<f;i++)if(c=d.relative[a[i].type])m=[qa(ra(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;e<f;e++)if(d.relative[a[e].type])break;return ua(i>1&&ra(m),i>1&&pa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,i<e&&va(a.slice(i,e)),e<f&&va(a=a.slice(e)),e<f&&pa(a))}m.push(c)}return ra(m)}function wa(a,b){var c=b.length>0,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 href='#'></a>","#"===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="<input/>",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;b<e;b++)if(n.contains(d[b],this))return!0}));for(b=0;b<e;b++)n.find(a,d[b],c);return c=this.pushStack(e>1?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<d;b++)if(n.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;d<e;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-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<f.length)!1===f[h].apply(c[0],c[1])&&a.stopOnFalse&&(h=f.length,c=!1)}a.memory||(c=!1),b=!1,e&&(f=c?[]:"")},j={add:function(){return f&&(c&&!b&&(h=f.length-1,g.push(c)),function b(c){n.each(c,function(c,d){n.isFunction(d)?a.unique&&j.has(d)||f.push(d):d&&d.length&&"string"!==n.type(d)&&b(d)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-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);b<d;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var H;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(!0===a?--n.readyWait:n.isReady)||(n.isReady=!0,!0!==a&&--n.readyWait>0||(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 4;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<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)(c=n._data(f[g],a+"queueHooks"))&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}}),function(){var a;l.shrinkWrapBlocks=function(){if(null!=a)return a;a=!1;var b,c,e;return(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="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",b.appendChild(d.createElement("div")).style.width="5px",a=3!==b.offsetWidth),c.removeChild(e),a):void 0}}();var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do{f=f||".5",k/=f,n.style(a,b,k+j)}while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)X(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},Y=/^(?:checkbox|radio)$/i,Z=/<([\w:-]+)/,$=/^$|\/(?:java|ecma)script/i,_=/^\s+/,aa="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function ba(a){var b=aa.split("|"),c=a.createDocumentFragment();if(c.createElement)while(b.length)c.createElement(b.pop());return c}!function(){var a=d.createElement("div"),b=d.createDocumentFragment(),c=d.createElement("input");a.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",l.leadingWhitespace=3===a.firstChild.nodeType,l.tbody=!a.getElementsByTagName("tbody").length,l.htmlSerialize=!!a.getElementsByTagName("link").length,l.html5Clone="<:nav></:nav>"!==d.createElement("nav").cloneNode(!0).outerHTML,c.type="checkbox",c.checked=!0,b.appendChild(c),l.appendChecked=c.checked,a.innerHTML="<textarea>x</textarea>",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,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:l.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};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=/<tbody/i;function ha(a){Y.test(a.type)&&(a.defaultChecked=a.checked)}function ia(a,b,c,d,e){for(var f,g,h,i,j,k,m,o=a.length,p=ba(b),q=[],r=0;r<o;r++)if((g=a[r])||0===g)if("object"===n.type(g))n.merge(q,g.nodeType?[g]:g);else if(fa.test(g)){i=i||p.appendChild(b.createElement("div")),j=(Z.exec(g)||["",""])[1].toLowerCase(),m=ca[j]||ca._default,i.innerHTML=m[1]+n.htmlPrefilter(g)+m[2],f=m[0];while(f--)i=i.lastChild;if(!l.leadingWhitespace&&_.test(g)&&q.push(b.createTextNode(_.exec(g)[0])),!l.tbody){g="table"!==j||ga.test(g)?"<table>"!==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<h;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=la.test(f)?this.mouseHooks:ka.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=g.srcElement||d),3===a.target.nodeType&&(a.target=a.target.parentNode),a.metaKey=!!a.metaKey,h.filter?h.filter(a,g):a},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button,h=b.fromElement;return null==a.pageX&&null!=b.clientX&&(e=a.target.ownerDocument||d,f=e.documentElement,c=e.body,a.pageX=b.clientX+(f&&f.scrollLeft||c&&c.scrollLeft||0)-(f&&f.clientLeft||c&&c.clientLeft||0),a.pageY=b.clientY+(f&&f.scrollTop||c&&c.scrollTop||0)-(f&&f.clientTop||c&&c.clientTop||0)),!a.relatedTarget&&h&&(a.relatedTarget=h===a.target?b.toElement:h),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==qa()&&this.focus)try{return this.focus(),!1}catch(a){}},delegateType:"focusin"},blur:{trigger:function(){if(this===qa()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(n.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b),d.isDefaultPrevented()&&c.preventDefault()}},n.removeEvent=d.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)}:function(a,b,c){var d="on"+b;a.detachEvent&&(void 0===a[d]&&(a[d]=null),a.detachEvent(d,c))},n.Event=function(a,b){if(!(this instanceof n.Event))return new n.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&!1===a.returnValue?oa:pa):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={constructor:n.Event,isDefaultPrevented:pa,isPropagationStopped:pa,isImmediatePropagationStopped:pa,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=oa,a&&(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=oa,a&&!this.isSimulated&&(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=oa,a&&a.stopImmediatePropagation&&a.stopImmediatePropagation(),this.stopPropagation()}}
vendor: 4,510 bytes, line 4
4,n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),l.submit||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(a){var b=a.target,c=n.nodeName(b,"input")||n.nodeName(b,"button")?n.prop(b,"form"):void 0;c&&!n._data(c,"submit")&&(n.event.add(c,"submit._submit",function(a){a._submitBubble=!0}),n._data(c,"submit",!0))})},postDispatch:function(a){a._submitBubble&&(delete a._submitBubble,this.parentNode&&!a.isTrigger&&n.event.simulate("submit",this.parentNode,a))},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),l.change||(n.event.special.change={setup:function(){if(ja.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(a){"checked"===a.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(a){this._justChanged&&!a.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,a)})),!1;n.event.add(this,"beforeactivate._change",function(a){var b=a.target;ja.test(b.nodeName)&&!n._data(b,"change")&&(n.event.add(b,"change._change",function(a){!this.parentNode||a.isSimulated||a.isTrigger||n.event.simulate("change",this.parentNode,a)}),n._data(b,"change",!0))})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||"radio"!==b.type&&"checkbox"!==b.type)return a.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),!ja.test(this.nodeName)}}),l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=n._data(d,b);e||d.addEventListener(a,c,!0),n._data(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=n._data(d,b)-1;e?n._data(d,b,e):(d.removeEventListener(a,c,!0),n._removeData(d,b))}}}),n.fn.extend({on:function(a,b,c,d){return ra(this,a,b,c,d)},one:function(a,b,c,d){return ra(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return!1!==b&&"function"!=typeof b||(c=b,b=void 0),!1===c&&(c=pa),this.each(function(){n.event.remove(this,a,c,b)})},trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return n.event.trigger(a,b,c,!0)}});var sa=/ jQuery\d+="(?:null|\d+)"/g,ta=new RegExp("<(?:"+aa+")[\\s/>]","i"),ua=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,va=/<script|<style|<link/i,wa=/checked\s*(?:[^=]|=\s*.checked.)/i,xa=/^true\/(.*)/,ya=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\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;d<e;d++)n.event.add(b,c,h[c][d])}g.data&&(g.data=n.extend({},g.data))}}function Fa(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!l.noCloneEvent&&b[n.expando]){e=n._data(b);for(d in e.events)n.removeEvent(b,d,e.handle);b.removeAttribute(n.expando)}"script"===c&&b.text!==a.text?(Ca(b).text=a.text,Da(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),l.html5Clone&&a.innerHTML&&!n.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&Y.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}}function Ga(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);
vendor: 4,085 bytes, line 4
4if(r||o>1&&"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<o;m++)g=k,m!==p&&(g=n.clone(g,!0,!0),h&&n.merge(i,da(g,"script"))),c.call(a[m],g,m);if(h)for(j=i[i.length-1].ownerDocument,n.map(i,Da),m=0;m<h;m++)g=i[m],$.test(g.type||"")&&!n._data(g,"globalEval")&&n.contains(j,g)&&(g.src?n._evalUrl&&n._evalUrl(g.src):n.globalEval((g.text||g.textContent||g.innerHTML||"").replace(ya,"")));k=e=null}return a}function Ha(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(da(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&ea(da(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ua,"<$1></$2>")},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<d;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(da(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ga(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(da(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=0,e=[],f=n(a),h=f.length-1;d<=h;d++)c=d===h?this:this.clone(!0),n(f[d])[b](c),g.apply(e,c.get());return this.pushStack(e)}});var Ia,Ja={HTML:"block",BODY:"block"};function Ka(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function La(a){var b=d,c=Ja[a];return c||(c=Ka(a,b),"none"!==c&&c||(Ia=(Ia||n("<iframe frameborder='0' width='0' height='0'/>
4")).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="<table><tr><td></td><td>t</td></tr></table>",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<h;g++)d=a[g],d.style&&(f[g]=n._data(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=n._data(d,"olddisplay",La(d.nodeName)))):(e=V(d),(c&&"none"!==c||!e)&&n._data(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;g<h;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}function cb(a,b,c){var d=Xa.exec(b);return d?Math.max(0,d[1]-(c||0))+(d[2]||"px"):b}function db(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;f<4;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function eb(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Qa(a),g=l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,f);
vendor: 10,641 bytes, lines 4-5
4if(e<=0||null==e){if(e=Ra(a,b,f),(e<0||null==e)&&(e=a.style[b]),Na.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+db(a,b,c||(g?"border":"content"),d,f)+"px"}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ra(a,"opacity");return""===c?"1":c}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:l.cssFloat?"cssFloat":"styleFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=n.camelCase(b),i=a.style;if(b=n.cssProps[h]||(n.cssProps[h]=ab(h)||h),g=n.cssHooks[b]||n.cssHooks[h],void 0===c)return g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b];if(f=typeof c,"string"===f&&(e=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),!(g&&"set"in g&&void 0===(c=g.set(a,c,d)))))try{i[b]=c}catch(j){}}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=ab(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(f=g.get(a,!0,c)),void 0===f&&(f=Ra(a,b,d)),"normal"===f&&b in Za&&(f=Za[b]),""===c||c?(e=parseFloat(f),!0===c||isFinite(e)?e||0:f):f}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){if(c)return Wa.test(n.css(a,"display"))&&0===a.offsetWidth?Oa(a,Ya,function(){return eb(a,b,d)}):eb(a,b,d)},set:function(a,c,d){var e=d&&Qa(a);return cb(a,c,d?db(a,b,d,l.boxSizing&&"border-box"===n.css(a,"boxSizing",!1,e),e):0)}}}),l.opacity||(n.cssHooks.opacity={get:function(a,b){return Va.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=n.isNumeric(b)?"alpha(opacity="+100*b+")":"",f=d&&d.filter||c.filter||"";c.zoom=1,(b>=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({ 5margin:"",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;g<e;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},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<g;f++)if(d=e[f].call(c,b,a))return d}function nb(a,b,c){var d,e,f,g,h,i,j,k,m=this,o={},p=a.style,q=a.nodeType&&V(a),r=n._data(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,m.always(function(){m.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[p.overflow,p.overflowX,p.overflowY],j=n.css(a,"display"),"inline"===(k="none"===j?n._data(a,"olddisplay")||La(a.nodeName):j)&&"none"===n.css(a,"float")&&(l.inlineBlockNeedsLayout&&"inline"!==La(a.nodeName)?p.zoom=1:p.display="inline-block")),c.overflow&&(p.overflow="hidden",l.shrinkWrapBlocks()||m.always(function(){p.overflow=c.overflow[0],p.overflowX=c.overflow[1],p.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],ib.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(q?"hide":"show")){if("show"!==e||!r||void 0===r[d])continue;q=!0}o[d]=r&&r[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(o))"inline"===("none"===j?La(a.nodeName):j)&&(p.display=j);else{r?"hidden"in r&&(q=r.hidden):r=n._data(a,"fxshow",{}),f&&(r.hidden=!q),q?n(a).show():m.done(function(){n(a).hide()}),m.done(function(){var b;n._removeData(a,"fxshow");for(b in o)n.style(a,b,o[b])});for(d in o)g=mb(q?r[d]:0,d,m),d in r||(r[d]=g.start,q&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function ob(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),(g=n.cssHooks[d])&&"expand"in g){f=g.expand(f),delete a[d];for(c in f)c in a||(a[c]=f[c],b[c]=e)}else b[d]=e}function pb(a,b,c){var d,e,f=0,g=pb.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=gb||kb(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;g<i;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),f<1&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:gb||kb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;c<d;c++)j.tweens[c].run(1);return b?(h.notifyWith(a,[j,1,0]),h.resolveWith(a,[j,b])):h.rejectWith(a,[j,b]),this}}),k=j.props;for(ob(k,j.opts.specialEasing);f<g;f++)if(d=pb.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,mb,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(pb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(F);for(var c,d=0,e=a.length;d<e;d++)c=a[d],pb.tweeners[c]=pb.tweeners[c]||[],pb.tweeners[c].unshift(b)},prefilters:[nb],prefilter:function(a,b){b?pb.prefilters.unshift(a):pb.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&!0!==d.queue||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=pb(this,n.extend({},a),f);(e||n._data(this,"finish"))&&b.stop(!0)};return g.finish=g,e||!1===f.queue?this.each(g):this.queue(f.queue,g)},stop:function(a,b,c){var d=function(a){var b=a.stop;delete a.stop,b(c)};return"string"!=typeof a&&(c=b,b=a,a=void 0),b&&!1!==a&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=n.timers,g=n._data(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&jb.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var b,c=n._data(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;b<g;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(lb(b,!0),a,d,e)}}),n.each({slideDown:lb("show"),slideUp:lb("hide"),slideToggle:lb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=n.timers,c=0;for(gb=n.now();c<b.length;c++)(a=b[c])()||b[c]!==a||b.splice(c--,1);b.length||n.fx.stop(),gb=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){hb||(hb=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(hb),hb=null},n.fx.speeds={slow:600,fast:200,_default:400}
vendor: 16,778 bytes, line 5
5,n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a,b=d.createElement("input"),c=d.createElement("div"),e=d.createElement("select"),f=e.appendChild(d.createElement("option"));c=d.createElement("div"),c.setAttribute("className","t"),c.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",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<h;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)if(d=e[g],n.inArray(n.valHooks.option.get(d),f)>-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)};
vendor: 4,428 bytes, line 5
5if(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}
5).done(function(a){f=arguments,g.html(d?n("<div>").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") 6;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}); 7jQuery.noConflict(); 8// source --> https://seventrieste.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.4.1 9/*! jQuery Migrate v1.4.1 | (c) jQuery Foundation and other contributors | jquery.org/license */ 10"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("<input/>",{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*</,u=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,v=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,w=/^([^<]*)(<[\w\W]+>)([^>]*)$/;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(
10a.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<e.length;)e[g++].guid=f;return this.click(h)},a.fn.live=function(b,c,e){return d("jQuery.fn.live() is deprecated"),F?F.apply(this,arguments):(a(this.context).on(b,this.selector,c,e),this)},a.fn.die=function(b,c){return d("jQuery.fn.die() is deprecated"),G?G.apply(this,arguments):(a(this.context).off(b,this.selector||"**",c),this)},a.event.trigger=function(a,b,c,e){return c||J.test(a)||d("Global events are undocumented and deprecated"),D.call(this,a,b,c||document,e)},a.each(I.split("|"),function(b,c){a.event.special[c]={setup:function(){var b=this;return b!==document&&(a.event.add(document,c+"."+a.guid,function(){a.event.trigger(c,Array.prototype.slice.call(arguments,1),b,!0)}),a._data(this,c,a.guid++)),!1},teardown:function(){return this!==document&&a.event.remove(document,c+"."+a._data(this,c)),!1}}}),a.event.special.ready={setup:function(){this===document&&d("'ready' event is deprecated")}};var M=a.fn.andSelf||a.fn.addBack,N=a.fn.find;if(a.fn.andSelf=function(){return d("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()"),M.apply(this,arguments)},a.fn.find=function(a){var b=N.apply(this,arguments);return b.context=this.context,b.selector=this.selector?this.selector+" "+a:a,b},a.Callbacks){var O=a.Deferred,P=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];a.Deferred=function(b){var c=O(),e=c.promise();return c.pipe=e.pipe=function(){var b=arguments;return d("deferred.pipe() is deprecated"),a.Deferred(function(d){a.each(P,function(f,g){var h=a.isFunction(b[f])&&b[f];c[g[1]](function(){var b=h&&h.apply(this,arguments);b&&a.isFunction(b.promise)?b.promise().done(d.resolve).fail(d.reject).progress(d.notify):d[g[0]+"With"](this===e?d.promise():this,h?[b]:arguments)})}),b=null}).promise()},c.isResolved=function(){return d("deferred.isResolved is deprecated"),"resolved"===c.state()},c.isRejected=function(){return d("deferred.isRejected is deprecated"),"rejected"===c.state()},b&&b.call(c,c),c}}}(jQuery,window); 11// source --> https://seventrieste.com/wp-content/plugins/accesspress-instagram-feed/js/owl.carousel.js?ver=5.2.4
12/** 13 * Owl carousel 14 * @version 2.0.0 15 * @author Bartosz Wojciechowski 16 * @license The MIT License (MIT) 17 * @todo Lazy Load Icon 18 * @todo prevent animationend bubling 19 * @todo itemsScaleUp 20 * @todo Test Zepto 21 * @todo stagePadding calculate wrong active classes 22 */ 23;(function($, window, document, undefined) { 24 25 var drag, state, e; 26 27 /** 28 * Template for status information about drag and touch events. 29 * @private 30 */ 31 drag = { 32 start: 0, 33 startX: 0, 34 startY: 0, 35 current: 0, 36 currentX: 0, 37 currentY: 0, 38 offsetX: 0, 39 offsetY: 0, 40 distance: null, 41 startTime: 0, 42 endTime: 0, 43 updatedX: 0, 44 targetEl: null 45 }; 46 47 /** 48 * Template for some status informations. 49 * @private 50 */ 51 state = { 52 isTouch: false, 53 isScrolling: false, 54 isSwiping: false, 55 direction: false, 56 inMotion: false 57 }; 58 59 /** 60 * Event functions references. 61 * @private 62 */ 63 e = { 64 _onDragStart: null, 65 _onDragMove: null, 66 _onDragEnd: null, 67 _transitionEnd: null, 68 _resizer: null, 69 _responsiveCall: null, 70 _goToLoop: null, 71 _checkVisibile: null 72 }; 73 74 /** 75 * Creates a carousel. 76 * @class The Owl Carousel. 77 * @public 78 * @param {HTMLElement|jQuery} element - The element to create the carousel for. 79 * @param {Object} [options] - The options 80 */ 81 function Owl(element, options) { 82 83 /** 84 * Current settings for the carousel. 85 * @public 86 */ 87 this.settings = null; 88 89 /** 90 * Current options set by the caller including defaults. 91 * @public 92 */ 93 this.options = $.extend({}, Owl.Defaults, options); 94 95 /** 96 * Plugin element. 97 * @public 98 */ 99 this.$element = $(element); 100 101 /** 102 * Caches informations about drag and touch events. 103 */ 104 this.drag = $.extend({}, drag); 105 106 /** 107 * Caches some status informations. 108 * @protected 109 */ 110 this.state = $.extend({}, state); 111 112 /** 113 * @protected 114 * @todo Must be documented 115 */ 116 this.e = $.extend({}, e); 117 118 /** 119 * References to the running plugins of this carousel. 120 * @protected 121 */ 122 this._plugins = {}; 123 124 /** 125 * Currently suppressed events to prevent them from beeing retriggered. 126 * @protected 127 */ 128 this._supress = {}; 129 130 /** 131 * Absolute current position. 132 * @protected 133 */ 134 this._current = null; 135 136 /** 137 * Animation speed in milliseconds. 138 * @protected 139 */ 140 this._speed = null; 141 142 /** 143 * Coordinates of all items in pixel. 144 * @todo The name of this member is missleading. 145 * @protected 146 */ 147 this._coordinates = []; 148 149 /** 150 * Current breakpoint. 151 * @todo Real media queries would be nice. 152 * @protected 153 */ 154 this._breakpoint = null; 155 156 /** 157 * Current width of the plugin element. 158 */ 159 this._width = null; 160 161 /** 162 * All real items. 163 * @protected 164 */ 165 this._items = []; 166 167 /** 168 * All cloned items. 169 * @protected 170 */ 171 this._clones = []; 172 173 /** 174 * Merge values of all items. 175 * @todo Maybe this could be part of a plugin. 176 * @protected 177 */ 178 this._mergers = []; 179 180 /** 181 * Invalidated parts within the update process. 182 * @protected 183 */ 184 this._invalidated = {}; 185 186 /** 187 * Ordered list of workers for the update process. 188 * @protected 189 */ 190 this._pipe = []; 191 192 $.each(Owl.Plugins, $.proxy(function(key, plugin) { 193 this._plugins[key[0].toLowerCase() + key.slice(1)] 194 = new plugin(this); 195 }, this)); 196 197 $.each(Owl.Pipe, $.proxy(function(priority, worker) { 198 this._pipe.push({ 199 'filter': worker.filter, 200 'run': $.proxy(worker.run, this) 201 }); 202 }, this)); 203 204 this.setup(); 205 this.initialize(); 206 } 207 208 /** 209 * Default options for the carousel. 210 * @public 211 */ 212 Owl.Defaults = { 213 items: 3, 214 loop: false, 215 center: false, 216 217 mouseDrag: true, 218 touchDrag: true, 219 pullDrag: true, 220 freeDrag: false, 221 222 margin: 0, 223 stagePadding: 0, 224 225 merge: false, 226 mergeFit: true, 227 autoWidth: false, 228 229 startPosition: 0, 230 rtl: false, 231 232 smartSpeed: 250, 233 fluidSpeed: false, 234 dragEndSpeed: false, 235 236 responsive: {}, 237 responsiveRefreshRate: 200, 238 responsiveBaseElement: window,
239 responsiveClass: false, 240 241 fallbackEasing: 'swing', 242 243 info: false, 244 245 nestedItemSelector: false, 246 itemElement: 'div', 247 stageElement: 'div', 248 249 // Classes and Names 250 themeClass: 'owl-theme', 251 baseClass: 'owl-carousel', 252 itemClass: 'owl-item', 253 centerClass: 'center', 254 activeClass: 'active' 255 }; 256 257 /** 258 * Enumeration for width. 259 * @public 260 * @readonly 261 * @enum {String} 262 */ 263 Owl.Width = { 264 Default: 'default', 265 Inner: 'inner', 266 Outer: 'outer' 267 }; 268 269 /** 270 * Contains all registered plugins. 271 * @public 272 */ 273 Owl.Plugins = {}; 274 275 /** 276 * Update pipe. 277 */ 278 Owl.Pipe = [ { 279 filter: [ 'width', 'items', 'settings' ], 280 run: function(cache) { 281 cache.current = this._items && this._items[this.relative(this._current)]; 282 } 283 }, { 284 filter: [ 'items', 'settings' ], 285 run: function() { 286 var cached = this._clones, 287 clones = this.$stage.children('.cloned'); 288 289 if (clones.length !== cached.length || (!this.settings.loop && cached.length > 0)) { 290 this.$stage.children('.cloned').remove(); 291 this._clones = []; 292 } 293 } 294 }, { 295 filter: [ 'items', 'settings' ], 296 run: function() { 297 var i, n, 298 clones = this._clones, 299 items = this._items, 300 delta = this.settings.loop ? clones.length - Math.max(this.settings.items * 2, 4) : 0; 301 302 for (i = 0, n = Math.abs(delta / 2); i < n; i++) { 303 if (delta > 0) { 304 this.$stage.children().eq(items.length + clones.length - 1).remove(); 305 clones.pop(); 306 this.$stage.children().eq(0).remove(); 307 clones.pop(); 308 } else { 309 clones.push(clones.length / 2); 310 this.$stage.append(items[clones[clones.length - 1]].clone().addClass('cloned')); 311 clones.push(items.length - 1 - (clones.length - 1) / 2); 312 this.$stage.prepend(items[clones[clones.length - 1]].clone().addClass('cloned')); 313 } 314 } 315 } 316 }, { 317 filter: [ 'width', 'items', 'settings' ], 318 run: function() { 319 var rtl = (this.settings.rtl ? 1 : -1), 320 width = (this.width() / this.settings.items).toFixed(3), 321 coordinate = 0, merge, i, n; 322 323 this._coordinates = []; 324 for (i = 0, n = this._clones.length + this._items.length; i < n; i++) { 325 merge = this._mergers[this.relative(i)]; 326 merge = (this.settings.mergeFit && Math.min(merge, this.settings.items)) || merge; 327 coordinate += (this.settings.autoWidth ? this._items[this.relative(i)].width() + this.settings.margin : width * merge) * rtl; 328 329 this._coordinates.push(coordinate); 330 } 331 } 332 }, { 333 filter: [ 'width', 'items', 'settings' ], 334 run: function() { 335 var i, n, width = (this.width() / this.settings.items).toFixed(3), css = { 336 'width': Math.abs(this._coordinates[this._coordinates.length - 1]) + this.settings.stagePadding * 2, 337 'padding-left': this.settings.stagePadding || '', 338 'padding-right': this.settings.stagePadding || '' 339 }; 340 341 this.$stage.css(css); 342 343 css = { 'width': this.settings.autoWidth ? 'auto' : width - this.settings.margin }; 344 css[this.settings.rtl ? 'margin-left' : 'margin-right'] = this.settings.margin; 345 346 if (!this.settings.autoWidth && $.grep(this._mergers, function(v) { return v > 1 }).length > 0) { 347 for (i = 0, n = this._coordinates.length; i < n; i++) { 348 css.width = Math.abs(this._coordinates[i]) - Math.abs(this._coordinates[i - 1] || 0) - this.settings.margin; 349 this.$stage.children().eq(i).css(css); 350 } 351 } else { 352 this.$stage.children().css(css); 353 } 354 } 355 }, {
356 filter: [ 'width', 'items', 'settings' ], 357 run: function(cache) { 358 cache.current && this.reset(this.$stage.children().index(cache.current)); 359 } 360 }, { 361 filter: [ 'position' ], 362 run: function() { 363 this.animate(this.coordinates(this._current)); 364 } 365 }, { 366 filter: [ 'width', 'position', 'items', 'settings' ], 367 run: function() { 368 var rtl = this.settings.rtl ? 1 : -1, 369 padding = this.settings.stagePadding * 2, 370 begin = this.coordinates(this.current()) + padding, 371 end = begin + this.width() * rtl, 372 inner, outer, matches = [], i, n; 373 374 for (i = 0, n = this._coordinates.length; i < n; i++) { 375 inner = this._coordinates[i - 1] || 0; 376 outer = Math.abs(this._coordinates[i]) + padding * rtl; 377 378 if ((this.op(inner, '<=', begin) && (this.op(inner, '>', end))) 379 || (this.op(outer, '<', begin) && this.op(outer, '>', end))) { 380 matches.push(i); 381 } 382 } 383 384 this.$stage.children('.' + this.settings.activeClass).removeClass(this.settings.activeClass); 385 this.$stage.children(':eq(' + matches.join('), :eq(') + ')').addClass(this.settings.activeClass); 386 387 if (this.settings.center) { 388 this.$stage.children('.' + this.settings.centerClass).removeClass(this.settings.centerClass); 389 this.$stage.children().eq(this.current()).addClass(this.settings.centerClass); 390 } 391 } 392 } ]; 393 394 /** 395 * Initializes the carousel. 396 * @protected 397 */ 398 Owl.prototype.initialize = function() { 399 this.trigger('initialize'); 400 401 this.$element 402 .addClass(this.settings.baseClass) 403 .addClass(this.settings.themeClass) 404 .toggleClass('owl-rtl', this.settings.rtl); 405 406 // check support 407 this.browserSupport(); 408 409 if (this.settings.autoWidth && this.state.imagesLoaded !== true) { 410 var imgs, nestedSelector, width; 411 imgs = this.$element.find('img'); 412 nestedSelector = this.settings.nestedItemSelector ? '.' + this.settings.nestedItemSelector : undefined; 413 width = this.$element.children(nestedSelector).width(); 414 415 if (imgs.length && width <= 0) { 416 this.preloadAutoWidthImages(imgs); 417 return false; 418 } 419 } 420 421 this.$element.addClass('owl-loading'); 422 423 // create stage 424 this.$stage = $('<' + this.settings.stageElement + ' class="owl-stage"/>') 425 .wrap('<div class="owl-stage-outer">'); 426 427 // append stage 428 this.$element.append(this.$stage.parent()); 429 430 // append content 431 this.replace(this.$element.children().not(this.$stage.parent())); 432 433 // set view width 434 this._width = this.$element.width(); 435 436 // update view 437 this.refresh(); 438 439 this.$element.removeClass('owl-loading').addClass('owl-loaded'); 440 441 // attach generic events 442 this.eventsCall(); 443 444 // attach generic events 445 this.internalEvents(); 446 447 // attach custom control events 448 this.addTriggerableEvents(); 449 450 this.trigger('initialized'); 451 }; 452 453 /** 454 * Setups the current settings. 455 * @todo Remove responsive classes. Why should adaptive designs be brought into IE8? 456 * @todo Support for media queries by using `matchMedia` would be nice. 457 * @public 458 */ 459 Owl.prototype.setup = function() { 460 var viewport = this.viewport(), 461 overwrites = this.options.responsive, 462 match = -1, 463 settings = null; 464 465 if (!overwrites) { 466 settings = $.extend({}, this.options); 467 } else { 468 $.each(overwrites, function(breakpoint) { 469 if (breakpoint <= viewport && breakpoint > match) { 470 match = Number(breakpoint); 471 } 472 }); 473 474 settings = $.extend({}, this.options, overwrites[match]); 475 delete settings.responsive; 476 477 // responsive class 478 if (settings.responsiveClass) { 479 this.$element.attr('class', function(i, c) { 480 return c.replace(/\b owl-responsive-\S+/g, ''); 481 }).addClass('owl-responsive-' + match); 482 } 483 } 484 485 if (this.settings === null || this._breakpoint !== match) { 486 this.trigger('change', { property: { name: 'settings', value: settings } }); 487 this._breakpoint = match; 488 this.settings = settings; 489 this.invalidate('settings'); 490 this.trigger('changed', { property: { name: 'settings', value: this.settings } }); 491 } 492 }; 493 494 /** 495 * Updates option logic if necessery. 496 * @protected 497 */ 498 Owl.prototype.optionsLogic = function() { 499 // Toggle Center class 500 this.$element.toggleClass('owl-center', this.settings.center); 501 502 // if items number is less than in body 503 if (this.settings.loop && this._items.length < this.settings.items) { 504 this.settings.loop = false;
505 } 506 507 if (this.settings.autoWidth) { 508 this.settings.stagePadding = false; 509 this.settings.merge = false; 510 } 511 }; 512 513 /** 514 * Prepares an item before add. 515 * @todo Rename event parameter `content` to `item`. 516 * @protected 517 * @returns {jQuery|HTMLElement} - The item container. 518 */ 519 Owl.prototype.prepare = function(item) { 520 var event = this.trigger('prepare', { content: item }); 521 522 if (!event.data) { 523 event.data = $('<' + this.settings.itemElement + '/>') 524 .addClass(this.settings.itemClass).append(item) 525 } 526 527 this.trigger('prepared', { content: event.data }); 528 529 return event.data; 530 }; 531 532 /** 533 * Updates the view. 534 * @public 535 */ 536 Owl.prototype.update = function() { 537 var i = 0, 538 n = this._pipe.length, 539 filter = $.proxy(function(p) { return this[p] }, this._invalidated), 540 cache = {}; 541 542 while (i < n) { 543 if (this._invalidated.all || $.grep(this._pipe[i].filter, filter).length > 0) { 544 this._pipe[i].run(cache); 545 } 546 i++; 547 } 548 549 this._invalidated = {}; 550 }; 551 552 /** 553 * Gets the width of the view. 554 * @public 555 * @param {Owl.Width} [dimension=Owl.Width.Default] - The dimension to return. 556 * @returns {Number} - The width of the view in pixel. 557 */ 558 Owl.prototype.width = function(dimension) { 559 dimension = dimension || Owl.Width.Default; 560 switch (dimension) { 561 case Owl.Width.Inner: 562 case Owl.Width.Outer: 563 return this._width; 564 default: 565 return this._width - this.settings.stagePadding * 2 + this.settings.margin; 566 } 567 }; 568 569 /** 570 * Refreshes the carousel primarily for adaptive purposes. 571 * @public 572 */ 573 Owl.prototype.refresh = function() { 574 if (this._items.length === 0) { 575 return false; 576 } 577 578 var start = new Date().getTime(); 579 580 this.trigger('refresh'); 581 582 this.setup(); 583 584 this.optionsLogic(); 585 586 // hide and show methods helps here to set a proper widths, 587 // this prevents scrollbar to be calculated in stage width 588 this.$stage.addClass('owl-refresh'); 589 590 this.update(); 591 592 this.$stage.removeClass('owl-refresh'); 593 594 this.state.orientation = window.orientation; 595 596 this.watchVisibility(); 597 598 this.trigger('refreshed'); 599 }; 600 601 /** 602 * Save internal event references and add event based functions. 603 * @protected 604 */ 605 Owl.prototype.eventsCall = function() { 606 // Save events references 607 this.e._onDragStart = $.proxy(function(e) { 608 this.onDragStart(e); 609 }, this); 610 this.e._onDragMove = $.proxy(function(e) { 611 this.onDragMove(e); 612 }, this); 613 this.e._onDragEnd = $.proxy(function(e) { 614 this.onDragEnd(e); 615 }, this); 616 this.e._onResize = $.proxy(function(e) { 617 this.onResize(e); 618 }, this); 619 this.e._transitionEnd = $.proxy(function(e) { 620 this.transitionEnd(e); 621 }, this); 622 this.e._preventClick = $.proxy(function(e) { 623 this.preventClick(e); 624 }, this); 625 }; 626 627 /** 628 * Checks window `resize` event. 629 * @protected 630 */ 631 Owl.prototype.onThrottledResize = function() { 632 window.clearTimeout(this.resizeTimer); 633 this.resizeTimer = window.setTimeout(this.e._onResize, this.settings.responsiveRefreshRate); 634 }; 635 636 /** 637 * Checks window `resize` event. 638 * @protected 639 */ 640 Owl.prototype.onResize = function() { 641 if (!this._items.length) { 642 return false; 643 } 644 645 if (this._width === this.$element.width()) { 646 return false; 647 } 648 649 if (this.trigger('resize').isDefaultPrevented()) { 650 return false; 651 } 652 653 this._width = this.$element.width(); 654 655 this.invalidate('width'); 656 657 this.refresh(); 658 659 this.trigger('resized'); 660 }; 661 662 /** 663 * Checks for touch/mouse drag event type and add run event handlers. 664 * @protected 665 */ 666 Owl.prototype.eventsRouter = function(event) { 667 var type = event.type; 668 669 if (type === "mousedown" || type === "touchstart") { 670 this.onDragStart(event); 671 } else if (type === "mousemove" || type === "touchmove") { 672 this.onDragMove(event); 673 } else if (type === "mouseup" || type === "touchend") { 674 this.onDragEnd(event); 675 } else if (type === "touchcancel") { 676 this.onDragEnd(event); 677 } 678 }; 679 680 /** 681 * Checks for touch/mouse drag options and add necessery event handlers. 682 * @protected 683 */ 684 Owl.prototype.internalEvents = function() { 685 var isTouch = isTouchSupport(), 686 isTouchIE = isTouchSupportIE(); 687 688 if (this.settings.mouseDrag){ 689 this.$stage.on('mousedown', $.proxy(function(event) { this.eventsRouter(event) }, this)); 690 this.$stage.on('dragstart', function() { return false }); 691 this.$stage.get(0).onselectstart = function() { return false }; 692 } else { 693 this.$element.addClass('owl-text-select-on'); 694 } 695 696 if (this.settings.touchDrag && !isTouchIE){ 697 this.$stage.on('touchstart touchcancel', $.proxy(function(event) { this.eventsRouter(event) }, this)); 698 } 699 700 // catch transitionEnd event 701 if (this.transitionEndVendor) { 702 this.on(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd, false); 703 } 704 705 // responsive 706 if (this.settings.responsive !== false) { 707 this.on(window, 'resize', $.proxy(this.onThrottledResize, this)); 708 } 709 }; 710 711 /** 712 * Handles touchstart/mousedown event. 713 * @protected 714 * @param {Event} event - The event arguments. 715 */ 716 Owl.prototype.onDragStart = function(event) { 717 var ev, isTouchEvent, pageX, pageY, animatedPos; 718 719 ev = event.originalEvent || event || window.event; 720 721 // prevent right click 722 if (ev.which === 3 || this.state.isTouch) { 723 return false;
724 } 725 726 if (ev.type === 'mousedown') { 727 this.$stage.addClass('owl-grab'); 728 } 729 730 this.trigger('drag'); 731 this.drag.startTime = new Date().getTime(); 732 this.speed(0); 733 this.state.isTouch = true; 734 this.state.isScrolling = false; 735 this.state.isSwiping = false; 736 this.drag.distance = 0; 737 738 pageX = getTouches(ev).x; 739 pageY = getTouches(ev).y; 740 741 // get stage position left 742 this.drag.offsetX = this.$stage.position().left; 743 this.drag.offsetY = this.$stage.position().top; 744 745 if (this.settings.rtl) { 746 this.drag.offsetX = this.$stage.position().left + this.$stage.width() - this.width() 747 + this.settings.margin; 748 } 749 750 // catch position // ie to fix 751 if (this.state.inMotion && this.support3d) { 752 animatedPos = this.getTransformProperty(); 753 this.drag.offsetX = animatedPos; 754 this.animate(animatedPos); 755 this.state.inMotion = true; 756 } else if (this.state.inMotion && !this.support3d) { 757 this.state.inMotion = false; 758 return false; 759 } 760 761 this.drag.startX = pageX - this.drag.offsetX; 762 this.drag.startY = pageY - this.drag.offsetY; 763 764 this.drag.start = pageX - this.drag.startX; 765 this.drag.targetEl = ev.target || ev.srcElement; 766 this.drag.updatedX = this.drag.start; 767 768 // to do/check 769 // prevent links and images dragging; 770 if (this.drag.targetEl.tagName === "IMG" || this.drag.targetEl.tagName === "A") { 771 this.drag.targetEl.draggable = false; 772 } 773 774 $(document).on('mousemove.owl.dragEvents mouseup.owl.dragEvents touchmove.owl.dragEvents touchend.owl.dragEvents', $.proxy(function(event) {this.eventsRouter(event)},this)); 775 }; 776 777 /** 778 * Handles the touchmove/mousemove events. 779 * @todo Simplify 780 * @protected 781 * @param {Event} event - The event arguments. 782 */ 783 Owl.prototype.onDragMove = function(event) { 784 var ev, isTouchEvent, pageX, pageY, minValue, maxValue, pull; 785 786 if (!this.state.isTouch) { 787 return; 788 } 789 790 if (this.state.isScrolling) { 791 return; 792 } 793 794 ev = event.originalEvent || event || window.event; 795 796 pageX = getTouches(ev).x; 797 pageY = getTouches(ev).y; 798 799 // Drag Direction 800 this.drag.currentX = pageX - this.drag.startX; 801 this.drag.currentY = pageY - this.drag.startY; 802 this.drag.distance = this.drag.currentX - this.drag.offsetX; 803 804 // Check move direction 805 if (this.drag.distance < 0) { 806 this.state.direction = this.settings.rtl ? 'right' : 'left'; 807 } else if (this.drag.distance > 0) { 808 this.state.direction = this.settings.rtl ? 'left' : 'right'; 809 } 810 // Loop 811 if (this.settings.loop) { 812 if (this.op(this.drag.currentX, '>', this.coordinates(this.minimum())) && this.state.direction === 'right') { 813 this.drag.currentX -= (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length); 814 } else if (this.op(this.drag.currentX, '<', this.coordinates(this.maximum())) && this.state.direction === 'left') { 815 this.drag.currentX += (this.settings.center && this.coordinates(0)) - this.coordinates(this._items.length); 816 } 817 } else { 818 // pull 819 minValue = this.settings.rtl ? this.coordinates(this.maximum()) : this.coordinates(this.minimum()); 820 maxValue = this.settings.rtl ? this.coordinates(this.minimum()) : this.coordinates(this.maximum()); 821 pull = this.settings.pullDrag ? this.drag.distance / 5 : 0; 822 this.drag.currentX = Math.max(Math.min(this.drag.currentX, minValue + pull), maxValue + pull); 823 } 824 825 // Lock browser if swiping horizontal 826 827 if ((this.drag.distance > 8 || this.drag.distance < -8)) { 828 if (ev.preventDefault !== undefined) { 829 ev.preventDefault(); 830 } else { 831 ev.returnValue = false;
832 } 833 this.state.isSwiping = true; 834 } 835 836 this.drag.updatedX = this.drag.currentX; 837 838 // Lock Owl if scrolling 839 if ((this.drag.currentY > 16 || this.drag.currentY < -16) && this.state.isSwiping === false) { 840 this.state.isScrolling = true; 841 this.drag.updatedX = this.drag.start; 842 } 843 844 this.animate(this.drag.updatedX); 845 }; 846 847 /** 848 * Handles the touchend/mouseup events. 849 * @protected 850 */ 851 Owl.prototype.onDragEnd = function(event) { 852 var compareTimes, distanceAbs, closest; 853 854 if (!this.state.isTouch) { 855 return; 856 } 857 858 if (event.type === 'mouseup') { 859 this.$stage.removeClass('owl-grab'); 860 } 861 862 this.trigger('dragged'); 863 864 // prevent links and images dragging; 865 this.drag.targetEl.removeAttribute("draggable"); 866 867 // remove drag event listeners 868 869 this.state.isTouch = false; 870 this.state.isScrolling = false; 871 this.state.isSwiping = false; 872 873 // to check 874 if (this.drag.distance === 0 && this.state.inMotion !== true) { 875 this.state.inMotion = false; 876 return false; 877 } 878 879 // prevent clicks while scrolling 880 881 this.drag.endTime = new Date().getTime(); 882 compareTimes = this.drag.endTime - this.drag.startTime; 883 distanceAbs = Math.abs(this.drag.distance); 884 885 // to test 886 if (distanceAbs > 3 || compareTimes > 300) { 887 this.removeClick(this.drag.targetEl); 888 } 889 890 closest = this.closest(this.drag.updatedX); 891 892 this.speed(this.settings.dragEndSpeed || this.settings.smartSpeed); 893 this.current(closest); 894 this.invalidate('position'); 895 this.update(); 896 897 // if pullDrag is off then fire transitionEnd event manually when stick 898 // to border 899 if (!this.settings.pullDrag && this.drag.updatedX === this.coordinates(closest)) { 900 this.transitionEnd(); 901 } 902 903 this.drag.distance = 0; 904 905 $(document).off('.owl.dragEvents'); 906 }; 907 908 /** 909 * Attaches `preventClick` to disable link while swipping. 910 * @protected 911 * @param {HTMLElement} [target] - The target of the `click` event. 912 */ 913 Owl.prototype.removeClick = function(target) { 914 this.drag.targetEl = target; 915 $(target).on('click.preventClick', this.e._preventClick); 916 // to make sure click is removed: 917 window.setTimeout(function() { 918 $(target).off('click.preventClick'); 919 }, 300); 920 }; 921 922 /** 923 * Suppresses click event. 924 * @protected 925 * @param {Event} ev - The event arguments. 926 */ 927 Owl.prototype.preventClick = function(ev) { 928 if (ev.preventDefault) { 929 ev.preventDefault(); 930 } else { 931 ev.returnValue = false; 932 } 933 if (ev.stopPropagation) { 934 ev.stopPropagation(); 935 } 936 $(ev.target).off('click.preventClick'); 937 }; 938 939 /** 940 * Catches stage position while animate (only CSS3). 941 * @protected 942 * @returns 943 */ 944 Owl.prototype.getTransformProperty = function() { 945 var transform, matrix3d; 946 947 transform = window.getComputedStyle(this.$stage.get(0), null).getPropertyValue(this.vendorName + 'transform'); 948 // var transform = this.$stage.css(this.vendorName + 'transform') 949 transform = transform.replace(/matrix(3d)?\(|\)/g, '').split(','); 950 matrix3d = transform.length === 16; 951 952 return matrix3d !== true ? transform[4] : transform[12]; 953 }; 954 955 /** 956 * Gets absolute position of the closest item for a coordinate. 957 * @todo Setting `freeDrag` makes `closest` not reusable. See #165. 958 * @protected 959 * @param {Number} coordinate - The coordinate in pixel. 960 * @return {Number} - The absolute position of the closest item. 961 */ 962 Owl.prototype.closest = function(coordinate) { 963 var position = -1, pull = 30, width = this.width(), coordinates = this.coordinates(); 964 965 if (!this.settings.freeDrag) { 966 // check closest item 967 $.each(coordinates, $.proxy(function(index, value) { 968 if (coordinate > value - pull && coordinate < value + pull) { 969 position = index; 970 } else if (this.op(coordinate, '<', value) 971 && this.op(coordinate, '>', coordinates[index + 1] || value - width)) { 972 position = this.state.direction === 'left' ? index + 1 : index; 973 } 974 return position === -1; 975 }, this)); 976 } 977 978 if (!this.settings.loop) { 979 // non loop boundries 980 if (this.op(coordinate, '>', coordinates[this.minimum()])) { 981 position = coordinate = this.minimum(); 982 } else if (this.op(coordinate, '<', coordinates[this.maximum()])) { 983 position = coordinate = this.maximum(); 984 } 985 } 986 987 return position; 988 }; 989 990 /** 991 * Animates the stage. 992 * @public 993 * @param {Number} coordinate - The coordinate in pixels. 994 */ 995 Owl.prototype.animate = function(coordinate) { 996 this.trigger('translate'); 997 this.state.inMotion = this.speed() > 0; 998 999 if (this.support3d) { 1000 this.$stage.css({ 1001 transform: 'translate3d(' + coordinate + 'px' + ',0px, 0px)', 1002 transition: (this.speed() / 1000) + 's' 1003 }); 1004 } else if (this.state.isTouch) { 1005 this.$stage.css({ 1006 left: coordinate + 'px' 1007 }); 1008 } else { 1009 this.$stage.animate({ 1010 left: coordinate 1011 }, this.speed() / 1000, this.settings.fallbackEasing, $.proxy(function() { 1012 if (this.state.inMotion) { 1013 this.transitionEnd(); 1014 } 1015 }, this)); 1016 } 1017 }; 1018 1019 /** 1020 * Sets the absolute position of the current item. 1021 * @public 1022 * @param {Number} [position] - The new absolute position or nothing to leave it unchanged. 1023 * @returns {Number} - The absolute position of the current item. 1024 */ 1025 Owl.prototype.current = function(position) { 1026 if (position === undefined) { 1027 return this._current; 1028 } 1029 1030 if (this._items.length === 0) { 1031 return undefined; 1032 } 1033 1034 position = this.normalize(position); 1035 1036 if (this._current !== position) { 1037 var event = this.trigger('change', { property: { name: 'position', value: position } }); 1038 1039 if (event.data !== undefined) { 1040 position = this.normalize(event.data); 1041 } 1042 1043 this._current = position; 1044 1045 this.invalidate('position'); 1046 1047 this.trigger('changed', { property: { name: 'position', value: this._current } }); 1048 } 1049 1050 return this._current; 1051 }; 1052 1053 /** 1054 * Invalidates the given part of the update routine. 1055 * @param {String}
1055 part - The part to invalidate. 1056 */ 1057 Owl.prototype.invalidate = function(part) { 1058 this._invalidated[part] = true; 1059 } 1060 1061 /** 1062 * Resets the absolute position of the current item. 1063 * @public 1064 * @param {Number} position - The absolute position of the new item. 1065 */ 1066 Owl.prototype.reset = function(position) { 1067 position = this.normalize(position); 1068 1069 if (position === undefined) { 1070 return; 1071 } 1072 1073 this._speed = 0; 1074 this._current = position; 1075 1076 this.suppress([ 'translate', 'translated' ]); 1077 1078 this.animate(this.coordinates(position)); 1079 1080 this.release([ 'translate', 'translated' ]); 1081 }; 1082 1083 /** 1084 * Normalizes an absolute or a relative position for an item. 1085 * @public 1086 * @param {Number} position - The absolute or relative position to normalize. 1087 * @param {Boolean} [relative=false] - Whether the given position is relative or not. 1088 * @returns {Number} - The normalized position. 1089 */ 1090 Owl.prototype.normalize = function(position, relative) { 1091 var n = (relative ? this._items.length : this._items.length + this._clones.length); 1092 1093 if (!$.isNumeric(position) || n < 1) { 1094 return undefined; 1095 } 1096 1097 if (this._clones.length) { 1098 position = ((position % n) + n) % n; 1099 } else { 1100 position = Math.max(this.minimum(relative), Math.min(this.maximum(relative), position)); 1101 } 1102 1103 return position; 1104 }; 1105 1106 /** 1107 * Converts an absolute position for an item into a relative position. 1108 * @public 1109 * @param {Number} position - The absolute position to convert. 1110 * @returns {Number} - The converted position. 1111 */ 1112 Owl.prototype.relative = function(position) { 1113 position = this.normalize(position); 1114 position = position - this._clones.length / 2; 1115 return this.normalize(position, true); 1116 }; 1117 1118 /** 1119 * Gets the maximum position for an item. 1120 * @public 1121 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position. 1122 * @returns {Number} 1123 */ 1124 Owl.prototype.maximum = function(relative) { 1125 var maximum, width, i = 0, coordinate, 1126 settings = this.settings; 1127 1128 if (relative) { 1129 return this._items.length - 1; 1130 } 1131 1132 if (!settings.loop && settings.center) { 1133 maximum = this._items.length - 1; 1134 } else if (!settings.loop && !settings.center) { 1135 maximum = this._items.length - settings.items; 1136 } else if (settings.loop || settings.center) { 1137 maximum = this._items.length + settings.items; 1138 } else if (settings.autoWidth || settings.merge) { 1139 revert = settings.rtl ? 1 : -1; 1140 width = this.$stage.width() - this.$element.width(); 1141 while (coordinate = this.coordinates(i)) { 1142 if (coordinate * revert >= width) { 1143 break; 1144 } 1145 maximum = ++i; 1146 } 1147 } else { 1148 throw 'Can not detect maximum absolute position.' 1149 } 1150 1151 return maximum; 1152 }; 1153 1154 /** 1155 * Gets the minimum position for an item. 1156 * @public 1157 * @param {Boolean} [relative=false] - Whether to return an absolute position or a relative position. 1158 * @returns {Number} 1159 */ 1160 Owl.prototype.minimum = function(relative) { 1161 if (relative) { 1162 return 0; 1163 } 1164 1165 return this._clones.length / 2; 1166 }; 1167 1168 /** 1169 * Gets an item at the specified relative position. 1170 * @public 1171 * @param {Number} [position] - The relative position of the item. 1172 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given. 1173 */ 1174 Owl.prototype.items = function(position) { 1175 if (position === undefined) { 1176 return this._items.slice(); 1177 } 1178 1179 position = this.normalize(position, true); 1180 return this._items[position]; 1181 }; 1182 1183 /** 1184 * Gets an item at the specified relative position. 1185 * @public 1186 * @param {Number} [position] - The relative position of the item. 1187 * @return {jQuery|Array.<jQuery>} - The item at the given position or all items if no position was given. 1188 */ 1189 Owl.prototype.mergers = function(position) { 1190 if (position === undefined) { 1191 return this._mergers.slice(); 1192 } 1193 1194 position = this.normalize(position, true); 1195 return this._mergers[position]; 1196 }; 1197 1198 /** 1199 * Gets the absolute positions of clones for an item. 1200 * @public 1201 * @param {Number} [position] - The relative position of the item. 1202 * @returns {Array.<Number>} - The absolute positions of clones for the item or all if no position was given. 1203 */ 1204 Owl.prototype.clones = function(position) { 1205 var odd = this._clones.length / 2, 1206 even = odd + this._items.length, 1207 map = function(index) { return index % 2 === 0 ? even + index / 2 : odd
1207- (index + 1) / 2 }; 1208 1209 if (position === undefined) { 1210 return $.map(this._clones, function(v, i) { return map(i) }); 1211 } 1212 1213 return $.map(this._clones, function(v, i) { return v === position ? map(i) : null }); 1214 }; 1215 1216 /** 1217 * Sets the current animation speed. 1218 * @public 1219 * @param {Number} [speed] - The animation speed in milliseconds or nothing to leave it unchanged. 1220 * @returns {Number} - The current animation speed in milliseconds. 1221 */ 1222 Owl.prototype.speed = function(speed) { 1223 if (speed !== undefined) { 1224 this._speed = speed; 1225 } 1226 1227 return this._speed; 1228 }; 1229 1230 /** 1231 * Gets the coordinate of an item. 1232 * @todo The name of this method is missleanding. 1233 * @public 1234 * @param {Number} position - The absolute position of the item within `minimum()` and `maximum()`. 1235 * @returns {Number|Array.<Number>} - The coordinate of the item in pixel or all coordinates. 1236 */ 1237 Owl.prototype.coordinates = function(position) { 1238 var coordinate = null; 1239 1240 if (position === undefined) { 1241 return $.map(this._coordinates, $.proxy(function(coordinate, index) { 1242 return this.coordinates(index); 1243 }, this)); 1244 } 1245 1246 if (this.settings.center) { 1247 coordinate = this._coordinates[position]; 1248 coordinate += (this.width() - coordinate + (this._coordinates[position - 1] || 0)) / 2 * (this.settings.rtl ? -1 : 1); 1249 } else { 1250 coordinate = this._coordinates[position - 1] || 0; 1251 } 1252 1253 return coordinate; 1254 }; 1255 1256 /** 1257 * Calculates the speed for a translation. 1258 * @protected 1259 * @param {Number} from - The absolute position of the start item. 1260 * @param {Number} to - The absolute position of the target item. 1261 * @param {Number} [factor=undefined] - The time factor in milliseconds. 1262 * @returns {Number} - The time in milliseconds for the translation. 1263 */ 1264 Owl.prototype.duration = function(from, to, factor) { 1265 return Math.min(Math.max(Math.abs(to - from), 1), 6) * Math.abs((factor || this.settings.smartSpeed)); 1266 }; 1267 1268 /** 1269 * Slides to the specified item. 1270 * @public 1271 * @param {Number} position - The position of the item. 1272 * @param {Number} [speed] - The time in milliseconds for the transition. 1273 */ 1274 Owl.prototype.to = function(position, speed) { 1275 if (this.settings.loop) { 1276 var distance = position - this.relative(this.current()), 1277 revert = this.current(), 1278 before = this.current(), 1279 after = this.current() + distance, 1280 direction = before - after < 0 ? true : false, 1281 items = this._clones.length + this._items.length; 1282 1283 if (after < this.settings.items && direction === false) { 1284 revert = before + this._items.length; 1285 this.reset(revert); 1286 } else if (after >= items - this.settings.items && direction === true) { 1287 revert = before - this._items.length; 1288 this.reset(revert); 1289 } 1290 window.clearTimeout(this.e._goToLoop); 1291 this.e._goToLoop = window.setTimeout($.proxy(function() { 1292 this.speed(this.duration(this.current(), revert + distance, speed)); 1293 this.current(revert + distance); 1294 this.update(); 1295 }, this), 30); 1296 } else { 1297 this.speed(this.duration(this.current(), position, speed)); 1298 this.current(position); 1299 this.update(); 1300 } 1301 }; 1302 1303 /** 1304 * Slides to the next item. 1305 * @public 1306 * @param {Number} [speed] - The time in milliseconds for the transition. 1307 */ 1308 Owl.prototype.next = function(speed) { 1309 speed = speed || false; 1310 this.to(this.relative(this.current()) + 1, speed); 1311 }; 1312 1313 /** 1314 * Slides to the previous item. 1315 * @public 1316 * @param {Number} [speed] - The time in milliseconds for the transition. 1317 */ 1318 Owl.prototype.prev = function(speed) { 1319 speed = speed || false; 1320 this.to(this.relative(this.current()) - 1, speed); 1321 }; 1322 1323 /** 1324 * Handles the end of an animation. 1325 * @protected 1326 * @param {Event} event - The event arguments. 1327 */ 1328 Owl.prototype.transitionEnd = function(event) { 1329 1330 // if css2 animation then event object is undefined 1331 if (event !== undefined) { 1332 event.stopPropagation(); 1333 1334 // Catch only owl-stage transitionEnd event 1335 if ((event.target || event.srcElement || event.originalTarget) !== this.$stage.get(0)) { 1336 return false;
1337 } 1338 } 1339 1340 this.state.inMotion = false; 1341 this.trigger('translated'); 1342 }; 1343 1344 /** 1345 * Gets viewport width. 1346 * @protected 1347 * @return {Number} - The width in pixel. 1348 */ 1349 Owl.prototype.viewport = function() { 1350 var width; 1351 if (this.options.responsiveBaseElement !== window) { 1352 width = $(this.options.responsiveBaseElement).width(); 1353 } else if (window.innerWidth) { 1354 width = window.innerWidth; 1355 } else if (document.documentElement && document.documentElement.clientWidth) { 1356 width = document.documentElement.clientWidth; 1357 } else { 1358 throw 'Can not detect viewport width.'; 1359 } 1360 return width; 1361 }; 1362 1363 /** 1364 * Replaces the current content. 1365 * @public 1366 * @param {HTMLElement|jQuery|String} content - The new content. 1367 */ 1368 Owl.prototype.replace = function(content) { 1369 this.$stage.empty(); 1370 this._items = []; 1371 1372 if (content) { 1373 content = (content instanceof jQuery) ? content : $(content); 1374 } 1375 1376 if (this.settings.nestedItemSelector) { 1377 content = content.find('.' + this.settings.nestedItemSelector); 1378 } 1379 1380 content.filter(function() { 1381 return this.nodeType === 1; 1382 }).each($.proxy(function(index, item) { 1383 item = this.prepare(item); 1384 this.$stage.append(item); 1385 this._items.push(item); 1386 this._mergers.push(item.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1); 1387 }, this)); 1388 1389 this.reset($.isNumeric(this.settings.startPosition) ? this.settings.startPosition : 0); 1390 1391 this.invalidate('items'); 1392 }; 1393 1394 /** 1395 * Adds an item. 1396 * @todo Use `item` instead of `content` for the event arguments. 1397 * @public 1398 * @param {HTMLElement|jQuery|String} content - The item content to add. 1399 * @param {Number} [position] - The relative position at which to insert the item otherwise the item will be added to the end. 1400 */ 1401 Owl.prototype.add = function(content, position) { 1402 position = position === undefined ? this._items.length : this.normalize(position, true); 1403 1404 this.trigger('add', { content: content, position: position }); 1405 1406 if (this._items.length === 0 || position === this._items.length) { 1407 this.$stage.append(content); 1408 this._items.push(content); 1409 this._mergers.push(content.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1); 1410 } else { 1411 this._items[position].before(content); 1412 this._items.splice(position, 0, content); 1413 this._mergers.splice(position, 0, content.find('[data-merge]').andSelf('[data-merge]').attr('data-merge') * 1 || 1); 1414 } 1415 1416 this.invalidate('items'); 1417 1418 this.trigger('added', { content: content, position: position }); 1419 }; 1420 1421 /** 1422 * Removes an item by its position. 1423 * @todo Use `item` instead of `content` for the event arguments. 1424 * @public 1425 * @param {Number} position - The relative position of the item to remove. 1426 */ 1427 Owl.prototype.remove = function(position) { 1428 position = this.normalize(position, true); 1429 1430 if (position === undefined) { 1431 return; 1432 } 1433 1434 this.trigger('remove', { content: this._items[position], position: position }); 1435 1436 this._items[position].remove(); 1437 this._items.splice(position, 1); 1438 this._mergers.splice(position, 1); 1439 1440 this.invalidate('items'); 1441 1442 this.trigger('removed', { content: null, position: position }); 1443 }; 1444 1445 /** 1446 * Adds triggerable events. 1447 * @protected 1448 */ 1449 Owl.prototype.addTriggerableEvents = function() { 1450 var handler = $.proxy(function(callback, event) { 1451 return $.proxy(function(e) { 1452 if (e.relatedTarget !== this) { 1453 this.suppress([ event ]); 1454 callback.apply(this, [].slice.call(arguments, 1)); 1455 this.release([ event ]); 1456 } 1457 }, this); 1458 }, this); 1459 1460 $.each({ 1461 'next': this.next, 1462 'prev': this.prev, 1463 'to': this.to, 1464 'destroy': this.destroy, 1465 'refresh': this.refresh, 1466 'replace': this.replace, 1467 'add': this.add, 1468 'remove': this.remove 1469 }, $.proxy(function(event, callback) { 1470 this.$element.on(event + '.owl.carousel', handler(callback, event + '.owl.carousel')); 1471 }, this)); 1472 1473 }; 1474 1475 /** 1476 * Watches the visibility of the carousel element. 1477 * @protected 1478 */ 1479 Owl.prototype.watchVisibility = function() { 1480 1481 // test on zepto 1482 if (!isElVisible(this.$element.get(0))) { 1483 this.$element.addClass('owl-hidden'); 1484 window.clearInterval(this.e._checkVisibile); 1485 this.e._checkVisibile = window.setInterval($.proxy(checkVisible, this), 500); 1486 } 1487 1488 function isElVisible(el) { 1489 return el.offsetWidth > 0 && el.offsetHeight > 0; 1490 } 1491 1492 function checkVisible() { 1493 if (isElVisible(this.$element.get(0))) { 1494 this.$element.removeClass('owl-hidden'); 1495 this.refresh(); 1496 window.clearInterval(this.e._checkVisibile); 1497 } 1498 } 1499 }; 1500 1501 /** 1502 * Preloads images with auto width. 1503 * @protected 1504 * @todo Still to test 1505 */ 1506 Owl.prototype.preloadAutoWidthImages = function(imgs) { 1507 var loaded, that, $el, img; 1508 1509 loaded = 0; 1510 that = this; 1511 imgs.each(function(i, el) { 1512 $el = $(el); 1513 img = new Image(); 1514 1515 img.onload = function() { 1516 loaded++; 1517 $el.attr('src', img.src); 1518 $el.css('opacity', 1); 1519 if (loaded >= imgs.length) { 1520 that.state.imagesLoaded = true; 1521 that.initialize(); 1522 } 1523 }; 1524 1525 img.src = $el.attr('src') || $el.attr('data-src') || $el.attr('data-src-retina'); 1526 }); 1527 }; 1528 1529 /** 1530 * Destroys the carousel. 1531 * @public 1532 */ 1533 Owl.prototype.destroy = function() { 1534 1535 if (this.$element.hasClass(this.settings.themeClass)) { 1536 this.$element.removeClass(this.settings.themeClass); 1537 } 1538 1539 if (this.settings.responsive !== false) { 1540 $(window).off('resize.owl.carousel'); 1541 } 1542 1543 if (this.transitionEndVendor) { 1544 this.off(this.$stage.get(0), this.transitionEndVendor, this.e._transitionEnd); 1545 } 1546 1547 for ( var i in this._plugins) { 1548 this._plugins[i].destroy(); 1549 } 1550 1551 if (this.settings.mouseDrag || this.settings.touchDrag) { 1552 this.$stage.off('mousedown touchstart touchcancel'); 1553 $(document).off('.owl.dragEvents'); 1554 this.$stage.get(0).onselectstart = function() {}; 1555 this.$stage.off('dragstart', function() { return false }); 1556 } 1557 1558 // remove event handlers in the ".owl.carousel" namespace 1559 this.$element.off('.owl'); 1560 1561 this.$stage.children('.cloned').remove(); 1562 this.e = null; 1563 this.$element.removeData('owlCarousel'); 1564 1565 this.$stage.children().contents().unwrap(); 1566 this.$stage.children().unwrap(); 1567 this.$stage.unwrap(); 1568 }; 1569 1570 /** 1571 * Operators to calculate right-to-left and left-to-right. 1572 * @protected 1573 * @param {Number} [a] - The left side operand. 1574 * @param {String} [o] - The operator. 1575 * @param {Number} [b] - The right side operand. 1576 */ 1577 Owl.prototype.op = function(a, o, b) { 1578 var rtl = this.settings.rtl; 1579 switch (o) { 1580 case '<': 1581 return rtl ? a > b : a < b; 1582 case '>': 1583 return rtl ? a < b : a > b; 1584 case '>=': 1585 return rtl ? a <= b : a >= b; 1586 case '<=': 1587 return rtl ? a >= b : a <= b; 1588 default: 1589 break; 1590 } 1591 }; 1592 1593 /** 1594 * Attaches to an internal event. 1595 * @protected 1596 * @param {HTMLElement} element - The event source. 1597 * @param {String} event - The event name. 1598 * @param {Function} listener - The event handler to attach. 1599 * @param {Boolean} capture - Wether the event should be handled at the capturing p
1599hase or not. 1600 */ 1601 Owl.prototype.on = function(element, event, listener, capture) { 1602 if (element.addEventListener) { 1603 element.addEventListener(event, listener, capture); 1604 } else if (element.attachEvent) { 1605 element.attachEvent('on' + event, listener); 1606 } 1607 }; 1608 1609 /** 1610 * Detaches from an internal event. 1611 * @protected 1612 * @param {HTMLElement} element - The event source. 1613 * @param {String} event - The event name. 1614 * @param {Function} listener - The attached event handler to detach. 1615 * @param {Boolean} capture - Wether the attached event handler was registered as a capturing listener or not. 1616 */ 1617 Owl.prototype.off = function(element, event, listener, capture) { 1618 if (element.removeEventListener) { 1619 element.removeEventListener(event, listener, capture); 1620 } else if (element.detachEvent) { 1621 element.detachEvent('on' + event, listener); 1622 } 1623 }; 1624 1625 /** 1626 * Triggers an public event. 1627 * @protected 1628 * @param {String} name - The event name. 1629 * @param {*} [data=null] - The event data. 1630 * @param {String} [namespace=.owl.carousel] - The event namespace. 1631 * @returns {Event} - The event arguments. 1632 */ 1633 Owl.prototype.trigger = function(name, data, namespace) { 1634 var status = { 1635 item: { count: this._items.length, index: this.current() } 1636 }, handler = $.camelCase( 1637 $.grep([ 'on', name, namespace ], function(v) { return v }) 1638 .join('-').toLowerCase() 1639 ), event = $.Event( 1640 [ name, 'owl', namespace || 'carousel' ].join('.').toLowerCase(), 1641 $.extend({ relatedTarget: this }, status, data) 1642 ); 1643 1644 if (!this._supress[name]) { 1645 $.each(this._plugins, function(name, plugin) { 1646 if (plugin.onTrigger) { 1647 plugin.onTrigger(event); 1648 } 1649 }); 1650 1651 this.$element.trigger(event); 1652 1653 if (this.settings && typeof this.settings[handler] === 'function') { 1654 this.settings[handler].apply(this, event); 1655 } 1656 } 1657 1658 return event; 1659 }; 1660 1661 /** 1662 * Suppresses events. 1663 * @protected 1664 * @param {Array.<String>} events - The events to suppress. 1665 */ 1666 Owl.prototype.suppress = function(events) { 1667 $.each(events, $.proxy(function(index, event) { 1668 this._supress[event] = true; 1669 }, this)); 1670 } 1671 1672 /** 1673 * Releases suppressed events. 1674 * @protected 1675 * @param {Array.<String>} events - The events to release. 1676 */ 1677 Owl.prototype.release = function(events) { 1678 $.each(events, $.proxy(function(index, event) { 1679 delete this._supress[event]; 1680 }, this)); 1681 } 1682 1683 /** 1684 * Checks the availability of some browser features. 1685 * @protected 1686 */ 1687 Owl.prototype.browserSupport = function() { 1688 this.support3d = isPerspective(); 1689 1690 if (this.support3d) { 1691 this.transformVendor = isTransform(); 1692 1693 // take transitionend event name by detecting transition 1694 var endVendors = [ 'transitionend', 'webkitTransitionEnd', 'transitionend', 'oTransitionEnd' ]; 1695 this.transitionEndVendor = endVendors[isTransition()]; 1696 1697 // take vendor name from transform name 1698 this.vendorName = this.transformVendor.replace(/Transform/i, ''); 1699 this.vendorName = this.vendorName !== '' ? '-' + this.vendorName.toLowerCase() + '-' : ''; 1700 } 1701 1702 this.state.orientation = window.orientation; 1703 }; 1704 1705 /** 1706 * Get touch/drag coordinats. 1707 * @private 1708 * @param {event} - mousedown/touchstart event 1709 * @returns {object} - Contains X and Y of current mouse/touch position 1710 */ 1711 1712 function getTouches(event) { 1713 if (event.touches !== undefined) { 1714 return { 1715 x: event.touches[0].pageX, 1716 y: event.touches[0].pageY 1717 }; 1718 } 1719 1720 if (event.touches === undefined) { 1721 if (event.pageX !== undefined) { 1722 return { 1723 x: event.pageX, 1724 y: event.pageY 1725 }; 1726 } 1727 1728 if (event.pageX === undefined) { 1729 return { 1730 x: event.clientX, 1731 y: event.clientY 1732 }; 1733 } 1734 } 1735 } 1736 1737 /** 1738 * Checks for CSS support. 1739 * @private 1740 * @param {Array} array - The CSS properties to check for. 1741 * @returns {Array} - Contains the supported CSS property name and its index or `false`. 1742 */ 1743 function isStyleSupported(array) { 1744 var p, s, fake = document.createElement('div'), list = array; 1745 for (p in list) { 1746 s = list[p]; 1747 if (typeof fake.style[s] !== 'undefined') { 1748 fake = null; 1749 return [ s, p ]; 1750 } 1751 } 1752 return [ false ]; 1753 } 1754 1755 /** 1756 * Checks for CSS transition support. 1757 * @private 1758 * @todo Realy bad design 1759 * @returns {Number} 1760 */ 1761 function isTransition() { 1762 return isStyleSupported([ 'transition', 'WebkitTransition', 'MozTransition', 'OTransition' ])[1]; 1763 } 1764 1765 /** 1766 * Checks for CSS transform support. 1767 * @private 1768 * @returns {String} The supported property name or false. 1769 */ 1770 function isTransform() { 1771 return isStyleSupported([ 'transform', 'WebkitTransform', 'MozTransform', 'OTransform', 'msTransform' ])[0]; 1772 } 1773 1774 /** 1775 * Checks for CSS perspective support. 1776 * @private 1777 * @returns {String} The supported property name or false. 1778 */ 1779 function isPerspective() { 1780 return isStyleSupported([ 'perspective', 'webkitPerspective', 'MozPerspective', 'OPerspective', 'MsPerspective' ])[0]; 1781 } 1782 1783 /** 1784 * Checks wether touch is supported or not. 1785 * @private 1786 * @returns {Boolean} 1787 */ 1788 function isTouchSupport() { 1789 return 'ontouchstart' in window || !!(navigator.msMaxTouchPoints); 1790 } 1791 1792 /** 1793 * Checks wether touch is supported or not for IE. 1794 * @private 1795 * @returns {Boolean} 1796 */ 1797 function isTouchSupportIE() { 1798 return window.navigator.msPointerEnabled; 1799 } 1800 1801 /** 1802 * The jQuery Plugin for the Owl Carousel
1803 * @public 1804 */ 1805 $.fn.owlCarousel = function(options) { 1806 return this.each(function() { 1807 if (!$(this).data('owlCarousel')) { 1808 $(this).data('owlCarousel', new Owl(this, options)); 1809 } 1810 }); 1811 }; 1812 1813 /** 1814 * The constructor for the jQuery Plugin 1815 * @public 1816 */ 1817 $.fn.owlCarousel.Constructor = Owl; 1818 1819})(window.Zepto || window.jQuery, window, document); 1820 1821/** 1822 * Lazy Plugin 1823 * @version 2.0.0 1824 * @author Bartosz Wojciechowski 1825 * @license The MIT License (MIT) 1826 */ 1827;(function($, window, document, undefined) { 1828 1829 /** 1830 * Creates the lazy plugin. 1831 * @class The Lazy Plugin 1832 * @param {Owl} carousel - The Owl Carousel 1833 */ 1834 var Lazy = function(carousel) { 1835 1836 /** 1837 * Reference to the core. 1838 * @protected 1839 * @type {Owl} 1840 */ 1841 this._core = carousel; 1842 1843 /** 1844 * Already loaded items. 1845 * @protected 1846 * @type {Array.<jQuery>} 1847 */ 1848 this._loaded = []; 1849 1850 /** 1851 * Event handlers. 1852 * @protected 1853 * @type {Object} 1854 */ 1855 this._handlers = { 1856 'initialized.owl.carousel change.owl.carousel': $.proxy(function(e) { 1857 if (!e.namespace) { 1858 return; 1859 } 1860 1861 if (!this._core.settings || !this._core.settings.lazyLoad) { 1862 return; 1863 } 1864 1865 if ((e.property && e.property.name == 'position') || e.type == 'initialized') { 1866 var settings = this._core.settings, 1867 n = (settings.center && Math.ceil(settings.items / 2) || settings.items), 1868 i = ((settings.center && n * -1) || 0), 1869 position = ((e.property && e.property.value) || this._core.current()) + i, 1870 clones = this._core.clones().length, 1871 load = $.proxy(function(i, v) { this.load(v) }, this); 1872 1873 while (i++ < n) { 1874 this.load(clones / 2 + this._core.relative(position)); 1875 clones && $.each(this._core.clones(this._core.relative(position++)), load); 1876 } 1877 } 1878 }, this) 1879 }; 1880 1881 // set the default options 1882 this._core.options = $.extend({}, Lazy.Defaults, this._core.options); 1883 1884 // register event handler 1885 this._core.$element.on(this._handlers); 1886 } 1887 1888 /** 1889 * Default options. 1890 * @public 1891 */ 1892 Lazy.Defaults = { 1893 lazyLoad: false 1894 } 1895 1896 /** 1897 * Loads all resources of an item at the specified position. 1898 * @param {Number} position - The absolute position of the item. 1899 * @protected 1900 */ 1901 Lazy.prototype.load = function(position) { 1902 var $item = this._core.$stage.children().eq(position), 1903 $elements = $item && $item.find('.owl-lazy'); 1904 1905 if (!$elements || $.inArray($item.get(0), this._loaded) > -1) { 1906 return; 1907 } 1908 1909 $elements.each($.proxy(function(index, element) { 1910 var $element = $(element), image, 1911 url = (window.devicePixelRatio > 1 && $element.attr('data-src-retina')) || $element.attr('data-src'); 1912 1913 this._core.trigger('load', { element: $element, url: url }, 'lazy'); 1914 1915 if ($element.is('img')) { 1916 $element.one('load.owl.lazy', $.proxy(function() { 1917 $element.css('opacity', 1); 1918 this._core.trigger('loaded', { element: $element, url: url }, 'lazy'); 1919 }, this)).attr('src', url); 1920 } else { 1921 image = new Image(); 1922 image.onload = $.proxy(function() { 1923 $element.css({ 1924 'background-image': 'url(' + url + ')', 1925 'opacity': '1' 1926 }); 1927 this._core.trigger('loaded', { element: $element, url: url }, 'lazy'); 1928 }, this); 1929 image.src = url; 1930 } 1931 }, this)); 1932 1933 this._loaded.push($item.get(0)); 1934 } 1935 1936 /** 1937 * Destroys the plugin. 1938 * @public 1939 */ 1940 Lazy.prototype.destroy = function() { 1941 var handler, property; 1942 1943 for (handler in this.handlers) { 1944 this._core.$element.off(handler, this.handlers[handler]); 1945 } 1946 for (property in Object.getOwnPropertyNames(this)) { 1947 typeof this[property] != 'function' && (this[property] = null); 1948 } 1949 } 1950
vendor: 7,780 bytes, lines 1951-2210
1951 $.fn.owlCarousel.Constructor.Plugins.Lazy = Lazy; 1952 1953})(window.Zepto || window.jQuery, window, document); 1954 1955/** 1956 * AutoHeight Plugin 1957 * @version 2.0.0 1958 * @author Bartosz Wojciechowski 1959 * @license The MIT License (MIT) 1960 */ 1961;(function($, window, document, undefined) { 1962 1963 /** 1964 * Creates the auto height plugin. 1965 * @class The Auto Height Plugin 1966 * @param {Owl} carousel - The Owl Carousel 1967 */ 1968 var AutoHeight = function(carousel) { 1969 /** 1970 * Reference to the core. 1971 * @protected 1972 * @type {Owl} 1973 */ 1974 this._core = carousel; 1975 1976 /** 1977 * All event handlers. 1978 * @protected 1979 * @type {Object} 1980 */ 1981 this._handlers = { 1982 'initialized.owl.carousel': $.proxy(function() { 1983 if (this._core.settings.autoHeight) { 1984 this.update(); 1985 } 1986 }, this), 1987 'changed.owl.carousel': $.proxy(function(e) { 1988 if (this._core.settings.autoHeight && e.property.name == 'position'){ 1989 this.update(); 1990 } 1991 }, this), 1992 'loaded.owl.lazy': $.proxy(function(e) { 1993 if (this._core.settings.autoHeight && e.element.closest('.' + this._core.settings.itemClass) 1994 === this._core.$stage.children().eq(this._core.current())) { 1995 this.update(); 1996 } 1997 }, this) 1998 }; 1999 2000 // set default options 2001 this._core.options = $.extend({}, AutoHeight.Defaults, this._core.options); 2002 2003 // register event handlers 2004 this._core.$element.on(this._handlers); 2005 }; 2006 2007 /** 2008 * Default options. 2009 * @public 2010 */ 2011 AutoHeight.Defaults = { 2012 autoHeight: false, 2013 autoHeightClass: 'owl-height' 2014 }; 2015 2016 /** 2017 * Updates the view. 2018 */ 2019 AutoHeight.prototype.update = function() { 2020 this._core.$stage.parent() 2021 .height(this._core.$stage.children().eq(this._core.current()).height()) 2022 .addClass(this._core.settings.autoHeightClass); 2023 }; 2024 2025 AutoHeight.prototype.destroy = function() { 2026 var handler, property; 2027 2028 for (handler in this._handlers) { 2029 this._core.$element.off(handler, this._handlers[handler]); 2030 } 2031 for (property in Object.getOwnPropertyNames(this)) { 2032 typeof this[property] != 'function' && (this[property] = null); 2033 } 2034 }; 2035 2036 $.fn.owlCarousel.Constructor.Plugins.AutoHeight = AutoHeight; 2037 2038})(window.Zepto || window.jQuery, window, document); 2039 2040/** 2041 * Video Plugin 2042 * @version 2.0.0 2043 * @author Bartosz Wojciechowski 2044 * @license The MIT License (MIT) 2045 */ 2046;(function($, window, document, undefined) { 2047 2048 /** 2049 * Creates the video plugin. 2050 * @class The Video Plugin 2051 * @param {Owl} carousel - The Owl Carousel 2052 */ 2053 var Video = function(carousel) { 2054 /** 2055 * Reference to the core. 2056 * @protected 2057 * @type {Owl} 2058 */ 2059 this._core = carousel; 2060 2061 /** 2062 * Cache all video URLs. 2063 * @protected 2064 * @type {Object} 2065 */ 2066 this._videos = {}; 2067 2068 /** 2069 * Current playing item. 2070 * @protected 2071 * @type {jQuery} 2072 */ 2073 this._playing = null; 2074 2075 /** 2076 * Whether this is in fullscreen or not. 2077 * @protected 2078 * @type {Boolean} 2079 */ 2080 this._fullscreen = false; 2081 2082 /** 2083 * All event handlers. 2084 * @protected 2085 * @type {Object} 2086 */ 2087 this._handlers = { 2088 'resize.owl.carousel': $.proxy(function(e) { 2089 if (this._core.settings.video && !this.isInFullScreen()) { 2090 e.preventDefault(); 2091 } 2092 }, this), 2093 'refresh.owl.carousel changed.owl.carousel': $.proxy(function(e) { 2094 if (this._playing) { 2095 this.stop(); 2096 } 2097 }, this), 2098 'prepared.owl.carousel': $.proxy(function(e) { 2099 var $element = $(e.content).find('.owl-video'); 2100 if ($element.length) { 2101 $element.css('display', 'none'); 2102 this.fetch($element, $(e.content)); 2103 } 2104 }, this) 2105 }; 2106 2107 // set default options 2108 this._core.options = $.extend({}, Video.Defaults, this._core.options); 2109 2110 // register event handlers 2111 this._core.$element.on(this._handlers); 2112 2113 this._core.$element.on('click.owl.video', '.owl-video-play-icon', $.proxy(function(e) { 2114 this.play(e); 2115 }, this)); 2116 }; 2117 2118 /** 2119 * Default options. 2120 * @public 2121 */ 2122 Video.Defaults = { 2123 video: false, 2124 videoHeight: false, 2125 videoWidth: false 2126 }; 2127 2128 /** 2129 * Gets the video ID and the type (YouTube/Vimeo only). 2130 * @protected 2131 * @param {jQuery} target - The target containing the video data. 2132 * @param {jQuery} item - The item containing the video. 2133 */ 2134 Video.prototype.fetch = function(target, item) { 2135 2136 var type = target.attr('data-vimeo-id') ? 'vimeo' : 'youtube', 2137 id = target.attr('data-vimeo-id') || target.attr('data-youtube-id'), 2138 width = target.attr('data-width') || this._core.settings.videoWidth, 2139 height = target.attr('data-height') || this._core.settings.videoHeight, 2140 url = target.attr('href'); 2141 2142 if (url) { 2143 id = url.match(/(http:|https:|)\/\/(player.|www.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com))\/(video\/|embed\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/); 2144 2145 if (id[3].indexOf('youtu') > -1) { 2146 type = 'youtube'; 2147 } else if (id[3].indexOf('vimeo') > -1) { 2148 type = 'vimeo'; 2149 } else { 2150 throw new Error('Video URL not supported.'); 2151 } 2152 id = id[6]; 2153 } else { 2154 throw new Error('Missing video URL.'); 2155 } 2156 2157 this._videos[url] = { 2158 type: type, 2159 id: id, 2160 width: width, 2161 height: height 2162 }; 2163 2164 item.attr('data-video', url); 2165 2166 this.thumbnail(target, this._videos[url]); 2167 }; 2168 2169 /** 2170 * Creates video thumbnail. 2171 * @protected 2172 * @param {jQuery} target - The target containing the video data. 2173 * @param {Object} info - The video info object. 2174 * @see `fetch` 2175 */ 2176 Video.prototype.thumbnail = function(target, video) { 2177 2178 var tnLink, 2179 icon, 2180 path, 2181 dimensions = video.width && video.height ? 'style="width:' + video.width + 'px;height:' + video.height + 'px;"' : '', 2182 customTn = target.find('img'), 2183 srcType = 'src', 2184 lazyClass = '', 2185 settings = this._core.settings, 2186 create = function(path) { 2187 icon = '<div class="owl-video-play-icon"></div>'; 2188 2189 if (settings.lazyLoad) { 2190 tnLink = '<div class="owl-video-tn ' + lazyClass + '" ' + srcType + '="' + path + '"></div>'; 2191 } else { 2192 tnLink = '<div class="owl-video-tn" style="opacity:1;background-image:url(' + path + ')"></div>'; 2193 } 2194 target.after(tnLink); 2195 target.after(icon); 2196 }; 2197 2198 // wrap video content into owl-video-wrapper div 2199 target.wrap('<div class="owl-video-wrapper"' + dimensions + '></div>'); 2200 2201 if (this._core.settings.lazyLoad) { 2202 srcType = 'data-src'; 2203 lazyClass = 'owl-lazy'; 2204 } 2205 2206 // custom thumbnail 2207 if (customTn.length) { 2208 create(customTn.attr(srcType)); 2209 customTn.remove(); 2210 return false;
2211 } 2212 2213 if (video.type === 'youtube') { 2214 path = "http://img.youtube.com/vi/" + video.id + "/hqdefault.jpg"; 2215 create(path); 2216 } else if (video.type === 'vimeo') { 2217 $.ajax({ 2218 type: 'GET', 2219 url: 'http://vimeo.com/api/v2/video/' + video.id + '.json', 2220 jsonp: 'callback', 2221 dataType: 'jsonp', 2222 success: function(data) { 2223 path = data[0].thumbnail_large; 2224 create(path); 2225 } 2226 }); 2227 } 2228 }; 2229 2230 /** 2231 * Stops the current video. 2232 * @public 2233 */ 2234 Video.prototype.stop = function() { 2235 this._core.trigger('stop', null, 'video'); 2236 this._playing.find('.owl-video-frame').remove(); 2237 this._playing.removeClass('owl-video-playing'); 2238 this._playing = null; 2239 }; 2240 2241 /** 2242 * Starts the current video. 2243 * @public 2244 * @param {Event} ev - The event arguments. 2245 */ 2246 Video.prototype.play = function(ev) { 2247 this._core.trigger('play', null, 'video'); 2248 2249 if (this._playing) { 2250 this.stop(); 2251 } 2252 2253 var target = $(ev.target || ev.srcElement), 2254 item = target.closest('.' + this._core.settings.itemClass), 2255 video = this._videos[item.attr('data-video')], 2256 width = video.width || '100%', 2257 height = video.height || this._core.$stage.height(), 2258 html, wrap; 2259 2260 if (video.type === 'youtube') { 2261 html = '<iframe width="' + width + '" height="' + height + '" src="http://www.youtube.com/embed/' 2262 + video.id + '?autoplay=1&v=' + video.id + '" frameborder="0" allowfullscreen></iframe>'; 2263 } else if (video.type === 'vimeo') { 2264 html = '<iframe src="http://player.vimeo.com/video/' + video.id + '?autoplay=1" width="' + width 2265 + '" height="' + height 2266 + '" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>'; 2267 } 2268 2269 item.addClass('owl-video-playing'); 2270 this._playing = item; 2271 2272 wrap = $('<div style="height:' + height + 'px; width:' + width + 'px" class="owl-video-frame">' 2273 + html + '</div>'); 2274 target.after(wrap); 2275 }; 2276 2277 /** 2278 * Checks whether an video is currently in full screen mode or not. 2279 * @todo Bad style because looks like a readonly method but changes members. 2280 * @protected 2281 * @returns {Boolean} 2282 */ 2283 Video.prototype.isInFullScreen = function() { 2284 2285 // if Vimeo Fullscreen mode 2286 var element = document.fullscreenElement || document.mozFullScreenElement 2287 || document.webkitFullscreenElement; 2288 2289 if (element && $(element).parent().hasClass('owl-video-frame')) { 2290 this._core.speed(0); 2291 this._fullscreen = true; 2292 } 2293 2294 if (element && this._fullscreen && this._playing) { 2295 return false; 2296 } 2297 2298 // comming back from fullscreen 2299 if (this._fullscreen) { 2300 this._fullscreen = false; 2301 return false; 2302 } 2303 2304 // check full screen mode and window orientation 2305 if (this._playing) { 2306 if (this._core.state.orientation !== window.orientation) { 2307 this._core.state.orientation = window.orientation; 2308 return false; 2309 } 2310 } 2311 2312 return true; 2313 }; 2314 2315 /** 2316 * Destroys the plugin. 2317 */ 2318 Video.prototype.destroy = function() { 2319 var handler, property; 2320 2321 this._core.$element.off('click.owl.video'); 2322 2323 for (handler in this._handlers) { 2324 this._core.$element.off(handler, this._handlers[handler]); 2325 } 2326 for (property in Object.getOwnPropertyNames(this)) { 2327 typeof this[property] != 'function' && (this[property] = null); 2328 } 2329 }; 2330 2331 $.fn.owlCarousel.Constructor.Plugins.Video = Video; 2332 2333})(window.Zepto || window.jQuery, window, document); 2334 2335/** 2336 * Animate Plugin 2337 * @version 2.0.0 2338 * @author Bartosz Wojciechowski 2339 * @license The MIT License (MIT) 2340 */ 2341;(function($, window, document, undefined) { 2342 2343 /** 2344 * Creates the animate plugin. 2345 * @class The Navigation Plugin 2346 * @param {Owl} scope - The Owl Carousel
2347 */ 2348 var Animate = function(scope) { 2349 this.core = scope; 2350 this.core.options = $.extend({}, Animate.Defaults, this.core.options); 2351 this.swapping = true; 2352 this.previous = undefined; 2353 this.next = undefined; 2354 2355 this.handlers = { 2356 'change.owl.carousel': $.proxy(function(e) { 2357 if (e.property.name == 'position') { 2358 this.previous = this.core.current(); 2359 this.next = e.property.value; 2360 } 2361 }, this), 2362 'drag.owl.carousel dragged.owl.carousel translated.owl.carousel': $.proxy(function(e) { 2363 this.swapping = e.type == 'translated'; 2364 }, this), 2365 'translate.owl.carousel': $.proxy(function(e) { 2366 if (this.swapping && (this.core.options.animateOut || this.core.options.animateIn)) { 2367 this.swap(); 2368 } 2369 }, this) 2370 }; 2371 2372 this.core.$element.on(this.handlers); 2373 }; 2374 2375 /** 2376 * Default options. 2377 * @public 2378 */ 2379 Animate.Defaults = { 2380 animateOut: false, 2381 animateIn: false 2382 }; 2383 2384 /** 2385 * Toggles the animation classes whenever an translations starts. 2386 * @protected 2387 * @returns {Boolean|undefined} 2388 */ 2389 Animate.prototype.swap = function() { 2390 2391 if (this.core.settings.items !== 1 || !this.core.support3d) { 2392 return; 2393 } 2394 2395 this.core.speed(0); 2396 2397 var left, 2398 clear = $.proxy(this.clear, this), 2399 previous = this.core.$stage.children().eq(this.previous), 2400 next = this.core.$stage.children().eq(this.next), 2401 incoming = this.core.settings.animateIn, 2402 outgoing = this.core.settings.animateOut; 2403 2404 if (this.core.current() === this.previous) { 2405 return; 2406 } 2407 2408 if (outgoing) { 2409 left = this.core.coordinates(this.previous) - this.core.coordinates(this.next); 2410 previous.css( { 'left': left + 'px' } ) 2411 .addClass('animated owl-animated-out') 2412 .addClass(outgoing) 2413 .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', clear); 2414 } 2415 2416 if (incoming) { 2417 next.addClass('animated owl-animated-in') 2418 .addClass(incoming) 2419 .one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', clear); 2420 } 2421 }; 2422 2423 Animate.prototype.clear = function(e) { 2424 $(e.target).css( { 'left': '' } ) 2425 .removeClass('animated owl-animated-out owl-animated-in') 2426 .removeClass(this.core.settings.animateIn) 2427 .removeClass(this.core.settings.animateOut); 2428 this.core.transitionEnd(); 2429 } 2430 2431 /** 2432 * Destroys the plugin. 2433 * @public 2434 */ 2435 Animate.prototype.destroy = function() { 2436 var handler, property; 2437 2438 for (handler in this.handlers) { 2439 this.core.$element.off(handler, this.handlers[handler]); 2440 } 2441 for (property in Object.getOwnPropertyNames(this)) { 2442 typeof this[property] != 'function' && (this[property] = null); 2443 } 2444 }; 2445 2446 $.fn.owlCarousel.Constructor.Plugins.Animate = Animate; 2447 2448})(window.Zepto || window.jQuery, window, document); 2449 2450/** 2451 * Autoplay Plugin 2452 * @version 2.0.0 2453 * @author Bartosz Wojciechowski 2454 * @license The MIT License (MIT) 2455 */ 2456;(function($, window, document, undefined) { 2457 2458 /** 2459 * Creates the autoplay plugin. 2460 * @class The Autoplay Plugin 2461 * @param {Owl} scope - The Owl Carousel 2462 */ 2463 var Autoplay = function(scope) { 2464 this.core = scope; 2465 this.core.options = $.extend({}, Autoplay.Defaults, this.core.options); 2466 2467 this.handlers = { 2468 'translated.owl.carousel refreshed.owl.carousel': $.proxy(function() { 2469 this.autoplay(); 2470 }, this), 2471 'play.owl.autoplay': $.proxy(function(e, t, s) { 2472 this.play(t, s); 2473 }, this), 2474 'stop.owl.autoplay': $.proxy(function() { 2475 this.stop(); 2476 }, this), 2477 'mouseover.owl.autoplay': $.proxy(function() { 2478 if (this.core.settings.autoplayHoverPause) { 2479 this.pause(); 2480 } 2481 }, this), 2482 'mouseleave.owl.autoplay': $.proxy(function() { 2483 if (this.core.settings.autoplayHoverPause) { 2484 this.autoplay(); 2485 } 2486 }, this) 2487 }; 2488 2489 this.core.$element.on(this.handlers); 2490 }; 2491 2492 /** 2493 * Default options. 2494 * @public 2495 */ 2496 Autoplay.Defaults = { 2497 autoplay: false, 2498 autoplayTimeout: 5000, 2499 autoplayHoverPause: false, 2500 autoplaySpeed: false 2501 }; 2502 2503 /** 2504 * @protected 2505 * @todo Must be documented. 2506 */ 2507 Autoplay.prototype.autoplay = function() { 2508 if (this.core.settings.autoplay && !this.core.state.videoPlay) { 2509 window.clearInterval(this.interval); 2510 2511 this.interval = window.setInterval($.proxy(function() { 2512 this.play(); 2513 }, this), this.core.settings.autoplayTimeout); 2514 } else { 2515 window.clearInterval(this.interval); 2516 } 2517 }; 2518 2519 /** 2520 * Starts the autoplay. 2521 * @public 2522 * @param {Number} [timeout] - ... 2523 * @param {Number}
2523 [speed] - ... 2524 * @returns {Boolean|undefined} - ... 2525 * @todo Must be documented. 2526 */ 2527 Autoplay.prototype.play = function(timeout, speed) { 2528 // if tab is inactive - doesnt work in <IE10 2529 if (document.hidden === true) { 2530 return; 2531 } 2532 2533 if (this.core.state.isTouch || this.core.state.isScrolling 2534 || this.core.state.isSwiping || this.core.state.inMotion) { 2535 return; 2536 } 2537 2538 if (this.core.settings.autoplay === false) { 2539 window.clearInterval(this.interval); 2540 return; 2541 } 2542 2543 this.core.next(this.core.settings.autoplaySpeed); 2544 }; 2545 2546 /** 2547 * Stops the autoplay. 2548 * @public 2549 */ 2550 Autoplay.prototype.stop = function() { 2551 window.clearInterval(this.interval); 2552 }; 2553 2554 /** 2555 * Pauses the autoplay. 2556 * @public 2557 */ 2558 Autoplay.prototype.pause = function() { 2559 window.clearInterval(this.interval); 2560 }; 2561 2562 /** 2563 * Destroys the plugin. 2564 */ 2565 Autoplay.prototype.destroy = function() { 2566 var handler, property; 2567 2568 window.clearInterval(this.interval); 2569 2570 for (handler in this.handlers) { 2571 this.core.$element.off(handler, this.handlers[handler]); 2572 } 2573 for (property in Object.getOwnPropertyNames(this)) { 2574 typeof this[property] != 'function' && (this[property] = null); 2575 } 2576 }; 2577 2578 $.fn.owlCarousel.Constructor.Plugins.autoplay = Autoplay; 2579 2580})(window.Zepto || window.jQuery, window, document); 2581 2582/** 2583 * Navigation Plugin 2584 * @version 2.0.0 2585 * @author Artus Kolanowski 2586 * @license The MIT License (MIT) 2587 */ 2588;(function($, window, document, undefined) { 2589 'use strict'; 2590 2591 /** 2592 * Creates the navigation plugin. 2593 * @class The Navigation Plugin 2594 * @param {Owl} carousel - The Owl Carousel. 2595 */ 2596 var Navigation = function(carousel) { 2597 /** 2598 * Reference to the core. 2599 * @protected 2600 * @type {Owl} 2601 */ 2602 this._core = carousel; 2603 2604 /** 2605 * Indicates whether the plugin is initialized or not. 2606 * @protected 2607 * @type {Boolean} 2608 */ 2609 this._initialized = false; 2610 2611 /** 2612 * The current paging indexes. 2613 * @protected 2614 * @type {Array} 2615 */ 2616 this._pages = []; 2617 2618 /** 2619 * All DOM elements of the user interface. 2620 * @protected 2621 * @type {Object} 2622 */ 2623 this._controls = {}; 2624 2625 /** 2626 * Markup for an indicator. 2627 * @protected 2628 * @type {Array.<String>} 2629 */ 2630 this._templates = []; 2631 2632 /** 2633 * The carousel element. 2634 * @type {jQuery} 2635 */ 2636 this.$element = this._core.$element; 2637 2638 /** 2639 * Overridden methods of the carousel. 2640 * @protected 2641 * @type {Object} 2642 */ 2643 this._overrides = { 2644 next: this._core.next, 2645 prev: this._core.prev, 2646 to: this._core.to 2647 }; 2648 2649 /** 2650 * All event handlers. 2651 * @protected 2652 * @type {Object} 2653 */ 2654 this._handlers = { 2655 'prepared.owl.carousel': $.proxy(function(e) { 2656 if (this._core.settings.dotsData) { 2657 this._templates.push($(e.content).find('[data-dot]').andSelf('[data-dot]').attr('data-dot')); 2658 } 2659 }, this), 2660 'add.owl.carousel': $.proxy(function(e) { 2661 if (this._core.settings.dotsData) { 2662 this._templates.splice(e.position, 0, $(e.content).find('[data-dot]').andSelf('[data-dot]').attr('data-dot')); 2663 } 2664 }, this), 2665 'remove.owl.carousel prepared.owl.carousel': $.proxy(function(e) { 2666 if (this._core.settings.dotsData) { 2667 this._templates.splice(e.position, 1); 2668 } 2669 }, this), 2670 'change.owl.carousel': $.proxy(function(e) { 2671 if (e.property.name == 'position') { 2672 if (!this._core.state.revert && !this._core.settings.loop && this._core.settings.navRewind) { 2673 var current = this._core.current(), 2674 maximum = this._core.maximum(), 2675 minimum = this._core.minimum(); 2676 e.data = e.property.value > maximum 2677 ? current >= maximum ? minimum : maximum 2678 : e.property.value < minimum ? maximum : e.property.value; 2679 } 2680 } 2681 }, this), 2682 'changed.owl.carousel': $.proxy(function(e) { 2683 if (e.property.name == 'position') { 2684 this.draw(); 2685 } 2686 }, this), 2687 'refreshed.owl.carousel': $.proxy(function() { 2688 if (!this._initialized) { 2689 this.initialize(); 2690 this._initialized = true; 2691 } 2692 this._core.trigger('refresh', null, 'navigation'); 2693 this.update(); 2694 this.draw(); 2695 this._core.trigger('refreshed', null, 'navigation'); 2696 }, this) 2697 }; 2698 2699 // set default options 2700 this._core.options = $.extend({}, Navigation.Defaults, this._core.options); 2701 2702 // register event handlers 2703 this.$element.on(this._handlers); 2704 } 2705 2706 /** 2707 * Default options. 2708 * @public 2709 * @todo Rename `slideBy` to `navBy` 2710 */ 2711 Navigation.Defaults = { 2712 nav: false, 2713 navRewind: true, 2714 navText: [ 'prev', 'next' ], 2715 navSpeed: false, 2716 navElement: 'div', 2717 navContainer: false, 2718 navContainerClass: 'owl-nav', 2719 navClass: [ 'owl-prev', 'owl-next' ], 2720 slideBy: 1, 2721 dotClass: 'owl-dot', 2722 dotsClass: 'owl-dots', 2723 dots: true, 2724 dotsEach: false, 2725 dotData: false, 2726 dotsSpeed: false, 2727 dotsContainer: false,
2728 controlsClass: 'owl-controls' 2729 } 2730 2731 /** 2732 * Initializes the layout of the plugin and extends the carousel. 2733 * @protected 2734 */ 2735 Navigation.prototype.initialize = function() { 2736 var $container, override, 2737 options = this._core.settings; 2738 2739 // create the indicator template 2740 if (!options.dotsData) { 2741 this._templates = [ $('<div>') 2742 .addClass(options.dotClass) 2743 .append($('<span>')) 2744 .prop('outerHTML') ]; 2745 } 2746 2747 // create controls container if needed 2748 if (!options.navContainer || !options.dotsContainer) { 2749 this._controls.$container = $('<div>') 2750 .addClass(options.controlsClass) 2751 .appendTo(this.$element); 2752 } 2753 2754 // create DOM structure for absolute navigation 2755 this._controls.$indicators = options.dotsContainer ? $(options.dotsContainer) 2756 : $('<div>').hide().addClass(options.dotsClass).appendTo(this._controls.$container); 2757 2758 this._controls.$indicators.on('click', 'div', $.proxy(function(e) { 2759 var index = $(e.target).parent().is(this._controls.$indicators) 2760 ? $(e.target).index() : $(e.target).parent().index(); 2761 2762 e.preventDefault(); 2763 2764 this.to(index, options.dotsSpeed); 2765 }, this)); 2766 2767 // create DOM structure for relative navigation 2768 $container = options.navContainer ? $(options.navContainer) 2769 : $('<div>').addClass(options.navContainerClass).prependTo(this._controls.$container); 2770 2771 this._controls.$next = $('<' + options.navElement + '>'); 2772 this._controls.$previous = this._controls.$next.clone(); 2773 2774 this._controls.$previous 2775 .addClass(options.navClass[0]) 2776 .html(options.navText[0]) 2777 .hide() 2778 .prependTo($container) 2779 .on('click', $.proxy(function(e) { 2780 this.prev(options.navSpeed); 2781 }, this)); 2782 this._controls.$next 2783 .addClass(options.navClass[1]) 2784 .html(options.navText[1]) 2785 .hide() 2786 .appendTo($container) 2787 .on('click', $.proxy(function(e) { 2788 this.next(options.navSpeed); 2789 }, this)); 2790 2791 // override public methods of the carousel 2792 for (override in this._overrides) { 2793 this._core[override] = $.proxy(this[override], this); 2794 } 2795 } 2796 2797 /** 2798 * Destroys the plugin. 2799 * @protected 2800 */ 2801 Navigation.prototype.destroy = function() { 2802 var handler, control, property, override; 2803 2804 for (handler in this._handlers) { 2805 this.$element.off(handler, this._handlers[handler]); 2806 } 2807 for (control in this._controls) { 2808 this._controls[control].remove(); 2809 } 2810 for (override in this.overides) { 2811 this._core[override] = this._overrides[override]; 2812 } 2813 for (property in Object.getOwnPropertyNames(this)) { 2814 typeof this[property] != 'function' && (this[property] = null); 2815 } 2816 } 2817 2818 /** 2819 * Updates the internal state. 2820 * @protected 2821 */ 2822 Navigation.prototype.update = function() { 2823 var i, j, k, 2824 options = this._core.settings, 2825 lower = this._core.clones().length / 2, 2826 upper = lower + this._core.items().length, 2827 size = options.center || options.autoWidth || options.dotData 2828 ? 1 : options.dotsEach || options.items; 2829 2830 if (options.slideBy !== 'page') { 2831 options.slideBy = Math.min(options.slideBy, options.items); 2832 } 2833 2834 if (options.dots || options.slideBy == 'page') { 2835 this._pages = []; 2836 2837 for (i = lower, j = 0, k = 0; i < upper; i++) { 2838 if (j >= size || j === 0) { 2839 this._pages.push({ 2840 start: i - lower, 2841 end: i - lower + size - 1 2842 }); 2843 j = 0, ++k; 2844 } 2845 j += this._core.mergers(this._core.relative(i)); 2846 } 2847 } 2848 } 2849 2850 /** 2851 * Draws the user interface. 2852 * @todo The option `dotData` wont work. 2853 * @protected 2854 */ 2855 Navigation.prototype.draw = function() { 2856 var difference, i, html = '', 2857 options = this._core.settings, 2858 $items = this._core.$stage.children(), 2859 index = this._core.relative(this._core.current()); 2860
2861 if (options.nav && !options.loop && !options.navRewind) { 2862 this._controls.$previous.toggleClass('disabled', index <= 0); 2863 this._controls.$next.toggleClass('disabled', index >= this._core.maximum()); 2864 } 2865 2866 this._controls.$previous.toggle(options.nav); 2867 this._controls.$next.toggle(options.nav); 2868 2869 if (options.dots) { 2870 difference = this._pages.length - this._controls.$indicators.children().length; 2871 2872 if (options.dotData && difference !== 0) { 2873 for (i = 0; i < this._controls.$indicators.children().length; i++) { 2874 html += this._templates[this._core.relative(i)]; 2875 } 2876 this._controls.$indicators.html(html); 2877 } else if (difference > 0) { 2878 html = new Array(difference + 1).join(this._templates[0]); 2879 this._controls.$indicators.append(html); 2880 } else if (difference < 0) { 2881 this._controls.$indicators.children().slice(difference).remove(); 2882 } 2883 2884 this._controls.$indicators.find('.active').removeClass('active'); 2885 this._controls.$indicators.children().eq($.inArray(this.current(), this._pages)).addClass('active'); 2886 } 2887 2888 this._controls.$indicators.toggle(options.dots); 2889 } 2890 2891 /** 2892 * Extends event data. 2893 * @protected 2894 * @param {Event} event - The event object which gets thrown. 2895 */ 2896 Navigation.prototype.onTrigger = function(event) { 2897 var settings = this._core.settings; 2898 2899 event.page = { 2900 index: $.inArray(this.current(), this._pages), 2901 count: this._pages.length, 2902 size: settings && (settings.center || settings.autoWidth || settings.dotData 2903 ? 1 : settings.dotsEach || settings.items) 2904 }; 2905 } 2906 2907 /** 2908 * Gets the current page position of the carousel. 2909 * @protected 2910 * @returns {Number} 2911 */ 2912 Navigation.prototype.current = function() { 2913 var index = this._core.relative(this._core.current()); 2914 return $.grep(this._pages, function(o) { 2915 return o.start <= index && o.end >= index; 2916 }).pop(); 2917 } 2918 2919 /** 2920 * Gets the current succesor/predecessor position. 2921 * @protected 2922 * @returns {Number} 2923 */ 2924 Navigation.prototype.getPosition = function(successor) { 2925 var position, length, 2926 options = this._core.settings; 2927 2928 if (options.slideBy == 'page') { 2929 position = $.inArray(this.current(), this._pages); 2930 length = this._pages.length; 2931 successor ? ++position : --position; 2932 position = this._pages[((position % length) + length) % length].start; 2933 } else { 2934 position = this._core.relative(this._core.current()); 2935 length = this._core.items().length; 2936 successor ? position += options.slideBy : position -= options.slideBy; 2937 } 2938 return position; 2939 } 2940 2941 /** 2942 * Slides to the next item or page. 2943 * @public 2944 * @param {Number} [speed=false] - The time in milliseconds for the transition. 2945 */ 2946 Navigation.prototype.next = function(speed) { 2947 $.proxy(this._overrides.to, this._core)(this.getPosition(true), speed); 2948 } 2949 2950 /** 2951 * Slides to the previous item or page. 2952 * @public 2953 * @param {Number} [speed=false] - The time in milliseconds for the transition. 2954 */ 2955 Navigation.prototype.prev = function(speed) { 2956 $.proxy(this._overrides.to, this._core)(this.getPosition(false), speed); 2957 } 2958 2959 /** 2960 * Slides to the specified item or page. 2961 * @public 2962 * @param {Number} position - The position of the item or page. 2963 * @param {Number} [speed] - The time in milliseconds for the transition. 2964 * @param {Boolean} [standard=false] - Whether to use the standard behaviour or not. 2965 */ 2966 Navigation.prototype.to = function(position, speed, standard) { 2967 var length; 2968 2969 if (!standard) { 2970 length = this._pages.length; 2971 $.proxy(this._overrides.to, this._core)(this._pages[((
2971position % length) + length) % length].start, speed); 2972 } else { 2973 $.proxy(this._overrides.to, this._core)(position, speed); 2974 } 2975 } 2976 2977 $.fn.owlCarousel.Constructor.Plugins.Navigation = Navigation; 2978 2979})(window.Zepto || window.jQuery, window, document); 2980 2981/** 2982 * Hash Plugin 2983 * @version 2.0.0 2984 * @author Artus Kolanowski 2985 * @license The MIT License (MIT) 2986 */ 2987;(function($, window, document, undefined) { 2988 'use strict'; 2989 2990 /** 2991 * Creates the hash plugin. 2992 * @class The Hash Plugin 2993 * @param {Owl} carousel - The Owl Carousel 2994 */ 2995 var Hash = function(carousel) { 2996 /** 2997 * Reference to the core. 2998 * @protected 2999 * @type {Owl} 3000 */ 3001 this._core = carousel; 3002 3003 /** 3004 * Hash table for the hashes. 3005 * @protected 3006 * @type {Object} 3007 */ 3008 this._hashes = {}; 3009 3010 /** 3011 * The carousel element. 3012 * @type {jQuery} 3013 */ 3014 this.$element = this._core.$element; 3015 3016 /** 3017 * All event handlers. 3018 * @protected 3019 * @type {Object} 3020 */ 3021 this._handlers = { 3022 'initialized.owl.carousel': $.proxy(function() { 3023 if (this._core.settings.startPosition == 'URLHash') { 3024 $(window).trigger('hashchange.owl.navigation'); 3025 } 3026 }, this), 3027 'prepared.owl.carousel': $.proxy(function(e) { 3028 var hash = $(e.content).find('[data-hash]').andSelf('[data-hash]').attr('data-hash'); 3029 this._hashes[hash] = e.content; 3030 }, this) 3031 }; 3032 3033 // set default options 3034 this._core.options = $.extend({}, Hash.Defaults, this._core.options); 3035 3036 // register the event handlers 3037 this.$element.on(this._handlers); 3038 3039 // register event listener for hash navigation 3040 $(window).on('hashchange.owl.navigation', $.proxy(function() { 3041 var hash = window.location.hash.substring(1), 3042 items = this._core.$stage.children(), 3043 position = this._hashes[hash] && items.index(this._hashes[hash]) || 0; 3044 3045 if (!hash) { 3046 return false; 3047 } 3048 3049 this._core.to(position, false, true); 3050 }, this)); 3051 } 3052 3053 /** 3054 * Default options. 3055 * @public 3056 */ 3057 Hash.Defaults = { 3058 URLhashListener: false 3059 } 3060 3061 /** 3062 * Destroys the plugin. 3063 * @public 3064 */ 3065 Hash.prototype.destroy = function() { 3066 var handler, property; 3067 3068 $(window).off('hashchange.owl.navigation'); 3069 3070 for (handler in this._handlers) { 3071 this._core.$element.off(handler, this._handlers[handler]); 3072 } 3073 for (property in Object.getOwnPropertyNames(this)) { 3074 typeof this[property] != 'function' && (this[property] = null); 3075 } 3076 } 3077 3078 $.fn.owlCarousel.Constructor.Plugins.Hash = Hash; 3079 3080})(window.Zepto || window.jQuery, window, document); 3081// source --> https://seventrieste.com/wp-content/plugins/popup-addon-for-ninja-forms/js/magnific-popup.js?ver=5.2.4 3082// Magnific Popup v1.1.0 by Dmitry Semenov 3083// http://bit.ly/magnific-popup#build=inline+image+ajax+retina+imagezoom 3084(function(a){typeof define=="function"&&define.amd?define(["jquery"],a):typeof exports=="object"?a(require("jquery")):a(window.jQuery||window.Zepto)})(function(a){var b="Close",c="BeforeClose",d="AfterClose",e="BeforeAppend",f="MarkupParse",g="Open",h="Change",i="mfp",j="."+i,k="mfp-ready",l="mfp-removing",m="mfp-prevent-close",n,o=function(){},p=!!window.jQuery,q,r=a(window),s,t,u,v,w=function(a,b){n.ev.on(i+a+j,b)},x=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},y=function(b,c){n.ev.triggerHandler(i+b,c),n.st.callbacks&&(b=b.charAt(0).toLowerCase()+b.slice(1),n.st.callbacks[b]&&n.st.callbacks[b].apply(n,a.isArray(c)?c:[c]))},z=function(b){if(b!==v||!n.currTemplate.closeBtn)n.currTemplate.closeBtn=a(n.st.closeMarkup.replace("%title%",n.st.tClose)),v=b;return n.currTemplate.closeBtn},A=function(){a.magnificPopup.instance||(n=new o,n.init(),a.magnificPopup.instance=n)},B=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];
3084if(a.transition!==undefined)return!0;while(b.length)if(b.pop()+"Transition"in a)return!0;return!1};o.prototype={constructor:o,init:function(){var b=navigator.appVersion;n.isLowIE=n.isIE8=document.all&&!document.addEventListener,n.isAndroid=/android/gi.test(b),n.isIOS=/iphone|ipad|ipod/gi.test(b),n.supportsTransition=B(),n.probablyMobile=n.isAndroid||n.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),s=a(document),n.popupsCache={}},open:function(b){var c;if(b.isObj===!1){n.items=b.items.toArray(),n.index=0;var d=b.items,e;for(c=0;c<d.length;c++){e=d[c],e.parsed&&(e=e.el[0]);if(e===b.el[0]){n.index=c;break}}}else n.items=a.isArray(b.items)?b.items:[b.items],n.index=b.index||0;if(n.isOpen){n.updateItemHTML();return}n.types=[],u="",b.mainEl&&b.mainEl.length?n.ev=b.mainEl.eq(0):n.ev=s,b.key?(n.popupsCache[b.key]||(n.popupsCache[b.key]={}),n.currTemplate=n.popupsCache[b.key]):n.currTemplate={},n.st=a.extend(!0,{},a.magnificPopup.defaults,b),n.fixedContentPos=n.st.fixedContentPos==="auto"?!n.probablyMobile:n.st.fixedContentPos,n.st.modal&&(n.st.closeOnContentClick=!1,n.st.closeOnBgClick=!1,n.st.showCloseBtn=!1,n.st.enableEscapeKey=!1),n.bgOverlay||(n.bgOverlay=x("bg").on("click"+j,function(){n.close()}),n.wrap=x("wrap").attr("tabindex",-1).on("click"+j,function(a){n._checkIfClose(a.target)&&n.close()}),n.container=x("container",n.wrap)),n.contentContainer=x("content"),n.st.preloader&&(n.preloader=x("preloader",n.container,n.st.tLoading));var h=a.magnificPopup.modules;for(c=0;c<h.length;c++){var i=h[c];i=i.charAt(0).toUpperCase()+i.slice(1),n["init"+i].call(n)}y("BeforeOpen"),n.st.showCloseBtn&&(n.st.closeBtnInside?(w(f,function(a,b,c,d){c.close_replaceWith=z(d.type)}),u+=" mfp-close-btn-in"):n.wrap.append(z())),n.st.alignTop&&(u+=" mfp-align-top"),n.fixedContentPos?n.wrap.css({overflow:n.st.overflowY,overflowX:"hidden",overflowY:n.st.overflowY}):n.wrap.css({top:r.scrollTop(),position:"absolute"}),(n.st.fixedBgPos===!1||n.st.fixedBgPos==="auto"&&!n.fixedContentPos)&&n.bgOverlay.css({height:s.height(),position:"absolute"}),n.st.enableEscapeKey&&s.on("keyup"+j,function(a){a.keyCode===27&&n.close()}),r.on("resize"+j,function(){n.updateSize()}),n.st.closeOnContentClick||(u+=" mfp-auto-cursor"),u&&n.wrap.addClass(u);var l=n.wH=r.height(),m={};if(n.fixedContentPos&&n._hasScrollBar(l)){var o=n._getScrollbarSize();o&&(m.marginRight=o)}n.fixedContentPos&&(n.isIE7?a("body, html").css("overflow","hidden"):m.overflow="hidden");var p=n.st.mainClass;return n.isIE7&&(p+=" mfp-ie7"),p&&n._addClassToMFP(p),n.updateItemHTML(),y("BuildControls"),a("html").css(m),n.bgOverlay.add(n.wrap).prependTo(n.st.prependTo||a(document.body)),n._lastFocusedEl=document.activeElement,setTimeout(function(){n.content?(n._addClassToMFP(k),n._setFocus()):n.bgOverlay.addClass(k),s.on("focusin"+j,n._onFocusIn)},16),n.isOpen=!0,n.updateSize(l),y(g),b},close:function(){if(!n.isOpen)return;y(c),n.isOpen=!1,n.st.removalDelay&&!n.isLowIE&&n.supportsTransition?(n._addClassToMFP(l),setTimeout(function(){n._close()},n.st.removalDelay)):n._close()},_close:function(){y(b);var c=l+" "+k+" ";n.bgOverlay.detach(),n.wrap.detach(),n.container.empty(),n.st.mainClass&&(c+=n.st.mainClass+" "),n._removeClassFromMFP(c);if(n.fixedContentPos){var e={marginRight:""};n.isIE7?a("body, html").css("overflow",""):e.overflow="",a("html").css(e)}s.off("keyup"+j+" focusin"+j),n.ev.off(j),n.wrap.attr("class","mfp-wrap").removeAttr("style"),n.bgOverlay.attr("class","mfp-bg"),n.container.attr("class","mfp-container"),n.st.showCloseBtn&&(!n.st.closeBtnInside||n.currTemplate[n.currItem.type]===!0)&&n.currTemplate.closeBtn&&n.currTemplate.closeBtn.detach(),n.st.autoFocusLast&&n._lastFocusedEl&&a(n._lastFocusedEl).focus(),n.currItem=null,n.content=null,n.currTemplate=null,n.prevHeight=0,y(d)},updateSize:function(a){if(n.isIOS){var b=document.documentElement.clientWidth/window.innerWidth,c=window.innerHeight*b;n.wrap.css("height",c),n.wH=c}else n.wH=a||r.height();n.fixedContentPos||n.wrap.css("height",n.wH),y("Resize")},updateItemHTML:function(){var b=n.items[n.index];n.contentContainer.detach(),n.content&&n.content.detach(),b.parsed||(b=n.parseEl(n.index));var c=b.type;y("BeforeChange",[n.currItem?n.currItem.type:"",c]),n.currItem=b;if(!n.currTemplate[c]){var d=n.st[c]?n.st[c].markup:!1;y("FirstMarkupParse",d),d?n.currTemplate[c]=a(d):n.currTemplate[c]=!0}t&&t!==b.type&&n.container.removeClass("mfp-"+t+"-holder");var e=n["get"+c.charAt(0).toUpperCase()+c.slice(1)](b,n.currTemplate[c]);n.appendContent(e,c),b.preloaded=!0,y(h,b),t=b.type,n.container.prepend(n.contentContainer),y("AfterChange")},appendContent:function(a,b){n.content=a,a?n.st.showCloseBtn&&n.st.closeBtnInside&&n.currTemplate[b]===!0?n.content.find(".mfp-close").length||n.c
3084ontent.append(z()):n.content=a:n.content="",y(e),n.container.addClass("mfp-"+b+"-holder"),n.contentContainer.append(n.content)},parseEl:function(b){var c=n.items[b],d;c.tagName?c={el:a(c)}:(d=c.type,c={data:c,src:c.src});if(c.el){var e=n.types;for(var f=0;f<e.length;f++)if(c.el.hasClass("mfp-"+e[f])){d=e[f];break}c.src=c.el.attr("data-mfp-src"),c.src||(c.src=c.el.attr("href"))}return c.type=d||n.st.type||"inline",c.index=b,c.parsed=!0,n.items[b]=c,y("ElementParse",c),n.items[b]},addGroup:function(a,b){var c=function(c){c.mfpEl=this,n._openClick(c,a,b)};b||(b={});var d="click.magnificPopup";b.mainEl=a,b.items?(b.isObj=!0,a.off(d).on(d,c)):(b.isObj=!1,b.delegate?a.off(d).on(d,b.delegate,c):(b.items=a,a.off(d).on(d,c)))},_openClick:function(b,c,d){var e=d.midClick!==undefined?d.midClick:a.magnificPopup.defaults.midClick;if(!e&&(b.which===2||b.ctrlKey||b.metaKey||b.altKey||b.shiftKey))return;var f=d.disableOn!==undefined?d.disableOn:a.magnificPopup.defaults.disableOn;if(f)if(a.isFunction(f)){if(!f.call(n))return!0}else if(r.width()<f)return!0;b.type&&(b.preventDefault(),n.isOpen&&b.stopPropagation()),d.el=a(b.mfpEl),d.delegate&&(d.items=c.find(d.delegate)),n.open(d)},updateStatus:function(a,b){if(n.preloader){q!==a&&n.container.removeClass("mfp-s-"+q),!b&&a==="loading"&&(b=n.st.tLoading);var c={status:a,text:b};y("UpdateStatus",c),a=c.status,b=c.text,n.preloader.html(b),n.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),n.container.addClass("mfp-s-"+a),q=a}},_checkIfClose:function(b){if(a(b).hasClass(m))return;var c=n.st.closeOnContentClick,d=n.st.closeOnBgClick;if(c&&d)return!0;if(!n.content||a(b).hasClass("mfp-close")||n.preloader&&b===n.preloader[0])return!0;if(b!==n.content[0]&&!a.contains(n.content[0],b)){if(d&&a.contains(document,b))return!0}else if(c)return!0;return!1},_addClassToMFP:function(a){n.bgOverlay.addClass(a),n.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),n.wrap.removeClass(a)},_hasScrollBar:function(a){return(n.isIE7?s.height():document.body.scrollHeight)>(a||r.height())},_setFocus:function(){(n.st.focus?n.content.find(n.st.focus).eq(0):n.wrap).focus()},_onFocusIn:function(b){if(b.target!==n.wrap[0]&&!a.contains(n.wrap[0],b.target))return n._setFocus(),!1},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),y(f,[b,c,d]),a.each(c,function(c,d){if(d===undefined||d===!1)return!0;e=c.split("_");if(e.length>1){var f=b.find(j+"-"+e[0]);if(f.length>0){var g=e[1];g==="replaceWith"?f[0]!==d[0]&&f.replaceWith(d):g==="img"?f.is("img")?f.attr("src",d):f.replaceWith(a("<img>").attr("src",d).attr("class",f.attr("class"))):f.attr(e[1],d)}}else b.find(j+"-"+c).html(d)})},_getScrollbarSize:function(){if(n.scrollbarSize===undefined){var a=document.createElement("div");a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),n.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return n.scrollbarSize}},a.magnificPopup={instance:null,proto:o.prototype,modules:[],open:function(b,c){return A(),b?b=a.extend(!0,{},b):b={},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,prependTo:null,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">×</button>',tClose:"Close (Esc)",tLoading:"Loading...",autoFocusLast:!0}},a.fn.magnificPopup=function(b){A();var c=a(this);if(typeof b=="string")if(b==="open"){var d,e=p?c.data("magnificPopup"):c[0].magnificPopup,f=parseInt(arguments[1],10)||0;e.items?d=e.items[f]:(d=c,e.delegate&&(d=d.find(e.delegate)),d=d.eq(f)),n._openClick({mfpEl:d},c,e)}else n.isOpen&&n[b].apply(n,Array.prototype.slice.call(arguments,1
3084));else b=a.extend(!0,{},b),p?c.data("magnificPopup",b):c[0].magnificPopup=b,n.addGroup(c,b);return c};var C="inline",D,E,F,G=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(C,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){n.types.push(C),w(b+"."+C,function(){G()})},getInline:function(b,c){G();if(b.src){var d=n.st.inline,e=a(b.src);if(e.length){var f=e[0].parentNode;f&&f.tagName&&(E||(D=d.hiddenClass,E=x(D),D="mfp-"+D),F=e.after(E).detach().removeClass(D)),n.updateStatus("ready")}else n.updateStatus("error",d.tNotFound),e=a("<div>");return b.inlineElement=e,e}return n.updateStatus("ready"),n._parseMarkup(c,{},b),c}}});var H="ajax",I,J=function(){I&&a(document.body).removeClass(I)},K=function(){J(),n.req&&n.req.abort()};a.magnificPopup.registerModule(H,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){n.types.push(H),I=n.st.ajax.cursor,w(b+"."+H,K),w("BeforeChange."+H,K)},getAjax:function(b){I&&a(document.body).addClass(I),n.updateStatus("loading");var c=a.extend({url:b.src,success:function(c,d,e){var f={data:c,xhr:e};y("ParseAjax",f),n.appendContent(a(f.data),H),b.finished=!0,J(),n._setFocus(),setTimeout(function(){n.wrap.addClass(k)},16),n.updateStatus("ready"),y("AjaxContentAdded")},error:function(){J(),b.finished=b.loadError=!0,n.updateStatus("error",n.st.ajax.tError.replace("%url%",b.src))}},n.st.ajax.settings);return n.req=a.ajax(c),""}}});var L,M=function(b){if(b.data&&b.data.title!==undefined)return b.data.title;var c=n.st.image.titleSrc;if(c){if(a.isFunction(c))return c.call(n,b);if(b.el)return b.el.attr(c)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var c=n.st.image,d=".image";n.types.push("image"),w(g+d,function(){n.currItem.type==="image"&&c.cursor&&a(document.body).addClass(c.cursor)}),w(b+d,function(){c.cursor&&a(document.body).removeClass(c.cursor),r.off("resize"+j)}),w("Resize"+d,n.resizeImage),n.isLowIE&&w("AfterChange",n.resizeImage)},resizeImage:function(){var a=n.currItem;if(!a||!a.img)return;if(n.st.image.verticalFit){var b=0;n.isLowIE&&(b=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",n.wH-b)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,L&&clearInterval(L),a.isCheckingImgSize=!1,y("ImageHasSize",a),a.imgHidden&&(n.content&&n.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var b=0,c=a.img[0],d=function(e){L&&clearInterval(L),L=setInterval(function(){if(c.naturalWidth>0){n._onImageHasSize(a);return}b>200&&clearInterval(L),b++,b===3?d(10):b===40?d(50):b===100&&d(500)},e)};d(1)},getImage:function(b,c){var d=0,e=function(){b&&(b.img[0].complete?(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("ready")),b.hasSize=!0,b.loaded=!0,y("ImageLoadComplete")):(d++,d<200?setTimeout(e,100):f()))},f=function(){b&&(b.img.off(".mfploader"),b===n.currItem&&(n._onImageHasSize(b),n.updateStatus("error",g.tError.replace("%url%",b.src))),b.hasSize=!0,b.loaded=!0,b.loadError=!0)},g=n.st.image,h=c.find(".mfp-img");if(h.length){var i=document.createElement("img");i.className="mfp-img",b.el&&b.el.find("img").length&&(i.alt=b.el.find("img").attr("alt")),b.img=a(i).on("load.mfploader",e).on("error.mfploader",f),i.src=b.src,h.is("img")&&(b.img=b.img.clone()),i=b.img[0],i.naturalWidth>0?b.hasSize=!0:i.width||(b.hasSize=!1)}return n._parseMarkup(c,{title:M(b),img_replaceWith:b.img},b),n.resizeImage(),b.hasSize?(L&&clearInterval(L),b.loadError?(c.addClass("mfp-loading"),n.updateStatus("error",g.tError.replace("%url%",b.src))):(c.removeClass("mfp-loading"),n.updateStatus("ready")),c):(n.updateStatus("loading"),b.loading=!0,b.hasSize||(b.imgHidden=!0,c.addClass("mfp-loading"),n.findImageSize(b)),c)}}});
3084var N,O=function(){return N===undefined&&(N=document.createElement("p").style.MozTransform!==undefined),N};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a=n.st.zoom,d=".zoom",e;if(!a.enabled||!n.supportsTransition)return;var f=a.duration,g=function(b){var c=b.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+a.duration/1e3+"s "+a.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,c.css(e),c},h=function(){n.content.css("visibility","visible")},i,j;w("BuildControls"+d,function(){if(n._allowZoom()){clearTimeout(i),n.content.css("visibility","hidden"),e=n._getItemToZoom();if(!e){h();return}j=g(e),j.css(n._getOffset()),n.wrap.append(j),i=setTimeout(function(){j.css(n._getOffset(!0)),i=setTimeout(function(){h(),setTimeout(function(){j.remove(),e=j=null,y("ZoomAnimationEnded")},16)},f)},16)}}),w(c+d,function(){if(n._allowZoom()){clearTimeout(i),n.st.removalDelay=f;if(!e){e=n._getItemToZoom();if(!e)return;j=g(e)}j.css(n._getOffset(!0)),n.wrap.append(j),n.content.css("visibility","hidden"),setTimeout(function(){j.css(n._getOffset())},16)}}),w(b+d,function(){n._allowZoom()&&(h(),j&&j.remove(),e=null)})},_allowZoom:function(){return n.currItem.type==="image"},_getItemToZoom:function(){return n.currItem.hasSize?n.currItem.img:!1},_getOffset:function(b){var c;b?c=n.currItem.img:c=n.st.zoom.opener(n.currItem.el||n.currItem);var d=c.offset(),e=parseInt(c.css("padding-top"),10),f=parseInt(c.css("padding-bottom"),10);d.top-=a(window).scrollTop()-e;var g={width:c.width(),height:(p?c.innerHeight():c[0].offsetHeight)-f-e};return O()?g["-moz-transform"]=g.transform="translate("+d.left+"px,"+d.top+"px)":(g.left=d.left,g.top=d.top),g}}});var P="retina";a.magnificPopup.registerModule(P,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=n.st.retina,b=a.ratio;b=isNaN(b)?b():b,b>1&&(w("ImageHasSize."+P,function(a,c){c.img.css({"max-width":c.img[0].naturalWidth/b,width:"100%"})}),w("ElementParse."+P,function(c,d){d.src=a.replaceSrc(d,b)}))}}}}),A()}); 3085// source --> https://seventrieste.com/wp-content/plugins/popup-addon-for-ninja-forms/js/nf-popups.js?ver=5.2.4 3086var NF_Popup_Cookies = { 3087 set_popup_cookie: function ( cookie_settings ) { 3088 if ( cookie_settings != '' ) { 3089 var popup_id = cookie_settings.popup_id; 3090 var closed_times = cookie_settings.times; 3091 var expiry_length = cookie_settings.expiry_length; 3092 var expiry_type = cookie_settings.expiry_type; 3093 var expiry_days = this.get_cookie_expiry_days( expiry_length, expiry_type ); 3094 //set how many times popup is closed by user 3095 var current_closed_times = this.get_cookie( 'nf_popups_close_counter_' + popup_id ); 3096 if ( current_closed_times != '' ) { 3097 current_closed_times++; 3098 } else { 3099 current_closed_times = 1; 3100 } 3101 // console.log(current_closed_times); 3102 //update current times popup closed 3103 this.set_cookie( 'nf_popups_close_counter_' + popup_id, current_closed_times, expiry_days ); 3104 var counter_start_date = this.get_cookie( 'nf_popups_counter_start_date_' + popup_id ); 3105 if ( counter_start_date == '' ) { 3106 //set the expiry first time 3107 this.set_cookie( 'nf_popups_counter_start_date_' + popup_id, this.get_current_date(), expiry_days ); 3108 } 3109 3110 //set main cookie 3111 // var hide_popup_cookie = this.get_cookie( 'nf_popups_hide_' + popup_id ); 3112 // //only set cookie if it doesn't exists 3113 // if( hide_popup_cookie ==' '){ 3114 // this.set_cookie( 'nf_popups_hide_' + popup_id, 1, expiry_days ); 3115 // this.set_cookie( 'nf_popups_hide_' + popup_id+'_created', 1, expiry_days ); 3116 // } 3117 } 3118 // 3119 }, 3120 get_cookie_expiry_days: function ( expiry_length, expiry_type ) { 3121 if ( expiry_length == '' ) { 3122 return 1; 3123 } 3124 switch ( expiry_type ) { 3125 case 'D': 3126 return expiry_length; 3127 break; 3128 case 'W': 3129 return expiry_length * 7; 3130 break; 3131 case 'M': 3132 return expiry_length * 30; 3133 break; 3134 case 'Y': 3135 return expiry_length * 365; 3136 break; 3137 } 3138 3139 },
3140 set_cookie: function ( cname, cvalue, exdays ) { 3141 var d = new Date(); 3142 d.setTime( d.getTime() + ( exdays * 24 * 60 * 60 * 1000 ) ); 3143 var expires = "expires=" + d.toUTCString(); 3144 document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/"; 3145 }, 3146 get_cookie: function ( cname ) { 3147 var name = cname + "="; 3148 var ca = document.cookie.split( ';' ); 3149 for ( var i = 0; i < ca.length; i++ ) { 3150 var c = ca[ i ]; 3151 while ( c.charAt( 0 ) == ' ' ) { 3152 c = c.substring( 1 ); 3153 } 3154 if ( c.indexOf( name ) == 0 ) { 3155 return c.substring( name.length, c.length ); 3156 } 3157 } 3158 return ""; 3159 }, 3160 get_current_date: function () { 3161 var today = new Date(); 3162 var dd = today.getDate(); 3163 var mm = today.getMonth() + 1; //January is 0! 3164 3165 var yyyy = today.getFullYear(); 3166 if ( dd < 10 ) { 3167 dd = '0' + dd; 3168 } 3169 if ( mm < 10 ) { 3170 mm = '0' + mm; 3171 } 3172 var today = dd + '/' + mm + '/' + yyyy; 3173 return today; 3174 }, 3175 check_popup_cookie_validity: function ( cookie_settings ) { 3176 var popup_id = cookie_settings.popup_id; 3177 var expiry_length = cookie_settings.expiry_length; 3178 var expiry_type = cookie_settings.expiry_type; 3179 var expiry_days = this.get_cookie_expiry_days( expiry_length, expiry_type ); 3180 3181 var counter_start_date = this.get_cookie( 'nf_popups_counter_start_date_' + popup_id ); 3182 var current_date = this.get_current_date(); 3183 var diff = this.date_diff_indays( counter_start_date, current_date ); 3184 // console.log( diff ); 3185 // console.log( expiry_days ); 3186 // console.log( current_date ); 3187 3188 if ( diff > expiry_days ) { 3189 // reset close counter after n days 3190 this.set_cookie( 'nf_popups_close_counter_' + popup_id, 1, 500 ); 3191 // reset the popup shown date 3192 this.set_cookie( 'nf_popups_counter_start_date_' + popup_id, '', 500 ); 3193 } 3194 }, 3195 date_diff_indays: function ( date1, date2 ) { 3196 dt1 = new Date( date1 ); 3197 dt2 = new Date( date2 ); 3198 return Math.floor( ( Date.UTC( dt2.getFullYear(), dt2.getMonth(), dt2.getDate() ) - Date.UTC( dt1.getFullYear(), dt1.getMonth(), dt1.getDate() ) ) / ( 1000 * 60 * 60 * 24 ) ); 3199 } 3200}; 3201// source --> https://seventrieste.com/wp-content/themes/salient/js/modernizr.js?ver=2.6.2 3202/*! modernizr 3.3.1 (Custom Build) | MIT * 3203 * https://modernizr.com/download/?-applicationcache-audio-backgroundsize-borderimage-borderradius-boxshadow-canvas-canvastext-cssanimations-csscolumns-cssgradients-csspositionsticky-cssreflections-csstransforms-csstransforms3d-csstransitions-flexbox-flexboxlegacy-fontface-generatedcontent-geolocation-hashchange-history-hsla-indexeddb-inlinesvg-input-inputtypes-localstorage-multiplebgs-opacity-postmessage-rgba-sessionstorage-smil-svg-svgclippaths-textshadow-video-webgl-websockets-websqldatabase-webworkers-domprefixes-hasevent-prefixed-prefixes-setclasses-shiv-testallprops-testprop-teststyles !*/ 3204!function(e,t,n){function r(e,t){return typeof e===t}function a(){var e,t,n,a,o,i,s;for(var c in b)if(b.hasOwnProperty(c)){if(e=[],t=b[c],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(a=r(t.fn,"function")?t.fn():t.fn,o=0;o<e.length;o++)i=e[o],s=i.split("."),1===s.length?Modernizr[s[0]]=a:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=a),y.push((a?"":"no-")+s.join("-"))}}function o(e){var t=C.className,n=Modernizr._config.classPrefix||"";if(E&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),E?C.className.baseVal=t:C.className=t)}function i(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):E?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function s(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function c(e,t){return!!~(""+e).indexOf(t)}function d(){var e=t.body;return e||(e=i(E?"svg":"body"),e.fake=!0),e}function l(e,n,r,a){var o,s,c,l,u="modernizr",f=i("div"),p=d();if(parseInt(r,10))for(;r--;)c=i("div"),c.id=a?a[r]:u+(r+1),f.appendChild(c);return o=i("style"),o.type="text/css",o.id="s"+u,(p.fake?p:f).appendChild(o),p.appendChild(f),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(t.createTextNode(e)),f.id=u,p.fake&&(p.style.background="",p.style.overflow="hidden",l=C.style.overflow,C.style.overflow="hidden",C.appendChild(p)),s=n(f,e),p.fake?(p.parentNode.removeChild(p),C.style.overflow=l,C.offsetHeight):f.parentNode.removeChild(f),!!s}function u(e,t){return function(){return e.apply(t,arguments)}}function f(e,t,n){var a;for(var o in e)if(e[o]in t)return n===!1?e[o]:(a=t[e[o]],r(a,"function")?u(a,n||t):a);return!1}function p(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function m(t,r){var a=t.length;if("CSS"in e&&"supports"in e.CSS){for(;a--;)if(e.CSS.supports(p(t[a]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var o=[];a--;)o.push("("+p(t[a])+":"+r+")");return o=o.join(" or "),l("@supports ("+o+") { #modernizr { position: absolute; } }",function(e){return"absolute"==getComputedStyle(e,null).position})}return n}function g(e,t,a,o){function d(){u&&(delete W.style,delete W.modElem)}if(o=r(o,"undefined")?!1:o,!r(a,"undefined")){var l=m(e,a);if(!r(l,"undefined"))return l}for(var u,f,p,g,h,v=["modernizr","tspan","samp"];!W.style&&v.length;)u=!0,W.modElem=i(v.shift()),W.style=W.modElem.style;for(p=e.length,f=0;p>f;f++)if(g=e[f],h=W.style[g],c(g,"-")&&(g=s(g)),W.style[g]!==n){if(o||r(a,"undefined"))return d(),"pfx"==t?g:!0;try{W.style[g]=a}catch(y){}if(W.style[g]!=h)return d(),"pfx"==t?g:!0}return d(),!1}function h(e,t,n,a,o){var i=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+B.join(i+" ")+i).split(" ");return r(t,"string")||r(t,"undefined")?g(s,t,a,o):(s=(e+" "+P.join(i+" ")+i).split(" "),f(s,t,n))}function v(e,t,r){return h(e,n,n,t,r)}var y=[],b=[],x={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){b.push({name:e,fn:t,options:n})},addAsyncTest:function(e){b.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=x,Modernizr=new Modernizr,Modernizr.addTest("applicationcache","applicationCache"in e),Modernizr.addTest("geolocation","geolocation"in navigator),Modernizr.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")?e.history&&"pushState"in e.history:!1}),Modernizr.addTest("postmessage","postMessage"in e),Modernizr.addTest("svg",!!t.createElementNS&&!!t.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var T=!1;try{T="WebSocket"in e&&2===e.WebSocket.CLOSING}catch(w){}Modernizr.addTest("websockets",T),Modernizr.addTest("localstorage",function(){var e="modernizr";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("sessionstorage",function(){var e="modernizr";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch(t){return!1}}),Modernizr.addTest("websqldatabase","openDatabase"in e),Modernizr.addTest("webworkers","Worker"
3204in e);var S=x._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];x._prefixes=S;var C=t.documentElement,E="svg"===C.nodeName.toLowerCase();E||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=b.elements;return"string"==typeof e?e.split(" "):e}function a(e,t){var n=b.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),b.elements=n+" "+e,d(t)}function o(e){var t=y[e[h]];return t||(t={},v++,e[h]=v,y[v]=t),t}function i(e,n,r){if(n||(n=t),u)return n.createElement(e);r||(r=o(n));var a;return a=r.cache[e]?r.cache[e].cloneNode():g.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!a.canHaveChildren||m.test(e)||a.tagUrn?a:r.frag.appendChild(a)}function s(e,n){if(e||(e=t),u)return e.createDocumentFragment();n=n||o(e);for(var a=n.frag.cloneNode(),i=0,s=r(),c=s.length;c>i;i++)a.createElement(s[i]);return a}function c(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return b.shivMethods?i(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(b,t.frag)}function d(e){e||(e=t);var r=o(e);return!b.shivCSS||l||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||c(e,r),e}var l,u,f="3.7.3",p=e.html5||{},m=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,g=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,h="_html5shiv",v=0,y={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",l="hidden"in e,u=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){l=!0,u=!0}}();var b={elements:p.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:f,shivCSS:p.shivCSS!==!1,supportsUnknownElements:u,shivMethods:p.shivMethods!==!1,type:"default",shivDocument:d,createElement:i,createDocumentFragment:s,addElements:a};e.html5=b,d(t),"object"==typeof module&&module.exports&&(module.exports=b)}("undefined"!=typeof e?e:this,t);var k="Moz O ms Webkit",P=x._config.usePrefixes?k.toLowerCase().split(" "):[];x._domPrefixes=P;var _=function(){function e(e,t){var a;return e?(t&&"string"!=typeof t||(t=i(t||"div")),e="on"+e,a=e in t,!a&&r&&(t.setAttribute||(t=i("div")),t.setAttribute(e,""),a="function"==typeof t[e],t[e]!==n&&(t[e]=n),t.removeAttribute(e)),a):!1}var r=!("onblur"in t.documentElement);return e}();x.hasEvent=_,Modernizr.addTest("hashchange",function(){return _("hashchange",e)===!1?!1:t.documentMode===n||t.documentMode>7}),Modernizr.addTest("audio",function(){var e=i("audio"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),t.mp3=e.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),t.opus=e.canPlayType('audio/ogg; codecs="opus"')||e.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),t.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),t.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(n){}return t}),Modernizr.addTest("canvas",function(){var e=i("canvas");return!(!e.getContext||!e.getContext("2d"))}),Modernizr.addTest("canvastext",function(){return Modernizr.canvas===!1?!1:"function"==typeof i("canvas").getContext("2d").fillText}),Modernizr.addTest("video",function(){var e=i("video"),t=!1;try{(t=!!e.canPlayType)&&(t=new Boolean(t),t.ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),t.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),t.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),t.vp9=e.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),t.hls=e.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(n){}return t}),Modernizr.addTest("webgl",function(){var t=i("canvas"),n="probablySupportsContext"in t?"probablySupportsContext":"supportsContext";return n in t?t[n]("webgl")||t[n]("experimental-webgl"):"WebGLRenderingContext"in e}),Modernizr.addTest("cssgradients",function(){for(var e,t="background-image:",n="gradient(linear,left top,right bottom,from(#9f9),to(white));",r="",a=0,o=S.length-1;o>a;a++)e=0===a?"to ":"",r+=t+S[a]+"linear-gradient("+e+"left top, #9f9, white);";Modernizr._config.usePrefixes&&(r+=t+"-webkit-"+n);
3204var s=i("a"),c=s.style;return c.cssText=r,(""+c.backgroundImage).indexOf("gradient")>-1}),Modernizr.addTest("multiplebgs",function(){var e=i("a").style;return e.cssText="background:url(https://),url(https://),red url(https://)",/(url\s*\(.*?){3}/.test(e.background)}),Modernizr.addTest("opacity",function(){var e=i("a").style;return e.cssText=S.join("opacity:.55;"),/^0.55$/.test(e.opacity)}),Modernizr.addTest("rgba",function(){var e=i("a").style;return e.cssText="background-color:rgba(150,255,150,.5)",(""+e.backgroundColor).indexOf("rgba")>-1}),Modernizr.addTest("inlinesvg",function(){var e=i("div");return e.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&e.firstChild&&e.firstChild.namespaceURI)}),Modernizr.addTest("csspositionsticky",function(){var e="position:",t="sticky",n=i("a"),r=n.style;return r.cssText=e+S.join(t+";"+e).slice(0,-e.length),-1!==r.position.indexOf(t)});var N=i("input"),R="autocomplete autofocus list placeholder max min multiple pattern required step".split(" "),z={};Modernizr.input=function(t){for(var n=0,r=t.length;r>n;n++)z[t[n]]=!!(t[n]in N);return z.list&&(z.list=!(!i("datalist")||!e.HTMLDataListElement)),z}(R);var $="search tel url email datetime date month week time datetime-local number range color".split(" "),A={};Modernizr.inputtypes=function(e){for(var r,a,o,i=e.length,s="1)",c=0;i>c;c++)N.setAttribute("type",r=e[c]),o="text"!==N.type&&"style"in N,o&&(N.value=s,N.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(r)&&N.style.WebkitAppearance!==n?(C.appendChild(N),a=t.defaultView,o=a.getComputedStyle&&"textfield"!==a.getComputedStyle(N,null).WebkitAppearance&&0!==N.offsetHeight,C.removeChild(N)):/^(search|tel)$/.test(r)||(o=/^(url|email)$/.test(r)?N.checkValidity&&N.checkValidity()===!1:N.value!=s)),A[e[c]]=!!o;return A}($),Modernizr.addTest("hsla",function(){var e=i("a").style;return e.cssText="background-color:hsla(120,40%,100%,.5)",c(e.backgroundColor,"rgba")||c(e.backgroundColor,"hsla")});var O="CSS"in e&&"supports"in e.CSS,L="supportsCSS"in e;Modernizr.addTest("supports",O||L);var j={}.toString;Modernizr.addTest("svgclippaths",function(){return!!t.createElementNS&&/SVGClipPath/.test(j.call(t.createElementNS("http://www.w3.org/2000/svg","clipPath")))}),Modernizr.addTest("smil",function(){return!!t.createElementNS&&/SVGAnimate/.test(j.call(t.createElementNS("http://www.w3.org/2000/svg","animate")))});var B=x._config.usePrefixes?k.split(" "):[];x._cssomPrefixes=B;var F=function(t){var r,a=S.length,o=e.CSSRule;if("undefined"==typeof o)return n;if(!t)return!1;if(t=t.replace(/^@/,""),r=t.replace(/-/g,"_").toUpperCase()+"_RULE",r in o)return"@"+t;for(var i=0;a>i;i++){var s=S[i],c=s.toUpperCase()+"_"+r;if(c in o)return"@-"+s.toLowerCase()+"-"+t}return!1};x.atRule=F;var M=x.testStyles=l,D=function(){var e=navigator.userAgent,t=e.match(/applewebkit\/([0-9]+)/gi)&&parseFloat(RegExp.$1),n=e.match(/w(eb)?osbrowser/gi),r=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9,a=533>t&&e.match(/android/gi);return n||a||r}();D?Modernizr.addTest("fontface",!1):M('@font-face {font-family:"font";src:url("https://")}',function(e,n){var r=t.getElementById("smodernizr"),a=r.sheet||r.styleSheet,o=a?a.cssRules&&a.cssRules[0]?a.cssRules[0].cssText:a.cssText||"":"",i=/src/i.test(o)&&0===o.indexOf(n.split(" ")[0]);Modernizr.addTest("fontface",i)}),M('#modernizr{font:0/0 a}#modernizr:after{content:":)";visibility:hidden;font:7px/1 a}',function(e){Modernizr.addTest("generatedcontent",e.offsetHeight>=7)});var I={elem:i("modernizr")};Modernizr._q.push(function(){delete I.elem});var W={style:I.elem.style};Modernizr._q.unshift(function(){delete W.style});var V=x.testProp=function(e,t,r){return g([e],n,t,r)};Modernizr.addTest("textshadow",V("textShadow","1px 1px")),x.testAllProps=h;var H,U=x.prefixed=function(e,t,n){return 0===e.indexOf("@")?F(e):(-1!=e.indexOf("-")&&(e=s(e)),t?h(e,t,n):h(e,"pfx"))};try{H=U("indexedDB",e)}catch(w){}Modernizr.addTest("indexeddb",!!H),H&&Modernizr.addTest("indexeddb.deletedatabase","deleteDatabase"in H),x.testAllProps=v,Modernizr.addTest("cssanimations",v("animationName","a",!0)),Modernizr.addTest("backgroundsize",v("backgroundSize","100%",!0)),Modernizr.addTest("borderimage",v("borderImage","url() 1",!0)),Modernizr.addTest("borderradiu
3204s",v("borderRadius","0px",!0)),Modernizr.addTest("boxshadow",v("boxShadow","1px 1px",!0)),function(){Modernizr.addTest("csscolumns",function(){var e=!1,t=v("columnCount");try{(e=!!t)&&(e=new Boolean(e))}catch(n){}return e});for(var e,t,n=["Width","Span","Fill","Gap","Rule","RuleColor","RuleStyle","RuleWidth","BreakBefore","BreakAfter","BreakInside"],r=0;r<n.length;r++)e=n[r].toLowerCase(),t=v("column"+n[r]),("breakbefore"===e||"breakafter"===e||"breakinside"==e)&&(t=t||v(n[r])),Modernizr.addTest("csscolumns."+e,t)}(),Modernizr.addTest("flexbox",v("flexBasis","1px",!0)),Modernizr.addTest("flexboxlegacy",v("boxDirection","reverse",!0)),Modernizr.addTest("cssreflections",v("boxReflect","above",!0)),Modernizr.addTest("csstransforms",function(){return-1===navigator.userAgent.indexOf("Android 2.")&&v("transform","scale(1)",!0)}),Modernizr.addTest("csstransforms3d",function(){var e=!!v("perspective","1px",!0),t=Modernizr._config.usePrefixes;if(e&&(!t||"webkitPerspective"in C.style)){var n,r="#modernizr{width:0;height:0}";Modernizr.supports?n="@supports (perspective: 1px)":(n="@media (transform-3d)",t&&(n+=",(-webkit-transform-3d)")),n+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}",M(r+n,function(t){e=7===t.offsetWidth&&18===t.offsetHeight})}return e}),Modernizr.addTest("csstransitions",v("transition","all",!0)),a(),o(y),delete x.addTest,delete x.addAsyncTest;for(var q=0;q<Modernizr._q.length;q++)Modernizr._q[q]();e.Modernizr=Modernizr}(window,document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.