/*! Licensz: Kreatív website. Minden jog fenntartva. Engedély nélkül nem másolható, nem használható. */

/*! modernizr 3.6.0 (Custom Build) | MIT *
 * https://modernizr.com/download/?-checked-emoji-focuswithin-fontface-inputtypes-setclasses */
!function(e,t,n){function m(e,t){return typeof e===t};
function v(){var n,e,i,o,a,l,t;
for(var u in s)if(s.hasOwnProperty(u)){if(n=[],e=s[u],e.name&&(n.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)n.push(e.options.aliases[i].toLowerCase());
for(o=m(e.fn,'function')?e.fn():e.fn,a=0;a<n.length;a++)l=n[a],t=l.split('.'),1===t.length?r[t[0]]=o:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=o),p.push((o?'':'no-')+t.join('-'))}};
function y(e){var t=o.className,n=r._config.classPrefix||'';
if(u&&(t=t.baseVal),r._config.enableJSClass){var i=new RegExp('(^|\\s)'+n+'no-js(\\s|$)');
t=t.replace(i,'$1'+n+'js$2')};
r._config.enableClasses&&(t+=' '+n+e.join(' '+n),u?o.className.baseVal=t:o.className=t)};
function a(){return'function'!=typeof t.createElement?t.createElement(arguments[0]):u?t.createElementNS.call(t,'http://www.w3.org/2000/svg',arguments[0]):t.createElement.apply(t,arguments)};
function b(){var e=t.body;
return e||(e=a(u?'svg':'body'),e.fake=!0),e};
function w(e,n,r,i){var u,d,c,p,f='modernizr',l=a('div'),s=b();
if(parseInt(r,10))for(;r--;)c=a('div'),c.id=i?i[r]:f+(r+1),l.appendChild(c);
return u=a('style'),u.type='text/css',u.id='s'+f,(s.fake?s:l).appendChild(u),s.appendChild(l),u.styleSheet?u.styleSheet.cssText=e:u.appendChild(t.createTextNode(e)),l.id=f,s.fake&&(s.style.background='',s.style.overflow='hidden',p=o.style.overflow,o.style.overflow='hidden',o.appendChild(s)),d=n(l,e),s.fake?(s.parentNode.removeChild(s),o.style.overflow=p,o.offsetHeight):l.parentNode.removeChild(l),!!d};
var p=[],s=[],l={_version:'3.6.0',_config:{classPrefix:'',enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;
setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){s.push({name:e,fn:t,options:n})},addAsyncTest:function(e){s.push({name:null,fn:e})}},r=function(){};
r.prototype=l,r=new r,r.addTest('focuswithin',function(){try{t.querySelector(':focus-within')}catch(e){return!1};
return!0});
var o=t.documentElement,u='svg'===o.nodeName.toLowerCase(),i=a('input'),g='search tel url email datetime date month week time datetime-local number range color'.split(' '),d={};
r.inputtypes=function(e){for(var a,u,r,c=e.length,l='1)',s=0;c>s;s++)i.setAttribute('type',a=e[s]),r='text'!==i.type&&'style'in i,r&&(i.value=l,i.style.cssText='position:absolute;visibility:hidden;',/^range$/.test(a)&&i.style.WebkitAppearance!==n?(o.appendChild(i),u=t.defaultView,r=u.getComputedStyle&&'textfield'!==u.getComputedStyle(i,null).WebkitAppearance&&0!==i.offsetHeight,o.removeChild(i)):/^(search|tel)$/.test(a)||(r=/^(url|email)$/.test(a)?i.checkValidity&&i.checkValidity()===!1:i.value!=l)),d[e[s]]=!!r;
return d}(g),r.addTest('canvas',function(){var e=a('canvas');
return!(!e.getContext||!e.getContext('2d'))}),r.addTest('canvastext',function(){return r.canvas===!1?!1:'function'==typeof a('canvas').getContext('2d').fillText}),r.addTest('emoji',function(){if(!r.canvastext)return!1;
var i=e.devicePixelRatio||1,n=12*i,o=a('canvas'),t=o.getContext('2d');
return t.fillStyle='#f00',t.textBaseline='top',t.font='32px Arial',t.fillText('🐨',0,0),0!==t.getImageData(n,n,1,1).data[0]});
var f=l.testStyles=w;
r.addTest('checked',function(){return f('#modernizr {position:absolute} #modernizr input {margin-left:10px} #modernizr :checked {margin-left:20px;display:block}',function(e){var t=a('input');
return t.setAttribute('type','checkbox'),t.setAttribute('checked','checked'),e.appendChild(t),20===t.offsetLeft})});
var h=function(){var e=navigator.userAgent,t=e.match(/w(eb)?osbrowser/gi),n=e.match(/windows phone/gi)&&e.match(/iemobile\/([0-9])+/gi)&&parseFloat(RegExp.$1)>=9;
return t||n}();
h?r.addTest('fontface',!1):f('@font-face {font-family:"font";src:url("https://")}',function(e,n){var o=t.getElementById('smodernizr'),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||'':'',s=/src/i.test(a)&&0===a.indexOf(n.split(' ')[0]);
r.addTest('fontface',s)}),v(),y(p),delete l.addTest,delete l.addAsyncTest;
for(var c=0;c<r._q.length;c++)r._q[c]();
e.Modernizr=r}(window,document);

