PageSourceSearch

https://mskroll.ru/assets/components/minifyx/cache/scripts_3e90ab1c76.js

js mskroll.ru collected 2026-10-05 03:19:49 UTC 343,373 bytes, 3,428 lines download raw bytes

vendor: 7,382 bytes, lines 1-2
1/*! jQuery v2.2.4 | (c) jQuery Foundation | jquery.org/license */
2!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=a.document,e=c.slice,f=c.concat,g=c.push,h=c.indexOf,i={},j=i.toString,k=i.hasOwnProperty,l={},m="2.2.4",n=function(a,b){return new n.fn.init(a,b)},o=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,p=/^-ms-/,q=/-([\da-z])/gi,r=function(a,b){return b.toUpperCase()};n.fn=n.prototype={jquery:m,constructor:n,selector:"",length:0,toArray:function(){return e.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:e.call(this)},pushStack:function(a){var b=n.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a){return n.each(this,a)},map:function(a){return this.pushStack(n.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(e.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:g,sort:c.sort,splice:c.splice},n.extend=n.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||n.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(n.isPlainObject(d)||(e=n.isArray(d)))?(e?(e=!1,f=c&&n.isArray(c)?c:[]):f=c&&n.isPlainObject(c)?c:{},g[b]=n.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},n.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===n.type(a)},isArray:Array.isArray,isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=a&&a.toString();return!n.isArray(a)&&b-parseFloat(b)+1>=0},isPlainObject:function(a){var b;if("object"!==n.type(a)||a.nodeType||n.isWindow(a))return!1;if(a.constructor&&!k.call(a,"constructor")&&!k.call(a.constructor.prototype||{},"isPrototypeOf"))return!1;for(b in a);return void 0===b||k.call(a,b)},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?i[j.call(a)]||"object":typeof a},globalEval:function(a){var b,c=eval;a=n.trim(a),a&&(1===a.indexOf("use strict")?(b=d.createElement("script"),b.text=a,d.head.appendChild(b).parentNode.removeChild(b)):c(a))},camelCase:function(a){return a.replace(p,"ms-").replace(q,r)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b){var c,d=0;if(s(a)){for(c=a.length;c>d;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(o,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(s(Object(a))?n.merge(c,"string"==typeof a?[a]:a):g.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:h.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;c>d;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;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,g=0,h=[];if(s(a))for(d=a.length;d>g;g++)e=b(a[g],g,c),null!=e&&h.push(e);else for(g in a)e=b(a[g],g,c),null!=e&&h.push(e);return f.apply([],h)},guid:1,proxy:function(a,b){var c,d,f;return"string"==typeof b&&(c=a[b],b=a,a=c),n.isFunction(a)?(d=e.call(arguments,2),f=function(){return a.apply(b||this,d.concat(e.call(arguments)))},f.guid=a.guid=a.guid||n.guid++,f):void 0},now:Date.now,support:l}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=c[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){i["[object "+b+"]"]=b.toLowerCase()});function s(a){var b=!!a&&"length"in a&&a.length,c=n.type(a);return"function"===c||n.isWindow(a)?!1:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var t=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ga(),z=ga(),A=ga(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+L+"*\\]",O=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",P=new RegExp(L+"+","g"),Q=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),R=new RegExp("^"+L+"*,"+L+"*"),S=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),T=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),U=new RegExp(O),V=new RegExp("^"+M+"$"),W={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+O),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,$=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,_=/[+~]/,aa=/'|\\/g,ba=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),ca=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},da=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(ea){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function fa(a,b,d,e){var f,h,j,k,l,o,r,s,w=b&&b.ownerDocument,x=b?b.nodeType:9;if(d=d||[],"string"!=typeof a||!a||1!==x&&9!==x&&11!==x)return d;if(!e&&((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,p)){if(11!==x&&(o=$.exec(a)))if(f=o[1]){if(9===x){if(!(j=b.getElementById(f)))return d;if(j.id===f)return d.push(j),d}else if(w&&(j=w.getElementById(f))&&t(b,j)&&j.id===f)return d.push(j),d}else{if(o[2])return H.apply(d,b.getElementsByTagName(a)),d;if((f=o[3])&&c.getElementsByClassName&&b.getElementsByClassName)return H.apply(d,b.getElementsByClassName(f)),d}if(c.qsa&&!A[a+" "]&&(!q||!q.test(a))){if(1!==x)w=b,s=a;else if("object"!==b.nodeName.toLowerCase()){(k=b.getAttribute("id"))?k=k.replace(aa,"\\$&"):b.setAttribute("id",k=u),r=g(a),h=r.length,l=V.test(k)?"#"+k:"[id='"+k+"']";while(h--)r[h]=l+" "+qa(r[h]);s=r.join(","),w=_.test(a)&&oa(b.parentNode)||b}if(s)try{return H.apply(d,w.querySelectorAll(s)),d}catch(y){}finally{k===u&&b.removeAttribute("id")}}}return i(a.replace(Q,"$1"),b,d,e)}function ga(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ha(a){return a[u]=!0,a}
vendor: 9,959 bytes, line 2
2function ia(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ja(a,b){var c=a.split("|"),e=c.length;while(e--)d.attrHandle[c[e]]=b}function ka(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function la(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function na(a){return ha(function(b){return b=+b,ha(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 oa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=fa.support={},f=fa.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=fa.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=n.documentElement,p=!f(n),(e=n.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",da,!1):e.attachEvent&&e.attachEvent("onunload",da)),c.attributes=ia(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ia(function(a){return a.appendChild(n.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=Z.test(n.getElementsByClassName),c.getById=ia(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(ba,ca);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ba,ca);return function(a){var c="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){return"undefined"!=typeof b.getElementsByClassName&&p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=Z.test(n.querySelectorAll))&&(ia(function(a){o.appendChild(a).innerHTML="<a id='"+u+"'></a><select id='"+u+"-\r\\' msallowcapture=''><option selected=''></option></select>",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ia(function(a){var b=n.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=Z.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ia(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",O)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=Z.test(o.compareDocumentPosition),t=b||Z.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===n||a.ownerDocument===v&&t(v,a)?-1:b===n||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,g=[a],h=[b];if(!e||!f)return a===n?-1:b===n?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return ka(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?ka(g[d],h[d]):g[d]===v?-1:h[d]===v?1:0},n):n},fa.matches=function(a,b){return fa(a,null,null,b)},fa.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(T,"='$1']"),c.matchesSelector&&p&&!A[b+" "]&&(!r||!r.test(b))&&(!q||!q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return fa(b,n,null,[a]).length>0},fa.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},fa.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},fa.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},fa.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=fa.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=fa.selectors={cacheLength:50,createPseudo:ha,match:W,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ba,ca),a[3]=(a[3]||a[4]||a[5]||"").replace(ba,ca),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||fa.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]&&fa.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return W.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&U.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ba,ca).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=fa.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(P," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},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()]||fa.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ha(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ha(function(a){var b=[],c=[],d=h(a.replace(Q,"$1"));return d[u]?ha(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:ha(function(a){return function(b){return fa(a,b).length>0}}),contains:ha(function(a){return a=a.replace(ba,ca),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ha(function(a){return V.test(a||"")||fa.error("unsupported lang: "+a),a=a.replace(ba,ca).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),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:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!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 Y.test(a.nodeName)}
vendor: 68,237 bytes, lines 2-4
2,input:function(a){return X.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:na(function(){return[0]}),last:na(function(a,b){return[b-1]}),eq:na(function(a,b,c){return[0>c?c+b:c]}),even:na(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:na(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:na(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:na(function(a,b,c){for(var d=0>c?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]=la(b);for(b in{submit:!0,reset:!0})d.pseudos[b]=ma(b);function pa(){}pa.prototype=d.filters=d.pseudos,d.setFilters=new pa,g=fa.tokenize=function(a,b){var c,e,f,g,h,i,j,k=z[a+" "];if(k)return b?0:k.slice(0);h=a,i=[],j=d.preFilter;while(h){c&&!(e=R.exec(h))||(e&&(h=h.slice(e[0].length)||h),i.push(f=[])),c=!1,(e=S.exec(h))&&(c=e.shift(),f.push({value:c,type:e[0].replace(Q," ")}),h=h.slice(c.length));for(g in d.filter)!(e=W[g].exec(h))||j[g]&&!(e=j[g](e))||(c=e.shift(),f.push({value:c,type:g,matches:e}),h=h.slice(c.length));if(!c)break}return b?h.length:h?fa.error(a):z(a,i).slice(0)};function qa(a){for(var b=0,c=a.length,d="";c>b;b++)d+=a[b].value;return d}function ra(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j,k=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(j=b[u]||(b[u]={}),i=j[b.uniqueID]||(j[b.uniqueID]={}),(h=i[d])&&h[0]===w&&h[1]===f)return k[2]=h[2];if(i[d]=k,k[2]=a(b,c,g))return!0}}}function sa(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 ta(a,b,c){for(var d=0,e=b.length;e>d;d++)fa(a,b[d],c);return c}function ua(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(c&&!c(f,d,e)||(g.push(f),j&&b.push(h)));return g}function va(a,b,c,d,e,f){return d&&!d[u]&&(d=va(d)),e&&!e[u]&&(e=va(e,f)),ha(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ta(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:ua(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=ua(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=ua(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function wa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=ra(function(a){return a===b},h,!0),l=ra(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[ra(sa(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return va(i>1&&sa(m),i>1&&qa(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(Q,"$1"),c,e>i&&wa(a.slice(i,e)),f>e&&wa(a=a.slice(e)),f>e&&qa(a))}m.push(c)}return sa(m)}function xa(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,o,q,r=0,s="0",t=f&&[],u=[],v=j,x=f||e&&d.find.TAG("*",k),y=w+=null==v?1:Math.random()||.1,z=x.length;for(k&&(j=g===n||g||k);s!==z&&null!=(l=x[s]);s++){if(e&&l){o=0,g||l.ownerDocument===n||(m(l),h=!p);while(q=a[o++])if(q(l,g||n,h)){i.push(l);break}k&&(w=y)}c&&((l=!q&&l)&&r--,f&&t.push(l))}if(r+=s,c&&s!==r){o=0;while(q=b[o++])q(t,u,g,h);if(f){if(r>0)while(s--)t[s]||u[s]||(u[s]=F.call(i));u=ua(u)}H.apply(i,u),k&&!f&&u.length>0&&r+b.length>1&&fa.uniqueSort(i)}return k&&(w=y,j=v),t};return c?ha(f):f}return h=fa.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=wa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,xa(e,d)),f.selector=a}return f},i=fa.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ba,ca),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=W.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ba,ca),_.test(j[0].type)&&oa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&qa(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,!b||_.test(a)&&oa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ia(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ia(function(a){return a.innerHTML="<a href='#'></a>","#"===a.firstChild.getAttribute("href")})||ja("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ia(function(a){return a.innerHTML="<input/>",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ja("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ia(function(a){return null==a.getAttribute("disabled")})||ja(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),fa}(a);n.find=t,n.expr=t.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=t.uniqueSort,n.text=t.getText,n.isXMLDoc=t.isXML,n.contains=t.contains;var u=function(a,b,c){var d=[],e=void 0!==c;while((a=a[b])&&9!==a.nodeType)if(1===a.nodeType){if(e&&n(a).is(c))break;d.push(a)}return d},v=function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c},w=n.expr.match.needsContext,x=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,y=/^.[^:#\[\.,]*$/;function z(a,b,c){if(n.isFunction(b))return n.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return n.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(y.test(b))return n.filter(b,a,c);b=n.filter(b,a)}return n.grep(a,function(a){return h.call(b,a)>-1!==c})}n.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?n.find.matchesSelector(d,a)?[d]:[]:n.find.matches(a,n.grep(b,function(a){return 1===a.nodeType}))},n.fn.extend({find:function(a){var b,c=this.length,d=[],e=this;if("string"!=typeof a)return this.pushStack(n(a).filter(function(){for(b=0;c>b;b++)if(n.contains(e[b],this))return!0}));for(b=0;c>b;b++)n.find(a,e[b],d);return d=this.pushStack(c>1?n.unique(d):d),d.selector=this.selector?this.selector+" "+a:a,d},filter:function(a){return this.pushStack(z(this,a||[],!1))},not:function(a){return this.pushStack(z(this,a||[],!0))},is:function(a){return!!z(this,"string"==typeof a&&w.test(a)?n(a):a||[],!1).length}});var A,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,C=n.fn.init=function(a,b,c){var e,f;if(!a)return this;if(c=c||A,"string"==typeof a){if(e="<"===a[0]&&">"===a[a.length-1]&&a.length>=3?[null,a,null]:B.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 n?b[0]:b,n.merge(this,n.parseHTML(e[1],b&&b.nodeType?b.ownerDocument||b:d,!0)),x.test(e[1])&&n.isPlainObject(b))for(e in b)n.isFunction(this[e])?this[e](b[e]):this.attr(e,b[e]);return this}return f=d.getElementById(e[2]),f&&f.parentNode&&(this.length=1,this[0]=f),this.context=d,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):n.isFunction(a)?void 0!==c.ready?c.ready(a):a(n):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),n.makeArray(a,this))};C.prototype=n.fn,A=n(d);var D=/^(?:parents|prev(?:Until|All))/,E={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(a){var b=n(a,this),c=b.length;return this.filter(function(){for(var a=0;c>a;a++)if(n.contains(this,b[a]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=w.test(a)||"string"!=typeof a?n(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&n.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?n.uniqueSort(f):f)},index:function(a){return a?"string"==typeof a?h.call(n(a),this[0]):h.call(this,a.jquery?a[0]:a):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function F(a,b){while((a=a[b])&&1!==a.nodeType);return a}n.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return u(a,"parentNode")},parentsUntil:function(a,b,c){return u(a,"parentNode",c)},next:function(a){return F(a,"nextSibling")},prev:function(a){return F(a,"previousSibling")},nextAll:function(a){return u(a,"nextSibling")},prevAll:function(a){return u(a,"previousSibling")},nextUntil:function(a,b,c){return u(a,"nextSibling",c)},prevUntil:function(a,b,c){return u(a,"previousSibling",c)},siblings:function(a){return v((a.parentNode||{}).firstChild,a)},children:function(a){return v(a.firstChild)},contents:function(a){return a.contentDocument||n.merge([],a.childNodes)}},function(a,b){n.fn[a]=function(c,d){var e=n.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=n.filter(d,e)),this.length>1&&(E[a]||n.uniqueSort(e),D.test(a)&&e.reverse()),this.pushStack(e)}});var G=/\S+/g;function H(a){var b={};return n.each(a.match(G)||[],function(a,c){b[c]=!0}),b}n.Callbacks=function(a){a="string"==typeof a?H(a):n.extend({},a);var b,c,d,e,f=[],g=[],h=-1,i=function(){for(e=a.once,d=b=!0;g.length;h=-1){c=g.shift();while(++h<f.length)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){n.each(b,function(b,c){n.isFunction(c)?a.unique&&j.has(c)||f.push(c):c&&c.length&&"string"!==n.type(c)&&d(c)})}(arguments),c&&!b&&i()),this},remove:function(){return n.each(arguments,function(a,b){var c;while((c=n.inArray(b,f,c))>-1)f.splice(c,1),h>=c&&h--}),this},has:function(a){return a?n.inArray(a,f)>-1:f.length>0},empty:function(){return f&&(f=[]),this},disable:function(){return e=g=[],f=c="",this},disabled:function(){return!f},lock:function(){return e=g=[],c||(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},n.extend({Deferred:function(a){var b=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(c){n.each(b,function(b,f){var g=n.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&n.isFunction(a.promise)?a.promise().progress(c.notify).done(c.resolve).fail(c.reject):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?n.extend(a,d):d}},e={};return d.pipe=d.then,n.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=e.call(arguments),d=c.length,f=1!==d||a&&n.isFunction(a.promise)?d:0,g=1===f?a:n.Deferred(),h=function(a,b,c){return function(d){b[a]=this,c[a]=arguments.length>1?e.call(arguments):d,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(d>1)for(i=new Array(d),j=new Array(d),k=new Array(d);d>b;b++)c[b]&&n.isFunction(c[b].promise)?c[b].promise().progress(h(b,j,i)).done(h(b,k,c)).fail(g.reject):--f;return f||g.resolveWith(k,c),g.promise()}});var I;n.fn.ready=function(a){return n.ready.promise().done(a),this},n.extend({isReady:!1,readyWait:1,holdReady:function(a){a?n.readyWait++:n.ready(!0)},ready:function(a){(a===!0?--n.readyWait:n.isReady)||(n.isReady=!0,a!==!0&&--n.readyWait>0||(I.resolveWith(d,[n]),n.fn.triggerHandler&&(n(d).triggerHandler("ready"),n(d).off("ready"))))}});function J(){d.removeEventListener("DOMContentLoaded",J),a.removeEventListener("load",J),n.ready()}n.ready.promise=function(b){return I||(I=n.Deferred(),"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(n.ready):(d.addEventListener("DOMContentLoaded",J),a.addEventListener("load",J))),I.promise(b)},n.ready.promise();var K=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===n.type(c)){e=!0;for(h in c)K(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,n.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(n(a),c)})),b))for(;i>h;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},L=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function M(){this.expando=n.expando+M.uid++}M.uid=1,M.prototype={register:function(a,b){var c=b||{};return a.nodeType?a[this.expando]=c:Object.defineProperty(a,this.expando,{value:c,writable:!0,configurable:!0}),a[this.expando]},cache:function(a){if(!L(a))return{};var b=a[this.expando];return b||(b={},L(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[b]=c;else for(d in b)e[d]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][b]},access:function(a,b,c){var d;return void 0===b||b&&"string"==typeof b&&void 0===c?(d=this.get(a,b),void 0!==d?d:this.get(a,n.camelCase(b))):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d,e,f=a[this.expando];if(void 0!==f){if(void 0===b)this.register(a);else{n.isArray(b)?d=b.concat(b.map(n.camelCase)):(e=n.camelCase(b),b in f?d=[b,e]:(d=e,d=d in f?[d]:d.match(G)||[])),c=d.length;while(c--)delete f[d[c]]}(void 0===b||n.isEmptyObject(f))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!n.isEmptyObject(b)}};var N=new M,O=new M,P=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function R(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Q,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:P.test(c)?n.parseJSON(c):c;
3}catch(e){}O.set(a,b,c)}else c=void 0;return c}n.extend({hasData:function(a){return O.hasData(a)||N.hasData(a)},data:function(a,b,c){return O.access(a,b,c)},removeData:function(a,b){O.remove(a,b)},_data:function(a,b,c){return N.access(a,b,c)},_removeData:function(a,b){N.remove(a,b)}}),n.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=O.get(f),1===f.nodeType&&!N.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=n.camelCase(d.slice(5)),R(f,d,e[d])));N.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){O.set(this,a)}):K(this,function(b){var c,d;if(f&&void 0===b){if(c=O.get(f,a)||O.get(f,a.replace(Q,"-$&").toLowerCase()),void 0!==c)return c;if(d=n.camelCase(a),c=O.get(f,d),void 0!==c)return c;if(c=R(f,d,void 0),void 0!==c)return c}else d=n.camelCase(a),this.each(function(){var c=O.get(this,d);O.set(this,d,b),a.indexOf("-")>-1&&void 0!==c&&O.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){O.remove(this,a)})}}),n.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=N.get(a,b),c&&(!d||n.isArray(c)?d=N.access(a,b,n.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=n.queue(a,b),d=c.length,e=c.shift(),f=n._queueHooks(a,b),g=function(){n.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return N.get(a,c)||N.access(a,c,{empty:n.Callbacks("once memory").add(function(){N.remove(a,[b+"queue",c])})})}}),n.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?n.queue(this[0],a):void 0===b?this:this.each(function(){var c=n.queue(this,a,b);n._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&n.dequeue(this,a)})},dequeue:function(a){return this.each(function(){n.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=n.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=N.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var S=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,T=new RegExp("^(?:([+-])=|)("+S+")([a-z%]*)$","i"),U=["Top","Right","Bottom","Left"],V=function(a,b){return a=b||a,"none"===n.css(a,"display")||!n.contains(a.ownerDocument,a)};function W(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return n.css(a,b,"")},i=h(),j=c&&c[3]||(n.cssNumber[b]?"":"px"),k=(n.cssNumber[b]||"px"!==j&&+i)&&T.exec(n.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,n.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var X=/^(?:checkbox|radio)$/i,Y=/<([\w:-]+)/,Z=/^$|\/(?:java|ecma)script/i,$={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,"",""]};$.optgroup=$.option,$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td;function _(a,b){var c="undefined"!=typeof a.getElementsByTagName?a.getElementsByTagName(b||"*"):"undefined"!=typeof a.querySelectorAll?a.querySelectorAll(b||"*"):[];return void 0===b||b&&n.nodeName(a,b)?n.merge([a],c):c}function aa(a,b){for(var c=0,d=a.length;d>c;c++)N.set(a[c],"globalEval",!b||N.get(b[c],"globalEval"))}var ba=/<|&#?\w+;/;function ca(a,b,c,d,e){for(var f,g,h,i,j,k,l=b.createDocumentFragment(),m=[],o=0,p=a.length;p>o;o++)if(f=a[o],f||0===f)if("object"===n.type(f))n.merge(m,f.nodeType?[f]:f);else if(ba.test(f)){g=g||l.appendChild(b.createElement("div")),h=(Y.exec(f)||["",""])[1].toLowerCase(),i=$[h]||$._default,g.innerHTML=i[1]+n.htmlPrefilter(f)+i[2],k=i[0];while(k--)g=g.lastChild;n.merge(m,g.childNodes),g=l.firstChild,g.textContent=""}else m.push(b.createTextNode(f));l.textContent="",o=0;while(f=m[o++])if(d&&n.inArray(f,d)>-1)e&&e.push(f);else if(j=n.contains(f.ownerDocument,f),g=_(l.appendChild(f),"script"),j&&aa(g),c){k=0;while(f=g[k++])Z.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),l.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML="<textarea>x</textarea>",l.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue}();var da=/^key/,ea=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,fa=/^([^.]*)(?:\.(.+)|)/;function ga(){return!0}function ha(){return!1}function ia(){try{return d.activeElement}catch(a){}}function ja(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)ja(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=ha;else if(!e)return a;return 1===f&&(g=e,e=function(a){return n().off(a),g.apply(this,arguments)},e.guid=g.guid||(g.guid=n.guid++)),a.each(function(){n.event.add(this,b,e,d,c)})}n.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.get(a);if(r){c.handler&&(f=c,c=f.handler,e=f.selector),c.guid||(c.guid=n.guid++),(i=r.events)||(i=r.events={}),(g=r.handle)||(g=r.handle=function(b){return"undefined"!=typeof n&&n.event.triggered!==b.type?n.event.dispatch.apply(a,arguments):void 0}),b=(b||"").match(G)||[""],j=b.length;while(j--)h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o&&(l=n.event.special[o]||{},o=(e?l.delegateType:l.bindType)||o,l=n.event.special[o]||{},k=n.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&n.expr.match.needsContext.test(e),namespace:p.join(".")},f),(m=i[o])||(m=i[o]=[],m.delegateCount=0,l.setup&&l.setup.call(a,d,p,g)!==!1||a.addEventListener&&a.addEventListener(o,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),n.event.global[o]=!0)}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,m,o,p,q,r=N.hasData(a)&&N.get(a);if(r&&(i=r.events)){b=(b||"").match(G)||[""],j=b.length;while(j--)if(h=fa.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=n.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,m=i[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),g=f=m.length;while(f--)k=m[f],!e&&q!==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,p,r.handle)!==!1||n.removeEvent(a,o,r.handle),delete i[o])}else for(o in i)n.event.remove(a,o+b[j],c,d,!0);n.isEmptyObject(i)&&N.remove(a,"handle events")}},dispatch:function(a){a=n.event.fix(a);var b,c,d,f,g,h=[],i=e.call(arguments),j=(N.get(this,"events")||{})[a.type]||[],k=n.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=n.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,c=0;while((g=f.handlers[c++])&&!a.isImmediatePropagationStopped())a.rnamespace&&!a.rnamespace.test(g.namespace)||(a.handleObj=g,a.data=g.data,d=((n.event.special[g.origType]||{}).handle||g.handler).apply(f.elem,i),void 0!==d&&(a.result=d)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&("click"!==a.type||isNaN(a.button)||a.button<1))for(;i!==this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(d=[],c=0;h>c;c++)f=b[c],e=f.selector+" ",void 0===d[e]&&(d[e]=f.needsContext?n(e,this).index(i)>-1:n.find(e,this,null,[i]).length),d[e]&&d.push(f);d.length&&g.push({elem:i,handlers:d})}return h<b.length&&g.push({elem:this,handlers:b.slice(h)}),g},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){return null==a.which&&(a.which=null!=b.charCode?b.charCode:b.keyCode),a}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,b){var c,e,f,g=b.button;return null==a.pageX&&null!=b.clientX&&(c=a.target.ownerDocument||d,e=c.documentElement,f=c.body,a.pageX=b.clientX+(e&&e.scrollLeft||f&&f.scrollLeft||0)-(e&&e.clientLeft||f&&f.clientLeft||0),a.pageY=b.clientY+(e&&e.scrollTop||f&&f.scrollTop||0)-(e&&e.clientTop||f&&f.clientTop||0)),a.which||void 0===g||(a.which=1&g?1:2&g?3:4&g?2:0),a}},fix:function(a){if(a[n.expando])return a;var b,c,e,f=a.type,g=a,h=this.fixHooks[f];h||(this.fixHooks[f]=h=ea.test(f)?this.mouseHooks:da.test(f)?this.keyHooks:{}),e=h.props?this.props.concat(h.props):this.props,a=new n.Event(g),b=e.length;while(b--)c=e[b],a[c]=g[c];return a.target||(a.target=d),3===a.target.nodeType&&(a.target=a.target.parentNode),h.filter?h.filter(a,g):a},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==ia()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===ia()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&n.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(a){return n.nodeName(a.target,"a")}},beforeunload:{postDispatch:function(a){void 0!==a.result&&a.originalEvent&&(a.originalEvent.returnValue=a.result)}}}},n.removeEvent=function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c)},n.Event=function(a,b){return this instanceof n.Event?(a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||void 0===a.defaultPrevented&&a.returnValue===!1?ga:ha):this.type=a,b&&n.extend(this,b),this.timeStamp=a&&a.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(a,b)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:ha,isPropagationStopped:ha,isImmediatePropagationStopped:ha,isSimulated:!1,preventDefault:function(){var a=this.originalEvent;this.isDefaultPrevented=ga,a&&!this.isSimulated&&a.preventDefault()},stopPropagation:function(){var a=this.originalEvent;this.isPropagationStopped=ga,a&&!this.isSimulated&&a.stopPropagation()},stopImmediatePropagation:function(){var a=this.originalEvent;this.isImmediatePropagationStopped=ga,a&&!this.isSimulated&&a.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(a,b){n.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c,d=this,e=a.relatedTarget,f=a.handleObj;return e&&(e===d||n.contains(d,e))||(a.type=f.origType,c=f.handler.apply(this,arguments),a.type=b),c}}}),n.fn.extend({on:function(a,b,c,d){return ja(this,a,b,c,d)},one:function(a,b,c,d){return ja(this,a,b,c,d,1)},off:function(a,b,c){var d,e;if(a&&a.preventDefault&&a.handleObj)return d=a.handleObj,n(a.delegateTarget).off(d.namespace?d.origType+"."+d.namespace:d.origType,d.selector,d.handler),this;if("object"==typeof a){for(e in a)this.off(e,b,a[e]);return this}return b!==!1&&"function"!=typeof b||(c=b,b=void 0),c===!1&&(c=ha),this.each(function(){n.event.remove(this,a,c,b)})}});var ka=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,la=/<script|<style|<link/i,ma=/checked\s*(?:[^=]|=\s*.checked.)/i,na=/^true\/(.*)/,oa=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function pa(a,b){return n.nodeName(a,"table")&&n.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function qa(a){return a.type=(null!==a.getAttribute("type"))+"/"+a.type,a}function ra(a){var b=na.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function sa(a,b){var c,d,e,f,g,h,i,j;if(1===b.nodeType){if(N.hasData(a)&&(f=N.access(a),g=N.set(b,f),j=f.events)){delete g.handle,g.events={};for(e in j)for(c=0,d=j[e].length;d>c;c++)n.event.add(b,e,j[e][c])}O.hasData(a)&&(h=O.access(a),i=n.extend({},h),O.set(b,i))}}function ta(a,b){var c=b.nodeName.toLowerCase();"input"===c&&X.test(a.type)?b.checked=a.checked:"input"!==c&&"textarea"!==c||(b.defaultValue=a.defaultValue)}function ua(a,b,c,d){b=f.apply([],b);var e,g,h,i,j,k,m=0,o=a.length,p=o-1,q=b[0],r=n.isFunction(q);if(r||o>1&&"string"==typeof q&&!l.checkClone&&ma.test(q))return a.each(function(e){var f=a.eq(e);r&&(b[0]=q.call(this,e,f.html())),ua(f,b,c,d)});if(o&&(e=ca(b,a[0].ownerDocument,!1,a,d),g=e.firstChild,1===e.childNodes.length&&(e=g),g||d)){for(h=n.map(_(e,"script"),qa),i=h.length;o>m;m++)j=e,m!==p&&(j=n.clone(j,!0,!0),i&&n.merge(h,_(j,"script"))),c.call(a[m],j,m);if(i)for(k=h[h.length-1].ownerDocument,n.map(h,ra),m=0;i>m;m++)j=h[m],Z.test(j.type||"")&&!N.access(j,"globalEval")&&n.contains(k,j)&&(j.src?n._evalUrl&&n._evalUrl(j.src):n.globalEval(j.textContent.replace(oa,"")))}return a}function va(a,b,c){for(var d,e=b?n.filter(b,a):a,f=0;null!=(d=e[f]);f++)c||1!==d.nodeType||n.cleanData(_(d)),d.parentNode&&(c&&n.contains(d.ownerDocument,d)&&aa(_(d,"script")),d.parentNode.removeChild(d));return a}n.extend({htmlPrefilter:function(a){return a.replace(ka,"<$1></$2>")},clone:function(a,b,c){var d,e,f,g,h=a.cloneNode(!0),i=n.contains(a.ownerDocument,a);if(!(l.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||n.isXMLDoc(a)))for(g=_(h),f=_(a),d=0,e=f.length;e>d;d++)ta(f[d],g[d]);if(b)if(c)for(f=f||_(a),g=g||_(h),d=0,e=f.length;e>d;d++)sa(f[d],g[d]);else sa(a,h);return g=_(h,"script"),g.length>0&&aa(g,!i&&_(a,"script")),h},cleanData:function(a){for(var b,c,d,e=n.event.special,f=0;void 0!==(c=a[f]);f++)if(L(c)){if(b=c[N.expando]){if(b.events)for(d in b.events)e[d]?n.event.remove(c,d):n.removeEvent(c,d,b.handle);c[N.expando]=void 0}c[O.expando]&&(c[O.expando]=void 0)}}}),n.fn.extend({domManip:ua,detach:function(a){return va(this,a,!0)},remove:function(a){return va(this,a)},text:function(a){return K(this,function(a){return void 0===a?n.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 ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.appendChild(a)}})},prepend:function(){return ua(this,arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=pa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return ua(this,arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},empty:function(){for(var a,b=0;null!=(a=this[b]);b++)1===a.nodeType&&(n.cleanData(_(a,!1)),a.textContent="");return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return n.clone(this,a,b)})},html:function(a){return K(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&&!la.test(a)&&!$[(Y.exec(a)||["",""])[1].toLowerCase()]){a=n.htmlPrefilter(a);try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(n.cleanData(_(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=[];return ua(this,arguments,function(b){var c=this.parentNode;n.inArray(this,a)<0&&(n.cleanData(_(this)),c&&c.replaceChild(b,this))},a)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){n.fn[a]=function(a){for(var c,d=[],e=n(a),f=e.length-1,h=0;f>=h;h++)c=h===f?this:this.clone(!0),n(e[h])[b](c),g.apply(d,c.get());return this.pushStack(d)}});var wa,xa={HTML:"block",BODY:"block"};function ya(a,b){var c=n(b.createElement(a)).appendTo(b.body),d=n.css(c[0],"display");return c.detach(),d}function za(a){var b=d,c=xa[a];return c||(c=ya(a,b),"none"!==c&&c||(wa=(wa||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(b.documentElement),b=wa[0].contentDocument,b.write(),b.close(),c=ya(a,b),wa.detach()),xa[a]=c),c}var Aa=/^margin/,Ba=new RegExp("^("+S+")(?!px)[a-z%]+$","i"),Ca=function(b){var c=b.ownerDocument.defaultView;return c&&c.opener||(c=a),c.getComputedStyle(b)},Da=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},Ea=d.documentElement;!function(){var b,c,e,f,g=d.createElement("div"),h=d.createElement("div");if(h.style){h.style.backgroundClip="content-box",h.cloneNode(!0).style.backgroundClip="",l.clearCloneStyle="content-box"===h.style.backgroundClip,g.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",g.appendChild(h);function i(){h.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",h.innerHTML="",Ea.appendChild(g);var d=a.getComputedStyle(h);b="1%"!==d.top,f="2px"===d.marginLeft,c="4px"===d.width,h.style.marginRight="50%",e="4px"===d.marginRight,Ea.removeChild(g)}n.extend(l,{pixelPosition:function(){return i(),b},boxSizingReliable:function(){return null==c&&i(),c},pixelMarginRight:function(){return null==c&&i(),e},reliableMarginLeft:function(){return null==c&&i(),f},reliableMarginRight:function(){var b,c=h.appendChild(d.createElement("div"));return c.style.cssText=h.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",c.style.marginRight=c.style.width="0",h.style.width="1px",Ea.appendChild(g),b=!parseFloat(a.getComputedStyle(c).marginRight),Ea.removeChild(g),h.removeChild(c),b}})}}();function Fa(a,b,c){var d,e,f,g,h=a.style;return c=c||Ca(a),g=c?c.getPropertyValue(b)||c[b]:void 0,""!==g&&void 0!==g||n.contains(a.ownerDocument,a)||(g=n.style(a,b)),c&&!l.pixelMarginRight()&&Ba.test(g)&&Aa.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 Ga(a,b){return{get:function(){return a()?void delete this.get:(this.get=b).apply(this,arguments)}}}var Ha=/^(none|table(?!-c[ea]).+)/,Ia={position:"absolute",visibility:"hidden",display:"block"},Ja={letterSpacing:"0",fontWeight:"400"},Ka=["Webkit","O","Moz","ms"],La=d.createElement("div").style;function Ma(a){if(a in La)return a;var b=a[0].toUpperCase()+a.slice(1),c=Ka.length;while(c--)if(a=Ka[c]+b,a in La)return a}function Na(a,b,c){var d=T.exec(b);return d?Math.max(0,d[2]-(c||0))+(d[3]||"px"):b}function Oa(a,b,c,d,e){for(var f=c===(d?"border":"content")?4:"width"===b?1:0,g=0;4>f;f+=2)"margin"===c&&(g+=n.css(a,c+U[f],!0,e)),d?("content"===c&&(g-=n.css(a,"padding"+U[f],!0,e)),"margin"!==c&&(g-=n.css(a,"border"+U[f]+"Width",!0,e))):(g+=n.css(a,"padding"+U[f],!0,e),"padding"!==c&&(g+=n.css(a,"border"+U[f]+"Width",!0,e)));return g}function Pa(a,b,c){var d=!0,e="width"===b?a.offsetWidth:a.offsetHeight,f=Ca(a),g="border-box"===n.css(a,"boxSizing",!1,f);if(0>=e||null==e){if(e=Fa(a,b,f),(0>e||null==e)&&(e=a.style[b]),Ba.test(e))return e;d=g&&(l.boxSizingReliable()||e===a.style[b]),e=parseFloat(e)||0}return e+Oa(a,b,c||(g?"border":"content"),d,f)+"px"}function Qa(a,b){for(var c,d,e,f=[],g=0,h=a.length;h>g;g++)d=a[g],d.style&&(f[g]=N.get(d,"olddisplay"),c=d.style.display,b?(f[g]||"none"!==c||(d.style.display=""),""===d.style.display&&V(d)&&(f[g]=N.access(d,"olddisplay",za(d.nodeName)))):(e=V(d),"none"===c&&e||N.set(d,"olddisplay",e?c:n.css(d,"display"))));for(g=0;h>g;g++)d=a[g],d.style&&(b&&"none"!==d.style.display&&""!==d.style.display||(d.style.display=b?f[g]||"":"none"));return a}n.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=Fa(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=n.camelCase(b),i=a.style;return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.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=T.exec(c))&&e[1]&&(c=W(a,b,e),f="number"),null!=c&&c===c&&("number"===f&&(c+=e&&e[3]||(n.cssNumber[h]?"":"px")),l.clearCloneStyle||""!==c||0!==b.indexOf("background")||(i[b]="inherit"),g&&"set"in g&&void 0===(c=g.set(a,c,d))||(i[b]=c)),void 0)}},css:function(a,b,c,d){var e,f,g,h=n.camelCase(b);return b=n.cssProps[h]||(n.cssProps[h]=Ma(h)||h),g=n.cssHooks[b]||n.cssHooks[h],g&&"get"in g&&(e=g.get(a,!0,c)),void 0===e&&(e=Fa(a,b,d)),"normal"===e&&b in Ja&&(e=Ja[b]),""===c||c?(f=parseFloat(e),c===!0||isFinite(f)?f||0:e):e}}),n.each(["height","width"],function(a,b){n.cssHooks[b]={get:function(a,c,d){return c?Ha.test(n.css(a,"display"))&&0===a.offsetWidth?Da(a,Ia,function(){return Pa(a,b,d)}):Pa(a,b,d):void 0},set:function(a,c,d){var e,f=d&&Ca(a),g=d&&Oa(a,b,d,"border-box"===n.css(a,"boxSizing",!1,f),f);return g&&(e=T.exec(c))&&"px"!==(e[3]||"px")&&(a.style[b]=c,c=n.css(a,b)),Na(a,c,g)}}}),n.cssHooks.marginLeft=Ga(l.reliableMarginLeft,function(a,b){return b?(parseFloat(Fa(a,"marginLeft"))||a.getBoundingClientRect().left-Da(a,{marginLeft:0},function(){return a.getBoundingClientRect().left}))+"px":void 0}),n.cssHooks.marginRight=Ga(l.reliableMarginRight,function(a,b){return b?Da(a,{display:"inline-block"},Fa,[a,"marginRight"]):void 0}),n.each({margin:"",padding:"",border:"Width"},function(a,b){n.cssHooks[a+b]={expand:function(c){for(var d=0,e={},f="string"==typeof c?c.split(" "):[c];4>d;d++)e[a+U[d]+b]=f[d]||f[d-2]||f[0];return e}},Aa.test(a)||(n.cssHooks[a+b].set=Na)}),n.fn.extend({css:function(a,b){return K(this,function(a,b,c){var d,e,f={},g=0;if(n.isArray(b)){for(d=Ca(a),e=b.length;e>g;g++)f[b[g]]=n.css(a,b[g],!1,d);return f}return void 0!==c?n.style(a,b,c):n.css(a,b)},a,b,arguments.length>1)},show:function(){return Qa(this,!0)},hide:function(){return Qa(this)},toggle:function(a){return"boolean"==typeof a?a?this.show():this.hide():this.each(function(){V(this)?n(this).show():n(this).hide()})}});function Ra(a,b,c,d,e){return new Ra.prototype.init(a,b,c,d,e)}n.Tween=Ra,Ra.prototype={constructor:Ra,init:function(a,b,c,d,e,f){this.elem=a,this.prop=c,this.easing=e||n.easing._default,this.options=b,this.start=this.now=this.cur(),this.end=d,this.unit=f||(n.cssNumber[c]?"":"px")},cur:function(){var a=Ra.propHooks[this.prop];return a&&a.get?a.get(this):Ra.propHooks._default.get(this)},run:function(a){var b,c=Ra.propHooks[this.prop];return this.options.duration?this.pos=b=n.easing[this.easing](a,this.options.duration*a,0,1,this.options.duration):this.pos=b=a,this.now=(this.end-this.start)*b+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),c&&c.set?c.set(this):Ra.propHooks._default.set(this),this}},Ra.prototype.init.prototype=Ra.prototype,Ra.propHooks={_default:{get:function(a){var b;return 1!==a.elem.nodeType||null!=a.elem[a.prop]&&null==a.elem.style[a.prop]?a.elem[a.prop]:(b=n.css(a.elem,a.prop,""),b&&"auto"!==b?b:0)},set:function(a){n.fx.step[a.prop]?n.fx.step[a.prop](a):1!==a.elem.nodeType||null==a.elem.style[n.cssProps[a.prop]]&&!n.cssHooks[a.prop]?a.elem[a.prop]=a.now:n.style(a.elem,a.prop,a.now+a.unit)}}},Ra.propHooks.scrollTop=Ra.propHooks.scrollLeft={set:function(a){a.elem.nodeType&&a.elem.parentNode&&(a.elem[a.prop]=a.now)}},n.easing={linear:function(a){return a},swing:function(a){return.5-Math.cos(a*Math.PI)/2},_default:"swing"},n.fx=Ra.prototype.init,n.fx.step={};var Sa,Ta,Ua=/^(?:toggle|show|hide)$/,Va=/queueHooks$/;function Wa(){return a.setTimeout(function(){Sa=void 0}),Sa=n.now()}function Xa(a,b){var c,d=0,e={height:a};for(b=b?1:0;4>d;d+=2-b)c=U[d],e["margin"+c]=e["padding"+c]=a;return b&&(e.opacity=e.width=a),e}function Ya(a,b,c){for(var d,e=(_a.tweeners[b]||[]).concat(_a.tweeners["*"]),f=0,g=e.length;g>f;f++)if(d=e[f].call(c,b,a))return d}function Za(a,b,c){var d,e,f,g,h,i,j,k,l=this,m={},o=a.style,p=a.nodeType&&V(a),q=N.get(a,"fxshow");c.queue||(h=n._queueHooks(a,"fx"),null==h.unqueued&&(h.unqueued=0,i=h.empty.fire,h.empty.fire=function(){h.unqueued||i()}),h.unqueued++,l.always(function(){l.always(function(){h.unqueued--,n.queue(a,"fx").length||h.empty.fire()})})),1===a.nodeType&&("height"in b||"width"in b)&&(c.overflow=[o.overflow,o.overflowX,o.overflowY],j=n.css(a,"display"),k="none"===j?N.get(a,"olddisplay")||za(a.nodeName):j,"inline"===k&&"none"===n.css(a,"float")&&(o.display="inline-block")),c.overflow&&(o.overflow="hidden",l.always(function(){o.overflow=c.overflow[0],o.overflowX=c.overflow[1],o.overflowY=c.overflow[2]}));for(d in b)if(e=b[d],Ua.exec(e)){if(delete b[d],f=f||"toggle"===e,e===(p?"hide":"show")){if("show"!==e||!q||void 0===q[d])continue;p=!0}m[d]=q&&q[d]||n.style(a,d)}else j=void 0;if(n.isEmptyObject(m))"inline"===("none"===j?za(a.nodeName):j)&&(o.display=j);else{q?"hidden"in q&&(p=q.hidden):q=N.access(a,"fxshow",{}),f&&(q.hidden=!p),p?n(a).show():l.done(function(){n(a).hide()}),l.done(function(){var b;N.remove(a,"fxshow");for(b in m)n.style(a,b,m[b])});for(d in m)g=Ya(p?q[d]:0,d,l),d in q||(q[d]=g.start,p&&(g.end=g.start,g.start="width"===d||"height"===d?1:0))}}function $a(a,b){var c,d,e,f,g;for(c in a)if(d=n.camelCase(c),e=b[d],f=a[c],n.isArray(f)&&(e=f[1],f=a[c]=f[0]),c!==d&&(a[d]=f,delete a[c]),g=n.cssHooks[d],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 _a(a,b,c){var d,e,f=0,g=_a.prefilters.length,h=n.Deferred().always(function(){delete i.elem}),i=function(){if(e)return!1;for(var b=Sa||Wa(),c=Math.max(0,j.startTime+j.duration-b),d=c/j.duration||0,f=1-d,g=0,i=j.tweens.length;i>g;g++)j.tweens[g].run(f);return h.notifyWith(a,[j,f,c]),1>f&&i?c:(h.resolveWith(a,[j]),!1)},j=h.promise({elem:a,props:n.extend({},b),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},c),originalProperties:b,originalOptions:c,startTime:Sa||Wa(),duration:c.duration,tweens:[],createTween:function(b,c){var d=n.Tween(a,j.opts,b,c,j.opts.specialEasing[b]||j.opts.easing);return j.tweens.push(d),d},stop:function(b){var c=0,d=b?j.tweens.length:0;if(e)return this;for(e=!0;d>c;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($a(k,j.opts.specialEasing);g>f;f++)if(d=_a.prefilters[f].call(j,a,k,j.opts))return n.isFunction(d.stop)&&(n._queueHooks(j.elem,j.opts.queue).stop=n.proxy(d.stop,d)),d;return n.map(k,Ya,j),n.isFunction(j.opts.start)&&j.opts.start.call(a,j),n.fx.timer(n.extend(i,{elem:a,anim:j,queue:j.opts.queue})),j.progress(j.opts.progress).done(j.opts.done,j.opts.complete).fail(j.opts.fail).always(j.opts.always)}n.Animation=n.extend(_a,{tweeners:{"*":[function(a,b){var c=this.createTween(a,b);return W(c.elem,a,T.exec(b),c),c}]},tweener:function(a,b){n.isFunction(a)?(b=a,a=["*"]):a=a.match(G);for(var c,d=0,e=a.length;e>d;d++)c=a[d],_a.tweeners[c]=_a.tweeners[c]||[],_a.tweeners[c].unshift(b)},prefilters:[Za],prefilter:function(a,b){b?_a.prefilters.unshift(a):_a.prefilters.push(a)}}),n.speed=function(a,b,c){var d=a&&"object"==typeof a?n.extend({},a):{complete:c||!c&&b||n.isFunction(a)&&a,duration:a,easing:c&&b||b&&!n.isFunction(b)&&b};return d.duration=n.fx.off?0:"number"==typeof d.duration?d.duration:d.duration in n.fx.speeds?n.fx.speeds[d.duration]:n.fx.speeds._default,null!=d.queue&&d.queue!==!0||(d.queue="fx"),d.old=d.complete,d.complete=function(){n.isFunction(d.old)&&d.old.call(this),d.queue&&n.dequeue(this,d.queue)},d},n.fn.extend({fadeTo:function(a,b,c,d){return this.filter(V).css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=n.isEmptyObject(a),f=n.speed(b,c,d),g=function(){var b=_a(this,n.extend({},a),f);(e||N.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=n.timers,g=N.get(this);if(e)g[e]&&g[e].stop&&d(g[e]);else for(e in g)g[e]&&g[e].stop&&Va.test(e)&&d(g[e]);for(e=f.length;e--;)f[e].elem!==this||null!=a&&f[e].queue!==a||(f[e].anim.stop(c),b=!1,f.splice(e,1));!b&&c||n.dequeue(this,a)})},finish:function(a){return a!==!1&&(a=a||"fx"),this.each(function(){var b,c=N.get(this),d=c[a+"queue"],e=c[a+"queueHooks"],f=n.timers,g=d?d.length:0;for(c.finish=!0,n.queue(this,a,[]),e&&e.stop&&e.stop.call(this,!0),b=f.length;b--;)f[b].elem===this&&f[b].queue===a&&(f[b].anim.stop(!0),f.splice(b,1));for(b=0;g>b;b++)d[b]&&d[b].finish&&d[b].finish.call(this);delete c.finish})}}),n.each(["toggle","show","hide"],function(a,b){var c=n.fn[b];n.fn[b]=function(a,d,e){return null==a||"boolean"==typeof a?c.apply(this,arguments):this.animate(Xa(b,!0),a,d,e)}}),n.each({slideDown:Xa("show"),slideUp:Xa("hide"),slideToggle:Xa("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){n.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),n.timers=[],n.fx.tick=function(){var a,b=0,c=n.timers;for(Sa=n.now();b<c.length;b++)a=c[b],a()||c[b]!==a||c.splice(b--,1);c.length||n.fx.stop(),Sa=void 0},n.fx.timer=function(a){n.timers.push(a),a()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){Ta||(Ta=a.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){a.clearInterval(Ta),Ta=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(b,c){return b=n.fx?n.fx.speeds[b]||b:b,c=c||"fx",this.queue(c,function(c,d){var e=a.setTimeout(c,b);d.stop=function(){a.clearTimeout(e)}})},function(){var a=d.createElement("input"),b=d.createElement("select"),c=b.appendChild(d.createElement("option"));a.type="checkbox",l.checkOn=""!==a.value,l.optSelected=c.selected,b.disabled=!0,l.optDisabled=!c.disabled,a=d.createElement("input"),a.value="t",a.type="radio",l.radioValue="t"===a.value}();var ab,bb=n.expr.attrHandle;n.fn.extend({attr:function(a,b){return K(this,n.attr,a,b,arguments.length>1)},removeAttr:function(a){return this.each(function(){n.removeAttr(this,a)})}}),n.extend({attr:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return"undefined"==typeof a.getAttribute?n.prop(a,b,c):(1===f&&n.isXMLDoc(a)||(b=b.toLowerCase(),e=n.attrHooks[b]||(n.expr.match.bool.test(b)?ab:void 0)),void 0!==c?null===c?void n.removeAttr(a,b):e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:(a.setAttribute(b,c+""),c):e&&"get"in e&&null!==(d=e.get(a,b))?d:(d=n.find.attr(a,b),null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!l.radioValue&&"radio"===b&&n.nodeName(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d,e=0,f=b&&b.match(G);if(f&&1===a.nodeType)while(c=f[e++])d=n.propFix[c]||c,n.expr.match.bool.test(c)&&(a[d]=!1),a.removeAttribute(c)}}),ab={set:function(a,b,c){return b===!1?n.removeAttr(a,c):a.setAttribute(c,c),c}},n.each(n.expr.match.bool.source.match(/\w+/g),function(a,b){var c=bb[b]||n.find.attr;bb[b]=function(a,b,d){var e,f;return d||(f=bb[b],bb[b]=e,e=null!=c(a,b,d)?b.toLowerCase():null,bb[b]=f),e}});var cb=/^(?:input|select|textarea|button)$/i,db=/^(?:a|area)$/i;n.fn.extend({prop:function(a,b){return K(this,n.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[n.propFix[a]||a]})}}),n.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&n.isXMLDoc(a)||(b=n.propFix[b]||b,e=n.propHooks[b]),
4void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=n.find.attr(a,"tabindex");return b?parseInt(b,10):cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),l.optSelected||(n.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)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this});var eb=/[\t\r\n\f]/g;function fb(a){return a.getAttribute&&a.getAttribute("class")||""}n.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).addClass(a.call(this,b,fb(this)))});if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=n.trim(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(n.isFunction(a))return this.each(function(b){n(this).removeClass(a.call(this,b,fb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(G)||[];while(c=this[i++])if(e=fb(c),d=1===c.nodeType&&(" "+e+" ").replace(eb," ")){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=n.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):n.isFunction(a)?this.each(function(c){n(this).toggleClass(a.call(this,c,fb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=n(this),f=a.match(G)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=fb(this),b&&N.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":N.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+fb(c)+" ").replace(eb," ").indexOf(b)>-1)return!0;return!1}});var gb=/\r/g,hb=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=n.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,n(this).val()):a,null==e?e="":"number"==typeof e?e+="":n.isArray(e)&&(e=n.map(e,function(a){return null==a?"":a+""})),b=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=n.valHooks[e.type]||n.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(gb,""):null==c?"":c)}}}),n.extend({valHooks:{option:{get:function(a){var b=n.find.attr(a,"value");return null!=b?b:n.trim(n.text(a)).replace(hb," ")}},select:{get:function(a){for(var b,c,d=a.options,e=a.selectedIndex,f="select-one"===a.type||0>e,g=f?null:[],h=f?e+1:d.length,i=0>e?h:f?e:0;h>i;i++)if(c=d[i],(c.selected||i===e)&&(l.optDisabled?!c.disabled:null===c.getAttribute("disabled"))&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(b=n(c).val(),f)return b;g.push(b)}return g},set:function(a,b){var c,d,e=a.options,f=n.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=n.inArray(n.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(a,b){return n.isArray(b)?a.checked=n.inArray(n(a).val(),b)>-1:void 0}},l.checkOn||(n.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var ib=/^(?:focusinfocus|focusoutblur)$/;n.extend(n.event,{trigger:function(b,c,e,f){var g,h,i,j,l,m,o,p=[e||d],q=k.call(b,"type")?b.type:b,r=k.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!ib.test(q+n.event.triggered)&&(q.indexOf(".")>-1&&(r=q.split("."),q=r.shift(),r.sort()),l=q.indexOf(":")<0&&"on"+q,b=b[n.expando]?b:new n.Event(q,"object"==typeof b&&b),b.isTrigger=f?2:3,b.namespace=r.join("."),b.rnamespace=b.namespace?new RegExp("(^|\\.)"+r.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=e),c=null==c?[b]:n.makeArray(c,[b]),o=n.event.special[q]||{},f||!o.trigger||o.trigger.apply(e,c)!==!1)){if(!f&&!o.noBubble&&!n.isWindow(e)){for(j=o.delegateType||q,ib.test(j+q)||(h=h.parentNode);h;h=h.parentNode)p.push(h),i=h;i===(e.ownerDocument||d)&&p.push(i.defaultView||i.parentWindow||a)}g=0;while((h=p[g++])&&!b.isPropagationStopped())b.type=g>1?j:o.bindType||q,m=(N.get(h,"events")||{})[b.type]&&N.get(h,"handle"),m&&m.apply(h,c),m=l&&h[l],m&&m.apply&&L(h)&&(b.result=m.apply(h,c),b.result===!1&&b.preventDefault());return b.type=q,f||b.isDefaultPrevented()||o._default&&o._default.apply(p.pop(),c)!==!1||!L(e)||l&&n.isFunction(e[q])&&!n.isWindow(e)&&(i=e[l],i&&(e[l]=null),n.event.triggered=q,e[q](),n.event.triggered=void 0,i&&(e[l]=i)),b.result}},simulate:function(a,b,c){var d=n.extend(new n.Event,c,{type:a,isSimulated:!0});n.event.trigger(d,null,b)}}),n.fn.extend({trigger:function(a,b){return this.each(function(){n.event.trigger(a,b,this)})},triggerHandler:function(a,b){var c=this[0];return c?n.event.trigger(a,b,c,!0):void 0}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){n.fn[b]=function(a,c){return arguments.length>0?this.on(b,null,a,c):this.trigger(b)}}),n.fn.extend({hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),l.focusin="onfocusin"in a,l.focusin||n.each({focus:"focusin",blur:"focusout"},function(a,b){var c=function(a){n.event.simulate(b,a.target,n.event.fix(a))};n.event.special[b]={setup:function(){var d=this.ownerDocument||this,e=N.access(d,b);e||d.addEventListener(a,c,!0),N.access(d,b,(e||0)+1)},teardown:function(){var d=this.ownerDocument||this,e=N.access(d,b)-1;e?N.access(d,b,e):(d.removeEventListener(a,c,!0),N.remove(d,b))}}});var jb=a.location,kb=n.now(),lb=/\?/;n.parseJSON=function(a){return JSON.parse(a+"")},n.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||n.error("Invalid XML: "+b),c};var mb=/#.*$/,nb=/([?&])_=[^&]*/,ob=/^(.*?):[ \t]*([^\r\n]*)$/gm,pb=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,qb=/^(?:GET|HEAD)$/,rb=/^\/\//,sb={},tb={},ub="*/".concat("*"),vb=d.createElement("a");vb.href=jb.href;function wb(a){return function(b,c){"string"!=typeof b&&(c=b,b="*");var d,e=0,f=b.toLowerCase().match(G)||[];if(n.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 xb(a,b,c,d){var e={},f=a===tb;function g(h){var i;return e[h]=!0,n.each(a[h]||[],function(a,h){var j=h(b,c,d);return"string"!=typeof j||f||e[j]?f?!(i=j):void 0:(b.dataTypes.unshift(j),g(j),!1)}),i}return g(b.dataTypes[0])||!e["*"]&&g("*")}function yb(a,b){var c,d,e=n.ajaxSettings.flatOptions||{};for(c in b)void 0!==b[c]&&((e[c]?a:d||(d={}))[c]=b[c]);return d&&n.extend(!0,a,d),a}function zb(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}return f?(f!==i[0]&&i.unshift(f),c[f]):void 0}function Ab(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}}n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:jb.href,type:"GET",isLocal:pb.test(jb.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ub,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(a,b){return b?yb(yb(a,n.ajaxSettings),b):yb(n.ajaxSettings,a)},ajaxPrefilter:wb(sb),ajaxTransport:wb(tb),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.ajaxSetup({},c),o=m.context||m,p=m.context&&(o.nodeType||o.jquery)?n(o):n.event,q=n.Deferred(),r=n.Callbacks("once memory"),s=m.statusCode||{},t={},u={},v=0,w="canceled",x={readyState:0,getResponseHeader:function(a){var b;if(2===v){if(!h){h={};while(b=ob.exec(g))h[b[1].toLowerCase()]=b[2]}b=h[a.toLowerCase()]}return null==b?null:b},getAllResponseHeaders:function(){return 2===v?g:null},setRequestHeader:function(a,b){var c=a.toLowerCase();return v||(a=u[c]=u[c]||a,t[a]=b),this},overrideMimeType:function(a){return v||(m.mimeType=a),this},statusCode:function(a){var b;if(a)if(2>v)for(b in a)s[b]=[s[b],a[b]];else x.always(a[x.status]);return this},abort:function(a){var b=a||w;return e&&e.abort(b),z(0,b),this}};if(q.promise(x).complete=r.add,x.success=x.done,x.error=x.fail,m.url=((b||m.url||jb.href)+"").replace(mb,"").replace(rb,jb.protocol+"//"),m.type=c.method||c.type||m.method||m.type,m.dataTypes=n.trim(m.dataType||"*").toLowerCase().match(G)||[""],null==m.crossDomain){j=d.createElement("a");try{j.href=m.url,j.href=j.href,m.crossDomain=vb.protocol+"//"+vb.host!=j.protocol+"//"+j.host}catch(y){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=n.param(m.data,m.traditional)),xb(sb,m,c,x),2===v)return x;k=n.event&&m.global,k&&0===n.active++&&n.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!qb.test(m.type),f=m.url,m.hasContent||(m.data&&(f=m.url+=(lb.test(f)?"&":"?")+m.data,delete m.data),m.cache===!1&&(m.url=nb.test(f)?f.replace(nb,"$1_="+kb++):f+(lb.test(f)?"&":"?")+"_="+kb++)),m.ifModified&&(n.lastModified[f]&&x.setRequestHeader("If-Modified-Since",n.lastModified[f]),n.etag[f]&&x.setRequestHeader("If-None-Match",n.etag[f])),(m.data&&m.hasContent&&m.contentType!==!1||c.contentType)&&x.setRequestHeader("Content-Type",m.contentType),x.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+ub+"; q=0.01":""):m.accepts["*"]);for(l in m.headers)x.setRequestHeader(l,m.headers[l]);if(m.beforeSend&&(m.beforeSend.call(o,x,m)===!1||2===v))return x.abort();w="abort";for(l in{success:1,error:1,complete:1})x[l](m[l]);if(e=xb(tb,m,c,x)){if(x.readyState=1,k&&p.trigger("ajaxSend",[x,m]),2===v)return x;m.async&&m.timeout>0&&(i=a.setTimeout(function(){x.abort("timeout")},m.timeout));try{v=1,e.send(t,z)}catch(y){if(!(2>v))throw y;z(-1,y)}}else z(-1,"No Transport");function z(b,c,d,h){var j,l,t,u,w,y=c;2!==v&&(v=2,i&&a.clearTimeout(i),e=void 0,g=h||"",x.readyState=b>0?4:0,j=b>=200&&300>b||304===b,d&&(u=zb(m,x,d)),u=Ab(m,u,x,j),j?(m.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(n.lastModified[f]=w),w=x.getResponseHeader("etag"),w&&(n.etag[f]=w)),204===b||"HEAD"===m.type?y="nocontent":304===b?y="notmodified":(y=u.state,l=u.data,t=u.error,j=!t)):(t=y,!b&&y||(y="error",0>b&&(b=0))),x.status=b,x.statusText=(c||y)+"",j?q.resolveWith(o,[l,y,x]):q.rejectWith(o,[x,y,t]),x.statusCode(s),s=void 0,k&&p.trigger(j?"ajaxSuccess":"ajaxError",[x,m,j?l:t]),r.fireWith(o,[x,y]),k&&(p.trigger("ajaxComplete",[x,m]),--n.active||n.event.trigger("ajaxStop")))}return x},getJSON:function(a,b,c){return n.get(a,b,c,"json")},getScript:function(a,b){return n.get(a,void 0,b,"script")}}),n.each(["get","post"],function(a,b){n[b]=function(a,c,d,e){return n.isFunction(c)&&(e=e||d,d=c,c=void 0),n.ajax(n.extend({url:a,type:b,dataType:e,data:c,success:d},n.isPlainObject(a)&&a))}}),n._evalUrl=function(a){return n.ajax({url:a,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(a){var b;return n.isFunction(a)?this.each(function(b){n(this).wrapAll(a.call(this,b))}):(this[0]&&(b=n(a,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstElementChild)a=a.firstElementChild;return a}).append(this)),this)},wrapInner:function(a){return n.isFunction(a)?this.each(function(b){n(this).wrapInner(a.call(this,b))}):this.each(function(){var b=n(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=n.isFunction(a);return this.each(function(c){n(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}}),n.expr.filters.hidden=function(a){return!n.expr.filters.visible(a)},n.expr.filters.visible=function(a){return a.offsetWidth>0||a.offsetHeight>0||a.getClientRects().length>0};var Bb=/%20/g,Cb=/\[\]$/,Db=/\r?\n/g,Eb=/^(?:submit|button|image|reset|file)$/i,Fb=/^(?:input|select|textarea|keygen)/i;function Gb(a,b,c,d){var e;if(n.isArray(b))n.each(b,function(b,e){c||Cb.test(a)?d(a,e):Gb(a+"["+("object"==typeof e&&null!=e?b:"")+"]",e,c,d)});else if(c||"object"!==n.type(b))d(a,b);else for(e in b)Gb(a+"["+e+"]",b[e],c,d)}n.param=function(a,b){var c,d=[],e=function(a,b){b=n.isFunction(b)?b():null==b?"":b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};if(void 0===b&&(b=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(a)||a.jquery&&!n.isPlainObject(a))n.each(a,function(){e(this.name,this.value)});else for(c in a)Gb(c,a[c],b,e);return d.join("&").replace(Bb,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var a=n.prop(this,"elements");return a?n.makeArray(a):this}).filter(function(){var a=this.type;return this.name&&!n(this).is(":disabled")&&Fb.test(this.nodeName)&&!Eb.test(a)&&(this.checked||!X.test(a))}).map(function(a,b){var c=n(this).val();return null==c?null:n.isArray(c)?n.map(c,function(a){return{name:b.name,value:a.replace(Db,"\r\n")}}):{name:b.name,value:c.replace(Db,"\r\n")}}).get()}}),n.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(b){}};var Hb={0:200,1223:204},Ib=n.ajaxSettings.xhr();l.cors=!!Ib&&"withCredentials"in Ib,l.ajax=Ib=!!Ib,n.ajaxTransport(function(b){var c,d;return l.cors||Ib&&!b.crossDomain?{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(Hb[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()}}:void 0}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(a){return n.globalEval(a),a}}}),n.ajaxPrefilter("script",function(a){void 0===a.cache&&(a.cache=!1),a.crossDomain&&(a.type="GET")}),n.ajaxTransport("script",function(a){if(a.crossDomain){var b,c;return{send:function(e,f){b=n("<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 Jb=[],Kb=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var a=Jb.pop()||n.expando+"_"+kb++;return this[a]=!0,a}}),n.ajaxPrefilter("json jsonp",function(b,c,d){var e,f,g,h=b.jsonp!==!1&&(Kb.test(b.url)?"url":"string"==typeof b.data&&0===(b.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kb.test(b.data)&&"data");return h||"jsonp"===b.dataTypes[0]?(e=b.jsonpCallback=n.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,h?b[h]=b[h].replace(Kb,"$1"+e):b.jsonp!==!1&&(b.url+=(lb.test(b.url)?"&":"?")+b.jsonp+"="+e),b.converters["script json"]=function(){return g||n.error(e+" was not called"),g[0]},b.dataTypes[0]="json",f=a[e],a[e]=function(){g=arguments},d.always(function(){void 0===f?n(a).removeProp(e):a[e]=f,b[e]&&(b.jsonpCallback=c.jsonpCallback,Jb.push(e)),g&&n.isFunction(f)&&f(g[0]),g=f=void 0}),"script"):void 0}),n.parseHTML=function(a,b,c){if(!a||"string"!=typeof a)return null;"boolean"==typeof b&&(c=b,b=!1),b=b||d;var e=x.exec(a),f=!c&&[];return e?[b.createElement(e[1])]:(e=ca([a],b,f),f&&f.length&&n(f).remove(),n.merge([],e.childNodes))};var Lb=n.fn.load;n.fn.load=function(a,b,c){if("string"!=typeof a&&Lb)return Lb.apply(this,arguments);var d,e,f,g=this,h=a.indexOf(" ");return h>-1&&(d=n.trim(a.slice(h)),a=a.slice(0,h)),n.isFunction(b)?(c=b,b=void 0):b&&"object"==typeof b&&(e="POST"),g.length>0&&n.ajax({url:a,type:e||"GET",dataType:"html",data:b}).done(function(a){f=arguments,g.html(d?n("<div>").append(n.parseHTML(a)).find(d):a)}).always(c&&function(a,b){g.each(function(){c.apply(this,f||[a.responseText,b,a])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(a,b){n.fn[b]=function(a){return this.on(b,a)}}),n.expr.filters.animated=function(a){return n.grep(n.timers,function(b){return a===b.elem}).length};function Mb(a){return n.isWindow(a)?a:9===a.nodeType&&a.defaultView}n.offset={setOffset:function(a,b,c){var d,e,f,g,h,i,j,k=n.css(a,"position"),l=n(a),m={};"static"===k&&(a.style.position="relative"),h=l.offset(),f=n.css(a,"top"),i=n.css(a,"left"),j=("absolute"===k||"fixed"===k)&&(f+i).indexOf("auto")>-1,j?(d=l.position(),g=d.top,e=d.left):(g=parseFloat(f)||0,e=parseFloat(i)||0),n.isFunction(b)&&(b=b.call(a,c,n.extend({},h))),null!=b.top&&(m.top=b.top-h.top+g),null!=b.left&&(m.left=b.left-h.left+e),"using"in b?b.using.call(a,m):l.css(m)}},n.fn.extend({offset:function(a){if(arguments.length)return void 0===a?this:this.each(function(b){n.offset.setOffset(this,a,b)});var b,c,d=this[0],e={top:0,left:0},f=d&&d.ownerDocument;if(f)return b=f.documentElement,n.contains(b,d)?(e=d.getBoundingClientRect(),c=Mb(f),{top:e.top+c.pageYOffset-b.clientTop,left:e.left+c.pageXOffset-b.clientLeft}):e},position:function(){if(this[0]){var a,b,c=this[0],d={top:0,left:0};return"fixed"===n.css(c,"position")?b=c.getBoundingClientRect():(a=this.offsetParent(),b=this.offset(),n.nodeName(a[0],"html")||(d=a.offset()),d.top+=n.css(a[0],"borderTopWidth",!0),d.left+=n.css(a[0],"borderLeftWidth",!0)),{top:b.top-d.top-n.css(c,"marginTop",!0),left:b.left-d.left-n.css(c,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var a=this.offsetParent;while(a&&"static"===n.css(a,"position"))a=a.offsetParent;return a||Ea})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(a,b){var c="pageYOffset"===b;n.fn[a]=function(d){return K(this,function(a,d,e){var f=Mb(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)}}),n.each(["top","left"],function(a,b){n.cssHooks[b]=Ga(l.pixelPosition,function(a,c){return c?(c=Fa(a,b),Ba.test(c)?n(a).position()[b]+"px":c):void 0})}),n.each({Height:"height",Width:"width"},function(a,b){n.each({padding:"inner"+a,content:b,"":"outer"+a},function(c,d){n.fn[d]=function(d,e){var f=arguments.length&&(c||"boolean"!=typeof d),g=c||(d===!0||e===!0?"margin":"border");return K(this,function(b,c,d){var e;return n.isWindow(b)?b.document.documentElement["client"+a]:9===b.nodeType?(e=b.documentElement,Math.max(b.body["scroll"+a],e["scroll"+a],b.body["offset"+a],e["offset"+a],e["client"+a])):void 0===d?n.css(b,c,g):n.style(b,c,d,g)},b,f?d:void 0,f,null)}})}),n.fn.extend({bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return 1===arguments.length?this.off(a,"**"):this.off(b,a||"**",c)},size:function(){return this.length}}),n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var Nb=a.jQuery,Ob=a.$;return n.noConflict=function(b){return a.$===n&&(a.$=Ob),b&&a.jQuery===n&&(a.jQuery=Nb),n},b||(a.jQuery=a.$=n),n});
vendor: 5,759 bytes, line 5
5+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.affix"),n="object"==typeof e&&e;s||o.data("bs.affix",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.options=t.extend({},i.DEFAULTS,o),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.2.0",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=t(document).height(),o=this.$target.scrollTop(),s=this.$element.offset(),n=this.options.offset,r=n.top,a=n.bottom;"object"!=typeof n&&(a=r=n),"function"==typeof r&&(r=n.top(this.$element)),"function"==typeof a&&(a=n.bottom(this.$element));var l=null!=this.unpin&&o+this.unpin<=s.top?!1:null!=a&&s.top+this.$element.height()>=e-a?"bottom":null!=r&&r>=o?"top":!1;if(this.affixed!==l){null!=this.unpin&&this.$element.css("top","");var h="affix"+(l?"-"+l:""),p=t.Event(h+".bs.affix");this.$element.trigger(p),p.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(h).trigger(t.Event(h.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:e-this.$element.height()-a}))}}};var o=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=o,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),o=i.data();o.offset=o.offset||{},o.offsetBottom&&(o.offset.bottom=o.offsetBottom),o.offsetTop&&(o.offset.top=o.offsetTop),e.call(i,o)})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new o(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',o=function(e){t(e).on("click",i,this.close)};o.VERSION="3.2.0",o.prototype.close=function(e){function i(){n.detach().trigger("closed.bs.alert").remove()}var o=t(this),s=o.attr("data-target");s||(s=o.attr("href"),s=s&&s.replace(/.*(?=#[^\s]*$)/,""));var n=t(s);e&&e.preventDefault(),n.length||(n=o.hasClass("alert")?o:o.parent()),n.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(n.removeClass("in"),t.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",i).emulateTransitionEnd(150):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=o,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,o.prototype.close)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.button"),n="object"==typeof e&&e;s||o.data("bs.button",s=new i(this,n)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.isLoading=!1};i.VERSION="3.2.0",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",o=this.$element,s=o.is("input")?"val":"html",n=o.data();e+="Text",null==n.resetText&&o.data("resetText",o[s]()),o[s](null==n[e]?this.options[e]:n[e]),setTimeout(t.proxy(function(){"loadingText"==e?(this.isLoading=!0,o.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,o.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?t=!1:e.find(".active").removeClass("active")),t&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}t&&this.$element.toggleClass("active")};var o=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=o,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var o=t(i.target);o.hasClass("btn")||(o=o.closest(".btn")),e.call(o,"toggle"),i.preventDefault()})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.carousel"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e),r="string"==typeof e?e:n.slide;s||o.data("bs.carousel",s=new i(this,n)),"number"==typeof e?s.to(e):r?s[r]():n.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e).on("keydown.bs.carousel",t.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.2.0",i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},i.prototype.keydown=function(t){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.to=function(e){var i=this,o=this.getItemIndex(this.$active=this.$element.find(".
5item.active"));return e>this.$items.length-1||0>e?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(e)}):o==e?this.pause().cycle():this.slide(e>o?"next":"prev",t(this.$items[e]))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,i){var o=this.$element.find(".item.active"),s=i||o[e](),n=this.interval,r="next"==e?"left":"right",a="next"==e?"first":"last",l=this;if(!s.length){if(!this.options.wrap)return;s=this.$element.find(".item")[a]()}if(s.hasClass("active"))return this.sliding=!1;var h=s[0],p=t.Event("slide.bs.carousel",{relatedTarget:h,direction:r});if(this.$element.trigger(p),!p.isDefaultPrevented()){if(this.sliding=!0,n&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var c=t(this.$indicators.children()[this.getItemIndex(s)]);c&&c.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:h,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(s.addClass(e),s[0].offsetWidth,o.addClass(r),s.addClass(r),o.one("bsTransitionEnd",function(){s.removeClass([e,r].join(" ")).addClass("active"),o.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(1e3*o.css("transition-duration").slice(0,-1))):(o.removeClass("active"),s.addClass("active"),this.sliding=!1,this.$element.trigger(d)),n&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this},t(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(i){var o,s=t(this),n=t(s.attr("data-target")||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""));if(n.hasClass("carousel")){var r=t.extend({},n.data(),s.data()),a=s.attr("data-slide-to");a&&(r.interval=!1),e.call(n,r),a&&n.data("bs.carousel").to(a),i.preventDefault()}}),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.collapse"),n=t.extend({},i.DEFAULTS,o.data(),"object"==typeof e&&e);!s&&n.toggle&&"show"==e&&(e=!e),s||o.data("bs.collapse",s=new i(this,n)),"string"==typeof e&&s[e]()})}var i=function(e,o){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,o),this.transitioning=null,this.options.parent&&(this.$parent=t(this.options.parent)),this.options.toggle&&this.toggle()};i.VERSION="3.2.0",i.DEFAULTS={toggle:!0},i.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},i.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var i=t.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){var o=this.$parent&&this.$parent.find("> .panel > .in");if(o&&o.length){var s=o.data("bs.collapse");if(s&&s.transitioning)return;e.call(o,"hide"),s||o.data("bs.collapse",null)}var n=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[n](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var a=t.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(350)[n](this.$element[0][a])}}},i.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(350):o.call(this)}}},i.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var o=t.fn.collapse;t.fn.collapse=e,t.fn.collapse.Constructor=i,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(i){var o,s=t(this),n=s.attr("data-target")||i.preventDefault()||(o=s.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),r=t(n),a=r.data("bs.collapse"),l=a?"toggle":s.data(),h=s.attr("data-parent"),p=h&&t(h);a&&a.transitioning||(p&&p.find('[data-toggle="collapse"][data-parent="'+h+'"]').not(s).addClass("collapsed"),s[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),e.call(r,l)})}(jQuery),+function(t){"use strict";function e(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var o=i(t(this)),s={relatedTarget:this};o.hasClass("open")&&(o.trigger(e=t.Event("hide.bs.dropdown",s)),e.isDefaultPrevented()||o.removeClass("open").trigger("hidden.bs.dropdown",s))}
vendor: 17,152 bytes, line 5
5))}function i(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var o=i&&t(i);return o&&o.length?o:e.parent()}function o(e){return this.each(function(){var i=t(this),o=i.data("bs.dropdown");o||i.data("bs.dropdown",o=new r(this)),"string"==typeof e&&o[e].call(i)})}var s=".dropdown-backdrop",n='[data-toggle="dropdown"]',r=function(e){t(e).on("click.bs.dropdown",this.toggle)};r.VERSION="3.2.0",r.prototype.toggle=function(o){var s=t(this);if(!s.is(".disabled, :disabled")){var n=i(s),r=n.hasClass("open");if(e(),!r){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t('<div class="dropdown-backdrop"/>').insertAfter(t(this)).on("click",e);var a={relatedTarget:this};if(n.trigger(o=t.Event("show.bs.dropdown",a)),o.isDefaultPrevented())return;s.trigger("focus"),n.toggleClass("open").trigger("shown.bs.dropdown",a)}return!1}},r.prototype.keydown=function(e){if(/(38|40|27)/.test(e.keyCode)){var o=t(this);if(e.preventDefault(),e.stopPropagation(),!o.is(".disabled, :disabled")){var s=i(o),r=s.hasClass("open");if(!r||r&&27==e.keyCode)return 27==e.which&&s.find(n).trigger("focus"),o.trigger("click");var a=" li:not(.divider):visible a",l=s.find('[role="menu"]'+a+', [role="listbox"]'+a);if(l.length){var h=l.index(l.filter(":focus"));38==e.keyCode&&h>0&&h--,40==e.keyCode&&h<l.length-1&&h++,~h||(h=0),l.eq(h).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=o,t.fn.dropdown.Constructor=r,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",e).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,r.prototype.toggle).on("keydown.bs.dropdown.data-api",n+', [role="menu"], [role="listbox"]',r.prototype.keydown)}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tab");s||o.data("bs.tab",s=new i(this)),"string"==typeof e&&s[e]()})}var i=function(e){this.element=t(e)};i.VERSION="3.2.0",i.prototype.show=function(){var e=this.element,i=e.closest("ul:not(.dropdown-menu)"),o=e.data("target");if(o||(o=e.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var s=i.find(".active:last a")[0],n=t.Event("show.bs.tab",{relatedTarget:s});if(e.trigger(n),!n.isDefaultPrevented()){var r=t(o);this.activate(e.closest("li"),i),this.activate(r,r.parent(),function(){e.trigger({type:"shown.bs.tab",relatedTarget:s})})}}},i.prototype.activate=function(e,i,o){function s(){n.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),e.addClass("active"),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu")&&e.closest("li.dropdown").addClass("active"),o&&o()}var n=i.find("> .active"),r=o&&t.support.transition&&n.hasClass("fade");r?n.one("bsTransitionEnd",s).emulateTransitionEnd(150):s(),n.removeClass("in")};var o=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=o,this},t(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(i){i.preventDefault(),e.call(t(this),"show")})}(jQuery),+function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,o=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(o).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function e(i,o){var s=t.proxy(this.process,this);this.$body=t("body"),this.$scrollElement=t(t(i).is("body")?window:i),this.options=t.extend({},e.DEFAULTS,o),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",s),this.refresh(),this.process()}function i(i){return this.each(function(){var o=t(this),s=o.data("bs.scrollspy"),n="object"==typeof i&&i;s||o.data("bs.scrollspy",s=new e(this,n)),"string"==typeof i&&s[i]()})}e.VERSION="3.2.0",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e="offset",i=0;t.isWindow(this.$scrollElement[0])||(e="position",i=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var o=this;this.$body.find(this.selector).map(function(){var o=t(this),s=o.data("target")||o.attr("href"),n=/^#./.test(s)&&t(s);return n&&n.length&&n.is(":visible")&&[[n[e]().top+i,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){o.offsets.push(this[0]),o.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),o=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,n=this.targets,r=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=o)return r!=(t=n[n.length-1])&&this.activate(t);if(r&&e<=s[0])return r!=(t=n[0])&&this.activate(t);for(t=s.length;t--;)r!=n[t]&&e>=s[t]&&(!s[t+1]||e<=s[t+1])&&this.activate(n[t])},e.prototype.activate=function(e){this.activeTarget=e,t(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',o=t(i).parents("li").addClass("active");o.parent(".dropdown-menu").length&&(o=o.closest("li.dropdown").addClass("active")),o.trigger("activate.bs.scrollspy")};var o=t.fn.scrollspy;t.fn.scrollspy=i,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=o,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);i.call(e,e.data())})})}(jQuery),+function(t){"use strict";function e(e,o){return this.each(function(){var s=t(this),n=s.data("bs.modal"),r=t.extend({},i.DEFAULTS,s.data(),"object"==typeof e&&e);n||s.data("bs.modal",n=new i(this,r)),"string"==typeof e?n[e](o):r.show&&n.show(o)})}var i=function(e,i){this.options=i,this.$body=t(document.body),this.$element=t(e),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};i.VERSION="3.2.0",i.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},i.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},i.prototype.show=function(e){var i=this,o=t.Event("show.bs.modal",{relatedTarget:e});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.backdrop(function(){var o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),o&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var s=t.Event("shown.bs.modal",{relatedTarget:e});o?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(s)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(s)}))},i.prototype.hide=function(e){e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},i.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},i.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},i.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$element.trigger("hidden.bs.modal")})},i.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},i.prototype.backdrop=function(e){var i=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var s=t.support.transition&&o;if(this.$backdrop=t('<div class="modal-backdrop '+o+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),s&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!e)return;s?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(150):e()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var n=function(){i.removeBackdrop(),e&&e()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(150):n()}else e&&e()},i.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},i.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",t+this.scrollbarWidth)},i.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},i.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var o=t.fn.modal;t.fn.modal=e,t.fn.modal.Constructor=i,t.fn.modal.noConflict=function(){return t.fn.modal=o,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(i){var o=t(this),s=o.attr("href"),n=t(o.attr("data-target")||s&&s.replace(/.*(?=#[^\s]+$)/,"")),r=n.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(s)&&s},n.data(),o.data());o.is("a")&&i.preventDefault(),n.one("show.bs.modal",function(t){t.isDefaultPrevented()||n.one("hidden.bs.modal",function(){o.is(":visible")&&o.trigger("focus")})}),e.call(n,r,this)})}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.tooltip"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.tooltip",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,e)};i.VERSION="3.2.0",i.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,o){this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(o),this.$viewport=this.options.viewport&&t(this.options.viewport.selector||this.options.viewport);for(var s=this.options.trigger.split(" "),n=s.length;n--;){var r=s[n];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,o){i[t]!=o&&(e[t]=o)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var i=t.contains(document.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!i)return;var o=this,s=this.tip(),n=this.getUID(this.type);this.setContent(),s.attr("id",n),this.$element.attr("aria-describedby",n),this.options.animation&&s.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,s[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,l=a.test(r);l&&(r=r.replace(a,"")||"top"),s.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?s.appendTo(this.options.container):s.insertAfter(this.$element);var h=this.getPosition(),p=s[0].offsetWidth,c=s[0].offsetHeight;if(l){var d=r,f=this.$element.parent(),u=this.getPosition(f);r="bottom"==r&&h.top+h.height+c-u.scroll>u.height?"top":"top"==r&&h.top-u.scroll-c<0?"bottom":"right"==r&&h.right+p>u.width?"left":"left"==r&&h.left-p<u.left?"right":r,s.removeClass(d).addClass(r)}var g=this.getCalculatedOffset(r,h,p,c);this.applyPlacement(g,r);var v=function(){o.$element.trigger("shown.bs."+o.type),o.hoverState=null};t.support.transition&&this.$tip.hasClass("fade")?s.one("bsTransitionEnd",v).emulateTransitionEnd(150):v()}},i.prototype.applyPlacement=function(e,i){var o=this.tip(),s=o[0].offsetWidth,n=o[0].offsetHeight,r=parseInt(o.css("margin-top"),10),a=parseInt(o.css("margin-left"),10);isNaN(r)&&(r=0),isNaN(a)&&(a=0),e.top=e.top+r,e.left=e.left+a,t.offset.setOffset(o[0],t.extend({using:function(t){o.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),o.addClass("in");var l=o[0].offsetWidth,h=o[0].offsetHeight;"top"==i&&h!=n&&(e.top=e.top+n-h);var p=this.getViewportAdjustedDelta(i,e,l,h);p.left?e.left+=p.left:e.top+=p.top;var c=p.left?2*p.left-s+l:2*p.top-n+h,d=p.left?"left":"top",f=p.left?"offsetWidth":"offsetHeight";o.offset(e),this.replaceArrow(c,o[0][f],d)},i.prototype.replaceArrow=function(t,e,i){this.arrow().css(i,t?50*(1-t/e)+"%":"")},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},i.prototype.hide=function(){function e(){"in"!=i.hoverState&&o.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,o=this.tip(),s=t.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(s),s.isDefaultPrevented()?void 0:(o.removeClass("in"),t.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),this.hoverState=null,this)},i.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},i.prototype.hasContent=function(){return this.getTitle()},i.prototype.getPosition=function(e){e=e||this.$element;var i=e[0],o="BODY"==i.tagName;return t.extend({},"function"==typeof i.getBoundingClientRect?i.getBoundingClientRect():null,{scroll:o?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop(),width:o?t(window).width():e.outerWidth(),height:o?t(window).height():e.outerHeight()},o?{top:0,left:0}:e.offset())},i.prototype.getCalculatedOffset=function(t,e,i,o){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-i/2}:"top"==t?{top:e.top-o,left:e.left+e.width/2-i/2}:"left"==t?{top:e.top+e.height/2-o/2,left:e.left-i}:{top:e.top+e.height/2-o/2,left:e.left+e.width}}
5,i.prototype.getViewportAdjustedDelta=function(t,e,i,o){var s={top:0,left:0};if(!this.$viewport)return s;var n=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var a=e.top-n-r.scroll,l=e.top+n-r.scroll+o;a<r.top?s.top=r.top-a:l>r.top+r.height&&(s.top=r.top+r.height-l)}else{var h=e.left-n,p=e.left+n+i;h<r.left?s.left=r.left-h:p>r.width&&(s.left=r.left+r.width-p)}return s},i.prototype.getTitle=function(){var t,e=this.$element,i=this.options;return t=e.attr("data-original-title")||("function"==typeof i.title?i.title.call(e[0]):i.title)},i.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},i.prototype.tip=function(){return this.$tip=this.$tip||t(this.options.template)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&(i=t(e.currentTarget).data("bs."+this.type),i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var o=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=o,this}}(jQuery),+function(t){"use strict";function e(e){return this.each(function(){var o=t(this),s=o.data("bs.popover"),n="object"==typeof e&&e;(s||"destroy"!=e)&&(s||o.data("bs.popover",s=new i(this,n)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.2.0",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").empty()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},i.prototype.tip=function(){return this.$tip||(this.$tip=t(this.options.template)),this.$tip};var o=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=o,this}}(jQuery);
6
7// jQuery Mask Plugin v1.14.16
8// github.com/igorescobar/jQuery-Mask-Plugin
9var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,n,f){a instanceof String&&(a=String(a));for(var p=a.length,k=0;k<p;k++){var b=a[k];if(n.call(f,b,k,a))return{i:k,v:b}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;
10$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,f){a!=Array.prototype&&a!=Object.prototype&&(a[n]=f.value)};$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);
11$jscomp.polyfill=function(a,n,f,p){if(n){f=$jscomp.global;a=a.split(".");for(p=0;p<a.length-1;p++){var k=a[p];k in f||(f[k]={});f=f[k]}a=a[a.length-1];p=f[a];n=n(p);n!=p&&null!=n&&$jscomp.defineProperty(f,a,{configurable:!0,writable:!0,value:n})}};$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,f){return $jscomp.findInternal(this,a,f).v}},"es6","es3");
12(function(a,n,f){"function"===typeof define&&define.amd?define(["jquery"],a):"object"===typeof exports&&"undefined"===typeof Meteor?module.exports=a(require("jquery")):a(n||f)})(function(a){var n=function(b,d,e){var c={invalid:[],getCaret:function(){try{var a=0,r=b.get(0),h=document.selection,d=r.selectionStart;if(h&&-1===navigator.appVersion.indexOf("MSIE 10")){var e=h.createRange();e.moveStart("character",-c.val().length);a=e.text.length}else if(d||"0"===d)a=d;return a}catch(C){}},setCaret:function(a){try{if(b.is(":focus")){var c=
13b.get(0);if(c.setSelectionRange)c.setSelectionRange(a,a);else{var g=c.createTextRange();g.collapse(!0);g.moveEnd("character",a);g.moveStart("character",a);g.select()}}}catch(B){}}
vendor: 6,247 bytes, lines 13-25
13,events:function(){b.on("keydown.mask",function(a){b.data("mask-keycode",a.keyCode||a.which);b.data("mask-previus-value",b.val());b.data("mask-previus-caret-pos",c.getCaret());c.maskDigitPosMapOld=c.maskDigitPosMap}).on(a.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){b.keydown().keyup()},
14100)}).on("change.mask",function(){b.data("changed",!0)}).on("blur.mask",function(){f===c.val()||b.data("changed")||b.trigger("change");b.data("changed",!1)}).on("blur.mask",function(){f=c.val()}).on("focus.mask",function(b){!0===e.selectOnFocus&&a(b.target).select()}).on("focusout.mask",function(){e.clearIfNotMatch&&!k.test(c.val())&&c.val("")})},getRegexMask:function(){for(var a=[],b,c,e,t,f=0;f<d.length;f++)(b=l.translation[d.charAt(f)])?(c=b.pattern.toString().replace(/.{1}$|^.{1}/g,""),e=b.optional,
15(b=b.recursive)?(a.push(d.charAt(f)),t={digit:d.charAt(f),pattern:c}):a.push(e||b?c+"?":c)):a.push(d.charAt(f).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));a=a.join("");t&&(a=a.replace(new RegExp("("+t.digit+"(.*"+t.digit+")?)"),"($1)?").replace(new RegExp(t.digit,"g"),t.pattern));return new RegExp(a)},destroyEvents:function(){b.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(a){var c=b.is("input")?"val":"text";if(0<arguments.length){if(b[c]()!==a)b[c](a);
16c=b}else c=b[c]();return c},calculateCaretPosition:function(a){var d=c.getMasked(),h=c.getCaret();if(a!==d){var e=b.data("mask-previus-caret-pos")||0;d=d.length;var g=a.length,f=a=0,l=0,k=0,m;for(m=h;m<d&&c.maskDigitPosMap[m];m++)f++;for(m=h-1;0<=m&&c.maskDigitPosMap[m];m--)a++;for(m=h-1;0<=m;m--)c.maskDigitPosMap[m]&&l++;for(m=e-1;0<=m;m--)c.maskDigitPosMapOld[m]&&k++;h>g?h=10*d:e>=h&&e!==g?c.maskDigitPosMapOld[h]||(e=h,h=h-(k-l)-a,c.maskDigitPosMap[h]&&(h=e)):h>e&&(h=h+(l-k)+f)}return h},behaviour:function(d){d=
17d||window.event;c.invalid=[];var e=b.data("mask-keycode");if(-1===a.inArray(e,l.byPassKeys)){e=c.getMasked();var h=c.getCaret(),g=b.data("mask-previus-value")||"";setTimeout(function(){c.setCaret(c.calculateCaretPosition(g))},a.jMaskGlobals.keyStrokeCompensation);c.val(e);c.setCaret(h);return c.callbacks(d)}},getMasked:function(a,b){var h=[],f=void 0===b?c.val():b+"",g=0,k=d.length,n=0,p=f.length,m=1,r="push",u=-1,w=0;b=[];if(e.reverse){r="unshift";m=-1;var x=0;g=k-1;n=p-1;var A=function(){return-1<
18g&&-1<n}}else x=k-1,A=function(){return g<k&&n<p};for(var z;A();){var y=d.charAt(g),v=f.charAt(n),q=l.translation[y];if(q)v.match(q.pattern)?(h[r](v),q.recursive&&(-1===u?u=g:g===x&&g!==u&&(g=u-m),x===u&&(g-=m)),g+=m):v===z?(w--,z=void 0):q.optional?(g+=m,n-=m):q.fallback?(h[r](q.fallback),g+=m,n-=m):c.invalid.push({p:n,v:v,e:q.pattern}),n+=m;else{if(!a)h[r](y);v===y?(b.push(n),n+=m):(z=y,b.push(n+w),w++);g+=m}}a=d.charAt(x);k!==p+1||l.translation[a]||h.push(a);h=h.join("");c.mapMaskdigitPositions(h,
19b,p);return h},mapMaskdigitPositions:function(a,b,d){a=e.reverse?a.length-d:0;c.maskDigitPosMap={};for(d=0;d<b.length;d++)c.maskDigitPosMap[b[d]+a]=1},callbacks:function(a){var g=c.val(),h=g!==f,k=[g,a,b,e],l=function(a,b,c){"function"===typeof e[a]&&b&&e[a].apply(this,c)};l("onChange",!0===h,k);l("onKeyPress",!0===h,k);l("onComplete",g.length===d.length,k);l("onInvalid",0<c.invalid.length,[g,a,b,c.invalid,e])}};b=a(b);var l=this,f=c.val(),k;d="function"===typeof d?d(c.val(),void 0,b,e):d;l.mask=
20d;l.options=e;l.remove=function(){var a=c.getCaret();l.options.placeholder&&b.removeAttr("placeholder");b.data("mask-maxlength")&&b.removeAttr("maxlength");c.destroyEvents();c.val(l.getCleanVal());c.setCaret(a);return b};l.getCleanVal=function(){return c.getMasked(!0)};l.getMaskedVal=function(a){return c.getMasked(!1,a)};l.init=function(g){g=g||!1;e=e||{};l.clearIfNotMatch=a.jMaskGlobals.clearIfNotMatch;l.byPassKeys=a.jMaskGlobals.byPassKeys;l.translation=a.extend({},a.jMaskGlobals.translation,e.translation);
21l=a.extend(!0,{},l,e);k=c.getRegexMask();if(g)c.events(),c.val(c.getMasked());else{e.placeholder&&b.attr("placeholder",e.placeholder);b.data("mask")&&b.attr("autocomplete","off");g=0;for(var f=!0;g<d.length;g++){var h=l.translation[d.charAt(g)];if(h&&h.recursive){f=!1;break}}f&&b.attr("maxlength",d.length).data("mask-maxlength",!0);c.destroyEvents();c.events();g=c.getCaret();c.val(c.getMasked());c.setCaret(g)}};l.init(!b.is("input"))};a.maskWatchers={};var f=function(){var b=a(this),d={},e=b.attr("data-mask");
22b.attr("data-mask-reverse")&&(d.reverse=!0);b.attr("data-mask-clearifnotmatch")&&(d.clearIfNotMatch=!0);"true"===b.attr("data-mask-selectonfocus")&&(d.selectOnFocus=!0);if(p(b,e,d))return b.data("mask",new n(this,e,d))},p=function(b,d,e){e=e||{};var c=a(b).data("mask"),f=JSON.stringify;b=a(b).val()||a(b).text();try{return"function"===typeof d&&(d=d(b)),"object"!==typeof c||f(c.options)!==f(e)||c.mask!==d}catch(w){}},k=function(a){var b=document.createElement("div");a="on"+a;var e=a in b;e||(b.setAttribute(a,
23"return;"),e="function"===typeof b[a]);return e};a.fn.mask=function(b,d){d=d||{};var e=this.selector,c=a.jMaskGlobals,f=c.watchInterval;c=d.watchInputs||c.watchInputs;var k=function(){if(p(this,b,d))return a(this).data("mask",new n(this,b,d))};a(this).each(k);e&&""!==e&&c&&(clearInterval(a.maskWatchers[e]),a.maskWatchers[e]=setInterval(function(){a(document).find(e).each(k)},f));return this};a.fn.masked=function(a){return this.data("mask").getMaskedVal(a)};a.fn.unmask=function(){clearInterval(a.maskWatchers[this.selector]);
24delete a.maskWatchers[this.selector];return this.each(function(){var b=a(this).data("mask");b&&b.remove().removeData("mask")})};a.fn.cleanVal=function(){return this.data("mask").getCleanVal()};a.applyDataMask=function(b){b=b||a.jMaskGlobals.maskElements;(b instanceof a?b:a(b)).filter(a.jMaskGlobals.dataMaskAttr).each(f)};k={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,keyStrokeCompensation:10,useInput:!/Chrome\/[2-4][0-9]|SamsungBrowser/.test(window.navigator.userAgent)&&
25k("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};
vendor: 14,840 bytes, lines 25-29
25a.jMaskGlobals=a.jMaskGlobals||{};k=a.jMaskGlobals=a.extend(!0,{},k,a.jMaskGlobals);k.dataMask&&a.applyDataMask();setInterval(function(){a.jMaskGlobals.watchDataMask&&a.applyDataMask()},k.watchInterval)},window.jQuery,window.Zepto);
26/*! jQuery Validation Plugin - v1.19.1 - 6/15/2019
27 * https://jqueryvalidation.org/
28 * Copyright (c) 2019 Jörn Zaefferer; Licensed MIT */
29!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof module&&module.exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var c=a.data(this[0],"validator");return c?c:(this.attr("novalidate","novalidate"),c=new a.validator(b,this[0]),a.data(this[0],"validator",c),c.settings.onsubmit&&(this.on("click.validate",":submit",function(b){c.submitButton=b.currentTarget,a(this).hasClass("cancel")&&(c.cancelSubmit=!0),void 0!==a(this).attr("formnovalidate")&&(c.cancelSubmit=!0)}),this.on("submit.validate",function(b){function d(){var d,e;return c.submitButton&&(c.settings.submitHandler||c.formSubmitted)&&(d=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),!(c.settings.submitHandler&&!c.settings.debug)||(e=c.settings.submitHandler.call(c,c.currentForm,b),d&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is("form")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0],k="undefined"!=typeof this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=j&&(!j.form&&k&&(j.form=this.closest("form")[0],j.name=this.attr("name")),null!=j.form)){if(b)switch(d=a.data(j.form,"validator").settings,e=d.rules,f=a.validator.staticRules(j),b){case"add":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case"remove":return c?(i={},a.each(c.split(/\s/),function(a,b){i[b]=f[b],delete f[b]}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g)),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr.pseudos||a.expr[":"],{blank:function(b){return!a.trim(""+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(""+c)},unchecked:function(b){return!a(b).prop("checked")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp("\\{"+a+"\\}","g"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&""===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){"radio"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}."),step:a.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function b(b){var c="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");if(!this.form&&c&&(this.form=a(this).closest("form")[0],this.name=a(this).attr("name")),d===this.form){var e=a.data(this.form,"validator"),f="on"+b.type.replace(/^validate/,""),g=e.settings;g[f]&&!a(this).is(g.ignore)&&g[f].call(e,this,b)}}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.currentForm,e=this.groups={};a.each(this.settings.groups,function(b,c){"string"==typeof c&&(c=c.split(/\s/)),a.each(c,function(a,c){e[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",b).on("click.validate","select, option, [type='radio'], [type='checkbox']",b),this.settings.invalidHandler&&a(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr("aria-invalid",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,""),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)void 0!==a[b]&&null!==a[b]&&a[b]!==!1&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(""),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr("name"),e="undefined"!=typeof a(this).attr("contenteditable")&&"false"!==a(this).attr("contenteditable");return!d&&b.settings.debug&&window.console&&console.error("%o has no name assigned",this),e&&(this.form=a(this).closest("form")[0],this.name=d),this.form===b.currentForm&&(!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0))})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(" ").join(".");return a(this.settings.errorElement+"."+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type,g="undefined"!=typeof e.attr("contenteditable")&&"false"!==e.attr("contenteditable");return"radio"===f||"checkbox"===f?this.findByName(b.name).filter(":checked").val():"number"===f&&"undefined"!=typeof b.validity?b.validity.badInput?"NaN":e.val():(c=g?e.text():e.val(),"file"===f?"C:\\fakepath\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf("/"),d>=0?c.substr(d+1):(d=c.lastIndexOf("\\"),d>=0?c.substr(d+1):c)):"string"==typeof c?c.replace(/\r/g,""):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f,g=a(b).rules(),h=a.map(g,function(a,b){return b}).length,i=!1,j=this.elementValue(b);"function"==typeof g.normalizer?f=g.normalizer:"function"==typeof this.settings.normalizer&&(f=this.settings.normalizer),f&&(j=f.call(b,j),delete g.normalizer);for(d in g){e={method:d,parameters:g[d]};try{if(c=a.validator.methods[d].call(this,j,b,e.parameters),"dependency-mismatch"===c&&1===h){i=!0;continue}if(i=!1,"pending"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(k){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+b.id+", check the '"+e.method+"' method.",k),k instanceof TypeError&&(k.message+=".  Exception occurred when checking element "+b.id+", check the '"+e.method+"' method."),k}}if(!i)return this.objectLength(g)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data("msg"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data("msg")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;a<arguments.length;a++)if(void 0!==arguments[a])return arguments[a]},defaultMessage:function(b,c){"string"==typeof c&&(c={method:c});var d=this.findDefined(this.customMessage(b.name,c.method),this.customDataMessage(b,c.method),!this.settings.ignoreTitle&&b.title||void 0,a.validator.messages[c.method],"<strong>Warning: No message defined for "+b.name+"</strong>"),e=/\$?\{(\d+)\}/g;return"function"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,"{$1}"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr("aria-describedby");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a("<"+this.settings.errorElement+">").attr("id",i+"-error").addClass(this.settings.errorClass).html(c||""),d=h,this.settings.wrapper&&(d=h.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is("label")?h.attr("for",i):0===h.parents("label[for='"+this.escapeCssMeta(i)+"']").length&&(f=h.attr("id"),j?j.match(new RegExp("\\b"+this.escapeCssMeta(f)+"\\b"))||(j+=" "+f):j=f,a(b).attr("aria-describedby",j),e=this.groups[b.n
29ame],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a("[name='"+g.escapeCssMeta(b)+"']",g.currentForm).attr("aria-describedby",h.attr("id"))})))),!c&&this.settings.success&&(h.text(""),"string"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr("aria-describedby"),e="label[for='"+c+"'], label[for='"+c+"'] *";return d&&(e=e+", #"+this.escapeCssMeta(d).replace(/\s+/g,", #")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\!"#$%&'()*+,.\/:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find("[name='"+this.escapeCssMeta(b)+"']")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case"select":return a("option:selected",c).length;case"input":if(this.checkable(c))return this.findByName(c.name).filter(":checked").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{"boolean":function(a){return a},string:function(b,c){return!!a(b,c.form).length},"function":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);
vendor: 8,275 bytes, line 29
29return!a.validator.methods.required.call(this,c,b)&&"dependency-mismatch"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.submitButton&&a("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c="string"==typeof c&&c||"remote",a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr("class");return d&&a.each(d.split(" "),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&"range"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)"required"===c?(d=b.getAttribute(c),""===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute("type");for(c in a.validator.methods)d=f.data("rule"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),""===d&&(d=!0),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,"validator");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case"string":f=!!a(e.depends,c.form).length;break;case"function":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,"validator").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&"normalizer"!==d?e(c):e}),a.each(["minlength","maxlength"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each(["rangelength","range"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:"string"==typeof b[this]&&(c=b[this].replace(/[\[\]]/g,"").split(/[\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if("string"==typeof b){var c={};a.each(b.split(/\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return"dependency-mismatch";if("select"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:void 0!==b&&null!==b&&b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(a)},date:function(){var a=!1;return function(b,c){return a||(a=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(c)||!/Invalid|NaN/.test(new Date(b).toString())}}(),dateISO:function(a,b){return this.optional(b)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr("type"),g="Step attribute on input type "+f+" is not supported.",h=["text","number","range"],i=new RegExp("\\b"+f+"\\b"),j=f&&!i.test(h.join()),k=function(a){var b=(""+a).match(/(?:\.(\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(".validate-equalTo-blur").length&&e.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return"dependency-mismatch";e="string"==typeof e&&e||"remote";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d="string"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:"abort",port:"validate"+c.name,dataType:"json",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||"true"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),"pending")}}});var b,c={};return a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;"abort"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=("mode"in d?d:a.ajaxSettings).mode,f=("port"in d?d:a.ajaxSettings).port;return"abort"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a});
vendor: 7,990 bytes, lines 30-54
30/**
31 * Modules in this bundle
32 * @license
33 *
34 * modal-video:
35 *   license: appleple
36 *   author: appleple
37 *   homepage: http://developer.a-blogcms.jp
38 *   version: 2.4.6
39 *
40 * custom-event-polyfill:
41 *   license: MIT (http://opensource.org/licenses/MIT)
42 *   contributors: Frank Panetta, Mikhail Reenko <[email protected]>, Joscha Feth <[email protected]>
43 *   homepage: https://github.com/krambuhl/custom-event-polyfill#readme
44 *   version: 0.3.0
45 *
46 * es6-object-assign:
47 *   license: MIT (http://opensource.org/licenses/MIT)
48 *   author: Rubén Norte <[email protected]>
49 *   homepage: https://github.com/rubennorte/es6-object-assign
50 *   version: 1.1.0
51 *
52 * This header is generated by licensify (https://github.com/twada/licensify)
53 */
54!function(){function e(t,n,o){function i(a,l){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!l&&u)return u(a,!0);if(r)return r(a,!0);var d=new Error("Cannot find module '"+a+"'");throw d.code="MODULE_NOT_FOUND",d}var c=n[a]={exports:{}};t[a][0].call(c.exports,function(e){var n=t[a][1][e];return i(n||e)},c,c.exports,e,t,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}return e}()({1:[function(e,t,n){try{var o=new window.CustomEvent("test");if(o.preventDefault(),!0!==o.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var i=function(e,t){var n,o;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},n=document.createEvent("CustomEvent"),n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o=n.preventDefault,n.preventDefault=function(){o.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};i.prototype=window.Event.prototype,window.CustomEvent=i}},{}],2:[function(e,t,n){"use strict";function o(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),o=1;o<arguments.length;o++){var i=arguments[o];if(void 0!==i&&null!==i)for(var r=Object.keys(Object(i)),a=0,l=r.length;a<l;a++){var u=r[a],d=Object.getOwnPropertyDescriptor(i,u);void 0!==d&&d.enumerable&&(n[u]=i[u])}}return n}function i(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}t.exports={assign:o,polyfill:i}},{}],3:[function(e,t,n){"use strict";var o=e("../index"),i=function(e){e.fn.modalVideo=function(e){return"strings"==typeof e||new o(this,e),this}};if("function"==typeof define&&define.amd)define(["jquery"],i);else{var r=window.jQuery?window.jQuery:window.$;void 0!==r&&i(r)}t.exports=i},{"../index":5}],4:[function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();e("custom-event-polyfill");var r=e("../lib/util"),a=e("es6-object-assign").assign,l={channel:"youtube",facebook:{},youtube:{autoplay:1,cc_load_policy:1,color:null,controls:1,disablekb:0,enablejsapi:0,end:null,fs:1,h1:null,iv_load_policy:1,loop:0,modestbranding:null,mute:0,origin:null,playsinline:null,rel:0,showinfo:1,start:0,wmode:"transparent",theme:"dark",nocookie:!1},ratio:"16:9",vimeo:{api:!1,autopause:!0,autoplay:!0,byline:!0,callback:null,color:null,controls:!0,height:null,loop:!1,maxheight:null,maxwidth:null,muted:!1,player_id:null,portrait:!0,title:!0,width:null,xhtml:!1},allowFullScreen:!0,allowAutoplay:!0,animationSpeed:300,classNames:{modalVideo:"modal-video",modalVideoClose:"modal-video-close",modalVideoBody:"modal-video-body",modalVideoInner:"modal-video-inner",modalVideoIframeWrap:"modal-video-movie-wrap",modalVideoCloseBtn:"modal-video-close-btn"},aria:{openMessage:"You just openned the modal video",dismissBtnMessage:"Close the modal by clicking here"}},u=function(){function e(t,n){var i=this;o(this,e);var u=a({},l,n),d="string"==typeof t?document.querySelectorAll(t):t,c=document.querySelector("body"),s=u.classNames,f=u.animationSpeed;[].forEach.call(d,function(e){e.addEventListener("click",function(t){"A"===e.tagName&&t.preventDefault();var n=e.dataset.videoId,o=e.dataset.channel||u.channel,a=(0,r.getUniqId)(),l=e.dataset.videoUrl||i.getVideoUrl(u,o,n),d=i.getHtml(u,l,a);(0,r.append)(c,d);var v=document.getElementById(a),m=v.querySelector(".js-modal-video-dismiss-btn"),p=void 0,b=function(){clearTimeout(p),p=setTimeout(function(){var e=i.getWidthFulfillAspectRatio(u.ratio,window.innerHeight,window.innerWidth),t=document.getElementById("modal-video-inner-"+a);t.style.maxWidth!==e&&(t.style.maxWidth=e)},10)};v.focus(),v.addEventListener("click",function(){(0,r.addClass)(v,s.modalVideoClose),window.removeEventListener("resize",b),setTimeout(function(){(0,r.remove)(v),e.focus()},f)}),v.addEventListener("keydown",function(e){9===e.which&&(e.preventDefault(),document.activeElement===v?m.focus():(v.setAttribute("aria-label",""),v.focus()))}),window.addEventListener("resize",b),m.addEventListener("click",function(){(0,r.triggerEvent)(v,"click")})})})}return i(e,[{key:"getPadding",value:function(e){var t=e.split(":"),n=Number(t[0]);return 100*Number(t[1])/n+"%"}},{key:"getWidthFulfillAspectRatio",value:function(e,t,n){var o=e.split(":"),i=Number(o[0]),r=Number(o[1]);return t<n*(r/i)?Math.floor(i/r*t)+"px":"100%"}},{key:"getQueryString",value:function(e){var t="";return Object.keys(e).forEach(function(n){t+=n+"="+e[n]+"&"}),t.substr(0,t.length-1)}},{key:"getVideoUrl",value:function(e,t,n){return"youtube"===t?this.getYoutubeUrl(e.youtube,n):"vimeo"===t?this.getVimeoUrl(e.vimeo,n):"facebook"===t?this.getFacebookUrl(e.facebook,n):"custom"===t?e.url:""}},{key:"getVimeoUrl",value:function(e,t){return"//player.vimeo.com/video/"+t+"?"+this.getQueryString(e)}},{key:"getYoutubeUrl",value:function(e,t){var n=this.getQueryString(e);return!0===e.nocookie?"//www.youtube-nocookie.com/embed/"+t+"?"+n:"//www.youtube.com/embed/"+t+"?"+n}},{key:"getFacebookUrl",value:function(e,t){return"//www.facebook.com/v2.10/plugins/video.php?href=https://www.facebook.com/facebook/videos/"+t+"&"+this.getQueryString(e)}},{key:"getHtml",value:function(e,t,n){var o=this.getPadding(e.ratio),i=e.classNames;return'\n      <div class="'+i.modalVideo+'" tabindex="-1" role="dialog" aria-label="'+e.aria.openMessage+'" id="'+n+'">\n        <div class="'+i.modalVideoBody+'">\n          <div class="'+i.modalVideoInner+'" id="modal-video-inner-'+n+'">\n            <div class="'+i.modalVideoIframeWrap+'" style="padding-bottom:'+o+'">\n              <button class="'+i.modalVideoCloseBtn+' js-modal-video-dismiss-btn" aria-label="'+e.aria.dismissBtnMessage+"\"></button>\n              <iframe width='460' height='230' src=\""+t+"\" frameborder='0' allowfullscreen="+e.allowFullScreen+' tabindex="-1" allow="'+(e.allowAutoplay?"autoplay;":"")+' accelerometer; encrypted-media; gyroscope; picture-in-picture" />\n            </div>\n          </div>\n        </div>\n      </div>\n    '}}]),e}();n.default=u,t.exports=n.default},{"../lib/util":6,"custom-event-polyfill":1,"es6-object-assign":2}],5:[function(e,t,n){"use strict";t.exports=e("./core/")},{"./core/":4}],6:[function(e,t,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});n.append=function(e,t){var n=document.createElement("div");for(n.innerHTML=t;n.children.length>0;)e.appendChild(n.children[0])},n.getUniqId=function(){return(Date.now().toString(36)+Math.random().toString(36).substr(2,5)).toUpperCase()},n.remove=function(e){e&&e.parentNode&&e.parentNode.removeChild(e)},n.addClass=function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},n.triggerEvent=function(e,t,n){var o=void 0;window.CustomEvent?o=new CustomEvent(t,{cancelable:!0}):(o=document.createEvent("CustomEvent"),o.initCustomEvent(t,!1,!1,n)),e.dispatchEvent(o)}},{}]},{},[3]);
54
55(function(window,document,$,undefined){'use strict';window.console=window.console||{info:function(stuff){},};if(!$){return;}
56if($.fn.fancybox){console.info('fancyBox already initialized');return;}
57var defaults={closeExisting:false,loop:false,gutter:50,keyboard:true,preventCaptionOverlap:true,arrows:true,infobar:true,smallBtn:'auto',toolbar:'auto',buttons:['zoom','slideShow','thumbs','close',],idleTime:3,protect:false,modal:false,image:{preload:false,},ajax:{settings:{data:{fancybox:true,},},},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:true,css:{},attr:{scrolling:'auto',},},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}">'+'<source src="{{src}}" type="{{format}}" />'+'Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!'+'</video>',format:'',autoStart:true,},defaultType:'image',animationEffect:'zoom',animationDuration:366,zoomOpacity:'auto',transitionEffect:'fade',transitionDuration:366,slideClass:'',baseClass:'',baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1">'+'<div class="fancybox-bg"></div>'+'<div class="fancybox-inner">'+'<div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div>'+'<div class="fancybox-toolbar">{{buttons}}</div>'+'<div class="fancybox-navigation">{{arrows}}</div>'+'<div class="fancybox-stage"></div>'+'<div class="fancybox-caption"><div class="fancybox-caption__body"></div></div>'+'</div>'+'</div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg>'+'</a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg>'+'</button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg>'+'</button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}">'+'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
vendor: 49,424 bytes, lines 57-253
57<path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div>'+'</button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}">'+'<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div>'+'</button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}">'+'<svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg>'+'</button>',},parentEl:'body',hideScrollbar:true,autoFocus:true,backFocus:true,trapFocus:true,fullScreen:{autoStart:false,},touch:{vertical:true,momentum:true,},hash:null,media:{},slideShow:{autoStart:false,speed:3000,},thumbs:{autoStart:false,hideOnClose:true,parentEl:'.fancybox-container',axis:'y',},wheel:'auto',onInit:$.noop,beforeLoad:$.noop,afterLoad:$.noop,beforeShow:$.noop,afterShow:$.noop,beforeClose:$.noop,afterClose:$.noop,onActivate:$.noop,onDeactivate:$.noop,clickContent:function(current,event){return current.type==='image'?'zoom':false;},clickSlide:'close',clickOutside:'close',dblclickContent:false,dblclickSlide:false,dblclickOutside:false,mobile:{preventCaptionOverlap:false,idleTime:false,clickContent:function(current,event){return current.type==='image'?'toggleControls':false;},clickSlide:function(current,event){return current.type==='image'?'toggleControls':'close';},dblclickContent:function(current,event){return current.type==='image'?'zoom':false;},dblclickSlide:function(current,event){return current.type==='image'?'zoom':false;},},lang:'en',i18n:{en:{CLOSE:'Close',NEXT:'Next',PREV:'Previous',ERROR:'The requested content cannot be loaded. <br/> Please try again later.',PLAY_START:'Start slideshow',PLAY_STOP:'Pause slideshow',FULL_SCREEN:'Full screen',THUMBS:'Thumbnails',DOWNLOAD:'Download',SHARE:'Share',ZOOM:'Zoom',},de:{CLOSE:'Schlie&szlig;en',NEXT:'Weiter',PREV:'Zur&uuml;ck',ERROR:'Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.',PLAY_START:'Diaschau starten',PLAY_STOP:'Diaschau beenden',FULL_SCREEN:'Vollbild',THUMBS:'Vorschaubilder',DOWNLOAD:'Herunterladen',SHARE:'Teilen',ZOOM:'Vergr&ouml;&szlig;ern',},},};var $W=$(window);var $D=$(document);var called=0;var isQuery=function(obj){return obj&&obj.hasOwnProperty&&obj instanceof $;};var requestAFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(callback){return window.setTimeout(callback,1000 / 60);});})();var cancelAFrame=(function(){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(id){window.clearTimeout(id);});})();var transitionEnd=(function(){var el=document.createElement('fakeelement'),t;var transitions={transition:'transitionend',OTransition:'oTransitionEnd',MozTransition:'transitionend',WebkitTransition:'webkitTransitionEnd',};for(t in transitions){if(el.style[t]!==undefined){return transitions[t];}}
58return'transitionend';})();var forceRedraw=function($el){return $el&&$el.length&&$el[0].offsetHeight;};var mergeOpts=function(opts1,opts2){var rez=$.extend(true,{},opts1,opts2);$.each(opts2,function(key,value){if($.isArray(value)){rez[key]=value;}});return rez;};var inViewport=function(elem){var elemCenter,rez;if(!elem||elem.ownerDocument!==document){return false;}
59$('.fancybox-container').css('pointer-events','none');elemCenter={x:elem.getBoundingClientRect().left+elem.offsetWidth / 2,y:elem.getBoundingClientRect().top+elem.offsetHeight / 2,};rez=document.elementFromPoint(elemCenter.x,elemCenter.y)===elem;$('.fancybox-container').css('pointer-events','');return rez;};var FancyBox=function(content,opts,index){var self=this;self.opts=mergeOpts({index:index,},$.fancybox.defaults);if($.isPlainObject(opts)){self.opts=mergeOpts(self.opts,opts);}
60if($.fancybox.isMobile){self.opts=mergeOpts(self.opts,self.opts.mobile);}
61self.id=self.opts.id||++called;self.currIndex=parseInt(self.opts.index,10)||0;self.prevIndex=null;self.prevPos=null;self.currPos=0;self.firstRun=true;self.group=[];self.slides={};self.addContent(content);if(!self.group.length){return;}
62self.init();};$.extend(FancyBox.prototype,{init:function(){var self=this,firstItem=self.group[self.currIndex],firstItemOpts=firstItem.opts,$container,buttonStr;if(firstItemOpts.closeExisting){$.fancybox.close(true);}
63$('body').addClass('fancybox-active');if(!$.fancybox.getInstance()&&firstItemOpts.hideScrollbar!==false&&!$.fancybox.isMobile&&document.body.scrollHeight>window.innerHeight){$('head').append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+
64(window.innerWidth-document.documentElement.clientWidth)+'px;}</style>');$('body').addClass('compensate-for-scrollbar');}
65buttonStr='';$.each(firstItemOpts.buttons,function(index,value){buttonStr+=firstItemOpts.btnTpl[value]||'';});$container=$(self.translate(self,firstItemOpts.baseTpl.replace('{{buttons}}',buttonStr).replace('{{arrows}}',firstItemOpts.btnTpl.arrowLeft+firstItemOpts.btnTpl.arrowRight))).attr('id','fancybox-container-'+self.id).addClass(firstItemOpts.baseClass).data('FancyBox',self).appendTo(firstItemOpts.parentEl);self.$refs={container:$container,};['bg','inner','infobar','toolbar','stage','caption','navigation',].forEach(function(item){self.$refs[item]=$container.find('.fancybox-'+item);});self.trigger('onInit');self.activate();self.jumpTo(self.currIndex);},translate:function(obj,str){var arr=obj.opts.i18n[obj.opts.lang]||obj.opts.i18n.en;return str.replace(/\{\{(\w+)\}\}/g,function(match,n){return arr[n]===undefined?match:arr[n];});},addContent:function(content){var self=this,items=$.makeArray(content),thumbs;$.each(items,function(i,item){var obj={},opts={},$item,type,found,src,srcParts;if($.isPlainObject(item)){obj=item;opts=item.opts||item;}else if($.type(item)==='object'&&$(item).length){$item=$(item);opts=$item.data()||{};opts=$.extend(true,{},opts,opts.options);opts.$orig=$item;obj.src=self.opts.src||opts.src||$item.attr('href');if(!obj.type&&!obj.src){obj.type='inline';obj.src=item;}}else{obj={type:'html',src:item+'',};}
66obj.opts=$.extend(true,{},self.opts,opts);if($.isArray(opts.buttons)){obj.opts.buttons=opts.buttons;}
67if($.fancybox.isMobile&&obj.opts.mobile){obj.opts=mergeOpts(obj.opts,obj.opts.mobile);}
68type=obj.type||obj.opts.type;src=obj.src||'';if(!type&&src){if((found=src.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))){type='video';if(!obj.opts.video.format){obj.opts.video.format='video/'+(found[1]==='ogv'?'ogg':found[1]);}}else if(src.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)){type='image';}else if(src.match(/\.(pdf)((\?|#).*)?$/i)){type='iframe';obj=$.extend(true,obj,{contentType:'pdf',opts:{iframe:{preload:false,},},});}else if(src.charAt(0)==='#'){type='inline';}}
69if(type){obj.type=type;}else{self.trigger('objectNeedsType',obj);}
70if(!obj.contentType){obj.contentType=$.inArray(obj.type,['html','inline','ajax'])>-1?'html':obj.type;}
71obj.index=self.group.length;if(obj.opts.smallBtn=='auto'){obj.opts.smallBtn=$.inArray(obj.type,['html','inline','ajax'])>-1;}
72if(obj.opts.toolbar==='auto'){obj.opts.toolbar=!obj.opts.smallBtn;}
73obj.$thumb=obj.opts.$thumb||null;if(obj.opts.$trigger&&obj.index===self.opts.index){obj.$thumb=obj.opts.$trigger.find('img:first');if(obj.$thumb.length){obj.opts.$orig=obj.opts.$trigger;}}
74if(!(obj.$thumb&&obj.$thumb.length)&&obj.opts.$orig){obj.$thumb=obj.opts.$orig.find('img:first');}
75if(obj.$thumb&&!obj.$thumb.length){obj.$thumb=null;}
76obj.thumb=obj.opts.thumb||(obj.$thumb?obj.$thumb[0].src:null);if($.type(obj.opts.caption)==='function'){obj.opts.caption=obj.opts.caption.apply(item,[self,obj]);}
77if($.type(self.opts.caption)==='function'){obj.opts.caption=self.opts.caption.apply(item,[self,obj]);}
78if(!(obj.opts.caption instanceof $)){obj.opts.caption=obj.opts.caption===undefined?'':obj.opts.caption+'';}
79if(obj.type==='ajax'){srcParts=src.split(/\s+/,2);if(srcParts.length>1){obj.src=srcParts.shift();obj.opts.filter=srcParts.shift();}}
80if(obj.opts.modal){obj.opts=$.extend(true,obj.opts,{trapFocus:true,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:false,clickSlide:false,clickOutside:false,dblclickContent:false,dblclickSlide:false,dblclickOutside:false,});}
81self.group.push(obj);});if(Object.keys(self.slides).length){self.updateControls();thumbs=self.Thumbs;if(thumbs&&thumbs.isActive){thumbs.create();thumbs.focus();}}},addEvents:function(){var self=this;self.removeEvents();self.$refs.container.on('click.fb-close','[data-fancybox-close]',function(e){e.stopPropagation();e.preventDefault();self.close(e);}).on('touchstart.fb-prev click.fb-prev','[data-fancybox-prev]',function(e){e.stopPropagation();e.preventDefault();self.previous();}).on('touchstart.fb-next click.fb-next','[data-fancybox-next]',function(e){e.stopPropagation();e.preventDefault();self.next();}).on('click.fb','[data-fancybox-zoom]',function(e){self[self.isScaledDown()?'scaleToActual':'scaleToFit']();});$W.on('orientationchange.fb resize.fb',function(e){if(e&&e.originalEvent&&e.originalEvent.type==='resize'){if(self.requestId){cancelAFrame(self.requestId);}
82self.requestId=requestAFrame(function(){self.update(e);});}else{if(self.current&&self.current.type==='iframe'){self.$refs.stage.hide();}
83setTimeout(function(){self.$refs.stage.show();self.update(e);},$.fancybox.isMobile?600:250);}});$D.on('keydown.fb',function(e){var instance=$.fancybox?$.fancybox.getInstance():null,current=instance.current,keycode=e.keyCode||e.which;if(keycode==9){if(current.opts.trapFocus){self.focus(e);}
84return;}
85if(!current.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||$(e.target).is('input,textarea,video,audio,select')){return;}
86if(keycode===8||keycode===27){e.preventDefault();self.close(e);return;}
87if(keycode===37||keycode===38){e.preventDefault();self.previous();return;}
88if(keycode===39||keycode===40){e.preventDefault();self.next();return;}
89self.trigger('afterKeydown',e,keycode);});if(self.group[self.currIndex].opts.idleTime){self.idleSecondsCounter=0;$D.on('mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle',function(e){self.idleSecondsCounter=0;if(self.isIdle){self.showControls();}
90self.isIdle=false;});self.idleInterval=window.setInterval(function(){self.idleSecondsCounter++;if(self.idleSecondsCounter>=self.group[self.currIndex].opts.idleTime&&!self.isDragging){self.isIdle=true;self.idleSecondsCounter=0;self.hideControls();}},1000);}},removeEvents:function(){var self=this;$W.off('orientationchange.fb resize.fb');$D.off('keydown.fb .fb-idle');this.$refs.container.off('.fb-close .fb-prev .fb-next');if(self.idleInterval){window.clearInterval(self.idleInterval);self.idleInterval=null;}},previous:function(duration){return this.jumpTo(this.currPos-1,duration);},next:function(duration){return this.jumpTo(this.currPos+1,duration);},jumpTo:function(pos,duration){var self=this,groupLen=self.group.length,firstRun,isMoved,loop,current,previous,slidePos,stagePos,prop,diff;if(self.isDragging||self.isClosing||(self.isAnimating&&self.firstRun)){return;}
91pos=parseInt(pos,10);loop=self.current?self.current.opts.loop:self.opts.loop;if(!loop&&(pos<0||pos>=groupLen)){return false;}
92firstRun=self.firstRun=!Object.keys(self.slides).length;previous=self.current;self.prevIndex=self.currIndex;self.prevPos=self.currPos;current=self.createSlide(pos);if(groupLen>1){if(loop||current.index<groupLen-1){self.createSlide(pos+1);}
93if(loop||current.index>0){self.createSlide(pos-1);}}
94self.current=current;self.currIndex=current.index;self.currPos=current.pos;self.trigger('beforeShow',firstRun);self.updateControls();current.forcedDuration=undefined;if($.isNumeric(duration)){current.forcedDuration=duration;}else{duration=current.opts[firstRun?'animationDuration':'transitionDuration'];}
95duration=parseInt(duration,10);isMoved=self.isMoved(current);current.$slide.addClass('fancybox-slide--current');if(firstRun){if(current.opts.animationEffect&&duration){self.$refs.container.css('transition-duration',duration+'ms');}
96self.$refs.container.addClass('fancybox-is-open').trigger('focus');self.loadSlide(current);self.preload('image');return;}
97slidePos=$.fancybox.getTranslate(previous.$slide);stagePos=$.fancybox.getTranslate(self.$refs.stage);$.each(self.slides,function(index,slide){$.fancybox.stop(slide.$slide,true);});if(previous.pos!==current.pos){previous.isComplete=false;}
98previous.$slide.removeClass('fancybox-slide--complete fancybox-slide--current');if(isMoved){diff=slidePos.left-
99(previous.pos*slidePos.width+previous.pos*previous.opts.gutter);$.each(self.slides,function(index,slide){slide.$slide.removeClass('fancybox-animated').removeClass(function(index,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(' ');});var leftPos=slide.pos*slidePos.width+slide.pos*slide.opts.gutter;$.fancybox.setTranslate(slide.$slide,{top:0,left:leftPos-stagePos.left+diff,});if(slide.pos!==current.pos){slide.$slide.addClass('fancybox-slide--'+
100(slide.pos>current.pos?'next':'previous'));}
101forceRedraw(slide.$slide);$.fancybox.animate(slide.$slide,{top:0,left:(slide.pos-current.pos)*slidePos.width+
102(slide.pos-current.pos)*slide.opts.gutter,},duration,function(){slide.$slide.css({transform:'',opacity:'',}).removeClass('fancybox-slide--next fancybox-slide--previous');if(slide.pos===self.currPos){self.complete();}});});}else if(duration&&current.opts.transitionEffect){prop='fancybox-animated fancybox-fx-'+current.opts.transitionEffect;previous.$slide.addClass('fancybox-slide--'+
103(previous.pos>current.pos?'next':'previous'));$.fancybox.animate(previous.$slide,prop,duration,function(){previous.$slide.removeClass(prop).removeClass('fancybox-slide--next fancybox-slide--previous');},false);}
104if(current.isLoaded){self.revealContent(current);}else{self.loadSlide(current);}
105self.preload('image');},createSlide:function(pos){var self=this,$slide,index;index=pos%self.group.length;index=index<0?self.group.length+index:index;if(!self.slides[pos]&&self.group[index]){$slide=$('<div class="fancybox-slide"></div>').appendTo(self.$refs.stage);self.slides[pos]=$.extend(true,{},self.group[index],{pos:pos,$slide:$slide,isLoaded:false,});self.updateSlide(self.slides[pos]);}
106return self.slides[pos];},scaleToActual:function(x,y,duration){var self=this,current=self.current,$content=current.$content,canvasWidth=$.fancybox.getTranslate(current.$slide).width,canvasHeight=$.fancybox.getTranslate(current.$slide).height,newImgWidth=current.width,newImgHeight=current.height,imgPos,posX,posY,scaleX,scaleY;if(self.isAnimating||self.isMoved()||!$content||!(current.type=='image'&&current.isLoaded&&!current.hasError)){return;}
107self.isAnimating=true;$.fancybox.stop($content);x=x===undefined?canvasWidth*0.5:x;y=y===undefined?canvasHeight*0.5:y;imgPos=$.fancybox.getTranslate($content);imgPos.top-=$.fancybox.getTranslate(current.$slide).top;imgPos.left-=$.fancybox.getTranslate(current.$slide).left;scaleX=newImgWidth / imgPos.width;scaleY=newImgHeight / imgPos.height;posX=canvasWidth*0.5-newImgWidth*0.5;posY=canvasHeight*0.5-newImgHeight*0.5;if(newImgWidth>canvasWidth){posX=imgPos.left*scaleX-(x*scaleX-x);if(posX>0){posX=0;}
108if(posX<canvasWidth-newImgWidth){posX=canvasWidth-newImgWidth;}}
109if(newImgHeight>canvasHeight){posY=imgPos.top*scaleY-(y*scaleY-y);if(posY>0){posY=0;}
110if(posY<canvasHeight-newImgHeight){posY=canvasHeight-newImgHeight;}}
111self.updateCursor(newImgWidth,newImgHeight);$.fancybox.animate($content,{top:posY,left:posX,scaleX:scaleX,scaleY:scaleY,},duration||366,function(){self.isAnimating=false;});if(self.SlideShow&&self.SlideShow.isActive){self.SlideShow.stop();}},scaleToFit:function(duration){var self=this,current=self.current,$content=current.$content,end;if(self.isAnimating||self.isMoved()||!$content||!(current.type=='image'&&current.isLoaded&&!current.hasError)){return;}
112self.isAnimating=true;$.fancybox.stop($content);end=self.getFitPos(current);self.updateCursor(end.width,end.height);$.fancybox.animate($content,{top:end.top,left:end.left,scaleX:end.width / $content.width(),scaleY:end.height / $content.height(),},duration||366,function(){self.isAnimating=false;});},getFitPos:function(slide){var self=this,$content=slide.$content,$slide=slide.$slide,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,maxWidth,maxHeight,minRatio,aspectRatio,rez={};if(!slide.isLoaded||!$content||!$content.length){return false;}
113maxWidth=$.fancybox.getTranslate(self.$refs.stage).width;maxHeight=$.fancybox.getTranslate(self.$refs.stage).height;maxWidth-=parseFloat($slide.css('paddingLeft'))+
114parseFloat($slide.css('paddingRight'))+
115parseFloat($content.css('marginLeft'))+
116parseFloat($content.css('marginRight'));maxHeight-=parseFloat($slide.css('paddingTop'))+
117parseFloat($slide.css('paddingBottom'))+
118parseFloat($content.css('marginTop'))+
119parseFloat($content.css('marginBottom'));if(!width||!height){width=maxWidth;height=maxHeight;}
120minRatio=Math.min(1,maxWidth / width,maxHeight / height);width=minRatio*width;height=minRatio*height;if(width>maxWidth-0.5){width=maxWidth;}
121if(height>maxHeight-0.5){height=maxHeight;}
122if(slide.type==='image'){rez.top=Math.floor((maxHeight-height)*0.5)+
123parseFloat($slide.css('paddingTop'));rez.left=Math.floor((maxWidth-width)*0.5)+
124parseFloat($slide.css('paddingLeft'));}else if(slide.contentType==='video'){aspectRatio=slide.opts.width&&slide.opts.height?width / height:slide.opts.ratio||16 / 9;if(height>width / aspectRatio){height=width / aspectRatio;}else if(width>height*aspectRatio){width=height*aspectRatio;}}
125rez.width=width;rez.height=height;return rez;},update:function(e){var self=this;$.each(self.slides,function(key,slide){self.updateSlide(slide,e);});},updateSlide:function(slide,e){var self=this,$content=slide&&slide.$content,width=slide.width||slide.opts.width,height=slide.height||slide.opts.height,$slide=slide.$slide;self.adjustCaption(slide);if($content&&(width||height||slide.contentType==='video')&&!slide.hasError){$.fancybox.stop($content);$.fancybox.setTranslate($content,self.getFitPos(slide));if(slide.pos===self.currPos){self.isAnimating=false;self.updateCursor();}}
126self.adjustLayout(slide);if($slide.length){$slide.trigger('refresh');if(slide.pos===self.currPos){self.$refs.toolbar.add(self.$refs.navigation.find('.fancybox-button--arrow_right')).toggleClass('compensate-for-scrollbar',$slide.get(0).scrollHeight>$slide.get(0).clientHeight);}}
127self.trigger('onUpdate',slide,e);},centerSlide:function(duration){var self=this,current=self.current,$slide=current.$slide;if(self.isClosing||!current){return;}
128$slide.siblings().css({transform:'',opacity:'',});$slide.parent().children().removeClass('fancybox-slide--previous fancybox-slide--next');$.fancybox.animate($slide,{top:0,left:0,opacity:1,},duration===undefined?0:duration,function(){$slide.css({transform:'',opacity:'',});if(!current.isComplete){self.complete();}},false);},isMoved:function(slide){var current=slide||this.current,slidePos,stagePos;if(!current){return false;}
129stagePos=$.fancybox.getTranslate(this.$refs.stage);slidePos=$.fancybox.getTranslate(current.$slide);return(!current.$slide.hasClass('fancybox-animated')&&(Math.abs(slidePos.top-stagePos.top)>0.5||Math.abs(slidePos.left-stagePos.left)>0.5));},updateCursor:function(nextWidth,nextHeight){var self=this,current=self.current,$container=self.$refs.container,canPan,isZoomable;if(!current||self.isClosing||!self.Guestures){return;}
130$container.removeClass('fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan');canPan=self.canPan(nextWidth,nextHeight);isZoomable=canPan?true:self.isZoomable();$container.toggleClass('fancybox-is-zoomable',isZoomable);$('[data-fancybox-zoom]').prop('disabled',!isZoomable);if(canPan){$container.addClass('fancybox-can-pan');}else if(isZoomable&&(current.opts.clickContent==='zoom'||($.isFunction(current.opts.clickContent)&&current.opts.clickContent(current)=='zoom'))){$container.addClass('fancybox-can-zoomIn');}else if(current.opts.touch&&(current.opts.touch.vertical||self.group.length>1)&&current.contentType!=='video'){$container.addClass('fancybox-can-swipe');}},isZoomable:function(){var self=this,current=self.current,fitPos;if(current&&!self.isClosing&&current.type==='image'&&!current.hasError){if(!current.isLoaded){return true;}
131fitPos=self.getFitPos(current);if(fitPos&&(current.width>fitPos.width||current.height>fitPos.height)){return true;}}
132return false;},isScaledDown:function(nextWidth,nextHeight){var self=this,rez=false,current=self.current,$content=current.$content;if(nextWidth!==undefined&&nextHeight!==undefined){rez=nextWidth<current.width&&nextHeight<current.height;}else if($content){rez=$.fancybox.getTranslate($content);rez=rez.width<current.width&&rez.height<current.height;}
133return rez;},canPan:function(nextWidth,nextHeight){var self=this,current=self.current,pos=null,rez=false;if(current.type==='image'&&(current.isComplete||(nextWidth&&nextHeight))&&!current.hasError){rez=self.getFitPos(current);if(nextWidth!==undefined&&nextHeight!==undefined){pos={width:nextWidth,height:nextHeight,};}else if(current.isComplete){pos=$.fancybox.getTranslate(current.$content);}
134if(pos&&rez){rez=Math.abs(pos.width-rez.width)>1.5||Math.abs(pos.height-rez.height)>1.5;}}
135return rez;},loadSlide:function(slide){var self=this,type,$slide,ajaxLoad;if(slide.isLoading||slide.isLoaded){return;}
136slide.isLoading=true;if(self.trigger('beforeLoad',slide)===false){slide.isLoading=false;return false;}
137type=slide.type;$slide=slide.$slide;$slide.off('refresh').trigger('onReset').addClass(slide.opts.slideClass);switch(type){case'image':self.setImage(slide);break;case'iframe':self.setIframe(slide);break;case'html':self.setContent(slide,slide.src||slide.content);break;case'video':self.setContent(slide,slide.opts.video.tpl.replace(/\{\{src\}\}/gi,slide.src).replace('{{format}}',slide.opts.videoFormat||slide.opts.video.format||'').replace('{{poster}}',slide.thumb||''));break;case'inline':if($(slide.src).length){self.setContent(slide,$(slide.src));}else{self.setError(slide);}
138break;case'ajax':self.showLoading(slide);ajaxLoad=$.ajax($.extend({},slide.opts.ajax.settings,{url:slide.src,success:function(data,textStatus){if(textStatus==='success'){self.setContent(slide,data);}},error:function(jqXHR,textStatus){if(jqXHR&&textStatus!=='abort'){self.setError(slide);}},}));$slide.one('onReset',function(){ajaxLoad.abort();});break;default:self.setError(slide);break;}
139return true;},setImage:function(slide){var self=this,ghost;setTimeout(function(){var $img=slide.$image;if(!self.isClosing&&slide.isLoading&&(!$img||!$img.length||!$img[0].complete)&&!slide.hasError){self.showLoading(slide);}},50);self.checkSrcset(slide);slide.$content=$('<div class="fancybox-content"></div>').addClass('fancybox-is-hidden').appendTo(slide.$slide.addClass('fancybox-slide--image'));if(slide.opts.preload!==false&&slide.opts.width&&slide.opts.height&&slide.thumb){slide.width=slide.opts.width;slide.height=slide.opts.height;ghost=document.createElement('img');ghost.onerror=function(){$(this).remove();slide.$ghost=null;};ghost.onload=function(){self.afterLoad(slide);};slide.$ghost=$(ghost).addClass('fancybox-image').appendTo(slide.$content).attr('src',slide.thumb);}
140self.setBigImage(slide);},checkSrcset:function(slide){var srcset=slide.opts.srcset||slide.opts.image.srcset,found,temp,pxRatio,windowWidth;if(srcset){pxRatio=window.devicePixelRatio||1;windowWidth=window.innerWidth*pxRatio;temp=srcset.split(',').map(function(el){var ret={};el.trim().split(/\s+/).forEach(function(el,i){var value=parseInt(el.substring(0,el.length-1),10);if(i===0){return(ret.url=el);}
141if(value){ret.value=value;ret.postfix=el[el.length-1];}});return ret;});temp.sort(function(a,b){return a.value-b.value;});for(var j=0;j<temp.length;j++){var el=temp[j];if((el.postfix==='w'&&el.value>=windowWidth)||(el.postfix==='x'&&el.value>=pxRatio)){found=el;break;}}
142if(!found&&temp.length){found=temp[temp.length-1];}
143if(found){slide.src=found.url;if(slide.width&&slide.height&&found.postfix=='w'){slide.height=(slide.width / slide.height)*found.value;slide.width=found.value;}
144slide.opts.srcset=srcset;}}},setBigImage:function(slide){var self=this,img=document.createElement('img'),$img=$(img);slide.$image=$img.one('error',function(){self.setError(slide);}).one('load',function(){var sizes;if(!slide.$ghost){self.resolveImageSlideSize(slide,this.naturalWidth,this.naturalHeight);self.afterLoad(slide);}
145if(self.isClosing){return;}
146if(slide.opts.srcset){sizes=slide.opts.sizes;if(!sizes||sizes==='auto'){sizes=(slide.width / slide.height>1&&$W.width()/ $W.height()>1?'100':Math.round((slide.width / slide.height)*100))+'vw';}
147$img.attr('sizes',sizes).attr('srcset',slide.opts.srcset);}
148if(slide.$ghost){setTimeout(function(){if(slide.$ghost&&!self.isClosing){slide.$ghost.hide();}},Math.min(300,Math.max(1000,slide.height / 1600)));}
149self.hideLoading(slide);}).addClass('fancybox-image').attr('src',slide.src).appendTo(slide.$content);if((img.complete||img.readyState=='complete')&&$img.naturalWidth&&$img.naturalHeight){$img.trigger('load');}else if(img.error){$img.trigger('error');}},resolveImageSlideSize:function(slide,imgWidth,imgHeight){var maxWidth=parseInt(slide.opts.width,10),maxHeight=parseInt(slide.opts.height,10);slide.width=imgWidth;slide.height=imgHeight;if(maxWidth>0){slide.width=maxWidth;slide.height=Math.floor((maxWidth*imgHeight)/ imgWidth);}
150if(maxHeight>0){slide.width=Math.floor((maxHeight*imgWidth)/ imgHeight);slide.height=maxHeight;}},setIframe:function(slide){var self=this,opts=slide.opts.iframe,$slide=slide.$slide,$iframe;slide.$content=$('<div class="fancybox-content'+
151(opts.preload?' fancybox-is-hidden':'')+'"></div>').css(opts.css).appendTo($slide);$slide.addClass('fancybox-slide--'+slide.contentType);slide.$iframe=$iframe=$(opts.tpl.replace(/\{rnd\}/g,new Date().getTime())).attr(opts.attr).appendTo(slide.$content);if(opts.preload){self.showLoading(slide);$iframe.on('load.fb error.fb',function(e){this.isReady=1;slide.$slide.trigger('refresh');self.afterLoad(slide);});$slide.on('refresh.fb',function(){var $content=slide.$content,frameWidth=opts.css.width,frameHeight=opts.css.height,$contents,$body;if($iframe[0].isReady!==1){return;}
152try{$contents=$iframe.contents();$body=$contents.find('body');}catch(ignore){}
153if($body&&$body.length&&$body.children().length){$slide.css('overflow','visible');$content.css({width:'100%','max-width':'100%',height:'9999px',});if(frameWidth===undefined){frameWidth=Math.ceil(Math.max($body[0].clientWidth,$body.outerWidth(true)));}
154$content.css('width',frameWidth?frameWidth:'').css('max-width','');if(frameHeight===undefined){frameHeight=Math.ceil(Math.max($body[0].clientHeight,$body.outerHeight(true)));}
155$content.css('height',frameHeight?frameHeight:'');$slide.css('overflow','auto');}
156$content.removeClass('fancybox-is-hidden');});}else{self.afterLoad(slide);}
157$iframe.attr('src',slide.src);$slide.one('onReset',function(){try{$(this).find('iframe').hide().unbind().attr('src','//about:blank');}catch(ignore){}
158$(this).off('refresh.fb').empty();slide.isLoaded=false;slide.isRevealed=false;});},setContent:function(slide,content){var self=this;if(self.isClosing){return;}
159self.hideLoading(slide);if(slide.$content){$.fancybox.stop(slide.$content);}
160slide.$slide.empty();if(isQuery(content)&&content.parent().length){if(content.hasClass('fancybox-content')||content.parent().hasClass('fancybox-content')){content.parents('.fancybox-slide').trigger('onReset');}
161slide.$placeholder=$('<div>').hide().insertAfter(content);content.css('display','inline-block');}else if(!slide.hasError){if($.type(content)==='string'){content=$('<div>').append($.trim(content)).contents();}
162if(slide.opts.filter){content=$('<div>').html(content).find(slide.opts.filter);}}
163slide.$slide.one('onReset',function(){$(this).find('video,audio').trigger('pause');if(slide.$placeholder){slide.$placeholder.after(content.removeClass('fancybox-content').hide()).remove();slide.$placeholder=null;}
164if(slide.$smallBtn){slide.$smallBtn.remove();slide.$smallBtn=null;}
165if(!slide.hasError){$(this).empty();slide.isLoaded=false;slide.isRevealed=false;}});$(content).appendTo(slide.$slide);if($(content).is('video,audio')){$(content).addClass('fancybox-video');$(content).wrap('<div></div>');slide.contentType='video';slide.opts.width=slide.opts.width||$(content).attr('width');slide.opts.height=slide.opts.height||$(content).attr('height');}
166slide.$content=slide.$slide.children().filter('div,form,main,video,audio,article,.fancybox-content').first();slide.$content.siblings().hide();if(!slide.$content.length){slide.$content=slide.$slide.wrapInner('<div></div>').children().first();}
167slide.$content.addClass('fancybox-content');slide.$slide.addClass('fancybox-slide--'+slide.contentType);self.afterLoad(slide);},setError:function(slide){slide.hasError=true;slide.$slide.trigger('onReset').removeClass('fancybox-slide--'+slide.contentType).addClass('fancybox-slide--error');slide.contentType='html';this.setContent(slide,this.translate(slide,slide.opts.errorTpl));if(slide.pos===this.currPos){this.isAnimating=false;}},showLoading:function(slide){var self=this;slide=slide||self.current;if(slide&&!slide.$spinner){slide.$spinner=$(self.translate(self,self.opts.spinnerTpl)).appendTo(slide.$slide).hide().fadeIn('fast');}},hideLoading:function(slide){var self=this;slide=slide||self.current;if(slide&&slide.$spinner){slide.$spinner.stop().remove();delete slide.$spinner;}},afterLoad:function(slide){var self=this;if(self.isClosing){return;}
168slide.isLoading=false;slide.isLoaded=true;self.trigger('afterLoad',slide);self.hideLoading(slide);if(slide.opts.smallBtn&&(!slide.$smallBtn||!slide.$smallBtn.length)){slide.$smallBtn=$(self.translate(slide,slide.opts.btnTpl.smallBtn)).appendTo(slide.$content);}
169if(slide.opts.protect&&slide.$content&&!slide.hasError){slide.$content.on('contextmenu.fb',function(e){if(e.button==2){e.preventDefault();}
170return true;});if(slide.type==='image'){$('<div class="fancybox-spaceball"></div>').appendTo(slide.$content);}}
171self.adjustCaption(slide);self.adjustLayout(slide);if(slide.pos===self.currPos){self.updateCursor();}
172self.revealContent(slide);},adjustCaption:function(slide){var self=this,current=slide||self.current,caption=current.opts.caption,preventOverlap=current.opts.preventCaptionOverlap,$caption=self.$refs.caption,$clone,captionH=false;$caption.toggleClass('fancybox-caption--separate',preventOverlap);if(preventOverlap&&caption&&caption.length){if(current.pos!==self.currPos){$clone=$caption.clone().appendTo($caption.parent());$clone.children().eq(0).empty().html(caption);captionH=$clone.outerHeight(true);$clone.empty().remove();}else if(self.$caption){captionH=self.$caption.outerHeight(true);}
173current.$slide.css('padding-bottom',captionH||'');}},adjustLayout:function(slide){var self=this,current=slide||self.current,scrollHeight,marginBottom,inlinePadding,actualPadding;if(current.isLoaded&&current.opts.disableLayoutFix!==true){current.$content.css('margin-bottom','');if(current.$content.outerHeight()>current.$slide.height()+0.5){inlinePadding=current.$slide[0].style['padding-bottom'];actualPadding=current.$slide.css('padding-bottom');if(parseFloat(actualPadding)>0){scrollHeight=current.$slide[0].scrollHeight;current.$slide.css('padding-bottom',0);if(Math.abs(scrollHeight-current.$slide[0].scrollHeight)<1){marginBottom=actualPadding;}
174current.$slide.css('padding-bottom',inlinePadding);}}
175current.$content.css('margin-bottom',marginBottom);}},revealContent:function(slide){var self=this,$slide=slide.$slide,end=false,start=false,isMoved=self.isMoved(slide),isRevealed=slide.isRevealed,effect,effectClassName,duration,opacity;slide.isRevealed=true;effect=slide.opts[self.firstRun?'animationEffect':'transitionEffect'];duration=slide.opts[self.firstRun?'animationDuration':'transitionDuration'];duration=parseInt(slide.forcedDuration===undefined?duration:slide.forcedDuration,10);if(isMoved||slide.pos!==self.currPos||!duration){effect=false;}
176if(effect==='zoom'){if(slide.pos===self.currPos&&duration&&slide.type==='image'&&!slide.hasError&&(start=self.getThumbPos(slide))){end=self.getFitPos(slide);}else{effect='fade';}}
177if(effect==='zoom'){self.isAnimating=true;end.scaleX=end.width / start.width;end.scaleY=end.height / start.height;opacity=slide.opts.zoomOpacity;if(opacity=='auto'){opacity=Math.abs(slide.width / slide.height-start.width / start.height)>0.1;}
178if(opacity){start.opacity=0.1;end.opacity=1;}
179$.fancybox.setTranslate(slide.$content.removeClass('fancybox-is-hidden'),start);forceRedraw(slide.$content);$.fancybox.animate(slide.$content,end,duration,function(){self.isAnimating=false;self.complete();});return;}
180self.updateSlide(slide);if(!effect){slide.$content.removeClass('fancybox-is-hidden');if(!isRevealed&&isMoved&&slide.type==='image'&&!slide.hasError){slide.$content.hide().fadeIn('fast');}
181if(slide.pos===self.currPos){self.complete();}
182return;}
183$.fancybox.stop($slide);effectClassName='fancybox-slide--'+
184(slide.pos>=self.prevPos?'next':'previous')+' fancybox-animated fancybox-fx-'+
185effect;$slide.addClass(effectClassName).removeClass('fancybox-slide--current');slide.$content.removeClass('fancybox-is-hidden');forceRedraw($slide);if(slide.type!=='image'){slide.$content.hide().show(0);}
186$.fancybox.animate($slide,'fancybox-slide--current',duration,function(){$slide.removeClass(effectClassName).css({transform:'',opacity:'',});if(slide.pos===self.currPos){self.complete();}},true);},getThumbPos:function(slide){var rez=false,$thumb=slide.$thumb,thumbPos,btw,brw,bbw,blw;if(!$thumb||!inViewport($thumb[0])){return false;}
187thumbPos=$.fancybox.getTranslate($thumb);btw=parseFloat($thumb.css('border-top-width')||0);brw=parseFloat($thumb.css('border-right-width')||0);bbw=parseFloat($thumb.css('border-bottom-width')||0);blw=parseFloat($thumb.css('border-left-width')||0);rez={top:thumbPos.top+btw,left:thumbPos.left+blw,width:thumbPos.width-brw-blw,height:thumbPos.height-btw-bbw,scaleX:1,scaleY:1,};return thumbPos.width>0&&thumbPos.height>0?rez:false;},complete:function(){var self=this,current=self.current,slides={},$el;if(self.isMoved()||!current.isLoaded){return;}
188if(!current.isComplete){current.isComplete=true;current.$slide.siblings().trigger('onReset');self.preload('inline');forceRedraw(current.$slide);current.$slide.addClass('fancybox-slide--complete');$.each(self.slides,function(key,slide){if(slide.pos>=self.currPos-1&&slide.pos<=self.currPos+1){slides[slide.pos]=slide;}else if(slide){$.fancybox.stop(slide.$slide);slide.$slide.off().remove();}});self.slides=slides;}
189self.isAnimating=false;self.updateCursor();self.trigger('afterShow');if(!!current.opts.video.autoStart){current.$slide.find('video,audio').filter(':visible:first').trigger('play').one('ended',function(){if(Document.exitFullscreen){Document.exitFullscreen();}else if(this.webkitExitFullscreen){this.webkitExitFullscreen();}
190self.next();});}
191if(current.opts.autoFocus&&current.contentType==='html'){$el=current.$content.find('input[autofocus]:enabled:visible:first');if($el.length){$el.trigger('focus');}else{self.focus(null,true);}}
192current.$slide.scrollTop(0).scrollLeft(0);},preload:function(type){var self=this,prev,next;if(self.group.length<2){return;}
193next=self.slides[self.currPos+1];prev=self.slides[self.currPos-1];if(prev&&prev.type===type){self.loadSlide(prev);}
194if(next&&next.type===type){self.loadSlide(next);}},focus:function(e,firstRun){var self=this,focusableStr=['a[href]','area[href]','input:not([disabled]):not([type="hidden"]):not([aria-hidden])','select:not([disabled]):not([aria-hidden])','textarea:not([disabled]):not([aria-hidden])','button:not([disabled]):not([aria-hidden])','iframe','object','embed','video','audio','[contenteditable]','[tabindex]:not([tabindex^="-"])',].join(','),focusableItems,focusedItemIndex;if(self.isClosing){return;}
195if(e||!self.current||!self.current.isComplete){focusableItems=self.$refs.container.find('*:visible');}else{focusableItems=self.current.$slide.find('*:visible'+(firstRun?':not(.fancybox-close-small)':''));}
196focusableItems=focusableItems.filter(focusableStr).filter(function(){return($(this).css('visibility')!=='hidden'&&!$(this).hasClass('disabled'));});if(focusableItems.length){focusedItemIndex=focusableItems.index(document.activeElement);if(e&&e.shiftKey){if(focusedItemIndex<0||focusedItemIndex==0){e.preventDefault();focusableItems.eq(focusableItems.length-1).trigger('focus');}}else{if(focusedItemIndex<0||focusedItemIndex==focusableItems.length-1){if(e){e.preventDefault();}
197focusableItems.eq(0).trigger('focus');}}}else{self.$refs.container.trigger('focus');}},activate:function(){var self=this;$('.fancybox-container').each(function(){var instance=$(this).data('FancyBox');if(instance&&instance.id!==self.id&&!instance.isClosing){instance.trigger('onDeactivate');instance.removeEvents();instance.isVisible=false;}});self.isVisible=true;if(self.current||self.isIdle){self.update();self.updateControls();}
198self.trigger('onActivate');self.addEvents();},close:function(e,d){var self=this,current=self.current,effect,duration,$content,domRect,opacity,start,end;var done=function(){self.cleanUp(e);};if(self.isClosing){return false;}
199self.isClosing=true;if(self.trigger('beforeClose',e)===false){self.isClosing=false;requestAFrame(function(){self.update();});return false;}
200self.removeEvents();$content=current.$content;effect=current.opts.animationEffect;duration=$.isNumeric(d)?d:effect?current.opts.animationDuration:0;current.$slide.removeClass('fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated');if(e!==true){$.fancybox.stop(current.$slide);}else{effect=false;}
201current.$slide.siblings().trigger('onReset').remove();if(duration){self.$refs.container.removeClass('fancybox-is-open').addClass('fancybox-is-closing').css('transition-duration',duration+'ms');}
202self.hideLoading(current);self.hideControls(true);self.updateCursor();if(effect==='zoom'&&!($content&&duration&&current.type==='image'&&!self.isMoved()&&!current.hasError&&(end=self.getThumbPos(current)))){effect='fade';}
203if(effect==='zoom'){$.fancybox.stop($content);domRect=$.fancybox.getTranslate($content);start={top:domRect.top,left:domRect.left,scaleX:domRect.width / end.width,scaleY:domRect.height / end.height,width:end.width,height:end.height,};opacity=current.opts.zoomOpacity;if(opacity=='auto'){opacity=Math.abs(current.width / current.height-end.width / end.height)>0.1;}
204if(opacity){end.opacity=0;}
205$.fancybox.setTranslate($content,start);forceRedraw($content);$.fancybox.animate($content,end,duration,done);return true;}
206if(effect&&duration){$.fancybox.animate(current.$slide.addClass('fancybox-slide--previous').removeClass('fancybox-slide--current'),'fancybox-animated fancybox-fx-'+effect,duration,done);}else{if(e===true){setTimeout(done,duration);}else{done();}}
207return true;},cleanUp:function(e){var self=this,instance,$focus=self.current.opts.$orig,x,y;self.current.$slide.trigger('onReset');self.$refs.container.empty().remove();self.trigger('afterClose',e);if(!!self.current.opts.backFocus){if(!$focus||!$focus.length||!$focus.is(':visible')){$focus=self.$trigger;}
208if($focus&&$focus.length){x=window.scrollX;y=window.scrollY;$focus.trigger('focus');$('html, body').scrollTop(y).scrollLeft(x);}}
209self.current=null;instance=$.fancybox.getInstance();if(instance){instance.activate();}else{$('body').removeClass('fancybox-active compensate-for-scrollbar');$('#fancybox-style-noscroll').remove();}},trigger:function(name,slide){var args=Array.prototype.slice.call(arguments,1),self=this,obj=slide&&slide.opts?slide:self.current,rez;if(obj){args.unshift(obj);}else{obj=self;}
210args.unshift(self);if($.isFunction(obj.opts[name])){rez=obj.opts[name].apply(obj,args);}
211if(rez===false){return rez;}
212if(name==='afterClose'||!self.$refs){$D.trigger(name+'.fb',args);}else{self.$refs.container.trigger(name+'.fb',args);}},updateControls:function(){var self=this,current=self.current,index=current.index,$container=self.$refs.container,$caption=self.$refs.caption,caption=current.opts.caption;current.$slide.trigger('refresh');if(caption&&caption.length){self.$caption=$caption;$caption.children().eq(0).html(caption);}else{self.$caption=null;}
213if(!self.hasHiddenControls&&!self.isIdle){self.showControls();}
214$container.find('[data-fancybox-count]').html(self.group.length);$container.find('[data-fancybox-index]').html(index+1);$container.find('[data-fancybox-prev]').prop('disabled',!current.opts.loop&&index<=0);$container.find('[data-fancybox-next]').prop('disabled',!current.opts.loop&&index>=self.group.length-1);if(current.type==='image'){$container.find('[data-fancybox-zoom]').show().end().find('[data-fancybox-download]').attr('href',current.opts.image.src||current.src).show();}else if(current.opts.toolbar){$container.find('[data-fancybox-download],[data-fancybox-zoom]').hide();}
215if($(document.activeElement).is(':hidden,[disabled]')){self.$refs.container.trigger('focus');}},hideControls:function(andCaption){var self=this,arr=['infobar','toolbar','nav'];if(andCaption||!self.current.opts.preventCaptionOverlap){arr.push('caption');}
216this.$refs.container.removeClass(arr.map(function(i){return'fancybox-show-'+i;}).join(' '));this.hasHiddenControls=true;},showControls:function(){var self=this,opts=self.current?self.current.opts:self.opts,$container=self.$refs.container;self.hasHiddenControls=false;self.idleSecondsCounter=0;$container.toggleClass('fancybox-show-toolbar',!!(opts.toolbar&&opts.buttons)).toggleClass('fancybox-show-infobar',!!(opts.infobar&&self.group.length>1)).toggleClass('fancybox-show-caption',!!self.$caption).toggleClass('fancybox-show-nav',!!(opts.arrows&&self.group.length>1)).toggleClass('fancybox-is-modal',!!opts.modal);},toggleControls:function(){if(this.hasHiddenControls){this.showControls();}else{this.hideControls();}},});$.fancybox={version:'3.5.7',defaults:defaults,getInstance:function(command){var instance=$('.fancybox-container:not(".fancybox-is-closing"):last').data('FancyBox'),args=Array.prototype.slice.call(arguments,1);if(instance instanceof FancyBox){if($.type(command)==='string'){instance[command].apply(instance,args);}else if($.type(command)==='function'){command.apply(instance,args);}
217return instance;}
218return false;},open:function(items,opts,index){return new FancyBox(items,opts,index);},close:function(all){var instance=this.getInstance();if(instance){instance.close();if(all===true){this.close(all);}}},destroy:function(){this.close(true);$D.add('body').off('click.fb-start','**');},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:(function(){var div=document.createElement('div');return(window.getComputedStyle&&window.getComputedStyle(div)&&window.getComputedStyle(div).getPropertyValue('transform')&&!(document.documentMode&&document.documentMode<11));})(),getTranslate:function($el){var domRect;if(!$el||!$el.length){return false;}
219domRect=$el[0].getBoundingClientRect();return{top:domRect.top||0,left:domRect.left||0,width:domRect.width,height:domRect.height,opacity:parseFloat($el.css('opacity')),};},setTranslate:function($el,props){var str='',css={};if(!$el||!props){return;}
220if(props.left!==undefined||props.top!==undefined){str=(props.left===undefined?$el.position().left:props.left)+'px, '+
221(props.top===undefined?$el.position().top:props.top)+'px';if(this.use3d){str='translate3d('+str+', 0px)';}else{str='translate('+str+')';}}
222if(props.scaleX!==undefined&&props.scaleY!==undefined){str+=' scale('+props.scaleX+', '+props.scaleY+')';}else if(props.scaleX!==undefined){str+=' scaleX('+props.scaleX+')';}
223if(str.length){css.transform=str;}
224if(props.opacity!==undefined){css.opacity=props.opacity;}
225if(props.width!==undefined){css.width=props.width;}
226if(props.height!==undefined){css.height=props.height;}
227return $el.css(css);},animate:function($el,to,duration,callback,leaveAnimationName){var self=this,from;if($.isFunction(duration)){callback=duration;duration=null;}
228self.stop($el);from=self.getTranslate($el);$el.on(transitionEnd,function(e){if(e&&e.originalEvent&&(!$el.is(e.originalEvent.target)||e.originalEvent.propertyName=='z-index')){return;}
229self.stop($el);if($.isNumeric(duration)){$el.css('transition-duration','');}
230if($.isPlainObject(to)){if(to.scaleX!==undefined&&to.scaleY!==undefined){self.setTranslate($el,{top:to.top,left:to.left,width:from.width*to.scaleX,height:from.height*to.scaleY,scaleX:1,scaleY:1,});}}else if(leaveAnimationName!==true){$el.removeClass(to);}
231if($.isFunction(callback)){callback(e);}});if($.isNumeric(duration)){$el.css('transition-duration',duration+'ms');}
232if($.isPlainObject(to)){if(to.scaleX!==undefined&&to.scaleY!==undefined){delete to.width;delete to.height;if($el.parent().hasClass('fancybox-slide--image')){$el.parent().addClass('fancybox-is-scaling');}}
233$.fancybox.setTranslate($el,to);}else{$el.addClass(to);}
234$el.data('timer',setTimeout(function(){$el.trigger(transitionEnd);},duration+33));},stop:function($el,callCallback){if($el&&$el.length){clearTimeout($el.data('timer'));if(callCallback){$el.trigger(transitionEnd);}
235$el.off(transitionEnd).css('transition-duration','');$el.parent().removeClass('fancybox-is-scaling');}},};function _run(e,opts){var items=[],index=0,$target,value,instance;if(e&&e.isDefaultPrevented()){return;}
236e.preventDefault();opts=opts||{};if(e&&e.data){opts=mergeOpts(e.data.options,opts);}
237$target=opts.$target||$(e.currentTarget).trigger('blur');instance=$.fancybox.getInstance();if(instance&&instance.$trigger&&instance.$trigger.is($target)){return;}
238if(opts.selector){items=$(opts.selector);}else{value=$target.attr('data-fancybox')||'';if(value){items=e.data?e.data.items:[];items=items.length?items.filter('[data-fancybox="'+value+'"]'):$('[data-fancybox="'+value+'"]');}else{items=[$target];}}
239index=$(items).index($target);if(index<0){index=0;}
240instance=$.fancybox.open(items,opts,index);instance.$trigger=$target;}
241$.fn.fancybox=function(options){var selector;options=options||{};selector=options.selector||false;if(selector){$('body').off('click.fb-start',selector).on('click.fb-start',selector,{options:options,},_run);}else{this.off('click.fb-start').on('click.fb-start',{items:this,options:options,},_run);}
242return this;};$D.on('click.fb-start','[data-fancybox]',_run);$D.on('click.fb-start','[data-fancybox-trigger]',function(e){$('[data-fancybox="'+$(this).attr('data-fancybox-trigger')+'"]').eq($(this).attr('data-fancybox-index')||0).trigger('click.fb-start',{$trigger:$(this),});});(function(){var buttonStr='.fancybox-button',focusStr='fancybox-focus',$pressed=null;$D.on('mousedown mouseup focus blur',buttonStr,function(e){switch(e.type){case'mousedown':$pressed=$(this);break;case'mouseup':$pressed=null;break;case'focusin':$(buttonStr).removeClass(focusStr);if(!$(this).is($pressed)&&!$(this).is('[disabled]')){$(this).addClass(focusStr);}
243break;case'focusout':$(buttonStr).removeClass(focusStr);break;}});})();})(window,document,jQuery);(function($){'use strict';var defaults={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:'transparent',enablejsapi:1,html5:1,},paramPlace:8,type:'iframe',url:'https://www.youtube-nocookie.com/embed/$4',thumb:'https://img.youtube.com/vi/$4/hqdefault.jpg',},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,},paramPlace:3,type:'iframe',url:'//player.vimeo.com/video/$2',},rutube:{matcher:/^.+rutube.ru\/.*\/(.*\/)?([\w]+)(.*)\/?/,params:{frameBorder:0,},paramPlace:1,type:'iframe',url:'//rutube.ru/play/embed/$2',thumb:'https://rutube.ru/api/video/$2/thumbnail/?redirect=1',},vk:{matcher:/^.+(vk.com).+video(?:\?z=video|)(-?\d+)_(\d+)/,params:{autoplay:1,hd:2,js_api:1,frameBorder:0,},paramPlace:1,type:'iframe',url:'https://vk.com/video_ext.php?oid=$2&id=$3',},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:'image',url:'//$1/p/$2/media/?size=l',},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:'iframe',url:function(rez){return('//maps.google.'+
244rez[2]+'/?ll='+
245(rez[9]?rez[9]+'&z='+
246Math.floor(rez[10])+
247(rez[12]?rez[12].replace(/^\//,'&'):''):rez[12]+'').replace(/\?/,'&')+'&output='+
248(rez[12]&&rez[12].indexOf('layer=c')>0?'svembed':'embed'));},},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:'iframe',url:function(rez){return('//maps.google.'+
249rez[2]+'/maps?q='+
250rez[5].replace('query=','q=').replace('api=1','')+'&output=embed');},},};var format=function(url,rez,params){if(!url){return;}
251params=params||'';if($.type(params)==='object'){params=$.param(params,true);}
252$.each(rez,function(key,value){url=url.replace('$'+key,value||'');});if(params.length){url+=(url.indexOf('?')>0?'&':'?')+params;}
253return url;};$(document).on('objectNeedsType.fb',function(e,instance,item){var url=item.src||'',type=false,media,thumb,rez,params,urlParam
253s,paramObj,provider;media=$.extend(true,{},defaults,item.opts.media);$.each(media,function(providerName,providerOpts){rez=url.match(providerOpts.matcher);if(!rez){return;}
254type=providerOpts.type;provider=providerName;paramObj={};if(providerOpts.paramPlace&&rez[providerOpts.paramPlace]){urlParams=rez[providerOpts.paramPlace];if(urlParams[0]=='?'){urlParams=urlParams.substring(1);}
255urlParams=urlParams.split('&');for(var m=0;m<urlParams.length;++m){var p=urlParams[m].split('=',2);if(p.length==2){paramObj[p[0]]=decodeURIComponent(p[1].replace(/\+/g,' '));}}}
256params=$.extend(true,{},providerOpts.params,item.opts[providerName],paramObj);url=$.type(providerOpts.url)==='function'?providerOpts.url.call(this,rez,params,item):format(providerOpts.url,rez,params);thumb=$.type(providerOpts.thumb)==='function'?providerOpts.thumb.call(this,rez,params,item):format(providerOpts.thumb,rez);if(providerName==='youtube'){url=url.replace(/&t=((\d+)m)?(\d+)s/,function(match,p1,m,s){return'&start='+((m?parseInt(m,10)*60:0)+parseInt(s,10));});}else if(providerName==='vimeo'){url=url.replace('&%23','#');}else if(providerName==='rutube'){url=url.replace('&%23','#');}
257return false;});if(type){if(!item.opts.thumb&&!(item.opts.$thumb&&item.opts.$thumb.length)){item.opts.thumb=thumb;}
258if(type==='iframe'){item.opts=$.extend(true,item.opts,{iframe:{preload:false,attr:{scrolling:'no',},},});}
259$.extend(item,{type:type,src:url,origSrc:item.src,contentSource:provider,contentType:type==='image'?'image':provider=='gmap_place'||provider=='gmap_search'?'map':'video',});}else if(url){item.type=item.opts.defaultType;}});var VideoAPILoader={youtube:{src:'https://www.youtube.com/iframe_api',class:'YT',loading:false,loaded:false,},vimeo:{src:'https://player.vimeo.com/api/player.js',class:'Vimeo',loading:false,loaded:false,},rutube:{src:'https://cdn.jsdelivr.net/gh/evikza/rutube-player@178175923bd50cc759e2c3055c6b502e56b54e92/dist/fb.rt.js',class:'Rutube',loading:false,loaded:false,},vk:{src:'https://vk.com/js/api/videoplayer.js',class:'VK',loading:false,loaded:false,},load:function(vendor){var _this=this,script;if(this[vendor].loaded){setTimeout(function(){_this.done(vendor);});return;}
260if(this[vendor].loading){return;}
261this[vendor].loading=true;script=document.createElement('script');script.type='text/javascript';script.src=this[vendor].src;if(vendor==='youtube'){window.onYouTubeIframeAPIReady=function(){_this[vendor].loaded=true;_this.done(vendor);};}else{script.onload=function(){_this[vendor].loaded=true;_this.done(vendor);};}
262document.body.appendChild(script);},done:function(vendor){var instance,$el,player;if(vendor==='youtube'){delete window.onYouTubeIframeAPIReady;}
263instance=$.fancybox.getInstance();if(instance){$el=instance.current.$content.find('iframe');if(vendor==='youtube'&&YT!==undefined&&YT){player=new YT.Player($el.attr('id'),{events:{onStateChange:function(e){if(e.data==0){instance.next();}},},});}else if(vendor==='vimeo'&&Vimeo!==undefined&&Vimeo){player=new Vimeo.Player($el);player.on('ended',function(){instance.next();});}else if(vendor==='rutube'){player=new Rutube();player.Player($el.attr('id'),{events:{onReady:function onPlayerReady(){setTimeout(player.play(),700);},onStateChange:function onPlayerStateChange(event){if(event.playerState.ENDED){instance.next();}},},});}else if(vendor==='vk'){player=VK.VideoPlayer($el[0]);player.on('ended',function(){instance.next();});}}},};$(document).on({'afterShow.fb':function(e,instance,current){if(instance.group.length>1&&(current.contentSource==='youtube'||current.contentSource==='vimeo'||current.contentSource==='rutube'||current.contentSource==='vk')){VideoAPILoader.load(current.contentSource);}else if(current.contentSource==='rutube'){VideoAPILoader.load(current.contentSource);}},});})(jQuery);(function(window,document,$){'use strict';var requestAFrame=(function(){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(callback){return window.setTimeout(callback,1000 / 60);});})();var cancelAFrame=(function(){return(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(id){window.clearTimeout(id);});})();var getPointerXY=function(e){var result=[];e=e.originalEvent||e||window.e;e=e.touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e];for(var key in e){if(e[key].pageX){result.push({x:e[key].pageX,y:e[key].pageY,});}else if(e[key].clientX){result.push({x:e[key].clientX,y:e[key].clientY,});}}
264return result;};var distance=function(point2,point1,what){if(!point1||!point2){return 0;}
265if(what==='x'){return point2.x-point1.x;}else if(what==='y'){return point2.y-point1.y;}
266return Math.sqrt(Math.pow(point2.x-point1.x,2)+Math.pow(point2.y-point1.y,2));};
vendor: 32,753 bytes, lines 266-413
266var isClickable=function($el){if($el.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||$.isFunction($el.get(0).onclick)||$el.data('selectable')){return true;}
267for(var i=0,atts=$el[0].attributes,n=atts.length;i<n;i++){if(atts[i].nodeName.substr(0,14)==='data-fancybox-'){return true;}}
268return false;};var hasScrollbars=function(el){var overflowY=window.getComputedStyle(el)['overflow-y'],overflowX=window.getComputedStyle(el)['overflow-x'],vertical=(overflowY==='scroll'||overflowY==='auto')&&el.scrollHeight>el.clientHeight,horizontal=(overflowX==='scroll'||overflowX==='auto')&&el.scrollWidth>el.clientWidth;return vertical||horizontal;};var isScrollable=function($el){var rez=false;while(true){rez=hasScrollbars($el.get(0));if(rez){break;}
269$el=$el.parent();if(!$el.length||$el.hasClass('fancybox-stage')||$el.is('body')){break;}}
270return rez;};var Guestures=function(instance){var self=this;self.instance=instance;self.$bg=instance.$refs.bg;self.$stage=instance.$refs.stage;self.$container=instance.$refs.container;self.destroy();self.$container.on('touchstart.fb.touch mousedown.fb.touch',$.proxy(self,'ontouchstart'));};Guestures.prototype.destroy=function(){var self=this;self.$container.off('.fb.touch');$(document).off('.fb.touch');if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
271if(self.tapped){clearTimeout(self.tapped);self.tapped=null;}};Guestures.prototype.ontouchstart=function(e){var self=this,$target=$(e.target),instance=self.instance,current=instance.current,$slide=current.$slide,$content=current.$content,isTouchDevice=e.type=='touchstart';if(isTouchDevice){self.$container.off('mousedown.fb.touch');}
272if(e.originalEvent&&e.originalEvent.button==2){return;}
273if(!$slide.length||!$target.length||isClickable($target)||isClickable($target.parent())){return;}
274if(!$target.is('img')&&e.originalEvent.clientX>$target[0].clientWidth+$target.offset().left){return;}
275if(!current||instance.isAnimating||current.$slide.hasClass('fancybox-animated')){e.stopPropagation();e.preventDefault();return;}
276self.realPoints=self.startPoints=getPointerXY(e);if(!self.startPoints.length){return;}
277if(current.touch){e.stopPropagation();}
278self.startEvent=e;self.canTap=true;self.$target=$target;self.$content=$content;self.opts=current.opts.touch;self.isPanning=false;self.isSwiping=false;self.isZooming=false;self.isScrolling=false;self.canPan=instance.canPan();self.startTime=new Date().getTime();self.distanceX=self.distanceY=self.distance=0;self.canvasWidth=Math.round($slide[0].clientWidth);self.canvasHeight=Math.round($slide[0].clientHeight);self.contentLastPos=null;self.contentStartPos=$.fancybox.getTranslate(self.$content)||{top:0,left:0,};self.sliderStartPos=$.fancybox.getTranslate($slide);self.stagePos=$.fancybox.getTranslate(instance.$refs.stage);self.sliderStartPos.top-=self.stagePos.top;self.sliderStartPos.left-=self.stagePos.left;self.contentStartPos.top-=self.stagePos.top;self.contentStartPos.left-=self.stagePos.left;$(document).off('.fb.touch').on(isTouchDevice?'touchend.fb.touch touchcancel.fb.touch':'mouseup.fb.touch mouseleave.fb.touch',$.proxy(self,'ontouchend')).on(isTouchDevice?'touchmove.fb.touch':'mousemove.fb.touch',$.proxy(self,'ontouchmove'));if($.fancybox.isMobile){document.addEventListener('scroll',self.onscroll,true);}
279if(!(self.opts||self.canPan)||!($target.is(self.$stage)||self.$stage.find($target).length)){if($target.is('.fancybox-image')){e.preventDefault();}
280if(!($.fancybox.isMobile&&$target.parents('.fancybox-caption').length)){return;}}
281self.isScrollable=isScrollable($target)||isScrollable($target.parent());if(!($.fancybox.isMobile&&self.isScrollable)){e.preventDefault();}
282if(self.startPoints.length===1||current.hasError){if(self.canPan){$.fancybox.stop(self.$content);self.isPanning=true;}else{self.isSwiping=true;}
283self.$container.addClass('fancybox-is-grabbing');}
284if(self.startPoints.length===2&&current.type==='image'&&(current.isLoaded||current.$ghost)){self.canTap=false;self.isSwiping=false;self.isPanning=false;self.isZooming=true;$.fancybox.stop(self.$content);self.centerPointStartX=(self.startPoints[0].x+self.startPoints[1].x)*0.5-
285$(window).scrollLeft();self.centerPointStartY=(self.startPoints[0].y+self.startPoints[1].y)*0.5-
286$(window).scrollTop();self.percentageOfImageAtPinchPointX=(self.centerPointStartX-self.contentStartPos.left)/
287self.contentStartPos.width;self.percentageOfImageAtPinchPointY=(self.centerPointStartY-self.contentStartPos.top)/
288self.contentStartPos.height;self.startDistanceBetweenFingers=distance(self.startPoints[0],self.startPoints[1]);}};Guestures.prototype.onscroll=function(e){var self=this;self.isScrolling=true;document.removeEventListener('scroll',self.onscroll,true);};Guestures.prototype.ontouchmove=function(e){var self=this;if(e.originalEvent.buttons!==undefined&&e.originalEvent.buttons===0){self.ontouchend(e);return;}
289if(self.isScrolling){self.canTap=false;return;}
290self.newPoints=getPointerXY(e);if(!(self.opts||self.canPan)||!self.newPoints.length||!self.newPoints.length){return;}
291if(!(self.isSwiping&&self.isSwiping===true)){e.preventDefault();}
292self.distanceX=distance(self.newPoints[0],self.startPoints[0],'x');self.distanceY=distance(self.newPoints[0],self.startPoints[0],'y');self.distance=distance(self.newPoints[0],self.startPoints[0]);if(self.distance>0){if(self.isSwiping){self.onSwipe(e);}else if(self.isPanning){self.onPan();}else if(self.isZooming){self.onZoom();}}};Guestures.prototype.onSwipe=function(e){var self=this,instance=self.instance,swiping=self.isSwiping,left=self.sliderStartPos.left||0,angle;if(swiping===true){if(Math.abs(self.distance)>10){self.canTap=false;if(instance.group.length<2&&self.opts.vertical){self.isSwiping='y';}else if(instance.isDragging||self.opts.vertical===false||(self.opts.vertical==='auto'&&$(window).width()>800)){self.isSwiping='x';}else{angle=Math.abs((Math.atan2(self.distanceY,self.distanceX)*180)/ Math.PI);self.isSwiping=angle>45&&angle<135?'y':'x';}
293if(self.isSwiping==='y'&&$.fancybox.isMobile&&self.isScrollable){self.isScrolling=true;return;}
294instance.isDragging=self.isSwiping;self.startPoints=self.newPoints;$.each(instance.slides,function(index,slide){var slidePos,stagePos;$.fancybox.stop(slide.$slide);slidePos=$.fancybox.getTranslate(slide.$slide);stagePos=$.fancybox.getTranslate(instance.$refs.stage);slide.$slide.css({transform:'',opacity:'','transition-duration':'',}).removeClass('fancybox-animated').removeClass(function(index,className){return(className.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(' ');});if(slide.pos===instance.current.pos){self.sliderStartPos.top=slidePos.top-stagePos.top;self.sliderStartPos.left=slidePos.left-stagePos.left;}
295$.fancybox.setTranslate(slide.$slide,{top:slidePos.top-stagePos.top,left:slidePos.left-stagePos.left,});});if(instance.SlideShow&&instance.SlideShow.isActive){instance.SlideShow.stop();}}
296return;}
297if(swiping=='x'){if(self.distanceX>0&&(self.instance.group.length<2||(self.instance.current.index===0&&!self.instance.current.opts.loop))){left=left+Math.pow(self.distanceX,0.8);}else if(self.distanceX<0&&(self.instance.group.length<2||(self.instance.current.index===self.instance.group.length-1&&!self.instance.current.opts.loop))){left=left-Math.pow(-self.distanceX,0.8);}else{left=left+self.distanceX;}}
298self.sliderLastPos={top:swiping=='x'?0:self.sliderStartPos.top+self.distanceY,left:left,};if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
299self.requestId=requestAFrame(function(){if(self.sliderLastPos){$.each(self.instance.slides,function(index,slide){var pos=slide.pos-self.instance.currPos;$.fancybox.setTranslate(slide.$slide,{top:self.sliderLastPos.top,left:self.sliderLastPos.left+
300pos*self.canvasWidth+
301pos*slide.opts.gutter,});});self.$container.addClass('fancybox-is-sliding');}});};Guestures.prototype.onPan=function(){var self=this;if(distance(self.newPoints[0],self.realPoints[0])<($.fancybox.isMobile?10:5)){self.startPoints=self.newPoints;return;}
302self.canTap=false;self.contentLastPos=self.limitMovement();if(self.requestId){cancelAFrame(self.requestId);}
303self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos);});};Guestures.prototype.limitMovement=function(){var self=this;var canvasWidth=self.canvasWidth;var canvasHeight=self.canvasHeight;var distanceX=self.distanceX;var distanceY=self.distanceY;var contentStartPos=self.contentStartPos;var currentOffsetX=contentStartPos.left;var currentOffsetY=contentStartPos.top;var currentWidth=contentStartPos.width;var currentHeight=contentStartPos.height;var minTranslateX,minTranslateY,maxTranslateX,maxTranslateY,newOffsetX,newOffsetY;if(currentWidth>canvasWidth){newOffsetX=currentOffsetX+distanceX;}else{newOffsetX=currentOffsetX;}
304newOffsetY=currentOffsetY+distanceY;minTranslateX=Math.max(0,canvasWidth*0.5-currentWidth*0.5);minTranslateY=Math.max(0,canvasHeight*0.5-currentHeight*0.5);maxTranslateX=Math.min(canvasWidth-currentWidth,canvasWidth*0.5-currentWidth*0.5);maxTranslateY=Math.min(canvasHeight-currentHeight,canvasHeight*0.5-currentHeight*0.5);if(distanceX>0&&newOffsetX>minTranslateX){newOffsetX=minTranslateX-
3051+
306Math.pow(-minTranslateX+currentOffsetX+distanceX,0.8)||0;}
307if(distanceX<0&&newOffsetX<maxTranslateX){newOffsetX=maxTranslateX+
3081-
309Math.pow(maxTranslateX-currentOffsetX-distanceX,0.8)||0;}
310if(distanceY>0&&newOffsetY>minTranslateY){newOffsetY=minTranslateY-
3111+
312Math.pow(-minTranslateY+currentOffsetY+distanceY,0.8)||0;}
313if(distanceY<0&&newOffsetY<maxTranslateY){newOffsetY=maxTranslateY+
3141-
315Math.pow(maxTranslateY-currentOffsetY-distanceY,0.8)||0;}
316return{top:newOffsetY,left:newOffsetX,};};Guestures.prototype.limitPosition=function(newOffsetX,newOffsetY,newWidth,newHeight){var self=this;var canvasWidth=self.canvasWidth;var canvasHeight=self.canvasHeight;if(newWidth>canvasWidth){newOffsetX=newOffsetX>0?0:newOffsetX;newOffsetX=newOffsetX<canvasWidth-newWidth?canvasWidth-newWidth:newOffsetX;}else{newOffsetX=Math.max(0,canvasWidth / 2-newWidth / 2);}
317if(newHeight>canvasHeight){newOffsetY=newOffsetY>0?0:newOffsetY;newOffsetY=newOffsetY<canvasHeight-newHeight?canvasHeight-newHeight:newOffsetY;}else{newOffsetY=Math.max(0,canvasHeight / 2-newHeight / 2);}
318return{top:newOffsetY,left:newOffsetX,};};Guestures.prototype.onZoom=function(){var self=this;var contentStartPos=self.contentStartPos;var currentWidth=contentStartPos.width;var currentHeight=contentStartPos.height;var currentOffsetX=contentStartPos.left;var currentOffsetY=contentStartPos.top;var endDistanceBetweenFingers=distance(self.newPoints[0],self.newPoints[1]);var pinchRatio=endDistanceBetweenFingers / self.startDistanceBetweenFingers;var newWidth=Math.floor(currentWidth*pinchRatio);var newHeight=Math.floor(currentHeight*pinchRatio);var translateFromZoomingX=(currentWidth-newWidth)*self.percentageOfImageAtPinchPointX;var translateFromZoomingY=(currentHeight-newHeight)*self.percentageOfImageAtPinchPointY;var centerPointEndX=(self.newPoints[0].x+self.newPoints[1].x)/ 2-$(window).scrollLeft();var centerPointEndY=(self.newPoints[0].y+self.newPoints[1].y)/ 2-$(window).scrollTop();var translateFromTranslatingX=centerPointEndX-self.centerPointStartX;var translateFromTranslatingY=centerPointEndY-self.centerPointStartY;var newOffsetX=currentOffsetX+(translateFromZoomingX+translateFromTranslatingX);var newOffsetY=currentOffsetY+(translateFromZoomingY+translateFromTranslatingY);var newPos={top:newOffsetY,left:newOffsetX,scaleX:pinchRatio,scaleY:pinchRatio,};self.canTap=false;self.newWidth=newWidth;self.newHeight=newHeight;self.contentLastPos=newPos;if(self.requestId){cancelAFrame(self.requestId);}
319self.requestId=requestAFrame(function(){$.fancybox.setTranslate(self.$content,self.contentLastPos);});};Guestures.prototype.ontouchend=function(e){var self=this;var swiping=self.isSwiping;var panning=self.isPanning;var zooming=self.isZooming;var scrolling=self.isScrolling;self.endPoints=getPointerXY(e);self.dMs=Math.max(new Date().getTime()-self.startTime,1);self.$container.removeClass('fancybox-is-grabbing');$(document).off('.fb.touch');document.removeEventListener('scroll',self.onscroll,true);if(self.requestId){cancelAFrame(self.requestId);self.requestId=null;}
320self.isSwiping=false;self.isPanning=false;self.isZooming=false;self.isScrolling=false;self.instance.isDragging=false;if(self.canTap){return self.onTap(e);}
321self.speed=100;self.velocityX=(self.distanceX / self.dMs)*0.5;self.velocityY=(self.distanceY / self.dMs)*0.5;if(panning){self.endPanning();}else if(zooming){self.endZooming();}else{self.endSwiping(swiping,scrolling);}
322return;};Guestures.prototype.endSwiping=function(swiping,scrolling){var self=this,ret=false,len=self.instance.group.length,distanceX=Math.abs(self.distanceX),canAdvance=swiping=='x'&&len>1&&((self.dMs>130&&distanceX>10)||distanceX>50),speedX=300;self.sliderLastPos=null;if(swiping=='y'&&!scrolling&&Math.abs(self.distanceY)>50){$.fancybox.animate(self.instance.current.$slide,{top:self.sliderStartPos.top+self.distanceY+self.velocityY*150,opacity:0,},200);ret=self.instance.close(true,250);}else if(canAdvance&&self.distanceX>0){ret=self.instance.previous(speedX);}else if(canAdvance&&self.distanceX<0){ret=self.instance.next(speedX);}
323if(ret===false&&(swiping=='x'||swiping=='y')){self.instance.centerSlide(200);}
324self.$container.removeClass('fancybox-is-sliding');};Guestures.prototype.endPanning=function(){var self=this,newOffsetX,newOffsetY,newPos;if(!self.contentLastPos){return;}
325if(self.opts.momentum===false||self.dMs>350){newOffsetX=self.contentLastPos.left;newOffsetY=self.contentLastPos.top;}else{newOffsetX=self.contentLastPos.left+self.velocityX*500;newOffsetY=self.contentLastPos.top+self.velocityY*500;}
326newPos=self.limitPosition(newOffsetX,newOffsetY,self.contentStartPos.width,self.contentStartPos.height);newPos.width=self.contentStartPos.width;newPos.height=self.contentStartPos.height;$.fancybox.animate(self.$content,newPos,366);};Guestures.prototype.endZooming=function(){var self=this;var current=self.instance.current;var newOffsetX,newOffsetY,newPos,reset;var newWidth=self.newWidth;var newHeight=self.newHeight;if(!self.contentLastPos){return;}
327newOffsetX=self.contentLastPos.left;newOffsetY=self.contentLastPos.top;reset={top:newOffsetY,left:newOffsetX,width:newWidth,height:newHeight,scaleX:1,scaleY:1,};$.fancybox.setTranslate(self.$content,reset);if(newWidth<self.canvasWidth&&newHeight<self.canvasHeight){self.instance.scaleToFit(150);}else if(newWidth>current.width||newHeight>current.height){self.instance.scaleToActual(self.centerPointStartX,self.centerPointStartY,150);}else{newPos=self.limitPosition(newOffsetX,newOffsetY,newWidth,newHeight);$.fancybox.animate(self.$content,newPos,150);}};Guestures.prototype.onTap=function(e){var self=this;var $target=$(e.target);var instance=self.instance;var current=instance.current;var endPoints=(e&&getPointerXY(e))||self.startPoints;var tapX=endPoints[0]?endPoints[0].x-$(window).scrollLeft()-self.stagePos.left:0;var tapY=endPoints[0]?endPoints[0].y-$(window).scrollTop()-self.stagePos.top:0;var where;var process=function(prefix){var action=current.opts[prefix];if($.isFunction(action)){action=action.apply(instance,[current,e]);}
328if(!action){return;}
329switch(action){case'close':instance.close(self.startEvent);break;case'toggleControls':instance.toggleControls();break;case'next':instance.next();break;case'nextOrClose':if(instance.group.length>1){instance.next();}else{instance.close(self.startEvent);}
330break;case'zoom':if(current.type=='image'&&(current.isLoaded||current.$ghost)){if(instance.canPan()){instance.scaleToFit();}else if(instance.isScaledDown()){instance.scaleToActual(tapX,tapY);}else if(instance.group.length<2){instance.close(self.startEvent);}}
331break;}};if(e.originalEvent&&e.originalEvent.button==2){return;}
332if(!$target.is('img')&&tapX>$target[0].clientWidth+$target.offset().left){return;}
333if($target.is('.fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container')){where='Outside';}else if($target.is('.fancybox-slide')){where='Slide';}else if(instance.current.$content&&instance.current.$content.find($target).addBack().filter($target).length){where='Content';}else{return;}
334if(self.tapped){clearTimeout(self.tapped);self.tapped=null;if(Math.abs(tapX-self.tapX)>50||Math.abs(tapY-self.tapY)>50){return this;}
335process('dblclick'+where);}else{self.tapX=tapX;self.tapY=tapY;if(current.opts['dblclick'+where]&&current.opts['dblclick'+where]!==current.opts['click'+where]){self.tapped=setTimeout(function(){self.tapped=null;if(!instance.isAnimating){process('click'+where);}},500);}else{process('click'+where);}}
336return this;};$(document).on('onActivate.fb',function(e,instance){if(instance&&!instance.Guestures){instance.Guestures=new Guestures(instance);}}).on('beforeClose.fb',function(e,instance){if(instance&&instance.Guestures){instance.Guestures.destroy();}});})(window,document,jQuery);(function(document,$){'use strict';$.extend(true,$.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg>'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg>'+'</button>',},slideShow:{autoStart:false,speed:3000,progress:true,},});var SlideShow=function(instance){this.instance=instance;this.init();};$.extend(SlideShow.prototype,{timer:null,isActive:false,$button:null,init:function(){var self=this,instance=self.instance,opts=instance.group[instance.currIndex].opts.slideShow;self.$button=instance.$refs.toolbar.find('[data-fancybox-play]').on('click',function(){self.toggle();});if(instance.group.length<2||!opts){self.$button.hide();}else if(opts.progress){self.$progress=$('<div class="fancybox-progress"></div>').appendTo(instance.$refs.inner);}},set:function(force){var self=this,instance=self.instance,current=instance.current;if(current&&(force===true||current.opts.loop||instance.currIndex<instance.group.length-1)){if(self.isActive&&current.contentType!=='video'){if(self.$progress){$.fancybox.animate(self.$progress.show(),{scaleX:1,},current.opts.slideShow.speed);}
337self.timer=setTimeout(function(){if(!instance.current.opts.loop&&instance.current.index==instance.group.length-1){instance.jumpTo(0);}else{instance.next();}},current.opts.slideShow.speed);}}else{self.stop();instance.idleSecondsCounter=0;instance.showControls();}},clear:function(){var self=this;clearTimeout(self.timer);self.timer=null;if(self.$progress){self.$progress.removeAttr('style').hide();}},start:function(){var self=this,current=self.instance.current;if(current){self.$button.attr('title',(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_STOP).removeClass('fancybox-button--play').addClass('fancybox-button--pause');self.isActive=true;if(current.isComplete){self.set(true);}
338self.instance.trigger('onSlideShowChange',true);}},stop:function(){var self=this,current=self.instance.current;self.clear();self.$button.attr('title',(current.opts.i18n[current.opts.lang]||current.opts.i18n.en).PLAY_START).removeClass('fancybox-button--pause').addClass('fancybox-button--play');self.isActive=false;self.instance.trigger('onSlideShowChange',false);if(self.$progress){self.$progress.removeAttr('style').hide();}},toggle:function(){var self=this;if(self.isActive){self.stop();}else{self.start();}},});$(document).on({'onInit.fb':function(e,instance){if(instance&&!instance.SlideShow){instance.SlideShow=new SlideShow(instance);}},'beforeShow.fb':function(e,instance,current,firstRun){var SlideShow=instance&&instance.SlideShow;if(firstRun){if(SlideShow&&current.opts.slideShow.autoStart){SlideShow.start();}}else if(SlideShow&&SlideShow.isActive){SlideShow.clear();}},'afterShow.fb':function(e,instance,current){var SlideShow=instance&&instance.SlideShow;if(SlideShow&&SlideShow.isActive){SlideShow.set();}},'afterKeydown.fb':function(e,instance,current,keypress,keycode){var SlideShow=instance&&instance.SlideShow;if(SlideShow&&current.opts.slideShow&&(keycode===80||keycode===32)&&!$(document.activeElement).is('button,a,input')){keypress.preventDefault();SlideShow.toggle();}},'beforeClose.fb onDeactivate.fb':function(e,instance){var SlideShow=instance&&instance.SlideShow;if(SlideShow){SlideShow.stop();}},});$(document).on('visibilitychange',function(){var instance=$.fancybox.getInstance(),SlideShow=instance&&instance.SlideShow;if(SlideShow&&SlideShow.isActive){if(document.hidden){SlideShow.clear();}else{SlideShow.set();}}});})(document,jQuery);(function(document,$){'use strict';var fn=(function(){var fnMap=[['requestFullscreen','exitFullscreen','fullscreenElement','fullscreenEnabled','fullscreenchange','fullscreenerror',],['webkitRequestFullscreen','webkitExitFullscreen','webkitFullscreenElement','webkitFullscreenEnabled','webkitfullscreenchange','webkitfullscreenerror',],['webkitRequestFullScreen','webkitCancelFullScreen','webkitCurrentFullScreenElement','webkitCancelFullScreen','webkitfullscreenchange','webkitfullscreenerror',],['mozRequestFullScreen','mozCancelFullScreen','mozFullScreenElement','mozFullScreenEnabled','mozfullscreenchange','mozfullscreenerror',],['msRequestFullscreen','msExitFullscreen','msFullscreenElement','msFullscreenEnabled','MSFullscreenChange','MSFullscreenError',],];var ret={};for(var i=0;i<fnMap.length;i++){var val=fnMap[i];if(val&&val[1]in document){for(var j=0;j<val.length;j++){ret[fnMap[0][j]]=val[j];}
339return ret;}}
340return false;})();if(fn){var FullScreen={request:function(elem){elem=elem||document.documentElement;elem[fn.requestFullscreen](elem.ALLOW_KEYBOARD_INPUT);},exit:function(){document[fn.exitFullscreen]();},toggle:function(elem){elem=elem||document.documentElement;if(this.isFullscreen()){this.exit();}else{this.request(elem);}},isFullscreen:function(){return Boolean(document[fn.fullscreenElement]);},enabled:function(){return Boolean(document[fn.fullscreenEnabled]);},};$.extend(true,$.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg>'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg>'+'</button>',},fullScreen:{autoStart:false,},});$(document).on(fn.fullscreenchange,function(){var isFullscreen=FullScreen.isFullscreen(),instance=$.fancybox.getInstance();if(instance){if(instance.current&&instance.current.type==='image'&&instance.isAnimating){instance.isAnimating=false;instance.update(true,true,0);if(!instance.isComplete){instance.complete();}}
341instance.trigger('onFullscreenChange',isFullscreen);instance.$refs.container.toggleClass('fancybox-is-fullscreen',isFullscreen);instance.$refs.toolbar.find('[data-fancybox-fullscreen]').toggleClass('fancybox-button--fsenter',!isFullscreen).toggleClass('fancybox-button--fsexit',isFullscreen);}});}
342$(document).on({'onInit.fb':function(e,instance){var $container;if(!fn){instance.$refs.toolbar.find('[data-fancybox-fullscreen]').remove();return;}
343if(instance&&instance.group[instance.currIndex].opts.fullScreen){$container=instance.$refs.container;$container.on('click.fb-fullscreen','[data-fancybox-fullscreen]',function(e){e.stopPropagation();e.preventDefault();FullScreen.toggle();});if(instance.opts.fullScreen&&instance.opts.fullScreen.autoStart===true){FullScreen.request();}
344instance.FullScreen=FullScreen;}else if(instance){instance.$refs.toolbar.find('[data-fancybox-fullscreen]').hide();}},'afterKeydown.fb':function(e,instance,current,keypress,keycode){if(instance&&instance.FullScreen&&keycode===70){keypress.preventDefault();instance.FullScreen.toggle();}},'beforeClose.fb':function(e,instance){if(instance&&instance.FullScreen&&instance.$refs.container.hasClass('fancybox-is-fullscreen')){FullScreen.exit();}},});})(document,jQuery);(function(document,$){'use strict';var CLASS='fancybox-thumbs',CLASS_ACTIVE=CLASS+'-active';$.fancybox.defaults=$.extend(true,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}">'+'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg>'+'</button>',},thumbs:{autoStart:false,hideOnClose:true,parentEl:'.fancybox-container',axis:'y',},},$.fancybox.defaults);var FancyThumbs=function(instance){this.init(instance);};$.extend(FancyThumbs.prototype,{$button:null,$grid:null,$list:null,isVisible:false,isActive:false,init:function(instance){var self=this,group=instance.group,enabled=0;self.instance=instance;self.opts=group[instance.currIndex].opts.thumbs;instance.Thumbs=self;self.$button=instance.$refs.toolbar.find('[data-fancybox-thumbs]');for(var i=0,len=group.length;i<len;i++){if(group[i].thumb){enabled++;}
345if(enabled>1){break;}}
346if(enabled>1&&!!self.opts){self.$button.removeAttr('style').on('click',function(){self.toggle();});self.isActive=true;}else{self.$button.hide();}},create:function(){var self=this,instance=self.instance,parentEl=self.opts.parentEl,list=[],src;if(!self.$grid){self.$grid=$('<div class="'+
347CLASS+' '+
348CLASS+'-'+
349self.opts.axis+'"></div>').appendTo(instance.$refs.container.find(parentEl).addBack().filter(parentEl));self.$grid.on('click','a',function(){instance.jumpTo($(this).attr('data-index'));});}
350if(!self.$list){self.$list=$('<div class="'+CLASS+'__list">').appendTo(self.$grid);}
351$.each(instance.group,function(i,item){src=item.thumb;if(!src&&item.type==='image'){src=item.src;}
352list.push('<a href="javascript:;" tabindex="0" data-index="'+
353i+'"'+
354(src&&src.length?' style="background-image:url('+src+')"':'class="fancybox-thumbs-missing"')+'></a>');});self.$list[0].innerHTML=list.join('');if(self.opts.axis==='x'){self.$list.width(parseInt(self.$grid.css('padding-right'),10)+
355instance.group.length*self.$list.children().eq(0).outerWidth(true));}},focus:function(duration){var self=this,$list=self.$list,$grid=self.$grid,thumb,thumbPos;if(!self.instance.current){return;}
356thumb=$list.children().removeClass(CLASS_ACTIVE).filter('[data-index="'+self.instance.current.index+'"]').addClass(CLASS_ACTIVE);thumbPos=thumb.position();if(self.opts.axis==='y'&&(thumbPos.top<0||thumbPos.top>$list.height()-thumb.outerHeight())){$list.stop().animate({scrollTop:$list.scrollTop()+thumbPos.top,},duration);}else if(self.opts.axis==='x'&&(thumbPos.left<$grid.scrollLeft()||thumbPos.left>$grid.scrollLeft()+($grid.width()-thumb.outerWidth()))){$list.parent().stop().animate({scrollLeft:thumbPos.left,},duration);}},update:function(){var that=this;that.instance.$refs.container.toggleClass('fancybox-show-thumbs',this.isVisible);if(that.isVisible){if(!that.$grid){that.create();}
357that.instance.trigger('onThumbsShow');that.focus(0);}else if(that.$grid){that.instance.trigger('onThumbsHide');}
358that.instance.update();},hide:function(){this.isVisible=false;this.update();},show:function(){this.isVisible=true;this.update();},toggle:function(){this.isVisible=!this.isVisible;this.update();},});$(document).on({'onInit.fb':function(e,instance){var Thumbs;if(instance&&!instance.Thumbs){Thumbs=new FancyThumbs(instance);if(Thumbs.isActive&&Thumbs.opts.autoStart===true){Thumbs.show();}}},'beforeShow.fb':function(e,instance,item,firstRun){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isVisible){Thumbs.focus(firstRun?0:250);}},'afterKeydown.fb':function(e,instance,current,keypress,keycode){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isActive&&keycode===71){keypress.preventDefault();Thumbs.toggle();}},'beforeClose.fb':function(e,instance){var Thumbs=instance&&instance.Thumbs;if(Thumbs&&Thumbs.isVisible&&Thumbs.opts.hideOnClose!==false){Thumbs.$grid.hide();}},});})(document,jQuery);(function(window,document,$){'use strict';if(!$.escapeSelector){$.escapeSelector=function(sel){var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;var fcssescape=function(ch,asCodePoint){if(asCodePoint){if(ch==='\0'){return'\uFFFD';}
359return(ch.slice(0,-1)+'\\'+
360ch.charCodeAt(ch.length-1).toString(16)+' ');}
361return'\\'+ch;};return(sel+'').replace(rcssescape,fcssescape);};}
362function parseUrl(){var hash=window.location.hash.substr(1),rez=hash.split('-'),index=rez.length>1&&/^\+?\d+$/.test(rez[rez.length-1])?parseInt(rez.pop(-1),10)||1:1,gallery=rez.join('-');return{hash:hash,index:index<1?1:index,gallery:gallery,};}
363function triggerFromUrl(url){if(url.gallery!==''){$("[data-fancybox='"+$.escapeSelector(url.gallery)+"']").eq(url.index-1).focus().trigger('click.fb-start');}}
364function getGalleryID(instance){var opts,ret;if(!instance){return false;}
365opts=instance.current?instance.current.opts:instance.opts;ret=opts.hash||(opts.$orig?opts.$orig.data('fancybox')||opts.$orig.data('fancybox-trigger'):'');return ret===''?false:ret;}
366$(function(){if($.fancybox.defaults.hash===false){return;}
367$(document).on({'onInit.fb':function(e,instance){var url,gallery;if(instance.group[instance.currIndex].opts.hash===false){return;}
368url=parseUrl();gallery=getGalleryID(instance);if(gallery&&url.gallery&&gallery==url.gallery){instance.currIndex=url.index-1;}},'beforeShow.fb':function(e,instance,current,firstRun){var gallery;if(!current||current.opts.hash===false){return;}
369gallery=getGalleryID(instance);if(!gallery){return;}
370instance.currentHash=gallery+
371(instance.group.length>1?'-'+(current.index+1):'');if(window.location.hash==='#'+instance.currentHash){return;}
372if(firstRun&&!instance.origHash){instance.origHash=window.location.hash;}
373if(instance.hashTimer){clearTimeout(instance.hashTimer);}
374instance.hashTimer=setTimeout(function(){if('replaceState'in window.history){window.history[firstRun?'pushState':'replaceState']({},document.title,window.location.pathname+
375window.location.search+'#'+
376instance.currentHash);if(firstRun){instance.hasCreatedHistory=true;}}else{window.location.hash=instance.currentHash;}
377instance.hashTimer=null;},300);},'beforeClose.fb':function(e,instance,current){if(!current||current.opts.hash===false){return;}
378clearTimeout(instance.hashTimer);if(instance.currentHash&&instance.hasCreatedHistory){window.history.back();}else if(instance.currentHash){if('replaceState'in window.history){window.history.replaceState({},document.title,window.location.pathname+
379window.location.search+
380(instance.origHash||''));}else{window.location.hash=instance.origHash;}}
381instance.currentHash=null;},});$(window).on('hashchange.fb',function(){var url=parseUrl(),fb=null;$.each($('.fancybox-container').get().reverse(),function(index,value){var tmp=$(value).data('FancyBox');if(tmp&&tmp.currentHash){fb=tmp;return false;}});if(fb){if(fb.currentHash!==url.gallery+'-'+url.index&&!(url.index===1&&fb.currentHash==url.gallery)){fb.currentHash=null;fb.close();}}else if(url.gallery!==''){triggerFromUrl(url);}});setTimeout(function(){if(!$.fancybox.getInstance()){triggerFromUrl(parseUrl());}},50);});})(window,document,jQuery);(function(document,$){'use strict';var prevTime=new Date().getTime();$(document).on({'onInit.fb':function(e,instance,current){instance.$refs.stage.on('mousewheel DOMMouseScroll wheel MozMousePixelScroll',function(e){var current=instance.current,currTime=new Date().getTime();if(instance.group.length<2||current.opts.wheel===false||(current.opts.wheel==='auto'&&current.type!=='image')){return;}
382e.preventDefault();e.stopPropagation();if(current.$slide.hasClass('fancybox-animated')){return;}
383e=e.originalEvent||e;if(currTime-prevTime<250){return;}
384prevTime=currTime;instance[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?'next':'previous']();});},});})(document,jQuery);
385/*
386     _ _      _       _
387 ___| (_) ___| | __  (_)___
388/ __| | |/ __| |/ /  | / __|
389\__ \ | | (__|   < _ | \__ \
390|___/_|_|\___|_|\_(_)/ |___/
391                   |__/
392
393 Version: 1.8.1
394  Author: Ken Wheeler
395 Website: http://kenwheeler.github.io
396    Docs: http://kenwheeler.github.io/slick
397    Repo: http://github.com/kenwheeler/slick
398  Issues: http://github.com/kenwheeler/slick/issues
399
400 */
401/* global window, document, define, jQuery, setInterval, clearInterval */
402;(function(factory) {
403    'use strict';
404    if (typeof define === 'function' && define.amd) {
405        define(['jquery'], factory);
406    } else if (typeof exports !== 'undefined') {
407        module.exports = factory(require('jquery'));
408    } else {
409        factory(jQuery);
410    }
411
412}(function($) {
413    'use strict';
vendor: 29,656 bytes, lines 413-1401
413
414    var Slick = window.Slick || {};
415
416    Slick = (function() {
417
418        var instanceUid = 0;
419
420        function Slick(element, settings) {
421
422            var _ = this, dataSettings;
423
424            _.defaults = {
425                accessibility: true,
426                adaptiveHeight: false,
427                appendArrows: $(element),
428                appendDots: $(element),
429                arrows: true,
430                asNavFor: null,
431                prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
432                nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
433                autoplay: false,
434                autoplaySpeed: 3000,
435                centerMode: false,
436                centerPadding: '50px',
437                cssEase: 'ease',
438                customPaging: function(slider, i) {
439                    return $('<button type="button" />').text(i + 1);
440                },
441                dots: false,
442                dotsClass: 'slick-dots',
443                draggable: true,
444                easing: 'linear',
445                edgeFriction: 0.35,
446                fade: false,
447                focusOnSelect: false,
448                focusOnChange: false,
449                infinite: true,
450                initialSlide: 0,
451                lazyLoad: 'ondemand',
452                mobileFirst: false,
453                pauseOnHover: true,
454                pauseOnFocus: true,
455                pauseOnDotsHover: false,
456                respondTo: 'window',
457                responsive: null,
458                rows: 1,
459                rtl: false,
460                slide: '',
461                slidesPerRow: 1,
462                slidesToShow: 1,
463                slidesToScroll: 1,
464                speed: 500,
465                swipe: true,
466                swipeToSlide: false,
467                touchMove: true,
468                touchThreshold: 5,
469                useCSS: true,
470                useTransform: true,
471                variableWidth: false,
472                vertical: false,
473                verticalSwiping: false,
474                waitForAnimate: true,
475                zIndex: 1000
476            };
477
478            _.initials = {
479                animating: false,
480                dragging: false,
481                autoPlayTimer: null,
482                currentDirection: 0,
483                currentLeft: null,
484                currentSlide: 0,
485                direction: 1,
486                $dots: null,
487                listWidth: null,
488                listHeight: null,
489                loadIndex: 0,
490                $nextArrow: null,
491                $prevArrow: null,
492                scrolling: false,
493                slideCount: null,
494                slideWidth: null,
495                $slideTrack: null,
496                $slides: null,
497                sliding: false,
498                slideOffset: 0,
499                swipeLeft: null,
500                swiping: false,
501                $list: null,
502                touchObject: {},
503                transformsEnabled: false,
504                unslicked: false
505            };
506
507            $.extend(_, _.initials);
508
509            _.activeBreakpoint = null;
510            _.animType = null;
511            _.animProp = null;
512            _.breakpoints = [];
513            _.breakpointSettings = [];
514            _.cssTransitions = false;
515            _.focussed = false;
516            _.interrupted = false;
517            _.hidden = 'hidden';
518            _.paused = true;
519            _.positionProp = null;
520            _.respondTo = null;
521            _.rowCount = 1;
522            _.shouldClick = true;
523            _.$slider = $(element);
524            _.$slidesCache = null;
525            _.transformType = null;
526            _.transitionType = null;
527            _.visibilityChange = 'visibilitychange';
528            _.windowWidth = 0;
529            _.windowTimer = null;
530
531            dataSettings = $(element).data('slick') || {};
532
533            _.options = $.extend({}, _.defaults, settings, dataSettings);
534
535            _.currentSlide = _.options.initialSlide;
536
537            _.originalSettings = _.options;
538
539            if (typeof document.mozHidden !== 'undefined') {
540                _.hidden = 'mozHidden';
541                _.visibilityChange = 'mozvisibilitychange';
542            } else if (typeof document.webkitHidden !== 'undefined') {
543                _.hidden = 'webkitHidden';
544                _.visibilityChange = 'webkitvisibilitychange';
545            }
546
547            _.autoPlay = $.proxy(_.autoPlay, _);
548            _.autoPlayClear = $.proxy(_.autoPlayClear, _);
549            _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
550            _.changeSlide = $.proxy(_.changeSlide, _);
551            _.clickHandler = $.proxy(_.clickHandler, _);
552            _.selectHandler = $.proxy(_.selectHandler, _);
553            _.setPosition = $.proxy(_.setPosition, _);
554            _.swipeHandler = $.proxy(_.swipeHandler, _);
555            _.dragHandler = $.proxy(_.dragHandler, _);
556            _.keyHandler = $.proxy(_.keyHandler, _);
557
558            _.instanceUid = instanceUid++;
559
560            // A simple way to check for HTML strings
561            // Strict HTML recognition (must start with <)
562            // Extracted from jQuery v1.11 source
563            _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
564
565
566            _.registerBreakpoints();
567            _.init(true);
568
569        }
570
571        return Slick;
572
573    }());
574
575    Slick.prototype.activateADA = function() {
576        var _ = this;
577
578        _.$slideTrack.find('.slick-active').attr({
579            'aria-hidden': 'false'
580        }).find('a, input, button, select').attr({
581            'tabindex': '0'
582        });
583
584    };
585
586    Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
587
588        var _ = this;
589
590        if (typeof(index) === 'boolean') {
591            addBefore = index;
592            index = null;
593        } else if (index < 0 || (index >= _.slideCount)) {
594            return false;
595        }
596
597        _.unload();
598
599        if (typeof(index) === 'number') {
600            if (index === 0 && _.$slides.length === 0) {
601                $(markup).appendTo(_.$slideTrack);
602            } else if (addBefore) {
603                $(markup).insertBefore(_.$slides.eq(index));
604            } else {
605                $(markup).insertAfter(_.$slides.eq(index));
606            }
607        } else {
608            if (addBefore === true) {
609                $(markup).prependTo(_.$slideTrack);
610            } else {
611                $(markup).appendTo(_.$slideTrack);
612            }
613        }
614
615        _.$slides = _.$slideTrack.children(this.options.slide);
616
617        _.$slideTrack.children(this.options.slide).detach();
618
619        _.$slideTrack.append(_.$slides);
620
621        _.$slides.each(function(index, element) {
622            $(element).attr('data-slick-index', index);
623        });
624
625        _.$slidesCache = _.$slides;
626
627        _.reinit();
628
629    };
630
631    Slick.prototype.animateHeight = function() {
632        var _ = this;
633        if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
634            var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
635            _.$list.animate({
636                height: targetHeight
637            }, _.options.speed);
638        }
639    };
640
641    Slick.prototype.animateSlide = function(targetLeft, callback) {
642
643        var animProps = {},
644            _ = this;
645
646        _.animateHeight();
647
648        if (_.options.rtl === true && _.options.vertical === false) {
649            targetLeft = -targetLeft;
650        }
651        if (_.transformsEnabled === false) {
652            if (_.options.vertical === false) {
653                _.$slideTrack.animate({
654                    left: targetLeft
655                }, _.options.speed, _.options.easing, callback);
656            } else {
657                _.$slideTrack.animate({
658                    top: targetLeft
659                }, _.options.speed, _.options.easing, callback);
660            }
661
662        } else {
663
664            if (_.cssTransitions === false) {
665                if (_.options.rtl === true) {
666                    _.currentLeft = -(_.currentLeft);
667                }
668                $({
669                    animStart: _.currentLeft
670                }).animate({
671                    animStart: targetLeft
672                }, {
673                    duration: _.options.speed,
674                    easing: _.options.easing,
675                    step: function(now) {
676                        now = Math.ceil(now);
677                        if (_.options.vertical === false) {
678                            animProps[_.animType] = 'translate(' +
679                                now + 'px, 0px)';
680                            _.$slideTrack.css(animProps);
681                        } else {
682                            animProps[_.animType] = 'translate(0px,' +
683                                now + 'px)';
684                            _.$slideTrack.css(animProps);
685                        }
686                    },
687                    complete: function() {
688                        if (callback) {
689                            callback.call();
690                        }
691                    }
692                });
693
694            } else {
695
696                _.applyTransition();
697                targetLeft = Math.ceil(targetLeft);
698
699                if (_.options.vertical === false) {
700                    animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
701                } else {
702                    animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
703                }
704                _.$slideTrack.css(animProps);
705
706                if (callback) {
707                    setTimeout(function() {
708
709                        _.disableTransition();
710
711                        callback.call();
712                    }, _.options.speed);
713                }
714
715            }
716
717        }
718
719    };
720
721    Slick.prototype.getNavTarget = function() {
722
723        var _ = this,
724            asNavFor = _.options.asNavFor;
725
726        if ( asNavFor && asNavFor !== null ) {
727            asNavFor = $(asNavFor).not(_.$slider);
728        }
729
730        return asNavFor;
731
732    };
733
734    Slick.prototype.asNavFor = function(index) {
735
736        var _ = this,
737            asNavFor = _.getNavTarget();
738
739        if ( asNavFor !== null && typeof asNavFor === 'object' ) {
740            asNavFor.each(function() {
741                var target = $(this).slick('getSlick');
742                if(!target.unslicked) {
743                    target.slideHandler(index, true);
744                }
745            });
746        }
747
748    };
749
750    Slick.prototype.applyTransition = function(slide) {
751
752        var _ = this,
753            transition = {};
754
755        if (_.options.fade === false) {
756            transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
757        } else {
758            transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
759        }
760
761        if (_.options.fade === false) {
762            _.$slideTrack.css(transition);
763        } else {
764            _.$slides.eq(slide).css(transition);
765        }
766
767    };
768
769    Slick.prototype.autoPlay = function() {
770
771        var _ = this;
772
773        _.autoPlayClear();
774
775        if ( _.slideCount > _.options.slidesToShow ) {
776            _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
777        }
778
779    };
780
781    Slick.prototype.autoPlayClear = function() {
782
783        var _ = this;
784
785        if (_.autoPlayTimer) {
786            clearInterval(_.autoPlayTimer);
787        }
788
789    };
790
791    Slick.prototype.autoPlayIterator = function() {
792
793        var _ = this,
794            slideTo = _.currentSlide + _.options.slidesToScroll;
795
796        if ( !_.paused && !_.interrupted && !_.focussed ) {
797
798            if ( _.options.infinite === false ) {
799
800                if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
801                    _.direction = 0;
802                }
803
804                else if ( _.direction === 0 ) {
805
806                    slideTo = _.currentSlide - _.options.slidesToScroll;
807
808                    if ( _.currentSlide - 1 === 0 ) {
809                        _.direction = 1;
810                    }
811
812                }
813
814            }
815
816            _.slideHandler( slideTo );
817
818        }
819
820    };
821
822    Slick.prototype.buildArrows = function() {
823
824        var _ = this;
825
826        if (_.options.arrows === true ) {
827
828            _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
829            _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
830
831            if( _.slideCount > _.options.slidesToShow ) {
832
833                _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
834                _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
835
836                if (_.htmlExpr.test(_.options.prevArrow)) {
837                    _.$prevArrow.prependTo(_.options.appendArrows);
838                }
839
840                if (_.htmlExpr.test(_.options.nextArrow)) {
841                    _.$nextArrow.appendTo(_.options.appendArrows);
842                }
843
844                if (_.options.infinite !== true) {
845                    _.$prevArrow
846                        .addClass('slick-disabled')
847                        .attr('aria-disabled', 'true');
848                }
849
850            } else {
851
852                _.$prevArrow.add( _.$nextArrow )
853
854                    .addClass('slick-hidden')
855                    .attr({
856                        'aria-disabled': 'true',
857                        'tabindex': '-1'
858                    });
859
860            }
861
862        }
863
864    };
865
866    Slick.prototype.buildDots = function() {
867
868        var _ = this,
869            i, dot;
870
871        if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
872
873            _.$slider.addClass('slick-dotted');
874
875            dot = $('<ul />').addClass(_.options.dotsClass);
876
877            for (i = 0; i <= _.getDotCount(); i += 1) {
878                dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
879            }
880
881            _.$dots = dot.appendTo(_.options.appendDots);
882
883            _.$dots.find('li').first().addClass('slick-active');
884
885        }
886
887    };
888
889    Slick.prototype.buildOut = function() {
890
891        var _ = this;
892
893        _.$slides =
894            _.$slider
895                .children( _.options.slide + ':not(.slick-cloned)')
896                .addClass('slick-slide');
897
898        _.slideCount = _.$slides.length;
899
900        _.$slides.each(function(index, element) {
901            $(element)
902                .attr('data-slick-index', index)
903                .data('originalStyling', $(element).attr('style') || '');
904        });
905
906        _.$slider.addClass('slick-slider');
907
908        _.$slideTrack = (_.slideCount === 0) ?
909            $('<div class="slick-track"/>').appendTo(_.$slider) :
910            _.$slides.wrapAll('<div class="slick-track"/>').parent();
911
912        _.$list = _.$slideTrack.wrap(
913            '<div class="slick-list"/>').parent();
914        _.$slideTrack.css('opacity', 0);
915
916        if (_.options.centerMode === true || _.options.swipeToSlide === true) {
917            _.options.slidesToScroll = 1;
918        }
919
920        $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
921
922        _.setupInfinite();
923
924        _.buildArrows();
925
926        _.buildDots();
927
928        _.updateDots();
929
930
931        _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
932
933        if (_.options.draggable === true) {
934            _.$list.addClass('draggable');
935        }
936
937    };
938
939    Slick.prototype.buildRows = function() {
940
941        var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
942
943        newSlides = document.createDocumentFragment();
944        originalSlides = _.$slider.children();
945
946        if(_.options.rows > 0) {
947
948            slidesPerSection = _.options.slidesPerRow * _.options.rows;
949            numOfSlides = Math.ceil(
950                originalSlides.length / slidesPerSection
951            );
952
953            for(a = 0; a < numOfSlides; a++){
954                var slide = document.createElement('div');
955                for(b = 0; b < _.options.rows; b++) {
956                    var row = document.createElement('div');
957                    for(c = 0; c < _.options.slidesPerRow; c++) {
958                        var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
959                        if (originalSlides.get(target)) {
960                            row.appendChild(originalSlides.get(target));
961                        }
962                    }
963                    slide.appendChild(row);
964                }
965                newSlides.appendChild(slide);
966            }
967
968            _.$slider.empty().append(newSlides);
969            _.$slider.children().children().children()
970                .css({
971                    'width':(100 / _.options.slidesPerRow) + '%',
972                    'display': 'inline-block'
973                });
974
975        }
976
977    };
978
979    Slick.prototype.checkResponsive = function(initial, forceUpdate) {
980
981        var _ = this,
982            breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
983        var sliderWidth = _.$slider.width();
984        var windowWidth = window.innerWidth || $(window).width();
985
986        if (_.respondTo === 'window') {
987            respondToWidth = windowWidth;
988        } else if (_.respondTo === 'slider') {
989            respondToWidth = sliderWidth;
990        } else if (_.respondTo === 'min') {
991            respondToWidth = Math.min(windowWidth, sliderWidth);
992        }
993
994        if ( _.options.responsive &&
995            _.options.responsive.length &&
996            _.options.responsive !== null) {
997
998            targetBreakpoint = null;
999
1000            for (breakpoint in _.breakpoints) {
1001                if (_.breakpoints.hasOwnProperty(breakpoint)) {
1002                    if (_.originalSettings.mobileFirst === false) {
1003                        if (respondToWidth < _.breakpoints[breakpoint]) {
1004                            targetBreakpoint = _.breakpoints[breakpoint];
1005                        }
1006                    } else {
1007                        if (respondToWidth > _.breakpoints[breakpoint]) {
1008                            targetBreakpoint = _.breakpoints[breakpoint];
1009                        }
1010                    }
1011                }
1012            }
1013
1014            if (targetBreakpoint !== null) {
1015                if (_.activeBreakpoint !== null) {
1016                    if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
1017                        _.activeBreakpoint =
1018                            targetBreakpoint;
1019                        if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
1020                            _.unslick(targetBreakpoint);
1021                        } else {
1022                            _.options = $.extend({}, _.originalSettings,
1023                                _.breakpointSettings[
1024                                    targetBreakpoint]);
1025                            if (initial === true) {
1026                                _.currentSlide = _.options.initialSlide;
1027                            }
1028                            _.refresh(initial);
1029                        }
1030                        triggerBreakpoint = targetBreakpoint;
1031                    }
1032                } else {
1033                    _.activeBreakpoint = targetBreakpoint;
1034                    if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
1035                        _.unslick(targetBreakpoint);
1036                    } else {
1037                        _.options = $.extend({}, _.originalSettings,
1038                            _.breakpointSettings[
1039                                targetBreakpoint]);
1040                        if (initial === true) {
1041                            _.currentSlide = _.options.initialSlide;
1042                        }
1043                        _.refresh(initial);
1044                    }
1045                    triggerBreakpoint = targetBreakpoint;
1046                }
1047            } else {
1048                if (_.activeBreakpoint !== null) {
1049                    _.activeBreakpoint = null;
1050                    _.options = _.originalSettings;
1051                    if (initial === true) {
1052                        _.currentSlide = _.options.initialSlide;
1053                    }
1054                    _.refresh(initial);
1055                    triggerBreakpoint = targetBreakpoint;
1056                }
1057            }
1058
1059            // only trigger breakpoints during an actual break. not on initialize.
1060            if( !initial && triggerBreakpoint !== false ) {
1061                _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
1062            }
1063        }
1064
1065    };
1066
1067    Slick.prototype.changeSlide = function(event, dontAnimate) {
1068
1069        var _ = this,
1070            $target = $(event.currentTarget),
1071            indexOffset, slideOffset, unevenOffset;
1072
1073        // If target is a link, prevent default action.
1074        if($target.is('a')) {
1075            event.preventDefault();
1076        }
1077
1078        // If target is not the <li> element (ie: a child), find the <li>.
1079        if(!$target.is('li')) {
1080            $target = $target.closest('li');
1081        }
1082
1083        unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
1084        indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
1085
1086        switch (event.data.message) {
1087
1088            case 'previous':
1089                slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
1090                if (_.slideCount > _.options.slidesToShow) {
1091                    _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
1092                }
1093                break;
1094
1095            case 'next':
1096                slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
1097                if (_.slideCount > _.options.slidesToShow) {
1098                    _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
1099                }
1100                break;
1101
1102            case 'index':
1103                var index = event.data.index === 0 ? 0 :
1104                    event.data.index || $target.index() * _.options.slidesToScroll;
1105
1106                _.slideHandler(_.checkNavigable(index), false, dontAnimate);
1107                $target.children().trigger('focus');
1108                break;
1109
1110            default:
1111                return;
1112        }
1113
1114    };
1115
1116    Slick.prototype.checkNavigable = function(index) {
1117
1118        var _ = this,
1119            navigables, prevNavigable;
1120
1121        navigables = _.getNavigableIndexes();
1122        prevNavigable = 0;
1123        if (index > navigables[navigables.length - 1]) {
1124            index = navigables[navigables.length - 1];
1125        } else {
1126            for (var n in navigables) {
1127                if (index < navigables[n]) {
1128                    index = prevNavigable;
1129                    break;
1130                }
1131                prevNavigable = navigables[n];
1132            }
1133        }
1134
1135        return index;
1136    };
1137
1138    Slick.prototype.cleanUpEvents = function() {
1139
1140        var _ = this;
1141
1142        if (_.options.dots && _.$dots !== null) {
1143
1144            $('li', _.$dots)
1145                .off('click.slick', _.changeSlide)
1146                .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
1147                .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
1148
1149            if (_.options.accessibility === true) {
1150                _.$dots.off('keydown.slick', _.keyHandler);
1151            }
1152        }
1153
1154        _.$slider.off('focus.slick blur.slick');
1155
1156        if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1157            _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
1158            _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
1159
1160            if (_.options.accessibility === true) {
1161                _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler);
1162                _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler);
1163            }
1164        }
1165
1166        _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
1167        _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
1168        _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
1169        _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
1170
1171        _.$list.off('click.slick', _.clickHandler);
1172
1173        $(document).off(_.visibilityChange, _.visibility);
1174
1175        _.cleanUpSlideEvents();
1176
1177        if (_.options.accessibility === true) {
1178            _.$list.off('keydown.slick', _.keyHandler);
1179        }
1180
1181        if (_.options.focusOnSelect === true) {
1182            $(_.$slideTrack).children().off('click.slick', _.selectHandler);
1183        }
1184
1185        $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
1186
1187        $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
1188
1189        $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
1190
1191        $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
1192
1193    };
1194
1195    Slick.prototype.cleanUpSlideEvents = function() {
1196
1197        var _ = this;
1198
1199        _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
1200        _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
1201
1202    };
1203
1204    Slick.prototype.cleanUpRows = function() {
1205
1206        var _ = this, originalSlides;
1207
1208        if(_.options.rows > 0) {
1209            originalSlides = _.$slides.children().children();
1210            originalSlides.removeAttr('style');
1211            _.$slider.empty().append(originalSlides);
1212        }
1213
1214    };
1215
1216    Slick.prototype.clickHandler = function(event) {
1217
1218        var _ = this;
1219
1220        if (_.shouldClick === false) {
1221            event.stopImmediatePropagation();
1222            event.stopPropagation();
1223            event.preventDefault();
1224        }
1225
1226    };
1227
1228    Slick.prototype.destroy = function(refresh) {
1229
1230        var _ = this;
1231
1232        _.autoPlayClear();
1233
1234        _.touchObject = {};
1235
1236        _.cleanUpEvents();
1237
1238        $('.slick-cloned', _.$slider).detach();
1239
1240        if (_.$dots) {
1241            _.$dots.remove();
1242        }
1243
1244        if ( _.$prevArrow && _.$prevArrow.length ) {
1245
1246            _.$prevArrow
1247                .removeClass('slick-disabled slick-arrow slick-hidden')
1248                .removeAttr('aria-hidden aria-disabled tabindex')
1249                .css('display','');
1250
1251            if ( _.htmlExpr.test( _.options.prevArrow )) {
1252                _.$prevArrow.remove();
1253            }
1254        }
1255
1256        if ( _.$nextArrow && _.$nextArrow.length ) {
1257
1258            _.$nextArrow
1259                .removeClass('slick-disabled slick-arrow slick-hidden')
1260                .removeAttr('aria-hidden aria-disabled tabindex')
1261                .css('display','');
1262
1263            if ( _.htmlExpr.test( _.options.nextArrow )) {
1264                _.$nextArrow.remove();
1265            }
1266        }
1267
1268
1269        if (_.$slides) {
1270
1271            _.$slides
1272                .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
1273                .removeAttr('aria-hidden')
1274                .removeAttr('data-slick-index')
1275                .each(function(){
1276                    $(this).attr('style', $(this).data('originalStyling'));
1277                });
1278
1279            _.$slideTrack.children(this.options.slide).detach();
1280
1281            _.$slideTrack.detach();
1282
1283            _.$list.detach();
1284
1285            _.$slider.append(_.$slides);
1286        }
1287
1288        _.cleanUpRows();
1289
1290        _.$slider.removeClass('slick-slider');
1291        _.$slider.removeClass('slick-initialized');
1292        _.$slider.removeClass('slick-dotted');
1293
1294        _.unslicked = true;
1295
1296        if(!refresh) {
1297            _.$slider.trigger('destroy', [_]);
1298        }
1299
1300    };
1301
1302    Slick.prototype.disableTransition = function(slide) {
1303
1304        var _ = this,
1305            transition = {};
1306
1307        transition[_.transitionType] = '';
1308
1309        if (_.options.fade === false) {
1310            _.$slideTrack.css(transition);
1311        } else {
1312            _.$slides.eq(slide).css(transition);
1313        }
1314
1315    };
1316
1317    Slick.prototype.fadeSlide = function(slideIndex, callback) {
1318
1319        var _ = this;
1320
1321        if (_.cssTransitions === false) {
1322
1323            _.$slides.eq(slideIndex).css({
1324                zIndex: _.options.zIndex
1325            });
1326
1327            _.$slides.eq(slideIndex).animate({
1328                opacity: 1
1329            }, _.options.speed, _.options.easing, callback);
1330
1331        } else {
1332
1333            _.applyTransition(slideIndex);
1334
1335            _.$slides.eq(slideIndex).css({
1336                opacity: 1,
1337                zIndex: _.options.zIndex
1338            });
1339
1340            if (callback) {
1341                setTimeout(function() {
1342
1343                    _.disableTransition(slideIndex);
1344
1345                    callback.call();
1346                }, _.options.speed);
1347            }
1348
1349        }
1350
1351    };
1352
1353    Slick.prototype.fadeSlideOut = function(slideIndex) {
1354
1355        var _ = this;
1356
1357        if (_.cssTransitions === false) {
1358
1359            _.$slides.eq(slideIndex).animate({
1360                opacity: 0,
1361                zIndex: _.options.zIndex - 2
1362            }, _.options.speed, _.options.easing);
1363
1364        } else {
1365
1366            _.applyTransition(slideIndex);
1367
1368            _.$slides.eq(slideIndex).css({
1369                opacity: 0,
1370                zIndex: _.options.zIndex - 2
1371            });
1372
1373        }
1374
1375    };
1376
1377    Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
1378
1379        var _ = this;
1380
1381        if (filter !== null) {
1382
1383            _.$slidesCache = _.$slides;
1384
1385            _.unload();
1386
1387            _.$slideTrack.children(this.options.slide).detach();
1388
1389            _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
1390
1391            _.reinit();
1392
1393        }
1394
1395    };
1396
1397    Slick.prototype.focusHandler = function() {
1398
1399        var _ = this;
1400
1401        
vendor: 3,203 bytes, lines 1401-1496
1401// If any child element receives focus within the slider we need to pause the autoplay
1402        _.$slider
1403            .off('focus.slick blur.slick')
1404            .on(
1405                'focus.slick',
1406                '*', 
1407                function(event) {
1408                    var $sf = $(this);
1409
1410                    setTimeout(function() {
1411                        if( _.options.pauseOnFocus ) {
1412                            if ($sf.is(':focus')) {
1413                                _.focussed = true;
1414                                _.autoPlay();
1415                            }
1416                        }
1417                    }, 0);
1418                }
1419            ).on(
1420                'blur.slick',
1421                '*', 
1422                function(event) {
1423                    var $sf = $(this);
1424
1425                    // When a blur occurs on any elements within the slider we become unfocused
1426                    if( _.options.pauseOnFocus ) {
1427                        _.focussed = false;
1428                        _.autoPlay();
1429                    }
1430                }
1431            );
1432    };
1433
1434    Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
1435
1436        var _ = this;
1437        return _.currentSlide;
1438
1439    };
1440
1441    Slick.prototype.getDotCount = function() {
1442
1443        var _ = this;
1444
1445        var breakPoint = 0;
1446        var counter = 0;
1447        var pagerQty = 0;
1448
1449        if (_.options.infinite === true) {
1450            if (_.slideCount <= _.options.slidesToShow) {
1451                 ++pagerQty;
1452            } else {
1453                while (breakPoint < _.slideCount) {
1454                    ++pagerQty;
1455                    breakPoint = counter + _.options.slidesToScroll;
1456                    counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1457                }
1458            }
1459        } else if (_.options.centerMode === true) {
1460            pagerQty = _.slideCount;
1461        } else if(!_.options.asNavFor) {
1462            pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1463        }else {
1464            while (breakPoint < _.slideCount) {
1465                ++pagerQty;
1466                breakPoint = counter + _.options.slidesToScroll;
1467                counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1468            }
1469        }
1470
1471        return pagerQty - 1;
1472
1473    };
1474
1475    Slick.prototype.getLeft = function(slideIndex) {
1476
1477        var _ = this,
1478            targetLeft,
1479            verticalHeight,
1480            verticalOffset = 0,
1481            targetSlide,
1482            coef;
1483
1484        _.slideOffset = 0;
1485        verticalHeight = _.$slides.first().outerHeight(true);
1486
1487        if (_.options.infinite === true) {
1488            if (_.slideCount > _.options.slidesToShow) {
1489                _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1490                coef = -1
1491
1492                if (_.options.vertical === true && _.options.centerMode === true) {
1493                    if (_.options.slidesToShow === 2) {
1494                        coef = -1.5;
1495                    } else if (_.options.slidesToShow === 1) {
1496                        coef = -2
vendor: 4,950 bytes, lines 1496-1625
1496
1497                    }
1498                }
1499                verticalOffset = (verticalHeight * _.options.slidesToShow) * coef;
1500            }
1501            if (_.slideCount % _.options.slidesToScroll !== 0) {
1502                if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1503                    if (slideIndex > _.slideCount) {
1504                        _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1505                        verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1506                    } else {
1507                        _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1508                        verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1509                    }
1510                }
1511            }
1512        } else {
1513            if (slideIndex + _.options.slidesToShow > _.slideCount) {
1514                _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1515                verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1516            }
1517        }
1518
1519        if (_.slideCount <= _.options.slidesToShow) {
1520            _.slideOffset = 0;
1521            verticalOffset = 0;
1522        }
1523
1524        if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) {
1525            _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2);
1526        } else if (_.options.centerMode === true && _.options.infinite === true) {
1527            _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1528        } else if (_.options.centerMode === true) {
1529            _.slideOffset = 0;
1530            _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1531        }
1532
1533        if (_.options.vertical === false) {
1534            targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1535        } else {
1536            targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1537        }
1538
1539        if (_.options.variableWidth === true) {
1540
1541            if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1542                targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1543            } else {
1544                targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1545            }
1546
1547            if (_.options.rtl === true) {
1548                if (targetSlide[0]) {
1549                    targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1550                } else {
1551                    targetLeft =  0;
1552                }
1553            } else {
1554                targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1555            }
1556
1557            if (_.options.centerMode === true) {
1558                if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1559                    targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1560                } else {
1561                    targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1562                }
1563
1564                if (_.options.rtl === true) {
1565                    if (targetSlide[0]) {
1566                        targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1567                    } else {
1568                        targetLeft =  0;
1569                    }
1570                } else {
1571                    targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1572                }
1573
1574                targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1575            }
1576        }
1577
1578        return targetLeft;
1579
1580    };
1581
1582    Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
1583
1584        var _ = this;
1585
1586        return _.options[option];
1587
1588    };
1589
1590    Slick.prototype.getNavigableIndexes = function() {
1591
1592        var _ = this,
1593            breakPoint = 0,
1594            counter = 0,
1595            indexes = [],
1596            max;
1597
1598        if (_.options.infinite === false) {
1599            max = _.slideCount;
1600        } else {
1601            breakPoint = _.options.slidesToScroll * -1;
1602            counter = _.options.slidesToScroll * -1;
1603            max = _.slideCount * 2;
1604        }
1605
1606        while (breakPoint < max) {
1607            indexes.push(breakPoint);
1608            breakPoint = counter + _.options.slidesToScroll;
1609            counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1610        }
1611
1612        return indexes;
1613
1614    };
1615
1616    Slick.prototype.getSlick = function() {
1617
1618        return this;
1619
1620    };
1621
1622    Slick.prototype.getSlideCount = function() {
1623
1624        var _ = this,
1625            slidesTraversed, swipedSlide, 
1625swipeTarget, centerOffset;
1626
1627        centerOffset = _.options.centerMode === true ? Math.floor(_.$list.width() / 2) : 0;
1628        swipeTarget = (_.swipeLeft * -1) + centerOffset;
1629
1630        if (_.options.swipeToSlide === true) {
1631
1632            _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1633
1634                var slideOuterWidth, slideOffset, slideRightBoundary;
1635                slideOuterWidth = $(slide).outerWidth();
1636                slideOffset = slide.offsetLeft;
1637                if (_.options.centerMode !== true) {
1638                    slideOffset += (slideOuterWidth / 2);
1639                }
1640
1641                slideRightBoundary = slideOffset + (slideOuterWidth);
1642
1643                if (swipeTarget < slideRightBoundary) {
1644                    swipedSlide = slide;
1645                    return false;
1646                }
1647            });
1648
1649            slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1650
1651            return slidesTraversed;
1652
1653        } else {
1654            return _.options.slidesToScroll;
1655        }
1656
1657    };
1658
1659    Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
1660
1661        var _ = this;
1662
1663        _.changeSlide({
1664            data: {
1665                message: 'index',
1666                index: parseInt(slide)
1667            }
1668        }, dontAnimate);
1669
1670    };
1671
1672    Slick.prototype.init = function(creation) {
1673
1674        var _ = this;
1675
1676        if (!$(_.$slider).hasClass('slick-initialized')) {
1677
1678            $(_.$slider).addClass('slick-initialized');
1679
1680            _.buildRows();
1681            _.buildOut();
1682            _.setProps();
1683            _.startLoad();
1684            _.loadSlider();
1685            _.initializeEvents();
1686            _.updateArrows();
1687            _.updateDots();
1688            _.checkResponsive(true);
1689            _.focusHandler();
1690
1691        }
1692
1693        if (creation) {
1694            _.$slider.trigger('init', [_]);
1695        }
1696
1697        if (_.options.accessibility === true) {
1698            _.initADA();
1699        }
1700
1701        if ( _.options.autoplay ) {
1702
1703            _.paused = false;
vendor: 1,103 bytes, lines 1704-1735
1704            _.autoPlay();
1705
1706        }
1707
1708    };
1709
1710    Slick.prototype.initADA = function() {
1711        var _ = this,
1712                numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow),
1713                tabControlIndexes = _.getNavigableIndexes().filter(function(val) {
1714                    return (val >= 0) && (val < _.slideCount);
1715                });
1716
1717        _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1718            'aria-hidden': 'true',
1719            'tabindex': '-1'
1720        }).find('a, input, button, select').attr({
1721            'tabindex': '-1'
1722        });
1723
1724        if (_.$dots !== null) {
1725            _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1726                var slideControlIndex = tabControlIndexes.indexOf(i);
1727
1728                $(this).attr({
1729                    'role': 'tabpanel',
1730                    'id': 'slick-slide' + _.instanceUid + i,
1731                    'tabindex': -1
1732                });
1733
1734                if (slideControlIndex !== -1) {
1735                   var ariaButtonControl = 'slick-slide-control' + _.instanceUid + slideControlIndex
vendor: 29,020 bytes, lines 1735-2741
1735
1736                   if ($('#' + ariaButtonControl).length) {
1737                     $(this).attr({
1738                         'aria-describedby': ariaButtonControl
1739                     });
1740                   }
1741                }
1742            });
1743
1744            _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1745                var mappedSlideIndex = tabControlIndexes[i];
1746
1747                $(this).attr({
1748                    'role': 'presentation'
1749                });
1750
1751                $(this).find('button').first().attr({
1752                    'role': 'tab',
1753                    'id': 'slick-slide-control' + _.instanceUid + i,
1754                    'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex,
1755                    'aria-label': (i + 1) + ' of ' + numDotGroups,
1756                    'aria-selected': null,
1757                    'tabindex': '-1'
1758                });
1759
1760            }).eq(_.currentSlide).find('button').attr({
1761                'aria-selected': 'true',
1762                'tabindex': '0'
1763            }).end();
1764        }
1765
1766        for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {
1767          if (_.options.focusOnChange) {
1768            _.$slides.eq(i).attr({'tabindex': '0'});
1769          } else {
1770            _.$slides.eq(i).removeAttr('tabindex');
1771          }
1772        }
1773
1774        _.activateADA();
1775
1776    };
1777
1778    Slick.prototype.initArrowEvents = function() {
1779
1780        var _ = this;
1781
1782        if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1783            _.$prevArrow
1784               .off('click.slick')
1785               .on('click.slick', {
1786                    message: 'previous'
1787               }, _.changeSlide);
1788            _.$nextArrow
1789               .off('click.slick')
1790               .on('click.slick', {
1791                    message: 'next'
1792               }, _.changeSlide);
1793
1794            if (_.options.accessibility === true) {
1795                _.$prevArrow.on('keydown.slick', _.keyHandler);
1796                _.$nextArrow.on('keydown.slick', _.keyHandler);
1797            }
1798        }
1799
1800    };
1801
1802    Slick.prototype.initDotEvents = function() {
1803
1804        var _ = this;
1805
1806        if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1807            $('li', _.$dots).on('click.slick', {
1808                message: 'index'
1809            }, _.changeSlide);
1810
1811            if (_.options.accessibility === true) {
1812                _.$dots.on('keydown.slick', _.keyHandler);
1813            }
1814        }
1815
1816        if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.slideCount > _.options.slidesToShow) {
1817
1818            $('li', _.$dots)
1819                .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1820                .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1821
1822        }
1823
1824    };
1825
1826    Slick.prototype.initSlideEvents = function() {
1827
1828        var _ = this;
1829
1830        if ( _.options.pauseOnHover ) {
1831
1832            _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1833            _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1834
1835        }
1836
1837    };
1838
1839    Slick.prototype.initializeEvents = function() {
1840
1841        var _ = this;
1842
1843        _.initArrowEvents();
1844
1845        _.initDotEvents();
1846        _.initSlideEvents();
1847
1848        _.$list.on('touchstart.slick mousedown.slick', {
1849            action: 'start'
1850        }, _.swipeHandler);
1851        _.$list.on('touchmove.slick mousemove.slick', {
1852            action: 'move'
1853        }, _.swipeHandler);
1854        _.$list.on('touchend.slick mouseup.slick', {
1855            action: 'end'
1856        }, _.swipeHandler);
1857        _.$list.on('touchcancel.slick mouseleave.slick', {
1858            action: 'end'
1859        }, _.swipeHandler);
1860
1861        _.$list.on('click.slick', _.clickHandler);
1862
1863        $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
1864
1865        if (_.options.accessibility === true) {
1866            _.$list.on('keydown.slick', _.keyHandler);
1867        }
1868
1869        if (_.options.focusOnSelect === true) {
1870            $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1871        }
1872
1873        $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1874
1875        $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1876
1877        $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1878
1879        $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1880        $(_.setPosition);
1881
1882    };
1883
1884    Slick.prototype.initUI = function() {
1885
1886        var _ = this;
1887
1888        if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1889
1890            _.$prevArrow.show();
1891            _.$nextArrow.show();
1892
1893        }
1894
1895        if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1896
1897            _.$dots.show();
1898
1899        }
1900
1901    };
1902
1903    Slick.prototype.keyHandler = function(event) {
1904
1905        var _ = this;
1906         //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1907        if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1908            if (event.keyCode === 37 && _.options.accessibility === true) {
1909                _.changeSlide({
1910                    data: {
1911                        message: _.options.rtl === true ? 'next' :  'previous'
1912                    }
1913                });
1914            } else if (event.keyCode === 39 && _.options.accessibility === true) {
1915                _.changeSlide({
1916                    data: {
1917                        message: _.options.rtl === true ? 'previous' : 'next'
1918                    }
1919                });
1920            }
1921        }
1922
1923    };
1924
1925    Slick.prototype.lazyLoad = function() {
1926
1927        var _ = this,
1928            loadRange, cloneRange, rangeStart, rangeEnd;
1929
1930        function loadImages(imagesScope) {
1931
1932            $('img[data-lazy]', imagesScope).each(function() {
1933
1934                var image = $(this),
1935                    imageSource = $(this).attr('data-lazy'),
1936                    imageSrcSet = $(this).attr('data-srcset'),
1937                    imageSizes  = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'),
1938                    imageToLoad = document.createElement('img');
1939
1940                imageToLoad.onload = function() {
1941
1942                    image
1943                        .animate({ opacity: 0 }, 100, function() {
1944
1945                            if (imageSrcSet) {
1946                                image
1947                                    .attr('srcset', imageSrcSet );
1948
1949                                if (imageSizes) {
1950                                    image
1951                                        .attr('sizes', imageSizes );
1952                                }
1953                            }
1954
1955                            image
1956                                .attr('src', imageSource)
1957                                .animate({ opacity: 1 }, 200, function() {
1958                                    image
1959                                        .removeAttr('data-lazy data-srcset data-sizes')
1960                                        .removeClass('slick-loading');
1961                                });
1962                            _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1963                        });
1964
1965                };
1966
1967                imageToLoad.onerror = function() {
1968
1969                    image
1970                        .removeAttr( 'data-lazy' )
1971                        .removeClass( 'slick-loading' )
1972                        .addClass( 'slick-lazyload-error' );
1973
1974                    _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1975
1976                };
1977
1978                imageToLoad.src = imageSource;
1979
1980            });
1981
1982        }
1983
1984        if (_.options.centerMode === true) {
1985            if (_.options.infinite === true) {
1986                rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1987                rangeEnd = rangeStart + _.options.slidesToShow + 2;
1988            } else {
1989                rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1990                rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1991            }
1992        } else {
1993            rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1994            rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1995            if (_.options.fade === true) {
1996                if (rangeStart > 0) rangeStart--;
1997                if (rangeEnd <= _.slideCount) rangeEnd++;
1998            }
1999        }
2000
2001        loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
2002
2003        if (_.options.lazyLoad === 'anticipated') {
2004            var prevSlide = rangeStart - 1,
2005                nextSlide = rangeEnd,
2006                $slides = _.$slider.find('.slick-slide');
2007
2008            for (var i = 0; i < _.options.slidesToScroll; i++) {
2009                if (prevSlide < 0) prevSlide = _.slideCount - 1;
2010                loadRange = loadRange.add($slides.eq(prevSlide));
2011                loadRange = loadRange.add($slides.eq(nextSlide));
2012                prevSlide--;
2013                nextSlide++;
2014            }
2015        }
2016
2017        loadImages(loadRange);
2018
2019        if (_.slideCount <= _.options.slidesToShow) {
2020            cloneRange = _.$slider.find('.slick-slide');
2021            loadImages(cloneRange);
2022        } else
2023        if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
2024            cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
2025            loadImages(cloneRange);
2026        } else if (_.currentSlide === 0) {
2027            cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
2028            loadImages(cloneRange);
2029        }
2030
2031    };
2032
2033    Slick.prototype.loadSlider = function() {
2034
2035        var _ = this;
2036
2037        _.setPosition();
2038
2039        _.$slideTrack.css({
2040            opacity: 1
2041        });
2042
2043        _.$slider.removeClass('slick-loading');
2044
2045        _.initUI();
2046
2047        if (_.options.lazyLoad === 'progressive') {
2048            _.progressiveLazyLoad();
2049        }
2050
2051    };
2052
2053    Slick.prototype.next = Slick.prototype.slickNext = function() {
2054
2055        var _ = this;
2056
2057        _.changeSlide({
2058            data: {
2059                message: 'next'
2060            }
2061        });
2062
2063    };
2064
2065    Slick.prototype.orientationChange = function() {
2066
2067        var _ = this;
2068
2069        _.checkResponsive();
2070        _.setPosition();
2071
2072    };
2073
2074    Slick.prototype.pause = Slick.prototype.slickPause = function() {
2075
2076        var _ = this;
2077
2078        _.autoPlayClear();
2079        _.paused = true;
2080
2081    };
2082
2083    Slick.prototype.play = Slick.prototype.slickPlay = function() {
2084
2085        var _ = this;
2086
2087        _.autoPlay();
2088        _.options.autoplay = true;
2089        _.paused = false;
2090        _.focussed = false;
2091        _.interrupted = false;
2092
2093    };
2094
2095    Slick.prototype.postSlide = function(index) {
2096
2097        var _ = this;
2098
2099        if( !_.unslicked ) {
2100
2101            _.$slider.trigger('afterChange', [_, index]);
2102
2103            _.animating = false;
2104
2105            if (_.slideCount > _.options.slidesToShow) {
2106                _.setPosition();
2107            }
2108
2109            _.swipeLeft = null;
2110
2111            if ( _.options.autoplay ) {
2112                _.autoPlay();
2113            }
2114
2115            if (_.options.accessibility === true) {
2116                _.initADA();
2117
2118                if (_.options.focusOnChange) {
2119                    var $currentSlide = $(_.$slides.get(_.currentSlide));
2120                    $currentSlide.attr('tabindex', 0).focus();
2121                }
2122            }
2123
2124        }
2125
2126    };
2127
2128    Slick.prototype.prev = Slick.prototype.slickPrev = function() {
2129
2130        var _ = this;
2131
2132        _.changeSlide({
2133            data: {
2134                message: 'previous'
2135            }
2136        });
2137
2138    };
2139
2140    Slick.prototype.preventDefault = function(event) {
2141
2142        event.preventDefault();
2143
2144    };
2145
2146    Slick.prototype.progressiveLazyLoad = function( tryCount ) {
2147
2148        tryCount = tryCount || 1;
2149
2150        var _ = this,
2151            $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
2152            image,
2153            imageSource,
2154            imageSrcSet,
2155            imageSizes,
2156            imageToLoad;
2157
2158        if ( $imgsToLoad.length ) {
2159
2160            image = $imgsToLoad.first();
2161            imageSource = image.attr('data-lazy');
2162            imageSrcSet = image.attr('data-srcset');
2163            imageSizes  = image.attr('data-sizes') || _.$slider.attr('data-sizes');
2164            imageToLoad = document.createElement('img');
2165
2166            imageToLoad.onload = function() {
2167
2168                if (imageSrcSet) {
2169                    image
2170                        .attr('srcset', imageSrcSet );
2171
2172                    if (imageSizes) {
2173                        image
2174                            .attr('sizes', imageSizes );
2175                    }
2176                }
2177
2178                image
2179                    .attr( 'src', imageSource )
2180                    .removeAttr('data-lazy data-srcset data-sizes')
2181                    .removeClass('slick-loading');
2182
2183                if ( _.options.adaptiveHeight === true ) {
2184                    _.setPosition();
2185                }
2186
2187                _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
2188                _.progressiveLazyLoad();
2189
2190            };
2191
2192            imageToLoad.onerror = function() {
2193
2194                if ( tryCount < 3 ) {
2195
2196                    /**
2197                     * try to load the image 3 times,
2198                     * leave a slight delay so we don't get
2199                     * servers blocking the request.
2200                     */
2201                    setTimeout( function() {
2202                        _.progressiveLazyLoad( tryCount + 1 );
2203                    }, 500 );
2204
2205                } else {
2206
2207                    image
2208                        .removeAttr( 'data-lazy' )
2209                        .removeClass( 'slick-loading' )
2210                        .addClass( 'slick-lazyload-error' );
2211
2212                    _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
2213
2214                    _.progressiveLazyLoad();
2215
2216                }
2217
2218            };
2219
2220            imageToLoad.src = imageSource;
2221
2222        } else {
2223
2224            _.$slider.trigger('allImagesLoaded', [ _ ]);
2225
2226        }
2227
2228    };
2229
2230    Slick.prototype.refresh = function( initializing ) {
2231
2232        var _ = this, currentSlide, lastVisibleIndex;
2233
2234        lastVisibleIndex = _.slideCount - _.options.slidesToShow;
2235
2236        // in non-infinite sliders, we don't want to go past the
2237        // last visible index.
2238        if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
2239            _.currentSlide = lastVisibleIndex;
2240        }
2241
2242        // if less slides than to show, go to start.
2243        if ( _.slideCount <= _.options.slidesToShow ) {
2244            _.currentSlide = 0;
2245
2246        }
2247
2248        currentSlide = _.currentSlide;
2249
2250        _.destroy(true);
2251
2252        $.extend(_, _.initials, { currentSlide: currentSlide });
2253
2254        _.init();
2255
2256        if( !initializing ) {
2257
2258            _.changeSlide({
2259                data: {
2260                    message: 'index',
2261                    index: currentSlide
2262                }
2263            }, false);
2264
2265        }
2266
2267    };
2268
2269    Slick.prototype.registerBreakpoints = function() {
2270
2271        var _ = this, breakpoint, currentBreakpoint, l,
2272            responsiveSettings = _.options.responsive || null;
2273
2274        if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
2275
2276            _.respondTo = _.options.respondTo || 'window';
2277
2278            for ( breakpoint in responsiveSettings ) {
2279
2280                l = _.breakpoints.length-1;
2281
2282                if (responsiveSettings.hasOwnProperty(breakpoint)) {
2283                    currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
2284
2285                    // loop through the breakpoints and cut out any existing
2286                    // ones with the same breakpoint number, we don't want dupes.
2287                    while( l >= 0 ) {
2288                        if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
2289                            _.breakpoints.splice(l,1);
2290                        }
2291                        l--;
2292                    }
2293
2294                    _.breakpoints.push(currentBreakpoint);
2295                    _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
2296
2297                }
2298
2299            }
2300
2301            _.breakpoints.sort(function(a, b) {
2302                return ( _.options.mobileFirst ) ? a-b : b-a;
2303            });
2304
2305        }
2306
2307    };
2308
2309    Slick.prototype.reinit = function() {
2310
2311        var _ = this;
2312
2313        _.$slides =
2314            _.$slideTrack
2315                .children(_.options.slide)
2316                .addClass('slick-slide');
2317
2318        _.slideCount = _.$slides.length;
2319
2320        if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
2321            _.currentSlide = _.currentSlide - _.options.slidesToScroll;
2322        }
2323
2324        if (_.slideCount <= _.options.slidesToShow) {
2325            _.currentSlide = 0;
2326        }
2327
2328        _.registerBreakpoints();
2329
2330        _.setProps();
2331        _.setupInfinite();
2332        _.buildArrows();
2333        _.updateArrows();
2334        _.initArrowEvents();
2335        _.buildDots();
2336        _.updateDots();
2337        _.initDotEvents();
2338        _.cleanUpSlideEvents();
2339        _.initSlideEvents();
2340
2341        _.checkResponsive(false, true);
2342
2343        if (_.options.focusOnSelect === true) {
2344            $(_.$slideTrack).children().on('click.slick', _.selectHandler);
2345        }
2346
2347        _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
2348
2349        _.setPosition();
2350        _.focusHandler();
2351
2352        _.paused = !_.options.autoplay;
2353        _.autoPlay();
2354
2355        _.$slider.trigger('reInit', [_]);
2356
2357    };
2358
2359    Slick.prototype.resize = function() {
2360
2361        var _ = this;
2362
2363        if ($(window).width() !== _.windowWidth) {
2364            clearTimeout(_.windowDelay);
2365            _.windowDelay = window.setTimeout(function() {
2366                _.windowWidth = $(window).width();
2367                _.checkResponsive();
2368                if( !_.unslicked ) { _.setPosition(); }
2369            }, 50);
2370        }
2371    };
2372
2373    Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
2374
2375        var _ = this;
2376
2377        if (typeof(index) === 'boolean') {
2378            removeBefore = index;
2379            index = removeBefore === true ? 0 : _.slideCount - 1;
2380        } else {
2381            index = removeBefore === true ? --index : index;
2382        }
2383
2384        if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
2385            return false;
2386        }
2387
2388        _.unload();
2389
2390        if (removeAll === true) {
2391            _.$slideTrack.children().remove();
2392        } else {
2393            _.$slideTrack.children(this.options.slide).eq(index).remove();
2394        }
2395
2396        _.$slides = _.$slideTrack.children(this.options.slide);
2397
2398        _.$slideTrack.children(this.options.slide).detach();
2399
2400        _.$slideTrack.append(_.$slides);
2401
2402        _.$slidesCache = _.$slides;
2403
2404        _.reinit();
2405
2406    };
2407
2408    Slick.prototype.setCSS = function(position) {
2409
2410        var _ = this,
2411            positionProps = {},
2412            x, y;
2413
2414        if (_.options.rtl === true) {
2415            position = -position;
2416        }
2417        x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
2418        y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
2419
2420        positionProps[_.positionProp] = position;
2421
2422        if (_.transformsEnabled === false) {
2423            _.$slideTrack.css(positionProps);
2424        } else {
2425            positionProps = {};
2426            if (_.cssTransitions === false) {
2427                positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
2428                _.$slideTrack.css(positionProps);
2429            } else {
2430                positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
2431                _.$slideTrack.css(positionProps);
2432            }
2433        }
2434
2435    };
2436
2437    Slick.prototype.setDimensions = function() {
2438
2439        var _ = this;
2440
2441        if (_.options.vertical === false) {
2442            if (_.options.centerMode === true) {
2443                _.$list.css({
2444                    padding: ('0px ' + _.options.centerPadding)
2445                });
2446            }
2447        } else {
2448            _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
2449            if (_.options.centerMode === true) {
2450                _.$list.css({
2451                    padding: (_.options.centerPadding + ' 0px')
2452                });
2453            }
2454        }
2455
2456        _.listWidth = _.$list.width();
2457        _.listHeight = _.$list.height();
2458
2459
2460        if (_.options.vertical === false && _.options.variableWidth === false) {
2461            _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
2462            _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
2463
2464        } else if (_.options.variableWidth === true) {
2465            _.$slideTrack.width(5000 * _.slideCount);
2466        } else {
2467            _.slideWidth = Math.ceil(_.listWidth);
2468            _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
2469        }
2470
2471        var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
2472        if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
2473
2474    };
2475
2476    Slick.prototype.setFade = function() {
2477
2478        var _ = this,
2479            targetLeft;
2480
2481        _.$slides.each(function(index, element) {
2482            targetLeft = (_.slideWidth * index) * -1;
2483            if (_.options.rtl === true) {
2484                $(element).css({
2485                    position: 'relative',
2486                    right: targetLeft,
2487                    top: 0,
2488                    zIndex: _.options.zIndex - 2,
2489                    opacity: 0
2490                });
2491            } else {
2492                $(element).css({
2493                    position: 'relative',
2494                    left: targetLeft,
2495                    top: 0,
2496                    zIndex: _.options.zIndex - 2,
2497                    opacity: 0
2498                });
2499            }
2500        });
2501
2502        _.$slides.eq(_.currentSlide).css({
2503            zIndex: _.options.zIndex - 1,
2504            opacity: 1
2505        });
2506
2507    };
2508
2509    Slick.prototype.setHeight = function() {
2510
2511        var _ = this;
2512
2513        if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
2514            var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
2515            _.$list.css('height', targetHeight);
2516        }
2517
2518    };
2519
2520    Slick.prototype.setOption =
2521    Slick.prototype.slickSetOption = function() {
2522
2523        /**
2524         * accepts arguments in format of:
2525         *
2526         *  - for changing a single option's value:
2527         *     .slick("setOption", option, value, refresh )
2528         *
2529         *  - for changing a set of responsive options:
2530         *     .slick("setOption", 'responsive', [{}, ...], refresh )
2531         *
2532         *  - for updating multiple values at once (not responsive)
2533         *     .slick("setOption", { 'option': value, ... }, refresh )
2534         */
2535
2536        var _ = this, l, item, option, value, refresh = false, type;
2537
2538        if( $.type( arguments[0] ) === 'object' ) {
2539
2540            option =  arguments[0];
2541            refresh = arguments[1];
2542            type = 'multiple';
2543
2544        } else if ( $.type( arguments[0] ) === 'string' ) {
2545
2546            option =  arguments[0];
2547            value = arguments[1];
2548            refresh = arguments[2];
2549
2550            if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2551
2552                type = 'responsive';
2553
2554            } else if ( typeof arguments[1] !== 'undefined' ) {
2555
2556                type = 'single';
2557
2558            }
2559
2560        }
2561
2562        if ( type === 'single' ) {
2563
2564            _.options[option] = value;
2565
2566
2567        } else if ( type === 'multiple' ) {
2568
2569            $.each( option , function( opt, val ) {
2570
2571                _.options[opt] = val;
2572
2573            });
2574
2575
2576        } else if ( type === 'responsive' ) {
2577
2578            for ( item in value ) {
2579
2580                if( $.type( _.options.responsive ) !== 'array' ) {
2581
2582                    _.options.responsive = [ value[item] ];
2583
2584                } else {
2585
2586                    l = _.options.responsive.length-1;
2587
2588                    // loop through the responsive object and splice out duplicates.
2589                    while( l >= 0 ) {
2590
2591                        if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
2592
2593                            _.options.responsive.splice(l,1);
2594
2595                        }
2596
2597                        l--;
2598
2599                    }
2600
2601                    _.options.responsive.push( value[item] );
2602
2603                }
2604
2605            }
2606
2607        }
2608
2609        if ( refresh ) {
2610
2611            _.unload();
2612            _.reinit();
2613
2614        }
2615
2616    };
2617
2618    Slick.prototype.setPosition = function() {
2619
2620        var _ = this;
2621
2622        _.setDimensions();
2623
2624        _.setHeight();
2625
2626        if (_.options.fade === false) {
2627            _.setCSS(_.getLeft(_.currentSlide));
2628        } else {
2629            _.setFade();
2630        }
2631
2632        _.$slider.trigger('setPosition', [_]);
2633
2634    };
2635
2636    Slick.prototype.setProps = function() {
2637
2638        var _ = this,
2639            bodyStyle = document.body.style;
2640
2641        _.positionProp = _.options.vertical === true ? 'top' : 'left';
2642
2643        if (_.positionProp === 'top') {
2644            _.$slider.addClass('slick-vertical');
2645        } else {
2646            _.$slider.removeClass('slick-vertical');
2647        }
2648
2649        if (bodyStyle.WebkitTransition !== undefined ||
2650            bodyStyle.MozTransition !== undefined ||
2651            bodyStyle.msTransition !== undefined) {
2652            if (_.options.useCSS === true) {
2653                _.cssTransitions = true;
2654            }
2655        }
2656
2657        if ( _.options.fade ) {
2658            if ( typeof _.options.zIndex === 'number' ) {
2659                if( _.options.zIndex < 3 ) {
2660                    _.options.zIndex = 3;
2661                }
2662            } else {
2663                _.options.zIndex = _.defaults.zIndex;
2664            }
2665        }
2666
2667        if (bodyStyle.OTransform !== undefined) {
2668            _.animType = 'OTransform';
2669            _.transformType = '-o-transform';
2670            _.transitionType = 'OTransition';
2671            if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2672        }
2673        if (bodyStyle.MozTransform !== undefined) {
2674            _.animType = 'MozTransform';
2675            _.transformType = '-moz-transform';
2676            _.transitionType = 'MozTransition';
2677            if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2678        }
2679        if (bodyStyle.webkitTransform !== undefined) {
2680            _.animType = 'webkitTransform';
2681            _.transformType = '-webkit-transform';
2682            _.transitionType = 'webkitTransition';
2683            if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2684        }
2685        if (bodyStyle.msTransform !== undefined) {
2686            _.animType = 'msTransform';
2687            _.transformType = '-ms-transform';
2688            _.transitionType = 'msTransition';
2689            if (bodyStyle.msTransform === undefined) _.animType = false;
2690        }
2691        if (bodyStyle.transform !== undefined && _.animType !== false) {
2692            _.animType = 'transform';
2693            _.transformType = 'transform';
2694            _.transitionType = 'transition';
2695        }
2696        _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2697    };
2698
2699
2700    Slick.prototype.setSlideClasses = function(index) {
2701
2702        var _ = this,
2703            centerOffset, allSlides, indexOffset, remainder;
2704
2705        allSlides = _.$slider
2706            .find('.slick-slide')
2707            .removeClass('slick-active slick-center slick-current')
2708            .attr('aria-hidden', 'true');
2709
2710        _.$slides
2711            .eq(index)
2712            .addClass('slick-current');
2713
2714        if (_.options.centerMode === true) {
2715
2716            var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0;
2717
2718            centerOffset = Math.floor(_.options.slidesToShow / 2);
2719
2720            if (_.options.infinite === true) {
2721
2722                if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2723                    _.$slides
2724                        .slice(index - centerOffset + evenCoef, index + centerOffset + 1)
2725                        .addClass('slick-active')
2726                        .attr('aria-hidden', 'false');
2727
2728                } else {
2729
2730                    indexOffset = _.options.slidesToShow + index;
2731                    allSlides
2732                        .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2)
2733                        .addClass('slick-active')
2734                        .attr('aria-hidden', 'false');
2735
2736                }
2737
2738                if (index === 0) {
2739
2740                    allSlides
2741                        .eq(
2741 _.options.slidesToShow + _.slideCount + 1 
vendor: 10,708 bytes, lines 2741-3111
2741)
2742                        .addClass('slick-center');
2743
2744                } else if (index === _.slideCount - 1) {
2745
2746                    allSlides
2747                        .eq(_.options.slidesToShow)
2748                        .addClass('slick-center');
2749
2750                }
2751
2752            }
2753
2754            _.$slides
2755                .eq(index)
2756                .addClass('slick-center');
2757
2758        } else {
2759
2760            if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
2761
2762                _.$slides
2763                    .slice(index, index + _.options.slidesToShow)
2764                    .addClass('slick-active')
2765                    .attr('aria-hidden', 'false');
2766
2767            } else if (allSlides.length <= _.options.slidesToShow) {
2768
2769                allSlides
2770                    .addClass('slick-active')
2771                    .attr('aria-hidden', 'false');
2772
2773            } else {
2774
2775                remainder = _.slideCount % _.options.slidesToShow;
2776                indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2777
2778                if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2779
2780                    allSlides
2781                        .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2782                        .addClass('slick-active')
2783                        .attr('aria-hidden', 'false');
2784
2785                } else {
2786
2787                    allSlides
2788                        .slice(indexOffset, indexOffset + _.options.slidesToShow)
2789                        .addClass('slick-active')
2790                        .attr('aria-hidden', 'false');
2791
2792                }
2793
2794            }
2795
2796        }
2797
2798        if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') {
2799            _.lazyLoad();
2800        }
2801    };
2802
2803    Slick.prototype.setupInfinite = function() {
2804
2805        var _ = this,
2806            i, slideIndex, infiniteCount;
2807
2808        if (_.options.fade === true) {
2809            _.options.centerMode = false;
2810        }
2811
2812        if (_.options.infinite === true && _.options.fade === false) {
2813
2814            slideIndex = null;
2815
2816            if (_.slideCount > _.options.slidesToShow) {
2817
2818                if (_.options.centerMode === true) {
2819                    infiniteCount = _.options.slidesToShow + 1;
2820                } else {
2821                    infiniteCount = _.options.slidesToShow;
2822                }
2823
2824                for (i = _.slideCount; i > (_.slideCount -
2825                        infiniteCount); i -= 1) {
2826                    slideIndex = i - 1;
2827                    $(_.$slides[slideIndex]).clone(true).attr('id', '')
2828                        .attr('data-slick-index', slideIndex - _.slideCount)
2829                        .prependTo(_.$slideTrack).addClass('slick-cloned');
2830                }
2831                for (i = 0; i < infiniteCount  + _.slideCount; i += 1) {
2832                    slideIndex = i;
2833                    $(_.$slides[slideIndex]).clone(true).attr('id', '')
2834                        .attr('data-slick-index', slideIndex + _.slideCount)
2835                        .appendTo(_.$slideTrack).addClass('slick-cloned');
2836                }
2837                _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2838                    $(this).attr('id', '');
2839                });
2840
2841            }
2842
2843        }
2844
2845    };
2846
2847    Slick.prototype.interrupt = function( toggle ) {
2848
2849        var _ = this;
2850
2851        if( !toggle ) {
2852            _.autoPlay();
2853        }
2854        _.interrupted = toggle;
2855
2856    };
2857
2858    Slick.prototype.selectHandler = function(event) {
2859
2860        var _ = this;
2861
2862        var targetElement =
2863            $(event.target).is('.slick-slide') ?
2864                $(event.target) :
2865                $(event.target).parents('.slick-slide');
2866
2867        var index = parseInt(targetElement.attr('data-slick-index'));
2868
2869        if (!index) index = 0;
2870
2871        if (_.slideCount <= _.options.slidesToShow) {
2872
2873            _.slideHandler(index, false, true);
2874            return;
2875
2876        }
2877
2878        _.slideHandler(index);
2879
2880    };
2881
2882    Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
2883
2884        var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2885            _ = this, navTarget;
2886
2887        sync = sync || false;
2888
2889        if (_.animating === true && _.options.waitForAnimate === true) {
2890            return;
2891        }
2892
2893        if (_.options.fade === true && _.currentSlide === index) {
2894            return;
2895        }
2896
2897        if (sync === false) {
2898            _.asNavFor(index);
2899        }
2900
2901        targetSlide = index;
2902        targetLeft = _.getLeft(targetSlide);
2903        slideLeft = _.getLeft(_.currentSlide);
2904
2905        _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2906
2907        if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2908            if (_.options.fade === false) {
2909                targetSlide = _.currentSlide;
2910                if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2911                    _.animateSlide(slideLeft, function() {
2912                        _.postSlide(targetSlide);
2913                    });
2914                } else {
2915                    _.postSlide(targetSlide);
2916                }
2917            }
2918            return;
2919        } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2920            if (_.options.fade === false) {
2921                targetSlide = _.currentSlide;
2922                if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2923                    _.animateSlide(slideLeft, function() {
2924                        _.postSlide(targetSlide);
2925                    });
2926                } else {
2927                    _.postSlide(targetSlide);
2928                }
2929            }
2930            return;
2931        }
2932
2933        if ( _.options.autoplay ) {
2934            clearInterval(_.autoPlayTimer);
2935        }
2936
2937        if (targetSlide < 0) {
2938            if (_.slideCount % _.options.slidesToScroll !== 0) {
2939                animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2940            } else {
2941                animSlide = _.slideCount + targetSlide;
2942            }
2943        } else if (targetSlide >= _.slideCount) {
2944            if (_.slideCount % _.options.slidesToScroll !== 0) {
2945                animSlide = 0;
2946            } else {
2947                animSlide = targetSlide - _.slideCount;
2948            }
2949        } else {
2950            animSlide = targetSlide;
2951        }
2952
2953        _.animating = true;
2954
2955        _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
2956
2957        oldSlide = _.currentSlide;
2958        _.currentSlide = animSlide;
2959
2960        _.setSlideClasses(_.currentSlide);
2961
2962        if ( _.options.asNavFor ) {
2963
2964            navTarget = _.getNavTarget();
2965            navTarget = navTarget.slick('getSlick');
2966
2967            if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2968                navTarget.setSlideClasses(_.currentSlide);
2969            }
2970
2971        }
2972
2973        _.updateDots();
2974        _.updateArrows();
2975
2976        if (_.options.fade === true) {
2977            if (dontAnimate !== true) {
2978
2979                _.fadeSlideOut(oldSlide);
2980
2981                _.fadeSlide(animSlide, function() {
2982                    _.postSlide(animSlide);
2983                });
2984
2985            } else {
2986                _.postSlide(animSlide);
2987            }
2988            _.animateHeight();
2989            return;
2990        }
2991
2992        if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2993            _.animateSlide(targetLeft, function() {
2994                _.postSlide(animSlide);
2995            });
2996        } else {
2997            _.postSlide(animSlide);
2998        }
2999
3000    };
3001
3002    Slick.prototype.startLoad = function() {
3003
3004        var _ = this;
3005
3006        if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
3007
3008            _.$prevArrow.hide();
3009            _.$nextArrow.hide();
3010
3011        }
3012
3013        if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
3014
3015            _.$dots.hide();
3016
3017        }
3018
3019        _.$slider.addClass('slick-loading');
3020
3021    };
3022
3023    Slick.prototype.swipeDirection = function() {
3024
3025        var xDist, yDist, r, swipeAngle, _ = this;
3026
3027        xDist = _.touchObject.startX - _.touchObject.curX;
3028        yDist = _.touchObject.startY - _.touchObject.curY;
3029        r = Math.atan2(yDist, xDist);
3030
3031        swipeAngle = Math.round(r * 180 / Math.PI);
3032        if (swipeAngle < 0) {
3033            swipeAngle = 360 - Math.abs(swipeAngle);
3034        }
3035
3036        if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
3037            return (_.options.rtl === false ? 'left' : 'right');
3038        }
3039        if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
3040            return (_.options.rtl === false ? 'left' : 'right');
3041        }
3042        if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
3043            return (_.options.rtl === false ? 'right' : 'left');
3044        }
3045        if (_.options.verticalSwiping === true) {
3046            if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
3047                return 'down';
3048            } else {
3049                return 'up';
3050            }
3051        }
3052
3053        return 'vertical';
3054
3055    };
3056
3057    Slick.prototype.swipeEnd = function(event) {
3058
3059        var _ = this,
3060            slideCount,
3061            direction;
3062
3063        _.dragging = false;
3064        _.swiping = false;
3065
3066        if (_.scrolling) {
3067            _.scrolling = false;
3068            return false;
3069        }
3070
3071        _.interrupted = false;
3072        _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
3073
3074        if ( _.touchObject.curX === undefined ) {
3075            return false;
3076        }
3077
3078        if ( _.touchObject.edgeHit === true ) {
3079            _.$slider.trigger('edge', [_, _.swipeDirection() ]);
3080        }
3081
3082        if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
3083
3084            direction = _.swipeDirection();
3085
3086            switch ( direction ) {
3087
3088                case 'left':
3089                case 'down':
3090
3091                    slideCount =
3092                        _.options.swipeToSlide ?
3093                            _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
3094                            _.currentSlide + _.getSlideCount();
3095
3096                    _.currentDirection = 0;
3097
3098                    break;
3099
3100                case 'right':
3101                case 'up':
3102
3103                    slideCount =
3104                        _.options.swipeToSlide ?
3105                            _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
3106                            _.currentSlide - _.getSlideCount();
3107
3108                    _.currentDirection = 1;
3109
3110                    break;
3111
vendor: 8,700 bytes, lines 3112-3422
3112                default:
3113
3114
3115            }
3116
3117            if( direction != 'vertical' ) {
3118
3119                _.slideHandler( slideCount );
3120                _.touchObject = {};
3121                _.$slider.trigger('swipe', [_, direction ]);
3122
3123            }
3124
3125        } else {
3126
3127            if ( _.touchObject.startX !== _.touchObject.curX ) {
3128
3129                _.slideHandler( _.currentSlide );
3130                _.touchObject = {};
3131
3132            }
3133
3134        }
3135
3136    };
3137
3138    Slick.prototype.swipeHandler = function(event) {
3139
3140        var _ = this;
3141
3142        if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
3143            return;
3144        } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
3145            return;
3146        }
3147
3148        _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
3149            event.originalEvent.touches.length : 1;
3150
3151        _.touchObject.minSwipe = _.listWidth / _.options
3152            .touchThreshold;
3153
3154        if (_.options.verticalSwiping === true) {
3155            _.touchObject.minSwipe = _.listHeight / _.options
3156                .touchThreshold;
3157        }
3158
3159        switch (event.data.action) {
3160
3161            case 'start':
3162                _.swipeStart(event);
3163                break;
3164
3165            case 'move':
3166                _.swipeMove(event);
3167                break;
3168
3169            case 'end':
3170                _.swipeEnd(event);
3171                break;
3172
3173        }
3174
3175    };
3176
3177    Slick.prototype.swipeMove = function(event) {
3178
3179        var _ = this,
3180            edgeWasHit = false,
3181            curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength;
3182
3183        touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
3184
3185        if (!_.dragging || _.scrolling || touches && touches.length !== 1) {
3186            return false;
3187        }
3188
3189        curLeft = _.getLeft(_.currentSlide);
3190
3191        _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
3192        _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
3193
3194        _.touchObject.swipeLength = Math.round(Math.sqrt(
3195            Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
3196
3197        verticalSwipeLength = Math.round(Math.sqrt(
3198            Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
3199
3200        if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) {
3201            _.scrolling = true;
3202            return false;
3203        }
3204
3205        if (_.options.verticalSwiping === true) {
3206            _.touchObject.swipeLength = verticalSwipeLength;
3207        }
3208
3209        swipeDirection = _.swipeDirection();
3210
3211        if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
3212            _.swiping = true;
3213            event.preventDefault();
3214        }
3215
3216        positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
3217        if (_.options.verticalSwiping === true) {
3218            positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
3219        }
3220
3221
3222        swipeLength = _.touchObject.swipeLength;
3223
3224        _.touchObject.edgeHit = false;
3225
3226        if (_.options.infinite === false) {
3227            if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
3228                swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
3229                _.touchObject.edgeHit = true;
3230            }
3231        }
3232
3233        if (_.options.vertical === false) {
3234            _.swipeLeft = curLeft + swipeLength * positionOffset;
3235        } else {
3236            _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
3237        }
3238        if (_.options.verticalSwiping === true) {
3239            _.swipeLeft = curLeft + swipeLength * positionOffset;
3240        }
3241
3242        if (_.options.fade === true || _.options.touchMove === false) {
3243            return false;
3244        }
3245
3246        if (_.animating === true) {
3247            _.swipeLeft = null;
3248            return false;
3249        }
3250
3251        _.setCSS(_.swipeLeft);
3252
3253    };
3254
3255    Slick.prototype.swipeStart = function(event) {
3256
3257        var _ = this,
3258            touches;
3259
3260        _.interrupted = true;
3261
3262        if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
3263            _.touchObject = {};
3264            return false;
3265        }
3266
3267        if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
3268            touches = event.originalEvent.touches[0];
3269        }
3270
3271        _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
3272        _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
3273
3274        _.dragging = true;
3275
3276    };
3277
3278    Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
3279
3280        var _ = this;
3281
3282        if (_.$slidesCache !== null) {
3283
3284            _.unload();
3285
3286            _.$slideTrack.children(this.options.slide).detach();
3287
3288            _.$slidesCache.appendTo(_.$slideTrack);
3289
3290            _.reinit();
3291
3292        }
3293
3294    };
3295
3296    Slick.prototype.unload = function() {
3297
3298        var _ = this;
3299
3300        $('.slick-cloned', _.$slider).remove();
3301
3302        if (_.$dots) {
3303            _.$dots.remove();
3304        }
3305
3306        if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
3307            _.$prevArrow.remove();
3308        }
3309
3310        if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
3311            _.$nextArrow.remove();
3312        }
3313
3314        _.$slides
3315            .removeClass('slick-slide slick-active slick-visible slick-current')
3316            .attr('aria-hidden', 'true')
3317            .css('width', '');
3318
3319    };
3320
3321    Slick.prototype.unslick = function(fromBreakpoint) {
3322
3323        var _ = this;
3324        _.$slider.trigger('unslick', [_, fromBreakpoint]);
3325        _.destroy();
3326
3327    };
3328
3329    Slick.prototype.updateArrows = function() {
3330
3331        var _ = this,
3332            centerOffset;
3333
3334        centerOffset = Math.floor(_.options.slidesToShow / 2);
3335
3336        if ( _.options.arrows === true &&
3337            _.slideCount > _.options.slidesToShow &&
3338            !_.options.infinite ) {
3339
3340            _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
3341            _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
3342
3343            if (_.currentSlide === 0) {
3344
3345                _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
3346                _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
3347
3348            } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
3349
3350                _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
3351                _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
3352
3353            } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
3354
3355                _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
3356                _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
3357
3358            }
3359
3360        }
3361
3362    };
3363
3364    Slick.prototype.updateDots = function() {
3365
3366        var _ = this;
3367
3368        if (_.$dots !== null) {
3369
3370            _.$dots
3371                .find('li')
3372                    .removeClass('slick-active')
3373                    .end();
3374
3375            _.$dots
3376                .find('li')
3377                .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
3378                .addClass('slick-active');
3379
3380        }
3381
3382    };
3383
3384    Slick.prototype.visibility = function() {
3385
3386        var _ = this;
3387
3388        if ( _.options.autoplay ) {
3389
3390            if ( document[_.hidden] ) {
3391
3392                _.interrupted = true;
3393
3394            } else {
3395
3396                _.interrupted = false;
3397
3398            }
3399
3400        }
3401
3402    };
3403
3404    $.fn.slick = function() {
3405        var _ = this,
3406            opt = arguments[0],
3407            args = Array.prototype.slice.call(arguments, 1),
3408            l = _.length,
3409            i,
3410            ret;
3411        for (i = 0; i < l; i++) {
3412            if (typeof opt == 'object' || typeof opt == 'undefined')
3413                _[i].slick = new Slick(_[i], opt);
3414            else
3415                ret = _[i].slick[opt].apply(_[i].slick, args);
3416            if (typeof ret != 'undefined') return ret;
3417        }
3418        return _;
3419    };
3420
3421}));
3422var lazyLoadImg=function(){var lazyImages=[].slice.call(document.querySelectorAll("img.lazy, div.lazy, section.lazy"));if("IntersectionObserver"in window){let lazyImageObserver=new IntersectionObserver(function(entries,observer){entries.forEac
3422h(function(entry){if(entry.isIntersecting){let lazyImage=entry.target;lazyImage.src=lazyImage.dataset.src;if(lazyImage.dataset.background){$(lazyImage).css('background-image','url("'+lazyImage.dataset.background+'")');}
3423lazyImage.classList.remove("lazy");lazyImageObserver.unobserve(lazyImage);}});});lazyImages.forEach(function(lazyImage){lazyImageObserver.observe(lazyImage);});}else{}}
3424window.addEventListener('load',(event)=>{lazyLoadImg();});$(document).ready(function(){IS_FORM_GET_NOSPAM=false;$('form input[name*="phone"], form input[name*="tel"], form input[name*="email"]').on('focus',function(){if(!IS_FORM_GET_NOSPAM){$.post('/assets/components/nospam/action.php',{},function(data){IS_FORM_GET_NOSPAM=true;if(data){if($('#form-Goszakaz').length>0){$('#form-Goszakaz').prepend('<input type="hidden" name="'+data.key+'" value="'+data.val+'">');$('#form-Goszakaz').prepend('<input type="hidden" name="secret" value="'+data.val+'fdlsdjsehwrf'+data.key+'">');}
3425if($('form').length>0){$('form').each(function(){$(this).prepend('<input type="hidden" name="'+data.key+'" value="'+data.val+'">');$(this).prepend('<input type="hidden" name="secret" value="'+data.val+'fdlsdjsehwrf'+data.key+'">');});}}}).fail(function(){console.error('косяк запроса');});}});var timerFormGoszakaz=setTimeout(function(){},8300);$(document).on('af_complete',function(event,response){if(response.success){$('.modal').modal('hide');}});$('button[type="submit"]').on('click',function(e){if(typeof $(this).attr('form')!="undefined"){e.preventDefault();var form=$(this).attr('form');$('#'+form).submit();}});$(".fancybox").fancybox({helpers:{overlay:{locked:false}},padding:0});$('.fancybox-media').each(function(){let href=$(this).attr('href');$(this).attr('data-video-id',href.replace('https://youtu.be/','').replace('https://www.youtu.be/','').replace('https://www.youtube.com/embed/',''));});$('.fancybox-media').fancybox({openEffect:'none',closeEffect:'none',helpers:{media:{}}});$('#callback-phone, #measering_call-phone, #order-phone, #counting-phone, #measure-phone, input[name=phone], input[type=tel]').mask('+7 (Z00) 000-00-00',{placeholder:"+7 (___) ___-__-__",clearIfNotMatch:true,translation:{'Z':{pattern:/[4,9]/,optional:false}}});$('#callback-phone, #measering_call-phone, #order-phone, #counting-phone, #measure-phone, input[name=phone], input[type=tel]').on('focusin',function(){if($(this).val()==''){$(this).val('+7 (')}});$('#callback-phone, #measering_call-phone, #order-phone, #counting-phone, #measure-phone, input[name=phone], input[type=tel]').on('focusout',function(){if($(this).val()=='+7 ('){$(this).val("")}});$('#callback-phone, #measering_call-phone, #order-phone, #counting-phone, #measure-phone, input[name=phone], input[type=tel]').each(function(){$(this).attr('type','tel');});$('.catalog-button').on('click',function(){var title=$(this).attr('data-title');$('#modal-order').on('show.bs.modal',function(e){$(this).find('.modal-title').text(title);$(this).find('input#order-title').val(title);})});$(window).scroll(function(){if($(this).scrollTop()>400){$('.to_top').stop().animate({bottom:'100px'},500);}else{$('.to_top').stop().animate({bottom:'-100px'},500);}});$('.to_top').click(function(){$('html, body').stop().animate({scrollTop:0},500,function(){$('.to_top').stop().animate({bottom:'-100px'},500);});});var hashTagActive='';$('.scroll').click(function(event){if(hashTagActive!=this.hash){event.preventDefault();var dest=0;if($(this.hash).offset()>$(document).height()-$(window).height()){dest=$(document).height()-$(window).height();}else{dest=$(this.hash).offset();}
3426$('html,body').animate({scrollTop:dest},1000,'swing');hashTagActive=this.hash;}});function sortUsingNestedText(parent,childSelector,_mode){let mode=['asc','desc'].includes(_mode)?_mode:'asc';let items=parent.children(childSelector).sort(function(a,b){let vA=$(a).data('number');let vB=$(b).data('number');switch(mode){case'asc':return(vA<vB)?-1:(vA>vB)?1:0;break;case'desc':return(vA>vB)?-1:(vA<vB)?1:0;break;}});parent.append(items);}
3427sortUsingNestedText($('.news_slider'),"div","desc");$('.news_slider').slick({dots:false,touchMove:true,infinite:false,slidesToShow:1,slidesToScroll:1,sort:'ASC'});$('.lastworks_slider, .form-slider').slick({dots:false,touchMove:true,infinite:false,lazyLoad:'progressive'});
3427$('.index_slider').slick({dots:false,touchMove:true,infinite:false,autoplay:true,autoplaySpeed:5000,lazyLoad:'progressive',fade:true,cssEase:'ease-out',});$('.customercomments_slider').slick({dots:false,infinite:false,speed:300,touchMove:true,slidesToShow:7,slidesToScroll:7,responsive:[{breakpoint:1024,settings:{slidesToShow:4,slidesToScroll:4}},{breakpoint:768,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:2,slidesToScroll:2}}]});$('.clients_slider').slick({dots:false,infinite:false,speed:300,slidesToShow:5,slidesToScroll:5,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.photoslider').slick({dots:false,infinite:false,speed:300,slidesToShow:5,slidesToScroll:5,responsive:[{breakpoint:1024,settings:{slidesToShow:3,slidesToScroll:3,}},{breakpoint:600,settings:{slidesToShow:2,slidesToScroll:2}},{breakpoint:480,settings:{slidesToShow:1,slidesToScroll:1}}]});$('.header__catalog-btn').on('click',function(){$(this).toggleClass('active')
3428$('.header__catalog-body').fadeToggle();});$('.header-menu__tabs-item').on('click',function(){var tabId=$(this).data('tab');$('.header-menu__tabs-item').removeClass('active');$(this).addClass('active');$('.header-menu__content-item').removeClass('active');$('#'+tabId).addClass('active');if($(window).width()<768){$('.header__content').animate({scrollTop:$('.header-menu__content').offset().top-70+$('.header__content').scrollTop()},100);}});$('.navbar-toggle').on("click",function(){$('.navbar-toggle').toggleClass('active');$('.header__content').toggleClass('open');$('body').toggleClass('lock-menu');$('.navbar-header').toggleClass('open-menu')})})

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.