!function(t,e){'object'==typeof module&&'object'==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error('jQuery requires a window with a document');return e(t)}:e(t)}('undefined'!=typeof window?window:this,function(t,n){var d=[],o=t.document,f=d.slice,Bt=d.concat,st=d.push,qt=d.indexOf,W={},ln=W.toString,S=W.hasOwnProperty,i={},zt='1.12.3',e=function(t,n){return new e.fn.init(t,n)},cn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,un=/^-ms-/,dn=/-([\da-z])/gi,hn=function(t,e){return e.toUpperCase()};e.fn=e.prototype={jquery:zt,constructor:e,selector:'',length:0,toArray:function(){return f.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:f.call(this)},pushStack:function(t){var n=e.merge(this.constructor(),t);return n.prevObject=this,n.context=this.context,n},each:function(t){return e.each(this,t)},map:function(t){return this.pushStack(e.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(0>t?n:0);return this.pushStack(e>=0&&n>e?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:st,sort:d.sort,splice:d.splice},e.extend=e.fn.extend=function(){var i,r,n,s,a,l,t=arguments[0]||{},o=1,u=arguments.length,c=!1;for('boolean'==typeof t&&(c=t,t=arguments[o]||{},o++),'object'==typeof t||e.isFunction(t)||(t={}),o===u&&(t=this,o--);u>o;o++)if(null!=(a=arguments[o]))for(s in a)i=t[s],n=a[s],t!==n&&(c&&n&&(e.isPlainObject(n)||(r=e.isArray(n)))?(r?(r=!1,l=i&&e.isArray(i)?i:[]):l=i&&e.isPlainObject(i)?i:{},t[s]=e.extend(c,l,n)):void 0!==n&&(t[s]=n));return t},e.extend({expando:'jQuery'+(zt+Math.random()).replace(/\D/g,''),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return'function'===e.type(t)},isArray:Array.isArray||function(t){return'array'===e.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var n=t&&t.toString();return!e.isArray(t)&&n-parseFloat(n)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var o;if(!t||'object'!==e.type(t)||t.nodeType||e.isWindow(t))return!1;try{if(t.constructor&&!S.call(t,'constructor')&&!S.call(t.constructor.prototype,'isPrototypeOf'))return!1}catch(n){return!1};if(!i.ownFirst)for(o in t)return S.call(t,o);for(o in t);return void 0===o||S.call(t,o)},type:function(t){return null==t?t+'':'object'==typeof t||'function'==typeof t?W[ln.call(t)]||'object':typeof t},globalEval:function(n){n&&e.trim(n)&&(t.execScript||function(e){t.eval.call(t,e)})(n)},camelCase:function(t){return t.replace(un,'ms-').replace(dn,hn)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(rt(t)){for(i=t.length;i>n;n++)if(e.call(t[n],n,t[n])===!1)break}
else for(n in t)if(e.call(t[n],n,t[n])===!1)break;return t},trim:function(t){return null==t?'':(t+'').replace(cn,'')},makeArray:function(t,n){var i=n||[];return null!=t&&(rt(Object(t))?e.merge(i,'string'==typeof t?[t]:t):st.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(qt)return qt.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n};return-1},merge:function(t,e){var i=+e.length,n=0,o=t.length;while(i>n)t[o++]=e[n++];if(i!==i)while(void 0!==e[n])t[o++]=e[n++];return t.length=o,t},grep:function(t,e,n){for(var o,s=[],i=0,r=t.length,a=!n;r>i;i++)o=!e(t[i],i),o!==a&&s.push(t[i]);return s},map:function(t,e,n){var r,o,i=0,s=[];if(rt(t))for(r=t.length;r>i;i++)o=e(t[i],i,n),null!=o&&s.push(o);else for(i in t)o=e(t[i],i,n),null!=o&&s.push(o);return Bt.apply([],s)},guid:1,proxy:function(t,n){var o,i,s;return'string'==typeof n&&(s=t[n],n=t,t=s),e.isFunction(t)?(o=f.call(arguments,2),i=function(){return t.apply(n||this,o.concat(f.call(arguments)))},i.guid=t.guid=t.guid||e.guid++,i):void 0},now:function(){return+new Date},support:i}),'function'==typeof Symbol&&(e.fn[Symbol.iterator]=d[Symbol.iterator]),e.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' '),function(t,e){W['[object '+e+']']=e.toLowerCase()});function rt(t){var n=!!t&&'length'in t&&t.length,i=e.type(t);return'function'===i||e.isWindow(t)?!1:'array'===i||0===n||'number'==typeof n&&n>0&&n-1 in t};var E=function(t){var E,s,e,A,J,I,M,Z,P,v,S,y,n,c,u,l,w,O,D,r='sizzle'+1*new Date,d=t.document,f=0,ct=0,tt=U(),et=U(),j=U(),F=function(t,e){return t===e&&(S=!0),0},nt=1<<31,ut={}.hasOwnProperty,x=[],dt=x.pop,ht=x.push,b=x.push,it=x.slice,C=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},B='checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',i='[\\x20\\t\\r\\n\\f]',T='(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+',ot='\\['+i+'*('+T+')(?:'+i+'*([*^$|!~]?=)'+i+'*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|('+T+'))|)'+i+'*\\]',q=':('+T+')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|'+ot+')*)|.*)\\)|)',pt=new RegExp(i+'+','g'),L=new RegExp('^'+i+'+|((?:^|[^\\\\])(?:\\\\.)*)'+i+'+$','g'),ft=new RegExp('^'+i+'*,'+i+'*'),mt=new RegExp('^'+i+'*([>+~]|'+i+')'+i+'*'),gt=new RegExp('='+i+'*([^\\]\'"]*?)'+i+'*\\]','g'),vt=new RegExp(q),st=new RegExp('^'+T+'$'),H={ID:new RegExp('^#('+T+')'),CLASS:new RegExp('^\\.('+T+')'),TAG:new RegExp('^('+T+'|[*])'),ATTR:new RegExp('^'+ot),PSEUDO:new RegExp('^'+q),CHILD:new RegExp('^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\('+i+'*(even|odd|(([+-]|)(\\d*)n|)'+i+'*(?:([+-]|)'+i+'*(\\d+)|))'+i+'*\\)|)','i'),bool:new RegExp('^(?:'+B+')$','i'),needsContext:new RegExp('^'+i+'*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\('+i+'*((?:-\\d)?\\d*)'+i+'*\\)|)(?=[^-]|$)','i')},yt=/^(?:input|select|textarea|button)$/i,bt=/^h\d$/i,N=/^[^{]+\{\s*\[native \w/,wt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,z=/[+~]/,xt=/'|\\/g,m=new RegExp('\\\\([\\da-f]{1,6}'+i+'?|('+i+')|.)','ig'),g=function(t,e,n){var i='0x'+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},rt=function(){y()};try{b.apply(x=it.call(d.childNodes),d.childNodes),x[d.childNodes.length].nodeType}catch(a){b={apply:x.length?function(t,e){ht.apply(t,it.call(e))}:function(t,e){var n=t.length,i=0;while(t[n++]=e[i++]);t.length=n-1}}};function o(t,e,i,o){var h,v,p,c,C,w,m,x,g=e&&e.ownerDocument,f=e?e.nodeType:9;if(i=i||[],'string'!=typeof t||!t||1!==f&&9!==f&&11!==f)return i;if(!o&&((e?e.ownerDocument||e:d)!==n&&y(e),e=e||n,u)){if(11!==f&&(w=wt.exec(t)))if(h=w[1]){if(9===f){if(!(p=e.getElementById(h)))return i;if(p.id===h)return i.push(p),i}
else if(g&&(p=g.getElementById(h))&&D(e,p)&&p.id===h)return i.push(p),i}
else{if(w[2])return b.apply(i,e.getElementsByTagName(t)),i;if((h=w[3])&&s.getElementsByClassName&&e.getElementsByClassName)return b.apply(i,e.getElementsByClassName(h)),i};if(s.qsa&&!j[t+' ']&&(!l||!l.test(t))){if(1!==f)g=e,x=t;else if('object'!==e.nodeName.toLowerCase()){(c=e.getAttribute('id'))?c=c.replace(xt,'\\$&'):e.setAttribute('id',c=r),m=I(t),v=m.length,C=st.test(c)?'#'+c:'[id=\''+c+'\']';while(v--)m[v]=C+' '+R(m[v]);x=m.join(','),g=z.test(t)&&X(e.parentNode)||e};if(x)try{return b.apply(i,g.querySelectorAll(x)),i}catch(a){}finally{c===r&&e.removeAttribute('id')}}};return Z(t.replace(L,'$1'),e,i,o)};function U(){var n=[];function t(i,o){return n.push(i+' ')>e.cacheLength&&delete t[n.shift()],t[i+' ']=o};return t};function h(t){return t[r]=!0,t};function p(t){var i=n.createElement('div');try{return!!t(i)}catch(e){return!1}finally{i.parentNode&&i.parentNode.removeChild(i),i=null}};function V(t,n){var i=t.split('|'),o=i.length;while(o--)e.attrHandle[i[o]]=n};function at(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||nt)-(~t.sourceIndex||nt);if(i)return i;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1};function Ct(t){return function(e){var n=e.nodeName.toLowerCase();return'input'===n&&e.type===t}};function Tt(t){return function(e){var n=e.nodeName.toLowerCase();return('input'===n||'button'===n)&&e.type===t}};function k(t){return h(function(e){return e=+e,h(function(n,i){var o,s=t([],n.length,e),r=s.length;while(r--)n[o=s[r]]&&(n[o]=!(i[o]=n[o]))})})};function X(t){return t&&'undefined'!=typeof t.getElementsByTagName&&t};s=o.support={},J=o.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?'HTML'!==e.nodeName:!1},y=o.setDocument=function(t){var h,o,a=t?t.ownerDocument||t:d;return a!==n&&9===a.nodeType&&a.documentElement?(n=a,c=n.documentElement,u=!J(n),(o=n.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener('unload',rt,!1):o.attachEvent&&o.attachEvent('onunload',rt)),s.attributes=p(function(t){return t.className='i',!t.getAttribute('className')}),s.getElementsByTagName=p(function(t){return t.appendChild(n.createComment('')),!t.getElementsByTagName('*').length}),s.getElementsByClassName=N.test(n.getElementsByClassName),s.getById=p(function(t){return c.appendChild(t).id=r,!n.getElementsByName||!n.getElementsByName(r).length}),s.getById?(e.find.ID=function(t,e){if('undefined'!=typeof e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}},e.filter.ID=function(t){var e=t.replace(m,g);return function(t){return t.getAttribute('id')===e}}):(delete e.find.ID,e.filter.ID=function(t){var e=t.replace(m,g);return function(t){var n='undefined'!=typeof t.getAttributeNode&&t.getAttributeNode('id');return n&&n.value===e}}),e.find.TAG=s.getElementsByTagName?function(t,e){return'undefined'!=typeof e.getElementsByTagName?e.getElementsByTagName(t):s.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],s=0,o=e.getElementsByTagName(t);if('*'===t){while(n=o[s++])1===n.nodeType&&i.push(n);return i};return o},e.find.CLASS=s.getElementsByClassName&&function(t,e){return'undefined'!=typeof e.getElementsByClassName&&u?e.getElementsByClassName(t):void 0},w=[],l=[],(s.qsa=N.test(n.querySelectorAll))&&(p(function(t){c.appendChild(t).innerHTML='<a id=\''+r+'\'></a><select id=\''+r+'-\r\\\' msallowcapture=\'\'><option selected=\'\'></option></select>',t.querySelectorAll('[msallowcapture^=\'\']').length&&l.push('[*^$]='+i+'*(?:\'\'|"")'),t.querySelectorAll('[selected]').length||l.push('\\['+i+'*(?:value|'+B+')'),t.querySelectorAll('[id~='+r+'-]').length||l.push('~='),t.querySelectorAll(':checked').length||l.push(':checked'),t.querySelectorAll('a#'+r+'+*').length||l.push('.#.+[+~]')}),p(function(t){var e=n.createElement('input');e.setAttribute('type','hidden'),t.appendChild(e).setAttribute('name','D'),t.querySelectorAll('[name=d]').length&&l.push('name'+i+'*[*^$|!~]?='),t.querySelectorAll(':enabled').length||l.push(':enabled',':disabled'),t.querySelectorAll('*,:x'),l.push(',.*:')})),(s.matchesSelector=N.test(O=c.matches||c.webkitMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.msMatchesSelector))&&p(function(t){s.disconnectedMatch=O.call(t,'div'),O.call(t,'[s!=\'\']:x'),w.push('!=',q)}),l=l.length&&new RegExp(l.join('|')),w=w.length&&new RegExp(w.join('|')),h=N.test(c.compareDocumentPosition),D=h||N.test(c.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},F=h?function(t,e){if(t===e)return S=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i?i:(i=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&i||!s.sortDetached&&e.compareDocumentPosition(t)===i?t===n||t.ownerDocument===d&&D(d,t)?-1:e===n||e.ownerDocument===d&&D(d,e)?1:v?C(v,t)-C(v,e):0:4&i?-1:1)}:function(t,e){if(t===e)return S=!0,0;var i,o=0,a=t.parentNode,l=e.parentNode,s=[t],r=[e];if(!a||!l)return t===n?-1:e===n?1:a?-1:l?1:v?C(v,t)-C(v,e):0;if(a===l)return at(t,e);i=t;while(i=i.parentNode)s.unshift(i);i=e;while(i=i.parentNode)r.unshift(i);while(s[o]===r[o])o++;return o?at(s[o],r[o]):s[o]===d?-1:r[o]===d?1:0},n):n},o.matches=function(t,e){return o(t,null,null,e)},o.matchesSelector=function(t,e){if((t.ownerDocument||t)!==n&&y(t),e=e.replace(gt,'=\'$1\']'),s.matchesSelector&&u&&!j[e+' ']&&(!w||!w.test(e))&&(!l||!l.test(e)))try{var r=O.call(t,e);if(r||s.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){};return o(e,n,null,[t]).length>0},o.contains=function(t,e){return(t.ownerDocument||t)!==n&&y(t),D(t,e)},o.attr=function(t,i){(t.ownerDocument||t)!==n&&y(t);var r=e.attrHandle[i.toLowerCase()],o=r&&ut.call(e.attrHandle,i.toLowerCase())?r(t,i,!u):void 0;return void 0!==o?o:s.attributes||!u?t.getAttribute(i):(o=t.getAttributeNode(i))&&o.specified?o.value:null},o.error=function(t){throw new Error('Syntax error, unrecognized expression: '+t)},o.uniqueSort=function(t){var i,o=[],e=0,n=0;if(S=!s.detectDuplicates,v=!s.sortStable&&t.slice(0),t.sort(F),S){while(i=t[n++])i===t[n]&&(e=o.push(n));while(e--)t.splice(o[e],1)};return v=null,t},A=o.getText=function(t){var i,n='',o=0,e=t.nodeType;if(e){if(1===e||9===e||11===e){if('string'==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=A(t)}
else if(3===e||4===e)return t.nodeValue}
else while(i=t[o++])n+=A(i);return n},e=o.selectors={cacheLength:50,createPseudo:h,match:H,attrHandle:{},find:{},relative:{'>':{dir:'parentNode',first:!0},' ':{dir:'parentNode'},'+':{dir:'previousSibling',first:!0},'~':{dir:'previousSibling'}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(m,g),t[3]=(t[3]||t[4]||t[5]||'').replace(m,g),'~='===t[2]&&(t[3]=' '+t[3]+' '),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),'nth'===t[1].slice(0,3)?(t[3]||o.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*('even'===t[3]||'odd'===t[3])),t[5]=+(t[7]+t[8]||'odd'===t[3])):t[3]&&o.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return H.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||'':e&&vt.test(e)&&(n=I(e,!0))&&(n=e.indexOf(')',e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(m,g).toLowerCase();return'*'===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=tt[t+' '];return e||(e=new RegExp('(^|'+i+')'+t+'('+i+'|$)'))&&tt(t,function(t){return e.test('string'==typeof t.className&&t.className||'undefined'!=typeof t.getAttribute&&t.getAttribute('class')||'')})},ATTR:function(t,e,n){return function(i){var s=o.attr(i,t);return null==s?'!='===e:e?(s+='','='===e?s===n:'!='===e?s!==n:'^='===e?n&&0===s.indexOf(n):'*='===e?n&&s.indexOf(n)>-1:'$='===e?n&&s.slice(-n.length)===n:'~='===e?(' '+s.replace(pt,' ')+' ').indexOf(n)>-1:'|='===e?s===n||s.slice(0,n.length+1)===n+'-':!1):!0}},CHILD:function(t,e,n,i,o){var l='nth'!==t.slice(0,3),a='last'!==t.slice(-4),s='of-type'===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,c){var m,g,p,u,h,v,y=l!==a?'nextSibling':'previousSibling',b=e.parentNode,x=s&&e.nodeName.toLowerCase(),w=!c&&!s,d=!1;if(b){if(l){while(y){u=e;while(u=u[y])if(s?u.nodeName.toLowerCase()===x:1===u.nodeType)return!1;v=y='only'===t&&!v&&'nextSibling'};return!0};if(v=[a?b.firstChild:b.lastChild],a&&w){u=b,p=u[r]||(u[r]={}),g=p[u.uniqueID]||(p[u.uniqueID]={}),m=g[t]||[],h=m[0]===f&&m[1],d=h&&m[2],u=h&&b.childNodes[h];while(u=++h&&u&&u[y]||(d=h=0)||v.pop())if(1===u.nodeType&&++d&&u===e){g[t]=[f,h,d];break}}
else if(w&&(u=e,p=u[r]||(u[r]={}),g=p[u.uniqueID]||(p[u.uniqueID]={}),m=g[t]||[],h=m[0]===f&&m[1],d=h),d===!1)while(u=++h&&u&&u[y]||(d=h=0)||v.pop())if((s?u.nodeName.toLowerCase()===x:1===u.nodeType)&&++d&&(w&&(p=u[r]||(u[r]={}),g=p[u.uniqueID]||(p[u.uniqueID]={}),g[t]=[f,d]),u===e))break;return d-=o,d===i||d%i===0&&d/i>=0}}},PSEUDO:function(t,n){var s,i=e.pseudos[t]||e.setFilters[t.toLowerCase()]||o.error('unsupported pseudo: '+t);return i[r]?i(n):i.length>1?(s=[t,t,'',n],e.setFilters.hasOwnProperty(t.toLowerCase())?h(function(t,e){var o,s=i(t,n),r=s.length;while(r--)o=C(t,s[r]),t[o]=!(e[o]=s[r])}):function(t){return i(t,0,s)}):i}},pseudos:{not:h(function(t){var e=[],i=[],n=M(t.replace(L,'$1'));return n[r]?h(function(t,e,i,o){var r,a=n(t,null,o,[]),s=t.length;while(s--)(r=a[s])&&(t[s]=!(e[s]=r))}):function(t,o,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}}),has:h(function(t){return function(e){return o(t,e).length>0}}),contains:h(function(t){return t=t.replace(m,g),function(e){return(e.textContent||e.innerText||A(e)).indexOf(t)>-1}}),lang:h(function(t){return st.test(t||'')||o.error('unsupported lang: '+t),t=t.replace(m,g).toLowerCase(),function(e){var n;do if(n=u?e.lang:e.getAttribute('xml:lang')||e.getAttribute('lang'))return n=n.toLowerCase(),n===t||0===n.indexOf(t+'-');while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===c},focus:function(t){return t===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!0},checked:function(t){var e=t.nodeName.toLowerCase();return'input'===e&&!!t.checked||'option'===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return bt.test(t.nodeName)},input:function(t){return yt.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return'input'===e&&'button'===t.type||'button'===e},text:function(t){var e;return'input'===t.nodeName.toLowerCase()&&'text'===t.type&&(null==(e=t.getAttribute('type'))||'text'===e.toLowerCase())},first:k(function(){return[0]}),last:k(function(t,e){return[e-1]}),eq:k(function(t,e,n){return[0>n?n+e:n]}),even:k(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:k(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:k(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:k(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},e.pseudos.nth=e.pseudos.eq;for(E in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[E]=Ct(E);for(E in{submit:!0,reset:!0})e.pseudos[E]=Tt(E);function lt(){};lt.prototype=e.filters=e.pseudos,e.setFilters=new lt,I=o.tokenize=function(t,n){var r,s,l,a,i,c,u,d=et[t+' '];if(d)return n?0:d.slice(0);i=t,c=[],u=e.preFilter;while(i){r&&!(s=ft.exec(i))||(s&&(i=i.slice(s[0].length)||i),c.push(l=[])),r=!1,(s=mt.exec(i))&&(r=s.shift(),l.push({value:r,type:s[0].replace(L,' ')}),i=i.slice(r.length));for(a in e.filter)!(s=H[a].exec(i))||u[a]&&!(s=u[a](s))||(r=s.shift(),l.push({value:r,type:a,matches:s}),i=i.slice(r.length));if(!r)break};return n?i.length:i?o.error(t):et(t,c).slice(0)};function R(t){for(var e=0,i=t.length,n='';i>e;e++)n+=t[e].value;return n};function Y(t,e,n){var i=e.dir,o=n&&'parentNode'===i,s=ct++;return e.first?function(e,n,s){while(e=e[i])if(1===e.nodeType||o)return t(e,n,s)}:function(e,n,a){var l,c,u,d=[f,s];if(a){while(e=e[i])if((1===e.nodeType||o)&&t(e,n,a))return!0}
else while(e=e[i])if(1===e.nodeType||o){if(u=e[r]||(e[r]={}),c=u[e.uniqueID]||(u[e.uniqueID]={}),(l=c[i])&&l[0]===f&&l[1]===s)return d[2]=l[2];if(c[i]=d,d[2]=t(e,n,a))return!0}}};function Q(t){return t.length>1?function(e,n,i){var o=t.length;while(o--)if(!t[o](e,n,i))return!1;return!0}:t[0]};function kt(t,e,n){for(var i=0,s=e.length;s>i;i++)o(t,e[i],n);return n};function W(t,e,n,i,o){for(var r,a=[],s=0,l=t.length,c=null!=e;l>s;s++)(r=t[s])&&(n&&!n(r,i,o)||(a.push(r),c&&e.push(s)));return a};function G(t,e,n,i,o,s){return i&&!i[r]&&(i=G(i)),o&&!o[r]&&(o=G(o,s)),h(function(s,r,a,l){var d,u,h,m=[],f=[],g=r.length,v=s||kt(e||'*',a.nodeType?[a]:a,[]),p=!t||!s&&e?v:W(v,m,t,a,l),c=n?o||(s?t:g||i)?[]:r:p;if(n&&n(p,c,a,l),i){d=W(c,f),i(d,[],a,l),u=d.length;while(u--)(h=d[u])&&(c[f[u]]=!(p[f[u]]=h))};if(s){if(o||t){if(o){d=[],u=c.length;while(u--)(h=c[u])&&d.push(p[u]=h);o(null,c=[],d,l)};u=c.length;while(u--)(h=c[u])&&(d=o?C(s,h):m[u])>-1&&(s[d]=!(r[d]=h))}}
else c=W(c===r?c.splice(g,c.length):c),o?o(null,r,c,l):b.apply(r,c)})};function K(t){for(var a,o,i,l=t.length,c=e.relative[t[0].type],u=c||e.relative[' '],n=c?1:0,d=Y(function(t){return t===a},u,!0),h=Y(function(t){return C(a,t)>-1},u,!0),s=[function(t,e,n){var i=!c&&(n||e!==P)||((a=e).nodeType?d(t,e,n):h(t,e,n));return a=null,i}];l>n;n++)if(o=e.relative[t[n].type])s=[Y(Q(s),o)];else{if(o=e.filter[t[n].type].apply(null,t[n].matches),o[r]){for(i=++n;l>i;i++)if(e.relative[t[i].type])break;return G(n>1&&Q(s),n>1&&R(t.slice(0,n-1).concat({value:' '===t[n-2].type?'*':''})).replace(L,'$1'),o,i>n&&K(t.slice(n,i)),l>i&&K(t=t.slice(i)),l>i&&R(t))};s.push(o)};return Q(s)};function Et(t,i){var s=i.length>0,r=t.length>0,a=function(a,l,c,d,h){var p,x,v,w=0,m='0',C=a&&[],g=[],T=P,k=a||r&&e.find.TAG('*',h),E=f+=null==T?1:Math.random()||.1,S=k.length;for(h&&(P=l===n||l||h);m!==S&&null!=(p=k[m]);m++){if(r&&p){x=0,l||p.ownerDocument===n||(y(p),c=!u);while(v=t[x++])if(v(p,l||n,c)){d.push(p);break};h&&(f=E)};s&&((p=!v&&p)&&w--,a&&C.push(p))};if(w+=m,s&&m!==w){x=0;while(v=i[x++])v(C,g,l,c);if(a){if(w>0)while(m--)C[m]||g[m]||(g[m]=dt.call(d));g=W(g)};b.apply(d,g),h&&!a&&g.length>0&&w+i.length>1&&o.uniqueSort(d)};return h&&(f=E,P=T),C};return s?h(a):a};return M=o.compile=function(t,e){var i,o=[],s=[],n=j[t+' '];if(!n){e||(e=I(t)),i=e.length;while(i--)n=K(e[i]),n[r]?o.push(n):s.push(n);n=j(t,Et(s,o)),n.selector=t};return n},Z=o.select=function(t,n,i,o){var l,r,a,h,p,d='function'==typeof t&&t,c=!o&&I(t=d.selector||t);if(i=i||[],1===c.length){if(r=c[0]=c[0].slice(0),r.length>2&&'ID'===(a=r[0]).type&&s.getById&&9===n.nodeType&&u&&e.relative[r[1].type]){if(n=(e.find.ID(a.matches[0].replace(m,g),n)||[])[0],!n)return i;d&&(n=n.parentNode),t=t.slice(r.shift().value.length)};l=H.needsContext.test(t)?0:r.length;while(l--){if(a=r[l],e.relative[h=a.type])break;if((p=e.find[h])&&(o=p(a.matches[0].replace(m,g),z.test(r[0].type)&&X(n.parentNode)||n))){if(r.splice(l,1),t=o.length&&R(r),!t)return b.apply(i,o),i;break}}};return(d||M(t,c))(o,n,!u,i,!n||z.test(t)&&X(n.parentNode)||n),i},s.sortStable=r.split('').sort(F).join('')===r,s.detectDuplicates=!!S,y(),s.sortDetached=p(function(t){return 1&t.compareDocumentPosition(n.createElement('div'))}),p(function(t){return t.innerHTML='<a href=\'#\'></a>','#'===t.firstChild.getAttribute('href')})||V('type|href|height|width',function(t,e,n){return n?void 0:t.getAttribute(e,'type'===e.toLowerCase()?1:2)}),s.attributes&&p(function(t){return t.innerHTML='<input/>',t.firstChild.setAttribute('value',''),''===t.firstChild.getAttribute('value')})||V('value',function(t,e,n){return n||'input'!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),p(function(t){return null==t.getAttribute('disabled')})||V(B,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),o}(t);e.find=E,e.expr=E.selectors,e.expr[':']=e.expr.pseudos,e.uniqueSort=e.unique=E.uniqueSort,e.text=E.getText,e.isXMLDoc=E.isXML,e.contains=E.contains;var k=function(t,n,i){var o=[],s=void 0!==i;while((t=t[n])&&9!==t.nodeType)if(1===t.nodeType){if(s&&e(t).is(i))break;o.push(t)};return o},Wt=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Mt=e.expr.match.needsContext,Ft=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,an=/^.[^:#\[\.,]*$/;function at(t,n,i){if(e.isFunction(n))return e.grep(t,function(t,e){return!!n.call(t,e,t)!==i});if(n.nodeType)return e.grep(t,function(t){return t===n!==i});if('string'==typeof n){if(an.test(n))return e.filter(n,t,i);n=e.filter(n,t)};return e.grep(t,function(t){return e.inArray(t,n)>-1!==i})};e.filter=function(t,n,i){var o=n[0];return i&&(t=':not('+t+')'),1===n.length&&1===o.nodeType?e.find.matchesSelector(o,t)?[o]:[]:e.find.matches(t,e.grep(n,function(t){return 1===t.nodeType}))},e.fn.extend({find:function(t){var n,i=[],o=this,s=o.length;if('string'!=typeof t)return this.pushStack(e(t).filter(function(){for(n=0;s>n;n++)if(e.contains(o[n],this))return!0}));for(n=0;s>n;n++)e.find(t,o[n],i);return i=this.pushStack(s>1?e.unique(i):i),i.selector=this.selector?this.selector+' '+t:t,i},filter:function(t){return this.pushStack(at(this,t||[],!1))},not:function(t){return this.pushStack(at(this,t||[],!0))},is:function(t){return!!at(this,'string'==typeof t&&Mt.test(t)?e(t):t||[],!1).length}});var ot,sn=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,rn=e.fn.init=function(t,n,i){var s,r;if(!t)return this;if(i=i||ot,'string'==typeof t){if(s='<'===t.charAt(0)&&'>'===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:sn.exec(t),!s||!s[1]&&n)return!n||n.jquery?(n||i).find(t):this.constructor(n).find(t);if(s[1]){if(n=n instanceof e?n[0]:n,e.merge(this,e.parseHTML(s[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),Ft.test(s[1])&&e.isPlainObject(n))for(s in n)e.isFunction(this[s])?this[s](n[s]):this.attr(s,n[s]);return this};if(r=o.getElementById(s[2]),r&&r.parentNode){if(r.id!==s[2])return ot.find(t);this.length=1,this[0]=r};return this.context=o,this.selector=t,this};return t.nodeType?(this.context=this[0]=t,this.length=1,this):e.isFunction(t)?'undefined'!=typeof i.ready?i.ready(t):t(e):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),e.makeArray(t,this))};rn.prototype=e.fn,ot=e(o);var nn=/^(?:parents|prev(?:Until|All))/,on={children:!0,contents:!0,next:!0,prev:!0};e.fn.extend({has:function(t){var n,i=e(t,this),o=i.length;return this.filter(function(){for(n=0;o>n;n++)if(e.contains(this,i[n]))return!0})},closest:function(t,n){for(var i,s=0,a=this.length,o=[],r=Mt.test(t)||'string'!=typeof t?e(t,n||this.context):0;a>s;s++)for(i=this[s];i&&i!==n;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&e.find.matchesSelector(i,t))){o.push(i);break};return this.pushStack(o.length>1?e.uniqueSort(o):o)},index:function(t){return t?'string'==typeof t?e.inArray(this[0],e(t)):e.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,n){return this.pushStack(e.uniqueSort(e.merge(this.get(),e(t,n))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}});function Ut(t,e){do t=t[e];while(t&&1!==t.nodeType);return t};e.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,'parentNode')},parentsUntil:function(t,e,n){return k(t,'parentNode',n)},next:function(t){return Ut(t,'nextSibling')},prev:function(t){return Ut(t,'previousSibling')},nextAll:function(t){return k(t,'nextSibling')},prevAll:function(t){return k(t,'previousSibling')},nextUntil:function(t,e,n){return k(t,'nextSibling',n)},prevUntil:function(t,e,n){return k(t,'previousSibling',n)},siblings:function(t){return Wt((t.parentNode||{}).firstChild,t)},children:function(t){return Wt(t.firstChild)},contents:function(t){return e.nodeName(t,'iframe')?t.contentDocument||t.contentWindow.document:e.merge([],t.childNodes)}},function(t,n){e.fn[t]=function(i,o){var s=e.map(this,n,i);return'Until'!==t.slice(-5)&&(o=i),o&&'string'==typeof o&&(s=e.filter(o,s)),this.length>1&&(on[t]||(s=e.uniqueSort(s)),nn.test(t)&&(s=s.reverse())),this.pushStack(s)}});var c=/\S+/g;function pn(t){var n={};return e.each(t.match(c)||[],function(t,e){n[e]=!0}),n};e.Callbacks=function(t){t='string'==typeof t?pn(t):e.extend({},t);var r,i,c,s,n=[],a=[],o=-1,u=function(){for(s=t.once,c=r=!0;a.length;o=-1){i=a.shift();while(++o<n.length)n[o].apply(i[0],i[1])===!1&&t.stopOnFalse&&(o=n.length,i=!1)};t.memory||(i=!1),r=!1,s&&(n=i?[]:'')},l={add:function(){return n&&(i&&!r&&(o=n.length-1,a.push(i)),function s(i){e.each(i,function(i,o){e.isFunction(o)?t.unique&&l.has(o)||n.push(o):o&&o.length&&'string'!==e.type(o)&&s(o)})}(arguments),i&&!r&&u()),this},remove:function(){return e.each(arguments,function(t,i){var s;while((s=e.inArray(i,n,s))>-1)n.splice(s,1),o>=s&&o--}),this},has:function(t){return t?e.inArray(t,n)>-1:n.length>0},empty:function(){return n&&(n=[]),this},disable:function(){return s=a=[],n=i='',this},disabled:function(){return!n},lock:function(){return s=!0,i||l.disable(),this},locked:function(){return!!s},fireWith:function(t,e){return s||(e=e||[],e=[t,e.slice?e.slice():e],a.push(e),r||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},e.extend({Deferred:function(t){var o=[['resolve','done',e.Callbacks('once memory'),'resolved'],['reject','fail',e.Callbacks('once memory'),'rejected'],['notify','progress',e.Callbacks('memory')]],s='pending',i={state:function(){return s},always:function(){return n.done(arguments).fail(arguments),this},then:function(){var t=arguments;return e.Deferred(function(s){e.each(o,function(o,r){var a=e.isFunction(t[o])&&t[o];n[r[1]](function(){var t=a&&a.apply(this,arguments);t&&e.isFunction(t.promise)?t.promise().progress(s.notify).done(s.resolve).fail(s.reject):s[r[0]+'With'](this===i?s.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?e.extend(t,i):i}},n={};return i.pipe=i.then,e.each(o,function(t,e){var r=e[2],a=e[3];i[e[1]]=r.add,a&&r.add(function(){s=a},o[1^t][2].disable,o[2][2].lock),n[e[0]]=function(){return n[e[0]+'With'](this===n?i:this,arguments),this},n[e[0]+'With']=r.fireWith}),i.promise(n),t&&t.call(n,n),n},when:function(t){var n=0,o=f.call(arguments),i=o.length,r=1!==i||t&&e.isFunction(t.promise)?i:0,s=1===r?t:e.Deferred(),c=function(t,e,n){return function(i){e[t]=this,n[t]=arguments.length>1?f.call(arguments):i,n===a?s.notifyWith(e,n):--r||s.resolveWith(e,n)}},a,u,l;if(i>1)for(a=new Array(i),u=new Array(i),l=new Array(i);i>n;n++)o[n]&&e.isFunction(o[n].promise)?o[n].promise().progress(c(n,u,a)).done(c(n,l,o)).fail(s.reject):--r;return r||s.resolveWith(l,o),s.promise()}});var R;e.fn.ready=function(t){return e.ready.promise().done(t),this},e.extend({isReady:!1,readyWait:1,holdReady:function(t){t?e.readyWait++:e.ready(!0)},ready:function(t){(t===!0?--e.readyWait:e.isReady)||(e.isReady=!0,t!==!0&&--e.readyWait>0||(R.resolveWith(o,[e]),e.fn.triggerHandler&&(e(o).triggerHandler('ready'),e(o).off('ready'))))}});function Vt(){o.addEventListener?(o.removeEventListener('DOMContentLoaded',m),t.removeEventListener('load',m)):(o.detachEvent('onreadystatechange',m),t.detachEvent('onload',m))};function m(){(o.addEventListener||'load'===t.event.type||'complete'===o.readyState)&&(Vt(),e.ready())};e.ready.promise=function(n){if(!R)if(R=e.Deferred(),'complete'===o.readyState||'loading'!==o.readyState&&!o.documentElement.doScroll)t.setTimeout(e.ready);else if(o.addEventListener)o.addEventListener('DOMContentLoaded',m),t.addEventListener('load',m);else{o.attachEvent('onreadystatechange',m),t.attachEvent('onload',m);var s=!1;try{s=null==t.frameElement&&o.documentElement}catch(i){};s&&s.doScroll&&!function r(){if(!e.isReady){try{s.doScroll('left')}catch(n){return t.setTimeout(r,50)};Vt(),e.ready()}}()};return R.promise(n)},e.ready.promise();var Rt;for(Rt in e(i))break;i.ownFirst='0'===Rt,i.inlineBlockNeedsLayout=!1,e(function(){var s,e,t,n;t=o.getElementsByTagName('body')[0],t&&t.style&&(e=o.createElement('div'),n=o.createElement('div'),n.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',t.appendChild(n).appendChild(e),'undefined'!=typeof e.style.zoom&&(e.style.cssText='display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1',i.inlineBlockNeedsLayout=s=3===e.offsetWidth,s&&(t.style.zoom=1)),t.removeChild(n))}),function(){var e=o.createElement('div');i.deleteExpando=!0;try{delete e.test}catch(t){i.deleteExpando=!1};e=null}();var P=function(t){var n=e.noData[(t.nodeName+' ').toLowerCase()],i=+t.nodeType||1;return 1!==i&&9!==i?!1:!n||n!==!0&&t.getAttribute('classid')===n},tn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,en=/([A-Z])/g;function Xt(t,n,i){if(void 0===i&&1===t.nodeType){var s='data-'+n.replace(en,'-$1').toLowerCase();if(i=t.getAttribute(s),'string'==typeof i){try{i='true'===i?!0:'false'===i?!1:'null'===i?null:+i+''===i?+i:tn.test(i)?e.parseJSON(i):i}catch(o){};e.data(t,n,i)}
else i=void 0};return i};function lt(t){var n;for(n in t)if(('data'!==n||!e.isEmptyObject(t[n]))&&'toJSON'!==n)return!1;return!0};function Yt(t,n,i,o){if(P(t)){var l,r,c=e.expando,u=t.nodeType,a=u?e.cache:t,s=u?t[c]:t[c]&&c;if(s&&a[s]&&(o||a[s].data)||void 0!==i||'string'!=typeof n)return s||(s=u?t[c]=d.pop()||e.guid++:c),a[s]||(a[s]=u?{}:{toJSON:e.noop}),'object'!=typeof n&&'function'!=typeof n||(o?a[s]=e.extend(a[s],n):a[s].data=e.extend(a[s].data,n)),r=a[s],o||(r.data||(r.data={}),r=r.data),void 0!==i&&(r[e.camelCase(n)]=i),'string'==typeof n?(l=r[n],null==l&&(l=r[e.camelCase(n)])):l=r,l}};function Qt(t,n,o){if(P(t)){var a,l,c=t.nodeType,s=c?e.cache:t,r=c?t[e.expando]:e.expando;if(s[r]){if(n&&(a=o?s[r]:s[r].data)){e.isArray(n)?n=n.concat(e.map(n,e.camelCase)):n in a?n=[n]:(n=e.camelCase(n),n=n in a?[n]:n.split(' ')),l=n.length;while(l--)delete a[n[l]];if(o?!lt(a):!e.isEmptyObject(a))return}(o||(delete s[r].data,lt(s[r])))&&(c?e.cleanData([t],!0):i.deleteExpando||s!=s.window?delete s[r]:s[r]=void 0)}}};e.extend({cache:{},noData:{'applet ':!0,'embed ':!0,'object ':'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'},hasData:function(t){return t=t.nodeType?e.cache[t[e.expando]]:t[e.expando],!!t&&!lt(t)},data:function(t,e,n){return Yt(t,e,n)},removeData:function(t,e){return Qt(t,e)},_data:function(t,e,n){return Yt(t,e,n,!0)},_removeData:function(t,e){return Qt(t,e,!0)}}),e.fn.extend({data:function(t,n){var s,o,r,i=this[0],a=i&&i.attributes;if(void 0===t){if(this.length&&(r=e.data(i),1===i.nodeType&&!e._data(i,'parsedAttrs'))){s=a.length;while(s--)a[s]&&(o=a[s].name,0===o.indexOf('data-')&&(o=e.camelCase(o.slice(5)),Xt(i,o,r[o])));e._data(i,'parsedAttrs',!0)};return r};return'object'==typeof t?this.each(function(){e.data(this,t)}):arguments.length>1?this.each(function(){e.data(this,t,n)}):i?Xt(i,t,e.data(i,t)):void 0},removeData:function(t){return this.each(function(){e.removeData(this,t)})}}),e.extend({queue:function(t,n,i){var o;return t?(n=(n||'fx')+'queue',o=e._data(t,n),i&&(!o||e.isArray(i)?o=e._data(t,n,e.makeArray(i)):o.push(i)),o||[]):void 0},dequeue:function(t,n){n=n||'fx';var i=e.queue(t,n),r=i.length,o=i.shift(),s=e._queueHooks(t,n),a=function(){e.dequeue(t,n)};'inprogress'===o&&(o=i.shift(),r--),o&&('fx'===n&&i.unshift('inprogress'),delete s.stop,o.call(t,a,s)),!r&&s&&s.empty.fire()},_queueHooks:function(t,n){var i=n+'queueHooks';return e._data(t,i)||e._data(t,i,{empty:e.Callbacks('once memory').add(function(){e._removeData(t,n+'queue'),e._removeData(t,i)})})}}),e.fn.extend({queue:function(t,n){var i=2;return'string'!=typeof t&&(n=t,t='fx',i--),arguments.length<i?e.queue(this[0],t):void 0===n?this:this.each(function(){var i=e.queue(this,t,n);e._queueHooks(this,t),'fx'===t&&'inprogress'!==i[0]&&e.dequeue(this,t)})},dequeue:function(t){return this.each(function(){e.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||'fx',[])},promise:function(t,n){var i,s=1,r=e.Deferred(),o=this,a=this.length,l=function(){--s||r.resolveWith(o,[o])};'string'!=typeof t&&(n=t,t=void 0),t=t||'fx';while(a--)i=e._data(o[a],t+'queueHooks'),i&&i.empty&&(s++,i.empty.add(l));return l(),r.promise(n)}}),function(){var t;i.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=o.getElementsByTagName('body')[0],n&&n.style?(e=o.createElement('div'),i=o.createElement('div'),i.style.cssText='position:absolute;border:0;width:0;height:0;top:0;left:-9999px',n.appendChild(i).appendChild(e),'undefined'!=typeof e.style.zoom&&(e.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1',e.appendChild(o.createElement('div')).style.width='5px',t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp('^(?:([+-])=|)('+nt+')([a-z%]*)$','i'),y=['Top','Right','Bottom','Left'],A=function(t,n){return t=n||t,'none'===e.css(t,'display')||!e.contains(t.ownerDocument,t)};function Gt(t,n,i,o){var c,r=1,d=20,u=o?function(){return o.cur()}:function(){return e.css(t,n,'')},l=u(),a=i&&i[3]||(e.cssNumber[n]?'':'px'),s=(e.cssNumber[n]||'px'!==a&&+l)&&it.exec(e.css(t,n));if(s&&s[3]!==a){a=a||s[3],i=i||[],s=+l||1;do r=r||'.5',s/=r,e.style(t,n,s+a);while(r!==(r=u()/l)&&1!==r&&--d)};return i&&(s=+s||+l||0,c=i[1]?s+(i[1]+1)*i[2]:+i[2],o&&(o.unit=a,o.start=s,o.end=c)),c};var p=function(t,n,i,o,s,a,l){var r=0,u=t.length,c=null==i;if('object'===e.type(i)){s=!0;for(r in i)p(t,n,r,i[r],!0,a,l)}
else if(void 0!==o&&(s=!0,e.isFunction(o)||(l=!0),c&&(l?(n.call(t,o),n=null):(c=n,n=function(t,n,i){return c.call(e(t),i)})),n))for(;u>r;r++)n(t[r],i,l?o:o.call(t[r],r,n(t[r],i)));return s?t:c?n.call(t):u?n(t[0],i):a},tt=/^(?:checkbox|radio)$/i,jt=/<([\w:-]+)/,Lt=/^$|\/(?:java|ecma)script/i,et=/^\s+/,Ht='abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video';function Kt(t){var n=Ht.split('|'),e=t.createDocumentFragment();if(e.createElement)while(n.length)e.createElement(n.pop());return e};!function(){var t=o.createElement('div'),s=o.createDocumentFragment(),n=o.createElement('input');t.innerHTML='  <link/><table></table><a href=\'/a\'>a</a><input type=\'checkbox\'/>',i.leadingWhitespace=3===t.firstChild.nodeType,i.tbody=!t.getElementsByTagName('tbody').length,i.htmlSerialize=!!t.getElementsByTagName('link').length,i.html5Clone='<:nav></:nav>'!==o.createElement('nav').cloneNode(!0).outerHTML,n.type='checkbox',n.checked=!0,s.appendChild(n),i.appendChecked=n.checked,t.innerHTML='<textarea>x</textarea>',i.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,s.appendChild(t),n=o.createElement('input'),n.setAttribute('type','radio'),n.setAttribute('checked','checked'),n.setAttribute('name','t'),t.appendChild(n),i.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,i.noCloneEvent=!!t.addEventListener,t[e.expando]=1,i.attributes=!t.getAttribute(e.expando)}();var a={option:[1,'<select multiple=\'multiple\'>','</select>'],legend:[1,'<fieldset>','</fieldset>'],area:[1,'<map>','</map>'],param:[1,'<object>','</object>'],thead:[1,'<table>','</table>'],tr:[2,'<table><tbody>','</tbody></table>'],col:[2,'<table><tbody></tbody><colgroup>','</colgroup></table>'],td:[3,'<table><tbody><tr>','</tr></tbody></table>'],_default:i.htmlSerialize?[0,'','']:[1,'X<div>','</div>']};a.optgroup=a.option,a.tbody=a.tfoot=a.colgroup=a.caption=a.thead,a.th=a.td;function s(t,n){var r,o,a=0,i='undefined'!=typeof t.getElementsByTagName?t.getElementsByTagName(n||'*'):'undefined'!=typeof t.querySelectorAll?t.querySelectorAll(n||'*'):void 0;if(!i)for(i=[],r=t.childNodes||t;null!=(o=r[a]);a++)!n||e.nodeName(o,n)?i.push(o):e.merge(i,s(o,n));return void 0===n||n&&e.nodeName(t,n)?e.merge([t],i):i};function ct(t,n){for(var o,i=0;null!=(o=t[i]);i++)e._data(o,'globalEval',!n||e._data(n[i],'globalEval'))};var Ze=/<|&#?\w+;/,Ot=/<tbody/i;function fn(t){tt.test(t.type)&&(t.defaultChecked=t.checked)};function Jt(t,n,o,r,u){for(var d,l,y,c,g,v,p,b=t.length,f=Kt(n),h=[],m=0;b>m;m++)if(l=t[m],l||0===l)if('object'===e.type(l))e.merge(h,l.nodeType?[l]:l);else if(Ze.test(l)){c=c||f.appendChild(n.createElement('div')),g=(jt.exec(l)||['',''])[1].toLowerCase(),p=a[g]||a._default,c.innerHTML=p[1]+e.htmlPrefilter(l)+p[2],d=p[0];while(d--)c=c.lastChild;if(!i.leadingWhitespace&&et.test(l)&&h.push(n.createTextNode(et.exec(l)[0])),!i.tbody){l='table'!==g||Ot.test(l)?'<table>'!==p[1]||Ot.test(l)?0:c:c.firstChild,d=l&&l.childNodes.length;while(d--)e.nodeName(v=l.childNodes[d],'tbody')&&!v.childNodes.length&&l.removeChild(v)};e.merge(h,c.childNodes),c.textContent='';while(c.firstChild)c.removeChild(c.firstChild);c=f.lastChild}
else h.push(n.createTextNode(l));c&&f.removeChild(c),i.appendChecked||e.grep(s(h,'input'),fn),m=0;while(l=h[m++])if(r&&e.inArray(l,r)>-1)u&&u.push(l);else if(y=e.contains(l.ownerDocument,l),c=s(f.appendChild(l),'script'),y&&ct(c),o){d=0;while(l=c[d++])Lt.test(l.type||'')&&o.push(l)};return c=null,f};!function(){var e,n,s=o.createElement('div');for(e in{submit:!0,change:!0,focusin:!0})n='on'+e,(i[e]=n in t)||(s.setAttribute(n,'t'),i[e]=s.attributes[n].expando===!1);s=null}();var Z=/^(?:input|select|textarea)$/i,Ke=/^key/,Je=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,At=/^(?:focusinfocus|focusoutblur)$/,Pt=/^([^.]*)(?:\.(.+)|)/;function M(){return!0};function I(){return!1};function Zt(){try{return o.activeElement}catch(t){}};function ut(t,n,i,o,s,r){var a,l;if('object'==typeof n){'string'!=typeof i&&(o=o||i,i=void 0);for(l in n)ut(t,l,i,o,n[l],r);return t};if(null==o&&null==s?(s=i,o=i=void 0):null==s&&('string'==typeof i?(s=o,o=void 0):(s=o,o=i,i=void 0)),s===!1)s=I;else if(!s)return t;return 1===r&&(a=s,s=function(t){return e().off(t),a.apply(this,arguments)},s.guid=a.guid||(a.guid=e.guid++)),t.each(function(){e.event.add(this,n,s,o,i)})};e.event={global:{},add:function(t,n,i,o,s){var m,p,g,f,a,l,u,d,r,v,y,h=e._data(t);if(h){i.handler&&(f=i,i=f.handler,s=f.selector),i.guid||(i.guid=e.guid++),(p=h.events)||(p=h.events={}),(l=h.handle)||(l=h.handle=function(t){return'undefined'==typeof e||t&&e.event.triggered===t.type?void 0:e.event.dispatch.apply(l.elem,arguments)},l.elem=t),n=(n||'').match(c)||[''],g=n.length;while(g--)m=Pt.exec(n[g])||[],r=y=m[1],v=(m[2]||'').split('.').sort(),r&&(a=e.event.special[r]||{},r=(s?a.delegateType:a.bindType)||r,a=e.event.special[r]||{},u=e.extend({type:r,origType:y,data:o,handler:i,guid:i.guid,selector:s,needsContext:s&&e.expr.match.needsContext.test(s),namespace:v.join('.')},f),(d=p[r])||(d=p[r]=[],d.delegateCount=0,a.setup&&a.setup.call(t,o,v,l)!==!1||(t.addEventListener?t.addEventListener(r,l,!1):t.attachEvent&&t.attachEvent('on'+r,l))),a.add&&(a.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),e.event.global[r]=!0);t=null}},remove:function(t,n,i,o,s){var f,a,l,v,m,h,u,d,r,g,y,p=e.hasData(t)&&e._data(t);if(p&&(h=p.events)){n=(n||'').match(c)||[''],m=n.length;while(m--)if(l=Pt.exec(n[m])||[],r=y=l[1],g=(l[2]||'').split('.').sort(),r){u=e.event.special[r]||{},r=(o?u.delegateType:u.bindType)||r,d=h[r]||[],l=l[2]&&new RegExp('(^|\\.)'+g.join('\\.(?:.*\\.|)')+'(\\.|$)'),v=f=d.length;while(f--)a=d[f],!s&&y!==a.origType||i&&i.guid!==a.guid||l&&!l.test(a.namespace)||o&&o!==a.selector&&('**'!==o||!a.selector)||(d.splice(f,1),a.selector&&d.delegateCount--,u.remove&&u.remove.call(t,a));v&&!d.length&&(u.teardown&&u.teardown.call(t,g,p.handle)!==!1||e.removeEvent(t,r,p.handle),delete h[r])}
else for(r in h)e.event.remove(t,r+n[m],i,o,!0);e.isEmptyObject(h)&&(delete p.handle,e._removeData(t,'events'))}},trigger:function(n,i,s,r){var h,p,l,g,d,u,v,m=[s||o],c=S.call(n,'type')?n.type:n,f=S.call(n,'namespace')?n.namespace.split('.'):[];if(l=u=s=s||o,3!==s.nodeType&&8!==s.nodeType&&!At.test(c+e.event.triggered)&&(c.indexOf('.')>-1&&(f=c.split('.'),c=f.shift(),f.sort()),p=c.indexOf(':')<0&&'on'+c,n=n[e.expando]?n:new e.Event(c,'object'==typeof n&&n),n.isTrigger=r?2:3,n.namespace=f.join('.'),n.rnamespace=n.namespace?new RegExp('(^|\\.)'+f.join('\\.(?:.*\\.|)')+'(\\.|$)'):null,n.result=void 0,n.target||(n.target=s),i=null==i?[n]:e.makeArray(i,[n]),d=e.event.special[c]||{},r||!d.trigger||d.trigger.apply(s,i)!==!1)){if(!r&&!d.noBubble&&!e.isWindow(s)){for(g=d.delegateType||c,At.test(g+c)||(l=l.parentNode);l;l=l.parentNode)m.push(l),u=l;u===(s.ownerDocument||o)&&m.push(u.defaultView||u.parentWindow||t)};v=0;while((l=m[v++])&&!n.isPropagationStopped())n.type=v>1?g:d.bindType||c,h=(e._data(l,'events')||{})[n.type]&&e._data(l,'handle'),h&&h.apply(l,i),h=p&&l[p],h&&h.apply&&P(l)&&(n.result=h.apply(l,i),n.result===!1&&n.preventDefault());if(n.type=c,!r&&!n.isDefaultPrevented()&&(!d._default||d._default.apply(m.pop(),i)===!1)&&P(s)&&p&&s[c]&&!e.isWindow(s)){u=s[p],u&&(s[p]=null),e.event.triggered=c;try{s[c]()}catch(a){};e.event.triggered=void 0,u&&(s[p]=u)};return n.result}},dispatch:function(t){t=e.event.fix(t);var r,a,s,i,n,l=[],c=f.call(arguments),u=(e._data(this,'events')||{})[t.type]||[],o=e.event.special[t.type]||{};if(c[0]=t,t.delegateTarget=this,!o.preDispatch||o.preDispatch.call(this,t)!==!1){l=e.event.handlers.call(this,t,u),r=0;while((i=l[r++])&&!t.isPropagationStopped()){t.currentTarget=i.elem,a=0;while((n=i.handlers[a++])&&!t.isImmediatePropagationStopped())t.rnamespace&&!t.rnamespace.test(n.namespace)||(t.handleObj=n,t.data=n.data,s=((e.event.special[n.origType]||{}).handle||n.handler).apply(i.elem,c),void 0!==s&&(t.result=s)===!1&&(t.preventDefault(),t.stopPropagation()))};return o.postDispatch&&o.postDispatch.call(this,t),t.result}},handlers:function(t,n){var r,o,s,a,c=[],l=n.delegateCount,i=t.target;if(l&&i.nodeType&&('click'!==t.type||isNaN(t.button)||t.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||'click'!==t.type)){for(o=[],r=0;l>r;r++)a=n[r],s=a.selector+' ',void 0===o[s]&&(o[s]=a.needsContext?e(s,this).index(i)>-1:e.find(s,this,null,[i]).length),o[s]&&o.push(a);o.length&&c.push({elem:i,handlers:o})};return l<n.length&&c.push({elem:this,handlers:n.slice(l)}),c},fix:function(t){if(t[e.expando])return t;var r,a,l,i=t.type,s=t,n=this.fixHooks[i];n||(this.fixHooks[i]=n=Je.test(i)?this.mouseHooks:Ke.test(i)?this.keyHooks:{}),l=n.props?this.props.concat(n.props):this.props,t=new e.Event(s),r=l.length;while(r--)a=l[r],t[a]=s[a];return t.target||(t.target=s.srcElement||o),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,n.filter?n.filter(t,s):t},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(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:'button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement'.split(' '),filter:function(t,e){var n,r,i,s=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(r=t.target.ownerDocument||o,i=r.documentElement,n=r.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===s||(t.which=1&s?1:2&s?3:4&s?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Zt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:'focusin'},blur:{trigger:function(){return this===Zt()&&this.blur?(this.blur(),!1):void 0},delegateType:'focusout'},click:{trigger:function(){return e.nodeName(this,'input')&&'checkbox'===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return e.nodeName(t.target,'a')}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,n,i){var o=e.extend(new e.Event,i,{type:t,isSimulated:!0});e.event.trigger(o,null,n),o.isDefaultPrevented()&&i.preventDefault()}},e.removeEvent=o.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var i='on'+e;t.detachEvent&&('undefined'==typeof t[i]&&(t[i]=null),t.detachEvent(i,n))},e.Event=function(t,n){return this instanceof e.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?M:I):this.type=t,n&&e.extend(this,n),this.timeStamp=t&&t.timeStamp||e.now(),void(this[e.expando]=!0)):new e.Event(t,n)},e.Event.prototype={constructor:e.Event,isDefaultPrevented:I,isPropagationStopped:I,isImmediatePropagationStopped:I,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=M,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=M,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=M,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},e.each({mouseenter:'mouseover',mouseleave:'mouseout',pointerenter:'pointerover',pointerleave:'pointerout'},function(t,n){e.event.special[t]={delegateType:n,bindType:n,handle:function(t){var o,s=this,i=t.relatedTarget,r=t.handleObj;return i&&(i===s||e.contains(s,i))||(t.type=r.origType,o=r.handler.apply(this,arguments),t.type=n),o}}}),i.submit||(e.event.special.submit={setup:function(){return e.nodeName(this,'form')?!1:void e.event.add(this,'click._submit keypress._submit',function(t){var i=t.target,n=e.nodeName(i,'input')||e.nodeName(i,'button')?e.prop(i,'form'):void 0;n&&!e._data(n,'submit')&&(e.event.add(n,'submit._submit',function(t){t._submitBubble=!0}),e._data(n,'submit',!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&e.event.simulate('submit',this.parentNode,t))},teardown:function(){return e.nodeName(this,'form')?!1:void e.event.remove(this,'._submit')}}),i.change||(e.event.special.change={setup:function(){return Z.test(this.nodeName)?('checkbox'!==this.type&&'radio'!==this.type||(e.event.add(this,'propertychange._change',function(t){'checked'===t.originalEvent.propertyName&&(this._justChanged=!0)}),e.event.add(this,'click._change',function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),e.event.simulate('change',this,t)})),!1):void e.event.add(this,'beforeactivate._change',function(t){var n=t.target;Z.test(n.nodeName)&&!e._data(n,'change')&&(e.event.add(n,'change._change',function(t){!this.parentNode||t.isSimulated||t.isTrigger||e.event.simulate('change',this.parentNode,t)}),e._data(n,'change',!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||'radio'!==e.type&&'checkbox'!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return e.event.remove(this,'._change'),!Z.test(this.nodeName)}}),i.focusin||e.each({focus:'focusin',blur:'focusout'},function(t,n){var i=function(t){e.event.simulate(n,t.target,e.event.fix(t))};e.event.special[n]={setup:function(){var o=this.ownerDocument||this,s=e._data(o,n);s||o.addEventListener(t,i,!0),e._data(o,n,(s||0)+1)},teardown:function(){var o=this.ownerDocument||this,s=e._data(o,n)-1;s?e._data(o,n,s):(o.removeEventListener(t,i,!0),e._removeData(o,n))}}}),e.fn.extend({on:function(t,e,n,i){return ut(this,t,e,n,i)},one:function(t,e,n,i){return ut(this,t,e,n,i,1)},off:function(t,n,i){var o,s;if(t&&t.preventDefault&&t.handleObj)return o=t.handleObj,e(t.delegateTarget).off(o.namespace?o.origType+'.'+o.namespace:o.origType,o.selector,o.handler),this;if('object'==typeof t){for(s in t)this.off(s,n,t[s]);return this};return n!==!1&&'function'!=typeof n||(i=n,n=void 0),i===!1&&(i=I),this.each(function(){e.event.remove(this,t,i,n)})},trigger:function(t,n){return this.each(function(){e.event.trigger(t,n,this)})},triggerHandler:function(t,n){var i=this[0];return i?e.event.trigger(t,n,i,!0):void 0}});var ze=/ jQuery\d+="(?:null|\d+)"/g,Nt=new RegExp('<(?:'+Ht+')[\\s/>]','i'),Ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,Ve=/<script|<style|<link/i,Xe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ye=/^true\/(.*)/,Qe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ge=Kt(o),J=Ge.appendChild(o.createElement('div'));function te(t,n){return e.nodeName(t,'table')&&e.nodeName(11!==n.nodeType?n:n.firstChild,'tr')?t.getElementsByTagName('tbody')[0]||t.appendChild(t.ownerDocument.createElement('tbody')):t};function ee(t){return t.type=(null!==e.find.attr(t,'type'))+'/'+t.type,t};function ne(t){var e=Ye.exec(t.type);return e?t.type=e[1]:t.removeAttribute('type'),t};function ie(t,n){if(1===n.nodeType&&e.hasData(t)){var o,s,a,l=e._data(t),i=e._data(n,l),r=l.events;if(r){delete i.handle,i.events={};for(o in r)for(s=0,a=r[o].length;a>s;s++)e.event.add(n,o,r[o][s])};i.data&&(i.data=e.extend({},i.data))}};function mn(t,n){var o,r,s;if(1===n.nodeType){if(o=n.nodeName.toLowerCase(),!i.noCloneEvent&&n[e.expando]){s=e._data(n);for(r in s.events)e.removeEvent(n,r,s.handle);n.removeAttribute(e.expando)};'script'===o&&n.text!==t.text?(ee(n).text=t.text,ne(n)):'object'===o?(n.parentNode&&(n.outerHTML=t.outerHTML),i.html5Clone&&t.innerHTML&&!e.trim(n.innerHTML)&&(n.innerHTML=t.innerHTML)):'input'===o&&tt.test(t.type)?(n.defaultChecked=n.checked=t.checked,n.value!==t.value&&(n.value=t.value)):'option'===o?n.defaultSelected=n.selected=t.defaultSelected:'input'!==o&&'textarea'!==o||(n.defaultValue=t.defaultValue)}};function b(t,n,o,r){n=Bt.apply([],n);var d,a,h,c,m,u,l=0,p=t.length,v=p-1,f=n[0],g=e.isFunction(f);if(g||p>1&&'string'==typeof f&&!i.checkClone&&Xe.test(f))return t.each(function(e){var i=t.eq(e);g&&(n[0]=f.call(this,e,i.html())),b(i,n,o,r)});if(p&&(u=Jt(n,t[0].ownerDocument,!1,t,r),d=u.firstChild,1===u.childNodes.length&&(u=d),d||r)){for(c=e.map(s(u,'script'),ee),h=c.length;p>l;l++)a=u,l!==v&&(a=e.clone(a,!0,!0),h&&e.merge(c,s(a,'script'))),o.call(t[l],a,l);if(h)for(m=c[c.length-1].ownerDocument,e.map(c,ne),l=0;h>l;l++)a=c[l],Lt.test(a.type||'')&&!e._data(a,'globalEval')&&e.contains(m,a)&&(a.src?e._evalUrl&&e._evalUrl(a.src):e.globalEval((a.text||a.textContent||a.innerHTML||'').replace(Qe,'')));u=d=null};return t};function oe(t,n,i){for(var o,a=n?e.filter(n,t):t,r=0;null!=(o=a[r]);r++)i||1!==o.nodeType||e.cleanData(s(o)),o.parentNode&&(i&&e.contains(o.ownerDocument,o)&&ct(s(o,'script')),o.parentNode.removeChild(o));return t};e.extend({htmlPrefilter:function(t){return t.replace(Ue,'<$1></$2>')},clone:function(t,n,o){var r,u,l,a,c,d=e.contains(t.ownerDocument,t);if(i.html5Clone||e.isXMLDoc(t)||!Nt.test('<'+t.nodeName+'>')?l=t.cloneNode(!0):(J.innerHTML=t.outerHTML,J.removeChild(l=J.firstChild)),!(i.noCloneEvent&&i.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||e.isXMLDoc(t)))for(r=s(l),c=s(t),a=0;null!=(u=c[a]);++a)r[a]&&mn(u,r[a]);if(n)if(o)for(c=c||s(t),r=r||s(l),a=0;null!=(u=c[a]);a++)ie(u,r[a]);else ie(t,l);return r=s(l,'script'),r.length>0&&ct(r,!d&&s(t,'script')),r=c=u=null,l},cleanData:function(t,n){for(var o,r,s,a,u=0,l=e.expando,c=e.cache,h=i.attributes,p=e.event.special;null!=(o=t[u]);u++)if((n||P(o))&&(s=o[l],a=s&&c[s])){if(a.events)for(r in a.events)p[r]?e.event.remove(o,r):e.removeEvent(o,r,a.handle);c[s]&&(delete c[s],h||'undefined'==typeof o.removeAttribute?o[l]=void 0:o.removeAttribute(l),d.push(s))}}}),e.fn.extend({domManip:b,detach:function(t){return oe(this,t,!0)},remove:function(t){return oe(this,t)},text:function(t){return p(this,function(t){return void 0===t?e.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).createTextNode(t))},null,t,arguments.length)},append:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=te(this,t);e.appendChild(t)}})},prepend:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=te(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return b(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return b(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,n=0;null!=(t=this[n]);n++){1===t.nodeType&&e.cleanData(s(t,!1));while(t.firstChild)t.removeChild(t.firstChild);t.options&&e.nodeName(t,'select')&&(t.options.length=0)};return this},clone:function(t,n){return t=null==t?!1:t,n=null==n?t:n,this.map(function(){return e.clone(this,t,n)})},html:function(t){return p(this,function(t){var o=this[0]||{},r=0,l=this.length;if(void 0===t)return 1===o.nodeType?o.innerHTML.replace(ze,''):void 0;if('string'==typeof t&&!Ve.test(t)&&(i.htmlSerialize||!Nt.test(t))&&(i.leadingWhitespace||!et.test(t))&&!a[(jt.exec(t)||['',''])[1].toLowerCase()]){t=e.htmlPrefilter(t);try{for(;l>r;r++)o=this[r]||{},1===o.nodeType&&(e.cleanData(s(o,!1)),o.innerHTML=t);o=0}catch(n){}};o&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return b(this,arguments,function(n){var i=this.parentNode;e.inArray(this,t)<0&&(e.cleanData(s(this)),i&&i.replaceChild(n,this))},t)}}),e.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(t,n){e.fn[t]=function(t){for(var o,i=0,s=[],r=e(t),a=r.length-1;a>=i;i++)o=i===a?this:this.clone(!0),e(r[i])[n](o),st.apply(s,o.get());return this.pushStack(s)}});var N,Dt={HTML:'block',BODY:'block'};function se(t,n){var i=e(n.createElement(t)).appendTo(n.body),o=e.css(i[0],'display');return i.detach(),o};function F(t){var i=o,n=Dt[t];return n||(n=se(t,i),'none'!==n&&n||(N=(N||e('<iframe frameborder=\'0\' width=\'0\' height=\'0\'/>')).appendTo(i.documentElement),i=(N[0].contentWindow||N[0].contentDocument).document,i.write(),i.close(),n=se(t,i),N.detach()),Dt[t]=n),n};var St=/^margin/,H=new RegExp('^('+nt+')(?!px)[a-z%]+$','i'),K=function(t,e,n,i){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];s=n.apply(t,i||[]);for(o in e)t.style[o]=r[o];return s},It=o.documentElement;!function(){var s,c,u,r,d,h,l=o.createElement('div'),n=o.createElement('div');if(n.style){n.style.cssText='float:left;opacity:.5',i.opacity='0.5'===n.style.opacity,i.cssFloat=!!n.style.cssFloat,n.style.backgroundClip='content-box',n.cloneNode(!0).style.backgroundClip='',i.clearCloneStyle='content-box'===n.style.backgroundClip,l=o.createElement('div'),l.style.cssText='border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute',n.innerHTML='',l.appendChild(n),i.boxSizing=''===n.style.boxSizing||''===n.style.MozBoxSizing||''===n.style.WebkitBoxSizing,e.extend(i,{reliableHiddenOffsets:function(){return null==s&&a(),r},boxSizingReliable:function(){return null==s&&a(),u},pixelMarginRight:function(){return null==s&&a(),c},pixelPosition:function(){return null==s&&a(),s},reliableMarginRight:function(){return null==s&&a(),d},reliableMarginLeft:function(){return null==s&&a(),h}});function a(){var e,i,a=o.documentElement;a.appendChild(l),n.style.cssText='-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%',s=u=h=!1,c=d=!0,t.getComputedStyle&&(i=t.getComputedStyle(n),s='1%'!==(i||{}).top,h='2px'===(i||{}).marginLeft,u='4px'===(i||{width:'4px'}).width,n.style.marginRight='50%',c='4px'===(i||{marginRight:'4px'}).marginRight,e=n.appendChild(o.createElement('div')),e.style.cssText=n.style.cssText='-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0',e.style.marginRight=e.style.width='0',n.style.width='1px',d=!parseFloat((t.getComputedStyle(e)||{}).marginRight),n.removeChild(e)),n.style.display='none',r=0===n.getClientRects().length,r&&(n.style.display='',n.innerHTML='<table><tr><td></td><td>t</td></tr></table>',e=n.getElementsByTagName('td'),e[0].style.cssText='margin:0;border:0;padding:0;display:none',r=0===e[0].offsetHeight,r&&(e[0].style.display='',e[1].style.display='none',r=0===e[0].offsetHeight)),a.removeChild(l)}}}();var v,h,qe=/^(top|right|bottom|left)$/;t.getComputedStyle?(v=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},h=function(t,n,o){var a,l,c,s,r=t.style;return o=o||v(t),s=o?o.getPropertyValue(n)||o[n]:void 0,''!==s&&void 0!==s||e.contains(t.ownerDocument,t)||(s=e.style(t,n)),o&&!i.pixelMarginRight()&&H.test(s)&&St.test(n)&&(a=r.width,l=r.minWidth,c=r.maxWidth,r.minWidth=r.maxWidth=r.width=s,s=o.width,r.width=a,r.minWidth=l,r.maxWidth=c),void 0===s?s:s+''}):It.currentStyle&&(v=function(t){return t.currentStyle},h=function(t,e,n){var a,s,r,i,o=t.style;return n=n||v(t),i=n?n[e]:void 0,null==i&&o&&o[e]&&(i=o[e]),H.test(i)&&!qe.test(e)&&(a=o.left,s=t.runtimeStyle,r=s&&s.left,r&&(s.left=t.currentStyle.left),o.left='fontSize'===e?'1em':i,i=o.pixelLeft+'px',o.left=a,r&&(s.left=r)),void 0===i?i:i+''||'auto'});function dt(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}};var G=/alpha\([^)]*\)/i,We=/opacity\s*=\s*([^)]*)/i,Me=/^(none|table(?!-c[ea]).+)/,Fe=new RegExp('^('+nt+')(.*)$','i'),Be={position:'absolute',visibility:'hidden',display:'block'},Tt={letterSpacing:'0',fontWeight:'400'},kt=['Webkit','O','Moz','ms'],Et=o.createElement('div').style;function re(t){if(t in Et)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),e=kt.length;while(e--)if(t=kt[e]+n,t in Et)return t};function ae(t,n){for(var s,i,a,r=[],o=0,l=t.length;l>o;o++)i=t[o],i.style&&(r[o]=e._data(i,'olddisplay'),s=i.style.display,n?(r[o]||'none'!==s||(i.style.display=''),''===i.style.display&&A(i)&&(r[o]=e._data(i,'olddisplay',F(i.nodeName)))):(a=A(i),(s&&'none'!==s||!a)&&e._data(i,'olddisplay',a?s:e.css(i,'display'))));for(o=0;l>o;o++)i=t[o],i.style&&(n&&'none'!==i.style.display&&''!==i.style.display||(i.style.display=n?r[o]||'':'none'));return t};function le(t,e,n){var i=Fe.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||'px'):e};function ce(t,n,i,o,s){for(var r=i===(o?'border':'content')?4:'width'===n?1:0,a=0;4>r;r+=2)'margin'===i&&(a+=e.css(t,i+y[r],!0,s)),o?('content'===i&&(a-=e.css(t,'padding'+y[r],!0,s)),'margin'!==i&&(a-=e.css(t,'border'+y[r]+'Width',!0,s))):(a+=e.css(t,'padding'+y[r],!0,s),'padding'!==i&&(a+=e.css(t,'border'+y[r]+'Width',!0,s)));return a};function ue(n,s,r){var c=!0,a='width'===s?n.offsetWidth:n.offsetHeight,l=v(n),u=i.boxSizing&&'border-box'===e.css(n,'boxSizing',!1,l);if(o.msFullscreenElement&&t.top!==t&&n.getClientRects().length&&(a=Math.round(100*n.getBoundingClientRect()[s])),0>=a||null==a){if(a=h(n,s,l),(0>a||null==a)&&(a=n.style[s]),H.test(a))return a;c=u&&(i.boxSizingReliable()||a===n.style[s]),a=parseFloat(a)||0};return a+ce(n,s,r||(u?'border':'content'),c,l)+'px'};e.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=h(t,'opacity');return''===n?'1':n}}}},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':i.cssFloat?'cssFloat':'styleFloat'},style:function(t,n,o,s){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,u,l,c=e.camelCase(n),d=t.style;if(n=e.cssProps[c]||(e.cssProps[c]=re(c)||c),l=e.cssHooks[n]||e.cssHooks[c],void 0===o)return l&&'get'in l&&void 0!==(a=l.get(t,!1,s))?a:d[n];if(u=typeof o,'string'===u&&(a=it.exec(o))&&a[1]&&(o=Gt(t,n,a),u='number'),null!=o&&o===o&&('number'===u&&(o+=a&&a[3]||(e.cssNumber[c]?'':'px')),i.clearCloneStyle||''!==o||0!==n.indexOf('background')||(d[n]='inherit'),!(l&&'set'in l&&void 0===(o=l.set(t,o,s)))))try{d[n]=o}catch(r){}}},css:function(t,n,i,o){var l,s,a,r=e.camelCase(n);return n=e.cssProps[r]||(e.cssProps[r]=re(r)||r),a=e.cssHooks[n]||e.cssHooks[r],a&&'get'in a&&(s=a.get(t,!0,i)),void 0===s&&(s=h(t,n,o)),'normal'===s&&n in Tt&&(s=Tt[n]),''===i||i?(l=parseFloat(s),i===!0||isFinite(l)?l||0:s):s}}),e.each(['height','width'],function(t,n){e.cssHooks[n]={get:function(t,i,o){return i?Me.test(e.css(t,'display'))&&0===t.offsetWidth?K(t,Be,function(){return ue(t,n,o)}):ue(t,n,o):void 0},set:function(t,o,s){var r=s&&v(t);return le(t,o,s?ce(t,n,s,i.boxSizing&&'border-box'===e.css(t,'boxSizing',!1,r),r):0)}}}),i.opacity||(e.cssHooks.opacity={get:function(t,e){return We.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||'')?.01*parseFloat(RegExp.$1)+'':e?'1':''},set:function(t,n){var i=t.style,o=t.currentStyle,r=e.isNumeric(n)?'alpha(opacity='+100*n+')':'',s=o&&o.filter||i.filter||'';i.zoom=1,(n>=1||''===n)&&''===e.trim(s.replace(G,''))&&i.removeAttribute&&(i.removeAttribute('filter'),''===n||o&&!o.filter)||(i.filter=G.test(s)?s.replace(G,r):s+' '+r)}}),e.cssHooks.marginRight=dt(i.reliableMarginRight,function(t,e){return e?K(t,{display:'inline-block'},h,[t,'marginRight']):void 0}),e.cssHooks.marginLeft=dt(i.reliableMarginLeft,function(t,n){return n?(parseFloat(h(t,'marginLeft'))||(e.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-K(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+'px':void 0}),e.each({margin:'',padding:'',border:'Width'},function(t,n){e.cssHooks[t+n]={expand:function(e){for(var i=0,s={},o='string'==typeof e?e.split(' '):[e];4>i;i++)s[t+y[i]+n]=o[i]||o[i-2]||o[0];return s}},St.test(t)||(e.cssHooks[t+n].set=le)}),e.fn.extend({css:function(t,n){return p(this,function(t,n,i){var s,r,a={},o=0;if(e.isArray(n)){for(s=v(t),r=n.length;r>o;o++)a[n[o]]=e.css(t,n[o],!1,s);return a};return void 0!==i?e.style(t,n,i):e.css(t,n)},t,n,arguments.length>1)},show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(t){return'boolean'==typeof t?t?this.show():this.hide():this.each(function(){A(this)?e(this).show():e(this).hide()})}});function r(t,e,n,i,o){return new r.prototype.init(t,e,n,i,o)};e.Tween=r,r.prototype={constructor:r,init:function(t,n,i,o,s,r){this.elem=t,this.prop=i,this.easing=s||e.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=o,this.unit=r||(e.cssNumber[i]?'':'px')},cur:function(){var t=r.propHooks[this.prop];return t&&t.get?t.get(this):r.propHooks._default.get(this)},run:function(t){var n,i=r.propHooks[this.prop];return this.options.duration?this.pos=n=e.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=n=t,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):r.propHooks._default.set(this),this}},r.prototype.init.prototype=r.prototype,r.propHooks={_default:{get:function(t){var n;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(n=e.css(t.elem,t.prop,''),n&&'auto'!==n?n:0)},set:function(t){e.fx.step[t.prop]?e.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[e.cssProps[t.prop]]&&!e.cssHooks[t.prop]?t.elem[t.prop]=t.now:e.style(t.elem,t.prop,t.now+t.unit)}}},r.propHooks.scrollTop=r.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},e.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:'swing'},e.fx=r.prototype.init,e.fx.step={};var T,L,He=/^(?:toggle|show|hide)$/,Re=/queueHooks$/;function de(){return t.setTimeout(function(){T=void 0}),T=e.now()};function B(t,e){var i,n={height:t},o=0;for(e=e?1:0;4>o;o+=2-e)i=y[o],n['margin'+i]=n['padding'+i]=t;return e&&(n.opacity=n.width=t),n};function he(t,e,n){for(var o,s=(l.tweeners[e]||[]).concat(l.tweeners['*']),i=0,r=s.length;r>i;i++)if(o=s[i].call(n,e,t))return o};function gn(t,n,o){var s,h,m,p,l,g,c,v,d=this,f={},a=t.style,u=t.nodeType&&A(t),r=e._data(t,'fxshow');o.queue||(l=e._queueHooks(t,'fx'),null==l.unqueued&&(l.unqueued=0,g=l.empty.fire,l.empty.fire=function(){l.unqueued||g()}),l.unqueued++,d.always(function(){d.always(function(){l.unqueued--,e.queue(t,'fx').length||l.empty.fire()})})),1===t.nodeType&&('height'in n||'width'in n)&&(o.overflow=[a.overflow,a.overflowX,a.overflowY],c=e.css(t,'display'),v='none'===c?e._data(t,'olddisplay')||F(t.nodeName):c,'inline'===v&&'none'===e.css(t,'float')&&(i.inlineBlockNeedsLayout&&'inline'!==F(t.nodeName)?a.zoom=1:a.display='inline-block')),o.overflow&&(a.overflow='hidden',i.shrinkWrapBlocks()||d.always(function(){a.overflow=o.overflow[0],a.overflowX=o.overflow[1],a.overflowY=o.overflow[2]}));for(s in n)if(h=n[s],He.exec(h)){if(delete n[s],m=m||'toggle'===h,h===(u?'hide':'show')){if('show'!==h||!r||void 0===r[s])continue;u=!0};f[s]=r&&r[s]||e.style(t,s)}
else c=void 0;if(e.isEmptyObject(f))'inline'===('none'===c?F(t.nodeName):c)&&(a.display=c);else{r?'hidden'in r&&(u=r.hidden):r=e._data(t,'fxshow',{}),m&&(r.hidden=!u),u?e(t).show():d.done(function(){e(t).hide()}),d.done(function(){var n;e._removeData(t,'fxshow');for(n in f)e.style(t,n,f[n])});for(s in f)p=he(u?r[s]:0,s,d),s in r||(r[s]=p.start,u&&(p.end=p.start,p.start='width'===s||'height'===s?1:0))}};function vn(t,n){var i,s,r,o,a;for(i in t)if(s=e.camelCase(i),r=n[s],o=t[i],e.isArray(o)&&(r=o[1],o=t[i]=o[0]),i!==s&&(t[s]=o,delete t[i]),a=e.cssHooks[s],a&&'expand'in a){o=a.expand(o),delete t[s];for(i in o)i in t||(t[i]=o[i],n[i]=r)}
else n[s]=r};function l(t,n,i){var r,a,c=0,h=l.prefilters.length,s=e.Deferred().always(function(){delete d.elem}),d=function(){if(a)return!1;for(var l=T||de(),e=Math.max(0,o.startTime+o.duration-l),c=e/o.duration||0,n=1-c,i=0,r=o.tweens.length;r>i;i++)o.tweens[i].run(n);return s.notifyWith(t,[o,n,e]),1>n&&r?e:(s.resolveWith(t,[o]),!1)},o=s.promise({elem:t,props:e.extend({},n),opts:e.extend(!0,{specialEasing:{},easing:e.easing._default},i),originalProperties:n,originalOptions:i,startTime:T||de(),duration:i.duration,tweens:[],createTween:function(n,i){var s=e.Tween(t,o.opts,n,i,o.opts.specialEasing[n]||o.opts.easing);return o.tweens.push(s),s},stop:function(e){var n=0,i=e?o.tweens.length:0;if(a)return this;for(a=!0;i>n;n++)o.tweens[n].run(1);return e?(s.notifyWith(t,[o,1,0]),s.resolveWith(t,[o,e])):s.rejectWith(t,[o,e]),this}}),u=o.props;for(vn(u,o.opts.specialEasing);h>c;c++)if(r=l.prefilters[c].call(o,t,u,o.opts))return e.isFunction(r.stop)&&(e._queueHooks(o.elem,o.opts.queue).stop=e.proxy(r.stop,r)),r;return e.map(u,he,o),e.isFunction(o.opts.start)&&o.opts.start.call(t,o),e.fx.timer(e.extend(d,{elem:t,anim:o,queue:o.opts.queue})),o.progress(o.opts.progress).done(o.opts.done,o.opts.complete).fail(o.opts.fail).always(o.opts.always)};e.Animation=e.extend(l,{tweeners:{'*':[function(t,e){var n=this.createTween(t,e);return Gt(n.elem,t,it.exec(e),n),n}]},tweener:function(t,n){e.isFunction(t)?(n=t,t=['*']):t=t.match(c);for(var i,o=0,s=t.length;s>o;o++)i=t[o],l.tweeners[i]=l.tweeners[i]||[],l.tweeners[i].unshift(n)},prefilters:[gn],prefilter:function(t,e){e?l.prefilters.unshift(t):l.prefilters.push(t)}}),e.speed=function(t,n,i){var o=t&&'object'==typeof t?e.extend({},t):{complete:i||!i&&n||e.isFunction(t)&&t,duration:t,easing:i&&n||n&&!e.isFunction(n)&&n};return o.duration=e.fx.off?0:'number'==typeof o.duration?o.duration:o.duration in e.fx.speeds?e.fx.speeds[o.duration]:e.fx.speeds._default,null!=o.queue&&o.queue!==!0||(o.queue='fx'),o.old=o.complete,o.complete=function(){e.isFunction(o.old)&&o.old.call(this),o.queue&&e.dequeue(this,o.queue)},o},e.fn.extend({fadeTo:function(t,e,n,i){return this.filter(A).css('opacity',0).show().end().animate({opacity:e},t,n,i)},animate:function(t,n,i,o){var a=e.isEmptyObject(t),r=e.speed(n,i,o),s=function(){var n=l(this,e.extend({},t),r);(a||e._data(this,'finish'))&&n.stop(!0)};return s.finish=s,a||r.queue===!1?this.each(s):this.queue(r.queue,s)},stop:function(t,n,i){var o=function(t){var e=t.stop;delete t.stop,e(i)};return'string'!=typeof t&&(i=n,n=t,t=void 0),n&&t!==!1&&this.queue(t||'fx',[]),this.each(function(){var a=!0,n=null!=t&&t+'queueHooks',r=e.timers,s=e._data(this);if(n)s[n]&&s[n].stop&&o(s[n]);else for(n in s)s[n]&&s[n].stop&&Re.test(n)&&o(s[n]);for(n=r.length;n--;)r[n].elem!==this||null!=t&&r[n].queue!==t||(r[n].anim.stop(i),a=!1,r.splice(n,1));!a&&i||e.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||'fx'),this.each(function(){var n,s=e._data(this),i=s[t+'queue'],r=s[t+'queueHooks'],o=e.timers,a=i?i.length:0;for(s.finish=!0,e.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===t&&(o[n].anim.stop(!0),o.splice(n,1));for(n=0;a>n;n++)i[n]&&i[n].finish&&i[n].finish.call(this);delete s.finish})}}),e.each(['toggle','show','hide'],function(t,n){var i=e.fn[n];e.fn[n]=function(t,e,o){return null==t||'boolean'==typeof t?i.apply(this,arguments):this.animate(B(n,!0),t,e,o)}}),e.each({slideDown:B('show'),slideUp:B('hide'),slideToggle:B('toggle'),fadeIn:{opacity:'show'},fadeOut:{opacity:'hide'},fadeToggle:{opacity:'toggle'}},function(t,n){e.fn[t]=function(t,e,i){return this.animate(n,t,e,i)}}),e.timers=[],e.fx.tick=function(){var i,t=e.timers,n=0;for(T=e.now();n<t.length;n++)i=t[n],i()||t[n]!==i||t.splice(n--,1);t.length||e.fx.stop(),T=void 0},e.fx.timer=function(t){e.timers.push(t),t()?e.fx.start():e.timers.pop()},e.fx.interval=13,e.fx.start=function(){L||(L=t.setInterval(e.fx.tick,e.fx.interval))},e.fx.stop=function(){t.clearInterval(L),L=null},e.fx.speeds={slow:600,fast:200,_default:400},e.fn.delay=function(n,i){return n=e.fx?e.fx.speeds[n]||n:n,i=i||'fx',this.queue(i,function(e,i){var o=t.setTimeout(e,n);i.stop=function(){t.clearTimeout(o)}})},function(){var n,t=o.createElement('input'),e=o.createElement('div'),s=o.createElement('select'),r=s.appendChild(o.createElement('option'));e=o.createElement('div'),e.setAttribute('className','t'),e.innerHTML='  <link/><table></table><a href=\'/a\'>a</a><input type=\'checkbox\'/>',n=e.getElementsByTagName('a')[0],t.setAttribute('type','checkbox'),e.appendChild(t),n=e.getElementsByTagName('a')[0],n.style.cssText='top:1px',i.getSetAttribute='t'!==e.className,i.style=/top/.test(n.getAttribute('style')),i.hrefNormalized='/a'===n.getAttribute('href'),i.checkOn=!!t.value,i.optSelected=r.selected,i.enctype=!!o.createElement('form').enctype,s.disabled=!0,i.optDisabled=!r.disabled,t=o.createElement('input'),t.setAttribute('value',''),i.input=''===t.getAttribute('value'),t.value='t',t.setAttribute('type','radio'),i.radioValue='t'===t.value}();var je=/\r/g,Le=/[\x20\t\r\n\f]+/g;e.fn.extend({val:function(t){var n,i,s,o=this[0];{if(arguments.length)return s=e.isFunction(t),this.each(function(i){var o;1===this.nodeType&&(o=s?t.call(this,i,e(this).val()):t,null==o?o='':'number'==typeof o?o+='':e.isArray(o)&&(o=e.map(o,function(t){return null==t?'':t+''})),n=e.valHooks[this.type]||e.valHooks[this.nodeName.toLowerCase()],n&&'set'in n&&void 0!==n.set(this,o,'value')||(this.value=o))});if(o)return n=e.valHooks[o.type]||e.valHooks[o.nodeName.toLowerCase()],n&&'get'in n&&void 0!==(i=n.get(o,'value'))?i:(i=o.value,'string'==typeof i?i.replace(je,''):null==i?'':i)}}}),e.extend({valHooks:{option:{get:function(t){var n=e.find.attr(t,'value');return null!=n?n:e.trim(e.text(t)).replace(Le,' ')}},select:{get:function(t){for(var a,n,l=t.options,o=t.selectedIndex,s='select-one'===t.type||0>o,c=s?null:[],u=s?o+1:l.length,r=0>o?u:s?o:0;u>r;r++)if(n=l[r],(n.selected||r===o)&&(i.optDisabled?!n.disabled:null===n.getAttribute('disabled'))&&(!n.parentNode.disabled||!e.nodeName(n.parentNode,'optgroup'))){if(a=e(n).val(),s)return a;c.push(a)};return c},set:function(t,n){var r,o,s=t.options,l=e.makeArray(n),a=s.length;while(a--)if(o=s[a],e.inArray(e.valHooks.option.get(o),l)>-1)try{o.selected=r=!0}catch(i){o.scrollHeight}
else o.selected=!1;return r||(t.selectedIndex=-1),s}}}}),e.each(['radio','checkbox'],function(){e.valHooks[this]={set:function(t,n){return e.isArray(n)?t.checked=e.inArray(e(t).val(),n)>-1:void 0}},i.checkOn||(e.valHooks[this].get=function(t){return null===t.getAttribute('value')?'on':t.value})});var C,Ct,u=e.expr.attrHandle,Q=/^(?:checked|selected)$/i,g=i.getSetAttribute,j=i.input;e.fn.extend({attr:function(t,n){return p(this,e.attr,t,n,arguments.length>1)},removeAttr:function(t){return this.each(function(){e.removeAttr(this,t)})}}),e.extend({attr:function(t,n,i){var o,s,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return'undefined'==typeof t.getAttribute?e.prop(t,n,i):(1===r&&e.isXMLDoc(t)||(n=n.toLowerCase(),s=e.attrHooks[n]||(e.expr.match.bool.test(n)?Ct:C)),void 0!==i?null===i?void e.removeAttr(t,n):s&&'set'in s&&void 0!==(o=s.set(t,i,n))?o:(t.setAttribute(n,i+''),i):s&&'get'in s&&null!==(o=s.get(t,n))?o:(o=e.find.attr(t,n),null==o?void 0:o))},attrHooks:{type:{set:function(t,n){if(!i.radioValue&&'radio'===n&&e.nodeName(t,'input')){var o=t.value;return t.setAttribute('type',n),o&&(t.value=o),n}}}},removeAttr:function(t,n){var i,o,r=0,s=n&&n.match(c);if(s&&1===t.nodeType)while(i=s[r++])o=e.propFix[i]||i,e.expr.match.bool.test(i)?j&&g||!Q.test(i)?t[o]=!1:t[e.camelCase('default-'+i)]=t[o]=!1:e.attr(t,i,''),t.removeAttribute(g?i:o)}}),Ct={set:function(t,n,i){return n===!1?e.removeAttr(t,i):j&&g||!Q.test(i)?t.setAttribute(!g&&e.propFix[i]||i,i):t[e.camelCase('default-'+i)]=t[i]=!0,i}},e.each(e.expr.match.bool.source.match(/\w+/g),function(t,n){var i=u[n]||e.find.attr;j&&g||!Q.test(n)?u[n]=function(t,e,n){var o,s;return n||(s=u[e],u[e]=o,o=null!=i(t,e,n)?e.toLowerCase():null,u[e]=s),o}:u[n]=function(t,n,i){return i?void 0:t[e.camelCase('default-'+n)]?n.toLowerCase():null}}),j&&g||(e.attrHooks.value={set:function(t,n,i){return e.nodeName(t,'input')?void(t.defaultValue=n):C&&C.set(t,n,i)}}),g||(C={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+='','value'===n||e===t.getAttribute(n)?e:void 0}},u.id=u.name=u.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&''!==i.value?i.value:null},e.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:C.set},e.attrHooks.contenteditable={set:function(t,e,n){C.set(t,''===e?!1:e,n)}},e.each(['width','height'],function(t,n){e.attrHooks[n]={set:function(t,e){return''===e?(t.setAttribute(n,'auto'),e):void 0}}})),i.style||(e.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+''}});var Pe=/^(?:input|select|textarea|button|object)$/i,Oe=/^(?:a|area)$/i;e.fn.extend({prop:function(t,n){return p(this,e.prop,t,n,arguments.length>1)},removeProp:function(t){return t=e.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),e.extend({prop:function(t,n,i){var s,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&e.isXMLDoc(t)||(n=e.propFix[n]||n,o=e.propHooks[n]),void 0!==i?o&&'set'in o&&void 0!==(s=o.set(t,i,n))?s:t[n]=i:o&&'get'in o&&null!==(s=o.get(t,n))?s:t[n]},propHooks:{tabIndex:{get:function(t){var n=e.find.attr(t,'tabindex');return n?parseInt(n,10):Pe.test(t.nodeName)||Oe.test(t.nodeName)&&t.href?0:-1}}},propFix:{'for':'htmlFor','class':'className'}}),i.hrefNormalized||e.each(['href','src'],function(t,n){e.propHooks[n]={get:function(t){return t.getAttribute(n,4)}}}),i.optSelected||(e.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),e.each(['tabIndex','readOnly','maxLength','cellSpacing','cellPadding','rowSpan','colSpan','useMap','frameBorder','contentEditable'],function(){e.propFix[this.toLowerCase()]=this}),i.enctype||(e.propFix.enctype='encoding');var Y=/[\t\r\n\f]/g;function w(t){return e.attr(t,'class')||''};e.fn.extend({addClass:function(t){var a,n,i,o,s,l,r,u=0;if(e.isFunction(t))return this.each(function(n){e(this).addClass(t.call(this,n,w(this)))});if('string'==typeof t&&t){a=t.match(c)||[];while(n=this[u++])if(o=w(n),i=1===n.nodeType&&(' '+o+' ').replace(Y,' ')){l=0;while(s=a[l++])i.indexOf(' '+s+' ')<0&&(i+=s+' ');r=e.trim(i),o!==r&&e.attr(n,'class',r)}};return this},removeClass:function(t){var a,i,n,o,s,l,r,u=0;if(e.isFunction(t))return this.each(function(n){e(this).removeClass(t.call(this,n,w(this)))});if(!arguments.length)return this.attr('class','');if('string'==typeof t&&t){a=t.match(c)||[];while(i=this[u++])if(o=w(i),n=1===i.nodeType&&(' '+o+' ').replace(Y,' ')){l=0;while(s=a[l++])while(n.indexOf(' '+s+' ')>-1)n=n.replace(' '+s+' ',' ');r=e.trim(n),o!==r&&e.attr(i,'class',r)}};return this},toggleClass:function(t,n){var i=typeof t;return'boolean'==typeof n&&'string'===i?n?this.addClass(t):this.removeClass(t):e.isFunction(t)?this.each(function(i){e(this).toggleClass(t.call(this,i,w(this),n),n)}):this.each(function(){var n,s,o,r;if('string'===i){s=0,o=e(this),r=t.match(c)||[];while(n=r[s++])o.hasClass(n)?o.removeClass(n):o.addClass(n)}
else void 0!==t&&'boolean'!==i||(n=w(this),n&&e._data(this,'__className__',n),e.attr(this,'class',n||t===!1?'':e._data(this,'__className__')||''))})},hasClass:function(t){var n,e,i=0;n=' '+t+' ';while(e=this[i++])if(1===e.nodeType&&(' '+w(e)+' ').replace(Y,' ').indexOf(n)>-1)return!0;return!1}}),e.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(t,n){e.fn[n]=function(t,e){return arguments.length>0?this.on(n,null,t,e):this.trigger(n)}}),e.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Ne=t.location,V=e.now(),X=/\?/,Ae=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;e.parseJSON=function(n){if(t.JSON&&t.JSON.parse)return t.JSON.parse(n+'');var s,i=null,o=e.trim(n+'');return o&&!e.trim(o.replace(Ae,function(t,e,n,o){return s&&e&&(i=0),0===i?t:(s=n||e,i+=!o-!n,'')}))?Function('return '+o)():e.error('Invalid JSON: '+n)},e.parseXML=function(n){var o,s;if(!n||'string'!=typeof n)return null;try{t.DOMParser?(s=new t.DOMParser,o=s.parseFromString(n,'text/xml')):(o=new t.ActiveXObject('Microsoft.XMLDOM'),o.async='false',o.loadXML(n))}catch(i){o=void 0};return o&&o.documentElement&&!o.getElementsByTagName('parsererror').length||e.error('Invalid XML: '+n),o};var ke=/#.*$/,yt=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Se=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ie=/^(?:GET|HEAD)$/,De=/^\/\//,bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,wt={},z={},xt='*/'.concat('*'),U=Ne.href,x=bt.exec(U.toLowerCase())||[];function pe(t){return function(n,i){'string'!=typeof n&&(i=n,n='*');var o,s=0,r=n.toLowerCase().match(c)||[];if(e.isFunction(i))while(o=r[s++])'+'===o.charAt(0)?(o=o.slice(1)||'*',(t[o]=t[o]||[]).unshift(i)):(t[o]=t[o]||[]).push(i)}};function fe(t,n,i,o){var s={},a=t===z;function r(l){var c;return s[l]=!0,e.each(t[l]||[],function(t,e){var l=e(n,i,o);return'string'!=typeof l||a||s[l]?a?!(c=l):void 0:(n.dataTypes.unshift(l),r(l),!1)}),c};return r(n.dataTypes[0])||!s['*']&&r('*')};function ht(t,n){var o,i,s=e.ajaxSettings.flatOptions||{};for(i in n)void 0!==n[i]&&((s[i]?t:o||(o={}))[i]=n[i]);return o&&e.extend(!0,t,o),t};function yn(t,e,n){var a,r,o,s,l=t.contents,i=t.dataTypes;while('*'===i[0])i.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader('Content-Type'));if(r)for(s in l)if(l[s]&&l[s].test(r)){i.unshift(s);break};if(i[0]in n)o=i[0];else{for(s in n){if(!i[0]||t.converters[s+' '+i[0]]){o=s;break};a||(a=s)};o=o||a};return o?(o!==i[0]&&i.unshift(o),n[o]):void 0};function bn(t,e,n,i){var u,s,r,c,a,l={},d=t.dataTypes.slice();if(d[1])for(r in t.converters)l[r.toLowerCase()]=t.converters[r];s=d.shift();while(s)if(t.responseFields[s]&&(n[t.responseFields[s]]=e),!a&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),a=s,s=d.shift())if('*'===s)s=a;else if('*'!==a&&a!==s){if(r=l[a+' '+s]||l['* '+s],!r)for(u in l)if(c=u.split(' '),c[1]===s&&(r=l[a+' '+c[0]]||l['* '+c[0]])){r===!0?r=l[u]:l[u]!==!0&&(s=c[0],d.unshift(c[1]));break};if(r!==!0)if(r&&t['throws'])e=r(e);else try{e=r(e)}catch(o){return{state:'parsererror',error:r?o:'No conversion from '+a+' to '+s}}};return{state:'success',data:e}};e.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:U,type:'GET',isLocal:Se.test(x[1]),global:!0,processData:!0,async:!0,contentType:'application/x-www-form-urlencoded; charset=UTF-8',accepts:{'*':xt,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':e.parseJSON,'text xml':e.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,n){return n?ht(ht(t,e.ajaxSettings),n):ht(e.ajaxSettings,t)},ajaxPrefilter:pe(wt),ajaxTransport:pe(z),ajax:function(n,i){'object'==typeof n&&(i=n,n=void 0),i=i||{};var d,h,a,y,b,p,f,m,o=e.ajaxSetup({},i),u=o.context||o,w=o.context&&(u.nodeType||u.jquery)?e(u):e.event,C=e.Deferred(),T=e.Callbacks('once memory'),g=o.statusCode||{},k={},E={},l=0,S='canceled',s={readyState:0,getResponseHeader:function(t){var e;if(2===l){if(!m){m={};while(e=Ee.exec(y))m[e[1].toLowerCase()]=e[2]};e=m[t.toLowerCase()]};return null==e?null:e},getAllResponseHeaders:function(){return 2===l?y:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return l||(t=E[n]=E[n]||t,k[t]=e),this},overrideMimeType:function(t){return l||(o.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>l)for(e in t)g[e]=[g[e],t[e]];else s.always(t[s.status]);return this},abort:function(t){var e=t||S;return f&&f.abort(e),v(0,e),this}};if(C.promise(s).complete=T.add,s.success=s.done,s.error=s.fail,o.url=((n||o.url||U)+'').replace(ke,'').replace(De,x[1]+'//'),o.type=i.method||i.type||o.method||o.type,o.dataTypes=e.trim(o.dataType||'*').toLowerCase().match(c)||[''],null==o.crossDomain&&(d=bt.exec(o.url.toLowerCase()),o.crossDomain=!(!d||d[1]===x[1]&&d[2]===x[2]&&(d[3]||('http:'===d[1]?'80':'443'))===(x[3]||('http:'===x[1]?'80':'443')))),o.data&&o.processData&&'string'!=typeof o.data&&(o.data=e.param(o.data,o.traditional)),fe(wt,o,i,s),2===l)return s;p=e.event&&o.global,p&&0===e.active++&&e.event.trigger('ajaxStart'),o.type=o.type.toUpperCase(),o.hasContent=!Ie.test(o.type),a=o.url,o.hasContent||(o.data&&(a=o.url+=(X.test(a)?'&':'?')+o.data,delete o.data),o.cache===!1&&(o.url=yt.test(a)?a.replace(yt,'$1_='+V++):a+(X.test(a)?'&':'?')+'_='+V++)),o.ifModified&&(e.lastModified[a]&&s.setRequestHeader('If-Modified-Since',e.lastModified[a]),e.etag[a]&&s.setRequestHeader('If-None-Match',e.etag[a])),(o.data&&o.hasContent&&o.contentType!==!1||i.contentType)&&s.setRequestHeader('Content-Type',o.contentType),s.setRequestHeader('Accept',o.dataTypes[0]&&o.accepts[o.dataTypes[0]]?o.accepts[o.dataTypes[0]]+('*'!==o.dataTypes[0]?', '+xt+'; q=0.01':''):o.accepts['*']);for(h in o.headers)s.setRequestHeader(h,o.headers[h]);if(o.beforeSend&&(o.beforeSend.call(u,s,o)===!1||2===l))return s.abort();S='abort';for(h in{success:1,error:1,complete:1})s[h](o[h]);if(f=fe(z,o,i,s)){if(s.readyState=1,p&&w.trigger('ajaxSend',[s,o]),2===l)return s;o.async&&o.timeout>0&&(b=t.setTimeout(function(){s.abort('timeout')},o.timeout));try{l=1,f.send(k,v)}catch(r){if(!(2>l))throw r;v(-1,r)}}
else v(-1,'No Transport');function v(n,i,r,c){var h,k,x,m,v,d=i;2!==l&&(l=2,b&&t.clearTimeout(b),f=void 0,y=c||'',s.readyState=n>0?4:0,h=n>=200&&300>n||304===n,r&&(m=yn(o,s,r)),m=bn(o,m,s,h),h?(o.ifModified&&(v=s.getResponseHeader('Last-Modified'),v&&(e.lastModified[a]=v),v=s.getResponseHeader('etag'),v&&(e.etag[a]=v)),204===n||'HEAD'===o.type?d='nocontent':304===n?d='notmodified':(d=m.state,k=m.data,x=m.error,h=!x)):(x=d,!n&&d||(d='error',0>n&&(n=0))),s.status=n,s.statusText=(i||d)+'',h?C.resolveWith(u,[k,d,s]):C.rejectWith(u,[s,d,x]),s.statusCode(g),g=void 0,p&&w.trigger(h?'ajaxSuccess':'ajaxError',[s,o,h?k:x]),T.fireWith(u,[s,d]),p&&(w.trigger('ajaxComplete',[s,o]),--e.active||e.event.trigger('ajaxStop')))};return s},getJSON:function(t,n,i){return e.get(t,n,i,'json')},getScript:function(t,n){return e.get(t,void 0,n,'script')}}),e.each(['get','post'],function(t,n){e[n]=function(t,i,o,s){return e.isFunction(i)&&(s=s||o,o=i,i=void 0),e.ajax(e.extend({url:t,type:n,dataType:s,data:i,success:o},e.isPlainObject(t)&&t))}}),e._evalUrl=function(t){return e.ajax({url:t,type:'GET',dataType:'script',cache:!0,async:!1,global:!1,'throws':!0})},e.fn.extend({wrapAll:function(t){if(e.isFunction(t))return this.each(function(n){e(this).wrapAll(t.call(this,n))});if(this[0]){var n=e(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){var t=this;while(t.firstChild&&1===t.firstChild.nodeType)t=t.firstChild;return t}).append(this)};return this},wrapInner:function(t){return e.isFunction(t)?this.each(function(n){e(this).wrapInner(t.call(this,n))}):this.each(function(){var n=e(this),i=n.contents();i.length?i.wrapAll(t):n.append(t)})},wrap:function(t){var n=e.isFunction(t);return this.each(function(i){e(this).wrapAll(n?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){e.nodeName(this,'body')||e(this).replaceWith(this.childNodes)}).end()}});function wn(t){return t.style&&t.style.display||e.css(t,'display')};function xn(t){while(t&&1===t.nodeType){if('none'===wn(t)||'hidden'===t.type)return!0;t=t.parentNode};return!1};e.expr.filters.hidden=function(t){return i.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:xn(t)},e.expr.filters.visible=function(t){return!e.expr.filters.hidden(t)};var we=/%20/g,xe=/\[\]$/,vt=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,Te=/^(?:input|select|textarea|keygen)/i;function pt(t,n,i,o){var s;if(e.isArray(n))e.each(n,function(e,n){i||xe.test(t)?o(t,n):pt(t+'['+('object'==typeof n&&null!=n?e:'')+']',n,i,o)});else if(i||'object'!==e.type(n))o(t,n);else for(s in n)pt(t+'['+s+']',n[s],i,o)};e.param=function(t,n){var i,o=[],s=function(t,n){n=e.isFunction(n)?n():null==n?'':n,o[o.length]=encodeURIComponent(t)+'='+encodeURIComponent(n)};if(void 0===n&&(n=e.ajaxSettings&&e.ajaxSettings.traditional),e.isArray(t)||t.jquery&&!e.isPlainObject(t))e.each(t,function(){s(this.name,this.value)});else for(i in t)pt(i,t[i],n,s);return o.join('&').replace(we,'+')},e.fn.extend({serialize:function(){return e.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=e.prop(this,'elements');return t?e.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!e(this).is(':disabled')&&Te.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!tt.test(t))}).map(function(t,n){var i=e(this).val();return null==i?null:e.isArray(i)?e.map(i,function(t){return{name:n.name,value:t.replace(vt,'\r\n')}}):{name:n.name,value:i.replace(vt,'\r\n')}}).get()}}),e.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?me():o.documentMode>8?ft():/^(get|post|head|put|delete|options)$/i.test(this.type)&&ft()||me()}:ft;var be=0,O={},D=e.ajaxSettings.xhr();t.attachEvent&&t.attachEvent('onunload',function(){for(var t in O)O[t](void 0,!0)}),i.cors=!!D&&'withCredentials'in D,D=i.ajax=!!D,D&&e.ajaxTransport(function(n){if(!n.crossDomain||i.cors){var o;return{send:function(i,s){var a,r=n.xhr(),l=++be;if(r.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(a in n.xhrFields)r[a]=n.xhrFields[a];n.mimeType&&r.overrideMimeType&&r.overrideMimeType(n.mimeType),n.crossDomain||i['X-Requested-With']||(i['X-Requested-With']='XMLHttpRequest');for(a in i)void 0!==i[a]&&r.setRequestHeader(a,i[a]+'');r.send(n.hasContent&&n.data||null),o=function(t,i){var c,d,u;if(o&&(i||4===r.readyState))if(delete O[l],o=void 0,r.onreadystatechange=e.noop,i)4!==r.readyState&&r.abort();else{u={},c=r.status,'string'==typeof r.responseText&&(u.text=r.responseText);try{d=r.statusText}catch(a){d=''};c||!n.isLocal||n.crossDomain?1223===c&&(c=204):c=u.text?200:404};u&&s(c,d,u,r.getAllResponseHeaders())},n.async?4===r.readyState?t.setTimeout(o):r.onreadystatechange=O[l]=o:o()},abort:function(){o&&o(void 0,!0)}}}});function ft(){try{return new t.XMLHttpRequest}catch(e){}};function me(){try{return new t.ActiveXObject('Microsoft.XMLHTTP')}catch(e){}};e.ajaxSetup({accepts:{script:'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'},contents:{script:/\b(?:java|ecma)script\b/},converters:{'text script':function(t){return e.globalEval(t),t}}}),e.ajaxPrefilter('script',function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type='GET',t.global=!1)}),e.ajaxTransport('script',function(t){if(t.crossDomain){var n,i=o.head||e('head')[0]||o.documentElement;return{send:function(e,s){n=o.createElement('script'),n.async=!0,t.scriptCharset&&(n.charset=t.scriptCharset),n.src=t.url,n.onload=n.onreadystatechange=function(t,e){(e||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,e||s(200,'success'))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(void 0,!0)}}}});var gt=[],q=/(=)\?(?=&|$)|\?\?/;e.ajaxSetup({jsonp:'callback',jsonpCallback:function(){var t=gt.pop()||e.expando+'_'+V++;return this[t]=!0,t}}),e.ajaxPrefilter('json jsonp',function(n,i,o){var s,r,a,l=n.jsonp!==!1&&(q.test(n.url)?'url':'string'==typeof n.data&&0===(n.contentType||'').indexOf('application/x-www-form-urlencoded')&&q.test(n.data)&&'data');return l||'jsonp'===n.dataTypes[0]?(s=n.jsonpCallback=e.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(q,'$1'+s):n.jsonp!==!1&&(n.url+=(X.test(n.url)?'&':'?')+n.jsonp+'='+s),n.converters['script json']=function(){return a||e.error(s+' was not called'),a[0]},n.dataTypes[0]='json',r=t[s],t[s]=function(){a=arguments},o.always(function(){void 0===r?e(t).removeProp(s):t[s]=r,n[s]&&(n.jsonpCallback=i.jsonpCallback,gt.push(s)),a&&e.isFunction(r)&&r(a[0]),a=r=void 0}),'script'):void 0}),e.parseHTML=function(t,n,i){if(!t||'string'!=typeof t)return null;'boolean'==typeof n&&(i=n,n=!1),n=n||o;var s=Ft.exec(t),r=!i&&[];return s?[n.createElement(s[1])]:(s=Jt([t],n,r),r&&r.length&&e(r).remove(),e.merge([],s.childNodes))};var mt=e.fn.load;e.fn.load=function(t,n,i){if('string'!=typeof t&&mt)return mt.apply(this,arguments);var o,a,l,s=this,r=t.indexOf(' ');return r>-1&&(o=e.trim(t.slice(r,t.length)),t=t.slice(0,r)),e.isFunction(n)?(i=n,n=void 0):n&&'object'==typeof n&&(a='POST'),s.length>0&&e.ajax({url:t,type:a||'GET',dataType:'html',data:n}).done(function(t){l=arguments,s.html(o?e('<div>').append(e.parseHTML(t)).find(o):t)}).always(i&&function(t,e){s.each(function(){i.apply(this,l||[t.responseText,e,t])})}),this},e.each(['ajaxStart','ajaxStop','ajaxComplete','ajaxError','ajaxSuccess','ajaxSend'],function(t,n){e.fn[n]=function(t){return this.on(n,t)}}),e.expr.filters.animated=function(t){return e.grep(e.timers,function(e){return t===e.elem}).length};function ge(t){return e.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1};e.offset={setOffset:function(t,n,i){var r,a,l,c,o,u,p,d=e.css(t,'position'),h=e(t),s={};'static'===d&&(t.style.position='relative'),o=h.offset(),l=e.css(t,'top'),u=e.css(t,'left'),p=('absolute'===d||'fixed'===d)&&e.inArray('auto',[l,u])>-1,p?(r=h.position(),c=r.top,a=r.left):(c=parseFloat(l)||0,a=parseFloat(u)||0),e.isFunction(n)&&(n=n.call(t,i,e.extend({},o))),null!=n.top&&(s.top=n.top-o.top+c),null!=n.left&&(s.left=n.left-o.left+a),'using'in n?n.using.call(t,s):h.css(s)}},e.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(n){e.offset.setOffset(this,t,n)});var n,s,o={top:0,left:0},i=this[0],r=i&&i.ownerDocument;if(r)return n=r.documentElement,e.contains(n,i)?('undefined'!=typeof i.getBoundingClientRect&&(o=i.getBoundingClientRect()),s=ge(r),{top:o.top+(s.pageYOffset||n.scrollTop)-(n.clientTop||0),left:o.left+(s.pageXOffset||n.scrollLeft)-(n.clientLeft||0)}):o},position:function(){if(this[0]){var t,i,n={top:0,left:0},o=this[0];return'fixed'===e.css(o,'position')?i=o.getBoundingClientRect():(t=this.offsetParent(),i=this.offset(),e.nodeName(t[0],'html')||(n=t.offset()),n.top+=e.css(t[0],'borderTopWidth',!0),n.left+=e.css(t[0],'borderLeftWidth',!0)),{top:i.top-n.top-e.css(o,'marginTop',!0),left:i.left-n.left-e.css(o,'marginLeft',!0)}}},offsetParent:function(){return this.map(function(){var t=this.offsetParent;while(t&&!e.nodeName(t,'html')&&'static'===e.css(t,'position'))t=t.offsetParent;return t||It})}}),e.each({scrollLeft:'pageXOffset',scrollTop:'pageYOffset'},function(t,n){var i=/Y/.test(n);e.fn[t]=function(o){return p(this,function(t,o,s){var r=ge(t);return void 0===s?r?n in r?r[n]:r.document.documentElement[o]:t[o]:void(r?r.scrollTo(i?e(r).scrollLeft():s,i?s:e(r).scrollTop()):t[o]=s)},t,o,arguments.length,null)}}),e.each(['top','left'],function(t,n){e.cssHooks[n]=dt(i.pixelPosition,function(t,i){return i?(i=h(t,n),H.test(i)?e(t).position()[n]+'px':i):void 0})}),e.each({Height:'height',Width:'width'},function(t,n){e.each({padding:'inner'+t,content:n,'':'outer'+t},function(i,o){e.fn[o]=function(o,s){var r=arguments.length&&(i||'boolean'!=typeof o),a=i||(o===!0||s===!0?'margin':'border');return p(this,function(n,i,o){var s;return e.isWindow(n)?n.document.documentElement['client'+t]:9===n.nodeType?(s=n.documentElement,Math.max(n.body['scroll'+t],s['scroll'+t],n.body['offset'+t],s['offset'+t],s['client'+t])):void 0===o?e.css(n,i,a):e.style(n,i,o,a)},n,r?o:void 0,r,null)}})}),e.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,'**'):this.off(e,t||'**',n)}}),e.fn.size=function(){return this.length},e.fn.andSelf=e.fn.addBack,'function'==typeof define&&define.amd&&define('jquery',[],function(){return e});var ve=t.jQuery,ye=t.$;return e.noConflict=function(n){return t.$===e&&(t.$=ye),n&&t.jQuery===e&&(t.jQuery=ve),e},n||(t.jQuery=t.$=e),e});transliterate=(function(){var t='щ   ш  ч  ц  ю  я  ё  ж  ъ  ы  э  а б в г д е з и й к л м н о п р с т у ф х ь'.split(/ +/g),e='shh sh ch cz yu ya yo zh `` y\' e` a b v g d e z i j k l m n o p r s t u f x `'.split(/ +/g);return function(n,i){var o;for(o=0;o<t.length;o++){n=n.split(i?e[o]:t[o]).join(i?t[o]:e[o]);n=n.split(i?e[o].toUpperCase():t[o].toUpperCase()).join(i?t[o].toUpperCase():e[o].toUpperCase())};return n}})();function onlylettersandnumbers(t){t=t.replace(/\s/g,'_');return t.replace(/[^\d\w_]/g,'')};function get_cookie(t){var e=document.cookie.match('(^|;) ?'+t+'=([^;]*)(;|$)');if(e)return(unescape(e[2]));else return null};function set_cookie(t,e){document.cookie=t+'='+e};function smsphone(t){while(t.value.match(/[^0-9_]/)){t.value=t.value.replace(/[^0-9]/,'')};return!0};function smsname(t){while(t.value.match(/[^\d\sA-Zа-яА-Я]/gi)){t.value=t.value.replace(/[^\d\sA-Zа-яА-Я]/gi,'')};return!0};$.fn.serializeObject=function(){var t={};var e=this.serializeArray();$.each(e,function(){if(t[this.name]!==undefined){if(!t[this.name].push){t[this.name]=[t[this.name]]};t[this.name].push(this.value||'')}
else{t[this.name]=this.value||''}});return t};if(!(document.cookie.indexOf('delivery')>=0)){set_cookie('delivery',0)};function show_cities(){$('.mp-pusher').animate({top:500},500,function(){$(window).bind('scroll',function(){if($(window).scrollTop()>$('.choosecity').outerHeight()+500){$('#atelmenumain').addClass('atelfixed')}
else{$('#atelmenumain').removeClass('atelfixed')}});$('#citycaret').removeClass('fa-caret-down').addClass('fa-caret-up');$('#city_chooser_trigger').attr('onclick','hide_cities()')})};function hide_cities(){$('.scroller').animate({top:0},500,function(){$(window).bind('scroll',function(){if($(window).scrollTop()>$('.choosecity').outerHeight()){$('#atelmenumain').addClass('atelfixed')}
else{$('#atelmenumain').removeClass('atelfixed')}});$('#citycaret').removeClass('fa-caret-up').addClass('fa-caret-down');$('#city_chooser_trigger').attr('onclick','show_cities()')})};function objinit(t,e){var n=new google.maps.LatLng(t,e),s={zoom:16,scrollwheel:!1,center:n,styles:[{'featureType':'landscape','stylers':[{'saturation':-100},{'lightness':65},{'visibility':'on'}]},{'featureType':'poi','stylers':[{'saturation':-100},{'lightness':51},{'visibility':'simplified'}]},{'featureType':'road.highway','stylers':[{'saturation':-100},{'visibility':'simplified'}]},{'featureType':'road.arterial','stylers':[{'saturation':-100},{'lightness':30},{'visibility':'on'}]},{'featureType':'road.local','stylers':[{'saturation':-100},{'lightness':40},{'visibility':'on'}]},{'featureType':'transit','stylers':[{'saturation':-100},{'visibility':'simplified'}]},{'featureType':'administrative.province','stylers':[{'visibility':'off'}]},{'featureType':'water','elementType':'labels','stylers':[{'visibility':'on'},{'lightness':-25},{'saturation':-100}]},{'featureType':'water','elementType':'geometry','stylers':[{'hue':'#ffff00'},{'lightness':-25},{'saturation':-97}]}]};var i=document.getElementById('obj-map'),o=new google.maps.Map(i,s),r=new google.maps.Marker({position:n,map:o})};var cl;function init_canvas(){var e={lines:17,length:35,width:10,radius:30,corners:1,rotate:76,direction:1,color:'#D32B32',speed:2.1,trail:60,shadow:!1,hwaccel:!1,className:'spinner',zIndex:2e9,top:'50%',left:'50%'};var t=document.getElementById('canvas_overlay'),n=new Spinner(e).spin(t)};function goToByScroll(){$('html,body').animate({scrollTop:$('.choosecity').offset().top},'slow')};function gotoelemscroll(t){$('html,body').animate({scrollTop:$('#'+t).offset().top-100},'slow')};function gotoidbyscroll(t){};function on_page_load(){$('.portfolio_arctic').each(function(){$(this).click(function(t){t.preventDefault(t);$.arcticmodal({type:'ajax',url:$(this).attr('href')})})});cart_widget();overall();$('.btn').button();if(parseInt(get_cookie('delivery'))==150){$('#delivery').addClass('active');$('#tbldelivery').fadeIn()}
else{$('#selfdelivery').addClass('active');$('#tbldelivery').fadeOut()};$('.fancybox').fancybox({afterLoad:function(){if(this.title!=''){if($(this.element).attr('type')=='many')this.title='Ссылка: <a onclick=\'event.preventDefault(); $.fancybox.close(); content_load($(this).attr("href"));\' href=\''+$(this.element).attr('link')+'\'>'+this.title+'</a> ';if($(this.element).attr('type')=='gal')this.title='<strong>'+this.title+'</strong><br>'+$(this.element).attr('description')}},helpers:{title:{type:'inside',position:'bottom'}}});$('.yamm .dropmr').dropdown().on('hide.bs.dropdown',function(t){if($.contains(dropdown,t.target)){t.preventDefault()}});fullurl=decodeURIComponent(document.location.pathname);url=fullurl.split('/');$('#accordian h3').click(function(){$('#accordian ul ul').slideUp();if(!$(this).next().is(':visible')){$(this).next().slideDown()}});$('.navbar').each(function(){curmenu=this;mwidht=100/$(this).find('.countablem').length;mwidht=mwidht.toFixed(2)-0.01+'%';$(this).find('.countablem').each(function(){$(this).css('width',mwidht);$(this).has('ul').hover(function(){$(this).addClass('atelhover_covershadow')},function(){$(this).removeClass('atelhover_covershadow')});$(this).hover(function(){$(this).addClass('atelhover')},function(){$(this).removeClass('atelhover')})})});$('.four').each(function(){$(this).click(function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)});$(this).onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)}});if(document.getElementById('links'))document.getElementById('links').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links2'))document.getElementById('links2').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links3'))document.getElementById('links3').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links4'))document.getElementById('links4').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links5'))document.getElementById('links5').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links6'))document.getElementById('links6').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links7'))document.getElementById('links7').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};if(document.getElementById('links8'))document.getElementById('links8').onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0},o=this.getElementsByTagName('a');blueimp.Gallery(o,i)};jQuery('img.svg').each(function(){var t=jQuery(this),e=t.attr('id'),n=t.attr('class'),i=t.attr('src');jQuery.get(i,function(i){var o=jQuery(i).find('svg');if(typeof e!=='undefined'){o=o.attr('id',e)};if(typeof n!=='undefined'){o=o.attr('class',n+' replaced-svg')};o=o.removeAttr('xmlns:a');t.replaceWith(o)},'xml')})};function content_load(t,e,n){var i=t;t='/'+t.split('/')[2];$('.canvas_inner').fadeIn('slow');$.post('/common/content/content_load.php',{link:t,pnumber:e},function(t){$('#ajaxcontent').html(t.content);$('#filter').html(t.filter);$('.canvas_inner').fadeOut('slow');if(t.seo_pagetitle)tmp_title=t.seo_pagetitle;else tmp_title=t.head+' | '+global_title;if(n!=1)history.pushState({pnumber:e},tmp_title,i);document.title=tmp_title;on_page_load();goToByScroll()},'json')};function content_load_f(t,e,n){$('.canvas_inner').fadeIn('slow');$.post('/common/content/content_load.php',{link:t,pnumber:e},function(i){$('#ajaxcontent').html(i.content);$('#filter').html(i.filter);$('.canvas_inner').fadeOut('slow');if(i.seo_pagetitle)tmp_title=i.seo_pagetitle;else tmp_title=i.head+' | '+global_title;if(n!=1)history.pushState({pnumber:e},tmp_title,t);document.title=tmp_title;goToByScroll()},'json')};function fixedEncodeURI(t){return t.replace('%5B','[').replace('%5D',']')};function material_filter(t,e,n){$('.canvas_inner').fadeIn('slow');sData=$('#filterform').serialize()+'&type_id='+t+'&parent='+e+'&pnumber='+n;$.get('/common/content/productfilter.php',sData,function(t){$('#ajaxcontent').html(t);$('.canvas_inner').fadeOut('slow')})};function add_to_cart(t){$.post('/mod/shop.php',{c:'add',id:t},function(t){noty({text:'<div style="font-size:1.3em">В <a style="color:black" href="/Корзина" ><span class="glyphicon glyphicon-shopping-cart"></span> Корзину</a> добавлен товар</div>',layout:'topRight',type:'error',theme:'relax'});cart_widget()})};function overall(){val=0;$('.sums').each(function(){val+=parseInt($(this).text())});val+=parseInt(get_cookie('delivery'));$('#overall').html(val+' рублей')};function sum(t){count=$('#count'+t).val();cost=$('#cost'+t).text();val=cost*count;$('#sum'+t).html(val);$.ajax({type:'POST',url:'/mod/shop.php',data:{c:'count',id:t,count:count},beforeSend:function(){overall()},success:function(t){},complete:function(){},error:function(){alert('error')}})};function plus(t){val=$('#count'+t).val();val++;$('#count'+t).val(val);sum(t)};function minus(t){val=$('#count'+t).val();if(val>1)val=val-1;$('#count'+t).val(val);sum(t)};function proddelete(t){$.ajax({type:'POST',url:'/mod/shop.php',data:{c:'del',id:t},beforeSend:function(){},success:function(t){},complete:function(){$('#stroke'+t).remove();overall();cart_widget()},error:function(){alert('error')}})};function order(){$(':input').each(function(){$(this).attr('value',$(this).val())});$('textarea').each(function(){$(this).text($(this).val())});$.ajax({type:'POST',url:'/common/widget/order.php',data:{ajax:1,content:$('#myproducts').html(),email:emailfield},beforeSend:function(){},success:function(t){$.fancybox({type:'inline',content:t})},complete:function(){},error:function(){alert('error')}})};function prodfilter(t,e){sData=$('#productfilter').serialize();sData+='&category='+t+'&type='+e;$('#ajaxcontent').html('<center><br><br><img src=\'/common/img/load.gif\'></center>');$.post('/common/content/productfilter.php',sData,function(t){$('#ajaxcontent').html(t)})};function filter_addict_load(t){option_id=$('*[name='+t+']').val();$.post('/common/content/addict_param.php',{param_id:t,option_id:option_id},function(e){$('#filter_addict'+t).html(e)})};function prodsearch(){sdata=$('#sdata').val();$('#ajaxcontent').html('<center><br><br><img src=\'/common/img/load.gif\'></center>');$.post('/common/content/prodsearch.php',{sdata:sdata},function(t){$('#ajaxcontent').html(t)})};function cart_widget(){$.post('/mod/shop.php',{c:'cart_widget'},function(t){$('#shop-basket').html(t)})};function clear_cart(){$.post('/mod/shop.php',{c:'clear_cart'},function(t){cart_widget();if(window.location.pathname=='/%D0%9A%D0%BE%D1%80%D0%B7%D0%B8%D0%BD%D0%B0')location.reload()})};function ordersendnifty(t,e){$.post('/mod/message.php',t,function(t){$('#'+e).find('.md-message').html(t)})};function nifty_send_message(t){sData=$('#modalSendMessage').serialize();sData='place=Отправка сообщения&'+sData;ordersendnifty(sData,t)};function nifty_order_call(t){sData=$('#modalOrderCall').serialize();sData='place=Заказ звонка&'+sData;ordersendnifty(sData,t)};if('undefined'==typeof jQuery)throw new Error('Bootstrap\'s JavaScript requires jQuery');+function(t){'use strict';var e=t.fn.jquery.split(' ')[0].split('.');if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3')}(jQuery),+function(t){'use strict';function e(){var n=document.createElement('bootstrap'),e={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(var t in e)if(void 0!==n.style[t])return{end:e[t]};return!1};t.fn.emulateTransitionEnd=function(e){var n=!1,o=this;t(this).one('bsTransitionEnd',function(){n=!0});var i=function(){n||t(o).trigger(t.support.transition.end)};return setTimeout(i,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 o(n){return this.each(function(){var i=t(this),o=i.data('bs.alert');o||i.data('bs.alert',o=new e(this)),'string'==typeof n&&o[n].call(i)})};var n='[data-dismiss="alert"]',e=function(e){t(e).on('click',n,this.close)};e.VERSION='3.3.6',e.TRANSITION_DURATION=150,e.prototype.close=function(n){function r(){i.detach().trigger('closed.bs.alert').remove()};var s=t(this),o=s.attr('data-target');o||(o=s.attr('href'),o=o&&o.replace(/.*(?=#[^\s]*$)/,''));var i=t(o);n&&n.preventDefault(),i.length||(i=s.closest('.alert')),i.trigger(n=t.Event('close.bs.alert')),n.isDefaultPrevented()||(i.removeClass('in'),t.support.transition&&i.hasClass('fade')?i.one('bsTransitionEnd',r).emulateTransitionEnd(e.TRANSITION_DURATION):r())};var i=t.fn.alert;t.fn.alert=o,t.fn.alert.Constructor=e,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on('click.bs.alert.data-api',n,e.prototype.close)}(jQuery),+function(t){'use strict';function n(n){return this.each(function(){var o=t(this),i=o.data('bs.button'),s='object'==typeof n&&n;i||o.data('bs.button',i=new e(this,s)),'toggle'==n?i.toggle():n&&i.setState(n)})};var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};e.VERSION='3.3.6',e.DEFAULTS={loadingText:'loading...'},e.prototype.setState=function(e){var i='disabled',n=this.$element,s=n.is('input')?'val':'html',o=n.data();e+='Text',null==o.resetText&&n.data('resetText',n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),'loadingText'==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},e.prototype.toggle=function(){var e=!0,n=this.$element.closest('[data-toggle="buttons"]');if(n.length){var t=this.$element.find('input');'radio'==t.prop('type')?(t.prop('checked')&&(e=!1),n.find('.active').removeClass('active'),this.$element.addClass('active')):'checkbox'==t.prop('type')&&(t.prop('checked')!==this.$element.hasClass('active')&&(e=!1),this.$element.toggleClass('active')),t.prop('checked',this.$element.hasClass('active')),e&&t.trigger('change')}
else this.$element.attr('aria-pressed',!this.$element.hasClass('active')),this.$element.toggleClass('active')};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var i=t(e.target);i.hasClass('btn')||(i=i.closest('.btn')),n.call(i,'toggle'),t(e.target).is('input[type="radio"]')||t(e.target).is('input[type="checkbox"]')||e.preventDefault()}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){t(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type))})}(jQuery),+function(t){'use strict';function n(n){return this.each(function(){var o=t(this),i=o.data('bs.carousel'),s=t.extend({},e.DEFAULTS,o.data(),'object'==typeof n&&n),r='string'==typeof n?n:s.slide;i||o.data('bs.carousel',i=new e(this,s)),'number'==typeof n?i.to(n):r?i[r]():s.interval&&i.pause().cycle()})};var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find('.carousel-indicators'),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on('keydown.bs.carousel',t.proxy(this.keydown,this)),'hover'==this.options.pause&&!('ontouchstart'in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',t.proxy(this.pause,this)).on('mouseleave.bs.carousel',t.proxy(this.cycle,this))};e.VERSION='3.3.6',e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:'hover',wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return};t.preventDefault()}},e.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},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children('.item'),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e),s='prev'==t&&0===n||'next'==t&&n==this.$items.length-1;if(s&&!this.options.wrap)return e;var i='prev'==t?-1:1,o=(n+i)%this.$items.length;return this.$items.eq(o)},e.prototype.to=function(t){var n=this,e=this.getItemIndex(this.$active=this.$element.find('.item.active'));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one('slid.bs.carousel',function(){n.to(t)}):e==t?this.pause().cycle():this.slide(t>e?'next':'prev',this.$items.eq(t))},e.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},e.prototype.next=function(){return this.sliding?void 0:this.slide('next')},e.prototype.prev=function(){return this.sliding?void 0:this.slide('prev')},e.prototype.slide=function(n,i){var r=this.$element.find('.item.active'),o=i||this.getItemForDirection(n,r),d=this.interval,s='next'==n?'left':'right',h=this;if(o.hasClass('active'))return this.sliding=!1;var c=o[0],u=t.Event('slide.bs.carousel',{relatedTarget:c,direction:s});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,d&&this.pause(),this.$indicators.length){this.$indicators.find('.active').removeClass('active');var l=t(this.$indicators.children()[this.getItemIndex(o)]);l&&l.addClass('active')};var a=t.Event('slid.bs.carousel',{relatedTarget:c,direction:s});return t.support.transition&&this.$element.hasClass('slide')?(o.addClass(n),o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one('bsTransitionEnd',function(){o.removeClass([n,s].join(' ')).addClass('active'),r.removeClass(['active',s].join(' ')),h.sliding=!1,setTimeout(function(){h.$element.trigger(a)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass('active'),o.addClass('active'),this.sliding=!1,this.$element.trigger(a)),d&&this.cycle(),this}};var o=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=o,this};var i=function(e){var a,i=t(this),o=t(i.attr('data-target')||(a=i.attr('href'))&&a.replace(/.*(?=#[^\s]+$)/,''));if(o.hasClass('carousel')){var r=t.extend({},o.data(),i.data()),s=i.attr('data-slide-to');s&&(r.interval=!1),n.call(o,r),s&&o.data('bs.carousel').to(s),e.preventDefault()}};t(document).on('click.bs.carousel.data-api','[data-slide]',i).on('click.bs.carousel.data-api','[data-slide-to]',i),t(window).on('load',function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){'use strict';function i(e){var n,i=e.attr('data-target')||(n=e.attr('href'))&&n.replace(/.*(?=#[^\s]+$)/,'');return t(i)};function n(n){return this.each(function(){var o=t(this),i=o.data('bs.collapse'),s=t.extend({},e.DEFAULTS,o.data(),'object'==typeof n&&n);!i&&s.toggle&&/show|hide/.test(n)&&(s.toggle=!1),i||o.data('bs.collapse',i=new e(this,s)),'string'==typeof n&&i[n]()})};var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};e.VERSION='3.3.6',e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){var t=this.$element.hasClass('width');return t?'width':'height'},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass('in')){var s,i=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing');if(!(i&&i.length&&(s=i.data('bs.collapse'),s&&s.transitioning))){var a=t.Event('show.bs.collapse');if(this.$element.trigger(a),!a.isDefaultPrevented()){i&&i.length&&(n.call(i,'hide'),s||i.data('bs.collapse',null));var o=this.dimension();this.$element.removeClass('collapse').addClass('collapsing')[o](0).attr('aria-expanded',!0),this.$trigger.removeClass('collapsed').attr('aria-expanded',!0),this.transitioning=1;var r=function(){this.$element.removeClass('collapsing').addClass('collapse in')[o](''),this.transitioning=0,this.$element.trigger('shown.bs.collapse')};if(!t.support.transition)return r.call(this);var l=t.camelCase(['scroll',o].join('-'));this.$element.one('bsTransitionEnd',t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[o](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass('in')){var o=t.Event('hide.bs.collapse');if(this.$element.trigger(o),!o.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',!1),this.$trigger.addClass('collapsed').attr('aria-expanded',!1),this.transitioning=1;var i=function(){this.transitioning=0,this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')};return t.support.transition?void this.$element[n](0).one('bsTransitionEnd',t.proxy(i,this)).emulateTransitionEnd(e.TRANSITION_DURATION):i.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']()},e.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,n){var o=t(n);this.addAriaAndCollapsedClass(i(o),o)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass('in');t.attr('aria-expanded',n),e.toggleClass('collapsed',!n).attr('aria-expanded',n)};var o=t.fn.collapse;t.fn.collapse=n,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var o=t(this);o.attr('data-target')||e.preventDefault();var s=i(o),r=s.data('bs.collapse'),a=r?'toggle':o.data();n.call(s,a)})}(jQuery),+function(t){'use strict';function i(e){var n=e.attr('data-target');n||(n=e.attr('href'),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,''));var i=n&&t(n);return i&&i.length?i:e.parent()};function o(e){e&&3===e.which||(t(r).remove(),t(n).each(function(){var o=t(this),n=i(o),s={relatedTarget:this};n.hasClass('open')&&(e&&'click'==e.type&&/input|textarea/i.test(e.target.tagName)&&t.contains(n[0],e.target)||(n.trigger(e=t.Event('hide.bs.dropdown',s)),e.isDefaultPrevented()||(o.attr('aria-expanded','false'),n.removeClass('open').trigger(t.Event('hidden.bs.dropdown',s)))))}))};function a(n){return this.each(function(){var i=t(this),o=i.data('bs.dropdown');o||i.data('bs.dropdown',o=new e(this)),'string'==typeof n&&o[n].call(i)})};var r='.dropdown-backdrop',n='[data-toggle="dropdown"]',e=function(e){t(e).on('click.bs.dropdown',this.toggle)};e.VERSION='3.3.6',e.prototype.toggle=function(e){var s=t(this);if(!s.is('.disabled, :disabled')){var n=i(s),a=n.hasClass('open');if(o(),!a){'ontouchstart'in document.documentElement&&!n.closest('.navbar-nav').length&&t(document.createElement('div')).addClass('dropdown-backdrop').insertAfter(t(this)).on('click',o);var r={relatedTarget:this};if(n.trigger(e=t.Event('show.bs.dropdown',r)),e.isDefaultPrevented())return;s.trigger('focus').attr('aria-expanded','true'),n.toggleClass('open').trigger(t.Event('shown.bs.dropdown',r))};return!1}},e.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var a=t(this);if(e.preventDefault(),e.stopPropagation(),!a.is('.disabled, :disabled')){var r=i(a),l=r.hasClass('open');if(!l&&27!=e.which||l&&27==e.which)return 27==e.which&&r.find(n).trigger('focus'),a.trigger('click');var c=' li:not(.disabled):visible a',s=r.find('.dropdown-menu'+c);if(s.length){var o=s.index(e.target);38==e.which&&o>0&&o--,40==e.which&&o<s.length-1&&o++,~o||(o=0),s.eq(o).trigger('focus')}}}};var s=t.fn.dropdown;t.fn.dropdown=a,t.fn.dropdown.Constructor=e,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=s,this},t(document).on('click.bs.dropdown.data-api',o).on('click.bs.dropdown.data-api','.dropdown form',function(t){t.stopPropagation()}).on('click.bs.dropdown.data-api',n,e.prototype.toggle).on('keydown.bs.dropdown.data-api',n,e.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',e.prototype.keydown)}(jQuery),+function(t){'use strict';function n(n,i){return this.each(function(){var s=t(this),o=s.data('bs.modal'),r=t.extend({},e.DEFAULTS,s.data(),'object'==typeof n&&n);o||s.data('bs.modal',o=new e(this,r)),'string'==typeof n?o[n](i):r.show&&o.show(i)})};var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find('.modal-dialog'),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.options.remote&&this.$element.find('.modal-content').load(this.options.remote,t.proxy(function(){this.$element.trigger('loaded.bs.modal')},this))};e.VERSION='3.3.6',e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,o=t.Event('show.bs.modal',{relatedTarget:n});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass('modal-open'),this.escape(),this.resize(),this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on('mousedown.dismiss.bs.modal',function(){i.$element.one('mouseup.dismiss.bs.modal',function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var s=t.support.transition&&i.$element.hasClass('fade');i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),s&&i.$element[0].offsetWidth,i.$element.addClass('in'),i.enforceFocus();var o=t.Event('shown.bs.modal',{relatedTarget:n});s?i.$dialog.one('bsTransitionEnd',function(){i.$element.trigger('focus').trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger('focus').trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event('hide.bs.modal'),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off('focusin.bs.modal'),this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal'),this.$dialog.off('mousedown.dismiss.bs.modal'),t.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.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))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on('keydown.dismiss.bs.modal',t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off('keydown.dismiss.bs.modal')},e.prototype.resize=function(){this.isShown?t(window).on('resize.bs.modal',t.proxy(this.handleUpdate,this)):t(window).off('resize.bs.modal')},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass('modal-open'),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger('hidden.bs.modal')})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var r=this,s=this.$element.hasClass('fade')?'fade':'';if(this.isShown&&this.options.backdrop){var o=t.support.transition&&s;if(this.$backdrop=t(document.createElement('div')).addClass('modal-backdrop '+s).appendTo(this.$body),this.$element.on('click.dismiss.bs.modal',t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&('static'==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass('in'),!n)return;o?this.$backdrop.one('bsTransitionEnd',n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}
else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in');var i=function(){r.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}
else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:''})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)};this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var t=parseInt(this.$body.css('padding-right')||0,10);this.originalBodyPad=document.body.style.paddingRight||'',this.bodyIsOverflowing&&this.$body.css('padding-right',t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad)},e.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 i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var i=t(this),s=i.attr('href'),o=t(i.attr('data-target')||s&&s.replace(/.*(?=#[^\s]+$)/,'')),r=o.data('bs.modal')?'toggle':t.extend({remote:!/#/.test(s)&&s},o.data(),i.data());i.is('a')&&e.preventDefault(),o.one('show.bs.modal',function(t){t.isDefaultPrevented()||o.one('hidden.bs.modal',function(){i.is(':visible')&&i.trigger('focus')})}),n.call(o,r,this)})}(jQuery),+function(t){'use strict';function i(n){return this.each(function(){var o=t(this),i=o.data('bs.tooltip'),s='object'==typeof n&&n;(i||!/destroy|hide/.test(n))&&(i||o.data('bs.tooltip',i=new e(this,s)),'string'==typeof n&&i[n]())})};var e=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init('tooltip',t,e)};e.VERSION='3.3.6',e.TRANSITION_DURATION=150,e.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}},e.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!');for(var s=this.options.trigger.split(' '),r=s.length;r--;){var o=s[r];if('click'==o)this.$element.on('click.'+this.type,this.options.selector,t.proxy(this.toggle,this));else if('manual'!=o){var a='hover'==o?'mouseenter':'focusin',l='hover'==o?'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()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.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},e.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data('bs.'+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data('bs.'+this.type,n)),e instanceof t.Event&&(n.inState['focusin'==e.type?'focus':'hover']=!0),n.tip().hasClass('in')||'in'==n.hoverState?void(n.hoverState='in'):(clearTimeout(n.timeout),n.hoverState='in',n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){'in'==n.hoverState&&n.show()},n.options.delay.show)):n.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data('bs.'+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data('bs.'+this.type,n)),e instanceof t.Event&&(n.inState['focusout'==e.type?'focus':'hover']=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState='out',n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){'out'==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},e.prototype.show=function(){var p=t.Event('show.bs.'+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(p);var g=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(p.isDefaultPrevented()||!g)return;var o=this,i=this.tip(),h=this.getUID(this.type);this.setContent(),i.attr('id',h),this.$element.attr('aria-describedby',h),this.options.animation&&i.addClass('fade');var n='function'==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,d=u.test(n);d&&(n=n.replace(u,'')||'top'),i.detach().css({top:0,left:0,display:'block'}).addClass(n).data('bs.'+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger('inserted.bs.'+this.type);var s=this.getPosition(),a=i[0].offsetWidth,l=i[0].offsetHeight;if(d){var m=n,r=this.getPosition(this.$viewport);n='bottom'==n&&s.bottom+l>r.bottom?'top':'top'==n&&s.top-l<r.top?'bottom':'right'==n&&s.right+a>r.width?'left':'left'==n&&s.left-a<r.left?'right':n,i.removeClass(m).addClass(n)};var f=this.getCalculatedOffset(n,s,a,l);this.applyPlacement(f,n);var c=function(){var t=o.hoverState;o.$element.trigger('shown.bs.'+o.type),o.hoverState=null,'out'==t&&o.leave(o)};t.support.transition&&this.$tip.hasClass('fade')?i.one('bsTransitionEnd',c).emulateTransitionEnd(e.TRANSITION_DURATION):c()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),p=i[0].offsetWidth,a=i[0].offsetHeight,l=parseInt(i.css('margin-top'),10),c=parseInt(i.css('margin-left'),10);isNaN(l)&&(l=0),isNaN(c)&&(c=0),e.top+=l,e.left+=c,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass('in');var u=i[0].offsetWidth,s=i[0].offsetHeight;'top'==n&&s!=a&&(e.top=e.top+a-s);var o=this.getViewportAdjustedDelta(n,e,u,s);o.left?e.left+=o.left:e.top+=o.top;var r=/top|bottom/.test(n),d=r?2*o.left-p+u:2*o.top-a+s,h=r?'offsetWidth':'offsetHeight';i.offset(e),this.replaceArrow(d,i[0][h],r)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?'left':'top',50*(1-t/e)+'%').css(n?'top':'left','')},e.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')},e.prototype.hide=function(n){function r(){'in'!=o.hoverState&&i.detach(),o.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+o.type),n&&n()};var o=this,i=t(this.$tip),s=t.Event('hide.bs.'+this.type);return this.$element.trigger(s),s.isDefaultPrevented()?void 0:(i.removeClass('in'),t.support.transition&&i.hasClass('fade')?i.one('bsTransitionEnd',r).emulateTransitionEnd(e.TRANSITION_DURATION):r(),this.hoverState=null,this)},e.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','')},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){e=e||this.$element;var o=e[0],i='BODY'==o.tagName,n=o.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var s=i?{top:0,left:0}:e.offset(),r={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,r,a,s)},e.prototype.getCalculatedOffset=function(t,e,n,i){return'bottom'==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:'top'==t?{top:e.top-i,left:e.left+e.width/2-n/2}:'left'==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var s={top:0,left:0};if(!this.$viewport)return s;var r=this.options.viewport&&this.options.viewport.padding||0,o=this.getPosition(this.$viewport);if(/right|left/.test(t)){var c=e.top-r-o.scroll,u=e.top+r-o.scroll+i;c<o.top?s.top=o.top-c:u>o.top+o.height&&(s.top=o.top+o.height-u)}
else{var a=e.left-r,l=e.left+r+n;a<o.left?s.left=o.left-a:l>o.right&&(s.left=o.left+o.width-l)};return s},e.prototype.getTitle=function(){var n,e=this.$element,t=this.options;return n=e.attr('data-original-title')||('function'==typeof t.title?t.title.call(e[0]):t.title)},e.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},e.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!');return this.$tip},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow')},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data('bs.'+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data('bs.'+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass('in')?n.leave(n):n.enter(n)},e.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off('.'+t.type).removeData('bs.'+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=i,t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){'use strict';function i(n){return this.each(function(){var o=t(this),i=o.data('bs.popover'),s='object'==typeof n&&n;(i||!/destroy|hide/.test(n))&&(i||o.data('bs.popover',i=new e(this,s)),'string'==typeof n&&i[n]())})};var e=function(t,e){this.init('popover',t,e)};if(!t.fn.tooltip)throw new Error('Popover requires tooltip.js');e.VERSION='3.3.6',e.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>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),n=this.getTitle(),e=this.getContent();t.find('.popover-title')[this.options.html?'html':'text'](n),t.find('.popover-content').children().detach().end()[this.options.html?'string'==typeof e?'html':'append':'text'](e),t.removeClass('fade top bottom left right in'),t.find('.popover-title').html()||t.find('.popover-title').hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr('data-content')||('function'==typeof t.content?t.content.call(e[0]):t.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find('.arrow')};var n=t.fn.popover;t.fn.popover=i,t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),+function(t){'use strict';function e(n,i){this.$body=t(document.body),this.$scrollElement=t(t(n).is(document.body)?window:n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||'')+' .nav li > a',this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on('scroll.bs.scrollspy',t.proxy(this.process,this)),this.refresh(),this.process()};function n(n){return this.each(function(){var o=t(this),i=o.data('bs.scrollspy'),s='object'==typeof n&&n;i||o.data('bs.scrollspy',i=new e(this,s)),'string'==typeof n&&i[n]()})};e.VERSION='3.3.6',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=this,n='offset',i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n='position',i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var s=t(this),o=s.data('target')||s.attr('href'),e=/^#./.test(o)&&t(o);return e&&e.length&&e.is(':visible')&&[[e[n]().top+i,o]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,n=this.$scrollElement.scrollTop()+this.options.offset,s=this.getScrollHeight(),r=this.options.offset+s-this.$scrollElement.height(),e=this.offsets,i=this.targets,o=this.activeTarget;if(this.scrollHeight!=s&&this.refresh(),n>=r)return o!=(t=i[i.length-1])&&this.activate(t);if(o&&n<e[0])return this.activeTarget=null,this.clear();for(t=e.length;t--;)o!=i[t]&&n>=e[t]&&(void 0===e[t+1]||n<e[t+1])&&this.activate(i[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',n=t(i).parents('li').addClass('active');n.parent('.dropdown-menu').length&&(n=n.closest('li.dropdown').addClass('active')),n.trigger('activate.bs.scrollspy')},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,'.active').removeClass('active')};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on('load.bs.scrollspy.data-api',function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),+function(t){'use strict';function i(n){return this.each(function(){var o=t(this),i=o.data('bs.tab');i||o.data('bs.tab',i=new e(this)),'string'==typeof n&&i[n]()})};var e=function(e){this.element=t(e)};e.VERSION='3.3.6',e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,a=e.closest('ul:not(.dropdown-menu)'),n=e.data('target');if(n||(n=e.attr('href'),n=n&&n.replace(/.*(?=#[^\s]*$)/,'')),!e.parent('li').hasClass('active')){var i=a.find('.active:last a'),s=t.Event('hide.bs.tab',{relatedTarget:e[0]}),r=t.Event('show.bs.tab',{relatedTarget:i[0]});if(i.trigger(s),e.trigger(r),!r.isDefaultPrevented()&&!s.isDefaultPrevented()){var o=t(n);this.activate(e.closest('li'),a),this.activate(o,o.parent(),function(){i.trigger({type:'hidden.bs.tab',relatedTarget:e[0]}),e.trigger({type:'shown.bs.tab',relatedTarget:i[0]})})}}},e.prototype.activate=function(n,i,o){function a(){s.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!1),n.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',!0),r?(n[0].offsetWidth,n.addClass('in')):n.removeClass('fade'),n.parent('.dropdown-menu').length&&n.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',!0),o&&o()};var s=i.find('> .active'),r=o&&t.support.transition&&(s.length&&s.hasClass('fade')||!!i.find('> .fade').length);s.length&&r?s.one('bsTransitionEnd',a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),s.removeClass('in')};var o=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=o,this};var n=function(e){e.preventDefault(),i.call(t(this),'show')};t(document).on('click.bs.tab.data-api','[data-toggle="tab"]',n).on('click.bs.tab.data-api','[data-toggle="pill"]',n)}(jQuery),+function(t){'use strict';function n(n){return this.each(function(){var o=t(this),i=o.data('bs.affix'),s='object'==typeof n&&n;i||o.data('bs.affix',i=new e(this,s)),'string'==typeof n&&i[n]()})};var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),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(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};e.VERSION='3.3.6',e.RESET='affix affix-top affix-bottom',e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var o=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(null!=n&&'top'==this.affixed)return n>o?'top':!1;if('bottom'==this.affixed)return null!=n?o+this.unpin<=r.top?!1:'bottom':t-i>=o+a?!1:'bottom';var s=null==this.affixed,l=s?o:r.top,c=s?a:e;return null!=n&&n>=o?'top':null!=i&&l+c>=t-i?'bottom':!1},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass('affix');var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(':visible')){var l=this.$element.height(),i=this.options.offset,s=i.top,o=i.bottom,c=Math.max(t(document).height(),t(document.body).height());'object'!=typeof i&&(o=s=i),'function'==typeof s&&(s=i.top(this.$element)),'function'==typeof o&&(o=i.bottom(this.$element));var n=this.getState(c,l,s,o);if(this.affixed!=n){null!=this.unpin&&this.$element.css('top','');var r='affix'+(n?'-'+n:''),a=t.Event(r+'.bs.affix');if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=n,this.unpin='bottom'==n?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(r).trigger(r.replace('affix','affixed')+'.bs.affix')};'bottom'==n&&this.$element.offset({top:c-l-o})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on('load',function(){t('[data-spy="affix"]').each(function(){var i=t(this),e=i.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(i,e)})})}(jQuery);(function(t,e,n,o){'use strict';var m=n('html'),r=n(t),a=n(e),i=n.fancybox=function(){i.open.apply(this,arguments)},f=navigator.userAgent.match(/msie/i),p=null,l=e.createTouch!==o,h=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(t){return t&&n.type(t)==='string'},d=function(t){return u(t)&&t.indexOf('%')>0},g=function(t){return(t&&!(t.style.overflow&&t.style.overflow==='hidden')&&((t.clientWidth&&t.scrollWidth>t.clientWidth)||(t.clientHeight&&t.scrollHeight>t.clientHeight)))},s=function(t,e){var n=parseInt(t,10)||0;if(e&&d(t)){n=i.getViewport()[e]/100*n};return Math.ceil(n)},c=function(t,e){return s(t,e)+'px'};n.extend(i,{version:'2.1.5',defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!l,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:'auto',wrapCSS:'',arrows:!0,closeBtn:!1,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3000,preload:3,modal:!1,loop:!0,ajax:{dataType:'html',headers:{'X-fancyBox':!0}},iframe:{scrolling:'auto',preload:!0},swf:{wmode:'transparent',allowfullscreen:'true',allowscriptaccess:'always'},keys:{next:{13:'left',34:'up',39:'left',40:'up'},prev:{8:'right',33:'down',37:'right',38:'down'},close:[27],play:[32],toggle:[70]},direction:{next:'left',prev:'right'},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(f?' allowtransparency="true"':'')+'></iframe>',error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:'fade',openSpeed:250,openEasing:'swing',openOpacity:!0,openMethod:'zoomIn',closeEffect:'fade',closeSpeed:250,closeEasing:'swing',closeOpacity:!0,closeMethod:'zoomOut',nextEffect:'elastic',nextSpeed:250,nextEasing:'swing',nextMethod:'changeIn',prevEffect:'elastic',prevSpeed:250,prevEasing:'swing',prevMethod:'changeOut',helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(!t){return};if(!n.isPlainObject(e)){e={}};if(!1===i.close(!0)){return};if(!n.isArray(t)){t=h(t)?n(t).get():[t]};n.each(t,function(s,r){var c={},l,m,d,a,p,f,g;if(n.type(r)==='object'){if(r.nodeType){r=n(r)};if(h(r)){c={href:r.data('fancybox-href')||r.attr('href'),title:r.data('fancybox-title')||r.attr('title'),isDom:!0,element:r};if(n.metadata){n.extend(!0,c,r.metadata())}}
else{c=r}};l=e.href||c.href||(u(r)?r:null);m=e.title!==o?e.title:c.title||'';d=e.content||c.content;a=d?'html':(e.type||c.type);if(!a&&c.isDom){a=r.data('fancybox-type');if(!a){p=r.prop('class').match(/fancybox\.(\w+)/);a=p?p[1]:null}};if(u(l)){if(!a){if(i.isImage(l)){a='image'}
else if(i.isSWF(l)){a='swf'}
else if(l.charAt(0)==='#'){a='inline'}
else if(u(r)){a='html';d=r}};if(a==='ajax'){f=l.split(/\s+/,2);l=f.shift();g=f.shift()}};if(!d){if(a==='inline'){if(l){d=n(u(l)?l.replace(/.*(?=#[^\s]+$)/,''):l)}
else if(c.isDom){d=r}}
else if(a==='html'){d=l}
else if(!a&&!l&&c.isDom){a='inline';d=r}};n.extend(c,{href:l,type:a,content:d,title:m,selector:g});t[s]=c});i.opts=n.extend(!0,{},i.defaults,e);if(e.keys!==o){i.opts.keys=e.keys?n.extend({},i.defaults.keys,e.keys):!1};i.group=t;return i._start(i.opts.index)},cancel:function(){var t=i.coming;if(!t||!1===i.trigger('onCancel')){return};i.hideLoading();if(i.ajaxLoad){i.ajaxLoad.abort()};i.ajaxLoad=null;if(i.imgPreload){i.imgPreload.onload=i.imgPreload.onerror=null};if(t.wrap){t.wrap.stop(!0,!0).trigger('onReset').remove()};i.coming=null;if(!i.current){i._afterZoomOut(t)}},close:function(t){i.cancel();if(!1===i.trigger('beforeClose')){return};i.unbindEvents();if(!i.isActive){return};if(!i.isOpen||t===!0){n('.fancybox-wrap').stop(!0).trigger('onReset').remove();i._afterZoomOut()}
else{i.isOpen=i.isOpened=!1;i.isClosing=!0;n('.fancybox-item, .fancybox-nav').remove();i.wrap.stop(!0,!0).removeClass('fancybox-opened');i.transitions[i.current.closeMethod]()}},play:function(t){var e=function(){clearTimeout(i.player.timer)},n=function(){e();if(i.current&&i.player.isActive){i.player.timer=setTimeout(i.next,i.current.playSpeed)}},o=function(){e();a.unbind('.player');i.player.isActive=!1;i.trigger('onPlayEnd')},s=function(){if(i.current&&(i.current.loop||i.current.index<i.group.length-1)){i.player.isActive=!0;a.bind({'onCancel.player beforeClose.player':o,'onUpdate.player':n,'beforeLoad.player':e});n();i.trigger('onPlayStart')}};if(t===!0||(!i.player.isActive&&t!==!1)){s()}
else{o()}},next:function(t){var e=i.current;if(e){if(!u(t)){t=e.direction.next};i.jumpto(e.index+1,t,'next')}},prev:function(t){var e=i.current;if(e){if(!u(t)){t=e.direction.prev};i.jumpto(e.index-1,t,'prev')}},jumpto:function(t,e,n){var r=i.current;if(!r){return};t=s(t);i.direction=e||r.direction[(t>=r.index?'next':'prev')];i.router=n||'jumpto';if(r.loop){if(t<0){t=r.group.length+(t%r.group.length)};t=t%r.group.length};if(r.group[t]!==o){i.cancel();i._start(t)}},reposition:function(t,e){var s=i.current,r=s?s.wrap:null,o;if(r){o=i._getPosition(e);if(t&&t.type==='scroll'){delete o.position;r.stop(!0,!0).animate(o,200)}
else{r.css(o);s.pos=n.extend({},s.dim,o)}}},update:function(t){var e=(t&&t.type),n=!e||e==='orientationchange';if(n){clearTimeout(p);p=null};if(!i.isOpen||p){return};p=setTimeout(function(){var o=i.current;if(!o||i.isClosing){return};i.wrap.removeClass('fancybox-tmp');if(n||e==='load'||(e==='resize'&&o.autoResize)){i._setDimension()};if(!(e==='scroll'&&o.canShrink)){i.reposition(t)};i.trigger('onUpdate');p=null},(n&&!l?0:300))},toggle:function(t){if(i.isOpen){i.current.fitToView=n.type(t)==='boolean'?t:!i.current.fitToView;if(l){i.wrap.removeAttr('style').addClass('fancybox-tmp');i.trigger('onUpdate')};i.update()}},hideLoading:function(){a.unbind('.loading');n('#fancybox-loading').remove()},showLoading:function(){var e,t;i.hideLoading();e=n('<div id="fancybox-loading"><div></div></div>').click(i.cancel).appendTo('body');a.bind('keydown.loading',function(t){if((t.which||t.keyCode)===27){t.preventDefault();i.cancel()}});if(!i.defaults.fixed){t=i.getViewport();e.css({position:'absolute',top:(t.h*0.5)+t.y,left:(t.w*0.5)+t.x})}},getViewport:function(){var n=(i.current&&i.current.locked)||!1,e={x:r.scrollLeft(),y:r.scrollTop()};if(n){e.w=n[0].clientWidth;e.h=n[0].clientHeight}
else{e.w=l&&t.innerWidth?t.innerWidth:r.width();e.h=l&&t.innerHeight?t.innerHeight:r.height()};return e},unbindEvents:function(){if(i.wrap&&h(i.wrap)){i.wrap.unbind('.fb')};a.unbind('.fb');r.unbind('.fb')},bindEvents:function(){var t=i.current,e;if(!t){return};r.bind('orientationchange.fb'+(l?'':' resize.fb')+(t.autoCenter&&!t.locked?' scroll.fb':''),i.update);e=t.keys;if(e){a.bind('keydown.fb',function(s){var r=s.which||s.keyCode,a=s.target||s.srcElement;if(r===27&&i.coming){return!1};if(!s.ctrlKey&&!s.altKey&&!s.shiftKey&&!s.metaKey&&!(a&&(a.type||n(a).is('[contenteditable]')))){n.each(e,function(e,a){if(t.group.length>1&&a[r]!==o){i[e](a[r]);s.preventDefault();return!1};if(n.inArray(r,a)>-1){i[e]();s.preventDefault();return!1}})}})};if(n.fn.mousewheel&&t.mouseWheel){i.wrap.bind('mousewheel.fb',function(e,o,s,r){var c=e.target||null,a=n(c),l=!1;while(a.length){if(l||a.is('.fancybox-skin')||a.is('.fancybox-wrap')){break};l=g(a[0]);a=n(a).parent()};if(o!==0&&!l){if(i.group.length>1&&!t.canShrink){if(r>0||s>0){i.prev(r>0?'down':'left')}
else if(r<0||s<0){i.next(r<0?'up':'right')};e.preventDefault()}}})}},trigger:function(t,e){var s,o=e||i.coming||i.current;if(!o){return};if(n.isFunction(o[t])){s=o[t].apply(o,Array.prototype.slice.call(arguments,1))};if(s===!1){return!1};if(o.helpers){n.each(o.helpers,function(e,s){if(s&&i.helpers[e]&&n.isFunction(i.helpers[e][t])){i.helpers[e][t](n.extend(!0,{},i.helpers[e].defaults,s),o)}})};a.trigger(t)},isImage:function(t){return u(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return u(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e={},u,d,o,r,a;t=s(t);u=i.group[t]||null;if(!u){return!1};e=n.extend(!0,{},i.opts,u);r=e.margin;a=e.padding;if(n.type(r)==='number'){e.margin=[r,r,r,r]};if(n.type(a)==='number'){e.padding=[a,a,a,a]};if(e.modal){n.extend(!0,e,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}})};if(e.autoSize){e.autoWidth=e.autoHeight=!0};if(e.width==='auto'){e.autoWidth=!0};if(e.height==='auto'){e.autoHeight=!0};e.group=i.group;e.index=t;i.coming=e;if(!1===i.trigger('beforeLoad')){i.coming=null;return};o=e.type;d=e.href;if(!o){i.coming=null;if(i.current&&i.router&&i.router!=='jumpto'){i.current.index=t;return i[i.router](i.direction)};return!1};i.isActive=!0;if(o==='image'||o==='swf'){e.autoHeight=e.autoWidth=!1;e.scrolling='visible'};if(o==='image'){e.aspectRatio=!0};if(o==='iframe'&&l){e.scrolling='scroll'};e.wrap=n(e.tpl.wrap).addClass('fancybox-'+(l?'mobile':'desktop')+' fancybox-type-'+o+' fancybox-tmp '+e.wrapCSS).appendTo(e.parent||'body');n.extend(e,{skin:n('.fancybox-skin',e.wrap),outer:n('.fancybox-outer',e.wrap),inner:n('.fancybox-inner',e.wrap)});n.each(['Top','Right','Bottom','Left'],function(t,n){e.skin.css('padding'+n,c(e.padding[t]))});i.trigger('onReady');if(o==='inline'||o==='html'){if(!e.content||!e.content.length){return i._error('content')}}
else if(!d){return i._error('href')};if(o==='image'){i._loadImage()}
else if(o==='ajax'){i._loadAjax()}
else if(o==='iframe'){i._loadIframe()}
else{i._afterLoad()}},_error:function(t){n.extend(i.coming,{type:'html',autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:'no',hasError:t,content:i.coming.tpl.error});i._afterLoad()},_loadImage:function(){var t=i.imgPreload=new Image();t.onload=function(){this.onload=this.onerror=null;i.coming.width=this.width/i.opts.pixelRatio;i.coming.height=this.height/i.opts.pixelRatio;i._afterLoad()};t.onerror=function(){this.onload=this.onerror=null;i._error('image')};t.src=i.coming.href;if(t.complete!==!0){i.showLoading()}},_loadAjax:function(){var t=i.coming;i.showLoading();i.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){if(i.coming&&e!=='abort'){i._error('ajax',t)}
else{i.hideLoading()}},success:function(e,n){if(n==='success'){t.content=e;i._afterLoad()}}}))},_loadIframe:function(){var t=i.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr('scrolling',l?'auto':t.iframe.scrolling).attr('src',t.href);n(t.wrap).bind('onReset',function(){try{n(this).find('iframe').hide().attr('src','//about:blank').end().empty()}catch(t){}});if(t.iframe.preload){i.showLoading();e.one('load',function(){n(this).data('ready',1);if(!l){n(this).bind('load.fb',i.update)};n(this).parents('.fancybox-wrap').width('100%').removeClass('fancybox-tmp').show();i._afterLoad()})};t.content=e.appendTo(t.inner);if(!t.iframe.preload){i._afterLoad()}},_preloadImages:function(){var o=i.group,n=i.current,s=o.length,r=n.preload?Math.min(n.preload,s-1):0,t,e;for(e=1;e<=r;e+=1){t=o[(n.index+e)%s];if(t.type==='image'&&t.href){new Image().src=t.href}}},_afterLoad:function(){var o=i.coming,s=i.current,r='fancybox-placeholder',e,t,u,a,l,c;i.hideLoading();if(!o||i.isActive===!1){return};if(!1===i.trigger('afterLoad',o,s)){o.wrap.stop(!0).trigger('onReset').remove();i.coming=null;return};if(s){i.trigger('beforeChange',s);s.wrap.stop(!0).removeClass('fancybox-opened').find('.fancybox-item, .fancybox-nav').remove()};i.unbindEvents();e=o;t=o.content;u=o.type;a=o.scrolling;n.extend(i,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:s});l=e.href;switch(u){case'inline':case'ajax':case'html':if(e.selector){t=n('<div>').html(t).find(e.selector)}
else if(h(t)){if(!t.data(r)){t.data(r,n('<div class="'+r+'"></div>').insertAfter(t).hide())};t=t.show().detach();e.wrap.bind('onReset',function(){if(n(this).find(t).length){t.hide().replaceAll(t.data(r)).data(r,!1)}})};break;case'image':t=e.tpl.image.replace('{href}',l);break;case'swf':t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+l+'"></param>';c='';n.each(e.swf,function(e,n){t+='<param name="'+e+'" value="'+n+'"></param>';c+=' '+e+'="'+n+'"'});t+='<embed src="'+l+'" type="application/x-shockwave-flash" width="100%" height="100%"'+c+'></embed></object>';break};if(!(h(t)&&t.parent().is(e.inner))){e.inner.append(t)};i.trigger('beforeShow');e.inner.css('overflow',a==='yes'?'scroll':(a==='no'?'hidden':a));i._setDimension();i.reposition();i.isOpen=!1;i.coming=null;i.bindEvents();if(!i.isOpened){n('.fancybox-wrap').not(e.wrap).stop(!0).trigger('onReset').remove()}
else if(s.prevMethod){i.transitions[s.prevMethod]()};i.transitions[i.isOpened?e.nextMethod:e.openMethod]();i._preloadImages()},_setDimension:function(){var C=i.getViewport(),M=0,H=!1,A=!1,f=i.wrap,b=i.skin,a=i.inner,o=i.current,t=o.width,e=o.height,l=o.minWidth,u=o.minHeight,h=o.maxWidth,p=o.maxHeight,F=o.scrolling,I=o.scrollOutside?o.scrollbarWidth:0,D=o.margin,R=s(D[1]+D[3]),W=s(D[0]+D[2]),w,P,T,k,g,m,O,j,v,x,y,E,N,S,L;f.add(b).add(a).width('auto').height('auto').removeClass('fancybox-tmp');w=s(b.outerWidth(!0)-b.width());P=s(b.outerHeight(!0)-b.height());T=R+w;k=W+P;g=d(t)?(C.w-T)*s(t)/100:t;m=d(e)?(C.h-k)*s(e)/100:e;if(o.type==='iframe'){S=o.content;if(o.autoHeight&&S.data('ready')===1){try{if(S[0].contentWindow.document.location){a.width(g).height(9999);L=S.contents().find('body');if(I){L.css('overflow-x','hidden')};m=L.outerHeight(!0)}}catch(r){}}}
else if(o.autoWidth||o.autoHeight){a.addClass('fancybox-tmp');if(!o.autoWidth){a.width(g)};if(!o.autoHeight){a.height(m)};if(o.autoWidth){g=a.width()};if(o.autoHeight){m=a.height()};a.removeClass('fancybox-tmp')};t=s(g);e=s(m);v=g/m;l=s(d(l)?s(l,'w')-T:l);h=s(d(h)?s(h,'w')-T:h);u=s(d(u)?s(u,'h')-k:u);p=s(d(p)?s(p,'h')-k:p);O=h;j=p;if(o.fitToView){h=Math.min(C.w-T,h);p=Math.min(C.h-k,p)};E=C.w-R;N=C.h-W;if(o.aspectRatio){if(t>h){t=h;e=s(t/v)};if(e>p){e=p;t=s(e*v)};if(t<l){t=l;e=s(t/v)};if(e<u){e=u;t=s(e*v)}}
else{t=Math.max(l,Math.min(t,h));if(o.autoHeight&&o.type!=='iframe'){a.width(t);e=a.height()};e=Math.max(u,Math.min(e,p))};if(o.fitToView){a.width(t).height(e);f.width(t+w);x=f.width();y=f.height();if(o.aspectRatio){while((x>E||y>N)&&t>l&&e>u){if(M++>19){break};e=Math.max(u,Math.min(p,e-10));t=s(e*v);if(t<l){t=l;e=s(t/v)};if(t>h){t=h;e=s(t/v)};a.width(t).height(e);f.width(t+w);x=f.width();y=f.height()}}
else{t=Math.max(l,Math.min(t,t-(x-E)));e=Math.max(u,Math.min(e,e-(y-N)))}};if(I&&F==='auto'&&e<m&&(t+w+I)<E){t+=I};a.width(t).height(e);f.width(t+w);x=f.width();y=f.height();H=(x>E||y>N)&&t>l&&e>u;A=o.aspectRatio?(t<O&&e<j&&t<g&&e<m):((t<O||e<j)&&(t<g||e<m));n.extend(o,{dim:{width:c(x),height:c(y)},origWidth:g,origHeight:m,canShrink:H,canExpand:A,wPadding:w,hPadding:P,wrapSpace:y-b.outerHeight(!0),skinSpace:b.height()-e});if(!S&&o.autoHeight&&e>u&&e<p&&!A){a.height('auto')}},_getPosition:function(t){var n=i.current,o=i.getViewport(),s=n.margin,r=i.wrap.width()+s[1]+s[3],a=i.wrap.height()+s[0]+s[2],e={position:'absolute',top:s[0],left:s[3]};if(n.autoCenter&&n.fixed&&!t&&a<=o.h&&r<=o.w){e.position='fixed'}
else if(!n.locked){e.top+=o.y;e.left+=o.x};e.top=c(Math.max(e.top,e.top+((o.h-a)*n.topRatio)));e.left=c(Math.max(e.left,e.left+((o.w-r)*n.leftRatio)));return e},_afterZoomIn:function(){var t=i.current;if(!t){return};i.isOpen=i.isOpened=!0;i.wrap.css('overflow','visible').addClass('fancybox-opened');i.update();if(t.closeClick||(t.nextClick&&i.group.length>1)){i.inner.css('cursor','pointer').bind('click.fb',function(e){if(!n(e.target).is('a')&&!n(e.target).parent().is('a')){e.preventDefault();i[t.closeClick?'close':'next']()}})};if(t.closeBtn){n(t.tpl.closeBtn).appendTo(i.skin).bind('click.fb',function(t){t.preventDefault();i.close()})};if(t.arrows&&i.group.length>1){if(t.loop||t.index>0){n(t.tpl.prev).appendTo(i.outer).bind('click.fb',i.prev)};if(t.loop||t.index<i.group.length-1){n(t.tpl.next).appendTo(i.outer).bind('click.fb',i.next)}};i.trigger('afterShow');if(!t.loop&&t.index===t.group.length-1){i.play(!1)}
else if(i.opts.autoPlay&&!i.player.isActive){i.opts.autoPlay=!1;i.play()}},_afterZoomOut:function(t){t=t||i.current;n('.fancybox-wrap').trigger('onReset').remove();n.extend(i,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});i.trigger('afterClose',t)}});i.transitions={getOrigPosition:function(){var t=i.current,s=t.element,e=t.orig,n={},r=50,a=50,l=t.hPadding,u=t.wPadding,o=i.getViewport();if(!e&&t.isDom&&s.is(':visible')){e=s.find('img:first');if(!e.length){e=s}};if(h(e)){n=e.offset();if(e.is('img')){r=e.outerWidth();a=e.outerHeight()}}
else{n.top=o.y+(o.h-a)*t.topRatio;n.left=o.x+(o.w-r)*t.leftRatio};if(i.wrap.css('position')==='fixed'||t.locked){n.top-=o.y;n.left-=o.x};n={top:c(n.top-l*t.topRatio),left:c(n.left-u*t.leftRatio),width:c(r+u),height:c(a+l)};return n},step:function(t,e){var o,l,r,n=e.prop,a=i.current,c=a.wrapSpace,u=a.skinSpace;if(n==='width'||n==='height'){o=e.end===e.start?1:(t-e.start)/(e.end-e.start);if(i.isClosing){o=1-o};l=n==='width'?a.wPadding:a.hPadding;r=t-l;i.skin[n](s(n==='width'?r:r-(c*o)));i.inner[n](s(n==='width'?r:r-(c*o)-(u*o)))}},zoomIn:function(){var t=i.current,e=t.pos,o=t.openEffect,s=o==='elastic',r=n.extend({opacity:1},e);delete r.position;if(s){e=this.getOrigPosition();if(t.openOpacity){e.opacity=0.1}}
else if(o==='fade'){e.opacity=0.1};i.wrap.css(e).animate(r,{duration:o==='none'?0:t.openSpeed,easing:t.openEasing,step:s?this.step:null,complete:i._afterZoomIn})},zoomOut:function(){var t=i.current,n=t.closeEffect,o=n==='elastic',e={opacity:0.1};if(o){e=this.getOrigPosition();if(t.closeOpacity){e.opacity=0.1}};i.wrap.animate(e,{duration:n==='none'?0:t.closeSpeed,easing:t.closeEasing,step:o?this.step:null,complete:i._afterZoomOut})},changeIn:function(){var n=i.current,l=n.nextEffect,e=n.pos,a={opacity:1},o=i.direction,r=200,t;e.opacity=0.1;if(l==='elastic'){t=o==='down'||o==='up'?'top':'left';if(o==='down'||o==='right'){e[t]=c(s(e[t])-r);a[t]='+='+r+'px'}
else{e[t]=c(s(e[t])+r);a[t]='-='+r+'px'}};if(l==='none'){i._afterZoomIn()}
else{i.wrap.css(e).animate(a,{duration:n.nextSpeed,easing:n.nextEasing,complete:i._afterZoomIn})}},changeOut:function(){var t=i.previous,o=t.prevEffect,s={opacity:0.1},e=i.direction,r=200;if(o==='elastic'){s[e==='down'||e==='up'?'top':'left']=(e==='up'||e==='left'?'-':'+')+'='+r+'px'};t.wrap.animate(s,{duration:o==='none'?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger('onReset').remove()}})}};i.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!l,fixed:!0},overlay:null,fixed:!1,el:n('html'),create:function(t){t=n.extend({},this.defaults,t);if(this.overlay){this.close()};this.overlay=n('<div class="fancybox-overlay"></div>').appendTo(i.coming?i.coming.parent:t.parent);this.fixed=!1;if(t.fixed&&i.defaults.fixed){this.overlay.addClass('fancybox-overlay-fixed');this.fixed=!0}},open:function(t){var e=this;t=n.extend({},this.defaults,t);if(this.overlay){this.overlay.unbind('.overlay').width('auto').height('auto')}
else{this.create(t)};if(!this.fixed){r.bind('resize.overlay',n.proxy(this.update,this));this.update()};if(t.closeClick){this.overlay.bind('click.overlay',function(t){if(n(t.target).hasClass('fancybox-overlay')){if(i.isActive){i.close()}
else{e.close()};return!1}})};this.overlay.css(t.css).show()},close:function(){var t,e;r.unbind('resize.overlay');if(this.el.hasClass('fancybox-lock')){n('.fancybox-margin').removeClass('fancybox-margin');t=r.scrollTop();e=r.scrollLeft();this.el.removeClass('fancybox-lock');r.scrollTop(t).scrollLeft(e)};n('.fancybox-overlay').remove().hide();n.extend(this,{overlay:null,fixed:!1})},update:function(){var t='100%',n;this.overlay.width(t).height('100%');if(f){n=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth);if(a.width()>n){t=a.width()}}
else if(a.width()>r.width()){t=a.width()};this.overlay.width(t).height(a.height())},onReady:function(t,e){var i=this.overlay;n('.fancybox-overlay').stop(!0,!0);if(!i){this.create(t)};if(t.locked&&this.fixed&&e.fixed){if(!i){this.margin=a.height()>r.height()?n('html').css('margin-right').replace('px',''):!1};e.locked=this.overlay.append(e.wrap);e.fixed=!1};if(t.showEarly===!0){this.beforeShow.apply(this,arguments)}},beforeShow:function(t,e){var i,o;if(e.locked){if(this.margin!==!1){n('*').filter(function(){return(n(this).css('position')==='fixed'&&!n(this).hasClass('fancybox-overlay')&&!n(this).hasClass('fancybox-wrap'))}).addClass('fancybox-margin');this.el.addClass('fancybox-margin')};i=r.scrollTop();o=r.scrollLeft();this.el.addClass('fancybox-lock');r.scrollTop(i).scrollLeft(o)};this.open(t)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(t){if(this.overlay&&!i.coming){this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}}};i.helpers.title={defaults:{type:'inside',position:'top'},beforeShow:function(t){var a=i.current,o=a.title,l=t.type,e,r;if(n.isFunction(o)){o=o.call(a.element,a)};if(!u(o)||n.trim(o)===''){return};e=n('<div class="fancybox-title fancybox-title-'+l+'-wrap">'+o+'</div>');switch(l){case'inside':r=i.skin;break;case'outside':r=i.wrap;break;case'over':r=i.inner;break;default:r=i.skin;e.appendTo('body');if(f){e.width(e.width())};e.wrapInner('<span class="child"></span>');i.current.margin[2]+=Math.abs(s(e.css('margin-bottom')));break};e[(t.position==='top'?'prependTo':'appendTo')](r)}};n.fn.fancybox=function(t){var o,s=n(this),e=this.selector||'',r=function(r){var a=n(this).blur(),u=o,c,l;if(!(r.ctrlKey||r.altKey||r.shiftKey||r.metaKey)&&!a.is('.fancybox-wrap')){c=t.groupAttr||'data-fancybox-group';l=a.attr(c);if(!l){c='rel';l=a.get(0)[c]};if(l&&l!==''&&l!=='nofollow'){a=e.length?n(e):s;a=a.filter('['+c+'="'+l+'"]');u=a.index(this)};t.index=u;if(i.open(a,t)!==!1){r.preventDefault()}}};t=t||{};o=t.index||0;if(!e||t.live===!1){s.unbind('click.fb-start').bind('click.fb-start',r)}
else{a.undelegate(e,'click.fb-start').delegate(e+':not(\'.fancybox-item, .fancybox-nav\')','click.fb-start',r)};this.filter('[data-fancybox-start=1]').trigger('click');return this};a.ready(function(){var e,s;if(n.scrollbarWidth===o){n.scrollbarWidth=function(){var t=n('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo('body'),e=t.children(),i=e.innerWidth()-e.height(99).innerWidth();t.remove();return i}};if(n.support.fixedPosition===o){n.support.fixedPosition=(function(){var t=n('<div style="position:fixed;top:20px;"></div>').appendTo('body'),e=(t[0].offsetTop===20||t[0].offsetTop===15);t.remove();return e}())};n.extend(i.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n('body')});e=n(t).width();m.addClass('fancybox-lock-test');s=n(t).width();m.removeClass('fancybox-lock-test');n('<style type=\'text/css\'>.fancybox-margin{margin-right:'+(s-e)+'px;}</style>').appendTo('head')})}(window,document,jQuery));!function(t,e){'object'==typeof exports?module.exports=e():'function'==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){'use strict';function n(t,e){var n,i=document.createElement(t||'div');for(n in e)i[n]=e[n];return i};function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t};function p(t,e,n,i){var s=['opacity',e,~~(100*t),n,i].join('-'),a=.01+n/i*100,l=Math.max(1-(1-t)/e*(100-a),t),u=o.substring(0,o.indexOf('Animation')).toLowerCase(),d=u&&'-'+u+'-'||'';return c[s]||(r.insertRule('@'+d+'keyframes '+s+'{0%{opacity:'+l+'}'+a+'%{opacity:'+t+'}'+(a+.01)+'%{opacity:1}'+(a+e)%100+'%{opacity:'+t+'}100%{opacity:'+l+'}}',r.cssRules.length),c[s]=1),s};function a(t,e){var i,n,o=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<l.length;n++)if(i=l[n]+e,void 0!==o[i])return i;return void 0!==o[e]?e:void 0};function t(t,e){for(var n in e)t.style[a(t,n)||n]=e[n];return t};function u(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)void 0===t[e]&&(t[e]=i[e])};return t};function d(t,e){return'string'==typeof t?t:t[e%t.length]};function i(t){this.opts=u(t||{},i.defaults,h)};function f(){function o(t,e){return n('<'+t+' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">',e)};r.addRule('.spin-vml','behavior:url(#default#VML)'),i.prototype.lines=function(n,i){function u(){return t(o('group',{coordsize:a+' '+a,coordorigin:-r+' '+-r}),{width:a,height:a})};function h(n,s,a){e(c,e(t(u(),{rotation:360/i.lines*n+'deg',left:~~s}),e(t(o('roundrect',{arcsize:i.corners}),{width:r,height:i.width,left:i.radius,top:-i.width>>1,filter:a}),o('fill',{color:d(i.color,n),opacity:i.opacity}),o('stroke',{opacity:0}))))};var s,r=i.length+i.width,a=2*r,l=2*-(i.width+i.length)+'px',c=t(u(),{position:'absolute',top:l,left:l});if(i.shadow)for(s=1;s<=i.lines;s++)h(s,-2,'progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)');for(s=1;s<=i.lines;s++)h(s);return e(n,c)},i.prototype.opacity=function(t,e,n,i){var o=t.firstChild;i=i.shadow&&i.lines||0,o&&e+i<o.childNodes.length&&(o=o.childNodes[e+i],o=o&&o.firstChild,o=o&&o.firstChild,o&&(o.opacity=n))}};var o,l=['webkit','Moz','ms','O'],c={},r=function(){var t=n('style',{type:'text/css'});return e(document.getElementsByTagName('head')[0],t),t.sheet||t.styleSheet}(),h={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:'#000',direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:'spinner',top:'50%',left:'50%',position:'absolute'};i.defaults={},u(i.prototype,{spin:function(e){this.stop();{var s=this,i=s.opts,r=s.el=t(n(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex});i.radius+i.length+i.width};if(t(r,{left:i.left,top:i.top}),e&&e.insertBefore(r,e.firstChild||null),r.setAttribute('role','progressbar'),s.lines(r,s.opts),!o){var l,c=0,d=(i.lines-1)*(1-i.direction)/2,u=i.fps,a=u/i.speed,h=(1-i.opacity)/(a*i.trail/100),p=a/i.lines;!function f(){c++;for(var t=0;t<i.lines;t++)l=Math.max(1-(c+(i.lines-t)*p)%a*h,i.opacity),s.opacity(r,t*i.direction+d,l,i);s.timeout=s.el&&setTimeout(f,~~(1e3/u))}()};return s},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,s){function l(e,i){return t(n(),{position:'absolute',width:s.length+s.width+'px',height:s.width+'px',background:e,boxShadow:i,transformOrigin:'left',transform:'rotate('+~~(360/s.lines*r+s.rotate)+'deg) translate('+s.radius+'px,0)',borderRadius:(s.corners*s.width>>1)+'px'})};for(var a,r=0,c=(s.lines-1)*(1-s.direction)/2;r<s.lines;r++)a=t(n(),{position:'absolute',top:1+~(s.width/2)+'px',transform:s.hwaccel?'translate3d(0,0,0)':'',opacity:s.opacity,animation:o&&p(s.opacity,s.trail,c+r*s.direction,s.lines)+' '+1/s.speed+'s linear infinite'}),s.shadow&&e(a,t(l('#000','0 0 4px #000'),{top:'2px'})),e(i,e(a,l(d(s.color,r),'0 0 1px rgba(0,0,0,.1)')));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var s=t(n('group'),{behavior:'url(#default#VML)'});return!a(s,'transform')&&s.adj?f():o=a(s,'animation'),i});(function(t){t.fn.multilevelpushmenu=function(e){'use strict';var i=arguments,n=null;this.each(function(){var o=this,r=t(this),f=(r.context!=undefined)?r:t('body'),R=(e&&e.menu!=undefined)?e.menu:r.find('nav'),s,m,W=t.extend({container:f,containersToPush:null,menuID:((f.prop('id')!=undefined&&f.prop('id')!='')?f.prop('id'):this.nodeName.toLowerCase())+'_multilevelpushmenu',wrapperClass:'multilevelpushmenu_wrapper',menuInactiveClass:'multilevelpushmenu_inactive',menu:R,menuWidth:0,menuHeight:0,collapsed:!1,fullCollapse:!1,direction:'ltr',backText:'Back',backItemClass:'backItemClass',backItemIcon:'fa fa-angle-right',groupIcon:'fa fa-angle-left',mode:'overlap',overlapWidth:40,preventItemClick:!0,preventGroupItemClick:!0,swipe:'both',durationSlideOut:400,durationSlideDown:500,durationTransition:400,onCollapseMenuStart:function(){},onCollapseMenuEnd:function(){},onExpandMenuStart:function(){},onExpandMenuEnd:function(){},onGroupItemClick:function(){},onItemClick:function(){},onTitleItemClick:function(){},onBackItemClick:function(){},onMenuReady:function(){},onMenuSwipe:function(){}},e);if(!t.data(o,'plugin_multilevelpushmenu')){t.data(o,'plugin_multilevelpushmenu',W);o.settings=t.data(o,'plugin_multilevelpushmenu')};var b={init:function(){return U.apply(this,Array.prototype.slice.call(arguments))},collapse:function(){return h.apply(this,Array.prototype.slice.call(arguments))},expand:function(){return x.apply(this,Array.prototype.slice.call(arguments))},menuexpanded:function(){return H.apply(this,Array.prototype.slice.call(arguments))},activemenu:function(){return p.apply(this,Array.prototype.slice.call(arguments))},findmenusbytitle:function(){return y.apply(this,Array.prototype.slice.call(arguments))},finditemsbyname:function(){return X.apply(this,Array.prototype.slice.call(arguments))},pathtoroot:function(){return j.apply(this,Array.prototype.slice.call(arguments))},comparepaths:function(){return L.apply(this,Array.prototype.slice.call(arguments))},option:function(){return G.apply(this,Array.prototype.slice.call(arguments))},additems:function(){return Y.apply(this,Array.prototype.slice.call(arguments))},removeitems:function(){return Q.apply(this,Array.prototype.slice.call(arguments))},redraw:function(){return v.apply(this,Array.prototype.slice.call(arguments))},visiblemenus:function(){return w.apply(this,Array.prototype.slice.call(arguments))},hiddenmenus:function(){return P.apply(this,Array.prototype.slice.call(arguments))},propagateevent:function(){return C.apply(this,Array.prototype.slice.call(arguments))}};function g(t){if(t.stopPropagation&&t.preventDefault){t.stopPropagation();t.preventDefault()}
else{t.cancelBubble=!0;t.returnValue=!1}};function C(e,n){if(e==undefined||n==undefined)return!1;e.on(n,function(i,o){e.hide();try{if(!i.pageX||!i.pageY)return!1;o=o||{pageX:i.pageX,pageY:i.pageY};var r=document.elementFromPoint(o.pageX,o.pageY);r=(r.nodeType==3)?r.parentNode:r;t(r).trigger(n,o)}catch(s){t.error('Error while propagating event: '+s.message)}finally{e.show()}})};function M(){var e=t('<nav />').prop({'id':o.settings.menuID,'className':o.settings.wrapperClass}).appendTo(o.settings.container);T(o.settings.menu,e)};function T(e,n){if(e.level==undefined)e.level=0;t.each(e,function(){var i=t('<div />').attr({'class':'levelHolderClass'+((o.settings.direction=='rtl')?' rtl':' ltr'),'data-level':e.level,'style':((o.settings.direction=='rtl')?'margin-right: ':'margin-left: ')+((e.level==0&&!o.settings.collapsed)?0:'-200%')}).appendTo(n),d=(u(o.settings.menuWidth)||(a(o.settings.menuWidth)&&o.settings.menuWidth>0));i.bind(m,function(t){A(t,i)});if(this.id!=undefined)i.attr({'id':this.id});var r=t('<h2 />').attr({'style':'text-align: '+((o.settings.direction=='rtl')?'right':'left')}).text(this.title).appendTo(i),l=t('<i />').prop({'class':((o.settings.direction=='rtl')?'floatLeft':'floatRight')+' cursorPointer '+this.icon}).prependTo(r);l.bind(s,function(t){B(t,i,e)});if(e.level>0)E(i);var c=t('<ul />').appendTo(i);t.each(this.items,function(){D(this,i,-1)})})};function F(){var t=(o.settings.container.find('nav').length>0)?o.settings.container.find('nav'):o.settings.menu;if(t.length==0)return!1;t.prop({'id':o.settings.menuID,'className':o.settings.wrapperClass});k(t)};function k(e){if(e.level==undefined)e.level=0;t.each(e,function(){var n=t('<div />').attr({'class':'levelHolderClass'+((o.settings.direction=='rtl')?' rtl':' ltr'),'data-level':e.level,'style':((o.settings.direction=='rtl')?'margin-right: ':'margin-left: ')+((e.level==0&&!o.settings.collapsed)?0:'-200%')}).appendTo(e),c=(u(o.settings.menuWidth)||(a(o.settings.menuWidth)&&o.settings.menuWidth>0));n.bind(m,function(t){A(t,n)});var i=e.children('h2');i.attr({'style':'text-align: '+((o.settings.direction=='rtl')?'right':'left')});i.appendTo(n);var l=i.children('i');l.addClass(((o.settings.direction=='rtl')?'floatLeft':'floatRight')+' cursorPointer');if(e.level>0)E(n);var r=e.children('ul');r.appendTo(n);t.each(r.children('li'),function(){var i=t(this);i.attr({'style':'text-align: '+((o.settings.direction=='rtl')?'right':'left')});var r=i.children('a'),a=r.children('i');a.addClass(((o.settings.direction=='rtl')?'floatLeft':'floatRight'));if(i.children('ul').length>0){r.bind(s,function(t){S(t,n,i)});I(r);i.level=e.level+1;k(i)}
else{r.bind(s,function(t){N(t,n,i)})}})})};function B(e,n,i){if(t(o).find('div.levelHolderClass').is(':animated'))return!1;o.settings.onTitleItemClick.apply(this,Array.prototype.slice.call([e,n,o.settings]));g(e);var a=(o.settings.direction=='rtl')?parseInt(n.css('margin-right'))<0:parseInt(n.css('margin-left'))<0;if(i.level==0&&a){x()}
else{var s=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var e=(o.settings.direction=='rtl')?((t(this).attr('data-level')>n.attr('data-level'))&&(parseInt(t(this).css('margin-right'))>=0)):((t(this).attr('data-level')>n.attr('data-level'))&&(parseInt(t(this).css('margin-left'))>=0));return e}),r=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var e=(o.settings.direction=='rtl')?((t(this).attr('data-level')<=n.attr('data-level'))&&(parseInt(t(this).css('margin-right'))>=0)):((t(this).attr('data-level')<=n.attr('data-level'))&&(parseInt(t(this).css('margin-left'))>=0));return e}),l=(s.length==0&&r.length==1)?h():h(parseInt(n.attr('data-level')))};n.css('visibility','visible');n.find('.'+o.settings.backItemClass).css('visibility','visible');n.find('ul').css('visibility','visible');n.removeClass(o.settings.menuInactiveClass)};function E(e){var i=t('<div />').attr({'class':o.settings.backItemClass}).appendTo(e),n=t('<a />').prop({'href':'#'}).text(o.settings.backText).appendTo(i),r=t('<i />').prop({'class':((o.settings.direction=='rtl')?'floatLeft ':'floatRight ')+o.settings.backItemIcon}).prependTo(n);n.bind(s,function(t){q(t,e)})};function q(e,n){if(t(o).find('div.levelHolderClass').is(':animated'))return!1;o.settings.onBackItemClick.apply(this,Array.prototype.slice.call([e,n,o.settings]));g(e);h(parseInt(n.attr('data-level')-1))};function S(e,n,i){if(t(o).find('div.levelHolderClass').is(':animated'))return!1;o.settings.onGroupItemClick.apply(this,Array.prototype.slice.call([e,n,i,o.settings]));x(i.find('div:first'));if(o.settings.preventGroupItemClick)g(e)};function I(e){var n=t('<i />').attr({'class':((o.settings.direction=='rtl')?' floatRight iconSpacing_rtl ':' floatLeft iconSpacing_ltr ')+o.settings.groupIcon}).prependTo(e)};function D(){var e=arguments[0],r=arguments[1],a=arguments[2],l=r.find('ul:first'),n=t('<li />');(a<(l.children('li').length)&&a>=0)?n.insertBefore(l.children('li').eq(a)):n.appendTo(l);n.attr({'style':'text-align: '+((o.settings.direction=='rtl')?'right':'left')});if(e.id!=undefined)n.attr({'id':e.id});var i=t('<a />').prop({'href':e.link}).text(e.name).appendTo(n),c=t('<i />').prop({'class':((o.settings.direction=='rtl')?'floatLeft ':'floatRight ')+e.icon}).prependTo(i);if(e.items){i.bind(s,function(t){S(t,r,n)});I(i);e.items.level=parseInt(r.attr('data-level'),10)+1;T(e.items,n)}
else{i.bind(s,function(t){N(t,r,n)})}};function N(t,e,n){o.settings.onItemClick.apply(this,Array.prototype.slice.call([t,e,n,o.settings]));if(o.settings.preventItemClick)g(t)};function A(t,e){};function w(){var e=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var e=(o.settings.direction=='rtl')?(parseInt(t(this).css('margin-right'))>=0&&t(this).position().left<o.settings.container.width()-o.settings.overlapWidth):(parseInt(t(this).css('margin-left'))>=0&&t(this).position().left>=0);return e});if(e.length<1)e=!1;return e};function P(){var e=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var e=(o.settings.direction=='rtl')?((t(this).position().left>o.settings.container.width()||parseInt(t(this).css('margin-right'))<0)):((t(this).position().left<0||parseInt(t(this).css('margin-left'))<0));return e});if(e.length<1)e=!1;return e};function v(){if(!o.redraw){o.redraw=!0;var s=arguments[0],g=arguments[1],v=arguments[2],n=(t('#'+o.settings.menuID+' div.levelHolderClass').first().css('filter').match(/DXImageTransform\.Microsoft\.Shadow/))?t('#'+o.settings.menuID+' div.levelHolderClass').first().get(0).filters.item('DXImageTransform.Microsoft.Shadow').strength:0,r=(s==undefined)?Math.max.apply(null,t('#'+o.settings.menuID+' div.levelHolderClass').map(function(){return t(this).width()}).get())-n:s-n,y=Math.max.apply(null,t('#'+o.settings.menuID+' div.levelHolderClass').map(function(){return t(this).attr('data-level')}).get()),d=(u(o.settings.menuWidth)||(a(o.settings.menuWidth)&&o.settings.menuWidth>0)),T=(u(o.settings.menuHeight)||(a(o.settings.menuHeight)&&o.settings.menuHeight>0)),e=(v==undefined)?t('#'+o.settings.menuID+' div.levelHolderClass'):v,b;if(!d&&o.menuWidth!=undefined)r=o.menuWidth;(d&&s==undefined)?e.width(o.settings.menuWidth):e.width(r);if(d){if((e.width()==0||(u(o.settings.menuWidth)&&o.settings.menuWidth.indexOf('%')!=-1))&&s==undefined){e.css('min-width','');e.width(parseInt(o.settings.container.parent().width()*parseInt(o.settings.menuWidth)/100))};r=e.width()-n;e.css('min-width',e.width()-n+'px')};var C=(d&&s==undefined)?(e.width()-n+y*(o.settings.overlapWidth+n)):(r+y*(o.settings.overlapWidth+n)),i=(g==undefined)?Math.max.apply(null,t('#'+o.settings.menuID+' div.levelHolderClass').map(function(){return t(this).height()}).get()):g;o.settings.container.css('min-height','');o.settings.container.children('nav:first').css('min-height','');if(T){o.settings.container.height(o.settings.menuHeight);o.settings.container.css('min-height',o.settings.menuHeight);o.settings.container.children('nav:first').css('min-height',o.settings.menuHeight);t('#'+o.settings.menuID).height(o.settings.menuHeight);i=o.settings.container.height()}
else{t('#'+o.settings.menuID).height(i)};o.settings.container.css('min-height',i+'px');o.settings.container.children('nav:first').css('min-height',i+'px');o.settings.container.width(C);o.settings.container.height(i);var l=t('#'+o.settings.menuID+' div.levelHolderClass:first'),h=w(),f=P(),m=p(),x=(m.length==1)?m.attr('data-level'):0;if(h)h.each(function(){if(o.settings.mode=='overlap')t(this).width(t(this).width()+(parseInt(x,10)-parseInt(t(this).attr('data-level'),10))*(o.settings.overlapWidth+n))});if(f)f.each(function(){(o.settings.direction=='rtl')?t(this).css('margin-right',(t(this).attr('data-level')==l.attr('data-level')&&!o.settings.fullCollapse)?t(this).width()*(-1)+o.settings.overlapWidth:t(this).width()*(-2)):t(this).css('margin-left',(t(this).attr('data-level')==l.attr('data-level')&&!o.settings.fullCollapse)?t(this).width()*(-1)+o.settings.overlapWidth:t(this).width()*(-2))});b=l.width()+parseInt(l.css((o.settings.direction=='rtl')?'margin-right':'margin-left'),10);c(o.settings.container,b);o.menuWidth=r;o.menuHeight=i;o.redraw=!1}};function c(t,e){if(t==undefined||e==undefined)return!1;t.css('min-width','');t.css('min-width',e+'px');t.children('nav:first').css('min-width','');t.children('nav:first').css('min-width',e+'px');t.width(e)};function z(){var e=t('#'+o.settings.menuID+' div.levelHolderClass:first'),n=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var n=(o.settings.direction=='rtl')?((t(this).position().left>o.settings.container.width()||parseInt(t(this).css('margin-right'))<0)&&t(this).attr('data-level')>e.attr('data-level')):((t(this).position().left<0||parseInt(t(this).css('margin-left'))<0)&&t(this).attr('data-level')>e.attr('data-level'));return n});n.each(function(){if(o.settings.direction=='rtl'){t(this).css('margin-right',((t(this).attr('data-level')==e.attr('data-level')&&!o.settings.collapsed)?0:(-2)*t(this).width()))}
else{t(this).css('margin-left',((t(this).attr('data-level')==e.attr('data-level')&&!o.settings.collapsed)?0:(-2)*t(this).width()))}});if(o.settings.direction=='rtl'){e.css('margin-right',(!o.settings.collapsed)?0:(-2)*e.width())}
else{e.css('margin-left',(!o.settings.collapsed)?0:(-2)*e.width())}};function a(t){return typeof t==='number'&&parseFloat(t)==parseInt(t,10)&&!isNaN(t)};function u(t){return typeof t==='string'&&(t.indexOf('%')!=-1||t.indexOf('px')!=-1||t.indexOf('em')!=-1)};function U(){var t=(e&&e.menu!=undefined)?M():F();C(o.settings.container,s);v();z();V(o.settings.collapsed);o.settings.onMenuReady.apply(this,Array.prototype.slice.call([o.settings]));return r};function V(e){if(e){var n=t('#'+o.settings.menuID+' div.levelHolderClass:first');n.find('ul').hide();n.addClass(o.settings.menuInactiveClass);if(o.settings.direction=='rtl'){n.stop().animate({marginRight:((-1)*n.width()+((o.settings.fullCollapse)?0:o.settings.overlapWidth))},o.settings.durationSlideOut)}
else{n.stop().animate({marginLeft:((-1)*n.width()+((o.settings.fullCollapse)?0:o.settings.overlapWidth))},o.settings.durationSlideOut)}}};function d(e){if(o.settings.containersToPush==null)return!1;t.each(o.settings.containersToPush,function(){var n=parseInt(t(this).css('margin-left')),s=a(n)?n:0,i=parseInt(t(this).css('margin-right')),r=a(i)?i:0;t(this).stop().animate({marginLeft:s+((o.settings.direction=='rtl')?(-1):1)*e,marginRight:r+((o.settings.direction=='rtl')?1:(-1))*e},o.settings.durationSlideOut)})};function h(){if(t(o).find('div.levelHolderClass').is(':animated'))return!1;o.settings.onCollapseMenuStart.apply(this,Array.prototype.slice.call([o.settings]));var e=arguments[0],p=arguments[1],s={},i,h,b,w,x,n=t('#'+o.settings.menuID+' div.levelHolderClass:first'),m=(e==undefined)?!0:!1,g;s['collapsingEnded']=!1;if(typeof e=='object'){e=e.attr('data-level')}
else if(typeof e=='string'){var v=y(e);if(v&&v.length==1){e=v.attr('data-level')}
else{e=n.attr('data-level')}}
else if(e==undefined||!a(e)||e<0){e=n.attr('data-level')};if(p==undefined&&typeof p!='object'){p=[{'method':o.settings.onCollapseMenuEnd,'args':[o.settings]}]}
else{t.merge(p,[{'method':o.settings.onCollapseMenuEnd,'args':[o.settings]}])};var u=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var n=(o.settings.direction=='rtl')?(t(this).attr('data-level')>e)&&(parseInt(t(this).css('margin-right'))>=0&&t(this).position().left<o.settings.container.width()-o.settings.overlapWidth):(t(this).attr('data-level')>e)&&(parseInt(t(this).css('margin-left'))>=0&&t(this).position().left>=0);return n}),f=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var n=(o.settings.direction=='rtl')?(t(this).attr('data-level')<=e)&&(parseInt(t(this).css('margin-right'))>=0&&t(this).position().left<o.settings.container.width()-o.settings.overlapWidth):(t(this).attr('data-level')<=e)&&(parseInt(t(this).css('margin-left'))>=0&&t(this).position().left>=0);return n});if(f.length>0){s['prevAnimEnded']=!1;u.each(function(e,n){i=(t(n).css('filter').match(/DXImageTransform\.Microsoft\.Shadow/))?t(n).get(0).filters.item('DXImageTransform.Microsoft.Shadow').strength:0;h=(o.settings.mode=='overlap')?t(n).width()-(u.length+f.length-t(n).attr('data-level')-1)*(o.settings.overlapWidth+i)-i:t(n).width()-i;if(o.settings.direction=='rtl'){t(n).stop().animate({marginRight:((-1)*h),width:h},o.settings.durationTransition)}
else{t(n).stop().animate({marginLeft:((-1)*h),width:h},o.settings.durationTransition)}});s['nextAnimEnded']=(u.length>0)?!1:!0;u.last().queue(function(){s['nextAnimEnded']=!0;l(s,p)});f.each(function(s,r){i=(t(r).css('filter').match(/DXImageTransform\.Microsoft\.Shadow/))?t(r).get(0).filters.item('DXImageTransform.Microsoft.Shadow').strength:0;var a=f.filter(function(){return t(this).attr('data-level')==e});a.css('visibility','visible');a.find('.'+o.settings.backItemClass).css('visibility','visible');a.find('ul').css('visibility','visible');a.removeClass(o.settings.menuInactiveClass);h=(o.settings.mode=='overlap')?t(r).width()-u.length*(o.settings.overlapWidth+i)-i:t(r).width()-i;if(o.settings.direction=='rtl'){t(r).stop().animate({width:h,marginRight:(t(r).attr('data-level')==n.attr('data-level')&&m)?(o.settings.fullCollapse)?(-1)*t(r).width():((-1)*t(r).width()+((o.settings.mode=='overlap')?u.length+1:1)*o.settings.overlapWidth):0},o.settings.durationSlideOut,function(){if(t(r).attr('data-level')==n.attr('data-level')&&m){n.children('ul').first().hide(o.settings.durationSlideDown,function(){n.addClass(o.settings.menuInactiveClass)})};g=n.width()+parseInt(n.css('margin-right'),10);c(o.settings.container,g)})}
else{t(r).stop().animate({width:h,marginLeft:(t(r).attr('data-level')==n.attr('data-level')&&m)?(o.settings.fullCollapse)?(-1)*t(r).width():((-1)*t(r).width()+((o.settings.mode=='overlap')?u.length+1:1)*o.settings.overlapWidth):0},o.settings.durationSlideOut,function(){if(t(r).attr('data-level')==n.attr('data-level')&&m){n.children('ul').first().hide(o.settings.durationSlideDown,function(){n.addClass(o.settings.menuInactiveClass)})};g=n.width()+parseInt(n.css('margin-left'),10);c(o.settings.container,g)})};b=(o.settings.mode=='overlap')?((-1)*(u.length*(o.settings.overlapWidth+i))):0;if(t(r).attr('data-level')==n.attr('data-level')&&m){var l=(o.settings.fullCollapse)?(-1)*(n.width()-i):(-1)*(n.width()-i)+o.settings.overlapWidth;d(l)}
else{d(b)}});f.last().queue(function(){s['prevAnimEnded']=!0;l(s,p)})};s['collapsingEnded']=!0;l(s,p);return r};function O(){if(t(o).find('div.levelHolderClass').is(':animated'))return!1;o.settings.onExpandMenuStart.apply(this,Array.prototype.slice.call([o.settings]));var u=arguments[0],s=arguments[1],a,h,b,m,w,i={},e=t('#'+o.settings.menuID+' div.levelHolderClass:first'),T=(u==undefined)?!0:!1,x=(o.settings.direction=='rtl')?parseInt(e.css('margin-right'),10)<0||e.position().left>=o.settings.container.width()-o.settings.overlapWidth:parseInt(e.css('margin-left'),10)<0||e.position().left<0;i['expandingEnded']=!1;if(s==undefined&&typeof s!='object'){s=[{'method':o.settings.onExpandMenuEnd,'args':[o.settings]}]}
else{t.merge(s,[{'method':o.settings.onExpandMenuEnd,'args':[o.settings]}])};if(T){i['baseAnimEnded']=!1;e.removeClass(o.settings.menuInactiveClass);w=e.width();c(o.settings.container,w);if(o.settings.direction=='rtl'){e.stop().animate({marginRight:0},o.settings.durationSlideOut,function(){e.children('ul').first().show(o.settings.durationSlideDown,function(){i['baseAnimEnded']=!0;l(i,s)})})}
else{e.stop().animate({marginLeft:0},o.settings.durationSlideOut,function(){e.children('ul').first().show(o.settings.durationSlideDown,function(){i['baseAnimEnded']=!0;l(i,s)})})};m=(o.settings.fullCollapse)?e.width():e.width()-o.settings.overlapWidth;var k=(!H(e))?d(m):null}
else{var n;if(typeof u=='object'){n=u}
else if(typeof u=='string'){n=y(u)}
else{n=null;t.error('Provided menu selector is not valid')};if(n&&n.length==1){var v=p(),C=(v.length==1)?v.attr('data-level'):0,f=n.width(),r=j(n);i['setToOpenAnimEnded']=!1;if(r){var g=t(r).length-1;e.find('ul').each(function(){t(this).show(0)});t(r).find('ul').css('visibility','hidden');t(r).find('div').css('visibility','visible');t(r).find('.'+o.settings.backItemClass).css('visibility','hidden');t(r).each(function(e,n){a=(t(n).css('filter').match(/DXImageTransform\.Microsoft\.Shadow/))?t(n).get(0).filters.item('DXImageTransform.Microsoft.Shadow').strength:0;h=f-a+(g-t(n).attr('data-level'))*(o.settings.overlapWidth+a);if(o.settings.container.width()<h&&o.settings.mode=='overlap')c(o.settings.container,h);if(o.settings.direction=='rtl'){t(n).stop().animate({marginRight:0,width:(o.settings.mode=='overlap')?h:f-a},o.settings.durationTransition,function(){t(n).addClass(o.settings.menuInactiveClass)})}
else{t(n).stop().animate({marginLeft:0,width:(o.settings.mode=='overlap')?h:f-a},o.settings.durationTransition,function(){t(n).addClass(o.settings.menuInactiveClass)})}});t(r).last().queue(function(){t(this).removeClass(o.settings.menuInactiveClass);i['setToOpenAnimEnded']=!0;l(i,s)});if(x){m=(o.settings.fullCollapse)?e.width():(e.width()-o.settings.overlapWidth);d(m)};if(o.settings.mode=='overlap'){b=((x)?(f+(g-((o.settings.fullCollapse)?0:1))*(o.settings.overlapWidth+a)):((g-C)*(o.settings.overlapWidth+a)));d(b)};n.css('visibility','visible');n.find('.'+o.settings.backItemClass).css('visibility','visible');n.find('ul').css('visibility','visible');n.removeClass(o.settings.menuInactiveClass)}
else{t.error('Invalid menu object provided')}}
else{t.error('No or too many menus named '+u)}};i['expandingEnded']=!0;l(i,s)};function x(){var e=arguments[0],n,l=p(),i,s,a;if(typeof e=='object'){n=e}
else if(typeof e=='string'){a=y(e);if(a){n=a.eq(0)}
else{t.error(e+' menu level does not exist!')}}
else{n=t('#'+o.settings.menuID+' div.levelHolderClass:first')};i=L(n,l,!0);s=(i.length>0)?Math.max.apply(null,i.map(function(){return t(this).attr('data-level')}).get()):0;if(s<l.attr('data-level')){h(s,[{'method':O,'args':arguments}])}
else{O.apply(this,Array.prototype.slice.call(arguments))};return r};function y(){var s=arguments[0],e,i=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){return((t(this).children('h2').text()==s))});if(i.length>0){n=i;e=n}
else{n=!1;e=n};return e};function X(){var s=arguments[0],e,i=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass li').filter(function(){return((t(this).children('a').text()==s))});if(i.length>0){n=i;e=n}
else{n=!1;e=n};return e};function j(){var e=arguments[0],i,o,s;if(e==undefined||e.length!=1){n=!1;return n};i=e.parents('div.levelHolderClass');o=t.merge(i.get().reverse(),e.get());n=o;return n};function L(){var i=arguments[0],o=arguments[1],d=(arguments[2]!=undefined)?arguments[2]:!1,r,a,e,s,l,c,u,h;if(i==undefined||o==undefined){n=!1;return n};r=(i.length==1)?i.parents('div.levelHolderClass'):null;a=(o.length==1)?o.parents('div.levelHolderClass'):null;e=(r!=null)?t.merge(r.get().reverse(),i.get()):[];s=(a!=null)?t.merge(a.get().reverse(),o.get()):[];l=(e.length>=s.length)?e:s;c=(l===e)?s:e;u=t(l).filter(function(){return(d)?(t.inArray(this,c)!=-1):(t.inArray(this,c)==-1)});n=u;return n};function p(){var e=o.settings.container.find('#'+o.settings.menuID+' div.levelHolderClass').filter(function(){var e=(o.settings.direction=='rtl')?((parseInt(t(this).css('margin-right'))>=0&&t(this).position().left<o.settings.container.width()-o.settings.overlapWidth)):((parseInt(t(this).css('margin-left'))>=0&&t(this).position().left>=0));return e}),i=Math.max.apply(null,e.map(function(){return t(this).attr('data-level')}).get()),s=e.filter(function(){return t(this).attr('data-level')==i});n=s;return n};function H(){var t=arguments[0],n=!1;if(t==undefined)return n;var e=(o.settings.direction=='rtl')?(parseInt(t.css('margin-right'))>=0&&t.position().left<o.settings.container.width()-o.settings.overlapWidth):(parseInt(t.css('margin-left'))>=0&&t.position().left>=0);return e};function Y(){var n=arguments[0],e=arguments[1],i=arguments[2];if(e==undefined||typeof n!='object'||!e)return!1;if(n.level==undefined)n.level=parseInt(e.attr('data-level'),10);if(i==undefined)i=0;var s=e.find('ul:first');t.each(n,function(){if(this.name!=undefined)D(this,e,i)});v(o.menuWidth);return r};function Q(){var n=arguments[0];if(n==undefined||typeof n!='object'||n.length==0)return!1;n.remove();var e=p();if(e.length==1){e.css('visibility','visible');e.find('.'+o.settings.backItemClass).css('visibility','visible');e.find('ul').css('visibility','visible');e.removeClass(o.settings.menuInactiveClass);var s=e.width()-o.menuWidth;if(s!=0){var i=w();if(i)i.each(function(){t(this).width(t(this).width()-s)})}};v(o.menuWidth);return r};function l(e,n){var i=!0;t.each(e,function(t,e){i=i&&e});if(i)window.setTimeout(function(){t.each(n,function(t,e){e['method'].apply(this,Array.prototype.slice.call(e['args']))})},1)};function G(){var e=!1;if(o.settings[arguments[0]]!=undefined){if(arguments[1]!=undefined)o.settings[arguments[0]]=arguments[1];e=o.settings[arguments[0]]}
else{t.error('No option '+arguments[0]+' found in jQuery.multilevelpushmenu')};return e};function K(){var t=!1;(function(e){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))t=!0})(navigator.userAgent||navigator.vendor||window.opera);return t};if(K()){s='click';m='touchmove'}
else{s='click';m='mousedown'};if(b[e]){n=b[e].apply(this,Array.prototype.slice.call(i,1));return n}
else if(typeof e==='object'||!e){n=b.init.apply(this,arguments);return n}
else{t.error('No '+e+' method found in jQuery.multilevelpushmenu')};if(!n){n=this}});return n}}(jQuery));(function(t){'use strict';function s(t){return new RegExp('(^|\\s+)'+t+'(\\s+|$)')};var e,n,i;if('classList' in document.documentElement){e=function(t,e){return t.classList.contains(e)};n=function(t,e){t.classList.add(e)};i=function(t,e){t.classList.remove(e)}}
else{e=function(t,e){return s(e).test(t.className)};n=function(t,n){if(!e(t,n)){t.className=t.className+' '+n}};i=function(t,e){t.className=t.className.replace(s(e),' ')}};function r(t,o){var s=e(t,o)?i:n;s(t,o)};var o={hasClass:e,addClass:n,removeClass:i,toggleClass:r,has:e,add:n,remove:i,toggle:r};if(typeof define==='function'&&define.amd){define(o)}
else{t.classie=o}})(window);var ModalEffects=(function(){function t(){var t=document.querySelector('.md-overlay');[].slice.call(document.querySelectorAll('.md-trigger')).forEach(function(e,n){var i=document.querySelector('#'+e.getAttribute('data-modal')),s=i.querySelector('.md-close');function r(t){classie.remove(i,'md-show');if(t){classie.remove(document.documentElement,'md-perspective')}};function o(){r(classie.has(e,'md-setperspective'))};e.addEventListener('click',function(n){classie.add(i,'md-show');t.removeEventListener('click',o);t.addEventListener('click',o);if(classie.has(e,'md-setperspective')){setTimeout(function(){classie.add(document.documentElement,'md-perspective')},25)}});s.addEventListener('click',function(t){t.stopPropagation();o()})})};t()})();!function(){'use strict';function e(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};function t(e){if(!this||this.find!==t.prototype.find)return new t(e);if(this.length=0,e)if('string'==typeof e&&(e=this.find(e)),e.nodeType||e===e.window)this.length=1,this[0]=e;else{var n=e.length;for(this.length=n;n;)n-=1,this[n]=e[n]}};t.extend=e,t.contains=function(t,e){do if(e=e.parentNode,e===t)return!0;while(e);return!1},t.parseJSON=function(t){return window.JSON&&JSON.parse(t)},e(t.prototype,{find:function(e){var n=this[0]||document;return'string'==typeof e&&(e=n.querySelectorAll?n.querySelectorAll(e):'#'===e.charAt(0)?n.getElementById(e.slice(1)):n.getElementsByTagName(e)),new t(e)},hasClass:function(t){return this[0]?new RegExp('(^|\\s+)'+t+'(\\s+|$)').test(this[0].className):!1},addClass:function(t){for(var e,n=this.length;n;){if(n-=1,e=this[n],!e.className)return e.className=t,this;if(this.hasClass(t))return this;e.className+=' '+t};return this},removeClass:function(t){for(var e,i=new RegExp('(^|\\s+)'+t+'(\\s+|$)'),n=this.length;n;)n-=1,e=this[n],e.className=e.className.replace(i,' ');return this},on:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent&&n.attachEvent('on'+t,e);return this},off:function(t,e){for(var i,n,o=t.split(/\s+/);o.length;)for(t=o.shift(),i=this.length;i;)i-=1,n=this[i],n.removeEventListener?n.removeEventListener(t,e,!1):n.detachEvent&&n.detachEvent('on'+t,e);return this},empty:function(){for(var t,e=this.length;e;)for(e-=1,t=this[e];t.hasChildNodes();)t.removeChild(t.lastChild);return this},first:function(){return new t(this[0])}}),'function'==typeof define&&define.amd?define(function(){return t}):(window.blueimp=window.blueimp||{},window.blueimp.helper=t)}(),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper'],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){'use strict';function e(t,n){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(n),void this.initialize()):void this.console.log('blueimp Gallery: No or empty list provided as first argument.',t):new e(t,n)};return t.extend(e.prototype,{options:{container:'#blueimp-gallery',slidesContainer:'div',titleElement:'h3',displayClass:'blueimp-gallery-display',controlsClass:'blueimp-gallery-controls',singleClass:'blueimp-gallery-single',leftEdgeClass:'blueimp-gallery-left',rightEdgeClass:'blueimp-gallery-right',playingClass:'blueimp-gallery-playing',slideClass:'slide',slideLoadingClass:'slide-loading',slideErrorClass:'slide-error',slideContentClass:'slide-content',toggleClass:'toggle',prevClass:'prev',nextClass:'next',closeClass:'close',playPauseClass:'play-pause',typeProperty:'type',titleProperty:'title',urlProperty:'href',displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&'function'==typeof window.console.log?window.console:{log:function(){}},support:function(e){var n={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},o={webkitTransition:{end:'webkitTransitionEnd',prefix:'-webkit-'},MozTransition:{end:'transitionend',prefix:'-moz-'},OTransition:{end:'otransitionend',prefix:'-o-'},transition:{end:'transitionend',prefix:''}},i=function(){var t,o,i=n.transition;document.body.appendChild(e),i&&(t=i.name.slice(0,-9)+'ransform',void 0!==e.style[t]&&(e.style[t]='translateZ(0)',o=window.getComputedStyle(e).getPropertyValue(i.prefix+'transform'),n.transform={prefix:i.prefix,name:t,translate:!0,translateZ:!!o&&'none'!==o})),void 0!==e.style.backgroundSize&&(n.backgroundSize={},e.style.backgroundSize='contain',n.backgroundSize.contain='contain'===window.getComputedStyle(e).getPropertyValue('background-size'),e.style.backgroundSize='cover',n.backgroundSize.cover='cover'===window.getComputedStyle(e).getPropertyValue('background-size')),document.body.removeChild(e)};return function(t,n){var i;for(i in n)if(n.hasOwnProperty(i)&&void 0!==e.style[i]){t.transition=n[i],t.transition.name=i;break}}(n,o),document.body?i():t(document).on('DOMContentLoaded',i),n}(document.createElement('div')),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),this.initWidget()===!1?!1:(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout);var n,s,o,i=this.index;if(i!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),n=Math.abs(i-t)/(i-t),this.options.continuous&&(s=n,n=-this.positions[this.circle(t)]/this.slideWidth,n!==s&&(t=-n*this.num+t)),o=Math.abs(i-t)-1;o;)o-=1,this.move(this.circle((t>i?t:i)-o-1),this.slideWidth*n,0);t=this.circle(t),this.move(i,this.slideWidth*n,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-n),-(this.slideWidth*n),0)}
else t=this.circle(t),this.animate(i*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this;window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,n){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,n)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e;for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display='none',this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var t=this,e=function(n){n.target===t.container[0]&&(t.container.off(t.support.transition.end,e),t.handleClose())};this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,e),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,n){this.translateX(t,e,n),this.positions[t]=e},translate:function(t,e,n,i){var o=this.slides[t].style,r=this.support.transition,s=this.support.transform;o[r.name+'Duration']=i+'ms',o[s.name]='translate('+e+'px, '+n+'px)'+(s.translateZ?' translateZ(0)':'')},translateX:function(t,e,n){this.translate(t,e,0,n)},translateY:function(t,e,n){this.translate(t,0,e,n)},animate:function(t,e,n){if(!n)return void(this.slidesContainer[0].style.left=e+'px');var i=this,o=(new Date).getTime(),s=window.setInterval(function(){var r=(new Date).getTime()-o;return r>n?(i.slidesContainer[0].style.left=e+'px',i.ontransitionend(),void window.clearInterval(s)):void(i.slidesContainer[0].style.left=(e-t)*(Math.floor(r/n*100)/100)+t+'px')},4)},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&'VIDEO'!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var i=e.target,n=e.relatedTarget;(!n||n!==i&&!t.contains(i,n))&&this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var n,i,o=(t.originalEvent||t).touches[0],s=(t.originalEvent||t).scale,e=this.index;if(!(o.length>1||s&&1!==s))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:o.pageX-this.touchStart.x,y:o.pageY-this.touchStart.y},n=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(n)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(e,this.touchDelta.y+this.positions[e],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(e+1),e,this.circle(e-1)]:(this.touchDelta.x=n/=!e&&n>0||e===this.num-1&&0>n?Math.abs(n)/this.slideWidth+1:1,i=[e],e&&i.push(e-1),e<this.num-1&&i.unshift(e+1));i.length;)e=i.pop(),this.translateX(e,n+this.positions[e],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var o,s,a,r,l,e=this.index,n=this.options.transitionSpeed,i=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,u=c&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>i/2,d=!e&&this.touchDelta.x>0||e===this.num-1&&this.touchDelta.x<0,h=!u&&this.options.closeOnSwipeUpOrDown&&(c&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(d=!1),o=this.touchDelta.x<0?-1:1,this.isScrolling?h?this.close():this.translateY(e,0,n):u&&!d?(s=e+o,a=e-o,r=i*o,l=-i*o,this.options.continuous?(this.move(this.circle(s),r,0),this.move(this.circle(e-2*o),l,0)):s>=0&&s<this.num&&this.move(s,r,0),this.move(e,this.positions[e]+r,n),this.move(this.circle(a),this.positions[this.circle(a)]+r,n),e=this.circle(a),this.onslide(e)):this.options.continuous?(this.move(this.circle(e-1),-i,n),this.move(e,0,n),this.move(this.circle(e+1),i,n)):(e&&this.move(e-1,-i,n),this.move(e,0,n),e<this.num-1&&this.move(e+1,i,n))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var o,i=e.target||e.srcElement,n=i&&i.parentNode;i&&n&&(o=this.getNodeIndex(n),t(n).removeClass(this.options.slideLoadingClass),'error'===e.type?(t(n).addClass(this.options.slideErrorClass),this.elements[o]=3):this.elements[o]=2,i.clientHeight>this.container[0].clientHeight&&(i.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===n&&this.play(),this.setTimeout(this.options.onslidecomplete,[o,n]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),t.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){var n=this.options,s=e.target||e.srcElement,o=s.parentNode,i=function(e){return t(s).hasClass(e)||t(o).hasClass(e)};i(n.toggleClass)?(this.preventDefault(e),this.toggleControls()):i(n.prevClass)?(this.preventDefault(e),this.prev()):i(n.nextClass)?(this.preventDefault(e),this.next()):i(n.closeClass)?(this.preventDefault(e),this.close()):i(n.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):o===this.slidesContainer[0]?(this.preventDefault(e),n.closeOnSlideClick?this.close():this.toggleControls()):o.parentNode&&o.parentNode===this.slidesContainer[0]&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,n=this.titleElement;n.length&&(this.titleElement.empty(),e&&n[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,n){var i=this;return t&&window.setTimeout(function(){t.apply(i,e||[])},n||0)},imageFactory:function(e,n){var c,i,a,u=this,s=this.imagePrototype.cloneNode(!1),r=e,o=this.options.stretchImages,l=function(e){if(!c){if(e={type:e.type,target:i},!i.parentNode)return u.setTimeout(l,[e]);c=!0,t(s).off('load error',l),o&&'load'===e.type&&(i.style.background='url("'+r+'") center no-repeat',i.style.backgroundSize=o),n(e)}};return'string'!=typeof r&&(r=this.getItemProperty(e,this.options.urlProperty),a=this.getItemProperty(e,this.options.titleProperty)),o===!0&&(o='contain'),o=this.support.backgroundSize&&this.support.backgroundSize[o]&&o,o?i=this.elementPrototype.cloneNode(!1):(i=s,s.draggable=!1),a&&(i.title=a),t(s).on('load error',l),s.src=r,i},createElement:function(e,n){var o=e&&this.getItemProperty(e,this.options.typeProperty),s=o&&this[o.split('/')[0]+'Factory']||this.imageFactory,i=e&&s.call(this,e,n);return i||(i=this.elementPrototype.cloneNode(!1),this.setTimeout(n,[{type:'error',target:i}])),t(i).addClass(this.options.slideContentClass),i},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),n=t;for(e=0;i>e;e+=1)n+=e*(e%2===0?-1:1),n=this.circle(n),this.loadElement(n)},unloadElements:function(t){var e,n;for(e in this.elements)this.elements.hasOwnProperty(e)&&(n=Math.abs(t-e),n>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(this.unloadSlide(e),delete this.elements[e]))},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute('data-index',t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+'px',this.support.transform&&(e.style.left=t*-this.slideWidth+'px',this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var i,n;for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement('img'),this.elementPrototype=document.createElement('div'),this.slidePrototype=document.createElement('div'),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,i=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+'px',i&&this.resetSlides(),n=0;n<this.num;n+=1)i&&this.addSlide(n),this.positionSlide(n);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+'px')},unloadSlide:function(t){var e,n;e=this.slides[t],n=e.firstChild,null!==n&&e.removeChild(n)},unloadAllSlides:function(){var t,e;for(t=0,e=this.slides.length;e>t;t++)this.unloadSlide(t)},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute('data-index'),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,n,i,o,s){var r=s||n||i||o&&parseInt(o,10);e&&t&&(t=t[r])}),t},getDataProperty:function(e,n){if(e.getAttribute){var o=e.getAttribute('data-'+n.replace(/([A-Z])/g,'-$1').toLowerCase());if('string'==typeof o){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(o))try{return t.parseJSON(o)}catch(i){};return o}}},getItemProperty:function(t,e){var n=t[e];return void 0===n&&(n=this.getDataProperty(t,e),void 0===n&&(n=this.getNestedProperty(t,e))),n},initStartIndex:function(){var t,e=this.options.index,n=this.options.urlProperty;if(e&&'number'!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],n)===this.getItemProperty(e,n)){e=t;break};this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var n=this,i=this.slidesContainer,e=function(t){var e=n.support.transition&&n.support.transition.end===t.type?'transitionend':t.type;n['on'+e](t)};t(window).on('resize',e),t(document.body).on('keydown',e),this.container.on('click',e),this.support.touch?i.on('touchstart touchmove touchend touchcancel',e):this.options.emulateTouchEvents&&this.support.transition&&i.on('mousedown mousemove mouseup mouseout',e),this.support.transition&&i.on(this.support.transition.end,e),this.proxyListener=e},destroyEventListeners:function(){var n=this.slidesContainer,e=this.proxyListener;t(window).off('resize',e),t(document.body).off('keydown',e),this.container.off('click',e),this.support.touch?n.off('touchstart touchmove touchend touchcancel',e):this.options.emulateTouchEvents&&this.support.transition&&n.off('mousedown mousemove mouseup mouseout',e),this.support.transition&&n.off(this.support.transition.end,e)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this,n=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,n),e.handleOpen())};return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,n):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow='hidden'),this.container[0].style.display='block',this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log('blueimp Gallery: Slides container not found.',this.options.slidesContainer),!1)):(this.console.log('blueimp Gallery: Widget container not found.',this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||e.carousel!==!1))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=this.options.continuous?null:!1),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper','./blueimp-gallery'],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){'use strict';t.extend(e.prototype.options,{fullScreen:!1});var n=e.prototype.initialize,i=e.prototype.close;return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){n.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),i.call(this)}}),e}),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper','./blueimp-gallery'],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){'use strict';t.extend(e.prototype.options,{indicatorContainer:'ol',activeIndicatorClass:'active',thumbnailProperty:'thumbnail',thumbnailIndicators:!0});var n=e.prototype.initSlides,i=e.prototype.addSlide,o=e.prototype.resetSlides,s=e.prototype.handleClick,r=e.prototype.handleSlide,a=e.prototype.handleClose;return t.extend(e.prototype,{createIndicator:function(e){var n,i,o=this.indicatorPrototype.cloneNode(!1),s=this.getItemProperty(e,this.options.titleProperty),r=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(r&&(n=this.getItemProperty(e,r)),void 0===n&&(i=e.getElementsByTagName&&t(e).find('img')[0],i&&(n=i.src)),n&&(o.style.backgroundImage='url("'+n+'")')),s&&(o.title=s),o},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t]);e.setAttribute('data-index',t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement('li'),this.indicators=this.indicatorContainer[0].children)),n.call(this,t)},addSlide:function(t){i.call(this,t),this.addIndicator(t)},resetSlides:function(){o.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var n=t.target||t.srcElement,e=n.parentNode;if(e===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(n));else{if(e.parentNode!==this.indicatorContainer[0])return s.call(this,t);this.preventDefault(t),this.slide(this.getNodeIndex(e))}},handleSlide:function(t){r.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),e}),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper','./blueimp-gallery'],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){'use strict';t.extend(e.prototype.options,{videoContentClass:'video-content',videoLoadingClass:'video-loading',videoPlayingClass:'video-playing',videoPosterProperty:'poster',videoSourcesProperty:'sources'});var n=e.prototype.handleSlide;return t.extend(e.prototype,{handleSlide:function(t){n.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,n,i){var u,f,l,h,m,o=this,r=this.options,a=this.elementPrototype.cloneNode(!1),p=t(a),b=[{type:'error',target:a}],s=i||document.createElement('video'),c=this.getItemProperty(e,r.urlProperty),d=this.getItemProperty(e,r.typeProperty),g=this.getItemProperty(e,r.titleProperty),v=this.getItemProperty(e,r.videoPosterProperty),y=this.getItemProperty(e,r.videoSourcesProperty);if(p.addClass(r.videoContentClass),g&&(a.title=g),s.canPlayType)if(c&&d&&s.canPlayType(d))s.src=c;else for(;y&&y.length;)if(f=y.shift(),c=this.getItemProperty(f,r.urlProperty),d=this.getItemProperty(f,r.typeProperty),c&&d&&s.canPlayType(d)){s.src=c;break};return v&&(s.poster=v,u=this.imagePrototype.cloneNode(!1),t(u).addClass(r.toggleClass),u.src=v,u.draggable=!1,a.appendChild(u)),l=document.createElement('a'),l.setAttribute('target','_blank'),i||l.setAttribute('download',g),l.href=c,s.src&&(s.controls=!0,(i||t(s)).on('error',function(){o.setTimeout(n,b)}).on('pause',function(){h=!1,p.removeClass(o.options.videoLoadingClass).removeClass(o.options.videoPlayingClass),m&&o.container.addClass(o.options.controlsClass),delete o.playingVideo,o.interval&&o.play()}).on('playing',function(){h=!1,p.removeClass(o.options.videoLoadingClass).addClass(o.options.videoPlayingClass),o.container.hasClass(o.options.controlsClass)?(m=!0,o.container.removeClass(o.options.controlsClass)):m=!1}).on('play',function(){window.clearTimeout(o.timeout),h=!0,p.addClass(o.options.videoLoadingClass),o.playingVideo=s}),t(l).on('click',function(t){o.preventDefault(t),h?s.pause():s.play()}),a.appendChild(i&&i.element||s)),a.appendChild(l),this.setTimeout(n,[{type:'load',target:a}]),a}}),e}),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper','./blueimp-gallery-video'],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){'use strict';if(!window.postMessage)return e;t.extend(e.prototype.options,{vimeoVideoIdProperty:'vimeo',vimeoPlayerUrl:'//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID',vimeoPlayerIdPrefix:'vimeo-player-',vimeoClickToPlay:!0});var o=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,n,i){this.url=t,this.videoId=e,this.playerId=n,this.clickToPlay=i,this.element=document.createElement('div'),this.listeners={}},i=0;return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){for(var e,o,s=this,r='//'+('https'===location.protocol?'secure-':'')+'a.vimeocdn.com/js/froogaloop2.min.js',n=document.getElementsByTagName('script'),i=n.length,a=function(){!o&&s.playOnReady&&s.play(),o=!0};i;)if(i-=1,n[i].src===r){e=n[i];break};e||(e=document.createElement('script'),e.src=r),t(e).on('load',a),n[0].parentNode.insertBefore(e,n[0]),/loaded|complete/.test(e.readyState)&&a()},onReady:function(){var t=this;this.ready=!0,this.player.addEvent('play',function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent('pause',function(){t.onPause()}),this.player.addEvent('finish',function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement('iframe');t.src=this.url.replace('VIDEO_ID',this.videoId).replace('PLAYER_ID',this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api('play'):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent('ready',function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api('pause'):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:n,textFactory:function(t,e){var s=this.options,r=this.getItemProperty(t,s.vimeoVideoIdProperty);return r?(void 0===this.getItemProperty(t,s.urlProperty)&&(t[s.urlProperty]='//vimeo.com/'+r),i+=1,this.videoFactory(t,e,new n(s.vimeoPlayerUrl,r,s.vimeoPlayerIdPrefix+i,s.vimeoClickToPlay))):o.call(this,t,e)}}),e}),function(t){'use strict';'function'==typeof define&&define.amd?define(['./blueimp-helper','./blueimp-gallery-video'],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){'use strict';if(!window.postMessage)return e;t.extend(e.prototype.options,{youTubeVideoIdProperty:'youtube',youTubePlayerVars:{wmode:'transparent'},youTubeClickToPlay:!0});var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,n){this.videoId=t,this.playerVars=e,this.clickToPlay=n,this.element=document.createElement('div'),this.listeners={}};return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var e,i=this,o=window.onYouTubeIframeAPIReady,s='//www.youtube.com/iframe_api',t=document.getElementsByTagName('script'),n=t.length;for(window.onYouTubeIframeAPIReady=function(){o&&o.apply(this),i.playOnReady&&i.play()};n;)if(n-=1,t[n].src===s)return;e=document.createElement('script'),e.src=s,t[0].parentNode.insertBefore(e,t[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()};this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:n,textFactory:function(t,e){var o=this.options,s=this.getItemProperty(t,o.youTubeVideoIdProperty);return s?(void 0===this.getItemProperty(t,o.urlProperty)&&(t[o.urlProperty]='//www.youtube.com/watch?v='+s),void 0===this.getItemProperty(t,o.videoPosterProperty)&&(t[o.videoPosterProperty]='//img.youtube.com/vi/'+s+'/maxresdefault.jpg'),this.videoFactory(t,e,new n(s,o.youTubePlayerVars,o.youTubeClickToPlay))):i.call(this,t,e)}}),e});$(document).ready(function(){init_canvas();url=decodeURIComponent(document.location.pathname);$('#model_menu_wrapper').outerHeight($('#model_menu').outerHeight());$('#model_menu_mobile_wrapper').outerHeight($('#model_menu_mobile_wrapper').outerHeight());$(window).bind('scroll',function(){$('#mp-menu').multilevelpushmenu('redraw')});on_page_load();$('#mp-menu').multilevelpushmenu({menuWidth:'70%',menuHeight:'100%',collapsed:!0,overlapWidth:0,mode:'overlap',swipe:'both',backText:'Назад',preventItemClick:!1,onMenuReady:function(){$('#mp-menu nav').fadeIn();$('#mp-menu').find('.fa-times').click(function(t){t.preventDefault();$('#mp-menu').multilevelpushmenu('collapse')})},onItemClick:function(){var n=arguments[0],i=arguments[1],t=arguments[2],o=arguments[3],e=t.find('a:first').attr('href');location.href=e}});$(window).resize(function(){$('#mp-menu').multilevelpushmenu('redraw');$('#model_menu_wrapper').outerHeight($('#model_menu').outerHeight());$('#model_menu_mobile_wrapper').outerHeight($('#model_menu_mobile_wrapper').outerHeight())})});