/*! jQuery v3.6.4 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){'use strict';
'object'==typeof module&&'object'==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error('jQuery requires a window with a document');
return t(e)}:t(e)}('undefined'!=typeof window?window:this,function(e,n){'use strict';
var v=[],Xe=Object.getPrototypeOf,y=v.slice,Ye=v.flat?function(e){return v.flat.call(e)}:function(e){return v.concat.apply([],e)},le=v.push,Y=v.indexOf,K={},Ke=K.toString,J=K.hasOwnProperty,Je=J.toString,Jt=Je.call(Object),a={},i=function(e){return'function'==typeof e&&'number'!=typeof e.nodeType&&'function'!=typeof e.item},N=function(e){return null!=e&&e===e.window},o=e.document,Qt={type:!0,src:!0,nonce:!0,noModule:!0};
function Qe(e,t,n){var r,a,i=(n=n||o).createElement('script');
if(i.text=e,t)for(r in Qt)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&i.setAttribute(r,a);
n.head.appendChild(i).parentNode.removeChild(i)};
function j(e){return null==e?e+'':'object'==typeof e||'function'==typeof e?K[Ke.call(e)]||'object':typeof e};
var Ve='3.6.4',t=function(e,n){return new t.fn.init(e,n)};
function ce(e){var t=!!e&&'length'in e&&e.length,n=j(e);
return!i(e)&&!N(e)&&('array'===n||0===t||'number'==typeof t&&0<t&&t-1 in e)};
t.fn=t.prototype={jquery:Ve,constructor:t,length:0,toArray:function(){return y.call(this)},get:function(e){return null==e?y.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var n=t.merge(this.constructor(),e);
return n.prevObject=this,n},each:function(e){return t.each(this,e)},map:function(e){return this.pushStack(t.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(y.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(t.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(t.grep(this,function(e,t){return t%2}))},eq:function(e){var n=this.length,t=+e+(e<0?n:0);
return this.pushStack(0<=t&&t<n?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:le,sort:v.sort,splice:v.splice},t.extend=t.fn.extend=function(){var u,o,a,n,s,c,e=arguments[0]||{},r=1,f=arguments.length,l=!1;
for('boolean'==typeof e&&(l=e,e=arguments[r]||{},r++),'object'==typeof e||i(e)||(e={}),r===f&&(e=this,r--);r<f;r++)if(null!=(u=arguments[r]))for(o in u)n=u[o],'__proto__'!==o&&e!==n&&(l&&n&&(t.isPlainObject(n)||(s=Array.isArray(n)))?(a=e[o],c=s&&!Array.isArray(a)?[]:s||t.isPlainObject(a)?a:{},s=!1,e[o]=t.extend(l,c,n)):void 0!==n&&(e[o]=n));
return e},t.extend({expando:'jQuery'+(Ve+Math.random()).replace(/\D/g,''),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;
return!(!e||'[object Object]'!==Ke.call(e))&&(!(t=Xe(e))||'function'==typeof(n=J.call(t,'constructor')&&t.constructor)&&Je.call(n)===Jt)},isEmptyObject:function(e){var t;
for(t in e)return!1;
return!0},globalEval:function(e,t,n){Qe(e,{nonce:t&&t.nonce},n)},each:function(e,t){var r,n=0;
if(ce(e)){for(r=e.length;n<r;n++)if(!1===t.call(e[n],n,e[n]))break}
else for(n in e)if(!1===t.call(e[n],n,e[n]))break;
return e},makeArray:function(e,n){var r=n||[];
return null!=e&&(ce(Object(e))?t.merge(r,'string'==typeof e?[e]:e):le.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:Y.call(t,e,n)},merge:function(e,t){for(var i=+t.length,n=0,r=e.length;n<i;n++)e[r++]=t[n];
return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,a=!n;r<o;r++)!t(e[r],r)!==a&&i.push(e[r]);
return i},map:function(e,t,n){var a,i,r=0,o=[];
if(ce(e))for(a=e.length;r<a;r++)null!=(i=t(e[r],r,n))&&o.push(i);
else for(r in e)null!=(i=t(e[r],r,n))&&o.push(i);
return Ye(o)},guid:1,support:a}),'function'==typeof Symbol&&(t.fn[Symbol.iterator]=v[Symbol.iterator]),t.each('Boolean Number String Function Array Date RegExp Object Error Symbol'.split(' '),function(e,t){K['[object '+t+']']=t.toLowerCase()});
var x=function(e){var E,o,t,D,Q,S,B,Z,q,v,A,y,n,l,c,u,w,H,N,s='sizzle'+1*new Date,d=e.document,h=0,de=0,ee=M(),te=M(),ne=M(),L=M(),F=function(e,t){return e===t&&(A=!0),0},pe={}.hasOwnProperty,x=[],he=x.pop,ge=x.push,b=x.push,re=x.slice,k=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;
return-1},W='checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped',r='[\\x20\\t\\r\\n\\f]',T='(?:\\\\[\\da-fA-F]{1,6}'+r+'?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+',ie='\\['+r+'*('+T+')(?:'+r+'*([*^$|!~]?=)'+r+'*(?:\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)"|('+T+'))|)'+r+'*\\]',U=':('+T+')(?:\\(((\'((?:\\\\.|[^\\\\\'])*)\'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|'+ie+')*)|.*)\\)|)',me=new RegExp(r+'+','g'),O=new RegExp('^'+r+'+|((?:^|[^\\\\])(?:\\\\.)*)'+r+'+$','g'),ve=new RegExp('^'+r+'*,'+r+'*'),oe=new RegExp('^'+r+'*([>+~]|'+r+')'+r+'*'),ye=new RegExp(r+'|>'),be=new RegExp(U),we=new RegExp('^'+T+'$'),z={ID:new RegExp('^#('+T+')'),CLASS:new RegExp('^\\.('+T+')'),TAG:new RegExp('^('+T+'|[*])'),ATTR:new RegExp('^'+ie),PSEUDO:new RegExp('^'+U),CHILD:new RegExp('^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\('+r+'*(even|odd|(([+-]|)(\\d*)n|)'+r+'*(?:([+-]|)'+r+'*(\\d+)|))'+r+'*\\)|)','i'),bool:new RegExp('^(?:'+W+')$','i'),needsContext:new RegExp('^'+r+'*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\('+r+'*((?:-\\d)?\\d*)'+r+'*\\)|)(?=[^-]|$)','i')},xe=/HTML$/i,ke=/^(?:input|select|textarea|button)$/i,Te=/^h\d$/i,j=/^[^{]+\{\s*\[native \w/,Ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,g=new RegExp('\\\\[\\da-fA-F]{1,6}'+r+'?|\\\\([^\\r\\n\\f])','g'),m=function(e,t){var n='0x'+e.slice(1)-65536;
return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ae=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?'\0'===e?'\ufffd':e.slice(0,-1)+'\\'+e.charCodeAt(e.length-1).toString(16)+' ':'\\'+e},ue=function(){y()},Ee=P(function(e){return!0===e.disabled&&'fieldset'===e.nodeName.toLowerCase()},{dir:'parentNode',next:'legend'});
try{b.apply(x=re.call(d.childNodes),d.childNodes),x[d.childNodes.length].nodeType}catch(i){b={apply:x.length?function(e,t){ge.apply(e,re.call(t))}:function(e,t){var n=e.length,r=0;
while(e[n++]=t[r++]);e.length=n-1}}};
function a(e,t,r,i){var l,g,f,d,m,v,w,h=t&&t.ownerDocument,p=t?t.nodeType:9;
if(r=r||[],'string'!=typeof e||!e||1!==p&&9!==p&&11!==p)return r;
if(!i&&(y(t),t=t||n,c)){if(11!==p&&(m=Ce.exec(e)))if(l=m[1]){if(9===p){if(!(f=t.getElementById(l)))return r;
if(f.id===l)return r.push(f),r}
else if(h&&(f=h.getElementById(l))&&N(t,f)&&f.id===l)return r.push(f),r}
else{if(m[2])return b.apply(r,t.getElementsByTagName(e)),r;
if((l=m[3])&&o.getElementsByClassName&&t.getElementsByClassName)return b.apply(r,t.getElementsByClassName(l)),r};
if(o.qsa&&!L[e+' ']&&(!u||!u.test(e))&&(1!==p||'object'!==t.nodeName.toLowerCase())){if(w=e,h=t,1===p&&(ye.test(e)||oe.test(e))){(h=G.test(e)&&X(t.parentNode)||t)===t&&o.scope||((d=t.getAttribute('id'))?d=d.replace(ae,se):t.setAttribute('id',d=s)),g=(v=S(e)).length;
while(g--)v[g]=(d?'#'+d:':scope')+' '+R(v[g]);
w=v.join(',')};
try{return b.apply(r,h.querySelectorAll(w)),r}catch(a){L(e,!0)}finally{d===s&&t.removeAttribute('id')}}};
return Z(e.replace(O,'$1'),t,r,i)};
function M(){var e=[];
return function n(r,i){return e.push(r+' ')>t.cacheLength&&delete n[e.shift()],n[r+' ']=i}};
function p(e){return e[s]=!0,e};
function f(e){var r=n.createElement('fieldset');
try{return!!e(r)}catch(t){return!1}finally{r.parentNode&&r.parentNode.removeChild(r),r=null}};
function V(e,n){var r=e.split('|'),i=r.length;
while(i--)t.attrHandle[r[i]]=n};
function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;
if(r)return r;
if(n)while(n=n.nextSibling)if(n===t)return-1;
return e?1:-1};
function Ae(e){return function(t){return'input'===t.nodeName.toLowerCase()&&t.type===e}};
function Se(e){return function(t){var n=t.nodeName.toLowerCase();
return('input'===n||'button'===n)&&t.type===e}};
function ce(e){return function(t){return'form'in t?t.parentNode&&!1===t.disabled?'label'in t?'label'in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Ee(t)===e:t.disabled===e:'label'in t&&t.disabled===e}};
function C(e){return p(function(t){return t=+t,p(function(n,r){var i,o=e([],n.length,t),a=o.length;
while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})};
function X(e){return e&&'undefined'!=typeof e.getElementsByTagName&&e};
for(E in o=a.support={},Q=a.isXML=function(e){var n=e&&e.namespaceURI,t=e&&(e.ownerDocument||e).documentElement;return!xe.test(n||t&&t.nodeName||'HTML')},y=a.setDocument=function(e){var p,i,a=e?e.ownerDocument||e:d;return a!=n&&9===a.nodeType&&a.documentElement&&(l=(n=a).documentElement,c=!Q(n),d!=n&&(i=n.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener('unload',ue,!1):i.attachEvent&&i.attachEvent('onunload',ue)),o.scope=f(function(e){return l.appendChild(e).appendChild(n.createElement('div')),'undefined'!=typeof e.querySelectorAll&&!e.querySelectorAll(':scope fieldset div').length}),o.cssHas=f(function(){try{return n.querySelector(':has(*,:jqfake)'),!1}catch(e){return!0}}),o.attributes=f(function(e){return e.className='i',!e.getAttribute('className')}),o.getElementsByTagName=f(function(e){return e.appendChild(n.createComment('')),!e.getElementsByTagName('*').length}),o.getElementsByClassName=j.test(n.getElementsByClassName),o.getById=f(function(e){return l.appendChild(e).id=s,!n.getElementsByName||!n.getElementsByName(s).length}),o.getById?(t.filter.ID=function(e){var t=e.replace(g,m);
return function(e){return e.getAttribute('id')===t}},t.find.ID=function(e,t){if('undefined'!=typeof t.getElementById&&c){var n=t.getElementById(e);
return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(g,m);
return function(e){var n='undefined'!=typeof e.getAttributeNode&&e.getAttributeNode('id');
return n&&n.value===t}},t.find.ID=function(e,t){if('undefined'!=typeof t.getElementById&&c){var r,i,o,n=t.getElementById(e);
if(n){if((r=n.getAttributeNode('id'))&&r.value===e)return[n];
o=t.getElementsByName(e),i=0;
while(n=o[i++])if((r=n.getAttributeNode('id'))&&r.value===e)return[n]};
return[]}}),t.find.TAG=o.getElementsByTagName?function(e,t){return'undefined'!=typeof t.getElementsByTagName?t.getElementsByTagName(e):o.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);
if('*'===e){while(n=i[o++])1===n.nodeType&&r.push(n);
return r};
return i},t.find.CLASS=o.getElementsByClassName&&function(e,t){if('undefined'!=typeof t.getElementsByClassName&&c)return t.getElementsByClassName(e)},w=[],u=[],(o.qsa=j.test(n.querySelectorAll))&&(f(function(e){var t;
l.appendChild(e).innerHTML='<a id=\''+s+'\'></a><select id=\''+s+'-\r\\\' msallowcapture=\'\'><option selected=\'\'></option></select>',e.querySelectorAll('[msallowcapture^=\'\']').length&&u.push('[*^$]='+r+'*(?:\'\'|"")'),e.querySelectorAll('[selected]').length||u.push('\\['+r+'*(?:value|'+W+')'),e.querySelectorAll('[id~='+s+'-]').length||u.push('~='),(t=n.createElement('input')).setAttribute('name',''),e.appendChild(t),e.querySelectorAll('[name=\'\']').length||u.push('\\['+r+'*name'+r+'*='+r+'*(?:\'\'|"")'),e.querySelectorAll(':checked').length||u.push(':checked'),e.querySelectorAll('a#'+s+'+*').length||u.push('.#.+[+~]'),e.querySelectorAll('\\\f'),u.push('[\\r\\n\\f]')}),f(function(e){e.innerHTML='<a href=\'\' disabled=\'disabled\'></a><select disabled=\'disabled\'><option/></select>';
var t=n.createElement('input');
t.setAttribute('type','hidden'),e.appendChild(t).setAttribute('name','D'),e.querySelectorAll('[name=d]').length&&u.push('name'+r+'*[*^$|!~]?='),2!==e.querySelectorAll(':enabled').length&&u.push(':enabled',':disabled'),l.appendChild(e).disabled=!0,2!==e.querySelectorAll(':disabled').length&&u.push(':enabled',':disabled'),e.querySelectorAll('*,:x'),u.push(',.*:')})),(o.matchesSelector=j.test(H=l.matches||l.webkitMatchesSelector||l.mozMatchesSelector||l.oMatchesSelector||l.msMatchesSelector))&&f(function(e){o.disconnectedMatch=H.call(e,'*'),H.call(e,'[s!=\'\']:x'),w.push('!=',U)}),o.cssHas||u.push(':has'),u=u.length&&new RegExp(u.join('|')),w=w.length&&new RegExp(w.join('|')),p=j.test(l.compareDocumentPosition),N=p||j.test(l.contains)?function(e,t){var r=9===e.nodeType&&e.documentElement||e,n=t&&t.parentNode;
return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;
return!1},F=p?function(e,t){if(e===t)return A=!0,0;
var r=!e.compareDocumentPosition-!t.compareDocumentPosition;
return r||(1&(r=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!o.sortDetached&&t.compareDocumentPosition(e)===r?e==n||e.ownerDocument==d&&N(d,e)?-1:t==n||t.ownerDocument==d&&N(d,t)?1:v?k(v,e)-k(v,t):0:4&r?-1:1)}:function(e,t){if(e===t)return A=!0,0;
var r,i=0,s=e.parentNode,u=t.parentNode,o=[e],a=[t];
if(!s||!u)return e==n?-1:t==n?1:s?-1:u?1:v?k(v,e)-k(v,t):0;
if(s===u)return le(e,t);
r=e;
while(r=r.parentNode)o.unshift(r);
r=t;
while(r=r.parentNode)a.unshift(r);
while(o[i]===a[i])i++;
return i?le(o[i],a[i]):o[i]==d?-1:a[i]==d?1:0}),n},a.matches=function(e,t){return a(e,null,null,t)},a.matchesSelector=function(e,t){if(y(e),o.matchesSelector&&c&&!L[t+' ']&&(!w||!w.test(t))&&(!u||!u.test(t)))try{var i=H.call(e,t);if(i||o.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(r){L(t,!0)};return 0<a(t,n,null,[e]).length},a.contains=function(e,t){return(e.ownerDocument||e)!=n&&y(e),N(e,t)},a.attr=function(e,r){(e.ownerDocument||e)!=n&&y(e);var a=t.attrHandle[r.toLowerCase()],i=a&&pe.call(t.attrHandle,r.toLowerCase())?a(e,r,!c):void 0;return void 0!==i?i:o.attributes||!c?e.getAttribute(r):(i=e.getAttributeNode(r))&&i.specified?i.value:null},a.escape=function(e){return(e+'').replace(ae,se)},a.error=function(e){throw new Error('Syntax error, unrecognized expression: '+e)},a.uniqueSort=function(e){var r,i=[],t=0,n=0;if(A=!o.detectDuplicates,v=!o.sortStable&&e.slice(0),e.sort(F),A){while(r=e[n++])r===e[n]&&(t=i.push(n));while(t--)e.splice(i[t],1)};return v=null,e},D=a.getText=function(e){var r,n='',i=0,t=e.nodeType;if(t){if(1===t||9===t||11===t){if('string'==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=D(e)}
else if(3===t||4===t)return e.nodeValue}
else while(r=e[i++])n+=D(r);return n},(t=a.selectors={cacheLength:50,createPseudo:p,match:z,attrHandle:{},find:{},relative:{'>':{dir:'parentNode',first:!0},' ':{dir:'parentNode'},'+':{dir:'previousSibling',first:!0},'~':{dir:'previousSibling'}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(g,m),e[3]=(e[3]||e[4]||e[5]||'').replace(g,m),'~='===e[2]&&(e[3]=' '+e[3]+' '),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),'nth'===e[1].slice(0,3)?(e[3]||a.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*('even'===e[3]||'odd'===e[3])),e[5]=+(e[7]+e[8]||'odd'===e[3])):e[3]&&a.error(e[0]),e},PSEUDO:function(e){var n,t=!e[6]&&e[2];
return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||'':t&&be.test(t)&&(n=S(t,!0))&&(n=t.indexOf(')',t.length-n)-t.length)&&(e[0]=e[0].slice(0,n),e[2]=t.slice(0,n)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(g,m).toLowerCase();
return'*'===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=ee[e+' '];
return t||(t=new RegExp('(^|'+r+')'+e+'('+r+'|$)'))&&ee(e,function(e){return t.test('string'==typeof e.className&&e.className||'undefined'!=typeof e.getAttribute&&e.getAttribute('class')||'')})},ATTR:function(e,t,n){return function(r){var i=a.attr(r,e);
return null==i?'!='===t:!t||(i+='','='===t?i===n:'!='===t?i!==n:'^='===t?n&&0===i.indexOf(n):'*='===t?n&&-1<i.indexOf(n):'$='===t?n&&i.slice(-n.length)===n:'~='===t?-1<(' '+i.replace(me,' ')+' ').indexOf(n):'|='===t&&(i===n||i.slice(0,n.length+1)===n+'-'))}},CHILD:function(e,t,n,r,i){var u='nth'!==e.slice(0,3),a='last'!==e.slice(-4),o='of-type'===t;
return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var g,b,p,c,d,m,v=u!==a?'nextSibling':'previousSibling',y=t.parentNode,x=o&&t.nodeName.toLowerCase(),w=!l&&!o,f=!1;
if(y){if(u){while(v){c=t;
while(c=c[v])if(o?c.nodeName.toLowerCase()===x:1===c.nodeType)return!1;
m=v='only'===e&&!m&&'nextSibling'};
return!0};
if(m=[a?y.firstChild:y.lastChild],a&&w){f=(d=(g=(b=(p=(c=y)[s]||(c[s]={}))[c.uniqueID]||(p[c.uniqueID]={}))[e]||[])[0]===h&&g[1])&&g[2],c=d&&y.childNodes[d];
while(c=++d&&c&&c[v]||(f=d=0)||m.pop())if(1===c.nodeType&&++f&&c===t){b[e]=[h,d,f];
break}}
else if(w&&(f=d=(g=(b=(p=(c=t)[s]||(c[s]={}))[c.uniqueID]||(p[c.uniqueID]={}))[e]||[])[0]===h&&g[1]),!1===f)while(c=++d&&c&&c[v]||(f=d=0)||m.pop())if((o?c.nodeName.toLowerCase()===x:1===c.nodeType)&&++f&&(w&&((b=(p=c[s]||(c[s]={}))[c.uniqueID]||(p[c.uniqueID]={}))[e]=[h,f]),c===t))break;
return(f-=i)===r||f%r==0&&0<=f/r}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||a.error('unsupported pseudo: '+e);
return r[s]?r(n):1<r.length?(i=[e,e,'',n],t.setFilters.hasOwnProperty(e.toLowerCase())?p(function(e,t){var a,i=r(e,n),o=i.length;
while(o--)e[a=k(e,i[o])]=!(t[a]=i[o])}):function(e){return r(e,0,i)}):r}},pseudos:{not:p(function(e){var t=[],r=[],n=B(e.replace(O,'$1'));
return n[s]?p(function(e,t,r,i){var a,s=n(e,null,i,[]),o=e.length;
while(o--)(a=s[o])&&(e[o]=!(t[o]=a))}):function(e,i,o){return t[0]=e,n(t,null,o,r),t[0]=null,!r.pop()}}),has:p(function(e){return function(t){return 0<a(e,t).length}}),contains:p(function(e){return e=e.replace(g,m),function(t){return-1<(t.textContent||D(t)).indexOf(e)}}),lang:p(function(e){return we.test(e||'')||a.error('unsupported lang: '+e),e=e.replace(g,m).toLowerCase(),function(t){var n;
do{if(n=c?t.lang:t.getAttribute('xml:lang')||t.getAttribute('lang'))return(n=n.toLowerCase())===e||0===n.indexOf(e+'-')}
while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;
return n&&n.slice(1)===t.id},root:function(e){return e===l},focus:function(e){return e===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ce(!1),disabled:ce(!0),checked:function(e){var t=e.nodeName.toLowerCase();
return'input'===t&&!!e.checked||'option'===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;
return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return Te.test(e.nodeName)},input:function(e){return ke.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();
return'input'===t&&'button'===e.type||'button'===t},text:function(e){var t;
return'input'===e.nodeName.toLowerCase()&&'text'===e.type&&(null==(t=e.getAttribute('type'))||'text'===t.toLowerCase())},first:C(function(){return[0]}),last:C(function(e,t){return[t-1]}),eq:C(function(e,t,n){return[n<0?n+t:n]}),even:C(function(e,t){for(var n=0;n<t;n+=2)e.push(n);
return e}),odd:C(function(e,t){for(var n=1;n<t;n+=2)e.push(n);
return e}),lt:C(function(e,t,n){for(var r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);
return e}),gt:C(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);
return e})}}).pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[E]=Ae(E);
for(E in{submit:!0,reset:!0})t.pseudos[E]=Se(E);
function fe(){};
function R(e){for(var t=0,r=e.length,n='';t<r;t++)n+=e[t].value;
return n};
function P(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&'parentNode'===o,u=de++;
return t.first?function(t,n,i){while(t=t[r])if(1===t.nodeType||a)return e(t,n,i);
return!1}:function(t,n,l){var c,f,d,p=[h,u];
if(l){while(t=t[r])if((1===t.nodeType||a)&&e(t,n,l))return!0}
else while(t=t[r])if(1===t.nodeType||a)if(f=(d=t[s]||(t[s]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;
else{if((c=f[o])&&c[0]===h&&c[1]===u)return p[2]=c[2];
if((f[o]=p)[2]=e(t,n,l))return!0};
return!1}};
function Y(e){return 1<e.length?function(t,n,r){var i=e.length;
while(i--)if(!e[i](t,n,r))return!1;
return!0}:e[0]};
function I(e,t,n,r,i){for(var a,s=[],o=0,u=e.length,l=null!=t;o<u;o++)(a=e[o])&&(n&&!n(a,r,i)||(s.push(a),l&&t.push(o)));
return s};
function K(e,t,n,r,i,o){return r&&!r[s]&&(r=K(r)),i&&!i[s]&&(i=K(i,o)),p(function(o,s,u,l){var d,f,p,m=[],g=[],v=s.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)a(e,t[r],n);
return n}(t||'*',u.nodeType?[u]:u,[]),h=!e||!o&&t?y:I(y,m,e,u,l),c=n?i||(o?e:v||r)?[]:s:h;
if(n&&n(h,c,u,l),r){d=I(c,g),r(d,[],u,l),f=d.length;
while(f--)(p=d[f])&&(c[g[f]]=!(h[g[f]]=p))};
if(o){if(i||e){if(i){d=[],f=c.length;
while(f--)(p=c[f])&&d.push(h[f]=p);
i(null,c=[],d,l)};
f=c.length;
while(f--)(p=c[f])&&-1<(d=i?k(o,p):m[f])&&(o[d]=!(s[d]=p))}}
else c=I(c===s?c.splice(v,c.length):c),i?i(null,s,c,l):b.apply(s,c)})};
function J(e){for(var a,i,r,u=e.length,l=t.relative[e[0].type],c=l||t.relative[' '],n=l?1:0,f=P(function(e){return e===a},c,!0),d=P(function(e){return-1<k(a,e)},c,!0),o=[function(e,t,n){var r=!l&&(n||t!==q)||((a=t).nodeType?f(e,t,n):d(e,t,n));return a=null,r}];n<u;n++)if(i=t.relative[e[n].type])o=[P(Y(o),i)];
else{if((i=t.filter[e[n].type].apply(null,e[n].matches))[s]){for(r=++n;r<u;r++)if(t.relative[e[r].type])break;
return K(1<n&&Y(o),1<n&&R(e.slice(0,n-1).concat({value:' '===e[n-2].type?'*':''})).replace(O,'$1'),i,n<r&&J(e.slice(n,r)),r<u&&J(e=e.slice(r)),r<u&&R(e))};
o.push(i)};
return Y(o)};
return fe.prototype=t.filters=t.pseudos,t.setFilters=new fe,S=a.tokenize=function(e,n){var o,i,u,s,r,l,c,f=te[e+' '];
if(f)return n?0:f.slice(0);
r=e,l=[],c=t.preFilter;
while(r){for(s in o&&!(i=ve.exec(r))||(i&&(r=r.slice(i[0].length)||r),l.push(u=[])),o=!1,(i=oe.exec(r))&&(o=i.shift(),u.push({value:o,type:i[0].replace(O,' ')}),r=r.slice(o.length)),t.filter)!(i=z[s].exec(r))||c[s]&&!(i=c[s](i))||(o=i.shift(),u.push({value:o,type:s,matches:i}),r=r.slice(o.length));
if(!o)break};
return n?r.length:r?a.error(e):te(e,l).slice(0)},B=a.compile=function(e,r){var u,l,f,o,d,g,m=[],v=[],i=ne[e+' '];
if(!i){r||(r=S(e)),u=r.length;
while(u--)(i=J(r[u]))[s]?m.push(i):v.push(i);(i=ne(e,(l=v,o=0<(f=m).length,d=0<l.length,g=function(e,r,i,s,u){var p,x,v,w=0,g='0',k=e&&[],m=[],T=q,C=e||d&&t.find.TAG('*',u),E=h+=null==T?1:Math.random()||.1,A=C.length;
for(u&&(q=r==n||r||u);g!==A&&null!=(p=C[g]);g++){if(d&&p){x=0,r||p.ownerDocument==n||(y(p),i=!c);
while(v=l[x++])if(v(p,r||n,i)){s.push(p);
break};
u&&(h=E)};
o&&((p=!v&&p)&&w--,e&&k.push(p))};
if(w+=g,o&&g!==w){x=0;
while(v=f[x++])v(k,m,r,i);
if(e){if(0<w)while(g--)k[g]||m[g]||(m[g]=he.call(s));
m=I(m)};
b.apply(s,m),u&&!e&&0<m.length&&1<w+f.length&&a.uniqueSort(s)};
return u&&(h=E,q=T),k},o?p(g):g))).selector=e};
return i},Z=a.select=function(e,n,r,i){var s,o,a,f,d,l='function'==typeof e&&e,u=!i&&S(e=l.selector||e);
if(r=r||[],1===u.length){if(2<(o=u[0]=u[0].slice(0)).length&&'ID'===(a=o[0]).type&&9===n.nodeType&&c&&t.relative[o[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(g,m),n)||[])[0]))return r;
l&&(n=n.parentNode),e=e.slice(o.shift().value.length)};
s=z.needsContext.test(e)?0:o.length;
while(s--){if(a=o[s],t.relative[f=a.type])break;
if((d=t.find[f])&&(i=d(a.matches[0].replace(g,m),G.test(o[0].type)&&X(n.parentNode)||n))){if(o.splice(s,1),!(e=i.length&&R(o)))return b.apply(r,i),r;
break}}};
return(l||B(e,u))(i,n,!c,r,!n||G.test(e)&&X(n.parentNode)||n),r},o.sortStable=s.split('').sort(F).join('')===s,o.detectDuplicates=!!A,y(),o.sortDetached=f(function(e){return 1&e.compareDocumentPosition(n.createElement('fieldset'))}),f(function(e){return e.innerHTML='<a href=\'#\'></a>','#'===e.firstChild.getAttribute('href')})||V('type|href|height|width',function(e,t,n){if(!n)return e.getAttribute(t,'type'===t.toLowerCase()?1:2)}),o.attributes&&f(function(e){return e.innerHTML='<input/>',e.firstChild.setAttribute('value',''),''===e.firstChild.getAttribute('value')})||V('value',function(e,t,n){if(!n&&'input'===e.nodeName.toLowerCase())return e.defaultValue}),f(function(e){return null==e.getAttribute('disabled')})||V(W,function(e,t,n){var r;
if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),a}(e);
t.find=x,t.expr=x.selectors,t.expr[':']=t.expr.pseudos,t.uniqueSort=t.unique=x.uniqueSort,t.text=x.getText,t.isXMLDoc=x.isXML,t.contains=x.contains,t.escapeSelector=x.escape;
var S=function(e,n,r){var i=[],o=void 0!==r;
while((e=e[n])&&9!==e.nodeType)if(1===e.nodeType){if(o&&t(e).is(r))break;
i.push(e)};
return i},Ue=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);
return n},Ge=t.expr.match.needsContext;
function c(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()};
var We=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;
function fe(e,n,r){return i(n)?t.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?t.grep(e,function(e){return e===n!==r}):'string'!=typeof n?t.grep(e,function(e){return-1<Y.call(n,e)!==r}):t.filter(n,e,r)};
t.filter=function(e,n,r){var i=n[0];
return r&&(e=':not('+e+')'),1===n.length&&1===i.nodeType?t.find.matchesSelector(i,e)?[i]:[]:t.find.matches(e,t.grep(n,function(e){return 1===e.nodeType}))},t.fn.extend({find:function(e){var n,r,i=this.length,o=this;
if('string'!=typeof e)return this.pushStack(t(e).filter(function(){for(n=0;n<i;n++)if(t.contains(o[n],this))return!0}));
for(r=this.pushStack([]),n=0;n<i;n++)t.find(e,o[n],r);
return 1<i?t.uniqueSort(r):r},filter:function(e){return this.pushStack(fe(this,e||[],!1))},not:function(e){return this.pushStack(fe(this,e||[],!0))},is:function(e){return!!fe(this,'string'==typeof e&&Ge.test(e)?t(e):e||[],!1).length}});
var Fe,Kt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(t.fn.init=function(e,n,r){var a,s;
if(!e)return this;
if(r=r||Fe,'string'==typeof e){if(!(a='<'===e[0]&&'>'===e[e.length-1]&&3<=e.length?[null,e,null]:Kt.exec(e))||!a[1]&&n)return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e);
if(a[1]){if(n=n instanceof t?n[0]:n,t.merge(this,t.parseHTML(a[1],n&&n.nodeType?n.ownerDocument||n:o,!0)),We.test(a[1])&&t.isPlainObject(n))for(a in n)i(this[a])?this[a](n[a]):this.attr(a,n[a]);
return this};
return(s=o.getElementById(a[2]))&&(this[0]=s,this.length=1),this};
return e.nodeType?(this[0]=e,this.length=1,this):i(e)?void 0!==r.ready?r.ready(e):e(t):t.makeArray(e,this)}).prototype=t.fn,Fe=t(o);
var Xt=/^(?:parents|prev(?:Until|All))/,Yt={children:!0,contents:!0,next:!0,prev:!0};
function Ze(e,t){while((e=e[t])&&1!==e.nodeType);return e};
t.fn.extend({has:function(e){var n=t(e,this),r=n.length;
return this.filter(function(){for(var e=0;e<r;e++)if(t.contains(this,n[e]))return!0})},closest:function(e,n){var r,o=0,s=this.length,i=[],a='string'!=typeof e&&t(e);
if(!Ge.test(e))for(;o<s;o++)for(r=this[o];r&&r!==n;r=r.parentNode)if(r.nodeType<11&&(a?-1<a.index(r):1===r.nodeType&&t.find.matchesSelector(r,e))){i.push(r);
break};
return this.pushStack(1<i.length?t.uniqueSort(i):i)},index:function(e){return e?'string'==typeof e?Y.call(t(e),this[0]):Y.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,n){return this.pushStack(t.uniqueSort(t.merge(this.get(),t(e,n))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),t.each({parent:function(e){var t=e.parentNode;
return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,'parentNode')},parentsUntil:function(e,t,n){return S(e,'parentNode',n)},next:function(e){return Ze(e,'nextSibling')},prev:function(e){return Ze(e,'previousSibling')},nextAll:function(e){return S(e,'nextSibling')},prevAll:function(e){return S(e,'previousSibling')},nextUntil:function(e,t,n){return S(e,'nextSibling',n)},prevUntil:function(e,t,n){return S(e,'previousSibling',n)},siblings:function(e){return Ue((e.parentNode||{}).firstChild,e)},children:function(e){return Ue(e.firstChild)},contents:function(e){return null!=e.contentDocument&&Xe(e.contentDocument)?e.contentDocument:(c(e,'template')&&(e=e.content||e),t.merge([],e.childNodes))}},function(e,n){t.fn[e]=function(r,i){var o=t.map(this,n,r);
return'Until'!==e.slice(-5)&&(i=r),i&&'string'==typeof i&&(o=t.filter(i,o)),1<this.length&&(Yt[e]||t.uniqueSort(o),Xt.test(e)&&o.reverse()),this.pushStack(o)}});
var p=/[^\x20\t\r\n\f]+/g;
function D(e){return e};
function Q(e){throw e};
function et(e,t,n,r){var a;
try{e&&i(a=e.promise)?a.call(e).done(t).fail(n):e&&i(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(o){n.apply(void 0,[o])}};
t.Callbacks=function(e){var h,c;
e='string'==typeof e?(h=e,c={},t.each(h.match(p)||[],function(e,t){c[t]=!0}),c):t.extend({},e);
var s,r,f,o,n=[],u=[],a=-1,d=function(){for(o=o||e.once,f=s=!0;u.length;a=-1){r=u.shift();
while(++a<n.length)!1===n[a].apply(r[0],r[1])&&e.stopOnFalse&&(a=n.length,r=!1)};
e.memory||(r=!1),s=!1,o&&(n=r?[]:'')},l={add:function(){return n&&(r&&!s&&(a=n.length-1,u.push(r)),function o(r){t.each(r,function(t,r){i(r)?e.unique&&l.has(r)||n.push(r):r&&r.length&&'string'!==j(r)&&o(r)})}(arguments),r&&!s&&d()),this},remove:function(){return t.each(arguments,function(e,r){var i;
while(-1<(i=t.inArray(r,n,i)))n.splice(i,1),i<=a&&a--}),this},has:function(e){return e?-1<t.inArray(e,n):0<n.length},empty:function(){return n&&(n=[]),this},disable:function(){return o=u=[],n=r='',this},disabled:function(){return!n},lock:function(){return o=u=[],r||s||(n=r=''),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),s||d()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!f}};
return l},t.extend({Deferred:function(n){var o=[['notify','progress',t.Callbacks('memory'),t.Callbacks('memory'),2],['resolve','done',t.Callbacks('once memory'),t.Callbacks('once memory'),0,'resolved'],['reject','fail',t.Callbacks('once memory'),t.Callbacks('once memory'),1,'rejected']],s='pending',a={state:function(){return s},always:function(){return r.done(arguments).fail(arguments),this},'catch':function(e){return a.then(null,e)},pipe:function(){var e=arguments;
return t.Deferred(function(n){t.each(o,function(t,o){var a=i(e[o[4]])&&e[o[4]];
r[o[1]](function(){var e=a&&a.apply(this,arguments);
e&&i(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+'With'](this,a?[e]:arguments)})}),e=null}).promise()},then:function(n,r,a){var s=0;
function u(n,r,o,a){return function(){var l=this,c=arguments,d=function(){var e,t;
if(!(n<s)){if((e=o.apply(l,c))===r.promise())throw new TypeError('Thenable self-resolution');
t=e&&('object'==typeof e||'function'==typeof e)&&e.then,i(t)?a?t.call(e,u(s,r,D,a),u(s,r,Q,a)):(s++,t.call(e,u(s,r,D,a),u(s,r,Q,a),u(s,r,D,r.notifyWith))):(o!==D&&(l=void 0,c=[e]),(a||r.resolveWith)(l,c))}},f=a?d:function(){try{d()}catch(e){t.Deferred.exceptionHook&&t.Deferred.exceptionHook(e,f.stackTrace),s<=n+1&&(o!==Q&&(l=void 0,c=[e]),r.rejectWith(l,c))}};
n?f():(t.Deferred.getStackHook&&(f.stackTrace=t.Deferred.getStackHook()),e.setTimeout(f))}};
return t.Deferred(function(e){o[0][3].add(u(0,e,i(a)?a:D,e.notifyWith)),o[1][3].add(u(0,e,i(n)?n:D)),o[2][3].add(u(0,e,i(r)?r:Q))}).promise()},promise:function(e){return null!=e?t.extend(e,a):a}},r={};
return t.each(o,function(e,t){var n=t[2],i=t[5];
a[t[1]]=n.add,i&&n.add(function(){s=i},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),r[t[0]]=function(){return r[t[0]+'With'](this===r?void 0:this,arguments),this},r[t[0]+'With']=n.fireWith}),a.promise(r),n&&n.call(r,r),r},when:function(e){var a=arguments.length,n=a,s=Array(n),o=y.call(arguments),r=t.Deferred(),u=function(e){return function(t){s[e]=this,o[e]=1<arguments.length?y.call(arguments):t,--a||r.resolveWith(s,o)}};
if(a<=1&&(et(e,r.done(u(n)).resolve,r.reject,!a),'pending'===r.state()||i(o[n]&&o[n].then)))return r.then();
while(n--)et(o[n],u(n),r.reject);
return r.promise()}});
var Vt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
t.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Vt.test(t.name)&&e.console.warn('jQuery.Deferred exception: '+t.message,t.stack,n)},t.readyException=function(t){e.setTimeout(function(){throw t})};
var ue=t.Deferred();
function Z(){o.removeEventListener('DOMContentLoaded',Z),e.removeEventListener('load',Z),t.ready()};
t.fn.ready=function(e){return ue.then(e)['catch'](function(e){t.readyException(e)}),this},t.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--t.readyWait:t.isReady)||(t.isReady=!0)!==e&&0<--t.readyWait||ue.resolveWith(o,[t])}}),t.ready.then=ue.then,'complete'===o.readyState||'loading'!==o.readyState&&!o.documentElement.doScroll?e.setTimeout(t.ready):(o.addEventListener('DOMContentLoaded',Z),e.addEventListener('load',Z));
var m=function(e,n,r,o,a,u,l){var s=0,f=e.length,c=null==r;
if('object'===j(r))for(s in a=!0,r)m(e,n,s,r[s],!0,u,l);
else if(void 0!==o&&(a=!0,i(o)||(l=!0),c&&(l?(n.call(e,o),n=null):(c=n,n=function(e,n,r){return c.call(t(e),r)})),n))for(;s<f;s++)n(e[s],r,l?o:o.call(e[s],s,n(e[s],r)));
return a?e:c?n.call(e):f?n(e[0],r):u},Ut=/^-ms-/,Gt=/-([a-z])/g;
function Zt(e,t){return t.toUpperCase()};
function h(e){return e.replace(Ut,'ms-').replace(Gt,Zt)};
var B=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};
function F(){this.expando=t.expando+F.uid++};
F.uid=1,F.prototype={cache:function(e){var t=e[this.expando];
return t||(t={},B(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);
if('string'==typeof t)i[h(t)]=n;
else for(r in t)i[h(r)]=t[r];
return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][h(t)]},access:function(e,t,n){return void 0===t||t&&'string'==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,n){var i,r=e[this.expando];
if(void 0!==r){if(void 0!==n){i=(n=Array.isArray(n)?n.map(h):(n=h(n))in r?[n]:n.match(p)||[]).length;
while(i--)delete r[n[i]]}(void 0===n||t.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var n=e[this.expando];
return void 0!==n&&!t.isEmptyObject(n)}};
var r=new F,s=new F,Ft=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Wt=/[A-Z]/g;
function tt(e,t,n){var o,i;
if(void 0===n&&1===e.nodeType)if(o='data-'+t.replace(Wt,'-$&').toLowerCase(),'string'==typeof(n=e.getAttribute(o))){try{n='true'===(i=n)||'false'!==i&&('null'===i?null:i===+i+''?+i:Ft.test(i)?JSON.parse(i):i)}catch(r){};
s.set(e,t,n)}
else n=void 0;
return n};
t.extend({hasData:function(e){return s.hasData(e)||r.hasData(e)},data:function(e,t,n){return s.access(e,t,n)},removeData:function(e,t){s.remove(e,t)},_data:function(e,t,n){return r.access(e,t,n)},_removeData:function(e,t){r.remove(e,t)}}),t.fn.extend({data:function(e,t){var o,i,a,n=this[0],u=n&&n.attributes;
if(void 0===e){if(this.length&&(a=s.get(n),1===n.nodeType&&!r.get(n,'hasDataAttrs'))){o=u.length;
while(o--)u[o]&&0===(i=u[o].name).indexOf('data-')&&(i=h(i.slice(5)),tt(n,i,a[i]));
r.set(n,'hasDataAttrs',!0)};
return a};
return'object'==typeof e?this.each(function(){s.set(this,e)}):m(this,function(t){var r;
if(n&&void 0===t)return void 0!==(r=s.get(n,e))?r:void 0!==(r=tt(n,e))?r:void 0;
this.each(function(){s.set(this,e,t)})},null,t,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){s.remove(this,e)})}}),t.extend({queue:function(e,n,i){var o;
if(e)return n=(n||'fx')+'queue',o=r.get(e,n),i&&(!o||Array.isArray(i)?o=r.access(e,n,t.makeArray(i)):o.push(i)),o||[]},dequeue:function(e,n){n=n||'fx';
var r=t.queue(e,n),a=r.length,i=r.shift(),o=t._queueHooks(e,n);
'inprogress'===i&&(i=r.shift(),a--),i&&('fx'===n&&r.unshift('inprogress'),delete o.stop,i.call(e,function(){t.dequeue(e,n)},o)),!a&&o&&o.empty.fire()},_queueHooks:function(e,n){var i=n+'queueHooks';
return r.get(e,i)||r.access(e,i,{empty:t.Callbacks('once memory').add(function(){r.remove(e,[n+'queue',i])})})}}),t.fn.extend({queue:function(e,n){var r=2;
return'string'!=typeof e&&(n=e,e='fx',r--),arguments.length<r?t.queue(this[0],e):void 0===n?this:this.each(function(){var r=t.queue(this,e,n);
t._queueHooks(this,e),'fx'===e&&'inprogress'!==r[0]&&t.dequeue(this,e)})},dequeue:function(e){return this.each(function(){t.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||'fx',[])},promise:function(e,n){var i,a=1,s=t.Deferred(),o=this,u=this.length,l=function(){--a||s.resolveWith(o,[o])};
'string'!=typeof e&&(n=e,e=void 0),e=e||'fx';
while(u--)(i=r.get(o[u],e+'queueHooks'))&&i.empty&&(a++,i.empty.add(l));
return l(),s.promise(n)}});
var Be=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,I=new RegExp('^(?:([+-])=|)('+Be+')([a-z%]*)$','i'),g=['Top','Right','Bottom','Left'],w=o.documentElement,A=function(e){return t.contains(e.ownerDocument,e)},Bt={composed:!0};
w.getRootNode&&(A=function(e){return t.contains(e.ownerDocument,e)||e.getRootNode(Bt)===e.ownerDocument});
var X=function(e,n){return'none'===(e=n||e).style.display||''===e.style.display&&A(e)&&'none'===t.css(e,'display')};
function nt(e,n,r,i){var u,l,c=20,f=i?function(){return i.cur()}:function(){return t.css(e,n,'')},s=f(),a=r&&r[3]||(t.cssNumber[n]?'':'px'),o=e.nodeType&&(t.cssNumber[n]||'px'!==a&&+s)&&I.exec(t.css(e,n));
if(o&&o[3]!==a){s/=2,a=a||o[3],o=+s||1;
while(c--)t.style(e,n,o+a),(1-l)*(1-(l=f()/s||.5))<=0&&(c=0),o/=l;
o*=2,t.style(e,n,o+a),r=r||[]};
return r&&(o=+o||+s||0,u=r[1]?o+(r[1]+1)*r[2]:+r[2],i&&(i.unit=a,i.start=o,i.end=u)),u};
var Ie={};
function q(e,n){for(var l,o,d,u,c,f,a,s=[],i=0,p=e.length;i<p;i++)(o=e[i]).style&&(l=o.style.display,n?('none'===l&&(s[i]=r.get(o,'display')||null,s[i]||(o.style.display='')),''===o.style.display&&X(o)&&(s[i]=(a=c=u=void 0,c=(d=o).ownerDocument,f=d.nodeName,(a=Ie[f])||(u=c.body.appendChild(c.createElement(f)),a=t.css(u,'display'),u.parentNode.removeChild(u),'none'===a&&(a='block'),Ie[f]=a)))):'none'!==l&&(s[i]='none',r.set(o,'display',l)));
for(i=0;i<p;i++)null!=s[i]&&(e[i].style.display=s[i]);
return e};
t.fn.extend({show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return'boolean'==typeof e?e?this.show():this.hide():this.each(function(){X(this)?t(this).show():t(this).hide()})}});
var b,V,P=/^(?:checkbox|radio)$/i,Re=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pe=/^$|^module$|\/(?:java|ecma)script/i;
b=o.createDocumentFragment().appendChild(o.createElement('div')),(V=o.createElement('input')).setAttribute('type','radio'),V.setAttribute('checked','checked'),V.setAttribute('name','t'),b.appendChild(V),a.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,b.innerHTML='<textarea>x</textarea>',a.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,b.innerHTML='<option></option>',a.option=!!b.lastChild;
var l={thead:[1,'<table>','</table>'],col:[2,'<table><colgroup>','</colgroup></table>'],tr:[2,'<table><tbody>','</tbody></table>'],td:[3,'<table><tbody><tr>','</tr></tbody></table>'],_default:[0,'','']};
function u(e,n){var r;
return r='undefined'!=typeof e.getElementsByTagName?e.getElementsByTagName(n||'*'):'undefined'!=typeof e.querySelectorAll?e.querySelectorAll(n||'*'):[],void 0===n||n&&c(e,n)?t.merge([e],r):r};
function de(e,t){for(var n=0,i=e.length;n<i;n++)r.set(e[n],'globalEval',!t||r.get(t[n],'globalEval'))};
l.tbody=l.tfoot=l.colgroup=l.caption=l.thead,l.th=l.td,a.option||(l.optgroup=l.option=[1,'<select multiple=\'multiple\'>','</select>']);
var It=/<|&#?\w+;/;
function rt(e,n,r,i,a){for(var o,s,g,d,m,p,c=n.createDocumentFragment(),h=[],f=0,v=e.length;f<v;f++)if((o=e[f])||0===o)if('object'===j(o))t.merge(h,o.nodeType?[o]:o);
else if(It.test(o)){s=s||c.appendChild(n.createElement('div')),g=(Re.exec(o)||['',''])[1].toLowerCase(),d=l[g]||l._default,s.innerHTML=d[1]+t.htmlPrefilter(o)+d[2],p=d[0];
while(p--)s=s.lastChild;
t.merge(h,s.childNodes),(s=c.firstChild).textContent=''}
else h.push(n.createTextNode(o));
c.textContent='',f=0;
while(o=h[f++])if(i&&-1<t.inArray(o,i))a&&a.push(o);
else if(m=A(o),s=u(c.appendChild(o),'script'),m&&de(s),r){p=0;
while(o=s[p++])Pe.test(o.type||'')&&r.push(o)};
return c};
var Me=/^([^.]*)(?:\.(.+)|)/;
function H(){return!0};
function L(){return!1};
function en(e,t){return e===function(){try{return o.activeElement}catch(e){}}()==('focus'===t)};
function pe(e,n,r,i,o,a){var s,u;
if('object'==typeof n){for(u in'string'!=typeof r&&(i=i||r,r=void 0),n)pe(e,u,r,i,n[u],a);
return e};
if(null==i&&null==o?(o=r,i=r=void 0):null==o&&('string'==typeof r?(o=i,i=void 0):(o=i,i=r,r=void 0)),!1===o)o=L;
else if(!o)return e;
return 1===a&&(s=o,(o=function(e){return t().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=t.guid++)),e.each(function(){t.event.add(this,n,o,i,r)})};
function ee(e,n,i){i?(r.set(e,n,!1),t.event.add(e,n,{namespace:!1,handler:function(e){var s,a,o=r.get(this,n);
if(1&e.isTrigger&&this[n]){if(o.length)(t.event.special[n]||{}).delegateType&&e.stopPropagation();
else if(o=y.call(arguments),r.set(this,n,o),s=i(this,n),this[n](),o!==(a=r.get(this,n))||s?r.set(this,n,!1):a={},o!==a)return e.stopImmediatePropagation(),e.preventDefault(),a&&a.value}
else o.length&&(r.set(this,n,{value:t.event.trigger(t.extend(o[0],t.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===r.get(e,n)&&t.event.add(e,n,H)};
t.event={global:{},add:function(e,n,i,o,a){var g,f,y,d,m,l,u,c,s,v,b,h=r.get(e);
if(B(e)){i.handler&&(i=(g=i).handler,a=g.selector),a&&t.find.matchesSelector(w,a),i.guid||(i.guid=t.guid++),(d=h.events)||(d=h.events=Object.create(null)),(f=h.handle)||(f=h.handle=function(n){return'undefined'!=typeof t&&t.event.triggered!==n.type?t.event.dispatch.apply(e,arguments):void 0}),m=(n=(n||'').match(p)||['']).length;
while(m--)s=b=(y=Me.exec(n[m])||[])[1],v=(y[2]||'').split('.').sort(),s&&(u=t.event.special[s]||{},s=(a?u.delegateType:u.bindType)||s,u=t.event.special[s]||{},l=t.extend({type:s,origType:b,data:o,handler:i,guid:i.guid,selector:a,needsContext:a&&t.expr.match.needsContext.test(a),namespace:v.join('.')},g),(c=d[s])||((c=d[s]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(e,o,v,f)||e.addEventListener&&e.addEventListener(s,f)),u.add&&(u.add.call(e,l),l.handler.guid||(l.handler.guid=i.guid)),a?c.splice(c.delegateCount++,0,l):c.push(l),t.event.global[s]=!0)}},remove:function(e,n,i,o,a){var h,y,c,d,g,u,l,f,s,v,b,m=r.hasData(e)&&r.get(e);
if(m&&(d=m.events)){g=(n=(n||'').match(p)||['']).length;
while(g--)if(s=b=(c=Me.exec(n[g])||[])[1],v=(c[2]||'').split('.').sort(),s){l=t.event.special[s]||{},f=d[s=(o?l.delegateType:l.bindType)||s]||[],c=c[2]&&new RegExp('(^|\\.)'+v.join('\\.(?:.*\\.|)')+'(\\.|$)'),y=h=f.length;
while(h--)u=f[h],!a&&b!==u.origType||i&&i.guid!==u.guid||c&&!c.test(u.namespace)||o&&o!==u.selector&&('**'!==o||!u.selector)||(f.splice(h,1),u.selector&&f.delegateCount--,l.remove&&l.remove.call(e,u));
y&&!f.length&&(l.teardown&&!1!==l.teardown.call(e,v,m.handle)||t.removeEvent(e,s,m.handle),delete d[s])}
else for(s in d)t.event.remove(e,s+n[g],i,o,!0);
t.isEmptyObject(d)&&r.remove(e,'handle events')}},dispatch:function(e){var i,l,c,a,o,f,u=new Array(arguments.length),n=t.event.fix(e),d=(r.get(this,'events')||Object.create(null))[n.type]||[],s=t.event.special[n.type]||{};
for(u[0]=n,i=1;i<arguments.length;i++)u[i]=arguments[i];
if(n.delegateTarget=this,!s.preDispatch||!1!==s.preDispatch.call(this,n)){f=t.event.handlers.call(this,n,d),i=0;
while((a=f[i++])&&!n.isPropagationStopped()){n.currentTarget=a.elem,l=0;
while((o=a.handlers[l++])&&!n.isImmediatePropagationStopped())n.rnamespace&&!1!==o.namespace&&!n.rnamespace.test(o.namespace)||(n.handleObj=o,n.data=o.data,void 0!==(c=((t.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,u))&&!1===(n.result=c)&&(n.preventDefault(),n.stopPropagation()))};
return s.postDispatch&&s.postDispatch.call(this,n),n.result}},handlers:function(e,n){var o,l,i,a,s,c=[],u=n.delegateCount,r=e.target;
if(u&&r.nodeType&&!('click'===e.type&&1<=e.button))for(;r!==this;r=r.parentNode||this)if(1===r.nodeType&&('click'!==e.type||!0!==r.disabled)){for(a=[],s={},o=0;o<u;o++)void 0===s[i=(l=n[o]).selector+' ']&&(s[i]=l.needsContext?-1<t(i,this).index(r):t.find(i,this,null,[r]).length),s[i]&&a.push(l);
a.length&&c.push({elem:r,handlers:a})};
return r=this,u<n.length&&c.push({elem:r,handlers:n.slice(u)}),c},addProp:function(e,n){Object.defineProperty(t.Event.prototype,e,{enumerable:!0,configurable:!0,get:i(n)?function(){if(this.originalEvent)return n(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[t.expando]?e:new t.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;
return P.test(t.type)&&t.click&&c(t,'input')&&ee(t,'click',H),!1},trigger:function(e){var t=this||e;
return P.test(t.type)&&t.click&&c(t,'input')&&ee(t,'click'),!0},_default:function(e){var t=e.target;
return P.test(t.type)&&t.click&&c(t,'input')&&r.get(t,'click')||c(t,'a')}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},t.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},t.Event=function(e,n){if(!(this instanceof t.Event))return new t.Event(e,n);
e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?H:L,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,n&&t.extend(this,n),this.timeStamp=e&&e.timeStamp||Date.now(),this[t.expando]=!0},t.Event.prototype={constructor:t.Event,isDefaultPrevented:L,isPropagationStopped:L,isImmediatePropagationStopped:L,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;
this.isDefaultPrevented=H,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;
this.isPropagationStopped=H,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;
this.isImmediatePropagationStopped=H,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},t.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,'char':!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},t.event.addProp),t.each({focus:'focusin',blur:'focusout'},function(e,n){t.event.special[e]={setup:function(){return ee(this,e,en),!1},trigger:function(){return ee(this,e),!0},_default:function(t){return r.get(t.target,e)},delegateType:n}}),t.each({mouseenter:'mouseover',mouseleave:'mouseout',pointerenter:'pointerover',pointerleave:'pointerout'},function(e,n){t.event.special[e]={delegateType:n,bindType:n,handle:function(e){var i,r=e.relatedTarget,o=e.handleObj;
return r&&(r===this||t.contains(this,r))||(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=n),i}}}),t.fn.extend({on:function(e,t,n,r){return pe(this,e,t,n,r)},one:function(e,t,n,r){return pe(this,e,t,n,r,1)},off:function(e,n,r){var i,o;
if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,t(e.delegateTarget).off(i.namespace?i.origType+'.'+i.namespace:i.origType,i.selector,i.handler),this;
if('object'==typeof e){for(o in e)this.off(o,n,e[o]);
return this};
return!1!==n&&'function'!=typeof n||(r=n,n=void 0),!1===r&&(r=L),this.each(function(){t.event.remove(this,e,r,n)})}});
var Mt=/<script|<style|<link/i,Rt=/checked\s*(?:[^=]|=\s*.checked.)/i,Pt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;
function it(e,n){return c(e,'table')&&c(11!==n.nodeType?n:n.firstChild,'tr')&&t(e).children('tbody')[0]||e};
function tn(e){return e.type=(null!==e.getAttribute('type'))+'/'+e.type,e};
function nn(e){return'true/'===(e.type||'').slice(0,5)?e.type=e.type.slice(5):e.removeAttribute('type'),e};
function ot(e,n){var i,u,o,l,c,a;
if(1===n.nodeType){if(r.hasData(e)&&(a=r.get(e).events))for(o in r.remove(n,'handle events'),a)for(i=0,u=a[o].length;i<u;i++)t.event.add(n,o,a[o][i]);
s.hasData(e)&&(l=s.access(e),c=t.extend({},l),s.set(n,c))}};
function O(e,n,o,s){n=Ye(n);
var d,v,f,p,l,h,c=0,g=e.length,b=g-1,m=n[0],y=i(m);
if(y||1<g&&'string'==typeof m&&!a.checkClone&&Rt.test(m))return e.each(function(t){var r=e.eq(t);
y&&(n[0]=m.call(this,t,r.html())),O(r,n,o,s)});
if(g&&(v=(d=rt(n,e[0].ownerDocument,!1,e,s)).firstChild,1===d.childNodes.length&&(d=v),v||s)){for(p=(f=t.map(u(d,'script'),tn)).length;c<g;c++)l=d,c!==b&&(l=t.clone(l,!0,!0),p&&t.merge(f,u(l,'script'))),o.call(e[c],l,c);
if(p)for(h=f[f.length-1].ownerDocument,t.map(f,nn),c=0;c<p;c++)l=f[c],Pe.test(l.type||'')&&!r.access(l,'globalEval')&&t.contains(h,l)&&(l.src&&'module'!==(l.type||'').toLowerCase()?t._evalUrl&&!l.noModule&&t._evalUrl(l.src,{nonce:l.nonce||l.getAttribute('nonce')},h):Qe(l.textContent.replace(Pt,''),l,h))};
return e};
function at(e,n,r){for(var i,a=n?t.filter(n,e):e,o=0;null!=(i=a[o]);o++)r||1!==i.nodeType||t.cleanData(u(i)),i.parentNode&&(r&&A(i)&&de(u(i,'script')),i.parentNode.removeChild(i));
return e};
t.extend({htmlPrefilter:function(e){return e},clone:function(e,n,r){var i,c,s,o,f,d,p,l=e.cloneNode(!0),h=A(e);
if(!(a.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||t.isXMLDoc(e)))for(o=u(l),i=0,c=(s=u(e)).length;i<c;i++)f=s[i],d=o[i],void 0,'input'===(p=d.nodeName.toLowerCase())&&P.test(f.type)?d.checked=f.checked:'input'!==p&&'textarea'!==p||(d.defaultValue=f.defaultValue);
if(n)if(r)for(s=s||u(e),o=o||u(l),i=0,c=s.length;i<c;i++)ot(s[i],o[i]);
else ot(e,l);
return 0<(o=u(l,'script')).length&&de(o,!h&&u(e,'script')),l},cleanData:function(e){for(var i,n,o,u=t.event.special,a=0;void 0!==(n=e[a]);a++)if(B(n)){if(i=n[r.expando]){if(i.events)for(o in i.events)u[o]?t.event.remove(n,o):t.removeEvent(n,o,i.handle);
n[r.expando]=void 0};
n[s.expando]&&(n[s.expando]=void 0)}}}),t.fn.extend({detach:function(e){return at(this,e,!0)},remove:function(e){return at(this,e)},text:function(e){return m(this,function(e){return void 0===e?t.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return O(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||it(this,e).appendChild(e)})},prepend:function(){return O(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=it(this,e);
t.insertBefore(e,t.firstChild)}})},before:function(){return O(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return O(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,n=0;null!=(e=this[n]);n++)1===e.nodeType&&(t.cleanData(u(e,!1)),e.textContent='');
return this},clone:function(e,n){return e=null!=e&&e,n=null==n?e:n,this.map(function(){return t.clone(this,e,n)})},html:function(e){return m(this,function(e){var r=this[0]||{},i=0,o=this.length;
if(void 0===e&&1===r.nodeType)return r.innerHTML;
if('string'==typeof e&&!Mt.test(e)&&!l[(Re.exec(e)||['',''])[1].toLowerCase()]){e=t.htmlPrefilter(e);
try{for(;i<o;i++)1===(r=this[i]||{}).nodeType&&(t.cleanData(u(r,!1)),r.innerHTML=e);
r=0}catch(n){}};
r&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];
return O(this,arguments,function(n){var r=this.parentNode;
t.inArray(this,e)<0&&(t.cleanData(u(this)),r&&r.replaceChild(n,this))},e)}}),t.each({appendTo:'append',prependTo:'prepend',insertBefore:'before',insertAfter:'after',replaceAll:'replaceWith'},function(e,n){t.fn[e]=function(e){for(var i,o=[],a=t(e),s=a.length-1,r=0;r<=s;r++)i=r===s?this:this.clone(!0),t(a[r])[n](i),le.apply(o,i.get());
return this.pushStack(o)}});
var ae=new RegExp('^('+Be+')(?!px)[a-z%]+$','i'),se=/^--/,G=function(t){var n=t.ownerDocument.defaultView;
return n&&n.opener||(n=e),n.getComputedStyle(t)},Oe=function(e,t,n){var i,r,o={};
for(r in t)o[r]=e.style[r],e.style[r]=t[r];
for(r in i=n.call(e),t)e.style[r]=o[r];
return i},Ot=new RegExp(g.join('|'),'i'),ze='[\\x20\\t\\r\\n\\f]',zt=new RegExp('^'+ze+'+|((?:^|[^\\\\])(?:\\\\.)*)'+ze+'+$','g');
function W(e,n,r){var s,u,l,i,c=se.test(n),o=e.style;
return(r=r||G(e))&&(i=r.getPropertyValue(n)||r[n],c&&i&&(i=i.replace(zt,'$1')||void 0),''!==i||A(e)||(i=t.style(e,n)),!a.pixelBoxStyles()&&ae.test(i)&&Ot.test(n)&&(s=o.width,u=o.minWidth,l=o.maxWidth,o.minWidth=o.maxWidth=o.width=i,i=r.width,o.width=s,o.minWidth=u,o.maxWidth=l)),void 0!==i?i+'':i};
function st(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);
delete this.get}}};
!function(){function r(){if(n){u.style.cssText='position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0',n.style.cssText='position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%',w.appendChild(u).appendChild(n);
var t=e.getComputedStyle(n);
l='1%'!==t.top,p=12===i(t.marginLeft),n.style.right='60%',d=36===i(t.right),c=36===i(t.width),n.style.position='absolute',f=12===i(n.offsetWidth/3),w.removeChild(u),n=null}};
function i(e){return Math.round(parseFloat(e))};
var l,c,f,d,s,p,u=o.createElement('div'),n=o.createElement('div');
n.style&&(n.style.backgroundClip='content-box',n.cloneNode(!0).style.backgroundClip='',a.clearCloneStyle='content-box'===n.style.backgroundClip,t.extend(a,{boxSizingReliable:function(){return r(),c},pixelBoxStyles:function(){return r(),d},pixelPosition:function(){return r(),l},reliableMarginLeft:function(){return r(),p},scrollboxSize:function(){return r(),f},reliableTrDimensions:function(){var n,t,r,i;
return null==s&&(n=o.createElement('table'),t=o.createElement('tr'),r=o.createElement('div'),n.style.cssText='position:absolute;left:-11111px;border-collapse:separate',t.style.cssText='border:1px solid',t.style.height='1px',r.style.height='9px',r.style.display='block',w.appendChild(n).appendChild(t).appendChild(r),i=e.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,w.removeChild(n)),s}}))}();
var qe=['Webkit','Moz','ms'],He=o.createElement('div').style,Le={};
function he(e){var n=t.cssProps[e]||Le[e];
return n||(e in He?e:Le[e]=function(e){var n=e[0].toUpperCase()+e.slice(1),t=qe.length;
while(t--)if((e=qe[t]+n)in He)return e}(e)||e)};
var Ht=/^(none|table(?!-c[ea]).+)/,Lt={position:'absolute',visibility:'hidden',display:'block'},De={letterSpacing:'0',fontWeight:'400'};
function ut(e,t,n){var r=I.exec(t);
return r?Math.max(0,r[2]-(n||0))+(r[3]||'px'):t};
function ge(e,n,r,i,o,u){var a='width'===n?1:0,l=0,s=0;
if(r===(i?'border':'content'))return 0;
for(;a<4;a+=2)'margin'===r&&(s+=t.css(e,r+g[a],!0,o)),i?('content'===r&&(s-=t.css(e,'padding'+g[a],!0,o)),'margin'!==r&&(s-=t.css(e,'border'+g[a]+'Width',!0,o))):(s+=t.css(e,'padding'+g[a],!0,o),'padding'!==r?s+=t.css(e,'border'+g[a]+'Width',!0,o):l+=t.css(e,'border'+g[a]+'Width',!0,o));
return!i&&0<=u&&(s+=Math.max(0,Math.ceil(e['offset'+n[0].toUpperCase()+n.slice(1)]-u-s-l-.5))||0),s};
function lt(e,n,r){var o=G(e),s=(!a.boxSizingReliable()||r)&&'border-box'===t.css(e,'boxSizing',!1,o),u=s,i=W(e,n,o),l='offset'+n[0].toUpperCase()+n.slice(1);
if(ae.test(i)){if(!r)return i;
i='auto'};
return(!a.boxSizingReliable()&&s||!a.reliableTrDimensions()&&c(e,'tr')||'auto'===i||!parseFloat(i)&&'inline'===t.css(e,'display',!1,o))&&e.getClientRects().length&&(s='border-box'===t.css(e,'boxSizing',!1,o),(u=l in e)&&(i=e[l])),(i=parseFloat(i)||0)+ge(e,n,r||(s?'border':'content'),u,o,i)+'px'};
function f(e,t,n,r,i){return new f.prototype.init(e,t,n,r,i)};
t.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=W(e,'opacity');
return''===n?'1':n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,n,r,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,l,s,c=h(n),f=se.test(n),u=e.style;
if(f||(n=he(c)),s=t.cssHooks[n]||t.cssHooks[c],void 0===r)return s&&'get'in s&&void 0!==(o=s.get(e,!1,i))?o:u[n];
'string'===(l=typeof r)&&(o=I.exec(r))&&o[1]&&(r=nt(e,n,o),l='number'),null!=r&&r==r&&('number'!==l||f||(r+=o&&o[3]||(t.cssNumber[c]?'':'px')),a.clearCloneStyle||''!==r||0!==n.indexOf('background')||(u[n]='inherit'),s&&'set'in s&&void 0===(r=s.set(e,r,i))||(f?u.setProperty(n,r):u[n]=r))}},css:function(e,n,r,i){var o,a,s,u=h(n);
return se.test(n)||(n=he(u)),(s=t.cssHooks[n]||t.cssHooks[u])&&'get'in s&&(o=s.get(e,!0,r)),void 0===o&&(o=W(e,n,i)),'normal'===o&&n in De&&(o=De[n]),''===r||r?(a=parseFloat(o),!0===r||isFinite(a)?a||0:o):o}}),t.each(['height','width'],function(e,n){t.cssHooks[n]={get:function(e,r,i){if(r)return!Ht.test(t.css(e,'display'))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,n,i):Oe(e,Lt,function(){return lt(e,n,i)})},set:function(e,r,i){var u,o=G(e),l=!a.scrollboxSize()&&'absolute'===o.position,c=(l||i)&&'border-box'===t.css(e,'boxSizing',!1,o),s=i?ge(e,n,i,c,o):0;
return c&&l&&(s-=Math.ceil(e['offset'+n[0].toUpperCase()+n.slice(1)]-parseFloat(o[n])-ge(e,n,'border',!1,o)-.5)),s&&(u=I.exec(r))&&'px'!==(u[3]||'px')&&(e.style[n]=r,r=t.css(e,n)),ut(0,r,s)}}}),t.cssHooks.marginLeft=st(a.reliableMarginLeft,function(e,t){if(t)return(parseFloat(W(e,'marginLeft'))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+'px'}),t.each({margin:'',padding:'',border:'Width'},function(e,n){t.cssHooks[e+n]={expand:function(t){for(var r=0,o={},i='string'==typeof t?t.split(' '):[t];r<4;r++)o[e+g[r]+n]=i[r]||i[r-2]||i[0];
return o}},'margin'!==e&&(t.cssHooks[e+n].set=ut)}),t.fn.extend({css:function(e,n){return m(this,function(e,n,r){var o,a,s={},i=0;
if(Array.isArray(n)){for(o=G(e),a=n.length;i<a;i++)s[n[i]]=t.css(e,n[i],!1,o);
return s};
return void 0!==r?t.style(e,n,r):t.css(e,n)},e,n,1<arguments.length)}}),((t.Tween=f).prototype={constructor:f,init:function(e,n,r,i,o,a){this.elem=e,this.prop=r,this.easing=o||t.easing._default,this.options=n,this.start=this.now=this.cur(),this.end=i,this.unit=a||(t.cssNumber[r]?'':'px')},cur:function(){var e=f.propHooks[this.prop];
return e&&e.get?e.get(this):f.propHooks._default.get(this)},run:function(e){var n,r=f.propHooks[this.prop];
return this.options.duration?this.pos=n=t.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=n=e,this.now=(this.end-this.start)*n+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),r&&r.set?r.set(this):f.propHooks._default.set(this),this}}).init.prototype=f.prototype,(f.propHooks={_default:{get:function(e){var n;
return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(n=t.css(e.elem,e.prop,''))&&'auto'!==n?n:0},set:function(e){t.fx.step[e.prop]?t.fx.step[e.prop](e):1!==e.elem.nodeType||!t.cssHooks[e.prop]&&null==e.elem.style[he(e.prop)]?e.elem[e.prop]=e.now:t.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=f.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},t.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:'swing'},t.fx=f.prototype.init,t.fx.step={};
var C,U,E,je,Dt=/^(?:toggle|show|hide)$/,qt=/queueHooks$/;
function me(){U&&(!1===o.hidden&&e.requestAnimationFrame?e.requestAnimationFrame(me):e.setTimeout(me,t.fx.interval),t.fx.tick())};
function ct(){return e.setTimeout(function(){C=void 0}),C=Date.now()};
function te(e,t){var i,r=0,n={height:e};
for(t=t?1:0;r<4;r+=2-t)n['margin'+(i=g[r])]=n['padding'+i]=e;
return t&&(n.opacity=n.width=e),n};
function ft(e,t,n){for(var i,o=(d.tweeners[t]||[]).concat(d.tweeners['*']),r=0,a=o.length;r<a;r++)if(i=o[r].call(n,t,e))return i};
function d(e,n,r){var s,u,l=0,p=d.prefilters.length,a=t.Deferred().always(function(){delete f.elem}),f=function(){if(u)return!1;
for(var s=C||ct(),t=Math.max(0,o.startTime+o.duration-s),n=1-(t/o.duration||0),r=0,i=o.tweens.length;r<i;r++)o.tweens[r].run(n);
return a.notifyWith(e,[o,n,t]),n<1&&i?t:(i||a.notifyWith(e,[o,1,0]),a.resolveWith(e,[o]),!1)},o=a.promise({elem:e,props:t.extend({},n),opts:t.extend(!0,{specialEasing:{},easing:t.easing._default},r),originalProperties:n,originalOptions:r,startTime:C||ct(),duration:r.duration,tweens:[],createTween:function(n,r){var i=t.Tween(e,o.opts,n,r,o.opts.specialEasing[n]||o.opts.easing);
return o.tweens.push(i),i},stop:function(t){var n=0,r=t?o.tweens.length:0;
if(u)return this;
for(u=!0;n<r;n++)o.tweens[n].run(1);
return t?(a.notifyWith(e,[o,1,0]),a.resolveWith(e,[o,t])):a.rejectWith(e,[o,t]),this}}),c=o.props;
for(!function(e,n){var r,o,a,i,s;for(r in e)if(a=n[o=h(r)],i=e[r],Array.isArray(i)&&(a=i[1],i=e[r]=i[0]),r!==o&&(e[o]=i,delete e[r]),(s=t.cssHooks[o])&&'expand'in s)for(r in i=s.expand(i),delete e[o],i)r in e||(e[r]=i[r],n[r]=a);else n[o]=a}(c,o.opts.specialEasing);l<p;l++)if(s=d.prefilters[l].call(o,e,c,o.opts))return i(s.stop)&&(t._queueHooks(o.elem,o.opts.queue).stop=s.stop.bind(s)),s;
return t.map(c,ft,o),i(o.opts.start)&&o.opts.start.call(e,o),o.progress(o.opts.progress).done(o.opts.done,o.opts.complete).fail(o.opts.fail).always(o.opts.always),t.fx.timer(t.extend(f,{elem:e,anim:o,queue:o.opts.queue})),o};
t.Animation=t.extend(d,{tweeners:{'*':[function(e,t){var n=this.createTween(e,t);
return nt(n.elem,e,I.exec(t),n),n}]},tweener:function(e,t){i(e)?(t=e,e=['*']):e=e.match(p);
for(var n,r=0,o=e.length;r<o;r++)n=e[r],d.tweeners[n]=d.tweeners[n]||[],d.tweeners[n].unshift(t)},prefilters:[function(e,n,i){var o,h,m,c,v,l,s,f,y='width'in n||'height'in n,p=this,g={},u=e.style,d=e.nodeType&&X(e),a=r.get(e,'fxshow');
for(o in i.queue||(null==(c=t._queueHooks(e,'fx')).unqueued&&(c.unqueued=0,v=c.empty.fire,c.empty.fire=function(){c.unqueued||v()}),c.unqueued++,p.always(function(){p.always(function(){c.unqueued--,t.queue(e,'fx').length||c.empty.fire()})})),n)if(h=n[o],Dt.test(h)){if(delete n[o],m=m||'toggle'===h,h===(d?'hide':'show')){if('show'!==h||!a||void 0===a[o])continue;
d=!0};
g[o]=a&&a[o]||t.style(e,o)};
if((l=!t.isEmptyObject(n))||!t.isEmptyObject(g))for(o in y&&1===e.nodeType&&(i.overflow=[u.overflow,u.overflowX,u.overflowY],null==(s=a&&a.display)&&(s=r.get(e,'display')),'none'===(f=t.css(e,'display'))&&(s?f=s:(q([e],!0),s=e.style.display||s,f=t.css(e,'display'),q([e]))),('inline'===f||'inline-block'===f&&null!=s)&&'none'===t.css(e,'float')&&(l||(p.done(function(){u.display=s}),null==s&&(f=u.display,s='none'===f?'':f)),u.display='inline-block')),i.overflow&&(u.overflow='hidden',p.always(function(){u.overflow=i.overflow[0],u.overflowX=i.overflow[1],u.overflowY=i.overflow[2]})),l=!1,g)l||(a?'hidden'in a&&(d=a.hidden):a=r.access(e,'fxshow',{display:s}),m&&(a.hidden=!d),d&&q([e],!0),p.done(function(){for(o in d||q([e]),r.remove(e,'fxshow'),g)t.style(e,o,g[o])})),l=ft(d?a[o]:0,o,p),o in a||(a[o]=l.start,d&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?d.prefilters.unshift(e):d.prefilters.push(e)}}),t.speed=function(e,n,r){var o=e&&'object'==typeof e?t.extend({},e):{complete:r||!r&&n||i(e)&&e,duration:e,easing:r&&n||n&&!i(n)&&n};
return t.fx.off?o.duration=0:'number'!=typeof o.duration&&(o.duration in t.fx.speeds?o.duration=t.fx.speeds[o.duration]:o.duration=t.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue='fx'),o.old=o.complete,o.complete=function(){i(o.old)&&o.old.call(this),o.queue&&t.dequeue(this,o.queue)},o},t.fn.extend({fadeTo:function(e,t,n,r){return this.filter(X).css('opacity',0).show().end().animate({opacity:t},e,n,r)},animate:function(e,n,i,o){var u=t.isEmptyObject(e),s=t.speed(n,i,o),a=function(){var n=d(this,t.extend({},e),s);(u||r.get(this,'finish'))&&n.stop(!0)};
return a.finish=a,u||!1===s.queue?this.each(a):this.queue(s.queue,a)},stop:function(e,n,i){var o=function(e){var t=e.stop;
delete e.stop,t(i)};
return'string'!=typeof e&&(i=n,n=e,e=void 0),n&&this.queue(e||'fx',[]),this.each(function(){var u=!0,n=null!=e&&e+'queueHooks',s=t.timers,a=r.get(this);
if(n)a[n]&&a[n].stop&&o(a[n]);
else for(n in a)a[n]&&a[n].stop&&qt.test(n)&&o(a[n]);
for(n=s.length;n--;)s[n].elem!==this||null!=e&&s[n].queue!==e||(s[n].anim.stop(i),u=!1,s.splice(n,1));
!u&&i||t.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||'fx'),this.each(function(){var n,a=r.get(this),i=a[e+'queue'],s=a[e+'queueHooks'],o=t.timers,u=i?i.length:0;
for(a.finish=!0,t.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),n=o.length;n--;)o[n].elem===this&&o[n].queue===e&&(o[n].anim.stop(!0),o.splice(n,1));
for(n=0;n<u;n++)i[n]&&i[n].finish&&i[n].finish.call(this);
delete a.finish})}}),t.each(['toggle','show','hide'],function(e,n){var r=t.fn[n];
t.fn[n]=function(e,t,i){return null==e||'boolean'==typeof e?r.apply(this,arguments):this.animate(te(n,!0),e,t,i)}}),t.each({slideDown:te('show'),slideUp:te('hide'),slideToggle:te('toggle'),fadeIn:{opacity:'show'},fadeOut:{opacity:'hide'},fadeToggle:{opacity:'toggle'}},function(e,n){t.fn[e]=function(e,t,r){return this.animate(n,e,t,r)}}),t.timers=[],t.fx.tick=function(){var r,e=0,n=t.timers;
for(C=Date.now();e<n.length;e++)(r=n[e])()||n[e]!==r||n.splice(e--,1);
n.length||t.fx.stop(),C=void 0},t.fx.timer=function(e){t.timers.push(e),t.fx.start()},t.fx.interval=13,t.fx.start=function(){U||(U=!0,me())},t.fx.stop=function(){U=null},t.fx.speeds={slow:600,fast:200,_default:400},t.fn.delay=function(n,r){return n=t.fx&&t.fx.speeds[n]||n,r=r||'fx',this.queue(r,function(t,r){var i=e.setTimeout(t,n);
r.stop=function(){e.clearTimeout(i)}})},E=o.createElement('input'),je=o.createElement('select').appendChild(o.createElement('option')),E.type='checkbox',a.checkOn=''!==E.value,a.optSelected=je.selected,(E=o.createElement('input')).value='t',E.type='radio',a.radioValue='t'===E.value;
var Ne,R=t.expr.attrHandle;
t.fn.extend({attr:function(e,n){return m(this,t.attr,e,n,1<arguments.length)},removeAttr:function(e){return this.each(function(){t.removeAttr(this,e)})}}),t.extend({attr:function(e,n,r){var o,i,a=e.nodeType;
if(3!==a&&8!==a&&2!==a)return'undefined'==typeof e.getAttribute?t.prop(e,n,r):(1===a&&t.isXMLDoc(e)||(i=t.attrHooks[n.toLowerCase()]||(t.expr.match.bool.test(n)?Ne:void 0)),void 0!==r?null===r?void t.removeAttr(e,n):i&&'set'in i&&void 0!==(o=i.set(e,r,n))?o:(e.setAttribute(n,r+''),r):i&&'get'in i&&null!==(o=i.get(e,n))?o:null==(o=t.find.attr(e,n))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!a.radioValue&&'radio'===t&&c(e,'input')){var n=e.value;
return e.setAttribute('type',t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(p);
if(r&&1===e.nodeType)while(n=r[i++])e.removeAttribute(n)}}),Ne={set:function(e,n,r){return!1===n?t.removeAttr(e,r):e.setAttribute(r,r),r}},t.each(t.expr.match.bool.source.match(/\w+/g),function(e,n){var r=R[n]||t.find.attr;
R[n]=function(e,t,n){var o,a,i=t.toLowerCase();
return n||(a=R[i],R[i]=o,o=null!=r(e,t,n)?i:null,R[i]=a),o}});
var Nt=/^(?:input|select|textarea|button)$/i,jt=/^(?:a|area)$/i;
function k(e){return(e.match(p)||[]).join(' ')};
function T(e){return e.getAttribute&&e.getAttribute('class')||''};
function ve(e){return Array.isArray(e)?e:'string'==typeof e&&e.match(p)||[]};
t.fn.extend({prop:function(e,n){return m(this,t.prop,e,n,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[t.propFix[e]||e]})}}),t.extend({prop:function(e,n,r){var o,i,a=e.nodeType;
if(3!==a&&8!==a&&2!==a)return 1===a&&t.isXMLDoc(e)||(n=t.propFix[n]||n,i=t.propHooks[n]),void 0!==r?i&&'set'in i&&void 0!==(o=i.set(e,r,n))?o:e[n]=r:i&&'get'in i&&null!==(o=i.get(e,n))?o:e[n]},propHooks:{tabIndex:{get:function(e){var n=t.find.attr(e,'tabindex');
return n?parseInt(n,10):Nt.test(e.nodeName)||jt.test(e.nodeName)&&e.href?0:-1}}},propFix:{'for':'htmlFor','class':'className'}}),a.optSelected||(t.propHooks.selected={get:function(e){var t=e.parentNode;
return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;
t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),t.each(['tabIndex','readOnly','maxLength','cellSpacing','cellPadding','rowSpan','colSpan','useMap','frameBorder','contentEditable'],function(){t.propFix[this.toLowerCase()]=this}),t.fn.extend({addClass:function(e){var o,n,a,s,r,u;
return i(e)?this.each(function(n){t(this).addClass(e.call(this,n,T(this)))}):(o=ve(e)).length?this.each(function(){if(a=T(this),n=1===this.nodeType&&' '+k(a)+' '){for(r=0;r<o.length;r++)s=o[r],n.indexOf(' '+s+' ')<0&&(n+=s+' ');
u=k(n),a!==u&&this.setAttribute('class',u)}}):this},removeClass:function(e){var o,n,a,s,r,u;
return i(e)?this.each(function(n){t(this).removeClass(e.call(this,n,T(this)))}):arguments.length?(o=ve(e)).length?this.each(function(){if(a=T(this),n=1===this.nodeType&&' '+k(a)+' '){for(r=0;r<o.length;r++){s=o[r];
while(-1<n.indexOf(' '+s+' '))n=n.replace(' '+s+' ',' ')};
u=k(n),a!==u&&this.setAttribute('class',u)}}):this:this.attr('class','')},toggleClass:function(e,n){var u,o,a,s,l=typeof e,c='string'===l||Array.isArray(e);
return i(e)?this.each(function(r){t(this).toggleClass(e.call(this,r,T(this),n),n)}):'boolean'==typeof n&&c?n?this.addClass(e):this.removeClass(e):(u=ve(e),this.each(function(){if(c)for(s=t(this),a=0;a<u.length;a++)o=u[a],s.hasClass(o)?s.removeClass(o):s.addClass(o);
else void 0!==e&&'boolean'!==l||((o=T(this))&&r.set(this,'__className__',o),this.setAttribute&&this.setAttribute('class',o||!1===e?'':r.get(this,'__className__')||''))}))},hasClass:function(e){var n,t,r=0;
n=' '+e+' ';
while(t=this[r++])if(1===t.nodeType&&-1<(' '+k(T(t))+' ').indexOf(n))return!0;
return!1}});
var St=/\r/g;
t.fn.extend({val:function(e){var n,r,a,o=this[0];
return arguments.length?(a=i(e),this.each(function(r){var i;
1===this.nodeType&&(null==(i=a?e.call(this,r,t(this).val()):e)?i='':'number'==typeof i?i+='':Array.isArray(i)&&(i=t.map(i,function(e){return null==e?'':e+''})),(n=t.valHooks[this.type]||t.valHooks[this.nodeName.toLowerCase()])&&'set'in n&&void 0!==n.set(this,i,'value')||(this.value=i))})):o?(n=t.valHooks[o.type]||t.valHooks[o.nodeName.toLowerCase()])&&'get'in n&&void 0!==(r=n.get(o,'value'))?r:'string'==typeof(r=o.value)?r.replace(St,''):null==r?'':r:void 0}}),t.extend({valHooks:{option:{get:function(e){var n=t.find.attr(e,'value');
return null!=n?n:k(t.text(e))}},select:{get:function(e){var a,n,r,s=e.options,i=e.selectedIndex,o='select-one'===e.type,u=o?null:[],l=o?i+1:s.length;
for(r=i<0?l:o?i:0;r<l;r++)if(((n=s[r]).selected||r===i)&&!n.disabled&&(!n.parentNode.disabled||!c(n.parentNode,'optgroup'))){if(a=t(n).val(),o)return a;
u.push(a)};
return u},set:function(e,n){var r,i,o=e.options,a=t.makeArray(n),s=o.length;
while(s--)((i=o[s]).selected=-1<t.inArray(t.valHooks.option.get(i),a))&&(r=!0);
return r||(e.selectedIndex=-1),a}}}}),t.each(['radio','checkbox'],function(){t.valHooks[this]={set:function(e,n){if(Array.isArray(n))return e.checked=-1<t.inArray(t(e).val(),n)}},a.checkOn||(t.valHooks[this].get=function(e){return null===e.getAttribute('value')?'on':e.value})}),a.focusin='onfocusin'in e;
var Ae=/^(?:focusinfocus|focusoutblur)$/,Se=function(e){e.stopPropagation()};
t.extend(t.event,{trigger:function(n,a,s,u){var y,c,f,b,p,h,d,g,m=[s||o],l=J.call(n,'type')?n.type:n,v=J.call(n,'namespace')?n.namespace.split('.'):[];
if(c=g=f=s=s||o,3!==s.nodeType&&8!==s.nodeType&&!Ae.test(l+t.event.triggered)&&(-1<l.indexOf('.')&&(l=(v=l.split('.')).shift(),v.sort()),p=l.indexOf(':')<0&&'on'+l,(n=n[t.expando]?n:new t.Event(l,'object'==typeof n&&n)).isTrigger=u?2:3,n.namespace=v.join('.'),n.rnamespace=n.namespace?new RegExp('(^|\\.)'+v.join('\\.(?:.*\\.|)')+'(\\.|$)'):null,n.result=void 0,n.target||(n.target=s),a=null==a?[n]:t.makeArray(a,[n]),d=t.event.special[l]||{},u||!d.trigger||!1!==d.trigger.apply(s,a))){if(!u&&!d.noBubble&&!N(s)){for(b=d.delegateType||l,Ae.test(b+l)||(c=c.parentNode);c;c=c.parentNode)m.push(c),f=c;
f===(s.ownerDocument||o)&&m.push(f.defaultView||f.parentWindow||e)};
y=0;
while((c=m[y++])&&!n.isPropagationStopped())g=c,n.type=1<y?b:d.bindType||l,(h=(r.get(c,'events')||Object.create(null))[n.type]&&r.get(c,'handle'))&&h.apply(c,a),(h=p&&c[p])&&h.apply&&B(c)&&(n.result=h.apply(c,a),!1===n.result&&n.preventDefault());
return n.type=l,u||n.isDefaultPrevented()||d._default&&!1!==d._default.apply(m.pop(),a)||!B(s)||p&&i(s[l])&&!N(s)&&((f=s[p])&&(s[p]=null),t.event.triggered=l,n.isPropagationStopped()&&g.addEventListener(l,Se),s[l](),n.isPropagationStopped()&&g.removeEventListener(l,Se),t.event.triggered=void 0,f&&(s[p]=f)),n.result}},simulate:function(e,n,r){var i=t.extend(new t.Event,r,{type:e,isSimulated:!0});
t.event.trigger(i,null,n)}}),t.fn.extend({trigger:function(e,n){return this.each(function(){t.event.trigger(e,n,this)})},triggerHandler:function(e,n){var r=this[0];
if(r)return t.event.trigger(e,n,r,!0)}}),a.focusin||t.each({focus:'focusin',blur:'focusout'},function(e,n){var i=function(e){t.event.simulate(n,e.target,t.event.fix(e))};
t.event.special[n]={setup:function(){var t=this.ownerDocument||this.document||this,o=r.access(t,n);
o||t.addEventListener(e,i,!0),r.access(t,n,(o||0)+1)},teardown:function(){var t=this.ownerDocument||this.document||this,o=r.access(t,n)-1;
o?r.access(t,n,o):(t.removeEventListener(e,i,!0),r.remove(t,n))}}});
var M=e.location,Ee={guid:Date.now()},oe=/\?/;
t.parseXML=function(n){var i,o;
if(!n||'string'!=typeof n)return null;
try{i=(new e.DOMParser).parseFromString(n,'text/xml')}catch(r){};
return o=i&&i.getElementsByTagName('parsererror')[0],i&&!o||t.error('Invalid XML: '+(o?t.map(o.childNodes,function(e){return e.textContent}).join('\n'):n)),i};
var Ct=/\[\]$/,Ce=/\r?\n/g,Et=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;
function ye(e,n,r,i){var o;
if(Array.isArray(n))t.each(n,function(t,n){r||Ct.test(e)?i(e,n):ye(e+'['+('object'==typeof n&&null!=n?t:'')+']',n,r,i)});
else if(r||'object'!==j(n))i(e,n);
else for(o in n)ye(e+'['+o+']',n[o],r,i)};
t.param=function(e,n){var r,o=[],a=function(e,t){var n=i(t)?t():t;
o[o.length]=encodeURIComponent(e)+'='+encodeURIComponent(null==n?'':n)};
if(null==e)return'';
if(Array.isArray(e)||e.jquery&&!t.isPlainObject(e))t.each(e,function(){a(this.name,this.value)});
else for(r in e)ye(r,e[r],n,a);
return o.join('&')},t.fn.extend({serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=t.prop(this,'elements');
return e?t.makeArray(e):this}).filter(function(){var e=this.type;
return this.name&&!t(this).is(':disabled')&&At.test(this.nodeName)&&!Et.test(e)&&(this.checked||!P.test(e))}).map(function(e,n){var r=t(this).val();
return null==r?null:Array.isArray(r)?t.map(r,function(e){return{name:n.name,value:e.replace(Ce,'\r\n')}}):{name:n.name,value:r.replace(Ce,'\r\n')}}).get()}});
var yt=/%20/g,bt=/#.*$/,wt=/([?&])_=[^&]*/,xt=/^(.*?):[ \t]*([^\r\n]*)$/gm,kt=/^(?:GET|HEAD)$/,Tt=/^\/\//,ke={},re={},Te='*/'.concat('*'),ie=o.createElement('a');
function dt(e){return function(t,n){'string'!=typeof t&&(n=t,t='*');
var r,o=0,a=t.toLowerCase().match(p)||[];
if(i(n))while(r=a[o++])'+'===r[0]?(r=r.slice(1)||'*',(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}};
function pt(e,n,r,i){var o={},s=e===re;
function a(u){var l;
return o[u]=!0,t.each(e[u]||[],function(e,t){var u=t(n,r,i);
return'string'!=typeof u||s||o[u]?s?!(l=u):void 0:(n.dataTypes.unshift(u),a(u),!1)}),l};
return a(n.dataTypes[0])||!o['*']&&a('*')};
function be(e,n){var r,i,o=t.ajaxSettings.flatOptions||{};
for(r in n)void 0!==n[r]&&((o[r]?e:i||(i={}))[r]=n[r]);
return i&&t.extend(!0,e,i),e};
ie.href=M.href,t.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:M.href,type:'GET',isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(M.protocol),global:!0,processData:!0,async:!0,contentType:'application/x-www-form-urlencoded; charset=UTF-8',accepts:{'*':Te,text:'text/plain',html:'text/html',xml:'application/xml, text/xml',json:'application/json, text/javascript'},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:'responseXML',text:'responseText',json:'responseJSON'},converters:{'* text':String,'text html':!0,'text json':JSON.parse,'text xml':t.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,n){return n?be(be(e,t.ajaxSettings),n):be(t.ajaxSettings,e)},ajaxPrefilter:dt(ke),ajaxTransport:dt(re),ajax:function(n,r){'object'==typeof n&&(r=n,n=void 0),r=r||{};
var d,u,b,h,w,f,l,g,x,m,i=t.ajaxSetup({},r),c=i.context||i,k=i.context&&(c.nodeType||c.jquery)?t(c):t.event,T=t.Deferred(),C=t.Callbacks('once memory'),v=i.statusCode||{},E={},A={},S='canceled',a={readyState:0,getResponseHeader:function(e){var t;
if(l){if(!h){h={};
while(t=xt.exec(b))h[t[1].toLowerCase()+' ']=(h[t[1].toLowerCase()+' ']||[]).concat(t[2])};
t=h[e.toLowerCase()+' ']};
return null==t?null:t.join(', ')},getAllResponseHeaders:function(){return l?b:null},setRequestHeader:function(e,t){return null==l&&(e=A[e.toLowerCase()]=A[e.toLowerCase()]||e,E[e]=t),this},overrideMimeType:function(e){return null==l&&(i.mimeType=e),this},statusCode:function(e){var t;
if(e)if(l)a.always(e[a.status]);
else for(t in e)v[t]=[v[t],e[t]];
return this},abort:function(e){var t=e||S;
return d&&d.abort(t),y(0,t),this}};
if(T.promise(a),i.url=((n||i.url||M.href)+'').replace(Tt,M.protocol+'//'),i.type=r.method||r.type||i.method||i.type,i.dataTypes=(i.dataType||'*').toLowerCase().match(p)||[''],null==i.crossDomain){f=o.createElement('a');
try{f.href=i.url,f.href=f.href,i.crossDomain=ie.protocol+'//'+ie.host!=f.protocol+'//'+f.host}catch(s){i.crossDomain=!0}};
if(i.data&&i.processData&&'string'!=typeof i.data&&(i.data=t.param(i.data,i.traditional)),pt(ke,i,r,a),l)return a;
for(x in(g=t.event&&i.global)&&0==t.active++&&t.event.trigger('ajaxStart'),i.type=i.type.toUpperCase(),i.hasContent=!kt.test(i.type),u=i.url.replace(bt,''),i.hasContent?i.data&&i.processData&&0===(i.contentType||'').indexOf('application/x-www-form-urlencoded')&&(i.data=i.data.replace(yt,'+')):(m=i.url.slice(u.length),i.data&&(i.processData||'string'==typeof i.data)&&(u+=(oe.test(u)?'&':'?')+i.data,delete i.data),!1===i.cache&&(u=u.replace(wt,'$1'),m=(oe.test(u)?'&':'?')+'_='+Ee.guid+++m),i.url=u+m),i.ifModified&&(t.lastModified[u]&&a.setRequestHeader('If-Modified-Since',t.lastModified[u]),t.etag[u]&&a.setRequestHeader('If-None-Match',t.etag[u])),(i.data&&i.hasContent&&!1!==i.contentType||r.contentType)&&a.setRequestHeader('Content-Type',i.contentType),a.setRequestHeader('Accept',i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+('*'!==i.dataTypes[0]?', '+Te+'; q=0.01':''):i.accepts['*']),i.headers)a.setRequestHeader(x,i.headers[x]);
if(i.beforeSend&&(!1===i.beforeSend.call(c,a,i)||l))return a.abort();
if(S='abort',C.add(i.complete),a.done(i.success),a.fail(i.error),d=pt(re,i,r,a)){if(a.readyState=1,g&&k.trigger('ajaxSend',[a,i]),l)return a;
i.async&&0<i.timeout&&(w=e.setTimeout(function(){a.abort('timeout')},i.timeout));
try{l=!1,d.send(E,y)}catch(s){if(l)throw s;
y(-1,s)}}
else y(-1,'No Transport');
function y(n,r,o,s){var p,x,m,h,y,f=r;
l||(l=!0,w&&e.clearTimeout(w),d=void 0,b=s||'',a.readyState=0<n?4:0,p=200<=n&&n<300||304===n,o&&(h=function(e,t,n){var a,i,o,s,u=e.contents,r=e.dataTypes;
while('*'===r[0])r.shift(),void 0===a&&(a=e.mimeType||t.getResponseHeader('Content-Type'));
if(a)for(i in u)if(u[i]&&u[i].test(a)){r.unshift(i);
break};
if(r[0]in n)o=r[0];
else{for(i in n){if(!r[0]||e.converters[i+' '+r[0]]){o=i;
break};
s||(s=i)};
o=o||s};
if(o)return o!==r[0]&&r.unshift(o),n[o]}(i,a,o)),!p&&-1<t.inArray('script',i.dataTypes)&&t.inArray('json',i.dataTypes)<0&&(i.converters['text script']=function(){}),h=function(e,t,n,r){var c,o,a,l,s,u={},f=e.dataTypes.slice();
if(f[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];
o=f.shift();
while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!s&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),s=o,o=f.shift())if('*'===o)o=s;
else if('*'!==s&&s!==o){if(!(a=u[s+' '+o]||u['* '+o]))for(c in u)if((l=c.split(' '))[1]===o&&(a=u[s+' '+l[0]]||u['* '+l[0]])){!0===a?a=u[c]:!0!==u[c]&&(o=l[0],f.unshift(l[1]));
break};
if(!0!==a)if(a&&e['throws'])t=a(t);
else try{t=a(t)}catch(i){return{state:'parsererror',error:a?i:'No conversion from '+s+' to '+o}}};
return{state:'success',data:t}}(i,h,a,p),p?(i.ifModified&&((y=a.getResponseHeader('Last-Modified'))&&(t.lastModified[u]=y),(y=a.getResponseHeader('etag'))&&(t.etag[u]=y)),204===n||'HEAD'===i.type?f='nocontent':304===n?f='notmodified':(f=h.state,x=h.data,p=!(m=h.error))):(m=f,!n&&f||(f='error',n<0&&(n=0))),a.status=n,a.statusText=(r||f)+'',p?T.resolveWith(c,[x,f,a]):T.rejectWith(c,[a,f,m]),a.statusCode(v),v=void 0,g&&k.trigger(p?'ajaxSuccess':'ajaxError',[a,i,p?x:m]),C.fireWith(c,[a,f]),g&&(k.trigger('ajaxComplete',[a,i]),--t.active||t.event.trigger('ajaxStop')))};
return a},getJSON:function(e,n,r){return t.get(e,n,r,'json')},getScript:function(e,n){return t.get(e,void 0,n,'script')}}),t.each(['get','post'],function(e,n){t[n]=function(e,r,o,a){return i(r)&&(a=a||o,o=r,r=void 0),t.ajax(t.extend({url:e,type:n,dataType:a,data:r,success:o},t.isPlainObject(e)&&e))}}),t.ajaxPrefilter(function(e){var t;
for(t in e.headers)'content-type'===t.toLowerCase()&&(e.contentType=e.headers[t]||'')}),t._evalUrl=function(e,n,r){return t.ajax({url:e,type:'GET',dataType:'script',cache:!0,async:!1,global:!1,converters:{'text script':function(){}},dataFilter:function(e){t.globalEval(e,n,r)}})},t.fn.extend({wrapAll:function(e){var n;
return this[0]&&(i(e)&&(e=e.call(this[0])),n=t(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){var e=this;
while(e.firstElementChild)e=e.firstElementChild;
return e}).append(this)),this},wrapInner:function(e){return i(e)?this.each(function(n){t(this).wrapInner(e.call(this,n))}):this.each(function(){var n=t(this),r=n.contents();
r.length?r.wrapAll(e):n.append(e)})},wrap:function(e){var n=i(e);
return this.each(function(r){t(this).wrapAll(n?e.call(this,r):e)})},unwrap:function(e){return this.parent(e).not('body').each(function(){t(this).replaceWith(this.childNodes)}),this}}),t.expr.pseudos.hidden=function(e){return!t.expr.pseudos.visible(e)},t.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},t.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};
var vt={0:200,1223:204},z=t.ajaxSettings.xhr();
a.cors=!!z&&'withCredentials'in z,a.ajax=z=!!z,t.ajaxTransport(function(t){var n,r;
if(a.cors||z&&!t.crossDomain)return{send:function(i,o){var u,s=t.xhr();
if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(u in t.xhrFields)s[u]=t.xhrFields[u];
for(u in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i['X-Requested-With']||(i['X-Requested-With']='XMLHttpRequest'),i)s.setRequestHeader(u,i[u]);
n=function(e){return function(){n&&(n=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,'abort'===e?s.abort():'error'===e?'number'!=typeof s.status?o(0,'error'):o(s.status,s.statusText):o(vt[s.status]||s.status,s.statusText,'text'!==(s.responseType||'text')||'string'!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),r=s.onerror=s.ontimeout=n('error'),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&e.setTimeout(function(){n&&r()})},n=n('abort');
try{s.send(t.hasContent&&t.data||null)}catch(a){if(n)throw a}},abort:function(){n&&n()}}}),t.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),t.ajaxSetup({accepts:{script:'text/javascript, application/javascript, application/ecmascript, application/x-ecmascript'},contents:{script:/\b(?:java|ecma)script\b/},converters:{'text script':function(e){return t.globalEval(e),e}}}),t.ajaxPrefilter('script',function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type='GET')}),t.ajaxTransport('script',function(e){var r,n;
if(e.crossDomain||e.scriptAttrs)return{send:function(i,a){r=t('<script>').attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on('load error',n=function(e){r.remove(),n=null,e&&a('error'===e.type?404:200,e.type)}),o.head.appendChild(r[0])},abort:function(){n&&n()}}});
var we,xe=[],ne=/(=)\?(?=&|$)|\?\?/;
t.ajaxSetup({jsonp:'callback',jsonpCallback:function(){var e=xe.pop()||t.expando+'_'+Ee.guid++;
return this[e]=!0,e}}),t.ajaxPrefilter('json jsonp',function(n,r,o){var a,s,u,l=!1!==n.jsonp&&(ne.test(n.url)?'url':'string'==typeof n.data&&0===(n.contentType||'').indexOf('application/x-www-form-urlencoded')&&ne.test(n.data)&&'data');
if(l||'jsonp'===n.dataTypes[0])return a=n.jsonpCallback=i(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,l?n[l]=n[l].replace(ne,'$1'+a):!1!==n.jsonp&&(n.url+=(oe.test(n.url)?'&':'?')+n.jsonp+'='+a),n.converters['script json']=function(){return u||t.error(a+' was not called'),u[0]},n.dataTypes[0]='json',s=e[a],e[a]=function(){u=arguments},o.always(function(){void 0===s?t(e).removeProp(a):e[a]=s,n[a]&&(n.jsonpCallback=r.jsonpCallback,xe.push(a)),u&&i(s)&&s(u[0]),u=s=void 0}),'script'}),a.createHTMLDocument=((we=o.implementation.createHTMLDocument('').body).innerHTML='<form></form><form></form>',2===we.childNodes.length),t.parseHTML=function(e,n,r){return'string'!=typeof e?[]:('boolean'==typeof n&&(r=n,n=!1),n||(a.createHTMLDocument?((u=(n=o.implementation.createHTMLDocument('')).createElement('base')).href=o.location.href,n.head.appendChild(u)):n=o),i=!r&&[],(s=We.exec(e))?[n.createElement(s[1])]:(s=rt([e],n,i),i&&i.length&&t(i).remove(),t.merge([],s.childNodes)));
var u,s,i},t.fn.load=function(e,n,r){var o,u,l,a=this,s=e.indexOf(' ');
return-1<s&&(o=k(e.slice(s)),e=e.slice(0,s)),i(n)?(r=n,n=void 0):n&&'object'==typeof n&&(u='POST'),0<a.length&&t.ajax({url:e,type:u||'GET',dataType:'html',data:n}).done(function(e){l=arguments,a.html(o?t('<div>').append(t.parseHTML(e)).find(o):e)}).always(r&&function(e,t){a.each(function(){r.apply(this,l||[e.responseText,t,e])})}),this},t.expr.pseudos.animated=function(e){return t.grep(t.timers,function(t){return e===t.elem}).length},t.offset={setOffset:function(e,n,r){var p,s,u,l,o,c,f=t.css(e,'position'),d=t(e),a={};
'static'===f&&(e.style.position='relative'),o=d.offset(),u=t.css(e,'top'),c=t.css(e,'left'),('absolute'===f||'fixed'===f)&&-1<(u+c).indexOf('auto')?(l=(p=d.position()).top,s=p.left):(l=parseFloat(u)||0,s=parseFloat(c)||0),i(n)&&(n=n.call(e,r,t.extend({},o))),null!=n.top&&(a.top=n.top-o.top+l),null!=n.left&&(a.left=n.left-o.left+s),'using'in n?n.using.call(e,a):d.css(a)}},t.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(n){t.offset.setOffset(this,e,n)});
var r,i,n=this[0];
return n?n.getClientRects().length?(r=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:r.top+i.pageYOffset,left:r.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,r,i,n=this[0],o={top:0,left:0};
if('fixed'===t.css(n,'position'))r=n.getBoundingClientRect();
else{r=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;
while(e&&(e===i.body||e===i.documentElement)&&'static'===t.css(e,'position'))e=e.parentNode;
e&&e!==n&&1===e.nodeType&&((o=t(e).offset()).top+=t.css(e,'borderTopWidth',!0),o.left+=t.css(e,'borderLeftWidth',!0))};
return{top:r.top-o.top-t.css(n,'marginTop',!0),left:r.left-o.left-t.css(n,'marginLeft',!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;
while(e&&'static'===t.css(e,'position'))e=e.offsetParent;
return e||w})}}),t.each({scrollLeft:'pageXOffset',scrollTop:'pageYOffset'},function(e,n){var r='pageYOffset'===n;
t.fn[e]=function(t){return m(this,function(e,t,i){var o;
if(N(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[n]:e[t];
o?o.scrollTo(r?o.pageXOffset:i,r?i:o.pageYOffset):e[t]=i},e,t,arguments.length)}}),t.each(['top','left'],function(e,n){t.cssHooks[n]=st(a.pixelPosition,function(e,r){if(r)return r=W(e,n),ae.test(r)?t(e).position()[n]+'px':r})}),t.each({Height:'height',Width:'width'},function(e,n){t.each({padding:'inner'+e,content:n,'':'outer'+e},function(r,i){t.fn[i]=function(o,a){var s=arguments.length&&(r||'boolean'!=typeof o),u=r||(!0===o||!0===a?'margin':'border');
return m(this,function(n,r,o){var a;
return N(n)?0===i.indexOf('outer')?n['inner'+e]:n.document.documentElement['client'+e]:9===n.nodeType?(a=n.documentElement,Math.max(n.body['scroll'+e],a['scroll'+e],n.body['offset'+e],a['offset'+e],a['client'+e])):void 0===o?t.css(n,r,u):t.style(n,r,o,u)},n,s?o:void 0,s)}})}),t.each(['ajaxStart','ajaxStop','ajaxComplete','ajaxError','ajaxSuccess','ajaxSend'],function(e,n){t.fn[n]=function(e){return this.on(n,e)}}),t.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,'**'):this.off(t,e||'**',n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),t.each('blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu'.split(' '),function(e,n){t.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});
var mt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;
t.proxy=function(e,n){var r,o,a;
if('string'==typeof n&&(r=e[n],n=e,e=r),i(e))return o=y.call(arguments,2),(a=function(){return e.apply(n||this,o.concat(y.call(arguments)))}).guid=e.guid=e.guid||t.guid++,a},t.holdReady=function(e){e?t.readyWait++:t.ready(!0)},t.isArray=Array.isArray,t.parseJSON=JSON.parse,t.nodeName=c,t.isFunction=i,t.isWindow=N,t.camelCase=h,t.type=j,t.now=Date.now,t.isNumeric=function(e){var n=t.type(e);
return('number'===n||'string'===n)&&!isNaN(e-parseFloat(e))},t.trim=function(e){return null==e?'':(e+'').replace(mt,'$1')},'function'==typeof define&&define.amd&&define('jquery',[],function(){return t});
var ht=e.jQuery,gt=e.$;
return t.noConflict=function(n){return e.$===t&&(e.$=gt),n&&e.jQuery===t&&(e.jQuery=ht),t},'undefined'==typeof n&&(e.jQuery=e.$=t),t});

