PageSourceSearch

https://www.ziegler-erden.de/wp-content/themes/zieglererden/js/zieglererden.js?v=231109_v1

js ziegler-erden.de collected 2026-09-26 17:42:30 UTC 299,794 bytes, 4,466 lines download raw bytes

vendor: 4,263 bytes, lines 1-2
1/*! jQuery v3.1.0 | (c) jQuery Foundation | jquery.org/license */
2!function(a,b){"use strict";"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){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.1.0",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null!=a?a<0?this[a+this.length]:this[a]:f.call(this)},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.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:h,sort:c.sort,splice:c.splice},r.extend=r.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||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=r.isArray(d)))?(e?(e=!1,f=c&&r.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;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),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=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: 26,191 bytes, line 2
2w Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+K+"*(even|odd|(([+-]|)(\\d*)n|)"+K+"*(?:([+-]|)"+K+"*(\\d+)|))"+K+"*\\)|)","i"),bool:new RegExp("^(?:"+J+")$","i"),needsContext:new RegExp("^"+K+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+K+"*((?:-\\d)?\\d*)"+K+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Y=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,_=new RegExp("\\\\([\\da-f]{1,6}"+K+"?|("+K+")|.)","ig"),aa=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)},ba=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,ca=function(a,b){return b?"\0"===a?"\ufffd":a.slice(0,-1)+"\\"+a.charCodeAt(a.length-1).toString(16)+" ":"\\"+a},da=function(){m()},ea=ta(function(a){return a.disabled===!0},{dir:"parentNode",next:"legend"});try{G.apply(D=H.call(v.childNodes),v.childNodes),D[v.childNodes.length].nodeType}catch(fa){G={apply:D.length?function(a,b){F.apply(a,H.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s=b&&b.ownerDocument,w=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==w&&9!==w&&11!==w)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==w&&(l=Z.exec(a)))if(f=l[1]){if(9===w){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(s&&(j=s.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(l[2])return G.apply(d,b.getElementsByTagName(a)),d;if((f=l[3])&&c.getElementsByClassName&&b.getElementsByClassName)return G.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==w)s=b,r=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(ba,ca):b.setAttribute("id",k=u),o=g(a),h=o.length;while(h--)o[h]="#"+k+" "+sa(o[h]);r=o.join(","),s=$.test(a)&&qa(b.parentNode)||b}if(r)try{return G.apply(d,s.querySelectorAll(r)),d}catch(x){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(P,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("fieldset");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&a.sourceIndex-b.sourceIndex;if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return function(b){return"label"in b&&b.disabled===a||"form"in b&&b.disabled===a||"form"in b&&b.disabled===!1&&(b.isDisabled===a||b.isDisabled!==!a&&("label"in b||!ea(b))!==a)}}function pa(a){return ia(function(b){return b=+b,ia(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 qa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return!!b&&"HTML"!==b.nodeName},m=ga.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),v!==n&&(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Y.test(n.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!n.getElementsByName||!n.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c?[c]:[]}},d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(_,aa);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof 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("undefined"!=typeof b.getElementsByClassName&&p)return b.getElementsByClassName(a)},r=[],q=[],(c.qsa=Y.test(n.querySelectorAll))&&(ja(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("[*^$]="+K+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+K+"*(?:value|"+J+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){a.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+K+"*[*^$|!~]?="),2!==a.querySelectorAll(":enabled").length&&q.push(":enabled",":disabled"),o.appendChild(a).disabled=!0,2!==a.querySelectorAll(":disabled").length&&q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Y.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"*"),s.call(a,"[s!='']:x"),r.push("!=",N)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Y.test(o.compareDocumentPosition),t=b||Y.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:(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?I(k,a)-I(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?I(k,a)-I(k,b):0;if(e===f)return la(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?la(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(S,"='$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(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&C.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},ga.escape=function(a){return(a+"").replace(ba,ca)},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.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=ga.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=ga.selectors={cacheLength:50,createPseudo:ia,match:V,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(_,aa),a[3]=(a[3]||a[4]||a[5]||"").replace(_,aa),"~="===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]||ga.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]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return V.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&T.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(_,aa).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("(^|"+K+")"+a+"("+K+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.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(O," ")+" ").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),t===!1)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,t===d||t%d===0&&t/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=I(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(P,"$1"));return d[u]?ia(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:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(_,aa),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return U.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(_,aa).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===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:oa(!1),disabled:oa(!0),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,a.selected===!0},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 X.test(a.nodeName)},input:function(a){return W.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:pa(function(){return[0]}),last:pa(function(a,b){return[b-1]}),eq:pa(function(a,b,c){return[c<0?c+b:c]}),even:pa(function(a,b){for(var c=0;c<b;c+=2)a.push(c);return a}),odd:pa(function(a,b){for(var c=1;c<b;c+=2)a.push(c);return a}),lt:pa(function(a,b,c){for(var d=c<0?c+b:c;--d>=0;)a.push(d);return a}),gt:pa(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]=ma(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=na(b);function ra(){}ra.prototype=d.filters=d.pseudos,d.setFilters=new ra,g=ga.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=Q.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=R.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(P," ")}),h=h.slice(c.length));for(g in d.filter)!(e=V[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?ga.error(a):z(a,i).slice(0)};function sa(a){for(var b=0,c=a.length,d="";b<c;b++)d+=a[b].value;return d}function ta(a,b,c){var d=b.dir,e=b.next,f=e||d,g=c&&"parentNode"===f,h=x++;return b.first?function(b,c,e){while(b=b[d])if(1===b.nodeType||g)return a(b,c,e)}:function(b,c,i){var j,k,l,m=[w,h];if(i){while(b=b[d])if((1===b.nodeType||g)&&a(b,c,i))return!0}else while(b=b[d])if(1===b.nodeType||g)if(l=b[u]||(b[u]={}),k=l[b.uniqueID]||(l[b.uniqueID]={}),e&&e===b.nodeName.toLowerCase())b=b[d]||b;else{if((j=k[f])&&j[0]===w&&j[1]===h)return m[2]=j[2];if(k[f]=m,m[2]=a(b,c,i))return!0}}}function ua(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 va(a,b,c){for(var d=0,e=b.length;d<e;d++)ga(a,b[d],c);return c}function wa(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 xa(a,b,c,d,e,f){return d&&!d[u]&&(d=xa(d)),e&&!e[u]&&(e=xa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||va(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:wa(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=wa(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?I(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=wa(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):G.apply(g,r)})}function ya(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ta(function(a){return a===b},h,!0),l=ta(function(a){return I(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=[ta(ua(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 xa(i>1&&ua(m),i>1&&sa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(P,"$1"),c,i<e&&ya(a.slice(i,e)),e<f&&ya(a=a.slice(e)),e<f&&sa(a))}m.push(c)}return ua(m)}function za(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]=E.call(i));u=wa(u)}G.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&ga.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=ya(b[c]),f[u]?d.push(f):e.push(f);f=A(a,za(e,d)),f.selector=a}return f},i=ga.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(_,aa),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=V.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(_,aa),$.test(j[0].type)&&qa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&sa(j),!a)return G.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||$.test(a)&&qa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("fieldset"))}),ja(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){if(!c)return a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){if(!c&&"input"===a.nodeName.toLowerCase())return a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(J,function(a,b,c){var d;if(!c)return a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);r.find=x,r.expr=x.selectors,r.expr[":"]=r.expr.pseudos,r.uniqueSort=r.unique=x.uniqueSort,r.text=x.getText,r.isXMLDoc=x.isXML,r.contains=x.contains,r.escapeSelector=x.escape;var y=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&r(a).is(c))break;d.push(a)}return d},z=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},A=r.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,C=/^.[^:#\[\.,]*$/;function D(a,b,c){if(r.isFunction(b))return r.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return r.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(C.test(b))return r.filter(b,a,c);b=r.filter(b,a)}return r.grep(a,function(a){return i.call(b,a)>-1!==c&&1===a.nodeType})}r.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?r.find.matchesSelector(d,a)?[d]:[]:r.find.matches(a,r.grep(b,function(a){return 1===a.nodeType}))},r.fn.extend({find:function(a){var b,c,d=this.length,e=this;if("string"!=typeof a)return this.pushStack(r(a).filter(function(){for(b=0;b<d;b++)if(r.contains(e[b],this))return!0}));for(c=this.pushStack([]),b=0;b<d;b++)r.find(a,e[b],c);return d>1?r.uniqueSort(c):c},filter:function(a){return this.pushStack(D(this,a||[],!1))},not:function(a){return this.pushStack(D(this,a||[],!0))},is:function(a){return!!D(this,"string"==typeof a&&A.test(a)?r(a):a||[],!1).length}});var E,F=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,G=r.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||E,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:F.exec(a),!e||!e[1]&&b)return!b||b.jquery?(b||c).find(a):this.constructor(b).find(a);if(e[1]){if(b=b instanceof r?b[0]:b,r.merge(this,r.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),B.test(e[1])&&r.isPlainObject(b))for(e in b)r.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&(this[0]=f,this.length=1),this}return a.nodeType?(this[0]=a,this.length=1,this):r.isFunction(a)?void 0!==c.ready?c.ready(a):a(r):r.makeArray(a,this)};G.prototype=r.fn,E=r(d);var H=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};r.fn.extend({has:function(a){var b=r(a,this),c=b.length;return this.filter(function(){for(var a=0;a<c;a++)if(r.contains(this,b[a]))return!0})},closest:function(a,b){var c,d=0,e=this.length,f=[],g="string"!=typeof a&&r(a);if(!A.test(a))for(;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&&r.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?r.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?i.call(r(a),this[0]):i.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(r.uniqueSort(r.merge(this.get(),r(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function J(a,b){while((a=a[b])&&1!==a.nodeType);return a}r.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return y(a,"parentNode")},parentsUntil:function(a,b,c){return y(a,"parentNode",c)},next:function(a){return J(a,"nextSibling")},prev:function(a){return J(a,"previousSibling")},nextAll:function(a){return y(a,"nextSibling")},prevAll:function(a){return y(a,"previousSibling")},nextUntil:function(a,b,c){return y(a,"nextSibling",c)},prevUntil:function(a,b,c){return y(a,"previousSibling",c)},siblings:function(a){return z((a.parentNode||{}).firstChild,a)},children:function(a){return z(a.firstChild)},contents:function(a){return a.contentDocument||r.merge([],a.childNodes)}},function(a,b){r.fn[a]=function(c,d){var e=r.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=r.filter(d,e)),this.length>1&&(I[a]||r.uniqueSort(e),H.test(a)&&e.reverse()),this.pushStack(e)}});var K=/\S+/g;function L(a){var b={};return r.each(a.match(K)||[],function(a,c){b[c]=!0}),b}r.Callbacks=function(a){a="string"==typeof a?L(a):r.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)f[h].apply(c[0],c[1])===!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 d(b){r.each(b,function(b,c){r.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==r.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return r.each(arguments,function(a,b){var c;while((c=r.inArray(b,f,c))>-1)f.splice(c,1),c<=h&&h--}),this},has:function(a){return a?r.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=g=[],c||b||(f=c=""),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};function M(a){return a}function N(a){throw a}function O(a,b,c){var d;try{a&&r.isFunction(d=a.promise)?d.call(a).done(b).fail(c):a&&r.isFunction(d=a.then)?d.call(a,b,c):b.call(void 0,a)}catch(a){c.call(void 0,a)}}r.extend({Deferred:function(b){var c=[["notify","progress",r.Callbacks("memory"),r.Callbacks("memory"),2],["resolve","done",r.Callbacks("once memory"),r.Callbacks("once memory"),0,"resolved"],["reject","fail",r.Callbacks("once memory"),r.Callbacks("once memory"),1,"rejected"]],d="pending",e={state:function(){return d},always:function(){return f.done(arguments).fail(arguments),this},"catch":function(a){return e.then(null,a)},pipe:function(){var a=arguments;return r.Deferred(function(b){r.each(c,function(c,d){var e=r.isFunction(a[d[4]])&&a[d[4]];f[d[1]](function(){var a=e&&e.apply(this,arguments);a&&r.isFunction(a.promise)?a.promise().progress(b.notify).done(b.resolve).fail(b.reject):b[d[0]+"With"](this,e?[a]:arguments)})}),a=null}).promise()},then:function(b,d,e){var f=0;function g(b,c,d,e){return function(){var h=this,i=arguments,j=function(){var a,j;if(!(b<f)){if(a=d.apply(h,i),a===c.promise())throw new TypeError("Thenable self-resolution");j=a&&("object"==typeof a||"function"==typeof a)&&a.then,r.isFunction(j)?e?j.call(a,g(f,c,M,e),g(f,c,N,e)):(f++,j.call(a,g(f,c,M,e),g(f,c,N,e),g(f,c,M,c.notifyWith))):(d!==M&&(h=void 0,i=[a]),(e||c.resolveWith)(h,i))}},k=e?j:function(){try{j()}catch(a){r.Deferred.exceptionHook&&r.Deferred.exceptionHook(a,k.stackTrace),b+1>=f&&(d!==N&&(h=void 0,i=[a]),c.rejectWith(h,i))}};b?k():(r.Deferred.getStackHook&&(k.stackTrace=r.Deferred.getStackHook()),a.setTimeout(k))}}return r.Deferred(function(a){c[0][3].add(g(0,a,r.isFunction(e)?e:M,a.notifyWith)),c[1][3].add(g(0,a,r.isFunction(b)?b:M)),c[2][3].add(g(0,a,r.isFunction(d)?d:N))}).promise()},promise:function(a){return null!=a?r.extend(a,e):e}},f={};return r.each(c,function(a,b){var g=b[2],h=b[5];
vendor: 4,079 bytes, lines 2-3
2e[b[1]]=g.add,h&&g.add(function(){d=h},c[3-a][2].disable,c[0][2].lock),g.add(b[3].fire),f[b[0]]=function(){return f[b[0]+"With"](this===f?void 0:this,arguments),this},f[b[0]+"With"]=g.fireWith}),e.promise(f),b&&b.call(f,f),f},when:function(a){var b=arguments.length,c=b,d=Array(c),e=f.call(arguments),g=r.Deferred(),h=function(a){return function(c){d[a]=this,e[a]=arguments.length>1?f.call(arguments):c,--b||g.resolveWith(d,e)}};if(b<=1&&(O(a,g.done(h(c)).resolve,g.reject),"pending"===g.state()||r.isFunction(e[c]&&e[c].then)))return g.then();while(c--)O(e[c],h(c),g.reject);return g.promise()}});var P=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;r.Deferred.exceptionHook=function(b,c){a.console&&a.console.warn&&b&&P.test(b.name)&&a.console.warn("jQuery.Deferred exception: "+b.message,b.stack,c)},r.readyException=function(b){a.setTimeout(function(){throw b})};var Q=r.Deferred();r.fn.ready=function(a){return Q.then(a)["catch"](function(a){r.readyException(a)}),this},r.extend({isReady:!1,readyWait:1,holdReady:function(a){a?r.readyWait++:r.ready(!0)},ready:function(a){(a===!0?--r.readyWait:r.isReady)||(r.isReady=!0,a!==!0&&--r.readyWait>0||Q.resolveWith(d,[r]))}}),r.ready.then=Q.then;function R(){d.removeEventListener("DOMContentLoaded",R),a.removeEventListener("load",R),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",R),a.addEventListener("load",R));var S=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)S(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,
3r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(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},T=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function U(){this.expando=r.expando+U.uid++}U.uid=1,U.prototype={cache:function(a){var b=a[this.expando];return b||(b={},T(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){r.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(K)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var V=new U,W=new U,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function Z(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Y,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c||"false"!==c&&("null"===c?null:+c+""===c?+c:X.test(c)?JSON.parse(c):c)}catch(e){}W.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return W.hasData(a)||V.hasData(a)},data:function(a,b,c){return W.access(a,b,c)},removeData:function(a,b){W.remove(a,b)},_data:function(a,b,c){return V.access(a,b,c)},_removeData:function(a,b){V.remove(a,b)}}),r.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=W.get(f),1===f.nodeType&&!V.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),Z(f,d,e[d])));V.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){W.set(this,a)}):S(this,function(b){var c;if(f&&void 0===b){if(c=W.get(f,a),void 0!==c)return c;if(c=Z(f,a),void 0!==c)return c}else this.each(function(){W.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){W.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;
vendor: 17,080 bytes, line 3
3if(a)return b=(b||"fx")+"queue",d=V.get(a,b),c&&(!d||r.isArray(c)?d=V.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.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 V.get(a,c)||V.access(a,c,{empty:r.Callbacks("once memory").add(function(){V.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.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=V.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var $=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,_=new RegExp("^(?:([+-])=|)("+$+")([a-z%]*)$","i"),aa=["Top","Right","Bottom","Left"],ba=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ca=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};function da(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&_.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.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 ea={};function fa(a){var b,c=a.ownerDocument,d=a.nodeName,e=ea[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e="block"),ea[d]=e,e)}function ga(a,b){for(var c,d,e=[],f=0,g=a.length;f<g;f++)d=a[f],d.style&&(c=d.style.display,b?("none"===c&&(e[f]=V.get(d,"display")||null,e[f]||(d.style.display="")),""===d.style.display&&ba(d)&&(e[f]=fa(d))):"none"!==c&&(e[f]="none",V.set(d,"display",c)));for(f=0;f<g;f++)null!=e[f]&&(a[f].style.display=e[f]);return a}r.fn.extend({show:function(){return ga(this,!0)},hide:function(){return ga(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){ba(this)?r(this).show():r(this).hide()})}});var ha=/^(?:checkbox|radio)$/i,ia=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ja=/^$|\/(?:java|ecma)script/i,ka={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ka.optgroup=ka.option,ka.tbody=ka.tfoot=ka.colgroup=ka.caption=ka.thead,ka.th=ka.td;function la(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&r.nodeName(a,b)?r.merge([a],c):c}function ma(a,b){for(var c=0,d=a.length;c<d;c++)V.set(a[c],"globalEval",!b||V.get(b[c],"globalEval"))}var na=/<|&#?\w+;/;function oa(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],n=0,o=a.length;n<o;n++)if(f=a[n],f||0===f)if("object"===r.type(f))r.merge(m,f.nodeType?[f]:f);else if(na.test(f)){g=g||l.appendChild(b.createElement("div")),h=(ia.exec(f)||["",""])[1].toLowerCase(),i=ka[h]||ka._default,g.innerHTML=i[1]+r.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;r.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",n=0;while(f=m[n++])if(d&&r.inArray(f,d)>-1)e&&e.push(f);else if(j=r.contains(f.ownerDocument,f),g=la(l.appendChild(f),"script"),j&&ma(g),c){k=0;while(f=g[k++])ja.test(f.type||"")&&c.push(f)}return l}!function(){var a=d.createDocumentFragment(),b=a.appendChild(d.createElement("div")),c=d.createElement("input");c.setAttribute("type","radio"),c.setAttribute("checked","checked"),c.setAttribute("name","t"),b.appendChild(c),o.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",o.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var pa=d.documentElement,qa=/^key/,ra=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,sa=/^([^.]*)(?:\.(.+)|)/;function ta(){return!0}function ua(){return!1}function va(){try{return d.activeElement}catch(a){}}function wa(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)wa(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)),e===!1)e=ua;else if(!e)return a;return 1===f&&(g=e,e=function(a){return r().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=r.guid++)),a.each(function(){r.event.add(this,b,e,d,c)})}r.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.get(a);if(q){c.handler&&(f=c,c=f.handler,e=f.selector),e&&r.find.matchesSelector(pa,e),c.guid||(c.guid=r.guid++),(i=q.events)||(i=q.events={}),(g=q.handle)||(g=q.handle=function(b){return"undefined"!=typeof r&&r.event.triggered!==b.type?r.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(K)||[""],j=b.length;while(j--)h=sa.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n&&(l=r.event.special[n]||{},n=(e?l.delegateType:l.bindType)||n,l=r.event.special[n]||{},k=r.extend({type:n,origType:p,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&r.expr.match.needsContext.test(e),namespace:o.join(".")},f),(m=i[n])||(m=i[n]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,o,g)!==!1||a.addEventListener&&a.addEventListener(n,g)),l.add&&(l.add.call(a,k),k.handler.guid||(k.handler.guid=c.guid)),e?m.splice(m.delegateCount++,0,k):m.push(k),r.event.global[n]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,n,o,p,q=V.hasData(a)&&V.get(a);if(q&&(i=q.events)){b=(b||"").match(K)||[""],j=b.length;while(j--)if(h=sa.exec(b[j])||[],n=p=h[1],o=(h[2]||"").split(".").sort(),n){l=r.event.special[n]||{},n=(d?l.delegateType:l.bindType)||n,m=i[n]||[],h=h[2]&&new RegExp("(^|\\.)"+o.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&p!==k.origType||c&&c.guid!==k.guid||h&&!h.test(k.namespace)||d&&d!==k.selector&&("**"!==d||!k.selector)||(m.splice(f,1),k.selector&&m.delegateCount--,l.remove&&l.remove.call(a,k));g&&!m.length&&(l.teardown&&l.teardown.call(a,o,q.handle)!==!1||r.removeEvent(a,n,q.handle),delete i[n])}else for(n in i)r.event.remove(a,n+b[j],c,d,!0);r.isEmptyObject(i)&&V.remove(a,"handle events")}},dispatch:function(a){var b=r.event.fix(a),c,d,e,f,g,h,i=new Array(arguments.length),j=(V.get(this,"events")||{})[b.type]||[],k=r.event.special[b.type]||{};for(i[0]=b,c=1;c<arguments.length;c++)i[c]=arguments[c];if(b.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,b)!==!1){h=r.event.handlers.call(this,b,j),c=0;while((f=h[c++])&&!b.isPropagationStopped()){b.currentTarget=f.elem,d=0;while((g=f.handlers[d++])&&!b.isImmediatePropagationStopped())b.rnamespace&&!b.rnamespace.test(g.namespace)||(b.handleObj=g,b.data=g.data,e=((r.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==e&&(b.result=e)===!1&&(b.preventDefault(),b.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,b),b.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&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;c<h;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?r(e,this).index(i)>-1:r.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},addProp:function(a,b){Object.defineProperty(r.Event.prototype,a,{enumerable:!0,configurable:!0,get:r.isFunction(b)?function(){if(this.originalEvent)return b(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[a]},set:function(b){Object.defineProperty(this,a,{enumerable:!0,configurable:!0,writable:!0,value:b})}})},fix:function(a){return a[r.expando]?a:new r.Event(a)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==va()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===va()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&r.nodeName(this,"input"))return this.click(),!1},_default:function(a){return r.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},r.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},r.Event=function(a,b){return this instanceof r.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ta:ua,this.target=a.target&&3===a.target.nodeType?a.target.parentNode:a.target,this.currentTarget=a.currentTarget,this.relatedTarget=a.relatedTarget):this.type=a,b&&r.extend(this,b),this.timeStamp=a&&a.timeStamp||r.now(),void(this[r.expando]=!0)):new r.Event(a,b)},r.Event.prototype={constructor:r.Event,isDefaultPrevented:ua,isPropagationStopped:ua,isImmediatePropagationStopped:ua,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ta,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ta,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ta,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},r.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(a){var b=a.button;return null==a.which&&qa.test(a.type)?null!=a.charCode?a.charCode:a.keyCode:!a.which&&void 0!==b&&ra.test(a.type)?1&b?1:2&b?3:4&b?2:0:a.which}},r.event.addProp),r.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){r.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||r.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),r.fn.extend({on:function(a,b,c,d){return wa(this,a,b,c,d)},one:function(a,b,c,d){return wa(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,r(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 b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ua),this.each(function(){r.event.remove(this,a,c,b)})}});var xa=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ya=/<script|<style|<link/i,za=/checked\s*(?:[^=]|=\s*.checked.)/i,Aa=/^true\/(.*)/,Ba=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ca(a,b){return r.nodeName(a,"table")&&r.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a:a}function Da(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function Ea(a){var b=Aa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function Fa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(V.hasData(a)&&(f=V.access(a),g=V.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;c<d;c++)r.event.add(b,e,j[e][c])}W.hasData(a)&&(h=W.access(a),i=r.extend({},h),W.set(b,i))}}function Ga(a,b){var c=b.nodeName.toLowerCase();"input"===c&&ha.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function Ha(a,b,c,d){b=g.apply([],b);var e,f,h,i,j,k,l=0,m=a.length,n=m-1,q=b[0],s=r.isFunction(q);if(s||m>1&&"string"==typeof q&&!o.checkClone&&za.test(q))return a.each(function(e){var f=a.eq(e);s&&(b[0]=q.call(this,e,f.html())),Ha(f,b,c,d)});if(m&&(e=oa(b,a[0].ownerDocument,!1,a,d),f=e.firstChild,1===e.childNodes.length&&(e=f),f||d)){for(h=r.map(la(e,"script"),Da),i=h.length;l<m;l++)j=e,l!==n&&(j=r.clone(j,!0,!0),i&&r.merge(h,la(j,"script"))),c.call(a[l],j,l);if(i)for(k=h[h.length-1].ownerDocument,r.map(h,Ea),l=0;l<i;l++)j=h[l],ja.test(j.type||"")&&!V.access(j,"globalEval")&&r.contains(k,j)&&(j.src?r._evalUrl&&r._evalUrl(j.src):p(j.textContent.replace(Ba,""),k))}return a}function Ia(a,b,c){for(var d,e=b?r.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||r.cleanData(la(d)),d.parentNode&&(c&&r.contains(d.ownerDocument,d)&&ma(la(d,"script")),d.parentNode.removeChild(d));return a}r.extend({htmlPrefilter:function(a){return a.replace(xa,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=r.contains(a.ownerDocument,a);if(!(o.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||r.isXMLDoc(a)))for(g=la(h),f=la(a),d=0,e=f.length;d<e;d++)Ga(f[d],g[d]);if(b)if(c)for(f=f||la(a),g=g||la(h),d=0,e=f.length;d<e;d++)Fa(f[d],g[d]);else Fa(a,h);return g=la(h,"script"),g.length>0&&ma(g,!i&&la(a,"script")),h},cleanData:function(a){for(var b,c,d,e=r.event.special,f=0;void 0!==(c=a[f]);f++)if(T(c)){if(b=c[V.expando]){if(b.events)for(d in b.events)e[d]?r.event.remove(c,d):r.removeEvent(c,d,b.handle);c[V.expando]=void 0}c[W.expando]&&(c[W.expando]=void 0)}}}),r.fn.extend({detach:function(a){return Ia(this,a,!0)},remove:function(a){return Ia(this,a)},text:function(a){return S(this,function(a){return void 0===a?r.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=a)})},null,a,arguments.length)},append:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.appendChild(a)}})},prepend:function(){return Ha(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=Ca(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return Ha(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return Ha(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&&(r.cleanData(la(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null!=a&&a,b=null==b?a:b,this.map(function(){return r.clone(this,a,b)})},html:function(a){return S(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a&&1===b.nodeType)return b.innerHTML;if("string"==typeof a&&!ya.test(a)&&!ka[(ia.exec(a)||["",""])[1].toLowerCase()]){a=r.htmlPrefilter(a);try{for(;c<d;c++)b=this[c]||{},1===b.nodeType&&(r.cleanData(la(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return Ha(this,arguments,function(b){var c=this.parentNode;r.inArray(this,a)<0&&(r.cleanData(la(this)),c&&c.replaceChild(b,this))},a)}}),r.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){r.fn[a]=function(a){for(var c,d=[],e=r(a),f=e.length-1,g=0;g<=f;g++)c=g===f?this:this.clone(!0),r(e[g])[b](c),h.apply(d,c.get());return this.pushStack(d)}});var Ja=/^margin/,Ka=new RegExp("^("+$+")(?!px)[a-z%]+$","i"),La=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)};!function(){function b(){if(i){i.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i.innerHTML="",pa.appendChild(h);var b=a.getComputedStyle(i);c="1%"!==b.top,g="2px"===b.marginLeft,e="4px"===b.width,i.style.marginRight="50%",f="4px"===b.marginRight,pa.removeChild(h),i=null}}var c,e,f,g,h=d.createElement("div"),i=d.createElement("div");i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",o.clearCloneStyle="content-box"===i.style.backgroundClip,h.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",h.appendChild(i),r.extend(o,{pixelPosition:function(){return b(),c},boxSizingReliable:function(){return b(),e},pixelMarginRight:function(){return b(),f},reliableMarginLeft:function(){return b(),g}}))}();function Ma(a,b,c){var d,e,f,g,h=a.style;return c=c||La(a),c&&(g=c.getPropertyValue(b)||c[b],""!==g||r.contains(a.ownerDocument,a)||(g=r.style(a,b)),!
vendor: 15,095 bytes, lines 3-4
3o.pixelMarginRight()&&Ka.test(g)&&Ja.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}function Na(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Oa=/^(none|table(?!-c[ea]).+)/,Pa={position:"absolute",visibility:"hidden",display:"block"},Qa={letterSpacing:"0",fontWeight:"400"},Ra=["Webkit","Moz","ms"],Sa=d.createElement("div").style;function Ta(a){if(a in Sa)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ra.length;while(c--)if(a=Ra[c]+b,a in Sa)return a}function Ua(a,b,c){var d=_.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Va(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+=r.css(a,c+aa[f],!0,e)),d?("content"===c&&(g-=r.css(a,"padding"+aa[f],!0,e)),"margin"!==c&&(g-=r.css(a,"border"+aa[f]+"Width",!0,e))):(g+=r.css(a,"padding"+aa[f],!0,e),"padding"!==c&&(g+=r.css(a,"border"+aa[f]+"Width",!0,e)));return g}function Wa(a,b,c){var d,e=!0,f=La(a),g="border-box"===r.css(a,"boxSizing",!1,f);if(a.getClientRects().length&&(d=a.getBoundingClientRect()[b]),d<=0||null==d){if(d=Ma(a,b,f),(d<0||null==d)&&(d=a.style[b]),Ka.test(d))return d;e=g&&(o.boxSizingReliable()||d===a.style[b]),d=parseFloat(d)||0}return d+Va(a,b,c||(g?"border":"content"),e,f)+"px"}r.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Ma(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":"cssFloat"},style:function(a,b,c,d){if(a&&3!==a.nodeType&&8!==a.nodeType&&a.style){var e,f,g,h=r.camelCase(b),i=a.style;return b=r.cssProps[h]||(r.cssProps[h]=Ta(h)||h),g=r.cssHooks[b]||r.cssHooks[h],void 0===c?g&&"get"in g&&void 0!==(e=g.get(a,!1,d))?e:i[b]:(f=typeof c,"string"===f&&(e=_.exec(c))&&e[1]&&(c=da(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(r.cssNumber[h]?"":"px")),o.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=r.camelCase(b);return b=r.cssProps[h]||(r.cssProps[h]=Ta(h)||h),g=r.cssHooks[b]||r.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Ma(a,b,d)),"normal"===e&&b in Qa&&(e=Qa[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),r.each(["height","width"],function(a,b){r.cssHooks[b]={get:function(a,c,d){if(c)return!Oa.test(r.css(a,"display"))||a.getClientRects().length&&a.getBoundingClientRect().width?Wa(a,b,d):ca(a,Pa,function(){return Wa(a,b,d)})},set:function(a,c,d){var e,f=d&&La(a),g=d&&Va(a,b,d,"border-box"===r.css(a,"boxSizing",!1,f),f);return g&&(e=_.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=r.css(a,b)),Ua(a,c,g)}}}),r.cssHooks.marginLeft=Na(o.reliableMarginLeft,function(a,b){if(b)return(parseFloat(Ma(a,"marginLeft"))||a.getBoundingClientRect().left-ca(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px"}),r.each({margin:"",padding:"",border:"Width"},function(a,b){r.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];d<4;d++)e[a+aa[d]+b]=f[d]||f[d-2]||f[0];return e}},Ja.test(a)||(r.cssHooks[a+b].set=Ua)}),r.fn.extend({css:function(a,b){return S(this,function(a,b,c){var d,e,f={},g=0;if(r.isArray(b)){for(d=La(a),e=b.length;g<e;g++)f[b[g]]=r.css(a,b[g],!1,d);return f}return void 0!==c?r.style(a,b,c):r.css(a,b)},a,b,arguments.length>1)}});function Xa(a,b,c,d,e){return new Xa.prototype.init(a,b,c,d,e)}r.Tween=Xa,Xa.prototype={constructor:Xa,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||r.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(r.cssNumber[c]?"":"px")},cur:function(){var a=Xa.propHooks[this.prop];return a&&a.get?a.get(this):Xa.propHooks._default.get(this)},run:function(a){var b,c=Xa.propHooks[this.prop];return this.options.duration?this.pos=b=r.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):Xa.propHooks._default.set(this),this}},Xa.prototype.init.prototype=Xa.prototype,Xa.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=r.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){r.fx.step[a.prop]?r.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[r.cssProps[a.prop]]&&!r.cssHooks[a.prop]?a.elem[a.prop]=a.now:r.style(a.elem,a.prop,a.now+a.unit)}}},Xa.propHooks.scrollTop=Xa.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},r.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},r.fx=Xa.prototype.init,r.fx.step={};var Ya,Za,$a=/^(?:toggle|show|hide)$/,_a=/queueHooks$/;function ab(){Za&&(a.requestAnimationFrame(ab),r.fx.tick())}function bb(){return a.setTimeout(function(){Ya=void 0}),Ya=r.now()}function cb(a,b){var c,d=0,e={height:a};for(b=b?1:0;d<4;d+=2-b)c=aa[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function db(a,b,c){for(var d,e=(gb.tweeners[b]||[]).concat(gb.tweeners["*"]),f=0,g=e.length;f<g;f++)if(d=e[f].call(c,b,a))return d}function eb(a,b,c){var d,e,f,g,h,i,j,k,l="width"in b||"height"in b,m=this,n={},o=a.style,p=a.nodeType&&ba(a),q=V.get(a,"fxshow");c.queue||(g=r._queueHooks(a,"fx"),null==g.unqueued&&(g.unqueued=0,h=g.empty.fire,g.empty.fire=function(){g.unqueued||h()}),g.unqueued++,m.always(function(){m.always(function(){g.unqueued--,r.queue(a,"fx").length||g.empty.fire()})}));for(d in b)if(e=b[d],$a.test(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}n[d]=q&&q[d]||r.style(a,d)}if(i=!r.isEmptyObject(b),i||!r.isEmptyObject(n)){l&&1===a.nodeType&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=q&&q.display,null==j&&(j=V.get(a,"display")),k=r.css(a,"display"),"none"===k&&(j?k=j:(ga([a],!0),j=a.style.display||j,k=r.css(a,"display"),ga([a]))),("inline"===k||"inline-block"===k&&null!=j)&&"none"===r.css(a,"float")&&(i||(m.done(function(){o.display=j}),null==j&&(k=o.display,j="none"===k?"":k)),o.display="inline-block")),c.overflow&&(o.overflow="hidden",m.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]})),i=!1;for(d in n)i||(q?"hidden"in q&&(p=q.hidden):q=V.access(a,"fxshow",{display:j}),f&&(q.hidden=!p),p&&ga([a],!0),m.done(function(){p||ga([a]),V.remove(a,"fxshow");for(d in n)r.style(a,d,n[d])})),i=db(p?q[d]:0,d,m),d in q||(q[d]=i.start,p&&(i.end=i.start,i.start=0))}}function fb(a,b){var c,d,e,f,g;for(c in a)if(d=r.camelCase(c),e=b[d],f=a[c],r.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=r.cssHooks[d],g&&"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 gb(a,b,c){var d,e,f=0,g=gb.prefilters.length,h=r.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Ya||bb(),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:r.extend({},b),opts:r.extend(!0,{specialEasing:{},easing:r.easing._default},c),originalProperties:b,originalOptions:c,startTime:Ya||bb(),duration:c.duration,tweens:[],createTween:function(b,c){var d=r.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(fb(k,j.opts.specialEasing);f<g;f++)if(d=gb.prefilters[f].call(j,a,k,j.opts))return r.isFunction(d.stop)&&(r._queueHooks(j.elem,j.opts.queue).stop=r.proxy(d.stop,d)),d;return r.map(k,db,j),r.isFunction(j.opts.start)&&j.opts.start.call(a,j),r.fx.timer(r.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)}r.Animation=r.extend(gb,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return da(c.elem,a,_.exec(b),c),c}]},tweener:function(a,b){r.isFunction(a)?(b=a,a=["*"]):a=a.match(K);for(var c,d=0,e=a.length;d<e;d++)c=a[d],gb.tweeners[c]=gb.tweeners[c]||[],gb.tweeners[c].unshift(b)},prefilters:[eb],prefilter:function(a,b){b?gb.prefilters.unshift(a):gb.prefilters.push(a)}}),r.speed=function(a,b,c){var e=a&&"object"==typeof a?r.extend({},a):{complete:c||!c&&b||r.isFunction(a)&&a,duration:a,easing:c&&b||b&&!r.isFunction(b)&&b};return r.fx.off||d.hidden?e.duration=0:e.duration="number"==typeof e.duration?e.duration:e.duration in r.fx.speeds?r.fx.speeds[e.duration]:r.fx.speeds._default,null!=e.queue&&e.queue!==!0||(e.queue="fx"),e.old=e.complete,e.complete=function(){r.isFunction(e.old)&&e.old.call(this),e.queue&&r.dequeue(this,e.queue)},e},r.fn.extend({fadeTo:function(a,b,c,d){return this.filter(ba).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=r.isEmptyObject(a),f=r.speed(b,c,d),g=function(){var b=gb(this,r.extend({},a),f);(e||V.get(this,"finish"))&&b.stop(!0)};return g.finish=g,e||f.queue===!1?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&&a!==!1&&this.queue(a||"fx",[]),this.each(function(){var b=!0,e=null!=a&&a+"queueHooks",f=r.timers,g=V.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&_a.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||r.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=V.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=r.timers,g=d?d.length:0;for(c.finish=!0,r.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})}}),r.each(["toggle","show","hide"],function(a,b){var c=r.fn[b];r.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(cb(b,!0),a,d,e)}}),r.each({slideDown:cb("show"),slideUp:cb("hide"),slideToggle:cb("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){r.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),r.timers=[],r.fx.tick=function(){var a,b=0,c=r.timers;for(Ya=r.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||r.fx.stop(),Ya=void 0},r.fx.timer=function(a){r.timers.push(a),a()?r.fx.start():r.timers.pop()},r.fx.interval=13,r.fx.start=function(){Za||(Za=a.requestAnimationFrame?a.requestAnimationFrame(ab):a.setInterval(r.fx.tick,r.fx.interval))},r.fx.stop=function(){a.cancelAnimationFrame?a.cancelAnimationFrame(Za):a.clearInterval(Za),Za=null},r.fx.speeds={slow:600,fast:200,_default:400},r.fn.delay=function(b,c){return b=r.fx?r.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=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",o.checkOn=""!==a.value,o.optSelected=c.selected,a=d.createElement("input"),a.value="t",a.type="radio",o.radioValue="t"===a.value}();var hb,ib=r.expr.attrHandle;r.fn.extend({attr:function(a,b){return S(this,r.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){r.removeAttr(this,a)})}}),r.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?r.prop(a,b,c):(1===f&&r.isXMLDoc(a)||(e=r.attrHooks[b.toLowerCase()]||(r.expr.match.bool.test(b)?hb:void 0)),void 0!==c?null===c?void r.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=r.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&r.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(K);
4if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),hb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=ib[b]||r.find.attr;ib[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=ib[g],ib[g]=e,e=null!=c(a,b,d)?g:null,ib[g]=f),e}});var jb=/^(?:input|select|textarea|button)$/i,kb=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return S(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.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=r.find.attr(a,"tabindex");return b?parseInt(b,10):jb.test(a.nodeName)||kb.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});var lb=/[\t\r\n\f]/g;function mb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,mb(this)))});if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=mb(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=r.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,mb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(K)||[];while(c=this[i++])if(e=mb(c),d=1===c.nodeType&&(" "+e+" ").replace(lb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=r.trim(d),e!==h&&c.setAttribute("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):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,mb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(K)||[];
vendor: 19,642 bytes, line 4
4while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=mb(this),b&&V.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":V.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+mb(c)+" ").replace(lb," ").indexOf(b)>-1)return!0;return!1}});var nb=/\r/g,ob=/[\x20\t\r\n\f]+/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":r.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(nb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:r.trim(r.text(a)).replace(ob," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type,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)&&!c.disabled&&(!c.parentNode.disabled||!r.nodeName(c.parentNode,"optgroup"))){if(b=r(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(r.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var pb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!pb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?b:new r.Event(p,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=q.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:r.makeArray(c,[b]),n=r.event.special[p]||{},f||!n.trigger||n.trigger.apply(e,c)!==!1)){if(!f&&!n.noBubble&&!r.isWindow(e)){for(j=n.delegateType||p,pb.test(j+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),i=h;i===(e.ownerDocument||d)&&o.push(i.defaultView||i.parentWindow||a)}g=0;while((h=o[g++])&&!b.isPropagationStopped())b.type=g>1?j:n.bindType||p,m=(V.get(h,"events")||{})[b.type]&&V.get(h,"handle"),m&&m.apply(h,c),m=k&&h[k],m&&m.apply&&T(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=p,f||b.isDefaultPrevented()||n._default&&n._default.apply(o.pop(),c)!==!1||!T(e)||k&&r.isFunction(e[p])&&!r.isWindow(e)&&(i=e[k],i&&(e[k]=null),r.event.triggered=p,e[p](),r.event.triggered=void 0,i&&(e[k]=i)),b.result}},simulate:function(a,b,c){var d=r.extend(new r.Event,c,{type:a,isSimulated:!0});r.event.trigger(d,null,b)}}),r.fn.extend({trigger:function(a,b){return this.each(function(){r.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];if(c)return r.event.trigger(a,b,c,!0)}}),r.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(a,b){r.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),r.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),o.focusin="onfocusin"in a,o.focusin||r.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){r.event.simulate(b,a.target,r.event.fix(a))};r.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=V.access(d,b);e||d.addEventListener(a,c,!0),V.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=V.access(d,b)-1;e?V.access(d,b,e):(d.removeEventListener(a,c,!0),V.remove(d,b))}}});var qb=a.location,rb=r.now(),sb=/\?/;r.parseXML=function(b){var c;if(!b||"string"!=typeof b)return null;try{c=(new a.DOMParser).parseFromString(b,"text/xml")}catch(d){c=void 0}return c&&!c.getElementsByTagName("parsererror").length||r.error("Invalid XML: "+b),c};var tb=/\[\]$/,ub=/\r?\n/g,vb=/^(?:submit|button|image|reset|file)$/i,wb=/^(?:input|select|textarea|keygen)/i;function xb(a,b,c,d){var e;if(r.isArray(b))r.each(b,function(b,e){c||tb.test(a)?d(a,e):xb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==r.type(b))d(a,b);else for(e in b)xb(a+"["+e+"]",b[e],c,d)}r.param=function(a,b){var c,d=[],e=function(a,b){var c=r.isFunction(b)?b():b;d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(null==c?"":c)};if(r.isArray(a)||a.jquery&&!r.isPlainObject(a))r.each(a,function(){e(this.name,this.value)});else for(c in a)xb(c,a[c],b,e);return d.join("&")},r.fn.extend({serialize:function(){return r.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=r.prop(this,"elements");return a?r.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!r(this).is(":disabled")&&wb.test(this.nodeName)&&!vb.test(a)&&(this.checked||!ha.test(a))}).map(function(a,b){var c=r(this).val();return null==c?null:r.isArray(c)?r.map(c,function(a){return{name:b.name,value:a.replace(ub,"\r\n")}}):{name:b.name,value:c.replace(ub,"\r\n")}}).get()}});var yb=/%20/g,zb=/#.*$/,Ab=/([?&])_=[^&]*/,Bb=/^(.*?):[ \t]*([^\r\n]*)$/gm,Cb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Db=/^(?:GET|HEAD)$/,Eb=/^\/\//,Fb={},Gb={},Hb="*/".concat("*"),Ib=d.createElement("a");Ib.href=qb.href;function Jb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(K)||[];if(r.isFunction(c))while(d=f[e++])"+"===d[0]?(d=d.slice(1)||"*",(a[d]=a[d]||[]).unshift(c)):(a[d]=a[d]||[]).push(c)}}function Kb(a,b,c,d){var e={},f=a===Gb;function g(h){var i;return e[h]=!0,r.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 Lb(a,b){var c,d,e=r.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&r.extend(!0,a,d),a}function Mb(a,b,c){var d,e,f,g,h=a.contents,i=a.dataTypes;while("*"===i[0])i.shift(),void 0===d&&(d=a.mimeType||b.getResponseHeader("Content-Type"));if(d)for(e in h)if(h[e]&&h[e].test(d)){i.unshift(e);break}if(i[0]in c)f=i[0];else{for(e in c){if(!i[0]||a.converters[e+" "+i[0]]){f=e;break}g||(g=e)}f=f||g}if(f)return f!==i[0]&&i.unshift(f),c[f]}function Nb(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],!g)for(e in j)if(h=e.split(" "),h[1]===f&&(g=j[i+" "+h[0]]||j["* "+h[0]])){g===!0?g=j[e]:j[e]!==!0&&(f=h[0],k.unshift(h[1]));break}if(g!==!0)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}}r.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:qb.href,type:"GET",isLocal:Cb.test(qb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Hb,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":r.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?Lb(Lb(a,r.ajaxSettings),b):Lb(r.ajaxSettings,a)},ajaxPrefilter:Jb(Fb),ajaxTransport:Jb(Gb),ajax:function(b,c){"object"==typeof b&&(c=b,b=void 0),c=c||{};var e,f,g,h,i,j,k,l,m,n,o=r.ajaxSetup({},c),p=o.context||o,q=o.context&&(p.nodeType||p.jquery)?r(p):r.event,s=r.Deferred(),t=r.Callbacks("once memory"),u=o.statusCode||{},v={},w={},x="canceled",y={readyState:0,getResponseHeader:function(a){var b;if(k){if(!h){h={};while(b=Bb.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return k?g:null},setRequestHeader:function(a,b){return null==k&&(a=w[a.toLowerCase()]=w[a.toLowerCase()]||a,v[a]=b),this},overrideMimeType:function(a){return null==k&&(o.mimeType=a),this},statusCode:function(a){var b;if(a)if(k)y.always(a[y.status]);else for(b in a)u[b]=[u[b],a[b]];return this},abort:function(a){var b=a||x;return e&&e.abort(b),A(0,b),this}};if(s.promise(y),o.url=((b||o.url||qb.href)+"").replace(Eb,qb.protocol+"//"),o.type=c.method||c.type||o.method||o.type,o.dataTypes=(o.dataType||"*").toLowerCase().match(K)||[""],null==o.crossDomain){j=d.createElement("a");try{j.href=o.url,j.href=j.href,o.crossDomain=Ib.protocol+"//"+Ib.host!=j.protocol+"//"+j.host}catch(z){o.crossDomain=!0}}if(o.data&&o.processData&&"string"!=typeof o.data&&(o.data=r.param(o.data,o.traditional)),Kb(Fb,o,c,y),k)return y;l=r.event&&o.global,l&&0===r.active++&&r.event.trigger("ajaxStart"),o.type=o.type.toUpperCase(),o.hasContent=!Db.test(o.type),f=o.url.replace(zb,""),o.hasContent?o.data&&o.processData&&0===(o.contentType||"").indexOf("application/x-www-form-urlencoded")&&(o.data=o.data.replace(yb,"+")):(n=o.url.slice(f.length),o.data&&(f+=(sb.test(f)?"&":"?")+o.data,delete o.data),o.cache===!1&&(f=f.replace(Ab,""),n=(sb.test(f)?"&":"?")+"_="+rb++ +n),o.url=f+n),o.ifModified&&(r.lastModified[f]&&y.setRequestHeader("If-Modified-Since",r.lastModified[f]),r.etag[f]&&y.setRequestHeader("If-None-Match",r.etag[f])),(o.data&&o.hasContent&&o.contentType!==!1||c.contentType)&&y.setRequestHeader("Content-Type",o.contentType),y.setRequestHeader("Accept",o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+("*"!==o.dataTypes[0]?", "+Hb+"; q=0.01":""):o.accepts["*"]);for(m in o.headers)y.setRequestHeader(m,o.headers[m]);if(o.beforeSend&&(o.beforeSend.call(p,y,o)===!1||k))return y.abort();if(x="abort",t.add(o.complete),y.done(o.success),y.fail(o.error),e=Kb(Gb,o,c,y)){if(y.readyState=1,l&&q.trigger("ajaxSend",[y,o]),k)return y;o.async&&o.timeout>0&&(i=a.setTimeout(function(){y.abort("timeout")},o.timeout));try{k=!1,e.send(v,A)}catch(z){if(k)throw z;A(-1,z)}}else A(-1,"No Transport");function A(b,c,d,h){var j,m,n,v,w,x=c;k||(k=!0,i&&a.clearTimeout(i),e=void 0,g=h||"",y.readyState=b>0?4:0,j=b>=200&&b<300||304===b,d&&(v=Mb(o,y,d)),v=Nb(o,v,y,j),j?(o.ifModified&&(w=y.getResponseHeader("Last-Modified"),w&&(r.lastModified[f]=w),w=y.getResponseHeader("etag"),w&&(r.etag[f]=w)),204===b||"HEAD"===o.type?x="nocontent":304===b?x="notmodified":(x=v.state,m=v.data,n=v.error,j=!n)):(n=x,!b&&x||(x="error",b<0&&(b=0))),y.status=b,y.statusText=(c||x)+"",j?s.resolveWith(p,[m,x,y]):s.rejectWith(p,[y,x,n]),y.statusCode(u),u=void 0,l&&q.trigger(j?"ajaxSuccess":"ajaxError",[y,o,j?m:n]),t.fireWith(p,[y,x]),l&&(q.trigger("ajaxComplete",[y,o]),--r.active||r.event.trigger("ajaxStop")))}return y},getJSON:function(a,b,c){return r.get(a,b,c,"json")},getScript:function(a,b){return r.get(a,void 0,b,"script")}}),r.each(["get","post"],function(a,b){r[b]=function(a,c,d,e){return r.isFunction(c)&&(e=e||d,d=c,c=void 0),r.ajax(r.extend({url:a,type:b,dataType:e,data:c,success:d},r.isPlainObject(a)&&a))}}),r._evalUrl=function(a){return r.ajax({url:a,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},r.fn.extend({wrapAll:function(a){var b;return this[0]&&(r.isFunction(a)&&(a=a.call(this[0])),b=r(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(a){return r.isFunction(a)?this.each(function(b){r(this).wrapInner(a.call(this,b))}):this.each(function(){var b=r(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=r.isFunction(a);return this.each(function(c){r(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(a){return this.parent(a).not("body").each(function(){r(this).replaceWith(this.childNodes)}),this}}),r.expr.pseudos.hidden=function(a){return!r.expr.pseudos.visible(a)},r.expr.pseudos.visible=function(a){return!!(a.offsetWidth||a.offsetHeight||a.getClientRects().length)},r.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Ob={0:200,1223:204},Pb=r.ajaxSettings.xhr();o.cors=!!Pb&&"withCredentials"in Pb,o.ajax=Pb=!!Pb,r.ajaxTransport(function(b){var c,d;if(o.cors||Pb&&!b.crossDomain)return{send:function(e,f){var g,h=b.xhr();if(h.open(b.type,b.url,b.async,b.username,b.password),b.xhrFields)for(g in b.xhrFields)h[g]=b.xhrFields[g];b.mimeType&&h.overrideMimeType&&h.overrideMimeType(b.mimeType),b.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest");for(g in e)h.setRequestHeader(g,e[g]);c=function(a){return function(){c&&(c=d=h.onload=h.onerror=h.onabort=h.onreadystatechange=null,"abort"===a?h.abort():"error"===a?"number"!=typeof h.status?f(0,"error"):f(h.status,h.statusText):f(Ob[h.status]||h.status,h.statusText,"text"!==(h.responseType||"text")||"string"!=typeof h.responseText?{binary:h.response}:{text:h.responseText},h.getAllResponseHeaders()))}},h.onload=c(),d=h.onerror=c("error"),void 0!==h.onabort?h.onabort=d:h.onreadystatechange=function(){4===h.readyState&&a.setTimeout(function(){c&&d()})},c=c("abort");try{h.send(b.hasContent&&b.data||null)}catch(i){if(c)throw i}},abort:function(){c&&c()}}}),r.ajaxPrefilter(function(a){a.crossDomain&&(a.contents.script=!1)}),r.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 r.globalEval(a),a}}}),r.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),r.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=r("<script>").prop({charset:a.scriptCharset,src:a.url}).on("load error",c=function(a){b.remove(),c=null,a&&f("error"===a.type?404:200,a.type)}),d.head.appendChild(b[0])},abort:function(){c&&c()}}}});var Qb=[],Rb=/(=)\?(?=&|$)|\?\?/;r.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Qb.pop()||r.expando+"_"+rb++;return this[a]=!0,a}}),r.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Rb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rb.test(b.data)&&"data");if(h||"jsonp"===b.dataTypes[0])return e=b.jsonpCallback=r.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Rb,"$1"+e):b.jsonp!==!1&&(b.url+=(sb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||r.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?r(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Qb.push(e)),g&&r.isFunction(f)&&f(g[0]),g=f=void 0}),"script"}),o.createHTMLDocument=function(){var a=d.implementation.createHTMLDocument("").body;return a.innerHTML="<form></form><form></form>",2===a.childNodes.length}(),r.parseHTML=function(a,b,c){if("string"!=typeof a)return[];"boolean"==typeof b&&(c=b,b=!1);var e,f,g;return b||(o.createHTMLDocument?(b=d.implementation.createHTMLDocument(""),e=b.createElement("base"),e.href=d.location.href,b.head.appendChild(e)):b=d),f=B.exec(a),g=!c&&[],f?[b.createElement(f[1])]:(f=oa([a],b,g),g&&g.length&&r(g).remove(),r.merge([],f.childNodes))},r.fn.load=function(a,b,c){var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=r.trim(a.slice(h)),a=a.slice(0,h)),r.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&r.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?r("<div>").append(r.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},r.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){r.fn[b]=function(a){return this.on(b,a)}}),r.expr.pseudos.animated=function(a){return r.grep(r.timers,function(b){return a===b.elem}).length};function Sb(a){return r.isWindow(a)?a:9===a.nodeType&&a.defaultView}r.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=r.css(a,"position"),l=r(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=r.css(a,"top"),i=r.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),r.isFunction(b)&&(b=b.call(a,c,r.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)}},r.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){r.offset.setOffset(this,a,b)});var b,c,d,e,f=this[0];if(f)return f.getClientRects().length?(d=f.getBoundingClientRect(),d.width||d.height?(e=f.ownerDocument,c=Sb(e),b=e.documentElement,{top:d.top+c.pageYOffset-b.clientTop,left:d.left+c.pageXOffset-b.clientLeft}):d):{top:0,left:0}},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===r.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),r.nodeName(a[0],"html")||(d=a.offset()),d={top:d.top+r.css(a[0],"borderTopWidth",!0),left:d.left+r.css(a[0],"borderLeftWidth",!0)}),{top:b.top-d.top-r.css(c,"marginTop",!0),left:b.left-d.left-r.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===r.css(a,"position"))a=a.offsetParent;return a||pa})}}),r.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;r.fn[a]=function(d){return S(this,function(a,d,e){var f=Sb(a);return void 0===e?f?f[b]:a[d]:void(f?f.scrollTo(c?f.pageXOffset:e,c?e:f.pageYOffset):a[d]=e)},a,d,arguments.length)}}),r.each(["top","left"],function(a,b){r.cssHooks[b]=Na(o.pixelPosition,function(a,c){if(c)return c=Ma(a,b),Ka.test(c)?r(a).position()[b]+"px":c})}),r.each({Height:"height",Width:"width"},function(a,b){r.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){r.fn[d]=function(e,f){var g=arguments.length&&(c||"boolean"!=typeof e),h=c||(e===!0||f===!0?"margin":"border");return S(this,function(b,c,e){var f;return r.isWindow(b)?0===d.indexOf("outer")?b["inner"+a]:b.document.documentElement["client"+a]:9===b.nodeType?(f=b.documentElement,Math.max(b.body["scroll"+a],f["scroll"+a],b.body["offset"+a],f["offset"+a],f["client"+a])):void 0===e?r.css(b,c,h):r.style(b,c,e,h)},b,g?e:void 0,g)}})}),r.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)}}),r.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return r});var Tb=a.jQuery,Ub=a.$;return r.noConflict=function(b){return a.$===r&&(a.$=Ub),b&&a.jQuery===r&&(a.jQuery=Tb),r},b||(a.jQuery=a.$=r),r});
4
5/*!
6 * jQuery Migrate - v1.1.1 - 2013-02-16
7 * https://github.com/jquery/jquery-migrate
8 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors; Licensed MIT
9 */
10(function( jQuery, window, undefined ) {
11// See http://bugs.jquery.com/ticket/13335
12// "use strict";
13
14
15var warnedAbout = {};
16
17// List of warnings already given; public read only
18jQuery.migrateWarnings = [];
19
20// Set to true to prevent console output; migrateWarnings still maintained
21// jQuery.migrateMute = false;
22
23// Show a message on the console so devs know we're active
24if ( !jQuery.migrateMute && window.console && console.log ) {
25	console.log("JQMIGRATE: Logging is active");
26}
27
28// Set to false to disable traces that appear with warnings
29if ( jQuery.migrateTrace === undefined ) {
30	jQuery.migrateTrace = true;
31}
32
33// Forget any warnings we've already given; public
34jQuery.migrateReset = function() {
35	warnedAbout = {};
36	jQuery.migrateWarnings.length = 0;
37};
38
39function migrateWarn( msg) {
40	if ( !warnedAbout[ msg ] ) {
41		warnedAbout[ msg ] = true;
42		jQuery.migrateWarnings.push( msg );
43		if ( window.console && console.warn && !jQuery.migrateMute ) {
44			console.warn( "JQMIGRATE: " + msg );
45			if ( jQuery.migrateTrace && console.trace ) {
46				console.trace();
47			}
48		}
49	}
50}
51
52function migrateWarnProp( obj, prop, value, msg ) {
53	if ( Object.defineProperty ) {
54		// On ES5 browsers (non-oldIE), warn if the code tries to get prop;
55		// allow property to be overwritten in case some other plugin wants it
56		try {
57			Object.defineProperty( obj, prop, {
58				configurable: true,
59				enumerable: true,
60				get: function() {
61					migrateWarn( msg );
62					return value;
63				},
64				set: function( newValue ) {
65					migrateWarn( msg );
66					value = newValue;
67				}
68			});
69			return;
70		} catch( err ) {
71			// IE8 is a dope about Object.defineProperty, can't warn there
72		}
73	}
74
75	// Non-ES5 (or broken) browser; just set the property
76	jQuery._definePropertyBroken = true;
77	obj[ prop ] = value;
78}
79
80if ( document.compatMode === "BackCompat" ) {
81	// jQuery has never supported or tested Quirks Mode
82	migrateWarn( "jQuery is not compatible with Quirks Mode" );
83}
84
85
86var attrFn = jQuery( "<input/>", { size: 1 } ).attr("size") && jQuery.attrFn,
87	oldAttr = jQuery.attr,
88	valueAttrGet = jQuery.attrHooks.value && jQuery.attrHooks.value.get ||
89		function() { return null; },
90	valueAttrSet = jQuery.attrHooks.value && jQuery.attrHooks.value.set ||
91		function() { return undefined; },
92	rnoType = /^(?:input|button)$/i,
93	rnoAttrNodeType = /^[238]$/,
94	rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
95	ruseDefault = /^(?:checked|selected)$/i;
96
97// jQuery.attrFn
98migrateWarnProp( jQuery, "attrFn", attrFn || {}, "jQuery.attrFn is deprecated" );
99
100jQuery.attr = function( elem, name, value, pass ) {
101	var lowerName = name.toLowerCase(),
102		nType = elem && elem.nodeType;
103
104	if ( pass ) {
105		// Since pass is used internally, we only warn for new jQuery
106		// versions where there isn't a pass arg in the formal params
107		if ( oldAttr.length < 4 ) {
108			migrateWarn("jQuery.fn.attr( props, pass ) is deprecated");
109		}
110		if ( elem && !rnoAttrNodeType.test( nType ) &&
111			(attrFn ? name in attrFn : jQuery.isFunction(jQuery.fn[name])) ) {
112			return jQuery( elem )[ name ]( value );
113		}
114	}
115
116	// Warn if user tries to set `type`, since it breaks on IE 6/7/8; by checking
117	// for disconnected elements we don't warn on $( "<button>", { type: "button" } ).
118	if ( name === "type" && value !== undefined && rnoType.test( elem.nodeName ) && elem.parentNode ) {
119		migrateWarn("Can't change the 'type' of an input or button in IE 6/7/8");
120	}
121
122	// Restore boolHook for boolean property/attribute synchronization
123	if ( !jQuery.attrHooks[ lowerName ] && rboolean.test( lowerName ) ) {
124		jQuery.attrHooks[ lowerName ] = {
125			get: function( elem, name ) {
126				// Align boolean attributes with corresponding properties
127				// Fall back to attribute presence where some booleans are not supported
128				var attrNode,
129					property = jQuery.prop( elem, name );
130				return property === true || typeof property !== "boolean" &&
131					( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
132
133					name.toLowerCase() :
134					undefined;
135			},
136			set: function( elem, value, name ) {
137				var propName;
138				if ( value === false ) {
139					// Remove boolean attributes when set to false
140					jQuery.removeAttr( elem, name );
141				} else {
142					// value is true since we know at this point it's type boolean and not false
143					// Set boolean attributes to the same name and set the DOM property
144					propName = jQuery.propFix[ name ] || name;
145					if ( propName in elem ) {
146						// Only set the IDL specifically if it already exists on the element
147						elem[ propName ] = true;
148					}
149
150					elem.setAttribute( name, name.toLowerCase() );
151				}
152				return name;
153			}
154		};
155
156		// Warn only for attributes that can remain distinct from their properties post-1.9
157		if ( ruseDefault.test( lowerName ) ) {
158			migrateWarn( "jQuery.fn.attr('" + lowerName + "') may use property instead of attribute" );
159		}
160	}
161
162	return oldAttr.call( jQuery, elem, name, value );
163};
164
165// attrHooks: value
166jQuery.attrHooks.value = {
167	get: function( elem, name ) {
168		var nodeName = ( elem.nodeName || "" ).toLowerCase();
169		if ( nodeName === "button" ) {
170			return valueAttrGet.apply( this, arguments );
171		}
172		if ( nodeName !== "input" && nodeName !== "option" ) {
173			migrateWarn("jQuery.fn.attr('value') no longer gets properties");
174		}
175		return name in elem ?
176			elem.value :
177			null;
178	},
179	set: function( elem, value ) {
180		var nodeName = ( elem.nodeName || "" ).toLowerCase();
181		if ( nodeName === "button" ) {
182			return valueAttrSet.apply( this, arguments );
183		}
184		if ( nodeName !== "input" && nodeName !== "option" ) {
185			migrateWarn("jQuery.fn.attr('value', val) no longer sets properties");
186		}
187		// Does not return so that setAttribute is also used
188		elem.value = value;
189	}
190};
191
192
193var matched, browser,
194	oldInit = jQuery.fn.init,
195	oldParseJSON = jQuery.parseJSON,
196	// Note this does NOT include the #9521 XSS fix from 1.7!
197	rquickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*|#([\w\-]*))$/;
198
199// $(html) "looks like html" rule change
200jQuery.fn.init = function( selector, context, rootjQuery ) {
201	var match;
202
203	if ( selector && typeof selector === "string" && !jQuery.isPlainObject( context ) &&
204			(match = rquickExpr.exec( selector )) && match[1] ) {
205		// This is an HTML string according to the "old" rules; is it still?
206		if ( selector.charAt( 0 ) !== "<" ) {
207			migrateWarn("$(html) HTML strings must start with '<' character");
208		}
209		// Now process using loose rules; let pre-1.8 play too
210		if ( context && context.context ) {
211			// jQuery object as context; parseHTML expects a DOM object
212			context = context.context;
213		}
214		if ( jQuery.parseHTML ) {
215			return oldInit.call( this, jQuery.parseHTML( jQuery.trim(selector), context, true ),
216					context, rootjQuery );
217		}
218	}
219	return oldInit.apply( this, arguments );
220};
221jQuery.fn.init.prototype = jQuery.fn;
222
223// Let $.parseJSON(falsy_value) return null
224jQuery.parseJSON = function( json ) {
225	if ( !json && json !== null ) {
226		migrateWarn("jQuery.parseJSON requires a valid JSON string");
227		return null;
228	}
229	return oldParseJSON.apply( this, arguments );
230};
231
232jQuery.uaMatch = function( ua ) {
233	ua = ua.toLowerCase();
234
235	var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
236		/(webkit)[ \/]([\w.]+)/.exec( ua ) ||
237		/(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
238		/(msie) ([\w.]+)/.exec( ua ) ||
239		ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
240		[];
241
242	return {
243		browser: match[ 1 ] || "",
244		version: match[ 2 ] || "0"
245	};
246};
247
248// Don't clobber any existing jQuery.browser in case it's different
249if ( !jQuery.browser ) {
250	matched = jQuery.uaMatch( navigator.userAgent );
251	browser = {};
252
253	if ( matched.browser ) {
254		browser[ matched.browser ] = true;
255		browser.version = matched.version;
256	}
257
258	// Chrome is Webkit, but Webkit is also Safari.
259	if ( browser.chrome ) {
260		browser.webkit = true;
261	} else if ( browser.webkit ) {
262		browser.safari = true;
263	}
264
265	jQuery.browser = browser;
266}
267
268// Warn if the code tries to get jQuery.browser
269migrateWarnProp( jQuery, "browser", jQuery.browser, "jQuery.browser is deprecated" );
270
271jQuery.sub = function() {
272	function jQuerySub( selector, context ) {
273		return new jQuerySub.fn.init( selector, context );
274	}
275	jQuery.extend( true, jQuerySub, this );
276	jQuerySub.superclass = this;
277	jQuerySub.fn = jQuerySub.prototype = this();
278	jQuerySub.fn.constructor = jQuerySub;
279	jQuerySub.sub = this.sub;
280	jQuerySub.fn.init = function init( selector, context ) {
281		if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
282			context = jQuerySub( context );
283		}
284
285		return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
286	};
287	jQuerySub.fn.init.prototype = jQuerySub.fn;
288	var rootjQuerySub = jQuerySub(document);
289	migrateWarn( "jQuery.sub() is deprecated" );
290	return jQuerySub;
291};
292
293
294// Ensure that $.ajax gets the new parseJSON defined in core.js
295jQuery.ajaxSetup({
296	converters: {
297		"text json": jQuery.parseJSON
298	}
299});
300
301
302var oldFnData = jQuery.fn.data;
303
304jQuery.fn.data = function( name ) {
305	var ret, evt,
306		elem = this[0];
307
308	// Handles 1.7 which has this behavior and 1.8 which doesn't
309	if ( elem && name === "events" && arguments.length === 1 ) {
310		ret = jQuery.data( elem, name );
311		evt = jQuery._data( elem, name );
312		if ( ( ret === undefined || ret === evt ) && evt !== undefined ) {
313			migrateWarn("Use of jQuery.fn.data('events') is deprecated");
314			return evt;
315		}
316	}
317	return oldFnData.apply( this, arguments );
318};
319
320
321var rscriptType = /\/(java|ecma)script/i,
322	oldSelf = jQuery.fn.andSelf || jQuery.fn.addBack;
323
324jQuery.fn.andSelf = function() {
325	migrateWarn("jQuery.fn.andSelf() replaced by jQuery.fn.addBack()");
326	return oldSelf.apply( this, arguments );
327};
328
329// Since jQuery.clean is used internally on older versions, we only shim if it's missing
330if ( !jQuery.clean ) {
331	jQuery.clean = function( elems, context, fragment, scripts ) {
332		// Set context per 1.8 logic
333		context = context || document;
334		context = !context.nodeType && context[0] || context;
335		context = context.ownerDocument || context;
336
337		migrateWarn("jQuery.clean() is deprecated");
338
339		var i, elem, handleScript, jsTags,
340			ret = [];
341
342		jQuery.merge( ret, jQuery.buildFragment( elems, context ).childNodes );
343
344		// Complex logic lifted directly from jQuery 1.8
345		if ( fragment ) {
346			// Special handling of each script element
347			handleScript = function( elem ) {
348				// Check if we consider it executable
349				if ( !elem.type || rscriptType.test( elem.type ) ) {
350					// Detach the script and store it in the scripts array (if provided) or the fragment
351					// Return truthy to indicate that it has been handled
352					return scripts ?
353						scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
354						fragment.appendChild( elem );
355				}
356			};
357
358			for ( i = 0; (elem = ret[i]) != null; i++ ) {
359				// Check if we're done after handling an executable script
360				if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
361					// Append to fragment and handle embedded scripts
362					fragment.appendChild( elem );
363					if ( typeof elem.getElementsByTagName !== "undefined" ) {
364						// handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
365						jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
366
367						// Splice the scripts into ret after their former ancestor and advance our index beyond them
368						ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
369						i += jsTags.length;
370					}
371				}
372			}
373		}
374
375		return ret;
376	};
377}
378
379var eventAdd = jQuery.event.add,
380	eventRemove = jQuery.event.remove,
381	eventTrigger = jQuery.event.trigger,
382	oldToggle = jQuery.fn.toggle,
383	oldLive = jQuery.fn.live,
384	oldDie = jQuery.fn.die,
385	ajaxEvents = "ajaxStart|ajaxStop|ajaxSend|ajaxComplete|ajaxError|ajaxSuccess",
386	rajaxEvent = new RegExp( "\\b(?:" + ajaxEvents + ")\\b" ),
387	rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
388	hoverHack = function( events ) {
389		if ( typeof( events ) !== "string" || jQuery.event.special.hover ) {
390			return events;
391		}
392		if ( rhoverHack.test( events ) ) {
393			migrateWarn("'hover' pseudo-event is deprecated, use 'mouseenter mouseleave'");
394		}
395		return events && events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
396	};
397
398// Event props removed in 1.9, put them back if needed; no practical way to warn them
399if ( jQuery.event.props && jQuery.event.props[ 0 ] !== "attrChange" ) {
400	jQuery.event.props.unshift( "attrChange", "attrName", "relatedNode", "srcElement" );
401}
402
403// Undocumented jQuery.event.handle was "deprecated" in jQuery 1.7
404if ( jQuery.event.dispatch ) {
405	migrateWarnProp( jQuery.event, "handle", jQuery.event.dispatch, "jQuery.event.handle is undocumented and deprecated" );
406}
407
408// Support for 'hover' pseudo-event and ajax event warnings
409jQuery.event.add = function( elem, types, handler, data, selector ){
410	if ( elem !== document && rajaxEvent.test( types ) ) {
411		migrateWarn( "AJAX events should be attached to document: " + types );
412	}
413	eventAdd.call( this, elem, hoverHack( types || "" ), handler, data, selector );
414};
415jQuery.event.remove = function( elem, types, handler, selector, mappedTypes ){
416	eventRemove.call( this, elem, hoverHack( types ) || "", handler, selector, mappedTypes );
417};
418
419jQuery.fn.error = function() {
420	var args = Array.prototype.slice.call( arguments, 0);
421	migrateWarn("jQuery.fn.error() is deprecated");
422	args.splice( 0, 0, "error" );
423	if ( arguments.length ) {
424		return this.bind.apply( this, args );
425	}
426	// error event should not bubble to window, although it does pre-1.7
427	this.triggerHandler.apply( this, args );
428	return this;
429};
430
431jQuery.fn.toggle = function( fn, fn2 ) {
432
433	// Don't mess with animation or css toggles
434	if ( !jQuery.isFunction( fn ) || !jQuery.isFunction( fn2 ) ) {
435		return oldToggle.apply( this, arguments );
436	}
437	migrateWarn("jQuery.fn.toggle(handler, handler...) is deprecated");
438
439	// Save reference to arguments for access in closure
440	var args = arguments,
441		guid = fn.guid || jQuery.guid++,
442		i = 0,
443		toggler = function( event ) {
444			// Figure out which function to execute
445			var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
446			jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
447
448			// Make sure that clicks stop
449			event.preventDefault();
450
451			// and execute the function
452			return args[ lastToggle ].apply( this, arguments ) || false;
453		};
454
455	// link all the functions, so any of them can unbind this click handler
456	toggler.guid = guid;
457	while ( i < args.length ) {
458		args[ i++ ].guid = guid;
459	}
460
461	return this.click( toggler );
462};
463
464jQuery.fn.live = function( types, data, fn ) {
465	migrateWarn("jQuery.fn.live() is deprecated");
466	if ( oldLive ) {
467		return oldLive.apply( this, arguments );
468	}
469	jQuery( this.context ).on( types, this.selector, data, fn );
470	return this;
471};
472
473jQuery.fn.die = function( types, fn ) {
474	migrateWarn("jQuery.fn.die() is deprecated");
475	if ( oldDie ) {
476		return oldDie.apply( this, arguments );
477	}
478	jQuery( this.context ).off( types, this.selector || "**", fn );
479	return this;
480};
481
482// Turn global events into document-triggered events
483jQuery.event.trigger = function( event, data, elem, onlyHandlers  ){
484	if ( !elem && !rajaxEvent.test( event ) ) {
485		migrateWarn( "Global events are undocumented and deprecated" );
486	}
487	return eventTrigger.call( this,  event, data, elem || document, onlyHandlers  );
488};
489jQuery.each( ajaxEvents.split("|"),
490	function( _, name ) {
491		jQuery.event.special[ name ] = {
492			setup: function() {
493				var elem = this;
494
495				// The document needs no shimming; must be !== for oldIE
496				if ( elem !== document ) {
497					jQuery.event.add( document, name + "." + jQuery.guid, function() {
498						jQuery.event.trigger( name, null, elem, true );
499					});
500					jQuery._data( this, name, jQuery.guid++ );
501				}
502				return false;
503			},
504			teardown: function() {
505				if ( this !== document ) {
506					jQuery.event.remove( document, name + "." + jQuery._data( this, name ) );
507				}
508				return false;
509			}
510		};
511	}
512);
513
514
515})( jQuery, window );
516/*!
517 * jQuery BBQ: Back Button & Query Library - v1.2.1 - 2/17/2010
518 * http://benalman.com/projects/jquery-bbq-plugin/
519 * 
520 * Copyright (c) 2010 "Cowboy" Ben Alman
521 * Dual licensed under the MIT and GPL licenses.
522 * http://benalman.com/about/license/
523 */
524
525// Script: jQuery BBQ: Back Button & Query Library
526//
527// *Version: 1.2.1, Last updated: 2/17/2010*
528// 
529// Project Home - http://benalman.com/projects/jquery-bbq-plugin/
530// GitHub       - http://github.com/cowboy/jquery-bbq/
531// Source       - http://github.com/cowboy/jquery-bbq/raw/master/jquery.ba-bbq.js
532// (Minified)   - http://github.com/cowboy/jquery-bbq/raw/master/jquery.ba-bbq.min.js (4.0kb)
533// 
534// About: License
535// 
536// Copyright (c) 2010 "Cowboy" Ben Alman,
537// Dual licensed under the MIT and GPL licenses.
538// http://benalman.com/about/license/
539// 
540// About: Examples
541// 
542// These working examples, complete with fully commented code, illustrate a few
543// ways in which this plugin can be used.
544// 
545// Basic AJAX     - http://benalman.com/code/projects/jquery-bbq/examples/fragment-basic/
546// Advanced AJAX  - http://benalman.com/code/projects/jquery-bbq/examples/fragment-advanced/
547// jQuery UI Tabs - http://benalman.com/code/projects/jquery-bbq/examples/fragment-jquery-ui-tabs/
548// Deparam        - http://benalman.com/code/projects/jquery-bbq/examples/deparam/
549// 
550// About: Support and Testing
551// 
552// Information about what version or versions of jQuery this plugin has been
553// tested with, what browsers it has been tested in, and where the unit tests
554// reside (so you can test it yourself).
555// 
556// jQuery Versions - 1.3.2, 1.4.1, 1.4.2
557// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4,
558//                   Chrome 4-5, Opera 9.6-10.1.
559// Unit Tests      - http://benalman.com/code/projects/jquery-bbq/unit/
560// 
561// About: Release History
562// 
563// 1.2.1 - (2/17/2010) Actually fixed the stale window.location Safari bug from
564//         <jQuery hashchange event> in BBQ, which was the main reason for the
565//         previous release!
566// 1.2   - (2/16/2010) Integrated <jQuery hashchange event> v1.2, which fixes a
567//         Safari bug, the event can now be bound before DOM ready, and IE6/7
568//         page should no longer scroll when the event is first bound. Also
569//         added the <jQuery.param.fragment.noEscape> method, and reworked the
570//         <hashchange event (BBQ)> internal "add" method to be compatible with
571//         changes made to the jQuery 1.4.2 special events API.
572// 1.1.1 - (1/22/2010) Integrated <jQuery hashchange event> v1.1, which fixes an
573//         obscure IE8 EmulateIE7 meta tag compatibility mode bug.
574// 1.1   - (1/9/2010) Broke out the jQuery BBQ event.special <hashchange event>
575//         functionality into a separate plugin for users who want just the
576//         basic event & back button support, without all the extra awesomeness
577//         that BBQ provides. This plugin will be included as part of jQuery BBQ,
578//         but also be available separately. See <jQuery hashchange event>
579//         plugin for more information. Also added the <jQuery.bbq.removeState>
580//         method and added additional <jQuery.deparam> examples.
581// 1.0.3 - (12/2/2009) Fixed an issue in IE 6 where location.search and
582//         location.hash would report incorrectly if the hash contained the ?
583//         character. Also <jQuery.param.querystring> and <jQuery.param.fragment>
584//         will no longer parse params out of a URL that doesn't contain ? or #,
585//         respectively.
586// 1.0.2 - (10/10/2009) Fixed an issue in IE 6/7 where the hidden IFRAME caused
587//         a "This page contains both secure and nonsecure items." warning when
588//         used on an https:// page.
589// 1.0.1 - (10/7/2009) Fixed an issue in IE 8. Since both "IE7" and "IE8
590//         Compatibility View" modes erroneously report that the browser
591//         supports the native window.onhashchange event, a slightly more
592//         robust test needed to be added.
593// 1.0   - (10/2/2009) Initial release
594
595(function($,window){
596  '$:nomunge'; // Used by YUI compressor.
597  
598  // Some convenient shortcuts.
599  var undefined,
600    aps = Array.prototype.slice,
601    decode = decodeURIComponent,
602    
603    // Method / object references.
604    jq_param = $.param,
605    jq_param_fragment,
606    jq_deparam,
607    jq_deparam_fragment,
608    jq_bbq = $.bbq = $.bbq || {},
609    jq_bbq_pushState,
610    jq_bbq_getState,
611    jq_elemUrlAttr,
612    jq_event_special = $.event.special,
613    
614    // Reused strings.
615    str_hashchange = 'hashchange',
616    str_querystring = 'querystring',
617    str_fragment = 'fragment',
618    str_elemUrlAttr = 'elemUrlAttr',
619    str_location = 'location',
620    str_href = 'href',
621    str_src = 'src',
622    
623    // Reused RegExp.
624    re_trim_querystring = /^.*\?|#.*$/g,
625    re_trim_fragment = /^.*\#/,
626    re_no_escape,
627    
628    // Used by jQuery.elemUrlAttr.
629    elemUrlAttr_cache = {};
630  
631  // A few commonly used bits, broken out to help reduce minified file size.
632  
633  function is_string( arg ) {
634    return typeof arg === 'string';
635  };
636  
637  // Why write the same function twice? Let's curry! Mmmm, curry..
638  
639  function curry( func ) {
640    var args = aps.call( arguments, 1 );
641    
642    return function() {
643      return func.apply( this, args.concat( aps.call( arguments ) ) );
644    };
645  };
646  
647  // Get location.hash (or what you'd expect location.hash to be) sans any
648  // leading #. Thanks for making this necessary, Firefox!
649  function get_fragment( url ) {
650    return url.replace( /^[^#]*#?(.*)$/, '$1' );
651  };
652  
653  // Get location.search (or what you'd expect location.search to be) sans any
654  // leading #. Thanks for making this necessary, IE6!
655  function get_querystring( url ) {
656    return url.replace( /(?:^[^?#]*\?([^#]*).*$)?.*/, '$1' );
657  };
658  
659  // Section: Param (to string)
660  // 
661  // Method: jQuery.param.querystring
662  // 
663  // Retrieve the query string from a URL or if no arguments are passed, the
664  // current window.location.
665  // 
666  // Usage:
667  // 
668  // > jQuery.param.querystring( [ url ] );
669  // 
670  // Arguments:
671  // 
672  //  url - (String) A URL containing query string params to be parsed. If url
673  //    is not passed, the current window.location is used.
674  // 
675  // Returns:
676  // 
677  //  (String) The parsed query string, with any leading "?" removed.
678  //
679  
680  // Method: jQuery.param.querystring (build url)
681  // 
682  // Merge a URL, with or without pre-existing query string params, plus any
683  // object, params string or URL containing query string params into a new URL.
684  // 
685  // Usage:
686  // 
687  // > jQuery.param.querystring( url, params [, merge_mode ] );
688  // 
689  // Arguments:
690  // 
691  //  url - (String) A valid URL for params to be merged into. This URL may
692  //    contain a query string and/or fragment (hash).
693  //  params - (String) A params string or URL containing query string params to
694  //    be merged into url.
695  //  params - (Object) A params object to be merged into url.
696  //  merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
697  //    specified, and is as-follows:
698  // 
699  //    * 0: params in the params argument will override any query string
700  //         params in url.
701  //    * 1: any query string params in url will override params in the params
702  //         argument.
703  //    * 2: params argument will completely replace any query string in url.
704  // 
705  // Returns:
706  // 
707  //  (String) Either a params string with urlencoded data or a URL with a
708  //    urlencoded query string in the format 'a=b&c=d&e=f'.
709  
710  // Method: jQuery.param.fragment
711  // 
712  // Retrieve the fragment (hash) from a URL or if no arguments are passed, the
713  // current window.location.
714  // 
715  // Usage:
716  // 
717  // > jQuery.param.fragment( [ url ] );
718  // 
719  // Arguments:
720  // 
721  //  url - (String) A URL containing fragment (hash) params to be parsed. If
722  //    url is not passed, the current window.location is used.
723  // 
724  // Returns:
725  // 
726  //  (String) The parsed fragment (hash) string, with any leading "#" removed.
727  
728  // Method: jQuery.param.fragment (build url)
729  // 
730  // Merge a URL, with or without pre-existing fragment (hash) params, plus any
731  // object, params string or URL containing fragment (hash) params into a new
732  // URL.
733  // 
734  // Usage:
735  // 
736  // > jQuery.param.fragment( url, params [, merge_mode ] );
737  // 
738  // Arguments:
739  // 
740  //  url - (String) A valid URL for params to be merged into. This URL may
741  //    contain a query string and/or fragment (hash).
742  //  params - (String) A params string or URL containing fragment (hash) params
743  //    to be merged into url.
744  //  params - (Object) A params object to be merged into url.
745  //  merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
746  //    specified, and is as-follows:
747  // 
748  //    * 0: params in the params argument will override any fragment (hash)
749  //         params in url.
750  //    * 1: any fragment (hash) params in url will override params in the
751  //         params argument.
752  //    * 2: params argument will completely replace any query string in url.
753  // 
754  // Returns:
755  // 
756  //  (String) Either a params string with urlencoded data or a URL with a
757  //    urlencoded fragment (hash) in the format 'a=b&c=d&e=f'.
758  
759  function jq_param_sub( is_fragment, get_func, url, params, merge_mode ) {
760    var result,
761      qs,
762      matches,
763      url_params,
764      hash;
765    
766    if ( params !== undefined ) {
767      // Build URL by merging params into url string.
768      
769      // matches[1] = url part that precedes params, not including trailing ?/#
770      // matches[2] = params, not including leading ?/#
771      // matches[3] = if in 'querystring' mode, hash including leading #, otherwise ''
772      matches = url.match( is_fragment ? /^([^#]*)\#?(.*)$/ : /^([^#?]*)\??([^#]*)(#?.*)/ );
773      
774      // Get the hash if in 'querystring' mode, and it exists.
775      hash = matches[3] || '';
776      
777      if ( merge_mode === 2 && is_string( params ) ) {
778        // If merge_mode is 2 and params is a string, merge the fragment / query
779        // string into the URL wholesale, without converting it into an object.
780        qs = params.replace( is_fragment ? re_trim_fragment : re_trim_querystring, '' );
781        
782      } else {
783        // Convert relevant params in url to object.
784        url_params = jq_deparam( matches[2] );
785        
786        params = is_string( params )
787          
788          // Convert passed params string into object.
789          ? jq_deparam[ is_fragment ? str_fragment : str_querystring ]( params )
790          
791          // Passed params object.
792          : params;
793        
794        qs = merge_mode === 2 ? params                              // passed params replace url params
795          : merge_mode === 1  ? $.extend( {}, params, url_params )  // url params override passed params
796          : $.extend( {}, url_params, params );                     // passed params override url params
797        
798        // Convert params object to a string.
799        qs = jq_param( qs );
800        
801        // Unescape characters specified via $.param.noEscape. Since only hash-
802        // history users have requested this feature, it's only enabled for
803        // fragment-related params strings.
804        if ( is_fragment ) {
805          qs = qs.replace( re_no_escape, decode );
806        }
807      }
808      
809      // Build URL from the base url, querystring and hash. In 'querystring'
810      // mode, ? is only added if a query string exists. In 'fragment' mode, #
811      // is always added.
812      result = matches[1] + ( is_fragment ? '#' : qs || !matches[1] ? '?' : '' ) + qs + hash;
813      
814    } else {
815      // If URL was passed in, parse params from URL string, otherwise parse
816      // params from window.location.
817      result = get_func( url !== undefined ? url : window[ str_location ][ str_href ] );
818    }
819    
820    return result;
821  };
822  
823  jq_param[ str_querystring ]                  = curry( jq_param_sub, 0, get_querystring );
824  jq_param[ str_fragment ] = jq_param_fragment = curry( jq_param_sub, 1, get_fragment );
825  
826  // Method: jQuery.param.fragment.noEscape
827  // 
828  // Specify characters that will be left unescaped when fragments are created
829  // or merged using <jQuery.param.fragment>, or when the fragment is modified
830  // using <jQuery.bbq.pushState>. This option only applies to serialized data
831  // object fragments, and not set-as-string fragments. Does not affect the
832  // query string. Defaults to ",/" (comma, forward slash).
833  // 
834  // Note that this is considered a purely aesthetic option, and will help to
835  // create URLs that "look pretty" in the address bar or bookmarks, without
836  // affecting functionality in any way. That being said, be careful to not
837  // unescape characters that are used as delimiters or serve a special
838  // purpose, such as the "#?&=+" (octothorpe, question mark, ampersand,
839  // equals, plus) characters.
840  // 
841  // Usage:
842  // 
843  // > jQuery.param.fragment.noEscape( [ chars ] );
844  // 
845  // Arguments:
846  // 
847  //  chars - (String) The characters to not escape in the fragment. If
848  //    unspecified, defaults to empty string (escape all characters).
849  // 
850  // Returns:
851  // 
852  //  Nothing.
853  
854  jq_param_fragment.noEscape = function( chars ) {
855    chars = chars || '';
856    var arr = $.map( chars.split(''), encodeURIComponent );
857    re_no_escape = new RegExp( arr.join('|'), 'g' );
858  };
859  
860  // A sensible default. These are the characters people seem to complain about
861  // "uglifying up the URL" the most.
862  jq_param_fragment.noEscape( ',/' );
863  
864  // Section: Deparam (from string)
865  // 
866  // Method: jQuery.deparam
867  // 
868  // Deserialize a params string into an object, optionally coercing numbers,
869  // booleans, null and undefined values; this method is the counterpart to the
870  // internal jQuery.param method.
871  // 
872  // Usage:
873  // 
874  // > jQuery.deparam( params [, coerce ] );
875  // 
876  // Arguments:
877  // 
878  //  params - (String) A params string to be parsed.
879  //  coerce - (Boolean) If true, coerces any numbers or true, false, null, and
880  //    undefined to their actual value. Defaults to false if omitted.
881  // 
882  // Returns:
883  // 
884  //  (Object) An object representing the deserialized params string.
885  
886  $.deparam = jq_deparam = function( params, coerce ) {
887    var obj = {},
888      coerce_types = { 'true': !0, 'false': !1, 'null': null };
889    
890    // Iterate over all name=value pairs.
891    $.each( params.replace( /\+/g, ' ' ).split( '&' ), function(j,v){
892      var param = v.split( '=' ),
893        key = decode( param[0] ),
894        val,
895        cur = obj,
896        i = 0,
897        
898        // If key is more complex than 'foo', like 'a[]' or 'a[b][c]', split it
899        // into its component parts.
900        keys = key.split( '][' ),
901        keys_last = keys.length - 1;
902      
903      // If the first keys part contains [ and the last ends with ], then []
904      // are correctly balanced.
905      if ( /\[/.test( keys[0] ) && /\]$/.test( keys[ keys_last ] ) ) {
906        // Remove the trailing ] from the last keys part.
907        keys[ keys_last ] = keys[ keys_last ].replace( /\]$/, '' );
908        
909        // Split first keys part into two parts on the [ and add them back onto
910        // the beginning of the keys array.
911        keys = keys.shift().split('[').concat( keys );
912        
913        keys_last = keys.length - 1;
914      } else {
915        // Basic 'foo' style key.
916        keys_last = 0;
917      }
918      
919      // Are we dealing with a name=value pair, or just a name?
920      if ( param.length === 2 ) {
921        val = decode( param[1] );
922        
923        // Coerce values.
924        if ( coerce ) {
925          val = val && !isNaN(val)            ? +val              // number
926            : val === 'undefined'             ? undefined         // undefined
927            : coerce_types[val] !== undefined ? coerce_types[val] // true, false, null
928            : val;                                                // string
929        }
930        
931        if ( keys_last ) {
932          // Complex key, build deep object structure based on a few rules:
933          // * The 'cur' pointer starts at the object top-level.
934          // * [] = array push (n is set to array length), [n] = array if n is 
935          //   numeric, otherwise object.
936          // * If at the last keys part, set the value.
937          // * For each keys part, if the current level is undefined create an
938          //   object or array based on the type of the next keys part.
939          // * Move the 'cur' pointer to the next level.
940          // * Rinse & repeat.
941          for ( ; i <= keys_last; i++ ) {
942            key = keys[i] === '' ? cur.length : keys[i];
943            cur = cur[key] = i < keys_last
944              ? cur[key] || ( keys[i+1] && isNaN( keys[i+1] ) ? {} : [] )
945              : val;
946          }
947          
948        } else {
949          // Simple key, even simpler rules, since only scalars and shallow
950          // arrays are allowed.
951          
952          if ( $.isArray( obj[key] ) ) {
953            // val is already an array, so push on the next value.
954            obj[key].push( val );
955            
956          } else if ( obj[key] !== undefined ) {
957            // val isn't an array, but since a second value has been specified,
958            // convert val into an array.
959            obj[key] = [ obj[key], val ];
960            
961          } else {
962            // val is a scalar.
963            obj[key] = val;
964          }
965        }
966        
967      } else if ( key ) {
968        // No value was defined, so set something meaningful.
969        obj[key] = coerce
970          ? undefined
971          : '';
972      }
973    });
974    
975    return obj;
976  };
977  
978  // Method: jQuery.deparam.querystring
979  // 
980  // Parse the query string from a URL or the current window.location,
981  // deserializing it into an object, optionally coercing numbers, booleans,
982  // null and undefined values.
983  // 
984  // Usage:
985  // 
986  // > jQuery.deparam.querystring( [ url ] [, coerce ] );
987  // 
988  // Arguments:
989  // 
990  //  url - (String) An optional params string or URL containing query string
991  //    params to be parsed. If url is omitted, the current window.location
992  //    is used.
993  //  coerce - (Boolean) If true, coerces any numbers or true, false, null, and
994  //    undefined to their actual value. Defaults to false if omitted.
995  // 
996  // Returns:
997  // 
998  //  (Object) An object representing the deserialized params string.
999  
1000  // Method: jQuery.deparam.fragment
1001  // 
1002  // Parse the fragment (hash) from a URL or the current window.location,
1003  // deserializing it into an object, optionally coercing numbers, booleans,
1004  // null and undefined values.
1005  // 
1006  // Usage:
1007  // 
1008  // > jQuery.deparam.fragment( [ url ] [, coerce ] );
1009  // 
1010  // Arguments:
1011  // 
1012  //  url - (String) An optional params string or URL containing fragment (hash)
1013  //    params to be parsed. If url is omitted, the current window.location
1014  //    is used.
1015  //  coerce - (Boolean) If true, coerces any numbers or true, false, null, and
1016  //    undefined to their actual value. Defaults to false if omitted.
1017  // 
1018  // Returns:
1019  // 
1020  //  (Object) An object representing the deserialized params string.
1021  
1022  function jq_deparam_sub( is_fragment, url_or_params, coerce ) {
1023    if ( url_or_params === undefined || typeof url_or_params === 'boolean' ) {
1024      // url_or_params not specified.
1025      coerce = url_or_params;
1026      url_or_params = jq_param[ is_fragment ? str_fragment : str_querystring ]();
1027    } else {
1028      url_or_params = is_string( url_or_params )
1029        ? url_or_params.replace( is_fragment ? re_trim_fragment : re_trim_querystring, '' )
1030        : url_or_params;
1031    }
1032    
1033    return jq_deparam( url_or_params, coerce );
1034  };
1035  
1036  jq_deparam[ str_querystring ]                    = curry( jq_deparam_sub, 0 );
1037  jq_deparam[ str_fragment ] = jq_deparam_fragment = curry( jq_deparam_sub, 1 );
1038  
1039  // Section: Element manipulation
1040  // 
1041  // Method: jQuery.elemUrlAttr
1042  // 
1043  // Get the internal "Default URL attribute per tag" list, or augment the list
1044  // with additional tag-attribute pairs, in case the defaults are insufficient.
1045  // 
1046  // In the <jQuery.fn.querystring> and <jQuery.fn.fragment> methods, this list
1047  // is used to determine which attribute contains the URL to be modified, if
1048  // an "attr" param is not specified.
1049  // 
1050  // Default Tag-Attribute List:
1051  // 
1052  //  a      - href
1053  //  base   - href
1054  //  iframe - src
1055  //  img    - src
1056  //  input  - src
1057  //  form   - action
1058  //  link   - href
1059  //  script - src
1060  // 
1061  // Usage:
1062  // 
1063  // > jQuery.elemUrlAttr( [ tag_attr ] );
1064  // 
1065  // Arguments:
1066  // 
1067  //  tag_attr - (Object) An object containing a list of tag names and their
1068  //    associated default attribute names in the format { tag: 'attr', ... } to
1069  //    be merged into the internal tag-attribute list.
1070  // 
1071  // Returns:
1072  // 
1073  //  (Object) An object containing all stored tag-attribute values.
1074  
1075  // Only define function and set defaults if function doesn't already exist, as
1076  // the urlInternal plugin will provide this method as well.
1077  $[ str_elemUrlAttr ] || ($[ str_elemUrlAttr ] = function( obj ) {
1078    return $.extend( elemUrlAttr_cache, obj );
1079  })({
1080    a: str_href,
1081    base: str_href,
1082    iframe: str_src,
1083    img: str_src,
1084    input: str_src,
1085    form: 'action',
1086    link: str_href,
1087    script: str_src
1088  });
1089  
1090  jq_elemUrlAttr = $[ str_elemUrlAttr ];
1091  
1092  // Method: jQuery.fn.querystring
1093  // 
1094  // Update URL attribute in one or more elements, merging the current URL (with
1095  // or without pre-existing query string params) plus any params object or
1096  // string into a new URL, which is then set into that attribute. Like
1097  // <jQuery.param.querystring (build url)>, but for all elements in a jQuery
1098  // collection.
1099  // 
1100  // Usage:
1101  // 
1102  // > jQuery('selector').querystring( [ attr, ] params [, merge_mode ] );
1103  // 
1104  // Arguments:
1105  // 
1106  //  attr - (String) Optional name of an attribute that will contain a URL to
1107  //    merge params or url into. See <jQuery.elemUrlAttr> for a list of default
1108  //    attributes.
1109  //  params - (Object) A params object to be merged into the URL attribute.
1110  //  params - (String) A URL containing query string params, or params string
1111  //    to be merged into the URL attribute.
1112  //  merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
1113  //    specified, and is as-follows:
1114  //    
1115  //    * 0: params in the params argument will override any params in attr URL.
1116  //    * 1: any params in attr URL will override params in the params argument.
1117  //    * 2: params argument will completely replace any query string in attr
1118  //         URL.
1119  // 
1120  // Returns:
1121  // 
1122  //  (jQuery) The initial jQuery collection of elements, but with modified URL
1123  //  attribute values.
1124  
1125  // Method: jQuery.fn.fragment
1126  // 
1127  // Update URL attribute in one or more elements, merging the current URL (with
1128  // or without pre-existing fragment/hash params) plus any params object or
1129  // string into a new URL, which is then set into that attribute. Like
1130  // <jQuery.param.fragment (build url)>, but for all elements in a jQuery
1131  // collection.
1132  // 
1133  // Usage:
1134  // 
1135  // > jQuery('selector').fragment( [ attr, ] params [, merge_mode ] );
1136  // 
1137  // Arguments:
1138  // 
1139  //  attr - (String) Optional name of an attribute that will contain a URL to
1140  //    merge params into. See <jQuery.elemUrlAttr> for a list of default
1141  //    attributes.
1142  //  params - (Object) A params object to be merged into the URL attribute.
1143  //  params - (String) A URL containing fragment (hash) params, or params
1144  //    string to be merged into the URL attribute.
1145  //  merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
1146  //    specified, and is as-follows:
1147  //    
1148  //    * 0: params in the params argument will override any params in attr URL.
1149  //    * 1: any params in attr URL will override params in the params argument.
1150  //    * 2: params argument will completely replace any fragment (hash) in attr
1151  //         URL.
1152  // 
1153  // Returns:
1154  // 
1155  //  (jQuery) The initial jQuery collection of elements, but with modified URL
1156  //  attribute values.
1157  
1158  function jq_fn_sub( mode, force_attr, params, merge_mode ) {
1159    if ( !is_string( params ) && typeof params !== 'object' ) {
1160      // force_attr not specified.
1161      merge_mode = params;
1162      params = force_attr;
1163      force_attr = undefined;
1164    }
1165    
1166    return this.each(function(){
1167      var that = $(this),
1168        
1169        // Get attribute specified, or default specified via $.elemUrlAttr.
1170        attr = force_attr || jq_elemUrlAttr()[ ( this.nodeName || '' ).toLowerCase() ] || '',
1171        
1172        // Get URL value.
1173        url = attr && that.attr( attr ) || '';
1174      
1175      // Update attribute with new URL.
1176      that.attr( attr, jq_param[ mode ]( url, params, merge_mode ) );
1177    });
1178    
1179  };
1180  
1181  $.fn[ str_querystring ] = curry( jq_fn_sub, str_querystring );
1182  $.fn[ str_fragment ]    = curry( jq_fn_sub, str_fragment );
1183  
1184  // Section: History, hashchange event
1185  // 
1186  // Method: jQuery.bbq.pushState
1187  // 
1188  // Adds a 'state' into the browser history at the current position, setting
1189  // location.hash and triggering any bound <hashchange event> callbacks
1190  // (provided the new state is different than the previous state).
1191  // 
1192  // If no arguments are passed, an empty state is created, which is just a
1193  // shortcut for jQuery.bbq.pushState( {}, 2 ).
1194  // 
1195  // Usage:
1196  // 
1197  // > jQuery.bbq.pushState( [ params [, merge_mode ] ] );
1198  // 
1199  // Arguments:
1200  // 
1201  //  params - (String) A serialized params string or a hash string beginning
1202  //    with # to merge into location.hash.
1203  //  params - (Object) A params object to merge into location.hash.
1204  //  merge_mode - (Number) Merge behavior defaults to 0 if merge_mode is not
1205  //    specified (unless a hash string beginning with # is specified, in which
1206  //    case merge behavior defaults to 2), and is as-follows:
1207  // 
1208  //    * 0: params in the params argument will override any params in the
1209  //         current state.
1210  //    * 1: any params in the current state will override params in the params
1211  //         argument.
1212  //    * 2: params argument will completely replace current state.
1213  // 
1214  // Returns:
1215  // 
1216  //  Nothing.
1217  // 
1218  // Additional Notes:
1219  // 
1220  //  * Setting an empty state may cause the browser to scroll.
1221  //  * Unlike the fragment and querystring methods, if a hash string beginning
1222  //    with # is specified as the params agrument, merge_mode defaults to 2.
1223  
1224  jq_bbq.pushState = jq_bbq_pushState = function( params, merge_mode ) {
1225    if ( is_string( params ) && /^#/.test( params ) && merge_mode === undefined ) {
1226      // Params string begins with # and merge_mode not specified, so completely
1227      // overwrite window.location.hash.
1228      merge_mode = 2;
1229    }
1230    
1231    var has_args = params !== undefined,
1232      // Merge params into window.location using $.param.fragment.
1233      url = jq_param_fragment( window[ str_location ][ str_href ],
1234        has_args ? params : {}, has_args ? merge_mode : 2 );
1235    
1236    // Set new window.location.href. If hash is empty, use just # to prevent
1237    // browser from reloading the page. Note that Safari 3 & Chrome barf on
1238    // location.hash = '#'.
1239    window[ str_location ][ str_href ] = url + ( /#/.test( url ) ? '' : '#' );
1240  };
1241  
1242  // Method: jQuery.bbq.getState
1243  // 
1244  // Retrieves the current 'state' from the browser history, parsing
1245  // location.hash for a specific key or returning an object containing the
1246  // entire state, optionally coercing numbers, booleans, null and undefined
1247  // values.
1248  // 
1249  // Usage:
1250  // 
1251  // > jQuery.bbq.getState( [ key ] [, coerce ] );
1252  // 
1253  // Arguments:
1254  // 
1255  //  key - (String) An optional state key for which to return a value.
1256  //  coerce - (Boolean) If true, coerces any numbers or true, false, null, and
1257  //    undefined to their actual value. Defaults to false.
1258  // 
1259  // Returns:
1260  // 
1261  //  (Anything) If key is passed, returns the value corresponding with that key
1262  //    in the location.hash 'state', or undefined. If not, an object
1263  //    representing the entire 'state' is returned.
1264  
1265  jq_bbq.getState = jq_bbq_getState = function( key, coerce ) {
1266    return key === undefined || typeof key === 'boolean'
1267      ? jq_deparam_fragment( key ) // 'key' really means 'coerce' here
1268      : jq_deparam_fragment( coerce )[ key ];
1269  };
1270  
1271  // Method: jQuery.bbq.removeState
1272  // 
1273  // Remove one or more keys from the current browser history 'state', creating
1274  // a new state, setting location.hash and triggering any bound
1275  // <hashchange event> callbacks (provided the new state is different than
1276  // the previous state).
1277  // 
1278  // If no arguments are passed, an empty state is created, which is just a
1279  // shortcut for jQuery.bbq.pushState( {}, 2 ).
1280  // 
1281  // Usage:
1282  // 
1283  // > jQuery.bbq.removeState( [ key [, key ... ] ] );
1284  // 
1285  // Arguments:
1286  // 
1287  //  key - (String) One or more key values to remove from the current state,
1288  //    passed as individual arguments.
1289  //  key - (Array) A single array argument that contains a list of key values
1290  //    to remove from the current state.
1291  // 
1292  // Returns:
1293  // 
1294  //  Nothing.
1295  // 
1296  // Additional Notes:
1297  // 
1298  //  * Setting an empty state may cause the browser to scroll.
1299  
1300  jq_bbq.removeState = function( arr ) {
1301    var state = {};
1302    
1303    // If one or more arguments is passed..
1304    if ( arr !== undefined ) {
1305      
1306      // Get the current state.
1307      state = jq_bbq_getState();
1308      
1309      // For each passed key, delete the corresponding property from the current
1310      // state.
1311      $.each( $.isArray( arr ) ? arr : arguments, function(i,v){
1312        delete state[ v ];
1313      });
1314    }
1315    
1316    // Set the state, completely overriding any existing state.
1317    jq_bbq_pushState( state, 2 );
1318  };
1319  
1320  // Event: hashchange event (BBQ)
1321  // 
1322  // Usage in jQuery 1.4 and newer:
1323  // 
1324  // In jQuery 1.4 and newer, the event object passed into any hashchange event
1325  // callback is augmented with a copy of the location.hash fragment at the time
1326  // the event was triggered as its event.fragment property. In addition, the
1327  // event.getState method operates on this property (instead of location.hash)
1328  // which allows this fragment-as-a-state to be referenced later, even after
1329  // window.location may have changed.
1330  // 
1331  // Note that event.fragment and event.getState are not defined according to
1332  // W3C (or any other) specification, but will still be available whether or
1333  // not the hashchange event exists natively in the browser, because of the
1334  // utility they provide.
1335  // 
1336  // The event.fragment property contains the output of <jQuery.param.fragment>
1337  // and the event.getState method is equivalent to the <jQuery.bbq.getState>
1338  // method.
1339  // 
1340  // > $(window).bind( 'hashchange', function( event ) {
1341  // >   var hash_str = event.fragment,
1342  // >     param_obj = event.getState(),
1343  // >     param_val = event.getState( 'param_name' ),
1344  // >     param_val_coerced = event.getState( 'param_name', true );
1345  // >   ...
1346  // > });
1347  // 
1348  // Usage in jQuery 1.3.2:
1349  // 
1350  // In jQuery 1.3.2, the event object cannot to be augmented as in jQuery 1.4+,
1351  // so the fragment state isn't bound to the event object and must instead be
1352  // parsed using the <jQuery.param.fragment> and <jQuery.bbq.getState> methods.
1353  // 
1354  // > $(window).bind( 'hashchange', function( event ) {
1355  // >   var hash_str = $.param.fragment(),
1356  // >     param_obj = $.bbq.getState(),
1357  // >     param_val = $.bbq.getState( 'param_name' ),
1358  // >     param_val_coerced = $.bbq.getState( 'param_name', true );
1359  // >   ...
1360  // > });
1361  // 
1362  // Additional Notes:
1363  // 
1364  // * Due to changes in the special events API, jQuery BBQ v1.2 or newer is
1365  //   required to enable the augmented event object in jQuery 1.4.2 and newer.
1366  // * See <jQuery hashchange event> for more detailed information.
1367  
1368  jq_event_special[ str_hashchange ] = $.extend( jq_event_special[ str_hashchange ], {
1369    
1370    // Augmenting the event object with the .fragment property and .getState
1371    // method requires jQuery 1.4 or newer. Note: with 1.3.2, everything will
1372    // work, but the event won't be augmented)
1373    add: function( handleObj ) {
1374      var old_handler;
1375      
1376      function new_handler(e) {
1377        // e.fragment is set to the value of location.hash (with any leading #
1378        // removed) at the time the event is triggered.
1379        var hash = e[ str_fragment ] = jq_param_fragment();
1380        
1381        // e.getState() works just like $.bbq.getState(), but uses the
1382        // e.fragment property stored on the event object.
1383        e.getState = function( key, coerce ) {
1384          return key === undefined || typeof key === 'boolean'
1385            ? jq_deparam( hash, key ) // 'key' really means 'coerce' here
1386            : jq_deparam( hash, coerce )[ key ];
1387        };
1388        
1389        old_handler.apply( this, arguments );
1390      };
1391      
1392      // This may seem a little complicated, but it normalizes the special event
1393      // .add method between jQuery 1.4/1.4.1 and 1.4.2+
1394      if ( $.isFunction( handleObj ) ) {
1395        // 1.4, 1.4.1
1396        old_handler = handleObj;
1397        return new_handler;
1398      } else {
1399        // 1.4.2+
1400        old_handler = handleObj.handler;
1401        handleObj.handler = new_handler;
1402      }
1403    }
1404    
1405  });
1406  
1407})(jQuery,this);
1408
1409/*!
1410 * jQuery hashchange event - v1.2 - 2/11/2010
1411 * http://benalman.com/projects/jquery-hashchange-plugin/
1412 * 
1413 * Copyright (c) 2010 "Cowboy" Ben Alman
1414 * Dual licensed under the MIT and GPL licenses.
1415 * http://benalman.com/about/license/
1416 */
1417
1418// Script: jQuery hashchange event
1419//
1420// *Version: 1.2, Last updated: 2/11/2010*
1421// 
1422// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
1423// GitHub       - http://github.com/cowboy/jquery-hashchange/
1424// Source       - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
1425// (Minified)   - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (1.1kb)
1426// 
1427// About: License
1428// 
1429// Copyright (c) 2010 "Cowboy" Ben Alman,
1430// Dual licensed under the MIT and GPL licenses.
1431// http://benalman.com/about/license/
1432// 
1433// About: Examples
1434// 
1435// This working example, complete with fully commented code, illustrate one way
1436// in which this plugin can be used.
1437// 
1438// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
1439// 
1440// About: Support and Testing
1441// 
1442// Information about what version or versions of jQuery this plugin has been
1443// tested with, what browsers it has been tested in, and where the unit tests
1444// reside (so you can test it yourself).
1445// 
1446// jQuery Versions - 1.3.2, 1.4.1, 1.4.2
1447// Browsers Tested - Internet Explorer 6-8, Firefox 2-3.7, Safari 3-4, Chrome, Opera 9.6-10.1.
1448// Unit Tests      - http://benalman.com/code/projects/jquery-hashchange/unit/
1449// 
1450// About: Known issues
1451// 
1452// While this jQuery hashchange event implementation is quite stable and robust,
1453// there are a few unfortunate browser bugs surrounding expected hashc
1453hange
1454// event-based behaviors, independent of any JavaScript window.onhashchange
1455// abstraction. See the following examples for more information:
1456// 
1457// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
1458// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
1459// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
1460// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
1461// 
1462// About: Release History
1463// 
1464// 1.2   - (2/11/2010) Fixed a bug where coming back to a page using this plugin
1465//         from a page on another domain would cause an error in Safari 4. Also,
1466//         IE6/7 Iframe is now inserted after the body (this actually works),
1467//         which prevents the page from scrolling when the event is first bound.
1468//         Event can also now be bound before DOM ready, but it won't be usable
1469//         before then in IE6/7.
1470// 1.1   - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
1471//         where browser version is incorrectly reported as 8.0, despite
1472//         inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
1473// 1.0   - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
1474//         window.onhashchange functionality into a separate plugin for users
1475//         who want just the basic event & back button support, without all the
1476//         extra awesomeness that BBQ provides. This plugin will be included as
1477//         part of jQuery BBQ, but also be available separately.
1478
1479(function($,window,undefined){
1480  '$:nomunge'; // Used by YUI compressor.
1481  
1482  // Method / object references.
1483  var fake_onhashchange,
1484    jq_event_special = $.event.special,
1485    
1486    // Reused strings.
1487    str_location = 'location',
1488    str_hashchange = 'hashchange',
1489    str_href = 'href',
1490    
1491    // IE6/7 specifically need some special love when it comes to back-button
1492    // support, so let's do a little browser sniffing..
1493    browser = $.browser,
1494    mode = document.documentMode,
1495    is_old_ie = ( navigator.appName == 'Microsoft Internet Explorer') ? true : false && ( mode === undefined || mode < 8 ),
1496    
1497    // Does the browser support window.onhashchange? Test for IE version, since
1498    // IE8 incorrectly reports this when in "IE7" or "IE8 Compatibility View"!
1499    supports_onhashchange = 'on' + str_hashchange in window && !is_old_ie;
1500  
1501  // Get location.hash (or what you'd expect location.hash to be) sans any
1502  // leading #. Thanks for making this necessary, Firefox!
1503  function get_fragment( url ) {
1504    url = url || window[ str_location ][ str_href ];
1505    return url.replace( /^[^#]*#?(.*)$/, '$1' );
1506  };
1507  
1508  // Property: jQuery.hashchangeDelay
1509  // 
1510  // The numeric interval (in milliseconds) at which the <hashchange event>
1511  // polling loop executes. Defaults to 100.
1512  
1513  $[ str_hashchange + 'Delay' ] = 100;
1514  
1515  // Event: hashchange event
1516  // 
1517  // Fired when location.hash changes. In browsers that support it, the native
1518  // window.onhashchange event is used (IE8, FF3.6), otherwise a polling loop is
1519  // initialized, running every <jQuery.hashchangeDelay> milliseconds to see if
1520  // the hash has changed. In IE 6 and 7, a hidden Iframe is created to allow
1521  // the back button and hash-based history to work.
1522  // 
1523  // Usage:
1524  // 
1525  // > $(window).bind( 'hashchange', function(e) {
1526  // >   var hash = location.hash;
1527  // >   ...
1528  // > });
1529  // 
1530  // Additional Notes:
1531  // 
1532  // * The polling loop and Iframe are not created until at least one callback
1533  //   is actually bound to 'hashchange'.
1534  // * If you need the bound callback(s) to execute immediately, in cases where
1535  //   the page 'state' exists on page load (via bookmark or page refresh, for
1536  //   example) use $(window).trigger( 'hashchange' );
1537  // * The event can be bound before DOM ready, but since it won't be usable
1538  //   before then in IE6/7 (due to the necessary Iframe), recommended usage is
1539  //   to bind it inside a $(document).ready() callback.
1540  
1541  jq_event_special[ str_hashchange ] = $.extend( jq_event_special[ str_hashchange ], {
1542    
1543    // Called only when the first 'hashchange' event is bound to window.
1544    setup: function() {
1545      // If window.onhashchange is supported natively, there's nothing to do..
1546      if ( supports_onhashchange ) { return false; }
1547      
1548      // Otherwise, we need to create our own. And we don't want to call this
1549      // until the user binds to the event, just in case they never do, since it
1550      // will create a polling loop and possibly even a hidden Iframe.
1551      $( fake_onhashchange.start );
1552    },
1553    
1554    // Called only when the last 'hashchange' event is unbound from window.
1555    teardown: function() {
1556      // If window.onhashchange is supported natively, there's nothing to do..
1557      if ( supports_onhashchange ) { return false; }
1558      
1559      // Otherwise, we need to stop ours (if possible).
1560      $( fake_onhashchange.stop );
1561    }
1562    
1563  });
1564  
1565  // fake_onhashchange does all the work of triggering the window.onhashchange
1566  // event for browsers that don't natively support it, including creating a
1567  // polling loop to watch for hash changes and in IE 6/7 creating a hidden
1568  // Iframe to enable back and forward.
1569  fake_onhashchange = (function(){
1570    var self = {},
1571      timeout_id,
1572      iframe,
1573      set_history,
1574      get_history;
1575    
1576    // Initialize. In IE 6/7, creates a hidden Iframe for history handling.
1577    function init(){
1578      // Most browsers don't need special methods here..
1579      set_history = get_history = function(val){ return val; };
1580      
1581      // But IE6/7 do!
1582      if ( is_old_ie ) {
1583        
1584        // Create hidden Iframe after the end of the body to prevent initial
1585        // page load from scrolling unnecessarily.
1586        iframe = $('<iframe src="javascript:0"/>').hide().insertAfter( 'body' )[0].contentWindow;
1587        
1588        // Get history by looking at the hidden Iframe's location.hash.
1589        get_history = function() {
1590          return get_fragment( iframe.document[ str_location ][ str_href ] );
1591        };
1592        
1593        // Set a new history item by opening and then closing the Iframe
1594        // document, *then* setting its location.hash.
1595        set_history = function( hash, history_hash ) {
1596          if ( hash !== history_hash ) {
1597            var doc = iframe.document;
1598            doc.open().close();
1599            doc[ str_location ].hash = '#' + hash;
1600          }
1601        };
1602        
1603        // Set initial history.
1604        set_history( get_fragment() );
1605      }
1606    };
1607    
1608    // Start the polling loop.
1609    self.start = function() {
1610      // Polling loop is already running!
1611      if ( timeout_id ) { return; }
1612      
1613      // Remember the initial hash so it doesn't get triggered immediately.
1614      var last_hash = get_fragment();
1615      
1616      // Initialize if not yet initialized.
1617      set_history || init();
1618      
1619      // This polling loop checks every $.hashchangeDelay milliseconds to see if
1620      // location.hash has changed, and triggers the 'hashchange' event on
1621      // window when necessary.
1622      (function loopy(){
1623        var hash = get_fragment(),
1624          history_hash = get_history( last_hash );
1625        
1626        if ( hash !== last_hash ) {
1627          set_history( last_hash = hash, history_hash );
1628          
1629          $(window).trigger( str_hashchange );
1630          
1631        } else if ( history_hash !== last_hash ) {
1632          window[ str_location ][ str_href ] = window[ str_location ][ str_href ].replace( /#.*/, '' ) + '#' + history_hash;
1633        }
1634        
1635        timeout_id = setTimeout( loopy, $[ str_hashchange + 'Delay' ] );
1636      })();
1637    };
1638    
1639    // Stop the polling loop, but only if an IE6/7 Iframe wasn't created. In
1640    // that case, even if there are no longer any bound event handlers, the
1641    // polling loop is still necessary for back/next to work at all!
1642    self.stop = function() {
1643      if ( !iframe ) {
1644        timeout_id && clearTimeout( timeout_id );
1645        timeout_id = 0;
1646      }
1647    };
1648    
1649    return self;
1650  })();
1651  
1652})(jQuery,this);
1653/*!
1654 * jQuery hashchange event - v1.3 - 7/21/2010
1655 * http://benalman.com/projects/jquery-hashchange-plugin/
1656 * 
1657 * Copyright (c) 2010 "Cowboy" Ben Alman
1658 * Dual licensed under the MIT and GPL licenses.
1659 * http://benalman.com/about/license/
1660 */
1661
1662// Script: jQuery hashchange event
1663//
1664// *Version: 1.3, Last updated: 7/21/2010*
1665// 
1666// Project Home - http://benalman.com/projects/jquery-hashchange-plugin/
1667// GitHub       - http://github.com/cowboy/jquery-hashchange/
1668// Source       - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.js
1669// (Minified)   - http://github.com/cowboy/jquery-hashchange/raw/master/jquery.ba-hashchange.min.js (0.8kb gzipped)
1670// 
1671// About: License
1672// 
1673// Copyright (c) 2010 "Cowboy" Ben Alman,
1674// Dual licensed under the MIT and GPL licenses.
1675// http://benalman.com/about/license/
1676// 
1677// About: Examples
1678// 
1679// These working examples, complete with fully commented code, illustrate a few
1680// ways in which this plugin can be used.
1681// 
1682// hashchange event - http://benalman.com/code/projects/jquery-hashchange/examples/hashchange/
1683// document.domain - http://benalman.com/code/projects/jquery-hashchange/examples/document_domain/
1684// 
1685// About: Support and Testing
1686// 
1687// Information about what version or versions of jQuery this plugin has been
1688// tested with, what browsers it has been tested in, and where the unit tests
1689// reside (so you can test it yourself).
1690// 
1691// jQuery Versions - 1.2.6, 1.3.2, 1.4.1, 1.4.2
1692// Browsers Tested - Internet Explorer 6-8, Firefox 2-4, Chrome 5-6, Safari 3.2-5,
1693//                   Opera 9.6-10.60, iPhone 3.1, Android 1.6-2.2, BlackBerry 4.6-5.
1694// Unit Tests      - http://benalman.com/code/projects/jquery-hashchange/unit/
1695// 
1696// About: Known issues
1697// 
1698// While this jQuery hashchange event implementation is quite stable and
1699// robust, there are a few unfortunate browser bugs surrounding expected
1700// hashchange event-based behaviors, independent of any JavaScript
1701// window.onhashchange abstraction. See the following examples for more
1702// information:
1703// 
1704// Chrome: Back Button - http://benalman.com/code/projects/jquery-hashchange/examples/bug-chrome-back-button/
1705// Firefox: Remote XMLHttpRequest - http://benalman.com/code/projects/jquery-hashchange/examples/bug-firefox-remote-xhr/
1706// WebKit: Back Button in an Iframe - http://benalman.com/code/projects/jquery-hashchange/examples/bug-webkit-hash-iframe/
1707// Safari: Back Button from a different domain - http://benalman.com/code/projects/jquery-hashchange/examples/bug-safari-back-from-diff-domain/
1708// 
1709// Also note that should a browser natively support the window.onhashchange 
1710// event, but not report that it does, the fallback polling loop will be used.
1711// 
1712// About: Release History
1713// 
1714// 1.3   - (7/21/2010) Reorganized IE6/7 Iframe code to make it more
1715//         "removable" for mobile-only development. Added IE6/7 document.title
1716//         support. Attempted to make Iframe as hidden as possible by using
1717//         techniques from http://www.paciellogroup.com/blog/?p=604. Added 
1718//         support for the "shortcut" format $(window).hashchange( fn ) and
1719//         $(window).hashchange() like jQuery provides for built-in events.
1720//         Renamed jQuery.hashchangeDelay to <jQuery.fn.hashchange.delay> and
1721//         lowered its default value to 50. Added <jQuery.fn.hashchange.domain>
1722//         and <jQuery.fn.hashchange.src> properties plus document-domain.html
1723//         file to address access denied issues when setting document.domain in
1724//         IE6/7.
1725// 1.2   - (2/11/2010) Fixed a bug where coming back to a page using this plugin
1726//         from a page on another domain would cause an error in Safari 4. Also,
1727//         IE6/7 Iframe is now inserted after the body (this actually works),
1728//         which prevents the page from scrolling when the event is first bound.
1729//         Event can also now be bound before DOM ready, but it won't be usable
1730//         before then in IE6/7.
1731// 1.1   - (1/21/2010) Incorporated document.documentMode test to fix IE8 bug
1732//         where browser version is incorrectly reported as 8.0, despite
1733//         inclusion of the X-UA-Compatible IE=EmulateIE7 meta tag.
1734// 1.0   - (1/9/2010) Initial Release. Broke out the jQuery BBQ event.special
1735//         window.onhashchange functionality into a separate plugin for users
1736//         who want just the basic event & back button support, without all the
1737//         extra awesomeness that BBQ provides. This plugin will be included as
1738//         part of jQuery BBQ, but also be available separately.
1739
1740(function($,window,undefined){
1741  '$:nomunge'; // Used by YUI compressor.
1742  
1743  // Reused string.
1744  var str_hashchange = 'hashchange',
1745    
1746    // Method / object references.
1747    doc = document,
1748    fake_onhashchange,
1749    special = $.event.special,
1750    
1751    // Does the browser support window.onhashchange? Note that IE8 running in
1752    // IE7 compatibility mode reports true for 'onhashchange' in window, even
1753    // though the event isn't supported, so also test document.documentMode.
1754    doc_mode = doc.documentMode,
1755    supports_onhashchange = 'on' + str_hashchange in window && ( doc_mode === undefined || doc_mode > 7 );
1756  
1757  // Get location.hash (or what you'd expect location.hash to be) sans any
1758  // leading #. Thanks for making this necessary, Firefox!
1759  function get_fragment( url ) {
1760    url = url || location.href;
1761    return '#' + url.replace( /^[^#]*#?(.*)$/, '$1' );
1762  };
1763  
1764  // Method: jQuery.fn.hashchange
1765  // 
1766  // Bind a handler to the window.onhashchange event or trigger all bound
1767  // window.onhashchange event handlers. This behavior is consistent with
1768  // jQuery's built-in event handlers.
1769  // 
1770  // Usage:
1771  // 
1772  // > jQuery(window).hashchange( [ handler ] );
1773  // 
1774  // Arguments:
1775  // 
1776  //  handler - (Function) Optional handler to be bound to the hashchange
1777  //    event. This is a "shortcut" for the more verbose form:
1778  //    jQuery(window).bind( 'hashchange', handler ). If handler is omitted,
1779  //    all bound window.onhashchange event handlers will be triggered. This
1780  //    is a shortcut for the more verbose
1781  //    jQuery(window).trigger( 'hashchange' ). These forms are described in
1782  //    the <hashchange event> section.
1783  // 
1784  // Returns:
1785  // 
1786  //  (jQuery) The initial jQuery collection of elements.
1787  
1788  // Allow the "shortcut" format $(elem).hashchange( fn ) for binding and
1789  // $(elem).hashchange() for triggering, like jQuery does for built-in events.
1790  $.fn[ str_hashchange ] = function( fn ) {
1791    return fn ? this.bind( str_hashchange, fn ) : this.trigger( str_hashchange );
1792  };
1793  
1794  // Property: jQuery.fn.hashchange.delay
1795  // 
1796  // The numeric interval (in milliseconds) at which the <hashchange event>
1797  // polling loop executes. Defaults to 50.
1798  
1799  // Property: jQuery.fn.hashchange.domain
1800  // 
1801  // If you're setting document.domain in your JavaScript, and you want hash
1802  // history to work in IE6/7, not only must this property be set, but you must
1803  // also set document.domain BEFORE jQuery is loaded into the page. This
1804  // property is only applicable if you are supporting IE6/7 (or IE8 operating
1805  // in "IE7 compatibility" mode).
1806  // 
1807  // In addition, the <jQuery.fn.hashchange.src> property must be set to the
1808  // path of the included "document-domain.html" file, which can be renamed or
1809  // modified if necessary (note that the document.domain specified must be the
1810  // same in both your main JavaScript as well as in this file).
1811  // 
1812  // Usage:
1813  // 
1814  // jQuery.fn.hashchange.domain = document.domain;
1815  
1816  // Property: jQuery.fn.hashchange.src
1817  // 
1818  // If, for some reason, you need to specify an Iframe src file (for example,
1819  // when setting document.domain as in <jQuery.fn.hashchange.domain>), you can
1820  // do so using this property. Note that when using this property, history
1821  // won't be recorded in IE6/7 until the Iframe src file loads. This property
1822  // is only applicable if you are supporting IE6/7 (or IE8 operating in "IE7
1823  // compatibility" mode).
1824  // 
1825  // Usage:
1826  // 
1827  // jQuery.fn.hashchange.src = 'path/to/file.html';
1828  
1829  $.fn[ str_hashchange ].delay = 50;
1830  /*
1831  $.fn[ str_hashchange ].domain = null;
1832  $.fn[ str_hashchange ].src = null;
1833  */
1834  
1835  // Event: hashchange event
1836  // 
1837  // Fired when location.hash changes. In browsers that support it, the native
1838  // HTML5 window.onhashchange event is used, otherwise a polling loop is
1839  // initialized, running every <jQuery.fn.hashchange.delay> milliseconds to
1840  // see if the hash has changed. In IE6/7 (and IE8 operating in "IE7
1841  // compatibility" mode), a hidden Iframe is created to allow the back button
1842  // and hash-based history to work.
1843  // 
1844  // Usage as described in <jQuery.fn.hashchange>:
1845  // 
1846  // > // Bind an event handler.
1847  // > jQuery(window).hashchange( function(e) {
1848  // >   var hash = location.hash;
1849  // >   ...
1850  // > });
1851  // > 
1852  // > // Manually trigger the event handler.
1853  // > jQuery(window).hashchange();
1854  // 
1855  // A more verbose usage that allows for event namespacing:
1856  // 
1857  // > // Bind an event handler.
1858  // > jQuery(window).bind( 'hashchange', function(e) {
1859  // >   var hash = location.hash;
1860  // >   ...
1861  // > });
1862  // > 
1863  // > // Manually trigger the event handler.
1864  // > jQuery(window).trigger( 'hashchange' );
1865  // 
1866  // Additional Notes:
1867  // 
1868  // * The polling loop and Iframe are not created until at least one handler
1869  //   is actually bound to the 'hashchange' event.
1870  // * If you need the bound handler(s) to execute immediately, in cases where
1871  //   a location.hash exists on page load, via bookmark or page refresh for
1872  //   example, use jQuery(window).hashchange() or the more verbose 
1873  //   jQuery(window).trigger( 'hashchange' ).
1874  // * The event can be bound before DOM ready, but since it won't be usable
1875  //   before then in IE6/7 (due to the necessary Iframe), recommended usage is
1876  //   to bind it inside a DOM ready handler.
1877  
1878  // Override existing $.event.special.hashchange methods (allowing this plugin
1879  // to be defined after jQuery BBQ in BBQ's source code).
1880  special[ str_hashchange ] = $.extend( special[ str_hashchange ], {
1881    
1882    // Called only when the first 'hashchange' event is bound to window.
1883    setup: function() {
1884      // If window.onhashchange is supported natively, there's nothing to do..
1885      if ( supports_onhashchange ) { return false; }
1886      
1887      // Otherwise, we need to create our own. And we don't want to call this
1888      // until the user binds to the event, just in case they never do, since it
1889      // will create a polling loop and possibly even a hidden Iframe.
1890      $( fake_onhashchange.start );
1891    },
1892    
1893    // Called only when the last 'hashchange' event is unbound from window.
1894    teardown: function() {
1895      // If window.onhashchange is supported natively, there's nothing to do..
1896      if ( supports_onhashchange ) { return false; }
1897      
1898      // Otherwise, we need to stop ours (if possible).
1899      $( fake_onhashchange.stop );
1900    }
1901    
1902  });
1903  
1904  // fake_onhashchange does all the work of triggering the window.onhashchange
1905  // event for browsers that don't natively support it, including creating a
1906  // polling loop to watch for hash changes and in IE 6/7 creating a hidden
1907  // Iframe to enable back and forward.
1908  fake_onhashchange = (function(){
1909    var self = {},
1910      timeout_id,
1911      
1912      // Remember the initial hash so it doesn't get triggered immediately.
1913      last_hash = get_fragment(),
1914      
1915      fn_retval = function(val){ return val; },
1916      history_set = fn_retval,
1917      history_get = fn_retval;
1918    
1919    // Start the polling loop.
1920    self.start = function() {
1921      timeout_id || poll();
1922    };
1923    
1924    // Stop the polling loop.
1925    self.stop = function() {
1926      timeout_id && clearTimeout( timeout_id );
1927      timeout_id = undefined;
1928    };
1929    
1930    // This polling loop checks every $.fn.hashchange.delay milliseconds to see
1931    // if location.hash has changed, and triggers the 'hashchange' event on
1932    // window when necessary.
1933    function poll() {
1934      var hash = get_fragment(),
1935        history_hash = history_get( last_hash );
1936      
1937      if ( hash !== last_hash ) {
1938        history_set( last_hash = hash, history_hash );
1939        
1940        $(window).trigger( str_hashchange );
1941        
1942      } else if ( history_hash !== last_hash ) {
1943        location.href = location.href.replace( /#.*/, '' ) + history_hash;
1944      }
1945      
1946      timeout_id = setTimeout( poll, $.fn[ str_hashchange ].delay );
1947    };
1948    
1949    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
1950    // vvvvvvvvvvvvvvvvvvv REMOVE IF NOT SUPPORTING IE6/7/8 vvvvvvvvvvvvvvvvvvv
1951    // vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
1952    $.browser.msie && !supports_onhashchange && (function(){
1953      // Not only do IE6/7 need the "magical" Iframe treatment, but so does IE8
1954      // when running in "IE7 compatibility" mode.
1955      
1956      var iframe,
1957        iframe_src;
1958      
1959      // When the event is bound and polling starts in IE 6/7, create a hidden
1960      // Iframe for history handling.
1961      self.start = function(){
1962        if ( !iframe ) {
1963          iframe_src = $.fn[ str_hashchange ].src;
1964          iframe_src = iframe_src && iframe_src + get_fragment();
1965          
1966          // Create hidden Iframe. Attempt to make Iframe as hidden as possible
1967          // by using techniques from http://www.paciellogroup.com/blog/?p=604.
1968          iframe = $('<iframe tabindex="-1" title="empty"/>').hide()
1969            
1970            // When Iframe has completely loaded, initialize the history and
1971            // start polling.
1972            .one( 'load', function(){
1973              iframe_src || history_set( get_fragment() );
1974              poll();
1975            })
1976            
1977            // Load Iframe src if specified, otherwise nothing.
1978            .attr( 'src', iframe_src || 'javascript:0' )
1979            
1980            // Append Iframe after the end of the body to prevent unnecessary
1981            // initial page scrolling (yes, this works).
1982            .insertAfter( 'body' )[0].contentWindow;
1983          
1984          // Whenever `document.title` changes, update the Iframe's title to
1985          // prettify the back/next history menu entries. Since IE sometimes
1986          // errors with "Unspecified error" the very first time this is set
1987          // (yes, very useful) wrap this with a try/catch block.
1988          doc.onpropertychange = function(){
1989            try {
1990              if ( event.propertyName === 'title' ) {
1991                iframe.document.title = doc.title;
1992              }
1993            } catch(e) {}
1994          };
1995          
1996        }
1997      };
1998      
1999      // Override the "stop" method since an IE6/7 Iframe was created. Even
2000      // if there are no longer any bound event handlers, the polling loop
2001      // is still necessary for back/next to work at all!
2002      self.stop = fn_retval;
2003      
2004      // Get history by looking at the hidden Iframe's location.hash.
2005      history_get = function() {
2006        return get_fragment( iframe.location.href );
2007      };
2008      
2009      // Set a new history item by opening and then closing the Iframe
2010      // document, *then* setting its location.hash. If document.domain has
2011      // been set, update that as well.
2012      history_set = function( hash, history_hash ) {
2013        var iframe_doc = iframe.document,
2014          domain = $.fn[ str_hashchange ].domain;
2015        
2016        if ( hash !== history_hash ) {
2017          // Update Iframe with any initial `document.title` that might be set.
2018          iframe_doc.title = doc.title;
2019          
2020          // Opening the Iframe's document after it has been closed is what
2021          // actually adds a history entry.
2022          iframe_doc.open();
2023          
2024          // Set document.domain for the Iframe document as well, if necessary.
2025          domain && iframe_doc.write( '<script>document.domain="' + domain + '"</script>' );
2026          
2027          iframe_doc.close();
2028          
2029          // Update the Iframe's hash, for great justice.
2030          iframe.location.hash = hash;
2031        }
2032      };
2033      
2034    })();
2035    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2036    // ^^^^^^^^^^^^^^^^^^^ REMOVE IF NOT SUPPORTING IE6/7/8 ^^^^^^^^^^^^^^^^^^^
2037    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2038    
2039    return self;
2040  })();
2041  
2042})(jQuery,this);
2043!function(){"use strict";function e(e){e.fn.swiper=function(a){var r;return e(this).each(function(){var e=new t(this,a);r||(r=e)}),r}}var a,t=function(e,i){function s(e){return Math.floor(e)}function n(){b.autoplayTimeoutId=setTimeout(function(){b.params.loop?(b.fixLoop(),b._slideNext(),b.emit("onAutoplay",b)):b.isEnd?i.autoplayStopOnLast?b.stopAutoplay():(b._slideTo(0),b.emit("onAutoplay",b)):(b._slideNext(),b.emit("onAutoplay",b))},b.params.autoplay)}function o(e,t){var r=a(e.target);if(!r.is(t))if("string"==typeof t)r=r.parents(t);else if(t.nodeType){var i;return r.parents().each(function(e,a){a===t&&(i=t)}),i?t:void 0}if(0!==r.length)return r[0]}function l(e,a){a=a||{};var t=window.MutationObserver||window.WebkitMutationObserver,r=new t(function(e){e.forEach(function(e){b.onResize(!0),b.emit("onObserverUpdate",b,e)})});r.observe(e,{attributes:"undefined"==typeof a.attributes?!0:a.attributes,childList:"undefined"==typeof a.childList?!0:a.childList,characterData:"undefined"==typeof a.characterData?!0:a.characterData}),b.observers.push(r)}function p(e){e.originalEvent&&(e=e.originalEvent);var a=e.keyCode||e.charCode;
vendor: 16,345 bytes, line 2043
2043if(!b.params.allowSwipeToNext&&(b.isHorizontal()&&39===a||!b.isHorizontal()&&40===a))return!1;if(!b.params.allowSwipeToPrev&&(b.isHorizontal()&&37===a||!b.isHorizontal()&&38===a))return!1;if(!(e.shiftKey||e.altKey||e.ctrlKey||e.metaKey||document.activeElement&&document.activeElement.nodeName&&("input"===document.activeElement.nodeName.toLowerCase()||"textarea"===document.activeElement.nodeName.toLowerCase()))){if(37===a||39===a||38===a||40===a){var t=!1;if(b.container.parents(".swiper-slide").length>0&&0===b.container.parents(".swiper-slide-active").length)return;var r={left:window.pageXOffset,top:window.pageYOffset},i=window.innerWidth,s=window.innerHeight,n=b.container.offset();b.rtl&&(n.left=n.left-b.container[0].scrollLeft);for(var o=[[n.left,n.top],[n.left+b.width,n.top],[n.left,n.top+b.height],[n.left+b.width,n.top+b.height]],l=0;l<o.length;l++){var p=o[l];p[0]>=r.left&&p[0]<=r.left+i&&p[1]>=r.top&&p[1]<=r.top+s&&(t=!0)}if(!t)return}b.isHorizontal()?((37===a||39===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),(39===a&&!b.rtl||37===a&&b.rtl)&&b.slideNext(),(37===a&&!b.rtl||39===a&&b.rtl)&&b.slidePrev()):((38===a||40===a)&&(e.preventDefault?e.preventDefault():e.returnValue=!1),40===a&&b.slideNext(),38===a&&b.slidePrev())}}function d(e){e.originalEvent&&(e=e.originalEvent);var a=b.mousewheel.event,t=0,r=b.rtl?-1:1;if("mousewheel"===a)if(b.params.mousewheelForceToAxis)if(b.isHorizontal()){if(!(Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)))return;t=e.wheelDeltaX*r}else{if(!(Math.abs(e.wheelDeltaY)>Math.abs(e.wheelDeltaX)))return;t=e.wheelDeltaY}else t=Math.abs(e.wheelDeltaX)>Math.abs(e.wheelDeltaY)?-e.wheelDeltaX*r:-e.wheelDeltaY;else if("DOMMouseScroll"===a)t=-e.detail;else if("wheel"===a)if(b.params.mousewheelForceToAxis)if(b.isHorizontal()){if(!(Math.abs(e.deltaX)>Math.abs(e.deltaY)))return;t=-e.deltaX*r}else{if(!(Math.abs(e.deltaY)>Math.abs(e.deltaX)))return;t=-e.deltaY}else t=Math.abs(e.deltaX)>Math.abs(e.deltaY)?-e.deltaX*r:-e.deltaY;if(0!==t){if(b.params.mousewheelInvert&&(t=-t),b.params.freeMode){var i=b.getWrapperTranslate()+t*b.params.mousewheelSensitivity,s=b.isBeginning,n=b.isEnd;if(i>=b.minTranslate()&&(i=b.minTranslate()),i<=b.maxTranslate()&&(i=b.maxTranslate()),b.setWrapperTransition(0),b.setWrapperTranslate(i),b.updateProgress(),b.updateActiveIndex(),(!s&&b.isBeginning||!n&&b.isEnd)&&b.updateClasses(),b.params.freeModeSticky?(clearTimeout(b.mousewheel.timeout),b.mousewheel.timeout=setTimeout(function(){b.slideReset()},300)):b.params.lazyLoading&&b.lazy&&b.lazy.load(),0===i||i===b.maxTranslate())return}else{if((new window.Date).getTime()-b.mousewheel.lastScrollTime>60)if(0>t)if(b.isEnd&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slideNext();else if(b.isBeginning&&!b.params.loop||b.animating){if(b.params.mousewheelReleaseOnEdges)return!0}else b.slidePrev();b.mousewheel.lastScrollTime=(new window.Date).getTime()}return b.params.autoplay&&b.stopAutoplay(),e.preventDefault?e.preventDefault():e.returnValue=!1,!1}}function u(e,t){e=a(e);var r,i,s,n=b.rtl?-1:1;r=e.attr("data-swiper-parallax")||"0",i=e.attr("data-swiper-parallax-x"),s=e.attr("data-swiper-parallax-y"),i||s?(i=i||"0",s=s||"0"):b.isHorizontal()?(i=r,s="0"):(s=r,i="0"),i=i.indexOf("%")>=0?parseInt(i,10)*t*n+"%":i*t*n+"px",s=s.indexOf("%")>=0?parseInt(s,10)*t+"%":s*t+"px",e.transform("translate3d("+i+", "+s+",0px)")}function c(e){return 0!==e.indexOf("on")&&(e=e[0]!==e[0].toUpperCase()?"on"+e[0].toUpperCase()+e.substring(1):"on"+e),e}if(!(this instanceof t))return new t(e,i);var m={direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,autoplay:!1,autoplayDisableOnInteraction:!0,autoplayStopOnLast:!1,iOSEdgeSwipeDetection:!1,iOSEdgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",coverflow:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0},flip:{slideShadows:!0,limitRotation:!0},cube:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94},fade:{crossFade:!1},parallax:!1,scrollbar:null,scrollbarHide:!0,scrollbarDraggable:!1,scrollbarSnapOnRelease:!1,keyboardControl:!1,mousewheelControl:!1,mousewheelReleaseOnEdges:!1,mousewheelInvert:!1,mousewheelForceToAxis:!1,mousewheelSensitivity:1,hashnav:!1,breakpoints:void 0,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,onlyExternal:!1,threshold:0,touchMoveStopPropagation:!0,uniqueNavElements:!0,pagination:null,paginationElement:"span",paginationClickable:!1,paginationHide:!1,paginationBulletRender:null,paginationProgressRender:null,paginationFractionRender:null,paginationCustomRender:null,paginationType:"bullets",resistance:!0,resistanceRatio:.85,nextButton:null,prevButton:null,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,lazyLoading:!1,lazyLoadingInPrevNext:!1,lazyLoadingInPrevNextAmount:1,lazyLoadingOnTransitionStart:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,control:void 0,controlInverse:!1,controlBy:"slide",allowSwipeToPrev:!0,allowSwipeToNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slidePrevClass:"swiper-slide-prev",wrapperClass:"swiper-wrapper",bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",buttonDisabledClass:"swiper-button-disabled",paginationCurrentClass:"swiper-pagination-current",paginationTotalClass:"swiper-pagination-total",paginationHiddenClass:"swiper-pagination-hidden",paginationProgressbarClass:"swiper-pagination-progressbar",observer:!1,observeParents:!1,a11y:!1,prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}",runCallbacksOnInit:!0},h=i&&i.virtualTranslate;i=i||{};var f={};for(var g in i)if("object"!=typeof i[g]||null===i[g]||(i[g].nodeType||i[g]===window||i[g]===document||"undefined"!=typeof r&&i[g]instanceof r||"undefined"!=typeof jQuery&&i[g]instanceof jQuery))f[g]=i[g];else{f[g]={};for(var v in i[g])f[g][v]=i[g][v]}for(var w in m)if("undefined"==typeof i[w])i[w]=m[w];else if("object"==typeof i[w])for(var y in m[w])"undefined"==typeof i[w][y]&&(i[w][y]=m[w][y]);var b=this;if(b.params=i,b.originalParams=f,b.classNames=[],"undefined"!=typeof a&&"undefined"!=typeof r&&(a=r),("undefined"!=typeof a||(a="undefined"==typeof r?window.Dom7||window.Zepto||window.jQuery:r))&&(b.$=a,b.currentBreakpoint=void 0,b.getActiveBreakpoint=function(){if(!b.params.breakpoints)return!1;var e,a=!1,t=[];for(e in b.params.breakpoints)b.params.breakpoints.hasOwnProperty(e)&&t.push(e);t.sort(function(e,a){return parseInt(e,10)>parseInt(a,10)});for(var r=0;r<t.length;r++)e=t[r],e>=window.innerWidth&&!a&&(a=e);return a||"max"},b.setBreakpoint=function(){var e=b.getActiveBreakpoint();if(e&&b.currentBreakpoint!==e){var a=e in b.params.breakpoints?b.params.breakpoints[e]:b.originalParams,t=b.params.loop&&a.slidesPerView!==b.params.slidesPerView;for(var r in a)b.params[r]=a[r];b.currentBreakpoint=e,t&&b.destroyLoop&&b.reLoop(!0)}},b.params.breakpoints&&b.setBreakpoint(),b.container=a(e),0!==b.container.length)){if(b.container.length>1){var x=[];return b.container.each(function(){x.push(new t(this,i))}),x}b.container[0].swiper=b,b.container.data("swiper",b),b.classNames.push("swiper-container-"+b.params.direction),b.params.freeMode&&b.classNames.push("swiper-container-free-mode"),b.support.flexbox||(b.classNames.push("swiper-container-no-flexbox"),b.params.slidesPerColumn=1),b.params.autoHeight&&b.classNames.push("swiper-container-autoheight"),(b.params.parallax||b.params.watchSlidesVisibility)&&(b.params.watchSlidesProgress=!0),["cube","coverflow","flip"].indexOf(b.params.effect)>=0&&(b.support.transforms3d?(b.params.watchSlidesProgress=!0,b.classNames.push("swiper-container-3d")):b.params.effect="slide"),"slide"!==b.params.effect&&b.classNames.push("swiper-container-"+b.params.effect),"cube"===b.params.effect&&(b.params.resistanceRatio=0,b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.centeredSlides=!1,b.params.spaceBetween=0,b.params.virtualTranslate=!0,b.params.setWrapperSize=!1),("fade"===b.params.effect||"flip"===b.params.effect)&&(b.params.slidesPerView=1,b.params.slidesPerColumn=1,b.params.slidesPerGroup=1,b.params.watchSlidesProgress=!0,b.params.spaceBetween=0,b.params.setWrapperSize=!1,"undefined"==typeof h&&(b.params.virtualTranslate=!0)),b.params.grabCursor&&b.support.touch&&(b.params.grabCursor=!1),b.wrapper=b.container.children("."+b.params.wrapperClass),b.params.pagination&&(b.paginationContainer=a(b.params.pagination),b.params.uniqueNavElements&&"string"==typeof b.params.pagination&&b.paginationContainer.length>1&&1===b.container.find(b.params.pagination).length&&(b.paginationContainer=b.container.find(b.params.pagination)),"bullets"===b.params.paginationType&&b.params.paginationClickable?b.paginationContainer.addClass("swiper-pagination-clickable"):b.params.paginationClickable=!1,b.paginationContainer.addClass("swiper-pagination-"+b.params.paginationType)),(b.params.nextButton||b.params.prevButton)&&(b.params.nextButton&&(b.nextButton=a(b.params.nextButton),b.params.uniqueNavElements&&"string"==typeof b.params.nextButton&&b.nextButton.length>1&&1===b.container.find(b.params.nextButton).length&&(b.nextButton=b.container.find(b.params.nextButton))),b.params.prevButton&&(b.prevButton=a(b.params.prevButton),b.params.uniqueNavElements&&"string"==typeof b.params.prevButton&&b.prevButton.length>1&&1===b.container.find(b.params.prevButton).length&&(b.prevButton=b.container.find(b.params.prevButton)))),b.isHorizontal=function(){return"horizontal"===b.params.direction},b.rtl=b.isHorizontal()&&("rtl"===b.container[0].dir.toLowerCase()||"rtl"===b.container.css("direction")),b.rtl&&b.classNames.push("swiper-container-rtl"),b.rtl&&(b.wrongRTL="-webkit-box"===b.wrapper.css("display")),b.params.slidesPerColumn>1&&b.classNames.push("swiper-container-multirow"),b.device.android&&b.classNames.push("swiper-container-android"),b.container.addClass(b.classNames.join(" ")),b.translate=0,b.progress=0,b.velocity=0,b.lockSwipeToNext=function(){b.params.allowSwipeToNext=!1},b.lockSwipeToPrev=function(){b.params.allowSwipeToPrev=!1},b.lockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!1},b.unlockSwipeToNext=function(){b.params.allowSwipeToNext=!0},b.unlockSwipeToPrev=function(){b.params.allowSwipeToPrev=!0},b.unlockSwipes=function(){b.params.allowSwipeToNext=b.params.allowSwipeToPrev=!0},b.params.grabCursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab"),b.imagesToLoad=[],b.imagesLoaded=0,b.loadImage=function(e,a,t,r,i){function s(){i&&i()}var n;e.complete&&r?s():a?(n=new window.Image,n.onload=s,n.onerror=s,t&&(n.srcset=t),a&&(n.src=a)):s()},b.preloadImages=function(){function e(){"undefined"!=typeof b&&null!==b&&(void 0!==b.imagesLoaded&&b.imagesLoaded++,b.imagesLoaded===b.imagesToLoad.length&&(b.params.updateOnImagesReady&&b.update(),b.emit("onImagesReady",b)))}b.imagesToLoad=b.container.find("img");for(var a=0;a<b.imagesToLoad.length;a++)b.loadImage(b.imagesToLoad[a],b.imagesToLoad[a].currentSrc||b.imagesToLoad[a].getAttribute("src"),b.imagesToLoad[a].srcset||b.imagesToLoad[a].getAttribute("srcset"),!0,e)},b.autoplayTimeoutId=void 0,b.autoplaying=!1,b.autoplayPaused=!1,b.startAutoplay=function(){return"undefined"!=typeof b.autoplayTimeoutId?!1:b.params.autoplay?b.autoplaying?!1:(b.autoplaying=!0,b.emit("onAutoplayStart",b),void n()):!1},b.stopAutoplay=function(e){b.autoplayTimeoutId&&(b.autoplayTimeoutId&&clearTimeout(b.autoplayTimeoutId),b.autoplaying=!1,b.autoplayTimeoutId=void 0,b.emit("onAutoplayStop",b))},b.pauseAutoplay=function(e){b.autoplayPaused||(b.autoplayTimeoutId&&clearTimeout(b.autoplayTimeoutId),b.autoplayPaused=!0,0===e?(b.autoplayPaused=!1,n()):b.wrapper.transitionEnd(function(){b&&(b.autoplayPaused=!1,b.autoplaying?n():b.stopAutoplay())}))},b.minTranslate=function(){return-b.snapGrid[0]},b.maxTranslate=function(){return-b.snapGrid[b.snapGrid.length-1]},b.updateAutoHeight=function(){var e=b.slides.eq(b.activeIndex)[0];if("undefined"!=typeof e){var a=e.offsetHeight;a&&b.wrapper.css("height",a+"px")}},b.updateContainerSize=function(){var e,a;e="undefined"!=typeof b.params.width?b.params.width:b.container[0].clientWidth,a="undefined"!=typeof b.params.height?b.params.height:b.container[0].clientHeight,0===e&&b.isHorizontal()||0===a&&!b.isHorizontal()||(e=e-parseInt(b.container.css("padding-left"),10)-parseInt(b.container.css("padding-right"),10),a=a-parseInt(b.container.css("padding-top"),10)-parseInt(b.container.css("padding-bottom"),10),b.width=e,b.height=a,b.size=b.isHorizontal()?b.width:b.height)},b.updateSlidesSize=function(){b.slides=b.wrapper.children("."+b.params.slideClass),b.snapGrid=[],b.slidesGrid=[],b.slidesSizesGrid=[];var e,a=b.params.spaceBetween,t=-b.params.slidesOffsetBefore,r=0,i=0;if("undefined"!=typeof b.size){"string"==typeof a&&a.indexOf("%")>=0&&(a=parseFloat(a.replace("%",""))/100*b.size),b.virtualSize=-a,b.rtl?b.slides.css({marginLeft:"",marginTop:""}):b.slides.css({marginRight:"",marginBottom:""});var n;b.params.slidesPerColumn>1&&(n=Math.floor(b.slides.length/b.params.slidesPerColumn)===b.slides.length/b.params.slidesPerColumn?b.slides.length:Math.ceil(b.slides.length/b.params.slidesPerColumn)*b.params.slidesPerColumn,"auto"!==b.params.slidesPerView&&"row"===b.params.slidesPerColumnFill&&(n=Math.max(n,b.params.slidesPerView*b.params.slidesPerColumn)));var o,l=b.params.slidesPerColumn,p=n/l,d=p-(b.params.slidesPerColumn*p-b.slides.length);for(e=0;e<b.slides.length;e++){o=0;var u=b.slides.eq(e);if(b.params.slidesPerColumn>1){var c,m,h;"column"===b.params.slidesPerColumnFill?(m=Math.floor(e/l),h=e-m*l,(m>d||m===d&&h===l-1)&&++h>=l&&(h=0,m++),c=m+h*n/l,u.css({"-webkit-box-ordinal-group":c,"-moz-box-ordinal-group":c,"-ms-flex-order":c,"-webkit-order":c,order:c})):(h=Math.floor(e/p),m=e-h*p),u.css({"margin-top":0!==h&&b.params.spaceBetween&&b.params.spaceBetween+"px"}).attr("data-swiper-column",m).attr("data-swiper-row",h)}"none"!==u.css("display")&&("auto"===b.params.slidesPerView?(o=b.isHorizontal()?u.outerWidth(!0):u.outerHeight(!0),b.params.roundLengths&&(o=s(o))):(o=(b.size-(b.params.slidesPerView-1)*a)/b.params.slidesPerView,b.params.roundLengths&&(o=s(o)),b.isHorizontal()?b.slides[e].style.width=o+"px":b.slides[e].style.height=o+"px"),b.slides[e].swiperSlideSize=o,b.slidesSizesGrid.push(o),b.params.centeredSlides?(t=t+o/2+r/2+a,0===e&&(t=t-b.size/2-a),Math.abs(t)<.001&&(t=0),i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t)):(i%b.params.slidesPerGroup===0&&b.snapGrid.push(t),b.slidesGrid.push(t),t=t+o+a),b.virtualSize+=o+a,r=o,i++)}b.virtualSize=Math.max(b.virtualSize,b.size)+b.params.slidesOffsetAfter;var f;if(b.rtl&&b.wrongRTL&&("slide"===b.params.effect||"coverflow"===b.params.effect)&&b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}),(!b.support.flexbox||b.params.setWrapperSize)&&(b.isHorizontal()?b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}):b.wrapper.css({height:b.virtualSize+b.params.spaceBetween+"px"})),b.params.slidesPerColumn>1&&(b.virtualSize=(o+b.params.spaceBetween)*n,b.virtualSize=Math.ceil(b.virtualSize/b.params.slidesPerColumn)-b.params.spaceBetween,b.wrapper.css({width:b.virtualSize+b.params.spaceBetween+"px"}),b.params.centeredSlides)){for(f=[],e=0;e<b.snapGrid.length;e++)b.snapGrid[e]<b.virtualSize+b.snapGrid[0]&&f.push(b.snapGrid[e]);b.snapGrid=f}if(!b.params.centeredSlides){for(f=[],e=0;e<b.snapGrid.length;
2043e++)b.snapGrid[e]<=b.virtualSize-b.size&&f.push(b.snapGrid[e]);b.snapGrid=f,Math.floor(b.virtualSize-b.size)-Math.floor(b.snapGrid[b.snapGrid.length-1])>1&&b.snapGrid.push(b.virtualSize-b.size)}0===b.snapGrid.length&&(b.snapGrid=[0]),0!==b.params.spaceBetween&&(b.isHorizontal()?b.rtl?b.slides.css({marginLeft:a+"px"}):b.slides.css({marginRight:a+"px"}):b.slides.css({marginBottom:a+"px"})),b.params.watchSlidesProgress&&b.updateSlidesOffset()}},b.updateSlidesOffset=function(){for(var e=0;e<b.slides.length;e++)b.slides[e].swiperSlideOffset=b.isHorizontal()?b.slides[e].offsetLeft:b.slides[e].offsetTop},b.updateSlidesProgress=function(e){if("undefined"==typeof e&&(e=b.translate||0),0!==b.slides.length){"undefined"==typeof b.slides[0].swiperSlideOffset&&b.updateSlidesOffset();var a=-e;b.rtl&&(a=e),b.slides.removeClass(b.params.slideVisibleClass);for(var t=0;t<b.slides.length;t++){var r=b.slides[t],i=(a-r.swiperSlideOffset)/(r.swiperSlideSize+b.params.spaceBetween);if(b.params.watchSlidesVisibility){var s=-(a-r.swiperSlideOffset),n=s+b.slidesSizesGrid[t],o=s>=0&&s<b.size||n>0&&n<=b.size||0>=s&&n>=b.size;o&&b.slides.eq(t).addClass(b.params.slideVisibleClass)}r.progress=b.rtl?-i:i}}},b.updateProgress=function(e){"undefined"==typeof e&&(e=b.translate||0);var a=b.maxTranslate()-b.minTranslate(),t=b.isBeginning,r=b.isEnd;0===a?(b.progress=0,b.isBeginning=b.isEnd=!0):(b.progress=(e-b.minTranslate())/a,b.isBeginning=b.progress<=0,b.isEnd=b.progress>=1),b.isBeginning&&!t&&b.emit("onReachBeginning",b),b.isEnd&&!r&&b.emit("onReachEnd",b),b.params.watchSlidesProgress&&b.updateSlidesProgress(e),b.emit("onProgress",b,b.progress)},b.updateActiveIndex=function(){var e,a,t,r=b.rtl?b.translate:-b.translate;for(a=0;a<b.slidesGrid.length;a++)"undefined"!=typeof b.slidesGrid[a+1]?r>=b.slidesGrid[a]&&r<b.slidesGrid[a+1]-(b.slidesGrid[a+1]-b.slidesGrid[a])/2?e=a:r>=b.slidesGrid[a]&&r<b.slidesGrid[a+1]&&(e=a+1):r>=b.slidesGrid[a]&&(e=a);(0>e||"undefined"==typeof e)&&(e=0),t=Math.floor(e/b.params.slidesPerGroup),t>=b.snapGrid.length&&(t=b.snapGrid.length-1),e!==b.activeIndex&&(b.snapIndex=t,b.previousIndex=b.activeIndex,b.activeIndex=e,b.updateClasses())},b.updateClasses=function(){b.slides.removeClass(b.params.slideActiveClass+" "+b.params.slideNextClass+" "+b.params.slidePrevClass);var e=b.slides.eq(b.activeIndex);e.addClass(b.params.slideActiveClass);var t=e.next("."+b.params.slideClass).addClass(b.params.slideNextClass);b.params.loop&&0===t.length&&b.slides.eq(0).addClass(b.params.slideNextClass);var r=e.prev("."+b.params.slideClass).addClass(b.params.slidePrevClass);if(b.params.loop&&0===r.length&&b.slides.eq(-1).addClass(b.params.slidePrevClass),b.paginationContainer&&b.paginationContainer.length>0){var i,s=b.params.loop?Math.ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length;if(b.params.loop?(i=Math.ceil((b.activeIndex-b.loopedSlides)/b.params.slidesPerGroup),i>b.slides.length-1-2*b.loopedSlides&&(i-=b.slides.length-2*b.loopedSlides),i>s-1&&(i-=s),0>i&&"bullets"!==b.params.paginationType&&(i=s+i)):i="undefined"!=typeof b.snapIndex?b.snapIndex:b.activeIndex||0,"bullets"===b.params.paginationType&&b.bullets&&b.bullets.length>0&&(b.bullets.removeClass(b.params.bulletActiveClass),b.paginationContainer.length>1?b.bullets.each(function(){a(this).index()===i&&a(this).addClass(b.params.bulletActiveClass)}):b.bullets.eq(i).addClass(b.params.bulletActiveClass)),"fraction"===b.params.paginationType&&(b.paginationContainer.find("."+b.params.paginationCurrentClass).text(i+1),b.paginationContainer.find("."+b.params.paginationTotalClass).text(s)),"progress"===b.params.paginationType){var n=(i+1)/s,o=n,l=1;b.isHorizontal()||(l=n,o=1),b.paginationContainer.find("."+b.params.paginationProgressbarClass).transform("translate3d(0,0,0) scaleX("+o+") scaleY("+l+")").transition(b.params.speed)}"custom"===b.params.paginationType&&b.params.paginationCustomRender&&(b.paginationContainer.html(b.params.paginationCustomRender(b,i+1,s)),b.emit("onPaginationRendered",b,b.paginationContainer[0]))}b.params.loop||(b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.isBeginning?(b.prevButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.prevButton)):(b.prevButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.prevButton))),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.isEnd?(b.nextButton.addClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.disable(b.nextButton)):(b.nextButton.removeClass(b.params.buttonDisabledClass),b.params.a11y&&b.a11y&&b.a11y.enable(b.nextButton))))},b.updatePagination=function(){if(b.params.pagination&&b.paginationContainer&&b.paginationContainer.length>0){var e="";if("bullets"===b.params.paginationType){for(var a=b.params.loop?Math.
vendor: 57,179 bytes, lines 2043-2116
2043ceil((b.slides.length-2*b.loopedSlides)/b.params.slidesPerGroup):b.snapGrid.length,t=0;a>t;t++)e+=b.params.paginationBulletRender?b.params.paginationBulletRender(t,b.params.bulletClass):"<"+b.params.paginationElement+' class="'+b.params.bulletClass+'"></'+b.params.paginationElement+">";b.paginationContainer.html(e),b.bullets=b.paginationContainer.find("."+b.params.bulletClass),b.params.paginationClickable&&b.params.a11y&&b.a11y&&b.a11y.initPagination()}"fraction"===b.params.paginationType&&(e=b.params.paginationFractionRender?b.params.paginationFractionRender(b,b.params.paginationCurrentClass,b.params.paginationTotalClass):'<span class="'+b.params.paginationCurrentClass+'"></span> / <span class="'+b.params.paginationTotalClass+'"></span>',b.paginationContainer.html(e)),"progress"===b.params.paginationType&&(e=b.params.paginationProgressRender?b.params.paginationProgressRender(b,b.params.paginationProgressbarClass):'<span class="'+b.params.paginationProgressbarClass+'"></span>',b.paginationContainer.html(e)),"custom"!==b.params.paginationType&&b.emit("onPaginationRendered",b,b.paginationContainer[0])}},b.update=function(e){function a(){r=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate()),b.setWrapperTranslate(r),b.updateActiveIndex(),b.updateClasses()}if(b.updateContainerSize(),b.updateSlidesSize(),b.updateProgress(),b.updatePagination(),b.updateClasses(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),e){var t,r;b.controller&&b.controller.spline&&(b.controller.spline=void 0),b.params.freeMode?(a(),b.params.autoHeight&&b.updateAutoHeight()):(t=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0),t||a())}else b.params.autoHeight&&b.updateAutoHeight()},b.onResize=function(e){b.params.breakpoints&&b.setBreakpoint();var a=b.params.allowSwipeToPrev,t=b.params.allowSwipeToNext;b.params.allowSwipeToPrev=b.params.allowSwipeToNext=!0,b.updateContainerSize(),b.updateSlidesSize(),("auto"===b.params.slidesPerView||b.params.freeMode||e)&&b.updatePagination(),b.params.scrollbar&&b.scrollbar&&b.scrollbar.set(),b.controller&&b.controller.spline&&(b.controller.spline=void 0);var r=!1;if(b.params.freeMode){var i=Math.min(Math.max(b.translate,b.maxTranslate()),b.minTranslate());b.setWrapperTranslate(i),b.updateActiveIndex(),b.updateClasses(),b.params.autoHeight&&b.updateAutoHeight()}else b.updateClasses(),r=("auto"===b.params.slidesPerView||b.params.slidesPerView>1)&&b.isEnd&&!b.params.centeredSlides?b.slideTo(b.slides.length-1,0,!1,!0):b.slideTo(b.activeIndex,0,!1,!0);b.params.lazyLoading&&!r&&b.lazy&&b.lazy.load(),b.params.allowSwipeToPrev=a,b.params.allowSwipeToNext=t};var T=["mousedown","mousemove","mouseup"];window.navigator.pointerEnabled?T=["pointerdown","pointermove","pointerup"]:window.navigator.msPointerEnabled&&(T=["MSPointerDown","MSPointerMove","MSPointerUp"]),b.touchEvents={start:b.support.touch||!b.params.simulateTouch?"touchstart":T[0],move:b.support.touch||!b.params.simulateTouch?"touchmove":T[1],end:b.support.touch||!b.params.simulateTouch?"touchend":T[2]},(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&("container"===b.params.touchEventsTarget?b.container:b.wrapper).addClass("swiper-wp8-"+b.params.direction),b.initEvents=function(e){var a=e?"off":"on",t=e?"removeEventListener":"addEventListener",r="container"===b.params.touchEventsTarget?b.container[0]:b.wrapper[0],s=b.support.touch?r:document,n=b.params.nested?!0:!1;b.browser.ie?(r[t](b.touchEvents.start,b.onTouchStart,!1),s[t](b.touchEvents.move,b.onTouchMove,n),s[t](b.touchEvents.end,b.onTouchEnd,!1)):(b.support.touch&&(r[t](b.touchEvents.start,b.onTouchStart,!1),r[t](b.touchEvents.move,b.onTouchMove,n),r[t](b.touchEvents.end,b.onTouchEnd,!1)),!i.simulateTouch||b.device.ios||b.device.android||(r[t]("mousedown",b.onTouchStart,!1),document[t]("mousemove",b.onTouchMove,n),document[t]("mouseup",b.onTouchEnd,!1))),window[t]("resize",b.onResize),b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.nextButton[a]("click",b.onClickNext),b.params.a11y&&b.a11y&&b.nextButton[a]("keydown",b.a11y.onEnterKey)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.prevButton[a]("click",b.onClickPrev),b.params.a11y&&b.a11y&&b.prevButton[a]("keydown",b.a11y.onEnterKey)),b.params.pagination&&b.params.paginationClickable&&(b.paginationContainer[a]("click","."+b.params.bulletClass,b.onClickIndex),b.params.a11y&&b.a11y&&b.paginationContainer[a]("keydown","."+b.params.bulletClass,b.a11y.onEnterKey)),(b.params.preventClicks||b.params.preventClicksPropagation)&&r[t]("click",b.preventClicks,!0)},b.attachEvents=function(){b.initEvents()},b.detachEvents=function(){b.initEvents(!0)},b.allowClick=!0,b.preventClicks=function(e){b.allowClick||(b.params.preventClicks&&e.preventDefault(),b.params.preventClicksPropagation&&b.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))},b.onClickNext=function(e){e.preventDefault(),(!b.isEnd||b.params.loop)&&b.slideNext()},b.onClickPrev=function(e){e.preventDefault(),(!b.isBeginning||b.params.loop)&&b.slidePrev()},b.onClickIndex=function(e){e.preventDefault();var t=a(this).index()*b.params.slidesPerGroup;b.params.loop&&(t+=b.loopedSlides),b.slideTo(t)},b.updateClickedSlide=function(e){var t=o(e,"."+b.params.slideClass),r=!1;if(t)for(var i=0;i<b.slides.length;i++)b.slides[i]===t&&(r=!0);if(!t||!r)return b.clickedSlide=void 0,void(b.clickedIndex=void 0);if(b.clickedSlide=t,b.clickedIndex=a(t).index(),b.params.slideToClickedSlide&&void 0!==b.clickedIndex&&b.clickedIndex!==b.activeIndex){var s,n=b.clickedIndex;if(b.params.loop){if(b.animating)return;s=a(b.clickedSlide).attr("data-swiper-slide-index"),b.params.centeredSlides?n<b.loopedSlides-b.params.slidesPerView/2||n>b.slides.length-b.loopedSlides+b.params.slidesPerView/2?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n):n>b.slides.length-b.params.slidesPerView?(b.fixLoop(),n=b.wrapper.children("."+b.params.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.swiper-slide-duplicate)').eq(0).index(),setTimeout(function(){b.slideTo(n)},0)):b.slideTo(n)}else b.slideTo(n)}};var S,C,z,M,E,P,k,I,L,B,D="input, select, textarea, button",H=Date.now(),A=[];b.animating=!1,b.touches={startX:0,startY:0,currentX:0,currentY:0,diff:0};var G,O;if(b.onTouchStart=function(e){if(e.originalEvent&&(e=e.originalEvent),G="touchstart"===e.type,G||!("which"in e)||3!==e.which){if(b.params.noSwiping&&o(e,"."+b.params.noSwipingClass))return void(b.allowClick=!0);if(!b.params.swipeHandler||o(e,b.params.swipeHandler)){var t=b.touches.currentX="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,r=b.touches.currentY="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY;if(!(b.device.ios&&b.params.iOSEdgeSwipeDetection&&t<=b.params.iOSEdgeSwipeThreshold)){if(S=!0,C=!1,z=!0,E=void 0,O=void 0,b.touches.startX=t,b.touches.startY=r,M=Date.now(),b.allowClick=!0,b.updateContainerSize(),b.swipeDirection=void 0,b.params.threshold>0&&(I=!1),"touchstart"!==e.type){var i=!0;a(e.target).is(D)&&(i=!1),document.activeElement&&a(document.activeElement).is(D)&&document.activeElement.blur(),i&&e.preventDefault()}b.emit("onTouchStart",b,e)}}}},b.onTouchMove=function(e){if(e.originalEvent&&(e=e.originalEvent),!G||"mousemove"!==e.type){if(e.preventedByNestedSwiper)return b.touches.startX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,void(b.touches.startY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY);if(b.params.onlyExternal)return b.allowClick=!1,void(S&&(b.touches.startX=b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.startY=b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,M=Date.now()));if(G&&document.activeElement&&e.target===document.activeElement&&a(e.target).is(D))return C=!0,void(b.allowClick=!1);if(z&&b.emit("onTouchMove",b,e),!(e.targetTouches&&e.targetTouches.length>1)){if(b.touches.currentX="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,b.touches.currentY="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,"undefined"==typeof E){var t=180*Math.atan2(Math.abs(b.touches.currentY-b.touches.startY),Math.abs(b.touches.currentX-b.touches.startX))/Math.PI;E=b.isHorizontal()?t>b.params.touchAngle:90-t>b.params.touchAngle}if(E&&b.emit("onTouchMoveOpposite",b,e),"undefined"==typeof O&&b.browser.ieTouch&&(b.touches.currentX!==b.touches.startX||b.touches.currentY!==b.touches.startY)&&(O=!0),S){if(E)return void(S=!1);if(O||!b.browser.ieTouch){b.allowClick=!1,b.emit("onSliderMove",b,e),e.preventDefault(),b.params.touchMoveStopPropagation&&!b.params.nested&&e.stopPropagation(),C||(i.loop&&b.fixLoop(),k=b.getWrapperTranslate(),b.setWrapperTransition(0),b.animating&&b.wrapper.trigger("webkitTransitionEnd transitionend oTransitionEnd MSTransitionEnd msTransitionEnd"),b.params.autoplay&&b.autoplaying&&(b.params.autoplayDisableOnInteraction?b.stopAutoplay():b.pauseAutoplay()),B=!1,b.params.grabCursor&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grabbing",b.container[0].style.cursor="-moz-grabbin",b.container[0].style.cursor="grabbing")),C=!0;var r=b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY;r*=b.params.touchRatio,b.rtl&&(r=-r),b.swipeDirection=r>0?"prev":"next",P=r+k;var s=!0;if(r>0&&P>b.minTranslate()?(s=!1,b.params.resistance&&(P=b.minTranslate()-1+Math.pow(-b.minTranslate()+k+r,b.params.resistanceRatio))):0>r&&P<b.maxTranslate()&&(s=!1,b.params.resistance&&(P=b.maxTranslate()+1-Math.pow(b.maxTranslate()-k-r,b.params.resistanceRatio))),
2044s&&(e.preventedByNestedSwiper=!0),!b.params.allowSwipeToNext&&"next"===b.swipeDirection&&k>P&&(P=k),!b.params.allowSwipeToPrev&&"prev"===b.swipeDirection&&P>k&&(P=k),b.params.followFinger){if(b.params.threshold>0){if(!(Math.abs(r)>b.params.threshold||I))return void(P=k);if(!I)return I=!0,b.touches.startX=b.touches.currentX,b.touches.startY=b.touches.currentY,P=k,void(b.touches.diff=b.isHorizontal()?b.touches.currentX-b.touches.startX:b.touches.currentY-b.touches.startY)}(b.params.freeMode||b.params.watchSlidesProgress)&&b.updateActiveIndex(),b.params.freeMode&&(0===A.length&&A.push({position:b.touches[b.isHorizontal()?"startX":"startY"],time:M}),A.push({position:b.touches[b.isHorizontal()?"currentX":"currentY"],time:(new window.Date).getTime()})),b.updateProgress(P),b.setWrapperTranslate(P)}}}}}},b.onTouchEnd=function(e){if(e.originalEvent&&(e=e.originalEvent),z&&b.emit("onTouchEnd",b,e),z=!1,S){b.params.grabCursor&&C&&S&&(b.container[0].style.cursor="move",b.container[0].style.cursor="-webkit-grab",b.container[0].style.cursor="-moz-grab",b.container[0].style.cursor="grab");var t=Date.now(),r=t-M;if(b.allowClick&&(b.updateClickedSlide(e),b.emit("onTap",b,e),300>r&&t-H>300&&(L&&clearTimeout(L),L=setTimeout(function(){b&&(b.params.paginationHide&&b.paginationContainer.length>0&&!a(e.target).hasClass(b.params.bulletClass)&&b.paginationContainer.toggleClass(b.params.paginationHiddenClass),b.emit("onClick",b,e))},300)),300>r&&300>t-H&&(L&&clearTimeout(L),b.emit("onDoubleTap",b,e))),H=Date.now(),setTimeout(function(){b&&(b.allowClick=!0)},0),!S||!C||!b.swipeDirection||0===b.touches.diff||P===k)return void(S=C=!1);S=C=!1;var i;if(i=b.params.followFinger?b.rtl?b.translate:-b.translate:-P,b.params.freeMode){if(i<-b.minTranslate())return void b.slideTo(b.activeIndex);if(i>-b.maxTranslate())return void(b.slides.length<b.snapGrid.length?b.slideTo(b.snapGrid.length-1):b.slideTo(b.slides.length-1));if(b.params.freeModeMomentum){if(A.length>1){var s=A.pop(),n=A.pop(),o=s.position-n.position,l=s.time-n.time;b.velocity=o/l,b.velocity=b.velocity/2,Math.abs(b.velocity)<b.params.freeModeMinimumVelocity&&(b.velocity=0),(l>150||(new window.Date).getTime()-s.time>300)&&(b.velocity=0)}else b.velocity=0;A.length=0;var p=1e3*b.params.freeModeMomentumRatio,d=b.velocity*p,u=b.translate+d;b.rtl&&(u=-u);var c,m=!1,h=20*Math.abs(b.velocity)*b.params.freeModeMomentumBounceRatio;if(u<b.maxTranslate())b.params.freeModeMomentumBounce?(u+b.maxTranslate()<-h&&(u=b.maxTranslate()-h),c=b.maxTranslate(),m=!0,B=!0):u=b.maxTranslate();else if(u>b.minTranslate())b.params.freeModeMomentumBounce?(u-b.minTranslate()>h&&(u=b.minTranslate()+h),c=b.minTranslate(),m=!0,B=!0):u=b.minTranslate();else if(b.params.freeModeSticky){var f,g=0;for(g=0;g<b.snapGrid.length;g+=1)if(b.snapGrid[g]>-u){f=g;break}u=Math.abs(b.snapGrid[f]-u)<Math.abs(b.snapGrid[f-1]-u)||"next"===b.swipeDirection?b.snapGrid[f]:b.snapGrid[f-1],b.rtl||(u=-u)}if(0!==b.velocity)p=b.rtl?Math.abs((-u-b.translate)/b.velocity):Math.abs((u-b.translate)/b.velocity);else if(b.params.freeModeSticky)return void b.slideReset();b.params.freeModeMomentumBounce&&m?(b.updateProgress(c),b.setWrapperTransition(p),b.setWrapperTranslate(u),b.onTransitionStart(),b.animating=!0,b.wrapper.transitionEnd(function(){b&&B&&(b.emit("onMomentumBounce",b),b.setWrapperTransition(b.params.speed),b.setWrapperTranslate(c),b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd()}))})):b.velocity?(b.updateProgress(u),b.setWrapperTransition(p),b.setWrapperTranslate(u),b.onTransitionStart(),b.animating||(b.animating=!0,b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd()}))):b.updateProgress(u),b.updateActiveIndex()}return void((!b.params.freeModeMomentum||r>=b.params.longSwipesMs)&&(b.updateProgress(),b.updateActiveIndex()))}var v,w=0,y=b.slidesSizesGrid[0];for(v=0;v<b.slidesGrid.length;v+=b.params.slidesPerGroup)"undefined"!=typeof b.slidesGrid[v+b.params.slidesPerGroup]?i>=b.slidesGrid[v]&&i<b.slidesGrid[v+b.params.slidesPerGroup]&&(w=v,y=b.slidesGrid[v+b.params.slidesPerGroup]-b.slidesGrid[v]):i>=b.slidesGrid[v]&&(w=v,y=b.slidesGrid[b.slidesGrid.length-1]-b.slidesGrid[b.slidesGrid.length-2]);var x=(i-b.slidesGrid[w])/y;if(r>b.params.longSwipesMs){if(!b.params.longSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&(x>=b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w)),"prev"===b.swipeDirection&&(x>1-b.params.longSwipesRatio?b.slideTo(w+b.params.slidesPerGroup):b.slideTo(w))}else{if(!b.params.shortSwipes)return void b.slideTo(b.activeIndex);"next"===b.swipeDirection&&b.slideTo(w+b.params.slidesPerGroup),"prev"===b.swipeDirection&&b.slideTo(w)}}},b._slideTo=function(e,a){return b.slideTo(e,a,!0,!0)},b.slideTo=function(e,a,t,r){"undefined"==typeof t&&(t=!0),"undefined"==typeof e&&(e=0),0>e&&(e=0),b.snapIndex=Math.floor(e/b.params.slidesPerGroup),b.snapIndex>=b.snapGrid.length&&(b.snapIndex=b.snapGrid.length-1);var i=-b.snapGrid[b.snapIndex];b.params.autoplay&&b.autoplaying&&(r||!b.params.autoplayDisableOnInteraction?b.pauseAutoplay(a):b.stopAutoplay()),b.updateProgress(i);for(var s=0;s<b.slidesGrid.length;s++)-Math.floor(100*i)>=Math.floor(100*b.slidesGrid[s])&&(e=s);return!b.params.allowSwipeToNext&&i<b.translate&&i<b.minTranslate()?!1:!b.params.allowSwipeToPrev&&i>b.translate&&i>b.maxTranslate()&&(b.activeIndex||0)!==e?!1:("undefined"==typeof a&&(a=b.params.speed),b.previousIndex=b.activeIndex||0,b.activeIndex=e,b.rtl&&-i===b.translate||!b.rtl&&i===b.translate?(b.params.autoHeight&&b.updateAutoHeight(),b.updateClasses(),"slide"!==b.params.effect&&b.setWrapperTranslate(i),!1):(b.updateClasses(),b.onTransitionStart(t),0===a?(b.setWrapperTranslate(i),b.setWrapperTransition(0),b.onTransitionEnd(t)):(b.setWrapperTranslate(i),b.setWrapperTransition(a),b.animating||(b.animating=!0,b.wrapper.transitionEnd(function(){b&&b.onTransitionEnd(t)}))),!0))},b.onTransitionStart=function(e){"undefined"==typeof e&&(e=!0),b.params.autoHeight&&b.updateAutoHeight(),b.lazy&&b.lazy.onTransitionStart(),e&&(b.emit("onTransitionStart",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeStart",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextStart",b):b.emit("onSlidePrevStart",b)))},b.onTransitionEnd=function(e){b.animating=!1,b.setWrapperTransition(0),"undefined"==typeof e&&(e=!0),b.lazy&&b.lazy.onTransitionEnd(),e&&(b.emit("onTransitionEnd",b),b.activeIndex!==b.previousIndex&&(b.emit("onSlideChangeEnd",b),b.activeIndex>b.previousIndex?b.emit("onSlideNextEnd",b):b.emit("onSlidePrevEnd",b))),b.params.hashnav&&b.hashnav&&b.hashnav.setHash()},b.slideNext=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)}return b.slideTo(b.activeIndex+b.params.slidesPerGroup,a,e,t)},b._slideNext=function(e){return b.slideNext(!0,e,!0)},b.slidePrev=function(e,a,t){if(b.params.loop){if(b.animating)return!1;b.fixLoop();b.container[0].clientLeft;return b.slideTo(b.activeIndex-1,a,e,t)}return b.slideTo(b.activeIndex-1,a,e,t)},b._slidePrev=function(e){return b.slidePrev(!0,e,!0)},b.slideReset=function(e,a,t){return b.slideTo(b.activeIndex,a,e)},b.setWrapperTransition=function(e,a){b.wrapper.transition(e),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTransition(e),b.params.parallax&&b.parallax&&b.parallax.setTransition(e),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTransition(e),b.params.control&&b.controller&&b.controller.setTransition(e,a),b.emit("onSetTransition",b,e)},b.setWrapperTranslate=function(e,a,t){var r=0,i=0,n=0;b.isHorizontal()?r=b.rtl?-e:e:i=e,b.params.roundLengths&&(r=s(r),i=s(i)),b.params.virtualTranslate||(b.support.transforms3d?b.wrapper.transform("translate3d("+r+"px, "+i+"px, "+n+"px)"):b.wrapper.transform("translate("+r+"px, "+i+"px)")),b.translate=b.isHorizontal()?r:i;var o,l=b.maxTranslate()-b.minTranslate();o=0===l?0:(e-b.minTranslate())/l,o!==b.progress&&b.updateProgress(e),a&&b.updateActiveIndex(),"slide"!==b.params.effect&&b.effects[b.params.effect]&&b.effects[b.params.effect].setTranslate(b.translate),b.params.parallax&&b.parallax&&b.parallax.setTranslate(b.translate),b.params.scrollbar&&b.scrollbar&&b.scrollbar.setTranslate(b.translate),b.params.control&&b.controller&&b.controller.setTranslate(b.translate,t),b.emit("onSetTranslate",b,b.translate)},b.getTranslate=function(e,a){var t,r,i,s;return"undefined"==typeof a&&(a="x"),b.params.virtualTranslate?b.rtl?-b.translate:b.translate:(i=window.getComputedStyle(e,null),window.WebKitCSSMatrix?(r=i.transform||i.webkitTransform,r.split(",").length>6&&(r=r.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),s=new window.WebKitCSSMatrix("none"===r?"":r)):(s=i.MozTransform||i.OTransform||i.MsTransform||i.msTransform||i.transform||i.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),t=s.toString().split(",")),"x"===a&&(r=window.WebKitCSSMatrix?s.m41:16===t.length?parseFloat(t[12]):parseFloat(t[4])),"y"===a&&(r=window.WebKitCSSMatrix?s.m42:16===t.length?parseFloat(t[13]):parseFloat(t[5])),b.rtl&&r&&(r=-r),r||0)},b.getWrapperTranslate=function(e){return"undefined"==typeof e&&(e=b.isHorizontal()?"x":"y"),b.getTranslate(b.wrapper[0],e)},b.observers=[],b.initObservers=function(){if(b.params.observeParents)for(var e=b.container.parents(),a=0;a<e.length;a++)l(e[a]);l(b.container[0],{childList:!1}),l(b.wrapper[0],{attributes:!1})},b.disconnectObservers=function(){for(var e=0;e<b.observers.length;e++)b.observers[e].disconnect();b.observers=[]},b.createLoop=function(){b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass).remove();var e=b.wrapper.children("."+b.params.slideClass);"auto"!==b.params.slidesPerView||b.params.loopedSlides||(b.params.loopedSlides=e.length),b.loopedSlides=parseInt(b.params.loopedSlides||b.params.slidesPerView,10),b.loopedSlides=b.loopedSlides+b.params.loopAdditionalSlides,b.loopedSlides>e.length&&(b.loopedSlides=e.length);var t,r=[],i=[];for(e.each(function(t,s){var n=a(this);t<b.loopedSlides&&i.push(s),t<e.length&&t>=e.length-b.loopedSlides&&r.push(s),n.attr("data-swiper-slide-index",t)}),t=0;t<i.length;t++)b.wrapper.append(a(i[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass));for(t=r.length-1;t>=0;t--)b.wrapper.prepend(a(r[t].cloneNode(!0)).addClass(b.params.slideDuplicateClass))},b.destroyLoop=function(){b.wrapper.children("."+b.params.slideClass+"."+b.params.slideDuplicateClass).remove(),b.slides.removeAttr("data-swiper-slide-index")},b.reLoop=function(e){var a=b.activeIndex-b.loopedSlides;b.destroyLoop(),b.createLoop(),b.updateSlidesSize(),e&&b.slideTo(a+b.loopedSlides,0,!1)},b.fixLoop=function(){var e;b.activeIndex<b.loopedSlides?(e=b.slides.length-3*b.loopedSlides+b.activeIndex,e+=b.loopedSlides,b.slideTo(e,0,!1,!0)):("auto"===b.params.slidesPerView&&b.activeIndex>=2*b.loopedSlides||b.activeIndex>b.slides.length-2*b.params.slidesPerView)&&(e=-b.slides.length+b.activeIndex+b.loopedSlides,e+=b.loopedSlides,b.slideTo(e,0,!1,!0))},b.appendSlide=function(e){if(b.params.loop&&b.destroyLoop(),"object"==typeof e&&e.length)for(var a=0;a<e.length;a++)e[a]&&b.wrapper.append(e[a]);else b.wrapper.append(e);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0)},b.prependSlide=function(e){b.params.loop&&b.destroyLoop();var a=b.activeIndex+1;if("object"==typeof e&&e.length){for(var t=0;t<e.length;t++)e[t]&&b.wrapper.prepend(e[t]);a=b.activeIndex+e.length}else b.wrapper.prepend(e);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0),b.slideTo(a,0,!1)},b.removeSlide=function(e){b.params.loop&&(b.destroyLoop(),b.slides=b.wrapper.children("."+b.params.slideClass));var a,t=b.activeIndex;if("object"==typeof e&&e.length){for(var r=0;r<e.length;r++)a=e[r],b.slides[a]&&b.slides.eq(a).remove(),t>a&&t--;t=Math.max(t,0)}else a=e,b.slides[a]&&b.slides.eq(a).remove(),t>a&&t--,t=Math.max(t,0);b.params.loop&&b.createLoop(),b.params.observer&&b.support.observer||b.update(!0),b.params.loop?b.slideTo(t+b.loopedSlides,0,!1):b.slideTo(t,0,!1)},b.removeAllSlides=function(){for(var e=[],a=0;a<b.slides.length;a++)e.push(a);b.removeSlide(e)},b.effects={fade:{setTranslate:function(){for(var e=0;e<b.slides.length;e++){var a=b.slides.eq(e),t=a[0].swiperSlideOffset,r=-t;b.params.virtualTranslate||(r-=b.translate);var i=0;b.isHorizontal()||(i=r,r=0);var s=b.params.fade.crossFade?Math.max(1-Math.abs(a[0].progress),0):1+Math.min(Math.max(a[0].progress,-1),0);a.css({opacity:s}).transform("translate3d("+r+"px, "+i+"px, 0px)")}},setTransition:function(e){if(b.slides.transition(e),b.params.virtualTranslate&&0!==e){var a=!1;b.slides.transitionEnd(function(){if(!a&&b){a=!0,b.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],t=0;t<e.length;t++)b.wrapper.trigger(e[t])}})}}},flip:{setTranslate:function(){for(var e=0;e<b.slides.length;e++){var t=b.slides.eq(e),r=t[0].progress;b.params.flip.limitRotation&&(r=Math.max(Math.min(t[0].progress,1),-1));var i=t[0].swiperSlideOffset,s=-180*r,n=s,o=0,l=-i,p=0;if(b.isHorizontal()?b.rtl&&(n=-n):(p=l,l=0,o=-n,n=0),t[0].style.zIndex=-Math.abs(Math.round(r))+b.slides.length,b.params.flip.slideShadows){var d=b.isHorizontal()?t.find(".swiper-slide-shadow-left"):t.find(".swiper-slide-shadow-top"),u=b.isHorizontal()?t.find(".swiper-slide-shadow-right"):t.find(".swiper-slide-shadow-bottom");0===d.length&&(d=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),t.append(d)),0===u.length&&(u=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),t.append(u)),d.length&&(d[0].style.opacity=Math.max(-r,0)),u.length&&(u[0].style.opacity=Math.max(r,0))}t.transform("translate3d("+l+"px, "+p+"px, 0px) rotateX("+o+"deg) rotateY("+n+"deg)")}},setTransition:function(e){if(b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.virtualTranslate&&0!==e){var t=!1;b.slides.eq(b.activeIndex).transitionEnd(function(){if(!t&&b&&a(this).hasClass(b.params.slideActiveClass)){t=!0,b.animating=!1;for(var e=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],r=0;r<e.length;r++)b.wrapper.trigger(e[r])}})}}},cube:{setTranslate:function(){var e,t=0;b.params.cube.shadow&&(b.isHorizontal()?(e=b.wrapper.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),b.wrapper.append(e)),e.css({height:b.width+"px"})):(e=b.container.find(".swiper-cube-shadow"),0===e.length&&(e=a('<div class="swiper-cube-shadow"></div>'),b.container.append(e))));for(var r=0;r<b.slides.length;r++){var i=b.slides.eq(r),s=90*r,n=Math.floor(s/360);b.rtl&&(s=-s,n=Math.floor(-s/360));var o=Math.max(Math.min(i[0].progress,1),-1),l=0,p=0,d=0;r%4===0?(l=4*-n*b.size,d=0):(r-1)%4===0?(l=0,d=4*-n*b.size):(r-2)%4===0?(l=b.size+4*n*b.size,d=b.size):(r-3)%4===0&&(l=-b.size,d=3*b.size+4*b.size*n),b.rtl&&(l=-l),b.isHorizontal()||(p=l,l=0);var u="rotateX("+(b.isHorizontal()?0:-s)+"deg) rotateY("+(b.isHorizontal()?s:0)+"deg) translate3d("+l+"px, "+p+"px, "+d+"px)";if(1>=o&&o>-1&&(t=90*r+90*o,b.rtl&&(t=90*-r-90*o)),i.transform(u),b.params.cube.slideShadows){var c=b.isHorizontal()?i.find(".swiper-slide-shadow-left"):i.find(".swiper-slide-shadow-top"),m=b.isHorizontal()?i.find(".swiper-slide-shadow-right"):i.find(".swiper-slide-shadow-bottom");0===c.length&&(c=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),i.append(c)),0===m.length&&(m=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),i.append(m)),c.length&&(c[0].style.opacity=Math.max(-o,0)),m.length&&(m[0].style.opacity=Math.max(o,0))}}if(b.wrapper.css({"-webkit-transform-origin":"50% 50% -"+b.size/2+"px","-moz-transform-origin":"50% 50% -"+b.size/2+"px","-ms-transform-origin":"50% 50% -"+b.size/2+"px","transform-origin":"50% 50% -"+b.size/2+"px"}),b.params.cube.shadow)if(b.isHorizontal())e.transform("translate3d(0px, "+(b.width/2+b.params.cube.shadowOffset)+"px, "+-b.width/2+"px) rotateX(90deg) rotateZ(0deg) scale("+b.params.cube.shadowScale+")");else{var h=Math.abs(t)-90*Math.floor(Math.abs(t)/90),f=1.5-(Math.sin(2*h*Math.PI/360)/2+Math.cos(2*h*Math.PI/360)/2),g=b.params.cube.shadowScale,v=b.params.cube.shadowScale/f,w=b.params.cube.shadowOffset;e.transform("scale3d("+g+", 1, "+v+") translate3d(0px, "+(b.height/2+w)+"px, "+-b.height/2/v+"px) rotateX(-90deg)")}var y=b.isSafari||b.isUiWebView?-b.size/2:0;b.wrapper.transform("translate3d(0px,0,"+y+"px) rotateX("+(b.isHorizontal()?0:t)+"deg) rotateY("+(b.isHorizontal()?-t:0)+"deg)")},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),b.params.cube.shadow&&!b.isHorizontal()&&b.container.find(".swiper-cube-shadow").transition(e)}},coverflow:{setTranslate:function(){for(var e=b.translate,t=b.isHorizontal()?-e+b.width/2:-e+b.height/2,r=b.isHorizontal()?b.params.coverflow.rotate:-b.params.coverflow.rotate,i=b.params.coverflow.depth,s=0,n=b.slides.length;n>s;s++){var o=b.slides.eq(s),l=b.slidesSizesGrid[s],p=o[0].swiperSlideOffset,d=(t-p-l/2)/l*b.params.coverflow.modifier,u=b.isHorizontal()?r*d:0,c=b.isHorizontal()?0:r*d,m=-i*Math.abs(d),h=b.isHorizontal()?0:b.params.coverflow.stretch*d,f=b.isHorizontal()?b.params.coverflow.stretch*d:0;Math.abs(f)<.001&&(f=0),Math.abs(h)<.001&&(h=0),Math.abs(m)<.001&&(m=0),Math.abs(u)<.001&&(u=0),Math.abs(c)<.001&&(c=0);var g="translate3d("+f+"px,"+h+"px,"+m+"px)  rotateX("+c+"deg) rotateY("+u+"deg)";if(o.transform(g),o[0].style.zIndex=-Math.abs(Math.round(d))+1,b.params.coverflow.slideShadows){var v=b.isHorizontal()?o.find(".swiper-slide-shadow-left"):o.find(".swiper-slide-shadow-top"),w=b.isHorizontal()?o.find(".swiper-slide-shadow-right"):o.find(".swiper-slide-shadow-bottom");0===v.length&&(v=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"left":"top")+'"></div>'),o.append(v)),0===w.length&&(w=a('<div class="swiper-slide-shadow-'+(b.isHorizontal()?"right":"bottom")+'"></div>'),o.append(w)),v.length&&(v[0].style.opacity=d>0?d:0),w.length&&(w[0].style.opacity=-d>0?-d:0)}}if(b.browser.ie){var y=b.wrapper[0].style;y.perspectiveOrigin=t+"px 50%"}},setTransition:function(e){b.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}}},b.lazy={initialImageLoaded:!1,loadImageInSlide:function(e,t){if("undefined"!=typeof e&&("undefined"==typeof t&&(t=!0),0!==b.slides.length)){var r=b.slides.eq(e),i=r.find(".swiper-lazy:not(.swiper-lazy-loaded):not(.swiper-lazy-loading)");!r.hasClass("swiper-lazy")||r.hasClass("swiper-lazy-loaded")||r.hasClass("swiper-lazy-loading")||(i=i.add(r[0])),0!==i.length&&i.each(function(){var e=a(this);e.addClass("swiper-lazy-loading");var i=e.attr("data-background"),s=e.attr("data-src"),n=e.attr("data-srcset");b.loadImage(e[0],s||i,n,!1,function(){if(i?(e.css("background-image",'url("'+i+'")'),e.removeAttr("data-background")):(n&&(e.attr("srcset",n),e.removeAttr("data-srcset")),s&&(e.attr("src",s),e.removeAttr("data-src"))),e.addClass("swiper-lazy-loaded").removeClass("swiper-lazy-loading"),r.find(".swiper-lazy-preloader, .preloader").remove(),b.params.loop&&t){var a=r.attr("data-swiper-slide-index");if(r.hasClass(b.params.slideDuplicateClass)){var o=b.wrapper.children('[data-swiper-slide-index="'+a+'"]:not(.'+b.params.slideDuplicateClass+")");b.lazy.loadImageInSlide(o.index(),!1)}else{var l=b.wrapper.children("."+b.params.slideDuplicateClass+'[data-swiper-slide-index="'+a+'"]');b.lazy.loadImageInSlide(l.index(),!1)}}b.emit("onLazyImageReady",b,r[0],e[0])}),b.emit("onLazyImageLoad",b,r[0],e[0])})}},load:function(){var e;if(b.params.watchSlidesVisibility)b.wrapper.children("."+b.params.slideVisibleClass).each(function(){b.lazy.loadImageInSlide(a(this).index())});else if(b.params.slidesPerView>1)for(e=b.activeIndex;e<b.activeIndex+b.params.slidesPerView;e++)b.slides[e]&&b.lazy.loadImageInSlide(e);else b.lazy.loadImageInSlide(b.activeIndex);if(b.params.lazyLoadingInPrevNext)if(b.params.slidesPerView>1||b.params.lazyLoadingInPrevNextAmount&&b.params.lazyLoadingInPrevNextAmount>1){var t=b.params.lazyLoadingInPrevNextAmount,r=b.params.slidesPerView,i=Math.min(b.activeIndex+r+Math.max(t,r),b.slides.length),s=Math.max(b.activeIndex-Math.max(r,t),0);for(e=b.activeIndex+b.params.slidesPerView;i>e;e++)b.slides[e]&&b.lazy.loadImageInSlide(e);for(e=s;e<b.activeIndex;e++)b.slides[e]&&b.lazy.loadImageInSlide(e)}else{var n=b.wrapper.children("."+b.params.slideNextClass);n.length>0&&b.lazy.loadImageInSlide(n.index());var o=b.wrapper.children("."+b.params.slidePrevClass);o.length>0&&b.lazy.loadImageInSlide(o.index())}},onTransitionStart:function(){b.params.lazyLoading&&(b.params.lazyLoadingOnTransitionStart||!b.params.lazyLoadingOnTransitionStart&&!b.lazy.initialImageLoaded)&&b.lazy.load()},onTransitionEnd:function(){b.params.lazyLoading&&!b.params.lazyLoadingOnTransitionStart&&b.lazy.load()}},b.scrollbar={isTouched:!1,setDragPosition:function(e){var a=b.scrollbar,t=b.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY,r=t-a.track.offset()[b.isHorizontal()?"left":"top"]-a.dragSize/2,i=-b.minTranslate()*a.moveDivider,s=-b.maxTranslate()*a.moveDivider;i>r?r=i:r>s&&(r=s),r=-r/a.moveDivider,b.updateProgress(r),b.setWrapperTranslate(r,!0)},dragStart:function(e){var a=b.scrollbar;a.isTouched=!0,e.preventDefault(),e.stopPropagation(),a.setDragPosition(e),clearTimeout(a.dragTimeout),a.track.transition(0),b.params.scrollbarHide&&a.track.css("opacity",1),b.wrapper.transition(100),a.drag.transition(100),b.emit("onScrollbarDragStart",b)},dragMove:function(e){var a=b.scrollbar;a.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,a.setDragPosition(e),b.wrapper.transition(0),a.track.transition(0),a.drag.transition(0),b.emit("onScrollbarDragMove",b))},dragEnd:function(e){var a=b.scrollbar;a.isTouched&&(a.isTouched=!1,b.params.scrollbarHide&&(clearTimeout(a.dragTimeout),a.dragTimeout=setTimeout(function(){a.track.css("opacity",0),a.track.transition(400)},1e3)),b.emit("onScrollbarDragEnd",b),b.params.scrollbarSnapOnRelease&&b.slideReset())},enableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).on(b.touchEvents.start,e.dragStart),a(t).on(b.touchEvents.move,e.dragMove),a(t).on(b.touchEvents.end,e.dragEnd)},disableDraggable:function(){var e=b.scrollbar,t=b.support.touch?e.track:document;a(e.track).off(b.touchEvents.start,e.dragStart),a(t).off(b.touchEvents.move,e.dragMove),a(t).off(b.touchEvents.end,e.dragEnd)},set:function(){if(b.params.scrollbar){var e=b.scrollbar;e.track=a(b.params.scrollbar),b.params.uniqueNavElements&&"string"==typeof b.params.scrollbar&&e.track.length>1&&1===b.container.find(b.params.scrollbar).length&&(e.track=b.container.find(b.params.scrollbar)),e.drag=e.track.find(".swiper-scrollbar-drag"),0===e.drag.length&&(e.drag=a('<div class="swiper-scrollbar-drag"></div>'),e.track.append(e.drag)),e.drag[0].style.width="",e.drag[0].style.height="",e.trackSize=b.isHorizontal()?e.track[0].offsetWidth:e.track[0].offsetHeight,e.divider=b.size/b.virtualSize,e.moveDivider=e.divider*(e.trackSize/b.size),e.dragSize=e.trackSize*e.divider,b.isHorizontal()?e.drag[0].style.width=e.dragSize+"px":e.drag[0].style.height=e.dragSize+"px",e.divider>=1?e.track[0].style.display="none":e.track[0].style.display="",b.params.scrollbarHide&&(e.track[0].style.opacity=0)}},setTranslate:function(){if(b.params.scrollbar){var e,a=b.scrollbar,t=(b.translate||0,a.dragSize);e=(a.trackSize-a.dragSize)*b.progress,b.rtl&&b.isHorizontal()?(e=-e,e>0?(t=a.dragSize-e,e=0):-e+a.dragSize>a.trackSize&&(t=a.trackSize+e)):0>e?(t=a.dragSize+e,e=0):e+a.dragSize>a.trackSize&&(t=a.trackSize-e),b.isHorizontal()?(b.support.transforms3d?a.drag.transform("translate3d("+e+"px, 0, 0)"):a.drag.transform("translateX("+e+"px)"),a.drag[0].style.width=t+"px"):(b.support.transforms3d?a.drag.transform("translate3d(0px, "+e+"px, 0)"):a.drag.transform("translateY("+e+"px)"),a.drag[0].style.height=t+"px"),b.params.scrollbarHide&&(clearTimeout(a.timeout),a.track[0].style.opacity=1,a.timeout=setTimeout(function(){a.track[0].style.opacity=0,a.track.transition(400)},1e3))}},setTransition:function(e){b.params.scrollbar&&b.scrollbar.drag.transition(e)}},b.controller={LinearSpline:function(e,a){this.x=e,this.y=a,this.lastIndex=e.length-1;var t,r;this.x.length;this.interpolate=function(e){return e?(r=i(this.x,e),t=r-1,(e-this.x[t])*(this.y[r]-this.y[t])/(this.x[r]-this.x[t])+this.y[t]):0};var i=function(){var e,a,t;return function(r,i){for(a=-1,e=r.length;e-a>1;)r[t=e+a>>1]<=i?a=t:e=t;return e}}()},getInterpolateFunction:function(e){b.controller.spline||(b.controller.spline=b.params.loop?new b.controller.LinearSpline(b.slidesGrid,e.slidesGrid):new b.controller.LinearSpline(b.snapGrid,e.snapGrid))},setTranslate:function(e,a){function r(a){e=a.rtl&&"horizontal"===a.params.direction?-b.translate:b.translate,"slide"===b.params.controlBy&&(b.controller.getInterpolateFunction(a),s=-b.controller.spline.interpolate(-e)),s&&"container"!==b.params.controlBy||(i=(a.maxTranslate()-a.minTranslate())/(b.maxTranslate()-b.minTranslate()),s=(e-b.minTranslate())*i+a.minTranslate()),b.params.controlInverse&&(s=a.maxTranslate()-s),a.updateProgress(s),a.setWrapperTranslate(s,!1,b),a.updateActiveIndex()}var i,s,n=b.params.control;if(b.isArray(n))for(var o=0;o<n.length;o++)n[o]!==a&&n[o]instanceof t&&r(n[o]);else n instanceof t&&a!==n&&r(n)},setTransition:function(e,a){function r(a){a.setWrapperTransition(e,b),0!==e&&(a.onTransitionStart(),a.wrapper.transitionEnd(function(){s&&(a.params.loop&&"slide"===b.params.controlBy&&a.fixLoop(),a.onTransitionEnd())}))}var i,s=b.params.control;if(b.isArray(s))for(i=0;i<s.length;i++)s[i]!==a&&s[i]instanceof t&&r(s[i]);else s instanceof t&&a!==s&&r(s)}},b.hashnav={init:function(){if(b.params.hashnav){b.hashnav.initialized=!0;var e=document.location.hash.replace("#","");if(e)for(var a=0,t=0,r=b.slides.length;r>t;t++){var i=b.slides.eq(t),s=i.attr("data-hash");if(s===e&&!i.hasClass(b.params.slideDuplicateClass)){var n=i.index();b.slideTo(n,a,b.params.runCallbacksOnInit,!0)}}}},setHash:function(){b.hashnav.initialized&&b.params.hashnav&&(document.location.hash=b.slides.eq(b.activeIndex).attr("data-hash")||"")}},b.disableKeyboardControl=function(){b.params.keyboardControl=!1,a(document).off("keydown",p)},b.enableKeyboardControl=function(){b.params.keyboardControl=!0,a(document).on("keydown",p)},b.mousewheel={event:!1,lastScrollTime:(new window.Date).getTime()},b.params.mousewheelControl){try{new window.WheelEvent("wheel"),b.mousewheel.event="wheel"}catch(N){(window.WheelEvent||b.container[0]&&"wheel"in b.container[0])&&(b.mousewheel.event="wheel")}!b.mousewheel.event&&window.WheelEvent,b.mousewheel.event||void 0===document.onmousewheel||(b.mousewheel.event="mousewheel"),b.mousewheel.event||(b.mousewheel.event="DOMMouseScroll")}b.disableMousewheelControl=function(){return b.mousewheel.event?(b.container.off(b.mousewheel.event,d),!0):!1},b.enableMousewheelControl=function(){return b.mousewheel.event?(b.container.on(b.mousewheel.event,d),!0):!1},b.parallax={setTranslate:function(){b.container.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){u(this,b.progress)}),b.slides.each(function(){var e=a(this);e.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var a=Math.min(Math.max(e[0].progress,-1),1);u(this,a)})})},setTransition:function(e){"undefined"==typeof e&&(e=b.params.speed),b.container.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y]").each(function(){var t=a(this),r=parseInt(t.attr("data-swiper-parallax-duration"),10)||e;0===e&&(r=0),t.transition(r)})}},b._plugins=[];for(var R in b.plugins){var W=b.plugins[R](b,b.params[R]);W&&b._plugins.push(W)}return b.callPlugins=function(e){for(var a=0;a<b._plugins.length;a++)e in b._plugins[a]&&b._plugins[a][e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},b.emitterEventListeners={},b.emit=function(e){b.params[e]&&b.params[e](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);var a;if(b.emitterEventListeners[e])for(a=0;a<b.emitterEventListeners[e].length;a++)b.emitterEventListeners[e][a](arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]);b.callPlugins&&b.callPlugins(e,arguments[1],arguments[2],arguments[3],arguments[4],arguments[5])},b.on=function(e,a){return e=c(e),b.emitterEventListeners[e]||(b.emitterEventListeners[e]=[]),b.emitterEventListeners[e].push(a),b},b.off=function(e,a){var t;if(e=c(e),"undefined"==typeof a)return b.emitterEventListeners[e]=[],b;if(b.emitterEventListeners[e]&&0!==b.emitterEventListeners[e].length){for(t=0;t<b.emitterEventListeners[e].length;t++)b.emitterEventListeners[e][t]===a&&b.emitterEventListeners[e].splice(t,1);return b}},b.once=function(e,a){e=c(e);var t=function(){a(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4]),b.off(e,t)};return b.on(e,t),b},b.a11y={makeFocusable:function(e){return e.attr("tabIndex","0"),e},addRole:function(e,a){return e.attr("role",a),e},addLabel:function(e,a){return e.attr("aria-label",a),e},disable:function(e){return e.attr("aria-disabled",!0),e},enable:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(e){13===e.keyCode&&(a(e.target).is(b.params.nextButton)?(b.onClickNext(e),b.isEnd?b.a11y.notify(b.params.lastSlideMessage):b.a11y.notify(b.params.nextSlideMessage)):a(e.target).is(b.params.prevButton)&&(b.onClickPrev(e),b.isBeginning?b.a11y.notify(b.params.firstSlideMessage):b.a11y.notify(b.params.prevSlideMessage)),a(e.target).is("."+b.params.bulletClass)&&a(e.target)[0].click())},liveRegion:a('<span class="swiper-notification" aria-live="assertive" aria-atomic="true"></span>'),notify:function(e){var a=b.a11y.liveRegion;0!==a.length&&(a.html(""),a.html(e))},init:function(){b.params.nextButton&&b.nextButton&&b.nextButton.length>0&&(b.a11y.makeFocusable(b.nextButton),b.a11y.addRole(b.nextButton,"button"),b.a11y.addLabel(b.nextButton,b.params.nextSlideMessage)),b.params.prevButton&&b.prevButton&&b.prevButton.length>0&&(b.a11y.makeFocusable(b.prevButton),b.a11y.addRole(b.prevButton,"button"),b.a11y.addLabel(b.prevButton,b.params.prevSlideMessage)),a(b.container).append(b.a11y.liveRegion)},initPagination:function(){b.params.pagination&&b.params.paginationClickable&&b.bullets&&b.bullets.length&&b.bullets.each(function(){var e=a(this);b.a11y.makeFocusable(e),b.a11y.addRole(e,"button"),b.a11y.addLabel(e,b.params.paginationBulletMessage.replace(/{{index}}/,e.index()+1))})},destroy:function(){b.a11y.liveRegion&&b.a11y.liveRegion.length>0&&b.a11y.liveRegion.remove()}},b.init=function(){b.params.loop&&b.createLoop(),b.updateContainerSize(),b.updateSlidesSize(),b.updatePagination(),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.set(),b.params.scrollbarDraggable&&b.scrollbar.enableDraggable()),"slide"!==b.params.effect&&b.effects[b.params.effect]&&(b.params.loop||b.updateProgress(),b.effects[b.params.effect].setTranslate()),b.params.loop?b.slideTo(b.params.initialSlide+b.loopedSlides,0,b.params.runCallbacksOnInit):(b.slideTo(b.params.initialSlide,0,b.params.runCallbacksOnInit),0===b.params.initialSlide&&(b.parallax&&b.params.parallax&&b.parallax.setTranslate(),b.lazy&&b.params.lazyLoading&&(b.lazy.load(),b.lazy.initialImageLoaded=!0))),b.attachEvents(),b.params.observer&&b.support.observer&&b.initObservers(),b.params.preloadImages&&!b.params.lazyLoading&&b.preloadImages(),b.params.autoplay&&b.startAutoplay(),b.params.keyboardControl&&b.enableKeyboardControl&&b.enableKeyboardControl(),b.params.mousewheelControl&&b.enableMousewheelControl&&b.enableMousewheelControl(),
2045b.params.hashnav&&b.hashnav&&b.hashnav.init(),b.params.a11y&&b.a11y&&b.a11y.init(),b.emit("onInit",b)},b.cleanupStyles=function(){b.container.removeClass(b.classNames.join(" ")).removeAttr("style"),b.wrapper.removeAttr("style"),b.slides&&b.slides.length&&b.slides.removeClass([b.params.slideVisibleClass,b.params.slideActiveClass,b.params.slideNextClass,b.params.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-column").removeAttr("data-swiper-row"),b.paginationContainer&&b.paginationContainer.length&&b.paginationContainer.removeClass(b.params.paginationHiddenClass),b.bullets&&b.bullets.length&&b.bullets.removeClass(b.params.bulletActiveClass),b.params.prevButton&&a(b.params.prevButton).removeClass(b.params.buttonDisabledClass),b.params.nextButton&&a(b.params.nextButton).removeClass(b.params.buttonDisabledClass),b.params.scrollbar&&b.scrollbar&&(b.scrollbar.track&&b.scrollbar.track.length&&b.scrollbar.track.removeAttr("style"),b.scrollbar.drag&&b.scrollbar.drag.length&&b.scrollbar.drag.removeAttr("style"))},b.destroy=function(e,a){b.detachEvents(),b.stopAutoplay(),b.params.scrollbar&&b.scrollbar&&b.params.scrollbarDraggable&&b.scrollbar.disableDraggable(),b.params.loop&&b.destroyLoop(),a&&b.cleanupStyles(),b.disconnectObservers(),b.params.keyboardControl&&b.disableKeyboardControl&&b.disableKeyboardControl(),b.params.mousewheelControl&&b.disableMousewheelControl&&b.disableMousewheelControl(),b.params.a11y&&b.a11y&&b.a11y.destroy(),b.emit("onDestroy"),e!==!1&&(b=null)},b.init(),b}};t.prototype={isSafari:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("safari")>=0&&e.indexOf("chrome")<0&&e.indexOf("android")<0}(),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(navigator.userAgent),isArray:function(e){return"[object Array]"===Object.prototype.toString.apply(e)},browser:{ie:window.navigator.pointerEnabled||window.navigator.msPointerEnabled,ieTouch:window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>1||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>1},device:function(){var e=navigator.userAgent,a=e.match(/(Android);?[\s\/]+([\d.]+)?/),t=e.match(/(iPad).*OS\s([\d_]+)/),r=e.match(/(iPod)(.*OS\s([\d_]+))?/),i=!t&&e.match(/(iPhone\sOS)\s([\d_]+)/);return{ios:t||i||r,android:a}}(),support:{touch:window.Modernizr&&Modernizr.touch===!0||function(){return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===!0||function(){var e=document.createElement("div").style;return"webkitPerspective"in e||"MozPerspective"in e||"OPerspective"in e||"MsPerspective"in e||"perspective"in e}(),flexbox:function(){for(var e=document.createElement("div").style,a="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),t=0;t<a.length;t++)if(a[t]in e)return!0}(),observer:function(){return"MutationObserver"in window||"WebkitMutationObserver"in window}()},plugins:{}};for(var r=(function(){var e=function(e){var a=this,t=0;for(t=0;t<e.length;t++)a[t]=e[t];return a.length=e.length,this},a=function(a,t){var r=[],i=0;if(a&&!t&&a instanceof e)return a;if(a)if("string"==typeof a){var s,n,o=a.trim();if(o.indexOf("<")>=0&&o.indexOf(">")>=0){var l="div";for(0===o.indexOf("<li")&&(l="ul"),0===o.indexOf("<tr")&&(l="tbody"),(0===o.indexOf("<td")||0===o.indexOf("<th"))&&(l="tr"),0===o.indexOf("<tbody")&&(l="table"),0===o.indexOf("<option")&&(l="select"),n=document.createElement(l),n.innerHTML=a,i=0;i<n.childNodes.length;i++)r.push(n.childNodes[i])}else for(s=t||"#"!==a[0]||a.match(/[ .<>:~]/)?(t||document).querySelectorAll(a):[document.getElementById(a.split("#")[1])],i=0;i<s.length;i++)s[i]&&r.push(s[i])}else if(a.nodeType||a===window||a===document)r.push(a);else if(a.length>0&&a[0].nodeType)for(i=0;i<a.length;i++)r.push(a[i]);return new e(r)};return e.prototype={addClass:function(e){if("undefined"==typeof e)return this;for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.add(a[t]);return this},removeClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.remove(a[t]);return this},hasClass:function(e){return this[0]?this[0].classList.contains(e):!1},toggleClass:function(e){for(var a=e.split(" "),t=0;t<a.length;t++)for(var r=0;r<this.length;r++)this[r].classList.toggle(a[t]);return this},attr:function(e,a){if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var t=0;t<this.length;t++)if(2===arguments.length)this[t].setAttribute(e,a);else for(var r in e)this[t][r]=e[r],this[t].setAttribute(r,e[r]);return this},removeAttr:function(e){for(var a=0;a<this.length;a++)this[a].removeAttribute(e);return this},data:function(e,a){if("undefined"!=typeof a){for(var t=0;t<this.length;t++){var r=this[t];r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=a}return this}if(this[0]){var i=this[0].getAttribute("data-"+e);return i?i:this[0].dom7ElementDataStorage&&e in this[0].dom7ElementDataStorage?this[0].dom7ElementDataStorage[e]:void 0}},transform:function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this},on:function(e,t,r,i){function s(e){var i=e.target;if(a(i).is(t))r.call(i,e);else for(var s=a(i).parents(),n=0;n<s.length;n++)a(s[n]).is(t)&&r.call(s[n],e)}var n,o,l=e.split(" ");for(n=0;n<this.length;n++)if("function"==typeof t||t===!1)for("function"==typeof t&&(r=arguments[1],i=arguments[2]||!1),o=0;o<l.length;o++)this[n].addEventListener(l[o],r,i);else for(o=0;o<l.length;o++)this[n].dom7LiveListeners||(this[n].dom7LiveListeners=[]),this[n].dom7LiveListeners.push({listener:r,liveListener:s}),this[n].addEventListener(l[o],s,i);return this},off:function(e,a,t,r){for(var i=e.split(" "),s=0;s<i.length;s++)for(var n=0;n<this.length;n++)if("function"==typeof a||a===!1)"function"==typeof a&&(t=arguments[1],r=arguments[2]||!1),this[n].removeEventListener(i[s],t,r);else if(this[n].dom7LiveListeners)for(var o=0;o<this[n].dom7LiveListeners.length;o++)this[n].dom7LiveListeners[o].listener===t&&this[n].removeEventListener(i[s],this[n].dom7LiveListeners[o].liveListener,r);return this},once:function(e,a,t,r){function i(n){t(n),s.off(e,a,i,r)}var s=this;"function"==typeof a&&(a=!1,t=arguments[1],r=arguments[2]),s.on(e,a,i,r)},trigger:function(e,a){for(var t=0;t<this.length;t++){var r;try{r=new window.CustomEvent(e,{detail:a,bubbles:!0,cancelable:!0})}catch(i){r=document.createEvent("Event"),r.initEvent(e,!0,!0),r.detail=a}this[t].dispatchEvent(r)}return this},transitionEnd:function(e){function a(s){if(s.target===this)for(e.call(this,s),t=0;t<r.length;t++)i.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<r.length;t++)i.on(r[t],a);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){return this.length>0?e?this[0].offsetWidth+parseFloat(this.css("margin-right"))+parseFloat(this.css("margin-left")):this[0].offsetWidth:null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){return this.length>0?e?this[0].offsetHeight+parseFloat(this.css("margin-top"))+parseFloat(this.css("margin-bottom")):this[0].offsetHeight:null},offset:function(){if(this.length>0){var e=this[0],a=e.getBoundingClientRect(),t=document.body,r=e.clientTop||t.clientTop||0,i=e.clientLeft||t.clientLeft||0,s=window.pageYOffset||e.scrollTop,n=window.pageXOffset||e.scrollLeft;return{top:a.top+s-r,left:a.left+n-i}}return null},css:function(e,a){var t;if(1===arguments.length){if("string"!=typeof e){for(t=0;t<this.length;t++)for(var r in e)this[t].style[r]=e[r];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(t=0;t<this.length;t++)this[t].style[e]=a;return this}return this},each:function(e){for(var a=0;a<this.length;a++)e.call(this[a],a,this[a]);return this},html:function(e){if("undefined"==typeof e)return this[0]?this[0].innerHTML:void 0;for(var a=0;a<this.length;a++)this[a].innerHTML=e;return this},text:function(e){if("undefined"==typeof e)return this[0]?this[0].textContent.trim():null;for(var a=0;a<this.length;a++)this[a].textContent=e;return this},is:function(t){if(!this[0])return!1;var r,i;if("string"==typeof t){var s=this[0];if(s===document)return t===document;if(s===window)return t===window;if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.mozMatchesSelector)return s.mozMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(r=a(t),i=0;i<r.length;i++)if(r[i]===this[0])return!0;return!1}if(t===document)return this[0]===document;if(t===window)return this[0]===window;if(t.nodeType||t instanceof e){for(r=t.nodeType?[t]:t,i=0;i<r.length;i++)if(r[i]===this[0])return!0;return!1}return!1},index:function(){if(this[0]){for(var e=this[0],a=0;null!==(e=e.previousSibling);)1===e.nodeType&&a++;return a}},eq:function(a){if("undefined"==typeof a)return this;var t,r=this.length;return a>r-1?new e([]):0>a?(t=r+a,new e(0>t?[]:[this[t]])):new e([this[a]])},append:function(a){var t,r;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a;i.firstChild;)this[t].appendChild(i.firstChild)}else if(a instanceof e)for(r=0;r<a.length;r++)this[t].appendChild(a[r]);else this[t].appendChild(a);return this},prepend:function(a){var t,r;for(t=0;t<this.length;t++)if("string"==typeof a){var i=document.createElement("div");for(i.innerHTML=a,r=i.childNodes.length-1;r>=0;r--)this[t].insertBefore(i.childNodes[r],this[t].childNodes[0])}else if(a instanceof e)for(r=0;r<a.length;r++)this[t].insertBefore(a[r],this[t].childNodes[0]);else this[t].insertBefore(a,this[t].childNodes[0]);return this},insertBefore:function(e){for(var t=a(e),r=0;r<this.length;r++)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0]);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[r].cloneNode(!0),t[i])},insertAfter:function(e){for(var t=a(e),r=0;r<this.length;r++)if(1===t.length)t[0].parentNode.insertBefore(this[r],t[0].nextSibling);else if(t.length>1)for(var i=0;i<t.length;i++)t[i].parentNode.insertBefore(this[r].cloneNode(!0),t[i].nextSibling)},next:function(t){return new e(this.length>0?t?this[0].nextElementSibling&&a(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],i=this[0];if(!i)return new e([]);for(;i.nextElementSibling;){var s=i.nextElementSibling;t?a(s).is(t)&&r.push(s):r.push(s),i=s}return new e(r)},prev:function(t){return new e(this.length>0?t?this[0].previousElementSibling&&a(this[0].previousElementSibling).is(t)?[this[0].previousElementSibling]:[]:this[0].previousElementSibling?[this[0].previousElementSibling]:[]:[])},prevAll:function(t){var r=[],i=this[0];if(!i)return new e([]);for(;i.previousElementSibling;){var s=i.previousElementSibling;t?a(s).is(t)&&r.push(s):r.push(s),i=s}return new e(r)},parent:function(e){for(var t=[],r=0;r<this.length;r++)e?a(this[r].parentNode).is(e)&&t.push(this[r].parentNode):t.push(this[r].parentNode);return a(a.unique(t))},parents:function(e){for(var t=[],r=0;r<this.length;r++)for(var i=this[r].parentNode;i;)e?a(i).is(e)&&t.push(i):t.push(i),i=i.parentNode;return a(a.unique(t))},find:function(a){for(var t=[],r=0;r<this.length;r++)for(var i=this[r].querySelectorAll(a),s=0;s<i.length;s++)t.push(i[s]);return new e(t)},children:function(t){for(var r=[],i=0;i<this.length;i++)for(var s=this[i].childNodes,n=0;n<s.length;n++)t?1===s[n].nodeType&&a(s[n]).is(t)&&r.push(s[n]):1===s[n].nodeType&&r.push(s[n]);return new e(a.unique(r))},remove:function(){for(var e=0;e<this.length;e++)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){var e,t,r=this;for(e=0;e<arguments.length;e++){var i=a(arguments[e]);for(t=0;t<i.length;t++)r[r.length]=i[t],r.length++}return r}},a.fn=e.prototype,a.unique=function(e){for(var a=[],t=0;t<e.length;t++)-1===a.indexOf(e[t])&&a.push(e[t]);return a},a}()),i=["jQuery","Zepto","Dom7"],s=0;s<i.length;s++)window[i[s]]&&e(window[i[s]]);var n;n="undefined"==typeof r?window.Dom7||window.Zepto||window.jQuery:r,n&&("transitionEnd"in n.fn||(n.fn.transitionEnd=function(e){function a(s){if(s.target===this)for(e.call(this,s),t=0;t<r.length;t++)i.off(r[t],a)}var t,r=["webkitTransitionEnd","transitionend","oTransitionEnd","MSTransitionEnd","msTransitionEnd"],i=this;if(e)for(t=0;t<r.length;t++)i.on(r[t],a);return this}),"transform"in n.fn||(n.fn.transform=function(e){for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransform=t.MsTransform=t.msTransform=t.MozTransform=t.OTransform=t.transform=e}return this}),"transition"in n.fn||(n.fn.transition=function(e){"string"!=typeof e&&(e+="ms");for(var a=0;a<this.length;a++){var t=this[a].style;t.webkitTransitionDuration=t.MsTransitionDuration=t.msTransitionDuration=t.MozTransitionDuration=t.OTransitionDuration=t.transitionDuration=e}return this})),window.Swiper=t}(),"undefined"!=typeof module?module.exports=window.Swiper:"function"==typeof define&&define.amd&&define([],function(){"use strict";return window.Swiper});
2046//# sourceMappingURL=maps/swiper.min.js.map
2047var VZLib = VZLib || {};
2048VZLib.events = VZLib.events || {};
2049
2050VZLib.events.EventDispatcher = function(){
2051
2052    //Listeners
2053    this.listeners = [];
2054};
2055
2056/**
2057 * add event listener
2058 *
2059 * @param type {String}
2060 * @param listener {Function}
2061 */
2062VZLib.events.EventDispatcher.prototype.addEventListener = function (type, listener) {
2063
2064    this.listeners.push({
2065        type: type,
2066        listener: listener
2067    });
2068};
2069
2070/**
2071 * remove event listener
2072 *
2073 * @param type {String}
2074 * @param listener {Function}
2075 */
2076VZLib.events.EventDispatcher.prototype.removeEventListener = function (type, listener) {
2077
2078    var i = this.listeners.length;
2079    while (--i >= 0) {
2080        if (this.listeners[i].type == type && this.listeners[i].listener == listener) {
2081            this.listeners.splice(i, 1);
2082        }
2083    }
2084};
2085
2086/**
2087 * dispatch event
2088 *
2089 * @param type {String}
2090 * @param data {Object}
2091 */
2092VZLib.events.EventDispatcher.prototype.dispatchEvent = function (type, data) {
2093
2094    if(typeof type === 'undefined')
2095        return;
2096
2097    var i = this.listeners.length;
2098    while (--i >= 0) {
2099        if (this.listeners[i] && this.listeners[i].type === type) {
2100            this.listeners[i].listener(data);
2101        }
2102    }
2103};/**
2104 * Features
2105 *
2106 * @constructor
2107 * @return features {Object}
2108 */
2109var VZLib = VZLib || {};
2110VZLib.helper = VZLib.helper || {};
2111
2112VZLib.helper.Features = (function () {
2113
2114    var features = {};
2115    var deviceAgent = navigator.userAgent.toLowerCase();
2116    var isTouchDevice =
2117        deviceAgent.match(/(iphone|ipod|ipad)/) ||
2118        deviceAgent.match(/(android)/) ||
2119        deviceAgent.match(/iphone/i) ||
2120        deviceAgent.match(/ipad/i) ||
2121        deviceAgent.match(/ipod/i);
2122
2123    /**
2124     * get if is touch device
2125     */
2126    features.isTouchDevice = function () {
2127
2128        return isTouchDevice;
2129    };
2130
2131    /**
2132     * set if is touch device
2133     */
2134    features.setTouchDevice = function (val) {
2135
2136        isTouchDevice = val;
2137    };
2138
2139    /**
2140     * get browser version
2141     * @return {*}
2142     */
2143    features.getInternetExplorerVersion = function () {
2144        if ($.browser.msie) {
2145            return parseInt($.browser.version, 10);
2146        }
2147        else {
2148            return 0;
2149        }
2150    };
2151
2152
2153    return features;
2154})();
2155
2156
2157
2158
2159/*
2160 * MathiasPaumgarten/touchmouse.js
2161 */
2162(function() {
2163
2164    /* == GLOBAL DECLERATIONS == */
2165    TouchMouseEvent = {
2166        DOWN: "touchmousedown",
2167        UP: "touchmouseup",
2168        MOVE: "touchmousemove"
2169    };
2170
2171    /* == EVENT LISTENERS == */
2172    var onMouseEvent = function(event) {
2173        var type;
2174
2175        switch (event.type) {
2176            case "mousedown": type = TouchMouseEvent.DOWN; break;
2177            case "mouseup":   type = TouchMouseEvent.UP;   break;
2178            case "mousemove": type = TouchMouseEvent.MOVE; break;
2179            default:
2180                return;
2181        }
2182
2183        var touchMouseEvent = normalizeEvent(type, event, event.pageX, event.pageY);
2184        $(event.target).trigger(touchMouseEvent);
2185    };
2186
2187    var onTouchEvent = function(event) {
2188        var type;
2189
2190        switch (event.type) {
2191            case "touchstart": type = TouchMouseEvent.DOWN; break;
2192            case "touchend":   type = TouchMouseEvent.UP;   break;
2193            case "touchmove":  type = TouchMouseEvent.MOVE; break;
2194            default:
2195                return;
2196        }
2197
2198        var touch = event.originalEvent.touches[0];
2199        var touchMouseEvent;
2200
2201        if (type == TouchMouseEvent.UP)
2202            touchMouseEvent = normalizeEvent(type, event, null, null);
2203        else
2204            touchMouseEvent = normalizeEvent(type, event, touch.pageX, touch.pageY);
2205
2206        $(event.target).trigger(touchMouseEvent);
2207    };
2208
2209    /* == NORMALIZE == */
2210    var normalizeEvent = function(type, original, x, y) {
2211        return $.Event(type, {
2212            pageX: x,
2213            pageY: y,
2214            originalEvent: original
2215        });
2216    };
2217
2218    /* == LISTEN TO ORIGINAL EVENT == */
2219    var jQueryDocument = $(document);
2220
2221    if ("ontouchstart" in window) {
2222        jQueryDocument.on("touchstart", onTouchEvent);
2223        jQueryDocument.on("touchmove", onTouchEvent);
2224        jQueryDocument.on("touchend", onTouchEvent);
2225    } else {
2226        jQueryDocument.on("mousedown", onMouseEvent);
2227        jQueryDocument.on("mouseup", onMouseEvent);
2228        jQueryDocument.on("mousemove", onMouseEvent);
2229    }
2230
2231})();
2232
2233
2234
2235var VZLib = VZLib || {};
2236VZLib.helper = VZLib.helper || {};
2237
2238VZLib.helper.Loader = (function () {
2239
2240    var loader = {};
2241
2242    loader.SingleItemLoader = function (url, callback) {
2243
2244        // Loader instance
2245        var singleItemLoader = {};
2246
2247        // Store ref data
2248        singleItemLoader.url = url;
2249        singleItemLoader.callback = callback;
2250        singleItemLoader.loaded = false;
2251        singleItemLoader.data = null;
2252        singleItemLoader.textStatus = null;
2253        singleItemLoader.jqXHR = null;
2254
2255        /**
2256         * Item has been loaded
2257         *
2258         * @param data
2259         * @param textStatus
2260         * @param jqXHR
2261         */
2262        var loadComplete = function (data, textStatus, jqXHR) {
2263
2264            // Update data
2265            singleItemLoader.data = data;
2266            singleItemLoader.textStatus = textStatus;
2267            singleItemLoader.jqXHR = jqXHR;
2268
2269            // Call callback
2270            singleItemLoader.callback(data, textStatus, jqXHR);
2271
2272            // Update load state
2273            singleItemLoader.loaded = true;
2274        };
2275
2276        /**
2277         * Load contents referred to by this loader
2278         */
2279        singleItemLoader.load = function () {
2280
2281            // get data type
2282            var type = singleItemLoader.url.replace(/(.*)(\.\S{3})($|\?.*)/, '$2').toLowerCase();
2283
2284            // use jquery imageloader for images
2285            // use jquery ajax loader for rest
2286            switch (type) {
2287                case ".gif":
2288                case ".jpg":
2289                case ".jpeg":
2290                case ".png":
2291
2292                    var tmpImg = new Image();
2293                    tmpImg.onload = function (event) {
2294                        loadComplete((event.target.src) ? event.target : event.currentTarget)
2295                    };
2296                    tmpImg.src = singleItemLoader.url;
2297
2298                    break;
2299                default:
2300                    jQuery.ajax({
2301                        url: singleItemLoader.url,
2302                        context: document.body
2303                    }).success(loadComplete);
2304                    break;
2305            }
2306        };
2307
2308        return singleItemLoader;
2309    };
2310
2311    return loader;
2312
2313})();var ZieglerErden = ZieglerErden || {};
2314ZieglerErden.Website = ZieglerErden.Website || {};
2315
2316ZieglerErden.Website.Main = function (config) {
2317
2318    var configuration = config,
2319        eventhub = ZieglerErden.Website.events.AppEventHub,
2320        deeplink,
2321        filter,
2322        filterBtn,
2323        bbq,
2324        loadService,
2325        productview,
2326        dataModel = ZieglerErden.Website.model.Filter.getInstance();
2327
2328    function init() {
2329
2330        setupEventHandler();
2331        setupNavigation();
2332        setupSlideshows();
2333        setupProductview();
2334        setupFilter();
2335        setupReducedFilter();
2336        setupTabinfo();
2337        setupAccordion();
2338        setupHochbeetCalculator();
2339        setupBacktoTop();
2340        setupBackToOverview();
2341        setupBbqService();
2342        setupAnchorLinks();
2343        setupForm();
2344        setupJobForm();
2345        //initializeCookieNote();
2346
2347        if (window.location.href.indexOf("localhost") > -1) {
2348          setupGridHelper();
2349        }
2350    }
2351
2352    // helper to show/hide grid
2353    function setupGridHelper() {
2354
2355      document.addEventListener('keypress', function(e) {
2356        $('.js-grid').parent().toggleClass('d-n');
2357      });
2358    }
2359    
2360    /**
2361    if cookie accepted, show jobform, else show button to enable cookies
2362    **/
2363    function setupJobForm() {
2364      if($('.js-formsapp').length) {
2365          new ZieglerErden.Website.component.FormsApp('.js-formsapp');
2366      }
2367    }
2368
2369    /**
2370     * if form available, setup functionality for input validation
2371     */
2372    function setupForm() {
2373
2374        if($('.js-form').length) {
2375            new ZieglerErden.Website.component.FormValidation('.js-form');
2376        }
2377
2378        document.addEventListener('wpcf7mailsent', function (event) {
2379            $('html, body').animate({
2380                scrollTop: ($('.wpcf7-form').offset().top - 100)
2381            }, 400);
2382
2383        }, false);
2384    }
2385
2386    /**
2387         * cookie note
2388         */
2389        function initializeCookieNote() {
2390
2391            var config = {};
2392            config.node = document.getElementsByClassName('js-cookienote')[0];
2393
2394            new ZieglerErden.Website.component.CookieNote(config);
2395        }
2396
2397    /**
2398     * if hash exists, trigger click (enquiry in accordion)
2399     */
2400    function setupAnchorLinks() {
2401      var urlHash = window.location.hash;
2402
2403        if(urlHash && !urlHash.includes('=')) {
2404            if($(urlHash).find('.js-accordion-tab').length) {
2405                $(urlHash).find('.js-accordion-tab').trigger('click');
2406            }
2407        }
2408    }
2409
2410
2411
2412    function setupBbqService() {
2413        bbq = new ZieglerErden.Website.service.Bbq();
2414        dataModel.setData(bbq.getData());
2415    }
2416
2417    // back to top page
2418    function setupBacktoTop() {
2419        var backToTop = new ZieglerErden.Website.component.BackToTop('.js-backtotop');
2420    }
2421
2422    /**
2423     * back to overview button
2424     */
2425    function setupBackToOverview() {
2426
2427        var backToProductOverview = new ZieglerErden.Website.component.BackToProductOverview('.js-back-to-productoverview', configuration.baseUrl);
2428    }
2429
2430
2431    // setup productview
2432    function setupProductview() {
2433
2434        if ($('.js-products').length > 0) {
2435
2436            // setup load service
2437            loadService = ZieglerErden.Website.service.Productload(configuration.requestUrl);
2438
2439            // set base cat
2440            dataModel.setBaseDimension(configuration.baseCategory);
2441
2442            var config = {};
2443            config.$node = $('.js-products');
2444            productview = ZieglerErden.Website.views.ProductView(config);
2445
2446            // add lazy loading on scroll
2447            $(window).on('scroll', function () {
2448
2449                if ($(window).scrollTop() + $(window).height() > $(document).height() - $('footer').height()) {
2450                    onScrollHandler();
2451                }
2452            });
2453        }
2454    }
2455
2456    // setup calculator
2457    function setupHochbeetCalculator() {
2458
2459        if ($('.js-hochbeet-calculator').length > 0) {
2460            var calculator = ZieglerErden.Website.component.Calculator($('.js-hochbeet-calculator')[0]);
2461        }
2462    }
2463
2464    function setupAccordion() {
2465        $.each($('.js-accordion'), function (i, el) {
2466
2467            var accordion = new ZieglerErden.Website.component.Accordion(el);
2468        });
2469    }
2470
2471    // tab info module in product detail view
2472    function setupTabinfo() {
2473
2474        $.each($('.js-tab-info'), function (i, el) {
2475            var tabinfo = new ZieglerErden.Website.component.Tabinfo(el);
2476        });
2477    }
2478
2479    // global event handler
2480    function setupEventHandler() {
2481
2482        var $win = $(window);
2483
2484        // scroll
2485        $win.scroll(function (e) {
2486
2487            eventhub.dispatchEvent(eventhub.Event.SCROLL, {
2488                data: {
2489                    scrollTop: $win.scrollTop()
2490                }
2491            });
2492        });
2493
2494        // resize
2495        $win.resize(function (e) {
2496            eventhub.dispatchEvent(eventhub.Event.RESIZE, {
2497                data: {
2498                    w: window.innerWidth,
2499                    h: window.innerHeight
2500                }
2501            });
2502        });
2503
2504        // on filter change handler
2505        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.FILTER_CHANGE, onFilterChangeHandler);
2506        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.AJAXLOAD_SUCCESS, onAjaxLoadSuccessHandler);
2507        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.PRODUCTTEASER_LOADED, onProductteaserLoaded);
2508
2509    }
2510
2511    // on filter change handler
2512    function onFilterChangeHandler() {
2513        ZieglerErden.Website.Config.productsLoading = true;
2514        if(productview){
2515            productview.isLazyLoading = false;
2516            productview.showPreloader();
2517        }
2518
2519        if(filter) {
2520            filter.updateView();
2521        } else if (filterBtn) {
2522            filterBtn.updateView();
2523        }
2524
2525        if(loadService) {
2526            loadService.requestProducts(false);
2527        }
2528
2529        if(bbq) {
2530            bbq.update();
2531        }
2532    }
2533
2534    // on ajax load success handler
2535    function onAjaxLoadSuccessHandler(e) {
2536        productview.updateView(e);
2537    }
2538
2539    function onProductteaserLoaded() {
2540        productview.setupAndShowTeaser();
2541        productview.hidePreloader();
2542        ZieglerErden.Website.Config.productsLoading = false;
2543        bbq.setFlag(false);
2544    }
2545
2546    function onScrollHandler() {
2547        if (!ZieglerErden.Website.Config.productsLoading) {
2548            ZieglerErden.Website.Config.productsLoading = true;
2549            loadService.requestProducts(true);
2550        }
2551    }
2552
2553    // navigation
2554    function setupNavigation() {
2555
2556        // main navigation
2557        if (config.navigation.$node.length > 0) {
2558            var mainnavigationView = new ZieglerErden.Website.views.MainnavigationView(configuration.navigation);
2559
2560            var win = $(window),
2561                fxel = $('.js-stickynavigation'),
2562                fxel2 = $('.js-stickynavigation2'),
2563                eloffset = fxel.offset().top;
2564        }
2565    }
2566
2567    // slideshows
2568    function setupSlideshows() {
2569
2570        var slideshow = new ZieglerErden.Website.views.Slideshow('.js-slideshow');
2571    }
2572
2573    // filter
2574    function setupFilter() {
2575
2576        if ($('.js-filter').length > 0) {
2577
2578            // add filter
2579            var config = {};
2580            config.$node = $('.js-filter');
2581            config.requestUrl = configuration.requestUrl;
2582            filter = new ZieglerErden.Website.component.Filter(config);
2583        }
2584    }
2585
2586    function setupReducedFilter() {
2587        if ($('.js-filterbtn').length > 0) {
2588            var config = {};
2589            filterBtn = new ZieglerErden.Website.component.FilterBtn(config);
2590        }
2591    }
2592
2593    init();
2594};
2595
2596
2597
2598function loadFormsScript() {
2599  var script = document.createElement('script');
2600  script.onload = function () {
2601      document.getElementById('formsapp').innerHTML = '<div formsappId="63f47b667e4d4f7448b7c830"></div>';
2602      new formsapp('63f47b667e4d4f7448b7c830', {width: "100%",height: "80vh"});
2603  };
2604  script.src = 'https://my.forms.app/static/iframe.js';
2605
2606  document.head.appendChild(script);
2607}
2608var ZieglerErden = ZieglerErden || {};
2609ZieglerErden.Website = ZieglerErden.Website  || {} ;
2610ZieglerErden.Website.events = ZieglerErden.Website.events || {};
2611
2612ZieglerErden.Website.events.AppEventHub = (function(){
2613    return new VZLib.events.EventDispatcher();
2614}());
2615
2616/**
2617 * Events for AppEventHub
2618 * @event
2619 * @constructor
2620 * @type {String}
2621 */
2622ZieglerErden.Website.events.AppEventHub.Event = {
2623
2624    // TEST EVENT
2625    /** @constant {string} */
2626    SCROLL : 'SCROLL',
2627    RESIZE : 'RESIZE',
2628    TOGGLE_FILTER: 'TOGGLE_FILTER',
2629    TOGGLE_ITEM: 'TOGGLE_ITEM',
2630    AJAXLOAD_SUCCESS: 'AJAXLOAD_SUCCESS',
2631    PRODUCTTEASER_LOADED: 'PRODUCTTEASER_LOADED',
2632    UPDATE_FILTER: 'UPDATE_FILTER',
2633    FILTER_CHANGE: 'FILTER_CHANGE',
2634    ITEM_INTERACTION: 'ITEM_INTERACTION'
2635
2636};
2637var ZieglerErden = ZieglerErden || {};
2638ZieglerErden.Website = ZieglerErden.Website  || {} ;
2639
2640ZieglerErden.Website.Config = (function () {
2641
2642    var data = {};
2643
2644    data.productsLoading = false;
2645    data.BREAKPOINT_MOBILE_MAX = 719;
2646
2647    return data;
2648})();var ZieglerErden = ZieglerErden || {};
2649ZieglerErden.Website = ZieglerErden.Website  || {} ;
2650ZieglerErden.Website.model = ZieglerErden.Website.model || {};
2651
2652ZieglerErden.Website.model.Data = (function () {
2653
2654    var data = {};
2655
2656    data.setData = function(dataObj) {
2657
2658        data.items = dataObj;
2659    };
2660
2661    return data;
2662})();var ZieglerErden = ZieglerErden || {};
2663ZieglerErden.Website = ZieglerErden.Website || {};
2664ZieglerErden.Website.component = ZieglerErden.Website.component || {};
2665
2666ZieglerErden.Website.component.Accordion = function (node) {
2667
2668    var eventhub = ZieglerErden.Website.events.AppEventHub,
2669        $node = $(node),
2670        itemArray = [];
2671
2672    /**
2673     * init
2674     */
2675    function init() {
2676
2677        addEventHandler();
2678    }
2679
2680    /**
2681     * event handler for tabs
2682     */
2683    function addEventHandler() {
2684
2685        var tabItems = $node.find('li');
2686        $.each(tabItems, function (i, el) {
2687            itemArray.push(new ZieglerErden.Website.component.Accordionitem(el));
2688        });
2689
2690        // resize handler
2691        $(window).on('resize', function () {
2692
2693            $.each(itemArray, function (i, el) {
2694                el.resize();
2695            });
2696        });
2697    }
2698
2699    init();
2700};
2701
2702ZieglerErden.Website.component.Accordionitem = function (node) {
2703
2704    var $node = $(node),
2705        $tab = $node.find('.js-accordion-tab'),
2706        $content = $node.find('.js-accordion-content'),
2707        targetHeight = $content.height();
2708
2709    /*
2710     * initialize
2711     */
2712    function init() {
2713
2714        $content.css({
2715            'height': 0
2716        });
2717
2718        $tab.on('click', function () {
2719            $node.toggleClass('is-active');
2720
2721            toggleContent();
2722        });
2723    }
2724
2725    /**
2726     * toggle content
2727     */
2728    function toggleContent() {
2729
2730        targetHeight = $content.find('>div').height();
2731
2732        if ($node.hasClass('is-active')) {
2733            $content.css({
2734                'height': targetHeight
2735            });
2736
2737            $content.on('webkitTransitionEnd', ontransitionEndHandler);
2738        } else {
2739
2740            $content.css({
2741                'height': targetHeight+'px'
2742            });
2743
2744            $content.css({
2745                'height': 0
2746            });
2747        }
2748    }
2749
2750    function ontransitionEndHandler() {
2751
2752        $content.off('webkitTransitionEnd', ontransitionEndHandler);
2753        $content.css({
2754            'height': 'auto'
2755        });
2756    }
2757
2758    /**
2759     * resize
2760     */
2761    function resize() {
2762
2763        targetHeight = $content.find('>div').height();
2764
2765        if ($node.hasClass('is-active')) {
2766            $content.css({
2767                'height': targetHeight
2768            });
2769        };
2770    }
2771
2772    init();
2773
2774    return {
2775        resize: resize
2776    }
2777};var ZieglerErden = ZieglerErden || {};
2778ZieglerErden.Website = ZieglerErden.Website || {};
2779ZieglerErden.Website.component = ZieglerErden.Website.component || {};
2780
2781ZieglerErden.Website.component.BackToProductOverview = function (node, target) {
2782
2783    var $node = $(node);
2784
2785    /**
2786     * initialize
2787     */
2788    function init() {
2789        addEventListener();
2790    }
2791
2792    /**
2793     * click listener
2794     */
2795    function addEventListener() {
2796        $node.on('click', onButtonClickHandler);
2797    }
2798
2799    /**
2800     * on button click handler
2801     */
2802    function onButtonClickHandler(e) {
2803
2804        e.preventDefault();
2805
2806        var referrer = document.referrer;
2807
2808        if (referrer && referrer.indexOf("produkte") >= 0) {
2809            history.go(-1);
2810        } else {
2811            window.location.href = target+'produkte/';
2812        }
2813    }
2814
2815    init();
2816};var ZieglerErden = ZieglerErden || {};
2817ZieglerErden.Website = ZieglerErden.Website || {};
2818ZieglerErden.Website.component = ZieglerErden.Website.component || {};
2819
2820ZieglerErden.Website.component.BackToTop = function (node) {
2821
2822    var eventhub = ZieglerErden.Website.events.AppEventHub,
2823        $node = $(node);
2824
2825    /**
2826     * init
2827     */
2828    function init() {
2829
2830        $node.on('click', onBackToTopClick);
2831        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.SCROLL, onScrollHandler);
2832    }
2833
2834    function onScrollHandler(e) {
2835
2836        if (e.data.scrollTop < 400) {
2837            hide();
2838        }
2839        if (e.data.scrollTop > 800) {
2840            show();
2841        }
2842    }
2843
2844    function onBackToTopClick() {
2845        $('html, body').stop(true, false).animate({
2846            scrollTop: 0
2847        }, 400);
2848    }
2849
2850    function show() {
2851        $node.removeClass('is-hidden');
2852    }
2853
2854    function hide() {
2855        $node.addClass('is-hidden');
2856    }
2857
2858
2859    init();
2860
2861    return {
2862        show: show,
2863        hide: hide
2864    }
2865};var ZieglerErden = ZieglerErden || {};
2866ZieglerErden.Website = ZieglerErden.Website || {};
2867ZieglerErden.Website.service = ZieglerErden.Website.service || {};
2868
2869ZieglerErden.Website.service.Bbq = function (node) {
2870
2871    var eventhub = ZieglerErden.Website.events.AppEventHub,
2872        $node = $(node),
2873        hashChangeOnInteraction = false,
2874        dataModel = ZieglerErden.Website.model.Filter.getInstance();
2875
2876    /**
2877     * initialize
2878     */
2879    function init() {
2880        $(window).on("hashchange", function (e) {
2881            if(!hashChangeOnInteraction) {
2882                updateDataModel();
2883            }
2884        });
2885    }
2886
2887    /**
2888     * set datamodel to current hashtags
2889     */
2890    function updateDataModel() {
2891
2892        dataModel.setData(getData());
2893    };
2894
2895    /**
2896     * update hash state
2897     */
2898    function update() {
2899
2900        hashChangeOnInteraction = true;
2901        var data = dataModel.getData();
2902
2903        for (key in data) {
2904            if (key !== 'base' && key !== 'base') {
2905
2906                var obj = {};
2907                obj[key] = data[key].arr.toString();
2908
2909                if (data[key].arr.length > 0) {
2910                    $.bbq.pushState(obj);
2911                } else {
2912                    $.bbq.removeState(key);
2913                }
2914            }
2915        }
2916    }
2917
2918    function setFlag(val) {
2919        hashChangeOnInteraction = val;
2920    }
2921
2922    /**
2923     * get data from hashs
2924     */
2925    function getData() {
2926
2927        var data = [];
2928        var bbqStateUse = $.bbq.getState('use');
2929        var bbqStateBrand = $.bbq.getState('brand');
2930        var bbqStateType = $.bbq.getState('type');
2931
2932        data['use'] = (bbqStateUse) ? bbqStateUse.split(',') : null;
2933        data['brand'] = (bbqStateBrand) ? bbqStateBrand.split(',') : null;
2934        data['type'] = (bbqStateType) ? bbqStateType.split(',') : null;
2935
2936        return data;
2937    }
2938
2939    init();
2940
2941    return {
2942        update: update,
2943        getData: getData,
2944        setFlag: setFlag
2945    }
2946};var ZieglerErden = ZieglerErden || {};
2947ZieglerErden.Website = ZieglerErden.Website || {};
2948ZieglerErden.Website.component = ZieglerErden.Website.component || {};
2949
2950ZieglerErden.Website.component.Calculator = function (node) {
2951
2952    var eventhub = ZieglerErden.Website.events.AppEventHub,
2953        $node = $(node),
2954        inputArr = [],
2955        resultArr = [];
2956
2957    /**
2958     * init
2959     */
2960    function init() {
2961
2962        $.each($node.find($("input[type='text']")), function (i, el) {
2963            inputArr.push(new ZieglerErden.Website.component.CalculatorInput(el));
2964        });
2965
2966        $.each($node.find($('.calculator-result')), function (i, el) {
2967            resultArr.push(new ZieglerErden.Website.component.CalculatorResult(el, i));
2968        });
2969
2970        addEventHandler();
2971    }
2972
2973    /**
2974     * event handler for calculator
2975     */
2976    function addEventHandler() {
2977        $node.find('.js-submit').on('click', function (e) {
2978            e.preventDefault();
2979
2980            if (!checkError()) {
2981                var volume = calculateVolume();
2982                var surface = calculateSurface();
2983                calculateAndShowAmount(volume, surface);
2984            } else {
2985                console.log("error in calculator form!")
2986            }
2987        })
2988    }
2989
2990    /**
2991     * calculate and show amount
2992     */
2993    function calculateAndShowAmount(v, s) {
2994
2995        var l = v * 1000, // 1m3 -> 1000 l
2996            lPerProduct = l / 3, // each product 1/3 of volume
2997            fertilizerGrammPerCubic = s * 60; // 0.06kg per m3, or 60g per m3
2998
2999        $node.find('.wrapper-result').addClass('is-active');
3000
3001        $.each(resultArr, function (i, el) {
3002            el.calculate(lPerProduct, fertilizerGrammPerCubic);
3003            el.show();
3004        });
3005    }
3006
3007    /*
3008     * calculate volume in m3
3009     */
3010    function calculateVolume() {
3011
3012        var calcVolume = 0;
3013        $.each(inputArr, function (i, el) {
3014
3015            if (i == 0) {
3016                calcVolume = getFloatValue(el.getValue());
3017            } else {
3018                calcVolume = calcVolume * getFloatValue(el.getValue());
3019            }
3020        });
3021
3022        return calcVolume;
3023    }
3024
3025    /**
3026     * calculate top surface
3027     */
3028    function calculateSurface() {
3029
3030        var calcSurface = 0;
3031        $.each(inputArr, function (i, el) {
3032
3033            if(el.isSurface) {
3034
3035                if(calcSurface == 0) {
3036                    calcSurface = getFloatValue(el.getValue());
3037                } else {
3038                    calcSurface = calcSurface * getFloatValue(el.getValue());
3039                }
3040            }
3041        });
3042
3043        return calcSurface;
3044    }
3045
3046    function getFloatValue(str) {
3047
3048        var value = parseFloat(str.replace(",", "."));
3049
3050        return value;
3051    }
3052
3053    /**
3054     * check if inputfield has error
3055     * @returns {boolean}
3056     */
3057    function checkError() {
3058
3059        var hasError = false;
3060
3061        $.each(inputArr, function (i, el) {
3062
3063            if (el.checkError()) {
3064                hasError = true;
3065            }
3066        });
3067
3068        return hasError;
3069    }
3070
3071    init();
3072};
3073
3074
3075/**
3076 * input fields for calculator
3077 * @param node
3078 * @constructor
3079 */
3080ZieglerErden.Website.component.CalculatorInput = function (node) {
3081
3082
3083    var $node = $(node),
3084        val,
3085        isSurface = $node.hasClass('js-length') || $($node).hasClass('js-width');
3086
3087    /**
3088     * init
3089     */
3090    function init() {
3091
3092        addEventHandler();
3093    }
3094
3095    function addEventHandler() {
3096
3097        // on focus remove error class
3098        $node.on('focus', function () {
3099            $node.parent().removeClass('has-error');
3100        });
3101
3102        // allow float values only
3103        $node.keypress(function (event) {
3104
3105            if(event.which == 44 && ($(this).val().indexOf(',') == -1) && ($(this).val().indexOf('.') == -1) ) {
3106
3107            } else if(event.which == 46 && ($(this).val().indexOf(',') == -1) && ($(this).val().indexOf('.') == -1) ) {
3108
3109            } else if (event.which < 48 || event.which > 57) {
3110                event.preventDefault();
3111            }
3112        });
3113    }
3114
3115    function checkError() {
3116
3117        var hasError = false;
3118
3119        val = $node.val();
3120
3121        if (!val) {
3122            hasError = true;
3123            $node.parent().addClass('has-error');
3124        } else {
3125            $node.parent().removeClass('has-error');
3126        }
3127
3128        return hasError;
3129    }
3130
3131    /**
3132     * get value
3133     */
3134    function getVal() {
3135        return val;
3136    }
3137
3138    init();
3139
3140    return {
3141        checkError: checkError,
3142        getValue: getVal,
3143        isSurface: isSurface
3144    }
3145};
3146
3147/**
3148 * result fields for calculator
3149 * @param node
3150 * @constructor
3151 */
3152ZieglerErden.Website.component.CalculatorResult = function (node, i) {
3153
3154    var $node = $(node),
3155        id = i,
3156        dataFill = $node.attr('data-fill'),
3157        dataFert = $node.attr('data-fert'),
3158        $amount = $node.find('.js-amount'),
3159        $detail = $node.find('.js-detail'),
3160        amount = 0;
3161
3162    /**
3163     * calculate amount
3164     * @param vol
3165     */
3166    function calculate(vol, fert) {
3167
3168        if(dataFill) {
3169            amount = Math.ceil(vol / dataFill);
3170            $amount.html(amount);
3171        } else if (dataFert) {
3172            amount = Math.ceil((fert/1000)/ dataFert);
3173            $detail.html(fert+'g');
3174            $amount.html(amount);
3175        }
3176    }
3177
3178    /**
3179     * show
3180     */
3181    function show() {
3182
3183        setTimeout(function(){
3184            $node.addClass('is-active');
3185        }, id*100);
3186    }
3187
3188    return {
3189        calculate: calculate,
3190        show: show
3191    }
3192};
3193var ZieglerErden = ZieglerErden || {};
3194ZieglerErden.Website = ZieglerErden.Website || {};
3195ZieglerErden.Website.component = ZieglerErden.Website.component || {};
3196
3197ZieglerErden.Website.component.CookieNote = function (config) {
3198
3199    var COOKIESTRING = 'ZIEGLERERDEN';
3200
3201    var configuration = config,
3202        $node = configuration.node,
3203        targetHeight = $node.offsetHeight,
3204        $close = $node.getElementsByClassName('component-close')[0];
3205
3206    /**
3207     * check if cookie is accepted, otherwise show note to accept
3208     */
3209    function handleCookies() {
3210
3211        if (readCookie(COOKIESTRING)) {
3212            $node.remove();
3213        } else {
3214            show();
3215            addEventHandler();
3216        }
3217    }
3218
3219    /**
3220     * show cookie note
3221     */
3222    function show() {
3223
3224        $($node).css({
3225            height: 'auto'
3226        });
3227        $($node).removeClass('is-hidden');
3228        $($node).addClass('is-active');
3229    }
3230
3231    /**
3232     * hide cookie note
3233     */
3234    function hide() {
3235        $($node).css({
3236            height: 0
3237        });
3238
3239        $($node).remove();
3240    }
3241
3242    /**
3243     * add event handler to accordion
3244     */
3245    function addEventHandler() {
3246
3247        $close.onclick = function () {
3248            onBtnClickHandler();
3249        };
3250    }
3251
3252    /**
3253     * handler on button click -> safe cookie
3254     */
3255    function onBtnClickHandler() {
3256
3257        createCookie(COOKIESTRING, 1, 30);
3258        hide();
3259    }
3260
3261    /**
3262     * set cookie
3263     */
3264    function createCookie(name, value, days) {
3265        var d = days || 30,
3266            date = new Date();
3267
3268        date.setTime(date.getTime() + (d * 24 * 60 * 60 * 1000));
3269        var expires = "; expires=" + date.toGMTString();
3270
3271        document.cookie = name + "=" + value + expires + "; path=/";
3272    }
3273
3274    /**
3275     * read cookie
3276     * @param name
3277     * @returns {*}
3278     */
3279    function readCookie(name) {
3280        var nameEQ = name + "=";
3281        var ca = document.cookie.split(';');
3282        for (var i = 0; i < ca.length; i++) {
3283            var c = ca[i];
3284            while (c.charAt(0) == ' ') c = c.substring(1, c.length);
3285            if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length);
3286        }
3287        return null;
3288    }
3289
3290    /**
3291     * erase cookie
3292     * @param name
3293     */
3294    function eraseCookie(name) {
3295        createCookie(name, "", -1);
3296    }
3297
3298    /**
3299     * initialize accordion
3300     */
3301    function init() {
3302
3303        $node.classList.add('is-hidden'); // hide after targetHeight is set
3304        //eraseCookie(COOKIESTRING); // TODO remove before live
3305        handleCookies();
3306    }
3307
3308    init();
3309};var ZieglerErden = ZieglerErden || {};
3310ZieglerErden.Website = ZieglerErden.Website || {};
3311ZieglerErden.Website.component = ZieglerErden.Website.component || {};
3312
3313ZieglerErden.Website.component.Filter = function (config) {
3314
3315    var eventhub = ZieglerErden.Website.events.AppEventHub,
3316        $node = config.$node,
3317        dataModel = ZieglerErden.Website.model.Filter.getInstance(),
3318        filterOptionArr = [];
3319
3320    /**
3321     * init
3322     */
3323    function init() {
3324        addEventHandler();
3325        setupFilteroptions();
3326    }
3327
3328    /**
3329     * setup filter options
3330     */
3331    function setupFilteroptions() {
3332
3333        // create filter options
3334        $.each($node.find('.filter-option'), function (i, el) {
3335            var obj = new ZieglerErden.Website.component.Filteroption(i, el);
3336            filterOptionArr.push(obj);
3337            dataModel.addDataDimension(obj.targetOption);
3338        });
3339    }
3340
3341    /**
3342     * add event handler
3343     */
3344    function addEventHandler() {
3345
3346        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.TOGGLE_FILTER, onToggleFilter);
3347        eventhub.addEventListener(ZieglerErden.Website.events.AppEventHub.Event.ITEM_INTERACTION, onFilterInteraction);
3348
3349        // click on blend -> toggle active class
3350        $('.component-blend').on('click', function (e) {
3351
3352            $('body').removeClass('is-filter-active');
3353            $('.filter-option').removeClass('is-active');
3354        });
3355    }
3356
3357
3358    /**
3359     * handler on filter change
3360     * @param e
3361     */
3362    function onFilterInteraction(e) {
3363
3364        if (e.data.active) { // set filter active
3365
3366            // add cat to filter, if filter-name is not "all"
3367            // set "all" to inactive
3368            if (e.data.item !== 'all') {
3369                dataModel.addData(e.data.id, e.data.item);
3370            } else {
3371                dataModel.removeData(e.data.id);
3372            }
3373        } else {
3374
3375            if (e.data.item !== 'all') {
3376                dataModel.removeData(e.data.id, e.data.item);
3377            }
3378        }
3379    }
3380
3381    /**
3382     * handler on filter activate/deactivate
3383     * handles overlays
3384     * @param e
3385     */
3386    function onToggleFilter(e) {
3387
3388        var filterIsOpen = false;
3389        $.each($node.find('.filter-option'), function (i, el) {
3390
3391            if (i !== e.data.id) {
3392                $(el).removeClass('is-active');
3393            } else {
3394                if (!$(el).hasClass('is-active')) {
3395                    $('body').addClass('is-filter-active');
3396                } else {
3397                    $('body').removeClass('is-filter-active');
3398                }
3399            }
3400        });
3401    }
3402
3403    /**
3404     * update filter view
3405     */
3406    function updateView() {
3407
3408        // set items active/inactive
3409        $.each(filterOptionArr, function (i, el) {
3410            el.updateOptionView();
3411        });
3412    }
3413
3414    init();
3415
3416    return {
3417        updateView: updateView
3418    }
3419};
3420
3421/**
3422 * filter options (like Art, Anwendung, Marke)
3423 * @param i
3424 * @param node
3425 * @returns {{id: *, items: Array, updateCounter: updateCounter, setAllActive: setAllActive, setAllInactive: setAllInactive}}
3426 * @constructor
3427 */
3428ZieglerErden.Website.component.Filteroption = function (i, node) {
3429
3430    var $node = $(node),
3431        targetOption = $node.attr('data-target'),
3432        $counter = $node.find('.js-counter'),
3433        id = i,
3434        dataModel = ZieglerErden.Website.model.Filter.getInstance(),
3435        itemArr = [],
3436        eventhub = ZieglerErden.Website.events.AppEventHub;
3437
3438    /**
3439     * init
3440     */
3441    function init() {
3442
3443        $.each($(node).find('.filter-subitems>li'), function (i, el) {
3444
3445            var arrayId = $(el).attr('data-target');
3446            itemArr[arrayId] = new ZieglerErden.Website.component.Filteritem(targetOption, el);
3447        });
3448
3449        addEventHandler();
3450        updateCounter(0);
3451    }
3452
3453    /**
3454     * add event handler
3455     */
3456    function addEventHandler() {
3457
3458        $node.find('.wrapper-filtertab').on('click', function (el) {
3459
3460            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.TOGGLE_FILTER, {
3461                data: {
3462                    id: id
3463                }
3464            });
3465            $(el.currentTarget).parent().toggleClass('is-active');
3466        });
3467    }
3468
3469    /**
3470     * update number of counter
3471     */
3472    function updateCounter(val) {
3473
3474        if (val == 0) {
3475            $counter.removeClass('is-active');
3476        } else {
3477            $counter.addClass('is-active');
3478        }
3479
3480        $counter.html(val);
3481    }
3482
3483    /**
3484     * update option view on data model change
3485     */
3486    function updateOptionView() {
3487
3488        // update option view
3489        updateCounter(dataModel.getData()[targetOption].arr.length);
3490
3491        // update item view
3492        updateItemView();
3493    }
3494
3495    /**
3496     * update active/inactive state in items
3497     */
3498    function updateItemView() {
3499
3500        if (dataModel.getData()[targetOption].arr.length == 0) {
3501
3502            for (var key in itemArr) {
3503                itemArr[key].setInactive();
3504            }
3505
3506            itemArr['all'].setActive();
3507
3508        } else {
3509
3510            for (var key in itemArr) {
3511                itemArr[key].setInactive();
3512            }
3513
3514            $.each(dataModel.getData()[targetOption].arr, function (i, el) {
3515                itemArr[el].setActive();
3516            });
3517        }
3518    }
3519
3520    init();
3521
3522    return {
3523        id: id,
3524        items: itemArr,
3525        targetOption: targetOption,
3526        updateOptionView: updateOptionView
3527    }
3528};
3529
3530/**
3531 * filter items (like Plantop, Polarfuxx, Thermospan for "brand")
3532 * @param i
3533 * @param node
3534 * @returns {{setActive: setActive, setInactive: setInactive, targetItem}}
3535 * @constructor
3536 */
3537ZieglerErden.Website.component.Filteritem = function (i, node) {
3538
3539    var $node = $(node),
3540        id = i,
3541        targetItem = $node.attr('data-target'),
3542        eventhub = ZieglerErden.Website.events.AppEventHub,
3543        isActive = false;
3544
3545    /**
3546     * initialize
3547     */
3548    function init() {
3549
3550        addEventListener();
3551    }
3552
3553    /**
3554     * add event handler
3555     */
3556    function addEventListener() {
3557
3558        $node.on('click', function (el) {
3559
3560            isActive = !isActive;
3561
3562            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.ITEM_INTERACTION, {
3563                data: {
3564                    item: targetItem,
3565                    active: isActive,
3566                    id: id
3567                }
3568            });
3569        });
3570    }
3571
3572    /**
3573     * set item active
3574     */
3575    function setActive() {
3576        isActive = true;
3577        $node.addClass('is-active');
3578    }
3579
3580    /**
3581     * set item inactive
3582     */
3583    function setInactive() {
3584        isActive = false;
3585        $node.removeClass('is-active');
3586    }
3587
3588    init();
3589
3590    return {
3591        setActive: setActive,
3592        setInactive: setInactive,
3593        targetItem: targetItem
3594    }
3595};
3596
3597
3598var ZieglerErden = ZieglerErden || {};
3599ZieglerErden.Website = ZieglerErden.Website || {};
3600ZieglerErden.Website.component = ZieglerErden.Website.component || {};
3601
3602ZieglerErden.Website.component.FilterBtn = function (config) {
3603
3604    var eventhub = ZieglerErden.Website.events.AppEventHub,
3605        $node = config.$node,
3606        dataModel = ZieglerErden.Website.model.Filter.getInstance();
3607
3608    /**
3609     * init
3610     */
3611    function init() {
3612        initDatamodel();
3613        addEventHandler();
3614    }
3615
3616    function initDatamodel() {
3617        dataModel.addDataDimension('type');
3618        dataModel.addDataDimension('use');
3619        dataModel.addDataDimension('brand');
3620    }
3621
3622    /**
3623     * add event handler
3624     */
3625    function addEventHandler() {
3626
3627        $.each($('.js-filterbtn'), function (i, el) {
3628
3629            $(el).on('click', onFilterInteractionHandler);
3630        });
3631    }
3632
3633    /**
3634     * on filter interaction
3635     */
3636    function onFilterInteractionHandler(e) {
3637        updateDataModel(e);
3638    }
3639
3640    function updateDataModel(e) {
3641
3642        var filterArr = [];
3643        filterArr['type'] = [$(e.currentTarget).attr('data-type')];
3644
3645        dataModel.setData(filterArr);
3646    }
3647
3648
3649    /**
3650     * update view after change
3651     */
3652    function updateView() {
3653
3654        $.each($('.js-filterbtn'), function (i, el) {
3655
3656            $(el).removeClass('is-active');
3657
3658            if ($(el).attr('data-type') === dataModel.getData()['type'].arr[0]) {
3659                $(el).addClass('is-active');
3660            }
3661        })
3662    }
3663
3664    init();
3665
3666    return {
3667        updateView: updateView
3668    }
3669};
3670
3671var ZieglerErden = ZieglerErden || {};
3672ZieglerErden.Website = ZieglerErden.Website || {};
3673ZieglerErden.Website.model = ZieglerErden.Website.model || {};
3674
3675ZieglerErden.Website.model.Filter = (function () {
3676    var instance,
3677        eventhub = ZieglerErden.Website.events.AppEventHub,
3678        baseCat;
3679
3680    function createInstance() {
3681
3682        var object = new Object();
3683        object.arr = [];
3684
3685        /**
3686         * add data to array
3687         * @param obj
3688         * @param item
3689         */
3690        object.addData = function (obj, item) {
3691
3692            object.arr[obj].arr.push(item);
3693            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.FILTER_CHANGE);
3694        };
3695
3696        /**
3697         * remove data from array
3698         * @param obj
3699         * @param item
3700         */
3701        object.removeData = function (obj, item) {
3702
3703            if (item) {
3704                var index = object.arr[obj].arr.indexOf(item);
3705                object.arr[obj].arr.splice(index, 1);
3706            } else {
3707                object.arr[obj].arr = [];
3708            }
3709
3710            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.FILTER_CHANGE);
3711        };
3712
3713        /**
3714         * reset data new
3715         * @param array
3716         */
3717        object.setData = function (arr) {
3718
3719            for (key in arr) {
3720
3721                if (object.arr[key]) {
3722                    object.arr[key].arr = [];
3723                }
3724
3725                $.each(arr[key], function (i, el) {
3726                    object.arr[key].arr.push(el);
3727                });
3728            }
3729
3730            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.FILTER_CHANGE);
3731        };
3732
3733        /**
3734         * set default category
3735         * @param cat
3736         */
3737        object.setBaseDimension = function (cat) {
3738
3739            baseCat = cat;
3740
3741            object.arr['base'] = {};
3742            object.arr['base'].id = cat;
3743            object.arr['base'].arr = [cat];
3744        };
3745
3746        /**
3747         * add array dimension
3748         * @param id
3749         */
3750        object.addDataDimension = function (id) {
3751
3752            object.arr[id] = {};
3753            object.arr[id].id = id;
3754            object.arr[id].arr = [];
3755        };
3756
3757        /**
3758         * get data via return
3759         * @returns {Array}
3760         */
3761        object.getData = function () {
3762
3763            return object.arr;
3764        };
3765
3766        /**
3767         * concat data to one array and return data-array
3768         */
3769        object.getConcatedData = function () {
3770
3771            var data = [];
3772
3773            for (key in object.arr) {
3774                data = data.concat(object.arr[key].arr);
3775            }
3776
3777            // remove base cat if filter is selected
3778            if (data.length > 1) {
3779                var index = data.indexOf(baseCat);
3780                if (index > -1) {
3781                    data.splice(index, 1);
3782                }
3783            }
3784
3785            return data;
3786        };
3787
3788        return object;
3789    }
3790
3791    return {
3792
3793        getInstance: function (mainCategory) {
3794            if (!instance) {
3795                instance = createInstance(mainCategory);
3796            }
3797            return instance;
3798        }
3799    };
3800})();var ZieglerErden = ZieglerErden || {};
3801ZieglerErden.Website = ZieglerErden.Website || {};
3802ZieglerErden.Website.component = ZieglerErden.Website.component || {};
3803
3804ZieglerErden.Website.component.FormsApp = function (node) {
3805
3806    var ID_BUTTON = 'formsappBtn',
3807        ID_FORM = 'formsapp',
3808        COOKIE_FORMAPP = 'formsapp',
3809        ID_FORMSAPP = '63f47b667e4d4f7448b7c830',
3810        SRC_FORMSAPP = 'https://my.forms.app/static/iframe.js';
3811
3812    var $node = $(node);
3813
3814    /**
3815     * init
3816     */
3817    function init() {
3818        if(window.BorlabsCookie) {
3819          if(window.BorlabsCookie.checkCookieConsent(COOKIE_FORMAPP)) {
3820            loadScript();
3821          }
3822        } else {
3823          window.BorlabsCookie.callWhenLoaded(COOKIE_FORMAPP, function(){
3824            console.log("alskdjf");
3825          });
3826          showButton();
3827        }
3828    }
3829
3830    function loadScript() {
3831      var script = document.createElement('script');
3832      script.onload = function () {
3833          showIframe();
3834      };
3835      script.src = SRC_FORMSAPP;
3836
3837      document.head.appendChild(script);
3838
3839    }
3840
3841    function showIframe() {
3842
3843      document.getElementById(ID_FORM).innerHTML = '<div formsappId="'+ID_FORMSAPP+'"></div>';
3844
3845      new formsapp(ID_FORMSAPP, {width: "100%",height: "80vh"});
3846
3847    }
3848
3849    init();
3850
3851    return {}
3852};
3853var ZieglerErden = ZieglerErden || {};
3854ZieglerErden.Website = ZieglerErden.Website || {};
3855ZieglerErden.Website.component = ZieglerErden.Website.component || {};
3856
3857ZieglerErden.Website.component.FormValidation = function (node) {
3858
3859    var CLASS_VALIDATION_DELIVERY = '.js-delivery-address',
3860        CLASS_VALIDATION_ZIP = '.js-delivery-address-zip',
3861        VALID_ZIPS = ['90', '91', '92', '93', '95', '96'],
3862        CLASS_ERROR = 'is-invalid-zip';
3863
3864    var $node = $(node),
3865        $zipNode = $node.find(CLASS_VALIDATION_ZIP),
3866        $deliveryNode = $node.find(CLASS_VALIDATION_DELIVERY),
3867        checkValue = false;// do not check zip, if input is not filled yet
3868
3869    /**
3870     * init
3871     */
3872    function init() {
3873
3874        if($deliveryNode) {
3875            setupZipValidation();
3876        }
3877    }
3878
3879    /**
3880     * validate zip input
3881     */
3882    function setupZipValidation() {
3883        $($zipNode).on('focusout', onInputChangeHandler);
3884    }
3885
3886    function hideErrorMessage() {
3887        $($deliveryNode).removeClass(CLASS_ERROR);
3888    }
3889
3890    function showErrorMessage() {
3891        $($deliveryNode).addClass(CLASS_ERROR);
3892    }
3893
3894    /**
3895     * handl on zip input field focus out
3896     */
3897    function onInputChangeHandler(e) {
3898
3899      if(checkValue) {
3900          hideErrorMessage();
3901      }
3902
3903      handleZipInput();
3904    }
3905
3906    function handleZipInput() {
3907
3908        if(isValidZip()) {
3909            checkValue = false;
3910            hideErrorMessage();
3911        } else {
3912            checkValue = true;
3913            showErrorMessage();
3914        }
3915    }
3916
3917    function isValidZip() {
3918
3919        var inputStr2Letters = $zipNode.val().toString().substring(0, 2),
3920            inputStr3Letters = $zipNode.val().toString().substring(0, 3),
3921            isValid = false;
3922
3923        if(VALID_ZIPS.indexOf(inputStr2Letters) > -1 || VALID_ZIPS.indexOf(inputStr3Letters) > -1) {
3924          isValid = true;
3925        }
3926
3927        return isValid;
3928    }
3929
3930    init();
3931
3932    return {}
3933};
3934var ZieglerErden = ZieglerErden || {};
3935ZieglerErden.Website = ZieglerErden.Website || {};
3936ZieglerErden.Website.views = ZieglerErden.Website.views || {};
3937
3938ZieglerErden.Website.views.MainnavigationView = function (config) {
3939
3940    var data = config,
3941        $node = data.$node,
3942        nodeOffset = $node.offset().top,
3943        $subnavNodes = $($node).find('.js-mobile-navitem'),
3944        $mobileItemList = $(".mainnav-itemlist"),
3945        eventhub = ZieglerErden.Website.events.AppEventHub;
3946
3947    /**
3948     * init
3949     */
3950    function init() {
3951
3952        addEventHandler();
3953        $(window).trigger('resize');
3954    }
3955
3956    /**
3957     * add event handler
3958     */
3959    function addEventHandler() {
3960
3961        // mouseover
3962        $($node).find('.mainnav-itemlist > li').on('mouseover', function () {
3963            $(this).prev().addClass('is-next-active');
3964        });
3965
3966        // mouseout
3967        $($node).find('.mainnav-itemlist > li').on('mouseout', function () {
3968            $(this).prev().removeClass('is-next-active');
3969        });
3970
3971        // scroll handler
3972        eventhub.addEventListener(eventhub.Event.SCROLL, onScrollHandler);
3973
3974        // resize handler
3975        eventhub.addEventListener(eventhub.Event.RESIZE, onResizeHandler);
3976
3977        // mobile burger
3978        $node.find('.js-btn-burger').on('click', onBurgerHandler);
3979
3980        // mobile navigation handler
3981        $($node).find('.js-mobile-navitem').on('click', navigationSubHandler);
3982    }
3983
3984    // resize event handler
3985    function onResizeHandler(e) {
3986
3987        // resize mobile content layer
3988        if (e.data.w < ZieglerErden.Website.Config.BREAKPOINT_MOBILE_MAX) {
3989            var h = 0;
3990
3991            if($('.js-mobile-navitem .container').length) {
3992
3993                $.each($('.js-mobile-navitem .container'), function (i, el) {
3994
3995                    $(el).parent().css({
3996                        'display': 'block'
3997                    });
3998
3999                    var elH = $(el).height();
4000                    if (elH > h) {
4001                        h = elH;
4002                    }
4003                });
4004
4005            } else {
4006                $.each($('.js-mobile-navitem'), function (i, el) {
4007
4008                    h += $(el).height();
4009                });
4010
4011                h += 50;
4012            }
4013
4014            $('.mainnav-itemlist').css({
4015                'height': h
4016            });
4017        } else {
4018
4019            $('.mainnav-itemlist').css({
4020                'height': '100%'
4021            });
4022        }
4023    }
4024
4025    // scroll event handler
4026    function onScrollHandler(e) {
4027
4028        if (nodeOffset < e.data.scrollTop) {
4029            $node.addClass("is-fixed");
4030        } else {
4031            $node.removeClass("is-fixed");
4032        }
4033    }
4034
4035    // on burger handler (for mobile only)
4036    function onBurgerHandler(e) {
4037        $node.find('.mainnav-items').toggleClass('is-active');
4038        $('body').toggleClass('navigation-is-active');
4039    }
4040
4041    // show sub items on mobile navigation
4042    function navigationSubHandler(e) {
4043
4044        var $targetNode = $(e.currentTarget);
4045
4046        if ($(window).innerWidth() < 1024) {
4047
4048            if ($targetNode.find('.mainnavi-subitem-container').length) {
4049                e.preventDefault();
4050                $subnavNodes.off('click', navigationSubHandler);
4051                $(e.currentTarget).find('.js-nav-back').on('click', navigationBackHandler);
4052
4053                $(e.currentTarget).addClass('is-active');
4054                $node.addClass('is-active');
4055            }
4056        }
4057    }
4058
4059    // hide sub items on mobile navigation
4060    function navigationBackHandler(e) {
4061
4062        e.preventDefault();
4063        $(e.currentTarget).off('click');
4064        $node.removeClass('is-active');
4065
4066        // after transition handler
4067        $mobileItemList.on(
4068            "transitionend MSTransitionEnd webkitTransitionEnd oTransitionEnd",
4069            function () {
4070
4071                // remove after transition handler
4072                $mobileItemList.off("transitionend MSTransitionEnd webkitTransitionEnd oTransitionEnd");
4073                $('.js-mobile-navitem').removeClass('is-active');
4074                $subnavNodes.on('click', navigationSubHandler);
4075            }
4076        );
4077    }
4078
4079
4080    init();
4081
4082    return {}
4083};var ZieglerErden = ZieglerErden || {};
4084ZieglerErden.Website = ZieglerErden.Website || {};
4085ZieglerErden.Website.service = ZieglerErden.Website.service || {};
4086
4087ZieglerErden.Website.service.Productload = function (url) {
4088
4089    var eventhub = ZieglerErden.Website.events.AppEventHub,
4090        requestUrl = url,
4091        currentPostOffset = 0,
4092        numPosts = 6;
4093
4094    /**
4095     * request posts according to filter
4096     */
4097    function requestProducts(lazyLoading) {
4098
4099        currentPostOffset = (lazyLoading) ? currentPostOffset : 0;
4100
4101        var data = ZieglerErden.Website.model.Filter.getInstance().getData();
4102
4103        $.ajax({
4104            type: "GET",
4105            dataType: "json",
4106            data: {
4107                filterBaseCategory: data['base'].arr,
4108                filterArrUse: data['use'].arr,
4109                filterArrBrand: data['brand'].arr,
4110                filterArrType: data['type'].arr,
4111                numPosts: numPosts,
4112                postOffset: currentPostOffset
4113            },
4114            url: requestUrl,
4115            beforeSend: function () {
4116            },
4117            success: function (data) {
4118                var d = data;
4119                d.isLazyLoading = lazyLoading;
4120                currentPostOffset += numPosts;
4121                eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.AJAXLOAD_SUCCESS, {
4122                    data: d
4123                });
4124            },
4125            error: function (jqXHR, textStatus, errorThrown) {
4126                console.log("error!");
4127                alert(jqXHR + " :: " + textStatus + " :: " + errorThrown);
4128            }
4129        });
4130    }
4131
4132    return {
4133        requestProducts: requestProducts
4134    }
4135
4136};var ZieglerErden = ZieglerErden || {};
4137ZieglerErden.Website = ZieglerErden.Website || {};
4138ZieglerErden.Website.component = ZieglerErden.Website.component || {};
4139
4140ZieglerErden.Website.component.ProductTeaser = function (data, i) {
4141
4142    var $node,
4143        id = i,
4144        eventhub = ZieglerErden.Website.events.AppEventHub;
4145
4146    /**
4147     * init
4148     */
4149    function init() {
4150
4151        createDOM();
4152    }
4153
4154    /**
4155     * creat DOM
4156     */
4157    function createDOM() {
4158
4159        var flagClass = "is-background-grey";
4160
4161        switch (data.type) {
4162            case 'Dünger':
4163                flagClass = 'is-background-blue';
4164                break;
4165            case 'Erden':
4166                flagClass = 'is-background-green';
4167                break;
4168            case 'Brennstoff':
4169                flagClass = 'is-background-red';
4170                break;
4171            default:
4172                break;
4173        }
4174
4175        var $article = $('<article></article>').addClass('grid-6 grid-tl-4'),
4176            $link = $('<a></a>').addClass('module-teaser-product').attr('href', data.permalink).attr('title', data.linktitle),
4177            $img = $('<img>').addClass('responsive').attr('alt', data.imgalt),
4178            $wrappertext = $('<div></div>').addClass('wrapper-text'),
4179            $flag = $('<div></div>').addClass('component-flag'),
4180            $span = $('<span></span>').addClass(flagClass).html(data.brand),
4181            $strong = $('<strong></strong>').html(data.title),
4182            $b = $('<b></b>').html(data.excerpt),
4183            $a = $('<div></div>').addClass('link').attr('href', data.permalink).attr('title', data.linktitle).html(data.linktext);
4184
4185
4186        $flag.append($span);
4187
4188        $wrappertext.append($flag);
4189        $wrappertext.append($strong);
4190        $wrappertext.append($b);
4191        $wrappertext.append($a);
4192
4193        $link.append($img);
4194        $link.append($wrappertext);
4195
4196        $article.append($link);
4197
4198        $node = $article;
4199    }
4200
4201    /**
4202     * show elements
4203     */
4204    function show(elem) {
4205
4206        $node.find('img').attr('src', data.img);
4207        $node.css({
4208            'display': 'none'
4209        });
4210        $(elem).append($node);
4211        $node.delay(i*100).fadeIn('fast');
4212    }
4213
4214    /**
4215     * load image
4216     */
4217    function loadImage() {
4218        if (data.img) {
4219            var loader = VZLib.helper.Loader.SingleItemLoader(data.img, function () {
4220                eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.PRODUCTTEASER_LOADED);
4221            });
4222            loader.load();
4223        } else {
4224            eventhub.dispatchEvent(ZieglerErden.Website.events.AppEventHub.Event.PRODUCTTEASER_LOADED);
4225        }
4226
4227    }
4228
4229    init();
4230
4231    return {
4232        $node: $node,
4233        show: show,
4234        loadImage: loadImage
4235    }
4236
4237};var ZieglerErden = ZieglerErden || {};
4238ZieglerErden.Website = ZieglerErden.Website || {};
4239ZieglerErden.Website.views = ZieglerErden.Website.views || {};
4240
4241ZieglerErden.Website.views.ProductView = function (config) {
4242
4243    var data = config,
4244        $node = data.$node,
4245        $preloader = $node.find('.js-preloader'),
4246        eventhub = ZieglerErden.Website.events.AppEventHub,
4247        targetAmount = 0,
4248        lazyLoading = false,
4249        loadingCount = 0,
4250        productTeaserArr = [];
4251
4252    function setupAndShowTeaser() {
4253        loadingCount++;
4254
4255        if (loadingCount == targetAmount) {
4256            if (!lazyLoading) {
4257                hideCurrentContent();
4258            }
4259            show();
4260        }
4261    }
4262
4263    function onUpdateFilter(e) {
4264        showPreloader();
4265    }
4266
4267
4268    function updateView(e) {
4269
4270        lazyLoading = e.data.isLazyLoading;
4271
4272        if(!lazyLoading){
4273            hideDefaultTeaser();
4274            hideCurrentTeaser();
4275        }
4276
4277        if (e.data.products && e.data.products.length > 0) {
4278
4279            targetAmount = e.data.products.length;
4280            loadingCount = 0;
4281            productTeaserArr = [];
4282            updateProductTeaser(e.data.products);
4283        } else {
4284            if(!lazyLoading) {
4285                showError();
4286            }
4287        }
4288    }
4289
4290    /**
4291     * if filter is new -> remove current product teasers
4292     */
4293    function hideCurrentTeaser() {
4294        $('.js-products').html('');
4295    }
4296
4297    /**
4298     * hide default teaser if displayed
4299     */
4300    function hideDefaultTeaser() {
4301        $('.js-products-teaser-start').remove();
4302    }
4303
4304    /**
4305     * show "no-result" Hint
4306     */
4307    function showError() {
4308        $('.js-products').html('<div class="grid-12"><div class="module-content-fullwidth is-centered-text is-background-white"><h2 class="no-padding-bottom">No products found.</h2></div></div>');
4309    }
4310
4311    /**
4312     * show product peloader
4313     */
4314    function showPreloader() {
4315        $preloader.fadeIn();
4316    }
4317
4318    /**
4319     * hide product peloader
4320     */
4321    function hidePreloader() {
4322        $preloader.fadeOut();
4323    }
4324
4325    /**
4326     * change displayed teaser
4327     */
4328    function updateProductTeaser(data) {
4329
4330
4331        $.each(data, function (i, el) {
4332
4333            var productTeaser = new ZieglerErden.Website.component.ProductTeaser(el, i);
4334            productTeaserArr.push(productTeaser);
4335            productTeaser.loadImage();
4336        });
4337
4338      // display thermospan teasers
4339
4340      var urlHash = location.hash;
4341
4342      if(urlHash.includes("brennstoffe") || urlHash.includes("thermospan")) {
4343        $('.js-random-topstage').hide();
4344        $('.js-topstage-thermospan').show();
4345      } else {
4346        $('.js-random-topstage').show();
4347        $('.js-topstage-thermospan').hide();
4348      }
4349    }
4350
4351
4352    /**
4353     * hide current displayed teasers
4354     */
4355    function hideCurrentContent() {
4356        $node.html(' ');
4357    }
4358
4359    /**
4360     * show view
4361     */
4362    function show() {
4363        $.each(productTeaserArr, function (i, el) {
4364            el.show($node);
4365        });
4366    }
4367
4368    /**
4369     * hide
4370     */
4371    function hide() {
4372    }
4373
4374    return {
4375        showPreloader: showPreloader,
4376        hidePreloader: hidePreloader,
4377        updateView: updateView,
4378        setupAndShowTeaser: setupAndShowTeaser
4379    }
4380};
4381var ZieglerErden = ZieglerErden || {};
4382ZieglerErden.Website = ZieglerErden.Website || {};
4383ZieglerErden.Website.views = ZieglerErden.Website.views || {};
4384
4385ZieglerErden.Website.views.Slideshow = function (node) {
4386
4387    var eventhub = ZieglerErden.Website.events.AppEventHub;
4388
4389    /**
4390     * init
4391     */
4392    function init() {
4393        var swiper = new Swiper(node, {
4394            pagination: '.swiper-pagination',
4395            nextButton: '.swiper-button-next',
4396            prevButton: '.swiper-button-prev',
4397            slidesPerView: 1,
4398            paginationClickable: true,
4399            loop: true,
4400            grabCursor: true,
4401            paginationType: 'fraction',
4402            // Disable preloading of all images
4403            preloadImages: false,
4404            // Enable lazy loading
4405            lazyLoading: true,
4406            lazyLoadingInPrevNext: true,
4407            spaceBetween: 0
4408        });
4409    }
4410
4411
4412    init();
4413
4414    return {}
4415};var ZieglerErden = ZieglerErden || {};
4416ZieglerErden.Website = ZieglerErden.Website || {};
4417ZieglerErden.Website.component = ZieglerErden.Website.component || {};
4418
4419ZieglerErden.Website.component.Tabinfo = function (node) {
4420
4421    var eventhub = ZieglerErden.Website.events.AppEventHub,
4422        $node = $(node);
4423
4424    /**
4425     * init
4426     */
4427    function init() {
4428
4429        addEventHandler();
4430    }
4431
4432    /**
4433     * event handler for tabs
4434     */
4435    function addEventHandler() {
4436
4437        var tabItems = $node.find('ul.tabs-navigation'),
4438            tabContentWrapper = $node.children('ul.tabs-content'),
4439            tabNavigation = $node.find('nav');
4440
4441        tabItems.on('click', 'a', function (event) {
4442
4443            event.preventDefault();
4444
4445            var selectedItem = $(this);
4446
4447            if (!selectedItem.hasClass('selected')) {
4448                var selectedTab = selectedItem.data('content'),
4449                    selectedContent = tabContentWrapper.find('li[data-content="' + selectedTab + '"]'),
4450                    slectedContentHeight = selectedContent.innerHeight();
4451
4452                tabItems.find('a.selected').removeClass('selected');
4453                selectedItem.addClass('selected');
4454                selectedContent.addClass('selected').siblings('li').removeClass('selected');
4455
4456                //animate tabContentWrapper height when content changes
4457                tabContentWrapper.animate({
4458                    'height': slectedContentHeight
4459                }, 200);
4460            }
4461        });
4462    }
4463
4464    init();
4465
4466};

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.