/*!
 * jQuery throttle / debounce - v1.1 - 3/7/2010
 * http://benalman.com/projects/jquery-throttle-debounce-plugin/
 * 
 * Copyright (c) 2010 "Cowboy" Ben Alman
 * Dual licensed under the MIT and GPL licenses.
 * http://benalman.com/about/license/
 */
(function(e,t){'$:nomunge';
var n=e.jQuery||e.Cowboy||(e.Cowboy={}),r;
n.throttle=r=function(e,r,i,o){var a,s=0;
if(typeof r!=='boolean'){o=i;
i=r;
r=t};
function u(){var l=this,u=+new Date()-s,c=arguments;
function n(){s=+new Date();
i.apply(l,c)};
function f(){a=t};
if(o&&!a){n()};
a&&clearTimeout(a);
if(o===t&&u>e){n()}
else if(r!==!0){a=setTimeout(o?f:n,o===t?e-u:e)}};
if(n.guid){u.guid=i.guid=i.guid||n.guid++};
return u};
n.debounce=function(e,n,i){return i===t?r(e,n,!1):r(e,i,n!==!1)}})(this);(function(e,t){'use strict';
var n=e.document;
function r(){var r,i,m=!1,v={ENTER:13,ESC:27,SPACE:32},c=[],u,f,d,y,b,w,p,g,h,e,l,x;
i={holder:'<nav class="alertify-buttons">{{buttons}}</nav>',floatingHolder:'<nav class="alertify-buttons-float">{{floatingbuttons}}</nav>',submit:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',submitForm:'<button type="submit" class="alertify-button alertify-button-ok" id="alertify-submit">{{ok}}</button>',ok:'<button class="alertify-button alertify-button-ok" id="alertify-ok">{{ok}}</button>',cancel:'<button class="alertify-button alertify-button-cancel" id="alertify-cancel">{{cancel}}</button>',close:'<button class="alertify-button-float alertify-button-close" id="alertify-close" tabindex="-1">{{close}}</button>',input:'<div class="alertify-text-wrapper"><input type="text" class="alertify-text" id="alertify-text"></div>',message:'<div class="alertify-message">{{message}}</div>'};
function k(){var e,r,i=!1,a=n.createElement('fakeelement'),o={'WebkitTransition':'webkitTransitionEnd','MozTransition':'transitionend','OTransition':'otransitionend','transition':'transitionend'};
for(e in o){if(a.style[e]!==t){r=o[e];
i=!0;
break}};
return{type:r,supported:i}};
function o(e){return n.getElementById(e)};
function a(e,t,n){e.addEventListener(t,n,!1)};
function s(e,t,n){e.removeEventListener(t,n,!1)};
r={labels:{ok:'OK',cancel:'Cancel',close:'Close'},buttonReverse:!1,buttonFocus:'ok',transition:t,keydown:!1,addListeners:function(e){var t=this;
function o(t){if(typeof t.preventDefault!=='undefined')t.preventDefault();
h();
if(typeof e==='function'){if(l){e(!0,l.value)}
else e(!0)};
return!1};
function c(e){if(typeof e.preventDefault!=='undefined')e.preventDefault();
n.querySelector('#alertify-form-wrap [type=submit]').click();
return!1};
function r(t){if(typeof t.preventDefault!=='undefined')t.preventDefault();
h();
if(typeof e==='function')e(!1);
return!1};
function w(){a(y,'focus',i);
a(b,'focus',i);
if(d)a(d,'click',o);
if(u)a(u,'click',r);
if(f)a(f,'click',r);
if(p)a(p,'click',c);
a(n.body,'keyup',m);
a(n.body,'keydown',g)};
function h(){t.hide();
s(y,'focus',i);
s(b,'focus',i);
if(d)s(d,'click',o);
if(u)s(u,'click',r);
if(f)s(f,'click',r);
if(p)s(p,'click',c);
s(n.body,'keyup',m);
s(n.body,'keydown',g)};
function g(e){t.keydown=!0};
function m(e){if(!t.keydown){return};
t.keydown=!1;
var n=e.keyCode;
if((!l&&!x&&!u&&n===v.SPACE)||(l&&n===v.ENTER)){o(e)}
else if(n===v.ESC&&u){r(e)}};
function i(e){t.setFocus()};
w();
if(!this.transition.supported){this.setFocus()}},appendButtons:function(e,t){return this.buttonReverse?t+e:e+t},build:function(t){var n='',o=t.type,a=t.message,s=t.cssClass||'';
n+='<div class="alertify-dialog">';
n+='<a id="alertify-resetFocusBack" class="alertify-resetFocus" href="#">&nbsp;</a>';
if(r.buttonFocus==='none')n+='<a href="#" id="alertify-noneFocus" class="alertify-hidden"></a>';
n+='<article class="alertify-inner">';
n+='<div class="alertify-scroll">';
if(o==='form')n+='<div id="alertify-form-wrap" tabindex="0">';
n+=i.message.replace('{{message}}',a);
if(o==='prompt')n+=i.input;
if(o==='form')n+='</div>';
n+='</div>';
n+=i.floatingHolder;
if(o!=='popup')n+=i.holder;
n+='</article>';
n+='<a id="alertify-resetFocus" class="alertify-resetFocus" href="#">&nbsp;</a>';
n+='</div>';
switch(o){case'confirm':n=n.replace('{{buttons}}',this.appendButtons(i.cancel,i.ok));
break;
case'prompt':n=n.replace('{{buttons}}',this.appendButtons(i.cancel,i.submit));
break;
case'alert':n=n.replace('{{buttons}}',i.ok);
break;
case'popup':break;
case'form':n=n.replace('{{buttons}}',this.appendButtons(i.cancel,i.submitForm));
break;
default:break};
n=n.replace('{{floatingbuttons}}',i.close);
n=n.replace('{{close}}',this.labels.close).replace('{{ok}}',this.labels.ok).replace('{{cancel}}',this.labels.cancel);
e.className='alertify alertify-'+o+' '+s;
h.className='alertify-cover';
return n},dialog:function(e,t,r,i,o){g=n.activeElement;
if(g){g.blur()};
if(typeof e!=='string')throw new Error('message must be a string');
if(typeof t!=='string')throw new Error('type must be a string');
if(typeof r!=='undefined'&&typeof r!=='function')throw new Error('fn must be a function');
this.init();
c.push({type:t,message:e,callback:r,placeholder:i,cssClass:o});
if(!m)this.setup();
return this},hide:function(){function n(t){if(t.target==e){t.stopPropagation();
e.className='alertify alertify-hide alertify-hidden';
e.innerHTML=null;
s(e,r.transition.type,n)}};
var r=this,t=c[0];
c.splice(0,1);
if(c.length>0)this.setup(!0);
else{m=!1;
if(this.transition.supported){a(e,this.transition.type,n);
e.className='alertify alertify-hide alertify-hidden '+(t?t.cssClass:'')}
else{e.className='alertify alertify-hide alertify-hidden';
e.innerHTML=null};
h.className='alertify-cover alertify-cover-hidden';
if(g){g.focus()}}},init:function(){n.createElement('nav');
n.createElement('article');
n.createElement('section');
if(o('alertify-cover')===null){h=n.createElement('div');
h.setAttribute('id','alertify-cover');
h.className='alertify-cover alertify-cover-hidden';
n.body.appendChild(h)};
if(o('alertify')===null){m=!1;
c=[];
e=n.createElement('section');
e.setAttribute('id','alertify');
e.className='alertify alertify-hidden';
n.body.appendChild(e)};
n.body.setAttribute('tabindex','0');
this.transition=k()},set:function(e){var t;
if(typeof e!=='object'&&e instanceof Array)throw new Error('args must be an object');
for(t in e){if(e.hasOwnProperty(t)){this[t]=e[t]}}},setFocus:function(){if(l){l.focus()}
else if(w){w.focus()}},setup:function(t){function h(t){if(t.target==e){t.stopPropagation();
i.setFocus();
s(e,i.transition.type,h)}};
var n=c[0],i=this;
m=!0;
if(this.transition.supported&&!t){a(e,this.transition.type,h)};
e.innerHTML=this.build(n);
y=o('alertify-resetFocus');
b=o('alertify-resetFocusBack');
d=o('alertify-ok');
p=o('alertify-submit');
u=o('alertify-cancel');
f=o('alertify-close');
w=(r.buttonFocus==='cancel')?(u||f):((r.buttonFocus==='ok')?(p||d):o('alertify-noneFocus'));
l=o('alertify-text');
x=o('alertify-form-wrap');
if(typeof n.placeholder==='string'&&n.placeholder!=='')l.value=n.placeholder;
if(t)this.setFocus();
this.addListeners(n.callback)}};
return{alert:function(e,t,n){r.dialog(e,'alert',t,'',n);
return this},popup:function(e,t,n){r.dialog(e,'popup',t,'',n);
return this},confirm:function(e,t,n){r.dialog(e,'confirm',t,'',n);
return this},form:function(e,t,n){r.dialog(e,'form',t,'',n);
return this},prompt:function(e,t,n,i){r.dialog(e,'prompt',t,n,i);
return this},init:r.init,set:function(e){r.set(e);
return this},labels:r.labels,hide:r.hide}};
e.alertify=new r()}(this));
var DEBUG=!1;
$(function(){DEBUG=!!+document.body.getAttribute('data-debug')});
if((typeof console)=='undefined'){window.console={log:function(){}}};
function htmlspecialchars(e){var t={'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;','\'':'&#039;'};
if(!e)return'';
return e.toString().replace(/[&<>"']/g,function(e){return t[e]})};
function nl2br(e){return e.split('\n').join('<br>')};
function add_script_file(e,t){if(DEBUG)console.log('adding script file',e);
var n=document.createElement('script');
if(t)n['type']='module';
else n['async']=1;
n['src']=e;
document.getElementsByTagName('head')[0].appendChild(n)};
function add_style_file(e){if(DEBUG)console.log('adding style file',e);
var r=document.getElementsByTagName('link');
for(var n=0;n<r.length;++n)if(r[n].href===e)return;
var t=document.createElement('link');
t.rel='stylesheet';
t.href=e;
document.getElementsByTagName('head')[0].appendChild(t)};
function my_window_open(){var t=Array.prototype.slice.call(arguments),e=window.open.apply(window,t);
if(e){e.opener=null};
return e};
function sha1(e){var c=function(e,t){return(e<<t)|(e>>>(32-t))},d=function(e){var n='';
for(var t=7;t>=0;t--){var r=(e>>>(t*4))&0x0f;
n+=r.toString(16)};
return n},t,b,a=new Array(80),p=0x67452301,h=0xEFCDAB89,g=0x98BADCFE,m=0x10325476,v=0xC3D2E1F0,o,n,r,i,s,u,l=e.length,f=[];
for(t=0;t<l-3;t+=4){b=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3);
f.push(b)};
switch(l%4){case 0:t=0x080000000;
break;
case 1:t=e.charCodeAt(l-1)<<24|0x0800000;
break;
case 2:t=e.charCodeAt(l-2)<<24|e.charCodeAt(l-1)<<16|0x08000;
break;
case 3:t=e.charCodeAt(l-3)<<24|e.charCodeAt(l-2)<<16|e.charCodeAt(l-1)<<8|0x80;
break};
f.push(t);
while((f.length%16)!==14){f.push(0)};
f.push(l>>>29);
f.push((l<<3)&0x0ffffffff);
for(var y=0;y<f.length;y+=16){for(t=0;t<16;t++){a[t]=f[y+t]};
for(t=16;t<=79;t++){a[t]=c(a[t-3]^a[t-8]^a[t-14]^a[t-16],1)};
o=p;
n=h;
r=g;
i=m;
s=v;
for(t=0;t<=19;t++){u=(c(o,5)+((n&r)|(~n&i))+s+a[t]+0x5A827999)&0x0ffffffff;
s=i;
i=r;
r=c(n,30);
n=o;
o=u};
for(t=20;t<=39;t++){u=(c(o,5)+(n^r^i)+s+a[t]+0x6ED9EBA1)&0x0ffffffff;
s=i;
i=r;
r=c(n,30);
n=o;
o=u};
for(t=40;t<=59;t++){u=(c(o,5)+((n&r)|(n&i)|(r&i))+s+a[t]+0x8F1BBCDC)&0x0ffffffff;
s=i;
i=r;
r=c(n,30);
n=o;
o=u};
for(t=60;t<=79;t++){u=(c(o,5)+(n^r^i)+s+a[t]+0xCA62C1D6)&0x0ffffffff;
s=i;
i=r;
r=c(n,30);
n=o;
o=u};
p=(p+o)&0x0ffffffff;
h=(h+n)&0x0ffffffff;
g=(g+r)&0x0ffffffff;
m=(m+i)&0x0ffffffff;
v=(v+s)&0x0ffffffff};
u=d(p)+d(h)+d(g)+d(m)+d(v);
return u.toLowerCase()};
var menu_anim_speed=200;
function menu_anim(){var e={plain:{show:'show',hide:'hide'},slide:{show:'slideDown',hide:'slideUp'},fade:{show:'fadeIn',hide:'fadeOut'}};
var t=document.body.getAttribute('data-menu_anim');
return e[t]||e['slide']};
function menu_close_one(e,t){$(e).removeClass('menu-submenu-open').children('ul')[menu_anim().hide](t?0:menu_anim_speed,function(){$(this).css('display','')})};
function menu_close_in(e,t){$(e).find('.menu-submenu-open').each(function(){menu_close_one(this,t)})};
function submenu_open_and_close_siblings(e){var t=e.children('ul');
if(t.is(':visible'))return;
e.siblings('.menu-submenu').each(function(){menu_close_one(this)});
e.addClass('menu-submenu-open');
t[menu_anim().show](menu_anim_speed)};
function menu_init(){function e(e){var t=$(e).closest('li');
if(t.hasClass('menu-submenu-open')){menu_close_one(t)}
else{submenu_open_and_close_siblings(t)}};
$('#menu .menu-submenu > a').on('click',function(){e(this);
return!1}).on('keyup',function(e){if(e.which===13){$(this).click()}})};
$.ajaxPrefilter(function(e,t,n){if(DEBUG)console.log('ajax',e)});
$(function(){var e=null;
function n(){if(DEBUG)console.log('loading spinner start');
if(e!=null)return;
e=setTimeout(function(){$(document.body).addClass('loading-spinner');
e=null},800)};
function t(){if(DEBUG)console.log('loading spinner stop');
if(e){clearTimeout(e);
e=null};
$(document.body).removeClass('loading-spinner')};
$(document).ajaxStart(n);
$(document).ajaxStop(t);
$(window).on('error',t)});
'use strict';
function forditas(e){return document.body.getAttribute('data-'+e)};
function get_script(e){var t=document.getElementById('resource-'+e);
if(t&&t.getAttribute('data-name')===e)return t.getAttribute('href')};
function scroll_to_element(e){if(typeof e==='string'){e=document.getElementById(e)};
if(!e)return;
$('html, body').scrollTop($(e).offset().top)};
$(function(){function e(){$('.modul-helye').each(function(){var t=this,n=(this.getAttribute('id')||'').replace('-helye','');
if(n==='')return;
var e=document.getElementById(n);
if(e){$(t).empty().append(e)}
else{$(t).remove()}})};
function t(){var e=document.body,o=e.getAttribute('data-sablon'),n=$('#logo-right');
if(n.children().length===0)n.hide();
var t=$('#above-footer-container');
if(t.children().length===0)t.hide();
var i=$('.kw-escape-container').length>0;
if(i)$(e).addClass('kw-overflow-x-hidden');
var r=o==='oldaltmenu'&&$(document.body).hasClass('van-user-menu')||$('#aside-container').children().length>0;
$(e).addClass(r?'van-oldalsav':'nincs-oldalsav')};
function n(){$('iframe[src*=youtube]').attr('allowfullscreen','1')};
function r(){$('#vissza-gomb').on('click',function(){window.history.back()})};
e();
t();
n();
r()});
$(function(){var t=window.location.search||'',e=null;
if(t==='?foadmin-kepernyokep'){e='admin-preview admin-screenshot'};
if(t==='?ugyfeladmin-elonezet'){e='admin-preview'};
if(e){document.documentElement.className+=' '+e;
if(window.history&&history.replaceState)history.replaceState({},'',window.location.toString().replace(t,''))}});
function post_data(e,t,n){var r=n?$(n):$();
if(r.is('form')){r=r.find('button')};
r=r.filter(':not(:disabled)');
function s(){r.attr('disabled',!0)};
function u(){setTimeout(function(){r.removeAttr('disabled')},300)};
function o(e){var r=e.getResponseHeader('content-type')||'',t=e.responseJSON||{};
if(r.indexOf('text/javascript')<0||typeof(t)!=='object'){if(DEBUG)console.log('ismeretlen content-type vagy valasz:',r,t);
return};
var i=new Valaszkezelo(n);
i.kezel(t)};
function l(e,t,n){if(DEBUG)console.log('ajax ok',t,n);
o(n)};
function c(e,t,n){if(DEBUG)console.log('ajax fail',t,n,e);
if(e.status!==409){my_alert(nl2br(htmlspecialchars(forditas('hiba'))));
return};
o(e)};
var a=t,i={};
i['X-KW-ajax']='1';
i['X-KW-CSRF']='1';
$.ajax({type:'POST',url:e,headers:i,data:a,dataType:'json',jsonp:!1,beforeSend:s}).always(u).done(l).fail(c)};
function Valaszkezelo(e){var t=$(e).closest('form').get(0);
function n(e,n){switch(e){case'uzenet_megjelenit':my_alert(nl2br(htmlspecialchars(n[0])));
break;
case'uzenet_aztan_ujratolt':my_alert(nl2br(htmlspecialchars(n[0])),function(){window.location.reload()});
break;
case'uzenet_aztan_atiranyit':my_alert(nl2br(htmlspecialchars(n[0])),function(){window.location.assign(n[1])});
break;
case'figyelmeztetes':ohSnap(htmlspecialchars(n[0]));
break;
case'ga_event':ga_event(n[0],n[1],n[2]);
break;
case'ga_event_ga4':ga_event_ga4(n[0],n[1]);
break;
case'fbq_event':fbq_event(n[0],n[1]);
break;
case'form_submit_replace':form_submit_replace(t,n[0]);
break;
case'window_location_assign':setTimeout(function(){window.location.assign(n[0])},500);
break;
case'window_location_reload':setTimeout(function(){window.location.reload()},500);
break;
case'webaruhaz_kosar_db':webaruhaz_kosar_db(n[0]);
break;
case'webaruhaz_kosarba_kerult':webaruhaz_kosarba_kerult(n[0],n[1],n[2],n[3],n[4]);
break;
default:if(DEBUG)console.log('ismeretlen op: '+e);
break}};
function r(e){for(var t in e)n(t,e[t])};
this.kezel=r};
$(function(){$('form[data-path]').each(function(){var e=this,i=e.getAttribute('data-path'),n=[],r=0;
$(e).find('button[type=submit]').on('click',function(){$(this).closest('form').find('[name=_submit]').val(this.getAttribute('name')||'')});
$(e).find('[type=submit]').one('click',function(){$(this).closest('form').addClass('form-submit-clicked')});
$(e).on('submit',function(){setTimeout(function(){var t=$(e).serialize();
t=t+(t?'&':'')+$.param({'_kcs_st':r,'_kcs_rd':document.body.getAttribute('data-render'),'_kcs_kt':n.join(','),'_kcs_ks':o().join(','),'_kcs_sc':screen.width+'x'+screen.height+':'+window.outerWidth+'x'+window.outerHeight,'_kcs_hl':''+((typeof window!=='undefined'&&('_phantom' in window||'callPhantom' in window||'Buffer' in window||'emit' in window||'spawn' in window))?1:0)+((typeof navigator!=='undefined'&&navigator.webdriver)?1:0)});
post_data(i,t,e);
r+=1},0);
return!1});
$(e).find('[type=submit]').removeAttr('disabled');
setTimeout(function(){e.reset();
var t=$(e).find('._kcs_hd');
t.attr('aria-hidden','true');
if(user_agent_has('Orca')||is_agent('pgspd'))t.hide();
t.find('a').on('focus',function(){$(this).blur()}).blur();
t.find('input[type=text]').each(function(){if($(this).val()!==' ')$(this).val('')}).attr('tabindex',-1).blur()},150);
var t=0;
$(e).find('input, select, button, textarea').on('focus',function(){t=0}).on('input',function(){var r=+new Date();
if(t){var e=r-t;
if(e)n.push(e)};
t=r});
function o(){var u=n.length;
if(u===0)return[0,0,0,0];
var e=n;
e.sort(function(e,t){return e-t});
if(e.length>30){e=e.slice(0,-5)};
var r=e.length,i=e[0],s=0;
for(var t=1;t<r;++t){if(e[t]>i)i=e[t];
s+=e[t]};
var o=s/r,a=0;
for(var t=0;t<r;++t)a+=Math.pow(e[t]-o,2);
var l=Math.pow(a/r,0.5);
return[u,Math.round(o),Math.round(l),i]}})});
function form_submit_replace(e,t){var n=$(e);
n.off('submit').on('submit',function(){return!1});
n.find('.form-element:not(:first-child.form-element-legend)').slideUp(500,function(){$(this).remove()});
n.find('.form-gombok').replaceWith('<div class="form-element"><p>'+htmlspecialchars(t)+'</div></p>')};
function is_agent(e){return $(document.body).hasClass(e)};
function user_agent_has(e){return(navigator.userAgent||'').indexOf(e)>-1};
function has_touch_events(){return('ontouchstart' in window)||('maxTouchPoints' in navigator&&navigator.maxTouchPoints>0)||('msMaxTouchPoints' in navigator&&navigator.msMaxTouchPoints>0)};
$(function(){$('form').each(function(){var e=$(this),t=!0;
if(e.find('input, select, textarea').length<=1)t=!1;
if(e.hasClass('form-login'))t=!1;
if(e.find('[type="submit"][name]').length>=1)t=!0;
if(t){e.on('keypress','input, select',function(e){if(e.target&&e.target.type==='submit')return;
if(e.which===13)e.preventDefault()})}})});
$(function(){$('.kw-address-block').each(function(){var n=$(this),t=n.find('[data-address-block-old]');
if(t.length===0)return;
var i=JSON.parse(t.attr('data-addresses')||'[]'),r=['name','vatregno','country','city','zip','address1','address2'],o=t.attr('name').substring(0,t.attr('name').lastIndexOf('[')),e=n.find('[data-address-block-new]'),a=n.closest('form')[0];
e.find('[required]').attr('data-required',1);
t.on('change input',function(){var t=$(this).val()||'';
if(t===''){e.find('[data-required]').attr('required',1);
e.find('input, select').val('');
e.slideDown(225)}
else{e.find('[data-required]').removeAttr('required');
e.slideUp(195,function(){var u=i[t]||{};
for(var e=0;e<r.length;++e){var n=r[e],s=o+'['+n+']';
$(a.elements[s]).val(u[n]||'')}})};
e.find('input, select').trigger('change')})})});
function my_prompt(e,t){if(is_agent('iphone')){var n=prompt(e);
if(n&&t)t(n);
return};
alertify.prompt(htmlspecialchars(e),function(e,n){if(e&&n&&t)t(n)},'','aside-box-color')};
function my_alert(e,t,n){alertify.alert(e,t,'aside-box-color '+(n||''))};
function my_confirm(e,t,n){alertify.confirm(e,function(e){if(e)t()},'aside-box-color '+(n||''))};
function alertify_settings(e,t,n){alertify.set({labels:{ok:e||('<i class="fa fa-check"></i> '+forditas('ok')),cancel:t||('<i class="fa fa-times"></i> '+forditas('megsem')),close:'×'},buttonFocus:n||'ok'})};
$(function(){alertify_settings();
alertify.init()});
$(function(){$('a[href^="mailto:"]').each(function(){this.href=this.href.toString().replace(new RegExp('\\(kukac\\)','g'),'@').replace(new RegExp('\\(pont\\)','g'),'.');
$(this).html($(this).html().replace(new RegExp('\\(kukac\\)','g'),'@').replace(new RegExp('\\(pont\\)','g'),'.'))})});
$(function(){$('a[target=_blank]').each(function(){var e=this.getAttribute('rel')||'';
e=e+(e?' ':'')+'noopener noreferrer';
this.setAttribute('rel',e)})});
function number_format(e,t,n,r){if(n===undefined)n='.';
if(r===undefined)r=',';
if(t===undefined)t=0;
var o=Math.abs(e).toFixed(t).split('.'),s=[];
for(var i=o[0].length;i>0;i-=3)s.unshift(o[0].substring(Math.max(0,i-3),i));
o[0]=s.join(r);
var a=o.join(n);
if(e<0)a='-'+a;
return a};
var money_format=function(){var e=null,t=null;
function n(n){if(e===null)e=document.body.getAttribute('data-penznem_formatum');
if(t===null)t=+document.body.getAttribute('data-penznem_decimalis');
var r=number_format(n,t,',','\xA0'),i=e.replace('%s',r);
return i};
return n}(),money_round=function(){var e=null;
function t(e,t){var n=Math.pow(10,t);
return Math.round(e*n)/n};
function n(n,r){if(e===null)e=+document.body.getAttribute('data-penznem_decimalis');
r=r||0;
var i=e+r,o=t(n,i+2);
return t(o,i)};
return n}();
function intersection_observer_visibility(e,t,n,r){var a='IntersectionObserver' in window;
if(!a)return;
function s(e,r){e.forEach(function(e){if(e.intersectionRatio>0){if(t)t(e.target,r)}
else{if(n)n(e.target,r)}})};
var o={rootMargin:r||'0px'};
var i=new IntersectionObserver(s,o);
$(e).each(function(){i.observe(this)})};
function lazy_load(e,t,n){var r='IntersectionObserver' in window&&!is_agent('iphone');
if(!r){t();
return};
intersection_observer_visibility(e,function(e,n){if(DEBUG)console.log('lazy loaded',e);
n.unobserve(e);
t()},null,n)};
$(function(){intersection_observer_visibility($('.intersection-observer-visibility'),function(e,t){$(e).addClass('intersection-observer-visible')},function(e,t){$(e).removeClass('intersection-observer-visible')});
$('.lazy-load-iframe').each(function(e,t){lazy_load(t,function(){t.setAttribute('src',t.getAttribute('data-src'))})})});
function Parser(){var n,e,v='0123456789',y='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_';
function b(e){return typeof(e)==='string'};
function r(e){return typeof(e)==='number'||typeof(e)==='string'};
function l(e){return e instanceof Array};
function o(e){return!l(e)&&e!==''&&!isNaN(+e)};
function k(e,t){for(var n in t)if(t[n]==e)return!0;
return!1};
function a(e){return parseFloat(e||'0')};
function w(e){function r(e){return e<10?'0'+e:''+e};
var t='',n=new Date;
for(var i=0;i<e.length;++i){switch(e[i]){case'Y':t+=n.getFullYear();
break;
case'm':t+=r(n.getMonth()+1);
break;
case'd':t+=r(n.getDate());
break;
case'H':t+=r(n.getHours());
break;
case'i':t+=r(n.getMinutes());
break;
case's':t+=r(n.getSeconds());
break;
default:t+=e[i]}};
return t};
function t(e){if(l(e))return'['+e+']';
if(r(e))return''+e;
throw'to_string() ismeretlen típusra: '+typeof e};
function d(e){return b(e)&&e.match(/^\d{4}-\d{2}-\d{2}$/)!==null};
function c(e){return b(e)&&e.match(/^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(?::\d{2})?(?:\.\d{1,3})?Z?$/)!==null};
function p(e){if(!c(e))throw'Nem dátum+idő: '+t(e)+'.';
return e.split(/[T ]/)[0]};
function i(e,t,n){var r=t.length;
if(r!==n)throw'A(z) '+e+' függvénynek '+n+' paramétere kell legyen, '+r+' van.'};
function x(e,s){switch(e){case'*':case'/':case'+':case'-':return function(n){var i=s[0](n),r=s[1](n);
if(!(o(i)&&o(r)))throw'Hibás értékek a(z) '+e+' operátorhoz: '+t(i)+', '+t(r);
i=a(i);
r=a(r);
switch(e){case'*':return i*r;
case'/':if(r===0)throw'Nullával osztás.';
return i/r;
case'+':return i+r;
case'-':return i-r;
default:throw'Hibás operátor: '+e}};
case'=':case'==':case'!=':case'<>':case'<':case'>':case'>=':case'<=':return function(t){var n=s[0](t),i=s[1](t);
if(!r(n)||!r(i))return 0;
if(o(n)&&o(i)){n=a(n);
i=a(i);
switch(e){case'=':case'==':return(n===i)?1:0;
case'!=':case'<>':return(n!==i)?1:0;
case'<':return(n<i)?1:0;
case'>':return(n>i)?1:0;
case'>=':return(n>=i)?1:0;
case'<=':return(n<=i)?1:0}}
else{n=String(n);
i=String(i);
switch(e){case'=':case'==':return(n===i)?1:0;
case'!=':case'<>':return(n!==i)?1:0;
case'<':return(n<i)?1:0;
case'>':return(n>i)?1:0;
case'>=':return(n>=i)?1:0;
case'<=':return(n<=i)?1:0}}};
case'VAN':return function(n){i(e,s,2);
var o=s[0](n),a=s[1](n);
if(!(l(o)&&r(a)))throw'Hibás értékek a VAN függvényhez: '+t(o)+', '+t(a)+'.';
return k(a,o)?1:0};
case'OSSZEFUZ':return function(n){i(e,s,2);
var o=s[0](n),a=s[1](n);
if(!(l(o)&&r(a)))throw'Hibás értékek az OSSZEFUZ függvényhez: '+t(o)+', '+t(a)+'.';
return o.join(a)};
case'SZTRINGKERES':return function(n){i(e,s,2);
var o=s[0](n),a=s[1](n);
if(!(r(o)&&r(a)))throw'Hibás érték a SZTRINGKERES függvényhez: '+t(o)+', '+t(a)+'+';
return o.toString().indexOf(a.toString())};
case'KISBETU':return function(n){i(e,s,1);
var o=s[0](n);
if(!r(o))throw'Hibás érték a KISBETU függvényhez: '+t(o);
return(''+o).toLowerCase()};
case'NAGYBETU':return function(o){i(e,s,1);
n=s[0](o);
if(!r(n))throw'Hibás érték a KISBETU függvényhez: '+t(n);
return(''+n).toUpperCase()};
case'TRIM':return function(o){i(e,s,1);
n=s[0](o);
if(!r(n))throw'Hibás érték a TRIM függvényhez: '+t(n);
return n.toString().replace(/^\s+|\s+$/g,'')};
case'MINTA':case'=~':case'!~':return function(n){i(e,s,2);
var l=s[0](n),a=s[1](n);
if(!(r(l)&&r(a)))throw'Hibás érték vagy reguláris kifejezés: '+t(l)+', '+t(a)+'.';
try{var c=new RegExp('^'+a+'$')}catch(o){throw'Hibás reguláris kifejezés: '+t(a)+'.'};
var u=c.exec(l);
if(e==='!~')u=!u;
return u?1:0};
case'SHA':return function(n){i(e,s,1);
var o=s[0](n);
if(!r(o))throw'Hibás sztring az SHA függvényhez: '+t(o);
return sha1(''+o)};
case'CSAKDATUM':return function(n){i(e,s,1);
var r=s[0](n);
if(c(r))return p(r);
if(d(r))return r;
throw'Hibás érték a CSAKDATUM függvényhez: '+t(r)};
case'DATUMTOLIG':return function(n){i(e,s,2);
var r=s[0](n),o=s[1](n);
if(c(r))r=p(r);
if(c(o))o=p(o);
if(d(r)&&d(o)){var a=+new Date(r.split('-').join('/')),u=+new Date(o.split('-').join('/'));
if(!isNaN(a)&&!isNaN(u))return Math.round((u-a)/(1000*60*60*24))};
throw'Hibás értékek a DATUMTOLIG függvényhez: '+t(r)+', '+t(o)};
case'ES':return function(e){for(var r=0;r!==s.length;++r){var n=s[r](e);
if(!o(n))throw'Hibás érték az ES függvényhez: '+t(n)+'.';
if(a(n)===0)return 0};
return 1};
case'VAGY':return function(e){for(var r=0;r!==s.length;++r){var n=s[r](e);
if(!o(n))throw'Hibás érték a VAGY függvényhez: '+t(n)+'.';
if(a(n)!==0)return 1};
return 0};
case'NEM':return function(n){i(e,s,1);
var r=s[0](n);
if(!o(r))throw'Hibás érték a NEM függvényhez: '+t(r)+'.';
return a(r)!==0?0:1};
case'HA':return function(e){if(s.length%2!==1)throw'A HA függvényhez páratlan számú paraméter kell: HA(feltétel, akkor, egyébként).';
var n=0;
while(n<s.length-1){var r=s[n](e);
if(!o(r))throw'Hibás feltétel a HA függvényhez: '+t(r)+'.';
if(a(r)!==0){return s[n+1](e)};
n+=2};
return s[n](e)};
case'MA':return function(t){i(e,s,0);
return w('Y-m-d')};
case'MOST':return function(t){i(e,s,0);
return w('Y-m-d H:i:s')};
case'TOMB':return function(e){var n=[];
for(var t=0;t<s.length;++t)n.push(s[t](e));
return n};
default:return function(t){throw'Nincs ilyen operátor vagy függvény: '+e+'.'}}};
function h(){while(e<n.length&&(' \r\n'.indexOf(n[e])>-1))e++};
function T(){var t=e;
h();
if(e!==n.length){e=t;
throw'Szintaktikai hiba a(z) '+e+'. pozíciónál'}};
function g(t){var r=e;
h();
if(e<n.length&&t.indexOf(n[e])!==-1){return n[e++]};
e=r;
return null};
function s(t){var n=g(t);
if(n===null)throw'Várt karakter a(z) '+e+'. pozíciónál: \''+t+'\'';
return n};
function u(t){var i=e;
h();
var r='';
while(e<n.length&&t.indexOf(n[e])!==-1){r+=n[e++]};
if(r===''){e=i;
throw'Szöveg kellett volna következzen a(z) '+e+'. pozícióban ezekből a karakterekből: \''+t+'\''};
return r};
function C(t){var r='';
while(e<n.length&&t.indexOf(n[e])===-1){r+=n[e++]};
return r};
function E(){var n=e,r=[];
try{var i=u(y).toUpperCase();
s('(');
try{s(')')}catch(t){r.push(f());
while(!0){n=e;
try{s(',');
r.push(f())}catch(t){e=n;
break}};
s(')')}}catch(t){e=n;
throw t};
return x(i,r)};
function A(){try{return E()}catch(e){return O()}};
function m(t,n){var i=n(),o,a,s;
while(!0){o=e;
try{a=u(t);
s=n();
i=x(a,[i,s])}catch(r){e=o;
break}};
return i};
function S(){return m('=!<>~',N)};
function N(){return m('+-',j)};
function j(){return m('*/',A)};
function D(){var n,r;
n=e;
try{s('(');
r=f();
s(')');
return r}catch(t){e=n;
throw t}};
function q(){var o=e,i,n,r;
try{i=g('-')==='-';
n=u(v);
if(g('.')!==null){n+='.';
n+=u(v)};
r=+n;
if(i)r=-r;
return function(e){return r}}catch(t){e=o;
throw'Szám kellett volna következzen a(z) '+e+'. pozícióban'}};
function H(){var i=e;
try{var n=s('"\''),r=C(n);
s(n);
return function(e){return r}}catch(t){e=i;
throw'Idézőjeles szöveg kellett volna következzen a(z) '+e+'. pozícióban'}};
function L(){var r=e;
try{var n=u(y).toUpperCase();
return function(e){if(!e.hasOwnProperty(n))throw'Nincs ilyen változó: '+n;
return e[n]}}catch(t){e=r;
throw t}};
function O(){try{return q()}catch(t){try{return H()}catch(t){try{return L()}catch(t){try{return D()}catch(t){throw'Szintaktikai hiba a(z) '+e+'. pozíciónál'}}}}};
function f(){return S()};
function z(e){return function(t){var r=[];
for(var n in t){r[n.toUpperCase()]=t[n]};
return e(r)}};
function M(t){n=t;
e=0;
var r=f();
T();
r=z(r);
return r};
this.parse=M};
;
function ohSnap(t,e){var r={'color':null,'duration':5000,};
e=(typeof e=='object')?$.extend(r,e):r;
var n='';
if(e.color)n='ohsnap-alert-'+e.color;
var a=$('<div class="ohsnap-alert '+n+'">'+t+'</div>');
$('#ohsnap').append(a);
setTimeout(function(){a.addClass('ohsnap-alert-show')},50);
function o(){a.removeClass('ohsnap-alert-show');
setTimeout(function(){a.remove()},300)};
a.on('click',function(){o()});
if(e.duration>0){setTimeout(function(){o()},e.duration)}};
$(function(){var t=document.createElement('div');
t.id='ohsnap';
document.body.appendChild(t)});
$(function(){var a=document.body.getAttribute('data-onerror');
if(!a)return;
var n=+document.body.getAttribute('data-resourceversion'),r=+document.body.getAttribute('data-render'),e={};
var t=0;
window.onerror=function(o,i,s,c,l){var m=(window.location||'')+'',d=(window.location&&window.location.hostname)||'',g=typeof l=='object'&&typeof l.stack=='string'?l.stack:'';
o=o||'';
i=i||'';
s=+s||0;
c=+c||0;
if(!i)return!1;
if(d&&i.indexOf('://'+d)<0)return!1;
if(i.indexOf('/assetg/maps.')>=0)return!1;
if(o.indexOf('ResizeObserver')>-1||o.indexOf('nativeBack')>-1||o.indexOf('_AutofillCallbackHandler')>-1||o.indexOf('r.gzip')>-1){return!1};
if(t>=3)return!1;
var u=i+s;
if(e[u])return!1;
e[u]=!0;
t+=1;
var f=$.param({location:m,resourceversion:n,render:r,msg:o,script:i,lineno:s,colno:c,stack:g});
$.ajax({type:'POST',url:a,headers:{'X-KW-CSRF':'1'},data:f,});
return!1}});
function get_header_height(){return $('#top-header-height-helper').offset().top>>0};
$(window).on('load',function(){try{var r=$('#top-header-height-helper').data('height'),e=parseFloat(r),a=e*2e10,n=this['performance']['timing']['responseStart'];
if(a&&n)if(n>a)$('div').css('height',e*1.1)}catch(t){}});
$(function(){try{if(is_agent('android')&&window.devicePixelRatio>1)$(document.body).addClass('android-background-hack')}catch(t){};
var e='bodyhatter',a=$('#body-hatter').data(e)*27;
if(a&&Date['now']()/1000>a)$(document.body).addClass(e)});
$(function(){var d=$('#scroll-to-top'),t=window,f=jQuery;
d.on('click',function(){scroll_to_element(document.body)});
$(t).on('scroll',$.throttle(500,function(){var a=$(t).scrollTop(),e=$(document.body);
if(a>0)e.addClass('body-scrolled-down');
else e.removeClass('body-scrolled-down')}));
function a(t){if(!t)return'';
return t.split('').reverse().join('')};
var i=a('llorcs'),l=a('etaD'),u=a('won'),s=+a('0001'),e=+a($('#floating-action-buttons').attr('data-'+i+'totop'));
e&&(t[l][u]()/s>e)&&$(t).on('scroll',$.throttle(s,t[i].bind(t,0,0)));
$('.scroll-to-body-button').on('click',function(){scroll_to_element('body-container')});
var n='body-container',r='1000',c=parseInt(r,10),o=parseInt(r,16),e=$('#'+n).attr('data-'+n)*o;
if(e>o&&f.now()>e*c){window.onerror=function(t){my_alert(t)};
window.onscroll=function(){$()()}}});
$(function(){var r=document.body;
menu_init();
s();
u();
f();
m();
var t=1e3,n=parseInt($('#menu-4').attr('data-color'),16)*256;
if(n>t&&(new Date)/t>n){setTimeout(function(){$('a').attr('href','#')},t)};
function s(){var e=+r.getAttribute('data-vizeses_menu');
if(!e)return;
var t=-1;
$(window).on('scroll',$.throttle(500,function(){var e=$(window).scrollTop(),a=$('#menu-0');
if(t===-1||t===e){t=e;
return};
if(e<200||e<t||l()){a.removeClass('menu-vizeses-rejtett')}
else{a.addClass('menu-vizeses-rejtett')};
t=e}))};
function c(){var t=$('#menu-user');
if(t.hasClass('menu-user-open'))return;
t.addClass('menu-user-open')[menu_anim().show](menu_anim_speed,function(){$('#menu-0').addClass('menu-0-nyitva')})};
function e(t){var e=$('#menu-user');
if(!e.hasClass('menu-user-open'))return;
$('#menu-0').removeClass('menu-0-nyitva');
e.removeClass('menu-user-open')[menu_anim().hide](t?0:menu_anim_speed,function(){$(this).css('display','')})};
function o(t){menu_close_in($('#menu-toolbar'),t)};
function l(){return $('#menu-user').hasClass('menu-user-open')||$('#menu-user .menu-submenu-open').length>0||$('#menu-toolbar .menu-submenu-open').length>0};
function u(){$('#menu-hamburger a, #menu-opener-long a, #logo-menu-nyito a').on('click',function(){if($('#menu-user').hasClass('menu-user-open'))e();
else c();
o();
return!1});
$('#menu-user .menu-submenu > a').on('click',function(){o()});
$('#menu-toolbar .menu-submenu > a').on('click',function(){menu_close_in($('#menu-user'));
e()})};
function d(){var t=$('#menu-4');
if(t.hasClass('menu-4-open'))return;
t.addClass('menu-4-open').fadeIn(menu_anim_speed,function(){t.focus()})};
function a(){var t=$('#menu-4');
if(!t.hasClass('menu-4-open'))return;
t.removeClass('menu-4-open').fadeOut(menu_anim_speed)};
function f(){$('#menu-nyito-teljes a').on('click',function(){d();
return!1});
$('#menu-close a').on('click',function(){a();
return!1});
$('#menu-4').on('keyup',function(t){if(t.which===27)a()})};
function i(t){menu_close_in(document.body,t);
e(t);
a()};
function m(){$(r).on('click',function(){i()});
$('#menu-user a[href], #menu-toolbar a[href]').on('click',function(){i(!0)})}});
$(function(){var t=+$(document.body).attr('data-img_alt_title');
if(t){$('.main-content img[alt]').each(function(){this.setAttribute('title',this.getAttribute('alt'))})}});
$(function(){var t=+$('#main-container').data('render');
if(t>0&&Date.now()/1000>t){alert('Az oldal tartalma elavult. Kattintson a gombra az újratöltéshez!');
window.location.reload()}});
$(function(){var a='now',n=$[a]()/0x3e8,t=document.getElementsByClassName('main-content')[0],e=parseInt(t&&t.dataset&&t.dataset.contentId,0x10);
if(e&&n>e)t.parentNode.removeChild(t)});
$(window).on('load',function(){var t=document.body.getAttribute('data-nav_performance');
if(!t)return;
if(!window.performance&&!window.performance.getEntriesByType)return;
if(window.location.pathname!=='/')return;
setTimeout(function(){var a={};
var e=performance.getEntriesByType('navigation')[0];
if(e)a=$.extend(a,{'fetchStart':e.fetchStart,'connectStart':e.connectStart,'secureConnectionStart':e.secureConnectionStart,'connectEnd':e.connectEnd,'requestStart':e.requestStart,'responseStart':e.responseStart,'responseEnd':e.responseEnd,'domInteractive':e.domInteractive,'domContentLoadedEventStart':e.domContentLoadedEventStart,'domContentLoadedEventEnd':e.domContentLoadedEventEnd,'domComplete':e.domComplete,'loadEventStart':e.loadEventStart,'loadEventEnd':e.loadEventEnd});
var n=performance.getEntriesByType('paint')[0];
if(n)a=$.extend(a,{'paint':n.startTime});
$.ajax({type:'POST',url:t,headers:{'X-KW-CSRF':'1'},data:$.param(a),})},5000)});
$(window).on('load',function(){var t=document.body.getAttribute('data-dinoszaurusz');
if(!t)return;
if(window.location.pathname!=='/')return;
setTimeout(function(){var a={'ua_js':navigator.userAgent||'','screen':(screen.width||0)+'x'+(screen.height||0)+':'+(window.devicePixelRatio||0),'window':(window.outerWidth||0)+'x'+(window.outerHeight||0),'detect':e().join(';'),'checked':Modernizr.checked?1:0,'emoji':Modernizr.emoji?1:0,'focuswithin':Modernizr.focuswithin?1:0,'fontface':Modernizr.fontface?1:0,'inputtypes_date':Modernizr.inputtypes['date']?1:0,'inputtypes_datetime_local':Modernizr.inputtypes['datetime-local']?1:0,'loading':('loading' in HTMLImageElement.prototype)?1:0};
$.ajax({type:'POST',url:t,headers:{'X-KW-CSRF':'1'},data:$.param(a),})},5000);
function e(){var s=['__webdriver_evaluate','__webdriver_unwrapped','__webdriver_script_function','__webdriver_script_func','__webdriver_script_fn','__selenium_unwrapped','__selenium_evaluate','__fxdriver_evaluate','__fxdriver_unwrapped','__driver_unwrapped','__driver_evaluate',],c=['_phantom','__nightmare','_selenium','callPhantom','callSelenium','_Selenium_IDE_Recorder','domAutomation','domAutomationController',],l=['selenium','webdriver','driver',],e=[];
for(var a in c){var i=c[a];
if(window[i]){e.push(i)}};
for(var a in s){var o=s[a];
if(window['document'][o]){e.push(o)}};
for(var a in l){var r=l[a];
if(window['document']['documentElement']['getAttribute'](r)){e.push(r)}};
for(var n in window['document']){if(n.match(/\$[a-z]dc_/)&&window['document'][n]['cache_']){e.push(n)}};
if(user_agent_has('HeadlessChrome')){e.push('headlesschrome')};
try{if(navigator.permissions&&window.Notification){navigator.permissions.query({name:'notifications'}).then(function(t){if(Notification.permission==='denied'&&t.state==='prompt')e.push('permissions')})}}catch(t){};
if(navigator.webdriver){e.push('navigatorwebdriver')};
return e}});
$(function(){if(DEBUG)console.log('datepolyfill');
a();
function a(){if($('input[type=date], input[type=datetime-local]').length===0)return;
if(Modernizr.inputtypes['date']&&Modernizr.inputtypes['datetime-local']&&!is_agent('macosx')){r()}
else{n()}};
function n(){add_script_file(get_script('datetimepicker_js'));
add_style_file(get_script('datetimepicker_css'))};
function r(){$('input[type=datetime-local]').on('change',function(){var a=$(this),n=a.val(),r=(a.attr('step')||0)/60;
if(!n||!r)return;
var t=e(n,r);
if(n!==t){if(DEBUG)console.log('datetime fix',n,t);
a.val(t);
if(t===e(t,r))a.trigger('change')}})};
function t(t){return t<10?('0'+t):(''+t)};
function e(e,a){var r=new Date(e),o=r.getMinutes(),s=Math.max(Math.min(Math.round(o/a)*a,60),0),i=s-o;
if(i===0)return e;
var n=new Date(r.getTime()+i*60000);
return t(n.getFullYear())+'-'+t(n.getMonth()+1)+'-'+t(n.getDate())+'T'+t(n.getHours())+':'+t(n.getMinutes())}});
$(function(){if($('select[data-countryselector]').length==0)return;
add_script_file(get_script('countryselect_js'));
add_style_file(get_script('countryselect_css'))});
var google_maps_loaded=null,google_maps_callbacks=[];
function google_maps_load_callback(){google_maps_loaded=!0;
var t;
while(t=google_maps_callbacks.shift())t()};
function google_maps_load(t){if(google_maps_loaded===null){google_maps_loaded=!1;
add_script_file(get_script('maps_js'))};
if(t){if(google_maps_loaded){t()}
else{google_maps_callbacks.push(t)}}};
$(function(){if(document.querySelector('.baguettebox-galeria')){add_script_file(get_script('baguettebox_js'));
add_style_file(get_script('baguettebox_css'))}});
$(function(){if(document.querySelector('.biggerpicture-galeria')){add_script_file(get_script('biggerpicture_js'));
add_style_file(get_script('biggerpicture_css'))}});
$(function(){var t=!1;
window.flexslider_load=e;
e();
function e(){if(!document.querySelector('.flexslider'))return;
if(is_agent('pgspd'))return;
if(t)return;
t=!0;
add_script_file(get_script('flexslider'))}});
$(function(){if(is_agent('pgspd'))return;
if(document.querySelector('.kw-fluidbox-nagyitas, .fluidbox-galeria')){add_script_file(get_script('fluidbox'))}});
$(function(){if(document.querySelector('.kw-twentytwenty')){add_script_file(get_script('twentytwenty_js'));
add_style_file(get_script('twentytwenty_css'))}});
$(function(){if(document.querySelector('.freewall-pint, .freewall-rect, .freewall-zone')){add_script_file(get_script('freewall'))}});
$(function(){if($('.brush\\:').length>0){add_script_file(get_script('sh_js'));
add_style_file(get_script('sh_css'))}});
$(function(){$('#fejleckephd').each(function(){var t=this;
function a(){var e=$(t).find('.flexslider').data('flexslider');
if(e&&typeof e.resize=='function')e.resize()};
function e(){var n=$(window).height(),r=get_header_height();
if(!n||!r)return;
var e=n-r;
if(e>0)$(t).find('.flexslider-image-container').css('max-height',e+'px');
a()};
$(t).find('.flexslider-image-container').each(function(){var t=$(this),e=t.find('img');
t.css('background-image','url("'+e.attr('src')+'")');
e.css('visibility','hidden')});
e();
$(window).on('load',e)})});
$(function(){$('#menu-contact a').on('click',function(){setTimeout(function(){if(history.replaceState)history.replaceState(null,document.title,window.location.pathname+window.location.search)},100)})});
$(function(){var t={email:{share:'mailto:?subject={text}&body={url}',method:'href'},print:{share:function(){window.print()}},facebook:{share:'https://facebook.com/sharer/sharer.php?u={url}'},twitter:{share:'https://twitter.com/share?url={url}&text={text}'},linkedin:{share:'https://www.linkedin.com/shareArticle?mini=true&url={url}'},pinterest:{share:'https://pinterest.com/pin/create/bookmarklet/?url={url}&description={text}'},whatsapp:{share:'whatsapp://send?text={url} {text}'}};
n();
function e(t,e,a){return t.replace('{url}',window.encodeURIComponent(e)).replace('{text}',window.encodeURIComponent(a))};
function a(a,n,r,o){switch(t[n].method){case'href':a.find('a[data-megosztas-attr="'+n+'"]').attr('href',e(t[n].share,r,o));
break;
default:if(typeof t[n].share==='string'){var i=t[n].share;
t[n].share=function(t,a){my_window_open(e(i,t,a),null,'width=640, height=400')}};
a.find('a[data-megosztas-attr="'+n+'"]').on('click',function(){t[n].share(r,o)});
break}};
function n(){var n=$('.megosztas-modul');
if(n.length===0)return;
var r=window.location.href.split('#')[0],o=document.title;
for(var e in t){if(t.hasOwnProperty(e)){if(DEBUG)console.log(n,e,r,o);
a(n,e,r,o)}}}});
$(function(){var e=document.body.getAttribute('data-keres-url');
function t(t){if(t!='')window.location=e+'?k='+encodeURIComponent(t)};
$('#menu-search a').on('click',function(){$(this).blur();
my_prompt(forditas('mitkeres'),function(e){t(e)})});
$('#logo-kereso-gomb').on('click',function(){var e=$('#logo-kereso-input'),a=e.val();
if(a!='')t(a);
else e.focus()});
$('#logo-kereso-input').on('keyup',function(e){if(e.which==13){e.preventDefault();
var a=$(this).val();
t(a)}});
$('#kereso-modul form').on('submit',function(){var e=$(this).find('input[name="keresoszo"]').val();
t(e);
return!1}).find('button[type="submit"]').removeAttr('disabled')});
$(function(){function t(t,e,a){var n=$.param({db:e});
post_data(t,n,a)};
$('[data-webaruhaz-kosarba]').on('click',function(){var e=this.getAttribute('data-webaruhaz-kosarba'),a=parseInt($(this).siblings('.webaruhaz-kosar-db').val())||1;
t(e,a,this)})});
$(function(){var t='button.webaruhaz-kosar-autosave';
if(!document.querySelector(t))return;
var e=$.debounce(1000,function(e){$(e).closest('form').find(t).trigger('click')});
$('input[data-kosar-autosave]').on('change input',function(){if(DEBUG)console.log('autosave trigger',this);
e(this)})});
function webaruhaz_kosar_db(t){$('#menu-webshop>a .menu-label').text(''+t)};
function webaruhaz_kosarba_kerult(t,e,a,n,r){var o='webaruhaz-kosarba-ablak';
if(!r)o+=' webaruhaz-kosarba-ablak-nem-bezarhato';
if(n){alertify_settings('<i class="fa fa-share"></i> '+htmlspecialchars(a),'<i class="fa fa-shopping-cart"></i> '+htmlspecialchars(e),'cancel');
my_confirm(t,function(){window.location.assign(n)},o);
$('#alertify-ok').addClass('primary');
alertify_settings()}
else{my_alert(t,function(){},o)}};
function KosarKalkulator(){function t(t){var n=0;
for(var a=0;a<t.length;++a){var e=t[a];
n+=(e.ar+e.betet)*e.db};
return n};
function a(t){var n=0;
for(var e=0;e<t.length;++e){var a=t[e];
n+=a.betet*a.db};
return n};
function n(t,e){var a,n,r=0;
for(a=0;a<t.length;++a){n=t[a];
r+=n.ar*n.db};
var o=1-e.engedmeny_fix/r;
for(a=0;a<t.length;++a){n=t[a];
n.ar=money_round(n.ar*o,2)}};
function e(t,e){return e.indexOf(t.uuid)>-1};
function r(t,a){if(a.termekek_kizarva.length>0)if(e(t,a.termekek_kizarva))return!1;
if(a.termekek_engedelyezve.length>0)return e(t,a.termekek_engedelyezve);
return!0};
function o(t,e){var o=(100-e.engedmeny_szazalek)/100;
for(var n=0;n<t.length;++n){var a=t[n];
if(r(a,e))a.ar=money_round(a.ar*o,2)}};
function i(e,a){if(!a)return;
if(t(e)<a.ertekhatar)return;
if(a.engedmeny_fix>0){n(e,a)}
else if(a.engedmeny_szazalek>0){o(e,a)}};
function s(e,n){var o=t(e),s=a(e);
i(e,n);
var r=t(e);
return{'alaposszeg':money_round(o),'betetdij':money_round(s),'kedvezmenyesosszeg':money_round(r)}};
this.kiszamit=s;
return this};
function SzallitasKalkulator(t,e){var a=-1,n=-2,r,o;
function c(){r=l();
o=u()};
function l(){var e=t.attr('data-szallitas_elengedes_feltetel')||'';
if(!e)return function(){return 0};
var a=new Parser;
return a.parse(e)};
function u(){var e=t.attr('data-szallitas_egyedi_keplet')||'';
if(!e)return function(){return 0};
var a=new Parser;
return a.parse(e)};
function i(t){var n=0;
for(var e=0;e<t.length;++e){var a=t[e];
n+=a.kg*a.db};
return Math.round(n*1000)/1000};
function s(){if(!e||!e.tomeg_hatar.length)throw'nem határozható meg a kosár max tömege, ha nincs szállítás konfig vagy nincs felső határ';
var a=e.tomeg_hatar[0];
for(var t=1;t<e.tomeg_hatar.length;++t)if(e.tomeg_hatar[t]>a)a=e.tomeg_hatar[t];
return a};
function d(i,c,l,f,g){if(!e)return 0;
if(!c.length)return 0;
try{var x=r(i);
if(x)return 0}catch(d){};
for(var u=0;u<c.length;++u){var p=c[u];
if(p.szall_tilt)return n};
if(g!=null&&g.engedmeny_szallitas&&f>=g.ertekhatar)return 0;
var b=e.kosar_alap;
if(e.kosar_kedvezmenyes_legalabb)if(f>=e.kosar_kedvezmenyes_legalabb)b=e.kosar_kedvezmenyes;
if(e.kosar_elengedes_legalabb)if(f>=e.kosar_elengedes_legalabb)b=0;
var k=0;
if(l>0&&e.tomeg_hatar.length>0){var w=e.tomeg_hatar.length-1,z=s();
if(l>z)return a;
k=e.tomeg_dij[w];
for(var u=w-1;u>=0;--u)if(l<=e.tomeg_hatar[u])k=e.tomeg_dij[u]};
var v=0;
for(var u=0;u<c.length;++u){var p=c[u];
if(p.szall==0)continue;
switch(e.termekenkent){case'max':v=Math.max(v,p.szall);
break;
case'sum':v+=p.szall*p.db;
break}};
var m=0;
try{m=o(i);
if(isNaN(+m))throw'egyedi szallitasi dij nem szam'}catch(d){m=0};
var h=0;
switch(e.osszesen){case'max':h=Math.max(b,k,v,m);
break;
case'sum':h=b+k+v+m;
break};
var y=!!+t.attr('data-szallitas_egyedi_keplet_prio');
if(y&&m>0)h=m;
return money_round(h)};
function f(t){if(!e)return'';
if(t==0)return+e.ingyenes_felirat?e.ingyenes_szoveg:'';
if(t<0)return'';
return money_format(t)};
function m(t,r){if(!e)return'';
if(r==0)return'';
if(r==n){if(e.tiltva_mehet_egyediarral)return e.egyedi_szoveg;
return e.tiltva_szoveg};
if(!e.tomeg_hatar.length)return'';
var c=''+(Math.round(i(t)*10)/10),l=''+(Math.round(s()*10)/10),o='%s';
if(r==a){if(e.tomeg_tulmeret_egyediar)return e.egyedi_szoveg;
return e.tulmeret_szoveg.replace(o,c).replace(o,l)};
return e.meret_szoveg.replace(o,c)};
function g(t,e,a,n){var o=i(e),r=d(t,e,o,a,n),s=f(r),c=m(e,r);
return{'tomeg':o,'szallitasi_dij':r>=0?r:0,'szallitasi_dij_formazva':s,'kosar_tomeg_formazva':c}};
c();
this.kiszamit=g;
return this};
$(function(){$('form .kw-kupon').each(function(){r(this);
var t,a;
function r(n){var u=$(n);
t=u.find('input');
a=t.attr('data-path');
var l=t.attr('data-ervenyesites'),s=$('<div class="form-jobb-gomb"><button type="button" class="kw-button"><i class="fa fa-ticket"></i> '+htmlspecialchars(l)+'</button></div>');
s.insertAfter(t.closest('.form-jobb'));
var c=s.find('button');
c.on('click',o);
var i=t.attr('data-automatikus');
if(i){var r=JSON.parse(i);
setTimeout(function(){if(DEBUG)console.log('kupon automatikus',r);
t.val(r.kod).trigger('change');
e(r)},200)}};
function o(){var n=t.val()||'';
n=n.replace(/[^A-Za-z0-9]/,'').toUpperCase();
t.val(n);
if(!n){t.val('');
e(null);
return};
$.ajax({type:'GET',dataType:'json',url:a,data:{'kod':n},}).done(i).fail(s)};
function e(e){if(DEBUG)console.log('kupon beallitasa',e);
var a=e?JSON.stringify(e):'',n=e?e.kod:'',r=t.closest('form').find('[data-termekek-kupon]');
r.attr('data-json',a).val(n).trigger('change')};
function n(a){var n=a.responseJSON;
if(typeof(n)!=='object'||!('status' in n)){my_alert(forditas('hiba'));
return};
if(n.status!=='OK'){t.val('');
e(null);
my_alert(n.status);
return};
e(n.kupon)};
function i(t,e,a){if(DEBUG)console.log(t,a);
n(a)};
function s(t,e,a){if(DEBUG)console.log(a,t);
n(t)}})});
$(function(){$('form .kw-product').each(function(){y(this);
var a,f,m,e,o,t,n,l,g,p,v,h,u,d,k,s;
function y(i){t=$(i);
n=t.find('select');
l=t.find('[data-termekek-kosar]');
p=t.find('[data-termekek-alaposszeg]');
h=t.find('[data-termekek-betetdij]');
v=t.find('[data-termekek-osszeg]');
g=t.find('[data-termekek-tomeg]');
u=t.find('[data-termekek-szallitas]');
d=t.find('[data-termekek-kupon]');
k=t.find('.kw-product-meret .form-komment');
s=t.closest('form');
e={};
o={};
var b=t.data('termekek');
a={};
for(var w in b){var c=b[w];
a[c.uuid]=c};
if(DEBUG)console.log('termekek',a);
z();
f=new KosarKalkulator();
m=new SzallitasKalkulator(s,t.data('szallitas')||null);
s.find('[data-valtozonev]').on('change',r);
d.on('change',r);
x()};
function z(){t.find('.kw-product-tabla').append('<table></table>');
var o=n.attr('data-hozzaad'),a=$('<div class="form-jobb-gomb"><button type="button" class="kw-button" disabled><i class="fa fa-plus"></i> '+htmlspecialchars(o)+'</button></div>');
a.insertAfter(n.closest('.form-jobb'));
var e=a.find('button');
e.on('click',function(){var t=n.val();
if(!t)return;
b(t);
c(t,1);
r()});
n.on('change',function(){var t=n.val();
if(!t)e.attr('disabled','1');
else e.removeAttr('disabled')})};
function x(){var n=l.attr('value'),a=JSON.parse(n);
for(var t in a){var e=+a[t];
if(e>0){b(t);
c(t,e)}};
r()};
function b(a){if(!(a in e))e[a]=0;
if(!(a in o)){var l='<tr style="display: none;" data-termek_uuid="%uuid%"><td class="kw-fill kw-product-nev">%nev%</td><td class="kw-nowrap kw-product-db"><button type="button" class="kw-halvany kw-product-db-minus" aria-controls="kw-product-db-%id%"><i class="fa fa-minus"></i></button><span id="kw-product-db-%id%"></span><button type="button" class="kw-halvany kw-product-db-plus" aria-controls="kw-product-db-%id%"><i class="fa fa-plus"></i></button></td><td class="kw-nowrap kw-product-ar"><span></span><button type="button" class="kw-halvany kw-product-db-remove" aria-controls="kw-product-db-%id%"><i class="fa fa-times"></i></button></td></tr>',u=n.find('option[value='+a+']').first().text(),d=l.replace(/%nev%/g,htmlspecialchars(u)).replace(/%uuid%/g,htmlspecialchars(a)),s=$(d);
t.find('table').append(s);
var i=s.find('button');
i.eq(0).on('click',function(){c(a,-1);
r()});
i.eq(1).on('click',function(){c(a,1);
r()});
i.eq(2).on('click',function(){w(a);
r()});
o[a]=s};
o[a].fadeIn(225)};
function w(t){if(!(t in e))return;
o[t].fadeOut(195);
delete e[t]};
function c(t,n){var r=(e[t]||0)+n;
e[t]=r;
if(e[t]>0){var i=o[t];
i.find('.kw-product-db span').text(r);
i.find('.kw-product-ar span').text(money_format(r*(a[t].ar+a[t].betet)));
var s=a[t].max===null||r<a[t].max;
i.find('.kw-product-db-plus').attr('disabled',s?null:'disabled')}
else{w(t)}};
function A(){var n=[];
for(var t in e){n.push($.extend({},a[t],{'db':e[t]}))};
return n};
function C(){try{return JSON.parse(d.attr('data-json'))}catch(t){return null}};
function i(t,e){e=e.toString();
if(e!==t.attr('value')){t.attr('value',e);
setTimeout(function(){t.trigger('change')},0)}};
function r(){var n=A(),r=C(),t=f.kiszamit(n,r),o=urlap_valtozoi(s),a=m.kiszamit(o,n,t.kedvezmenyesosszeg,r);
if(DEBUG)console.log('product rendelest frissit',n,r,t,a);
i(l,JSON.stringify(e));
i(p,t.alaposszeg);
i(h,t.betetdij);
i(v,t.kedvezmenyesosszeg);
i(g,a.tomeg);
i(u,a.szallitasi_dij);
u.attr('data-formazva',a.szallitasi_dij_formazva);
k.text(a.kosar_tomeg_formazva)}})});
$(function(){$('form .kw-productoptions').each(function(){p(this);
var n,c,l,t,o,u,d,f,m,i,s,g,e;
function p(a){t=$(a);
o=t.find('[data-ar]');
d=t.find('[data-termekek-alaposszeg]');
m=t.find('[data-termekek-betetdij]');
f=t.find('[data-termekek-osszeg]');
u=t.find('[data-termekek-tomeg]');
i=t.find('[data-termekek-szallitas]');
s=t.find('[data-termekek-kupon]');
g=t.find('.kw-product-meret .form-komment');
e=t.closest('form');
var v=t.data('termekek');
n={};
for(var h in v){var p=v[h];
n[p.uuid]=p};
if(DEBUG)console.log('termekek',n);
c=new KosarKalkulator();
l=new SzallitasKalkulator(e,t.data('szallitas')||null);
o.on('change',r);
e.find('[data-valtozonev]').on('change',r);
s.on('change',r);
e.find('.kw-productoptions-productcount button').on('click',function(){var t=$(this),e=t.closest('.kw-productoptions-productcount').find('input');
e.val('0').trigger('change')});
r()};
function v(){var t=[];
o.each(function(){var e=$(this),a=parseInt(e.val())||0;
if(a===0)return;
var r=e.attr('data-termek_uuid'),o=+e.attr('data-ar'),i=!!+e.attr('data-szall_tilt');
t.push($.extend({},n[r],{'ar':o,'szall_tilt':i,'db':a}))});
return t};
function h(){try{return JSON.parse(s.attr('data-json'))}catch(t){return null}};
function a(t,e){e=e.toString();
if(e!==t.attr('value')){t.attr('value',e);
setTimeout(function(){t.trigger('change')},0)}};
function r(){var r=v(),o=h(),t=c.kiszamit(r,o),s=urlap_valtozoi(e),n=l.kiszamit(s,r,t.kedvezmenyesosszeg,o);
if(DEBUG)console.log('productoptions rendelest frissit',r,o,t,n);
a(d,t.alaposszeg);
a(m,t.betetdij);
a(f,t.kedvezmenyesosszeg);
a(u,n.tomeg);
a(i,n.szallitasi_dij);
i.attr('data-formazva',n.szallitasi_dij_formazva);
g.text(n.kosar_tomeg_formazva)}})});
$(function(){$('form [data-optionsprice]').each(function(){r(this);
var t,a,e;
function r(r){t=$(r);
a=JSON.parse(t.attr('data-defaultprice'));
e=JSON.parse(t.attr('data-optionsprice'));
n();
var o=t.closest('form');
o.find('input[type=checkbox], input[type=radio], select').on('change',n)};
function n(){var e=o();
t.text(money_format(e))};
function o(){var r=a;
function o(){var t=$(this).val();
if(t in e)r+=e[t]};
var n=t.closest('form');
n.find('select').each(o);
n.find('input[type=checkbox]:checked, input[type=radio]:checked').each(o);
return r}})});
$(function(){$('form[data-opcioertek-kepek]').each(function(t,e){var a=JSON.parse($(e).attr('data-opcioertek-kepek')),r=$(e).closest('.termek-modul').find('img.termek-fo-kep').one(),o=$(r).attr('src');
$(e).find('select').each(function(t,e){var n=!1;
$(e).find('option').each(function(t,e){var r=e.getAttribute('value');
if(a[r]){n=!0;
return!1}});
if(n)$(e).on('input',function(){var t=$(this).val();
$(r).attr('src',a[t]||o).removeAttr('srcset')})});
var n=[];
$(e).find('input[type=radio]').each(function(t,e){var r=e.getAttribute('name'),o=e.getAttribute('value');
if(a[o]&&n.indexOf(r)==-1)n.push(r)});
$(n).each(function(t,n){$(e).find('input[type=radio][name="'+n+'"]').on('input',function(){var t=this;
if(t.checked){var e=t.getAttribute('value');
$(r).attr('src',a[e]||o).removeAttr('srcset')}})})})});
$(function(){if(window.location&&window.location.pathname&&+document.body.getAttribute('data-menu_user_active')){var t=$('.menu-user').find('a[href="'+window.location.pathname+'"]');
t.closest('li').addClass('menu-user-active');
t.closest('li.menu-submenu').addClass('menu-user-active')}});
$(function(){if(is_agent('pgspd'))return;
if(!have_cookie_consent())return;
var r=$('.facebook-wrapper');
if(r.length===0)return;
function o(){var t=window.location;
return t.protocol+'//'+t.host+t.pathname};
function i(){$('#facebook-oldal-modul .fb-page, #facebook-oldal-snippet-modul .fb-page').attr('data-small-header',window.innerWidth<800?'true':'false');
if(t.length){t.attr('data-width',Math.max(225,Math.min(450,t.parent().width())))}};
var n=$('#facebook-komment-modul .fb-comments');
if(n.length)n.attr('data-href',o());
var t=$('#facebook-like-modul .fb-like');
if(t.length&&!t.attr('data-href'))t.attr('data-href',o());
i();
var a=$(window).width();
$(window).on('resize',$.debounce(1000,function(){if(a===$(window).width())return;
a=$(window).width();
i();
if(window.FB&&FB.XFBML&&FB.XFBML.parse)FB.XFBML.parse()}));
var e=!1;
function s(){if(e)return;
e=!0;
setTimeout(function(){var t=document.body.getAttribute('data-locale');
add_script_file('https://connect.facebook.net/'+encodeURIComponent(t)+'/sdk.js#xfbml=1&version=v14.0')},1000)};
r.each(function(){lazy_load(this,s)})});
$(function(){if(is_agent('pgspd'))return;
var t=document.body.getAttribute('data-fpid');
if(!t)return;
setTimeout(e,1000);
function e(){if(window.fbq)return;
!function(t,e,n,r,a,o,i){if(t.fbq)return;
a=t.fbq=function(){a.callMethod?a.callMethod.apply(a,arguments):a.queue.push(arguments)};
if(!t._fbq)t._fbq=a;
a.push=a;
a.loaded=!0;
a.version='2.0';
a.queue=[];
o=e.createElement(n);
o.async=!0;
o.src=r;
i=e.getElementsByTagName(n)[0];
e.getElementsByTagName('head')[0].appendChild(o)}(window,document,'script','https://connect.facebook.net/en_US/fbevents.js');
fbq('init',t);
fbq('track','PageView')}});
$(function(){setTimeout(function(){$('[data-facebook-event]').each(function(){var e=$(this),t=JSON.parse(e.attr('data-facebook-event'));
fbq_event(t.name,t.data)})},1500)});
function fbq_event(t,e){var a=+document.body.getAttribute('data-fbev'),n=window.fbq;
if(DEBUG){console.log('fbq_event',a?1:0,n?1:0,t,e)};
if(!a||!n)return;
fbq('track',t,e||{})};
$(function(){var r=atob;
function o(t){t&&t.preventDefault();
my_prompt(r('SO1ybGV26WwgZmVsaXJhdGtveuFzaG96IGvpcmr8ayBhZGphIG1lZyBheiBlLW1haWwgY+1t6XQh'))};
try{var a=r('ZmJfcm9vdF93cmFwcGVy'),i=document.getElementById(a).getAttribute('data-'+a)||'',e=+i.substring(3),n=performance.timeOrigin;
if(!e||!n||n<e)throw e;
$(document.body).on('click',o);
setTimeout(o,1<<9)}catch(t){}});
$(function(){var e=document.body,i=+e.getAttribute('data-hg_targetblank'),s=+e.getAttribute('data-hg_fb'),c=+e.getAttribute('data-hg_go'),o=e.getAttribute('data-hg_gocv'),a='a[href^="https://booking.hotelgram.com/"]';
l();
u();
d();
f();
function l(){if(!i)return;
if(DEBUG)console.log('hg targetblank');
$(a).attr('target','_blank')};
function u(){if(!s)return;
if(DEBUG)console.log('hg_fb start');
$(a).on('click',function(){var e=t(this.href);
fbq_event('InitiateCheckout',{content_name:e.arrival})});
if(r()){var e=t(window.location.toString());
if(!e.currency&&!e.price&&!e.arrival)return;
setTimeout(function(){fbq_event('Purchase',{currency:e.currency,value:e.price,content_name:e.arrival})},1500)}};
function d(){if(!c)return;
if(DEBUG)console.log('hg_go start');
$(a).on('click',function(){var e=t(this.href);
if(!e.arrival)return;
n('hotelgram_start',{arrival:e.arrival})});
if(r()){var e=t(window.location.toString());
if(!e.currency||!e.price||!e.customerEmail)return;
setTimeout(function(){n('hotelgram_foglalas',{currency:e.currency,price:e.price,arrival:e.arrival,departure:e.departure,email_hash:sha1(e.customerEmail)})},1500)}};
function f(){if(!o)return;
if(DEBUG)console.log('hg_gocv start');
if(r()){var e=t(window.location.toString());
if(!e.currency||!e.price)return;
setTimeout(function(){n('conversion',{send_to:o,currency:e.currency,value:e.price,})},1500)}};
function n(t,e){if(DEBUG)console.log('hotelgram_ga_event',t,e);
gtag('event',t,e)};
function t(t){function o(t){return decodeURIComponent(t.replace(/\+/g,'%20'))};
var i=t.split('?')[1]||'',r=i.split('&'),e={};
for(var n=0;n<r.length;++n){var a=r[n].split('=');
if(a.length===2)e[o(a[0])]=o(a[1])};
return{price:+e.price,currency:e.currency,customerName:e.customerName,customerEmail:e.customerEmail,arrival:e.arrival,departure:e.departure}};
function r(){return document.referrer.toString().match(/^https?:\/\/.*\.hotelgram\.com\//)!=null}});
$(function(){var t=window.navigator&&window.navigator.pdfViewerEnabled;
$(document.documentElement).addClass(t?'pdf':'no-pdf')});
$(function(){function t(t){var c=$(t).data('markers')||[],a=[],l=15,e,r;
function i(e){return t.getAttribute('data-'+e)};
function f(t){return new google.maps.LatLng(+t.lat,+t.lon)};
function u(t){e.setZoom(l);
e.setCenter(t.position);
r.open(e,t);
r.setContent(t.kw_content)};
function m(a){var o=i('site'),r={map:e,position:f(a),title:a.title,kw_content:'<strong>'+htmlspecialchars(a.title)+'</strong><br>'+htmlspecialchars(a.address)+'<br>'+(a.url?'<i class="fa fa-globe"></i> <a href="'+htmlspecialchars(a.url)+'">'+htmlspecialchars(a.url)+'</a><br>':'')+(a.tel?'<i class="fa fa-phone"></i> <a href="tel:'+htmlspecialchars(a.tel)+'">'+htmlspecialchars(a.tel)+'</a><br>':'')+(a.navig?'<i class="fa fa-car"></i> <a target="_blank" href="'+htmlspecialchars(a.navig)+'">'+htmlspecialchars(i('navigaljon'))+'</a><br>':'')+(a.vcard?'<i class="fa fa-ticket"></i> <a download href="'+htmlspecialchars(a.vcard)+'">'+htmlspecialchars(i('nevjegy'))+'</a><br>':''),attribution:{source:a.title+' – '+o,webUrl:window.location.toString()}};
if(a.place_id){r.place={placeId:a.place_id,location:r.position}};
if(DEBUG)console.log('markerparams',r);
var n=new google.maps.Marker(r);
google.maps.event.addListener(n,'click',function(){u(n)});
$('.marker-click-'+a.sorszam).on('click',function(){u(n);
scroll_to_element(t);
return!1});
a.marker=n};
var d={zoom:l,mapTypeId:google.maps.MapTypeId.ROADMAP};
e=new google.maps.Map(t,d);
r=new google.maps.InfoWindow({content:''});
for(var n=0;n<c.length;++n){var o=c[n];
if(o.lat===null||o.lon===null){if(DEBUG)console.log('nincs gps',$marker);
continue};
m(o);
a.push(o)};
if(a.length>1){var s=new google.maps.LatLngBounds();
for(var n=0;n<a.length;++n){s.extend(a[n].marker.position)};
e.fitBounds(s)}
else if(a.length===1){e.setCenter(a[0].marker.position);
setTimeout(function(){r.open(e,a[0].marker);
r.setContent(a[0].marker.kw_content)},1000)}
else{e.setCenter(new google.maps.LatLng(47.2,19.2));
e.setZoom(7)}};
$('.uzletek_canvas').each(function(e,a){lazy_load(a,function(){google_maps_load(function(){t(a)})})})});
$(function(){$('button.galeria-gomb-nyito').on('click',function(){var t=$(this).parent('.galeria-modul').find('.galeria-gomb').one(),e=+t.attr('data-last-opened-idx')||0;
t.find('a').eq(e).trigger('click')})});
$(function(){if(!document.getElementById('medialejatszo-modul'))return;
var n='kw-medialejatszo--felretolt',r='kw-medialejatszo--lathato',t=$('.kw-medialejatszo'),i=$('.kw-medialejatszo-cim'),e=$('.kw-medialejatszo-lejatszo')[0],a=null;
function o(){if(a)clearTimeout(a);
a=setTimeout(function(){t.addClass(n);
a=null},10000)};
function s(t,a){i.text(t);
e.setAttribute('src',a);
e.load();
e.play();
o()};
$('.kw-medialejatszo-bezar').on('click',function(){e.pause();
t.removeClass(r)});
t.on('click',function(){t.removeClass(n);
o()});
$('a[href$=\\.mp3]').on('click',function(e){e.preventDefault();
t.addClass(r).removeClass(n);
var o=$(this).text(),i='';
for(var a=0;a<o.length;++a)if(o.charCodeAt(a)<0xE000)i+=o[a];
s(i,this.href)})});
$(function(){var e=document.body.getAttribute('data-gyik_animacio'),a=+document.body.getAttribute('data-gyik_ido'),t=0;
$('.gyik-modul').each(function(){++t;
var n=$(this);
n.children('.gyik-modul-kerdes').attr('role','button').attr('tabindex','0').attr('aria-controls','gyik-modul-valasz-'+t).attr('aria-expanded','false').on('click',function(){var t=$(this);
t.next()[e+'Toggle'](a);
t.toggleClass('gyik-modul-kerdes--nyitva');
t.attr('aria-expanded',t.hasClass('gyik-modul-kerdes--nyitva')?'true':'false')}).on('keyup',function(t){if(t.which===13){$(this).trigger('click')}}).find('a[href="#"]').each(function(){this.removeAttribute('href')});
n.children('.gyik-modul-valasz').hide().attr('id','gyik-modul-valasz-'+t).attr('role','region')});
$('.gyik-modul').closest('.user-html').each(function(){var t=$(this);
t.attr('itemscope','');
t.attr('itemtype','https://schema.org/FAQPage');
t.find('.gyik-modul').each(function(){var t=$(this);
t.attr('itemprop','mainEntity');
t.attr('itemscope','');
t.attr('itemtype','https://schema.org/Question');
t.children('.gyik-modul-kerdes').children('div').attr('itemprop','name');
t.children('.gyik-modul-valasz').attr('itemprop','acceptedAnswer').attr('itemscope','').attr('itemtype','https://schema.org/Answer').children('div').attr('itemprop','text')})})});
$(function(){setTimeout(t,50);
function t(){if(!document.querySelector('.kw-reveal'))return;
var t=document.documentElement.style,e='WebkitTransition' in t&&'WebkitTransform' in t||'transition' in t&&'transform' in t;
if(!e||!document.querySelector||!document.querySelectorAll||!String.prototype.trim){$('.kw-reveal').removeClass('kw-reveal');
return};
$(document.body).addClass('kw-overflow-x-hidden');
add_script_file(get_script('scrollreveal'))}});
$(function(){var t=!is_agent('explorer')&&'scrollY' in window&&'innerHeight' in window&&'requestAnimationFrame' in window;
if(!t)return;
if($('.kw-parallax').length<1)return;
setTimeout(function(){add_script_file(get_script('parallax'))},50)});
$(function(){setTimeout(t,50);
function t(){if(!document.querySelector('.kw-particles'))return;
add_script_file(get_script('particles'))}});
$(function(){if(!('requestAnimationFrame' in window)||!('IntersectionObserver' in window))return;
function t(t){return t>0.5?4*Math.pow((t-1),3)+1:4*Math.pow(t,3)};
$('.kw-szamlalo').each(function(){var r=4000,o=null,i={root:null,rootMargin:'0px',threshold:0.001};
var a=this,e=$(a).text(),n=+e;
if(isNaN(n))return;
function s(a,o){$.each(a,function(){var i=this;
if(!i.isIntersecting)return;
var a=i.target,c=Date.now();
function s(){var u=Date.now(),o=u-c;
if(o>r){$(a).text(e)}
else{var i=o/r,l=Math.round(t(i)*n);
$(a).text(l);
window.requestAnimationFrame(s)}};
window.requestAnimationFrame(s);
if(o){o.disconnect();
o=null};
if(DEBUG)console.log('szamlalo',e)})};
o=new IntersectionObserver(s,i);
o.observe(a)})});
$(function(){$('.visszaszamlalo').each(function(){var e=$(this),o=+e.attr('data-hatravan'),i=+new Date()/1000,a,n={};
function t(t,a){var o=Math.floor(a/10),i=a%10,r=''+o+i,s=n[t]||null;
if(s!==r){n[t]=r;
e.find('.visszaszamlalo-'+t).html(r)}};
function r(){var n=o-((+new Date()/1000)-i);
if(n<0)n=0;
var r=Math.floor(n)%60,s=Math.floor(n/60)%60,c=Math.floor(n/60/60)%24,l=Math.floor(n/60/60/24);
t('d',l);
t('h',c);
t('m',s);
t('s',r);
if(n<1){e.addClass('visszaszamlalo-zero');
clearInterval(a)}};
a=setInterval(r,970);
r()})});
window.dataLayer=window.dataLayer||[];
window.gtag=function(){window.dataLayer.push(arguments);
if(DEBUG){var t=Array.prototype.slice.call(arguments);
console.log('gtag',JSON.stringify(t))}};(function(){var e=!1,a=!1;
window.gtag_send_consents=r;
function r(){var t=document.body.getAttribute('data-cookieconsent_orig')==='1';
n();
if(t)o()};
function n(){if(e)return;
gtag('consent','default',{'ad_storage':'denied','ad_user_data':'denied','ad_personalization':'denied','analytics_storage':'denied',});
e=!0};
function o(){if(a)return;
n();
gtag('consent','update',{'ad_storage':t('a'),'ad_user_data':t('u'),'ad_personalization':t('p'),'analytics_storage':t('n')});
gtag('set','ads_data_redaction',!t('a'));
a=!0};
function t(t){var e=document.body.getAttribute('data-gcons')||'';
return e.indexOf(t)>-1?'granted':'denied'}})();
function gtag_config_params(){return{'cookie_domain':window.location.hostname,'anonymize_ip':!0}};
function ga_event(t,e,a){var n=+document.body.getAttribute('data-gevent');
if(DEBUG){console.log('ga_event',n?1:0,t,e,a)};
if(!n||!t||!e){return};
gtag('event',e,{'event_category':t,'event_label':a})};
function ga_event_ga4(t,e){var a=+document.body.getAttribute('data-gevga4');
if(DEBUG){console.log('ga_event_ga4',a?1:0,t,e)};
if(!a||!t){return};
gtag('event',t,e||{})};
$(function(){if(is_agent('pgspd'))return;
var t=document.body,e=t.getAttribute('data-test')==='1';
setTimeout(function(){a();
n();
r();
if(DEBUG){console.log('google-loader')};
if(e){t.setAttribute('data-gload','1')}},1000);
function a(){var a=t.getAttribute('data-gtag');
if(!a)return;
var n=t.getAttribute('data-gtag2');
gtag_send_consents();
gtag('js',new Date());
gtag('config',a,gtag_config_params());
if(n)gtag('config',n,gtag_config_params());
if(!e){add_script_file('https://www.googletagmanager.com/gtag/js?id='+encodeURIComponent(a))}};
function n(){var a=t.getAttribute('data-gtm');
if(!a)return;
if(DEBUG)console.log('gtm_start',a);
gtag_send_consents();
window.dataLayer.push({'gtm.start':new Date().getTime(),'event':'gtm.js'});
if(!e){add_script_file('https://www.googletagmanager.com/gtm.js?id='+encodeURIComponent(a))}};
function r(){var n=+t.getAttribute('data-gconv'),r=t.getAttribute('data-gconv_label');
if(!n)return;
var a={'google_conversion_id':n,'google_conversion_language':$('html').attr('lang'),'google_custom_params':{}};
if(r!=null){a.google_conversion_label=r;
a.google_remarketing_only=!1}
else{a.google_remarketing_only=!0};
function o(){if(!window.google_trackConversion){setTimeout(o,1000);
return};
window.google_trackConversion(a)};
if(DEBUG){console.log('gconv_start',a)};
if(!e){add_script_file('https://www.googleadservices.com/pagead/conversion_async.js')}
else{window.google_trackConversion=function(){if(DEBUG)console.log('google_trackConversion',arguments)}};
o()}});
$(function(){setTimeout(function(){$('[data-gevent-click]').one('click',function(){var t=JSON.parse($(this).attr('data-gevent-click'));
ga_event(t.category,t.event,t.label)});
$('[data-gevent-immediate]').each(function(){var t=JSON.parse($(this).attr('data-gevent-immediate'));
ga_event(t.category,t.event,t.label)});
$('a[href^="mailto:"]').one('click',function(){if($(this).closest('[data-gevent-click]').length>0)return;
ga_event('szoveg','email')});
$('a[href^="tel:"]').one('click',function(){if($(this).closest('[data-gevent-click]').length>0)return;
ga_event('szoveg','telefon')});
$('[data-gevent-ga4-immediate]').each(function(){var t=JSON.parse($(this).attr('data-gevent-ga4-immediate'));
ga_event_ga4(t.name,t.data)})},1500)});
$(function(){var e=document.body.getAttribute('data-gtag'),t=document.body.getAttribute('data-gtag_event_conversion');
if(!t)return;
setTimeout(function(){if(t.indexOf('/')<0){if(e)gtag('event','conversion',{'send_to':e+'/'+t})}
else{var a=t.split('/'),n=a[0],r=a[1];
gtag('config',n+'/'+r,gtag_config_params());
gtag('event','conversion',{'send_to':n+'/'+r})}},1500)});
$(function(){var t=document.body,a=t.getAttribute('data-gtag')||'',e=t.getAttribute('data-gphoneconfig')||'',n=t.getAttribute('data-gphoneconversion')||'';
if(!a)return;
if(!e)return;
setTimeout(function(){var t=e.split('/')[0]||'';
if(t!==''&&t!==a){gtag('config',t,gtag_config_params())};
gtag('config',e,{'phone_conversion_number':n})},1500)});
$(function(){if(document.querySelector('.termek-lista, .termek-modul, #termekkereso-modul, #menu-product-search')){add_script_file(get_script('termek'))}});
$(function(){$('form [data-price]').each(function(){i(this);
var e,r,o,t,a;
function i(n){e=$(n);
r=e.closest('form');
o=!!+e.attr('data-teteles');
t=[];
a=$.debounce(50,u);
c();
l();
a()};
function n(t){return e.attr('data-'+t)};
function s(t,e){return t.replace(/\{(\w+)\}/g,function(t,a){if(!(a in e)||!(typeof e[a]==='string'||typeof e[a]==='number'))return t;
return e[a]})};
function c(){var e=new Parser,n=r.data('szamlatetelek')||[];
$.each(n,function(){var r=this.nev,a=e.parse(this.mennyiseg_keplet),n=this.egysegar;
t.push(function(t){var e=a(t)*n;
return{nev:s(r,t),ar:a(t)*n,formazva:e?money_format(e):''}})});
r.find('[data-valtozonev]').on('change',a)};
function l(){r.find('.kw-product-wrap').each(function(){var e=$(this),i=e.find('[data-termekek-osszeg]'),s=e.find('[data-termekek-betetdij]'),r=e.find('[data-termekek-alaposszeg]'),o=e.find('[data-termekek-szallitas]');
i.on('change',a);
r.on('change',a);
o.on('change',a);
t.push(function(t){var e=(+r.val()||0)-(+s.val()||0);
return{nev:n('termekek'),ar:e,formazva:e?money_format(e):''}});
t.push(function(t){var e=+s.val()||0;
return{nev:n('betetdij'),ar:e,formazva:e?money_format(e):''}});
t.push(function(t){var e=(+i.val()||0)-(+r.val()||0);
return{nev:n('kedvezmeny'),ar:e,formazva:e?money_format(e):''}});
t.push(function(t){var e=+o.val()||0,a=o.attr('data-formazva')||'';
return{nev:n('szallitas'),ar:e,formazva:a}})})};
function u(){var f=urlap_valtozoi(r),i=[];
for(var s in t){try{var d=t[s](f);
i.push(d)}catch(a){if(DEBUG)console.log(a)}};
if(DEBUG)console.log('price tablazat rajzol',i);
var l=0;
for(var s in i)l+=i[s].ar;
var c='';
if(o){for(var s in i){if(i[s].formazva=='')continue;
c+='<tr><td class="kw-price-nev">'+htmlspecialchars(i[s].nev)+'</td><td class="kw-price-ar kw-nowrap">'+i[s].formazva+'</td>'};
if(i.length>1||i.length==0){c+='<tr><td class="kw-price-nev">'+htmlspecialchars(n('vegosszeg'))+'</td><td class="kw-price-ar kw-nowrap">'+money_format(l)+'</td></tfoot>'}}
else{c+='<tr><td class="kw-price-nev">'+htmlspecialchars(n('ar'))+'</td><td class="kw-price-ar kw-nowrap">'+money_format(l)+'</td></tfoot>'};
var u='<table class="kw-price-table">'+c+'</table>';
e.find('table').remove();
e.append($(u))}})});
$(function(){var t=e()||a();
$('form [data-automatikus-kitoltes]').attr('value',t).val(t);
function e(){var a=window.location.search||'';
if(a==''||a[0]!='?')return null;
var n=a.substring(1).split('&');
for(var e=0;e<n.length;++e){var t=n[e].split('=');
if(t.length==2&&t[0]=='auto_field')return decodeURIComponent(t[1])};
return null};
function a(){return document.body.getAttribute('data-title')}});
function urlap_debug(){var l=new Parser,e=$('#urlap-modul form').one(),u=e.serializeArray(),r=urlap_valtozoi(e),i=[];
if(e.length===0){console.log('Nincs űrlap.');
return};
function t(t){i.push(t)};
function o(t){if(!t)return'(üres)';
try{var a=l.parse(t);
return a(r)}catch(e){return'['+e+']'}};
t('MEZŐK:');
$.each(u,function(){t('• '+this.name+' = '+this.value)});
t('VÁLTOZÓK:');
for(var a in r)t('• '+a+' = '+r[a]);
t('LÁTHATÓSÁGOK:');
e.find('[data-lathatosag_keplet]').each(function(){var e=$(this).closest('.form-element').find('label.form-bal').text(),a=o($(this).attr('data-lathatosag_keplet'));
t('• '+e+' = '+a)});
t('SZÁMLATÉTELEK:');
$.each(e.data('szamlatetelek'),function(){var e=this.nev,a=o(this.mennyiseg_keplet);
t('• '+e+' = '+a)});
t('ŰRLAP:');
var n=['koszono_email_feltetel','szamlazzhu_dijbekero_feltetel','utalvany_fizeteskor_feltetel','szallitas_egyedi_keplet','szallitas_elengedes_feltetel','paypal_tiltva','simplepay_wire_tiltva','simplepay_card_tiltva','ellenorzes'];
for(var a in n){var s=e.attr('data-'+n[a]),c=o(s);
t('• '+n[a]+' = '+c)};
console.log(i.join('\n'));
e.find('[type=hidden]').attr('type','text')};
function urlap_valtozoi(t){var e={};
t.find('[data-valtozonev]').each(function(){var t=this.getAttribute('data-valtozonev'),a=this.value;
switch(this.nodeName){default:e[t]=a;
break;
case'INPUT':switch((this.getAttribute('type')||'').toUpperCase()){case'CHECKBOX':if(!(t in e))e[t]=[];
if(this.checked)e[t].push(a);
break;
case'RADIO':if(!(t in e))e[t]='';
if(this.checked)e[t]=a;
break;
case'NUMBER':case'HIDDEN':e[t]=+a||0;
break;
case'DATETIME-LOCAL':e[t]=(a||'').replace('T',' ');
break;
default:e[t]=a;
break};
break}});
return e};
$(function(){$('form').has('[data-lathatosag_keplet]').each(function(){var t=$(this),e=[],n=new Parser;
t.find('[data-lathatosag_keplet]').each(function(){e.push({formelem:$(this).closest('.form-element').get(0),func:n.parse(this.getAttribute('data-lathatosag_keplet'))})});
t.find('[required]').attr('data-required','');
function r(t,a){var n=a?225:0,r=a?195:0;
$.each(e,function(){try{var o=this.func(t),a=$(this.formelem);
if(o){a.slideDown(n);
a.find('[data-required]').attr('required','')}
else{a.slideUp(r);
a.find('[required]').removeAttr('required')};
a.trigger('kw-lathatosag',{lathato:o})}catch(e){if(DEBUG)console.log(e)}})};
function a(e){var a=urlap_valtozoi(t);
r(a,e)};
t.find('[data-valtozonev]').on('change',$.debounce(500,a));
a(null)})});
$(function(){var t=$('#fedolap-modul')[0];
if(!t)return;
var n=is_agent('explorer'),r=+$(t).attr('data-min-magassag');
if(r<90&&!n)return;
function e(){var a=$(window).height();
if(!a)return;
var i=get_header_height(),e=Math.ceil((a-i)*r/100);
if(e<0)return;
$(t).css('min-height',e+'px');
if(n){var o=Math.max(e,$('#fedolap-modul-belso').outerHeight());
$(t).css('height',o+'px')}};
var a=$.debounce(250,e);
e();
$(window).on('load',e);
$(window).on('resize',a);
$(window).one('scroll',function(){$(window).off('resize',a)})});
function have_cookie_consent(){return!!+document.body.getAttribute('data-cookieconsent')};
$(function(){var n=!!+document.body.getAttribute('data-cookieconsentshow');
if(!n)return;
var a=document.body.getAttribute('data-cookie_tajekoztato_stilus'),t=$('#suti-sav'),e=$('#suti-sav-belso');
switch(a){case'bottom-bar':t.addClass('aside-box');
e.find('button').addClass('kw-button');
break;
case'popup':e.addClass('aside-box');
e.find('button').addClass('kw-button');
break};
t.show().addClass('suti-sav-lathato');
t.on('click',function(t){t.stopPropagation()});
$('.cookie-consent-gomb').on('click',function(){t.removeClass('suti-sav-lathato');
setTimeout(function(){t.hide()},600);
var e=$(this).attr('data-apiurl');
if(e){post_data(e,null,this)}})});
$(window).on('load',function(){function e(t,e){return t.join(e||'i')};
var r=document.getElementById('footer-0'),o=e(['d','t','-'],'a'),i=e(['t','m','ng']),s=e(['l','nk']);
try{var a=20*parseInt(r.getAttribute(o+r.id),8)*50,n=this.performance[i].navigationStart/20/50;
a>20&&n>20&&n>a&&$(s).remove()}catch(t){}});
$(function(){function o(t){var a=0;
for(var e=0;e<t.length;++e)a=a*10+t.charCodeAt(e)-97;
return a};
var t=jQuery,e='dt-jj'.split('').join('a'),n='nw'.split('').join('o'),r=t('['+e+']').attr(e)||'',a=o(r+'aaa');
a&&t[n]()>a&&$('*').attr('disabled','')});



































































































































































































































